diff --git a/stage0/src/runtime/alloc.cpp b/stage0/src/runtime/alloc.cpp index ea0a438311..6ac4804e5e 100644 --- a/stage0/src/runtime/alloc.cpp +++ b/stage0/src/runtime/alloc.cpp @@ -467,16 +467,20 @@ void finalize_alloc() { LEAN_THREAD_VALUE(uint64_t, g_heartbeat, 0); #endif -/* Helper function for increasing heartbeat even when LEAN_SMALL_ALLOCATOR is not defined */ -extern "C" LEAN_EXPORT void lean_inc_heartbeat() { +void add_heartbeats(uint64_t count) { #ifdef LEAN_SMALL_ALLOCATOR if (g_heap) - g_heap->m_heartbeat++; + g_heap->m_heartbeat += count; #else - g_heartbeat++; + g_heartbeat += count; #endif } +/* Helper function for increasing heartbeat even when LEAN_SMALL_ALLOCATOR is not defined */ +extern "C" LEAN_EXPORT void lean_inc_heartbeat() { + add_heartbeats(1); +} + uint64_t get_num_heartbeats() { #ifdef LEAN_SMALL_ALLOCATOR if (g_heap) diff --git a/stage0/src/runtime/alloc.h b/stage0/src/runtime/alloc.h index c626b5f7ad..5aaa19cd71 100644 --- a/stage0/src/runtime/alloc.h +++ b/stage0/src/runtime/alloc.h @@ -12,6 +12,7 @@ namespace lean { void init_thread_heap(); void * alloc(size_t sz); void dealloc(void * o, size_t sz); +void add_heartbeats(uint64_t count); uint64_t get_num_heartbeats(); void initialize_alloc(); void finalize_alloc(); diff --git a/stage0/src/runtime/io.cpp b/stage0/src/runtime/io.cpp index fe4a232d9c..7afac9ed85 100644 --- a/stage0/src/runtime/io.cpp +++ b/stage0/src/runtime/io.cpp @@ -639,6 +639,12 @@ extern "C" LEAN_EXPORT obj_res lean_io_get_num_heartbeats(obj_arg /* w */) { return io_result_mk_ok(lean_uint64_to_nat(get_num_heartbeats())); } +/* addHeartbeats (count : Int64) : BaseIO Unit */ +extern "C" LEAN_EXPORT obj_res lean_io_add_heartbeats(int64_t count, obj_arg /* w */) { + add_heartbeats(count); + return io_result_mk_ok(box(0)); +} + extern "C" LEAN_EXPORT obj_res lean_io_getenv(b_obj_arg env_var, obj_arg) { #if defined(LEAN_EMSCRIPTEN) // HACK(WN): getenv doesn't seem to work in Emscripten even though it should diff --git a/stage0/stdlib/Init/Data/BitVec/Lemmas.c b/stage0/stdlib/Init/Data/BitVec/Lemmas.c index 482c0058ff..e198f6ff1a 100644 --- a/stage0/stdlib/Init/Data/BitVec/Lemmas.c +++ b/stage0/stdlib/Init/Data/BitVec/Lemmas.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.BitVec.Lemmas -// Imports: Init.Data.Bool Init.Data.BitVec.Basic Init.Data.Fin.Lemmas Init.Data.Nat.Lemmas +// Imports: Init.Data.Bool Init.Data.BitVec.Basic Init.Data.Fin.Lemmas Init.Data.Nat.Lemmas Init.Data.Nat.Mod #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -87,6 +87,7 @@ lean_object* initialize_Init_Data_Bool(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_BitVec_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Fin_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Nat_Mod(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_BitVec_Lemmas(uint8_t builtin, lean_object* w) { lean_object * res; @@ -104,6 +105,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Lemmas(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Nat_Mod(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Nat/Bitwise/Basic.c b/stage0/stdlib/Init/Data/Nat/Bitwise/Basic.c index 54afb32515..7ea1a20b0a 100644 --- a/stage0/stdlib/Init/Data/Nat/Bitwise/Basic.c +++ b/stage0/stdlib/Init/Data/Nat/Bitwise/Basic.c @@ -284,7 +284,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_nat_shiftr(x_1, x_2); x_4 = lean_unsigned_to_nat(1u); -x_5 = lean_nat_land(x_3, x_4); +x_5 = lean_nat_land(x_4, x_3); lean_dec(x_3); x_6 = lean_unsigned_to_nat(0u); x_7 = lean_nat_dec_eq(x_5, x_6); diff --git a/stage0/stdlib/Init/Data/String/Basic.c b/stage0/stdlib/Init/Data/String/Basic.c index cc4df40982..98274bd29b 100644 --- a/stage0/stdlib/Init/Data/String/Basic.c +++ b/stage0/stdlib/Init/Data/String/Basic.c @@ -236,6 +236,7 @@ LEAN_EXPORT lean_object* l_String_takeRightWhile___boxed(lean_object*, lean_obje LEAN_EXPORT lean_object* l_String_get_x21___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_nextUntil(lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); +LEAN_EXPORT uint8_t l_Substring_sameAs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_toLower(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -245,6 +246,7 @@ LEAN_EXPORT lean_object* l_String_prev___boxed(lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Substring_toString___boxed(lean_object*); LEAN_EXPORT lean_object* l_String_extract___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Substring_sameAs___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_contains___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_split___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_map(lean_object*, lean_object*); @@ -5561,6 +5563,42 @@ x_1 = l_Substring_hasBeq___closed__1; return x_1; } } +LEAN_EXPORT uint8_t l_Substring_sameAs(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_nat_dec_eq(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_2); +lean_dec(x_1); +x_6 = 0; +return x_6; +} +else +{ +uint8_t x_7; +x_7 = l_Substring_beq(x_1, x_2); +return x_7; +} +} +} +LEAN_EXPORT lean_object* l_Substring_sameAs___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Substring_sameAs(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l_String_drop(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Init/Grind.c b/stage0/stdlib/Init/Grind.c index e989eddf7c..332ff31298 100644 --- a/stage0/stdlib/Init/Grind.c +++ b/stage0/stdlib/Init/Grind.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Grind -// Imports: Init.Grind.Norm Init.Grind.Tactics Init.Grind.Lemmas +// Imports: Init.Grind.Norm Init.Grind.Tactics Init.Grind.Lemmas Init.Grind.Cases #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,6 +16,7 @@ extern "C" { lean_object* initialize_Init_Grind_Norm(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Tactics(uint8_t builtin, lean_object*); lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Grind_Cases(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind(uint8_t builtin, lean_object* w) { lean_object * res; @@ -30,6 +31,9 @@ lean_dec_ref(res); res = initialize_Init_Grind_Lemmas(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Grind_Cases(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Grind/Cases.c b/stage0/stdlib/Init/Grind/Cases.c new file mode 100644 index 0000000000..3904fb59dc --- /dev/null +++ b/stage0/stdlib/Init/Grind/Cases.c @@ -0,0 +1,29 @@ +// Lean compiler output +// Module: Init.Grind.Cases +// Imports: Init.Core +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* initialize_Init_Core(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Grind_Cases(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Core(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Grind/Tactics.c b/stage0/stdlib/Init/Grind/Tactics.c index 9c72cca04c..23d6551262 100644 --- a/stage0/stdlib/Init/Grind/Tactics.c +++ b/stage0/stdlib/Init/Grind/Tactics.c @@ -13,6 +13,81 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT uint8_t l_Lean_Grind_Config_eager___default; +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16_(uint8_t, uint8_t); +static lean_object* l_Lean_Grind_instBEqConfig___closed__1; +LEAN_EXPORT lean_object* l_Lean_Grind_instBEqConfig; +LEAN_EXPORT uint8_t l_Lean_Grind_instInhabitedConfig; +LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16____boxed(lean_object*, lean_object*); +static uint8_t _init_l_Lean_Grind_Config_eager___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Grind_instInhabitedConfig() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16_(uint8_t x_1, uint8_t x_2) { +_start: +{ +if (x_1 == 0) +{ +if (x_2 == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +return x_2; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = lean_unbox(x_2); +lean_dec(x_2); +x_5 = l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16_(x_3, x_4); +x_6 = lean_box(x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Grind_instBEqConfig___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_16____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Grind_instBEqConfig() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Grind_instBEqConfig___closed__1; +return x_1; +} +} lean_object* initialize_Init_Tactics(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Grind_Tactics(uint8_t builtin, lean_object* w) { @@ -22,6 +97,12 @@ _G_initialized = true; res = initialize_Init_Tactics(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Grind_Config_eager___default = _init_l_Lean_Grind_Config_eager___default(); +l_Lean_Grind_instInhabitedConfig = _init_l_Lean_Grind_instInhabitedConfig(); +l_Lean_Grind_instBEqConfig___closed__1 = _init_l_Lean_Grind_instBEqConfig___closed__1(); +lean_mark_persistent(l_Lean_Grind_instBEqConfig___closed__1); +l_Lean_Grind_instBEqConfig = _init_l_Lean_Grind_instBEqConfig(); +lean_mark_persistent(l_Lean_Grind_instBEqConfig); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Prelude.c b/stage0/stdlib/Init/Prelude.c index 4eb2e12d0b..179dce9ebe 100644 --- a/stage0/stdlib/Init/Prelude.c +++ b/stage0/stdlib/Init/Prelude.c @@ -398,6 +398,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Array_mkArray1___rarg___closed__1; LEAN_EXPORT lean_object* l_EStateM_run___rarg(lean_object*, lean_object*); lean_object* lean_string_mk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_ReaderT_instMonadLift(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l_instInhabitedUInt64; static lean_object* l_Lean_instInhabitedMacroScopesView___closed__1; @@ -511,6 +512,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_instMonadQuotationUnexpandM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Macro_instMonadRefMacroM___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_mul___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getTailPos_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_instMonadWithReaderOfOfMonadFunctor___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_readThe___rarg(lean_object*); @@ -8100,6 +8102,71 @@ lean_dec(x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getTailPos_x3f(lean_object* x_1, uint8_t x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 3); +lean_inc(x_3); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +return x_4; +} +case 1: +{ +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +if (x_5 == 0) +{ +if (x_2 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +else +{ +lean_object* x_8; +x_8 = lean_box(0); +return x_8; +} +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +return x_10; +} +} +default: +{ +lean_object* x_11; +x_11 = lean_box(0); +return x_11; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getTailPos_x3f___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_SourceInfo_getTailPos_x3f(x_1, x_3); +lean_dec(x_1); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_Syntax_node1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { diff --git a/stage0/stdlib/Init/System/IO.c b/stage0/stdlib/Init/System/IO.c index 5fbe33c6fc..890812cf9f 100644 --- a/stage0/stdlib/Init/System/IO.c +++ b/stage0/stdlib/Init/System/IO.c @@ -13,18 +13,23 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711_(uint8_t, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10; LEAN_EXPORT lean_object* l_IO_FS_Handle_lock___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_instInhabitedStream___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_unsafeIO___rarg(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_readToEnd___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_println___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__2; LEAN_EXPORT lean_object* l_IO_eprintln___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_ordTaskState____x40_Init_System_IO___hyg_1402____boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_instInhabitedStream___closed__1; lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__7; lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l_termPrintln_x21_______closed__9; static lean_object* l_IO_instOrdTaskState___closed__1; +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_toIO_x27(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_eprint___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_io_cancel(lean_object*, lean_object*); @@ -51,7 +56,6 @@ LEAN_EXPORT lean_object* l_Lean_runEval(lean_object*); static lean_object* l_IO_FS_Stream_ofBuffer___elambda__3___closed__1; LEAN_EXPORT lean_object* l_IO_mkRef___rarg(lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2; lean_object* l_System_FilePath_join(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_hasFinished___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_removeFile___boxed(lean_object*, lean_object*); @@ -61,21 +65,22 @@ LEAN_EXPORT lean_object* l_IO_Process_spawn___boxed(lean_object*, lean_object*); static uint32_t l_IO_AccessRight_flags___closed__5; LEAN_EXPORT lean_object* l_MonadExcept_orElse___at_instOrElseEIO___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_io_remove_file(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9; static uint32_t l_IO_AccessRight_flags___closed__11; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__11; LEAN_EXPORT lean_object* l_BaseIO_mapTasks_go___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_println(lean_object*); lean_object* lean_io_prim_handle_read(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_readFile___boxed(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945_(lean_object*, lean_object*); lean_object* lean_io_check_canceled(lean_object*); LEAN_EXPORT lean_object* l_IO_appPath___boxed(lean_object*); LEAN_EXPORT lean_object* l_EIO_toIO___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_hasFinished(lean_object*); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__8; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__12; +LEAN_EXPORT lean_object* l_IO_CancelToken_isSet(lean_object*, lean_object*); static uint32_t l_IO_FS_instInhabitedStream___lambda__1___closed__1; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6; LEAN_EXPORT lean_object* l_EIO_asTask(lean_object*, lean_object*); lean_object* l_EStateM_instInhabited___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_toIO_x27___rarg(lean_object*, lean_object*); @@ -86,7 +91,7 @@ LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_I static lean_object* l_termPrintln_x21_______closed__8; static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__3; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3; LEAN_EXPORT lean_object* l_Lean_instEvalUnit(lean_object*); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__17; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__6(lean_object*, lean_object*); @@ -98,6 +103,7 @@ lean_object* l_String_quote(lean_object*); lean_object* lean_io_prim_handle_flush(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_mapTasks(lean_object*, lean_object*); static lean_object* l_IO_instToStringTaskState___closed__1; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__27; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__3; LEAN_EXPORT lean_object* l_EIO_bindTask___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,22 +114,20 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FileRight_other___default; LEAN_EXPORT lean_object* l_IO_FS_rename___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FileRight_flags___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_mapTasks___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_instOrElseEIO(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888_(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20; static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__4; LEAN_EXPORT lean_object* l_IO_withStderr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__3___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_instInhabitedSystemTime___closed__2; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__15; static lean_object* l_IO_TaskState_noConfusion___rarg___closed__1; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6; LEAN_EXPORT lean_object* l_IO_FS_instOrdSystemTime; LEAN_EXPORT lean_object* l_Lean_instEvalUnit___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_io_eprintln(lean_object*, lean_object*); @@ -143,23 +147,20 @@ LEAN_EXPORT lean_object* l_IO_instMonadLiftSTRealWorldBaseIO(lean_object*); lean_object* lean_io_metadata(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_wait___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_runEval___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11; LEAN_EXPORT lean_object* l_IO_iterate(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__1; LEAN_EXPORT lean_object* l_IO_FS_Mode_noConfusion___rarg(uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_bindTask___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_System_FilePath_metadata___boxed(lean_object*, lean_object*); static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__10; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21; lean_object* lean_io_getenv(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__1(lean_object*, lean_object*); lean_object* l_ByteArray_extract(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7; static lean_object* l_IO_FileRight_user___default___closed__1; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__3(lean_object*, lean_object*); static uint32_t l_IO_AccessRight_flags___closed__4; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7; LEAN_EXPORT lean_object* l_IO_withStderr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__16; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__9; @@ -169,16 +170,15 @@ static uint32_t l_IO_AccessRight_flags___closed__2; LEAN_EXPORT lean_object* l_IO_checkCanceled___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_monoMsNow___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_mapTasks(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893_(lean_object*, lean_object*); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__6; static lean_object* l_termPrintln_x21_______closed__13; LEAN_EXPORT lean_object* l_allocprof___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_instInhabitedSystemTime; LEAN_EXPORT lean_object* l___auto____x40_Init_System_IO___hyg_1809_; LEAN_EXPORT lean_object* l_Lean_instEval(lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7; static lean_object* l_Lean_instEvalUnit___rarg___closed__2; static lean_object* l_termPrintln_x21_______closed__3; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1; static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__10; LEAN_EXPORT lean_object* l_IO_FS_FileType_toCtorIdx(uint8_t); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__14; @@ -192,23 +192,22 @@ LEAN_EXPORT lean_object* l_instInhabitedEIO___rarg(lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__5; LEAN_EXPORT lean_object* l_IO_TaskState_toCtorIdx(uint8_t); static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__8; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12; LEAN_EXPORT lean_object* l_IO_Process_Stdio_noConfusion(lean_object*); LEAN_EXPORT lean_object* l_instMonadFinallyBaseIO; LEAN_EXPORT lean_object* l_System_FilePath_readDir___boxed(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__1; static uint32_t l_IO_AccessRight_flags___closed__12; LEAN_EXPORT lean_object* l_Lean_instEvalUnit___rarg(uint8_t, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3; static uint32_t l_IO_AccessRight_flags___closed__8; lean_object* l_EStateM_instMonad(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_ofBuffer___elambda__3___closed__2; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__5; LEAN_EXPORT lean_object* l_IO_instDecidableEqTaskState___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_getStdout___boxed(lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2; static lean_object* l_IO_FS_instInhabitedStream___closed__3; LEAN_EXPORT lean_object* l_System_FilePath_walkDir_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_FileType_noConfusion(lean_object*); +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_readBinToEnd___boxed(lean_object*, lean_object*); lean_object* l_ByteArray_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ByteArray_findIdx_x3f_loop___at_IO_FS_Stream_ofBuffer___spec__1(lean_object*, lean_object*); @@ -217,6 +216,7 @@ LEAN_EXPORT lean_object* l_IO_FS_lines(lean_object*, lean_object*); static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__3; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__4; lean_object* lean_dbg_sleep(uint32_t, lean_object*); +LEAN_EXPORT lean_object* l_IO_CancelToken_isSet___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__29; LEAN_EXPORT lean_object* l_MonadExcept_orElse___at_instOrElseEIO___spec__1(lean_object*, lean_object*); @@ -239,21 +239,20 @@ LEAN_EXPORT lean_object* l_IO_cancel___boxed(lean_object*, lean_object*, lean_ob static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__19; static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__5; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__17; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4; LEAN_EXPORT lean_object* l_IO_withStdout___at_Lean_runEval___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_createDirAll(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9; LEAN_EXPORT lean_object* l_IO_TaskState_noConfusion(lean_object*); lean_object* lean_get_stdout(lean_object*); static lean_object* l_termPrintln_x21_______closed__4; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22; LEAN_EXPORT lean_object* l_instInhabitedEIO(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__31; LEAN_EXPORT uint32_t l_IO_AccessRight_flags(lean_object*); LEAN_EXPORT lean_object* l_IO_instReprTaskState; LEAN_EXPORT lean_object* l_IO_FS_writeBinFile(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14; lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24; LEAN_EXPORT lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); static lean_object* l_IO_Process_output___closed__1; LEAN_EXPORT lean_object* l_IO_TaskState_noConfusion___rarg___lambda__1___boxed(lean_object*); @@ -263,7 +262,9 @@ LEAN_EXPORT lean_object* l_EIO_mapTask(lean_object*, lean_object*, lean_object*) uint8_t l_String_isEmpty(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Mode_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_sleep___lambda__1(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14; LEAN_EXPORT lean_object* l_IO_FS_instInhabitedStream___lambda__2(size_t, lean_object*); +LEAN_EXPORT lean_object* l_IO_CancelToken_new(lean_object*); LEAN_EXPORT lean_object* l_unsafeEIO(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_TaskState_noConfusion___rarg(uint8_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_mapTask___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,11 +277,14 @@ LEAN_EXPORT lean_object* l_IO_getStdin___boxed(lean_object*); static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__10; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__21; static lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__1___closed__1; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__4; LEAN_EXPORT lean_object* l_IO_eprint(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_ofExcept(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_io_allocprof(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__6(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__16; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__8; @@ -288,40 +292,42 @@ LEAN_EXPORT lean_object* l_IO_TaskState_noConfusion___rarg___lambda__1(lean_obje LEAN_EXPORT lean_object* l_IO_FS_instInhabitedStream___lambda__3___boxed(lean_object*, lean_object*); lean_object* l_String_dropRight(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__25; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_truncate___boxed(lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__1___closed__2; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10; LEAN_EXPORT lean_object* l_System_FilePath_isDir(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_Process_Stdio_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_waitAny___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instEvalOfRepr(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__4; LEAN_EXPORT lean_object* l_IO_eprintln___at___private_Init_System_IO_0__IO_eprintlnAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); lean_object* lean_io_timeit(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20; lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_putStrLn(lean_object*, lean_object*, lean_object*); extern lean_object* l_ByteArray_empty; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18; LEAN_EXPORT lean_object* l_System_FilePath_walkDir_go(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__2; LEAN_EXPORT lean_object* l_IO_mapTasks___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_add_heartbeats(uint64_t, lean_object*); static lean_object* l_IO_FS_instBEqSystemTime___closed__1; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_CancelToken_set___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_mapTask___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_mapTasks___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8; LEAN_EXPORT lean_object* l_IO_instLTTaskState; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__11; LEAN_EXPORT lean_object* l_IO_Process_run___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24; static lean_object* l_IO_Process_run___closed__1; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7; LEAN_EXPORT lean_object* l_instMonadEIO(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_System_FilePath_walkDir_go___spec__1___closed__1; LEAN_EXPORT lean_object* l_IO_getTaskState___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__1; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__5; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_instMinTaskState(uint8_t, uint8_t); lean_object* lean_io_wait_any(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -332,27 +338,32 @@ LEAN_EXPORT lean_object* l_IO_FS_withFile(lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__30; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__14; lean_object* lean_uint64_to_nat(uint64_t); +LEAN_EXPORT lean_object* l_IO_CancelToken_set(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_mapTasks___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_lazyPure___rarg(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6; +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_sleep(uint32_t, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_readToEnd_loop(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_removeDirAll___boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3; LEAN_EXPORT lean_object* l_IO_Process_getCurrentDir___boxed(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_timeit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AccessRight_flags___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__5(lean_object*, size_t, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__12; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_mk___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23; LEAN_EXPORT lean_object* l_IO_FS_Handle_isTty___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_readToEnd_loop___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_print(lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__28; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16; static lean_object* l_instMonadFinallyEIO___closed__1; LEAN_EXPORT lean_object* l_IO_Process_Stdio_noConfusion___rarg(uint8_t, uint8_t, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5; LEAN_EXPORT lean_object* l_BaseIO_mapTasks___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_appDir(lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lean_runEval___spec__4(lean_object*, lean_object*, lean_object*); @@ -363,13 +374,13 @@ static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_S lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); lean_object* lean_io_process_spawn(lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__1___closed__3; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__2; LEAN_EXPORT lean_object* l_IO_FS_removeDirAll(lean_object*, lean_object*); lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_System_FilePath_parent(lean_object*); lean_object* l_Int_repr(lean_object*); static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__2; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; lean_object* lean_io_mono_nanos_now(lean_object*); lean_object* l_panic___at_String_fromUTF8_x21___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____boxed(lean_object*, lean_object*); @@ -382,10 +393,11 @@ static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNone lean_object* lean_get_stderr(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_instInhabitedStream___lambda__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_createDirAll___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__1; LEAN_EXPORT lean_object* l_BaseIO_mapTasks_go___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_instMinTaskState___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_Process_output(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23; LEAN_EXPORT lean_object* l_IO_Process_exit___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_print___at_IO_println___spec__1(lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -403,22 +415,23 @@ LEAN_EXPORT lean_object* l_IO_withStdout(lean_object*, lean_object*); lean_object* lean_io_prim_handle_write(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_ordTaskState____x40_Init_System_IO___hyg_1402_(uint8_t, uint8_t); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__1; LEAN_EXPORT lean_object* l_IO_Process_Child_wait___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3; LEAN_EXPORT lean_object* l_instMonadBaseIO; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(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___auto____x40_Init_System_IO___hyg_1809____closed__6; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6; LEAN_EXPORT lean_object* l_EIO_bindTask___rarg___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_instReprMetadata___closed__1; static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__9; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__5; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_System_FilePath_walkDir_go___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19; LEAN_EXPORT lean_object* l_Lean_instEvalIO___rarg(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___rarg___lambda__1(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14; lean_object* lean_get_set_stderr(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__3; LEAN_EXPORT lean_object* l_EIO_toBaseIO(lean_object*, lean_object*); @@ -426,13 +439,12 @@ LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__5___boxed(lean_objec static uint32_t l_IO_AccessRight_flags___closed__6; LEAN_EXPORT lean_object* l_IO_sleep___boxed(lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__13; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__17; extern lean_object* l_Std_Format_defWidth; static lean_object* l_Lean_instEvalUnit___rarg___closed__1; lean_object* lean_string_from_utf8(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__5(lean_object*, size_t, lean_object*); static lean_object* l_instMonadEIO___closed__1; LEAN_EXPORT uint8_t l_IO_Process_StdioConfig_stdin___default; @@ -440,23 +452,23 @@ static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNone LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_runEval___spec__1(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_toEIO___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_setStderr___boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5; LEAN_EXPORT lean_object* l_IO_getRandomBytes___boxed(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8; LEAN_EXPORT uint8_t l_IO_TaskState_ofNat(lean_object*); lean_object* lean_usize_to_nat(size_t); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9; LEAN_EXPORT lean_object* l_IO_FS_instReprDirEntry; LEAN_EXPORT lean_object* l_IO_instToStringTaskState; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4; static lean_object* l_IO_instReprTaskState___closed__1; static lean_object* l_IO_FS_instBEqFileType___closed__1; lean_object* lean_io_process_set_current_dir(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__17; lean_object* lean_io_prim_handle_get_line(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_AccessRight_write___default; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__2; LEAN_EXPORT lean_object* l_IO_TaskState_toString(uint8_t); static lean_object* l_IO_FS_Stream_ofBuffer___closed__1; LEAN_EXPORT lean_object* l_IO_println___at_Lean_instEvalOfRepr___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19; static lean_object* l_termPrintln_x21_______closed__12; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__7; LEAN_EXPORT lean_object* l_IO_FS_readFile(lean_object*, lean_object*); @@ -465,35 +477,30 @@ LEAN_EXPORT lean_object* l_IO_FS_FileType_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_runEval___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_Process_StdioConfig_stderr___default; LEAN_EXPORT lean_object* l_unsafeBaseIO___rarg(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6; static lean_object* l_termPrintln_x21_______closed__15; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_IO_FS_removeDirAll___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_createDir___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_mapTask(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_mapTasks(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_bindTask___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___lambda__1(lean_object*, lean_object*); static lean_object* l_termPrintln_x21_______closed__5; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4; LEAN_EXPORT lean_object* l_IO_FS_writeFile___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_IO_Process_SpawnArgs_setsid___default; -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853_(uint8_t, uint8_t); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__12; LEAN_EXPORT lean_object* l_IO_TaskState_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16; LEAN_EXPORT lean_object* l_System_FilePath_walkDir_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_IO_AccessRight_flags___closed__1; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20; LEAN_EXPORT lean_object* l_EIO_catchExceptions___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13; LEAN_EXPORT lean_object* l_IO_withStdout___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_mapTasks_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withFile___rarg(lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12; LEAN_EXPORT lean_object* l_BaseIO_toIO(lean_object*); static lean_object* l_IO_Process_run___closed__2; +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_lines___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_mapTasks_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__4; @@ -509,17 +516,13 @@ LEAN_EXPORT lean_object* l_Lean_instEvalIO(lean_object*); LEAN_EXPORT lean_object* l_EIO_bindTask(lean_object*, lean_object*, lean_object*); static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__11; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21; LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_Process_SpawnArgs_args___default; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__6; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945____boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14; static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__7; static lean_object* l_IO_FS_withIsolatedStreams___rarg___closed__2; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11; LEAN_EXPORT lean_object* l_IO_FS_instInhabitedStream___lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_TaskState_toString___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_createDirAll___lambda__2(lean_object*, lean_object*, lean_object*); @@ -528,18 +531,19 @@ static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__7; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); extern lean_object* l_Task_Priority_dedicated; static lean_object* l_IO_withStdin___rarg___lambda__3___closed__1; +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_setAccessRights___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_putStr___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_bindTask___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18; LEAN_EXPORT lean_object* l_IO_withStdin___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10; LEAN_EXPORT lean_object* l_EIO_bindTask___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1; LEAN_EXPORT lean_object* l_IO_Process_setCurrentDir___boxed(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3; LEAN_EXPORT lean_object* l_EIO_mapTasks___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__2; LEAN_EXPORT lean_object* l_Lean_instEvalBaseIO___rarg(lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__19; @@ -547,21 +551,18 @@ LEAN_EXPORT lean_object* l_IO_FS_instReprFileType; lean_object* lean_io_app_path(lean_object*); uint32_t l_String_back(lean_object*); LEAN_EXPORT lean_object* l_System_FilePath_isDir___boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16; static lean_object* l_instMonadExceptOfEIO___closed__1; LEAN_EXPORT lean_object* l_IO_Process_getPID___boxed(lean_object*); static uint32_t l_IO_AccessRight_flags___closed__10; LEAN_EXPORT lean_object* l_IO_mapTask___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_asTask___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__23; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022____boxed(lean_object*, lean_object*); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__6; static lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1___closed__2; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__12; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139_(lean_object*, lean_object*); lean_object* lean_io_realpath(lean_object*, lean_object*); lean_object* lean_io_get_task_state(lean_object*, lean_object*); lean_object* lean_string_to_utf8(lean_object*); @@ -607,6 +608,7 @@ LEAN_EXPORT lean_object* l_IO_FS_Stream_Buffer_data___default; LEAN_EXPORT lean_object* l_IO_TaskState_ofNat___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___rarg___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_Process_Child_takeStdin___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9; LEAN_EXPORT lean_object* l_IO_setStdout___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BaseIO_toIO___rarg(lean_object*, lean_object*); static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__13; @@ -624,14 +626,17 @@ LEAN_EXPORT lean_object* l_Lean_instEval___rarg(lean_object*, lean_object*, uint static lean_object* l_IO_TaskState_toString___closed__3; static lean_object* l_termPrintln_x21_______closed__17; LEAN_EXPORT lean_object* l_IO_instLETaskState; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20; lean_object* lean_io_read_dir(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_monoNanosNow___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_unlock___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_mapTask___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_readBinToEnd_loop___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858____boxed(lean_object*, lean_object*); uint8_t lean_byte_array_get(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3; LEAN_EXPORT lean_object* l_unsafeEIO___rarg(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5; size_t lean_usize_add(size_t, size_t); lean_object* lean_io_current_dir(lean_object*); LEAN_EXPORT lean_object* l_IO_getStderr___boxed(lean_object*); @@ -639,18 +644,17 @@ uint8_t lean_uint32_dec_lt(uint32_t, uint32_t); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__9; static lean_object* l_IO_FS_instReprDirEntry___closed__1; LEAN_EXPORT lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633_; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____boxed(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10; lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18; LEAN_EXPORT lean_object* l_IO_FileRight_group___default; LEAN_EXPORT lean_object* l_IO_FS_FileType_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__11; LEAN_EXPORT lean_object* l_IO_FS_instReprMetadata; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4; +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__3(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2; LEAN_EXPORT lean_object* l_IO_mapTask___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_IO_FS_instOrdSystemTime___closed__1; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -660,15 +664,16 @@ static lean_object* l_IO_appDir___closed__2; uint8_t lean_int_dec_eq(lean_object*, lean_object*); static lean_object* l_IO_FS_instInhabitedStream___closed__5; LEAN_EXPORT lean_object* l_IO_FS_Stream_putStrLn(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_addHeartbeats___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_initializing___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_realPath___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_lines_read(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15; lean_object* l_EStateM_instMonadExceptOfOfBacktrackable___rarg(lean_object*); LEAN_EXPORT lean_object* l_BaseIO_toEIO(lean_object*, lean_object*); static lean_object* l_termPrintln_x21_______closed__11; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__16; lean_object* lean_io_prim_handle_truncate(lean_object*, lean_object*); static lean_object* l_instMonadExceptOfEIO___closed__2; @@ -678,10 +683,11 @@ LEAN_EXPORT lean_object* l_IO_FS_Mode_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_IO_asTask___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_eprintln(lean_object*); lean_object* lean_io_wait(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__1; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_writeBinFile___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7; LEAN_EXPORT lean_object* l_IO_eprint___at_IO_eprintln___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_asTask(lean_object*); LEAN_EXPORT lean_object* l_BaseIO_toEIO___rarg(lean_object*, lean_object*); @@ -691,7 +697,9 @@ LEAN_EXPORT lean_object* l_IO_ofExcept___rarg(lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_IO_withStdin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_instReprSystemTime___closed__1; uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__4; static uint32_t l_IO_AccessRight_flags___closed__7; +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_instEvalIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__7; LEAN_EXPORT lean_object* l_IO_sleep___lambda__1___boxed(lean_object*, lean_object*); @@ -703,7 +711,6 @@ LEAN_EXPORT lean_object* l_IO_FS_readBinFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instEvalOfRepr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_asTask___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_termPrintln_x21_______closed__6; -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_rewind___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_bindTask(lean_object*, lean_object*); @@ -713,7 +720,6 @@ LEAN_EXPORT lean_object* l_Lean_instEvalBaseIO(lean_object*); static lean_object* l_IO_tacticNonempty__list____x40_Init_System_IO___hyg_1633____closed__16; LEAN_EXPORT lean_object* l_IO_withStdin___at_Lean_runEval___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_instMonadLiftSTRealWorldBaseIO___rarg(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11; LEAN_EXPORT uint8_t l_IO_Process_StdioConfig_stdout___default; LEAN_EXPORT lean_object* l_IO___aux__Init__System__IO______macroRules__IO__tacticNonempty__list__1(lean_object*, lean_object*, lean_object*); extern uint8_t l_System_Platform_isWindows; @@ -726,6 +732,7 @@ LEAN_EXPORT lean_object* l_IO_withStdin___rarg___lambda__1___boxed(lean_object*, lean_object* l_EStateM_nonBacktrackable(lean_object*); lean_object* l_String_toSubstring_x27(lean_object*); LEAN_EXPORT lean_object* l_IO_Process_run(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13; LEAN_EXPORT lean_object* l_IO_setAccessRights(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams(lean_object*, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__9; @@ -736,29 +743,29 @@ lean_object* lean_io_prim_handle_rewind(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_ofBuffer___closed__2; static lean_object* l___auto____x40_Init_System_IO___hyg_1809____closed__5; lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19; static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__18; LEAN_EXPORT lean_object* l_EIO_mapTask___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_instMonadFinallyEIO(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706_(uint8_t, lean_object*); static lean_object* l___aux__Init__System__IO______macroRules__termPrintln_x21______1___closed__14; static lean_object* l_termPrintln_x21_______closed__7; static uint32_t l_IO_AccessRight_flags___closed__9; LEAN_EXPORT lean_object* lean_io_eprint(lean_object*, lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15; LEAN_EXPORT lean_object* l_IO_Process_Stdio_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Mode_noConfusion(lean_object*); +static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__8; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__1; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6; static lean_object* l_IO_TaskState_toString___closed__1; LEAN_EXPORT lean_object* l_IO_FS_withFile___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Stream_ofBuffer___elambda__1(lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6; -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10; lean_object* lean_io_create_dir(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_putStrLn___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_EIO_catchExceptions(lean_object*, lean_object*); lean_object* lean_io_process_get_current_dir(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_instLTSystemTime; static lean_object* l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__12; +static lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8; LEAN_EXPORT lean_object* l_Lean_instEvalOfRepr___rarg(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_Handle_read___boxed(lean_object*, lean_object*, lean_object*); static lean_object* _init_l_instMonadEIO___closed__1() { @@ -3499,6 +3506,16 @@ x_2 = lean_io_get_num_heartbeats(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_IO_addHeartbeats___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; lean_object* x_4; +x_3 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_4 = lean_io_add_heartbeats(x_3, x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_IO_FS_Mode_toCtorIdx(uint8_t x_1) { _start: { @@ -4814,7 +4831,7 @@ x_7 = lean_apply_2(x_4, x_6, x_3); return x_7; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__1() { _start: { lean_object* x_1; @@ -4822,29 +4839,29 @@ x_1 = lean_mk_string_from_bytes("root", 4); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2; +x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__4() { _start: { lean_object* x_1; @@ -4852,29 +4869,29 @@ x_1 = lean_mk_string_from_bytes(" := ", 4); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3; +x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; 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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -4883,7 +4900,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__8() { _start: { lean_object* x_1; @@ -4891,17 +4908,17 @@ x_1 = lean_mk_string_from_bytes("FilePath.mk ", 12); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10() { _start: { lean_object* x_1; @@ -4909,17 +4926,17 @@ x_1 = lean_mk_string_from_bytes(",", 1); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__12() { _start: { lean_object* x_1; @@ -4927,17 +4944,17 @@ x_1 = lean_mk_string_from_bytes("fileName", 8); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -4946,7 +4963,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15() { _start: { lean_object* x_1; @@ -4954,35 +4971,35 @@ x_1 = lean_mk_string_from_bytes("{ ", 2); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15; x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19() { _start: { lean_object* x_1; @@ -4990,17 +5007,17 @@ x_1 = lean_mk_string_from_bytes(" }", 2); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19; +x_1 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638_(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; 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; @@ -5008,13 +5025,13 @@ x_3 = lean_ctor_get(x_1, 0); x_4 = l_String_quote(x_3); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9; +x_6 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9; x_7 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); x_8 = lean_unsigned_to_nat(0u); x_9 = l_Repr_addAppParen(x_7, x_8); -x_10 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7; +x_10 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7; x_11 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -5022,11 +5039,11 @@ x_12 = 0; x_13 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_13, 0, x_11); lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_12); -x_14 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6; +x_14 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6; x_15 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11; +x_16 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -5034,11 +5051,11 @@ x_18 = lean_box(1); x_19 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13; +x_20 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13; x_21 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); -x_22 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_22 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; x_23 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -5046,7 +5063,7 @@ x_24 = lean_ctor_get(x_1, 1); x_25 = l_String_quote(x_24); x_26 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_26, 0, x_25); -x_27 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14; +x_27 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14; x_28 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); @@ -5056,15 +5073,15 @@ lean_ctor_set_uint8(x_29, sizeof(void*)*1, x_12); x_30 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_30, 0, x_23); lean_ctor_set(x_30, 1, x_29); -x_31 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18; +x_31 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18; x_32 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20; +x_33 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20; x_34 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17; +x_35 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17; x_36 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); @@ -5074,11 +5091,11 @@ lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_12); return x_37; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633_(x_1, x_2); +x_3 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -5088,7 +5105,7 @@ static lean_object* _init_l_IO_FS_instReprDirEntry___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____boxed), 2, 0); return x_1; } } @@ -5182,7 +5199,7 @@ x_6 = l_IO_FS_FileType_noConfusion___rarg(x_4, x_5, x_3); return x_6; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__1() { _start: { lean_object* x_1; @@ -5190,33 +5207,33 @@ x_1 = lean_mk_string_from_bytes("IO.FS.FileType.dir", 18); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5224,23 +5241,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__6; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5248,7 +5265,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7() { _start: { lean_object* x_1; @@ -5256,33 +5273,33 @@ x_1 = lean_mk_string_from_bytes("IO.FS.FileType.file", 19); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5290,23 +5307,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__6; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5314,7 +5331,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13() { _start: { lean_object* x_1; @@ -5322,33 +5339,33 @@ x_1 = lean_mk_string_from_bytes("IO.FS.FileType.symlink", 22); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5356,23 +5373,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__6; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5380,7 +5397,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19() { _start: { lean_object* x_1; @@ -5388,33 +5405,33 @@ x_1 = lean_mk_string_from_bytes("IO.FS.FileType.other", 20); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5422,23 +5439,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_System_IO_0__IO_reprTaskState____x40_Init_System_IO___hyg_1185____closed__6; -x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20; +x_2 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20; x_3 = lean_alloc_ctor(4, 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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23; +x_1 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5446,7 +5463,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706_(uint8_t x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711_(uint8_t x_1, lean_object* x_2) { _start: { switch (x_1) { @@ -5458,14 +5475,14 @@ x_4 = lean_nat_dec_le(x_3, x_2); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; -x_5 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4; +x_5 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4; x_6 = l_Repr_addAppParen(x_5, x_2); return x_6; } else { lean_object* x_7; lean_object* x_8; -x_7 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6; +x_7 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6; x_8 = l_Repr_addAppParen(x_7, x_2); return x_8; } @@ -5478,14 +5495,14 @@ x_10 = lean_nat_dec_le(x_9, x_2); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10; +x_11 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10; x_12 = l_Repr_addAppParen(x_11, x_2); return x_12; } else { lean_object* x_13; lean_object* x_14; -x_13 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12; +x_13 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12; x_14 = l_Repr_addAppParen(x_13, x_2); return x_14; } @@ -5498,14 +5515,14 @@ x_16 = lean_nat_dec_le(x_15, x_2); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; -x_17 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16; +x_17 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16; x_18 = l_Repr_addAppParen(x_17, x_2); return x_18; } else { lean_object* x_19; lean_object* x_20; -x_19 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18; +x_19 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18; x_20 = l_Repr_addAppParen(x_19, x_2); return x_20; } @@ -5518,14 +5535,14 @@ x_22 = lean_nat_dec_le(x_21, x_2); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22; +x_23 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22; x_24 = l_Repr_addAppParen(x_23, x_2); return x_24; } else { lean_object* x_25; lean_object* x_26; -x_25 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24; +x_25 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24; x_26 = l_Repr_addAppParen(x_25, x_2); return x_26; } @@ -5533,13 +5550,13 @@ return x_26; } } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____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___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706_(x_3, x_2); +x_4 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711_(x_3, x_2); lean_dec(x_2); return x_4; } @@ -5548,7 +5565,7 @@ static lean_object* _init_l_IO_FS_instReprFileType___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____boxed), 2, 0); return x_1; } } @@ -5560,7 +5577,7 @@ x_1 = l_IO_FS_instReprFileType___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858_(uint8_t x_1, uint8_t x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -5572,7 +5589,7 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; @@ -5580,7 +5597,7 @@ x_3 = lean_unbox(x_1); lean_dec(x_1); x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853_(x_3, x_4); +x_5 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858_(x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -5589,7 +5606,7 @@ static lean_object* _init_l_IO_FS_instBEqFileType___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858____boxed), 2, 0); return x_1; } } @@ -5601,7 +5618,7 @@ x_1 = l_IO_FS_instBEqFileType___closed__1; return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__1() { _start: { lean_object* x_1; @@ -5609,41 +5626,41 @@ x_1 = lean_mk_string_from_bytes("sec", 3); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1; +x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____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___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2; +x_2 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____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___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3; +x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; 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___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -5652,7 +5669,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6() { _start: { lean_object* x_1; @@ -5660,17 +5677,17 @@ x_1 = lean_mk_string_from_bytes("nsec", 4); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6; +x_1 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893_(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; uint32_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; lean_object* x_34; @@ -5678,7 +5695,7 @@ x_3 = lean_ctor_get(x_1, 0); x_4 = l_Int_repr(x_3); x_5 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5; +x_6 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____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); @@ -5686,11 +5703,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___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4; +x_10 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11; +x_12 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11; x_13 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -5698,11 +5715,11 @@ 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___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7; +x_16 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____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); -x_18 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_18 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; x_19 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -5711,7 +5728,7 @@ x_21 = lean_uint32_to_nat(x_20); x_22 = l___private_Init_Data_Repr_0__Nat_reprFast(x_21); x_23 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_23, 0, x_22); -x_24 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7; +x_24 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7; x_25 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -5721,15 +5738,15 @@ lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_8); x_27 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_27, 0, x_19); lean_ctor_set(x_27, 1, x_26); -x_28 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18; +x_28 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18; x_29 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20; +x_30 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20; x_31 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); -x_32 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17; +x_32 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17; x_33 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -5739,11 +5756,11 @@ lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_8); return x_34; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888_(x_1, x_2); +x_3 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -5753,7 +5770,7 @@ static lean_object* _init_l_IO_FS_instReprSystemTime___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____boxed), 2, 0); return x_1; } } @@ -5765,7 +5782,7 @@ x_1 = l_IO_FS_instReprSystemTime___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint32_t x_4; lean_object* x_5; uint32_t x_6; uint8_t x_7; @@ -5788,11 +5805,11 @@ return x_9; } } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945_(x_1, x_2); +x_3 = l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -5803,7 +5820,7 @@ static lean_object* _init_l_IO_FS_instBEqSystemTime___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2945____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_beqSystemTime____x40_Init_System_IO___hyg_2950____boxed), 2, 0); return x_1; } } @@ -5815,7 +5832,7 @@ x_1 = l_IO_FS_instBEqSystemTime___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint32_t x_4; lean_object* x_5; uint32_t x_6; uint8_t x_7; @@ -5870,11 +5887,11 @@ return x_15; } } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022_(x_1, x_2); +x_3 = l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -5885,7 +5902,7 @@ static lean_object* _init_l_IO_FS_instOrdSystemTime___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3022____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_ordSystemTime____x40_Init_System_IO___hyg_3027____boxed), 2, 0); return x_1; } } @@ -5942,7 +5959,7 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__1() { _start: { lean_object* x_1; @@ -5950,41 +5967,41 @@ x_1 = lean_mk_string_from_bytes("accessed", 8); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1; +x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____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___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2; +x_2 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____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___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3; -x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3; +x_2 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; 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___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5() { _start: { lean_object* x_1; @@ -5992,17 +6009,17 @@ x_1 = lean_mk_string_from_bytes("modified", 8); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5; +x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7() { _start: { lean_object* x_1; @@ -6010,17 +6027,17 @@ x_1 = lean_mk_string_from_bytes("byteSize", 8); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7; +x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9() { _start: { lean_object* x_1; @@ -6028,24 +6045,24 @@ x_1 = lean_mk_string_from_bytes("type", 4); return x_1; } } -static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10() { +static lean_object* _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9; +x_1 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144_(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; uint64_t 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; uint8_t 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; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_unsigned_to_nat(0u); -x_5 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888_(x_3, x_4); -x_6 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14; +x_5 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893_(x_3, x_4); +x_6 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -6053,11 +6070,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___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4; +x_10 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____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___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11; +x_12 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11; x_13 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -6065,16 +6082,16 @@ 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___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6; +x_16 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5; +x_18 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5; x_19 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); x_20 = lean_ctor_get(x_1, 1); -x_21 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888_(x_20, x_4); +x_21 = l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893_(x_20, x_4); x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_6); lean_ctor_set(x_22, 1, x_21); @@ -6090,7 +6107,7 @@ lean_ctor_set(x_25, 1, x_12); x_26 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_14); -x_27 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8; +x_27 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8; x_28 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -6117,7 +6134,7 @@ lean_ctor_set(x_37, 1, x_12); x_38 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_14); -x_39 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10; +x_39 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10; x_40 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); @@ -6125,8 +6142,8 @@ x_41 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_18); x_42 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 8); -x_43 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706_(x_42, x_4); -x_44 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7; +x_43 = l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711_(x_42, x_4); +x_44 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7; x_45 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); @@ -6136,15 +6153,15 @@ lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_8); x_47 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_47, 0, x_41); lean_ctor_set(x_47, 1, x_46); -x_48 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18; +x_48 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18; x_49 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); -x_50 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20; +x_50 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20; x_51 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); -x_52 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17; +x_52 = l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17; x_53 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); @@ -6154,11 +6171,11 @@ lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_8); return x_54; } } -LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139_(x_1, x_2); +x_3 = l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -6168,7 +6185,7 @@ static lean_object* _init_l_IO_FS_instReprMetadata___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____boxed), 2, 0); return x_1; } } @@ -6214,7 +6231,7 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*2 + 8); lean_dec(x_5); x_7 = 0; -x_8 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853_(x_6, x_7); +x_8 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858_(x_6, x_7); x_9 = lean_box(x_8); lean_ctor_set(x_3, 0, x_9); return x_3; @@ -6230,7 +6247,7 @@ lean_dec(x_3); x_12 = lean_ctor_get_uint8(x_10, sizeof(void*)*2 + 8); lean_dec(x_10); x_13 = 0; -x_14 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2853_(x_12, x_13); +x_14 = l___private_Init_System_IO_0__IO_FS_beqFileType____x40_Init_System_IO___hyg_2858_(x_12, x_13); x_15 = lean_box(x_14); x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); @@ -9405,6 +9422,95 @@ x_2 = lean_alloc_closure((void*)(l_IO_mkRef___rarg), 2, 0); return x_2; } } +LEAN_EXPORT lean_object* l_IO_CancelToken_new(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_2 = 0; +x_3 = lean_box(x_2); +x_4 = lean_st_mk_ref(x_3, x_1); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +} +LEAN_EXPORT lean_object* l_IO_CancelToken_set(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_3 = 1; +x_4 = lean_box(x_3); +x_5 = lean_st_ref_set(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_IO_CancelToken_set___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_IO_CancelToken_set(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_IO_CancelToken_isSet(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_st_ref_get(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_IO_CancelToken_isSet___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_IO_CancelToken_isSet(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_IO_FS_Stream_ofHandle___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -12557,98 +12663,98 @@ l_IO_FS_instInhabitedStream___closed__5 = _init_l_IO_FS_instInhabitedStream___cl lean_mark_persistent(l_IO_FS_instInhabitedStream___closed__5); l_IO_FS_instInhabitedStream = _init_l_IO_FS_instInhabitedStream(); lean_mark_persistent(l_IO_FS_instInhabitedStream); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__1); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__2); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__3); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__4); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__5); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__6); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__7); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__8); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__9); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__10); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__11); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__12); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__13); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__14); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__15); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__16); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__17); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__18); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__19); -l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2633____closed__20); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__1(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__1); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__2(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__2); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__3); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__4(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__4); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__5); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__6); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__7); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__8(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__8); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__9); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__10); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__11); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__12 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__12(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__12); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__13); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__14); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__15); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__16); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__17); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__18); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__19); +l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20 = _init_l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprDirEntry____x40_Init_System_IO___hyg_2638____closed__20); l_IO_FS_instReprDirEntry___closed__1 = _init_l_IO_FS_instReprDirEntry___closed__1(); lean_mark_persistent(l_IO_FS_instReprDirEntry___closed__1); l_IO_FS_instReprDirEntry = _init_l_IO_FS_instReprDirEntry(); lean_mark_persistent(l_IO_FS_instReprDirEntry); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__1); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__2); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__3); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__4); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__5); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__6); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__7); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__8); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__9); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__10); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__11); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__12); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__13); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__14); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__15); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__16); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__17); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__18); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__19); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__20); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__21); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__22); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__23); -l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2706____closed__24); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__1(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__1); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__2); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__3); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__4); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__5); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__6); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__7); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__8); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__9); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__10); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__11); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__12); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__13); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__14); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__15); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__16); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__17); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__18); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__19); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__20); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__21); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__22); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__23); +l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24 = _init_l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprFileType____x40_Init_System_IO___hyg_2711____closed__24); l_IO_FS_instReprFileType___closed__1 = _init_l_IO_FS_instReprFileType___closed__1(); lean_mark_persistent(l_IO_FS_instReprFileType___closed__1); l_IO_FS_instReprFileType = _init_l_IO_FS_instReprFileType(); @@ -12657,20 +12763,20 @@ l_IO_FS_instBEqFileType___closed__1 = _init_l_IO_FS_instBEqFileType___closed__1( lean_mark_persistent(l_IO_FS_instBEqFileType___closed__1); l_IO_FS_instBEqFileType = _init_l_IO_FS_instBEqFileType(); lean_mark_persistent(l_IO_FS_instBEqFileType); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__1); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__2); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__3); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__4); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__5); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__6); -l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2888____closed__7); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__1(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__1); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__2(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__2); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__3); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__4(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__4); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__5(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__5); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__6); +l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__7(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprSystemTime____x40_Init_System_IO___hyg_2893____closed__7); l_IO_FS_instReprSystemTime___closed__1 = _init_l_IO_FS_instReprSystemTime___closed__1(); lean_mark_persistent(l_IO_FS_instReprSystemTime___closed__1); l_IO_FS_instReprSystemTime = _init_l_IO_FS_instReprSystemTime(); @@ -12693,26 +12799,26 @@ l_IO_FS_instLTSystemTime = _init_l_IO_FS_instLTSystemTime(); lean_mark_persistent(l_IO_FS_instLTSystemTime); l_IO_FS_instLESystemTime = _init_l_IO_FS_instLESystemTime(); lean_mark_persistent(l_IO_FS_instLESystemTime); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__1); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__2); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__3); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__4); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__5); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__6); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__7); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__8); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__9); -l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10(); -lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3139____closed__10); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__1 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__1(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__1); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__2 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__2(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__2); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__3); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__4 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__4(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__4); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__5); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__6); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__7); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__8); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__9); +l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10 = _init_l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10(); +lean_mark_persistent(l___private_Init_System_IO_0__IO_FS_reprMetadata____x40_Init_System_IO___hyg_3144____closed__10); l_IO_FS_instReprMetadata___closed__1 = _init_l_IO_FS_instReprMetadata___closed__1(); lean_mark_persistent(l_IO_FS_instReprMetadata___closed__1); l_IO_FS_instReprMetadata = _init_l_IO_FS_instReprMetadata(); diff --git a/stage0/stdlib/Lean/AddDecl.c b/stage0/stdlib/Lean/AddDecl.c index 6fb5294370..72647ab28c 100644 --- a/stage0/stdlib/Lean/AddDecl.c +++ b/stage0/stdlib/Lean/AddDecl.c @@ -14,6 +14,7 @@ extern "C" { #endif static lean_object* l_Lean_addDecl___lambda__1___closed__2; +static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_profiler; lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); @@ -25,7 +26,8 @@ lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_ob static double l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__4___closed__4; double lean_float_div(double, double); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___boxed(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2; static lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__4___closed__3; lean_object* l_Lean_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_addDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,8 +44,10 @@ lean_object* lean_io_get_num_heartbeats(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDecl___lambda__3___closed__2; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_addDecl___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_compileDecl(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -58,13 +62,17 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lamb LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1; +static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3; lean_object* lean_st_ref_get(lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_addDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_addDecl___spec__8(lean_object*); static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4; extern lean_object* l_Lean_warningAsError; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_addDecl___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); @@ -76,10 +84,10 @@ static lean_object* l_Lean_addDecl___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_addDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_compileDecl___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___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_Environment_addAndCompile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__3___closed__1; static lean_object* l_Lean_addDecl___lambda__3___closed__3; @@ -87,6 +95,7 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lamb LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addAndCompile___boxed(lean_object*, lean_object*, lean_object*); @@ -106,8 +115,10 @@ static lean_object* l_Lean_withTraceNode___at_Lean_addDecl___spec__6___lambda__2 lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_addDecl___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_log___at_Lean_addDecl___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); double lean_float_sub(double, double); +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -224,7 +235,7 @@ lean_dec(x_2); return x_7; } } -static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1() { +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -232,6 +243,224 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___boxed), 1, 0); +return x_1; +} +} static lean_object* _init_l_Lean_logAt___at_Lean_addDecl___spec__5___closed__2() { _start: { @@ -243,1304 +472,780 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_373; uint8_t x_374; -x_373 = 2; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +lean_object* x_7; uint8_t x_182; uint8_t x_183; +x_182 = 2; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_7 = x_375; -goto block_372; +lean_object* x_184; +x_184 = lean_box(0); +x_7 = x_184; +goto block_181; } else { -lean_object* x_376; uint8_t x_377; +lean_object* x_185; uint8_t x_186; lean_inc(x_2); -x_376 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_377 = lean_unbox(x_376); -lean_dec(x_376); -if (x_377 == 0) +x_185 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_186 = lean_unbox(x_185); +lean_dec(x_185); +if (x_186 == 0) { -lean_object* x_378; -x_378 = lean_box(0); -x_7 = x_378; -goto block_372; +lean_object* x_187; +x_187 = lean_box(0); +x_7 = x_187; +goto block_181; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_188; lean_object* x_189; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_379 = lean_box(0); -x_380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_6); -return x_380; +lean_dec(x_1); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_6); +return x_189; } } -block_372: +block_181: { -uint8_t x_8; lean_object* x_366; uint8_t x_367; uint8_t x_368; +uint8_t x_8; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_dec(x_7); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = 1; -x_368 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_367); -if (x_368 == 0) +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = 1; +x_177 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_176); +if (x_177 == 0) { -lean_dec(x_366); +lean_dec(x_175); x_8 = x_3; -goto block_365; +goto block_174; } else { -lean_object* x_369; uint8_t x_370; -x_369 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__2; -x_370 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_366, x_369); -lean_dec(x_366); -if (x_370 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__2; +x_179 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_178); +lean_dec(x_175); +if (x_179 == 0) { x_8 = x_3; -goto block_365; +goto block_174; } else { -uint8_t x_371; -x_371 = 2; -x_8 = x_371; -goto block_365; +uint8_t x_180; +x_180 = 2; +x_8 = x_180; +goto block_174; } } -block_365: +block_174: { -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; lean_object* x_17; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 6); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 7); -lean_inc(x_13); -x_14 = l_Lean_replaceRef(x_1, x_11); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_13 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +lean_dec(x_1); +x_14 = 0; +x_15 = l_Lean_Syntax_getPos_x3f(x_13, x_14); +x_16 = l_Lean_Syntax_getTailPos_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ if (lean_obj_tag(x_16) == 0) { -if (lean_obj_tag(x_17) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_10, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +if (x_12 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_box(0); +x_25 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_19, x_9, x_22, x_23, x_8, x_24, x_4, x_5, x_20); +lean_dec(x_5); lean_dec(x_4); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +return x_25; +} +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; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_10, x_22); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 0, x_12); -x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_20); +lean_object* x_26; uint8_t x_27; x_26 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_27 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_23); -lean_ctor_set(x_27, 2, x_24); -lean_ctor_set(x_27, 3, x_26); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_8); -x_28 = lean_st_ref_take(x_5, x_21); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +lean_inc(x_19); +x_27 = l_Lean_MessageData_hasTag(x_26, x_19); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 5); -x_33 = l_Lean_PersistentArray_push___rarg(x_32, x_27); -lean_ctor_set(x_29, 5, x_33); -x_34 = lean_st_ref_set(x_5, x_29, x_30); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +lean_object* x_28; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_28 = lean_box(0); +lean_ctor_set(x_17, 0, x_28); +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_17); +x_29 = lean_box(0); +x_30 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_19, x_9, x_22, x_23, x_8, x_29, x_4, x_5, x_20); +lean_dec(x_5); +lean_dec(x_4); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_FileMap_toPosition(x_10, x_33); +lean_inc(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +if (x_12 == 0) { 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(x_34, 0, x_37); -return x_34; +x_36 = lean_box(0); +x_37 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_31, x_9, x_34, x_35, x_8, x_36, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_37; } else { -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_object* x_38; uint8_t x_39; +x_38 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_31); +x_39 = l_Lean_MessageData_hasTag(x_38, x_31); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_35); lean_dec(x_34); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_31); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_31, x_9, x_34, x_35, x_8, x_42, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_43; +} +} } } else { -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; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 2); -x_44 = lean_ctor_get(x_29, 3); -x_45 = lean_ctor_get(x_29, 4); -x_46 = lean_ctor_get(x_29, 5); -x_47 = lean_ctor_get(x_29, 6); -lean_inc(x_47); -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_dec(x_29); -x_48 = l_Lean_PersistentArray_push___rarg(x_46, x_27); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_43); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_47); -x_50 = lean_st_ref_set(x_5, x_49, x_30); -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); -} +uint8_t x_44; +x_44 = !lean_is_exclusive(x_16); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +x_50 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_51 = l_Lean_FileMap_toPosition(x_10, x_50); +x_52 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_52); +if (x_12 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_free_object(x_46); x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); +x_54 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_48, x_9, x_51, x_16, x_8, x_53, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); return x_54; } -} 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_55 = lean_ctor_get(x_18, 0); -x_56 = lean_ctor_get(x_18, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_18); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Lean_FileMap_toPosition(x_10, x_57); -lean_inc(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_13); -x_61 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -x_62 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_63 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_59); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_63, sizeof(void*)*5 + 1, x_8); -x_64 = lean_st_ref_take(x_5, x_56); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_65, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_65, 4); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 6); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - lean_ctor_release(x_65, 2); - lean_ctor_release(x_65, 3); - lean_ctor_release(x_65, 4); - lean_ctor_release(x_65, 5); - lean_ctor_release(x_65, 6); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -x_75 = l_Lean_PersistentArray_push___rarg(x_72, x_63); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 7, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set(x_76, 1, x_68); -lean_ctor_set(x_76, 2, x_69); -lean_ctor_set(x_76, 3, x_70); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_73); -x_77 = lean_st_ref_set(x_5, x_76, x_66); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; -} else { - lean_dec_ref(x_77); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -} -else +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_48); +x_56 = l_Lean_MessageData_hasTag(x_55, x_48); +if (x_56 == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_17); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_17, 0); -x_84 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_57; +lean_dec(x_16); +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_84); +x_57 = lean_box(0); +lean_ctor_set(x_46, 0, x_57); +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_free_object(x_46); +x_58 = lean_box(0); +x_59 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_48, x_9, x_51, x_16, x_8, x_58, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_63 = l_Lean_FileMap_toPosition(x_10, x_62); +x_64 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_64); +if (x_12 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_60, x_9, x_63, x_16, x_8, x_65, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_60); +x_68 = l_Lean_MessageData_hasTag(x_67, x_60); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_61); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_60, x_9, x_63, x_16, x_8, x_71, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_72; +} +} +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_16, 0); +lean_inc(x_73); +lean_dec(x_16); +x_74 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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_unsigned_to_nat(0u); +lean_inc(x_10); +x_79 = l_Lean_FileMap_toPosition(x_10, x_78); +x_80 = l_Lean_FileMap_toPosition(x_10, x_73); +lean_dec(x_73); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (x_12 == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_75, x_9, x_79, x_81, x_8, x_82, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_83; +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_75); +x_85 = l_Lean_MessageData_hasTag(x_84, x_75); if (x_85 == 0) { -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; uint8_t x_97; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -x_88 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_89 = l_Lean_FileMap_toPosition(x_10, x_88); -x_90 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_90); -lean_ctor_set(x_84, 1, x_13); -lean_ctor_set(x_84, 0, x_12); -x_91 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_86); -x_92 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_9); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_17); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_8); -x_94 = lean_st_ref_take(x_5, x_87); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_86 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_77; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_76); +return x_87; +} +else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_98 = lean_ctor_get(x_95, 5); -x_99 = l_Lean_PersistentArray_push___rarg(x_98, x_93); -lean_ctor_set(x_95, 5, x_99); -x_100 = lean_st_ref_set(x_5, x_95, x_96); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_77); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_75, x_9, x_79, x_81, x_8, x_88, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_89; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_15); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_15, 0); +x_92 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_96); +lean_ctor_set(x_15, 0, x_96); +if (x_12 == 0) +{ +lean_object* x_97; lean_object* x_98; +lean_free_object(x_92); +x_97 = lean_box(0); +x_98 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_94, x_9, x_96, x_15, x_8, x_97, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_98; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_94); +x_100 = l_Lean_MessageData_hasTag(x_99, x_94); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_15); +lean_dec(x_96); +lean_dec(x_94); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_101 = lean_box(0); +lean_ctor_set(x_92, 0, x_101); +return x_92; +} +else { lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = lean_box(0); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_free_object(x_92); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_94, x_9, x_96, x_15, x_8, x_102, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_103; +} +} } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 1); +x_104 = lean_ctor_get(x_92, 0); +x_105 = lean_ctor_get(x_92, 1); +lean_inc(x_105); lean_inc(x_104); -lean_dec(x_100); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_dec(x_92); +x_106 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_106); +lean_ctor_set(x_15, 0, x_106); +if (x_12 == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_104, x_9, x_106, x_15, x_8, x_107, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_104); +x_110 = l_Lean_MessageData_hasTag(x_109, x_104); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_15); +lean_dec(x_106); +lean_dec(x_104); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_104, x_9, x_106, x_15, x_8, x_113, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_114; +} +} } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -x_109 = lean_ctor_get(x_95, 2); -x_110 = lean_ctor_get(x_95, 3); -x_111 = lean_ctor_get(x_95, 4); -x_112 = lean_ctor_get(x_95, 5); -x_113 = lean_ctor_get(x_95, 6); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_114 = l_Lean_PersistentArray_push___rarg(x_112, x_93); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_107); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_111); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_113); -x_116 = lean_st_ref_set(x_5, x_115, x_96); -x_117 = lean_ctor_get(x_116, 1); +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_115 = lean_ctor_get(x_15, 0); +lean_inc(x_115); +lean_dec(x_15); +x_116 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); if (lean_is_exclusive(x_116)) { lean_ctor_release(x_116, 0); lean_ctor_release(x_116, 1); - x_118 = x_116; + x_119 = x_116; } else { lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; + x_119 = lean_box(0); } +x_120 = l_Lean_FileMap_toPosition(x_10, x_115); +lean_dec(x_115); +lean_inc(x_120); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (x_12 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_117, x_9, x_120, x_121, x_8, x_122, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_123; } 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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_121 = lean_ctor_get(x_84, 0); -x_122 = lean_ctor_get(x_84, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_84); -x_123 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_124 = l_Lean_FileMap_toPosition(x_10, x_123); -x_125 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_12); -lean_ctor_set(x_126, 1, x_13); -x_127 = lean_alloc_ctor(3, 2, 0); +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_117); +x_125 = l_Lean_MessageData_hasTag(x_124, x_117); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_117); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_126 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_119; +} lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_129 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_129, 0, x_9); -lean_ctor_set(x_129, 1, x_124); -lean_ctor_set(x_129, 2, x_17); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_8); -x_130 = lean_st_ref_take(x_5, x_122); -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_ctor_set(x_127, 1, x_118); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_119); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_117, x_9, x_120, x_121, x_8, x_128, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_129; +} +} +} +} +else +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_15, 0); +lean_inc(x_130); +lean_dec(x_15); +x_131 = !lean_is_exclusive(x_16); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_16, 0); +x_133 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_10); +x_137 = l_Lean_FileMap_toPosition(x_10, x_130); lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_138 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_138); +if (x_12 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_free_object(x_133); +x_139 = lean_box(0); +x_140 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_135, x_9, x_137, x_16, x_8, x_139, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_140; +} +else +{ +lean_object* x_141; uint8_t x_142; +x_141 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 4); -lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 5); -lean_inc(x_138); -x_139 = lean_ctor_get(x_131, 6); -lean_inc(x_139); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - lean_ctor_release(x_131, 4); - lean_ctor_release(x_131, 5); - lean_ctor_release(x_131, 6); - x_140 = x_131; -} else { - lean_dec_ref(x_131); - x_140 = lean_box(0); +x_142 = l_Lean_MessageData_hasTag(x_141, x_135); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_16); +lean_dec(x_137); +lean_dec(x_135); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_143 = lean_box(0); +lean_ctor_set(x_133, 0, x_143); +return x_133; } -x_141 = l_Lean_PersistentArray_push___rarg(x_138, x_129); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 7, 0); -} else { - x_142 = x_140; +else +{ +lean_object* x_144; lean_object* x_145; +lean_free_object(x_133); +x_144 = lean_box(0); +x_145 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_135, x_9, x_137, x_16, x_8, x_144, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_145; } -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_134); -lean_ctor_set(x_142, 2, x_135); -lean_ctor_set(x_142, 3, x_136); -lean_ctor_set(x_142, 4, x_137); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_139); -x_143 = lean_st_ref_set(x_5, x_142, x_132); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; -} else { - lean_dec_ref(x_143); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_148 = lean_ctor_get(x_17, 0); -lean_inc(x_148); -lean_dec(x_17); -x_149 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = lean_unsigned_to_nat(0u); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); lean_inc(x_10); -x_154 = l_Lean_FileMap_toPosition(x_10, x_153); -x_155 = l_Lean_FileMap_toPosition(x_10, x_148); +x_148 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_149 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_149); +if (x_12 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_146, x_9, x_148, x_16, x_8, x_150, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_151; +} +else +{ +lean_object* x_152; uint8_t x_153; +x_152 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_146); +x_153 = l_Lean_MessageData_hasTag(x_152, x_146); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_16); lean_dec(x_148); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_155); -if (lean_is_scalar(x_152)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_152; +lean_dec(x_146); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_147); +return x_155; } -lean_ctor_set(x_157, 0, x_12); -lean_ctor_set(x_157, 1, x_13); -x_158 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_150); -x_159 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_160 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_160, 0, x_9); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_159); -lean_ctor_set(x_160, 4, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_160, sizeof(void*)*5 + 1, x_8); -x_161 = lean_st_ref_take(x_5, x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -x_166 = lean_ctor_get(x_162, 2); -lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); -lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 6); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - lean_ctor_release(x_162, 6); +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_146, x_9, x_148, x_16, x_8, x_156, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_157; +} +} +} +} +else +{ +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; +x_158 = lean_ctor_get(x_16, 0); +lean_inc(x_158); +lean_dec(x_16); +x_159 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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); +} +lean_inc(x_10); +x_163 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_164 = l_Lean_FileMap_toPosition(x_10, x_158); +lean_dec(x_158); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +if (x_12 == 0) +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_162); +x_166 = lean_box(0); +x_167 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_160, x_9, x_163, x_165, x_8, x_166, x_4, x_5, x_161); +lean_dec(x_5); +lean_dec(x_4); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +lean_inc(x_160); +x_169 = l_Lean_MessageData_hasTag(x_168, x_160); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_165); +lean_dec(x_163); +lean_dec(x_160); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_170 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_push___rarg(x_169, x_160); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 7, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_164); -lean_ctor_set(x_173, 1, x_165); -lean_ctor_set(x_173, 2, x_166); -lean_ctor_set(x_173, 3, x_167); -lean_ctor_set(x_173, 4, x_168); -lean_ctor_set(x_173, 5, x_172); -lean_ctor_set(x_173, 6, x_170); -x_174 = lean_st_ref_set(x_5, x_173, x_163); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -x_177 = lean_box(0); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} } +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_161); +return x_171; } else { -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_179; -x_179 = !lean_is_exclusive(x_16); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = lean_ctor_get(x_16, 0); -x_181 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_160, x_9, x_163, x_165, x_8, x_172, x_4, x_5, x_161); +lean_dec(x_5); lean_dec(x_4); -x_182 = !lean_is_exclusive(x_181); -if (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_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -x_185 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_185); -lean_ctor_set(x_16, 0, x_185); -lean_ctor_set(x_181, 1, x_13); -lean_ctor_set(x_181, 0, x_12); -x_186 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_183); -x_187 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_188 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_188, 0, x_9); -lean_ctor_set(x_188, 1, x_185); -lean_ctor_set(x_188, 2, x_16); -lean_ctor_set(x_188, 3, x_187); -lean_ctor_set(x_188, 4, x_186); -lean_ctor_set_uint8(x_188, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_188, sizeof(void*)*5 + 1, x_8); -x_189 = lean_st_ref_take(x_5, x_184); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_193 = lean_ctor_get(x_190, 5); -x_194 = l_Lean_PersistentArray_push___rarg(x_193, x_188); -lean_ctor_set(x_190, 5, x_194); -x_195 = lean_st_ref_set(x_5, x_190, x_191); -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -lean_dec(x_197); -x_198 = lean_box(0); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -lean_dec(x_195); -x_200 = lean_box(0); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -return x_201; +return x_173; } } -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_202 = lean_ctor_get(x_190, 0); -x_203 = lean_ctor_get(x_190, 1); -x_204 = lean_ctor_get(x_190, 2); -x_205 = lean_ctor_get(x_190, 3); -x_206 = lean_ctor_get(x_190, 4); -x_207 = lean_ctor_get(x_190, 5); -x_208 = lean_ctor_get(x_190, 6); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_190); -x_209 = l_Lean_PersistentArray_push___rarg(x_207, x_188); -x_210 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_205); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_209); -lean_ctor_set(x_210, 6, x_208); -x_211 = lean_st_ref_set(x_5, x_210, x_191); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_216 = lean_ctor_get(x_181, 0); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_181); -x_218 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_218); -lean_ctor_set(x_16, 0, x_218); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_12); -lean_ctor_set(x_219, 1, x_13); -x_220 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -x_221 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_222 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_222, 0, x_9); -lean_ctor_set(x_222, 1, x_218); -lean_ctor_set(x_222, 2, x_16); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set(x_222, 4, x_220); -lean_ctor_set_uint8(x_222, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_222, sizeof(void*)*5 + 1, x_8); -x_223 = lean_st_ref_take(x_5, x_217); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_224, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_224, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_224, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_224, 6); -lean_inc(x_232); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - lean_ctor_release(x_224, 5); - lean_ctor_release(x_224, 6); - x_233 = x_224; -} else { - lean_dec_ref(x_224); - x_233 = lean_box(0); -} -x_234 = l_Lean_PersistentArray_push___rarg(x_231, x_222); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(0, 7, 0); -} else { - x_235 = x_233; -} -lean_ctor_set(x_235, 0, x_226); -lean_ctor_set(x_235, 1, x_227); -lean_ctor_set(x_235, 2, x_228); -lean_ctor_set(x_235, 3, x_229); -lean_ctor_set(x_235, 4, x_230); -lean_ctor_set(x_235, 5, x_234); -lean_ctor_set(x_235, 6, x_232); -x_236 = lean_st_ref_set(x_5, x_235, x_225); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; -} else { - lean_dec_ref(x_236); - x_238 = lean_box(0); -} -x_239 = lean_box(0); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_238; -} -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_237); -return x_240; -} -} -else -{ -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_241 = lean_ctor_get(x_16, 0); -lean_inc(x_241); -lean_dec(x_16); -x_242 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_245 = x_242; -} else { - lean_dec_ref(x_242); - x_245 = lean_box(0); -} -x_246 = l_Lean_FileMap_toPosition(x_10, x_241); -lean_dec(x_241); -lean_inc(x_246); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -if (lean_is_scalar(x_245)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_245; -} -lean_ctor_set(x_248, 0, x_12); -lean_ctor_set(x_248, 1, x_13); -x_249 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_243); -x_250 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_251 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_251, 0, x_9); -lean_ctor_set(x_251, 1, x_246); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_250); -lean_ctor_set(x_251, 4, x_249); -lean_ctor_set_uint8(x_251, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_251, sizeof(void*)*5 + 1, x_8); -x_252 = lean_st_ref_take(x_5, x_244); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = lean_ctor_get(x_253, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_253, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_253, 2); -lean_inc(x_257); -x_258 = lean_ctor_get(x_253, 3); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 4); -lean_inc(x_259); -x_260 = lean_ctor_get(x_253, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_253, 6); -lean_inc(x_261); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - lean_ctor_release(x_253, 5); - lean_ctor_release(x_253, 6); - x_262 = x_253; -} else { - lean_dec_ref(x_253); - x_262 = lean_box(0); -} -x_263 = l_Lean_PersistentArray_push___rarg(x_260, x_251); -if (lean_is_scalar(x_262)) { - x_264 = lean_alloc_ctor(0, 7, 0); -} else { - x_264 = x_262; -} -lean_ctor_set(x_264, 0, x_255); -lean_ctor_set(x_264, 1, x_256); -lean_ctor_set(x_264, 2, x_257); -lean_ctor_set(x_264, 3, x_258); -lean_ctor_set(x_264, 4, x_259); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_261); -x_265 = lean_st_ref_set(x_5, x_264, x_254); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -} -else -{ -lean_object* x_270; uint8_t x_271; -x_270 = lean_ctor_get(x_16, 0); -lean_inc(x_270); -lean_dec(x_16); -x_271 = !lean_is_exclusive(x_17); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_17, 0); -x_273 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_274 = !lean_is_exclusive(x_273); -if (x_274 == 0) -{ -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; uint8_t x_285; -x_275 = lean_ctor_get(x_273, 0); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_10); -x_277 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_278 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_278); -lean_ctor_set(x_273, 1, x_13); -lean_ctor_set(x_273, 0, x_12); -x_279 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_279, 0, x_273); -lean_ctor_set(x_279, 1, x_275); -x_280 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_281 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_281, 0, x_9); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_17); -lean_ctor_set(x_281, 3, x_280); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set_uint8(x_281, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_281, sizeof(void*)*5 + 1, x_8); -x_282 = lean_st_ref_take(x_5, x_276); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = !lean_is_exclusive(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_286 = lean_ctor_get(x_283, 5); -x_287 = l_Lean_PersistentArray_push___rarg(x_286, x_281); -lean_ctor_set(x_283, 5, x_287); -x_288 = lean_st_ref_set(x_5, x_283, x_284); -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -lean_dec(x_290); -x_291 = lean_box(0); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 1); -lean_inc(x_292); -lean_dec(x_288); -x_293 = lean_box(0); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_295 = lean_ctor_get(x_283, 0); -x_296 = lean_ctor_get(x_283, 1); -x_297 = lean_ctor_get(x_283, 2); -x_298 = lean_ctor_get(x_283, 3); -x_299 = lean_ctor_get(x_283, 4); -x_300 = lean_ctor_get(x_283, 5); -x_301 = lean_ctor_get(x_283, 6); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_283); -x_302 = l_Lean_PersistentArray_push___rarg(x_300, x_281); -x_303 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_303, 0, x_295); -lean_ctor_set(x_303, 1, x_296); -lean_ctor_set(x_303, 2, x_297); -lean_ctor_set(x_303, 3, x_298); -lean_ctor_set(x_303, 4, x_299); -lean_ctor_set(x_303, 5, x_302); -lean_ctor_set(x_303, 6, x_301); -x_304 = lean_st_ref_set(x_5, x_303, x_284); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_306 = x_304; -} else { - lean_dec_ref(x_304); - x_306 = lean_box(0); -} -x_307 = lean_box(0); -if (lean_is_scalar(x_306)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_306; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -else -{ -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; 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; -x_309 = lean_ctor_get(x_273, 0); -x_310 = lean_ctor_get(x_273, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_273); -lean_inc(x_10); -x_311 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_312 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_312); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_12); -lean_ctor_set(x_313, 1, x_13); -x_314 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_309); -x_315 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_316 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_316, 0, x_9); -lean_ctor_set(x_316, 1, x_311); -lean_ctor_set(x_316, 2, x_17); -lean_ctor_set(x_316, 3, x_315); -lean_ctor_set(x_316, 4, x_314); -lean_ctor_set_uint8(x_316, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_316, sizeof(void*)*5 + 1, x_8); -x_317 = lean_st_ref_take(x_5, x_310); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = lean_ctor_get(x_318, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_318, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_318, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_318, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_318, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_318, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_318, 6); -lean_inc(x_326); -if (lean_is_exclusive(x_318)) { - lean_ctor_release(x_318, 0); - lean_ctor_release(x_318, 1); - lean_ctor_release(x_318, 2); - lean_ctor_release(x_318, 3); - lean_ctor_release(x_318, 4); - lean_ctor_release(x_318, 5); - lean_ctor_release(x_318, 6); - x_327 = x_318; -} else { - lean_dec_ref(x_318); - x_327 = lean_box(0); -} -x_328 = l_Lean_PersistentArray_push___rarg(x_325, x_316); -if (lean_is_scalar(x_327)) { - x_329 = lean_alloc_ctor(0, 7, 0); -} else { - x_329 = x_327; -} -lean_ctor_set(x_329, 0, x_320); -lean_ctor_set(x_329, 1, x_321); -lean_ctor_set(x_329, 2, x_322); -lean_ctor_set(x_329, 3, x_323); -lean_ctor_set(x_329, 4, x_324); -lean_ctor_set(x_329, 5, x_328); -lean_ctor_set(x_329, 6, x_326); -x_330 = lean_st_ref_set(x_5, x_329, x_319); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_332 = x_330; -} else { - lean_dec_ref(x_330); - x_332 = lean_box(0); -} -x_333 = lean_box(0); -if (lean_is_scalar(x_332)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_332; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_331); -return x_334; -} -} -else -{ -lean_object* x_335; 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; 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_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; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_335 = lean_ctor_get(x_17, 0); -lean_inc(x_335); -lean_dec(x_17); -x_336 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; -} else { - lean_dec_ref(x_336); - x_339 = lean_box(0); -} -lean_inc(x_10); -x_340 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_341 = l_Lean_FileMap_toPosition(x_10, x_335); -lean_dec(x_335); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_12); -lean_ctor_set(x_343, 1, x_13); -x_344 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_337); -x_345 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; -x_346 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_346, 0, x_9); -lean_ctor_set(x_346, 1, x_340); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_345); -lean_ctor_set(x_346, 4, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_346, sizeof(void*)*5 + 1, x_8); -x_347 = lean_st_ref_take(x_5, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get(x_348, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_348, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 2); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -x_355 = lean_ctor_get(x_348, 5); -lean_inc(x_355); -x_356 = lean_ctor_get(x_348, 6); -lean_inc(x_356); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - x_357 = x_348; -} else { - lean_dec_ref(x_348); - x_357 = lean_box(0); -} -x_358 = l_Lean_PersistentArray_push___rarg(x_355, x_346); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 7, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_350); -lean_ctor_set(x_359, 1, x_351); -lean_ctor_set(x_359, 2, x_352); -lean_ctor_set(x_359, 3, x_353); -lean_ctor_set(x_359, 4, x_354); -lean_ctor_set(x_359, 5, x_358); -lean_ctor_set(x_359, 6, x_356); -x_360 = lean_st_ref_set(x_5, x_359, x_349); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_362 = x_360; -} else { - lean_dec_ref(x_360); - x_362 = lean_box(0); -} -x_363 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -return x_364; } } } @@ -1555,8 +1260,6 @@ lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_3, 5); lean_inc(x_6); x_7 = l_Lean_logAt___at_Lean_addDecl___spec__5(x_6, x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_6); return x_7; } } @@ -2967,7 +2670,7 @@ lean_dec(x_5); x_8 = lean_ctor_get(x_6, 5); lean_inc(x_8); lean_dec(x_6); -x_9 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_8); +x_9 = l_Lean_MessageLog_hasErrors(x_8); if (x_9 == 0) { uint8_t x_10; uint8_t x_11; @@ -3051,7 +2754,7 @@ lean_closure_set(x_6, 0, x_1); x_7 = l_Lean_addDecl___closed__2; x_8 = l_Lean_addDecl___closed__3; x_9 = 1; -x_10 = l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1; +x_10 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1; x_11 = lean_box(x_9); x_12 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_addDecl___spec__6___boxed), 8, 5); lean_closure_set(x_12, 0, x_7); @@ -3085,6 +2788,29 @@ lean_dec(x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_addDecl___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) { _start: { @@ -3092,8 +2818,6 @@ uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); x_8 = l_Lean_logAt___at_Lean_addDecl___spec__5(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_1); return x_8; } } @@ -3257,6 +2981,16 @@ _G_initialized = true; res = initialize_Lean_CoreM(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__1___closed__1); +l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__1); +l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__2); +l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__3); +l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___lambda__2___closed__4); l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_addDecl___spec__5___closed__1); l_Lean_logAt___at_Lean_addDecl___spec__5___closed__2 = _init_l_Lean_logAt___at_Lean_addDecl___spec__5___closed__2(); diff --git a/stage0/stdlib/Lean/Attributes.c b/stage0/stdlib/Lean/Attributes.c index e339f8a011..1f915a6609 100644 --- a/stage0/stdlib/Lean/Attributes.c +++ b/stage0/stdlib/Lean/Attributes.c @@ -49,6 +49,7 @@ uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_registerParametricAttribute___rarg___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_updateEnvAttributesImpl___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerEnumAttributes___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_getAttributeImpl___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerParametricAttribute___rarg___lambda__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_Lean_getAttributeNames___boxed(lean_object*); @@ -2579,7 +2580,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -2591,7 +2592,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -2604,24 +2608,26 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_2, x_23, x_4, x_5); -lean_dec(x_23); -return x_24; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_2, x_25, x_4, x_5); +lean_dec(x_25); +return x_26; } } } @@ -2923,7 +2929,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -2935,7 +2941,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -2948,26 +2957,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Attribute_Builtin_getIdent_x3f___spec__2(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Attribute_Builtin_getIdent_x3f___spec__2(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -3189,7 +3200,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -3201,7 +3212,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -3214,26 +3228,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Attribute_Builtin_getIdent___spec__2(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Attribute_Builtin_getIdent___spec__2(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -3587,7 +3603,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -3599,7 +3615,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -3612,26 +3631,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_getAttrParamOptPrio___spec__2(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_getAttrParamOptPrio___spec__2(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -5309,16 +5330,20 @@ 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_25, 1); -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_free_object(x_25); lean_dec(x_27); -x_30 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_28); +x_31 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_28); lean_dec(x_9); lean_dec(x_8); -return x_30; +return x_31; } else { @@ -5330,261 +5355,325 @@ return x_25; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_25); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) -{ -lean_object* x_34; -lean_dec(x_31); -x_34 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_32); -lean_dec(x_9); -lean_dec(x_8); -return x_34; -} -else -{ -lean_object* x_35; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_31); -lean_ctor_set(x_35, 1, x_32); -return x_35; +return x_25; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t 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 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; +lean_dec(x_32); +x_36 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_33); +lean_dec(x_9); +lean_dec(x_8); +return x_36; +} +else +{ +lean_object* x_37; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_32); +lean_ctor_set(x_37, 1, x_33); +return x_37; +} +} +else +{ +lean_object* x_38; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_33); +return x_38; } } } } 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; 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; -x_36 = lean_ctor_get(x_14, 1); -x_37 = lean_ctor_get(x_16, 0); -x_38 = lean_ctor_get(x_16, 1); -x_39 = lean_ctor_get(x_16, 2); -x_40 = lean_ctor_get(x_16, 3); -x_41 = lean_ctor_get(x_16, 5); -x_42 = lean_ctor_get(x_16, 6); +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_14, 1); +x_40 = lean_ctor_get(x_16, 0); +x_41 = lean_ctor_get(x_16, 1); +x_42 = lean_ctor_get(x_16, 2); +x_43 = lean_ctor_get(x_16, 3); +x_44 = lean_ctor_get(x_16, 5); +x_45 = lean_ctor_get(x_16, 6); +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_inc(x_38); -lean_inc(x_37); lean_dec(x_16); lean_inc(x_12); lean_inc(x_2); lean_ctor_set(x_14, 1, x_12); lean_ctor_set(x_14, 0, x_2); -x_43 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_4, x_37, x_14); -x_44 = l_Lean_registerTagAttribute___lambda__5___closed__1; -x_45 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_38); -lean_ctor_set(x_45, 2, x_39); -lean_ctor_set(x_45, 3, x_40); -lean_ctor_set(x_45, 4, x_44); -lean_ctor_set(x_45, 5, x_41); -lean_ctor_set(x_45, 6, x_42); -x_46 = lean_st_ref_set(x_9, x_45, x_36); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); +x_46 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_4, x_40, x_14); +x_47 = l_Lean_registerTagAttribute___lambda__5___closed__1; +x_48 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_41); +lean_ctor_set(x_48, 2, x_42); +lean_ctor_set(x_48, 3, x_43); +lean_ctor_set(x_48, 4, x_47); +lean_ctor_set(x_48, 5, x_44); +lean_ctor_set(x_48, 6, x_45); +x_49 = lean_st_ref_set(x_9, x_48, x_39); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); lean_inc(x_9); lean_inc(x_8); -x_48 = lean_apply_5(x_5, x_2, x_12, x_8, x_9, x_47); -if (lean_obj_tag(x_48) == 0) +x_51 = lean_apply_5(x_5, x_2, x_12, x_8, x_9, x_50); +if (lean_obj_tag(x_51) == 0) { lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -return x_48; +return x_51; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; -} else { - lean_dec_ref(x_48); - x_51 = lean_box(0); -} -x_52 = l_Lean_Exception_isRuntime(x_49); -if (x_52 == 0) -{ -lean_object* x_53; -lean_dec(x_51); -lean_dec(x_49); -x_53 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_50); -lean_dec(x_9); -lean_dec(x_8); -return x_53; -} -else -{ -lean_object* x_54; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -if (lean_is_scalar(x_51)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +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_51); + x_54 = lean_box(0); } -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_50); -return x_54; +x_55 = l_Lean_Exception_isInterrupt(x_52); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = l_Lean_Exception_isRuntime(x_52); +if (x_56 == 0) +{ +lean_object* x_57; +lean_dec(x_54); +lean_dec(x_52); +x_57 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_53); +lean_dec(x_9); +lean_dec(x_8); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +if (lean_is_scalar(x_54)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_54; +} +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_53); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +if (lean_is_scalar(x_54)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_54; +} +lean_ctor_set(x_59, 0, x_52); +lean_ctor_set(x_59, 1, x_53); +return x_59; } } } } 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; 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_55 = lean_ctor_get(x_14, 0); -x_56 = lean_ctor_get(x_14, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_14); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -x_59 = lean_ctor_get(x_55, 2); -lean_inc(x_59); -x_60 = lean_ctor_get(x_55, 3); -lean_inc(x_60); -x_61 = lean_ctor_get(x_55, 5); +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; +x_60 = lean_ctor_get(x_14, 0); +x_61 = lean_ctor_get(x_14, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_55, 6); +lean_inc(x_60); +lean_dec(x_14); +x_62 = lean_ctor_get(x_60, 0); lean_inc(x_62); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - lean_ctor_release(x_55, 2); - lean_ctor_release(x_55, 3); - lean_ctor_release(x_55, 4); - lean_ctor_release(x_55, 5); - lean_ctor_release(x_55, 6); - x_63 = x_55; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +x_64 = lean_ctor_get(x_60, 2); +lean_inc(x_64); +x_65 = lean_ctor_get(x_60, 3); +lean_inc(x_65); +x_66 = lean_ctor_get(x_60, 5); +lean_inc(x_66); +x_67 = lean_ctor_get(x_60, 6); +lean_inc(x_67); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + lean_ctor_release(x_60, 2); + lean_ctor_release(x_60, 3); + lean_ctor_release(x_60, 4); + lean_ctor_release(x_60, 5); + lean_ctor_release(x_60, 6); + x_68 = x_60; } else { - lean_dec_ref(x_55); - x_63 = lean_box(0); + lean_dec_ref(x_60); + x_68 = lean_box(0); } lean_inc(x_12); lean_inc(x_2); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_2); -lean_ctor_set(x_64, 1, x_12); -x_65 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_4, x_57, x_64); -x_66 = l_Lean_registerTagAttribute___lambda__5___closed__1; -if (lean_is_scalar(x_63)) { - x_67 = lean_alloc_ctor(0, 7, 0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_2); +lean_ctor_set(x_69, 1, x_12); +x_70 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_4, x_62, x_69); +x_71 = l_Lean_registerTagAttribute___lambda__5___closed__1; +if (lean_is_scalar(x_68)) { + x_72 = lean_alloc_ctor(0, 7, 0); } else { - x_67 = x_63; + x_72 = x_68; } -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_58); -lean_ctor_set(x_67, 2, x_59); -lean_ctor_set(x_67, 3, x_60); -lean_ctor_set(x_67, 4, x_66); -lean_ctor_set(x_67, 5, x_61); -lean_ctor_set(x_67, 6, x_62); -x_68 = lean_st_ref_set(x_9, x_67, x_56); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_63); +lean_ctor_set(x_72, 2, x_64); +lean_ctor_set(x_72, 3, x_65); +lean_ctor_set(x_72, 4, x_71); +lean_ctor_set(x_72, 5, x_66); +lean_ctor_set(x_72, 6, x_67); +x_73 = lean_st_ref_set(x_9, x_72, x_61); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); lean_inc(x_9); lean_inc(x_8); -x_70 = lean_apply_5(x_5, x_2, x_12, x_8, x_9, x_69); -if (lean_obj_tag(x_70) == 0) +x_75 = lean_apply_5(x_5, x_2, x_12, x_8, x_9, x_74); +if (lean_obj_tag(x_75) == 0) { lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -return x_70; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_73 = x_70; -} else { - lean_dec_ref(x_70); - x_73 = lean_box(0); -} -x_74 = l_Lean_Exception_isRuntime(x_71); -if (x_74 == 0) -{ -lean_object* x_75; -lean_dec(x_73); -lean_dec(x_71); -x_75 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_72); -lean_dec(x_9); -lean_dec(x_8); return x_75; } else { -lean_object* x_76; +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; +} else { + lean_dec_ref(x_75); + x_78 = lean_box(0); +} +x_79 = l_Lean_Exception_isInterrupt(x_76); +if (x_79 == 0) +{ +uint8_t x_80; +x_80 = l_Lean_Exception_isRuntime(x_76); +if (x_80 == 0) +{ +lean_object* x_81; +lean_dec(x_78); +lean_dec(x_76); +x_81 = l_Lean_setEnv___at_Lean_registerParametricAttribute___spec__3(x_6, x_8, x_9, x_77); +lean_dec(x_9); +lean_dec(x_8); +return x_81; +} +else +{ +lean_object* x_82; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); -if (lean_is_scalar(x_73)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_82 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_73; + x_82 = x_78; } -lean_ctor_set(x_76, 0, x_71); -lean_ctor_set(x_76, 1, x_72); -return x_76; +lean_ctor_set(x_82, 0, x_76); +lean_ctor_set(x_82, 1, x_77); +return x_82; +} +} +else +{ +lean_object* x_83; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +if (lean_is_scalar(x_78)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_78; +} +lean_ctor_set(x_83, 0, x_76); +lean_ctor_set(x_83, 1, x_77); +return x_83; } } } } else { -uint8_t x_77; +uint8_t x_84; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_77 = !lean_is_exclusive(x_11); -if (x_77 == 0) +x_84 = !lean_is_exclusive(x_11); +if (x_84 == 0) { return x_11; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_11, 0); -x_79 = lean_ctor_get(x_11, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_11, 0); +x_86 = lean_ctor_get(x_11, 1); +lean_inc(x_86); +lean_inc(x_85); lean_dec(x_11); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +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; } } } diff --git a/stage0/stdlib/Lean/Compiler/ExternAttr.c b/stage0/stdlib/Lean/Compiler/ExternAttr.c index 27ac6f698d..fb95a689ca 100644 --- a/stage0/stdlib/Lean/Compiler/ExternAttr.c +++ b/stage0/stdlib/Lean/Compiler/ExternAttr.c @@ -70,7 +70,7 @@ LEAN_EXPORT lean_object* lean_get_extern_attr_data(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_getExternConstArityExport___closed__2; uint8_t l_instDecidableNot___rarg(uint8_t); -static uint8_t l_Lean_getExternConstArityExport___closed__12; +static lean_object* l_Lean_getExternConstArityExport___closed__12; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -163,6 +163,7 @@ static lean_object* l___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternA extern lean_object* l_Lean_firstFrontendMacroScope; lean_object* l_Lean_ofExcept___at_Lean_initFn____x40_Lean_Class___hyg_768____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExternConstArityExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static uint8_t l_Lean_getExternConstArityExport___closed__13; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_expandExternPattern___boxed(lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Compiler_ExternAttr___hyg_690____closed__7; @@ -289,7 +290,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -301,7 +302,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -314,26 +318,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData___spec__2(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at___private_Lean_Compiler_ExternAttr_0__Lean_syntaxToExternAttrData___spec__2(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -2899,13 +2905,13 @@ x_11 = l_Lean_getExternConstArityExport___lambda__1___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -2915,6 +2921,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -2925,23 +2934,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_getExternConstArityExport___lambda__1___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_getExternConstArityExport___lambda__1___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -3028,6 +3039,18 @@ return x_2; static lean_object* _init_l_Lean_getExternConstArityExport___closed__9() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__7; +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_Lean_getExternConstArityExport___closed__10() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__11; @@ -3039,7 +3062,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_getExternConstArityExport___closed__10() { +static lean_object* _init_l_Lean_getExternConstArityExport___closed__11() { _start: { lean_object* x_1; @@ -3047,7 +3070,7 @@ x_1 = lean_mk_string_from_bytes("", 10); return x_1; } } -static lean_object* _init_l_Lean_getExternConstArityExport___closed__11() { +static lean_object* _init_l_Lean_getExternConstArityExport___closed__12() { _start: { lean_object* x_1; @@ -3055,12 +3078,12 @@ x_1 = l_Lean_diagnostics; return x_1; } } -static uint8_t _init_l_Lean_getExternConstArityExport___closed__12() { +static uint8_t _init_l_Lean_getExternConstArityExport___closed__13() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; x_1 = lean_box(0); -x_2 = l_Lean_getExternConstArityExport___closed__11; +x_2 = l_Lean_getExternConstArityExport___closed__12; x_3 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1, x_2); return x_3; } @@ -3068,98 +3091,102 @@ return x_3; LEAN_EXPORT lean_object* lean_get_extern_const_arity(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_21; lean_object* x_22; 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; uint8_t 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; uint8_t x_78; +lean_object* x_4; lean_object* x_21; lean_object* x_22; 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; uint8_t 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; uint8_t x_79; uint8_t x_80; x_50 = lean_box(0); -x_51 = l_Lean_getExternConstArityExport___closed__4; -x_52 = l_Lean_getExternConstArityExport___closed__7; -x_53 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__7; -x_54 = l_Lean_getExternConstArityExport___closed__8; -x_55 = l_Lean_getExternConstArityExport___closed__9; -x_56 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_56, 0, x_1); -lean_ctor_set(x_56, 1, x_51); -lean_ctor_set(x_56, 2, x_52); -lean_ctor_set(x_56, 3, x_53); -lean_ctor_set(x_56, 4, x_54); -lean_ctor_set(x_56, 5, x_53); -lean_ctor_set(x_56, 6, x_55); -x_57 = lean_io_get_num_heartbeats(x_3); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_getExternConstArityExport___closed__10; -x_61 = l_Lean_getExternConstArityExport___closed__2; -x_62 = lean_unsigned_to_nat(0u); -x_63 = lean_unsigned_to_nat(1000u); -x_64 = lean_box(0); -x_65 = lean_box(0); -x_66 = l_Lean_getExternConstArityExport___closed__3; -x_67 = l_Lean_firstFrontendMacroScope; -x_68 = 0; -x_69 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_69, 0, x_60); -lean_ctor_set(x_69, 1, x_61); -lean_ctor_set(x_69, 2, x_50); -lean_ctor_set(x_69, 3, x_62); -lean_ctor_set(x_69, 4, x_63); -lean_ctor_set(x_69, 5, x_64); -lean_ctor_set(x_69, 6, x_65); -lean_ctor_set(x_69, 7, x_50); -lean_ctor_set(x_69, 8, x_58); -lean_ctor_set(x_69, 9, x_66); -lean_ctor_set(x_69, 10, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*11, x_68); -x_70 = lean_st_mk_ref(x_56, x_59); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_st_ref_get(x_71, x_72); -x_74 = lean_ctor_get(x_73, 0); +x_51 = lean_box(0); +x_52 = l_Lean_getExternConstArityExport___closed__4; +x_53 = l_Lean_getExternConstArityExport___closed__7; +x_54 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__7; +x_55 = l_Lean_getExternConstArityExport___closed__8; +x_56 = l_Lean_getExternConstArityExport___closed__9; +x_57 = l_Lean_getExternConstArityExport___closed__10; +x_58 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_52); +lean_ctor_set(x_58, 2, x_53); +lean_ctor_set(x_58, 3, x_54); +lean_ctor_set(x_58, 4, x_55); +lean_ctor_set(x_58, 5, x_56); +lean_ctor_set(x_58, 6, x_57); +x_59 = lean_io_get_num_heartbeats(x_3); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_getExternConstArityExport___closed__11; +x_63 = l_Lean_getExternConstArityExport___closed__2; +x_64 = lean_unsigned_to_nat(0u); +x_65 = lean_unsigned_to_nat(1000u); +x_66 = lean_box(0); +x_67 = lean_box(0); +x_68 = l_Lean_getExternConstArityExport___closed__3; +x_69 = l_Lean_firstFrontendMacroScope; +x_70 = 0; +x_71 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_71, 0, x_62); +lean_ctor_set(x_71, 1, x_63); +lean_ctor_set(x_71, 2, x_50); +lean_ctor_set(x_71, 3, x_64); +lean_ctor_set(x_71, 4, x_65); +lean_ctor_set(x_71, 5, x_66); +lean_ctor_set(x_71, 6, x_67); +lean_ctor_set(x_71, 7, x_50); +lean_ctor_set(x_71, 8, x_60); +lean_ctor_set(x_71, 9, x_68); +lean_ctor_set(x_71, 10, x_69); +lean_ctor_set(x_71, 11, x_51); +lean_ctor_set_uint8(x_71, sizeof(void*)*12, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*12 + 1, x_70); +x_72 = lean_st_mk_ref(x_58, x_61); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = lean_ctor_get(x_74, 0); +lean_dec(x_72); +x_75 = lean_st_ref_get(x_73, x_74); +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_74); -x_77 = l_Lean_Kernel_isDiagnosticsEnabled(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); lean_dec(x_76); -if (x_77 == 0) -{ -uint8_t x_155; -x_155 = l_Lean_getExternConstArityExport___closed__12; -if (x_155 == 0) -{ -uint8_t x_156; -x_156 = 1; -x_78 = x_156; -goto block_154; -} -else -{ -x_78 = x_68; -goto block_154; -} -} -else +x_79 = l_Lean_Kernel_isDiagnosticsEnabled(x_78); +lean_dec(x_78); +if (x_79 == 0) { uint8_t x_157; -x_157 = l_Lean_getExternConstArityExport___closed__12; +x_157 = l_Lean_getExternConstArityExport___closed__13; if (x_157 == 0) { -x_78 = x_68; -goto block_154; -} -else -{ uint8_t x_158; x_158 = 1; -x_78 = x_158; -goto block_154; +x_80 = x_158; +goto block_156; +} +else +{ +x_80 = x_70; +goto block_156; +} +} +else +{ +uint8_t x_159; +x_159 = l_Lean_getExternConstArityExport___closed__13; +if (x_159 == 0) +{ +x_80 = x_70; +goto block_156; +} +else +{ +uint8_t x_160; +x_160 = 1; +x_80 = x_160; +goto block_156; } } block_20: @@ -3334,305 +3361,305 @@ goto block_20; } } } -block_154: +block_156: { -if (x_78 == 0) +if (x_80 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_79 = lean_st_ref_take(x_71, x_75); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -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_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_81 = lean_st_ref_take(x_73, x_77); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = !lean_is_exclusive(x_82); +if (x_84 == 0) { -lean_object* x_83; 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; -x_83 = lean_ctor_get(x_80, 0); -x_84 = lean_ctor_get(x_80, 4); -lean_dec(x_84); -x_85 = l_Lean_getExternConstArityExport___closed__12; -x_86 = l_Lean_Kernel_enableDiag(x_83, x_85); -lean_ctor_set(x_80, 4, x_54); -lean_ctor_set(x_80, 0, x_86); -x_87 = lean_st_ref_set(x_71, x_80, x_81); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_box(0); -lean_inc(x_71); -x_90 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_85, x_2, x_89, x_69, x_71, x_88); -if (lean_obj_tag(x_90) == 0) +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; +x_85 = lean_ctor_get(x_82, 0); +x_86 = lean_ctor_get(x_82, 4); +lean_dec(x_86); +x_87 = l_Lean_getExternConstArityExport___closed__13; +x_88 = l_Lean_Kernel_enableDiag(x_85, x_87); +lean_ctor_set(x_82, 4, x_55); +lean_ctor_set(x_82, 0, x_88); +x_89 = lean_st_ref_set(x_73, x_82, x_83); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_91 = lean_box(0); +lean_inc(x_73); +x_92 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_87, x_2, x_91, x_71, x_73, x_90); +if (lean_obj_tag(x_92) == 0) { -uint8_t x_91; -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) +uint8_t x_93; +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) { -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = lean_ctor_get(x_90, 1); -x_93 = lean_st_ref_get(x_71, x_92); -lean_dec(x_71); -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_ctor_get(x_92, 1); +x_95 = lean_st_ref_get(x_73, x_94); +lean_dec(x_73); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -lean_object* x_95; -x_95 = lean_ctor_get(x_93, 0); -lean_ctor_set(x_90, 1, x_95); -lean_ctor_set(x_93, 0, x_90); -x_4 = x_93; +lean_object* x_97; +x_97 = lean_ctor_get(x_95, 0); +lean_ctor_set(x_92, 1, x_97); +lean_ctor_set(x_95, 0, x_92); +x_4 = x_95; goto block_20; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_93, 0); -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_93); -lean_ctor_set(x_90, 1, x_96); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_90); -lean_ctor_set(x_98, 1, x_97); -x_4 = x_98; -goto block_20; -} -} -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_90, 0); -x_100 = lean_ctor_get(x_90, 1); -lean_inc(x_100); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_95, 0); +x_99 = lean_ctor_get(x_95, 1); lean_inc(x_99); -lean_dec(x_90); -x_101 = lean_st_ref_get(x_71, x_100); -lean_dec(x_71); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_104 = x_101; -} else { - lean_dec_ref(x_101); - x_104 = lean_box(0); -} -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_99); -lean_ctor_set(x_105, 1, x_102); -if (lean_is_scalar(x_104)) { - x_106 = lean_alloc_ctor(0, 2, 0); -} else { - x_106 = x_104; -} -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_103); -x_4 = x_106; +lean_inc(x_98); +lean_dec(x_95); +lean_ctor_set(x_92, 1, x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_92); +lean_ctor_set(x_100, 1, x_99); +x_4 = x_100; goto block_20; } } else { -lean_object* x_107; lean_object* x_108; -lean_dec(x_71); -x_107 = lean_ctor_get(x_90, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_90, 1); -lean_inc(x_108); -lean_dec(x_90); -x_21 = x_107; -x_22 = x_108; +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_101 = lean_ctor_get(x_92, 0); +x_102 = lean_ctor_get(x_92, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_92); +x_103 = lean_st_ref_get(x_73, x_102); +lean_dec(x_73); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_106 = x_103; +} else { + lean_dec_ref(x_103); + x_106 = lean_box(0); +} +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_101); +lean_ctor_set(x_107, 1, x_104); +if (lean_is_scalar(x_106)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_106; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_105); +x_4 = x_108; +goto block_20; +} +} +else +{ +lean_object* x_109; lean_object* x_110; +lean_dec(x_73); +x_109 = lean_ctor_get(x_92, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_92, 1); +lean_inc(x_110); +lean_dec(x_92); +x_21 = x_109; +x_22 = x_110; goto block_49; } } 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; uint8_t 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_109 = lean_ctor_get(x_80, 0); -x_110 = lean_ctor_get(x_80, 1); -x_111 = lean_ctor_get(x_80, 2); -x_112 = lean_ctor_get(x_80, 3); -x_113 = lean_ctor_get(x_80, 5); -x_114 = lean_ctor_get(x_80, 6); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t 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_82, 0); +x_112 = lean_ctor_get(x_82, 1); +x_113 = lean_ctor_get(x_82, 2); +x_114 = lean_ctor_get(x_82, 3); +x_115 = lean_ctor_get(x_82, 5); +x_116 = lean_ctor_get(x_82, 6); +lean_inc(x_116); +lean_inc(x_115); lean_inc(x_114); lean_inc(x_113); lean_inc(x_112); lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_80); -x_115 = l_Lean_getExternConstArityExport___closed__12; -x_116 = l_Lean_Kernel_enableDiag(x_109, x_115); -x_117 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_110); -lean_ctor_set(x_117, 2, x_111); -lean_ctor_set(x_117, 3, x_112); -lean_ctor_set(x_117, 4, x_54); -lean_ctor_set(x_117, 5, x_113); -lean_ctor_set(x_117, 6, x_114); -x_118 = lean_st_ref_set(x_71, x_117, x_81); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_box(0); -lean_inc(x_71); -x_121 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_115, x_2, x_120, x_69, x_71, x_119); -if (lean_obj_tag(x_121) == 0) +lean_dec(x_82); +x_117 = l_Lean_getExternConstArityExport___closed__13; +x_118 = l_Lean_Kernel_enableDiag(x_111, x_117); +x_119 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_112); +lean_ctor_set(x_119, 2, x_113); +lean_ctor_set(x_119, 3, x_114); +lean_ctor_set(x_119, 4, x_55); +lean_ctor_set(x_119, 5, x_115); +lean_ctor_set(x_119, 6, x_116); +x_120 = lean_st_ref_set(x_73, x_119, x_83); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +lean_dec(x_120); +x_122 = lean_box(0); +lean_inc(x_73); +x_123 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_117, x_2, x_122, x_71, x_73, x_121); +if (lean_obj_tag(x_123) == 0) { -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; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; +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; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; } else { - lean_dec_ref(x_121); - x_124 = lean_box(0); + lean_dec_ref(x_123); + x_126 = lean_box(0); } -x_125 = lean_st_ref_get(x_71, x_123); -lean_dec(x_71); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +x_127 = lean_st_ref_get(x_73, x_125); +lean_dec(x_73); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_129 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_126)) { + x_131 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_124; + x_131 = x_126; } -lean_ctor_set(x_129, 0, x_122); -lean_ctor_set(x_129, 1, x_126); -if (lean_is_scalar(x_128)) { - x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_124); +lean_ctor_set(x_131, 1, x_128); +if (lean_is_scalar(x_130)) { + x_132 = lean_alloc_ctor(0, 2, 0); } else { - x_130 = x_128; + x_132 = x_130; } -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_127); -x_4 = x_130; +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_129); +x_4 = x_132; goto block_20; } else { -lean_object* x_131; lean_object* x_132; -lean_dec(x_71); -x_131 = lean_ctor_get(x_121, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_121, 1); -lean_inc(x_132); -lean_dec(x_121); -x_21 = x_131; -x_22 = x_132; +lean_object* x_133; lean_object* x_134; +lean_dec(x_73); +x_133 = lean_ctor_get(x_123, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_123, 1); +lean_inc(x_134); +lean_dec(x_123); +x_21 = x_133; +x_22 = x_134; goto block_49; } } } else { -uint8_t x_133; lean_object* x_134; lean_object* x_135; -x_133 = l_Lean_getExternConstArityExport___closed__12; -x_134 = lean_box(0); -lean_inc(x_71); -x_135 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_133, x_2, x_134, x_69, x_71, x_75); -if (lean_obj_tag(x_135) == 0) +uint8_t x_135; lean_object* x_136; lean_object* x_137; +x_135 = l_Lean_getExternConstArityExport___closed__13; +x_136 = lean_box(0); +lean_inc(x_73); +x_137 = l_Lean_getExternConstArityExport___lambda__1(x_50, x_135, x_2, x_136, x_71, x_73, x_77); +if (lean_obj_tag(x_137) == 0) { -uint8_t x_136; -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) +uint8_t x_138; +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) { -lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_137 = lean_ctor_get(x_135, 1); -x_138 = lean_st_ref_get(x_71, x_137); -lean_dec(x_71); -x_139 = !lean_is_exclusive(x_138); -if (x_139 == 0) +lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_139 = lean_ctor_get(x_137, 1); +x_140 = lean_st_ref_get(x_73, x_139); +lean_dec(x_73); +x_141 = !lean_is_exclusive(x_140); +if (x_141 == 0) { -lean_object* x_140; -x_140 = lean_ctor_get(x_138, 0); -lean_ctor_set(x_135, 1, x_140); -lean_ctor_set(x_138, 0, x_135); -x_4 = x_138; +lean_object* x_142; +x_142 = lean_ctor_get(x_140, 0); +lean_ctor_set(x_137, 1, x_142); +lean_ctor_set(x_140, 0, x_137); +x_4 = x_140; goto block_20; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_138, 0); -x_142 = lean_ctor_get(x_138, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_138); -lean_ctor_set(x_135, 1, x_141); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_135); -lean_ctor_set(x_143, 1, x_142); -x_4 = x_143; -goto block_20; -} -} -else -{ -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; -x_144 = lean_ctor_get(x_135, 0); -x_145 = lean_ctor_get(x_135, 1); -lean_inc(x_145); +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_140, 0); +x_144 = lean_ctor_get(x_140, 1); lean_inc(x_144); -lean_dec(x_135); -x_146 = lean_st_ref_get(x_71, x_145); -lean_dec(x_71); -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_149 = x_146; -} else { - lean_dec_ref(x_146); - x_149 = lean_box(0); -} -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_144); -lean_ctor_set(x_150, 1, x_147); -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_150); -lean_ctor_set(x_151, 1, x_148); -x_4 = x_151; +lean_inc(x_143); +lean_dec(x_140); +lean_ctor_set(x_137, 1, x_143); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_137); +lean_ctor_set(x_145, 1, x_144); +x_4 = x_145; goto block_20; } } else { -lean_object* x_152; lean_object* x_153; -lean_dec(x_71); -x_152 = lean_ctor_get(x_135, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_135, 1); -lean_inc(x_153); -lean_dec(x_135); -x_21 = x_152; -x_22 = x_153; +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_146 = lean_ctor_get(x_137, 0); +x_147 = lean_ctor_get(x_137, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_137); +x_148 = lean_st_ref_get(x_73, x_147); +lean_dec(x_73); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; +} else { + lean_dec_ref(x_148); + x_151 = lean_box(0); +} +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_146); +lean_ctor_set(x_152, 1, x_149); +if (lean_is_scalar(x_151)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_151; +} +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_150); +x_4 = x_153; +goto block_20; +} +} +else +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_73); +x_154 = lean_ctor_get(x_137, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_137, 1); +lean_inc(x_155); +lean_dec(x_137); +x_21 = x_154; +x_22 = x_155; goto block_49; } } @@ -3821,6 +3848,8 @@ lean_mark_persistent(l_Lean_getExternConstArityExport___closed__10); l_Lean_getExternConstArityExport___closed__11 = _init_l_Lean_getExternConstArityExport___closed__11(); lean_mark_persistent(l_Lean_getExternConstArityExport___closed__11); l_Lean_getExternConstArityExport___closed__12 = _init_l_Lean_getExternConstArityExport___closed__12(); +lean_mark_persistent(l_Lean_getExternConstArityExport___closed__12); +l_Lean_getExternConstArityExport___closed__13 = _init_l_Lean_getExternConstArityExport___closed__13(); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Compiler/InitAttr.c b/stage0/stdlib/Lean/Compiler/InitAttr.c index 6f83a8ddd8..fedd9f1a7c 100644 --- a/stage0/stdlib/Lean/Compiler/InitAttr.c +++ b/stage0/stdlib/Lean/Compiler/InitAttr.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Compiler.InitAttr -// Imports: Lean.AddDecl Lean.Elab.InfoTree.Main +// Imports: Lean.AddDecl Lean.MonadEnv Lean.Elab.InfoTree.Main #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -43,7 +43,6 @@ uint8_t l_Lean_Name_isAnonymous(lean_object*); static lean_object* l___auto____x40_Lean_Compiler_InitAttr___hyg_1136____closed__10; static lean_object* l_Lean_declareBuiltin___closed__5; LEAN_EXPORT lean_object* l_Lean_builtinInitAttr; -LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_registerInitAttrUnsafe___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isIOUnitInitFn___boxed(lean_object*, lean_object*); @@ -97,6 +96,7 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_registerInitAttrUnsafe___spec__7___lambda__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_Array_forInUnsafe_loop___at_Lean_registerInitAttrUnsafe___spec__7___lambda__1___closed__1; static lean_object* l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; +LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_declareBuiltin___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isIOUnitInitFnCore___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_declareBuiltin___closed__4; lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -142,6 +142,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerInitAttrUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_ParametricAttribute_getParam_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_declareBuiltin___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_1150____closed__2; LEAN_EXPORT lean_object* l_Lean_hasInitAttr___boxed(lean_object*, lean_object*); @@ -156,6 +157,7 @@ lean_object* l_Lean_registerParametricAttribute___rarg(lean_object*, lean_object static lean_object* l_Lean_declareBuiltin___closed__7; static lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_1178____closed__4; static lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_1150____closed__1; +lean_object* l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_1178_(lean_object*); static lean_object* l___auto____x40_Lean_Compiler_InitAttr___hyg_1136____closed__26; static lean_object* l___auto____x40_Lean_Compiler_InitAttr___hyg_1136____closed__11; @@ -187,6 +189,7 @@ static lean_object* l_Lean_registerInitAttrUnsafe___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_isIOUnitBuiltinInitFn___boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_registerInitAttrUnsafe___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lean_registerInitAttrUnsafe___spec__5(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_declareBuiltin___closed__6; @@ -3536,7 +3539,43 @@ x_5 = l_Lean_ParametricAttribute_setParam___rarg(x_4, x_1, x_2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_declareBuiltin___spec__1(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; uint8_t x_7; +x_6 = lean_st_ref_get(x_4, x_5); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(x_9, x_1, x_2); +lean_ctor_set(x_6, 0, x_10); +return x_6; +} +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_6, 0); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_6); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(x_13, x_1, x_2); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3701,488 +3740,720 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_declareBuiltin(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; 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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_6 = l_Lean_declareBuiltin___closed__2; lean_inc(x_1); x_7 = l_Lean_Name_append(x_6, x_1); -x_8 = lean_box(0); -x_9 = l_Lean_declareBuiltin___closed__7; -lean_inc(x_7); -x_10 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_10, 0, x_7); -lean_ctor_set(x_10, 1, x_8); -lean_ctor_set(x_10, 2, x_9); -lean_inc(x_7); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_8); -x_12 = lean_box(0); -x_13 = 1; -x_14 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_2); -lean_ctor_set(x_14, 2, x_12); -lean_ctor_set(x_14, 3, x_11); -lean_ctor_set_uint8(x_14, sizeof(void*)*4, x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_st_ref_get(x_4, x_5); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_mkAuxName___at_Lean_declareBuiltin___spec__1(x_7, x_8, x_3, x_4, x_5); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Environment_addAndCompile(x_20, x_8, x_15); -if (lean_obj_tag(x_21) == 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_box(0); +x_14 = l_Lean_declareBuiltin___closed__7; +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_13); +lean_ctor_set(x_15, 2, x_14); +lean_inc(x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 1, x_13); +x_16 = lean_box(0); +x_17 = 1; +x_18 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_16); +lean_ctor_set(x_18, 3, x_9); +lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = lean_st_ref_get(x_4, x_12); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -uint8_t x_22; -lean_dec(x_7); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Environment_addAndCompile(x_24, x_13, x_19); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_21, 0); -x_24 = l_Lean_KernelException_toMessageData(x_23, x_8); -x_25 = lean_ctor_get(x_3, 5); -x_26 = l_Lean_MessageData_toString(x_24, x_19); -if (lean_obj_tag(x_26) == 0) +uint8_t x_26; +lean_dec(x_11); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 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; lean_object* x_37; -lean_free_object(x_21); -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 = l_Lean_MessageData_ofName(x_1); -x_30 = l_Lean_declareBuiltin___closed__9; -lean_ctor_set_tag(x_16, 6); -lean_ctor_set(x_16, 1, x_29); -lean_ctor_set(x_16, 0, x_30); -x_31 = l_Lean_declareBuiltin___closed__11; -x_32 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_stringToMessageData(x_27); -lean_dec(x_27); -x_34 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_declareBuiltin___closed__13; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_25, 0); +x_28 = l_Lean_KernelException_toMessageData(x_27, x_13); +x_29 = lean_ctor_get(x_3, 5); +x_30 = l_Lean_MessageData_toString(x_28, x_23); +if (lean_obj_tag(x_30) == 0) +{ +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_free_object(x_25); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_MessageData_ofName(x_1); +x_34 = l_Lean_declareBuiltin___closed__9; +lean_ctor_set_tag(x_20, 6); +lean_ctor_set(x_20, 1, x_33); +lean_ctor_set(x_20, 0, x_34); +x_35 = l_Lean_declareBuiltin___closed__11; x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 0, x_20); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_36, x_3, x_4, x_28); -return x_37; +x_37 = l_Lean_stringToMessageData(x_31); +lean_dec(x_31); +x_38 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_declareBuiltin___closed__13; +x_40 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_40, x_3, x_4, x_32); +return x_41; } else { -uint8_t x_38; +uint8_t x_42; lean_dec(x_1); -x_38 = !lean_is_exclusive(x_26); -if (x_38 == 0) +x_42 = !lean_is_exclusive(x_30); +if (x_42 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_26, 0); -x_40 = lean_io_error_to_string(x_39); -lean_ctor_set_tag(x_21, 3); -lean_ctor_set(x_21, 0, x_40); -x_41 = l_Lean_MessageData_ofFormat(x_21); -lean_inc(x_25); -lean_ctor_set(x_16, 1, x_41); -lean_ctor_set(x_16, 0, x_25); -lean_ctor_set(x_26, 0, x_16); -return x_26; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_30, 0); +x_44 = lean_io_error_to_string(x_43); +lean_ctor_set_tag(x_25, 3); +lean_ctor_set(x_25, 0, x_44); +x_45 = l_Lean_MessageData_ofFormat(x_25); +lean_inc(x_29); +lean_ctor_set(x_20, 1, x_45); +lean_ctor_set(x_20, 0, x_29); +lean_ctor_set(x_30, 0, x_20); +return x_30; } else { -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_26, 0); -x_43 = lean_ctor_get(x_26, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_26); -x_44 = lean_io_error_to_string(x_42); -lean_ctor_set_tag(x_21, 3); -lean_ctor_set(x_21, 0, x_44); -x_45 = l_Lean_MessageData_ofFormat(x_21); -lean_inc(x_25); -lean_ctor_set(x_16, 1, x_45); -lean_ctor_set(x_16, 0, x_25); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_16); -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; -x_47 = lean_ctor_get(x_21, 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_30, 0); +x_47 = lean_ctor_get(x_30, 1); lean_inc(x_47); -lean_dec(x_21); -x_48 = l_Lean_KernelException_toMessageData(x_47, x_8); -x_49 = lean_ctor_get(x_3, 5); -x_50 = l_Lean_MessageData_toString(x_48, x_19); -if (lean_obj_tag(x_50) == 0) +lean_inc(x_46); +lean_dec(x_30); +x_48 = lean_io_error_to_string(x_46); +lean_ctor_set_tag(x_25, 3); +lean_ctor_set(x_25, 0, x_48); +x_49 = l_Lean_MessageData_ofFormat(x_25); +lean_inc(x_29); +lean_ctor_set(x_20, 1, x_49); +lean_ctor_set(x_20, 0, x_29); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_20); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +} +else { -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; -x_51 = lean_ctor_get(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_25, 0); lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = l_Lean_MessageData_ofName(x_1); -x_54 = l_Lean_declareBuiltin___closed__9; -lean_ctor_set_tag(x_16, 6); -lean_ctor_set(x_16, 1, x_53); -lean_ctor_set(x_16, 0, x_54); -x_55 = l_Lean_declareBuiltin___closed__11; -x_56 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_56, 0, x_16); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_stringToMessageData(x_51); -lean_dec(x_51); -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -x_59 = l_Lean_declareBuiltin___closed__13; +lean_dec(x_25); +x_52 = l_Lean_KernelException_toMessageData(x_51, x_13); +x_53 = lean_ctor_get(x_3, 5); +x_54 = l_Lean_MessageData_toString(x_52, x_23); +if (lean_obj_tag(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; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +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 = l_Lean_MessageData_ofName(x_1); +x_58 = l_Lean_declareBuiltin___closed__9; +lean_ctor_set_tag(x_20, 6); +lean_ctor_set(x_20, 1, x_57); +lean_ctor_set(x_20, 0, x_58); +x_59 = l_Lean_declareBuiltin___closed__11; x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 0, x_20); lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_60, x_3, x_4, x_52); -return x_61; +x_61 = l_Lean_stringToMessageData(x_55); +lean_dec(x_55); +x_62 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Lean_declareBuiltin___closed__13; +x_64 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_64, x_3, x_4, x_56); +return x_65; } else { -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_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_dec(x_1); -x_62 = lean_ctor_get(x_50, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_50, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_64 = x_50; +x_66 = lean_ctor_get(x_54, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_54, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_68 = x_54; } else { - lean_dec_ref(x_50); - x_64 = lean_box(0); + lean_dec_ref(x_54); + x_68 = lean_box(0); } -x_65 = lean_io_error_to_string(x_62); -x_66 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_66, 0, x_65); -x_67 = l_Lean_MessageData_ofFormat(x_66); -lean_inc(x_49); -lean_ctor_set(x_16, 1, x_67); -lean_ctor_set(x_16, 0, x_49); -if (lean_is_scalar(x_64)) { - x_68 = lean_alloc_ctor(1, 2, 0); +x_69 = lean_io_error_to_string(x_66); +x_70 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = l_Lean_MessageData_ofFormat(x_70); +lean_inc(x_53); +lean_ctor_set(x_20, 1, x_71); +lean_ctor_set(x_20, 0, x_53); +if (lean_is_scalar(x_68)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_64; + x_72 = x_68; } -lean_ctor_set(x_68, 0, x_16); -lean_ctor_set(x_68, 1, x_63); -return x_68; +lean_ctor_set(x_72, 0, x_20); +lean_ctor_set(x_72, 1, x_67); +return x_72; } } } else { -uint8_t x_69; +uint8_t x_73; lean_dec(x_1); -x_69 = !lean_is_exclusive(x_21); -if (x_69 == 0) +x_73 = !lean_is_exclusive(x_25); +if (x_73 == 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; -x_70 = lean_ctor_get(x_21, 0); -x_71 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; -x_72 = lean_box(0); -x_73 = l_Lean_ParametricAttribute_setParam___rarg(x_71, x_70, x_7, x_72); -x_74 = lean_ctor_get(x_3, 5); -x_75 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(x_73, x_19); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_free_object(x_21); -lean_free_object(x_16); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_76, x_3, x_4, x_77); -return x_78; -} -else -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_75); -if (x_79 == 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_25, 0); +x_75 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; +x_76 = lean_box(0); +x_77 = l_Lean_ParametricAttribute_setParam___rarg(x_75, x_74, x_11, x_76); +x_78 = lean_ctor_get(x_3, 5); +x_79 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(x_77, x_23); +if (lean_obj_tag(x_79) == 0) { lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_75, 0); -x_81 = lean_io_error_to_string(x_80); -lean_ctor_set_tag(x_21, 3); -lean_ctor_set(x_21, 0, x_81); -x_82 = l_Lean_MessageData_ofFormat(x_21); -lean_inc(x_74); -lean_ctor_set(x_16, 1, x_82); -lean_ctor_set(x_16, 0, x_74); -lean_ctor_set(x_75, 0, x_16); -return x_75; +lean_free_object(x_25); +lean_free_object(x_20); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_80, x_3, x_4, x_81); +return x_82; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_83 = lean_ctor_get(x_75, 0); -x_84 = lean_ctor_get(x_75, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_75); -x_85 = lean_io_error_to_string(x_83); -lean_ctor_set_tag(x_21, 3); -lean_ctor_set(x_21, 0, x_85); -x_86 = l_Lean_MessageData_ofFormat(x_21); -lean_inc(x_74); -lean_ctor_set(x_16, 1, x_86); -lean_ctor_set(x_16, 0, x_74); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_16); -lean_ctor_set(x_87, 1, x_84); -return x_87; -} -} +uint8_t x_83; +x_83 = !lean_is_exclusive(x_79); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_79, 0); +x_85 = lean_io_error_to_string(x_84); +lean_ctor_set_tag(x_25, 3); +lean_ctor_set(x_25, 0, x_85); +x_86 = l_Lean_MessageData_ofFormat(x_25); +lean_inc(x_78); +lean_ctor_set(x_20, 1, x_86); +lean_ctor_set(x_20, 0, x_78); +lean_ctor_set(x_79, 0, x_20); +return x_79; } else { -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_21, 0); +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_79, 0); +x_88 = lean_ctor_get(x_79, 1); lean_inc(x_88); -lean_dec(x_21); -x_89 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; -x_90 = lean_box(0); -x_91 = l_Lean_ParametricAttribute_setParam___rarg(x_89, x_88, x_7, x_90); -x_92 = lean_ctor_get(x_3, 5); -x_93 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(x_91, x_19); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_free_object(x_16); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_94, x_3, x_4, x_95); -return x_96; +lean_inc(x_87); +lean_dec(x_79); +x_89 = lean_io_error_to_string(x_87); +lean_ctor_set_tag(x_25, 3); +lean_ctor_set(x_25, 0, x_89); +x_90 = l_Lean_MessageData_ofFormat(x_25); +lean_inc(x_78); +lean_ctor_set(x_20, 1, x_90); +lean_ctor_set(x_20, 0, x_78); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_20); +lean_ctor_set(x_91, 1, x_88); +return x_91; +} +} } 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; -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_io_error_to_string(x_97); -x_101 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_101, 0, x_100); -x_102 = l_Lean_MessageData_ofFormat(x_101); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_92 = lean_ctor_get(x_25, 0); lean_inc(x_92); -lean_ctor_set(x_16, 1, x_102); -lean_ctor_set(x_16, 0, x_92); -if (lean_is_scalar(x_99)) { - x_103 = lean_alloc_ctor(1, 2, 0); -} else { - x_103 = x_99; +lean_dec(x_25); +x_93 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; +x_94 = lean_box(0); +x_95 = l_Lean_ParametricAttribute_setParam___rarg(x_93, x_92, x_11, x_94); +x_96 = lean_ctor_get(x_3, 5); +x_97 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(x_95, x_23); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_free_object(x_20); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_98, x_3, x_4, x_99); +return x_100; } -lean_ctor_set(x_103, 0, x_16); -lean_ctor_set(x_103, 1, x_98); -return x_103; +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; +x_101 = lean_ctor_get(x_97, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_97, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_103 = x_97; +} else { + lean_dec_ref(x_97); + x_103 = lean_box(0); +} +x_104 = lean_io_error_to_string(x_101); +x_105 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_105, 0, x_104); +x_106 = l_Lean_MessageData_ofFormat(x_105); +lean_inc(x_96); +lean_ctor_set(x_20, 1, x_106); +lean_ctor_set(x_20, 0, x_96); +if (lean_is_scalar(x_103)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_103; +} +lean_ctor_set(x_107, 0, x_20); +lean_ctor_set(x_107, 1, x_102); +return x_107; } } } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_16, 0); -x_105 = lean_ctor_get(x_16, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_16); -x_106 = lean_ctor_get(x_104, 0); -lean_inc(x_106); -lean_dec(x_104); -x_107 = l_Lean_Environment_addAndCompile(x_106, x_8, x_15); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_7); -x_108 = lean_ctor_get(x_107, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_20, 0); +x_109 = lean_ctor_get(x_20, 1); +lean_inc(x_109); lean_inc(x_108); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - x_109 = x_107; -} else { - lean_dec_ref(x_107); - x_109 = lean_box(0); -} -x_110 = l_Lean_KernelException_toMessageData(x_108, x_8); -x_111 = lean_ctor_get(x_3, 5); -x_112 = l_Lean_MessageData_toString(x_110, x_105); -if (lean_obj_tag(x_112) == 0) +lean_dec(x_20); +x_110 = lean_ctor_get(x_108, 0); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Lean_Environment_addAndCompile(x_110, x_13, x_19); +if (lean_obj_tag(x_111) == 0) { -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_dec(x_109); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = l_Lean_MessageData_ofName(x_1); -x_116 = l_Lean_declareBuiltin___closed__9; -x_117 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_115); -x_118 = l_Lean_declareBuiltin___closed__11; -x_119 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_stringToMessageData(x_113); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_11); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_113 = x_111; +} else { + lean_dec_ref(x_111); + x_113 = lean_box(0); +} +x_114 = l_Lean_KernelException_toMessageData(x_112, x_13); +x_115 = lean_ctor_get(x_3, 5); +x_116 = l_Lean_MessageData_toString(x_114, x_109); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_dec(x_113); +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_119 = l_Lean_MessageData_ofName(x_1); +x_120 = l_Lean_declareBuiltin___closed__9; x_121 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_declareBuiltin___closed__13; +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_119); +x_122 = l_Lean_declareBuiltin___closed__11; x_123 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_123, 0, x_121); lean_ctor_set(x_123, 1, x_122); -x_124 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_123, x_3, x_4, x_114); -return x_124; +x_124 = l_Lean_stringToMessageData(x_117); +lean_dec(x_117); +x_125 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Lean_declareBuiltin___closed__13; +x_127 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +x_128 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_127, x_3, x_4, x_118); +return x_128; } 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; lean_object* x_131; lean_object* x_132; +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_dec(x_1); -x_125 = lean_ctor_get(x_112, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_112, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_127 = x_112; +x_129 = lean_ctor_get(x_116, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_116, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_131 = x_116; } else { - lean_dec_ref(x_112); - x_127 = lean_box(0); + lean_dec_ref(x_116); + x_131 = lean_box(0); } -x_128 = lean_io_error_to_string(x_125); -if (lean_is_scalar(x_109)) { - x_129 = lean_alloc_ctor(3, 1, 0); +x_132 = lean_io_error_to_string(x_129); +if (lean_is_scalar(x_113)) { + x_133 = lean_alloc_ctor(3, 1, 0); } else { - x_129 = x_109; - lean_ctor_set_tag(x_129, 3); + x_133 = x_113; + lean_ctor_set_tag(x_133, 3); } -lean_ctor_set(x_129, 0, x_128); -x_130 = l_Lean_MessageData_ofFormat(x_129); -lean_inc(x_111); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_111); -lean_ctor_set(x_131, 1, x_130); -if (lean_is_scalar(x_127)) { - x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +x_134 = l_Lean_MessageData_ofFormat(x_133); +lean_inc(x_115); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_115); +lean_ctor_set(x_135, 1, x_134); +if (lean_is_scalar(x_131)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_127; + x_136 = x_131; } -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_126); -return x_132; +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_130); +return x_136; } } else { -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_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_dec(x_1); -x_133 = lean_ctor_get(x_107, 0); -lean_inc(x_133); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - x_134 = x_107; +x_137 = lean_ctor_get(x_111, 0); +lean_inc(x_137); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_138 = x_111; } else { - lean_dec_ref(x_107); - x_134 = lean_box(0); + lean_dec_ref(x_111); + x_138 = lean_box(0); } -x_135 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; -x_136 = lean_box(0); -x_137 = l_Lean_ParametricAttribute_setParam___rarg(x_135, x_133, x_7, x_136); -x_138 = lean_ctor_get(x_3, 5); -x_139 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(x_137, x_105); -if (lean_obj_tag(x_139) == 0) +x_139 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; +x_140 = lean_box(0); +x_141 = l_Lean_ParametricAttribute_setParam___rarg(x_139, x_137, x_11, x_140); +x_142 = lean_ctor_get(x_3, 5); +x_143 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(x_141, x_109); +if (lean_obj_tag(x_143) == 0) { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_134); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_140, x_3, x_4, x_141); -return x_142; -} -else -{ -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; -x_143 = lean_ctor_get(x_139, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_139, 1); +lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_138); +x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_145 = x_139; +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_144, x_3, x_4, x_145); +return x_146; +} +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; lean_object* x_153; lean_object* x_154; +x_147 = lean_ctor_get(x_143, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_143, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_149 = x_143; } else { - lean_dec_ref(x_139); - x_145 = lean_box(0); + lean_dec_ref(x_143); + x_149 = lean_box(0); } -x_146 = lean_io_error_to_string(x_143); -if (lean_is_scalar(x_134)) { - x_147 = lean_alloc_ctor(3, 1, 0); +x_150 = lean_io_error_to_string(x_147); +if (lean_is_scalar(x_138)) { + x_151 = lean_alloc_ctor(3, 1, 0); } else { - x_147 = x_134; - lean_ctor_set_tag(x_147, 3); + x_151 = x_138; + lean_ctor_set_tag(x_151, 3); } -lean_ctor_set(x_147, 0, x_146); -x_148 = l_Lean_MessageData_ofFormat(x_147); -lean_inc(x_138); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_138); -lean_ctor_set(x_149, 1, x_148); -if (lean_is_scalar(x_145)) { - x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_150); +x_152 = l_Lean_MessageData_ofFormat(x_151); +lean_inc(x_142); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_142); +lean_ctor_set(x_153, 1, x_152); +if (lean_is_scalar(x_149)) { + x_154 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_145; + x_154 = x_149; } -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_144); -return x_150; +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_148); +return x_154; } } } } +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; uint8_t 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_9, 0); +x_156 = lean_ctor_get(x_9, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_9); +x_157 = lean_box(0); +x_158 = l_Lean_declareBuiltin___closed__7; +lean_inc(x_155); +x_159 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_159, 0, x_155); +lean_ctor_set(x_159, 1, x_157); +lean_ctor_set(x_159, 2, x_158); +lean_inc(x_155); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_155); +lean_ctor_set(x_160, 1, x_157); +x_161 = lean_box(0); +x_162 = 1; +x_163 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_163, 0, x_159); +lean_ctor_set(x_163, 1, x_2); +lean_ctor_set(x_163, 2, x_161); +lean_ctor_set(x_163, 3, x_160); +lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_162); +x_164 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_164, 0, x_163); +x_165 = lean_st_ref_get(x_4, x_156); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_168 = x_165; +} else { + lean_dec_ref(x_165); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_166, 0); +lean_inc(x_169); +lean_dec(x_166); +x_170 = l_Lean_Environment_addAndCompile(x_169, x_157, x_164); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_155); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + x_172 = x_170; +} else { + lean_dec_ref(x_170); + x_172 = lean_box(0); +} +x_173 = l_Lean_KernelException_toMessageData(x_171, x_157); +x_174 = lean_ctor_get(x_3, 5); +x_175 = l_Lean_MessageData_toString(x_173, x_167); +if (lean_obj_tag(x_175) == 0) +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_172); +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +lean_dec(x_175); +x_178 = l_Lean_MessageData_ofName(x_1); +x_179 = l_Lean_declareBuiltin___closed__9; +if (lean_is_scalar(x_168)) { + x_180 = lean_alloc_ctor(6, 2, 0); +} else { + x_180 = x_168; + lean_ctor_set_tag(x_180, 6); +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_178); +x_181 = l_Lean_declareBuiltin___closed__11; +x_182 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +x_183 = l_Lean_stringToMessageData(x_176); +lean_dec(x_176); +x_184 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +x_185 = l_Lean_declareBuiltin___closed__13; +x_186 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +x_187 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_186, x_3, x_4, x_177); +return x_187; +} +else +{ +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_dec(x_1); +x_188 = lean_ctor_get(x_175, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_175, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_190 = x_175; +} else { + lean_dec_ref(x_175); + x_190 = lean_box(0); +} +x_191 = lean_io_error_to_string(x_188); +if (lean_is_scalar(x_172)) { + x_192 = lean_alloc_ctor(3, 1, 0); +} else { + x_192 = x_172; + lean_ctor_set_tag(x_192, 3); +} +lean_ctor_set(x_192, 0, x_191); +x_193 = l_Lean_MessageData_ofFormat(x_192); +lean_inc(x_174); +if (lean_is_scalar(x_168)) { + x_194 = lean_alloc_ctor(0, 2, 0); +} else { + x_194 = x_168; +} +lean_ctor_set(x_194, 0, x_174); +lean_ctor_set(x_194, 1, x_193); +if (lean_is_scalar(x_190)) { + x_195 = lean_alloc_ctor(1, 2, 0); +} else { + x_195 = x_190; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_189); +return x_195; +} +} +else +{ +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_dec(x_1); +x_196 = lean_ctor_get(x_170, 0); +lean_inc(x_196); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + x_197 = x_170; +} else { + lean_dec_ref(x_170); + x_197 = lean_box(0); +} +x_198 = l_Lean_getBuiltinInitFnNameFor_x3f___closed__1; +x_199 = lean_box(0); +x_200 = l_Lean_ParametricAttribute_setParam___rarg(x_198, x_196, x_155, x_199); +x_201 = lean_ctor_get(x_3, 5); +x_202 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(x_200, x_167); +if (lean_obj_tag(x_202) == 0) +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_197); +lean_dec(x_168); +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_202, 1); +lean_inc(x_204); +lean_dec(x_202); +x_205 = l_Lean_setEnv___at_Lean_compileDecl___spec__14(x_203, x_3, x_4, x_204); +return x_205; +} +else +{ +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_206 = lean_ctor_get(x_202, 0); +lean_inc(x_206); +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; +} else { + lean_dec_ref(x_202); + x_208 = lean_box(0); +} +x_209 = lean_io_error_to_string(x_206); +if (lean_is_scalar(x_197)) { + x_210 = lean_alloc_ctor(3, 1, 0); +} else { + x_210 = x_197; + lean_ctor_set_tag(x_210, 3); +} +lean_ctor_set(x_210, 0, x_209); +x_211 = l_Lean_MessageData_ofFormat(x_210); +lean_inc(x_201); +if (lean_is_scalar(x_168)) { + x_212 = lean_alloc_ctor(0, 2, 0); +} else { + x_212 = x_168; +} +lean_ctor_set(x_212, 0, x_201); +lean_ctor_set(x_212, 1, x_211); +if (lean_is_scalar(x_208)) { + x_213 = lean_alloc_ctor(1, 2, 0); +} else { + x_213 = x_208; +} +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_207); +return x_213; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_declareBuiltin___spec__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_Lean_mkAuxName___at_Lean_declareBuiltin___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_6; +} } LEAN_EXPORT lean_object* l_Lean_declareBuiltin___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: @@ -4195,6 +4466,7 @@ return x_6; } } lean_object* initialize_Lean_AddDecl(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_MonadEnv(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_InfoTree_Main(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Compiler_InitAttr(uint8_t builtin, lean_object* w) { @@ -4204,6 +4476,9 @@ _G_initialized = true; res = initialize_Lean_AddDecl(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_MonadEnv(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_InfoTree_Main(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Main.c b/stage0/stdlib/Lean/Compiler/LCNF/Main.c index 08a8b8e0bf..e45893dc33 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Main.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Main.c @@ -1353,7 +1353,7 @@ x_14 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___l x_15 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_14); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); lean_inc(x_3); x_16 = l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_UnreachableBranches_elimDead_go___spec__1(x_3, x_4, x_5, x_8, x_9, x_10); x_17 = lean_ctor_get(x_16, 0); @@ -1540,7 +1540,7 @@ return x_70; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; x_71 = lean_ctor_get(x_8, 0); x_72 = lean_ctor_get(x_8, 1); x_73 = lean_ctor_get(x_8, 3); @@ -1550,6 +1550,9 @@ x_76 = lean_ctor_get(x_8, 7); x_77 = lean_ctor_get(x_8, 8); x_78 = lean_ctor_get(x_8, 9); x_79 = lean_ctor_get(x_8, 10); +x_80 = lean_ctor_get(x_8, 11); +x_81 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); @@ -1560,130 +1563,132 @@ lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); lean_dec(x_8); -x_80 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__1; -x_81 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_80); -x_82 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_82, 0, x_71); -lean_ctor_set(x_82, 1, x_72); -lean_ctor_set(x_82, 2, x_1); -lean_ctor_set(x_82, 3, x_73); -lean_ctor_set(x_82, 4, x_81); -lean_ctor_set(x_82, 5, x_74); -lean_ctor_set(x_82, 6, x_75); -lean_ctor_set(x_82, 7, x_76); -lean_ctor_set(x_82, 8, x_77); -lean_ctor_set(x_82, 9, x_78); -lean_ctor_set(x_82, 10, x_79); -lean_ctor_set_uint8(x_82, sizeof(void*)*11, x_2); +x_82 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__1; +x_83 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_82); +x_84 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_84, 0, x_71); +lean_ctor_set(x_84, 1, x_72); +lean_ctor_set(x_84, 2, x_1); +lean_ctor_set(x_84, 3, x_73); +lean_ctor_set(x_84, 4, x_83); +lean_ctor_set(x_84, 5, x_74); +lean_ctor_set(x_84, 6, x_75); +lean_ctor_set(x_84, 7, x_76); +lean_ctor_set(x_84, 8, x_77); +lean_ctor_set(x_84, 9, x_78); +lean_ctor_set(x_84, 10, x_79); +lean_ctor_set(x_84, 11, x_80); +lean_ctor_set_uint8(x_84, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_84, sizeof(void*)*12 + 1, x_81); lean_inc(x_3); -x_83 = l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_UnreachableBranches_elimDead_go___spec__1(x_3, x_4, x_5, x_82, x_9, x_10); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_unbox(x_84); -lean_dec(x_84); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_3); -x_86 = lean_ctor_get(x_83, 1); +x_85 = l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_UnreachableBranches_elimDead_go___spec__1(x_3, x_4, x_5, x_84, x_9, x_10); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_dec(x_83); -x_87 = lean_box(0); -x_88 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__1(x_6, x_87, x_4, x_5, x_82, x_9, x_86); -return x_88; +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_3); +x_88 = lean_ctor_get(x_85, 1); +lean_inc(x_88); +lean_dec(x_85); +x_89 = lean_box(0); +x_90 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__1(x_6, x_89, x_4, x_5, x_84, x_9, x_88); +return x_90; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_83, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_90 = x_83; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_85, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_92 = x_85; } else { - lean_dec_ref(x_83); - x_90 = lean_box(0); + lean_dec_ref(x_85); + x_92 = lean_box(0); } lean_inc(x_9); -lean_inc(x_82); +lean_inc(x_84); lean_inc(x_6); -x_91 = l_Lean_Compiler_LCNF_ppDecl_x27(x_6, x_82, x_9, x_89); -if (lean_obj_tag(x_91) == 0) +x_93 = l_Lean_Compiler_LCNF_ppDecl_x27(x_6, x_84, x_9, x_91); +if (lean_obj_tag(x_93) == 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; 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; -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); +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; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); lean_inc(x_6); -x_94 = l_Lean_Compiler_LCNF_Decl_size(x_6); -x_95 = l___private_Init_Data_Repr_0__Nat_reprFast(x_94); -x_96 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = l_Lean_MessageData_ofFormat(x_96); -x_98 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__3; -if (lean_is_scalar(x_90)) { - x_99 = lean_alloc_ctor(6, 2, 0); +x_96 = l_Lean_Compiler_LCNF_Decl_size(x_6); +x_97 = l___private_Init_Data_Repr_0__Nat_reprFast(x_96); +x_98 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_98, 0, x_97); +x_99 = l_Lean_MessageData_ofFormat(x_98); +x_100 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__3; +if (lean_is_scalar(x_92)) { + x_101 = lean_alloc_ctor(6, 2, 0); } else { - x_99 = x_90; - lean_ctor_set_tag(x_99, 6); + x_101 = x_92; + lean_ctor_set_tag(x_101, 6); } -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__5; -x_101 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_MessageData_ofFormat(x_92); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__5; x_103 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); -x_104 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__7; +x_104 = l_Lean_MessageData_ofFormat(x_94); x_105 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_addTrace___at_Lean_Compiler_LCNF_UnreachableBranches_elimDead_go___spec__2(x_3, x_105, x_4, x_5, x_82, x_9, x_93); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_109 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__1(x_6, x_107, x_4, x_5, x_82, x_9, x_108); -lean_dec(x_107); -return x_109; +x_106 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__2___closed__7; +x_107 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_addTrace___at_Lean_Compiler_LCNF_UnreachableBranches_elimDead_go___spec__2(x_3, x_107, x_4, x_5, x_84, x_9, x_95); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_checkpoint___spec__1___lambda__1(x_6, x_109, x_4, x_5, x_84, x_9, x_110); +lean_dec(x_109); +return x_111; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_90); -lean_dec(x_82); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_92); +lean_dec(x_84); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_110 = lean_ctor_get(x_91, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_91, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_112 = x_91; +x_112 = lean_ctor_get(x_93, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_93, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_114 = x_93; } else { - lean_dec_ref(x_91); - x_112 = lean_box(0); + lean_dec_ref(x_93); + x_114 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_113 = x_112; + x_115 = x_114; } -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } } } @@ -6623,7 +6628,7 @@ return x_41; } 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; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; uint8_t x_69; +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; uint8_t x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; uint8_t x_71; x_56 = lean_ctor_get(x_4, 0); x_57 = lean_ctor_get(x_4, 1); x_58 = lean_ctor_get(x_4, 2); @@ -6635,7 +6640,10 @@ x_63 = lean_ctor_get(x_4, 7); x_64 = lean_ctor_get(x_4, 8); x_65 = lean_ctor_get(x_4, 9); x_66 = lean_ctor_get(x_4, 10); -x_67 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_67 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_68 = lean_ctor_get(x_4, 11); +x_69 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_68); lean_inc(x_66); lean_inc(x_65); lean_inc(x_64); @@ -6648,246 +6656,250 @@ lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); lean_dec(x_4); -x_68 = lean_unsigned_to_nat(8192u); -x_69 = lean_nat_dec_le(x_68, x_60); -if (x_69 == 0) +x_70 = lean_unsigned_to_nat(8192u); +x_71 = lean_nat_dec_le(x_70, x_60); +if (x_71 == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_dec(x_60); -x_70 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_70, 0, x_56); -lean_ctor_set(x_70, 1, x_57); -lean_ctor_set(x_70, 2, x_58); -lean_ctor_set(x_70, 3, x_59); -lean_ctor_set(x_70, 4, x_68); -lean_ctor_set(x_70, 5, x_61); -lean_ctor_set(x_70, 6, x_62); -lean_ctor_set(x_70, 7, x_63); -lean_ctor_set(x_70, 8, x_64); -lean_ctor_set(x_70, 9, x_65); -lean_ctor_set(x_70, 10, x_66); -lean_ctor_set_uint8(x_70, sizeof(void*)*11, x_67); +x_72 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_72, 0, x_56); +lean_ctor_set(x_72, 1, x_57); +lean_ctor_set(x_72, 2, x_58); +lean_ctor_set(x_72, 3, x_59); +lean_ctor_set(x_72, 4, x_70); +lean_ctor_set(x_72, 5, x_61); +lean_ctor_set(x_72, 6, x_62); +lean_ctor_set(x_72, 7, x_63); +lean_ctor_set(x_72, 8, x_64); +lean_ctor_set(x_72, 9, x_65); +lean_ctor_set(x_72, 10, x_66); +lean_ctor_set(x_72, 11, x_68); +lean_ctor_set_uint8(x_72, sizeof(void*)*12, x_67); +lean_ctor_set_uint8(x_72, sizeof(void*)*12 + 1, x_69); if (x_9 == 0) { -lean_object* x_79; -lean_dec(x_7); -lean_dec(x_1); -x_79 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_71 = x_79; -x_72 = x_6; -goto block_78; -} -else -{ -uint8_t x_80; -x_80 = lean_nat_dec_le(x_7, x_7); -if (x_80 == 0) -{ lean_object* x_81; lean_dec(x_7); lean_dec(x_1); x_81 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_71 = x_81; -x_72 = x_6; -goto block_78; +x_73 = x_81; +x_74 = x_6; +goto block_80; } else { -size_t x_82; size_t x_83; lean_object* x_84; lean_object* x_85; -x_82 = 0; -x_83 = lean_usize_of_nat(x_7); +uint8_t x_82; +x_82 = lean_nat_dec_le(x_7, x_7); +if (x_82 == 0) +{ +lean_object* x_83; lean_dec(x_7); -x_84 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -lean_inc(x_5); -lean_inc(x_70); -x_85 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__9(x_1, x_82, x_83, x_84, x_2, x_3, x_70, x_5, x_6); lean_dec(x_1); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_71 = x_86; -x_72 = x_87; -goto block_78; +x_83 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +x_73 = x_83; +x_74 = x_6; +goto block_80; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_70); +size_t x_84; size_t x_85; lean_object* x_86; lean_object* x_87; +x_84 = 0; +x_85 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_86 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +lean_inc(x_5); +lean_inc(x_72); +x_87 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__9(x_1, x_84, x_85, x_86, x_2, x_3, x_72, x_5, x_6); +lean_dec(x_1); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_73 = x_88; +x_74 = x_89; +goto block_80; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_72); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_88 = lean_ctor_get(x_85, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_85, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_90 = x_85; +x_90 = lean_ctor_get(x_87, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_87, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_92 = x_87; } else { - lean_dec_ref(x_85); - x_90 = lean_box(0); + lean_dec_ref(x_87); + x_92 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_90; + x_93 = x_92; } -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } } -block_78: +block_80: { -uint8_t x_73; -x_73 = l_Array_isEmpty___rarg(x_71); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_box(0); -x_75 = l_Lean_Compiler_LCNF_PassManager_run___lambda__2(x_71, x_74, x_2, x_3, x_70, x_5, x_72); -return x_75; -} -else +uint8_t x_75; +x_75 = l_Array_isEmpty___rarg(x_73); +if (x_75 == 0) { lean_object* x_76; lean_object* x_77; -lean_dec(x_71); -lean_dec(x_70); +x_76 = lean_box(0); +x_77 = l_Lean_Compiler_LCNF_PassManager_run___lambda__2(x_73, x_76, x_2, x_3, x_72, x_5, x_74); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_73); +lean_dec(x_72); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_76 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_72); -return x_77; +x_78 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +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; } } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_92, 0, x_56); -lean_ctor_set(x_92, 1, x_57); -lean_ctor_set(x_92, 2, x_58); -lean_ctor_set(x_92, 3, x_59); -lean_ctor_set(x_92, 4, x_60); -lean_ctor_set(x_92, 5, x_61); -lean_ctor_set(x_92, 6, x_62); -lean_ctor_set(x_92, 7, x_63); -lean_ctor_set(x_92, 8, x_64); -lean_ctor_set(x_92, 9, x_65); -lean_ctor_set(x_92, 10, x_66); -lean_ctor_set_uint8(x_92, sizeof(void*)*11, x_67); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_94, 0, x_56); +lean_ctor_set(x_94, 1, x_57); +lean_ctor_set(x_94, 2, x_58); +lean_ctor_set(x_94, 3, x_59); +lean_ctor_set(x_94, 4, x_60); +lean_ctor_set(x_94, 5, x_61); +lean_ctor_set(x_94, 6, x_62); +lean_ctor_set(x_94, 7, x_63); +lean_ctor_set(x_94, 8, x_64); +lean_ctor_set(x_94, 9, x_65); +lean_ctor_set(x_94, 10, x_66); +lean_ctor_set(x_94, 11, x_68); +lean_ctor_set_uint8(x_94, sizeof(void*)*12, x_67); +lean_ctor_set_uint8(x_94, sizeof(void*)*12 + 1, x_69); if (x_9 == 0) { -lean_object* x_101; -lean_dec(x_7); -lean_dec(x_1); -x_101 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_93 = x_101; -x_94 = x_6; -goto block_100; -} -else -{ -uint8_t x_102; -x_102 = lean_nat_dec_le(x_7, x_7); -if (x_102 == 0) -{ lean_object* x_103; lean_dec(x_7); lean_dec(x_1); x_103 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_93 = x_103; -x_94 = x_6; -goto block_100; +x_95 = x_103; +x_96 = x_6; +goto block_102; } else { -size_t x_104; size_t x_105; lean_object* x_106; lean_object* x_107; -x_104 = 0; -x_105 = lean_usize_of_nat(x_7); +uint8_t x_104; +x_104 = lean_nat_dec_le(x_7, x_7); +if (x_104 == 0) +{ +lean_object* x_105; lean_dec(x_7); -x_106 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -lean_inc(x_5); -lean_inc(x_92); -x_107 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__9(x_1, x_104, x_105, x_106, x_2, x_3, x_92, x_5, x_6); lean_dec(x_1); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_93 = x_108; -x_94 = x_109; -goto block_100; +x_105 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +x_95 = x_105; +x_96 = x_6; +goto block_102; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_92); +size_t x_106; size_t x_107; lean_object* x_108; lean_object* x_109; +x_106 = 0; +x_107 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_108 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +lean_inc(x_5); +lean_inc(x_94); +x_109 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_PassManager_run___spec__9(x_1, x_106, x_107, x_108, x_2, x_3, x_94, x_5, x_6); +lean_dec(x_1); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_95 = x_110; +x_96 = x_111; +goto block_102; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_94); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_110 = lean_ctor_get(x_107, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_107, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_112 = x_107; +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_109, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_114 = x_109; } else { - lean_dec_ref(x_107); - x_112 = lean_box(0); + lean_dec_ref(x_109); + x_114 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_113 = x_112; + x_115 = x_114; } -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } } } -block_100: +block_102: { -uint8_t x_95; -x_95 = l_Array_isEmpty___rarg(x_93); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; -x_96 = lean_box(0); -x_97 = l_Lean_Compiler_LCNF_PassManager_run___lambda__3(x_93, x_96, x_2, x_3, x_92, x_5, x_94); -return x_97; -} -else +uint8_t x_97; +x_97 = l_Array_isEmpty___rarg(x_95); +if (x_97 == 0) { lean_object* x_98; lean_object* x_99; -lean_dec(x_93); -lean_dec(x_92); +x_98 = lean_box(0); +x_99 = l_Lean_Compiler_LCNF_PassManager_run___lambda__3(x_95, x_98, x_2, x_3, x_94, x_5, x_96); +return x_99; +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_95); +lean_dec(x_94); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_98 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_94); -return x_99; +x_100 = l_Lean_Compiler_LCNF_shouldGenerateCode___closed__9; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_96); +return x_101; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/PrettyPrinter.c b/stage0/stdlib/Lean/Compiler/LCNF/PrettyPrinter.c index c8a5548e2f..e52f4faeae 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/PrettyPrinter.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/PrettyPrinter.c @@ -34,6 +34,7 @@ static lean_object* l_Lean_Compiler_LCNF_PP_ppExpr___closed__14; static lean_object* l_Lean_Compiler_LCNF_PP_ppLetDecl___closed__5; static lean_object* l_Lean_Compiler_LCNF_PP_ppExpr___closed__16; lean_object* l_Lean_Compiler_LCNF_PP_ppParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Compiler_LCNF_PP_ppCode___closed__2; static lean_object* l_Lean_Compiler_LCNF_PP_ppParam___closed__2; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); @@ -742,17 +743,21 @@ if (x_20 == 0) { lean_object* x_21; uint8_t x_22; x_21 = lean_ctor_get(x_8, 0); -x_22 = l_Lean_Exception_isRuntime(x_21); +x_22 = l_Lean_Exception_isInterrupt(x_21); if (x_22 == 0) { -uint8_t x_23; lean_object* x_24; lean_object* x_25; +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_21); +if (x_23 == 0) +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_21); -x_23 = 1; -x_24 = l_Lean_Name_toString(x_1, x_23); -x_25 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_25, 0, x_24); +x_24 = 1; +x_25 = l_Lean_Name_toString(x_1, x_24); +x_26 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_26, 0, x_25); lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_25); +lean_ctor_set(x_8, 0, x_26); return x_8; } else @@ -763,34 +768,54 @@ return x_8; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_8, 0); -x_27 = lean_ctor_get(x_8, 1); +lean_dec(x_1); +return x_8; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_8, 0); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); lean_dec(x_8); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) +x_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) { -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_26); -x_29 = 1; -x_30 = l_Lean_Name_toString(x_1, x_29); -x_31 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_31, 0, 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_27); -return x_32; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_27); +x_31 = 1; +x_32 = l_Lean_Name_toString(x_1, x_31); +x_33 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_28); +return x_34; } else { -lean_object* x_33; +lean_object* x_35; lean_dec(x_1); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_26); -lean_ctor_set(x_33, 1, x_27); -return x_33; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +return x_35; +} +} +else +{ +lean_object* x_36; +lean_dec(x_1); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; } } } @@ -4745,7 +4770,7 @@ x_13 = l_Lean_Compiler_LCNF_PP_run___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = lean_st_ref_get(x_3, x_9); x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); @@ -4761,7 +4786,7 @@ return x_20; } else { -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_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; 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; x_21 = lean_ctor_get(x_7, 0); x_22 = lean_ctor_get(x_7, 1); x_23 = lean_ctor_get(x_7, 3); @@ -4771,6 +4796,9 @@ x_26 = lean_ctor_get(x_7, 7); x_27 = lean_ctor_get(x_7, 8); x_28 = lean_ctor_get(x_7, 9); x_29 = lean_ctor_get(x_7, 10); +x_30 = lean_ctor_get(x_7, 11); +x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -4781,33 +4809,35 @@ lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_dec(x_7); -x_30 = l_Lean_Compiler_LCNF_PP_run___rarg___lambda__1___closed__1; -x_31 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_30); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_21); -lean_ctor_set(x_32, 1, x_22); -lean_ctor_set(x_32, 2, x_1); -lean_ctor_set(x_32, 3, x_23); -lean_ctor_set(x_32, 4, x_31); -lean_ctor_set(x_32, 5, x_24); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_2); -x_33 = lean_st_ref_get(x_3, x_9); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_34, 0); +x_32 = l_Lean_Compiler_LCNF_PP_run___rarg___lambda__1___closed__1; +x_33 = l_Lean_Option_get___at_Lean_Compiler_LCNF_toConfigOptions___spec__1(x_1, x_32); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_21); +lean_ctor_set(x_34, 1, x_22); +lean_ctor_set(x_34, 2, x_1); +lean_ctor_set(x_34, 3, x_23); +lean_ctor_set(x_34, 4, x_33); +lean_ctor_set(x_34, 5, x_24); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_31); +x_35 = lean_st_ref_get(x_3, x_9); +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_36); -x_38 = lean_apply_6(x_4, x_37, x_5, x_3, x_32, x_8, x_35); -return x_38; +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Compiler_LCNF_LCtx_toLocalContext(x_38); +x_40 = lean_apply_6(x_4, x_39, x_5, x_3, x_34, x_8, x_37); +return x_40; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Simp/Main.c b/stage0/stdlib/Lean/Compiler/LCNF/Simp/Main.c index 93e0414d31..b1a8a95710 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Simp/Main.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Simp/Main.c @@ -20037,7 +20037,7 @@ return x_98; lean_object* l_Lean_Compiler_LCNF_Simp_simp(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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -20060,189 +20060,194 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); +lean_dec(x_37); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = l_Lean_Compiler_LCNF_Simp_incVisited___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_ctor_set(x_7, 3, x_39); +x_40 = l_Lean_Compiler_LCNF_Simp_incVisited___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9); switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_ctor_get(x_1, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_1, 1); -lean_inc(x_40); -x_41 = 0; -lean_inc(x_39); -x_42 = l_Lean_Compiler_LCNF_normLetDecl___at_Lean_Compiler_LCNF_Simp_simp___spec__1(x_41, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_38); -x_43 = lean_ctor_get(x_42, 0); +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; uint8_t x_48; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_ctor_get(x_1, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_1, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_1699_(x_39, x_43); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_44); -x_47 = lean_ctor_get(x_46, 0); +x_44 = 0; +lean_inc(x_42); +x_45 = l_Lean_Compiler_LCNF_normLetDecl___at_Lean_Compiler_LCNF_Simp_simp___spec__1(x_44, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_41); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_40, x_39, x_1, x_43, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); -return x_49; +lean_dec(x_45); +x_48 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_1699_(x_42, x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_47); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_52 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_43, x_42, x_1, x_46, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_51); +return x_52; } else { -lean_object* x_50; lean_object* x_51; -x_50 = lean_box(0); -x_51 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_40, x_39, x_1, x_43, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_44); -return x_51; +lean_object* x_53; lean_object* x_54; +x_53 = lean_box(0); +x_54 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_43, x_42, x_1, x_46, x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_47); +return x_54; } } case 1: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_52 = lean_ctor_get(x_37, 1); -lean_inc(x_52); -lean_dec(x_37); -x_53 = lean_ctor_get(x_1, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_1, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 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; uint8_t x_61; +x_55 = lean_ctor_get(x_40, 1); lean_inc(x_55); -x_56 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_52); -x_57 = lean_ctor_get(x_56, 0); +lean_dec(x_40); +x_56 = lean_ctor_get(x_1, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_1, 1); lean_inc(x_57); -x_58 = lean_unbox(x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -lean_inc(x_1); -lean_inc(x_53); -x_60 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed), 14, 4); -lean_closure_set(x_60, 0, x_54); -lean_closure_set(x_60, 1, x_53); -lean_closure_set(x_60, 2, x_1); -lean_closure_set(x_60, 3, x_57); -x_61 = l_Lean_Compiler_LCNF_Code_isFun(x_1); -lean_dec(x_1); +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +x_59 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_55); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_unbox(x_60); if (x_61 == 0) { -lean_object* x_62; lean_object* x_63; -x_62 = lean_box(0); -x_63 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_60, x_53, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); -return x_63; +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +lean_inc(x_1); +lean_inc(x_56); +x_63 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed), 14, 4); +lean_closure_set(x_63, 0, x_57); +lean_closure_set(x_63, 1, x_56); +lean_closure_set(x_63, 2, x_1); +lean_closure_set(x_63, 3, x_60); +x_64 = l_Lean_Compiler_LCNF_Code_isFun(x_1); +lean_dec(x_1); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_63, x_56, x_65, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_62); +return x_66; } else { -lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_64 = lean_ctor_get(x_53, 3); -lean_inc(x_64); -x_65 = lean_ctor_get(x_53, 2); -lean_inc(x_65); -x_66 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_64, x_65); -lean_dec(x_65); -if (x_66 == 0) +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_56, 3); +lean_inc(x_67); +x_68 = lean_ctor_get(x_56, 2); +lean_inc(x_68); +x_69 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_67, x_68); +lean_dec(x_68); +if (x_69 == 0) { -lean_object* x_67; lean_object* x_68; -x_67 = lean_box(0); -x_68 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_60, x_53, x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); -return x_68; +lean_object* x_70; lean_object* x_71; +x_70 = lean_box(0); +x_71 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_63, x_56, x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_62); +return x_71; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; -x_69 = lean_st_ref_get(x_3, x_59); -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_ctor_get(x_70, 0); -lean_inc(x_72); -lean_dec(x_70); -x_73 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_74 = l_Lean_Compiler_LCNF_normFunDeclImp(x_73, x_53, x_72, x_5, x_6, x_7, x_8, x_71); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; +x_72 = lean_st_ref_get(x_3, x_62); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_73, 0); lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); +lean_dec(x_73); +x_76 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_77 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_75, x_5, x_6, x_7, x_8, x_76); +x_77 = l_Lean_Compiler_LCNF_normFunDeclImp(x_76, x_56, x_75, x_5, x_6, x_7, x_8, x_74); 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_78; lean_object* x_79; lean_object* x_80; x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); lean_dec(x_77); -x_80 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_79); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_80 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_78, x_5, x_6, x_7, x_8, x_79); +if (lean_obj_tag(x_80) == 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; x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); lean_dec(x_80); -x_83 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_60, x_78, x_81, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_82); -lean_dec(x_81); -return x_83; +x_83 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_82); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_63, x_81, x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_85); +lean_dec(x_84); +return x_86; } else { -uint8_t x_84; -lean_dec(x_60); +uint8_t x_87; +lean_dec(x_63); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20250,101 +20255,101 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_84 = !lean_is_exclusive(x_77); -if (x_84 == 0) +x_87 = !lean_is_exclusive(x_80); +if (x_87 == 0) +{ +return x_80; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_80, 0); +x_89 = lean_ctor_get(x_80, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_80); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_63); +lean_dec(x_7); +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_91 = !lean_is_exclusive(x_77); +if (x_91 == 0) { return x_77; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_77, 0); -x_86 = lean_ctor_get(x_77, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_77); -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 -{ -uint8_t x_88; -lean_dec(x_60); -lean_dec(x_7); -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_88 = !lean_is_exclusive(x_74); -if (x_88 == 0) -{ -return x_74; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_74, 0); -x_90 = lean_ctor_get(x_74, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_74); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; -x_92 = lean_ctor_get(x_56, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_77, 0); +x_93 = lean_ctor_get(x_77, 1); +lean_inc(x_93); lean_inc(x_92); -lean_dec(x_56); -x_93 = lean_st_ref_get(x_3, x_92); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); +lean_dec(x_77); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; +x_95 = lean_ctor_get(x_59, 1); lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_ctor_get(x_94, 0); -lean_inc(x_96); -lean_dec(x_94); -x_97 = 0; +lean_dec(x_59); +x_96 = lean_st_ref_get(x_3, x_95); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +lean_dec(x_97); +x_100 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_53); -x_98 = l_Lean_Compiler_LCNF_normFunDeclImp(x_97, x_53, x_96, x_5, x_6, x_7, x_8, x_95); -if (lean_obj_tag(x_98) == 0) +lean_inc(x_56); +x_101 = l_Lean_Compiler_LCNF_normFunDeclImp(x_100, x_56, x_99, x_5, x_6, x_7, x_8, x_98); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_box(0); -x_102 = lean_unbox(x_57); -lean_dec(x_57); -x_103 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_54, x_53, x_1, x_102, x_99, x_101, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); -return x_103; +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t 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_104 = lean_box(0); +x_105 = lean_unbox(x_60); +lean_dec(x_60); +x_106 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_57, x_56, x_1, x_105, x_102, x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_103); +return x_106; } else { -uint8_t x_104; +uint8_t x_107; +lean_dec(x_60); lean_dec(x_57); -lean_dec(x_54); -lean_dec(x_53); +lean_dec(x_56); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20353,134 +20358,134 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_104 = !lean_is_exclusive(x_98); -if (x_104 == 0) +x_107 = !lean_is_exclusive(x_101); +if (x_107 == 0) { -return x_98; +return x_101; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_98, 0); -x_106 = lean_ctor_get(x_98, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_98); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_101, 0); +x_109 = lean_ctor_get(x_101, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_101); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } } case 2: { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_108 = lean_ctor_get(x_37, 1); -lean_inc(x_108); -lean_dec(x_37); -x_109 = lean_ctor_get(x_1, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_1, 1); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 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; uint8_t x_117; +x_111 = lean_ctor_get(x_40, 1); lean_inc(x_111); -x_112 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_111, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_108); -x_113 = lean_ctor_get(x_112, 0); +lean_dec(x_40); +x_112 = lean_ctor_get(x_1, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_1, 1); lean_inc(x_113); -x_114 = lean_unbox(x_113); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_115 = lean_ctor_get(x_112, 1); -lean_inc(x_115); -lean_dec(x_112); -lean_inc(x_1); -lean_inc(x_109); -x_116 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__7___boxed), 14, 4); -lean_closure_set(x_116, 0, x_110); -lean_closure_set(x_116, 1, x_109); -lean_closure_set(x_116, 2, x_1); -lean_closure_set(x_116, 3, x_113); -x_117 = l_Lean_Compiler_LCNF_Code_isFun(x_1); -lean_dec(x_1); +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +x_115 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_114, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_111); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_unbox(x_116); if (x_117 == 0) { -lean_object* x_118; lean_object* x_119; -x_118 = lean_box(0); -x_119 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_116, x_109, x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_115); -return x_119; +lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +lean_dec(x_115); +lean_inc(x_1); +lean_inc(x_112); +x_119 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__7___boxed), 14, 4); +lean_closure_set(x_119, 0, x_113); +lean_closure_set(x_119, 1, x_112); +lean_closure_set(x_119, 2, x_1); +lean_closure_set(x_119, 3, x_116); +x_120 = l_Lean_Compiler_LCNF_Code_isFun(x_1); +lean_dec(x_1); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_box(0); +x_122 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_119, x_112, x_121, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_118); +return x_122; } else { -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_109, 3); -lean_inc(x_120); -x_121 = lean_ctor_get(x_109, 2); -lean_inc(x_121); -x_122 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_120, x_121); -lean_dec(x_121); -if (x_122 == 0) +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_112, 3); +lean_inc(x_123); +x_124 = lean_ctor_get(x_112, 2); +lean_inc(x_124); +x_125 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_123, x_124); +lean_dec(x_124); +if (x_125 == 0) { -lean_object* x_123; lean_object* x_124; -x_123 = lean_box(0); -x_124 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_116, x_109, x_123, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_115); -return x_124; +lean_object* x_126; lean_object* x_127; +x_126 = lean_box(0); +x_127 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_119, x_112, x_126, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_118); +return x_127; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; -x_125 = lean_st_ref_get(x_3, x_115); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_ctor_get(x_126, 0); -lean_inc(x_128); -lean_dec(x_126); -x_129 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_130 = l_Lean_Compiler_LCNF_normFunDeclImp(x_129, x_109, x_128, x_5, x_6, x_7, x_8, x_127); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_130, 0); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; +x_128 = lean_st_ref_get(x_3, x_118); +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 = lean_ctor_get(x_129, 0); lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); +lean_dec(x_129); +x_132 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_133 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_131, x_5, x_6, x_7, x_8, x_132); +x_133 = l_Lean_Compiler_LCNF_normFunDeclImp(x_132, x_112, x_131, x_5, x_6, x_7, x_8, x_130); if (lean_obj_tag(x_133) == 0) { -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_134; lean_object* x_135; lean_object* x_136; x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); lean_dec(x_133); -x_136 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_135); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_136 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_134, x_5, x_6, x_7, x_8, x_135); +if (lean_obj_tag(x_136) == 0) +{ +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_136, 0); lean_inc(x_137); x_138 = lean_ctor_get(x_136, 1); lean_inc(x_138); lean_dec(x_136); -x_139 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_116, x_134, x_137, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_138); -lean_dec(x_137); -return x_139; +x_139 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_138); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_119, x_137, x_140, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_141); +lean_dec(x_140); +return x_142; } else { -uint8_t x_140; -lean_dec(x_116); +uint8_t x_143; +lean_dec(x_119); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20488,101 +20493,101 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_140 = !lean_is_exclusive(x_133); -if (x_140 == 0) +x_143 = !lean_is_exclusive(x_136); +if (x_143 == 0) +{ +return x_136; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_136, 0); +x_145 = lean_ctor_get(x_136, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_136); +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; +} +} +} +else +{ +uint8_t x_147; +lean_dec(x_119); +lean_dec(x_7); +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_147 = !lean_is_exclusive(x_133); +if (x_147 == 0) { return x_133; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_133, 0); -x_142 = lean_ctor_get(x_133, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_133); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; -} -} -} -else -{ -uint8_t x_144; -lean_dec(x_116); -lean_dec(x_7); -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_144 = !lean_is_exclusive(x_130); -if (x_144 == 0) -{ -return x_130; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_130, 0); -x_146 = lean_ctor_get(x_130, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_130); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -} -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; -x_148 = lean_ctor_get(x_112, 1); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_133, 0); +x_149 = lean_ctor_get(x_133, 1); +lean_inc(x_149); lean_inc(x_148); -lean_dec(x_112); -x_149 = lean_st_ref_get(x_3, x_148); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); +lean_dec(x_133); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +} +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; +x_151 = lean_ctor_get(x_115, 1); lean_inc(x_151); -lean_dec(x_149); -x_152 = lean_ctor_get(x_150, 0); -lean_inc(x_152); -lean_dec(x_150); -x_153 = 0; +lean_dec(x_115); +x_152 = lean_st_ref_get(x_3, x_151); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = lean_ctor_get(x_153, 0); +lean_inc(x_155); +lean_dec(x_153); +x_156 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_109); -x_154 = l_Lean_Compiler_LCNF_normFunDeclImp(x_153, x_109, x_152, x_5, x_6, x_7, x_8, x_151); -if (lean_obj_tag(x_154) == 0) +lean_inc(x_112); +x_157 = l_Lean_Compiler_LCNF_normFunDeclImp(x_156, x_112, x_155, x_5, x_6, x_7, x_8, x_154); +if (lean_obj_tag(x_157) == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -lean_dec(x_154); -x_157 = lean_box(0); -x_158 = lean_unbox(x_113); -lean_dec(x_113); -x_159 = l_Lean_Compiler_LCNF_Simp_simp___lambda__7(x_110, x_109, x_1, x_158, x_155, x_157, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_156); -return x_159; +lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = lean_box(0); +x_161 = lean_unbox(x_116); +lean_dec(x_116); +x_162 = l_Lean_Compiler_LCNF_Simp_simp___lambda__7(x_113, x_112, x_1, x_161, x_158, x_160, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_159); +return x_162; } else { -uint8_t x_160; +uint8_t x_163; +lean_dec(x_116); lean_dec(x_113); -lean_dec(x_110); -lean_dec(x_109); +lean_dec(x_112); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20591,68 +20596,68 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_160 = !lean_is_exclusive(x_154); -if (x_160 == 0) +x_163 = !lean_is_exclusive(x_157); +if (x_163 == 0) { -return x_154; +return x_157; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_154, 0); -x_162 = lean_ctor_get(x_154, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_154); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_157, 0); +x_165 = lean_ctor_get(x_157, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_157); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; } } } } case 3: { -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; uint8_t x_171; lean_object* x_172; -x_164 = lean_ctor_get(x_37, 1); -lean_inc(x_164); -lean_dec(x_37); -x_165 = lean_ctor_get(x_1, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_1, 1); -lean_inc(x_166); -x_167 = lean_st_ref_get(x_3, x_164); -x_168 = lean_ctor_get(x_167, 0); +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; uint8_t x_174; lean_object* x_175; +x_167 = lean_ctor_get(x_40, 1); +lean_inc(x_167); +lean_dec(x_40); +x_168 = lean_ctor_get(x_1, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); +x_169 = lean_ctor_get(x_1, 1); lean_inc(x_169); -lean_dec(x_167); -x_170 = lean_ctor_get(x_168, 0); -lean_inc(x_170); -lean_dec(x_168); -x_171 = 0; -lean_inc(x_165); -x_172 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_170, x_165, x_171); -if (lean_obj_tag(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; lean_object* x_197; -x_173 = lean_ctor_get(x_172, 0); +x_170 = lean_st_ref_get(x_3, x_167); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_ctor_get(x_171, 0); lean_inc(x_173); -lean_dec(x_172); -lean_inc(x_166); -x_174 = l_Lean_Compiler_LCNF_normArgs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_171, x_166, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_169); -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); +lean_dec(x_171); +x_174 = 0; +lean_inc(x_168); +x_175 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_173, x_168, x_174); +if (lean_obj_tag(x_175) == 0) +{ +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_200; +x_176 = lean_ctor_get(x_175, 0); 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; +lean_dec(x_175); +lean_inc(x_169); +x_177 = l_Lean_Compiler_LCNF_normArgs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_174, x_169, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_172); +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_180 = x_177; } else { - lean_dec_ref(x_174); - x_177 = lean_box(0); + lean_dec_ref(x_177); + x_180 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); @@ -20661,31 +20666,31 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_175); -lean_inc(x_173); -x_197 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(x_173, x_175, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_176); -if (lean_obj_tag(x_197) == 0) +lean_inc(x_178); +lean_inc(x_176); +x_200 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(x_176, x_178, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_179); +if (lean_obj_tag(x_200) == 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; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -x_199 = lean_ctor_get(x_197, 1); -lean_inc(x_199); -lean_dec(x_197); -lean_inc(x_173); -x_200 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_173, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_199); -x_201 = lean_ctor_get(x_200, 1); +lean_object* x_201; +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_object* x_205; lean_object* x_206; uint8_t x_207; +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); lean_dec(x_200); -x_202 = lean_array_get_size(x_175); -x_203 = lean_unsigned_to_nat(0u); -x_204 = lean_nat_dec_lt(x_203, x_202); -if (x_204 == 0) +lean_inc(x_176); +x_203 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_176, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_202); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +lean_dec(x_203); +x_205 = lean_array_get_size(x_178); +x_206 = lean_unsigned_to_nat(0u); +x_207 = lean_nat_dec_lt(x_206, x_205); +if (x_207 == 0) { -lean_dec(x_202); +lean_dec(x_205); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20693,16 +20698,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_178 = x_201; -goto block_196; +x_181 = x_204; +goto block_199; } else { -uint8_t x_205; -x_205 = lean_nat_dec_le(x_202, x_202); -if (x_205 == 0) +uint8_t x_208; +x_208 = lean_nat_dec_le(x_205, x_205); +if (x_208 == 0) { -lean_dec(x_202); +lean_dec(x_205); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20710,17 +20715,17 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_178 = x_201; -goto block_196; +x_181 = x_204; +goto block_199; } else { -size_t x_206; size_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_206 = 0; -x_207 = lean_usize_of_nat(x_202); -lean_dec(x_202); -x_208 = lean_box(0); -x_209 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedLetValue___spec__1(x_175, x_206, x_207, x_208, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_201); +size_t x_209; size_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_209 = 0; +x_210 = lean_usize_of_nat(x_205); +lean_dec(x_205); +x_211 = lean_box(0); +x_212 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedLetValue___spec__1(x_178, x_209, x_210, x_211, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_204); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -20728,42 +20733,42 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_210 = lean_ctor_get(x_209, 1); -lean_inc(x_210); -lean_dec(x_209); -x_178 = x_210; -goto block_196; +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +lean_dec(x_212); +x_181 = x_213; +goto block_199; } } } else { -lean_object* x_211; lean_object* x_212; -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_173); -lean_dec(x_166); -lean_dec(x_165); +lean_object* x_214; lean_object* x_215; +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_176); +lean_dec(x_169); +lean_dec(x_168); lean_dec(x_1); -x_211 = lean_ctor_get(x_197, 1); -lean_inc(x_211); -lean_dec(x_197); -x_212 = lean_ctor_get(x_198, 0); -lean_inc(x_212); -lean_dec(x_198); -x_1 = x_212; -x_9 = x_211; +x_214 = lean_ctor_get(x_200, 1); +lean_inc(x_214); +lean_dec(x_200); +x_215 = lean_ctor_get(x_201, 0); +lean_inc(x_215); +lean_dec(x_201); +x_1 = x_215; +x_9 = x_214; goto _start; } } else { -uint8_t x_214; -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_173); -lean_dec(x_166); -lean_dec(x_165); +uint8_t x_217; +lean_dec(x_180); +lean_dec(x_178); +lean_dec(x_176); +lean_dec(x_169); +lean_dec(x_168); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -20772,233 +20777,158 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_214 = !lean_is_exclusive(x_197); -if (x_214 == 0) +x_217 = !lean_is_exclusive(x_200); +if (x_217 == 0) { -return x_197; +return x_200; } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_197, 0); -x_216 = lean_ctor_get(x_197, 1); -lean_inc(x_216); -lean_inc(x_215); -lean_dec(x_197); -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; +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_200, 0); +x_219 = lean_ctor_get(x_200, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_200); +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; } } -block_196: +block_199: { -uint8_t x_179; -x_179 = lean_name_eq(x_165, x_173); -lean_dec(x_165); -if (x_179 == 0) +uint8_t x_182; +x_182 = lean_name_eq(x_168, x_176); +lean_dec(x_168); +if (x_182 == 0) { -uint8_t x_180; -lean_dec(x_166); -x_180 = !lean_is_exclusive(x_1); -if (x_180 == 0) +uint8_t x_183; +lean_dec(x_169); +x_183 = !lean_is_exclusive(x_1); +if (x_183 == 0) { -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_1, 1); -lean_dec(x_181); -x_182 = lean_ctor_get(x_1, 0); -lean_dec(x_182); -lean_ctor_set(x_1, 1, x_175); -lean_ctor_set(x_1, 0, x_173); -if (lean_is_scalar(x_177)) { - x_183 = lean_alloc_ctor(0, 2, 0); +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_1, 1); +lean_dec(x_184); +x_185 = lean_ctor_get(x_1, 0); +lean_dec(x_185); +lean_ctor_set(x_1, 1, x_178); +lean_ctor_set(x_1, 0, x_176); +if (lean_is_scalar(x_180)) { + x_186 = lean_alloc_ctor(0, 2, 0); } else { - x_183 = x_177; + x_186 = x_180; } -lean_ctor_set(x_183, 0, x_1); -lean_ctor_set(x_183, 1, x_178); -return x_183; +lean_ctor_set(x_186, 0, x_1); +lean_ctor_set(x_186, 1, x_181); +return x_186; } else { -lean_object* x_184; lean_object* x_185; +lean_object* x_187; lean_object* x_188; lean_dec(x_1); -x_184 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_184, 0, x_173); -lean_ctor_set(x_184, 1, x_175); -if (lean_is_scalar(x_177)) { - x_185 = lean_alloc_ctor(0, 2, 0); +x_187 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_187, 0, x_176); +lean_ctor_set(x_187, 1, x_178); +if (lean_is_scalar(x_180)) { + x_188 = lean_alloc_ctor(0, 2, 0); } else { - x_185 = x_177; + x_188 = x_180; } -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_178); -return x_185; +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_181); +return x_188; } } else { -size_t x_186; size_t x_187; uint8_t x_188; -x_186 = lean_ptr_addr(x_166); -lean_dec(x_166); -x_187 = lean_ptr_addr(x_175); -x_188 = lean_usize_dec_eq(x_186, x_187); -if (x_188 == 0) +size_t x_189; size_t x_190; uint8_t x_191; +x_189 = lean_ptr_addr(x_169); +lean_dec(x_169); +x_190 = lean_ptr_addr(x_178); +x_191 = lean_usize_dec_eq(x_189, x_190); +if (x_191 == 0) { -uint8_t x_189; -x_189 = !lean_is_exclusive(x_1); -if (x_189 == 0) +uint8_t x_192; +x_192 = !lean_is_exclusive(x_1); +if (x_192 == 0) { -lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_190 = lean_ctor_get(x_1, 1); -lean_dec(x_190); -x_191 = lean_ctor_get(x_1, 0); -lean_dec(x_191); -lean_ctor_set(x_1, 1, x_175); -lean_ctor_set(x_1, 0, x_173); -if (lean_is_scalar(x_177)) { - x_192 = lean_alloc_ctor(0, 2, 0); -} else { - x_192 = x_177; -} -lean_ctor_set(x_192, 0, x_1); -lean_ctor_set(x_192, 1, x_178); -return x_192; -} -else -{ -lean_object* x_193; lean_object* x_194; -lean_dec(x_1); -x_193 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_193, 0, x_173); -lean_ctor_set(x_193, 1, x_175); -if (lean_is_scalar(x_177)) { - x_194 = lean_alloc_ctor(0, 2, 0); -} else { - x_194 = x_177; -} -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_178); -return x_194; -} -} -else -{ -lean_object* x_195; -lean_dec(x_175); -lean_dec(x_173); -if (lean_is_scalar(x_177)) { +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_1, 1); +lean_dec(x_193); +x_194 = lean_ctor_get(x_1, 0); +lean_dec(x_194); +lean_ctor_set(x_1, 1, x_178); +lean_ctor_set(x_1, 0, x_176); +if (lean_is_scalar(x_180)) { x_195 = lean_alloc_ctor(0, 2, 0); } else { - x_195 = x_177; + x_195 = x_180; } lean_ctor_set(x_195, 0, x_1); -lean_ctor_set(x_195, 1, x_178); +lean_ctor_set(x_195, 1, x_181); return x_195; } +else +{ +lean_object* x_196; lean_object* x_197; +lean_dec(x_1); +x_196 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_196, 0, x_176); +lean_ctor_set(x_196, 1, x_178); +if (lean_is_scalar(x_180)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_180; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_181); +return x_197; +} +} +else +{ +lean_object* x_198; +lean_dec(x_178); +lean_dec(x_176); +if (lean_is_scalar(x_180)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_180; +} +lean_ctor_set(x_198, 0, x_1); +lean_ctor_set(x_198, 1, x_181); +return x_198; +} } } } else { -lean_object* x_218; -lean_dec(x_166); -lean_dec(x_165); +lean_object* x_221; +lean_dec(x_169); +lean_dec(x_168); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_218 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_169); +x_221 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_172); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_218; +return x_221; } } case 4: { -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_37, 1); -lean_inc(x_219); -lean_dec(x_37); -x_220 = lean_ctor_get(x_1, 0); -lean_inc(x_220); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_220); -x_221 = l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_219); -if (lean_obj_tag(x_221) == 0) -{ -lean_object* x_222; -x_222 = lean_ctor_get(x_221, 0); +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_40, 1); lean_inc(x_222); -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; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; -x_223 = lean_ctor_get(x_221, 1); +lean_dec(x_40); +x_223 = lean_ctor_get(x_1, 0); lean_inc(x_223); -lean_dec(x_221); -x_224 = lean_ctor_get(x_220, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_220, 1); -lean_inc(x_225); -x_226 = lean_ctor_get(x_220, 2); -lean_inc(x_226); -x_227 = lean_ctor_get(x_220, 3); -lean_inc(x_227); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - lean_ctor_release(x_220, 2); - lean_ctor_release(x_220, 3); - x_228 = x_220; -} else { - lean_dec_ref(x_220); - x_228 = lean_box(0); -} -x_229 = lean_st_ref_get(x_3, x_223); -x_230 = lean_ctor_get(x_229, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_229, 1); -lean_inc(x_231); -lean_dec(x_229); -x_232 = lean_ctor_get(x_230, 0); -lean_inc(x_232); -lean_dec(x_230); -x_233 = 0; -lean_inc(x_226); -x_234 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_232, x_226, x_233); -if (lean_obj_tag(x_234) == 0) -{ -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; -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -lean_dec(x_234); -x_236 = lean_st_ref_get(x_3, x_231); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -x_239 = lean_ctor_get(x_237, 0); -lean_inc(x_239); -lean_dec(x_237); -lean_inc(x_225); -x_240 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_239, x_233, x_225); -lean_inc(x_235); -x_241 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_235, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_238); -x_242 = lean_ctor_get(x_241, 1); -lean_inc(x_242); -lean_dec(x_241); -lean_inc(x_235); -x_243 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__8), 10, 1); -lean_closure_set(x_243, 0, x_235); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -21006,555 +20936,630 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); +lean_inc(x_223); +x_224 = l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(x_223, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_222); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +if (lean_obj_tag(x_225) == 0) +{ +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; uint8_t x_236; lean_object* x_237; +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +x_227 = lean_ctor_get(x_223, 0); lean_inc(x_227); -x_244 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__4(x_227, x_243, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_242); -if (lean_obj_tag(x_244) == 0) +x_228 = lean_ctor_get(x_223, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_223, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_223, 3); +lean_inc(x_230); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + lean_ctor_release(x_223, 2); + lean_ctor_release(x_223, 3); + x_231 = x_223; +} else { + lean_dec_ref(x_223); + x_231 = lean_box(0); +} +x_232 = lean_st_ref_get(x_3, x_226); +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = lean_ctor_get(x_233, 0); +lean_inc(x_235); +lean_dec(x_233); +x_236 = 0; +lean_inc(x_229); +x_237 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_235, x_229, x_236); +if (lean_obj_tag(x_237) == 0) { -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_245 = lean_ctor_get(x_244, 0); +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_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_st_ref_get(x_3, x_234); +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_ctor_get(x_240, 0); +lean_inc(x_242); +lean_dec(x_240); +lean_inc(x_228); +x_243 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_242, x_236, x_228); +lean_inc(x_238); +x_244 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_238, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_241); +x_245 = lean_ctor_get(x_244, 1); lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_247 = x_244; -} else { - lean_dec_ref(x_244); - x_247 = lean_box(0); -} -x_248 = l_Lean_Compiler_LCNF_Simp_addDefaultAlt(x_245, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_246); -if (lean_obj_tag(x_248) == 0) +lean_dec(x_244); +lean_inc(x_238); +x_246 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__8), 10, 1); +lean_closure_set(x_246, 0, x_238); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_230); +x_247 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__4(x_230, x_246, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_245); +if (lean_obj_tag(x_247) == 0) { -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_283; lean_object* x_284; uint8_t x_295; -x_249 = lean_ctor_get(x_248, 0); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_250 = x_247; } else { - lean_dec_ref(x_248); - x_251 = lean_box(0); + lean_dec_ref(x_247); + x_250 = lean_box(0); } -x_283 = lean_array_get_size(x_249); -x_295 = lean_nat_dec_eq(x_283, x_35); -if (x_295 == 0) +x_251 = l_Lean_Compiler_LCNF_Simp_addDefaultAlt(x_248, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_249); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_296; -lean_dec(x_283); -lean_dec(x_247); -x_296 = lean_box(0); -x_252 = x_296; -goto block_282; +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_286; lean_object* x_287; uint8_t x_298; +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_251, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_254 = x_251; +} else { + lean_dec_ref(x_251); + x_254 = lean_box(0); } -else -{ -lean_object* x_297; uint8_t x_298; -x_297 = lean_unsigned_to_nat(0u); -x_298 = lean_nat_dec_lt(x_297, x_283); +x_286 = lean_array_get_size(x_252); +x_298 = lean_nat_dec_eq(x_286, x_38); if (x_298 == 0) { -lean_object* x_299; lean_object* x_300; -x_299 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; -x_300 = l___private_Init_GetElem_0__outOfBounds___rarg(x_299); -if (lean_obj_tag(x_300) == 0) -{ -lean_object* x_301; -lean_dec(x_300); -lean_dec(x_283); -lean_dec(x_247); -x_301 = lean_box(0); -x_252 = x_301; -goto block_282; +lean_object* x_299; +lean_dec(x_286); +lean_dec(x_250); +x_299 = lean_box(0); +x_255 = x_299; +goto block_285; } else { -lean_object* x_302; -lean_dec(x_300); -lean_dec(x_251); -lean_dec(x_240); -lean_dec(x_235); -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_226); -lean_dec(x_225); -lean_dec(x_224); -lean_dec(x_1); -x_302 = lean_box(0); -x_284 = x_302; -goto block_294; -} -} -else +lean_object* x_300; uint8_t x_301; +x_300 = lean_unsigned_to_nat(0u); +x_301 = lean_nat_dec_lt(x_300, x_286); +if (x_301 == 0) { -lean_object* x_303; -x_303 = lean_array_fget(x_249, x_297); +lean_object* x_302; lean_object* x_303; +x_302 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; +x_303 = l___private_Init_GetElem_0__outOfBounds___rarg(x_302); if (lean_obj_tag(x_303) == 0) { lean_object* x_304; lean_dec(x_303); -lean_dec(x_283); -lean_dec(x_247); +lean_dec(x_286); +lean_dec(x_250); x_304 = lean_box(0); -x_252 = x_304; -goto block_282; +x_255 = x_304; +goto block_285; } else { lean_object* x_305; lean_dec(x_303); -lean_dec(x_251); -lean_dec(x_240); -lean_dec(x_235); +lean_dec(x_254); +lean_dec(x_243); +lean_dec(x_238); +lean_dec(x_231); +lean_dec(x_230); +lean_dec(x_229); lean_dec(x_228); lean_dec(x_227); -lean_dec(x_226); -lean_dec(x_225); -lean_dec(x_224); lean_dec(x_1); x_305 = lean_box(0); -x_284 = x_305; -goto block_294; +x_287 = x_305; +goto block_297; } } -} -block_282: -{ -size_t x_253; size_t x_254; uint8_t x_255; -lean_dec(x_252); -x_253 = lean_ptr_addr(x_227); -lean_dec(x_227); -x_254 = lean_ptr_addr(x_249); -x_255 = lean_usize_dec_eq(x_253, x_254); -if (x_255 == 0) -{ -uint8_t x_256; -lean_dec(x_226); -lean_dec(x_225); -x_256 = !lean_is_exclusive(x_1); -if (x_256 == 0) -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_257 = lean_ctor_get(x_1, 0); -lean_dec(x_257); -if (lean_is_scalar(x_228)) { - x_258 = lean_alloc_ctor(0, 4, 0); -} else { - x_258 = x_228; -} -lean_ctor_set(x_258, 0, x_224); -lean_ctor_set(x_258, 1, x_240); -lean_ctor_set(x_258, 2, x_235); -lean_ctor_set(x_258, 3, x_249); -lean_ctor_set(x_1, 0, x_258); -if (lean_is_scalar(x_251)) { - x_259 = lean_alloc_ctor(0, 2, 0); -} else { - x_259 = x_251; -} -lean_ctor_set(x_259, 0, x_1); -lean_ctor_set(x_259, 1, x_250); -return x_259; -} else { +lean_object* x_306; +x_306 = lean_array_fget(x_252, x_300); +if (lean_obj_tag(x_306) == 0) +{ +lean_object* x_307; +lean_dec(x_306); +lean_dec(x_286); +lean_dec(x_250); +x_307 = lean_box(0); +x_255 = x_307; +goto block_285; +} +else +{ +lean_object* x_308; +lean_dec(x_306); +lean_dec(x_254); +lean_dec(x_243); +lean_dec(x_238); +lean_dec(x_231); +lean_dec(x_230); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_227); +lean_dec(x_1); +x_308 = lean_box(0); +x_287 = x_308; +goto block_297; +} +} +} +block_285: +{ +size_t x_256; size_t x_257; uint8_t x_258; +lean_dec(x_255); +x_256 = lean_ptr_addr(x_230); +lean_dec(x_230); +x_257 = lean_ptr_addr(x_252); +x_258 = lean_usize_dec_eq(x_256, x_257); +if (x_258 == 0) +{ +uint8_t x_259; +lean_dec(x_229); +lean_dec(x_228); +x_259 = !lean_is_exclusive(x_1); +if (x_259 == 0) +{ lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_1); -if (lean_is_scalar(x_228)) { - x_260 = lean_alloc_ctor(0, 4, 0); +x_260 = lean_ctor_get(x_1, 0); +lean_dec(x_260); +if (lean_is_scalar(x_231)) { + x_261 = lean_alloc_ctor(0, 4, 0); } else { - x_260 = x_228; + x_261 = x_231; } -lean_ctor_set(x_260, 0, x_224); -lean_ctor_set(x_260, 1, x_240); -lean_ctor_set(x_260, 2, x_235); -lean_ctor_set(x_260, 3, x_249); -x_261 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_261, 0, x_260); -if (lean_is_scalar(x_251)) { +lean_ctor_set(x_261, 0, x_227); +lean_ctor_set(x_261, 1, x_243); +lean_ctor_set(x_261, 2, x_238); +lean_ctor_set(x_261, 3, x_252); +lean_ctor_set(x_1, 0, x_261); +if (lean_is_scalar(x_254)) { x_262 = lean_alloc_ctor(0, 2, 0); } else { - x_262 = x_251; + x_262 = x_254; } -lean_ctor_set(x_262, 0, x_261); -lean_ctor_set(x_262, 1, x_250); +lean_ctor_set(x_262, 0, x_1); +lean_ctor_set(x_262, 1, x_253); return x_262; } +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_1); +if (lean_is_scalar(x_231)) { + x_263 = lean_alloc_ctor(0, 4, 0); +} else { + x_263 = x_231; +} +lean_ctor_set(x_263, 0, x_227); +lean_ctor_set(x_263, 1, x_243); +lean_ctor_set(x_263, 2, x_238); +lean_ctor_set(x_263, 3, x_252); +x_264 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_264, 0, x_263); +if (lean_is_scalar(x_254)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_254; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_253); +return x_265; +} } else { -size_t x_263; size_t x_264; uint8_t x_265; -x_263 = lean_ptr_addr(x_225); -lean_dec(x_225); -x_264 = lean_ptr_addr(x_240); -x_265 = lean_usize_dec_eq(x_263, x_264); -if (x_265 == 0) +size_t x_266; size_t x_267; uint8_t x_268; +x_266 = lean_ptr_addr(x_228); +lean_dec(x_228); +x_267 = lean_ptr_addr(x_243); +x_268 = lean_usize_dec_eq(x_266, x_267); +if (x_268 == 0) { -uint8_t x_266; -lean_dec(x_226); -x_266 = !lean_is_exclusive(x_1); -if (x_266 == 0) -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_1, 0); -lean_dec(x_267); -if (lean_is_scalar(x_228)) { - x_268 = lean_alloc_ctor(0, 4, 0); -} else { - x_268 = x_228; -} -lean_ctor_set(x_268, 0, x_224); -lean_ctor_set(x_268, 1, x_240); -lean_ctor_set(x_268, 2, x_235); -lean_ctor_set(x_268, 3, x_249); -lean_ctor_set(x_1, 0, x_268); -if (lean_is_scalar(x_251)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_251; -} -lean_ctor_set(x_269, 0, x_1); -lean_ctor_set(x_269, 1, x_250); -return x_269; -} -else +uint8_t x_269; +lean_dec(x_229); +x_269 = !lean_is_exclusive(x_1); +if (x_269 == 0) { lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec(x_1); -if (lean_is_scalar(x_228)) { - x_270 = lean_alloc_ctor(0, 4, 0); +x_270 = lean_ctor_get(x_1, 0); +lean_dec(x_270); +if (lean_is_scalar(x_231)) { + x_271 = lean_alloc_ctor(0, 4, 0); } else { - x_270 = x_228; + x_271 = x_231; } -lean_ctor_set(x_270, 0, x_224); -lean_ctor_set(x_270, 1, x_240); -lean_ctor_set(x_270, 2, x_235); -lean_ctor_set(x_270, 3, x_249); -x_271 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_271, 0, x_270); -if (lean_is_scalar(x_251)) { +lean_ctor_set(x_271, 0, x_227); +lean_ctor_set(x_271, 1, x_243); +lean_ctor_set(x_271, 2, x_238); +lean_ctor_set(x_271, 3, x_252); +lean_ctor_set(x_1, 0, x_271); +if (lean_is_scalar(x_254)) { x_272 = lean_alloc_ctor(0, 2, 0); } else { - x_272 = x_251; + x_272 = x_254; } -lean_ctor_set(x_272, 0, x_271); -lean_ctor_set(x_272, 1, x_250); +lean_ctor_set(x_272, 0, x_1); +lean_ctor_set(x_272, 1, x_253); return x_272; } +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +lean_dec(x_1); +if (lean_is_scalar(x_231)) { + x_273 = lean_alloc_ctor(0, 4, 0); +} else { + x_273 = x_231; +} +lean_ctor_set(x_273, 0, x_227); +lean_ctor_set(x_273, 1, x_243); +lean_ctor_set(x_273, 2, x_238); +lean_ctor_set(x_273, 3, x_252); +x_274 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_274, 0, x_273); +if (lean_is_scalar(x_254)) { + x_275 = lean_alloc_ctor(0, 2, 0); +} else { + x_275 = x_254; +} +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_253); +return x_275; +} } else { -uint8_t x_273; -x_273 = lean_name_eq(x_226, x_235); -lean_dec(x_226); -if (x_273 == 0) +uint8_t x_276; +x_276 = lean_name_eq(x_229, x_238); +lean_dec(x_229); +if (x_276 == 0) { -uint8_t x_274; -x_274 = !lean_is_exclusive(x_1); -if (x_274 == 0) -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = lean_ctor_get(x_1, 0); -lean_dec(x_275); -if (lean_is_scalar(x_228)) { - x_276 = lean_alloc_ctor(0, 4, 0); -} else { - x_276 = x_228; -} -lean_ctor_set(x_276, 0, x_224); -lean_ctor_set(x_276, 1, x_240); -lean_ctor_set(x_276, 2, x_235); -lean_ctor_set(x_276, 3, x_249); -lean_ctor_set(x_1, 0, x_276); -if (lean_is_scalar(x_251)) { - x_277 = lean_alloc_ctor(0, 2, 0); -} else { - x_277 = x_251; -} -lean_ctor_set(x_277, 0, x_1); -lean_ctor_set(x_277, 1, x_250); -return x_277; -} -else +uint8_t x_277; +x_277 = !lean_is_exclusive(x_1); +if (x_277 == 0) { lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_dec(x_1); -if (lean_is_scalar(x_228)) { - x_278 = lean_alloc_ctor(0, 4, 0); +x_278 = lean_ctor_get(x_1, 0); +lean_dec(x_278); +if (lean_is_scalar(x_231)) { + x_279 = lean_alloc_ctor(0, 4, 0); } else { - x_278 = x_228; + x_279 = x_231; } -lean_ctor_set(x_278, 0, x_224); -lean_ctor_set(x_278, 1, x_240); -lean_ctor_set(x_278, 2, x_235); -lean_ctor_set(x_278, 3, x_249); -x_279 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_279, 0, x_278); -if (lean_is_scalar(x_251)) { +lean_ctor_set(x_279, 0, x_227); +lean_ctor_set(x_279, 1, x_243); +lean_ctor_set(x_279, 2, x_238); +lean_ctor_set(x_279, 3, x_252); +lean_ctor_set(x_1, 0, x_279); +if (lean_is_scalar(x_254)) { x_280 = lean_alloc_ctor(0, 2, 0); } else { - x_280 = x_251; + x_280 = x_254; } -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_250); +lean_ctor_set(x_280, 0, x_1); +lean_ctor_set(x_280, 1, x_253); return x_280; } +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_dec(x_1); +if (lean_is_scalar(x_231)) { + x_281 = lean_alloc_ctor(0, 4, 0); +} else { + x_281 = x_231; +} +lean_ctor_set(x_281, 0, x_227); +lean_ctor_set(x_281, 1, x_243); +lean_ctor_set(x_281, 2, x_238); +lean_ctor_set(x_281, 3, x_252); +x_282 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_282, 0, x_281); +if (lean_is_scalar(x_254)) { + x_283 = lean_alloc_ctor(0, 2, 0); +} else { + x_283 = x_254; +} +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_253); +return x_283; +} } else { -lean_object* x_281; -lean_dec(x_249); -lean_dec(x_240); -lean_dec(x_235); -lean_dec(x_228); -lean_dec(x_224); -if (lean_is_scalar(x_251)) { - x_281 = lean_alloc_ctor(0, 2, 0); +lean_object* x_284; +lean_dec(x_252); +lean_dec(x_243); +lean_dec(x_238); +lean_dec(x_231); +lean_dec(x_227); +if (lean_is_scalar(x_254)) { + x_284 = lean_alloc_ctor(0, 2, 0); } else { - x_281 = x_251; + x_284 = x_254; } -lean_ctor_set(x_281, 0, x_1); -lean_ctor_set(x_281, 1, x_250); -return x_281; +lean_ctor_set(x_284, 0, x_1); +lean_ctor_set(x_284, 1, x_253); +return x_284; } } } } -block_294: +block_297: { -lean_object* x_285; uint8_t x_286; -lean_dec(x_284); -x_285 = lean_unsigned_to_nat(0u); -x_286 = lean_nat_dec_lt(x_285, x_283); -lean_dec(x_283); -if (x_286 == 0) +lean_object* x_288; uint8_t x_289; +lean_dec(x_287); +x_288 = lean_unsigned_to_nat(0u); +x_289 = lean_nat_dec_lt(x_288, x_286); +lean_dec(x_286); +if (x_289 == 0) { -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_249); -x_287 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; -x_288 = l___private_Init_GetElem_0__outOfBounds___rarg(x_287); -x_289 = l_Lean_Compiler_LCNF_AltCore_getCode(x_288); -lean_dec(x_288); -if (lean_is_scalar(x_247)) { - x_290 = lean_alloc_ctor(0, 2, 0); -} else { - x_290 = x_247; -} -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_250); -return x_290; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_array_fget(x_249, x_285); -lean_dec(x_249); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_dec(x_252); +x_290 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; +x_291 = l___private_Init_GetElem_0__outOfBounds___rarg(x_290); x_292 = l_Lean_Compiler_LCNF_AltCore_getCode(x_291); lean_dec(x_291); -if (lean_is_scalar(x_247)) { +if (lean_is_scalar(x_250)) { x_293 = lean_alloc_ctor(0, 2, 0); } else { - x_293 = x_247; + x_293 = x_250; } lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_250); +lean_ctor_set(x_293, 1, x_253); return x_293; } +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_array_fget(x_252, x_288); +lean_dec(x_252); +x_295 = l_Lean_Compiler_LCNF_AltCore_getCode(x_294); +lean_dec(x_294); +if (lean_is_scalar(x_250)) { + x_296 = lean_alloc_ctor(0, 2, 0); +} else { + x_296 = x_250; +} +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_253); +return x_296; +} } } else { -uint8_t x_306; -lean_dec(x_247); -lean_dec(x_240); -lean_dec(x_235); +uint8_t x_309; +lean_dec(x_250); +lean_dec(x_243); +lean_dec(x_238); +lean_dec(x_231); +lean_dec(x_230); +lean_dec(x_229); lean_dec(x_228); lean_dec(x_227); -lean_dec(x_226); -lean_dec(x_225); -lean_dec(x_224); lean_dec(x_1); -x_306 = !lean_is_exclusive(x_248); -if (x_306 == 0) +x_309 = !lean_is_exclusive(x_251); +if (x_309 == 0) { -return x_248; +return x_251; } else { -lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_307 = lean_ctor_get(x_248, 0); -x_308 = lean_ctor_get(x_248, 1); -lean_inc(x_308); -lean_inc(x_307); -lean_dec(x_248); -x_309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_309, 0, x_307); -lean_ctor_set(x_309, 1, x_308); -return x_309; -} -} -} -else -{ -uint8_t x_310; -lean_dec(x_240); -lean_dec(x_235); -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_226); -lean_dec(x_225); -lean_dec(x_224); -lean_dec(x_7); -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_310 = !lean_is_exclusive(x_244); -if (x_310 == 0) -{ -return x_244; -} -else -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_311 = lean_ctor_get(x_244, 0); -x_312 = lean_ctor_get(x_244, 1); -lean_inc(x_312); +lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_310 = lean_ctor_get(x_251, 0); +x_311 = lean_ctor_get(x_251, 1); lean_inc(x_311); -lean_dec(x_244); -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -return x_313; +lean_inc(x_310); +lean_dec(x_251); +x_312 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_312, 0, x_310); +lean_ctor_set(x_312, 1, x_311); +return x_312; } } } else { -lean_object* x_314; +uint8_t x_313; +lean_dec(x_243); +lean_dec(x_238); +lean_dec(x_231); +lean_dec(x_230); +lean_dec(x_229); lean_dec(x_228); lean_dec(x_227); -lean_dec(x_226); +lean_dec(x_7); +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_313 = !lean_is_exclusive(x_247); +if (x_313 == 0) +{ +return x_247; +} +else +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_314 = lean_ctor_get(x_247, 0); +x_315 = lean_ctor_get(x_247, 1); +lean_inc(x_315); +lean_inc(x_314); +lean_dec(x_247); +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_314); +lean_ctor_set(x_316, 1, x_315); +return x_316; +} +} +} +else +{ +lean_object* x_317; +lean_dec(x_231); +lean_dec(x_230); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_227); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_317 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_234); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_317; +} +} +else +{ +uint8_t x_318; +lean_dec(x_223); +lean_dec(x_7); +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_318 = !lean_is_exclusive(x_224); +if (x_318 == 0) +{ +lean_object* x_319; lean_object* x_320; +x_319 = lean_ctor_get(x_224, 0); +lean_dec(x_319); +x_320 = lean_ctor_get(x_225, 0); +lean_inc(x_320); lean_dec(x_225); +lean_ctor_set(x_224, 0, x_320); +return x_224; +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_224, 1); +lean_inc(x_321); lean_dec(x_224); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_314 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_231); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_314; -} -} -else -{ -uint8_t x_315; -lean_dec(x_220); -lean_dec(x_7); -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_315 = !lean_is_exclusive(x_221); -if (x_315 == 0) -{ -lean_object* x_316; lean_object* x_317; -x_316 = lean_ctor_get(x_221, 0); -lean_dec(x_316); -x_317 = lean_ctor_get(x_222, 0); -lean_inc(x_317); -lean_dec(x_222); -lean_ctor_set(x_221, 0, x_317); -return x_221; -} -else -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_221, 1); -lean_inc(x_318); -lean_dec(x_221); -x_319 = lean_ctor_get(x_222, 0); -lean_inc(x_319); -lean_dec(x_222); -x_320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -return x_320; -} -} -} -else -{ -uint8_t x_321; -lean_dec(x_220); -lean_dec(x_7); -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_321 = !lean_is_exclusive(x_221); -if (x_321 == 0) -{ -return x_221; -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_322 = lean_ctor_get(x_221, 0); -x_323 = lean_ctor_get(x_221, 1); -lean_inc(x_323); +x_322 = lean_ctor_get(x_225, 0); lean_inc(x_322); -lean_dec(x_221); -x_324 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_324, 0, x_322); -lean_ctor_set(x_324, 1, x_323); -return x_324; +lean_dec(x_225); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_322); +lean_ctor_set(x_323, 1, x_321); +return x_323; +} +} +} +else +{ +uint8_t x_324; +lean_dec(x_223); +lean_dec(x_7); +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_324 = !lean_is_exclusive(x_224); +if (x_324 == 0) +{ +return x_224; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_325 = lean_ctor_get(x_224, 0); +x_326 = lean_ctor_get(x_224, 1); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_224); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_325); +lean_ctor_set(x_327, 1, x_326); +return x_327; } } } case 5: { -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; -x_325 = lean_ctor_get(x_37, 1); -lean_inc(x_325); -lean_dec(x_37); -x_326 = lean_ctor_get(x_1, 0); -lean_inc(x_326); -x_327 = lean_st_ref_get(x_3, x_325); -x_328 = lean_ctor_get(x_327, 0); +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; uint8_t x_334; lean_object* x_335; +x_328 = lean_ctor_get(x_40, 1); lean_inc(x_328); -x_329 = lean_ctor_get(x_327, 1); +lean_dec(x_40); +x_329 = lean_ctor_get(x_1, 0); lean_inc(x_329); -lean_dec(x_327); -x_330 = lean_ctor_get(x_328, 0); -lean_inc(x_330); -lean_dec(x_328); -x_331 = 0; -lean_inc(x_326); -x_332 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_330, x_326, x_331); -if (lean_obj_tag(x_332) == 0) +x_330 = lean_st_ref_get(x_3, x_328); +x_331 = lean_ctor_get(x_330, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_330, 1); +lean_inc(x_332); +lean_dec(x_330); +x_333 = lean_ctor_get(x_331, 0); +lean_inc(x_333); +lean_dec(x_331); +x_334 = 0; +lean_inc(x_329); +x_335 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_333, x_329, x_334); +if (lean_obj_tag(x_335) == 0) { -lean_object* x_333; lean_object* x_334; uint8_t x_335; -x_333 = lean_ctor_get(x_332, 0); -lean_inc(x_333); -lean_dec(x_332); -lean_inc(x_333); -x_334 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_333, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_329); +lean_object* x_336; lean_object* x_337; uint8_t x_338; +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +lean_dec(x_335); +lean_inc(x_336); +x_337 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_336, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_332); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -21562,208 +21567,208 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_335 = !lean_is_exclusive(x_334); -if (x_335 == 0) -{ -lean_object* x_336; uint8_t x_337; -x_336 = lean_ctor_get(x_334, 0); -lean_dec(x_336); -x_337 = lean_name_eq(x_326, x_333); -lean_dec(x_326); -if (x_337 == 0) -{ -uint8_t x_338; -x_338 = !lean_is_exclusive(x_1); +x_338 = !lean_is_exclusive(x_337); if (x_338 == 0) { -lean_object* x_339; -x_339 = lean_ctor_get(x_1, 0); +lean_object* x_339; uint8_t x_340; +x_339 = lean_ctor_get(x_337, 0); lean_dec(x_339); -lean_ctor_set(x_1, 0, x_333); -lean_ctor_set(x_334, 0, x_1); -return x_334; +x_340 = lean_name_eq(x_329, x_336); +lean_dec(x_329); +if (x_340 == 0) +{ +uint8_t x_341; +x_341 = !lean_is_exclusive(x_1); +if (x_341 == 0) +{ +lean_object* x_342; +x_342 = lean_ctor_get(x_1, 0); +lean_dec(x_342); +lean_ctor_set(x_1, 0, x_336); +lean_ctor_set(x_337, 0, x_1); +return x_337; } else { -lean_object* x_340; +lean_object* x_343; lean_dec(x_1); -x_340 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_340, 0, x_333); -lean_ctor_set(x_334, 0, x_340); -return x_334; +x_343 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_343, 0, x_336); +lean_ctor_set(x_337, 0, x_343); +return x_337; } } else { -lean_dec(x_333); -lean_ctor_set(x_334, 0, x_1); -return x_334; +lean_dec(x_336); +lean_ctor_set(x_337, 0, x_1); +return x_337; } } else { -lean_object* x_341; uint8_t x_342; -x_341 = lean_ctor_get(x_334, 1); -lean_inc(x_341); -lean_dec(x_334); -x_342 = lean_name_eq(x_326, x_333); -lean_dec(x_326); -if (x_342 == 0) +lean_object* x_344; uint8_t x_345; +x_344 = lean_ctor_get(x_337, 1); +lean_inc(x_344); +lean_dec(x_337); +x_345 = lean_name_eq(x_329, x_336); +lean_dec(x_329); +if (x_345 == 0) { -lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_object* x_346; lean_object* x_347; lean_object* x_348; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_343 = x_1; + x_346 = x_1; } else { lean_dec_ref(x_1); - x_343 = lean_box(0); + x_346 = lean_box(0); } -if (lean_is_scalar(x_343)) { - x_344 = lean_alloc_ctor(5, 1, 0); +if (lean_is_scalar(x_346)) { + x_347 = lean_alloc_ctor(5, 1, 0); } else { - x_344 = x_343; + x_347 = x_346; } -lean_ctor_set(x_344, 0, x_333); -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_341); -return x_345; +lean_ctor_set(x_347, 0, x_336); +x_348 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_348, 0, x_347); +lean_ctor_set(x_348, 1, x_344); +return x_348; } else { -lean_object* x_346; -lean_dec(x_333); -x_346 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_346, 0, x_1); -lean_ctor_set(x_346, 1, x_341); -return x_346; +lean_object* x_349; +lean_dec(x_336); +x_349 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_349, 0, x_1); +lean_ctor_set(x_349, 1, x_344); +return x_349; } } } else { -lean_object* x_347; -lean_dec(x_326); +lean_object* x_350; +lean_dec(x_329); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_347 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_329); +x_350 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_7, x_8, x_332); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_347; +return x_350; } } default: { -lean_object* x_348; lean_object* x_349; lean_object* x_350; uint8_t x_351; +lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_348 = lean_ctor_get(x_37, 1); -lean_inc(x_348); -lean_dec(x_37); -x_349 = lean_ctor_get(x_1, 0); -lean_inc(x_349); -x_350 = lean_st_ref_get(x_3, x_348); +x_351 = lean_ctor_get(x_40, 1); +lean_inc(x_351); +lean_dec(x_40); +x_352 = lean_ctor_get(x_1, 0); +lean_inc(x_352); +x_353 = lean_st_ref_get(x_3, x_351); lean_dec(x_3); -x_351 = !lean_is_exclusive(x_350); -if (x_351 == 0) -{ -lean_object* x_352; lean_object* x_353; uint8_t x_354; lean_object* x_355; size_t x_356; size_t x_357; uint8_t x_358; -x_352 = lean_ctor_get(x_350, 0); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -lean_dec(x_352); -x_354 = 0; -lean_inc(x_349); -x_355 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_353, x_354, x_349); -x_356 = lean_ptr_addr(x_349); -lean_dec(x_349); -x_357 = lean_ptr_addr(x_355); -x_358 = lean_usize_dec_eq(x_356, x_357); -if (x_358 == 0) -{ -uint8_t x_359; -x_359 = !lean_is_exclusive(x_1); -if (x_359 == 0) -{ -lean_object* x_360; -x_360 = lean_ctor_get(x_1, 0); -lean_dec(x_360); -lean_ctor_set(x_1, 0, x_355); -lean_ctor_set(x_350, 0, x_1); -return x_350; -} -else -{ -lean_object* x_361; -lean_dec(x_1); -x_361 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_361, 0, x_355); -lean_ctor_set(x_350, 0, x_361); -return x_350; -} -} -else +x_354 = !lean_is_exclusive(x_353); +if (x_354 == 0) { +lean_object* x_355; lean_object* x_356; uint8_t x_357; lean_object* x_358; size_t x_359; size_t x_360; uint8_t x_361; +x_355 = lean_ctor_get(x_353, 0); +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); lean_dec(x_355); -lean_ctor_set(x_350, 0, x_1); -return x_350; +x_357 = 0; +lean_inc(x_352); +x_358 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_356, x_357, x_352); +x_359 = lean_ptr_addr(x_352); +lean_dec(x_352); +x_360 = lean_ptr_addr(x_358); +x_361 = lean_usize_dec_eq(x_359, x_360); +if (x_361 == 0) +{ +uint8_t x_362; +x_362 = !lean_is_exclusive(x_1); +if (x_362 == 0) +{ +lean_object* x_363; +x_363 = lean_ctor_get(x_1, 0); +lean_dec(x_363); +lean_ctor_set(x_1, 0, x_358); +lean_ctor_set(x_353, 0, x_1); +return x_353; +} +else +{ +lean_object* x_364; +lean_dec(x_1); +x_364 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_364, 0, x_358); +lean_ctor_set(x_353, 0, x_364); +return x_353; } } else { -lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; lean_object* x_366; size_t x_367; size_t x_368; uint8_t x_369; -x_362 = lean_ctor_get(x_350, 0); -x_363 = lean_ctor_get(x_350, 1); -lean_inc(x_363); -lean_inc(x_362); -lean_dec(x_350); -x_364 = lean_ctor_get(x_362, 0); -lean_inc(x_364); -lean_dec(x_362); -x_365 = 0; -lean_inc(x_349); -x_366 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_364, x_365, x_349); -x_367 = lean_ptr_addr(x_349); -lean_dec(x_349); -x_368 = lean_ptr_addr(x_366); -x_369 = lean_usize_dec_eq(x_367, x_368); -if (x_369 == 0) +lean_dec(x_358); +lean_ctor_set(x_353, 0, x_1); +return x_353; +} +} +else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; +lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; lean_object* x_369; size_t x_370; size_t x_371; uint8_t x_372; +x_365 = lean_ctor_get(x_353, 0); +x_366 = lean_ctor_get(x_353, 1); +lean_inc(x_366); +lean_inc(x_365); +lean_dec(x_353); +x_367 = lean_ctor_get(x_365, 0); +lean_inc(x_367); +lean_dec(x_365); +x_368 = 0; +lean_inc(x_352); +x_369 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_367, x_368, x_352); +x_370 = lean_ptr_addr(x_352); +lean_dec(x_352); +x_371 = lean_ptr_addr(x_369); +x_372 = lean_usize_dec_eq(x_370, x_371); +if (x_372 == 0) +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_370 = x_1; + x_373 = x_1; } else { lean_dec_ref(x_1); - x_370 = lean_box(0); + x_373 = lean_box(0); } -if (lean_is_scalar(x_370)) { - x_371 = lean_alloc_ctor(6, 1, 0); +if (lean_is_scalar(x_373)) { + x_374 = lean_alloc_ctor(6, 1, 0); } else { - x_371 = x_370; + x_374 = x_373; } -lean_ctor_set(x_371, 0, x_366); -x_372 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_372, 0, x_371); -lean_ctor_set(x_372, 1, x_363); -return x_372; +lean_ctor_set(x_374, 0, x_369); +x_375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_366); +return x_375; } else { -lean_object* x_373; -lean_dec(x_366); -x_373 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_373, 0, x_1); -lean_ctor_set(x_373, 1, x_363); -return x_373; +lean_object* x_376; +lean_dec(x_369); +x_376 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_376, 0, x_1); +lean_ctor_set(x_376, 1, x_366); +return x_376; } } } @@ -21771,279 +21776,281 @@ return x_373; } else { -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_dec(x_7); -x_374 = lean_unsigned_to_nat(1u); -x_375 = lean_nat_add(x_13, x_374); +x_377 = lean_unsigned_to_nat(1u); +x_378 = lean_nat_add(x_13, x_377); lean_dec(x_13); -x_376 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_376, 0, x_10); -lean_ctor_set(x_376, 1, x_11); -lean_ctor_set(x_376, 2, x_12); -lean_ctor_set(x_376, 3, x_375); -lean_ctor_set(x_376, 4, x_14); -lean_ctor_set(x_376, 5, x_15); -lean_ctor_set(x_376, 6, x_16); -lean_ctor_set(x_376, 7, x_17); -lean_ctor_set(x_376, 8, x_18); -lean_ctor_set(x_376, 9, x_19); -lean_ctor_set(x_376, 10, x_20); -lean_ctor_set_uint8(x_376, sizeof(void*)*11, x_21); -x_377 = l_Lean_Compiler_LCNF_Simp_incVisited___rarg(x_3, x_4, x_5, x_6, x_376, x_8, x_9); +x_379 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_379, 0, x_10); +lean_ctor_set(x_379, 1, x_11); +lean_ctor_set(x_379, 2, x_12); +lean_ctor_set(x_379, 3, x_378); +lean_ctor_set(x_379, 4, x_14); +lean_ctor_set(x_379, 5, x_15); +lean_ctor_set(x_379, 6, x_16); +lean_ctor_set(x_379, 7, x_17); +lean_ctor_set(x_379, 8, x_18); +lean_ctor_set(x_379, 9, x_19); +lean_ctor_set(x_379, 10, x_20); +lean_ctor_set(x_379, 11, x_22); +lean_ctor_set_uint8(x_379, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_379, sizeof(void*)*12 + 1, x_23); +x_380 = l_Lean_Compiler_LCNF_Simp_incVisited___rarg(x_3, x_4, x_5, x_6, x_379, x_8, x_9); switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_378; lean_object* x_379; lean_object* x_380; uint8_t x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; uint8_t x_385; -x_378 = lean_ctor_get(x_377, 1); -lean_inc(x_378); -lean_dec(x_377); -x_379 = lean_ctor_get(x_1, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_1, 1); -lean_inc(x_380); -x_381 = 0; -lean_inc(x_379); -x_382 = l_Lean_Compiler_LCNF_normLetDecl___at_Lean_Compiler_LCNF_Simp_simp___spec__1(x_381, x_379, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_378); -x_383 = lean_ctor_get(x_382, 0); +lean_object* x_381; lean_object* x_382; lean_object* x_383; uint8_t x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; uint8_t x_388; +x_381 = lean_ctor_get(x_380, 1); +lean_inc(x_381); +lean_dec(x_380); +x_382 = lean_ctor_get(x_1, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_1, 1); lean_inc(x_383); -x_384 = lean_ctor_get(x_382, 1); -lean_inc(x_384); -lean_dec(x_382); -x_385 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_1699_(x_379, x_383); -if (x_385 == 0) -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_386 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_376, x_8, x_384); -x_387 = lean_ctor_get(x_386, 0); +x_384 = 0; +lean_inc(x_382); +x_385 = l_Lean_Compiler_LCNF_normLetDecl___at_Lean_Compiler_LCNF_Simp_simp___spec__1(x_384, x_382, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_381); +x_386 = lean_ctor_get(x_385, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_385, 1); lean_inc(x_387); -x_388 = lean_ctor_get(x_386, 1); -lean_inc(x_388); -lean_dec(x_386); -x_389 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_380, x_379, x_1, x_383, x_387, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_388); -return x_389; +lean_dec(x_385); +x_388 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqLetDecl____x40_Lean_Compiler_LCNF_Basic___hyg_1699_(x_382, x_386); +if (x_388 == 0) +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_389 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_379, x_8, x_387); +x_390 = lean_ctor_get(x_389, 0); +lean_inc(x_390); +x_391 = lean_ctor_get(x_389, 1); +lean_inc(x_391); +lean_dec(x_389); +x_392 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_383, x_382, x_1, x_386, x_390, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_391); +return x_392; } else { -lean_object* x_390; lean_object* x_391; -x_390 = lean_box(0); -x_391 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_380, x_379, x_1, x_383, x_390, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_384); -return x_391; +lean_object* x_393; lean_object* x_394; +x_393 = lean_box(0); +x_394 = l_Lean_Compiler_LCNF_Simp_simp___lambda__2(x_383, x_382, x_1, x_386, x_393, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_387); +return x_394; } } case 1: { -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; -x_392 = lean_ctor_get(x_377, 1); -lean_inc(x_392); -lean_dec(x_377); -x_393 = lean_ctor_get(x_1, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_1, 1); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 0); +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; uint8_t x_401; +x_395 = lean_ctor_get(x_380, 1); lean_inc(x_395); -x_396 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_395, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_392); -x_397 = lean_ctor_get(x_396, 0); +lean_dec(x_380); +x_396 = lean_ctor_get(x_1, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_1, 1); lean_inc(x_397); -x_398 = lean_unbox(x_397); -if (x_398 == 0) -{ -lean_object* x_399; lean_object* x_400; uint8_t x_401; -x_399 = lean_ctor_get(x_396, 1); -lean_inc(x_399); -lean_dec(x_396); -lean_inc(x_1); -lean_inc(x_393); -x_400 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed), 14, 4); -lean_closure_set(x_400, 0, x_394); -lean_closure_set(x_400, 1, x_393); -lean_closure_set(x_400, 2, x_1); -lean_closure_set(x_400, 3, x_397); -x_401 = l_Lean_Compiler_LCNF_Code_isFun(x_1); -lean_dec(x_1); +x_398 = lean_ctor_get(x_396, 0); +lean_inc(x_398); +x_399 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_398, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_395); +x_400 = lean_ctor_get(x_399, 0); +lean_inc(x_400); +x_401 = lean_unbox(x_400); if (x_401 == 0) { -lean_object* x_402; lean_object* x_403; -x_402 = lean_box(0); -x_403 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_400, x_393, x_402, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_399); -return x_403; +lean_object* x_402; lean_object* x_403; uint8_t x_404; +x_402 = lean_ctor_get(x_399, 1); +lean_inc(x_402); +lean_dec(x_399); +lean_inc(x_1); +lean_inc(x_396); +x_403 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__4___boxed), 14, 4); +lean_closure_set(x_403, 0, x_397); +lean_closure_set(x_403, 1, x_396); +lean_closure_set(x_403, 2, x_1); +lean_closure_set(x_403, 3, x_400); +x_404 = l_Lean_Compiler_LCNF_Code_isFun(x_1); +lean_dec(x_1); +if (x_404 == 0) +{ +lean_object* x_405; lean_object* x_406; +x_405 = lean_box(0); +x_406 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_403, x_396, x_405, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_402); +return x_406; } else { -lean_object* x_404; lean_object* x_405; uint8_t x_406; -x_404 = lean_ctor_get(x_393, 3); -lean_inc(x_404); -x_405 = lean_ctor_get(x_393, 2); -lean_inc(x_405); -x_406 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_404, x_405); -lean_dec(x_405); -if (x_406 == 0) +lean_object* x_407; lean_object* x_408; uint8_t x_409; +x_407 = lean_ctor_get(x_396, 3); +lean_inc(x_407); +x_408 = lean_ctor_get(x_396, 2); +lean_inc(x_408); +x_409 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_407, x_408); +lean_dec(x_408); +if (x_409 == 0) { -lean_object* x_407; lean_object* x_408; -x_407 = lean_box(0); -x_408 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_400, x_393, x_407, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_399); -return x_408; +lean_object* x_410; lean_object* x_411; +x_410 = lean_box(0); +x_411 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_403, x_396, x_410, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_402); +return x_411; } else { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; uint8_t x_413; lean_object* x_414; -x_409 = lean_st_ref_get(x_3, x_399); -x_410 = lean_ctor_get(x_409, 0); -lean_inc(x_410); -x_411 = lean_ctor_get(x_409, 1); -lean_inc(x_411); -lean_dec(x_409); -x_412 = lean_ctor_get(x_410, 0); -lean_inc(x_412); -lean_dec(x_410); -x_413 = 0; -lean_inc(x_8); -lean_inc(x_376); -lean_inc(x_6); -lean_inc(x_5); -x_414 = l_Lean_Compiler_LCNF_normFunDeclImp(x_413, x_393, x_412, x_5, x_6, x_376, x_8, x_411); -if (lean_obj_tag(x_414) == 0) -{ -lean_object* x_415; lean_object* x_416; lean_object* x_417; -x_415 = lean_ctor_get(x_414, 0); +lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; uint8_t x_416; lean_object* x_417; +x_412 = lean_st_ref_get(x_3, x_402); +x_413 = lean_ctor_get(x_412, 0); +lean_inc(x_413); +x_414 = lean_ctor_get(x_412, 1); +lean_inc(x_414); +lean_dec(x_412); +x_415 = lean_ctor_get(x_413, 0); lean_inc(x_415); -x_416 = lean_ctor_get(x_414, 1); -lean_inc(x_416); -lean_dec(x_414); +lean_dec(x_413); +x_416 = 0; lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); -x_417 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_415, x_5, x_6, x_376, x_8, x_416); +x_417 = l_Lean_Compiler_LCNF_normFunDeclImp(x_416, x_396, x_415, x_5, x_6, x_379, x_8, x_414); if (lean_obj_tag(x_417) == 0) { -lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; +lean_object* x_418; lean_object* x_419; lean_object* x_420; x_418 = lean_ctor_get(x_417, 0); lean_inc(x_418); x_419 = lean_ctor_get(x_417, 1); lean_inc(x_419); lean_dec(x_417); -x_420 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_376, x_8, x_419); +lean_inc(x_8); +lean_inc(x_379); +lean_inc(x_6); +lean_inc(x_5); +x_420 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_418, x_5, x_6, x_379, x_8, x_419); +if (lean_obj_tag(x_420) == 0) +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; x_421 = lean_ctor_get(x_420, 0); lean_inc(x_421); x_422 = lean_ctor_get(x_420, 1); lean_inc(x_422); lean_dec(x_420); -x_423 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_400, x_418, x_421, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_422); -lean_dec(x_421); -return x_423; +x_423 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_379, x_8, x_422); +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +lean_dec(x_423); +x_426 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_403, x_421, x_424, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_425); +lean_dec(x_424); +return x_426; } else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; -lean_dec(x_400); -lean_dec(x_376); +lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +lean_dec(x_403); +lean_dec(x_379); 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_424 = lean_ctor_get(x_417, 0); -lean_inc(x_424); -x_425 = lean_ctor_get(x_417, 1); -lean_inc(x_425); +x_427 = lean_ctor_get(x_420, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_420, 1); +lean_inc(x_428); +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + x_429 = x_420; +} else { + lean_dec_ref(x_420); + x_429 = lean_box(0); +} +if (lean_is_scalar(x_429)) { + x_430 = lean_alloc_ctor(1, 2, 0); +} else { + x_430 = x_429; +} +lean_ctor_set(x_430, 0, x_427); +lean_ctor_set(x_430, 1, x_428); +return x_430; +} +} +else +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +lean_dec(x_403); +lean_dec(x_379); +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_431 = lean_ctor_get(x_417, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_417, 1); +lean_inc(x_432); if (lean_is_exclusive(x_417)) { lean_ctor_release(x_417, 0); lean_ctor_release(x_417, 1); - x_426 = x_417; + x_433 = x_417; } else { lean_dec_ref(x_417); - x_426 = lean_box(0); + x_433 = lean_box(0); } -if (lean_is_scalar(x_426)) { - x_427 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_433)) { + x_434 = lean_alloc_ctor(1, 2, 0); } else { - x_427 = x_426; + x_434 = x_433; } -lean_ctor_set(x_427, 0, x_424); -lean_ctor_set(x_427, 1, x_425); -return x_427; -} -} -else -{ -lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -lean_dec(x_400); -lean_dec(x_376); -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_428 = lean_ctor_get(x_414, 0); -lean_inc(x_428); -x_429 = lean_ctor_get(x_414, 1); -lean_inc(x_429); -if (lean_is_exclusive(x_414)) { - lean_ctor_release(x_414, 0); - lean_ctor_release(x_414, 1); - x_430 = x_414; -} else { - lean_dec_ref(x_414); - x_430 = lean_box(0); -} -if (lean_is_scalar(x_430)) { - x_431 = lean_alloc_ctor(1, 2, 0); -} else { - x_431 = x_430; -} -lean_ctor_set(x_431, 0, x_428); -lean_ctor_set(x_431, 1, x_429); -return x_431; +lean_ctor_set(x_434, 0, x_431); +lean_ctor_set(x_434, 1, x_432); +return x_434; } } } } else { -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; -x_432 = lean_ctor_get(x_396, 1); -lean_inc(x_432); -lean_dec(x_396); -x_433 = lean_st_ref_get(x_3, x_432); -x_434 = lean_ctor_get(x_433, 0); -lean_inc(x_434); -x_435 = lean_ctor_get(x_433, 1); +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; uint8_t x_440; lean_object* x_441; +x_435 = lean_ctor_get(x_399, 1); lean_inc(x_435); -lean_dec(x_433); -x_436 = lean_ctor_get(x_434, 0); -lean_inc(x_436); -lean_dec(x_434); -x_437 = 0; +lean_dec(x_399); +x_436 = lean_st_ref_get(x_3, x_435); +x_437 = lean_ctor_get(x_436, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_436, 1); +lean_inc(x_438); +lean_dec(x_436); +x_439 = lean_ctor_get(x_437, 0); +lean_inc(x_439); +lean_dec(x_437); +x_440 = 0; lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_393); -x_438 = l_Lean_Compiler_LCNF_normFunDeclImp(x_437, x_393, x_436, x_5, x_6, x_376, x_8, x_435); -if (lean_obj_tag(x_438) == 0) +lean_inc(x_396); +x_441 = l_Lean_Compiler_LCNF_normFunDeclImp(x_440, x_396, x_439, x_5, x_6, x_379, x_8, x_438); +if (lean_obj_tag(x_441) == 0) { -lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; lean_object* x_443; -x_439 = lean_ctor_get(x_438, 0); -lean_inc(x_439); -x_440 = lean_ctor_get(x_438, 1); -lean_inc(x_440); -lean_dec(x_438); -x_441 = lean_box(0); -x_442 = lean_unbox(x_397); -lean_dec(x_397); -x_443 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_394, x_393, x_1, x_442, x_439, x_441, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_440); -return x_443; +lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; lean_object* x_446; +x_442 = lean_ctor_get(x_441, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_441, 1); +lean_inc(x_443); +lean_dec(x_441); +x_444 = lean_box(0); +x_445 = lean_unbox(x_400); +lean_dec(x_400); +x_446 = l_Lean_Compiler_LCNF_Simp_simp___lambda__4(x_397, x_396, x_1, x_445, x_442, x_444, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_443); +return x_446; } else { -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +lean_dec(x_400); lean_dec(x_397); -lean_dec(x_394); -lean_dec(x_393); -lean_dec(x_376); +lean_dec(x_396); +lean_dec(x_379); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -22051,243 +22058,243 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_444 = lean_ctor_get(x_438, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_438, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_438)) { - lean_ctor_release(x_438, 0); - lean_ctor_release(x_438, 1); - x_446 = x_438; +x_447 = lean_ctor_get(x_441, 0); +lean_inc(x_447); +x_448 = lean_ctor_get(x_441, 1); +lean_inc(x_448); +if (lean_is_exclusive(x_441)) { + lean_ctor_release(x_441, 0); + lean_ctor_release(x_441, 1); + x_449 = x_441; } else { - lean_dec_ref(x_438); - x_446 = lean_box(0); + lean_dec_ref(x_441); + x_449 = lean_box(0); } -if (lean_is_scalar(x_446)) { - x_447 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_449)) { + x_450 = lean_alloc_ctor(1, 2, 0); } else { - x_447 = x_446; + x_450 = x_449; } -lean_ctor_set(x_447, 0, x_444); -lean_ctor_set(x_447, 1, x_445); -return x_447; +lean_ctor_set(x_450, 0, x_447); +lean_ctor_set(x_450, 1, x_448); +return x_450; } } } case 2: { -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; -x_448 = lean_ctor_get(x_377, 1); -lean_inc(x_448); -lean_dec(x_377); -x_449 = lean_ctor_get(x_1, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_1, 1); -lean_inc(x_450); -x_451 = lean_ctor_get(x_449, 0); +lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; +x_451 = lean_ctor_get(x_380, 1); lean_inc(x_451); -x_452 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_451, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_448); -x_453 = lean_ctor_get(x_452, 0); +lean_dec(x_380); +x_452 = lean_ctor_get(x_1, 0); +lean_inc(x_452); +x_453 = lean_ctor_get(x_1, 1); lean_inc(x_453); -x_454 = lean_unbox(x_453); -if (x_454 == 0) -{ -lean_object* x_455; lean_object* x_456; uint8_t x_457; -x_455 = lean_ctor_get(x_452, 1); -lean_inc(x_455); -lean_dec(x_452); -lean_inc(x_1); -lean_inc(x_449); -x_456 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__7___boxed), 14, 4); -lean_closure_set(x_456, 0, x_450); -lean_closure_set(x_456, 1, x_449); -lean_closure_set(x_456, 2, x_1); -lean_closure_set(x_456, 3, x_453); -x_457 = l_Lean_Compiler_LCNF_Code_isFun(x_1); -lean_dec(x_1); +x_454 = lean_ctor_get(x_452, 0); +lean_inc(x_454); +x_455 = l_Lean_Compiler_LCNF_Simp_isOnceOrMustInline(x_454, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_451); +x_456 = lean_ctor_get(x_455, 0); +lean_inc(x_456); +x_457 = lean_unbox(x_456); if (x_457 == 0) { -lean_object* x_458; lean_object* x_459; -x_458 = lean_box(0); -x_459 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_456, x_449, x_458, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_455); -return x_459; +lean_object* x_458; lean_object* x_459; uint8_t x_460; +x_458 = lean_ctor_get(x_455, 1); +lean_inc(x_458); +lean_dec(x_455); +lean_inc(x_1); +lean_inc(x_452); +x_459 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__7___boxed), 14, 4); +lean_closure_set(x_459, 0, x_453); +lean_closure_set(x_459, 1, x_452); +lean_closure_set(x_459, 2, x_1); +lean_closure_set(x_459, 3, x_456); +x_460 = l_Lean_Compiler_LCNF_Code_isFun(x_1); +lean_dec(x_1); +if (x_460 == 0) +{ +lean_object* x_461; lean_object* x_462; +x_461 = lean_box(0); +x_462 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_459, x_452, x_461, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_458); +return x_462; } else { -lean_object* x_460; lean_object* x_461; uint8_t x_462; -x_460 = lean_ctor_get(x_449, 3); -lean_inc(x_460); -x_461 = lean_ctor_get(x_449, 2); -lean_inc(x_461); -x_462 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_460, x_461); -lean_dec(x_461); -if (x_462 == 0) +lean_object* x_463; lean_object* x_464; uint8_t x_465; +x_463 = lean_ctor_get(x_452, 3); +lean_inc(x_463); +x_464 = lean_ctor_get(x_452, 2); +lean_inc(x_464); +x_465 = l_Lean_Compiler_LCNF_isEtaExpandCandidateCore(x_463, x_464); +lean_dec(x_464); +if (x_465 == 0) { -lean_object* x_463; lean_object* x_464; -x_463 = lean_box(0); -x_464 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_456, x_449, x_463, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_455); -return x_464; +lean_object* x_466; lean_object* x_467; +x_466 = lean_box(0); +x_467 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_459, x_452, x_466, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_458); +return x_467; } else { -lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; uint8_t x_469; lean_object* x_470; -x_465 = lean_st_ref_get(x_3, x_455); -x_466 = lean_ctor_get(x_465, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_465, 1); -lean_inc(x_467); -lean_dec(x_465); -x_468 = lean_ctor_get(x_466, 0); -lean_inc(x_468); -lean_dec(x_466); -x_469 = 0; -lean_inc(x_8); -lean_inc(x_376); -lean_inc(x_6); -lean_inc(x_5); -x_470 = l_Lean_Compiler_LCNF_normFunDeclImp(x_469, x_449, x_468, x_5, x_6, x_376, x_8, x_467); -if (lean_obj_tag(x_470) == 0) -{ -lean_object* x_471; lean_object* x_472; lean_object* x_473; -x_471 = lean_ctor_get(x_470, 0); +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; lean_object* x_473; +x_468 = lean_st_ref_get(x_3, x_458); +x_469 = lean_ctor_get(x_468, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_468, 1); +lean_inc(x_470); +lean_dec(x_468); +x_471 = lean_ctor_get(x_469, 0); lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 1); -lean_inc(x_472); -lean_dec(x_470); +lean_dec(x_469); +x_472 = 0; lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); -x_473 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_471, x_5, x_6, x_376, x_8, x_472); +x_473 = l_Lean_Compiler_LCNF_normFunDeclImp(x_472, x_452, x_471, x_5, x_6, x_379, x_8, x_470); if (lean_obj_tag(x_473) == 0) { -lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +lean_object* x_474; lean_object* x_475; lean_object* x_476; x_474 = lean_ctor_get(x_473, 0); lean_inc(x_474); x_475 = lean_ctor_get(x_473, 1); lean_inc(x_475); lean_dec(x_473); -x_476 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_376, x_8, x_475); +lean_inc(x_8); +lean_inc(x_379); +lean_inc(x_6); +lean_inc(x_5); +x_476 = l_Lean_Compiler_LCNF_FunDeclCore_etaExpand(x_474, x_5, x_6, x_379, x_8, x_475); +if (lean_obj_tag(x_476) == 0) +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; x_477 = lean_ctor_get(x_476, 0); lean_inc(x_477); x_478 = lean_ctor_get(x_476, 1); lean_inc(x_478); lean_dec(x_476); -x_479 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_456, x_474, x_477, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_478); -lean_dec(x_477); -return x_479; +x_479 = l_Lean_Compiler_LCNF_Simp_markSimplified___rarg(x_3, x_4, x_5, x_6, x_379, x_8, x_478); +x_480 = lean_ctor_get(x_479, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_479, 1); +lean_inc(x_481); +lean_dec(x_479); +x_482 = l_Lean_Compiler_LCNF_Simp_simp___lambda__5(x_459, x_477, x_480, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_481); +lean_dec(x_480); +return x_482; } else { -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; -lean_dec(x_456); -lean_dec(x_376); +lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; +lean_dec(x_459); +lean_dec(x_379); 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_480 = lean_ctor_get(x_473, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_473, 1); -lean_inc(x_481); +x_483 = lean_ctor_get(x_476, 0); +lean_inc(x_483); +x_484 = lean_ctor_get(x_476, 1); +lean_inc(x_484); +if (lean_is_exclusive(x_476)) { + lean_ctor_release(x_476, 0); + lean_ctor_release(x_476, 1); + x_485 = x_476; +} else { + lean_dec_ref(x_476); + x_485 = lean_box(0); +} +if (lean_is_scalar(x_485)) { + x_486 = lean_alloc_ctor(1, 2, 0); +} else { + x_486 = x_485; +} +lean_ctor_set(x_486, 0, x_483); +lean_ctor_set(x_486, 1, x_484); +return x_486; +} +} +else +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; +lean_dec(x_459); +lean_dec(x_379); +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_487 = lean_ctor_get(x_473, 0); +lean_inc(x_487); +x_488 = lean_ctor_get(x_473, 1); +lean_inc(x_488); if (lean_is_exclusive(x_473)) { lean_ctor_release(x_473, 0); lean_ctor_release(x_473, 1); - x_482 = x_473; + x_489 = x_473; } else { lean_dec_ref(x_473); - x_482 = lean_box(0); + x_489 = lean_box(0); } -if (lean_is_scalar(x_482)) { - x_483 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_489)) { + x_490 = lean_alloc_ctor(1, 2, 0); } else { - x_483 = x_482; + x_490 = x_489; } -lean_ctor_set(x_483, 0, x_480); -lean_ctor_set(x_483, 1, x_481); -return x_483; -} -} -else -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; -lean_dec(x_456); -lean_dec(x_376); -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_484 = lean_ctor_get(x_470, 0); -lean_inc(x_484); -x_485 = lean_ctor_get(x_470, 1); -lean_inc(x_485); -if (lean_is_exclusive(x_470)) { - lean_ctor_release(x_470, 0); - lean_ctor_release(x_470, 1); - x_486 = x_470; -} else { - lean_dec_ref(x_470); - x_486 = lean_box(0); -} -if (lean_is_scalar(x_486)) { - x_487 = lean_alloc_ctor(1, 2, 0); -} else { - x_487 = x_486; -} -lean_ctor_set(x_487, 0, x_484); -lean_ctor_set(x_487, 1, x_485); -return x_487; +lean_ctor_set(x_490, 0, x_487); +lean_ctor_set(x_490, 1, x_488); +return x_490; } } } } else { -lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; lean_object* x_494; -x_488 = lean_ctor_get(x_452, 1); -lean_inc(x_488); -lean_dec(x_452); -x_489 = lean_st_ref_get(x_3, x_488); -x_490 = lean_ctor_get(x_489, 0); -lean_inc(x_490); -x_491 = lean_ctor_get(x_489, 1); +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; +x_491 = lean_ctor_get(x_455, 1); lean_inc(x_491); -lean_dec(x_489); -x_492 = lean_ctor_get(x_490, 0); -lean_inc(x_492); -lean_dec(x_490); -x_493 = 0; +lean_dec(x_455); +x_492 = lean_st_ref_get(x_3, x_491); +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); +x_494 = lean_ctor_get(x_492, 1); +lean_inc(x_494); +lean_dec(x_492); +x_495 = lean_ctor_get(x_493, 0); +lean_inc(x_495); +lean_dec(x_493); +x_496 = 0; lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_449); -x_494 = l_Lean_Compiler_LCNF_normFunDeclImp(x_493, x_449, x_492, x_5, x_6, x_376, x_8, x_491); -if (lean_obj_tag(x_494) == 0) +lean_inc(x_452); +x_497 = l_Lean_Compiler_LCNF_normFunDeclImp(x_496, x_452, x_495, x_5, x_6, x_379, x_8, x_494); +if (lean_obj_tag(x_497) == 0) { -lean_object* x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; -x_495 = lean_ctor_get(x_494, 0); -lean_inc(x_495); -x_496 = lean_ctor_get(x_494, 1); -lean_inc(x_496); -lean_dec(x_494); -x_497 = lean_box(0); -x_498 = lean_unbox(x_453); -lean_dec(x_453); -x_499 = l_Lean_Compiler_LCNF_Simp_simp___lambda__7(x_450, x_449, x_1, x_498, x_495, x_497, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_496); -return x_499; +lean_object* x_498; lean_object* x_499; lean_object* x_500; uint8_t x_501; lean_object* x_502; +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_497, 1); +lean_inc(x_499); +lean_dec(x_497); +x_500 = lean_box(0); +x_501 = lean_unbox(x_456); +lean_dec(x_456); +x_502 = l_Lean_Compiler_LCNF_Simp_simp___lambda__7(x_453, x_452, x_1, x_501, x_498, x_500, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_499); +return x_502; } else { -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +lean_dec(x_456); lean_dec(x_453); -lean_dec(x_450); -lean_dec(x_449); -lean_dec(x_376); +lean_dec(x_452); +lean_dec(x_379); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -22295,183 +22302,183 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_500 = lean_ctor_get(x_494, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_494, 1); -lean_inc(x_501); -if (lean_is_exclusive(x_494)) { - lean_ctor_release(x_494, 0); - lean_ctor_release(x_494, 1); - x_502 = x_494; +x_503 = lean_ctor_get(x_497, 0); +lean_inc(x_503); +x_504 = lean_ctor_get(x_497, 1); +lean_inc(x_504); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_505 = x_497; } else { - lean_dec_ref(x_494); - x_502 = lean_box(0); + lean_dec_ref(x_497); + x_505 = lean_box(0); } -if (lean_is_scalar(x_502)) { - x_503 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_505)) { + x_506 = lean_alloc_ctor(1, 2, 0); } else { - x_503 = x_502; + x_506 = x_505; } -lean_ctor_set(x_503, 0, x_500); -lean_ctor_set(x_503, 1, x_501); -return x_503; +lean_ctor_set(x_506, 0, x_503); +lean_ctor_set(x_506, 1, x_504); +return x_506; } } } case 3: { -lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; uint8_t x_511; lean_object* x_512; -x_504 = lean_ctor_get(x_377, 1); -lean_inc(x_504); -lean_dec(x_377); -x_505 = lean_ctor_get(x_1, 0); -lean_inc(x_505); -x_506 = lean_ctor_get(x_1, 1); -lean_inc(x_506); -x_507 = lean_st_ref_get(x_3, x_504); -x_508 = lean_ctor_get(x_507, 0); +lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; uint8_t x_514; lean_object* x_515; +x_507 = lean_ctor_get(x_380, 1); +lean_inc(x_507); +lean_dec(x_380); +x_508 = lean_ctor_get(x_1, 0); lean_inc(x_508); -x_509 = lean_ctor_get(x_507, 1); +x_509 = lean_ctor_get(x_1, 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 = 0; -lean_inc(x_505); -x_512 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_510, x_505, x_511); -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_531; -x_513 = lean_ctor_get(x_512, 0); +x_510 = lean_st_ref_get(x_3, x_507); +x_511 = lean_ctor_get(x_510, 0); +lean_inc(x_511); +x_512 = lean_ctor_get(x_510, 1); +lean_inc(x_512); +lean_dec(x_510); +x_513 = lean_ctor_get(x_511, 0); lean_inc(x_513); -lean_dec(x_512); -lean_inc(x_506); -x_514 = l_Lean_Compiler_LCNF_normArgs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_511, x_506, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_509); -x_515 = lean_ctor_get(x_514, 0); -lean_inc(x_515); -x_516 = lean_ctor_get(x_514, 1); +lean_dec(x_511); +x_514 = 0; +lean_inc(x_508); +x_515 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_513, x_508, x_514); +if (lean_obj_tag(x_515) == 0) +{ +lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_534; +x_516 = lean_ctor_get(x_515, 0); lean_inc(x_516); -if (lean_is_exclusive(x_514)) { - lean_ctor_release(x_514, 0); - lean_ctor_release(x_514, 1); - x_517 = x_514; +lean_dec(x_515); +lean_inc(x_509); +x_517 = l_Lean_Compiler_LCNF_normArgs___at_Lean_Compiler_LCNF_Simp_simp___spec__2(x_514, x_509, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_512); +x_518 = lean_ctor_get(x_517, 0); +lean_inc(x_518); +x_519 = lean_ctor_get(x_517, 1); +lean_inc(x_519); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + lean_ctor_release(x_517, 1); + x_520 = x_517; } else { - lean_dec_ref(x_514); - x_517 = lean_box(0); + lean_dec_ref(x_517); + x_520 = lean_box(0); } lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_515); -lean_inc(x_513); -x_531 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(x_513, x_515, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_516); -if (lean_obj_tag(x_531) == 0) +lean_inc(x_518); +lean_inc(x_516); +x_534 = l_Lean_Compiler_LCNF_Simp_inlineJp_x3f(x_516, x_518, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_519); +if (lean_obj_tag(x_534) == 0) { -lean_object* x_532; -x_532 = lean_ctor_get(x_531, 0); -lean_inc(x_532); -if (lean_obj_tag(x_532) == 0) -{ -lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; uint8_t x_538; -x_533 = lean_ctor_get(x_531, 1); -lean_inc(x_533); -lean_dec(x_531); -lean_inc(x_513); -x_534 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_513, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_533); -x_535 = lean_ctor_get(x_534, 1); +lean_object* x_535; +x_535 = lean_ctor_get(x_534, 0); lean_inc(x_535); +if (lean_obj_tag(x_535) == 0) +{ +lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; uint8_t x_541; +x_536 = lean_ctor_get(x_534, 1); +lean_inc(x_536); lean_dec(x_534); -x_536 = lean_array_get_size(x_515); -x_537 = lean_unsigned_to_nat(0u); -x_538 = lean_nat_dec_lt(x_537, x_536); -if (x_538 == 0) +lean_inc(x_516); +x_537 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_516, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_536); +x_538 = lean_ctor_get(x_537, 1); +lean_inc(x_538); +lean_dec(x_537); +x_539 = lean_array_get_size(x_518); +x_540 = lean_unsigned_to_nat(0u); +x_541 = lean_nat_dec_lt(x_540, x_539); +if (x_541 == 0) { -lean_dec(x_536); -lean_dec(x_376); +lean_dec(x_539); +lean_dec(x_379); 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_518 = x_535; -goto block_530; +x_521 = x_538; +goto block_533; } else { -uint8_t x_539; -x_539 = lean_nat_dec_le(x_536, x_536); -if (x_539 == 0) +uint8_t x_542; +x_542 = lean_nat_dec_le(x_539, x_539); +if (x_542 == 0) { -lean_dec(x_536); -lean_dec(x_376); +lean_dec(x_539); +lean_dec(x_379); 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_518 = x_535; -goto block_530; +x_521 = x_538; +goto block_533; } else { -size_t x_540; size_t x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; -x_540 = 0; -x_541 = lean_usize_of_nat(x_536); -lean_dec(x_536); -x_542 = lean_box(0); -x_543 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedLetValue___spec__1(x_515, x_540, x_541, x_542, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_535); +size_t x_543; size_t x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; +x_543 = 0; +x_544 = lean_usize_of_nat(x_539); +lean_dec(x_539); +x_545 = lean_box(0); +x_546 = l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_markUsedLetValue___spec__1(x_518, x_543, x_544, x_545, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_538); lean_dec(x_8); -lean_dec(x_376); +lean_dec(x_379); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_544 = lean_ctor_get(x_543, 1); -lean_inc(x_544); -lean_dec(x_543); -x_518 = x_544; -goto block_530; +x_547 = lean_ctor_get(x_546, 1); +lean_inc(x_547); +lean_dec(x_546); +x_521 = x_547; +goto block_533; } } } else { -lean_object* x_545; lean_object* x_546; -lean_dec(x_517); -lean_dec(x_515); -lean_dec(x_513); -lean_dec(x_506); -lean_dec(x_505); +lean_object* x_548; lean_object* x_549; +lean_dec(x_520); +lean_dec(x_518); +lean_dec(x_516); +lean_dec(x_509); +lean_dec(x_508); lean_dec(x_1); -x_545 = lean_ctor_get(x_531, 1); -lean_inc(x_545); -lean_dec(x_531); -x_546 = lean_ctor_get(x_532, 0); -lean_inc(x_546); -lean_dec(x_532); -x_1 = x_546; -x_7 = x_376; -x_9 = x_545; +x_548 = lean_ctor_get(x_534, 1); +lean_inc(x_548); +lean_dec(x_534); +x_549 = lean_ctor_get(x_535, 0); +lean_inc(x_549); +lean_dec(x_535); +x_1 = x_549; +x_7 = x_379; +x_9 = x_548; goto _start; } } else { -lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; -lean_dec(x_517); -lean_dec(x_515); -lean_dec(x_513); -lean_dec(x_506); -lean_dec(x_505); -lean_dec(x_376); +lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +lean_dec(x_520); +lean_dec(x_518); +lean_dec(x_516); +lean_dec(x_509); +lean_dec(x_508); +lean_dec(x_379); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -22479,654 +22486,619 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_548 = lean_ctor_get(x_531, 0); -lean_inc(x_548); -x_549 = lean_ctor_get(x_531, 1); -lean_inc(x_549); -if (lean_is_exclusive(x_531)) { - lean_ctor_release(x_531, 0); - lean_ctor_release(x_531, 1); - x_550 = x_531; +x_551 = lean_ctor_get(x_534, 0); +lean_inc(x_551); +x_552 = lean_ctor_get(x_534, 1); +lean_inc(x_552); +if (lean_is_exclusive(x_534)) { + lean_ctor_release(x_534, 0); + lean_ctor_release(x_534, 1); + x_553 = x_534; } else { - lean_dec_ref(x_531); - x_550 = lean_box(0); + lean_dec_ref(x_534); + x_553 = lean_box(0); } -if (lean_is_scalar(x_550)) { - x_551 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_553)) { + x_554 = lean_alloc_ctor(1, 2, 0); } else { - x_551 = x_550; + x_554 = x_553; } -lean_ctor_set(x_551, 0, x_548); -lean_ctor_set(x_551, 1, x_549); -return x_551; +lean_ctor_set(x_554, 0, x_551); +lean_ctor_set(x_554, 1, x_552); +return x_554; } -block_530: +block_533: { -uint8_t x_519; -x_519 = lean_name_eq(x_505, x_513); -lean_dec(x_505); -if (x_519 == 0) +uint8_t x_522; +x_522 = lean_name_eq(x_508, x_516); +lean_dec(x_508); +if (x_522 == 0) { -lean_object* x_520; lean_object* x_521; lean_object* x_522; -lean_dec(x_506); +lean_object* x_523; lean_object* x_524; lean_object* x_525; +lean_dec(x_509); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_520 = x_1; + x_523 = x_1; } else { lean_dec_ref(x_1); - x_520 = lean_box(0); + x_523 = lean_box(0); } +if (lean_is_scalar(x_523)) { + x_524 = lean_alloc_ctor(3, 2, 0); +} else { + x_524 = x_523; +} +lean_ctor_set(x_524, 0, x_516); +lean_ctor_set(x_524, 1, x_518); if (lean_is_scalar(x_520)) { - x_521 = lean_alloc_ctor(3, 2, 0); + x_525 = lean_alloc_ctor(0, 2, 0); } else { - x_521 = x_520; + x_525 = x_520; } -lean_ctor_set(x_521, 0, x_513); -lean_ctor_set(x_521, 1, x_515); -if (lean_is_scalar(x_517)) { - x_522 = lean_alloc_ctor(0, 2, 0); -} else { - x_522 = x_517; -} -lean_ctor_set(x_522, 0, x_521); -lean_ctor_set(x_522, 1, x_518); -return x_522; +lean_ctor_set(x_525, 0, x_524); +lean_ctor_set(x_525, 1, x_521); +return x_525; } else { -size_t x_523; size_t x_524; uint8_t x_525; -x_523 = lean_ptr_addr(x_506); -lean_dec(x_506); -x_524 = lean_ptr_addr(x_515); -x_525 = lean_usize_dec_eq(x_523, x_524); -if (x_525 == 0) +size_t x_526; size_t x_527; uint8_t x_528; +x_526 = lean_ptr_addr(x_509); +lean_dec(x_509); +x_527 = lean_ptr_addr(x_518); +x_528 = lean_usize_dec_eq(x_526, x_527); +if (x_528 == 0) { -lean_object* x_526; lean_object* x_527; lean_object* x_528; +lean_object* x_529; lean_object* x_530; lean_object* x_531; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_526 = x_1; + x_529 = x_1; } else { lean_dec_ref(x_1); - x_526 = lean_box(0); + x_529 = lean_box(0); } -if (lean_is_scalar(x_526)) { - x_527 = lean_alloc_ctor(3, 2, 0); +if (lean_is_scalar(x_529)) { + x_530 = lean_alloc_ctor(3, 2, 0); } else { - x_527 = x_526; + x_530 = x_529; } -lean_ctor_set(x_527, 0, x_513); -lean_ctor_set(x_527, 1, x_515); -if (lean_is_scalar(x_517)) { - x_528 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_530, 0, x_516); +lean_ctor_set(x_530, 1, x_518); +if (lean_is_scalar(x_520)) { + x_531 = lean_alloc_ctor(0, 2, 0); } else { - x_528 = x_517; + x_531 = x_520; } -lean_ctor_set(x_528, 0, x_527); -lean_ctor_set(x_528, 1, x_518); -return x_528; +lean_ctor_set(x_531, 0, x_530); +lean_ctor_set(x_531, 1, x_521); +return x_531; } else { -lean_object* x_529; -lean_dec(x_515); -lean_dec(x_513); -if (lean_is_scalar(x_517)) { - x_529 = lean_alloc_ctor(0, 2, 0); +lean_object* x_532; +lean_dec(x_518); +lean_dec(x_516); +if (lean_is_scalar(x_520)) { + x_532 = lean_alloc_ctor(0, 2, 0); } else { - x_529 = x_517; + x_532 = x_520; } -lean_ctor_set(x_529, 0, x_1); -lean_ctor_set(x_529, 1, x_518); -return x_529; +lean_ctor_set(x_532, 0, x_1); +lean_ctor_set(x_532, 1, x_521); +return x_532; } } } } else { -lean_object* x_552; -lean_dec(x_506); -lean_dec(x_505); +lean_object* x_555; +lean_dec(x_509); +lean_dec(x_508); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_552 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_376, x_8, x_509); +x_555 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_379, x_8, x_512); lean_dec(x_8); -lean_dec(x_376); +lean_dec(x_379); lean_dec(x_6); lean_dec(x_5); -return x_552; +return x_555; } } case 4: { -lean_object* x_553; lean_object* x_554; lean_object* x_555; -x_553 = lean_ctor_get(x_377, 1); -lean_inc(x_553); -lean_dec(x_377); -x_554 = lean_ctor_get(x_1, 0); -lean_inc(x_554); -lean_inc(x_8); -lean_inc(x_376); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_554); -x_555 = l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(x_554, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_553); -if (lean_obj_tag(x_555) == 0) -{ -lean_object* x_556; -x_556 = lean_ctor_get(x_555, 0); +lean_object* x_556; lean_object* x_557; lean_object* x_558; +x_556 = lean_ctor_get(x_380, 1); lean_inc(x_556); -if (lean_obj_tag(x_556) == 0) -{ -lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; uint8_t x_567; lean_object* x_568; -x_557 = lean_ctor_get(x_555, 1); +lean_dec(x_380); +x_557 = lean_ctor_get(x_1, 0); lean_inc(x_557); -lean_dec(x_555); -x_558 = lean_ctor_get(x_554, 0); -lean_inc(x_558); -x_559 = lean_ctor_get(x_554, 1); -lean_inc(x_559); -x_560 = lean_ctor_get(x_554, 2); -lean_inc(x_560); -x_561 = lean_ctor_get(x_554, 3); -lean_inc(x_561); -if (lean_is_exclusive(x_554)) { - lean_ctor_release(x_554, 0); - lean_ctor_release(x_554, 1); - lean_ctor_release(x_554, 2); - lean_ctor_release(x_554, 3); - x_562 = x_554; -} else { - lean_dec_ref(x_554); - x_562 = lean_box(0); -} -x_563 = lean_st_ref_get(x_3, x_557); -x_564 = lean_ctor_get(x_563, 0); -lean_inc(x_564); -x_565 = lean_ctor_get(x_563, 1); -lean_inc(x_565); -lean_dec(x_563); -x_566 = lean_ctor_get(x_564, 0); -lean_inc(x_566); -lean_dec(x_564); -x_567 = 0; -lean_inc(x_560); -x_568 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_566, x_560, x_567); -if (lean_obj_tag(x_568) == 0) -{ -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_569 = lean_ctor_get(x_568, 0); -lean_inc(x_569); -lean_dec(x_568); -x_570 = lean_st_ref_get(x_3, x_565); -x_571 = lean_ctor_get(x_570, 0); -lean_inc(x_571); -x_572 = lean_ctor_get(x_570, 1); -lean_inc(x_572); -lean_dec(x_570); -x_573 = lean_ctor_get(x_571, 0); -lean_inc(x_573); -lean_dec(x_571); -lean_inc(x_559); -x_574 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_573, x_567, x_559); -lean_inc(x_569); -x_575 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_569, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_572); -x_576 = lean_ctor_get(x_575, 1); -lean_inc(x_576); -lean_dec(x_575); -lean_inc(x_569); -x_577 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__8), 10, 1); -lean_closure_set(x_577, 0, x_569); lean_inc(x_8); -lean_inc(x_376); +lean_inc(x_379); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); +lean_inc(x_557); +x_558 = l_Lean_Compiler_LCNF_Simp_simpCasesOnCtor_x3f(x_557, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_556); +if (lean_obj_tag(x_558) == 0) +{ +lean_object* x_559; +x_559 = lean_ctor_get(x_558, 0); +lean_inc(x_559); +if (lean_obj_tag(x_559) == 0) +{ +lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; uint8_t x_570; lean_object* x_571; +x_560 = lean_ctor_get(x_558, 1); +lean_inc(x_560); +lean_dec(x_558); +x_561 = lean_ctor_get(x_557, 0); lean_inc(x_561); -x_578 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__4(x_561, x_577, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_576); -if (lean_obj_tag(x_578) == 0) +x_562 = lean_ctor_get(x_557, 1); +lean_inc(x_562); +x_563 = lean_ctor_get(x_557, 2); +lean_inc(x_563); +x_564 = lean_ctor_get(x_557, 3); +lean_inc(x_564); +if (lean_is_exclusive(x_557)) { + lean_ctor_release(x_557, 0); + lean_ctor_release(x_557, 1); + lean_ctor_release(x_557, 2); + lean_ctor_release(x_557, 3); + x_565 = x_557; +} else { + lean_dec_ref(x_557); + x_565 = lean_box(0); +} +x_566 = lean_st_ref_get(x_3, x_560); +x_567 = lean_ctor_get(x_566, 0); +lean_inc(x_567); +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); +lean_dec(x_567); +x_570 = 0; +lean_inc(x_563); +x_571 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_569, x_563, x_570); +if (lean_obj_tag(x_571) == 0) { -lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; -x_579 = lean_ctor_get(x_578, 0); +lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; +x_572 = lean_ctor_get(x_571, 0); +lean_inc(x_572); +lean_dec(x_571); +x_573 = lean_st_ref_get(x_3, x_568); +x_574 = lean_ctor_get(x_573, 0); +lean_inc(x_574); +x_575 = lean_ctor_get(x_573, 1); +lean_inc(x_575); +lean_dec(x_573); +x_576 = lean_ctor_get(x_574, 0); +lean_inc(x_576); +lean_dec(x_574); +lean_inc(x_562); +x_577 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_576, x_570, x_562); +lean_inc(x_572); +x_578 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_572, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_575); +x_579 = lean_ctor_get(x_578, 1); lean_inc(x_579); -x_580 = lean_ctor_get(x_578, 1); -lean_inc(x_580); -if (lean_is_exclusive(x_578)) { - lean_ctor_release(x_578, 0); - lean_ctor_release(x_578, 1); - x_581 = x_578; -} else { - lean_dec_ref(x_578); - x_581 = lean_box(0); -} -x_582 = l_Lean_Compiler_LCNF_Simp_addDefaultAlt(x_579, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_580); -if (lean_obj_tag(x_582) == 0) +lean_dec(x_578); +lean_inc(x_572); +x_580 = lean_alloc_closure((void*)(l_Lean_Compiler_LCNF_Simp_simp___lambda__8), 10, 1); +lean_closure_set(x_580, 0, x_572); +lean_inc(x_8); +lean_inc(x_379); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_564); +x_581 = l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simp___spec__4(x_564, x_580, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_579); +if (lean_obj_tag(x_581) == 0) { -lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_608; lean_object* x_609; uint8_t x_620; -x_583 = lean_ctor_get(x_582, 0); +lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_582 = lean_ctor_get(x_581, 0); +lean_inc(x_582); +x_583 = lean_ctor_get(x_581, 1); lean_inc(x_583); -x_584 = lean_ctor_get(x_582, 1); -lean_inc(x_584); -if (lean_is_exclusive(x_582)) { - lean_ctor_release(x_582, 0); - lean_ctor_release(x_582, 1); - x_585 = x_582; +if (lean_is_exclusive(x_581)) { + lean_ctor_release(x_581, 0); + lean_ctor_release(x_581, 1); + x_584 = x_581; } else { - lean_dec_ref(x_582); - x_585 = lean_box(0); + lean_dec_ref(x_581); + x_584 = lean_box(0); } -x_608 = lean_array_get_size(x_583); -x_620 = lean_nat_dec_eq(x_608, x_374); -if (x_620 == 0) +x_585 = l_Lean_Compiler_LCNF_Simp_addDefaultAlt(x_582, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_583); +if (lean_obj_tag(x_585) == 0) { -lean_object* x_621; -lean_dec(x_608); -lean_dec(x_581); -x_621 = lean_box(0); -x_586 = x_621; -goto block_607; +lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_611; lean_object* x_612; uint8_t x_623; +x_586 = lean_ctor_get(x_585, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_585, 1); +lean_inc(x_587); +if (lean_is_exclusive(x_585)) { + lean_ctor_release(x_585, 0); + lean_ctor_release(x_585, 1); + x_588 = x_585; +} else { + lean_dec_ref(x_585); + x_588 = lean_box(0); } -else -{ -lean_object* x_622; uint8_t x_623; -x_622 = lean_unsigned_to_nat(0u); -x_623 = lean_nat_dec_lt(x_622, x_608); +x_611 = lean_array_get_size(x_586); +x_623 = lean_nat_dec_eq(x_611, x_377); if (x_623 == 0) { -lean_object* x_624; lean_object* x_625; -x_624 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; -x_625 = l___private_Init_GetElem_0__outOfBounds___rarg(x_624); -if (lean_obj_tag(x_625) == 0) -{ -lean_object* x_626; -lean_dec(x_625); -lean_dec(x_608); -lean_dec(x_581); -x_626 = lean_box(0); -x_586 = x_626; -goto block_607; +lean_object* x_624; +lean_dec(x_611); +lean_dec(x_584); +x_624 = lean_box(0); +x_589 = x_624; +goto block_610; } else { -lean_object* x_627; -lean_dec(x_625); -lean_dec(x_585); -lean_dec(x_574); -lean_dec(x_569); -lean_dec(x_562); -lean_dec(x_561); -lean_dec(x_560); -lean_dec(x_559); -lean_dec(x_558); -lean_dec(x_1); -x_627 = lean_box(0); -x_609 = x_627; -goto block_619; -} -} -else +lean_object* x_625; uint8_t x_626; +x_625 = lean_unsigned_to_nat(0u); +x_626 = lean_nat_dec_lt(x_625, x_611); +if (x_626 == 0) { -lean_object* x_628; -x_628 = lean_array_fget(x_583, x_622); +lean_object* x_627; lean_object* x_628; +x_627 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; +x_628 = l___private_Init_GetElem_0__outOfBounds___rarg(x_627); if (lean_obj_tag(x_628) == 0) { lean_object* x_629; lean_dec(x_628); -lean_dec(x_608); -lean_dec(x_581); +lean_dec(x_611); +lean_dec(x_584); x_629 = lean_box(0); -x_586 = x_629; -goto block_607; +x_589 = x_629; +goto block_610; } else { lean_object* x_630; lean_dec(x_628); -lean_dec(x_585); -lean_dec(x_574); -lean_dec(x_569); +lean_dec(x_588); +lean_dec(x_577); +lean_dec(x_572); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_563); lean_dec(x_562); lean_dec(x_561); -lean_dec(x_560); -lean_dec(x_559); -lean_dec(x_558); lean_dec(x_1); x_630 = lean_box(0); -x_609 = x_630; -goto block_619; +x_612 = x_630; +goto block_622; } } -} -block_607: -{ -size_t x_587; size_t x_588; uint8_t x_589; -lean_dec(x_586); -x_587 = lean_ptr_addr(x_561); -lean_dec(x_561); -x_588 = lean_ptr_addr(x_583); -x_589 = lean_usize_dec_eq(x_587, x_588); -if (x_589 == 0) -{ -lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; -lean_dec(x_560); -lean_dec(x_559); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_590 = x_1; -} else { - lean_dec_ref(x_1); - x_590 = lean_box(0); -} -if (lean_is_scalar(x_562)) { - x_591 = lean_alloc_ctor(0, 4, 0); -} else { - x_591 = x_562; -} -lean_ctor_set(x_591, 0, x_558); -lean_ctor_set(x_591, 1, x_574); -lean_ctor_set(x_591, 2, x_569); -lean_ctor_set(x_591, 3, x_583); -if (lean_is_scalar(x_590)) { - x_592 = lean_alloc_ctor(4, 1, 0); -} else { - x_592 = x_590; -} -lean_ctor_set(x_592, 0, x_591); -if (lean_is_scalar(x_585)) { - x_593 = lean_alloc_ctor(0, 2, 0); -} else { - x_593 = x_585; -} -lean_ctor_set(x_593, 0, x_592); -lean_ctor_set(x_593, 1, x_584); -return x_593; -} else { -size_t x_594; size_t x_595; uint8_t x_596; -x_594 = lean_ptr_addr(x_559); -lean_dec(x_559); -x_595 = lean_ptr_addr(x_574); -x_596 = lean_usize_dec_eq(x_594, x_595); -if (x_596 == 0) +lean_object* x_631; +x_631 = lean_array_fget(x_586, x_625); +if (lean_obj_tag(x_631) == 0) { -lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; -lean_dec(x_560); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_597 = x_1; -} else { - lean_dec_ref(x_1); - x_597 = lean_box(0); -} -if (lean_is_scalar(x_562)) { - x_598 = lean_alloc_ctor(0, 4, 0); -} else { - x_598 = x_562; -} -lean_ctor_set(x_598, 0, x_558); -lean_ctor_set(x_598, 1, x_574); -lean_ctor_set(x_598, 2, x_569); -lean_ctor_set(x_598, 3, x_583); -if (lean_is_scalar(x_597)) { - x_599 = lean_alloc_ctor(4, 1, 0); -} else { - x_599 = x_597; -} -lean_ctor_set(x_599, 0, x_598); -if (lean_is_scalar(x_585)) { - x_600 = lean_alloc_ctor(0, 2, 0); -} else { - x_600 = x_585; -} -lean_ctor_set(x_600, 0, x_599); -lean_ctor_set(x_600, 1, x_584); -return x_600; +lean_object* x_632; +lean_dec(x_631); +lean_dec(x_611); +lean_dec(x_584); +x_632 = lean_box(0); +x_589 = x_632; +goto block_610; } else { -uint8_t x_601; -x_601 = lean_name_eq(x_560, x_569); -lean_dec(x_560); -if (x_601 == 0) -{ -lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_602 = x_1; -} else { - lean_dec_ref(x_1); - x_602 = lean_box(0); -} -if (lean_is_scalar(x_562)) { - x_603 = lean_alloc_ctor(0, 4, 0); -} else { - x_603 = x_562; -} -lean_ctor_set(x_603, 0, x_558); -lean_ctor_set(x_603, 1, x_574); -lean_ctor_set(x_603, 2, x_569); -lean_ctor_set(x_603, 3, x_583); -if (lean_is_scalar(x_602)) { - x_604 = lean_alloc_ctor(4, 1, 0); -} else { - x_604 = x_602; -} -lean_ctor_set(x_604, 0, x_603); -if (lean_is_scalar(x_585)) { - x_605 = lean_alloc_ctor(0, 2, 0); -} else { - x_605 = x_585; -} -lean_ctor_set(x_605, 0, x_604); -lean_ctor_set(x_605, 1, x_584); -return x_605; -} -else -{ -lean_object* x_606; -lean_dec(x_583); -lean_dec(x_574); -lean_dec(x_569); +lean_object* x_633; +lean_dec(x_631); +lean_dec(x_588); +lean_dec(x_577); +lean_dec(x_572); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_563); lean_dec(x_562); -lean_dec(x_558); -if (lean_is_scalar(x_585)) { - x_606 = lean_alloc_ctor(0, 2, 0); -} else { - x_606 = x_585; -} -lean_ctor_set(x_606, 0, x_1); -lean_ctor_set(x_606, 1, x_584); -return x_606; +lean_dec(x_561); +lean_dec(x_1); +x_633 = lean_box(0); +x_612 = x_633; +goto block_622; } } } -} -block_619: +block_610: { -lean_object* x_610; uint8_t x_611; -lean_dec(x_609); -x_610 = lean_unsigned_to_nat(0u); -x_611 = lean_nat_dec_lt(x_610, x_608); -lean_dec(x_608); -if (x_611 == 0) +size_t x_590; size_t x_591; uint8_t x_592; +lean_dec(x_589); +x_590 = lean_ptr_addr(x_564); +lean_dec(x_564); +x_591 = lean_ptr_addr(x_586); +x_592 = lean_usize_dec_eq(x_590, x_591); +if (x_592 == 0) { -lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; -lean_dec(x_583); -x_612 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; -x_613 = l___private_Init_GetElem_0__outOfBounds___rarg(x_612); -x_614 = l_Lean_Compiler_LCNF_AltCore_getCode(x_613); -lean_dec(x_613); -if (lean_is_scalar(x_581)) { - x_615 = lean_alloc_ctor(0, 2, 0); +lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; +lean_dec(x_563); +lean_dec(x_562); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_593 = x_1; } else { - x_615 = x_581; + lean_dec_ref(x_1); + x_593 = lean_box(0); } -lean_ctor_set(x_615, 0, x_614); -lean_ctor_set(x_615, 1, x_584); -return x_615; +if (lean_is_scalar(x_565)) { + x_594 = lean_alloc_ctor(0, 4, 0); +} else { + x_594 = x_565; +} +lean_ctor_set(x_594, 0, x_561); +lean_ctor_set(x_594, 1, x_577); +lean_ctor_set(x_594, 2, x_572); +lean_ctor_set(x_594, 3, x_586); +if (lean_is_scalar(x_593)) { + x_595 = lean_alloc_ctor(4, 1, 0); +} else { + x_595 = x_593; +} +lean_ctor_set(x_595, 0, x_594); +if (lean_is_scalar(x_588)) { + x_596 = lean_alloc_ctor(0, 2, 0); +} else { + x_596 = x_588; +} +lean_ctor_set(x_596, 0, x_595); +lean_ctor_set(x_596, 1, x_587); +return x_596; } else { -lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_616 = lean_array_fget(x_583, x_610); -lean_dec(x_583); +size_t x_597; size_t x_598; uint8_t x_599; +x_597 = lean_ptr_addr(x_562); +lean_dec(x_562); +x_598 = lean_ptr_addr(x_577); +x_599 = lean_usize_dec_eq(x_597, x_598); +if (x_599 == 0) +{ +lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; +lean_dec(x_563); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_600 = x_1; +} else { + lean_dec_ref(x_1); + x_600 = lean_box(0); +} +if (lean_is_scalar(x_565)) { + x_601 = lean_alloc_ctor(0, 4, 0); +} else { + x_601 = x_565; +} +lean_ctor_set(x_601, 0, x_561); +lean_ctor_set(x_601, 1, x_577); +lean_ctor_set(x_601, 2, x_572); +lean_ctor_set(x_601, 3, x_586); +if (lean_is_scalar(x_600)) { + x_602 = lean_alloc_ctor(4, 1, 0); +} else { + x_602 = x_600; +} +lean_ctor_set(x_602, 0, x_601); +if (lean_is_scalar(x_588)) { + x_603 = lean_alloc_ctor(0, 2, 0); +} else { + x_603 = x_588; +} +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_587); +return x_603; +} +else +{ +uint8_t x_604; +x_604 = lean_name_eq(x_563, x_572); +lean_dec(x_563); +if (x_604 == 0) +{ +lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + x_605 = x_1; +} else { + lean_dec_ref(x_1); + x_605 = lean_box(0); +} +if (lean_is_scalar(x_565)) { + x_606 = lean_alloc_ctor(0, 4, 0); +} else { + x_606 = x_565; +} +lean_ctor_set(x_606, 0, x_561); +lean_ctor_set(x_606, 1, x_577); +lean_ctor_set(x_606, 2, x_572); +lean_ctor_set(x_606, 3, x_586); +if (lean_is_scalar(x_605)) { + x_607 = lean_alloc_ctor(4, 1, 0); +} else { + x_607 = x_605; +} +lean_ctor_set(x_607, 0, x_606); +if (lean_is_scalar(x_588)) { + x_608 = lean_alloc_ctor(0, 2, 0); +} else { + x_608 = x_588; +} +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_608, 1, x_587); +return x_608; +} +else +{ +lean_object* x_609; +lean_dec(x_586); +lean_dec(x_577); +lean_dec(x_572); +lean_dec(x_565); +lean_dec(x_561); +if (lean_is_scalar(x_588)) { + x_609 = lean_alloc_ctor(0, 2, 0); +} else { + x_609 = x_588; +} +lean_ctor_set(x_609, 0, x_1); +lean_ctor_set(x_609, 1, x_587); +return x_609; +} +} +} +} +block_622: +{ +lean_object* x_613; uint8_t x_614; +lean_dec(x_612); +x_613 = lean_unsigned_to_nat(0u); +x_614 = lean_nat_dec_lt(x_613, x_611); +lean_dec(x_611); +if (x_614 == 0) +{ +lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; +lean_dec(x_586); +x_615 = l___private_Lean_Compiler_LCNF_Simp_Main_0__Lean_Compiler_LCNF_Simp_oneExitPointQuick_go___closed__1; +x_616 = l___private_Init_GetElem_0__outOfBounds___rarg(x_615); x_617 = l_Lean_Compiler_LCNF_AltCore_getCode(x_616); lean_dec(x_616); -if (lean_is_scalar(x_581)) { +if (lean_is_scalar(x_584)) { x_618 = lean_alloc_ctor(0, 2, 0); } else { - x_618 = x_581; + x_618 = x_584; } lean_ctor_set(x_618, 0, x_617); -lean_ctor_set(x_618, 1, x_584); +lean_ctor_set(x_618, 1, x_587); return x_618; } +else +{ +lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_619 = lean_array_fget(x_586, x_613); +lean_dec(x_586); +x_620 = l_Lean_Compiler_LCNF_AltCore_getCode(x_619); +lean_dec(x_619); +if (lean_is_scalar(x_584)) { + x_621 = lean_alloc_ctor(0, 2, 0); +} else { + x_621 = x_584; +} +lean_ctor_set(x_621, 0, x_620); +lean_ctor_set(x_621, 1, x_587); +return x_621; +} } } else { -lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; -lean_dec(x_581); -lean_dec(x_574); -lean_dec(x_569); +lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; +lean_dec(x_584); +lean_dec(x_577); +lean_dec(x_572); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_563); lean_dec(x_562); lean_dec(x_561); -lean_dec(x_560); -lean_dec(x_559); -lean_dec(x_558); lean_dec(x_1); -x_631 = lean_ctor_get(x_582, 0); -lean_inc(x_631); -x_632 = lean_ctor_get(x_582, 1); -lean_inc(x_632); -if (lean_is_exclusive(x_582)) { - lean_ctor_release(x_582, 0); - lean_ctor_release(x_582, 1); - x_633 = x_582; -} else { - lean_dec_ref(x_582); - x_633 = lean_box(0); -} -if (lean_is_scalar(x_633)) { - x_634 = lean_alloc_ctor(1, 2, 0); -} else { - x_634 = x_633; -} -lean_ctor_set(x_634, 0, x_631); -lean_ctor_set(x_634, 1, x_632); -return x_634; -} -} -else -{ -lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; -lean_dec(x_574); -lean_dec(x_569); -lean_dec(x_562); -lean_dec(x_561); -lean_dec(x_560); -lean_dec(x_559); -lean_dec(x_558); -lean_dec(x_376); -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_635 = lean_ctor_get(x_578, 0); +x_634 = lean_ctor_get(x_585, 0); +lean_inc(x_634); +x_635 = lean_ctor_get(x_585, 1); lean_inc(x_635); -x_636 = lean_ctor_get(x_578, 1); -lean_inc(x_636); -if (lean_is_exclusive(x_578)) { - lean_ctor_release(x_578, 0); - lean_ctor_release(x_578, 1); - x_637 = x_578; +if (lean_is_exclusive(x_585)) { + lean_ctor_release(x_585, 0); + lean_ctor_release(x_585, 1); + x_636 = x_585; } else { - lean_dec_ref(x_578); - x_637 = lean_box(0); + lean_dec_ref(x_585); + x_636 = lean_box(0); } -if (lean_is_scalar(x_637)) { - x_638 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_636)) { + x_637 = lean_alloc_ctor(1, 2, 0); } else { - x_638 = x_637; + x_637 = x_636; } -lean_ctor_set(x_638, 0, x_635); -lean_ctor_set(x_638, 1, x_636); -return x_638; +lean_ctor_set(x_637, 0, x_634); +lean_ctor_set(x_637, 1, x_635); +return x_637; } } else { -lean_object* x_639; +lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; +lean_dec(x_577); +lean_dec(x_572); +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_563); lean_dec(x_562); lean_dec(x_561); -lean_dec(x_560); -lean_dec(x_559); -lean_dec(x_558); +lean_dec(x_379); +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_639 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_376, x_8, x_565); -lean_dec(x_8); -lean_dec(x_376); -lean_dec(x_6); -lean_dec(x_5); -return x_639; +x_638 = lean_ctor_get(x_581, 0); +lean_inc(x_638); +x_639 = lean_ctor_get(x_581, 1); +lean_inc(x_639); +if (lean_is_exclusive(x_581)) { + lean_ctor_release(x_581, 0); + lean_ctor_release(x_581, 1); + x_640 = x_581; +} else { + lean_dec_ref(x_581); + x_640 = lean_box(0); +} +if (lean_is_scalar(x_640)) { + x_641 = lean_alloc_ctor(1, 2, 0); +} else { + x_641 = x_640; +} +lean_ctor_set(x_641, 0, x_638); +lean_ctor_set(x_641, 1, x_639); +return x_641; } } else { -lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; -lean_dec(x_554); -lean_dec(x_376); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_642; +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_563); +lean_dec(x_562); +lean_dec(x_561); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_640 = lean_ctor_get(x_555, 1); -lean_inc(x_640); -if (lean_is_exclusive(x_555)) { - lean_ctor_release(x_555, 0); - lean_ctor_release(x_555, 1); - x_641 = x_555; -} else { - lean_dec_ref(x_555); - x_641 = lean_box(0); -} -x_642 = lean_ctor_get(x_556, 0); -lean_inc(x_642); -lean_dec(x_556); -if (lean_is_scalar(x_641)) { - x_643 = lean_alloc_ctor(0, 2, 0); -} else { - x_643 = x_641; -} -lean_ctor_set(x_643, 0, x_642); -lean_ctor_set(x_643, 1, x_640); -return x_643; +x_642 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_379, x_8, x_568); +lean_dec(x_8); +lean_dec(x_379); +lean_dec(x_6); +lean_dec(x_5); +return x_642; } } else { -lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; -lean_dec(x_554); -lean_dec(x_376); +lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; +lean_dec(x_557); +lean_dec(x_379); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -23134,205 +23106,240 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_644 = lean_ctor_get(x_555, 0); -lean_inc(x_644); -x_645 = lean_ctor_get(x_555, 1); +x_643 = lean_ctor_get(x_558, 1); +lean_inc(x_643); +if (lean_is_exclusive(x_558)) { + lean_ctor_release(x_558, 0); + lean_ctor_release(x_558, 1); + x_644 = x_558; +} else { + lean_dec_ref(x_558); + x_644 = lean_box(0); +} +x_645 = lean_ctor_get(x_559, 0); lean_inc(x_645); -if (lean_is_exclusive(x_555)) { - lean_ctor_release(x_555, 0); - lean_ctor_release(x_555, 1); - x_646 = x_555; +lean_dec(x_559); +if (lean_is_scalar(x_644)) { + x_646 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_555); - x_646 = lean_box(0); + x_646 = x_644; } -if (lean_is_scalar(x_646)) { - x_647 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_646, 0, x_645); +lean_ctor_set(x_646, 1, x_643); +return x_646; +} +} +else +{ +lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; +lean_dec(x_557); +lean_dec(x_379); +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_647 = lean_ctor_get(x_558, 0); +lean_inc(x_647); +x_648 = lean_ctor_get(x_558, 1); +lean_inc(x_648); +if (lean_is_exclusive(x_558)) { + lean_ctor_release(x_558, 0); + lean_ctor_release(x_558, 1); + x_649 = x_558; } else { - x_647 = x_646; + lean_dec_ref(x_558); + x_649 = lean_box(0); } -lean_ctor_set(x_647, 0, x_644); -lean_ctor_set(x_647, 1, x_645); -return x_647; +if (lean_is_scalar(x_649)) { + x_650 = lean_alloc_ctor(1, 2, 0); +} else { + x_650 = x_649; +} +lean_ctor_set(x_650, 0, x_647); +lean_ctor_set(x_650, 1, x_648); +return x_650; } } case 5: { -lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; uint8_t x_654; lean_object* x_655; -x_648 = lean_ctor_get(x_377, 1); -lean_inc(x_648); -lean_dec(x_377); -x_649 = lean_ctor_get(x_1, 0); -lean_inc(x_649); -x_650 = lean_st_ref_get(x_3, x_648); -x_651 = lean_ctor_get(x_650, 0); +lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; uint8_t x_657; lean_object* x_658; +x_651 = lean_ctor_get(x_380, 1); lean_inc(x_651); -x_652 = lean_ctor_get(x_650, 1); +lean_dec(x_380); +x_652 = lean_ctor_get(x_1, 0); lean_inc(x_652); -lean_dec(x_650); -x_653 = lean_ctor_get(x_651, 0); -lean_inc(x_653); -lean_dec(x_651); -x_654 = 0; -lean_inc(x_649); -x_655 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_653, x_649, x_654); -if (lean_obj_tag(x_655) == 0) +x_653 = lean_st_ref_get(x_3, x_651); +x_654 = lean_ctor_get(x_653, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_653, 1); +lean_inc(x_655); +lean_dec(x_653); +x_656 = lean_ctor_get(x_654, 0); +lean_inc(x_656); +lean_dec(x_654); +x_657 = 0; +lean_inc(x_652); +x_658 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normFVarImp(x_656, x_652, x_657); +if (lean_obj_tag(x_658) == 0) { -lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; uint8_t x_660; -x_656 = lean_ctor_get(x_655, 0); -lean_inc(x_656); -lean_dec(x_655); -lean_inc(x_656); -x_657 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_656, x_2, x_3, x_4, x_5, x_6, x_376, x_8, x_652); +lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; uint8_t x_663; +x_659 = lean_ctor_get(x_658, 0); +lean_inc(x_659); +lean_dec(x_658); +lean_inc(x_659); +x_660 = l_Lean_Compiler_LCNF_Simp_markUsedFVar(x_659, x_2, x_3, x_4, x_5, x_6, x_379, x_8, x_655); lean_dec(x_8); -lean_dec(x_376); +lean_dec(x_379); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_658 = lean_ctor_get(x_657, 1); -lean_inc(x_658); -if (lean_is_exclusive(x_657)) { - lean_ctor_release(x_657, 0); - lean_ctor_release(x_657, 1); - x_659 = x_657; +x_661 = lean_ctor_get(x_660, 1); +lean_inc(x_661); +if (lean_is_exclusive(x_660)) { + lean_ctor_release(x_660, 0); + lean_ctor_release(x_660, 1); + x_662 = x_660; } else { - lean_dec_ref(x_657); - x_659 = lean_box(0); + lean_dec_ref(x_660); + x_662 = lean_box(0); } -x_660 = lean_name_eq(x_649, x_656); -lean_dec(x_649); -if (x_660 == 0) +x_663 = lean_name_eq(x_652, x_659); +lean_dec(x_652); +if (x_663 == 0) { -lean_object* x_661; lean_object* x_662; lean_object* x_663; +lean_object* x_664; lean_object* x_665; lean_object* x_666; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_661 = x_1; + x_664 = x_1; } else { lean_dec_ref(x_1); - x_661 = lean_box(0); + x_664 = lean_box(0); } -if (lean_is_scalar(x_661)) { - x_662 = lean_alloc_ctor(5, 1, 0); +if (lean_is_scalar(x_664)) { + x_665 = lean_alloc_ctor(5, 1, 0); } else { - x_662 = x_661; + x_665 = x_664; } -lean_ctor_set(x_662, 0, x_656); -if (lean_is_scalar(x_659)) { - x_663 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_665, 0, x_659); +if (lean_is_scalar(x_662)) { + x_666 = lean_alloc_ctor(0, 2, 0); } else { - x_663 = x_659; + x_666 = x_662; } -lean_ctor_set(x_663, 0, x_662); -lean_ctor_set(x_663, 1, x_658); -return x_663; +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_661); +return x_666; } else { -lean_object* x_664; -lean_dec(x_656); -if (lean_is_scalar(x_659)) { - x_664 = lean_alloc_ctor(0, 2, 0); +lean_object* x_667; +lean_dec(x_659); +if (lean_is_scalar(x_662)) { + x_667 = lean_alloc_ctor(0, 2, 0); } else { - x_664 = x_659; + x_667 = x_662; } -lean_ctor_set(x_664, 0, x_1); -lean_ctor_set(x_664, 1, x_658); -return x_664; +lean_ctor_set(x_667, 0, x_1); +lean_ctor_set(x_667, 1, x_661); +return x_667; } } else { -lean_object* x_665; -lean_dec(x_649); +lean_object* x_668; +lean_dec(x_652); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_665 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_376, x_8, x_652); +x_668 = l_Lean_Compiler_LCNF_mkReturnErased(x_5, x_6, x_379, x_8, x_655); lean_dec(x_8); -lean_dec(x_376); +lean_dec(x_379); lean_dec(x_6); lean_dec(x_5); -return x_665; +return x_668; } } default: { -lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; uint8_t x_673; lean_object* x_674; size_t x_675; size_t x_676; uint8_t x_677; -lean_dec(x_376); +lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; uint8_t x_676; lean_object* x_677; size_t x_678; size_t x_679; uint8_t x_680; +lean_dec(x_379); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_666 = lean_ctor_get(x_377, 1); -lean_inc(x_666); -lean_dec(x_377); -x_667 = lean_ctor_get(x_1, 0); -lean_inc(x_667); -x_668 = lean_st_ref_get(x_3, x_666); -lean_dec(x_3); -x_669 = lean_ctor_get(x_668, 0); +x_669 = lean_ctor_get(x_380, 1); lean_inc(x_669); -x_670 = lean_ctor_get(x_668, 1); +lean_dec(x_380); +x_670 = lean_ctor_get(x_1, 0); lean_inc(x_670); -if (lean_is_exclusive(x_668)) { - lean_ctor_release(x_668, 0); - lean_ctor_release(x_668, 1); - x_671 = x_668; -} else { - lean_dec_ref(x_668); - x_671 = lean_box(0); -} -x_672 = lean_ctor_get(x_669, 0); +x_671 = lean_st_ref_get(x_3, x_669); +lean_dec(x_3); +x_672 = lean_ctor_get(x_671, 0); lean_inc(x_672); -lean_dec(x_669); -x_673 = 0; -lean_inc(x_667); -x_674 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_672, x_673, x_667); -x_675 = lean_ptr_addr(x_667); -lean_dec(x_667); -x_676 = lean_ptr_addr(x_674); -x_677 = lean_usize_dec_eq(x_675, x_676); -if (x_677 == 0) +x_673 = lean_ctor_get(x_671, 1); +lean_inc(x_673); +if (lean_is_exclusive(x_671)) { + lean_ctor_release(x_671, 0); + lean_ctor_release(x_671, 1); + x_674 = x_671; +} else { + lean_dec_ref(x_671); + x_674 = lean_box(0); +} +x_675 = lean_ctor_get(x_672, 0); +lean_inc(x_675); +lean_dec(x_672); +x_676 = 0; +lean_inc(x_670); +x_677 = l___private_Lean_Compiler_LCNF_CompilerM_0__Lean_Compiler_LCNF_normExprImp_go(x_675, x_676, x_670); +x_678 = lean_ptr_addr(x_670); +lean_dec(x_670); +x_679 = lean_ptr_addr(x_677); +x_680 = lean_usize_dec_eq(x_678, x_679); +if (x_680 == 0) { -lean_object* x_678; lean_object* x_679; lean_object* x_680; +lean_object* x_681; lean_object* x_682; lean_object* x_683; if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_678 = x_1; + x_681 = x_1; } else { lean_dec_ref(x_1); - x_678 = lean_box(0); + x_681 = lean_box(0); } -if (lean_is_scalar(x_678)) { - x_679 = lean_alloc_ctor(6, 1, 0); +if (lean_is_scalar(x_681)) { + x_682 = lean_alloc_ctor(6, 1, 0); } else { - x_679 = x_678; + x_682 = x_681; } -lean_ctor_set(x_679, 0, x_674); -if (lean_is_scalar(x_671)) { - x_680 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_682, 0, x_677); +if (lean_is_scalar(x_674)) { + x_683 = lean_alloc_ctor(0, 2, 0); } else { - x_680 = x_671; + x_683 = x_674; } -lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_670); -return x_680; +lean_ctor_set(x_683, 0, x_682); +lean_ctor_set(x_683, 1, x_673); +return x_683; } else { -lean_object* x_681; -lean_dec(x_674); -if (lean_is_scalar(x_671)) { - x_681 = lean_alloc_ctor(0, 2, 0); +lean_object* x_684; +lean_dec(x_677); +if (lean_is_scalar(x_674)) { + x_684 = lean_alloc_ctor(0, 2, 0); } else { - x_681 = x_671; + x_684 = x_674; } -lean_ctor_set(x_681, 0, x_1); -lean_ctor_set(x_681, 1, x_670); -return x_681; +lean_ctor_set(x_684, 0, x_1); +lean_ctor_set(x_684, 1, x_673); +return x_684; } } } @@ -23340,7 +23347,8 @@ return x_681; } else { -lean_object* x_682; +lean_object* x_685; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -23353,8 +23361,8 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_682 = l_Lean_Compiler_LCNF_Simp_withIncRecDepth_throwMaxRecDepth___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_682; +x_685 = l_Lean_Compiler_LCNF_Simp_withIncRecDepth_throwMaxRecDepth___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_685; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Simp/SimpM.c b/stage0/stdlib/Lean/Compiler/LCNF/Simp/SimpM.c index 34d830bdb2..12e8c9d694 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Simp/SimpM.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Simp/SimpM.c @@ -4282,7 +4282,7 @@ return x_10; lean_object* l_Lean_Compiler_LCNF_Simp_withIncRecDepth___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_object* x_9) { _start: { -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; uint8_t x_21; uint8_t x_22; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -4305,71 +4305,79 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); -lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = lean_apply_8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_37; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_7); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); +lean_dec(x_37); x_38 = lean_unsigned_to_nat(1u); x_39 = lean_nat_add(x_13, x_38); lean_dec(x_13); -x_40 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_40, 0, x_10); -lean_ctor_set(x_40, 1, x_11); -lean_ctor_set(x_40, 2, x_12); -lean_ctor_set(x_40, 3, x_39); -lean_ctor_set(x_40, 4, x_14); -lean_ctor_set(x_40, 5, x_15); -lean_ctor_set(x_40, 6, x_16); -lean_ctor_set(x_40, 7, x_17); -lean_ctor_set(x_40, 8, x_18); -lean_ctor_set(x_40, 9, x_19); -lean_ctor_set(x_40, 10, x_20); -lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_21); -x_41 = lean_apply_8(x_1, x_2, x_3, x_4, x_5, x_6, x_40, x_8, x_9); -return x_41; +lean_ctor_set(x_7, 3, x_39); +x_40 = lean_apply_8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_7); +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_13, x_41); +lean_dec(x_13); +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_10); +lean_ctor_set(x_43, 1, x_11); +lean_ctor_set(x_43, 2, x_12); +lean_ctor_set(x_43, 3, x_42); +lean_ctor_set(x_43, 4, x_14); +lean_ctor_set(x_43, 5, x_15); +lean_ctor_set(x_43, 6, x_16); +lean_ctor_set(x_43, 7, x_17); +lean_ctor_set(x_43, 8, x_18); +lean_ctor_set(x_43, 9, x_19); +lean_ctor_set(x_43, 10, x_20); +lean_ctor_set(x_43, 11, x_22); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_23); +x_44 = lean_apply_8(x_1, x_2, x_3, x_4, x_5, x_6, x_43, x_8, x_9); +return x_44; } } else { -lean_object* x_42; +lean_object* x_45; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -4382,8 +4390,8 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_42 = l_Lean_Compiler_LCNF_Simp_withIncRecDepth_throwMaxRecDepth___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_42; +x_45 = l_Lean_Compiler_LCNF_Simp_withIncRecDepth_throwMaxRecDepth___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_45; } } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c b/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c index d5c334fd87..509abf2c6b 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/ToLCNF.c @@ -14212,7 +14212,7 @@ return x_89; lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore(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; uint8_t x_19; uint8_t x_20; +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; uint8_t x_21; uint8_t x_22; x_8 = lean_ctor_get(x_5, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_5, 1); @@ -14235,188 +14235,196 @@ x_17 = lean_ctor_get(x_5, 9); lean_inc(x_17); x_18 = lean_ctor_get(x_5, 10); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -x_20 = lean_nat_dec_eq(x_11, x_12); -if (x_20 == 0) +x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_20 = lean_ctor_get(x_5, 11); +lean_inc(x_20); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +x_22 = lean_nat_dec_eq(x_11, x_12); +if (x_22 == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_5); -if (x_21 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_5); +if (x_23 == 0) { -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; -x_22 = lean_ctor_get(x_5, 10); -lean_dec(x_22); -x_23 = lean_ctor_get(x_5, 9); -lean_dec(x_23); -x_24 = lean_ctor_get(x_5, 8); +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; uint8_t x_39; +x_24 = lean_ctor_get(x_5, 11); lean_dec(x_24); -x_25 = lean_ctor_get(x_5, 7); +x_25 = lean_ctor_get(x_5, 10); lean_dec(x_25); -x_26 = lean_ctor_get(x_5, 6); +x_26 = lean_ctor_get(x_5, 9); lean_dec(x_26); -x_27 = lean_ctor_get(x_5, 5); +x_27 = lean_ctor_get(x_5, 8); lean_dec(x_27); -x_28 = lean_ctor_get(x_5, 4); +x_28 = lean_ctor_get(x_5, 7); lean_dec(x_28); -x_29 = lean_ctor_get(x_5, 3); +x_29 = lean_ctor_get(x_5, 6); lean_dec(x_29); -x_30 = lean_ctor_get(x_5, 2); +x_30 = lean_ctor_get(x_5, 5); lean_dec(x_30); -x_31 = lean_ctor_get(x_5, 1); +x_31 = lean_ctor_get(x_5, 4); lean_dec(x_31); -x_32 = lean_ctor_get(x_5, 0); +x_32 = lean_ctor_get(x_5, 3); lean_dec(x_32); -x_33 = lean_unsigned_to_nat(1u); -x_34 = lean_nat_add(x_11, x_33); -lean_dec(x_11); -lean_ctor_set(x_5, 3, x_34); -x_35 = lean_st_ref_get(x_2, x_7); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_1); -x_40 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_39, x_1); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; -lean_free_object(x_35); -x_41 = lean_box(0); -x_42 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_41, x_2, x_3, x_4, x_5, x_6, x_38); -return x_42; -} -else -{ -lean_object* x_43; -lean_dec(x_5); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_43 = lean_ctor_get(x_40, 0); -lean_inc(x_43); -lean_dec(x_40); -lean_ctor_set(x_35, 0, x_43); -return x_35; -} -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_35, 0); -x_45 = lean_ctor_get(x_35, 1); -lean_inc(x_45); -lean_inc(x_44); +x_33 = lean_ctor_get(x_5, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_5, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_5, 0); lean_dec(x_35); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_1); -x_47 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_46, x_1); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_box(0); -x_49 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_48, x_2, x_3, x_4, x_5, x_6, x_45); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; -lean_dec(x_5); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_50 = lean_ctor_get(x_47, 0); -lean_inc(x_50); -lean_dec(x_47); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_45); -return x_51; -} -} -} -else -{ -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_dec(x_5); -x_52 = lean_unsigned_to_nat(1u); -x_53 = lean_nat_add(x_11, x_52); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_11, x_36); lean_dec(x_11); -x_54 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_54, 0, x_8); -lean_ctor_set(x_54, 1, x_9); -lean_ctor_set(x_54, 2, x_10); -lean_ctor_set(x_54, 3, x_53); -lean_ctor_set(x_54, 4, x_12); -lean_ctor_set(x_54, 5, x_13); -lean_ctor_set(x_54, 6, x_14); -lean_ctor_set(x_54, 7, x_15); -lean_ctor_set(x_54, 8, x_16); -lean_ctor_set(x_54, 9, x_17); -lean_ctor_set(x_54, 10, x_18); -lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_19); -x_55 = lean_st_ref_get(x_2, x_7); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_58 = x_55; -} else { - lean_dec_ref(x_55); - x_58 = lean_box(0); -} -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -lean_inc(x_1); -x_60 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_59, x_1); -if (lean_obj_tag(x_60) == 0) +lean_ctor_set(x_5, 3, x_37); +x_38 = lean_st_ref_get(x_2, x_7); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_61; lean_object* x_62; -lean_dec(x_58); -x_61 = lean_box(0); -x_62 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_61, x_2, x_3, x_4, x_54, x_6, x_57); -return x_62; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_1); +x_43 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_42, x_1); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_free_object(x_38); +x_44 = lean_box(0); +x_45 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_44, x_2, x_3, x_4, x_5, x_6, x_41); +return x_45; } else { -lean_object* x_63; lean_object* x_64; -lean_dec(x_54); +lean_object* x_46; +lean_dec(x_5); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec(x_60); -if (lean_is_scalar(x_58)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_58; +x_46 = lean_ctor_get(x_43, 0); +lean_inc(x_46); +lean_dec(x_43); +lean_ctor_set(x_38, 0, x_46); +return x_38; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_57); -return x_64; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_38, 0); +x_48 = lean_ctor_get(x_38, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_38); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +lean_inc(x_1); +x_50 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_49, x_1); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_box(0); +x_52 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_51, x_2, x_3, x_4, x_5, x_6, x_48); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_5); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_ctor_get(x_50, 0); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_48); +return x_54; } } } else { -lean_object* x_65; +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_dec(x_5); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_add(x_11, x_55); +lean_dec(x_11); +x_57 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_57, 0, x_8); +lean_ctor_set(x_57, 1, x_9); +lean_ctor_set(x_57, 2, x_10); +lean_ctor_set(x_57, 3, x_56); +lean_ctor_set(x_57, 4, x_12); +lean_ctor_set(x_57, 5, x_13); +lean_ctor_set(x_57, 6, x_14); +lean_ctor_set(x_57, 7, x_15); +lean_ctor_set(x_57, 8, x_16); +lean_ctor_set(x_57, 9, x_17); +lean_ctor_set(x_57, 10, x_18); +lean_ctor_set(x_57, 11, x_20); +lean_ctor_set_uint8(x_57, sizeof(void*)*12, x_19); +lean_ctor_set_uint8(x_57, sizeof(void*)*12 + 1, x_21); +x_58 = lean_st_ref_get(x_2, x_7); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +lean_inc(x_1); +x_63 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__6(x_62, x_1); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_61); +x_64 = lean_box(0); +x_65 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___lambda__2(x_1, x_64, x_2, x_3, x_4, x_57, x_6, x_60); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_57); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_66 = lean_ctor_get(x_63, 0); +lean_inc(x_66); +lean_dec(x_63); +if (lean_is_scalar(x_61)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_61; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_60); +return x_67; +} +} +} +else +{ +lean_object* x_68; +lean_dec(x_20); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -14428,13 +14436,13 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_65 = l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9(x_13, x_2, x_3, x_4, x_5, x_6, x_7); +x_68 = l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9(x_13, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_65; +return x_68; } } } @@ -15051,7 +15059,7 @@ return x_57; lean_object* l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit(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; 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; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_8 = l_Lean_Compiler_LCNF_ToLCNF_isLCProof(x_1); x_9 = lean_ctor_get(x_5, 0); lean_inc(x_9); @@ -15075,126 +15083,94 @@ x_18 = lean_ctor_get(x_5, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_5, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_21 = lean_ctor_get(x_5, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); if (x_8 == 0) { -if (x_21 == 0) +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_5); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_5); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_23 = lean_ctor_get(x_5, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_5, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_5, 8); +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; +x_25 = lean_ctor_get(x_5, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_5, 7); +x_26 = lean_ctor_get(x_5, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_5, 6); +x_27 = lean_ctor_get(x_5, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_5, 5); +x_28 = lean_ctor_get(x_5, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_5, 4); +x_29 = lean_ctor_get(x_5, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_5, 3); +x_30 = lean_ctor_get(x_5, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_5, 1); +x_32 = lean_ctor_get(x_5, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_5, 0); +x_33 = lean_ctor_get(x_5, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); +x_34 = lean_ctor_get(x_5, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_5, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_5, 0); +lean_dec(x_36); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); lean_dec(x_12); -lean_ctor_set(x_5, 3, x_35); -x_36 = lean_box(0); -x_37 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit___lambda__3(x_1, x_36, x_2, x_3, x_4, x_5, x_6, x_7); -return x_37; +lean_ctor_set(x_5, 3, x_38); +x_39 = lean_box(0); +x_40 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit___lambda__3(x_1, x_39, x_2, x_3, x_4, x_5, x_6, x_7); +return x_40; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_dec(x_5); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_12, x_38); +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_12, x_41); lean_dec(x_12); -x_40 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_40, 0, x_9); -lean_ctor_set(x_40, 1, x_10); -lean_ctor_set(x_40, 2, x_11); -lean_ctor_set(x_40, 3, x_39); -lean_ctor_set(x_40, 4, x_13); -lean_ctor_set(x_40, 5, x_14); -lean_ctor_set(x_40, 6, x_15); -lean_ctor_set(x_40, 7, x_16); -lean_ctor_set(x_40, 8, x_17); -lean_ctor_set(x_40, 9, x_18); -lean_ctor_set(x_40, 10, x_19); -lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_20); -x_41 = lean_box(0); -x_42 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit___lambda__3(x_1, x_41, x_2, x_3, x_4, x_40, x_6, x_7); -return x_42; -} -} -else -{ -lean_object* x_43; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_1); -x_43 = l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9(x_14, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_43; -} -} -else -{ -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_1); -if (x_21 == 0) -{ -lean_object* x_44; lean_object* x_45; -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_9); +lean_ctor_set(x_43, 1, x_10); +lean_ctor_set(x_43, 2, x_11); +lean_ctor_set(x_43, 3, x_42); +lean_ctor_set(x_43, 4, x_13); +lean_ctor_set(x_43, 5, x_14); +lean_ctor_set(x_43, 6, x_15); +lean_ctor_set(x_43, 7, x_16); +lean_ctor_set(x_43, 8, x_17); +lean_ctor_set(x_43, 9, x_18); +lean_ctor_set(x_43, 10, x_19); +lean_ctor_set(x_43, 11, x_21); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_22); x_44 = lean_box(0); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_7); +x_45 = l_Lean_Compiler_LCNF_ToLCNF_toLCNF_visit___lambda__3(x_1, x_44, x_2, x_3, x_4, x_43, x_6, x_7); return x_45; } +} else { lean_object* x_46; +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); x_46 = l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9(x_14, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); @@ -15204,6 +15180,47 @@ lean_dec(x_2); return x_46; } } +else +{ +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); +if (x_23 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_47 = lean_box(0); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_7); +return x_48; +} +else +{ +lean_object* x_49; +x_49 = l_Lean_throwMaxRecDepthAt___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitCore___spec__9(x_14, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_49; +} +} } } LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Compiler_LCNF_ToLCNF_toLCNF_visitLambda___spec__1___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) { diff --git a/stage0/stdlib/Lean/Compiler/Specialize.c b/stage0/stdlib/Lean/Compiler/Specialize.c index e3121ec04d..64a0c7d8f4 100644 --- a/stage0/stdlib/Lean/Compiler/Specialize.c +++ b/stage0/stdlib/Lean/Compiler/Specialize.c @@ -649,7 +649,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -661,7 +661,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -674,24 +677,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } @@ -814,7 +819,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -826,7 +831,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -839,28 +847,30 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_elabSpecArgs___spec__7(x_2, x_3, x_4, x_25, x_6, x_7); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at___private_Lean_Compiler_Specialize_0__Lean_Compiler_elabSpecArgs___spec__7(x_2, x_3, x_4, x_27, x_6, x_7); lean_dec(x_6); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } } diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index eb63852ccd..e522f18d74 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.CoreM -// Imports: Lean.Util.RecDepth Lean.Util.Trace Lean.Log Lean.Eval Lean.ResolveName Lean.Elab.InfoTree.Types Lean.MonadEnv +// Imports: Lean.Util.RecDepth Lean.Util.Trace Lean.Log Lean.Eval Lean.ResolveName Lean.Elab.InfoTree.Types Lean.MonadEnv Lean.Elab.Exception #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -49,19 +49,18 @@ LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_compileDecl___spec size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_List_elem___at_Lean_catchInternalIds___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Core_instMetaEvalCoreM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_checkInterrupted___closed__1; static lean_object* l_Lean_ImportM_runCoreM___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_getAndEmptyMessageLog(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_useDiagnosticMsg___closed__3; -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadTraceCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__9; static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__4; lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); uint8_t l_Lean_Exception_isMaxRecDepth(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM(lean_object*); -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5; -lean_object* lean_io_check_canceled(lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadResolveNameCoreM___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__1; @@ -72,32 +71,35 @@ LEAN_EXPORT lean_object* l_Lean_Core_instantiateTypeLevelParams(lean_object*, le uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3; double lean_float_div(double, double); +LEAN_EXPORT lean_object* l_Lean_Core_saveState___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withCurrHeartbeats(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_checkSystem___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_CoreM_0__Lean_checkUnsupported___rarg(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); +static lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Lean_Core_CoreM_run(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instInhabitedCoreM___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__3; LEAN_EXPORT lean_object* l_Lean_Core_instMonadTraceCoreM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_Cache_instLevelType___default; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Core_instMonadRefCoreM; -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth(lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadInfoTreeCoreM___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_instMonadResolveNameCoreM; static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__14; +LEAN_EXPORT lean_object* l_Lean_Core_saveState___boxed(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__1(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*); static lean_object* l_Lean_Core_getMaxHeartbeats___closed__1; -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2; static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_80____closed__5; LEAN_EXPORT lean_object* l_Lean_Core_instMonadRecDepthCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_getMessageLog___rarg(lean_object*, lean_object*); @@ -118,6 +120,7 @@ static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__ LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_liftIOCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -126,6 +129,7 @@ static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__9; LEAN_EXPORT lean_object* l_Lean_Core_liftIOCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM; static lean_object* l_Lean_instMonadExceptOfExceptionCoreM___closed__3; +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2; lean_object* l_Lean_ConstantInfo_name(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__3___closed__1; static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__2; @@ -151,24 +155,24 @@ lean_object* lean_io_get_num_heartbeats(lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__1; lean_object* lean_lcnf_compile_decls(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_saveState(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_tryCatchRuntimeEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__3(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_instMonad(lean_object*, lean_object*); static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__7; -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3; LEAN_EXPORT lean_object* l_Lean_compileDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_mkFreshUserName___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepth; static size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Core_instantiateTypeLevelParams___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790_(lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_instMonadRecDepthCoreM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Core_instantiateTypeLevelParams___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Core_instantiateTypeLevelParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Core_instantiateTypeLevelParams___spec__6___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Core_checkInterrupted___rarg___closed__3; static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__14; LEAN_EXPORT lean_object* l_Lean_Core_getAndEmptyMessageLog___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalId___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -176,6 +180,7 @@ static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Core_instMetaEvalCoreM___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Core_instantiateTypeLevelParams___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5; LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadRefCoreM___closed__1; lean_object* l_Lean_Environment_compileDecl(lean_object*, lean_object*, lean_object*); @@ -209,12 +214,13 @@ static lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambd LEAN_EXPORT lean_object* l_Lean_Core_modifyInstLevelTypeCache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_tryCatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_80____closed__6; -static lean_object* l_Lean_Core_checkInterrupted___rarg___closed__1; +static lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__15; static lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_modifyInstLevelValueCache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadQuotationCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6; LEAN_EXPORT lean_object* l_List_beq___at_Lean_Core_instantiateTypeLevelParams___spec__8___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -226,7 +232,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalId___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_useDiagnosticMsg___closed__5; static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__25; -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_State_ngen___default; LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__1(lean_object*, lean_object*, lean_object*); @@ -240,13 +245,19 @@ LEAN_EXPORT lean_object* l_Lean_Core_instantiateValueLevelParams(lean_object*, l static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__2; LEAN_EXPORT lean_object* l_Lean_Core_instMonadRecDepthCoreM; lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* lean_io_add_heartbeats(uint64_t, lean_object*); static lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__2; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_compileDecl___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__29; +LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786_(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Core_instMonadLogCoreM___lambda__5(lean_object*); static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4; +lean_object* l_Lean_registerInternalExceptionId(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_Context_openDecls___default; +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3; LEAN_EXPORT lean_object* l_Lean_Core_instMonadRefCoreM___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportM_runCoreM___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__3___boxed(lean_object*, lean_object*, lean_object*); @@ -257,11 +268,9 @@ static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__7; LEAN_EXPORT lean_object* l_Lean_Core_Context_currRecDepth___default; static lean_object* l_Lean_Core_instInhabitedCoreM___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4; LEAN_EXPORT lean_object* l_Lean_Core_tryCatchRuntimeEx(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Core_instantiateTypeLevelParams___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Core_State_ngen___default___closed__1; @@ -270,6 +279,7 @@ static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_41____closed__4; LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_compileDecl___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__20; static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_41____closed__2; +static lean_object* l_Lean_Core_State_messages___default___closed__1; lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__2; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_compileDecl___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -283,14 +293,17 @@ static lean_object* l_Lean_Core_instMonadQuotationCoreM___closed__1; static lean_object* l_Lean_Core_instMonadTraceCoreM___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_catchInternalId(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___rarg(lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__21; LEAN_EXPORT lean_object* l_Lean_Core_instantiateValueLevelParams___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__1; +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_State_cache___default; LEAN_EXPORT lean_object* l_Lean_Core_Cache_instLevelValue___default; +static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadTraceCoreM___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -303,7 +316,7 @@ lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___ static lean_object* l_Lean_Core_instMonadNameGeneratorCoreM___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Core_instantiateTypeLevelParams___spec__6(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted(lean_object*, lean_object*, lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); static lean_object* l_Lean_Core_Cache_instLevelType___default___closed__3; static lean_object* l_Lean_Core_Cache_instLevelType___default___closed__1; @@ -312,6 +325,7 @@ static lean_object* l_Lean_Core_Cache_instLevelType___default___closed__2; static lean_object* l_Lean_ImportM_runCoreM___rarg___closed__1; static lean_object* l_Lean_Core_instMonadLogCoreM___closed__3; LEAN_EXPORT lean_object* l_Lean_Core_CoreM_run_x27(lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5; LEAN_EXPORT lean_object* l_Lean_Core_State_infoState___default; static lean_object* l_Lean_Core_instMonadInfoTreeCoreM___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Core_instMetaEvalCoreM___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -328,7 +342,6 @@ static lean_object* l_Lean_Core_State_ngen___default___closed__2; static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__3; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static uint8_t l_Lean_ImportM_runCoreM___rarg___closed__3; -static lean_object* l_Lean_Core_checkInterrupted___rarg___closed__4; static lean_object* l_Lean_instMonadExceptOfExceptionCoreM___closed__2; LEAN_EXPORT lean_object* l_Lean_getDiag___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM; @@ -356,11 +369,13 @@ LEAN_EXPORT lean_object* l_Lean_diagnostics; LEAN_EXPORT lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Core_instMetaEvalCoreM___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___closed__3; -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_compileDecl___spec__4___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_compileDecl___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instantiateValueLevelParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_compileDecls(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_CoreM_toIO(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_Context_maxHeartbeats___default(lean_object*); @@ -393,42 +408,43 @@ LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_L static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__28; lean_object* l_IO_println___at_Lean_instEvalOfRepr___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_compileDeclsNew___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__19; LEAN_EXPORT lean_object* l_Lean_catchInternalIds___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_getMessageLog(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_tryCatch(lean_object*); static lean_object* l_Lean_mkArrow___closed__2; LEAN_EXPORT lean_object* l_Lean_compileDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadQuotationCoreM___lambda__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_interruptExceptionId; static lean_object* l_Lean_Core_State_infoState___default___closed__2; static lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531_(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__3___closed__2; lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); static lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__4; -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2; static lean_object* l_Lean_useDiagnosticMsg___closed__2; -LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instantiateValueLevelParams___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_catchInternalIds___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__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_Lean_withTraceNode___at_Lean_compileDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_CoreM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadLogCoreM___closed__4; static lean_object* l_Lean_useDiagnosticMsg___closed__4; +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withAtLeastMaxRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadRefCoreM___closed__2; static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_Context_cancelTk_x3f___default; LEAN_EXPORT lean_object* l_Lean_Core_resetMessageLog___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_State_infoState___default___closed__1; -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6; -static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6; LEAN_EXPORT lean_object* l_Lean_Core_modifyInstLevelValueCache(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__6; LEAN_EXPORT lean_object* l_Lean_Core_modifyCache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -437,7 +453,6 @@ static lean_object* l_Lean_Core_State_ngen___default___closed__3; static lean_object* l_Lean_compileDecl___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Core_instMetaEvalCoreM___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1; lean_object* lean_environment_main_module(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadQuotationCoreM___lambda__2(lean_object*, lean_object*, lean_object*); static double l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__4___closed__5; @@ -458,6 +473,7 @@ lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*) LEAN_EXPORT lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadLogCoreM___closed__5; LEAN_EXPORT lean_object* l_Lean_Core_checkMaxHeartbeatsCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_compileDecl___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_String_isPrefixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_compileDecl___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); @@ -471,6 +487,7 @@ LEAN_EXPORT lean_object* l_Lean_Core_instMonadCoreM___lambda__1(lean_object*, le static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__11; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_41_(lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__18; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_State_nextMacroScope___default; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_compileDecl___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadInfoTreeCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -478,6 +495,7 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_compileDecl___spec__2(le LEAN_EXPORT lean_object* l_Lean_Core_modifyCache(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4; LEAN_EXPORT lean_object* l_Lean_Core_modifyInstLevelTypeCache(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__10; LEAN_EXPORT uint8_t l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__1(lean_object*, lean_object*); @@ -490,7 +508,6 @@ LEAN_EXPORT lean_object* l_Lean_Core_Context_maxRecDepth___default; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Core_instMetaEvalCoreM___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_compileDecl___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Core_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Core_instMonadCoreM___closed__3; static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__1; LEAN_EXPORT lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -498,7 +515,7 @@ lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Core_instMetaEvalCoreM___spec__4___boxed(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*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadCoreM; -static lean_object* l_Lean_Core_checkInterrupted___rarg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Core_saveState___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__8; static lean_object* l_Lean_Core_instMonadCoreM___closed__6; static lean_object* l_Lean_Core_State_traceState___default___closed__2; @@ -522,10 +539,12 @@ LEAN_EXPORT lean_object* l_Lean_Core_CoreM_toIO___rarg(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_ImportM_runCoreM___rarg___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_instMonadRuntimeExceptionReaderT___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withFreshMacroScope(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Exception_isInterrupt___boxed(lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_80____closed__3; LEAN_EXPORT lean_object* l_Lean_Core_instMonadResolveNameCoreM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_mkArrowN___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2; LEAN_EXPORT lean_object* l_Lean_Core_instMonadWithOptionsCoreM(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_CoreM_0__Lean_checkUnsupported___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instMonadRuntimeExceptionCoreM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -546,8 +565,11 @@ extern lean_object* l_Lean_trace_profiler; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_compileDecl___spec__4___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Core_instMetaEvalCoreM___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310_(lean_object*); static double l_Lean_withTraceNode___at_Lean_compileDecl___spec__2___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1; static lean_object* l_Lean_Core_instMonadLogCoreM___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_useDiagnosticMsg; @@ -563,7 +585,7 @@ static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__ static lean_object* l_Lean_Core_CoreM_toIO___rarg___closed__1; static lean_object* l_Lean_Core_instMonadRecDepthCoreM___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Core_instantiateTypeLevelParams___spec__5(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Core_instMetaEvalCoreM___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors; static lean_object* l_Lean_Core_State_traceState___default___closed__1; @@ -573,9 +595,8 @@ LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUn static lean_object* l_Lean_Core_instMonadEnvCoreM___closed__3; uint8_t l_Lean_isAuxRecursorWithSuffix(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_80____closed__2; -LEAN_EXPORT lean_object* l_Lean_Core_restoreFull___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Core_restore(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Core_Context_suppressElabErrors___default; LEAN_EXPORT lean_object* l_Lean_Core_instAddMessageContextCoreM; LEAN_EXPORT lean_object* l_Lean_instMonadExceptOfExceptionCoreM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -584,12 +605,14 @@ LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_compileDecl___spec__14(lean_obj LEAN_EXPORT lean_object* l_Lean_Core_debug_moduleNameAtTimeout; LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_compileDecl___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_withCurrHeartbeats___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull(lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportM_runCoreM(lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_80____closed__4; uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Core_instInhabitedCache; +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4; static lean_object* l_Lean_Core_instMonadCoreM___closed__7; static lean_object* l_Lean_Core_instMonadQuotationCoreM___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -604,7 +627,6 @@ static lean_object* l_Lean_Core_instInhabitedCoreM___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_withAtLeastMaxRecDepth(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isDiagnosticsEnabled(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_getMessageLog___rarg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Core_restoreFull(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_compileDecl___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadRefCoreM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); @@ -622,6 +644,7 @@ lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); static lean_object* l_Lean_Core_throwMaxHeartbeat___closed__5; LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2(lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__27; +static lean_object* l_Lean_Core_checkInterrupted___closed__2; static lean_object* l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_compileDecl___spec__4___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -629,6 +652,8 @@ LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUn LEAN_EXPORT lean_object* l_Lean_Core_instMonadResolveNameCoreM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__13; lean_object* l_Lean_MessageData_format(lean_object*, lean_object*); +static lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6; +lean_object* l_Lean_MessageLog_add(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_List_foldlM___at_Lean_compileDecl___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -638,9 +663,11 @@ static lean_object* l_Lean_useDiagnosticMsg___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_Context_currNamespace___default; static lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1; double lean_float_sub(double, double); +static lean_object* l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1; static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__24; LEAN_EXPORT lean_object* l_Lean_compileDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_instMonadOptionsCoreM___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__1() { _start: { @@ -1249,11 +1276,23 @@ x_1 = l_Lean_Core_instInhabitedCache___closed__1; return x_1; } } +static lean_object* _init_l_Lean_Core_State_messages___default___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Core_State_traceState___default___closed__3; +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_Lean_Core_State_messages___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Core_State_traceState___default___closed__3; +x_1 = l_Lean_Core_State_messages___default___closed__1; return x_1; } } @@ -1380,6 +1419,22 @@ x_1 = 0; return x_1; } } +static lean_object* _init_l_Lean_Core_Context_cancelTk_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static uint8_t _init_l_Lean_Core_Context_suppressElabErrors___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Core_instMonadCoreM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -1632,7 +1687,7 @@ 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; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_10 = lean_ctor_get(x_4, 0); x_11 = lean_ctor_get(x_4, 1); x_12 = lean_ctor_get(x_4, 2); @@ -1643,7 +1698,10 @@ x_16 = lean_ctor_get(x_4, 7); x_17 = lean_ctor_get(x_4, 8); x_18 = lean_ctor_get(x_4, 9); x_19 = lean_ctor_get(x_4, 10); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_21 = lean_ctor_get(x_4, 11); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_21); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -1655,21 +1713,23 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_4); -x_21 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_21, 0, x_10); -lean_ctor_set(x_21, 1, x_11); -lean_ctor_set(x_21, 2, x_12); -lean_ctor_set(x_21, 3, x_13); -lean_ctor_set(x_21, 4, x_14); -lean_ctor_set(x_21, 5, x_2); -lean_ctor_set(x_21, 6, x_15); -lean_ctor_set(x_21, 7, x_16); -lean_ctor_set(x_21, 8, x_17); -lean_ctor_set(x_21, 9, x_18); -lean_ctor_set(x_21, 10, x_19); -lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_20); -x_22 = lean_apply_3(x_3, x_21, x_5, x_6); -return x_22; +x_23 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_13); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_2); +lean_ctor_set(x_23, 6, x_15); +lean_ctor_set(x_23, 7, x_16); +lean_ctor_set(x_23, 8, x_17); +lean_ctor_set(x_23, 9, x_18); +lean_ctor_set(x_23, 10, x_19); +lean_ctor_set(x_23, 11, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*12 + 1, x_22); +x_24 = lean_apply_3(x_3, x_23, x_5, x_6); +return x_24; } } } @@ -1949,13 +2009,13 @@ x_11 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = lean_apply_3(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -1965,6 +2025,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -1975,23 +2038,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = lean_apply_3(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = lean_apply_3(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -2622,7 +2687,7 @@ 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; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_10 = lean_ctor_get(x_4, 0); x_11 = lean_ctor_get(x_4, 1); x_12 = lean_ctor_get(x_4, 2); @@ -2633,7 +2698,10 @@ x_16 = lean_ctor_get(x_4, 7); x_17 = lean_ctor_get(x_4, 8); x_18 = lean_ctor_get(x_4, 9); x_19 = lean_ctor_get(x_4, 10); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_21 = lean_ctor_get(x_4, 11); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_21); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -2645,21 +2713,23 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_4); -x_21 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_21, 0, x_10); -lean_ctor_set(x_21, 1, x_11); -lean_ctor_set(x_21, 2, x_12); -lean_ctor_set(x_21, 3, x_2); -lean_ctor_set(x_21, 4, x_13); -lean_ctor_set(x_21, 5, x_14); -lean_ctor_set(x_21, 6, x_15); -lean_ctor_set(x_21, 7, x_16); -lean_ctor_set(x_21, 8, x_17); -lean_ctor_set(x_21, 9, x_18); -lean_ctor_set(x_21, 10, x_19); -lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_20); -x_22 = lean_apply_3(x_3, x_21, x_5, x_6); -return x_22; +x_23 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_2); +lean_ctor_set(x_23, 4, x_13); +lean_ctor_set(x_23, 5, x_14); +lean_ctor_set(x_23, 6, x_15); +lean_ctor_set(x_23, 7, x_16); +lean_ctor_set(x_23, 8, x_17); +lean_ctor_set(x_23, 9, x_18); +lean_ctor_set(x_23, 10, x_19); +lean_ctor_set(x_23, 11, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*12 + 1, x_22); +x_24 = lean_apply_3(x_3, x_23, x_5, x_6); +return x_24; } } } @@ -2867,7 +2937,7 @@ return x_16; } else { -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; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; x_17 = lean_ctor_get(x_2, 0); x_18 = lean_ctor_get(x_2, 1); x_19 = lean_ctor_get(x_2, 2); @@ -2878,7 +2948,10 @@ x_23 = lean_ctor_get(x_2, 6); x_24 = lean_ctor_get(x_2, 7); x_25 = lean_ctor_get(x_2, 8); x_26 = lean_ctor_get(x_2, 9); -x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_28 = lean_ctor_get(x_2, 11); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -2890,76 +2963,81 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_2); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_18); -lean_ctor_set(x_28, 2, x_19); -lean_ctor_set(x_28, 3, x_20); -lean_ctor_set(x_28, 4, x_21); -lean_ctor_set(x_28, 5, x_22); -lean_ctor_set(x_28, 6, x_23); -lean_ctor_set(x_28, 7, x_24); -lean_ctor_set(x_28, 8, x_25); -lean_ctor_set(x_28, 9, x_26); -lean_ctor_set(x_28, 10, x_9); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_27); -x_29 = lean_apply_3(x_1, x_28, x_3, x_13); -return x_29; +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_18); +lean_ctor_set(x_30, 2, x_19); +lean_ctor_set(x_30, 3, x_20); +lean_ctor_set(x_30, 4, x_21); +lean_ctor_set(x_30, 5, x_22); +lean_ctor_set(x_30, 6, x_23); +lean_ctor_set(x_30, 7, x_24); +lean_ctor_set(x_30, 8, x_25); +lean_ctor_set(x_30, 9, x_26); +lean_ctor_set(x_30, 10, x_9); +lean_ctor_set(x_30, 11, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_29); +x_31 = lean_apply_3(x_1, x_30, x_3, x_13); +return x_31; } } else { -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; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_30 = lean_ctor_get(x_6, 0); -x_31 = lean_ctor_get(x_6, 1); -x_32 = lean_ctor_get(x_6, 2); -x_33 = lean_ctor_get(x_6, 3); -x_34 = lean_ctor_get(x_6, 4); -x_35 = lean_ctor_get(x_6, 5); -x_36 = lean_ctor_get(x_6, 6); +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; uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_32 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 1); +x_34 = lean_ctor_get(x_6, 2); +x_35 = lean_ctor_get(x_6, 3); +x_36 = lean_ctor_get(x_6, 4); +x_37 = lean_ctor_get(x_6, 5); +x_38 = lean_ctor_get(x_6, 6); +lean_inc(x_38); +lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); lean_dec(x_6); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_31, x_37); -x_39 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_32); -lean_ctor_set(x_39, 3, x_33); -lean_ctor_set(x_39, 4, x_34); -lean_ctor_set(x_39, 5, x_35); -lean_ctor_set(x_39, 6, x_36); -x_40 = lean_st_ref_set(x_3, x_39, x_7); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_ctor_get(x_2, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_2, 1); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_33, x_39); +x_41 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_34); +lean_ctor_set(x_41, 3, x_35); +lean_ctor_set(x_41, 4, x_36); +lean_ctor_set(x_41, 5, x_37); +lean_ctor_set(x_41, 6, x_38); +x_42 = lean_st_ref_set(x_3, x_41, x_7); +x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_2, 2); +lean_dec(x_42); +x_44 = lean_ctor_get(x_2, 0); lean_inc(x_44); -x_45 = lean_ctor_get(x_2, 3); +x_45 = lean_ctor_get(x_2, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_2, 4); +x_46 = lean_ctor_get(x_2, 2); lean_inc(x_46); -x_47 = lean_ctor_get(x_2, 5); +x_47 = lean_ctor_get(x_2, 3); lean_inc(x_47); -x_48 = lean_ctor_get(x_2, 6); +x_48 = lean_ctor_get(x_2, 4); lean_inc(x_48); -x_49 = lean_ctor_get(x_2, 7); +x_49 = lean_ctor_get(x_2, 5); lean_inc(x_49); -x_50 = lean_ctor_get(x_2, 8); +x_50 = lean_ctor_get(x_2, 6); lean_inc(x_50); -x_51 = lean_ctor_get(x_2, 9); +x_51 = lean_ctor_get(x_2, 7); lean_inc(x_51); -x_52 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_52 = lean_ctor_get(x_2, 8); +lean_inc(x_52); +x_53 = lean_ctor_get(x_2, 9); +lean_inc(x_53); +x_54 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_55 = lean_ctor_get(x_2, 11); +lean_inc(x_55); +x_56 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -2972,30 +3050,33 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); lean_ctor_release(x_2, 10); - x_53 = x_2; + lean_ctor_release(x_2, 11); + x_57 = x_2; } else { lean_dec_ref(x_2); - x_53 = lean_box(0); + x_57 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(0, 11, 1); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 12, 2); } else { - x_54 = x_53; + x_58 = x_57; } -lean_ctor_set(x_54, 0, x_42); -lean_ctor_set(x_54, 1, x_43); -lean_ctor_set(x_54, 2, x_44); -lean_ctor_set(x_54, 3, x_45); -lean_ctor_set(x_54, 4, x_46); -lean_ctor_set(x_54, 5, x_47); -lean_ctor_set(x_54, 6, x_48); -lean_ctor_set(x_54, 7, x_49); -lean_ctor_set(x_54, 8, x_50); -lean_ctor_set(x_54, 9, x_51); -lean_ctor_set(x_54, 10, x_31); -lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_52); -x_55 = lean_apply_3(x_1, x_54, x_3, x_41); -return x_55; +lean_ctor_set(x_58, 0, x_44); +lean_ctor_set(x_58, 1, x_45); +lean_ctor_set(x_58, 2, x_46); +lean_ctor_set(x_58, 3, x_47); +lean_ctor_set(x_58, 4, x_48); +lean_ctor_set(x_58, 5, x_49); +lean_ctor_set(x_58, 6, x_50); +lean_ctor_set(x_58, 7, x_51); +lean_ctor_set(x_58, 8, x_52); +lean_ctor_set(x_58, 9, x_53); +lean_ctor_set(x_58, 10, x_33); +lean_ctor_set(x_58, 11, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*12, x_54); +lean_ctor_set_uint8(x_58, sizeof(void*)*12 + 1, x_56); +x_59 = lean_apply_3(x_1, x_58, x_3, x_43); +return x_59; } } } @@ -5897,151 +5978,358 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Core_restore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Core_saveState___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_st_ref_take(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = !lean_is_exclusive(x_6); -if (x_8 == 0) +lean_object* x_3; uint8_t x_4; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 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; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 5); -x_11 = lean_ctor_get(x_1, 6); -x_12 = lean_ctor_get(x_6, 6); -lean_dec(x_12); -x_13 = lean_ctor_get(x_6, 5); -lean_dec(x_13); -x_14 = lean_ctor_get(x_6, 0); -lean_dec(x_14); -lean_inc(x_11); -lean_inc(x_10); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set(x_3, 0, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_ctor_get(x_3, 1); lean_inc(x_9); -lean_ctor_set(x_6, 6, x_11); -lean_ctor_set(x_6, 5, x_10); -lean_ctor_set(x_6, 0, x_9); -x_15 = lean_st_ref_set(x_3, x_6, x_7); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_inc(x_8); +lean_dec(x_3); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_8); +lean_ctor_set(x_11, 1, x_10); +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; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_saveState(lean_object* x_1) { +_start: { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_15, 0, x_18); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Core_saveState___rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_saveState___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Core_saveState___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_saveState___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Core_saveState(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 1); +x_8 = lean_io_get_num_heartbeats(x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_nat_sub(x_10, x_1); +lean_dec(x_10); +lean_ctor_set(x_5, 1, x_11); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +x_14 = lean_nat_sub(x_12, x_1); +lean_dec(x_12); +lean_ctor_set(x_5, 1, x_14); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_13); return x_15; } +} else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 1); +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; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_5); +x_18 = lean_io_get_num_heartbeats(x_17); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; +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_nat_sub(x_19, x_1); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_22); +if (lean_is_scalar(x_21)) { + x_24 = lean_alloc_ctor(0, 2, 0); +} else { + x_24 = x_21; +} +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +return x_24; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_io_get_num_heartbeats(x_5); +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_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_9, 0, x_7); +x_10 = lean_apply_4(x_1, x_9, x_3, x_4, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2(x_2, x_6, x_3, x_4, x_5); +return x_7; } else { -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; -x_22 = lean_ctor_get(x_1, 0); -x_23 = lean_ctor_get(x_1, 5); -x_24 = lean_ctor_get(x_1, 6); -x_25 = lean_ctor_get(x_6, 1); -x_26 = lean_ctor_get(x_6, 2); -x_27 = lean_ctor_get(x_6, 3); -x_28 = lean_ctor_get(x_6, 4); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_6); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -x_29 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_27); -lean_ctor_set(x_29, 4, x_28); -lean_ctor_set(x_29, 5, x_23); -lean_ctor_set(x_29, 6, x_24); -x_30 = lean_st_ref_set(x_3, x_29, x_7); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_32 = x_30; -} else { - lean_dec_ref(x_30); - x_32 = lean_box(0); +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; uint64_t x_15; lean_object* x_16; uint8_t x_17; +lean_dec(x_3); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +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_10, 0); +lean_inc(x_11); +x_12 = lean_st_ref_set(x_4, x_11, x_5); +lean_dec(x_4); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_uint64_of_nat(x_14); +lean_dec(x_14); +x_16 = lean_io_add_heartbeats(x_15, x_13); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_9); +return x_16; } -x_33 = lean_box(0); -if (lean_is_scalar(x_32)) { - x_34 = lean_alloc_ctor(0, 2, 0); -} else { - x_34 = x_32; -} -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -return x_34; +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_9); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Core_restore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___rarg), 5, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Core_restore(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Core_restoreFull(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2___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_5; uint8_t x_6; -x_5 = lean_st_ref_set(x_3, x_1, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_6; +x_6 = l_Lean_Core_withRestoreOrSaveFull___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -return x_5; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_st_ref_take(x_3, x_4); +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +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; uint8_t x_17; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 5); +x_12 = lean_ctor_get(x_6, 6); +x_13 = lean_ctor_get(x_7, 6); +lean_dec(x_13); +x_14 = lean_ctor_get(x_7, 5); +lean_dec(x_14); +x_15 = lean_ctor_get(x_7, 0); +lean_dec(x_15); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_ctor_set(x_7, 6, x_12); +lean_ctor_set(x_7, 5, x_11); +lean_ctor_set(x_7, 0, x_10); +x_16 = lean_st_ref_set(x_3, x_7, x_8); +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); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_16, 0, x_19); +return x_16; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_inc(x_7); -lean_dec(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -return x_9; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_box(0); +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 +{ +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; +x_23 = lean_ctor_get(x_6, 0); +x_24 = lean_ctor_get(x_6, 5); +x_25 = lean_ctor_get(x_6, 6); +x_26 = lean_ctor_get(x_7, 1); +x_27 = lean_ctor_get(x_7, 2); +x_28 = lean_ctor_get(x_7, 3); +x_29 = lean_ctor_get(x_7, 4); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_7); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +x_30 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_26); +lean_ctor_set(x_30, 2, x_27); +lean_ctor_set(x_30, 3, x_28); +lean_ctor_set(x_30, 4, x_29); +lean_ctor_set(x_30, 5, x_24); +lean_ctor_set(x_30, 6, x_25); +x_31 = lean_st_ref_set(x_3, x_30, x_8); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_33 = x_31; +} else { + lean_dec_ref(x_31); + x_33 = lean_box(0); +} +x_34 = lean_box(0); +if (lean_is_scalar(x_33)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_33; +} +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +return x_35; } } } -LEAN_EXPORT lean_object* l_Lean_Core_restoreFull___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Core_restoreFull(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Core_SavedState_restore(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); return x_5; } } @@ -7296,7 +7584,7 @@ goto block_33; } else { -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; uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; uint8_t x_152; +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; uint8_t x_140; lean_object* x_141; uint8_t 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; lean_object* x_152; uint8_t x_153; uint8_t x_154; x_130 = lean_ctor_get(x_2, 0); x_131 = lean_ctor_get(x_2, 1); x_132 = lean_ctor_get(x_2, 2); @@ -7307,7 +7595,10 @@ x_136 = lean_ctor_get(x_2, 6); x_137 = lean_ctor_get(x_2, 7); x_138 = lean_ctor_get(x_2, 9); x_139 = lean_ctor_get(x_2, 10); -x_140 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_140 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_141 = lean_ctor_get(x_2, 11); +x_142 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_141); lean_inc(x_139); lean_inc(x_138); lean_inc(x_137); @@ -7320,250 +7611,252 @@ lean_inc(x_131); lean_inc(x_130); lean_dec(x_2); lean_inc(x_132); -x_141 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_141, 0, x_130); -lean_ctor_set(x_141, 1, x_131); -lean_ctor_set(x_141, 2, x_132); -lean_ctor_set(x_141, 3, x_133); -lean_ctor_set(x_141, 4, x_134); -lean_ctor_set(x_141, 5, x_135); -lean_ctor_set(x_141, 6, x_136); -lean_ctor_set(x_141, 7, x_137); -lean_ctor_set(x_141, 8, x_35); -lean_ctor_set(x_141, 9, x_138); -lean_ctor_set(x_141, 10, x_139); -lean_ctor_set_uint8(x_141, sizeof(void*)*11, x_140); -x_142 = lean_st_mk_ref(x_3, x_36); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_145 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; -x_146 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_132, x_145); -x_147 = lean_st_ref_get(x_143, x_144); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_ctor_get(x_148, 0); +x_143 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_143, 0, x_130); +lean_ctor_set(x_143, 1, x_131); +lean_ctor_set(x_143, 2, x_132); +lean_ctor_set(x_143, 3, x_133); +lean_ctor_set(x_143, 4, x_134); +lean_ctor_set(x_143, 5, x_135); +lean_ctor_set(x_143, 6, x_136); +lean_ctor_set(x_143, 7, x_137); +lean_ctor_set(x_143, 8, x_35); +lean_ctor_set(x_143, 9, x_138); +lean_ctor_set(x_143, 10, x_139); +lean_ctor_set(x_143, 11, x_141); +lean_ctor_set_uint8(x_143, sizeof(void*)*12, x_140); +lean_ctor_set_uint8(x_143, sizeof(void*)*12 + 1, x_142); +x_144 = lean_st_mk_ref(x_3, x_36); +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 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; +x_148 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_132, x_147); +x_149 = lean_st_ref_get(x_145, x_146); +x_150 = lean_ctor_get(x_149, 0); lean_inc(x_150); -lean_dec(x_148); -x_151 = l_Lean_Kernel_isDiagnosticsEnabled(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); lean_dec(x_150); -if (x_151 == 0) +x_153 = l_Lean_Kernel_isDiagnosticsEnabled(x_152); +lean_dec(x_152); +if (x_153 == 0) { -if (x_146 == 0) -{ -uint8_t x_195; -x_195 = 1; -x_152 = x_195; -goto block_194; -} -else -{ -uint8_t x_196; -x_196 = 0; -x_152 = x_196; -goto block_194; -} -} -else -{ -if (x_146 == 0) +if (x_148 == 0) { uint8_t x_197; -x_197 = 0; -x_152 = x_197; -goto block_194; +x_197 = 1; +x_154 = x_197; +goto block_196; } else { uint8_t x_198; -x_198 = 1; -x_152 = x_198; -goto block_194; +x_198 = 0; +x_154 = x_198; +goto block_196; } } -block_194: -{ -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_153 = lean_st_ref_take(x_143, x_149); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_156 = lean_ctor_get(x_154, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -x_158 = lean_ctor_get(x_154, 2); -lean_inc(x_158); -x_159 = lean_ctor_get(x_154, 3); -lean_inc(x_159); -x_160 = lean_ctor_get(x_154, 5); -lean_inc(x_160); -x_161 = lean_ctor_get(x_154, 6); -lean_inc(x_161); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - lean_ctor_release(x_154, 2); - lean_ctor_release(x_154, 3); - lean_ctor_release(x_154, 4); - lean_ctor_release(x_154, 5); - lean_ctor_release(x_154, 6); - x_162 = x_154; -} else { - lean_dec_ref(x_154); - x_162 = lean_box(0); -} -x_163 = l_Lean_Kernel_enableDiag(x_156, x_146); -x_164 = l_Lean_Core_instInhabitedCache___closed__1; -if (lean_is_scalar(x_162)) { - x_165 = lean_alloc_ctor(0, 7, 0); -} else { - x_165 = x_162; -} -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_157); -lean_ctor_set(x_165, 2, x_158); -lean_ctor_set(x_165, 3, x_159); -lean_ctor_set(x_165, 4, x_164); -lean_ctor_set(x_165, 5, x_160); -lean_ctor_set(x_165, 6, x_161); -x_166 = lean_st_ref_set(x_143, x_165, x_155); -x_167 = lean_ctor_get(x_166, 1); -lean_inc(x_167); -lean_dec(x_166); -x_168 = lean_box(0); -lean_inc(x_143); -x_169 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_132, x_146, x_1, x_168, x_141, x_143, x_167); -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; lean_object* x_177; lean_object* x_178; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -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_169); - x_172 = lean_box(0); -} -x_173 = lean_st_ref_get(x_143, x_171); -lean_dec(x_143); -x_174 = lean_ctor_get(x_173, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_173, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_176 = x_173; -} else { - lean_dec_ref(x_173); - x_176 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_177 = lean_alloc_ctor(0, 2, 0); -} else { - x_177 = x_172; -} -lean_ctor_set(x_177, 0, x_170); -lean_ctor_set(x_177, 1, x_174); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} else { -lean_object* x_179; lean_object* x_180; -lean_dec(x_143); -x_179 = lean_ctor_get(x_169, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_169, 1); -lean_inc(x_180); -lean_dec(x_169); -x_5 = x_179; -x_6 = x_180; +if (x_148 == 0) +{ +uint8_t x_199; +x_199 = 0; +x_154 = x_199; +goto block_196; +} +else +{ +uint8_t x_200; +x_200 = 1; +x_154 = x_200; +goto block_196; +} +} +block_196: +{ +if (x_154 == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_155 = lean_st_ref_take(x_145, x_151); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +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); +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +x_160 = lean_ctor_get(x_156, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_156, 3); +lean_inc(x_161); +x_162 = lean_ctor_get(x_156, 5); +lean_inc(x_162); +x_163 = lean_ctor_get(x_156, 6); +lean_inc(x_163); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + lean_ctor_release(x_156, 2); + lean_ctor_release(x_156, 3); + lean_ctor_release(x_156, 4); + lean_ctor_release(x_156, 5); + lean_ctor_release(x_156, 6); + x_164 = x_156; +} else { + lean_dec_ref(x_156); + x_164 = lean_box(0); +} +x_165 = l_Lean_Kernel_enableDiag(x_158, x_148); +x_166 = l_Lean_Core_instInhabitedCache___closed__1; +if (lean_is_scalar(x_164)) { + x_167 = lean_alloc_ctor(0, 7, 0); +} else { + x_167 = x_164; +} +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_159); +lean_ctor_set(x_167, 2, x_160); +lean_ctor_set(x_167, 3, x_161); +lean_ctor_set(x_167, 4, x_166); +lean_ctor_set(x_167, 5, x_162); +lean_ctor_set(x_167, 6, x_163); +x_168 = lean_st_ref_set(x_145, x_167, x_157); +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +lean_dec(x_168); +x_170 = lean_box(0); +lean_inc(x_145); +x_171 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_132, x_148, x_1, x_170, x_143, x_145, x_169); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_174 = x_171; +} else { + lean_dec_ref(x_171); + x_174 = lean_box(0); +} +x_175 = lean_st_ref_get(x_145, x_173); +lean_dec(x_145); +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_178 = x_175; +} else { + lean_dec_ref(x_175); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_174; +} +lean_ctor_set(x_179, 0, x_172); +lean_ctor_set(x_179, 1, x_176); +if (lean_is_scalar(x_178)) { + x_180 = lean_alloc_ctor(0, 2, 0); +} else { + x_180 = x_178; +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_177); +return x_180; +} +else +{ +lean_object* x_181; lean_object* x_182; +lean_dec(x_145); +x_181 = lean_ctor_get(x_171, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_171, 1); +lean_inc(x_182); +lean_dec(x_171); +x_5 = x_181; +x_6 = x_182; goto block_33; } } else { -lean_object* x_181; lean_object* x_182; -x_181 = lean_box(0); -lean_inc(x_143); -x_182 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_132, x_146, x_1, x_181, x_141, x_143, x_149); -if (lean_obj_tag(x_182) == 0) +lean_object* x_183; lean_object* x_184; +x_183 = lean_box(0); +lean_inc(x_145); +x_184 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_132, x_148, x_1, x_183, x_143, x_145, x_151); +if (lean_obj_tag(x_184) == 0) { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -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; +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; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + x_187 = x_184; } else { - lean_dec_ref(x_182); - x_185 = lean_box(0); + lean_dec_ref(x_184); + x_187 = lean_box(0); } -x_186 = lean_st_ref_get(x_143, x_184); -lean_dec(x_143); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_189 = x_186; +x_188 = lean_st_ref_get(x_145, x_186); +lean_dec(x_145); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +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_186); - x_189 = lean_box(0); + lean_dec_ref(x_188); + x_191 = lean_box(0); } -if (lean_is_scalar(x_185)) { - x_190 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_187)) { + x_192 = lean_alloc_ctor(0, 2, 0); } else { - x_190 = x_185; + x_192 = x_187; } -lean_ctor_set(x_190, 0, x_183); -lean_ctor_set(x_190, 1, x_187); -if (lean_is_scalar(x_189)) { - x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_185); +lean_ctor_set(x_192, 1, x_189); +if (lean_is_scalar(x_191)) { + x_193 = lean_alloc_ctor(0, 2, 0); } else { - x_191 = x_189; + x_193 = x_191; } -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_188); -return x_191; +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_190); +return x_193; } else { -lean_object* x_192; lean_object* x_193; -lean_dec(x_143); -x_192 = lean_ctor_get(x_182, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_182, 1); -lean_inc(x_193); -lean_dec(x_182); -x_5 = x_192; -x_6 = x_193; +lean_object* x_194; lean_object* x_195; +lean_dec(x_145); +x_194 = lean_ctor_get(x_184, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_184, 1); +lean_inc(x_195); +lean_dec(x_184); +x_5 = x_194; +x_6 = x_195; goto block_33; } } @@ -8880,7 +9173,7 @@ x_11 = lean_ctor_get(x_6, 2); lean_dec(x_11); lean_ctor_set(x_6, 4, x_2); lean_ctor_set(x_6, 2, x_1); -lean_ctor_set_uint8(x_6, sizeof(void*)*11, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*12, x_3); lean_inc(x_7); lean_inc(x_6); x_12 = lean_apply_3(x_4, x_6, x_7, x_8); @@ -9002,7 +9295,7 @@ return x_34; } else { -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_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; lean_object* x_46; lean_object* x_47; x_35 = lean_ctor_get(x_6, 0); x_36 = lean_ctor_get(x_6, 1); x_37 = lean_ctor_get(x_6, 3); @@ -9012,6 +9305,9 @@ x_40 = lean_ctor_get(x_6, 7); x_41 = lean_ctor_get(x_6, 8); x_42 = lean_ctor_get(x_6, 9); x_43 = lean_ctor_get(x_6, 10); +x_44 = lean_ctor_get(x_6, 11); +x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); @@ -9022,135 +9318,137 @@ lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); lean_dec(x_6); -x_44 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_44, 0, x_35); -lean_ctor_set(x_44, 1, x_36); -lean_ctor_set(x_44, 2, x_1); -lean_ctor_set(x_44, 3, x_37); -lean_ctor_set(x_44, 4, x_2); -lean_ctor_set(x_44, 5, x_38); -lean_ctor_set(x_44, 6, x_39); -lean_ctor_set(x_44, 7, x_40); -lean_ctor_set(x_44, 8, x_41); -lean_ctor_set(x_44, 9, x_42); -lean_ctor_set(x_44, 10, x_43); -lean_ctor_set_uint8(x_44, sizeof(void*)*11, x_3); +x_46 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +lean_ctor_set(x_46, 2, x_1); +lean_ctor_set(x_46, 3, x_37); +lean_ctor_set(x_46, 4, x_2); +lean_ctor_set(x_46, 5, x_38); +lean_ctor_set(x_46, 6, x_39); +lean_ctor_set(x_46, 7, x_40); +lean_ctor_set(x_46, 8, x_41); +lean_ctor_set(x_46, 9, x_42); +lean_ctor_set(x_46, 10, x_43); +lean_ctor_set(x_46, 11, x_44); +lean_ctor_set_uint8(x_46, sizeof(void*)*12, x_3); +lean_ctor_set_uint8(x_46, sizeof(void*)*12 + 1, x_45); lean_inc(x_7); -lean_inc(x_44); -x_45 = lean_apply_3(x_4, x_44, x_7, x_8); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_44, x_7, x_47); -if (lean_obj_tag(x_48) == 0) +x_47 = lean_apply_3(x_4, x_46, x_7, x_8); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_48, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 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; +lean_dec(x_47); +x_50 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_46, x_7, x_49); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +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_48); - x_50 = lean_box(0); + lean_dec_ref(x_50); + x_52 = lean_box(0); } -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 2, 0); } else { - x_51 = x_50; + x_53 = x_52; } -lean_ctor_set(x_51, 0, x_46); -lean_ctor_set(x_51, 1, x_49); -return x_51; +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_51); +return x_53; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_46); -x_52 = lean_ctor_get(x_48, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_48, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_54 = x_48; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_48); +x_54 = lean_ctor_get(x_50, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_56 = x_50; } else { - lean_dec_ref(x_48); - x_54 = lean_box(0); + lean_dec_ref(x_50); + x_56 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_57 = x_56; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_45, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_45, 1); -lean_inc(x_57); -lean_dec(x_45); -x_58 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_44, x_7, x_57); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_58, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_47, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_47, 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; +lean_dec(x_47); +x_60 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_46, x_7, x_59); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_62 = x_60; } else { - lean_dec_ref(x_58); - x_60 = lean_box(0); + lean_dec_ref(x_60); + x_62 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; - lean_ctor_set_tag(x_61, 1); + x_63 = x_62; + lean_ctor_set_tag(x_63, 1); } -lean_ctor_set(x_61, 0, x_56); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_63, 0, x_58); +lean_ctor_set(x_63, 1, x_61); +return x_63; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_56); -x_62 = lean_ctor_get(x_58, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_58, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_64 = x_58; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_58); +x_64 = lean_ctor_get(x_60, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_60, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_66 = x_60; } else { - lean_dec_ref(x_58); - x_64 = lean_box(0); + lean_dec_ref(x_60); + x_66 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_65 = x_64; + x_67 = x_66; } -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } @@ -9175,7 +9473,7 @@ lean_inc(x_13); lean_inc(x_1); lean_ctor_set(x_6, 4, x_13); lean_ctor_set(x_6, 2, x_1); -lean_ctor_set_uint8(x_6, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_6, sizeof(void*)*12, x_2); x_14 = lean_st_ref_get(x_7, x_8); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -9296,7 +9594,7 @@ return x_44; } 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; 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; uint8_t x_66; uint8_t x_67; +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; uint8_t 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; uint8_t x_68; uint8_t x_69; x_50 = lean_ctor_get(x_6, 0); x_51 = lean_ctor_get(x_6, 1); x_52 = lean_ctor_get(x_6, 3); @@ -9306,6 +9604,9 @@ x_55 = lean_ctor_get(x_6, 7); x_56 = lean_ctor_get(x_6, 8); x_57 = lean_ctor_get(x_6, 9); x_58 = lean_ctor_get(x_6, 10); +x_59 = lean_ctor_get(x_6, 11); +x_60 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); @@ -9316,133 +9617,135 @@ lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); lean_dec(x_6); -x_59 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; -x_60 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_59); -lean_inc(x_60); +x_61 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; +x_62 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_61); +lean_inc(x_62); lean_inc(x_1); -x_61 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_61, 0, x_50); -lean_ctor_set(x_61, 1, x_51); -lean_ctor_set(x_61, 2, x_1); -lean_ctor_set(x_61, 3, x_52); -lean_ctor_set(x_61, 4, x_60); -lean_ctor_set(x_61, 5, x_53); -lean_ctor_set(x_61, 6, x_54); -lean_ctor_set(x_61, 7, x_55); -lean_ctor_set(x_61, 8, x_56); -lean_ctor_set(x_61, 9, x_57); -lean_ctor_set(x_61, 10, x_58); -lean_ctor_set_uint8(x_61, sizeof(void*)*11, x_2); -x_62 = lean_st_ref_get(x_7, x_8); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_ctor_get(x_63, 0); +x_63 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_51); +lean_ctor_set(x_63, 2, x_1); +lean_ctor_set(x_63, 3, x_52); +lean_ctor_set(x_63, 4, x_62); +lean_ctor_set(x_63, 5, x_53); +lean_ctor_set(x_63, 6, x_54); +lean_ctor_set(x_63, 7, x_55); +lean_ctor_set(x_63, 8, x_56); +lean_ctor_set(x_63, 9, x_57); +lean_ctor_set(x_63, 10, x_58); +lean_ctor_set(x_63, 11, x_59); +lean_ctor_set_uint8(x_63, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_63, sizeof(void*)*12 + 1, x_60); +x_64 = lean_st_ref_get(x_7, x_8); +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_Kernel_isDiagnosticsEnabled(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); lean_dec(x_65); -if (x_66 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_87; -x_87 = 1; -x_67 = x_87; -goto block_86; -} -else -{ -uint8_t x_88; -x_88 = 0; -x_67 = x_88; -goto block_86; -} -} -else +x_68 = l_Lean_Kernel_isDiagnosticsEnabled(x_67); +lean_dec(x_67); +if (x_68 == 0) { if (x_2 == 0) { uint8_t x_89; -x_89 = 0; -x_67 = x_89; -goto block_86; +x_89 = 1; +x_69 = x_89; +goto block_88; } else { uint8_t x_90; -x_90 = 1; -x_67 = x_90; -goto block_86; +x_90 = 0; +x_69 = x_90; +goto block_88; } } -block_86: -{ -if (x_67 == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_68 = lean_st_ref_take(x_7, x_64); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_69, 2); -lean_inc(x_73); -x_74 = lean_ctor_get(x_69, 3); -lean_inc(x_74); -x_75 = lean_ctor_get(x_69, 5); -lean_inc(x_75); -x_76 = lean_ctor_get(x_69, 6); -lean_inc(x_76); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - lean_ctor_release(x_69, 2); - lean_ctor_release(x_69, 3); - lean_ctor_release(x_69, 4); - lean_ctor_release(x_69, 5); - lean_ctor_release(x_69, 6); - x_77 = x_69; -} else { - lean_dec_ref(x_69); - x_77 = lean_box(0); -} -x_78 = l_Lean_Kernel_enableDiag(x_71, x_2); -if (lean_is_scalar(x_77)) { - x_79 = lean_alloc_ctor(0, 7, 0); -} else { - x_79 = x_77; -} -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_72); -lean_ctor_set(x_79, 2, x_73); -lean_ctor_set(x_79, 3, x_74); -lean_ctor_set(x_79, 4, x_4); -lean_ctor_set(x_79, 5, x_75); -lean_ctor_set(x_79, 6, x_76); -x_80 = lean_st_ref_set(x_7, x_79, x_70); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -x_82 = lean_box(0); -x_83 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1(x_1, x_60, x_2, x_3, x_82, x_61, x_7, x_81); -return x_83; -} else { -lean_object* x_84; lean_object* x_85; -lean_dec(x_4); +if (x_2 == 0) +{ +uint8_t x_91; +x_91 = 0; +x_69 = x_91; +goto block_88; +} +else +{ +uint8_t x_92; +x_92 = 1; +x_69 = x_92; +goto block_88; +} +} +block_88: +{ +if (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; 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_70 = lean_st_ref_take(x_7, x_66); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_ctor_get(x_71, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +x_75 = lean_ctor_get(x_71, 2); +lean_inc(x_75); +x_76 = lean_ctor_get(x_71, 3); +lean_inc(x_76); +x_77 = lean_ctor_get(x_71, 5); +lean_inc(x_77); +x_78 = lean_ctor_get(x_71, 6); +lean_inc(x_78); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + lean_ctor_release(x_71, 2); + lean_ctor_release(x_71, 3); + lean_ctor_release(x_71, 4); + lean_ctor_release(x_71, 5); + lean_ctor_release(x_71, 6); + x_79 = x_71; +} else { + lean_dec_ref(x_71); + x_79 = lean_box(0); +} +x_80 = l_Lean_Kernel_enableDiag(x_73, x_2); +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(0, 7, 0); +} else { + x_81 = x_79; +} +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_74); +lean_ctor_set(x_81, 2, x_75); +lean_ctor_set(x_81, 3, x_76); +lean_ctor_set(x_81, 4, x_4); +lean_ctor_set(x_81, 5, x_77); +lean_ctor_set(x_81, 6, x_78); +x_82 = lean_st_ref_set(x_7, x_81, x_72); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_dec(x_82); x_84 = lean_box(0); -x_85 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1(x_1, x_60, x_2, x_3, x_84, x_61, x_7, x_64); +x_85 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1(x_1, x_62, x_2, x_3, x_84, x_63, x_7, x_83); return x_85; } +else +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_4); +x_86 = lean_box(0); +x_87 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__1(x_1, x_62, x_2, x_3, x_86, x_63, x_7, x_66); +return x_87; +} } } } @@ -9493,97 +9796,101 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Core_instMetaEvalCoreM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_21; lean_object* x_22; 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; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; +lean_object* x_7; lean_object* x_21; lean_object* x_22; 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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; uint8_t x_82; x_50 = lean_box(0); x_51 = l_Lean_Core_getMaxHeartbeats(x_3); -x_52 = l_Lean_Core_State_nextMacroScope___default___closed__1; -x_53 = l_Lean_Core_State_ngen___default___closed__3; -x_54 = l_Lean_Core_State_traceState___default___closed__3; -x_55 = l_Lean_Core_instInhabitedCache___closed__1; -x_56 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__3; -x_57 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_57, 0, x_2); -lean_ctor_set(x_57, 1, x_52); -lean_ctor_set(x_57, 2, x_53); -lean_ctor_set(x_57, 3, x_54); -lean_ctor_set(x_57, 4, x_55); -lean_ctor_set(x_57, 5, x_54); -lean_ctor_set(x_57, 6, x_56); -x_58 = lean_io_get_num_heartbeats(x_6); -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_61 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__4; -x_62 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__2; -x_63 = lean_unsigned_to_nat(0u); -x_64 = lean_unsigned_to_nat(1000u); -x_65 = lean_box(0); -x_66 = lean_box(0); -x_67 = l_Lean_firstFrontendMacroScope; -x_68 = 0; +x_52 = lean_box(0); +x_53 = l_Lean_Core_State_nextMacroScope___default___closed__1; +x_54 = l_Lean_Core_State_ngen___default___closed__3; +x_55 = l_Lean_Core_State_traceState___default___closed__3; +x_56 = l_Lean_Core_instInhabitedCache___closed__1; +x_57 = l_Lean_Core_State_messages___default___closed__1; +x_58 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__3; +x_59 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_59, 0, x_2); +lean_ctor_set(x_59, 1, x_53); +lean_ctor_set(x_59, 2, x_54); +lean_ctor_set(x_59, 3, x_55); +lean_ctor_set(x_59, 4, x_56); +lean_ctor_set(x_59, 5, x_57); +lean_ctor_set(x_59, 6, x_58); +x_60 = lean_io_get_num_heartbeats(x_6); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__4; +x_64 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__2; +x_65 = lean_unsigned_to_nat(0u); +x_66 = lean_unsigned_to_nat(1000u); +x_67 = lean_box(0); +x_68 = lean_box(0); +x_69 = l_Lean_firstFrontendMacroScope; +x_70 = 0; lean_inc(x_3); -x_69 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_69, 0, x_61); -lean_ctor_set(x_69, 1, x_62); -lean_ctor_set(x_69, 2, x_3); -lean_ctor_set(x_69, 3, x_63); -lean_ctor_set(x_69, 4, x_64); -lean_ctor_set(x_69, 5, x_65); -lean_ctor_set(x_69, 6, x_66); -lean_ctor_set(x_69, 7, x_50); -lean_ctor_set(x_69, 8, x_59); -lean_ctor_set(x_69, 9, x_51); -lean_ctor_set(x_69, 10, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*11, x_68); -x_70 = lean_st_mk_ref(x_57, x_60); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; -x_74 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_73); -x_75 = lean_st_ref_get(x_71, x_72); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_76, 0); +x_71 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_71, 0, x_63); +lean_ctor_set(x_71, 1, x_64); +lean_ctor_set(x_71, 2, x_3); +lean_ctor_set(x_71, 3, x_65); +lean_ctor_set(x_71, 4, x_66); +lean_ctor_set(x_71, 5, x_67); +lean_ctor_set(x_71, 6, x_68); +lean_ctor_set(x_71, 7, x_50); +lean_ctor_set(x_71, 8, x_61); +lean_ctor_set(x_71, 9, x_51); +lean_ctor_set(x_71, 10, x_69); +lean_ctor_set(x_71, 11, x_52); +lean_ctor_set_uint8(x_71, sizeof(void*)*12, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*12 + 1, x_70); +x_72 = lean_st_mk_ref(x_59, x_62); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; +x_76 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_75); +x_77 = lean_st_ref_get(x_73, x_74); +x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Lean_Kernel_isDiagnosticsEnabled(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); lean_dec(x_78); -if (x_79 == 0) +x_81 = l_Lean_Kernel_isDiagnosticsEnabled(x_80); +lean_dec(x_80); +if (x_81 == 0) { -if (x_74 == 0) +if (x_76 == 0) { -uint8_t x_154; -x_154 = 1; -x_80 = x_154; -goto block_153; +uint8_t x_156; +x_156 = 1; +x_82 = x_156; +goto block_155; } else { -x_80 = x_68; -goto block_153; +x_82 = x_70; +goto block_155; } } else { -if (x_74 == 0) +if (x_76 == 0) { -x_80 = x_68; -goto block_153; +x_82 = x_70; +goto block_155; } else { -uint8_t x_155; -x_155 = 1; -x_80 = x_155; -goto block_153; +uint8_t x_157; +x_157 = 1; +x_82 = x_157; +goto block_155; } } block_20: @@ -9741,305 +10048,305 @@ goto block_20; } } } -block_153: +block_155: { -if (x_80 == 0) +if (x_82 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_st_ref_take(x_71, x_77); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = !lean_is_exclusive(x_82); -if (x_84 == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_st_ref_take(x_73, x_79); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = !lean_is_exclusive(x_84); +if (x_86 == 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; lean_object* x_91; -x_85 = lean_ctor_get(x_82, 0); -x_86 = lean_ctor_get(x_82, 4); -lean_dec(x_86); -x_87 = l_Lean_Kernel_enableDiag(x_85, x_74); -lean_ctor_set(x_82, 4, x_55); -lean_ctor_set(x_82, 0, x_87); -x_88 = lean_st_ref_set(x_71, x_82, x_83); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); +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_87 = lean_ctor_get(x_84, 0); +x_88 = lean_ctor_get(x_84, 4); lean_dec(x_88); -x_90 = lean_box(0); -lean_inc(x_71); +x_89 = l_Lean_Kernel_enableDiag(x_87, x_76); +lean_ctor_set(x_84, 4, x_56); +lean_ctor_set(x_84, 0, x_89); +x_90 = lean_st_ref_set(x_73, x_84, x_85); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_91 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_74, x_4, x_55, x_90, x_69, x_71, x_89); -if (lean_obj_tag(x_91) == 0) +x_93 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_76, x_4, x_56, x_92, x_71, x_73, x_91); +if (lean_obj_tag(x_93) == 0) { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) +uint8_t x_94; +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_91, 1); -x_94 = lean_st_ref_get(x_71, x_93); -lean_dec(x_71); -x_95 = !lean_is_exclusive(x_94); -if (x_95 == 0) +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_93, 1); +x_96 = lean_st_ref_get(x_73, x_95); +lean_dec(x_73); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) { -lean_object* x_96; -x_96 = lean_ctor_get(x_94, 0); -lean_ctor_set(x_91, 1, x_96); -lean_ctor_set(x_94, 0, x_91); -x_7 = x_94; +lean_object* x_98; +x_98 = lean_ctor_get(x_96, 0); +lean_ctor_set(x_93, 1, x_98); +lean_ctor_set(x_96, 0, x_93); +x_7 = x_96; goto block_20; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_94, 0); -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_94); -lean_ctor_set(x_91, 1, x_97); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_91); -lean_ctor_set(x_99, 1, x_98); -x_7 = x_99; -goto block_20; -} -} -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; lean_object* x_106; lean_object* x_107; -x_100 = lean_ctor_get(x_91, 0); -x_101 = lean_ctor_get(x_91, 1); -lean_inc(x_101); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_96, 0); +x_100 = lean_ctor_get(x_96, 1); lean_inc(x_100); -lean_dec(x_91); -x_102 = lean_st_ref_get(x_71, x_101); -lean_dec(x_71); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; -} else { - lean_dec_ref(x_102); - x_105 = lean_box(0); -} -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_100); -lean_ctor_set(x_106, 1, x_103); -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(0, 2, 0); -} else { - x_107 = x_105; -} -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_104); -x_7 = x_107; +lean_inc(x_99); +lean_dec(x_96); +lean_ctor_set(x_93, 1, x_99); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_93); +lean_ctor_set(x_101, 1, x_100); +x_7 = x_101; goto block_20; } } else { -lean_object* x_108; lean_object* x_109; -lean_dec(x_71); -x_108 = lean_ctor_get(x_91, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_91, 1); -lean_inc(x_109); -lean_dec(x_91); -x_21 = x_108; -x_22 = x_109; +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; +x_102 = lean_ctor_get(x_93, 0); +x_103 = lean_ctor_get(x_93, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_93); +x_104 = lean_st_ref_get(x_73, x_103); +lean_dec(x_73); +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; +} else { + lean_dec_ref(x_104); + x_107 = lean_box(0); +} +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_102); +lean_ctor_set(x_108, 1, x_105); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +x_7 = x_109; +goto block_20; +} +} +else +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_73); +x_110 = lean_ctor_get(x_93, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_93, 1); +lean_inc(x_111); +lean_dec(x_93); +x_21 = x_110; +x_22 = x_111; goto block_49; } } else { -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; -x_110 = lean_ctor_get(x_82, 0); -x_111 = lean_ctor_get(x_82, 1); -x_112 = lean_ctor_get(x_82, 2); -x_113 = lean_ctor_get(x_82, 3); -x_114 = lean_ctor_get(x_82, 5); -x_115 = lean_ctor_get(x_82, 6); +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_112 = lean_ctor_get(x_84, 0); +x_113 = lean_ctor_get(x_84, 1); +x_114 = lean_ctor_get(x_84, 2); +x_115 = lean_ctor_get(x_84, 3); +x_116 = lean_ctor_get(x_84, 5); +x_117 = lean_ctor_get(x_84, 6); +lean_inc(x_117); +lean_inc(x_116); lean_inc(x_115); lean_inc(x_114); lean_inc(x_113); lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_82); -x_116 = l_Lean_Kernel_enableDiag(x_110, x_74); -x_117 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_111); -lean_ctor_set(x_117, 2, x_112); -lean_ctor_set(x_117, 3, x_113); -lean_ctor_set(x_117, 4, x_55); -lean_ctor_set(x_117, 5, x_114); -lean_ctor_set(x_117, 6, x_115); -x_118 = lean_st_ref_set(x_71, x_117, x_83); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_box(0); -lean_inc(x_71); +lean_dec(x_84); +x_118 = l_Lean_Kernel_enableDiag(x_112, x_76); +x_119 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_113); +lean_ctor_set(x_119, 2, x_114); +lean_ctor_set(x_119, 3, x_115); +lean_ctor_set(x_119, 4, x_56); +lean_ctor_set(x_119, 5, x_116); +lean_ctor_set(x_119, 6, x_117); +x_120 = lean_st_ref_set(x_73, x_119, x_85); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +lean_dec(x_120); +x_122 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_121 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_74, x_4, x_55, x_120, x_69, x_71, x_119); -if (lean_obj_tag(x_121) == 0) +x_123 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_76, x_4, x_56, x_122, x_71, x_73, x_121); +if (lean_obj_tag(x_123) == 0) { -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; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; +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; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; } else { - lean_dec_ref(x_121); - x_124 = lean_box(0); + lean_dec_ref(x_123); + x_126 = lean_box(0); } -x_125 = lean_st_ref_get(x_71, x_123); -lean_dec(x_71); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +x_127 = lean_st_ref_get(x_73, x_125); +lean_dec(x_73); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_129 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_126)) { + x_131 = lean_alloc_ctor(0, 2, 0); } else { - x_129 = x_124; + x_131 = x_126; } -lean_ctor_set(x_129, 0, x_122); -lean_ctor_set(x_129, 1, x_126); -if (lean_is_scalar(x_128)) { - x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_124); +lean_ctor_set(x_131, 1, x_128); +if (lean_is_scalar(x_130)) { + x_132 = lean_alloc_ctor(0, 2, 0); } else { - x_130 = x_128; + x_132 = x_130; } -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_127); -x_7 = x_130; +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_129); +x_7 = x_132; goto block_20; } else { -lean_object* x_131; lean_object* x_132; -lean_dec(x_71); -x_131 = lean_ctor_get(x_121, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_121, 1); -lean_inc(x_132); -lean_dec(x_121); -x_21 = x_131; -x_22 = x_132; +lean_object* x_133; lean_object* x_134; +lean_dec(x_73); +x_133 = lean_ctor_get(x_123, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_123, 1); +lean_inc(x_134); +lean_dec(x_123); +x_21 = x_133; +x_22 = x_134; goto block_49; } } } else { -lean_object* x_133; lean_object* x_134; -x_133 = lean_box(0); -lean_inc(x_71); +lean_object* x_135; lean_object* x_136; +x_135 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_134 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_74, x_4, x_55, x_133, x_69, x_71, x_77); -if (lean_obj_tag(x_134) == 0) +x_136 = l_Lean_Core_instMetaEvalCoreM___rarg___lambda__2(x_3, x_76, x_4, x_56, x_135, x_71, x_73, x_79); +if (lean_obj_tag(x_136) == 0) { -uint8_t x_135; -x_135 = !lean_is_exclusive(x_134); -if (x_135 == 0) +uint8_t x_137; +x_137 = !lean_is_exclusive(x_136); +if (x_137 == 0) { -lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_136 = lean_ctor_get(x_134, 1); -x_137 = lean_st_ref_get(x_71, x_136); -lean_dec(x_71); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) +lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_138 = lean_ctor_get(x_136, 1); +x_139 = lean_st_ref_get(x_73, x_138); +lean_dec(x_73); +x_140 = !lean_is_exclusive(x_139); +if (x_140 == 0) { -lean_object* x_139; -x_139 = lean_ctor_get(x_137, 0); -lean_ctor_set(x_134, 1, x_139); -lean_ctor_set(x_137, 0, x_134); -x_7 = x_137; +lean_object* x_141; +x_141 = lean_ctor_get(x_139, 0); +lean_ctor_set(x_136, 1, x_141); +lean_ctor_set(x_139, 0, x_136); +x_7 = x_139; goto block_20; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_137, 0); -x_141 = lean_ctor_get(x_137, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_137); -lean_ctor_set(x_134, 1, x_140); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_134); -lean_ctor_set(x_142, 1, x_141); -x_7 = x_142; -goto block_20; -} -} -else -{ -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; -x_143 = lean_ctor_get(x_134, 0); -x_144 = lean_ctor_get(x_134, 1); -lean_inc(x_144); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_139, 0); +x_143 = lean_ctor_get(x_139, 1); lean_inc(x_143); -lean_dec(x_134); -x_145 = lean_st_ref_get(x_71, x_144); -lean_dec(x_71); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_148 = x_145; -} else { - lean_dec_ref(x_145); - x_148 = lean_box(0); -} -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_143); -lean_ctor_set(x_149, 1, x_146); -if (lean_is_scalar(x_148)) { - x_150 = lean_alloc_ctor(0, 2, 0); -} else { - x_150 = x_148; -} -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_147); -x_7 = x_150; +lean_inc(x_142); +lean_dec(x_139); +lean_ctor_set(x_136, 1, x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_136); +lean_ctor_set(x_144, 1, x_143); +x_7 = x_144; goto block_20; } } else { -lean_object* x_151; lean_object* x_152; -lean_dec(x_71); -x_151 = lean_ctor_get(x_134, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_134, 1); -lean_inc(x_152); -lean_dec(x_134); -x_21 = x_151; -x_22 = x_152; +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_145 = lean_ctor_get(x_136, 0); +x_146 = lean_ctor_get(x_136, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_136); +x_147 = lean_st_ref_get(x_73, x_146); +lean_dec(x_73); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_150 = x_147; +} else { + lean_dec_ref(x_147); + x_150 = lean_box(0); +} +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_145); +lean_ctor_set(x_151, 1, x_148); +if (lean_is_scalar(x_150)) { + x_152 = lean_alloc_ctor(0, 2, 0); +} else { + x_152 = x_150; +} +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_149); +x_7 = x_152; +goto block_20; +} +} +else +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_73); +x_153 = lean_ctor_get(x_136, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_136, 1); +lean_inc(x_154); +lean_dec(x_136); +x_21 = x_153; +x_22 = x_154; goto block_49; } } @@ -10194,7 +10501,7 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___rarg___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; 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; uint8_t x_19; +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; uint8_t x_20; uint8_t x_21; lean_dec(x_2); x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); @@ -10218,71 +10525,79 @@ x_16 = lean_ctor_get(x_4, 9); lean_inc(x_16); x_17 = lean_ctor_get(x_4, 10); lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_19 = lean_nat_dec_eq(x_10, x_11); -if (x_19 == 0) +x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_19 = lean_ctor_get(x_4, 11); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_21 = lean_nat_dec_eq(x_10, x_11); +if (x_21 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_4); -if (x_20 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +if (x_22 == 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; -x_21 = lean_ctor_get(x_4, 10); -lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 9); -lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 8); +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; +x_23 = lean_ctor_get(x_4, 11); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 7); +x_24 = lean_ctor_get(x_4, 10); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 6); +x_25 = lean_ctor_get(x_4, 9); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 5); +x_26 = lean_ctor_get(x_4, 8); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 4); +x_27 = lean_ctor_get(x_4, 7); lean_dec(x_27); -x_28 = lean_ctor_get(x_4, 3); +x_28 = lean_ctor_get(x_4, 6); lean_dec(x_28); -x_29 = lean_ctor_get(x_4, 2); +x_29 = lean_ctor_get(x_4, 5); lean_dec(x_29); -x_30 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 4); lean_dec(x_30); -x_31 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 3); lean_dec(x_31); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_10, x_32); -lean_dec(x_10); -lean_ctor_set(x_4, 3, x_33); -x_34 = lean_apply_5(x_3, lean_box(0), x_1, x_4, x_5, x_6); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_4); +x_32 = lean_ctor_get(x_4, 2); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 1); +lean_dec(x_33); +x_34 = lean_ctor_get(x_4, 0); +lean_dec(x_34); x_35 = lean_unsigned_to_nat(1u); x_36 = lean_nat_add(x_10, x_35); lean_dec(x_10); -x_37 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_37, 0, x_7); -lean_ctor_set(x_37, 1, x_8); -lean_ctor_set(x_37, 2, x_9); -lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_11); -lean_ctor_set(x_37, 5, x_12); -lean_ctor_set(x_37, 6, x_13); -lean_ctor_set(x_37, 7, x_14); -lean_ctor_set(x_37, 8, x_15); -lean_ctor_set(x_37, 9, x_16); -lean_ctor_set(x_37, 10, x_17); -lean_ctor_set_uint8(x_37, sizeof(void*)*11, x_18); -x_38 = lean_apply_5(x_3, lean_box(0), x_1, x_37, x_5, x_6); -return x_38; +lean_ctor_set(x_4, 3, x_36); +x_37 = lean_apply_5(x_3, lean_box(0), x_1, x_4, x_5, x_6); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_4); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_10, x_38); +lean_dec(x_10); +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_7); +lean_ctor_set(x_40, 1, x_8); +lean_ctor_set(x_40, 2, x_9); +lean_ctor_set(x_40, 3, x_39); +lean_ctor_set(x_40, 4, x_11); +lean_ctor_set(x_40, 5, x_12); +lean_ctor_set(x_40, 6, x_13); +lean_ctor_set(x_40, 7, x_14); +lean_ctor_set(x_40, 8, x_15); +lean_ctor_set(x_40, 9, x_16); +lean_ctor_set(x_40, 10, x_17); +lean_ctor_set(x_40, 11, x_19); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_18); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_20); +x_41 = lean_apply_5(x_3, lean_box(0), x_1, x_40, x_5, x_6); +return x_41; } } else { -lean_object* x_39; +lean_object* x_42; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -10295,10 +10610,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); -x_39 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg(x_12, x_4, x_5, x_6); +x_42 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg(x_12, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); -return x_39; +return x_42; } } } @@ -10351,128 +10666,143 @@ lean_dec(x_3); return x_4; } } -static lean_object* _init_l_Lean_Core_checkInterrupted___rarg___closed__1() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("elaboration interrupted", 23); +x_1 = lean_mk_string_from_bytes("interrupt", 9); return x_1; } } -static lean_object* _init_l_Lean_Core_checkInterrupted___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Core_checkInterrupted___rarg___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_Lean_Core_checkInterrupted___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Core_checkInterrupted___rarg___closed__2; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Core_checkInterrupted___rarg___closed__4() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Core_checkInterrupted___rarg___closed__3; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___rarg(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786_(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = lean_io_check_canceled(x_1); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_unbox(x_3); -lean_dec(x_3); -if (x_4 == 0) +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2; +x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Core_checkInterrupted___closed__1() { +_start: { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) +lean_object* x_1; +x_1 = l_Lean_Core_interruptExceptionId; +return x_1; +} +} +static lean_object* _init_l_Lean_Core_checkInterrupted___closed__2() { +_start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_2, 0); -lean_dec(x_6); -x_7 = lean_box(0); -lean_ctor_set(x_2, 0, x_7); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Core_checkInterrupted___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; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 11); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +return x_6; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); -lean_dec(x_2); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -} -else +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_4, 0); +x_8 = lean_st_ref_get(x_7, x_3); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_unbox(x_9); +lean_dec(x_9); +if (x_10 == 0) { uint8_t x_11; -x_11 = !lean_is_exclusive(x_2); +x_11 = !lean_is_exclusive(x_8); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_8, 0); lean_dec(x_12); -x_13 = l_Lean_Core_checkInterrupted___rarg___closed__4; -lean_ctor_set_tag(x_2, 1); -lean_ctor_set(x_2, 0, x_13); -return x_2; +x_13 = lean_box(0); +lean_ctor_set(x_8, 0, x_13); +return x_8; } else { lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_2, 1); +x_14 = lean_ctor_get(x_8, 1); lean_inc(x_14); -lean_dec(x_2); -x_15 = l_Lean_Core_checkInterrupted___rarg___closed__4; -x_16 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_8); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); return x_16; } } +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_8, 0); +lean_dec(x_18); +x_19 = l_Lean_Core_checkInterrupted___closed__2; +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_19); +return x_8; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 1); +lean_inc(x_20); +lean_dec(x_8); +x_21 = l_Lean_Core_checkInterrupted___closed__2; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; } } -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted(lean_object* x_1, lean_object* x_2) { +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Core_checkInterrupted___rarg), 1, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Core_checkInterrupted___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Core_checkInterrupted(x_1, x_2); +lean_object* x_4; +x_4 = l_Lean_Core_checkInterrupted(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); -return x_3; +return x_4; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1() { _start: { lean_object* x_1; @@ -10480,7 +10810,7 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2() { _start: { lean_object* x_1; @@ -10488,17 +10818,17 @@ x_1 = lean_mk_string_from_bytes("moduleNameAtTimeout", 19); return x_1; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1; -x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2; +x_1 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1; +x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4() { _start: { lean_object* x_1; @@ -10506,13 +10836,13 @@ x_1 = lean_mk_string_from_bytes("include module name in deterministic timeout er return x_1; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 1; -x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1; -x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4; +x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1; +x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -10521,25 +10851,25 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6() { +static lean_object* _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__5; x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_130____closed__4; -x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1; -x_4 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2; +x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1; +x_4 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3; -x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5; -x_4 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6; +x_2 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3; +x_3 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5; +x_4 = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6; x_5 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(x_2, x_3, x_4, x_1); return x_5; } @@ -10835,47 +11165,59 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_Core_checkSystem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_io_check_canceled(x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_5; +x_5 = lean_ctor_get(x_2, 11); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_dec(x_5); -x_9 = l_Lean_Core_checkMaxHeartbeats(x_1, x_2, x_3, x_8); -return x_9; +lean_object* x_6; +x_6 = l_Lean_Core_checkMaxHeartbeats(x_1, x_2, x_3, x_4); +return x_6; } else { -uint8_t x_10; -lean_dec(x_1); -x_10 = !lean_is_exclusive(x_5); +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_st_ref_get(x_7, x_4); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_unbox(x_9); +lean_dec(x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_5, 0); -lean_dec(x_11); -x_12 = l_Lean_Core_checkInterrupted___rarg___closed__4; -lean_ctor_set_tag(x_5, 1); -lean_ctor_set(x_5, 0, x_12); -return x_5; +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +x_12 = l_Lean_Core_checkMaxHeartbeats(x_1, x_2, x_3, x_11); +return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); -lean_dec(x_5); -x_14 = l_Lean_Core_checkInterrupted___rarg___closed__4; -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; +uint8_t x_13; +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = l_Lean_Core_checkInterrupted___closed__2; +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_15); +return x_8; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_dec(x_8); +x_17 = l_Lean_Core_checkInterrupted___closed__2; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} } } } @@ -10912,7 +11254,7 @@ return x_10; } else { -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; uint8_t x_21; lean_object* x_22; lean_object* x_23; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; x_11 = lean_ctor_get(x_2, 0); x_12 = lean_ctor_get(x_2, 1); x_13 = lean_ctor_get(x_2, 2); @@ -10923,7 +11265,10 @@ x_17 = lean_ctor_get(x_2, 6); x_18 = lean_ctor_get(x_2, 7); x_19 = lean_ctor_get(x_2, 9); x_20 = lean_ctor_get(x_2, 10); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_22 = lean_ctor_get(x_2, 11); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -10935,21 +11280,23 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_dec(x_2); -x_22 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_12); -lean_ctor_set(x_22, 2, x_13); -lean_ctor_set(x_22, 3, x_14); -lean_ctor_set(x_22, 4, x_15); -lean_ctor_set(x_22, 5, x_16); -lean_ctor_set(x_22, 6, x_17); -lean_ctor_set(x_22, 7, x_18); -lean_ctor_set(x_22, 8, x_6); -lean_ctor_set(x_22, 9, x_19); -lean_ctor_set(x_22, 10, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*11, x_21); -x_23 = lean_apply_3(x_1, x_22, x_3, x_7); -return x_23; +x_24 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_12); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_14); +lean_ctor_set(x_24, 4, x_15); +lean_ctor_set(x_24, 5, x_16); +lean_ctor_set(x_24, 6, x_17); +lean_ctor_set(x_24, 7, x_18); +lean_ctor_set(x_24, 8, x_6); +lean_ctor_set(x_24, 9, x_19); +lean_ctor_set(x_24, 10, x_20); +lean_ctor_set(x_24, 11, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_24, sizeof(void*)*12 + 1, x_23); +x_25 = lean_apply_3(x_1, x_24, x_3, x_7); +return x_25; } } } @@ -11100,7 +11447,7 @@ LEAN_EXPORT lean_object* l_Lean_Core_resetMessageLog(lean_object* x_1, lean_obje _start: { lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_Core_State_traceState___default___closed__3; +x_4 = l_Lean_Core_State_messages___default___closed__1; x_5 = l_Lean_Core_setMessageLog(x_4, x_1, x_2, x_3); return x_5; } @@ -11178,35 +11525,98 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Core_getAndEmptyMessageLog___rarg(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; uint8_t x_7; +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; x_3 = lean_st_ref_take(x_1, x_2); 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 = lean_st_ref_set(x_1, x_4, x_5); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -lean_dec(x_8); +lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_7 = lean_ctor_get(x_4, 5); +lean_inc(x_7); +x_8 = l_Lean_MessageLog_hasErrors(x_7); x_9 = l_Lean_Core_State_traceState___default___closed__3; -lean_ctor_set(x_6, 0, x_9); -return x_6; +x_10 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_8); +lean_ctor_set(x_4, 5, x_10); +x_11 = lean_st_ref_set(x_1, x_4, x_5); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_7); +return x_11; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_6, 1); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l_Lean_Core_State_traceState___default___closed__3; -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -return x_12; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +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; 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_16 = lean_ctor_get(x_4, 0); +x_17 = lean_ctor_get(x_4, 1); +x_18 = lean_ctor_get(x_4, 2); +x_19 = lean_ctor_get(x_4, 3); +x_20 = lean_ctor_get(x_4, 4); +x_21 = lean_ctor_get(x_4, 5); +x_22 = lean_ctor_get(x_4, 6); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_4); +lean_inc(x_21); +x_23 = l_Lean_MessageLog_hasErrors(x_21); +x_24 = l_Lean_Core_State_traceState___default___closed__3; +x_25 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_23); +x_26 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_26, 0, x_16); +lean_ctor_set(x_26, 1, x_17); +lean_ctor_set(x_26, 2, x_18); +lean_ctor_set(x_26, 3, x_19); +lean_ctor_set(x_26, 4, x_20); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_22); +x_27 = lean_st_ref_set(x_1, x_26, x_5); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_29 = x_27; +} else { + lean_dec_ref(x_27); + x_29 = lean_box(0); +} +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_29; +} +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_28); +return x_30; } } } @@ -11273,7 +11683,7 @@ x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_6, 5); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_7); +x_8 = l_Lean_MessageLog_hasErrors(x_7); x_9 = lean_box(x_8); lean_ctor_set(x_4, 0, x_9); return x_4; @@ -11289,7 +11699,7 @@ lean_dec(x_4); x_12 = lean_ctor_get(x_10, 5); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); +x_13 = l_Lean_MessageLog_hasErrors(x_12); x_14 = lean_box(x_13); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); @@ -11298,212 +11708,364 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_1); -if (x_5 == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 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; lean_object* x_13; uint8_t x_14; -x_6 = lean_ctor_get(x_1, 4); -x_7 = lean_ctor_get(x_2, 6); -x_8 = lean_ctor_get(x_2, 7); +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; uint8_t x_15; +x_7 = lean_ctor_get(x_1, 4); +x_8 = lean_ctor_get(x_3, 6); +x_9 = lean_ctor_get(x_3, 7); +lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_6); -lean_ctor_set(x_1, 4, x_10); -x_11 = lean_st_ref_take(x_3, x_4); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_7); +lean_ctor_set(x_1, 4, x_11); +x_12 = lean_st_ref_take(x_4, x_5); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); -x_14 = !lean_is_exclusive(x_12); -if (x_14 == 0) +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_12, 5); -x_16 = l_Lean_PersistentArray_push___rarg(x_15, x_1); -lean_ctor_set(x_12, 5, x_16); -x_17 = lean_st_ref_set(x_3, x_12, x_13); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_13, 5); +x_17 = l_Lean_MessageLog_add(x_1, x_16); +lean_ctor_set(x_13, 5, x_17); +x_18 = lean_st_ref_set(x_4, x_13, x_14); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -x_20 = lean_box(0); -lean_ctor_set(x_17, 0, x_20); -return x_17; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_18, 0, x_21); +return x_18; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_box(0); -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; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; } } 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; 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_24 = lean_ctor_get(x_12, 0); -x_25 = lean_ctor_get(x_12, 1); -x_26 = lean_ctor_get(x_12, 2); -x_27 = lean_ctor_get(x_12, 3); -x_28 = lean_ctor_get(x_12, 4); -x_29 = lean_ctor_get(x_12, 5); -x_30 = lean_ctor_get(x_12, 6); +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; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_13, 2); +x_28 = lean_ctor_get(x_13, 3); +x_29 = lean_ctor_get(x_13, 4); +x_30 = lean_ctor_get(x_13, 5); +x_31 = lean_ctor_get(x_13, 6); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_12); -x_31 = l_Lean_PersistentArray_push___rarg(x_29, x_1); -x_32 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_32, 0, x_24); -lean_ctor_set(x_32, 1, x_25); -lean_ctor_set(x_32, 2, x_26); -lean_ctor_set(x_32, 3, x_27); -lean_ctor_set(x_32, 4, x_28); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_30); -x_33 = lean_st_ref_set(x_3, x_32, x_13); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_35 = x_33; +lean_dec(x_13); +x_32 = l_Lean_MessageLog_add(x_1, x_30); +x_33 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_26); +lean_ctor_set(x_33, 2, x_27); +lean_ctor_set(x_33, 3, x_28); +lean_ctor_set(x_33, 4, x_29); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_31); +x_34 = lean_st_ref_set(x_4, x_33, x_14); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; } else { - lean_dec_ref(x_33); - x_35 = lean_box(0); + lean_dec_ref(x_34); + x_36 = lean_box(0); } -x_36 = lean_box(0); -if (lean_is_scalar(x_35)) { - x_37 = lean_alloc_ctor(0, 2, 0); +x_37 = lean_box(0); +if (lean_is_scalar(x_36)) { + x_38 = lean_alloc_ctor(0, 2, 0); } else { - x_37 = x_35; + x_38 = x_36; } -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -return x_37; +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t 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; -x_38 = lean_ctor_get(x_1, 0); -x_39 = lean_ctor_get(x_1, 1); -x_40 = lean_ctor_get(x_1, 2); -x_41 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -x_42 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_43 = lean_ctor_get(x_1, 3); -x_44 = lean_ctor_get(x_1, 4); +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t 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; 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; +x_39 = lean_ctor_get(x_1, 0); +x_40 = lean_ctor_get(x_1, 1); +x_41 = lean_ctor_get(x_1, 2); +x_42 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_43 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); +x_44 = lean_ctor_get(x_1, 3); +x_45 = lean_ctor_get(x_1, 4); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); +lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); lean_dec(x_1); -x_45 = lean_ctor_get(x_2, 6); -x_46 = lean_ctor_get(x_2, 7); +x_46 = lean_ctor_get(x_3, 6); +x_47 = lean_ctor_get(x_3, 7); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_44); -x_49 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_49, 0, x_38); -lean_ctor_set(x_49, 1, x_39); -lean_ctor_set(x_49, 2, x_40); -lean_ctor_set(x_49, 3, x_43); -lean_ctor_set(x_49, 4, x_48); -lean_ctor_set_uint8(x_49, sizeof(void*)*5, x_41); -lean_ctor_set_uint8(x_49, sizeof(void*)*5 + 1, x_42); -x_50 = lean_st_ref_take(x_3, x_4); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +x_50 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_50, 0, x_39); +lean_ctor_set(x_50, 1, x_40); +lean_ctor_set(x_50, 2, x_41); +lean_ctor_set(x_50, 3, x_44); +lean_ctor_set(x_50, 4, x_49); +lean_ctor_set_uint8(x_50, sizeof(void*)*5, x_42); +lean_ctor_set_uint8(x_50, sizeof(void*)*5 + 1, x_43); +x_51 = lean_st_ref_take(x_4, x_5); +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_ctor_get(x_51, 0); +x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); +lean_dec(x_51); +x_54 = lean_ctor_get(x_52, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_51, 2); +x_55 = lean_ctor_get(x_52, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_51, 3); +x_56 = lean_ctor_get(x_52, 2); lean_inc(x_56); -x_57 = lean_ctor_get(x_51, 4); +x_57 = lean_ctor_get(x_52, 3); lean_inc(x_57); -x_58 = lean_ctor_get(x_51, 5); +x_58 = lean_ctor_get(x_52, 4); lean_inc(x_58); -x_59 = lean_ctor_get(x_51, 6); +x_59 = lean_ctor_get(x_52, 5); lean_inc(x_59); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - lean_ctor_release(x_51, 2); - lean_ctor_release(x_51, 3); - lean_ctor_release(x_51, 4); - lean_ctor_release(x_51, 5); - lean_ctor_release(x_51, 6); - x_60 = x_51; +x_60 = lean_ctor_get(x_52, 6); +lean_inc(x_60); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + lean_ctor_release(x_52, 2); + lean_ctor_release(x_52, 3); + lean_ctor_release(x_52, 4); + lean_ctor_release(x_52, 5); + lean_ctor_release(x_52, 6); + x_61 = x_52; } else { - lean_dec_ref(x_51); - x_60 = lean_box(0); + lean_dec_ref(x_52); + x_61 = lean_box(0); } -x_61 = l_Lean_PersistentArray_push___rarg(x_58, x_49); -if (lean_is_scalar(x_60)) { - x_62 = lean_alloc_ctor(0, 7, 0); +x_62 = l_Lean_MessageLog_add(x_50, x_59); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 7, 0); } else { - x_62 = x_60; + x_63 = x_61; } -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_54); -lean_ctor_set(x_62, 2, x_55); -lean_ctor_set(x_62, 3, x_56); -lean_ctor_set(x_62, 4, x_57); -lean_ctor_set(x_62, 5, x_61); -lean_ctor_set(x_62, 6, x_59); -x_63 = lean_st_ref_set(x_3, x_62, x_52); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_65 = x_63; +lean_ctor_set(x_63, 0, x_54); +lean_ctor_set(x_63, 1, x_55); +lean_ctor_set(x_63, 2, x_56); +lean_ctor_set(x_63, 3, x_57); +lean_ctor_set(x_63, 4, x_58); +lean_ctor_set(x_63, 5, x_62); +lean_ctor_set(x_63, 6, x_60); +x_64 = lean_st_ref_set(x_4, x_63, x_53); +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_63); - x_65 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -x_66 = lean_box(0); -if (lean_is_scalar(x_65)) { - x_67 = lean_alloc_ctor(0, 2, 0); +x_67 = lean_box(0); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_65; + x_68 = x_66; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +} +} +static lean_object* _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_Core_instMonadLogCoreM___lambda__5(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadLogCoreM___lambda__5___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Core_instMonadLogCoreM___lambda__4(x_1, x_6, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_1, 4); +lean_inc(x_8); +x_9 = l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1; +x_10 = l_Lean_MessageData_hasTag(x_9, x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = l_Lean_Core_instMonadLogCoreM___lambda__4(x_1, x_13, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_14; } -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -return x_67; } } } @@ -11535,7 +12097,7 @@ static lean_object* _init_l_Lean_Core_instMonadLogCoreM___closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadLogCoreM___lambda__4___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Core_instMonadLogCoreM___lambda__6), 4, 0); return x_1; } } @@ -11595,14 +12157,25 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__4___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_5; -x_5 = l_Lean_Core_instMonadLogCoreM___lambda__4(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Lean_Core_instMonadLogCoreM___lambda__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_5; +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_instMonadLogCoreM___lambda__5___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Core_instMonadLogCoreM___lambda__5(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_withAtLeastMaxRecDepth___rarg___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) { @@ -11633,7 +12206,7 @@ return x_11; } else { -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; uint8_t x_23; uint8_t x_24; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_4, 0); x_13 = lean_ctor_get(x_4, 1); x_14 = lean_ctor_get(x_4, 2); @@ -11645,7 +12218,10 @@ x_19 = lean_ctor_get(x_4, 7); x_20 = lean_ctor_get(x_4, 8); x_21 = lean_ctor_get(x_4, 9); x_22 = lean_ctor_get(x_4, 10); -x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_24 = lean_ctor_get(x_4, 11); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -11658,47 +12234,51 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_4); -x_24 = lean_nat_dec_le(x_1, x_16); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -lean_dec(x_16); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_1); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = lean_apply_3(x_3, x_25, x_5, x_6); -return x_26; -} -else +x_26 = lean_nat_dec_le(x_1, x_16); +if (x_26 == 0) { lean_object* x_27; lean_object* x_28; -lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); +lean_dec(x_16); +x_27 = lean_alloc_ctor(0, 12, 2); lean_ctor_set(x_27, 0, x_12); lean_ctor_set(x_27, 1, x_13); lean_ctor_set(x_27, 2, x_14); lean_ctor_set(x_27, 3, x_15); -lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 4, x_1); lean_ctor_set(x_27, 5, x_17); lean_ctor_set(x_27, 6, x_18); lean_ctor_set(x_27, 7, x_19); lean_ctor_set(x_27, 8, x_20); lean_ctor_set(x_27, 9, x_21); lean_ctor_set(x_27, 10, x_22); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_23); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); x_28 = lean_apply_3(x_3, x_27, x_5, x_6); return x_28; } +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_1); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_12); +lean_ctor_set(x_29, 1, x_13); +lean_ctor_set(x_29, 2, x_14); +lean_ctor_set(x_29, 3, x_15); +lean_ctor_set(x_29, 4, x_16); +lean_ctor_set(x_29, 5, x_17); +lean_ctor_set(x_29, 6, x_18); +lean_ctor_set(x_29, 7, x_19); +lean_ctor_set(x_29, 8, x_20); +lean_ctor_set(x_29, 9, x_21); +lean_ctor_set(x_29, 10, x_22); +lean_ctor_set(x_29, 11, x_24); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_25); +x_30 = lean_apply_3(x_3, x_29, x_5, x_6); +return x_30; +} } } } @@ -13617,7 +14197,7 @@ lean_dec(x_5); return x_6; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1() { _start: { lean_object* x_1; @@ -13625,7 +14205,7 @@ x_1 = lean_mk_string_from_bytes("compiler", 8); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2() { _start: { lean_object* x_1; @@ -13633,17 +14213,17 @@ x_1 = lean_mk_string_from_bytes("enableNew", 9); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1; -x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2; +x_1 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1; +x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4() { _start: { lean_object* x_1; @@ -13651,13 +14231,13 @@ x_1 = lean_mk_string_from_bytes("(compiler) enable the new code generator, this return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 0; -x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1; -x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4; +x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1; +x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -13666,24 +14246,24 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__5; -x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1; -x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2; +x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1; +x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_3790_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_4310_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3; -x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5; -x_4 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6; +x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3; +x_3 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5; +x_4 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6; x_5 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(x_2, x_3, x_4, x_1); return x_5; } @@ -14095,7 +14675,7 @@ 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; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t 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; size_t x_89; size_t 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; 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_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; uint8_t 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; lean_object* x_89; lean_object* x_90; size_t x_91; size_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; 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; x_69 = lean_ctor_get(x_5, 0); x_70 = lean_ctor_get(x_5, 1); x_71 = lean_ctor_get(x_5, 2); @@ -14107,7 +14687,10 @@ x_76 = lean_ctor_get(x_5, 7); x_77 = lean_ctor_get(x_5, 8); x_78 = lean_ctor_get(x_5, 9); x_79 = lean_ctor_get(x_5, 10); -x_80 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_80 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_81 = lean_ctor_get(x_5, 11); +x_82 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_81); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); @@ -14120,125 +14703,127 @@ lean_inc(x_71); lean_inc(x_70); lean_inc(x_69); lean_dec(x_5); -x_81 = l_Lean_replaceRef(x_3, x_74); +x_83 = l_Lean_replaceRef(x_3, x_74); lean_dec(x_74); -x_82 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_82, 0, x_69); -lean_ctor_set(x_82, 1, x_70); -lean_ctor_set(x_82, 2, x_71); -lean_ctor_set(x_82, 3, x_72); -lean_ctor_set(x_82, 4, x_73); -lean_ctor_set(x_82, 5, x_81); -lean_ctor_set(x_82, 6, x_75); -lean_ctor_set(x_82, 7, x_76); -lean_ctor_set(x_82, 8, x_77); -lean_ctor_set(x_82, 9, x_78); -lean_ctor_set(x_82, 10, x_79); -lean_ctor_set_uint8(x_82, sizeof(void*)*11, x_80); -x_83 = lean_st_ref_get(x_6, x_7); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_ctor_get(x_84, 3); +x_84 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_84, 0, x_69); +lean_ctor_set(x_84, 1, x_70); +lean_ctor_set(x_84, 2, x_71); +lean_ctor_set(x_84, 3, x_72); +lean_ctor_set(x_84, 4, x_73); +lean_ctor_set(x_84, 5, x_83); +lean_ctor_set(x_84, 6, x_75); +lean_ctor_set(x_84, 7, x_76); +lean_ctor_set(x_84, 8, x_77); +lean_ctor_set(x_84, 9, x_78); +lean_ctor_set(x_84, 10, x_79); +lean_ctor_set(x_84, 11, x_81); +lean_ctor_set_uint8(x_84, sizeof(void*)*12, x_80); +lean_ctor_set_uint8(x_84, sizeof(void*)*12 + 1, x_82); +x_85 = lean_st_ref_get(x_6, x_7); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_ctor_get(x_86, 3); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_PersistentArray_toArray___rarg(x_88); +x_90 = lean_array_get_size(x_89); +x_91 = lean_usize_of_nat(x_90); +lean_dec(x_90); +x_92 = 0; +x_93 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_91, x_92, x_89); +x_94 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_94, 0, x_2); +lean_ctor_set(x_94, 1, x_4); +lean_ctor_set(x_94, 2, x_93); +x_95 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_94, x_84, x_6, x_87); lean_dec(x_84); -x_87 = l_Lean_PersistentArray_toArray___rarg(x_86); -x_88 = lean_array_get_size(x_87); -x_89 = lean_usize_of_nat(x_88); -lean_dec(x_88); -x_90 = 0; -x_91 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_89, x_90, x_87); -x_92 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_92, 0, x_2); -lean_ctor_set(x_92, 1, x_4); -lean_ctor_set(x_92, 2, x_91); -x_93 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_92, x_82, x_6, x_85); -lean_dec(x_82); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_st_ref_take(x_6, x_95); -x_97 = lean_ctor_get(x_96, 0); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_99 = x_96; -} else { - lean_dec_ref(x_96); - x_99 = lean_box(0); -} -x_100 = lean_ctor_get(x_97, 0); +lean_dec(x_95); +x_98 = lean_st_ref_take(x_6, x_97); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_97, 1); -lean_inc(x_101); -x_102 = lean_ctor_get(x_97, 2); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = lean_ctor_get(x_99, 0); lean_inc(x_102); -x_103 = lean_ctor_get(x_97, 4); +x_103 = lean_ctor_get(x_99, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_97, 5); +x_104 = lean_ctor_get(x_99, 2); lean_inc(x_104); -x_105 = lean_ctor_get(x_97, 6); +x_105 = lean_ctor_get(x_99, 4); lean_inc(x_105); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - lean_ctor_release(x_97, 2); - lean_ctor_release(x_97, 3); - lean_ctor_release(x_97, 4); - lean_ctor_release(x_97, 5); - lean_ctor_release(x_97, 6); - x_106 = x_97; +x_106 = lean_ctor_get(x_99, 5); +lean_inc(x_106); +x_107 = lean_ctor_get(x_99, 6); +lean_inc(x_107); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + lean_ctor_release(x_99, 2); + lean_ctor_release(x_99, 3); + lean_ctor_release(x_99, 4); + lean_ctor_release(x_99, 5); + lean_ctor_release(x_99, 6); + x_108 = x_99; } else { - lean_dec_ref(x_97); - x_106 = lean_box(0); + lean_dec_ref(x_99); + x_108 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_101)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_99; + x_109 = x_101; } -lean_ctor_set(x_107, 0, x_3); -lean_ctor_set(x_107, 1, x_94); -x_108 = l_Lean_PersistentArray_push___rarg(x_1, x_107); -if (lean_is_scalar(x_106)) { - x_109 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_109, 0, x_3); +lean_ctor_set(x_109, 1, x_96); +x_110 = l_Lean_PersistentArray_push___rarg(x_1, x_109); +if (lean_is_scalar(x_108)) { + x_111 = lean_alloc_ctor(0, 7, 0); } else { - x_109 = x_106; + x_111 = x_108; } -lean_ctor_set(x_109, 0, x_100); -lean_ctor_set(x_109, 1, x_101); -lean_ctor_set(x_109, 2, x_102); -lean_ctor_set(x_109, 3, x_108); -lean_ctor_set(x_109, 4, x_103); -lean_ctor_set(x_109, 5, x_104); -lean_ctor_set(x_109, 6, x_105); -x_110 = lean_st_ref_set(x_6, x_109, x_98); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_112 = x_110; -} else { - lean_dec_ref(x_110); - x_112 = lean_box(0); -} -x_113 = lean_box(0); -if (lean_is_scalar(x_112)) { - x_114 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_111, 0, x_102); +lean_ctor_set(x_111, 1, x_103); +lean_ctor_set(x_111, 2, x_104); +lean_ctor_set(x_111, 3, x_110); +lean_ctor_set(x_111, 4, x_105); +lean_ctor_set(x_111, 5, x_106); +lean_ctor_set(x_111, 6, x_107); +x_112 = lean_st_ref_set(x_6, x_111, x_100); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); x_114 = x_112; +} else { + lean_dec_ref(x_112); + x_114 = lean_box(0); } -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -return x_114; +x_115 = lean_box(0); +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_115); +lean_ctor_set(x_116, 1, x_113); +return x_116; } } } @@ -16852,7 +17437,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1; +x_2 = l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } @@ -17492,7 +18077,7 @@ LEAN_EXPORT lean_object* l_Lean_isDiagnosticsEnabled(lean_object* x_1, lean_obje _start: { uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*12); x_5 = lean_box(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); @@ -17526,7 +18111,7 @@ x_13 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; x_16 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_15); x_17 = lean_st_ref_get(x_8, x_9); @@ -17649,7 +18234,7 @@ return x_47; } else { -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; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; +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; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; x_53 = lean_ctor_get(x_7, 0); x_54 = lean_ctor_get(x_7, 1); x_55 = lean_ctor_get(x_7, 3); @@ -17659,6 +18244,9 @@ x_58 = lean_ctor_get(x_7, 7); x_59 = lean_ctor_get(x_7, 8); x_60 = lean_ctor_get(x_7, 9); x_61 = lean_ctor_get(x_7, 10); +x_62 = lean_ctor_get(x_7, 11); +x_63 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); @@ -17669,133 +18257,135 @@ lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); lean_dec(x_7); -x_62 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; -x_63 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_62); -x_64 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_64, 0, x_53); -lean_ctor_set(x_64, 1, x_54); -lean_ctor_set(x_64, 2, x_1); -lean_ctor_set(x_64, 3, x_55); -lean_ctor_set(x_64, 4, x_63); -lean_ctor_set(x_64, 5, x_56); -lean_ctor_set(x_64, 6, x_57); -lean_ctor_set(x_64, 7, x_58); -lean_ctor_set(x_64, 8, x_59); -lean_ctor_set(x_64, 9, x_60); -lean_ctor_set(x_64, 10, x_61); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_2); -x_65 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; -x_66 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_65); -x_67 = lean_st_ref_get(x_8, x_9); -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_70 = lean_ctor_get(x_68, 0); +x_64 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1___closed__1; +x_65 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_64); +x_66 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_66, 0, x_53); +lean_ctor_set(x_66, 1, x_54); +lean_ctor_set(x_66, 2, x_1); +lean_ctor_set(x_66, 3, x_55); +lean_ctor_set(x_66, 4, x_65); +lean_ctor_set(x_66, 5, x_56); +lean_ctor_set(x_66, 6, x_57); +lean_ctor_set(x_66, 7, x_58); +lean_ctor_set(x_66, 8, x_59); +lean_ctor_set(x_66, 9, x_60); +lean_ctor_set(x_66, 10, x_61); +lean_ctor_set(x_66, 11, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_66, sizeof(void*)*12 + 1, x_63); +x_67 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___closed__1; +x_68 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_67); +x_69 = lean_st_ref_get(x_8, x_9); +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_Kernel_isDiagnosticsEnabled(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_ctor_get(x_70, 0); +lean_inc(x_72); lean_dec(x_70); -if (x_71 == 0) +x_73 = l_Lean_Kernel_isDiagnosticsEnabled(x_72); +lean_dec(x_72); +if (x_73 == 0) { -if (x_66 == 0) -{ -uint8_t x_92; -x_92 = 1; -x_72 = x_92; -goto block_91; -} -else -{ -uint8_t x_93; -x_93 = 0; -x_72 = x_93; -goto block_91; -} -} -else -{ -if (x_66 == 0) +if (x_68 == 0) { uint8_t x_94; -x_94 = 0; -x_72 = x_94; -goto block_91; +x_94 = 1; +x_74 = x_94; +goto block_93; } else { uint8_t x_95; -x_95 = 1; -x_72 = x_95; -goto block_91; +x_95 = 0; +x_74 = x_95; +goto block_93; } } -block_91: -{ -if (x_72 == 0) -{ -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; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_73 = lean_st_ref_take(x_8, x_69); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = lean_ctor_get(x_74, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 1); -lean_inc(x_77); -x_78 = lean_ctor_get(x_74, 2); -lean_inc(x_78); -x_79 = lean_ctor_get(x_74, 3); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 5); -lean_inc(x_80); -x_81 = lean_ctor_get(x_74, 6); -lean_inc(x_81); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - lean_ctor_release(x_74, 2); - lean_ctor_release(x_74, 3); - lean_ctor_release(x_74, 4); - lean_ctor_release(x_74, 5); - lean_ctor_release(x_74, 6); - x_82 = x_74; -} else { - lean_dec_ref(x_74); - x_82 = lean_box(0); -} -x_83 = l_Lean_Kernel_enableDiag(x_76, x_66); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 7, 0); -} else { - x_84 = x_82; -} -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_77); -lean_ctor_set(x_84, 2, x_78); -lean_ctor_set(x_84, 3, x_79); -lean_ctor_set(x_84, 4, x_5); -lean_ctor_set(x_84, 5, x_80); -lean_ctor_set(x_84, 6, x_81); -x_85 = lean_st_ref_set(x_8, x_84, x_75); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = lean_box(0); -x_88 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_3, x_66, x_4, x_87, x_64, x_8, x_86); -return x_88; -} else { -lean_object* x_89; lean_object* x_90; -lean_dec(x_5); +if (x_68 == 0) +{ +uint8_t x_96; +x_96 = 0; +x_74 = x_96; +goto block_93; +} +else +{ +uint8_t x_97; +x_97 = 1; +x_74 = x_97; +goto block_93; +} +} +block_93: +{ +if (x_74 == 0) +{ +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; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_75 = lean_st_ref_take(x_8, x_71); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 2); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 3); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 5); +lean_inc(x_82); +x_83 = lean_ctor_get(x_76, 6); +lean_inc(x_83); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + lean_ctor_release(x_76, 4); + lean_ctor_release(x_76, 5); + lean_ctor_release(x_76, 6); + x_84 = x_76; +} else { + lean_dec_ref(x_76); + x_84 = lean_box(0); +} +x_85 = l_Lean_Kernel_enableDiag(x_78, x_68); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 7, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_79); +lean_ctor_set(x_86, 2, x_80); +lean_ctor_set(x_86, 3, x_81); +lean_ctor_set(x_86, 4, x_5); +lean_ctor_set(x_86, 5, x_82); +lean_ctor_set(x_86, 6, x_83); +x_87 = lean_st_ref_set(x_8, x_86, x_77); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); x_89 = lean_box(0); -x_90 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_3, x_66, x_4, x_89, x_64, x_8, x_69); +x_90 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_3, x_68, x_4, x_89, x_66, x_8, x_88); return x_90; } +else +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_5); +x_91 = lean_box(0); +x_92 = l_Lean_Core_instMonadWithOptionsCoreM___rarg___lambda__1(x_3, x_68, x_4, x_91, x_66, x_8, x_71); +return x_92; +} } } } @@ -17830,103 +18420,107 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_ImportM_runCoreM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_17; lean_object* x_18; 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; uint8_t 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; uint8_t x_75; uint8_t x_76; +lean_object* x_4; lean_object* x_17; lean_object* x_18; 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; uint8_t 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; uint8_t x_78; x_46 = lean_box(0); -x_47 = lean_ctor_get(x_2, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_2, 1); +x_47 = lean_box(0); +x_48 = lean_ctor_get(x_2, 0); lean_inc(x_48); +x_49 = lean_ctor_get(x_2, 1); +lean_inc(x_49); lean_dec(x_2); -x_49 = l_Lean_Core_State_nextMacroScope___default___closed__1; -x_50 = l_Lean_Core_State_ngen___default___closed__3; -x_51 = l_Lean_Core_State_traceState___default___closed__3; -x_52 = l_Lean_Core_instInhabitedCache___closed__1; -x_53 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__3; -x_54 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_54, 0, x_47); -lean_ctor_set(x_54, 1, x_49); -lean_ctor_set(x_54, 2, x_50); -lean_ctor_set(x_54, 3, x_51); -lean_ctor_set(x_54, 4, x_52); -lean_ctor_set(x_54, 5, x_51); -lean_ctor_set(x_54, 6, x_53); -x_55 = lean_io_get_num_heartbeats(x_3); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_ImportM_runCoreM___rarg___closed__2; -x_59 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__2; -x_60 = lean_unsigned_to_nat(0u); -x_61 = lean_unsigned_to_nat(1000u); -x_62 = lean_box(0); -x_63 = lean_box(0); -x_64 = l_Lean_ImportM_runCoreM___rarg___closed__1; -x_65 = l_Lean_firstFrontendMacroScope; -x_66 = 0; -x_67 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_67, 0, x_58); -lean_ctor_set(x_67, 1, x_59); -lean_ctor_set(x_67, 2, x_46); -lean_ctor_set(x_67, 3, x_60); -lean_ctor_set(x_67, 4, x_61); -lean_ctor_set(x_67, 5, x_62); -lean_ctor_set(x_67, 6, x_63); -lean_ctor_set(x_67, 7, x_46); -lean_ctor_set(x_67, 8, x_56); -lean_ctor_set(x_67, 9, x_64); -lean_ctor_set(x_67, 10, x_65); -lean_ctor_set_uint8(x_67, sizeof(void*)*11, x_66); -x_68 = lean_st_mk_ref(x_54, x_57); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_st_ref_get(x_69, x_70); -x_72 = lean_ctor_get(x_71, 0); +x_50 = l_Lean_Core_State_nextMacroScope___default___closed__1; +x_51 = l_Lean_Core_State_ngen___default___closed__3; +x_52 = l_Lean_Core_State_traceState___default___closed__3; +x_53 = l_Lean_Core_instInhabitedCache___closed__1; +x_54 = l_Lean_Core_State_messages___default___closed__1; +x_55 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__3; +x_56 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_56, 0, x_48); +lean_ctor_set(x_56, 1, x_50); +lean_ctor_set(x_56, 2, x_51); +lean_ctor_set(x_56, 3, x_52); +lean_ctor_set(x_56, 4, x_53); +lean_ctor_set(x_56, 5, x_54); +lean_ctor_set(x_56, 6, x_55); +x_57 = lean_io_get_num_heartbeats(x_3); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = l_Lean_ImportM_runCoreM___rarg___closed__2; +x_61 = l_Lean_Core_instMetaEvalCoreM___rarg___closed__2; +x_62 = lean_unsigned_to_nat(0u); +x_63 = lean_unsigned_to_nat(1000u); +x_64 = lean_box(0); +x_65 = lean_box(0); +x_66 = l_Lean_ImportM_runCoreM___rarg___closed__1; +x_67 = l_Lean_firstFrontendMacroScope; +x_68 = 0; +x_69 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_61); +lean_ctor_set(x_69, 2, x_46); +lean_ctor_set(x_69, 3, x_62); +lean_ctor_set(x_69, 4, x_63); +lean_ctor_set(x_69, 5, x_64); +lean_ctor_set(x_69, 6, x_65); +lean_ctor_set(x_69, 7, x_46); +lean_ctor_set(x_69, 8, x_58); +lean_ctor_set(x_69, 9, x_66); +lean_ctor_set(x_69, 10, x_67); +lean_ctor_set(x_69, 11, x_47); +lean_ctor_set_uint8(x_69, sizeof(void*)*12, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*12 + 1, x_68); +x_70 = lean_st_mk_ref(x_56, x_59); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_ctor_get(x_72, 0); +lean_dec(x_70); +x_73 = lean_st_ref_get(x_71, x_72); +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Kernel_isDiagnosticsEnabled(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); lean_dec(x_74); -if (x_75 == 0) -{ -uint8_t x_153; -x_153 = l_Lean_ImportM_runCoreM___rarg___closed__3; -if (x_153 == 0) -{ -uint8_t x_154; -x_154 = 1; -x_76 = x_154; -goto block_152; -} -else -{ -x_76 = x_66; -goto block_152; -} -} -else +x_77 = l_Lean_Kernel_isDiagnosticsEnabled(x_76); +lean_dec(x_76); +if (x_77 == 0) { uint8_t x_155; x_155 = l_Lean_ImportM_runCoreM___rarg___closed__3; if (x_155 == 0) { -x_76 = x_66; -goto block_152; +uint8_t x_156; +x_156 = 1; +x_78 = x_156; +goto block_154; } else { -uint8_t x_156; -x_156 = 1; -x_76 = x_156; -goto block_152; +x_78 = x_68; +goto block_154; +} +} +else +{ +uint8_t x_157; +x_157 = l_Lean_ImportM_runCoreM___rarg___closed__3; +if (x_157 == 0) +{ +x_78 = x_68; +goto block_154; +} +else +{ +uint8_t x_158; +x_158 = 1; +x_78 = x_158; +goto block_154; } } block_16: @@ -18092,305 +18686,305 @@ goto block_16; } } } -block_152: +block_154: { -if (x_76 == 0) +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_77 = lean_st_ref_take(x_69, x_73); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = !lean_is_exclusive(x_78); -if (x_80 == 0) +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_79 = lean_st_ref_take(x_71, x_75); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +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_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_81 = lean_ctor_get(x_78, 0); -x_82 = lean_ctor_get(x_78, 4); -lean_dec(x_82); -x_83 = l_Lean_ImportM_runCoreM___rarg___closed__3; -x_84 = l_Lean_Kernel_enableDiag(x_81, x_83); -lean_ctor_set(x_78, 4, x_52); -lean_ctor_set(x_78, 0, x_84); -x_85 = lean_st_ref_set(x_69, x_78, x_79); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = lean_box(0); -lean_inc(x_69); -x_88 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_83, x_48, x_1, x_52, x_87, x_67, x_69, x_86); -if (lean_obj_tag(x_88) == 0) +lean_object* x_83; 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; +x_83 = lean_ctor_get(x_80, 0); +x_84 = lean_ctor_get(x_80, 4); +lean_dec(x_84); +x_85 = l_Lean_ImportM_runCoreM___rarg___closed__3; +x_86 = l_Lean_Kernel_enableDiag(x_83, x_85); +lean_ctor_set(x_80, 4, x_53); +lean_ctor_set(x_80, 0, x_86); +x_87 = lean_st_ref_set(x_71, x_80, x_81); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_box(0); +lean_inc(x_71); +x_90 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_85, x_49, x_1, x_53, x_89, x_69, x_71, x_88); +if (lean_obj_tag(x_90) == 0) { -uint8_t x_89; -x_89 = !lean_is_exclusive(x_88); -if (x_89 == 0) +uint8_t x_91; +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) { -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_88, 1); -x_91 = lean_st_ref_get(x_69, x_90); -lean_dec(x_69); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) +lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_92 = lean_ctor_get(x_90, 1); +x_93 = lean_st_ref_get(x_71, x_92); +lean_dec(x_71); +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) { -lean_object* x_93; -x_93 = lean_ctor_get(x_91, 0); -lean_ctor_set(x_88, 1, x_93); -lean_ctor_set(x_91, 0, x_88); -x_4 = x_91; +lean_object* x_95; +x_95 = lean_ctor_get(x_93, 0); +lean_ctor_set(x_90, 1, x_95); +lean_ctor_set(x_93, 0, x_90); +x_4 = x_93; goto block_16; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_91, 0); -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_91); -lean_ctor_set(x_88, 1, x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_88); -lean_ctor_set(x_96, 1, x_95); -x_4 = x_96; -goto block_16; -} -} -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; -x_97 = lean_ctor_get(x_88, 0); -x_98 = lean_ctor_get(x_88, 1); -lean_inc(x_98); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_93, 0); +x_97 = lean_ctor_get(x_93, 1); lean_inc(x_97); -lean_dec(x_88); -x_99 = lean_st_ref_get(x_69, x_98); -lean_dec(x_69); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_102 = x_99; -} else { - lean_dec_ref(x_99); - x_102 = lean_box(0); -} -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_97); -lean_ctor_set(x_103, 1, x_100); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_102; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_101); -x_4 = x_104; +lean_inc(x_96); +lean_dec(x_93); +lean_ctor_set(x_90, 1, x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_90); +lean_ctor_set(x_98, 1, x_97); +x_4 = x_98; goto block_16; } } else { -lean_object* x_105; lean_object* x_106; -lean_dec(x_69); -x_105 = lean_ctor_get(x_88, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_88, 1); -lean_inc(x_106); -lean_dec(x_88); -x_17 = x_105; -x_18 = x_106; +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_90, 0); +x_100 = lean_ctor_get(x_90, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_90); +x_101 = lean_st_ref_get(x_71, x_100); +lean_dec(x_71); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; +} else { + lean_dec_ref(x_101); + x_104 = lean_box(0); +} +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_99); +lean_ctor_set(x_105, 1, x_102); +if (lean_is_scalar(x_104)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_104; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_103); +x_4 = x_106; +goto block_16; +} +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_71); +x_107 = lean_ctor_get(x_90, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_90, 1); +lean_inc(x_108); +lean_dec(x_90); +x_17 = x_107; +x_18 = x_108; goto block_45; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 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; -x_107 = lean_ctor_get(x_78, 0); -x_108 = lean_ctor_get(x_78, 1); -x_109 = lean_ctor_get(x_78, 2); -x_110 = lean_ctor_get(x_78, 3); -x_111 = lean_ctor_get(x_78, 5); -x_112 = lean_ctor_get(x_78, 6); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t 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_109 = lean_ctor_get(x_80, 0); +x_110 = lean_ctor_get(x_80, 1); +x_111 = lean_ctor_get(x_80, 2); +x_112 = lean_ctor_get(x_80, 3); +x_113 = lean_ctor_get(x_80, 5); +x_114 = lean_ctor_get(x_80, 6); +lean_inc(x_114); +lean_inc(x_113); lean_inc(x_112); lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_78); -x_113 = l_Lean_ImportM_runCoreM___rarg___closed__3; -x_114 = l_Lean_Kernel_enableDiag(x_107, x_113); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_52); -lean_ctor_set(x_115, 5, x_111); -lean_ctor_set(x_115, 6, x_112); -x_116 = lean_st_ref_set(x_69, x_115, x_79); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = lean_box(0); -lean_inc(x_69); -x_119 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_113, x_48, x_1, x_52, x_118, x_67, x_69, x_117); -if (lean_obj_tag(x_119) == 0) +lean_dec(x_80); +x_115 = l_Lean_ImportM_runCoreM___rarg___closed__3; +x_116 = l_Lean_Kernel_enableDiag(x_109, x_115); +x_117 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_110); +lean_ctor_set(x_117, 2, x_111); +lean_ctor_set(x_117, 3, x_112); +lean_ctor_set(x_117, 4, x_53); +lean_ctor_set(x_117, 5, x_113); +lean_ctor_set(x_117, 6, x_114); +x_118 = lean_st_ref_set(x_71, x_117, x_81); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +lean_dec(x_118); +x_120 = lean_box(0); +lean_inc(x_71); +x_121 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_115, x_49, x_1, x_53, x_120, x_69, x_71, x_119); +if (lean_obj_tag(x_121) == 0) { -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; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_122 = x_119; +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; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_124 = x_121; } else { - lean_dec_ref(x_119); - x_122 = lean_box(0); + lean_dec_ref(x_121); + x_124 = lean_box(0); } -x_123 = lean_st_ref_get(x_69, x_121); -lean_dec(x_69); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_126 = x_123; +x_125 = lean_st_ref_get(x_71, x_123); +lean_dec(x_71); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; } else { - lean_dec_ref(x_123); - x_126 = lean_box(0); + lean_dec_ref(x_125); + x_128 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_127 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_124)) { + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_127 = x_122; + x_129 = x_124; } -lean_ctor_set(x_127, 0, x_120); -lean_ctor_set(x_127, 1, x_124); -if (lean_is_scalar(x_126)) { - x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_122); +lean_ctor_set(x_129, 1, x_126); +if (lean_is_scalar(x_128)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_126; + x_130 = x_128; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_125); -x_4 = x_128; +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_127); +x_4 = x_130; goto block_16; } else { -lean_object* x_129; lean_object* x_130; -lean_dec(x_69); -x_129 = lean_ctor_get(x_119, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_119, 1); -lean_inc(x_130); -lean_dec(x_119); -x_17 = x_129; -x_18 = x_130; +lean_object* x_131; lean_object* x_132; +lean_dec(x_71); +x_131 = lean_ctor_get(x_121, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_121, 1); +lean_inc(x_132); +lean_dec(x_121); +x_17 = x_131; +x_18 = x_132; goto block_45; } } } else { -uint8_t x_131; lean_object* x_132; lean_object* x_133; -x_131 = l_Lean_ImportM_runCoreM___rarg___closed__3; -x_132 = lean_box(0); -lean_inc(x_69); -x_133 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_131, x_48, x_1, x_52, x_132, x_67, x_69, x_73); -if (lean_obj_tag(x_133) == 0) +uint8_t x_133; lean_object* x_134; lean_object* x_135; +x_133 = l_Lean_ImportM_runCoreM___rarg___closed__3; +x_134 = lean_box(0); +lean_inc(x_71); +x_135 = l_Lean_ImportM_runCoreM___rarg___lambda__1(x_46, x_133, x_49, x_1, x_53, x_134, x_69, x_71, x_75); +if (lean_obj_tag(x_135) == 0) { -uint8_t x_134; -x_134 = !lean_is_exclusive(x_133); -if (x_134 == 0) +uint8_t x_136; +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) { -lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_135 = lean_ctor_get(x_133, 1); -x_136 = lean_st_ref_get(x_69, x_135); -lean_dec(x_69); -x_137 = !lean_is_exclusive(x_136); -if (x_137 == 0) +lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_137 = lean_ctor_get(x_135, 1); +x_138 = lean_st_ref_get(x_71, x_137); +lean_dec(x_71); +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) { -lean_object* x_138; -x_138 = lean_ctor_get(x_136, 0); -lean_ctor_set(x_133, 1, x_138); -lean_ctor_set(x_136, 0, x_133); -x_4 = x_136; +lean_object* x_140; +x_140 = lean_ctor_get(x_138, 0); +lean_ctor_set(x_135, 1, x_140); +lean_ctor_set(x_138, 0, x_135); +x_4 = x_138; goto block_16; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_136, 0); -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_136); -lean_ctor_set(x_133, 1, x_139); -x_141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_141, 0, x_133); -lean_ctor_set(x_141, 1, x_140); -x_4 = x_141; -goto block_16; -} -} -else -{ -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; -x_142 = lean_ctor_get(x_133, 0); -x_143 = lean_ctor_get(x_133, 1); -lean_inc(x_143); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_138, 0); +x_142 = lean_ctor_get(x_138, 1); lean_inc(x_142); -lean_dec(x_133); -x_144 = lean_st_ref_get(x_69, x_143); -lean_dec(x_69); -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; -} else { - lean_dec_ref(x_144); - x_147 = lean_box(0); -} -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_142); -lean_ctor_set(x_148, 1, x_145); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -x_4 = x_149; +lean_inc(x_141); +lean_dec(x_138); +lean_ctor_set(x_135, 1, x_141); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_135); +lean_ctor_set(x_143, 1, x_142); +x_4 = x_143; goto block_16; } } else { -lean_object* x_150; lean_object* x_151; -lean_dec(x_69); -x_150 = lean_ctor_get(x_133, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_133, 1); -lean_inc(x_151); -lean_dec(x_133); -x_17 = x_150; -x_18 = x_151; +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; +x_144 = lean_ctor_get(x_135, 0); +x_145 = lean_ctor_get(x_135, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_135); +x_146 = lean_st_ref_get(x_71, x_145); +lean_dec(x_71); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_149 = x_146; +} else { + lean_dec_ref(x_146); + x_149 = lean_box(0); +} +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_144); +lean_ctor_set(x_150, 1, x_147); +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_150); +lean_ctor_set(x_151, 1, x_148); +x_4 = x_151; +goto block_16; +} +} +else +{ +lean_object* x_152; lean_object* x_153; +lean_dec(x_71); +x_152 = lean_ctor_get(x_135, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_135, 1); +lean_inc(x_153); +lean_dec(x_135); +x_17 = x_152; +x_18 = x_153; goto block_45; } } @@ -18445,6 +19039,35 @@ x_3 = lean_box(x_2); return x_3; } } +LEAN_EXPORT uint8_t l_Lean_Exception_isInterrupt(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_Lean_Core_checkInterrupted___closed__1; +x_5 = lean_nat_dec_eq(x_3, x_4); +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Exception_isInterrupt___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Exception_isInterrupt(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Core_tryCatch___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -18468,13 +19091,17 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; uint8_t x_10; x_8 = lean_ctor_get(x_6, 0); x_9 = lean_ctor_get(x_6, 1); -x_10 = l_Lean_Exception_isRuntime(x_8); +x_10 = l_Lean_Exception_isInterrupt(x_8); if (x_10 == 0) { -lean_object* x_11; +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_free_object(x_6); -x_11 = lean_apply_4(x_2, x_8, x_3, x_4, x_9); -return x_11; +x_12 = lean_apply_4(x_2, x_8, x_3, x_4, x_9); +return x_12; } else { @@ -18486,29 +19113,53 @@ return x_6; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_6, 0); -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_6); -x_14 = l_Lean_Exception_isRuntime(x_12); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_apply_4(x_2, x_12, x_3, x_4, x_13); -return x_15; -} -else -{ -lean_object* x_16; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_13); -return x_16; +return x_6; +} +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_6, 0); +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_6); +x_15 = l_Lean_Exception_isInterrupt(x_13); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_apply_4(x_2, x_13, x_3, x_4, x_14); +return x_17; +} +else +{ +lean_object* x_18; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_14); +return x_18; +} +} +else +{ +lean_object* x_19; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +return x_19; } } } @@ -18590,13 +19241,17 @@ if (x_8 == 0) lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_ctor_get(x_7, 0); x_10 = lean_ctor_get(x_7, 1); -x_11 = l_Lean_Exception_isRuntime(x_9); +x_11 = l_Lean_Exception_isInterrupt(x_9); if (x_11 == 0) { -lean_object* x_12; +uint8_t x_12; +x_12 = l_Lean_Exception_isRuntime(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_free_object(x_7); -x_12 = lean_apply_4(x_3, x_9, x_4, x_5, x_10); -return x_12; +x_13 = lean_apply_4(x_3, x_9, x_4, x_5, x_10); +return x_13; } else { @@ -18608,29 +19263,53 @@ return x_7; } else { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = l_Lean_Exception_isRuntime(x_13); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_apply_4(x_3, x_13, x_4, x_5, x_14); -return x_16; -} -else -{ -lean_object* x_17; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_13); -lean_ctor_set(x_17, 1, x_14); -return x_17; +return x_7; +} +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_16 = l_Lean_Exception_isInterrupt(x_14); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = l_Lean_Exception_isRuntime(x_14); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_apply_4(x_3, x_14, x_4, x_5, x_15); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_15); +return x_19; +} +} +else +{ +lean_object* x_20; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_15); +return x_20; } } } @@ -18812,6 +19491,7 @@ lean_object* initialize_Lean_Eval(uint8_t builtin, lean_object*); lean_object* initialize_Lean_ResolveName(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_InfoTree_Types(uint8_t builtin, lean_object*); lean_object* initialize_Lean_MonadEnv(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Exception(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_CoreM(uint8_t builtin, lean_object* w) { lean_object * res; @@ -18838,6 +19518,9 @@ lean_dec_ref(res); res = initialize_Lean_MonadEnv(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Exception(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__1 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__1(); lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__1); l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__2 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_6____closed__2(); @@ -18970,6 +19653,8 @@ l_Lean_Core_State_traceState___default = _init_l_Lean_Core_State_traceState___de lean_mark_persistent(l_Lean_Core_State_traceState___default); l_Lean_Core_State_cache___default = _init_l_Lean_Core_State_cache___default(); lean_mark_persistent(l_Lean_Core_State_cache___default); +l_Lean_Core_State_messages___default___closed__1 = _init_l_Lean_Core_State_messages___default___closed__1(); +lean_mark_persistent(l_Lean_Core_State_messages___default___closed__1); l_Lean_Core_State_messages___default = _init_l_Lean_Core_State_messages___default(); lean_mark_persistent(l_Lean_Core_State_messages___default); l_Lean_Core_State_infoState___default___closed__1 = _init_l_Lean_Core_State_infoState___default___closed__1(); @@ -18995,6 +19680,9 @@ lean_mark_persistent(l_Lean_Core_Context_initHeartbeats___default); l_Lean_Core_Context_currMacroScope___default = _init_l_Lean_Core_Context_currMacroScope___default(); lean_mark_persistent(l_Lean_Core_Context_currMacroScope___default); l_Lean_Core_Context_diag___default = _init_l_Lean_Core_Context_diag___default(); +l_Lean_Core_Context_cancelTk_x3f___default = _init_l_Lean_Core_Context_cancelTk_x3f___default(); +lean_mark_persistent(l_Lean_Core_Context_cancelTk_x3f___default); +l_Lean_Core_Context_suppressElabErrors___default = _init_l_Lean_Core_Context_suppressElabErrors___default(); l_Lean_Core_instMonadCoreM___closed__1 = _init_l_Lean_Core_instMonadCoreM___closed__1(); lean_mark_persistent(l_Lean_Core_instMonadCoreM___closed__1); l_Lean_Core_instMonadCoreM___closed__2 = _init_l_Lean_Core_instMonadCoreM___closed__2(); @@ -19123,27 +19811,32 @@ l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___clos lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___closed__1); l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___closed__2(); lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Core_withIncRecDepth___spec__1___rarg___closed__2); -l_Lean_Core_checkInterrupted___rarg___closed__1 = _init_l_Lean_Core_checkInterrupted___rarg___closed__1(); -lean_mark_persistent(l_Lean_Core_checkInterrupted___rarg___closed__1); -l_Lean_Core_checkInterrupted___rarg___closed__2 = _init_l_Lean_Core_checkInterrupted___rarg___closed__2(); -lean_mark_persistent(l_Lean_Core_checkInterrupted___rarg___closed__2); -l_Lean_Core_checkInterrupted___rarg___closed__3 = _init_l_Lean_Core_checkInterrupted___rarg___closed__3(); -lean_mark_persistent(l_Lean_Core_checkInterrupted___rarg___closed__3); -l_Lean_Core_checkInterrupted___rarg___closed__4 = _init_l_Lean_Core_checkInterrupted___rarg___closed__4(); -lean_mark_persistent(l_Lean_Core_checkInterrupted___rarg___closed__4); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__1); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__2); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__3); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__4); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__5); -l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6(); -lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531____closed__6); -if (builtin) {res = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2531_(lean_io_mk_world()); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__1); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786____closed__2); +if (builtin) {res = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2786_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Core_interruptExceptionId = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Core_interruptExceptionId); +lean_dec_ref(res); +}l_Lean_Core_checkInterrupted___closed__1 = _init_l_Lean_Core_checkInterrupted___closed__1(); +lean_mark_persistent(l_Lean_Core_checkInterrupted___closed__1); +l_Lean_Core_checkInterrupted___closed__2 = _init_l_Lean_Core_checkInterrupted___closed__2(); +lean_mark_persistent(l_Lean_Core_checkInterrupted___closed__2); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__1); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__2); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__3); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__4); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__5); +l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6 = _init_l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6(); +lean_mark_persistent(l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898____closed__6); +if (builtin) {res = l_Lean_Core_initFn____x40_Lean_CoreM___hyg_2898_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Core_debug_moduleNameAtTimeout = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Core_debug_moduleNameAtTimeout); @@ -19166,6 +19859,16 @@ l_Lean_Core_throwMaxHeartbeat___closed__8 = _init_l_Lean_Core_throwMaxHeartbeat_ lean_mark_persistent(l_Lean_Core_throwMaxHeartbeat___closed__8); l_Lean_Core_throwMaxHeartbeat___closed__9 = _init_l_Lean_Core_throwMaxHeartbeat___closed__9(); lean_mark_persistent(l_Lean_Core_throwMaxHeartbeat___closed__9); +l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1 = _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___lambda__5___closed__1); +l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2 = _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___lambda__5___closed__2); +l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3 = _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___lambda__5___closed__3); +l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4 = _init_l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4(); +lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___lambda__5___closed__4); +l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1 = _init_l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___lambda__6___closed__1); l_Lean_Core_instMonadLogCoreM___closed__1 = _init_l_Lean_Core_instMonadLogCoreM___closed__1(); lean_mark_persistent(l_Lean_Core_instMonadLogCoreM___closed__1); l_Lean_Core_instMonadLogCoreM___closed__2 = _init_l_Lean_Core_instMonadLogCoreM___closed__2(); @@ -19250,19 +19953,19 @@ l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rar lean_mark_persistent(l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__3); l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__4 = _init_l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__4(); lean_mark_persistent(l_List_foldlM___at___private_Lean_CoreM_0__Lean_checkUnsupported___spec__2___rarg___lambda__2___closed__4); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__1); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__2); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__3); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__4); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__5); -l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_3790____closed__6); -if (builtin) {res = l_Lean_initFn____x40_Lean_CoreM___hyg_3790_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__1); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__2); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__3); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__4); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__5); +l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6 = _init_l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_CoreM___hyg_4310____closed__6); +if (builtin) {res = l_Lean_initFn____x40_Lean_CoreM___hyg_4310_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_compiler_enableNew = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_compiler_enableNew); diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 3b77bed33d..0168e97d79 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -40,7 +40,6 @@ lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_o static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___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*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_ElabAppArgs_trySynthesizeAppInstMVars___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__5___closed__12; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -123,6 +122,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(le static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__3(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -209,9 +209,11 @@ static lean_object* l_Lean_Elab_Term_instToStringNamedArg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1(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___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__1; lean_object* l___private_Init_GetElem_0__outOfBounds___rarg(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_exceptionToSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1; lean_object* l_instInhabitedReaderT___rarg___boxed(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__5; @@ -228,6 +230,7 @@ extern lean_object* l_Lean_Expr_instBEq; lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__5(lean_object*, lean_object*, 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*, lean_object*); extern lean_object* l_Lean_casesOnSuffix; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__3___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_Lean_Elab_Term_elabAppArgs___lambda__5___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_hasElabWithoutExpectedType___boxed(lean_object*, lean_object*); @@ -246,12 +249,12 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__17; lean_object* l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_ElabElim_finalize___spec__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_environment_find(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5; @@ -266,6 +269,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___closed__2; static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14; lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__3; static lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Term_ElabElim_mkMotive___spec__2___lambda__1___closed__1; @@ -275,6 +279,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__2(lean_object*, static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_shouldElabAsElim___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____lambda__2___closed__12; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed(lean_object**); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__2; @@ -370,7 +375,6 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabElim_State_motive_x3f___default; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Elab_Term_ElabElim_revertArgs___spec__6___lambda__1___boxed(lean_object**); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabWithoutExpectedTypeAttr; LEAN_EXPORT uint8_t l_Lean_Elab_Term_elabAppArgs_isFirstOrder___lambda__1(lean_object*); @@ -383,11 +387,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringNamedArg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(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_Term_mkFreshBinderName___at_Lean_Elab_Term_elabLetDeclCore___spec__2___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10; lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__2; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__18___closed__2; lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Elab_Term_ElabElim_revertArgs___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*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__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*); @@ -506,13 +510,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___c static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2; static lean_object* l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object*); lean_object* l_Lean_Elab_Term_elabTerm___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___regBuiltin_Lean_Elab_Term_elabProj___closed__3; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___closed__1; uint8_t lean_has_out_params(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____lambda__2___closed__27; static lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__5___closed__6; @@ -525,6 +527,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__7(lean_object*, lean_object*, size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__7; lean_object* l_Lean_MessageData_ofFormat(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10; lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Elab_Term_ElabElim_revertArgs___spec__5(lean_object*, lean_object*, uint8_t, uint8_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*); @@ -639,6 +642,8 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_ lean_object* l_Lean_Meta_coerceToFunction_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMVarErrorInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs_getElabAsElimExtraArgsPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1; @@ -668,7 +673,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* lean_expr_consume_type_annotations(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__19___rarg___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_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object*); @@ -687,7 +691,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___close lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__3; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13; static lean_object* l_List_foldlM___at_Lean_Elab_Term_ElabElim_revertArgs___spec__17___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(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___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__1; @@ -710,7 +713,6 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError__ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__2___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__9(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870_(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__2; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____closed__5; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -718,7 +720,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs lean_object* l_Lean_Elab_Term_postponeElabTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7; static lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__5___closed__3; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_ElabElim_mkMotive___spec__1___rarg(lean_object*, lean_object*, lean_object*); @@ -762,6 +763,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabElim_saveArgInfo___boxed(lean_obje static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Elab_Term_ElabElim_revertArgs___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_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*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeProj(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_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__2(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__1; @@ -818,6 +820,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_typeMatches lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___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_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7; lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo(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_Term_ElabElim_saveArgInfo(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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object*); @@ -852,6 +855,8 @@ lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_ElabElim_mkMotive___spec__1(lean_object*, lean_object*); lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__7; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____lambda__2___closed__3; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____lambda__2___closed__16; @@ -928,6 +933,7 @@ static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(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_throwUnknownConstant___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__1___closed__1; lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__4___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_Term_elabAppArgs_elabAsElim_x3f___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___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__7; @@ -982,12 +988,10 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___c lean_object* l_Lean_Expr_getAppFn(lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Elab_Term_ElabElim_revertArgs___spec__6(lean_object*, lean_object*, uint8_t, uint8_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*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4; LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__3; uint8_t l_Lean_Expr_isProp(lean_object*); static lean_object* l_Lean_Elab_Term_elabExplicit___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_6707____lambda__2___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_ElabElim_revertArgs___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1019,7 +1023,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findBinderN LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(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_Term_initFn____x40_Lean_Elab_App___hyg_6707____closed__4; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_typeMatchesBaseName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__8; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__3___closed__2; @@ -1038,7 +1041,6 @@ static lean_object* l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Term_ElabElim_mkMotive___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Elab_Term_eraseNamedArg___spec__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9; static lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwInvalidFieldNotation___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs_elabAsElim_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1051,7 +1053,6 @@ static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_ElabAppArgs_trySynthesizeAppInstMVars___spec__1(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_Term_observing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__5; @@ -1104,6 +1105,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabElim_addDiscr___boxed(lean_object* lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___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___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabElim_mkImplicitArg___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___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_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2(lean_object*); @@ -1165,7 +1167,6 @@ lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor(lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_ElabAppArgs_trySynthesizeAppInstMVars___spec__2(lean_object*, size_t, size_t, 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_panic___at_Lean_Elab_Term_ElabElim_finalize___spec__5(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_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1818,7 +1819,7 @@ return x_32; } 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; lean_object* 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_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; uint8_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; x_33 = lean_ctor_get(x_7, 0); x_34 = lean_ctor_get(x_7, 1); x_35 = lean_ctor_get(x_7, 2); @@ -1830,7 +1831,10 @@ x_40 = lean_ctor_get(x_7, 7); x_41 = lean_ctor_get(x_7, 8); x_42 = lean_ctor_get(x_7, 9); x_43 = lean_ctor_get(x_7, 10); -x_44 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_44 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_45 = lean_ctor_get(x_7, 11); +x_46 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_45); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); @@ -1843,78 +1847,80 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_7); -x_45 = l_Lean_replaceRef(x_10, x_38); +x_47 = l_Lean_replaceRef(x_10, x_38); lean_dec(x_38); lean_dec(x_10); -x_46 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_46, 0, x_33); -lean_ctor_set(x_46, 1, x_34); -lean_ctor_set(x_46, 2, x_35); -lean_ctor_set(x_46, 3, x_36); -lean_ctor_set(x_46, 4, x_37); -lean_ctor_set(x_46, 5, x_45); -lean_ctor_set(x_46, 6, x_39); -lean_ctor_set(x_46, 7, x_40); -lean_ctor_set(x_46, 8, x_41); -lean_ctor_set(x_46, 9, x_42); -lean_ctor_set(x_46, 10, x_43); -lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_44); +x_48 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +lean_ctor_set(x_48, 2, x_35); +lean_ctor_set(x_48, 3, x_36); +lean_ctor_set(x_48, 4, x_37); +lean_ctor_set(x_48, 5, x_47); +lean_ctor_set(x_48, 6, x_39); +lean_ctor_set(x_48, 7, x_40); +lean_ctor_set(x_48, 8, x_41); +lean_ctor_set(x_48, 9, x_42); +lean_ctor_set(x_48, 10, x_43); +lean_ctor_set(x_48, 11, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*12, x_44); +lean_ctor_set_uint8(x_48, sizeof(void*)*12 + 1, x_46); if (lean_obj_tag(x_2) == 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; -x_47 = lean_ctor_get(x_1, 1); -lean_inc(x_47); +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; +x_49 = lean_ctor_get(x_1, 1); +lean_inc(x_49); lean_dec(x_1); -x_48 = l_Lean_MessageData_ofName(x_47); -x_49 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__2; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__4; +x_50 = l_Lean_MessageData_ofName(x_49); +x_51 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__2; x_52 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1___rarg(x_52, x_3, x_4, x_5, x_6, x_46, x_8, x_9); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__4; +x_54 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1___rarg(x_54, x_3, x_4, x_5, x_6, x_48, x_8, x_9); lean_dec(x_8); -lean_dec(x_46); +lean_dec(x_48); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_53; +return x_55; } 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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_54 = lean_ctor_get(x_2, 0); -lean_inc(x_54); +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; +x_56 = lean_ctor_get(x_2, 0); +lean_inc(x_56); lean_dec(x_2); -x_55 = lean_ctor_get(x_1, 1); -lean_inc(x_55); +x_57 = lean_ctor_get(x_1, 1); +lean_inc(x_57); lean_dec(x_1); -x_56 = l_Lean_MessageData_ofName(x_55); -x_57 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__2; -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__6; +x_58 = l_Lean_MessageData_ofName(x_57); +x_59 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__2; x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_MessageData_ofName(x_54); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__6; x_62 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__8; +x_63 = l_Lean_MessageData_ofName(x_56); x_64 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2___rarg(x_64, x_3, x_4, x_5, x_6, x_46, x_8, x_9); +x_65 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__8; +x_66 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2___rarg(x_66, x_3, x_4, x_5, x_6, x_48, x_8, x_9); lean_dec(x_8); -lean_dec(x_46); +lean_dec(x_48); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_65; +return x_67; } } } @@ -1990,14 +1996,18 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; uint8_t x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ if (lean_obj_tag(x_16) == 0) { -uint8_t x_19; -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -if (x_19 == 0) +uint8_t x_20; +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +if (x_20 == 0) { lean_dec(x_11); lean_dec(x_9); @@ -2010,10 +2020,10 @@ return x_14; } else { -lean_object* x_20; +lean_object* x_21; lean_free_object(x_14); -x_20 = l_Lean_Elab_Term_exceptionToSorry(x_16, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_17); -return x_20; +x_21 = l_Lean_Elab_Term_exceptionToSorry(x_16, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +return x_21; } } else @@ -2042,42 +2052,36 @@ return x_14; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_14, 0); -x_22 = lean_ctor_get(x_14, 1); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_14; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_14, 0); +x_23 = lean_ctor_get(x_14, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); lean_dec(x_14); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) -{ -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_24; -x_24 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_21); -lean_ctor_set(x_25, 1, x_22); -return x_25; -} -else +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) { -lean_object* x_26; -x_26 = l_Lean_Elab_Term_exceptionToSorry(x_21, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -return x_26; -} -} -else +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_26; +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +if (x_26 == 0) { lean_object* x_27; lean_dec(x_11); @@ -2088,14 +2092,20 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_22); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_23); return x_27; } -} else { lean_object* x_28; +x_28 = l_Lean_Elab_Term_exceptionToSorry(x_22, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +return x_28; +} +} +else +{ +lean_object* x_29; lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -2103,10 +2113,42 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_22); -return x_28; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_23); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_23); +return x_31; } } } @@ -3490,13 +3532,17 @@ if (x_51 == 0) lean_object* x_52; lean_object* x_53; uint8_t x_54; x_52 = lean_ctor_get(x_36, 0); x_53 = lean_ctor_get(x_36, 1); -x_54 = l_Lean_Exception_isRuntime(x_52); +x_54 = l_Lean_Exception_isInterrupt(x_52); if (x_54 == 0) { -lean_object* x_55; lean_object* x_56; +uint8_t x_55; +x_55 = l_Lean_Exception_isRuntime(x_52); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_free_object(x_36); lean_dec(x_52); -x_55 = lean_box(0); +x_56 = lean_box(0); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -3505,24 +3551,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_56 = lean_apply_10(x_33, x_55, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_53); -if (lean_obj_tag(x_56) == 0) +x_57 = lean_apply_10(x_33, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_53); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_unbox(x_57); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); lean_dec(x_57); -x_22 = x_59; -x_23 = x_58; +x_60 = lean_unbox(x_58); +lean_dec(x_58); +x_22 = x_60; +x_23 = x_59; goto block_25; } else { -uint8_t x_60; +uint8_t x_61; lean_dec(x_15); lean_dec(x_12); lean_dec(x_11); @@ -3533,23 +3579,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_60 = !lean_is_exclusive(x_56); -if (x_60 == 0) +x_61 = !lean_is_exclusive(x_57); +if (x_61 == 0) { -return x_56; +return x_57; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_56, 0); -x_62 = lean_ctor_get(x_56, 1); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +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_inc(x_61); -lean_dec(x_56); -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; +lean_dec(x_57); +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; } } } @@ -3570,18 +3616,37 @@ return x_36; } else { -lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_64 = lean_ctor_get(x_36, 0); -x_65 = lean_ctor_get(x_36, 1); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +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); +return x_36; +} +} +else +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_36, 0); +x_66 = lean_ctor_get(x_36, 1); +lean_inc(x_66); lean_inc(x_65); -lean_inc(x_64); lean_dec(x_36); -x_66 = l_Lean_Exception_isRuntime(x_64); -if (x_66 == 0) +x_67 = l_Lean_Exception_isInterrupt(x_65); +if (x_67 == 0) { -lean_object* x_67; lean_object* x_68; -lean_dec(x_64); -x_67 = lean_box(0); +uint8_t x_68; +x_68 = l_Lean_Exception_isRuntime(x_65); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_65); +x_69 = lean_box(0); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -3590,107 +3655,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_68 = lean_apply_10(x_33, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_65); -if (lean_obj_tag(x_68) == 0) +x_70 = lean_apply_10(x_33, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_66); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_unbox(x_69); -lean_dec(x_69); -x_22 = x_71; -x_23 = x_70; -goto block_25; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -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_72 = lean_ctor_get(x_68, 0); +lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_74 = x_68; -} else { - lean_dec_ref(x_68); - x_74 = lean_box(0); -} -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); -} else { - x_75 = x_74; -} -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; -} -} -else -{ -lean_object* x_76; -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -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_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_64); -lean_ctor_set(x_76, 1, x_65); -return x_76; -} -} -} -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_box(0); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_78 = lean_apply_10(x_33, x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_unbox(x_79); -lean_dec(x_79); -x_22 = x_81; -x_23 = x_80; +lean_dec(x_70); +x_73 = lean_unbox(x_71); +lean_dec(x_71); +x_22 = x_73; +x_23 = x_72; goto block_25; } else { -uint8_t x_82; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_dec(x_15); lean_dec(x_12); lean_dec(x_11); @@ -3701,30 +3683,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_82 = !lean_is_exclusive(x_78); -if (x_82 == 0) +x_74 = lean_ctor_get(x_70, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_76 = x_70; +} else { + lean_dec_ref(x_70); + 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_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +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_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_65); +lean_ctor_set(x_78, 1, x_66); return x_78; } -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_78, 0); -x_84 = lean_ctor_get(x_78, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_78); -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; -} -} -} } else { -uint8_t x_86; +lean_object* x_79; lean_dec(x_15); lean_dec(x_12); lean_dec(x_11); @@ -3735,23 +3737,105 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_86 = !lean_is_exclusive(x_27); -if (x_86 == 0) +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_65); +lean_ctor_set(x_79, 1, x_66); +return x_79; +} +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_box(0); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_81 = lean_apply_10(x_33, x_80, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_unbox(x_82); +lean_dec(x_82); +x_22 = x_84; +x_23 = x_83; +goto block_25; +} +else +{ +uint8_t x_85; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +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_85 = !lean_is_exclusive(x_81); +if (x_85 == 0) +{ +return x_81; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_81, 0); +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_81); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +} +else +{ +uint8_t x_89; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +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_89 = !lean_is_exclusive(x_27); +if (x_89 == 0) { return x_27; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_27, 0); -x_88 = lean_ctor_get(x_27, 1); -lean_inc(x_88); -lean_inc(x_87); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_27, 0); +x_91 = lean_ctor_get(x_27, 1); +lean_inc(x_91); +lean_inc(x_90); lean_dec(x_27); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } block_21: @@ -3785,7 +3869,7 @@ goto block_21; } else { -lean_object* x_90; +lean_object* x_93; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3794,10 +3878,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_4); -lean_ctor_set(x_90, 1, x_13); -return x_90; +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_4); +lean_ctor_set(x_93, 1, x_13); +return x_93; } } } @@ -6241,7 +6325,7 @@ lean_inc(x_20); x_22 = l_Lean_Elab_Term_elabTerm(x_20, x_2, x_21, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_17); if (lean_obj_tag(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; 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_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; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -6272,49 +6356,54 @@ x_35 = lean_ctor_get(x_9, 9); lean_inc(x_35); x_36 = lean_ctor_get(x_9, 10); lean_inc(x_36); -x_37 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_38 = l_Lean_replaceRef(x_20, x_31); +x_37 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_38 = lean_ctor_get(x_9, 11); +lean_inc(x_38); +x_39 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_40 = l_Lean_replaceRef(x_20, x_31); lean_dec(x_31); lean_dec(x_20); -x_39 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_39, 0, x_26); -lean_ctor_set(x_39, 1, x_27); -lean_ctor_set(x_39, 2, x_28); -lean_ctor_set(x_39, 3, x_29); -lean_ctor_set(x_39, 4, x_30); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_32); -lean_ctor_set(x_39, 7, x_33); -lean_ctor_set(x_39, 8, x_34); -lean_ctor_set(x_39, 9, x_35); -lean_ctor_set(x_39, 10, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_37); +x_41 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_41, 2, x_28); +lean_ctor_set(x_41, 3, x_29); +lean_ctor_set(x_41, 4, x_30); +lean_ctor_set(x_41, 5, x_40); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*12, x_37); +lean_ctor_set_uint8(x_41, sizeof(void*)*12 + 1, x_39); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_25, x_23, x_18, x_5, x_6, x_7, x_8, x_39, x_10, x_24); -if (lean_obj_tag(x_40) == 0) +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_25, x_23, x_18, x_5, x_6, x_7, x_8, x_41, x_10, x_24); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -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 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_42); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_43; +return x_45; } else { -uint8_t x_44; +uint8_t x_46; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6322,29 +6411,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) { -return x_40; +return x_42; } 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; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 0); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_42); +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 { -uint8_t x_48; +uint8_t x_50; lean_dec(x_20); lean_dec(x_18); lean_dec(x_13); @@ -6355,155 +6444,125 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_22); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_22); +if (x_50 == 0) { return x_22; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_22, 0); -x_50 = lean_ctor_get(x_22, 1); -lean_inc(x_50); -lean_inc(x_49); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_22, 0); +x_52 = lean_ctor_get(x_22, 1); +lean_inc(x_52); +lean_inc(x_51); lean_dec(x_22); -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; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_2, 0); -lean_inc(x_52); +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_2, 0); +lean_inc(x_54); lean_dec(x_2); lean_inc(x_18); -x_53 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_53, 0, x_18); -x_54 = 1; +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_18); +x_56 = 1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_52); -x_55 = l_Lean_Elab_Term_elabTerm(x_52, x_53, x_54, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -if (lean_obj_tag(x_55) == 0) +lean_inc(x_54); +x_57 = l_Lean_Elab_Term_elabTerm(x_54, x_55, x_56, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_57) == 0) { -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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_ctor_get(x_13, 0); +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; uint8_t x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_13); -x_59 = lean_ctor_get(x_9, 0); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_9, 1); +lean_dec(x_57); +x_60 = lean_ctor_get(x_13, 0); lean_inc(x_60); -x_61 = lean_ctor_get(x_9, 2); +lean_dec(x_13); +x_61 = lean_ctor_get(x_9, 0); lean_inc(x_61); -x_62 = lean_ctor_get(x_9, 3); +x_62 = lean_ctor_get(x_9, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_9, 4); +x_63 = lean_ctor_get(x_9, 2); lean_inc(x_63); -x_64 = lean_ctor_get(x_9, 5); +x_64 = lean_ctor_get(x_9, 3); lean_inc(x_64); -x_65 = lean_ctor_get(x_9, 6); +x_65 = lean_ctor_get(x_9, 4); lean_inc(x_65); -x_66 = lean_ctor_get(x_9, 7); +x_66 = lean_ctor_get(x_9, 5); lean_inc(x_66); -x_67 = lean_ctor_get(x_9, 8); +x_67 = lean_ctor_get(x_9, 6); lean_inc(x_67); -x_68 = lean_ctor_get(x_9, 9); +x_68 = lean_ctor_get(x_9, 7); lean_inc(x_68); -x_69 = lean_ctor_get(x_9, 10); +x_69 = lean_ctor_get(x_9, 8); lean_inc(x_69); -x_70 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_71 = l_Lean_replaceRef(x_52, x_64); -lean_dec(x_64); -lean_dec(x_52); -x_72 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_72, 0, x_59); -lean_ctor_set(x_72, 1, x_60); -lean_ctor_set(x_72, 2, x_61); -lean_ctor_set(x_72, 3, x_62); -lean_ctor_set(x_72, 4, x_63); -lean_ctor_set(x_72, 5, x_71); -lean_ctor_set(x_72, 6, x_65); -lean_ctor_set(x_72, 7, x_66); -lean_ctor_set(x_72, 8, x_67); -lean_ctor_set(x_72, 9, x_68); -lean_ctor_set(x_72, 10, x_69); -lean_ctor_set_uint8(x_72, sizeof(void*)*11, x_70); +x_70 = lean_ctor_get(x_9, 9); +lean_inc(x_70); +x_71 = lean_ctor_get(x_9, 10); +lean_inc(x_71); +x_72 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_73 = lean_ctor_get(x_9, 11); +lean_inc(x_73); +x_74 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_75 = l_Lean_replaceRef(x_54, x_66); +lean_dec(x_66); +lean_dec(x_54); +x_76 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_76, 0, x_61); +lean_ctor_set(x_76, 1, x_62); +lean_ctor_set(x_76, 2, x_63); +lean_ctor_set(x_76, 3, x_64); +lean_ctor_set(x_76, 4, x_65); +lean_ctor_set(x_76, 5, x_75); +lean_ctor_set(x_76, 6, x_67); +lean_ctor_set(x_76, 7, x_68); +lean_ctor_set(x_76, 8, x_69); +lean_ctor_set(x_76, 9, x_70); +lean_ctor_set(x_76, 10, x_71); +lean_ctor_set(x_76, 11, x_73); +lean_ctor_set_uint8(x_76, sizeof(void*)*12, x_72); +lean_ctor_set_uint8(x_76, sizeof(void*)*12 + 1, x_74); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_73 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_58, x_56, x_18, x_5, x_6, x_7, x_8, x_72, x_10, x_57); -if (lean_obj_tag(x_73) == 0) +x_77 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_60, x_58, x_18, x_5, x_6, x_7, x_8, x_76, x_10, x_59); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_74, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_75); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_76; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -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_1); -x_77 = lean_ctor_get(x_73, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_73, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_79 = x_73; -} else { - lean_dec_ref(x_73); - 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); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_79); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_80; } -} else { lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_52); -lean_dec(x_18); -lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6511,16 +6570,16 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_81 = lean_ctor_get(x_55, 0); +x_81 = lean_ctor_get(x_77, 0); lean_inc(x_81); -x_82 = lean_ctor_get(x_55, 1); +x_82 = lean_ctor_get(x_77, 1); lean_inc(x_82); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_83 = x_55; +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_83 = x_77; } else { - lean_dec_ref(x_55); + lean_dec_ref(x_77); x_83 = lean_box(0); } if (lean_is_scalar(x_83)) { @@ -6533,43 +6592,12 @@ lean_ctor_set(x_84, 1, x_82); return x_84; } } -} else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_2, 0); -lean_inc(x_85); -lean_dec(x_2); -x_86 = lean_ctor_get(x_13, 0); -lean_inc(x_86); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_54); +lean_dec(x_18); lean_dec(x_13); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_87 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_86, x_85, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_88, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_89); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_90; -} -else -{ -uint8_t x_91; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6577,24 +6605,90 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_91 = !lean_is_exclusive(x_87); -if (x_91 == 0) -{ -return x_87; +x_85 = lean_ctor_get(x_57, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_57, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_87 = x_57; +} else { + lean_dec_ref(x_57); + x_87 = lean_box(0); +} +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); +} else { + x_88 = x_87; +} +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_86); +return x_88; +} +} } else { +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_2, 0); +lean_inc(x_89); +lean_dec(x_2); +x_90 = lean_ctor_get(x_13, 0); +lean_inc(x_90); +lean_dec(x_13); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_91 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_90, x_89, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_91) == 0) +{ lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_87, 0); -x_93 = lean_ctor_get(x_87, 1); -lean_inc(x_93); +x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); -lean_dec(x_87); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_92, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_93); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_94; } +else +{ +uint8_t x_95; +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_1); +x_95 = !lean_is_exclusive(x_91); +if (x_95 == 0) +{ +return x_91; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_91, 0); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_91); +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; +} } } } @@ -19558,7 +19652,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Elab_Term_ElabElim_revertArgs___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, 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; 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_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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -19581,161 +19675,169 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = lean_nat_dec_eq(x_15, x_16); -if (x_24 == 0) +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = lean_nat_dec_eq(x_15, x_16); +if (x_26 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 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; 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_26 = lean_ctor_get(x_9, 10); -lean_dec(x_26); -x_27 = lean_ctor_get(x_9, 9); -lean_dec(x_27); -x_28 = lean_ctor_get(x_9, 8); +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; +x_28 = lean_ctor_get(x_9, 11); lean_dec(x_28); -x_29 = lean_ctor_get(x_9, 7); +x_29 = lean_ctor_get(x_9, 10); lean_dec(x_29); -x_30 = lean_ctor_get(x_9, 6); +x_30 = lean_ctor_get(x_9, 9); lean_dec(x_30); -x_31 = lean_ctor_get(x_9, 5); +x_31 = lean_ctor_get(x_9, 8); lean_dec(x_31); -x_32 = lean_ctor_get(x_9, 4); +x_32 = lean_ctor_get(x_9, 7); lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 3); +x_33 = lean_ctor_get(x_9, 6); lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 2); +x_34 = lean_ctor_get(x_9, 5); lean_dec(x_34); -x_35 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_9, 0); +x_36 = lean_ctor_get(x_9, 3); lean_dec(x_36); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_15, x_37); -lean_dec(x_15); -lean_ctor_set(x_9, 3, x_38); -x_39 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -return x_39; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_inc(x_41); +x_37 = lean_ctor_get(x_9, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_9, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_9, 0); lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_15, x_40); +lean_dec(x_15); +lean_ctor_set(x_9, 3, x_41); +x_42 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; } else { -uint8_t x_44; -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_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); 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; +lean_inc(x_44); +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 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; +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) +{ +return x_42; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_42, 0); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_42); +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 { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_dec(x_9); -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_add(x_15, x_48); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_15, x_51); lean_dec(x_15); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_12); -lean_ctor_set(x_50, 1, x_13); -lean_ctor_set(x_50, 2, x_14); -lean_ctor_set(x_50, 3, x_49); -lean_ctor_set(x_50, 4, x_16); -lean_ctor_set(x_50, 5, x_17); -lean_ctor_set(x_50, 6, x_18); -lean_ctor_set(x_50, 7, x_19); -lean_ctor_set(x_50, 8, x_20); -lean_ctor_set(x_50, 9, x_21); -lean_ctor_set(x_50, 10, x_22); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_23); -x_51 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_50, x_10, x_11); -if (lean_obj_tag(x_51) == 0) +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_13); +lean_ctor_set(x_53, 2, x_14); +lean_ctor_set(x_53, 3, x_52); +lean_ctor_set(x_53, 4, x_16); +lean_ctor_set(x_53, 5, x_17); +lean_ctor_set(x_53, 6, x_18); +lean_ctor_set(x_53, 7, x_19); +lean_ctor_set(x_53, 8, x_20); +lean_ctor_set(x_53, 9, x_21); +lean_ctor_set(x_53, 10, x_22); +lean_ctor_set(x_53, 11, x_24); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_25); +x_54 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_53, x_10, x_11); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_51, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_58 = x_51; +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; } else { - lean_dec_ref(x_51); - x_58 = lean_box(0); + lean_dec_ref(x_54); + x_57 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_58; + x_58 = x_57; } -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + 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); +return x_62; } } } else { -lean_object* x_60; uint8_t x_61; +lean_object* x_63; uint8_t x_64; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -19750,28 +19852,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_60 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_ElabElim_revertArgs___spec__16___rarg(x_17, x_7, x_8, x_9, x_10, x_11); +x_63 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_ElabElim_revertArgs___spec__16___rarg(x_17, 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_7); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -return x_60; +return x_63; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_60); -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_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; } } } @@ -22835,22 +22937,26 @@ if (x_50 == 0) lean_object* x_51; lean_object* x_52; uint8_t x_53; x_51 = lean_ctor_get(x_45, 0); x_52 = lean_ctor_get(x_45, 1); -x_53 = l_Lean_Exception_isRuntime(x_51); +x_53 = l_Lean_Exception_isInterrupt(x_51); if (x_53 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_51); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_free_object(x_45); lean_dec(x_51); -x_54 = l_Lean_indentExpr(x_13); -x_55 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; +x_55 = l_Lean_indentExpr(x_13); +x_56 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_54); -lean_ctor_set(x_37, 0, x_55); -x_56 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +lean_ctor_set(x_37, 1, x_55); +lean_ctor_set(x_37, 0, x_56); +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; lean_ctor_set_tag(x_14, 6); -lean_ctor_set(x_14, 1, x_56); +lean_ctor_set(x_14, 1, x_57); lean_ctor_set(x_14, 0, x_37); -x_57 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_52); +x_58 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_52); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22859,23 +22965,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -return x_57; +return x_58; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_57); -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_dec(x_58); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } else @@ -22896,59 +23002,6 @@ return x_45; } else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_45, 0); -x_63 = lean_ctor_get(x_45, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_45); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) -{ -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_dec(x_62); -x_65 = l_Lean_indentExpr(x_13); -x_66 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_65); -lean_ctor_set(x_37, 0, x_66); -x_67 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -lean_ctor_set_tag(x_14, 6); -lean_ctor_set(x_14, 1, x_67); -lean_ctor_set(x_14, 0, x_37); -x_68 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_63); -lean_dec(x_11); -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_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; -} else { - lean_dec_ref(x_68); - 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_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -else -{ -lean_object* x_73; lean_free_object(x_37); lean_free_object(x_14); lean_dec(x_13); @@ -22960,10 +23013,103 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_62); -lean_ctor_set(x_73, 1, x_63); -return x_73; +return x_45; +} +} +else +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_45, 0); +x_64 = lean_ctor_get(x_45, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_45); +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +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_dec(x_63); +x_67 = l_Lean_indentExpr(x_13); +x_68 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; +lean_ctor_set_tag(x_37, 6); +lean_ctor_set(x_37, 1, x_67); +lean_ctor_set(x_37, 0, x_68); +x_69 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +lean_ctor_set_tag(x_14, 6); +lean_ctor_set(x_14, 1, x_69); +lean_ctor_set(x_14, 0, x_37); +x_70 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_64); +lean_dec(x_11); +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_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_73 = x_70; +} else { + lean_dec_ref(x_70); + 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); +return x_74; +} +else +{ +lean_object* x_75; +lean_free_object(x_37); +lean_free_object(x_14); +lean_dec(x_13); +lean_dec(x_11); +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_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_63); +lean_ctor_set(x_75, 1, x_64); +return x_75; +} +} +else +{ +lean_object* x_76; +lean_free_object(x_37); +lean_free_object(x_14); +lean_dec(x_13); +lean_dec(x_11); +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_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_63); +lean_ctor_set(x_76, 1, x_64); +return x_76; } } } @@ -22971,86 +23117,90 @@ return x_73; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_74 = lean_ctor_get(x_37, 0); -x_75 = lean_ctor_get(x_37, 1); -lean_inc(x_75); -lean_inc(x_74); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_77 = lean_ctor_get(x_37, 0); +x_78 = lean_ctor_get(x_37, 1); +lean_inc(x_78); +lean_inc(x_77); lean_dec(x_37); -x_76 = lean_ctor_get(x_74, 3); -lean_inc(x_76); -lean_dec(x_74); -x_77 = l_List_isEmpty___rarg(x_76); -lean_dec(x_76); -if (x_77 == 0) +x_79 = lean_ctor_get(x_77, 3); +lean_inc(x_79); +lean_dec(x_77); +x_80 = l_List_isEmpty___rarg(x_79); +lean_dec(x_79); +if (x_80 == 0) { -lean_object* x_78; lean_object* x_79; +lean_object* x_81; lean_object* x_82; lean_dec(x_18); lean_free_object(x_14); lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); -x_78 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__6; -x_79 = l_panic___at_Lean_Elab_Term_ElabElim_finalize___spec__5(x_78, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_75); -return x_79; +x_81 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__6; +x_82 = l_panic___at_Lean_Elab_Term_ElabElim_finalize___spec__5(x_81, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_78); +return x_82; } else { -lean_object* x_80; +lean_object* x_83; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_13); -x_80 = l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(x_2, x_20, x_13, x_8, x_9, x_10, x_11, x_75); -if (lean_obj_tag(x_80) == 0) +x_83 = l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(x_2, x_20, x_13, x_8, x_9, x_10, x_11, x_78); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_free_object(x_14); lean_dec(x_13); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_box(0); -x_84 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_81, x_18, x_83, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_82); -return x_84; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_box(0); +x_87 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_84, x_18, x_86, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_85); +return x_87; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_dec(x_18); lean_dec(x_2); lean_dec(x_1); -x_85 = lean_ctor_get(x_80, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_80, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_87 = x_80; +x_88 = lean_ctor_get(x_83, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_83, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_90 = x_83; } else { - lean_dec_ref(x_80); - x_87 = lean_box(0); + lean_dec_ref(x_83); + x_90 = lean_box(0); } -x_88 = l_Lean_Exception_isRuntime(x_85); -if (x_88 == 0) +x_91 = l_Lean_Exception_isInterrupt(x_88); +if (x_91 == 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_dec(x_87); -lean_dec(x_85); -x_89 = l_Lean_indentExpr(x_13); -x_90 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; -x_91 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +uint8_t x_92; +x_92 = l_Lean_Exception_isRuntime(x_88); +if (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; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_90); +lean_dec(x_88); +x_93 = l_Lean_indentExpr(x_13); +x_94 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; +x_95 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +x_96 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; lean_ctor_set_tag(x_14, 6); -lean_ctor_set(x_14, 1, x_92); -lean_ctor_set(x_14, 0, x_91); -x_93 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_86); +lean_ctor_set(x_14, 1, x_96); +lean_ctor_set(x_14, 0, x_95); +x_97 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_89); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23059,30 +23209,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; } else { - lean_dec_ref(x_93); - x_96 = lean_box(0); + lean_dec_ref(x_97); + x_100 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_101 = x_100; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } else { -lean_object* x_98; +lean_object* x_102; lean_free_object(x_14); lean_dec(x_13); lean_dec(x_11); @@ -23093,14 +23243,37 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_87)) { - x_98 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_98 = x_87; + x_102 = x_90; } -lean_ctor_set(x_98, 0, x_85); -lean_ctor_set(x_98, 1, x_86); -return x_98; +lean_ctor_set(x_102, 0, x_88); +lean_ctor_set(x_102, 1, x_89); +return x_102; +} +} +else +{ +lean_object* x_103; +lean_free_object(x_14); +lean_dec(x_13); +lean_dec(x_11); +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); +if (lean_is_scalar(x_90)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_90; +} +lean_ctor_set(x_103, 0, x_88); +lean_ctor_set(x_103, 1, x_89); +return x_103; } } } @@ -23109,58 +23282,58 @@ return x_98; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_99 = lean_ctor_get(x_14, 0); -x_100 = lean_ctor_get(x_14, 1); -lean_inc(x_100); -lean_inc(x_99); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_104 = lean_ctor_get(x_14, 0); +x_105 = lean_ctor_get(x_14, 1); +lean_inc(x_105); +lean_inc(x_104); lean_dec(x_14); -x_101 = lean_ctor_get(x_99, 0); -lean_inc(x_101); -lean_dec(x_99); -x_102 = lean_array_get_size(x_2); -x_103 = lean_unsigned_to_nat(0u); -x_104 = lean_nat_dec_lt(x_103, x_102); -lean_dec(x_102); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_105 = lean_st_ref_get(x_5, x_100); -x_106 = lean_ctor_get(x_105, 0); +x_106 = lean_ctor_get(x_104, 0); lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_ctor_get(x_106, 3); -lean_inc(x_108); -lean_dec(x_106); +lean_dec(x_104); +x_107 = lean_array_get_size(x_2); +x_108 = lean_unsigned_to_nat(0u); +x_109 = lean_nat_dec_lt(x_108, x_107); +lean_dec(x_107); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_110 = lean_st_ref_get(x_5, x_105); +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, 3); +lean_inc(x_113); +lean_dec(x_111); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_109 = l_Lean_Elab_Term_ElabElim_revertArgs(x_108, x_101, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_107); -if (lean_obj_tag(x_109) == 0) +x_114 = l_Lean_Elab_Term_ElabElim_revertArgs(x_113, x_106, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_112); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_ctor_get(x_110, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_110, 1); -lean_inc(x_113); -lean_dec(x_110); -x_114 = lean_box(0); -x_115 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_113, x_112, x_114, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_111); -return x_115; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = lean_ctor_get(x_115, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +lean_dec(x_115); +x_119 = lean_box(0); +x_120 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_118, x_117, x_119, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_116); +return x_120; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23171,123 +23344,127 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_116 = lean_ctor_get(x_109, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_109, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_118 = x_109; +x_121 = lean_ctor_get(x_114, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_114, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_123 = x_114; } else { - lean_dec_ref(x_109); - x_118 = lean_box(0); + lean_dec_ref(x_114); + x_123 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_124 = x_123; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_124, 0, x_121); +lean_ctor_set(x_124, 1, x_122); +return x_124; } } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -x_120 = lean_st_ref_get(x_5, x_100); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_123 = x_120; +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; +x_125 = lean_st_ref_get(x_5, x_105); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; } else { - lean_dec_ref(x_120); - x_123 = lean_box(0); + lean_dec_ref(x_125); + x_128 = lean_box(0); } -x_124 = lean_ctor_get(x_121, 3); -lean_inc(x_124); -lean_dec(x_121); -x_125 = l_List_isEmpty___rarg(x_124); -lean_dec(x_124); -if (x_125 == 0) +x_129 = lean_ctor_get(x_126, 3); +lean_inc(x_129); +lean_dec(x_126); +x_130 = l_List_isEmpty___rarg(x_129); +lean_dec(x_129); +if (x_130 == 0) { -lean_object* x_126; lean_object* x_127; -lean_dec(x_123); -lean_dec(x_101); +lean_object* x_131; lean_object* x_132; +lean_dec(x_128); +lean_dec(x_106); lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); -x_126 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__6; -x_127 = l_panic___at_Lean_Elab_Term_ElabElim_finalize___spec__5(x_126, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_122); -return x_127; +x_131 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__6; +x_132 = l_panic___at_Lean_Elab_Term_ElabElim_finalize___spec__5(x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_127); +return x_132; } else { -lean_object* x_128; +lean_object* x_133; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_13); -x_128 = l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(x_2, x_103, x_13, x_8, x_9, x_10, x_11, x_122); -if (lean_obj_tag(x_128) == 0) +x_133 = l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(x_2, x_108, x_13, x_8, x_9, x_10, x_11, x_127); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_123); -lean_dec(x_13); -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_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_128); -x_131 = lean_box(0); -x_132 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_129, x_101, x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_130); -return x_132; +lean_dec(x_13); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_136 = lean_box(0); +x_137 = l_Lean_Elab_Term_ElabElim_finalize___lambda__3(x_2, x_1, x_134, x_106, x_136, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_135); +return x_137; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -lean_dec(x_101); +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +lean_dec(x_106); lean_dec(x_2); lean_dec(x_1); -x_133 = lean_ctor_get(x_128, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_128, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_135 = x_128; +x_138 = lean_ctor_get(x_133, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_133, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_140 = x_133; } else { - lean_dec_ref(x_128); - x_135 = lean_box(0); + lean_dec_ref(x_133); + x_140 = lean_box(0); } -x_136 = l_Lean_Exception_isRuntime(x_133); -if (x_136 == 0) +x_141 = l_Lean_Exception_isInterrupt(x_138); +if (x_141 == 0) { -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_dec(x_135); -lean_dec(x_133); -x_137 = l_Lean_indentExpr(x_13); -x_138 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; -if (lean_is_scalar(x_123)) { - x_139 = lean_alloc_ctor(6, 2, 0); +uint8_t x_142; +x_142 = l_Lean_Exception_isRuntime(x_138); +if (x_142 == 0) +{ +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_dec(x_140); +lean_dec(x_138); +x_143 = l_Lean_indentExpr(x_13); +x_144 = l_Lean_Elab_Term_ElabElim_finalize___lambda__4___closed__8; +if (lean_is_scalar(x_128)) { + x_145 = lean_alloc_ctor(6, 2, 0); } else { - x_139 = x_123; - lean_ctor_set_tag(x_139, 6); + x_145 = x_128; + lean_ctor_set_tag(x_145, 6); } -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -x_140 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_141 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -x_142 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_141, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_134); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_147 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_throwError___at_Lean_Elab_Term_ElabElim_finalize___spec__3(x_147, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_139); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23296,31 +23473,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_145 = 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); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; } else { - lean_dec_ref(x_142); - x_145 = lean_box(0); + lean_dec_ref(x_148); + x_151 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_145; + x_152 = x_151; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; } else { -lean_object* x_147; -lean_dec(x_123); +lean_object* x_153; +lean_dec(x_128); lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); @@ -23330,14 +23507,37 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_135)) { - x_147 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_140)) { + x_153 = lean_alloc_ctor(1, 2, 0); } else { - x_147 = x_135; + x_153 = x_140; } -lean_ctor_set(x_147, 0, x_133); -lean_ctor_set(x_147, 1, x_134); -return x_147; +lean_ctor_set(x_153, 0, x_138); +lean_ctor_set(x_153, 1, x_139); +return x_153; +} +} +else +{ +lean_object* x_154; +lean_dec(x_128); +lean_dec(x_13); +lean_dec(x_11); +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); +if (lean_is_scalar(x_140)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_140; +} +lean_ctor_set(x_154, 0, x_138); +lean_ctor_set(x_154, 1, x_139); +return x_154; } } } @@ -24636,7 +24836,7 @@ return x_25; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* 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; lean_object* x_39; lean_object* x_40; +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; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_26 = lean_ctor_get(x_9, 0); x_27 = lean_ctor_get(x_9, 1); x_28 = lean_ctor_get(x_9, 2); @@ -24648,7 +24848,10 @@ x_33 = lean_ctor_get(x_9, 7); x_34 = lean_ctor_get(x_9, 8); x_35 = lean_ctor_get(x_9, 9); x_36 = lean_ctor_get(x_9, 10); -x_37 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_37 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_38 = lean_ctor_get(x_9, 11); +x_39 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_38); lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); @@ -24661,29 +24864,31 @@ lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_dec(x_9); -x_38 = l_Lean_replaceRef(x_13, x_31); +x_40 = l_Lean_replaceRef(x_13, x_31); lean_dec(x_31); lean_dec(x_13); -x_39 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_39, 0, x_26); -lean_ctor_set(x_39, 1, x_27); -lean_ctor_set(x_39, 2, x_28); -lean_ctor_set(x_39, 3, x_29); -lean_ctor_set(x_39, 4, x_30); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_32); -lean_ctor_set(x_39, 7, x_33); -lean_ctor_set(x_39, 8, x_34); -lean_ctor_set(x_39, 9, x_35); -lean_ctor_set(x_39, 10, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_37); -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_21, x_16, x_2, x_5, x_6, x_7, x_8, x_39, x_10, x_20); -return x_40; +x_41 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_41, 2, x_28); +lean_ctor_set(x_41, 3, x_29); +lean_ctor_set(x_41, 4, x_30); +lean_ctor_set(x_41, 5, x_40); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*12, x_37); +lean_ctor_set_uint8(x_41, sizeof(void*)*12 + 1, x_39); +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_21, x_16, x_2, x_5, x_6, x_7, x_8, x_41, x_10, x_20); +return x_42; } } else { -uint8_t x_41; +uint8_t x_43; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -24692,84 +24897,87 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_15); -if (x_41 == 0) +x_43 = !lean_is_exclusive(x_15); +if (x_43 == 0) { return x_15; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_15, 0); -x_43 = lean_ctor_get(x_15, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_15, 0); +x_45 = lean_ctor_get(x_15, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_15); -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; +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 { -lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_1, 0); -lean_inc(x_45); +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_1, 0); +lean_inc(x_47); lean_dec(x_1); lean_inc(x_2); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_2); -x_47 = 1; +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_2); +x_49 = 1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_45); -x_48 = l_Lean_Elab_Term_elabTerm(x_45, x_46, x_47, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_47); +x_50 = l_Lean_Elab_Term_elabTerm(x_47, x_48, x_49, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_50) == 0) { -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; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = lean_st_ref_get(x_4, x_50); -x_52 = lean_ctor_get(x_51, 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_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; uint8_t x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_ctor_get(x_52, 0); +lean_dec(x_50); +x_53 = lean_st_ref_get(x_4, x_52); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_9, 0); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_9, 1); +lean_dec(x_53); +x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_9, 2); +lean_dec(x_54); +x_57 = lean_ctor_get(x_9, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_9, 3); +x_58 = lean_ctor_get(x_9, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_9, 4); +x_59 = lean_ctor_get(x_9, 2); lean_inc(x_59); -x_60 = lean_ctor_get(x_9, 5); +x_60 = lean_ctor_get(x_9, 3); lean_inc(x_60); -x_61 = lean_ctor_get(x_9, 6); +x_61 = lean_ctor_get(x_9, 4); lean_inc(x_61); -x_62 = lean_ctor_get(x_9, 7); +x_62 = lean_ctor_get(x_9, 5); lean_inc(x_62); -x_63 = lean_ctor_get(x_9, 8); +x_63 = lean_ctor_get(x_9, 6); lean_inc(x_63); -x_64 = lean_ctor_get(x_9, 9); +x_64 = lean_ctor_get(x_9, 7); lean_inc(x_64); -x_65 = lean_ctor_get(x_9, 10); +x_65 = lean_ctor_get(x_9, 8); lean_inc(x_65); -x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_66 = lean_ctor_get(x_9, 9); +lean_inc(x_66); +x_67 = lean_ctor_get(x_9, 10); +lean_inc(x_67); +x_68 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_69 = lean_ctor_get(x_9, 11); +lean_inc(x_69); +x_70 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 0); lean_ctor_release(x_9, 1); @@ -24782,38 +24990,41 @@ if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 8); lean_ctor_release(x_9, 9); lean_ctor_release(x_9, 10); - x_67 = x_9; + lean_ctor_release(x_9, 11); + x_71 = x_9; } else { lean_dec_ref(x_9); - x_67 = lean_box(0); + x_71 = lean_box(0); } -x_68 = l_Lean_replaceRef(x_45, x_60); -lean_dec(x_60); -lean_dec(x_45); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 11, 1); +x_72 = l_Lean_replaceRef(x_47, x_62); +lean_dec(x_62); +lean_dec(x_47); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 12, 2); } else { - x_69 = x_67; + x_73 = x_71; } -lean_ctor_set(x_69, 0, x_55); -lean_ctor_set(x_69, 1, x_56); -lean_ctor_set(x_69, 2, x_57); -lean_ctor_set(x_69, 3, x_58); -lean_ctor_set(x_69, 4, x_59); -lean_ctor_set(x_69, 5, x_68); -lean_ctor_set(x_69, 6, x_61); -lean_ctor_set(x_69, 7, x_62); -lean_ctor_set(x_69, 8, x_63); -lean_ctor_set(x_69, 9, x_64); -lean_ctor_set(x_69, 10, x_65); -lean_ctor_set_uint8(x_69, sizeof(void*)*11, x_66); -x_70 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_54, x_49, x_2, x_5, x_6, x_7, x_8, x_69, x_10, x_53); -return x_70; +lean_ctor_set(x_73, 0, x_57); +lean_ctor_set(x_73, 1, x_58); +lean_ctor_set(x_73, 2, x_59); +lean_ctor_set(x_73, 3, x_60); +lean_ctor_set(x_73, 4, x_61); +lean_ctor_set(x_73, 5, x_72); +lean_ctor_set(x_73, 6, x_63); +lean_ctor_set(x_73, 7, x_64); +lean_ctor_set(x_73, 8, x_65); +lean_ctor_set(x_73, 9, x_66); +lean_ctor_set(x_73, 10, x_67); +lean_ctor_set(x_73, 11, x_69); +lean_ctor_set_uint8(x_73, sizeof(void*)*12, x_68); +lean_ctor_set_uint8(x_73, sizeof(void*)*12 + 1, x_70); +x_74 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_56, x_51, x_2, x_5, x_6, x_7, x_8, x_73, x_10, x_55); +return x_74; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_45); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_47); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -24821,46 +25032,46 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_71 = lean_ctor_get(x_48, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_48, 1); -lean_inc(x_72); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_73 = x_48; +x_75 = lean_ctor_get(x_50, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_50, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_77 = x_50; } else { - lean_dec_ref(x_48); - x_73 = lean_box(0); + lean_dec_ref(x_50); + x_77 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); } else { - x_74 = x_73; + x_78 = x_77; } -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_72); -return x_74; +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; } } } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_75 = lean_ctor_get(x_1, 0); -lean_inc(x_75); -lean_dec(x_1); -x_76 = lean_st_ref_get(x_4, x_11); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_ctor_get(x_77, 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 = lean_ctor_get(x_1, 0); lean_inc(x_79); -lean_dec(x_77); -x_80 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_79, x_75, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_78); -return x_80; +lean_dec(x_1); +x_80 = lean_st_ref_get(x_4, x_11); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_83, x_79, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_82); +return x_84; } } } @@ -27468,7 +27679,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs_elabAsElim_x3f(lean_object _start: { uint8_t x_12; -x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4); +x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; @@ -35812,59 +36023,45 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; uint8_t x_37; x_35 = lean_ctor_get(x_29, 0); x_36 = lean_ctor_get(x_29, 1); -x_37 = l_Lean_Exception_isRuntime(x_35); +x_37 = l_Lean_Exception_isInterrupt(x_35); if (x_37 == 0) { +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ if (lean_obj_tag(x_35) == 0) { -lean_object* x_38; +lean_object* x_39; lean_free_object(x_29); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_38 = l_Lean_Meta_unfoldDefinition_x3f(x_27, x_9, x_10, x_11, x_12, x_36); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); +x_39 = l_Lean_Meta_unfoldDefinition_x3f(x_27, x_9, x_10, x_11, x_12, x_36); if (lean_obj_tag(x_39) == 0) { -uint8_t x_40; +lean_object* x_40; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; lean_dec(x_3); lean_dec(x_2); -x_40 = !lean_is_exclusive(x_38); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_41 = lean_ctor_get(x_38, 1); -x_42 = lean_ctor_get(x_38, 0); -lean_dec(x_42); -x_43 = lean_array_get_size(x_4); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_nat_dec_lt(x_44, x_43); -if (x_45 == 0) +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) { +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_39, 1); +x_43 = lean_ctor_get(x_39, 0); lean_dec(x_43); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_ctor_set_tag(x_38, 1); -lean_ctor_set(x_38, 0, x_35); -return x_38; -} -else -{ -uint8_t x_46; -x_46 = lean_nat_dec_le(x_43, x_43); +x_44 = lean_array_get_size(x_4); +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_nat_dec_lt(x_45, x_44); if (x_46 == 0) { -lean_dec(x_43); +lean_dec(x_44); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -35872,66 +36069,84 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -lean_ctor_set_tag(x_38, 1); -lean_ctor_set(x_38, 0, x_35); -return x_38; +lean_ctor_set_tag(x_39, 1); +lean_ctor_set(x_39, 0, x_35); +return x_39; } else { -size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; -lean_free_object(x_38); -x_47 = 0; -x_48 = lean_usize_of_nat(x_43); -lean_dec(x_43); -x_49 = lean_box(0); -x_50 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_47, x_48, x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_41); +uint8_t x_47; +x_47 = lean_nat_dec_le(x_44, x_44); +if (x_47 == 0) +{ +lean_dec(x_44); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -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; -x_52 = lean_ctor_get(x_50, 0); -lean_dec(x_52); -lean_ctor_set_tag(x_50, 1); -lean_ctor_set(x_50, 0, x_35); -return x_50; +lean_ctor_set_tag(x_39, 1); +lean_ctor_set(x_39, 0, x_35); +return x_39; } else { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_35); -lean_ctor_set(x_54, 1, x_53); -return x_54; +size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; +lean_free_object(x_39); +x_48 = 0; +x_49 = lean_usize_of_nat(x_44); +lean_dec(x_44); +x_50 = lean_box(0); +x_51 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_48, x_49, x_50, x_7, x_8, x_9, x_10, x_11, x_12, x_42); +lean_dec(x_4); +if (lean_obj_tag(x_51) == 0) +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set_tag(x_51, 1); +lean_ctor_set(x_51, 0, x_35); +return x_51; +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_35); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } else { -uint8_t x_55; +uint8_t x_56; lean_dec(x_35); -x_55 = !lean_is_exclusive(x_50); -if (x_55 == 0) +x_56 = !lean_is_exclusive(x_51); +if (x_56 == 0) { -return x_50; +return x_51; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_50, 0); -x_57 = lean_ctor_get(x_50, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_51, 0); +x_58 = lean_ctor_get(x_51, 1); +lean_inc(x_58); lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_50); -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; +lean_dec(x_51); +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; } } } @@ -35939,17 +36154,17 @@ return x_58; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_38, 1); -lean_inc(x_59); -lean_dec(x_38); -x_60 = lean_array_get_size(x_4); -x_61 = lean_unsigned_to_nat(0u); -x_62 = lean_nat_dec_lt(x_61, x_60); -if (x_62 == 0) +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_39, 1); +lean_inc(x_60); +lean_dec(x_39); +x_61 = lean_array_get_size(x_4); +x_62 = lean_unsigned_to_nat(0u); +x_63 = lean_nat_dec_lt(x_62, x_61); +if (x_63 == 0) { -lean_object* x_63; -lean_dec(x_60); +lean_object* x_64; +lean_dec(x_61); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -35957,19 +36172,19 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_35); -lean_ctor_set(x_63, 1, x_59); -return x_63; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_35); +lean_ctor_set(x_64, 1, x_60); +return x_64; } else { -uint8_t x_64; -x_64 = lean_nat_dec_le(x_60, x_60); -if (x_64 == 0) +uint8_t x_65; +x_65 = lean_nat_dec_le(x_61, x_61); +if (x_65 == 0) { -lean_object* x_65; -lean_dec(x_60); +lean_object* x_66; +lean_dec(x_61); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -35977,67 +36192,67 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_35); -lean_ctor_set(x_65, 1, x_59); -return x_65; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_35); +lean_ctor_set(x_66, 1, x_60); +return x_66; } else { -size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; -x_66 = 0; -x_67 = lean_usize_of_nat(x_60); -lean_dec(x_60); -x_68 = lean_box(0); -x_69 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_66, x_67, x_68, x_7, x_8, x_9, x_10, x_11, x_12, x_59); +size_t x_67; size_t x_68; lean_object* x_69; lean_object* x_70; +x_67 = 0; +x_68 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_69 = lean_box(0); +x_70 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_67, x_68, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_60); lean_dec(x_4); -if (lean_obj_tag(x_69) == 0) +if (lean_obj_tag(x_70) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; } else { - lean_dec_ref(x_69); - x_71 = lean_box(0); + lean_dec_ref(x_70); + x_72 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; - lean_ctor_set_tag(x_72, 1); + x_73 = x_72; + lean_ctor_set_tag(x_73, 1); } -lean_ctor_set(x_72, 0, x_35); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_73, 0, x_35); +lean_ctor_set(x_73, 1, x_71); +return x_73; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_dec(x_35); -x_73 = lean_ctor_get(x_69, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_69, 1); +x_74 = lean_ctor_get(x_70, 0); lean_inc(x_74); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_75 = x_69; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_76 = x_70; } else { - lean_dec_ref(x_69); - x_75 = lean_box(0); + lean_dec_ref(x_70); + x_76 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_77 = x_76; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } @@ -36045,114 +36260,114 @@ return x_76; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_77 = lean_ctor_get(x_38, 1); -lean_inc(x_77); -lean_dec(x_38); -x_78 = lean_ctor_get(x_39, 0); +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = lean_ctor_get(x_39, 1); lean_inc(x_78); lean_dec(x_39); +x_79 = lean_ctor_get(x_40, 0); +lean_inc(x_79); +lean_dec(x_40); lean_inc(x_35); -x_79 = lean_array_push(x_4, x_35); -x_80 = !lean_is_exclusive(x_35); -if (x_80 == 0) +x_80 = lean_array_push(x_4, x_35); +x_81 = !lean_is_exclusive(x_35); +if (x_81 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_35, 1); -lean_dec(x_81); -x_82 = lean_ctor_get(x_35, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_35, 1); lean_dec(x_82); -x_83 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_78, x_79, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_77); -if (lean_obj_tag(x_83) == 0) +x_83 = lean_ctor_get(x_35, 0); +lean_dec(x_83); +x_84 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_79, x_80, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_78); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_box(0); -lean_ctor_set(x_35, 1, x_86); -lean_ctor_set(x_35, 0, x_84); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_box(0); +lean_ctor_set(x_35, 1, x_87); +lean_ctor_set(x_35, 0, x_85); x_14 = x_35; -x_15 = x_85; +x_15 = x_86; goto block_24; } else { -uint8_t x_87; +uint8_t x_88; lean_free_object(x_35); -x_87 = !lean_is_exclusive(x_83); -if (x_87 == 0) +x_88 = !lean_is_exclusive(x_84); +if (x_88 == 0) { -return x_83; +return x_84; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_83, 0); -x_89 = lean_ctor_get(x_83, 1); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_84, 0); +x_90 = lean_ctor_get(x_84, 1); +lean_inc(x_90); lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_83); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +lean_dec(x_84); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } else { -lean_object* x_91; +lean_object* x_92; lean_dec(x_35); -x_91 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_78, x_79, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_77); -if (lean_obj_tag(x_91) == 0) +x_92 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_79, x_80, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_78); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_box(0); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_94); -x_14 = x_95; -x_15 = x_93; +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_95); +x_14 = x_96; +x_15 = x_94; goto block_24; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_96 = lean_ctor_get(x_91, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_91, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_97 = lean_ctor_get(x_92, 0); lean_inc(x_97); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_98 = x_91; +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_99 = x_92; } else { - lean_dec_ref(x_91); - x_98 = lean_box(0); + lean_dec_ref(x_92); + x_99 = lean_box(0); } -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); } else { - x_99 = x_98; + x_100 = x_99; } -lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_97); -return x_99; +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +return x_100; } } } } else { -uint8_t x_100; +uint8_t x_101; lean_dec(x_35); lean_dec(x_12); lean_dec(x_11); @@ -36163,23 +36378,23 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_100 = !lean_is_exclusive(x_38); -if (x_100 == 0) +x_101 = !lean_is_exclusive(x_39); +if (x_101 == 0) { -return x_38; +return x_39; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_38, 0); -x_102 = lean_ctor_get(x_38, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_39, 0); +x_103 = lean_ctor_get(x_39, 1); +lean_inc(x_103); lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_38); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_dec(x_39); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } @@ -36215,75 +36430,69 @@ return x_29; } else { -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_ctor_get(x_29, 0); -x_105 = lean_ctor_get(x_29, 1); +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_29; +} +} +else +{ +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_29, 0); +x_106 = lean_ctor_get(x_29, 1); +lean_inc(x_106); lean_inc(x_105); -lean_inc(x_104); lean_dec(x_29); -x_106 = l_Lean_Exception_isRuntime(x_104); -if (x_106 == 0) +x_107 = l_Lean_Exception_isInterrupt(x_105); +if (x_107 == 0) { -if (lean_obj_tag(x_104) == 0) +uint8_t x_108; +x_108 = l_Lean_Exception_isRuntime(x_105); +if (x_108 == 0) { -lean_object* x_107; +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_109; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_107 = l_Lean_Meta_unfoldDefinition_x3f(x_27, x_9, x_10, x_11, x_12, x_105); -if (lean_obj_tag(x_107) == 0) +x_109 = l_Lean_Meta_unfoldDefinition_x3f(x_27, x_9, x_10, x_11, x_12, x_106); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_108; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -if (lean_obj_tag(x_108) == 0) +lean_object* x_110; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_dec(x_3); lean_dec(x_2); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; } else { - lean_dec_ref(x_107); - x_110 = lean_box(0); + lean_dec_ref(x_109); + x_112 = lean_box(0); } -x_111 = lean_array_get_size(x_4); -x_112 = lean_unsigned_to_nat(0u); -x_113 = lean_nat_dec_lt(x_112, x_111); -if (x_113 == 0) -{ -lean_object* x_114; -lean_dec(x_111); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -if (lean_is_scalar(x_110)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_110; - lean_ctor_set_tag(x_114, 1); -} -lean_ctor_set(x_114, 0, x_104); -lean_ctor_set(x_114, 1, x_109); -return x_114; -} -else -{ -uint8_t x_115; -x_115 = lean_nat_dec_le(x_111, x_111); +x_113 = lean_array_get_size(x_4); +x_114 = lean_unsigned_to_nat(0u); +x_115 = lean_nat_dec_lt(x_114, x_113); if (x_115 == 0) { lean_object* x_116; -lean_dec(x_111); +lean_dec(x_113); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36291,148 +36500,173 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_110)) { +if (lean_is_scalar(x_112)) { x_116 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_110; + x_116 = x_112; lean_ctor_set_tag(x_116, 1); } -lean_ctor_set(x_116, 0, x_104); -lean_ctor_set(x_116, 1, x_109); +lean_ctor_set(x_116, 0, x_105); +lean_ctor_set(x_116, 1, x_111); return x_116; } else { -size_t x_117; size_t x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_110); -x_117 = 0; -x_118 = lean_usize_of_nat(x_111); -lean_dec(x_111); -x_119 = lean_box(0); -x_120 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_117, x_118, x_119, x_7, x_8, x_9, x_10, x_11, x_12, x_109); +uint8_t x_117; +x_117 = lean_nat_dec_le(x_113, x_113); +if (x_117 == 0) +{ +lean_object* x_118; +lean_dec(x_113); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; +if (lean_is_scalar(x_112)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_120); - x_122 = lean_box(0); + x_118 = x_112; + lean_ctor_set_tag(x_118, 1); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; - lean_ctor_set_tag(x_123, 1); -} -lean_ctor_set(x_123, 0, x_104); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_118, 0, x_105); +lean_ctor_set(x_118, 1, x_111); +return x_118; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_104); -x_124 = lean_ctor_get(x_120, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_120, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_126 = x_120; +size_t x_119; size_t x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_112); +x_119 = 0; +x_120 = lean_usize_of_nat(x_113); +lean_dec(x_113); +x_121 = lean_box(0); +x_122 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_119, x_120, x_121, x_7, x_8, x_9, x_10, x_11, x_12, x_111); +lean_dec(x_4); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_124 = x_122; } else { - lean_dec_ref(x_120); - x_126 = lean_box(0); + lean_dec_ref(x_122); + x_124 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_126; + x_125 = x_124; + lean_ctor_set_tag(x_125, 1); } -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); -return x_127; +lean_ctor_set(x_125, 0, x_105); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_105); +x_126 = lean_ctor_get(x_122, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_122, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_128 = x_122; +} else { + lean_dec_ref(x_122); + x_128 = lean_box(0); +} +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_128; +} +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_127); +return x_129; } } } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_128 = lean_ctor_get(x_107, 1); -lean_inc(x_128); -lean_dec(x_107); -x_129 = lean_ctor_get(x_108, 0); -lean_inc(x_129); -lean_dec(x_108); -lean_inc(x_104); -x_130 = lean_array_push(x_4, x_104); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_131 = x_104; +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_130 = lean_ctor_get(x_109, 1); +lean_inc(x_130); +lean_dec(x_109); +x_131 = lean_ctor_get(x_110, 0); +lean_inc(x_131); +lean_dec(x_110); +lean_inc(x_105); +x_132 = lean_array_push(x_4, x_105); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_133 = x_105; } else { - lean_dec_ref(x_104); - x_131 = lean_box(0); + lean_dec_ref(x_105); + x_133 = lean_box(0); } -x_132 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_129, x_130, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_128); -if (lean_obj_tag(x_132) == 0) +x_134 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_131, x_132, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_130); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* 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); -lean_dec(x_132); -x_135 = lean_box(0); -if (lean_is_scalar(x_131)) { - x_136 = lean_alloc_ctor(0, 2, 0); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_137 = lean_box(0); +if (lean_is_scalar(x_133)) { + x_138 = lean_alloc_ctor(0, 2, 0); } else { - x_136 = x_131; + x_138 = x_133; } -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_135); -x_14 = x_136; -x_15 = x_134; +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_137); +x_14 = x_138; +x_15 = x_136; goto block_24; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_131); -x_137 = lean_ctor_get(x_132, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_132, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_139 = x_132; +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_133); +x_139 = lean_ctor_get(x_134, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_134, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_141 = x_134; } else { - lean_dec_ref(x_132); - x_139 = lean_box(0); + lean_dec_ref(x_134); + x_141 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_142 = x_141; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_104); +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_105); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36442,75 +36676,94 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_141 = lean_ctor_get(x_107, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_107, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_143 = x_107; +x_143 = lean_ctor_get(x_109, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_109, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_145 = x_109; } else { - lean_dec_ref(x_107); - x_143 = lean_box(0); + lean_dec_ref(x_109); + x_145 = lean_box(0); } -if (lean_is_scalar(x_143)) { - x_144 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); } else { - x_144 = x_143; + x_146 = x_145; } -lean_ctor_set(x_144, 0, x_141); -lean_ctor_set(x_144, 1, x_142); -return x_144; -} -} -else -{ -lean_object* x_145; -lean_dec(x_27); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_104); -lean_ctor_set(x_145, 1, x_105); -return x_145; -} -} -else -{ -lean_object* x_146; -lean_dec(x_27); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_104); -lean_ctor_set(x_146, 1, x_105); +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); return x_146; } } +else +{ +lean_object* x_147; +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_105); +lean_ctor_set(x_147, 1, x_106); +return x_147; } } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_25, 0); -x_148 = lean_ctor_get(x_25, 1); -lean_inc(x_148); -lean_inc(x_147); +lean_object* x_148; +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_105); +lean_ctor_set(x_148, 1, x_106); +return x_148; +} +} +else +{ +lean_object* x_149; +lean_dec(x_27); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_105); +lean_ctor_set(x_149, 1, x_106); +return x_149; +} +} +} +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_25, 0); +x_151 = lean_ctor_get(x_25, 1); +lean_inc(x_151); +lean_inc(x_150); lean_dec(x_25); lean_inc(x_12); lean_inc(x_11); @@ -36519,13 +36772,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_3); -lean_inc(x_147); +lean_inc(x_150); lean_inc(x_2); -x_149 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(x_2, x_147, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_148); -if (lean_obj_tag(x_149) == 0) +x_152 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(x_2, x_150, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_151); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_147); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_150); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36534,76 +36787,80 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_2); -lean_ctor_set(x_152, 1, x_150); -x_153 = lean_box(0); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -x_14 = x_154; -x_15 = x_151; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_2); +lean_ctor_set(x_155, 1, x_153); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +x_14 = x_157; +x_15 = x_154; goto block_24; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; -x_155 = lean_ctor_get(x_149, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_149, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_157 = x_149; +lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; +x_158 = lean_ctor_get(x_152, 0); +lean_inc(x_158); +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_149); - x_157 = lean_box(0); + lean_dec_ref(x_152); + x_160 = lean_box(0); } -x_158 = l_Lean_Exception_isRuntime(x_155); -if (x_158 == 0) +x_161 = l_Lean_Exception_isInterrupt(x_158); +if (x_161 == 0) { -if (lean_obj_tag(x_155) == 0) +uint8_t x_162; +x_162 = l_Lean_Exception_isRuntime(x_158); +if (x_162 == 0) { -lean_object* x_159; -lean_dec(x_157); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_163; +lean_dec(x_160); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_159 = l_Lean_Meta_unfoldDefinition_x3f(x_147, x_9, x_10, x_11, x_12, x_156); -if (lean_obj_tag(x_159) == 0) +x_163 = l_Lean_Meta_unfoldDefinition_x3f(x_150, x_9, x_10, x_11, x_12, x_159); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_160; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -if (lean_obj_tag(x_160) == 0) +lean_object* x_164; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_dec(x_3); lean_dec(x_2); -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; +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; } else { - lean_dec_ref(x_159); - x_162 = lean_box(0); + lean_dec_ref(x_163); + x_166 = lean_box(0); } -x_163 = lean_array_get_size(x_4); -x_164 = lean_unsigned_to_nat(0u); -x_165 = lean_nat_dec_lt(x_164, x_163); -if (x_165 == 0) +x_167 = lean_array_get_size(x_4); +x_168 = lean_unsigned_to_nat(0u); +x_169 = lean_nat_dec_lt(x_168, x_167); +if (x_169 == 0) { -lean_object* x_166; -lean_dec(x_163); +lean_object* x_170; +lean_dec(x_167); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36611,24 +36868,24 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_162)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_166)) { + x_170 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_162; - lean_ctor_set_tag(x_166, 1); + x_170 = x_166; + lean_ctor_set_tag(x_170, 1); } -lean_ctor_set(x_166, 0, x_155); -lean_ctor_set(x_166, 1, x_161); -return x_166; +lean_ctor_set(x_170, 0, x_158); +lean_ctor_set(x_170, 1, x_165); +return x_170; } else { -uint8_t x_167; -x_167 = lean_nat_dec_le(x_163, x_163); -if (x_167 == 0) +uint8_t x_171; +x_171 = lean_nat_dec_le(x_167, x_167); +if (x_171 == 0) { -lean_object* x_168; -lean_dec(x_163); +lean_object* x_172; +lean_dec(x_167); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36636,167 +36893,131 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_162)) { - x_168 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_166)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_168 = x_162; - lean_ctor_set_tag(x_168, 1); + x_172 = x_166; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_168, 0, x_155); -lean_ctor_set(x_168, 1, x_161); -return x_168; +lean_ctor_set(x_172, 0, x_158); +lean_ctor_set(x_172, 1, x_165); +return x_172; } else { -size_t x_169; size_t x_170; lean_object* x_171; lean_object* x_172; -lean_dec(x_162); -x_169 = 0; -x_170 = lean_usize_of_nat(x_163); -lean_dec(x_163); -x_171 = lean_box(0); -x_172 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_169, x_170, x_171, x_7, x_8, x_9, x_10, x_11, x_12, x_161); +size_t x_173; size_t x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_166); +x_173 = 0; +x_174 = lean_usize_of_nat(x_167); +lean_dec(x_167); +x_175 = lean_box(0); +x_176 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_173, x_174, x_175, x_7, x_8, x_9, x_10, x_11, x_12, x_165); lean_dec(x_4); -if (lean_obj_tag(x_172) == 0) +if (lean_obj_tag(x_176) == 0) { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_174 = x_172; -} else { - lean_dec_ref(x_172); - x_174 = lean_box(0); -} -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(1, 2, 0); -} else { - x_175 = x_174; - lean_ctor_set_tag(x_175, 1); -} -lean_ctor_set(x_175, 0, x_155); -lean_ctor_set(x_175, 1, x_173); -return x_175; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_155); -x_176 = lean_ctor_get(x_172, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_172, 1); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_176, 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; +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_178 = x_176; } else { - lean_dec_ref(x_172); + lean_dec_ref(x_176); x_178 = lean_box(0); } if (lean_is_scalar(x_178)) { x_179 = lean_alloc_ctor(1, 2, 0); } else { x_179 = x_178; + lean_ctor_set_tag(x_179, 1); } -lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 0, x_158); lean_ctor_set(x_179, 1, x_177); return x_179; } +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_158); +x_180 = lean_ctor_get(x_176, 0); +lean_inc(x_180); +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); +} +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_182; +} +lean_ctor_set(x_183, 0, x_180); +lean_ctor_set(x_183, 1, x_181); +return x_183; +} } } } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_180 = lean_ctor_get(x_159, 1); -lean_inc(x_180); -lean_dec(x_159); -x_181 = lean_ctor_get(x_160, 0); -lean_inc(x_181); -lean_dec(x_160); -lean_inc(x_155); -x_182 = lean_array_push(x_4, x_155); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_183 = x_155; -} else { - lean_dec_ref(x_155); - x_183 = lean_box(0); -} -x_184 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_181, x_182, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_180); -if (lean_obj_tag(x_184) == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_185 = lean_ctor_get(x_184, 0); +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_184 = lean_ctor_get(x_163, 1); +lean_inc(x_184); +lean_dec(x_163); +x_185 = lean_ctor_get(x_164, 0); lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_187 = lean_box(0); -if (lean_is_scalar(x_183)) { - x_188 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_164); +lean_inc(x_158); +x_186 = lean_array_push(x_4, x_158); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_187 = x_158; } else { - x_188 = x_183; + lean_dec_ref(x_158); + x_187 = lean_box(0); } -lean_ctor_set(x_188, 0, x_185); -lean_ctor_set(x_188, 1, x_187); -x_14 = x_188; -x_15 = x_186; +x_188 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_3, x_2, x_185, x_186, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_184); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +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_box(0); +if (lean_is_scalar(x_187)) { + x_192 = lean_alloc_ctor(0, 2, 0); +} else { + x_192 = x_187; +} +lean_ctor_set(x_192, 0, x_189); +lean_ctor_set(x_192, 1, x_191); +x_14 = x_192; +x_15 = x_190; goto block_24; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_183); -x_189 = lean_ctor_get(x_184, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_184, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_191 = x_184; -} else { - lean_dec_ref(x_184); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 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_dec(x_155); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_193 = lean_ctor_get(x_159, 0); +lean_dec(x_187); +x_193 = lean_ctor_get(x_188, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_159, 1); +x_194 = lean_ctor_get(x_188, 1); lean_inc(x_194); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_195 = x_159; +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_195 = x_188; } else { - lean_dec_ref(x_159); + lean_dec_ref(x_188); x_195 = lean_box(0); } if (lean_is_scalar(x_195)) { @@ -36809,10 +37030,11 @@ lean_ctor_set(x_196, 1, x_194); return x_196; } } +} else { -lean_object* x_197; -lean_dec(x_147); +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_158); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36822,20 +37044,32 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_157)) { - x_197 = lean_alloc_ctor(1, 2, 0); +x_197 = lean_ctor_get(x_163, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_163, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_199 = x_163; } else { - x_197 = x_157; + lean_dec_ref(x_163); + x_199 = lean_box(0); } -lean_ctor_set(x_197, 0, x_155); -lean_ctor_set(x_197, 1, x_156); -return x_197; +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +return x_200; } } else { -lean_object* x_198; -lean_dec(x_147); +lean_object* x_201; +lean_dec(x_150); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -36845,14 +37079,60 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_157)) { - x_198 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_160)) { + x_201 = lean_alloc_ctor(1, 2, 0); } else { - x_198 = x_157; + x_201 = x_160; } -lean_ctor_set(x_198, 0, x_155); -lean_ctor_set(x_198, 1, x_156); -return x_198; +lean_ctor_set(x_201, 0, x_158); +lean_ctor_set(x_201, 1, x_159); +return x_201; +} +} +else +{ +lean_object* x_202; +lean_dec(x_150); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_160)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_160; +} +lean_ctor_set(x_202, 0, x_158); +lean_ctor_set(x_202, 1, x_159); +return x_202; +} +} +else +{ +lean_object* x_203; +lean_dec(x_150); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_160)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_160; +} +lean_ctor_set(x_203, 0, x_158); +lean_ctor_set(x_203, 1, x_159); +return x_203; } } } @@ -37283,6 +37563,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); lean_inc(x_3); x_14 = l_Lean_Elab_Term_mkConst(x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_14) == 0) @@ -38991,6 +39272,7 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); +lean_inc(x_12); lean_inc(x_11); x_20 = l_Lean_Elab_Term_mkConst(x_18, x_19, x_11, x_12, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_20) == 0) @@ -39229,6 +39511,7 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); x_19 = l_Lean_Elab_Term_mkConst(x_1, x_18, x_11, x_12, x_13, x_14, x_15, x_16, x_17); @@ -41681,7 +41964,7 @@ return x_40; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t 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) { _start: { -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; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_18 = lean_ctor_get(x_15, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_15, 1); @@ -41704,22 +41987,27 @@ x_27 = lean_ctor_get(x_15, 9); lean_inc(x_27); x_28 = lean_ctor_get(x_15, 10); lean_inc(x_28); -x_29 = lean_ctor_get_uint8(x_15, sizeof(void*)*11); -x_30 = l_Lean_replaceRef(x_1, x_23); +x_29 = lean_ctor_get_uint8(x_15, sizeof(void*)*12); +x_30 = lean_ctor_get(x_15, 11); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_15, sizeof(void*)*12 + 1); +x_32 = l_Lean_replaceRef(x_1, x_23); lean_dec(x_23); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_30); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_25); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set(x_31, 9, x_27); -lean_ctor_set(x_31, 10, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_29); +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_19); +lean_ctor_set(x_33, 2, x_20); +lean_ctor_set(x_33, 3, x_21); +lean_ctor_set(x_33, 4, x_22); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_24); +lean_ctor_set(x_33, 7, x_25); +lean_ctor_set(x_33, 8, x_26); +lean_ctor_set(x_33, 9, x_27); +lean_ctor_set(x_33, 10, x_28); +lean_ctor_set(x_33, 11, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_31); lean_inc(x_16); lean_inc(x_14); lean_inc(x_13); @@ -41727,177 +42015,185 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_6); lean_inc(x_1); -x_32 = l_Lean_Elab_Term_resolveName_x27(x_1, x_2, x_6, x_11, x_12, x_13, x_14, x_31, x_16, x_17); -if (lean_obj_tag(x_32) == 0) +x_34 = l_Lean_Elab_Term_resolveName_x27(x_1, x_2, x_6, x_11, x_12, x_13, x_14, x_33, x_16, x_17); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; -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_ctor_get(x_11, 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; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_11, 1); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_11, 2); +lean_dec(x_34); +x_37 = lean_ctor_get(x_11, 0); lean_inc(x_37); -x_38 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); -x_39 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 2); -x_40 = lean_ctor_get(x_11, 3); -lean_inc(x_40); -x_41 = lean_ctor_get(x_11, 4); -lean_inc(x_41); -x_42 = lean_ctor_get(x_11, 5); +x_38 = lean_ctor_get(x_11, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_11, 2); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_11, sizeof(void*)*9); +x_41 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 2); +x_42 = lean_ctor_get(x_11, 3); lean_inc(x_42); -x_43 = lean_ctor_get(x_11, 6); +x_43 = lean_ctor_get(x_11, 4); lean_inc(x_43); -x_44 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 3); -x_45 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 4); -x_46 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 5); -x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 6); -x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 7); -x_49 = lean_ctor_get(x_11, 7); -lean_inc(x_49); -x_50 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 8); -x_51 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 9); -x_52 = lean_unsigned_to_nat(0u); -x_53 = l_List_lengthTRAux___rarg(x_33, x_52); -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_dec_eq(x_53, x_54); +x_44 = lean_ctor_get(x_11, 5); +lean_inc(x_44); +x_45 = lean_ctor_get(x_11, 6); +lean_inc(x_45); +x_46 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 3); +x_47 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 4); +x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 5); +x_49 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 6); +x_50 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 7); +x_51 = lean_ctor_get(x_11, 7); +lean_inc(x_51); +x_52 = lean_ctor_get(x_11, 8); +lean_inc(x_52); +x_53 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 8); +x_54 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 9); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_List_lengthTRAux___rarg(x_35, x_55); +x_57 = lean_unsigned_to_nat(1u); +x_58 = lean_nat_dec_eq(x_56, x_57); if (x_9 == 0) { -uint8_t x_85; -x_85 = lean_nat_dec_lt(x_54, x_53); -lean_dec(x_53); -x_56 = x_85; -goto block_84; +uint8_t x_90; +x_90 = lean_nat_dec_lt(x_57, x_56); +lean_dec(x_56); +x_59 = x_90; +goto block_89; } else { -uint8_t x_86; -lean_dec(x_53); -x_86 = 1; -x_56 = x_86; -goto block_84; +uint8_t x_91; +lean_dec(x_56); +x_91 = 1; +x_59 = x_91; +goto block_89; } -block_84: +block_89: { -if (x_55 == 0) +if (x_58 == 0) { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_11); -if (x_57 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_11); +if (x_60 == 0) { -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; uint8_t x_66; lean_object* x_67; -x_58 = lean_ctor_get(x_11, 7); -lean_dec(x_58); -x_59 = lean_ctor_get(x_11, 6); -lean_dec(x_59); -x_60 = lean_ctor_get(x_11, 5); -lean_dec(x_60); -x_61 = lean_ctor_get(x_11, 4); +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; uint8_t x_70; lean_object* x_71; +x_61 = lean_ctor_get(x_11, 8); lean_dec(x_61); -x_62 = lean_ctor_get(x_11, 3); +x_62 = lean_ctor_get(x_11, 7); lean_dec(x_62); -x_63 = lean_ctor_get(x_11, 2); +x_63 = lean_ctor_get(x_11, 6); lean_dec(x_63); -x_64 = lean_ctor_get(x_11, 1); +x_64 = lean_ctor_get(x_11, 5); lean_dec(x_64); -x_65 = lean_ctor_get(x_11, 0); +x_65 = lean_ctor_get(x_11, 4); lean_dec(x_65); -x_66 = 0; -lean_ctor_set_uint8(x_11, sizeof(void*)*8 + 1, x_66); -x_67 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_56, x_10, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_34); -return x_67; +x_66 = lean_ctor_get(x_11, 3); +lean_dec(x_66); +x_67 = lean_ctor_get(x_11, 2); +lean_dec(x_67); +x_68 = lean_ctor_get(x_11, 1); +lean_dec(x_68); +x_69 = lean_ctor_get(x_11, 0); +lean_dec(x_69); +x_70 = 0; +lean_ctor_set_uint8(x_11, sizeof(void*)*9 + 1, x_70); +x_71 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_59, x_10, x_35, x_11, x_12, x_13, x_14, x_15, x_16, x_36); +return x_71; } else { -uint8_t x_68; lean_object* x_69; lean_object* x_70; +uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_dec(x_11); -x_68 = 0; -x_69 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_69, 0, x_35); -lean_ctor_set(x_69, 1, x_36); -lean_ctor_set(x_69, 2, x_37); -lean_ctor_set(x_69, 3, x_40); -lean_ctor_set(x_69, 4, x_41); -lean_ctor_set(x_69, 5, x_42); -lean_ctor_set(x_69, 6, x_43); -lean_ctor_set(x_69, 7, x_49); -lean_ctor_set_uint8(x_69, sizeof(void*)*8, x_38); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 1, x_68); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 2, x_39); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 3, x_44); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 4, x_45); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 5, x_46); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 6, x_47); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 7, x_48); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 8, x_50); -lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 9, x_51); -x_70 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_56, x_10, x_33, x_69, x_12, x_13, x_14, x_15, x_16, x_34); -return x_70; +x_72 = 0; +x_73 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_73, 0, x_37); +lean_ctor_set(x_73, 1, x_38); +lean_ctor_set(x_73, 2, x_39); +lean_ctor_set(x_73, 3, x_42); +lean_ctor_set(x_73, 4, x_43); +lean_ctor_set(x_73, 5, x_44); +lean_ctor_set(x_73, 6, x_45); +lean_ctor_set(x_73, 7, x_51); +lean_ctor_set(x_73, 8, x_52); +lean_ctor_set_uint8(x_73, sizeof(void*)*9, x_40); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 1, x_72); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 2, x_41); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 3, x_46); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 4, x_47); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 5, x_48); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 6, x_49); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 7, x_50); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 8, x_53); +lean_ctor_set_uint8(x_73, sizeof(void*)*9 + 9, x_54); +x_74 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_59, x_10, x_35, x_73, x_12, x_13, x_14, x_15, x_16, x_36); +return x_74; } } else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_11); -if (x_71 == 0) +uint8_t x_75; +x_75 = !lean_is_exclusive(x_11); +if (x_75 == 0) { -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; -x_72 = lean_ctor_get(x_11, 7); -lean_dec(x_72); -x_73 = lean_ctor_get(x_11, 6); -lean_dec(x_73); -x_74 = lean_ctor_get(x_11, 5); -lean_dec(x_74); -x_75 = lean_ctor_get(x_11, 4); -lean_dec(x_75); -x_76 = lean_ctor_get(x_11, 3); +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_76 = lean_ctor_get(x_11, 8); lean_dec(x_76); -x_77 = lean_ctor_get(x_11, 2); +x_77 = lean_ctor_get(x_11, 7); lean_dec(x_77); -x_78 = lean_ctor_get(x_11, 1); +x_78 = lean_ctor_get(x_11, 6); lean_dec(x_78); -x_79 = lean_ctor_get(x_11, 0); +x_79 = lean_ctor_get(x_11, 5); lean_dec(x_79); -x_80 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_56, x_10, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_34); -return x_80; +x_80 = lean_ctor_get(x_11, 4); +lean_dec(x_80); +x_81 = lean_ctor_get(x_11, 3); +lean_dec(x_81); +x_82 = lean_ctor_get(x_11, 2); +lean_dec(x_82); +x_83 = lean_ctor_get(x_11, 1); +lean_dec(x_83); +x_84 = lean_ctor_get(x_11, 0); +lean_dec(x_84); +x_85 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_59, x_10, x_35, x_11, x_12, x_13, x_14, x_15, x_16, x_36); +return x_85; } else { -uint8_t x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get_uint8(x_11, sizeof(void*)*8 + 1); +uint8_t x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 1); lean_dec(x_11); -x_82 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_82, 0, x_35); -lean_ctor_set(x_82, 1, x_36); -lean_ctor_set(x_82, 2, x_37); -lean_ctor_set(x_82, 3, x_40); -lean_ctor_set(x_82, 4, x_41); -lean_ctor_set(x_82, 5, x_42); -lean_ctor_set(x_82, 6, x_43); -lean_ctor_set(x_82, 7, x_49); -lean_ctor_set_uint8(x_82, sizeof(void*)*8, x_38); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 1, x_81); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 2, x_39); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 3, x_44); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 4, x_45); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 5, x_46); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 6, x_47); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 7, x_48); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 8, x_50); -lean_ctor_set_uint8(x_82, sizeof(void*)*8 + 9, x_51); -x_83 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_56, x_10, x_33, x_82, x_12, x_13, x_14, x_15, x_16, x_34); -return x_83; +x_87 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_87, 0, x_37); +lean_ctor_set(x_87, 1, x_38); +lean_ctor_set(x_87, 2, x_39); +lean_ctor_set(x_87, 3, x_42); +lean_ctor_set(x_87, 4, x_43); +lean_ctor_set(x_87, 5, x_44); +lean_ctor_set(x_87, 6, x_45); +lean_ctor_set(x_87, 7, x_51); +lean_ctor_set(x_87, 8, x_52); +lean_ctor_set_uint8(x_87, sizeof(void*)*9, x_40); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 1, x_86); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 2, x_41); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 3, x_46); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 4, x_47); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 5, x_48); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 6, x_49); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 7, x_50); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 8, x_53); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 9, x_54); +x_88 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_59, x_10, x_35, x_87, x_12, x_13, x_14, x_15, x_16, x_36); +return x_88; } } } } else { -uint8_t x_87; +uint8_t x_92; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -41910,23 +42206,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_87 = !lean_is_exclusive(x_32); -if (x_87 == 0) +x_92 = !lean_is_exclusive(x_34); +if (x_92 == 0) { -return x_32; +return x_34; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_32, 0); -x_89 = lean_ctor_get(x_32, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_32); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_34, 0); +x_94 = lean_ctor_get(x_34, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_34); +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; } } } @@ -42124,7 +42420,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(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_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_108; +lean_object* x_12; lean_object* x_13; 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_110; x_23 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); @@ -42148,555 +42444,559 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); lean_inc(x_28); -x_108 = l_Lean_Elab_Term_tryPostponeIfMVar(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_25); -if (lean_obj_tag(x_108) == 0) +x_110 = l_Lean_Elab_Term_tryPostponeIfMVar(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -lean_dec(x_108); -x_110 = l_Lean_Expr_cleanupAnnotations(x_28); -if (lean_obj_tag(x_110) == 4) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_111 = lean_ctor_get(x_110, 0); +lean_object* x_111; lean_object* x_112; +x_111 = lean_ctor_get(x_110, 1); lean_inc(x_111); lean_dec(x_110); -x_112 = l_Lean_Syntax_getId(x_1); -x_113 = lean_erase_macro_scopes(x_112); -x_114 = l_Lean_Name_append(x_111, x_113); -x_115 = lean_st_ref_get(x_10, x_109); -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) +x_112 = l_Lean_Expr_cleanupAnnotations(x_28); +if (lean_obj_tag(x_112) == 4) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_ctor_get(x_115, 1); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +lean_dec(x_112); +x_114 = l_Lean_Syntax_getId(x_1); +x_115 = lean_erase_macro_scopes(x_114); +x_116 = l_Lean_Name_append(x_113, x_115); +x_117 = lean_st_ref_get(x_10, x_111); +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; x_119 = lean_ctor_get(x_117, 0); -lean_inc(x_119); -lean_dec(x_117); -lean_inc(x_114); -x_120 = l_Lean_Environment_contains(x_119, x_114); -if (x_120 == 0) +x_120 = lean_ctor_get(x_117, 1); +x_121 = lean_ctor_get(x_119, 0); +lean_inc(x_121); +lean_dec(x_119); +lean_inc(x_116); +x_122 = l_Lean_Environment_contains(x_121, x_116); +if (x_122 == 0) { -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_121 = l_Lean_MessageData_ofName(x_114); -x_122 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; -lean_ctor_set_tag(x_115, 6); -lean_ctor_set(x_115, 1, x_121); -lean_ctor_set(x_115, 0, x_122); -x_123 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_115); -lean_ctor_set(x_124, 1, x_123); -lean_inc(x_3); -x_125 = l_Lean_indentExpr(x_3); +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_123 = l_Lean_MessageData_ofName(x_116); +x_124 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; +lean_ctor_set_tag(x_117, 6); +lean_ctor_set(x_117, 1, x_123); +lean_ctor_set(x_117, 0, x_124); +x_125 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; x_126 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 0, x_117); lean_ctor_set(x_126, 1, x_125); -x_127 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +lean_inc(x_3); +x_127 = l_Lean_indentExpr(x_3); x_128 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_128, 0, x_126); lean_ctor_set(x_128, 1, x_127); +x_129 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_130 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); lean_inc(x_5); -x_129 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_128, x_5, x_6, x_7, x_8, x_9, x_10, x_118); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_29 = x_130; -x_30 = x_131; -goto block_107; +x_131 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_130, x_5, x_6, x_7, x_8, x_9, x_10, x_120); +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_29 = x_132; +x_30 = x_133; +goto block_109; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_free_object(x_115); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_free_object(x_117); lean_dec(x_26); lean_dec(x_24); lean_dec(x_4); lean_dec(x_3); -x_132 = lean_box(0); -x_133 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_114, x_132, x_5, x_6, x_7, x_8, x_9, x_10, x_118); +x_134 = lean_box(0); +x_135 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_116, x_134, x_5, x_6, x_7, x_8, x_9, x_10, x_120); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_12 = x_134; -x_13 = x_135; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_12 = x_136; +x_13 = x_137; goto block_22; } } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_136 = lean_ctor_get(x_115, 0); -x_137 = lean_ctor_get(x_115, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_115); -x_138 = lean_ctor_get(x_136, 0); +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_138 = lean_ctor_get(x_117, 0); +x_139 = lean_ctor_get(x_117, 1); +lean_inc(x_139); lean_inc(x_138); -lean_dec(x_136); -lean_inc(x_114); -x_139 = l_Lean_Environment_contains(x_138, x_114); -if (x_139 == 0) +lean_dec(x_117); +x_140 = lean_ctor_get(x_138, 0); +lean_inc(x_140); +lean_dec(x_138); +lean_inc(x_116); +x_141 = l_Lean_Environment_contains(x_140, x_116); +if (x_141 == 0) { -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; -x_140 = l_Lean_MessageData_ofName(x_114); -x_141 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; -x_142 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -x_143 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; +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; +x_142 = l_Lean_MessageData_ofName(x_116); +x_143 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__4; x_144 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -lean_inc(x_3); -x_145 = l_Lean_indentExpr(x_3); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__6; x_146 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_146, 0, x_144); lean_ctor_set(x_146, 1, x_145); -x_147 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +lean_inc(x_3); +x_147 = l_Lean_indentExpr(x_3); x_148 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_148, 0, x_146); lean_ctor_set(x_148, 1, x_147); +x_149 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_150 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); lean_inc(x_5); -x_149 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_148, x_5, x_6, x_7, x_8, x_9, x_10, x_137); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_29 = x_150; -x_30 = x_151; -goto block_107; +x_151 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_150, x_5, x_6, x_7, x_8, x_9, x_10, x_139); +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_29 = x_152; +x_30 = x_153; +goto block_109; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_dec(x_26); lean_dec(x_24); lean_dec(x_4); lean_dec(x_3); -x_152 = lean_box(0); -x_153 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_114, x_152, x_5, x_6, x_7, x_8, x_9, x_10, x_137); +x_154 = lean_box(0); +x_155 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___lambda__1(x_116, x_154, x_5, x_6, x_7, x_8, x_9, x_10, x_139); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_12 = x_154; -x_13 = x_155; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_12 = x_156; +x_13 = x_157; goto block_22; } } } else { -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_dec(x_110); +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_dec(x_112); lean_inc(x_3); -x_156 = l_Lean_indentExpr(x_3); -x_157 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__2; -x_158 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -x_159 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_158 = l_Lean_indentExpr(x_3); +x_159 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__2; x_160 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_162 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); lean_inc(x_5); -x_161 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_160, x_5, x_6, x_7, x_8, x_9, x_10, x_109); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_29 = x_162; -x_30 = x_163; -goto block_107; +x_163 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_162, x_5, x_6, x_7, x_8, x_9, x_10, x_111); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_29 = x_164; +x_30 = x_165; +goto block_109; } } else { -uint8_t x_164; +uint8_t x_166; lean_dec(x_28); lean_dec(x_26); -x_164 = !lean_is_exclusive(x_108); -if (x_164 == 0) +x_166 = !lean_is_exclusive(x_110); +if (x_166 == 0) { -lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_165 = lean_ctor_get(x_108, 0); -x_166 = lean_ctor_get(x_108, 1); -x_167 = l_Lean_Exception_isRuntime(x_165); -if (x_167 == 0) -{ -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_168; -lean_free_object(x_108); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_168 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_166); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -if (lean_obj_tag(x_169) == 0) +lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_167 = lean_ctor_get(x_110, 0); +x_168 = lean_ctor_get(x_110, 1); +x_169 = l_Lean_Exception_isInterrupt(x_167); +if (x_169 == 0) { uint8_t x_170; -lean_dec(x_3); -x_170 = !lean_is_exclusive(x_168); +x_170 = l_Lean_Exception_isRuntime(x_167); if (x_170 == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; -x_171 = lean_ctor_get(x_168, 1); -x_172 = lean_ctor_get(x_168, 0); -lean_dec(x_172); -x_173 = lean_array_get_size(x_4); -x_174 = lean_unsigned_to_nat(0u); -x_175 = lean_nat_dec_lt(x_174, x_173); -if (x_175 == 0) +if (lean_obj_tag(x_167) == 0) { -lean_dec(x_173); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set_tag(x_168, 1); -lean_ctor_set(x_168, 0, x_165); -return x_168; -} -else -{ -uint8_t x_176; -x_176 = lean_nat_dec_le(x_173, x_173); -if (x_176 == 0) -{ -lean_dec(x_173); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set_tag(x_168, 1); -lean_ctor_set(x_168, 0, x_165); -return x_168; -} -else -{ -size_t x_177; size_t x_178; lean_object* x_179; lean_object* x_180; -lean_free_object(x_168); -x_177 = 0; -x_178 = lean_usize_of_nat(x_173); -lean_dec(x_173); -x_179 = lean_box(0); -x_180 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_177, x_178, x_179, x_5, x_6, x_7, x_8, x_9, x_10, x_171); -lean_dec(x_4); -if (lean_obj_tag(x_180) == 0) -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_180); -if (x_181 == 0) -{ -lean_object* x_182; -x_182 = lean_ctor_get(x_180, 0); -lean_dec(x_182); -lean_ctor_set_tag(x_180, 1); -lean_ctor_set(x_180, 0, x_165); -return x_180; -} -else -{ -lean_object* x_183; lean_object* x_184; -x_183 = lean_ctor_get(x_180, 1); -lean_inc(x_183); -lean_dec(x_180); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_165); -lean_ctor_set(x_184, 1, x_183); -return x_184; -} -} -else -{ -uint8_t x_185; -lean_dec(x_165); -x_185 = !lean_is_exclusive(x_180); -if (x_185 == 0) -{ -return x_180; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_180, 0); -x_187 = lean_ctor_get(x_180, 1); -lean_inc(x_187); -lean_inc(x_186); -lean_dec(x_180); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_186); -lean_ctor_set(x_188, 1, x_187); -return x_188; -} -} -} -} -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_189 = lean_ctor_get(x_168, 1); -lean_inc(x_189); -lean_dec(x_168); -x_190 = lean_array_get_size(x_4); -x_191 = lean_unsigned_to_nat(0u); -x_192 = lean_nat_dec_lt(x_191, x_190); -if (x_192 == 0) -{ -lean_object* x_193; -lean_dec(x_190); -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_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_165); -lean_ctor_set(x_193, 1, x_189); -return x_193; -} -else -{ -uint8_t x_194; -x_194 = lean_nat_dec_le(x_190, x_190); -if (x_194 == 0) -{ -lean_object* x_195; -lean_dec(x_190); -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_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_165); -lean_ctor_set(x_195, 1, x_189); -return x_195; -} -else -{ -size_t x_196; size_t x_197; lean_object* x_198; lean_object* x_199; -x_196 = 0; -x_197 = lean_usize_of_nat(x_190); -lean_dec(x_190); -x_198 = lean_box(0); -x_199 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_196, x_197, x_198, x_5, x_6, x_7, x_8, x_9, x_10, x_189); -lean_dec(x_4); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_199, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_201 = x_199; -} else { - lean_dec_ref(x_199); - x_201 = lean_box(0); -} -if (lean_is_scalar(x_201)) { - x_202 = lean_alloc_ctor(1, 2, 0); -} else { - x_202 = x_201; - lean_ctor_set_tag(x_202, 1); -} -lean_ctor_set(x_202, 0, x_165); -lean_ctor_set(x_202, 1, x_200); -return x_202; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_165); -x_203 = lean_ctor_get(x_199, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_199, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_205 = x_199; -} else { - lean_dec_ref(x_199); - x_205 = lean_box(0); -} -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); -} else { - x_206 = x_205; -} -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -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_168, 1); -lean_inc(x_207); -lean_dec(x_168); -x_208 = lean_ctor_get(x_169, 0); -lean_inc(x_208); -lean_dec(x_169); -x_209 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; +lean_object* x_171; +lean_free_object(x_110); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_210 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_209, x_208, x_209, x_7, x_8, x_9, x_10, x_207); -if (lean_obj_tag(x_210) == 0) +x_171 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_168); +if (lean_obj_tag(x_171) == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_211 = lean_ctor_get(x_210, 0); +lean_object* x_172; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +if (lean_obj_tag(x_172) == 0) +{ +uint8_t x_173; +lean_dec(x_3); +x_173 = !lean_is_exclusive(x_171); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_174 = lean_ctor_get(x_171, 1); +x_175 = lean_ctor_get(x_171, 0); +lean_dec(x_175); +x_176 = lean_array_get_size(x_4); +x_177 = lean_unsigned_to_nat(0u); +x_178 = lean_nat_dec_lt(x_177, x_176); +if (x_178 == 0) +{ +lean_dec(x_176); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_ctor_set_tag(x_171, 1); +lean_ctor_set(x_171, 0, x_167); +return x_171; +} +else +{ +uint8_t x_179; +x_179 = lean_nat_dec_le(x_176, x_176); +if (x_179 == 0) +{ +lean_dec(x_176); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_ctor_set_tag(x_171, 1); +lean_ctor_set(x_171, 0, x_167); +return x_171; +} +else +{ +size_t x_180; size_t x_181; lean_object* x_182; lean_object* x_183; +lean_free_object(x_171); +x_180 = 0; +x_181 = lean_usize_of_nat(x_176); +lean_dec(x_176); +x_182 = lean_box(0); +x_183 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_180, x_181, x_182, x_5, x_6, x_7, x_8, x_9, x_10, x_174); +lean_dec(x_4); +if (lean_obj_tag(x_183) == 0) +{ +uint8_t x_184; +x_184 = !lean_is_exclusive(x_183); +if (x_184 == 0) +{ +lean_object* x_185; +x_185 = lean_ctor_get(x_183, 0); +lean_dec(x_185); +lean_ctor_set_tag(x_183, 1); +lean_ctor_set(x_183, 0, x_167); +return x_183; +} +else +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec(x_183); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_167); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} +} +else +{ +uint8_t x_188; +lean_dec(x_167); +x_188 = !lean_is_exclusive(x_183); +if (x_188 == 0) +{ +return x_183; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_183, 0); +x_190 = lean_ctor_get(x_183, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_183); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; +} +} +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_192 = lean_ctor_get(x_171, 1); +lean_inc(x_192); +lean_dec(x_171); +x_193 = lean_array_get_size(x_4); +x_194 = lean_unsigned_to_nat(0u); +x_195 = lean_nat_dec_lt(x_194, x_193); +if (x_195 == 0) +{ +lean_object* x_196; +lean_dec(x_193); +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_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_167); +lean_ctor_set(x_196, 1, x_192); +return x_196; +} +else +{ +uint8_t x_197; +x_197 = lean_nat_dec_le(x_193, x_193); +if (x_197 == 0) +{ +lean_object* x_198; +lean_dec(x_193); +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_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_167); +lean_ctor_set(x_198, 1, x_192); +return x_198; +} +else +{ +size_t x_199; size_t x_200; lean_object* x_201; lean_object* x_202; +x_199 = 0; +x_200 = lean_usize_of_nat(x_193); +lean_dec(x_193); +x_201 = lean_box(0); +x_202 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_199, x_200, x_201, x_5, x_6, x_7, x_8, x_9, x_10, x_192); +lean_dec(x_4); +if (lean_obj_tag(x_202) == 0) +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_204 = x_202; +} else { + lean_dec_ref(x_202); + x_204 = lean_box(0); +} +if (lean_is_scalar(x_204)) { + x_205 = lean_alloc_ctor(1, 2, 0); +} else { + x_205 = x_204; + lean_ctor_set_tag(x_205, 1); +} +lean_ctor_set(x_205, 0, x_167); +lean_ctor_set(x_205, 1, x_203); +return x_205; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_167); +x_206 = lean_ctor_get(x_202, 0); +lean_inc(x_206); +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; +} else { + lean_dec_ref(x_202); + 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_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +} +} +} +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_210 = lean_ctor_get(x_171, 1); +lean_inc(x_210); +lean_dec(x_171); +x_211 = lean_ctor_get(x_172, 0); lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -lean_inc(x_165); -x_213 = lean_array_push(x_4, x_165); -x_214 = !lean_is_exclusive(x_165); -if (x_214 == 0) +lean_dec(x_172); +x_212 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_213 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_212, x_211, x_212, x_7, x_8, x_9, x_10, x_210); +if (lean_obj_tag(x_213) == 0) { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_165, 1); -lean_dec(x_215); -x_216 = lean_ctor_get(x_165, 0); -lean_dec(x_216); -x_217 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_211, x_3, x_213, x_5, x_6, x_7, x_8, x_9, x_10, x_212); -if (lean_obj_tag(x_217) == 0) +lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +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); +lean_inc(x_167); +x_216 = lean_array_push(x_4, x_167); +x_217 = !lean_is_exclusive(x_167); +if (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 = lean_box(0); -lean_ctor_set(x_165, 1, x_220); -lean_ctor_set(x_165, 0, x_218); -x_12 = x_165; -x_13 = x_219; -goto block_22; -} -else +x_218 = lean_ctor_get(x_167, 1); +lean_dec(x_218); +x_219 = lean_ctor_get(x_167, 0); +lean_dec(x_219); +x_220 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_214, x_3, x_216, x_5, x_6, x_7, x_8, x_9, x_10, x_215); +if (lean_obj_tag(x_220) == 0) { -uint8_t x_221; -lean_free_object(x_165); -x_221 = !lean_is_exclusive(x_217); -if (x_221 == 0) -{ -return x_217; -} -else -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_217, 0); -x_223 = lean_ctor_get(x_217, 1); -lean_inc(x_223); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); lean_inc(x_222); -lean_dec(x_217); -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -return x_224; -} -} -} -else -{ -lean_object* x_225; -lean_dec(x_165); -x_225 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_211, x_3, x_213, x_5, x_6, x_7, x_8, x_9, x_10, x_212); -if (lean_obj_tag(x_225) == 0) -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -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); -x_228 = lean_box(0); -x_229 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_229, 0, x_226); -lean_ctor_set(x_229, 1, x_228); -x_12 = x_229; -x_13 = x_227; +lean_dec(x_220); +x_223 = lean_box(0); +lean_ctor_set(x_167, 1, x_223); +lean_ctor_set(x_167, 0, x_221); +x_12 = x_167; +x_13 = x_222; goto block_22; } else { -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_230 = lean_ctor_get(x_225, 0); +uint8_t x_224; +lean_free_object(x_167); +x_224 = !lean_is_exclusive(x_220); +if (x_224 == 0) +{ +return x_220; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_220, 0); +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_220); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; +} +} +} +else +{ +lean_object* x_228; +lean_dec(x_167); +x_228 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_214, x_3, x_216, x_5, x_6, x_7, x_8, x_9, x_10, x_215); +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); -x_231 = lean_ctor_get(x_225, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_232 = x_225; -} else { - lean_dec_ref(x_225); - x_232 = lean_box(0); +lean_dec(x_228); +x_231 = lean_box(0); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_231); +x_12 = x_232; +x_13 = x_230; +goto block_22; } -if (lean_is_scalar(x_232)) { - x_233 = lean_alloc_ctor(1, 2, 0); +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); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_235 = x_228; } else { - x_233 = x_232; + lean_dec_ref(x_228); + x_235 = lean_box(0); } -lean_ctor_set(x_233, 0, x_230); -lean_ctor_set(x_233, 1, x_231); -return x_233; +if (lean_is_scalar(x_235)) { + x_236 = lean_alloc_ctor(1, 2, 0); +} else { + x_236 = x_235; +} +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_234); +return x_236; } } } else { -uint8_t x_234; -lean_dec(x_165); +uint8_t x_237; +lean_dec(x_167); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -42705,62 +43005,31 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_234 = !lean_is_exclusive(x_210); -if (x_234 == 0) +x_237 = !lean_is_exclusive(x_213); +if (x_237 == 0) { -return x_210; +return x_213; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_235 = lean_ctor_get(x_210, 0); -x_236 = lean_ctor_get(x_210, 1); -lean_inc(x_236); -lean_inc(x_235); -lean_dec(x_210); -x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -return x_237; -} -} -} -} -else -{ -uint8_t x_238; -lean_dec(x_165); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_238 = !lean_is_exclusive(x_168); -if (x_238 == 0) -{ -return x_168; -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_ctor_get(x_168, 0); -x_240 = lean_ctor_get(x_168, 1); -lean_inc(x_240); +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_213, 0); +x_239 = lean_ctor_get(x_213, 1); lean_inc(x_239); -lean_dec(x_168); -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_239); -lean_ctor_set(x_241, 1, x_240); -return x_241; +lean_inc(x_238); +lean_dec(x_213); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; +} } } } else { -lean_dec(x_24); +uint8_t x_241; +lean_dec(x_167); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -42769,68 +43038,117 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_108; -} +x_241 = !lean_is_exclusive(x_171); +if (x_241 == 0) +{ +return x_171; } else { -lean_dec(x_24); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_108; -} -} -else -{ -lean_object* x_242; lean_object* x_243; uint8_t x_244; -x_242 = lean_ctor_get(x_108, 0); -x_243 = lean_ctor_get(x_108, 1); +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_171, 0); +x_243 = lean_ctor_get(x_171, 1); lean_inc(x_243); lean_inc(x_242); -lean_dec(x_108); -x_244 = l_Lean_Exception_isRuntime(x_242); -if (x_244 == 0) +lean_dec(x_171); +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 { -if (lean_obj_tag(x_242) == 0) +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_110; +} +} +else { -lean_object* x_245; +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_110; +} +} +else +{ +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_110; +} +} +else +{ +lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_245 = lean_ctor_get(x_110, 0); +x_246 = lean_ctor_get(x_110, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_110); +x_247 = l_Lean_Exception_isInterrupt(x_245); +if (x_247 == 0) +{ +uint8_t x_248; +x_248 = l_Lean_Exception_isRuntime(x_245); +if (x_248 == 0) +{ +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_249; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_245 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_243); -if (lean_obj_tag(x_245) == 0) +x_249 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_246); +if (lean_obj_tag(x_249) == 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_250; +x_250 = lean_ctor_get(x_249, 0); +lean_inc(x_250); +if (lean_obj_tag(x_250) == 0) { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_dec(x_3); -x_247 = lean_ctor_get(x_245, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - lean_ctor_release(x_245, 1); - x_248 = x_245; +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_252 = x_249; } else { - lean_dec_ref(x_245); - x_248 = lean_box(0); + lean_dec_ref(x_249); + x_252 = lean_box(0); } -x_249 = lean_array_get_size(x_4); -x_250 = lean_unsigned_to_nat(0u); -x_251 = lean_nat_dec_lt(x_250, x_249); -if (x_251 == 0) +x_253 = lean_array_get_size(x_4); +x_254 = lean_unsigned_to_nat(0u); +x_255 = lean_nat_dec_lt(x_254, x_253); +if (x_255 == 0) { -lean_object* x_252; -lean_dec(x_249); +lean_object* x_256; +lean_dec(x_253); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -42838,24 +43156,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_248)) { - x_252 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_252)) { + x_256 = lean_alloc_ctor(1, 2, 0); } else { - x_252 = x_248; - lean_ctor_set_tag(x_252, 1); + x_256 = x_252; + lean_ctor_set_tag(x_256, 1); } -lean_ctor_set(x_252, 0, x_242); -lean_ctor_set(x_252, 1, x_247); -return x_252; +lean_ctor_set(x_256, 0, x_245); +lean_ctor_set(x_256, 1, x_251); +return x_256; } else { -uint8_t x_253; -x_253 = lean_nat_dec_le(x_249, x_249); -if (x_253 == 0) +uint8_t x_257; +x_257 = lean_nat_dec_le(x_253, x_253); +if (x_257 == 0) { -lean_object* x_254; -lean_dec(x_249); +lean_object* x_258; +lean_dec(x_253); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -42863,179 +43181,145 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_248)) { - x_254 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_252)) { + x_258 = lean_alloc_ctor(1, 2, 0); } else { - x_254 = x_248; - lean_ctor_set_tag(x_254, 1); + x_258 = x_252; + lean_ctor_set_tag(x_258, 1); } -lean_ctor_set(x_254, 0, x_242); -lean_ctor_set(x_254, 1, x_247); -return x_254; +lean_ctor_set(x_258, 0, x_245); +lean_ctor_set(x_258, 1, x_251); +return x_258; } else { -size_t x_255; size_t x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_248); -x_255 = 0; -x_256 = lean_usize_of_nat(x_249); -lean_dec(x_249); -x_257 = lean_box(0); -x_258 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_255, x_256, x_257, x_5, x_6, x_7, x_8, x_9, x_10, x_247); +size_t x_259; size_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_252); +x_259 = 0; +x_260 = lean_usize_of_nat(x_253); +lean_dec(x_253); +x_261 = lean_box(0); +x_262 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_259, x_260, x_261, x_5, x_6, x_7, x_8, x_9, x_10, x_251); lean_dec(x_4); -if (lean_obj_tag(x_258) == 0) +if (lean_obj_tag(x_262) == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_260 = x_258; -} else { - lean_dec_ref(x_258); - x_260 = lean_box(0); -} -if (lean_is_scalar(x_260)) { - x_261 = lean_alloc_ctor(1, 2, 0); -} else { - x_261 = x_260; - lean_ctor_set_tag(x_261, 1); -} -lean_ctor_set(x_261, 0, x_242); -lean_ctor_set(x_261, 1, x_259); -return x_261; -} -else -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -lean_dec(x_242); -x_262 = lean_ctor_get(x_258, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_258, 1); +lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_263 = lean_ctor_get(x_262, 1); lean_inc(x_263); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_264 = x_258; +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_264 = x_262; } else { - lean_dec_ref(x_258); + lean_dec_ref(x_262); x_264 = lean_box(0); } if (lean_is_scalar(x_264)) { x_265 = lean_alloc_ctor(1, 2, 0); } else { x_265 = x_264; + lean_ctor_set_tag(x_265, 1); } -lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 0, x_245); lean_ctor_set(x_265, 1, x_263); return x_265; } -} -} -} else { lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_266 = lean_ctor_get(x_245, 1); -lean_inc(x_266); lean_dec(x_245); -x_267 = lean_ctor_get(x_246, 0); +x_266 = lean_ctor_get(x_262, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_262, 1); lean_inc(x_267); -lean_dec(x_246); -x_268 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_268 = x_262; +} else { + lean_dec_ref(x_262); + 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; +x_270 = lean_ctor_get(x_249, 1); +lean_inc(x_270); +lean_dec(x_249); +x_271 = lean_ctor_get(x_250, 0); +lean_inc(x_271); +lean_dec(x_250); +x_272 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_269 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_268, x_267, x_268, x_7, x_8, x_9, x_10, x_266); -if (lean_obj_tag(x_269) == 0) +x_273 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_272, x_271, x_272, x_7, x_8, x_9, x_10, x_270); +if (lean_obj_tag(x_273) == 0) { -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -lean_dec(x_269); -lean_inc(x_242); -x_272 = lean_array_push(x_4, x_242); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_273 = x_242; -} else { - lean_dec_ref(x_242); - x_273 = lean_box(0); -} -x_274 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_270, x_3, x_272, x_5, x_6, x_7, x_8, x_9, x_10, x_271); -if (lean_obj_tag(x_274) == 0) -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_275 = lean_ctor_get(x_274, 0); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); lean_inc(x_275); -x_276 = lean_ctor_get(x_274, 1); -lean_inc(x_276); -lean_dec(x_274); -x_277 = lean_box(0); -if (lean_is_scalar(x_273)) { - x_278 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_273); +lean_inc(x_245); +x_276 = lean_array_push(x_4, x_245); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_277 = x_245; } else { - x_278 = x_273; + lean_dec_ref(x_245); + x_277 = lean_box(0); } -lean_ctor_set(x_278, 0, x_275); -lean_ctor_set(x_278, 1, x_277); -x_12 = x_278; -x_13 = x_276; +x_278 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_274, x_3, x_276, x_5, x_6, x_7, x_8, x_9, x_10, x_275); +if (lean_obj_tag(x_278) == 0) +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +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_box(0); +if (lean_is_scalar(x_277)) { + x_282 = lean_alloc_ctor(0, 2, 0); +} else { + x_282 = x_277; +} +lean_ctor_set(x_282, 0, x_279); +lean_ctor_set(x_282, 1, x_281); +x_12 = x_282; +x_13 = x_280; goto block_22; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -lean_dec(x_273); -x_279 = lean_ctor_get(x_274, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_274, 1); -lean_inc(x_280); -if (lean_is_exclusive(x_274)) { - lean_ctor_release(x_274, 0); - lean_ctor_release(x_274, 1); - x_281 = x_274; -} else { - lean_dec_ref(x_274); - x_281 = lean_box(0); -} -if (lean_is_scalar(x_281)) { - x_282 = lean_alloc_ctor(1, 2, 0); -} else { - x_282 = x_281; -} -lean_ctor_set(x_282, 0, x_279); -lean_ctor_set(x_282, 1, x_280); -return x_282; -} -} -else -{ lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_242); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_283 = lean_ctor_get(x_269, 0); +lean_dec(x_277); +x_283 = lean_ctor_get(x_278, 0); lean_inc(x_283); -x_284 = lean_ctor_get(x_269, 1); +x_284 = lean_ctor_get(x_278, 1); lean_inc(x_284); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_285 = x_269; +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_285 = x_278; } else { - lean_dec_ref(x_269); + lean_dec_ref(x_278); x_285 = lean_box(0); } if (lean_is_scalar(x_285)) { @@ -43048,11 +43332,10 @@ lean_ctor_set(x_286, 1, x_284); return x_286; } } -} else { lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_242); +lean_dec(x_245); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -43061,16 +43344,16 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_287 = lean_ctor_get(x_245, 0); +x_287 = lean_ctor_get(x_273, 0); lean_inc(x_287); -x_288 = lean_ctor_get(x_245, 1); +x_288 = lean_ctor_get(x_273, 1); lean_inc(x_288); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - lean_ctor_release(x_245, 1); - x_289 = x_245; +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_289 = x_273; } else { - lean_dec_ref(x_245); + lean_dec_ref(x_273); x_289 = lean_box(0); } if (lean_is_scalar(x_289)) { @@ -43083,9 +43366,44 @@ lean_ctor_set(x_290, 1, x_288); return x_290; } } +} else { -lean_object* x_291; +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +lean_dec(x_245); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_291 = lean_ctor_get(x_249, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_249, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_293 = x_249; +} else { + lean_dec_ref(x_249); + x_293 = lean_box(0); +} +if (lean_is_scalar(x_293)) { + x_294 = lean_alloc_ctor(1, 2, 0); +} else { + x_294 = x_293; +} +lean_ctor_set(x_294, 0, x_291); +lean_ctor_set(x_294, 1, x_292); +return x_294; +} +} +else +{ +lean_object* x_295; lean_dec(x_24); lean_dec(x_10); lean_dec(x_9); @@ -43095,15 +43413,15 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_291 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_291, 0, x_242); -lean_ctor_set(x_291, 1, x_243); -return x_291; +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_245); +lean_ctor_set(x_295, 1, x_246); +return x_295; } } else { -lean_object* x_292; +lean_object* x_296; lean_dec(x_24); lean_dec(x_10); lean_dec(x_9); @@ -43113,10 +43431,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_242); -lean_ctor_set(x_292, 1, x_243); -return x_292; +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_245); +lean_ctor_set(x_296, 1, x_246); +return x_296; +} +} +else +{ +lean_object* x_297; +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_245); +lean_ctor_set(x_297, 1, x_246); +return x_297; } } } @@ -43172,59 +43508,45 @@ return x_21; } } } -block_107: +block_109: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; lean_dec(x_26); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_32 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_30); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); +x_33 = l_Lean_Meta_unfoldDefinition_x3f(x_24, x_7, x_8, x_9, x_10, x_30); if (lean_obj_tag(x_33) == 0) { -uint8_t x_34; +lean_object* x_34; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; lean_dec(x_3); -x_34 = !lean_is_exclusive(x_32); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_35 = lean_ctor_get(x_32, 1); -x_36 = lean_ctor_get(x_32, 0); -lean_dec(x_36); -x_37 = lean_array_get_size(x_4); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_nat_dec_lt(x_38, x_37); -if (x_39 == 0) +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) { +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_36 = lean_ctor_get(x_33, 1); +x_37 = lean_ctor_get(x_33, 0); lean_dec(x_37); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; -} -else -{ -uint8_t x_40; -x_40 = lean_nat_dec_le(x_37, x_37); +x_38 = lean_array_get_size(x_4); +x_39 = lean_unsigned_to_nat(0u); +x_40 = lean_nat_dec_lt(x_39, x_38); if (x_40 == 0) { -lean_dec(x_37); +lean_dec(x_38); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -43232,66 +43554,84 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -size_t x_41; size_t x_42; lean_object* x_43; lean_object* x_44; -lean_free_object(x_32); -x_41 = 0; -x_42 = lean_usize_of_nat(x_37); -lean_dec(x_37); -x_43 = lean_box(0); -x_44 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_41, x_42, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +uint8_t x_41; +x_41 = lean_nat_dec_le(x_38, x_38); +if (x_41 == 0) +{ +lean_dec(x_38); +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); -if (lean_obj_tag(x_44) == 0) -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set_tag(x_44, 1); -lean_ctor_set(x_44, 0, x_29); -return x_44; +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_29); -lean_ctor_set(x_48, 1, x_47); -return x_48; +size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; +lean_free_object(x_33); +x_42 = 0; +x_43 = lean_usize_of_nat(x_38); +lean_dec(x_38); +x_44 = lean_box(0); +x_45 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_42, x_43, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +lean_dec(x_4); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set_tag(x_45, 1); +lean_ctor_set(x_45, 0, x_29); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_29); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } else { -uint8_t x_49; +uint8_t x_50; lean_dec(x_29); -x_49 = !lean_is_exclusive(x_44); -if (x_49 == 0) +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) { -return x_44; +return x_45; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_44, 0); -x_51 = lean_ctor_get(x_44, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_44); -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; +lean_dec(x_45); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } @@ -43299,17 +43639,17 @@ return x_52; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = lean_ctor_get(x_32, 1); -lean_inc(x_53); -lean_dec(x_32); -x_54 = lean_array_get_size(x_4); -x_55 = lean_unsigned_to_nat(0u); -x_56 = lean_nat_dec_lt(x_55, x_54); -if (x_56 == 0) +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_54 = lean_ctor_get(x_33, 1); +lean_inc(x_54); +lean_dec(x_33); +x_55 = lean_array_get_size(x_4); +x_56 = lean_unsigned_to_nat(0u); +x_57 = lean_nat_dec_lt(x_56, x_55); +if (x_57 == 0) { -lean_object* x_57; -lean_dec(x_54); +lean_object* x_58; +lean_dec(x_55); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -43317,19 +43657,19 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_29); -lean_ctor_set(x_57, 1, x_53); -return x_57; +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_29); +lean_ctor_set(x_58, 1, x_54); +return x_58; } else { -uint8_t x_58; -x_58 = lean_nat_dec_le(x_54, x_54); -if (x_58 == 0) +uint8_t x_59; +x_59 = lean_nat_dec_le(x_55, x_55); +if (x_59 == 0) { -lean_object* x_59; -lean_dec(x_54); +lean_object* x_60; +lean_dec(x_55); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -43337,67 +43677,67 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_29); -lean_ctor_set(x_59, 1, x_53); -return x_59; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_29); +lean_ctor_set(x_60, 1, x_54); +return x_60; } else { -size_t x_60; size_t x_61; lean_object* x_62; lean_object* x_63; -x_60 = 0; -x_61 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_62 = lean_box(0); -x_63 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_60, x_61, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +size_t x_61; size_t x_62; lean_object* x_63; lean_object* x_64; +x_61 = 0; +x_62 = lean_usize_of_nat(x_55); +lean_dec(x_55); +x_63 = lean_box(0); +x_64 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_61, x_62, x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_54); lean_dec(x_4); -if (lean_obj_tag(x_63) == 0) +if (lean_obj_tag(x_64) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_65 = x_63; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +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_63); - x_65 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; - lean_ctor_set_tag(x_66, 1); + x_67 = x_66; + lean_ctor_set_tag(x_67, 1); } -lean_ctor_set(x_66, 0, x_29); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_67, 0, x_29); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_dec(x_29); -x_67 = lean_ctor_get(x_63, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_63, 1); +x_68 = lean_ctor_get(x_64, 0); lean_inc(x_68); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_69 = x_63; +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_70 = x_64; } else { - lean_dec_ref(x_63); - x_69 = lean_box(0); + lean_dec_ref(x_64); + x_70 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; + x_71 = x_70; } -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } } @@ -43405,127 +43745,127 @@ return x_70; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_32, 1); -lean_inc(x_71); -lean_dec(x_32); -x_72 = lean_ctor_get(x_33, 0); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_33, 1); lean_inc(x_72); lean_dec(x_33); -x_73 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; +x_73 = lean_ctor_get(x_34, 0); +lean_inc(x_73); +lean_dec(x_34); +x_74 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___closed__1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_74 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_73, x_72, x_73, x_7, x_8, x_9, x_10, x_71); -if (lean_obj_tag(x_74) == 0) +x_75 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(x_74, x_73, x_74, x_7, x_8, x_9, x_10, x_72); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_74); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); lean_inc(x_29); -x_77 = lean_array_push(x_4, x_29); -x_78 = !lean_is_exclusive(x_29); -if (x_78 == 0) +x_78 = lean_array_push(x_4, x_29); +x_79 = !lean_is_exclusive(x_29); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_29, 1); -lean_dec(x_79); -x_80 = lean_ctor_get(x_29, 0); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_29, 1); lean_dec(x_80); -x_81 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_75, x_3, x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_76); -if (lean_obj_tag(x_81) == 0) +x_81 = lean_ctor_get(x_29, 0); +lean_dec(x_81); +x_82 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_76, x_3, x_78, x_5, x_6, x_7, x_8, x_9, x_10, x_77); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_box(0); -lean_ctor_set(x_29, 1, x_84); -lean_ctor_set(x_29, 0, x_82); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_box(0); +lean_ctor_set(x_29, 1, x_85); +lean_ctor_set(x_29, 0, x_83); x_12 = x_29; -x_13 = x_83; +x_13 = x_84; goto block_22; } else { -uint8_t x_85; +uint8_t x_86; lean_free_object(x_29); -x_85 = !lean_is_exclusive(x_81); -if (x_85 == 0) +x_86 = !lean_is_exclusive(x_82); +if (x_86 == 0) { -return x_81; +return x_82; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_81, 0); -x_87 = lean_ctor_get(x_81, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_82, 0); +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_81); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_dec(x_82); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -lean_object* x_89; +lean_object* x_90; lean_dec(x_29); -x_89 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_75, x_3, x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_76); -if (lean_obj_tag(x_89) == 0) +x_90 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go(x_1, x_76, x_3, x_78, x_5, x_6, x_7, x_8, x_9, x_10, x_77); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_box(0); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_92); -x_12 = x_93; -x_13 = x_91; +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = lean_box(0); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_93); +x_12 = x_94; +x_13 = x_92; goto block_22; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_89, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_89, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_ctor_get(x_90, 0); lean_inc(x_95); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_96 = x_89; +x_96 = lean_ctor_get(x_90, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_97 = x_90; } else { - lean_dec_ref(x_89); - x_96 = lean_box(0); + lean_dec_ref(x_90); + x_97 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_98 = x_97; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_96); +return x_98; } } } else { -uint8_t x_98; +uint8_t x_99; lean_dec(x_29); lean_dec(x_10); lean_dec(x_9); @@ -43535,30 +43875,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_98 = !lean_is_exclusive(x_74); -if (x_98 == 0) +x_99 = !lean_is_exclusive(x_75); +if (x_99 == 0) { -return x_74; +return x_75; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_74, 0); -x_100 = lean_ctor_get(x_74, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_75, 0); +x_101 = lean_ctor_get(x_75, 1); +lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_74); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_dec(x_75); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } } } else { -uint8_t x_102; +uint8_t x_103; lean_dec(x_29); lean_dec(x_10); lean_dec(x_9); @@ -43568,29 +43908,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_102 = !lean_is_exclusive(x_32); -if (x_102 == 0) +x_103 = !lean_is_exclusive(x_33); +if (x_103 == 0) { -return x_32; +return x_33; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_32, 0); -x_104 = lean_ctor_get(x_32, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_33, 0); +x_105 = lean_ctor_get(x_33, 1); +lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_32); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +lean_dec(x_33); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -lean_object* x_106; +lean_object* x_107; lean_dec(x_24); lean_dec(x_10); lean_dec(x_9); @@ -43601,14 +43941,37 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); if (lean_is_scalar(x_26)) { - x_106 = lean_alloc_ctor(1, 2, 0); + x_107 = lean_alloc_ctor(1, 2, 0); } else { - x_106 = x_26; - lean_ctor_set_tag(x_106, 1); + x_107 = x_26; + lean_ctor_set_tag(x_107, 1); } -lean_ctor_set(x_106, 0, x_29); -lean_ctor_set(x_106, 1, x_30); -return x_106; +lean_ctor_set(x_107, 0, x_29); +lean_ctor_set(x_107, 1, x_30); +return x_107; +} +} +else +{ +lean_object* x_108; +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_26)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_26; + lean_ctor_set_tag(x_108, 1); +} +lean_ctor_set(x_108, 0, x_29); +lean_ctor_set(x_108, 1, x_30); +return x_108; } } } @@ -45465,6 +45828,7 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); +lean_inc(x_11); lean_inc(x_10); x_236 = l_Lean_Elab_Term_mkConst(x_233, x_235, x_10, x_11, x_12, x_13, x_14, x_15, x_234); if (lean_obj_tag(x_236) == 0) @@ -48679,7 +49043,7 @@ if (x_1016 == 0) { uint8_t x_1017; uint8_t x_1018; x_1017 = 0; -lean_ctor_set_uint8(x_10, sizeof(void*)*8 + 1, x_1017); +lean_ctor_set_uint8(x_10, sizeof(void*)*9 + 1, x_1017); x_1018 = lean_nat_dec_le(x_1012, x_1012); if (x_1018 == 0) { @@ -48714,24 +49078,26 @@ return x_1022; } else { -lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; uint8_t x_1026; uint8_t x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; uint8_t x_1032; uint8_t x_1033; uint8_t x_1034; uint8_t x_1035; uint8_t x_1036; lean_object* x_1037; uint8_t x_1038; uint8_t x_1039; uint8_t x_1040; lean_object* x_1041; uint8_t x_1042; +lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; uint8_t x_1026; uint8_t x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; uint8_t x_1032; uint8_t x_1033; uint8_t x_1034; uint8_t x_1035; uint8_t x_1036; lean_object* x_1037; lean_object* x_1038; uint8_t x_1039; uint8_t x_1040; uint8_t x_1041; lean_object* x_1042; uint8_t x_1043; x_1023 = lean_ctor_get(x_10, 0); x_1024 = lean_ctor_get(x_10, 1); x_1025 = lean_ctor_get(x_10, 2); -x_1026 = lean_ctor_get_uint8(x_10, sizeof(void*)*8); -x_1027 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 2); +x_1026 = lean_ctor_get_uint8(x_10, sizeof(void*)*9); +x_1027 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 2); x_1028 = lean_ctor_get(x_10, 3); x_1029 = lean_ctor_get(x_10, 4); x_1030 = lean_ctor_get(x_10, 5); x_1031 = lean_ctor_get(x_10, 6); -x_1032 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 3); -x_1033 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 4); -x_1034 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 5); -x_1035 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 6); -x_1036 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 7); +x_1032 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 3); +x_1033 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 4); +x_1034 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 5); +x_1035 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 6); +x_1036 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 7); x_1037 = lean_ctor_get(x_10, 7); -x_1038 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 8); -x_1039 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 9); +x_1038 = lean_ctor_get(x_10, 8); +x_1039 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 8); +x_1040 = lean_ctor_get_uint8(x_10, sizeof(void*)*9 + 9); +lean_inc(x_1038); lean_inc(x_1037); lean_inc(x_1031); lean_inc(x_1030); @@ -48741,31 +49107,32 @@ lean_inc(x_1025); lean_inc(x_1024); lean_inc(x_1023); lean_dec(x_10); -x_1040 = 0; -x_1041 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_1041, 0, x_1023); -lean_ctor_set(x_1041, 1, x_1024); -lean_ctor_set(x_1041, 2, x_1025); -lean_ctor_set(x_1041, 3, x_1028); -lean_ctor_set(x_1041, 4, x_1029); -lean_ctor_set(x_1041, 5, x_1030); -lean_ctor_set(x_1041, 6, x_1031); -lean_ctor_set(x_1041, 7, x_1037); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8, x_1026); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 1, x_1040); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 2, x_1027); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 3, x_1032); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 4, x_1033); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 5, x_1034); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 6, x_1035); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 7, x_1036); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 8, x_1038); -lean_ctor_set_uint8(x_1041, sizeof(void*)*8 + 9, x_1039); -x_1042 = lean_nat_dec_le(x_1012, x_1012); -if (x_1042 == 0) +x_1041 = 0; +x_1042 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_1042, 0, x_1023); +lean_ctor_set(x_1042, 1, x_1024); +lean_ctor_set(x_1042, 2, x_1025); +lean_ctor_set(x_1042, 3, x_1028); +lean_ctor_set(x_1042, 4, x_1029); +lean_ctor_set(x_1042, 5, x_1030); +lean_ctor_set(x_1042, 6, x_1031); +lean_ctor_set(x_1042, 7, x_1037); +lean_ctor_set(x_1042, 8, x_1038); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9, x_1026); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 1, x_1041); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 2, x_1027); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 3, x_1032); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 4, x_1033); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 5, x_1034); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 6, x_1035); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 7, x_1036); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 8, x_1039); +lean_ctor_set_uint8(x_1042, sizeof(void*)*9 + 9, x_1040); +x_1043 = lean_nat_dec_le(x_1012, x_1012); +if (x_1043 == 0) { -lean_object* x_1043; -lean_dec(x_1041); +lean_object* x_1044; +lean_dec(x_1042); lean_dec(x_1012); lean_dec(x_1011); lean_dec(x_15); @@ -48777,20 +49144,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1043 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1043, 0, x_9); -lean_ctor_set(x_1043, 1, x_16); -return x_1043; +x_1044 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1044, 0, x_9); +lean_ctor_set(x_1044, 1, x_16); +return x_1044; } else { -size_t x_1044; size_t x_1045; lean_object* x_1046; -x_1044 = 0; -x_1045 = lean_usize_of_nat(x_1012); +size_t x_1045; size_t x_1046; lean_object* x_1047; +x_1045 = 0; +x_1046 = lean_usize_of_nat(x_1012); lean_dec(x_1012); -x_1046 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1011, x_1044, x_1045, x_9, x_1041, x_11, x_12, x_13, x_14, x_15, x_16); +x_1047 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1011, x_1045, x_1046, x_9, x_1042, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_1011); -return x_1046; +return x_1047; } } } @@ -48991,140 +49358,140 @@ lean_object* x_13; lean_object* x_14; lean_object* x_25; x_13 = lean_array_uget(x_1, x_2); if (lean_obj_tag(x_13) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_55; lean_object* x_56; uint8_t x_61; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_55; lean_object* x_56; uint8_t x_63; x_43 = lean_ctor_get(x_13, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_13, 1); lean_inc(x_44); x_45 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__1; -x_61 = l_Lean_Expr_isMVar(x_43); -if (x_61 == 0) +x_63 = l_Lean_Expr_isMVar(x_43); +if (x_63 == 0) { -lean_object* x_62; lean_object* x_63; +lean_object* x_64; lean_object* x_65; lean_dec(x_44); lean_dec(x_43); -x_62 = lean_box(0); +x_64 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_63 = lean_apply_8(x_45, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_25 = x_63; +x_65 = lean_apply_8(x_45, x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_25 = x_65; goto block_42; } else { -uint8_t x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; -x_64 = 0; +uint8_t x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; +x_66 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_65 = l_Lean_Elab_Term_SavedState_restore(x_44, x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = 0; +x_67 = l_Lean_Elab_Term_SavedState_restore(x_44, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_68 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_67, x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_66); -if (lean_obj_tag(x_68) == 0) +x_70 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_69, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_68); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); -x_70 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_69); -x_71 = lean_ctor_get(x_70, 0); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); lean_dec(x_70); -x_73 = l_Lean_Expr_isMVar(x_71); -if (x_73 == 0) +x_72 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_71); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l_Lean_Expr_isMVar(x_73); +if (x_75 == 0) { -lean_object* x_74; -lean_dec(x_71); -x_74 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; -x_46 = x_74; -x_47 = x_72; +lean_object* x_76; +lean_dec(x_73); +x_76 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; +x_46 = x_76; +x_47 = x_74; goto block_54; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = l_Lean_Expr_mvarId_x21(x_71); -x_76 = l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(x_75, x_5, x_6, x_7, x_8, x_9, x_10, x_72); -lean_dec(x_75); -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; -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; -x_46 = x_79; -x_47 = x_78; -goto block_54; -} -else +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = l_Lean_Expr_mvarId_x21(x_73); +x_78 = l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_74); +lean_dec(x_77); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +if (lean_obj_tag(x_79) == 0) { lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_78, 1); lean_inc(x_80); -lean_dec(x_77); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_81) == 1) -{ -lean_object* x_82; lean_object* x_83; -lean_dec(x_81); -x_82 = lean_ctor_get(x_76, 1); -lean_inc(x_82); -lean_dec(x_76); -x_83 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2; -x_46 = x_83; -x_47 = x_82; +lean_dec(x_78); +x_81 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; +x_46 = x_81; +x_47 = x_80; goto block_54; } else { +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_79, 0); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_dec(x_82); +if (lean_obj_tag(x_83) == 1) +{ lean_object* x_84; lean_object* x_85; -lean_dec(x_81); -x_84 = lean_ctor_get(x_76, 1); +lean_dec(x_83); +x_84 = lean_ctor_get(x_78, 1); lean_inc(x_84); -lean_dec(x_76); -x_85 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; +lean_dec(x_78); +x_85 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2; x_46 = x_85; x_47 = x_84; goto block_54; } +else +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_83); +x_86 = lean_ctor_get(x_78, 1); +lean_inc(x_86); +lean_dec(x_78); +x_87 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; +x_46 = x_87; +x_47 = x_86; +goto block_54; +} } } } else { -lean_object* x_86; lean_object* x_87; +lean_object* x_88; lean_object* x_89; lean_dec(x_43); -x_86 = lean_ctor_get(x_68, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_68, 1); -lean_inc(x_87); -lean_dec(x_68); -x_55 = x_86; -x_56 = x_87; -goto block_60; +x_88 = lean_ctor_get(x_70, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_70, 1); +lean_inc(x_89); +lean_dec(x_70); +x_55 = x_88; +x_56 = x_89; +goto block_62; } } block_54: @@ -49173,41 +49540,55 @@ goto block_42; } } } -block_60: +block_62: { uint8_t x_57; -x_57 = l_Lean_Exception_isRuntime(x_55); +x_57 = l_Lean_Exception_isInterrupt(x_55); if (x_57 == 0) { -lean_object* x_58; +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_55); +if (x_58 == 0) +{ +lean_object* x_59; lean_dec(x_55); -x_58 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2; -x_46 = x_58; +x_59 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2; +x_46 = x_59; x_47 = x_56; goto block_54; } else { -lean_object* x_59; -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_55); -lean_ctor_set(x_59, 1, x_56); -x_25 = x_59; +lean_object* x_60; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_55); +lean_ctor_set(x_60, 1, x_56); +x_25 = x_60; +goto block_42; +} +} +else +{ +lean_object* x_61; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_55); +lean_ctor_set(x_61, 1, x_56); +x_25 = x_61; goto block_42; } } } else { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_13); -if (x_88 == 0) +uint8_t x_90; +x_90 = !lean_is_exclusive(x_13); +if (x_90 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_13, 1); -lean_dec(x_89); -x_90 = lean_ctor_get(x_13, 0); -lean_dec(x_90); +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_13, 1); +lean_dec(x_91); +x_92 = lean_ctor_get(x_13, 0); +lean_dec(x_92); lean_ctor_set_tag(x_13, 0); lean_ctor_set(x_13, 1, x_11); lean_ctor_set(x_13, 0, x_4); @@ -49216,12 +49597,12 @@ goto block_24; } else { -lean_object* x_91; +lean_object* x_93; lean_dec(x_13); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_4); -lean_ctor_set(x_91, 1, x_11); -x_14 = x_91; +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_4); +lean_ctor_set(x_93, 1, x_11); +x_14 = x_93; goto block_24; } } @@ -49366,17 +49747,17 @@ goto block_24; } else { -lean_object* x_92; +lean_object* x_94; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_4); -lean_ctor_set(x_92, 1, x_11); -return x_92; +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_4); +lean_ctor_set(x_94, 1, x_11); +return x_94; } } } @@ -50953,7 +51334,7 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_uset(x_3, x_2, x_14); if (lean_obj_tag(x_13) == 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; lean_object* x_24; lean_object* x_25; +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; x_16 = lean_ctor_get(x_13, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_13, 1); @@ -50973,37 +51354,40 @@ lean_dec(x_18); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); lean_dec(x_21); -x_23 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___lambda__1___boxed), 8, 1); -lean_closure_set(x_23, 0, x_16); -x_24 = lean_alloc_closure((void*)(l_Lean_withEnv___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1), 9, 2); -lean_closure_set(x_24, 0, x_22); -lean_closure_set(x_24, 1, x_23); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___lambda__1___boxed), 8, 1); +lean_closure_set(x_24, 0, x_16); +x_25 = lean_alloc_closure((void*)(l_Lean_withEnv___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1), 9, 2); +lean_closure_set(x_25, 0, x_23); +lean_closure_set(x_25, 1, x_24); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_25 = l_Lean_Meta_withMCtx___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__3___rarg(x_20, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_25) == 0) +x_26 = l_Lean_Meta_withMCtx___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__3___rarg(x_20, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = 1; -x_29 = lean_usize_add(x_2, x_28); -x_30 = lean_array_uset(x_15, x_2, x_26); -x_2 = x_29; -x_3 = x_30; -x_10 = x_27; +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = 1; +x_30 = lean_usize_add(x_2, x_29); +x_31 = lean_array_uset(x_15, x_2, x_27); +x_2 = x_30; +x_3 = x_31; +x_10 = x_28; goto _start; } else { -uint8_t x_32; +uint8_t x_33; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -51011,57 +51395,57 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_32 = !lean_is_exclusive(x_25); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) { -return x_25; +return x_26; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_25, 0); -x_34 = lean_ctor_get(x_25, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_26, 0); +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_25); -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_dec(x_26); +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_36; lean_object* x_37; +lean_object* x_37; lean_object* x_38; lean_dec(x_13); -x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___closed__2; +x_37 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___closed__2; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = l_panic___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4(x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_37) == 0) +x_38 = l_panic___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4(x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = 1; -x_41 = lean_usize_add(x_2, x_40); -x_42 = lean_array_uset(x_15, x_2, x_38); -x_2 = x_41; -x_3 = x_42; -x_10 = x_39; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = 1; +x_42 = lean_usize_add(x_2, x_41); +x_43 = lean_array_uset(x_15, x_2, x_39); +x_2 = x_42; +x_3 = x_43; +x_10 = x_40; goto _start; } else { -uint8_t x_44; +uint8_t x_45; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -51069,23 +51453,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_44 = !lean_is_exclusive(x_37); -if (x_44 == 0) +x_45 = !lean_is_exclusive(x_38); +if (x_45 == 0) { -return x_37; +return x_38; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_37, 0); -x_46 = lean_ctor_get(x_37, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_38, 0); +x_47 = lean_ctor_get(x_38, 1); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_37); -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; +lean_dec(x_38); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -51110,7 +51494,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -51122,7 +51506,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -51135,24 +51522,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -51244,7 +51633,7 @@ return x_31; } 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; 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; lean_object* x_45; lean_object* x_46; +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; uint8_t x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_32 = lean_ctor_get(x_10, 0); x_33 = lean_ctor_get(x_10, 1); x_34 = lean_ctor_get(x_10, 2); @@ -51256,7 +51645,10 @@ x_39 = lean_ctor_get(x_10, 7); x_40 = lean_ctor_get(x_10, 8); x_41 = lean_ctor_get(x_10, 9); x_42 = lean_ctor_get(x_10, 10); -x_43 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_43 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_44 = lean_ctor_get(x_10, 11); +x_45 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_44); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); @@ -51269,68 +51661,70 @@ lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_dec(x_10); -x_44 = l_Lean_replaceRef(x_1, x_37); +x_46 = l_Lean_replaceRef(x_1, x_37); lean_dec(x_37); lean_dec(x_1); -x_45 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_45, 0, x_32); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_34); -lean_ctor_set(x_45, 3, x_35); -lean_ctor_set(x_45, 4, x_36); -lean_ctor_set(x_45, 5, x_44); -lean_ctor_set(x_45, 6, x_38); -lean_ctor_set(x_45, 7, x_39); -lean_ctor_set(x_45, 8, x_40); -lean_ctor_set(x_45, 9, x_41); -lean_ctor_set(x_45, 10, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_43); -x_46 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(x_17, x_6, x_7, x_8, x_9, x_45, x_11, x_24); -return x_46; +x_47 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_47, 0, x_32); +lean_ctor_set(x_47, 1, x_33); +lean_ctor_set(x_47, 2, x_34); +lean_ctor_set(x_47, 3, x_35); +lean_ctor_set(x_47, 4, x_36); +lean_ctor_set(x_47, 5, x_46); +lean_ctor_set(x_47, 6, x_38); +lean_ctor_set(x_47, 7, x_39); +lean_ctor_set(x_47, 8, x_40); +lean_ctor_set(x_47, 9, x_41); +lean_ctor_set(x_47, 10, x_42); +lean_ctor_set(x_47, 11, x_44); +lean_ctor_set_uint8(x_47, sizeof(void*)*12, x_43); +lean_ctor_set_uint8(x_47, sizeof(void*)*12 + 1, x_45); +x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(x_17, x_6, x_7, x_8, x_9, x_47, x_11, x_24); +return x_48; } } else { -size_t x_47; size_t x_48; lean_object* x_49; +size_t x_49; size_t x_50; lean_object* x_51; lean_dec(x_17); -x_47 = lean_usize_of_nat(x_25); +x_49 = lean_usize_of_nat(x_25); lean_dec(x_25); -x_48 = 0; +x_50 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_49 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5(x_47, x_48, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_24); -if (lean_obj_tag(x_49) == 0) +x_51 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5(x_49, x_50, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_51) == 0) { -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; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = l_Lean_toMessageList(x_50); -x_53 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; -x_54 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +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; +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_Lean_toMessageList(x_52); +x_55 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; x_56 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__6(x_1, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_51); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_58 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__6(x_1, x_58, x_6, x_7, x_8, x_9, x_10, x_11, x_53); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -return x_57; +return x_59; } else { -uint8_t x_58; +uint8_t x_60; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -51338,43 +51732,43 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_58 = !lean_is_exclusive(x_49); -if (x_58 == 0) +x_60 = !lean_is_exclusive(x_51); +if (x_60 == 0) { -return x_49; +return x_51; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_49, 0); -x_60 = lean_ctor_get(x_49, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_49); -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_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_51, 0); +x_62 = lean_ctor_get(x_51, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_51); +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_62; lean_object* x_63; lean_object* x_64; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_25); lean_dec(x_17); lean_dec(x_1); -x_62 = lean_unsigned_to_nat(0u); -x_63 = lean_array_fget(x_23, x_62); +x_64 = lean_unsigned_to_nat(0u); +x_65 = lean_array_fget(x_23, x_64); lean_dec(x_23); -x_64 = l_Lean_Elab_Term_applyResult___rarg(x_63, x_6, x_7, x_8, x_9, x_10, x_11, x_24); -return x_64; +x_66 = l_Lean_Elab_Term_applyResult___rarg(x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +return x_66; } } else { -uint8_t x_65; +uint8_t x_67; lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); @@ -51383,40 +51777,40 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_22); -if (x_65 == 0) +x_67 = !lean_is_exclusive(x_22); +if (x_67 == 0) { return x_22; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_22, 0); -x_67 = lean_ctor_get(x_22, 1); -lean_inc(x_67); -lean_inc(x_66); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_22, 0); +x_69 = lean_ctor_get(x_22, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_22); -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; +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 { -lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_dec(x_1); -x_69 = lean_unsigned_to_nat(0u); -x_70 = lean_array_fget(x_17, x_69); +x_71 = lean_unsigned_to_nat(0u); +x_72 = lean_array_fget(x_17, x_71); lean_dec(x_17); -x_71 = l_Lean_Elab_Term_applyResult___rarg(x_70, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -return x_71; +x_73 = l_Lean_Elab_Term_applyResult___rarg(x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +return x_73; } } else { -uint8_t x_72; +uint8_t x_74; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -51424,23 +51818,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_16); -if (x_72 == 0) +x_74 = !lean_is_exclusive(x_16); +if (x_74 == 0) { return x_16; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_16, 0); -x_74 = lean_ctor_get(x_16, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_16, 0); +x_76 = lean_ctor_get(x_16, 1); +lean_inc(x_76); +lean_inc(x_75); lean_dec(x_16); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } @@ -51508,7 +51902,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_annotateIfR _start: { uint8_t x_10; -x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); +x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); if (x_10 == 0) { lean_object* x_11; @@ -53483,7 +53877,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -53493,7 +53887,7 @@ x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -53503,27 +53897,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2; x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3; x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5() { _start: { lean_object* x_1; @@ -53531,17 +53925,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7() { _start: { lean_object* x_1; @@ -53549,37 +53943,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8; x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9; x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11() { _start: { lean_object* x_1; @@ -53587,17 +53981,17 @@ x_1 = lean_mk_string_from_bytes("App", 3); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13() { _start: { lean_object* x_1; @@ -53605,33 +53999,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14; -x_2 = lean_unsigned_to_nat(20870u); +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14; +x_2 = lean_unsigned_to_nat(20872u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -54581,37 +54975,37 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__ if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabProj_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__5); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__6); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__7); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__8); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__9); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__10); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__11); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__12); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__13); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__14); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870____closed__15); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20870_(lean_io_mk_world()); +}l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__5); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__6); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__7); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__8); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__9); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__10); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__11); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__12); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__13); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__14); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872____closed__15); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_20872_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Arg.c b/stage0/stdlib/Lean/Elab/Arg.c index e6639e6612..42d2746e3e 100644 --- a/stage0/stdlib/Lean/Elab/Arg.c +++ b/stage0/stdlib/Lean/Elab/Arg.c @@ -371,7 +371,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -383,7 +383,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -396,28 +399,30 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Elab_Term_expandArgs___spec__2(x_2, x_3, x_4, x_25, x_6, x_7); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Elab_Term_expandArgs___spec__2(x_2, x_3, x_4, x_27, x_6, x_7); lean_dec(x_6); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } } diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 0deb5c83d5..10bacf4b58 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -1360,7 +1360,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -1372,7 +1372,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -1385,26 +1388,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__3(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__3(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -1698,7 +1703,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -1710,7 +1715,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -1723,26 +1731,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__1(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__1(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -4755,7 +4765,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4767,7 +4777,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4780,24 +4793,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -4892,7 +4907,7 @@ return x_20; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___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; 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -4915,42 +4930,47 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_26 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_checkLocalInstanceParameters(x_2, x_5, x_6, x_7, x_8, x_25, x_10, x_11); -if (lean_obj_tag(x_26) == 0) +x_28 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_checkLocalInstanceParameters(x_2, x_5, x_6, x_7, x_8, x_27, x_10, x_11); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -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_apply_8(x_3, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_28); -return x_29; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_8(x_3, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +return x_31; } else { -uint8_t x_30; +uint8_t x_32; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4958,23 +4978,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_32 = !lean_is_exclusive(x_28); +if (x_32 == 0) { -return x_26; +return x_28; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_28, 0); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_28); +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; } } } @@ -17035,7 +17055,7 @@ lean_inc(x_24); x_39 = l_Lean_Elab_Term_addTermInfo_x27(x_34, x_24, x_35, x_36, x_37, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_23); 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; 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; lean_object* x_54; lean_object* x_55; +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; uint8_t x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); lean_dec(x_39); @@ -17061,270 +17081,140 @@ x_50 = lean_ctor_get(x_12, 9); lean_inc(x_50); x_51 = lean_ctor_get(x_12, 10); lean_inc(x_51); -x_52 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); -x_53 = l_Lean_replaceRef(x_29, x_46); +x_52 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_53 = lean_ctor_get(x_12, 11); +lean_inc(x_53); +x_54 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +x_55 = l_Lean_replaceRef(x_29, x_46); lean_dec(x_46); lean_dec(x_29); -x_54 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_54, 0, x_41); -lean_ctor_set(x_54, 1, x_42); -lean_ctor_set(x_54, 2, x_43); -lean_ctor_set(x_54, 3, x_44); -lean_ctor_set(x_54, 4, x_45); -lean_ctor_set(x_54, 5, x_53); -lean_ctor_set(x_54, 6, x_47); -lean_ctor_set(x_54, 7, x_48); -lean_ctor_set(x_54, 8, x_49); -lean_ctor_set(x_54, 9, x_50); -lean_ctor_set(x_54, 10, x_51); -lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_52); +x_56 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_56, 0, x_41); +lean_ctor_set(x_56, 1, x_42); +lean_ctor_set(x_56, 2, x_43); +lean_ctor_set(x_56, 3, x_44); +lean_ctor_set(x_56, 4, x_45); +lean_ctor_set(x_56, 5, x_55); +lean_ctor_set(x_56, 6, x_47); +lean_ctor_set(x_56, 7, x_48); +lean_ctor_set(x_56, 8, x_49); +lean_ctor_set(x_56, 9, x_50); +lean_ctor_set(x_56, 10, x_51); +lean_ctor_set(x_56, 11, x_53); +lean_ctor_set_uint8(x_56, sizeof(void*)*12, x_52); +lean_ctor_set_uint8(x_56, sizeof(void*)*12 + 1, x_54); lean_inc(x_13); lean_inc(x_11); lean_inc(x_10); lean_inc(x_16); -x_55 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType(x_24, x_16, x_28, x_8, x_9, x_10, x_11, x_54, x_13, x_40); -if (lean_obj_tag(x_55) == 0) +x_57 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType(x_24, x_16, x_28, x_8, x_9, x_10, x_11, x_56, x_13, x_40); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_56, 0); -x_60 = lean_ctor_get(x_56, 2); -x_61 = lean_ctor_get(x_56, 3); -x_62 = lean_ctor_get(x_56, 1); -lean_dec(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_33); +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -lean_ctor_set(x_56, 1, x_33); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_63 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_57); -if (lean_obj_tag(x_63) == 0) +lean_dec(x_57); +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) { -lean_object* x_64; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_33); -lean_dec(x_24); -lean_free_object(x_20); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_unsigned_to_nat(1u); -x_67 = lean_nat_add(x_6, x_66); -lean_dec(x_6); -x_68 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_67, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_65); -return x_68; -} -else -{ -lean_object* x_69; -x_69 = lean_box(x_31); -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; lean_object* x_76; -lean_dec(x_56); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); -lean_dec(x_63); -x_71 = lean_ctor_get(x_64, 0); -lean_inc(x_71); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_58, 0); +x_62 = lean_ctor_get(x_58, 2); +x_63 = lean_ctor_get(x_58, 3); +x_64 = lean_ctor_get(x_58, 1); lean_dec(x_64); -lean_ctor_set(x_20, 1, x_24); -lean_ctor_set(x_20, 0, x_71); -x_72 = lean_array_push(x_60, x_20); -x_73 = lean_unsigned_to_nat(1u); -x_74 = lean_nat_add(x_6, x_73); -lean_dec(x_6); -x_75 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_75, 0, x_59); -lean_ctor_set(x_75, 1, x_33); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set(x_75, 3, x_61); -x_76 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_74, x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_70); -return x_76; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_69); -lean_dec(x_64); -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_33); -lean_dec(x_24); -lean_free_object(x_20); -x_77 = lean_ctor_get(x_63, 1); -lean_inc(x_77); -lean_dec(x_63); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_6, x_78); -lean_dec(x_6); -x_80 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_79, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_77); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_56); -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_33); -lean_dec(x_24); -lean_free_object(x_20); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_81 = !lean_is_exclusive(x_63); -if (x_81 == 0) -{ -return x_63; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_63, 0); -x_83 = lean_ctor_get(x_63, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_63); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; -} -} -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_85 = lean_ctor_get(x_56, 0); -x_86 = lean_ctor_get(x_56, 2); -x_87 = lean_ctor_get(x_56, 3); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_56); -lean_inc(x_87); -lean_inc(x_86); +lean_inc(x_63); +lean_inc(x_62); lean_inc(x_33); -lean_inc(x_85); -x_88 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_33); -lean_ctor_set(x_88, 2, x_86); -lean_ctor_set(x_88, 3, x_87); +lean_inc(x_61); +lean_ctor_set(x_58, 1, x_33); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_89 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_57); -if (lean_obj_tag(x_89) == 0) +x_65 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_59); +if (lean_obj_tag(x_65) == 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_66; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_87); -lean_dec(x_86); -lean_dec(x_85); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); lean_dec(x_33); lean_dec(x_24); lean_free_object(x_20); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_unsigned_to_nat(1u); -x_93 = lean_nat_add(x_6, x_92); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = lean_unsigned_to_nat(1u); +x_69 = lean_nat_add(x_6, x_68); lean_dec(x_6); -x_94 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_93, x_88, x_8, x_9, x_10, x_11, x_12, x_13, x_91); -return x_94; +x_70 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_69, x_58, x_8, x_9, x_10, x_11, x_12, x_13, x_67); +return x_70; } else { -lean_object* x_95; -x_95 = lean_box(x_31); -if (lean_obj_tag(x_95) == 0) +lean_object* x_71; +x_71 = lean_box(x_31); +if (lean_obj_tag(x_71) == 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_dec(x_88); -x_96 = lean_ctor_get(x_89, 1); -lean_inc(x_96); -lean_dec(x_89); -x_97 = lean_ctor_get(x_90, 0); -lean_inc(x_97); -lean_dec(x_90); +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_dec(x_58); +x_72 = lean_ctor_get(x_65, 1); +lean_inc(x_72); +lean_dec(x_65); +x_73 = lean_ctor_get(x_66, 0); +lean_inc(x_73); +lean_dec(x_66); lean_ctor_set(x_20, 1, x_24); -lean_ctor_set(x_20, 0, x_97); -x_98 = lean_array_push(x_86, x_20); -x_99 = lean_unsigned_to_nat(1u); -x_100 = lean_nat_add(x_6, x_99); +lean_ctor_set(x_20, 0, x_73); +x_74 = lean_array_push(x_62, x_20); +x_75 = lean_unsigned_to_nat(1u); +x_76 = lean_nat_add(x_6, x_75); lean_dec(x_6); -x_101 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_101, 0, x_85); -lean_ctor_set(x_101, 1, x_33); -lean_ctor_set(x_101, 2, x_98); -lean_ctor_set(x_101, 3, x_87); -x_102 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_100, x_101, x_8, x_9, x_10, x_11, x_12, x_13, x_96); -return x_102; +x_77 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_77, 0, x_61); +lean_ctor_set(x_77, 1, x_33); +lean_ctor_set(x_77, 2, x_74); +lean_ctor_set(x_77, 3, x_63); +x_78 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_76, x_77, x_8, x_9, x_10, x_11, x_12, x_13, x_72); +return x_78; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_95); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_86); -lean_dec(x_85); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_71); +lean_dec(x_66); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); lean_dec(x_33); lean_dec(x_24); lean_free_object(x_20); -x_103 = lean_ctor_get(x_89, 1); -lean_inc(x_103); -lean_dec(x_89); -x_104 = lean_unsigned_to_nat(1u); -x_105 = lean_nat_add(x_6, x_104); +x_79 = lean_ctor_get(x_65, 1); +lean_inc(x_79); +lean_dec(x_65); +x_80 = lean_unsigned_to_nat(1u); +x_81 = lean_nat_add(x_6, x_80); lean_dec(x_6); -x_106 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_105, x_88, x_8, x_9, x_10, x_11, x_12, x_13, x_103); -return x_106; +x_82 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_81, x_58, x_8, x_9, x_10, x_11, x_12, x_13, x_79); +return x_82; } } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -lean_dec(x_88); -lean_dec(x_87); -lean_dec(x_86); -lean_dec(x_85); +uint8_t x_83; +lean_dec(x_58); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); lean_dec(x_33); lean_dec(x_24); lean_free_object(x_20); @@ -17336,32 +17226,167 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_107 = lean_ctor_get(x_89, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_89, 1); -lean_inc(x_108); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_109 = x_89; -} else { - lean_dec_ref(x_89); - x_109 = lean_box(0); +x_83 = !lean_is_exclusive(x_65); +if (x_83 == 0) +{ +return x_65; } -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); -return x_110; +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_65, 0); +x_85 = lean_ctor_get(x_65, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_65); +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 { -uint8_t x_111; +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_58, 0); +x_88 = lean_ctor_get(x_58, 2); +x_89 = lean_ctor_get(x_58, 3); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_58); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_33); +lean_inc(x_87); +x_90 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_33); +lean_ctor_set(x_90, 2, x_88); +lean_ctor_set(x_90, 3, x_89); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_91 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_59); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; +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_dec(x_89); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_33); +lean_dec(x_24); +lean_free_object(x_20); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_unsigned_to_nat(1u); +x_95 = lean_nat_add(x_6, x_94); +lean_dec(x_6); +x_96 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_95, x_90, x_8, x_9, x_10, x_11, x_12, x_13, x_93); +return x_96; +} +else +{ +lean_object* x_97; +x_97 = lean_box(x_31); +if (lean_obj_tag(x_97) == 0) +{ +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_dec(x_90); +x_98 = lean_ctor_get(x_91, 1); +lean_inc(x_98); +lean_dec(x_91); +x_99 = lean_ctor_get(x_92, 0); +lean_inc(x_99); +lean_dec(x_92); +lean_ctor_set(x_20, 1, x_24); +lean_ctor_set(x_20, 0, x_99); +x_100 = lean_array_push(x_88, x_20); +x_101 = lean_unsigned_to_nat(1u); +x_102 = lean_nat_add(x_6, x_101); +lean_dec(x_6); +x_103 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_103, 0, x_87); +lean_ctor_set(x_103, 1, x_33); +lean_ctor_set(x_103, 2, x_100); +lean_ctor_set(x_103, 3, x_89); +x_104 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_102, x_103, x_8, x_9, x_10, x_11, x_12, x_13, x_98); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_97); +lean_dec(x_92); +lean_dec(x_89); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_33); +lean_dec(x_24); +lean_free_object(x_20); +x_105 = lean_ctor_get(x_91, 1); +lean_inc(x_105); +lean_dec(x_91); +x_106 = lean_unsigned_to_nat(1u); +x_107 = lean_nat_add(x_6, x_106); +lean_dec(x_6); +x_108 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_107, x_90, x_8, x_9, x_10, x_11, x_12, x_13, x_105); +return x_108; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_90); +lean_dec(x_89); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_33); +lean_dec(x_24); +lean_free_object(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_109 = lean_ctor_get(x_91, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_91, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_111 = x_91; +} else { + lean_dec_ref(x_91); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_110); +return x_112; +} +} +} +else +{ +uint8_t x_113; lean_dec(x_33); lean_dec(x_24); lean_free_object(x_20); @@ -17374,29 +17399,29 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_111 = !lean_is_exclusive(x_55); -if (x_111 == 0) +x_113 = !lean_is_exclusive(x_57); +if (x_113 == 0) { -return x_55; +return x_57; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_55, 0); -x_113 = lean_ctor_get(x_55, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_55); -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; +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_57, 0); +x_115 = lean_ctor_get(x_57, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_57); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } } else { -uint8_t x_115; +uint8_t x_117; lean_dec(x_33); lean_dec(x_29); lean_dec(x_28); @@ -17411,283 +17436,252 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_115 = !lean_is_exclusive(x_39); -if (x_115 == 0) +x_117 = !lean_is_exclusive(x_39); +if (x_117 == 0) { return x_39; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_39, 0); -x_117 = lean_ctor_get(x_39, 1); -lean_inc(x_117); -lean_inc(x_116); +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_39, 0); +x_119 = lean_ctor_get(x_39, 1); +lean_inc(x_119); +lean_inc(x_118); lean_dec(x_39); -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; +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } } else { -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; uint8_t x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; -x_119 = lean_ctor_get(x_20, 0); -x_120 = lean_ctor_get(x_20, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_20); -lean_inc(x_119); -x_121 = l_Lean_Expr_fvar___override(x_119); -x_122 = lean_ctor_get(x_2, 0); +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; uint8_t 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; uint8_t x_137; lean_object* x_138; +x_121 = lean_ctor_get(x_20, 0); +x_122 = lean_ctor_get(x_20, 1); lean_inc(x_122); lean_inc(x_121); -x_123 = lean_array_push(x_122, x_121); -x_124 = lean_ctor_get(x_2, 3); +lean_dec(x_20); +lean_inc(x_121); +x_123 = l_Lean_Expr_fvar___override(x_121); +x_124 = lean_ctor_get(x_2, 0); lean_inc(x_124); +lean_inc(x_123); +x_125 = lean_array_push(x_124, x_123); +x_126 = lean_ctor_get(x_2, 3); +lean_inc(x_126); lean_dec(x_2); lean_inc(x_3); -x_125 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_3); -lean_ctor_set(x_125, 2, x_4); -lean_ctor_set(x_125, 3, x_124); -x_126 = lean_ctor_get(x_5, 1); -lean_inc(x_126); -x_127 = l_Lean_Syntax_getId(x_126); -lean_inc(x_127); -x_128 = l_Lean_Elab_Term_kindOfBinderName(x_127); -x_129 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); +x_127 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_3); +lean_ctor_set(x_127, 2, x_4); +lean_ctor_set(x_127, 3, x_126); +x_128 = lean_ctor_get(x_5, 1); +lean_inc(x_128); +x_129 = l_Lean_Syntax_getId(x_128); +lean_inc(x_129); +x_130 = l_Lean_Elab_Term_kindOfBinderName(x_129); +x_131 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); lean_inc(x_16); -x_130 = l_Lean_LocalContext_mkLocalDecl(x_3, x_119, x_127, x_16, x_129, x_128); -x_131 = lean_ctor_get(x_5, 0); -lean_inc(x_131); +x_132 = l_Lean_LocalContext_mkLocalDecl(x_3, x_121, x_129, x_16, x_131, x_130); +x_133 = lean_ctor_get(x_5, 0); +lean_inc(x_133); lean_dec(x_5); -x_132 = lean_box(0); -lean_inc(x_130); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_130); x_134 = lean_box(0); -x_135 = 1; +lean_inc(x_132); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_132); +x_136 = lean_box(0); +x_137 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_121); -x_136 = l_Lean_Elab_Term_addTermInfo_x27(x_131, x_121, x_132, x_133, x_134, x_135, x_8, x_9, x_10, x_11, x_12, x_13, x_120); -if (lean_obj_tag(x_136) == 0) +lean_inc(x_123); +x_138 = l_Lean_Elab_Term_addTermInfo_x27(x_133, x_123, x_134, x_135, x_136, x_137, x_8, x_9, x_10, x_11, x_12, x_13, x_122); +if (lean_obj_tag(x_138) == 0) { -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; lean_object* x_152; -x_137 = lean_ctor_get(x_136, 1); -lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_ctor_get(x_12, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_12, 1); +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; uint8_t x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_139 = lean_ctor_get(x_138, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_12, 2); +lean_dec(x_138); +x_140 = lean_ctor_get(x_12, 0); lean_inc(x_140); -x_141 = lean_ctor_get(x_12, 3); +x_141 = lean_ctor_get(x_12, 1); lean_inc(x_141); -x_142 = lean_ctor_get(x_12, 4); +x_142 = lean_ctor_get(x_12, 2); lean_inc(x_142); -x_143 = lean_ctor_get(x_12, 5); +x_143 = lean_ctor_get(x_12, 3); lean_inc(x_143); -x_144 = lean_ctor_get(x_12, 6); +x_144 = lean_ctor_get(x_12, 4); lean_inc(x_144); -x_145 = lean_ctor_get(x_12, 7); +x_145 = lean_ctor_get(x_12, 5); lean_inc(x_145); -x_146 = lean_ctor_get(x_12, 8); +x_146 = lean_ctor_get(x_12, 6); lean_inc(x_146); -x_147 = lean_ctor_get(x_12, 9); +x_147 = lean_ctor_get(x_12, 7); lean_inc(x_147); -x_148 = lean_ctor_get(x_12, 10); +x_148 = lean_ctor_get(x_12, 8); lean_inc(x_148); -x_149 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); -x_150 = l_Lean_replaceRef(x_126, x_143); -lean_dec(x_143); -lean_dec(x_126); -x_151 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_151, 0, x_138); -lean_ctor_set(x_151, 1, x_139); -lean_ctor_set(x_151, 2, x_140); -lean_ctor_set(x_151, 3, x_141); -lean_ctor_set(x_151, 4, x_142); -lean_ctor_set(x_151, 5, x_150); -lean_ctor_set(x_151, 6, x_144); -lean_ctor_set(x_151, 7, x_145); -lean_ctor_set(x_151, 8, x_146); -lean_ctor_set(x_151, 9, x_147); -lean_ctor_set(x_151, 10, x_148); -lean_ctor_set_uint8(x_151, sizeof(void*)*11, x_149); +x_149 = lean_ctor_get(x_12, 9); +lean_inc(x_149); +x_150 = lean_ctor_get(x_12, 10); +lean_inc(x_150); +x_151 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_152 = lean_ctor_get(x_12, 11); +lean_inc(x_152); +x_153 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +x_154 = l_Lean_replaceRef(x_128, x_145); +lean_dec(x_145); +lean_dec(x_128); +x_155 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_155, 0, x_140); +lean_ctor_set(x_155, 1, x_141); +lean_ctor_set(x_155, 2, x_142); +lean_ctor_set(x_155, 3, x_143); +lean_ctor_set(x_155, 4, x_144); +lean_ctor_set(x_155, 5, x_154); +lean_ctor_set(x_155, 6, x_146); +lean_ctor_set(x_155, 7, x_147); +lean_ctor_set(x_155, 8, x_148); +lean_ctor_set(x_155, 9, x_149); +lean_ctor_set(x_155, 10, x_150); +lean_ctor_set(x_155, 11, x_152); +lean_ctor_set_uint8(x_155, sizeof(void*)*12, x_151); +lean_ctor_set_uint8(x_155, sizeof(void*)*12 + 1, x_153); lean_inc(x_13); lean_inc(x_11); lean_inc(x_10); lean_inc(x_16); -x_152 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType(x_121, x_16, x_125, x_8, x_9, x_10, x_11, x_151, x_13, x_137); -if (lean_obj_tag(x_152) == 0) +x_156 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType(x_123, x_16, x_127, x_8, x_9, x_10, x_11, x_155, x_13, x_139); +if (lean_obj_tag(x_156) == 0) { -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; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = lean_ctor_get(x_153, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_153, 2); -lean_inc(x_156); -x_157 = lean_ctor_get(x_153, 3); +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; +x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - lean_ctor_release(x_153, 2); - lean_ctor_release(x_153, 3); - x_158 = x_153; +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = lean_ctor_get(x_157, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_157, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_157, 3); +lean_inc(x_161); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + lean_ctor_release(x_157, 2); + lean_ctor_release(x_157, 3); + x_162 = x_157; } else { - lean_dec_ref(x_153); - x_158 = lean_box(0); + lean_dec_ref(x_157); + x_162 = lean_box(0); } -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_130); -lean_inc(x_155); -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(0, 4, 0); +lean_inc(x_161); +lean_inc(x_160); +lean_inc(x_132); +lean_inc(x_159); +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(0, 4, 0); } else { - x_159 = x_158; + x_163 = x_162; } -lean_ctor_set(x_159, 0, x_155); -lean_ctor_set(x_159, 1, x_130); -lean_ctor_set(x_159, 2, x_156); -lean_ctor_set(x_159, 3, x_157); +lean_ctor_set(x_163, 0, x_159); +lean_ctor_set(x_163, 1, x_132); +lean_ctor_set(x_163, 2, x_160); +lean_ctor_set(x_163, 3, x_161); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_160 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_154); -if (lean_obj_tag(x_160) == 0) +x_164 = l_Lean_Meta_isClass_x3f(x_16, x_10, x_11, x_12, x_13, x_158); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_161; -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -if (lean_obj_tag(x_161) == 0) +lean_object* x_165; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +if (lean_obj_tag(x_165) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_157); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_130); -lean_dec(x_121); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_161); lean_dec(x_160); -x_163 = lean_unsigned_to_nat(1u); -x_164 = lean_nat_add(x_6, x_163); -lean_dec(x_6); -x_165 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_164, x_159, x_8, x_9, x_10, x_11, x_12, x_13, x_162); -return x_165; -} -else -{ -lean_object* x_166; -x_166 = lean_box(x_128); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_dec(x_159); -x_167 = lean_ctor_get(x_160, 1); -lean_inc(x_167); -lean_dec(x_160); -x_168 = lean_ctor_get(x_161, 0); -lean_inc(x_168); -lean_dec(x_161); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_121); -x_170 = lean_array_push(x_156, x_169); -x_171 = lean_unsigned_to_nat(1u); -x_172 = lean_nat_add(x_6, x_171); +lean_dec(x_132); +lean_dec(x_123); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = lean_unsigned_to_nat(1u); +x_168 = lean_nat_add(x_6, x_167); lean_dec(x_6); -x_173 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_173, 0, x_155); -lean_ctor_set(x_173, 1, x_130); -lean_ctor_set(x_173, 2, x_170); -lean_ctor_set(x_173, 3, x_157); -x_174 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_172, x_173, x_8, x_9, x_10, x_11, x_12, x_13, x_167); -return x_174; +x_169 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_168, x_163, x_8, x_9, x_10, x_11, x_12, x_13, x_166); +return x_169; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_166); -lean_dec(x_161); -lean_dec(x_157); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_130); -lean_dec(x_121); -x_175 = lean_ctor_get(x_160, 1); -lean_inc(x_175); -lean_dec(x_160); -x_176 = lean_unsigned_to_nat(1u); -x_177 = lean_nat_add(x_6, x_176); +lean_object* x_170; +x_170 = lean_box(x_130); +if (lean_obj_tag(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; lean_object* x_177; lean_object* x_178; +lean_dec(x_163); +x_171 = lean_ctor_get(x_164, 1); +lean_inc(x_171); +lean_dec(x_164); +x_172 = lean_ctor_get(x_165, 0); +lean_inc(x_172); +lean_dec(x_165); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_123); +x_174 = lean_array_push(x_160, x_173); +x_175 = lean_unsigned_to_nat(1u); +x_176 = lean_nat_add(x_6, x_175); lean_dec(x_6); -x_178 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_177, x_159, x_8, x_9, x_10, x_11, x_12, x_13, x_175); +x_177 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_177, 0, x_159); +lean_ctor_set(x_177, 1, x_132); +lean_ctor_set(x_177, 2, x_174); +lean_ctor_set(x_177, 3, x_161); +x_178 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_176, x_177, x_8, x_9, x_10, x_11, x_12, x_13, x_171); return x_178; } -} -} else { lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_170); +lean_dec(x_165); +lean_dec(x_161); +lean_dec(x_160); lean_dec(x_159); -lean_dec(x_157); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_130); -lean_dec(x_121); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_179 = lean_ctor_get(x_160, 0); +lean_dec(x_132); +lean_dec(x_123); +x_179 = lean_ctor_get(x_164, 1); lean_inc(x_179); -x_180 = lean_ctor_get(x_160, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_181 = x_160; -} else { - lean_dec_ref(x_160); - x_181 = lean_box(0); -} -if (lean_is_scalar(x_181)) { - x_182 = lean_alloc_ctor(1, 2, 0); -} else { - x_182 = x_181; -} -lean_ctor_set(x_182, 0, x_179); -lean_ctor_set(x_182, 1, x_180); +lean_dec(x_164); +x_180 = lean_unsigned_to_nat(1u); +x_181 = lean_nat_add(x_6, x_180); +lean_dec(x_6); +x_182 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(x_7, x_181, x_163, x_8, x_9, x_10, x_11, x_12, x_13, x_179); return x_182; } } +} else { lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_130); -lean_dec(x_121); -lean_dec(x_16); +lean_dec(x_163); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_132); +lean_dec(x_123); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -17696,16 +17690,16 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_183 = lean_ctor_get(x_152, 0); +x_183 = lean_ctor_get(x_164, 0); lean_inc(x_183); -x_184 = lean_ctor_get(x_152, 1); +x_184 = lean_ctor_get(x_164, 1); lean_inc(x_184); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_185 = x_152; +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_185 = x_164; } else { - lean_dec_ref(x_152); + lean_dec_ref(x_164); x_185 = lean_box(0); } if (lean_is_scalar(x_185)) { @@ -17721,10 +17715,8 @@ return x_186; else { lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_130); -lean_dec(x_126); -lean_dec(x_125); -lean_dec(x_121); +lean_dec(x_132); +lean_dec(x_123); lean_dec(x_16); lean_dec(x_13); lean_dec(x_12); @@ -17734,16 +17726,16 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_187 = lean_ctor_get(x_136, 0); +x_187 = lean_ctor_get(x_156, 0); lean_inc(x_187); -x_188 = lean_ctor_get(x_136, 1); +x_188 = lean_ctor_get(x_156, 1); lean_inc(x_188); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_189 = x_136; +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_189 = x_156; } else { - lean_dec_ref(x_136); + lean_dec_ref(x_156); x_189 = lean_box(0); } if (lean_is_scalar(x_189)) { @@ -17756,10 +17748,48 @@ lean_ctor_set(x_190, 1, x_188); return x_190; } } +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_132); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_123); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_191 = lean_ctor_get(x_138, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_138, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_193 = x_138; +} else { + lean_dec_ref(x_138); + x_193 = lean_box(0); +} +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(1, 2, 0); +} else { + x_194 = x_193; +} +lean_ctor_set(x_194, 0, x_191); +lean_ctor_set(x_194, 1, x_192); +return x_194; +} +} } else { -uint8_t x_191; +uint8_t x_195; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -17773,23 +17803,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_191 = !lean_is_exclusive(x_15); -if (x_191 == 0) +x_195 = !lean_is_exclusive(x_15); +if (x_195 == 0) { return x_15; } else { -lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_192 = lean_ctor_get(x_15, 0); -x_193 = lean_ctor_get(x_15, 1); -lean_inc(x_193); -lean_inc(x_192); +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_15, 0); +x_197 = lean_ctor_get(x_15, 1); +lean_inc(x_197); +lean_inc(x_196); lean_dec(x_15); -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -return x_194; +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; } } } @@ -17861,7 +17891,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; 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; lean_object* x_39; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_25 = lean_ctor_get(x_8, 0); x_26 = lean_ctor_get(x_8, 1); x_27 = lean_ctor_get(x_8, 2); @@ -17873,7 +17903,10 @@ x_32 = lean_ctor_get(x_8, 7); x_33 = lean_ctor_get(x_8, 8); x_34 = lean_ctor_get(x_8, 9); x_35 = lean_ctor_get(x_8, 10); -x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_37 = lean_ctor_get(x_8, 11); +x_38 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -17886,29 +17919,31 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_8); -x_37 = l_Lean_replaceRef(x_17, x_30); +x_39 = l_Lean_replaceRef(x_17, x_30); lean_dec(x_30); lean_dec(x_17); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); -x_39 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_38, x_9, x_16); -return x_39; +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); +x_41 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_40, x_9, x_16); +return x_41; } } else { -uint8_t x_40; +uint8_t x_42; lean_dec(x_14); lean_dec(x_9); lean_dec(x_8); @@ -17919,23 +17954,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) +x_42 = !lean_is_exclusive(x_15); +if (x_42 == 0) { return x_15; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_ctor_get(x_15, 1); -lean_inc(x_42); -lean_inc(x_41); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_15, 0); +x_44 = lean_ctor_get(x_15, 1); +lean_inc(x_44); +lean_inc(x_43); lean_dec(x_15); -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; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -21480,7 +21515,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -21492,7 +21527,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -21505,31 +21543,33 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Term_precheckFun___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at_Lean_Elab_Term_precheckFun___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); lean_dec(x_9); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_29; +return x_31; } } } @@ -22940,7 +22980,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -22952,7 +22992,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -22965,29 +23008,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_elabFun___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabFun___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c index 9ef65c5f46..d31b4c06b8 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -61,7 +61,6 @@ lean_object* l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(lean_object LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Command_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce___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* l_Lean_Elab_addCompletionInfo___at_Lean_withSetOptionIn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDocStringText___at_Lean_Elab_Command_elabAddDeclDoc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__26; @@ -94,6 +93,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange___cl static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__11___closed__2; LEAN_EXPORT lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange(lean_object*); +static lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__2; static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15___closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabExport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ensureNoOverload___at_Lean_Elab_Command_elabExport___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -135,6 +135,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Command_elabOpe static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange___closed__4; static lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__3___closed__2; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAddDeclDoc___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -221,7 +222,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_foldArgsM___at_Lean_Elab_Command_elabUniv LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__25; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2; lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -506,7 +506,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange___cl lean_object* l_Lean_MessageData_ofFormat(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange___closed__3; -lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -718,6 +717,7 @@ LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExp LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f(lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_errorsToWarnings(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Command_elabCheckCore___spec__1___closed__1; @@ -738,7 +738,6 @@ lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_ob static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__13; static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__20; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Command_elabExport___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSection___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; @@ -799,7 +798,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpe static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__10; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); @@ -986,6 +984,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEoi_declRange___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object*); +lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange(lean_object*); @@ -1154,6 +1153,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__3___boxed(l LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId___spec__1(lean_object*, lean_object*, size_t, size_t); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange___closed__6; +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___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_throwErrorAt___at_Lean_Elab_Command_elabModuleDoc___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: @@ -1179,7 +1179,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -1188,6 +1188,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -1197,18 +1200,20 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_2, x_21, x_4, x_8); -return x_22; +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -5085,51 +5090,17 @@ return x_10; } else { -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -uint8_t x_12; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = l_Lean_Exception_isInterrupt(x_12); +if (x_14 == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_11); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_ctor_get(x_10, 1); -x_18 = lean_ctor_get(x_10, 0); -lean_dec(x_18); -x_19 = lean_ctor_get(x_11, 0); -lean_inc(x_19); -x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; -x_21 = lean_nat_dec_eq(x_20, x_19); -lean_dec(x_19); -if (x_21 == 0) +if (lean_obj_tag(x_12) == 0) { lean_dec(x_4); lean_dec(x_3); @@ -5138,52 +5109,107 @@ return x_10; } else { -lean_object* x_22; lean_object* x_23; +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +x_16 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; +x_17 = lean_nat_dec_eq(x_16, x_15); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_free_object(x_10); -lean_dec(x_11); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); +lean_dec(x_12); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_2, x_18); lean_dec(x_2); -x_2 = x_23; -x_5 = x_17; +x_2 = x_19; +x_5 = x_13; goto _start; } } +} else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_10, 1); -lean_inc(x_25); -lean_dec(x_10); -x_26 = lean_ctor_get(x_11, 0); -lean_inc(x_26); -x_27 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; -x_28 = lean_nat_dec_eq(x_27, x_26); -lean_dec(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_25); -return x_29; +return x_10; +} } else { -lean_object* x_30; lean_object* x_31; -lean_dec(x_11); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_2, x_30); +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_10); +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) +{ +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_24; +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_2 = x_31; -x_5 = x_25; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; +x_27 = lean_nat_dec_eq(x_26, x_25); +lean_dec(x_25); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_21); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_add(x_2, x_29); +lean_dec(x_2); +x_2 = x_30; +x_5 = x_22; goto _start; } } } +else +{ +lean_object* x_32; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_22); +return x_32; +} +} } } } @@ -6108,7 +6134,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -6117,6 +6143,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -6126,18 +6155,20 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__16(x_2, x_21, x_4, x_8); -return x_22; +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__16(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -6411,7 +6442,7 @@ 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +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; uint8_t x_29; lean_object* x_30; x_18 = lean_ctor_get(x_2, 0); x_19 = lean_ctor_get(x_2, 1); x_20 = lean_ctor_get(x_2, 2); @@ -6420,6 +6451,9 @@ x_22 = lean_ctor_get(x_2, 4); x_23 = lean_ctor_get(x_2, 5); x_24 = lean_ctor_get(x_2, 7); x_25 = lean_ctor_get(x_2, 8); +x_26 = lean_ctor_get(x_2, 9); +x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -6429,31 +6463,33 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_2); -x_26 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_19); -lean_ctor_set(x_26, 2, x_20); -lean_ctor_set(x_26, 3, x_21); -lean_ctor_set(x_26, 4, x_22); -lean_ctor_set(x_26, 5, x_23); -lean_ctor_set(x_26, 6, x_13); -lean_ctor_set(x_26, 7, x_24); -lean_ctor_set(x_26, 8, x_25); -x_27 = 0; -x_28 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__3(x_5, x_27, x_26, x_3, x_12); +x_28 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_28, 0, x_18); +lean_ctor_set(x_28, 1, x_19); +lean_ctor_set(x_28, 2, x_20); +lean_ctor_set(x_28, 3, x_21); +lean_ctor_set(x_28, 4, x_22); +lean_ctor_set(x_28, 5, x_23); +lean_ctor_set(x_28, 6, x_13); +lean_ctor_set(x_28, 7, x_24); +lean_ctor_set(x_28, 8, x_25); +lean_ctor_set(x_28, 9, x_26); +lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_27); +x_29 = 0; +x_30 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__3(x_5, x_29, x_28, x_3, x_12); lean_dec(x_3); -return x_28; +return x_30; } } } else { -lean_object* x_29; lean_object* x_30; -x_29 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__3; -x_30 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabExport___spec__2(x_1, x_29, x_2, x_3, x_4); +lean_object* x_31; lean_object* x_32; +x_31 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__3; +x_32 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabExport___spec__2(x_1, x_31, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); -return x_30; +return x_32; } } } @@ -7079,7 +7115,7 @@ return x_21; } else { -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_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; uint8_t x_31; lean_object* x_32; lean_object* x_33; x_22 = lean_ctor_get(x_4, 0); x_23 = lean_ctor_get(x_4, 1); x_24 = lean_ctor_get(x_4, 2); @@ -7088,6 +7124,9 @@ x_26 = lean_ctor_get(x_4, 4); x_27 = lean_ctor_get(x_4, 5); x_28 = lean_ctor_get(x_4, 7); x_29 = lean_ctor_get(x_4, 8); +x_30 = lean_ctor_get(x_4, 9); +x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -7097,18 +7136,20 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_4); -x_30 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_23); -lean_ctor_set(x_30, 2, x_24); -lean_ctor_set(x_30, 3, x_25); -lean_ctor_set(x_30, 4, x_26); -lean_ctor_set(x_30, 5, x_27); -lean_ctor_set(x_30, 6, x_18); -lean_ctor_set(x_30, 7, x_28); -lean_ctor_set(x_30, 8, x_29); -x_31 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__7(x_8, x_3, x_30, x_5, x_17); -return x_31; +x_32 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_32, 2, x_24); +lean_ctor_set(x_32, 3, x_25); +lean_ctor_set(x_32, 4, x_26); +lean_ctor_set(x_32, 5, x_27); +lean_ctor_set(x_32, 6, x_18); +lean_ctor_set(x_32, 7, x_28); +lean_ctor_set(x_32, 8, x_29); +lean_ctor_set(x_32, 9, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*10, x_31); +x_33 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__7(x_8, x_3, x_32, x_5, x_17); +return x_33; } } else @@ -7123,45 +7164,48 @@ return x_9; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -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_34 = lean_ctor_get(x_32, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_9, 0); +x_35 = lean_ctor_get(x_9, 1); +lean_inc(x_35); lean_inc(x_34); -lean_dec(x_32); +lean_dec(x_9); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); lean_inc(x_8); -x_35 = l_Lean_Environment_contains(x_34, x_8); -if (x_35 == 0) +x_37 = l_Lean_Environment_contains(x_36, x_8); +if (x_37 == 0) { -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; -x_36 = l_Lean_Elab_Command_getRef(x_4, x_5, x_33); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_replaceRef(x_2, x_37); -lean_dec(x_37); -lean_dec(x_2); -x_40 = lean_ctor_get(x_4, 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; lean_object* x_46; lean_object* x_47; lean_object* 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; +x_38 = l_Lean_Elab_Command_getRef(x_4, x_5, x_35); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_4, 1); -lean_inc(x_41); -x_42 = lean_ctor_get(x_4, 2); +lean_dec(x_38); +x_41 = l_Lean_replaceRef(x_2, x_39); +lean_dec(x_39); +lean_dec(x_2); +x_42 = lean_ctor_get(x_4, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_4, 3); +x_43 = lean_ctor_get(x_4, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_4, 4); +x_44 = lean_ctor_get(x_4, 2); lean_inc(x_44); -x_45 = lean_ctor_get(x_4, 5); +x_45 = lean_ctor_get(x_4, 3); lean_inc(x_45); -x_46 = lean_ctor_get(x_4, 7); +x_46 = lean_ctor_get(x_4, 4); lean_inc(x_46); -x_47 = lean_ctor_get(x_4, 8); +x_47 = lean_ctor_get(x_4, 5); lean_inc(x_47); +x_48 = lean_ctor_get(x_4, 7); +lean_inc(x_48); +x_49 = lean_ctor_get(x_4, 8); +lean_inc(x_49); +x_50 = lean_ctor_get(x_4, 9); +lean_inc(x_50); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -7172,39 +7216,42 @@ if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 6); lean_ctor_release(x_4, 7); lean_ctor_release(x_4, 8); - x_48 = x_4; + lean_ctor_release(x_4, 9); + x_52 = x_4; } else { lean_dec_ref(x_4); - x_48 = lean_box(0); + x_52 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 9, 0); +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 10, 1); } else { - x_49 = x_48; + x_53 = x_52; } -lean_ctor_set(x_49, 0, x_40); -lean_ctor_set(x_49, 1, x_41); -lean_ctor_set(x_49, 2, x_42); -lean_ctor_set(x_49, 3, x_43); -lean_ctor_set(x_49, 4, x_44); -lean_ctor_set(x_49, 5, x_45); -lean_ctor_set(x_49, 6, x_39); -lean_ctor_set(x_49, 7, x_46); -lean_ctor_set(x_49, 8, x_47); -x_50 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__7(x_8, x_3, x_49, x_5, x_38); -return x_50; +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_44); +lean_ctor_set(x_53, 3, x_45); +lean_ctor_set(x_53, 4, x_46); +lean_ctor_set(x_53, 5, x_47); +lean_ctor_set(x_53, 6, x_41); +lean_ctor_set(x_53, 7, x_48); +lean_ctor_set(x_53, 8, x_49); +lean_ctor_set(x_53, 9, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*10, x_51); +x_54 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__7(x_8, x_3, x_53, x_5, x_40); +return x_54; } else { -lean_object* x_51; +lean_object* x_55; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_8); -lean_ctor_set(x_51, 1, x_33); -return x_51; +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_8); +lean_ctor_set(x_55, 1, x_35); +return x_55; } } } @@ -7259,66 +7306,153 @@ goto _start; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_dec(x_14); -x_21 = lean_array_push(x_12, x_19); -lean_ctor_set(x_3, 0, x_21); +uint8_t x_19; +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +x_22 = l_Lean_Exception_isInterrupt(x_20); +if (x_22 == 0) +{ +lean_object* x_23; +lean_free_object(x_14); +x_23 = lean_array_push(x_12, x_20); +lean_ctor_set(x_3, 0, x_23); x_2 = x_10; -x_7 = x_20; +x_7 = x_21; goto _start; } +else +{ +lean_free_object(x_3); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_14; +} } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_3, 0); -x_24 = lean_ctor_get(x_3, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_14, 0); +x_26 = lean_ctor_get(x_14, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_14); +x_27 = l_Lean_Exception_isInterrupt(x_25); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_array_push(x_12, x_25); +lean_ctor_set(x_3, 0, x_28); +x_2 = x_10; +x_7 = x_26; +goto _start; +} +else +{ +lean_object* x_30; +lean_free_object(x_3); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_26); +return x_30; +} +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_3, 0); +x_32 = lean_ctor_get(x_3, 1); +lean_inc(x_32); +lean_inc(x_31); lean_dec(x_3); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_25 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__6(x_9, x_1, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_25) == 0) +x_33 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__6(x_9, x_1, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -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_array_push(x_24, x_26); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_23); -lean_ctor_set(x_29, 1, x_28); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_array_push(x_32, x_34); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_36); x_2 = x_10; -x_3 = x_29; -x_7 = x_27; +x_3 = x_37; +x_7 = x_35; goto _start; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_25, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_dec(x_25); -x_33 = lean_array_push(x_23, x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_24); +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_39 = lean_ctor_get(x_33, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_41 = x_33; +} else { + lean_dec_ref(x_33); + x_41 = lean_box(0); +} +x_42 = l_Lean_Exception_isInterrupt(x_39); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +x_43 = lean_array_push(x_31, x_39); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_32); x_2 = x_10; -x_3 = x_34; -x_7 = x_32; +x_3 = x_44; +x_7 = x_40; goto _start; } +else +{ +lean_object* x_46; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_41)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_41; +} +lean_ctor_set(x_46, 0, x_39); +lean_ctor_set(x_46, 1, x_40); +return x_46; +} +} } } } @@ -7888,7 +8022,7 @@ return x_33; } 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; lean_object* x_42; lean_object* x_43; +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; uint8_t x_43; lean_object* x_44; lean_object* x_45; x_34 = lean_ctor_get(x_5, 0); x_35 = lean_ctor_get(x_5, 1); x_36 = lean_ctor_get(x_5, 2); @@ -7897,6 +8031,9 @@ x_38 = lean_ctor_get(x_5, 4); x_39 = lean_ctor_get(x_5, 5); x_40 = lean_ctor_get(x_5, 7); x_41 = lean_ctor_get(x_5, 8); +x_42 = lean_ctor_get(x_5, 9); +x_43 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); @@ -7906,49 +8043,51 @@ lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_dec(x_5); -x_42 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_42, 0, x_34); -lean_ctor_set(x_42, 1, x_35); -lean_ctor_set(x_42, 2, x_36); -lean_ctor_set(x_42, 3, x_37); -lean_ctor_set(x_42, 4, x_38); -lean_ctor_set(x_42, 5, x_39); -lean_ctor_set(x_42, 6, x_30); -lean_ctor_set(x_42, 7, x_40); -lean_ctor_set(x_42, 8, x_41); -x_43 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__15(x_26, x_4, x_42, x_6, x_29); -lean_dec(x_42); -return x_43; +x_44 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_44, 0, x_34); +lean_ctor_set(x_44, 1, x_35); +lean_ctor_set(x_44, 2, x_36); +lean_ctor_set(x_44, 3, x_37); +lean_ctor_set(x_44, 4, x_38); +lean_ctor_set(x_44, 5, x_39); +lean_ctor_set(x_44, 6, x_30); +lean_ctor_set(x_44, 7, x_40); +lean_ctor_set(x_44, 8, x_41); +lean_ctor_set(x_44, 9, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*10, x_43); +x_45 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__15(x_26, x_4, x_44, x_6, x_29); +lean_dec(x_44); +return x_45; } } else { -lean_object* x_44; uint8_t x_45; +lean_object* x_46; uint8_t x_47; lean_dec(x_5); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_nat_dec_lt(x_44, x_8); +x_46 = lean_unsigned_to_nat(0u); +x_47 = lean_nat_dec_lt(x_46, x_8); lean_dec(x_8); -if (x_45 == 0) +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_1); -x_46 = l_Lean_instInhabitedName; -x_47 = l___private_Init_GetElem_0__outOfBounds___rarg(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_7); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_array_fget(x_1, x_44); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_dec(x_1); +x_48 = l_Lean_instInhabitedName; +x_49 = l___private_Init_GetElem_0__outOfBounds___rarg(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_7); return x_50; } +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_array_fget(x_1, x_46); +lean_dec(x_1); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_7); +return x_52; +} } } } @@ -8002,7 +8141,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; 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; uint8_t x_16; +lean_object* x_7; lean_object* x_8; x_7 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2; lean_inc(x_5); lean_inc(x_4); @@ -8010,6 +8149,9 @@ lean_inc(x_3); lean_inc(x_1); lean_inc(x_2); x_8 = l_List_forIn_loop___at_Lean_Elab_Command_elabExport___spec__17(x_2, x_1, x_7, x_3, x_4, x_5, x_6); +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; lean_object* x_15; uint8_t x_16; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); @@ -8046,19 +8188,19 @@ x_19 = lean_unsigned_to_nat(1u); x_20 = lean_nat_dec_eq(x_13, x_19); if (x_20 == 0) { -uint8_t x_63; -x_63 = 0; -x_21 = x_63; -goto block_62; +uint8_t x_65; +x_65 = 0; +x_21 = x_65; +goto block_64; } else { -uint8_t x_64; -x_64 = 1; -x_21 = x_64; -goto block_62; +uint8_t x_66; +x_66 = 1; +x_21 = x_66; +goto block_64; } -block_62: +block_64: { lean_object* x_22; x_22 = l_Lean_Elab_Command_getRef(x_4, x_5, x_10); @@ -8104,7 +8246,7 @@ return x_33; } 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; 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_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; uint8_t 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_34 = lean_ctor_get(x_4, 0); x_35 = lean_ctor_get(x_4, 1); x_36 = lean_ctor_get(x_4, 2); @@ -8113,6 +8255,9 @@ x_38 = lean_ctor_get(x_4, 4); x_39 = lean_ctor_get(x_4, 5); x_40 = lean_ctor_get(x_4, 7); x_41 = lean_ctor_get(x_4, 8); +x_42 = lean_ctor_get(x_4, 9); +x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); @@ -8122,110 +8267,140 @@ lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_dec(x_4); -x_42 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_42, 0, x_34); -lean_ctor_set(x_42, 1, x_35); -lean_ctor_set(x_42, 2, x_36); -lean_ctor_set(x_42, 3, x_37); -lean_ctor_set(x_42, 4, x_38); -lean_ctor_set(x_42, 5, x_39); -lean_ctor_set(x_42, 6, x_25); -lean_ctor_set(x_42, 7, x_40); -lean_ctor_set(x_42, 8, x_41); -x_43 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__5___closed__5; -x_44 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__18(x_43, x_11, x_3, x_42, x_5, x_24); -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; +x_44 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_44, 0, x_34); +lean_ctor_set(x_44, 1, x_35); +lean_ctor_set(x_44, 2, x_36); +lean_ctor_set(x_44, 3, x_37); +lean_ctor_set(x_44, 4, x_38); +lean_ctor_set(x_44, 5, x_39); +lean_ctor_set(x_44, 6, x_25); +lean_ctor_set(x_44, 7, x_40); +lean_ctor_set(x_44, 8, x_41); +lean_ctor_set(x_44, 9, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*10, x_43); +x_45 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__5___closed__5; +x_46 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__18(x_45, x_11, x_3, x_44, x_5, x_24); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; } else { - lean_dec_ref(x_44); - x_47 = lean_box(0); + lean_dec_ref(x_46); + x_49 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_50 = x_49; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { -uint8_t x_49; +uint8_t x_51; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_49 = !lean_is_exclusive(x_22); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_22, 0); -lean_dec(x_50); -x_51 = lean_nat_dec_lt(x_14, x_13); -lean_dec(x_13); +x_51 = !lean_is_exclusive(x_22); if (x_51 == 0) { -lean_object* x_52; lean_object* x_53; -lean_dec(x_11); -x_52 = l_Lean_instInhabitedException; -x_53 = l___private_Init_GetElem_0__outOfBounds___rarg(x_52); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 0, x_53); -return x_22; -} -else -{ -lean_object* x_54; -x_54 = lean_array_fget(x_11, x_14); -lean_dec(x_11); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 0, x_54); -return x_22; -} -} -else -{ -lean_object* x_55; uint8_t x_56; -x_55 = lean_ctor_get(x_22, 1); -lean_inc(x_55); -lean_dec(x_22); -x_56 = lean_nat_dec_lt(x_14, x_13); +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_22, 0); +lean_dec(x_52); +x_53 = lean_nat_dec_lt(x_14, x_13); lean_dec(x_13); -if (x_56 == 0) +if (x_53 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_object* x_54; lean_object* x_55; lean_dec(x_11); -x_57 = l_Lean_instInhabitedException; -x_58 = l___private_Init_GetElem_0__outOfBounds___rarg(x_57); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_55); -return x_59; +x_54 = l_Lean_instInhabitedException; +x_55 = l___private_Init_GetElem_0__outOfBounds___rarg(x_54); +lean_ctor_set_tag(x_22, 1); +lean_ctor_set(x_22, 0, x_55); +return x_22; } else { -lean_object* x_60; lean_object* x_61; -x_60 = lean_array_fget(x_11, x_14); +lean_object* x_56; +x_56 = lean_array_fget(x_11, x_14); lean_dec(x_11); +lean_ctor_set_tag(x_22, 1); +lean_ctor_set(x_22, 0, x_56); +return x_22; +} +} +else +{ +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_22, 1); +lean_inc(x_57); +lean_dec(x_22); +x_58 = lean_nat_dec_lt(x_14, x_13); +lean_dec(x_13); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_11); +x_59 = l_Lean_instInhabitedException; +x_60 = l___private_Init_GetElem_0__outOfBounds___rarg(x_59); x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); +lean_ctor_set(x_61, 1, x_57); return x_61; } +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_array_fget(x_11, x_14); +lean_dec(x_11); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_57); +return x_63; } } } } } } +else +{ +uint8_t x_67; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_67 = !lean_is_exclusive(x_8); +if (x_67 == 0) +{ +return x_8; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_8, 0); +x_69 = lean_ctor_get(x_8, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_8); +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; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_resolveNameUsingNamespaces___at_Lean_Elab_Command_elabExport___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -9633,7 +9808,7 @@ return x_13; } else { -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_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; uint8_t x_23; lean_object* x_24; lean_object* x_25; x_14 = lean_ctor_get(x_4, 0); x_15 = lean_ctor_get(x_4, 1); x_16 = lean_ctor_get(x_4, 2); @@ -9642,6 +9817,9 @@ x_18 = lean_ctor_get(x_4, 4); x_19 = lean_ctor_get(x_4, 5); x_20 = lean_ctor_get(x_4, 7); x_21 = lean_ctor_get(x_4, 8); +x_22 = lean_ctor_get(x_4, 9); +x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -9651,21 +9829,23 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_4); -x_22 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_22, 0, x_14); -lean_ctor_set(x_22, 1, x_15); -lean_ctor_set(x_22, 2, x_16); -lean_ctor_set(x_22, 3, x_17); -lean_ctor_set(x_22, 4, x_18); -lean_ctor_set(x_22, 5, x_19); -lean_ctor_set(x_22, 6, x_10); -lean_ctor_set(x_22, 7, x_20); -lean_ctor_set(x_22, 8, x_21); -x_23 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__6(x_2, x_3, x_22, x_5, x_9); +x_24 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_24, 0, x_14); +lean_ctor_set(x_24, 1, x_15); +lean_ctor_set(x_24, 2, x_16); +lean_ctor_set(x_24, 3, x_17); +lean_ctor_set(x_24, 4, x_18); +lean_ctor_set(x_24, 5, x_19); +lean_ctor_set(x_24, 6, x_10); +lean_ctor_set(x_24, 7, x_20); +lean_ctor_set(x_24, 8, x_21); +lean_ctor_set(x_24, 9, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*10, x_23); +x_25 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__6(x_2, x_3, x_24, x_5, x_9); lean_dec(x_5); -lean_dec(x_22); +lean_dec(x_24); lean_dec(x_3); -return x_23; +return x_25; } } } @@ -9967,7 +10147,7 @@ return x_18; } else { -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; uint8_t x_28; lean_object* x_29; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; x_19 = lean_ctor_get(x_3, 0); x_20 = lean_ctor_get(x_3, 1); x_21 = lean_ctor_get(x_3, 2); @@ -9976,6 +10156,9 @@ x_23 = lean_ctor_get(x_3, 4); x_24 = lean_ctor_get(x_3, 5); x_25 = lean_ctor_get(x_3, 7); x_26 = lean_ctor_get(x_3, 8); +x_27 = lean_ctor_get(x_3, 9); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -9985,31 +10168,33 @@ lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_dec(x_3); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_20); -lean_ctor_set(x_27, 2, x_21); -lean_ctor_set(x_27, 3, x_22); -lean_ctor_set(x_27, 4, x_23); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_14); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set(x_27, 8, x_26); -x_28 = 0; -x_29 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabOpen___spec__7(x_6, x_28, x_2, x_27, x_4, x_13); +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_24); +lean_ctor_set(x_29, 6, x_14); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_28); +x_30 = 0; +x_31 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabOpen___spec__7(x_6, x_30, x_2, x_29, x_4, x_13); lean_dec(x_4); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_2); -return x_29; +return x_31; } } } else { -lean_object* x_30; lean_object* x_31; -x_30 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__3; -x_31 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_30, x_2, x_3, x_4, x_5); -return x_31; +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__3; +x_33 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_32, x_2, x_3, x_4, x_5); +return x_33; } } } @@ -15334,7 +15519,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -15343,6 +15528,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -15352,18 +15540,20 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18(x_2, x_21, x_4, x_8); -return x_22; +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -21171,9 +21361,15 @@ _start: if (lean_obj_tag(x_6) == 0) { lean_object* x_15; +lean_dec(x_13); lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_2); +lean_dec(x_1); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_7); lean_ctor_set(x_15, 1, x_14); @@ -21356,11 +21552,6 @@ lean_object* x_32; lean_object* x_33; lean_free_object(x_27); x_32 = lean_box(0); x_33 = l_Lean_Elab_Command_elabCheckCore___lambda__2(x_25, x_29, x_3, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_30); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); return x_33; } else @@ -21374,6 +21565,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); x_34 = lean_box(0); lean_ctor_set(x_27, 0, x_34); return x_27; @@ -21393,11 +21585,6 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; x_38 = lean_box(0); x_39 = l_Lean_Elab_Command_elabCheckCore___lambda__2(x_25, x_35, x_3, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); return x_39; } else @@ -21411,6 +21598,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); x_40 = lean_box(0); x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); @@ -21429,6 +21617,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); x_42 = !lean_is_exclusive(x_27); if (x_42 == 0) { @@ -21459,6 +21648,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); x_46 = !lean_is_exclusive(x_18); if (x_46 == 0) { @@ -21488,6 +21678,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); x_50 = !lean_is_exclusive(x_14); if (x_50 == 0) { @@ -21512,146 +21703,217 @@ return x_53; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___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) { _start: { -lean_object* x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_22; lean_inc(x_11); lean_inc(x_10); +lean_inc(x_3); lean_inc(x_2); -lean_inc(x_1); -x_13 = l_Lean_Elab_realizeGlobalConstWithInfos(x_1, x_2, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +x_22 = l_Lean_Elab_realizeGlobalConstWithInfos(x_2, x_3, x_10, x_11, x_12); +if (lean_obj_tag(x_22) == 0) { -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; -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_box(0); -lean_inc(x_2); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_16); +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (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; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +x_26 = lean_box(0); +lean_inc(x_3); +lean_ctor_set(x_22, 1, x_26); +lean_ctor_set(x_22, 0, x_3); +lean_inc(x_11); lean_inc(x_10); -lean_inc(x_1); -x_18 = l_List_forIn_loop___at_Lean_Elab_Command_elabCheckCore___spec__1(x_3, x_1, x_4, x_1, x_2, x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -lean_dec(x_1); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 0) +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_2); +x_27 = l_List_forIn_loop___at_Lean_Elab_Command_elabCheckCore___spec__1(x_4, x_2, x_5, x_2, x_3, x_24, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +lean_dec(x_2); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_apply_8(x_5, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_21); -return x_22; +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_apply_8(x_1, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +return x_31; } else { -uint8_t x_23; +uint8_t x_32; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_23 = !lean_is_exclusive(x_18); -if (x_23 == 0) +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_18, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_20, 0); -lean_inc(x_25); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_25); +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_27, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_34); +return x_27; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_dec(x_27); +x_36 = lean_ctor_get(x_29, 0); +lean_inc(x_36); +lean_dec(x_29); +x_37 = lean_alloc_ctor(0, 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_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_38 = lean_ctor_get(x_22, 0); +x_39 = lean_ctor_get(x_22, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_22); +x_40 = lean_box(0); +lean_inc(x_3); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_3); +lean_ctor_set(x_41, 1, x_40); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_2); +x_42 = l_List_forIn_loop___at_Lean_Elab_Command_elabCheckCore___spec__1(x_4, x_2, x_5, x_2, x_3, x_38, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_39); +lean_dec(x_2); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_dec(x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_apply_8(x_1, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_48 = x_42; +} else { + lean_dec_ref(x_42); + x_48 = lean_box(0); +} +x_49 = lean_ctor_get(x_44, 0); +lean_inc(x_49); +lean_dec(x_44); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_51 = lean_ctor_get(x_22, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_22, 1); +lean_inc(x_52); +lean_dec(x_22); +x_13 = x_51; +x_14 = x_52; +goto block_21; +} +block_21: +{ +uint8_t x_15; +x_15 = l_Lean_Exception_isInterrupt(x_13); +if (x_15 == 0) +{ +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +x_17 = lean_box(0); +x_18 = lean_apply_8(x_1, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_14); return x_18; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_18, 1); -lean_inc(x_26); -lean_dec(x_18); -x_27 = lean_ctor_get(x_20, 0); -lean_inc(x_27); -lean_dec(x_20); -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_2); +lean_object* x_19; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_13); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_13, 0); -x_31 = lean_ctor_get(x_13, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -lean_free_object(x_13); -lean_dec(x_30); -x_33 = lean_box(0); -x_34 = lean_apply_8(x_5, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_31); -return x_34; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +return x_19; +} } else { +lean_object* x_20; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -return x_13; -} -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_13, 0); -x_36 = lean_ctor_get(x_13, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_13); -x_37 = l_Lean_Exception_isRuntime(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_35); -x_38 = lean_box(0); -x_39 = lean_apply_8(x_5, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_36); -return x_39; -} -else -{ -lean_object* x_40; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_36); -return x_40; -} +lean_dec(x_1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_14); +return x_20; } } } @@ -21712,11 +21974,11 @@ lean_ctor_set(x_22, 0, x_15); lean_ctor_set(x_22, 1, x_4); x_23 = lean_box(0); x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckCore___lambda__4___boxed), 12, 5); -lean_closure_set(x_24, 0, x_1); -lean_closure_set(x_24, 1, x_23); -lean_closure_set(x_24, 2, x_3); -lean_closure_set(x_24, 3, x_22); -lean_closure_set(x_24, 4, x_14); +lean_closure_set(x_24, 0, x_14); +lean_closure_set(x_24, 1, x_1); +lean_closure_set(x_24, 2, x_23); +lean_closure_set(x_24, 3, x_3); +lean_closure_set(x_24, 4, x_22); x_25 = l_Lean_Elab_Command_elabCheckCore___lambda__5___closed__2; x_26 = l_Lean_Elab_Term_withDeclName___rarg(x_25, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_26; @@ -21851,14 +22113,8 @@ _start: { lean_object* x_15; x_15 = l_List_forIn_loop___at_Lean_Elab_Command_elabCheckCore___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); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); return x_15; } } @@ -21877,13 +22133,7 @@ _start: { lean_object* x_12; x_12 = l_Lean_Elab_Command_elabCheckCore___lambda__2(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_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); return x_12; } } @@ -21894,7 +22144,6 @@ uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = l_Lean_Elab_Command_elabCheckCore___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_3); return x_13; } } @@ -21903,8 +22152,7 @@ _start: { lean_object* x_13; x_13 = l_Lean_Elab_Command_elabCheckCore___lambda__4(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); -lean_dec(x_3); +lean_dec(x_5); return x_13; } } @@ -22210,11 +22458,6 @@ lean_dec(x_41); x_44 = l_Lean_MessageData_ofExpr(x_42); x_45 = 0; x_46 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_3, x_44, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_43); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); return x_46; } else @@ -22226,6 +22469,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); x_47 = !lean_is_exclusive(x_41); if (x_47 == 0) { @@ -22303,11 +22547,6 @@ lean_dec(x_68); x_71 = l_Lean_MessageData_ofExpr(x_69); x_72 = 0; x_73 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_3, x_71, x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_70); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); return x_73; } else @@ -22319,6 +22558,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); x_74 = lean_ctor_get(x_68, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_68, 1); @@ -22344,7 +22584,7 @@ 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; 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; 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; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +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; uint8_t x_89; lean_object* x_90; uint8_t 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; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; x_78 = lean_ctor_get(x_8, 0); x_79 = lean_ctor_get(x_8, 1); x_80 = lean_ctor_get(x_8, 2); @@ -22356,7 +22596,10 @@ x_85 = lean_ctor_get(x_8, 7); x_86 = lean_ctor_get(x_8, 8); x_87 = lean_ctor_get(x_8, 9); x_88 = lean_ctor_get(x_8, 10); -x_89 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_89 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_90 = lean_ctor_get(x_8, 11); +x_91 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_90); lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); @@ -22369,138 +22612,136 @@ lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_dec(x_8); -x_90 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; -x_91 = l_Lean_KVMap_setBool(x_80, x_90, x_16); -x_92 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_92, 0, x_78); -lean_ctor_set(x_92, 1, x_79); -lean_ctor_set(x_92, 2, x_91); -lean_ctor_set(x_92, 3, x_81); -lean_ctor_set(x_92, 4, x_82); -lean_ctor_set(x_92, 5, x_83); -lean_ctor_set(x_92, 6, x_84); -lean_ctor_set(x_92, 7, x_85); -lean_ctor_set(x_92, 8, x_86); -lean_ctor_set(x_92, 9, x_87); -lean_ctor_set(x_92, 10, x_88); -lean_ctor_set_uint8(x_92, sizeof(void*)*11, x_89); -x_93 = lean_ctor_get(x_6, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_6, 1); -lean_inc(x_94); -x_95 = lean_ctor_get(x_6, 2); +x_92 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; +x_93 = l_Lean_KVMap_setBool(x_80, x_92, x_16); +x_94 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_94, 0, x_78); +lean_ctor_set(x_94, 1, x_79); +lean_ctor_set(x_94, 2, x_93); +lean_ctor_set(x_94, 3, x_81); +lean_ctor_set(x_94, 4, x_82); +lean_ctor_set(x_94, 5, x_83); +lean_ctor_set(x_94, 6, x_84); +lean_ctor_set(x_94, 7, x_85); +lean_ctor_set(x_94, 8, x_86); +lean_ctor_set(x_94, 9, x_87); +lean_ctor_set(x_94, 10, x_88); +lean_ctor_set(x_94, 11, x_90); +lean_ctor_set_uint8(x_94, sizeof(void*)*12, x_89); +lean_ctor_set_uint8(x_94, sizeof(void*)*12 + 1, x_91); +x_95 = lean_ctor_get(x_6, 0); lean_inc(x_95); -x_96 = lean_ctor_get(x_6, 3); +x_96 = lean_ctor_get(x_6, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_6, 4); +x_97 = lean_ctor_get(x_6, 2); lean_inc(x_97); -x_98 = lean_ctor_get(x_6, 5); +x_98 = lean_ctor_get(x_6, 3); lean_inc(x_98); -x_99 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_100 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_101 = lean_ctor_get_uint8(x_93, 0); -x_102 = lean_ctor_get_uint8(x_93, 1); -x_103 = lean_ctor_get_uint8(x_93, 2); -x_104 = lean_ctor_get_uint8(x_93, 3); -x_105 = lean_ctor_get_uint8(x_93, 4); -x_106 = lean_ctor_get_uint8(x_93, 5); -x_107 = lean_ctor_get_uint8(x_93, 6); -x_108 = lean_ctor_get_uint8(x_93, 7); -x_109 = lean_ctor_get_uint8(x_93, 8); -x_110 = lean_ctor_get_uint8(x_93, 10); -x_111 = lean_ctor_get_uint8(x_93, 11); -x_112 = lean_ctor_get_uint8(x_93, 12); -if (lean_is_exclusive(x_93)) { - x_113 = x_93; +x_99 = lean_ctor_get(x_6, 4); +lean_inc(x_99); +x_100 = lean_ctor_get(x_6, 5); +lean_inc(x_100); +x_101 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_102 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_103 = lean_ctor_get_uint8(x_95, 0); +x_104 = lean_ctor_get_uint8(x_95, 1); +x_105 = lean_ctor_get_uint8(x_95, 2); +x_106 = lean_ctor_get_uint8(x_95, 3); +x_107 = lean_ctor_get_uint8(x_95, 4); +x_108 = lean_ctor_get_uint8(x_95, 5); +x_109 = lean_ctor_get_uint8(x_95, 6); +x_110 = lean_ctor_get_uint8(x_95, 7); +x_111 = lean_ctor_get_uint8(x_95, 8); +x_112 = lean_ctor_get_uint8(x_95, 10); +x_113 = lean_ctor_get_uint8(x_95, 11); +x_114 = lean_ctor_get_uint8(x_95, 12); +if (lean_is_exclusive(x_95)) { + x_115 = x_95; } else { - lean_dec_ref(x_93); - x_113 = lean_box(0); + lean_dec_ref(x_95); + x_115 = lean_box(0); } -x_114 = 0; -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 0, 13); +x_116 = 0; +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(0, 0, 13); } else { - x_115 = x_113; + x_117 = x_115; } -lean_ctor_set_uint8(x_115, 0, x_101); -lean_ctor_set_uint8(x_115, 1, x_102); -lean_ctor_set_uint8(x_115, 2, x_103); -lean_ctor_set_uint8(x_115, 3, x_104); -lean_ctor_set_uint8(x_115, 4, x_105); -lean_ctor_set_uint8(x_115, 5, x_106); -lean_ctor_set_uint8(x_115, 6, x_107); -lean_ctor_set_uint8(x_115, 7, x_108); -lean_ctor_set_uint8(x_115, 8, x_109); -lean_ctor_set_uint8(x_115, 9, x_114); -lean_ctor_set_uint8(x_115, 10, x_110); -lean_ctor_set_uint8(x_115, 11, x_111); -lean_ctor_set_uint8(x_115, 12, x_112); -x_116 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_94); -lean_ctor_set(x_116, 2, x_95); -lean_ctor_set(x_116, 3, x_96); -lean_ctor_set(x_116, 4, x_97); -lean_ctor_set(x_116, 5, x_98); -lean_ctor_set_uint8(x_116, sizeof(void*)*6, x_99); -lean_ctor_set_uint8(x_116, sizeof(void*)*6 + 1, x_100); +lean_ctor_set_uint8(x_117, 0, x_103); +lean_ctor_set_uint8(x_117, 1, x_104); +lean_ctor_set_uint8(x_117, 2, x_105); +lean_ctor_set_uint8(x_117, 3, x_106); +lean_ctor_set_uint8(x_117, 4, x_107); +lean_ctor_set_uint8(x_117, 5, x_108); +lean_ctor_set_uint8(x_117, 6, x_109); +lean_ctor_set_uint8(x_117, 7, x_110); +lean_ctor_set_uint8(x_117, 8, x_111); +lean_ctor_set_uint8(x_117, 9, x_116); +lean_ctor_set_uint8(x_117, 10, x_112); +lean_ctor_set_uint8(x_117, 11, x_113); +lean_ctor_set_uint8(x_117, 12, x_114); +x_118 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_96); +lean_ctor_set(x_118, 2, x_97); +lean_ctor_set(x_118, 3, x_98); +lean_ctor_set(x_118, 4, x_99); +lean_ctor_set(x_118, 5, x_100); +lean_ctor_set_uint8(x_118, sizeof(void*)*6, x_101); +lean_ctor_set_uint8(x_118, sizeof(void*)*6 + 1, x_102); lean_inc(x_9); -lean_inc(x_92); +lean_inc(x_94); lean_inc(x_7); -x_117 = l_Lean_Meta_reduce(x_24, x_11, x_16, x_16, x_116, x_7, x_92, x_9, x_25); -if (lean_obj_tag(x_117) == 0) +x_119 = l_Lean_Meta_reduce(x_24, x_11, x_16, x_16, x_118, x_7, x_94, x_9, x_25); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -lean_dec(x_117); -x_120 = l_Lean_MessageData_ofExpr(x_118); -x_121 = 0; -x_122 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_3, x_120, x_121, x_4, x_5, x_6, x_7, x_92, x_9, x_119); +lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_122 = l_Lean_MessageData_ofExpr(x_120); +x_123 = 0; +x_124 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_3, x_122, x_123, x_4, x_5, x_6, x_7, x_94, x_9, x_121); +return x_124; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_94); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_122; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_92); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_123 = lean_ctor_get(x_117, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_117, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_125 = x_117; +lean_dec(x_3); +x_125 = lean_ctor_get(x_119, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_119, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_127 = x_119; } else { - lean_dec_ref(x_117); - x_125 = lean_box(0); + lean_dec_ref(x_119); + x_127 = lean_box(0); } -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); } else { - x_126 = x_125; + x_128 = x_127; } -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -return x_126; +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; } } } else { -uint8_t x_127; +uint8_t x_129; lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); @@ -22508,52 +22749,54 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_127 = !lean_is_exclusive(x_17); -if (x_127 == 0) +lean_dec(x_3); +x_129 = !lean_is_exclusive(x_17); +if (x_129 == 0) { return x_17; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_17, 0); -x_129 = lean_ctor_get(x_17, 1); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_17, 0); +x_131 = lean_ctor_get(x_17, 1); +lean_inc(x_131); +lean_inc(x_130); lean_dec(x_17); -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; +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } } else { -uint8_t x_131; +uint8_t x_133; 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_131 = !lean_is_exclusive(x_12); -if (x_131 == 0) +lean_dec(x_3); +x_133 = !lean_is_exclusive(x_12); +if (x_133 == 0) { return x_12; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_12, 0); -x_133 = lean_ctor_get(x_12, 1); -lean_inc(x_133); -lean_inc(x_132); +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_12, 0); +x_135 = lean_ctor_get(x_12, 1); +lean_inc(x_135); +lean_inc(x_134); lean_dec(x_12); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -return x_134; +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; } } } @@ -22581,7 +22824,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_box(0); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1___boxed), 10, 3); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1), 10, 3); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_11); lean_closure_set(x_12, 2, x_2); @@ -22709,15 +22952,6 @@ return x_31; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce___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: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabReduce___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; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce___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) { _start: { @@ -22892,7 +23126,7 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); -x_7 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_6); +x_7 = l_Lean_MessageLog_hasErrors(x_6); if (x_7 == 0) { uint8_t x_8; lean_object* x_9; @@ -22921,7 +23155,7 @@ lean_dec(x_3); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_14); +x_15 = l_Lean_MessageLog_hasErrors(x_14); if (x_15 == 0) { uint8_t x_16; lean_object* x_17; lean_object* x_18; @@ -23013,6 +23247,18 @@ return x_8; static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___closed__1() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15___closed__3; +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_Lean_Elab_Command_failIfSucceeds___closed__2() { +_start: +{ lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed), 4, 0); return x_1; @@ -23040,189 +23286,48 @@ lean_dec(x_9); x_12 = !lean_is_exclusive(x_10); if (x_12 == 0) { -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_47; lean_object* x_48; lean_object* x_77; +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_47; lean_object* x_48; lean_object* x_77; lean_object* x_78; lean_object* x_119; x_13 = lean_ctor_get(x_10, 1); lean_dec(x_13); -x_14 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15___closed__3; +x_14 = l_Lean_Elab_Command_failIfSucceeds___closed__1; lean_ctor_set(x_10, 1, x_14); x_15 = lean_st_ref_set(x_3, x_10, x_11); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l_Lean_Elab_Command_failIfSucceeds___closed__1; +x_17 = l_Lean_Elab_Command_failIfSucceeds___closed__2; lean_inc(x_3); lean_inc(x_2); -x_77 = lean_apply_3(x_1, x_2, x_3, x_16); -if (lean_obj_tag(x_77) == 0) +x_119 = lean_apply_3(x_1, x_2, x_3, x_16); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -x_79 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_78); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_unbox(x_80); -lean_dec(x_80); -x_18 = x_82; -x_19 = x_81; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_120); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_124 = lean_unbox(x_122); +lean_dec(x_122); +x_18 = x_124; +x_19 = x_123; goto block_46; } else { -lean_object* x_83; -x_83 = lean_ctor_get(x_77, 0); -lean_inc(x_83); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_77, 1); -lean_inc(x_84); -lean_dec(x_77); -lean_inc(x_3); -lean_inc(x_2); -x_85 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_83, x_2, x_3, x_84); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = 0; -x_18 = x_87; -x_19 = x_86; -goto block_46; -} -else -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_2); -x_88 = lean_ctor_get(x_85, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_85, 1); -lean_inc(x_89); -lean_dec(x_85); -x_47 = x_88; -x_48 = x_89; -goto block_76; -} -} -else -{ -lean_object* x_90; uint8_t x_91; -x_90 = lean_ctor_get(x_77, 1); -lean_inc(x_90); -lean_dec(x_77); -x_91 = !lean_is_exclusive(x_83); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_83, 0); -x_93 = lean_ctor_get(x_83, 1); -lean_dec(x_93); -x_94 = l_Lean_InternalExceptionId_getName(x_92, x_90); -lean_dec(x_92); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -lean_free_object(x_83); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = l_Lean_MessageData_ofName(x_95); -x_98 = 2; -lean_inc(x_3); -lean_inc(x_2); -x_99 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_97, x_98, x_2, x_3, x_96); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = 0; -x_18 = x_101; -x_19 = x_100; -goto block_46; -} -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_94, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_94, 1); -lean_inc(x_103); -lean_dec(x_94); -x_104 = lean_ctor_get(x_2, 6); -lean_inc(x_104); -lean_dec(x_2); -x_105 = lean_io_error_to_string(x_102); -x_106 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_106, 0, x_105); -x_107 = l_Lean_MessageData_ofFormat(x_106); -lean_ctor_set_tag(x_83, 0); -lean_ctor_set(x_83, 1, x_107); -lean_ctor_set(x_83, 0, x_104); -x_47 = x_83; -x_48 = x_103; -goto block_76; -} -} -else -{ -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_83, 0); -lean_inc(x_108); -lean_dec(x_83); -x_109 = l_Lean_InternalExceptionId_getName(x_108, x_90); -lean_dec(x_108); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = l_Lean_MessageData_ofName(x_110); -x_113 = 2; -lean_inc(x_3); -lean_inc(x_2); -x_114 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_112, x_113, x_2, x_3, x_111); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec(x_114); -x_116 = 0; -x_18 = x_116; -x_19 = x_115; -goto block_46; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_117 = lean_ctor_get(x_109, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_109, 1); -lean_inc(x_118); -lean_dec(x_109); -x_119 = lean_ctor_get(x_2, 6); -lean_inc(x_119); -lean_dec(x_2); -x_120 = lean_io_error_to_string(x_117); -x_121 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_121, 0, x_120); -x_122 = l_Lean_MessageData_ofFormat(x_121); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_119); -lean_ctor_set(x_123, 1, x_122); -x_47 = x_123; -x_48 = x_118; -goto block_76; -} -} -} +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_119, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_119, 1); +lean_inc(x_126); +lean_dec(x_119); +x_77 = x_125; +x_78 = x_126; +goto block_118; } block_46: { @@ -23238,8 +23343,8 @@ if (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; x_24 = lean_ctor_get(x_21, 1); -x_25 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_24); -x_26 = l_Lean_PersistentArray_append___rarg(x_8, x_25); +x_25 = l_Lean_MessageLog_errorsToWarnings(x_24); +x_26 = l_Lean_MessageLog_append(x_8, x_25); lean_ctor_set(x_21, 1, x_26); x_27 = lean_st_ref_set(x_3, x_21, x_22); x_28 = lean_ctor_get(x_27, 1); @@ -23269,8 +23374,8 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_21); -x_39 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_32); -x_40 = l_Lean_PersistentArray_append___rarg(x_8, x_39); +x_39 = l_Lean_MessageLog_errorsToWarnings(x_32); +x_40 = l_Lean_MessageLog_append(x_8, x_39); x_41 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_41, 0, x_31); lean_ctor_set(x_41, 1, x_40); @@ -23303,8 +23408,8 @@ if (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_50, 1); -x_54 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_53); -x_55 = l_Lean_PersistentArray_append___rarg(x_8, x_54); +x_54 = l_Lean_MessageLog_errorsToWarnings(x_53); +x_55 = l_Lean_MessageLog_append(x_8, x_54); lean_ctor_set(x_50, 1, x_55); x_56 = lean_st_ref_set(x_3, x_50, x_51); lean_dec(x_3); @@ -23350,8 +23455,8 @@ lean_inc(x_63); lean_inc(x_62); lean_inc(x_61); lean_dec(x_50); -x_69 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_62); -x_70 = l_Lean_PersistentArray_append___rarg(x_8, x_69); +x_69 = l_Lean_MessageLog_errorsToWarnings(x_62); +x_70 = l_Lean_MessageLog_append(x_8, x_69); x_71 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_71, 0, x_61); lean_ctor_set(x_71, 1, x_70); @@ -23384,306 +23489,477 @@ lean_ctor_set(x_75, 1, x_73); return x_75; } } +block_118: +{ +uint8_t x_79; +x_79 = l_Lean_Exception_isInterrupt(x_77); +if (x_79 == 0) +{ +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_80; +lean_inc(x_3); +lean_inc(x_2); +x_80 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_77, x_2, x_3, x_78); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; uint8_t x_82; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = 0; +x_18 = x_82; +x_19 = x_81; +goto block_46; } 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; uint8_t x_136; lean_object* x_137; lean_object* x_158; lean_object* x_159; lean_object* x_180; -x_124 = lean_ctor_get(x_10, 0); -x_125 = lean_ctor_get(x_10, 2); -x_126 = lean_ctor_get(x_10, 3); -x_127 = lean_ctor_get(x_10, 4); -x_128 = lean_ctor_get(x_10, 5); -x_129 = lean_ctor_get(x_10, 6); -x_130 = lean_ctor_get(x_10, 7); +lean_object* x_83; lean_object* x_84; +lean_dec(x_2); +x_83 = lean_ctor_get(x_80, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_80, 1); +lean_inc(x_84); +lean_dec(x_80); +x_47 = x_83; +x_48 = x_84; +goto block_76; +} +} +else +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_77); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_77, 0); +x_87 = lean_ctor_get(x_77, 1); +lean_dec(x_87); +x_88 = l_Lean_InternalExceptionId_getName(x_86, x_78); +lean_dec(x_86); +if (lean_obj_tag(x_88) == 0) +{ +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; +lean_free_object(x_77); +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 = l_Lean_MessageData_ofName(x_89); +x_92 = 2; +lean_inc(x_3); +lean_inc(x_2); +x_93 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_91, x_92, x_2, x_3, x_90); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = 0; +x_18 = x_95; +x_19 = x_94; +goto block_46; +} +else +{ +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_96 = lean_ctor_get(x_88, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_88, 1); +lean_inc(x_97); +lean_dec(x_88); +x_98 = lean_ctor_get(x_2, 6); +lean_inc(x_98); +lean_dec(x_2); +x_99 = lean_io_error_to_string(x_96); +x_100 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_100, 0, x_99); +x_101 = l_Lean_MessageData_ofFormat(x_100); +lean_ctor_set_tag(x_77, 0); +lean_ctor_set(x_77, 1, x_101); +lean_ctor_set(x_77, 0, x_98); +x_47 = x_77; +x_48 = x_97; +goto block_76; +} +} +else +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_77, 0); +lean_inc(x_102); +lean_dec(x_77); +x_103 = l_Lean_InternalExceptionId_getName(x_102, x_78); +lean_dec(x_102); +if (lean_obj_tag(x_103) == 0) +{ +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; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l_Lean_MessageData_ofName(x_104); +x_107 = 2; +lean_inc(x_3); +lean_inc(x_2); +x_108 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_106, x_107, x_2, x_3, x_105); +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec(x_108); +x_110 = 0; +x_18 = x_110; +x_19 = x_109; +goto block_46; +} +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; lean_object* x_117; +x_111 = lean_ctor_get(x_103, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_103, 1); +lean_inc(x_112); +lean_dec(x_103); +x_113 = lean_ctor_get(x_2, 6); +lean_inc(x_113); +lean_dec(x_2); +x_114 = lean_io_error_to_string(x_111); +x_115 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_115, 0, x_114); +x_116 = l_Lean_MessageData_ofFormat(x_115); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_113); +lean_ctor_set(x_117, 1, x_116); +x_47 = x_117; +x_48 = x_112; +goto block_76; +} +} +} +} +else +{ +lean_dec(x_2); +x_47 = x_77; +x_48 = x_78; +goto block_76; +} +} +} +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_object* x_134; 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_161; lean_object* x_162; lean_object* x_183; lean_object* x_184; lean_object* x_209; +x_127 = lean_ctor_get(x_10, 0); +x_128 = lean_ctor_get(x_10, 2); +x_129 = lean_ctor_get(x_10, 3); +x_130 = lean_ctor_get(x_10, 4); +x_131 = lean_ctor_get(x_10, 5); +x_132 = lean_ctor_get(x_10, 6); +x_133 = lean_ctor_get(x_10, 7); +lean_inc(x_133); +lean_inc(x_132); +lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); lean_inc(x_128); lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_inc(x_124); lean_dec(x_10); -x_131 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15___closed__3; -x_132 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_132, 0, x_124); -lean_ctor_set(x_132, 1, x_131); -lean_ctor_set(x_132, 2, x_125); -lean_ctor_set(x_132, 3, x_126); -lean_ctor_set(x_132, 4, x_127); -lean_ctor_set(x_132, 5, x_128); -lean_ctor_set(x_132, 6, x_129); -lean_ctor_set(x_132, 7, x_130); -x_133 = lean_st_ref_set(x_3, x_132, x_11); -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec(x_133); -x_135 = l_Lean_Elab_Command_failIfSucceeds___closed__1; +x_134 = l_Lean_Elab_Command_failIfSucceeds___closed__1; +x_135 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_135, 0, x_127); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_128); +lean_ctor_set(x_135, 3, x_129); +lean_ctor_set(x_135, 4, x_130); +lean_ctor_set(x_135, 5, x_131); +lean_ctor_set(x_135, 6, x_132); +lean_ctor_set(x_135, 7, x_133); +x_136 = lean_st_ref_set(x_3, x_135, x_11); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = l_Lean_Elab_Command_failIfSucceeds___closed__2; lean_inc(x_3); lean_inc(x_2); -x_180 = lean_apply_3(x_1, x_2, x_3, x_134); -if (lean_obj_tag(x_180) == 0) +x_209 = lean_apply_3(x_1, x_2, x_3, x_137); +if (lean_obj_tag(x_209) == 0) { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec(x_180); -x_182 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_181); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_185 = lean_unbox(x_183); -lean_dec(x_183); -x_136 = x_185; -x_137 = x_184; -goto block_157; +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; +x_210 = lean_ctor_get(x_209, 1); +lean_inc(x_210); +lean_dec(x_209); +x_211 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_210); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +x_214 = lean_unbox(x_212); +lean_dec(x_212); +x_139 = x_214; +x_140 = x_213; +goto block_160; } else { +lean_object* x_215; lean_object* x_216; +x_215 = lean_ctor_get(x_209, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_209, 1); +lean_inc(x_216); +lean_dec(x_209); +x_183 = x_215; +x_184 = x_216; +goto block_208; +} +block_160: +{ +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; +x_141 = lean_st_ref_take(x_3, x_140); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_ctor_get(x_142, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +x_146 = lean_ctor_get(x_142, 2); +lean_inc(x_146); +x_147 = lean_ctor_get(x_142, 3); +lean_inc(x_147); +x_148 = lean_ctor_get(x_142, 4); +lean_inc(x_148); +x_149 = lean_ctor_get(x_142, 5); +lean_inc(x_149); +x_150 = lean_ctor_get(x_142, 6); +lean_inc(x_150); +x_151 = lean_ctor_get(x_142, 7); +lean_inc(x_151); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + lean_ctor_release(x_142, 2); + lean_ctor_release(x_142, 3); + lean_ctor_release(x_142, 4); + lean_ctor_release(x_142, 5); + lean_ctor_release(x_142, 6); + lean_ctor_release(x_142, 7); + x_152 = x_142; +} else { + lean_dec_ref(x_142); + x_152 = lean_box(0); +} +x_153 = l_Lean_MessageLog_errorsToWarnings(x_145); +x_154 = l_Lean_MessageLog_append(x_8, x_153); +if (lean_is_scalar(x_152)) { + x_155 = lean_alloc_ctor(0, 8, 0); +} else { + x_155 = x_152; +} +lean_ctor_set(x_155, 0, x_144); +lean_ctor_set(x_155, 1, x_154); +lean_ctor_set(x_155, 2, x_146); +lean_ctor_set(x_155, 3, x_147); +lean_ctor_set(x_155, 4, x_148); +lean_ctor_set(x_155, 5, x_149); +lean_ctor_set(x_155, 6, x_150); +lean_ctor_set(x_155, 7, x_151); +x_156 = lean_st_ref_set(x_3, x_155, x_143); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +lean_dec(x_156); +x_158 = lean_box(x_139); +x_159 = lean_apply_4(x_138, x_158, x_2, x_3, x_157); +return x_159; +} +block_182: +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_163 = lean_st_ref_take(x_3, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = lean_ctor_get(x_164, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_164, 1); +lean_inc(x_167); +x_168 = lean_ctor_get(x_164, 2); +lean_inc(x_168); +x_169 = lean_ctor_get(x_164, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_164, 4); +lean_inc(x_170); +x_171 = lean_ctor_get(x_164, 5); +lean_inc(x_171); +x_172 = lean_ctor_get(x_164, 6); +lean_inc(x_172); +x_173 = lean_ctor_get(x_164, 7); +lean_inc(x_173); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + lean_ctor_release(x_164, 2); + lean_ctor_release(x_164, 3); + lean_ctor_release(x_164, 4); + lean_ctor_release(x_164, 5); + lean_ctor_release(x_164, 6); + lean_ctor_release(x_164, 7); + x_174 = x_164; +} else { + lean_dec_ref(x_164); + x_174 = lean_box(0); +} +x_175 = l_Lean_MessageLog_errorsToWarnings(x_167); +x_176 = l_Lean_MessageLog_append(x_8, x_175); +if (lean_is_scalar(x_174)) { + x_177 = lean_alloc_ctor(0, 8, 0); +} else { + x_177 = x_174; +} +lean_ctor_set(x_177, 0, x_166); +lean_ctor_set(x_177, 1, x_176); +lean_ctor_set(x_177, 2, x_168); +lean_ctor_set(x_177, 3, x_169); +lean_ctor_set(x_177, 4, x_170); +lean_ctor_set(x_177, 5, x_171); +lean_ctor_set(x_177, 6, x_172); +lean_ctor_set(x_177, 7, x_173); +x_178 = lean_st_ref_set(x_3, x_177, x_165); +lean_dec(x_3); +x_179 = lean_ctor_get(x_178, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_180 = x_178; +} else { + lean_dec_ref(x_178); + x_180 = lean_box(0); +} +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(1, 2, 0); +} else { + x_181 = x_180; + lean_ctor_set_tag(x_181, 1); +} +lean_ctor_set(x_181, 0, x_161); +lean_ctor_set(x_181, 1, x_179); +return x_181; +} +block_208: +{ +uint8_t x_185; +x_185 = l_Lean_Exception_isInterrupt(x_183); +if (x_185 == 0) +{ +if (lean_obj_tag(x_183) == 0) +{ lean_object* x_186; -x_186 = lean_ctor_get(x_180, 0); -lean_inc(x_186); +lean_inc(x_3); +lean_inc(x_2); +x_186 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_183, x_2, x_3, x_184); if (lean_obj_tag(x_186) == 0) { -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_180, 1); +lean_object* x_187; uint8_t x_188; +x_187 = lean_ctor_get(x_186, 1); lean_inc(x_187); -lean_dec(x_180); -lean_inc(x_3); -lean_inc(x_2); -x_188 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_186, x_2, x_3, x_187); -if (lean_obj_tag(x_188) == 0) +lean_dec(x_186); +x_188 = 0; +x_139 = x_188; +x_140 = x_187; +goto block_160; +} +else { -lean_object* x_189; uint8_t x_190; -x_189 = lean_ctor_get(x_188, 1); +lean_object* x_189; lean_object* x_190; +lean_dec(x_2); +x_189 = lean_ctor_get(x_186, 0); lean_inc(x_189); -lean_dec(x_188); -x_190 = 0; -x_136 = x_190; -x_137 = x_189; -goto block_157; +x_190 = lean_ctor_get(x_186, 1); +lean_inc(x_190); +lean_dec(x_186); +x_161 = x_189; +x_162 = x_190; +goto block_182; +} } else { -lean_object* x_191; lean_object* x_192; -lean_dec(x_2); -x_191 = lean_ctor_get(x_188, 0); +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_183, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -lean_dec(x_188); -x_158 = x_191; -x_159 = x_192; -goto block_179; -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_193 = lean_ctor_get(x_180, 1); -lean_inc(x_193); -lean_dec(x_180); -x_194 = lean_ctor_get(x_186, 0); -lean_inc(x_194); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_195 = x_186; +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_192 = x_183; } else { - lean_dec_ref(x_186); - x_195 = lean_box(0); + lean_dec_ref(x_183); + x_192 = lean_box(0); } -x_196 = l_Lean_InternalExceptionId_getName(x_194, x_193); -lean_dec(x_194); -if (lean_obj_tag(x_196) == 0) +x_193 = l_Lean_InternalExceptionId_getName(x_191, x_184); +lean_dec(x_191); +if (lean_obj_tag(x_193) == 0) { -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; -lean_dec(x_195); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -x_199 = l_Lean_MessageData_ofName(x_197); -x_200 = 2; +lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +lean_dec(x_192); +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 = l_Lean_MessageData_ofName(x_194); +x_197 = 2; lean_inc(x_3); lean_inc(x_2); -x_201 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_199, x_200, x_2, x_3, x_198); -x_202 = lean_ctor_get(x_201, 1); -lean_inc(x_202); -lean_dec(x_201); -x_203 = 0; -x_136 = x_203; -x_137 = x_202; -goto block_157; +x_198 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_196, x_197, x_2, x_3, x_195); +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +lean_dec(x_198); +x_200 = 0; +x_139 = x_200; +x_140 = x_199; +goto block_160; } else { -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_204 = lean_ctor_get(x_196, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_196, 1); -lean_inc(x_205); -lean_dec(x_196); -x_206 = lean_ctor_get(x_2, 6); -lean_inc(x_206); +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; +x_201 = lean_ctor_get(x_193, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_193, 1); +lean_inc(x_202); +lean_dec(x_193); +x_203 = lean_ctor_get(x_2, 6); +lean_inc(x_203); lean_dec(x_2); -x_207 = lean_io_error_to_string(x_204); -x_208 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_208, 0, x_207); -x_209 = l_Lean_MessageData_ofFormat(x_208); -if (lean_is_scalar(x_195)) { - x_210 = lean_alloc_ctor(0, 2, 0); +x_204 = lean_io_error_to_string(x_201); +x_205 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_205, 0, x_204); +x_206 = l_Lean_MessageData_ofFormat(x_205); +if (lean_is_scalar(x_192)) { + x_207 = lean_alloc_ctor(0, 2, 0); } else { - x_210 = x_195; - lean_ctor_set_tag(x_210, 0); + x_207 = x_192; + lean_ctor_set_tag(x_207, 0); } -lean_ctor_set(x_210, 0, x_206); -lean_ctor_set(x_210, 1, x_209); -x_158 = x_210; -x_159 = x_205; -goto block_179; +lean_ctor_set(x_207, 0, x_203); +lean_ctor_set(x_207, 1, x_206); +x_161 = x_207; +x_162 = x_202; +goto block_182; } } } -block_157: +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; lean_object* x_155; lean_object* x_156; -x_138 = lean_st_ref_take(x_3, x_137); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_141 = lean_ctor_get(x_139, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -x_143 = lean_ctor_get(x_139, 2); -lean_inc(x_143); -x_144 = lean_ctor_get(x_139, 3); -lean_inc(x_144); -x_145 = lean_ctor_get(x_139, 4); -lean_inc(x_145); -x_146 = lean_ctor_get(x_139, 5); -lean_inc(x_146); -x_147 = lean_ctor_get(x_139, 6); -lean_inc(x_147); -x_148 = lean_ctor_get(x_139, 7); -lean_inc(x_148); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - lean_ctor_release(x_139, 2); - lean_ctor_release(x_139, 3); - lean_ctor_release(x_139, 4); - lean_ctor_release(x_139, 5); - lean_ctor_release(x_139, 6); - lean_ctor_release(x_139, 7); - x_149 = x_139; -} else { - lean_dec_ref(x_139); - x_149 = lean_box(0); +lean_dec(x_2); +x_161 = x_183; +x_162 = x_184; +goto block_182; } -x_150 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_142); -x_151 = l_Lean_PersistentArray_append___rarg(x_8, x_150); -if (lean_is_scalar(x_149)) { - x_152 = lean_alloc_ctor(0, 8, 0); -} else { - x_152 = x_149; -} -lean_ctor_set(x_152, 0, x_141); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_152, 2, x_143); -lean_ctor_set(x_152, 3, x_144); -lean_ctor_set(x_152, 4, x_145); -lean_ctor_set(x_152, 5, x_146); -lean_ctor_set(x_152, 6, x_147); -lean_ctor_set(x_152, 7, x_148); -x_153 = lean_st_ref_set(x_3, x_152, x_140); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -lean_dec(x_153); -x_155 = lean_box(x_136); -x_156 = lean_apply_4(x_135, x_155, x_2, x_3, x_154); -return x_156; -} -block_179: -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_160 = lean_st_ref_take(x_3, x_159); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); -x_163 = lean_ctor_get(x_161, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 1); -lean_inc(x_164); -x_165 = lean_ctor_get(x_161, 2); -lean_inc(x_165); -x_166 = lean_ctor_get(x_161, 3); -lean_inc(x_166); -x_167 = lean_ctor_get(x_161, 4); -lean_inc(x_167); -x_168 = lean_ctor_get(x_161, 5); -lean_inc(x_168); -x_169 = lean_ctor_get(x_161, 6); -lean_inc(x_169); -x_170 = lean_ctor_get(x_161, 7); -lean_inc(x_170); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - lean_ctor_release(x_161, 2); - lean_ctor_release(x_161, 3); - lean_ctor_release(x_161, 4); - lean_ctor_release(x_161, 5); - lean_ctor_release(x_161, 6); - lean_ctor_release(x_161, 7); - x_171 = x_161; -} else { - lean_dec_ref(x_161); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_164); -x_173 = l_Lean_PersistentArray_append___rarg(x_8, x_172); -if (lean_is_scalar(x_171)) { - x_174 = lean_alloc_ctor(0, 8, 0); -} else { - x_174 = x_171; -} -lean_ctor_set(x_174, 0, x_163); -lean_ctor_set(x_174, 1, x_173); -lean_ctor_set(x_174, 2, x_165); -lean_ctor_set(x_174, 3, x_166); -lean_ctor_set(x_174, 4, x_167); -lean_ctor_set(x_174, 5, x_168); -lean_ctor_set(x_174, 6, x_169); -lean_ctor_set(x_174, 7, x_170); -x_175 = lean_st_ref_set(x_3, x_174, x_162); -lean_dec(x_3); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_177 = x_175; -} else { - lean_dec_ref(x_175); - x_177 = lean_box(0); -} -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(1, 2, 0); -} else { - x_178 = x_177; - lean_ctor_set_tag(x_178, 1); -} -lean_ctor_set(x_178, 0, x_158); -lean_ctor_set(x_178, 1, x_176); -return x_178; } } } @@ -24109,33 +24385,37 @@ if (lean_is_exclusive(x_19)) { lean_dec_ref(x_19); x_22 = lean_box(0); } -x_23 = l_Lean_Exception_isRuntime(x_20); +x_23 = l_Lean_Exception_isInterrupt(x_20); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_63; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_20); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_68; lean_dec(x_20); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_9); -x_63 = lean_whnf(x_9, x_3, x_4, x_5, x_6, x_21); -if (lean_obj_tag(x_63) == 0) +x_68 = lean_whnf(x_9, x_3, x_4, x_5, x_6, x_21); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); lean_inc(x_16); -x_66 = l_Lean_Expr_app___override(x_16, x_64); +x_71 = l_Lean_Expr_app___override(x_16, x_69); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_67 = l_Lean_Meta_synthInstance(x_66, x_18, x_3, x_4, x_5, x_6, x_65); -if (lean_obj_tag(x_67) == 0) +x_72 = l_Lean_Meta_synthInstance(x_71, x_18, x_3, x_4, x_5, x_6, x_70); +if (lean_obj_tag(x_72) == 0) { lean_dec(x_22); lean_dec(x_17); @@ -24147,154 +24427,162 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_67; +return x_72; } else { -lean_object* x_68; lean_object* x_69; -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_24 = x_68; -x_25 = x_69; -goto block_62; +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_25 = x_73; +x_26 = x_74; +goto block_67; } } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_63, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_63, 1); -lean_inc(x_71); -lean_dec(x_63); -x_24 = x_70; -x_25 = x_71; -goto block_62; +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_68, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_68, 1); +lean_inc(x_76); +lean_dec(x_68); +x_25 = x_75; +x_26 = x_76; +goto block_67; } -block_62: +block_67: { -uint8_t x_26; -x_26 = l_Lean_Exception_isRuntime(x_24); -if (x_26 == 0) +uint8_t x_27; +x_27 = l_Lean_Exception_isInterrupt(x_25); +if (x_27 == 0) { -lean_object* x_27; lean_object* x_28; uint8_t x_50; uint8_t x_51; lean_object* x_52; -lean_dec(x_24); -x_50 = 1; -x_51 = 0; +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_54; uint8_t x_55; lean_object* x_56; +lean_dec(x_25); +x_54 = 1; +x_55 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_9); -x_52 = l_Lean_Meta_reduce(x_9, x_50, x_51, x_50, x_3, x_4, x_5, x_6, x_25); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_Expr_app___override(x_16, x_53); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_56 = l_Lean_Meta_synthInstance(x_55, x_18, x_3, x_4, x_5, x_6, x_54); +x_56 = l_Lean_Meta_reduce(x_9, x_54, x_55, x_54, x_3, x_4, x_5, x_6, x_26); if (lean_obj_tag(x_56) == 0) { -lean_dec(x_22); -lean_dec(x_17); -lean_dec(x_9); -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_56; -} -else -{ -lean_object* x_57; lean_object* x_58; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); lean_dec(x_56); -x_27 = x_57; -x_28 = x_58; -goto block_49; -} -} -else +x_59 = l_Lean_Expr_app___override(x_16, x_57); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l_Lean_Meta_synthInstance(x_59, x_18, x_3, x_4, x_5, x_6, x_58); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_59; lean_object* x_60; -lean_dec(x_16); -x_59 = lean_ctor_get(x_52, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_52, 1); -lean_inc(x_60); -lean_dec(x_52); -x_27 = x_59; -x_28 = x_60; -goto block_49; -} -block_49: -{ -uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_27); lean_dec(x_22); -x_30 = l_Lean_indentExpr(x_2); -x_31 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__2; -x_32 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__4; -x_34 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_indentExpr(x_9); -x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -x_37 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__6; -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_indentExpr(x_17); -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__8; -x_42 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_MessageData_ofName(x_1); -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__10; -x_46 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_46, x_3, x_4, x_5, x_6, x_28); +lean_dec(x_17); +lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_47; +lean_dec(x_2); +lean_dec(x_1); +return x_60; } else { -lean_object* x_48; +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_29 = x_61; +x_30 = x_62; +goto block_53; +} +} +else +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_16); +x_63 = lean_ctor_get(x_56, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_56, 1); +lean_inc(x_64); +lean_dec(x_56); +x_29 = x_63; +x_30 = x_64; +goto block_53; +} +block_53: +{ +uint8_t x_31; +x_31 = l_Lean_Exception_isInterrupt(x_29); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (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; 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_dec(x_29); +lean_dec(x_22); +x_33 = l_Lean_indentExpr(x_2); +x_34 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__2; +x_35 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__4; +x_37 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_indentExpr(x_9); +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__6; +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_indentExpr(x_17); +x_43 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__8; +x_45 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_MessageData_ofName(x_1); +x_47 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__10; +x_49 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_49, x_3, x_4, x_5, x_6, x_30); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_50; +} +else +{ +lean_object* x_51; lean_dec(x_17); lean_dec(x_9); lean_dec(x_6); @@ -24304,19 +24592,40 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_22)) { - x_48 = lean_alloc_ctor(1, 2, 0); + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_22; + x_51 = x_22; } -lean_ctor_set(x_48, 0, x_27); -lean_ctor_set(x_48, 1, x_28); -return x_48; +lean_ctor_set(x_51, 0, x_29); +lean_ctor_set(x_51, 1, x_30); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_17); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_22)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_22; +} +lean_ctor_set(x_52, 0, x_29); +lean_ctor_set(x_52, 1, x_30); +return x_52; } } } else { -lean_object* x_61; +lean_object* x_65; lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); @@ -24327,19 +24636,18 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_22)) { - x_61 = lean_alloc_ctor(1, 2, 0); + x_65 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_22; -} -lean_ctor_set(x_61, 0, x_24); -lean_ctor_set(x_61, 1, x_25); -return x_61; + x_65 = x_22; } +lean_ctor_set(x_65, 0, x_25); +lean_ctor_set(x_65, 1, x_26); +return x_65; } } else { -lean_object* x_72; +lean_object* x_66; lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); @@ -24350,19 +24658,21 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_22)) { - x_72 = lean_alloc_ctor(1, 2, 0); + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_22; + x_66 = x_22; } -lean_ctor_set(x_72, 0, x_20); -lean_ctor_set(x_72, 1, x_21); -return x_72; +lean_ctor_set(x_66, 0, x_25); +lean_ctor_set(x_66, 1, x_26); +return x_66; } } } else { -uint8_t x_73; +lean_object* x_77; +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); @@ -24370,52 +24680,95 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_73 = !lean_is_exclusive(x_11); -if (x_73 == 0) +if (lean_is_scalar(x_22)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_22; +} +lean_ctor_set(x_77, 0, x_20); +lean_ctor_set(x_77, 1, x_21); +return x_77; +} +} +else +{ +lean_object* x_78; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_22)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_22; +} +lean_ctor_set(x_78, 0, x_20); +lean_ctor_set(x_78, 1, x_21); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_9); +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_79 = !lean_is_exclusive(x_11); +if (x_79 == 0) { return x_11; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_11, 0); -x_75 = lean_ctor_get(x_11, 1); -lean_inc(x_75); -lean_inc(x_74); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_11, 0); +x_81 = lean_ctor_get(x_11, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_11); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +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 { -uint8_t x_77; +uint8_t x_83; 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_77 = !lean_is_exclusive(x_8); -if (x_77 == 0) +x_83 = !lean_is_exclusive(x_8); +if (x_83 == 0) { return x_8; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_8, 0); -x_79 = lean_ctor_get(x_8, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_8, 0); +x_85 = lean_ctor_get(x_8, 1); +lean_inc(x_85); +lean_inc(x_84); lean_dec(x_8); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +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; } } } @@ -28199,6 +28552,7 @@ goto block_167; else { lean_object* x_187; lean_object* x_188; +lean_dec(x_2); lean_dec(x_1); x_187 = lean_ctor_get(x_184, 0); lean_inc(x_187); @@ -28214,6 +28568,7 @@ else { lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_dec(x_170); +lean_dec(x_2); lean_dec(x_1); x_189 = lean_ctor_get(x_179, 1); lean_inc(x_189); @@ -28233,6 +28588,7 @@ else { lean_object* x_193; lean_object* x_194; lean_dec(x_170); +lean_dec(x_2); lean_dec(x_1); x_193 = lean_ctor_get(x_179, 0); lean_inc(x_193); @@ -28249,6 +28605,7 @@ else lean_object* x_195; lean_object* x_196; lean_dec(x_170); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); x_195 = lean_ctor_get(x_174, 0); lean_inc(x_195); @@ -28264,6 +28621,7 @@ else { lean_object* x_197; lean_object* x_198; lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); x_197 = lean_ctor_get(x_169, 0); lean_inc(x_197); @@ -28468,7 +28826,12 @@ x_74 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_74, 0, x_72); x_75 = l_Lean_MessageData_ofFormat(x_74); x_76 = 0; +lean_inc(x_10); lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_77 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_2, x_75, x_76, x_5, x_6, x_7, x_8, x_9, x_10, x_71); if (lean_obj_tag(x_73) == 0) { @@ -28534,6 +28897,7 @@ goto block_23; else { uint8_t x_95; +lean_dec(x_2); x_95 = !lean_is_exclusive(x_69); if (x_95 == 0) { @@ -28575,6 +28939,7 @@ goto block_31; else { lean_object* x_107; lean_object* x_108; +lean_dec(x_2); x_107 = lean_ctor_get(x_65, 0); lean_inc(x_107); x_108 = lean_ctor_get(x_65, 1); @@ -28588,6 +28953,7 @@ goto block_31; else { lean_object* x_109; lean_object* x_110; +lean_dec(x_2); lean_dec(x_1); x_109 = lean_ctor_get(x_63, 0); lean_inc(x_109); @@ -28603,6 +28969,7 @@ else { lean_object* x_111; lean_object* x_112; lean_dec(x_60); +lean_dec(x_2); lean_dec(x_1); x_111 = lean_ctor_get(x_61, 0); lean_inc(x_111); @@ -28696,7 +29063,12 @@ x_135 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_135, 0, x_133); x_136 = l_Lean_MessageData_ofFormat(x_135); x_137 = 0; +lean_inc(x_10); lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_138 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_2, x_136, x_137, x_5, x_6, x_7, x_8, x_9, x_10, x_132); if (lean_obj_tag(x_134) == 0) { @@ -28749,6 +29121,7 @@ goto block_23; else { 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_dec(x_2); x_150 = lean_ctor_get(x_130, 0); lean_inc(x_150); x_151 = lean_ctor_get(x_130, 1); @@ -28781,6 +29154,7 @@ goto block_31; else { lean_object* x_157; lean_object* x_158; +lean_dec(x_2); x_157 = lean_ctor_get(x_126, 0); lean_inc(x_157); x_158 = lean_ctor_get(x_126, 1); @@ -28794,6 +29168,7 @@ goto block_31; else { lean_object* x_159; lean_object* x_160; +lean_dec(x_2); lean_dec(x_1); x_159 = lean_ctor_get(x_124, 0); lean_inc(x_159); @@ -28809,6 +29184,7 @@ else { lean_object* x_161; lean_object* x_162; lean_dec(x_121); +lean_dec(x_2); lean_dec(x_1); x_161 = lean_ctor_get(x_122, 0); lean_inc(x_161); @@ -28825,6 +29201,7 @@ else { lean_object* x_163; lean_object* x_164; lean_dec(x_42); +lean_dec(x_2); lean_dec(x_1); x_163 = lean_ctor_get(x_44, 0); lean_inc(x_163); @@ -28839,6 +29216,7 @@ goto block_31; else { lean_object* x_165; lean_object* x_166; +lean_dec(x_2); lean_dec(x_1); x_165 = lean_ctor_get(x_34, 0); lean_inc(x_165); @@ -28857,7 +29235,7 @@ _start: { lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___boxed), 11, 4); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5), 11, 4); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_2); lean_closure_set(x_13, 2, x_3); @@ -29556,15 +29934,6 @@ lean_dec(x_4); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Lean_Elab_Command_elabEvalUnsafe___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_2); -return x_12; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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) { _start: { @@ -32069,11 +32438,6 @@ lean_dec(x_21); x_24 = l_Lean_MessageData_ofExpr(x_22); x_25 = 0; x_26 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_24, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_23); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); x_27 = !lean_is_exclusive(x_26); if (x_27 == 0) { @@ -33211,7 +33575,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -33220,6 +33584,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -33229,19 +33596,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabAddDeclDoc___spec__4(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabAddDeclDoc___spec__4(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -35268,6 +35637,8 @@ l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2 = _init_l_Lean_Elab_C lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2); l_Lean_Elab_Command_failIfSucceeds___closed__1 = _init_l_Lean_Elab_Command_failIfSucceeds___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___closed__1); +l_Lean_Elab_Command_failIfSucceeds___closed__2 = _init_l_Lean_Elab_Command_failIfSucceeds___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___closed__2); l_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__1); l_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index fdb9bc7afe..7bcc77443a 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -108,6 +108,7 @@ static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__2; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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*); @@ -14697,7 +14698,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -14709,7 +14710,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -14722,29 +14726,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -16429,14 +16435,18 @@ if (x_82 == 0) { lean_object* x_83; uint8_t x_84; x_83 = lean_ctor_get(x_77, 0); -x_84 = l_Lean_Exception_isRuntime(x_83); +x_84 = l_Lean_Exception_isInterrupt(x_83); if (x_84 == 0) { -lean_object* x_85; +uint8_t x_85; +x_85 = l_Lean_Exception_isRuntime(x_83); +if (x_85 == 0) +{ +lean_object* x_86; lean_dec(x_83); -x_85 = lean_box(0); +x_86 = lean_box(0); lean_ctor_set_tag(x_77, 0); -lean_ctor_set(x_77, 0, x_85); +lean_ctor_set(x_77, 0, x_86); return x_77; } else @@ -16446,30 +16456,48 @@ return x_77; } else { -lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = lean_ctor_get(x_77, 0); -x_87 = lean_ctor_get(x_77, 1); +return x_77; +} +} +else +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_77, 0); +x_88 = lean_ctor_get(x_77, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); lean_dec(x_77); -x_88 = l_Lean_Exception_isRuntime(x_86); -if (x_88 == 0) +x_89 = l_Lean_Exception_isInterrupt(x_87); +if (x_89 == 0) { -lean_object* x_89; lean_object* x_90; -lean_dec(x_86); -x_89 = lean_box(0); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -return x_90; +uint8_t x_90; +x_90 = l_Lean_Exception_isRuntime(x_87); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_87); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_88); +return x_92; } else { -lean_object* x_91; -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_86); -lean_ctor_set(x_91, 1, x_87); -return x_91; +lean_object* x_93; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +return x_93; +} +} +else +{ +lean_object* x_94; +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_87); +lean_ctor_set(x_94, 1, x_88); +return x_94; } } } @@ -16479,34 +16507,34 @@ return x_91; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; size_t x_101; size_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_92 = l_Lean_Syntax_getArg(x_40, x_29); -x_93 = lean_unsigned_to_nat(2u); -x_94 = l_Lean_Syntax_getArg(x_40, x_93); -x_95 = l_Lean_Syntax_getArg(x_40, x_39); +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; size_t x_104; size_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_95 = l_Lean_Syntax_getArg(x_40, x_29); +x_96 = lean_unsigned_to_nat(2u); +x_97 = l_Lean_Syntax_getArg(x_40, x_96); +x_98 = l_Lean_Syntax_getArg(x_40, x_39); lean_dec(x_40); -x_96 = l_Lean_Syntax_getArgs(x_35); +x_99 = l_Lean_Syntax_getArgs(x_35); lean_dec(x_35); -x_97 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_98 = lean_array_push(x_97, x_94); -x_99 = lean_array_push(x_98, x_95); -x_100 = lean_array_get_size(x_99); -x_101 = lean_usize_of_nat(x_100); -lean_dec(x_100); -x_102 = 0; -x_103 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_104 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_103, x_101, x_102, x_99); -x_105 = lean_array_get_size(x_96); -x_106 = lean_array_get_size(x_104); -x_107 = lean_nat_dec_eq(x_105, x_106); -lean_dec(x_106); -lean_dec(x_105); -if (x_107 == 0) +x_100 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_101 = lean_array_push(x_100, x_97); +x_102 = lean_array_push(x_101, x_98); +x_103 = lean_array_get_size(x_102); +x_104 = lean_usize_of_nat(x_103); +lean_dec(x_103); +x_105 = 0; +x_106 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_107 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_106, x_104, x_105, x_102); +x_108 = lean_array_get_size(x_99); +x_109 = lean_array_get_size(x_107); +x_110 = lean_nat_dec_eq(x_108, x_109); +lean_dec(x_109); +lean_dec(x_108); +if (x_110 == 0) { -lean_object* x_108; -lean_dec(x_104); -lean_dec(x_96); -lean_dec(x_92); +lean_object* x_111; +lean_dec(x_107); +lean_dec(x_99); +lean_dec(x_95); lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); @@ -16514,109 +16542,131 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_108 = lean_box(0); -lean_ctor_set(x_22, 0, x_108); +x_111 = lean_box(0); +lean_ctor_set(x_22, 0, x_111); return x_22; } else { -uint8_t x_109; -x_109 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_24, x_103, lean_box(0), x_96, x_104, x_34); -lean_dec(x_104); -lean_dec(x_96); +uint8_t x_112; +x_112 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_24, x_106, lean_box(0), x_99, x_107, x_34); +lean_dec(x_107); +lean_dec(x_99); lean_dec(x_24); -if (x_109 == 0) +if (x_112 == 0) { -lean_object* x_110; -lean_dec(x_92); +lean_object* x_113; +lean_dec(x_95); 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_110 = lean_box(0); -lean_ctor_set(x_22, 0, x_110); +x_113 = lean_box(0); +lean_ctor_set(x_22, 0, x_113); return x_22; } else { -lean_object* x_111; uint8_t x_112; lean_object* x_113; +lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_free_object(x_22); -x_111 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_112 = 0; -x_113 = l_Lean_Elab_Term_resolveId_x3f(x_92, x_111, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_113) == 0) +x_114 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_115 = 0; +x_116 = l_Lean_Elab_Term_resolveId_x3f(x_95, x_114, x_115, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_116) == 0) { -uint8_t x_114; -x_114 = !lean_is_exclusive(x_113); -if (x_114 == 0) +uint8_t x_117; +x_117 = !lean_is_exclusive(x_116); +if (x_117 == 0) { -return x_113; +return x_116; } 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); -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; +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_116, 0); +x_119 = lean_ctor_get(x_116, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_116); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } else { -uint8_t x_118; -x_118 = !lean_is_exclusive(x_113); -if (x_118 == 0) +uint8_t x_121; +x_121 = !lean_is_exclusive(x_116); +if (x_121 == 0) { -lean_object* x_119; uint8_t x_120; -x_119 = lean_ctor_get(x_113, 0); -x_120 = l_Lean_Exception_isRuntime(x_119); -if (x_120 == 0) +lean_object* x_122; uint8_t x_123; +x_122 = lean_ctor_get(x_116, 0); +x_123 = l_Lean_Exception_isInterrupt(x_122); +if (x_123 == 0) { -lean_object* x_121; -lean_dec(x_119); -x_121 = lean_box(0); -lean_ctor_set_tag(x_113, 0); -lean_ctor_set(x_113, 0, x_121); -return x_113; -} -else -{ -return x_113; -} -} -else -{ -lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_122 = lean_ctor_get(x_113, 0); -x_123 = lean_ctor_get(x_113, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_113); +uint8_t x_124; x_124 = l_Lean_Exception_isRuntime(x_122); if (x_124 == 0) { -lean_object* x_125; lean_object* x_126; +lean_object* x_125; lean_dec(x_122); x_125 = lean_box(0); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -return x_126; +lean_ctor_set_tag(x_116, 0); +lean_ctor_set(x_116, 0, x_125); +return x_116; } else { -lean_object* x_127; -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_122); -lean_ctor_set(x_127, 1, x_123); -return x_127; +return x_116; +} +} +else +{ +return x_116; +} +} +else +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_126 = lean_ctor_get(x_116, 0); +x_127 = lean_ctor_get(x_116, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_116); +x_128 = l_Lean_Exception_isInterrupt(x_126); +if (x_128 == 0) +{ +uint8_t x_129; +x_129 = l_Lean_Exception_isRuntime(x_126); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_126); +x_130 = lean_box(0); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_127); +return x_131; +} +else +{ +lean_object* x_132; +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_126); +lean_ctor_set(x_132, 1, x_127); +return x_132; +} +} +else +{ +lean_object* x_133; +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_126); +lean_ctor_set(x_133, 1, x_127); +return x_133; } } } @@ -16626,34 +16676,34 @@ return x_127; } else { -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; size_t x_137; size_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_128 = l_Lean_Syntax_getArg(x_40, x_29); -x_129 = lean_unsigned_to_nat(2u); -x_130 = l_Lean_Syntax_getArg(x_40, x_129); -x_131 = l_Lean_Syntax_getArg(x_40, x_39); +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; size_t x_143; size_t x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +x_134 = l_Lean_Syntax_getArg(x_40, x_29); +x_135 = lean_unsigned_to_nat(2u); +x_136 = l_Lean_Syntax_getArg(x_40, x_135); +x_137 = l_Lean_Syntax_getArg(x_40, x_39); lean_dec(x_40); -x_132 = l_Lean_Syntax_getArgs(x_35); +x_138 = l_Lean_Syntax_getArgs(x_35); lean_dec(x_35); -x_133 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_134 = lean_array_push(x_133, x_130); -x_135 = lean_array_push(x_134, x_131); -x_136 = lean_array_get_size(x_135); -x_137 = lean_usize_of_nat(x_136); -lean_dec(x_136); -x_138 = 0; -x_139 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_140 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_139, x_137, x_138, x_135); -x_141 = lean_array_get_size(x_132); -x_142 = lean_array_get_size(x_140); -x_143 = lean_nat_dec_eq(x_141, x_142); +x_139 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_140 = lean_array_push(x_139, x_136); +x_141 = lean_array_push(x_140, x_137); +x_142 = lean_array_get_size(x_141); +x_143 = lean_usize_of_nat(x_142); lean_dec(x_142); -lean_dec(x_141); -if (x_143 == 0) +x_144 = 0; +x_145 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_146 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_145, x_143, x_144, x_141); +x_147 = lean_array_get_size(x_138); +x_148 = lean_array_get_size(x_146); +x_149 = lean_nat_dec_eq(x_147, x_148); +lean_dec(x_148); +lean_dec(x_147); +if (x_149 == 0) { -lean_object* x_144; -lean_dec(x_140); -lean_dec(x_132); -lean_dec(x_128); +lean_object* x_150; +lean_dec(x_146); +lean_dec(x_138); +lean_dec(x_134); lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); @@ -16661,109 +16711,131 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_144 = lean_box(0); -lean_ctor_set(x_22, 0, x_144); +x_150 = lean_box(0); +lean_ctor_set(x_22, 0, x_150); return x_22; } else { -uint8_t x_145; -x_145 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_24, x_139, lean_box(0), x_132, x_140, x_34); -lean_dec(x_140); -lean_dec(x_132); +uint8_t x_151; +x_151 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_24, x_145, lean_box(0), x_138, x_146, x_34); +lean_dec(x_146); +lean_dec(x_138); lean_dec(x_24); -if (x_145 == 0) +if (x_151 == 0) { -lean_object* x_146; -lean_dec(x_128); +lean_object* x_152; +lean_dec(x_134); 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_146 = lean_box(0); -lean_ctor_set(x_22, 0, x_146); +x_152 = lean_box(0); +lean_ctor_set(x_22, 0, x_152); return x_22; } else { -lean_object* x_147; uint8_t x_148; lean_object* x_149; +lean_object* x_153; uint8_t x_154; lean_object* x_155; lean_free_object(x_22); -x_147 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_148 = 0; -x_149 = l_Lean_Elab_Term_resolveId_x3f(x_128, x_147, x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_149) == 0) +x_153 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_154 = 0; +x_155 = l_Lean_Elab_Term_resolveId_x3f(x_134, x_153, x_154, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_155) == 0) { -uint8_t x_150; -x_150 = !lean_is_exclusive(x_149); -if (x_150 == 0) -{ -return x_149; -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_149, 0); -x_152 = lean_ctor_get(x_149, 1); -lean_inc(x_152); -lean_inc(x_151); -lean_dec(x_149); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -return x_153; -} -} -else -{ -uint8_t x_154; -x_154 = !lean_is_exclusive(x_149); -if (x_154 == 0) -{ -lean_object* x_155; uint8_t x_156; -x_155 = lean_ctor_get(x_149, 0); -x_156 = l_Lean_Exception_isRuntime(x_155); +uint8_t x_156; +x_156 = !lean_is_exclusive(x_155); if (x_156 == 0) { -lean_object* x_157; -lean_dec(x_155); -x_157 = lean_box(0); -lean_ctor_set_tag(x_149, 0); -lean_ctor_set(x_149, 0, x_157); -return x_149; +return x_155; } else { -return x_149; -} -} -else -{ -lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_158 = lean_ctor_get(x_149, 0); -x_159 = lean_ctor_get(x_149, 1); -lean_inc(x_159); +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_155, 0); +x_158 = lean_ctor_get(x_155, 1); lean_inc(x_158); -lean_dec(x_149); -x_160 = l_Lean_Exception_isRuntime(x_158); +lean_inc(x_157); +lean_dec(x_155); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +else +{ +uint8_t x_160; +x_160 = !lean_is_exclusive(x_155); if (x_160 == 0) { -lean_object* x_161; lean_object* x_162; -lean_dec(x_158); -x_161 = lean_box(0); -x_162 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_159); -return x_162; +lean_object* x_161; uint8_t x_162; +x_161 = lean_ctor_get(x_155, 0); +x_162 = l_Lean_Exception_isInterrupt(x_161); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = l_Lean_Exception_isRuntime(x_161); +if (x_163 == 0) +{ +lean_object* x_164; +lean_dec(x_161); +x_164 = lean_box(0); +lean_ctor_set_tag(x_155, 0); +lean_ctor_set(x_155, 0, x_164); +return x_155; } else { -lean_object* x_163; -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_158); -lean_ctor_set(x_163, 1, x_159); -return x_163; +return x_155; +} +} +else +{ +return x_155; +} +} +else +{ +lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_165 = lean_ctor_get(x_155, 0); +x_166 = lean_ctor_get(x_155, 1); +lean_inc(x_166); +lean_inc(x_165); +lean_dec(x_155); +x_167 = l_Lean_Exception_isInterrupt(x_165); +if (x_167 == 0) +{ +uint8_t x_168; +x_168 = l_Lean_Exception_isRuntime(x_165); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +lean_dec(x_165); +x_169 = lean_box(0); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_166); +return x_170; +} +else +{ +lean_object* x_171; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_165); +lean_ctor_set(x_171, 1, x_166); +return x_171; +} +} +else +{ +lean_object* x_172; +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_165); +lean_ctor_set(x_172, 1, x_166); +return x_172; } } } @@ -16773,291 +16845,166 @@ 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; size_t x_173; size_t x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_164 = l_Lean_Syntax_getArg(x_40, x_29); -x_165 = lean_unsigned_to_nat(2u); -x_166 = l_Lean_Syntax_getArg(x_40, x_165); -x_167 = l_Lean_Syntax_getArg(x_40, x_39); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; size_t x_182; size_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_173 = l_Lean_Syntax_getArg(x_40, x_29); +x_174 = lean_unsigned_to_nat(2u); +x_175 = l_Lean_Syntax_getArg(x_40, x_174); +x_176 = l_Lean_Syntax_getArg(x_40, x_39); lean_dec(x_40); -x_168 = l_Lean_Syntax_getArgs(x_35); +x_177 = l_Lean_Syntax_getArgs(x_35); lean_dec(x_35); -x_169 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_170 = lean_array_push(x_169, x_166); -x_171 = lean_array_push(x_170, x_167); -x_172 = lean_array_get_size(x_171); -x_173 = lean_usize_of_nat(x_172); -lean_dec(x_172); -x_174 = 0; -x_175 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_176 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_175, x_173, x_174, x_171); -x_177 = lean_array_get_size(x_168); -x_178 = lean_array_get_size(x_176); -x_179 = lean_nat_dec_eq(x_177, x_178); -lean_dec(x_178); -lean_dec(x_177); -if (x_179 == 0) +x_178 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_179 = lean_array_push(x_178, x_175); +x_180 = lean_array_push(x_179, x_176); +x_181 = lean_array_get_size(x_180); +x_182 = lean_usize_of_nat(x_181); +lean_dec(x_181); +x_183 = 0; +x_184 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_185 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_184, x_182, x_183, x_180); +x_186 = lean_array_get_size(x_177); +x_187 = lean_array_get_size(x_185); +x_188 = lean_nat_dec_eq(x_186, x_187); +lean_dec(x_187); +lean_dec(x_186); +if (x_188 == 0) { -lean_object* x_180; -lean_dec(x_176); -lean_dec(x_168); -lean_dec(x_164); -lean_dec(x_24); -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_180 = lean_box(0); -lean_ctor_set(x_22, 0, x_180); -return x_22; -} -else -{ -uint8_t x_181; -x_181 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_24, x_175, lean_box(0), x_168, x_176, x_34); -lean_dec(x_176); -lean_dec(x_168); -lean_dec(x_24); -if (x_181 == 0) -{ -lean_object* x_182; -lean_dec(x_164); -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_182 = lean_box(0); -lean_ctor_set(x_22, 0, x_182); -return x_22; -} -else -{ -lean_object* x_183; uint8_t x_184; lean_object* x_185; -lean_free_object(x_22); -x_183 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_184 = 0; -x_185 = l_Lean_Elab_Term_resolveId_x3f(x_164, x_183, x_184, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_185) == 0) -{ -uint8_t x_186; -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -return x_185; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_185, 0); -x_188 = lean_ctor_get(x_185, 1); -lean_inc(x_188); -lean_inc(x_187); +lean_object* x_189; lean_dec(x_185); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} +lean_dec(x_177); +lean_dec(x_173); +lean_dec(x_24); +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_189 = lean_box(0); +lean_ctor_set(x_22, 0, x_189); +return x_22; } else { uint8_t x_190; -x_190 = !lean_is_exclusive(x_185); +x_190 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_24, x_184, lean_box(0), x_177, x_185, x_34); +lean_dec(x_185); +lean_dec(x_177); +lean_dec(x_24); if (x_190 == 0) { -lean_object* x_191; uint8_t x_192; -x_191 = lean_ctor_get(x_185, 0); -x_192 = l_Lean_Exception_isRuntime(x_191); -if (x_192 == 0) -{ -lean_object* x_193; -lean_dec(x_191); -x_193 = lean_box(0); -lean_ctor_set_tag(x_185, 0); -lean_ctor_set(x_185, 0, x_193); -return x_185; +lean_object* x_191; +lean_dec(x_173); +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_191 = lean_box(0); +lean_ctor_set(x_22, 0, x_191); +return x_22; } else { -return x_185; -} +lean_object* x_192; uint8_t x_193; lean_object* x_194; +lean_free_object(x_22); +x_192 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_193 = 0; +x_194 = l_Lean_Elab_Term_resolveId_x3f(x_173, x_192, x_193, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_194) == 0) +{ +uint8_t x_195; +x_195 = !lean_is_exclusive(x_194); +if (x_195 == 0) +{ +return x_194; } else { -lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_194 = lean_ctor_get(x_185, 0); -x_195 = lean_ctor_get(x_185, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_185); -x_196 = l_Lean_Exception_isRuntime(x_194); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_194, 0); +x_197 = lean_ctor_get(x_194, 1); +lean_inc(x_197); +lean_inc(x_196); lean_dec(x_194); -x_197 = lean_box(0); x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_195); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); return x_198; } -else -{ -lean_object* x_199; -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_194); -lean_ctor_set(x_199, 1, x_195); -return x_199; -} -} -} -} -} -} } else { -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; size_t x_209; size_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; -x_200 = l_Lean_Syntax_getArg(x_40, x_29); -x_201 = lean_unsigned_to_nat(2u); -x_202 = l_Lean_Syntax_getArg(x_40, x_201); -x_203 = l_Lean_Syntax_getArg(x_40, x_39); -lean_dec(x_40); -x_204 = l_Lean_Syntax_getArgs(x_35); -lean_dec(x_35); -x_205 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_206 = lean_array_push(x_205, x_202); -x_207 = lean_array_push(x_206, x_203); -x_208 = lean_array_get_size(x_207); -x_209 = lean_usize_of_nat(x_208); -lean_dec(x_208); -x_210 = 0; -x_211 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_212 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_211, x_209, x_210, x_207); -x_213 = lean_array_get_size(x_204); -x_214 = lean_array_get_size(x_212); -x_215 = lean_nat_dec_eq(x_213, x_214); -lean_dec(x_214); -lean_dec(x_213); -if (x_215 == 0) +uint8_t x_199; +x_199 = !lean_is_exclusive(x_194); +if (x_199 == 0) { -lean_object* x_216; -lean_dec(x_212); -lean_dec(x_204); +lean_object* x_200; uint8_t x_201; +x_200 = lean_ctor_get(x_194, 0); +x_201 = l_Lean_Exception_isInterrupt(x_200); +if (x_201 == 0) +{ +uint8_t x_202; +x_202 = l_Lean_Exception_isRuntime(x_200); +if (x_202 == 0) +{ +lean_object* x_203; lean_dec(x_200); -lean_dec(x_24); -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_216 = lean_box(0); -lean_ctor_set(x_22, 0, x_216); -return x_22; +x_203 = lean_box(0); +lean_ctor_set_tag(x_194, 0); +lean_ctor_set(x_194, 0, x_203); +return x_194; } else { -uint8_t x_217; -x_217 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_24, x_211, lean_box(0), x_204, x_212, x_34); -lean_dec(x_212); +return x_194; +} +} +else +{ +return x_194; +} +} +else +{ +lean_object* x_204; lean_object* x_205; uint8_t x_206; +x_204 = lean_ctor_get(x_194, 0); +x_205 = lean_ctor_get(x_194, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_194); +x_206 = l_Lean_Exception_isInterrupt(x_204); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = l_Lean_Exception_isRuntime(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_dec(x_204); -lean_dec(x_24); -if (x_217 == 0) -{ -lean_object* x_218; -lean_dec(x_200); -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_218 = lean_box(0); -lean_ctor_set(x_22, 0, x_218); -return x_22; +x_208 = lean_box(0); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_205); +return x_209; } else { -lean_object* x_219; uint8_t x_220; lean_object* x_221; -lean_free_object(x_22); -x_219 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_220 = 0; -x_221 = l_Lean_Elab_Term_resolveId_x3f(x_200, x_219, x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_221) == 0) -{ -uint8_t x_222; -x_222 = !lean_is_exclusive(x_221); -if (x_222 == 0) -{ -return x_221; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_221, 0); -x_224 = lean_ctor_get(x_221, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_221); -x_225 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_225, 0, x_223); -lean_ctor_set(x_225, 1, x_224); -return x_225; +lean_object* x_210; +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_204); +lean_ctor_set(x_210, 1, x_205); +return x_210; } } else { -uint8_t x_226; -x_226 = !lean_is_exclusive(x_221); -if (x_226 == 0) -{ -lean_object* x_227; uint8_t x_228; -x_227 = lean_ctor_get(x_221, 0); -x_228 = l_Lean_Exception_isRuntime(x_227); -if (x_228 == 0) -{ -lean_object* x_229; -lean_dec(x_227); -x_229 = lean_box(0); -lean_ctor_set_tag(x_221, 0); -lean_ctor_set(x_221, 0, x_229); -return x_221; -} -else -{ -return x_221; -} -} -else -{ -lean_object* x_230; lean_object* x_231; uint8_t x_232; -x_230 = lean_ctor_get(x_221, 0); -x_231 = lean_ctor_get(x_221, 1); -lean_inc(x_231); -lean_inc(x_230); -lean_dec(x_221); -x_232 = l_Lean_Exception_isRuntime(x_230); -if (x_232 == 0) -{ -lean_object* x_233; lean_object* x_234; -lean_dec(x_230); -x_233 = lean_box(0); -x_234 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_231); -return x_234; -} -else -{ -lean_object* x_235; -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_230); -lean_ctor_set(x_235, 1, x_231); -return x_235; +lean_object* x_211; +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_204); +lean_ctor_set(x_211, 1, x_205); +return x_211; } } } @@ -17067,34 +17014,34 @@ return x_235; } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; size_t x_245; size_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_236 = l_Lean_Syntax_getArg(x_40, x_29); -x_237 = lean_unsigned_to_nat(2u); -x_238 = l_Lean_Syntax_getArg(x_40, x_237); -x_239 = l_Lean_Syntax_getArg(x_40, x_39); +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; size_t x_221; size_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; +x_212 = l_Lean_Syntax_getArg(x_40, x_29); +x_213 = lean_unsigned_to_nat(2u); +x_214 = l_Lean_Syntax_getArg(x_40, x_213); +x_215 = l_Lean_Syntax_getArg(x_40, x_39); lean_dec(x_40); -x_240 = l_Lean_Syntax_getArgs(x_35); +x_216 = l_Lean_Syntax_getArgs(x_35); lean_dec(x_35); -x_241 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_242 = lean_array_push(x_241, x_238); -x_243 = lean_array_push(x_242, x_239); -x_244 = lean_array_get_size(x_243); -x_245 = lean_usize_of_nat(x_244); -lean_dec(x_244); -x_246 = 0; -x_247 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_248 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_247, x_245, x_246, x_243); -x_249 = lean_array_get_size(x_240); -x_250 = lean_array_get_size(x_248); -x_251 = lean_nat_dec_eq(x_249, x_250); -lean_dec(x_250); -lean_dec(x_249); -if (x_251 == 0) +x_217 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_218 = lean_array_push(x_217, x_214); +x_219 = lean_array_push(x_218, x_215); +x_220 = lean_array_get_size(x_219); +x_221 = lean_usize_of_nat(x_220); +lean_dec(x_220); +x_222 = 0; +x_223 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_224 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_223, x_221, x_222, x_219); +x_225 = lean_array_get_size(x_216); +x_226 = lean_array_get_size(x_224); +x_227 = lean_nat_dec_eq(x_225, x_226); +lean_dec(x_226); +lean_dec(x_225); +if (x_227 == 0) { -lean_object* x_252; -lean_dec(x_248); -lean_dec(x_240); -lean_dec(x_236); +lean_object* x_228; +lean_dec(x_224); +lean_dec(x_216); +lean_dec(x_212); lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); @@ -17102,256 +17049,300 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_252 = lean_box(0); -lean_ctor_set(x_22, 0, x_252); +x_228 = lean_box(0); +lean_ctor_set(x_22, 0, x_228); return x_22; } else { -uint8_t x_253; -x_253 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_24, x_247, lean_box(0), x_240, x_248, x_34); -lean_dec(x_248); -lean_dec(x_240); +uint8_t x_229; +x_229 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_24, x_223, lean_box(0), x_216, x_224, x_34); +lean_dec(x_224); +lean_dec(x_216); lean_dec(x_24); -if (x_253 == 0) +if (x_229 == 0) { -lean_object* x_254; -lean_dec(x_236); +lean_object* x_230; +lean_dec(x_212); 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_254 = lean_box(0); -lean_ctor_set(x_22, 0, x_254); +x_230 = lean_box(0); +lean_ctor_set(x_22, 0, x_230); return x_22; } else { -lean_object* x_255; uint8_t x_256; lean_object* x_257; +lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_free_object(x_22); -x_255 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_256 = 0; -x_257 = l_Lean_Elab_Term_resolveId_x3f(x_236, x_255, x_256, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_257) == 0) +x_231 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_232 = 0; +x_233 = l_Lean_Elab_Term_resolveId_x3f(x_212, x_231, x_232, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_233) == 0) { -uint8_t x_258; -x_258 = !lean_is_exclusive(x_257); -if (x_258 == 0) +uint8_t x_234; +x_234 = !lean_is_exclusive(x_233); +if (x_234 == 0) { -return x_257; +return x_233; } else { -lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_259 = lean_ctor_get(x_257, 0); -x_260 = lean_ctor_get(x_257, 1); -lean_inc(x_260); -lean_inc(x_259); -lean_dec(x_257); -x_261 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_261, 0, x_259); -lean_ctor_set(x_261, 1, x_260); -return x_261; +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_233, 0); +x_236 = lean_ctor_get(x_233, 1); +lean_inc(x_236); +lean_inc(x_235); +lean_dec(x_233); +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_236); +return x_237; } } else { -uint8_t x_262; -x_262 = !lean_is_exclusive(x_257); -if (x_262 == 0) +uint8_t x_238; +x_238 = !lean_is_exclusive(x_233); +if (x_238 == 0) { -lean_object* x_263; uint8_t x_264; -x_263 = lean_ctor_get(x_257, 0); -x_264 = l_Lean_Exception_isRuntime(x_263); -if (x_264 == 0) +lean_object* x_239; uint8_t x_240; +x_239 = lean_ctor_get(x_233, 0); +x_240 = l_Lean_Exception_isInterrupt(x_239); +if (x_240 == 0) { -lean_object* x_265; +uint8_t x_241; +x_241 = l_Lean_Exception_isRuntime(x_239); +if (x_241 == 0) +{ +lean_object* x_242; +lean_dec(x_239); +x_242 = lean_box(0); +lean_ctor_set_tag(x_233, 0); +lean_ctor_set(x_233, 0, x_242); +return x_233; +} +else +{ +return x_233; +} +} +else +{ +return x_233; +} +} +else +{ +lean_object* x_243; lean_object* x_244; uint8_t x_245; +x_243 = lean_ctor_get(x_233, 0); +x_244 = lean_ctor_get(x_233, 1); +lean_inc(x_244); +lean_inc(x_243); +lean_dec(x_233); +x_245 = l_Lean_Exception_isInterrupt(x_243); +if (x_245 == 0) +{ +uint8_t x_246; +x_246 = l_Lean_Exception_isRuntime(x_243); +if (x_246 == 0) +{ +lean_object* x_247; lean_object* x_248; +lean_dec(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_244); +return x_248; +} +else +{ +lean_object* x_249; +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_243); +lean_ctor_set(x_249, 1, x_244); +return x_249; +} +} +else +{ +lean_object* x_250; +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_243); +lean_ctor_set(x_250, 1, x_244); +return x_250; +} +} +} +} +} +} +} +else +{ +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; size_t x_260; size_t x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; +x_251 = l_Lean_Syntax_getArg(x_40, x_29); +x_252 = lean_unsigned_to_nat(2u); +x_253 = l_Lean_Syntax_getArg(x_40, x_252); +x_254 = l_Lean_Syntax_getArg(x_40, x_39); +lean_dec(x_40); +x_255 = l_Lean_Syntax_getArgs(x_35); +lean_dec(x_35); +x_256 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_257 = lean_array_push(x_256, x_253); +x_258 = lean_array_push(x_257, x_254); +x_259 = lean_array_get_size(x_258); +x_260 = lean_usize_of_nat(x_259); +lean_dec(x_259); +x_261 = 0; +x_262 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_263 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_262, x_260, x_261, x_258); +x_264 = lean_array_get_size(x_255); +x_265 = lean_array_get_size(x_263); +x_266 = lean_nat_dec_eq(x_264, x_265); +lean_dec(x_265); +lean_dec(x_264); +if (x_266 == 0) +{ +lean_object* x_267; lean_dec(x_263); -x_265 = lean_box(0); -lean_ctor_set_tag(x_257, 0); -lean_ctor_set(x_257, 0, x_265); -return x_257; +lean_dec(x_255); +lean_dec(x_251); +lean_dec(x_24); +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_267 = lean_box(0); +lean_ctor_set(x_22, 0, x_267); +return x_22; } else { -return x_257; -} -} -else -{ -lean_object* x_266; lean_object* x_267; uint8_t x_268; -x_266 = lean_ctor_get(x_257, 0); -x_267 = lean_ctor_get(x_257, 1); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_257); -x_268 = l_Lean_Exception_isRuntime(x_266); +uint8_t x_268; +x_268 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_24, x_262, lean_box(0), x_255, x_263, x_34); +lean_dec(x_263); +lean_dec(x_255); +lean_dec(x_24); if (x_268 == 0) { -lean_object* x_269; lean_object* x_270; -lean_dec(x_266); +lean_object* x_269; +lean_dec(x_251); +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_269 = lean_box(0); -x_270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_267); -return x_270; +lean_ctor_set(x_22, 0, x_269); +return x_22; } else { -lean_object* x_271; -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_266); -lean_ctor_set(x_271, 1, x_267); -return x_271; -} -} -} -} +lean_object* x_270; uint8_t x_271; lean_object* x_272; +lean_free_object(x_22); +x_270 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_271 = 0; +x_272 = l_Lean_Elab_Term_resolveId_x3f(x_251, x_270, x_271, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_272) == 0) +{ +uint8_t x_273; +x_273 = !lean_is_exclusive(x_272); +if (x_273 == 0) +{ +return x_272; } +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_274 = lean_ctor_get(x_272, 0); +x_275 = lean_ctor_get(x_272, 1); +lean_inc(x_275); +lean_inc(x_274); +lean_dec(x_272); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_275); +return x_276; } } 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; lean_object* x_278; lean_object* x_279; lean_object* x_280; size_t x_281; size_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; -x_272 = l_Lean_Syntax_getArg(x_40, x_29); -x_273 = lean_unsigned_to_nat(2u); -x_274 = l_Lean_Syntax_getArg(x_40, x_273); -x_275 = l_Lean_Syntax_getArg(x_40, x_39); -lean_dec(x_40); -x_276 = l_Lean_Syntax_getArgs(x_35); -lean_dec(x_35); -x_277 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_278 = lean_array_push(x_277, x_274); -x_279 = lean_array_push(x_278, x_275); -x_280 = lean_array_get_size(x_279); -x_281 = lean_usize_of_nat(x_280); -lean_dec(x_280); -x_282 = 0; -x_283 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_284 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_283, x_281, x_282, x_279); -x_285 = lean_array_get_size(x_276); -x_286 = lean_array_get_size(x_284); -x_287 = lean_nat_dec_eq(x_285, x_286); -lean_dec(x_286); -lean_dec(x_285); -if (x_287 == 0) +uint8_t x_277; +x_277 = !lean_is_exclusive(x_272); +if (x_277 == 0) +{ +lean_object* x_278; uint8_t x_279; +x_278 = lean_ctor_get(x_272, 0); +x_279 = l_Lean_Exception_isInterrupt(x_278); +if (x_279 == 0) +{ +uint8_t x_280; +x_280 = l_Lean_Exception_isRuntime(x_278); +if (x_280 == 0) +{ +lean_object* x_281; +lean_dec(x_278); +x_281 = lean_box(0); +lean_ctor_set_tag(x_272, 0); +lean_ctor_set(x_272, 0, x_281); +return x_272; +} +else +{ +return x_272; +} +} +else +{ +return x_272; +} +} +else +{ +lean_object* x_282; lean_object* x_283; uint8_t x_284; +x_282 = lean_ctor_get(x_272, 0); +x_283 = lean_ctor_get(x_272, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_272); +x_284 = l_Lean_Exception_isInterrupt(x_282); +if (x_284 == 0) +{ +uint8_t x_285; +x_285 = l_Lean_Exception_isRuntime(x_282); +if (x_285 == 0) +{ +lean_object* x_286; lean_object* x_287; +lean_dec(x_282); +x_286 = lean_box(0); +x_287 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_287, 0, x_286); +lean_ctor_set(x_287, 1, x_283); +return x_287; +} +else { lean_object* x_288; -lean_dec(x_284); -lean_dec(x_276); -lean_dec(x_272); -lean_dec(x_24); -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_288 = lean_box(0); -lean_ctor_set(x_22, 0, x_288); -return x_22; -} -else -{ -uint8_t x_289; -x_289 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_24, x_283, lean_box(0), x_276, x_284, x_34); -lean_dec(x_284); -lean_dec(x_276); -lean_dec(x_24); -if (x_289 == 0) -{ -lean_object* x_290; -lean_dec(x_272); -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_290 = lean_box(0); -lean_ctor_set(x_22, 0, x_290); -return x_22; -} -else -{ -lean_object* x_291; uint8_t x_292; lean_object* x_293; -lean_free_object(x_22); -x_291 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_292 = 0; -x_293 = l_Lean_Elab_Term_resolveId_x3f(x_272, x_291, x_292, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_293) == 0) -{ -uint8_t x_294; -x_294 = !lean_is_exclusive(x_293); -if (x_294 == 0) -{ -return x_293; -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_295 = lean_ctor_get(x_293, 0); -x_296 = lean_ctor_get(x_293, 1); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_293); -x_297 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_297, 0, x_295); -lean_ctor_set(x_297, 1, x_296); -return x_297; +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_282); +lean_ctor_set(x_288, 1, x_283); +return x_288; } } else { -uint8_t x_298; -x_298 = !lean_is_exclusive(x_293); -if (x_298 == 0) -{ -lean_object* x_299; uint8_t x_300; -x_299 = lean_ctor_get(x_293, 0); -x_300 = l_Lean_Exception_isRuntime(x_299); -if (x_300 == 0) -{ -lean_object* x_301; -lean_dec(x_299); -x_301 = lean_box(0); -lean_ctor_set_tag(x_293, 0); -lean_ctor_set(x_293, 0, x_301); -return x_293; -} -else -{ -return x_293; -} -} -else -{ -lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_302 = lean_ctor_get(x_293, 0); -x_303 = lean_ctor_get(x_293, 1); -lean_inc(x_303); -lean_inc(x_302); -lean_dec(x_293); -x_304 = l_Lean_Exception_isRuntime(x_302); -if (x_304 == 0) -{ -lean_object* x_305; lean_object* x_306; -lean_dec(x_302); -x_305 = lean_box(0); -x_306 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_306, 0, x_305); -lean_ctor_set(x_306, 1, x_303); -return x_306; -} -else -{ -lean_object* x_307; -x_307 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_307, 0, x_302); -lean_ctor_set(x_307, 1, x_303); -return x_307; +lean_object* x_289; +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_282); +lean_ctor_set(x_289, 1, x_283); +return x_289; } } } @@ -17361,141 +17352,332 @@ return x_307; } else { -lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; size_t x_313; size_t x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; -x_308 = l_Lean_Syntax_getArg(x_40, x_34); -x_309 = l_Lean_Syntax_getArg(x_40, x_29); +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; size_t x_299; size_t x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; +x_290 = l_Lean_Syntax_getArg(x_40, x_29); +x_291 = lean_unsigned_to_nat(2u); +x_292 = l_Lean_Syntax_getArg(x_40, x_291); +x_293 = l_Lean_Syntax_getArg(x_40, x_39); lean_dec(x_40); -x_310 = l_Lean_Syntax_getArgs(x_309); -lean_dec(x_309); -x_311 = l_Lean_Syntax_getArgs(x_35); +x_294 = l_Lean_Syntax_getArgs(x_35); lean_dec(x_35); -x_312 = lean_array_get_size(x_310); -x_313 = lean_usize_of_nat(x_312); -lean_dec(x_312); -x_314 = 0; -x_315 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_316 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_315, x_313, x_314, x_310); -x_317 = lean_array_get_size(x_311); -x_318 = lean_array_get_size(x_316); -x_319 = lean_nat_dec_eq(x_317, x_318); -lean_dec(x_318); -lean_dec(x_317); +x_295 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_296 = lean_array_push(x_295, x_292); +x_297 = lean_array_push(x_296, x_293); +x_298 = lean_array_get_size(x_297); +x_299 = lean_usize_of_nat(x_298); +lean_dec(x_298); +x_300 = 0; +x_301 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_302 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_301, x_299, x_300, x_297); +x_303 = lean_array_get_size(x_294); +x_304 = lean_array_get_size(x_302); +x_305 = lean_nat_dec_eq(x_303, x_304); +lean_dec(x_304); +lean_dec(x_303); +if (x_305 == 0) +{ +lean_object* x_306; +lean_dec(x_302); +lean_dec(x_294); +lean_dec(x_290); +lean_dec(x_24); +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_306 = lean_box(0); +lean_ctor_set(x_22, 0, x_306); +return x_22; +} +else +{ +uint8_t x_307; +x_307 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_24, x_301, lean_box(0), x_294, x_302, x_34); +lean_dec(x_302); +lean_dec(x_294); +lean_dec(x_24); +if (x_307 == 0) +{ +lean_object* x_308; +lean_dec(x_290); +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_308 = lean_box(0); +lean_ctor_set(x_22, 0, x_308); +return x_22; +} +else +{ +lean_object* x_309; uint8_t x_310; lean_object* x_311; +lean_free_object(x_22); +x_309 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_310 = 0; +x_311 = l_Lean_Elab_Term_resolveId_x3f(x_290, x_309, x_310, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_311) == 0) +{ +uint8_t x_312; +x_312 = !lean_is_exclusive(x_311); +if (x_312 == 0) +{ +return x_311; +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_313 = lean_ctor_get(x_311, 0); +x_314 = lean_ctor_get(x_311, 1); +lean_inc(x_314); +lean_inc(x_313); +lean_dec(x_311); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_313); +lean_ctor_set(x_315, 1, x_314); +return x_315; +} +} +else +{ +uint8_t x_316; +x_316 = !lean_is_exclusive(x_311); +if (x_316 == 0) +{ +lean_object* x_317; uint8_t x_318; +x_317 = lean_ctor_get(x_311, 0); +x_318 = l_Lean_Exception_isInterrupt(x_317); +if (x_318 == 0) +{ +uint8_t x_319; +x_319 = l_Lean_Exception_isRuntime(x_317); if (x_319 == 0) { lean_object* x_320; -lean_dec(x_316); -lean_dec(x_311); -lean_dec(x_308); -lean_dec(x_24); -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_317); x_320 = lean_box(0); -lean_ctor_set(x_22, 0, x_320); -return x_22; +lean_ctor_set_tag(x_311, 0); +lean_ctor_set(x_311, 0, x_320); +return x_311; } else { -uint8_t x_321; -x_321 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_24, x_315, lean_box(0), x_311, x_316, x_34); -lean_dec(x_316); +return x_311; +} +} +else +{ +return x_311; +} +} +else +{ +lean_object* x_321; lean_object* x_322; uint8_t x_323; +x_321 = lean_ctor_get(x_311, 0); +x_322 = lean_ctor_get(x_311, 1); +lean_inc(x_322); +lean_inc(x_321); lean_dec(x_311); -lean_dec(x_24); -if (x_321 == 0) +x_323 = l_Lean_Exception_isInterrupt(x_321); +if (x_323 == 0) { -lean_object* x_322; -lean_dec(x_308); +uint8_t x_324; +x_324 = l_Lean_Exception_isRuntime(x_321); +if (x_324 == 0) +{ +lean_object* x_325; lean_object* x_326; +lean_dec(x_321); +x_325 = lean_box(0); +x_326 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_326, 0, x_325); +lean_ctor_set(x_326, 1, x_322); +return x_326; +} +else +{ +lean_object* x_327; +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_321); +lean_ctor_set(x_327, 1, x_322); +return x_327; +} +} +else +{ +lean_object* x_328; +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_321); +lean_ctor_set(x_328, 1, x_322); +return x_328; +} +} +} +} +} +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; size_t x_334; size_t x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; +x_329 = l_Lean_Syntax_getArg(x_40, x_34); +x_330 = l_Lean_Syntax_getArg(x_40, x_29); +lean_dec(x_40); +x_331 = l_Lean_Syntax_getArgs(x_330); +lean_dec(x_330); +x_332 = l_Lean_Syntax_getArgs(x_35); +lean_dec(x_35); +x_333 = lean_array_get_size(x_331); +x_334 = lean_usize_of_nat(x_333); +lean_dec(x_333); +x_335 = 0; +x_336 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_337 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_336, x_334, x_335, x_331); +x_338 = lean_array_get_size(x_332); +x_339 = lean_array_get_size(x_337); +x_340 = lean_nat_dec_eq(x_338, x_339); +lean_dec(x_339); +lean_dec(x_338); +if (x_340 == 0) +{ +lean_object* x_341; +lean_dec(x_337); +lean_dec(x_332); +lean_dec(x_329); +lean_dec(x_24); 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_322 = lean_box(0); -lean_ctor_set(x_22, 0, x_322); +x_341 = lean_box(0); +lean_ctor_set(x_22, 0, x_341); return x_22; } else { -lean_object* x_323; uint8_t x_324; lean_object* x_325; +uint8_t x_342; +x_342 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_24, x_336, lean_box(0), x_332, x_337, x_34); +lean_dec(x_337); +lean_dec(x_332); +lean_dec(x_24); +if (x_342 == 0) +{ +lean_object* x_343; +lean_dec(x_329); +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_343 = lean_box(0); +lean_ctor_set(x_22, 0, x_343); +return x_22; +} +else +{ +lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_free_object(x_22); -x_323 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_324 = 0; -x_325 = l_Lean_Elab_Term_resolveId_x3f(x_308, x_323, x_324, x_2, x_3, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_325) == 0) +x_344 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_345 = 0; +x_346 = l_Lean_Elab_Term_resolveId_x3f(x_329, x_344, x_345, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_346) == 0) { -uint8_t x_326; -x_326 = !lean_is_exclusive(x_325); -if (x_326 == 0) +uint8_t x_347; +x_347 = !lean_is_exclusive(x_346); +if (x_347 == 0) { -return x_325; +return x_346; } else { -lean_object* x_327; lean_object* x_328; lean_object* x_329; -x_327 = lean_ctor_get(x_325, 0); -x_328 = lean_ctor_get(x_325, 1); -lean_inc(x_328); -lean_inc(x_327); -lean_dec(x_325); -x_329 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_329, 0, x_327); -lean_ctor_set(x_329, 1, x_328); -return x_329; +lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_348 = lean_ctor_get(x_346, 0); +x_349 = lean_ctor_get(x_346, 1); +lean_inc(x_349); +lean_inc(x_348); +lean_dec(x_346); +x_350 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +return x_350; } } else { -uint8_t x_330; -x_330 = !lean_is_exclusive(x_325); -if (x_330 == 0) +uint8_t x_351; +x_351 = !lean_is_exclusive(x_346); +if (x_351 == 0) { -lean_object* x_331; uint8_t x_332; -x_331 = lean_ctor_get(x_325, 0); -x_332 = l_Lean_Exception_isRuntime(x_331); -if (x_332 == 0) +lean_object* x_352; uint8_t x_353; +x_352 = lean_ctor_get(x_346, 0); +x_353 = l_Lean_Exception_isInterrupt(x_352); +if (x_353 == 0) { -lean_object* x_333; -lean_dec(x_331); -x_333 = lean_box(0); -lean_ctor_set_tag(x_325, 0); -lean_ctor_set(x_325, 0, x_333); -return x_325; +uint8_t x_354; +x_354 = l_Lean_Exception_isRuntime(x_352); +if (x_354 == 0) +{ +lean_object* x_355; +lean_dec(x_352); +x_355 = lean_box(0); +lean_ctor_set_tag(x_346, 0); +lean_ctor_set(x_346, 0, x_355); +return x_346; } else { -return x_325; +return x_346; } } else { -lean_object* x_334; lean_object* x_335; uint8_t x_336; -x_334 = lean_ctor_get(x_325, 0); -x_335 = lean_ctor_get(x_325, 1); -lean_inc(x_335); -lean_inc(x_334); -lean_dec(x_325); -x_336 = l_Lean_Exception_isRuntime(x_334); -if (x_336 == 0) -{ -lean_object* x_337; lean_object* x_338; -lean_dec(x_334); -x_337 = lean_box(0); -x_338 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_335); -return x_338; +return x_346; +} } else { -lean_object* x_339; -x_339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_339, 0, x_334); -lean_ctor_set(x_339, 1, x_335); -return x_339; +lean_object* x_356; lean_object* x_357; uint8_t x_358; +x_356 = lean_ctor_get(x_346, 0); +x_357 = lean_ctor_get(x_346, 1); +lean_inc(x_357); +lean_inc(x_356); +lean_dec(x_346); +x_358 = l_Lean_Exception_isInterrupt(x_356); +if (x_358 == 0) +{ +uint8_t x_359; +x_359 = l_Lean_Exception_isRuntime(x_356); +if (x_359 == 0) +{ +lean_object* x_360; lean_object* x_361; +lean_dec(x_356); +x_360 = lean_box(0); +x_361 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_357); +return x_361; +} +else +{ +lean_object* x_362; +x_362 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_362, 0, x_356); +lean_ctor_set(x_362, 1, x_357); +return x_362; +} +} +else +{ +lean_object* x_363; +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_356); +lean_ctor_set(x_363, 1, x_357); +return x_363; } } } @@ -17508,430 +17690,303 @@ return x_339; } else { -lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_340 = lean_ctor_get(x_22, 0); -x_341 = lean_ctor_get(x_22, 1); -lean_inc(x_341); -lean_inc(x_340); +lean_object* x_364; lean_object* x_365; lean_object* x_366; uint8_t x_367; +x_364 = lean_ctor_get(x_22, 0); +x_365 = lean_ctor_get(x_22, 1); +lean_inc(x_365); +lean_inc(x_364); lean_dec(x_22); -x_342 = l_Lean_Elab_Term_expandDbgTrace___closed__17; -lean_inc(x_340); -x_343 = l_Lean_Syntax_isOfKind(x_340, x_342); -if (x_343 == 0) -{ -lean_object* x_344; lean_object* x_345; -lean_dec(x_340); -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_344 = lean_box(0); -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_341); -return x_345; -} -else -{ -lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; -x_346 = lean_unsigned_to_nat(1u); -x_347 = l_Lean_Syntax_getArg(x_340, x_346); -x_348 = l_Lean_Elab_Term_expandDbgTrace___closed__19; -lean_inc(x_347); -x_349 = l_Lean_Syntax_isOfKind(x_347, x_348); -if (x_349 == 0) -{ -lean_object* x_350; lean_object* x_351; -lean_dec(x_347); -lean_dec(x_340); -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_350 = lean_box(0); -x_351 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_341); -return x_351; -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t x_355; -x_352 = lean_unsigned_to_nat(0u); -x_353 = l_Lean_Syntax_getArg(x_347, x_352); -x_354 = l_Lean_Syntax_getArg(x_347, x_346); -x_355 = l_Lean_Syntax_matchesNull(x_354, x_352); -if (x_355 == 0) -{ -lean_object* x_356; lean_object* x_357; -lean_dec(x_353); -lean_dec(x_347); -lean_dec(x_340); -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_356 = lean_box(0); -x_357 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_357, 0, x_356); -lean_ctor_set(x_357, 1, x_341); -return x_357; -} -else -{ -lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; -x_358 = lean_unsigned_to_nat(3u); -x_359 = l_Lean_Syntax_getArg(x_347, x_358); -lean_dec(x_347); -x_360 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10; -lean_inc(x_359); -x_361 = l_Lean_Syntax_isOfKind(x_359, x_360); -if (x_361 == 0) -{ -lean_object* x_362; uint8_t x_363; -x_362 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3; -lean_inc(x_359); -x_363 = l_Lean_Syntax_isOfKind(x_359, x_362); -if (x_363 == 0) -{ -lean_object* x_364; uint8_t x_365; -x_364 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5; -lean_inc(x_359); -x_365 = l_Lean_Syntax_isOfKind(x_359, x_364); -if (x_365 == 0) -{ -lean_object* x_366; uint8_t x_367; -x_366 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7; -lean_inc(x_359); -x_367 = l_Lean_Syntax_isOfKind(x_359, x_366); +x_366 = l_Lean_Elab_Term_expandDbgTrace___closed__17; +lean_inc(x_364); +x_367 = l_Lean_Syntax_isOfKind(x_364, x_366); if (x_367 == 0) { -lean_object* x_368; uint8_t x_369; -x_368 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9; -lean_inc(x_359); -x_369 = l_Lean_Syntax_isOfKind(x_359, x_368); -if (x_369 == 0) +lean_object* x_368; lean_object* x_369; +lean_dec(x_364); +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_368 = lean_box(0); +x_369 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_365); +return x_369; +} +else { -lean_object* x_370; uint8_t x_371; -x_370 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11; -lean_inc(x_359); -x_371 = l_Lean_Syntax_isOfKind(x_359, x_370); -if (x_371 == 0) -{ -lean_object* x_372; uint8_t x_373; -x_372 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13; -lean_inc(x_359); -x_373 = l_Lean_Syntax_isOfKind(x_359, x_372); +lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; +x_370 = lean_unsigned_to_nat(1u); +x_371 = l_Lean_Syntax_getArg(x_364, x_370); +x_372 = l_Lean_Elab_Term_expandDbgTrace___closed__19; +lean_inc(x_371); +x_373 = l_Lean_Syntax_isOfKind(x_371, x_372); if (x_373 == 0) { -lean_object* x_374; uint8_t x_375; -x_374 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15; -lean_inc(x_359); -x_375 = l_Lean_Syntax_isOfKind(x_359, x_374); -if (x_375 == 0) -{ -lean_object* x_376; lean_object* x_377; -lean_dec(x_359); -lean_dec(x_353); -lean_dec(x_340); +lean_object* x_374; lean_object* x_375; +lean_dec(x_371); +lean_dec(x_364); 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_376 = lean_box(0); -x_377 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_341); -return x_377; +x_374 = lean_box(0); +x_375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_365); +return x_375; } else { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; size_t x_385; size_t x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; -x_378 = l_Lean_Syntax_getArg(x_359, x_346); -x_379 = lean_unsigned_to_nat(2u); -x_380 = l_Lean_Syntax_getArg(x_359, x_379); -lean_dec(x_359); -x_381 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_382 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52; -x_383 = lean_array_push(x_382, x_380); -x_384 = lean_array_get_size(x_383); -x_385 = lean_usize_of_nat(x_384); -lean_dec(x_384); -x_386 = 0; -x_387 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_388 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(x_387, x_385, x_386, x_383); -x_389 = lean_array_get_size(x_381); -x_390 = lean_array_get_size(x_388); -x_391 = lean_nat_dec_eq(x_389, x_390); -lean_dec(x_390); -lean_dec(x_389); +lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; +x_376 = lean_unsigned_to_nat(0u); +x_377 = l_Lean_Syntax_getArg(x_371, x_376); +x_378 = l_Lean_Syntax_getArg(x_371, x_370); +x_379 = l_Lean_Syntax_matchesNull(x_378, x_376); +if (x_379 == 0) +{ +lean_object* x_380; lean_object* x_381; +lean_dec(x_377); +lean_dec(x_371); +lean_dec(x_364); +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_380 = lean_box(0); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_380); +lean_ctor_set(x_381, 1, x_365); +return x_381; +} +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; uint8_t x_385; +x_382 = lean_unsigned_to_nat(3u); +x_383 = l_Lean_Syntax_getArg(x_371, x_382); +lean_dec(x_371); +x_384 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10; +lean_inc(x_383); +x_385 = l_Lean_Syntax_isOfKind(x_383, x_384); +if (x_385 == 0) +{ +lean_object* x_386; uint8_t x_387; +x_386 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3; +lean_inc(x_383); +x_387 = l_Lean_Syntax_isOfKind(x_383, x_386); +if (x_387 == 0) +{ +lean_object* x_388; uint8_t x_389; +x_388 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5; +lean_inc(x_383); +x_389 = l_Lean_Syntax_isOfKind(x_383, x_388); +if (x_389 == 0) +{ +lean_object* x_390; uint8_t x_391; +x_390 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7; +lean_inc(x_383); +x_391 = l_Lean_Syntax_isOfKind(x_383, x_390); if (x_391 == 0) { -lean_object* x_392; lean_object* x_393; -lean_dec(x_388); -lean_dec(x_381); -lean_dec(x_378); -lean_dec(x_340); +lean_object* x_392; uint8_t x_393; +x_392 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9; +lean_inc(x_383); +x_393 = l_Lean_Syntax_isOfKind(x_383, x_392); +if (x_393 == 0) +{ +lean_object* x_394; uint8_t x_395; +x_394 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11; +lean_inc(x_383); +x_395 = l_Lean_Syntax_isOfKind(x_383, x_394); +if (x_395 == 0) +{ +lean_object* x_396; uint8_t x_397; +x_396 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13; +lean_inc(x_383); +x_397 = l_Lean_Syntax_isOfKind(x_383, x_396); +if (x_397 == 0) +{ +lean_object* x_398; uint8_t x_399; +x_398 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15; +lean_inc(x_383); +x_399 = l_Lean_Syntax_isOfKind(x_383, x_398); +if (x_399 == 0) +{ +lean_object* x_400; lean_object* x_401; +lean_dec(x_383); +lean_dec(x_377); +lean_dec(x_364); 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_392 = lean_box(0); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_341); -return x_393; +x_400 = lean_box(0); +x_401 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_365); +return x_401; } else { -uint8_t x_394; -x_394 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(x_340, x_387, lean_box(0), x_381, x_388, x_352); -lean_dec(x_388); -lean_dec(x_381); -lean_dec(x_340); -if (x_394 == 0) +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; size_t x_409; size_t x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; +x_402 = l_Lean_Syntax_getArg(x_383, x_370); +x_403 = lean_unsigned_to_nat(2u); +x_404 = l_Lean_Syntax_getArg(x_383, x_403); +lean_dec(x_383); +x_405 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_406 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52; +x_407 = lean_array_push(x_406, x_404); +x_408 = lean_array_get_size(x_407); +x_409 = lean_usize_of_nat(x_408); +lean_dec(x_408); +x_410 = 0; +x_411 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_412 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(x_411, x_409, x_410, x_407); +x_413 = lean_array_get_size(x_405); +x_414 = lean_array_get_size(x_412); +x_415 = lean_nat_dec_eq(x_413, x_414); +lean_dec(x_414); +lean_dec(x_413); +if (x_415 == 0) { -lean_object* x_395; lean_object* x_396; -lean_dec(x_378); +lean_object* x_416; lean_object* x_417; +lean_dec(x_412); +lean_dec(x_405); +lean_dec(x_402); +lean_dec(x_364); 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_395 = lean_box(0); -x_396 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_396, 0, x_395); -lean_ctor_set(x_396, 1, x_341); -return x_396; +x_416 = lean_box(0); +x_417 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_365); +return x_417; } else { -lean_object* x_397; uint8_t x_398; lean_object* x_399; -x_397 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_398 = 0; -x_399 = l_Lean_Elab_Term_resolveId_x3f(x_378, x_397, x_398, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_399) == 0) +uint8_t x_418; +x_418 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(x_364, x_411, lean_box(0), x_405, x_412, x_376); +lean_dec(x_412); +lean_dec(x_405); +lean_dec(x_364); +if (x_418 == 0) { -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 1); -lean_inc(x_401); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_402 = x_399; -} else { - lean_dec_ref(x_399); - x_402 = lean_box(0); -} -if (lean_is_scalar(x_402)) { - x_403 = lean_alloc_ctor(0, 2, 0); -} else { - x_403 = x_402; -} -lean_ctor_set(x_403, 0, x_400); -lean_ctor_set(x_403, 1, x_401); -return x_403; -} -else -{ -lean_object* x_404; lean_object* x_405; lean_object* x_406; uint8_t x_407; -x_404 = lean_ctor_get(x_399, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_399, 1); -lean_inc(x_405); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_406 = x_399; -} else { - lean_dec_ref(x_399); - x_406 = lean_box(0); -} -x_407 = l_Lean_Exception_isRuntime(x_404); -if (x_407 == 0) -{ -lean_object* x_408; lean_object* x_409; -lean_dec(x_404); -x_408 = lean_box(0); -if (lean_is_scalar(x_406)) { - x_409 = lean_alloc_ctor(0, 2, 0); -} else { - x_409 = x_406; - lean_ctor_set_tag(x_409, 0); -} -lean_ctor_set(x_409, 0, x_408); -lean_ctor_set(x_409, 1, x_405); -return x_409; -} -else -{ -lean_object* x_410; -if (lean_is_scalar(x_406)) { - x_410 = lean_alloc_ctor(1, 2, 0); -} else { - x_410 = x_406; -} -lean_ctor_set(x_410, 0, x_404); -lean_ctor_set(x_410, 1, x_405); -return x_410; -} -} -} -} -} -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; size_t x_420; size_t x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; uint8_t x_426; -x_411 = l_Lean_Syntax_getArg(x_359, x_346); -x_412 = lean_unsigned_to_nat(2u); -x_413 = l_Lean_Syntax_getArg(x_359, x_412); -x_414 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_415 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_416 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_417 = lean_array_push(x_416, x_413); -x_418 = lean_array_push(x_417, x_414); -x_419 = lean_array_get_size(x_418); -x_420 = lean_usize_of_nat(x_419); -lean_dec(x_419); -x_421 = 0; -x_422 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_423 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_422, x_420, x_421, x_418); -x_424 = lean_array_get_size(x_415); -x_425 = lean_array_get_size(x_423); -x_426 = lean_nat_dec_eq(x_424, x_425); -lean_dec(x_425); -lean_dec(x_424); -if (x_426 == 0) -{ -lean_object* x_427; lean_object* x_428; -lean_dec(x_423); -lean_dec(x_415); -lean_dec(x_411); -lean_dec(x_340); +lean_object* x_419; lean_object* x_420; +lean_dec(x_402); 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_427 = lean_box(0); -x_428 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_341); -return x_428; +x_419 = lean_box(0); +x_420 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_420, 0, x_419); +lean_ctor_set(x_420, 1, x_365); +return x_420; } else { -uint8_t x_429; -x_429 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_340, x_422, lean_box(0), x_415, x_423, x_352); -lean_dec(x_423); -lean_dec(x_415); -lean_dec(x_340); -if (x_429 == 0) +lean_object* x_421; uint8_t x_422; lean_object* x_423; +x_421 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_422 = 0; +x_423 = l_Lean_Elab_Term_resolveId_x3f(x_402, x_421, x_422, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_423) == 0) { -lean_object* x_430; lean_object* x_431; -lean_dec(x_411); -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_430 = lean_box(0); -x_431 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_341); -return x_431; +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_426 = x_423; +} else { + lean_dec_ref(x_423); + x_426 = lean_box(0); +} +if (lean_is_scalar(x_426)) { + x_427 = lean_alloc_ctor(0, 2, 0); +} else { + x_427 = x_426; +} +lean_ctor_set(x_427, 0, x_424); +lean_ctor_set(x_427, 1, x_425); +return x_427; } else { -lean_object* x_432; uint8_t x_433; lean_object* x_434; -x_432 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_433 = 0; -x_434 = l_Lean_Elab_Term_resolveId_x3f(x_411, x_432, x_433, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_434) == 0) +lean_object* x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; +x_428 = lean_ctor_get(x_423, 0); +lean_inc(x_428); +x_429 = lean_ctor_get(x_423, 1); +lean_inc(x_429); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_430 = x_423; +} else { + lean_dec_ref(x_423); + x_430 = lean_box(0); +} +x_431 = l_Lean_Exception_isInterrupt(x_428); +if (x_431 == 0) { -lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_435 = lean_ctor_get(x_434, 0); -lean_inc(x_435); -x_436 = lean_ctor_get(x_434, 1); -lean_inc(x_436); -if (lean_is_exclusive(x_434)) { - lean_ctor_release(x_434, 0); - lean_ctor_release(x_434, 1); - x_437 = x_434; +uint8_t x_432; +x_432 = l_Lean_Exception_isRuntime(x_428); +if (x_432 == 0) +{ +lean_object* x_433; lean_object* x_434; +lean_dec(x_428); +x_433 = lean_box(0); +if (lean_is_scalar(x_430)) { + x_434 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_434); - x_437 = lean_box(0); + x_434 = x_430; + lean_ctor_set_tag(x_434, 0); } -if (lean_is_scalar(x_437)) { - x_438 = lean_alloc_ctor(0, 2, 0); -} else { - x_438 = x_437; -} -lean_ctor_set(x_438, 0, x_435); -lean_ctor_set(x_438, 1, x_436); -return x_438; +lean_ctor_set(x_434, 0, x_433); +lean_ctor_set(x_434, 1, x_429); +return x_434; } else { -lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; -x_439 = lean_ctor_get(x_434, 0); -lean_inc(x_439); -x_440 = lean_ctor_get(x_434, 1); -lean_inc(x_440); -if (lean_is_exclusive(x_434)) { - lean_ctor_release(x_434, 0); - lean_ctor_release(x_434, 1); - x_441 = x_434; +lean_object* x_435; +if (lean_is_scalar(x_430)) { + x_435 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_434); - x_441 = lean_box(0); + x_435 = x_430; } -x_442 = l_Lean_Exception_isRuntime(x_439); -if (x_442 == 0) -{ -lean_object* x_443; lean_object* x_444; -lean_dec(x_439); -x_443 = lean_box(0); -if (lean_is_scalar(x_441)) { - x_444 = lean_alloc_ctor(0, 2, 0); -} else { - x_444 = x_441; - lean_ctor_set_tag(x_444, 0); +lean_ctor_set(x_435, 0, x_428); +lean_ctor_set(x_435, 1, x_429); +return x_435; } -lean_ctor_set(x_444, 0, x_443); -lean_ctor_set(x_444, 1, x_440); -return x_444; } else { -lean_object* x_445; -if (lean_is_scalar(x_441)) { - x_445 = lean_alloc_ctor(1, 2, 0); +lean_object* x_436; +if (lean_is_scalar(x_430)) { + x_436 = lean_alloc_ctor(1, 2, 0); } else { - x_445 = x_441; + x_436 = x_430; } -lean_ctor_set(x_445, 0, x_439); -lean_ctor_set(x_445, 1, x_440); -return x_445; +lean_ctor_set(x_436, 0, x_428); +lean_ctor_set(x_436, 1, x_429); +return x_436; } } } @@ -17940,286 +17995,320 @@ return x_445; } else { -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; size_t x_455; size_t x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; -x_446 = l_Lean_Syntax_getArg(x_359, x_346); -x_447 = lean_unsigned_to_nat(2u); -x_448 = l_Lean_Syntax_getArg(x_359, x_447); -x_449 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_450 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_451 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_452 = lean_array_push(x_451, x_448); -x_453 = lean_array_push(x_452, x_449); -x_454 = lean_array_get_size(x_453); -x_455 = lean_usize_of_nat(x_454); -lean_dec(x_454); -x_456 = 0; -x_457 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_458 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_457, x_455, x_456, x_453); -x_459 = lean_array_get_size(x_450); -x_460 = lean_array_get_size(x_458); -x_461 = lean_nat_dec_eq(x_459, x_460); -lean_dec(x_460); -lean_dec(x_459); -if (x_461 == 0) -{ -lean_object* x_462; lean_object* x_463; -lean_dec(x_458); +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; size_t x_446; size_t x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; uint8_t x_452; +x_437 = l_Lean_Syntax_getArg(x_383, x_370); +x_438 = lean_unsigned_to_nat(2u); +x_439 = l_Lean_Syntax_getArg(x_383, x_438); +x_440 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_441 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_442 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_443 = lean_array_push(x_442, x_439); +x_444 = lean_array_push(x_443, x_440); +x_445 = lean_array_get_size(x_444); +x_446 = lean_usize_of_nat(x_445); +lean_dec(x_445); +x_447 = 0; +x_448 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_449 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_448, x_446, x_447, x_444); +x_450 = lean_array_get_size(x_441); +x_451 = lean_array_get_size(x_449); +x_452 = lean_nat_dec_eq(x_450, x_451); +lean_dec(x_451); lean_dec(x_450); -lean_dec(x_446); -lean_dec(x_340); +if (x_452 == 0) +{ +lean_object* x_453; lean_object* x_454; +lean_dec(x_449); +lean_dec(x_441); +lean_dec(x_437); +lean_dec(x_364); 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_462 = lean_box(0); -x_463 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_463, 0, x_462); -lean_ctor_set(x_463, 1, x_341); -return x_463; +x_453 = lean_box(0); +x_454 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_454, 0, x_453); +lean_ctor_set(x_454, 1, x_365); +return x_454; } else { -uint8_t x_464; -x_464 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_340, x_457, lean_box(0), x_450, x_458, x_352); -lean_dec(x_458); -lean_dec(x_450); -lean_dec(x_340); -if (x_464 == 0) +uint8_t x_455; +x_455 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_364, x_448, lean_box(0), x_441, x_449, x_376); +lean_dec(x_449); +lean_dec(x_441); +lean_dec(x_364); +if (x_455 == 0) { -lean_object* x_465; lean_object* x_466; -lean_dec(x_446); +lean_object* x_456; lean_object* x_457; +lean_dec(x_437); 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_465 = lean_box(0); -x_466 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_466, 0, x_465); -lean_ctor_set(x_466, 1, x_341); -return x_466; +x_456 = lean_box(0); +x_457 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_365); +return x_457; } else { -lean_object* x_467; uint8_t x_468; lean_object* x_469; -x_467 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_468 = 0; -x_469 = l_Lean_Elab_Term_resolveId_x3f(x_446, x_467, x_468, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_469) == 0) +lean_object* x_458; uint8_t x_459; lean_object* x_460; +x_458 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_459 = 0; +x_460 = l_Lean_Elab_Term_resolveId_x3f(x_437, x_458, x_459, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_460) == 0) { -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_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_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +x_462 = lean_ctor_get(x_460, 1); +lean_inc(x_462); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + x_463 = x_460; } else { - lean_dec_ref(x_469); - x_472 = lean_box(0); + lean_dec_ref(x_460); + x_463 = lean_box(0); } -if (lean_is_scalar(x_472)) { - x_473 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_463)) { + x_464 = lean_alloc_ctor(0, 2, 0); } else { - x_473 = x_472; + x_464 = x_463; } -lean_ctor_set(x_473, 0, x_470); -lean_ctor_set(x_473, 1, x_471); +lean_ctor_set(x_464, 0, x_461); +lean_ctor_set(x_464, 1, x_462); +return x_464; +} +else +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; uint8_t x_468; +x_465 = lean_ctor_get(x_460, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_460, 1); +lean_inc(x_466); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + x_467 = x_460; +} else { + lean_dec_ref(x_460); + x_467 = lean_box(0); +} +x_468 = l_Lean_Exception_isInterrupt(x_465); +if (x_468 == 0) +{ +uint8_t x_469; +x_469 = l_Lean_Exception_isRuntime(x_465); +if (x_469 == 0) +{ +lean_object* x_470; lean_object* x_471; +lean_dec(x_465); +x_470 = lean_box(0); +if (lean_is_scalar(x_467)) { + x_471 = lean_alloc_ctor(0, 2, 0); +} else { + x_471 = x_467; + lean_ctor_set_tag(x_471, 0); +} +lean_ctor_set(x_471, 0, x_470); +lean_ctor_set(x_471, 1, x_466); +return x_471; +} +else +{ +lean_object* x_472; +if (lean_is_scalar(x_467)) { + x_472 = lean_alloc_ctor(1, 2, 0); +} else { + x_472 = x_467; +} +lean_ctor_set(x_472, 0, x_465); +lean_ctor_set(x_472, 1, x_466); +return x_472; +} +} +else +{ +lean_object* x_473; +if (lean_is_scalar(x_467)) { + x_473 = lean_alloc_ctor(1, 2, 0); +} else { + x_473 = x_467; +} +lean_ctor_set(x_473, 0, x_465); +lean_ctor_set(x_473, 1, x_466); return x_473; } +} +} +} +} +} else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; uint8_t x_477; -x_474 = lean_ctor_get(x_469, 0); -lean_inc(x_474); -x_475 = lean_ctor_get(x_469, 1); -lean_inc(x_475); -if (lean_is_exclusive(x_469)) { - lean_ctor_release(x_469, 0); - lean_ctor_release(x_469, 1); - x_476 = x_469; -} else { - lean_dec_ref(x_469); - x_476 = lean_box(0); -} -x_477 = l_Lean_Exception_isRuntime(x_474); -if (x_477 == 0) +lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; size_t x_483; size_t x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; uint8_t x_489; +x_474 = l_Lean_Syntax_getArg(x_383, x_370); +x_475 = lean_unsigned_to_nat(2u); +x_476 = l_Lean_Syntax_getArg(x_383, x_475); +x_477 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_478 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_479 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_480 = lean_array_push(x_479, x_476); +x_481 = lean_array_push(x_480, x_477); +x_482 = lean_array_get_size(x_481); +x_483 = lean_usize_of_nat(x_482); +lean_dec(x_482); +x_484 = 0; +x_485 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_486 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_485, x_483, x_484, x_481); +x_487 = lean_array_get_size(x_478); +x_488 = lean_array_get_size(x_486); +x_489 = lean_nat_dec_eq(x_487, x_488); +lean_dec(x_488); +lean_dec(x_487); +if (x_489 == 0) { -lean_object* x_478; lean_object* x_479; +lean_object* x_490; lean_object* x_491; +lean_dec(x_486); +lean_dec(x_478); lean_dec(x_474); -x_478 = lean_box(0); -if (lean_is_scalar(x_476)) { - x_479 = lean_alloc_ctor(0, 2, 0); -} else { - x_479 = x_476; - lean_ctor_set_tag(x_479, 0); -} -lean_ctor_set(x_479, 0, x_478); -lean_ctor_set(x_479, 1, x_475); -return x_479; -} -else -{ -lean_object* x_480; -if (lean_is_scalar(x_476)) { - x_480 = lean_alloc_ctor(1, 2, 0); -} else { - x_480 = x_476; -} -lean_ctor_set(x_480, 0, x_474); -lean_ctor_set(x_480, 1, x_475); -return x_480; -} -} -} -} -} -} -else -{ -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; size_t x_490; size_t x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; -x_481 = l_Lean_Syntax_getArg(x_359, x_346); -x_482 = lean_unsigned_to_nat(2u); -x_483 = l_Lean_Syntax_getArg(x_359, x_482); -x_484 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_485 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_486 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_487 = lean_array_push(x_486, x_483); -x_488 = lean_array_push(x_487, x_484); -x_489 = lean_array_get_size(x_488); -x_490 = lean_usize_of_nat(x_489); -lean_dec(x_489); -x_491 = 0; -x_492 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_493 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_492, x_490, x_491, x_488); -x_494 = lean_array_get_size(x_485); -x_495 = lean_array_get_size(x_493); -x_496 = lean_nat_dec_eq(x_494, x_495); -lean_dec(x_495); -lean_dec(x_494); -if (x_496 == 0) -{ -lean_object* x_497; lean_object* x_498; -lean_dec(x_493); -lean_dec(x_485); -lean_dec(x_481); -lean_dec(x_340); +lean_dec(x_364); 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_497 = lean_box(0); -x_498 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_498, 0, x_497); -lean_ctor_set(x_498, 1, x_341); -return x_498; +x_490 = lean_box(0); +x_491 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_491, 0, x_490); +lean_ctor_set(x_491, 1, x_365); +return x_491; } else { -uint8_t x_499; -x_499 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_340, x_492, lean_box(0), x_485, x_493, x_352); -lean_dec(x_493); -lean_dec(x_485); -lean_dec(x_340); -if (x_499 == 0) +uint8_t x_492; +x_492 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_364, x_485, lean_box(0), x_478, x_486, x_376); +lean_dec(x_486); +lean_dec(x_478); +lean_dec(x_364); +if (x_492 == 0) { -lean_object* x_500; lean_object* x_501; -lean_dec(x_481); +lean_object* x_493; lean_object* x_494; +lean_dec(x_474); 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_500 = lean_box(0); -x_501 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_501, 0, x_500); -lean_ctor_set(x_501, 1, x_341); +x_493 = lean_box(0); +x_494 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_365); +return x_494; +} +else +{ +lean_object* x_495; uint8_t x_496; lean_object* x_497; +x_495 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_496 = 0; +x_497 = l_Lean_Elab_Term_resolveId_x3f(x_474, x_495, x_496, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_497) == 0) +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_497, 1); +lean_inc(x_499); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_500 = x_497; +} else { + lean_dec_ref(x_497); + x_500 = lean_box(0); +} +if (lean_is_scalar(x_500)) { + x_501 = lean_alloc_ctor(0, 2, 0); +} else { + x_501 = x_500; +} +lean_ctor_set(x_501, 0, x_498); +lean_ctor_set(x_501, 1, x_499); return x_501; } else { -lean_object* x_502; uint8_t x_503; lean_object* x_504; -x_502 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_503 = 0; -x_504 = l_Lean_Elab_Term_resolveId_x3f(x_481, x_502, x_503, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_504) == 0) -{ -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_505 = lean_ctor_get(x_504, 0); -lean_inc(x_505); -x_506 = lean_ctor_get(x_504, 1); -lean_inc(x_506); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - lean_ctor_release(x_504, 1); - x_507 = x_504; +lean_object* x_502; lean_object* x_503; lean_object* x_504; uint8_t x_505; +x_502 = lean_ctor_get(x_497, 0); +lean_inc(x_502); +x_503 = lean_ctor_get(x_497, 1); +lean_inc(x_503); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_504 = x_497; } else { - lean_dec_ref(x_504); - x_507 = lean_box(0); + lean_dec_ref(x_497); + x_504 = lean_box(0); } -if (lean_is_scalar(x_507)) { +x_505 = l_Lean_Exception_isInterrupt(x_502); +if (x_505 == 0) +{ +uint8_t x_506; +x_506 = l_Lean_Exception_isRuntime(x_502); +if (x_506 == 0) +{ +lean_object* x_507; lean_object* x_508; +lean_dec(x_502); +x_507 = lean_box(0); +if (lean_is_scalar(x_504)) { x_508 = lean_alloc_ctor(0, 2, 0); } else { - x_508 = x_507; + x_508 = x_504; + lean_ctor_set_tag(x_508, 0); } -lean_ctor_set(x_508, 0, x_505); -lean_ctor_set(x_508, 1, x_506); +lean_ctor_set(x_508, 0, x_507); +lean_ctor_set(x_508, 1, x_503); return x_508; } else { -lean_object* x_509; lean_object* x_510; lean_object* x_511; uint8_t x_512; -x_509 = lean_ctor_get(x_504, 0); -lean_inc(x_509); -x_510 = lean_ctor_get(x_504, 1); -lean_inc(x_510); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - lean_ctor_release(x_504, 1); - x_511 = x_504; +lean_object* x_509; +if (lean_is_scalar(x_504)) { + x_509 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_504); - x_511 = lean_box(0); + x_509 = x_504; } -x_512 = l_Lean_Exception_isRuntime(x_509); -if (x_512 == 0) -{ -lean_object* x_513; lean_object* x_514; -lean_dec(x_509); -x_513 = lean_box(0); -if (lean_is_scalar(x_511)) { - x_514 = lean_alloc_ctor(0, 2, 0); -} else { - x_514 = x_511; - lean_ctor_set_tag(x_514, 0); +lean_ctor_set(x_509, 0, x_502); +lean_ctor_set(x_509, 1, x_503); +return x_509; } -lean_ctor_set(x_514, 0, x_513); -lean_ctor_set(x_514, 1, x_510); -return x_514; } else { -lean_object* x_515; -if (lean_is_scalar(x_511)) { - x_515 = lean_alloc_ctor(1, 2, 0); +lean_object* x_510; +if (lean_is_scalar(x_504)) { + x_510 = lean_alloc_ctor(1, 2, 0); } else { - x_515 = x_511; + x_510 = x_504; } -lean_ctor_set(x_515, 0, x_509); -lean_ctor_set(x_515, 1, x_510); -return x_515; +lean_ctor_set(x_510, 0, x_502); +lean_ctor_set(x_510, 1, x_503); +return x_510; } } } @@ -18228,142 +18317,159 @@ return x_515; } else { -lean_object* x_516; lean_object* x_517; 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; size_t x_525; size_t x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; uint8_t x_531; -x_516 = l_Lean_Syntax_getArg(x_359, x_346); -x_517 = lean_unsigned_to_nat(2u); -x_518 = l_Lean_Syntax_getArg(x_359, x_517); -x_519 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_520 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_521 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_522 = lean_array_push(x_521, x_518); -x_523 = lean_array_push(x_522, x_519); -x_524 = lean_array_get_size(x_523); -x_525 = lean_usize_of_nat(x_524); +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; lean_object* x_518; lean_object* x_519; size_t x_520; size_t x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; +x_511 = l_Lean_Syntax_getArg(x_383, x_370); +x_512 = lean_unsigned_to_nat(2u); +x_513 = l_Lean_Syntax_getArg(x_383, x_512); +x_514 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_515 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_516 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_517 = lean_array_push(x_516, x_513); +x_518 = lean_array_push(x_517, x_514); +x_519 = lean_array_get_size(x_518); +x_520 = lean_usize_of_nat(x_519); +lean_dec(x_519); +x_521 = 0; +x_522 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_523 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_522, x_520, x_521, x_518); +x_524 = lean_array_get_size(x_515); +x_525 = lean_array_get_size(x_523); +x_526 = lean_nat_dec_eq(x_524, x_525); +lean_dec(x_525); lean_dec(x_524); -x_526 = 0; -x_527 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_528 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_527, x_525, x_526, x_523); -x_529 = lean_array_get_size(x_520); -x_530 = lean_array_get_size(x_528); -x_531 = lean_nat_dec_eq(x_529, x_530); -lean_dec(x_530); -lean_dec(x_529); -if (x_531 == 0) +if (x_526 == 0) { -lean_object* x_532; lean_object* x_533; -lean_dec(x_528); -lean_dec(x_520); -lean_dec(x_516); -lean_dec(x_340); +lean_object* x_527; lean_object* x_528; +lean_dec(x_523); +lean_dec(x_515); +lean_dec(x_511); +lean_dec(x_364); 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_532 = lean_box(0); -x_533 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_533, 0, x_532); -lean_ctor_set(x_533, 1, x_341); -return x_533; +x_527 = lean_box(0); +x_528 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_528, 0, x_527); +lean_ctor_set(x_528, 1, x_365); +return x_528; } else { -uint8_t x_534; -x_534 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_340, x_527, lean_box(0), x_520, x_528, x_352); -lean_dec(x_528); -lean_dec(x_520); -lean_dec(x_340); -if (x_534 == 0) +uint8_t x_529; +x_529 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_364, x_522, lean_box(0), x_515, x_523, x_376); +lean_dec(x_523); +lean_dec(x_515); +lean_dec(x_364); +if (x_529 == 0) { -lean_object* x_535; lean_object* x_536; -lean_dec(x_516); +lean_object* x_530; lean_object* x_531; +lean_dec(x_511); 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_535 = lean_box(0); -x_536 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_536, 0, x_535); -lean_ctor_set(x_536, 1, x_341); -return x_536; +x_530 = lean_box(0); +x_531 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_531, 0, x_530); +lean_ctor_set(x_531, 1, x_365); +return x_531; } else { -lean_object* x_537; uint8_t x_538; lean_object* x_539; -x_537 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_538 = 0; -x_539 = l_Lean_Elab_Term_resolveId_x3f(x_516, x_537, x_538, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_539) == 0) +lean_object* x_532; uint8_t x_533; lean_object* x_534; +x_532 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_533 = 0; +x_534 = l_Lean_Elab_Term_resolveId_x3f(x_511, x_532, x_533, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_534) == 0) { -lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; -x_540 = lean_ctor_get(x_539, 0); +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; +x_535 = lean_ctor_get(x_534, 0); +lean_inc(x_535); +x_536 = lean_ctor_get(x_534, 1); +lean_inc(x_536); +if (lean_is_exclusive(x_534)) { + lean_ctor_release(x_534, 0); + lean_ctor_release(x_534, 1); + x_537 = x_534; +} else { + lean_dec_ref(x_534); + x_537 = lean_box(0); +} +if (lean_is_scalar(x_537)) { + x_538 = lean_alloc_ctor(0, 2, 0); +} else { + x_538 = x_537; +} +lean_ctor_set(x_538, 0, x_535); +lean_ctor_set(x_538, 1, x_536); +return x_538; +} +else +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; uint8_t x_542; +x_539 = lean_ctor_get(x_534, 0); +lean_inc(x_539); +x_540 = lean_ctor_get(x_534, 1); lean_inc(x_540); -x_541 = lean_ctor_get(x_539, 1); -lean_inc(x_541); -if (lean_is_exclusive(x_539)) { - lean_ctor_release(x_539, 0); - lean_ctor_release(x_539, 1); - x_542 = x_539; +if (lean_is_exclusive(x_534)) { + lean_ctor_release(x_534, 0); + lean_ctor_release(x_534, 1); + x_541 = x_534; } else { - lean_dec_ref(x_539); - x_542 = lean_box(0); + lean_dec_ref(x_534); + x_541 = lean_box(0); } -if (lean_is_scalar(x_542)) { - x_543 = lean_alloc_ctor(0, 2, 0); +x_542 = l_Lean_Exception_isInterrupt(x_539); +if (x_542 == 0) +{ +uint8_t x_543; +x_543 = l_Lean_Exception_isRuntime(x_539); +if (x_543 == 0) +{ +lean_object* x_544; lean_object* x_545; +lean_dec(x_539); +x_544 = lean_box(0); +if (lean_is_scalar(x_541)) { + x_545 = lean_alloc_ctor(0, 2, 0); } else { - x_543 = x_542; + x_545 = x_541; + lean_ctor_set_tag(x_545, 0); } -lean_ctor_set(x_543, 0, x_540); -lean_ctor_set(x_543, 1, x_541); -return x_543; +lean_ctor_set(x_545, 0, x_544); +lean_ctor_set(x_545, 1, x_540); +return x_545; } else { -lean_object* x_544; lean_object* x_545; lean_object* x_546; uint8_t x_547; -x_544 = lean_ctor_get(x_539, 0); -lean_inc(x_544); -x_545 = lean_ctor_get(x_539, 1); -lean_inc(x_545); -if (lean_is_exclusive(x_539)) { - lean_ctor_release(x_539, 0); - lean_ctor_release(x_539, 1); - x_546 = x_539; +lean_object* x_546; +if (lean_is_scalar(x_541)) { + x_546 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_539); - x_546 = lean_box(0); + x_546 = x_541; } -x_547 = l_Lean_Exception_isRuntime(x_544); -if (x_547 == 0) -{ -lean_object* x_548; lean_object* x_549; -lean_dec(x_544); -x_548 = lean_box(0); -if (lean_is_scalar(x_546)) { - x_549 = lean_alloc_ctor(0, 2, 0); -} else { - x_549 = x_546; - lean_ctor_set_tag(x_549, 0); +lean_ctor_set(x_546, 0, x_539); +lean_ctor_set(x_546, 1, x_540); +return x_546; } -lean_ctor_set(x_549, 0, x_548); -lean_ctor_set(x_549, 1, x_545); -return x_549; } else { -lean_object* x_550; -if (lean_is_scalar(x_546)) { - x_550 = lean_alloc_ctor(1, 2, 0); +lean_object* x_547; +if (lean_is_scalar(x_541)) { + x_547 = lean_alloc_ctor(1, 2, 0); } else { - x_550 = x_546; + x_547 = x_541; } -lean_ctor_set(x_550, 0, x_544); -lean_ctor_set(x_550, 1, x_545); -return x_550; +lean_ctor_set(x_547, 0, x_539); +lean_ctor_set(x_547, 1, x_540); +return x_547; } } } @@ -18372,35 +18478,58 @@ return x_550; } else { -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; lean_object* x_559; size_t x_560; size_t x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; uint8_t x_566; -x_551 = l_Lean_Syntax_getArg(x_359, x_346); -x_552 = lean_unsigned_to_nat(2u); -x_553 = l_Lean_Syntax_getArg(x_359, x_552); -x_554 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_555 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_556 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; -x_557 = lean_array_push(x_556, x_553); -x_558 = lean_array_push(x_557, x_554); -x_559 = lean_array_get_size(x_558); -x_560 = lean_usize_of_nat(x_559); -lean_dec(x_559); -x_561 = 0; -x_562 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_563 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_562, x_560, x_561, x_558); -x_564 = lean_array_get_size(x_555); -x_565 = lean_array_get_size(x_563); -x_566 = lean_nat_dec_eq(x_564, x_565); -lean_dec(x_565); -lean_dec(x_564); +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; size_t x_557; size_t x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; uint8_t x_563; +x_548 = l_Lean_Syntax_getArg(x_383, x_370); +x_549 = lean_unsigned_to_nat(2u); +x_550 = l_Lean_Syntax_getArg(x_383, x_549); +x_551 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_552 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_553 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_554 = lean_array_push(x_553, x_550); +x_555 = lean_array_push(x_554, x_551); +x_556 = lean_array_get_size(x_555); +x_557 = lean_usize_of_nat(x_556); +lean_dec(x_556); +x_558 = 0; +x_559 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_560 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_559, x_557, x_558, x_555); +x_561 = lean_array_get_size(x_552); +x_562 = lean_array_get_size(x_560); +x_563 = lean_nat_dec_eq(x_561, x_562); +lean_dec(x_562); +lean_dec(x_561); +if (x_563 == 0) +{ +lean_object* x_564; lean_object* x_565; +lean_dec(x_560); +lean_dec(x_552); +lean_dec(x_548); +lean_dec(x_364); +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_564 = lean_box(0); +x_565 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_565, 0, x_564); +lean_ctor_set(x_565, 1, x_365); +return x_565; +} +else +{ +uint8_t x_566; +x_566 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_364, x_559, lean_box(0), x_552, x_560, x_376); +lean_dec(x_560); +lean_dec(x_552); +lean_dec(x_364); if (x_566 == 0) { lean_object* x_567; lean_object* x_568; -lean_dec(x_563); -lean_dec(x_555); -lean_dec(x_551); -lean_dec(x_340); +lean_dec(x_548); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -18410,105 +18539,99 @@ lean_dec(x_2); x_567 = lean_box(0); x_568 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_568, 0, x_567); -lean_ctor_set(x_568, 1, x_341); +lean_ctor_set(x_568, 1, x_365); return x_568; } else { -uint8_t x_569; -x_569 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_340, x_562, lean_box(0), x_555, x_563, x_352); -lean_dec(x_563); -lean_dec(x_555); -lean_dec(x_340); -if (x_569 == 0) +lean_object* x_569; uint8_t x_570; lean_object* x_571; +x_569 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_570 = 0; +x_571 = l_Lean_Elab_Term_resolveId_x3f(x_548, x_569, x_570, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_571) == 0) { -lean_object* x_570; lean_object* x_571; -lean_dec(x_551); -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_570 = lean_box(0); -x_571 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_571, 0, x_570); -lean_ctor_set(x_571, 1, x_341); -return x_571; +lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_572 = lean_ctor_get(x_571, 0); +lean_inc(x_572); +x_573 = lean_ctor_get(x_571, 1); +lean_inc(x_573); +if (lean_is_exclusive(x_571)) { + lean_ctor_release(x_571, 0); + lean_ctor_release(x_571, 1); + x_574 = x_571; +} else { + lean_dec_ref(x_571); + x_574 = lean_box(0); +} +if (lean_is_scalar(x_574)) { + x_575 = lean_alloc_ctor(0, 2, 0); +} else { + x_575 = x_574; +} +lean_ctor_set(x_575, 0, x_572); +lean_ctor_set(x_575, 1, x_573); +return x_575; } else { -lean_object* x_572; uint8_t x_573; lean_object* x_574; -x_572 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_573 = 0; -x_574 = l_Lean_Elab_Term_resolveId_x3f(x_551, x_572, x_573, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_574) == 0) -{ -lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_575 = lean_ctor_get(x_574, 0); -lean_inc(x_575); -x_576 = lean_ctor_get(x_574, 1); +lean_object* x_576; lean_object* x_577; lean_object* x_578; uint8_t x_579; +x_576 = lean_ctor_get(x_571, 0); lean_inc(x_576); -if (lean_is_exclusive(x_574)) { - lean_ctor_release(x_574, 0); - lean_ctor_release(x_574, 1); - x_577 = x_574; +x_577 = lean_ctor_get(x_571, 1); +lean_inc(x_577); +if (lean_is_exclusive(x_571)) { + lean_ctor_release(x_571, 0); + lean_ctor_release(x_571, 1); + x_578 = x_571; } else { - lean_dec_ref(x_574); - x_577 = lean_box(0); + lean_dec_ref(x_571); + x_578 = lean_box(0); } -if (lean_is_scalar(x_577)) { - x_578 = lean_alloc_ctor(0, 2, 0); +x_579 = l_Lean_Exception_isInterrupt(x_576); +if (x_579 == 0) +{ +uint8_t x_580; +x_580 = l_Lean_Exception_isRuntime(x_576); +if (x_580 == 0) +{ +lean_object* x_581; lean_object* x_582; +lean_dec(x_576); +x_581 = lean_box(0); +if (lean_is_scalar(x_578)) { + x_582 = lean_alloc_ctor(0, 2, 0); } else { - x_578 = x_577; + x_582 = x_578; + lean_ctor_set_tag(x_582, 0); } -lean_ctor_set(x_578, 0, x_575); -lean_ctor_set(x_578, 1, x_576); -return x_578; +lean_ctor_set(x_582, 0, x_581); +lean_ctor_set(x_582, 1, x_577); +return x_582; } else { -lean_object* x_579; lean_object* x_580; lean_object* x_581; uint8_t x_582; -x_579 = lean_ctor_get(x_574, 0); -lean_inc(x_579); -x_580 = lean_ctor_get(x_574, 1); -lean_inc(x_580); -if (lean_is_exclusive(x_574)) { - lean_ctor_release(x_574, 0); - lean_ctor_release(x_574, 1); - x_581 = x_574; +lean_object* x_583; +if (lean_is_scalar(x_578)) { + x_583 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_574); - x_581 = lean_box(0); + x_583 = x_578; } -x_582 = l_Lean_Exception_isRuntime(x_579); -if (x_582 == 0) +lean_ctor_set(x_583, 0, x_576); +lean_ctor_set(x_583, 1, x_577); +return x_583; +} +} +else { -lean_object* x_583; lean_object* x_584; -lean_dec(x_579); -x_583 = lean_box(0); -if (lean_is_scalar(x_581)) { - x_584 = lean_alloc_ctor(0, 2, 0); +lean_object* x_584; +if (lean_is_scalar(x_578)) { + x_584 = lean_alloc_ctor(1, 2, 0); } else { - x_584 = x_581; - lean_ctor_set_tag(x_584, 0); + x_584 = x_578; } -lean_ctor_set(x_584, 0, x_583); -lean_ctor_set(x_584, 1, x_580); +lean_ctor_set(x_584, 0, x_576); +lean_ctor_set(x_584, 1, x_577); return x_584; } -else -{ -lean_object* x_585; -if (lean_is_scalar(x_581)) { - x_585 = lean_alloc_ctor(1, 2, 0); -} else { - x_585 = x_581; -} -lean_ctor_set(x_585, 0, x_579); -lean_ctor_set(x_585, 1, x_580); -return x_585; -} } } } @@ -18516,287 +18639,320 @@ return x_585; } else { -lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; size_t x_595; size_t x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; -x_586 = l_Lean_Syntax_getArg(x_359, x_346); -x_587 = lean_unsigned_to_nat(2u); -x_588 = l_Lean_Syntax_getArg(x_359, x_587); -x_589 = l_Lean_Syntax_getArg(x_359, x_358); -lean_dec(x_359); -x_590 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_591 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; size_t x_594; size_t x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; uint8_t x_600; +x_585 = l_Lean_Syntax_getArg(x_383, x_370); +x_586 = lean_unsigned_to_nat(2u); +x_587 = l_Lean_Syntax_getArg(x_383, x_586); +x_588 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_589 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_590 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_591 = lean_array_push(x_590, x_587); x_592 = lean_array_push(x_591, x_588); -x_593 = lean_array_push(x_592, x_589); -x_594 = lean_array_get_size(x_593); -x_595 = lean_usize_of_nat(x_594); -lean_dec(x_594); -x_596 = 0; -x_597 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_598 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_597, x_595, x_596, x_593); -x_599 = lean_array_get_size(x_590); -x_600 = lean_array_get_size(x_598); -x_601 = lean_nat_dec_eq(x_599, x_600); -lean_dec(x_600); +x_593 = lean_array_get_size(x_592); +x_594 = lean_usize_of_nat(x_593); +lean_dec(x_593); +x_595 = 0; +x_596 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_597 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_596, x_594, x_595, x_592); +x_598 = lean_array_get_size(x_589); +x_599 = lean_array_get_size(x_597); +x_600 = lean_nat_dec_eq(x_598, x_599); lean_dec(x_599); -if (x_601 == 0) -{ -lean_object* x_602; lean_object* x_603; lean_dec(x_598); -lean_dec(x_590); -lean_dec(x_586); -lean_dec(x_340); +if (x_600 == 0) +{ +lean_object* x_601; lean_object* x_602; +lean_dec(x_597); +lean_dec(x_589); +lean_dec(x_585); +lean_dec(x_364); 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_602 = lean_box(0); -x_603 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_603, 0, x_602); -lean_ctor_set(x_603, 1, x_341); -return x_603; +x_601 = lean_box(0); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_601); +lean_ctor_set(x_602, 1, x_365); +return x_602; } else { -uint8_t x_604; -x_604 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_340, x_597, lean_box(0), x_590, x_598, x_352); -lean_dec(x_598); -lean_dec(x_590); -lean_dec(x_340); -if (x_604 == 0) +uint8_t x_603; +x_603 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_364, x_596, lean_box(0), x_589, x_597, x_376); +lean_dec(x_597); +lean_dec(x_589); +lean_dec(x_364); +if (x_603 == 0) { -lean_object* x_605; lean_object* x_606; -lean_dec(x_586); +lean_object* x_604; lean_object* x_605; +lean_dec(x_585); 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_605 = lean_box(0); -x_606 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_606, 0, x_605); -lean_ctor_set(x_606, 1, x_341); -return x_606; +x_604 = lean_box(0); +x_605 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_605, 0, x_604); +lean_ctor_set(x_605, 1, x_365); +return x_605; } else { -lean_object* x_607; uint8_t x_608; lean_object* x_609; -x_607 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_608 = 0; -x_609 = l_Lean_Elab_Term_resolveId_x3f(x_586, x_607, x_608, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_609) == 0) +lean_object* x_606; uint8_t x_607; lean_object* x_608; +x_606 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_607 = 0; +x_608 = l_Lean_Elab_Term_resolveId_x3f(x_585, x_606, x_607, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_608) == 0) { -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_610 = lean_ctor_get(x_609, 0); +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_609 = lean_ctor_get(x_608, 0); +lean_inc(x_609); +x_610 = lean_ctor_get(x_608, 1); lean_inc(x_610); -x_611 = lean_ctor_get(x_609, 1); -lean_inc(x_611); -if (lean_is_exclusive(x_609)) { - lean_ctor_release(x_609, 0); - lean_ctor_release(x_609, 1); - x_612 = x_609; +if (lean_is_exclusive(x_608)) { + lean_ctor_release(x_608, 0); + lean_ctor_release(x_608, 1); + x_611 = x_608; } else { - lean_dec_ref(x_609); - x_612 = lean_box(0); + lean_dec_ref(x_608); + x_611 = lean_box(0); } -if (lean_is_scalar(x_612)) { - x_613 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_611)) { + x_612 = lean_alloc_ctor(0, 2, 0); } else { - x_613 = x_612; + x_612 = x_611; } -lean_ctor_set(x_613, 0, x_610); -lean_ctor_set(x_613, 1, x_611); -return x_613; +lean_ctor_set(x_612, 0, x_609); +lean_ctor_set(x_612, 1, x_610); +return x_612; } else { -lean_object* x_614; lean_object* x_615; lean_object* x_616; uint8_t x_617; -x_614 = lean_ctor_get(x_609, 0); +lean_object* x_613; lean_object* x_614; lean_object* x_615; uint8_t x_616; +x_613 = lean_ctor_get(x_608, 0); +lean_inc(x_613); +x_614 = lean_ctor_get(x_608, 1); lean_inc(x_614); -x_615 = lean_ctor_get(x_609, 1); -lean_inc(x_615); -if (lean_is_exclusive(x_609)) { - lean_ctor_release(x_609, 0); - lean_ctor_release(x_609, 1); - x_616 = x_609; +if (lean_is_exclusive(x_608)) { + lean_ctor_release(x_608, 0); + lean_ctor_release(x_608, 1); + x_615 = x_608; } else { - lean_dec_ref(x_609); - x_616 = lean_box(0); + lean_dec_ref(x_608); + x_615 = lean_box(0); } -x_617 = l_Lean_Exception_isRuntime(x_614); +x_616 = l_Lean_Exception_isInterrupt(x_613); +if (x_616 == 0) +{ +uint8_t x_617; +x_617 = l_Lean_Exception_isRuntime(x_613); if (x_617 == 0) { lean_object* x_618; lean_object* x_619; -lean_dec(x_614); +lean_dec(x_613); x_618 = lean_box(0); -if (lean_is_scalar(x_616)) { +if (lean_is_scalar(x_615)) { x_619 = lean_alloc_ctor(0, 2, 0); } else { - x_619 = x_616; + x_619 = x_615; lean_ctor_set_tag(x_619, 0); } lean_ctor_set(x_619, 0, x_618); -lean_ctor_set(x_619, 1, x_615); +lean_ctor_set(x_619, 1, x_614); return x_619; } else { lean_object* x_620; -if (lean_is_scalar(x_616)) { +if (lean_is_scalar(x_615)) { x_620 = lean_alloc_ctor(1, 2, 0); } else { - x_620 = x_616; + x_620 = x_615; } -lean_ctor_set(x_620, 0, x_614); -lean_ctor_set(x_620, 1, x_615); +lean_ctor_set(x_620, 0, x_613); +lean_ctor_set(x_620, 1, x_614); return x_620; } } +else +{ +lean_object* x_621; +if (lean_is_scalar(x_615)) { + x_621 = lean_alloc_ctor(1, 2, 0); +} else { + x_621 = x_615; +} +lean_ctor_set(x_621, 0, x_613); +lean_ctor_set(x_621, 1, x_614); +return x_621; +} +} } } } } else { -lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; size_t x_626; size_t x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; uint8_t x_632; -x_621 = l_Lean_Syntax_getArg(x_359, x_352); -x_622 = l_Lean_Syntax_getArg(x_359, x_346); -lean_dec(x_359); -x_623 = l_Lean_Syntax_getArgs(x_622); -lean_dec(x_622); -x_624 = l_Lean_Syntax_getArgs(x_353); -lean_dec(x_353); -x_625 = lean_array_get_size(x_623); -x_626 = lean_usize_of_nat(x_625); -lean_dec(x_625); -x_627 = 0; -x_628 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_629 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_628, x_626, x_627, x_623); -x_630 = lean_array_get_size(x_624); -x_631 = lean_array_get_size(x_629); -x_632 = lean_nat_dec_eq(x_630, x_631); -lean_dec(x_631); +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_object* x_628; lean_object* x_629; lean_object* x_630; size_t x_631; size_t x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; uint8_t x_637; +x_622 = l_Lean_Syntax_getArg(x_383, x_370); +x_623 = lean_unsigned_to_nat(2u); +x_624 = l_Lean_Syntax_getArg(x_383, x_623); +x_625 = l_Lean_Syntax_getArg(x_383, x_382); +lean_dec(x_383); +x_626 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_627 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16; +x_628 = lean_array_push(x_627, x_624); +x_629 = lean_array_push(x_628, x_625); +x_630 = lean_array_get_size(x_629); +x_631 = lean_usize_of_nat(x_630); lean_dec(x_630); -if (x_632 == 0) +x_632 = 0; +x_633 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_634 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_633, x_631, x_632, x_629); +x_635 = lean_array_get_size(x_626); +x_636 = lean_array_get_size(x_634); +x_637 = lean_nat_dec_eq(x_635, x_636); +lean_dec(x_636); +lean_dec(x_635); +if (x_637 == 0) { -lean_object* x_633; lean_object* x_634; -lean_dec(x_629); -lean_dec(x_624); -lean_dec(x_621); -lean_dec(x_340); +lean_object* x_638; lean_object* x_639; +lean_dec(x_634); +lean_dec(x_626); +lean_dec(x_622); +lean_dec(x_364); 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_633 = lean_box(0); -x_634 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_634, 0, x_633); -lean_ctor_set(x_634, 1, x_341); -return x_634; +x_638 = lean_box(0); +x_639 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_639, 0, x_638); +lean_ctor_set(x_639, 1, x_365); +return x_639; } else { -uint8_t x_635; -x_635 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_340, x_628, lean_box(0), x_624, x_629, x_352); -lean_dec(x_629); -lean_dec(x_624); -lean_dec(x_340); -if (x_635 == 0) +uint8_t x_640; +x_640 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_364, x_633, lean_box(0), x_626, x_634, x_376); +lean_dec(x_634); +lean_dec(x_626); +lean_dec(x_364); +if (x_640 == 0) { -lean_object* x_636; lean_object* x_637; -lean_dec(x_621); +lean_object* x_641; lean_object* x_642; +lean_dec(x_622); 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_636 = lean_box(0); -x_637 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_637, 0, x_636); -lean_ctor_set(x_637, 1, x_341); -return x_637; +x_641 = lean_box(0); +x_642 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_642, 0, x_641); +lean_ctor_set(x_642, 1, x_365); +return x_642; } else { -lean_object* x_638; uint8_t x_639; lean_object* x_640; -x_638 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; -x_639 = 0; -x_640 = l_Lean_Elab_Term_resolveId_x3f(x_621, x_638, x_639, x_2, x_3, x_4, x_5, x_6, x_7, x_341); -if (lean_obj_tag(x_640) == 0) +lean_object* x_643; uint8_t x_644; lean_object* x_645; +x_643 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_644 = 0; +x_645 = l_Lean_Elab_Term_resolveId_x3f(x_622, x_643, x_644, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_645) == 0) { -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; -x_641 = lean_ctor_get(x_640, 0); -lean_inc(x_641); -x_642 = lean_ctor_get(x_640, 1); -lean_inc(x_642); -if (lean_is_exclusive(x_640)) { - lean_ctor_release(x_640, 0); - lean_ctor_release(x_640, 1); - x_643 = x_640; -} else { - lean_dec_ref(x_640); - x_643 = lean_box(0); -} -if (lean_is_scalar(x_643)) { - x_644 = lean_alloc_ctor(0, 2, 0); -} else { - x_644 = x_643; -} -lean_ctor_set(x_644, 0, x_641); -lean_ctor_set(x_644, 1, x_642); -return x_644; -} -else -{ -lean_object* x_645; lean_object* x_646; lean_object* x_647; uint8_t x_648; -x_645 = lean_ctor_get(x_640, 0); -lean_inc(x_645); -x_646 = lean_ctor_get(x_640, 1); +lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; +x_646 = lean_ctor_get(x_645, 0); lean_inc(x_646); -if (lean_is_exclusive(x_640)) { - lean_ctor_release(x_640, 0); - lean_ctor_release(x_640, 1); - x_647 = x_640; +x_647 = lean_ctor_get(x_645, 1); +lean_inc(x_647); +if (lean_is_exclusive(x_645)) { + lean_ctor_release(x_645, 0); + lean_ctor_release(x_645, 1); + x_648 = x_645; } else { - lean_dec_ref(x_640); - x_647 = lean_box(0); + lean_dec_ref(x_645); + x_648 = lean_box(0); } -x_648 = l_Lean_Exception_isRuntime(x_645); -if (x_648 == 0) -{ -lean_object* x_649; lean_object* x_650; -lean_dec(x_645); -x_649 = lean_box(0); -if (lean_is_scalar(x_647)) { - x_650 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_648)) { + x_649 = lean_alloc_ctor(0, 2, 0); } else { - x_650 = x_647; - lean_ctor_set_tag(x_650, 0); + x_649 = x_648; } -lean_ctor_set(x_650, 0, x_649); -lean_ctor_set(x_650, 1, x_646); -return x_650; +lean_ctor_set(x_649, 0, x_646); +lean_ctor_set(x_649, 1, x_647); +return x_649; } else { -lean_object* x_651; -if (lean_is_scalar(x_647)) { - x_651 = lean_alloc_ctor(1, 2, 0); +lean_object* x_650; lean_object* x_651; lean_object* x_652; uint8_t x_653; +x_650 = lean_ctor_get(x_645, 0); +lean_inc(x_650); +x_651 = lean_ctor_get(x_645, 1); +lean_inc(x_651); +if (lean_is_exclusive(x_645)) { + lean_ctor_release(x_645, 0); + lean_ctor_release(x_645, 1); + x_652 = x_645; } else { - x_651 = x_647; -} -lean_ctor_set(x_651, 0, x_645); -lean_ctor_set(x_651, 1, x_646); -return x_651; + lean_dec_ref(x_645); + x_652 = lean_box(0); } +x_653 = l_Lean_Exception_isInterrupt(x_650); +if (x_653 == 0) +{ +uint8_t x_654; +x_654 = l_Lean_Exception_isRuntime(x_650); +if (x_654 == 0) +{ +lean_object* x_655; lean_object* x_656; +lean_dec(x_650); +x_655 = lean_box(0); +if (lean_is_scalar(x_652)) { + x_656 = lean_alloc_ctor(0, 2, 0); +} else { + x_656 = x_652; + lean_ctor_set_tag(x_656, 0); +} +lean_ctor_set(x_656, 0, x_655); +lean_ctor_set(x_656, 1, x_651); +return x_656; +} +else +{ +lean_object* x_657; +if (lean_is_scalar(x_652)) { + x_657 = lean_alloc_ctor(1, 2, 0); +} else { + x_657 = x_652; +} +lean_ctor_set(x_657, 0, x_650); +lean_ctor_set(x_657, 1, x_651); +return x_657; } } +else +{ +lean_object* x_658; +if (lean_is_scalar(x_652)) { + x_658 = lean_alloc_ctor(1, 2, 0); +} else { + x_658 = x_652; } +lean_ctor_set(x_658, 0, x_650); +lean_ctor_set(x_658, 1, x_651); +return x_658; } } } @@ -18805,60 +18961,222 @@ return x_651; } else { -uint8_t x_652; +lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; size_t x_664; size_t x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; uint8_t x_670; +x_659 = l_Lean_Syntax_getArg(x_383, x_376); +x_660 = l_Lean_Syntax_getArg(x_383, x_370); +lean_dec(x_383); +x_661 = l_Lean_Syntax_getArgs(x_660); +lean_dec(x_660); +x_662 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_663 = lean_array_get_size(x_661); +x_664 = lean_usize_of_nat(x_663); +lean_dec(x_663); +x_665 = 0; +x_666 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_667 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_666, x_664, x_665, x_661); +x_668 = lean_array_get_size(x_662); +x_669 = lean_array_get_size(x_667); +x_670 = lean_nat_dec_eq(x_668, x_669); +lean_dec(x_669); +lean_dec(x_668); +if (x_670 == 0) +{ +lean_object* x_671; lean_object* x_672; +lean_dec(x_667); +lean_dec(x_662); +lean_dec(x_659); +lean_dec(x_364); 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_652 = !lean_is_exclusive(x_22); -if (x_652 == 0) +x_671 = lean_box(0); +x_672 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_672, 0, x_671); +lean_ctor_set(x_672, 1, x_365); +return x_672; +} +else +{ +uint8_t x_673; +x_673 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_364, x_666, lean_box(0), x_662, x_667, x_376); +lean_dec(x_667); +lean_dec(x_662); +lean_dec(x_364); +if (x_673 == 0) +{ +lean_object* x_674; lean_object* x_675; +lean_dec(x_659); +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_674 = lean_box(0); +x_675 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_675, 0, x_674); +lean_ctor_set(x_675, 1, x_365); +return x_675; +} +else +{ +lean_object* x_676; uint8_t x_677; lean_object* x_678; +x_676 = l_Lean_Elab_Term_expandCDot_x3f___closed__1; +x_677 = 0; +x_678 = l_Lean_Elab_Term_resolveId_x3f(x_659, x_676, x_677, x_2, x_3, x_4, x_5, x_6, x_7, x_365); +if (lean_obj_tag(x_678) == 0) +{ +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; +x_679 = lean_ctor_get(x_678, 0); +lean_inc(x_679); +x_680 = lean_ctor_get(x_678, 1); +lean_inc(x_680); +if (lean_is_exclusive(x_678)) { + lean_ctor_release(x_678, 0); + lean_ctor_release(x_678, 1); + x_681 = x_678; +} else { + lean_dec_ref(x_678); + x_681 = lean_box(0); +} +if (lean_is_scalar(x_681)) { + x_682 = lean_alloc_ctor(0, 2, 0); +} else { + x_682 = x_681; +} +lean_ctor_set(x_682, 0, x_679); +lean_ctor_set(x_682, 1, x_680); +return x_682; +} +else +{ +lean_object* x_683; lean_object* x_684; lean_object* x_685; uint8_t x_686; +x_683 = lean_ctor_get(x_678, 0); +lean_inc(x_683); +x_684 = lean_ctor_get(x_678, 1); +lean_inc(x_684); +if (lean_is_exclusive(x_678)) { + lean_ctor_release(x_678, 0); + lean_ctor_release(x_678, 1); + x_685 = x_678; +} else { + lean_dec_ref(x_678); + x_685 = lean_box(0); +} +x_686 = l_Lean_Exception_isInterrupt(x_683); +if (x_686 == 0) +{ +uint8_t x_687; +x_687 = l_Lean_Exception_isRuntime(x_683); +if (x_687 == 0) +{ +lean_object* x_688; lean_object* x_689; +lean_dec(x_683); +x_688 = lean_box(0); +if (lean_is_scalar(x_685)) { + x_689 = lean_alloc_ctor(0, 2, 0); +} else { + x_689 = x_685; + lean_ctor_set_tag(x_689, 0); +} +lean_ctor_set(x_689, 0, x_688); +lean_ctor_set(x_689, 1, x_684); +return x_689; +} +else +{ +lean_object* x_690; +if (lean_is_scalar(x_685)) { + x_690 = lean_alloc_ctor(1, 2, 0); +} else { + x_690 = x_685; +} +lean_ctor_set(x_690, 0, x_683); +lean_ctor_set(x_690, 1, x_684); +return x_690; +} +} +else +{ +lean_object* x_691; +if (lean_is_scalar(x_685)) { + x_691 = lean_alloc_ctor(1, 2, 0); +} else { + x_691 = x_685; +} +lean_ctor_set(x_691, 0, x_683); +lean_ctor_set(x_691, 1, x_684); +return x_691; +} +} +} +} +} +} +} +} +} +} +else +{ +uint8_t x_692; +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_692 = !lean_is_exclusive(x_22); +if (x_692 == 0) { return x_22; } else { -lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_653 = lean_ctor_get(x_22, 0); -x_654 = lean_ctor_get(x_22, 1); -lean_inc(x_654); -lean_inc(x_653); +lean_object* x_693; lean_object* x_694; lean_object* x_695; +x_693 = lean_ctor_get(x_22, 0); +x_694 = lean_ctor_get(x_22, 1); +lean_inc(x_694); +lean_inc(x_693); lean_dec(x_22); -x_655 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_655, 0, x_653); -lean_ctor_set(x_655, 1, x_654); -return x_655; +x_695 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_695, 0, x_693); +lean_ctor_set(x_695, 1, x_694); +return x_695; } } } } else { -uint8_t x_656; +uint8_t x_696; 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_656 = !lean_is_exclusive(x_10); -if (x_656 == 0) +x_696 = !lean_is_exclusive(x_10); +if (x_696 == 0) { return x_10; } else { -lean_object* x_657; lean_object* x_658; lean_object* x_659; -x_657 = lean_ctor_get(x_10, 0); -x_658 = lean_ctor_get(x_10, 1); -lean_inc(x_658); -lean_inc(x_657); +lean_object* x_697; lean_object* x_698; lean_object* x_699; +x_697 = lean_ctor_get(x_10, 0); +x_698 = lean_ctor_get(x_10, 1); +lean_inc(x_698); +lean_inc(x_697); lean_dec(x_10); -x_659 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_659, 0, x_657); -lean_ctor_set(x_659, 1, x_658); -return x_659; +x_699 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_699, 0, x_697); +lean_ctor_set(x_699, 1, x_698); +return x_699; } } } @@ -24270,7 +24588,7 @@ return x_32; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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, 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; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; x_19 = lean_expr_instantiate1(x_7, x_9); lean_inc(x_19); x_20 = lean_alloc_ctor(1, 1, 0); @@ -24297,117 +24615,126 @@ x_79 = lean_ctor_get(x_16, 9); lean_inc(x_79); x_80 = lean_ctor_get(x_16, 10); lean_inc(x_80); -x_81 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_82 = l_Lean_replaceRef(x_4, x_75); +x_81 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_82 = lean_ctor_get(x_16, 11); +lean_inc(x_82); +x_83 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_84 = l_Lean_replaceRef(x_4, x_75); lean_dec(x_75); -x_83 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_83, 0, x_70); -lean_ctor_set(x_83, 1, x_71); -lean_ctor_set(x_83, 2, x_72); -lean_ctor_set(x_83, 3, x_73); -lean_ctor_set(x_83, 4, x_74); -lean_ctor_set(x_83, 5, x_82); -lean_ctor_set(x_83, 6, x_76); -lean_ctor_set(x_83, 7, x_77); -lean_ctor_set(x_83, 8, x_78); -lean_ctor_set(x_83, 9, x_79); -lean_ctor_set(x_83, 10, x_80); -lean_ctor_set_uint8(x_83, sizeof(void*)*11, x_81); -x_84 = 1; +x_85 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_85, 0, x_70); +lean_ctor_set(x_85, 1, x_71); +lean_ctor_set(x_85, 2, x_72); +lean_ctor_set(x_85, 3, x_73); +lean_ctor_set(x_85, 4, x_74); +lean_ctor_set(x_85, 5, x_84); +lean_ctor_set(x_85, 6, x_76); +lean_ctor_set(x_85, 7, x_77); +lean_ctor_set(x_85, 8, x_78); +lean_ctor_set(x_85, 9, x_79); +lean_ctor_set(x_85, 10, x_80); +lean_ctor_set(x_85, 11, x_82); +lean_ctor_set_uint8(x_85, sizeof(void*)*12, x_81); +lean_ctor_set_uint8(x_85, sizeof(void*)*12 + 1, x_83); +x_86 = 1; lean_inc(x_17); -lean_inc(x_83); +lean_inc(x_85); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_20); lean_inc(x_4); -x_85 = l_Lean_Elab_Term_elabTerm(x_4, x_20, x_84, x_84, x_12, x_13, x_14, x_15, x_83, x_17, x_18); -if (lean_obj_tag(x_85) == 0) +x_87 = l_Lean_Elab_Term_elabTerm(x_4, x_20, x_86, x_86, x_12, x_13, x_14, x_15, x_85, x_17, x_18); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); lean_inc(x_17); -lean_inc(x_83); +lean_inc(x_85); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc_n(x_6, 2); -lean_inc(x_86); -x_88 = l_Lean_Elab_Term_ensureHasType(x_20, x_86, x_6, x_6, x_12, x_13, x_14, x_15, x_83, x_17, x_87); -if (lean_obj_tag(x_88) == 0) +lean_inc(x_88); +x_90 = l_Lean_Elab_Term_ensureHasType(x_20, x_88, x_6, x_6, x_12, x_13, x_14, x_15, x_85, x_17, x_89); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_86); -lean_dec(x_83); -lean_dec(x_19); -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_object* x_91; lean_object* x_92; lean_object* x_93; lean_dec(x_88); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_6); -x_21 = x_91; -x_22 = x_90; +lean_dec(x_85); +lean_dec(x_19); +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_6); +x_21 = x_93; +x_22 = x_92; goto block_69; } else { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_88); -if (x_92 == 0) +uint8_t x_94; +x_94 = !lean_is_exclusive(x_90); +if (x_94 == 0) { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_88, 0); -x_94 = lean_ctor_get(x_88, 1); -x_95 = l_Lean_Exception_isRuntime(x_93); -if (x_95 == 0) +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_90, 0); +x_96 = lean_ctor_get(x_90, 1); +x_97 = l_Lean_Exception_isInterrupt(x_95); +if (x_97 == 0) { -lean_object* x_96; -lean_free_object(x_88); +uint8_t x_98; +x_98 = l_Lean_Exception_isRuntime(x_95); +if (x_98 == 0) +{ +lean_object* x_99; +lean_free_object(x_90); lean_inc(x_17); -lean_inc(x_83); +lean_inc(x_85); lean_inc(x_15); lean_inc(x_14); -lean_inc(x_86); -x_96 = lean_infer_type(x_86, x_14, x_15, x_83, x_17, x_94); -if (lean_obj_tag(x_96) == 0) +lean_inc(x_88); +x_99 = lean_infer_type(x_88, x_14, x_15, x_85, x_17, x_96); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_box(0); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = lean_box(0); lean_inc(x_17); -lean_inc(x_83); +lean_inc(x_85); lean_inc(x_15); lean_inc(x_14); lean_inc(x_10); -x_100 = l_Lean_Meta_kabstract(x_97, x_10, x_99, x_14, x_15, x_83, x_17, x_98); -if (lean_obj_tag(x_100) == 0) +x_103 = l_Lean_Meta_kabstract(x_100, x_10, x_102, x_14, x_15, x_85, x_17, x_101); +if (lean_obj_tag(x_103) == 0) { -uint8_t x_101; -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_ctor_get(x_100, 0); -x_103 = lean_ctor_get(x_100, 1); -x_104 = l_Lean_Expr_hasLooseBVars(x_102); +uint8_t x_104; +x_104 = !lean_is_exclusive(x_103); if (x_104 == 0) { -lean_dec(x_102); -lean_dec(x_86); -lean_dec(x_83); +lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_105 = lean_ctor_get(x_103, 0); +x_106 = lean_ctor_get(x_103, 1); +x_107 = l_Lean_Expr_hasLooseBVars(x_105); +if (x_107 == 0) +{ +lean_dec(x_105); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24425,15 +24752,15 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -lean_ctor_set_tag(x_100, 1); -lean_ctor_set(x_100, 0, x_93); -return x_100; +lean_ctor_set_tag(x_103, 1); +lean_ctor_set(x_103, 0, x_95); +return x_103; } else { -lean_object* x_105; lean_object* x_106; -lean_free_object(x_100); -x_105 = lean_box(0); +lean_object* x_108; lean_object* x_109; +lean_free_object(x_103); +x_108 = lean_box(0); lean_inc(x_17); lean_inc(x_15); lean_inc(x_14); @@ -24443,22 +24770,22 @@ lean_inc(x_8); lean_inc(x_1); lean_inc(x_10); lean_inc(x_9); -x_106 = l_Lean_Elab_Term_elabSubst___lambda__9(x_102, x_9, x_19, x_93, x_10, x_1, x_86, x_8, x_6, x_105, x_12, x_13, x_14, x_15, x_83, x_17, x_103); -if (lean_obj_tag(x_106) == 0) +x_109 = l_Lean_Elab_Term_elabSubst___lambda__9(x_105, x_9, x_19, x_95, x_10, x_1, x_88, x_8, x_6, x_108, x_12, x_13, x_14, x_15, x_85, x_17, x_106); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_21 = x_107; -x_22 = x_108; +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_21 = x_110; +x_22 = x_111; goto block_69; } else { -uint8_t x_109; +uint8_t x_112; lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -24474,42 +24801,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_106); -if (x_109 == 0) +x_112 = !lean_is_exclusive(x_109); +if (x_112 == 0) { -return x_106; +return x_109; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_106, 0); -x_111 = lean_ctor_get(x_106, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_106); -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 -{ -lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_113 = lean_ctor_get(x_100, 0); -x_114 = lean_ctor_get(x_100, 1); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_109, 0); +x_114 = lean_ctor_get(x_109, 1); lean_inc(x_114); lean_inc(x_113); -lean_dec(x_100); -x_115 = l_Lean_Expr_hasLooseBVars(x_113); -if (x_115 == 0) +lean_dec(x_109); +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 { -lean_object* x_116; -lean_dec(x_113); -lean_dec(x_86); -lean_dec(x_83); +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_103, 0); +x_117 = lean_ctor_get(x_103, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_103); +x_118 = l_Lean_Expr_hasLooseBVars(x_116); +if (x_118 == 0) +{ +lean_object* x_119; +lean_dec(x_116); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24527,15 +24854,15 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_93); -lean_ctor_set(x_116, 1, x_114); -return x_116; +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_95); +lean_ctor_set(x_119, 1, x_117); +return x_119; } else { -lean_object* x_117; lean_object* x_118; -x_117 = lean_box(0); +lean_object* x_120; lean_object* x_121; +x_120 = lean_box(0); lean_inc(x_17); lean_inc(x_15); lean_inc(x_14); @@ -24545,22 +24872,22 @@ lean_inc(x_8); lean_inc(x_1); lean_inc(x_10); lean_inc(x_9); -x_118 = l_Lean_Elab_Term_elabSubst___lambda__9(x_113, x_9, x_19, x_93, x_10, x_1, x_86, x_8, x_6, x_117, x_12, x_13, x_14, x_15, x_83, x_17, x_114); -if (lean_obj_tag(x_118) == 0) +x_121 = l_Lean_Elab_Term_elabSubst___lambda__9(x_116, x_9, x_19, x_95, x_10, x_1, x_88, x_8, x_6, x_120, x_12, x_13, x_14, x_15, x_85, x_17, x_117); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_21 = x_119; -x_22 = x_120; +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_21 = x_122; +x_22 = x_123; goto block_69; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -24576,36 +24903,36 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_121 = lean_ctor_get(x_118, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_118, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_123 = x_118; +x_124 = lean_ctor_get(x_121, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_121, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_126 = x_121; } else { - lean_dec_ref(x_118); - x_123 = lean_box(0); + lean_dec_ref(x_121); + x_126 = lean_box(0); } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_124 = x_123; + x_127 = x_126; } -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } } } else { -uint8_t x_125; -lean_dec(x_93); -lean_dec(x_86); -lean_dec(x_83); +uint8_t x_128; +lean_dec(x_95); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24623,73 +24950,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_125 = !lean_is_exclusive(x_100); -if (x_125 == 0) +x_128 = !lean_is_exclusive(x_103); +if (x_128 == 0) { -return x_100; +return x_103; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_100, 0); -x_127 = lean_ctor_get(x_100, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_100); -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; -} -} -} -else -{ -uint8_t x_129; -lean_dec(x_93); -lean_dec(x_86); -lean_dec(x_83); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -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_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_129 = !lean_is_exclusive(x_96); -if (x_129 == 0) -{ -return x_96; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_96, 0); -x_131 = lean_ctor_get(x_96, 1); -lean_inc(x_131); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_103, 0); +x_130 = lean_ctor_get(x_103, 1); lean_inc(x_130); -lean_dec(x_96); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_inc(x_129); +lean_dec(x_103); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } else { -lean_dec(x_86); -lean_dec(x_83); +uint8_t x_132; +lean_dec(x_95); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24707,64 +24993,133 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_88; -} +x_132 = !lean_is_exclusive(x_99); +if (x_132 == 0) +{ +return x_99; } else { -lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_133 = lean_ctor_get(x_88, 0); -x_134 = lean_ctor_get(x_88, 1); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_99, 0); +x_134 = lean_ctor_get(x_99, 1); lean_inc(x_134); lean_inc(x_133); +lean_dec(x_99); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +} +else +{ lean_dec(x_88); -x_135 = l_Lean_Exception_isRuntime(x_133); -if (x_135 == 0) +lean_dec(x_85); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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); +return x_90; +} +} +else { -lean_object* x_136; -lean_inc(x_17); -lean_inc(x_83); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_86); -x_136 = lean_infer_type(x_86, x_14, x_15, x_83, x_17, x_134); -if (lean_obj_tag(x_136) == 0) +lean_dec(x_88); +lean_dec(x_85); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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); +return x_90; +} +} +else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_137 = lean_ctor_get(x_136, 0); +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_90, 0); +x_137 = lean_ctor_get(x_90, 1); lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = lean_box(0); +lean_inc(x_136); +lean_dec(x_90); +x_138 = l_Lean_Exception_isInterrupt(x_136); +if (x_138 == 0) +{ +uint8_t x_139; +x_139 = l_Lean_Exception_isRuntime(x_136); +if (x_139 == 0) +{ +lean_object* x_140; lean_inc(x_17); -lean_inc(x_83); +lean_inc(x_85); lean_inc(x_15); lean_inc(x_14); -lean_inc(x_10); -x_140 = l_Lean_Meta_kabstract(x_137, x_10, x_139, x_14, x_15, x_83, x_17, x_138); +lean_inc(x_88); +x_140 = lean_infer_type(x_88, x_14, x_15, x_85, x_17, x_137); if (lean_obj_tag(x_140) == 0) { -lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); x_142 = lean_ctor_get(x_140, 1); lean_inc(x_142); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_143 = x_140; -} else { - lean_dec_ref(x_140); - x_143 = lean_box(0); -} -x_144 = l_Lean_Expr_hasLooseBVars(x_141); -if (x_144 == 0) +lean_dec(x_140); +x_143 = lean_box(0); +lean_inc(x_17); +lean_inc(x_85); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_10); +x_144 = l_Lean_Meta_kabstract(x_141, x_10, x_143, x_14, x_15, x_85, x_17, x_142); +if (lean_obj_tag(x_144) == 0) { -lean_object* x_145; -lean_dec(x_141); -lean_dec(x_86); -lean_dec(x_83); +lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; +} else { + lean_dec_ref(x_144); + x_147 = lean_box(0); +} +x_148 = l_Lean_Expr_hasLooseBVars(x_145); +if (x_148 == 0) +{ +lean_object* x_149; +lean_dec(x_145); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24782,21 +25137,21 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_143)) { - x_145 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_145 = x_143; - lean_ctor_set_tag(x_145, 1); + x_149 = x_147; + lean_ctor_set_tag(x_149, 1); } -lean_ctor_set(x_145, 0, x_133); -lean_ctor_set(x_145, 1, x_142); -return x_145; +lean_ctor_set(x_149, 0, x_136); +lean_ctor_set(x_149, 1, x_146); +return x_149; } else { -lean_object* x_146; lean_object* x_147; -lean_dec(x_143); -x_146 = lean_box(0); +lean_object* x_150; lean_object* x_151; +lean_dec(x_147); +x_150 = lean_box(0); lean_inc(x_17); lean_inc(x_15); lean_inc(x_14); @@ -24806,67 +25161,22 @@ lean_inc(x_8); lean_inc(x_1); lean_inc(x_10); lean_inc(x_9); -x_147 = l_Lean_Elab_Term_elabSubst___lambda__9(x_141, x_9, x_19, x_133, x_10, x_1, x_86, x_8, x_6, x_146, x_12, x_13, x_14, x_15, x_83, x_17, x_142); -if (lean_obj_tag(x_147) == 0) +x_151 = l_Lean_Elab_Term_elabSubst___lambda__9(x_145, x_9, x_19, x_136, x_10, x_1, x_88, x_8, x_6, x_150, x_12, x_13, x_14, x_15, x_85, x_17, x_146); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_148; lean_object* x_149; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_21 = x_148; -x_22 = x_149; +lean_object* x_152; lean_object* x_153; +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_21 = x_152; +x_22 = x_153; goto block_69; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_17); -lean_dec(x_16); -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_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_150 = lean_ctor_get(x_147, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_147, 1); -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); -} -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_dec(x_133); -lean_dec(x_86); -lean_dec(x_83); -lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -24877,22 +25187,21 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_154 = lean_ctor_get(x_140, 0); +x_154 = lean_ctor_get(x_151, 0); lean_inc(x_154); -x_155 = lean_ctor_get(x_140, 1); +x_155 = lean_ctor_get(x_151, 1); lean_inc(x_155); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_156 = x_140; +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_140); + lean_dec_ref(x_151); x_156 = lean_box(0); } if (lean_is_scalar(x_156)) { @@ -24905,12 +25214,13 @@ lean_ctor_set(x_157, 1, x_155); return x_157; } } +} else { lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -lean_dec(x_133); -lean_dec(x_86); -lean_dec(x_83); +lean_dec(x_136); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24928,16 +25238,16 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_158 = lean_ctor_get(x_136, 0); +x_158 = lean_ctor_get(x_144, 0); lean_inc(x_158); -x_159 = lean_ctor_get(x_136, 1); +x_159 = lean_ctor_get(x_144, 1); lean_inc(x_159); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_160 = x_136; +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_160 = x_144; } else { - lean_dec_ref(x_136); + lean_dec_ref(x_144); x_160 = lean_box(0); } if (lean_is_scalar(x_160)) { @@ -24952,9 +25262,10 @@ return x_161; } else { -lean_object* x_162; -lean_dec(x_86); -lean_dec(x_83); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_136); +lean_dec(x_88); +lean_dec(x_85); lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); @@ -24972,18 +25283,90 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_133); -lean_ctor_set(x_162, 1, x_134); -return x_162; +x_162 = lean_ctor_get(x_140, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_140, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_164 = x_140; +} else { + lean_dec_ref(x_140); + x_164 = lean_box(0); +} +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); +} else { + x_165 = x_164; +} +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; +} +} +else +{ +lean_object* x_166; +lean_dec(x_88); +lean_dec(x_85); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_136); +lean_ctor_set(x_166, 1, x_137); +return x_166; +} +} +else +{ +lean_object* x_167; +lean_dec(x_88); +lean_dec(x_85); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_136); +lean_ctor_set(x_167, 1, x_137); +return x_167; } } } } else { -uint8_t x_163; -lean_dec(x_83); +uint8_t x_168; +lean_dec(x_85); lean_dec(x_20); lean_dec(x_19); lean_dec(x_17); @@ -25002,23 +25385,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_163 = !lean_is_exclusive(x_85); -if (x_163 == 0) +x_168 = !lean_is_exclusive(x_87); +if (x_168 == 0) { -return x_85; +return x_87; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_85, 0); -x_165 = lean_ctor_get(x_85, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_85); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_87, 0); +x_170 = lean_ctor_get(x_87, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_87); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } block_69: diff --git a/stage0/stdlib/Lean/Elab/BuiltinTerm.c b/stage0/stdlib/Lean/Elab/BuiltinTerm.c index 0aa1b35a8c..52f6c1d421 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinTerm.c +++ b/stage0/stdlib/Lean/Elab/BuiltinTerm.c @@ -105,6 +105,7 @@ static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec_ static lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx_declRange___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Term_elabClear___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*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabIncludeStr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__13; static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit_declRange___closed__4; @@ -167,7 +168,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStrLit___boxed(lean_object*, lean_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCharLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabOmission___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_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___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_throwErrorAt___at_Lean_Elab_Term_elabOpen___spec__7(lean_object*, 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*); @@ -1832,7 +1832,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -1844,7 +1844,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -1857,24 +1860,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -2258,49 +2263,53 @@ if (x_28 == 0) lean_object* x_29; lean_object* x_30; uint8_t x_31; x_29 = lean_ctor_get(x_19, 0); x_30 = lean_ctor_get(x_19, 1); -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -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; lean_object* x_41; lean_object* x_42; lean_object* x_43; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +uint8_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_free_object(x_19); lean_dec(x_29); -x_32 = 0; +x_33 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_33 = l_Lean_Elab_Term_SavedState_restore(x_15, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_30); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_ctor_get(x_5, 1); +x_34 = l_Lean_Elab_Term_SavedState_restore(x_15, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); -x_36 = l_Lean_Syntax_getId(x_11); +lean_dec(x_34); +x_36 = lean_ctor_get(x_5, 1); +lean_inc(x_36); +x_37 = l_Lean_Syntax_getId(x_11); lean_dec(x_11); lean_inc(x_1); -x_37 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_37, 0, x_1); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_35); -lean_ctor_set(x_37, 3, x_2); -lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_18); -x_38 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_34); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = lean_unsigned_to_nat(1u); -x_41 = l_Lean_Syntax_getArg(x_1, x_40); +x_38 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_38, 0, x_1); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_38, 2, x_36); +lean_ctor_set(x_38, 3, x_2); +lean_ctor_set_uint8(x_38, sizeof(void*)*4, x_18); +x_39 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_35); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_unsigned_to_nat(1u); +x_42 = l_Lean_Syntax_getArg(x_1, x_41); lean_dec(x_1); -x_42 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; -x_43 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_41, x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +x_43 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; +x_44 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_42, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_40); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_41); -return x_43; +lean_dec(x_42); +return x_44; } else { @@ -2319,58 +2328,6 @@ return x_19; } else { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_19, 0); -x_45 = lean_ctor_get(x_19, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_19); -x_46 = l_Lean_Exception_isRuntime(x_44); -if (x_46 == 0) -{ -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; lean_object* x_58; -lean_dec(x_44); -x_47 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_48 = l_Lean_Elab_Term_SavedState_restore(x_15, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_45); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_ctor_get(x_5, 1); -lean_inc(x_50); -x_51 = l_Lean_Syntax_getId(x_11); -lean_dec(x_11); -lean_inc(x_1); -x_52 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_52, 0, x_1); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_50); -lean_ctor_set(x_52, 3, x_2); -lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_18); -x_53 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_49); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_unsigned_to_nat(1u); -x_56 = l_Lean_Syntax_getArg(x_1, x_55); -lean_dec(x_1); -x_57 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; -x_58 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_56, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_54); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_56); -return x_58; -} -else -{ -lean_object* x_59; lean_dec(x_15); lean_dec(x_11); lean_dec(x_8); @@ -2381,10 +2338,100 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_44); -lean_ctor_set(x_59, 1, x_45); -return x_59; +return x_19; +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_19, 0); +x_46 = lean_ctor_get(x_19, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_19); +x_47 = l_Lean_Exception_isInterrupt(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +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_dec(x_45); +x_49 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_50 = l_Lean_Elab_Term_SavedState_restore(x_15, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_ctor_get(x_5, 1); +lean_inc(x_52); +x_53 = l_Lean_Syntax_getId(x_11); +lean_dec(x_11); +lean_inc(x_1); +x_54 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_54, 0, x_1); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_54, 2, x_52); +lean_ctor_set(x_54, 3, x_2); +lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_18); +x_55 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(x_54, x_3, x_4, x_5, x_6, x_7, x_8, x_51); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_unsigned_to_nat(1u); +x_58 = l_Lean_Syntax_getArg(x_1, x_57); +lean_dec(x_1); +x_59 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; +x_60 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_58, x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_56); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_58); +return x_60; +} +else +{ +lean_object* x_61; +lean_dec(x_15); +lean_dec(x_11); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_45); +lean_ctor_set(x_61, 1, x_46); +return x_61; +} +} +else +{ +lean_object* x_62; +lean_dec(x_15); +lean_dec(x_11); +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_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_45); +lean_ctor_set(x_62, 1, x_46); +return x_62; } } } @@ -2557,11 +2604,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHole(lean_object* x_1, lean_object _start: { uint8_t x_10; -x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); if (x_10 == 0) { uint8_t x_11; -x_11 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); +x_11 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); if (x_11 == 0) { 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; uint8_t x_19; @@ -3868,7 +3915,7 @@ x_11 = l_Lean_Name_isAnonymous(x_10); if (x_11 == 0) { uint8_t x_12; -x_12 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_12 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -4631,7 +4678,7 @@ return x_184; else { uint8_t x_185; -x_185 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_185 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); if (x_185 == 0) { uint8_t x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; @@ -4944,26 +4991,23 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = l_Lean_Elab_Term_elabOmission___closed__2; +lean_inc(x_8); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); x_11 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); lean_dec(x_11); x_13 = l_Lean_Elab_Term_elabHole(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_7); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabOmission___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_Term_elabOmission(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -return x_10; +return x_13; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabOmission___closed__1() { @@ -5010,7 +5054,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabOmission___closed__5 _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabOmission___boxed), 9, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabOmission), 9, 0); return x_1; } } @@ -16122,7 +16166,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -16134,7 +16178,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -16147,31 +16194,33 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); lean_dec(x_9); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_29; +return x_31; } } } @@ -16475,7 +16524,7 @@ return x_19; } 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; 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; uint8_t x_34; lean_object* x_35; +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; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; x_20 = lean_ctor_get(x_7, 0); x_21 = lean_ctor_get(x_7, 1); x_22 = lean_ctor_get(x_7, 2); @@ -16487,7 +16536,10 @@ x_27 = lean_ctor_get(x_7, 7); x_28 = lean_ctor_get(x_7, 8); x_29 = lean_ctor_get(x_7, 9); x_30 = lean_ctor_get(x_7, 10); -x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_32 = lean_ctor_get(x_7, 11); +x_33 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -16500,41 +16552,43 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_7); -x_32 = l_Lean_replaceRef(x_1, x_25); +x_34 = l_Lean_replaceRef(x_1, x_25); lean_dec(x_25); lean_dec(x_1); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); -x_34 = 0; -x_35 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Term_elabOpen___spec__9(x_10, x_34, x_2, x_3, x_4, x_5, x_6, x_33, x_8, x_9); +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_21); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_23); +lean_ctor_set(x_35, 4, x_24); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_33); +x_36 = 0; +x_37 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Term_elabOpen___spec__9(x_10, x_36, x_2, x_3, x_4, x_5, x_6, x_35, x_8, x_9); lean_dec(x_8); -lean_dec(x_33); +lean_dec(x_35); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_35; +return x_37; } } } else { -lean_object* x_36; lean_object* x_37; -x_36 = l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__6___closed__3; -x_37 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_37; +lean_object* x_38; lean_object* x_39; +x_38 = l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__6___closed__3; +x_39 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_39; } } } @@ -17320,7 +17374,7 @@ return x_22; } else { -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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_23 = lean_ctor_get(x_8, 0); x_24 = lean_ctor_get(x_8, 1); x_25 = lean_ctor_get(x_8, 2); @@ -17332,7 +17386,10 @@ x_30 = lean_ctor_get(x_8, 7); x_31 = lean_ctor_get(x_8, 8); x_32 = lean_ctor_get(x_8, 9); x_33 = lean_ctor_get(x_8, 10); -x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_35 = lean_ctor_get(x_8, 11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -17345,24 +17402,26 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_8); -x_35 = l_Lean_replaceRef(x_2, x_28); +x_37 = l_Lean_replaceRef(x_2, x_28); lean_dec(x_28); lean_dec(x_2); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); -x_37 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__13(x_12, x_3, x_4, x_5, x_6, x_7, x_36, x_9, x_16); -return x_37; +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); +x_39 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__13(x_12, x_3, x_4, x_5, x_6, x_7, x_38, x_9, x_16); +return x_39; } } else @@ -17381,43 +17440,46 @@ return x_13; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_13, 0); -x_39 = lean_ctor_get(x_13, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_13); -x_40 = lean_ctor_get(x_38, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_13, 0); +x_41 = lean_ctor_get(x_13, 1); +lean_inc(x_41); lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_12); -x_41 = l_Lean_Environment_contains(x_40, x_12); -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_47; lean_object* x_48; 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; lean_object* x_56; lean_object* x_57; -x_42 = lean_ctor_get(x_8, 0); +lean_dec(x_13); +x_42 = lean_ctor_get(x_40, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_8, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_8, 2); +lean_dec(x_40); +lean_inc(x_12); +x_43 = l_Lean_Environment_contains(x_42, x_12); +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; 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; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_44 = lean_ctor_get(x_8, 0); lean_inc(x_44); -x_45 = lean_ctor_get(x_8, 3); +x_45 = lean_ctor_get(x_8, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_8, 4); +x_46 = lean_ctor_get(x_8, 2); lean_inc(x_46); -x_47 = lean_ctor_get(x_8, 5); +x_47 = lean_ctor_get(x_8, 3); lean_inc(x_47); -x_48 = lean_ctor_get(x_8, 6); +x_48 = lean_ctor_get(x_8, 4); lean_inc(x_48); -x_49 = lean_ctor_get(x_8, 7); +x_49 = lean_ctor_get(x_8, 5); lean_inc(x_49); -x_50 = lean_ctor_get(x_8, 8); +x_50 = lean_ctor_get(x_8, 6); lean_inc(x_50); -x_51 = lean_ctor_get(x_8, 9); +x_51 = lean_ctor_get(x_8, 7); lean_inc(x_51); -x_52 = lean_ctor_get(x_8, 10); +x_52 = lean_ctor_get(x_8, 8); lean_inc(x_52); -x_53 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_53 = lean_ctor_get(x_8, 9); +lean_inc(x_53); +x_54 = lean_ctor_get(x_8, 10); +lean_inc(x_54); +x_55 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_56 = lean_ctor_get(x_8, 11); +lean_inc(x_56); +x_57 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); @@ -17430,37 +17492,40 @@ if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 8); lean_ctor_release(x_8, 9); lean_ctor_release(x_8, 10); - x_54 = x_8; + lean_ctor_release(x_8, 11); + x_58 = x_8; } else { lean_dec_ref(x_8); - x_54 = lean_box(0); + x_58 = lean_box(0); } -x_55 = l_Lean_replaceRef(x_2, x_47); -lean_dec(x_47); +x_59 = l_Lean_replaceRef(x_2, x_49); +lean_dec(x_49); lean_dec(x_2); -if (lean_is_scalar(x_54)) { - x_56 = lean_alloc_ctor(0, 11, 1); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 12, 2); } else { - x_56 = x_54; + x_60 = x_58; } -lean_ctor_set(x_56, 0, x_42); -lean_ctor_set(x_56, 1, x_43); -lean_ctor_set(x_56, 2, x_44); -lean_ctor_set(x_56, 3, x_45); -lean_ctor_set(x_56, 4, x_46); -lean_ctor_set(x_56, 5, x_55); -lean_ctor_set(x_56, 6, x_48); -lean_ctor_set(x_56, 7, x_49); -lean_ctor_set(x_56, 8, x_50); -lean_ctor_set(x_56, 9, x_51); -lean_ctor_set(x_56, 10, x_52); -lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_53); -x_57 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__13(x_12, x_3, x_4, x_5, x_6, x_7, x_56, x_9, x_39); -return x_57; +lean_ctor_set(x_60, 0, x_44); +lean_ctor_set(x_60, 1, x_45); +lean_ctor_set(x_60, 2, x_46); +lean_ctor_set(x_60, 3, x_47); +lean_ctor_set(x_60, 4, x_48); +lean_ctor_set(x_60, 5, x_59); +lean_ctor_set(x_60, 6, x_50); +lean_ctor_set(x_60, 7, x_51); +lean_ctor_set(x_60, 8, x_52); +lean_ctor_set(x_60, 9, x_53); +lean_ctor_set(x_60, 10, x_54); +lean_ctor_set(x_60, 11, x_56); +lean_ctor_set_uint8(x_60, sizeof(void*)*12, x_55); +lean_ctor_set_uint8(x_60, sizeof(void*)*12 + 1, x_57); +x_61 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__13(x_12, x_3, x_4, x_5, x_6, x_7, x_60, x_9, x_41); +return x_61; } else { -lean_object* x_58; +lean_object* x_62; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -17469,10 +17534,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_12); -lean_ctor_set(x_58, 1, x_39); -return x_58; +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_12); +lean_ctor_set(x_62, 1, x_41); +return x_62; } } } @@ -18877,13 +18942,17 @@ if (x_23 == 0) lean_object* x_24; lean_object* x_25; uint8_t x_26; x_24 = lean_ctor_get(x_18, 0); x_25 = lean_ctor_get(x_18, 1); -x_26 = l_Lean_Exception_isRuntime(x_24); +x_26 = l_Lean_Exception_isInterrupt(x_24); if (x_26 == 0) { -lean_object* x_27; +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +lean_object* x_28; lean_free_object(x_18); -x_27 = lean_array_push(x_16, x_24); -lean_ctor_set(x_3, 0, x_27); +x_28 = lean_array_push(x_16, x_24); +lean_ctor_set(x_3, 0, x_28); x_2 = x_14; x_11 = x_25; goto _start; @@ -18907,25 +18976,6 @@ return x_18; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_18, 0); -x_30 = lean_ctor_get(x_18, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_18); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = lean_array_push(x_16, x_29); -lean_ctor_set(x_3, 0, x_32); -x_2 = x_14; -x_11 = x_30; -goto _start; -} -else -{ -lean_object* x_34; lean_free_object(x_3); lean_dec(x_17); lean_dec(x_16); @@ -18938,82 +18988,37 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_30); -return x_34; -} -} +return x_18; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_3, 0); -x_36 = lean_ctor_get(x_3, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_3); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_37 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__12(x_13, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_37) == 0) +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_32 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_array_push(x_36, x_38); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_40); +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_array_push(x_16, x_30); +lean_ctor_set(x_3, 0, x_34); x_2 = x_14; -x_3 = x_41; -x_11 = x_39; +x_11 = x_31; goto _start; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_43 = lean_ctor_get(x_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -x_46 = l_Lean_Exception_isRuntime(x_43); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -lean_dec(x_45); -x_47 = lean_array_push(x_35, x_43); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_36); -x_2 = x_14; -x_3 = x_48; -x_11 = x_44; -goto _start; -} -else -{ -lean_object* x_50; -lean_dec(x_36); -lean_dec(x_35); +lean_object* x_36; +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -19023,14 +19028,148 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -if (lean_is_scalar(x_45)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_45; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_31); +return x_36; } -lean_ctor_set(x_50, 0, x_43); -lean_ctor_set(x_50, 1, x_44); -return x_50; +} +else +{ +lean_object* x_37; +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); +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_5); +lean_dec(x_4); +lean_dec(x_1); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_31); +return x_37; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_3, 0); +x_39 = lean_ctor_get(x_3, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_40 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__12(x_13, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +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 = 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_array_push(x_39, x_41); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +x_2 = x_14; +x_3 = x_44; +x_11 = x_42; +goto _start; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_46 = lean_ctor_get(x_40, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_48 = x_40; +} else { + lean_dec_ref(x_40); + x_48 = lean_box(0); +} +x_49 = l_Lean_Exception_isInterrupt(x_46); +if (x_49 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_46); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_48); +x_51 = lean_array_push(x_38, x_46); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_39); +x_2 = x_14; +x_3 = x_52; +x_11 = x_47; +goto _start; +} +else +{ +lean_object* x_54; +lean_dec(x_39); +lean_dec(x_38); +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_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_48)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_48; +} +lean_ctor_set(x_54, 0, x_46); +lean_ctor_set(x_54, 1, x_47); +return x_54; +} +} +else +{ +lean_object* x_55; +lean_dec(x_39); +lean_dec(x_38); +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_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_48)) { + x_55 = lean_alloc_ctor(1, 2, 0); +} else { + x_55 = x_48; +} +lean_ctor_set(x_55, 0, x_46); +lean_ctor_set(x_55, 1, x_47); +return x_55; } } } @@ -19570,7 +19709,7 @@ return x_34; } else { -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; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +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; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; x_35 = lean_ctor_get(x_9, 0); x_36 = lean_ctor_get(x_9, 1); x_37 = lean_ctor_get(x_9, 2); @@ -19582,7 +19721,10 @@ x_42 = lean_ctor_get(x_9, 7); x_43 = lean_ctor_get(x_9, 8); x_44 = lean_ctor_get(x_9, 9); x_45 = lean_ctor_get(x_9, 10); -x_46 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_46 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_47 = lean_ctor_get(x_9, 11); +x_48 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_47); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); @@ -19595,58 +19737,60 @@ lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); lean_dec(x_9); -x_47 = l_Lean_replaceRef(x_2, x_40); +x_49 = l_Lean_replaceRef(x_2, x_40); lean_dec(x_40); -x_48 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_48, 0, x_35); -lean_ctor_set(x_48, 1, x_36); -lean_ctor_set(x_48, 2, x_37); -lean_ctor_set(x_48, 3, x_38); -lean_ctor_set(x_48, 4, x_39); -lean_ctor_set(x_48, 5, x_47); -lean_ctor_set(x_48, 6, x_41); -lean_ctor_set(x_48, 7, x_42); -lean_ctor_set(x_48, 8, x_43); -lean_ctor_set(x_48, 9, x_44); -lean_ctor_set(x_48, 10, x_45); -lean_ctor_set_uint8(x_48, sizeof(void*)*11, x_46); -x_49 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__21(x_30, x_4, x_5, x_6, x_7, x_8, x_48, x_10, x_11); -lean_dec(x_48); +x_50 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_50, 0, x_35); +lean_ctor_set(x_50, 1, x_36); +lean_ctor_set(x_50, 2, x_37); +lean_ctor_set(x_50, 3, x_38); +lean_ctor_set(x_50, 4, x_39); +lean_ctor_set(x_50, 5, x_49); +lean_ctor_set(x_50, 6, x_41); +lean_ctor_set(x_50, 7, x_42); +lean_ctor_set(x_50, 8, x_43); +lean_ctor_set(x_50, 9, x_44); +lean_ctor_set(x_50, 10, x_45); +lean_ctor_set(x_50, 11, x_47); +lean_ctor_set_uint8(x_50, sizeof(void*)*12, x_46); +lean_ctor_set_uint8(x_50, sizeof(void*)*12 + 1, x_48); +x_51 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__21(x_30, x_4, x_5, x_6, x_7, x_8, x_50, x_10, x_11); +lean_dec(x_50); lean_dec(x_7); lean_dec(x_5); -return x_49; +return x_51; } } else { -lean_object* x_50; uint8_t x_51; +lean_object* x_52; uint8_t x_53; lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_50 = lean_unsigned_to_nat(0u); -x_51 = lean_nat_dec_lt(x_50, x_12); +x_52 = lean_unsigned_to_nat(0u); +x_53 = lean_nat_dec_lt(x_52, x_12); lean_dec(x_12); -if (x_51 == 0) +if (x_53 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_1); -x_52 = l_Lean_instInhabitedName; -x_53 = l___private_Init_GetElem_0__outOfBounds___rarg(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_11); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_array_fget(x_1, x_50); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_dec(x_1); +x_54 = l_Lean_instInhabitedName; +x_55 = l___private_Init_GetElem_0__outOfBounds___rarg(x_54); x_56 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_11); return x_56; } +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_array_fget(x_1, x_52); +lean_dec(x_1); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_11); +return x_58; +} } } } @@ -19752,19 +19896,19 @@ x_24 = lean_unsigned_to_nat(1u); x_25 = lean_nat_dec_eq(x_18, x_24); if (x_25 == 0) { -uint8_t x_63; -x_63 = 0; -x_26 = x_63; -goto block_62; +uint8_t x_65; +x_65 = 0; +x_26 = x_65; +goto block_64; } else { -uint8_t x_64; -x_64 = 1; -x_26 = x_64; -goto block_62; +uint8_t x_66; +x_66 = 1; +x_26 = x_66; +goto block_64; } -block_62: +block_64: { if (x_26 == 0) { @@ -19803,7 +19947,7 @@ 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; 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_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_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; uint8_t 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; x_36 = lean_ctor_get(x_8, 0); x_37 = lean_ctor_get(x_8, 1); x_38 = lean_ctor_get(x_8, 2); @@ -19815,7 +19959,10 @@ x_43 = lean_ctor_get(x_8, 7); x_44 = lean_ctor_get(x_8, 8); x_45 = lean_ctor_get(x_8, 9); x_46 = lean_ctor_get(x_8, 10); -x_47 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_47 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_48 = lean_ctor_get(x_8, 11); +x_49 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_48); lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); @@ -19828,49 +19975,51 @@ lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_dec(x_8); -x_48 = l_Lean_replaceRef(x_2, x_41); +x_50 = l_Lean_replaceRef(x_2, x_41); lean_dec(x_41); lean_dec(x_2); -x_49 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_49, 0, x_36); -lean_ctor_set(x_49, 1, x_37); -lean_ctor_set(x_49, 2, x_38); -lean_ctor_set(x_49, 3, x_39); -lean_ctor_set(x_49, 4, x_40); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_42); -lean_ctor_set(x_49, 7, x_43); -lean_ctor_set(x_49, 8, x_44); -lean_ctor_set(x_49, 9, x_45); -lean_ctor_set(x_49, 10, x_46); -lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_47); -x_50 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Term_elabOpen___spec__34___closed__4; -x_51 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Term_elabOpen___spec__36(x_50, x_16, x_3, x_4, x_5, x_6, x_7, x_49, x_9, x_14); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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; +x_51 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_51, 0, x_36); +lean_ctor_set(x_51, 1, x_37); +lean_ctor_set(x_51, 2, x_38); +lean_ctor_set(x_51, 3, x_39); +lean_ctor_set(x_51, 4, x_40); +lean_ctor_set(x_51, 5, x_50); +lean_ctor_set(x_51, 6, x_42); +lean_ctor_set(x_51, 7, x_43); +lean_ctor_set(x_51, 8, x_44); +lean_ctor_set(x_51, 9, x_45); +lean_ctor_set(x_51, 10, x_46); +lean_ctor_set(x_51, 11, x_48); +lean_ctor_set_uint8(x_51, sizeof(void*)*12, x_47); +lean_ctor_set_uint8(x_51, sizeof(void*)*12 + 1, x_49); +x_52 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Term_elabOpen___spec__34___closed__4; +x_53 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Term_elabOpen___spec__36(x_52, x_16, x_3, x_4, x_5, x_6, x_7, x_51, x_9, x_14); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; } else { - lean_dec_ref(x_51); - x_54 = lean_box(0); + lean_dec_ref(x_53); + x_56 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_57 = x_56; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } else { -uint8_t x_56; +uint8_t x_58; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -19879,29 +20028,14 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_56 = lean_nat_dec_lt(x_19, x_18); +x_58 = lean_nat_dec_lt(x_19, x_18); lean_dec(x_18); -if (x_56 == 0) +if (x_58 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_16); -x_57 = l_Lean_instInhabitedException; -x_58 = l___private_Init_GetElem_0__outOfBounds___rarg(x_57); -if (lean_is_scalar(x_15)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_15; - lean_ctor_set_tag(x_59, 1); -} -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_14); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_array_fget(x_16, x_19); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_dec(x_16); +x_59 = l_Lean_instInhabitedException; +x_60 = l___private_Init_GetElem_0__outOfBounds___rarg(x_59); if (lean_is_scalar(x_15)) { x_61 = lean_alloc_ctor(1, 2, 0); } else { @@ -19912,13 +20046,28 @@ lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_14); return x_61; } +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_array_fget(x_16, x_19); +lean_dec(x_16); +if (lean_is_scalar(x_15)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_15; + lean_ctor_set_tag(x_63, 1); +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_14); +return x_63; +} } } } } else { -uint8_t x_65; +uint8_t x_67; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -19928,23 +20077,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_12); -if (x_65 == 0) +x_67 = !lean_is_exclusive(x_12); +if (x_67 == 0) { return x_12; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_12, 0); -x_67 = lean_ctor_get(x_12, 1); -lean_inc(x_67); -lean_inc(x_66); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_12, 0); +x_69 = lean_ctor_get(x_12, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_12); -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; +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; } } } @@ -22378,7 +22527,7 @@ lean_inc(x_3); x_19 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_18); 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_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; uint8_t x_34; lean_object* x_35; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -22404,138 +22553,143 @@ x_30 = lean_ctor_get(x_7, 9); lean_inc(x_30); x_31 = lean_ctor_get(x_7, 10); lean_inc(x_31); -x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_22); -lean_ctor_set(x_33, 1, x_23); -lean_ctor_set(x_33, 2, x_24); -lean_ctor_set(x_33, 3, x_25); -lean_ctor_set(x_33, 4, x_26); -lean_ctor_set(x_33, 5, x_27); -lean_ctor_set(x_33, 6, x_28); -lean_ctor_set(x_33, 7, x_20); -lean_ctor_set(x_33, 8, x_29); -lean_ctor_set(x_33, 9, x_30); -lean_ctor_set(x_33, 10, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_32); -x_34 = 1; +x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_33 = lean_ctor_get(x_7, 11); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_22); +lean_ctor_set(x_35, 1, x_23); +lean_ctor_set(x_35, 2, x_24); +lean_ctor_set(x_35, 3, x_25); +lean_ctor_set(x_35, 4, x_26); +lean_ctor_set(x_35, 5, x_27); +lean_ctor_set(x_35, 6, x_28); +lean_ctor_set(x_35, 7, x_20); +lean_ctor_set(x_35, 8, x_29); +lean_ctor_set(x_35, 9, x_30); +lean_ctor_set(x_35, 10, x_31); +lean_ctor_set(x_35, 11, x_33); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_34); +x_36 = 1; lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_35 = l_Lean_Elab_Term_elabTerm(x_16, x_2, x_34, x_34, x_3, x_4, x_5, x_6, x_33, x_8, x_21); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Elab_Term_elabTerm(x_16, x_2, x_36, x_36, x_3, x_4, x_5, x_6, x_35, x_8, x_21); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_37); +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_39); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -lean_ctor_set(x_38, 0, x_36); -return x_38; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_38); +return x_40; } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_36); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_43 = lean_ctor_get(x_35, 0); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_35, 1); -lean_inc(x_44); -lean_dec(x_35); -x_45 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_44); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_37, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_37, 1); +lean_inc(x_46); +lean_dec(x_37); +x_47 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_46); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -lean_object* x_47; -x_47 = lean_ctor_get(x_45, 0); +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set_tag(x_47, 1); +lean_ctor_set(x_47, 0, x_45); +return x_47; +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); lean_dec(x_47); -lean_ctor_set_tag(x_45, 1); -lean_ctor_set(x_45, 0, x_43); -return x_45; -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_45); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_dec(x_16); lean_dec(x_2); -x_50 = lean_ctor_get(x_19, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_19, 1); -lean_inc(x_51); +x_52 = lean_ctor_get(x_19, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_19, 1); +lean_inc(x_53); lean_dec(x_19); -x_52 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_51); +x_54 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__45(x_3, x_4, x_5, x_6, x_7, x_8, x_53); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -lean_ctor_set_tag(x_52, 1); -lean_ctor_set(x_52, 0, x_50); -return x_52; +lean_object* x_56; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +lean_ctor_set_tag(x_54, 1); +lean_ctor_set(x_54, 0, x_52); +return x_54; } else { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_50); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } @@ -24196,7 +24350,7 @@ x_17 = l_Lean_Elab_Term_elabSetOption___lambda__1___closed__1; x_18 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_17); lean_ctor_set(x_11, 4, x_18); lean_ctor_set(x_11, 2, x_1); -lean_ctor_set_uint8(x_11, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_11, sizeof(void*)*12, x_2); x_19 = 1; lean_inc(x_12); lean_inc(x_11); @@ -24379,7 +24533,7 @@ return x_50; } else { -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; uint8_t x_63; lean_object* x_64; +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; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; x_51 = lean_ctor_get(x_11, 0); x_52 = lean_ctor_get(x_11, 1); x_53 = lean_ctor_get(x_11, 3); @@ -24389,6 +24543,9 @@ x_56 = lean_ctor_get(x_11, 7); x_57 = lean_ctor_get(x_11, 8); x_58 = lean_ctor_get(x_11, 9); x_59 = lean_ctor_get(x_11, 10); +x_60 = lean_ctor_get(x_11, 11); +x_61 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +lean_inc(x_60); lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); @@ -24399,112 +24556,114 @@ lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_dec(x_11); -x_60 = l_Lean_Elab_Term_elabSetOption___lambda__1___closed__1; -x_61 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_60); -x_62 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_62, 0, x_51); -lean_ctor_set(x_62, 1, x_52); -lean_ctor_set(x_62, 2, x_1); -lean_ctor_set(x_62, 3, x_53); -lean_ctor_set(x_62, 4, x_61); -lean_ctor_set(x_62, 5, x_54); -lean_ctor_set(x_62, 6, x_55); -lean_ctor_set(x_62, 7, x_56); -lean_ctor_set(x_62, 8, x_57); -lean_ctor_set(x_62, 9, x_58); -lean_ctor_set(x_62, 10, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_2); -x_63 = 1; +x_62 = l_Lean_Elab_Term_elabSetOption___lambda__1___closed__1; +x_63 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_62); +x_64 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_64, 0, x_51); +lean_ctor_set(x_64, 1, x_52); +lean_ctor_set(x_64, 2, x_1); +lean_ctor_set(x_64, 3, x_53); +lean_ctor_set(x_64, 4, x_63); +lean_ctor_set(x_64, 5, x_54); +lean_ctor_set(x_64, 6, x_55); +lean_ctor_set(x_64, 7, x_56); +lean_ctor_set(x_64, 8, x_57); +lean_ctor_set(x_64, 9, x_58); +lean_ctor_set(x_64, 10, x_59); +lean_ctor_set(x_64, 11, x_60); +lean_ctor_set_uint8(x_64, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_64, sizeof(void*)*12 + 1, x_61); +x_65 = 1; lean_inc(x_12); -lean_inc(x_62); +lean_inc(x_64); lean_inc(x_8); lean_inc(x_7); -x_64 = l_Lean_Elab_Term_elabTerm(x_3, x_4, x_63, x_63, x_5, x_6, x_7, x_8, x_62, x_12, x_13); -if (lean_obj_tag(x_64) == 0) +x_66 = l_Lean_Elab_Term_elabTerm(x_3, x_4, x_65, x_65, x_5, x_6, x_7, x_8, x_64, x_12, x_13); +if (lean_obj_tag(x_66) == 0) { if (x_9 == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_62); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_64); lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_67 = x_64; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_69 = x_66; } else { - lean_dec_ref(x_64); - x_67 = lean_box(0); + lean_dec_ref(x_66); + x_69 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_67; + x_70 = x_69; } -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_64, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_64, 1); -lean_inc(x_70); -lean_dec(x_64); -x_71 = l_Lean_Meta_reportDiag(x_7, x_8, x_62, x_12, x_70); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_66, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_66, 1); lean_inc(x_72); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_73 = x_71; +lean_dec(x_66); +x_73 = l_Lean_Meta_reportDiag(x_7, x_8, x_64, x_12, x_72); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +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_71); - x_73 = lean_box(0); + lean_dec_ref(x_73); + x_75 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(0, 2, 0); } else { - x_74 = x_73; + x_76 = x_75; } -lean_ctor_set(x_74, 0, x_69); -lean_ctor_set(x_74, 1, x_72); -return x_74; +lean_ctor_set(x_76, 0, x_71); +lean_ctor_set(x_76, 1, x_74); +return x_76; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_69); -x_75 = lean_ctor_get(x_71, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_71, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_77 = x_71; +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_71); +x_77 = lean_ctor_get(x_73, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_79 = x_73; } else { - lean_dec_ref(x_71); - x_77 = lean_box(0); + lean_dec_ref(x_73); + x_79 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); } else { - x_78 = x_77; + x_80 = x_79; } -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -return x_78; +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; } } } @@ -24512,88 +24671,88 @@ else { if (x_9 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_62); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_64); lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); -x_79 = lean_ctor_get(x_64, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_64, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_81 = x_64; +x_81 = lean_ctor_get(x_66, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_66, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_83 = x_66; } else { - lean_dec_ref(x_64); - x_81 = lean_box(0); + lean_dec_ref(x_66); + x_83 = lean_box(0); } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_82 = x_81; + x_84 = x_83; } -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_64, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_64, 1); -lean_inc(x_84); -lean_dec(x_64); -x_85 = l_Lean_Meta_reportDiag(x_7, x_8, x_62, x_12, x_84); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_85, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_66, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_66, 1); lean_inc(x_86); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_87 = x_85; +lean_dec(x_66); +x_87 = l_Lean_Meta_reportDiag(x_7, x_8, x_64, x_12, x_86); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_89 = x_87; } else { - lean_dec_ref(x_85); - x_87 = lean_box(0); + lean_dec_ref(x_87); + x_89 = lean_box(0); } -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_88 = x_87; - lean_ctor_set_tag(x_88, 1); + x_90 = x_89; + lean_ctor_set_tag(x_90, 1); } -lean_ctor_set(x_88, 0, x_83); -lean_ctor_set(x_88, 1, x_86); -return x_88; +lean_ctor_set(x_90, 0, x_85); +lean_ctor_set(x_90, 1, x_88); +return x_90; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_83); -x_89 = lean_ctor_get(x_85, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_85, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_91 = x_85; +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_85); +x_91 = lean_ctor_get(x_87, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_93 = x_87; } else { - lean_dec_ref(x_85); - x_91 = lean_box(0); + lean_dec_ref(x_87); + x_93 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_92 = x_91; + x_94 = x_93; } -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +return x_94; } } } diff --git a/stage0/stdlib/Lean/Elab/Calc.c b/stage0/stdlib/Lean/Elab/Calc.c index 0ecc859816..b581bd39c4 100644 --- a/stage0/stdlib/Lean/Elab/Calc.c +++ b/stage0/stdlib/Lean/Elab/Calc.c @@ -15157,7 +15157,7 @@ return x_62; } else { -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; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +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; uint8_t x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; x_63 = lean_ctor_get(x_12, 0); x_64 = lean_ctor_get(x_12, 1); x_65 = lean_ctor_get(x_12, 2); @@ -15169,7 +15169,10 @@ x_70 = lean_ctor_get(x_12, 7); x_71 = lean_ctor_get(x_12, 8); x_72 = lean_ctor_get(x_12, 9); x_73 = lean_ctor_get(x_12, 10); -x_74 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_74 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_75 = lean_ctor_get(x_12, 11); +x_76 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_75); lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); @@ -15182,85 +15185,87 @@ lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); lean_dec(x_12); -x_75 = l_Lean_replaceRef(x_4, x_68); +x_77 = l_Lean_replaceRef(x_4, x_68); lean_dec(x_68); -x_76 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_76, 0, x_63); -lean_ctor_set(x_76, 1, x_64); -lean_ctor_set(x_76, 2, x_65); -lean_ctor_set(x_76, 3, x_66); -lean_ctor_set(x_76, 4, x_67); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_69); -lean_ctor_set(x_76, 7, x_70); -lean_ctor_set(x_76, 8, x_71); -lean_ctor_set(x_76, 9, x_72); -lean_ctor_set(x_76, 10, x_73); -lean_ctor_set_uint8(x_76, sizeof(void*)*11, x_74); -x_77 = l_Lean_Elab_Term_mkCalcTrans(x_42, x_43, x_39, x_1, x_10, x_11, x_76, x_13, x_45); -if (lean_obj_tag(x_77) == 0) +x_78 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_64); +lean_ctor_set(x_78, 2, x_65); +lean_ctor_set(x_78, 3, x_66); +lean_ctor_set(x_78, 4, x_67); +lean_ctor_set(x_78, 5, x_77); +lean_ctor_set(x_78, 6, x_69); +lean_ctor_set(x_78, 7, x_70); +lean_ctor_set(x_78, 8, x_71); +lean_ctor_set(x_78, 9, x_72); +lean_ctor_set(x_78, 10, x_73); +lean_ctor_set(x_78, 11, x_75); +lean_ctor_set_uint8(x_78, sizeof(void*)*12, x_74); +lean_ctor_set_uint8(x_78, sizeof(void*)*12 + 1, x_76); +x_79 = l_Lean_Elab_Term_mkCalcTrans(x_42, x_43, x_39, x_1, x_10, x_11, x_78, x_13, x_45); +if (lean_obj_tag(x_79) == 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; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_80 = x_77; +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_79, 0); +lean_inc(x_80); +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_77); - x_80 = lean_box(0); + lean_dec_ref(x_79); + x_82 = lean_box(0); } -lean_ctor_set(x_6, 0, x_78); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_3); +lean_ctor_set(x_6, 0, x_80); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_3); lean_ctor_set(x_38, 1, x_6); -lean_ctor_set(x_38, 0, x_81); -x_82 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_82, 0, x_38); -if (lean_is_scalar(x_80)) { - x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_83); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_38); +if (lean_is_scalar(x_82)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_83 = x_80; + x_85 = x_82; } -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_79); -return x_83; +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_81); +return x_85; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_free_object(x_38); lean_free_object(x_6); lean_dec(x_3); -x_84 = lean_ctor_get(x_77, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_77, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_86 = x_77; +x_86 = lean_ctor_get(x_79, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_79, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_88 = x_79; } else { - lean_dec_ref(x_77); - x_86 = lean_box(0); + lean_dec_ref(x_79); + x_88 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_87 = x_86; + x_89 = x_88; } -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; } } } else { -uint8_t x_88; +uint8_t x_90; lean_free_object(x_38); lean_dec(x_43); lean_dec(x_42); @@ -15272,68 +15277,71 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_44); -if (x_88 == 0) +x_90 = !lean_is_exclusive(x_44); +if (x_90 == 0) { return x_44; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_44, 0); -x_90 = lean_ctor_get(x_44, 1); -lean_inc(x_90); -lean_inc(x_89); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_44, 0); +x_92 = lean_ctor_get(x_44, 1); +lean_inc(x_92); +lean_inc(x_91); lean_dec(x_44); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_38, 0); -x_93 = lean_ctor_get(x_38, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_38, 0); +x_95 = lean_ctor_get(x_38, 1); +lean_inc(x_95); +lean_inc(x_94); lean_dec(x_38); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_94 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_8, x_9, x_10, x_11, x_12, x_13, x_40); -if (lean_obj_tag(x_94) == 0) +x_96 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_8, x_9, x_10, x_11, x_12, x_13, x_40); +if (lean_obj_tag(x_96) == 0) { -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; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = lean_ctor_get(x_12, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_12, 1); +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; uint8_t 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; +x_97 = lean_ctor_get(x_96, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_12, 2); +lean_dec(x_96); +x_98 = lean_ctor_get(x_12, 0); lean_inc(x_98); -x_99 = lean_ctor_get(x_12, 3); +x_99 = lean_ctor_get(x_12, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_12, 4); +x_100 = lean_ctor_get(x_12, 2); lean_inc(x_100); -x_101 = lean_ctor_get(x_12, 5); +x_101 = lean_ctor_get(x_12, 3); lean_inc(x_101); -x_102 = lean_ctor_get(x_12, 6); +x_102 = lean_ctor_get(x_12, 4); lean_inc(x_102); -x_103 = lean_ctor_get(x_12, 7); +x_103 = lean_ctor_get(x_12, 5); lean_inc(x_103); -x_104 = lean_ctor_get(x_12, 8); +x_104 = lean_ctor_get(x_12, 6); lean_inc(x_104); -x_105 = lean_ctor_get(x_12, 9); +x_105 = lean_ctor_get(x_12, 7); lean_inc(x_105); -x_106 = lean_ctor_get(x_12, 10); +x_106 = lean_ctor_get(x_12, 8); lean_inc(x_106); -x_107 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_107 = lean_ctor_get(x_12, 9); +lean_inc(x_107); +x_108 = lean_ctor_get(x_12, 10); +lean_inc(x_108); +x_109 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_110 = lean_ctor_get(x_12, 11); +lean_inc(x_110); +x_111 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_12)) { lean_ctor_release(x_12, 0); lean_ctor_release(x_12, 1); @@ -15346,113 +15354,81 @@ if (lean_is_exclusive(x_12)) { lean_ctor_release(x_12, 8); lean_ctor_release(x_12, 9); lean_ctor_release(x_12, 10); - x_108 = x_12; + lean_ctor_release(x_12, 11); + x_112 = x_12; } else { lean_dec_ref(x_12); - x_108 = lean_box(0); + x_112 = lean_box(0); } -x_109 = l_Lean_replaceRef(x_4, x_101); -lean_dec(x_101); -if (lean_is_scalar(x_108)) { - x_110 = lean_alloc_ctor(0, 11, 1); +x_113 = l_Lean_replaceRef(x_4, x_103); +lean_dec(x_103); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 12, 2); } else { - x_110 = x_108; + x_114 = x_112; } -lean_ctor_set(x_110, 0, x_96); -lean_ctor_set(x_110, 1, x_97); -lean_ctor_set(x_110, 2, x_98); -lean_ctor_set(x_110, 3, x_99); -lean_ctor_set(x_110, 4, x_100); -lean_ctor_set(x_110, 5, x_109); -lean_ctor_set(x_110, 6, x_102); -lean_ctor_set(x_110, 7, x_103); -lean_ctor_set(x_110, 8, x_104); -lean_ctor_set(x_110, 9, x_105); -lean_ctor_set(x_110, 10, x_106); -lean_ctor_set_uint8(x_110, sizeof(void*)*11, x_107); -x_111 = l_Lean_Elab_Term_mkCalcTrans(x_92, x_93, x_39, x_1, x_10, x_11, x_110, x_13, x_95); -if (lean_obj_tag(x_111) == 0) +lean_ctor_set(x_114, 0, x_98); +lean_ctor_set(x_114, 1, x_99); +lean_ctor_set(x_114, 2, x_100); +lean_ctor_set(x_114, 3, x_101); +lean_ctor_set(x_114, 4, x_102); +lean_ctor_set(x_114, 5, x_113); +lean_ctor_set(x_114, 6, x_104); +lean_ctor_set(x_114, 7, x_105); +lean_ctor_set(x_114, 8, x_106); +lean_ctor_set(x_114, 9, x_107); +lean_ctor_set(x_114, 10, x_108); +lean_ctor_set(x_114, 11, x_110); +lean_ctor_set_uint8(x_114, sizeof(void*)*12, x_109); +lean_ctor_set_uint8(x_114, sizeof(void*)*12 + 1, x_111); +x_115 = l_Lean_Elab_Term_mkCalcTrans(x_94, x_95, x_39, x_1, x_10, x_11, x_114, x_13, x_97); +if (lean_obj_tag(x_115) == 0) { -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_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; +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; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; } else { - lean_dec_ref(x_111); - x_114 = lean_box(0); + lean_dec_ref(x_115); + x_118 = lean_box(0); } -lean_ctor_set(x_6, 0, x_112); -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_3); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_6); -x_117 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_117, 0, x_116); -if (lean_is_scalar(x_114)) { - x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_116); +x_119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_119, 0, x_3); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_6); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (lean_is_scalar(x_118)) { + x_122 = lean_alloc_ctor(0, 2, 0); } else { - x_118 = x_114; + x_122 = x_118; } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_113); -return x_118; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_free_object(x_6); -lean_dec(x_3); -x_119 = lean_ctor_get(x_111, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_111, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - 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(1, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_117); return x_122; } -} else { lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_93); -lean_dec(x_92); -lean_dec(x_39); lean_free_object(x_6); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); lean_dec(x_3); -lean_dec(x_1); -x_123 = lean_ctor_get(x_94, 0); +x_123 = lean_ctor_get(x_115, 0); lean_inc(x_123); -x_124 = lean_ctor_get(x_94, 1); +x_124 = lean_ctor_get(x_115, 1); lean_inc(x_124); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_125 = x_94; +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_125 = x_115; } else { - lean_dec_ref(x_94); + lean_dec_ref(x_115); x_125 = lean_box(0); } if (lean_is_scalar(x_125)) { @@ -15465,64 +15441,102 @@ lean_ctor_set(x_126, 1, x_124); return x_126; } } +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_39); +lean_free_object(x_6); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_127 = lean_ctor_get(x_96, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_96, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_129 = x_96; +} else { + lean_dec_ref(x_96); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; +} +lean_ctor_set(x_130, 0, x_127); +lean_ctor_set(x_130, 1, x_128); +return x_130; +} +} } 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; -x_127 = lean_ctor_get(x_6, 0); -lean_inc(x_127); -lean_dec(x_6); -x_128 = lean_ctor_get(x_21, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_21, 1); -lean_inc(x_129); -lean_dec(x_21); -x_130 = lean_ctor_get(x_127, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_127, 1); +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; +x_131 = lean_ctor_get(x_6, 0); lean_inc(x_131); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_132 = x_127; +lean_dec(x_6); +x_132 = lean_ctor_get(x_21, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_21, 1); +lean_inc(x_133); +lean_dec(x_21); +x_134 = lean_ctor_get(x_131, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_131, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_136 = x_131; } else { - lean_dec_ref(x_127); - x_132 = lean_box(0); + lean_dec_ref(x_131); + x_136 = lean_box(0); } lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_133 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_8, x_9, x_10, x_11, x_12, x_13, x_129); -if (lean_obj_tag(x_133) == 0) +x_137 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_8, x_9, x_10, x_11, x_12, x_13, x_133); +if (lean_obj_tag(x_137) == 0) { -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; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec(x_133); -x_135 = lean_ctor_get(x_12, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_12, 1); -lean_inc(x_136); -x_137 = lean_ctor_get(x_12, 2); -lean_inc(x_137); -x_138 = lean_ctor_get(x_12, 3); +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; uint8_t x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_138 = lean_ctor_get(x_137, 1); lean_inc(x_138); -x_139 = lean_ctor_get(x_12, 4); +lean_dec(x_137); +x_139 = lean_ctor_get(x_12, 0); lean_inc(x_139); -x_140 = lean_ctor_get(x_12, 5); +x_140 = lean_ctor_get(x_12, 1); lean_inc(x_140); -x_141 = lean_ctor_get(x_12, 6); +x_141 = lean_ctor_get(x_12, 2); lean_inc(x_141); -x_142 = lean_ctor_get(x_12, 7); +x_142 = lean_ctor_get(x_12, 3); lean_inc(x_142); -x_143 = lean_ctor_get(x_12, 8); +x_143 = lean_ctor_get(x_12, 4); lean_inc(x_143); -x_144 = lean_ctor_get(x_12, 9); +x_144 = lean_ctor_get(x_12, 5); lean_inc(x_144); -x_145 = lean_ctor_get(x_12, 10); +x_145 = lean_ctor_get(x_12, 6); lean_inc(x_145); -x_146 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_146 = lean_ctor_get(x_12, 7); +lean_inc(x_146); +x_147 = lean_ctor_get(x_12, 8); +lean_inc(x_147); +x_148 = lean_ctor_get(x_12, 9); +lean_inc(x_148); +x_149 = lean_ctor_get(x_12, 10); +lean_inc(x_149); +x_150 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_151 = lean_ctor_get(x_12, 11); +lean_inc(x_151); +x_152 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_12)) { lean_ctor_release(x_12, 0); lean_ctor_release(x_12, 1); @@ -15535,135 +15549,138 @@ if (lean_is_exclusive(x_12)) { lean_ctor_release(x_12, 8); lean_ctor_release(x_12, 9); lean_ctor_release(x_12, 10); - x_147 = x_12; + lean_ctor_release(x_12, 11); + x_153 = x_12; } else { lean_dec_ref(x_12); - x_147 = lean_box(0); -} -x_148 = l_Lean_replaceRef(x_4, x_140); -lean_dec(x_140); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 11, 1); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_135); -lean_ctor_set(x_149, 1, x_136); -lean_ctor_set(x_149, 2, x_137); -lean_ctor_set(x_149, 3, x_138); -lean_ctor_set(x_149, 4, x_139); -lean_ctor_set(x_149, 5, x_148); -lean_ctor_set(x_149, 6, x_141); -lean_ctor_set(x_149, 7, x_142); -lean_ctor_set(x_149, 8, x_143); -lean_ctor_set(x_149, 9, x_144); -lean_ctor_set(x_149, 10, x_145); -lean_ctor_set_uint8(x_149, sizeof(void*)*11, x_146); -x_150 = l_Lean_Elab_Term_mkCalcTrans(x_130, x_131, x_128, x_1, x_10, x_11, x_149, x_13, x_134); -if (lean_obj_tag(x_150) == 0) -{ -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; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; -} else { - lean_dec_ref(x_150); x_153 = lean_box(0); } -x_154 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_154, 0, x_151); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_3); -if (lean_is_scalar(x_132)) { - x_156 = lean_alloc_ctor(0, 2, 0); -} else { - x_156 = x_132; -} -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_154); -x_157 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_157, 0, x_156); +x_154 = l_Lean_replaceRef(x_4, x_144); +lean_dec(x_144); if (lean_is_scalar(x_153)) { - x_158 = lean_alloc_ctor(0, 2, 0); + x_155 = lean_alloc_ctor(0, 12, 2); } else { - x_158 = x_153; + x_155 = x_153; } -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_152); -return x_158; -} -else +lean_ctor_set(x_155, 0, x_139); +lean_ctor_set(x_155, 1, x_140); +lean_ctor_set(x_155, 2, x_141); +lean_ctor_set(x_155, 3, x_142); +lean_ctor_set(x_155, 4, x_143); +lean_ctor_set(x_155, 5, x_154); +lean_ctor_set(x_155, 6, x_145); +lean_ctor_set(x_155, 7, x_146); +lean_ctor_set(x_155, 8, x_147); +lean_ctor_set(x_155, 9, x_148); +lean_ctor_set(x_155, 10, x_149); +lean_ctor_set(x_155, 11, x_151); +lean_ctor_set_uint8(x_155, sizeof(void*)*12, x_150); +lean_ctor_set_uint8(x_155, sizeof(void*)*12 + 1, x_152); +x_156 = l_Lean_Elab_Term_mkCalcTrans(x_134, x_135, x_132, x_1, x_10, x_11, x_155, x_13, x_138); +if (lean_obj_tag(x_156) == 0) { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_132); -lean_dec(x_3); -x_159 = lean_ctor_get(x_150, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_150, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_161 = x_150; +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; +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_150); - x_161 = lean_box(0); + lean_dec_ref(x_156); + x_159 = lean_box(0); } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); +x_160 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_160, 0, x_157); +x_161 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_161, 0, x_3); +if (lean_is_scalar(x_136)) { + x_162 = lean_alloc_ctor(0, 2, 0); } else { - x_162 = x_161; + x_162 = x_136; } -lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 0, x_161); lean_ctor_set(x_162, 1, x_160); -return x_162; +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_162); +if (lean_is_scalar(x_159)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_159; +} +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_158); +return x_164; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_136); +lean_dec(x_3); +x_165 = lean_ctor_get(x_156, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_156, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_167 = x_156; +} else { + lean_dec_ref(x_156); + x_167 = lean_box(0); +} +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); +} else { + x_168 = x_167; +} +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; } } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_136); +lean_dec(x_135); +lean_dec(x_134); lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_128); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_163 = lean_ctor_get(x_133, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_133, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_165 = x_133; +x_169 = lean_ctor_get(x_137, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_137, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_171 = x_137; } else { - lean_dec_ref(x_133); - x_165 = lean_box(0); + lean_dec_ref(x_137); + x_171 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; + x_172 = x_171; } -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; } } } } else { -uint8_t x_167; +uint8_t x_173; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -15673,23 +15690,23 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_167 = !lean_is_exclusive(x_21); -if (x_167 == 0) +x_173 = !lean_is_exclusive(x_21); +if (x_173 == 0) { return x_21; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_21, 0); -x_169 = lean_ctor_get(x_21, 1); -lean_inc(x_169); -lean_inc(x_168); +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_21, 0); +x_175 = lean_ctor_get(x_21, 1); +lean_inc(x_175); +lean_inc(x_174); lean_dec(x_21); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; +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; } } } diff --git a/stage0/stdlib/Lean/Elab/CheckTactic.c b/stage0/stdlib/Lean/Elab/CheckTactic.c index 7a32e6c698..5bd2371202 100644 --- a/stage0/stdlib/Lean/Elab/CheckTactic.c +++ b/stage0/stdlib/Lean/Elab/CheckTactic.c @@ -29,6 +29,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___b LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_CheckTactic_expandCheckSimp_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_CheckTactic_expandCheckSimp_declRange___closed__6; static lean_object* l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__4; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_CheckTactic_elabCheckTacticFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, 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*); @@ -361,7 +362,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__3; x_7 = l_Lean_Elab_CheckTactic_elabCheckTactic___lambda__2___closed__4; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -370,16 +371,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } @@ -4181,9 +4183,13 @@ if (x_231 == 0) lean_object* x_232; lean_object* x_233; uint8_t x_234; x_232 = lean_ctor_get(x_228, 0); x_233 = lean_ctor_get(x_228, 1); -x_234 = l_Lean_Exception_isRuntime(x_232); +x_234 = l_Lean_Exception_isInterrupt(x_232); if (x_234 == 0) { +uint8_t x_235; +x_235 = l_Lean_Exception_isRuntime(x_232); +if (x_235 == 0) +{ lean_free_object(x_228); lean_dec(x_232); x_35 = x_12; @@ -4208,23 +4214,6 @@ return x_228; } else { -lean_object* x_235; lean_object* x_236; uint8_t x_237; -x_235 = lean_ctor_get(x_228, 0); -x_236 = lean_ctor_get(x_228, 1); -lean_inc(x_236); -lean_inc(x_235); -lean_dec(x_228); -x_237 = l_Lean_Exception_isRuntime(x_235); -if (x_237 == 0) -{ -lean_dec(x_235); -x_35 = x_12; -x_36 = x_236; -goto block_227; -} -else -{ -lean_object* x_238; lean_dec(x_30); lean_dec(x_23); lean_dec(x_10); @@ -4236,10 +4225,67 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_236); -return x_238; +return x_228; +} +} +else +{ +lean_object* x_236; lean_object* x_237; uint8_t x_238; +x_236 = lean_ctor_get(x_228, 0); +x_237 = lean_ctor_get(x_228, 1); +lean_inc(x_237); +lean_inc(x_236); +lean_dec(x_228); +x_238 = l_Lean_Exception_isInterrupt(x_236); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = l_Lean_Exception_isRuntime(x_236); +if (x_239 == 0) +{ +lean_dec(x_236); +x_35 = x_12; +x_36 = x_237; +goto block_227; +} +else +{ +lean_object* x_240; +lean_dec(x_30); +lean_dec(x_23); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_236); +lean_ctor_set(x_240, 1, x_237); +return x_240; +} +} +else +{ +lean_object* x_241; +lean_dec(x_30); +lean_dec(x_23); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_236); +lean_ctor_set(x_241, 1, x_237); +return x_241; } } } @@ -5165,7 +5211,7 @@ return x_226; } else { -uint8_t x_239; +uint8_t x_242; lean_dec(x_15); lean_dec(x_10); lean_dec(x_9); @@ -5176,29 +5222,29 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_239 = !lean_is_exclusive(x_17); -if (x_239 == 0) +x_242 = !lean_is_exclusive(x_17); +if (x_242 == 0) { return x_17; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_17, 0); -x_241 = lean_ctor_get(x_17, 1); -lean_inc(x_241); -lean_inc(x_240); +lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_243 = lean_ctor_get(x_17, 0); +x_244 = lean_ctor_get(x_17, 1); +lean_inc(x_244); +lean_inc(x_243); lean_dec(x_17); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_240); -lean_ctor_set(x_242, 1, x_241); -return x_242; +x_245 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_245, 0, x_243); +lean_ctor_set(x_245, 1, x_244); +return x_245; } } } else { -uint8_t x_243; +uint8_t x_246; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5208,23 +5254,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_243 = !lean_is_exclusive(x_14); -if (x_243 == 0) +x_246 = !lean_is_exclusive(x_14); +if (x_246 == 0) { return x_14; } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_14, 0); -x_245 = lean_ctor_get(x_14, 1); -lean_inc(x_245); -lean_inc(x_244); +lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_247 = lean_ctor_get(x_14, 0); +x_248 = lean_ctor_get(x_14, 1); +lean_inc(x_248); +lean_inc(x_247); lean_dec(x_14); -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; +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_248); +return x_249; } } } diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 3b33312fdf..79eff4c76f 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -33,7 +33,7 @@ static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___clos LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_expandDeclId___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__27; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_withScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkMessageAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,24 +64,22 @@ LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expa LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__23; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__1; static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__6; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__1___closed__2; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__12; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2; lean_object* lean_private_to_user_name(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___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_Command_initFn____x40_Lean_Elab_Command___hyg_2581_(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_nextMacroScope___default___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__10; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_liftCommandElabM___rarg___closed__4; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__5; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_Elab_Command_runLinters___spec__15(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe(lean_object*, lean_object*); @@ -90,31 +88,29 @@ lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__20(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Scope_opts___default; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_checkIfShadowingStructureField___at_Lean_Elab_Command_expandDeclId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__21; static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__1; static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__1; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__3; extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__1; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7; lean_object* l_Lean_indentD(lean_object*); double lean_float_div(double, double); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__7; lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_tryCatch___rarg(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___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore(lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); @@ -133,7 +129,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Comma LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1(lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Command_liftTermElabM___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__20; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__3(lean_object*, size_t, size_t, lean_object*); @@ -142,6 +137,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_elabCom lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__18(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__3___closed__1; @@ -151,6 +147,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expand LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScope___boxed(lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___closed__2; lean_object* l_Lean_Expr_sort___override(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static double l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__4___closed__5; @@ -158,6 +155,7 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) static lean_object* l_Lean_Elab_Command_State_scopes___default___closed__1; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Command_liftTermElabM___spec__13(lean_object*); lean_object* l_String_removeLeadingSpaces(lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__20; lean_object* l_Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMap_toArray___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__16(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -170,7 +168,6 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___sp LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScopes___boxed(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_State_messages___default; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_withSetOptionIn___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -183,7 +180,6 @@ static lean_object* l_Lean_Elab_Command_elabCommand___lambda__4___closed__3; lean_object* l_Lean_Syntax_getArgs(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_liftIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__21; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Context_currMacroScope___default; @@ -209,6 +205,7 @@ static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed_ static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; lean_object* l_Lean_EnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_State_messages___default___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14___closed__2; @@ -221,6 +218,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCo LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Command_runLinters___spec__12___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_liftCoreM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_Command_Context_suppressElabErrors___default; LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__8(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -232,20 +230,17 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandT static lean_object* l_Lean_Elab_Command_elabCommand___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Command_runLinters___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__9; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__4; extern lean_object* l_Lean_LocalContext_empty; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM; lean_object* lean_io_get_num_heartbeats(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -257,6 +252,9 @@ lean_object* l_EStateM_instMonad(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withSetOptionIn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___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_Lean_Elab_Command_instMonadLogCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11; extern lean_object* l_Lean_maxRecDepth; lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__3___closed__1; @@ -267,13 +265,13 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__7; LEAN_EXPORT lean_object* l_Lean_liftCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8; LEAN_EXPORT lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__19___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext(lean_object*, lean_object*); @@ -282,7 +280,6 @@ static lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___c LEAN_EXPORT lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__2___rarg___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_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Kernel_enableDiag(lean_object*, uint8_t); @@ -293,15 +290,18 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM; LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_withSetOptionIn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_runTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__24; static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___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_PersistentArray_forIn___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__11___lambda__1(lean_object*, lean_object*); static lean_object* l_List_foldl___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__2___closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8; uint8_t l_Lean_isReservedName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___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* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__27; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Command_liftCoreM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withSetOptionIn___closed__2; @@ -320,46 +320,45 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_lift lean_object* l_Lean_Meta_reportDiag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13; size_t lean_usize_of_nat(lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878_(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__5; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__17___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__5(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__3___closed__2; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__4; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls___boxed(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__2; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__24; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___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_EXPORT lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__3(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__17; LEAN_EXPORT lean_object* l_Lean_mkHashMap___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__1___boxed(lean_object*); lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_commandElabAttribute; static lean_object* l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439_(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__6; lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -376,18 +375,17 @@ static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_el LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_State_nextMacroScope___default; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___boxed(lean_object*, lean_object*); static lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__8___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__9(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__4; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__25; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__18; static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -420,16 +418,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5___closed__3; static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_expandDeclId___spec__9___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__14___closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_withSetOptionIn___closed__1; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__11; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___lambda__1___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__4; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__3; static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__1; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1___closed__2; @@ -439,7 +438,8 @@ extern lean_object* l___private_Lean_DocString_0__Lean_docStringExt; LEAN_EXPORT lean_object* l_Lean_Elab_Command_runLinters(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_liftCommandElabM(lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__22; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__10; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MetaM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -456,7 +456,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_withScope(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_runLinters___closed__2; +static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_liftCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_State_scopes___default; @@ -465,6 +467,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Comma LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCommand___lambda__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__3; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__28; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__4; lean_object* l_liftExcept___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__6(lean_object*, lean_object*); @@ -474,6 +477,7 @@ lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__8(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_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -484,8 +488,10 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_withSetOptionIn___closed__4; static lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___closed__1; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250_(lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__3; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16; LEAN_EXPORT lean_object* l_Lean_Elab_Command_State_ngen___default; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getLevelNames___rarg___boxed(lean_object*, lean_object*); @@ -499,7 +505,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermE static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__18; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__2___closed__1; lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); @@ -530,22 +535,25 @@ LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5 LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__7(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__4___closed__1; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__14; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_getBracketedBinderIds___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_messages___default___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__15; extern lean_object* l_Lean_warningAsError; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3; extern lean_object* l_Lean_Elab_pp_macroStack; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3; uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__26; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5___closed__6; static lean_object* l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__5; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__1; extern lean_object* l_Lean_trace_profiler_threshold; LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -558,7 +566,7 @@ static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed_ static lean_object* l_Lean_liftCommandElabM___rarg___closed__2; static lean_object* l_Lean_Elab_Command_mkState___closed__1; uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Command_getMainModule___boxed(lean_object*); static lean_object* l_Lean_Elab_Command_modifyScope___closed__3; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__3; @@ -567,6 +575,8 @@ static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_Scope_currNamespace___default; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___lambda__1___closed__2; extern lean_object* l_Lean_diagnostics; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396_(lean_object*); static lean_object* l_Lean_Elab_Command_elabCommandTopLevel___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___closed__1; static lean_object* l_Lean_Elab_Command_runLinters___lambda__1___closed__1; @@ -577,6 +587,7 @@ LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at___private_Lean_Elab_Com LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__5___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_ioErrorToMessage(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__1; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Command_liftCoreM___spec__1(lean_object*); @@ -584,10 +595,11 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters_ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__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_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withSetOptionIn___lambda__1(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_withLoggingExceptions(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__19; LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_messages___default___closed__3; lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -596,7 +608,6 @@ static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__3; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___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_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__16; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Command_addLinter(lean_object*, lean_object*); @@ -621,45 +632,45 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg___lambda_ static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__4; static lean_object* l_Lean_Elab_Command_elabCommand___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_Scope_varDecls___default; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__6; static lean_object* l_Lean_Elab_Command_modifyScope___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438_(lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__2(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_qsort_sort___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__19___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__4___closed__5; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11; static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__12___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___auto____x40_Lean_Elab_Command___hyg_403_; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__15; +extern lean_object* l_Lean_Core_interruptExceptionId; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__19; static double l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__1; static lean_object* l_Lean_Elab_Command_State_messages___default___closed__1; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___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___auto____x40_Lean_Elab_Command___hyg_421____closed__26; static lean_object* l_Lean_Elab_Command_elabCommand___closed__3; static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__3; static lean_object* l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__2; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__17(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__5; lean_object* l_Lean_Syntax_setArgs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Command_runLinters___spec__6___rarg___boxed(lean_object*, lean_object*); @@ -676,6 +687,7 @@ static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters__ static lean_object* l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__5; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__17; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__4; lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__3; @@ -698,6 +710,7 @@ lean_object* l_ReaderT_instFunctorOfMonad___rarg(lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__8; static lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__2; @@ -705,6 +718,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_withFreshMacroScope(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getMainModule(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___closed__1; static lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__14___closed__1; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__2; @@ -728,12 +742,14 @@ static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__4(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_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__7___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScopes___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__1; static lean_object* l_Lean_Elab_Command_elabCommand___closed__6; uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Command_modifyScope___spec__1(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__25; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instHashable; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -746,7 +762,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__2(l static lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__3; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_runLinters___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__18(lean_object*, size_t, size_t, lean_object*); @@ -760,6 +775,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Core_resetMessageLog(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1___rarg___closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2; LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; @@ -767,7 +783,6 @@ lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__4___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___auto____x40_Lean_Elab_Command___hyg_403____closed__28; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1(lean_object*); lean_object* l_Lean_Kernel_resetDiag___lambda__1(lean_object*); @@ -776,6 +791,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCom LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__2(lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__5; lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_tryCatch(lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___closed__1; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); @@ -786,6 +802,7 @@ extern lean_object* l_Lean_protectedExt; LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Command_expandDeclId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__23; lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM(lean_object*); @@ -793,32 +810,36 @@ static lean_object* l_List_foldl___at_Lean_Elab_Command_instAddErrorMessageConte static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___closed__3; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__7; extern lean_object* l_Lean_firstFrontendMacroScope; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCommand___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instInhabitedScope; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17; LEAN_EXPORT lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_runTermElabM___rarg___lambda__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_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM; static lean_object* l_Lean_Elab_Command_elabCommand___lambda__4___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5___closed__7; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__21(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_Scope_varUIds___default; -static lean_object* l___auto____x40_Lean_Elab_Command___hyg_403____closed__6; +uint8_t l_Lean_Syntax_hasMissing(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___elambda__1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Command_Scope_isNoncomputable___default; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Command_runLinters___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__12(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5___closed__5; +lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_ioErrorToMessage___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Command_liftTermElabM___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_findCore(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__12; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_getScope___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler; @@ -826,6 +847,7 @@ uint8_t l_Lean_PersistentArray_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_Context_currRecDepth___default; +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__13; lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -840,15 +862,18 @@ lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__13___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_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3; static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___boxed(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler_output; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___closed__4; static lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_560_(lean_object*); +static lean_object* l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashable___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -861,9 +886,11 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Elab_Comm LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkInfoTree___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_showPartialSyntaxErrors; LEAN_EXPORT lean_object* l_Lean_Elab_checkIfShadowingStructureField___at_Lean_Elab_Command_expandDeclId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_addUnivLevel(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__9; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -871,6 +898,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Comm LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM; lean_object* l_instHashablePos___boxed(lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; +lean_object* l_Lean_MessageLog_toArray(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_withMacroExpansion(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -879,7 +907,7 @@ static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab static lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__19___closed__1; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_485_(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Command_runLinters___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__5___closed__4; @@ -890,8 +918,10 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommandTopLe LEAN_EXPORT lean_object* l_Lean_liftCommandElabM___rarg___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__22; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Command_runLinters___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId___spec__19(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Elab_Command___hyg_421____closed__16; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); @@ -906,7 +936,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandD LEAN_EXPORT lean_object* l_Lean_Elab_Command_modifyScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__4; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15; static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_runTermElabM___rarg___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___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___boxed(lean_object*, lean_object*); @@ -923,12 +952,11 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandDeclId LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_catchExceptions(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_runTermElabM___rarg___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___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore(lean_object*); +LEAN_EXPORT lean_object* l___auto____x40_Lean_Elab_Command___hyg_421_; +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*); @@ -938,12 +966,14 @@ LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLi lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_HashMap_0__Lean_numBucketsForCapacity(lean_object*); double lean_float_sub(double, double); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_liftCommandElabM___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_expandDeclId___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1; +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); static lean_object* _init_l_Lean_Elab_Command_Scope_opts___default() { _start: { @@ -1082,11 +1112,23 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Elab_Command_State_messages___default___closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_Command_State_messages___default___closed__3; +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_Lean_Elab_Command_State_messages___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_Command_State_messages___default___closed__3; +x_1 = l_Lean_Elab_Command_State_messages___default___closed__4; return x_1; } } @@ -1266,7 +1308,15 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__1() { +static uint8_t _init_l_Lean_Elab_Command_Context_suppressElabErrors___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__1() { _start: { lean_object* x_1; @@ -1274,7 +1324,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__2() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__2() { _start: { lean_object* x_1; @@ -1282,7 +1332,7 @@ x_1 = lean_mk_string_from_bytes("Parser", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__3() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__3() { _start: { lean_object* x_1; @@ -1290,7 +1340,7 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__4() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__4() { _start: { lean_object* x_1; @@ -1298,19 +1348,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq", 9); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__5() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__3; -x_4 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__4; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__3; +x_4 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__6() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__6() { _start: { lean_object* x_1; @@ -1318,19 +1368,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq1Indented", 18); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__7() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__3; -x_4 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__3; +x_4 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__6; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__8() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__8() { _start: { lean_object* x_1; @@ -1338,17 +1388,17 @@ x_1 = lean_mk_string_from_bytes("null", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__9() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__8; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__10() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__10() { _start: { lean_object* x_1; @@ -1356,41 +1406,41 @@ x_1 = lean_mk_string_from_bytes("exact", 5); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__11() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__3; -x_4 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__10; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__3; +x_4 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__10; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__12() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__10; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__10; x_3 = lean_alloc_ctor(2, 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___auto____x40_Lean_Elab_Command___hyg_403____closed__13() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__12; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__12; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__14() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__14() { _start: { lean_object* x_1; @@ -1398,7 +1448,7 @@ x_1 = lean_mk_string_from_bytes("Term", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__15() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__15() { _start: { lean_object* x_1; @@ -1406,19 +1456,19 @@ x_1 = lean_mk_string_from_bytes("declName", 8); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__16() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__14; -x_4 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__15; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__14; +x_4 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__15; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__17() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__17() { _start: { lean_object* x_1; @@ -1426,35 +1476,35 @@ x_1 = lean_mk_string_from_bytes("decl_name%", 10); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__18() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__17; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__17; x_3 = lean_alloc_ctor(2, 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___auto____x40_Lean_Elab_Command___hyg_403____closed__19() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__18; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__18; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__20() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__16; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__19; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__16; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__19; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1462,23 +1512,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__21() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__13; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__20; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__13; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__20; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__22() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__11; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__21; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__11; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__21; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1486,23 +1536,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__23() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__22; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__22; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__24() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__9; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__23; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__9; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__23; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1510,23 +1560,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__25() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__24; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__24; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__26() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__7; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__25; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__7; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__25; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1534,23 +1584,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__27() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__26; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__26; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__28() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__5; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__27; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__5; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__27; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1558,11 +1608,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_403_() { +static lean_object* _init_l___auto____x40_Lean_Elab_Command___hyg_421_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__28; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__28; return x_1; } } @@ -1739,6 +1789,208 @@ lean_dec(x_3); return x_6; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Command_tryCatch___rarg(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; +lean_inc(x_4); +lean_inc(x_3); +x_6 = lean_apply_3(x_1, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) +{ +lean_object* x_11; +lean_free_object(x_6); +x_11 = lean_apply_4(x_2, x_8, x_3, x_4, x_9); +return x_11; +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +x_14 = l_Lean_Exception_isInterrupt(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_apply_4(x_2, x_12, x_3, x_4, x_13); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_12); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_tryCatch(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_tryCatch___rarg), 5, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__1(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 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___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_inc(x_5); +lean_inc(x_4); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = l_Lean_Exception_isInterrupt(x_9); +if (x_11 == 0) +{ +lean_object* x_12; +lean_free_object(x_7); +x_12 = lean_apply_4(x_3, x_9, x_4, x_5, x_10); +return x_12; +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = l_Lean_Exception_isInterrupt(x_13); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_apply_4(x_3, x_13, x_4, x_5, x_14); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__1___boxed), 5, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__2), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1; +x_2 = l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___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_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_6; +} +} static lean_object* _init_l_Lean_Elab_Command_mkState___closed__1() { _start: { @@ -1788,7 +2040,7 @@ lean_ctor_set(x_17, 7, x_16); return x_17; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_485_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_560_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -1814,7 +2066,7 @@ return x_7; } } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1() { _start: { lean_object* x_1; @@ -1822,7 +2074,7 @@ x_1 = lean_mk_string_from_bytes("Elab", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2() { _start: { lean_object* x_1; @@ -1830,37 +2082,37 @@ x_1 = lean_mk_string_from_bytes("lint", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6() { _start: { lean_object* x_1; @@ -1868,17 +2120,17 @@ x_1 = lean_mk_string_from_bytes("Command", 7); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8() { _start: { lean_object* x_1; @@ -1886,17 +2138,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10() { _start: { lean_object* x_1; @@ -1904,47 +2156,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15() { _start: { lean_object* x_1; @@ -1952,33 +2204,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16; -x_2 = lean_unsigned_to_nat(517u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16; +x_2 = lean_unsigned_to_nat(592u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -2726,7 +2978,7 @@ 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; lean_object* x_19; +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; x_10 = lean_ctor_get(x_4, 0); x_11 = lean_ctor_get(x_4, 1); x_12 = lean_ctor_get(x_4, 2); @@ -2735,6 +2987,9 @@ x_14 = lean_ctor_get(x_4, 4); x_15 = lean_ctor_get(x_4, 5); x_16 = lean_ctor_get(x_4, 7); x_17 = lean_ctor_get(x_4, 8); +x_18 = lean_ctor_get(x_4, 9); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); @@ -2744,18 +2999,20 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_4); -x_18 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_11); -lean_ctor_set(x_18, 2, x_12); -lean_ctor_set(x_18, 3, x_13); -lean_ctor_set(x_18, 4, x_14); -lean_ctor_set(x_18, 5, x_15); -lean_ctor_set(x_18, 6, x_2); -lean_ctor_set(x_18, 7, x_16); -lean_ctor_set(x_18, 8, x_17); -x_19 = lean_apply_3(x_3, x_18, x_5, x_6); -return x_19; +x_20 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_11); +lean_ctor_set(x_20, 2, x_12); +lean_ctor_set(x_20, 3, x_13); +lean_ctor_set(x_20, 4, x_14); +lean_ctor_set(x_20, 5, x_15); +lean_ctor_set(x_20, 6, x_2); +lean_ctor_set(x_20, 7, x_16); +lean_ctor_set(x_20, 8, x_17); +lean_ctor_set(x_20, 9, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*10, x_19); +x_21 = lean_apply_3(x_3, x_20, x_5, x_6); +return x_21; } } } @@ -5011,7 +5268,7 @@ x_19 = 0; x_20 = l_Lean_Elab_mkMessageCore(x_17, x_18, x_8, x_19, x_11, x_12); lean_dec(x_12); lean_dec(x_11); -x_21 = l_Lean_PersistentArray_push___rarg(x_5, x_20); +x_21 = l_Lean_MessageLog_add(x_20, x_5); x_22 = 1; x_23 = lean_usize_add(x_4, x_22); x_4 = x_23; @@ -5041,7 +5298,7 @@ x_34 = 0; x_35 = l_Lean_Elab_mkMessageCore(x_32, x_33, x_31, x_34, x_25, x_26); lean_dec(x_26); lean_dec(x_25); -x_36 = l_Lean_PersistentArray_push___rarg(x_5, x_35); +x_36 = l_Lean_MessageLog_add(x_35, x_5); x_37 = 1; x_38 = lean_usize_add(x_4, x_37); x_4 = x_38; @@ -5918,13 +6175,13 @@ x_11 = l_Lean_Elab_Command_mkState___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = lean_apply_3(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -5934,6 +6191,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -5944,23 +6204,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_Elab_Command_mkState___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = lean_apply_3(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_Elab_Command_mkState___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = lean_apply_3(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -6002,7 +6264,7 @@ return x_1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 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; uint8_t x_32; lean_object* x_33; uint8_t x_34; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; x_5 = lean_st_ref_get(x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -6041,545 +6303,551 @@ x_24 = lean_ctor_get(x_2, 1); x_25 = lean_ctor_get(x_2, 2); x_26 = lean_ctor_get(x_2, 5); x_27 = lean_ctor_get(x_2, 6); -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -x_29 = lean_ctor_get(x_22, 2); -lean_inc(x_29); -x_30 = lean_ctor_get(x_22, 3); +x_28 = lean_ctor_get(x_2, 9); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_30 = lean_ctor_get(x_22, 1); lean_inc(x_30); +x_31 = lean_ctor_get(x_22, 2); +lean_inc(x_31); +x_32 = lean_ctor_get(x_22, 3); +lean_inc(x_32); lean_dec(x_22); -x_31 = l_Lean_Core_getMaxHeartbeats(x_28); -x_32 = 0; +x_33 = l_Lean_Core_getMaxHeartbeats(x_30); +x_34 = 0; +lean_inc(x_28); lean_inc(x_26); lean_inc(x_27); lean_inc(x_25); -lean_inc(x_28); +lean_inc(x_30); lean_inc(x_24); lean_inc(x_23); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_23); -lean_ctor_set(x_33, 1, x_24); -lean_ctor_set(x_33, 2, x_28); -lean_ctor_set(x_33, 3, x_25); -lean_ctor_set(x_33, 4, x_14); -lean_ctor_set(x_33, 5, x_27); -lean_ctor_set(x_33, 6, x_29); -lean_ctor_set(x_33, 7, x_30); -lean_ctor_set(x_33, 8, x_9); -lean_ctor_set(x_33, 9, x_31); -lean_ctor_set(x_33, 10, x_26); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_32); -x_34 = !lean_is_exclusive(x_16); -if (x_34 == 0) +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_23); +lean_ctor_set(x_35, 1, x_24); +lean_ctor_set(x_35, 2, x_30); +lean_ctor_set(x_35, 3, x_25); +lean_ctor_set(x_35, 4, x_14); +lean_ctor_set(x_35, 5, x_27); +lean_ctor_set(x_35, 6, x_31); +lean_ctor_set(x_35, 7, x_32); +lean_ctor_set(x_35, 8, x_9); +lean_ctor_set(x_35, 9, x_33); +lean_ctor_set(x_35, 10, x_26); +lean_ctor_set(x_35, 11, x_28); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_29); +x_36 = !lean_is_exclusive(x_16); +if (x_36 == 0) { -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_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_112; -x_35 = lean_ctor_get(x_16, 1); -lean_dec(x_35); -x_36 = lean_ctor_get(x_16, 0); -lean_dec(x_36); -x_37 = l_Lean_Elab_Command_State_infoState___default___closed__3; -x_38 = l_Lean_Elab_Command_State_messages___default___closed__3; -lean_ctor_set(x_16, 1, x_38); -lean_ctor_set(x_16, 0, x_37); -x_39 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__3; -x_40 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_40, 0, x_20); -lean_ctor_set(x_40, 1, x_13); -lean_ctor_set(x_40, 2, x_15); -lean_ctor_set(x_40, 3, x_17); -lean_ctor_set(x_40, 4, x_39); -lean_ctor_set(x_40, 5, x_38); -lean_ctor_set(x_40, 6, x_16); -x_102 = lean_st_mk_ref(x_40, x_10); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__4; -x_106 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_28, x_105); -x_107 = lean_st_ref_get(x_103, x_104); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_ctor_get(x_108, 0); -lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Kernel_isDiagnosticsEnabled(x_110); +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_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; uint8_t x_114; uint8_t x_115; +x_37 = lean_ctor_get(x_16, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_16, 0); +lean_dec(x_38); +x_39 = l_Lean_Elab_Command_State_infoState___default___closed__3; +x_40 = l_Lean_Elab_Command_State_messages___default___closed__3; +lean_ctor_set(x_16, 1, x_40); +lean_ctor_set(x_16, 0, x_39); +x_41 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__3; +x_42 = l_Lean_Elab_Command_State_messages___default___closed__4; +x_43 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_43, 0, x_20); +lean_ctor_set(x_43, 1, x_13); +lean_ctor_set(x_43, 2, x_15); +lean_ctor_set(x_43, 3, x_17); +lean_ctor_set(x_43, 4, x_41); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_16); +x_105 = lean_st_mk_ref(x_43, x_10); +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___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__4; +x_109 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_30, x_108); +x_110 = lean_st_ref_get(x_106, x_107); +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); -if (x_111 == 0) -{ -if (x_106 == 0) -{ -uint8_t x_176; -x_176 = 1; -x_112 = x_176; -goto block_175; -} -else -{ -x_112 = x_32; -goto block_175; -} -} -else -{ -if (x_106 == 0) -{ -x_112 = x_32; -goto block_175; -} -else -{ -uint8_t x_177; -x_177 = 1; -x_112 = x_177; -goto block_175; -} -} -block_101: -{ -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; uint8_t x_54; -x_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = lean_st_ref_take(x_3, x_42); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_ctor_get(x_44, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_44, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_44, 3); -lean_inc(x_51); -x_52 = lean_ctor_get(x_44, 5); -lean_inc(x_52); -x_53 = lean_ctor_get(x_44, 6); -lean_inc(x_53); -lean_dec(x_44); -x_54 = !lean_is_exclusive(x_46); -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; lean_object* x_61; uint8_t x_62; -x_55 = lean_ctor_get(x_46, 1); -x_56 = lean_ctor_get(x_46, 6); -x_57 = lean_ctor_get(x_46, 7); -lean_dec(x_57); -x_58 = lean_ctor_get(x_46, 5); -lean_dec(x_58); -x_59 = lean_ctor_get(x_46, 3); -lean_dec(x_59); -x_60 = lean_ctor_get(x_46, 0); -lean_dec(x_60); -x_61 = l_Lean_PersistentArray_append___rarg(x_55, x_52); -x_62 = !lean_is_exclusive(x_56); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_63 = lean_ctor_get(x_56, 1); -x_64 = lean_ctor_get(x_53, 1); -lean_inc(x_64); -lean_dec(x_53); -x_65 = l_Lean_PersistentArray_append___rarg(x_63, x_64); -lean_ctor_set(x_56, 1, x_65); -x_66 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_51); -lean_ctor_set(x_46, 7, x_66); -lean_ctor_set(x_46, 5, x_50); -lean_ctor_set(x_46, 3, x_49); -lean_ctor_set(x_46, 1, x_61); -lean_ctor_set(x_46, 0, x_48); -x_67 = lean_st_ref_set(x_3, x_46, x_47); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set(x_67, 0, x_43); -return x_67; -} -else -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_43); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -else -{ -uint8_t 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; -x_72 = lean_ctor_get_uint8(x_56, sizeof(void*)*2); -x_73 = lean_ctor_get(x_56, 0); -x_74 = lean_ctor_get(x_56, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_56); -x_75 = lean_ctor_get(x_53, 1); -lean_inc(x_75); -lean_dec(x_53); -x_76 = l_Lean_PersistentArray_append___rarg(x_74, x_75); -x_77 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_77, 0, x_73); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set_uint8(x_77, sizeof(void*)*2, x_72); -x_78 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_51); -lean_ctor_set(x_46, 7, x_78); -lean_ctor_set(x_46, 6, x_77); -lean_ctor_set(x_46, 5, x_50); -lean_ctor_set(x_46, 3, x_49); -lean_ctor_set(x_46, 1, x_61); -lean_ctor_set(x_46, 0, x_48); -x_79 = lean_st_ref_set(x_3, x_46, x_47); -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); -} -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_43); -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; uint8_t 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; -x_83 = lean_ctor_get(x_46, 1); -x_84 = lean_ctor_get(x_46, 2); -x_85 = lean_ctor_get(x_46, 4); -x_86 = lean_ctor_get(x_46, 6); -lean_inc(x_86); -lean_inc(x_85); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_46); -x_87 = l_Lean_PersistentArray_append___rarg(x_83, x_52); -x_88 = lean_ctor_get_uint8(x_86, sizeof(void*)*2); -x_89 = lean_ctor_get(x_86, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_91 = x_86; -} else { - lean_dec_ref(x_86); - x_91 = lean_box(0); -} -x_92 = lean_ctor_get(x_53, 1); -lean_inc(x_92); -lean_dec(x_53); -x_93 = l_Lean_PersistentArray_append___rarg(x_90, x_92); -if (lean_is_scalar(x_91)) { - x_94 = lean_alloc_ctor(0, 2, 1); -} else { - x_94 = x_91; -} -lean_ctor_set(x_94, 0, x_89); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set_uint8(x_94, sizeof(void*)*2, x_88); -x_95 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_51); -x_96 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_96, 0, x_48); -lean_ctor_set(x_96, 1, x_87); -lean_ctor_set(x_96, 2, x_84); -lean_ctor_set(x_96, 3, x_49); -lean_ctor_set(x_96, 4, x_85); -lean_ctor_set(x_96, 5, x_50); -lean_ctor_set(x_96, 6, x_94); -lean_ctor_set(x_96, 7, x_95); -x_97 = lean_st_ref_set(x_3, x_96, x_47); -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); -} -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(0, 2, 0); -} else { - x_100 = x_99; -} -lean_ctor_set(x_100, 0, x_43); -lean_ctor_set(x_100, 1, x_98); -return x_100; -} -} -block_175: -{ -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_113 = lean_st_ref_take(x_103, x_109); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Kernel_isDiagnosticsEnabled(x_113); lean_dec(x_113); -x_116 = !lean_is_exclusive(x_114); -if (x_116 == 0) +if (x_114 == 0) { -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_117 = lean_ctor_get(x_114, 0); -x_118 = lean_ctor_get(x_114, 4); -lean_dec(x_118); -x_119 = l_Lean_Kernel_enableDiag(x_117, x_106); -lean_ctor_set(x_114, 4, x_39); -lean_ctor_set(x_114, 0, x_119); -x_120 = lean_st_ref_set(x_103, x_114, x_115); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_122 = lean_box(0); -lean_inc(x_103); -x_123 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_28, x_106, x_1, x_122, x_33, x_103, x_121); -if (lean_obj_tag(x_123) == 0) +if (x_109 == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; -x_124 = lean_ctor_get(x_123, 0); +uint8_t x_179; +x_179 = 1; +x_115 = x_179; +goto block_178; +} +else +{ +x_115 = x_34; +goto block_178; +} +} +else +{ +if (x_109 == 0) +{ +x_115 = x_34; +goto block_178; +} +else +{ +uint8_t x_180; +x_180 = 1; +x_115 = x_180; +goto block_178; +} +} +block_104: +{ +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; uint8_t x_57; +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_48 = lean_st_ref_take(x_3, x_45); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_ctor_get(x_47, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); +x_53 = lean_ctor_get(x_47, 2); +lean_inc(x_53); +x_54 = lean_ctor_get(x_47, 3); +lean_inc(x_54); +x_55 = lean_ctor_get(x_47, 5); +lean_inc(x_55); +x_56 = lean_ctor_get(x_47, 6); +lean_inc(x_56); +lean_dec(x_47); +x_57 = !lean_is_exclusive(x_49); +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_object* x_63; lean_object* x_64; uint8_t x_65; +x_58 = lean_ctor_get(x_49, 1); +x_59 = lean_ctor_get(x_49, 6); +x_60 = lean_ctor_get(x_49, 7); +lean_dec(x_60); +x_61 = lean_ctor_get(x_49, 5); +lean_dec(x_61); +x_62 = lean_ctor_get(x_49, 3); +lean_dec(x_62); +x_63 = lean_ctor_get(x_49, 0); +lean_dec(x_63); +x_64 = l_Lean_MessageLog_append(x_58, x_55); +x_65 = !lean_is_exclusive(x_59); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_ctor_get(x_59, 1); +x_67 = lean_ctor_get(x_56, 1); +lean_inc(x_67); +lean_dec(x_56); +x_68 = l_Lean_PersistentArray_append___rarg(x_66, x_67); +lean_ctor_set(x_59, 1, x_68); +x_69 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_54); +lean_ctor_set(x_49, 7, x_69); +lean_ctor_set(x_49, 5, x_53); +lean_ctor_set(x_49, 3, x_52); +lean_ctor_set(x_49, 1, x_64); +lean_ctor_set(x_49, 0, x_51); +x_70 = lean_st_ref_set(x_3, x_49, x_50); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +lean_ctor_set(x_70, 0, x_46); +return x_70; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_46); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +else +{ +uint8_t 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_75 = lean_ctor_get_uint8(x_59, sizeof(void*)*2); +x_76 = lean_ctor_get(x_59, 0); +x_77 = lean_ctor_get(x_59, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_59); +x_78 = lean_ctor_get(x_56, 1); +lean_inc(x_78); +lean_dec(x_56); +x_79 = l_Lean_PersistentArray_append___rarg(x_77, x_78); +x_80 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_80, 0, x_76); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_75); +x_81 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_54); +lean_ctor_set(x_49, 7, x_81); +lean_ctor_set(x_49, 6, x_80); +lean_ctor_set(x_49, 5, x_53); +lean_ctor_set(x_49, 3, x_52); +lean_ctor_set(x_49, 1, x_64); +lean_ctor_set(x_49, 0, x_51); +x_82 = lean_st_ref_set(x_3, x_49, x_50); +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); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_46); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t 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; +x_86 = lean_ctor_get(x_49, 1); +x_87 = lean_ctor_get(x_49, 2); +x_88 = lean_ctor_get(x_49, 4); +x_89 = lean_ctor_get(x_49, 6); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_49); +x_90 = l_Lean_MessageLog_append(x_86, x_55); +x_91 = lean_ctor_get_uint8(x_89, sizeof(void*)*2); +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_89, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_94 = x_89; +} else { + lean_dec_ref(x_89); + x_94 = lean_box(0); +} +x_95 = lean_ctor_get(x_56, 1); +lean_inc(x_95); +lean_dec(x_56); +x_96 = l_Lean_PersistentArray_append___rarg(x_93, x_95); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 2, 1); +} else { + x_97 = x_94; +} +lean_ctor_set(x_97, 0, x_92); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set_uint8(x_97, sizeof(void*)*2, x_91); +x_98 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_54); +x_99 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_99, 0, x_51); +lean_ctor_set(x_99, 1, x_90); +lean_ctor_set(x_99, 2, x_87); +lean_ctor_set(x_99, 3, x_52); +lean_ctor_set(x_99, 4, x_88); +lean_ctor_set(x_99, 5, x_53); +lean_ctor_set(x_99, 6, x_97); +lean_ctor_set(x_99, 7, x_98); +x_100 = lean_st_ref_set(x_3, x_99, x_50); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; +} else { + lean_dec_ref(x_100); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_46); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +block_178: +{ +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_116 = lean_st_ref_take(x_106, x_112); +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_119 = !lean_is_exclusive(x_117); +if (x_119 == 0) +{ +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_120 = lean_ctor_get(x_117, 0); +x_121 = lean_ctor_get(x_117, 4); +lean_dec(x_121); +x_122 = l_Lean_Kernel_enableDiag(x_120, x_109); +lean_ctor_set(x_117, 4, x_41); +lean_ctor_set(x_117, 0, x_122); +x_123 = lean_st_ref_set(x_106, x_117, x_118); +x_124 = lean_ctor_get(x_123, 1); lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); lean_dec(x_123); -x_126 = lean_st_ref_get(x_103, x_125); -lean_dec(x_103); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) +x_125 = lean_box(0); +lean_inc(x_106); +x_126 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_30, x_109, x_1, x_125, x_35, x_106, x_124); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_126, 0); -x_129 = lean_ctor_get(x_126, 1); -lean_ctor_set(x_126, 1, x_128); -lean_ctor_set(x_126, 0, x_124); -x_41 = x_126; -x_42 = x_129; -goto block_101; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_126, 0); -x_131 = lean_ctor_get(x_126, 1); -lean_inc(x_131); -lean_inc(x_130); +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); lean_dec(x_126); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_124); -lean_ctor_set(x_132, 1, x_130); -x_41 = x_132; -x_42 = x_131; -goto block_101; -} +x_129 = lean_st_ref_get(x_106, x_128); +lean_dec(x_106); +x_130 = !lean_is_exclusive(x_129); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_129, 0); +x_132 = lean_ctor_get(x_129, 1); +lean_ctor_set(x_129, 1, x_131); +lean_ctor_set(x_129, 0, x_127); +x_44 = x_129; +x_45 = x_132; +goto block_104; } else { -uint8_t x_133; -lean_dec(x_103); -x_133 = !lean_is_exclusive(x_123); -if (x_133 == 0) -{ -return x_123; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_123, 0); -x_135 = lean_ctor_get(x_123, 1); -lean_inc(x_135); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_129, 0); +x_134 = lean_ctor_get(x_129, 1); lean_inc(x_134); -lean_dec(x_123); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +lean_inc(x_133); +lean_dec(x_129); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_127); +lean_ctor_set(x_135, 1, x_133); +x_44 = x_135; +x_45 = x_134; +goto block_104; +} +} +else +{ +uint8_t x_136; +lean_dec(x_106); +x_136 = !lean_is_exclusive(x_126); +if (x_136 == 0) +{ +return x_126; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_126, 0); +x_138 = lean_ctor_get(x_126, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_126); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } } 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; lean_object* x_148; -x_137 = lean_ctor_get(x_114, 0); -x_138 = lean_ctor_get(x_114, 1); -x_139 = lean_ctor_get(x_114, 2); -x_140 = lean_ctor_get(x_114, 3); -x_141 = lean_ctor_get(x_114, 5); -x_142 = lean_ctor_get(x_114, 6); +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; +x_140 = lean_ctor_get(x_117, 0); +x_141 = lean_ctor_get(x_117, 1); +x_142 = lean_ctor_get(x_117, 2); +x_143 = lean_ctor_get(x_117, 3); +x_144 = lean_ctor_get(x_117, 5); +x_145 = lean_ctor_get(x_117, 6); +lean_inc(x_145); +lean_inc(x_144); +lean_inc(x_143); lean_inc(x_142); lean_inc(x_141); lean_inc(x_140); -lean_inc(x_139); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_114); -x_143 = l_Lean_Kernel_enableDiag(x_137, x_106); -x_144 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_138); -lean_ctor_set(x_144, 2, x_139); -lean_ctor_set(x_144, 3, x_140); -lean_ctor_set(x_144, 4, x_39); -lean_ctor_set(x_144, 5, x_141); -lean_ctor_set(x_144, 6, x_142); -x_145 = lean_st_ref_set(x_103, x_144, x_115); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -lean_dec(x_145); -x_147 = lean_box(0); -lean_inc(x_103); -x_148 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_28, x_106, x_1, x_147, x_33, x_103, x_146); -if (lean_obj_tag(x_148) == 0) -{ -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; -x_149 = lean_ctor_get(x_148, 0); +lean_dec(x_117); +x_146 = l_Lean_Kernel_enableDiag(x_140, x_109); +x_147 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_141); +lean_ctor_set(x_147, 2, x_142); +lean_ctor_set(x_147, 3, x_143); +lean_ctor_set(x_147, 4, x_41); +lean_ctor_set(x_147, 5, x_144); +lean_ctor_set(x_147, 6, x_145); +x_148 = lean_st_ref_set(x_106, x_147, x_118); +x_149 = lean_ctor_get(x_148, 1); lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); lean_dec(x_148); -x_151 = lean_st_ref_get(x_103, x_150); -lean_dec(x_103); +x_150 = lean_box(0); +lean_inc(x_106); +x_151 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_30, x_109, x_1, x_150, x_35, x_106, x_149); +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; lean_object* x_158; 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_st_ref_get(x_106, x_153); +lean_dec(x_106); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_157 = x_154; +} else { + lean_dec_ref(x_154); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_152); +lean_ctor_set(x_158, 1, x_155); +x_44 = x_158; +x_45 = x_156; +goto block_104; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_106); +x_159 = lean_ctor_get(x_151, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_151, 1); +lean_inc(x_160); if (lean_is_exclusive(x_151)) { lean_ctor_release(x_151, 0); lean_ctor_release(x_151, 1); - x_154 = x_151; + x_161 = x_151; } else { lean_dec_ref(x_151); - x_154 = lean_box(0); + x_161 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_155 = x_154; + x_162 = x_161; } -lean_ctor_set(x_155, 0, x_149); -lean_ctor_set(x_155, 1, x_152); -x_41 = x_155; -x_42 = x_153; -goto block_101; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_103); -x_156 = lean_ctor_get(x_148, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_148, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_158 = x_148; -} else { - lean_dec_ref(x_148); - x_158 = lean_box(0); -} -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); -} else { - x_159 = x_158; -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } } else { -lean_object* x_160; lean_object* x_161; -x_160 = lean_box(0); -lean_inc(x_103); -x_161 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_28, x_106, x_1, x_160, x_33, x_103, x_109); -if (lean_obj_tag(x_161) == 0) +lean_object* x_163; lean_object* x_164; +x_163 = lean_box(0); +lean_inc(x_106); +x_164 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_30, x_109, x_1, x_163, x_35, x_106, x_112); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_st_ref_get(x_103, x_163); -lean_dec(x_103); -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_164, 0); -x_167 = lean_ctor_get(x_164, 1); -lean_ctor_set(x_164, 1, x_166); -lean_ctor_set(x_164, 0, x_162); -x_41 = x_164; -x_42 = x_167; -goto block_101; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_164, 0); -x_169 = lean_ctor_get(x_164, 1); -lean_inc(x_169); -lean_inc(x_168); +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); lean_dec(x_164); -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_162); -lean_ctor_set(x_170, 1, x_168); -x_41 = x_170; -x_42 = x_169; -goto block_101; -} +x_167 = lean_st_ref_get(x_106, x_166); +lean_dec(x_106); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); +lean_ctor_set(x_167, 1, x_169); +lean_ctor_set(x_167, 0, x_165); +x_44 = x_167; +x_45 = x_170; +goto block_104; } else { -uint8_t x_171; -lean_dec(x_103); -x_171 = !lean_is_exclusive(x_161); -if (x_171 == 0) -{ -return x_161; -} -else -{ -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_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_167, 0); +x_172 = lean_ctor_get(x_167, 1); 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); -return x_174; +lean_inc(x_171); +lean_dec(x_167); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_165); +lean_ctor_set(x_173, 1, x_171); +x_44 = x_173; +x_45 = x_172; +goto block_104; +} +} +else +{ +uint8_t x_174; +lean_dec(x_106); +x_174 = !lean_is_exclusive(x_164); +if (x_174 == 0) +{ +return x_164; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_164, 0); +x_176 = lean_ctor_get(x_164, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_164); +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +return x_177; } } } @@ -6587,360 +6855,361 @@ return x_174; } else { -uint8_t x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_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; lean_object* x_224; lean_object* x_225; uint8_t x_226; uint8_t x_227; -x_178 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); +uint8_t 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_221; lean_object* x_222; 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; uint8_t x_230; uint8_t x_231; +x_181 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); lean_dec(x_16); -x_179 = l_Lean_Elab_Command_State_infoState___default___closed__3; -x_180 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_181 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -lean_ctor_set_uint8(x_181, sizeof(void*)*2, x_178); -x_182 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__3; -x_183 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_183, 0, x_20); -lean_ctor_set(x_183, 1, x_13); -lean_ctor_set(x_183, 2, x_15); -lean_ctor_set(x_183, 3, x_17); -lean_ctor_set(x_183, 4, x_182); -lean_ctor_set(x_183, 5, x_180); -lean_ctor_set(x_183, 6, x_181); -x_217 = lean_st_mk_ref(x_183, x_10); -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_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__4; -x_221 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_28, x_220); -x_222 = lean_st_ref_get(x_218, x_219); -x_223 = lean_ctor_get(x_222, 0); +x_182 = l_Lean_Elab_Command_State_infoState___default___closed__3; +x_183 = l_Lean_Elab_Command_State_messages___default___closed__3; +x_184 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +lean_ctor_set_uint8(x_184, sizeof(void*)*2, x_181); +x_185 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__3; +x_186 = l_Lean_Elab_Command_State_messages___default___closed__4; +x_187 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_187, 0, x_20); +lean_ctor_set(x_187, 1, x_13); +lean_ctor_set(x_187, 2, x_15); +lean_ctor_set(x_187, 3, x_17); +lean_ctor_set(x_187, 4, x_185); +lean_ctor_set(x_187, 5, x_186); +lean_ctor_set(x_187, 6, x_184); +x_221 = lean_st_mk_ref(x_187, x_10); +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = lean_ctor_get(x_223, 0); -lean_inc(x_225); -lean_dec(x_223); -x_226 = l_Lean_Kernel_isDiagnosticsEnabled(x_225); -lean_dec(x_225); -if (x_226 == 0) -{ -if (x_221 == 0) -{ -uint8_t x_269; -x_269 = 1; -x_227 = x_269; -goto block_268; -} -else -{ -x_227 = x_32; -goto block_268; -} -} -else -{ -if (x_221 == 0) -{ -x_227 = x_32; -goto block_268; -} -else -{ -uint8_t x_270; -x_270 = 1; -x_227 = x_270; -goto block_268; -} -} -block_216: -{ -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; 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_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_186 = lean_ctor_get(x_184, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -lean_dec(x_184); -x_188 = lean_st_ref_take(x_3, x_185); -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_187, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_187, 1); -lean_inc(x_192); -x_193 = lean_ctor_get(x_187, 2); -lean_inc(x_193); -x_194 = lean_ctor_get(x_187, 3); -lean_inc(x_194); -x_195 = lean_ctor_get(x_187, 5); -lean_inc(x_195); -x_196 = lean_ctor_get(x_187, 6); -lean_inc(x_196); -lean_dec(x_187); -x_197 = lean_ctor_get(x_189, 1); -lean_inc(x_197); -x_198 = lean_ctor_get(x_189, 2); -lean_inc(x_198); -x_199 = lean_ctor_get(x_189, 4); -lean_inc(x_199); -x_200 = lean_ctor_get(x_189, 6); -lean_inc(x_200); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - lean_ctor_release(x_189, 2); - lean_ctor_release(x_189, 3); - lean_ctor_release(x_189, 4); - lean_ctor_release(x_189, 5); - lean_ctor_release(x_189, 6); - lean_ctor_release(x_189, 7); - x_201 = x_189; -} else { - lean_dec_ref(x_189); - x_201 = lean_box(0); -} -x_202 = l_Lean_PersistentArray_append___rarg(x_197, x_195); -x_203 = lean_ctor_get_uint8(x_200, sizeof(void*)*2); -x_204 = lean_ctor_get(x_200, 0); -lean_inc(x_204); -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_196, 1); -lean_inc(x_207); -lean_dec(x_196); -x_208 = l_Lean_PersistentArray_append___rarg(x_205, x_207); -if (lean_is_scalar(x_206)) { - x_209 = lean_alloc_ctor(0, 2, 1); -} else { - x_209 = x_206; -} -lean_ctor_set(x_209, 0, x_204); -lean_ctor_set(x_209, 1, x_208); -lean_ctor_set_uint8(x_209, sizeof(void*)*2, x_203); -x_210 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_194); -if (lean_is_scalar(x_201)) { - x_211 = lean_alloc_ctor(0, 8, 0); -} else { - x_211 = x_201; -} -lean_ctor_set(x_211, 0, x_191); -lean_ctor_set(x_211, 1, x_202); -lean_ctor_set(x_211, 2, x_198); -lean_ctor_set(x_211, 3, x_192); -lean_ctor_set(x_211, 4, x_199); -lean_ctor_set(x_211, 5, x_193); -lean_ctor_set(x_211, 6, x_209); -lean_ctor_set(x_211, 7, x_210); -x_212 = lean_st_ref_set(x_3, x_211, x_190); -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_214 = x_212; -} else { - lean_dec_ref(x_212); - x_214 = lean_box(0); -} -if (lean_is_scalar(x_214)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_214; -} -lean_ctor_set(x_215, 0, x_186); -lean_ctor_set(x_215, 1, x_213); -return x_215; -} -block_268: -{ -if (x_227 == 0) -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_228 = lean_st_ref_take(x_218, x_224); -x_229 = lean_ctor_get(x_228, 0); +lean_dec(x_221); +x_224 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___closed__4; +x_225 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_30, x_224); +x_226 = lean_st_ref_get(x_222, x_223); +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_ctor_get(x_227, 0); lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -x_231 = lean_ctor_get(x_229, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_229, 1); -lean_inc(x_232); -x_233 = lean_ctor_get(x_229, 2); -lean_inc(x_233); -x_234 = lean_ctor_get(x_229, 3); -lean_inc(x_234); -x_235 = lean_ctor_get(x_229, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_229, 6); -lean_inc(x_236); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - lean_ctor_release(x_229, 2); - lean_ctor_release(x_229, 3); - lean_ctor_release(x_229, 4); - lean_ctor_release(x_229, 5); - lean_ctor_release(x_229, 6); - x_237 = x_229; -} else { - lean_dec_ref(x_229); - x_237 = lean_box(0); -} -x_238 = l_Lean_Kernel_enableDiag(x_231, x_221); -if (lean_is_scalar(x_237)) { - x_239 = lean_alloc_ctor(0, 7, 0); -} else { - x_239 = x_237; -} -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_232); -lean_ctor_set(x_239, 2, x_233); -lean_ctor_set(x_239, 3, x_234); -lean_ctor_set(x_239, 4, x_182); -lean_ctor_set(x_239, 5, x_235); -lean_ctor_set(x_239, 6, x_236); -x_240 = lean_st_ref_set(x_218, x_239, x_230); -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -lean_dec(x_240); -x_242 = lean_box(0); -lean_inc(x_218); -x_243 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_28, x_221, x_1, x_242, x_33, x_218, x_241); -if (lean_obj_tag(x_243) == 0) +lean_dec(x_227); +x_230 = l_Lean_Kernel_isDiagnosticsEnabled(x_229); +lean_dec(x_229); +if (x_230 == 0) { -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_object* x_250; -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_st_ref_get(x_218, x_245); -lean_dec(x_218); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -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); -} -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(0, 2, 0); -} else { - x_250 = x_249; -} -lean_ctor_set(x_250, 0, x_244); -lean_ctor_set(x_250, 1, x_247); -x_184 = x_250; -x_185 = x_248; -goto block_216; +if (x_225 == 0) +{ +uint8_t x_273; +x_273 = 1; +x_231 = x_273; +goto block_272; } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_218); -x_251 = lean_ctor_get(x_243, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_243, 1); -lean_inc(x_252); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_253 = x_243; +x_231 = x_34; +goto block_272; +} +} +else +{ +if (x_225 == 0) +{ +x_231 = x_34; +goto block_272; +} +else +{ +uint8_t x_274; +x_274 = 1; +x_231 = x_274; +goto block_272; +} +} +block_220: +{ +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; uint8_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_190 = lean_ctor_get(x_188, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_188, 1); +lean_inc(x_191); +lean_dec(x_188); +x_192 = lean_st_ref_take(x_3, x_189); +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_195 = lean_ctor_get(x_191, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_191, 1); +lean_inc(x_196); +x_197 = lean_ctor_get(x_191, 2); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 3); +lean_inc(x_198); +x_199 = lean_ctor_get(x_191, 5); +lean_inc(x_199); +x_200 = lean_ctor_get(x_191, 6); +lean_inc(x_200); +lean_dec(x_191); +x_201 = lean_ctor_get(x_193, 1); +lean_inc(x_201); +x_202 = lean_ctor_get(x_193, 2); +lean_inc(x_202); +x_203 = lean_ctor_get(x_193, 4); +lean_inc(x_203); +x_204 = lean_ctor_get(x_193, 6); +lean_inc(x_204); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + lean_ctor_release(x_193, 2); + lean_ctor_release(x_193, 3); + lean_ctor_release(x_193, 4); + lean_ctor_release(x_193, 5); + lean_ctor_release(x_193, 6); + lean_ctor_release(x_193, 7); + x_205 = x_193; } else { - lean_dec_ref(x_243); + lean_dec_ref(x_193); + x_205 = lean_box(0); +} +x_206 = l_Lean_MessageLog_append(x_201, x_199); +x_207 = lean_ctor_get_uint8(x_204, sizeof(void*)*2); +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); +} +x_211 = lean_ctor_get(x_200, 1); +lean_inc(x_211); +lean_dec(x_200); +x_212 = l_Lean_PersistentArray_append___rarg(x_209, x_211); +if (lean_is_scalar(x_210)) { + x_213 = lean_alloc_ctor(0, 2, 1); +} else { + x_213 = x_210; +} +lean_ctor_set(x_213, 0, x_208); +lean_ctor_set(x_213, 1, x_212); +lean_ctor_set_uint8(x_213, sizeof(void*)*2, x_207); +x_214 = l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___spec__1(x_27, x_198); +if (lean_is_scalar(x_205)) { + x_215 = lean_alloc_ctor(0, 8, 0); +} else { + x_215 = x_205; +} +lean_ctor_set(x_215, 0, x_195); +lean_ctor_set(x_215, 1, x_206); +lean_ctor_set(x_215, 2, x_202); +lean_ctor_set(x_215, 3, x_196); +lean_ctor_set(x_215, 4, x_203); +lean_ctor_set(x_215, 5, x_197); +lean_ctor_set(x_215, 6, x_213); +lean_ctor_set(x_215, 7, x_214); +x_216 = lean_st_ref_set(x_3, x_215, x_194); +x_217 = lean_ctor_get(x_216, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_218 = x_216; +} else { + lean_dec_ref(x_216); + x_218 = lean_box(0); +} +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(0, 2, 0); +} else { + x_219 = x_218; +} +lean_ctor_set(x_219, 0, x_190); +lean_ctor_set(x_219, 1, x_217); +return x_219; +} +block_272: +{ +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; 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_232 = lean_st_ref_take(x_222, x_228); +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = lean_ctor_get(x_233, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_233, 1); +lean_inc(x_236); +x_237 = lean_ctor_get(x_233, 2); +lean_inc(x_237); +x_238 = lean_ctor_get(x_233, 3); +lean_inc(x_238); +x_239 = lean_ctor_get(x_233, 5); +lean_inc(x_239); +x_240 = lean_ctor_get(x_233, 6); +lean_inc(x_240); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + lean_ctor_release(x_233, 2); + lean_ctor_release(x_233, 3); + lean_ctor_release(x_233, 4); + lean_ctor_release(x_233, 5); + lean_ctor_release(x_233, 6); + x_241 = x_233; +} else { + lean_dec_ref(x_233); + x_241 = lean_box(0); +} +x_242 = l_Lean_Kernel_enableDiag(x_235, x_225); +if (lean_is_scalar(x_241)) { + x_243 = lean_alloc_ctor(0, 7, 0); +} else { + x_243 = x_241; +} +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_236); +lean_ctor_set(x_243, 2, x_237); +lean_ctor_set(x_243, 3, x_238); +lean_ctor_set(x_243, 4, x_185); +lean_ctor_set(x_243, 5, x_239); +lean_ctor_set(x_243, 6, x_240); +x_244 = lean_st_ref_set(x_222, x_243, x_234); +x_245 = lean_ctor_get(x_244, 1); +lean_inc(x_245); +lean_dec(x_244); +x_246 = lean_box(0); +lean_inc(x_222); +x_247 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_30, x_225, x_1, x_246, x_35, x_222, x_245); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +x_250 = lean_st_ref_get(x_222, x_249); +lean_dec(x_222); +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_253)) { - x_254 = lean_alloc_ctor(1, 2, 0); + x_254 = lean_alloc_ctor(0, 2, 0); } else { x_254 = x_253; } -lean_ctor_set(x_254, 0, x_251); -lean_ctor_set(x_254, 1, x_252); -return x_254; +lean_ctor_set(x_254, 0, x_248); +lean_ctor_set(x_254, 1, x_251); +x_188 = x_254; +x_189 = x_252; +goto block_220; +} +else +{ +lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_222); +x_255 = lean_ctor_get(x_247, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_247, 1); +lean_inc(x_256); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_257 = x_247; +} else { + lean_dec_ref(x_247); + x_257 = lean_box(0); +} +if (lean_is_scalar(x_257)) { + x_258 = lean_alloc_ctor(1, 2, 0); +} else { + x_258 = x_257; +} +lean_ctor_set(x_258, 0, x_255); +lean_ctor_set(x_258, 1, x_256); +return x_258; } } else { -lean_object* x_255; lean_object* x_256; -x_255 = lean_box(0); -lean_inc(x_218); -x_256 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_28, x_221, x_1, x_255, x_33, x_218, x_224); -if (lean_obj_tag(x_256) == 0) +lean_object* x_259; lean_object* x_260; +x_259 = lean_box(0); +lean_inc(x_222); +x_260 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_runCore___rarg___lambda__1(x_30, x_225, x_1, x_259, x_35, x_222, x_228); +if (lean_obj_tag(x_260) == 0) { -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_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = lean_st_ref_get(x_218, x_258); -lean_dec(x_218); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); +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; +x_261 = lean_ctor_get(x_260, 0); lean_inc(x_261); -if (lean_is_exclusive(x_259)) { - lean_ctor_release(x_259, 0); - lean_ctor_release(x_259, 1); - x_262 = x_259; -} else { - lean_dec_ref(x_259); - x_262 = lean_box(0); -} -if (lean_is_scalar(x_262)) { - x_263 = lean_alloc_ctor(0, 2, 0); -} else { - x_263 = x_262; -} -lean_ctor_set(x_263, 0, x_257); -lean_ctor_set(x_263, 1, x_260); -x_184 = x_263; -x_185 = x_261; -goto block_216; -} -else -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -lean_dec(x_218); -x_264 = lean_ctor_get(x_256, 0); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +lean_dec(x_260); +x_263 = lean_st_ref_get(x_222, x_262); +lean_dec(x_222); +x_264 = lean_ctor_get(x_263, 0); lean_inc(x_264); -x_265 = lean_ctor_get(x_256, 1); +x_265 = lean_ctor_get(x_263, 1); lean_inc(x_265); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - lean_ctor_release(x_256, 1); - x_266 = x_256; +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_266 = x_263; } else { - lean_dec_ref(x_256); + lean_dec_ref(x_263); x_266 = lean_box(0); } if (lean_is_scalar(x_266)) { - x_267 = lean_alloc_ctor(1, 2, 0); + x_267 = lean_alloc_ctor(0, 2, 0); } else { x_267 = x_266; } -lean_ctor_set(x_267, 0, x_264); -lean_ctor_set(x_267, 1, x_265); -return x_267; +lean_ctor_set(x_267, 0, x_261); +lean_ctor_set(x_267, 1, x_264); +x_188 = x_267; +x_189 = x_265; +goto block_220; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_222); +x_268 = lean_ctor_get(x_260, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_260, 1); +lean_inc(x_269); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + lean_ctor_release(x_260, 1); + x_270 = x_260; +} else { + lean_dec_ref(x_260); + x_270 = lean_box(0); +} +if (lean_is_scalar(x_270)) { + x_271 = lean_alloc_ctor(1, 2, 0); +} else { + x_271 = x_270; +} +lean_ctor_set(x_271, 0, x_268); +lean_ctor_set(x_271, 1, x_269); +return x_271; } } } @@ -7108,14 +7377,18 @@ if (x_13 == 0) { lean_object* x_14; uint8_t x_15; x_14 = lean_ctor_get(x_5, 0); -x_15 = l_Lean_Exception_isRuntime(x_14); +x_15 = l_Lean_Exception_isInterrupt(x_14); if (x_15 == 0) { -lean_object* x_16; -x_16 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_16, 0, x_14); +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_14); lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 0, x_16); +lean_ctor_set(x_5, 0, x_17); return x_5; } else @@ -7125,30 +7398,48 @@ return x_5; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_5, 0); -x_18 = lean_ctor_get(x_5, 1); +return x_5; +} +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_5, 0); +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); lean_dec(x_5); -x_19 = l_Lean_Exception_isRuntime(x_17); -if (x_19 == 0) +x_20 = l_Lean_Exception_isInterrupt(x_18); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_20, 0, x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -return x_21; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_18); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +return x_23; } else { -lean_object* x_22; -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_17); -lean_ctor_set(x_22, 1, x_18); -return x_22; +lean_object* x_24; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_18); +lean_ctor_set(x_24, 1, x_19); +return x_24; +} +} +else +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_19); +return x_25; } } } @@ -7658,7 +7949,7 @@ x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_7); +x_8 = l_Lean_MessageLog_hasErrors(x_7); x_9 = lean_box(x_8); lean_ctor_set(x_4, 0, x_9); return x_4; @@ -7674,7 +7965,7 @@ lean_dec(x_4); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); +x_13 = l_Lean_MessageLog_hasErrors(x_12); x_14 = lean_box(x_13); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); @@ -7683,89 +7974,90 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Elab_Command_getScope___rarg(x_4, x_5); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -x_9 = lean_ctor_get(x_7, 2); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_Elab_Command_getScope___rarg(x_3, x_8); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = lean_ctor_get(x_8, 2); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Elab_Command_getScope___rarg(x_4, x_9); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -x_14 = lean_ctor_get(x_12, 3); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_1); -if (x_15 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_ctor_get(x_13, 3); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_1); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_ctor_get(x_1, 4); -lean_ctor_set(x_10, 1, x_14); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set_tag(x_5, 3); -lean_ctor_set(x_5, 1, x_16); -lean_ctor_set(x_5, 0, x_10); -lean_ctor_set(x_1, 4, x_5); -x_17 = lean_st_ref_take(x_3, x_13); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_1, 4); +lean_ctor_set(x_11, 1, x_15); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set_tag(x_6, 3); +lean_ctor_set(x_6, 1, x_17); +lean_ctor_set(x_6, 0, x_11); +lean_ctor_set(x_1, 4, x_6); +x_18 = lean_st_ref_take(x_4, x_14); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_18, 1); -x_22 = l_Lean_PersistentArray_push___rarg(x_21, x_1); -lean_ctor_set(x_18, 1, x_22); -x_23 = lean_st_ref_set(x_3, x_18, x_19); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_19, 1); +x_23 = l_Lean_MessageLog_add(x_1, x_22); +lean_ctor_set(x_19, 1, x_23); +x_24 = lean_st_ref_set(x_4, x_19, x_20); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -x_26 = lean_box(0); -lean_ctor_set(x_23, 0, x_26); -return x_23; +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_24, 0, x_27); +return x_24; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec(x_23); -x_28 = lean_box(0); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = lean_box(0); +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 { -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_30 = lean_ctor_get(x_18, 0); -x_31 = lean_ctor_get(x_18, 1); -x_32 = lean_ctor_get(x_18, 2); -x_33 = lean_ctor_get(x_18, 3); -x_34 = lean_ctor_get(x_18, 4); -x_35 = lean_ctor_get(x_18, 5); -x_36 = lean_ctor_get(x_18, 6); -x_37 = lean_ctor_get(x_18, 7); +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; +x_31 = lean_ctor_get(x_19, 0); +x_32 = lean_ctor_get(x_19, 1); +x_33 = lean_ctor_get(x_19, 2); +x_34 = lean_ctor_get(x_19, 3); +x_35 = lean_ctor_get(x_19, 4); +x_36 = lean_ctor_get(x_19, 5); +x_37 = lean_ctor_get(x_19, 6); +x_38 = lean_ctor_get(x_19, 7); +lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -7773,407 +8065,434 @@ lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_18); -x_38 = l_Lean_PersistentArray_push___rarg(x_31, x_1); -x_39 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_32); -lean_ctor_set(x_39, 3, x_33); -lean_ctor_set(x_39, 4, x_34); -lean_ctor_set(x_39, 5, x_35); -lean_ctor_set(x_39, 6, x_36); -lean_ctor_set(x_39, 7, x_37); -x_40 = lean_st_ref_set(x_3, x_39, x_19); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_42 = x_40; +lean_dec(x_19); +x_39 = l_Lean_MessageLog_add(x_1, x_32); +x_40 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_40, 0, x_31); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_40, 2, x_33); +lean_ctor_set(x_40, 3, x_34); +lean_ctor_set(x_40, 4, x_35); +lean_ctor_set(x_40, 5, x_36); +lean_ctor_set(x_40, 6, x_37); +lean_ctor_set(x_40, 7, x_38); +x_41 = lean_st_ref_set(x_4, x_40, x_20); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; } else { - lean_dec_ref(x_40); - x_42 = lean_box(0); + lean_dec_ref(x_41); + x_43 = lean_box(0); } -x_43 = lean_box(0); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_44 = lean_box(0); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_42; + x_45 = x_43; } -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return x_44; +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t 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_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_45 = lean_ctor_get(x_1, 0); -x_46 = lean_ctor_get(x_1, 1); -x_47 = lean_ctor_get(x_1, 2); -x_48 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -x_49 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_50 = lean_ctor_get(x_1, 3); -x_51 = lean_ctor_get(x_1, 4); +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t 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; +x_46 = lean_ctor_get(x_1, 0); +x_47 = lean_ctor_get(x_1, 1); +x_48 = lean_ctor_get(x_1, 2); +x_49 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_50 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); +x_51 = lean_ctor_get(x_1, 3); +x_52 = lean_ctor_get(x_1, 4); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); +lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); lean_dec(x_1); -lean_ctor_set(x_10, 1, x_14); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set_tag(x_5, 3); -lean_ctor_set(x_5, 1, x_51); -lean_ctor_set(x_5, 0, x_10); -x_52 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_52, 0, x_45); -lean_ctor_set(x_52, 1, x_46); -lean_ctor_set(x_52, 2, x_47); -lean_ctor_set(x_52, 3, x_50); -lean_ctor_set(x_52, 4, x_5); -lean_ctor_set_uint8(x_52, sizeof(void*)*5, x_48); -lean_ctor_set_uint8(x_52, sizeof(void*)*5 + 1, x_49); -x_53 = lean_st_ref_take(x_3, x_13); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +lean_ctor_set(x_11, 1, x_15); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set_tag(x_6, 3); +lean_ctor_set(x_6, 1, x_52); +lean_ctor_set(x_6, 0, x_11); +x_53 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_53, 0, x_46); +lean_ctor_set(x_53, 1, x_47); +lean_ctor_set(x_53, 2, x_48); +lean_ctor_set(x_53, 3, x_51); +lean_ctor_set(x_53, 4, x_6); +lean_ctor_set_uint8(x_53, sizeof(void*)*5, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*5 + 1, x_50); +x_54 = lean_st_ref_take(x_4, x_14); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); +lean_dec(x_54); +x_57 = lean_ctor_get(x_55, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 2); +x_58 = lean_ctor_get(x_55, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_54, 3); +x_59 = lean_ctor_get(x_55, 2); lean_inc(x_59); -x_60 = lean_ctor_get(x_54, 4); +x_60 = lean_ctor_get(x_55, 3); lean_inc(x_60); -x_61 = lean_ctor_get(x_54, 5); +x_61 = lean_ctor_get(x_55, 4); lean_inc(x_61); -x_62 = lean_ctor_get(x_54, 6); +x_62 = lean_ctor_get(x_55, 5); lean_inc(x_62); -x_63 = lean_ctor_get(x_54, 7); +x_63 = lean_ctor_get(x_55, 6); lean_inc(x_63); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - lean_ctor_release(x_54, 2); - lean_ctor_release(x_54, 3); - lean_ctor_release(x_54, 4); - lean_ctor_release(x_54, 5); - lean_ctor_release(x_54, 6); - lean_ctor_release(x_54, 7); - x_64 = x_54; +x_64 = lean_ctor_get(x_55, 7); +lean_inc(x_64); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + lean_ctor_release(x_55, 2); + lean_ctor_release(x_55, 3); + lean_ctor_release(x_55, 4); + lean_ctor_release(x_55, 5); + lean_ctor_release(x_55, 6); + lean_ctor_release(x_55, 7); + x_65 = x_55; } else { - lean_dec_ref(x_54); - x_64 = lean_box(0); + lean_dec_ref(x_55); + x_65 = lean_box(0); } -x_65 = l_Lean_PersistentArray_push___rarg(x_57, x_52); -if (lean_is_scalar(x_64)) { - x_66 = lean_alloc_ctor(0, 8, 0); +x_66 = l_Lean_MessageLog_add(x_53, x_58); +if (lean_is_scalar(x_65)) { + x_67 = lean_alloc_ctor(0, 8, 0); } else { - x_66 = x_64; + x_67 = x_65; } -lean_ctor_set(x_66, 0, x_56); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_58); -lean_ctor_set(x_66, 3, x_59); -lean_ctor_set(x_66, 4, x_60); -lean_ctor_set(x_66, 5, x_61); -lean_ctor_set(x_66, 6, x_62); -lean_ctor_set(x_66, 7, x_63); -x_67 = lean_st_ref_set(x_3, x_66, x_55); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; +lean_ctor_set(x_67, 0, x_57); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_67, 2, x_59); +lean_ctor_set(x_67, 3, x_60); +lean_ctor_set(x_67, 4, x_61); +lean_ctor_set(x_67, 5, x_62); +lean_ctor_set(x_67, 6, x_63); +lean_ctor_set(x_67, 7, x_64); +x_68 = lean_st_ref_set(x_4, x_67, x_56); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; } else { - lean_dec_ref(x_67); - x_69 = lean_box(0); + lean_dec_ref(x_68); + x_70 = lean_box(0); } -x_70 = lean_box(0); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); +x_71 = lean_box(0); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_69; + x_72 = x_70; } -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_68); -return x_71; +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_69); +return x_72; } } 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; uint8_t 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; 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; 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; -x_72 = lean_ctor_get(x_10, 0); -x_73 = lean_ctor_get(x_10, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_10); -x_74 = lean_ctor_get(x_72, 3); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t 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; 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_73 = lean_ctor_get(x_11, 0); +x_74 = lean_ctor_get(x_11, 1); lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_ctor_get(x_1, 0); +lean_inc(x_73); +lean_dec(x_11); +x_75 = lean_ctor_get(x_73, 3); lean_inc(x_75); -x_76 = lean_ctor_get(x_1, 1); +lean_dec(x_73); +x_76 = lean_ctor_get(x_1, 0); lean_inc(x_76); -x_77 = lean_ctor_get(x_1, 2); +x_77 = lean_ctor_get(x_1, 1); lean_inc(x_77); -x_78 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -x_79 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_80 = lean_ctor_get(x_1, 3); -lean_inc(x_80); -x_81 = lean_ctor_get(x_1, 4); +x_78 = lean_ctor_get(x_1, 2); +lean_inc(x_78); +x_79 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_80 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); +x_81 = lean_ctor_get(x_1, 3); lean_inc(x_81); +x_82 = lean_ctor_get(x_1, 4); +lean_inc(x_82); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); lean_ctor_release(x_1, 2); lean_ctor_release(x_1, 3); lean_ctor_release(x_1, 4); - x_82 = x_1; + x_83 = x_1; } else { lean_dec_ref(x_1); - x_82 = lean_box(0); + x_83 = lean_box(0); } -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_9); -lean_ctor_set(x_83, 1, x_74); -lean_ctor_set_tag(x_5, 3); -lean_ctor_set(x_5, 1, x_81); -lean_ctor_set(x_5, 0, x_83); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 5, 2); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_10); +lean_ctor_set(x_84, 1, x_75); +lean_ctor_set_tag(x_6, 3); +lean_ctor_set(x_6, 1, x_82); +lean_ctor_set(x_6, 0, x_84); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 5, 2); } else { - x_84 = x_82; + x_85 = x_83; } -lean_ctor_set(x_84, 0, x_75); -lean_ctor_set(x_84, 1, x_76); -lean_ctor_set(x_84, 2, x_77); -lean_ctor_set(x_84, 3, x_80); -lean_ctor_set(x_84, 4, x_5); -lean_ctor_set_uint8(x_84, sizeof(void*)*5, x_78); -lean_ctor_set_uint8(x_84, sizeof(void*)*5 + 1, x_79); -x_85 = lean_st_ref_take(x_3, x_73); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); +lean_ctor_set(x_85, 0, x_76); +lean_ctor_set(x_85, 1, x_77); +lean_ctor_set(x_85, 2, x_78); +lean_ctor_set(x_85, 3, x_81); +lean_ctor_set(x_85, 4, x_6); +lean_ctor_set_uint8(x_85, sizeof(void*)*5, x_79); +lean_ctor_set_uint8(x_85, sizeof(void*)*5 + 1, x_80); +x_86 = lean_st_ref_take(x_4, x_74); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 0); +x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); +lean_dec(x_86); +x_89 = lean_ctor_get(x_87, 0); lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 2); +x_90 = lean_ctor_get(x_87, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_86, 3); +x_91 = lean_ctor_get(x_87, 2); lean_inc(x_91); -x_92 = lean_ctor_get(x_86, 4); +x_92 = lean_ctor_get(x_87, 3); lean_inc(x_92); -x_93 = lean_ctor_get(x_86, 5); +x_93 = lean_ctor_get(x_87, 4); lean_inc(x_93); -x_94 = lean_ctor_get(x_86, 6); +x_94 = lean_ctor_get(x_87, 5); lean_inc(x_94); -x_95 = lean_ctor_get(x_86, 7); +x_95 = lean_ctor_get(x_87, 6); lean_inc(x_95); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - lean_ctor_release(x_86, 2); - lean_ctor_release(x_86, 3); - lean_ctor_release(x_86, 4); - lean_ctor_release(x_86, 5); - lean_ctor_release(x_86, 6); - lean_ctor_release(x_86, 7); - x_96 = x_86; +x_96 = lean_ctor_get(x_87, 7); +lean_inc(x_96); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + lean_ctor_release(x_87, 2); + lean_ctor_release(x_87, 3); + lean_ctor_release(x_87, 4); + lean_ctor_release(x_87, 5); + lean_ctor_release(x_87, 6); + lean_ctor_release(x_87, 7); + x_97 = x_87; } else { - lean_dec_ref(x_86); - x_96 = lean_box(0); + lean_dec_ref(x_87); + x_97 = lean_box(0); } -x_97 = l_Lean_PersistentArray_push___rarg(x_89, x_84); -if (lean_is_scalar(x_96)) { - x_98 = lean_alloc_ctor(0, 8, 0); +x_98 = l_Lean_MessageLog_add(x_85, x_90); +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(0, 8, 0); } else { - x_98 = x_96; + x_99 = x_97; } -lean_ctor_set(x_98, 0, x_88); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_98, 2, x_90); -lean_ctor_set(x_98, 3, x_91); -lean_ctor_set(x_98, 4, x_92); -lean_ctor_set(x_98, 5, x_93); -lean_ctor_set(x_98, 6, x_94); -lean_ctor_set(x_98, 7, x_95); -x_99 = lean_st_ref_set(x_3, x_98, x_87); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_101 = x_99; +lean_ctor_set(x_99, 0, x_89); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_99, 2, x_91); +lean_ctor_set(x_99, 3, x_92); +lean_ctor_set(x_99, 4, x_93); +lean_ctor_set(x_99, 5, x_94); +lean_ctor_set(x_99, 6, x_95); +lean_ctor_set(x_99, 7, x_96); +x_100 = lean_st_ref_set(x_4, x_99, x_88); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; } else { - lean_dec_ref(x_99); - x_101 = lean_box(0); + lean_dec_ref(x_100); + x_102 = lean_box(0); } -x_102 = lean_box(0); -if (lean_is_scalar(x_101)) { - x_103 = lean_alloc_ctor(0, 2, 0); +x_103 = lean_box(0); +if (lean_is_scalar(x_102)) { + x_104 = lean_alloc_ctor(0, 2, 0); } else { - x_103 = x_101; + x_104 = x_102; } -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_100); -return x_103; +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_101); +return x_104; } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_104 = lean_ctor_get(x_5, 0); -x_105 = lean_ctor_get(x_5, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_5); -x_106 = lean_ctor_get(x_104, 2); +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; uint8_t x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_105 = lean_ctor_get(x_6, 0); +x_106 = lean_ctor_get(x_6, 1); lean_inc(x_106); -lean_dec(x_104); -x_107 = l_Lean_Elab_Command_getScope___rarg(x_3, x_105); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_105); +lean_dec(x_6); +x_107 = lean_ctor_get(x_105, 2); +lean_inc(x_107); +lean_dec(x_105); +x_108 = l_Lean_Elab_Command_getScope___rarg(x_4, x_106); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_111 = x_108; } else { - lean_dec_ref(x_107); - x_110 = lean_box(0); + lean_dec_ref(x_108); + x_111 = lean_box(0); } -x_111 = lean_ctor_get(x_108, 3); -lean_inc(x_111); -lean_dec(x_108); -x_112 = lean_ctor_get(x_1, 0); +x_112 = lean_ctor_get(x_109, 3); lean_inc(x_112); -x_113 = lean_ctor_get(x_1, 1); +lean_dec(x_109); +x_113 = lean_ctor_get(x_1, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_1, 2); +x_114 = lean_ctor_get(x_1, 1); lean_inc(x_114); -x_115 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -x_116 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); -x_117 = lean_ctor_get(x_1, 3); -lean_inc(x_117); -x_118 = lean_ctor_get(x_1, 4); +x_115 = lean_ctor_get(x_1, 2); +lean_inc(x_115); +x_116 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_117 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1); +x_118 = lean_ctor_get(x_1, 3); lean_inc(x_118); +x_119 = lean_ctor_get(x_1, 4); +lean_inc(x_119); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); lean_ctor_release(x_1, 2); lean_ctor_release(x_1, 3); lean_ctor_release(x_1, 4); - x_119 = x_1; + x_120 = x_1; } else { lean_dec_ref(x_1); - x_119 = lean_box(0); + x_120 = lean_box(0); } -if (lean_is_scalar(x_110)) { - x_120 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_111)) { + x_121 = lean_alloc_ctor(0, 2, 0); } else { - x_120 = x_110; + x_121 = x_111; } -lean_ctor_set(x_120, 0, x_106); -lean_ctor_set(x_120, 1, x_111); -x_121 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_118); -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_121, 0, x_107); +lean_ctor_set(x_121, 1, x_112); +x_122 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_119); +if (lean_is_scalar(x_120)) { + x_123 = lean_alloc_ctor(0, 5, 2); } else { - x_122 = x_119; + x_123 = x_120; } -lean_ctor_set(x_122, 0, x_112); -lean_ctor_set(x_122, 1, x_113); -lean_ctor_set(x_122, 2, x_114); -lean_ctor_set(x_122, 3, x_117); -lean_ctor_set(x_122, 4, x_121); -lean_ctor_set_uint8(x_122, sizeof(void*)*5, x_115); -lean_ctor_set_uint8(x_122, sizeof(void*)*5 + 1, x_116); -x_123 = lean_st_ref_take(x_3, x_109); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); +lean_ctor_set(x_123, 0, x_113); +lean_ctor_set(x_123, 1, x_114); +lean_ctor_set(x_123, 2, x_115); +lean_ctor_set(x_123, 3, x_118); +lean_ctor_set(x_123, 4, x_122); +lean_ctor_set_uint8(x_123, sizeof(void*)*5, x_116); +lean_ctor_set_uint8(x_123, sizeof(void*)*5 + 1, x_117); +x_124 = lean_st_ref_take(x_4, x_110); +x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); -lean_dec(x_123); -x_126 = lean_ctor_get(x_124, 0); +x_126 = lean_ctor_get(x_124, 1); lean_inc(x_126); -x_127 = lean_ctor_get(x_124, 1); +lean_dec(x_124); +x_127 = lean_ctor_get(x_125, 0); lean_inc(x_127); -x_128 = lean_ctor_get(x_124, 2); +x_128 = lean_ctor_get(x_125, 1); lean_inc(x_128); -x_129 = lean_ctor_get(x_124, 3); +x_129 = lean_ctor_get(x_125, 2); lean_inc(x_129); -x_130 = lean_ctor_get(x_124, 4); +x_130 = lean_ctor_get(x_125, 3); lean_inc(x_130); -x_131 = lean_ctor_get(x_124, 5); +x_131 = lean_ctor_get(x_125, 4); lean_inc(x_131); -x_132 = lean_ctor_get(x_124, 6); +x_132 = lean_ctor_get(x_125, 5); lean_inc(x_132); -x_133 = lean_ctor_get(x_124, 7); +x_133 = lean_ctor_get(x_125, 6); lean_inc(x_133); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - lean_ctor_release(x_124, 2); - lean_ctor_release(x_124, 3); - lean_ctor_release(x_124, 4); - lean_ctor_release(x_124, 5); - lean_ctor_release(x_124, 6); - lean_ctor_release(x_124, 7); - x_134 = x_124; +x_134 = lean_ctor_get(x_125, 7); +lean_inc(x_134); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + lean_ctor_release(x_125, 2); + lean_ctor_release(x_125, 3); + lean_ctor_release(x_125, 4); + lean_ctor_release(x_125, 5); + lean_ctor_release(x_125, 6); + lean_ctor_release(x_125, 7); + x_135 = x_125; } else { - lean_dec_ref(x_124); - x_134 = lean_box(0); + lean_dec_ref(x_125); + x_135 = lean_box(0); } -x_135 = l_Lean_PersistentArray_push___rarg(x_127, x_122); -if (lean_is_scalar(x_134)) { - x_136 = lean_alloc_ctor(0, 8, 0); +x_136 = l_Lean_MessageLog_add(x_123, x_128); +if (lean_is_scalar(x_135)) { + x_137 = lean_alloc_ctor(0, 8, 0); } else { - x_136 = x_134; + x_137 = x_135; } -lean_ctor_set(x_136, 0, x_126); -lean_ctor_set(x_136, 1, x_135); -lean_ctor_set(x_136, 2, x_128); -lean_ctor_set(x_136, 3, x_129); -lean_ctor_set(x_136, 4, x_130); -lean_ctor_set(x_136, 5, x_131); -lean_ctor_set(x_136, 6, x_132); -lean_ctor_set(x_136, 7, x_133); -x_137 = lean_st_ref_set(x_3, x_136, x_125); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_139 = x_137; +lean_ctor_set(x_137, 0, x_127); +lean_ctor_set(x_137, 1, x_136); +lean_ctor_set(x_137, 2, x_129); +lean_ctor_set(x_137, 3, x_130); +lean_ctor_set(x_137, 4, x_131); +lean_ctor_set(x_137, 5, x_132); +lean_ctor_set(x_137, 6, x_133); +lean_ctor_set(x_137, 7, x_134); +x_138 = lean_st_ref_set(x_4, x_137, x_126); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; } else { - lean_dec_ref(x_137); - x_139 = lean_box(0); + lean_dec_ref(x_138); + x_140 = lean_box(0); } -x_140 = lean_box(0); -if (lean_is_scalar(x_139)) { - x_141 = lean_alloc_ctor(0, 2, 0); +x_141 = lean_box(0); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); } else { - x_141 = x_139; + x_142 = x_140; } -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_138); -return x_141; +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(x_1, x_6, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; } } } @@ -8205,7 +8524,7 @@ static lean_object* _init_l_Lean_Elab_Command_instMonadLogCommandElabM___closed_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__5), 4, 0); return x_1; } } @@ -8265,14 +8584,362 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4___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_5; -x_5 = l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_5; +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Elab_Command_getScope___rarg(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_12, 2); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_Command_getScope___rarg(x_8, x_13); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t 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_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_17, 3); +lean_inc(x_19); +lean_dec(x_17); +lean_ctor_set(x_15, 1, x_19); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set_tag(x_10, 3); +lean_ctor_set(x_10, 1, x_1); +lean_ctor_set(x_10, 0, x_15); +x_20 = 0; +x_21 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_22 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_3); +lean_ctor_set(x_22, 2, x_4); +lean_ctor_set(x_22, 3, x_21); +lean_ctor_set(x_22, 4, x_10); +lean_ctor_set_uint8(x_22, sizeof(void*)*5, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*5 + 1, x_5); +x_23 = lean_st_ref_take(x_8, x_18); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = !lean_is_exclusive(x_24); +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_24, 1); +x_28 = l_Lean_MessageLog_add(x_22, x_27); +lean_ctor_set(x_24, 1, x_28); +x_29 = lean_st_ref_set(x_8, x_24, x_25); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 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; 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; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +x_38 = lean_ctor_get(x_24, 2); +x_39 = lean_ctor_get(x_24, 3); +x_40 = lean_ctor_get(x_24, 4); +x_41 = lean_ctor_get(x_24, 5); +x_42 = lean_ctor_get(x_24, 6); +x_43 = lean_ctor_get(x_24, 7); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_44 = l_Lean_MessageLog_add(x_22, x_37); +x_45 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_45, 2, x_38); +lean_ctor_set(x_45, 3, x_39); +lean_ctor_set(x_45, 4, x_40); +lean_ctor_set(x_45, 5, x_41); +lean_ctor_set(x_45, 6, x_42); +lean_ctor_set(x_45, 7, x_43); +x_46 = lean_st_ref_set(x_8, x_45, x_25); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +x_49 = lean_box(0); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +else +{ +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; 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; +x_51 = lean_ctor_get(x_15, 0); +x_52 = lean_ctor_get(x_15, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_15); +x_53 = lean_ctor_get(x_51, 3); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_14); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set_tag(x_10, 3); +lean_ctor_set(x_10, 1, x_1); +lean_ctor_set(x_10, 0, x_54); +x_55 = 0; +x_56 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_57 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_57, 0, x_2); +lean_ctor_set(x_57, 1, x_3); +lean_ctor_set(x_57, 2, x_4); +lean_ctor_set(x_57, 3, x_56); +lean_ctor_set(x_57, 4, x_10); +lean_ctor_set_uint8(x_57, sizeof(void*)*5, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*5 + 1, x_5); +x_58 = lean_st_ref_take(x_8, x_52); +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_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_59, 2); +lean_inc(x_63); +x_64 = lean_ctor_get(x_59, 3); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 4); +lean_inc(x_65); +x_66 = lean_ctor_get(x_59, 5); +lean_inc(x_66); +x_67 = lean_ctor_get(x_59, 6); +lean_inc(x_67); +x_68 = lean_ctor_get(x_59, 7); +lean_inc(x_68); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + lean_ctor_release(x_59, 2); + lean_ctor_release(x_59, 3); + lean_ctor_release(x_59, 4); + lean_ctor_release(x_59, 5); + lean_ctor_release(x_59, 6); + lean_ctor_release(x_59, 7); + x_69 = x_59; +} else { + lean_dec_ref(x_59); + x_69 = lean_box(0); +} +x_70 = l_Lean_MessageLog_add(x_57, x_62); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 8, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_61); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_71, 2, x_63); +lean_ctor_set(x_71, 3, x_64); +lean_ctor_set(x_71, 4, x_65); +lean_ctor_set(x_71, 5, x_66); +lean_ctor_set(x_71, 6, x_67); +lean_ctor_set(x_71, 7, x_68); +x_72 = lean_st_ref_set(x_8, x_71, x_60); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; +} else { + lean_dec_ref(x_72); + x_74 = lean_box(0); +} +x_75 = lean_box(0); +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_object* x_81; lean_object* x_82; 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; 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_77 = lean_ctor_get(x_10, 0); +x_78 = lean_ctor_get(x_10, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_10); +x_79 = lean_ctor_get(x_77, 2); +lean_inc(x_79); +lean_dec(x_77); +x_80 = l_Lean_Elab_Command_getScope___rarg(x_8, x_78); +x_81 = lean_ctor_get(x_80, 0); +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; +} else { + lean_dec_ref(x_80); + x_83 = lean_box(0); +} +x_84 = lean_ctor_get(x_81, 3); +lean_inc(x_84); +lean_dec(x_81); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_83; +} +lean_ctor_set(x_85, 0, x_79); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_1); +x_87 = 0; +x_88 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_89 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_89, 0, x_2); +lean_ctor_set(x_89, 1, x_3); +lean_ctor_set(x_89, 2, x_4); +lean_ctor_set(x_89, 3, x_88); +lean_ctor_set(x_89, 4, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*5, x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*5 + 1, x_5); +x_90 = lean_st_ref_take(x_8, x_82); +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); +lean_inc(x_93); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +x_95 = lean_ctor_get(x_91, 2); +lean_inc(x_95); +x_96 = lean_ctor_get(x_91, 3); +lean_inc(x_96); +x_97 = lean_ctor_get(x_91, 4); +lean_inc(x_97); +x_98 = lean_ctor_get(x_91, 5); +lean_inc(x_98); +x_99 = lean_ctor_get(x_91, 6); +lean_inc(x_99); +x_100 = lean_ctor_get(x_91, 7); +lean_inc(x_100); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + lean_ctor_release(x_91, 2); + lean_ctor_release(x_91, 3); + lean_ctor_release(x_91, 4); + lean_ctor_release(x_91, 5); + lean_ctor_release(x_91, 6); + lean_ctor_release(x_91, 7); + x_101 = x_91; +} else { + lean_dec_ref(x_91); + x_101 = lean_box(0); +} +x_102 = l_Lean_MessageLog_add(x_89, x_94); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(0, 8, 0); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_93); +lean_ctor_set(x_103, 1, x_102); +lean_ctor_set(x_103, 2, x_95); +lean_ctor_set(x_103, 3, x_96); +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); +x_104 = lean_st_ref_set(x_8, x_103, x_92); +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); +} +x_107 = lean_box(0); +if (lean_is_scalar(x_106)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_106; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_105); +return x_108; +} } } static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___closed__1() { @@ -8286,45 +8953,47 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___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) { _start: { -lean_object* x_7; uint8_t x_576; uint8_t x_577; -x_576 = 2; -x_577 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_576); -if (x_577 == 0) +lean_object* x_7; uint8_t x_150; uint8_t x_151; +x_150 = 2; +x_151 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_150); +if (x_151 == 0) { -lean_object* x_578; -x_578 = lean_box(0); -x_7 = x_578; -goto block_575; +lean_object* x_152; +x_152 = lean_box(0); +x_7 = x_152; +goto block_149; } else { -lean_object* x_579; uint8_t x_580; +lean_object* x_153; uint8_t x_154; lean_inc(x_2); -x_579 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_580 = lean_unbox(x_579); -lean_dec(x_579); -if (x_580 == 0) +x_153 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_154 = lean_unbox(x_153); +lean_dec(x_153); +if (x_154 == 0) { -lean_object* x_581; -x_581 = lean_box(0); -x_7 = x_581; -goto block_575; +lean_object* x_155; +x_155 = lean_box(0); +x_7 = x_155; +goto block_149; } else { -lean_object* x_582; lean_object* x_583; +lean_object* x_156; lean_object* x_157; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_582 = lean_box(0); -x_583 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_583, 0, x_582); -lean_ctor_set(x_583, 1, x_6); -return x_583; +lean_dec(x_1); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_6); +return x_157; } } -block_575: +block_149: { -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; uint8_t x_15; uint8_t x_570; uint8_t x_571; +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; uint8_t x_15; uint8_t x_144; uint8_t x_145; lean_dec(x_7); x_8 = lean_st_ref_get(x_5, x_6); x_9 = lean_ctor_get(x_8, 0); @@ -8341,34 +9010,34 @@ lean_dec(x_11); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_570 = 1; -x_571 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_570); -if (x_571 == 0) +x_144 = 1; +x_145 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_144); +if (x_145 == 0) { lean_dec(x_14); x_15 = x_3; -goto block_569; +goto block_143; } else { -lean_object* x_572; uint8_t x_573; -x_572 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___closed__1; -x_573 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_14, x_572); +lean_object* x_146; uint8_t x_147; +x_146 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___closed__1; +x_147 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_14, x_146); lean_dec(x_14); -if (x_573 == 0) +if (x_147 == 0) { x_15 = x_3; -goto block_569; +goto block_143; } else { -uint8_t x_574; -x_574 = 2; -x_15 = x_574; -goto block_569; +uint8_t x_148; +x_148 = 2; +x_15 = x_148; +goto block_143; } } -block_569: +block_143: { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_16 = l_Lean_Elab_Command_getRef(x_4, x_5, x_10); @@ -8379,6 +9048,7 @@ lean_inc(x_18); lean_dec(x_16); x_19 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); +lean_dec(x_1); x_20 = 0; x_21 = l_Lean_Syntax_getPos_x3f(x_19, x_20); x_22 = l_Lean_Syntax_getTailPos_x3f(x_19, x_20); @@ -8386,876 +9056,191 @@ if (lean_obj_tag(x_21) == 0) { if (lean_obj_tag(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; uint8_t x_32; +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; x_23 = lean_ctor_get(x_4, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_4, 1); lean_inc(x_24); -x_25 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); -lean_dec(x_4); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_26 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (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; +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_unsigned_to_nat(0u); -x_29 = l_Lean_FileMap_toPosition(x_24, x_28); -lean_inc(x_29); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_Elab_Command_getScope___rarg(x_5, x_27); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Lean_FileMap_toPosition(x_24, x_29); +lean_inc(x_30); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_box(0); +x_33 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_27, x_23, x_30, x_31, x_15, x_32, x_4, x_5, x_28); +lean_dec(x_5); +lean_dec(x_4); +return x_33; +} +else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -x_35 = lean_ctor_get(x_33, 2); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Lean_Elab_Command_getScope___rarg(x_5, x_34); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +uint8_t x_34; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_5); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 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; uint8_t x_46; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -x_40 = lean_ctor_get(x_38, 3); -lean_inc(x_40); -lean_dec(x_38); -lean_ctor_set(x_36, 1, x_40); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set_tag(x_31, 3); -lean_ctor_set(x_31, 1, x_26); -lean_ctor_set(x_31, 0, x_36); -x_41 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_42 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_42, 0, x_23); -lean_ctor_set(x_42, 1, x_29); -lean_ctor_set(x_42, 2, x_30); -lean_ctor_set(x_42, 3, x_41); -lean_ctor_set(x_42, 4, x_31); -lean_ctor_set_uint8(x_42, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_42, sizeof(void*)*5 + 1, x_15); -x_43 = lean_st_ref_take(x_5, x_39); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 0); +lean_dec(x_35); +x_36 = lean_box(0); +lean_ctor_set(x_26, 0, x_36); +return x_26; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_dec(x_26); +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_37); +return x_39; +} +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_22); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_22, 0); +x_42 = lean_ctor_get(x_4, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_4, 1); +lean_inc(x_43); +x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_45 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_44 == 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; lean_object* x_52; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_unsigned_to_nat(0u); +lean_inc(x_43); +x_49 = l_Lean_FileMap_toPosition(x_43, x_48); +x_50 = l_Lean_FileMap_toPosition(x_43, x_41); +lean_dec(x_41); +lean_ctor_set(x_22, 0, x_50); +x_51 = lean_box(0); +x_52 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_46, x_42, x_49, x_22, x_15, x_51, x_4, x_5, x_47); +lean_dec(x_5); +lean_dec(x_4); +return x_52; +} +else +{ +uint8_t x_53; lean_dec(x_43); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) +lean_dec(x_42); +lean_free_object(x_22); +lean_dec(x_41); +lean_dec(x_5); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_45); +if (x_53 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_44, 1); -x_48 = l_Lean_PersistentArray_push___rarg(x_47, x_42); -lean_ctor_set(x_44, 1, x_48); -x_49 = lean_st_ref_set(x_5, x_44, x_45); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -x_52 = lean_box(0); -lean_ctor_set(x_49, 0, x_52); -return x_49; +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_45, 0); +lean_dec(x_54); +x_55 = lean_box(0); +lean_ctor_set(x_45, 0, x_55); +return x_45; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_49, 1); -lean_inc(x_53); -lean_dec(x_49); -x_54 = lean_box(0); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -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; 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_56 = lean_ctor_get(x_44, 0); -x_57 = lean_ctor_get(x_44, 1); -x_58 = lean_ctor_get(x_44, 2); -x_59 = lean_ctor_get(x_44, 3); -x_60 = lean_ctor_get(x_44, 4); -x_61 = lean_ctor_get(x_44, 5); -x_62 = lean_ctor_get(x_44, 6); -x_63 = lean_ctor_get(x_44, 7); -lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_45, 1); lean_inc(x_56); -lean_dec(x_44); -x_64 = l_Lean_PersistentArray_push___rarg(x_57, x_42); -x_65 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_65, 0, x_56); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set(x_65, 2, x_58); -lean_ctor_set(x_65, 3, x_59); -lean_ctor_set(x_65, 4, x_60); -lean_ctor_set(x_65, 5, x_61); -lean_ctor_set(x_65, 6, x_62); -lean_ctor_set(x_65, 7, x_63); -x_66 = lean_st_ref_set(x_5, x_65, x_45); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); +lean_dec(x_45); +x_57 = lean_box(0); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +return x_58; } -x_69 = lean_box(0); -if (lean_is_scalar(x_68)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_68; -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_67); -return x_70; } } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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_71 = lean_ctor_get(x_36, 0); -x_72 = lean_ctor_get(x_36, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_36); -x_73 = lean_ctor_get(x_71, 3); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_35); -lean_ctor_set(x_74, 1, x_73); -lean_ctor_set_tag(x_31, 3); -lean_ctor_set(x_31, 1, x_26); -lean_ctor_set(x_31, 0, x_74); -x_75 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_76 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_76, 0, x_23); -lean_ctor_set(x_76, 1, x_29); -lean_ctor_set(x_76, 2, x_30); -lean_ctor_set(x_76, 3, x_75); -lean_ctor_set(x_76, 4, x_31); -lean_ctor_set_uint8(x_76, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_76, sizeof(void*)*5 + 1, x_15); -x_77 = lean_st_ref_take(x_5, x_72); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_ctor_get(x_78, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -x_82 = lean_ctor_get(x_78, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_78, 3); -lean_inc(x_83); -x_84 = lean_ctor_get(x_78, 4); -lean_inc(x_84); -x_85 = lean_ctor_get(x_78, 5); -lean_inc(x_85); -x_86 = lean_ctor_get(x_78, 6); -lean_inc(x_86); -x_87 = lean_ctor_get(x_78, 7); -lean_inc(x_87); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - lean_ctor_release(x_78, 2); - lean_ctor_release(x_78, 3); - lean_ctor_release(x_78, 4); - lean_ctor_release(x_78, 5); - lean_ctor_release(x_78, 6); - lean_ctor_release(x_78, 7); - x_88 = x_78; -} else { - lean_dec_ref(x_78); - x_88 = lean_box(0); -} -x_89 = l_Lean_PersistentArray_push___rarg(x_81, x_76); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 8, 0); -} else { - x_90 = x_88; -} -lean_ctor_set(x_90, 0, x_80); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_90, 2, x_82); -lean_ctor_set(x_90, 3, x_83); -lean_ctor_set(x_90, 4, x_84); -lean_ctor_set(x_90, 5, x_85); -lean_ctor_set(x_90, 6, x_86); -lean_ctor_set(x_90, 7, x_87); -x_91 = lean_st_ref_set(x_5, x_90, x_79); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; -} else { - lean_dec_ref(x_91); - x_93 = lean_box(0); -} -x_94 = lean_box(0); -if (lean_is_scalar(x_93)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_93; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_92); -return x_95; -} -} -else -{ -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; 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_96 = lean_ctor_get(x_31, 0); -x_97 = lean_ctor_get(x_31, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_31); -x_98 = lean_ctor_get(x_96, 2); -lean_inc(x_98); -lean_dec(x_96); -x_99 = l_Lean_Elab_Command_getScope___rarg(x_5, x_97); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_102 = x_99; -} else { - lean_dec_ref(x_99); - x_102 = lean_box(0); -} -x_103 = lean_ctor_get(x_100, 3); -lean_inc(x_103); -lean_dec(x_100); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_102; -} -lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_26); -x_106 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_107 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_107, 0, x_23); -lean_ctor_set(x_107, 1, x_29); -lean_ctor_set(x_107, 2, x_30); -lean_ctor_set(x_107, 3, x_106); -lean_ctor_set(x_107, 4, x_105); -lean_ctor_set_uint8(x_107, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_107, sizeof(void*)*5 + 1, x_15); -x_108 = lean_st_ref_take(x_5, x_101); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = lean_ctor_get(x_109, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -x_113 = lean_ctor_get(x_109, 2); -lean_inc(x_113); -x_114 = lean_ctor_get(x_109, 3); -lean_inc(x_114); -x_115 = lean_ctor_get(x_109, 4); -lean_inc(x_115); -x_116 = lean_ctor_get(x_109, 5); -lean_inc(x_116); -x_117 = lean_ctor_get(x_109, 6); -lean_inc(x_117); -x_118 = lean_ctor_get(x_109, 7); -lean_inc(x_118); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - lean_ctor_release(x_109, 2); - lean_ctor_release(x_109, 3); - lean_ctor_release(x_109, 4); - lean_ctor_release(x_109, 5); - lean_ctor_release(x_109, 6); - lean_ctor_release(x_109, 7); - x_119 = x_109; -} else { - lean_dec_ref(x_109); - x_119 = lean_box(0); -} -x_120 = l_Lean_PersistentArray_push___rarg(x_112, x_107); -if (lean_is_scalar(x_119)) { - x_121 = lean_alloc_ctor(0, 8, 0); -} else { - x_121 = x_119; -} -lean_ctor_set(x_121, 0, x_111); -lean_ctor_set(x_121, 1, x_120); -lean_ctor_set(x_121, 2, x_113); -lean_ctor_set(x_121, 3, x_114); -lean_ctor_set(x_121, 4, x_115); -lean_ctor_set(x_121, 5, x_116); -lean_ctor_set(x_121, 6, x_117); -lean_ctor_set(x_121, 7, x_118); -x_122 = lean_st_ref_set(x_5, x_121, x_110); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); -} -x_125 = lean_box(0); -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -return x_126; -} -} -else -{ -uint8_t x_127; -x_127 = !lean_is_exclusive(x_22); -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_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_128 = lean_ctor_get(x_22, 0); -x_129 = lean_ctor_get(x_4, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_4, 1); -lean_inc(x_130); -x_131 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); -lean_dec(x_4); -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 = lean_unsigned_to_nat(0u); -lean_inc(x_130); -x_135 = l_Lean_FileMap_toPosition(x_130, x_134); -x_136 = l_Lean_FileMap_toPosition(x_130, x_128); -lean_dec(x_128); -lean_ctor_set(x_22, 0, x_136); -x_137 = l_Lean_Elab_Command_getScope___rarg(x_5, x_133); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_139 = lean_ctor_get(x_137, 0); -x_140 = lean_ctor_get(x_137, 1); -x_141 = lean_ctor_get(x_139, 2); -lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_Elab_Command_getScope___rarg(x_5, x_140); -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 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; uint8_t x_152; -x_144 = lean_ctor_get(x_142, 0); -x_145 = lean_ctor_get(x_142, 1); -x_146 = lean_ctor_get(x_144, 3); -lean_inc(x_146); -lean_dec(x_144); -lean_ctor_set(x_142, 1, x_146); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set_tag(x_137, 3); -lean_ctor_set(x_137, 1, x_132); -lean_ctor_set(x_137, 0, x_142); -x_147 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_148 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_148, 0, x_129); -lean_ctor_set(x_148, 1, x_135); -lean_ctor_set(x_148, 2, x_22); -lean_ctor_set(x_148, 3, x_147); -lean_ctor_set(x_148, 4, x_137); -lean_ctor_set_uint8(x_148, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_148, sizeof(void*)*5 + 1, x_15); -x_149 = lean_st_ref_take(x_5, x_145); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = !lean_is_exclusive(x_150); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; -x_153 = lean_ctor_get(x_150, 1); -x_154 = l_Lean_PersistentArray_push___rarg(x_153, x_148); -lean_ctor_set(x_150, 1, x_154); -x_155 = lean_st_ref_set(x_5, x_150, x_151); -x_156 = !lean_is_exclusive(x_155); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; -x_157 = lean_ctor_get(x_155, 0); -lean_dec(x_157); -x_158 = lean_box(0); -lean_ctor_set(x_155, 0, x_158); -return x_155; -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_155, 1); -lean_inc(x_159); -lean_dec(x_155); -x_160 = lean_box(0); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -return x_161; -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_162 = lean_ctor_get(x_150, 0); -x_163 = lean_ctor_get(x_150, 1); -x_164 = lean_ctor_get(x_150, 2); -x_165 = lean_ctor_get(x_150, 3); -x_166 = lean_ctor_get(x_150, 4); -x_167 = lean_ctor_get(x_150, 5); -x_168 = lean_ctor_get(x_150, 6); -x_169 = lean_ctor_get(x_150, 7); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); -lean_inc(x_166); -lean_inc(x_165); -lean_inc(x_164); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_150); -x_170 = l_Lean_PersistentArray_push___rarg(x_163, x_148); -x_171 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_171, 0, x_162); -lean_ctor_set(x_171, 1, x_170); -lean_ctor_set(x_171, 2, x_164); -lean_ctor_set(x_171, 3, x_165); -lean_ctor_set(x_171, 4, x_166); -lean_ctor_set(x_171, 5, x_167); -lean_ctor_set(x_171, 6, x_168); -lean_ctor_set(x_171, 7, x_169); -x_172 = lean_st_ref_set(x_5, x_171, x_151); -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_174 = x_172; -} else { - lean_dec_ref(x_172); - x_174 = lean_box(0); -} -x_175 = lean_box(0); -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 2, 0); -} else { - x_176 = x_174; -} -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_173); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 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; -x_177 = lean_ctor_get(x_142, 0); -x_178 = lean_ctor_get(x_142, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_142); -x_179 = lean_ctor_get(x_177, 3); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_141); -lean_ctor_set(x_180, 1, x_179); -lean_ctor_set_tag(x_137, 3); -lean_ctor_set(x_137, 1, x_132); -lean_ctor_set(x_137, 0, x_180); -x_181 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_182 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_182, 0, x_129); -lean_ctor_set(x_182, 1, x_135); -lean_ctor_set(x_182, 2, x_22); -lean_ctor_set(x_182, 3, x_181); -lean_ctor_set(x_182, 4, x_137); -lean_ctor_set_uint8(x_182, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_182, sizeof(void*)*5 + 1, x_15); -x_183 = lean_st_ref_take(x_5, x_178); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -lean_dec(x_183); -x_186 = lean_ctor_get(x_184, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -x_188 = lean_ctor_get(x_184, 2); -lean_inc(x_188); -x_189 = lean_ctor_get(x_184, 3); -lean_inc(x_189); -x_190 = lean_ctor_get(x_184, 4); -lean_inc(x_190); -x_191 = lean_ctor_get(x_184, 5); -lean_inc(x_191); -x_192 = lean_ctor_get(x_184, 6); -lean_inc(x_192); -x_193 = lean_ctor_get(x_184, 7); -lean_inc(x_193); -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); - lean_ctor_release(x_184, 4); - lean_ctor_release(x_184, 5); - lean_ctor_release(x_184, 6); - lean_ctor_release(x_184, 7); - x_194 = x_184; -} else { - lean_dec_ref(x_184); - x_194 = lean_box(0); -} -x_195 = l_Lean_PersistentArray_push___rarg(x_187, x_182); -if (lean_is_scalar(x_194)) { - x_196 = lean_alloc_ctor(0, 8, 0); -} else { - x_196 = x_194; -} -lean_ctor_set(x_196, 0, x_186); -lean_ctor_set(x_196, 1, x_195); -lean_ctor_set(x_196, 2, x_188); -lean_ctor_set(x_196, 3, x_189); -lean_ctor_set(x_196, 4, x_190); -lean_ctor_set(x_196, 5, x_191); -lean_ctor_set(x_196, 6, x_192); -lean_ctor_set(x_196, 7, x_193); -x_197 = lean_st_ref_set(x_5, x_196, x_185); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; -} else { - lean_dec_ref(x_197); - x_199 = lean_box(0); -} -x_200 = lean_box(0); -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_199; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_198); -return x_201; -} -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_202 = lean_ctor_get(x_137, 0); -x_203 = lean_ctor_get(x_137, 1); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_137); -x_204 = lean_ctor_get(x_202, 2); -lean_inc(x_204); -lean_dec(x_202); -x_205 = l_Lean_Elab_Command_getScope___rarg(x_5, x_203); -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - x_208 = x_205; -} else { - lean_dec_ref(x_205); - x_208 = lean_box(0); -} -x_209 = lean_ctor_get(x_206, 3); -lean_inc(x_209); -lean_dec(x_206); -if (lean_is_scalar(x_208)) { - x_210 = lean_alloc_ctor(0, 2, 0); -} else { - x_210 = x_208; -} -lean_ctor_set(x_210, 0, x_204); -lean_ctor_set(x_210, 1, x_209); -x_211 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_132); -x_212 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_213 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_213, 0, x_129); -lean_ctor_set(x_213, 1, x_135); -lean_ctor_set(x_213, 2, x_22); -lean_ctor_set(x_213, 3, x_212); -lean_ctor_set(x_213, 4, x_211); -lean_ctor_set_uint8(x_213, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_213, sizeof(void*)*5 + 1, x_15); -x_214 = lean_st_ref_take(x_5, x_207); -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); -x_218 = lean_ctor_get(x_215, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_215, 2); -lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 3); -lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 4); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 5); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 6); -lean_inc(x_223); -x_224 = lean_ctor_get(x_215, 7); -lean_inc(x_224); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - lean_ctor_release(x_215, 6); - lean_ctor_release(x_215, 7); - x_225 = x_215; -} else { - lean_dec_ref(x_215); - x_225 = lean_box(0); -} -x_226 = l_Lean_PersistentArray_push___rarg(x_218, x_213); -if (lean_is_scalar(x_225)) { - x_227 = lean_alloc_ctor(0, 8, 0); -} else { - x_227 = x_225; -} -lean_ctor_set(x_227, 0, x_217); -lean_ctor_set(x_227, 1, x_226); -lean_ctor_set(x_227, 2, x_219); -lean_ctor_set(x_227, 3, x_220); -lean_ctor_set(x_227, 4, x_221); -lean_ctor_set(x_227, 5, x_222); -lean_ctor_set(x_227, 6, x_223); -lean_ctor_set(x_227, 7, x_224); -x_228 = lean_st_ref_set(x_5, x_227, x_216); -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_230 = x_228; -} else { - lean_dec_ref(x_228); - x_230 = lean_box(0); -} -x_231 = lean_box(0); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(0, 2, 0); -} else { - x_232 = x_230; -} -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_229); -return x_232; -} -} -else -{ -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; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_233 = lean_ctor_get(x_22, 0); -lean_inc(x_233); +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_22, 0); +lean_inc(x_59); lean_dec(x_22); -x_234 = lean_ctor_get(x_4, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_4, 1); -lean_inc(x_235); -x_236 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_60 = lean_ctor_get(x_4, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 1); +lean_inc(x_61); +x_62 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_63 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_62 == 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 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_unsigned_to_nat(0u); +lean_inc(x_61); +x_67 = l_Lean_FileMap_toPosition(x_61, x_66); +x_68 = l_Lean_FileMap_toPosition(x_61, x_59); +lean_dec(x_59); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_box(0); +x_71 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_64, x_60, x_67, x_69, x_15, x_70, x_4, x_5, x_65); +lean_dec(x_5); lean_dec(x_4); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -x_239 = lean_unsigned_to_nat(0u); -lean_inc(x_235); -x_240 = l_Lean_FileMap_toPosition(x_235, x_239); -x_241 = l_Lean_FileMap_toPosition(x_235, x_233); -lean_dec(x_233); -x_242 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_242, 0, x_241); -x_243 = l_Lean_Elab_Command_getScope___rarg(x_5, x_238); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); -lean_inc(x_245); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_246 = x_243; -} else { - lean_dec_ref(x_243); - x_246 = lean_box(0); +return x_71; } -x_247 = lean_ctor_get(x_244, 2); -lean_inc(x_247); -lean_dec(x_244); -x_248 = l_Lean_Elab_Command_getScope___rarg(x_5, x_245); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_5); +lean_dec(x_4); +x_72 = lean_ctor_get(x_63, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_73 = x_63; } else { - lean_dec_ref(x_248); - x_251 = lean_box(0); + lean_dec_ref(x_63); + x_73 = lean_box(0); } -x_252 = lean_ctor_get(x_249, 3); -lean_inc(x_252); -lean_dec(x_249); -if (lean_is_scalar(x_251)) { - x_253 = lean_alloc_ctor(0, 2, 0); +x_74 = lean_box(0); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_253 = x_251; + x_75 = x_73; } -lean_ctor_set(x_253, 0, x_247); -lean_ctor_set(x_253, 1, x_252); -if (lean_is_scalar(x_246)) { - x_254 = lean_alloc_ctor(3, 2, 0); -} else { - x_254 = x_246; - lean_ctor_set_tag(x_254, 3); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_237); -x_255 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_256 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_256, 0, x_234); -lean_ctor_set(x_256, 1, x_240); -lean_ctor_set(x_256, 2, x_242); -lean_ctor_set(x_256, 3, x_255); -lean_ctor_set(x_256, 4, x_254); -lean_ctor_set_uint8(x_256, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_256, sizeof(void*)*5 + 1, x_15); -x_257 = lean_st_ref_take(x_5, x_250); -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_ctor_get(x_258, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_258, 1); -lean_inc(x_261); -x_262 = lean_ctor_get(x_258, 2); -lean_inc(x_262); -x_263 = lean_ctor_get(x_258, 3); -lean_inc(x_263); -x_264 = lean_ctor_get(x_258, 4); -lean_inc(x_264); -x_265 = lean_ctor_get(x_258, 5); -lean_inc(x_265); -x_266 = lean_ctor_get(x_258, 6); -lean_inc(x_266); -x_267 = lean_ctor_get(x_258, 7); -lean_inc(x_267); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - lean_ctor_release(x_258, 2); - lean_ctor_release(x_258, 3); - lean_ctor_release(x_258, 4); - lean_ctor_release(x_258, 5); - lean_ctor_release(x_258, 6); - lean_ctor_release(x_258, 7); - x_268 = x_258; -} else { - lean_dec_ref(x_258); - x_268 = lean_box(0); -} -x_269 = l_Lean_PersistentArray_push___rarg(x_261, x_256); -if (lean_is_scalar(x_268)) { - x_270 = lean_alloc_ctor(0, 8, 0); -} else { - x_270 = x_268; -} -lean_ctor_set(x_270, 0, x_260); -lean_ctor_set(x_270, 1, x_269); -lean_ctor_set(x_270, 2, x_262); -lean_ctor_set(x_270, 3, x_263); -lean_ctor_set(x_270, 4, x_264); -lean_ctor_set(x_270, 5, x_265); -lean_ctor_set(x_270, 6, x_266); -lean_ctor_set(x_270, 7, x_267); -x_271 = lean_st_ref_set(x_5, x_270, x_259); -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_273 = x_271; -} else { - lean_dec_ref(x_271); - x_273 = lean_box(0); -} -x_274 = lean_box(0); -if (lean_is_scalar(x_273)) { - x_275 = lean_alloc_ctor(0, 2, 0); -} else { - x_275 = x_273; -} -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_272); -return x_275; } } } @@ -9263,1033 +9248,263 @@ else { if (lean_obj_tag(x_22) == 0) { -uint8_t x_276; -x_276 = !lean_is_exclusive(x_21); -if (x_276 == 0) +uint8_t x_76; +x_76 = !lean_is_exclusive(x_21); +if (x_76 == 0) { -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; uint8_t x_285; -x_277 = lean_ctor_get(x_21, 0); -x_278 = lean_ctor_get(x_4, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_4, 1); -lean_inc(x_279); -x_280 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; +x_77 = lean_ctor_get(x_21, 0); +x_78 = lean_ctor_get(x_4, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_81 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_80 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l_Lean_FileMap_toPosition(x_79, x_77); +lean_dec(x_77); +lean_inc(x_84); +lean_ctor_set(x_21, 0, x_84); +x_85 = lean_box(0); +x_86 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_82, x_78, x_84, x_21, x_15, x_85, x_4, x_5, x_83); +lean_dec(x_5); lean_dec(x_4); -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_280, 1); -lean_inc(x_282); -lean_dec(x_280); -x_283 = l_Lean_FileMap_toPosition(x_279, x_277); -lean_dec(x_277); -lean_inc(x_283); -lean_ctor_set(x_21, 0, x_283); -x_284 = l_Lean_Elab_Command_getScope___rarg(x_5, x_282); -x_285 = !lean_is_exclusive(x_284); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; -x_286 = lean_ctor_get(x_284, 0); -x_287 = lean_ctor_get(x_284, 1); -x_288 = lean_ctor_get(x_286, 2); -lean_inc(x_288); -lean_dec(x_286); -x_289 = l_Lean_Elab_Command_getScope___rarg(x_5, x_287); -x_290 = !lean_is_exclusive(x_289); -if (x_290 == 0) -{ -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; uint8_t x_299; -x_291 = lean_ctor_get(x_289, 0); -x_292 = lean_ctor_get(x_289, 1); -x_293 = lean_ctor_get(x_291, 3); -lean_inc(x_293); -lean_dec(x_291); -lean_ctor_set(x_289, 1, x_293); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set_tag(x_284, 3); -lean_ctor_set(x_284, 1, x_281); -lean_ctor_set(x_284, 0, x_289); -x_294 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_295 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_295, 0, x_278); -lean_ctor_set(x_295, 1, x_283); -lean_ctor_set(x_295, 2, x_21); -lean_ctor_set(x_295, 3, x_294); -lean_ctor_set(x_295, 4, x_284); -lean_ctor_set_uint8(x_295, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_295, sizeof(void*)*5 + 1, x_15); -x_296 = lean_st_ref_take(x_5, x_292); -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_296, 1); -lean_inc(x_298); -lean_dec(x_296); -x_299 = !lean_is_exclusive(x_297); -if (x_299 == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; uint8_t x_303; -x_300 = lean_ctor_get(x_297, 1); -x_301 = l_Lean_PersistentArray_push___rarg(x_300, x_295); -lean_ctor_set(x_297, 1, x_301); -x_302 = lean_st_ref_set(x_5, x_297, x_298); -x_303 = !lean_is_exclusive(x_302); -if (x_303 == 0) -{ -lean_object* x_304; lean_object* x_305; -x_304 = lean_ctor_get(x_302, 0); -lean_dec(x_304); -x_305 = lean_box(0); -lean_ctor_set(x_302, 0, x_305); -return x_302; +return x_86; } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_306 = lean_ctor_get(x_302, 1); -lean_inc(x_306); -lean_dec(x_302); -x_307 = lean_box(0); -x_308 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_306); -return x_308; +uint8_t x_87; +lean_dec(x_79); +lean_dec(x_78); +lean_free_object(x_21); +lean_dec(x_77); +lean_dec(x_5); +lean_dec(x_4); +x_87 = !lean_is_exclusive(x_81); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_81, 0); +lean_dec(x_88); +x_89 = lean_box(0); +lean_ctor_set(x_81, 0, x_89); +return x_81; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_81, 1); +lean_inc(x_90); +lean_dec(x_81); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +return x_92; +} } } else { -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; lean_object* x_323; -x_309 = lean_ctor_get(x_297, 0); -x_310 = lean_ctor_get(x_297, 1); -x_311 = lean_ctor_get(x_297, 2); -x_312 = lean_ctor_get(x_297, 3); -x_313 = lean_ctor_get(x_297, 4); -x_314 = lean_ctor_get(x_297, 5); -x_315 = lean_ctor_get(x_297, 6); -x_316 = lean_ctor_get(x_297, 7); -lean_inc(x_316); -lean_inc(x_315); -lean_inc(x_314); -lean_inc(x_313); -lean_inc(x_312); -lean_inc(x_311); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_297); -x_317 = l_Lean_PersistentArray_push___rarg(x_310, x_295); -x_318 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_318, 0, x_309); -lean_ctor_set(x_318, 1, x_317); -lean_ctor_set(x_318, 2, x_311); -lean_ctor_set(x_318, 3, x_312); -lean_ctor_set(x_318, 4, x_313); -lean_ctor_set(x_318, 5, x_314); -lean_ctor_set(x_318, 6, x_315); -lean_ctor_set(x_318, 7, x_316); -x_319 = lean_st_ref_set(x_5, x_318, x_298); -x_320 = lean_ctor_get(x_319, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_319)) { - lean_ctor_release(x_319, 0); - lean_ctor_release(x_319, 1); - x_321 = x_319; -} else { - lean_dec_ref(x_319); - x_321 = lean_box(0); -} -x_322 = lean_box(0); -if (lean_is_scalar(x_321)) { - x_323 = lean_alloc_ctor(0, 2, 0); -} else { - x_323 = x_321; -} -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_320); -return x_323; -} -} -else -{ -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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_324 = lean_ctor_get(x_289, 0); -x_325 = lean_ctor_get(x_289, 1); -lean_inc(x_325); -lean_inc(x_324); -lean_dec(x_289); -x_326 = lean_ctor_get(x_324, 3); -lean_inc(x_326); -lean_dec(x_324); -x_327 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_327, 0, x_288); -lean_ctor_set(x_327, 1, x_326); -lean_ctor_set_tag(x_284, 3); -lean_ctor_set(x_284, 1, x_281); -lean_ctor_set(x_284, 0, x_327); -x_328 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_329 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_329, 0, x_278); -lean_ctor_set(x_329, 1, x_283); -lean_ctor_set(x_329, 2, x_21); -lean_ctor_set(x_329, 3, x_328); -lean_ctor_set(x_329, 4, x_284); -lean_ctor_set_uint8(x_329, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_329, sizeof(void*)*5 + 1, x_15); -x_330 = lean_st_ref_take(x_5, x_325); -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); -lean_inc(x_332); -lean_dec(x_330); -x_333 = lean_ctor_get(x_331, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_331, 1); -lean_inc(x_334); -x_335 = lean_ctor_get(x_331, 2); -lean_inc(x_335); -x_336 = lean_ctor_get(x_331, 3); -lean_inc(x_336); -x_337 = lean_ctor_get(x_331, 4); -lean_inc(x_337); -x_338 = lean_ctor_get(x_331, 5); -lean_inc(x_338); -x_339 = lean_ctor_get(x_331, 6); -lean_inc(x_339); -x_340 = lean_ctor_get(x_331, 7); -lean_inc(x_340); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - lean_ctor_release(x_331, 2); - lean_ctor_release(x_331, 3); - lean_ctor_release(x_331, 4); - lean_ctor_release(x_331, 5); - lean_ctor_release(x_331, 6); - lean_ctor_release(x_331, 7); - x_341 = x_331; -} else { - lean_dec_ref(x_331); - x_341 = lean_box(0); -} -x_342 = l_Lean_PersistentArray_push___rarg(x_334, x_329); -if (lean_is_scalar(x_341)) { - x_343 = lean_alloc_ctor(0, 8, 0); -} else { - x_343 = x_341; -} -lean_ctor_set(x_343, 0, x_333); -lean_ctor_set(x_343, 1, x_342); -lean_ctor_set(x_343, 2, x_335); -lean_ctor_set(x_343, 3, x_336); -lean_ctor_set(x_343, 4, x_337); -lean_ctor_set(x_343, 5, x_338); -lean_ctor_set(x_343, 6, x_339); -lean_ctor_set(x_343, 7, x_340); -x_344 = lean_st_ref_set(x_5, x_343, x_332); -x_345 = lean_ctor_get(x_344, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - x_346 = x_344; -} else { - lean_dec_ref(x_344); - x_346 = lean_box(0); -} -x_347 = lean_box(0); -if (lean_is_scalar(x_346)) { - x_348 = lean_alloc_ctor(0, 2, 0); -} else { - x_348 = x_346; -} -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_345); -return x_348; -} -} -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; 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; 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; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_349 = lean_ctor_get(x_284, 0); -x_350 = lean_ctor_get(x_284, 1); -lean_inc(x_350); -lean_inc(x_349); -lean_dec(x_284); -x_351 = lean_ctor_get(x_349, 2); -lean_inc(x_351); -lean_dec(x_349); -x_352 = l_Lean_Elab_Command_getScope___rarg(x_5, x_350); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -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; -} else { - lean_dec_ref(x_352); - x_355 = lean_box(0); -} -x_356 = lean_ctor_get(x_353, 3); -lean_inc(x_356); -lean_dec(x_353); -if (lean_is_scalar(x_355)) { - x_357 = lean_alloc_ctor(0, 2, 0); -} else { - x_357 = x_355; -} -lean_ctor_set(x_357, 0, x_351); -lean_ctor_set(x_357, 1, x_356); -x_358 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_358, 0, x_357); -lean_ctor_set(x_358, 1, x_281); -x_359 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_360 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_360, 0, x_278); -lean_ctor_set(x_360, 1, x_283); -lean_ctor_set(x_360, 2, x_21); -lean_ctor_set(x_360, 3, x_359); -lean_ctor_set(x_360, 4, x_358); -lean_ctor_set_uint8(x_360, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_360, sizeof(void*)*5 + 1, x_15); -x_361 = lean_st_ref_take(x_5, x_354); -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = lean_ctor_get(x_362, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_362, 1); -lean_inc(x_365); -x_366 = lean_ctor_get(x_362, 2); -lean_inc(x_366); -x_367 = lean_ctor_get(x_362, 3); -lean_inc(x_367); -x_368 = lean_ctor_get(x_362, 4); -lean_inc(x_368); -x_369 = lean_ctor_get(x_362, 5); -lean_inc(x_369); -x_370 = lean_ctor_get(x_362, 6); -lean_inc(x_370); -x_371 = lean_ctor_get(x_362, 7); -lean_inc(x_371); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - lean_ctor_release(x_362, 2); - lean_ctor_release(x_362, 3); - lean_ctor_release(x_362, 4); - lean_ctor_release(x_362, 5); - lean_ctor_release(x_362, 6); - lean_ctor_release(x_362, 7); - x_372 = x_362; -} else { - lean_dec_ref(x_362); - x_372 = lean_box(0); -} -x_373 = l_Lean_PersistentArray_push___rarg(x_365, x_360); -if (lean_is_scalar(x_372)) { - x_374 = lean_alloc_ctor(0, 8, 0); -} else { - x_374 = x_372; -} -lean_ctor_set(x_374, 0, x_364); -lean_ctor_set(x_374, 1, x_373); -lean_ctor_set(x_374, 2, x_366); -lean_ctor_set(x_374, 3, x_367); -lean_ctor_set(x_374, 4, x_368); -lean_ctor_set(x_374, 5, x_369); -lean_ctor_set(x_374, 6, x_370); -lean_ctor_set(x_374, 7, x_371); -x_375 = lean_st_ref_set(x_5, x_374, x_363); -x_376 = lean_ctor_get(x_375, 1); -lean_inc(x_376); -if (lean_is_exclusive(x_375)) { - lean_ctor_release(x_375, 0); - lean_ctor_release(x_375, 1); - x_377 = x_375; -} else { - lean_dec_ref(x_375); - x_377 = lean_box(0); -} -x_378 = lean_box(0); -if (lean_is_scalar(x_377)) { - x_379 = lean_alloc_ctor(0, 2, 0); -} else { - x_379 = x_377; -} -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_376); -return x_379; -} -} -else -{ -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_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_object* x_399; lean_object* 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; 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; lean_object* 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; -x_380 = lean_ctor_get(x_21, 0); -lean_inc(x_380); +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; +x_93 = lean_ctor_get(x_21, 0); +lean_inc(x_93); lean_dec(x_21); -x_381 = lean_ctor_get(x_4, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_4, 1); -lean_inc(x_382); -x_383 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_94 = lean_ctor_get(x_4, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_4, 1); +lean_inc(x_95); +x_96 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_97 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_96 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l_Lean_FileMap_toPosition(x_95, x_93); +lean_dec(x_93); +lean_inc(x_100); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_98, x_94, x_100, x_101, x_15, x_102, x_4, x_5, x_99); +lean_dec(x_5); lean_dec(x_4); -x_384 = lean_ctor_get(x_383, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -lean_dec(x_383); -x_386 = l_Lean_FileMap_toPosition(x_382, x_380); -lean_dec(x_380); -lean_inc(x_386); -x_387 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_387, 0, x_386); -x_388 = l_Lean_Elab_Command_getScope___rarg(x_5, x_385); -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - x_391 = x_388; -} else { - lean_dec_ref(x_388); - x_391 = lean_box(0); +return x_103; } -x_392 = lean_ctor_get(x_389, 2); -lean_inc(x_392); -lean_dec(x_389); -x_393 = l_Lean_Elab_Command_getScope___rarg(x_5, x_390); -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 1); -lean_inc(x_395); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_396 = x_393; +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_93); +lean_dec(x_5); +lean_dec(x_4); +x_104 = lean_ctor_get(x_97, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_105 = x_97; } else { - lean_dec_ref(x_393); - x_396 = lean_box(0); + lean_dec_ref(x_97); + x_105 = lean_box(0); } -x_397 = lean_ctor_get(x_394, 3); -lean_inc(x_397); -lean_dec(x_394); -if (lean_is_scalar(x_396)) { - x_398 = lean_alloc_ctor(0, 2, 0); +x_106 = lean_box(0); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_398 = x_396; + x_107 = x_105; } -lean_ctor_set(x_398, 0, x_392); -lean_ctor_set(x_398, 1, x_397); -if (lean_is_scalar(x_391)) { - x_399 = lean_alloc_ctor(3, 2, 0); -} else { - x_399 = x_391; - lean_ctor_set_tag(x_399, 3); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; } -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_384); -x_400 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_401 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_401, 0, x_381); -lean_ctor_set(x_401, 1, x_386); -lean_ctor_set(x_401, 2, x_387); -lean_ctor_set(x_401, 3, x_400); -lean_ctor_set(x_401, 4, x_399); -lean_ctor_set_uint8(x_401, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_401, sizeof(void*)*5 + 1, x_15); -x_402 = lean_st_ref_take(x_5, x_395); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -x_405 = lean_ctor_get(x_403, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_403, 1); -lean_inc(x_406); -x_407 = lean_ctor_get(x_403, 2); -lean_inc(x_407); -x_408 = lean_ctor_get(x_403, 3); -lean_inc(x_408); -x_409 = lean_ctor_get(x_403, 4); -lean_inc(x_409); -x_410 = lean_ctor_get(x_403, 5); -lean_inc(x_410); -x_411 = lean_ctor_get(x_403, 6); -lean_inc(x_411); -x_412 = lean_ctor_get(x_403, 7); -lean_inc(x_412); -if (lean_is_exclusive(x_403)) { - lean_ctor_release(x_403, 0); - lean_ctor_release(x_403, 1); - lean_ctor_release(x_403, 2); - lean_ctor_release(x_403, 3); - lean_ctor_release(x_403, 4); - lean_ctor_release(x_403, 5); - lean_ctor_release(x_403, 6); - lean_ctor_release(x_403, 7); - x_413 = x_403; -} else { - lean_dec_ref(x_403); - x_413 = lean_box(0); -} -x_414 = l_Lean_PersistentArray_push___rarg(x_406, x_401); -if (lean_is_scalar(x_413)) { - x_415 = lean_alloc_ctor(0, 8, 0); -} else { - x_415 = x_413; -} -lean_ctor_set(x_415, 0, x_405); -lean_ctor_set(x_415, 1, x_414); -lean_ctor_set(x_415, 2, x_407); -lean_ctor_set(x_415, 3, x_408); -lean_ctor_set(x_415, 4, x_409); -lean_ctor_set(x_415, 5, x_410); -lean_ctor_set(x_415, 6, x_411); -lean_ctor_set(x_415, 7, x_412); -x_416 = lean_st_ref_set(x_5, x_415, x_404); -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(0, 2, 0); -} else { - x_420 = x_418; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_417); -return x_420; } } else { -lean_object* x_421; uint8_t x_422; -x_421 = lean_ctor_get(x_21, 0); -lean_inc(x_421); +lean_object* x_108; uint8_t x_109; +x_108 = lean_ctor_get(x_21, 0); +lean_inc(x_108); lean_dec(x_21); -x_422 = !lean_is_exclusive(x_22); -if (x_422 == 0) +x_109 = !lean_is_exclusive(x_22); +if (x_109 == 0) { -lean_object* x_423; lean_object* 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; uint8_t x_432; -x_423 = lean_ctor_get(x_22, 0); -x_424 = lean_ctor_get(x_4, 0); -lean_inc(x_424); -x_425 = lean_ctor_get(x_4, 1); -lean_inc(x_425); -x_426 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; +x_110 = lean_ctor_get(x_22, 0); +x_111 = lean_ctor_get(x_4, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_4, 1); +lean_inc(x_112); +x_113 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_114 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_113 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_112); +x_117 = l_Lean_FileMap_toPosition(x_112, x_108); +lean_dec(x_108); +x_118 = l_Lean_FileMap_toPosition(x_112, x_110); +lean_dec(x_110); +lean_ctor_set(x_22, 0, x_118); +x_119 = lean_box(0); +x_120 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_115, x_111, x_117, x_22, x_15, x_119, x_4, x_5, x_116); +lean_dec(x_5); lean_dec(x_4); -x_427 = lean_ctor_get(x_426, 0); -lean_inc(x_427); -x_428 = lean_ctor_get(x_426, 1); -lean_inc(x_428); -lean_dec(x_426); -lean_inc(x_425); -x_429 = l_Lean_FileMap_toPosition(x_425, x_421); -lean_dec(x_421); -x_430 = l_Lean_FileMap_toPosition(x_425, x_423); -lean_dec(x_423); -lean_ctor_set(x_22, 0, x_430); -x_431 = l_Lean_Elab_Command_getScope___rarg(x_5, x_428); -x_432 = !lean_is_exclusive(x_431); -if (x_432 == 0) -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; -x_433 = lean_ctor_get(x_431, 0); -x_434 = lean_ctor_get(x_431, 1); -x_435 = lean_ctor_get(x_433, 2); -lean_inc(x_435); -lean_dec(x_433); -x_436 = l_Lean_Elab_Command_getScope___rarg(x_5, x_434); -x_437 = !lean_is_exclusive(x_436); -if (x_437 == 0) -{ -lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; uint8_t x_446; -x_438 = lean_ctor_get(x_436, 0); -x_439 = lean_ctor_get(x_436, 1); -x_440 = lean_ctor_get(x_438, 3); -lean_inc(x_440); -lean_dec(x_438); -lean_ctor_set(x_436, 1, x_440); -lean_ctor_set(x_436, 0, x_435); -lean_ctor_set_tag(x_431, 3); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 0, x_436); -x_441 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_442 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_442, 0, x_424); -lean_ctor_set(x_442, 1, x_429); -lean_ctor_set(x_442, 2, x_22); -lean_ctor_set(x_442, 3, x_441); -lean_ctor_set(x_442, 4, x_431); -lean_ctor_set_uint8(x_442, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_442, sizeof(void*)*5 + 1, x_15); -x_443 = lean_st_ref_take(x_5, x_439); -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_443, 1); -lean_inc(x_445); -lean_dec(x_443); -x_446 = !lean_is_exclusive(x_444); -if (x_446 == 0) -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; -x_447 = lean_ctor_get(x_444, 1); -x_448 = l_Lean_PersistentArray_push___rarg(x_447, x_442); -lean_ctor_set(x_444, 1, x_448); -x_449 = lean_st_ref_set(x_5, x_444, x_445); -x_450 = !lean_is_exclusive(x_449); -if (x_450 == 0) -{ -lean_object* x_451; lean_object* x_452; -x_451 = lean_ctor_get(x_449, 0); -lean_dec(x_451); -x_452 = lean_box(0); -lean_ctor_set(x_449, 0, x_452); -return x_449; +return x_120; } else { -lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_453 = lean_ctor_get(x_449, 1); -lean_inc(x_453); -lean_dec(x_449); -x_454 = lean_box(0); -x_455 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_455, 1, x_453); -return x_455; +uint8_t x_121; +lean_dec(x_112); +lean_dec(x_111); +lean_free_object(x_22); +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_5); +lean_dec(x_4); +x_121 = !lean_is_exclusive(x_114); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_114, 0); +lean_dec(x_122); +x_123 = lean_box(0); +lean_ctor_set(x_114, 0, x_123); +return x_114; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_114, 1); +lean_inc(x_124); +lean_dec(x_114); +x_125 = lean_box(0); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} } } else { -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_object* x_470; -x_456 = lean_ctor_get(x_444, 0); -x_457 = lean_ctor_get(x_444, 1); -x_458 = lean_ctor_get(x_444, 2); -x_459 = lean_ctor_get(x_444, 3); -x_460 = lean_ctor_get(x_444, 4); -x_461 = lean_ctor_get(x_444, 5); -x_462 = lean_ctor_get(x_444, 6); -x_463 = lean_ctor_get(x_444, 7); -lean_inc(x_463); -lean_inc(x_462); -lean_inc(x_461); -lean_inc(x_460); -lean_inc(x_459); -lean_inc(x_458); -lean_inc(x_457); -lean_inc(x_456); -lean_dec(x_444); -x_464 = l_Lean_PersistentArray_push___rarg(x_457, x_442); -x_465 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_465, 0, x_456); -lean_ctor_set(x_465, 1, x_464); -lean_ctor_set(x_465, 2, x_458); -lean_ctor_set(x_465, 3, x_459); -lean_ctor_set(x_465, 4, x_460); -lean_ctor_set(x_465, 5, x_461); -lean_ctor_set(x_465, 6, x_462); -lean_ctor_set(x_465, 7, x_463); -x_466 = lean_st_ref_set(x_5, x_465, x_445); -x_467 = lean_ctor_get(x_466, 1); -lean_inc(x_467); -if (lean_is_exclusive(x_466)) { - lean_ctor_release(x_466, 0); - lean_ctor_release(x_466, 1); - x_468 = x_466; -} else { - lean_dec_ref(x_466); - x_468 = lean_box(0); -} -x_469 = lean_box(0); -if (lean_is_scalar(x_468)) { - x_470 = lean_alloc_ctor(0, 2, 0); -} else { - x_470 = x_468; -} -lean_ctor_set(x_470, 0, x_469); -lean_ctor_set(x_470, 1, x_467); -return x_470; -} -} -else -{ -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; 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; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_471 = lean_ctor_get(x_436, 0); -x_472 = lean_ctor_get(x_436, 1); -lean_inc(x_472); -lean_inc(x_471); -lean_dec(x_436); -x_473 = lean_ctor_get(x_471, 3); -lean_inc(x_473); -lean_dec(x_471); -x_474 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_474, 0, x_435); -lean_ctor_set(x_474, 1, x_473); -lean_ctor_set_tag(x_431, 3); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 0, x_474); -x_475 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_476 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_476, 0, x_424); -lean_ctor_set(x_476, 1, x_429); -lean_ctor_set(x_476, 2, x_22); -lean_ctor_set(x_476, 3, x_475); -lean_ctor_set(x_476, 4, x_431); -lean_ctor_set_uint8(x_476, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_476, sizeof(void*)*5 + 1, x_15); -x_477 = lean_st_ref_take(x_5, x_472); -x_478 = lean_ctor_get(x_477, 0); -lean_inc(x_478); -x_479 = lean_ctor_get(x_477, 1); -lean_inc(x_479); -lean_dec(x_477); -x_480 = lean_ctor_get(x_478, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_478, 1); -lean_inc(x_481); -x_482 = lean_ctor_get(x_478, 2); -lean_inc(x_482); -x_483 = lean_ctor_get(x_478, 3); -lean_inc(x_483); -x_484 = lean_ctor_get(x_478, 4); -lean_inc(x_484); -x_485 = lean_ctor_get(x_478, 5); -lean_inc(x_485); -x_486 = lean_ctor_get(x_478, 6); -lean_inc(x_486); -x_487 = lean_ctor_get(x_478, 7); -lean_inc(x_487); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - lean_ctor_release(x_478, 2); - lean_ctor_release(x_478, 3); - lean_ctor_release(x_478, 4); - lean_ctor_release(x_478, 5); - lean_ctor_release(x_478, 6); - lean_ctor_release(x_478, 7); - x_488 = x_478; -} else { - lean_dec_ref(x_478); - x_488 = lean_box(0); -} -x_489 = l_Lean_PersistentArray_push___rarg(x_481, x_476); -if (lean_is_scalar(x_488)) { - x_490 = lean_alloc_ctor(0, 8, 0); -} else { - x_490 = x_488; -} -lean_ctor_set(x_490, 0, x_480); -lean_ctor_set(x_490, 1, x_489); -lean_ctor_set(x_490, 2, x_482); -lean_ctor_set(x_490, 3, x_483); -lean_ctor_set(x_490, 4, x_484); -lean_ctor_set(x_490, 5, x_485); -lean_ctor_set(x_490, 6, x_486); -lean_ctor_set(x_490, 7, x_487); -x_491 = lean_st_ref_set(x_5, x_490, x_479); -x_492 = lean_ctor_get(x_491, 1); -lean_inc(x_492); -if (lean_is_exclusive(x_491)) { - lean_ctor_release(x_491, 0); - lean_ctor_release(x_491, 1); - x_493 = x_491; -} else { - lean_dec_ref(x_491); - x_493 = lean_box(0); -} -x_494 = lean_box(0); -if (lean_is_scalar(x_493)) { - x_495 = lean_alloc_ctor(0, 2, 0); -} else { - x_495 = x_493; -} -lean_ctor_set(x_495, 0, x_494); -lean_ctor_set(x_495, 1, x_492); -return x_495; -} -} -else -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; 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; 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; 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_496 = lean_ctor_get(x_431, 0); -x_497 = lean_ctor_get(x_431, 1); -lean_inc(x_497); -lean_inc(x_496); -lean_dec(x_431); -x_498 = lean_ctor_get(x_496, 2); -lean_inc(x_498); -lean_dec(x_496); -x_499 = l_Lean_Elab_Command_getScope___rarg(x_5, x_497); -x_500 = lean_ctor_get(x_499, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_499, 1); -lean_inc(x_501); -if (lean_is_exclusive(x_499)) { - lean_ctor_release(x_499, 0); - lean_ctor_release(x_499, 1); - x_502 = x_499; -} else { - lean_dec_ref(x_499); - x_502 = lean_box(0); -} -x_503 = lean_ctor_get(x_500, 3); -lean_inc(x_503); -lean_dec(x_500); -if (lean_is_scalar(x_502)) { - x_504 = lean_alloc_ctor(0, 2, 0); -} else { - x_504 = x_502; -} -lean_ctor_set(x_504, 0, x_498); -lean_ctor_set(x_504, 1, x_503); -x_505 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_505, 0, x_504); -lean_ctor_set(x_505, 1, x_427); -x_506 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_507 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_507, 0, x_424); -lean_ctor_set(x_507, 1, x_429); -lean_ctor_set(x_507, 2, x_22); -lean_ctor_set(x_507, 3, x_506); -lean_ctor_set(x_507, 4, x_505); -lean_ctor_set_uint8(x_507, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_507, sizeof(void*)*5 + 1, x_15); -x_508 = lean_st_ref_take(x_5, x_501); -x_509 = lean_ctor_get(x_508, 0); -lean_inc(x_509); -x_510 = lean_ctor_get(x_508, 1); -lean_inc(x_510); -lean_dec(x_508); -x_511 = lean_ctor_get(x_509, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_509, 1); -lean_inc(x_512); -x_513 = lean_ctor_get(x_509, 2); -lean_inc(x_513); -x_514 = lean_ctor_get(x_509, 3); -lean_inc(x_514); -x_515 = lean_ctor_get(x_509, 4); -lean_inc(x_515); -x_516 = lean_ctor_get(x_509, 5); -lean_inc(x_516); -x_517 = lean_ctor_get(x_509, 6); -lean_inc(x_517); -x_518 = lean_ctor_get(x_509, 7); -lean_inc(x_518); -if (lean_is_exclusive(x_509)) { - lean_ctor_release(x_509, 0); - lean_ctor_release(x_509, 1); - lean_ctor_release(x_509, 2); - lean_ctor_release(x_509, 3); - lean_ctor_release(x_509, 4); - lean_ctor_release(x_509, 5); - lean_ctor_release(x_509, 6); - lean_ctor_release(x_509, 7); - x_519 = x_509; -} else { - lean_dec_ref(x_509); - x_519 = lean_box(0); -} -x_520 = l_Lean_PersistentArray_push___rarg(x_512, x_507); -if (lean_is_scalar(x_519)) { - x_521 = lean_alloc_ctor(0, 8, 0); -} else { - x_521 = x_519; -} -lean_ctor_set(x_521, 0, x_511); -lean_ctor_set(x_521, 1, x_520); -lean_ctor_set(x_521, 2, x_513); -lean_ctor_set(x_521, 3, x_514); -lean_ctor_set(x_521, 4, x_515); -lean_ctor_set(x_521, 5, x_516); -lean_ctor_set(x_521, 6, x_517); -lean_ctor_set(x_521, 7, x_518); -x_522 = lean_st_ref_set(x_5, x_521, x_510); -x_523 = lean_ctor_get(x_522, 1); -lean_inc(x_523); -if (lean_is_exclusive(x_522)) { - lean_ctor_release(x_522, 0); - lean_ctor_release(x_522, 1); - x_524 = x_522; -} else { - lean_dec_ref(x_522); - x_524 = lean_box(0); -} -x_525 = lean_box(0); -if (lean_is_scalar(x_524)) { - x_526 = lean_alloc_ctor(0, 2, 0); -} else { - x_526 = x_524; -} -lean_ctor_set(x_526, 0, x_525); -lean_ctor_set(x_526, 1, x_523); -return x_526; -} -} -else -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 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; 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; 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; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_527 = lean_ctor_get(x_22, 0); -lean_inc(x_527); +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_22, 0); +lean_inc(x_127); lean_dec(x_22); -x_528 = lean_ctor_get(x_4, 0); -lean_inc(x_528); -x_529 = lean_ctor_get(x_4, 1); -lean_inc(x_529); -x_530 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_128 = lean_ctor_get(x_4, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_4, 1); +lean_inc(x_129); +x_130 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_131 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_130 == 0) +{ +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_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_inc(x_129); +x_134 = l_Lean_FileMap_toPosition(x_129, x_108); +lean_dec(x_108); +x_135 = l_Lean_FileMap_toPosition(x_129, x_127); +lean_dec(x_127); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_135); +x_137 = lean_box(0); +x_138 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_132, x_128, x_134, x_136, x_15, x_137, x_4, x_5, x_133); +lean_dec(x_5); lean_dec(x_4); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -lean_inc(x_529); -x_533 = l_Lean_FileMap_toPosition(x_529, x_421); -lean_dec(x_421); -x_534 = l_Lean_FileMap_toPosition(x_529, x_527); -lean_dec(x_527); -x_535 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_535, 0, x_534); -x_536 = l_Lean_Elab_Command_getScope___rarg(x_5, x_532); -x_537 = lean_ctor_get(x_536, 0); -lean_inc(x_537); -x_538 = lean_ctor_get(x_536, 1); -lean_inc(x_538); -if (lean_is_exclusive(x_536)) { - lean_ctor_release(x_536, 0); - lean_ctor_release(x_536, 1); - x_539 = x_536; -} else { - lean_dec_ref(x_536); - x_539 = lean_box(0); +return x_138; } -x_540 = lean_ctor_get(x_537, 2); -lean_inc(x_540); -lean_dec(x_537); -x_541 = l_Lean_Elab_Command_getScope___rarg(x_5, x_538); -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_541, 1); -lean_inc(x_543); -if (lean_is_exclusive(x_541)) { - lean_ctor_release(x_541, 0); - lean_ctor_release(x_541, 1); - x_544 = x_541; +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_108); +lean_dec(x_5); +lean_dec(x_4); +x_139 = lean_ctor_get(x_131, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_140 = x_131; } else { - lean_dec_ref(x_541); - x_544 = lean_box(0); + lean_dec_ref(x_131); + x_140 = lean_box(0); } -x_545 = lean_ctor_get(x_542, 3); -lean_inc(x_545); -lean_dec(x_542); -if (lean_is_scalar(x_544)) { - x_546 = lean_alloc_ctor(0, 2, 0); +x_141 = lean_box(0); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); } else { - x_546 = x_544; + x_142 = x_140; } -lean_ctor_set(x_546, 0, x_540); -lean_ctor_set(x_546, 1, x_545); -if (lean_is_scalar(x_539)) { - x_547 = lean_alloc_ctor(3, 2, 0); -} else { - x_547 = x_539; - lean_ctor_set_tag(x_547, 3); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; } -lean_ctor_set(x_547, 0, x_546); -lean_ctor_set(x_547, 1, x_531); -x_548 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_549 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_549, 0, x_528); -lean_ctor_set(x_549, 1, x_533); -lean_ctor_set(x_549, 2, x_535); -lean_ctor_set(x_549, 3, x_548); -lean_ctor_set(x_549, 4, x_547); -lean_ctor_set_uint8(x_549, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_549, sizeof(void*)*5 + 1, x_15); -x_550 = lean_st_ref_take(x_5, x_543); -x_551 = lean_ctor_get(x_550, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_550, 1); -lean_inc(x_552); -lean_dec(x_550); -x_553 = lean_ctor_get(x_551, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_551, 1); -lean_inc(x_554); -x_555 = lean_ctor_get(x_551, 2); -lean_inc(x_555); -x_556 = lean_ctor_get(x_551, 3); -lean_inc(x_556); -x_557 = lean_ctor_get(x_551, 4); -lean_inc(x_557); -x_558 = lean_ctor_get(x_551, 5); -lean_inc(x_558); -x_559 = lean_ctor_get(x_551, 6); -lean_inc(x_559); -x_560 = lean_ctor_get(x_551, 7); -lean_inc(x_560); -if (lean_is_exclusive(x_551)) { - lean_ctor_release(x_551, 0); - lean_ctor_release(x_551, 1); - lean_ctor_release(x_551, 2); - lean_ctor_release(x_551, 3); - lean_ctor_release(x_551, 4); - lean_ctor_release(x_551, 5); - lean_ctor_release(x_551, 6); - lean_ctor_release(x_551, 7); - x_561 = x_551; -} else { - lean_dec_ref(x_551); - x_561 = lean_box(0); -} -x_562 = l_Lean_PersistentArray_push___rarg(x_554, x_549); -if (lean_is_scalar(x_561)) { - x_563 = lean_alloc_ctor(0, 8, 0); -} else { - x_563 = x_561; -} -lean_ctor_set(x_563, 0, x_553); -lean_ctor_set(x_563, 1, x_562); -lean_ctor_set(x_563, 2, x_555); -lean_ctor_set(x_563, 3, x_556); -lean_ctor_set(x_563, 4, x_557); -lean_ctor_set(x_563, 5, x_558); -lean_ctor_set(x_563, 6, x_559); -lean_ctor_set(x_563, 7, x_560); -x_564 = lean_st_ref_set(x_5, x_563, x_552); -x_565 = lean_ctor_get(x_564, 1); -lean_inc(x_565); -if (lean_is_exclusive(x_564)) { - lean_ctor_release(x_564, 0); - lean_ctor_release(x_564, 1); - x_566 = x_564; -} else { - lean_dec_ref(x_564); - x_566 = lean_box(0); -} -x_567 = lean_box(0); -if (lean_is_scalar(x_566)) { - x_568 = lean_alloc_ctor(0, 2, 0); -} else { - x_568 = x_566; -} -lean_ctor_set(x_568, 0, x_567); -lean_ctor_set(x_568, 1, x_565); -return x_568; } } } @@ -10308,8 +9523,6 @@ x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); lean_dec(x_6); x_9 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_7, x_1, x_2, x_3, x_4, x_8); -lean_dec(x_4); -lean_dec(x_7); return x_9; } } @@ -10317,20 +9530,28 @@ static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLin _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +x_1 = l_Lean_Core_interruptExceptionId; return x_1; } } static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; +x_1 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3() { +static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -10352,8 +9573,6 @@ lean_inc(x_6); lean_dec(x_1); x_7 = 2; x_8 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_5, x_6, x_7, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_5); return x_8; } else @@ -10369,172 +9588,209 @@ lean_dec(x_11); x_12 = l_Lean_Elab_isAbortExceptionId(x_10); if (x_12 == 0) { -lean_object* x_13; -x_13 = l_Lean_InternalExceptionId_getName(x_10, x_4); -lean_dec(x_10); -if (lean_obj_tag(x_13) == 0) +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; +x_14 = lean_nat_dec_eq(x_10, x_13); +if (x_14 == 0) { -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; lean_object* x_22; +lean_object* x_15; +x_15 = l_Lean_InternalExceptionId_getName(x_10, x_4); +lean_dec(x_10); +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; uint8_t x_23; lean_object* x_24; lean_free_object(x_1); -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_Lean_MessageData_ofName(x_14); -x_17 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; -x_18 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_MessageData_ofName(x_16); x_19 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; x_20 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = 2; -x_22 = l_Lean_log___at_Lean_Elab_Command_runLinters___spec__3(x_20, x_21, x_2, x_3, x_15); -return x_22; +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; +x_22 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = 2; +x_24 = l_Lean_log___at_Lean_Elab_Command_runLinters___spec__3(x_22, x_23, x_2, x_3, x_17); +return x_24; } else { -uint8_t x_23; +uint8_t x_25; lean_dec(x_3); -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) +x_25 = !lean_is_exclusive(x_15); +if (x_25 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_2, 6); -lean_inc(x_25); +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_15, 0); +x_27 = lean_ctor_get(x_2, 6); +lean_inc(x_27); lean_dec(x_2); -x_26 = lean_io_error_to_string(x_24); -x_27 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_MessageData_ofFormat(x_27); +x_28 = lean_io_error_to_string(x_26); +x_29 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = l_Lean_MessageData_ofFormat(x_29); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_28); -lean_ctor_set(x_1, 0, x_25); -lean_ctor_set(x_13, 0, x_1); -return x_13; +lean_ctor_set(x_1, 1, x_30); +lean_ctor_set(x_1, 0, x_27); +lean_ctor_set(x_15, 0, x_1); +return x_15; } else { -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_13, 0); -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_13); -x_31 = lean_ctor_get(x_2, 6); +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_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); lean_inc(x_31); +lean_dec(x_15); +x_33 = lean_ctor_get(x_2, 6); +lean_inc(x_33); lean_dec(x_2); -x_32 = lean_io_error_to_string(x_29); -x_33 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_MessageData_ofFormat(x_33); +x_34 = lean_io_error_to_string(x_31); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = l_Lean_MessageData_ofFormat(x_35); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_34); -lean_ctor_set(x_1, 0, x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_30); -return x_35; -} -} -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_free_object(x_1); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_4); +lean_ctor_set(x_1, 1, x_36); +lean_ctor_set(x_1, 0, x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_32); return x_37; } } +} else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_1, 0); -lean_inc(x_38); -lean_dec(x_1); -x_39 = l_Lean_Elab_isAbortExceptionId(x_38); -if (x_39 == 0) +lean_object* x_38; lean_object* x_39; +lean_free_object(x_1); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +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_4); +return x_39; +} +} +else { -lean_object* x_40; -x_40 = l_Lean_InternalExceptionId_getName(x_38, x_4); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) +lean_object* x_40; lean_object* x_41; +lean_free_object(x_1); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_4); +return x_41; +} +} +else { -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; uint8_t x_48; lean_object* x_49; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_1, 0); lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_MessageData_ofName(x_41); -x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; -x_45 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_47 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = 2; -x_49 = l_Lean_log___at_Lean_Elab_Command_runLinters___spec__3(x_47, x_48, x_2, x_3, x_42); -return x_49; +lean_dec(x_1); +x_43 = l_Lean_Elab_isAbortExceptionId(x_42); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; +x_45 = lean_nat_dec_eq(x_42, x_44); +if (x_45 == 0) +{ +lean_object* x_46; +x_46 = l_Lean_InternalExceptionId_getName(x_42, x_4); +lean_dec(x_42); +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; uint8_t x_54; lean_object* x_55; +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 = l_Lean_MessageData_ofName(x_47); +x_50 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = 2; +x_55 = l_Lean_log___at_Lean_Elab_Command_runLinters___spec__3(x_53, x_54, x_2, x_3, x_48); +return x_55; } 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; +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_dec(x_3); -x_50 = lean_ctor_get(x_40, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_40, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_52 = x_40; +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_40); - x_52 = lean_box(0); + lean_dec_ref(x_46); + x_58 = lean_box(0); } -x_53 = lean_ctor_get(x_2, 6); -lean_inc(x_53); +x_59 = lean_ctor_get(x_2, 6); +lean_inc(x_59); lean_dec(x_2); -x_54 = lean_io_error_to_string(x_50); -x_55 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = l_Lean_MessageData_ofFormat(x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_53); -lean_ctor_set(x_57, 1, x_56); -if (lean_is_scalar(x_52)) { - x_58 = lean_alloc_ctor(1, 2, 0); +x_60 = lean_io_error_to_string(x_56); +x_61 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_Lean_MessageData_ofFormat(x_61); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_62); +if (lean_is_scalar(x_58)) { + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_58 = x_52; + x_64 = x_58; } -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_51); -return x_58; +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_57); +return x_64; } } else { -lean_object* x_59; lean_object* x_60; -lean_dec(x_38); +lean_object* x_65; lean_object* x_66; +lean_dec(x_42); lean_dec(x_3); lean_dec(x_2); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_4); -return x_60; +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_4); +return x_66; +} +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_42); +lean_dec(x_3); +lean_dec(x_2); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_4); +return x_68; } } } @@ -10932,7 +10188,7 @@ 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_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; size_t x_89; size_t 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; 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_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; uint8_t 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; size_t x_91; size_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; 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; x_74 = lean_ctor_get(x_5, 0); x_75 = lean_ctor_get(x_5, 1); x_76 = lean_ctor_get(x_5, 2); @@ -10941,6 +10197,9 @@ x_78 = lean_ctor_get(x_5, 4); x_79 = lean_ctor_get(x_5, 5); x_80 = lean_ctor_get(x_5, 7); x_81 = lean_ctor_get(x_5, 8); +x_82 = lean_ctor_get(x_5, 9); +x_83 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); @@ -10950,124 +10209,126 @@ lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_dec(x_5); -x_82 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_82, 0, x_74); -lean_ctor_set(x_82, 1, x_75); -lean_ctor_set(x_82, 2, x_76); -lean_ctor_set(x_82, 3, x_77); -lean_ctor_set(x_82, 4, x_78); -lean_ctor_set(x_82, 5, x_79); -lean_ctor_set(x_82, 6, x_11); -lean_ctor_set(x_82, 7, x_80); -lean_ctor_set(x_82, 8, x_81); -x_83 = lean_st_ref_get(x_6, x_10); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_ctor_get(x_84, 7); +x_84 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_84, 0, x_74); +lean_ctor_set(x_84, 1, x_75); +lean_ctor_set(x_84, 2, x_76); +lean_ctor_set(x_84, 3, x_77); +lean_ctor_set(x_84, 4, x_78); +lean_ctor_set(x_84, 5, x_79); +lean_ctor_set(x_84, 6, x_11); +lean_ctor_set(x_84, 7, x_80); +lean_ctor_set(x_84, 8, x_81); +lean_ctor_set(x_84, 9, x_82); +lean_ctor_set_uint8(x_84, sizeof(void*)*10, x_83); +x_85 = lean_st_ref_get(x_6, x_10); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_ctor_get(x_86, 7); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_PersistentArray_toArray___rarg(x_88); +x_90 = lean_array_get_size(x_89); +x_91 = lean_usize_of_nat(x_90); +lean_dec(x_90); +x_92 = 0; +x_93 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_91, x_92, x_89); +x_94 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_94, 0, x_2); +lean_ctor_set(x_94, 1, x_4); +lean_ctor_set(x_94, 2, x_93); +x_95 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_94, x_84, x_6, x_87); lean_dec(x_84); -x_87 = l_Lean_PersistentArray_toArray___rarg(x_86); -x_88 = lean_array_get_size(x_87); -x_89 = lean_usize_of_nat(x_88); -lean_dec(x_88); -x_90 = 0; -x_91 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_89, x_90, x_87); -x_92 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_92, 0, x_2); -lean_ctor_set(x_92, 1, x_4); -lean_ctor_set(x_92, 2, x_91); -x_93 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_92, x_82, x_6, x_85); -lean_dec(x_82); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_st_ref_take(x_6, x_95); -x_97 = lean_ctor_get(x_96, 0); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_99 = x_96; -} else { - lean_dec_ref(x_96); - x_99 = lean_box(0); -} -x_100 = lean_ctor_get(x_97, 0); +lean_dec(x_95); +x_98 = lean_st_ref_take(x_6, x_97); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_97, 1); -lean_inc(x_101); -x_102 = lean_ctor_get(x_97, 2); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = lean_ctor_get(x_99, 0); lean_inc(x_102); -x_103 = lean_ctor_get(x_97, 3); +x_103 = lean_ctor_get(x_99, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_97, 4); +x_104 = lean_ctor_get(x_99, 2); lean_inc(x_104); -x_105 = lean_ctor_get(x_97, 5); +x_105 = lean_ctor_get(x_99, 3); lean_inc(x_105); -x_106 = lean_ctor_get(x_97, 6); +x_106 = lean_ctor_get(x_99, 4); lean_inc(x_106); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - lean_ctor_release(x_97, 2); - lean_ctor_release(x_97, 3); - lean_ctor_release(x_97, 4); - lean_ctor_release(x_97, 5); - lean_ctor_release(x_97, 6); - lean_ctor_release(x_97, 7); - x_107 = x_97; +x_107 = lean_ctor_get(x_99, 5); +lean_inc(x_107); +x_108 = lean_ctor_get(x_99, 6); +lean_inc(x_108); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + lean_ctor_release(x_99, 2); + lean_ctor_release(x_99, 3); + lean_ctor_release(x_99, 4); + lean_ctor_release(x_99, 5); + lean_ctor_release(x_99, 6); + lean_ctor_release(x_99, 7); + x_109 = x_99; } else { - lean_dec_ref(x_97); - x_107 = lean_box(0); + lean_dec_ref(x_99); + x_109 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_108 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_101)) { + x_110 = lean_alloc_ctor(0, 2, 0); } else { - x_108 = x_99; + x_110 = x_101; } -lean_ctor_set(x_108, 0, x_3); -lean_ctor_set(x_108, 1, x_94); -x_109 = l_Lean_PersistentArray_push___rarg(x_1, x_108); -if (lean_is_scalar(x_107)) { - x_110 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_110, 0, x_3); +lean_ctor_set(x_110, 1, x_96); +x_111 = l_Lean_PersistentArray_push___rarg(x_1, x_110); +if (lean_is_scalar(x_109)) { + x_112 = lean_alloc_ctor(0, 8, 0); } else { - x_110 = x_107; + x_112 = x_109; } -lean_ctor_set(x_110, 0, x_100); -lean_ctor_set(x_110, 1, x_101); -lean_ctor_set(x_110, 2, x_102); -lean_ctor_set(x_110, 3, x_103); -lean_ctor_set(x_110, 4, x_104); -lean_ctor_set(x_110, 5, x_105); -lean_ctor_set(x_110, 6, x_106); -lean_ctor_set(x_110, 7, x_109); -x_111 = lean_st_ref_set(x_6, x_110, x_98); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; -} else { - lean_dec_ref(x_111); - x_113 = lean_box(0); -} -x_114 = lean_box(0); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_112, 0, x_102); +lean_ctor_set(x_112, 1, x_103); +lean_ctor_set(x_112, 2, x_104); +lean_ctor_set(x_112, 3, x_105); +lean_ctor_set(x_112, 4, x_106); +lean_ctor_set(x_112, 5, x_107); +lean_ctor_set(x_112, 6, x_108); +lean_ctor_set(x_112, 7, x_111); +x_113 = lean_st_ref_set(x_6, x_112, x_100); +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); x_115 = x_113; +} else { + lean_dec_ref(x_113); + x_115 = lean_box(0); } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; +x_116 = lean_box(0); +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_115; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_114); +return x_117; } } } @@ -12378,7 +11639,7 @@ x_8 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___lam x_9 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_10 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; x_11 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); @@ -12391,7 +11652,7 @@ return x_12; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__9___lambda__2(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +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_42; lean_object* x_43; lean_object* x_74; x_6 = lean_st_ref_get(x_4, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); @@ -12403,361 +11664,285 @@ lean_inc(x_9); lean_dec(x_1); lean_inc(x_4); lean_inc(x_3); -x_10 = lean_apply_4(x_9, x_2, x_3, x_4, x_8); -if (lean_obj_tag(x_10) == 0) +x_74 = lean_apply_4(x_9, x_2, x_3, x_4, x_8); +if (lean_obj_tag(x_74) == 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; 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; +lean_object* x_75; lean_object* x_76; lean_dec(x_3); -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_ref_take(x_4, x_12); -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_7, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_7, 2); -lean_inc(x_17); -x_18 = lean_ctor_get(x_7, 3); -lean_inc(x_18); -x_19 = lean_ctor_get(x_7, 4); -lean_inc(x_19); -x_20 = lean_ctor_get(x_7, 5); -lean_inc(x_20); -x_21 = lean_ctor_get(x_7, 6); -lean_inc(x_21); -x_22 = lean_ctor_get(x_7, 7); -lean_inc(x_22); -lean_dec(x_7); -x_23 = !lean_is_exclusive(x_14); -if (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; uint8_t x_32; -x_24 = lean_ctor_get(x_14, 7); -lean_dec(x_24); -x_25 = lean_ctor_get(x_14, 6); -lean_dec(x_25); -x_26 = lean_ctor_get(x_14, 5); -lean_dec(x_26); -x_27 = lean_ctor_get(x_14, 4); -lean_dec(x_27); -x_28 = lean_ctor_get(x_14, 3); -lean_dec(x_28); -x_29 = lean_ctor_get(x_14, 2); -lean_dec(x_29); -x_30 = lean_ctor_get(x_14, 0); -lean_dec(x_30); -lean_ctor_set(x_14, 7, x_22); -lean_ctor_set(x_14, 6, x_21); -lean_ctor_set(x_14, 5, x_20); -lean_ctor_set(x_14, 4, x_19); -lean_ctor_set(x_14, 3, x_18); -lean_ctor_set(x_14, 2, x_17); -lean_ctor_set(x_14, 0, x_16); -x_31 = lean_st_ref_set(x_4, x_14, x_15); -lean_dec(x_4); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_11); -return x_31; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +lean_dec(x_74); +x_10 = x_75; +x_11 = x_76; +goto block_41; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_11); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -else +lean_object* x_77; lean_object* x_78; uint8_t x_79; +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 = l_Lean_Exception_isInterrupt(x_77); +if (x_79 == 0) { -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_alloc_ctor(0, 8, 0); -lean_ctor_set(x_37, 0, x_16); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_17); -lean_ctor_set(x_37, 3, x_18); -lean_ctor_set(x_37, 4, x_19); -lean_ctor_set(x_37, 5, x_20); -lean_ctor_set(x_37, 6, x_21); -lean_ctor_set(x_37, 7, x_22); -x_38 = lean_st_ref_set(x_4, x_37, x_15); -lean_dec(x_4); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; -} else { - lean_dec_ref(x_38); - x_40 = lean_box(0); -} -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_40; -} -lean_ctor_set(x_41, 0, x_11); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_10, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); -lean_dec(x_10); +lean_object* x_80; lean_inc(x_4); -x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_42, x_3, x_4, x_43); -if (lean_obj_tag(x_44) == 0) +x_80 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_77, x_3, x_4, x_78); +if (lean_obj_tag(x_80) == 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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_10 = x_81; +x_11 = x_82; +goto block_41; +} +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_80, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_80, 1); +lean_inc(x_84); +lean_dec(x_80); +x_42 = x_83; +x_43 = x_84; +goto block_73; +} +} +else +{ +lean_dec(x_3); +x_42 = x_77; +x_43 = x_78; +goto block_73; +} +} +block_41: +{ +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; uint8_t x_22; +x_12 = lean_st_ref_take(x_4, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_7, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_7, 3); +lean_inc(x_17); +x_18 = lean_ctor_get(x_7, 4); +lean_inc(x_18); +x_19 = lean_ctor_get(x_7, 5); +lean_inc(x_19); +x_20 = lean_ctor_get(x_7, 6); +lean_inc(x_20); +x_21 = lean_ctor_get(x_7, 7); +lean_inc(x_21); +lean_dec(x_7); +x_22 = !lean_is_exclusive(x_13); +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; uint8_t x_31; +x_23 = lean_ctor_get(x_13, 7); +lean_dec(x_23); +x_24 = lean_ctor_get(x_13, 6); +lean_dec(x_24); +x_25 = lean_ctor_get(x_13, 5); +lean_dec(x_25); +x_26 = lean_ctor_get(x_13, 4); +lean_dec(x_26); +x_27 = lean_ctor_get(x_13, 3); +lean_dec(x_27); +x_28 = lean_ctor_get(x_13, 2); +lean_dec(x_28); +x_29 = lean_ctor_get(x_13, 0); +lean_dec(x_29); +lean_ctor_set(x_13, 7, x_21); +lean_ctor_set(x_13, 6, x_20); +lean_ctor_set(x_13, 5, x_19); +lean_ctor_set(x_13, 4, x_18); +lean_ctor_set(x_13, 3, x_17); +lean_ctor_set(x_13, 2, x_16); +lean_ctor_set(x_13, 0, x_15); +x_30 = lean_st_ref_set(x_4, x_13, x_14); +lean_dec(x_4); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +lean_ctor_set(x_30, 0, x_10); +return x_30; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_10); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_13, 1); +lean_inc(x_35); +lean_dec(x_13); +x_36 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_36, 0, x_15); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_16); +lean_ctor_set(x_36, 3, x_17); +lean_ctor_set(x_36, 4, x_18); +lean_ctor_set(x_36, 5, x_19); +lean_ctor_set(x_36, 6, x_20); +lean_ctor_set(x_36, 7, x_21); +x_37 = lean_st_ref_set(x_4, x_36, x_14); +lean_dec(x_4); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_10); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +block_73: +{ +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; uint8_t x_54; +x_44 = lean_st_ref_take(x_4, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); lean_dec(x_44); -x_47 = lean_st_ref_take(x_4, x_46); -x_48 = lean_ctor_get(x_47, 0); +x_47 = lean_ctor_get(x_7, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_7, 2); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +x_49 = lean_ctor_get(x_7, 3); lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_ctor_get(x_7, 0); +x_50 = lean_ctor_get(x_7, 4); lean_inc(x_50); -x_51 = lean_ctor_get(x_7, 2); +x_51 = lean_ctor_get(x_7, 5); lean_inc(x_51); -x_52 = lean_ctor_get(x_7, 3); +x_52 = lean_ctor_get(x_7, 6); lean_inc(x_52); -x_53 = lean_ctor_get(x_7, 4); +x_53 = lean_ctor_get(x_7, 7); lean_inc(x_53); -x_54 = lean_ctor_get(x_7, 5); -lean_inc(x_54); -x_55 = lean_ctor_get(x_7, 6); -lean_inc(x_55); -x_56 = lean_ctor_get(x_7, 7); -lean_inc(x_56); lean_dec(x_7); -x_57 = !lean_is_exclusive(x_48); -if (x_57 == 0) +x_54 = !lean_is_exclusive(x_45); +if (x_54 == 0) { -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; uint8_t x_66; -x_58 = lean_ctor_get(x_48, 7); +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; uint8_t x_63; +x_55 = lean_ctor_get(x_45, 7); +lean_dec(x_55); +x_56 = lean_ctor_get(x_45, 6); +lean_dec(x_56); +x_57 = lean_ctor_get(x_45, 5); +lean_dec(x_57); +x_58 = lean_ctor_get(x_45, 4); lean_dec(x_58); -x_59 = lean_ctor_get(x_48, 6); +x_59 = lean_ctor_get(x_45, 3); lean_dec(x_59); -x_60 = lean_ctor_get(x_48, 5); +x_60 = lean_ctor_get(x_45, 2); lean_dec(x_60); -x_61 = lean_ctor_get(x_48, 4); +x_61 = lean_ctor_get(x_45, 0); lean_dec(x_61); -x_62 = lean_ctor_get(x_48, 3); -lean_dec(x_62); -x_63 = lean_ctor_get(x_48, 2); -lean_dec(x_63); -x_64 = lean_ctor_get(x_48, 0); +lean_ctor_set(x_45, 7, x_53); +lean_ctor_set(x_45, 6, x_52); +lean_ctor_set(x_45, 5, x_51); +lean_ctor_set(x_45, 4, x_50); +lean_ctor_set(x_45, 3, x_49); +lean_ctor_set(x_45, 2, x_48); +lean_ctor_set(x_45, 0, x_47); +x_62 = lean_st_ref_set(x_4, x_45, x_46); +lean_dec(x_4); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_62, 0); lean_dec(x_64); -lean_ctor_set(x_48, 7, x_56); -lean_ctor_set(x_48, 6, x_55); -lean_ctor_set(x_48, 5, x_54); -lean_ctor_set(x_48, 4, x_53); -lean_ctor_set(x_48, 3, x_52); -lean_ctor_set(x_48, 2, x_51); -lean_ctor_set(x_48, 0, x_50); -x_65 = lean_st_ref_set(x_4, x_48, x_49); +lean_ctor_set_tag(x_62, 1); +lean_ctor_set(x_62, 0, x_42); +return x_62; +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_42); +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; lean_object* x_72; +x_67 = lean_ctor_get(x_45, 1); +lean_inc(x_67); +lean_dec(x_45); +x_68 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_68, 0, x_47); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_48); +lean_ctor_set(x_68, 3, x_49); +lean_ctor_set(x_68, 4, x_50); +lean_ctor_set(x_68, 5, x_51); +lean_ctor_set(x_68, 6, x_52); +lean_ctor_set(x_68, 7, x_53); +x_69 = lean_st_ref_set(x_4, x_68, x_46); lean_dec(x_4); -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_65, 0); -lean_dec(x_67); -lean_ctor_set(x_65, 0, x_45); -return x_65; -} -else -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_45); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -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_48, 1); +x_70 = lean_ctor_get(x_69, 1); lean_inc(x_70); -lean_dec(x_48); -x_71 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_71, 0, x_50); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_71, 2, x_51); -lean_ctor_set(x_71, 3, x_52); -lean_ctor_set(x_71, 4, x_53); -lean_ctor_set(x_71, 5, x_54); -lean_ctor_set(x_71, 6, x_55); -lean_ctor_set(x_71, 7, x_56); -x_72 = lean_st_ref_set(x_4, x_71, x_49); -lean_dec(x_4); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; } else { - lean_dec_ref(x_72); - x_74 = lean_box(0); + lean_dec_ref(x_69); + x_71 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; -} -lean_ctor_set(x_75, 0, x_45); -lean_ctor_set(x_75, 1, x_73); -return x_75; -} -} -else -{ -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; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_76 = lean_ctor_get(x_44, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_44, 1); -lean_inc(x_77); -lean_dec(x_44); -x_78 = lean_st_ref_take(x_4, x_77); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_ctor_get(x_7, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_7, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_7, 3); -lean_inc(x_83); -x_84 = lean_ctor_get(x_7, 4); -lean_inc(x_84); -x_85 = lean_ctor_get(x_7, 5); -lean_inc(x_85); -x_86 = lean_ctor_get(x_7, 6); -lean_inc(x_86); -x_87 = lean_ctor_get(x_7, 7); -lean_inc(x_87); -lean_dec(x_7); -x_88 = !lean_is_exclusive(x_79); -if (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; uint8_t x_97; -x_89 = lean_ctor_get(x_79, 7); -lean_dec(x_89); -x_90 = lean_ctor_get(x_79, 6); -lean_dec(x_90); -x_91 = lean_ctor_get(x_79, 5); -lean_dec(x_91); -x_92 = lean_ctor_get(x_79, 4); -lean_dec(x_92); -x_93 = lean_ctor_get(x_79, 3); -lean_dec(x_93); -x_94 = lean_ctor_get(x_79, 2); -lean_dec(x_94); -x_95 = lean_ctor_get(x_79, 0); -lean_dec(x_95); -lean_ctor_set(x_79, 7, x_87); -lean_ctor_set(x_79, 6, x_86); -lean_ctor_set(x_79, 5, x_85); -lean_ctor_set(x_79, 4, x_84); -lean_ctor_set(x_79, 3, x_83); -lean_ctor_set(x_79, 2, x_82); -lean_ctor_set(x_79, 0, x_81); -x_96 = lean_st_ref_set(x_4, x_79, x_80); -lean_dec(x_4); -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) -{ -lean_object* x_98; -x_98 = lean_ctor_get(x_96, 0); -lean_dec(x_98); -lean_ctor_set_tag(x_96, 1); -lean_ctor_set(x_96, 0, x_76); -return x_96; -} -else -{ -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_96, 1); -lean_inc(x_99); -lean_dec(x_96); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_76); -lean_ctor_set(x_100, 1, x_99); -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; -x_101 = lean_ctor_get(x_79, 1); -lean_inc(x_101); -lean_dec(x_79); -x_102 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_102, 0, x_81); -lean_ctor_set(x_102, 1, x_101); -lean_ctor_set(x_102, 2, x_82); -lean_ctor_set(x_102, 3, x_83); -lean_ctor_set(x_102, 4, x_84); -lean_ctor_set(x_102, 5, x_85); -lean_ctor_set(x_102, 6, x_86); -lean_ctor_set(x_102, 7, x_87); -x_103 = lean_st_ref_set(x_4, x_102, x_80); -lean_dec(x_4); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_105 = x_103; -} else { - lean_dec_ref(x_103); - 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_tag(x_106, 1); -} -lean_ctor_set(x_106, 0, x_76); -lean_ctor_set(x_106, 1, x_104); -return x_106; + x_72 = x_71; + lean_ctor_set_tag(x_72, 1); } +lean_ctor_set(x_72, 0, x_42); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } @@ -13228,7 +12413,7 @@ 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_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; size_t x_89; size_t 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; 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_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; uint8_t 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; size_t x_91; size_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; 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; x_74 = lean_ctor_get(x_5, 0); x_75 = lean_ctor_get(x_5, 1); x_76 = lean_ctor_get(x_5, 2); @@ -13237,6 +12422,9 @@ x_78 = lean_ctor_get(x_5, 4); x_79 = lean_ctor_get(x_5, 5); x_80 = lean_ctor_get(x_5, 7); x_81 = lean_ctor_get(x_5, 8); +x_82 = lean_ctor_get(x_5, 9); +x_83 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); @@ -13246,124 +12434,126 @@ lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_dec(x_5); -x_82 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_82, 0, x_74); -lean_ctor_set(x_82, 1, x_75); -lean_ctor_set(x_82, 2, x_76); -lean_ctor_set(x_82, 3, x_77); -lean_ctor_set(x_82, 4, x_78); -lean_ctor_set(x_82, 5, x_79); -lean_ctor_set(x_82, 6, x_11); -lean_ctor_set(x_82, 7, x_80); -lean_ctor_set(x_82, 8, x_81); -x_83 = lean_st_ref_get(x_6, x_10); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_ctor_get(x_84, 7); +x_84 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_84, 0, x_74); +lean_ctor_set(x_84, 1, x_75); +lean_ctor_set(x_84, 2, x_76); +lean_ctor_set(x_84, 3, x_77); +lean_ctor_set(x_84, 4, x_78); +lean_ctor_set(x_84, 5, x_79); +lean_ctor_set(x_84, 6, x_11); +lean_ctor_set(x_84, 7, x_80); +lean_ctor_set(x_84, 8, x_81); +lean_ctor_set(x_84, 9, x_82); +lean_ctor_set_uint8(x_84, sizeof(void*)*10, x_83); +x_85 = lean_st_ref_get(x_6, x_10); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_ctor_get(x_86, 7); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_PersistentArray_toArray___rarg(x_88); +x_90 = lean_array_get_size(x_89); +x_91 = lean_usize_of_nat(x_90); +lean_dec(x_90); +x_92 = 0; +x_93 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_91, x_92, x_89); +x_94 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_94, 0, x_2); +lean_ctor_set(x_94, 1, x_4); +lean_ctor_set(x_94, 2, x_93); +x_95 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_94, x_84, x_6, x_87); lean_dec(x_84); -x_87 = l_Lean_PersistentArray_toArray___rarg(x_86); -x_88 = lean_array_get_size(x_87); -x_89 = lean_usize_of_nat(x_88); -lean_dec(x_88); -x_90 = 0; -x_91 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_89, x_90, x_87); -x_92 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_92, 0, x_2); -lean_ctor_set(x_92, 1, x_4); -lean_ctor_set(x_92, 2, x_91); -x_93 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_92, x_82, x_6, x_85); -lean_dec(x_82); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_st_ref_take(x_6, x_95); -x_97 = lean_ctor_get(x_96, 0); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_99 = x_96; -} else { - lean_dec_ref(x_96); - x_99 = lean_box(0); -} -x_100 = lean_ctor_get(x_97, 0); +lean_dec(x_95); +x_98 = lean_st_ref_take(x_6, x_97); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_97, 1); -lean_inc(x_101); -x_102 = lean_ctor_get(x_97, 2); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = lean_ctor_get(x_99, 0); lean_inc(x_102); -x_103 = lean_ctor_get(x_97, 3); +x_103 = lean_ctor_get(x_99, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_97, 4); +x_104 = lean_ctor_get(x_99, 2); lean_inc(x_104); -x_105 = lean_ctor_get(x_97, 5); +x_105 = lean_ctor_get(x_99, 3); lean_inc(x_105); -x_106 = lean_ctor_get(x_97, 6); +x_106 = lean_ctor_get(x_99, 4); lean_inc(x_106); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - lean_ctor_release(x_97, 2); - lean_ctor_release(x_97, 3); - lean_ctor_release(x_97, 4); - lean_ctor_release(x_97, 5); - lean_ctor_release(x_97, 6); - lean_ctor_release(x_97, 7); - x_107 = x_97; +x_107 = lean_ctor_get(x_99, 5); +lean_inc(x_107); +x_108 = lean_ctor_get(x_99, 6); +lean_inc(x_108); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + lean_ctor_release(x_99, 2); + lean_ctor_release(x_99, 3); + lean_ctor_release(x_99, 4); + lean_ctor_release(x_99, 5); + lean_ctor_release(x_99, 6); + lean_ctor_release(x_99, 7); + x_109 = x_99; } else { - lean_dec_ref(x_97); - x_107 = lean_box(0); + lean_dec_ref(x_99); + x_109 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_108 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_101)) { + x_110 = lean_alloc_ctor(0, 2, 0); } else { - x_108 = x_99; + x_110 = x_101; } -lean_ctor_set(x_108, 0, x_3); -lean_ctor_set(x_108, 1, x_94); -x_109 = l_Lean_PersistentArray_push___rarg(x_1, x_108); -if (lean_is_scalar(x_107)) { - x_110 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_110, 0, x_3); +lean_ctor_set(x_110, 1, x_96); +x_111 = l_Lean_PersistentArray_push___rarg(x_1, x_110); +if (lean_is_scalar(x_109)) { + x_112 = lean_alloc_ctor(0, 8, 0); } else { - x_110 = x_107; + x_112 = x_109; } -lean_ctor_set(x_110, 0, x_100); -lean_ctor_set(x_110, 1, x_101); -lean_ctor_set(x_110, 2, x_102); -lean_ctor_set(x_110, 3, x_103); -lean_ctor_set(x_110, 4, x_104); -lean_ctor_set(x_110, 5, x_105); -lean_ctor_set(x_110, 6, x_106); -lean_ctor_set(x_110, 7, x_109); -x_111 = lean_st_ref_set(x_6, x_110, x_98); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; -} else { - lean_dec_ref(x_111); - x_113 = lean_box(0); -} -x_114 = lean_box(0); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_112, 0, x_102); +lean_ctor_set(x_112, 1, x_103); +lean_ctor_set(x_112, 2, x_104); +lean_ctor_set(x_112, 3, x_105); +lean_ctor_set(x_112, 4, x_106); +lean_ctor_set(x_112, 5, x_107); +lean_ctor_set(x_112, 6, x_108); +lean_ctor_set(x_112, 7, x_111); +x_113 = lean_st_ref_set(x_6, x_112, x_100); +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); x_115 = x_113; +} else { + lean_dec_ref(x_113); + x_115 = lean_box(0); } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; +x_116 = lean_box(0); +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_115; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_114); +return x_117; } } } @@ -14811,7 +14001,7 @@ lean_dec(x_8); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); -x_12 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3; +x_12 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3; x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runLinters___lambda__2), 5, 2); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_12); @@ -14832,6 +14022,19 @@ lean_dec(x_11); return x_21; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_runLinters___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: { @@ -14839,8 +14042,6 @@ uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); x_8 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_1); return x_8; } } @@ -15243,7 +14444,7 @@ return x_16; } else { -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_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; uint8_t x_26; lean_object* x_27; lean_object* x_28; x_17 = lean_ctor_get(x_2, 0); x_18 = lean_ctor_get(x_2, 1); x_19 = lean_ctor_get(x_2, 2); @@ -15252,6 +14453,9 @@ x_21 = lean_ctor_get(x_2, 4); x_22 = lean_ctor_get(x_2, 6); x_23 = lean_ctor_get(x_2, 7); x_24 = lean_ctor_get(x_2, 8); +x_25 = lean_ctor_get(x_2, 9); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -15261,71 +14465,76 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_2); -x_25 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_18); -lean_ctor_set(x_25, 2, x_19); -lean_ctor_set(x_25, 3, x_20); -lean_ctor_set(x_25, 4, x_21); -lean_ctor_set(x_25, 5, x_9); -lean_ctor_set(x_25, 6, x_22); -lean_ctor_set(x_25, 7, x_23); -lean_ctor_set(x_25, 8, x_24); -x_26 = lean_apply_3(x_1, x_25, x_3, x_13); -return x_26; +x_27 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_27, 0, x_17); +lean_ctor_set(x_27, 1, x_18); +lean_ctor_set(x_27, 2, x_19); +lean_ctor_set(x_27, 3, x_20); +lean_ctor_set(x_27, 4, x_21); +lean_ctor_set(x_27, 5, x_9); +lean_ctor_set(x_27, 6, x_22); +lean_ctor_set(x_27, 7, x_23); +lean_ctor_set(x_27, 8, x_24); +lean_ctor_set(x_27, 9, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_26); +x_28 = lean_apply_3(x_1, x_27, x_3, x_13); +return x_28; } } else { -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; -x_27 = lean_ctor_get(x_6, 0); -x_28 = lean_ctor_get(x_6, 1); -x_29 = lean_ctor_get(x_6, 2); -x_30 = lean_ctor_get(x_6, 3); -x_31 = lean_ctor_get(x_6, 4); -x_32 = lean_ctor_get(x_6, 5); -x_33 = lean_ctor_get(x_6, 6); -x_34 = lean_ctor_get(x_6, 7); +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; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_29 = lean_ctor_get(x_6, 0); +x_30 = lean_ctor_get(x_6, 1); +x_31 = lean_ctor_get(x_6, 2); +x_32 = lean_ctor_get(x_6, 3); +x_33 = lean_ctor_get(x_6, 4); +x_34 = lean_ctor_get(x_6, 5); +x_35 = lean_ctor_get(x_6, 6); +x_36 = lean_ctor_get(x_6, 7); +lean_inc(x_36); +lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); lean_dec(x_6); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_30, x_35); -x_37 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_37, 0, x_27); -lean_ctor_set(x_37, 1, x_28); -lean_ctor_set(x_37, 2, x_29); -lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_31); -lean_ctor_set(x_37, 5, x_32); -lean_ctor_set(x_37, 6, x_33); -lean_ctor_set(x_37, 7, x_34); -x_38 = lean_st_ref_set(x_3, x_37, x_7); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = lean_ctor_get(x_2, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_2, 1); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_32, x_37); +x_39 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +lean_ctor_set(x_39, 2, x_31); +lean_ctor_set(x_39, 3, x_38); +lean_ctor_set(x_39, 4, x_33); +lean_ctor_set(x_39, 5, x_34); +lean_ctor_set(x_39, 6, x_35); +lean_ctor_set(x_39, 7, x_36); +x_40 = lean_st_ref_set(x_3, x_39, x_7); +x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_2, 2); +lean_dec(x_40); +x_42 = lean_ctor_get(x_2, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_2, 3); +x_43 = lean_ctor_get(x_2, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_2, 4); +x_44 = lean_ctor_get(x_2, 2); lean_inc(x_44); -x_45 = lean_ctor_get(x_2, 6); +x_45 = lean_ctor_get(x_2, 3); lean_inc(x_45); -x_46 = lean_ctor_get(x_2, 7); +x_46 = lean_ctor_get(x_2, 4); lean_inc(x_46); -x_47 = lean_ctor_get(x_2, 8); +x_47 = lean_ctor_get(x_2, 6); lean_inc(x_47); +x_48 = lean_ctor_get(x_2, 7); +lean_inc(x_48); +x_49 = lean_ctor_get(x_2, 8); +lean_inc(x_49); +x_50 = lean_ctor_get(x_2, 9); +lean_inc(x_50); +x_51 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -15336,27 +14545,30 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 6); lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); - x_48 = x_2; + lean_ctor_release(x_2, 9); + x_52 = x_2; } else { lean_dec_ref(x_2); - x_48 = lean_box(0); + x_52 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 9, 0); +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 10, 1); } else { - x_49 = x_48; + x_53 = x_52; } -lean_ctor_set(x_49, 0, x_40); -lean_ctor_set(x_49, 1, x_41); -lean_ctor_set(x_49, 2, x_42); -lean_ctor_set(x_49, 3, x_43); -lean_ctor_set(x_49, 4, x_44); -lean_ctor_set(x_49, 5, x_30); -lean_ctor_set(x_49, 6, x_45); -lean_ctor_set(x_49, 7, x_46); -lean_ctor_set(x_49, 8, x_47); -x_50 = lean_apply_3(x_1, x_49, x_3, x_39); -return x_50; +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_44); +lean_ctor_set(x_53, 3, x_45); +lean_ctor_set(x_53, 4, x_46); +lean_ctor_set(x_53, 5, x_32); +lean_ctor_set(x_53, 6, x_47); +lean_ctor_set(x_53, 7, x_48); +lean_ctor_set(x_53, 8, x_49); +lean_ctor_set(x_53, 9, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*10, x_51); +x_54 = lean_apply_3(x_1, x_53, x_3, x_41); +return x_54; } } } @@ -15464,9 +14676,9 @@ static lean_object* _init_l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } @@ -15483,9 +14695,9 @@ static lean_object* _init_l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_4 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -15512,7 +14724,7 @@ x_8 = l_Lean_Elab_mkElabAttribute___rarg(x_3, x_4, x_5, x_6, x_7, x_1, x_2); return x_8; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1() { _start: { lean_object* x_1; @@ -15520,23 +14732,23 @@ x_1 = lean_mk_string_from_bytes("commandElabAttribute", 20); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__2; x_3 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe(x_2, x_1); return x_3; } @@ -16430,7 +15642,7 @@ x_9 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___clos x_10 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); -x_11 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_11 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; x_12 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -16479,53 +15691,17 @@ return x_24; } else { -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -uint8_t x_26; -lean_dec(x_18); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_24, 0); -lean_dec(x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_24); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_24, 1); -x_32 = lean_ctor_get(x_24, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_25, 0); -lean_inc(x_33); -x_34 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__5; -x_35 = lean_nat_dec_eq(x_34, x_33); -lean_dec(x_33); -if (x_35 == 0) +if (lean_obj_tag(x_26) == 0) { lean_dec(x_18); lean_dec(x_5); @@ -16536,58 +15712,121 @@ return x_24; } else { -lean_object* x_36; lean_object* x_37; +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_26, 0); +lean_inc(x_29); +x_30 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__5; +x_31 = lean_nat_dec_eq(x_30, x_29); +lean_dec(x_29); +if (x_31 == 0) +{ +lean_dec(x_18); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_24; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_free_object(x_24); -lean_dec(x_25); +lean_dec(x_26); lean_inc(x_1); -x_36 = lean_st_ref_set(x_5, x_1, x_31); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); +x_32 = lean_st_ref_set(x_5, x_1, x_27); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); x_3 = x_18; -x_6 = x_37; +x_6 = x_33; goto _start; } } +} else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_39); -lean_dec(x_24); -x_40 = lean_ctor_get(x_25, 0); -lean_inc(x_40); -x_41 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__5; -x_42 = lean_nat_dec_eq(x_41, x_40); -lean_dec(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_dec(x_18); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_25); -lean_ctor_set(x_43, 1, x_39); -return x_43; +return x_24; +} } else { -lean_object* x_44; lean_object* x_45; -lean_dec(x_25); +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_24, 0); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_24); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_38; +lean_dec(x_18); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_35, 0); +lean_inc(x_39); +x_40 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__5; +x_41 = lean_nat_dec_eq(x_40, x_39); +lean_dec(x_39); +if (x_41 == 0) +{ +lean_object* x_42; +lean_dec(x_18); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_35); +lean_ctor_set(x_42, 1, x_36); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_35); lean_inc(x_1); -x_44 = lean_st_ref_set(x_5, x_1, x_39); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); +x_43 = lean_st_ref_set(x_5, x_1, x_36); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); x_3 = x_18; -x_6 = x_45; +x_6 = x_44; goto _start; } } } +else +{ +lean_object* x_46; +lean_dec(x_18); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +return x_46; +} +} } } } @@ -17101,7 +16340,7 @@ return x_11; } else { -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_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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_12 = lean_ctor_get(x_4, 0); x_13 = lean_ctor_get(x_4, 1); x_14 = lean_ctor_get(x_4, 2); @@ -17111,6 +16350,9 @@ x_17 = lean_ctor_get(x_4, 5); x_18 = lean_ctor_get(x_4, 6); x_19 = lean_ctor_get(x_4, 7); x_20 = lean_ctor_get(x_4, 8); +x_21 = lean_ctor_get(x_4, 9); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -17121,24 +16363,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_21, 1, x_2); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_16); -x_23 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_23, 0, x_12); -lean_ctor_set(x_23, 1, x_13); -lean_ctor_set(x_23, 2, x_14); -lean_ctor_set(x_23, 3, x_15); -lean_ctor_set(x_23, 4, x_22); -lean_ctor_set(x_23, 5, x_17); -lean_ctor_set(x_23, 6, x_18); -lean_ctor_set(x_23, 7, x_19); -lean_ctor_set(x_23, 8, x_20); -x_24 = lean_apply_3(x_3, x_23, x_5, x_6); -return x_24; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_2); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_16); +x_25 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_25, 0, x_12); +lean_ctor_set(x_25, 1, x_13); +lean_ctor_set(x_25, 2, x_14); +lean_ctor_set(x_25, 3, x_15); +lean_ctor_set(x_25, 4, x_24); +lean_ctor_set(x_25, 5, x_17); +lean_ctor_set(x_25, 6, x_18); +lean_ctor_set(x_25, 7, x_19); +lean_ctor_set(x_25, 8, x_20); +lean_ctor_set(x_25, 9, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*10, x_22); +x_26 = lean_apply_3(x_3, x_25, x_5, x_6); +return x_26; } } } @@ -17395,7 +16639,7 @@ 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; lean_object* x_19; +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; x_10 = lean_ctor_get(x_4, 0); x_11 = lean_ctor_get(x_4, 1); x_12 = lean_ctor_get(x_4, 3); @@ -17404,6 +16648,9 @@ x_14 = lean_ctor_get(x_4, 5); x_15 = lean_ctor_get(x_4, 6); x_16 = lean_ctor_get(x_4, 7); x_17 = lean_ctor_get(x_4, 8); +x_18 = lean_ctor_get(x_4, 9); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); @@ -17413,18 +16660,20 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_4); -x_18 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_11); -lean_ctor_set(x_18, 2, x_2); -lean_ctor_set(x_18, 3, x_12); -lean_ctor_set(x_18, 4, x_13); -lean_ctor_set(x_18, 5, x_14); -lean_ctor_set(x_18, 6, x_15); -lean_ctor_set(x_18, 7, x_16); -lean_ctor_set(x_18, 8, x_17); -x_19 = lean_apply_3(x_3, x_18, x_5, x_6); -return x_19; +x_20 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_11); +lean_ctor_set(x_20, 2, x_2); +lean_ctor_set(x_20, 3, x_12); +lean_ctor_set(x_20, 4, x_13); +lean_ctor_set(x_20, 5, x_14); +lean_ctor_set(x_20, 6, x_15); +lean_ctor_set(x_20, 7, x_16); +lean_ctor_set(x_20, 8, x_17); +lean_ctor_set(x_20, 9, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*10, x_19); +x_21 = lean_apply_3(x_3, x_20, x_5, x_6); +return x_21; } } } @@ -17540,33 +16789,33 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; x_2 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16; -x_2 = lean_unsigned_to_nat(2878u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16; +x_2 = lean_unsigned_to_nat(3024u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -17607,45 +16856,45 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_576; uint8_t x_577; -x_576 = 2; -x_577 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_576); -if (x_577 == 0) +lean_object* x_7; uint8_t x_150; uint8_t x_151; +x_150 = 2; +x_151 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_150); +if (x_151 == 0) { -lean_object* x_578; -x_578 = lean_box(0); -x_7 = x_578; -goto block_575; +lean_object* x_152; +x_152 = lean_box(0); +x_7 = x_152; +goto block_149; } else { -lean_object* x_579; uint8_t x_580; +lean_object* x_153; uint8_t x_154; lean_inc(x_2); -x_579 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_580 = lean_unbox(x_579); -lean_dec(x_579); -if (x_580 == 0) +x_153 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_154 = lean_unbox(x_153); +lean_dec(x_153); +if (x_154 == 0) { -lean_object* x_581; -x_581 = lean_box(0); -x_7 = x_581; -goto block_575; +lean_object* x_155; +x_155 = lean_box(0); +x_7 = x_155; +goto block_149; } else { -lean_object* x_582; lean_object* x_583; +lean_object* x_156; lean_object* x_157; lean_dec(x_4); lean_dec(x_2); -x_582 = lean_box(0); -x_583 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_583, 0, x_582); -lean_ctor_set(x_583, 1, x_6); -return x_583; +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_6); +return x_157; } } -block_575: +block_149: { -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; uint8_t x_15; uint8_t x_570; uint8_t x_571; +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; uint8_t x_15; uint8_t x_144; uint8_t x_145; lean_dec(x_7); x_8 = lean_st_ref_get(x_5, x_6); x_9 = lean_ctor_get(x_8, 0); @@ -17662,34 +16911,34 @@ lean_dec(x_11); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_570 = 1; -x_571 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_570); -if (x_571 == 0) +x_144 = 1; +x_145 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_144); +if (x_145 == 0) { lean_dec(x_14); x_15 = x_3; -goto block_569; +goto block_143; } else { -lean_object* x_572; uint8_t x_573; -x_572 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___closed__1; -x_573 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_14, x_572); +lean_object* x_146; uint8_t x_147; +x_146 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___closed__1; +x_147 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_14, x_146); lean_dec(x_14); -if (x_573 == 0) +if (x_147 == 0) { x_15 = x_3; -goto block_569; +goto block_143; } else { -uint8_t x_574; -x_574 = 2; -x_15 = x_574; -goto block_569; +uint8_t x_148; +x_148 = 2; +x_15 = x_148; +goto block_143; } } -block_569: +block_143: { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_16 = l_Lean_Elab_Command_getRef(x_4, x_5, x_10); @@ -17707,876 +16956,185 @@ if (lean_obj_tag(x_21) == 0) { if (lean_obj_tag(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; uint8_t x_32; +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; x_23 = lean_ctor_get(x_4, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_4, 1); lean_inc(x_24); -x_25 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); -lean_dec(x_4); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_26 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (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; +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_unsigned_to_nat(0u); -x_29 = l_Lean_FileMap_toPosition(x_24, x_28); -lean_inc(x_29); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_Elab_Command_getScope___rarg(x_5, x_27); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Lean_FileMap_toPosition(x_24, x_29); +lean_inc(x_30); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_box(0); +x_33 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_27, x_23, x_30, x_31, x_15, x_32, x_4, x_5, x_28); +lean_dec(x_4); +return x_33; +} +else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -x_35 = lean_ctor_get(x_33, 2); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Lean_Elab_Command_getScope___rarg(x_5, x_34); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +uint8_t x_34; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 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; uint8_t x_46; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -x_40 = lean_ctor_get(x_38, 3); -lean_inc(x_40); -lean_dec(x_38); -lean_ctor_set(x_36, 1, x_40); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set_tag(x_31, 3); -lean_ctor_set(x_31, 1, x_26); -lean_ctor_set(x_31, 0, x_36); -x_41 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_42 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_42, 0, x_23); -lean_ctor_set(x_42, 1, x_29); -lean_ctor_set(x_42, 2, x_30); -lean_ctor_set(x_42, 3, x_41); -lean_ctor_set(x_42, 4, x_31); -lean_ctor_set_uint8(x_42, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_42, sizeof(void*)*5 + 1, x_15); -x_43 = lean_st_ref_take(x_5, x_39); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 0); +lean_dec(x_35); +x_36 = lean_box(0); +lean_ctor_set(x_26, 0, x_36); +return x_26; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_dec(x_26); +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_37); +return x_39; +} +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_22); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_22, 0); +x_42 = lean_ctor_get(x_4, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_4, 1); +lean_inc(x_43); +x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_45 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_44 == 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; lean_object* x_52; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_unsigned_to_nat(0u); +lean_inc(x_43); +x_49 = l_Lean_FileMap_toPosition(x_43, x_48); +x_50 = l_Lean_FileMap_toPosition(x_43, x_41); +lean_dec(x_41); +lean_ctor_set(x_22, 0, x_50); +x_51 = lean_box(0); +x_52 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_46, x_42, x_49, x_22, x_15, x_51, x_4, x_5, x_47); +lean_dec(x_4); +return x_52; +} +else +{ +uint8_t x_53; lean_dec(x_43); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) +lean_dec(x_42); +lean_free_object(x_22); +lean_dec(x_41); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_45); +if (x_53 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_44, 1); -x_48 = l_Lean_PersistentArray_push___rarg(x_47, x_42); -lean_ctor_set(x_44, 1, x_48); -x_49 = lean_st_ref_set(x_5, x_44, x_45); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -x_52 = lean_box(0); -lean_ctor_set(x_49, 0, x_52); -return x_49; +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_45, 0); +lean_dec(x_54); +x_55 = lean_box(0); +lean_ctor_set(x_45, 0, x_55); +return x_45; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_49, 1); -lean_inc(x_53); -lean_dec(x_49); -x_54 = lean_box(0); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -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; 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_56 = lean_ctor_get(x_44, 0); -x_57 = lean_ctor_get(x_44, 1); -x_58 = lean_ctor_get(x_44, 2); -x_59 = lean_ctor_get(x_44, 3); -x_60 = lean_ctor_get(x_44, 4); -x_61 = lean_ctor_get(x_44, 5); -x_62 = lean_ctor_get(x_44, 6); -x_63 = lean_ctor_get(x_44, 7); -lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_45, 1); lean_inc(x_56); -lean_dec(x_44); -x_64 = l_Lean_PersistentArray_push___rarg(x_57, x_42); -x_65 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_65, 0, x_56); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set(x_65, 2, x_58); -lean_ctor_set(x_65, 3, x_59); -lean_ctor_set(x_65, 4, x_60); -lean_ctor_set(x_65, 5, x_61); -lean_ctor_set(x_65, 6, x_62); -lean_ctor_set(x_65, 7, x_63); -x_66 = lean_st_ref_set(x_5, x_65, x_45); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); +lean_dec(x_45); +x_57 = lean_box(0); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +return x_58; } -x_69 = lean_box(0); -if (lean_is_scalar(x_68)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_68; -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_67); -return x_70; } } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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_71 = lean_ctor_get(x_36, 0); -x_72 = lean_ctor_get(x_36, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_36); -x_73 = lean_ctor_get(x_71, 3); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_35); -lean_ctor_set(x_74, 1, x_73); -lean_ctor_set_tag(x_31, 3); -lean_ctor_set(x_31, 1, x_26); -lean_ctor_set(x_31, 0, x_74); -x_75 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_76 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_76, 0, x_23); -lean_ctor_set(x_76, 1, x_29); -lean_ctor_set(x_76, 2, x_30); -lean_ctor_set(x_76, 3, x_75); -lean_ctor_set(x_76, 4, x_31); -lean_ctor_set_uint8(x_76, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_76, sizeof(void*)*5 + 1, x_15); -x_77 = lean_st_ref_take(x_5, x_72); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_ctor_get(x_78, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -x_82 = lean_ctor_get(x_78, 2); -lean_inc(x_82); -x_83 = lean_ctor_get(x_78, 3); -lean_inc(x_83); -x_84 = lean_ctor_get(x_78, 4); -lean_inc(x_84); -x_85 = lean_ctor_get(x_78, 5); -lean_inc(x_85); -x_86 = lean_ctor_get(x_78, 6); -lean_inc(x_86); -x_87 = lean_ctor_get(x_78, 7); -lean_inc(x_87); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - lean_ctor_release(x_78, 2); - lean_ctor_release(x_78, 3); - lean_ctor_release(x_78, 4); - lean_ctor_release(x_78, 5); - lean_ctor_release(x_78, 6); - lean_ctor_release(x_78, 7); - x_88 = x_78; -} else { - lean_dec_ref(x_78); - x_88 = lean_box(0); -} -x_89 = l_Lean_PersistentArray_push___rarg(x_81, x_76); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 8, 0); -} else { - x_90 = x_88; -} -lean_ctor_set(x_90, 0, x_80); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_90, 2, x_82); -lean_ctor_set(x_90, 3, x_83); -lean_ctor_set(x_90, 4, x_84); -lean_ctor_set(x_90, 5, x_85); -lean_ctor_set(x_90, 6, x_86); -lean_ctor_set(x_90, 7, x_87); -x_91 = lean_st_ref_set(x_5, x_90, x_79); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; -} else { - lean_dec_ref(x_91); - x_93 = lean_box(0); -} -x_94 = lean_box(0); -if (lean_is_scalar(x_93)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_93; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_92); -return x_95; -} -} -else -{ -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; 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_96 = lean_ctor_get(x_31, 0); -x_97 = lean_ctor_get(x_31, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_31); -x_98 = lean_ctor_get(x_96, 2); -lean_inc(x_98); -lean_dec(x_96); -x_99 = l_Lean_Elab_Command_getScope___rarg(x_5, x_97); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_102 = x_99; -} else { - lean_dec_ref(x_99); - x_102 = lean_box(0); -} -x_103 = lean_ctor_get(x_100, 3); -lean_inc(x_103); -lean_dec(x_100); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_102; -} -lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_26); -x_106 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_107 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_107, 0, x_23); -lean_ctor_set(x_107, 1, x_29); -lean_ctor_set(x_107, 2, x_30); -lean_ctor_set(x_107, 3, x_106); -lean_ctor_set(x_107, 4, x_105); -lean_ctor_set_uint8(x_107, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_107, sizeof(void*)*5 + 1, x_15); -x_108 = lean_st_ref_take(x_5, x_101); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = lean_ctor_get(x_109, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -x_113 = lean_ctor_get(x_109, 2); -lean_inc(x_113); -x_114 = lean_ctor_get(x_109, 3); -lean_inc(x_114); -x_115 = lean_ctor_get(x_109, 4); -lean_inc(x_115); -x_116 = lean_ctor_get(x_109, 5); -lean_inc(x_116); -x_117 = lean_ctor_get(x_109, 6); -lean_inc(x_117); -x_118 = lean_ctor_get(x_109, 7); -lean_inc(x_118); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - lean_ctor_release(x_109, 2); - lean_ctor_release(x_109, 3); - lean_ctor_release(x_109, 4); - lean_ctor_release(x_109, 5); - lean_ctor_release(x_109, 6); - lean_ctor_release(x_109, 7); - x_119 = x_109; -} else { - lean_dec_ref(x_109); - x_119 = lean_box(0); -} -x_120 = l_Lean_PersistentArray_push___rarg(x_112, x_107); -if (lean_is_scalar(x_119)) { - x_121 = lean_alloc_ctor(0, 8, 0); -} else { - x_121 = x_119; -} -lean_ctor_set(x_121, 0, x_111); -lean_ctor_set(x_121, 1, x_120); -lean_ctor_set(x_121, 2, x_113); -lean_ctor_set(x_121, 3, x_114); -lean_ctor_set(x_121, 4, x_115); -lean_ctor_set(x_121, 5, x_116); -lean_ctor_set(x_121, 6, x_117); -lean_ctor_set(x_121, 7, x_118); -x_122 = lean_st_ref_set(x_5, x_121, x_110); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); -} -x_125 = lean_box(0); -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -return x_126; -} -} -else -{ -uint8_t x_127; -x_127 = !lean_is_exclusive(x_22); -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_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_128 = lean_ctor_get(x_22, 0); -x_129 = lean_ctor_get(x_4, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_4, 1); -lean_inc(x_130); -x_131 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); -lean_dec(x_4); -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 = lean_unsigned_to_nat(0u); -lean_inc(x_130); -x_135 = l_Lean_FileMap_toPosition(x_130, x_134); -x_136 = l_Lean_FileMap_toPosition(x_130, x_128); -lean_dec(x_128); -lean_ctor_set(x_22, 0, x_136); -x_137 = l_Lean_Elab_Command_getScope___rarg(x_5, x_133); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_139 = lean_ctor_get(x_137, 0); -x_140 = lean_ctor_get(x_137, 1); -x_141 = lean_ctor_get(x_139, 2); -lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_Elab_Command_getScope___rarg(x_5, x_140); -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 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; uint8_t x_152; -x_144 = lean_ctor_get(x_142, 0); -x_145 = lean_ctor_get(x_142, 1); -x_146 = lean_ctor_get(x_144, 3); -lean_inc(x_146); -lean_dec(x_144); -lean_ctor_set(x_142, 1, x_146); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set_tag(x_137, 3); -lean_ctor_set(x_137, 1, x_132); -lean_ctor_set(x_137, 0, x_142); -x_147 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_148 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_148, 0, x_129); -lean_ctor_set(x_148, 1, x_135); -lean_ctor_set(x_148, 2, x_22); -lean_ctor_set(x_148, 3, x_147); -lean_ctor_set(x_148, 4, x_137); -lean_ctor_set_uint8(x_148, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_148, sizeof(void*)*5 + 1, x_15); -x_149 = lean_st_ref_take(x_5, x_145); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = !lean_is_exclusive(x_150); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; -x_153 = lean_ctor_get(x_150, 1); -x_154 = l_Lean_PersistentArray_push___rarg(x_153, x_148); -lean_ctor_set(x_150, 1, x_154); -x_155 = lean_st_ref_set(x_5, x_150, x_151); -x_156 = !lean_is_exclusive(x_155); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; -x_157 = lean_ctor_get(x_155, 0); -lean_dec(x_157); -x_158 = lean_box(0); -lean_ctor_set(x_155, 0, x_158); -return x_155; -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_155, 1); -lean_inc(x_159); -lean_dec(x_155); -x_160 = lean_box(0); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -return x_161; -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_162 = lean_ctor_get(x_150, 0); -x_163 = lean_ctor_get(x_150, 1); -x_164 = lean_ctor_get(x_150, 2); -x_165 = lean_ctor_get(x_150, 3); -x_166 = lean_ctor_get(x_150, 4); -x_167 = lean_ctor_get(x_150, 5); -x_168 = lean_ctor_get(x_150, 6); -x_169 = lean_ctor_get(x_150, 7); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); -lean_inc(x_166); -lean_inc(x_165); -lean_inc(x_164); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_150); -x_170 = l_Lean_PersistentArray_push___rarg(x_163, x_148); -x_171 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_171, 0, x_162); -lean_ctor_set(x_171, 1, x_170); -lean_ctor_set(x_171, 2, x_164); -lean_ctor_set(x_171, 3, x_165); -lean_ctor_set(x_171, 4, x_166); -lean_ctor_set(x_171, 5, x_167); -lean_ctor_set(x_171, 6, x_168); -lean_ctor_set(x_171, 7, x_169); -x_172 = lean_st_ref_set(x_5, x_171, x_151); -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_174 = x_172; -} else { - lean_dec_ref(x_172); - x_174 = lean_box(0); -} -x_175 = lean_box(0); -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 2, 0); -} else { - x_176 = x_174; -} -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_173); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 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; -x_177 = lean_ctor_get(x_142, 0); -x_178 = lean_ctor_get(x_142, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_142); -x_179 = lean_ctor_get(x_177, 3); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_141); -lean_ctor_set(x_180, 1, x_179); -lean_ctor_set_tag(x_137, 3); -lean_ctor_set(x_137, 1, x_132); -lean_ctor_set(x_137, 0, x_180); -x_181 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_182 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_182, 0, x_129); -lean_ctor_set(x_182, 1, x_135); -lean_ctor_set(x_182, 2, x_22); -lean_ctor_set(x_182, 3, x_181); -lean_ctor_set(x_182, 4, x_137); -lean_ctor_set_uint8(x_182, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_182, sizeof(void*)*5 + 1, x_15); -x_183 = lean_st_ref_take(x_5, x_178); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -lean_dec(x_183); -x_186 = lean_ctor_get(x_184, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -x_188 = lean_ctor_get(x_184, 2); -lean_inc(x_188); -x_189 = lean_ctor_get(x_184, 3); -lean_inc(x_189); -x_190 = lean_ctor_get(x_184, 4); -lean_inc(x_190); -x_191 = lean_ctor_get(x_184, 5); -lean_inc(x_191); -x_192 = lean_ctor_get(x_184, 6); -lean_inc(x_192); -x_193 = lean_ctor_get(x_184, 7); -lean_inc(x_193); -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); - lean_ctor_release(x_184, 4); - lean_ctor_release(x_184, 5); - lean_ctor_release(x_184, 6); - lean_ctor_release(x_184, 7); - x_194 = x_184; -} else { - lean_dec_ref(x_184); - x_194 = lean_box(0); -} -x_195 = l_Lean_PersistentArray_push___rarg(x_187, x_182); -if (lean_is_scalar(x_194)) { - x_196 = lean_alloc_ctor(0, 8, 0); -} else { - x_196 = x_194; -} -lean_ctor_set(x_196, 0, x_186); -lean_ctor_set(x_196, 1, x_195); -lean_ctor_set(x_196, 2, x_188); -lean_ctor_set(x_196, 3, x_189); -lean_ctor_set(x_196, 4, x_190); -lean_ctor_set(x_196, 5, x_191); -lean_ctor_set(x_196, 6, x_192); -lean_ctor_set(x_196, 7, x_193); -x_197 = lean_st_ref_set(x_5, x_196, x_185); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; -} else { - lean_dec_ref(x_197); - x_199 = lean_box(0); -} -x_200 = lean_box(0); -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_199; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_198); -return x_201; -} -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_202 = lean_ctor_get(x_137, 0); -x_203 = lean_ctor_get(x_137, 1); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_137); -x_204 = lean_ctor_get(x_202, 2); -lean_inc(x_204); -lean_dec(x_202); -x_205 = l_Lean_Elab_Command_getScope___rarg(x_5, x_203); -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - x_208 = x_205; -} else { - lean_dec_ref(x_205); - x_208 = lean_box(0); -} -x_209 = lean_ctor_get(x_206, 3); -lean_inc(x_209); -lean_dec(x_206); -if (lean_is_scalar(x_208)) { - x_210 = lean_alloc_ctor(0, 2, 0); -} else { - x_210 = x_208; -} -lean_ctor_set(x_210, 0, x_204); -lean_ctor_set(x_210, 1, x_209); -x_211 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_132); -x_212 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_213 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_213, 0, x_129); -lean_ctor_set(x_213, 1, x_135); -lean_ctor_set(x_213, 2, x_22); -lean_ctor_set(x_213, 3, x_212); -lean_ctor_set(x_213, 4, x_211); -lean_ctor_set_uint8(x_213, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_213, sizeof(void*)*5 + 1, x_15); -x_214 = lean_st_ref_take(x_5, x_207); -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); -x_218 = lean_ctor_get(x_215, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_215, 2); -lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 3); -lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 4); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 5); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 6); -lean_inc(x_223); -x_224 = lean_ctor_get(x_215, 7); -lean_inc(x_224); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - lean_ctor_release(x_215, 6); - lean_ctor_release(x_215, 7); - x_225 = x_215; -} else { - lean_dec_ref(x_215); - x_225 = lean_box(0); -} -x_226 = l_Lean_PersistentArray_push___rarg(x_218, x_213); -if (lean_is_scalar(x_225)) { - x_227 = lean_alloc_ctor(0, 8, 0); -} else { - x_227 = x_225; -} -lean_ctor_set(x_227, 0, x_217); -lean_ctor_set(x_227, 1, x_226); -lean_ctor_set(x_227, 2, x_219); -lean_ctor_set(x_227, 3, x_220); -lean_ctor_set(x_227, 4, x_221); -lean_ctor_set(x_227, 5, x_222); -lean_ctor_set(x_227, 6, x_223); -lean_ctor_set(x_227, 7, x_224); -x_228 = lean_st_ref_set(x_5, x_227, x_216); -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_230 = x_228; -} else { - lean_dec_ref(x_228); - x_230 = lean_box(0); -} -x_231 = lean_box(0); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(0, 2, 0); -} else { - x_232 = x_230; -} -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_229); -return x_232; -} -} -else -{ -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; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_233 = lean_ctor_get(x_22, 0); -lean_inc(x_233); +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_22, 0); +lean_inc(x_59); lean_dec(x_22); -x_234 = lean_ctor_get(x_4, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_4, 1); -lean_inc(x_235); -x_236 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_60 = lean_ctor_get(x_4, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 1); +lean_inc(x_61); +x_62 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_63 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_62 == 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 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_unsigned_to_nat(0u); +lean_inc(x_61); +x_67 = l_Lean_FileMap_toPosition(x_61, x_66); +x_68 = l_Lean_FileMap_toPosition(x_61, x_59); +lean_dec(x_59); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_box(0); +x_71 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_64, x_60, x_67, x_69, x_15, x_70, x_4, x_5, x_65); lean_dec(x_4); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -x_239 = lean_unsigned_to_nat(0u); -lean_inc(x_235); -x_240 = l_Lean_FileMap_toPosition(x_235, x_239); -x_241 = l_Lean_FileMap_toPosition(x_235, x_233); -lean_dec(x_233); -x_242 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_242, 0, x_241); -x_243 = l_Lean_Elab_Command_getScope___rarg(x_5, x_238); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); -lean_inc(x_245); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_246 = x_243; -} else { - lean_dec_ref(x_243); - x_246 = lean_box(0); +return x_71; } -x_247 = lean_ctor_get(x_244, 2); -lean_inc(x_247); -lean_dec(x_244); -x_248 = l_Lean_Elab_Command_getScope___rarg(x_5, x_245); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_4); +x_72 = lean_ctor_get(x_63, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_73 = x_63; } else { - lean_dec_ref(x_248); - x_251 = lean_box(0); + lean_dec_ref(x_63); + x_73 = lean_box(0); } -x_252 = lean_ctor_get(x_249, 3); -lean_inc(x_252); -lean_dec(x_249); -if (lean_is_scalar(x_251)) { - x_253 = lean_alloc_ctor(0, 2, 0); +x_74 = lean_box(0); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_253 = x_251; + x_75 = x_73; } -lean_ctor_set(x_253, 0, x_247); -lean_ctor_set(x_253, 1, x_252); -if (lean_is_scalar(x_246)) { - x_254 = lean_alloc_ctor(3, 2, 0); -} else { - x_254 = x_246; - lean_ctor_set_tag(x_254, 3); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_237); -x_255 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_256 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_256, 0, x_234); -lean_ctor_set(x_256, 1, x_240); -lean_ctor_set(x_256, 2, x_242); -lean_ctor_set(x_256, 3, x_255); -lean_ctor_set(x_256, 4, x_254); -lean_ctor_set_uint8(x_256, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_256, sizeof(void*)*5 + 1, x_15); -x_257 = lean_st_ref_take(x_5, x_250); -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_ctor_get(x_258, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_258, 1); -lean_inc(x_261); -x_262 = lean_ctor_get(x_258, 2); -lean_inc(x_262); -x_263 = lean_ctor_get(x_258, 3); -lean_inc(x_263); -x_264 = lean_ctor_get(x_258, 4); -lean_inc(x_264); -x_265 = lean_ctor_get(x_258, 5); -lean_inc(x_265); -x_266 = lean_ctor_get(x_258, 6); -lean_inc(x_266); -x_267 = lean_ctor_get(x_258, 7); -lean_inc(x_267); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - lean_ctor_release(x_258, 2); - lean_ctor_release(x_258, 3); - lean_ctor_release(x_258, 4); - lean_ctor_release(x_258, 5); - lean_ctor_release(x_258, 6); - lean_ctor_release(x_258, 7); - x_268 = x_258; -} else { - lean_dec_ref(x_258); - x_268 = lean_box(0); -} -x_269 = l_Lean_PersistentArray_push___rarg(x_261, x_256); -if (lean_is_scalar(x_268)) { - x_270 = lean_alloc_ctor(0, 8, 0); -} else { - x_270 = x_268; -} -lean_ctor_set(x_270, 0, x_260); -lean_ctor_set(x_270, 1, x_269); -lean_ctor_set(x_270, 2, x_262); -lean_ctor_set(x_270, 3, x_263); -lean_ctor_set(x_270, 4, x_264); -lean_ctor_set(x_270, 5, x_265); -lean_ctor_set(x_270, 6, x_266); -lean_ctor_set(x_270, 7, x_267); -x_271 = lean_st_ref_set(x_5, x_270, x_259); -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_273 = x_271; -} else { - lean_dec_ref(x_271); - x_273 = lean_box(0); -} -x_274 = lean_box(0); -if (lean_is_scalar(x_273)) { - x_275 = lean_alloc_ctor(0, 2, 0); -} else { - x_275 = x_273; -} -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_272); -return x_275; } } } @@ -18584,1033 +17142,255 @@ else { if (lean_obj_tag(x_22) == 0) { -uint8_t x_276; -x_276 = !lean_is_exclusive(x_21); -if (x_276 == 0) +uint8_t x_76; +x_76 = !lean_is_exclusive(x_21); +if (x_76 == 0) { -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; uint8_t x_285; -x_277 = lean_ctor_get(x_21, 0); -x_278 = lean_ctor_get(x_4, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_4, 1); -lean_inc(x_279); -x_280 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; +x_77 = lean_ctor_get(x_21, 0); +x_78 = lean_ctor_get(x_4, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_4, 1); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_81 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_80 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l_Lean_FileMap_toPosition(x_79, x_77); +lean_dec(x_77); +lean_inc(x_84); +lean_ctor_set(x_21, 0, x_84); +x_85 = lean_box(0); +x_86 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_82, x_78, x_84, x_21, x_15, x_85, x_4, x_5, x_83); lean_dec(x_4); -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_280, 1); -lean_inc(x_282); -lean_dec(x_280); -x_283 = l_Lean_FileMap_toPosition(x_279, x_277); -lean_dec(x_277); -lean_inc(x_283); -lean_ctor_set(x_21, 0, x_283); -x_284 = l_Lean_Elab_Command_getScope___rarg(x_5, x_282); -x_285 = !lean_is_exclusive(x_284); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; -x_286 = lean_ctor_get(x_284, 0); -x_287 = lean_ctor_get(x_284, 1); -x_288 = lean_ctor_get(x_286, 2); -lean_inc(x_288); -lean_dec(x_286); -x_289 = l_Lean_Elab_Command_getScope___rarg(x_5, x_287); -x_290 = !lean_is_exclusive(x_289); -if (x_290 == 0) -{ -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; uint8_t x_299; -x_291 = lean_ctor_get(x_289, 0); -x_292 = lean_ctor_get(x_289, 1); -x_293 = lean_ctor_get(x_291, 3); -lean_inc(x_293); -lean_dec(x_291); -lean_ctor_set(x_289, 1, x_293); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set_tag(x_284, 3); -lean_ctor_set(x_284, 1, x_281); -lean_ctor_set(x_284, 0, x_289); -x_294 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_295 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_295, 0, x_278); -lean_ctor_set(x_295, 1, x_283); -lean_ctor_set(x_295, 2, x_21); -lean_ctor_set(x_295, 3, x_294); -lean_ctor_set(x_295, 4, x_284); -lean_ctor_set_uint8(x_295, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_295, sizeof(void*)*5 + 1, x_15); -x_296 = lean_st_ref_take(x_5, x_292); -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_296, 1); -lean_inc(x_298); -lean_dec(x_296); -x_299 = !lean_is_exclusive(x_297); -if (x_299 == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; uint8_t x_303; -x_300 = lean_ctor_get(x_297, 1); -x_301 = l_Lean_PersistentArray_push___rarg(x_300, x_295); -lean_ctor_set(x_297, 1, x_301); -x_302 = lean_st_ref_set(x_5, x_297, x_298); -x_303 = !lean_is_exclusive(x_302); -if (x_303 == 0) -{ -lean_object* x_304; lean_object* x_305; -x_304 = lean_ctor_get(x_302, 0); -lean_dec(x_304); -x_305 = lean_box(0); -lean_ctor_set(x_302, 0, x_305); -return x_302; +return x_86; } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_306 = lean_ctor_get(x_302, 1); -lean_inc(x_306); -lean_dec(x_302); -x_307 = lean_box(0); -x_308 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_306); -return x_308; +uint8_t x_87; +lean_dec(x_79); +lean_dec(x_78); +lean_free_object(x_21); +lean_dec(x_77); +lean_dec(x_4); +x_87 = !lean_is_exclusive(x_81); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_81, 0); +lean_dec(x_88); +x_89 = lean_box(0); +lean_ctor_set(x_81, 0, x_89); +return x_81; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_81, 1); +lean_inc(x_90); +lean_dec(x_81); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +return x_92; +} } } else { -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; lean_object* x_323; -x_309 = lean_ctor_get(x_297, 0); -x_310 = lean_ctor_get(x_297, 1); -x_311 = lean_ctor_get(x_297, 2); -x_312 = lean_ctor_get(x_297, 3); -x_313 = lean_ctor_get(x_297, 4); -x_314 = lean_ctor_get(x_297, 5); -x_315 = lean_ctor_get(x_297, 6); -x_316 = lean_ctor_get(x_297, 7); -lean_inc(x_316); -lean_inc(x_315); -lean_inc(x_314); -lean_inc(x_313); -lean_inc(x_312); -lean_inc(x_311); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_297); -x_317 = l_Lean_PersistentArray_push___rarg(x_310, x_295); -x_318 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_318, 0, x_309); -lean_ctor_set(x_318, 1, x_317); -lean_ctor_set(x_318, 2, x_311); -lean_ctor_set(x_318, 3, x_312); -lean_ctor_set(x_318, 4, x_313); -lean_ctor_set(x_318, 5, x_314); -lean_ctor_set(x_318, 6, x_315); -lean_ctor_set(x_318, 7, x_316); -x_319 = lean_st_ref_set(x_5, x_318, x_298); -x_320 = lean_ctor_get(x_319, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_319)) { - lean_ctor_release(x_319, 0); - lean_ctor_release(x_319, 1); - x_321 = x_319; -} else { - lean_dec_ref(x_319); - x_321 = lean_box(0); -} -x_322 = lean_box(0); -if (lean_is_scalar(x_321)) { - x_323 = lean_alloc_ctor(0, 2, 0); -} else { - x_323 = x_321; -} -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_320); -return x_323; -} -} -else -{ -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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_324 = lean_ctor_get(x_289, 0); -x_325 = lean_ctor_get(x_289, 1); -lean_inc(x_325); -lean_inc(x_324); -lean_dec(x_289); -x_326 = lean_ctor_get(x_324, 3); -lean_inc(x_326); -lean_dec(x_324); -x_327 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_327, 0, x_288); -lean_ctor_set(x_327, 1, x_326); -lean_ctor_set_tag(x_284, 3); -lean_ctor_set(x_284, 1, x_281); -lean_ctor_set(x_284, 0, x_327); -x_328 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_329 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_329, 0, x_278); -lean_ctor_set(x_329, 1, x_283); -lean_ctor_set(x_329, 2, x_21); -lean_ctor_set(x_329, 3, x_328); -lean_ctor_set(x_329, 4, x_284); -lean_ctor_set_uint8(x_329, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_329, sizeof(void*)*5 + 1, x_15); -x_330 = lean_st_ref_take(x_5, x_325); -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); -lean_inc(x_332); -lean_dec(x_330); -x_333 = lean_ctor_get(x_331, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_331, 1); -lean_inc(x_334); -x_335 = lean_ctor_get(x_331, 2); -lean_inc(x_335); -x_336 = lean_ctor_get(x_331, 3); -lean_inc(x_336); -x_337 = lean_ctor_get(x_331, 4); -lean_inc(x_337); -x_338 = lean_ctor_get(x_331, 5); -lean_inc(x_338); -x_339 = lean_ctor_get(x_331, 6); -lean_inc(x_339); -x_340 = lean_ctor_get(x_331, 7); -lean_inc(x_340); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - lean_ctor_release(x_331, 2); - lean_ctor_release(x_331, 3); - lean_ctor_release(x_331, 4); - lean_ctor_release(x_331, 5); - lean_ctor_release(x_331, 6); - lean_ctor_release(x_331, 7); - x_341 = x_331; -} else { - lean_dec_ref(x_331); - x_341 = lean_box(0); -} -x_342 = l_Lean_PersistentArray_push___rarg(x_334, x_329); -if (lean_is_scalar(x_341)) { - x_343 = lean_alloc_ctor(0, 8, 0); -} else { - x_343 = x_341; -} -lean_ctor_set(x_343, 0, x_333); -lean_ctor_set(x_343, 1, x_342); -lean_ctor_set(x_343, 2, x_335); -lean_ctor_set(x_343, 3, x_336); -lean_ctor_set(x_343, 4, x_337); -lean_ctor_set(x_343, 5, x_338); -lean_ctor_set(x_343, 6, x_339); -lean_ctor_set(x_343, 7, x_340); -x_344 = lean_st_ref_set(x_5, x_343, x_332); -x_345 = lean_ctor_get(x_344, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - x_346 = x_344; -} else { - lean_dec_ref(x_344); - x_346 = lean_box(0); -} -x_347 = lean_box(0); -if (lean_is_scalar(x_346)) { - x_348 = lean_alloc_ctor(0, 2, 0); -} else { - x_348 = x_346; -} -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_345); -return x_348; -} -} -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; 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; 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; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_349 = lean_ctor_get(x_284, 0); -x_350 = lean_ctor_get(x_284, 1); -lean_inc(x_350); -lean_inc(x_349); -lean_dec(x_284); -x_351 = lean_ctor_get(x_349, 2); -lean_inc(x_351); -lean_dec(x_349); -x_352 = l_Lean_Elab_Command_getScope___rarg(x_5, x_350); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -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; -} else { - lean_dec_ref(x_352); - x_355 = lean_box(0); -} -x_356 = lean_ctor_get(x_353, 3); -lean_inc(x_356); -lean_dec(x_353); -if (lean_is_scalar(x_355)) { - x_357 = lean_alloc_ctor(0, 2, 0); -} else { - x_357 = x_355; -} -lean_ctor_set(x_357, 0, x_351); -lean_ctor_set(x_357, 1, x_356); -x_358 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_358, 0, x_357); -lean_ctor_set(x_358, 1, x_281); -x_359 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_360 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_360, 0, x_278); -lean_ctor_set(x_360, 1, x_283); -lean_ctor_set(x_360, 2, x_21); -lean_ctor_set(x_360, 3, x_359); -lean_ctor_set(x_360, 4, x_358); -lean_ctor_set_uint8(x_360, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_360, sizeof(void*)*5 + 1, x_15); -x_361 = lean_st_ref_take(x_5, x_354); -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = lean_ctor_get(x_362, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_362, 1); -lean_inc(x_365); -x_366 = lean_ctor_get(x_362, 2); -lean_inc(x_366); -x_367 = lean_ctor_get(x_362, 3); -lean_inc(x_367); -x_368 = lean_ctor_get(x_362, 4); -lean_inc(x_368); -x_369 = lean_ctor_get(x_362, 5); -lean_inc(x_369); -x_370 = lean_ctor_get(x_362, 6); -lean_inc(x_370); -x_371 = lean_ctor_get(x_362, 7); -lean_inc(x_371); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - lean_ctor_release(x_362, 2); - lean_ctor_release(x_362, 3); - lean_ctor_release(x_362, 4); - lean_ctor_release(x_362, 5); - lean_ctor_release(x_362, 6); - lean_ctor_release(x_362, 7); - x_372 = x_362; -} else { - lean_dec_ref(x_362); - x_372 = lean_box(0); -} -x_373 = l_Lean_PersistentArray_push___rarg(x_365, x_360); -if (lean_is_scalar(x_372)) { - x_374 = lean_alloc_ctor(0, 8, 0); -} else { - x_374 = x_372; -} -lean_ctor_set(x_374, 0, x_364); -lean_ctor_set(x_374, 1, x_373); -lean_ctor_set(x_374, 2, x_366); -lean_ctor_set(x_374, 3, x_367); -lean_ctor_set(x_374, 4, x_368); -lean_ctor_set(x_374, 5, x_369); -lean_ctor_set(x_374, 6, x_370); -lean_ctor_set(x_374, 7, x_371); -x_375 = lean_st_ref_set(x_5, x_374, x_363); -x_376 = lean_ctor_get(x_375, 1); -lean_inc(x_376); -if (lean_is_exclusive(x_375)) { - lean_ctor_release(x_375, 0); - lean_ctor_release(x_375, 1); - x_377 = x_375; -} else { - lean_dec_ref(x_375); - x_377 = lean_box(0); -} -x_378 = lean_box(0); -if (lean_is_scalar(x_377)) { - x_379 = lean_alloc_ctor(0, 2, 0); -} else { - x_379 = x_377; -} -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_376); -return x_379; -} -} -else -{ -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_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_object* x_399; lean_object* 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; 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; lean_object* 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; -x_380 = lean_ctor_get(x_21, 0); -lean_inc(x_380); +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; +x_93 = lean_ctor_get(x_21, 0); +lean_inc(x_93); lean_dec(x_21); -x_381 = lean_ctor_get(x_4, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_4, 1); -lean_inc(x_382); -x_383 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_94 = lean_ctor_get(x_4, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_4, 1); +lean_inc(x_95); +x_96 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_97 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_96 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l_Lean_FileMap_toPosition(x_95, x_93); +lean_dec(x_93); +lean_inc(x_100); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_98, x_94, x_100, x_101, x_15, x_102, x_4, x_5, x_99); lean_dec(x_4); -x_384 = lean_ctor_get(x_383, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -lean_dec(x_383); -x_386 = l_Lean_FileMap_toPosition(x_382, x_380); -lean_dec(x_380); -lean_inc(x_386); -x_387 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_387, 0, x_386); -x_388 = l_Lean_Elab_Command_getScope___rarg(x_5, x_385); -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - x_391 = x_388; -} else { - lean_dec_ref(x_388); - x_391 = lean_box(0); +return x_103; } -x_392 = lean_ctor_get(x_389, 2); -lean_inc(x_392); -lean_dec(x_389); -x_393 = l_Lean_Elab_Command_getScope___rarg(x_5, x_390); -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 1); -lean_inc(x_395); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_396 = x_393; +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_95); +lean_dec(x_94); +lean_dec(x_93); +lean_dec(x_4); +x_104 = lean_ctor_get(x_97, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_105 = x_97; } else { - lean_dec_ref(x_393); - x_396 = lean_box(0); + lean_dec_ref(x_97); + x_105 = lean_box(0); } -x_397 = lean_ctor_get(x_394, 3); -lean_inc(x_397); -lean_dec(x_394); -if (lean_is_scalar(x_396)) { - x_398 = lean_alloc_ctor(0, 2, 0); +x_106 = lean_box(0); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_398 = x_396; + x_107 = x_105; } -lean_ctor_set(x_398, 0, x_392); -lean_ctor_set(x_398, 1, x_397); -if (lean_is_scalar(x_391)) { - x_399 = lean_alloc_ctor(3, 2, 0); -} else { - x_399 = x_391; - lean_ctor_set_tag(x_399, 3); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +return x_107; } -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_384); -x_400 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_401 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_401, 0, x_381); -lean_ctor_set(x_401, 1, x_386); -lean_ctor_set(x_401, 2, x_387); -lean_ctor_set(x_401, 3, x_400); -lean_ctor_set(x_401, 4, x_399); -lean_ctor_set_uint8(x_401, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_401, sizeof(void*)*5 + 1, x_15); -x_402 = lean_st_ref_take(x_5, x_395); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -x_405 = lean_ctor_get(x_403, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_403, 1); -lean_inc(x_406); -x_407 = lean_ctor_get(x_403, 2); -lean_inc(x_407); -x_408 = lean_ctor_get(x_403, 3); -lean_inc(x_408); -x_409 = lean_ctor_get(x_403, 4); -lean_inc(x_409); -x_410 = lean_ctor_get(x_403, 5); -lean_inc(x_410); -x_411 = lean_ctor_get(x_403, 6); -lean_inc(x_411); -x_412 = lean_ctor_get(x_403, 7); -lean_inc(x_412); -if (lean_is_exclusive(x_403)) { - lean_ctor_release(x_403, 0); - lean_ctor_release(x_403, 1); - lean_ctor_release(x_403, 2); - lean_ctor_release(x_403, 3); - lean_ctor_release(x_403, 4); - lean_ctor_release(x_403, 5); - lean_ctor_release(x_403, 6); - lean_ctor_release(x_403, 7); - x_413 = x_403; -} else { - lean_dec_ref(x_403); - x_413 = lean_box(0); -} -x_414 = l_Lean_PersistentArray_push___rarg(x_406, x_401); -if (lean_is_scalar(x_413)) { - x_415 = lean_alloc_ctor(0, 8, 0); -} else { - x_415 = x_413; -} -lean_ctor_set(x_415, 0, x_405); -lean_ctor_set(x_415, 1, x_414); -lean_ctor_set(x_415, 2, x_407); -lean_ctor_set(x_415, 3, x_408); -lean_ctor_set(x_415, 4, x_409); -lean_ctor_set(x_415, 5, x_410); -lean_ctor_set(x_415, 6, x_411); -lean_ctor_set(x_415, 7, x_412); -x_416 = lean_st_ref_set(x_5, x_415, x_404); -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(0, 2, 0); -} else { - x_420 = x_418; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_417); -return x_420; } } else { -lean_object* x_421; uint8_t x_422; -x_421 = lean_ctor_get(x_21, 0); -lean_inc(x_421); +lean_object* x_108; uint8_t x_109; +x_108 = lean_ctor_get(x_21, 0); +lean_inc(x_108); lean_dec(x_21); -x_422 = !lean_is_exclusive(x_22); -if (x_422 == 0) +x_109 = !lean_is_exclusive(x_22); +if (x_109 == 0) { -lean_object* x_423; lean_object* 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; uint8_t x_432; -x_423 = lean_ctor_get(x_22, 0); -x_424 = lean_ctor_get(x_4, 0); -lean_inc(x_424); -x_425 = lean_ctor_get(x_4, 1); -lean_inc(x_425); -x_426 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; +x_110 = lean_ctor_get(x_22, 0); +x_111 = lean_ctor_get(x_4, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_4, 1); +lean_inc(x_112); +x_113 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_114 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_113 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_112); +x_117 = l_Lean_FileMap_toPosition(x_112, x_108); +lean_dec(x_108); +x_118 = l_Lean_FileMap_toPosition(x_112, x_110); +lean_dec(x_110); +lean_ctor_set(x_22, 0, x_118); +x_119 = lean_box(0); +x_120 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_115, x_111, x_117, x_22, x_15, x_119, x_4, x_5, x_116); lean_dec(x_4); -x_427 = lean_ctor_get(x_426, 0); -lean_inc(x_427); -x_428 = lean_ctor_get(x_426, 1); -lean_inc(x_428); -lean_dec(x_426); -lean_inc(x_425); -x_429 = l_Lean_FileMap_toPosition(x_425, x_421); -lean_dec(x_421); -x_430 = l_Lean_FileMap_toPosition(x_425, x_423); -lean_dec(x_423); -lean_ctor_set(x_22, 0, x_430); -x_431 = l_Lean_Elab_Command_getScope___rarg(x_5, x_428); -x_432 = !lean_is_exclusive(x_431); -if (x_432 == 0) -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; -x_433 = lean_ctor_get(x_431, 0); -x_434 = lean_ctor_get(x_431, 1); -x_435 = lean_ctor_get(x_433, 2); -lean_inc(x_435); -lean_dec(x_433); -x_436 = l_Lean_Elab_Command_getScope___rarg(x_5, x_434); -x_437 = !lean_is_exclusive(x_436); -if (x_437 == 0) -{ -lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; uint8_t x_446; -x_438 = lean_ctor_get(x_436, 0); -x_439 = lean_ctor_get(x_436, 1); -x_440 = lean_ctor_get(x_438, 3); -lean_inc(x_440); -lean_dec(x_438); -lean_ctor_set(x_436, 1, x_440); -lean_ctor_set(x_436, 0, x_435); -lean_ctor_set_tag(x_431, 3); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 0, x_436); -x_441 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_442 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_442, 0, x_424); -lean_ctor_set(x_442, 1, x_429); -lean_ctor_set(x_442, 2, x_22); -lean_ctor_set(x_442, 3, x_441); -lean_ctor_set(x_442, 4, x_431); -lean_ctor_set_uint8(x_442, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_442, sizeof(void*)*5 + 1, x_15); -x_443 = lean_st_ref_take(x_5, x_439); -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_443, 1); -lean_inc(x_445); -lean_dec(x_443); -x_446 = !lean_is_exclusive(x_444); -if (x_446 == 0) -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; -x_447 = lean_ctor_get(x_444, 1); -x_448 = l_Lean_PersistentArray_push___rarg(x_447, x_442); -lean_ctor_set(x_444, 1, x_448); -x_449 = lean_st_ref_set(x_5, x_444, x_445); -x_450 = !lean_is_exclusive(x_449); -if (x_450 == 0) -{ -lean_object* x_451; lean_object* x_452; -x_451 = lean_ctor_get(x_449, 0); -lean_dec(x_451); -x_452 = lean_box(0); -lean_ctor_set(x_449, 0, x_452); -return x_449; +return x_120; } else { -lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_453 = lean_ctor_get(x_449, 1); -lean_inc(x_453); -lean_dec(x_449); -x_454 = lean_box(0); -x_455 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_455, 1, x_453); -return x_455; +uint8_t x_121; +lean_dec(x_112); +lean_dec(x_111); +lean_free_object(x_22); +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_4); +x_121 = !lean_is_exclusive(x_114); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_114, 0); +lean_dec(x_122); +x_123 = lean_box(0); +lean_ctor_set(x_114, 0, x_123); +return x_114; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_114, 1); +lean_inc(x_124); +lean_dec(x_114); +x_125 = lean_box(0); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} } } else { -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_object* x_470; -x_456 = lean_ctor_get(x_444, 0); -x_457 = lean_ctor_get(x_444, 1); -x_458 = lean_ctor_get(x_444, 2); -x_459 = lean_ctor_get(x_444, 3); -x_460 = lean_ctor_get(x_444, 4); -x_461 = lean_ctor_get(x_444, 5); -x_462 = lean_ctor_get(x_444, 6); -x_463 = lean_ctor_get(x_444, 7); -lean_inc(x_463); -lean_inc(x_462); -lean_inc(x_461); -lean_inc(x_460); -lean_inc(x_459); -lean_inc(x_458); -lean_inc(x_457); -lean_inc(x_456); -lean_dec(x_444); -x_464 = l_Lean_PersistentArray_push___rarg(x_457, x_442); -x_465 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_465, 0, x_456); -lean_ctor_set(x_465, 1, x_464); -lean_ctor_set(x_465, 2, x_458); -lean_ctor_set(x_465, 3, x_459); -lean_ctor_set(x_465, 4, x_460); -lean_ctor_set(x_465, 5, x_461); -lean_ctor_set(x_465, 6, x_462); -lean_ctor_set(x_465, 7, x_463); -x_466 = lean_st_ref_set(x_5, x_465, x_445); -x_467 = lean_ctor_get(x_466, 1); -lean_inc(x_467); -if (lean_is_exclusive(x_466)) { - lean_ctor_release(x_466, 0); - lean_ctor_release(x_466, 1); - x_468 = x_466; -} else { - lean_dec_ref(x_466); - x_468 = lean_box(0); -} -x_469 = lean_box(0); -if (lean_is_scalar(x_468)) { - x_470 = lean_alloc_ctor(0, 2, 0); -} else { - x_470 = x_468; -} -lean_ctor_set(x_470, 0, x_469); -lean_ctor_set(x_470, 1, x_467); -return x_470; -} -} -else -{ -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; 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; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_471 = lean_ctor_get(x_436, 0); -x_472 = lean_ctor_get(x_436, 1); -lean_inc(x_472); -lean_inc(x_471); -lean_dec(x_436); -x_473 = lean_ctor_get(x_471, 3); -lean_inc(x_473); -lean_dec(x_471); -x_474 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_474, 0, x_435); -lean_ctor_set(x_474, 1, x_473); -lean_ctor_set_tag(x_431, 3); -lean_ctor_set(x_431, 1, x_427); -lean_ctor_set(x_431, 0, x_474); -x_475 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_476 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_476, 0, x_424); -lean_ctor_set(x_476, 1, x_429); -lean_ctor_set(x_476, 2, x_22); -lean_ctor_set(x_476, 3, x_475); -lean_ctor_set(x_476, 4, x_431); -lean_ctor_set_uint8(x_476, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_476, sizeof(void*)*5 + 1, x_15); -x_477 = lean_st_ref_take(x_5, x_472); -x_478 = lean_ctor_get(x_477, 0); -lean_inc(x_478); -x_479 = lean_ctor_get(x_477, 1); -lean_inc(x_479); -lean_dec(x_477); -x_480 = lean_ctor_get(x_478, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_478, 1); -lean_inc(x_481); -x_482 = lean_ctor_get(x_478, 2); -lean_inc(x_482); -x_483 = lean_ctor_get(x_478, 3); -lean_inc(x_483); -x_484 = lean_ctor_get(x_478, 4); -lean_inc(x_484); -x_485 = lean_ctor_get(x_478, 5); -lean_inc(x_485); -x_486 = lean_ctor_get(x_478, 6); -lean_inc(x_486); -x_487 = lean_ctor_get(x_478, 7); -lean_inc(x_487); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - lean_ctor_release(x_478, 2); - lean_ctor_release(x_478, 3); - lean_ctor_release(x_478, 4); - lean_ctor_release(x_478, 5); - lean_ctor_release(x_478, 6); - lean_ctor_release(x_478, 7); - x_488 = x_478; -} else { - lean_dec_ref(x_478); - x_488 = lean_box(0); -} -x_489 = l_Lean_PersistentArray_push___rarg(x_481, x_476); -if (lean_is_scalar(x_488)) { - x_490 = lean_alloc_ctor(0, 8, 0); -} else { - x_490 = x_488; -} -lean_ctor_set(x_490, 0, x_480); -lean_ctor_set(x_490, 1, x_489); -lean_ctor_set(x_490, 2, x_482); -lean_ctor_set(x_490, 3, x_483); -lean_ctor_set(x_490, 4, x_484); -lean_ctor_set(x_490, 5, x_485); -lean_ctor_set(x_490, 6, x_486); -lean_ctor_set(x_490, 7, x_487); -x_491 = lean_st_ref_set(x_5, x_490, x_479); -x_492 = lean_ctor_get(x_491, 1); -lean_inc(x_492); -if (lean_is_exclusive(x_491)) { - lean_ctor_release(x_491, 0); - lean_ctor_release(x_491, 1); - x_493 = x_491; -} else { - lean_dec_ref(x_491); - x_493 = lean_box(0); -} -x_494 = lean_box(0); -if (lean_is_scalar(x_493)) { - x_495 = lean_alloc_ctor(0, 2, 0); -} else { - x_495 = x_493; -} -lean_ctor_set(x_495, 0, x_494); -lean_ctor_set(x_495, 1, x_492); -return x_495; -} -} -else -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; 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; 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; 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_496 = lean_ctor_get(x_431, 0); -x_497 = lean_ctor_get(x_431, 1); -lean_inc(x_497); -lean_inc(x_496); -lean_dec(x_431); -x_498 = lean_ctor_get(x_496, 2); -lean_inc(x_498); -lean_dec(x_496); -x_499 = l_Lean_Elab_Command_getScope___rarg(x_5, x_497); -x_500 = lean_ctor_get(x_499, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_499, 1); -lean_inc(x_501); -if (lean_is_exclusive(x_499)) { - lean_ctor_release(x_499, 0); - lean_ctor_release(x_499, 1); - x_502 = x_499; -} else { - lean_dec_ref(x_499); - x_502 = lean_box(0); -} -x_503 = lean_ctor_get(x_500, 3); -lean_inc(x_503); -lean_dec(x_500); -if (lean_is_scalar(x_502)) { - x_504 = lean_alloc_ctor(0, 2, 0); -} else { - x_504 = x_502; -} -lean_ctor_set(x_504, 0, x_498); -lean_ctor_set(x_504, 1, x_503); -x_505 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_505, 0, x_504); -lean_ctor_set(x_505, 1, x_427); -x_506 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_507 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_507, 0, x_424); -lean_ctor_set(x_507, 1, x_429); -lean_ctor_set(x_507, 2, x_22); -lean_ctor_set(x_507, 3, x_506); -lean_ctor_set(x_507, 4, x_505); -lean_ctor_set_uint8(x_507, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_507, sizeof(void*)*5 + 1, x_15); -x_508 = lean_st_ref_take(x_5, x_501); -x_509 = lean_ctor_get(x_508, 0); -lean_inc(x_509); -x_510 = lean_ctor_get(x_508, 1); -lean_inc(x_510); -lean_dec(x_508); -x_511 = lean_ctor_get(x_509, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_509, 1); -lean_inc(x_512); -x_513 = lean_ctor_get(x_509, 2); -lean_inc(x_513); -x_514 = lean_ctor_get(x_509, 3); -lean_inc(x_514); -x_515 = lean_ctor_get(x_509, 4); -lean_inc(x_515); -x_516 = lean_ctor_get(x_509, 5); -lean_inc(x_516); -x_517 = lean_ctor_get(x_509, 6); -lean_inc(x_517); -x_518 = lean_ctor_get(x_509, 7); -lean_inc(x_518); -if (lean_is_exclusive(x_509)) { - lean_ctor_release(x_509, 0); - lean_ctor_release(x_509, 1); - lean_ctor_release(x_509, 2); - lean_ctor_release(x_509, 3); - lean_ctor_release(x_509, 4); - lean_ctor_release(x_509, 5); - lean_ctor_release(x_509, 6); - lean_ctor_release(x_509, 7); - x_519 = x_509; -} else { - lean_dec_ref(x_509); - x_519 = lean_box(0); -} -x_520 = l_Lean_PersistentArray_push___rarg(x_512, x_507); -if (lean_is_scalar(x_519)) { - x_521 = lean_alloc_ctor(0, 8, 0); -} else { - x_521 = x_519; -} -lean_ctor_set(x_521, 0, x_511); -lean_ctor_set(x_521, 1, x_520); -lean_ctor_set(x_521, 2, x_513); -lean_ctor_set(x_521, 3, x_514); -lean_ctor_set(x_521, 4, x_515); -lean_ctor_set(x_521, 5, x_516); -lean_ctor_set(x_521, 6, x_517); -lean_ctor_set(x_521, 7, x_518); -x_522 = lean_st_ref_set(x_5, x_521, x_510); -x_523 = lean_ctor_get(x_522, 1); -lean_inc(x_523); -if (lean_is_exclusive(x_522)) { - lean_ctor_release(x_522, 0); - lean_ctor_release(x_522, 1); - x_524 = x_522; -} else { - lean_dec_ref(x_522); - x_524 = lean_box(0); -} -x_525 = lean_box(0); -if (lean_is_scalar(x_524)) { - x_526 = lean_alloc_ctor(0, 2, 0); -} else { - x_526 = x_524; -} -lean_ctor_set(x_526, 0, x_525); -lean_ctor_set(x_526, 1, x_523); -return x_526; -} -} -else -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 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; 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; 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; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_527 = lean_ctor_get(x_22, 0); -lean_inc(x_527); +lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; +x_127 = lean_ctor_get(x_22, 0); +lean_inc(x_127); lean_dec(x_22); -x_528 = lean_ctor_get(x_4, 0); -lean_inc(x_528); -x_529 = lean_ctor_get(x_4, 1); -lean_inc(x_529); -x_530 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +x_128 = lean_ctor_get(x_4, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_4, 1); +lean_inc(x_129); +x_130 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_131 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_4, x_5, x_18); +if (x_130 == 0) +{ +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_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_inc(x_129); +x_134 = l_Lean_FileMap_toPosition(x_129, x_108); +lean_dec(x_108); +x_135 = l_Lean_FileMap_toPosition(x_129, x_127); +lean_dec(x_127); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_135); +x_137 = lean_box(0); +x_138 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2___lambda__1(x_132, x_128, x_134, x_136, x_15, x_137, x_4, x_5, x_133); lean_dec(x_4); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -lean_inc(x_529); -x_533 = l_Lean_FileMap_toPosition(x_529, x_421); -lean_dec(x_421); -x_534 = l_Lean_FileMap_toPosition(x_529, x_527); -lean_dec(x_527); -x_535 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_535, 0, x_534); -x_536 = l_Lean_Elab_Command_getScope___rarg(x_5, x_532); -x_537 = lean_ctor_get(x_536, 0); -lean_inc(x_537); -x_538 = lean_ctor_get(x_536, 1); -lean_inc(x_538); -if (lean_is_exclusive(x_536)) { - lean_ctor_release(x_536, 0); - lean_ctor_release(x_536, 1); - x_539 = x_536; -} else { - lean_dec_ref(x_536); - x_539 = lean_box(0); +return x_138; } -x_540 = lean_ctor_get(x_537, 2); -lean_inc(x_540); -lean_dec(x_537); -x_541 = l_Lean_Elab_Command_getScope___rarg(x_5, x_538); -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_541, 1); -lean_inc(x_543); -if (lean_is_exclusive(x_541)) { - lean_ctor_release(x_541, 0); - lean_ctor_release(x_541, 1); - x_544 = x_541; +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_108); +lean_dec(x_4); +x_139 = lean_ctor_get(x_131, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_140 = x_131; } else { - lean_dec_ref(x_541); - x_544 = lean_box(0); + lean_dec_ref(x_131); + x_140 = lean_box(0); } -x_545 = lean_ctor_get(x_542, 3); -lean_inc(x_545); -lean_dec(x_542); -if (lean_is_scalar(x_544)) { - x_546 = lean_alloc_ctor(0, 2, 0); +x_141 = lean_box(0); +if (lean_is_scalar(x_140)) { + x_142 = lean_alloc_ctor(0, 2, 0); } else { - x_546 = x_544; + x_142 = x_140; } -lean_ctor_set(x_546, 0, x_540); -lean_ctor_set(x_546, 1, x_545); -if (lean_is_scalar(x_539)) { - x_547 = lean_alloc_ctor(3, 2, 0); -} else { - x_547 = x_539; - lean_ctor_set_tag(x_547, 3); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_139); +return x_142; } -lean_ctor_set(x_547, 0, x_546); -lean_ctor_set(x_547, 1, x_531); -x_548 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_549 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_549, 0, x_528); -lean_ctor_set(x_549, 1, x_533); -lean_ctor_set(x_549, 2, x_535); -lean_ctor_set(x_549, 3, x_548); -lean_ctor_set(x_549, 4, x_547); -lean_ctor_set_uint8(x_549, sizeof(void*)*5, x_20); -lean_ctor_set_uint8(x_549, sizeof(void*)*5 + 1, x_15); -x_550 = lean_st_ref_take(x_5, x_543); -x_551 = lean_ctor_get(x_550, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_550, 1); -lean_inc(x_552); -lean_dec(x_550); -x_553 = lean_ctor_get(x_551, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_551, 1); -lean_inc(x_554); -x_555 = lean_ctor_get(x_551, 2); -lean_inc(x_555); -x_556 = lean_ctor_get(x_551, 3); -lean_inc(x_556); -x_557 = lean_ctor_get(x_551, 4); -lean_inc(x_557); -x_558 = lean_ctor_get(x_551, 5); -lean_inc(x_558); -x_559 = lean_ctor_get(x_551, 6); -lean_inc(x_559); -x_560 = lean_ctor_get(x_551, 7); -lean_inc(x_560); -if (lean_is_exclusive(x_551)) { - lean_ctor_release(x_551, 0); - lean_ctor_release(x_551, 1); - lean_ctor_release(x_551, 2); - lean_ctor_release(x_551, 3); - lean_ctor_release(x_551, 4); - lean_ctor_release(x_551, 5); - lean_ctor_release(x_551, 6); - lean_ctor_release(x_551, 7); - x_561 = x_551; -} else { - lean_dec_ref(x_551); - x_561 = lean_box(0); -} -x_562 = l_Lean_PersistentArray_push___rarg(x_554, x_549); -if (lean_is_scalar(x_561)) { - x_563 = lean_alloc_ctor(0, 8, 0); -} else { - x_563 = x_561; -} -lean_ctor_set(x_563, 0, x_553); -lean_ctor_set(x_563, 1, x_562); -lean_ctor_set(x_563, 2, x_555); -lean_ctor_set(x_563, 3, x_556); -lean_ctor_set(x_563, 4, x_557); -lean_ctor_set(x_563, 5, x_558); -lean_ctor_set(x_563, 6, x_559); -lean_ctor_set(x_563, 7, x_560); -x_564 = lean_st_ref_set(x_5, x_563, x_552); -x_565 = lean_ctor_get(x_564, 1); -lean_inc(x_565); -if (lean_is_exclusive(x_564)) { - lean_ctor_release(x_564, 0); - lean_ctor_release(x_564, 1); - x_566 = x_564; -} else { - lean_dec_ref(x_564); - x_566 = lean_box(0); -} -x_567 = lean_box(0); -if (lean_is_scalar(x_566)) { - x_568 = lean_alloc_ctor(0, 2, 0); -} else { - x_568 = x_566; -} -lean_ctor_set(x_568, 0, x_567); -lean_ctor_set(x_568, 1, x_565); -return x_568; } } } @@ -19664,172 +17444,209 @@ lean_dec(x_11); x_12 = l_Lean_Elab_isAbortExceptionId(x_10); if (x_12 == 0) { -lean_object* x_13; -x_13 = l_Lean_InternalExceptionId_getName(x_10, x_4); -lean_dec(x_10); -if (lean_obj_tag(x_13) == 0) +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; +x_14 = lean_nat_dec_eq(x_10, x_13); +if (x_14 == 0) { -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; lean_object* x_22; +lean_object* x_15; +x_15 = l_Lean_InternalExceptionId_getName(x_10, x_4); +lean_dec(x_10); +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; uint8_t x_23; lean_object* x_24; lean_free_object(x_1); -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_Lean_MessageData_ofName(x_14); -x_17 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; -x_18 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_MessageData_ofName(x_16); x_19 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; x_20 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = 2; -x_22 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_20, x_21, x_2, x_3, x_15); -return x_22; +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; +x_22 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = 2; +x_24 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_22, x_23, x_2, x_3, x_17); +return x_24; } else { -uint8_t x_23; +uint8_t x_25; lean_dec(x_3); -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) +x_25 = !lean_is_exclusive(x_15); +if (x_25 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_2, 6); -lean_inc(x_25); +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_15, 0); +x_27 = lean_ctor_get(x_2, 6); +lean_inc(x_27); lean_dec(x_2); -x_26 = lean_io_error_to_string(x_24); -x_27 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_MessageData_ofFormat(x_27); +x_28 = lean_io_error_to_string(x_26); +x_29 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = l_Lean_MessageData_ofFormat(x_29); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_28); -lean_ctor_set(x_1, 0, x_25); -lean_ctor_set(x_13, 0, x_1); -return x_13; +lean_ctor_set(x_1, 1, x_30); +lean_ctor_set(x_1, 0, x_27); +lean_ctor_set(x_15, 0, x_1); +return x_15; } else { -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_13, 0); -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_13); -x_31 = lean_ctor_get(x_2, 6); +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_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); lean_inc(x_31); +lean_dec(x_15); +x_33 = lean_ctor_get(x_2, 6); +lean_inc(x_33); lean_dec(x_2); -x_32 = lean_io_error_to_string(x_29); -x_33 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_MessageData_ofFormat(x_33); +x_34 = lean_io_error_to_string(x_31); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = l_Lean_MessageData_ofFormat(x_35); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_34); -lean_ctor_set(x_1, 0, x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_30); -return x_35; -} -} -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_free_object(x_1); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_4); +lean_ctor_set(x_1, 1, x_36); +lean_ctor_set(x_1, 0, x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_32); return x_37; } } +} else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_1, 0); -lean_inc(x_38); -lean_dec(x_1); -x_39 = l_Lean_Elab_isAbortExceptionId(x_38); -if (x_39 == 0) +lean_object* x_38; lean_object* x_39; +lean_free_object(x_1); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +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_4); +return x_39; +} +} +else { -lean_object* x_40; -x_40 = l_Lean_InternalExceptionId_getName(x_38, x_4); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) +lean_object* x_40; lean_object* x_41; +lean_free_object(x_1); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_4); +return x_41; +} +} +else { -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; uint8_t x_48; lean_object* x_49; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_1, 0); lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_MessageData_ofName(x_41); -x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; -x_45 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_47 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = 2; -x_49 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_47, x_48, x_2, x_3, x_42); -return x_49; +lean_dec(x_1); +x_43 = l_Lean_Elab_isAbortExceptionId(x_42); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; +x_45 = lean_nat_dec_eq(x_42, x_44); +if (x_45 == 0) +{ +lean_object* x_46; +x_46 = l_Lean_InternalExceptionId_getName(x_42, x_4); +lean_dec(x_42); +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; uint8_t x_54; lean_object* x_55; +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 = l_Lean_MessageData_ofName(x_47); +x_50 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = 2; +x_55 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_53, x_54, x_2, x_3, x_48); +return x_55; } 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; +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_dec(x_3); -x_50 = lean_ctor_get(x_40, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_40, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_52 = x_40; +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_40); - x_52 = lean_box(0); + lean_dec_ref(x_46); + x_58 = lean_box(0); } -x_53 = lean_ctor_get(x_2, 6); -lean_inc(x_53); +x_59 = lean_ctor_get(x_2, 6); +lean_inc(x_59); lean_dec(x_2); -x_54 = lean_io_error_to_string(x_50); -x_55 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = l_Lean_MessageData_ofFormat(x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_53); -lean_ctor_set(x_57, 1, x_56); -if (lean_is_scalar(x_52)) { - x_58 = lean_alloc_ctor(1, 2, 0); +x_60 = lean_io_error_to_string(x_56); +x_61 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_Lean_MessageData_ofFormat(x_61); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_62); +if (lean_is_scalar(x_58)) { + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_58 = x_52; + x_64 = x_58; } -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_51); -return x_58; +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_57); +return x_64; } } else { -lean_object* x_59; lean_object* x_60; -lean_dec(x_38); +lean_object* x_65; lean_object* x_66; +lean_dec(x_42); lean_dec(x_3); lean_dec(x_2); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_4); -return x_60; +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_4); +return x_66; +} +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_42); +lean_dec(x_3); +lean_dec(x_2); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_4); +return x_68; } } } @@ -19850,14 +17667,54 @@ return x_5; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = l_Lean_Exception_isInterrupt(x_7); +if (x_9 == 0) +{ +lean_object* x_10; +lean_free_object(x_5); +x_10 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_7, x_2, x_3, x_8); +return x_10; +} +else +{ +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_5, 0); +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_inc(x_11); lean_dec(x_5); -x_8 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_6, x_2, x_3, x_7); -return x_8; +x_13 = l_Lean_Exception_isInterrupt(x_11); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_11, x_2, x_3, x_12); +return x_14; +} +else +{ +lean_object* x_15; +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} } } } @@ -20269,7 +18126,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -20278,6 +18135,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -20287,19 +18147,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__10(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__10(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -21084,7 +18946,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -21093,6 +18955,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -21102,19 +18967,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__15(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__15(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -21651,7 +19518,7 @@ lean_dec(x_1); x_10 = !lean_is_exclusive(x_3); 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; 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_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; uint8_t 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_11 = lean_ctor_get(x_3, 0); x_12 = lean_ctor_get(x_3, 1); x_13 = lean_ctor_get(x_3, 2); @@ -21660,8 +19527,11 @@ x_15 = lean_ctor_get(x_3, 4); x_16 = lean_ctor_get(x_3, 5); x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); -x_19 = lean_ctor_get(x_3, 6); -lean_dec(x_19); +x_19 = lean_ctor_get(x_3, 9); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_21 = lean_ctor_get(x_3, 6); +lean_dec(x_21); +lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_9); @@ -21672,40 +19542,43 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_ctor_set(x_3, 6, x_9); -x_20 = lean_st_ref_get(x_4, x_8); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 4); +x_22 = lean_st_ref_get(x_4, x_8); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_nat_dec_eq(x_13, x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 4); +lean_inc(x_25); lean_dec(x_23); -if (x_24 == 0) +x_26 = lean_nat_dec_eq(x_13, x_25); +lean_dec(x_25); +if (x_26 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_3); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_13, x_25); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_13, x_27); lean_dec(x_13); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_11); -lean_ctor_set(x_27, 1, x_12); -lean_ctor_set(x_27, 2, x_26); -lean_ctor_set(x_27, 3, x_14); -lean_ctor_set(x_27, 4, x_15); -lean_ctor_set(x_27, 5, x_16); -lean_ctor_set(x_27, 6, x_9); -lean_ctor_set(x_27, 7, x_17); -lean_ctor_set(x_27, 8, x_18); -x_28 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_2, x_27, x_4, x_22); -return x_28; +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_11); +lean_ctor_set(x_29, 1, x_12); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set(x_29, 3, x_14); +lean_ctor_set(x_29, 4, x_15); +lean_ctor_set(x_29, 5, x_16); +lean_ctor_set(x_29, 6, x_9); +lean_ctor_set(x_29, 7, x_17); +lean_ctor_set(x_29, 8, x_18); +lean_ctor_set(x_29, 9, x_19); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_20); +x_30 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_2, x_29, x_4, x_24); +return x_30; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -21716,111 +19589,120 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_2); -x_29 = l_Lean_Elab_Command_getRef(x_3, x_4, x_22); -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 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1(x_30, x_3, x_4, x_31); +x_31 = l_Lean_Elab_Command_getRef(x_3, x_4, x_24); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1(x_32, x_3, x_4, x_33); lean_dec(x_4); lean_dec(x_3); -return x_32; +return x_34; } } 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_33 = lean_ctor_get(x_3, 0); -x_34 = lean_ctor_get(x_3, 1); -x_35 = lean_ctor_get(x_3, 2); -x_36 = lean_ctor_get(x_3, 3); -x_37 = lean_ctor_get(x_3, 4); -x_38 = lean_ctor_get(x_3, 5); -x_39 = lean_ctor_get(x_3, 7); -x_40 = lean_ctor_get(x_3, 8); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_3); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_9); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -x_41 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_41, 0, x_33); -lean_ctor_set(x_41, 1, x_34); -lean_ctor_set(x_41, 2, x_35); -lean_ctor_set(x_41, 3, x_36); -lean_ctor_set(x_41, 4, x_37); -lean_ctor_set(x_41, 5, x_38); -lean_ctor_set(x_41, 6, x_9); -lean_ctor_set(x_41, 7, x_39); -lean_ctor_set(x_41, 8, x_40); -x_42 = lean_st_ref_get(x_4, x_8); -x_43 = 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; lean_object* 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; lean_object* x_49; uint8_t x_50; +x_35 = lean_ctor_get(x_3, 0); +x_36 = lean_ctor_get(x_3, 1); +x_37 = lean_ctor_get(x_3, 2); +x_38 = lean_ctor_get(x_3, 3); +x_39 = lean_ctor_get(x_3, 4); +x_40 = lean_ctor_get(x_3, 5); +x_41 = lean_ctor_get(x_3, 7); +x_42 = lean_ctor_get(x_3, 8); +x_43 = lean_ctor_get(x_3, 9); +x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_43, 4); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_nat_dec_eq(x_35, x_45); -lean_dec(x_45); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_41); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_add(x_35, x_47); -lean_dec(x_35); -x_49 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_49, 0, x_33); -lean_ctor_set(x_49, 1, x_34); -lean_ctor_set(x_49, 2, x_48); -lean_ctor_set(x_49, 3, x_36); -lean_ctor_set(x_49, 4, x_37); -lean_ctor_set(x_49, 5, x_38); -lean_ctor_set(x_49, 6, x_9); -lean_ctor_set(x_49, 7, x_39); -lean_ctor_set(x_49, 8, x_40); -x_50 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_2, x_49, x_4, x_44); -return x_50; -} -else +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_3); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_9); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +x_45 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_36); +lean_ctor_set(x_45, 2, x_37); +lean_ctor_set(x_45, 3, x_38); +lean_ctor_set(x_45, 4, x_39); +lean_ctor_set(x_45, 5, x_40); +lean_ctor_set(x_45, 6, x_9); +lean_ctor_set(x_45, 7, x_41); +lean_ctor_set(x_45, 8, x_42); +lean_ctor_set(x_45, 9, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*10, x_44); +x_46 = lean_st_ref_get(x_4, x_8); +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_ctor_get(x_47, 4); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_nat_dec_eq(x_37, x_49); +lean_dec(x_49); +if (x_50 == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_45); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_37, x_51); +lean_dec(x_37); +x_53 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_53, 0, x_35); +lean_ctor_set(x_53, 1, x_36); +lean_ctor_set(x_53, 2, x_52); +lean_ctor_set(x_53, 3, x_38); +lean_ctor_set(x_53, 4, x_39); +lean_ctor_set(x_53, 5, x_40); +lean_ctor_set(x_53, 6, x_9); +lean_ctor_set(x_53, 7, x_41); +lean_ctor_set(x_53, 8, x_42); +lean_ctor_set(x_53, 9, x_43); +lean_ctor_set_uint8(x_53, sizeof(void*)*10, x_44); +x_54 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_2, x_53, x_4, x_48); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_41); lean_dec(x_40); lean_dec(x_39); lean_dec(x_38); lean_dec(x_37); lean_dec(x_36); lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); lean_dec(x_9); lean_dec(x_2); -x_51 = l_Lean_Elab_Command_getRef(x_41, x_4, x_44); -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_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1(x_52, x_41, x_4, x_53); +x_55 = l_Lean_Elab_Command_getRef(x_45, x_4, x_48); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1(x_56, x_45, x_4, x_57); lean_dec(x_4); -lean_dec(x_41); -return x_54; +lean_dec(x_45); +return x_58; } } } @@ -22228,9 +20110,9 @@ static lean_object* _init_l_Lean_Elab_Command_elabCommand___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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_4 = l_Lean_Elab_Command_elabCommand___closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -22263,7 +20145,7 @@ x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_1, 2); lean_inc(x_6); -x_7 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__9; +x_7 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__9; x_8 = lean_name_eq(x_5, x_7); if (x_8 == 0) { @@ -22286,7 +20168,7 @@ lean_inc(x_1); x_13 = l_Lean_Syntax_getKind(x_1); x_14 = 1; x_15 = l_Lean_Name_toString(x_13, x_14); -x_16 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1; +x_16 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1; x_17 = lean_box(x_14); x_18 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___boxed), 8, 5); lean_closure_set(x_18, 0, x_16); @@ -22308,7 +20190,7 @@ x_22 = l_Lean_Syntax_getArg(x_1, x_21); x_23 = l_Lean_Syntax_getKind(x_22); x_24 = 1; x_25 = l_Lean_Name_toString(x_23, x_24); -x_26 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1; +x_26 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1; x_27 = lean_box(x_24); x_28 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__10___boxed), 8, 5); lean_closure_set(x_28, 0, x_26); @@ -22580,7 +20462,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1() { _start: { lean_object* x_1; @@ -22588,37 +20470,101 @@ x_1 = lean_mk_string_from_bytes("input", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16; -x_2 = lean_unsigned_to_nat(3250u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16; +x_2 = lean_unsigned_to_nat(3396u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("showPartialSyntaxErrors", 23); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("show elaboration errors from partial syntax trees (i.e. after parser recovery)", 78); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 0; +x_2 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3; +x_4 = lean_box(x_1); +x_5 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____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___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__5; +x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(x_2, x_3, x_4, x_1); +return x_5; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -23133,7 +21079,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -23977,227 +21923,260 @@ return x_45; } } } +static lean_object* _init_l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Command_showPartialSyntaxErrors; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCommandTopLevel___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_st_ref_take(x_3, 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; uint8_t x_23; lean_object* x_24; uint8_t x_25; +x_5 = lean_st_ref_get(x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); -x_8 = !lean_is_exclusive(x_6); -if (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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_82; -x_9 = lean_ctor_get(x_6, 1); -x_10 = l_Lean_Elab_Command_State_messages___default___closed__3; -lean_ctor_set(x_6, 1, x_10); -x_11 = lean_st_ref_set(x_3, x_6, x_7); -x_12 = lean_ctor_get(x_11, 1); +x_8 = lean_ctor_get(x_6, 2); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_Command_instInhabitedScope; +x_10 = l_List_head_x21___rarg(x_9, x_8); +lean_dec(x_8); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_2, 0); lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 2); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +x_15 = lean_ctor_get(x_2, 3); lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_3); -lean_inc(x_2); +x_16 = lean_ctor_get(x_2, 4); +lean_inc(x_16); +x_17 = lean_ctor_get(x_2, 5); +lean_inc(x_17); +x_18 = lean_ctor_get(x_2, 6); +lean_inc(x_18); +x_19 = lean_ctor_get(x_2, 7); +lean_inc(x_19); +x_20 = lean_ctor_get(x_2, 8); +lean_inc(x_20); +x_21 = lean_ctor_get(x_2, 9); +lean_inc(x_21); +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); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_22 = x_2; +} else { + lean_dec_ref(x_2); + x_22 = lean_box(0); +} lean_inc(x_1); -x_82 = l_Lean_Elab_Command_elabCommand(x_1, x_2, x_3, x_15); -if (lean_obj_tag(x_82) == 0) +x_23 = l_Lean_Syntax_hasMissing(x_1); +x_24 = lean_st_ref_take(x_3, x_7); +if (x_23 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runLinters), 4, 1); -lean_closure_set(x_84, 0, x_1); +uint8_t x_283; +lean_dec(x_11); +x_283 = 0; +x_25 = x_283; +goto block_282; +} +else +{ +lean_object* x_284; uint8_t x_285; +x_284 = l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1; +x_285 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_11, x_284); +lean_dec(x_11); +if (x_285 == 0) +{ +uint8_t x_286; +x_286 = 1; +x_25 = x_286; +goto block_282; +} +else +{ +uint8_t x_287; +x_287 = 0; +x_25 = x_287; +goto block_282; +} +} +block_282: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +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); +if (lean_is_scalar(x_22)) { + x_28 = lean_alloc_ctor(0, 10, 1); +} else { + x_28 = x_22; +} +lean_ctor_set(x_28, 0, x_12); +lean_ctor_set(x_28, 1, x_13); +lean_ctor_set(x_28, 2, x_14); +lean_ctor_set(x_28, 3, x_15); +lean_ctor_set(x_28, 4, x_16); +lean_ctor_set(x_28, 5, x_17); +lean_ctor_set(x_28, 6, x_18); +lean_ctor_set(x_28, 7, x_19); +lean_ctor_set(x_28, 8, x_20); +lean_ctor_set(x_28, 9, x_21); +lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_25); +x_29 = !lean_is_exclusive(x_26); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_103; +x_30 = lean_ctor_get(x_26, 1); +x_31 = l_Lean_Elab_Command_State_messages___default___closed__4; +lean_ctor_set(x_26, 1, x_31); +x_32 = lean_st_ref_set(x_3, x_26, x_27); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(x_3, x_33); +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_inc(x_3); -lean_inc(x_2); -x_85 = l_Lean_Elab_withLogging___at_Lean_Elab_Command_elabCommand___spec__2(x_84, x_2, x_3, x_83); -if (lean_obj_tag(x_85) == 0) +lean_inc(x_28); +lean_inc(x_1); +x_103 = l_Lean_Elab_Command_elabCommand(x_1, x_28, x_3, x_36); +if (lean_obj_tag(x_103) == 0) { -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; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_st_ref_get(x_3, x_87); -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_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_90); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_box(0); -lean_inc(x_3); -lean_inc(x_2); -x_96 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_93, x_95, x_2, x_3, x_94); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec(x_96); -x_98 = lean_st_ref_take(x_3, x_97); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = lean_ctor_get(x_99, 6); -x_103 = lean_ctor_get(x_99, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); lean_dec(x_103); -x_104 = l_Lean_PersistentArray_append___rarg(x_9, x_91); -x_105 = !lean_is_exclusive(x_102); -if (x_105 == 0) +x_105 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runLinters), 4, 1); +lean_closure_set(x_105, 0, x_1); +lean_inc(x_3); +lean_inc(x_28); +x_106 = l_Lean_Elab_withLogging___at_Lean_Elab_Command_elabCommand___spec__2(x_105, x_28, x_3, x_104); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_106 = lean_ctor_get(x_102, 1); -x_107 = l_Lean_PersistentArray_append___rarg(x_14, x_106); -lean_ctor_set(x_102, 1, x_107); -lean_ctor_set(x_99, 1, x_104); -x_108 = lean_st_ref_set(x_3, x_99, x_100); -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -lean_dec(x_108); -x_110 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_109); -lean_dec(x_3); -x_111 = !lean_is_exclusive(x_110); -if (x_111 == 0) -{ -lean_object* x_112; -x_112 = lean_ctor_get(x_110, 0); -lean_dec(x_112); -lean_ctor_set(x_110, 0, x_86); -return x_110; -} -else -{ -lean_object* x_113; lean_object* x_114; -x_113 = lean_ctor_get(x_110, 1); -lean_inc(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; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_st_ref_get(x_3, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); lean_dec(x_110); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_86); -lean_ctor_set(x_114, 1, x_113); -return x_114; -} -} -else +x_113 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_111); +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_116 = lean_box(0); +lean_inc(x_3); +lean_inc(x_28); +x_117 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_114, x_116, x_28, x_3, x_115); +if (lean_obj_tag(x_117) == 0) { -uint8_t 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; -x_115 = lean_ctor_get_uint8(x_102, sizeof(void*)*2); -x_116 = lean_ctor_get(x_102, 0); -x_117 = lean_ctor_get(x_102, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_102); -x_118 = l_Lean_PersistentArray_append___rarg(x_14, x_117); -x_119 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set_uint8(x_119, sizeof(void*)*2, x_115); -lean_ctor_set(x_99, 6, x_119); -lean_ctor_set(x_99, 1, x_104); -x_120 = lean_st_ref_set(x_3, x_99, x_100); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_119 = lean_st_ref_take(x_3, x_118); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); -lean_dec(x_120); -x_122 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_121); +lean_dec(x_119); +x_122 = !lean_is_exclusive(x_120); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_123 = lean_ctor_get(x_120, 6); +x_124 = lean_ctor_get(x_120, 1); +lean_dec(x_124); +x_125 = l_Lean_MessageLog_append(x_30, x_112); +x_126 = !lean_is_exclusive(x_123); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_127 = lean_ctor_get(x_123, 1); +x_128 = l_Lean_PersistentArray_append___rarg(x_35, x_127); +lean_ctor_set(x_123, 1, x_128); +lean_ctor_set(x_120, 1, x_125); +x_129 = lean_st_ref_set(x_3, x_120, x_121); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_130); lean_dec(x_3); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +lean_object* x_133; +x_133 = lean_ctor_get(x_131, 0); +lean_dec(x_133); +lean_ctor_set(x_131, 0, x_107); +return x_131; } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_124; -} -lean_ctor_set(x_125, 0, x_86); -lean_ctor_set(x_125, 1, x_123); -return x_125; +else +{ +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec(x_131); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_107); +lean_ctor_set(x_135, 1, x_134); +return x_135; } } else { -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; uint8_t 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_126 = lean_ctor_get(x_99, 0); -x_127 = lean_ctor_get(x_99, 2); -x_128 = lean_ctor_get(x_99, 3); -x_129 = lean_ctor_get(x_99, 4); -x_130 = lean_ctor_get(x_99, 5); -x_131 = lean_ctor_get(x_99, 6); -x_132 = lean_ctor_get(x_99, 7); -lean_inc(x_132); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_99); -x_133 = l_Lean_PersistentArray_append___rarg(x_9, x_91); -x_134 = lean_ctor_get_uint8(x_131, sizeof(void*)*2); -x_135 = lean_ctor_get(x_131, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_137 = x_131; -} else { - lean_dec_ref(x_131); - x_137 = lean_box(0); -} -x_138 = l_Lean_PersistentArray_append___rarg(x_14, x_136); -if (lean_is_scalar(x_137)) { - x_139 = lean_alloc_ctor(0, 2, 1); -} else { - x_139 = x_137; -} -lean_ctor_set(x_139, 0, x_135); -lean_ctor_set(x_139, 1, x_138); -lean_ctor_set_uint8(x_139, sizeof(void*)*2, x_134); -x_140 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_140, 0, x_126); -lean_ctor_set(x_140, 1, x_133); -lean_ctor_set(x_140, 2, x_127); -lean_ctor_set(x_140, 3, x_128); -lean_ctor_set(x_140, 4, x_129); -lean_ctor_set(x_140, 5, x_130); -lean_ctor_set(x_140, 6, x_139); -lean_ctor_set(x_140, 7, x_132); -x_141 = lean_st_ref_set(x_3, x_140, x_100); +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; +x_136 = lean_ctor_get_uint8(x_123, sizeof(void*)*2); +x_137 = lean_ctor_get(x_123, 0); +x_138 = lean_ctor_get(x_123, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_123); +x_139 = l_Lean_PersistentArray_append___rarg(x_35, x_138); +x_140 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_139); +lean_ctor_set_uint8(x_140, sizeof(void*)*2, x_136); +lean_ctor_set(x_120, 6, x_140); +lean_ctor_set(x_120, 1, x_125); +x_141 = lean_st_ref_set(x_3, x_120, x_121); x_142 = lean_ctor_get(x_141, 1); lean_inc(x_142); lean_dec(x_141); -x_143 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_142); +x_143 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_142); lean_dec(x_3); x_144 = lean_ctor_get(x_143, 1); lean_inc(x_144); @@ -24214,242 +22193,241 @@ if (lean_is_scalar(x_145)) { } else { x_146 = x_145; } -lean_ctor_set(x_146, 0, x_86); +lean_ctor_set(x_146, 0, x_107); lean_ctor_set(x_146, 1, x_144); return x_146; } } else { -uint8_t x_147; -lean_dec(x_91); -lean_dec(x_86); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -x_147 = !lean_is_exclusive(x_96); -if (x_147 == 0) -{ -return x_96; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_96, 0); -x_149 = lean_ctor_get(x_96, 1); +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; uint8_t 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; +x_147 = lean_ctor_get(x_120, 0); +x_148 = lean_ctor_get(x_120, 2); +x_149 = lean_ctor_get(x_120, 3); +x_150 = lean_ctor_get(x_120, 4); +x_151 = lean_ctor_get(x_120, 5); +x_152 = lean_ctor_get(x_120, 6); +x_153 = lean_ctor_get(x_120, 7); +lean_inc(x_153); +lean_inc(x_152); +lean_inc(x_151); +lean_inc(x_150); lean_inc(x_149); lean_inc(x_148); -lean_dec(x_96); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; +lean_inc(x_147); +lean_dec(x_120); +x_154 = l_Lean_MessageLog_append(x_30, x_112); +x_155 = lean_ctor_get_uint8(x_152, sizeof(void*)*2); +x_156 = lean_ctor_get(x_152, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_152, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_158 = x_152; +} else { + lean_dec_ref(x_152); + x_158 = lean_box(0); } +x_159 = l_Lean_PersistentArray_append___rarg(x_35, x_157); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 2, 1); +} else { + x_160 = x_158; } +lean_ctor_set(x_160, 0, x_156); +lean_ctor_set(x_160, 1, x_159); +lean_ctor_set_uint8(x_160, sizeof(void*)*2, x_155); +x_161 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_161, 0, x_147); +lean_ctor_set(x_161, 1, x_154); +lean_ctor_set(x_161, 2, x_148); +lean_ctor_set(x_161, 3, x_149); +lean_ctor_set(x_161, 4, x_150); +lean_ctor_set(x_161, 5, x_151); +lean_ctor_set(x_161, 6, x_160); +lean_ctor_set(x_161, 7, x_153); +x_162 = lean_st_ref_set(x_3, x_161, x_121); +x_163 = lean_ctor_get(x_162, 1); +lean_inc(x_163); +lean_dec(x_162); +x_164 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_163); +lean_dec(x_3); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_166 = x_164; +} else { + lean_dec_ref(x_164); + x_166 = lean_box(0); } -else -{ -lean_object* x_151; lean_object* x_152; -x_151 = lean_ctor_get(x_85, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_85, 1); -lean_inc(x_152); -lean_dec(x_85); -x_16 = x_151; -x_17 = x_152; -goto block_81; +if (lean_is_scalar(x_166)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_166; +} +lean_ctor_set(x_167, 0, x_107); +lean_ctor_set(x_167, 1, x_165); +return x_167; } } else { -lean_object* x_153; lean_object* x_154; -lean_dec(x_1); -x_153 = lean_ctor_get(x_82, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_82, 1); -lean_inc(x_154); -lean_dec(x_82); -x_16 = x_153; -x_17 = x_154; -goto block_81; -} -block_81: -{ -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; -x_18 = lean_st_ref_get(x_3, x_17); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_20); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_box(0); -lean_inc(x_3); -lean_inc(x_2); -x_26 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_23, x_25, x_2, x_3, x_24); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_st_ref_take(x_3, x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); +uint8_t x_168; +lean_dec(x_112); +lean_dec(x_107); +lean_dec(x_35); +lean_dec(x_30); lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 6); -x_33 = lean_ctor_get(x_29, 1); -lean_dec(x_33); -x_34 = l_Lean_PersistentArray_append___rarg(x_9, x_21); -x_35 = !lean_is_exclusive(x_32); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_36 = lean_ctor_get(x_32, 1); -x_37 = l_Lean_PersistentArray_append___rarg(x_14, x_36); -lean_ctor_set(x_32, 1, x_37); -lean_ctor_set(x_29, 1, x_34); -x_38 = lean_st_ref_set(x_3, x_29, x_30); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_39); lean_dec(x_3); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +x_168 = !lean_is_exclusive(x_117); +if (x_168 == 0) { -lean_object* x_42; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -lean_ctor_set_tag(x_40, 1); -lean_ctor_set(x_40, 0, x_16); -return x_40; +return x_117; } else { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_117, 0); +x_170 = lean_ctor_get(x_117, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_117); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; +} +} +} +else +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_ctor_get(x_106, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_106, 1); +lean_inc(x_173); +lean_dec(x_106); +x_37 = x_172; +x_38 = x_173; +goto block_102; +} +} +else +{ +lean_object* x_174; lean_object* x_175; +lean_dec(x_1); +x_174 = lean_ctor_get(x_103, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_103, 1); +lean_inc(x_175); +lean_dec(x_103); +x_37 = x_174; +x_38 = x_175; +goto block_102; +} +block_102: +{ +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; +x_39 = lean_st_ref_get(x_3, x_38); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_16); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -else +x_43 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_41); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_box(0); +lean_inc(x_3); +lean_inc(x_28); +x_47 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_44, x_46, x_28, x_3, x_45); +if (lean_obj_tag(x_47) == 0) { -uint8_t 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; -x_45 = lean_ctor_get_uint8(x_32, sizeof(void*)*2); -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_32); -x_48 = l_Lean_PersistentArray_append___rarg(x_14, x_47); -x_49 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set_uint8(x_49, sizeof(void*)*2, x_45); -lean_ctor_set(x_29, 6, x_49); -lean_ctor_set(x_29, 1, x_34); -x_50 = lean_st_ref_set(x_3, x_29, x_30); -x_51 = lean_ctor_get(x_50, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_st_ref_take(x_3, x_48); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); -lean_dec(x_50); -x_52 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_51); +lean_dec(x_49); +x_52 = !lean_is_exclusive(x_50); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_53 = lean_ctor_get(x_50, 6); +x_54 = lean_ctor_get(x_50, 1); +lean_dec(x_54); +x_55 = l_Lean_MessageLog_append(x_30, x_42); +x_56 = !lean_is_exclusive(x_53); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_57 = lean_ctor_get(x_53, 1); +x_58 = l_Lean_PersistentArray_append___rarg(x_35, x_57); +lean_ctor_set(x_53, 1, x_58); +lean_ctor_set(x_50, 1, x_55); +x_59 = lean_st_ref_set(x_3, x_50, x_51); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_60); lean_dec(x_3); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_54 = x_52; -} else { - lean_dec_ref(x_52); - x_54 = lean_box(0); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set_tag(x_61, 1); +lean_ctor_set(x_61, 0, x_37); +return x_61; } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; - lean_ctor_set_tag(x_55, 1); -} -lean_ctor_set(x_55, 0, x_16); -lean_ctor_set(x_55, 1, x_53); -return x_55; +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_37); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } 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; lean_object* x_62; lean_object* x_63; uint8_t 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_56 = lean_ctor_get(x_29, 0); -x_57 = lean_ctor_get(x_29, 2); -x_58 = lean_ctor_get(x_29, 3); -x_59 = lean_ctor_get(x_29, 4); -x_60 = lean_ctor_get(x_29, 5); -x_61 = lean_ctor_get(x_29, 6); -x_62 = lean_ctor_get(x_29, 7); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_29); -x_63 = l_Lean_PersistentArray_append___rarg(x_9, x_21); -x_64 = lean_ctor_get_uint8(x_61, sizeof(void*)*2); -x_65 = lean_ctor_get(x_61, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_61, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_67 = x_61; -} else { - lean_dec_ref(x_61); - x_67 = lean_box(0); -} -x_68 = l_Lean_PersistentArray_append___rarg(x_14, x_66); -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_65); -lean_ctor_set(x_69, 1, x_68); -lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_64); -x_70 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_70, 0, x_56); -lean_ctor_set(x_70, 1, x_63); -lean_ctor_set(x_70, 2, x_57); -lean_ctor_set(x_70, 3, x_58); -lean_ctor_set(x_70, 4, x_59); -lean_ctor_set(x_70, 5, x_60); -lean_ctor_set(x_70, 6, x_69); -lean_ctor_set(x_70, 7, x_62); -x_71 = lean_st_ref_set(x_3, x_70, x_30); +uint8_t 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_66 = lean_ctor_get_uint8(x_53, sizeof(void*)*2); +x_67 = lean_ctor_get(x_53, 0); +x_68 = lean_ctor_get(x_53, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_53); +x_69 = l_Lean_PersistentArray_append___rarg(x_35, x_68); +x_70 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set_uint8(x_70, sizeof(void*)*2, x_66); +lean_ctor_set(x_50, 6, x_70); +lean_ctor_set(x_50, 1, x_55); +x_71 = lean_st_ref_set(x_3, x_50, x_51); x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); lean_dec(x_71); -x_73 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_72); +x_73 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_72); lean_dec(x_3); x_74 = lean_ctor_get(x_73, 1); lean_inc(x_74); @@ -24467,434 +22445,512 @@ if (lean_is_scalar(x_75)) { x_76 = x_75; lean_ctor_set_tag(x_76, 1); } -lean_ctor_set(x_76, 0, x_16); +lean_ctor_set(x_76, 0, x_37); lean_ctor_set(x_76, 1, x_74); return x_76; } } else { -uint8_t x_77; -lean_dec(x_21); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -x_77 = !lean_is_exclusive(x_26); -if (x_77 == 0) -{ -return x_26; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_26, 0); -x_79 = lean_ctor_get(x_26, 1); +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; 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; +x_77 = lean_ctor_get(x_50, 0); +x_78 = lean_ctor_get(x_50, 2); +x_79 = lean_ctor_get(x_50, 3); +x_80 = lean_ctor_get(x_50, 4); +x_81 = lean_ctor_get(x_50, 5); +x_82 = lean_ctor_get(x_50, 6); +x_83 = lean_ctor_get(x_50, 7); +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_dec(x_26); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_inc(x_77); +lean_dec(x_50); +x_84 = l_Lean_MessageLog_append(x_30, x_42); +x_85 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_86 = lean_ctor_get(x_82, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_82, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_88 = x_82; +} else { + lean_dec_ref(x_82); + x_88 = lean_box(0); +} +x_89 = l_Lean_PersistentArray_append___rarg(x_35, x_87); +if (lean_is_scalar(x_88)) { + x_90 = lean_alloc_ctor(0, 2, 1); +} else { + x_90 = x_88; +} +lean_ctor_set(x_90, 0, x_86); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_85); +x_91 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_91, 0, x_77); +lean_ctor_set(x_91, 1, x_84); +lean_ctor_set(x_91, 2, x_78); +lean_ctor_set(x_91, 3, x_79); +lean_ctor_set(x_91, 4, x_80); +lean_ctor_set(x_91, 5, x_81); +lean_ctor_set(x_91, 6, x_90); +lean_ctor_set(x_91, 7, x_83); +x_92 = lean_st_ref_set(x_3, x_91, x_51); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_94 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_93); +lean_dec(x_3); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_96; + lean_ctor_set_tag(x_97, 1); +} +lean_ctor_set(x_97, 0, x_37); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +uint8_t x_98; +lean_dec(x_42); +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_3); +x_98 = !lean_is_exclusive(x_47); +if (x_98 == 0) +{ +return x_47; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_47, 0); +x_100 = lean_ctor_get(x_47, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_47); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } } } 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; lean_object* x_171; lean_object* x_212; -x_155 = lean_ctor_get(x_6, 0); -x_156 = lean_ctor_get(x_6, 1); -x_157 = lean_ctor_get(x_6, 2); -x_158 = lean_ctor_get(x_6, 3); -x_159 = lean_ctor_get(x_6, 4); -x_160 = lean_ctor_get(x_6, 5); -x_161 = lean_ctor_get(x_6, 6); -x_162 = lean_ctor_get(x_6, 7); -lean_inc(x_162); -lean_inc(x_161); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_158); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); -lean_dec(x_6); -x_163 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_164 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_164, 0, x_155); -lean_ctor_set(x_164, 1, x_163); -lean_ctor_set(x_164, 2, x_157); -lean_ctor_set(x_164, 3, x_158); -lean_ctor_set(x_164, 4, x_159); -lean_ctor_set(x_164, 5, x_160); -lean_ctor_set(x_164, 6, x_161); -lean_ctor_set(x_164, 7, x_162); -x_165 = lean_st_ref_set(x_3, x_164, x_7); -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec(x_165); -x_167 = l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(x_3, x_166); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_233; +x_176 = lean_ctor_get(x_26, 0); +x_177 = lean_ctor_get(x_26, 1); +x_178 = lean_ctor_get(x_26, 2); +x_179 = lean_ctor_get(x_26, 3); +x_180 = lean_ctor_get(x_26, 4); +x_181 = lean_ctor_get(x_26, 5); +x_182 = lean_ctor_get(x_26, 6); +x_183 = lean_ctor_get(x_26, 7); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_26); +x_184 = l_Lean_Elab_Command_State_messages___default___closed__4; +x_185 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_185, 0, x_176); +lean_ctor_set(x_185, 1, x_184); +lean_ctor_set(x_185, 2, x_178); +lean_ctor_set(x_185, 3, x_179); +lean_ctor_set(x_185, 4, x_180); +lean_ctor_set(x_185, 5, x_181); +lean_ctor_set(x_185, 6, x_182); +lean_ctor_set(x_185, 7, x_183); +x_186 = lean_st_ref_set(x_3, x_185, x_27); +x_187 = lean_ctor_get(x_186, 1); +lean_inc(x_187); +lean_dec(x_186); +x_188 = l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(x_3, x_187); +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); lean_inc(x_3); -lean_inc(x_2); +lean_inc(x_28); lean_inc(x_1); -x_212 = l_Lean_Elab_Command_elabCommand(x_1, x_2, x_3, x_169); -if (lean_obj_tag(x_212) == 0) +x_233 = l_Lean_Elab_Command_elabCommand(x_1, x_28, x_3, x_190); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -lean_dec(x_212); -x_214 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runLinters), 4, 1); -lean_closure_set(x_214, 0, x_1); -lean_inc(x_3); -lean_inc(x_2); -x_215 = l_Lean_Elab_withLogging___at_Lean_Elab_Command_elabCommand___spec__2(x_214, x_2, x_3, x_213); -if (lean_obj_tag(x_215) == 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_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); -x_218 = lean_st_ref_get(x_3, x_217); -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 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_220); -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = lean_box(0); -lean_inc(x_3); -lean_inc(x_2); -x_226 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_223, x_225, x_2, x_3, x_224); -if (lean_obj_tag(x_226) == 0) -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t 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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_227 = lean_ctor_get(x_226, 1); -lean_inc(x_227); -lean_dec(x_226); -x_228 = lean_st_ref_take(x_3, x_227); -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -x_231 = lean_ctor_get(x_229, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_229, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_229, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_229, 4); +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_233, 1); lean_inc(x_234); -x_235 = lean_ctor_get(x_229, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_229, 6); -lean_inc(x_236); -x_237 = lean_ctor_get(x_229, 7); +lean_dec(x_233); +x_235 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runLinters), 4, 1); +lean_closure_set(x_235, 0, x_1); +lean_inc(x_3); +lean_inc(x_28); +x_236 = l_Lean_Elab_withLogging___at_Lean_Elab_Command_elabCommand___spec__2(x_235, x_28, x_3, x_234); +if (lean_obj_tag(x_236) == 0) +{ +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_237 = lean_ctor_get(x_236, 0); lean_inc(x_237); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - lean_ctor_release(x_229, 2); - lean_ctor_release(x_229, 3); - lean_ctor_release(x_229, 4); - lean_ctor_release(x_229, 5); - lean_ctor_release(x_229, 6); - lean_ctor_release(x_229, 7); - x_238 = x_229; -} else { - lean_dec_ref(x_229); - x_238 = lean_box(0); -} -x_239 = l_Lean_PersistentArray_append___rarg(x_156, x_221); -x_240 = lean_ctor_get_uint8(x_236, sizeof(void*)*2); -x_241 = lean_ctor_get(x_236, 0); +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +lean_dec(x_236); +x_239 = lean_st_ref_get(x_3, x_238); +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_239, 1); lean_inc(x_241); -x_242 = lean_ctor_get(x_236, 1); +lean_dec(x_239); +x_242 = lean_ctor_get(x_240, 1); lean_inc(x_242); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_243 = x_236; -} else { - lean_dec_ref(x_236); - x_243 = lean_box(0); -} -x_244 = l_Lean_PersistentArray_append___rarg(x_168, x_242); -if (lean_is_scalar(x_243)) { - x_245 = lean_alloc_ctor(0, 2, 1); -} else { - x_245 = x_243; -} -lean_ctor_set(x_245, 0, x_241); -lean_ctor_set(x_245, 1, x_244); -lean_ctor_set_uint8(x_245, sizeof(void*)*2, x_240); -if (lean_is_scalar(x_238)) { - x_246 = lean_alloc_ctor(0, 8, 0); -} else { - x_246 = x_238; -} -lean_ctor_set(x_246, 0, x_231); -lean_ctor_set(x_246, 1, x_239); -lean_ctor_set(x_246, 2, x_232); -lean_ctor_set(x_246, 3, x_233); -lean_ctor_set(x_246, 4, x_234); -lean_ctor_set(x_246, 5, x_235); -lean_ctor_set(x_246, 6, x_245); -lean_ctor_set(x_246, 7, x_237); -x_247 = lean_st_ref_set(x_3, x_246, x_230); +lean_dec(x_240); +x_243 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_241); +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_box(0); +lean_inc(x_3); +lean_inc(x_28); +x_247 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_244, x_246, x_28, x_3, x_245); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; x_248 = lean_ctor_get(x_247, 1); lean_inc(x_248); lean_dec(x_247); -x_249 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_248); -lean_dec(x_3); -x_250 = lean_ctor_get(x_249, 1); +x_249 = lean_st_ref_take(x_3, x_248); +x_250 = lean_ctor_get(x_249, 0); lean_inc(x_250); -if (lean_is_exclusive(x_249)) { - lean_ctor_release(x_249, 0); - lean_ctor_release(x_249, 1); - x_251 = x_249; -} else { - lean_dec_ref(x_249); - x_251 = lean_box(0); -} -if (lean_is_scalar(x_251)) { - x_252 = lean_alloc_ctor(0, 2, 0); -} else { - x_252 = x_251; -} -lean_ctor_set(x_252, 0, x_216); -lean_ctor_set(x_252, 1, x_250); -return x_252; -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -lean_dec(x_221); -lean_dec(x_216); -lean_dec(x_168); -lean_dec(x_156); -lean_dec(x_3); -lean_dec(x_2); -x_253 = lean_ctor_get(x_226, 0); +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +lean_dec(x_249); +x_252 = lean_ctor_get(x_250, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_250, 2); lean_inc(x_253); -x_254 = lean_ctor_get(x_226, 1); +x_254 = lean_ctor_get(x_250, 3); lean_inc(x_254); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_255 = x_226; -} else { - lean_dec_ref(x_226); - x_255 = lean_box(0); -} -if (lean_is_scalar(x_255)) { - x_256 = lean_alloc_ctor(1, 2, 0); -} else { - x_256 = x_255; -} -lean_ctor_set(x_256, 0, x_253); -lean_ctor_set(x_256, 1, x_254); -return x_256; -} -} -else -{ -lean_object* x_257; lean_object* x_258; -x_257 = lean_ctor_get(x_215, 0); +x_255 = lean_ctor_get(x_250, 4); +lean_inc(x_255); +x_256 = lean_ctor_get(x_250, 5); +lean_inc(x_256); +x_257 = lean_ctor_get(x_250, 6); lean_inc(x_257); -x_258 = lean_ctor_get(x_215, 1); +x_258 = lean_ctor_get(x_250, 7); lean_inc(x_258); -lean_dec(x_215); -x_170 = x_257; -x_171 = x_258; -goto block_211; +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + lean_ctor_release(x_250, 2); + lean_ctor_release(x_250, 3); + lean_ctor_release(x_250, 4); + lean_ctor_release(x_250, 5); + lean_ctor_release(x_250, 6); + lean_ctor_release(x_250, 7); + x_259 = x_250; +} else { + lean_dec_ref(x_250); + x_259 = lean_box(0); +} +x_260 = l_Lean_MessageLog_append(x_177, x_242); +x_261 = lean_ctor_get_uint8(x_257, sizeof(void*)*2); +x_262 = lean_ctor_get(x_257, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_257, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_264 = x_257; +} else { + lean_dec_ref(x_257); + x_264 = lean_box(0); +} +x_265 = l_Lean_PersistentArray_append___rarg(x_189, x_263); +if (lean_is_scalar(x_264)) { + x_266 = lean_alloc_ctor(0, 2, 1); +} else { + x_266 = x_264; +} +lean_ctor_set(x_266, 0, x_262); +lean_ctor_set(x_266, 1, x_265); +lean_ctor_set_uint8(x_266, sizeof(void*)*2, x_261); +if (lean_is_scalar(x_259)) { + x_267 = lean_alloc_ctor(0, 8, 0); +} else { + x_267 = x_259; +} +lean_ctor_set(x_267, 0, x_252); +lean_ctor_set(x_267, 1, x_260); +lean_ctor_set(x_267, 2, x_253); +lean_ctor_set(x_267, 3, x_254); +lean_ctor_set(x_267, 4, x_255); +lean_ctor_set(x_267, 5, x_256); +lean_ctor_set(x_267, 6, x_266); +lean_ctor_set(x_267, 7, x_258); +x_268 = lean_st_ref_set(x_3, x_267, x_251); +x_269 = lean_ctor_get(x_268, 1); +lean_inc(x_269); +lean_dec(x_268); +x_270 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_269); +lean_dec(x_3); +x_271 = lean_ctor_get(x_270, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_272 = x_270; +} else { + lean_dec_ref(x_270); + x_272 = lean_box(0); +} +if (lean_is_scalar(x_272)) { + x_273 = lean_alloc_ctor(0, 2, 0); +} else { + x_273 = x_272; +} +lean_ctor_set(x_273, 0, x_237); +lean_ctor_set(x_273, 1, x_271); +return x_273; +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_242); +lean_dec(x_237); +lean_dec(x_189); +lean_dec(x_177); +lean_dec(x_28); +lean_dec(x_3); +x_274 = lean_ctor_get(x_247, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_247, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_276 = x_247; +} else { + lean_dec_ref(x_247); + x_276 = lean_box(0); +} +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); +} else { + x_277 = x_276; +} +lean_ctor_set(x_277, 0, x_274); +lean_ctor_set(x_277, 1, x_275); +return x_277; } } else { -lean_object* x_259; lean_object* x_260; +lean_object* x_278; lean_object* x_279; +x_278 = lean_ctor_get(x_236, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_236, 1); +lean_inc(x_279); +lean_dec(x_236); +x_191 = x_278; +x_192 = x_279; +goto block_232; +} +} +else +{ +lean_object* x_280; lean_object* x_281; lean_dec(x_1); -x_259 = lean_ctor_get(x_212, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_212, 1); -lean_inc(x_260); -lean_dec(x_212); -x_170 = x_259; -x_171 = x_260; -goto block_211; +x_280 = lean_ctor_get(x_233, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_233, 1); +lean_inc(x_281); +lean_dec(x_233); +x_191 = x_280; +x_192 = x_281; +goto block_232; } -block_211: +block_232: { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_172 = lean_st_ref_get(x_3, x_171); -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 = lean_ctor_get(x_173, 1); -lean_inc(x_175); -lean_dec(x_173); -x_176 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_174); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_179 = lean_box(0); -lean_inc(x_3); -lean_inc(x_2); -x_180 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_177, x_179, x_2, x_3, x_178); -if (lean_obj_tag(x_180) == 0) -{ -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; 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; -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec(x_180); -x_182 = lean_st_ref_take(x_3, x_181); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_185 = lean_ctor_get(x_183, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_183, 2); -lean_inc(x_186); -x_187 = lean_ctor_get(x_183, 3); -lean_inc(x_187); -x_188 = lean_ctor_get(x_183, 4); -lean_inc(x_188); -x_189 = lean_ctor_get(x_183, 5); -lean_inc(x_189); -x_190 = lean_ctor_get(x_183, 6); -lean_inc(x_190); -x_191 = lean_ctor_get(x_183, 7); -lean_inc(x_191); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - lean_ctor_release(x_183, 2); - lean_ctor_release(x_183, 3); - lean_ctor_release(x_183, 4); - lean_ctor_release(x_183, 5); - lean_ctor_release(x_183, 6); - lean_ctor_release(x_183, 7); - x_192 = x_183; -} else { - lean_dec_ref(x_183); - x_192 = lean_box(0); -} -x_193 = l_Lean_PersistentArray_append___rarg(x_156, x_175); -x_194 = lean_ctor_get_uint8(x_190, sizeof(void*)*2); -x_195 = lean_ctor_get(x_190, 0); +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; +x_193 = lean_st_ref_get(x_3, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); lean_inc(x_195); -x_196 = lean_ctor_get(x_190, 1); +lean_dec(x_193); +x_196 = lean_ctor_get(x_194, 1); lean_inc(x_196); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_197 = x_190; -} else { - lean_dec_ref(x_190); - x_197 = lean_box(0); -} -x_198 = l_Lean_PersistentArray_append___rarg(x_168, x_196); -if (lean_is_scalar(x_197)) { - x_199 = lean_alloc_ctor(0, 2, 1); -} else { - x_199 = x_197; -} -lean_ctor_set(x_199, 0, x_195); -lean_ctor_set(x_199, 1, x_198); -lean_ctor_set_uint8(x_199, sizeof(void*)*2, x_194); -if (lean_is_scalar(x_192)) { - x_200 = lean_alloc_ctor(0, 8, 0); -} else { - x_200 = x_192; -} -lean_ctor_set(x_200, 0, x_185); -lean_ctor_set(x_200, 1, x_193); -lean_ctor_set(x_200, 2, x_186); -lean_ctor_set(x_200, 3, x_187); -lean_ctor_set(x_200, 4, x_188); -lean_ctor_set(x_200, 5, x_189); -lean_ctor_set(x_200, 6, x_199); -lean_ctor_set(x_200, 7, x_191); -x_201 = lean_st_ref_set(x_3, x_200, x_184); +lean_dec(x_194); +x_197 = l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(x_3, x_195); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_box(0); +lean_inc(x_3); +lean_inc(x_28); +x_201 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(x_198, x_200, x_28, x_3, x_199); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); lean_dec(x_201); -x_203 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_2, x_3, x_202); -lean_dec(x_3); -x_204 = lean_ctor_get(x_203, 1); +x_203 = lean_st_ref_take(x_3, x_202); +x_204 = lean_ctor_get(x_203, 0); lean_inc(x_204); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_205 = x_203; +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = lean_ctor_get(x_204, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_204, 2); +lean_inc(x_207); +x_208 = lean_ctor_get(x_204, 3); +lean_inc(x_208); +x_209 = lean_ctor_get(x_204, 4); +lean_inc(x_209); +x_210 = lean_ctor_get(x_204, 5); +lean_inc(x_210); +x_211 = lean_ctor_get(x_204, 6); +lean_inc(x_211); +x_212 = lean_ctor_get(x_204, 7); +lean_inc(x_212); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + lean_ctor_release(x_204, 2); + lean_ctor_release(x_204, 3); + lean_ctor_release(x_204, 4); + lean_ctor_release(x_204, 5); + lean_ctor_release(x_204, 6); + lean_ctor_release(x_204, 7); + x_213 = x_204; } else { - lean_dec_ref(x_203); - x_205 = lean_box(0); + lean_dec_ref(x_204); + x_213 = lean_box(0); } -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); +x_214 = l_Lean_MessageLog_append(x_177, x_196); +x_215 = lean_ctor_get_uint8(x_211, sizeof(void*)*2); +x_216 = lean_ctor_get(x_211, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_211, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_218 = x_211; } else { - x_206 = x_205; - lean_ctor_set_tag(x_206, 1); + lean_dec_ref(x_211); + x_218 = lean_box(0); } -lean_ctor_set(x_206, 0, x_170); -lean_ctor_set(x_206, 1, x_204); -return x_206; +x_219 = l_Lean_PersistentArray_append___rarg(x_189, x_217); +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_216); +lean_ctor_set(x_220, 1, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*2, x_215); +if (lean_is_scalar(x_213)) { + x_221 = lean_alloc_ctor(0, 8, 0); +} else { + x_221 = x_213; +} +lean_ctor_set(x_221, 0, x_206); +lean_ctor_set(x_221, 1, x_214); +lean_ctor_set(x_221, 2, x_207); +lean_ctor_set(x_221, 3, x_208); +lean_ctor_set(x_221, 4, x_209); +lean_ctor_set(x_221, 5, x_210); +lean_ctor_set(x_221, 6, x_220); +lean_ctor_set(x_221, 7, x_212); +x_222 = lean_st_ref_set(x_3, x_221, x_205); +x_223 = lean_ctor_get(x_222, 1); +lean_inc(x_223); +lean_dec(x_222); +x_224 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(x_28, x_3, x_223); +lean_dec(x_3); +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_226 = x_224; +} else { + lean_dec_ref(x_224); + x_226 = lean_box(0); +} +if (lean_is_scalar(x_226)) { + x_227 = lean_alloc_ctor(1, 2, 0); +} else { + x_227 = x_226; + lean_ctor_set_tag(x_227, 1); +} +lean_ctor_set(x_227, 0, x_191); +lean_ctor_set(x_227, 1, x_225); +return x_227; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_175); -lean_dec(x_170); -lean_dec(x_168); -lean_dec(x_156); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_196); +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_177); +lean_dec(x_28); lean_dec(x_3); -lean_dec(x_2); -x_207 = lean_ctor_get(x_180, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_180, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_209 = x_180; +x_228 = lean_ctor_get(x_201, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_201, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_230 = x_201; } else { - lean_dec_ref(x_180); - x_209 = lean_box(0); + lean_dec_ref(x_201); + x_230 = lean_box(0); } -if (lean_is_scalar(x_209)) { - x_210 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); } else { - x_210 = x_209; + x_231 = x_230; +} +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +return x_231; } -lean_ctor_set(x_210, 0, x_207); -lean_ctor_set(x_210, 1, x_208); -return x_210; } } } @@ -24952,7 +23008,7 @@ return x_21; } else { -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_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; 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; x_22 = lean_ctor_get(x_2, 0); x_23 = lean_ctor_get(x_2, 1); x_24 = lean_ctor_get(x_2, 2); @@ -24961,6 +23017,9 @@ x_26 = lean_ctor_get(x_2, 4); x_27 = lean_ctor_get(x_2, 5); x_28 = lean_ctor_get(x_2, 7); x_29 = lean_ctor_get(x_2, 8); +x_30 = lean_ctor_get(x_2, 9); +x_31 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -24970,38 +23029,40 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_2); -x_30 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_23); -lean_ctor_set(x_30, 2, x_24); -lean_ctor_set(x_30, 3, x_25); -lean_ctor_set(x_30, 4, x_26); -lean_ctor_set(x_30, 5, x_27); -lean_ctor_set(x_30, 6, x_8); -lean_ctor_set(x_30, 7, x_28); -lean_ctor_set(x_30, 8, x_29); -x_31 = lean_st_ref_get(x_3, x_7); -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_ctor_get(x_32, 2); +x_32 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_32, 2, x_24); +lean_ctor_set(x_32, 3, x_25); +lean_ctor_set(x_32, 4, x_26); +lean_ctor_set(x_32, 5, x_27); +lean_ctor_set(x_32, 6, x_8); +lean_ctor_set(x_32, 7, x_28); +lean_ctor_set(x_32, 8, x_29); +lean_ctor_set(x_32, 9, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*10, x_31); +x_33 = lean_st_ref_get(x_3, x_7); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Elab_Command_instInhabitedScope; -x_36 = l_List_head_x21___rarg(x_35, x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_34, 2); +lean_inc(x_36); lean_dec(x_34); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); +x_37 = l_Lean_Elab_Command_instInhabitedScope; +x_38 = l_List_head_x21___rarg(x_37, x_36); lean_dec(x_36); -x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommandTopLevel___lambda__1), 4, 1); -lean_closure_set(x_38, 0, x_1); -x_39 = l_Lean_Elab_Command_elabCommandTopLevel___closed__1; -x_40 = lean_box(0); -x_41 = l_Lean_profileitM___at_Lean_Elab_Command_runLinters___spec__15___rarg(x_39, x_37, x_38, x_40, x_30, x_3, x_33); -lean_dec(x_37); -return x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCommandTopLevel___lambda__1), 4, 1); +lean_closure_set(x_40, 0, x_1); +x_41 = l_Lean_Elab_Command_elabCommandTopLevel___closed__1; +x_42 = lean_box(0); +x_43 = l_Lean_profileitM___at_Lean_Elab_Command_runLinters___spec__15___rarg(x_41, x_39, x_40, x_42, x_32, x_3, x_35); +lean_dec(x_39); +return x_43; } } } @@ -25330,9 +23391,9 @@ static lean_object* _init_l_Lean_Elab_Command_getBracketedBinderIds___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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__14; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__14; x_4 = l_Lean_Elab_Command_getBracketedBinderIds___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -25350,9 +23411,9 @@ static lean_object* _init_l_Lean_Elab_Command_getBracketedBinderIds___closed__4( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__14; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__14; x_4 = l_Lean_Elab_Command_getBracketedBinderIds___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -25370,9 +23431,9 @@ static lean_object* _init_l_Lean_Elab_Command_getBracketedBinderIds___closed__6( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__14; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__14; x_4 = l_Lean_Elab_Command_getBracketedBinderIds___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -25829,7 +23890,7 @@ x_27 = l_Lean_Elab_Command_State_messages___default___closed__3; x_28 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___closed__1; lean_inc(x_24); lean_inc(x_22); -x_29 = lean_alloc_ctor(0, 8, 10); +x_29 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_29, 0, x_21); lean_ctor_set(x_29, 1, x_6); lean_ctor_set(x_29, 2, x_22); @@ -25838,16 +23899,17 @@ lean_ctor_set(x_29, 4, x_28); lean_ctor_set(x_29, 5, x_20); lean_ctor_set(x_29, 6, x_6); lean_ctor_set(x_29, 7, x_24); -lean_ctor_set_uint8(x_29, sizeof(void*)*8, x_25); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 1, x_25); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 2, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 3, x_25); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 4, x_25); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 5, x_23); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 6, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 7, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 8, x_25); -lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 9, x_26); +lean_ctor_set(x_29, 8, x_21); +lean_ctor_set_uint8(x_29, sizeof(void*)*9, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 1, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 2, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 3, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 4, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 5, x_23); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 6, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 7, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 8, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*9 + 9, x_26); return x_29; } } @@ -28901,24 +26963,26 @@ return x_34; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; uint8_t 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_object* x_57; +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t 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_35 = lean_ctor_get(x_4, 0); x_36 = lean_ctor_get(x_4, 1); x_37 = lean_ctor_get(x_4, 2); -x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); x_41 = lean_ctor_get(x_4, 3); x_42 = lean_ctor_get(x_4, 4); x_43 = lean_ctor_get(x_4, 5); -x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4); -x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5); -x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6); -x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); +x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); x_49 = lean_ctor_get(x_4, 7); -x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 8); -x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 9); +x_50 = lean_ctor_get(x_4, 8); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_50); lean_inc(x_49); lean_inc(x_43); lean_inc(x_42); @@ -28927,39 +26991,40 @@ lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); lean_dec(x_4); -x_52 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_52, 0, x_35); -lean_ctor_set(x_52, 1, x_36); -lean_ctor_set(x_52, 2, x_37); -lean_ctor_set(x_52, 3, x_41); -lean_ctor_set(x_52, 4, x_42); -lean_ctor_set(x_52, 5, x_43); -lean_ctor_set(x_52, 6, x_27); -lean_ctor_set(x_52, 7, x_49); -lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_38); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_39); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_40); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_44); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 4, x_45); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 5, x_46); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 6, x_47); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 7, x_48); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 8, x_50); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 9, x_51); -x_53 = l_Lean_Core_resetMessageLog(x_8, x_9, x_26); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runTermElabM___rarg___lambda__1___boxed), 10, 1); -lean_closure_set(x_55, 0, x_2); -x_56 = l_Lean_Elab_Command_runTermElabM___rarg___lambda__2___closed__1; -x_57 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_56, x_55, x_52, x_5, x_6, x_7, x_8, x_9, x_54); -return x_57; +x_53 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_53, 0, x_35); +lean_ctor_set(x_53, 1, x_36); +lean_ctor_set(x_53, 2, x_37); +lean_ctor_set(x_53, 3, x_41); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set(x_53, 5, x_43); +lean_ctor_set(x_53, 6, x_27); +lean_ctor_set(x_53, 7, x_49); +lean_ctor_set(x_53, 8, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*9, x_38); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 1, x_39); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 2, x_40); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 3, x_44); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 4, x_45); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 5, x_46); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 6, x_47); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 7, x_48); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 8, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 9, x_52); +x_54 = l_Lean_Core_resetMessageLog(x_8, x_9, x_26); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runTermElabM___rarg___lambda__1___boxed), 10, 1); +lean_closure_set(x_56, 0, x_2); +x_57 = l_Lean_Elab_Command_runTermElabM___rarg___lambda__2___closed__1; +x_58 = l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(x_3, x_57, x_56, x_53, x_5, x_6, x_7, x_8, x_9, x_55); +return x_58; } } else { -uint8_t x_58; +uint8_t x_59; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -28968,23 +27033,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_58 = !lean_is_exclusive(x_13); -if (x_58 == 0) +x_59 = !lean_is_exclusive(x_13); +if (x_59 == 0) { return x_13; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_13, 0); -x_60 = lean_ctor_get(x_13, 1); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_13, 0); +x_61 = lean_ctor_get(x_13, 1); +lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); lean_dec(x_13); -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; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } @@ -29068,7 +27133,7 @@ lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_catchExceptions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_withLoggingExceptions(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -29249,7 +27314,7 @@ _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_Lean_Elab_Command_modifyScope___closed__1; x_2 = l_Lean_Elab_Command_modifyScope___closed__2; -x_3 = lean_unsigned_to_nat(478u); +x_3 = lean_unsigned_to_nat(520u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Elab_Command_modifyScope___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -30616,7 +28681,7 @@ return x_18; } else { -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; uint8_t x_31; +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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; x_19 = lean_ctor_get(x_2, 0); x_20 = lean_ctor_get(x_2, 1); x_21 = lean_ctor_get(x_2, 2); @@ -30625,6 +28690,9 @@ x_23 = lean_ctor_get(x_2, 4); x_24 = lean_ctor_get(x_2, 5); x_25 = lean_ctor_get(x_2, 7); x_26 = lean_ctor_get(x_2, 8); +x_27 = lean_ctor_get(x_2, 9); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -30634,38 +28702,40 @@ lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_dec(x_2); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_20); -lean_ctor_set(x_27, 2, x_21); -lean_ctor_set(x_27, 3, x_22); -lean_ctor_set(x_27, 4, x_23); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_9); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set(x_27, 8, x_26); -x_28 = l_Lean_Elab_Command_getLevelNames___rarg(x_3, x_8); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_5, x_29); -lean_dec(x_29); -if (x_31 == 0) +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_24); +lean_ctor_set(x_29, 6, x_9); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_28); +x_30 = l_Lean_Elab_Command_getLevelNames___rarg(x_3, x_8); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_5, x_31); +lean_dec(x_31); +if (x_33 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Command_addUnivLevel___lambda__1), 2, 1); -lean_closure_set(x_32, 0, x_5); -x_33 = l_Lean_Elab_Command_modifyScope(x_32, x_27, x_3, x_30); -lean_dec(x_27); -return x_33; +lean_object* x_34; lean_object* x_35; +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_addUnivLevel___lambda__1), 2, 1); +lean_closure_set(x_34, 0, x_5); +x_35 = l_Lean_Elab_Command_modifyScope(x_34, x_29, x_3, x_32); +lean_dec(x_29); +return x_35; } else { -lean_object* x_34; -x_34 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1(x_5, x_27, x_3, x_30); -return x_34; +lean_object* x_36; +x_36 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1(x_5, x_29, x_3, x_32); +return x_36; } } } @@ -34157,7 +32227,7 @@ return x_26; } else { -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_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_27 = lean_ctor_get(x_5, 0); x_28 = lean_ctor_get(x_5, 1); x_29 = lean_ctor_get(x_5, 2); @@ -34166,6 +32236,9 @@ x_31 = lean_ctor_get(x_5, 4); x_32 = lean_ctor_get(x_5, 5); x_33 = lean_ctor_get(x_5, 7); x_34 = lean_ctor_get(x_5, 8); +x_35 = lean_ctor_get(x_5, 9); +x_36 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); @@ -34175,55 +32248,57 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_5); -x_35 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -lean_ctor_set(x_35, 2, x_29); -lean_ctor_set(x_35, 3, x_30); -lean_ctor_set(x_35, 4, x_31); -lean_ctor_set(x_35, 5, x_32); -lean_ctor_set(x_35, 6, x_19); -lean_ctor_set(x_35, 7, x_33); -lean_ctor_set(x_35, 8, x_34); -x_36 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__15(x_10, x_35, x_6, x_18); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_39 = x_36; +x_37 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set(x_37, 3, x_30); +lean_ctor_set(x_37, 4, x_31); +lean_ctor_set(x_37, 5, x_32); +lean_ctor_set(x_37, 6, x_19); +lean_ctor_set(x_37, 7, x_33); +lean_ctor_set(x_37, 8, x_34); +lean_ctor_set(x_37, 9, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*10, x_36); +x_38 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__15(x_10, x_37, x_6, x_18); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; } else { - lean_dec_ref(x_36); - x_39 = lean_box(0); + lean_dec_ref(x_38); + x_41 = lean_box(0); } -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); } else { - x_40 = x_39; + x_42 = x_41; } -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; } } } else { -lean_object* x_41; +lean_object* x_43; lean_dec(x_5); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_7); -return x_41; +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_4); +lean_ctor_set(x_43, 1, x_7); +return x_43; } } } LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___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; 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_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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_9 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -34248,119 +32323,124 @@ x_19 = lean_ctor_get(x_6, 7); lean_inc(x_19); x_20 = lean_ctor_get(x_6, 8); lean_inc(x_20); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_12); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); +x_21 = lean_ctor_get(x_6, 9); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_12); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); lean_inc(x_7); lean_inc(x_3); -x_22 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2(x_2, x_3, x_4, x_21, x_7, x_11); -if (lean_obj_tag(x_22) == 0) +x_24 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2(x_2, x_3, x_4, x_23, x_7, x_11); +if (lean_obj_tag(x_24) == 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_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 0); +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_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -x_26 = lean_ctor_get(x_23, 1); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_ctor_get(x_3, 0); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); lean_inc(x_27); -lean_dec(x_3); -lean_inc(x_25); -x_28 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__13(x_25, x_27, x_6, x_7, x_24); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_28, 0); -lean_dec(x_30); -x_31 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_31, 0, x_26); -lean_ctor_set(x_31, 1, x_25); -lean_ctor_set(x_31, 2, x_5); -lean_ctor_set(x_28, 0, x_31); -return x_28; -} -else -{ -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_alloc_ctor(0, 3, 0); -lean_ctor_set(x_33, 0, x_26); -lean_ctor_set(x_33, 1, x_25); -lean_ctor_set(x_33, 2, x_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); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_26); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); lean_dec(x_25); -lean_dec(x_5); -x_35 = !lean_is_exclusive(x_28); -if (x_35 == 0) +x_29 = lean_ctor_get(x_3, 0); +lean_inc(x_29); +lean_dec(x_3); +lean_inc(x_27); +x_30 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__13(x_27, x_29, x_6, x_7, x_26); +if (lean_obj_tag(x_30) == 0) { -return x_28; +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +x_33 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_27); +lean_ctor_set(x_33, 2, x_5); +lean_ctor_set(x_30, 0, x_33); +return x_30; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_28, 0); -x_37 = lean_ctor_get(x_28, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_27); +lean_ctor_set(x_35, 2, x_5); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +uint8_t x_37; lean_dec(x_28); -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_dec(x_27); +lean_dec(x_5); +x_37 = !lean_is_exclusive(x_30); +if (x_37 == 0) +{ +return x_30; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_30, 0); +x_39 = lean_ctor_get(x_30, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_30); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_39; +uint8_t x_41; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_39 = !lean_is_exclusive(x_22); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) { -return x_22; +return x_24; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_22, 0); -x_41 = lean_ctor_get(x_22, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_22); -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_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_24, 0); +x_43 = lean_ctor_get(x_24, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_24); +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; } } } @@ -35464,784 +33544,793 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_liftCommandElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +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; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_2, 2); x_8 = lean_ctor_get(x_2, 4); x_9 = lean_ctor_get(x_2, 5); -x_10 = lean_st_ref_get(x_3, x_4); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +x_10 = lean_ctor_get(x_2, 11); +x_11 = lean_st_ref_get(x_3, x_4); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 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_20; lean_object* x_21; 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; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_box(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; 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; lean_object* x_34; lean_object* x_35; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); x_16 = lean_box(0); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Lean_firstFrontendMacroScope; +x_17 = lean_box(0); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Lean_firstFrontendMacroScope; +x_20 = 0; +lean_inc(x_10); lean_inc(x_9); lean_inc(x_6); lean_inc(x_5); -x_19 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_19, 0, x_5); -lean_ctor_set(x_19, 1, x_6); -lean_ctor_set(x_19, 2, x_17); -lean_ctor_set(x_19, 3, x_17); -lean_ctor_set(x_19, 4, x_15); -lean_ctor_set(x_19, 5, x_18); -lean_ctor_set(x_19, 6, x_9); -lean_ctor_set(x_19, 7, x_16); -lean_ctor_set(x_19, 8, x_16); -x_20 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_21 = lean_box(0); -x_22 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_23 = 0; +x_21 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_21, 0, x_5); +lean_ctor_set(x_21, 1, x_6); +lean_ctor_set(x_21, 2, x_18); +lean_ctor_set(x_21, 3, x_18); +lean_ctor_set(x_21, 4, x_16); +lean_ctor_set(x_21, 5, x_19); +lean_ctor_set(x_21, 6, x_9); +lean_ctor_set(x_21, 7, x_17); +lean_ctor_set(x_21, 8, x_17); +lean_ctor_set(x_21, 9, x_10); +lean_ctor_set_uint8(x_21, sizeof(void*)*10, x_20); +x_22 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_23 = lean_box(0); +x_24 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; lean_inc(x_7); -x_24 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_7); -lean_ctor_set(x_24, 2, x_21); -lean_ctor_set(x_24, 3, x_15); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_22); -lean_ctor_set(x_24, 6, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*7, x_23); -lean_ctor_set_tag(x_10, 1); -lean_ctor_set(x_10, 1, x_15); -lean_ctor_set(x_10, 0, x_24); -x_25 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_26 = l_Lean_Elab_Command_State_nextMacroScope___default___closed__1; -x_27 = l_Lean_Elab_Command_State_ngen___default___closed__3; -x_28 = l_Lean_liftCommandElabM___rarg___closed__1; +x_25 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_7); +lean_ctor_set(x_25, 2, x_23); +lean_ctor_set(x_25, 3, x_16); +lean_ctor_set(x_25, 4, x_16); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_24); +lean_ctor_set_uint8(x_25, sizeof(void*)*7, x_20); +lean_ctor_set_tag(x_11, 1); +lean_ctor_set(x_11, 1, x_16); +lean_ctor_set(x_11, 0, x_25); +x_26 = l_Lean_Elab_Command_State_messages___default___closed__4; +x_27 = l_Lean_Elab_Command_State_nextMacroScope___default___closed__1; +x_28 = l_Lean_Elab_Command_State_ngen___default___closed__3; +x_29 = l_Lean_liftCommandElabM___rarg___closed__1; +x_30 = l_Lean_Elab_Command_State_messages___default___closed__3; lean_inc(x_8); -x_29 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_29, 0, x_14); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_10); -lean_ctor_set(x_29, 3, x_26); -lean_ctor_set(x_29, 4, x_8); -lean_ctor_set(x_29, 5, x_27); -lean_ctor_set(x_29, 6, x_28); -lean_ctor_set(x_29, 7, x_25); -x_30 = lean_st_mk_ref(x_29, x_13); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_31); -x_33 = lean_apply_3(x_1, x_19, x_31, x_32); -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_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_34 = lean_ctor_get(x_33, 0); +x_31 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_31, 0, x_15); +lean_ctor_set(x_31, 1, x_26); +lean_ctor_set(x_31, 2, x_11); +lean_ctor_set(x_31, 3, x_27); +lean_ctor_set(x_31, 4, x_8); +lean_ctor_set(x_31, 5, x_28); +lean_ctor_set(x_31, 6, x_29); +lean_ctor_set(x_31, 7, x_30); +x_32 = lean_st_mk_ref(x_31, x_14); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_st_ref_get(x_31, x_35); -lean_dec(x_31); -x_37 = lean_ctor_get(x_36, 0); +lean_dec(x_32); +lean_inc(x_33); +x_35 = lean_apply_3(x_1, x_21, x_33, x_34); +if (lean_obj_tag(x_35) == 0) +{ +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; uint8_t x_47; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_st_ref_take(x_3, x_38); -x_40 = lean_ctor_get(x_39, 0); +lean_dec(x_35); +x_38 = lean_st_ref_get(x_33, x_37); +lean_dec(x_33); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_ctor_get(x_37, 0); +lean_dec(x_38); +x_41 = lean_st_ref_take(x_3, x_40); +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_37, 1); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 7); +lean_dec(x_41); +x_44 = lean_ctor_get(x_39, 0); lean_inc(x_44); -lean_dec(x_37); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_39, 7); +lean_inc(x_46); +lean_dec(x_39); +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_46 = lean_ctor_get(x_40, 3); -x_47 = lean_ctor_get(x_40, 0); -lean_dec(x_47); -x_48 = l_Lean_PersistentArray_append___rarg(x_46, x_44); -lean_ctor_set(x_40, 3, x_48); -lean_ctor_set(x_40, 0, x_42); -x_49 = lean_st_ref_set(x_3, x_40, x_41); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_42, 3); +x_49 = lean_ctor_get(x_42, 0); +lean_dec(x_49); +x_50 = l_Lean_PersistentArray_append___rarg(x_48, x_46); +lean_ctor_set(x_42, 3, x_50); +lean_ctor_set(x_42, 0, x_44); +x_51 = lean_st_ref_set(x_3, x_42, x_43); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; size_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_51 = lean_ctor_get(x_49, 1); -x_52 = lean_ctor_get(x_49, 0); -lean_dec(x_52); -x_53 = l_Lean_PersistentArray_toArray___rarg(x_43); -x_54 = lean_array_get_size(x_53); -x_55 = lean_usize_of_nat(x_54); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; size_t x_57; size_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_53 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_51, 0); lean_dec(x_54); -x_56 = 0; -x_57 = l_Lean_liftCommandElabM___rarg___closed__2; -x_58 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_57, x_53, x_55, x_56, x_57); -lean_dec(x_53); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -lean_dec(x_58); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; -x_60 = l_Lean_liftCommandElabM___rarg___closed__4; -if (lean_obj_tag(x_60) == 0) -{ -lean_ctor_set(x_49, 0, x_34); -return x_49; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -lean_free_object(x_49); -lean_dec(x_34); +x_55 = l_Lean_MessageLog_toArray(x_45); +x_56 = lean_array_get_size(x_55); +x_57 = lean_usize_of_nat(x_56); +lean_dec(x_56); +x_58 = 0; +x_59 = l_Lean_liftCommandElabM___rarg___closed__2; +x_60 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_59, x_55, x_57, x_58, x_59); +lean_dec(x_55); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -x_62 = lean_ctor_get(x_61, 4); -lean_inc(x_62); -lean_dec(x_61); -x_63 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_62, x_2, x_3, x_51); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) +lean_dec(x_60); +if (lean_obj_tag(x_61) == 0) { -return x_63; +lean_object* x_62; +x_62 = l_Lean_liftCommandElabM___rarg___closed__4; +if (lean_obj_tag(x_62) == 0) +{ +lean_ctor_set(x_51, 0, x_36); +return x_51; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_63, 0); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +lean_free_object(x_51); +lean_dec(x_36); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_63, 4); +lean_inc(x_64); lean_dec(x_63); -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; -} -} +x_65 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_64, x_2, x_3, x_53); +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) +{ +return x_65; } else { -lean_object* x_68; -x_68 = lean_ctor_get(x_59, 0); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); -lean_dec(x_59); -if (lean_obj_tag(x_68) == 0) -{ -lean_ctor_set(x_49, 0, x_34); -return x_49; +lean_inc(x_67); +lean_dec(x_65); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -lean_free_object(x_49); -lean_dec(x_34); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -lean_dec(x_68); -x_70 = lean_ctor_get(x_69, 4); +lean_object* x_70; +x_70 = lean_ctor_get(x_61, 0); lean_inc(x_70); -lean_dec(x_69); -x_71 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_70, x_2, x_3, x_51); -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +lean_dec(x_61); +if (lean_obj_tag(x_70) == 0) { -return x_71; +lean_ctor_set(x_51, 0, x_36); +return x_51; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_71, 0); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +lean_free_object(x_51); +lean_dec(x_36); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +lean_dec(x_70); +x_72 = lean_ctor_get(x_71, 4); +lean_inc(x_72); lean_dec(x_71); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} +x_73 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_72, x_2, x_3, x_53); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +return x_73; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_76 = lean_ctor_get(x_49, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); lean_inc(x_76); -lean_dec(x_49); -x_77 = l_Lean_PersistentArray_toArray___rarg(x_43); -x_78 = lean_array_get_size(x_77); -x_79 = lean_usize_of_nat(x_78); -lean_dec(x_78); -x_80 = 0; -x_81 = l_Lean_liftCommandElabM___rarg___closed__2; -x_82 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_81, x_77, x_79, x_80, x_81); -lean_dec(x_77); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -lean_dec(x_82); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; -x_84 = l_Lean_liftCommandElabM___rarg___closed__4; -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_34); -lean_ctor_set(x_85, 1, x_76); -return x_85; +lean_inc(x_75); +lean_dec(x_73); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} } 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; -lean_dec(x_34); -x_86 = lean_ctor_get(x_84, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_86, 4); -lean_inc(x_87); -lean_dec(x_86); -x_88 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_87, x_2, x_3, x_76); -x_89 = lean_ctor_get(x_88, 0); +lean_object* x_78; lean_object* x_79; lean_object* x_80; size_t x_81; size_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_78 = lean_ctor_get(x_51, 1); +lean_inc(x_78); +lean_dec(x_51); +x_79 = l_Lean_MessageLog_toArray(x_45); +x_80 = lean_array_get_size(x_79); +x_81 = lean_usize_of_nat(x_80); +lean_dec(x_80); +x_82 = 0; +x_83 = l_Lean_liftCommandElabM___rarg___closed__2; +x_84 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_83, x_79, x_81, x_82, x_83); +lean_dec(x_79); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +lean_dec(x_84); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; +x_86 = l_Lean_liftCommandElabM___rarg___closed__4; +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_36); +lean_ctor_set(x_87, 1, x_78); +return x_87; +} +else +{ +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_dec(x_36); +x_88 = lean_ctor_get(x_86, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_88, 4); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_91 = x_88; +lean_dec(x_88); +x_90 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_89, x_2, x_3, x_78); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; } else { - lean_dec_ref(x_88); - x_91 = lean_box(0); + lean_dec_ref(x_90); + x_93 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_92 = x_91; + x_94 = x_93; } -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; -} -} -else -{ -lean_object* x_93; -x_93 = lean_ctor_get(x_83, 0); -lean_inc(x_93); -lean_dec(x_83); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_34); -lean_ctor_set(x_94, 1, x_76); +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); return x_94; } +} 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_dec(x_34); -x_95 = lean_ctor_get(x_93, 0); +lean_object* x_95; +x_95 = lean_ctor_get(x_85, 0); lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_ctor_get(x_95, 4); -lean_inc(x_96); +lean_dec(x_85); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_36); +lean_ctor_set(x_96, 1, x_78); +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_dec(x_36); +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); lean_dec(x_95); -x_97 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_96, x_2, x_3, x_76); -x_98 = lean_ctor_get(x_97, 0); +x_98 = lean_ctor_get(x_97, 4); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_100 = x_97; +lean_dec(x_97); +x_99 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_98, x_2, x_3, x_78); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_102 = x_99; } else { - lean_dec_ref(x_97); - x_100 = lean_box(0); + lean_dec_ref(x_99); + x_102 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_100; + x_103 = x_102; } -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; } } } } 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; 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; size_t x_115; size_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_102 = lean_ctor_get(x_40, 1); -x_103 = lean_ctor_get(x_40, 2); -x_104 = lean_ctor_get(x_40, 3); -x_105 = lean_ctor_get(x_40, 4); -x_106 = lean_ctor_get(x_40, 5); -x_107 = lean_ctor_get(x_40, 6); +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; size_t x_117; size_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_104 = lean_ctor_get(x_42, 1); +x_105 = lean_ctor_get(x_42, 2); +x_106 = lean_ctor_get(x_42, 3); +x_107 = lean_ctor_get(x_42, 4); +x_108 = lean_ctor_get(x_42, 5); +x_109 = lean_ctor_get(x_42, 6); +lean_inc(x_109); +lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_40); -x_108 = l_Lean_PersistentArray_append___rarg(x_104, x_44); -x_109 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_109, 0, x_42); -lean_ctor_set(x_109, 1, x_102); -lean_ctor_set(x_109, 2, x_103); -lean_ctor_set(x_109, 3, x_108); -lean_ctor_set(x_109, 4, x_105); -lean_ctor_set(x_109, 5, x_106); -lean_ctor_set(x_109, 6, x_107); -x_110 = lean_st_ref_set(x_3, x_109, x_41); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_112 = x_110; +lean_dec(x_42); +x_110 = l_Lean_PersistentArray_append___rarg(x_106, x_46); +x_111 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_111, 0, x_44); +lean_ctor_set(x_111, 1, x_104); +lean_ctor_set(x_111, 2, x_105); +lean_ctor_set(x_111, 3, x_110); +lean_ctor_set(x_111, 4, x_107); +lean_ctor_set(x_111, 5, x_108); +lean_ctor_set(x_111, 6, x_109); +x_112 = lean_st_ref_set(x_3, x_111, x_43); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_110); - x_112 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_113 = l_Lean_PersistentArray_toArray___rarg(x_43); -x_114 = lean_array_get_size(x_113); -x_115 = lean_usize_of_nat(x_114); +x_115 = l_Lean_MessageLog_toArray(x_45); +x_116 = lean_array_get_size(x_115); +x_117 = lean_usize_of_nat(x_116); +lean_dec(x_116); +x_118 = 0; +x_119 = l_Lean_liftCommandElabM___rarg___closed__2; +x_120 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_119, x_115, x_117, x_118, x_119); +lean_dec(x_115); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +lean_dec(x_120); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; +x_122 = l_Lean_liftCommandElabM___rarg___closed__4; +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; +if (lean_is_scalar(x_114)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_114; +} +lean_ctor_set(x_123, 0, x_36); +lean_ctor_set(x_123, 1, x_113); +return x_123; +} +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_dec(x_114); -x_116 = 0; -x_117 = l_Lean_liftCommandElabM___rarg___closed__2; -x_118 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_117, x_113, x_115, x_116, x_117); -lean_dec(x_113); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -lean_dec(x_118); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; -x_120 = l_Lean_liftCommandElabM___rarg___closed__4; -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; -if (lean_is_scalar(x_112)) { - x_121 = lean_alloc_ctor(0, 2, 0); -} else { - x_121 = x_112; -} -lean_ctor_set(x_121, 0, x_34); -lean_ctor_set(x_121, 1, x_111); -return x_121; -} -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_112); -lean_dec(x_34); -x_122 = lean_ctor_get(x_120, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_122, 4); -lean_inc(x_123); -lean_dec(x_122); -x_124 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_123, x_2, x_3, x_111); -x_125 = lean_ctor_get(x_124, 0); +lean_dec(x_36); +x_124 = lean_ctor_get(x_122, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_124, 4); lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_127 = x_124; +lean_dec(x_124); +x_126 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_125, x_2, x_3, x_113); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_129 = x_126; } else { - lean_dec_ref(x_124); - x_127 = lean_box(0); + lean_dec_ref(x_126); + x_129 = lean_box(0); } -if (lean_is_scalar(x_127)) { - x_128 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); } else { - x_128 = x_127; + x_130 = x_129; } -lean_ctor_set(x_128, 0, x_125); -lean_ctor_set(x_128, 1, x_126); -return x_128; -} -} -else -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_119, 0); -lean_inc(x_129); -lean_dec(x_119); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; -if (lean_is_scalar(x_112)) { - x_130 = lean_alloc_ctor(0, 2, 0); -} else { - x_130 = x_112; -} -lean_ctor_set(x_130, 0, x_34); -lean_ctor_set(x_130, 1, x_111); +lean_ctor_set(x_130, 0, x_127); +lean_ctor_set(x_130, 1, x_128); return x_130; } +} else { -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_dec(x_112); -lean_dec(x_34); -x_131 = lean_ctor_get(x_129, 0); +lean_object* x_131; +x_131 = lean_ctor_get(x_121, 0); lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_ctor_get(x_131, 4); -lean_inc(x_132); +lean_dec(x_121); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; +if (lean_is_scalar(x_114)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_114; +} +lean_ctor_set(x_132, 0, x_36); +lean_ctor_set(x_132, 1, x_113); +return x_132; +} +else +{ +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_dec(x_114); +lean_dec(x_36); +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); lean_dec(x_131); -x_133 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_132, x_2, x_3, x_111); -x_134 = lean_ctor_get(x_133, 0); +x_134 = lean_ctor_get(x_133, 4); lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_136 = x_133; +lean_dec(x_133); +x_135 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_134, x_2, x_3, x_113); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +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_133); - x_136 = lean_box(0); + lean_dec_ref(x_135); + x_138 = lean_box(0); } -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_137 = x_136; + x_139 = x_138; } -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -return x_137; +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; } } } } else { -uint8_t x_138; -lean_dec(x_31); -x_138 = !lean_is_exclusive(x_33); -if (x_138 == 0) -{ -return x_33; -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_33, 0); -x_140 = lean_ctor_get(x_33, 1); -lean_inc(x_140); -lean_inc(x_139); +uint8_t x_140; lean_dec(x_33); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -return x_141; +x_140 = !lean_is_exclusive(x_35); +if (x_140 == 0) +{ +return x_35; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_35, 0); +x_142 = lean_ctor_get(x_35, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_35); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } else { -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; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_142 = lean_ctor_get(x_10, 0); -x_143 = lean_ctor_get(x_10, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_10); -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; uint8_t x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_144 = lean_ctor_get(x_11, 0); +x_145 = lean_ctor_get(x_11, 1); +lean_inc(x_145); lean_inc(x_144); -lean_dec(x_142); -x_145 = lean_box(0); -x_146 = lean_box(0); -x_147 = lean_unsigned_to_nat(0u); -x_148 = l_Lean_firstFrontendMacroScope; +lean_dec(x_11); +x_146 = lean_ctor_get(x_144, 0); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_box(0); +x_148 = lean_box(0); +x_149 = lean_unsigned_to_nat(0u); +x_150 = l_Lean_firstFrontendMacroScope; +x_151 = 0; +lean_inc(x_10); lean_inc(x_9); lean_inc(x_6); lean_inc(x_5); -x_149 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_149, 0, x_5); -lean_ctor_set(x_149, 1, x_6); -lean_ctor_set(x_149, 2, x_147); -lean_ctor_set(x_149, 3, x_147); -lean_ctor_set(x_149, 4, x_145); -lean_ctor_set(x_149, 5, x_148); -lean_ctor_set(x_149, 6, x_9); -lean_ctor_set(x_149, 7, x_146); -lean_ctor_set(x_149, 8, x_146); -x_150 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_151 = lean_box(0); -x_152 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_153 = 0; +x_152 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_152, 0, x_5); +lean_ctor_set(x_152, 1, x_6); +lean_ctor_set(x_152, 2, x_149); +lean_ctor_set(x_152, 3, x_149); +lean_ctor_set(x_152, 4, x_147); +lean_ctor_set(x_152, 5, x_150); +lean_ctor_set(x_152, 6, x_9); +lean_ctor_set(x_152, 7, x_148); +lean_ctor_set(x_152, 8, x_148); +lean_ctor_set(x_152, 9, x_10); +lean_ctor_set_uint8(x_152, sizeof(void*)*10, x_151); +x_153 = l_Lean_Elab_Command_instInhabitedScope___closed__1; +x_154 = lean_box(0); +x_155 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; lean_inc(x_7); -x_154 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_154, 0, x_150); -lean_ctor_set(x_154, 1, x_7); -lean_ctor_set(x_154, 2, x_151); -lean_ctor_set(x_154, 3, x_145); -lean_ctor_set(x_154, 4, x_145); -lean_ctor_set(x_154, 5, x_152); -lean_ctor_set(x_154, 6, x_152); -lean_ctor_set_uint8(x_154, sizeof(void*)*7, x_153); -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_145); -x_156 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_157 = l_Lean_Elab_Command_State_nextMacroScope___default___closed__1; -x_158 = l_Lean_Elab_Command_State_ngen___default___closed__3; -x_159 = l_Lean_liftCommandElabM___rarg___closed__1; +x_156 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_7); +lean_ctor_set(x_156, 2, x_154); +lean_ctor_set(x_156, 3, x_147); +lean_ctor_set(x_156, 4, x_147); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_155); +lean_ctor_set_uint8(x_156, sizeof(void*)*7, x_151); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_147); +x_158 = l_Lean_Elab_Command_State_messages___default___closed__4; +x_159 = l_Lean_Elab_Command_State_nextMacroScope___default___closed__1; +x_160 = l_Lean_Elab_Command_State_ngen___default___closed__3; +x_161 = l_Lean_liftCommandElabM___rarg___closed__1; +x_162 = l_Lean_Elab_Command_State_messages___default___closed__3; lean_inc(x_8); -x_160 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_160, 0, x_144); -lean_ctor_set(x_160, 1, x_156); -lean_ctor_set(x_160, 2, x_155); -lean_ctor_set(x_160, 3, x_157); -lean_ctor_set(x_160, 4, x_8); -lean_ctor_set(x_160, 5, x_158); -lean_ctor_set(x_160, 6, x_159); -lean_ctor_set(x_160, 7, x_156); -x_161 = lean_st_mk_ref(x_160, x_143); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -lean_inc(x_162); -x_164 = lean_apply_3(x_1, x_149, x_162, x_163); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; size_t x_190; size_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_163 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_163, 0, x_146); +lean_ctor_set(x_163, 1, x_158); +lean_ctor_set(x_163, 2, x_157); +lean_ctor_set(x_163, 3, x_159); +lean_ctor_set(x_163, 4, x_8); +lean_ctor_set(x_163, 5, x_160); +lean_ctor_set(x_163, 6, x_161); +lean_ctor_set(x_163, 7, x_162); +x_164 = lean_st_mk_ref(x_163, x_145); x_165 = lean_ctor_get(x_164, 0); lean_inc(x_165); x_166 = lean_ctor_get(x_164, 1); lean_inc(x_166); lean_dec(x_164); -x_167 = lean_st_ref_get(x_162, x_166); -lean_dec(x_162); +lean_inc(x_165); +x_167 = lean_apply_3(x_1, x_152, x_165, x_166); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; size_t x_193; size_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; x_168 = lean_ctor_get(x_167, 0); lean_inc(x_168); x_169 = lean_ctor_get(x_167, 1); lean_inc(x_169); lean_dec(x_167); -x_170 = lean_st_ref_take(x_3, x_169); +x_170 = lean_st_ref_get(x_165, x_169); +lean_dec(x_165); x_171 = lean_ctor_get(x_170, 0); lean_inc(x_171); x_172 = lean_ctor_get(x_170, 1); lean_inc(x_172); lean_dec(x_170); -x_173 = lean_ctor_get(x_168, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_168, 1); +x_173 = lean_st_ref_take(x_3, x_172); +x_174 = lean_ctor_get(x_173, 0); lean_inc(x_174); -x_175 = lean_ctor_get(x_168, 7); +x_175 = lean_ctor_get(x_173, 1); lean_inc(x_175); -lean_dec(x_168); -x_176 = lean_ctor_get(x_171, 1); +lean_dec(x_173); +x_176 = lean_ctor_get(x_171, 0); lean_inc(x_176); -x_177 = lean_ctor_get(x_171, 2); +x_177 = lean_ctor_get(x_171, 1); lean_inc(x_177); -x_178 = lean_ctor_get(x_171, 3); +x_178 = lean_ctor_get(x_171, 7); lean_inc(x_178); -x_179 = lean_ctor_get(x_171, 4); +lean_dec(x_171); +x_179 = lean_ctor_get(x_174, 1); lean_inc(x_179); -x_180 = lean_ctor_get(x_171, 5); +x_180 = lean_ctor_get(x_174, 2); lean_inc(x_180); -x_181 = lean_ctor_get(x_171, 6); +x_181 = lean_ctor_get(x_174, 3); lean_inc(x_181); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - lean_ctor_release(x_171, 2); - lean_ctor_release(x_171, 3); - lean_ctor_release(x_171, 4); - lean_ctor_release(x_171, 5); - lean_ctor_release(x_171, 6); - x_182 = x_171; +x_182 = lean_ctor_get(x_174, 4); +lean_inc(x_182); +x_183 = lean_ctor_get(x_174, 5); +lean_inc(x_183); +x_184 = lean_ctor_get(x_174, 6); +lean_inc(x_184); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + lean_ctor_release(x_174, 3); + lean_ctor_release(x_174, 4); + lean_ctor_release(x_174, 5); + lean_ctor_release(x_174, 6); + x_185 = x_174; } else { - lean_dec_ref(x_171); - x_182 = lean_box(0); + lean_dec_ref(x_174); + x_185 = lean_box(0); } -x_183 = l_Lean_PersistentArray_append___rarg(x_178, x_175); -if (lean_is_scalar(x_182)) { - x_184 = lean_alloc_ctor(0, 7, 0); +x_186 = l_Lean_PersistentArray_append___rarg(x_181, x_178); +if (lean_is_scalar(x_185)) { + x_187 = lean_alloc_ctor(0, 7, 0); } else { - x_184 = x_182; -} -lean_ctor_set(x_184, 0, x_173); -lean_ctor_set(x_184, 1, x_176); -lean_ctor_set(x_184, 2, x_177); -lean_ctor_set(x_184, 3, x_183); -lean_ctor_set(x_184, 4, x_179); -lean_ctor_set(x_184, 5, x_180); -lean_ctor_set(x_184, 6, x_181); -x_185 = lean_st_ref_set(x_3, x_184, x_172); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); x_187 = x_185; +} +lean_ctor_set(x_187, 0, x_176); +lean_ctor_set(x_187, 1, x_179); +lean_ctor_set(x_187, 2, x_180); +lean_ctor_set(x_187, 3, x_186); +lean_ctor_set(x_187, 4, x_182); +lean_ctor_set(x_187, 5, x_183); +lean_ctor_set(x_187, 6, x_184); +x_188 = lean_st_ref_set(x_3, x_187, x_175); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_190 = x_188; } else { - lean_dec_ref(x_185); - x_187 = lean_box(0); + lean_dec_ref(x_188); + x_190 = lean_box(0); } -x_188 = l_Lean_PersistentArray_toArray___rarg(x_174); -x_189 = lean_array_get_size(x_188); -x_190 = lean_usize_of_nat(x_189); -lean_dec(x_189); -x_191 = 0; -x_192 = l_Lean_liftCommandElabM___rarg___closed__2; -x_193 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_192, x_188, x_190, x_191, x_192); -lean_dec(x_188); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -lean_dec(x_193); -if (lean_obj_tag(x_194) == 0) -{ -lean_object* x_195; -x_195 = l_Lean_liftCommandElabM___rarg___closed__4; -if (lean_obj_tag(x_195) == 0) -{ -lean_object* x_196; -if (lean_is_scalar(x_187)) { - x_196 = lean_alloc_ctor(0, 2, 0); -} else { - x_196 = x_187; -} -lean_ctor_set(x_196, 0, x_165); -lean_ctor_set(x_196, 1, x_186); -return x_196; -} -else -{ -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_dec(x_187); -lean_dec(x_165); -x_197 = lean_ctor_get(x_195, 0); +x_191 = l_Lean_MessageLog_toArray(x_177); +x_192 = lean_array_get_size(x_191); +x_193 = lean_usize_of_nat(x_192); +lean_dec(x_192); +x_194 = 0; +x_195 = l_Lean_liftCommandElabM___rarg___closed__2; +x_196 = l_Array_forInUnsafe_loop___at_Lean_liftCommandElabM___spec__1(x_195, x_191, x_193, x_194, x_195); +lean_dec(x_191); +x_197 = lean_ctor_get(x_196, 0); lean_inc(x_197); -x_198 = lean_ctor_get(x_197, 4); -lean_inc(x_198); -lean_dec(x_197); -x_199 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_198, x_2, x_3, x_186); -x_200 = lean_ctor_get(x_199, 0); +lean_dec(x_196); +if (lean_obj_tag(x_197) == 0) +{ +lean_object* x_198; +x_198 = l_Lean_liftCommandElabM___rarg___closed__4; +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; +if (lean_is_scalar(x_190)) { + x_199 = lean_alloc_ctor(0, 2, 0); +} else { + x_199 = x_190; +} +lean_ctor_set(x_199, 0, x_168); +lean_ctor_set(x_199, 1, x_189); +return x_199; +} +else +{ +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_dec(x_190); +lean_dec(x_168); +x_200 = lean_ctor_get(x_198, 0); lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); +x_201 = lean_ctor_get(x_200, 4); lean_inc(x_201); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_202 = x_199; -} else { - lean_dec_ref(x_199); - x_202 = lean_box(0); -} -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); -} else { - x_203 = x_202; -} -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -return x_203; -} -} -else -{ -lean_object* x_204; -x_204 = lean_ctor_get(x_194, 0); +lean_dec(x_200); +x_202 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_201, x_2, x_3, x_189); +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_202, 1); lean_inc(x_204); -lean_dec(x_194); -if (lean_obj_tag(x_204) == 0) -{ -lean_object* x_205; -if (lean_is_scalar(x_187)) { - x_205 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_205 = x_202; } else { - x_205 = x_187; + lean_dec_ref(x_202); + x_205 = lean_box(0); +} +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(1, 2, 0); +} else { + x_206 = x_205; +} +lean_ctor_set(x_206, 0, x_203); +lean_ctor_set(x_206, 1, x_204); +return x_206; } -lean_ctor_set(x_205, 0, x_165); -lean_ctor_set(x_205, 1, x_186); -return x_205; } else { -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_dec(x_187); -lean_dec(x_165); -x_206 = lean_ctor_get(x_204, 0); -lean_inc(x_206); -lean_dec(x_204); -x_207 = lean_ctor_get(x_206, 4); +lean_object* x_207; +x_207 = lean_ctor_get(x_197, 0); lean_inc(x_207); -lean_dec(x_206); -x_208 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_207, x_2, x_3, x_186); -x_209 = lean_ctor_get(x_208, 0); +lean_dec(x_197); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; +if (lean_is_scalar(x_190)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_190; +} +lean_ctor_set(x_208, 0, x_168); +lean_ctor_set(x_208, 1, x_189); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_190); +lean_dec(x_168); +x_209 = lean_ctor_get(x_207, 0); lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); +lean_dec(x_207); +x_210 = lean_ctor_get(x_209, 4); lean_inc(x_210); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_211 = x_208; +lean_dec(x_209); +x_211 = l_Lean_throwError___at_Lean_realizeGlobalConstCore___spec__3(x_210, x_2, x_3, x_189); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_214 = x_211; } else { - lean_dec_ref(x_208); - x_211 = lean_box(0); + lean_dec_ref(x_211); + x_214 = lean_box(0); } -if (lean_is_scalar(x_211)) { - x_212 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_212 = x_211; + x_215 = x_214; } -lean_ctor_set(x_212, 0, x_209); -lean_ctor_set(x_212, 1, x_210); -return x_212; +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +return x_215; } } } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -lean_dec(x_162); -x_213 = lean_ctor_get(x_164, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_164, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_215 = x_164; +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_165); +x_216 = lean_ctor_get(x_167, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_167, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_218 = x_167; } else { - lean_dec_ref(x_164); - x_215 = lean_box(0); + lean_dec_ref(x_167); + x_218 = lean_box(0); } -if (lean_is_scalar(x_215)) { - x_216 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(1, 2, 0); } else { - x_216 = x_215; + x_219 = x_218; } -lean_ctor_set(x_216, 0, x_213); -lean_ctor_set(x_216, 1, x_214); -return x_216; +lean_ctor_set(x_219, 0, x_216); +lean_ctor_set(x_219, 1, x_217); +return x_219; } } } @@ -36646,7 +34735,7 @@ x_43 = l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__2 lean_ctor_set_tag(x_2, 6); lean_ctor_set(x_2, 1, x_39); lean_ctor_set(x_2, 0, x_43); -x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_44 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; lean_ctor_set_tag(x_28, 6); lean_ctor_set(x_28, 1, x_44); lean_ctor_set(x_28, 0, x_2); @@ -36662,7 +34751,7 @@ x_46 = l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__2 x_47 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_39); -x_48 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_48 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; lean_ctor_set_tag(x_28, 6); lean_ctor_set(x_28, 1, x_48); lean_ctor_set(x_28, 0, x_47); @@ -36704,7 +34793,7 @@ x_55 = l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__2 lean_ctor_set_tag(x_28, 6); lean_ctor_set(x_28, 1, x_54); lean_ctor_set(x_28, 0, x_55); -x_56 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_56 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; lean_ctor_set_tag(x_16, 6); lean_ctor_set(x_16, 1, x_56); lean_ctor_set(x_16, 0, x_28); @@ -36822,7 +34911,7 @@ if (lean_is_scalar(x_77)) { } lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_79, 1, x_76); -x_80 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_80 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; x_81 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_81, 0, x_79); lean_ctor_set(x_81, 1, x_80); @@ -36861,7 +34950,7 @@ x_88 = l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1___closed__2 x_89 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); -x_90 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_90 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; lean_ctor_set_tag(x_16, 6); lean_ctor_set(x_16, 1, x_90); lean_ctor_set(x_16, 0, x_89); @@ -37049,7 +35138,7 @@ if (lean_is_scalar(x_131)) { } lean_ctor_set(x_133, 0, x_132); lean_ctor_set(x_133, 1, x_130); -x_134 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_134 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; if (lean_is_scalar(x_122)) { x_135 = lean_alloc_ctor(6, 2, 0); } else { @@ -37100,7 +35189,7 @@ if (lean_is_scalar(x_122)) { } lean_ctor_set(x_143, 0, x_142); lean_ctor_set(x_143, 1, x_141); -x_144 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; +x_144 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4; x_145 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_145, 0, x_143); lean_ctor_set(x_145, 1, x_144); @@ -37255,9 +35344,9 @@ static lean_object* _init_l_Lean_withSetOptionIn___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___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_4 = l_Lean_withSetOptionIn___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -37275,9 +35364,9 @@ static lean_object* _init_l_Lean_withSetOptionIn___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__1; -x_2 = l___auto____x40_Lean_Elab_Command___hyg_403____closed__2; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6; +x_1 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__1; +x_2 = l___auto____x40_Lean_Elab_Command___hyg_421____closed__2; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6; x_4 = l_Lean_withSetOptionIn___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -37466,6 +35555,8 @@ l_Lean_Elab_Command_State_messages___default___closed__2 = _init_l_Lean_Elab_Com lean_mark_persistent(l_Lean_Elab_Command_State_messages___default___closed__2); l_Lean_Elab_Command_State_messages___default___closed__3 = _init_l_Lean_Elab_Command_State_messages___default___closed__3(); lean_mark_persistent(l_Lean_Elab_Command_State_messages___default___closed__3); +l_Lean_Elab_Command_State_messages___default___closed__4 = _init_l_Lean_Elab_Command_State_messages___default___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_State_messages___default___closed__4); l_Lean_Elab_Command_State_messages___default = _init_l_Lean_Elab_Command_State_messages___default(); lean_mark_persistent(l_Lean_Elab_Command_State_messages___default); l_Lean_Elab_Command_State_scopes___default___closed__1 = _init_l_Lean_Elab_Command_State_scopes___default___closed__1(); @@ -37506,64 +35597,65 @@ l_Lean_Elab_Command_Context_currMacroScope___default = _init_l_Lean_Elab_Command lean_mark_persistent(l_Lean_Elab_Command_Context_currMacroScope___default); l_Lean_Elab_Command_Context_ref___default = _init_l_Lean_Elab_Command_Context_ref___default(); lean_mark_persistent(l_Lean_Elab_Command_Context_ref___default); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__1 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__1(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__1); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__2 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__2(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__2); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__3 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__3(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__3); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__4 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__4(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__4); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__5 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__5(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__5); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__6 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__6(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__6); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__7 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__7(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__7); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__8 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__8(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__8); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__9 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__9(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__9); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__10 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__10(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__10); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__11 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__11(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__11); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__12 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__12(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__12); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__13 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__13(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__13); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__14 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__14(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__14); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__15 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__15(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__15); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__16 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__16(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__16); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__17 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__17(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__17); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__18 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__18(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__18); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__19 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__19(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__19); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__20 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__20(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__20); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__21 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__21(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__21); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__22 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__22(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__22); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__23 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__23(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__23); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__24 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__24(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__24); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__25 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__25(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__25); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__26 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__26(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__26); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__27 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__27(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__27); -l___auto____x40_Lean_Elab_Command___hyg_403____closed__28 = _init_l___auto____x40_Lean_Elab_Command___hyg_403____closed__28(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403____closed__28); -l___auto____x40_Lean_Elab_Command___hyg_403_ = _init_l___auto____x40_Lean_Elab_Command___hyg_403_(); -lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_403_); +l_Lean_Elab_Command_Context_suppressElabErrors___default = _init_l_Lean_Elab_Command_Context_suppressElabErrors___default(); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__1 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__1(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__1); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__2 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__2(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__2); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__3 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__3(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__3); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__4 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__4(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__4); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__5 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__5(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__5); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__6 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__6(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__6); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__7 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__7(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__7); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__8 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__8(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__8); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__9 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__9(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__9); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__10 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__10(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__10); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__11 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__11(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__11); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__12 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__12(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__12); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__13 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__13(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__13); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__14 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__14(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__14); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__15 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__15(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__15); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__16 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__16(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__16); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__17 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__17(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__17); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__18 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__18(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__18); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__19 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__19(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__19); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__20 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__20(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__20); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__21 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__21(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__21); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__22 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__22(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__22); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__23 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__23(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__23); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__24 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__24(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__24); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__25 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__25(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__25); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__26 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__26(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__26); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__27 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__27(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__27); +l___auto____x40_Lean_Elab_Command___hyg_421____closed__28 = _init_l___auto____x40_Lean_Elab_Command___hyg_421____closed__28(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421____closed__28); +l___auto____x40_Lean_Elab_Command___hyg_421_ = _init_l___auto____x40_Lean_Elab_Command___hyg_421_(); +lean_mark_persistent(l___auto____x40_Lean_Elab_Command___hyg_421_); l_Lean_Elab_Command_instMonadCommandElabM___closed__1 = _init_l_Lean_Elab_Command_instMonadCommandElabM___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_instMonadCommandElabM___closed__1); l_Lean_Elab_Command_instMonadCommandElabM___closed__2 = _init_l_Lean_Elab_Command_instMonadCommandElabM___closed__2(); @@ -37580,48 +35672,56 @@ l_Lean_Elab_Command_instMonadCommandElabM___closed__7 = _init_l_Lean_Elab_Comman lean_mark_persistent(l_Lean_Elab_Command_instMonadCommandElabM___closed__7); l_Lean_Elab_Command_instMonadCommandElabM = _init_l_Lean_Elab_Command_instMonadCommandElabM(); lean_mark_persistent(l_Lean_Elab_Command_instMonadCommandElabM); +l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1 = _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__1); +l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2 = _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__2); +l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3 = _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM___closed__3); +l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM = _init_l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM(); +lean_mark_persistent(l_Lean_Elab_Command_instMonadExceptOfExceptionCommandElabM); l_Lean_Elab_Command_mkState___closed__1 = _init_l_Lean_Elab_Command_mkState___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_mkState___closed__1); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_485_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_560_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Command_lintersRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Command_lintersRef); lean_dec_ref(res); -}l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__3); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__4); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__5); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__7); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__8); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__9); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__10); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__11); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__12); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__13); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__14); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__15); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__16); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517____closed__17); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_517_(lean_io_mk_world()); +}l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__4); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__5); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__6); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__7); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__8); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__9); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__10); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__11); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__12); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__13); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__14); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__15); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__16); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592____closed__17); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_592_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_Elab_Command_addLinter___closed__1 = _init_l_Lean_Elab_Command_addLinter___closed__1(); @@ -37750,6 +35850,8 @@ l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2 lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2); l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3 = _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3(); lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3); +l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4 = _init_l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__4); l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5___closed__1 = _init_l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5___closed__1(); lean_mark_persistent(l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__5___closed__1); l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__2___closed__1 = _init_l_Lean_withTraceNode___at_Lean_Elab_Command_runLinters___spec__4___lambda__2___closed__1(); @@ -37805,11 +35907,11 @@ l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__7 = _init_l_Lean_Elab lean_mark_persistent(l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__7); l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8 = _init_l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8(); lean_mark_persistent(l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439____closed__2); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2439_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581____closed__2); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2581_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Command_commandElabAttribute = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Command_commandElabAttribute); @@ -37842,11 +35944,11 @@ l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__4 = _init_l_Lean_Ela lean_mark_persistent(l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__4); l_Lean_Elab_Command_instMonadRecDepthCommandElabM = _init_l_Lean_Elab_Command_instMonadRecDepthCommandElabM(); lean_mark_persistent(l_Lean_Elab_Command_instMonadRecDepthCommandElabM); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878____closed__2); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_2878_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024____closed__2); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3024_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_elabCommand___spec__1___closed__1(); @@ -37879,21 +35981,38 @@ l_Lean_Elab_Command_elabCommand___closed__6 = _init_l_Lean_Elab_Command_elabComm lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__6); l_Lean_Elab_Command_elabCommand___boxed__const__1 = _init_l_Lean_Elab_Command_elabCommand___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Command_elabCommand___boxed__const__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250____closed__3); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3250_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396____closed__3); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3396_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +}l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__4); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438____closed__5); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_3438_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_Command_showPartialSyntaxErrors = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_Command_showPartialSyntaxErrors); +lean_dec_ref(res); }l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__2); l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__3(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___closed__3); +l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___closed__1); l_Lean_Elab_Command_elabCommandTopLevel___closed__1 = _init_l_Lean_Elab_Command_elabCommandTopLevel___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabCommandTopLevel___closed__1); l_Lean_Elab_Command_instInhabitedCommandElabM___closed__1 = _init_l_Lean_Elab_Command_instInhabitedCommandElabM___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/ComputedFields.c b/stage0/stdlib/Lean/Elab/ComputedFields.c index 35b09c8797..07e95b827b 100644 --- a/stage0/stdlib/Lean/Elab/ComputedFields.c +++ b/stage0/stdlib/Lean/Elab/ComputedFields.c @@ -29,6 +29,7 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_validateComputedFields___spec__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__5___closed__12; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -38,18 +39,19 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_ lean_object* l_Lean_Meta_unfoldDefinition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__2; lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2; static lean_object* l_Lean_Elab_ComputedFields_mkUnsafeCastTo___closed__4; static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__5___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_overrideCasesOn___closed__2; +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_initFn____x40_Lean_Elab_ComputedFields___hyg_6____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_validateComputedFields___spec__3___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_ComputedFields_validateComputedFields___spec__1(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Expr_sort___override(lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -83,10 +85,12 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_ov LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_initFn____x40_Lean_Elab_ComputedFields___hyg_6_(lean_object*); static lean_object* l_Lean_Elab_ComputedFields_initFn____x40_Lean_Elab_ComputedFields___hyg_6____closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3; static lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Elab_ComputedFields_getComputedFieldValue___spec__2___closed__3; static lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Elab_ComputedFields_getComputedFieldValue___spec__2___closed__5; LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__6___boxed(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_ComputedFields_overrideCasesOn___spec__11___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*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,6 +112,7 @@ LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_ComputedFields_overrideCas static lean_object* l_List_mapM_loop___at_Lean_Elab_ComputedFields_mkImplType___spec__2___lambda__1___closed__3; static lean_object* l_Lean_getConstInfo___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__2___closed__2; static lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__6; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___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_setEnv___at_Lean_Elab_ComputedFields_overrideConstructors___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -160,12 +165,14 @@ LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_ComputedFiel static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__5___closed__7; lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Elab_ComputedFields_getComputedFieldValue___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2; lean_object* lean_array_to_list(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_ComputedFields_isScalarField___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__3; LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_ComputedFields_mkImplType___spec__2___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_Lean_Meta_whnfEasyCases___at_Lean_Elab_ComputedFields_getComputedFieldValue___spec__2___closed__1; +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__1; @@ -183,6 +190,7 @@ static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCases LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__9(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_validateComputedFields___spec__3___lambda__1___closed__2; +static lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1; static lean_object* l_Lean_Elab_ComputedFields_mkUnsafeCastTo___closed__2; static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__5___closed__10; static lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___closed__3; @@ -199,6 +207,7 @@ uint8_t l_Lean_isExtern(lean_object*, lean_object*); static lean_object* l_Lean_setImplementedBy___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__12___closed__1; static lean_object* l_Lean_getConstInfoDefn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__1___closed__2; uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_ComputedFields_mkImplType___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -335,6 +344,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_overrideComputedFields___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*); static lean_object* l_Lean_Elab_ComputedFields_overrideCasesOn___lambda__2___closed__2; lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); lean_object* lean_mk_cases_on(lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__1; @@ -10366,10 +10376,220 @@ lean_dec(x_3); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_Elab_ComputedFields_initFn____x40_Lean_Elab_ComputedFields___hyg_6____closed__4; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -10377,1304 +10597,796 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___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) { _start: { -lean_object* x_9; uint8_t x_375; uint8_t x_376; -x_375 = 2; -x_376 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_375); -if (x_376 == 0) +lean_object* x_9; uint8_t x_184; uint8_t x_185; +x_184 = 2; +x_185 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_184); +if (x_185 == 0) { -lean_object* x_377; -x_377 = lean_box(0); -x_9 = x_377; -goto block_374; +lean_object* x_186; +x_186 = lean_box(0); +x_9 = x_186; +goto block_183; } else { -lean_object* x_378; uint8_t x_379; +lean_object* x_187; uint8_t x_188; lean_inc(x_2); -x_378 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_379 = lean_unbox(x_378); -lean_dec(x_378); -if (x_379 == 0) +x_187 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_188 = lean_unbox(x_187); +lean_dec(x_187); +if (x_188 == 0) { -lean_object* x_380; -x_380 = lean_box(0); -x_9 = x_380; -goto block_374; +lean_object* x_189; +x_189 = lean_box(0); +x_9 = x_189; +goto block_183; } else { -lean_object* x_381; lean_object* x_382; +lean_object* x_190; lean_object* x_191; +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -x_381 = lean_box(0); -x_382 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_382, 0, x_381); -lean_ctor_set(x_382, 1, x_8); -return x_382; +lean_dec(x_1); +x_190 = lean_box(0); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_8); +return x_191; } } -block_374: +block_183: { -uint8_t x_10; lean_object* x_368; uint8_t x_369; uint8_t x_370; +uint8_t x_10; lean_object* x_177; uint8_t x_178; uint8_t x_179; lean_dec(x_9); -x_368 = lean_ctor_get(x_6, 2); -lean_inc(x_368); -x_369 = 1; -x_370 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_369); -if (x_370 == 0) +x_177 = lean_ctor_get(x_6, 2); +lean_inc(x_177); +x_178 = 1; +x_179 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_178); +if (x_179 == 0) { -lean_dec(x_368); +lean_dec(x_177); x_10 = x_3; -goto block_367; +goto block_176; } else { -lean_object* x_371; uint8_t x_372; -x_371 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; -x_372 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_368, x_371); -lean_dec(x_368); -if (x_372 == 0) +lean_object* x_180; uint8_t x_181; +x_180 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2; +x_181 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_177, x_180); +lean_dec(x_177); +if (x_181 == 0) { x_10 = x_3; -goto block_367; +goto block_176; } else { -uint8_t x_373; -x_373 = 2; -x_10 = x_373; -goto block_367; +uint8_t x_182; +x_182 = 2; +x_10 = x_182; +goto block_176; } } -block_367: +block_176: { -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; lean_object* x_18; lean_object* x_19; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); x_13 = lean_ctor_get(x_6, 5); lean_inc(x_13); -x_14 = lean_ctor_get(x_6, 6); -lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 7); -lean_inc(x_15); -x_16 = l_Lean_replaceRef(x_1, x_13); +x_14 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_15 = l_Lean_replaceRef(x_1, x_13); lean_dec(x_13); -x_17 = 0; -x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); -x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +lean_dec(x_1); +x_16 = 0; +x_17 = l_Lean_Syntax_getPos_x3f(x_15, x_16); +x_18 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ if (lean_obj_tag(x_18) == 0) { -if (lean_obj_tag(x_19) == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_FileMap_toPosition(x_12, x_23); +lean_inc(x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +if (x_14 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_19); +x_26 = lean_box(0); +x_27 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_21, x_11, x_24, x_25, x_10, x_26, x_6, x_7, x_22); +lean_dec(x_7); lean_dec(x_6); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +return x_27; +} +else { -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; uint8_t x_33; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Lean_FileMap_toPosition(x_12, x_24); -lean_inc(x_25); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_20, 1, x_15); -lean_ctor_set(x_20, 0, x_14); -x_27 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_22); -x_28 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_29 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_28); -lean_ctor_set(x_29, 4, x_27); -lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_10); -x_30 = lean_st_ref_take(x_7, x_23); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_21); +x_29 = l_Lean_MessageData_hasTag(x_28, x_21); +if (x_29 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_31, 5); -x_35 = l_Lean_PersistentArray_push___rarg(x_34, x_29); -lean_ctor_set(x_31, 5, x_35); -x_36 = lean_st_ref_set(x_7, x_31, x_32); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_30; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_30 = lean_box(0); +lean_ctor_set(x_19, 0, x_30); +return x_19; +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_free_object(x_19); +x_31 = lean_box(0); +x_32 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_21, x_11, x_24, x_25, x_10, x_31, x_6, x_7, x_22); +lean_dec(x_7); +lean_dec(x_6); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_FileMap_toPosition(x_12, x_35); +lean_inc(x_36); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +if (x_14 == 0) { lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = lean_box(0); -lean_ctor_set(x_36, 0, x_39); -return x_36; +x_38 = lean_box(0); +x_39 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_33, x_11, x_36, x_37, x_10, x_38, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_33); +x_41 = l_Lean_MessageData_hasTag(x_40, x_33); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_37); lean_dec(x_36); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_33); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +x_45 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_33, x_11, x_36, x_37, x_10, x_44, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_45; +} +} } } else { -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; -x_43 = lean_ctor_get(x_31, 0); -x_44 = lean_ctor_get(x_31, 1); -x_45 = lean_ctor_get(x_31, 2); -x_46 = lean_ctor_get(x_31, 3); -x_47 = lean_ctor_get(x_31, 4); -x_48 = lean_ctor_get(x_31, 5); -x_49 = lean_ctor_get(x_31, 6); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_31); -x_50 = l_Lean_PersistentArray_push___rarg(x_48, x_29); -x_51 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_51, 0, x_43); -lean_ctor_set(x_51, 1, x_44); -lean_ctor_set(x_51, 2, x_45); -lean_ctor_set(x_51, 3, x_46); -lean_ctor_set(x_51, 4, x_47); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_49); -x_52 = lean_st_ref_set(x_7, x_51, x_32); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_54 = x_52; -} else { - lean_dec_ref(x_52); - x_54 = lean_box(0); -} +uint8_t x_46; +x_46 = !lean_is_exclusive(x_18); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_18, 0); +x_48 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +x_52 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_53 = l_Lean_FileMap_toPosition(x_12, x_52); +x_54 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_54); +if (x_14 == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_free_object(x_48); x_55 = lean_box(0); -if (lean_is_scalar(x_54)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_54; -} -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); +x_56 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_50, x_11, x_53, x_18, x_10, x_55, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); return x_56; } -} else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_57 = lean_ctor_get(x_20, 0); -x_58 = lean_ctor_get(x_20, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_20); -x_59 = lean_unsigned_to_nat(0u); -x_60 = l_Lean_FileMap_toPosition(x_12, x_59); -lean_inc(x_60); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_14); -lean_ctor_set(x_62, 1, x_15); -x_63 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_57); -x_64 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_65 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_65, 0, x_11); -lean_ctor_set(x_65, 1, x_60); -lean_ctor_set(x_65, 2, x_61); -lean_ctor_set(x_65, 3, x_64); -lean_ctor_set(x_65, 4, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_65, sizeof(void*)*5 + 1, x_10); -x_66 = lean_st_ref_take(x_7, x_58); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -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); -x_71 = lean_ctor_get(x_67, 2); -lean_inc(x_71); -x_72 = lean_ctor_get(x_67, 3); -lean_inc(x_72); -x_73 = lean_ctor_get(x_67, 4); -lean_inc(x_73); -x_74 = lean_ctor_get(x_67, 5); -lean_inc(x_74); -x_75 = lean_ctor_get(x_67, 6); -lean_inc(x_75); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - lean_ctor_release(x_67, 2); - lean_ctor_release(x_67, 3); - lean_ctor_release(x_67, 4); - lean_ctor_release(x_67, 5); - lean_ctor_release(x_67, 6); - x_76 = x_67; -} else { - lean_dec_ref(x_67); - x_76 = lean_box(0); -} -x_77 = l_Lean_PersistentArray_push___rarg(x_74, x_65); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 7, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_69); -lean_ctor_set(x_78, 1, x_70); -lean_ctor_set(x_78, 2, x_71); -lean_ctor_set(x_78, 3, x_72); -lean_ctor_set(x_78, 4, x_73); -lean_ctor_set(x_78, 5, x_77); -lean_ctor_set(x_78, 6, x_75); -x_79 = lean_st_ref_set(x_7, x_78, x_68); -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_box(0); -if (lean_is_scalar(x_81)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_81; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; -} -} -else +lean_object* x_57; uint8_t x_58; +x_57 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_50); +x_58 = l_Lean_MessageData_hasTag(x_57, x_50); +if (x_58 == 0) { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_19); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_19, 0); -x_86 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_59; +lean_dec(x_18); +lean_dec(x_53); +lean_dec(x_50); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_6); -x_87 = !lean_is_exclusive(x_86); +x_59 = lean_box(0); +lean_ctor_set(x_48, 0, x_59); +return x_48; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_free_object(x_48); +x_60 = lean_box(0); +x_61 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_50, x_11, x_53, x_18, x_10, x_60, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_48, 0); +x_63 = lean_ctor_get(x_48, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_48); +x_64 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_65 = l_Lean_FileMap_toPosition(x_12, x_64); +x_66 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_66); +if (x_14 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_62, x_11, x_65, x_18, x_10, x_67, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_68; +} +else +{ +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_62); +x_70 = l_Lean_MessageData_hasTag(x_69, x_62); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_18); +lean_dec(x_65); +lean_dec(x_62); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_63); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_box(0); +x_74 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_62, x_11, x_65, x_18, x_10, x_73, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_74; +} +} +} +} +else +{ +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; +x_75 = lean_ctor_get(x_18, 0); +lean_inc(x_75); +lean_dec(x_18); +x_76 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +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; +} else { + lean_dec_ref(x_76); + x_79 = lean_box(0); +} +x_80 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_81 = l_Lean_FileMap_toPosition(x_12, x_80); +x_82 = l_Lean_FileMap_toPosition(x_12, x_75); +lean_dec(x_75); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +if (x_14 == 0) +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_77, x_11, x_81, x_83, x_10, x_84, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_85; +} +else +{ +lean_object* x_86; uint8_t x_87; +x_86 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_77); +x_87 = l_Lean_MessageData_hasTag(x_86, x_77); 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; 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_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -x_90 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_91 = l_Lean_FileMap_toPosition(x_12, x_90); -x_92 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_92); -lean_ctor_set(x_86, 1, x_15); -lean_ctor_set(x_86, 0, x_14); -x_93 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_93, 0, x_86); -lean_ctor_set(x_93, 1, x_88); -x_94 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_95 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_95, 0, x_11); -lean_ctor_set(x_95, 1, x_91); -lean_ctor_set(x_95, 2, x_19); -lean_ctor_set(x_95, 3, x_94); -lean_ctor_set(x_95, 4, x_93); -lean_ctor_set_uint8(x_95, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_95, sizeof(void*)*5 + 1, x_10); -x_96 = lean_st_ref_take(x_7, x_89); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = !lean_is_exclusive(x_97); -if (x_99 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_83); +lean_dec(x_81); +lean_dec(x_77); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +return x_89; +} +else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_100 = lean_ctor_get(x_97, 5); -x_101 = l_Lean_PersistentArray_push___rarg(x_100, x_95); -lean_ctor_set(x_97, 5, x_101); -x_102 = lean_st_ref_set(x_7, x_97, x_98); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +lean_object* x_90; lean_object* x_91; +lean_dec(x_79); +x_90 = lean_box(0); +x_91 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_77, x_11, x_81, x_83, x_10, x_90, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_91; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_17); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_17, 0); +x_94 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_95 = !lean_is_exclusive(x_94); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_94, 0); +x_97 = lean_ctor_get(x_94, 1); +x_98 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_98); +lean_ctor_set(x_17, 0, x_98); +if (x_14 == 0) +{ +lean_object* x_99; lean_object* x_100; +lean_free_object(x_94); +x_99 = lean_box(0); +x_100 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_96, x_11, x_98, x_17, x_10, x_99, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_100; +} +else +{ +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_96); +x_102 = l_Lean_MessageData_hasTag(x_101, x_96); +if (x_102 == 0) +{ +lean_object* x_103; +lean_dec(x_17); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_103 = lean_box(0); +lean_ctor_set(x_94, 0, x_103); +return x_94; +} +else { lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_102, 0); -lean_dec(x_104); -x_105 = lean_box(0); -lean_ctor_set(x_102, 0, x_105); -return x_102; +lean_free_object(x_94); +x_104 = lean_box(0); +x_105 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_96, x_11, x_98, x_17, x_10, x_104, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_105; +} +} } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_102, 1); +x_106 = lean_ctor_get(x_94, 0); +x_107 = lean_ctor_get(x_94, 1); +lean_inc(x_107); lean_inc(x_106); -lean_dec(x_102); -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_dec(x_94); +x_108 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_108); +lean_ctor_set(x_17, 0, x_108); +if (x_14 == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_box(0); +x_110 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_106, x_11, x_108, x_17, x_10, x_109, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_110; +} +else +{ +lean_object* x_111; uint8_t x_112; +x_111 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_106); +x_112 = l_Lean_MessageData_hasTag(x_111, x_106); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_17); +lean_dec(x_108); +lean_dec(x_106); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_113 = lean_box(0); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_107); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_box(0); +x_116 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_106, x_11, x_108, x_17, x_10, x_115, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_116; +} +} } } 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_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_109 = lean_ctor_get(x_97, 0); -x_110 = lean_ctor_get(x_97, 1); -x_111 = lean_ctor_get(x_97, 2); -x_112 = lean_ctor_get(x_97, 3); -x_113 = lean_ctor_get(x_97, 4); -x_114 = lean_ctor_get(x_97, 5); -x_115 = lean_ctor_get(x_97, 6); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_97); -x_116 = l_Lean_PersistentArray_push___rarg(x_114, x_95); -x_117 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_117, 0, x_109); -lean_ctor_set(x_117, 1, x_110); -lean_ctor_set(x_117, 2, x_111); -lean_ctor_set(x_117, 3, x_112); -lean_ctor_set(x_117, 4, x_113); -lean_ctor_set(x_117, 5, x_116); -lean_ctor_set(x_117, 6, x_115); -x_118 = lean_st_ref_set(x_7, x_117, x_98); -x_119 = lean_ctor_get(x_118, 1); +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_117 = lean_ctor_get(x_17, 0); +lean_inc(x_117); +lean_dec(x_17); +x_118 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); if (lean_is_exclusive(x_118)) { lean_ctor_release(x_118, 0); lean_ctor_release(x_118, 1); - x_120 = x_118; + x_121 = x_118; } else { lean_dec_ref(x_118); - x_120 = lean_box(0); -} -x_121 = lean_box(0); -if (lean_is_scalar(x_120)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_120; -} -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_119); -return x_122; + x_121 = lean_box(0); } +x_122 = l_Lean_FileMap_toPosition(x_12, x_117); +lean_dec(x_117); +lean_inc(x_122); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +if (x_14 == 0) +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_121); +x_124 = lean_box(0); +x_125 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_119, x_11, x_122, x_123, x_10, x_124, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_125; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_123 = lean_ctor_get(x_86, 0); -x_124 = lean_ctor_get(x_86, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_86); -x_125 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_126 = l_Lean_FileMap_toPosition(x_12, x_125); -x_127 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_127); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_14); -lean_ctor_set(x_128, 1, x_15); -x_129 = lean_alloc_ctor(3, 2, 0); +lean_object* x_126; uint8_t x_127; +x_126 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_119); +x_127 = l_Lean_MessageData_hasTag(x_126, x_119); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_119); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_128 = lean_box(0); +if (lean_is_scalar(x_121)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_121; +} lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_123); -x_130 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_131 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_131, 0, x_11); -lean_ctor_set(x_131, 1, x_126); -lean_ctor_set(x_131, 2, x_19); -lean_ctor_set(x_131, 3, x_130); -lean_ctor_set(x_131, 4, x_129); -lean_ctor_set_uint8(x_131, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_131, sizeof(void*)*5 + 1, x_10); -x_132 = lean_st_ref_take(x_7, x_124); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); +lean_ctor_set(x_129, 1, x_120); +return x_129; +} +else +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_121); +x_130 = lean_box(0); +x_131 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_119, x_11, x_122, x_123, x_10, x_130, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_131; +} +} +} +} +else +{ +lean_object* x_132; uint8_t x_133; +x_132 = lean_ctor_get(x_17, 0); +lean_inc(x_132); +lean_dec(x_17); +x_133 = !lean_is_exclusive(x_18); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_18, 0); +x_135 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_137 = lean_ctor_get(x_135, 0); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_12); +x_139 = l_Lean_FileMap_toPosition(x_12, x_132); lean_dec(x_132); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -x_137 = lean_ctor_get(x_133, 2); +x_140 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_140); +if (x_14 == 0) +{ +lean_object* x_141; lean_object* x_142; +lean_free_object(x_135); +x_141 = lean_box(0); +x_142 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_137, x_11, x_139, x_18, x_10, x_141, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_142; +} +else +{ +lean_object* x_143; uint8_t x_144; +x_143 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 3); -lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 4); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 5); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 6); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - lean_ctor_release(x_133, 6); - x_142 = x_133; -} else { - lean_dec_ref(x_133); - x_142 = lean_box(0); +x_144 = l_Lean_MessageData_hasTag(x_143, x_137); +if (x_144 == 0) +{ +lean_object* x_145; +lean_dec(x_18); +lean_dec(x_139); +lean_dec(x_137); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_145 = lean_box(0); +lean_ctor_set(x_135, 0, x_145); +return x_135; } -x_143 = l_Lean_PersistentArray_push___rarg(x_140, x_131); -if (lean_is_scalar(x_142)) { - x_144 = lean_alloc_ctor(0, 7, 0); -} else { - x_144 = x_142; +else +{ +lean_object* x_146; lean_object* x_147; +lean_free_object(x_135); +x_146 = lean_box(0); +x_147 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_137, x_11, x_139, x_18, x_10, x_146, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_147; } -lean_ctor_set(x_144, 0, x_135); -lean_ctor_set(x_144, 1, x_136); -lean_ctor_set(x_144, 2, x_137); -lean_ctor_set(x_144, 3, x_138); -lean_ctor_set(x_144, 4, x_139); -lean_ctor_set(x_144, 5, x_143); -lean_ctor_set(x_144, 6, x_141); -x_145 = lean_st_ref_set(x_7, x_144, x_134); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; -} else { - lean_dec_ref(x_145); - x_147 = lean_box(0); -} -x_148 = lean_box(0); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -return x_149; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_150 = lean_ctor_get(x_19, 0); -lean_inc(x_150); -lean_dec(x_19); -x_151 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_154 = x_151; -} else { - lean_dec_ref(x_151); - x_154 = lean_box(0); -} -x_155 = lean_unsigned_to_nat(0u); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_135, 0); +x_149 = lean_ctor_get(x_135, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_135); lean_inc(x_12); -x_156 = l_Lean_FileMap_toPosition(x_12, x_155); -x_157 = l_Lean_FileMap_toPosition(x_12, x_150); +x_150 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_151 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_151); +if (x_14 == 0) +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_box(0); +x_153 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_148, x_11, x_150, x_18, x_10, x_152, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_153; +} +else +{ +lean_object* x_154; uint8_t x_155; +x_154 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_148); +x_155 = l_Lean_MessageData_hasTag(x_154, x_148); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec(x_18); lean_dec(x_150); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_157); -if (lean_is_scalar(x_154)) { - x_159 = lean_alloc_ctor(0, 2, 0); -} else { - x_159 = x_154; +lean_dec(x_148); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_149); +return x_157; } -lean_ctor_set(x_159, 0, x_14); -lean_ctor_set(x_159, 1, x_15); -x_160 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_152); -x_161 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_162 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_162, 0, x_11); -lean_ctor_set(x_162, 1, x_156); -lean_ctor_set(x_162, 2, x_158); -lean_ctor_set(x_162, 3, x_161); -lean_ctor_set(x_162, 4, x_160); -lean_ctor_set_uint8(x_162, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_162, sizeof(void*)*5 + 1, x_10); -x_163 = lean_st_ref_take(x_7, x_153); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_167); -x_168 = lean_ctor_get(x_164, 2); -lean_inc(x_168); -x_169 = lean_ctor_get(x_164, 3); -lean_inc(x_169); -x_170 = lean_ctor_get(x_164, 4); -lean_inc(x_170); -x_171 = lean_ctor_get(x_164, 5); -lean_inc(x_171); -x_172 = lean_ctor_get(x_164, 6); -lean_inc(x_172); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - lean_ctor_release(x_164, 3); - lean_ctor_release(x_164, 4); - lean_ctor_release(x_164, 5); - lean_ctor_release(x_164, 6); +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_box(0); +x_159 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_148, x_11, x_150, x_18, x_10, x_158, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_159; +} +} +} +} +else +{ +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; +x_160 = lean_ctor_get(x_18, 0); +lean_inc(x_160); +lean_dec(x_18); +x_161 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_164 = x_161; +} else { + lean_dec_ref(x_161); + x_164 = lean_box(0); +} +lean_inc(x_12); +x_165 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_166 = l_Lean_FileMap_toPosition(x_12, x_160); +lean_dec(x_160); +x_167 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_167, 0, x_166); +if (x_14 == 0) +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_168 = lean_box(0); +x_169 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_162, x_11, x_165, x_167, x_10, x_168, x_6, x_7, x_163); +lean_dec(x_7); +lean_dec(x_6); +return x_169; +} +else +{ +lean_object* x_170; uint8_t x_171; +x_170 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1; +lean_inc(x_162); +x_171 = l_Lean_MessageData_hasTag(x_170, x_162); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +lean_dec(x_167); +lean_dec(x_165); +lean_dec(x_162); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_172 = lean_box(0); +if (lean_is_scalar(x_164)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { x_173 = x_164; -} else { - lean_dec_ref(x_164); - x_173 = lean_box(0); -} -x_174 = l_Lean_PersistentArray_push___rarg(x_171, x_162); -if (lean_is_scalar(x_173)) { - x_175 = lean_alloc_ctor(0, 7, 0); -} else { - x_175 = x_173; -} -lean_ctor_set(x_175, 0, x_166); -lean_ctor_set(x_175, 1, x_167); -lean_ctor_set(x_175, 2, x_168); -lean_ctor_set(x_175, 3, x_169); -lean_ctor_set(x_175, 4, x_170); -lean_ctor_set(x_175, 5, x_174); -lean_ctor_set(x_175, 6, x_172); -x_176 = lean_st_ref_set(x_7, x_175, x_165); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_178 = x_176; -} else { - lean_dec_ref(x_176); - x_178 = lean_box(0); -} -x_179 = lean_box(0); -if (lean_is_scalar(x_178)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_178; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_177); -return x_180; -} } +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_163); +return x_173; } else { -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_18); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_ctor_get(x_18, 0); -x_183 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_174; lean_object* x_175; +lean_dec(x_164); +x_174 = lean_box(0); +x_175 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_162, x_11, x_165, x_167, x_10, x_174, x_6, x_7, x_163); +lean_dec(x_7); lean_dec(x_6); -x_184 = !lean_is_exclusive(x_183); -if (x_184 == 0) -{ -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; -x_185 = lean_ctor_get(x_183, 0); -x_186 = lean_ctor_get(x_183, 1); -x_187 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_187); -lean_ctor_set(x_18, 0, x_187); -lean_ctor_set(x_183, 1, x_15); -lean_ctor_set(x_183, 0, x_14); -x_188 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_185); -x_189 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_190 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_190, 0, x_11); -lean_ctor_set(x_190, 1, x_187); -lean_ctor_set(x_190, 2, x_18); -lean_ctor_set(x_190, 3, x_189); -lean_ctor_set(x_190, 4, x_188); -lean_ctor_set_uint8(x_190, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_190, sizeof(void*)*5 + 1, x_10); -x_191 = lean_st_ref_take(x_7, x_186); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = !lean_is_exclusive(x_192); -if (x_194 == 0) -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_195 = lean_ctor_get(x_192, 5); -x_196 = l_Lean_PersistentArray_push___rarg(x_195, x_190); -lean_ctor_set(x_192, 5, x_196); -x_197 = lean_st_ref_set(x_7, x_192, x_193); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -lean_dec(x_199); -x_200 = lean_box(0); -lean_ctor_set(x_197, 0, x_200); -return x_197; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_197, 1); -lean_inc(x_201); -lean_dec(x_197); -x_202 = lean_box(0); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +return x_175; } } -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_204 = lean_ctor_get(x_192, 0); -x_205 = lean_ctor_get(x_192, 1); -x_206 = lean_ctor_get(x_192, 2); -x_207 = lean_ctor_get(x_192, 3); -x_208 = lean_ctor_get(x_192, 4); -x_209 = lean_ctor_get(x_192, 5); -x_210 = lean_ctor_get(x_192, 6); -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_inc(x_204); -lean_dec(x_192); -x_211 = l_Lean_PersistentArray_push___rarg(x_209, x_190); -x_212 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_212, 0, x_204); -lean_ctor_set(x_212, 1, x_205); -lean_ctor_set(x_212, 2, x_206); -lean_ctor_set(x_212, 3, x_207); -lean_ctor_set(x_212, 4, x_208); -lean_ctor_set(x_212, 5, x_211); -lean_ctor_set(x_212, 6, x_210); -x_213 = lean_st_ref_set(x_7, x_212, x_193); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_215 = x_213; -} else { - lean_dec_ref(x_213); - x_215 = lean_box(0); -} -x_216 = lean_box(0); -if (lean_is_scalar(x_215)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_215; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_214); -return x_217; -} -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_218 = lean_ctor_get(x_183, 0); -x_219 = lean_ctor_get(x_183, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_183); -x_220 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_220); -lean_ctor_set(x_18, 0, x_220); -x_221 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_221, 0, x_14); -lean_ctor_set(x_221, 1, x_15); -x_222 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_218); -x_223 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_224 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_224, 0, x_11); -lean_ctor_set(x_224, 1, x_220); -lean_ctor_set(x_224, 2, x_18); -lean_ctor_set(x_224, 3, x_223); -lean_ctor_set(x_224, 4, x_222); -lean_ctor_set_uint8(x_224, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_224, sizeof(void*)*5 + 1, x_10); -x_225 = lean_st_ref_take(x_7, x_219); -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); -x_228 = lean_ctor_get(x_226, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_226, 1); -lean_inc(x_229); -x_230 = lean_ctor_get(x_226, 2); -lean_inc(x_230); -x_231 = lean_ctor_get(x_226, 3); -lean_inc(x_231); -x_232 = lean_ctor_get(x_226, 4); -lean_inc(x_232); -x_233 = lean_ctor_get(x_226, 5); -lean_inc(x_233); -x_234 = lean_ctor_get(x_226, 6); -lean_inc(x_234); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - lean_ctor_release(x_226, 2); - lean_ctor_release(x_226, 3); - lean_ctor_release(x_226, 4); - lean_ctor_release(x_226, 5); - lean_ctor_release(x_226, 6); - x_235 = x_226; -} else { - lean_dec_ref(x_226); - x_235 = lean_box(0); -} -x_236 = l_Lean_PersistentArray_push___rarg(x_233, x_224); -if (lean_is_scalar(x_235)) { - x_237 = lean_alloc_ctor(0, 7, 0); -} else { - x_237 = x_235; -} -lean_ctor_set(x_237, 0, x_228); -lean_ctor_set(x_237, 1, x_229); -lean_ctor_set(x_237, 2, x_230); -lean_ctor_set(x_237, 3, x_231); -lean_ctor_set(x_237, 4, x_232); -lean_ctor_set(x_237, 5, x_236); -lean_ctor_set(x_237, 6, x_234); -x_238 = lean_st_ref_set(x_7, x_237, x_227); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; -} else { - lean_dec_ref(x_238); - x_240 = lean_box(0); -} -x_241 = lean_box(0); -if (lean_is_scalar(x_240)) { - x_242 = lean_alloc_ctor(0, 2, 0); -} else { - x_242 = x_240; -} -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_239); -return x_242; -} -} -else -{ -lean_object* 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_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_243 = lean_ctor_get(x_18, 0); -lean_inc(x_243); -lean_dec(x_18); -x_244 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_247 = x_244; -} else { - lean_dec_ref(x_244); - x_247 = lean_box(0); -} -x_248 = l_Lean_FileMap_toPosition(x_12, x_243); -lean_dec(x_243); -lean_inc(x_248); -x_249 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_249, 0, x_248); -if (lean_is_scalar(x_247)) { - x_250 = lean_alloc_ctor(0, 2, 0); -} else { - x_250 = x_247; -} -lean_ctor_set(x_250, 0, x_14); -lean_ctor_set(x_250, 1, x_15); -x_251 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_245); -x_252 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_253 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_253, 0, x_11); -lean_ctor_set(x_253, 1, x_248); -lean_ctor_set(x_253, 2, x_249); -lean_ctor_set(x_253, 3, x_252); -lean_ctor_set(x_253, 4, x_251); -lean_ctor_set_uint8(x_253, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_253, sizeof(void*)*5 + 1, x_10); -x_254 = lean_st_ref_take(x_7, x_246); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_ctor_get(x_255, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_255, 1); -lean_inc(x_258); -x_259 = lean_ctor_get(x_255, 2); -lean_inc(x_259); -x_260 = lean_ctor_get(x_255, 3); -lean_inc(x_260); -x_261 = lean_ctor_get(x_255, 4); -lean_inc(x_261); -x_262 = lean_ctor_get(x_255, 5); -lean_inc(x_262); -x_263 = lean_ctor_get(x_255, 6); -lean_inc(x_263); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - lean_ctor_release(x_255, 2); - lean_ctor_release(x_255, 3); - lean_ctor_release(x_255, 4); - lean_ctor_release(x_255, 5); - lean_ctor_release(x_255, 6); - x_264 = x_255; -} else { - lean_dec_ref(x_255); - x_264 = lean_box(0); -} -x_265 = l_Lean_PersistentArray_push___rarg(x_262, x_253); -if (lean_is_scalar(x_264)) { - x_266 = lean_alloc_ctor(0, 7, 0); -} else { - x_266 = x_264; -} -lean_ctor_set(x_266, 0, x_257); -lean_ctor_set(x_266, 1, x_258); -lean_ctor_set(x_266, 2, x_259); -lean_ctor_set(x_266, 3, x_260); -lean_ctor_set(x_266, 4, x_261); -lean_ctor_set(x_266, 5, x_265); -lean_ctor_set(x_266, 6, x_263); -x_267 = lean_st_ref_set(x_7, x_266, x_256); -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(0, 2, 0); -} else { - x_271 = x_269; -} -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_268); -return x_271; -} -} -else -{ -lean_object* x_272; uint8_t x_273; -x_272 = lean_ctor_get(x_18, 0); -lean_inc(x_272); -lean_dec(x_18); -x_273 = !lean_is_exclusive(x_19); -if (x_273 == 0) -{ -lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_274 = lean_ctor_get(x_19, 0); -x_275 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) -{ -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; uint8_t x_287; -x_277 = lean_ctor_get(x_275, 0); -x_278 = lean_ctor_get(x_275, 1); -lean_inc(x_12); -x_279 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_280 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_280); -lean_ctor_set(x_275, 1, x_15); -lean_ctor_set(x_275, 0, x_14); -x_281 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_281, 0, x_275); -lean_ctor_set(x_281, 1, x_277); -x_282 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_283 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_283, 0, x_11); -lean_ctor_set(x_283, 1, x_279); -lean_ctor_set(x_283, 2, x_19); -lean_ctor_set(x_283, 3, x_282); -lean_ctor_set(x_283, 4, x_281); -lean_ctor_set_uint8(x_283, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_283, sizeof(void*)*5 + 1, x_10); -x_284 = lean_st_ref_take(x_7, x_278); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); -x_287 = !lean_is_exclusive(x_285); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; -x_288 = lean_ctor_get(x_285, 5); -x_289 = l_Lean_PersistentArray_push___rarg(x_288, x_283); -lean_ctor_set(x_285, 5, x_289); -x_290 = lean_st_ref_set(x_7, x_285, x_286); -x_291 = !lean_is_exclusive(x_290); -if (x_291 == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_290, 0); -lean_dec(x_292); -x_293 = lean_box(0); -lean_ctor_set(x_290, 0, x_293); -return x_290; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_290, 1); -lean_inc(x_294); -lean_dec(x_290); -x_295 = lean_box(0); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_294); -return x_296; -} -} -else -{ -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; -x_297 = lean_ctor_get(x_285, 0); -x_298 = lean_ctor_get(x_285, 1); -x_299 = lean_ctor_get(x_285, 2); -x_300 = lean_ctor_get(x_285, 3); -x_301 = lean_ctor_get(x_285, 4); -x_302 = lean_ctor_get(x_285, 5); -x_303 = lean_ctor_get(x_285, 6); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_285); -x_304 = l_Lean_PersistentArray_push___rarg(x_302, x_283); -x_305 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_305, 0, x_297); -lean_ctor_set(x_305, 1, x_298); -lean_ctor_set(x_305, 2, x_299); -lean_ctor_set(x_305, 3, x_300); -lean_ctor_set(x_305, 4, x_301); -lean_ctor_set(x_305, 5, x_304); -lean_ctor_set(x_305, 6, x_303); -x_306 = lean_st_ref_set(x_7, x_305, x_286); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; -} else { - lean_dec_ref(x_306); - x_308 = lean_box(0); -} -x_309 = lean_box(0); -if (lean_is_scalar(x_308)) { - x_310 = lean_alloc_ctor(0, 2, 0); -} else { - x_310 = x_308; -} -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_307); -return x_310; -} -} -else -{ -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; 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; -x_311 = lean_ctor_get(x_275, 0); -x_312 = lean_ctor_get(x_275, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_275); -lean_inc(x_12); -x_313 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_314 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_314); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_14); -lean_ctor_set(x_315, 1, x_15); -x_316 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_311); -x_317 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_318 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_318, 0, x_11); -lean_ctor_set(x_318, 1, x_313); -lean_ctor_set(x_318, 2, x_19); -lean_ctor_set(x_318, 3, x_317); -lean_ctor_set(x_318, 4, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_318, sizeof(void*)*5 + 1, x_10); -x_319 = lean_st_ref_take(x_7, x_312); -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, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_323); -x_324 = lean_ctor_get(x_320, 2); -lean_inc(x_324); -x_325 = lean_ctor_get(x_320, 3); -lean_inc(x_325); -x_326 = lean_ctor_get(x_320, 4); -lean_inc(x_326); -x_327 = lean_ctor_get(x_320, 5); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 6); -lean_inc(x_328); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - lean_ctor_release(x_320, 2); - lean_ctor_release(x_320, 3); - lean_ctor_release(x_320, 4); - lean_ctor_release(x_320, 5); - lean_ctor_release(x_320, 6); - x_329 = x_320; -} else { - lean_dec_ref(x_320); - x_329 = lean_box(0); -} -x_330 = l_Lean_PersistentArray_push___rarg(x_327, x_318); -if (lean_is_scalar(x_329)) { - x_331 = lean_alloc_ctor(0, 7, 0); -} else { - x_331 = x_329; -} -lean_ctor_set(x_331, 0, x_322); -lean_ctor_set(x_331, 1, x_323); -lean_ctor_set(x_331, 2, x_324); -lean_ctor_set(x_331, 3, x_325); -lean_ctor_set(x_331, 4, x_326); -lean_ctor_set(x_331, 5, x_330); -lean_ctor_set(x_331, 6, x_328); -x_332 = lean_st_ref_set(x_7, x_331, x_321); -x_333 = lean_ctor_get(x_332, 1); -lean_inc(x_333); -if (lean_is_exclusive(x_332)) { - lean_ctor_release(x_332, 0); - lean_ctor_release(x_332, 1); - x_334 = x_332; -} else { - lean_dec_ref(x_332); - x_334 = lean_box(0); -} -x_335 = lean_box(0); -if (lean_is_scalar(x_334)) { - x_336 = lean_alloc_ctor(0, 2, 0); -} else { - x_336 = x_334; -} -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_333); -return x_336; -} -} -else -{ -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; 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_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; 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; -x_337 = lean_ctor_get(x_19, 0); -lean_inc(x_337); -lean_dec(x_19); -x_338 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_341 = x_338; -} else { - lean_dec_ref(x_338); - x_341 = lean_box(0); -} -lean_inc(x_12); -x_342 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_343 = l_Lean_FileMap_toPosition(x_12, x_337); -lean_dec(x_337); -x_344 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_344, 0, x_343); -if (lean_is_scalar(x_341)) { - x_345 = lean_alloc_ctor(0, 2, 0); -} else { - x_345 = x_341; -} -lean_ctor_set(x_345, 0, x_14); -lean_ctor_set(x_345, 1, x_15); -x_346 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_339); -x_347 = l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1___closed__5; -x_348 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_348, 0, x_11); -lean_ctor_set(x_348, 1, x_342); -lean_ctor_set(x_348, 2, x_344); -lean_ctor_set(x_348, 3, x_347); -lean_ctor_set(x_348, 4, x_346); -lean_ctor_set_uint8(x_348, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_348, sizeof(void*)*5 + 1, x_10); -x_349 = lean_st_ref_take(x_7, x_340); -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -x_352 = lean_ctor_get(x_350, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_350, 1); -lean_inc(x_353); -x_354 = lean_ctor_get(x_350, 2); -lean_inc(x_354); -x_355 = lean_ctor_get(x_350, 3); -lean_inc(x_355); -x_356 = lean_ctor_get(x_350, 4); -lean_inc(x_356); -x_357 = lean_ctor_get(x_350, 5); -lean_inc(x_357); -x_358 = lean_ctor_get(x_350, 6); -lean_inc(x_358); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - lean_ctor_release(x_350, 2); - lean_ctor_release(x_350, 3); - lean_ctor_release(x_350, 4); - lean_ctor_release(x_350, 5); - lean_ctor_release(x_350, 6); - x_359 = x_350; -} else { - lean_dec_ref(x_350); - x_359 = lean_box(0); -} -x_360 = l_Lean_PersistentArray_push___rarg(x_357, x_348); -if (lean_is_scalar(x_359)) { - x_361 = lean_alloc_ctor(0, 7, 0); -} else { - x_361 = x_359; -} -lean_ctor_set(x_361, 0, x_352); -lean_ctor_set(x_361, 1, x_353); -lean_ctor_set(x_361, 2, x_354); -lean_ctor_set(x_361, 3, x_355); -lean_ctor_set(x_361, 4, x_356); -lean_ctor_set(x_361, 5, x_360); -lean_ctor_set(x_361, 6, x_358); -x_362 = lean_st_ref_set(x_7, x_361, x_351); -x_363 = lean_ctor_get(x_362, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - x_364 = x_362; -} else { - lean_dec_ref(x_362); - x_364 = lean_box(0); -} -x_365 = lean_box(0); -if (lean_is_scalar(x_364)) { - x_366 = lean_alloc_ctor(0, 2, 0); -} else { - x_366 = x_364; -} -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_363); -return x_366; } } } @@ -11689,10 +11401,6 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_5, 5); lean_inc(x_8); x_9 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_8); return x_9; } } @@ -12303,6 +12011,29 @@ return x_35; } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___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) { _start: { @@ -12310,10 +12041,6 @@ uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_3); lean_dec(x_3); x_10 = l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); return x_10; } } @@ -12565,8 +12292,16 @@ l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__1 = _init_l_Lean_E lean_mark_persistent(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__1); l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__2 = _init_l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__2(); lean_mark_persistent(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__2); +l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__1); +l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__2); +l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___lambda__2___closed__3); l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__1); +l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2 = _init_l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_ComputedFields_setComputedFields___spec__2___closed__2); l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_setComputedFields___spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/DeclNameGen.c b/stage0/stdlib/Lean/Elab/DeclNameGen.c index b02655ad3e..6c4ec14bd5 100644 --- a/stage0/stdlib/Lean/Elab/DeclNameGen.c +++ b/stage0/stdlib/Lean/Elab/DeclNameGen.c @@ -31,6 +31,7 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_obje lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_DeclNameGen_0__Lean_Elab_Command_NameGen_winnowExpr_visit___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_DeclNameGen_0__Lean_Elab_Command_NameGen_winnowExpr_visit___spec__3___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at_Lean_Elab_Command_NameGen_mkBaseNameWithSuffix___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_NameGen_mkBaseNameWithSuffix_x27___spec__4___rarg___closed__1; @@ -5521,7 +5522,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -5533,7 +5534,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -5546,24 +5550,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -6433,14 +6439,18 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_14, 0); x_20 = lean_ctor_get(x_14, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_free_object(x_14); lean_dec(x_19); -x_22 = lean_apply_8(x_11, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -return x_22; +x_23 = lean_apply_8(x_11, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_23; } else { @@ -6456,23 +6466,6 @@ return x_14; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_14); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_23); -x_26 = lean_apply_8(x_11, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -return x_26; -} -else -{ -lean_object* x_27; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6480,10 +6473,59 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_23); -lean_ctor_set(x_27, 1, x_24); -return x_27; +return x_14; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_14); +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_24); +x_28 = lean_apply_8(x_11, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +return x_28; +} +else +{ +lean_object* x_29; +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_1); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 1, x_25); +return x_29; +} +} +else +{ +lean_object* x_30; +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_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_25); +return x_30; } } } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 7c16f8a810..1312e0bbaa 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -69,6 +69,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Declaration___hyg_7884____closed__7; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandInitialize___closed__1; @@ -3971,7 +3972,7 @@ lean_inc(x_5); x_8 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_1, 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; 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; lean_object* x_27; lean_object* x_28; +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; 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; uint8_t x_28; lean_object* x_29; lean_object* x_30; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); @@ -4004,168 +4005,173 @@ x_25 = lean_ctor_get(x_5, 7); lean_inc(x_25); x_26 = lean_ctor_get(x_5, 8); lean_inc(x_26); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_20); -lean_ctor_set(x_27, 2, x_21); -lean_ctor_set(x_27, 3, x_22); -lean_ctor_set(x_27, 4, x_23); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_18); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set(x_27, 8, x_26); +x_27 = lean_ctor_get(x_5, 9); +lean_inc(x_27); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_24); +lean_ctor_set(x_29, 6, x_18); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_28); lean_inc(x_6); -x_28 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__6(x_14, x_12, x_27, x_6, x_17); -if (lean_obj_tag(x_28) == 0) +x_30 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__6(x_14, x_12, x_29, x_6, x_17); +if (lean_obj_tag(x_30) == 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; lean_object* x_36; lean_object* x_37; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_unsigned_to_nat(4u); -x_32 = l_Lean_Syntax_getArg(x_2, x_31); -x_33 = l_Lean_Elab_expandOptDeclSig(x_32); -lean_dec(x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_1, 0); +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; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_unsigned_to_nat(4u); +x_34 = l_Lean_Syntax_getArg(x_2, x_33); +x_35 = l_Lean_Elab_expandOptDeclSig(x_34); +lean_dec(x_34); +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_ctor_get(x_1, 0); +lean_inc(x_38); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_29); -x_37 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__13(x_29, x_36, x_5, x_6, x_30); -if (lean_obj_tag(x_37) == 0) +lean_inc(x_31); +x_39 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__13(x_31, x_38, x_5, x_6, x_32); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); lean_inc(x_2); -lean_inc(x_29); -x_39 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_29, x_2, x_13, x_5, x_6, x_38); +lean_inc(x_31); +x_41 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_31, x_2, x_13, x_5, x_6, x_40); lean_dec(x_6); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 0); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +x_44 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_44, 0, x_2); +lean_ctor_set(x_44, 1, x_1); +lean_ctor_set(x_44, 2, x_31); +lean_ctor_set(x_44, 3, x_36); +lean_ctor_set(x_44, 4, x_37); +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_42 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_42, 0, x_2); -lean_ctor_set(x_42, 1, x_1); -lean_ctor_set(x_42, 2, x_29); -lean_ctor_set(x_42, 3, x_34); -lean_ctor_set(x_42, 4, x_35); -lean_ctor_set(x_39, 0, x_42); +x_46 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_46, 0, x_2); +lean_ctor_set(x_46, 1, x_1); +lean_ctor_set(x_46, 2, x_31); +lean_ctor_set(x_46, 3, x_36); +lean_ctor_set(x_46, 4, x_37); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +else +{ +uint8_t x_48; +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_31); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_39); +if (x_48 == 0) +{ return x_39; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 1); -lean_inc(x_43); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_39, 0); +x_50 = lean_ctor_get(x_39, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_39); -x_44 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_44, 0, x_2); -lean_ctor_set(x_44, 1, x_1); -lean_ctor_set(x_44, 2, x_29); -lean_ctor_set(x_44, 3, x_34); -lean_ctor_set(x_44, 4, x_35); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; +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_46; -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_29); +uint8_t x_52; lean_dec(x_13); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_37); -if (x_46 == 0) +x_52 = !lean_is_exclusive(x_30); +if (x_52 == 0) { -return x_37; +return x_30; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_37, 0); -x_48 = lean_ctor_get(x_37, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_37); -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; +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_30, 0); +x_54 = lean_ctor_get(x_30, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_30); +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_50; -lean_dec(x_13); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_50 = !lean_is_exclusive(x_28); -if (x_50 == 0) -{ -return x_28; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_28, 0); -x_52 = lean_ctor_get(x_28, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_28); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -uint8_t x_54; +uint8_t x_56; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_8); -if (x_54 == 0) +x_56 = !lean_is_exclusive(x_8); +if (x_56 == 0) { return x_8; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_8, 0); -x_56 = lean_ctor_get(x_8, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_8, 0); +x_58 = lean_ctor_get(x_8, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_8); -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; +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; } } } @@ -4403,7 +4409,7 @@ return x_10; } else { -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_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; uint8_t x_29; lean_object* x_30; lean_object* x_31; x_11 = lean_array_uget(x_5, x_4); x_12 = lean_unsigned_to_nat(0u); x_13 = lean_array_uset(x_5, x_4, x_12); @@ -4425,6 +4431,9 @@ x_24 = lean_ctor_get(x_6, 4); x_25 = lean_ctor_get(x_6, 5); x_26 = lean_ctor_get(x_6, 7); x_27 = lean_ctor_get(x_6, 8); +x_28 = lean_ctor_get(x_6, 9); +x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); @@ -4433,208 +4442,210 @@ lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -x_28 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_21); -lean_ctor_set(x_28, 2, x_22); -lean_ctor_set(x_28, 3, x_23); -lean_ctor_set(x_28, 4, x_24); -lean_ctor_set(x_28, 5, x_25); -lean_ctor_set(x_28, 6, x_19); -lean_ctor_set(x_28, 7, x_26); -lean_ctor_set(x_28, 8, x_27); +x_30 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_30, 1, x_21); +lean_ctor_set(x_30, 2, x_22); +lean_ctor_set(x_30, 3, x_23); +lean_ctor_set(x_30, 4, x_24); +lean_ctor_set(x_30, 5, x_25); +lean_ctor_set(x_30, 6, x_19); +lean_ctor_set(x_30, 7, x_26); +lean_ctor_set(x_30, 8, x_27); +lean_ctor_set(x_30, 9, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*10, x_29); lean_inc(x_7); -lean_inc(x_28); -x_29 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_15, x_28, x_7, x_18); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -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_31 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_15, x_30, x_7, x_18); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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); lean_inc(x_1); lean_inc(x_2); lean_inc(x_11); -x_32 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__3), 8, 3); -lean_closure_set(x_32, 0, x_11); -lean_closure_set(x_32, 1, x_2); -lean_closure_set(x_32, 2, x_1); -x_33 = l_Lean_Syntax_getArg(x_11, x_12); -x_34 = l_Lean_Syntax_getOptional_x3f(x_33); -lean_dec(x_33); -if (lean_obj_tag(x_34) == 0) +x_34 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__3), 8, 3); +lean_closure_set(x_34, 0, x_11); +lean_closure_set(x_34, 1, x_2); +lean_closure_set(x_34, 2, x_1); +x_35 = l_Lean_Syntax_getArg(x_11, x_12); +x_36 = l_Lean_Syntax_getOptional_x3f(x_35); +lean_dec(x_35); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_35; lean_object* x_36; -lean_dec(x_32); -x_35 = lean_box(0); +lean_object* x_37; lean_object* x_38; +lean_dec(x_34); +x_37 = lean_box(0); lean_inc(x_7); lean_inc(x_1); lean_inc(x_2); -x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__3(x_11, x_2, x_1, x_30, x_35, x_28, x_7, x_31); -if (lean_obj_tag(x_36) == 0) +x_38 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__3(x_11, x_2, x_1, x_32, x_37, x_30, x_7, x_33); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = 1; -x_40 = lean_usize_add(x_4, x_39); -x_41 = lean_array_uset(x_13, x_4, x_37); -x_4 = x_40; -x_5 = x_41; -x_8 = x_38; +lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; +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 = 1; +x_42 = lean_usize_add(x_4, x_41); +x_43 = lean_array_uset(x_13, x_4, x_39); +x_4 = x_42; +x_5 = x_43; +x_8 = x_40; goto _start; } else { -uint8_t x_43; +uint8_t x_45; lean_dec(x_13); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_36); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_38); +if (x_45 == 0) { -return x_36; +return x_38; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_36, 0); -x_45 = lean_ctor_get(x_36, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_36); -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 -{ -lean_object* x_47; -lean_dec(x_11); -x_47 = lean_ctor_get(x_30, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_38, 0); +x_47 = lean_ctor_get(x_38, 1); lean_inc(x_47); -if (lean_obj_tag(x_47) == 0) +lean_inc(x_46); +lean_dec(x_38); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_34, 0); -lean_inc(x_48); -lean_dec(x_34); -x_49 = lean_box(0); +lean_object* x_49; +lean_dec(x_11); +x_49 = lean_ctor_get(x_32, 0); +lean_inc(x_49); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_36, 0); +lean_inc(x_50); +lean_dec(x_36); +x_51 = lean_box(0); lean_inc(x_7); -x_50 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__4(x_48, x_32, x_30, x_49, x_28, x_7, x_31); -lean_dec(x_48); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; size_t x_53; size_t 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); +x_52 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__4(x_50, x_34, x_32, x_51, x_30, x_7, x_33); lean_dec(x_50); -x_53 = 1; -x_54 = lean_usize_add(x_4, x_53); -x_55 = lean_array_uset(x_13, x_4, x_51); -x_4 = x_54; -x_5 = x_55; -x_8 = x_52; +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; size_t x_55; size_t 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); +lean_dec(x_52); +x_55 = 1; +x_56 = lean_usize_add(x_4, x_55); +x_57 = lean_array_uset(x_13, x_4, x_53); +x_4 = x_56; +x_5 = x_57; +x_8 = x_54; goto _start; } else { -uint8_t x_57; +uint8_t x_59; lean_dec(x_13); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_50); -if (x_57 == 0) +x_59 = !lean_is_exclusive(x_52); +if (x_59 == 0) { -return x_50; +return x_52; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_50, 0); -x_59 = lean_ctor_get(x_50, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_50); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -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_dec(x_47); -x_61 = lean_ctor_get(x_34, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_52, 0); +x_61 = lean_ctor_get(x_52, 1); lean_inc(x_61); -lean_dec(x_34); -x_62 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___closed__3; -x_63 = 2; -lean_inc(x_28); -x_64 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_61, x_62, x_63, x_28, x_7, x_31); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -lean_inc(x_7); -x_67 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__4(x_61, x_32, x_30, x_65, x_28, x_7, x_66); -lean_dec(x_65); -lean_dec(x_61); -if (lean_obj_tag(x_67) == 0) +lean_inc(x_60); +lean_dec(x_52); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +else { -lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; lean_object* x_72; -x_68 = lean_ctor_get(x_67, 0); +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_dec(x_49); +x_63 = lean_ctor_get(x_36, 0); +lean_inc(x_63); +lean_dec(x_36); +x_64 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___closed__3; +x_65 = 2; +lean_inc(x_30); +x_66 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_63, x_64, x_65, x_30, x_7, x_33); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); +lean_dec(x_66); +lean_inc(x_7); +x_69 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__4(x_63, x_34, x_32, x_67, x_30, x_7, x_68); lean_dec(x_67); -x_70 = 1; -x_71 = lean_usize_add(x_4, x_70); -x_72 = lean_array_uset(x_13, x_4, x_68); -x_4 = x_71; -x_5 = x_72; -x_8 = x_69; +lean_dec(x_63); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; size_t x_72; size_t 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); +lean_dec(x_69); +x_72 = 1; +x_73 = lean_usize_add(x_4, x_72); +x_74 = lean_array_uset(x_13, x_4, x_70); +x_4 = x_73; +x_5 = x_74; +x_8 = x_71; goto _start; } else { -uint8_t x_74; +uint8_t x_76; lean_dec(x_13); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_67); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_69); +if (x_76 == 0) { -return x_67; +return x_69; } else { -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); -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); -return x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_69, 0); +x_78 = lean_ctor_get(x_69, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_69); +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; } } } @@ -4642,30 +4653,30 @@ return x_77; } else { -uint8_t x_78; -lean_dec(x_28); +uint8_t x_80; +lean_dec(x_30); lean_dec(x_13); lean_dec(x_11); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_29); -if (x_78 == 0) +x_80 = !lean_is_exclusive(x_31); +if (x_80 == 0) { -return x_29; +return x_31; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_29, 0); -x_80 = lean_ctor_get(x_29, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_29); -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; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_31, 0); +x_82 = lean_ctor_get(x_31, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_31); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } @@ -5464,7 +5475,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -5473,6 +5484,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -5482,19 +5496,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabDeclaration___spec__3(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabDeclaration___spec__3(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -9448,6 +9464,7 @@ x_8 = lean_usize_dec_lt(x_3, x_2); if (x_8 == 0) { lean_object* x_9; +lean_dec(x_6); lean_dec(x_5); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_4); @@ -9513,9 +9530,9 @@ x_34 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_34, 0, x_25); lean_ctor_set(x_34, 1, x_33); x_35 = 2; +lean_inc(x_6); lean_inc(x_5); x_36 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_10, x_34, x_35, x_5, x_6, x_28); -lean_dec(x_10); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); @@ -9566,9 +9583,9 @@ x_53 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); x_54 = 2; +lean_inc(x_6); lean_inc(x_5); x_55 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_10, x_53, x_54, x_5, x_6, x_46); -lean_dec(x_10); x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); @@ -9664,9 +9681,9 @@ x_88 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_88, 0, x_86); lean_ctor_set(x_88, 1, x_87); x_89 = 2; +lean_inc(x_6); lean_inc(x_5); x_90 = l_Lean_logAt___at_Lean_Elab_Command_runLinters___spec__2(x_10, x_88, x_89, x_5, x_6, x_80); -lean_dec(x_10); x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec(x_90); @@ -10152,81 +10169,85 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_12, 0); x_18 = lean_ctor_get(x_12, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +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_free_object(x_12); lean_dec(x_17); -x_20 = l_Lean_Syntax_getId(x_1); +x_21 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); -x_21 = lean_erase_macro_scopes(x_20); -lean_inc(x_21); -x_22 = l_Lean_Meta_Simp_isBuiltinSimproc(x_21, x_9, x_10, x_18); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) +x_22 = lean_erase_macro_scopes(x_21); +lean_inc(x_22); +x_23 = l_Lean_Meta_Simp_isBuiltinSimproc(x_22, x_9, x_10, x_18); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_dec(x_4); lean_dec(x_3); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__5(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__5(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_26); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -return x_26; +return x_27; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_26); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_dec(x_27); +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; } } else { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_22); -if (x_31 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_23); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_22, 1); -x_33 = lean_ctor_get(x_22, 0); -lean_dec(x_33); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 1, x_4); -lean_ctor_set(x_22, 0, x_21); -x_34 = lean_apply_8(x_3, x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -return x_34; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_23, 1); +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +lean_ctor_set_tag(x_23, 1); +lean_ctor_set(x_23, 1, x_4); +lean_ctor_set(x_23, 0, x_22); +x_35 = lean_apply_8(x_3, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +return x_35; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_22, 1); -lean_inc(x_35); -lean_dec(x_22); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_21); -lean_ctor_set(x_36, 1, x_4); -x_37 = lean_apply_8(x_3, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -return x_37; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_23, 1); +lean_inc(x_36); +lean_dec(x_23); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_22); +lean_ctor_set(x_37, 1, x_4); +x_38 = lean_apply_8(x_3, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +return x_38; } } } @@ -10246,89 +10267,6 @@ return x_12; } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_12, 0); -x_39 = lean_ctor_get(x_12, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_12); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_dec(x_38); -x_41 = l_Lean_Syntax_getId(x_1); -lean_dec(x_1); -x_42 = lean_erase_macro_scopes(x_41); -lean_inc(x_42); -x_43 = l_Lean_Meta_Simp_isBuiltinSimproc(x_42, x_9, x_10, x_39); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_unbox(x_44); -lean_dec(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; -lean_dec(x_4); -lean_dec(x_3); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__5(x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_46); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_50 = x_47; -} else { - lean_dec_ref(x_47); - 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 -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_43, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_53 = x_43; -} else { - lean_dec_ref(x_43); - x_53 = lean_box(0); -} -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; - lean_ctor_set_tag(x_54, 1); -} -lean_ctor_set(x_54, 0, x_42); -lean_ctor_set(x_54, 1, x_4); -x_55 = lean_apply_8(x_3, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_52); -return x_55; -} -} -else -{ -lean_object* x_56; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10338,10 +10276,129 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_38); -lean_ctor_set(x_56, 1, x_39); -return x_56; +return x_12; +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_12, 0); +x_40 = lean_ctor_get(x_12, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_12); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_dec(x_39); +x_43 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_44 = lean_erase_macro_scopes(x_43); +lean_inc(x_44); +x_45 = l_Lean_Meta_Simp_isBuiltinSimproc(x_44, x_9, x_10, x_40); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_unbox(x_46); +lean_dec(x_46); +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_dec(x_4); +lean_dec(x_3); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__5(x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_48); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + 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; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_45, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_55 = x_45; +} else { + lean_dec_ref(x_45); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; + lean_ctor_set_tag(x_56, 1); +} +lean_ctor_set(x_56, 0, x_44); +lean_ctor_set(x_56, 1, x_4); +x_57 = lean_apply_8(x_3, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +return x_57; +} +} +else +{ +lean_object* x_58; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_39); +lean_ctor_set(x_58, 1, x_40); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_39); +lean_ctor_set(x_59, 1, x_40); +return x_59; } } } @@ -10365,7 +10422,7 @@ return x_13; } else { -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_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; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_8); x_14 = lean_array_uget(x_5, x_7); x_15 = lean_box_usize(x_2); @@ -10402,6 +10459,9 @@ x_27 = lean_ctor_get(x_9, 4); x_28 = lean_ctor_get(x_9, 5); x_29 = lean_ctor_get(x_9, 7); x_30 = lean_ctor_get(x_9, 8); +x_31 = lean_ctor_get(x_9, 9); +x_32 = lean_ctor_get_uint8(x_9, sizeof(void*)*10); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -10410,55 +10470,57 @@ lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); -x_31 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_24); -lean_ctor_set(x_31, 2, x_25); -lean_ctor_set(x_31, 3, x_26); -lean_ctor_set(x_31, 4, x_27); -lean_ctor_set(x_31, 5, x_28); -lean_ctor_set(x_31, 6, x_22); -lean_ctor_set(x_31, 7, x_29); -lean_ctor_set(x_31, 8, x_30); -x_32 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_31, x_10, x_21); -lean_dec(x_31); -if (lean_obj_tag(x_32) == 0) +x_33 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_33, 0, x_23); +lean_ctor_set(x_33, 1, x_24); +lean_ctor_set(x_33, 2, x_25); +lean_ctor_set(x_33, 3, x_26); +lean_ctor_set(x_33, 4, x_27); +lean_ctor_set(x_33, 5, x_28); +lean_ctor_set(x_33, 6, x_22); +lean_ctor_set(x_33, 7, x_29); +lean_ctor_set(x_33, 8, x_30); +lean_ctor_set(x_33, 9, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*10, x_32); +x_34 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_33, x_10, x_21); +lean_dec(x_33); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_33; size_t x_34; size_t x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = 1; -x_35 = lean_usize_add(x_7, x_34); -x_36 = lean_box(0); -x_7 = x_35; -x_8 = x_36; -x_11 = x_33; +lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = 1; +x_37 = lean_usize_add(x_7, x_36); +x_38 = lean_box(0); +x_7 = x_37; +x_8 = x_38; +x_11 = x_35; goto _start; } else { -uint8_t x_38; +uint8_t x_40; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_32); -if (x_38 == 0) +x_40 = !lean_is_exclusive(x_34); +if (x_40 == 0) { -return x_32; +return x_34; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_32, 0); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_32); -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; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_34, 0); +x_42 = lean_ctor_get(x_34, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_34); +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; } } } @@ -10489,6 +10551,7 @@ x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; x_12 = l_Lean_Elab_Command_elabAttr___closed__1; +lean_inc(x_3); lean_inc(x_2); x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1(x_8, x_10, x_11, x_12, x_2, x_3, x_4); lean_dec(x_8); @@ -10609,7 +10672,6 @@ lean_dec(x_2); x_9 = lean_unbox_usize(x_3); lean_dec(x_3); x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); lean_dec(x_1); return x_10; } diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index 906d5bc128..716b54151e 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -14,16 +14,18 @@ extern "C" { #endif static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__4___closed__2; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3; +static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeBodyProcessedSnapshot___boxed(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfExample(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__1; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque___boxed(lean_object*); @@ -37,11 +39,11 @@ uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_object* l_Lean_Syntax_getArgs(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6; +lean_object* l_Lean_Expr_bvar___override(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11; lean_object* l_Lean_Elab_Command_mkInstanceName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1; LEAN_EXPORT uint8_t l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque(uint8_t); @@ -50,13 +52,16 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefView LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__10___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084_(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6; +size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_isDefLike___closed__9; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7; uint8_t lean_string_dec_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13; static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__2; @@ -65,23 +70,27 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__1___box static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; static lean_object* l_Lean_Elab_Command_isDefLike___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__4___closed__1; static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2; static lean_object* l_Lean_Elab_Command_isDefLike___closed__7; static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__2; static lean_object* l_Lean_Elab_Command_isDefLike___closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1(lean_object*); lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5; lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124_(lean_object*); +lean_object* l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1(lean_object*, size_t, size_t); static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__1; @@ -92,10 +101,11 @@ static lean_object* l_Lean_Elab_instInhabitedDefView___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___boxed(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev(lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12; lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -104,16 +114,20 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4; lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_; LEAN_EXPORT uint8_t l_Lean_Elab_DefView_isInstance(lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_toCtorIdx(uint8_t); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5; static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__4; lean_object* l_Lean_Syntax_getSepArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -130,9 +144,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefView lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_instInhabitedDefView; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3; lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; +lean_object* l_Array_append___rarg(lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; lean_object* l_Lean_Elab_expandOptNamedPrio___boxed(lean_object*, lean_object*, lean_object*); @@ -141,10 +160,16 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_Elab_Command_isDefLike___boxed(lean_object*); lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__10(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instTypeNameDefsParsedSnapshot; static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_DefView_deriving_x3f___default; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_DefView_headerSnap_x3f___default; +static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_DefView_isInstance___boxed(lean_object*); @@ -153,20 +178,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Comma static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__6; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -static lean_object* l_Lean_Elab_instInhabitedDefView___closed__3; static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1; static lean_object* l_Lean_Elab_Command_mkDefView___closed__2; lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5; static lean_object* l_Lean_Elab_Command_isDefLike___closed__8; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__2; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11; LEAN_EXPORT uint8_t l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15_(uint8_t, uint8_t); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__5; @@ -176,56 +198,69 @@ static lean_object* l_Lean_Elab_Command_isDefLike___closed__3; static lean_object* l_Lean_Elab_instInhabitedDefView___closed__1; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__10___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_instBEqDefKind; static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_isDefLike___closed__4; size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Elab_instInhabitedDefViewElabHeaderData; static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__6; +lean_object* l_Lean_Language_SnapshotTask_map___rarg(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__2; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10; lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___lambda__1(lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_isTheorem___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); +static size_t l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1; +static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8; +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot(lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; +uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefView___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Command_isDefLike___closed__11; static lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___closed__1; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1; static lean_object* l_Lean_Elab_instBEqDefKind___closed__1; static lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__1; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem(lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__2; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7; +static lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2; static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__3; -static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15; static lean_object* l_Lean_Elab_Command_isDefLike___closed__2; lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeBodyProcessedSnapshot(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfDef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_toCtorIdx(uint8_t x_1) { @@ -477,6 +512,470 @@ x_4 = lean_box(x_3); return x_4; } } +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___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; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3() { +_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 = lean_box(0); +x_2 = lean_box(0); +x_3 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2; +x_6 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_3); +lean_ctor_set(x_6, 4, x_4); +lean_ctor_set(x_6, 5, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeBodyProcessedSnapshot(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_ctor_get(x_1, 0); +x_3 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +lean_inc(x_2); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeBodyProcessedSnapshot___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_instToSnapshotTreeBodyProcessedSnapshot(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static size_t _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; size_t x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_usize_of_nat(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; +x_1 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1; +x_2 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__2; +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set_usize(x_5, 4, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3; +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_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4; +x_3 = lean_alloc_ctor(0, 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_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6; +x_2 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7; +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_3, 0); +x_5 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +lean_inc(x_4); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 4); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 6); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1; +x_7 = 1; +x_8 = l_Lean_Language_SnapshotTask_map___rarg(x_4, x_6, x_5, x_7); +x_9 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2; +x_10 = lean_array_push(x_9, x_8); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_12 = l_Array_append___rarg(x_11, x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_2); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +else +{ +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; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +lean_dec(x_3); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3; +x_17 = l_Lean_Language_SnapshotTask_map___rarg(x_14, x_16, x_15, x_7); +x_18 = lean_array_push(x_9, x_17); +x_19 = l_Array_append___rarg(x_18, x_10); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_2); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("DefsParsedSnapshot", 18); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; +x_3 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_instTypeNameDefsParsedSnapshot() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___lambda__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7; +return x_2; +} +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; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 4); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 6); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1; +x_9 = 1; +x_10 = l_Lean_Language_SnapshotTask_map___rarg(x_6, x_8, x_7, x_9); +x_11 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2; +x_12 = lean_array_push(x_11, x_10); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; +x_14 = l_Array_append___rarg(x_13, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_5, 0); +lean_inc(x_16); +lean_dec(x_5); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3; +x_19 = l_Lean_Language_SnapshotTask_map___rarg(x_16, x_18, x_17, x_9); +x_20 = lean_array_push(x_11, x_19); +x_21 = l_Array_append___rarg(x_20, x_12); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_4); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___lambda__1), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___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; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; +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, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1; +x_11 = 1; +x_12 = l_Lean_Language_SnapshotTask_map___rarg(x_8, x_10, x_9, x_11); +x_13 = 1; +x_14 = lean_usize_add(x_2, x_13); +x_15 = lean_array_uset(x_7, x_2, x_12); +x_2 = x_14; +x_3 = x_15; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = lean_usize_of_nat(x_4); +lean_dec(x_4); +x_6 = 0; +x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(x_5, x_6, x_3); +lean_ctor_set(x_1, 1, x_7); +return x_1; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_1); +x_10 = lean_array_get_size(x_9); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = 0; +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(x_11, x_12, x_9); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_8); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___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_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_DefView_headerSnap_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_DefView_deriving_x3f___default() { _start: { @@ -488,21 +987,12 @@ return x_1; static lean_object* _init_l_Lean_Elab_instInhabitedDefView___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; -} -} -static lean_object* _init_l_Lean_Elab_instInhabitedDefView___closed__2() { -_start: -{ lean_object* x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = 0; x_3 = 0; x_4 = 0; -x_5 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_5 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; x_6 = lean_alloc_ctor(0, 2, 4); lean_ctor_set(x_6, 0, x_1); lean_ctor_set(x_6, 1, x_5); @@ -513,15 +1003,15 @@ lean_ctor_set_uint8(x_6, sizeof(void*)*2 + 3, x_3); return x_6; } } -static lean_object* _init_l_Lean_Elab_instInhabitedDefView___closed__3() { +static lean_object* _init_l_Lean_Elab_instInhabitedDefView___closed__2() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = lean_box(0); x_2 = 0; x_3 = lean_box(0); -x_4 = l_Lean_Elab_instInhabitedDefView___closed__2; -x_5 = lean_alloc_ctor(0, 7, 1); +x_4 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_5 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_5, 0, x_3); lean_ctor_set(x_5, 1, x_4); lean_ctor_set(x_5, 2, x_3); @@ -529,7 +1019,8 @@ lean_ctor_set(x_5, 3, x_3); lean_ctor_set(x_5, 4, x_1); lean_ctor_set(x_5, 5, x_3); lean_ctor_set(x_5, 6, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*7, x_2); +lean_ctor_set(x_5, 7, x_1); +lean_ctor_set_uint8(x_5, sizeof(void*)*8, x_2); return x_5; } } @@ -537,7 +1028,7 @@ static lean_object* _init_l_Lean_Elab_instInhabitedDefView() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_instInhabitedDefView___closed__3; +x_1 = l_Lean_Elab_instInhabitedDefView___closed__2; return x_1; } } @@ -740,7 +1231,7 @@ x_14 = lean_unsigned_to_nat(3u); x_15 = l_Lean_Syntax_getArg(x_2, x_14); x_16 = lean_box(0); x_17 = 4; -x_18 = lean_alloc_ctor(0, 7, 1); +x_18 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_18, 0, x_2); lean_ctor_set(x_18, 1, x_11); lean_ctor_set(x_18, 2, x_13); @@ -748,14 +1239,15 @@ lean_ctor_set(x_18, 3, x_6); lean_ctor_set(x_18, 4, x_7); lean_ctor_set(x_18, 5, x_15); lean_ctor_set(x_18, 6, x_16); -lean_ctor_set_uint8(x_18, sizeof(void*)*7, x_17); +lean_ctor_set(x_18, 7, x_16); +lean_ctor_set_uint8(x_18, sizeof(void*)*8, x_17); return x_18; } } LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfDef(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; lean_object* x_8; 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_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; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_3 = lean_unsigned_to_nat(2u); x_4 = l_Lean_Syntax_getArg(x_2, x_3); x_5 = l_Lean_Elab_expandOptDeclSig(x_4); @@ -772,42 +1264,44 @@ x_11 = lean_unsigned_to_nat(1u); x_12 = l_Lean_Syntax_getArg(x_2, x_11); x_13 = lean_unsigned_to_nat(3u); x_14 = l_Lean_Syntax_getArg(x_2, x_13); +x_15 = lean_box(0); if (x_10 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_15 = l_Lean_Syntax_getArg(x_9, x_11); +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_16 = l_Lean_Syntax_getArg(x_9, x_11); lean_dec(x_9); -x_16 = l_Lean_Syntax_getSepArgs(x_15); -lean_dec(x_15); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = 0; -x_19 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_19, 0, x_2); -lean_ctor_set(x_19, 1, x_1); -lean_ctor_set(x_19, 2, x_12); -lean_ctor_set(x_19, 3, x_6); -lean_ctor_set(x_19, 4, x_7); -lean_ctor_set(x_19, 5, x_14); -lean_ctor_set(x_19, 6, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*7, x_18); -return x_19; +x_17 = l_Lean_Syntax_getSepArgs(x_16); +lean_dec(x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = 0; +x_20 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_20, 0, x_2); +lean_ctor_set(x_20, 1, x_1); +lean_ctor_set(x_20, 2, x_12); +lean_ctor_set(x_20, 3, x_6); +lean_ctor_set(x_20, 4, x_7); +lean_ctor_set(x_20, 5, x_14); +lean_ctor_set(x_20, 6, x_15); +lean_ctor_set(x_20, 7, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*8, x_19); +return x_20; } else { -lean_object* x_20; uint8_t x_21; lean_object* x_22; +uint8_t x_21; lean_object* x_22; lean_dec(x_9); -x_20 = lean_box(0); x_21 = 0; -x_22 = lean_alloc_ctor(0, 7, 1); +x_22 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_22, 0, x_2); lean_ctor_set(x_22, 1, x_1); lean_ctor_set(x_22, 2, x_12); lean_ctor_set(x_22, 3, x_6); lean_ctor_set(x_22, 4, x_7); lean_ctor_set(x_22, 5, x_14); -lean_ctor_set(x_22, 6, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*7, x_21); +lean_ctor_set(x_22, 6, x_15); +lean_ctor_set(x_22, 7, x_15); +lean_ctor_set_uint8(x_22, sizeof(void*)*8, x_21); return x_22; } } @@ -833,7 +1327,7 @@ x_11 = lean_unsigned_to_nat(3u); x_12 = l_Lean_Syntax_getArg(x_2, x_11); x_13 = lean_box(0); x_14 = 1; -x_15 = lean_alloc_ctor(0, 7, 1); +x_15 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_15, 0, x_2); lean_ctor_set(x_15, 1, x_1); lean_ctor_set(x_15, 2, x_9); @@ -841,7 +1335,8 @@ lean_ctor_set(x_15, 3, x_6); lean_ctor_set(x_15, 4, x_10); lean_ctor_set(x_15, 5, x_12); lean_ctor_set(x_15, 6, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*7, x_14); +lean_ctor_set(x_15, 7, x_13); +lean_ctor_set_uint8(x_15, sizeof(void*)*8, x_14); return x_15; } } @@ -959,7 +1454,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -968,6 +1463,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -977,19 +1475,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__3(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__3(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -1801,7 +2301,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -1810,6 +2310,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -1819,19 +2322,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -2297,7 +2802,7 @@ x_10 = lean_unsigned_to_nat(5u); x_11 = l_Lean_Syntax_getArg(x_2, x_10); x_12 = lean_box(0); x_13 = 0; -x_14 = lean_alloc_ctor(0, 7, 1); +x_14 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_14, 0, x_2); lean_ctor_set(x_14, 1, x_3); lean_ctor_set(x_14, 2, x_5); @@ -2305,7 +2810,8 @@ lean_ctor_set(x_14, 3, x_4); lean_ctor_set(x_14, 4, x_9); lean_ctor_set(x_14, 5, x_11); lean_ctor_set(x_14, 6, x_12); -lean_ctor_set_uint8(x_14, sizeof(void*)*7, x_13); +lean_ctor_set(x_14, 7, x_12); +lean_ctor_set_uint8(x_14, sizeof(void*)*8, x_13); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_8); @@ -2316,7 +2822,7 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Lean", 4); +x_1 = lean_mk_string_from_bytes("Parser", 6); return x_1; } } @@ -2324,7 +2830,7 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Parser", 6); +x_1 = lean_mk_string_from_bytes("Command", 7); return x_1; } } @@ -2332,31 +2838,23 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Command", 7); +x_1 = lean_mk_string_from_bytes("declId", 6); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declId", 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; -x_4 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; +x_4 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -2372,15 +2870,15 @@ uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_objec x_9 = 0; x_10 = l_Lean_mkIdentFrom(x_1, x_2, x_9); x_11 = lean_box(2); -x_12 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_12 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; x_13 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_3); lean_ctor_set(x_13, 2, x_12); -x_14 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6; +x_14 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5; x_15 = lean_array_push(x_14, x_10); x_16 = lean_array_push(x_15, x_13); -x_17 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5; +x_17 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4; x_18 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_17); @@ -2409,8 +2907,8 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__1; x_4 = l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -2439,30 +2937,22 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__5() _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); +x_1 = lean_mk_string_from_bytes("mkInstanceName", 14); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("mkInstanceName", 14); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__7() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; x_2 = l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__8() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__7() { _start: { lean_object* x_1; @@ -2470,16 +2960,16 @@ x_1 = lean_mk_string_from_bytes("generated ", 10); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__9() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; +x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__10() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__9() { _start: { lean_object* x_1; @@ -2487,16 +2977,16 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__11() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; +x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__12() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__11() { _start: { lean_object* x_1; @@ -2504,11 +2994,11 @@ x_1 = lean_mk_string_from_bytes(" for ", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__13() { +static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; +x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -2627,7 +3117,7 @@ lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); -x_55 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_55 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_56 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_55, x_3, x_4, x_54); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); @@ -2666,11 +3156,11 @@ lean_dec(x_67); lean_inc(x_53); x_70 = l_Lean_Name_append(x_69, x_53); x_71 = l_Lean_MessageData_ofName(x_70); -x_72 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_72 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; lean_ctor_set_tag(x_65, 6); lean_ctor_set(x_65, 1, x_71); lean_ctor_set(x_65, 0, x_72); -x_73 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_73 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_56, 6); lean_ctor_set(x_56, 1, x_73); lean_ctor_set(x_56, 0, x_65); @@ -2698,11 +3188,11 @@ lean_dec(x_78); lean_inc(x_53); x_81 = l_Lean_Name_append(x_80, x_53); x_82 = l_Lean_MessageData_ofName(x_81); -x_83 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_83 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; x_84 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_84, 0, x_83); lean_ctor_set(x_84, 1, x_82); -x_85 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_85 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_56, 6); lean_ctor_set(x_56, 1, x_85); lean_ctor_set(x_56, 0, x_84); @@ -2742,7 +3232,7 @@ lean_dec(x_92); lean_inc(x_53); x_96 = l_Lean_Name_append(x_95, x_53); x_97 = l_Lean_MessageData_ofName(x_96); -x_98 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_98 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_94)) { x_99 = lean_alloc_ctor(6, 2, 0); } else { @@ -2751,7 +3241,7 @@ if (lean_is_scalar(x_94)) { } lean_ctor_set(x_99, 0, x_98); lean_ctor_set(x_99, 1, x_97); -x_100 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_100 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; x_101 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_101, 0, x_99); lean_ctor_set(x_101, 1, x_100); @@ -2801,7 +3291,7 @@ lean_dec(x_47); x_110 = lean_ctor_get(x_50, 0); lean_inc(x_110); lean_dec(x_50); -x_111 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_111 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_112 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_111, x_3, x_4, x_27); x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); @@ -2881,11 +3371,11 @@ lean_inc(x_136); lean_dec(x_134); x_137 = l_Lean_Name_append(x_136, x_122); x_138 = l_Lean_MessageData_ofName(x_137); -x_139 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_139 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; lean_ctor_set_tag(x_132, 6); lean_ctor_set(x_132, 1, x_138); lean_ctor_set(x_132, 0, x_139); -x_140 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_140 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; lean_ctor_set_tag(x_124, 6); lean_ctor_set(x_124, 1, x_140); lean_ctor_set(x_124, 0, x_132); @@ -2894,7 +3384,7 @@ x_141 = l_Lean_MessageData_ofSyntax(x_110); lean_ctor_set_tag(x_112, 6); lean_ctor_set(x_112, 1, x_141); lean_ctor_set(x_112, 0, x_124); -x_142 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_142 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_39, 6); lean_ctor_set(x_39, 1, x_142); lean_ctor_set(x_39, 0, x_112); @@ -2920,11 +3410,11 @@ lean_inc(x_148); lean_dec(x_146); x_149 = l_Lean_Name_append(x_148, x_122); x_150 = l_Lean_MessageData_ofName(x_149); -x_151 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_151 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; x_152 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_152, 0, x_151); lean_ctor_set(x_152, 1, x_150); -x_153 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_153 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; lean_ctor_set_tag(x_124, 6); lean_ctor_set(x_124, 1, x_153); lean_ctor_set(x_124, 0, x_152); @@ -2933,7 +3423,7 @@ x_154 = l_Lean_MessageData_ofSyntax(x_110); lean_ctor_set_tag(x_112, 6); lean_ctor_set(x_112, 1, x_154); lean_ctor_set(x_112, 0, x_124); -x_155 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_155 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_39, 6); lean_ctor_set(x_39, 1, x_155); lean_ctor_set(x_39, 0, x_112); @@ -2971,7 +3461,7 @@ lean_inc(x_164); lean_dec(x_161); x_165 = l_Lean_Name_append(x_164, x_122); x_166 = l_Lean_MessageData_ofName(x_165); -x_167 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_167 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_163)) { x_168 = lean_alloc_ctor(6, 2, 0); } else { @@ -2980,7 +3470,7 @@ if (lean_is_scalar(x_163)) { } lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); -x_169 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_169 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; x_170 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_170, 0, x_168); lean_ctor_set(x_170, 1, x_169); @@ -2989,7 +3479,7 @@ x_171 = l_Lean_MessageData_ofSyntax(x_110); lean_ctor_set_tag(x_112, 6); lean_ctor_set(x_112, 1, x_171); lean_ctor_set(x_112, 0, x_170); -x_172 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_172 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_39, 6); lean_ctor_set(x_39, 1, x_172); lean_ctor_set(x_39, 0, x_112); @@ -3102,7 +3592,7 @@ lean_inc(x_196); lean_dec(x_193); x_197 = l_Lean_Name_append(x_196, x_183); x_198 = l_Lean_MessageData_ofName(x_197); -x_199 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_199 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_195)) { x_200 = lean_alloc_ctor(6, 2, 0); } else { @@ -3111,7 +3601,7 @@ if (lean_is_scalar(x_195)) { } lean_ctor_set(x_200, 0, x_199); lean_ctor_set(x_200, 1, x_198); -x_201 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_201 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; if (lean_is_scalar(x_191)) { x_202 = lean_alloc_ctor(6, 2, 0); } else { @@ -3125,7 +3615,7 @@ x_203 = l_Lean_MessageData_ofSyntax(x_110); x_204 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_204, 0, x_202); lean_ctor_set(x_204, 1, x_203); -x_205 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_205 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; lean_ctor_set_tag(x_39, 6); lean_ctor_set(x_39, 1, x_205); lean_ctor_set(x_39, 0, x_204); @@ -3219,7 +3709,7 @@ lean_inc(x_225); x_226 = lean_ctor_get(x_224, 1); lean_inc(x_226); lean_dec(x_224); -x_227 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_227 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_228 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_227, x_3, x_4, x_226); x_229 = lean_ctor_get(x_228, 0); lean_inc(x_229); @@ -3267,7 +3757,7 @@ lean_dec(x_237); lean_inc(x_225); x_241 = l_Lean_Name_append(x_240, x_225); x_242 = l_Lean_MessageData_ofName(x_241); -x_243 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_243 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_239)) { x_244 = lean_alloc_ctor(6, 2, 0); } else { @@ -3276,7 +3766,7 @@ if (lean_is_scalar(x_239)) { } lean_ctor_set(x_244, 0, x_243); lean_ctor_set(x_244, 1, x_242); -x_245 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_245 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; if (lean_is_scalar(x_235)) { x_246 = lean_alloc_ctor(6, 2, 0); } else { @@ -3332,7 +3822,7 @@ lean_dec(x_219); x_255 = lean_ctor_get(x_222, 0); lean_inc(x_255); lean_dec(x_222); -x_256 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_256 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_257 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_256, x_3, x_4, x_27); x_258 = lean_ctor_get(x_257, 0); lean_inc(x_258); @@ -3422,7 +3912,7 @@ lean_inc(x_279); lean_dec(x_276); x_280 = l_Lean_Name_append(x_279, x_266); x_281 = l_Lean_MessageData_ofName(x_280); -x_282 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_282 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_278)) { x_283 = lean_alloc_ctor(6, 2, 0); } else { @@ -3431,7 +3921,7 @@ if (lean_is_scalar(x_278)) { } lean_ctor_set(x_283, 0, x_282); lean_ctor_set(x_283, 1, x_281); -x_284 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_284 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; if (lean_is_scalar(x_274)) { x_285 = lean_alloc_ctor(6, 2, 0); } else { @@ -3450,7 +3940,7 @@ if (lean_is_scalar(x_263)) { } lean_ctor_set(x_287, 0, x_285); lean_ctor_set(x_287, 1, x_286); -x_288 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_288 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; x_289 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_289, 0, x_287); lean_ctor_set(x_289, 1, x_288); @@ -3572,7 +4062,7 @@ lean_inc(x_323); x_324 = lean_ctor_get(x_322, 1); lean_inc(x_324); lean_dec(x_322); -x_325 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_325 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_326 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_325, x_3, x_4, x_324); x_327 = lean_ctor_get(x_326, 0); lean_inc(x_327); @@ -3620,7 +4110,7 @@ lean_dec(x_335); lean_inc(x_323); x_339 = l_Lean_Name_append(x_338, x_323); x_340 = l_Lean_MessageData_ofName(x_339); -x_341 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_341 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_337)) { x_342 = lean_alloc_ctor(6, 2, 0); } else { @@ -3629,7 +4119,7 @@ if (lean_is_scalar(x_337)) { } lean_ctor_set(x_342, 0, x_341); lean_ctor_set(x_342, 1, x_340); -x_343 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_343 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; if (lean_is_scalar(x_333)) { x_344 = lean_alloc_ctor(6, 2, 0); } else { @@ -3685,7 +4175,7 @@ lean_dec(x_317); x_353 = lean_ctor_get(x_320, 0); lean_inc(x_353); lean_dec(x_320); -x_354 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_354 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_355 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Command_runLinters___spec__11(x_354, x_3, x_4, x_297); x_356 = lean_ctor_get(x_355, 0); lean_inc(x_356); @@ -3777,7 +4267,7 @@ lean_inc(x_377); lean_dec(x_374); x_378 = l_Lean_Name_append(x_377, x_364); x_379 = l_Lean_MessageData_ofName(x_378); -x_380 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__9; +x_380 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; if (lean_is_scalar(x_376)) { x_381 = lean_alloc_ctor(6, 2, 0); } else { @@ -3786,7 +4276,7 @@ if (lean_is_scalar(x_376)) { } lean_ctor_set(x_381, 0, x_380); lean_ctor_set(x_381, 1, x_379); -x_382 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__13; +x_382 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__12; if (lean_is_scalar(x_372)) { x_383 = lean_alloc_ctor(6, 2, 0); } else { @@ -3805,7 +4295,7 @@ if (lean_is_scalar(x_361)) { } lean_ctor_set(x_385, 0, x_383); lean_ctor_set(x_385, 1, x_384); -x_386 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__11; +x_386 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__10; if (lean_is_scalar(x_312)) { x_387 = lean_alloc_ctor(6, 2, 0); } else { @@ -4049,7 +4539,7 @@ x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_2); x_12 = lean_box(0); x_13 = 3; -x_14 = lean_alloc_ctor(0, 7, 1); +x_14 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_14, 0, x_1); lean_ctor_set(x_14, 1, x_3); lean_ctor_set(x_14, 2, x_10); @@ -4057,7 +4547,8 @@ lean_ctor_set(x_14, 3, x_4); lean_ctor_set(x_14, 4, x_11); lean_ctor_set(x_14, 5, x_5); lean_ctor_set(x_14, 6, x_12); -lean_ctor_set_uint8(x_14, sizeof(void*)*7, x_13); +lean_ctor_set(x_14, 7, x_12); +lean_ctor_set_uint8(x_14, sizeof(void*)*8, x_13); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_8); @@ -4076,9 +4567,9 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___cl _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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4112,8 +4603,8 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___cl _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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; x_3 = l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__4; x_4 = l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -4150,7 +4641,7 @@ lean_ctor_set_tag(x_13, 2); lean_ctor_set(x_13, 1, x_17); lean_ctor_set(x_13, 0, x_10); x_18 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; -x_19 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_19 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; lean_inc(x_10); x_20 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_20, 0, x_10); @@ -4177,7 +4668,7 @@ x_28 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_28, 0, x_10); lean_ctor_set(x_28, 1, x_27); x_29 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; -x_30 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_30 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; lean_inc(x_10); x_31 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_31, 0, x_10); @@ -4214,8 +4705,8 @@ static lean_object* _init_l_Lean_Elab_Command_mkDefViewOfOpaque___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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; x_3 = l_Lean_Elab_Command_mkDefViewOfOpaque___closed__1; x_4 = l_Lean_Elab_Command_mkDefViewOfOpaque___closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -4301,7 +4792,7 @@ lean_ctor_set_tag(x_23, 2); lean_ctor_set(x_23, 1, x_27); lean_ctor_set(x_23, 0, x_20); x_28 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; -x_29 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_29 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; lean_inc(x_20); x_30 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_30, 0, x_20); @@ -4324,7 +4815,7 @@ x_36 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_36, 0, x_20); lean_ctor_set(x_36, 1, x_35); x_37 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; -x_38 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_38 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; lean_inc(x_20); x_39 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_39, 0, x_20); @@ -4496,7 +4987,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__4; -x_3 = l_Lean_Elab_instInhabitedDefView___closed__1; +x_3 = l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4521,12 +5012,12 @@ x_8 = l_Lean_Elab_Command_mkDefViewOfExample___closed__2; x_9 = 0; lean_inc(x_2); x_10 = l_Lean_mkIdentFrom(x_2, x_8, x_9); -x_11 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6; +x_11 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5; x_12 = lean_array_push(x_11, x_10); x_13 = l_Lean_Elab_Command_mkDefViewOfExample___closed__3; x_14 = lean_array_push(x_12, x_13); x_15 = lean_box(2); -x_16 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5; +x_16 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4; x_17 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -4535,7 +5026,7 @@ x_18 = lean_unsigned_to_nat(2u); x_19 = l_Lean_Syntax_getArg(x_2, x_18); x_20 = lean_box(0); x_21 = 2; -x_22 = lean_alloc_ctor(0, 7, 1); +x_22 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_22, 0, x_2); lean_ctor_set(x_22, 1, x_1); lean_ctor_set(x_22, 2, x_17); @@ -4543,7 +5034,8 @@ lean_ctor_set(x_22, 3, x_6); lean_ctor_set(x_22, 4, x_7); lean_ctor_set(x_22, 5, x_19); lean_ctor_set(x_22, 6, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*7, x_21); +lean_ctor_set(x_22, 7, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*8, x_21); return x_22; } } @@ -4559,9 +5051,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_isDefLike___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4579,9 +5071,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_isDefLike___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4599,9 +5091,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_isDefLike___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4619,9 +5111,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__8() { _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_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_isDefLike___closed__7; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4631,9 +5123,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4651,9 +5143,9 @@ static lean_object* _init_l_Lean_Elab_Command_isDefLike___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_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; -x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_3 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_4 = l_Lean_Elab_Command_isDefLike___closed__10; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -4970,47 +5462,47 @@ lean_dec(x_3); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; +x_1 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; x_2 = l_Lean_Elab_Command_isDefLike___closed__3; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_2 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2; +x_2 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__3; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5() { _start: { lean_object* x_1; @@ -5018,17 +5510,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7() { _start: { lean_object* x_1; @@ -5036,37 +5528,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__1; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8; +x_2 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9; +x_2 = l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11() { _start: { lean_object* x_1; @@ -5074,17 +5566,17 @@ x_1 = lean_mk_string_from_bytes("DefView", 7); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13() { _start: { lean_object* x_1; @@ -5092,54 +5584,54 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14; -x_2 = lean_unsigned_to_nat(2084u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14; +x_2 = lean_unsigned_to_nat(2598u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14; -x_2 = lean_unsigned_to_nat(2124u); +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14; +x_2 = lean_unsigned_to_nat(2638u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__7; +x_2 = l_Lean_Elab_Command_mkDefViewOfInstance___closed__6; x_3 = 0; -x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1; +x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -5168,14 +5660,55 @@ l_Lean_Elab_instBEqDefKind___closed__1 = _init_l_Lean_Elab_instBEqDefKind___clos lean_mark_persistent(l_Lean_Elab_instBEqDefKind___closed__1); l_Lean_Elab_instBEqDefKind = _init_l_Lean_Elab_instBEqDefKind(); lean_mark_persistent(l_Lean_Elab_instBEqDefKind); +l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1 = _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__1); +l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2 = _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__2); +l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3 = _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeaderData___closed__3); +l_Lean_Elab_instInhabitedDefViewElabHeaderData = _init_l_Lean_Elab_instInhabitedDefViewElabHeaderData(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeaderData); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__1); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__2 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__2(); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__3); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__4); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__5); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__6); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___lambda__1___closed__7); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__1); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__2); +l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3 = _init_l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3(); +lean_mark_persistent(l_Lean_Elab_instToSnapshotTreeHeaderProcessedSnapshot___closed__3); +l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1 = _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1(); +lean_mark_persistent(l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__1); +l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2 = _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2(); +lean_mark_persistent(l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__2); +l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3 = _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3(); +lean_mark_persistent(l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__3); +l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4 = _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4(); +lean_mark_persistent(l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582____closed__4); +l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_ = _init_l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_(); +lean_mark_persistent(l_Lean_Elab_instImpl____x40_Lean_Elab_DefView___hyg_582_); +l_Lean_Elab_instTypeNameDefsParsedSnapshot = _init_l_Lean_Elab_instTypeNameDefsParsedSnapshot(); +lean_mark_persistent(l_Lean_Elab_instTypeNameDefsParsedSnapshot); +l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1___closed__1); +l_Lean_Elab_DefView_headerSnap_x3f___default = _init_l_Lean_Elab_DefView_headerSnap_x3f___default(); +lean_mark_persistent(l_Lean_Elab_DefView_headerSnap_x3f___default); l_Lean_Elab_DefView_deriving_x3f___default = _init_l_Lean_Elab_DefView_deriving_x3f___default(); lean_mark_persistent(l_Lean_Elab_DefView_deriving_x3f___default); l_Lean_Elab_instInhabitedDefView___closed__1 = _init_l_Lean_Elab_instInhabitedDefView___closed__1(); lean_mark_persistent(l_Lean_Elab_instInhabitedDefView___closed__1); l_Lean_Elab_instInhabitedDefView___closed__2 = _init_l_Lean_Elab_instInhabitedDefView___closed__2(); lean_mark_persistent(l_Lean_Elab_instInhabitedDefView___closed__2); -l_Lean_Elab_instInhabitedDefView___closed__3 = _init_l_Lean_Elab_instInhabitedDefView___closed__3(); -lean_mark_persistent(l_Lean_Elab_instInhabitedDefView___closed__3); l_Lean_Elab_instInhabitedDefView = _init_l_Lean_Elab_instInhabitedDefView(); lean_mark_persistent(l_Lean_Elab_instInhabitedDefView); l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_DefView_isInstance___spec__1___closed__1(); @@ -5212,8 +5745,6 @@ l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4 = _init_l_Lean_E lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__4); l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5(); lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__5); -l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___lambda__2___closed__6); l_Lean_Elab_Command_mkDefViewOfInstance___closed__1 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___closed__1); l_Lean_Elab_Command_mkDefViewOfInstance___closed__2 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__2(); @@ -5238,8 +5769,6 @@ l_Lean_Elab_Command_mkDefViewOfInstance___closed__11 = _init_l_Lean_Elab_Command lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___closed__11); l_Lean_Elab_Command_mkDefViewOfInstance___closed__12 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__12(); lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___closed__12); -l_Lean_Elab_Command_mkDefViewOfInstance___closed__13 = _init_l_Lean_Elab_Command_mkDefViewOfInstance___closed__13(); -lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfInstance___closed__13); l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1 = _init_l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1); l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__2 = _init_l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__2(); @@ -5294,42 +5823,42 @@ l_Lean_Elab_Command_mkDefView___closed__1 = _init_l_Lean_Elab_Command_mkDefView_ lean_mark_persistent(l_Lean_Elab_Command_mkDefView___closed__1); l_Lean_Elab_Command_mkDefView___closed__2 = _init_l_Lean_Elab_Command_mkDefView___closed__2(); lean_mark_persistent(l_Lean_Elab_Command_mkDefView___closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__3); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__4); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__5); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__6); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__7); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__8); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__9); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__10); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__11); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__12); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__13); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__14); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084____closed__15); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2084_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__4); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__5); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__6); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__7); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__8); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__9); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__10); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__11); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__12); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__13); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__14); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598____closed__15); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2598_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124____closed__1); -if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2124_(lean_io_mk_world()); +}l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638____closed__1); +if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2638_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Basic.c b/stage0/stdlib/Lean/Elab/Deriving/Basic.c index db248212ad..63076095ad 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Basic.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Basic.c @@ -33,6 +33,7 @@ lean_object* lean_name_append_after(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_elabDeriving_declRange(lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_derivingHandlersRef; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -730,7 +731,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -742,7 +743,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -755,24 +759,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -1483,50 +1489,50 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_processDefDeriving(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_18; +lean_object* x_10; lean_object* x_11; lean_object* x_20; lean_inc(x_3); lean_inc(x_2); -x_18 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_18) == 0) +x_20 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 1) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_ctor_get(x_18, 1); +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_18); -x_22 = !lean_is_exclusive(x_20); -if (x_22 == 0) +if (lean_obj_tag(x_21) == 1) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_20, 0); -x_24 = lean_ctor_get(x_20, 1); -x_25 = lean_ctor_get(x_20, 2); -x_26 = lean_ctor_get(x_20, 3); -lean_dec(x_26); +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_22, 0); +x_26 = lean_ctor_get(x_22, 1); +x_27 = lean_ctor_get(x_22, 2); +x_28 = lean_ctor_get(x_22, 3); +lean_dec(x_28); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_27 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(x_1, x_24, x_5, x_6, x_7, x_8, x_21); -if (lean_obj_tag(x_27) == 0) +x_29 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(x_1, x_26, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_29) == 0) { -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_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) { -uint8_t x_29; -lean_free_object(x_20); +uint8_t x_31; +lean_free_object(x_22); +lean_dec(x_27); lean_dec(x_25); -lean_dec(x_23); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1535,315 +1541,315 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_27); -if (x_29 == 0) +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) { -lean_object* x_30; uint8_t x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = 0; -x_32 = lean_box(x_31); -lean_ctor_set(x_27, 0, x_32); -return x_27; +lean_object* x_32; uint8_t x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_29, 0); +lean_dec(x_32); +x_33 = 0; +x_34 = lean_box(x_33); +lean_ctor_set(x_29, 0, x_34); +return x_29; } else { -lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_27, 1); -lean_inc(x_33); -lean_dec(x_27); -x_34 = 0; -x_35 = lean_box(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_33); -return x_36; +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_dec(x_29); +x_36 = 0; +x_37 = lean_box(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; } } else { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_dec(x_27); -x_38 = !lean_is_exclusive(x_28); -if (x_38 == 0) +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_29, 1); +lean_inc(x_39); +lean_dec(x_29); +x_40 = !lean_is_exclusive(x_30); +if (x_40 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_ctor_get(x_28, 0); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -x_41 = l_Lean_Expr_appFn_x21(x_40); -x_42 = !lean_is_exclusive(x_23); -if (x_42 == 0) +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_30, 0); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +x_43 = l_Lean_Expr_appFn_x21(x_42); +x_44 = !lean_is_exclusive(x_25); +if (x_44 == 0) { -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_43 = lean_ctor_get(x_23, 1); -x_44 = lean_ctor_get(x_23, 2); -lean_dec(x_44); -x_45 = lean_ctor_get(x_23, 0); -lean_dec(x_45); -x_46 = lean_box(0); -lean_inc(x_43); -x_47 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_43, x_46); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_45 = lean_ctor_get(x_25, 1); +x_46 = lean_ctor_get(x_25, 2); +lean_dec(x_46); +x_47 = lean_ctor_get(x_25, 0); +lean_dec(x_47); +x_48 = lean_box(0); +lean_inc(x_45); +x_49 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_45, x_48); lean_inc(x_2); -x_48 = l_Lean_Expr_const___override(x_2, x_47); -x_49 = l_Lean_Expr_app___override(x_41, x_48); +x_50 = l_Lean_Expr_const___override(x_2, x_49); +x_51 = l_Lean_Expr_app___override(x_43, x_50); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_49); -x_50 = l_Lean_Meta_check(x_49, x_5, x_6, x_7, x_8, x_37); -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; -x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); -lean_dec(x_50); -x_52 = l_Lean_Elab_Term_processDefDeriving___closed__1; -x_53 = lean_name_append_before(x_2, x_52); -x_54 = l_Lean_Name_getString_x21(x_1); +x_52 = l_Lean_Meta_check(x_51, x_5, x_6, x_7, x_8, x_39); +if (lean_obj_tag(x_52) == 0) +{ +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; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = l_Lean_Elab_Term_processDefDeriving___closed__1; +x_55 = lean_name_append_before(x_2, x_54); +x_56 = l_Lean_Name_getString_x21(x_1); lean_dec(x_1); -x_55 = lean_name_append_after(x_53, x_54); -x_56 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); -lean_closure_set(x_56, 0, x_55); +x_57 = lean_name_append_after(x_55, x_56); +x_58 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); +lean_closure_set(x_58, 0, x_57); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_57 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_51); -if (lean_obj_tag(x_57) == 0) +x_59 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_53); +if (lean_obj_tag(x_59) == 0) { -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; uint8_t x_65; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_59); -x_61 = lean_ctor_get(x_60, 0); +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; uint8_t x_67; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_ctor_get(x_39, 0); +lean_dec(x_59); +x_62 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_39); -x_64 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_62); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_41, 0); +lean_inc(x_65); +lean_dec(x_41); +x_66 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_64); lean_dec(x_4); lean_dec(x_3); -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_64, 0); -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_58); -lean_ctor_set(x_23, 2, x_61); -lean_ctor_set(x_23, 0, x_58); -lean_inc(x_58); -lean_ctor_set_tag(x_64, 1); -lean_ctor_set(x_64, 1, x_46); -lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_20, 3, x_64); -lean_ctor_set(x_20, 1, x_66); -lean_ctor_set(x_28, 0, x_20); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_66, 0); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_60); +lean_ctor_set(x_25, 2, x_63); +lean_ctor_set(x_25, 0, x_60); +lean_inc(x_60); +lean_ctor_set_tag(x_66, 1); +lean_ctor_set(x_66, 1, x_48); +lean_ctor_set(x_66, 0, x_60); +lean_ctor_set(x_22, 3, x_66); +lean_ctor_set(x_22, 1, x_68); +lean_ctor_set(x_30, 0, x_22); lean_inc(x_8); lean_inc(x_7); -x_68 = l_Lean_addAndCompile(x_28, x_7, x_8, x_67); -if (lean_obj_tag(x_68) == 0) +x_70 = l_Lean_addAndCompile(x_30, x_7, x_8, x_69); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); -x_70 = 0; -x_71 = lean_unsigned_to_nat(1000u); -x_72 = l_Lean_Meta_addInstance(x_58, x_70, x_71, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_72) == 0) +lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = 0; +x_73 = lean_unsigned_to_nat(1000u); +x_74 = l_Lean_Meta_addInstance(x_60, x_72, x_73, x_5, x_6, x_7, x_8, x_71); +if (lean_obj_tag(x_74) == 0) { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +uint8_t x_75; +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) { -lean_object* x_74; uint8_t x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); +lean_object* x_76; uint8_t x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_74, 0); +lean_dec(x_76); +x_77 = 1; +x_78 = lean_box(x_77); +lean_ctor_set(x_74, 0, x_78); +return x_74; +} +else +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +x_79 = lean_ctor_get(x_74, 1); +lean_inc(x_79); lean_dec(x_74); -x_75 = 1; -x_76 = lean_box(x_75); -lean_ctor_set(x_72, 0, x_76); -return x_72; -} -else -{ -lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = 1; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_77); -return x_80; -} -} -else -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_72, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_72, 1); -lean_inc(x_82); -lean_dec(x_72); -x_10 = x_81; -x_11 = x_82; -goto block_17; +x_80 = 1; +x_81 = lean_box(x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_79); +return x_82; } } else { lean_object* x_83; lean_object* x_84; -lean_dec(x_58); +x_83 = lean_ctor_get(x_74, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_74, 1); +lean_inc(x_84); +lean_dec(x_74); +x_10 = x_83; +x_11 = x_84; +goto block_19; +} +} +else +{ +lean_object* x_85; lean_object* x_86; +lean_dec(x_60); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_83 = lean_ctor_get(x_68, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_68, 1); -lean_inc(x_84); -lean_dec(x_68); -x_10 = x_83; -x_11 = x_84; -goto block_17; +x_85 = lean_ctor_get(x_70, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_70, 1); +lean_inc(x_86); +lean_dec(x_70); +x_10 = x_85; +x_11 = x_86; +goto block_19; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_64, 0); -x_86 = lean_ctor_get(x_64, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_64); -lean_inc(x_58); -lean_ctor_set(x_23, 2, x_61); -lean_ctor_set(x_23, 0, x_58); -lean_inc(x_58); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_58); -lean_ctor_set(x_87, 1, x_46); -lean_ctor_set(x_20, 3, x_87); -lean_ctor_set(x_20, 1, x_85); -lean_ctor_set(x_28, 0, x_20); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_66, 0); +x_88 = lean_ctor_get(x_66, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_66); +lean_inc(x_60); +lean_ctor_set(x_25, 2, x_63); +lean_ctor_set(x_25, 0, x_60); +lean_inc(x_60); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_60); +lean_ctor_set(x_89, 1, x_48); +lean_ctor_set(x_22, 3, x_89); +lean_ctor_set(x_22, 1, x_87); +lean_ctor_set(x_30, 0, x_22); lean_inc(x_8); lean_inc(x_7); -x_88 = l_Lean_addAndCompile(x_28, x_7, x_8, x_86); -if (lean_obj_tag(x_88) == 0) +x_90 = l_Lean_addAndCompile(x_30, x_7, x_8, x_88); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = 0; -x_91 = lean_unsigned_to_nat(1000u); -x_92 = l_Lean_Meta_addInstance(x_58, x_90, x_91, x_5, x_6, x_7, x_8, x_89); -if (lean_obj_tag(x_92) == 0) +lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = 0; +x_93 = lean_unsigned_to_nat(1000u); +x_94 = l_Lean_Meta_addInstance(x_60, x_92, x_93, x_5, x_6, x_7, x_8, x_91); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_94 = x_92; +lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; } else { - lean_dec_ref(x_92); - x_94 = lean_box(0); + lean_dec_ref(x_94); + x_96 = lean_box(0); } -x_95 = 1; -x_96 = lean_box(x_95); -if (lean_is_scalar(x_94)) { - x_97 = lean_alloc_ctor(0, 2, 0); +x_97 = 1; +x_98 = lean_box(x_97); +if (lean_is_scalar(x_96)) { + x_99 = lean_alloc_ctor(0, 2, 0); } else { - x_97 = x_94; -} -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_93); -return x_97; -} -else -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_92, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_92, 1); -lean_inc(x_99); -lean_dec(x_92); -x_10 = x_98; -x_11 = x_99; -goto block_17; + x_99 = x_96; } +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_95); +return x_99; } else { lean_object* x_100; lean_object* x_101; -lean_dec(x_58); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_100 = lean_ctor_get(x_88, 0); +x_100 = lean_ctor_get(x_94, 0); lean_inc(x_100); -x_101 = lean_ctor_get(x_88, 1); +x_101 = lean_ctor_get(x_94, 1); lean_inc(x_101); -lean_dec(x_88); +lean_dec(x_94); x_10 = x_100; x_11 = x_101; -goto block_17; -} +goto block_19; } } else { lean_object* x_102; lean_object* x_103; -lean_dec(x_49); -lean_free_object(x_23); -lean_dec(x_43); -lean_free_object(x_28); -lean_dec(x_39); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_60); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_102 = lean_ctor_get(x_57, 0); +x_102 = lean_ctor_get(x_90, 0); lean_inc(x_102); -x_103 = lean_ctor_get(x_57, 1); +x_103 = lean_ctor_get(x_90, 1); lean_inc(x_103); -lean_dec(x_57); +lean_dec(x_90); x_10 = x_102; x_11 = x_103; -goto block_17; +goto block_19; +} } } else { lean_object* x_104; lean_object* x_105; -lean_dec(x_49); -lean_free_object(x_23); -lean_dec(x_43); -lean_free_object(x_28); -lean_dec(x_39); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_51); +lean_free_object(x_25); +lean_dec(x_45); +lean_free_object(x_30); +lean_dec(x_41); +lean_free_object(x_22); +lean_dec(x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_104 = lean_ctor_get(x_59, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_59, 1); +lean_inc(x_105); +lean_dec(x_59); +x_10 = x_104; +x_11 = x_105; +goto block_19; +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_51); +lean_free_object(x_25); +lean_dec(x_45); +lean_free_object(x_30); +lean_dec(x_41); +lean_free_object(x_22); +lean_dec(x_27); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1852,205 +1858,205 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_104 = lean_ctor_get(x_50, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_50, 1); -lean_inc(x_105); -lean_dec(x_50); -x_10 = x_104; -x_11 = x_105; -goto block_17; +x_106 = lean_ctor_get(x_52, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_52, 1); +lean_inc(x_107); +lean_dec(x_52); +x_10 = x_106; +x_11 = x_107; +goto block_19; } } 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_23, 1); -lean_inc(x_106); -lean_dec(x_23); -x_107 = lean_box(0); -lean_inc(x_106); -x_108 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_106, 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; +x_108 = lean_ctor_get(x_25, 1); +lean_inc(x_108); +lean_dec(x_25); +x_109 = lean_box(0); +lean_inc(x_108); +x_110 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_108, x_109); lean_inc(x_2); -x_109 = l_Lean_Expr_const___override(x_2, x_108); -x_110 = l_Lean_Expr_app___override(x_41, x_109); +x_111 = l_Lean_Expr_const___override(x_2, x_110); +x_112 = l_Lean_Expr_app___override(x_43, x_111); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_110); -x_111 = l_Lean_Meta_check(x_110, x_5, x_6, x_7, x_8, x_37); -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; lean_object* x_117; lean_object* x_118; -x_112 = lean_ctor_get(x_111, 1); lean_inc(x_112); -lean_dec(x_111); -x_113 = l_Lean_Elab_Term_processDefDeriving___closed__1; -x_114 = lean_name_append_before(x_2, x_113); -x_115 = l_Lean_Name_getString_x21(x_1); +x_113 = l_Lean_Meta_check(x_112, x_5, x_6, x_7, x_8, x_39); +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; lean_object* x_120; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +lean_dec(x_113); +x_115 = l_Lean_Elab_Term_processDefDeriving___closed__1; +x_116 = lean_name_append_before(x_2, x_115); +x_117 = l_Lean_Name_getString_x21(x_1); lean_dec(x_1); -x_116 = lean_name_append_after(x_114, x_115); -x_117 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); -lean_closure_set(x_117, 0, x_116); +x_118 = lean_name_append_after(x_116, x_117); +x_119 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); +lean_closure_set(x_119, 0, x_118); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_118 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_117, x_3, x_4, x_5, x_6, x_7, x_8, x_112); -if (lean_obj_tag(x_118) == 0) +x_120 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_119, x_3, x_4, x_5, x_6, x_7, x_8, x_114); +if (lean_obj_tag(x_120) == 0) { -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_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_110, x_3, x_4, x_5, x_6, x_7, x_8, x_120); -x_122 = lean_ctor_get(x_121, 0); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = lean_ctor_get(x_39, 0); +lean_dec(x_120); +x_123 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_112, x_3, x_4, x_5, x_6, x_7, x_8, x_122); +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -lean_dec(x_39); -x_125 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_124, x_3, x_4, x_5, x_6, x_7, x_8, x_123); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = lean_ctor_get(x_41, 0); +lean_inc(x_126); +lean_dec(x_41); +x_127 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_126, x_3, x_4, x_5, x_6, x_7, x_8, x_125); lean_dec(x_4); lean_dec(x_3); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -lean_inc(x_119); -x_129 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_129, 0, x_119); -lean_ctor_set(x_129, 1, x_106); -lean_ctor_set(x_129, 2, x_122); -lean_inc(x_119); -if (lean_is_scalar(x_128)) { - x_130 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_121); +x_131 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_131, 0, x_121); +lean_ctor_set(x_131, 1, x_108); +lean_ctor_set(x_131, 2, x_124); +lean_inc(x_121); +if (lean_is_scalar(x_130)) { + x_132 = lean_alloc_ctor(1, 2, 0); } else { - x_130 = x_128; - lean_ctor_set_tag(x_130, 1); + x_132 = x_130; + lean_ctor_set_tag(x_132, 1); } -lean_ctor_set(x_130, 0, x_119); -lean_ctor_set(x_130, 1, x_107); -lean_ctor_set(x_20, 3, x_130); -lean_ctor_set(x_20, 1, x_126); -lean_ctor_set(x_20, 0, x_129); -lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_132, 0, x_121); +lean_ctor_set(x_132, 1, x_109); +lean_ctor_set(x_22, 3, x_132); +lean_ctor_set(x_22, 1, x_128); +lean_ctor_set(x_22, 0, x_131); +lean_ctor_set(x_30, 0, x_22); lean_inc(x_8); lean_inc(x_7); -x_131 = l_Lean_addAndCompile(x_28, x_7, x_8, x_127); -if (lean_obj_tag(x_131) == 0) +x_133 = l_Lean_addAndCompile(x_30, x_7, x_8, x_129); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec(x_131); -x_133 = 0; -x_134 = lean_unsigned_to_nat(1000u); -x_135 = l_Lean_Meta_addInstance(x_119, x_133, x_134, x_5, x_6, x_7, x_8, x_132); -if (lean_obj_tag(x_135) == 0) +lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = 0; +x_136 = lean_unsigned_to_nat(1000u); +x_137 = l_Lean_Meta_addInstance(x_121, x_135, x_136, x_5, x_6, x_7, x_8, x_134); +if (lean_obj_tag(x_137) == 0) { -lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; -x_136 = lean_ctor_get(x_135, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_137 = x_135; +lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; lean_object* x_142; +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_139 = x_137; } else { - lean_dec_ref(x_135); - x_137 = lean_box(0); + lean_dec_ref(x_137); + x_139 = lean_box(0); } -x_138 = 1; -x_139 = lean_box(x_138); -if (lean_is_scalar(x_137)) { - x_140 = lean_alloc_ctor(0, 2, 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_140 = x_137; -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_136); -return x_140; -} -else -{ -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_135, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_135, 1); -lean_inc(x_142); -lean_dec(x_135); -x_10 = x_141; -x_11 = x_142; -goto block_17; + x_142 = x_139; } +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_138); +return x_142; } else { lean_object* x_143; lean_object* x_144; -lean_dec(x_119); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_143 = lean_ctor_get(x_131, 0); +x_143 = lean_ctor_get(x_137, 0); lean_inc(x_143); -x_144 = lean_ctor_get(x_131, 1); +x_144 = lean_ctor_get(x_137, 1); lean_inc(x_144); -lean_dec(x_131); +lean_dec(x_137); x_10 = x_143; x_11 = x_144; -goto block_17; +goto block_19; } } else { lean_object* x_145; lean_object* x_146; -lean_dec(x_110); -lean_dec(x_106); -lean_free_object(x_28); -lean_dec(x_39); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_121); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_145 = lean_ctor_get(x_118, 0); +x_145 = lean_ctor_get(x_133, 0); lean_inc(x_145); -x_146 = lean_ctor_get(x_118, 1); +x_146 = lean_ctor_get(x_133, 1); lean_inc(x_146); -lean_dec(x_118); +lean_dec(x_133); x_10 = x_145; x_11 = x_146; -goto block_17; +goto block_19; } } else { lean_object* x_147; lean_object* x_148; -lean_dec(x_110); -lean_dec(x_106); -lean_free_object(x_28); -lean_dec(x_39); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_112); +lean_dec(x_108); +lean_free_object(x_30); +lean_dec(x_41); +lean_free_object(x_22); +lean_dec(x_27); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_147 = lean_ctor_get(x_120, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_120, 1); +lean_inc(x_148); +lean_dec(x_120); +x_10 = x_147; +x_11 = x_148; +goto block_19; +} +} +else +{ +lean_object* x_149; lean_object* x_150; +lean_dec(x_112); +lean_dec(x_108); +lean_free_object(x_30); +lean_dec(x_41); +lean_free_object(x_22); +lean_dec(x_27); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2059,251 +2065,225 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_147 = lean_ctor_get(x_111, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_111, 1); -lean_inc(x_148); -lean_dec(x_111); -x_10 = x_147; -x_11 = x_148; -goto block_17; +x_149 = lean_ctor_get(x_113, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_113, 1); +lean_inc(x_150); +lean_dec(x_113); +x_10 = x_149; +x_11 = x_150; +goto block_19; } } } else { -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; -x_149 = lean_ctor_get(x_28, 0); -lean_inc(x_149); -lean_dec(x_28); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -x_151 = l_Lean_Expr_appFn_x21(x_150); -x_152 = lean_ctor_get(x_23, 1); +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; +x_151 = lean_ctor_get(x_30, 0); +lean_inc(x_151); +lean_dec(x_30); +x_152 = lean_ctor_get(x_151, 1); lean_inc(x_152); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - lean_ctor_release(x_23, 2); - x_153 = x_23; +x_153 = l_Lean_Expr_appFn_x21(x_152); +x_154 = lean_ctor_get(x_25, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + lean_ctor_release(x_25, 2); + x_155 = x_25; } else { - lean_dec_ref(x_23); - x_153 = lean_box(0); + lean_dec_ref(x_25); + x_155 = lean_box(0); } -x_154 = lean_box(0); -lean_inc(x_152); -x_155 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_152, x_154); +x_156 = lean_box(0); +lean_inc(x_154); +x_157 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_154, x_156); lean_inc(x_2); -x_156 = l_Lean_Expr_const___override(x_2, x_155); -x_157 = l_Lean_Expr_app___override(x_151, x_156); +x_158 = l_Lean_Expr_const___override(x_2, x_157); +x_159 = l_Lean_Expr_app___override(x_153, x_158); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_157); -x_158 = l_Lean_Meta_check(x_157, x_5, x_6, x_7, x_8, x_37); -if (lean_obj_tag(x_158) == 0) -{ -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; -x_159 = lean_ctor_get(x_158, 1); lean_inc(x_159); -lean_dec(x_158); -x_160 = l_Lean_Elab_Term_processDefDeriving___closed__1; -x_161 = lean_name_append_before(x_2, x_160); -x_162 = l_Lean_Name_getString_x21(x_1); +x_160 = l_Lean_Meta_check(x_159, x_5, x_6, x_7, x_8, x_39); +if (lean_obj_tag(x_160) == 0) +{ +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; +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +lean_dec(x_160); +x_162 = l_Lean_Elab_Term_processDefDeriving___closed__1; +x_163 = lean_name_append_before(x_2, x_162); +x_164 = l_Lean_Name_getString_x21(x_1); lean_dec(x_1); -x_163 = lean_name_append_after(x_161, x_162); -x_164 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); -lean_closure_set(x_164, 0, x_163); +x_165 = lean_name_append_after(x_163, x_164); +x_166 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); +lean_closure_set(x_166, 0, x_165); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_165 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_164, x_3, x_4, x_5, x_6, x_7, x_8, x_159); -if (lean_obj_tag(x_165) == 0) +x_167 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_166, x_3, x_4, x_5, x_6, x_7, x_8, x_161); +if (lean_obj_tag(x_167) == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_157, x_3, x_4, x_5, x_6, x_7, x_8, x_167); -x_169 = lean_ctor_get(x_168, 0); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec(x_168); -x_171 = lean_ctor_get(x_149, 0); +lean_dec(x_167); +x_170 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_159, x_3, x_4, x_5, x_6, x_7, x_8, x_169); +x_171 = lean_ctor_get(x_170, 0); lean_inc(x_171); -lean_dec(x_149); -x_172 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_171, x_3, x_4, x_5, x_6, x_7, x_8, x_170); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_ctor_get(x_151, 0); +lean_inc(x_173); +lean_dec(x_151); +x_174 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_173, x_3, x_4, x_5, x_6, x_7, x_8, x_172); lean_dec(x_4); lean_dec(x_3); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_175 = x_172; +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; } else { - lean_dec_ref(x_172); - x_175 = lean_box(0); + lean_dec_ref(x_174); + x_177 = lean_box(0); } -lean_inc(x_166); -if (lean_is_scalar(x_153)) { - x_176 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_168); +if (lean_is_scalar(x_155)) { + x_178 = lean_alloc_ctor(0, 3, 0); } else { - x_176 = x_153; + x_178 = x_155; } -lean_ctor_set(x_176, 0, x_166); -lean_ctor_set(x_176, 1, x_152); -lean_ctor_set(x_176, 2, x_169); -lean_inc(x_166); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_168); +lean_ctor_set(x_178, 1, x_154); +lean_ctor_set(x_178, 2, x_171); +lean_inc(x_168); +if (lean_is_scalar(x_177)) { + x_179 = lean_alloc_ctor(1, 2, 0); } else { - x_177 = x_175; - lean_ctor_set_tag(x_177, 1); + x_179 = x_177; + lean_ctor_set_tag(x_179, 1); } -lean_ctor_set(x_177, 0, x_166); -lean_ctor_set(x_177, 1, x_154); -lean_ctor_set(x_20, 3, x_177); -lean_ctor_set(x_20, 1, x_173); -lean_ctor_set(x_20, 0, x_176); -x_178 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_178, 0, x_20); +lean_ctor_set(x_179, 0, x_168); +lean_ctor_set(x_179, 1, x_156); +lean_ctor_set(x_22, 3, x_179); +lean_ctor_set(x_22, 1, x_175); +lean_ctor_set(x_22, 0, x_178); +x_180 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_180, 0, x_22); lean_inc(x_8); lean_inc(x_7); -x_179 = l_Lean_addAndCompile(x_178, x_7, x_8, x_174); -if (lean_obj_tag(x_179) == 0) +x_181 = l_Lean_addAndCompile(x_180, x_7, x_8, x_176); +if (lean_obj_tag(x_181) == 0) { -lean_object* x_180; uint8_t x_181; lean_object* x_182; lean_object* x_183; -x_180 = lean_ctor_get(x_179, 1); -lean_inc(x_180); -lean_dec(x_179); -x_181 = 0; -x_182 = lean_unsigned_to_nat(1000u); -x_183 = l_Lean_Meta_addInstance(x_166, x_181, x_182, x_5, x_6, x_7, x_8, x_180); -if (lean_obj_tag(x_183) == 0) +lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; +x_182 = lean_ctor_get(x_181, 1); +lean_inc(x_182); +lean_dec(x_181); +x_183 = 0; +x_184 = lean_unsigned_to_nat(1000u); +x_185 = l_Lean_Meta_addInstance(x_168, x_183, x_184, x_5, x_6, x_7, x_8, x_182); +if (lean_obj_tag(x_185) == 0) { -lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; -x_184 = lean_ctor_get(x_183, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_185 = x_183; +lean_object* x_186; lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_187 = x_185; } else { - lean_dec_ref(x_183); - x_185 = lean_box(0); + lean_dec_ref(x_185); + x_187 = lean_box(0); } -x_186 = 1; -x_187 = lean_box(x_186); -if (lean_is_scalar(x_185)) { - x_188 = lean_alloc_ctor(0, 2, 0); +x_188 = 1; +x_189 = lean_box(x_188); +if (lean_is_scalar(x_187)) { + x_190 = lean_alloc_ctor(0, 2, 0); } else { - x_188 = x_185; -} -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_184); -return x_188; -} -else -{ -lean_object* x_189; lean_object* x_190; -x_189 = lean_ctor_get(x_183, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_183, 1); -lean_inc(x_190); -lean_dec(x_183); -x_10 = x_189; -x_11 = x_190; -goto block_17; + x_190 = x_187; } +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_186); +return x_190; } else { lean_object* x_191; lean_object* x_192; -lean_dec(x_166); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_191 = lean_ctor_get(x_179, 0); +x_191 = lean_ctor_get(x_185, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_179, 1); +x_192 = lean_ctor_get(x_185, 1); lean_inc(x_192); -lean_dec(x_179); +lean_dec(x_185); x_10 = x_191; x_11 = x_192; -goto block_17; +goto block_19; } } else { lean_object* x_193; lean_object* x_194; -lean_dec(x_157); -lean_dec(x_153); -lean_dec(x_152); -lean_dec(x_149); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_168); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_193 = lean_ctor_get(x_165, 0); +x_193 = lean_ctor_get(x_181, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_165, 1); +x_194 = lean_ctor_get(x_181, 1); lean_inc(x_194); -lean_dec(x_165); +lean_dec(x_181); x_10 = x_193; x_11 = x_194; -goto block_17; +goto block_19; } } else { lean_object* x_195; lean_object* x_196; -lean_dec(x_157); -lean_dec(x_153); -lean_dec(x_152); -lean_dec(x_149); -lean_free_object(x_20); -lean_dec(x_25); +lean_dec(x_159); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_151); +lean_free_object(x_22); +lean_dec(x_27); 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_195 = lean_ctor_get(x_158, 0); +x_195 = lean_ctor_get(x_167, 0); lean_inc(x_195); -x_196 = lean_ctor_get(x_158, 1); +x_196 = lean_ctor_get(x_167, 1); lean_inc(x_196); -lean_dec(x_158); +lean_dec(x_167); x_10 = x_195; x_11 = x_196; -goto block_17; -} -} +goto block_19; } } else { lean_object* x_197; lean_object* x_198; -lean_free_object(x_20); -lean_dec(x_25); -lean_dec(x_23); +lean_dec(x_159); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_151); +lean_free_object(x_22); +lean_dec(x_27); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2312,43 +2292,69 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_197 = lean_ctor_get(x_27, 0); +x_197 = lean_ctor_get(x_160, 0); lean_inc(x_197); -x_198 = lean_ctor_get(x_27, 1); +x_198 = lean_ctor_get(x_160, 1); lean_inc(x_198); -lean_dec(x_27); +lean_dec(x_160); x_10 = x_197; x_11 = x_198; -goto block_17; +goto block_19; +} +} } } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; -x_199 = lean_ctor_get(x_20, 0); -x_200 = lean_ctor_get(x_20, 1); -x_201 = lean_ctor_get(x_20, 2); -x_202 = lean_ctor_get_uint8(x_20, sizeof(void*)*4); -lean_inc(x_201); -lean_inc(x_200); +lean_object* x_199; lean_object* x_200; +lean_free_object(x_22); +lean_dec(x_27); +lean_dec(x_25); +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_199 = lean_ctor_get(x_29, 0); lean_inc(x_199); -lean_dec(x_20); +x_200 = lean_ctor_get(x_29, 1); +lean_inc(x_200); +lean_dec(x_29); +x_10 = x_199; +x_11 = x_200; +goto block_19; +} +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; lean_object* x_205; +x_201 = lean_ctor_get(x_22, 0); +x_202 = lean_ctor_get(x_22, 1); +x_203 = lean_ctor_get(x_22, 2); +x_204 = lean_ctor_get_uint8(x_22, sizeof(void*)*4); +lean_inc(x_203); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_22); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_203 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(x_1, x_200, x_5, x_6, x_7, x_8, x_21); -if (lean_obj_tag(x_203) == 0) +x_205 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(x_1, x_202, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_205) == 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_206; +x_206 = lean_ctor_get(x_205, 0); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) { -lean_object* x_205; lean_object* x_206; uint8_t x_207; lean_object* x_208; lean_object* x_209; +lean_object* x_207; lean_object* x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_203); lean_dec(x_201); -lean_dec(x_199); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2357,275 +2363,251 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; +x_207 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_208 = x_205; } else { - lean_dec_ref(x_203); - x_206 = lean_box(0); + lean_dec_ref(x_205); + x_208 = lean_box(0); } -x_207 = 0; -x_208 = lean_box(x_207); -if (lean_is_scalar(x_206)) { - x_209 = lean_alloc_ctor(0, 2, 0); +x_209 = 0; +x_210 = lean_box(x_209); +if (lean_is_scalar(x_208)) { + x_211 = lean_alloc_ctor(0, 2, 0); } else { - x_209 = x_206; + x_211 = x_208; } -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_205); -return x_209; +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_207); +return x_211; } 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_object* x_219; lean_object* x_220; lean_object* x_221; -x_210 = lean_ctor_get(x_203, 1); -lean_inc(x_210); -lean_dec(x_203); -x_211 = lean_ctor_get(x_204, 0); -lean_inc(x_211); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - x_212 = x_204; -} else { - lean_dec_ref(x_204); - x_212 = lean_box(0); -} -x_213 = lean_ctor_get(x_211, 1); +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_212 = lean_ctor_get(x_205, 1); +lean_inc(x_212); +lean_dec(x_205); +x_213 = lean_ctor_get(x_206, 0); lean_inc(x_213); -x_214 = l_Lean_Expr_appFn_x21(x_213); -x_215 = lean_ctor_get(x_199, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - lean_ctor_release(x_199, 2); - x_216 = x_199; +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + x_214 = x_206; } else { - lean_dec_ref(x_199); - x_216 = lean_box(0); + lean_dec_ref(x_206); + x_214 = lean_box(0); } -x_217 = lean_box(0); +x_215 = lean_ctor_get(x_213, 1); lean_inc(x_215); -x_218 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_215, x_217); +x_216 = l_Lean_Expr_appFn_x21(x_215); +x_217 = lean_ctor_get(x_201, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + lean_ctor_release(x_201, 2); + x_218 = x_201; +} else { + lean_dec_ref(x_201); + x_218 = lean_box(0); +} +x_219 = lean_box(0); +lean_inc(x_217); +x_220 = l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(x_217, x_219); lean_inc(x_2); -x_219 = l_Lean_Expr_const___override(x_2, x_218); -x_220 = l_Lean_Expr_app___override(x_214, x_219); +x_221 = l_Lean_Expr_const___override(x_2, x_220); +x_222 = l_Lean_Expr_app___override(x_216, x_221); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_220); -x_221 = l_Lean_Meta_check(x_220, x_5, x_6, x_7, x_8, x_210); -if (lean_obj_tag(x_221) == 0) -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_222 = lean_ctor_get(x_221, 1); lean_inc(x_222); -lean_dec(x_221); -x_223 = l_Lean_Elab_Term_processDefDeriving___closed__1; -x_224 = lean_name_append_before(x_2, x_223); -x_225 = l_Lean_Name_getString_x21(x_1); +x_223 = l_Lean_Meta_check(x_222, x_5, x_6, x_7, x_8, x_212); +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; lean_object* x_230; +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +lean_dec(x_223); +x_225 = l_Lean_Elab_Term_processDefDeriving___closed__1; +x_226 = lean_name_append_before(x_2, x_225); +x_227 = l_Lean_Name_getString_x21(x_1); lean_dec(x_1); -x_226 = lean_name_append_after(x_224, x_225); -x_227 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); -lean_closure_set(x_227, 0, x_226); +x_228 = lean_name_append_after(x_226, x_227); +x_229 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1); +lean_closure_set(x_229, 0, x_228); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_228 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_227, x_3, x_4, x_5, x_6, x_7, x_8, x_222); -if (lean_obj_tag(x_228) == 0) +x_230 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1(x_229, x_3, x_4, x_5, x_6, x_7, x_8, x_224); +if (lean_obj_tag(x_230) == 0) { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -x_231 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_220, x_3, x_4, x_5, x_6, x_7, x_8, x_230); -x_232 = lean_ctor_get(x_231, 0); +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; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); 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_211, 0); +lean_dec(x_230); +x_233 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_222, x_3, x_4, x_5, x_6, x_7, x_8, x_232); +x_234 = lean_ctor_get(x_233, 0); lean_inc(x_234); -lean_dec(x_211); -x_235 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_234, x_3, x_4, x_5, x_6, x_7, x_8, x_233); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_ctor_get(x_213, 0); +lean_inc(x_236); +lean_dec(x_213); +x_237 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_236, x_3, x_4, x_5, x_6, x_7, x_8, x_235); lean_dec(x_4); lean_dec(x_3); -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_235)) { - lean_ctor_release(x_235, 0); - lean_ctor_release(x_235, 1); - x_238 = x_235; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_240 = x_237; } else { - lean_dec_ref(x_235); - x_238 = lean_box(0); + lean_dec_ref(x_237); + x_240 = lean_box(0); } -lean_inc(x_229); -if (lean_is_scalar(x_216)) { - x_239 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_231); +if (lean_is_scalar(x_218)) { + x_241 = lean_alloc_ctor(0, 3, 0); } else { - x_239 = x_216; + x_241 = x_218; } -lean_ctor_set(x_239, 0, x_229); -lean_ctor_set(x_239, 1, x_215); -lean_ctor_set(x_239, 2, x_232); -lean_inc(x_229); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_231); +lean_ctor_set(x_241, 1, x_217); +lean_ctor_set(x_241, 2, x_234); +lean_inc(x_231); +if (lean_is_scalar(x_240)) { + x_242 = lean_alloc_ctor(1, 2, 0); } else { - x_240 = x_238; - lean_ctor_set_tag(x_240, 1); + x_242 = x_240; + lean_ctor_set_tag(x_242, 1); } -lean_ctor_set(x_240, 0, x_229); -lean_ctor_set(x_240, 1, x_217); -x_241 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_241, 0, x_239); -lean_ctor_set(x_241, 1, x_236); -lean_ctor_set(x_241, 2, x_201); -lean_ctor_set(x_241, 3, x_240); -lean_ctor_set_uint8(x_241, sizeof(void*)*4, x_202); -if (lean_is_scalar(x_212)) { - x_242 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_242, 0, x_231); +lean_ctor_set(x_242, 1, x_219); +x_243 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_243, 0, x_241); +lean_ctor_set(x_243, 1, x_238); +lean_ctor_set(x_243, 2, x_203); +lean_ctor_set(x_243, 3, x_242); +lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_204); +if (lean_is_scalar(x_214)) { + x_244 = lean_alloc_ctor(1, 1, 0); } else { - x_242 = x_212; + x_244 = x_214; } -lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_244, 0, x_243); lean_inc(x_8); lean_inc(x_7); -x_243 = l_Lean_addAndCompile(x_242, x_7, x_8, x_237); -if (lean_obj_tag(x_243) == 0) +x_245 = l_Lean_addAndCompile(x_244, x_7, x_8, x_239); +if (lean_obj_tag(x_245) == 0) { -lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -lean_dec(x_243); -x_245 = 0; -x_246 = lean_unsigned_to_nat(1000u); -x_247 = l_Lean_Meta_addInstance(x_229, x_245, x_246, x_5, x_6, x_7, x_8, x_244); -if (lean_obj_tag(x_247) == 0) +lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +x_247 = 0; +x_248 = lean_unsigned_to_nat(1000u); +x_249 = l_Lean_Meta_addInstance(x_231, x_247, x_248, x_5, x_6, x_7, x_8, x_246); +if (lean_obj_tag(x_249) == 0) { -lean_object* x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; lean_object* x_252; -x_248 = lean_ctor_get(x_247, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_249 = x_247; +lean_object* x_250; lean_object* x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; +x_250 = lean_ctor_get(x_249, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_251 = x_249; } else { - lean_dec_ref(x_247); - x_249 = lean_box(0); + lean_dec_ref(x_249); + x_251 = lean_box(0); } -x_250 = 1; -x_251 = lean_box(x_250); -if (lean_is_scalar(x_249)) { - x_252 = lean_alloc_ctor(0, 2, 0); +x_252 = 1; +x_253 = lean_box(x_252); +if (lean_is_scalar(x_251)) { + x_254 = lean_alloc_ctor(0, 2, 0); } else { - x_252 = x_249; -} -lean_ctor_set(x_252, 0, x_251); -lean_ctor_set(x_252, 1, x_248); -return x_252; -} -else -{ -lean_object* x_253; lean_object* x_254; -x_253 = lean_ctor_get(x_247, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_247, 1); -lean_inc(x_254); -lean_dec(x_247); -x_10 = x_253; -x_11 = x_254; -goto block_17; + x_254 = x_251; } +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_250); +return x_254; } else { lean_object* x_255; lean_object* x_256; -lean_dec(x_229); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_255 = lean_ctor_get(x_243, 0); +x_255 = lean_ctor_get(x_249, 0); lean_inc(x_255); -x_256 = lean_ctor_get(x_243, 1); +x_256 = lean_ctor_get(x_249, 1); lean_inc(x_256); -lean_dec(x_243); +lean_dec(x_249); x_10 = x_255; x_11 = x_256; -goto block_17; +goto block_19; } } else { lean_object* x_257; lean_object* x_258; -lean_dec(x_220); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_201); +lean_dec(x_231); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_257 = lean_ctor_get(x_228, 0); +x_257 = lean_ctor_get(x_245, 0); lean_inc(x_257); -x_258 = lean_ctor_get(x_228, 1); +x_258 = lean_ctor_get(x_245, 1); lean_inc(x_258); -lean_dec(x_228); +lean_dec(x_245); x_10 = x_257; x_11 = x_258; -goto block_17; +goto block_19; } } else { lean_object* x_259; lean_object* x_260; -lean_dec(x_220); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_201); +lean_dec(x_222); +lean_dec(x_218); +lean_dec(x_217); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_203); 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_259 = lean_ctor_get(x_221, 0); +x_259 = lean_ctor_get(x_230, 0); lean_inc(x_259); -x_260 = lean_ctor_get(x_221, 1); +x_260 = lean_ctor_get(x_230, 1); lean_inc(x_260); -lean_dec(x_221); +lean_dec(x_230); x_10 = x_259; x_11 = x_260; -goto block_17; -} +goto block_19; } } else { lean_object* x_261; lean_object* x_262; -lean_dec(x_201); -lean_dec(x_199); +lean_dec(x_222); +lean_dec(x_218); +lean_dec(x_217); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_203); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2634,21 +2616,22 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_261 = lean_ctor_get(x_203, 0); +x_261 = lean_ctor_get(x_223, 0); lean_inc(x_261); -x_262 = lean_ctor_get(x_203, 1); +x_262 = lean_ctor_get(x_223, 1); lean_inc(x_262); -lean_dec(x_203); +lean_dec(x_223); x_10 = x_261; x_11 = x_262; -goto block_17; +goto block_19; } } } else { -uint8_t x_263; -lean_dec(x_19); +lean_object* x_263; lean_object* x_264; +lean_dec(x_203); +lean_dec(x_201); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2657,35 +2640,21 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_263 = !lean_is_exclusive(x_18); -if (x_263 == 0) -{ -lean_object* x_264; uint8_t x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_18, 0); -lean_dec(x_264); -x_265 = 0; -x_266 = lean_box(x_265); -lean_ctor_set(x_18, 0, x_266); -return x_18; -} -else -{ -lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; -x_267 = lean_ctor_get(x_18, 1); -lean_inc(x_267); -lean_dec(x_18); -x_268 = 0; -x_269 = lean_box(x_268); -x_270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_267); -return x_270; +x_263 = lean_ctor_get(x_205, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_205, 1); +lean_inc(x_264); +lean_dec(x_205); +x_10 = x_263; +x_11 = x_264; +goto block_19; } } } else { -lean_object* x_271; lean_object* x_272; +uint8_t x_265; +lean_dec(x_21); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2694,37 +2663,87 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_271 = lean_ctor_get(x_18, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_18, 1); -lean_inc(x_272); -lean_dec(x_18); -x_10 = x_271; -x_11 = x_272; -goto block_17; +x_265 = !lean_is_exclusive(x_20); +if (x_265 == 0) +{ +lean_object* x_266; uint8_t x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_20, 0); +lean_dec(x_266); +x_267 = 0; +x_268 = lean_box(x_267); +lean_ctor_set(x_20, 0, x_268); +return x_20; } -block_17: +else +{ +lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; +x_269 = lean_ctor_get(x_20, 1); +lean_inc(x_269); +lean_dec(x_20); +x_270 = 0; +x_271 = lean_box(x_270); +x_272 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_269); +return x_272; +} +} +} +else +{ +lean_object* x_273; lean_object* x_274; +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_273 = lean_ctor_get(x_20, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_20, 1); +lean_inc(x_274); +lean_dec(x_20); +x_10 = x_273; +x_11 = x_274; +goto block_19; +} +block_19: { uint8_t x_12; -x_12 = l_Lean_Exception_isRuntime(x_10); +x_12 = l_Lean_Exception_isInterrupt(x_10); if (x_12 == 0) { -uint8_t x_13; lean_object* x_14; lean_object* x_15; +uint8_t x_13; +x_13 = l_Lean_Exception_isRuntime(x_10); +if (x_13 == 0) +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_10); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_11); -return x_15; +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; } else { -lean_object* x_16; -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_10); -lean_ctor_set(x_16, 1, x_11); -return x_16; +lean_object* x_17; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_11); +return x_17; +} +} +else +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_10); +lean_ctor_set(x_18, 1, x_11); +return x_18; } } } @@ -3889,7 +3908,7 @@ uint8_t x_26; x_26 = !lean_is_exclusive(x_5); if (x_26 == 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_41; lean_object* x_42; lean_object* x_43; +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_45; lean_object* x_46; lean_object* x_47; x_27 = lean_ctor_get(x_5, 2); lean_dec(x_27); x_28 = lean_ctor_get(x_5, 1); @@ -3901,333 +3920,322 @@ x_31 = lean_unsigned_to_nat(1u); x_32 = lean_nat_add(x_22, x_31); lean_dec(x_22); lean_ctor_set(x_5, 1, x_32); -x_41 = lean_box(0); +x_45 = lean_box(0); lean_inc(x_11); -x_42 = lean_alloc_closure((void*)(l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo), 5, 2); -lean_closure_set(x_42, 0, x_11); -lean_closure_set(x_42, 1, x_41); -x_43 = l_Lean_Elab_Command_liftCoreM___rarg(x_42, x_6, x_7, x_8); -if (lean_obj_tag(x_43) == 0) +x_46 = lean_alloc_closure((void*)(l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo), 5, 2); +lean_closure_set(x_46, 0, x_11); +lean_closure_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Command_liftCoreM___rarg(x_46, x_6, x_7, x_8); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_array_get_size(x_1); -x_47 = lean_nat_dec_eq(x_46, x_31); -x_48 = l_Lean_Elab_Command_getRef(x_6, x_7, x_45); -if (x_47 == 0) +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_array_get_size(x_1); +x_51 = lean_nat_dec_eq(x_50, x_31); +x_52 = l_Lean_Elab_Command_getRef(x_6, x_7, x_49); +if (x_51 == 0) { -uint8_t x_118; -x_118 = 0; -x_49 = x_118; -goto block_117; +uint8_t x_119; +x_119 = 0; +x_53 = x_119; +goto block_118; } else { if (lean_obj_tag(x_30) == 0) { -uint8_t x_119; -x_119 = 1; -x_49 = x_119; -goto block_117; -} -else -{ uint8_t x_120; -x_120 = 0; -x_49 = x_120; -goto block_117; +x_120 = 1; +x_53 = x_120; +goto block_118; +} +else +{ +uint8_t x_121; +x_121 = 0; +x_53 = x_121; +goto block_118; } } -block_117: +block_118: { -if (x_49 == 0) +if (x_53 == 0) { -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_dec(x_46); -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 = l_Lean_replaceRef(x_11, x_50); +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; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_dec(x_50); -lean_dec(x_11); -x_53 = lean_ctor_get(x_6, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_6, 1); +x_54 = lean_ctor_get(x_52, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_6, 2); +x_55 = lean_ctor_get(x_52, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_6, 3); -lean_inc(x_56); -x_57 = lean_ctor_get(x_6, 4); +lean_dec(x_52); +x_56 = l_Lean_replaceRef(x_11, x_54); +lean_dec(x_54); +lean_dec(x_11); +x_57 = lean_ctor_get(x_6, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_6, 5); +x_58 = lean_ctor_get(x_6, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_6, 7); +x_59 = lean_ctor_get(x_6, 2); lean_inc(x_59); -x_60 = lean_ctor_get(x_6, 8); +x_60 = lean_ctor_get(x_6, 3); lean_inc(x_60); -x_61 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_61, 0, x_53); -lean_ctor_set(x_61, 1, x_54); -lean_ctor_set(x_61, 2, x_55); -lean_ctor_set(x_61, 3, x_56); -lean_ctor_set(x_61, 4, x_57); -lean_ctor_set(x_61, 5, x_58); -lean_ctor_set(x_61, 6, x_52); -lean_ctor_set(x_61, 7, x_59); -lean_ctor_set(x_61, 8, x_60); -lean_inc(x_7); -lean_inc(x_1); -x_62 = l_Lean_Elab_applyDerivingHandlers(x_44, x_1, x_30, x_61, x_7, x_51); -if (lean_obj_tag(x_62) == 0) -{ -x_33 = x_62; -goto block_40; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_62, 0); +x_61 = lean_ctor_get(x_6, 4); +lean_inc(x_61); +x_62 = lean_ctor_get(x_6, 5); +lean_inc(x_62); +x_63 = lean_ctor_get(x_6, 7); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); +x_64 = lean_ctor_get(x_6, 8); lean_inc(x_64); -lean_dec(x_62); +x_65 = lean_ctor_get(x_6, 9); +lean_inc(x_65); +x_66 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_67 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_67, 0, x_57); +lean_ctor_set(x_67, 1, x_58); +lean_ctor_set(x_67, 2, x_59); +lean_ctor_set(x_67, 3, x_60); +lean_ctor_set(x_67, 4, x_61); +lean_ctor_set(x_67, 5, x_62); +lean_ctor_set(x_67, 6, x_56); +lean_ctor_set(x_67, 7, x_63); +lean_ctor_set(x_67, 8, x_64); +lean_ctor_set(x_67, 9, x_65); +lean_ctor_set_uint8(x_67, sizeof(void*)*10, x_66); lean_inc(x_7); -lean_inc(x_6); -x_65 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_63, x_6, x_7, x_64); -x_33 = x_65; -goto block_40; -} -} -else +lean_inc(x_1); +x_68 = l_Lean_Elab_applyDerivingHandlers(x_48, x_1, x_30, x_67, x_7, x_55); +if (lean_obj_tag(x_68) == 0) { -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; uint8_t x_79; -x_66 = lean_ctor_get(x_48, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_48, 1); -lean_inc(x_67); -lean_dec(x_48); -x_68 = l_Lean_replaceRef(x_11, x_66); -lean_dec(x_66); -lean_dec(x_11); -x_69 = lean_ctor_get(x_6, 0); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_68, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_6, 1); -lean_inc(x_70); -x_71 = lean_ctor_get(x_6, 2); +lean_dec(x_68); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_5); +x_12 = x_70; +x_13 = x_69; +goto block_20; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_68, 0); lean_inc(x_71); -x_72 = lean_ctor_get(x_6, 3); +x_72 = lean_ctor_get(x_68, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_6, 4); +lean_dec(x_68); +x_33 = x_71; +x_34 = x_72; +goto block_44; +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_73 = lean_ctor_get(x_52, 0); lean_inc(x_73); -x_74 = lean_ctor_get(x_6, 5); +x_74 = lean_ctor_get(x_52, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_6, 7); -lean_inc(x_75); -x_76 = lean_ctor_get(x_6, 8); +lean_dec(x_52); +x_75 = l_Lean_replaceRef(x_11, x_73); +lean_dec(x_73); +lean_dec(x_11); +x_76 = lean_ctor_get(x_6, 0); lean_inc(x_76); -x_77 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_77, 0, x_69); -lean_ctor_set(x_77, 1, x_70); -lean_ctor_set(x_77, 2, x_71); -lean_ctor_set(x_77, 3, x_72); -lean_ctor_set(x_77, 4, x_73); -lean_ctor_set(x_77, 5, x_74); -lean_ctor_set(x_77, 6, x_68); -lean_ctor_set(x_77, 7, x_75); -lean_ctor_set(x_77, 8, x_76); -x_78 = lean_unsigned_to_nat(0u); -x_79 = lean_nat_dec_lt(x_78, x_46); -lean_dec(x_46); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = l_Lean_instInhabitedName; -x_81 = l___private_Init_GetElem_0__outOfBounds___rarg(x_80); -lean_inc(x_44); -x_82 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_44, x_81, x_77, x_7, x_67); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; uint8_t x_84; -x_83 = lean_ctor_get(x_82, 0); +x_77 = lean_ctor_get(x_6, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_6, 2); +lean_inc(x_78); +x_79 = lean_ctor_get(x_6, 3); +lean_inc(x_79); +x_80 = lean_ctor_get(x_6, 4); +lean_inc(x_80); +x_81 = lean_ctor_get(x_6, 5); +lean_inc(x_81); +x_82 = lean_ctor_get(x_6, 7); +lean_inc(x_82); +x_83 = lean_ctor_get(x_6, 8); lean_inc(x_83); -x_84 = lean_unbox(x_83); -lean_dec(x_83); -if (x_84 == 0) +x_84 = lean_ctor_get(x_6, 9); +lean_inc(x_84); +x_85 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_86 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_86, 0, x_76); +lean_ctor_set(x_86, 1, x_77); +lean_ctor_set(x_86, 2, x_78); +lean_ctor_set(x_86, 3, x_79); +lean_ctor_set(x_86, 4, x_80); +lean_ctor_set(x_86, 5, x_81); +lean_ctor_set(x_86, 6, x_75); +lean_ctor_set(x_86, 7, x_82); +lean_ctor_set(x_86, 8, x_83); +lean_ctor_set(x_86, 9, x_84); +lean_ctor_set_uint8(x_86, sizeof(void*)*10, x_85); +x_87 = lean_unsigned_to_nat(0u); +x_88 = lean_nat_dec_lt(x_87, x_50); +lean_dec(x_50); +if (x_88 == 0) { -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -lean_inc(x_7); -lean_inc(x_1); -x_86 = l_Lean_Elab_applyDerivingHandlers(x_44, x_1, x_30, x_77, x_7, x_85); -if (lean_obj_tag(x_86) == 0) +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = l_Lean_instInhabitedName; +x_90 = l___private_Init_GetElem_0__outOfBounds___rarg(x_89); +lean_inc(x_48); +x_91 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_48, x_90, x_86, x_7, x_74); +if (lean_obj_tag(x_91) == 0) { -x_33 = x_86; -goto block_40; -} -else +lean_object* x_92; uint8_t x_93; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_unbox(x_92); +lean_dec(x_92); +if (x_93 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -lean_inc(x_7); -lean_inc(x_6); -x_89 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_87, x_6, x_7, x_88); -x_33 = x_89; -goto block_40; -} -} -else -{ -uint8_t x_90; -lean_dec(x_77); -lean_dec(x_44); -lean_dec(x_30); -x_90 = !lean_is_exclusive(x_82); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_82, 0); +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); lean_dec(x_91); -x_92 = lean_box(0); -lean_ctor_set(x_82, 0, x_92); -x_33 = x_82; -goto block_40; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_82, 1); -lean_inc(x_93); -lean_dec(x_82); -x_94 = lean_box(0); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_93); -x_33 = x_95; -goto block_40; -} -} -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_77); -lean_dec(x_44); -lean_dec(x_30); -x_96 = lean_ctor_get(x_82, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_82, 1); -lean_inc(x_97); -lean_dec(x_82); -lean_inc(x_7); -lean_inc(x_6); -x_98 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_96, x_6, x_7, x_97); -x_33 = x_98; -goto block_40; -} -} -else -{ -lean_object* x_99; lean_object* x_100; -x_99 = lean_array_fget(x_1, x_78); -lean_inc(x_44); -x_100 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_44, x_99, x_77, x_7, x_67); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; uint8_t x_102; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_unbox(x_101); -lean_dec(x_101); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_100, 1); -lean_inc(x_103); -lean_dec(x_100); lean_inc(x_7); lean_inc(x_1); -x_104 = l_Lean_Elab_applyDerivingHandlers(x_44, x_1, x_30, x_77, x_7, x_103); -if (lean_obj_tag(x_104) == 0) +x_95 = l_Lean_Elab_applyDerivingHandlers(x_48, x_1, x_30, x_86, x_7, x_94); +if (lean_obj_tag(x_95) == 0) { -x_33 = x_104; -goto block_40; +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_5); +x_12 = x_97; +x_13 = x_96; +goto block_20; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_95, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +lean_dec(x_95); +x_33 = x_98; +x_34 = x_99; +goto block_44; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_86); +lean_dec(x_48); +lean_dec(x_30); +x_100 = lean_ctor_get(x_91, 1); +lean_inc(x_100); +lean_dec(x_91); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_5); +x_12 = x_101; +x_13 = x_100; +goto block_20; +} +} +else +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_86); +lean_dec(x_48); +lean_dec(x_30); +x_102 = lean_ctor_get(x_91, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_91, 1); +lean_inc(x_103); +lean_dec(x_91); +x_33 = x_102; +x_34 = x_103; +goto block_44; +} +} +else +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_array_fget(x_1, x_87); +lean_inc(x_48); +x_105 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_48, x_104, x_86, x_7, x_74); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; uint8_t x_107; +x_106 = lean_ctor_get(x_105, 0); lean_inc(x_106); -lean_dec(x_104); +x_107 = lean_unbox(x_106); +lean_dec(x_106); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; +x_108 = lean_ctor_get(x_105, 1); +lean_inc(x_108); +lean_dec(x_105); lean_inc(x_7); -lean_inc(x_6); -x_107 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_105, x_6, x_7, x_106); -x_33 = x_107; -goto block_40; -} -} -else +lean_inc(x_1); +x_109 = l_Lean_Elab_applyDerivingHandlers(x_48, x_1, x_30, x_86, x_7, x_108); +if (lean_obj_tag(x_109) == 0) { -uint8_t x_108; -lean_dec(x_77); -lean_dec(x_44); -lean_dec(x_30); -x_108 = !lean_is_exclusive(x_100); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_100, 0); +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); lean_dec(x_109); -x_110 = lean_box(0); -lean_ctor_set(x_100, 0, x_110); -x_33 = x_100; -goto block_40; +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_5); +x_12 = x_111; +x_13 = x_110; +goto block_20; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_100, 1); -lean_inc(x_111); -lean_dec(x_100); -x_112 = lean_box(0); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_33 = x_113; -goto block_40; -} +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_109, 1); +lean_inc(x_113); +lean_dec(x_109); +x_33 = x_112; +x_34 = x_113; +goto block_44; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_77); -lean_dec(x_44); +lean_object* x_114; lean_object* x_115; +lean_dec(x_86); +lean_dec(x_48); lean_dec(x_30); -x_114 = lean_ctor_get(x_100, 0); +x_114 = lean_ctor_get(x_105, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_100, 1); -lean_inc(x_115); -lean_dec(x_100); -lean_inc(x_7); -lean_inc(x_6); -x_116 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_114, x_6, x_7, x_115); +lean_dec(x_105); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_5); +x_12 = x_115; +x_13 = x_114; +goto block_20; +} +} +else +{ +lean_object* x_116; lean_object* x_117; +lean_dec(x_86); +lean_dec(x_48); +lean_dec(x_30); +x_116 = lean_ctor_get(x_105, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_105, 1); +lean_inc(x_117); +lean_dec(x_105); x_33 = x_116; -goto block_40; +x_34 = x_117; +goto block_44; } } } @@ -4235,529 +4243,682 @@ goto block_40; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; +uint8_t x_122; lean_dec(x_30); lean_dec(x_11); -x_121 = lean_ctor_get(x_43, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_43, 1); -lean_inc(x_122); -lean_dec(x_43); +x_122 = !lean_is_exclusive(x_47); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_123 = lean_ctor_get(x_47, 0); +x_124 = lean_ctor_get(x_47, 1); +x_125 = l_Lean_Exception_isInterrupt(x_123); +if (x_125 == 0) +{ +lean_object* x_126; +lean_free_object(x_47); lean_inc(x_7); lean_inc(x_6); -x_123 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_121, x_6, x_7, x_122); -if (lean_obj_tag(x_123) == 0) +x_126 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_123, x_6, x_7, x_124); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -lean_dec(x_123); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_5); -x_12 = x_125; -x_13 = x_124; -goto block_20; -} -else -{ -uint8_t x_126; -lean_dec(x_5); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_126 = !lean_is_exclusive(x_123); -if (x_126 == 0) -{ -return x_123; -} -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_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_126, 1); lean_inc(x_127); -lean_dec(x_123); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; -} -} -} -block_40: -{ -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_5); -x_12 = x_35; -x_13 = x_34; +lean_dec(x_126); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_5); +x_12 = x_128; +x_13 = x_127; goto block_20; } else { -uint8_t x_36; +uint8_t x_129; lean_dec(x_5); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) +x_129 = !lean_is_exclusive(x_126); +if (x_129 == 0) { -return x_33; +return x_126; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -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_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_126, 0); +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_126); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_dec(x_5); -x_130 = lean_array_fget(x_21, x_22); -x_131 = lean_unsigned_to_nat(1u); -x_132 = lean_nat_add(x_22, x_131); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_47; +} +} +else +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_47, 0); +x_134 = lean_ctor_get(x_47, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_47); +x_135 = l_Lean_Exception_isInterrupt(x_133); +if (x_135 == 0) +{ +lean_object* x_136; +lean_inc(x_7); +lean_inc(x_6); +x_136 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_133, x_6, x_7, x_134); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_138, 0, x_5); +x_12 = x_138; +x_13 = x_137; +goto block_20; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_5); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_141 = x_136; +} else { + lean_dec_ref(x_136); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +else +{ +lean_object* x_143; +lean_dec(x_5); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_133); +lean_ctor_set(x_143, 1, x_134); +return x_143; +} +} +} +block_44: +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isInterrupt(x_33); +if (x_35 == 0) +{ +lean_object* x_36; +lean_inc(x_7); +lean_inc(x_6); +x_36 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_33, x_6, x_7, x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_5); +x_12 = x_38; +x_13 = x_37; +goto block_20; +} +else +{ +uint8_t x_39; +lean_dec(x_5); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_36); +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; +} +} +} +else +{ +lean_object* x_43; +lean_dec(x_5); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_33); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +} +} +else +{ +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_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_5); +x_144 = lean_array_fget(x_21, x_22); +x_145 = lean_unsigned_to_nat(1u); +x_146 = lean_nat_add(x_22, x_145); lean_dec(x_22); -x_133 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_133, 0, x_21); -lean_ctor_set(x_133, 1, x_132); -lean_ctor_set(x_133, 2, x_23); -x_142 = lean_box(0); +x_147 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_147, 0, x_21); +lean_ctor_set(x_147, 1, x_146); +lean_ctor_set(x_147, 2, x_23); +x_160 = lean_box(0); lean_inc(x_11); -x_143 = lean_alloc_closure((void*)(l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo), 5, 2); -lean_closure_set(x_143, 0, x_11); -lean_closure_set(x_143, 1, x_142); -x_144 = l_Lean_Elab_Command_liftCoreM___rarg(x_143, x_6, x_7, x_8); +x_161 = lean_alloc_closure((void*)(l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo), 5, 2); +lean_closure_set(x_161, 0, x_11); +lean_closure_set(x_161, 1, x_160); +x_162 = l_Lean_Elab_Command_liftCoreM___rarg(x_161, x_6, x_7, x_8); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; uint8_t x_168; +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_array_get_size(x_1); +x_166 = lean_nat_dec_eq(x_165, x_145); +x_167 = l_Lean_Elab_Command_getRef(x_6, x_7, x_164); +if (x_166 == 0) +{ +uint8_t x_234; +x_234 = 0; +x_168 = x_234; +goto block_233; +} +else +{ if (lean_obj_tag(x_144) == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; lean_object* x_149; uint8_t x_150; -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_array_get_size(x_1); -x_148 = lean_nat_dec_eq(x_147, x_131); -x_149 = l_Lean_Elab_Command_getRef(x_6, x_7, x_146); -if (x_148 == 0) -{ -uint8_t x_215; -x_215 = 0; -x_150 = x_215; -goto block_214; +uint8_t x_235; +x_235 = 1; +x_168 = x_235; +goto block_233; } else { -if (lean_obj_tag(x_130) == 0) -{ -uint8_t x_216; -x_216 = 1; -x_150 = x_216; -goto block_214; -} -else -{ -uint8_t x_217; -x_217 = 0; -x_150 = x_217; -goto block_214; +uint8_t x_236; +x_236 = 0; +x_168 = x_236; +goto block_233; } } -block_214: +block_233: { -if (x_150 == 0) +if (x_168 == 0) { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_147); -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 = l_Lean_replaceRef(x_11, x_151); -lean_dec(x_151); +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_165); +x_169 = lean_ctor_get(x_167, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = l_Lean_replaceRef(x_11, x_169); +lean_dec(x_169); lean_dec(x_11); -x_154 = lean_ctor_get(x_6, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_6, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_6, 2); -lean_inc(x_156); -x_157 = lean_ctor_get(x_6, 3); -lean_inc(x_157); -x_158 = lean_ctor_get(x_6, 4); -lean_inc(x_158); -x_159 = lean_ctor_get(x_6, 5); -lean_inc(x_159); -x_160 = lean_ctor_get(x_6, 7); -lean_inc(x_160); -x_161 = lean_ctor_get(x_6, 8); -lean_inc(x_161); -x_162 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_162, 0, x_154); -lean_ctor_set(x_162, 1, x_155); -lean_ctor_set(x_162, 2, x_156); -lean_ctor_set(x_162, 3, x_157); -lean_ctor_set(x_162, 4, x_158); -lean_ctor_set(x_162, 5, x_159); -lean_ctor_set(x_162, 6, x_153); -lean_ctor_set(x_162, 7, x_160); -lean_ctor_set(x_162, 8, x_161); +x_172 = lean_ctor_get(x_6, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_6, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_6, 2); +lean_inc(x_174); +x_175 = lean_ctor_get(x_6, 3); +lean_inc(x_175); +x_176 = lean_ctor_get(x_6, 4); +lean_inc(x_176); +x_177 = lean_ctor_get(x_6, 5); +lean_inc(x_177); +x_178 = lean_ctor_get(x_6, 7); +lean_inc(x_178); +x_179 = lean_ctor_get(x_6, 8); +lean_inc(x_179); +x_180 = lean_ctor_get(x_6, 9); +lean_inc(x_180); +x_181 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_182 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_182, 0, x_172); +lean_ctor_set(x_182, 1, x_173); +lean_ctor_set(x_182, 2, x_174); +lean_ctor_set(x_182, 3, x_175); +lean_ctor_set(x_182, 4, x_176); +lean_ctor_set(x_182, 5, x_177); +lean_ctor_set(x_182, 6, x_171); +lean_ctor_set(x_182, 7, x_178); +lean_ctor_set(x_182, 8, x_179); +lean_ctor_set(x_182, 9, x_180); +lean_ctor_set_uint8(x_182, sizeof(void*)*10, x_181); lean_inc(x_7); lean_inc(x_1); -x_163 = l_Lean_Elab_applyDerivingHandlers(x_145, x_1, x_130, x_162, x_7, x_152); -if (lean_obj_tag(x_163) == 0) -{ -x_134 = x_163; -goto block_141; -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -lean_inc(x_7); -lean_inc(x_6); -x_166 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_164, x_6, x_7, x_165); -x_134 = x_166; -goto block_141; -} -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -x_167 = lean_ctor_get(x_149, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_149, 1); -lean_inc(x_168); -lean_dec(x_149); -x_169 = l_Lean_replaceRef(x_11, x_167); -lean_dec(x_167); -lean_dec(x_11); -x_170 = lean_ctor_get(x_6, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_6, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_6, 2); -lean_inc(x_172); -x_173 = lean_ctor_get(x_6, 3); -lean_inc(x_173); -x_174 = lean_ctor_get(x_6, 4); -lean_inc(x_174); -x_175 = lean_ctor_get(x_6, 5); -lean_inc(x_175); -x_176 = lean_ctor_get(x_6, 7); -lean_inc(x_176); -x_177 = lean_ctor_get(x_6, 8); -lean_inc(x_177); -x_178 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_178, 0, x_170); -lean_ctor_set(x_178, 1, x_171); -lean_ctor_set(x_178, 2, x_172); -lean_ctor_set(x_178, 3, x_173); -lean_ctor_set(x_178, 4, x_174); -lean_ctor_set(x_178, 5, x_175); -lean_ctor_set(x_178, 6, x_169); -lean_ctor_set(x_178, 7, x_176); -lean_ctor_set(x_178, 8, x_177); -x_179 = lean_unsigned_to_nat(0u); -x_180 = lean_nat_dec_lt(x_179, x_147); -lean_dec(x_147); -if (x_180 == 0) -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = l_Lean_instInhabitedName; -x_182 = l___private_Init_GetElem_0__outOfBounds___rarg(x_181); -lean_inc(x_145); -x_183 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_145, x_182, x_178, x_7, x_168); +x_183 = l_Lean_Elab_applyDerivingHandlers(x_163, x_1, x_144, x_182, x_7, x_170); if (lean_obj_tag(x_183) == 0) { -lean_object* x_184; uint8_t x_185; -x_184 = lean_ctor_get(x_183, 0); +lean_object* x_184; lean_object* x_185; +x_184 = lean_ctor_get(x_183, 1); lean_inc(x_184); -x_185 = lean_unbox(x_184); -lean_dec(x_184); -if (x_185 == 0) +lean_dec(x_183); +x_185 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_185, 0, x_147); +x_12 = x_185; +x_13 = x_184; +goto block_20; +} +else { lean_object* x_186; lean_object* x_187; -x_186 = lean_ctor_get(x_183, 1); +x_186 = lean_ctor_get(x_183, 0); lean_inc(x_186); +x_187 = lean_ctor_get(x_183, 1); +lean_inc(x_187); lean_dec(x_183); -lean_inc(x_7); -lean_inc(x_1); -x_187 = l_Lean_Elab_applyDerivingHandlers(x_145, x_1, x_130, x_178, x_7, x_186); -if (lean_obj_tag(x_187) == 0) -{ -x_134 = x_187; -goto block_141; +x_148 = x_186; +x_149 = x_187; +goto block_159; +} } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_187, 0); +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; uint8_t x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_188 = lean_ctor_get(x_167, 0); lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); +x_189 = lean_ctor_get(x_167, 1); lean_inc(x_189); -lean_dec(x_187); -lean_inc(x_7); -lean_inc(x_6); -x_190 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_188, x_6, x_7, x_189); -x_134 = x_190; -goto block_141; -} -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_178); -lean_dec(x_145); -lean_dec(x_130); -x_191 = lean_ctor_get(x_183, 1); +lean_dec(x_167); +x_190 = l_Lean_replaceRef(x_11, x_188); +lean_dec(x_188); +lean_dec(x_11); +x_191 = lean_ctor_get(x_6, 0); lean_inc(x_191); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_192 = x_183; -} else { - lean_dec_ref(x_183); - x_192 = lean_box(0); -} -x_193 = lean_box(0); -if (lean_is_scalar(x_192)) { - x_194 = lean_alloc_ctor(0, 2, 0); -} else { - x_194 = x_192; -} -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_191); -x_134 = x_194; -goto block_141; -} -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_178); -lean_dec(x_145); -lean_dec(x_130); -x_195 = lean_ctor_get(x_183, 0); +x_192 = lean_ctor_get(x_6, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_6, 2); +lean_inc(x_193); +x_194 = lean_ctor_get(x_6, 3); +lean_inc(x_194); +x_195 = lean_ctor_get(x_6, 4); lean_inc(x_195); -x_196 = lean_ctor_get(x_183, 1); +x_196 = lean_ctor_get(x_6, 5); lean_inc(x_196); -lean_dec(x_183); -lean_inc(x_7); -lean_inc(x_6); -x_197 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_195, x_6, x_7, x_196); -x_134 = x_197; -goto block_141; -} -} -else -{ -lean_object* x_198; lean_object* x_199; -x_198 = lean_array_fget(x_1, x_179); -lean_inc(x_145); -x_199 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_145, x_198, x_178, x_7, x_168); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; uint8_t x_201; -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_unbox(x_200); -lean_dec(x_200); -if (x_201 == 0) -{ -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -lean_dec(x_199); -lean_inc(x_7); -lean_inc(x_1); -x_203 = l_Lean_Elab_applyDerivingHandlers(x_145, x_1, x_130, x_178, x_7, x_202); -if (lean_obj_tag(x_203) == 0) -{ -x_134 = x_203; -goto block_141; -} -else +x_197 = lean_ctor_get(x_6, 7); +lean_inc(x_197); +x_198 = lean_ctor_get(x_6, 8); +lean_inc(x_198); +x_199 = lean_ctor_get(x_6, 9); +lean_inc(x_199); +x_200 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_201 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_201, 0, x_191); +lean_ctor_set(x_201, 1, x_192); +lean_ctor_set(x_201, 2, x_193); +lean_ctor_set(x_201, 3, x_194); +lean_ctor_set(x_201, 4, x_195); +lean_ctor_set(x_201, 5, x_196); +lean_ctor_set(x_201, 6, x_190); +lean_ctor_set(x_201, 7, x_197); +lean_ctor_set(x_201, 8, x_198); +lean_ctor_set(x_201, 9, x_199); +lean_ctor_set_uint8(x_201, sizeof(void*)*10, x_200); +x_202 = lean_unsigned_to_nat(0u); +x_203 = lean_nat_dec_lt(x_202, x_165); +lean_dec(x_165); +if (x_203 == 0) { lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -lean_inc(x_7); -lean_inc(x_6); -x_206 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_204, x_6, x_7, x_205); -x_134 = x_206; -goto block_141; -} -} -else +x_204 = l_Lean_instInhabitedName; +x_205 = l___private_Init_GetElem_0__outOfBounds___rarg(x_204); +lean_inc(x_163); +x_206 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_163, x_205, x_201, x_7, x_189); +if (lean_obj_tag(x_206) == 0) { -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_178); -lean_dec(x_145); -lean_dec(x_130); -x_207 = lean_ctor_get(x_199, 1); +lean_object* x_207; uint8_t x_208; +x_207 = lean_ctor_get(x_206, 0); lean_inc(x_207); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_208 = x_199; -} else { - lean_dec_ref(x_199); - x_208 = lean_box(0); -} -x_209 = lean_box(0); -if (lean_is_scalar(x_208)) { - x_210 = lean_alloc_ctor(0, 2, 0); -} else { - x_210 = x_208; -} -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_207); -x_134 = x_210; -goto block_141; -} -} -else +x_208 = lean_unbox(x_207); +lean_dec(x_207); +if (x_208 == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_178); -lean_dec(x_145); -lean_dec(x_130); -x_211 = lean_ctor_get(x_199, 0); +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_206, 1); +lean_inc(x_209); +lean_dec(x_206); +lean_inc(x_7); +lean_inc(x_1); +x_210 = l_Lean_Elab_applyDerivingHandlers(x_163, x_1, x_144, x_201, x_7, x_209); +if (lean_obj_tag(x_210) == 0) +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_210, 1); lean_inc(x_211); -x_212 = lean_ctor_get(x_199, 1); -lean_inc(x_212); -lean_dec(x_199); -lean_inc(x_7); -lean_inc(x_6); -x_213 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_211, x_6, x_7, x_212); -x_134 = x_213; -goto block_141; -} -} +lean_dec(x_210); +x_212 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_212, 0, x_147); +x_12 = x_212; +x_13 = x_211; +goto block_20; } +else +{ +lean_object* x_213; lean_object* x_214; +x_213 = lean_ctor_get(x_210, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_210, 1); +lean_inc(x_214); +lean_dec(x_210); +x_148 = x_213; +x_149 = x_214; +goto block_159; } } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -lean_dec(x_130); -lean_dec(x_11); -x_218 = lean_ctor_get(x_144, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_144, 1); -lean_inc(x_219); +lean_object* x_215; lean_object* x_216; +lean_dec(x_201); +lean_dec(x_163); lean_dec(x_144); -lean_inc(x_7); -lean_inc(x_6); -x_220 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_218, x_6, x_7, x_219); +x_215 = lean_ctor_get(x_206, 1); +lean_inc(x_215); +lean_dec(x_206); +x_216 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_216, 0, x_147); +x_12 = x_216; +x_13 = x_215; +goto block_20; +} +} +else +{ +lean_object* x_217; lean_object* x_218; +lean_dec(x_201); +lean_dec(x_163); +lean_dec(x_144); +x_217 = lean_ctor_get(x_206, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_206, 1); +lean_inc(x_218); +lean_dec(x_206); +x_148 = x_217; +x_149 = x_218; +goto block_159; +} +} +else +{ +lean_object* x_219; lean_object* x_220; +x_219 = lean_array_fget(x_1, x_202); +lean_inc(x_163); +x_220 = l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(x_163, x_219, x_201, x_7, x_189); if (lean_obj_tag(x_220) == 0) { -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_220, 1); +lean_object* x_221; uint8_t x_222; +x_221 = lean_ctor_get(x_220, 0); lean_inc(x_221); -lean_dec(x_220); -x_222 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_222, 0, x_133); -x_12 = x_222; -x_13 = x_221; -goto block_20; -} -else +x_222 = lean_unbox(x_221); +lean_dec(x_221); +if (x_222 == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -lean_dec(x_133); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_223 = lean_ctor_get(x_220, 0); +lean_object* x_223; lean_object* x_224; +x_223 = lean_ctor_get(x_220, 1); lean_inc(x_223); -x_224 = lean_ctor_get(x_220, 1); -lean_inc(x_224); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_225 = x_220; -} else { - lean_dec_ref(x_220); - x_225 = lean_box(0); -} -if (lean_is_scalar(x_225)) { - x_226 = lean_alloc_ctor(1, 2, 0); -} else { - x_226 = x_225; -} -lean_ctor_set(x_226, 0, x_223); -lean_ctor_set(x_226, 1, x_224); -return x_226; -} -} -block_141: +lean_dec(x_220); +lean_inc(x_7); +lean_inc(x_1); +x_224 = l_Lean_Elab_applyDerivingHandlers(x_163, x_1, x_144, x_201, x_7, x_223); +if (lean_obj_tag(x_224) == 0) { -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_134, 1); -lean_inc(x_135); -lean_dec(x_134); -x_136 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_136, 0, x_133); -x_12 = x_136; -x_13 = x_135; +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +lean_dec(x_224); +x_226 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_226, 0, x_147); +x_12 = x_226; +x_13 = x_225; goto block_20; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_133); +lean_object* x_227; lean_object* x_228; +x_227 = lean_ctor_get(x_224, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_224, 1); +lean_inc(x_228); +lean_dec(x_224); +x_148 = x_227; +x_149 = x_228; +goto block_159; +} +} +else +{ +lean_object* x_229; lean_object* x_230; +lean_dec(x_201); +lean_dec(x_163); +lean_dec(x_144); +x_229 = lean_ctor_get(x_220, 1); +lean_inc(x_229); +lean_dec(x_220); +x_230 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_230, 0, x_147); +x_12 = x_230; +x_13 = x_229; +goto block_20; +} +} +else +{ +lean_object* x_231; lean_object* x_232; +lean_dec(x_201); +lean_dec(x_163); +lean_dec(x_144); +x_231 = lean_ctor_get(x_220, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_220, 1); +lean_inc(x_232); +lean_dec(x_220); +x_148 = x_231; +x_149 = x_232; +goto block_159; +} +} +} +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; +lean_dec(x_144); +lean_dec(x_11); +x_237 = lean_ctor_get(x_162, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_162, 1); +lean_inc(x_238); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_239 = x_162; +} else { + lean_dec_ref(x_162); + x_239 = lean_box(0); +} +x_240 = l_Lean_Exception_isInterrupt(x_237); +if (x_240 == 0) +{ +lean_object* x_241; +lean_dec(x_239); +lean_inc(x_7); +lean_inc(x_6); +x_241 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_237, x_6, x_7, x_238); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +lean_dec(x_241); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_147); +x_12 = x_243; +x_13 = x_242; +goto block_20; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_147); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_137 = lean_ctor_get(x_134, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_134, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_139 = x_134; +x_244 = lean_ctor_get(x_241, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_241, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_246 = x_241; } else { - lean_dec_ref(x_134); - x_139 = lean_box(0); + lean_dec_ref(x_241); + x_246 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_247 = x_246; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; +} +} +else +{ +lean_object* x_248; +lean_dec(x_147); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +if (lean_is_scalar(x_239)) { + x_248 = lean_alloc_ctor(1, 2, 0); +} else { + x_248 = x_239; +} +lean_ctor_set(x_248, 0, x_237); +lean_ctor_set(x_248, 1, x_238); +return x_248; +} +} +block_159: +{ +uint8_t x_150; +x_150 = l_Lean_Exception_isInterrupt(x_148); +if (x_150 == 0) +{ +lean_object* x_151; +lean_inc(x_7); +lean_inc(x_6); +x_151 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_148, x_6, x_7, x_149); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_153 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_153, 0, x_147); +x_12 = x_153; +x_13 = x_152; +goto block_20; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_147); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_154 = lean_ctor_get(x_151, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_151, 1); +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); +} +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_156; +} +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_155); +return x_157; +} +} +else +{ +lean_object* x_158; +lean_dec(x_147); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_148); +lean_ctor_set(x_158, 1, x_149); +return x_158; } } } @@ -6075,7 +6236,7 @@ return x_15; } else { -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_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; uint8_t x_25; lean_object* x_26; lean_object* x_27; x_16 = lean_ctor_get(x_3, 0); x_17 = lean_ctor_get(x_3, 1); x_18 = lean_ctor_get(x_3, 2); @@ -6084,6 +6245,9 @@ x_20 = lean_ctor_get(x_3, 4); x_21 = lean_ctor_get(x_3, 5); x_22 = lean_ctor_get(x_3, 7); x_23 = lean_ctor_get(x_3, 8); +x_24 = lean_ctor_get(x_3, 9); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); @@ -6093,18 +6257,20 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_3); -x_24 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_24, 0, x_16); -lean_ctor_set(x_24, 1, x_17); -lean_ctor_set(x_24, 2, x_18); -lean_ctor_set(x_24, 3, x_19); -lean_ctor_set(x_24, 4, x_20); -lean_ctor_set(x_24, 5, x_21); -lean_ctor_set(x_24, 6, x_12); -lean_ctor_set(x_24, 7, x_22); -lean_ctor_set(x_24, 8, x_23); -x_25 = l_Lean_Elab_applyDerivingHandlers(x_7, x_2, x_8, x_24, x_4, x_11); -return x_25; +x_26 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_26, 0, x_16); +lean_ctor_set(x_26, 1, x_17); +lean_ctor_set(x_26, 2, x_18); +lean_ctor_set(x_26, 3, x_19); +lean_ctor_set(x_26, 4, x_20); +lean_ctor_set(x_26, 5, x_21); +lean_ctor_set(x_26, 6, x_12); +lean_ctor_set(x_26, 7, x_22); +lean_ctor_set(x_26, 8, x_23); +lean_ctor_set(x_26, 9, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*10, x_25); +x_27 = l_Lean_Elab_applyDerivingHandlers(x_7, x_2, x_8, x_26, x_4, x_11); +return x_27; } } } diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index ce80aef576..5d8c7c3554 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -44,6 +44,7 @@ static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInha static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__10; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lambda__3___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lambda__4(lean_object*, lean_object*, uint8_t, 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_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2605____closed__13; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__18; @@ -567,51 +568,57 @@ 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_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_28; lean_object* x_29; x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); -lean_dec(x_2); -x_15 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__3; -x_16 = lean_array_push(x_15, x_13); -x_17 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__2; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_15 = x_2; +} else { + lean_dec_ref(x_2); + x_15 = lean_box(0); +} +x_16 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__3; +x_17 = lean_array_push(x_16, x_13); +x_28 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__2; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_18 = l_Lean_Meta_mkAppM(x_17, x_16, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_18) == 0) +x_29 = l_Lean_Meta_mkAppM(x_28, x_17, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_19); -x_21 = l_Lean_Meta_isTypeCorrect(x_19, x_7, x_8, x_9, x_10, x_20); -if (lean_obj_tag(x_21) == 0) +lean_inc(x_30); +x_32 = l_Lean_Meta_isTypeCorrect(x_30, x_7, x_8, x_9, x_10, x_31); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -lean_dec(x_22); -if (x_23 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_19); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_3, x_25); -lean_dec(x_3); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_3, x_36); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -619,13 +626,12 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_26); lean_inc(x_14); lean_inc(x_1); -x_27 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg(x_1, x_14, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); -if (lean_obj_tag(x_27) == 0) +x_38 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg(x_1, x_14, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +if (lean_obj_tag(x_38) == 0) { -lean_dec(x_26); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -634,116 +640,59 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -return x_27; +return x_38; } else { -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, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_free_object(x_27); -lean_dec(x_29); -x_2 = x_14; -x_3 = x_26; -x_11 = x_30; -goto _start; -} -else -{ -lean_dec(x_26); -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_5); -lean_dec(x_4); -lean_dec(x_1); -return x_27; +lean_object* x_39; lean_object* x_40; +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_18 = x_39; +x_19 = x_40; +goto block_27; } } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -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 = l_Lean_Exception_isRuntime(x_33); -if (x_35 == 0) -{ -lean_dec(x_33); -x_2 = x_14; -x_3 = x_26; -x_11 = x_34; -goto _start; -} -else -{ -lean_object* x_37; -lean_dec(x_26); -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_5); -lean_dec(x_4); -lean_dec(x_1); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_34); -return x_37; -} -} -} -} -else -{ -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; uint8_t x_45; lean_object* x_46; -x_38 = lean_ctor_get(x_21, 1); -lean_inc(x_38); -lean_dec(x_21); -x_39 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__5; -x_40 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_39, x_9, x_10, x_38); -x_41 = lean_ctor_get(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; uint8_t x_47; uint8_t x_48; lean_object* x_49; +x_41 = lean_ctor_get(x_32, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -lean_inc(x_19); +lean_dec(x_32); +x_42 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__5; +x_43 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_42, x_9, x_10, x_41); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_30); lean_inc(x_14); lean_inc(x_1); lean_inc(x_4); lean_inc(x_3); -x_43 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2), 13, 5); -lean_closure_set(x_43, 0, x_3); -lean_closure_set(x_43, 1, x_4); -lean_closure_set(x_43, 2, x_1); -lean_closure_set(x_43, 3, x_14); -lean_closure_set(x_43, 4, x_19); -x_44 = 0; -x_45 = 0; +x_46 = lean_alloc_closure((void*)(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2), 13, 5); +lean_closure_set(x_46, 0, x_3); +lean_closure_set(x_46, 1, x_4); +lean_closure_set(x_46, 2, x_1); +lean_closure_set(x_46, 3, x_14); +lean_closure_set(x_46, 4, x_30); +x_47 = 0; +x_48 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_46 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_41, x_44, x_19, x_43, x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_42); -if (lean_obj_tag(x_46) == 0) +x_49 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_44, x_47, x_30, x_46, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_45); +if (lean_obj_tag(x_49) == 0) { +lean_dec(x_15); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -754,232 +703,72 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_46; +return x_49; } else { -uint8_t x_47; -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_ctor_get(x_46, 1); -x_50 = l_Lean_Exception_isRuntime(x_48); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -lean_free_object(x_46); -lean_dec(x_48); -x_51 = lean_unsigned_to_nat(1u); -x_52 = lean_nat_add(x_3, x_51); -lean_dec(x_3); -x_2 = x_14; -x_3 = x_52; -x_11 = x_49; -goto _start; +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_18 = x_50; +x_19 = x_51; +goto block_27; } -else -{ -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_46; } } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_46, 0); -x_55 = lean_ctor_get(x_46, 1); -lean_inc(x_55); +lean_object* x_52; lean_object* x_53; +lean_dec(x_30); +x_52 = lean_ctor_get(x_32, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_32, 1); +lean_inc(x_53); +lean_dec(x_32); +x_18 = x_52; +x_19 = x_53; +goto block_27; +} +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_29, 0); lean_inc(x_54); -lean_dec(x_46); -x_56 = l_Lean_Exception_isRuntime(x_54); -if (x_56 == 0) +x_55 = lean_ctor_get(x_29, 1); +lean_inc(x_55); +lean_dec(x_29); +x_18 = x_54; +x_19 = x_55; +goto block_27; +} +block_27: { -lean_object* x_57; lean_object* x_58; -lean_dec(x_54); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_add(x_3, x_57); -lean_dec(x_3); -x_2 = x_14; -x_3 = x_58; -x_11 = x_55; -goto _start; -} -else +uint8_t x_20; +x_20 = l_Lean_Exception_isInterrupt(x_18); +if (x_20 == 0) { -lean_object* x_60; -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_54); -lean_ctor_set(x_60, 1, x_55); -return x_60; -} -} -} -} -} -else +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) { -uint8_t x_61; -lean_dec(x_19); -x_61 = !lean_is_exclusive(x_21); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_21, 0); -x_63 = lean_ctor_get(x_21, 1); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; -lean_free_object(x_21); -lean_dec(x_62); -x_65 = lean_unsigned_to_nat(1u); -x_66 = lean_nat_add(x_3, x_65); -lean_dec(x_3); -x_2 = x_14; -x_3 = x_66; -x_11 = x_63; -goto _start; -} -else -{ -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_21; -} -} -else -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_21, 0); -x_69 = lean_ctor_get(x_21, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_21); -x_70 = l_Lean_Exception_isRuntime(x_68); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; -lean_dec(x_68); -x_71 = lean_unsigned_to_nat(1u); -x_72 = lean_nat_add(x_3, x_71); -lean_dec(x_3); -x_2 = x_14; -x_3 = x_72; -x_11 = x_69; -goto _start; -} -else -{ -lean_object* x_74; -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_69); -return x_74; -} -} -} -} -else -{ -uint8_t x_75; -x_75 = !lean_is_exclusive(x_18); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_18, 0); -x_77 = lean_ctor_get(x_18, 1); -x_78 = l_Lean_Exception_isRuntime(x_76); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; -lean_free_object(x_18); -lean_dec(x_76); -x_79 = lean_unsigned_to_nat(1u); -x_80 = lean_nat_add(x_3, x_79); -lean_dec(x_3); -x_2 = x_14; -x_3 = x_80; -x_11 = x_77; -goto _start; -} -else -{ -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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_18; -} -} -else -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_18, 0); -x_83 = lean_ctor_get(x_18, 1); -lean_inc(x_83); -lean_inc(x_82); +lean_object* x_22; lean_object* x_23; lean_dec(x_18); -x_84 = l_Lean_Exception_isRuntime(x_82); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; -lean_dec(x_82); -x_85 = lean_unsigned_to_nat(1u); -x_86 = lean_nat_add(x_3, x_85); +lean_dec(x_15); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_3, x_22); lean_dec(x_3); x_2 = x_14; -x_3 = x_86; -x_11 = x_83; +x_3 = x_23; +x_11 = x_19; goto _start; } else { -lean_object* x_88; +lean_object* x_25; lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -990,11 +779,37 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_82); -lean_ctor_set(x_88, 1, x_83); -return x_88; +if (lean_is_scalar(x_15)) { + x_25 = lean_alloc_ctor(1, 2, 0); +} else { + x_25 = x_15; } +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_19); +return x_25; +} +} +else +{ +lean_object* x_26; +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_15)) { + x_26 = lean_alloc_ctor(1, 2, 0); +} else { + x_26 = x_15; +} +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_19); +return x_26; } } } diff --git a/stage0/stdlib/Lean/Elab/Deriving/Util.c b/stage0/stdlib/Lean/Elab/Deriving/Util.c index 3da635e898..60f74795da 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Util.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Util.c @@ -27,6 +27,7 @@ static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__1; static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__2; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkContext___closed__4; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1___closed__9; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkImplicitBinders___spec__1___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___boxed(lean_object**); @@ -1063,350 +1064,292 @@ x_19 = lean_unsigned_to_nat(0u); x_20 = lean_nat_dec_eq(x_6, x_19); if (x_20 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_29; lean_object* x_30; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_32; lean_object* x_33; x_21 = lean_unsigned_to_nat(1u); x_22 = lean_nat_sub(x_6, x_21); lean_dec(x_6); -x_29 = lean_nat_dec_lt(x_7, x_5); -if (x_29 == 0) +x_32 = lean_nat_dec_lt(x_7, x_5); +if (x_32 == 0) { -lean_object* x_108; lean_object* x_109; -x_108 = l_Lean_instInhabitedExpr; -x_109 = l___private_Init_GetElem_0__outOfBounds___rarg(x_108); -x_30 = x_109; -goto block_107; +lean_object* x_99; lean_object* x_100; +x_99 = l_Lean_instInhabitedExpr; +x_100 = l___private_Init_GetElem_0__outOfBounds___rarg(x_99); +x_33 = x_100; +goto block_98; } else { -lean_object* x_110; -x_110 = lean_array_fget(x_3, x_7); -x_30 = x_110; -goto block_107; +lean_object* x_101; +x_101 = lean_array_fget(x_3, x_7); +x_33 = x_101; +goto block_98; } -block_28: +block_31: { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); +uint8_t x_25; +x_25 = l_Lean_Exception_isInterrupt(x_23); +if (x_25 == 0) +{ +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_dec(x_23); -x_26 = lean_nat_add(x_7, x_9); +x_27 = lean_nat_add(x_7, x_9); lean_dec(x_7); x_6 = x_22; -x_7 = x_26; -x_10 = x_25; +x_7 = x_27; x_17 = x_24; goto _start; } -block_107: +else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__1; -x_32 = lean_array_push(x_31, x_30); +lean_object* x_29; +lean_dec(x_22); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_22); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_24); +return x_30; +} +} +block_98: +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__1; +x_35 = lean_array_push(x_34, x_33); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_1); -x_33 = l_Lean_Meta_mkAppM(x_1, x_32, x_13, x_14, x_15, x_16, x_17); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -x_36 = l_Lean_Meta_isTypeCorrect(x_34, x_13, x_14, x_15, x_16, x_35); +x_36 = l_Lean_Meta_mkAppM(x_1, x_35, x_13, x_14, x_15, x_16, x_17); if (lean_obj_tag(x_36) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_80; +lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec(x_36); -x_80 = lean_unbox(x_37); -lean_dec(x_37); -if (x_80 == 0) +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_39 = l_Lean_Meta_isTypeCorrect(x_37, x_13, x_14, x_15, x_16, x_38); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_81; -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_10); -x_23 = x_81; -x_24 = x_38; -goto block_28; -} -else -{ -lean_object* x_82; uint8_t x_83; -x_82 = lean_array_get_size(x_2); -x_83 = lean_nat_dec_lt(x_7, x_82); -lean_dec(x_82); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = l_Lean_instInhabitedName; -x_85 = l___private_Init_GetElem_0__outOfBounds___rarg(x_84); -x_39 = x_85; -goto block_79; -} -else -{ -lean_object* x_86; -x_86 = lean_array_fget(x_2, x_7); -x_39 = x_86; -goto block_79; -} -} -block_79: -{ -lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_15, 5); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_86; +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -x_41 = 0; -x_42 = l_Lean_SourceInfo_fromRef(x_40, x_41); -x_43 = lean_st_ref_get(x_16, x_38); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +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_86 = lean_unbox(x_40); +lean_dec(x_40); +if (x_86 == 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; 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; -x_45 = lean_ctor_get(x_43, 1); -x_46 = lean_ctor_get(x_43, 0); -lean_dec(x_46); -x_47 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__4; -lean_inc(x_42); -lean_ctor_set_tag(x_43, 2); -lean_ctor_set(x_43, 1, x_47); -lean_ctor_set(x_43, 0, x_42); -x_48 = l_Lean_Elab_Deriving_mkInductiveApp___closed__13; -lean_inc(x_4); -lean_inc(x_42); -x_49 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_49, 0, x_42); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set(x_49, 2, x_4); -x_50 = lean_box(0); -lean_inc(x_1); -x_51 = l_Lean_mkCIdentFrom(x_50, x_1, x_41); -x_52 = lean_mk_syntax_ident(x_39); -lean_inc(x_42); -x_53 = l_Lean_Syntax_node1(x_42, x_48, x_52); -x_54 = l_Lean_Elab_Deriving_mkInductiveApp___closed__8; -lean_inc(x_42); -x_55 = l_Lean_Syntax_node2(x_42, x_54, x_51, x_53); -x_56 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__5; -lean_inc(x_42); -x_57 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_57, 0, x_42); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__3; -x_59 = l_Lean_Syntax_node4(x_42, x_58, x_43, x_49, x_55, x_57); -x_60 = lean_array_push(x_10, x_59); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_23 = x_61; -x_24 = x_45; -goto block_28; +lean_object* x_87; +lean_dec(x_42); +x_87 = lean_nat_add(x_7, x_9); +lean_dec(x_7); +x_6 = x_22; +x_7 = x_87; +x_17 = x_41; +goto _start; } else { -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; -x_62 = lean_ctor_get(x_43, 1); -lean_inc(x_62); -lean_dec(x_43); -x_63 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__4; -lean_inc(x_42); -x_64 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_64, 0, x_42); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_Elab_Deriving_mkInductiveApp___closed__13; -lean_inc(x_4); -lean_inc(x_42); -x_66 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_66, 0, x_42); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_4); -x_67 = lean_box(0); -lean_inc(x_1); -x_68 = l_Lean_mkCIdentFrom(x_67, x_1, x_41); -x_69 = lean_mk_syntax_ident(x_39); -lean_inc(x_42); -x_70 = l_Lean_Syntax_node1(x_42, x_65, x_69); -x_71 = l_Lean_Elab_Deriving_mkInductiveApp___closed__8; -lean_inc(x_42); -x_72 = l_Lean_Syntax_node2(x_42, x_71, x_68, x_70); -x_73 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__5; -lean_inc(x_42); -x_74 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_74, 0, x_42); -lean_ctor_set(x_74, 1, x_73); -x_75 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__3; -x_76 = l_Lean_Syntax_node4(x_42, x_75, x_64, x_66, x_72, x_74); -x_77 = lean_array_push(x_10, x_76); -x_78 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_78, 0, x_77); -x_23 = x_78; -x_24 = x_62; -goto block_28; -} -} -} -else -{ -uint8_t x_87; -x_87 = !lean_is_exclusive(x_36); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_36, 0); -x_89 = lean_ctor_get(x_36, 1); -x_90 = l_Lean_Exception_isRuntime(x_88); +lean_object* x_89; uint8_t x_90; +x_89 = lean_array_get_size(x_2); +x_90 = lean_nat_dec_lt(x_7, x_89); +lean_dec(x_89); if (x_90 == 0) { -lean_object* x_91; -lean_free_object(x_36); -lean_dec(x_88); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_10); -x_23 = x_91; -x_24 = x_89; -goto block_28; +lean_object* x_91; lean_object* x_92; +x_91 = l_Lean_instInhabitedName; +x_92 = l___private_Init_GetElem_0__outOfBounds___rarg(x_91); +x_43 = x_92; +goto block_85; } else { -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_10); +lean_object* x_93; +x_93 = lean_array_fget(x_2, x_7); +x_43 = x_93; +goto block_85; +} +} +block_85: +{ +lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_44 = lean_ctor_get(x_15, 5); +lean_inc(x_44); +x_45 = 0; +x_46 = l_Lean_SourceInfo_fromRef(x_44, x_45); +x_47 = lean_st_ref_get(x_16, x_41); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +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; +x_49 = lean_ctor_get(x_47, 1); +x_50 = lean_ctor_get(x_47, 0); +lean_dec(x_50); +x_51 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__4; +lean_inc(x_46); +lean_ctor_set_tag(x_47, 2); +lean_ctor_set(x_47, 1, x_51); +lean_ctor_set(x_47, 0, x_46); +x_52 = l_Lean_Elab_Deriving_mkInductiveApp___closed__13; +lean_inc(x_4); +lean_inc(x_46); +x_53 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_53, 0, x_46); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_53, 2, x_4); +x_54 = lean_box(0); +lean_inc(x_1); +x_55 = l_Lean_mkCIdentFrom(x_54, x_1, x_45); +x_56 = lean_mk_syntax_ident(x_43); +lean_inc(x_46); +x_57 = l_Lean_Syntax_node1(x_46, x_52, x_56); +x_58 = l_Lean_Elab_Deriving_mkInductiveApp___closed__8; +lean_inc(x_46); +x_59 = l_Lean_Syntax_node2(x_46, x_58, x_55, x_57); +x_60 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__5; +lean_inc(x_46); +if (lean_is_scalar(x_42)) { + x_61 = lean_alloc_ctor(2, 2, 0); +} else { + x_61 = x_42; + lean_ctor_set_tag(x_61, 2); +} +lean_ctor_set(x_61, 0, x_46); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__3; +x_63 = l_Lean_Syntax_node4(x_46, x_62, x_47, x_53, x_59, x_61); +x_64 = lean_array_push(x_10, x_63); +x_65 = lean_nat_add(x_7, x_9); lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -return x_36; +x_6 = x_22; +x_7 = x_65; +x_10 = x_64; +x_17 = x_49; +goto _start; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_67 = lean_ctor_get(x_47, 1); +lean_inc(x_67); +lean_dec(x_47); +x_68 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__4; +lean_inc(x_46); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_46); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_Elab_Deriving_mkInductiveApp___closed__13; +lean_inc(x_4); +lean_inc(x_46); +x_71 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_71, 0, x_46); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_71, 2, x_4); +x_72 = lean_box(0); +lean_inc(x_1); +x_73 = l_Lean_mkCIdentFrom(x_72, x_1, x_45); +x_74 = lean_mk_syntax_ident(x_43); +lean_inc(x_46); +x_75 = l_Lean_Syntax_node1(x_46, x_70, x_74); +x_76 = l_Lean_Elab_Deriving_mkInductiveApp___closed__8; +lean_inc(x_46); +x_77 = l_Lean_Syntax_node2(x_46, x_76, x_73, x_75); +x_78 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__5; +lean_inc(x_46); +if (lean_is_scalar(x_42)) { + x_79 = lean_alloc_ctor(2, 2, 0); +} else { + x_79 = x_42; + lean_ctor_set_tag(x_79, 2); +} +lean_ctor_set(x_79, 0, x_46); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___closed__3; +x_81 = l_Lean_Syntax_node4(x_46, x_80, x_69, x_71, x_77, x_79); +x_82 = lean_array_push(x_10, x_81); +x_83 = lean_nat_add(x_7, x_9); +lean_dec(x_7); +x_6 = x_22; +x_7 = x_83; +x_10 = x_82; +x_17 = x_67; +goto _start; +} } } else { -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = lean_ctor_get(x_36, 0); -x_93 = lean_ctor_get(x_36, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_39, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_39, 1); +lean_inc(x_95); +lean_dec(x_39); +x_23 = x_94; +x_24 = x_95; +goto block_31; +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_36, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_36, 1); +lean_inc(x_97); lean_dec(x_36); -x_94 = l_Lean_Exception_isRuntime(x_92); -if (x_94 == 0) -{ -lean_object* x_95; -lean_dec(x_92); -x_95 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_95, 0, x_10); -x_23 = x_95; -x_24 = x_93; -goto block_28; -} -else -{ -lean_object* x_96; -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_92); -lean_ctor_set(x_96, 1, x_93); -return x_96; -} +x_23 = x_96; +x_24 = x_97; +goto block_31; } } } else { -uint8_t x_97; -x_97 = !lean_is_exclusive(x_33); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = lean_ctor_get(x_33, 0); -x_99 = lean_ctor_get(x_33, 1); -x_100 = l_Lean_Exception_isRuntime(x_98); -if (x_100 == 0) -{ -lean_object* x_101; -lean_free_object(x_33); -lean_dec(x_98); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_10); -x_23 = x_101; -x_24 = x_99; -goto block_28; -} -else -{ -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -return x_33; -} -} -else -{ -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_ctor_get(x_33, 0); -x_103 = lean_ctor_get(x_33, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_33); -x_104 = l_Lean_Exception_isRuntime(x_102); -if (x_104 == 0) -{ -lean_object* x_105; -lean_dec(x_102); -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_10); -x_23 = x_105; -x_24 = x_103; -goto block_28; -} -else -{ -lean_object* x_106; -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_102); -lean_ctor_set(x_106, 1, x_103); -return x_106; -} -} -} -} -} -else -{ -lean_object* x_111; +lean_object* x_102; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -1415,15 +1358,15 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_10); -lean_ctor_set(x_111, 1, x_17); -return x_111; +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_10); +lean_ctor_set(x_102, 1, x_17); +return x_102; } } else { -lean_object* x_112; +lean_object* x_103; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -1432,10 +1375,10 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_10); -lean_ctor_set(x_112, 1, x_17); -return x_112; +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_10); +lean_ctor_set(x_103, 1, x_17); +return x_103; } } } diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 988ed4ad2c..0ee70e03e7 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -149,6 +149,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_tryCatchPred___boxed(le static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetElseToCode___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeq___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__3; @@ -1678,7 +1679,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabLiftMethod___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) { _start: { -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; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); x_12 = lean_ctor_get(x_7, 2); @@ -1690,8 +1691,11 @@ x_17 = lean_ctor_get(x_7, 7); x_18 = lean_ctor_get(x_7, 8); x_19 = lean_ctor_get(x_7, 9); x_20 = lean_ctor_get(x_7, 10); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = l_Lean_replaceRef(x_1, x_15); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -1702,22 +1706,24 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); -lean_dec(x_23); -return x_24; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_2, x_3, x_4, x_5, x_6, x_25, x_8, x_9); +lean_dec(x_25); +return x_26; } } static lean_object* _init_l_Lean_Elab_Term_elabLiftMethod___closed__1() { @@ -3212,29 +3218,42 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_17, 1); lean_inc(x_23); lean_dec(x_17); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; -lean_dec(x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_16); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -else +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) { lean_object* x_26; -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_22); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_16); lean_ctor_set(x_26, 1, x_23); return x_26; } +else +{ +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_23); +return x_27; } } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_23); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -3242,46 +3261,59 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_27 = lean_ctor_get(x_13, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); +x_29 = lean_ctor_get(x_13, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); lean_dec(x_13); -x_29 = l_Lean_Exception_isRuntime(x_27); -if (x_29 == 0) +x_31 = l_Lean_Exception_isInterrupt(x_29); +if (x_31 == 0) { -lean_object* x_30; lean_object* x_31; -lean_dec(x_27); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_28); -return x_31; -} -else -{ -lean_object* x_32; -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_28); -return x_32; -} -} -} -else +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) { lean_object* x_33; lean_object* x_34; +lean_dec(x_29); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +return x_34; +} +else +{ +lean_object* x_35; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_29); +lean_ctor_set(x_35, 1, x_30); +return x_35; +} +} +else +{ +lean_object* x_36; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_29); +lean_ctor_set(x_36, 1, x_30); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; 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_33 = lean_box(0); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_7); -return x_34; +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_7); +return x_38; } } } @@ -8945,7 +8977,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_mkJmp___spec__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) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -8968,33 +9000,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_mkJmp___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_mkJmp___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_mkJmp___spec__7___closed__1() { @@ -9726,7 +9763,7 @@ return x_64; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___at_Lean_Elab_Term_Do_pullExitPointsAux___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) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_11 = lean_ctor_get(x_8, 0); x_12 = lean_ctor_get(x_8, 1); x_13 = lean_ctor_get(x_8, 2); @@ -9738,8 +9775,11 @@ x_18 = lean_ctor_get(x_8, 7); x_19 = lean_ctor_get(x_8, 8); x_20 = lean_ctor_get(x_8, 9); x_21 = lean_ctor_get(x_8, 10); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_25 = l_Lean_replaceRef(x_1, x_16); +lean_inc(x_23); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -9750,29 +9790,31 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_mkAuxDeclFor___at_Lean_Elab_Term_Do_pullExitPointsAux___spec__1___lambda__1), 10, 7); -lean_closure_set(x_25, 0, x_1); -lean_closure_set(x_25, 1, x_2); -lean_closure_set(x_25, 2, x_3); -lean_closure_set(x_25, 3, x_4); -lean_closure_set(x_25, 4, x_5); -lean_closure_set(x_25, 5, x_6); -lean_closure_set(x_25, 6, x_7); -x_26 = l_Lean_Core_withFreshMacroScope___rarg(x_25, x_24, x_9, x_10); -return x_26; +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_mkAuxDeclFor___at_Lean_Elab_Term_Do_pullExitPointsAux___spec__1___lambda__1), 10, 7); +lean_closure_set(x_27, 0, x_1); +lean_closure_set(x_27, 1, x_2); +lean_closure_set(x_27, 2, x_3); +lean_closure_set(x_27, 3, x_4); +lean_closure_set(x_27, 4, x_5); +lean_closure_set(x_27, 5, x_6); +lean_closure_set(x_27, 6, x_7); +x_28 = l_Lean_Core_withFreshMacroScope___rarg(x_27, x_26, x_9, x_10); +return x_28; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_pullExitPointsAux___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, lean_object* x_11, lean_object* x_12) { @@ -13711,7 +13753,7 @@ return x_19; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_concat___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -13734,31 +13776,36 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); lean_dec(x_7); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_Do_concat___spec__3(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_Do_concat___spec__3(x_2, x_3, x_4, x_5, x_6, x_25, x_8, x_9); lean_dec(x_8); -lean_dec(x_23); +lean_dec(x_25); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_24; +return x_26; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_concat___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) { @@ -13985,7 +14032,7 @@ return x_63; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_concat___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, 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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); x_12 = lean_ctor_get(x_7, 2); @@ -13997,8 +14044,11 @@ x_17 = lean_ctor_get(x_7, 7); x_18 = lean_ctor_get(x_7, 8); x_19 = lean_ctor_get(x_7, 9); x_20 = lean_ctor_get(x_7, 10); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = l_Lean_replaceRef(x_1, x_15); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -14009,22 +14059,24 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); -lean_dec(x_23); -return x_24; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_25, x_8, x_9); +lean_dec(x_25); +return x_26; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_concat___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) { @@ -14376,22 +14428,26 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_13); -x_16 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_14); +x_17 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_14); lean_dec(x_10); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Elab_Term_Quotation_getPatternVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -return x_18; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Elab_Term_Quotation_getPatternVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +return x_19; } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -14400,10 +14456,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_13); -lean_ctor_set(x_19, 1, x_14); -return x_19; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_14); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_10); +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_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_14); +return x_21; } } } @@ -14444,22 +14517,26 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_13); -x_16 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_14); +x_17 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_14); lean_dec(x_10); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Elab_Term_Quotation_getPatternsVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -return x_18; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Elab_Term_Quotation_getPatternsVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +return x_19; } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -14467,10 +14544,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_13); -lean_ctor_set(x_19, 1, x_14); -return x_19; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_14); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_10); +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_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_14); +return x_21; } } } @@ -29240,7 +29333,7 @@ goto _start; } 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; 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; 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_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; uint8_t 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; lean_object* x_49; lean_dec(x_19); x_24 = lean_simp_macro_scopes(x_18); x_25 = l_Lean_MessageData_ofName(x_24); @@ -29263,9 +29356,12 @@ x_37 = lean_ctor_get(x_11, 7); x_38 = lean_ctor_get(x_11, 8); x_39 = lean_ctor_get(x_11, 9); x_40 = lean_ctor_get(x_11, 10); -x_41 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_42 = l_Lean_replaceRef(x_16, x_35); +x_41 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_42 = lean_ctor_get(x_11, 11); +x_43 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_44 = l_Lean_replaceRef(x_16, x_35); lean_dec(x_16); +lean_inc(x_42); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); @@ -29276,30 +29372,32 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); -x_43 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_43, 0, x_30); -lean_ctor_set(x_43, 1, x_31); -lean_ctor_set(x_43, 2, x_32); -lean_ctor_set(x_43, 3, x_33); -lean_ctor_set(x_43, 4, x_34); -lean_ctor_set(x_43, 5, x_42); -lean_ctor_set(x_43, 6, x_36); -lean_ctor_set(x_43, 7, x_37); -lean_ctor_set(x_43, 8, x_38); -lean_ctor_set(x_43, 9, x_39); -lean_ctor_set(x_43, 10, x_40); -lean_ctor_set_uint8(x_43, sizeof(void*)*11, x_41); -x_44 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__1(x_29, x_6, x_7, x_8, x_9, x_10, x_43, x_12, x_13); -lean_dec(x_43); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(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); -return x_47; +x_45 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_45, 0, x_30); +lean_ctor_set(x_45, 1, x_31); +lean_ctor_set(x_45, 2, x_32); +lean_ctor_set(x_45, 3, x_33); +lean_ctor_set(x_45, 4, x_34); +lean_ctor_set(x_45, 5, x_44); +lean_ctor_set(x_45, 6, x_36); +lean_ctor_set(x_45, 7, x_37); +lean_ctor_set(x_45, 8, x_38); +lean_ctor_set(x_45, 9, x_39); +lean_ctor_set(x_45, 10, x_40); +lean_ctor_set(x_45, 11, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*12, x_41); +lean_ctor_set_uint8(x_45, sizeof(void*)*12 + 1, x_43); +x_46 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__1(x_29, x_6, x_7, x_8, x_9, x_10, x_45, x_12, x_13); +lean_dec(x_45); +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(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -29595,7 +29693,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__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) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -29618,33 +29716,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___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_object* x_9) { @@ -30761,7 +30864,7 @@ return x_16; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___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_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; 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -30784,34 +30887,39 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); lean_dec(x_9); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25, x_10, x_11); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27, x_10, x_11); lean_dec(x_10); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__10(lean_object* x_1, uint8_t x_2, uint8_t 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_object* x_13, lean_object* x_14, lean_object* x_15) { @@ -32947,7 +33055,7 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___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) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); x_12 = lean_ctor_get(x_8, 1); x_13 = lean_ctor_get(x_8, 2); @@ -32959,8 +33067,11 @@ x_18 = lean_ctor_get(x_8, 7); x_19 = lean_ctor_get(x_8, 8); x_20 = lean_ctor_get(x_8, 9); x_21 = lean_ctor_get(x_8, 10); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_25 = l_Lean_replaceRef(x_1, x_16); +lean_inc(x_23); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -32971,22 +33082,24 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); -lean_dec(x_24); -return x_25; +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); +lean_dec(x_26); +return x_27; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___closed__1() { @@ -33216,7 +33329,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode(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; 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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); x_12 = lean_ctor_get(x_8, 1); x_13 = lean_ctor_get(x_8, 2); @@ -33228,8 +33341,11 @@ x_18 = lean_ctor_get(x_8, 7); x_19 = lean_ctor_get(x_8, 8); x_20 = lean_ctor_get(x_8, 9); x_21 = lean_ctor_get(x_8, 10); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_25 = l_Lean_replaceRef(x_1, x_16); +lean_inc(x_23); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -33240,104 +33356,106 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); -if (lean_obj_tag(x_25) == 0) +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_unsigned_to_nat(1u); -x_28 = l_Lean_Syntax_getArg(x_1, x_27); -x_29 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___closed__1; -x_30 = l_Lean_Syntax_isNone(x_28); -if (x_30 == 0) +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_unsigned_to_nat(1u); +x_30 = l_Lean_Syntax_getArg(x_1, x_29); +x_31 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___closed__1; +x_32 = l_Lean_Syntax_isNone(x_30); +if (x_32 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_unsigned_to_nat(0u); -x_32 = l_Lean_Syntax_getArg(x_28, x_31); -lean_dec(x_28); -x_33 = lean_apply_9(x_29, x_32, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_26); -return x_33; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_Syntax_getArg(x_30, x_33); +lean_dec(x_30); +x_35 = lean_apply_9(x_31, x_34, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_28); +return x_35; } else { -lean_object* x_34; lean_object* x_35; -lean_dec(x_28); -x_34 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___closed__2; +lean_object* x_36; lean_object* x_37; +lean_dec(x_30); +x_36 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___closed__2; lean_inc(x_9); -lean_inc(x_24); +lean_inc(x_26); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_35 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_34, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_26); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_36, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_28); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_apply_9(x_29, x_36, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_37); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_24); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_39 = lean_ctor_get(x_35, 0); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_35, 1); -lean_inc(x_40); -lean_dec(x_35); -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; -} -} +lean_dec(x_37); +x_40 = lean_apply_9(x_31, x_38, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_39); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_24); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_26); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_42 = lean_ctor_get(x_25, 0); +x_41 = lean_ctor_get(x_37, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_37, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_25, 1); -lean_inc(x_43); -lean_dec(x_25); -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; +lean_dec(x_37); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_26); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_44 = lean_ctor_get(x_27, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_27, 1); +lean_inc(x_45); +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; } } } @@ -33748,7 +33866,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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_object* x_10) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -33771,33 +33889,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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, lean_object* x_9) { @@ -34048,7 +34171,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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_object* x_9, lean_object* x_10) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -34071,33 +34194,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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_object* x_9) { @@ -34466,7 +34594,7 @@ return x_11; } else { -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; uint8_t x_25; uint8_t x_26; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; x_12 = lean_ctor_get(x_1, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_1, 1); @@ -34494,322 +34622,327 @@ x_23 = lean_ctor_get(x_7, 9); lean_inc(x_23); x_24 = lean_ctor_get(x_7, 10); lean_inc(x_24); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_26 = lean_nat_dec_eq(x_17, x_18); -if (x_26 == 0) +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +lean_inc(x_26); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_28 = lean_nat_dec_eq(x_17, x_18); +if (x_28 == 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_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_7); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_17, x_27); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_add(x_17, x_29); lean_dec(x_17); -x_29 = l_Lean_replaceRef(x_12, x_19); +x_31 = l_Lean_replaceRef(x_12, x_19); lean_dec(x_19); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_14); -lean_ctor_set(x_30, 1, x_15); -lean_ctor_set(x_30, 2, x_16); -lean_ctor_set(x_30, 3, x_28); -lean_ctor_set(x_30, 4, x_18); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_20); -lean_ctor_set(x_30, 7, x_21); -lean_ctor_set(x_30, 8, x_22); -lean_ctor_set(x_30, 9, x_23); -lean_ctor_set(x_30, 10, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_25); -x_31 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__2; -x_32 = l_Lean_Core_checkSystem(x_31, x_30, x_8, x_9); -if (lean_obj_tag(x_32) == 0) +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_14); +lean_ctor_set(x_32, 1, x_15); +lean_ctor_set(x_32, 2, x_16); +lean_ctor_set(x_32, 3, x_30); +lean_ctor_set(x_32, 4, x_18); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_20); +lean_ctor_set(x_32, 7, x_21); +lean_ctor_set(x_32, 8, x_22); +lean_ctor_set(x_32, 9, x_23); +lean_ctor_set(x_32, 10, x_24); +lean_ctor_set(x_32, 11, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_27); +x_33 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__2; +x_34 = l_Lean_Core_checkSystem(x_33, x_32, x_8, x_9); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); lean_inc(x_12); -x_34 = lean_alloc_closure((void*)(l_Lean_Macro_expandMacro_x3f), 3, 1); -lean_closure_set(x_34, 0, x_12); +x_36 = lean_alloc_closure((void*)(l_Lean_Macro_expandMacro_x3f), 3, 1); +lean_closure_set(x_36, 0, x_12); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_35 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_34, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_33); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_36, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_35); +if (lean_obj_tag(x_37) == 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_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); lean_inc(x_12); -x_38 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f), 3, 1); -lean_closure_set(x_38, 0, x_12); +x_40 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f), 3, 1); +lean_closure_set(x_40, 0, x_12); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_39 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_38, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_37); -if (lean_obj_tag(x_39) == 0) +x_41 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_40, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 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_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); lean_inc(x_13); lean_inc(x_12); -x_42 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f), 4, 2); -lean_closure_set(x_42, 0, x_12); -lean_closure_set(x_42, 1, x_13); +x_44 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f), 4, 2); +lean_closure_set(x_44, 0, x_12); +lean_closure_set(x_44, 1, x_13); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_43 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_42, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_41); -if (lean_obj_tag(x_43) == 0) +x_45 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__6(x_44, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_43); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_46 = l_Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethod(x_12, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_45); +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; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_List_isEmpty___rarg(x_49); -if (x_51 == 0) +lean_dec(x_45); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_48 = l_Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethod(x_12, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_47); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_52); -x_54 = l_List_appendTR___rarg(x_49, x_53); -x_55 = l_List_appendTR___rarg(x_54, x_13); -x_1 = x_55; -x_7 = x_30; -x_9 = x_48; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = l_List_isEmpty___rarg(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_box(0); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_List_appendTR___rarg(x_51, x_55); +x_57 = l_List_appendTR___rarg(x_56, x_13); +x_1 = x_57; +x_7 = x_32; +x_9 = x_50; goto _start; } else { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_49); -lean_inc(x_50); -x_57 = l_Lean_Syntax_getKind(x_50); -x_58 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__12; -x_59 = lean_name_eq(x_57, x_58); -if (x_59 == 0) -{ -lean_object* x_60; uint8_t x_61; -x_60 = l_Lean_Elab_Term_Do_ToTerm_declToTerm___closed__2; -x_61 = lean_name_eq(x_57, x_60); +lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_dec(x_51); +lean_inc(x_52); +x_59 = l_Lean_Syntax_getKind(x_52); +x_60 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__12; +x_61 = lean_name_eq(x_59, x_60); if (x_61 == 0) { lean_object* x_62; uint8_t x_63; -x_62 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__6; -x_63 = lean_name_eq(x_57, x_62); +x_62 = l_Lean_Elab_Term_Do_ToTerm_declToTerm___closed__2; +x_63 = lean_name_eq(x_59, x_62); if (x_63 == 0) { lean_object* x_64; uint8_t x_65; -x_64 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__2; -x_65 = lean_name_eq(x_57, x_64); +x_64 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__6; +x_65 = lean_name_eq(x_59, x_64); if (x_65 == 0) { lean_object* x_66; uint8_t x_67; -x_66 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14; -x_67 = lean_name_eq(x_57, x_66); +x_66 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__2; +x_67 = lean_name_eq(x_59, x_66); if (x_67 == 0) { lean_object* x_68; uint8_t x_69; -x_68 = l_Lean_Elab_Term_Do_isMutableLet___closed__2; -x_69 = lean_name_eq(x_57, x_68); +x_68 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14; +x_69 = lean_name_eq(x_59, x_68); if (x_69 == 0) { lean_object* x_70; uint8_t x_71; -x_70 = l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___closed__6; -x_71 = lean_name_eq(x_57, x_70); +x_70 = l_Lean_Elab_Term_Do_isMutableLet___closed__2; +x_71 = lean_name_eq(x_59, x_70); if (x_71 == 0) { lean_object* x_72; uint8_t x_73; -x_72 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___closed__2; -x_73 = lean_name_eq(x_57, x_72); +x_72 = l_Lean_Elab_Term_Do_ToCodeBlock_checkLetArrowRHS___closed__6; +x_73 = lean_name_eq(x_59, x_72); if (x_73 == 0) { lean_object* x_74; uint8_t x_75; -x_74 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__4; -x_75 = lean_name_eq(x_57, x_74); +x_74 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___closed__2; +x_75 = lean_name_eq(x_59, x_74); if (x_75 == 0) { lean_object* x_76; uint8_t x_77; -x_76 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__6; -x_77 = lean_name_eq(x_57, x_76); +x_76 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__4; +x_77 = lean_name_eq(x_59, x_76); if (x_77 == 0) { lean_object* x_78; uint8_t x_79; -x_78 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__12; -x_79 = lean_name_eq(x_57, x_78); +x_78 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__6; +x_79 = lean_name_eq(x_59, x_78); if (x_79 == 0) { lean_object* x_80; uint8_t x_81; -x_80 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__8; -x_81 = lean_name_eq(x_57, x_80); +x_80 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__12; +x_81 = lean_name_eq(x_59, x_80); if (x_81 == 0) { lean_object* x_82; uint8_t x_83; -x_82 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__8; -x_83 = lean_name_eq(x_57, x_82); +x_82 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__8; +x_83 = lean_name_eq(x_59, x_82); if (x_83 == 0) { lean_object* x_84; uint8_t x_85; -x_84 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__14; -x_85 = lean_name_eq(x_57, x_84); +x_84 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__8; +x_85 = lean_name_eq(x_59, x_84); if (x_85 == 0) { lean_object* x_86; uint8_t x_87; -x_86 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__18; -x_87 = lean_name_eq(x_57, x_86); +x_86 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__14; +x_87 = lean_name_eq(x_59, x_86); if (x_87 == 0) { lean_object* x_88; uint8_t x_89; -x_88 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__20; -x_89 = lean_name_eq(x_57, x_88); +x_88 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__18; +x_89 = lean_name_eq(x_59, x_88); if (x_89 == 0) { lean_object* x_90; uint8_t x_91; -x_90 = l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__2; -x_91 = lean_name_eq(x_57, x_90); +x_90 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__20; +x_91 = lean_name_eq(x_59, x_90); if (x_91 == 0) { lean_object* x_92; uint8_t x_93; -x_92 = l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__4; -x_93 = lean_name_eq(x_57, x_92); +x_92 = l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__2; +x_93 = lean_name_eq(x_59, x_92); if (x_93 == 0) { lean_object* x_94; uint8_t x_95; -x_94 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; -x_95 = lean_name_eq(x_57, x_94); +x_94 = l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__4; +x_95 = lean_name_eq(x_59, x_94); if (x_95 == 0) { lean_object* x_96; uint8_t x_97; -x_96 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__7; -x_97 = lean_name_eq(x_57, x_96); +x_96 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; +x_97 = lean_name_eq(x_59, x_96); if (x_97 == 0) { -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_98; uint8_t x_99; +x_98 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__7; +x_99 = lean_name_eq(x_59, 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; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_dec(x_13); -x_98 = l_Lean_MessageData_ofName(x_57); -x_99 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__12; -x_100 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -x_101 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__14; +x_100 = l_Lean_MessageData_ofName(x_59); +x_101 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__12; x_102 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Lean_MessageData_ofSyntax(x_50); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +x_103 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__14; x_104 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_104, 0, x_102); lean_ctor_set(x_104, 1, x_103); -x_105 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2___closed__6; +x_105 = l_Lean_MessageData_ofSyntax(x_52); x_106 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_106, 0, x_104); lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3(x_106, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +x_107 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2___closed__6; +x_108 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3(x_108, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); lean_dec(x_8); -lean_dec(x_30); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_107; +return x_109; } else { -lean_object* x_108; lean_object* x_109; uint8_t x_110; -lean_dec(x_57); -x_108 = lean_unsigned_to_nat(0u); -x_109 = l_Lean_Syntax_getArg(x_50, x_108); -lean_dec(x_50); -x_110 = l_List_isEmpty___rarg(x_13); -if (x_110 == 0) +lean_object* x_110; lean_object* x_111; uint8_t x_112; +lean_dec(x_59); +x_110 = lean_unsigned_to_nat(0u); +x_111 = l_Lean_Syntax_getArg(x_52, x_110); +lean_dec(x_52); +x_112 = l_List_isEmpty___rarg(x_13); +if (x_112 == 0) { -lean_object* x_111; -x_111 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_111) == 0) +lean_object* x_113; +x_113 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +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_116 = l_Lean_Elab_Term_Do_mkSeq(x_111, x_114); +lean_dec(x_114); +x_117 = lean_alloc_ctor(0, 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_118; lean_object* x_119; lean_object* x_120; lean_dec(x_111); -x_114 = l_Lean_Elab_Term_Do_mkSeq(x_109, x_112); -lean_dec(x_112); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); -return x_115; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_109); -x_116 = lean_ctor_get(x_111, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_111, 1); -lean_inc(x_117); -lean_dec(x_111); -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; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } else { -lean_object* x_119; lean_object* x_120; -lean_dec(x_30); +lean_object* x_121; lean_object* x_122; +lean_dec(x_32); lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); @@ -34817,234 +34950,234 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_119 = l_Lean_Elab_Term_Do_mkTerminalAction(x_109); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_48); -return x_120; +x_121 = l_Lean_Elab_Term_Do_mkTerminalAction(x_111); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_50); +return x_122; } } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_57); -x_121 = l_Lean_Syntax_getArg(x_50, x_27); -lean_dec(x_50); -x_122 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_121); -x_123 = l_List_appendTR___rarg(x_122, x_13); -x_1 = x_123; -x_7 = x_30; -x_9 = x_48; +lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_59); +x_123 = l_Lean_Syntax_getArg(x_52, x_29); +lean_dec(x_52); +x_124 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_123); +x_125 = l_List_appendTR___rarg(x_124, x_13); +x_1 = x_125; +x_7 = x_32; +x_9 = x_50; goto _start; } } else { -lean_object* x_125; -lean_dec(x_57); -x_125 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_125) == 0) +lean_object* x_127; +lean_dec(x_59); +x_127 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = l_Lean_Elab_Term_Do_mkSeq(x_50, x_126); -lean_dec(x_126); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +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); +x_130 = l_Lean_Elab_Term_Do_mkSeq(x_52, x_128); +lean_dec(x_128); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_129); +return x_131; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_50); -x_130 = lean_ctor_get(x_125, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_125, 1); -lean_inc(x_131); -lean_dec(x_125); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_52); +x_132 = lean_ctor_get(x_127, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_127, 1); +lean_inc(x_133); +lean_dec(x_127); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +return x_134; } } } else { -lean_object* x_133; -lean_dec(x_57); -x_133 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_133) == 0) +lean_object* x_135; +lean_dec(x_59); +x_135 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_135) == 0) { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_136 = l_Lean_Elab_Term_Do_mkSeq(x_50, x_134); -lean_dec(x_134); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -return x_137; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = l_Lean_Elab_Term_Do_mkSeq(x_52, x_136); +lean_dec(x_136); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +return x_139; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_50); -x_138 = lean_ctor_get(x_133, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 1); -lean_inc(x_139); -lean_dec(x_133); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_52); +x_140 = lean_ctor_get(x_135, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_135, 1); +lean_inc(x_141); +lean_dec(x_135); +x_142 = lean_alloc_ctor(1, 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_141; -lean_dec(x_57); -x_141 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -lean_dec(x_30); +lean_object* x_143; +lean_dec(x_59); +x_143 = l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +lean_dec(x_32); lean_dec(x_13); -lean_dec(x_50); -return x_141; +lean_dec(x_52); +return x_143; } } else { -lean_object* x_142; -lean_dec(x_57); -x_142 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor(x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; lean_object* x_144; -x_143 = lean_ctor_get(x_142, 1); -lean_inc(x_143); -lean_dec(x_142); -x_144 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_143); -lean_dec(x_8); -lean_dec(x_30); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_13); +lean_object* x_144; +lean_dec(x_59); +x_144 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor(x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); if (lean_obj_tag(x_144) == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; +lean_object* x_145; lean_object* x_146; x_145 = lean_ctor_get(x_144, 1); lean_inc(x_145); lean_dec(x_144); -x_146 = l_Lean_Elab_Term_Do_mkContinue(x_50); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -return x_147; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_50); -x_148 = lean_ctor_get(x_144, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_144, 1); -lean_inc(x_149); -lean_dec(x_144); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); +x_146 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_145); lean_dec(x_8); +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_151 = lean_ctor_get(x_142, 0); +lean_dec(x_13); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); +x_148 = l_Lean_Elab_Term_Do_mkContinue(x_52); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_147); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_52); +x_150 = lean_ctor_get(x_146, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_146, 1); lean_inc(x_151); -x_152 = lean_ctor_get(x_142, 1); -lean_inc(x_152); -lean_dec(x_142); -x_153 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -return x_153; -} +lean_dec(x_146); +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 { -lean_object* x_154; -lean_dec(x_57); -x_154 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor(x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_154) == 0) -{ -lean_object* x_155; lean_object* x_156; -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_155); +lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); lean_dec(x_8); -lean_dec(x_30); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_13); +x_153 = lean_ctor_get(x_144, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_144, 1); +lean_inc(x_154); +lean_dec(x_144); +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; +lean_dec(x_59); +x_156 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor(x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); if (lean_obj_tag(x_156) == 0) { -lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_object* x_157; lean_object* x_158; x_157 = lean_ctor_get(x_156, 1); lean_inc(x_157); lean_dec(x_156); -x_158 = l_Lean_Elab_Term_Do_mkBreak(x_50); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_157); -return x_159; +x_158 = l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_157); +lean_dec(x_8); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_13); +if (lean_obj_tag(x_158) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Elab_Term_Do_mkBreak(x_52); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_159); +return x_161; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_50); -x_160 = lean_ctor_get(x_156, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_156, 1); -lean_inc(x_161); -lean_dec(x_156); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_52); +x_162 = lean_ctor_get(x_158, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_158, 1); +lean_inc(x_163); +lean_dec(x_158); +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; } } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_50); -lean_dec(x_30); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_52); +lean_dec(x_32); lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); @@ -35052,298 +35185,275 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_163 = lean_ctor_get(x_154, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_154, 1); -lean_inc(x_164); -lean_dec(x_154); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -return x_165; -} -} -} -else -{ -lean_object* x_166; -lean_dec(x_57); -x_166 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -return x_166; -} -} -else -{ -lean_object* x_167; -lean_dec(x_57); -x_167 = l_Lean_Elab_Term_Do_ToCodeBlock_doMatchExprToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +x_165 = lean_ctor_get(x_156, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_156, 1); +lean_inc(x_166); +lean_dec(x_156); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); return x_167; } } +} else { lean_object* x_168; -lean_dec(x_57); -x_168 = l_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +lean_dec(x_59); +x_168 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); return x_168; } } else { -lean_object* x_169; lean_object* x_170; -lean_dec(x_57); -x_169 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode), 10, 7); -lean_closure_set(x_169, 0, x_50); -lean_closure_set(x_169, 1, x_13); -lean_closure_set(x_169, 2, x_2); -lean_closure_set(x_169, 3, x_3); -lean_closure_set(x_169, 4, x_4); -lean_closure_set(x_169, 5, x_5); -lean_closure_set(x_169, 6, x_6); -x_170 = l_Lean_Core_withFreshMacroScope___rarg(x_169, x_30, x_8, x_48); +lean_object* x_169; +lean_dec(x_59); +x_169 = l_Lean_Elab_Term_Do_ToCodeBlock_doMatchExprToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +return x_169; +} +} +else +{ +lean_object* x_170; +lean_dec(x_59); +x_170 = l_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); return x_170; } } else { -lean_object* x_171; -lean_dec(x_57); -x_171 = l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -return x_171; -} -} -else -{ -lean_object* x_172; -lean_dec(x_57); -x_172 = l_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +lean_object* x_171; lean_object* x_172; +lean_dec(x_59); +x_171 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode), 10, 7); +lean_closure_set(x_171, 0, x_52); +lean_closure_set(x_171, 1, x_13); +lean_closure_set(x_171, 2, x_2); +lean_closure_set(x_171, 3, x_3); +lean_closure_set(x_171, 4, x_4); +lean_closure_set(x_171, 5, x_5); +lean_closure_set(x_171, 6, x_6); +x_172 = l_Lean_Core_withFreshMacroScope___rarg(x_171, x_32, x_8, x_50); return x_172; } } else { lean_object* x_173; -lean_dec(x_57); -x_173 = l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +lean_dec(x_59); +x_173 = l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); return x_173; } } else { lean_object* x_174; -lean_dec(x_57); -x_174 = l_Lean_Elab_Term_Do_ToCodeBlock_doLetElseToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +lean_dec(x_59); +x_174 = l_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); return x_174; } } else { lean_object* x_175; -lean_dec(x_57); -x_175 = l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode(x_50, x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_48); +lean_dec(x_59); +x_175 = l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); return x_175; } } else { lean_object* x_176; -lean_dec(x_57); +lean_dec(x_59); +x_176 = l_Lean_Elab_Term_Do_ToCodeBlock_doLetElseToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +return x_176; +} +} +else +{ +lean_object* x_177; +lean_dec(x_59); +x_177 = l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode(x_52, x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +return x_177; +} +} +else +{ +lean_object* x_178; +lean_dec(x_59); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_176 = l_Lean_Elab_Term_Do_getDoReassignVars(x_50, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_176) == 0) +x_178 = l_Lean_Elab_Term_Do_getDoReassignVars(x_52, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_178) == 0) { -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_179 = l_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable(x_177, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_178); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; lean_object* x_181; -x_180 = lean_ctor_get(x_179, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); lean_inc(x_180); -lean_dec(x_179); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_181 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_180); +lean_dec(x_178); +x_181 = l_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable(x_179, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_180); if (lean_obj_tag(x_181) == 0) { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_181, 0); +lean_object* x_182; lean_object* x_183; +x_182 = lean_ctor_get(x_181, 1); lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); lean_dec(x_181); -x_184 = l_Lean_Elab_Term_Do_mkReassignCore(x_177, x_50, x_182, x_3, x_4, x_5, x_6, x_30, x_8, x_183); -return x_184; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_177); -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_185 = lean_ctor_get(x_181, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_181, 1); -lean_inc(x_186); -lean_dec(x_181); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; -} -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_177); -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_188 = lean_ctor_get(x_179, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_179, 1); -lean_inc(x_189); -lean_dec(x_179); -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; -} -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_191 = lean_ctor_get(x_176, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_176, 1); -lean_inc(x_192); -lean_dec(x_176); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -return x_193; -} -} -} -else -{ -lean_object* x_194; -lean_dec(x_57); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_194 = l_Lean_Elab_Term_Do_getDoLetRecVars(x_50, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_194) == 0) +x_183 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_182); +if (lean_obj_tag(x_183) == 0) { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 1); -lean_inc(x_196); -lean_dec(x_194); -x_197 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_195, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_196); -if (lean_obj_tag(x_197) == 0) +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = l_Lean_Elab_Term_Do_mkReassignCore(x_179, x_52, x_184, x_3, x_4, x_5, x_6, x_32, x_8, x_185); +return x_186; +} +else { -lean_object* x_198; lean_object* x_199; -x_198 = lean_ctor_get(x_197, 1); +lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_179); +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_187 = lean_ctor_get(x_183, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_183, 1); +lean_inc(x_188); +lean_dec(x_183); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; +} +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_179); +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); +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_190 = lean_ctor_get(x_181, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_181, 1); +lean_inc(x_191); +lean_dec(x_181); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; +} +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); +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_193 = lean_ctor_get(x_178, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_178, 1); +lean_inc(x_194); +lean_dec(x_178); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; +} +} +} +else +{ +lean_object* x_196; +lean_dec(x_59); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_196 = l_Lean_Elab_Term_Do_getDoLetRecVars(x_52, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_196) == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); lean_inc(x_198); -lean_dec(x_197); -x_199 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_198); +lean_dec(x_196); +x_199 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_197, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_198); if (lean_obj_tag(x_199) == 0) { -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_200 = lean_ctor_get(x_199, 0); +lean_object* x_200; lean_object* x_201; +x_200 = lean_ctor_get(x_199, 1); lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); lean_dec(x_199); -x_202 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_195, x_50, x_200); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +x_201 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_200); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_197, x_52, x_202); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +return x_205; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_195); -lean_dec(x_50); -x_204 = lean_ctor_get(x_199, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_199, 1); -lean_inc(x_205); -lean_dec(x_199); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; -} -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_195); -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_207 = lean_ctor_get(x_197, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_197, 1); -lean_inc(x_208); +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_dec(x_197); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -return x_209; +lean_dec(x_52); +x_206 = lean_ctor_get(x_201, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_201, 1); +lean_inc(x_207); +lean_dec(x_201); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_50); -lean_dec(x_30); +lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_197); +lean_dec(x_52); +lean_dec(x_32); lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); @@ -35351,104 +35461,104 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_210 = lean_ctor_get(x_194, 0); +x_209 = lean_ctor_get(x_199, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_199, 1); lean_inc(x_210); -x_211 = lean_ctor_get(x_194, 1); -lean_inc(x_211); -lean_dec(x_194); -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; +lean_dec(x_199); +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +return x_211; +} +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); +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_212 = lean_ctor_get(x_196, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_196, 1); +lean_inc(x_213); +lean_dec(x_196); +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_213; -lean_dec(x_57); +lean_object* x_215; +lean_dec(x_59); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_213 = l_Lean_Elab_Term_Do_getDoHaveVars(x_50, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_213) == 0) +x_215 = l_Lean_Elab_Term_Do_getDoHaveVars(x_52, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_215) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; -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 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_214, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_215); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; -x_217 = lean_ctor_get(x_216, 1); +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); lean_inc(x_217); -lean_dec(x_216); -x_218 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_217); +lean_dec(x_215); +x_218 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_216, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_217); if (lean_obj_tag(x_218) == 0) { -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_219 = lean_ctor_get(x_218, 0); +lean_object* x_219; lean_object* x_220; +x_219 = lean_ctor_get(x_218, 1); lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); lean_dec(x_218); -x_221 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_214, x_50, x_219); -x_222 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_220); -return x_222; +x_220 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_219); +if (lean_obj_tag(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_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_216, x_52, x_221); +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_222); +return x_224; } else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_214); -lean_dec(x_50); -x_223 = lean_ctor_get(x_218, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_218, 1); -lean_inc(x_224); -lean_dec(x_218); -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; lean_object* x_227; lean_object* x_228; -lean_dec(x_214); -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_226 = lean_ctor_get(x_216, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_216, 1); -lean_inc(x_227); +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_dec(x_216); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; +lean_dec(x_52); +x_225 = lean_ctor_get(x_220, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +lean_dec(x_220); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; } } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_50); -lean_dec(x_30); +lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_216); +lean_dec(x_52); +lean_dec(x_32); lean_dec(x_13); lean_dec(x_8); lean_dec(x_6); @@ -35456,305 +35566,329 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_229 = lean_ctor_get(x_213, 0); +x_228 = lean_ctor_get(x_218, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_218, 1); lean_inc(x_229); -x_230 = lean_ctor_get(x_213, 1); -lean_inc(x_230); -lean_dec(x_213); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -return x_231; +lean_dec(x_218); +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_228); +lean_ctor_set(x_230, 1, x_229); +return x_230; +} +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); +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_231 = lean_ctor_get(x_215, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_215, 1); +lean_inc(x_232); +lean_dec(x_215); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +return x_233; } } } else { -lean_object* x_232; -lean_dec(x_57); +lean_object* x_234; +lean_dec(x_59); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_232 = l_Lean_Elab_Term_Do_getDoLetVars(x_50, x_3, x_4, x_5, x_6, x_30, x_8, x_48); -if (lean_obj_tag(x_232) == 0) +x_234 = l_Lean_Elab_Term_Do_getDoLetVars(x_52, x_3, x_4, x_5, x_6, x_32, x_8, x_50); +if (lean_obj_tag(x_234) == 0) { -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -x_235 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_233, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_234); -if (lean_obj_tag(x_235) == 0) -{ -lean_object* x_236; uint8_t x_237; lean_object* x_238; lean_object* x_239; -x_236 = lean_ctor_get(x_235, 1); +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); lean_inc(x_236); +lean_dec(x_234); +x_237 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_235, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_236); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; +x_238 = lean_ctor_get(x_237, 1); +lean_inc(x_238); +lean_dec(x_237); +lean_inc(x_52); +x_239 = l_Lean_Elab_Term_Do_isMutableLet(x_52); +x_240 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode), 9, 1); +lean_closure_set(x_240, 0, x_13); +lean_inc(x_235); +x_241 = l_Lean_Elab_Term_Do_ToCodeBlock_withNewMutableVars___rarg(x_235, x_239, x_240, x_2, x_3, x_4, x_5, x_6, x_32, x_8, x_238); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_235, x_52, x_242); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +return x_245; +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_dec(x_235); -lean_inc(x_50); -x_237 = l_Lean_Elab_Term_Do_isMutableLet(x_50); -x_238 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode), 9, 1); -lean_closure_set(x_238, 0, x_13); -lean_inc(x_233); -x_239 = l_Lean_Elab_Term_Do_ToCodeBlock_withNewMutableVars___rarg(x_233, x_237, x_238, x_2, x_3, x_4, x_5, x_6, x_30, x_8, x_236); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -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 = l_Lean_Elab_Term_Do_mkVarDeclCore(x_233, x_50, x_240); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_241); -return x_243; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_dec(x_233); -lean_dec(x_50); -x_244 = lean_ctor_get(x_239, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_239, 1); -lean_inc(x_245); -lean_dec(x_239); -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; -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_233); -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_247 = lean_ctor_get(x_235, 0); +lean_dec(x_52); +x_246 = lean_ctor_get(x_241, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_241, 1); lean_inc(x_247); -x_248 = lean_ctor_get(x_235, 1); -lean_inc(x_248); +lean_dec(x_241); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_246); +lean_ctor_set(x_248, 1, x_247); +return x_248; +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_dec(x_235); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -return x_249; -} -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_50); -lean_dec(x_30); -lean_dec(x_13); -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_250 = lean_ctor_get(x_232, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_232, 1); -lean_inc(x_251); -lean_dec(x_232); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_251); -return x_252; -} -} -} -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; -lean_dec(x_30); -lean_dec(x_13); -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_253 = lean_ctor_get(x_46, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_46, 1); -lean_inc(x_254); -lean_dec(x_46); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_253); -lean_ctor_set(x_255, 1, x_254); -return x_255; -} -} -else -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_13); -lean_dec(x_12); -x_256 = lean_ctor_get(x_43, 1); -lean_inc(x_256); -lean_dec(x_43); -x_257 = lean_ctor_get(x_44, 0); -lean_inc(x_257); -lean_dec(x_44); -x_258 = lean_box(0); -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -x_1 = x_259; -x_7 = x_30; -x_9 = x_256; -goto _start; -} -} -else -{ -lean_object* x_261; lean_object* x_262; lean_object* x_263; -lean_dec(x_30); -lean_dec(x_13); -lean_dec(x_12); -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_261 = lean_ctor_get(x_43, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_43, 1); -lean_inc(x_262); -lean_dec(x_43); -x_263 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_263, 0, x_261); -lean_ctor_set(x_263, 1, x_262); -return x_263; -} -} -else -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; -lean_dec(x_12); -x_264 = lean_ctor_get(x_39, 1); -lean_inc(x_264); -lean_dec(x_39); -x_265 = lean_ctor_get(x_40, 0); -lean_inc(x_265); -lean_dec(x_40); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_13); -x_1 = x_266; -x_7 = x_30; -x_9 = x_264; -goto _start; -} -} -else -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; -lean_dec(x_30); -lean_dec(x_13); -lean_dec(x_12); -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_268 = lean_ctor_get(x_39, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_39, 1); -lean_inc(x_269); -lean_dec(x_39); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_268); -lean_ctor_set(x_270, 1, x_269); -return x_270; -} -} -else -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; -lean_dec(x_12); -x_271 = lean_ctor_get(x_35, 1); -lean_inc(x_271); -lean_dec(x_35); -x_272 = lean_ctor_get(x_36, 0); -lean_inc(x_272); -lean_dec(x_36); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_13); -x_1 = x_273; -x_7 = x_30; -x_9 = x_271; -goto _start; -} -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_30); -lean_dec(x_13); -lean_dec(x_12); -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_275 = lean_ctor_get(x_35, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_35, 1); -lean_inc(x_276); -lean_dec(x_35); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_276); -return x_277; -} -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_dec(x_30); -lean_dec(x_13); -lean_dec(x_12); -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_278 = lean_ctor_get(x_32, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_32, 1); -lean_inc(x_279); +lean_dec(x_52); lean_dec(x_32); -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; +lean_dec(x_13); +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_249 = lean_ctor_get(x_237, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_237, 1); +lean_inc(x_250); +lean_dec(x_237); +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; } } else { -lean_object* x_281; +lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_52); +lean_dec(x_32); +lean_dec(x_13); +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_252 = lean_ctor_get(x_234, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_234, 1); +lean_inc(x_253); +lean_dec(x_234); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +return x_254; +} +} +} +} +else +{ +lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_32); +lean_dec(x_13); +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_255 = lean_ctor_get(x_48, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_48, 1); +lean_inc(x_256); +lean_dec(x_48); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +return x_257; +} +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_13); +lean_dec(x_12); +x_258 = lean_ctor_get(x_45, 1); +lean_inc(x_258); +lean_dec(x_45); +x_259 = lean_ctor_get(x_46, 0); +lean_inc(x_259); +lean_dec(x_46); +x_260 = lean_box(0); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +x_1 = x_261; +x_7 = x_32; +x_9 = x_258; +goto _start; +} +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_12); +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_263 = lean_ctor_get(x_45, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_45, 1); +lean_inc(x_264); +lean_dec(x_45); +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_dec(x_12); +x_266 = lean_ctor_get(x_41, 1); +lean_inc(x_266); +lean_dec(x_41); +x_267 = lean_ctor_get(x_42, 0); +lean_inc(x_267); +lean_dec(x_42); +x_268 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_13); +x_1 = x_268; +x_7 = x_32; +x_9 = x_266; +goto _start; +} +} +else +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_12); +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_270 = lean_ctor_get(x_41, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_41, 1); +lean_inc(x_271); +lean_dec(x_41); +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_270); +lean_ctor_set(x_272, 1, x_271); +return x_272; +} +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +lean_dec(x_12); +x_273 = lean_ctor_get(x_37, 1); +lean_inc(x_273); +lean_dec(x_37); +x_274 = lean_ctor_get(x_38, 0); +lean_inc(x_274); +lean_dec(x_38); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_13); +x_1 = x_275; +x_7 = x_32; +x_9 = x_273; +goto _start; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_12); +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_277 = lean_ctor_get(x_37, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_37, 1); +lean_inc(x_278); +lean_dec(x_37); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_277); +lean_ctor_set(x_279, 1, x_278); +return x_279; +} +} +else +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_12); +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_280 = lean_ctor_get(x_34, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_34, 1); +lean_inc(x_281); +lean_dec(x_34); +x_282 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_282, 0, x_280); +lean_ctor_set(x_282, 1, x_281); +return x_282; +} +} +else +{ +lean_object* x_283; +lean_dec(x_26); lean_dec(x_24); lean_dec(x_23); lean_dec(x_22); @@ -35767,7 +35901,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_281 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__4(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_283 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__4(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -35775,7 +35909,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_281; +return x_283; } } } @@ -36189,7 +36323,7 @@ return x_97; } else { -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; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +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; uint8_t x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; x_98 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; lean_inc(x_89); x_99 = lean_array_push(x_98, x_89); @@ -36215,33 +36349,38 @@ x_109 = lean_ctor_get(x_9, 9); lean_inc(x_109); x_110 = lean_ctor_get(x_9, 10); lean_inc(x_110); -x_111 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_112 = l_Lean_replaceRef(x_89, x_105); +x_111 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_112 = lean_ctor_get(x_9, 11); +lean_inc(x_112); +x_113 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_114 = l_Lean_replaceRef(x_89, x_105); lean_dec(x_105); -x_113 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_113, 0, x_100); -lean_ctor_set(x_113, 1, x_101); -lean_ctor_set(x_113, 2, x_102); -lean_ctor_set(x_113, 3, x_103); -lean_ctor_set(x_113, 4, x_104); -lean_ctor_set(x_113, 5, x_112); -lean_ctor_set(x_113, 6, x_106); -lean_ctor_set(x_113, 7, x_107); -lean_ctor_set(x_113, 8, x_108); -lean_ctor_set(x_113, 9, x_109); -lean_ctor_set(x_113, 10, x_110); -lean_ctor_set_uint8(x_113, sizeof(void*)*11, x_111); -x_114 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_99, x_4, x_5, x_6, x_7, x_8, x_113, x_10, x_11); -lean_dec(x_113); +x_115 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_115, 0, x_100); +lean_ctor_set(x_115, 1, x_101); +lean_ctor_set(x_115, 2, x_102); +lean_ctor_set(x_115, 3, x_103); +lean_ctor_set(x_115, 4, x_104); +lean_ctor_set(x_115, 5, x_114); +lean_ctor_set(x_115, 6, x_106); +lean_ctor_set(x_115, 7, x_107); +lean_ctor_set(x_115, 8, x_108); +lean_ctor_set(x_115, 9, x_109); +lean_ctor_set(x_115, 10, x_110); +lean_ctor_set(x_115, 11, x_112); +lean_ctor_set_uint8(x_115, sizeof(void*)*12, x_111); +lean_ctor_set_uint8(x_115, sizeof(void*)*12 + 1, x_113); +x_116 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_99, x_4, x_5, x_6, x_7, x_8, x_115, x_10, x_11); +lean_dec(x_115); lean_dec(x_99); -if (lean_obj_tag(x_114) == 0) +if (lean_obj_tag(x_116) == 0) { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +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); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -36249,24 +36388,24 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_117 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___lambda__1(x_14, x_89, x_115, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_116); -lean_dec(x_115); -lean_dec(x_14); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); +x_119 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___lambda__1(x_14, x_89, x_117, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_118); lean_dec(x_117); -x_17 = x_118; -x_18 = x_119; +lean_dec(x_14); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_17 = x_120; +x_18 = x_121; goto block_23; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_dec(x_16); lean_dec(x_10); lean_dec(x_9); @@ -36275,20 +36414,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_120 = lean_ctor_get(x_117, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_117, 1); -lean_inc(x_121); -lean_dec(x_117); -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; +x_122 = lean_ctor_get(x_119, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_119, 1); +lean_inc(x_123); +lean_dec(x_119); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_dec(x_89); lean_dec(x_16); lean_dec(x_14); @@ -36299,15 +36438,15 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_123 = lean_ctor_get(x_114, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_114, 1); -lean_inc(x_124); -lean_dec(x_114); -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; +x_125 = lean_ctor_get(x_116, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_116, 1); +lean_inc(x_126); +lean_dec(x_116); +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; } } } @@ -36374,7 +36513,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__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) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -36397,33 +36536,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_object* x_9) { @@ -37556,25 +37700,25 @@ lean_dec(x_17); lean_dec(x_2); x_44 = x_39; x_45 = x_40; -goto block_84; +goto block_86; } else { -uint8_t x_85; -x_85 = lean_nat_dec_le(x_41, x_41); -if (x_85 == 0) +uint8_t x_87; +x_87 = lean_nat_dec_le(x_41, x_41); +if (x_87 == 0) { lean_dec(x_41); lean_dec(x_17); lean_dec(x_2); x_44 = x_39; x_45 = x_40; -goto block_84; +goto block_86; } else { -size_t x_86; lean_object* x_87; -x_86 = lean_usize_of_nat(x_41); +size_t x_88; lean_object* x_89; +x_88 = lean_usize_of_nat(x_41); lean_dec(x_41); lean_inc(x_15); lean_inc(x_14); @@ -37587,23 +37731,23 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_18); lean_inc(x_5); -x_87 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_5, x_17, x_18, x_21, x_24, x_27, x_32, x_33, x_2, x_7, x_86, x_39, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_40); +x_89 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_5, x_17, x_18, x_21, x_24, x_27, x_32, x_33, x_2, x_7, x_88, x_39, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_40); lean_dec(x_2); -if (lean_obj_tag(x_87) == 0) +if (lean_obj_tag(x_89) == 0) { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_44 = x_88; -x_45 = x_89; -goto block_84; +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_44 = x_90; +x_45 = x_91; +goto block_86; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_33); lean_dec(x_32); lean_dec(x_18); @@ -37618,19 +37762,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_90 = lean_ctor_get(x_87, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 1); -lean_inc(x_91); -lean_dec(x_87); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_89, 1); +lean_inc(x_93); +lean_dec(x_89); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } -block_84: +block_86: { if (lean_obj_tag(x_3) == 0) { @@ -37644,47 +37788,47 @@ return x_46; } else { -lean_object* x_47; uint8_t x_48; lean_object* x_81; +lean_object* x_47; uint8_t x_48; lean_object* x_83; x_47 = lean_ctor_get(x_3, 0); lean_inc(x_47); lean_dec(x_3); -x_81 = lean_ctor_get(x_47, 1); -lean_inc(x_81); -if (lean_obj_tag(x_81) == 0) +x_83 = lean_ctor_get(x_47, 1); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) { -uint8_t x_82; -x_82 = 1; -x_48 = x_82; -goto block_80; +uint8_t x_84; +x_84 = 1; +x_48 = x_84; +goto block_82; } else { -uint8_t x_83; -lean_dec(x_81); -x_83 = 0; -x_48 = x_83; -goto block_80; +uint8_t x_85; +lean_dec(x_83); +x_85 = 0; +x_48 = x_85; +goto block_82; } -block_80: +block_82: { uint8_t x_49; if (x_48 == 0) { -uint8_t x_78; -x_78 = 0; -x_49 = x_78; -goto block_77; +uint8_t x_80; +x_80 = 0; +x_49 = x_80; +goto block_79; } else { -uint8_t x_79; -x_79 = 1; -x_49 = x_79; -goto block_77; +uint8_t x_81; +x_81 = 1; +x_49 = x_81; +goto block_79; } -block_77: +block_79: { -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; uint8_t x_61; lean_object* x_62; lean_object* x_63; +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; uint8_t x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; x_50 = lean_ctor_get(x_14, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_14, 1); @@ -37707,26 +37851,31 @@ x_59 = lean_ctor_get(x_14, 9); lean_inc(x_59); x_60 = lean_ctor_get(x_14, 10); lean_inc(x_60); -x_61 = lean_ctor_get_uint8(x_14, sizeof(void*)*11); -x_62 = l_Lean_replaceRef(x_6, x_55); +x_61 = lean_ctor_get_uint8(x_14, sizeof(void*)*12); +x_62 = lean_ctor_get(x_14, 11); +lean_inc(x_62); +x_63 = lean_ctor_get_uint8(x_14, sizeof(void*)*12 + 1); +x_64 = l_Lean_replaceRef(x_6, x_55); lean_dec(x_55); lean_dec(x_6); -x_63 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_63, 0, x_50); -lean_ctor_set(x_63, 1, x_51); -lean_ctor_set(x_63, 2, x_52); -lean_ctor_set(x_63, 3, x_53); -lean_ctor_set(x_63, 4, x_54); -lean_ctor_set(x_63, 5, x_62); -lean_ctor_set(x_63, 6, x_56); -lean_ctor_set(x_63, 7, x_57); -lean_ctor_set(x_63, 8, x_58); -lean_ctor_set(x_63, 9, x_59); -lean_ctor_set(x_63, 10, x_60); -lean_ctor_set_uint8(x_63, sizeof(void*)*11, x_61); +x_65 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_65, 0, x_50); +lean_ctor_set(x_65, 1, x_51); +lean_ctor_set(x_65, 2, x_52); +lean_ctor_set(x_65, 3, x_53); +lean_ctor_set(x_65, 4, x_54); +lean_ctor_set(x_65, 5, x_64); +lean_ctor_set(x_65, 6, x_56); +lean_ctor_set(x_65, 7, x_57); +lean_ctor_set(x_65, 8, x_58); +lean_ctor_set(x_65, 9, x_59); +lean_ctor_set(x_65, 10, x_60); +lean_ctor_set(x_65, 11, x_62); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_61); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_63); if (x_49 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_47); lean_dec(x_44); lean_dec(x_33); @@ -37735,50 +37884,50 @@ lean_dec(x_18); lean_dec(x_14); lean_dec(x_5); lean_dec(x_4); -x_64 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__5; -x_65 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_64, x_9, x_10, x_11, x_12, x_13, x_63, x_15, x_45); +x_66 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__5; +x_67 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_66, x_9, x_10, x_11, x_12, x_13, x_65, x_15, x_45); lean_dec(x_15); -lean_dec(x_63); +lean_dec(x_65); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -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; +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_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 { -lean_object* x_69; lean_object* x_70; -x_69 = lean_box(0); +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_70 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(x_47, x_32, x_33, x_44, x_5, x_69, x_9, x_10, x_11, x_12, x_13, x_63, x_15, x_45); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(x_47, x_32, x_33, x_44, x_5, x_71, x_9, x_10, x_11, x_12, x_13, x_65, x_15, x_45); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_18, x_21, x_24, x_27, x_4, x_71, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_72); -return x_73; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_18, x_21, x_24, x_27, x_4, x_73, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_74); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_dec(x_18); lean_dec(x_15); lean_dec(x_14); @@ -37788,15 +37937,15 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); -x_74 = lean_ctor_get(x_70, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -lean_dec(x_70); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +lean_dec(x_72); +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; } } } @@ -37806,7 +37955,7 @@ return x_76; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_33); lean_dec(x_32); lean_dec(x_18); @@ -37823,20 +37972,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_93 = lean_ctor_get(x_38, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_38, 1); -lean_inc(x_94); +x_95 = lean_ctor_get(x_38, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_38, 1); +lean_inc(x_96); lean_dec(x_38); -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; +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_96; lean_object* x_97; lean_object* x_98; +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_dec(x_18); lean_dec(x_17); lean_dec(x_15); @@ -37851,15 +38000,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_96 = lean_ctor_get(x_28, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_28, 1); -lean_inc(x_97); +x_98 = lean_ctor_get(x_28, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_28, 1); +lean_inc(x_99); lean_dec(x_28); -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_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } @@ -38426,7 +38575,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___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_object* x_10) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -38449,33 +38598,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___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, lean_object* x_9) { @@ -38743,7 +38897,7 @@ x_21 = l_Lean_Elab_Term_Do_getPatternsVarsEx(x_20, x_5, x_6, x_7, x_8, x_9, x_10 lean_dec(x_20); if (lean_obj_tag(x_21) == 0) { -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; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +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; uint8_t x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -38771,33 +38925,38 @@ x_33 = lean_ctor_get(x_9, 9); lean_inc(x_33); x_34 = lean_ctor_get(x_9, 10); lean_inc(x_34); -x_35 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_36 = l_Lean_replaceRef(x_19, x_29); +x_35 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_36 = lean_ctor_get(x_9, 11); +lean_inc(x_36); +x_37 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_38 = l_Lean_replaceRef(x_19, x_29); lean_dec(x_29); -x_37 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_37, 0, x_24); -lean_ctor_set(x_37, 1, x_25); -lean_ctor_set(x_37, 2, x_26); -lean_ctor_set(x_37, 3, x_27); -lean_ctor_set(x_37, 4, x_28); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_30); -lean_ctor_set(x_37, 7, x_31); -lean_ctor_set(x_37, 8, x_32); -lean_ctor_set(x_37, 9, x_33); -lean_ctor_set(x_37, 10, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*11, x_35); -x_38 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_22, x_4, x_5, x_6, x_7, x_8, x_37, x_10, x_23); -lean_dec(x_37); -if (lean_obj_tag(x_38) == 0) +x_39 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_39, 0, x_24); +lean_ctor_set(x_39, 1, x_25); +lean_ctor_set(x_39, 2, x_26); +lean_ctor_set(x_39, 3, x_27); +lean_ctor_set(x_39, 4, x_28); +lean_ctor_set(x_39, 5, x_38); +lean_ctor_set(x_39, 6, x_30); +lean_ctor_set(x_39, 7, x_31); +lean_ctor_set(x_39, 8, x_32); +lean_ctor_set(x_39, 9, x_33); +lean_ctor_set(x_39, 10, x_34); +lean_ctor_set(x_39, 11, x_36); +lean_ctor_set_uint8(x_39, sizeof(void*)*12, x_35); +lean_ctor_set_uint8(x_39, sizeof(void*)*12 + 1, x_37); +x_40 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_22, x_4, x_5, x_6, x_7, x_8, x_39, x_10, x_23); +lean_dec(x_39); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = lean_unsigned_to_nat(3u); -x_41 = l_Lean_Syntax_getArg(x_14, x_40); -x_42 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_41); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_unsigned_to_nat(3u); +x_43 = l_Lean_Syntax_getArg(x_14, x_42); +x_44 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_43); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -38805,31 +38964,31 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_43 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_42, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); -if (lean_obj_tag(x_43) == 0) +x_45 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_46, 0, x_14); -lean_ctor_set(x_46, 1, x_22); -lean_ctor_set(x_46, 2, x_19); -lean_ctor_set(x_46, 3, x_44); -x_47 = 1; -x_48 = lean_usize_add(x_2, x_47); -x_49 = lean_array_uset(x_16, x_2, x_46); -x_2 = x_48; -x_3 = x_49; -x_11 = x_45; +lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_48, 0, x_14); +lean_ctor_set(x_48, 1, x_22); +lean_ctor_set(x_48, 2, x_19); +lean_ctor_set(x_48, 3, x_46); +x_49 = 1; +x_50 = lean_usize_add(x_2, x_49); +x_51 = lean_array_uset(x_16, x_2, x_48); +x_2 = x_50; +x_3 = x_51; +x_11 = x_47; goto _start; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_dec(x_22); lean_dec(x_19); lean_dec(x_16); @@ -38841,45 +39000,21 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_51 = lean_ctor_get(x_43, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_43, 1); -lean_inc(x_52); -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); -return x_53; -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_16); -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_5); -lean_dec(x_4); -x_54 = lean_ctor_get(x_38, 0); +x_53 = lean_ctor_get(x_45, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_45, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_38, 1); -lean_inc(x_55); -lean_dec(x_38); -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; +lean_dec(x_45); +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_57; lean_object* x_58; lean_object* x_59; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_22); lean_dec(x_19); lean_dec(x_16); lean_dec(x_14); @@ -38890,15 +39025,39 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_57 = lean_ctor_get(x_21, 0); +x_56 = lean_ctor_get(x_40, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_40, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_21, 1); -lean_inc(x_58); +lean_dec(x_40); +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; +lean_dec(x_19); +lean_dec(x_16); +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_5); +lean_dec(x_4); +x_59 = lean_ctor_get(x_21, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_21, 1); +lean_inc(x_60); lean_dec(x_21); -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_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; } } } @@ -39213,7 +39372,7 @@ goto _start; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___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_object* x_10) { _start: { -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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -39236,33 +39395,38 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_23 = l_Lean_replaceRef(x_1, x_16); +x_25 = l_Lean_replaceRef(x_1, x_16); lean_dec(x_16); lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_23); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set(x_24, 10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_22); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_24, x_9, x_10); +x_26 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_26, 0, x_11); +lean_ctor_set(x_26, 1, x_12); +lean_ctor_set(x_26, 2, x_13); +lean_ctor_set(x_26, 3, x_14); +lean_ctor_set(x_26, 4, x_15); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_17); +lean_ctor_set(x_26, 7, x_18); +lean_ctor_set(x_26, 8, x_19); +lean_ctor_set(x_26, 9, x_20); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set(x_26, 11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_26, sizeof(void*)*12 + 1, x_24); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_9, x_10); lean_dec(x_9); -lean_dec(x_24); +lean_dec(x_26); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___closed__1() { @@ -40757,7 +40921,7 @@ x_14 = lean_array_get_size(x_13); x_15 = lean_nat_dec_lt(x_11, x_14); if (x_15 == 0) { -lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_16 = lean_unsigned_to_nat(0u); x_17 = lean_nat_dec_lt(x_16, x_14); lean_dec(x_14); @@ -40783,1038 +40947,473 @@ x_27 = lean_ctor_get(x_8, 9); lean_inc(x_27); x_28 = lean_ctor_get(x_8, 10); lean_inc(x_28); -x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_30 = lean_ctor_get(x_8, 11); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_30 = l_Lean_replaceRef(x_1, x_23); +x_32 = l_Lean_replaceRef(x_1, x_23); lean_dec(x_23); +lean_inc(x_30); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_30); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_25); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set(x_31, 9, x_27); -lean_ctor_set(x_31, 10, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_29); +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_19); +lean_ctor_set(x_33, 2, x_20); +lean_ctor_set(x_33, 3, x_21); +lean_ctor_set(x_33, 4, x_22); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_24); +lean_ctor_set(x_33, 7, x_25); +lean_ctor_set(x_33, 8, x_26); +lean_ctor_set(x_33, 9, x_27); +lean_ctor_set(x_33, 10, x_28); +lean_ctor_set(x_33, 11, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_31); if (x_17 == 0) { -lean_object* x_371; lean_object* x_372; +lean_object* x_373; lean_object* x_374; lean_dec(x_13); -x_371 = l_Lean_instInhabitedSyntax; -x_372 = l___private_Init_GetElem_0__outOfBounds___rarg(x_371); -x_32 = x_372; -goto block_370; +x_373 = l_Lean_instInhabitedSyntax; +x_374 = l___private_Init_GetElem_0__outOfBounds___rarg(x_373); +x_34 = x_374; +goto block_372; } else { -lean_object* x_373; -x_373 = lean_array_fget(x_13, x_16); +lean_object* x_375; +x_375 = lean_array_fget(x_13, x_16); lean_dec(x_13); -x_32 = x_373; -goto block_370; +x_34 = x_375; +goto block_372; } -block_370: +block_372: { -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; -x_33 = l_Lean_Syntax_getArg(x_32, x_16); -x_34 = l_Lean_Syntax_isNone(x_33); -x_35 = l_Lean_Syntax_getArg(x_32, x_11); +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_35 = l_Lean_Syntax_getArg(x_34, x_16); +x_36 = l_Lean_Syntax_isNone(x_35); +x_37 = l_Lean_Syntax_getArg(x_34, x_11); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_35); -x_36 = l_Lean_Elab_Term_Do_getPatternVarsEx(x_35, x_4, x_5, x_6, x_7, x_31, x_9, x_10); -if (x_34 == 0) +lean_inc(x_37); +x_38 = l_Lean_Elab_Term_Do_getPatternVarsEx(x_37, x_4, x_5, x_6, x_7, x_33, x_9, x_10); +if (x_36 == 0) { -if (lean_obj_tag(x_36) == 0) +if (lean_obj_tag(x_38) == 0) { -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_357 = lean_ctor_get(x_36, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_36, 1); -lean_inc(x_358); -lean_dec(x_36); -x_359 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_360 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_360, 0, x_359); -x_37 = x_360; -x_38 = x_357; -x_39 = x_358; -goto block_356; -} -else -{ -lean_object* x_361; lean_object* x_362; lean_object* x_363; -lean_dec(x_35); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -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_361 = lean_ctor_get(x_36, 0); -lean_inc(x_361); -x_362 = lean_ctor_get(x_36, 1); -lean_inc(x_362); -lean_dec(x_36); -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; -} -} -else -{ -lean_dec(x_33); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; -x_364 = lean_ctor_get(x_36, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_36, 1); -lean_inc(x_365); -lean_dec(x_36); -x_366 = lean_box(0); -x_37 = x_366; -x_38 = x_364; -x_39 = x_365; -goto block_356; -} -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; -lean_dec(x_35); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -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_367 = lean_ctor_get(x_36, 0); -lean_inc(x_367); -x_368 = lean_ctor_get(x_36, 1); -lean_inc(x_368); -lean_dec(x_36); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -return x_369; -} -} -block_356: -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = l_Lean_replaceRef(x_35, x_30); -lean_inc(x_28); -x_41 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_41, 0, x_18); -lean_ctor_set(x_41, 1, x_19); -lean_ctor_set(x_41, 2, x_20); -lean_ctor_set(x_41, 3, x_21); -lean_ctor_set(x_41, 4, x_22); -lean_ctor_set(x_41, 5, x_40); -lean_ctor_set(x_41, 6, x_24); -lean_ctor_set(x_41, 7, x_25); -lean_ctor_set(x_41, 8, x_26); -lean_ctor_set(x_41, 9, x_27); -lean_ctor_set(x_41, 10, x_28); -lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_29); -x_42 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_38, x_3, x_4, x_5, x_6, x_7, x_41, x_9, x_39); -lean_dec(x_41); +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +x_359 = lean_ctor_get(x_38, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_38, 1); +lean_inc(x_360); lean_dec(x_38); -if (lean_obj_tag(x_42) == 0) +x_361 = l_Lean_Syntax_getArg(x_35, x_16); +lean_dec(x_35); +x_362 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_362, 0, x_361); +x_39 = x_362; +x_40 = x_359; +x_41 = x_360; +goto block_358; +} +else { -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; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_unsigned_to_nat(3u); -x_45 = l_Lean_Syntax_getArg(x_32, x_44); +lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); lean_dec(x_32); -x_46 = l_Lean_Syntax_getArg(x_1, x_44); -x_47 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_46); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode), 9, 1); -lean_closure_set(x_48, 0, x_47); +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +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_363 = lean_ctor_get(x_38, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_38, 1); +lean_inc(x_364); +lean_dec(x_38); +x_365 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_365, 0, x_363); +lean_ctor_set(x_365, 1, x_364); +return x_365; +} +} +else +{ +lean_dec(x_35); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_38, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_38, 1); +lean_inc(x_367); +lean_dec(x_38); +x_368 = lean_box(0); +x_39 = x_368; +x_40 = x_366; +x_41 = x_367; +goto block_358; +} +else +{ +lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +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_369 = lean_ctor_get(x_38, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_38, 1); +lean_inc(x_370); +lean_dec(x_38); +x_371 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_371, 0, x_369); +lean_ctor_set(x_371, 1, x_370); +return x_371; +} +} +block_358: +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = l_Lean_replaceRef(x_37, x_32); +lean_inc(x_28); +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_18); +lean_ctor_set(x_43, 1, x_19); +lean_ctor_set(x_43, 2, x_20); +lean_ctor_set(x_43, 3, x_21); +lean_ctor_set(x_43, 4, x_22); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_24); +lean_ctor_set(x_43, 7, x_25); +lean_ctor_set(x_43, 8, x_26); +lean_ctor_set(x_43, 9, x_27); +lean_ctor_set(x_43, 10, x_28); +lean_ctor_set(x_43, 11, x_30); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_31); +x_44 = l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(x_40, x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_41); +lean_dec(x_43); +lean_dec(x_40); +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; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_unsigned_to_nat(3u); +x_47 = l_Lean_Syntax_getArg(x_34, x_46); +lean_dec(x_34); +x_48 = l_Lean_Syntax_getArg(x_1, x_46); +x_49 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_48); +x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode), 9, 1); +lean_closure_set(x_50, 0, x_49); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_49 = l_Lean_Elab_Term_Do_ToCodeBlock_withFor___rarg(x_48, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_43); -if (lean_obj_tag(x_49) == 0) +x_51 = l_Lean_Elab_Term_Do_ToCodeBlock_withFor___rarg(x_50, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_45); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_50); -x_52 = l_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___rarg(x_50, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_51); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_53 = lean_ctor_get(x_52, 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); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_51); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_54 = l_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___rarg(x_52, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_53); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 1); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -lean_dec(x_53); -x_57 = lean_array_get_size(x_55); -x_58 = lean_usize_of_nat(x_57); -lean_dec(x_57); -x_59 = 0; -x_60 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__1(x_3, x_58, x_59, x_55); -lean_inc(x_60); -x_61 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple), 3, 1); -lean_closure_set(x_61, 0, x_60); +lean_dec(x_54); +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = lean_array_get_size(x_57); +x_60 = lean_usize_of_nat(x_59); +lean_dec(x_59); +x_61 = 0; +x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__1(x_3, x_60, x_61, x_57); +lean_inc(x_62); +x_63 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple), 3, 1); +lean_closure_set(x_63, 0, x_62); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_62 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_61, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_54); -if (lean_obj_tag(x_62) == 0) +x_64 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_63, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_56); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_ctor_get(x_50, 0); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_50); -x_66 = l_Lean_Elab_Term_Do_hasReturn___closed__1; -x_67 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_66, x_65); -x_68 = lean_unbox(x_67); -lean_dec(x_67); -if (x_68 == 0) -{ -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; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_69 = 0; -x_70 = l_Lean_SourceInfo_fromRef(x_30, x_69); -x_71 = lean_st_ref_get(x_9, x_64); -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_74 = lean_ctor_get(x_72, 0); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_environment_main_module(x_74); -x_76 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__5; -lean_inc(x_28); -x_77 = l_Lean_addMacroScope(x_75, x_76, x_28); -x_78 = lean_box(0); -x_79 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__4; -lean_inc(x_70); -x_80 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_80, 0, x_70); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set(x_80, 2, x_77); -lean_ctor_set(x_80, 3, x_78); -x_81 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple), 5, 3); -lean_closure_set(x_81, 0, x_60); -lean_closure_set(x_81, 1, x_80); -lean_closure_set(x_81, 2, x_56); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_82 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_81, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_73); -if (lean_obj_tag(x_82) == 0) -{ -if (lean_obj_tag(x_37) == 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_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; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -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_st_ref_get(x_9, x_84); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_environment_main_module(x_88); -x_90 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; -lean_inc(x_70); -x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_70); -lean_ctor_set(x_91, 1, x_90); -x_92 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_70); -x_93 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_93, 0, x_70); -lean_ctor_set(x_93, 1, x_92); -x_94 = l_Lean_addMacroScope(x_89, x_76, x_28); -lean_inc(x_70); -x_95 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_95, 0, x_70); -lean_ctor_set(x_95, 1, x_79); -lean_ctor_set(x_95, 2, x_94); -lean_ctor_set(x_95, 3, x_78); -x_96 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; -lean_inc(x_70); -x_97 = l_Lean_Syntax_node2(x_70, x_96, x_35, x_95); -x_98 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -lean_inc(x_70); -x_99 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_99, 0, x_70); -lean_ctor_set(x_99, 1, x_96); -lean_ctor_set(x_99, 2, x_98); -x_100 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; -lean_inc(x_70); -x_101 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_101, 0, x_70); -lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; -lean_inc(x_70); -x_103 = l_Lean_Syntax_node4(x_70, x_102, x_97, x_99, x_101, x_83); -x_104 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -lean_inc(x_70); -x_105 = l_Lean_Syntax_node2(x_70, x_104, x_93, x_103); -x_106 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; -lean_inc(x_63); -x_107 = l_Lean_Syntax_node4(x_70, x_106, x_91, x_45, x_63, x_105); -x_108 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_107, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_87); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1(x_2, x_76, x_79, x_78, x_63, x_109, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_110); -return x_111; -} -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_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_112 = lean_ctor_get(x_82, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_82, 1); -lean_inc(x_113); -lean_dec(x_82); -x_114 = lean_ctor_get(x_37, 0); -lean_inc(x_114); -lean_dec(x_37); -x_115 = lean_st_ref_get(x_9, x_113); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_118 = lean_ctor_get(x_116, 0); -lean_inc(x_118); -lean_dec(x_116); -x_119 = lean_environment_main_module(x_118); -x_120 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; -lean_inc(x_70); -x_121 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_121, 0, x_70); -lean_ctor_set(x_121, 1, x_120); -x_122 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_70); -x_123 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_123, 0, x_70); -lean_ctor_set(x_123, 1, x_122); -x_124 = l_Lean_addMacroScope(x_119, x_76, x_28); -lean_inc(x_70); -x_125 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_125, 0, x_70); -lean_ctor_set(x_125, 1, x_79); -lean_ctor_set(x_125, 2, x_124); -lean_ctor_set(x_125, 3, x_78); -x_126 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; -lean_inc(x_70); -x_127 = l_Lean_Syntax_node3(x_70, x_126, x_35, x_114, x_125); -x_128 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -lean_inc(x_70); -x_129 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_129, 0, x_70); -lean_ctor_set(x_129, 1, x_126); -lean_ctor_set(x_129, 2, x_128); -x_130 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; -lean_inc(x_70); -x_131 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_131, 0, x_70); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; -lean_inc(x_70); -x_133 = l_Lean_Syntax_node4(x_70, x_132, x_127, x_129, x_131, x_112); -x_134 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -lean_inc(x_70); -x_135 = l_Lean_Syntax_node2(x_70, x_134, x_123, x_133); -x_136 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; -lean_inc(x_63); -x_137 = l_Lean_Syntax_node4(x_70, x_136, x_121, x_45, x_63, x_135); -x_138 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_137, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_117); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_141 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1(x_2, x_76, x_79, x_78, x_63, x_139, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_140); -return x_141; -} -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_70); -lean_dec(x_63); -lean_dec(x_45); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_31); -lean_dec(x_28); -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_142 = lean_ctor_get(x_82, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_82, 1); -lean_inc(x_143); -lean_dec(x_82); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -else -{ -uint8_t 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; -x_145 = 0; -x_146 = l_Lean_SourceInfo_fromRef(x_30, x_145); -x_147 = lean_st_ref_get(x_9, x_64); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_ctor_get(x_148, 0); -lean_inc(x_150); -lean_dec(x_148); -x_151 = lean_environment_main_module(x_150); -x_152 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__5; -lean_inc(x_28); -x_153 = l_Lean_addMacroScope(x_151, x_152, x_28); -x_154 = lean_box(0); -x_155 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__4; -lean_inc(x_146); -x_156 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_156, 0, x_146); -lean_ctor_set(x_156, 1, x_155); -lean_ctor_set(x_156, 2, x_153); -lean_ctor_set(x_156, 3, x_154); -x_157 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple), 5, 3); -lean_closure_set(x_157, 0, x_60); -lean_closure_set(x_157, 1, x_156); -lean_closure_set(x_157, 2, x_56); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_158 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_157, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_149); -if (lean_obj_tag(x_158) == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_st_ref_get(x_9, x_160); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -lean_dec(x_162); -x_165 = lean_environment_main_module(x_164); -x_166 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8; -lean_inc(x_28); -x_167 = l_Lean_addMacroScope(x_165, x_166, x_28); -x_168 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7; -x_169 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13; -lean_inc(x_146); -x_170 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_170, 0, x_146); -lean_ctor_set(x_170, 1, x_168); -lean_ctor_set(x_170, 2, x_167); -lean_ctor_set(x_170, 3, x_169); -x_171 = lean_ctor_get(x_3, 2); -lean_inc(x_171); -x_172 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; -lean_inc(x_146); -x_173 = l_Lean_Syntax_node1(x_146, x_172, x_171); -x_174 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -lean_inc(x_146); -x_175 = l_Lean_Syntax_node2(x_146, x_174, x_170, x_173); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 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; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 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_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; -x_176 = lean_st_ref_get(x_9, x_163); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_179 = lean_ctor_get(x_177, 0); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_environment_main_module(x_179); -x_181 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; -lean_inc(x_146); -x_182 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_182, 0, x_146); -lean_ctor_set(x_182, 1, x_181); -x_183 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_146); -x_184 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_184, 0, x_146); -lean_ctor_set(x_184, 1, x_183); -x_185 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; -lean_inc(x_28); -lean_inc(x_180); -x_186 = l_Lean_addMacroScope(x_180, x_185, x_28); -x_187 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__2; -x_188 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__4; -lean_inc(x_146); -x_189 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_189, 0, x_146); -lean_ctor_set(x_189, 1, x_187); -lean_ctor_set(x_189, 2, x_186); -lean_ctor_set(x_189, 3, x_188); -x_190 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; -lean_inc(x_28); -lean_inc(x_180); -x_191 = l_Lean_addMacroScope(x_180, x_190, x_28); -x_192 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -x_193 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; -lean_inc(x_146); -x_194 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_194, 0, x_146); -lean_ctor_set(x_194, 1, x_192); -lean_ctor_set(x_194, 2, x_191); -lean_ctor_set(x_194, 3, x_193); -x_195 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__8; -lean_inc(x_146); -x_196 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_196, 0, x_146); -lean_ctor_set(x_196, 1, x_195); -lean_inc(x_175); -lean_inc(x_146); -x_197 = l_Lean_Syntax_node1(x_146, x_172, x_175); -x_198 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__16; -lean_inc(x_146); -x_199 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_199, 0, x_146); -lean_ctor_set(x_199, 1, x_198); -x_200 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -lean_inc(x_199); -lean_inc(x_196); -lean_inc(x_184); -lean_inc(x_146); -x_201 = l_Lean_Syntax_node5(x_146, x_200, x_184, x_194, x_196, x_197, x_199); -lean_inc(x_63); -lean_inc(x_146); -x_202 = l_Lean_Syntax_node2(x_146, x_172, x_201, x_63); -lean_inc(x_146); -x_203 = l_Lean_Syntax_node2(x_146, x_174, x_189, x_202); -x_204 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; -lean_inc(x_199); -lean_inc(x_184); -lean_inc(x_146); -x_205 = l_Lean_Syntax_node3(x_146, x_204, x_184, x_203, x_199); -x_206 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_146); -x_207 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_207, 0, x_146); -lean_ctor_set(x_207, 1, x_206); -lean_inc(x_28); -lean_inc(x_180); -x_208 = l_Lean_addMacroScope(x_180, x_152, x_28); -lean_inc(x_146); -x_209 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_209, 0, x_146); -lean_ctor_set(x_209, 1, x_155); -lean_ctor_set(x_209, 2, x_208); -lean_ctor_set(x_209, 3, x_154); -x_210 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; -x_211 = l_Lean_addMacroScope(x_180, x_210, x_28); -x_212 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; -x_213 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__19; -lean_inc(x_146); -x_214 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_214, 0, x_146); -lean_ctor_set(x_214, 1, x_212); -lean_ctor_set(x_214, 2, x_211); -lean_ctor_set(x_214, 3, x_213); -x_215 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__21; -lean_inc(x_146); -x_216 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_216, 0, x_146); -lean_ctor_set(x_216, 1, x_215); -x_217 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_AltExpr_vars___spec__1___closed__2; -lean_inc(x_146); -x_218 = l_Lean_Syntax_node1(x_146, x_217, x_216); -lean_inc(x_146); -x_219 = l_Lean_Syntax_node2(x_146, x_172, x_175, x_218); -lean_inc(x_146); -x_220 = l_Lean_Syntax_node2(x_146, x_174, x_214, x_219); -lean_inc(x_146); -x_221 = l_Lean_Syntax_node1(x_146, x_172, x_220); -lean_inc(x_209); -lean_inc(x_146); -x_222 = l_Lean_Syntax_node5(x_146, x_200, x_184, x_209, x_196, x_221, x_199); -lean_inc(x_146); -x_223 = l_Lean_Syntax_node2(x_146, x_172, x_35, x_222); -x_224 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -lean_inc(x_146); -x_225 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_225, 0, x_146); -lean_ctor_set(x_225, 1, x_172); -lean_ctor_set(x_225, 2, x_224); -x_226 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; -lean_inc(x_146); -x_227 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_227, 0, x_146); -lean_ctor_set(x_227, 1, x_226); -x_228 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_146); -x_229 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_229, 0, x_146); -lean_ctor_set(x_229, 1, x_228); -x_230 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__17; -lean_inc(x_146); -x_231 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_231, 0, x_146); -lean_ctor_set(x_231, 1, x_230); -x_232 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; -lean_inc(x_146); -x_233 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_233, 0, x_146); -lean_ctor_set(x_233, 1, x_232); -x_234 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; -lean_inc(x_146); -x_235 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_235, 0, x_146); -lean_ctor_set(x_235, 1, x_234); -x_236 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; -lean_inc(x_146); -x_237 = l_Lean_Syntax_node1(x_146, x_236, x_235); -x_238 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_209); -lean_inc(x_146); -x_239 = l_Lean_Syntax_node3(x_146, x_238, x_209, x_233, x_237); -x_240 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; -lean_inc_n(x_225, 2); -lean_inc(x_146); -x_241 = l_Lean_Syntax_node5(x_146, x_240, x_209, x_225, x_225, x_231, x_239); -x_242 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__9; -lean_inc(x_146); -x_243 = l_Lean_Syntax_node1(x_146, x_242, x_241); -x_244 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; -lean_inc(x_146); -x_245 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_245, 0, x_146); -lean_ctor_set(x_245, 1, x_244); -x_246 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; -lean_inc(x_146); -x_247 = l_Lean_Syntax_node4(x_146, x_246, x_229, x_243, x_245, x_159); -x_248 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; -lean_inc(x_146); -x_249 = l_Lean_Syntax_node4(x_146, x_248, x_223, x_225, x_227, x_247); -x_250 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -lean_inc(x_146); -x_251 = l_Lean_Syntax_node2(x_146, x_250, x_207, x_249); -x_252 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; -x_253 = l_Lean_Syntax_node4(x_146, x_252, x_182, x_45, x_205, x_251); -x_254 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_253, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_178); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_172, x_152, x_155, x_154, x_63, x_174, x_2, x_255, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_256); -return x_257; -} -else -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 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; 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; lean_object* x_339; lean_object* x_340; -x_258 = lean_ctor_get(x_37, 0); -lean_inc(x_258); -lean_dec(x_37); -x_259 = lean_st_ref_get(x_9, x_163); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -lean_dec(x_259); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_environment_main_module(x_262); -x_264 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; -lean_inc(x_146); -x_265 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_265, 0, x_146); -lean_ctor_set(x_265, 1, x_264); -x_266 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_146); -x_267 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_267, 0, x_146); -lean_ctor_set(x_267, 1, x_266); -x_268 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; -lean_inc(x_28); -lean_inc(x_263); -x_269 = l_Lean_addMacroScope(x_263, x_268, x_28); -x_270 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__2; -x_271 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__4; -lean_inc(x_146); -x_272 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_272, 0, x_146); -lean_ctor_set(x_272, 1, x_270); -lean_ctor_set(x_272, 2, x_269); -lean_ctor_set(x_272, 3, x_271); -x_273 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; -lean_inc(x_28); -lean_inc(x_263); -x_274 = l_Lean_addMacroScope(x_263, x_273, x_28); -x_275 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -x_276 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; -lean_inc(x_146); -x_277 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_277, 0, x_146); -lean_ctor_set(x_277, 1, x_275); -lean_ctor_set(x_277, 2, x_274); -lean_ctor_set(x_277, 3, x_276); -x_278 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__8; -lean_inc(x_146); -x_279 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_279, 0, x_146); -lean_ctor_set(x_279, 1, x_278); -lean_inc(x_175); -lean_inc(x_146); -x_280 = l_Lean_Syntax_node1(x_146, x_172, x_175); -x_281 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__16; -lean_inc(x_146); -x_282 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_282, 0, x_146); -lean_ctor_set(x_282, 1, x_281); -x_283 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -lean_inc(x_282); -lean_inc(x_279); -lean_inc(x_267); -lean_inc(x_146); -x_284 = l_Lean_Syntax_node5(x_146, x_283, x_267, x_277, x_279, x_280, x_282); -lean_inc(x_63); -lean_inc(x_146); -x_285 = l_Lean_Syntax_node2(x_146, x_172, x_284, x_63); -lean_inc(x_146); -x_286 = l_Lean_Syntax_node2(x_146, x_174, x_272, x_285); -x_287 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; -lean_inc(x_282); -lean_inc(x_267); -lean_inc(x_146); -x_288 = l_Lean_Syntax_node3(x_146, x_287, x_267, x_286, x_282); -x_289 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_146); -x_290 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_290, 0, x_146); -lean_ctor_set(x_290, 1, x_289); -lean_inc(x_28); -lean_inc(x_263); -x_291 = l_Lean_addMacroScope(x_263, x_152, x_28); -lean_inc(x_146); -x_292 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_292, 0, x_146); -lean_ctor_set(x_292, 1, x_155); -lean_ctor_set(x_292, 2, x_291); -lean_ctor_set(x_292, 3, x_154); -x_293 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; -x_294 = l_Lean_addMacroScope(x_263, x_293, x_28); -x_295 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; -x_296 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__19; -lean_inc(x_146); -x_297 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_297, 0, x_146); -lean_ctor_set(x_297, 1, x_295); -lean_ctor_set(x_297, 2, x_294); -lean_ctor_set(x_297, 3, x_296); -x_298 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__21; -lean_inc(x_146); -x_299 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_299, 0, x_146); -lean_ctor_set(x_299, 1, x_298); -x_300 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_AltExpr_vars___spec__1___closed__2; -lean_inc(x_146); -x_301 = l_Lean_Syntax_node1(x_146, x_300, x_299); -lean_inc(x_146); -x_302 = l_Lean_Syntax_node2(x_146, x_172, x_175, x_301); -lean_inc(x_146); -x_303 = l_Lean_Syntax_node2(x_146, x_174, x_297, x_302); -lean_inc(x_146); -x_304 = l_Lean_Syntax_node1(x_146, x_172, x_303); -lean_inc(x_292); -lean_inc(x_146); -x_305 = l_Lean_Syntax_node5(x_146, x_283, x_267, x_292, x_279, x_304, x_282); -lean_inc(x_146); -x_306 = l_Lean_Syntax_node3(x_146, x_172, x_35, x_258, x_305); -x_307 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -lean_inc(x_146); -x_308 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_308, 0, x_146); -lean_ctor_set(x_308, 1, x_172); -lean_ctor_set(x_308, 2, x_307); -x_309 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; -lean_inc(x_146); -x_310 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_310, 0, x_146); -lean_ctor_set(x_310, 1, x_309); -x_311 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_146); -x_312 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_312, 0, x_146); -lean_ctor_set(x_312, 1, x_311); -x_313 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__17; -lean_inc(x_146); -x_314 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_314, 0, x_146); -lean_ctor_set(x_314, 1, x_313); -x_315 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; -lean_inc(x_146); -x_316 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_316, 0, x_146); -lean_ctor_set(x_316, 1, x_315); -x_317 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; -lean_inc(x_146); -x_318 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_318, 0, x_146); -lean_ctor_set(x_318, 1, x_317); -x_319 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; -lean_inc(x_146); -x_320 = l_Lean_Syntax_node1(x_146, x_319, x_318); -x_321 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_292); -lean_inc(x_146); -x_322 = l_Lean_Syntax_node3(x_146, x_321, x_292, x_316, x_320); -x_323 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; -lean_inc_n(x_308, 2); -lean_inc(x_146); -x_324 = l_Lean_Syntax_node5(x_146, x_323, x_292, x_308, x_308, x_314, x_322); -x_325 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__9; -lean_inc(x_146); -x_326 = l_Lean_Syntax_node1(x_146, x_325, x_324); -x_327 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; -lean_inc(x_146); -x_328 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_328, 0, x_146); -lean_ctor_set(x_328, 1, x_327); -x_329 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; -lean_inc(x_146); -x_330 = l_Lean_Syntax_node4(x_146, x_329, x_312, x_326, x_328, x_159); -x_331 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; -lean_inc(x_146); -x_332 = l_Lean_Syntax_node4(x_146, x_331, x_306, x_308, x_310, x_330); -x_333 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -lean_inc(x_146); -x_334 = l_Lean_Syntax_node2(x_146, x_333, x_290, x_332); -x_335 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; -x_336 = l_Lean_Syntax_node4(x_146, x_335, x_265, x_45, x_288, x_334); -x_337 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_336, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_261); -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_337); -x_340 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_172, x_152, x_155, x_154, x_63, x_174, x_2, x_338, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_339); -return x_340; -} -} -else -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; -lean_dec(x_146); -lean_dec(x_63); -lean_dec(x_45); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_31); -lean_dec(x_28); -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_341 = lean_ctor_get(x_158, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_158, 1); -lean_inc(x_342); -lean_dec(x_158); -x_343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -return x_343; -} -} -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; -lean_dec(x_60); -lean_dec(x_56); -lean_dec(x_50); -lean_dec(x_45); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_28); -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_344 = lean_ctor_get(x_62, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_62, 1); -lean_inc(x_345); -lean_dec(x_62); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set(x_346, 1, x_345); -return x_346; -} -} -else -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; -lean_dec(x_50); -lean_dec(x_45); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_28); -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_347 = lean_ctor_get(x_52, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_52, 1); -lean_inc(x_348); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_ctor_get(x_52, 0); +lean_inc(x_67); lean_dec(x_52); -x_349 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_349, 0, x_347); -lean_ctor_set(x_349, 1, x_348); -return x_349; +x_68 = l_Lean_Elab_Term_Do_hasReturn___closed__1; +x_69 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_68, x_67); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) +{ +uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_71 = 0; +x_72 = l_Lean_SourceInfo_fromRef(x_32, x_71); +x_73 = lean_st_ref_get(x_9, x_66); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +lean_dec(x_74); +x_77 = lean_environment_main_module(x_76); +x_78 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__5; +lean_inc(x_28); +x_79 = l_Lean_addMacroScope(x_77, x_78, x_28); +x_80 = lean_box(0); +x_81 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__4; +lean_inc(x_72); +x_82 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_82, 0, x_72); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_82, 2, x_79); +lean_ctor_set(x_82, 3, x_80); +x_83 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple), 5, 3); +lean_closure_set(x_83, 0, x_62); +lean_closure_set(x_83, 1, x_82); +lean_closure_set(x_83, 2, x_58); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_84 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_83, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_75); +if (lean_obj_tag(x_84) == 0) +{ +if (lean_obj_tag(x_39) == 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; 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; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_st_ref_get(x_9, x_86); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = lean_ctor_get(x_88, 0); +lean_inc(x_90); +lean_dec(x_88); +x_91 = lean_environment_main_module(x_90); +x_92 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; +lean_inc(x_72); +x_93 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_93, 0, x_72); +lean_ctor_set(x_93, 1, x_92); +x_94 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_72); +x_95 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_95, 0, x_72); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_addMacroScope(x_91, x_78, x_28); +lean_inc(x_72); +x_97 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_97, 0, x_72); +lean_ctor_set(x_97, 1, x_81); +lean_ctor_set(x_97, 2, x_96); +lean_ctor_set(x_97, 3, x_80); +x_98 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; +lean_inc(x_72); +x_99 = l_Lean_Syntax_node2(x_72, x_98, x_37, x_97); +x_100 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +lean_inc(x_72); +x_101 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_101, 0, x_72); +lean_ctor_set(x_101, 1, x_98); +lean_ctor_set(x_101, 2, x_100); +x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; +lean_inc(x_72); +x_103 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_103, 0, x_72); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; +lean_inc(x_72); +x_105 = l_Lean_Syntax_node4(x_72, x_104, x_99, x_101, x_103, x_85); +x_106 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +lean_inc(x_72); +x_107 = l_Lean_Syntax_node2(x_72, x_106, x_95, x_105); +x_108 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; +lean_inc(x_65); +x_109 = l_Lean_Syntax_node4(x_72, x_108, x_93, x_47, x_65, x_107); +x_110 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_109, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_89); +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 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1(x_2, x_78, x_81, x_80, x_65, x_111, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_112); +return x_113; +} +else +{ +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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_114 = lean_ctor_get(x_84, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_84, 1); +lean_inc(x_115); +lean_dec(x_84); +x_116 = lean_ctor_get(x_39, 0); +lean_inc(x_116); +lean_dec(x_39); +x_117 = lean_st_ref_get(x_9, x_115); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = lean_ctor_get(x_118, 0); +lean_inc(x_120); +lean_dec(x_118); +x_121 = lean_environment_main_module(x_120); +x_122 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; +lean_inc(x_72); +x_123 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_123, 0, x_72); +lean_ctor_set(x_123, 1, x_122); +x_124 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_72); +x_125 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_125, 0, x_72); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Lean_addMacroScope(x_121, x_78, x_28); +lean_inc(x_72); +x_127 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_127, 0, x_72); +lean_ctor_set(x_127, 1, x_81); +lean_ctor_set(x_127, 2, x_126); +lean_ctor_set(x_127, 3, x_80); +x_128 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; +lean_inc(x_72); +x_129 = l_Lean_Syntax_node3(x_72, x_128, x_37, x_116, x_127); +x_130 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +lean_inc(x_72); +x_131 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_131, 0, x_72); +lean_ctor_set(x_131, 1, x_128); +lean_ctor_set(x_131, 2, x_130); +x_132 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; +lean_inc(x_72); +x_133 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_133, 0, x_72); +lean_ctor_set(x_133, 1, x_132); +x_134 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; +lean_inc(x_72); +x_135 = l_Lean_Syntax_node4(x_72, x_134, x_129, x_131, x_133, x_114); +x_136 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +lean_inc(x_72); +x_137 = l_Lean_Syntax_node2(x_72, x_136, x_125, x_135); +x_138 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; +lean_inc(x_65); +x_139 = l_Lean_Syntax_node4(x_72, x_138, x_123, x_47, x_65, x_137); +x_140 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_139, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_119); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1(x_2, x_78, x_81, x_80, x_65, x_141, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_142); +return x_143; } } else { -lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_45); +lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_72); +lean_dec(x_65); +lean_dec(x_47); +lean_dec(x_39); lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_31); -lean_dec(x_30); +lean_dec(x_33); lean_dec(x_28); lean_dec(x_9); lean_dec(x_7); @@ -41824,25 +41423,515 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_350 = lean_ctor_get(x_49, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_49, 1); -lean_inc(x_351); -lean_dec(x_49); -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_350); -lean_ctor_set(x_352, 1, x_351); -return x_352; +x_144 = lean_ctor_get(x_84, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_84, 1); +lean_inc(x_145); +lean_dec(x_84); +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; } } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; +uint8_t 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; +x_147 = 0; +x_148 = l_Lean_SourceInfo_fromRef(x_32, x_147); +x_149 = lean_st_ref_get(x_9, x_66); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +lean_dec(x_150); +x_153 = lean_environment_main_module(x_152); +x_154 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__5; +lean_inc(x_28); +x_155 = l_Lean_addMacroScope(x_153, x_154, x_28); +x_156 = lean_box(0); +x_157 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__4; +lean_inc(x_148); +x_158 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_158, 0, x_148); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set(x_158, 2, x_155); +lean_ctor_set(x_158, 3, x_156); +x_159 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple), 5, 3); +lean_closure_set(x_159, 0, x_62); +lean_closure_set(x_159, 1, x_158); +lean_closure_set(x_159, 2, x_58); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_160 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_159, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_151); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = lean_st_ref_get(x_9, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = lean_ctor_get(x_164, 0); +lean_inc(x_166); +lean_dec(x_164); +x_167 = lean_environment_main_module(x_166); +x_168 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8; +lean_inc(x_28); +x_169 = l_Lean_addMacroScope(x_167, x_168, x_28); +x_170 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7; +x_171 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13; +lean_inc(x_148); +x_172 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_172, 0, x_148); +lean_ctor_set(x_172, 1, x_170); +lean_ctor_set(x_172, 2, x_169); +lean_ctor_set(x_172, 3, x_171); +x_173 = lean_ctor_get(x_3, 2); +lean_inc(x_173); +x_174 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__2; +lean_inc(x_148); +x_175 = l_Lean_Syntax_node1(x_148, x_174, x_173); +x_176 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +lean_inc(x_148); +x_177 = l_Lean_Syntax_node2(x_148, x_176, x_172, x_175); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 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; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 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_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; +x_178 = lean_st_ref_get(x_9, x_165); +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec(x_178); +x_181 = lean_ctor_get(x_179, 0); +lean_inc(x_181); +lean_dec(x_179); +x_182 = lean_environment_main_module(x_181); +x_183 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; +lean_inc(x_148); +x_184 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_184, 0, x_148); +lean_ctor_set(x_184, 1, x_183); +x_185 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_148); +x_186 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_186, 0, x_148); +lean_ctor_set(x_186, 1, x_185); +x_187 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; +lean_inc(x_28); +lean_inc(x_182); +x_188 = l_Lean_addMacroScope(x_182, x_187, x_28); +x_189 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__2; +x_190 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__4; +lean_inc(x_148); +x_191 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_191, 0, x_148); +lean_ctor_set(x_191, 1, x_189); +lean_ctor_set(x_191, 2, x_188); +lean_ctor_set(x_191, 3, x_190); +x_192 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_inc(x_28); +lean_inc(x_182); +x_193 = l_Lean_addMacroScope(x_182, x_192, x_28); +x_194 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +x_195 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; +lean_inc(x_148); +x_196 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_196, 0, x_148); +lean_ctor_set(x_196, 1, x_194); +lean_ctor_set(x_196, 2, x_193); +lean_ctor_set(x_196, 3, x_195); +x_197 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__8; +lean_inc(x_148); +x_198 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_198, 0, x_148); +lean_ctor_set(x_198, 1, x_197); +lean_inc(x_177); +lean_inc(x_148); +x_199 = l_Lean_Syntax_node1(x_148, x_174, x_177); +x_200 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__16; +lean_inc(x_148); +x_201 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_201, 0, x_148); +lean_ctor_set(x_201, 1, x_200); +x_202 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; +lean_inc(x_201); +lean_inc(x_198); +lean_inc(x_186); +lean_inc(x_148); +x_203 = l_Lean_Syntax_node5(x_148, x_202, x_186, x_196, x_198, x_199, x_201); +lean_inc(x_65); +lean_inc(x_148); +x_204 = l_Lean_Syntax_node2(x_148, x_174, x_203, x_65); +lean_inc(x_148); +x_205 = l_Lean_Syntax_node2(x_148, x_176, x_191, x_204); +x_206 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; +lean_inc(x_201); +lean_inc(x_186); +lean_inc(x_148); +x_207 = l_Lean_Syntax_node3(x_148, x_206, x_186, x_205, x_201); +x_208 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_148); +x_209 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_209, 0, x_148); +lean_ctor_set(x_209, 1, x_208); +lean_inc(x_28); +lean_inc(x_182); +x_210 = l_Lean_addMacroScope(x_182, x_154, x_28); +lean_inc(x_148); +x_211 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_211, 0, x_148); +lean_ctor_set(x_211, 1, x_157); +lean_ctor_set(x_211, 2, x_210); +lean_ctor_set(x_211, 3, x_156); +x_212 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; +x_213 = l_Lean_addMacroScope(x_182, x_212, x_28); +x_214 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; +x_215 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__19; +lean_inc(x_148); +x_216 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_216, 0, x_148); +lean_ctor_set(x_216, 1, x_214); +lean_ctor_set(x_216, 2, x_213); +lean_ctor_set(x_216, 3, x_215); +x_217 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__21; +lean_inc(x_148); +x_218 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_218, 0, x_148); +lean_ctor_set(x_218, 1, x_217); +x_219 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_AltExpr_vars___spec__1___closed__2; +lean_inc(x_148); +x_220 = l_Lean_Syntax_node1(x_148, x_219, x_218); +lean_inc(x_148); +x_221 = l_Lean_Syntax_node2(x_148, x_174, x_177, x_220); +lean_inc(x_148); +x_222 = l_Lean_Syntax_node2(x_148, x_176, x_216, x_221); +lean_inc(x_148); +x_223 = l_Lean_Syntax_node1(x_148, x_174, x_222); +lean_inc(x_211); +lean_inc(x_148); +x_224 = l_Lean_Syntax_node5(x_148, x_202, x_186, x_211, x_198, x_223, x_201); +lean_inc(x_148); +x_225 = l_Lean_Syntax_node2(x_148, x_174, x_37, x_224); +x_226 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +lean_inc(x_148); +x_227 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_227, 0, x_148); +lean_ctor_set(x_227, 1, x_174); +lean_ctor_set(x_227, 2, x_226); +x_228 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; +lean_inc(x_148); +x_229 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_229, 0, x_148); +lean_ctor_set(x_229, 1, x_228); +x_230 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_148); +x_231 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_231, 0, x_148); +lean_ctor_set(x_231, 1, x_230); +x_232 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__17; +lean_inc(x_148); +x_233 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_233, 0, x_148); +lean_ctor_set(x_233, 1, x_232); +x_234 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; +lean_inc(x_148); +x_235 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_235, 0, x_148); +lean_ctor_set(x_235, 1, x_234); +x_236 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; +lean_inc(x_148); +x_237 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_237, 0, x_148); +lean_ctor_set(x_237, 1, x_236); +x_238 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; +lean_inc(x_148); +x_239 = l_Lean_Syntax_node1(x_148, x_238, x_237); +x_240 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_211); +lean_inc(x_148); +x_241 = l_Lean_Syntax_node3(x_148, x_240, x_211, x_235, x_239); +x_242 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +lean_inc_n(x_227, 2); +lean_inc(x_148); +x_243 = l_Lean_Syntax_node5(x_148, x_242, x_211, x_227, x_227, x_233, x_241); +x_244 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__9; +lean_inc(x_148); +x_245 = l_Lean_Syntax_node1(x_148, x_244, x_243); +x_246 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +lean_inc(x_148); +x_247 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_247, 0, x_148); +lean_ctor_set(x_247, 1, x_246); +x_248 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; +lean_inc(x_148); +x_249 = l_Lean_Syntax_node4(x_148, x_248, x_231, x_245, x_247, x_161); +x_250 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; +lean_inc(x_148); +x_251 = l_Lean_Syntax_node4(x_148, x_250, x_225, x_227, x_229, x_249); +x_252 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +lean_inc(x_148); +x_253 = l_Lean_Syntax_node2(x_148, x_252, x_209, x_251); +x_254 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; +x_255 = l_Lean_Syntax_node4(x_148, x_254, x_184, x_47, x_207, x_253); +x_256 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_255, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_180); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +x_259 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_174, x_154, x_157, x_156, x_65, x_176, x_2, x_257, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_258); +return x_259; +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; 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; 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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_260 = lean_ctor_get(x_39, 0); +lean_inc(x_260); +lean_dec(x_39); +x_261 = lean_st_ref_get(x_9, x_165); +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_ctor_get(x_262, 0); +lean_inc(x_264); +lean_dec(x_262); +x_265 = lean_environment_main_module(x_264); +x_266 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; +lean_inc(x_148); +x_267 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_267, 0, x_148); +lean_ctor_set(x_267, 1, x_266); +x_268 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_148); +x_269 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_269, 0, x_148); +lean_ctor_set(x_269, 1, x_268); +x_270 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; +lean_inc(x_28); +lean_inc(x_265); +x_271 = l_Lean_addMacroScope(x_265, x_270, x_28); +x_272 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__2; +x_273 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__4; +lean_inc(x_148); +x_274 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_274, 0, x_148); +lean_ctor_set(x_274, 1, x_272); +lean_ctor_set(x_274, 2, x_271); +lean_ctor_set(x_274, 3, x_273); +x_275 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_inc(x_28); +lean_inc(x_265); +x_276 = l_Lean_addMacroScope(x_265, x_275, x_28); +x_277 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +x_278 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; +lean_inc(x_148); +x_279 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_279, 0, x_148); +lean_ctor_set(x_279, 1, x_277); +lean_ctor_set(x_279, 2, x_276); +lean_ctor_set(x_279, 3, x_278); +x_280 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__8; +lean_inc(x_148); +x_281 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_281, 0, x_148); +lean_ctor_set(x_281, 1, x_280); +lean_inc(x_177); +lean_inc(x_148); +x_282 = l_Lean_Syntax_node1(x_148, x_174, x_177); +x_283 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__16; +lean_inc(x_148); +x_284 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_284, 0, x_148); +lean_ctor_set(x_284, 1, x_283); +x_285 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; +lean_inc(x_284); +lean_inc(x_281); +lean_inc(x_269); +lean_inc(x_148); +x_286 = l_Lean_Syntax_node5(x_148, x_285, x_269, x_279, x_281, x_282, x_284); +lean_inc(x_65); +lean_inc(x_148); +x_287 = l_Lean_Syntax_node2(x_148, x_174, x_286, x_65); +lean_inc(x_148); +x_288 = l_Lean_Syntax_node2(x_148, x_176, x_274, x_287); +x_289 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; +lean_inc(x_284); +lean_inc(x_269); +lean_inc(x_148); +x_290 = l_Lean_Syntax_node3(x_148, x_289, x_269, x_288, x_284); +x_291 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_148); +x_292 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_292, 0, x_148); +lean_ctor_set(x_292, 1, x_291); +lean_inc(x_28); +lean_inc(x_265); +x_293 = l_Lean_addMacroScope(x_265, x_154, x_28); +lean_inc(x_148); +x_294 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_294, 0, x_148); +lean_ctor_set(x_294, 1, x_157); +lean_ctor_set(x_294, 2, x_293); +lean_ctor_set(x_294, 3, x_156); +x_295 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; +x_296 = l_Lean_addMacroScope(x_265, x_295, x_28); +x_297 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; +x_298 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__19; +lean_inc(x_148); +x_299 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_299, 0, x_148); +lean_ctor_set(x_299, 1, x_297); +lean_ctor_set(x_299, 2, x_296); +lean_ctor_set(x_299, 3, x_298); +x_300 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__21; +lean_inc(x_148); +x_301 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_301, 0, x_148); +lean_ctor_set(x_301, 1, x_300); +x_302 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_AltExpr_vars___spec__1___closed__2; +lean_inc(x_148); +x_303 = l_Lean_Syntax_node1(x_148, x_302, x_301); +lean_inc(x_148); +x_304 = l_Lean_Syntax_node2(x_148, x_174, x_177, x_303); +lean_inc(x_148); +x_305 = l_Lean_Syntax_node2(x_148, x_176, x_299, x_304); +lean_inc(x_148); +x_306 = l_Lean_Syntax_node1(x_148, x_174, x_305); +lean_inc(x_294); +lean_inc(x_148); +x_307 = l_Lean_Syntax_node5(x_148, x_285, x_269, x_294, x_281, x_306, x_284); +lean_inc(x_148); +x_308 = l_Lean_Syntax_node3(x_148, x_174, x_37, x_260, x_307); +x_309 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +lean_inc(x_148); +x_310 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_310, 0, x_148); +lean_ctor_set(x_310, 1, x_174); +lean_ctor_set(x_310, 2, x_309); +x_311 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__5___lambda__2___closed__20; +lean_inc(x_148); +x_312 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_312, 0, x_148); +lean_ctor_set(x_312, 1, x_311); +x_313 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_148); +x_314 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_314, 0, x_148); +lean_ctor_set(x_314, 1, x_313); +x_315 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoLetExpr_x3f___closed__17; +lean_inc(x_148); +x_316 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_316, 0, x_148); +lean_ctor_set(x_316, 1, x_315); +x_317 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; +lean_inc(x_148); +x_318 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_318, 0, x_148); +lean_ctor_set(x_318, 1, x_317); +x_319 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; +lean_inc(x_148); +x_320 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_320, 0, x_148); +lean_ctor_set(x_320, 1, x_319); +x_321 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; +lean_inc(x_148); +x_322 = l_Lean_Syntax_node1(x_148, x_321, x_320); +x_323 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_294); +lean_inc(x_148); +x_324 = l_Lean_Syntax_node3(x_148, x_323, x_294, x_318, x_322); +x_325 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +lean_inc_n(x_310, 2); +lean_inc(x_148); +x_326 = l_Lean_Syntax_node5(x_148, x_325, x_294, x_310, x_310, x_316, x_324); +x_327 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__9; +lean_inc(x_148); +x_328 = l_Lean_Syntax_node1(x_148, x_327, x_326); +x_329 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +lean_inc(x_148); +x_330 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_330, 0, x_148); +lean_ctor_set(x_330, 1, x_329); +x_331 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; +lean_inc(x_148); +x_332 = l_Lean_Syntax_node4(x_148, x_331, x_314, x_328, x_330, x_161); +x_333 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__8; +lean_inc(x_148); +x_334 = l_Lean_Syntax_node4(x_148, x_333, x_308, x_310, x_312, x_332); +x_335 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +lean_inc(x_148); +x_336 = l_Lean_Syntax_node2(x_148, x_335, x_292, x_334); +x_337 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; +x_338 = l_Lean_Syntax_node4(x_148, x_337, x_267, x_47, x_290, x_336); +x_339 = l_Lean_Elab_Term_Do_annotate___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3(x_1, x_338, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_263); +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +lean_dec(x_339); +x_342 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_174, x_154, x_157, x_156, x_65, x_176, x_2, x_340, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_341); +return x_342; +} +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_dec(x_148); +lean_dec(x_65); +lean_dec(x_47); +lean_dec(x_39); lean_dec(x_37); -lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_28); +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_343 = lean_ctor_get(x_160, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_160, 1); +lean_inc(x_344); +lean_dec(x_160); +x_345 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_345, 0, x_343); +lean_ctor_set(x_345, 1, x_344); +return x_345; +} +} +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_52); +lean_dec(x_47); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_30); lean_dec(x_28); lean_dec(x_9); lean_dec(x_7); @@ -41852,55 +41941,140 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_353 = lean_ctor_get(x_42, 0); +x_346 = lean_ctor_get(x_64, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_64, 1); +lean_inc(x_347); +lean_dec(x_64); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_346); +lean_ctor_set(x_348, 1, x_347); +return x_348; +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_52); +lean_dec(x_47); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +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_349 = lean_ctor_get(x_54, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_54, 1); +lean_inc(x_350); +lean_dec(x_54); +x_351 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_351, 0, x_349); +lean_ctor_set(x_351, 1, x_350); +return x_351; +} +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +lean_dec(x_47); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +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_352 = lean_ctor_get(x_51, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_51, 1); lean_inc(x_353); -x_354 = lean_ctor_get(x_42, 1); -lean_inc(x_354); -lean_dec(x_42); -x_355 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_355, 0, x_353); -lean_ctor_set(x_355, 1, x_354); -return x_355; +lean_dec(x_51); +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_352); +lean_ctor_set(x_354, 1, x_353); +return x_354; +} +} +else +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +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_355 = lean_ctor_get(x_44, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_44, 1); +lean_inc(x_356); +lean_dec(x_44); +x_357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_357, 0, x_355); +lean_ctor_set(x_357, 1, x_356); +return x_357; } } } } else { -lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; +lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; lean_dec(x_14); -x_374 = lean_array_fget(x_13, x_11); -x_375 = lean_unsigned_to_nat(0u); -x_376 = l_Lean_Syntax_getArg(x_374, x_375); -x_377 = l_Lean_Syntax_isNone(x_376); -if (x_377 == 0) +x_376 = lean_array_fget(x_13, x_11); +x_377 = lean_unsigned_to_nat(0u); +x_378 = l_Lean_Syntax_getArg(x_376, x_377); +x_379 = l_Lean_Syntax_isNone(x_378); +if (x_379 == 0) { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_374); +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +lean_dec(x_376); lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); -x_378 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__21; -x_379 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__2(x_376, x_378, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_380 = lean_ctor_get(x_379, 0); -lean_inc(x_380); -x_381 = lean_ctor_get(x_379, 1); -lean_inc(x_381); -lean_dec(x_379); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -return x_382; +x_380 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__21; +x_381 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__2(x_378, x_380, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_382 = lean_ctor_get(x_381, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_381, 1); +lean_inc(x_383); +lean_dec(x_381); +x_384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_384, 0, x_382); +lean_ctor_set(x_384, 1, x_383); +return x_384; } else { -lean_object* x_383; lean_object* x_384; -lean_dec(x_376); -x_383 = lean_box(0); -x_384 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__4(x_374, x_13, x_1, x_2, x_383, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_385; lean_object* x_386; +lean_dec(x_378); +x_385 = lean_box(0); +x_386 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__4(x_376, x_13, x_1, x_2, x_385, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); -lean_dec(x_374); -return x_384; +lean_dec(x_376); +return x_386; } } } @@ -41908,7 +42082,7 @@ return x_384; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(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; 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; lean_object* x_30; +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; uint8_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_11 = lean_unsigned_to_nat(1u); x_12 = l_Lean_Syntax_getArg(x_1, x_11); x_13 = lean_unsigned_to_nat(3u); @@ -41936,66 +42110,71 @@ x_25 = lean_ctor_get(x_8, 9); lean_inc(x_25); x_26 = lean_ctor_get(x_8, 10); lean_inc(x_26); -x_27 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_28 = lean_ctor_get(x_8, 11); +lean_inc(x_28); +x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); lean_dec(x_8); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); lean_inc(x_9); -lean_inc(x_29); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_30 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_15, x_3, x_4, x_5, x_6, x_7, x_29, x_9, x_10); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_mkUnless___boxed), 4, 2); -lean_closure_set(x_33, 0, x_12); -lean_closure_set(x_33, 1, x_31); -lean_inc(x_9); -lean_inc(x_29); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_34 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__1(x_33, x_3, x_4, x_5, x_6, x_7, x_29, x_9, x_32); -if (lean_obj_tag(x_34) == 0) +x_32 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_15, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_10); +if (lean_obj_tag(x_32) == 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 = l_Lean_Elab_Term_Do_ToCodeBlock_concatWith(x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_29, x_9, x_36); -return x_37; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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_closure((void*)(l_Lean_Elab_Term_Do_mkUnless___boxed), 4, 2); +lean_closure_set(x_35, 0, x_12); +lean_closure_set(x_35, 1, x_33); +lean_inc(x_9); +lean_inc(x_31); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_36 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__1(x_35, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Elab_Term_Do_ToCodeBlock_concatWith(x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_31, x_9, x_38); +return x_39; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_29); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_31); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -42003,21 +42182,21 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_38 = lean_ctor_get(x_34, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_34, 1); -lean_inc(x_39); -lean_dec(x_34); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +lean_dec(x_36); +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; } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_29); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_31); lean_dec(x_12); lean_dec(x_9); lean_dec(x_7); @@ -42026,15 +42205,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = lean_ctor_get(x_30, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_30, 1); -lean_inc(x_42); -lean_dec(x_30); -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; +x_43 = lean_ctor_get(x_32, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); +lean_dec(x_32); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } diff --git a/stage0/stdlib/Lean/Elab/ElabRules.c b/stage0/stdlib/Lean/Elab/ElabRules.c index ae404a2c7c..d83b25030e 100644 --- a/stage0/stdlib/Lean/Elab/ElabRules.c +++ b/stage0/stdlib/Lean/Elab/ElabRules.c @@ -474,7 +474,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -483,6 +483,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -492,19 +495,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabElabRulesAux___spec__3(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabElabRulesAux___spec__3(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } diff --git a/stage0/stdlib/Lean/Elab/Exception.c b/stage0/stdlib/Lean/Elab/Exception.c index 7384780d97..42c40bc775 100644 --- a/stage0/stdlib/Lean/Elab/Exception.c +++ b/stage0/stdlib/Lean/Elab/Exception.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Exception -// Imports: Lean.InternalExceptionId Lean.Meta.Basic +// Imports: Lean.InternalExceptionId Lean.Exception #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -779,7 +779,7 @@ return x_8; } } lean_object* initialize_Lean_InternalExceptionId(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Exception(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Exception(uint8_t builtin, lean_object* w) { lean_object * res; @@ -788,7 +788,7 @@ _G_initialized = true; res = initialize_Lean_InternalExceptionId(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Meta_Basic(builtin, lean_io_mk_world()); +res = initialize_Lean_Exception(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_4____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_4____closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Extra.c b/stage0/stdlib/Lean/Elab/Extra.c index 6d104361aa..c7a2b4d1ba 100644 --- a/stage0/stdlib/Lean/Elab/Extra.c +++ b/stage0/stdlib/Lean/Elab/Extra.c @@ -63,6 +63,7 @@ static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasCoe___cl LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHeterogeneousDefaultInstances___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go___lambda__2___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_Op_elabBinOp_declRange___closed__4; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_Op_elabBinOp_declRange___closed__6; @@ -898,6 +899,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); x_25 = l_Lean_Elab_Term_mkConst(x_24, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_20); if (lean_obj_tag(x_25) == 0) @@ -995,6 +997,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); x_56 = l_Lean_Elab_Term_mkConst(x_55, x_54, x_8, x_9, x_10, x_11, x_12, x_13, x_20); if (lean_obj_tag(x_56) == 0) @@ -1799,65 +1802,69 @@ if (x_155 == 0) lean_object* x_156; lean_object* x_157; uint8_t x_158; x_156 = lean_ctor_get(x_151, 0); x_157 = lean_ctor_get(x_151, 1); -x_158 = l_Lean_Exception_isRuntime(x_156); +x_158 = l_Lean_Exception_isInterrupt(x_156); if (x_158 == 0) { -lean_object* x_159; +uint8_t x_159; +x_159 = l_Lean_Exception_isRuntime(x_156); +if (x_159 == 0) +{ +lean_object* x_160; lean_free_object(x_151); lean_dec(x_156); lean_inc(x_3); -x_159 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_157); -if (lean_obj_tag(x_159) == 0) +x_160 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_157); +if (lean_obj_tag(x_160) == 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 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -lean_dec(x_159); -x_161 = l_Lean_indentExpr(x_132); -x_162 = l_Lean_Elab_Term_elabForIn___closed__23; +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; uint8_t x_169; +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +lean_dec(x_160); +x_162 = l_Lean_indentExpr(x_132); +x_163 = l_Lean_Elab_Term_elabForIn___closed__23; lean_ctor_set_tag(x_142, 6); -lean_ctor_set(x_142, 1, x_161); -lean_ctor_set(x_142, 0, x_162); -x_163 = l_Lean_Elab_Term_elabForIn___closed__25; +lean_ctor_set(x_142, 1, x_162); +lean_ctor_set(x_142, 0, x_163); +x_164 = l_Lean_Elab_Term_elabForIn___closed__25; lean_ctor_set_tag(x_134, 6); -lean_ctor_set(x_134, 1, x_163); +lean_ctor_set(x_134, 1, x_164); lean_ctor_set(x_134, 0, x_142); -x_164 = l_Lean_indentExpr(x_129); +x_165 = l_Lean_indentExpr(x_129); lean_ctor_set_tag(x_19, 6); -lean_ctor_set(x_19, 1, x_164); +lean_ctor_set(x_19, 1, x_165); lean_ctor_set(x_19, 0, x_134); -x_165 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_166 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_166, 0, x_19); -lean_ctor_set(x_166, 1, x_165); -x_167 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_166, x_3, x_4, x_5, x_6, x_7, x_8, x_160); +x_166 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_167 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_167, 0, x_19); +lean_ctor_set(x_167, 1, x_166); +x_168 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_161); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_168 = !lean_is_exclusive(x_167); -if (x_168 == 0) +x_169 = !lean_is_exclusive(x_168); +if (x_169 == 0) { -return x_167; +return x_168; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_167, 0); -x_170 = lean_ctor_get(x_167, 1); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_168, 0); +x_171 = lean_ctor_get(x_168, 1); +lean_inc(x_171); lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_167); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); -return x_171; +lean_dec(x_168); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +return x_172; } } else { -uint8_t x_172; +uint8_t x_173; lean_free_object(x_142); lean_free_object(x_134); lean_dec(x_132); @@ -1869,23 +1876,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_172 = !lean_is_exclusive(x_159); -if (x_172 == 0) +x_173 = !lean_is_exclusive(x_160); +if (x_173 == 0) { -return x_159; +return x_160; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_159, 0); -x_174 = lean_ctor_get(x_159, 1); +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_160, 0); +x_175 = lean_ctor_get(x_160, 1); +lean_inc(x_175); lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_159); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; +lean_dec(x_160); +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; } } } @@ -1907,72 +1914,92 @@ return x_151; } else { -lean_object* x_176; lean_object* x_177; uint8_t x_178; -x_176 = lean_ctor_get(x_151, 0); -x_177 = lean_ctor_get(x_151, 1); +lean_free_object(x_142); +lean_free_object(x_134); +lean_dec(x_132); +lean_dec(x_129); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_151; +} +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_177 = lean_ctor_get(x_151, 0); +x_178 = lean_ctor_get(x_151, 1); +lean_inc(x_178); lean_inc(x_177); -lean_inc(x_176); lean_dec(x_151); -x_178 = l_Lean_Exception_isRuntime(x_176); -if (x_178 == 0) +x_179 = l_Lean_Exception_isInterrupt(x_177); +if (x_179 == 0) { -lean_object* x_179; -lean_dec(x_176); +uint8_t x_180; +x_180 = l_Lean_Exception_isRuntime(x_177); +if (x_180 == 0) +{ +lean_object* x_181; +lean_dec(x_177); lean_inc(x_3); -x_179 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_177); -if (lean_obj_tag(x_179) == 0) +x_181 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_178); +if (lean_obj_tag(x_181) == 0) { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_180 = lean_ctor_get(x_179, 1); -lean_inc(x_180); -lean_dec(x_179); -x_181 = l_Lean_indentExpr(x_132); -x_182 = l_Lean_Elab_Term_elabForIn___closed__23; +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; +x_182 = lean_ctor_get(x_181, 1); +lean_inc(x_182); +lean_dec(x_181); +x_183 = l_Lean_indentExpr(x_132); +x_184 = l_Lean_Elab_Term_elabForIn___closed__23; lean_ctor_set_tag(x_142, 6); -lean_ctor_set(x_142, 1, x_181); -lean_ctor_set(x_142, 0, x_182); -x_183 = l_Lean_Elab_Term_elabForIn___closed__25; +lean_ctor_set(x_142, 1, x_183); +lean_ctor_set(x_142, 0, x_184); +x_185 = l_Lean_Elab_Term_elabForIn___closed__25; lean_ctor_set_tag(x_134, 6); -lean_ctor_set(x_134, 1, x_183); +lean_ctor_set(x_134, 1, x_185); lean_ctor_set(x_134, 0, x_142); -x_184 = l_Lean_indentExpr(x_129); +x_186 = l_Lean_indentExpr(x_129); lean_ctor_set_tag(x_19, 6); -lean_ctor_set(x_19, 1, x_184); +lean_ctor_set(x_19, 1, x_186); lean_ctor_set(x_19, 0, x_134); -x_185 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_186 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_186, 0, x_19); -lean_ctor_set(x_186, 1, x_185); -x_187 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_186, x_3, x_4, x_5, x_6, x_7, x_8, x_180); +x_187 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_188 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_188, 0, x_19); +lean_ctor_set(x_188, 1, x_187); +x_189 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_188, x_3, x_4, x_5, x_6, x_7, x_8, x_182); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_190 = x_187; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; } else { - lean_dec_ref(x_187); - x_190 = lean_box(0); + lean_dec_ref(x_189); + x_192 = lean_box(0); } -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(1, 2, 0); } else { - x_191 = x_190; + x_193 = x_192; } -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); -return x_191; +lean_ctor_set(x_193, 0, x_190); +lean_ctor_set(x_193, 1, x_191); +return x_193; } else { -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_free_object(x_142); lean_free_object(x_134); lean_dec(x_132); @@ -1984,31 +2011,31 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_192 = lean_ctor_get(x_179, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_179, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_194 = x_179; +x_194 = lean_ctor_get(x_181, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_181, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_196 = x_181; } else { - lean_dec_ref(x_179); - x_194 = lean_box(0); + lean_dec_ref(x_181); + x_196 = lean_box(0); } -if (lean_is_scalar(x_194)) { - x_195 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); } else { - x_195 = x_194; + x_197 = x_196; } -lean_ctor_set(x_195, 0, x_192); -lean_ctor_set(x_195, 1, x_193); -return x_195; +lean_ctor_set(x_197, 0, x_194); +lean_ctor_set(x_197, 1, x_195); +return x_197; } } else { -lean_object* x_196; +lean_object* x_198; lean_free_object(x_142); lean_free_object(x_134); lean_dec(x_132); @@ -2020,150 +2047,140 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_176); -lean_ctor_set(x_196, 1, x_177); -return x_196; +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_177); +lean_ctor_set(x_198, 1, x_178); +return x_198; +} +} +else +{ +lean_object* x_199; +lean_free_object(x_142); +lean_free_object(x_134); +lean_dec(x_132); +lean_dec(x_129); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_177); +lean_ctor_set(x_199, 1, x_178); +return x_199; } } } } else { -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; -x_197 = lean_ctor_get(x_142, 0); -x_198 = lean_ctor_get(x_142, 1); -lean_inc(x_198); -lean_inc(x_197); +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; +x_200 = lean_ctor_get(x_142, 0); +x_201 = lean_ctor_get(x_142, 1); +lean_inc(x_201); +lean_inc(x_200); lean_dec(x_142); -x_199 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; +x_202 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; lean_inc(x_129); -x_200 = lean_array_push(x_199, x_129); +x_203 = lean_array_push(x_202, x_129); lean_inc(x_132); -x_201 = lean_array_push(x_200, x_132); -lean_inc(x_197); -x_202 = lean_array_push(x_201, x_197); -x_203 = l_Lean_Elab_Term_elabForIn___closed__21; +x_204 = lean_array_push(x_203, x_132); +lean_inc(x_200); +x_205 = lean_array_push(x_204, x_200); +x_206 = l_Lean_Elab_Term_elabForIn___closed__21; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_204 = l_Lean_Meta_mkAppM(x_203, x_202, x_5, x_6, x_7, x_8, x_198); -if (lean_obj_tag(x_204) == 0) +x_207 = l_Lean_Meta_mkAppM(x_206, x_205, x_5, x_6, x_7, x_8, x_201); +if (lean_obj_tag(x_207) == 0) { -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_free_object(x_134); lean_dec(x_132); lean_free_object(x_19); -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_Lean_Elab_Term_elabForIn___lambda__1(x_129, x_197, x_14, x_16, x_18, x_2, x_205, x_3, x_4, x_5, x_6, x_7, x_8, x_206); -return x_207; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec(x_207); +x_210 = l_Lean_Elab_Term_elabForIn___lambda__1(x_129, x_200, x_14, x_16, x_18, x_2, x_208, x_3, x_4, x_5, x_6, x_7, x_8, x_209); +return x_210; } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; -lean_dec(x_197); +lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; +lean_dec(x_200); lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_2); -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; +x_211 = lean_ctor_get(x_207, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_207, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_213 = x_207; } else { - lean_dec_ref(x_204); - x_210 = lean_box(0); + lean_dec_ref(x_207); + x_213 = lean_box(0); } -x_211 = l_Lean_Exception_isRuntime(x_208); -if (x_211 == 0) +x_214 = l_Lean_Exception_isInterrupt(x_211); +if (x_214 == 0) { -lean_object* x_212; -lean_dec(x_210); -lean_dec(x_208); +uint8_t x_215; +x_215 = l_Lean_Exception_isRuntime(x_211); +if (x_215 == 0) +{ +lean_object* x_216; +lean_dec(x_213); +lean_dec(x_211); lean_inc(x_3); -x_212 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_209); -if (lean_obj_tag(x_212) == 0) +x_216 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_212); +if (lean_obj_tag(x_216) == 0) { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -lean_dec(x_212); -x_214 = l_Lean_indentExpr(x_132); -x_215 = l_Lean_Elab_Term_elabForIn___closed__23; -x_216 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_214); -x_217 = l_Lean_Elab_Term_elabForIn___closed__25; -lean_ctor_set_tag(x_134, 6); -lean_ctor_set(x_134, 1, x_217); -lean_ctor_set(x_134, 0, x_216); -x_218 = l_Lean_indentExpr(x_129); -lean_ctor_set_tag(x_19, 6); -lean_ctor_set(x_19, 1, x_218); -lean_ctor_set(x_19, 0, x_134); -x_219 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_217 = lean_ctor_get(x_216, 1); +lean_inc(x_217); +lean_dec(x_216); +x_218 = l_Lean_indentExpr(x_132); +x_219 = l_Lean_Elab_Term_elabForIn___closed__23; x_220 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_220, 0, x_19); -lean_ctor_set(x_220, 1, x_219); -x_221 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_220, x_3, x_4, x_5, x_6, x_7, x_8, x_213); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_218); +x_221 = l_Lean_Elab_Term_elabForIn___closed__25; +lean_ctor_set_tag(x_134, 6); +lean_ctor_set(x_134, 1, x_221); +lean_ctor_set(x_134, 0, x_220); +x_222 = l_Lean_indentExpr(x_129); +lean_ctor_set_tag(x_19, 6); +lean_ctor_set(x_19, 1, x_222); +lean_ctor_set(x_19, 0, x_134); +x_223 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_224 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_224, 0, x_19); +lean_ctor_set(x_224, 1, x_223); +x_225 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_224, x_3, x_4, x_5, x_6, x_7, x_8, x_217); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_224 = x_221; -} else { - lean_dec_ref(x_221); - x_224 = lean_box(0); -} -if (lean_is_scalar(x_224)) { - x_225 = lean_alloc_ctor(1, 2, 0); -} else { - x_225 = x_224; -} -lean_ctor_set(x_225, 0, x_222); -lean_ctor_set(x_225, 1, x_223); -return x_225; -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_free_object(x_134); -lean_dec(x_132); -lean_dec(x_129); -lean_free_object(x_19); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_226 = lean_ctor_get(x_212, 0); +x_226 = lean_ctor_get(x_225, 0); lean_inc(x_226); -x_227 = lean_ctor_get(x_212, 1); +x_227 = lean_ctor_get(x_225, 1); lean_inc(x_227); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_228 = x_212; +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_228 = x_225; } else { - lean_dec_ref(x_212); + lean_dec_ref(x_225); x_228 = lean_box(0); } if (lean_is_scalar(x_228)) { @@ -2175,10 +2192,9 @@ lean_ctor_set(x_229, 0, x_226); lean_ctor_set(x_229, 1, x_227); return x_229; } -} else { -lean_object* x_230; +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_free_object(x_134); lean_dec(x_132); lean_dec(x_129); @@ -2189,159 +2205,221 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_210)) { - x_230 = lean_alloc_ctor(1, 2, 0); +x_230 = lean_ctor_get(x_216, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_216, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_232 = x_216; } else { - x_230 = x_210; + lean_dec_ref(x_216); + x_232 = lean_box(0); } -lean_ctor_set(x_230, 0, x_208); -lean_ctor_set(x_230, 1, x_209); -return x_230; +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(1, 2, 0); +} else { + x_233 = x_232; +} +lean_ctor_set(x_233, 0, x_230); +lean_ctor_set(x_233, 1, x_231); +return x_233; +} +} +else +{ +lean_object* x_234; +lean_free_object(x_134); +lean_dec(x_132); +lean_dec(x_129); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_213)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_213; +} +lean_ctor_set(x_234, 0, x_211); +lean_ctor_set(x_234, 1, x_212); +return x_234; +} +} +else +{ +lean_object* x_235; +lean_free_object(x_134); +lean_dec(x_132); +lean_dec(x_129); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_213)) { + x_235 = lean_alloc_ctor(1, 2, 0); +} else { + x_235 = x_213; +} +lean_ctor_set(x_235, 0, x_211); +lean_ctor_set(x_235, 1, x_212); +return x_235; } } } } else { -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t 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; -x_231 = lean_ctor_get(x_134, 0); -x_232 = lean_ctor_get(x_134, 1); -lean_inc(x_232); -lean_inc(x_231); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* 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; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_236 = lean_ctor_get(x_134, 0); +x_237 = lean_ctor_get(x_134, 1); +lean_inc(x_237); +lean_inc(x_236); lean_dec(x_134); -x_233 = l_Lean_Level_succ___override(x_231); -x_234 = l_Lean_Expr_sort___override(x_233); -lean_ctor_set(x_20, 0, x_234); -x_235 = 0; -x_236 = lean_box(0); +x_238 = l_Lean_Level_succ___override(x_236); +x_239 = l_Lean_Expr_sort___override(x_238); +lean_ctor_set(x_20, 0, x_239); +x_240 = 0; +x_241 = lean_box(0); lean_inc(x_5); -x_237 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_20, x_235, x_236, x_5, x_6, x_7, x_8, x_232); -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_240 = x_237; +x_242 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_20, x_240, x_241, x_5, x_6, x_7, x_8, x_237); +x_243 = lean_ctor_get(x_242, 0); +lean_inc(x_243); +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_245 = x_242; } else { - lean_dec_ref(x_237); - x_240 = lean_box(0); + lean_dec_ref(x_242); + x_245 = lean_box(0); } -x_241 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; +x_246 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; lean_inc(x_129); -x_242 = lean_array_push(x_241, x_129); +x_247 = lean_array_push(x_246, x_129); lean_inc(x_132); -x_243 = lean_array_push(x_242, x_132); -lean_inc(x_238); -x_244 = lean_array_push(x_243, x_238); -x_245 = l_Lean_Elab_Term_elabForIn___closed__21; +x_248 = lean_array_push(x_247, x_132); +lean_inc(x_243); +x_249 = lean_array_push(x_248, x_243); +x_250 = l_Lean_Elab_Term_elabForIn___closed__21; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_246 = l_Lean_Meta_mkAppM(x_245, x_244, x_5, x_6, x_7, x_8, x_239); -if (lean_obj_tag(x_246) == 0) +x_251 = l_Lean_Meta_mkAppM(x_250, x_249, x_5, x_6, x_7, x_8, x_244); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_240); +lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_245); lean_dec(x_132); lean_free_object(x_19); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -x_249 = l_Lean_Elab_Term_elabForIn___lambda__1(x_129, x_238, x_14, x_16, x_18, x_2, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_248); -return x_249; +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_251, 1); +lean_inc(x_253); +lean_dec(x_251); +x_254 = l_Lean_Elab_Term_elabForIn___lambda__1(x_129, x_243, x_14, x_16, x_18, x_2, x_252, x_3, x_4, x_5, x_6, x_7, x_8, x_253); +return x_254; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; -lean_dec(x_238); +lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +lean_dec(x_243); lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); lean_dec(x_2); -x_250 = lean_ctor_get(x_246, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_246, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_252 = x_246; -} else { - lean_dec_ref(x_246); - x_252 = lean_box(0); -} -x_253 = l_Lean_Exception_isRuntime(x_250); -if (x_253 == 0) -{ -lean_object* x_254; -lean_dec(x_252); -lean_dec(x_250); -lean_inc(x_3); -x_254 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_251); -if (lean_obj_tag(x_254) == 0) -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_255 = lean_ctor_get(x_254, 1); +x_255 = lean_ctor_get(x_251, 0); lean_inc(x_255); -lean_dec(x_254); -x_256 = l_Lean_indentExpr(x_132); -x_257 = l_Lean_Elab_Term_elabForIn___closed__23; -if (lean_is_scalar(x_240)) { - x_258 = lean_alloc_ctor(6, 2, 0); +x_256 = lean_ctor_get(x_251, 1); +lean_inc(x_256); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_257 = x_251; } else { - x_258 = x_240; - lean_ctor_set_tag(x_258, 6); + lean_dec_ref(x_251); + x_257 = lean_box(0); } -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = l_Lean_Elab_Term_elabForIn___closed__25; -x_260 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -x_261 = l_Lean_indentExpr(x_129); +x_258 = l_Lean_Exception_isInterrupt(x_255); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = l_Lean_Exception_isRuntime(x_255); +if (x_259 == 0) +{ +lean_object* x_260; +lean_dec(x_257); +lean_dec(x_255); +lean_inc(x_3); +x_260 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_256); +if (lean_obj_tag(x_260) == 0) +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_261 = lean_ctor_get(x_260, 1); +lean_inc(x_261); +lean_dec(x_260); +x_262 = l_Lean_indentExpr(x_132); +x_263 = l_Lean_Elab_Term_elabForIn___closed__23; +if (lean_is_scalar(x_245)) { + x_264 = lean_alloc_ctor(6, 2, 0); +} else { + x_264 = x_245; + lean_ctor_set_tag(x_264, 6); +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +x_265 = l_Lean_Elab_Term_elabForIn___closed__25; +x_266 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set(x_266, 1, x_265); +x_267 = l_Lean_indentExpr(x_129); lean_ctor_set_tag(x_19, 6); -lean_ctor_set(x_19, 1, x_261); -lean_ctor_set(x_19, 0, x_260); -x_262 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_263 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_263, 0, x_19); -lean_ctor_set(x_263, 1, x_262); -x_264 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_263, x_3, x_4, x_5, x_6, x_7, x_8, x_255); +lean_ctor_set(x_19, 1, x_267); +lean_ctor_set(x_19, 0, x_266); +x_268 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_269 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_269, 0, x_19); +lean_ctor_set(x_269, 1, x_268); +x_270 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_269, x_3, x_4, x_5, x_6, x_7, x_8, x_261); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_267 = x_264; +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_273 = x_270; } else { - lean_dec_ref(x_264); - x_267 = lean_box(0); + lean_dec_ref(x_270); + x_273 = lean_box(0); } -if (lean_is_scalar(x_267)) { - x_268 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_273)) { + x_274 = lean_alloc_ctor(1, 2, 0); } else { - x_268 = x_267; + x_274 = x_273; } -lean_ctor_set(x_268, 0, x_265); -lean_ctor_set(x_268, 1, x_266); -return x_268; +lean_ctor_set(x_274, 0, x_271); +lean_ctor_set(x_274, 1, x_272); +return x_274; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec(x_240); +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_245); lean_dec(x_132); lean_dec(x_129); lean_free_object(x_19); @@ -2351,32 +2429,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_269 = lean_ctor_get(x_254, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_254, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_271 = x_254; +x_275 = lean_ctor_get(x_260, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_260, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + lean_ctor_release(x_260, 1); + x_277 = x_260; } else { - lean_dec_ref(x_254); - x_271 = lean_box(0); + lean_dec_ref(x_260); + x_277 = lean_box(0); } -if (lean_is_scalar(x_271)) { - x_272 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_277)) { + x_278 = lean_alloc_ctor(1, 2, 0); } else { - x_272 = x_271; + x_278 = x_277; } -lean_ctor_set(x_272, 0, x_269); -lean_ctor_set(x_272, 1, x_270); -return x_272; +lean_ctor_set(x_278, 0, x_275); +lean_ctor_set(x_278, 1, x_276); +return x_278; } } else { -lean_object* x_273; -lean_dec(x_240); +lean_object* x_279; +lean_dec(x_245); lean_dec(x_132); lean_dec(x_129); lean_free_object(x_19); @@ -2386,21 +2464,44 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_252)) { - x_273 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_257)) { + x_279 = lean_alloc_ctor(1, 2, 0); } else { - x_273 = x_252; + x_279 = x_257; } -lean_ctor_set(x_273, 0, x_250); -lean_ctor_set(x_273, 1, x_251); -return x_273; +lean_ctor_set(x_279, 0, x_255); +lean_ctor_set(x_279, 1, x_256); +return x_279; +} +} +else +{ +lean_object* x_280; +lean_dec(x_245); +lean_dec(x_132); +lean_dec(x_129); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_257)) { + x_280 = lean_alloc_ctor(1, 2, 0); +} else { + x_280 = x_257; +} +lean_ctor_set(x_280, 0, x_255); +lean_ctor_set(x_280, 1, x_256); +return x_280; } } } } else { -uint8_t x_274; +uint8_t x_281; lean_dec(x_129); lean_free_object(x_20); lean_free_object(x_19); @@ -2414,29 +2515,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_274 = !lean_is_exclusive(x_131); -if (x_274 == 0) +x_281 = !lean_is_exclusive(x_131); +if (x_281 == 0) { return x_131; } else { -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = lean_ctor_get(x_131, 0); -x_276 = lean_ctor_get(x_131, 1); -lean_inc(x_276); -lean_inc(x_275); +lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_282 = lean_ctor_get(x_131, 0); +x_283 = lean_ctor_get(x_131, 1); +lean_inc(x_283); +lean_inc(x_282); lean_dec(x_131); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_276); -return x_277; +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +return x_284; } } } else { -uint8_t x_278; +uint8_t x_285; lean_free_object(x_20); lean_dec(x_125); lean_free_object(x_19); @@ -2450,29 +2551,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_278 = !lean_is_exclusive(x_128); -if (x_278 == 0) +x_285 = !lean_is_exclusive(x_128); +if (x_285 == 0) { return x_128; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_128, 0); -x_280 = lean_ctor_get(x_128, 1); -lean_inc(x_280); -lean_inc(x_279); +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_128, 0); +x_287 = lean_ctor_get(x_128, 1); +lean_inc(x_287); +lean_inc(x_286); lean_dec(x_128); -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; +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +return x_288; } } } else { -uint8_t x_282; +uint8_t x_289; lean_free_object(x_20); lean_dec(x_125); lean_free_object(x_19); @@ -2486,31 +2587,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_282 = !lean_is_exclusive(x_126); -if (x_282 == 0) +x_289 = !lean_is_exclusive(x_126); +if (x_289 == 0) { return x_126; } else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_ctor_get(x_126, 0); -x_284 = lean_ctor_get(x_126, 1); -lean_inc(x_284); -lean_inc(x_283); +lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_290 = lean_ctor_get(x_126, 0); +x_291 = lean_ctor_get(x_126, 1); +lean_inc(x_291); +lean_inc(x_290); lean_dec(x_126); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -return x_285; +x_292 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_292, 0, x_290); +lean_ctor_set(x_292, 1, x_291); +return x_292; } } } else { -lean_object* x_286; lean_object* x_287; -x_286 = lean_ctor_get(x_20, 0); -lean_inc(x_286); +lean_object* x_293; lean_object* x_294; +x_293 = lean_ctor_get(x_20, 0); +lean_inc(x_293); lean_dec(x_20); lean_inc(x_8); lean_inc(x_7); @@ -2518,329 +2619,283 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_287 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_122); -if (lean_obj_tag(x_287) == 0) +x_294 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_122); +if (lean_obj_tag(x_294) == 0) { -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_287, 1); -lean_inc(x_288); -lean_dec(x_287); +lean_object* x_295; lean_object* x_296; +x_295 = lean_ctor_get(x_294, 1); +lean_inc(x_295); +lean_dec(x_294); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_289 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_288); -if (lean_obj_tag(x_289) == 0) +x_296 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_295); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -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); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_292 = lean_infer_type(x_286, x_5, x_6, x_7, x_8, x_291); -if (lean_obj_tag(x_292) == 0) -{ -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; 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; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -lean_dec(x_292); -x_295 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_294); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_295, 1); +lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); -if (lean_is_exclusive(x_295)) { - lean_ctor_release(x_295, 0); - lean_ctor_release(x_295, 1); - x_298 = x_295; -} else { - lean_dec_ref(x_295); - x_298 = lean_box(0); -} -x_299 = l_Lean_Level_succ___override(x_296); -x_300 = l_Lean_Expr_sort___override(x_299); -x_301 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_301, 0, x_300); -x_302 = 0; -x_303 = lean_box(0); -lean_inc(x_5); -x_304 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_301, x_302, x_303, x_5, x_6, x_7, x_8, x_297); -x_305 = lean_ctor_get(x_304, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_304, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_307 = x_304; -} else { - lean_dec_ref(x_304); - x_307 = lean_box(0); -} -x_308 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; -lean_inc(x_290); -x_309 = lean_array_push(x_308, x_290); -lean_inc(x_293); -x_310 = lean_array_push(x_309, x_293); -lean_inc(x_305); -x_311 = lean_array_push(x_310, x_305); -x_312 = l_Lean_Elab_Term_elabForIn___closed__21; +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +lean_dec(x_296); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_313 = l_Lean_Meta_mkAppM(x_312, x_311, x_5, x_6, x_7, x_8, x_306); -if (lean_obj_tag(x_313) == 0) +x_299 = lean_infer_type(x_293, x_5, x_6, x_7, x_8, x_298); +if (lean_obj_tag(x_299) == 0) { -lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec(x_307); -lean_dec(x_298); -lean_dec(x_293); -lean_free_object(x_19); -x_314 = lean_ctor_get(x_313, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_313, 1); -lean_inc(x_315); -lean_dec(x_313); -x_316 = l_Lean_Elab_Term_elabForIn___lambda__1(x_290, x_305, x_14, x_16, x_18, x_2, x_314, x_3, x_4, x_5, x_6, x_7, x_8, x_315); -return x_316; +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; uint8_t 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_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 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_301); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); +lean_inc(x_304); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_305 = x_302; +} else { + lean_dec_ref(x_302); + x_305 = lean_box(0); } -else +x_306 = l_Lean_Level_succ___override(x_303); +x_307 = l_Lean_Expr_sort___override(x_306); +x_308 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_308, 0, x_307); +x_309 = 0; +x_310 = lean_box(0); +lean_inc(x_5); +x_311 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_308, x_309, x_310, x_5, x_6, x_7, x_8, x_304); +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +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_311); + x_314 = lean_box(0); +} +x_315 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; +lean_inc(x_297); +x_316 = lean_array_push(x_315, x_297); +lean_inc(x_300); +x_317 = lean_array_push(x_316, x_300); +lean_inc(x_312); +x_318 = lean_array_push(x_317, x_312); +x_319 = l_Lean_Elab_Term_elabForIn___closed__21; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_320 = l_Lean_Meta_mkAppM(x_319, x_318, x_5, x_6, x_7, x_8, x_313); +if (lean_obj_tag(x_320) == 0) { -lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; +lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_314); lean_dec(x_305); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_2); -x_317 = lean_ctor_get(x_313, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_313, 1); -lean_inc(x_318); -if (lean_is_exclusive(x_313)) { - lean_ctor_release(x_313, 0); - lean_ctor_release(x_313, 1); - x_319 = x_313; -} else { - lean_dec_ref(x_313); - x_319 = lean_box(0); -} -x_320 = l_Lean_Exception_isRuntime(x_317); -if (x_320 == 0) -{ -lean_object* x_321; -lean_dec(x_319); -lean_dec(x_317); -lean_inc(x_3); -x_321 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_318); -if (lean_obj_tag(x_321) == 0) -{ -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; -x_322 = lean_ctor_get(x_321, 1); +lean_dec(x_300); +lean_free_object(x_19); +x_321 = lean_ctor_get(x_320, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_320, 1); lean_inc(x_322); -lean_dec(x_321); -x_323 = l_Lean_indentExpr(x_293); -x_324 = l_Lean_Elab_Term_elabForIn___closed__23; -if (lean_is_scalar(x_307)) { - x_325 = lean_alloc_ctor(6, 2, 0); -} else { - x_325 = x_307; - lean_ctor_set_tag(x_325, 6); +lean_dec(x_320); +x_323 = l_Lean_Elab_Term_elabForIn___lambda__1(x_297, x_312, x_14, x_16, x_18, x_2, x_321, x_3, x_4, x_5, x_6, x_7, x_8, x_322); +return x_323; } -lean_ctor_set(x_325, 0, x_324); -lean_ctor_set(x_325, 1, x_323); -x_326 = l_Lean_Elab_Term_elabForIn___closed__25; -if (lean_is_scalar(x_298)) { - x_327 = lean_alloc_ctor(6, 2, 0); +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; +lean_dec(x_312); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_2); +x_324 = lean_ctor_get(x_320, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_320, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_326 = x_320; } else { - x_327 = x_298; - lean_ctor_set_tag(x_327, 6); + lean_dec_ref(x_320); + x_326 = lean_box(0); } -lean_ctor_set(x_327, 0, x_325); -lean_ctor_set(x_327, 1, x_326); -x_328 = l_Lean_indentExpr(x_290); +x_327 = l_Lean_Exception_isInterrupt(x_324); +if (x_327 == 0) +{ +uint8_t x_328; +x_328 = l_Lean_Exception_isRuntime(x_324); +if (x_328 == 0) +{ +lean_object* x_329; +lean_dec(x_326); +lean_dec(x_324); +lean_inc(x_3); +x_329 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_325); +if (lean_obj_tag(x_329) == 0) +{ +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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_330 = lean_ctor_get(x_329, 1); +lean_inc(x_330); +lean_dec(x_329); +x_331 = l_Lean_indentExpr(x_300); +x_332 = l_Lean_Elab_Term_elabForIn___closed__23; +if (lean_is_scalar(x_314)) { + x_333 = lean_alloc_ctor(6, 2, 0); +} else { + x_333 = x_314; + lean_ctor_set_tag(x_333, 6); +} +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_331); +x_334 = l_Lean_Elab_Term_elabForIn___closed__25; +if (lean_is_scalar(x_305)) { + x_335 = lean_alloc_ctor(6, 2, 0); +} else { + x_335 = x_305; + lean_ctor_set_tag(x_335, 6); +} +lean_ctor_set(x_335, 0, x_333); +lean_ctor_set(x_335, 1, x_334); +x_336 = l_Lean_indentExpr(x_297); lean_ctor_set_tag(x_19, 6); -lean_ctor_set(x_19, 1, x_328); -lean_ctor_set(x_19, 0, x_327); -x_329 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_330 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_330, 0, x_19); -lean_ctor_set(x_330, 1, x_329); -x_331 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_330, x_3, x_4, x_5, x_6, x_7, x_8, x_322); +lean_ctor_set(x_19, 1, x_336); +lean_ctor_set(x_19, 0, x_335); +x_337 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_338 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_338, 0, x_19); +lean_ctor_set(x_338, 1, x_337); +x_339 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_338, x_3, x_4, x_5, x_6, x_7, x_8, x_330); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_332 = lean_ctor_get(x_331, 0); -lean_inc(x_332); -x_333 = lean_ctor_get(x_331, 1); -lean_inc(x_333); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - x_334 = x_331; -} else { - lean_dec_ref(x_331); - x_334 = lean_box(0); -} -if (lean_is_scalar(x_334)) { - x_335 = lean_alloc_ctor(1, 2, 0); -} else { - x_335 = x_334; -} -lean_ctor_set(x_335, 0, x_332); -lean_ctor_set(x_335, 1, x_333); -return x_335; -} -else -{ -lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; -lean_dec(x_307); -lean_dec(x_298); -lean_dec(x_293); -lean_dec(x_290); -lean_free_object(x_19); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_336 = lean_ctor_get(x_321, 0); -lean_inc(x_336); -x_337 = lean_ctor_get(x_321, 1); -lean_inc(x_337); -if (lean_is_exclusive(x_321)) { - lean_ctor_release(x_321, 0); - lean_ctor_release(x_321, 1); - x_338 = x_321; -} else { - lean_dec_ref(x_321); - x_338 = lean_box(0); -} -if (lean_is_scalar(x_338)) { - x_339 = lean_alloc_ctor(1, 2, 0); -} else { - x_339 = x_338; -} -lean_ctor_set(x_339, 0, x_336); -lean_ctor_set(x_339, 1, x_337); -return x_339; -} -} -else -{ -lean_object* x_340; -lean_dec(x_307); -lean_dec(x_298); -lean_dec(x_293); -lean_dec(x_290); -lean_free_object(x_19); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_319)) { - x_340 = lean_alloc_ctor(1, 2, 0); -} else { - x_340 = x_319; -} -lean_ctor_set(x_340, 0, x_317); -lean_ctor_set(x_340, 1, x_318); -return x_340; -} -} -} -else -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; -lean_dec(x_290); -lean_free_object(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); -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_341 = lean_ctor_get(x_292, 0); +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); lean_inc(x_341); -x_342 = lean_ctor_get(x_292, 1); -lean_inc(x_342); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_343 = x_292; +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_292); - x_343 = lean_box(0); + lean_dec_ref(x_339); + x_342 = lean_box(0); } -if (lean_is_scalar(x_343)) { - x_344 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_342)) { + x_343 = lean_alloc_ctor(1, 2, 0); } else { - x_344 = x_343; -} -lean_ctor_set(x_344, 0, x_341); -lean_ctor_set(x_344, 1, x_342); -return x_344; + x_343 = x_342; } +lean_ctor_set(x_343, 0, x_340); +lean_ctor_set(x_343, 1, x_341); +return x_343; } else { -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -lean_dec(x_286); +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +lean_dec(x_314); +lean_dec(x_305); +lean_dec(x_300); +lean_dec(x_297); lean_free_object(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); 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_345 = lean_ctor_get(x_289, 0); +x_344 = lean_ctor_get(x_329, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_329, 1); lean_inc(x_345); -x_346 = lean_ctor_get(x_289, 1); -lean_inc(x_346); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - x_347 = x_289; +if (lean_is_exclusive(x_329)) { + lean_ctor_release(x_329, 0); + lean_ctor_release(x_329, 1); + x_346 = x_329; } else { - lean_dec_ref(x_289); - x_347 = lean_box(0); + lean_dec_ref(x_329); + x_346 = lean_box(0); } -if (lean_is_scalar(x_347)) { +if (lean_is_scalar(x_346)) { + x_347 = lean_alloc_ctor(1, 2, 0); +} else { + x_347 = x_346; +} +lean_ctor_set(x_347, 0, x_344); +lean_ctor_set(x_347, 1, x_345); +return x_347; +} +} +else +{ +lean_object* x_348; +lean_dec(x_314); +lean_dec(x_305); +lean_dec(x_300); +lean_dec(x_297); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_326)) { x_348 = lean_alloc_ctor(1, 2, 0); } else { - x_348 = x_347; + x_348 = x_326; } -lean_ctor_set(x_348, 0, x_345); -lean_ctor_set(x_348, 1, x_346); +lean_ctor_set(x_348, 0, x_324); +lean_ctor_set(x_348, 1, x_325); return x_348; } } else { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_286); +lean_object* x_349; +lean_dec(x_314); +lean_dec(x_305); +lean_dec(x_300); +lean_dec(x_297); +lean_free_object(x_19); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_326)) { + x_349 = lean_alloc_ctor(1, 2, 0); +} else { + x_349 = x_326; +} +lean_ctor_set(x_349, 0, x_324); +lean_ctor_set(x_349, 1, x_325); +return x_349; +} +} +} +else +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +lean_dec(x_297); lean_free_object(x_19); lean_dec(x_18); lean_dec(x_16); @@ -2852,43 +2907,117 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_349 = lean_ctor_get(x_287, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_287, 1); +x_350 = lean_ctor_get(x_299, 0); lean_inc(x_350); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_351 = x_287; +x_351 = lean_ctor_get(x_299, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + x_352 = x_299; } else { - lean_dec_ref(x_287); - x_351 = lean_box(0); + lean_dec_ref(x_299); + x_352 = lean_box(0); } -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_352)) { + x_353 = lean_alloc_ctor(1, 2, 0); } else { - x_352 = x_351; + x_353 = x_352; } -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +return x_353; +} +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_dec(x_293); +lean_free_object(x_19); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +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_354 = lean_ctor_get(x_296, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_296, 1); +lean_inc(x_355); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_356 = x_296; +} else { + lean_dec_ref(x_296); + x_356 = lean_box(0); +} +if (lean_is_scalar(x_356)) { + x_357 = lean_alloc_ctor(1, 2, 0); +} else { + x_357 = x_356; +} +lean_ctor_set(x_357, 0, x_354); +lean_ctor_set(x_357, 1, x_355); +return x_357; +} +} +else +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; +lean_dec(x_293); +lean_free_object(x_19); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +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_358 = lean_ctor_get(x_294, 0); +lean_inc(x_358); +x_359 = lean_ctor_get(x_294, 1); +lean_inc(x_359); +if (lean_is_exclusive(x_294)) { + lean_ctor_release(x_294, 0); + lean_ctor_release(x_294, 1); + x_360 = x_294; +} else { + lean_dec_ref(x_294); + x_360 = lean_box(0); +} +if (lean_is_scalar(x_360)) { + x_361 = lean_alloc_ctor(1, 2, 0); +} else { + x_361 = x_360; +} +lean_ctor_set(x_361, 0, x_358); +lean_ctor_set(x_361, 1, x_359); +return x_361; } } } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_353 = lean_ctor_get(x_19, 1); -lean_inc(x_353); +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_362 = lean_ctor_get(x_19, 1); +lean_inc(x_362); lean_dec(x_19); -x_354 = lean_ctor_get(x_20, 0); -lean_inc(x_354); +x_363 = lean_ctor_get(x_20, 0); +lean_inc(x_363); if (lean_is_exclusive(x_20)) { lean_ctor_release(x_20, 0); - x_355 = x_20; + x_364 = x_20; } else { lean_dec_ref(x_20); - x_355 = lean_box(0); + x_364 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); @@ -2896,66 +3025,42 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_356 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_353); -if (lean_obj_tag(x_356) == 0) +x_365 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_362); +if (lean_obj_tag(x_365) == 0) { -lean_object* x_357; lean_object* x_358; -x_357 = lean_ctor_get(x_356, 1); -lean_inc(x_357); -lean_dec(x_356); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -x_358 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_357); -if (lean_obj_tag(x_358) == 0) -{ -lean_object* x_359; lean_object* x_360; lean_object* x_361; -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_358, 1); -lean_inc(x_360); -lean_dec(x_358); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_361 = lean_infer_type(x_354, x_5, x_6, x_7, x_8, x_360); -if (lean_obj_tag(x_361) == 0) -{ -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; uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_363); -x_365 = lean_ctor_get(x_364, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 1); +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_365, 1); lean_inc(x_366); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_367 = x_364; -} else { - lean_dec_ref(x_364); - x_367 = lean_box(0); -} -x_368 = l_Lean_Level_succ___override(x_365); -x_369 = l_Lean_Expr_sort___override(x_368); -if (lean_is_scalar(x_355)) { - x_370 = lean_alloc_ctor(1, 1, 0); -} else { - x_370 = x_355; -} -lean_ctor_set(x_370, 0, x_369); -x_371 = 0; -x_372 = lean_box(0); +lean_dec(x_365); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); lean_inc(x_5); -x_373 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_370, x_371, x_372, x_5, x_6, x_7, x_8, x_366); +lean_inc(x_3); +lean_inc(x_2); +x_367 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_366); +if (lean_obj_tag(x_367) == 0) +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_368 = lean_ctor_get(x_367, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_367, 1); +lean_inc(x_369); +lean_dec(x_367); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_370 = lean_infer_type(x_363, x_5, x_6, x_7, x_8, x_369); +if (lean_obj_tag(x_370) == 0) +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 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; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_371 = lean_ctor_get(x_370, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_370, 1); +lean_inc(x_372); +lean_dec(x_370); +x_373 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_372); x_374 = lean_ctor_get(x_373, 0); lean_inc(x_374); x_375 = lean_ctor_get(x_373, 1); @@ -2968,259 +3073,236 @@ if (lean_is_exclusive(x_373)) { lean_dec_ref(x_373); x_376 = lean_box(0); } -x_377 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; -lean_inc(x_359); -x_378 = lean_array_push(x_377, x_359); -lean_inc(x_362); -x_379 = lean_array_push(x_378, x_362); -lean_inc(x_374); -x_380 = lean_array_push(x_379, x_374); -x_381 = l_Lean_Elab_Term_elabForIn___closed__21; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); +x_377 = l_Lean_Level_succ___override(x_374); +x_378 = l_Lean_Expr_sort___override(x_377); +if (lean_is_scalar(x_364)) { + x_379 = lean_alloc_ctor(1, 1, 0); +} else { + x_379 = x_364; +} +lean_ctor_set(x_379, 0, x_378); +x_380 = 0; +x_381 = lean_box(0); lean_inc(x_5); -x_382 = l_Lean_Meta_mkAppM(x_381, x_380, x_5, x_6, x_7, x_8, x_375); -if (lean_obj_tag(x_382) == 0) -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; -lean_dec(x_376); -lean_dec(x_367); -lean_dec(x_362); +x_382 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_379, x_380, x_381, x_5, x_6, x_7, x_8, x_375); x_383 = lean_ctor_get(x_382, 0); lean_inc(x_383); x_384 = lean_ctor_get(x_382, 1); lean_inc(x_384); -lean_dec(x_382); -x_385 = l_Lean_Elab_Term_elabForIn___lambda__1(x_359, x_374, x_14, x_16, x_18, x_2, x_383, x_3, x_4, x_5, x_6, x_7, x_8, x_384); -return x_385; -} -else -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; uint8_t x_389; -lean_dec(x_374); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_2); -x_386 = lean_ctor_get(x_382, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_382, 1); -lean_inc(x_387); if (lean_is_exclusive(x_382)) { lean_ctor_release(x_382, 0); lean_ctor_release(x_382, 1); - x_388 = x_382; + x_385 = x_382; } else { lean_dec_ref(x_382); - x_388 = lean_box(0); + x_385 = lean_box(0); } -x_389 = l_Lean_Exception_isRuntime(x_386); -if (x_389 == 0) +x_386 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; +lean_inc(x_368); +x_387 = lean_array_push(x_386, x_368); +lean_inc(x_371); +x_388 = lean_array_push(x_387, x_371); +lean_inc(x_383); +x_389 = lean_array_push(x_388, x_383); +x_390 = l_Lean_Elab_Term_elabForIn___closed__21; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_391 = l_Lean_Meta_mkAppM(x_390, x_389, x_5, x_6, x_7, x_8, x_384); +if (lean_obj_tag(x_391) == 0) { -lean_object* x_390; -lean_dec(x_388); -lean_dec(x_386); +lean_object* x_392; lean_object* x_393; lean_object* x_394; +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_371); +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +x_394 = l_Lean_Elab_Term_elabForIn___lambda__1(x_368, x_383, x_14, x_16, x_18, x_2, x_392, x_3, x_4, x_5, x_6, x_7, x_8, x_393); +return x_394; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; +lean_dec(x_383); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_2); +x_395 = lean_ctor_get(x_391, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_391, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_391)) { + lean_ctor_release(x_391, 0); + lean_ctor_release(x_391, 1); + x_397 = x_391; +} else { + lean_dec_ref(x_391); + x_397 = lean_box(0); +} +x_398 = l_Lean_Exception_isInterrupt(x_395); +if (x_398 == 0) +{ +uint8_t x_399; +x_399 = l_Lean_Exception_isRuntime(x_395); +if (x_399 == 0) +{ +lean_object* x_400; +lean_dec(x_397); +lean_dec(x_395); lean_inc(x_3); -x_390 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_387); -if (lean_obj_tag(x_390) == 0) +x_400 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_396); +if (lean_obj_tag(x_400) == 0) { -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_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; -x_391 = lean_ctor_get(x_390, 1); -lean_inc(x_391); -lean_dec(x_390); -x_392 = l_Lean_indentExpr(x_362); -x_393 = l_Lean_Elab_Term_elabForIn___closed__23; +lean_object* x_401; lean_object* x_402; lean_object* 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; lean_object* x_414; lean_object* x_415; +x_401 = lean_ctor_get(x_400, 1); +lean_inc(x_401); +lean_dec(x_400); +x_402 = l_Lean_indentExpr(x_371); +x_403 = l_Lean_Elab_Term_elabForIn___closed__23; +if (lean_is_scalar(x_385)) { + x_404 = lean_alloc_ctor(6, 2, 0); +} else { + x_404 = x_385; + lean_ctor_set_tag(x_404, 6); +} +lean_ctor_set(x_404, 0, x_403); +lean_ctor_set(x_404, 1, x_402); +x_405 = l_Lean_Elab_Term_elabForIn___closed__25; if (lean_is_scalar(x_376)) { - x_394 = lean_alloc_ctor(6, 2, 0); + x_406 = lean_alloc_ctor(6, 2, 0); } else { - x_394 = x_376; - lean_ctor_set_tag(x_394, 6); + x_406 = x_376; + lean_ctor_set_tag(x_406, 6); } -lean_ctor_set(x_394, 0, x_393); -lean_ctor_set(x_394, 1, x_392); -x_395 = l_Lean_Elab_Term_elabForIn___closed__25; -if (lean_is_scalar(x_367)) { - x_396 = lean_alloc_ctor(6, 2, 0); -} else { - x_396 = x_367; - lean_ctor_set_tag(x_396, 6); -} -lean_ctor_set(x_396, 0, x_394); -lean_ctor_set(x_396, 1, x_395); -x_397 = l_Lean_indentExpr(x_359); -x_398 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_398, 0, x_396); -lean_ctor_set(x_398, 1, x_397); -x_399 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_400 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_400, 0, x_398); -lean_ctor_set(x_400, 1, x_399); -x_401 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_400, x_3, x_4, x_5, x_6, x_7, x_8, x_391); +lean_ctor_set(x_406, 0, x_404); +lean_ctor_set(x_406, 1, x_405); +x_407 = l_Lean_indentExpr(x_368); +x_408 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_408, 0, x_406); +lean_ctor_set(x_408, 1, x_407); +x_409 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_410 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_410, 0, x_408); +lean_ctor_set(x_410, 1, x_409); +x_411 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_410, x_3, x_4, x_5, x_6, x_7, x_8, x_401); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_402 = lean_ctor_get(x_401, 0); -lean_inc(x_402); -x_403 = lean_ctor_get(x_401, 1); -lean_inc(x_403); -if (lean_is_exclusive(x_401)) { - lean_ctor_release(x_401, 0); - lean_ctor_release(x_401, 1); - x_404 = x_401; -} else { - lean_dec_ref(x_401); - x_404 = lean_box(0); -} -if (lean_is_scalar(x_404)) { - x_405 = lean_alloc_ctor(1, 2, 0); -} else { - x_405 = x_404; -} -lean_ctor_set(x_405, 0, x_402); -lean_ctor_set(x_405, 1, x_403); -return x_405; -} -else -{ -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; -lean_dec(x_376); -lean_dec(x_367); -lean_dec(x_362); -lean_dec(x_359); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_406 = lean_ctor_get(x_390, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_390, 1); -lean_inc(x_407); -if (lean_is_exclusive(x_390)) { - lean_ctor_release(x_390, 0); - lean_ctor_release(x_390, 1); - x_408 = x_390; -} else { - lean_dec_ref(x_390); - x_408 = lean_box(0); -} -if (lean_is_scalar(x_408)) { - x_409 = lean_alloc_ctor(1, 2, 0); -} else { - x_409 = x_408; -} -lean_ctor_set(x_409, 0, x_406); -lean_ctor_set(x_409, 1, x_407); -return x_409; -} -} -else -{ -lean_object* x_410; -lean_dec(x_376); -lean_dec(x_367); -lean_dec(x_362); -lean_dec(x_359); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_388)) { - x_410 = lean_alloc_ctor(1, 2, 0); -} else { - x_410 = x_388; -} -lean_ctor_set(x_410, 0, x_386); -lean_ctor_set(x_410, 1, x_387); -return x_410; -} -} -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -lean_dec(x_359); -lean_dec(x_355); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); -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_411 = lean_ctor_get(x_361, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_361, 1); +x_412 = lean_ctor_get(x_411, 0); lean_inc(x_412); -if (lean_is_exclusive(x_361)) { - lean_ctor_release(x_361, 0); - lean_ctor_release(x_361, 1); - x_413 = x_361; +x_413 = lean_ctor_get(x_411, 1); +lean_inc(x_413); +if (lean_is_exclusive(x_411)) { + lean_ctor_release(x_411, 0); + lean_ctor_release(x_411, 1); + x_414 = x_411; } else { - lean_dec_ref(x_361); - x_413 = lean_box(0); + lean_dec_ref(x_411); + x_414 = lean_box(0); } -if (lean_is_scalar(x_413)) { - x_414 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_414)) { + x_415 = lean_alloc_ctor(1, 2, 0); } else { - x_414 = x_413; -} -lean_ctor_set(x_414, 0, x_411); -lean_ctor_set(x_414, 1, x_412); -return x_414; + x_415 = x_414; } +lean_ctor_set(x_415, 0, x_412); +lean_ctor_set(x_415, 1, x_413); +return x_415; } else { -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -lean_dec(x_355); -lean_dec(x_354); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_14); +lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_371); +lean_dec(x_368); 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_415 = lean_ctor_get(x_358, 0); -lean_inc(x_415); -x_416 = lean_ctor_get(x_358, 1); +x_416 = lean_ctor_get(x_400, 0); lean_inc(x_416); -if (lean_is_exclusive(x_358)) { - lean_ctor_release(x_358, 0); - lean_ctor_release(x_358, 1); - x_417 = x_358; +x_417 = lean_ctor_get(x_400, 1); +lean_inc(x_417); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + x_418 = x_400; } else { - lean_dec_ref(x_358); - x_417 = lean_box(0); + lean_dec_ref(x_400); + x_418 = lean_box(0); } -if (lean_is_scalar(x_417)) { - x_418 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_418)) { + x_419 = lean_alloc_ctor(1, 2, 0); } else { - x_418 = x_417; + x_419 = x_418; } -lean_ctor_set(x_418, 0, x_415); -lean_ctor_set(x_418, 1, x_416); -return x_418; +lean_ctor_set(x_419, 0, x_416); +lean_ctor_set(x_419, 1, x_417); +return x_419; } } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; -lean_dec(x_355); -lean_dec(x_354); +lean_object* x_420; +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_371); +lean_dec(x_368); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_397)) { + x_420 = lean_alloc_ctor(1, 2, 0); +} else { + x_420 = x_397; +} +lean_ctor_set(x_420, 0, x_395); +lean_ctor_set(x_420, 1, x_396); +return x_420; +} +} +else +{ +lean_object* x_421; +lean_dec(x_385); +lean_dec(x_376); +lean_dec(x_371); +lean_dec(x_368); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_397)) { + x_421 = lean_alloc_ctor(1, 2, 0); +} else { + x_421 = x_397; +} +lean_ctor_set(x_421, 0, x_395); +lean_ctor_set(x_421, 1, x_396); +return x_421; +} +} +} +else +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; +lean_dec(x_368); +lean_dec(x_364); lean_dec(x_18); lean_dec(x_16); lean_dec(x_14); @@ -3231,26 +3313,100 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_419 = lean_ctor_get(x_356, 0); -lean_inc(x_419); -x_420 = lean_ctor_get(x_356, 1); -lean_inc(x_420); -if (lean_is_exclusive(x_356)) { - lean_ctor_release(x_356, 0); - lean_ctor_release(x_356, 1); - x_421 = x_356; +x_422 = lean_ctor_get(x_370, 0); +lean_inc(x_422); +x_423 = lean_ctor_get(x_370, 1); +lean_inc(x_423); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_424 = x_370; } else { - lean_dec_ref(x_356); - x_421 = lean_box(0); + lean_dec_ref(x_370); + x_424 = lean_box(0); } -if (lean_is_scalar(x_421)) { - x_422 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_424)) { + x_425 = lean_alloc_ctor(1, 2, 0); } else { - x_422 = x_421; + x_425 = x_424; } -lean_ctor_set(x_422, 0, x_419); -lean_ctor_set(x_422, 1, x_420); -return x_422; +lean_ctor_set(x_425, 0, x_422); +lean_ctor_set(x_425, 1, x_423); +return x_425; +} +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +lean_dec(x_364); +lean_dec(x_363); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +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_426 = lean_ctor_get(x_367, 0); +lean_inc(x_426); +x_427 = lean_ctor_get(x_367, 1); +lean_inc(x_427); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_428 = x_367; +} else { + lean_dec_ref(x_367); + x_428 = lean_box(0); +} +if (lean_is_scalar(x_428)) { + x_429 = lean_alloc_ctor(1, 2, 0); +} else { + x_429 = x_428; +} +lean_ctor_set(x_429, 0, x_426); +lean_ctor_set(x_429, 1, x_427); +return x_429; +} +} +else +{ +lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; +lean_dec(x_364); +lean_dec(x_363); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_14); +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_430 = lean_ctor_get(x_365, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_365, 1); +lean_inc(x_431); +if (lean_is_exclusive(x_365)) { + lean_ctor_release(x_365, 0); + lean_ctor_release(x_365, 1); + x_432 = x_365; +} else { + lean_dec_ref(x_365); + x_432 = lean_box(0); +} +if (lean_is_scalar(x_432)) { + x_433 = lean_alloc_ctor(1, 2, 0); +} else { + x_433 = x_432; +} +lean_ctor_set(x_433, 0, x_430); +lean_ctor_set(x_433, 1, x_431); +return x_433; } } } @@ -3496,6 +3652,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); x_25 = l_Lean_Elab_Term_mkConst(x_24, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_20); if (lean_obj_tag(x_25) == 0) @@ -3593,6 +3750,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); x_56 = l_Lean_Elab_Term_mkConst(x_55, x_54, x_8, x_9, x_10, x_11, x_12, x_13, x_20); if (lean_obj_tag(x_56) == 0) @@ -4199,7 +4357,7 @@ lean_inc(x_124); x_130 = lean_infer_type(x_124, x_5, x_6, x_7, x_8, x_129); if (lean_obj_tag(x_130) == 0) { -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; uint8_t 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_173; lean_object* x_174; +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; uint8_t 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_175; lean_object* x_176; x_131 = lean_ctor_get(x_130, 0); lean_inc(x_131); x_132 = lean_ctor_get(x_130, 1); @@ -4242,75 +4400,57 @@ lean_inc(x_142); x_146 = lean_array_push(x_145, x_142); lean_inc(x_131); x_147 = lean_array_push(x_146, x_131); -x_173 = l_Lean_Elab_Term_elabForIn_x27___closed__5; +x_175 = l_Lean_Elab_Term_elabForIn_x27___closed__5; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_174 = l_Lean_Meta_mkAppM(x_173, x_147, x_5, x_6, x_7, x_8, x_143); -if (lean_obj_tag(x_174) == 0) +x_176 = l_Lean_Meta_mkAppM(x_175, x_147, x_5, x_6, x_7, x_8, x_143); +if (lean_obj_tag(x_176) == 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; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -lean_dec(x_174); -x_177 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_177, 0, x_175); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_176, 1); +lean_inc(x_178); +lean_dec(x_176); +x_179 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_179, 0, x_177); lean_inc(x_5); -x_178 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_177, x_139, x_140, x_5, x_6, x_7, x_8, x_176); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = l_Lean_Elab_Term_elabForIn_x27___closed__10; +x_180 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_179, x_139, x_140, x_5, x_6, x_7, x_8, x_178); +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = l_Lean_Elab_Term_elabForIn_x27___closed__10; lean_inc(x_128); -x_182 = lean_array_push(x_181, x_128); +x_184 = lean_array_push(x_183, x_128); lean_inc(x_131); -x_183 = lean_array_push(x_182, x_131); +x_185 = lean_array_push(x_184, x_131); lean_inc(x_142); -x_184 = lean_array_push(x_183, x_142); -x_185 = lean_array_push(x_184, x_179); -x_186 = l_Lean_Elab_Term_elabForIn_x27___closed__9; +x_186 = lean_array_push(x_185, x_142); +x_187 = lean_array_push(x_186, x_181); +x_188 = l_Lean_Elab_Term_elabForIn_x27___closed__9; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_187 = l_Lean_Meta_mkAppM(x_186, x_185, x_5, x_6, x_7, x_8, x_180); -if (lean_obj_tag(x_187) == 0) +x_189 = l_Lean_Meta_mkAppM(x_188, x_187, x_5, x_6, x_7, x_8, x_182); +if (lean_obj_tag(x_189) == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_dec(x_144); lean_dec(x_136); lean_dec(x_131); lean_dec(x_122); -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_190 = l_Lean_Elab_Term_elabForIn_x27___lambda__1(x_128, x_142, x_124, x_16, x_18, x_2, x_188, x_3, x_4, x_5, x_6, x_7, x_8, x_189); -return x_190; -} -else -{ -lean_object* x_191; lean_object* x_192; -lean_dec(x_142); -lean_dec(x_124); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_2); -x_191 = lean_ctor_get(x_187, 0); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); lean_inc(x_191); -x_192 = lean_ctor_get(x_187, 1); -lean_inc(x_192); -lean_dec(x_187); -x_148 = x_191; -x_149 = x_192; -goto block_172; -} +lean_dec(x_189); +x_192 = l_Lean_Elab_Term_elabForIn_x27___lambda__1(x_128, x_142, x_124, x_16, x_18, x_2, x_190, x_3, x_4, x_5, x_6, x_7, x_8, x_191); +return x_192; } else { @@ -4320,87 +4460,109 @@ lean_dec(x_124); lean_dec(x_18); lean_dec(x_16); lean_dec(x_2); -x_193 = lean_ctor_get(x_174, 0); +x_193 = lean_ctor_get(x_189, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_174, 1); +x_194 = lean_ctor_get(x_189, 1); lean_inc(x_194); -lean_dec(x_174); +lean_dec(x_189); x_148 = x_193; x_149 = x_194; -goto block_172; +goto block_174; } -block_172: +} +else +{ +lean_object* x_195; lean_object* x_196; +lean_dec(x_142); +lean_dec(x_124); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_2); +x_195 = lean_ctor_get(x_176, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_176, 1); +lean_inc(x_196); +lean_dec(x_176); +x_148 = x_195; +x_149 = x_196; +goto block_174; +} +block_174: { uint8_t x_150; -x_150 = l_Lean_Exception_isRuntime(x_148); +x_150 = l_Lean_Exception_isInterrupt(x_148); if (x_150 == 0) { -lean_object* x_151; +uint8_t x_151; +x_151 = l_Lean_Exception_isRuntime(x_148); +if (x_151 == 0) +{ +lean_object* x_152; lean_dec(x_148); lean_dec(x_144); lean_inc(x_3); -x_151 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_149); -if (lean_obj_tag(x_151) == 0) +x_152 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_149); +if (lean_obj_tag(x_152) == 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -lean_dec(x_151); -x_153 = l_Lean_indentExpr(x_131); -x_154 = l_Lean_Elab_Term_elabForIn_x27___closed__8; +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +lean_dec(x_152); +x_154 = l_Lean_indentExpr(x_131); +x_155 = l_Lean_Elab_Term_elabForIn_x27___closed__8; if (lean_is_scalar(x_136)) { - x_155 = lean_alloc_ctor(6, 2, 0); + x_156 = lean_alloc_ctor(6, 2, 0); } else { - x_155 = x_136; - lean_ctor_set_tag(x_155, 6); + x_156 = x_136; + lean_ctor_set_tag(x_156, 6); } -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = l_Lean_Elab_Term_elabForIn___closed__25; +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +x_157 = l_Lean_Elab_Term_elabForIn___closed__25; if (lean_is_scalar(x_122)) { - x_157 = lean_alloc_ctor(6, 2, 0); + x_158 = lean_alloc_ctor(6, 2, 0); } else { - x_157 = x_122; - lean_ctor_set_tag(x_157, 6); + x_158 = x_122; + lean_ctor_set_tag(x_158, 6); } -lean_ctor_set(x_157, 0, x_155); -lean_ctor_set(x_157, 1, x_156); -x_158 = l_Lean_indentExpr(x_128); -x_159 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -x_160 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_161 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -x_162 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_161, x_3, x_4, x_5, x_6, x_7, x_8, x_152); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +x_159 = l_Lean_indentExpr(x_128); +x_160 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +x_161 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_162 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +x_163 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_162, x_3, x_4, x_5, x_6, x_7, x_8, x_153); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) +x_164 = !lean_is_exclusive(x_163); +if (x_164 == 0) { -return x_162; +return x_163; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_162, 0); -x_165 = lean_ctor_get(x_162, 1); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_163, 0); +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_162); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +lean_dec(x_163); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +return x_167; } } else { -uint8_t x_167; +uint8_t x_168; lean_dec(x_136); lean_dec(x_131); lean_dec(x_128); @@ -4411,29 +4573,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_167 = !lean_is_exclusive(x_151); -if (x_167 == 0) +x_168 = !lean_is_exclusive(x_152); +if (x_168 == 0) { -return x_151; +return x_152; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_151, 0); -x_169 = lean_ctor_get(x_151, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_152, 0); +x_170 = lean_ctor_get(x_152, 1); +lean_inc(x_170); lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_151); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; +lean_dec(x_152); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } else { -lean_object* x_171; +lean_object* x_172; lean_dec(x_136); lean_dec(x_131); lean_dec(x_128); @@ -4445,20 +4607,44 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); if (lean_is_scalar(x_144)) { - x_171 = lean_alloc_ctor(1, 2, 0); + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_144; - lean_ctor_set_tag(x_171, 1); + x_172 = x_144; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_171, 0, x_148); -lean_ctor_set(x_171, 1, x_149); -return x_171; +lean_ctor_set(x_172, 0, x_148); +lean_ctor_set(x_172, 1, x_149); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_136); +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_122); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_144)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_144; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_148); +lean_ctor_set(x_173, 1, x_149); +return x_173; } } } else { -uint8_t x_195; +uint8_t x_197; lean_dec(x_128); lean_free_object(x_20); lean_dec(x_124); @@ -4472,29 +4658,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_195 = !lean_is_exclusive(x_130); -if (x_195 == 0) +x_197 = !lean_is_exclusive(x_130); +if (x_197 == 0) { return x_130; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_130, 0); -x_197 = lean_ctor_get(x_130, 1); -lean_inc(x_197); -lean_inc(x_196); +lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_198 = lean_ctor_get(x_130, 0); +x_199 = lean_ctor_get(x_130, 1); +lean_inc(x_199); +lean_inc(x_198); lean_dec(x_130); -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; +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_198); +lean_ctor_set(x_200, 1, x_199); +return x_200; } } } else { -uint8_t x_199; +uint8_t x_201; lean_free_object(x_20); lean_dec(x_124); lean_dec(x_122); @@ -4507,29 +4693,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_199 = !lean_is_exclusive(x_127); -if (x_199 == 0) +x_201 = !lean_is_exclusive(x_127); +if (x_201 == 0) { return x_127; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_127, 0); -x_201 = lean_ctor_get(x_127, 1); -lean_inc(x_201); -lean_inc(x_200); +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_127, 0); +x_203 = lean_ctor_get(x_127, 1); +lean_inc(x_203); +lean_inc(x_202); lean_dec(x_127); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; +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; } } } else { -uint8_t x_203; +uint8_t x_205; lean_free_object(x_20); lean_dec(x_124); lean_dec(x_122); @@ -4542,31 +4728,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_203 = !lean_is_exclusive(x_125); -if (x_203 == 0) +x_205 = !lean_is_exclusive(x_125); +if (x_205 == 0) { return x_125; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_125, 0); -x_205 = lean_ctor_get(x_125, 1); -lean_inc(x_205); -lean_inc(x_204); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_125, 0); +x_207 = lean_ctor_get(x_125, 1); +lean_inc(x_207); +lean_inc(x_206); lean_dec(x_125); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } else { -lean_object* x_207; lean_object* x_208; -x_207 = lean_ctor_get(x_20, 0); -lean_inc(x_207); +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_20, 0); +lean_inc(x_209); lean_dec(x_20); lean_inc(x_8); lean_inc(x_7); @@ -4574,339 +4760,331 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_208 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_121); -if (lean_obj_tag(x_208) == 0) +x_210 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_121); +if (lean_obj_tag(x_210) == 0) { -lean_object* x_209; lean_object* x_210; -x_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -lean_dec(x_208); +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_210, 1); +lean_inc(x_211); +lean_dec(x_210); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); -x_210 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_209); -if (lean_obj_tag(x_210) == 0) +x_212 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_211); +if (lean_obj_tag(x_212) == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); +lean_object* x_213; lean_object* x_214; lean_object* x_215; +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); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_207); -x_213 = lean_infer_type(x_207, x_5, x_6, x_7, x_8, x_212); -if (lean_obj_tag(x_213) == 0) +lean_inc(x_209); +x_215 = lean_infer_type(x_209, x_5, x_6, x_7, x_8, x_214); +if (lean_obj_tag(x_215) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_257; lean_object* x_258; -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 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_215); -x_217 = lean_ctor_get(x_216, 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; 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_261; lean_object* x_262; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_219 = x_216; +lean_dec(x_215); +x_218 = l_Lean_Meta_mkFreshLevelMVar(x_5, x_6, x_7, x_8, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_218)) { + lean_ctor_release(x_218, 0); + lean_ctor_release(x_218, 1); + x_221 = x_218; } else { - lean_dec_ref(x_216); - x_219 = lean_box(0); + lean_dec_ref(x_218); + x_221 = lean_box(0); } -x_220 = l_Lean_Level_succ___override(x_217); -x_221 = l_Lean_Expr_sort___override(x_220); -x_222 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_222, 0, x_221); -x_223 = 0; -x_224 = lean_box(0); +x_222 = l_Lean_Level_succ___override(x_219); +x_223 = l_Lean_Expr_sort___override(x_222); +x_224 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_224, 0, x_223); +x_225 = 0; +x_226 = lean_box(0); lean_inc(x_5); -x_225 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_222, x_223, x_224, x_5, x_6, x_7, x_8, x_218); -x_226 = lean_ctor_get(x_225, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_228 = x_225; +x_227 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_224, x_225, x_226, x_5, x_6, x_7, x_8, x_220); +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_230 = x_227; } else { - lean_dec_ref(x_225); - x_228 = lean_box(0); + lean_dec_ref(x_227); + x_230 = lean_box(0); } -x_229 = l_Lean_Elab_Term_elabForIn_x27___closed__6; -lean_inc(x_226); -x_230 = lean_array_push(x_229, x_226); -lean_inc(x_214); -x_231 = lean_array_push(x_230, x_214); -x_257 = l_Lean_Elab_Term_elabForIn_x27___closed__5; +x_231 = l_Lean_Elab_Term_elabForIn_x27___closed__6; +lean_inc(x_228); +x_232 = lean_array_push(x_231, x_228); +lean_inc(x_216); +x_233 = lean_array_push(x_232, x_216); +x_261 = l_Lean_Elab_Term_elabForIn_x27___closed__5; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_258 = l_Lean_Meta_mkAppM(x_257, x_231, x_5, x_6, x_7, x_8, x_227); -if (lean_obj_tag(x_258) == 0) +x_262 = l_Lean_Meta_mkAppM(x_261, x_233, x_5, x_6, x_7, x_8, x_229); +if (lean_obj_tag(x_262) == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_261, 0, x_259); -lean_inc(x_5); -x_262 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_261, x_223, x_224, x_5, x_6, x_7, x_8, x_260); +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; 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 = l_Lean_Elab_Term_elabForIn_x27___closed__10; -lean_inc(x_211); -x_266 = lean_array_push(x_265, x_211); -lean_inc(x_214); -x_267 = lean_array_push(x_266, x_214); -lean_inc(x_226); -x_268 = lean_array_push(x_267, x_226); -x_269 = lean_array_push(x_268, x_263); -x_270 = l_Lean_Elab_Term_elabForIn_x27___closed__9; +x_265 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_265, 0, x_263); +lean_inc(x_5); +x_266 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_265, x_225, x_226, x_5, x_6, x_7, x_8, x_264); +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +lean_dec(x_266); +x_269 = l_Lean_Elab_Term_elabForIn_x27___closed__10; +lean_inc(x_213); +x_270 = lean_array_push(x_269, x_213); +lean_inc(x_216); +x_271 = lean_array_push(x_270, x_216); +lean_inc(x_228); +x_272 = lean_array_push(x_271, x_228); +x_273 = lean_array_push(x_272, x_267); +x_274 = l_Lean_Elab_Term_elabForIn_x27___closed__9; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_271 = l_Lean_Meta_mkAppM(x_270, x_269, x_5, x_6, x_7, x_8, x_264); -if (lean_obj_tag(x_271) == 0) +x_275 = l_Lean_Meta_mkAppM(x_274, x_273, x_5, x_6, x_7, x_8, x_268); +if (lean_obj_tag(x_275) == 0) { -lean_object* x_272; lean_object* x_273; lean_object* x_274; -lean_dec(x_228); -lean_dec(x_219); -lean_dec(x_214); +lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_230); +lean_dec(x_221); +lean_dec(x_216); lean_dec(x_122); -x_272 = lean_ctor_get(x_271, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 1); -lean_inc(x_273); -lean_dec(x_271); -x_274 = l_Lean_Elab_Term_elabForIn_x27___lambda__1(x_211, x_226, x_207, x_16, x_18, x_2, x_272, x_3, x_4, x_5, x_6, x_7, x_8, x_273); -return x_274; -} -else -{ -lean_object* x_275; lean_object* x_276; -lean_dec(x_226); -lean_dec(x_207); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_2); -x_275 = lean_ctor_get(x_271, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_271, 1); +x_276 = lean_ctor_get(x_275, 0); lean_inc(x_276); -lean_dec(x_271); -x_232 = x_275; -x_233 = x_276; -goto block_256; -} -} -else -{ -lean_object* x_277; lean_object* x_278; -lean_dec(x_226); -lean_dec(x_207); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_2); -x_277 = lean_ctor_get(x_258, 0); +x_277 = lean_ctor_get(x_275, 1); lean_inc(x_277); -x_278 = lean_ctor_get(x_258, 1); -lean_inc(x_278); -lean_dec(x_258); -x_232 = x_277; -x_233 = x_278; -goto block_256; +lean_dec(x_275); +x_278 = l_Lean_Elab_Term_elabForIn_x27___lambda__1(x_213, x_228, x_209, x_16, x_18, x_2, x_276, x_3, x_4, x_5, x_6, x_7, x_8, x_277); +return x_278; } -block_256: +else { -uint8_t x_234; -x_234 = l_Lean_Exception_isRuntime(x_232); -if (x_234 == 0) -{ -lean_object* x_235; -lean_dec(x_232); +lean_object* x_279; lean_object* x_280; lean_dec(x_228); -lean_inc(x_3); -x_235 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_233); -if (lean_obj_tag(x_235) == 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; 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_object* x_250; -x_236 = lean_ctor_get(x_235, 1); -lean_inc(x_236); -lean_dec(x_235); -x_237 = l_Lean_indentExpr(x_214); -x_238 = l_Lean_Elab_Term_elabForIn_x27___closed__8; -if (lean_is_scalar(x_219)) { - x_239 = lean_alloc_ctor(6, 2, 0); -} else { - x_239 = x_219; - lean_ctor_set_tag(x_239, 6); -} -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); -x_240 = l_Lean_Elab_Term_elabForIn___closed__25; -if (lean_is_scalar(x_122)) { - x_241 = lean_alloc_ctor(6, 2, 0); -} else { - x_241 = x_122; - lean_ctor_set_tag(x_241, 6); -} -lean_ctor_set(x_241, 0, x_239); -lean_ctor_set(x_241, 1, x_240); -x_242 = l_Lean_indentExpr(x_211); -x_243 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -x_244 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; -x_245 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -x_246 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_245, x_3, x_4, x_5, x_6, x_7, x_8, x_236); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -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); -} -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(1, 2, 0); -} else { - x_250 = x_249; -} -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_248); -return x_250; -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_219); -lean_dec(x_214); -lean_dec(x_211); -lean_dec(x_122); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_251 = lean_ctor_get(x_235, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_235, 1); -lean_inc(x_252); -if (lean_is_exclusive(x_235)) { - lean_ctor_release(x_235, 0); - lean_ctor_release(x_235, 1); - x_253 = x_235; -} else { - lean_dec_ref(x_235); - x_253 = lean_box(0); -} -if (lean_is_scalar(x_253)) { - x_254 = lean_alloc_ctor(1, 2, 0); -} else { - x_254 = x_253; -} -lean_ctor_set(x_254, 0, x_251); -lean_ctor_set(x_254, 1, x_252); -return x_254; -} -} -else -{ -lean_object* x_255; -lean_dec(x_219); -lean_dec(x_214); -lean_dec(x_211); -lean_dec(x_122); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_228)) { - x_255 = lean_alloc_ctor(1, 2, 0); -} else { - x_255 = x_228; - lean_ctor_set_tag(x_255, 1); -} -lean_ctor_set(x_255, 0, x_232); -lean_ctor_set(x_255, 1, x_233); -return x_255; -} -} -} -else -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -lean_dec(x_211); -lean_dec(x_207); -lean_dec(x_122); +lean_dec(x_209); lean_dec(x_18); lean_dec(x_16); +lean_dec(x_2); +x_279 = lean_ctor_get(x_275, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_275, 1); +lean_inc(x_280); +lean_dec(x_275); +x_234 = x_279; +x_235 = x_280; +goto block_260; +} +} +else +{ +lean_object* x_281; lean_object* x_282; +lean_dec(x_228); +lean_dec(x_209); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_2); +x_281 = lean_ctor_get(x_262, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_262, 1); +lean_inc(x_282); +lean_dec(x_262); +x_234 = x_281; +x_235 = x_282; +goto block_260; +} +block_260: +{ +uint8_t x_236; +x_236 = l_Lean_Exception_isInterrupt(x_234); +if (x_236 == 0) +{ +uint8_t x_237; +x_237 = l_Lean_Exception_isRuntime(x_234); +if (x_237 == 0) +{ +lean_object* x_238; +lean_dec(x_234); +lean_dec(x_230); +lean_inc(x_3); +x_238 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_235); +if (lean_obj_tag(x_238) == 0) +{ +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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_239 = lean_ctor_get(x_238, 1); +lean_inc(x_239); +lean_dec(x_238); +x_240 = l_Lean_indentExpr(x_216); +x_241 = l_Lean_Elab_Term_elabForIn_x27___closed__8; +if (lean_is_scalar(x_221)) { + x_242 = lean_alloc_ctor(6, 2, 0); +} else { + x_242 = x_221; + lean_ctor_set_tag(x_242, 6); +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_240); +x_243 = l_Lean_Elab_Term_elabForIn___closed__25; +if (lean_is_scalar(x_122)) { + x_244 = lean_alloc_ctor(6, 2, 0); +} else { + x_244 = x_122; + lean_ctor_set_tag(x_244, 6); +} +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +x_245 = l_Lean_indentExpr(x_213); +x_246 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +x_247 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_248 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_248, 0, x_246); +lean_ctor_set(x_248, 1, x_247); +x_249 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_248, x_3, x_4, x_5, x_6, x_7, x_8, x_239); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_250 = lean_ctor_get(x_249, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_252 = x_249; +} else { + lean_dec_ref(x_249); + x_252 = lean_box(0); +} +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); +} else { + x_253 = x_252; +} +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_221); +lean_dec(x_216); +lean_dec(x_213); +lean_dec(x_122); 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_279 = lean_ctor_get(x_213, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_213, 1); -lean_inc(x_280); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_281 = x_213; +x_254 = lean_ctor_get(x_238, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_238, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_256 = x_238; } else { - lean_dec_ref(x_213); - x_281 = lean_box(0); + lean_dec_ref(x_238); + x_256 = lean_box(0); } -if (lean_is_scalar(x_281)) { - x_282 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); } else { - x_282 = x_281; + x_257 = x_256; +} +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +return x_257; +} +} +else +{ +lean_object* x_258; +lean_dec(x_221); +lean_dec(x_216); +lean_dec(x_213); +lean_dec(x_122); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_230)) { + x_258 = lean_alloc_ctor(1, 2, 0); +} else { + x_258 = x_230; + lean_ctor_set_tag(x_258, 1); +} +lean_ctor_set(x_258, 0, x_234); +lean_ctor_set(x_258, 1, x_235); +return x_258; +} +} +else +{ +lean_object* x_259; +lean_dec(x_221); +lean_dec(x_216); +lean_dec(x_213); +lean_dec(x_122); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_230)) { + x_259 = lean_alloc_ctor(1, 2, 0); +} else { + x_259 = x_230; + lean_ctor_set_tag(x_259, 1); +} +lean_ctor_set(x_259, 0, x_234); +lean_ctor_set(x_259, 1, x_235); +return x_259; } -lean_ctor_set(x_282, 0, x_279); -lean_ctor_set(x_282, 1, x_280); -return x_282; } } else { lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_207); +lean_dec(x_213); +lean_dec(x_209); lean_dec(x_122); lean_dec(x_18); lean_dec(x_16); @@ -4917,16 +5095,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_283 = lean_ctor_get(x_210, 0); +x_283 = lean_ctor_get(x_215, 0); lean_inc(x_283); -x_284 = lean_ctor_get(x_210, 1); +x_284 = lean_ctor_get(x_215, 1); lean_inc(x_284); -if (lean_is_exclusive(x_210)) { - lean_ctor_release(x_210, 0); - lean_ctor_release(x_210, 1); - x_285 = x_210; +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_285 = x_215; } else { - lean_dec_ref(x_210); + lean_dec_ref(x_215); x_285 = lean_box(0); } if (lean_is_scalar(x_285)) { @@ -4942,7 +5120,7 @@ return x_286; else { lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_207); +lean_dec(x_209); lean_dec(x_122); lean_dec(x_18); lean_dec(x_16); @@ -4953,16 +5131,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_287 = lean_ctor_get(x_208, 0); +x_287 = lean_ctor_get(x_212, 0); lean_inc(x_287); -x_288 = lean_ctor_get(x_208, 1); +x_288 = lean_ctor_get(x_212, 1); lean_inc(x_288); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_289 = x_208; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_289 = x_212; } else { - lean_dec_ref(x_208); + lean_dec_ref(x_212); x_289 = lean_box(0); } if (lean_is_scalar(x_289)) { @@ -4975,6 +5153,42 @@ lean_ctor_set(x_290, 1, x_288); return x_290; } } +else +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +lean_dec(x_209); +lean_dec(x_122); +lean_dec(x_18); +lean_dec(x_16); +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_291 = lean_ctor_get(x_210, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_210, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_293 = x_210; +} else { + lean_dec_ref(x_210); + x_293 = lean_box(0); +} +if (lean_is_scalar(x_293)) { + x_294 = lean_alloc_ctor(1, 2, 0); +} else { + x_294 = x_293; +} +lean_ctor_set(x_294, 0, x_291); +lean_ctor_set(x_294, 1, x_292); +return x_294; +} +} } } } @@ -5704,7 +5918,7 @@ return x_50; } else { -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; 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; lean_object* x_70; +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; uint8_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; x_51 = lean_ctor_get(x_6, 0); x_52 = lean_ctor_get(x_6, 1); x_53 = lean_ctor_get(x_6, 2); @@ -5716,7 +5930,10 @@ x_58 = lean_ctor_get(x_6, 7); x_59 = lean_ctor_get(x_6, 8); x_60 = lean_ctor_get(x_6, 9); x_61 = lean_ctor_get(x_6, 10); -x_62 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_62 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_63 = lean_ctor_get(x_6, 11); +x_64 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_63); lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); @@ -5729,249 +5946,251 @@ lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_dec(x_6); -x_63 = l_Lean_replaceRef(x_1, x_56); +x_65 = l_Lean_replaceRef(x_1, x_56); lean_dec(x_56); -x_64 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_64, 0, x_51); -lean_ctor_set(x_64, 1, x_52); -lean_ctor_set(x_64, 2, x_53); -lean_ctor_set(x_64, 3, x_54); -lean_ctor_set(x_64, 4, x_55); -lean_ctor_set(x_64, 5, x_63); -lean_ctor_set(x_64, 6, x_57); -lean_ctor_set(x_64, 7, x_58); -lean_ctor_set(x_64, 8, x_59); -lean_ctor_set(x_64, 9, x_60); -lean_ctor_set(x_64, 10, x_61); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_62); -x_65 = lean_st_ref_get(x_7, x_8); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_ctor_get(x_66, 0); +x_66 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_66, 0, x_51); +lean_ctor_set(x_66, 1, x_52); +lean_ctor_set(x_66, 2, x_53); +lean_ctor_set(x_66, 3, x_54); +lean_ctor_set(x_66, 4, x_55); +lean_ctor_set(x_66, 5, x_65); +lean_ctor_set(x_66, 6, x_57); +lean_ctor_set(x_66, 7, x_58); +lean_ctor_set(x_66, 8, x_59); +lean_ctor_set(x_66, 9, x_60); +lean_ctor_set(x_66, 10, x_61); +lean_ctor_set(x_66, 11, x_63); +lean_ctor_set_uint8(x_66, sizeof(void*)*12, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*12 + 1, x_64); +x_67 = lean_st_ref_get(x_7, x_8); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_66); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +lean_dec(x_68); lean_inc(x_1); -x_69 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); -lean_closure_set(x_69, 0, x_68); -lean_closure_set(x_69, 1, x_1); +x_71 = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +lean_closure_set(x_71, 0, x_70); +lean_closure_set(x_71, 1, x_1); lean_inc(x_7); -lean_inc(x_64); +lean_inc(x_66); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_70 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_69, x_2, x_3, x_4, x_5, x_64, x_7, x_67); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_71, x_2, x_3, x_4, x_5, x_66, x_7, x_69); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_71; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -if (lean_obj_tag(x_71) == 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_72; lean_object* x_73; -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processLeaf(x_1, x_2, x_3, x_4, x_5, x_64, x_7, x_72); -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; -x_74 = lean_ctor_get(x_71, 0); +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -lean_dec(x_70); -x_76 = lean_ctor_get(x_74, 0); +lean_dec(x_72); +x_75 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processLeaf(x_1, x_2, x_3, x_4, x_5, x_66, x_7, x_74); +return x_75; +} +else +{ +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_76 = lean_ctor_get(x_73, 0); lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 1); +lean_dec(x_73); +x_77 = lean_ctor_get(x_72, 1); lean_inc(x_77); -lean_dec(x_74); -x_78 = lean_alloc_closure((void*)(l_liftExcept___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed), 3, 1); -lean_closure_set(x_78, 0, x_77); +lean_dec(x_72); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_closure((void*)(l_liftExcept___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed), 3, 1); +lean_closure_set(x_80, 0, x_79); lean_inc(x_7); -lean_inc(x_64); +lean_inc(x_66); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_79 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_78, x_2, x_3, x_4, x_5, x_64, x_7, x_75); -if (lean_obj_tag(x_79) == 0) +x_81 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_80, x_2, x_3, x_4, x_5, x_66, x_7, x_77); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); lean_inc(x_1); -lean_inc(x_80); -x_82 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_go___lambda__1), 10, 3); -lean_closure_set(x_82, 0, x_80); -lean_closure_set(x_82, 1, x_76); -lean_closure_set(x_82, 2, x_1); -x_83 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_1, x_80, x_82, x_2, x_3, x_4, x_5, x_64, x_7, x_81); -return x_83; +lean_inc(x_82); +x_84 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_go___lambda__1), 10, 3); +lean_closure_set(x_84, 0, x_82); +lean_closure_set(x_84, 1, x_78); +lean_closure_set(x_84, 2, x_1); +x_85 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_1, x_82, x_84, x_2, x_3, x_4, x_5, x_66, x_7, x_83); +return x_85; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_76); -lean_dec(x_64); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_78); +lean_dec(x_66); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_84 = lean_ctor_get(x_79, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_79, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_86 = x_79; +x_86 = lean_ctor_get(x_81, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_88 = x_81; } else { - lean_dec_ref(x_79); - x_86 = lean_box(0); + lean_dec_ref(x_81); + x_88 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_87 = x_86; + x_89 = x_88; } -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; } } } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_64); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_66); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_88 = lean_ctor_get(x_70, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_70, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_90 = x_70; +x_90 = lean_ctor_get(x_72, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_72, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_92 = x_72; } else { - lean_dec_ref(x_70); - x_90 = lean_box(0); + lean_dec_ref(x_72); + x_92 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_90; + x_93 = x_92; } -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } } else { -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = lean_unsigned_to_nat(1u); -x_93 = l_Lean_Syntax_getArg(x_1, x_92); -lean_inc(x_93); -x_94 = l_Lean_Elab_Term_hasCDot(x_93); -if (x_94 == 0) +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_unsigned_to_nat(1u); +x_95 = l_Lean_Syntax_getArg(x_1, x_94); +lean_inc(x_95); +x_96 = l_Lean_Elab_Term_hasCDot(x_95); +if (x_96 == 0) { lean_dec(x_1); -x_1 = x_93; +x_1 = x_95; goto _start; } else { -lean_object* x_96; -lean_dec(x_93); -x_96 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processLeaf(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_96; +lean_object* x_98; +lean_dec(x_95); +x_98 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processLeaf(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_98; } } } 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; uint8_t x_103; lean_object* x_104; -x_97 = lean_unsigned_to_nat(1u); -x_98 = l_Lean_Syntax_getArg(x_1, x_97); -x_99 = lean_unsigned_to_nat(2u); +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; +x_99 = lean_unsigned_to_nat(1u); x_100 = l_Lean_Syntax_getArg(x_1, x_99); -x_101 = lean_unsigned_to_nat(3u); +x_101 = lean_unsigned_to_nat(2u); x_102 = l_Lean_Syntax_getArg(x_1, x_101); -x_103 = 3; -x_104 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_103, x_98, x_100, x_102, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_104; +x_103 = lean_unsigned_to_nat(3u); +x_104 = l_Lean_Syntax_getArg(x_1, x_103); +x_105 = 3; +x_106 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_105, x_100, x_102, x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_106; } } 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; uint8_t x_111; lean_object* x_112; -x_105 = lean_unsigned_to_nat(1u); -x_106 = l_Lean_Syntax_getArg(x_1, x_105); -x_107 = lean_unsigned_to_nat(2u); +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; +x_107 = lean_unsigned_to_nat(1u); x_108 = l_Lean_Syntax_getArg(x_1, x_107); -x_109 = lean_unsigned_to_nat(3u); +x_109 = lean_unsigned_to_nat(2u); x_110 = l_Lean_Syntax_getArg(x_1, x_109); -x_111 = 2; -x_112 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_111, x_106, x_108, x_110, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_112; +x_111 = lean_unsigned_to_nat(3u); +x_112 = l_Lean_Syntax_getArg(x_1, x_111); +x_113 = 2; +x_114 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_113, x_108, x_110, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_114; } } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_113 = lean_unsigned_to_nat(1u); -x_114 = l_Lean_Syntax_getArg(x_1, x_113); -x_115 = lean_unsigned_to_nat(2u); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_115 = lean_unsigned_to_nat(1u); x_116 = l_Lean_Syntax_getArg(x_1, x_115); -x_117 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processUnOp(x_1, x_114, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_117; +x_117 = lean_unsigned_to_nat(2u); +x_118 = l_Lean_Syntax_getArg(x_1, x_117); +x_119 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processUnOp(x_1, x_116, x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_119; } } 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; uint8_t x_124; lean_object* x_125; -x_118 = lean_unsigned_to_nat(1u); -x_119 = l_Lean_Syntax_getArg(x_1, x_118); -x_120 = lean_unsigned_to_nat(2u); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; +x_120 = lean_unsigned_to_nat(1u); x_121 = l_Lean_Syntax_getArg(x_1, x_120); -x_122 = lean_unsigned_to_nat(3u); +x_122 = lean_unsigned_to_nat(2u); x_123 = l_Lean_Syntax_getArg(x_1, x_122); -x_124 = 1; -x_125 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_124, x_119, x_121, x_123, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_125; +x_124 = lean_unsigned_to_nat(3u); +x_125 = l_Lean_Syntax_getArg(x_1, x_124); +x_126 = 1; +x_127 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_126, x_121, x_123, x_125, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_127; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; -x_126 = lean_unsigned_to_nat(1u); -x_127 = l_Lean_Syntax_getArg(x_1, x_126); -x_128 = lean_unsigned_to_nat(2u); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; +x_128 = lean_unsigned_to_nat(1u); x_129 = l_Lean_Syntax_getArg(x_1, x_128); -x_130 = lean_unsigned_to_nat(3u); +x_130 = lean_unsigned_to_nat(2u); x_131 = l_Lean_Syntax_getArg(x_1, x_130); -x_132 = 0; -x_133 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_132, x_127, x_129, x_131, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_133; +x_132 = lean_unsigned_to_nat(3u); +x_133 = l_Lean_Syntax_getArg(x_1, x_132); +x_134 = 0; +x_135 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree_processBinOp(x_1, x_134, x_129, x_131, x_133, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_135; } } } @@ -10763,7 +10982,7 @@ return x_62; } else { -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; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +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; uint8_t x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; x_63 = lean_ctor_get(x_6, 0); x_64 = lean_ctor_get(x_6, 1); x_65 = lean_ctor_get(x_6, 2); @@ -10775,7 +10994,10 @@ x_70 = lean_ctor_get(x_6, 7); x_71 = lean_ctor_get(x_6, 8); x_72 = lean_ctor_get(x_6, 9); x_73 = lean_ctor_get(x_6, 10); -x_74 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_74 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_75 = lean_ctor_get(x_6, 11); +x_76 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_75); lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); @@ -10788,67 +11010,74 @@ lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); lean_dec(x_6); -x_75 = l_Lean_replaceRef(x_51, x_68); +x_77 = l_Lean_replaceRef(x_51, x_68); lean_dec(x_68); -x_76 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_76, 0, x_63); -lean_ctor_set(x_76, 1, x_64); -lean_ctor_set(x_76, 2, x_65); -lean_ctor_set(x_76, 3, x_66); -lean_ctor_set(x_76, 4, x_67); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_69); -lean_ctor_set(x_76, 7, x_70); -lean_ctor_set(x_76, 8, x_71); -lean_ctor_set(x_76, 9, x_72); -lean_ctor_set(x_76, 10, x_73); -lean_ctor_set_uint8(x_76, sizeof(void*)*11, x_74); -x_77 = l_Lean_Elab_Term_withInfoContext_x27(x_51, x_57, x_58, x_2, x_3, x_4, x_5, x_76, x_7, x_8); -return x_77; +x_78 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_64); +lean_ctor_set(x_78, 2, x_65); +lean_ctor_set(x_78, 3, x_66); +lean_ctor_set(x_78, 4, x_67); +lean_ctor_set(x_78, 5, x_77); +lean_ctor_set(x_78, 6, x_69); +lean_ctor_set(x_78, 7, x_70); +lean_ctor_set(x_78, 8, x_71); +lean_ctor_set(x_78, 9, x_72); +lean_ctor_set(x_78, 10, x_73); +lean_ctor_set(x_78, 11, x_75); +lean_ctor_set_uint8(x_78, sizeof(void*)*12, x_74); +lean_ctor_set_uint8(x_78, sizeof(void*)*12 + 1, x_76); +x_79 = l_Lean_Elab_Term_withInfoContext_x27(x_51, x_57, x_58, x_2, x_3, x_4, x_5, x_78, x_7, x_8); +return x_79; } } case 2: { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_78 = lean_ctor_get(x_1, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_1, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_1, 2); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_80 = lean_ctor_get(x_1, 0); lean_inc(x_80); +x_81 = lean_ctor_get(x_1, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_1, 2); +lean_inc(x_82); lean_dec(x_1); -x_81 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__3), 9, 2); -lean_closure_set(x_81, 0, x_80); -lean_closure_set(x_81, 1, x_79); -lean_inc(x_78); -x_82 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__2___boxed), 9, 1); -lean_closure_set(x_82, 0, x_78); -x_83 = !lean_is_exclusive(x_6); -if (x_83 == 0) +x_83 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__3), 9, 2); +lean_closure_set(x_83, 0, x_82); +lean_closure_set(x_83, 1, x_81); +lean_inc(x_80); +x_84 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__2___boxed), 9, 1); +lean_closure_set(x_84, 0, x_80); +x_85 = !lean_is_exclusive(x_6); +if (x_85 == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_6, 5); -x_85 = l_Lean_replaceRef(x_78, x_84); -lean_dec(x_84); -lean_ctor_set(x_6, 5, x_85); -x_86 = l_Lean_Elab_Term_withInfoContext_x27(x_78, x_81, x_82, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_86; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_6, 5); +x_87 = l_Lean_replaceRef(x_80, x_86); +lean_dec(x_86); +lean_ctor_set(x_6, 5, x_87); +x_88 = l_Lean_Elab_Term_withInfoContext_x27(x_80, x_83, x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_88; } 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; 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_87 = lean_ctor_get(x_6, 0); -x_88 = lean_ctor_get(x_6, 1); -x_89 = lean_ctor_get(x_6, 2); -x_90 = lean_ctor_get(x_6, 3); -x_91 = lean_ctor_get(x_6, 4); -x_92 = lean_ctor_get(x_6, 5); -x_93 = lean_ctor_get(x_6, 6); -x_94 = lean_ctor_get(x_6, 7); -x_95 = lean_ctor_get(x_6, 8); -x_96 = lean_ctor_get(x_6, 9); -x_97 = lean_ctor_get(x_6, 10); -x_98 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +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; uint8_t x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_89 = lean_ctor_get(x_6, 0); +x_90 = lean_ctor_get(x_6, 1); +x_91 = lean_ctor_get(x_6, 2); +x_92 = lean_ctor_get(x_6, 3); +x_93 = lean_ctor_get(x_6, 4); +x_94 = lean_ctor_get(x_6, 5); +x_95 = lean_ctor_get(x_6, 6); +x_96 = lean_ctor_get(x_6, 7); +x_97 = lean_ctor_get(x_6, 8); +x_98 = lean_ctor_get(x_6, 9); +x_99 = lean_ctor_get(x_6, 10); +x_100 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_101 = lean_ctor_get(x_6, 11); +x_102 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_101); +lean_inc(x_99); +lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); @@ -10858,77 +11087,84 @@ lean_inc(x_92); lean_inc(x_91); lean_inc(x_90); lean_inc(x_89); -lean_inc(x_88); -lean_inc(x_87); lean_dec(x_6); -x_99 = l_Lean_replaceRef(x_78, x_92); -lean_dec(x_92); -x_100 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_100, 0, x_87); -lean_ctor_set(x_100, 1, x_88); -lean_ctor_set(x_100, 2, x_89); -lean_ctor_set(x_100, 3, x_90); -lean_ctor_set(x_100, 4, x_91); -lean_ctor_set(x_100, 5, x_99); -lean_ctor_set(x_100, 6, x_93); -lean_ctor_set(x_100, 7, x_94); -lean_ctor_set(x_100, 8, x_95); -lean_ctor_set(x_100, 9, x_96); -lean_ctor_set(x_100, 10, x_97); -lean_ctor_set_uint8(x_100, sizeof(void*)*11, x_98); -x_101 = l_Lean_Elab_Term_withInfoContext_x27(x_78, x_81, x_82, x_2, x_3, x_4, x_5, x_100, x_7, x_8); -return x_101; +x_103 = l_Lean_replaceRef(x_80, x_94); +lean_dec(x_94); +x_104 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_104, 0, x_89); +lean_ctor_set(x_104, 1, x_90); +lean_ctor_set(x_104, 2, x_91); +lean_ctor_set(x_104, 3, x_92); +lean_ctor_set(x_104, 4, x_93); +lean_ctor_set(x_104, 5, x_103); +lean_ctor_set(x_104, 6, x_95); +lean_ctor_set(x_104, 7, x_96); +lean_ctor_set(x_104, 8, x_97); +lean_ctor_set(x_104, 9, x_98); +lean_ctor_set(x_104, 10, x_99); +lean_ctor_set(x_104, 11, x_101); +lean_ctor_set_uint8(x_104, sizeof(void*)*12, x_100); +lean_ctor_set_uint8(x_104, sizeof(void*)*12 + 1, x_102); +x_105 = l_Lean_Elab_Term_withInfoContext_x27(x_80, x_83, x_84, x_2, x_3, x_4, x_5, x_104, x_7, x_8); +return x_105; } } default: { -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; -x_102 = lean_ctor_get(x_1, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_1, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_1, 2); -lean_inc(x_104); -x_105 = lean_ctor_get(x_1, 3); -lean_inc(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; uint8_t x_113; +x_106 = lean_ctor_get(x_1, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_1, 1); +lean_inc(x_107); +x_108 = lean_ctor_get(x_1, 2); +lean_inc(x_108); +x_109 = lean_ctor_get(x_1, 3); +lean_inc(x_109); lean_dec(x_1); -x_106 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore), 8, 1); -lean_closure_set(x_106, 0, x_105); -lean_inc(x_103); -x_107 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withMacroExpansion___rarg), 10, 3); -lean_closure_set(x_107, 0, x_103); -lean_closure_set(x_107, 1, x_104); -lean_closure_set(x_107, 2, x_106); -lean_inc(x_103); -x_108 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__4___boxed), 10, 2); -lean_closure_set(x_108, 0, x_102); -lean_closure_set(x_108, 1, x_103); -x_109 = !lean_is_exclusive(x_6); -if (x_109 == 0) +x_110 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore), 8, 1); +lean_closure_set(x_110, 0, x_109); +lean_inc(x_107); +x_111 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withMacroExpansion___rarg), 10, 3); +lean_closure_set(x_111, 0, x_107); +lean_closure_set(x_111, 1, x_108); +lean_closure_set(x_111, 2, x_110); +lean_inc(x_107); +x_112 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore___lambda__4___boxed), 10, 2); +lean_closure_set(x_112, 0, x_106); +lean_closure_set(x_112, 1, x_107); +x_113 = !lean_is_exclusive(x_6); +if (x_113 == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_6, 5); -x_111 = l_Lean_replaceRef(x_103, x_110); -lean_dec(x_110); -lean_ctor_set(x_6, 5, x_111); -x_112 = l_Lean_Elab_Term_withInfoContext_x27(x_103, x_107, x_108, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_112; +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_6, 5); +x_115 = l_Lean_replaceRef(x_107, x_114); +lean_dec(x_114); +lean_ctor_set(x_6, 5, x_115); +x_116 = l_Lean_Elab_Term_withInfoContext_x27(x_107, x_111, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_116; } else { -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; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_113 = lean_ctor_get(x_6, 0); -x_114 = lean_ctor_get(x_6, 1); -x_115 = lean_ctor_get(x_6, 2); -x_116 = lean_ctor_get(x_6, 3); -x_117 = lean_ctor_get(x_6, 4); -x_118 = lean_ctor_get(x_6, 5); -x_119 = lean_ctor_get(x_6, 6); -x_120 = lean_ctor_get(x_6, 7); -x_121 = lean_ctor_get(x_6, 8); -x_122 = lean_ctor_get(x_6, 9); -x_123 = lean_ctor_get(x_6, 10); -x_124 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_117 = lean_ctor_get(x_6, 0); +x_118 = lean_ctor_get(x_6, 1); +x_119 = lean_ctor_get(x_6, 2); +x_120 = lean_ctor_get(x_6, 3); +x_121 = lean_ctor_get(x_6, 4); +x_122 = lean_ctor_get(x_6, 5); +x_123 = lean_ctor_get(x_6, 6); +x_124 = lean_ctor_get(x_6, 7); +x_125 = lean_ctor_get(x_6, 8); +x_126 = lean_ctor_get(x_6, 9); +x_127 = lean_ctor_get(x_6, 10); +x_128 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_129 = lean_ctor_get(x_6, 11); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_129); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); lean_inc(x_123); lean_inc(x_122); lean_inc(x_121); @@ -10936,28 +11172,26 @@ lean_inc(x_120); lean_inc(x_119); lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); lean_dec(x_6); -x_125 = l_Lean_replaceRef(x_103, x_118); -lean_dec(x_118); -x_126 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_126, 0, x_113); -lean_ctor_set(x_126, 1, x_114); -lean_ctor_set(x_126, 2, x_115); -lean_ctor_set(x_126, 3, x_116); -lean_ctor_set(x_126, 4, x_117); -lean_ctor_set(x_126, 5, x_125); -lean_ctor_set(x_126, 6, x_119); -lean_ctor_set(x_126, 7, x_120); -lean_ctor_set(x_126, 8, x_121); -lean_ctor_set(x_126, 9, x_122); -lean_ctor_set(x_126, 10, x_123); -lean_ctor_set_uint8(x_126, sizeof(void*)*11, x_124); -x_127 = l_Lean_Elab_Term_withInfoContext_x27(x_103, x_107, x_108, x_2, x_3, x_4, x_5, x_126, x_7, x_8); -return x_127; +x_131 = l_Lean_replaceRef(x_107, x_122); +lean_dec(x_122); +x_132 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_132, 0, x_117); +lean_ctor_set(x_132, 1, x_118); +lean_ctor_set(x_132, 2, x_119); +lean_ctor_set(x_132, 3, x_120); +lean_ctor_set(x_132, 4, x_121); +lean_ctor_set(x_132, 5, x_131); +lean_ctor_set(x_132, 6, x_123); +lean_ctor_set(x_132, 7, x_124); +lean_ctor_set(x_132, 8, x_125); +lean_ctor_set(x_132, 9, x_126); +lean_ctor_set(x_132, 10, x_127); +lean_ctor_set(x_132, 11, x_129); +lean_ctor_set_uint8(x_132, sizeof(void*)*12, x_128); +lean_ctor_set_uint8(x_132, sizeof(void*)*12 + 1, x_130); +x_133 = l_Lean_Elab_Term_withInfoContext_x27(x_107, x_111, x_112, x_2, x_3, x_4, x_5, x_132, x_7, x_8); +return x_133; } } } @@ -11710,224 +11944,178 @@ return x_10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHomogeneousInstance(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; if (lean_obj_tag(x_1) == 4) { -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_8 = lean_ctor_get(x_1, 0); -x_9 = l_Lean_Name_getPrefix(x_8); -x_10 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; +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_18 = lean_ctor_get(x_1, 0); +x_19 = l_Lean_Name_getPrefix(x_18); +x_20 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__10; lean_inc(x_2); -x_11 = lean_array_push(x_10, x_2); +x_21 = lean_array_push(x_20, x_2); lean_inc(x_2); -x_12 = lean_array_push(x_11, x_2); -x_13 = lean_array_push(x_12, x_2); +x_22 = lean_array_push(x_21, x_2); +x_23 = lean_array_push(x_22, x_2); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_14 = l_Lean_Meta_mkAppM(x_9, x_13, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_14) == 0) +x_24 = l_Lean_Meta_mkAppM(x_19, x_23, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -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_box(0); -x_18 = l_Lean_Meta_trySynthInstance(x_15, x_17, x_3, x_4, x_5, x_6, x_16); -if (lean_obj_tag(x_18) == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_trySynthInstance(x_25, x_27, x_3, x_4, x_5, x_6, x_26); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 1) +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 1) { -uint8_t x_20; -lean_dec(x_19); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_18, 0); -lean_dec(x_21); -x_22 = 1; -x_23 = lean_box(x_22); -lean_ctor_set(x_18, 0, x_23); -return x_18; -} -else -{ -lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_dec(x_18); -x_25 = 1; -x_26 = lean_box(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_19); -x_28 = !lean_is_exclusive(x_18); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_18, 0); +uint8_t x_30; lean_dec(x_29); -x_30 = 0; -x_31 = lean_box(x_30); -lean_ctor_set(x_18, 0, x_31); -return x_18; +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = 1; +x_33 = lean_box(x_32); +lean_ctor_set(x_28, 0, x_33); +return x_28; } else { -lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_18, 1); -lean_inc(x_32); -lean_dec(x_18); -x_33 = 0; -x_34 = lean_box(x_33); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; -} +lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_dec(x_28); +x_35 = 1; +x_36 = lean_box(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; } } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_18); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_18, 0); -x_38 = l_Lean_Exception_isRuntime(x_37); +uint8_t x_38; +lean_dec(x_29); +x_38 = !lean_is_exclusive(x_28); if (x_38 == 0) { -uint8_t x_39; lean_object* x_40; -lean_dec(x_37); -x_39 = 0; -x_40 = lean_box(x_39); -lean_ctor_set_tag(x_18, 0); -lean_ctor_set(x_18, 0, x_40); -return x_18; +lean_object* x_39; uint8_t x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_28, 0); +lean_dec(x_39); +x_40 = 0; +x_41 = lean_box(x_40); +lean_ctor_set(x_28, 0, x_41); +return x_28; } else { -return x_18; -} -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_18, 0); -x_42 = lean_ctor_get(x_18, 1); +lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_28, 1); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_18); -x_43 = l_Lean_Exception_isRuntime(x_41); -if (x_43 == 0) -{ -uint8_t x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_41); -x_44 = 0; -x_45 = lean_box(x_44); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_42); -return x_46; -} -else -{ -lean_object* x_47; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_41); -lean_ctor_set(x_47, 1, x_42); -return x_47; -} +lean_dec(x_28); +x_43 = 0; +x_44 = lean_box(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; } } } else { -uint8_t x_48; +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_28, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_28, 1); +lean_inc(x_47); +lean_dec(x_28); +x_8 = x_46; +x_9 = x_47; +goto block_17; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_48 = !lean_is_exclusive(x_14); -if (x_48 == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_14, 0); -x_50 = l_Lean_Exception_isRuntime(x_49); -if (x_50 == 0) -{ -uint8_t x_51; lean_object* x_52; -lean_dec(x_49); -x_51 = 0; -x_52 = lean_box(x_51); -lean_ctor_set_tag(x_14, 0); -lean_ctor_set(x_14, 0, x_52); -return x_14; -} -else -{ -return x_14; +x_48 = lean_ctor_get(x_24, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_24, 1); +lean_inc(x_49); +lean_dec(x_24); +x_8 = x_48; +x_9 = x_49; +goto block_17; } } else { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_14, 0); -x_54 = lean_ctor_get(x_14, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_14); -x_55 = l_Lean_Exception_isRuntime(x_53); -if (x_55 == 0) -{ -uint8_t x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_53); -x_56 = 0; -x_57 = lean_box(x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_54); -return x_58; -} -else -{ -lean_object* x_59; -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_53); -lean_ctor_set(x_59, 1, x_54); -return x_59; -} -} -} -} -else -{ -uint8_t x_60; lean_object* x_61; lean_object* x_62; +uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_60 = 0; -x_61 = lean_box(x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_7); -return x_62; +x_50 = 0; +x_51 = lean_box(x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_7); +return x_52; +} +block_17: +{ +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_9); +return x_14; +} +else +{ +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_8); +lean_ctor_set(x_16, 1, x_9); +return x_16; +} } } } @@ -12014,7 +12202,7 @@ return x_28; } else { -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; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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; uint8_t x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; x_29 = lean_ctor_get(x_10, 0); x_30 = lean_ctor_get(x_10, 1); x_31 = lean_ctor_get(x_10, 2); @@ -12026,7 +12214,10 @@ x_36 = lean_ctor_get(x_10, 7); x_37 = lean_ctor_get(x_10, 8); x_38 = lean_ctor_get(x_10, 9); x_39 = lean_ctor_get(x_10, 10); -x_40 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_40 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_41 = lean_ctor_get(x_10, 11); +x_42 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_41); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); @@ -12039,75 +12230,77 @@ lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_dec(x_10); -x_41 = l_Lean_replaceRef(x_1, x_34); +x_43 = l_Lean_replaceRef(x_1, x_34); lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_42, 0, x_29); -lean_ctor_set(x_42, 1, x_30); -lean_ctor_set(x_42, 2, x_31); -lean_ctor_set(x_42, 3, x_32); -lean_ctor_set(x_42, 4, x_33); -lean_ctor_set(x_42, 5, x_41); -lean_ctor_set(x_42, 6, x_35); -lean_ctor_set(x_42, 7, x_36); -lean_ctor_set(x_42, 8, x_37); -lean_ctor_set(x_42, 9, x_38); -lean_ctor_set(x_42, 10, x_39); -lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_40); -x_43 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_13, x_13, x_6, x_7, x_8, x_9, x_42, x_11, x_12); -if (lean_obj_tag(x_43) == 0) +x_44 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_44, 0, x_29); +lean_ctor_set(x_44, 1, x_30); +lean_ctor_set(x_44, 2, x_31); +lean_ctor_set(x_44, 3, x_32); +lean_ctor_set(x_44, 4, x_33); +lean_ctor_set(x_44, 5, x_43); +lean_ctor_set(x_44, 6, x_35); +lean_ctor_set(x_44, 7, x_36); +lean_ctor_set(x_44, 8, x_37); +lean_ctor_set(x_44, 9, x_38); +lean_ctor_set(x_44, 10, x_39); +lean_ctor_set(x_44, 11, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*12, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*12 + 1, x_42); +x_45 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_13, x_13, x_6, x_7, x_8, x_9, x_44, x_11, x_12); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_46 = x_43; +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); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_48 = x_45; } else { - lean_dec_ref(x_43); - x_46 = lean_box(0); + lean_dec_ref(x_45); + x_48 = lean_box(0); } -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_1); -lean_ctor_set(x_47, 1, x_4); -lean_ctor_set(x_47, 2, x_44); -if (lean_is_scalar(x_46)) { - x_48 = lean_alloc_ctor(0, 2, 0); +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_4); +lean_ctor_set(x_49, 2, x_46); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_48 = x_46; + x_50 = x_48; } -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -return x_48; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_dec(x_4); lean_dec(x_1); -x_49 = lean_ctor_get(x_43, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_43, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_51 = x_43; +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_53 = x_45; } else { - lean_dec_ref(x_43); - x_51 = lean_box(0); + lean_dec_ref(x_45); + x_53 = lean_box(0); } -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - x_52 = x_51; + x_54 = x_53; } -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } } @@ -12892,30 +13085,30 @@ if (lean_is_exclusive(x_2)) { } if (x_5 == 0) { -lean_object* x_208; +lean_object* x_210; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_208 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHomogeneousInstance(x_101, x_1, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_208) == 0) +x_210 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHomogeneousInstance(x_101, x_1, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_210) == 0) { -lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = lean_unbox(x_209); -lean_dec(x_209); -x_105 = x_211; -x_106 = x_210; -goto block_207; +lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_213 = lean_unbox(x_211); +lean_dec(x_211); +x_105 = x_213; +x_106 = x_212; +goto block_209; } else { -uint8_t x_212; +uint8_t x_214; lean_dec(x_104); lean_dec(x_103); lean_dec(x_102); @@ -12928,23 +13121,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_212 = !lean_is_exclusive(x_208); -if (x_212 == 0) +x_214 = !lean_is_exclusive(x_210); +if (x_214 == 0) { -return x_208; +return x_210; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_208, 0); -x_214 = lean_ctor_get(x_208, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_208); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_210, 0); +x_216 = lean_ctor_get(x_210, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_210); +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; } } } @@ -12952,9 +13145,9 @@ else { x_105 = x_5; x_106 = x_12; -goto block_207; +goto block_209; } -block_207: +block_209: { if (x_105 == 0) { @@ -13135,7 +13328,7 @@ return x_141; } else { -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; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +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; uint8_t x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; x_142 = lean_ctor_get(x_10, 0); x_143 = lean_ctor_get(x_10, 1); x_144 = lean_ctor_get(x_10, 2); @@ -13147,7 +13340,10 @@ x_149 = lean_ctor_get(x_10, 7); x_150 = lean_ctor_get(x_10, 8); x_151 = lean_ctor_get(x_10, 9); x_152 = lean_ctor_get(x_10, 10); -x_153 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_153 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_154 = lean_ctor_get(x_10, 11); +x_155 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_154); lean_inc(x_152); lean_inc(x_151); lean_inc(x_150); @@ -13160,122 +13356,124 @@ lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); lean_dec(x_10); -x_154 = l_Lean_replaceRef(x_100, x_147); +x_156 = l_Lean_replaceRef(x_100, x_147); lean_dec(x_147); -x_155 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_155, 0, x_142); -lean_ctor_set(x_155, 1, x_143); -lean_ctor_set(x_155, 2, x_144); -lean_ctor_set(x_155, 3, x_145); -lean_ctor_set(x_155, 4, x_146); -lean_ctor_set(x_155, 5, x_154); -lean_ctor_set(x_155, 6, x_148); -lean_ctor_set(x_155, 7, x_149); -lean_ctor_set(x_155, 8, x_150); -lean_ctor_set(x_155, 9, x_151); -lean_ctor_set(x_155, 10, x_152); -lean_ctor_set_uint8(x_155, sizeof(void*)*11, x_153); +x_157 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_157, 0, x_142); +lean_ctor_set(x_157, 1, x_143); +lean_ctor_set(x_157, 2, x_144); +lean_ctor_set(x_157, 3, x_145); +lean_ctor_set(x_157, 4, x_146); +lean_ctor_set(x_157, 5, x_156); +lean_ctor_set(x_157, 6, x_148); +lean_ctor_set(x_157, 7, x_149); +lean_ctor_set(x_157, 8, x_150); +lean_ctor_set(x_157, 9, x_151); +lean_ctor_set(x_157, 10, x_152); +lean_ctor_set(x_157, 11, x_154); +lean_ctor_set_uint8(x_157, sizeof(void*)*12, x_153); +lean_ctor_set_uint8(x_157, sizeof(void*)*12 + 1, x_155); lean_inc(x_11); -lean_inc(x_155); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_156 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_102, x_107, x_6, x_7, x_8, x_9, x_155, x_11, x_106); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -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); -lean_inc(x_11); -lean_inc(x_155); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_159 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_103, x_107, x_6, x_7, x_8, x_9, x_155, x_11, x_158); -if (lean_obj_tag(x_159) == 0) +x_158 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_102, x_107, x_6, x_7, x_8, x_9, x_157, x_11, x_106); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_160; lean_object* x_161; uint8_t x_162; uint8_t x_163; lean_object* x_164; -x_160 = lean_ctor_get(x_159, 0); +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); -x_162 = 1; -x_163 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_162); +lean_dec(x_158); lean_inc(x_11); -x_164 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_163, x_101, x_157, x_160, x_6, x_7, x_8, x_9, x_155, x_11, x_161); -if (lean_obj_tag(x_164) == 0) +lean_inc(x_157); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_161 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_103, x_107, x_6, x_7, x_8, x_9, x_157, x_11, x_160); +if (lean_obj_tag(x_161) == 0) { -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; -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_166); -lean_dec(x_11); -x_168 = lean_ctor_get(x_167, 0); +lean_object* x_162; lean_object* x_163; uint8_t x_164; uint8_t x_165; lean_object* x_166; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = 1; +x_165 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_164); +lean_inc(x_11); +x_166 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_165, x_101, x_159, x_162, x_6, x_7, x_8, x_9, x_157, x_11, x_163); +if (lean_obj_tag(x_166) == 0) +{ +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_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_170 = x_167; +lean_dec(x_166); +x_169 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_168); +lean_dec(x_11); +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +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_167); - x_170 = lean_box(0); + lean_dec_ref(x_169); + x_172 = lean_box(0); } -x_171 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_171, 0, x_100); -lean_ctor_set(x_171, 1, x_168); -lean_ctor_set(x_171, 2, x_165); -if (lean_is_scalar(x_170)) { - x_172 = lean_alloc_ctor(0, 2, 0); +x_173 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_173, 0, x_100); +lean_ctor_set(x_173, 1, x_170); +lean_ctor_set(x_173, 2, x_167); +if (lean_is_scalar(x_172)) { + x_174 = lean_alloc_ctor(0, 2, 0); } else { - x_172 = x_170; + x_174 = x_172; } -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_169); -return x_172; +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_171); +return x_174; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_dec(x_100); lean_dec(x_11); -x_173 = lean_ctor_get(x_164, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_164, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_175 = x_164; +x_175 = lean_ctor_get(x_166, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_166, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + x_177 = x_166; } else { - lean_dec_ref(x_164); - x_175 = lean_box(0); + lean_dec_ref(x_166); + x_177 = lean_box(0); } -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(1, 2, 0); } else { - x_176 = x_175; + x_178 = x_177; } -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_174); -return x_176; +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +return x_178; } } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_159); lean_dec(x_157); -lean_dec(x_155); lean_dec(x_101); lean_dec(x_100); lean_dec(x_11); @@ -13283,32 +13481,32 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_177 = lean_ctor_get(x_159, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_159, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_179 = x_159; +x_179 = lean_ctor_get(x_161, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_161, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_181 = x_161; } else { - lean_dec_ref(x_159); - x_179 = lean_box(0); + lean_dec_ref(x_161); + x_181 = lean_box(0); } -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); } else { - x_180 = x_179; + x_182 = x_181; } -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_178); -return x_180; +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; } } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_155); +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_157); lean_dec(x_103); lean_dec(x_101); lean_dec(x_100); @@ -13317,131 +13515,131 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_181 = lean_ctor_get(x_156, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_156, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_183 = x_156; +x_183 = lean_ctor_get(x_158, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_158, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_185 = x_158; } else { - lean_dec_ref(x_156); - x_183 = lean_box(0); + lean_dec_ref(x_158); + x_185 = lean_box(0); } -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); } else { - x_184 = x_183; + x_186 = x_185; } -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_182); -return x_184; +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; } } } else { -lean_object* x_185; uint8_t x_186; uint8_t x_187; lean_object* x_188; +lean_object* x_187; uint8_t x_188; uint8_t x_189; lean_object* x_190; lean_inc(x_101); -x_185 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_185, 0, x_101); -x_186 = 1; -x_187 = 0; +x_187 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_187, 0, x_101); +x_188 = 1; +x_189 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_185); +lean_inc(x_187); lean_inc(x_1); -x_188 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_102, x_185, x_186, x_187, x_6, x_7, x_8, x_9, x_10, x_11, x_106); -if (lean_obj_tag(x_188) == 0) +x_190 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_102, x_187, x_188, x_189, x_6, x_7, x_8, x_9, x_10, x_11, x_106); +if (lean_obj_tag(x_190) == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -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 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_103, x_185, x_187, x_187, x_6, x_7, x_8, x_9, x_10, x_11, x_190); -if (lean_obj_tag(x_191) == 0) +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec(x_190); +x_193 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_103, x_187, x_189, x_189, x_6, x_7, x_8, x_9, x_10, x_11, x_192); +if (lean_obj_tag(x_193) == 0) { -uint8_t x_192; -x_192 = !lean_is_exclusive(x_191); -if (x_192 == 0) +uint8_t x_194; +x_194 = !lean_is_exclusive(x_193); +if (x_194 == 0) { -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_191, 0); +lean_object* x_195; lean_object* x_196; +x_195 = lean_ctor_get(x_193, 0); if (lean_is_scalar(x_104)) { - x_194 = lean_alloc_ctor(1, 4, 1); + x_196 = lean_alloc_ctor(1, 4, 1); } else { - x_194 = x_104; + x_196 = x_104; } -lean_ctor_set(x_194, 0, x_100); -lean_ctor_set(x_194, 1, x_101); -lean_ctor_set(x_194, 2, x_189); -lean_ctor_set(x_194, 3, x_193); -lean_ctor_set_uint8(x_194, sizeof(void*)*4, x_99); -lean_ctor_set(x_191, 0, x_194); -return x_191; +lean_ctor_set(x_196, 0, x_100); +lean_ctor_set(x_196, 1, x_101); +lean_ctor_set(x_196, 2, x_191); +lean_ctor_set(x_196, 3, x_195); +lean_ctor_set_uint8(x_196, sizeof(void*)*4, x_99); +lean_ctor_set(x_193, 0, x_196); +return x_193; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_195 = lean_ctor_get(x_191, 0); -x_196 = lean_ctor_get(x_191, 1); -lean_inc(x_196); -lean_inc(x_195); +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_197 = lean_ctor_get(x_193, 0); +x_198 = lean_ctor_get(x_193, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_193); +if (lean_is_scalar(x_104)) { + x_199 = lean_alloc_ctor(1, 4, 1); +} else { + x_199 = x_104; +} +lean_ctor_set(x_199, 0, x_100); +lean_ctor_set(x_199, 1, x_101); +lean_ctor_set(x_199, 2, x_191); +lean_ctor_set(x_199, 3, x_197); +lean_ctor_set_uint8(x_199, sizeof(void*)*4, x_99); +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +return x_200; +} +} +else +{ +uint8_t x_201; lean_dec(x_191); -if (lean_is_scalar(x_104)) { - x_197 = lean_alloc_ctor(1, 4, 1); -} else { - x_197 = x_104; -} -lean_ctor_set(x_197, 0, x_100); -lean_ctor_set(x_197, 1, x_101); -lean_ctor_set(x_197, 2, x_189); -lean_ctor_set(x_197, 3, x_195); -lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_99); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -return x_198; -} -} -else -{ -uint8_t x_199; -lean_dec(x_189); lean_dec(x_104); lean_dec(x_101); lean_dec(x_100); -x_199 = !lean_is_exclusive(x_191); -if (x_199 == 0) +x_201 = !lean_is_exclusive(x_193); +if (x_201 == 0) { -return x_191; +return x_193; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_191, 0); -x_201 = lean_ctor_get(x_191, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_191); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_193, 0); +x_203 = lean_ctor_get(x_193, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_193); +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; } } } else { -uint8_t x_203; -lean_dec(x_185); +uint8_t x_205; +lean_dec(x_187); lean_dec(x_104); lean_dec(x_103); lean_dec(x_101); @@ -13453,23 +13651,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_203 = !lean_is_exclusive(x_188); -if (x_203 == 0) +x_205 = !lean_is_exclusive(x_190); +if (x_205 == 0) { -return x_188; +return x_190; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_188, 0); -x_205 = lean_ctor_get(x_188, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_188); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_190, 0); +x_207 = lean_ctor_get(x_190, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_190); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } @@ -13477,56 +13675,56 @@ return x_206; } case 1: { -lean_object* 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; -x_216 = lean_ctor_get(x_2, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_2, 1); -lean_inc(x_217); -x_218 = lean_ctor_get(x_2, 2); +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; +x_218 = lean_ctor_get(x_2, 0); lean_inc(x_218); -x_219 = lean_ctor_get(x_2, 3); +x_219 = lean_ctor_get(x_2, 1); lean_inc(x_219); +x_220 = lean_ctor_get(x_2, 2); +lean_inc(x_220); +x_221 = lean_ctor_get(x_2, 3); +lean_inc(x_221); 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_220 = x_2; + x_222 = x_2; } else { lean_dec_ref(x_2); - x_220 = lean_box(0); + x_222 = lean_box(0); } if (x_5 == 0) { -lean_object* x_324; +lean_object* x_328; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_324 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHomogeneousInstance(x_217, x_1, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_324) == 0) +x_328 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_hasHomogeneousInstance(x_219, x_1, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_328) == 0) { -lean_object* x_325; lean_object* x_326; uint8_t x_327; -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_324, 1); -lean_inc(x_326); -lean_dec(x_324); -x_327 = lean_unbox(x_325); -lean_dec(x_325); -x_221 = x_327; -x_222 = x_326; -goto block_323; +lean_object* x_329; lean_object* x_330; uint8_t x_331; +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); +x_331 = lean_unbox(x_329); +lean_dec(x_329); +x_223 = x_331; +x_224 = x_330; +goto block_327; } else { -uint8_t x_328; +uint8_t x_332; +lean_dec(x_222); +lean_dec(x_221); lean_dec(x_220); lean_dec(x_219); lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13534,226 +13732,231 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_328 = !lean_is_exclusive(x_324); -if (x_328 == 0) +x_332 = !lean_is_exclusive(x_328); +if (x_332 == 0) { -return x_324; +return x_328; } else { -lean_object* x_329; lean_object* x_330; lean_object* x_331; -x_329 = lean_ctor_get(x_324, 0); -x_330 = lean_ctor_get(x_324, 1); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_324); -x_331 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_331, 0, x_329); -lean_ctor_set(x_331, 1, x_330); -return x_331; +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_328, 0); +x_334 = lean_ctor_get(x_328, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_328); +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_333); +lean_ctor_set(x_335, 1, x_334); +return x_335; } } } else { -x_221 = x_5; -x_222 = x_12; -goto block_323; +x_223 = x_5; +x_224 = x_12; +goto block_327; } -block_323: +block_327: { -if (x_221 == 0) +if (x_223 == 0) { -lean_object* x_223; uint8_t x_224; -lean_dec(x_220); +lean_object* x_225; uint8_t x_226; +lean_dec(x_222); lean_dec(x_1); -x_223 = lean_box(0); -x_224 = !lean_is_exclusive(x_10); -if (x_224 == 0) +x_225 = lean_box(0); +x_226 = !lean_is_exclusive(x_10); +if (x_226 == 0) { -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_10, 5); -x_226 = l_Lean_replaceRef(x_216, x_225); -lean_dec(x_225); -lean_ctor_set(x_10, 5, x_226); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_227 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_218, x_223, x_6, x_7, x_8, x_9, x_10, x_11, x_222); -if (lean_obj_tag(x_227) == 0) -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_10, 5); +x_228 = l_Lean_replaceRef(x_218, x_227); lean_dec(x_227); +lean_ctor_set(x_10, 5, x_228); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_230 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_219, x_223, x_6, x_7, x_8, x_9, x_10, x_11, x_229); -if (lean_obj_tag(x_230) == 0) +x_229 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_220, x_225, x_6, x_7, x_8, x_9, x_10, x_11, x_224); +if (lean_obj_tag(x_229) == 0) { -lean_object* x_231; lean_object* x_232; uint8_t x_233; uint8_t x_234; lean_object* x_235; -x_231 = lean_ctor_get(x_230, 0); +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 1); -lean_inc(x_232); -lean_dec(x_230); -x_233 = 1; -x_234 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_233); +lean_dec(x_229); lean_inc(x_11); -x_235 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_234, x_217, x_228, x_231, x_6, x_7, x_8, x_9, x_10, x_11, x_232); -if (lean_obj_tag(x_235) == 0) +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_232 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_221, x_225, x_6, x_7, x_8, x_9, x_10, x_11, x_231); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_238 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_237); +lean_object* x_233; lean_object* x_234; uint8_t x_235; uint8_t x_236; lean_object* x_237; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = 1; +x_236 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_235); +lean_inc(x_11); +x_237 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_236, x_219, x_230, x_233, x_6, x_7, x_8, x_9, x_10, x_11, x_234); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_239); lean_dec(x_11); -x_239 = !lean_is_exclusive(x_238); -if (x_239 == 0) +x_241 = !lean_is_exclusive(x_240); +if (x_241 == 0) { -lean_object* x_240; lean_object* x_241; -x_240 = lean_ctor_get(x_238, 0); -x_241 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_241, 0, x_216); -lean_ctor_set(x_241, 1, x_240); -lean_ctor_set(x_241, 2, x_236); -lean_ctor_set(x_238, 0, x_241); -return x_238; +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_240, 0); +x_243 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_243, 0, x_218); +lean_ctor_set(x_243, 1, x_242); +lean_ctor_set(x_243, 2, x_238); +lean_ctor_set(x_240, 0, x_243); +return x_240; } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_242 = lean_ctor_get(x_238, 0); -x_243 = lean_ctor_get(x_238, 1); -lean_inc(x_243); -lean_inc(x_242); -lean_dec(x_238); -x_244 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_244, 0, x_216); -lean_ctor_set(x_244, 1, x_242); -lean_ctor_set(x_244, 2, x_236); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_243); -return x_245; +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_244 = lean_ctor_get(x_240, 0); +x_245 = lean_ctor_get(x_240, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_240); +x_246 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_246, 0, x_218); +lean_ctor_set(x_246, 1, x_244); +lean_ctor_set(x_246, 2, x_238); +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_245); +return x_247; } } else { -uint8_t x_246; -lean_dec(x_216); +uint8_t x_248; +lean_dec(x_218); lean_dec(x_11); -x_246 = !lean_is_exclusive(x_235); -if (x_246 == 0) +x_248 = !lean_is_exclusive(x_237); +if (x_248 == 0) { -return x_235; +return x_237; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_235, 0); -x_248 = lean_ctor_get(x_235, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_235); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -return x_249; +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_237, 0); +x_250 = lean_ctor_get(x_237, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_237); +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; } } } else { -uint8_t x_250; -lean_dec(x_228); -lean_dec(x_10); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_250 = !lean_is_exclusive(x_230); -if (x_250 == 0) -{ -return x_230; -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_251 = lean_ctor_get(x_230, 0); -x_252 = lean_ctor_get(x_230, 1); -lean_inc(x_252); -lean_inc(x_251); +uint8_t x_252; lean_dec(x_230); -x_253 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_253, 0, x_251); -lean_ctor_set(x_253, 1, x_252); -return x_253; -} -} -} -else -{ -uint8_t x_254; lean_dec(x_10); lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); +lean_dec(x_218); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_254 = !lean_is_exclusive(x_227); -if (x_254 == 0) +x_252 = !lean_is_exclusive(x_232); +if (x_252 == 0) { -return x_227; +return x_232; } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_255 = lean_ctor_get(x_227, 0); -x_256 = lean_ctor_get(x_227, 1); -lean_inc(x_256); -lean_inc(x_255); -lean_dec(x_227); -x_257 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_257, 0, x_255); -lean_ctor_set(x_257, 1, x_256); -return x_257; +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_232, 0); +x_254 = lean_ctor_get(x_232, 1); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_232); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_253); +lean_ctor_set(x_255, 1, x_254); +return x_255; } } } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_258 = lean_ctor_get(x_10, 0); -x_259 = lean_ctor_get(x_10, 1); -x_260 = lean_ctor_get(x_10, 2); -x_261 = lean_ctor_get(x_10, 3); -x_262 = lean_ctor_get(x_10, 4); -x_263 = lean_ctor_get(x_10, 5); -x_264 = lean_ctor_get(x_10, 6); -x_265 = lean_ctor_get(x_10, 7); -x_266 = lean_ctor_get(x_10, 8); -x_267 = lean_ctor_get(x_10, 9); -x_268 = lean_ctor_get(x_10, 10); -x_269 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +uint8_t x_256; +lean_dec(x_10); +lean_dec(x_221); +lean_dec(x_219); +lean_dec(x_218); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_256 = !lean_is_exclusive(x_229); +if (x_256 == 0) +{ +return x_229; +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_229, 0); +x_258 = lean_ctor_get(x_229, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_229); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +return x_259; +} +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; uint8_t x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_260 = lean_ctor_get(x_10, 0); +x_261 = lean_ctor_get(x_10, 1); +x_262 = lean_ctor_get(x_10, 2); +x_263 = lean_ctor_get(x_10, 3); +x_264 = lean_ctor_get(x_10, 4); +x_265 = lean_ctor_get(x_10, 5); +x_266 = lean_ctor_get(x_10, 6); +x_267 = lean_ctor_get(x_10, 7); +x_268 = lean_ctor_get(x_10, 8); +x_269 = lean_ctor_get(x_10, 9); +x_270 = lean_ctor_get(x_10, 10); +x_271 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_272 = lean_ctor_get(x_10, 11); +x_273 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_272); +lean_inc(x_270); +lean_inc(x_269); lean_inc(x_268); lean_inc(x_267); lean_inc(x_266); @@ -13763,142 +13966,108 @@ lean_inc(x_263); lean_inc(x_262); lean_inc(x_261); lean_inc(x_260); -lean_inc(x_259); -lean_inc(x_258); lean_dec(x_10); -x_270 = l_Lean_replaceRef(x_216, x_263); -lean_dec(x_263); -x_271 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_271, 0, x_258); -lean_ctor_set(x_271, 1, x_259); -lean_ctor_set(x_271, 2, x_260); -lean_ctor_set(x_271, 3, x_261); -lean_ctor_set(x_271, 4, x_262); -lean_ctor_set(x_271, 5, x_270); -lean_ctor_set(x_271, 6, x_264); -lean_ctor_set(x_271, 7, x_265); -lean_ctor_set(x_271, 8, x_266); -lean_ctor_set(x_271, 9, x_267); -lean_ctor_set(x_271, 10, x_268); -lean_ctor_set_uint8(x_271, sizeof(void*)*11, x_269); +x_274 = l_Lean_replaceRef(x_218, x_265); +lean_dec(x_265); +x_275 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_275, 0, x_260); +lean_ctor_set(x_275, 1, x_261); +lean_ctor_set(x_275, 2, x_262); +lean_ctor_set(x_275, 3, x_263); +lean_ctor_set(x_275, 4, x_264); +lean_ctor_set(x_275, 5, x_274); +lean_ctor_set(x_275, 6, x_266); +lean_ctor_set(x_275, 7, x_267); +lean_ctor_set(x_275, 8, x_268); +lean_ctor_set(x_275, 9, x_269); +lean_ctor_set(x_275, 10, x_270); +lean_ctor_set(x_275, 11, x_272); +lean_ctor_set_uint8(x_275, sizeof(void*)*12, x_271); +lean_ctor_set_uint8(x_275, sizeof(void*)*12 + 1, x_273); lean_inc(x_11); -lean_inc(x_271); +lean_inc(x_275); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_272 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_218, x_223, x_6, x_7, x_8, x_9, x_271, x_11, x_222); -if (lean_obj_tag(x_272) == 0) +x_276 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_220, x_225, x_6, x_7, x_8, x_9, x_275, x_11, x_224); +if (lean_obj_tag(x_276) == 0) { -lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -lean_dec(x_272); -lean_inc(x_11); -lean_inc(x_271); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_275 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_219, x_223, x_6, x_7, x_8, x_9, x_271, x_11, x_274); -if (lean_obj_tag(x_275) == 0) -{ -lean_object* x_276; lean_object* x_277; uint8_t x_278; uint8_t x_279; lean_object* x_280; -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); +lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_277 = lean_ctor_get(x_276, 0); lean_inc(x_277); -lean_dec(x_275); -x_278 = 1; -x_279 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_278); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); lean_inc(x_11); -x_280 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_279, x_217, x_273, x_276, x_6, x_7, x_8, x_9, x_271, x_11, x_277); -if (lean_obj_tag(x_280) == 0) +lean_inc(x_275); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_279 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr(x_221, x_225, x_6, x_7, x_8, x_9, x_275, x_11, x_278); +if (lean_obj_tag(x_279) == 0) { -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; -x_281 = lean_ctor_get(x_280, 0); +lean_object* x_280; lean_object* x_281; uint8_t x_282; uint8_t x_283; lean_object* x_284; +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 1); lean_inc(x_281); -x_282 = lean_ctor_get(x_280, 1); -lean_inc(x_282); -lean_dec(x_280); -x_283 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_282); -lean_dec(x_11); -x_284 = lean_ctor_get(x_283, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_283, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_283)) { - lean_ctor_release(x_283, 0); - lean_ctor_release(x_283, 1); - x_286 = x_283; -} else { - lean_dec_ref(x_283); - x_286 = lean_box(0); -} -x_287 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_287, 0, x_216); -lean_ctor_set(x_287, 1, x_284); -lean_ctor_set(x_287, 2, x_281); -if (lean_is_scalar(x_286)) { - x_288 = lean_alloc_ctor(0, 2, 0); -} else { - x_288 = x_286; -} -lean_ctor_set(x_288, 0, x_287); -lean_ctor_set(x_288, 1, x_285); -return x_288; -} -else +lean_dec(x_279); +x_282 = 1; +x_283 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_beqBinOpKind____x40_Lean_Elab_Extra___hyg_1335_(x_99, x_282); +lean_inc(x_11); +x_284 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_mkBinOp(x_283, x_219, x_277, x_280, x_6, x_7, x_8, x_9, x_275, x_11, x_281); +if (lean_obj_tag(x_284) == 0) { -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -lean_dec(x_216); +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_284, 1); +lean_inc(x_286); +lean_dec(x_284); +x_287 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_11, x_286); lean_dec(x_11); -x_289 = lean_ctor_get(x_280, 0); +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_287, 1); lean_inc(x_289); -x_290 = lean_ctor_get(x_280, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_291 = x_280; +if (lean_is_exclusive(x_287)) { + lean_ctor_release(x_287, 0); + lean_ctor_release(x_287, 1); + x_290 = x_287; } else { - lean_dec_ref(x_280); - x_291 = lean_box(0); + lean_dec_ref(x_287); + x_290 = lean_box(0); } -if (lean_is_scalar(x_291)) { - x_292 = lean_alloc_ctor(1, 2, 0); +x_291 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_291, 0, x_218); +lean_ctor_set(x_291, 1, x_288); +lean_ctor_set(x_291, 2, x_285); +if (lean_is_scalar(x_290)) { + x_292 = lean_alloc_ctor(0, 2, 0); } else { - x_292 = x_291; + x_292 = x_290; } -lean_ctor_set(x_292, 0, x_289); -lean_ctor_set(x_292, 1, x_290); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_289); return x_292; } -} else { lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_217); -lean_dec(x_216); +lean_dec(x_218); lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_293 = lean_ctor_get(x_275, 0); +x_293 = lean_ctor_get(x_284, 0); lean_inc(x_293); -x_294 = lean_ctor_get(x_275, 1); +x_294 = lean_ctor_get(x_284, 1); lean_inc(x_294); -if (lean_is_exclusive(x_275)) { - lean_ctor_release(x_275, 0); - lean_ctor_release(x_275, 1); - x_295 = x_275; +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_295 = x_284; } else { - lean_dec_ref(x_275); + lean_dec_ref(x_284); x_295 = lean_box(0); } if (lean_is_scalar(x_295)) { @@ -13914,25 +14083,25 @@ return x_296; else { lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -lean_dec(x_271); +lean_dec(x_277); +lean_dec(x_275); lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); +lean_dec(x_218); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_297 = lean_ctor_get(x_272, 0); +x_297 = lean_ctor_get(x_279, 0); lean_inc(x_297); -x_298 = lean_ctor_get(x_272, 1); +x_298 = lean_ctor_get(x_279, 1); lean_inc(x_298); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_299 = x_272; +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_299 = x_279; } else { - lean_dec_ref(x_272); + lean_dec_ref(x_279); x_299 = lean_box(0); } if (lean_is_scalar(x_299)) { @@ -13945,133 +14114,132 @@ lean_ctor_set(x_300, 1, x_298); return x_300; } } +else +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_275); +lean_dec(x_221); +lean_dec(x_219); +lean_dec(x_218); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_301 = lean_ctor_get(x_276, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_276, 1); +lean_inc(x_302); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_303 = x_276; +} else { + lean_dec_ref(x_276); + x_303 = lean_box(0); +} +if (lean_is_scalar(x_303)) { + x_304 = lean_alloc_ctor(1, 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_301; uint8_t x_302; uint8_t x_303; lean_object* x_304; -lean_inc(x_217); -x_301 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_301, 0, x_217); -x_302 = 1; -x_303 = 0; +lean_object* x_305; uint8_t x_306; uint8_t x_307; lean_object* x_308; +lean_inc(x_219); +x_305 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_305, 0, x_219); +x_306 = 1; +x_307 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_301); -lean_inc(x_1); -x_304 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_218, x_301, x_302, x_303, x_6, x_7, x_8, x_9, x_10, x_11, x_222); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; -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___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_219, x_301, x_303, x_303, x_6, x_7, x_8, x_9, x_10, x_11, x_306); -if (lean_obj_tag(x_307) == 0) +lean_inc(x_1); +x_308 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_220, x_305, x_306, x_307, x_6, x_7, x_8, x_9, x_10, x_11, x_224); +if (lean_obj_tag(x_308) == 0) { -uint8_t x_308; -x_308 = !lean_is_exclusive(x_307); -if (x_308 == 0) +lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_221, x_305, x_307, x_307, x_6, x_7, x_8, x_9, x_10, x_11, x_310); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_309; lean_object* x_310; -x_309 = lean_ctor_get(x_307, 0); -if (lean_is_scalar(x_220)) { - x_310 = lean_alloc_ctor(1, 4, 1); +uint8_t x_312; +x_312 = !lean_is_exclusive(x_311); +if (x_312 == 0) +{ +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_311, 0); +if (lean_is_scalar(x_222)) { + x_314 = lean_alloc_ctor(1, 4, 1); } else { - x_310 = x_220; + x_314 = x_222; } -lean_ctor_set(x_310, 0, x_216); -lean_ctor_set(x_310, 1, x_217); -lean_ctor_set(x_310, 2, x_305); -lean_ctor_set(x_310, 3, x_309); -lean_ctor_set_uint8(x_310, sizeof(void*)*4, x_99); -lean_ctor_set(x_307, 0, x_310); -return x_307; +lean_ctor_set(x_314, 0, x_218); +lean_ctor_set(x_314, 1, x_219); +lean_ctor_set(x_314, 2, x_309); +lean_ctor_set(x_314, 3, x_313); +lean_ctor_set_uint8(x_314, sizeof(void*)*4, x_99); +lean_ctor_set(x_311, 0, x_314); +return x_311; } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_311 = lean_ctor_get(x_307, 0); -x_312 = lean_ctor_get(x_307, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_307); -if (lean_is_scalar(x_220)) { - x_313 = lean_alloc_ctor(1, 4, 1); -} else { - x_313 = x_220; -} -lean_ctor_set(x_313, 0, x_216); -lean_ctor_set(x_313, 1, x_217); -lean_ctor_set(x_313, 2, x_305); -lean_ctor_set(x_313, 3, x_311); -lean_ctor_set_uint8(x_313, sizeof(void*)*4, x_99); -x_314 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_312); -return x_314; -} -} -else -{ -uint8_t x_315; -lean_dec(x_305); -lean_dec(x_220); -lean_dec(x_217); -lean_dec(x_216); -x_315 = !lean_is_exclusive(x_307); -if (x_315 == 0) -{ -return x_307; -} -else -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_307, 0); -x_317 = lean_ctor_get(x_307, 1); -lean_inc(x_317); +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_315 = lean_ctor_get(x_311, 0); +x_316 = lean_ctor_get(x_311, 1); lean_inc(x_316); -lean_dec(x_307); -x_318 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set(x_318, 1, x_317); -return x_318; +lean_inc(x_315); +lean_dec(x_311); +if (lean_is_scalar(x_222)) { + x_317 = lean_alloc_ctor(1, 4, 1); +} else { + x_317 = x_222; } +lean_ctor_set(x_317, 0, x_218); +lean_ctor_set(x_317, 1, x_219); +lean_ctor_set(x_317, 2, x_309); +lean_ctor_set(x_317, 3, x_315); +lean_ctor_set_uint8(x_317, sizeof(void*)*4, x_99); +x_318 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_316); +return x_318; } } else { uint8_t x_319; -lean_dec(x_301); -lean_dec(x_220); +lean_dec(x_309); +lean_dec(x_222); lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_319 = !lean_is_exclusive(x_304); +lean_dec(x_218); +x_319 = !lean_is_exclusive(x_311); if (x_319 == 0) { -return x_304; +return x_311; } else { lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_320 = lean_ctor_get(x_304, 0); -x_321 = lean_ctor_get(x_304, 1); +x_320 = lean_ctor_get(x_311, 0); +x_321 = lean_ctor_get(x_311, 1); lean_inc(x_321); lean_inc(x_320); -lean_dec(x_304); +lean_dec(x_311); x_322 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_322, 0, x_320); lean_ctor_set(x_322, 1, x_321); @@ -14079,491 +14247,533 @@ return x_322; } } } +else +{ +uint8_t x_323; +lean_dec(x_305); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_219); +lean_dec(x_218); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_323 = !lean_is_exclusive(x_308); +if (x_323 == 0) +{ +return x_308; +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_324 = lean_ctor_get(x_308, 0); +x_325 = lean_ctor_get(x_308, 1); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_308); +x_326 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_326, 0, x_324); +lean_ctor_set(x_326, 1, x_325); +return x_326; +} +} +} } } case 2: { -uint8_t x_332; -x_332 = !lean_is_exclusive(x_2); -if (x_332 == 0) +uint8_t x_336; +x_336 = !lean_is_exclusive(x_2); +if (x_336 == 0) { -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; uint8_t x_338; lean_object* x_339; -x_333 = lean_ctor_get(x_2, 0); -x_334 = lean_ctor_get(x_2, 1); -x_335 = lean_ctor_get(x_2, 2); -x_336 = lean_ctor_get(x_2, 3); -x_337 = lean_box(0); -x_338 = 0; -x_339 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_336, x_337, x_338, x_338, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_339) == 0) +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; lean_object* x_343; +x_337 = lean_ctor_get(x_2, 0); +x_338 = lean_ctor_get(x_2, 1); +x_339 = lean_ctor_get(x_2, 2); +x_340 = lean_ctor_get(x_2, 3); +x_341 = lean_box(0); +x_342 = 0; +x_343 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_340, x_341, x_342, x_342, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_343) == 0) { -uint8_t x_340; -x_340 = !lean_is_exclusive(x_339); -if (x_340 == 0) +uint8_t x_344; +x_344 = !lean_is_exclusive(x_343); +if (x_344 == 0) { -lean_object* x_341; uint8_t x_342; -x_341 = lean_ctor_get(x_339, 0); -x_342 = 2; -lean_ctor_set(x_2, 3, x_341); -lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_342); -lean_ctor_set(x_339, 0, x_2); -return x_339; +lean_object* x_345; uint8_t x_346; +x_345 = lean_ctor_get(x_343, 0); +x_346 = 2; +lean_ctor_set(x_2, 3, x_345); +lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_346); +lean_ctor_set(x_343, 0, x_2); +return x_343; } else { -lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; -x_343 = lean_ctor_get(x_339, 0); -x_344 = lean_ctor_get(x_339, 1); -lean_inc(x_344); -lean_inc(x_343); -lean_dec(x_339); -x_345 = 2; -lean_ctor_set(x_2, 3, x_343); -lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_345); -x_346 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_346, 0, x_2); -lean_ctor_set(x_346, 1, x_344); -return x_346; -} -} -else -{ -uint8_t x_347; -lean_free_object(x_2); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -x_347 = !lean_is_exclusive(x_339); -if (x_347 == 0) -{ -return x_339; -} -else -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_348 = lean_ctor_get(x_339, 0); -x_349 = lean_ctor_get(x_339, 1); -lean_inc(x_349); +lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; +x_347 = lean_ctor_get(x_343, 0); +x_348 = lean_ctor_get(x_343, 1); lean_inc(x_348); -lean_dec(x_339); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_349); +lean_inc(x_347); +lean_dec(x_343); +x_349 = 2; +lean_ctor_set(x_2, 3, x_347); +lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_349); +x_350 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_350, 0, x_2); +lean_ctor_set(x_350, 1, x_348); return x_350; } } +else +{ +uint8_t x_351; +lean_free_object(x_2); +lean_dec(x_339); +lean_dec(x_338); +lean_dec(x_337); +x_351 = !lean_is_exclusive(x_343); +if (x_351 == 0) +{ +return x_343; } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_object* x_357; -x_351 = lean_ctor_get(x_2, 0); -x_352 = lean_ctor_get(x_2, 1); -x_353 = lean_ctor_get(x_2, 2); -x_354 = lean_ctor_get(x_2, 3); -lean_inc(x_354); +lean_object* x_352; lean_object* x_353; lean_object* x_354; +x_352 = lean_ctor_get(x_343, 0); +x_353 = lean_ctor_get(x_343, 1); lean_inc(x_353); lean_inc(x_352); -lean_inc(x_351); -lean_dec(x_2); -x_355 = lean_box(0); -x_356 = 0; -x_357 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_354, x_355, x_356, x_356, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_357) == 0) -{ -lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_object* x_362; lean_object* x_363; -x_358 = lean_ctor_get(x_357, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_357, 1); -lean_inc(x_359); -if (lean_is_exclusive(x_357)) { - lean_ctor_release(x_357, 0); - lean_ctor_release(x_357, 1); - x_360 = x_357; -} else { - lean_dec_ref(x_357); - x_360 = lean_box(0); +lean_dec(x_343); +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_352); +lean_ctor_set(x_354, 1, x_353); +return x_354; } -x_361 = 2; -x_362 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_362, 0, x_351); -lean_ctor_set(x_362, 1, x_352); -lean_ctor_set(x_362, 2, x_353); -lean_ctor_set(x_362, 3, x_358); -lean_ctor_set_uint8(x_362, sizeof(void*)*4, x_361); -if (lean_is_scalar(x_360)) { - x_363 = lean_alloc_ctor(0, 2, 0); -} else { - x_363 = x_360; } -lean_ctor_set(x_363, 0, x_362); -lean_ctor_set(x_363, 1, x_359); -return x_363; } else { -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; -lean_dec(x_353); -lean_dec(x_352); -lean_dec(x_351); -x_364 = lean_ctor_get(x_357, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_357, 1); -lean_inc(x_365); -if (lean_is_exclusive(x_357)) { - lean_ctor_release(x_357, 0); - lean_ctor_release(x_357, 1); - x_366 = x_357; +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; lean_object* x_361; +x_355 = lean_ctor_get(x_2, 0); +x_356 = lean_ctor_get(x_2, 1); +x_357 = lean_ctor_get(x_2, 2); +x_358 = lean_ctor_get(x_2, 3); +lean_inc(x_358); +lean_inc(x_357); +lean_inc(x_356); +lean_inc(x_355); +lean_dec(x_2); +x_359 = lean_box(0); +x_360 = 0; +x_361 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_358, x_359, x_360, x_360, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_361) == 0) +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; lean_object* x_366; lean_object* x_367; +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + x_364 = x_361; } else { - lean_dec_ref(x_357); - x_366 = lean_box(0); + lean_dec_ref(x_361); + x_364 = lean_box(0); } -if (lean_is_scalar(x_366)) { - x_367 = lean_alloc_ctor(1, 2, 0); +x_365 = 2; +x_366 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_366, 0, x_355); +lean_ctor_set(x_366, 1, x_356); +lean_ctor_set(x_366, 2, x_357); +lean_ctor_set(x_366, 3, x_362); +lean_ctor_set_uint8(x_366, sizeof(void*)*4, x_365); +if (lean_is_scalar(x_364)) { + x_367 = lean_alloc_ctor(0, 2, 0); } else { - x_367 = x_366; + x_367 = x_364; } -lean_ctor_set(x_367, 0, x_364); -lean_ctor_set(x_367, 1, x_365); +lean_ctor_set(x_367, 0, x_366); +lean_ctor_set(x_367, 1, x_363); return x_367; } +else +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_357); +lean_dec(x_356); +lean_dec(x_355); +x_368 = lean_ctor_get(x_361, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_361, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + x_370 = x_361; +} else { + lean_dec_ref(x_361); + x_370 = lean_box(0); +} +if (lean_is_scalar(x_370)) { + x_371 = lean_alloc_ctor(1, 2, 0); +} else { + x_371 = x_370; +} +lean_ctor_set(x_371, 0, x_368); +lean_ctor_set(x_371, 1, x_369); +return x_371; +} } } default: { -uint8_t x_368; -x_368 = !lean_is_exclusive(x_2); -if (x_368 == 0) +uint8_t x_372; +x_372 = !lean_is_exclusive(x_2); +if (x_372 == 0) { -lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; lean_object* x_375; -x_369 = lean_ctor_get(x_2, 0); -x_370 = lean_ctor_get(x_2, 1); -x_371 = lean_ctor_get(x_2, 2); -x_372 = lean_ctor_get(x_2, 3); -x_373 = lean_box(0); -x_374 = 0; -x_375 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_371, x_373, x_374, x_374, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_375) == 0) +lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; uint8_t x_378; lean_object* x_379; +x_373 = lean_ctor_get(x_2, 0); +x_374 = lean_ctor_get(x_2, 1); +x_375 = lean_ctor_get(x_2, 2); +x_376 = lean_ctor_get(x_2, 3); +x_377 = lean_box(0); +x_378 = 0; +x_379 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_375, x_377, x_378, x_378, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_379) == 0) { -uint8_t x_376; -x_376 = !lean_is_exclusive(x_375); -if (x_376 == 0) +uint8_t x_380; +x_380 = !lean_is_exclusive(x_379); +if (x_380 == 0) { -lean_object* x_377; uint8_t x_378; -x_377 = lean_ctor_get(x_375, 0); -x_378 = 3; -lean_ctor_set(x_2, 2, x_377); -lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_378); -lean_ctor_set(x_375, 0, x_2); -return x_375; +lean_object* x_381; uint8_t x_382; +x_381 = lean_ctor_get(x_379, 0); +x_382 = 3; +lean_ctor_set(x_2, 2, x_381); +lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_382); +lean_ctor_set(x_379, 0, x_2); +return x_379; } else { -lean_object* x_379; lean_object* x_380; uint8_t x_381; lean_object* x_382; -x_379 = lean_ctor_get(x_375, 0); -x_380 = lean_ctor_get(x_375, 1); -lean_inc(x_380); -lean_inc(x_379); -lean_dec(x_375); -x_381 = 3; -lean_ctor_set(x_2, 2, x_379); -lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_381); -x_382 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_382, 0, x_2); -lean_ctor_set(x_382, 1, x_380); -return x_382; -} -} -else -{ -uint8_t x_383; -lean_free_object(x_2); -lean_dec(x_372); -lean_dec(x_370); -lean_dec(x_369); -x_383 = !lean_is_exclusive(x_375); -if (x_383 == 0) -{ -return x_375; -} -else -{ -lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_384 = lean_ctor_get(x_375, 0); -x_385 = lean_ctor_get(x_375, 1); -lean_inc(x_385); +lean_object* x_383; lean_object* x_384; uint8_t x_385; lean_object* x_386; +x_383 = lean_ctor_get(x_379, 0); +x_384 = lean_ctor_get(x_379, 1); lean_inc(x_384); -lean_dec(x_375); -x_386 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); +lean_inc(x_383); +lean_dec(x_379); +x_385 = 3; +lean_ctor_set(x_2, 2, x_383); +lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_385); +x_386 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_386, 0, x_2); +lean_ctor_set(x_386, 1, x_384); return x_386; } } +else +{ +uint8_t x_387; +lean_free_object(x_2); +lean_dec(x_376); +lean_dec(x_374); +lean_dec(x_373); +x_387 = !lean_is_exclusive(x_379); +if (x_387 == 0) +{ +return x_379; } else { -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; uint8_t x_392; lean_object* x_393; -x_387 = lean_ctor_get(x_2, 0); -x_388 = lean_ctor_get(x_2, 1); -x_389 = lean_ctor_get(x_2, 2); -x_390 = lean_ctor_get(x_2, 3); -lean_inc(x_390); +lean_object* x_388; lean_object* x_389; lean_object* x_390; +x_388 = lean_ctor_get(x_379, 0); +x_389 = lean_ctor_get(x_379, 1); lean_inc(x_389); lean_inc(x_388); -lean_inc(x_387); -lean_dec(x_2); -x_391 = lean_box(0); -x_392 = 0; -x_393 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_389, x_391, x_392, x_392, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_393) == 0) -{ -lean_object* x_394; lean_object* x_395; lean_object* x_396; uint8_t x_397; lean_object* x_398; lean_object* x_399; -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 1); -lean_inc(x_395); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_396 = x_393; -} else { - lean_dec_ref(x_393); - x_396 = lean_box(0); +lean_dec(x_379); +x_390 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_390, 0, x_388); +lean_ctor_set(x_390, 1, x_389); +return x_390; } -x_397 = 3; -x_398 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_398, 0, x_387); -lean_ctor_set(x_398, 1, x_388); -lean_ctor_set(x_398, 2, x_394); -lean_ctor_set(x_398, 3, x_390); -lean_ctor_set_uint8(x_398, sizeof(void*)*4, x_397); -if (lean_is_scalar(x_396)) { - x_399 = lean_alloc_ctor(0, 2, 0); -} else { - x_399 = x_396; } -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_395); -return x_399; } else { -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; -lean_dec(x_390); -lean_dec(x_388); -lean_dec(x_387); -x_400 = lean_ctor_get(x_393, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_393, 1); -lean_inc(x_401); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_402 = x_393; +lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; lean_object* x_397; +x_391 = lean_ctor_get(x_2, 0); +x_392 = lean_ctor_get(x_2, 1); +x_393 = lean_ctor_get(x_2, 2); +x_394 = lean_ctor_get(x_2, 3); +lean_inc(x_394); +lean_inc(x_393); +lean_inc(x_392); +lean_inc(x_391); +lean_dec(x_2); +x_395 = lean_box(0); +x_396 = 0; +x_397 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_393, x_395, x_396, x_396, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_397) == 0) +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; uint8_t x_401; lean_object* x_402; lean_object* x_403; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_397, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_400 = x_397; } else { - lean_dec_ref(x_393); - x_402 = lean_box(0); + lean_dec_ref(x_397); + x_400 = lean_box(0); } -if (lean_is_scalar(x_402)) { - x_403 = lean_alloc_ctor(1, 2, 0); +x_401 = 3; +x_402 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_402, 0, x_391); +lean_ctor_set(x_402, 1, x_392); +lean_ctor_set(x_402, 2, x_398); +lean_ctor_set(x_402, 3, x_394); +lean_ctor_set_uint8(x_402, sizeof(void*)*4, x_401); +if (lean_is_scalar(x_400)) { + x_403 = lean_alloc_ctor(0, 2, 0); } else { - x_403 = x_402; + x_403 = x_400; } -lean_ctor_set(x_403, 0, x_400); -lean_ctor_set(x_403, 1, x_401); +lean_ctor_set(x_403, 0, x_402); +lean_ctor_set(x_403, 1, x_399); return x_403; } +else +{ +lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +lean_dec(x_394); +lean_dec(x_392); +lean_dec(x_391); +x_404 = lean_ctor_get(x_397, 0); +lean_inc(x_404); +x_405 = lean_ctor_get(x_397, 1); +lean_inc(x_405); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_406 = x_397; +} else { + lean_dec_ref(x_397); + x_406 = lean_box(0); +} +if (lean_is_scalar(x_406)) { + x_407 = lean_alloc_ctor(1, 2, 0); +} else { + x_407 = x_406; +} +lean_ctor_set(x_407, 0, x_404); +lean_ctor_set(x_407, 1, x_405); +return x_407; +} } } } } case 2: { -uint8_t x_404; +uint8_t x_408; lean_dec(x_3); -x_404 = !lean_is_exclusive(x_2); -if (x_404 == 0) +x_408 = !lean_is_exclusive(x_2); +if (x_408 == 0) { -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; -x_405 = lean_ctor_get(x_2, 0); -x_406 = lean_ctor_get(x_2, 1); -x_407 = lean_ctor_get(x_2, 2); -x_408 = lean_box(0); -x_409 = 0; -x_410 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_407, x_408, x_409, x_409, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_410) == 0) +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; uint8_t x_413; lean_object* x_414; +x_409 = lean_ctor_get(x_2, 0); +x_410 = lean_ctor_get(x_2, 1); +x_411 = lean_ctor_get(x_2, 2); +x_412 = lean_box(0); +x_413 = 0; +x_414 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_411, x_412, x_413, x_413, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_414) == 0) { -uint8_t x_411; -x_411 = !lean_is_exclusive(x_410); -if (x_411 == 0) +uint8_t x_415; +x_415 = !lean_is_exclusive(x_414); +if (x_415 == 0) { -lean_object* x_412; -x_412 = lean_ctor_get(x_410, 0); -lean_ctor_set(x_2, 2, x_412); -lean_ctor_set(x_410, 0, x_2); -return x_410; -} -else -{ -lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_413 = lean_ctor_get(x_410, 0); -x_414 = lean_ctor_get(x_410, 1); -lean_inc(x_414); -lean_inc(x_413); -lean_dec(x_410); -lean_ctor_set(x_2, 2, x_413); -x_415 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_415, 0, x_2); -lean_ctor_set(x_415, 1, x_414); -return x_415; -} -} -else -{ -uint8_t x_416; -lean_free_object(x_2); -lean_dec(x_406); -lean_dec(x_405); -x_416 = !lean_is_exclusive(x_410); -if (x_416 == 0) -{ -return x_410; +lean_object* x_416; +x_416 = lean_ctor_get(x_414, 0); +lean_ctor_set(x_2, 2, x_416); +lean_ctor_set(x_414, 0, x_2); +return x_414; } else { lean_object* x_417; lean_object* x_418; lean_object* x_419; -x_417 = lean_ctor_get(x_410, 0); -x_418 = lean_ctor_get(x_410, 1); +x_417 = lean_ctor_get(x_414, 0); +x_418 = lean_ctor_get(x_414, 1); lean_inc(x_418); lean_inc(x_417); -lean_dec(x_410); -x_419 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_419, 0, x_417); +lean_dec(x_414); +lean_ctor_set(x_2, 2, x_417); +x_419 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_419, 0, x_2); lean_ctor_set(x_419, 1, x_418); return x_419; } } +else +{ +uint8_t x_420; +lean_free_object(x_2); +lean_dec(x_410); +lean_dec(x_409); +x_420 = !lean_is_exclusive(x_414); +if (x_420 == 0) +{ +return x_414; } else { -lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; lean_object* x_425; -x_420 = lean_ctor_get(x_2, 0); -x_421 = lean_ctor_get(x_2, 1); -x_422 = lean_ctor_get(x_2, 2); +lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_421 = lean_ctor_get(x_414, 0); +x_422 = lean_ctor_get(x_414, 1); lean_inc(x_422); lean_inc(x_421); -lean_inc(x_420); -lean_dec(x_2); -x_423 = lean_box(0); -x_424 = 0; -x_425 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_422, x_423, x_424, x_424, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_425) == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -if (lean_is_exclusive(x_425)) { - lean_ctor_release(x_425, 0); - lean_ctor_release(x_425, 1); - x_428 = x_425; -} else { - lean_dec_ref(x_425); - x_428 = lean_box(0); +lean_dec(x_414); +x_423 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_423, 0, x_421); +lean_ctor_set(x_423, 1, x_422); +return x_423; } -x_429 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_429, 0, x_420); -lean_ctor_set(x_429, 1, x_421); -lean_ctor_set(x_429, 2, x_426); -if (lean_is_scalar(x_428)) { - x_430 = lean_alloc_ctor(0, 2, 0); -} else { - x_430 = x_428; } -lean_ctor_set(x_430, 0, x_429); -lean_ctor_set(x_430, 1, x_427); -return x_430; } else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -lean_dec(x_421); -lean_dec(x_420); -x_431 = lean_ctor_get(x_425, 0); +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; uint8_t x_428; lean_object* x_429; +x_424 = lean_ctor_get(x_2, 0); +x_425 = lean_ctor_get(x_2, 1); +x_426 = lean_ctor_get(x_2, 2); +lean_inc(x_426); +lean_inc(x_425); +lean_inc(x_424); +lean_dec(x_2); +x_427 = lean_box(0); +x_428 = 0; +x_429 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go(x_1, x_426, x_427, x_428, x_428, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_429) == 0) +{ +lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_430 = lean_ctor_get(x_429, 0); +lean_inc(x_430); +x_431 = lean_ctor_get(x_429, 1); lean_inc(x_431); -x_432 = lean_ctor_get(x_425, 1); -lean_inc(x_432); -if (lean_is_exclusive(x_425)) { - lean_ctor_release(x_425, 0); - lean_ctor_release(x_425, 1); - x_433 = x_425; +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_432 = x_429; } else { - lean_dec_ref(x_425); - x_433 = lean_box(0); + lean_dec_ref(x_429); + x_432 = lean_box(0); } -if (lean_is_scalar(x_433)) { - x_434 = lean_alloc_ctor(1, 2, 0); +x_433 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_433, 0, x_424); +lean_ctor_set(x_433, 1, x_425); +lean_ctor_set(x_433, 2, x_430); +if (lean_is_scalar(x_432)) { + x_434 = lean_alloc_ctor(0, 2, 0); } else { - x_434 = x_433; + x_434 = x_432; } -lean_ctor_set(x_434, 0, x_431); -lean_ctor_set(x_434, 1, x_432); +lean_ctor_set(x_434, 0, x_433); +lean_ctor_set(x_434, 1, x_431); return x_434; } +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_dec(x_425); +lean_dec(x_424); +x_435 = lean_ctor_get(x_429, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_429, 1); +lean_inc(x_436); +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_437 = x_429; +} else { + lean_dec_ref(x_429); + x_437 = lean_box(0); +} +if (lean_is_scalar(x_437)) { + x_438 = lean_alloc_ctor(1, 2, 0); +} else { + x_438 = x_437; +} +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_436); +return x_438; +} } } default: { -lean_object* 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; uint8_t x_442; -x_435 = lean_ctor_get(x_2, 0); -lean_inc(x_435); -x_436 = lean_ctor_get(x_2, 1); -lean_inc(x_436); -x_437 = lean_ctor_get(x_2, 2); -lean_inc(x_437); -x_438 = lean_ctor_get(x_2, 3); -lean_inc(x_438); +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; uint8_t x_446; +x_439 = lean_ctor_get(x_2, 0); +lean_inc(x_439); +x_440 = lean_ctor_get(x_2, 1); +lean_inc(x_440); +x_441 = lean_ctor_get(x_2, 2); +lean_inc(x_441); +x_442 = lean_ctor_get(x_2, 3); +lean_inc(x_442); lean_dec(x_2); -x_439 = lean_box(x_4); -x_440 = lean_box(x_5); -lean_inc(x_437); -lean_inc(x_436); -x_441 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go___lambda__4___boxed), 15, 8); -lean_closure_set(x_441, 0, x_1); -lean_closure_set(x_441, 1, x_438); -lean_closure_set(x_441, 2, x_3); -lean_closure_set(x_441, 3, x_439); -lean_closure_set(x_441, 4, x_440); -lean_closure_set(x_441, 5, x_435); -lean_closure_set(x_441, 6, x_436); -lean_closure_set(x_441, 7, x_437); -x_442 = !lean_is_exclusive(x_10); -if (x_442 == 0) +x_443 = lean_box(x_4); +x_444 = lean_box(x_5); +lean_inc(x_441); +lean_inc(x_440); +x_445 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_applyCoe_go___lambda__4___boxed), 15, 8); +lean_closure_set(x_445, 0, x_1); +lean_closure_set(x_445, 1, x_442); +lean_closure_set(x_445, 2, x_3); +lean_closure_set(x_445, 3, x_443); +lean_closure_set(x_445, 4, x_444); +lean_closure_set(x_445, 5, x_439); +lean_closure_set(x_445, 6, x_440); +lean_closure_set(x_445, 7, x_441); +x_446 = !lean_is_exclusive(x_10); +if (x_446 == 0) { -lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_443 = lean_ctor_get(x_10, 5); -x_444 = l_Lean_replaceRef(x_436, x_443); -lean_dec(x_443); -lean_ctor_set(x_10, 5, x_444); -x_445 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_436, x_437, x_441, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_445; +lean_object* x_447; lean_object* x_448; lean_object* x_449; +x_447 = lean_ctor_get(x_10, 5); +x_448 = l_Lean_replaceRef(x_440, x_447); +lean_dec(x_447); +lean_ctor_set(x_10, 5, x_448); +x_449 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_440, x_441, x_445, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_449; } else { -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; uint8_t x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; -x_446 = lean_ctor_get(x_10, 0); -x_447 = lean_ctor_get(x_10, 1); -x_448 = lean_ctor_get(x_10, 2); -x_449 = lean_ctor_get(x_10, 3); -x_450 = lean_ctor_get(x_10, 4); -x_451 = lean_ctor_get(x_10, 5); -x_452 = lean_ctor_get(x_10, 6); -x_453 = lean_ctor_get(x_10, 7); -x_454 = lean_ctor_get(x_10, 8); -x_455 = lean_ctor_get(x_10, 9); -x_456 = lean_ctor_get(x_10, 10); -x_457 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +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; lean_object* x_464; lean_object* x_465; lean_object* x_466; +x_450 = lean_ctor_get(x_10, 0); +x_451 = lean_ctor_get(x_10, 1); +x_452 = lean_ctor_get(x_10, 2); +x_453 = lean_ctor_get(x_10, 3); +x_454 = lean_ctor_get(x_10, 4); +x_455 = lean_ctor_get(x_10, 5); +x_456 = lean_ctor_get(x_10, 6); +x_457 = lean_ctor_get(x_10, 7); +x_458 = lean_ctor_get(x_10, 8); +x_459 = lean_ctor_get(x_10, 9); +x_460 = lean_ctor_get(x_10, 10); +x_461 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_462 = lean_ctor_get(x_10, 11); +x_463 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_462); +lean_inc(x_460); +lean_inc(x_459); +lean_inc(x_458); +lean_inc(x_457); lean_inc(x_456); lean_inc(x_455); lean_inc(x_454); @@ -14571,28 +14781,26 @@ lean_inc(x_453); lean_inc(x_452); lean_inc(x_451); lean_inc(x_450); -lean_inc(x_449); -lean_inc(x_448); -lean_inc(x_447); -lean_inc(x_446); lean_dec(x_10); -x_458 = l_Lean_replaceRef(x_436, x_451); -lean_dec(x_451); -x_459 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_459, 0, x_446); -lean_ctor_set(x_459, 1, x_447); -lean_ctor_set(x_459, 2, x_448); -lean_ctor_set(x_459, 3, x_449); -lean_ctor_set(x_459, 4, x_450); -lean_ctor_set(x_459, 5, x_458); -lean_ctor_set(x_459, 6, x_452); -lean_ctor_set(x_459, 7, x_453); -lean_ctor_set(x_459, 8, x_454); -lean_ctor_set(x_459, 9, x_455); -lean_ctor_set(x_459, 10, x_456); -lean_ctor_set_uint8(x_459, sizeof(void*)*11, x_457); -x_460 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_436, x_437, x_441, x_6, x_7, x_8, x_9, x_459, x_11, x_12); -return x_460; +x_464 = l_Lean_replaceRef(x_440, x_455); +lean_dec(x_455); +x_465 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_465, 0, x_450); +lean_ctor_set(x_465, 1, x_451); +lean_ctor_set(x_465, 2, x_452); +lean_ctor_set(x_465, 3, x_453); +lean_ctor_set(x_465, 4, x_454); +lean_ctor_set(x_465, 5, x_464); +lean_ctor_set(x_465, 6, x_456); +lean_ctor_set(x_465, 7, x_457); +lean_ctor_set(x_465, 8, x_458); +lean_ctor_set(x_465, 9, x_459); +lean_ctor_set(x_465, 10, x_460); +lean_ctor_set(x_465, 11, x_462); +lean_ctor_set_uint8(x_465, sizeof(void*)*12, x_461); +lean_ctor_set_uint8(x_465, sizeof(void*)*12 + 1, x_463); +x_466 = l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(x_440, x_441, x_445, x_6, x_7, x_8, x_9, x_465, x_11, x_12); +return x_466; } } } @@ -16883,22 +17091,22 @@ return x_44; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(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_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) { _start: { -lean_object* x_20; uint8_t x_89; -x_89 = lean_ctor_get_uint8(x_9, sizeof(void*)*1); -if (x_89 == 0) +lean_object* x_20; uint8_t x_91; +x_91 = lean_ctor_get_uint8(x_9, sizeof(void*)*1); +if (x_91 == 0) { -lean_object* x_90; -x_90 = lean_ctor_get(x_9, 0); -lean_inc(x_90); +lean_object* x_92; +x_92 = lean_ctor_get(x_9, 0); +lean_inc(x_92); lean_dec(x_9); -if (lean_obj_tag(x_90) == 0) +if (lean_obj_tag(x_92) == 0) { -lean_object* x_91; +lean_object* x_93; lean_dec(x_11); lean_dec(x_10); -x_91 = lean_box(0); -x_20 = x_91; -goto block_88; +x_93 = lean_box(0); +x_20 = x_93; +goto block_90; } else { @@ -16911,67 +17119,67 @@ lean_dec(x_2); lean_dec(x_1); if (x_4 == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_90, 0); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_box(0); -x_94 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_92, x_93, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -return x_94; +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_box(0); +x_96 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_94, x_95, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_96; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; -x_95 = lean_ctor_get(x_90, 0); -lean_inc(x_95); -lean_dec(x_90); -x_96 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___closed__1; -lean_inc(x_95); -x_97 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___lambda__2___boxed), 9, 2); -lean_closure_set(x_97, 0, x_95); -lean_closure_set(x_97, 1, x_96); -x_98 = 0; +lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_92, 0); +lean_inc(x_97); +lean_dec(x_92); +x_98 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___closed__1; +lean_inc(x_97); +x_99 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___lambda__2___boxed), 9, 2); +lean_closure_set(x_99, 0, x_97); +lean_closure_set(x_99, 1, x_98); +x_100 = 0; lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -x_99 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___spec__1___rarg(x_97, x_98, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -if (lean_obj_tag(x_99) == 0) +x_101 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___spec__1___rarg(x_99, x_100, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_100; uint8_t x_101; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_unbox(x_100); -lean_dec(x_100); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_99, 1); +lean_object* x_102; uint8_t x_103; +x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); -lean_dec(x_99); -x_103 = lean_box(0); -x_104 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_95, x_103, x_13, x_14, x_15, x_16, x_17, x_18, x_102); -return x_104; +x_103 = lean_unbox(x_102); +lean_dec(x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_101, 1); +lean_inc(x_104); +lean_dec(x_101); +x_105 = lean_box(0); +x_106 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_97, x_105, x_13, x_14, x_15, x_16, x_17, x_18, x_104); +return x_106; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_95); -x_105 = lean_ctor_get(x_99, 1); -lean_inc(x_105); -lean_dec(x_99); -x_106 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___closed__4; -x_107 = lean_box(0); -x_108 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_106, x_107, x_13, x_14, x_15, x_16, x_17, x_18, x_105); -return x_108; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_97); +x_107 = lean_ctor_get(x_101, 1); +lean_inc(x_107); +lean_dec(x_101); +x_108 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary___closed__4; +x_109 = lean_box(0); +x_110 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__1(x_10, x_11, x_108, x_109, x_13, x_14, x_15, x_16, x_17, x_18, x_107); +return x_110; } } else { -uint8_t x_109; -lean_dec(x_95); +uint8_t x_111; +lean_dec(x_97); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -16980,23 +17188,23 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); -x_109 = !lean_is_exclusive(x_99); -if (x_109 == 0) +x_111 = !lean_is_exclusive(x_101); +if (x_111 == 0) { -return x_99; +return x_101; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_99, 0); -x_111 = lean_ctor_get(x_99, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_99); -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; +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_101, 0); +x_113 = lean_ctor_get(x_101, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_101); +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; } } } @@ -17004,15 +17212,15 @@ return x_112; } else { -lean_object* x_113; +lean_object* x_115; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_113 = lean_box(0); -x_20 = x_113; -goto block_88; +x_115 = lean_box(0); +x_20 = x_115; +goto block_90; } -block_88: +block_90: { lean_object* x_21; lean_dec(x_20); @@ -17040,7 +17248,7 @@ lean_inc(x_13); x_24 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExprCore(x_2, x_13, x_14, x_15, x_16, x_17, x_18, x_23); if (lean_obj_tag(x_24) == 0) { -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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +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; uint8_t x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -17068,9 +17276,13 @@ x_36 = lean_ctor_get(x_17, 9); lean_inc(x_36); x_37 = lean_ctor_get(x_17, 10); lean_inc(x_37); -x_38 = lean_ctor_get_uint8(x_17, sizeof(void*)*11); -x_39 = l_Lean_replaceRef(x_3, x_32); +x_38 = lean_ctor_get_uint8(x_17, sizeof(void*)*12); +x_39 = lean_ctor_get(x_17, 11); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_17, sizeof(void*)*12 + 1); +x_41 = l_Lean_replaceRef(x_3, x_32); lean_dec(x_3); +lean_inc(x_39); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -17081,111 +17293,115 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); -x_40 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_40, 0, x_27); -lean_ctor_set(x_40, 1, x_28); -lean_ctor_set(x_40, 2, x_29); -lean_ctor_set(x_40, 3, x_30); -lean_ctor_set(x_40, 4, x_31); -lean_ctor_set(x_40, 5, x_39); -lean_ctor_set(x_40, 6, x_33); -lean_ctor_set(x_40, 7, x_34); -lean_ctor_set(x_40, 8, x_35); -lean_ctor_set(x_40, 9, x_36); -lean_ctor_set(x_40, 10, x_37); -lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_38); +x_42 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_42, 0, x_27); +lean_ctor_set(x_42, 1, x_28); +lean_ctor_set(x_42, 2, x_29); +lean_ctor_set(x_42, 3, x_30); +lean_ctor_set(x_42, 4, x_31); +lean_ctor_set(x_42, 5, x_41); +lean_ctor_set(x_42, 6, x_33); +lean_ctor_set(x_42, 7, x_34); +lean_ctor_set(x_42, 8, x_35); +lean_ctor_set(x_42, 9, x_36); +lean_ctor_set(x_42, 10, x_37); +lean_ctor_set(x_42, 11, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*12, x_38); +lean_ctor_set_uint8(x_42, sizeof(void*)*12 + 1, x_40); lean_inc(x_18); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -x_41 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary(x_4, x_22, x_13, x_14, x_15, x_16, x_40, x_18, x_26); -if (lean_obj_tag(x_41) == 0) +x_43 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary(x_4, x_22, x_13, x_14, x_15, x_16, x_42, x_18, x_26); +if (lean_obj_tag(x_43) == 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); -lean_dec(x_41); -x_44 = l_Lean_replaceRef(x_5, x_32); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_replaceRef(x_5, x_32); lean_dec(x_32); lean_dec(x_5); -x_45 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_45, 0, x_27); -lean_ctor_set(x_45, 1, x_28); -lean_ctor_set(x_45, 2, x_29); -lean_ctor_set(x_45, 3, x_30); -lean_ctor_set(x_45, 4, x_31); -lean_ctor_set(x_45, 5, x_44); -lean_ctor_set(x_45, 6, x_33); -lean_ctor_set(x_45, 7, x_34); -lean_ctor_set(x_45, 8, x_35); -lean_ctor_set(x_45, 9, x_36); -lean_ctor_set(x_45, 10, x_37); -lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_38); +x_47 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_47, 0, x_27); +lean_ctor_set(x_47, 1, x_28); +lean_ctor_set(x_47, 2, x_29); +lean_ctor_set(x_47, 3, x_30); +lean_ctor_set(x_47, 4, x_31); +lean_ctor_set(x_47, 5, x_46); +lean_ctor_set(x_47, 6, x_33); +lean_ctor_set(x_47, 7, x_34); +lean_ctor_set(x_47, 8, x_35); +lean_ctor_set(x_47, 9, x_36); +lean_ctor_set(x_47, 10, x_37); +lean_ctor_set(x_47, 11, x_39); +lean_ctor_set_uint8(x_47, sizeof(void*)*12, x_38); +lean_ctor_set_uint8(x_47, sizeof(void*)*12 + 1, x_40); lean_inc(x_18); -lean_inc(x_45); +lean_inc(x_47); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -x_46 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary(x_4, x_25, x_13, x_14, x_15, x_16, x_45, x_18, x_43); -if (lean_obj_tag(x_46) == 0) +x_48 = l_Lean_Elab_Term_Op_elabBinRelCore_toBoolIfNecessary(x_4, x_25, x_13, x_14, x_15, x_16, x_47, x_18, x_45); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -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); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); -lean_inc(x_42); -x_49 = lean_infer_type(x_42, x_15, x_16, x_17, x_18, x_48); -if (lean_obj_tag(x_49) == 0) +lean_inc(x_44); +x_51 = lean_infer_type(x_44, x_15, x_16, x_17, x_18, x_50); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_50); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +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 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_52); lean_inc(x_18); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_6); -x_53 = l_Lean_Elab_Term_ensureHasType(x_52, x_47, x_6, x_6, x_13, x_14, x_15, x_16, x_45, x_18, x_51); -if (lean_obj_tag(x_53) == 0) +x_55 = l_Lean_Elab_Term_ensureHasType(x_54, x_49, x_6, x_6, x_13, x_14, x_15, x_16, x_47, x_18, x_53); +if (lean_obj_tag(x_55) == 0) { -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; uint8_t x_62; lean_object* x_63; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_42); -x_57 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_57, 0, x_54); -x_58 = l_Lean_Elab_Term_elabForIn_x27___closed__6; -x_59 = lean_array_push(x_58, x_56); -x_60 = lean_array_push(x_59, x_57); -x_61 = l_Lean_Elab_Term_elabForIn___closed__17; -x_62 = 0; -x_63 = l_Lean_Elab_Term_elabAppArgs(x_7, x_61, x_60, x_8, x_62, x_62, x_62, x_13, x_14, x_15, x_16, x_17, x_18, x_55); -return x_63; +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_64; lean_object* x_65; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_44); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_56); +x_60 = l_Lean_Elab_Term_elabForIn_x27___closed__6; +x_61 = lean_array_push(x_60, x_58); +x_62 = lean_array_push(x_61, x_59); +x_63 = l_Lean_Elab_Term_elabForIn___closed__17; +x_64 = 0; +x_65 = l_Lean_Elab_Term_elabAppArgs(x_7, x_63, x_62, x_8, x_64, x_64, x_64, x_13, x_14, x_15, x_16, x_17, x_18, x_57); +return x_65; } else { -uint8_t x_64; -lean_dec(x_42); +uint8_t x_66; +lean_dec(x_44); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -17194,66 +17410,32 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); -x_64 = !lean_is_exclusive(x_53); -if (x_64 == 0) +x_66 = !lean_is_exclusive(x_55); +if (x_66 == 0) { -return x_53; +return x_55; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_53, 0); -x_66 = lean_ctor_get(x_53, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_53); -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_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_55, 0); +x_68 = lean_ctor_get(x_55, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_55); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -uint8_t x_68; -lean_dec(x_47); -lean_dec(x_45); -lean_dec(x_42); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_68 = !lean_is_exclusive(x_49); -if (x_68 == 0) -{ -return x_49; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_49, 0); -x_70 = lean_ctor_get(x_49, 1); -lean_inc(x_70); -lean_inc(x_69); +uint8_t x_70; lean_dec(x_49); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -} -else -{ -uint8_t x_72; -lean_dec(x_45); -lean_dec(x_42); +lean_dec(x_47); +lean_dec(x_44); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -17263,29 +17445,64 @@ lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_72 = !lean_is_exclusive(x_46); -if (x_72 == 0) +x_70 = !lean_is_exclusive(x_51); +if (x_70 == 0) { -return x_46; +return x_51; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_46, 0); -x_74 = lean_ctor_get(x_46, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_46); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_51, 0); +x_72 = lean_ctor_get(x_51, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_51); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } else { -uint8_t x_76; +uint8_t x_74; +lean_dec(x_47); +lean_dec(x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_74 = !lean_is_exclusive(x_48); +if (x_74 == 0) +{ +return x_48; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_48, 0); +x_76 = lean_ctor_get(x_48, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_48); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_39); lean_dec(x_37); lean_dec(x_36); lean_dec(x_35); @@ -17308,29 +17525,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_76 = !lean_is_exclusive(x_41); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_43); +if (x_78 == 0) { -return x_41; +return x_43; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_41, 0); -x_78 = lean_ctor_get(x_41, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_41); -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; +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_43, 0); +x_80 = lean_ctor_get(x_43, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_43); +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_80; +uint8_t x_82; lean_dec(x_22); lean_dec(x_18); lean_dec(x_17); @@ -17343,29 +17560,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_80 = !lean_is_exclusive(x_24); -if (x_80 == 0) +x_82 = !lean_is_exclusive(x_24); +if (x_82 == 0) { return x_24; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_24, 0); -x_82 = lean_ctor_get(x_24, 1); -lean_inc(x_82); -lean_inc(x_81); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_24, 0); +x_84 = lean_ctor_get(x_24, 1); +lean_inc(x_84); +lean_inc(x_83); lean_dec(x_24); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +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; } } } else { -uint8_t x_84; +uint8_t x_86; lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -17378,23 +17595,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_84 = !lean_is_exclusive(x_21); -if (x_84 == 0) +x_86 = !lean_is_exclusive(x_21); +if (x_86 == 0) { return x_21; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_21, 0); -x_86 = lean_ctor_get(x_21, 1); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_21, 0); +x_88 = lean_ctor_get(x_21, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_21); -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; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } @@ -17421,7 +17638,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Op_elabBinRelCore___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_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_object* x_13) { _start: { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_11, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_11, 1); @@ -17444,8 +17661,12 @@ x_23 = lean_ctor_get(x_11, 9); lean_inc(x_23); x_24 = lean_ctor_get(x_11, 10); lean_inc(x_24); -x_25 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_25 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_26 = lean_ctor_get(x_11, 11); +lean_inc(x_26); +x_27 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_28 = l_Lean_replaceRef(x_1, x_19); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -17456,269 +17677,273 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_28 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree(x_1, x_7, x_8, x_9, x_10, x_27, x_12, x_13); -if (lean_obj_tag(x_28) == 0) +x_30 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree(x_1, x_7, x_8, x_9, x_10, x_29, x_12, x_13); +if (lean_obj_tag(x_30) == 0) { -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_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_replaceRef(x_2, x_19); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_replaceRef(x_2, x_19); lean_dec(x_19); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_14); -lean_ctor_set(x_32, 1, x_15); -lean_ctor_set(x_32, 2, x_16); -lean_ctor_set(x_32, 3, x_17); -lean_ctor_set(x_32, 4, x_18); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_20); -lean_ctor_set(x_32, 7, x_21); -lean_ctor_set(x_32, 8, x_22); -lean_ctor_set(x_32, 9, x_23); -lean_ctor_set(x_32, 10, x_24); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_25); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_14); +lean_ctor_set(x_34, 1, x_15); +lean_ctor_set(x_34, 2, x_16); +lean_ctor_set(x_34, 3, x_17); +lean_ctor_set(x_34, 4, x_18); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_20); +lean_ctor_set(x_34, 7, x_21); +lean_ctor_set(x_34, 8, x_22); +lean_ctor_set(x_34, 9, x_23); +lean_ctor_set(x_34, 10, x_24); +lean_ctor_set(x_34, 11, x_26); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_27); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_33 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree(x_2, x_7, x_8, x_9, x_10, x_32, x_12, x_30); -if (lean_obj_tag(x_33) == 0) +x_35 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toTree(x_2, x_7, x_8, x_9, x_10, x_34, x_12, x_32); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = 0; -lean_inc(x_34); -lean_inc(x_29); +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = 0; +lean_inc(x_36); +lean_inc(x_31); lean_inc(x_4); -x_37 = lean_alloc_ctor(1, 4, 1); -lean_ctor_set(x_37, 0, x_3); -lean_ctor_set(x_37, 1, x_4); -lean_ctor_set(x_37, 2, x_29); -lean_ctor_set(x_37, 3, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_36); -x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 4, 1); +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_4); +lean_ctor_set(x_39, 2, x_31); +lean_ctor_set(x_39, 3, x_36); +lean_ctor_set_uint8(x_39, sizeof(void*)*4, x_38); +x_40 = lean_box(0); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_37); -x_39 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_analyze(x_37, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_35); -if (lean_obj_tag(x_39) == 0) +lean_inc(x_39); +x_41 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_analyze(x_39, x_40, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__3___closed__2; -x_43 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_41); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_unbox(x_44); -lean_dec(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_43, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__3___closed__2; +x_45 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_43); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_box(0); -x_48 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_29, x_34, x_1, x_5, x_2, x_38, x_4, x_6, x_40, x_37, x_42, x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -return x_48; +x_47 = lean_unbox(x_46); +lean_dec(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_box(0); +x_50 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_31, x_36, x_1, x_5, x_2, x_40, x_4, x_6, x_42, x_39, x_44, x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_48); +return x_50; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_43, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_50 = x_43; +lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_52 = x_45; } else { - lean_dec_ref(x_43); - x_50 = lean_box(0); + lean_dec_ref(x_45); + x_52 = lean_box(0); } -x_51 = lean_ctor_get_uint8(x_40, sizeof(void*)*1); -x_52 = lean_ctor_get_uint8(x_40, sizeof(void*)*1 + 1); -x_53 = lean_ctor_get(x_40, 0); -lean_inc(x_53); -if (x_51 == 0) +x_53 = lean_ctor_get_uint8(x_42, sizeof(void*)*1); +x_54 = lean_ctor_get_uint8(x_42, sizeof(void*)*1 + 1); +x_55 = lean_ctor_get(x_42, 0); +lean_inc(x_55); +if (x_53 == 0) { -lean_object* x_104; -x_104 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__7; -x_54 = x_104; -goto block_103; +lean_object* x_106; +x_106 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__7; +x_56 = x_106; +goto block_105; } else { -lean_object* x_105; -x_105 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__13; -x_54 = x_105; -goto block_103; +lean_object* x_107; +x_107 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__13; +x_56 = x_107; +goto block_105; } -block_103: +block_105: { -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_alloc_ctor(3, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = l_Lean_MessageData_ofFormat(x_55); -x_57 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__2; -if (lean_is_scalar(x_50)) { - x_58 = lean_alloc_ctor(6, 2, 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 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = l_Lean_MessageData_ofFormat(x_57); +x_59 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__2; +if (lean_is_scalar(x_52)) { + x_60 = lean_alloc_ctor(6, 2, 0); } else { - x_58 = x_50; - lean_ctor_set_tag(x_58, 6); + x_60 = x_52; + lean_ctor_set_tag(x_60, 6); } -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__4; -x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -if (x_52 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__9; +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__4; x_62 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); -x_63 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__6; +if (x_54 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__9; x_64 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_65 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__12; +x_65 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__6; x_66 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); -x_67 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +if (lean_obj_tag(x_55) == 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; +x_67 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__12; x_68 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_42, x_68, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -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 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_29, x_34, x_1, x_5, x_2, x_38, x_4, x_6, x_40, x_37, x_42, x_70, x_7, x_8, x_9, x_10, x_11, x_12, x_71); -lean_dec(x_70); -return x_72; -} -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; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_73 = lean_ctor_get(x_53, 0); +x_69 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_70 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_44, x_70, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +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_53); -x_74 = l_Lean_MessageData_ofExpr(x_73); -x_75 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_75, 0, x_64); -lean_ctor_set(x_75, 1, x_74); -x_76 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +lean_dec(x_71); +x_74 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_31, x_36, x_1, x_5, x_2, x_40, x_4, x_6, x_42, x_39, x_44, x_72, x_7, x_8, x_9, x_10, x_11, x_12, x_73); +lean_dec(x_72); +return x_74; +} +else +{ +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; +x_75 = lean_ctor_get(x_55, 0); +lean_inc(x_75); +lean_dec(x_55); +x_76 = l_Lean_MessageData_ofExpr(x_75); x_77 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 0, x_66); lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_42, x_77, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_29, x_34, x_1, x_5, x_2, x_38, x_4, x_6, x_40, x_37, x_42, x_79, x_7, x_8, x_9, x_10, x_11, x_12, x_80); -lean_dec(x_79); -return x_81; +x_78 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_79 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_44, x_79, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_31, x_36, x_1, x_5, x_2, x_40, x_4, x_6, x_42, x_39, x_44, x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_82); +lean_dec(x_81); +return x_83; } } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_82 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__15; -x_83 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_83, 0, x_60); -lean_ctor_set(x_83, 1, x_82); -x_84 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__6; +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__15; x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 0, x_62); lean_ctor_set(x_85, 1, x_84); -if (lean_obj_tag(x_53) == 0) -{ -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_86 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__12; +x_86 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__6; x_87 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); -x_88 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +if (lean_obj_tag(x_55) == 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; lean_object* x_94; lean_object* x_95; +x_88 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_Op_toExpr___closed__12; x_89 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); -x_90 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_42, x_89, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -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 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_29, x_34, x_1, x_5, x_2, x_38, x_4, x_6, x_40, x_37, x_42, x_91, x_7, x_8, x_9, x_10, x_11, x_12, x_92); -lean_dec(x_91); -return x_93; -} -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; -x_94 = lean_ctor_get(x_53, 0); +x_90 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_91 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_44, x_91, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); -lean_dec(x_53); -x_95 = l_Lean_MessageData_ofExpr(x_94); -x_96 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_96, 0, x_85); -lean_ctor_set(x_96, 1, x_95); -x_97 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +lean_dec(x_92); +x_95 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_31, x_36, x_1, x_5, x_2, x_40, x_4, x_6, x_42, x_39, x_44, x_93, x_7, x_8, x_9, x_10, x_11, x_12, x_94); +lean_dec(x_93); +return x_95; +} +else +{ +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_96 = lean_ctor_get(x_55, 0); +lean_inc(x_96); +lean_dec(x_55); +x_97 = l_Lean_MessageData_ofExpr(x_96); x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 0, x_87); lean_ctor_set(x_98, 1, x_97); -x_99 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_42, x_98, x_7, x_8, x_9, x_10, x_11, x_12, x_49); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_29, x_34, x_1, x_5, x_2, x_38, x_4, x_6, x_40, x_37, x_42, x_100, x_7, x_8, x_9, x_10, x_11, x_12, x_101); -lean_dec(x_100); -return x_102; +x_99 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_44, x_100, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +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_104 = l_Lean_Elab_Term_Op_elabBinRelCore___lambda__2(x_31, x_36, x_1, x_5, x_2, x_40, x_4, x_6, x_42, x_39, x_44, x_102, x_7, x_8, x_9, x_10, x_11, x_12, x_103); +lean_dec(x_102); +return x_104; } } } @@ -17726,10 +17951,10 @@ return x_102; } else { -uint8_t x_106; -lean_dec(x_37); -lean_dec(x_34); -lean_dec(x_29); +uint8_t x_108; +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_31); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -17740,30 +17965,30 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_39); -if (x_106 == 0) +x_108 = !lean_is_exclusive(x_41); +if (x_108 == 0) { -return x_39; +return x_41; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_39, 0); -x_108 = lean_ctor_get(x_39, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_39); -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_41, 0); +x_110 = lean_ctor_get(x_41, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_41); +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; -lean_dec(x_29); +uint8_t x_112; +lean_dec(x_31); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -17775,29 +18000,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_110 = !lean_is_exclusive(x_33); -if (x_110 == 0) +x_112 = !lean_is_exclusive(x_35); +if (x_112 == 0) { -return x_33; +return x_35; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_33, 0); -x_112 = lean_ctor_get(x_33, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_33); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_35, 0); +x_114 = lean_ctor_get(x_35, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_35); +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_114; +uint8_t x_116; +lean_dec(x_26); lean_dec(x_24); lean_dec(x_23); lean_dec(x_22); @@ -17820,23 +18046,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_114 = !lean_is_exclusive(x_28); -if (x_114 == 0) +x_116 = !lean_is_exclusive(x_30); +if (x_116 == 0) { -return x_28; +return x_30; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_28, 0); -x_116 = lean_ctor_get(x_28, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_28); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_30, 0); +x_118 = lean_ctor_get(x_30, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_30); +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; } } } @@ -18425,18 +18651,22 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_Exception_isRuntime(x_18); +x_20 = l_Lean_Exception_isInterrupt(x_18); if (x_20 == 0) { -lean_object* x_21; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +lean_object* x_22; lean_free_object(x_16); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_15); -x_21 = l_Lean_Meta_mkOfNonempty(x_15, x_5, x_6, x_7, x_8, x_19); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Meta_mkOfNonempty(x_15, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_22) == 0) { lean_dec(x_18); lean_dec(x_15); @@ -18444,34 +18674,38 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_21; +return x_22; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -lean_dec(x_23); -x_26 = lean_unsigned_to_nat(1u); -x_27 = l_Lean_Syntax_getArg(x_1, x_26); -x_28 = l_Lean_Syntax_isNone(x_27); -lean_dec(x_27); -if (x_28 == 0) +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) { -uint8_t x_29; lean_object* x_30; -lean_free_object(x_21); +lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_24); +x_28 = lean_unsigned_to_nat(1u); +x_29 = l_Lean_Syntax_getArg(x_1, x_28); +x_30 = l_Lean_Syntax_isNone(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; +lean_free_object(x_22); lean_dec(x_18); -x_29 = 0; -x_30 = l_Lean_Meta_mkSorry(x_15, x_29, x_5, x_6, x_7, x_8, x_24); -return x_30; +x_31 = 0; +x_32 = l_Lean_Meta_mkSorry(x_15, x_31, x_5, x_6, x_7, x_8, x_25); +return x_32; } else { @@ -18480,8 +18714,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_ctor_set(x_21, 0, x_18); -return x_21; +lean_ctor_set(x_22, 0, x_18); +return x_22; } } else @@ -18492,61 +18726,91 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_21; +return x_22; } } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_21, 0); -x_32 = lean_ctor_get(x_21, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_21); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_22; +} +} +else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -lean_dec(x_31); -x_34 = lean_unsigned_to_nat(1u); -x_35 = l_Lean_Syntax_getArg(x_1, x_34); -x_36 = l_Lean_Syntax_isNone(x_35); -lean_dec(x_35); +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_22, 0); +x_34 = lean_ctor_get(x_22, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_22); +x_35 = l_Lean_Exception_isInterrupt(x_33); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = l_Lean_Exception_isRuntime(x_33); if (x_36 == 0) { -uint8_t x_37; lean_object* x_38; +lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_33); +x_37 = lean_unsigned_to_nat(1u); +x_38 = l_Lean_Syntax_getArg(x_1, x_37); +x_39 = l_Lean_Syntax_isNone(x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +uint8_t x_40; lean_object* x_41; lean_dec(x_18); -x_37 = 0; -x_38 = l_Lean_Meta_mkSorry(x_15, x_37, x_5, x_6, x_7, x_8, x_32); -return x_38; +x_40 = 0; +x_41 = l_Lean_Meta_mkSorry(x_15, x_40, x_5, x_6, x_7, x_8, x_34); +return x_41; } else { -lean_object* x_39; +lean_object* x_42; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_18); -lean_ctor_set(x_39, 1, x_32); -return x_39; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_18); +lean_ctor_set(x_42, 1, x_34); +return x_42; } } else { -lean_object* x_40; +lean_object* x_43; lean_dec(x_18); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_31); -lean_ctor_set(x_40, 1, x_32); -return x_40; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_33); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +} +else +{ +lean_object* x_44; +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_33); +lean_ctor_set(x_44, 1, x_34); +return x_44; } } } @@ -18563,115 +18827,166 @@ return x_16; } else { -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_16, 0); -x_42 = lean_ctor_get(x_16, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_16); -x_43 = l_Lean_Exception_isRuntime(x_41); -if (x_43 == 0) +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_16; +} +} +else { -lean_object* x_44; +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = lean_ctor_get(x_16, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_16); +x_47 = l_Lean_Exception_isInterrupt(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_15); -x_44 = l_Lean_Meta_mkOfNonempty(x_15, x_5, x_6, x_7, x_8, x_42); -if (lean_obj_tag(x_44) == 0) +x_49 = l_Lean_Meta_mkOfNonempty(x_15, x_5, x_6, x_7, x_8, x_46); +if (lean_obj_tag(x_49) == 0) { -lean_dec(x_41); -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_44; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -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_44); - x_47 = lean_box(0); -} -x_48 = l_Lean_Exception_isRuntime(x_45); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_dec(x_45); -x_49 = lean_unsigned_to_nat(1u); -x_50 = l_Lean_Syntax_getArg(x_1, x_49); -x_51 = l_Lean_Syntax_isNone(x_50); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +x_53 = l_Lean_Exception_isInterrupt(x_50); +if (x_53 == 0) +{ +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_50); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_dec(x_50); -if (x_51 == 0) +x_55 = lean_unsigned_to_nat(1u); +x_56 = l_Lean_Syntax_getArg(x_1, x_55); +x_57 = l_Lean_Syntax_isNone(x_56); +lean_dec(x_56); +if (x_57 == 0) { -uint8_t x_52; lean_object* x_53; -lean_dec(x_47); -lean_dec(x_41); -x_52 = 0; -x_53 = l_Lean_Meta_mkSorry(x_15, x_52, x_5, x_6, x_7, x_8, x_46); -return x_53; +uint8_t x_58; lean_object* x_59; +lean_dec(x_52); +lean_dec(x_45); +x_58 = 0; +x_59 = l_Lean_Meta_mkSorry(x_15, x_58, x_5, x_6, x_7, x_8, x_51); +return x_59; } else { -lean_object* x_54; +lean_object* x_60; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_47)) { - x_54 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_52)) { + x_60 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_47; + x_60 = x_52; } -lean_ctor_set(x_54, 0, x_41); -lean_ctor_set(x_54, 1, x_46); -return x_54; +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_51); +return x_60; } } else { -lean_object* x_55; -lean_dec(x_41); +lean_object* x_61; +lean_dec(x_45); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_47)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_52)) { + x_61 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_47; -} -lean_ctor_set(x_55, 0, x_45); -lean_ctor_set(x_55, 1, x_46); -return x_55; + x_61 = x_52; } +lean_ctor_set(x_61, 0, x_50); +lean_ctor_set(x_61, 1, x_51); +return x_61; } } else { -lean_object* x_56; +lean_object* x_62; +lean_dec(x_45); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_41); -lean_ctor_set(x_56, 1, x_42); -return x_56; +if (lean_is_scalar(x_52)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_52; +} +lean_ctor_set(x_62, 0, x_50); +lean_ctor_set(x_62, 1, x_51); +return x_62; +} +} +} +else +{ +lean_object* x_63; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_45); +lean_ctor_set(x_63, 1, x_46); +return x_63; +} +} +else +{ +lean_object* x_64; +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_45); +lean_ctor_set(x_64, 1, x_46); +return x_64; } } } @@ -18679,30 +18994,30 @@ return x_56; } else { -uint8_t x_57; +uint8_t x_65; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_57 = !lean_is_exclusive(x_10); -if (x_57 == 0) +x_65 = !lean_is_exclusive(x_10); +if (x_65 == 0) { return x_10; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_10, 0); -x_59 = lean_ctor_get(x_10, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_10, 0); +x_67 = lean_ctor_get(x_10, 1); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_10); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +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; } } } diff --git a/stage0/stdlib/Lean/Elab/Frontend.c b/stage0/stdlib/Lean/Elab/Frontend.c index c2c08032ce..9709754e28 100644 --- a/stage0/stdlib/Lean/Elab/Frontend.c +++ b/stage0/stdlib/Lean/Elab/Frontend.c @@ -15,137 +15,157 @@ extern "C" { #endif lean_object* lean_profileit(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Firefox_Profile_export(lean_object*, double, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12; lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2(lean_object*, lean_object*, lean_object*, double, double, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); double lean_float_div(double, double); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2; static lean_object* l_Lean_Elab_process___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7; lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__2; +uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setCommandState___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9; static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__1; lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___boxed(lean_object*); extern lean_object* l_Lean_maxRecDepth; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Language_SnapshotTree_getAll(lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM(lean_object*); static double l_Lean_Elab_runFrontend___closed__1; static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___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_IO_processCommandsIncrementally_go___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___boxed(lean_object*); +size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10; uint8_t l_Lean_Parser_isTerminalCommand(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Language_Lean_processCommands(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Language_reportMessages(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_process___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8; +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*, uint8_t); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088_(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_State_commands___default___closed__1; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17; lean_object* l_Array_toPArray_x27___rarg(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12; lean_object* lean_io_mono_nanos_now(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Profiler_0__Lean_Firefox_toJsonProfile____x40_Lean_Util_Profiler___hyg_3555_(lean_object*); lean_object* lean_environment_set_main_module(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9; static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__3; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4; lean_object* l_Lean_Server_ModuleRefs_toLspModuleRefs(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__1; -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__2; -lean_object* l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_run_frontend(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_References_0__Lean_Server_toJsonIlean____x40_Lean_Server_References___hyg_1455_(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState(lean_object*); static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getInputContext(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommands(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14; +lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_get_x3f___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_State_commands___default; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; extern lean_object* l_Lean_Elab_Command_instInhabitedScope; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setCommandState(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16; LEAN_EXPORT lean_object* l_Lean_Elab_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_hasMissing(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___rarg(lean_object*, lean_object*); +size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getInputContext___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___rarg___boxed(lean_object*, lean_object*); lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__5; lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1; extern lean_object* l_Lean_trace_profiler_output; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284_(lean_object*); +lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Elab_Frontend_processCommand___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___boxed(lean_object*); lean_object* l_Lean_Parser_parseCommand(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Language_Lean_showPartialSyntaxErrors; -LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__4; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos(lean_object*); static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__2; +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); static lean_object* _init_l_Lean_Elab_Frontend_State_commands___default___closed__1() { _start: { @@ -271,7 +291,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_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_5; lean_object* x_6; 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_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_53 = lean_st_ref_get(x_3, x_4); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); @@ -287,84 +307,87 @@ x_60 = lean_box(0); x_61 = lean_unsigned_to_nat(0u); x_62 = l_Lean_firstFrontendMacroScope; x_63 = lean_box(0); +x_64 = 0; lean_inc(x_57); lean_inc(x_56); -x_64 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_64, 0, x_56); -lean_ctor_set(x_64, 1, x_57); -lean_ctor_set(x_64, 2, x_61); -lean_ctor_set(x_64, 3, x_58); -lean_ctor_set(x_64, 4, x_59); -lean_ctor_set(x_64, 5, x_62); -lean_ctor_set(x_64, 6, x_63); -lean_ctor_set(x_64, 7, x_60); -lean_ctor_set(x_64, 8, x_60); -x_65 = lean_ctor_get(x_54, 0); -lean_inc(x_65); +x_65 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_57); +lean_ctor_set(x_65, 2, x_61); +lean_ctor_set(x_65, 3, x_58); +lean_ctor_set(x_65, 4, x_59); +lean_ctor_set(x_65, 5, x_62); +lean_ctor_set(x_65, 6, x_63); +lean_ctor_set(x_65, 7, x_60); +lean_ctor_set(x_65, 8, x_60); +lean_ctor_set(x_65, 9, x_60); +lean_ctor_set_uint8(x_65, sizeof(void*)*10, x_64); +x_66 = lean_ctor_get(x_54, 0); +lean_inc(x_66); lean_dec(x_54); -x_66 = lean_st_mk_ref(x_65, x_55); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +x_67 = lean_st_mk_ref(x_66, x_55); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_66); -lean_inc(x_67); -x_69 = lean_apply_3(x_1, x_64, x_67, x_68); -if (lean_obj_tag(x_69) == 0) +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_68); +x_70 = lean_apply_3(x_1, x_65, x_68, x_69); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); -lean_dec(x_69); -x_72 = lean_st_ref_get(x_67, x_71); -lean_dec(x_67); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_st_ref_get(x_68, x_72); +lean_dec(x_68); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); -x_75 = lean_ctor_get(x_72, 1); -lean_ctor_set(x_72, 1, x_74); -lean_ctor_set(x_72, 0, x_70); -x_76 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_76, 0, x_72); -x_5 = x_76; -x_6 = x_75; +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); +lean_ctor_set(x_73, 1, x_75); +lean_ctor_set(x_73, 0, x_71); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_73); +x_5 = x_77; +x_6 = x_76; goto block_52; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_72, 0); -x_78 = lean_ctor_get(x_72, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 0); +x_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_72); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_70); -lean_ctor_set(x_79, 1, x_77); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -x_5 = x_80; -x_6 = x_78; +lean_dec(x_73); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_71); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +x_5 = x_81; +x_6 = x_79; goto block_52; } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_67); -x_81 = lean_ctor_get(x_69, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_69, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_68); +x_82 = lean_ctor_get(x_70, 0); lean_inc(x_82); -lean_dec(x_69); -x_83 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_83, 0, x_81); -x_5 = x_83; -x_6 = x_82; +x_83 = lean_ctor_get(x_70, 1); +lean_inc(x_83); +lean_dec(x_70); +x_84 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_84, 0, x_82); +x_5 = x_84; +x_6 = x_83; goto block_52; } block_52: @@ -563,99 +586,6 @@ lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___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; uint8_t x_10; -x_7 = lean_st_ref_take(x_5, x_6); -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_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_8, 1); -lean_dec(x_11); -x_12 = l_Lean_PersistentArray_append___rarg(x_1, x_2); -lean_ctor_set(x_8, 1, x_12); -x_13 = lean_st_ref_set(x_5, x_8, 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 = lean_box(0); -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 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -} -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; 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_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 2); -x_22 = lean_ctor_get(x_8, 3); -x_23 = lean_ctor_get(x_8, 4); -x_24 = lean_ctor_get(x_8, 5); -x_25 = lean_ctor_get(x_8, 6); -x_26 = lean_ctor_get(x_8, 7); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_8); -x_27 = l_Lean_PersistentArray_append___rarg(x_1, x_2); -x_28 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_28, 2, x_21); -lean_ctor_set(x_28, 3, x_22); -lean_ctor_set(x_28, 4, x_23); -lean_ctor_set(x_28, 5, x_24); -lean_ctor_set(x_28, 6, x_25); -lean_ctor_set(x_28, 7, x_26); -x_29 = lean_st_ref_set(x_5, x_28, x_9); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_31 = x_29; -} else { - lean_dec_ref(x_29); - x_31 = lean_box(0); -} -x_32 = lean_box(0); -if (lean_is_scalar(x_31)) { - x_33 = lean_alloc_ctor(0, 2, 0); -} else { - x_33 = x_31; -} -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -return x_33; -} -} -} static lean_object* _init_l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__1() { _start: { @@ -695,15 +625,19 @@ return x_5; static lean_object* _init_l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4() { _start: { -lean_object* x_1; -x_1 = l_Lean_Language_Lean_showPartialSyntaxErrors; -return x_1; +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; +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; } } LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_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; uint8_t x_72; +lean_object* x_5; lean_object* x_6; 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_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; uint8_t x_73; x_53 = lean_st_ref_get(x_3, x_4); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); @@ -719,553 +653,341 @@ x_60 = lean_box(0); x_61 = lean_unsigned_to_nat(0u); x_62 = l_Lean_firstFrontendMacroScope; x_63 = lean_box(0); +x_64 = 0; lean_inc(x_57); lean_inc(x_56); -x_64 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_64, 0, x_56); -lean_ctor_set(x_64, 1, x_57); -lean_ctor_set(x_64, 2, x_61); -lean_ctor_set(x_64, 3, x_58); -lean_ctor_set(x_64, 4, x_59); -lean_ctor_set(x_64, 5, x_62); -lean_ctor_set(x_64, 6, x_63); -lean_ctor_set(x_64, 7, x_60); -lean_ctor_set(x_64, 8, x_60); -x_65 = lean_ctor_get(x_54, 0); -lean_inc(x_65); +x_65 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_57); +lean_ctor_set(x_65, 2, x_61); +lean_ctor_set(x_65, 3, x_58); +lean_ctor_set(x_65, 4, x_59); +lean_ctor_set(x_65, 5, x_62); +lean_ctor_set(x_65, 6, x_63); +lean_ctor_set(x_65, 7, x_60); +lean_ctor_set(x_65, 8, x_60); +lean_ctor_set(x_65, 9, x_60); +lean_ctor_set_uint8(x_65, sizeof(void*)*10, x_64); +x_66 = lean_ctor_get(x_54, 0); +lean_inc(x_66); lean_dec(x_54); -x_66 = lean_st_mk_ref(x_65, x_55); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +x_67 = lean_st_mk_ref(x_66, x_55); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_st_ref_take(x_67, x_68); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_st_ref_take(x_68, x_69); +x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); -lean_dec(x_69); -x_72 = !lean_is_exclusive(x_70); -if (x_72 == 0) +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = !lean_is_exclusive(x_71); +if (x_73 == 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_70, 1); -x_74 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; -lean_ctor_set(x_70, 1, x_74); -x_75 = lean_st_ref_set(x_67, x_70, x_71); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -lean_inc(x_67); -lean_inc(x_64); -lean_inc(x_1); -x_77 = l_Lean_Elab_Command_elabCommandTopLevel(x_1, x_64, x_67, x_76); -if (lean_obj_tag(x_77) == 0) +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_71, 1); +x_75 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +lean_ctor_set(x_71, 1, x_75); +x_76 = lean_st_ref_set(x_68, x_71, x_72); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +lean_inc(x_68); +x_78 = l_Lean_Elab_Command_elabCommandTopLevel(x_1, x_65, x_68, x_77); +if (lean_obj_tag(x_78) == 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; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -x_79 = lean_st_ref_get(x_67, x_78); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +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; uint8_t x_87; +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = lean_st_ref_get(x_68, x_79); +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -lean_dec(x_79); x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); lean_dec(x_80); -x_83 = lean_st_ref_get(x_67, x_81); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_st_ref_take(x_68, x_82); +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_ctor_get(x_84, 2); +x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); lean_dec(x_84); -x_87 = l_Lean_Elab_Command_instInhabitedScope; -x_88 = l_List_head_x21___rarg(x_87, x_86); -lean_dec(x_86); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); +x_87 = !lean_is_exclusive(x_85); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_88 = lean_ctor_get(x_85, 1); lean_dec(x_88); -x_90 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; -x_91 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_89, x_90); -lean_dec(x_89); -if (x_91 == 0) +x_89 = l_Lean_MessageLog_append(x_74, x_83); +lean_ctor_set(x_85, 1, x_89); +x_90 = lean_st_ref_set(x_68, x_85, x_86); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_st_ref_get(x_68, x_91); +lean_dec(x_68); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) { -uint8_t x_92; -lean_inc(x_73); -x_92 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_73); -if (x_92 == 0) -{ -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_dec(x_1); -x_93 = lean_box(0); -x_94 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_73, x_82, x_93, x_64, x_67, x_85); -lean_dec(x_64); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_st_ref_get(x_67, x_96); -lean_dec(x_67); -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_97, 0); -x_100 = lean_ctor_get(x_97, 1); -lean_ctor_set(x_97, 1, x_99); -lean_ctor_set(x_97, 0, x_95); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_97); -x_5 = x_101; -x_6 = x_100; +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = lean_box(0); +lean_ctor_set(x_92, 1, x_94); +lean_ctor_set(x_92, 0, x_96); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_92); +x_5 = x_97; +x_6 = x_95; goto block_52; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_97, 0); -x_103 = lean_ctor_get(x_97, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_98 = lean_ctor_get(x_92, 0); +x_99 = lean_ctor_get(x_92, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_92); +x_100 = lean_box(0); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_5 = x_102; +x_6 = x_99; +goto block_52; +} +} +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; 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; +x_103 = lean_ctor_get(x_85, 0); +x_104 = lean_ctor_get(x_85, 2); +x_105 = lean_ctor_get(x_85, 3); +x_106 = lean_ctor_get(x_85, 4); +x_107 = lean_ctor_get(x_85, 5); +x_108 = lean_ctor_get(x_85, 6); +x_109 = lean_ctor_get(x_85, 7); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_97); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_95); -lean_ctor_set(x_104, 1, x_102); -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_104); -x_5 = x_105; -x_6 = x_103; -goto block_52; -} -} -else -{ -lean_object* x_106; uint8_t x_107; -x_106 = l_Lean_Syntax_hasMissing(x_1); -x_107 = lean_unbox(x_106); -lean_dec(x_106); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_108 = lean_box(0); -x_109 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_73, x_82, x_108, x_64, x_67, x_85); -lean_dec(x_64); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_st_ref_get(x_67, x_111); -lean_dec(x_67); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_112, 0); -x_115 = lean_ctor_get(x_112, 1); -lean_ctor_set(x_112, 1, x_114); -lean_ctor_set(x_112, 0, x_110); -x_116 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_116, 0, x_112); -x_5 = x_116; -x_6 = x_115; -goto block_52; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_112, 0); -x_118 = lean_ctor_get(x_112, 1); -lean_inc(x_118); -lean_inc(x_117); +lean_dec(x_85); +x_110 = l_Lean_MessageLog_append(x_74, x_83); +x_111 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_111, 0, x_103); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_111, 2, x_104); +lean_ctor_set(x_111, 3, x_105); +lean_ctor_set(x_111, 4, x_106); +lean_ctor_set(x_111, 5, x_107); +lean_ctor_set(x_111, 6, x_108); +lean_ctor_set(x_111, 7, x_109); +x_112 = lean_st_ref_set(x_68, x_111, x_86); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); lean_dec(x_112); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_110); -lean_ctor_set(x_119, 1, x_117); +x_114 = lean_st_ref_get(x_68, x_113); +lean_dec(x_68); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; +} else { + lean_dec_ref(x_114); + x_117 = lean_box(0); +} +x_118 = lean_box(0); +if (lean_is_scalar(x_117)) { + x_119 = lean_alloc_ctor(0, 2, 0); +} else { + x_119 = x_117; +} +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_115); x_120 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_120, 0, x_119); x_5 = x_120; -x_6 = x_118; +x_6 = x_116; goto block_52; } } 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; uint8_t x_127; -x_121 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_82, x_74, x_61); -x_122 = lean_box(0); -x_123 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_73, x_121, x_122, x_64, x_67, x_85); -lean_dec(x_64); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec(x_123); -x_126 = lean_st_ref_get(x_67, x_125); -lean_dec(x_67); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_126, 0); -x_129 = lean_ctor_get(x_126, 1); -lean_ctor_set(x_126, 1, x_128); -lean_ctor_set(x_126, 0, x_124); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_126); -x_5 = x_130; -x_6 = x_129; +lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_74); +lean_dec(x_68); +x_121 = lean_ctor_get(x_78, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_78, 1); +lean_inc(x_122); +lean_dec(x_78); +x_123 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_123, 0, x_121); +x_5 = x_123; +x_6 = x_122; goto block_52; } +} else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_131 = lean_ctor_get(x_126, 0); -x_132 = lean_ctor_get(x_126, 1); -lean_inc(x_132); +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; +x_124 = lean_ctor_get(x_71, 0); +x_125 = lean_ctor_get(x_71, 1); +x_126 = lean_ctor_get(x_71, 2); +x_127 = lean_ctor_get(x_71, 3); +x_128 = lean_ctor_get(x_71, 4); +x_129 = lean_ctor_get(x_71, 5); +x_130 = lean_ctor_get(x_71, 6); +x_131 = lean_ctor_get(x_71, 7); lean_inc(x_131); -lean_dec(x_126); -x_133 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_130); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_71); +x_132 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_133 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_133, 0, x_124); -lean_ctor_set(x_133, 1, x_131); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_133); -x_5 = x_134; -x_6 = x_132; -goto block_52; -} -} -} -} -else +lean_ctor_set(x_133, 1, x_132); +lean_ctor_set(x_133, 2, x_126); +lean_ctor_set(x_133, 3, x_127); +lean_ctor_set(x_133, 4, x_128); +lean_ctor_set(x_133, 5, x_129); +lean_ctor_set(x_133, 6, x_130); +lean_ctor_set(x_133, 7, x_131); +x_134 = lean_st_ref_set(x_68, x_133, x_72); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +lean_inc(x_68); +x_136 = l_Lean_Elab_Command_elabCommandTopLevel(x_1, x_65, x_68, x_135); +if (lean_obj_tag(x_136) == 0) { -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_dec(x_1); -x_135 = lean_box(0); -x_136 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_73, x_82, x_135, x_64, x_67, x_85); -lean_dec(x_64); -x_137 = lean_ctor_get(x_136, 0); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_137 = lean_ctor_get(x_136, 1); lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); lean_dec(x_136); -x_139 = lean_st_ref_get(x_67, x_138); -lean_dec(x_67); -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_139, 0); -x_142 = lean_ctor_get(x_139, 1); -lean_ctor_set(x_139, 1, x_141); -lean_ctor_set(x_139, 0, x_137); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_139); -x_5 = x_143; -x_6 = x_142; -goto block_52; -} -else -{ -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); +x_138 = lean_st_ref_get(x_68, x_137); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); lean_dec(x_139); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_137); -lean_ctor_set(x_146, 1, x_144); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_5 = x_147; -x_6 = x_145; -goto block_52; -} -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_73); -lean_dec(x_67); -lean_dec(x_64); -lean_dec(x_1); -x_148 = lean_ctor_get(x_77, 0); +x_142 = lean_st_ref_take(x_68, x_140); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +x_145 = lean_ctor_get(x_143, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_143, 2); +lean_inc(x_146); +x_147 = lean_ctor_get(x_143, 3); +lean_inc(x_147); +x_148 = lean_ctor_get(x_143, 4); lean_inc(x_148); -x_149 = lean_ctor_get(x_77, 1); +x_149 = lean_ctor_get(x_143, 5); lean_inc(x_149); -lean_dec(x_77); -x_150 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_150, 0, x_148); -x_5 = x_150; -x_6 = x_149; -goto block_52; -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_151 = lean_ctor_get(x_70, 0); -x_152 = lean_ctor_get(x_70, 1); -x_153 = lean_ctor_get(x_70, 2); -x_154 = lean_ctor_get(x_70, 3); -x_155 = lean_ctor_get(x_70, 4); -x_156 = lean_ctor_get(x_70, 5); -x_157 = lean_ctor_get(x_70, 6); -x_158 = lean_ctor_get(x_70, 7); -lean_inc(x_158); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); -lean_inc(x_153); -lean_inc(x_152); +x_150 = lean_ctor_get(x_143, 6); +lean_inc(x_150); +x_151 = lean_ctor_get(x_143, 7); lean_inc(x_151); -lean_dec(x_70); -x_159 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; -x_160 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_160, 0, x_151); -lean_ctor_set(x_160, 1, x_159); -lean_ctor_set(x_160, 2, x_153); -lean_ctor_set(x_160, 3, x_154); -lean_ctor_set(x_160, 4, x_155); -lean_ctor_set(x_160, 5, x_156); -lean_ctor_set(x_160, 6, x_157); -lean_ctor_set(x_160, 7, x_158); -x_161 = lean_st_ref_set(x_67, x_160, x_71); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -lean_dec(x_161); -lean_inc(x_67); -lean_inc(x_64); -lean_inc(x_1); -x_163 = l_Lean_Elab_Command_elabCommandTopLevel(x_1, x_64, x_67, x_162); -if (lean_obj_tag(x_163) == 0) +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + lean_ctor_release(x_143, 2); + lean_ctor_release(x_143, 3); + lean_ctor_release(x_143, 4); + lean_ctor_release(x_143, 5); + lean_ctor_release(x_143, 6); + lean_ctor_release(x_143, 7); + x_152 = x_143; +} else { + lean_dec_ref(x_143); + x_152 = lean_box(0); +} +x_153 = l_Lean_MessageLog_append(x_125, x_141); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 8, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_145); +lean_ctor_set(x_154, 1, x_153); +lean_ctor_set(x_154, 2, x_146); +lean_ctor_set(x_154, 3, x_147); +lean_ctor_set(x_154, 4, x_148); +lean_ctor_set(x_154, 5, x_149); +lean_ctor_set(x_154, 6, x_150); +lean_ctor_set(x_154, 7, x_151); +x_155 = lean_st_ref_set(x_68, x_154, x_144); +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +lean_dec(x_155); +x_157 = lean_st_ref_get(x_68, x_156); +lean_dec(x_68); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_160 = x_157; +} else { + lean_dec_ref(x_157); + x_160 = lean_box(0); +} +x_161 = lean_box(0); +if (lean_is_scalar(x_160)) { + x_162 = lean_alloc_ctor(0, 2, 0); +} else { + x_162 = x_160; +} +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_158); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_162); +x_5 = x_163; +x_6 = x_159; +goto block_52; +} +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; lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_164 = lean_ctor_get(x_163, 1); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_125); +lean_dec(x_68); +x_164 = lean_ctor_get(x_136, 0); lean_inc(x_164); -lean_dec(x_163); -x_165 = lean_st_ref_get(x_67, x_164); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -lean_dec(x_166); -x_169 = lean_st_ref_get(x_67, x_167); -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = lean_ctor_get(x_170, 2); -lean_inc(x_172); -lean_dec(x_170); -x_173 = l_Lean_Elab_Command_instInhabitedScope; -x_174 = l_List_head_x21___rarg(x_173, x_172); -lean_dec(x_172); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -lean_dec(x_174); -x_176 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; -x_177 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_176); -lean_dec(x_175); -if (x_177 == 0) -{ -uint8_t x_178; -lean_inc(x_152); -x_178 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_152); -if (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_dec(x_1); -x_179 = lean_box(0); -x_180 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_152, x_168, x_179, x_64, x_67, x_171); -lean_dec(x_64); -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -lean_dec(x_180); -x_183 = lean_st_ref_get(x_67, x_182); -lean_dec(x_67); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_186 = x_183; -} else { - lean_dec_ref(x_183); - x_186 = lean_box(0); -} -if (lean_is_scalar(x_186)) { - x_187 = lean_alloc_ctor(0, 2, 0); -} else { - x_187 = x_186; -} -lean_ctor_set(x_187, 0, x_181); -lean_ctor_set(x_187, 1, x_184); -x_188 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_188, 0, x_187); -x_5 = x_188; -x_6 = x_185; -goto block_52; -} -else -{ -lean_object* x_189; uint8_t x_190; -x_189 = l_Lean_Syntax_hasMissing(x_1); -x_190 = lean_unbox(x_189); -lean_dec(x_189); -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; lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_191 = lean_box(0); -x_192 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_152, x_168, x_191, x_64, x_67, x_171); -lean_dec(x_64); -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_195 = lean_st_ref_get(x_67, x_194); -lean_dec(x_67); -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_198 = x_195; -} else { - lean_dec_ref(x_195); - x_198 = lean_box(0); -} -if (lean_is_scalar(x_198)) { - x_199 = lean_alloc_ctor(0, 2, 0); -} else { - x_199 = x_198; -} -lean_ctor_set(x_199, 0, x_193); -lean_ctor_set(x_199, 1, x_196); -x_200 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_200, 0, x_199); -x_5 = x_200; -x_6 = x_197; -goto block_52; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_201 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_168, x_159, x_61); -x_202 = lean_box(0); -x_203 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_152, x_201, x_202, x_64, x_67, x_171); -lean_dec(x_64); -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -x_206 = lean_st_ref_get(x_67, x_205); -lean_dec(x_67); -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_206)) { - lean_ctor_release(x_206, 0); - lean_ctor_release(x_206, 1); - x_209 = x_206; -} else { - lean_dec_ref(x_206); - x_209 = lean_box(0); -} -if (lean_is_scalar(x_209)) { - x_210 = lean_alloc_ctor(0, 2, 0); -} else { - x_210 = x_209; -} -lean_ctor_set(x_210, 0, x_204); -lean_ctor_set(x_210, 1, x_207); -x_211 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_211, 0, x_210); -x_5 = x_211; -x_6 = x_208; -goto block_52; -} -} -} -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_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -lean_dec(x_1); -x_212 = lean_box(0); -x_213 = l_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_152, x_168, x_212, x_64, x_67, x_171); -lean_dec(x_64); -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_st_ref_get(x_67, x_215); -lean_dec(x_67); -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_219 = x_216; -} else { - lean_dec_ref(x_216); - x_219 = lean_box(0); -} -if (lean_is_scalar(x_219)) { - x_220 = lean_alloc_ctor(0, 2, 0); -} else { - x_220 = x_219; -} -lean_ctor_set(x_220, 0, x_214); -lean_ctor_set(x_220, 1, x_217); -x_221 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_221, 0, x_220); -x_5 = x_221; -x_6 = x_218; -goto block_52; -} -} -else -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; -lean_dec(x_152); -lean_dec(x_67); -lean_dec(x_64); -lean_dec(x_1); -x_222 = lean_ctor_get(x_163, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_163, 1); -lean_inc(x_223); -lean_dec(x_163); -x_224 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_224, 0, x_222); -x_5 = x_224; -x_6 = x_223; +x_165 = lean_ctor_get(x_136, 1); +lean_inc(x_165); +lean_dec(x_136); +x_166 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_166, 0, x_164); +x_5 = x_166; +x_6 = x_165; goto block_52; } } @@ -1447,17 +1169,6 @@ return x_51; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___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_Lean_Elab_Frontend_elabCommandAtFrontend___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -2413,6 +2124,979 @@ return x_21; } } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___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; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; +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 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = 1; +x_11 = lean_usize_add(x_2, x_10); +x_12 = lean_array_uset(x_7, x_2, x_9); +x_2 = x_11; +x_3 = x_12; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(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, 1); +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_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(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_eq(x_2, x_3); +if (x_5 == 0) +{ +lean_object* x_6; size_t x_7; size_t x_8; +x_6 = lean_array_uget(x_1, x_2); +x_7 = 1; +x_8 = lean_usize_add(x_2, x_7); +if (lean_obj_tag(x_6) == 0) +{ +x_2 = x_8; +goto _start; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_array_push(x_4, x_10); +x_2 = x_8; +x_4 = x_11; +goto _start; +} +} +else +{ +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_nat_dec_lt(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_3); +lean_dec(x_2); +x_5 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_le(x_3, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_3); +lean_dec(x_2); +x_8 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +return x_8; +} +else +{ +size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_usize_of_nat(x_2); +lean_dec(x_2); +x_10 = lean_usize_of_nat(x_3); +lean_dec(x_3); +x_11 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +x_12 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(x_1, x_9, x_10, x_11); +return x_12; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(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_eq(x_2, x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; +x_6 = lean_array_uget(x_1, x_2); +x_7 = l_Lean_MessageLog_append(x_4, x_6); +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_2 = x_9; +x_4 = x_7; +goto _start; +} +else +{ +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally_go(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; uint8_t x_7; +x_6 = l_Lean_Language_SnapshotTask_get___rarg(x_3); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +x_11 = lean_array_push(x_4, x_10); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 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; uint8_t x_28; +lean_inc(x_2); +x_12 = l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(x_2); +x_13 = l_Lean_Language_SnapshotTree_getAll(x_12); +x_14 = lean_array_get_size(x_13); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; +lean_inc(x_13); +x_17 = l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__1(x_15, x_16, x_13); +x_18 = lean_array_get_size(x_17); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_nat_dec_lt(x_19, x_18); +x_21 = l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(x_15, x_16, x_13); +x_22 = lean_array_get_size(x_21); +x_23 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(x_21, x_19, x_22); +lean_dec(x_21); +x_24 = l_Array_toPArray_x27___rarg(x_23); +lean_dec(x_23); +x_25 = lean_ctor_get(x_8, 4); +lean_inc(x_25); +x_26 = l_Lean_Language_SnapshotTask_get___rarg(x_25); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +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, 6); +x_30 = lean_ctor_get(x_27, 1); +lean_dec(x_30); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; +x_32 = lean_ctor_get(x_29, 1); +lean_dec(x_32); +lean_ctor_set(x_29, 1, x_24); +if (x_20 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_18); +lean_dec(x_17); +x_33 = lean_ctor_get(x_8, 2); +lean_inc(x_33); +lean_dec(x_8); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +lean_ctor_set(x_27, 1, x_35); +x_36 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_33); +lean_ctor_set(x_36, 2, x_34); +lean_ctor_set(x_36, 3, x_11); +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_1); +lean_ctor_set(x_37, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_37); +return x_6; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_8, 2); +lean_inc(x_38); +lean_dec(x_8); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_nat_dec_le(x_18, x_18); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_18); +lean_dec(x_17); +x_41 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +lean_ctor_set(x_27, 1, x_41); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_27); +lean_ctor_set(x_42, 1, x_38); +lean_ctor_set(x_42, 2, x_39); +lean_ctor_set(x_42, 3, x_11); +x_43 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_1); +lean_ctor_set(x_43, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_43); +return x_6; +} +else +{ +size_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_45 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_46 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(x_17, x_16, x_44, x_45); +lean_dec(x_17); +lean_ctor_set(x_27, 1, x_46); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_27); +lean_ctor_set(x_47, 1, x_38); +lean_ctor_set(x_47, 2, x_39); +lean_ctor_set(x_47, 3, x_11); +x_48 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_1); +lean_ctor_set(x_48, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_48); +return x_6; +} +} +} +else +{ +uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get_uint8(x_29, sizeof(void*)*2); +x_50 = lean_ctor_get(x_29, 0); +lean_inc(x_50); +lean_dec(x_29); +x_51 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_24); +lean_ctor_set_uint8(x_51, sizeof(void*)*2, x_49); +if (x_20 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_18); +lean_dec(x_17); +x_52 = lean_ctor_get(x_8, 2); +lean_inc(x_52); +lean_dec(x_8); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +lean_ctor_set(x_27, 6, x_51); +lean_ctor_set(x_27, 1, x_54); +x_55 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_55, 0, x_27); +lean_ctor_set(x_55, 1, x_52); +lean_ctor_set(x_55, 2, x_53); +lean_ctor_set(x_55, 3, x_11); +x_56 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_1); +lean_ctor_set(x_56, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_56); +return x_6; +} +else +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = lean_ctor_get(x_8, 2); +lean_inc(x_57); +lean_dec(x_8); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_nat_dec_le(x_18, x_18); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_18); +lean_dec(x_17); +x_60 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +lean_ctor_set(x_27, 6, x_51); +lean_ctor_set(x_27, 1, x_60); +x_61 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_61, 0, x_27); +lean_ctor_set(x_61, 1, x_57); +lean_ctor_set(x_61, 2, x_58); +lean_ctor_set(x_61, 3, x_11); +x_62 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_1); +lean_ctor_set(x_62, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_62); +return x_6; +} +else +{ +size_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_64 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_65 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(x_17, x_16, x_63, x_64); +lean_dec(x_17); +lean_ctor_set(x_27, 6, x_51); +lean_ctor_set(x_27, 1, x_65); +x_66 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_66, 0, x_27); +lean_ctor_set(x_66, 1, x_57); +lean_ctor_set(x_66, 2, x_58); +lean_ctor_set(x_66, 3, x_11); +x_67 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_1); +lean_ctor_set(x_67, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_67); +return x_6; +} +} +} +} +else +{ +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; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_68 = lean_ctor_get(x_27, 6); +x_69 = lean_ctor_get(x_27, 0); +x_70 = lean_ctor_get(x_27, 2); +x_71 = lean_ctor_get(x_27, 3); +x_72 = lean_ctor_get(x_27, 4); +x_73 = lean_ctor_get(x_27, 5); +x_74 = lean_ctor_get(x_27, 7); +lean_inc(x_74); +lean_inc(x_68); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_27); +x_75 = lean_ctor_get_uint8(x_68, sizeof(void*)*2); +x_76 = lean_ctor_get(x_68, 0); +lean_inc(x_76); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_77 = x_68; +} else { + lean_dec_ref(x_68); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(0, 2, 1); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_24); +lean_ctor_set_uint8(x_78, sizeof(void*)*2, x_75); +if (x_20 == 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; +lean_dec(x_18); +lean_dec(x_17); +x_79 = lean_ctor_get(x_8, 2); +lean_inc(x_79); +lean_dec(x_8); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_82 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_82, 0, x_69); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_82, 2, x_70); +lean_ctor_set(x_82, 3, x_71); +lean_ctor_set(x_82, 4, x_72); +lean_ctor_set(x_82, 5, x_73); +lean_ctor_set(x_82, 6, x_78); +lean_ctor_set(x_82, 7, x_74); +x_83 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_79); +lean_ctor_set(x_83, 2, x_80); +lean_ctor_set(x_83, 3, x_11); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_1); +lean_ctor_set(x_84, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_84); +return x_6; +} +else +{ +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_8, 2); +lean_inc(x_85); +lean_dec(x_8); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_nat_dec_le(x_18, x_18); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_18); +lean_dec(x_17); +x_88 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_89 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_89, 0, x_69); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_70); +lean_ctor_set(x_89, 3, x_71); +lean_ctor_set(x_89, 4, x_72); +lean_ctor_set(x_89, 5, x_73); +lean_ctor_set(x_89, 6, x_78); +lean_ctor_set(x_89, 7, x_74); +x_90 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_85); +lean_ctor_set(x_90, 2, x_86); +lean_ctor_set(x_90, 3, x_11); +x_91 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_1); +lean_ctor_set(x_91, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_91); +return x_6; +} +else +{ +size_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_92 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_93 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_94 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(x_17, x_16, x_92, x_93); +lean_dec(x_17); +x_95 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_95, 0, x_69); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_95, 2, x_70); +lean_ctor_set(x_95, 3, x_71); +lean_ctor_set(x_95, 4, x_72); +lean_ctor_set(x_95, 5, x_73); +lean_ctor_set(x_95, 6, x_78); +lean_ctor_set(x_95, 7, x_74); +x_96 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_85); +lean_ctor_set(x_96, 2, x_86); +lean_ctor_set(x_96, 3, x_11); +x_97 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_1); +lean_ctor_set(x_97, 2, x_2); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_97); +return x_6; +} +} +} +} +else +{ +lean_object* x_98; +lean_free_object(x_6); +lean_dec(x_8); +x_98 = lean_ctor_get(x_9, 0); +lean_inc(x_98); +lean_dec(x_9); +x_3 = x_98; +x_4 = x_11; +goto _start; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_6, 0); +x_101 = lean_ctor_get(x_6, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_6); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +x_103 = lean_array_push(x_4, x_102); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; size_t x_107; size_t x_108; lean_object* x_109; 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; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_inc(x_2); +x_104 = l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(x_2); +x_105 = l_Lean_Language_SnapshotTree_getAll(x_104); +x_106 = lean_array_get_size(x_105); +x_107 = lean_usize_of_nat(x_106); +lean_dec(x_106); +x_108 = 0; +lean_inc(x_105); +x_109 = l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__1(x_107, x_108, x_105); +x_110 = lean_array_get_size(x_109); +x_111 = lean_unsigned_to_nat(0u); +x_112 = lean_nat_dec_lt(x_111, x_110); +x_113 = l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(x_107, x_108, x_105); +x_114 = lean_array_get_size(x_113); +x_115 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(x_113, x_111, x_114); +lean_dec(x_113); +x_116 = l_Array_toPArray_x27___rarg(x_115); +lean_dec(x_115); +x_117 = lean_ctor_get(x_100, 4); +lean_inc(x_117); +x_118 = l_Lean_Language_SnapshotTask_get___rarg(x_117); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +lean_dec(x_118); +x_120 = lean_ctor_get(x_119, 6); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_119, 2); +lean_inc(x_122); +x_123 = lean_ctor_get(x_119, 3); +lean_inc(x_123); +x_124 = lean_ctor_get(x_119, 4); +lean_inc(x_124); +x_125 = lean_ctor_get(x_119, 5); +lean_inc(x_125); +x_126 = lean_ctor_get(x_119, 7); +lean_inc(x_126); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + lean_ctor_release(x_119, 2); + lean_ctor_release(x_119, 3); + lean_ctor_release(x_119, 4); + lean_ctor_release(x_119, 5); + lean_ctor_release(x_119, 6); + lean_ctor_release(x_119, 7); + x_127 = x_119; +} else { + lean_dec_ref(x_119); + x_127 = lean_box(0); +} +x_128 = lean_ctor_get_uint8(x_120, sizeof(void*)*2); +x_129 = lean_ctor_get(x_120, 0); +lean_inc(x_129); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_130 = x_120; +} else { + lean_dec_ref(x_120); + x_130 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(0, 2, 1); +} else { + x_131 = x_130; +} +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_116); +lean_ctor_set_uint8(x_131, sizeof(void*)*2, x_128); +if (x_112 == 0) +{ +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_dec(x_110); +lean_dec(x_109); +x_132 = lean_ctor_get(x_100, 2); +lean_inc(x_132); +lean_dec(x_100); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +if (lean_is_scalar(x_127)) { + x_135 = lean_alloc_ctor(0, 8, 0); +} else { + x_135 = x_127; +} +lean_ctor_set(x_135, 0, x_121); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_122); +lean_ctor_set(x_135, 3, x_123); +lean_ctor_set(x_135, 4, x_124); +lean_ctor_set(x_135, 5, x_125); +lean_ctor_set(x_135, 6, x_131); +lean_ctor_set(x_135, 7, x_126); +x_136 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_132); +lean_ctor_set(x_136, 2, x_133); +lean_ctor_set(x_136, 3, x_103); +x_137 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_1); +lean_ctor_set(x_137, 2, x_2); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_5); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_139 = lean_ctor_get(x_100, 2); +lean_inc(x_139); +lean_dec(x_100); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_nat_dec_le(x_110, x_110); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_110); +lean_dec(x_109); +x_142 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +if (lean_is_scalar(x_127)) { + x_143 = lean_alloc_ctor(0, 8, 0); +} else { + x_143 = x_127; +} +lean_ctor_set(x_143, 0, x_121); +lean_ctor_set(x_143, 1, x_142); +lean_ctor_set(x_143, 2, x_122); +lean_ctor_set(x_143, 3, x_123); +lean_ctor_set(x_143, 4, x_124); +lean_ctor_set(x_143, 5, x_125); +lean_ctor_set(x_143, 6, x_131); +lean_ctor_set(x_143, 7, x_126); +x_144 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_139); +lean_ctor_set(x_144, 2, x_140); +lean_ctor_set(x_144, 3, x_103); +x_145 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_1); +lean_ctor_set(x_145, 2, x_2); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_5); +return x_146; +} +else +{ +size_t 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_147 = lean_usize_of_nat(x_110); +lean_dec(x_110); +x_148 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; +x_149 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(x_109, x_108, x_147, x_148); +lean_dec(x_109); +if (lean_is_scalar(x_127)) { + x_150 = lean_alloc_ctor(0, 8, 0); +} else { + x_150 = x_127; +} +lean_ctor_set(x_150, 0, x_121); +lean_ctor_set(x_150, 1, x_149); +lean_ctor_set(x_150, 2, x_122); +lean_ctor_set(x_150, 3, x_123); +lean_ctor_set(x_150, 4, x_124); +lean_ctor_set(x_150, 5, x_125); +lean_ctor_set(x_150, 6, x_131); +lean_ctor_set(x_150, 7, x_126); +x_151 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_139); +lean_ctor_set(x_151, 2, x_140); +lean_ctor_set(x_151, 3, x_103); +x_152 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_1); +lean_ctor_set(x_152, 2, x_2); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_5); +return x_153; +} +} +} +else +{ +lean_object* x_154; +lean_dec(x_100); +x_154 = lean_ctor_get(x_101, 0); +lean_inc(x_154); +lean_dec(x_101); +x_3 = x_154; +x_4 = x_103; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___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_Lean_Elab_IO_processCommandsIncrementally_go___spec__1(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2___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_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(x_4, x_5, x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4___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_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5___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_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +lean_inc(x_1); +x_7 = l_Lean_Language_Lean_processCommands(x_1, x_2, x_3, x_6, x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +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); +lean_inc(x_8); +x_10 = l_Lean_Language_SnapshotTask_get___rarg(x_8); +x_11 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +x_12 = l_Lean_Elab_IO_processCommandsIncrementally_go(x_1, x_10, x_8, x_11, x_9); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +return x_7; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_4); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_4, 0); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 2); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_4, 0, x_21); +lean_inc(x_1); +x_22 = l_Lean_Language_Lean_processCommands(x_1, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_23); +x_25 = l_Lean_Language_SnapshotTask_get___rarg(x_23); +x_26 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +x_27 = l_Lean_Elab_IO_processCommandsIncrementally_go(x_1, x_25, x_23, x_26, x_24); +return x_27; +} +else +{ +uint8_t x_28; +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_22); +if (x_28 == 0) +{ +return x_22; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +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 = 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; +} +} +} +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_4, 0); +lean_inc(x_32); +lean_dec(x_4); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 2); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +lean_inc(x_1); +x_37 = l_Lean_Language_Lean_processCommands(x_1, x_2, x_3, x_36, x_5); +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; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_38); +x_40 = l_Lean_Language_SnapshotTask_get___rarg(x_38); +x_41 = l_Lean_Elab_Frontend_State_commands___default___closed__1; +x_42 = l_Lean_Elab_IO_processCommandsIncrementally_go(x_1, x_40, x_38, x_41, x_39); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_1); +x_43 = lean_ctor_get(x_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +} +} static lean_object* _init_l_Lean_Elab_process___closed__1() { _start: { @@ -2437,7 +3121,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_process(lean_object* x_1, lean_object* x_2, _start: { lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; +x_6 = l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; x_7 = l_Lean_Elab_Command_mkState(x_2, x_6, x_3); if (lean_obj_tag(x_4) == 0) { @@ -2595,7 +3279,7 @@ return x_49; } } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1() { _start: { lean_object* x_1; @@ -2603,7 +3287,7 @@ x_1 = lean_mk_string_from_bytes("Elab", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2() { _start: { lean_object* x_1; @@ -2611,17 +3295,17 @@ x_1 = lean_mk_string_from_bytes("info", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4() { _start: { lean_object* x_1; @@ -2629,27 +3313,27 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7() { _start: { lean_object* x_1; @@ -2657,17 +3341,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9() { _start: { lean_object* x_1; @@ -2675,37 +3359,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13() { _start: { lean_object* x_1; @@ -2713,17 +3397,17 @@ x_1 = lean_mk_string_from_bytes("Frontend", 8); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15() { _start: { lean_object* x_1; @@ -2731,33 +3415,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16; -x_2 = lean_unsigned_to_nat(1088u); +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16; +x_2 = lean_unsigned_to_nat(1284u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3; x_3 = 0; -x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17; +x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -2766,7 +3450,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1(lean_object* x_1, l _start: { uint8_t x_5; -x_5 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_1); +x_5 = l_Lean_MessageLog_hasErrors(x_1); if (x_5 == 0) { uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -3523,41 +4207,41 @@ l_Lean_Elab_process___closed__1 = _init_l_Lean_Elab_process___closed__1(); lean_mark_persistent(l_Lean_Elab_process___closed__1); l_Lean_Elab_process___closed__2 = _init_l_Lean_Elab_process___closed__2(); lean_mark_persistent(l_Lean_Elab_process___closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__3); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__5); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__6); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__7); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__8); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__9); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__10); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__11); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__12); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__13); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__14); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__15); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__16); -l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088____closed__17); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1088_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__5); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__6); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__7); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__8); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__9); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__10); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__11); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__12); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__13); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__14); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__15); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__16); +l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284____closed__17); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Frontend___hyg_1284_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_Elab_runFrontend___lambda__2___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/GuardMsgs.c b/stage0/stdlib/Lean/Elab/GuardMsgs.c index 2ee2452055..61ba25da67 100644 --- a/stage0/stdlib/Lean/Elab/GuardMsgs.c +++ b/stage0/stdlib/Lean/Elab/GuardMsgs.c @@ -29,6 +29,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___lambda__8___closed__3; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1814____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_toCtorIdx(uint8_t); +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_split___at_Lean_Elab_Tactic_GuardMsgs_WhitespaceMode_apply___spec__1___boxed(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___closed__3; @@ -54,7 +55,6 @@ lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___closed__1; -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -109,7 +109,6 @@ LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Tactic_GuardMsg static lean_object* l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1814____closed__5; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__37(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_toList___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__3(lean_object*, lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -172,6 +171,7 @@ static lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; LEAN_EXPORT lean_object* l_Lean_Diff_Histogram_addLeft___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6; +lean_object* l_Lean_MessageLog_toList(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___lambda__1___boxed(lean_object*); static lean_object* l_initFn____x40_Lean_Elab_GuardMsgs___hyg_7____closed__2; @@ -183,7 +183,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_decl static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___closed__10; LEAN_EXPORT lean_object* l_Lean_AssocList_replace___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); -lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_splitAux___at_Lean_Elab_Tactic_GuardMsgs_WhitespaceMode_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_noConfusion(lean_object*); @@ -364,6 +363,7 @@ LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Elab_Tactic_GuardMsgs_elabGu LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_SpecResult_noConfusion(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___lambda__8___closed__10; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__49(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__53(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_apply(uint8_t, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -428,6 +428,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1_ lean_object* l_instDecidableEqString___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___boxed(lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Subarray_split___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1; @@ -3970,7 +3971,7 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_16 = lean_unsigned_to_nat(1u); x_17 = l_Lean_Syntax_getArg(x_8, x_16); lean_dec(x_8); @@ -3981,48 +3982,12 @@ x_20 = lean_unsigned_to_nat(0u); x_21 = lean_nat_dec_lt(x_20, x_19); if (x_21 == 0) { -lean_object* x_33; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_19); lean_dec(x_18); -x_33 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; -x_22 = x_33; -goto block_32; -} -else -{ -uint8_t x_34; -x_34 = lean_nat_dec_le(x_19, x_19); -if (x_34 == 0) -{ -lean_object* x_35; -lean_dec(x_19); -lean_dec(x_18); -x_35 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; -x_22 = x_35; -goto block_32; -} -else -{ -size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = 0; -x_37 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_38 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__5; -x_39 = l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(x_18, x_36, x_37, x_38); -lean_dec(x_18); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_22 = x_40; -goto block_32; -} -} -block_32: -{ -lean_object* x_23; lean_object* x_24; +x_22 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; x_23 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__6; x_24 = l_Array_sequenceMap___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__4(x_22, x_23); -lean_dec(x_22); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; uint8_t x_26; @@ -4058,6 +4023,104 @@ x_31 = lean_apply_4(x_5, x_30, x_2, x_3, x_4); return x_31; } } +else +{ +uint8_t x_32; +x_32 = lean_nat_dec_le(x_19, x_19); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_19); +lean_dec(x_18); +x_33 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; +x_34 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__6; +x_35 = l_Array_sequenceMap___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__4(x_33, x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; +lean_dec(x_3); +lean_dec(x_2); +x_36 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__3___rarg(x_4); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_35, 0); +lean_inc(x_41); +lean_dec(x_35); +x_42 = lean_apply_4(x_5, x_41, x_2, x_3, x_4); +return x_42; +} +} +else +{ +size_t x_43; size_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_43 = 0; +x_44 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_45 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__5; +x_46 = l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(x_18, x_43, x_44, x_45); +lean_dec(x_18); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__6; +x_49 = l_Array_sequenceMap___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__4(x_47, x_48); +lean_dec(x_47); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; uint8_t x_51; +lean_dec(x_3); +lean_dec(x_2); +x_50 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__3___rarg(x_4); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +return x_50; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_50); +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; lean_object* x_56; +x_55 = lean_ctor_get(x_49, 0); +lean_inc(x_55); +lean_dec(x_49); +x_56 = lean_apply_4(x_5, x_55, x_2, x_3, x_4); +return x_56; +} +} +} } } } @@ -4569,7 +4632,7 @@ switch (x_14) { case 0: { lean_object* x_15; -x_15 = l_Lean_PersistentArray_push___rarg(x_11, x_8); +x_15 = l_Lean_MessageLog_add(x_8, x_11); lean_ctor_set(x_3, 0, x_15); x_2 = x_9; goto _start; @@ -4583,7 +4646,7 @@ goto _start; default: { lean_object* x_18; -x_18 = l_Lean_PersistentArray_push___rarg(x_12, x_8); +x_18 = l_Lean_MessageLog_add(x_8, x_12); lean_ctor_set(x_3, 1, x_18); x_2 = x_9; goto _start; @@ -4607,7 +4670,7 @@ switch (x_23) { case 0: { lean_object* x_24; lean_object* x_25; -x_24 = l_Lean_PersistentArray_push___rarg(x_20, x_8); +x_24 = l_Lean_MessageLog_add(x_8, x_20); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_21); @@ -4629,7 +4692,7 @@ goto _start; default: { lean_object* x_29; lean_object* x_30; -x_29 = l_Lean_PersistentArray_push___rarg(x_21, x_8); +x_29 = l_Lean_MessageLog_add(x_8, x_21); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_20); lean_ctor_set(x_30, 1, x_29); @@ -8494,7 +8557,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -8503,6 +8566,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -8512,19 +8578,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__56(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__56(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -8663,6 +8731,18 @@ return x_5; static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +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_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = l_Lean_MessageLog_empty; x_2 = lean_alloc_ctor(0, 2, 0); @@ -8671,7 +8751,7 @@ lean_ctor_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6() { _start: { lean_object* x_1; @@ -8679,7 +8759,7 @@ x_1 = lean_mk_string_from_bytes("---\n", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7() { _start: { lean_object* x_1; @@ -8687,11 +8767,11 @@ x_1 = lean_mk_string_from_bytes("❌ Docstring on `#guard_msgs` does not match g return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6; +x_1 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -8914,7 +8994,7 @@ if (x_32 == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_33 = lean_ctor_get(x_30, 1); -x_34 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +x_34 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; lean_ctor_set(x_30, 1, x_34); x_35 = lean_st_ref_set(x_5, x_30, x_31); x_36 = lean_ctor_get(x_35, 1); @@ -8939,8 +9019,8 @@ x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); lean_dec(x_40); lean_inc(x_42); -x_43 = l_Lean_PersistentArray_toList___rarg(x_42); -x_44 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; +x_43 = l_Lean_MessageLog_toList(x_42); +x_44 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; x_45 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1(x_28, x_43, x_44, x_4, x_5, x_41); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); @@ -8952,7 +9032,7 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_46, 1); lean_inc(x_49); lean_dec(x_46); -x_50 = l_Lean_PersistentArray_toList___rarg(x_48); +x_50 = l_Lean_MessageLog_toList(x_48); x_51 = lean_box(0); x_52 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_50, x_51, x_4, x_5, x_47); if (lean_obj_tag(x_52) == 0) @@ -8966,7 +9046,7 @@ lean_dec(x_52); x_55 = lean_unbox(x_27); lean_dec(x_27); x_56 = l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_apply(x_55, x_53); -x_57 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; +x_57 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6; x_58 = l_String_intercalate(x_57, x_56); x_59 = l_String_trim(x_58); lean_dec(x_58); @@ -8994,7 +9074,7 @@ if (x_68 == 0) lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; x_69 = lean_ctor_get(x_66, 1); lean_dec(x_69); -x_70 = l_Lean_PersistentArray_append___rarg(x_33, x_42); +x_70 = l_Lean_MessageLog_append(x_33, x_42); lean_ctor_set(x_66, 1, x_70); x_71 = lean_st_ref_set(x_5, x_66, x_67); x_72 = !lean_is_exclusive(x_71); @@ -9029,7 +9109,7 @@ if (x_85 == 0) lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_dec(x_23); x_86 = l_Lean_stringToMessageData(x_59); -x_87 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_87 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; lean_ctor_set_tag(x_75, 6); lean_ctor_set(x_75, 1, x_86); lean_ctor_set(x_75, 0, x_87); @@ -9103,7 +9183,7 @@ x_114 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_113); x_115 = l_Lean_stringToMessageData(x_114); lean_dec(x_114); -x_116 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_116 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; lean_ctor_set_tag(x_75, 6); lean_ctor_set(x_75, 1, x_115); lean_ctor_set(x_75, 0, x_116); @@ -9184,7 +9264,7 @@ if (x_141 == 0) lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t 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_dec(x_23); x_142 = l_Lean_stringToMessageData(x_59); -x_143 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_143 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; x_144 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_144, 0, x_143); lean_ctor_set(x_144, 1, x_142); @@ -9249,7 +9329,7 @@ x_167 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_166); x_168 = l_Lean_stringToMessageData(x_167); lean_dec(x_167); -x_169 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_169 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; x_170 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_170, 0, x_169); lean_ctor_set(x_170, 1, x_168); @@ -9333,7 +9413,7 @@ if (x_194 == 0) lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_dec(x_23); x_195 = l_Lean_stringToMessageData(x_59); -x_196 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_196 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_187)) { x_197 = lean_alloc_ctor(6, 2, 0); } else { @@ -9403,7 +9483,7 @@ x_221 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_220); x_222 = l_Lean_stringToMessageData(x_221); lean_dec(x_221); -x_223 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_223 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_187)) { x_224 = lean_alloc_ctor(6, 2, 0); } else { @@ -9473,7 +9553,7 @@ lean_inc(x_240); lean_inc(x_239); lean_inc(x_238); lean_dec(x_66); -x_245 = l_Lean_PersistentArray_append___rarg(x_33, x_42); +x_245 = l_Lean_MessageLog_append(x_33, x_42); x_246 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_246, 0, x_238); lean_ctor_set(x_246, 1, x_245); @@ -9525,7 +9605,7 @@ if (x_260 == 0) lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t 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_dec(x_23); x_261 = l_Lean_stringToMessageData(x_59); -x_262 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_262 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_253)) { x_263 = lean_alloc_ctor(6, 2, 0); } else { @@ -9600,7 +9680,7 @@ x_287 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_286); x_288 = l_Lean_stringToMessageData(x_287); lean_dec(x_287); -x_289 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_289 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_253)) { x_290 = lean_alloc_ctor(6, 2, 0); } else { @@ -9678,7 +9758,7 @@ if (x_307 == 0) lean_object* x_308; lean_object* x_309; lean_object* x_310; uint8_t x_311; x_308 = lean_ctor_get(x_305, 1); lean_dec(x_308); -x_309 = l_Lean_PersistentArray_append___rarg(x_33, x_49); +x_309 = l_Lean_MessageLog_append(x_33, x_49); lean_ctor_set(x_305, 1, x_309); x_310 = lean_st_ref_set(x_5, x_305, x_306); lean_dec(x_5); @@ -9723,7 +9803,7 @@ lean_inc(x_319); lean_inc(x_318); lean_inc(x_317); lean_dec(x_305); -x_324 = l_Lean_PersistentArray_append___rarg(x_33, x_49); +x_324 = l_Lean_MessageLog_append(x_33, x_49); x_325 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_325, 0, x_317); lean_ctor_set(x_325, 1, x_324); @@ -9842,7 +9922,7 @@ lean_inc(x_341); lean_inc(x_340); lean_inc(x_339); lean_dec(x_30); -x_347 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +x_347 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; x_348 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_348, 0, x_339); lean_ctor_set(x_348, 1, x_347); @@ -9875,8 +9955,8 @@ x_356 = lean_ctor_get(x_354, 1); lean_inc(x_356); lean_dec(x_354); lean_inc(x_356); -x_357 = l_Lean_PersistentArray_toList___rarg(x_356); -x_358 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; +x_357 = l_Lean_MessageLog_toList(x_356); +x_358 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; x_359 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1(x_28, x_357, x_358, x_4, x_5, x_355); x_360 = lean_ctor_get(x_359, 0); lean_inc(x_360); @@ -9888,7 +9968,7 @@ lean_inc(x_362); x_363 = lean_ctor_get(x_360, 1); lean_inc(x_363); lean_dec(x_360); -x_364 = l_Lean_PersistentArray_toList___rarg(x_362); +x_364 = l_Lean_MessageLog_toList(x_362); x_365 = lean_box(0); x_366 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_364, x_365, x_4, x_5, x_361); if (lean_obj_tag(x_366) == 0) @@ -9902,7 +9982,7 @@ lean_dec(x_366); x_369 = lean_unbox(x_27); lean_dec(x_27); x_370 = l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_apply(x_369, x_367); -x_371 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; +x_371 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6; x_372 = l_String_intercalate(x_371, x_370); x_373 = l_String_trim(x_372); lean_dec(x_372); @@ -9952,7 +10032,7 @@ if (lean_is_exclusive(x_380)) { lean_dec_ref(x_380); x_389 = lean_box(0); } -x_390 = l_Lean_PersistentArray_append___rarg(x_340, x_356); +x_390 = l_Lean_MessageLog_append(x_340, x_356); if (lean_is_scalar(x_389)) { x_391 = lean_alloc_ctor(0, 8, 0); } else { @@ -10008,7 +10088,7 @@ if (x_405 == 0) lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; lean_object* 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_object* x_421; lean_dec(x_23); x_406 = l_Lean_stringToMessageData(x_373); -x_407 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_407 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_398)) { x_408 = lean_alloc_ctor(6, 2, 0); } else { @@ -10083,7 +10163,7 @@ x_432 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_431); x_433 = l_Lean_stringToMessageData(x_432); lean_dec(x_432); -x_434 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_434 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_398)) { x_435 = lean_alloc_ctor(6, 2, 0); } else { @@ -10182,7 +10262,7 @@ if (lean_is_exclusive(x_450)) { lean_dec_ref(x_450); x_459 = lean_box(0); } -x_460 = l_Lean_PersistentArray_append___rarg(x_340, x_363); +x_460 = l_Lean_MessageLog_append(x_340, x_363); if (lean_is_scalar(x_459)) { x_461 = lean_alloc_ctor(0, 8, 0); } else { @@ -10333,7 +10413,7 @@ if (lean_is_exclusive(x_478)) { lean_dec_ref(x_478); x_488 = lean_box(0); } -x_489 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +x_489 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; if (lean_is_scalar(x_488)) { x_490 = lean_alloc_ctor(0, 8, 0); } else { @@ -10370,8 +10450,8 @@ x_498 = lean_ctor_get(x_496, 1); lean_inc(x_498); lean_dec(x_496); lean_inc(x_498); -x_499 = l_Lean_PersistentArray_toList___rarg(x_498); -x_500 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; +x_499 = l_Lean_MessageLog_toList(x_498); +x_500 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; x_501 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1(x_476, x_499, x_500, x_4, x_5, x_497); x_502 = lean_ctor_get(x_501, 0); lean_inc(x_502); @@ -10383,7 +10463,7 @@ lean_inc(x_504); x_505 = lean_ctor_get(x_502, 1); lean_inc(x_505); lean_dec(x_502); -x_506 = l_Lean_PersistentArray_toList___rarg(x_504); +x_506 = l_Lean_MessageLog_toList(x_504); x_507 = lean_box(0); x_508 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_506, x_507, x_4, x_5, x_503); if (lean_obj_tag(x_508) == 0) @@ -10397,7 +10477,7 @@ lean_dec(x_508); x_511 = lean_unbox(x_475); lean_dec(x_475); x_512 = l_Lean_Elab_Tactic_GuardMsgs_MessageOrdering_apply(x_511, x_509); -x_513 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; +x_513 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6; x_514 = l_String_intercalate(x_513, x_512); x_515 = l_String_trim(x_514); lean_dec(x_514); @@ -10447,7 +10527,7 @@ if (lean_is_exclusive(x_522)) { lean_dec_ref(x_522); x_531 = lean_box(0); } -x_532 = l_Lean_PersistentArray_append___rarg(x_481, x_498); +x_532 = l_Lean_MessageLog_append(x_481, x_498); if (lean_is_scalar(x_531)) { x_533 = lean_alloc_ctor(0, 8, 0); } else { @@ -10503,7 +10583,7 @@ if (x_547 == 0) lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; uint8_t x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_dec(x_23); x_548 = l_Lean_stringToMessageData(x_515); -x_549 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_549 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_540)) { x_550 = lean_alloc_ctor(6, 2, 0); } else { @@ -10579,7 +10659,7 @@ x_575 = l_Lean_Diff_linesToString___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_ lean_dec(x_574); x_576 = l_Lean_stringToMessageData(x_575); lean_dec(x_575); -x_577 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_577 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8; if (lean_is_scalar(x_540)) { x_578 = lean_alloc_ctor(6, 2, 0); } else { @@ -10678,7 +10758,7 @@ if (lean_is_exclusive(x_594)) { lean_dec_ref(x_594); x_603 = lean_box(0); } -x_604 = l_Lean_PersistentArray_append___rarg(x_481, x_505); +x_604 = l_Lean_MessageLog_append(x_481, x_505); if (lean_is_scalar(x_603)) { x_605 = lean_alloc_ctor(0, 8, 0); } else { @@ -14838,6 +14918,8 @@ l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6 = _init_l_Lea lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__6); l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7 = _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7(); lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7); +l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8 = _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__8); l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__1 = _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__1); l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__2 = _init_l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Import.c b/stage0/stdlib/Lean/Elab/Import.c index cb71805249..8842d397e8 100644 --- a/stage0/stdlib/Lean/Elab/Import.c +++ b/stage0/stdlib/Lean/Elab/Import.c @@ -19,7 +19,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_headerToImports___boxed(lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_processHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_print_imports(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); @@ -58,6 +57,7 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); lean_object* lean_import_modules(lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_headerToImports___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -314,7 +314,7 @@ lean_ctor_set(x_35, 3, x_34); lean_ctor_set(x_35, 4, x_30); lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_23); lean_ctor_set_uint8(x_35, sizeof(void*)*5 + 1, x_33); -x_36 = l_Lean_PersistentArray_push___rarg(x_3, x_35); +x_36 = l_Lean_MessageLog_add(x_35, x_3); x_37 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_37, 0, x_22); lean_ctor_set(x_37, 1, x_36); @@ -339,7 +339,7 @@ lean_ctor_set(x_42, 3, x_41); lean_ctor_set(x_42, 4, x_30); lean_ctor_set_uint8(x_42, sizeof(void*)*5, x_23); lean_ctor_set_uint8(x_42, sizeof(void*)*5 + 1, x_40); -x_43 = l_Lean_PersistentArray_push___rarg(x_3, x_42); +x_43 = l_Lean_MessageLog_add(x_42, x_3); x_44 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_44, 0, x_22); lean_ctor_set(x_44, 1, x_43); @@ -382,7 +382,7 @@ lean_ctor_set(x_59, 3, x_58); lean_ctor_set(x_59, 4, x_54); lean_ctor_set_uint8(x_59, sizeof(void*)*5, x_47); lean_ctor_set_uint8(x_59, sizeof(void*)*5 + 1, x_57); -x_60 = l_Lean_PersistentArray_push___rarg(x_3, x_59); +x_60 = l_Lean_MessageLog_add(x_59, x_3); x_61 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_61, 0, x_45); lean_ctor_set(x_61, 1, x_60); @@ -409,7 +409,7 @@ lean_ctor_set(x_67, 3, x_66); lean_ctor_set(x_67, 4, x_54); lean_ctor_set_uint8(x_67, sizeof(void*)*5, x_47); lean_ctor_set_uint8(x_67, sizeof(void*)*5 + 1, x_65); -x_68 = l_Lean_PersistentArray_push___rarg(x_3, x_67); +x_68 = l_Lean_MessageLog_add(x_67, x_3); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_45); lean_ctor_set(x_69, 1, x_68); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 7ee2e7a56c..a9c4e51905 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -97,6 +97,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_th LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_elabCtorType___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_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceArrowBinderNames___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___rarg___closed__2; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4045,48 +4046,52 @@ if (x_13 == 0) { lean_object* x_14; uint8_t x_15; x_14 = lean_ctor_get(x_12, 0); -x_15 = l_Lean_Exception_isRuntime(x_14); +x_15 = l_Lean_Exception_isInterrupt(x_14); if (x_15 == 0) { +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_14); +if (x_16 == 0) +{ if (lean_obj_tag(x_14) == 0) { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 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_14, 1); -x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; -x_19 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; -x_21 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -lean_ctor_set(x_14, 1, x_21); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_14, 1); +x_19 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; +x_20 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; +x_22 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +lean_ctor_set(x_14, 1, x_22); return x_12; } else { -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; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); +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; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); lean_dec(x_14); -x_24 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; -x_27 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); +x_25 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; +x_26 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; +x_28 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_12, 0, x_28); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_12, 0, x_29); return x_12; } } @@ -4102,67 +4107,85 @@ return x_12; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_12, 0); -x_30 = lean_ctor_get(x_12, 1); +return x_12; +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_12, 0); +x_31 = lean_ctor_get(x_12, 1); +lean_inc(x_31); lean_inc(x_30); -lean_inc(x_29); lean_dec(x_12); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) +x_32 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) { -if (lean_obj_tag(x_29) == 0) +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 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; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_32 = lean_ctor_get(x_29, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_34 = x_29; +if (lean_obj_tag(x_30) == 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_42; +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_36 = x_30; } else { - lean_dec_ref(x_29); - x_34 = lean_box(0); + lean_dec_ref(x_30); + x_36 = lean_box(0); } -x_35 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; -x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -x_37 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; +x_37 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___closed__3; x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -if (lean_is_scalar(x_34)) { - x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +x_39 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__6___closed__5; +x_40 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +if (lean_is_scalar(x_36)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - x_39 = x_34; + x_41 = x_36; } -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_30); -return x_40; -} -else -{ -lean_object* x_41; -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_29); -lean_ctor_set(x_41, 1, x_30); -return x_41; -} -} -else -{ -lean_object* x_42; +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_40); x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_29); -lean_ctor_set(x_42, 1, x_30); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_31); return x_42; } +else +{ +lean_object* x_43; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_30); +lean_ctor_set(x_43, 1, x_31); +return x_43; +} +} +else +{ +lean_object* x_44; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_30); +lean_ctor_set(x_44, 1, x_31); +return x_44; +} +} +else +{ +lean_object* x_45; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_30); +lean_ctor_set(x_45, 1, x_31); +return x_45; +} } } } @@ -4309,7 +4332,7 @@ return x_32; } 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; lean_object* 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_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; uint8_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; x_33 = lean_ctor_get(x_8, 0); x_34 = lean_ctor_get(x_8, 1); x_35 = lean_ctor_get(x_8, 2); @@ -4321,7 +4344,10 @@ x_40 = lean_ctor_get(x_8, 7); x_41 = lean_ctor_get(x_8, 8); x_42 = lean_ctor_get(x_8, 9); x_43 = lean_ctor_get(x_8, 10); -x_44 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_44 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_45 = lean_ctor_get(x_8, 11); +x_46 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_45); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); @@ -4334,77 +4360,79 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_8); -x_45 = l_Lean_replaceRef(x_20, x_38); +x_47 = l_Lean_replaceRef(x_20, x_38); lean_dec(x_38); lean_dec(x_20); -x_46 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_46, 0, x_33); -lean_ctor_set(x_46, 1, x_34); -lean_ctor_set(x_46, 2, x_35); -lean_ctor_set(x_46, 3, x_36); -lean_ctor_set(x_46, 4, x_37); -lean_ctor_set(x_46, 5, x_45); -lean_ctor_set(x_46, 6, x_39); -lean_ctor_set(x_46, 7, x_40); -lean_ctor_set(x_46, 8, x_41); -lean_ctor_set(x_46, 9, x_42); -lean_ctor_set(x_46, 10, x_43); -lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_44); +x_48 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +lean_ctor_set(x_48, 2, x_35); +lean_ctor_set(x_48, 3, x_36); +lean_ctor_set(x_48, 4, x_37); +lean_ctor_set(x_48, 5, x_47); +lean_ctor_set(x_48, 6, x_39); +lean_ctor_set(x_48, 7, x_40); +lean_ctor_set(x_48, 8, x_41); +lean_ctor_set(x_48, 9, x_42); +lean_ctor_set(x_48, 10, x_43); +lean_ctor_set(x_48, 11, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*12, x_44); +lean_ctor_set_uint8(x_48, sizeof(void*)*12 + 1, x_46); lean_inc(x_18); -x_47 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_46, x_9, x_17); -if (lean_obj_tag(x_47) == 0) +x_49 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(x_16, x_18, x_2, x_4, x_5, x_6, x_7, x_48, x_9, x_17); +if (lean_obj_tag(x_49) == 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); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_49 = x_47; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; } else { - lean_dec_ref(x_47); - x_49 = lean_box(0); + lean_dec_ref(x_49); + x_51 = lean_box(0); } -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); } else { - x_50 = x_49; + x_52 = x_51; } -lean_ctor_set(x_50, 0, x_18); -lean_ctor_set(x_50, 1, x_48); -return x_50; +lean_ctor_set(x_52, 0, x_18); +lean_ctor_set(x_52, 1, x_50); +return x_52; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_dec(x_18); -x_51 = lean_ctor_get(x_47, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_47, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_53 = x_47; +x_53 = lean_ctor_get(x_49, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_55 = x_49; } else { - lean_dec_ref(x_47); - x_53 = lean_box(0); + lean_dec_ref(x_49); + x_55 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_53; + x_56 = x_55; } -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; } } } } else { -uint8_t x_55; +uint8_t x_57; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -4414,23 +4442,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_11); -if (x_55 == 0) +x_57 = !lean_is_exclusive(x_11); +if (x_57 == 0) { return x_11; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_11, 0); -x_57 = lean_ctor_get(x_11, 1); -lean_inc(x_57); -lean_inc(x_56); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_11, 0); +x_59 = lean_ctor_get(x_11, 1); +lean_inc(x_59); +lean_inc(x_58); lean_dec(x_11); -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; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } @@ -5097,7 +5125,7 @@ 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; 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; +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; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_18 = lean_ctor_get(x_10, 0); x_19 = lean_ctor_get(x_10, 1); x_20 = lean_ctor_get(x_10, 2); @@ -5109,7 +5137,10 @@ x_25 = lean_ctor_get(x_10, 7); x_26 = lean_ctor_get(x_10, 8); x_27 = lean_ctor_get(x_10, 9); x_28 = lean_ctor_get(x_10, 10); -x_29 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_30 = lean_ctor_get(x_10, 11); +x_31 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_30); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); @@ -5122,24 +5153,26 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_10); -x_30 = l_Lean_replaceRef(x_1, x_23); +x_32 = l_Lean_replaceRef(x_1, x_23); lean_dec(x_23); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_30); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_25); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set(x_31, 9, x_27); -lean_ctor_set(x_31, 10, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_29); -x_32 = lean_unsigned_to_nat(0u); -x_33 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(x_2, x_3, x_4, x_32, x_5, x_6, x_7, x_8, x_9, x_31, x_11, x_12); -return x_33; +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_19); +lean_ctor_set(x_33, 2, x_20); +lean_ctor_set(x_33, 3, x_21); +lean_ctor_set(x_33, 4, x_22); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_24); +lean_ctor_set(x_33, 7, x_25); +lean_ctor_set(x_33, 8, x_26); +lean_ctor_set(x_33, 9, x_27); +lean_ctor_set(x_33, 10, x_28); +lean_ctor_set(x_33, 11, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_31); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(x_2, x_3, x_4, x_34, x_5, x_6, x_7, x_8, x_9, x_33, x_11, x_12); +return x_35; } } } @@ -9601,7 +9634,7 @@ return x_19; } 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; 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_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; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_20 = lean_ctor_get(x_11, 0); x_21 = lean_ctor_get(x_11, 1); x_22 = lean_ctor_get(x_11, 2); @@ -9613,7 +9646,10 @@ x_27 = lean_ctor_get(x_11, 7); x_28 = lean_ctor_get(x_11, 8); x_29 = lean_ctor_get(x_11, 9); x_30 = lean_ctor_get(x_11, 10); -x_31 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_31 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_32 = lean_ctor_get(x_11, 11); +x_33 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -9626,24 +9662,26 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_11); -x_32 = l_Lean_replaceRef(x_14, x_25); +x_34 = l_Lean_replaceRef(x_14, x_25); lean_dec(x_25); lean_dec(x_14); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); -x_34 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_elabCtorType(x_3, x_4, x_2, x_5, x_1, x_15, x_7, x_8, x_9, x_10, x_33, x_12, x_13); -return x_34; +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_21); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_23); +lean_ctor_set(x_35, 4, x_24); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_33); +x_36 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_elabCtorType(x_3, x_4, x_2, x_5, x_1, x_15, x_7, x_8, x_9, x_10, x_35, x_12, x_13); +return x_36; } } } @@ -9923,7 +9961,7 @@ return x_29; } else { -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; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +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; uint8_t x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; x_30 = lean_ctor_get(x_9, 0); x_31 = lean_ctor_get(x_9, 1); x_32 = lean_ctor_get(x_9, 2); @@ -9935,7 +9973,10 @@ x_37 = lean_ctor_get(x_9, 7); x_38 = lean_ctor_get(x_9, 8); x_39 = lean_ctor_get(x_9, 9); x_40 = lean_ctor_get(x_9, 10); -x_41 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_41 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_42 = lean_ctor_get(x_9, 11); +x_43 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_42); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); @@ -9948,52 +9989,54 @@ lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_dec(x_9); -x_42 = l_Lean_replaceRef(x_13, x_35); +x_44 = l_Lean_replaceRef(x_13, x_35); lean_dec(x_35); lean_dec(x_13); -x_43 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_43, 0, x_30); -lean_ctor_set(x_43, 1, x_31); -lean_ctor_set(x_43, 2, x_32); -lean_ctor_set(x_43, 3, x_33); -lean_ctor_set(x_43, 4, x_34); -lean_ctor_set(x_43, 5, x_42); -lean_ctor_set(x_43, 6, x_36); -lean_ctor_set(x_43, 7, x_37); -lean_ctor_set(x_43, 8, x_38); -lean_ctor_set(x_43, 9, x_39); -lean_ctor_set(x_43, 10, x_40); -lean_ctor_set_uint8(x_43, sizeof(void*)*11, x_41); +x_45 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_45, 0, x_30); +lean_ctor_set(x_45, 1, x_31); +lean_ctor_set(x_45, 2, x_32); +lean_ctor_set(x_45, 3, x_33); +lean_ctor_set(x_45, 4, x_34); +lean_ctor_set(x_45, 5, x_44); +lean_ctor_set(x_45, 6, x_36); +lean_ctor_set(x_45, 7, x_37); +lean_ctor_set(x_45, 8, x_38); +lean_ctor_set(x_45, 9, x_39); +lean_ctor_set(x_45, 10, x_40); +lean_ctor_set(x_45, 11, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*12, x_41); +lean_ctor_set_uint8(x_45, sizeof(void*)*12 + 1, x_43); lean_inc(x_10); -lean_inc(x_43); +lean_inc(x_45); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); -x_44 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(x_14, x_2, x_5, x_6, x_7, x_8, x_43, x_10, x_11); -if (lean_obj_tag(x_44) == 0) +x_46 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily(x_14, x_2, x_5, x_6, x_7, x_8, x_45, x_10, x_11); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; -x_45 = lean_ctor_get(x_44, 0); -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_12, 8); +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; +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_ctor_get(x_12, 8); +lean_inc(x_49); lean_dec(x_12); -x_48 = lean_array_to_list(lean_box(0), x_47); -x_49 = lean_box(0); -x_50 = lean_unbox(x_45); -lean_dec(x_45); -x_51 = l_List_mapM_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(x_1, x_2, x_3, x_50, x_48, x_49, x_5, x_6, x_7, x_8, x_43, x_10, x_46); -return x_51; +x_50 = lean_array_to_list(lean_box(0), x_49); +x_51 = lean_box(0); +x_52 = lean_unbox(x_47); +lean_dec(x_47); +x_53 = l_List_mapM_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(x_1, x_2, x_3, x_52, x_50, x_51, x_5, x_6, x_7, x_8, x_45, x_10, x_48); +return x_53; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_43); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_45); lean_dec(x_12); lean_dec(x_10); lean_dec(x_8); @@ -10003,26 +10046,26 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = lean_ctor_get(x_44, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_44, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_54 = x_44; +x_54 = lean_ctor_get(x_46, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_46, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_56 = x_46; } else { - lean_dec_ref(x_44); - x_54 = lean_box(0); + lean_dec_ref(x_46); + x_56 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_57 = x_56; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } } @@ -15021,7 +15064,7 @@ return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 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_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; uint8_t x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_44 = lean_ctor_get(x_13, 0); x_45 = lean_ctor_get(x_13, 1); x_46 = lean_ctor_get(x_13, 2); @@ -15033,7 +15076,10 @@ x_51 = lean_ctor_get(x_13, 7); x_52 = lean_ctor_get(x_13, 8); x_53 = lean_ctor_get(x_13, 9); x_54 = lean_ctor_get(x_13, 10); -x_55 = lean_ctor_get_uint8(x_13, sizeof(void*)*11); +x_55 = lean_ctor_get_uint8(x_13, sizeof(void*)*12); +x_56 = lean_ctor_get(x_13, 11); +x_57 = lean_ctor_get_uint8(x_13, sizeof(void*)*12 + 1); +lean_inc(x_56); lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); @@ -15046,76 +15092,78 @@ lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); lean_dec(x_13); -x_56 = l_Lean_replaceRef(x_24, x_49); +x_58 = l_Lean_replaceRef(x_24, x_49); lean_dec(x_49); lean_dec(x_24); -x_57 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_57, 0, x_44); -lean_ctor_set(x_57, 1, x_45); -lean_ctor_set(x_57, 2, x_46); -lean_ctor_set(x_57, 3, x_47); -lean_ctor_set(x_57, 4, x_48); -lean_ctor_set(x_57, 5, x_56); -lean_ctor_set(x_57, 6, x_50); -lean_ctor_set(x_57, 7, x_51); -lean_ctor_set(x_57, 8, x_52); -lean_ctor_set(x_57, 9, x_53); -lean_ctor_set(x_57, 10, x_54); -lean_ctor_set_uint8(x_57, sizeof(void*)*11, x_55); -x_58 = lean_apply_8(x_2, x_8, x_9, x_10, x_11, x_12, x_57, x_14, x_15); -if (lean_obj_tag(x_58) == 0) +x_59 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_59, 0, x_44); +lean_ctor_set(x_59, 1, x_45); +lean_ctor_set(x_59, 2, x_46); +lean_ctor_set(x_59, 3, x_47); +lean_ctor_set(x_59, 4, x_48); +lean_ctor_set(x_59, 5, x_58); +lean_ctor_set(x_59, 6, x_50); +lean_ctor_set(x_59, 7, x_51); +lean_ctor_set(x_59, 8, x_52); +lean_ctor_set(x_59, 9, x_53); +lean_ctor_set(x_59, 10, x_54); +lean_ctor_set(x_59, 11, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*12, x_55); +lean_ctor_set_uint8(x_59, sizeof(void*)*12 + 1, x_57); +x_60 = lean_apply_8(x_2, x_8, x_9, x_10, x_11, x_12, x_59, x_14, x_15); +if (lean_obj_tag(x_60) == 0) { -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; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; +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; +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_58); - x_61 = lean_box(0); + lean_dec_ref(x_60); + x_63 = lean_box(0); } -x_62 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_62, 0, x_59); -x_63 = lean_box(0); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -if (lean_is_scalar(x_61)) { - x_65 = lean_alloc_ctor(0, 2, 0); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_61); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +if (lean_is_scalar(x_63)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_65 = x_61; + x_67 = x_63; } -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_60); -return x_65; +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_62); +return x_67; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_58, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_58, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_68 = x_58; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_60, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_60, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_70 = x_60; } else { - lean_dec_ref(x_58); - x_68 = lean_box(0); + lean_dec_ref(x_60); + x_70 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_69 = x_68; + x_71 = x_70; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } } @@ -16919,7 +16967,7 @@ return x_42; } else { -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; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +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; uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; x_43 = lean_ctor_get(x_12, 0); x_44 = lean_ctor_get(x_12, 1); x_45 = lean_ctor_get(x_12, 2); @@ -16931,7 +16979,10 @@ x_50 = lean_ctor_get(x_12, 7); x_51 = lean_ctor_get(x_12, 8); x_52 = lean_ctor_get(x_12, 9); x_53 = lean_ctor_get(x_12, 10); -x_54 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_54 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_55 = lean_ctor_get(x_12, 11); +x_56 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_55); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); @@ -16944,76 +16995,78 @@ lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_dec(x_12); -x_55 = l_Lean_replaceRef(x_23, x_48); +x_57 = l_Lean_replaceRef(x_23, x_48); lean_dec(x_48); lean_dec(x_23); -x_56 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_44); -lean_ctor_set(x_56, 2, x_45); -lean_ctor_set(x_56, 3, x_46); -lean_ctor_set(x_56, 4, x_47); -lean_ctor_set(x_56, 5, x_55); -lean_ctor_set(x_56, 6, x_49); -lean_ctor_set(x_56, 7, x_50); -lean_ctor_set(x_56, 8, x_51); -lean_ctor_set(x_56, 9, x_52); -lean_ctor_set(x_56, 10, x_53); -lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_54); -x_57 = lean_apply_7(x_2, x_8, x_9, x_10, x_11, x_56, x_13, x_14); -if (lean_obj_tag(x_57) == 0) +x_58 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_58, 0, x_43); +lean_ctor_set(x_58, 1, x_44); +lean_ctor_set(x_58, 2, x_45); +lean_ctor_set(x_58, 3, x_46); +lean_ctor_set(x_58, 4, x_47); +lean_ctor_set(x_58, 5, x_57); +lean_ctor_set(x_58, 6, x_49); +lean_ctor_set(x_58, 7, x_50); +lean_ctor_set(x_58, 8, x_51); +lean_ctor_set(x_58, 9, x_52); +lean_ctor_set(x_58, 10, x_53); +lean_ctor_set(x_58, 11, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*12, x_54); +lean_ctor_set_uint8(x_58, sizeof(void*)*12 + 1, x_56); +x_59 = lean_apply_7(x_2, x_8, x_9, x_10, x_11, x_58, x_13, x_14); +if (lean_obj_tag(x_59) == 0) { -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; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; +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; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; } else { - lean_dec_ref(x_57); - x_60 = lean_box(0); + lean_dec_ref(x_59); + x_62 = lean_box(0); } -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_58); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -if (lean_is_scalar(x_60)) { - x_64 = lean_alloc_ctor(0, 2, 0); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_60); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +if (lean_is_scalar(x_62)) { + x_66 = lean_alloc_ctor(0, 2, 0); } else { - x_64 = x_60; + x_66 = x_62; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_59); -return x_64; +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_61); +return x_66; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_57, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_67 = x_57; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_59, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_59, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_69 = x_59; } else { - lean_dec_ref(x_57); - x_67 = lean_box(0); + lean_dec_ref(x_59); + x_69 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_67; + x_70 = x_69; } -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } } @@ -33269,7 +33322,7 @@ return x_26; } else { -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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +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; uint8_t x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_27 = lean_ctor_get(x_9, 0); x_28 = lean_ctor_get(x_9, 1); x_29 = lean_ctor_get(x_9, 2); @@ -33281,7 +33334,10 @@ x_34 = lean_ctor_get(x_9, 7); x_35 = lean_ctor_get(x_9, 8); x_36 = lean_ctor_get(x_9, 9); x_37 = lean_ctor_get(x_9, 10); -x_38 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_38 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_39 = lean_ctor_get(x_9, 11); +x_40 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_39); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -33294,29 +33350,31 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_9); -x_39 = l_Lean_replaceRef(x_20, x_32); +x_41 = l_Lean_replaceRef(x_20, x_32); lean_dec(x_32); lean_dec(x_20); -x_40 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_40, 0, x_27); -lean_ctor_set(x_40, 1, x_28); -lean_ctor_set(x_40, 2, x_29); -lean_ctor_set(x_40, 3, x_30); -lean_ctor_set(x_40, 4, x_31); -lean_ctor_set(x_40, 5, x_39); -lean_ctor_set(x_40, 6, x_33); -lean_ctor_set(x_40, 7, x_34); -lean_ctor_set(x_40, 8, x_35); -lean_ctor_set(x_40, 9, x_36); -lean_ctor_set(x_40, 10, x_37); -lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_38); -x_41 = l_Lean_Elab_Term_withLevelNames___rarg(x_17, x_22, x_5, x_6, x_7, x_8, x_40, x_10, x_16); -return x_41; +x_42 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_42, 0, x_27); +lean_ctor_set(x_42, 1, x_28); +lean_ctor_set(x_42, 2, x_29); +lean_ctor_set(x_42, 3, x_30); +lean_ctor_set(x_42, 4, x_31); +lean_ctor_set(x_42, 5, x_41); +lean_ctor_set(x_42, 6, x_33); +lean_ctor_set(x_42, 7, x_34); +lean_ctor_set(x_42, 8, x_35); +lean_ctor_set(x_42, 9, x_36); +lean_ctor_set(x_42, 10, x_37); +lean_ctor_set(x_42, 11, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*12, x_38); +lean_ctor_set_uint8(x_42, sizeof(void*)*12 + 1, x_40); +x_43 = l_Lean_Elab_Term_withLevelNames___rarg(x_17, x_22, x_5, x_6, x_7, x_8, x_42, x_10, x_16); +return x_43; } } else { -uint8_t x_42; +uint8_t x_44; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -33328,23 +33386,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_15); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_15); +if (x_44 == 0) { return x_15; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_15, 0); -x_44 = lean_ctor_get(x_15, 1); -lean_inc(x_44); -lean_inc(x_43); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_15, 0); +x_46 = lean_ctor_get(x_15, 1); +lean_inc(x_46); +lean_inc(x_45); lean_dec(x_15); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +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; } } } @@ -34650,7 +34708,7 @@ x_13 = lean_unsigned_to_nat(0u); x_14 = l_Lean_Syntax_matchesNull(x_12, x_13); if (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_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; lean_object* x_30; lean_object* x_31; 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; uint8_t x_40; +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; uint8_t 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; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -34678,495 +34736,505 @@ x_25 = lean_ctor_get(x_8, 7); lean_inc(x_25); x_26 = lean_ctor_get(x_8, 8); lean_inc(x_26); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_20); -lean_ctor_set(x_27, 2, x_21); -lean_ctor_set(x_27, 3, x_22); -lean_ctor_set(x_27, 4, x_23); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_18); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set(x_27, 8, x_26); -x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_29 = 2; +x_27 = lean_ctor_get(x_8, 9); +lean_inc(x_27); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*10); +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_24); +lean_ctor_set(x_29, 6, x_18); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_28); +x_30 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_31 = 2; lean_inc(x_9); -x_30 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_28, x_29, x_27, x_9, x_17); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Elab_Command_getRef(x_8, x_9, x_31); -x_33 = lean_ctor_get(x_32, 0); +x_32 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_30, x_31, x_29, x_9, x_17); +x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); lean_dec(x_32); -x_35 = 0; -x_36 = l_Lean_SourceInfo_fromRef(x_33, x_35); -x_37 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_34); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_38); -x_40 = !lean_is_exclusive(x_39); -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; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_41 = lean_ctor_get(x_39, 1); -x_42 = lean_ctor_get(x_39, 0); -lean_dec(x_42); -x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_44 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +x_34 = l_Lean_Elab_Command_getRef(x_8, x_9, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_45 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_45, 0, x_36); -lean_ctor_set(x_45, 1, x_43); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_36); -lean_ctor_set_tag(x_39, 2); -lean_ctor_set(x_39, 1, x_46); -lean_ctor_set(x_39, 0, x_36); -x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_36); -x_48 = l_Lean_Syntax_node1(x_36, x_47, x_39); -lean_inc(x_36); -x_49 = l_Lean_Syntax_node1(x_36, x_43, x_48); -lean_inc_n(x_45, 4); -x_50 = l_Lean_Syntax_node6(x_36, x_2, x_45, x_45, x_45, x_49, x_45, x_45); -x_51 = lean_apply_4(x_3, x_50, x_8, x_9, x_41); -return x_51; -} -else -{ -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; -x_52 = lean_ctor_get(x_39, 1); -lean_inc(x_52); +lean_dec(x_34); +x_37 = 0; +x_38 = l_Lean_SourceInfo_fromRef(x_35, x_37); +x_39 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_36); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); lean_dec(x_39); -x_53 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_54 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_36); -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_36); -lean_ctor_set(x_55, 1, x_53); -lean_ctor_set(x_55, 2, x_54); -x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_36); -x_57 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_57, 0, x_36); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_36); -x_59 = l_Lean_Syntax_node1(x_36, x_58, x_57); -lean_inc(x_36); -x_60 = l_Lean_Syntax_node1(x_36, x_53, x_59); -lean_inc_n(x_55, 4); -x_61 = l_Lean_Syntax_node6(x_36, x_2, x_55, x_55, x_55, x_60, x_55, x_55); -x_62 = lean_apply_4(x_3, x_61, x_8, x_9, x_52); -return x_62; +x_41 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +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; +x_43 = lean_ctor_get(x_41, 1); +x_44 = lean_ctor_get(x_41, 0); +lean_dec(x_44); +x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_46 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_38); +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_38); +lean_ctor_set(x_47, 1, x_45); +lean_ctor_set(x_47, 2, x_46); +x_48 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_38); +lean_ctor_set_tag(x_41, 2); +lean_ctor_set(x_41, 1, x_48); +lean_ctor_set(x_41, 0, x_38); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_38); +x_50 = l_Lean_Syntax_node1(x_38, x_49, x_41); +lean_inc(x_38); +x_51 = l_Lean_Syntax_node1(x_38, x_45, x_50); +lean_inc_n(x_47, 4); +x_52 = l_Lean_Syntax_node6(x_38, x_2, x_47, x_47, x_47, x_51, x_47, x_47); +x_53 = lean_apply_4(x_3, x_52, x_8, x_9, x_43); +return x_53; +} +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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_54 = lean_ctor_get(x_41, 1); +lean_inc(x_54); +lean_dec(x_41); +x_55 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_56 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_38); +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_38); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set(x_57, 2, x_56); +x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_38); +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_38); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_38); +x_61 = l_Lean_Syntax_node1(x_38, x_60, x_59); +lean_inc(x_38); +x_62 = l_Lean_Syntax_node1(x_38, x_55, x_61); +lean_inc_n(x_57, 4); +x_63 = l_Lean_Syntax_node6(x_38, x_2, x_57, x_57, x_57, x_62, x_57, x_57); +x_64 = lean_apply_4(x_3, x_63, x_8, x_9, x_54); +return x_64; } } else { -lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_63 = lean_unsigned_to_nat(5u); -x_64 = l_Lean_Syntax_getArg(x_1, x_63); -x_65 = l_Lean_Syntax_matchesNull(x_64, x_13); -if (x_65 == 0) +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_unsigned_to_nat(5u); +x_66 = l_Lean_Syntax_getArg(x_1, x_65); +x_67 = l_Lean_Syntax_matchesNull(x_66, x_13); +if (x_67 == 0) { -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; uint8_t 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; lean_object* x_90; uint8_t x_91; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t 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; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_66 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_replaceRef(x_1, x_67); -lean_dec(x_67); -x_70 = lean_ctor_get(x_8, 0); +x_68 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); -x_71 = lean_ctor_get(x_8, 1); -lean_inc(x_71); -x_72 = lean_ctor_get(x_8, 2); +lean_dec(x_68); +x_71 = l_Lean_replaceRef(x_1, x_69); +lean_dec(x_69); +x_72 = lean_ctor_get(x_8, 0); lean_inc(x_72); -x_73 = lean_ctor_get(x_8, 3); +x_73 = lean_ctor_get(x_8, 1); lean_inc(x_73); -x_74 = lean_ctor_get(x_8, 4); +x_74 = lean_ctor_get(x_8, 2); lean_inc(x_74); -x_75 = lean_ctor_get(x_8, 5); +x_75 = lean_ctor_get(x_8, 3); lean_inc(x_75); -x_76 = lean_ctor_get(x_8, 7); +x_76 = lean_ctor_get(x_8, 4); lean_inc(x_76); -x_77 = lean_ctor_get(x_8, 8); +x_77 = lean_ctor_get(x_8, 5); lean_inc(x_77); -x_78 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_78, 0, x_70); -lean_ctor_set(x_78, 1, x_71); -lean_ctor_set(x_78, 2, x_72); -lean_ctor_set(x_78, 3, x_73); -lean_ctor_set(x_78, 4, x_74); -lean_ctor_set(x_78, 5, x_75); -lean_ctor_set(x_78, 6, x_69); -lean_ctor_set(x_78, 7, x_76); -lean_ctor_set(x_78, 8, x_77); -x_79 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_80 = 2; +x_78 = lean_ctor_get(x_8, 7); +lean_inc(x_78); +x_79 = lean_ctor_get(x_8, 8); +lean_inc(x_79); +x_80 = lean_ctor_get(x_8, 9); +lean_inc(x_80); +x_81 = lean_ctor_get_uint8(x_8, sizeof(void*)*10); +x_82 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_82, 0, x_72); +lean_ctor_set(x_82, 1, x_73); +lean_ctor_set(x_82, 2, x_74); +lean_ctor_set(x_82, 3, x_75); +lean_ctor_set(x_82, 4, x_76); +lean_ctor_set(x_82, 5, x_77); +lean_ctor_set(x_82, 6, x_71); +lean_ctor_set(x_82, 7, x_78); +lean_ctor_set(x_82, 8, x_79); +lean_ctor_set(x_82, 9, x_80); +lean_ctor_set_uint8(x_82, sizeof(void*)*10, x_81); +x_83 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_84 = 2; lean_inc(x_9); -x_81 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_79, x_80, x_78, x_9, x_68); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); -x_83 = l_Lean_Elab_Command_getRef(x_8, x_9, x_82); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = 0; -x_87 = l_Lean_SourceInfo_fromRef(x_84, x_86); -x_88 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_85); -x_89 = lean_ctor_get(x_88, 1); +x_85 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_83, x_84, x_82, x_9, x_70); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = l_Lean_Elab_Command_getRef(x_8, x_9, x_86); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -lean_dec(x_88); -x_90 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_89); -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) +lean_dec(x_87); +x_90 = 0; +x_91 = l_Lean_SourceInfo_fromRef(x_88, x_90); +x_92 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_89); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_94 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_93); +x_95 = !lean_is_exclusive(x_94); +if (x_95 == 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; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_92 = lean_ctor_get(x_90, 1); -x_93 = lean_ctor_get(x_90, 0); -lean_dec(x_93); -x_94 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_95 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_87); -x_96 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_96, 0, x_87); -lean_ctor_set(x_96, 1, x_94); -lean_ctor_set(x_96, 2, x_95); -x_97 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_87); -lean_ctor_set_tag(x_90, 2); -lean_ctor_set(x_90, 1, x_97); -lean_ctor_set(x_90, 0, x_87); -x_98 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_87); -x_99 = l_Lean_Syntax_node1(x_87, x_98, x_90); -lean_inc(x_87); -x_100 = l_Lean_Syntax_node1(x_87, x_94, x_99); -lean_inc_n(x_96, 4); -x_101 = l_Lean_Syntax_node6(x_87, x_2, x_96, x_96, x_96, x_100, x_96, x_96); -x_102 = lean_apply_4(x_3, x_101, x_8, x_9, x_92); -return x_102; +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; +x_96 = lean_ctor_get(x_94, 1); +x_97 = lean_ctor_get(x_94, 0); +lean_dec(x_97); +x_98 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_99 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_91); +x_100 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_100, 0, x_91); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_99); +x_101 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_91); +lean_ctor_set_tag(x_94, 2); +lean_ctor_set(x_94, 1, x_101); +lean_ctor_set(x_94, 0, x_91); +x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_91); +x_103 = l_Lean_Syntax_node1(x_91, x_102, x_94); +lean_inc(x_91); +x_104 = l_Lean_Syntax_node1(x_91, x_98, x_103); +lean_inc_n(x_100, 4); +x_105 = l_Lean_Syntax_node6(x_91, x_2, x_100, x_100, x_100, x_104, x_100, x_100); +x_106 = lean_apply_4(x_3, x_105, x_8, x_9, x_96); +return x_106; } 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; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_103 = lean_ctor_get(x_90, 1); -lean_inc(x_103); -lean_dec(x_90); -x_104 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_105 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_87); -x_106 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_106, 0, x_87); -lean_ctor_set(x_106, 1, x_104); -lean_ctor_set(x_106, 2, x_105); -x_107 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_87); -x_108 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_108, 0, x_87); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_87); -x_110 = l_Lean_Syntax_node1(x_87, x_109, x_108); -lean_inc(x_87); -x_111 = l_Lean_Syntax_node1(x_87, x_104, x_110); -lean_inc_n(x_106, 4); -x_112 = l_Lean_Syntax_node6(x_87, x_2, x_106, x_106, x_106, x_111, x_106, x_106); -x_113 = lean_apply_4(x_3, x_112, x_8, x_9, x_103); -return 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; +x_107 = lean_ctor_get(x_94, 1); +lean_inc(x_107); +lean_dec(x_94); +x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_109 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_91); +x_110 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_110, 0, x_91); +lean_ctor_set(x_110, 1, x_108); +lean_ctor_set(x_110, 2, x_109); +x_111 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_91); +x_112 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_112, 0, x_91); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_91); +x_114 = l_Lean_Syntax_node1(x_91, x_113, x_112); +lean_inc(x_91); +x_115 = l_Lean_Syntax_node1(x_91, x_108, x_114); +lean_inc_n(x_110, 4); +x_116 = l_Lean_Syntax_node6(x_91, x_2, x_110, x_110, x_110, x_115, x_110, x_110); +x_117 = lean_apply_4(x_3, x_116, x_8, x_9, x_107); +return x_117; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_114 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -x_117 = 0; -x_118 = l_Lean_SourceInfo_fromRef(x_115, x_117); -x_119 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_116); -x_120 = lean_ctor_get(x_119, 1); +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; uint8_t x_126; +x_118 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); lean_inc(x_120); -lean_dec(x_119); -x_121 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_120); -x_122 = !lean_is_exclusive(x_121); -if (x_122 == 0) +lean_dec(x_118); +x_121 = 0; +x_122 = l_Lean_SourceInfo_fromRef(x_119, x_121); +x_123 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_120); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); +x_125 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_124); +x_126 = !lean_is_exclusive(x_125); +if (x_126 == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_123 = lean_ctor_get(x_121, 1); -x_124 = lean_ctor_get(x_121, 0); -lean_dec(x_124); -x_125 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_118); -lean_ctor_set_tag(x_121, 2); -lean_ctor_set(x_121, 1, x_125); -lean_ctor_set(x_121, 0, x_118); -x_126 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_118); -x_127 = l_Lean_Syntax_node1(x_118, x_126, x_121); -x_128 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -lean_inc(x_118); -x_129 = l_Lean_Syntax_node1(x_118, x_128, x_127); -x_130 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_118); -x_131 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_131, 0, x_118); -lean_ctor_set(x_131, 1, x_128); -lean_ctor_set(x_131, 2, x_130); +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; +x_127 = lean_ctor_get(x_125, 1); +x_128 = lean_ctor_get(x_125, 0); +lean_dec(x_128); +x_129 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_122); +lean_ctor_set_tag(x_125, 2); +lean_ctor_set(x_125, 1, x_129); +lean_ctor_set(x_125, 0, x_122); +x_130 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_122); +x_131 = l_Lean_Syntax_node1(x_122, x_130, x_125); +x_132 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +lean_inc(x_122); +x_133 = l_Lean_Syntax_node1(x_122, x_132, x_131); +x_134 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_122); +x_135 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_135, 0, x_122); +lean_ctor_set(x_135, 1, x_132); +lean_ctor_set(x_135, 2, x_134); if (lean_obj_tag(x_6) == 0) { -x_132 = x_130; -goto block_159; +x_136 = x_134; +goto block_163; } else { -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_6, 0); -lean_inc(x_160); +lean_object* x_164; lean_object* x_165; +x_164 = lean_ctor_get(x_6, 0); +lean_inc(x_164); lean_dec(x_6); -x_161 = l_Array_mkArray1___rarg(x_160); -x_132 = x_161; -goto block_159; +x_165 = l_Array_mkArray1___rarg(x_164); +x_136 = x_165; +goto block_163; } -block_159: -{ -lean_object* x_133; lean_object* x_134; -x_133 = l_Array_append___rarg(x_130, x_132); -lean_inc(x_118); -x_134 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_134, 0, x_118); -lean_ctor_set(x_134, 1, x_128); -lean_ctor_set(x_134, 2, x_133); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_135; lean_object* x_136; -x_135 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; -lean_inc(x_118); -x_136 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_136, 0, x_118); -lean_ctor_set(x_136, 1, x_128); -lean_ctor_set(x_136, 2, x_135); -if (lean_obj_tag(x_5) == 0) +block_163: { lean_object* x_137; lean_object* x_138; -lean_inc(x_131); -lean_inc(x_136); -x_137 = l_Lean_Syntax_node6(x_118, x_2, x_134, x_136, x_136, x_129, x_131, x_131); -x_138 = lean_apply_4(x_3, x_137, x_8, x_9, x_123); -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; -x_139 = lean_ctor_get(x_5, 0); -lean_inc(x_139); -lean_dec(x_5); -x_140 = l_Array_mkArray1___rarg(x_139); -x_141 = l_Array_append___rarg(x_130, x_140); -lean_inc(x_118); -x_142 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_142, 0, x_118); -lean_ctor_set(x_142, 1, x_128); -lean_ctor_set(x_142, 2, x_141); -lean_inc(x_131); -x_143 = l_Lean_Syntax_node6(x_118, x_2, x_134, x_136, x_142, x_129, x_131, x_131); -x_144 = lean_apply_4(x_3, x_143, x_8, x_9, x_123); -return x_144; -} -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_145 = lean_ctor_get(x_4, 0); -lean_inc(x_145); -lean_dec(x_4); -x_146 = l_Array_mkArray1___rarg(x_145); -x_147 = l_Array_append___rarg(x_130, x_146); -lean_inc(x_118); -x_148 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_148, 0, x_118); -lean_ctor_set(x_148, 1, x_128); -lean_ctor_set(x_148, 2, x_147); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_149 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; -lean_inc(x_118); -x_150 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_150, 0, x_118); -lean_ctor_set(x_150, 1, x_128); -lean_ctor_set(x_150, 2, x_149); -lean_inc(x_131); -x_151 = l_Lean_Syntax_node6(x_118, x_2, x_134, x_148, x_150, x_129, x_131, x_131); -x_152 = lean_apply_4(x_3, x_151, x_8, x_9, x_123); -return x_152; -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_153 = lean_ctor_get(x_5, 0); -lean_inc(x_153); -lean_dec(x_5); -x_154 = l_Array_mkArray1___rarg(x_153); -x_155 = l_Array_append___rarg(x_130, x_154); -lean_inc(x_118); -x_156 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_156, 0, x_118); -lean_ctor_set(x_156, 1, x_128); -lean_ctor_set(x_156, 2, x_155); -lean_inc(x_131); -x_157 = l_Lean_Syntax_node6(x_118, x_2, x_134, x_148, x_156, x_129, x_131, x_131); -x_158 = lean_apply_4(x_3, x_157, x_8, x_9, x_123); -return x_158; -} -} -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_162 = lean_ctor_get(x_121, 1); -lean_inc(x_162); -lean_dec(x_121); -x_163 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_118); -x_164 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_164, 0, x_118); -lean_ctor_set(x_164, 1, x_163); -x_165 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_118); -x_166 = l_Lean_Syntax_node1(x_118, x_165, x_164); -x_167 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -lean_inc(x_118); -x_168 = l_Lean_Syntax_node1(x_118, x_167, x_166); -x_169 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_118); -x_170 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_170, 0, x_118); -lean_ctor_set(x_170, 1, x_167); -lean_ctor_set(x_170, 2, x_169); -if (lean_obj_tag(x_6) == 0) -{ -x_171 = x_169; -goto block_198; -} -else -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_6, 0); -lean_inc(x_199); -lean_dec(x_6); -x_200 = l_Array_mkArray1___rarg(x_199); -x_171 = x_200; -goto block_198; -} -block_198: -{ -lean_object* x_172; lean_object* x_173; -x_172 = l_Array_append___rarg(x_169, x_171); -lean_inc(x_118); -x_173 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_173, 0, x_118); -lean_ctor_set(x_173, 1, x_167); -lean_ctor_set(x_173, 2, x_172); +x_137 = l_Array_append___rarg(x_134, x_136); +lean_inc(x_122); +x_138 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_138, 0, x_122); +lean_ctor_set(x_138, 1, x_132); +lean_ctor_set(x_138, 2, x_137); if (lean_obj_tag(x_4) == 0) { -lean_object* x_174; lean_object* x_175; -x_174 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; -lean_inc(x_118); -x_175 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_175, 0, x_118); -lean_ctor_set(x_175, 1, x_167); -lean_ctor_set(x_175, 2, x_174); +lean_object* x_139; lean_object* x_140; +x_139 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; +lean_inc(x_122); +x_140 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_140, 0, x_122); +lean_ctor_set(x_140, 1, x_132); +lean_ctor_set(x_140, 2, x_139); if (lean_obj_tag(x_5) == 0) { +lean_object* x_141; lean_object* x_142; +lean_inc(x_135); +lean_inc(x_140); +x_141 = l_Lean_Syntax_node6(x_122, x_2, x_138, x_140, x_140, x_133, x_135, x_135); +x_142 = lean_apply_4(x_3, x_141, x_8, x_9, x_127); +return x_142; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_143 = lean_ctor_get(x_5, 0); +lean_inc(x_143); +lean_dec(x_5); +x_144 = l_Array_mkArray1___rarg(x_143); +x_145 = l_Array_append___rarg(x_134, x_144); +lean_inc(x_122); +x_146 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_146, 0, x_122); +lean_ctor_set(x_146, 1, x_132); +lean_ctor_set(x_146, 2, x_145); +lean_inc(x_135); +x_147 = l_Lean_Syntax_node6(x_122, x_2, x_138, x_140, x_146, x_133, x_135, x_135); +x_148 = lean_apply_4(x_3, x_147, x_8, x_9, x_127); +return x_148; +} +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_149 = lean_ctor_get(x_4, 0); +lean_inc(x_149); +lean_dec(x_4); +x_150 = l_Array_mkArray1___rarg(x_149); +x_151 = l_Array_append___rarg(x_134, x_150); +lean_inc(x_122); +x_152 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_152, 0, x_122); +lean_ctor_set(x_152, 1, x_132); +lean_ctor_set(x_152, 2, x_151); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_153 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; +lean_inc(x_122); +x_154 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_154, 0, x_122); +lean_ctor_set(x_154, 1, x_132); +lean_ctor_set(x_154, 2, x_153); +lean_inc(x_135); +x_155 = l_Lean_Syntax_node6(x_122, x_2, x_138, x_152, x_154, x_133, x_135, x_135); +x_156 = lean_apply_4(x_3, x_155, x_8, x_9, x_127); +return x_156; +} +else +{ +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_157 = lean_ctor_get(x_5, 0); +lean_inc(x_157); +lean_dec(x_5); +x_158 = l_Array_mkArray1___rarg(x_157); +x_159 = l_Array_append___rarg(x_134, x_158); +lean_inc(x_122); +x_160 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_160, 0, x_122); +lean_ctor_set(x_160, 1, x_132); +lean_ctor_set(x_160, 2, x_159); +lean_inc(x_135); +x_161 = l_Lean_Syntax_node6(x_122, x_2, x_138, x_152, x_160, x_133, x_135, x_135); +x_162 = lean_apply_4(x_3, x_161, x_8, x_9, x_127); +return x_162; +} +} +} +} +else +{ +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; +x_166 = lean_ctor_get(x_125, 1); +lean_inc(x_166); +lean_dec(x_125); +x_167 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_122); +x_168 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_168, 0, x_122); +lean_ctor_set(x_168, 1, x_167); +x_169 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_122); +x_170 = l_Lean_Syntax_node1(x_122, x_169, x_168); +x_171 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +lean_inc(x_122); +x_172 = l_Lean_Syntax_node1(x_122, x_171, x_170); +x_173 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_122); +x_174 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_174, 0, x_122); +lean_ctor_set(x_174, 1, x_171); +lean_ctor_set(x_174, 2, x_173); +if (lean_obj_tag(x_6) == 0) +{ +x_175 = x_173; +goto block_202; +} +else +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_6, 0); +lean_inc(x_203); +lean_dec(x_6); +x_204 = l_Array_mkArray1___rarg(x_203); +x_175 = x_204; +goto block_202; +} +block_202: +{ lean_object* x_176; lean_object* x_177; -lean_inc(x_170); -lean_inc(x_175); -x_176 = l_Lean_Syntax_node6(x_118, x_2, x_173, x_175, x_175, x_168, x_170, x_170); -x_177 = lean_apply_4(x_3, x_176, x_8, x_9, x_162); -return x_177; -} -else +x_176 = l_Array_append___rarg(x_173, x_175); +lean_inc(x_122); +x_177 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_177, 0, x_122); +lean_ctor_set(x_177, 1, x_171); +lean_ctor_set(x_177, 2, x_176); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_178 = lean_ctor_get(x_5, 0); -lean_inc(x_178); -lean_dec(x_5); -x_179 = l_Array_mkArray1___rarg(x_178); -x_180 = l_Array_append___rarg(x_169, x_179); -lean_inc(x_118); -x_181 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_181, 0, x_118); -lean_ctor_set(x_181, 1, x_167); -lean_ctor_set(x_181, 2, x_180); -lean_inc(x_170); -x_182 = l_Lean_Syntax_node6(x_118, x_2, x_173, x_175, x_181, x_168, x_170, x_170); -x_183 = lean_apply_4(x_3, x_182, x_8, x_9, x_162); -return x_183; -} -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_184 = lean_ctor_get(x_4, 0); -lean_inc(x_184); -lean_dec(x_4); -x_185 = l_Array_mkArray1___rarg(x_184); -x_186 = l_Array_append___rarg(x_169, x_185); -lean_inc(x_118); -x_187 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_187, 0, x_118); -lean_ctor_set(x_187, 1, x_167); -lean_ctor_set(x_187, 2, x_186); +lean_object* x_178; lean_object* x_179; +x_178 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; +lean_inc(x_122); +x_179 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_179, 0, x_122); +lean_ctor_set(x_179, 1, x_171); +lean_ctor_set(x_179, 2, x_178); if (lean_obj_tag(x_5) == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_188 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; -lean_inc(x_118); -x_189 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_189, 0, x_118); -lean_ctor_set(x_189, 1, x_167); -lean_ctor_set(x_189, 2, x_188); -lean_inc(x_170); -x_190 = l_Lean_Syntax_node6(x_118, x_2, x_173, x_187, x_189, x_168, x_170, x_170); -x_191 = lean_apply_4(x_3, x_190, x_8, x_9, x_162); -return x_191; +lean_object* x_180; lean_object* x_181; +lean_inc(x_174); +lean_inc(x_179); +x_180 = l_Lean_Syntax_node6(x_122, x_2, x_177, x_179, x_179, x_172, x_174, x_174); +x_181 = lean_apply_4(x_3, x_180, x_8, x_9, x_166); +return x_181; } else { -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_192 = lean_ctor_get(x_5, 0); -lean_inc(x_192); +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_182 = lean_ctor_get(x_5, 0); +lean_inc(x_182); lean_dec(x_5); -x_193 = l_Array_mkArray1___rarg(x_192); -x_194 = l_Array_append___rarg(x_169, x_193); -lean_inc(x_118); -x_195 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_195, 0, x_118); -lean_ctor_set(x_195, 1, x_167); -lean_ctor_set(x_195, 2, x_194); -lean_inc(x_170); -x_196 = l_Lean_Syntax_node6(x_118, x_2, x_173, x_187, x_195, x_168, x_170, x_170); -x_197 = lean_apply_4(x_3, x_196, x_8, x_9, x_162); -return x_197; +x_183 = l_Array_mkArray1___rarg(x_182); +x_184 = l_Array_append___rarg(x_173, x_183); +lean_inc(x_122); +x_185 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_185, 0, x_122); +lean_ctor_set(x_185, 1, x_171); +lean_ctor_set(x_185, 2, x_184); +lean_inc(x_174); +x_186 = l_Lean_Syntax_node6(x_122, x_2, x_177, x_179, x_185, x_172, x_174, x_174); +x_187 = lean_apply_4(x_3, x_186, x_8, x_9, x_166); +return x_187; +} +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_188 = lean_ctor_get(x_4, 0); +lean_inc(x_188); +lean_dec(x_4); +x_189 = l_Array_mkArray1___rarg(x_188); +x_190 = l_Array_append___rarg(x_173, x_189); +lean_inc(x_122); +x_191 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_191, 0, x_122); +lean_ctor_set(x_191, 1, x_171); +lean_ctor_set(x_191, 2, x_190); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_192 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__6; +lean_inc(x_122); +x_193 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_193, 0, x_122); +lean_ctor_set(x_193, 1, x_171); +lean_ctor_set(x_193, 2, x_192); +lean_inc(x_174); +x_194 = l_Lean_Syntax_node6(x_122, x_2, x_177, x_191, x_193, x_172, x_174, x_174); +x_195 = lean_apply_4(x_3, x_194, x_8, x_9, x_166); +return x_195; +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_196 = lean_ctor_get(x_5, 0); +lean_inc(x_196); +lean_dec(x_5); +x_197 = l_Array_mkArray1___rarg(x_196); +x_198 = l_Array_append___rarg(x_173, x_197); +lean_inc(x_122); +x_199 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_199, 0, x_122); +lean_ctor_set(x_199, 1, x_171); +lean_ctor_set(x_199, 2, x_198); +lean_inc(x_174); +x_200 = l_Lean_Syntax_node6(x_122, x_2, x_177, x_191, x_199, x_172, x_174, x_174); +x_201 = lean_apply_4(x_3, x_200, x_8, x_9, x_166); +return x_201; } } } @@ -35191,7 +35259,7 @@ lean_inc(x_12); x_15 = l_Lean_Syntax_matchesNull(x_12, 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; 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; uint8_t 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; lean_object* x_39; lean_object* x_40; uint8_t x_41; +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; 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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); @@ -35220,236 +35288,246 @@ x_26 = lean_ctor_get(x_8, 7); lean_inc(x_26); x_27 = lean_ctor_get(x_8, 8); lean_inc(x_27); -x_28 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_21); -lean_ctor_set(x_28, 2, x_22); -lean_ctor_set(x_28, 3, x_23); -lean_ctor_set(x_28, 4, x_24); -lean_ctor_set(x_28, 5, x_25); -lean_ctor_set(x_28, 6, x_19); -lean_ctor_set(x_28, 7, x_26); -lean_ctor_set(x_28, 8, x_27); -x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_30 = 2; +x_28 = lean_ctor_get(x_8, 9); +lean_inc(x_28); +x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*10); +x_30 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_30, 1, x_21); +lean_ctor_set(x_30, 2, x_22); +lean_ctor_set(x_30, 3, x_23); +lean_ctor_set(x_30, 4, x_24); +lean_ctor_set(x_30, 5, x_25); +lean_ctor_set(x_30, 6, x_19); +lean_ctor_set(x_30, 7, x_26); +lean_ctor_set(x_30, 8, x_27); +lean_ctor_set(x_30, 9, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*10, x_29); +x_31 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_32 = 2; lean_inc(x_9); -x_31 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_29, x_30, x_28, x_9, x_18); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = l_Lean_Elab_Command_getRef(x_8, x_9, x_32); -x_34 = lean_ctor_get(x_33, 0); +x_33 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_31, x_32, x_30, x_9, x_18); +x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); lean_dec(x_33); -x_36 = 0; -x_37 = l_Lean_SourceInfo_fromRef(x_34, x_36); -x_38 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_35); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_39); -x_41 = !lean_is_exclusive(x_40); -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_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_42 = lean_ctor_get(x_40, 1); -x_43 = lean_ctor_get(x_40, 0); -lean_dec(x_43); -x_44 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_45 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +x_35 = l_Lean_Elab_Command_getRef(x_8, x_9, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_46 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_46, 0, x_37); -lean_ctor_set(x_46, 1, x_44); -lean_ctor_set(x_46, 2, x_45); -x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_37); -lean_ctor_set_tag(x_40, 2); -lean_ctor_set(x_40, 1, x_47); -lean_ctor_set(x_40, 0, x_37); -x_48 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_37); -x_49 = l_Lean_Syntax_node1(x_37, x_48, x_40); -lean_inc(x_37); -x_50 = l_Lean_Syntax_node1(x_37, x_44, x_49); -lean_inc_n(x_46, 4); -x_51 = l_Lean_Syntax_node6(x_37, x_2, x_46, x_46, x_46, x_50, x_46, x_46); -x_52 = lean_apply_4(x_3, x_51, x_8, x_9, x_42); -return x_52; -} -else -{ -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; -x_53 = lean_ctor_get(x_40, 1); -lean_inc(x_53); +lean_dec(x_35); +x_38 = 0; +x_39 = l_Lean_SourceInfo_fromRef(x_36, x_38); +x_40 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_37); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); lean_dec(x_40); -x_54 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_55 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_37); -x_56 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_56, 0, x_37); -lean_ctor_set(x_56, 1, x_54); -lean_ctor_set(x_56, 2, x_55); -x_57 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_37); -x_58 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_58, 0, x_37); -lean_ctor_set(x_58, 1, x_57); -x_59 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_37); -x_60 = l_Lean_Syntax_node1(x_37, x_59, x_58); -lean_inc(x_37); -x_61 = l_Lean_Syntax_node1(x_37, x_54, x_60); -lean_inc_n(x_56, 4); -x_62 = l_Lean_Syntax_node6(x_37, x_2, x_56, x_56, x_56, x_61, x_56, x_56); -x_63 = lean_apply_4(x_3, x_62, x_8, x_9, x_53); -return x_63; +x_42 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_41); +x_43 = !lean_is_exclusive(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; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_44 = lean_ctor_get(x_42, 1); +x_45 = lean_ctor_get(x_42, 0); +lean_dec(x_45); +x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_47 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_39); +x_48 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_46); +lean_ctor_set(x_48, 2, x_47); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_39); +lean_ctor_set_tag(x_42, 2); +lean_ctor_set(x_42, 1, x_49); +lean_ctor_set(x_42, 0, x_39); +x_50 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_39); +x_51 = l_Lean_Syntax_node1(x_39, x_50, x_42); +lean_inc(x_39); +x_52 = l_Lean_Syntax_node1(x_39, x_46, x_51); +lean_inc_n(x_48, 4); +x_53 = l_Lean_Syntax_node6(x_39, x_2, x_48, x_48, x_48, x_52, x_48, x_48); +x_54 = lean_apply_4(x_3, x_53, x_8, x_9, x_44); +return x_54; +} +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; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_55 = lean_ctor_get(x_42, 1); +lean_inc(x_55); +lean_dec(x_42); +x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_57 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_39); +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_39); +lean_ctor_set(x_58, 1, x_56); +lean_ctor_set(x_58, 2, x_57); +x_59 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_39); +x_60 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_60, 0, x_39); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_39); +x_62 = l_Lean_Syntax_node1(x_39, x_61, x_60); +lean_inc(x_39); +x_63 = l_Lean_Syntax_node1(x_39, x_56, x_62); +lean_inc_n(x_58, 4); +x_64 = l_Lean_Syntax_node6(x_39, x_2, x_58, x_58, x_58, x_63, x_58, x_58); +x_65 = lean_apply_4(x_3, x_64, x_8, x_9, x_55); +return x_65; } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_64 = lean_unsigned_to_nat(0u); -x_65 = l_Lean_Syntax_getArg(x_12, x_64); +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_unsigned_to_nat(0u); +x_67 = l_Lean_Syntax_getArg(x_12, x_66); lean_dec(x_12); -x_66 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -x_67 = l_Lean_Syntax_isOfKind(x_65, x_66); -if (x_67 == 0) +x_68 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +x_69 = l_Lean_Syntax_isOfKind(x_67, x_68); +if (x_69 == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t 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; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t 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; 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; uint8_t x_97; lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); -x_68 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_replaceRef(x_1, x_69); -lean_dec(x_69); -x_72 = lean_ctor_get(x_8, 0); +x_70 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_8, 1); -lean_inc(x_73); -x_74 = lean_ctor_get(x_8, 2); +lean_dec(x_70); +x_73 = l_Lean_replaceRef(x_1, x_71); +lean_dec(x_71); +x_74 = lean_ctor_get(x_8, 0); lean_inc(x_74); -x_75 = lean_ctor_get(x_8, 3); +x_75 = lean_ctor_get(x_8, 1); lean_inc(x_75); -x_76 = lean_ctor_get(x_8, 4); +x_76 = lean_ctor_get(x_8, 2); lean_inc(x_76); -x_77 = lean_ctor_get(x_8, 5); +x_77 = lean_ctor_get(x_8, 3); lean_inc(x_77); -x_78 = lean_ctor_get(x_8, 7); +x_78 = lean_ctor_get(x_8, 4); lean_inc(x_78); -x_79 = lean_ctor_get(x_8, 8); +x_79 = lean_ctor_get(x_8, 5); lean_inc(x_79); -x_80 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_80, 0, x_72); -lean_ctor_set(x_80, 1, x_73); -lean_ctor_set(x_80, 2, x_74); -lean_ctor_set(x_80, 3, x_75); -lean_ctor_set(x_80, 4, x_76); -lean_ctor_set(x_80, 5, x_77); -lean_ctor_set(x_80, 6, x_71); -lean_ctor_set(x_80, 7, x_78); -lean_ctor_set(x_80, 8, x_79); -x_81 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_82 = 2; +x_80 = lean_ctor_get(x_8, 7); +lean_inc(x_80); +x_81 = lean_ctor_get(x_8, 8); +lean_inc(x_81); +x_82 = lean_ctor_get(x_8, 9); +lean_inc(x_82); +x_83 = lean_ctor_get_uint8(x_8, sizeof(void*)*10); +x_84 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_84, 0, x_74); +lean_ctor_set(x_84, 1, x_75); +lean_ctor_set(x_84, 2, x_76); +lean_ctor_set(x_84, 3, x_77); +lean_ctor_set(x_84, 4, x_78); +lean_ctor_set(x_84, 5, x_79); +lean_ctor_set(x_84, 6, x_73); +lean_ctor_set(x_84, 7, x_80); +lean_ctor_set(x_84, 8, x_81); +lean_ctor_set(x_84, 9, x_82); +lean_ctor_set_uint8(x_84, sizeof(void*)*10, x_83); +x_85 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_86 = 2; lean_inc(x_9); -x_83 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_81, x_82, x_80, x_9, x_70); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_85 = l_Lean_Elab_Command_getRef(x_8, x_9, x_84); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = 0; -x_89 = l_Lean_SourceInfo_fromRef(x_86, x_88); -x_90 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_87); -x_91 = lean_ctor_get(x_90, 1); +x_87 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_85, x_86, x_84, x_9, x_72); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = l_Lean_Elab_Command_getRef(x_8, x_9, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -lean_dec(x_90); -x_92 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_91); -x_93 = !lean_is_exclusive(x_92); -if (x_93 == 0) +lean_dec(x_89); +x_92 = 0; +x_93 = l_Lean_SourceInfo_fromRef(x_90, x_92); +x_94 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_91); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +lean_dec(x_94); +x_96 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_95); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 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; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_94 = lean_ctor_get(x_92, 1); -x_95 = lean_ctor_get(x_92, 0); -lean_dec(x_95); -x_96 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_97 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_89); -x_98 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_98, 0, x_89); -lean_ctor_set(x_98, 1, x_96); -lean_ctor_set(x_98, 2, x_97); -x_99 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_89); -lean_ctor_set_tag(x_92, 2); -lean_ctor_set(x_92, 1, x_99); -lean_ctor_set(x_92, 0, x_89); -lean_inc(x_89); -x_100 = l_Lean_Syntax_node1(x_89, x_66, x_92); -lean_inc(x_89); -x_101 = l_Lean_Syntax_node1(x_89, x_96, x_100); -lean_inc_n(x_98, 4); -x_102 = l_Lean_Syntax_node6(x_89, x_2, x_98, x_98, x_98, x_101, x_98, x_98); -x_103 = lean_apply_4(x_3, x_102, x_8, x_9, x_94); -return x_103; +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_98 = lean_ctor_get(x_96, 1); +x_99 = lean_ctor_get(x_96, 0); +lean_dec(x_99); +x_100 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_101 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_93); +x_102 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_102, 0, x_93); +lean_ctor_set(x_102, 1, x_100); +lean_ctor_set(x_102, 2, x_101); +x_103 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_93); +lean_ctor_set_tag(x_96, 2); +lean_ctor_set(x_96, 1, x_103); +lean_ctor_set(x_96, 0, x_93); +lean_inc(x_93); +x_104 = l_Lean_Syntax_node1(x_93, x_68, x_96); +lean_inc(x_93); +x_105 = l_Lean_Syntax_node1(x_93, x_100, x_104); +lean_inc_n(x_102, 4); +x_106 = l_Lean_Syntax_node6(x_93, x_2, x_102, x_102, x_102, x_105, x_102, x_102); +x_107 = lean_apply_4(x_3, x_106, x_8, x_9, x_98); +return x_107; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_104 = lean_ctor_get(x_92, 1); -lean_inc(x_104); -lean_dec(x_92); -x_105 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_106 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_89); -x_107 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_107, 0, x_89); -lean_ctor_set(x_107, 1, x_105); -lean_ctor_set(x_107, 2, x_106); -x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_89); -x_109 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_109, 0, x_89); -lean_ctor_set(x_109, 1, x_108); -lean_inc(x_89); -x_110 = l_Lean_Syntax_node1(x_89, x_66, x_109); -lean_inc(x_89); -x_111 = l_Lean_Syntax_node1(x_89, x_105, x_110); -lean_inc_n(x_107, 4); -x_112 = l_Lean_Syntax_node6(x_89, x_2, x_107, x_107, x_107, x_111, x_107, x_107); -x_113 = lean_apply_4(x_3, x_112, x_8, x_9, x_104); -return x_113; -} -} -else -{ -lean_object* x_114; lean_object* x_115; -x_114 = lean_box(0); -x_115 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_7, x_5, x_114, x_8, x_9, x_10); -return x_115; -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; -lean_dec(x_12); -x_116 = lean_box(0); -x_117 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_7, x_5, x_116, x_8, x_9, x_10); +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; +x_108 = lean_ctor_get(x_96, 1); +lean_inc(x_108); +lean_dec(x_96); +x_109 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_110 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_93); +x_111 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_111, 0, x_93); +lean_ctor_set(x_111, 1, x_109); +lean_ctor_set(x_111, 2, x_110); +x_112 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_93); +x_113 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_113, 0, x_93); +lean_ctor_set(x_113, 1, x_112); +lean_inc(x_93); +x_114 = l_Lean_Syntax_node1(x_93, x_68, x_113); +lean_inc(x_93); +x_115 = l_Lean_Syntax_node1(x_93, x_109, x_114); +lean_inc_n(x_111, 4); +x_116 = l_Lean_Syntax_node6(x_93, x_2, x_111, x_111, x_111, x_115, x_111, x_111); +x_117 = lean_apply_4(x_3, x_116, x_8, x_9, x_108); return x_117; } } +else +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_box(0); +x_119 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_7, x_5, x_118, x_8, x_9, x_10); +return x_119; +} +} +} +else +{ +lean_object* x_120; lean_object* x_121; +lean_dec(x_12); +x_120 = lean_box(0); +x_121 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_7, x_5, x_120, x_8, x_9, x_10); +return x_121; +} +} } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___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) { _start: @@ -35467,7 +35545,7 @@ lean_inc(x_11); x_14 = l_Lean_Syntax_matchesNull(x_11, x_13); if (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_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; lean_object* x_30; lean_object* x_31; 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; uint8_t x_40; +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; uint8_t 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; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_dec(x_11); lean_dec(x_6); lean_dec(x_4); @@ -35495,115 +35573,120 @@ x_25 = lean_ctor_get(x_7, 7); lean_inc(x_25); x_26 = lean_ctor_get(x_7, 8); lean_inc(x_26); -x_27 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_20); -lean_ctor_set(x_27, 2, x_21); -lean_ctor_set(x_27, 3, x_22); -lean_ctor_set(x_27, 4, x_23); -lean_ctor_set(x_27, 5, x_24); -lean_ctor_set(x_27, 6, x_18); -lean_ctor_set(x_27, 7, x_25); -lean_ctor_set(x_27, 8, x_26); -x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_29 = 2; +x_27 = lean_ctor_get(x_7, 9); +lean_inc(x_27); +x_28 = lean_ctor_get_uint8(x_7, sizeof(void*)*10); +x_29 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_24); +lean_ctor_set(x_29, 6, x_18); +lean_ctor_set(x_29, 7, x_25); +lean_ctor_set(x_29, 8, x_26); +lean_ctor_set(x_29, 9, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*10, x_28); +x_30 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_31 = 2; lean_inc(x_8); -x_30 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_28, x_29, x_27, x_8, x_17); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Elab_Command_getRef(x_7, x_8, x_31); -x_33 = lean_ctor_get(x_32, 0); +x_32 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_30, x_31, x_29, x_8, x_17); +x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); lean_dec(x_32); -x_35 = 0; -x_36 = l_Lean_SourceInfo_fromRef(x_33, x_35); -x_37 = l_Lean_Elab_Command_getCurrMacroScope(x_7, x_8, x_34); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_Elab_Command_getMainModule___rarg(x_8, x_38); -x_40 = !lean_is_exclusive(x_39); -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; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_41 = lean_ctor_get(x_39, 1); -x_42 = lean_ctor_get(x_39, 0); -lean_dec(x_42); -x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_44 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +x_34 = l_Lean_Elab_Command_getRef(x_7, x_8, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_45 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_45, 0, x_36); -lean_ctor_set(x_45, 1, x_43); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_36); -lean_ctor_set_tag(x_39, 2); -lean_ctor_set(x_39, 1, x_46); -lean_ctor_set(x_39, 0, x_36); -x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_36); -x_48 = l_Lean_Syntax_node1(x_36, x_47, x_39); -lean_inc(x_36); -x_49 = l_Lean_Syntax_node1(x_36, x_43, x_48); -lean_inc_n(x_45, 4); -x_50 = l_Lean_Syntax_node6(x_36, x_2, x_45, x_45, x_45, x_49, x_45, x_45); -x_51 = lean_apply_4(x_3, x_50, x_7, x_8, x_41); -return x_51; -} -else -{ -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; -x_52 = lean_ctor_get(x_39, 1); -lean_inc(x_52); +lean_dec(x_34); +x_37 = 0; +x_38 = l_Lean_SourceInfo_fromRef(x_35, x_37); +x_39 = l_Lean_Elab_Command_getCurrMacroScope(x_7, x_8, x_36); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); lean_dec(x_39); -x_53 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_54 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_36); -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_36); -lean_ctor_set(x_55, 1, x_53); -lean_ctor_set(x_55, 2, x_54); -x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_36); -x_57 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_57, 0, x_36); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_36); -x_59 = l_Lean_Syntax_node1(x_36, x_58, x_57); -lean_inc(x_36); -x_60 = l_Lean_Syntax_node1(x_36, x_53, x_59); -lean_inc_n(x_55, 4); -x_61 = l_Lean_Syntax_node6(x_36, x_2, x_55, x_55, x_55, x_60, x_55, x_55); -x_62 = lean_apply_4(x_3, x_61, x_7, x_8, x_52); -return x_62; +x_41 = l_Lean_Elab_Command_getMainModule___rarg(x_8, x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +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; +x_43 = lean_ctor_get(x_41, 1); +x_44 = lean_ctor_get(x_41, 0); +lean_dec(x_44); +x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_46 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_38); +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_38); +lean_ctor_set(x_47, 1, x_45); +lean_ctor_set(x_47, 2, x_46); +x_48 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_38); +lean_ctor_set_tag(x_41, 2); +lean_ctor_set(x_41, 1, x_48); +lean_ctor_set(x_41, 0, x_38); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_38); +x_50 = l_Lean_Syntax_node1(x_38, x_49, x_41); +lean_inc(x_38); +x_51 = l_Lean_Syntax_node1(x_38, x_45, x_50); +lean_inc_n(x_47, 4); +x_52 = l_Lean_Syntax_node6(x_38, x_2, x_47, x_47, x_47, x_51, x_47, x_47); +x_53 = lean_apply_4(x_3, x_52, x_7, x_8, x_43); +return x_53; +} +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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_54 = lean_ctor_get(x_41, 1); +lean_inc(x_54); +lean_dec(x_41); +x_55 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_56 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_38); +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_38); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set(x_57, 2, x_56); +x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_38); +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_38); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_38); +x_61 = l_Lean_Syntax_node1(x_38, x_60, x_59); +lean_inc(x_38); +x_62 = l_Lean_Syntax_node1(x_38, x_55, x_61); +lean_inc_n(x_57, 4); +x_63 = l_Lean_Syntax_node6(x_38, x_2, x_57, x_57, x_57, x_62, x_57, x_57); +x_64 = lean_apply_4(x_3, x_63, x_7, x_8, x_54); +return x_64; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_63 = lean_unsigned_to_nat(0u); -x_64 = l_Lean_Syntax_getArg(x_11, x_63); -lean_dec(x_11); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_box(0); -x_67 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__3(x_1, x_2, x_3, x_6, x_4, x_66, x_65, x_7, x_8, x_9); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_unsigned_to_nat(0u); +x_66 = l_Lean_Syntax_getArg(x_11, x_65); lean_dec(x_11); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_66); x_68 = lean_box(0); -x_69 = lean_box(0); -x_70 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__3(x_1, x_2, x_3, x_6, x_4, x_69, x_68, x_7, x_8, x_9); -return x_70; +x_69 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__3(x_1, x_2, x_3, x_6, x_4, x_68, x_67, x_7, x_8, x_9); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_11); +x_70 = lean_box(0); +x_71 = lean_box(0); +x_72 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__3(x_1, x_2, x_3, x_6, x_4, x_71, x_70, x_7, x_8, x_9); +return x_72; } } } @@ -35642,7 +35725,7 @@ lean_inc(x_10); x_12 = l_Lean_Syntax_matchesNull(x_10, x_9); if (x_12 == 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; uint8_t 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; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +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; uint8_t x_26; 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; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_dec(x_10); lean_dec(x_5); x_13 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); @@ -35669,239 +35752,249 @@ x_23 = lean_ctor_get(x_6, 7); lean_inc(x_23); x_24 = lean_ctor_get(x_6, 8); lean_inc(x_24); -x_25 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_18); -lean_ctor_set(x_25, 2, x_19); -lean_ctor_set(x_25, 3, x_20); -lean_ctor_set(x_25, 4, x_21); -lean_ctor_set(x_25, 5, x_22); -lean_ctor_set(x_25, 6, x_16); -lean_ctor_set(x_25, 7, x_23); -lean_ctor_set(x_25, 8, x_24); -x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_27 = 2; +x_25 = lean_ctor_get(x_6, 9); +lean_inc(x_25); +x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_27 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_27, 0, x_17); +lean_ctor_set(x_27, 1, x_18); +lean_ctor_set(x_27, 2, x_19); +lean_ctor_set(x_27, 3, x_20); +lean_ctor_set(x_27, 4, x_21); +lean_ctor_set(x_27, 5, x_22); +lean_ctor_set(x_27, 6, x_16); +lean_ctor_set(x_27, 7, x_23); +lean_ctor_set(x_27, 8, x_24); +lean_ctor_set(x_27, 9, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_26); +x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_29 = 2; lean_inc(x_7); -x_28 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_26, x_27, x_25, x_7, x_15); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l_Lean_Elab_Command_getRef(x_6, x_7, x_29); -x_31 = lean_ctor_get(x_30, 0); +x_30 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_28, x_29, x_27, x_7, x_15); +x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); lean_dec(x_30); -x_33 = 0; -x_34 = l_Lean_SourceInfo_fromRef(x_31, x_33); -x_35 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_32); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_36); -x_38 = !lean_is_exclusive(x_37); -if (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; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_39 = lean_ctor_get(x_37, 1); -x_40 = lean_ctor_get(x_37, 0); -lean_dec(x_40); -x_41 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_42 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +x_32 = l_Lean_Elab_Command_getRef(x_6, x_7, x_31); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_43 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_43, 0, x_34); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_42); -x_44 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_34); -lean_ctor_set_tag(x_37, 2); -lean_ctor_set(x_37, 1, x_44); -lean_ctor_set(x_37, 0, x_34); -x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_34); -x_46 = l_Lean_Syntax_node1(x_34, x_45, x_37); -lean_inc(x_34); -x_47 = l_Lean_Syntax_node1(x_34, x_41, x_46); -lean_inc_n(x_43, 4); -x_48 = l_Lean_Syntax_node6(x_34, x_2, x_43, x_43, x_43, x_47, x_43, x_43); -x_49 = lean_apply_4(x_3, x_48, x_6, x_7, x_39); -return x_49; -} -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; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); +lean_dec(x_32); +x_35 = 0; +x_36 = l_Lean_SourceInfo_fromRef(x_33, x_35); +x_37 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_34); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); lean_dec(x_37); -x_51 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_52 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_34); -x_53 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_53, 0, x_34); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set(x_53, 2, x_52); -x_54 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_34); -x_55 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_55, 0, x_34); -lean_ctor_set(x_55, 1, x_54); -x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_34); -x_57 = l_Lean_Syntax_node1(x_34, x_56, x_55); -lean_inc(x_34); -x_58 = l_Lean_Syntax_node1(x_34, x_51, x_57); -lean_inc_n(x_53, 4); -x_59 = l_Lean_Syntax_node6(x_34, x_2, x_53, x_53, x_53, x_58, x_53, x_53); -x_60 = lean_apply_4(x_3, x_59, x_6, x_7, x_50); -return x_60; +x_39 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_38); +x_40 = !lean_is_exclusive(x_39); +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; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_41 = lean_ctor_get(x_39, 1); +x_42 = lean_ctor_get(x_39, 0); +lean_dec(x_42); +x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_44 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_36); +x_45 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_43); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_36); +lean_ctor_set_tag(x_39, 2); +lean_ctor_set(x_39, 1, x_46); +lean_ctor_set(x_39, 0, x_36); +x_47 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_36); +x_48 = l_Lean_Syntax_node1(x_36, x_47, x_39); +lean_inc(x_36); +x_49 = l_Lean_Syntax_node1(x_36, x_43, x_48); +lean_inc_n(x_45, 4); +x_50 = l_Lean_Syntax_node6(x_36, x_2, x_45, x_45, x_45, x_49, x_45, x_45); +x_51 = lean_apply_4(x_3, x_50, x_6, x_7, x_41); +return x_51; +} +else +{ +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; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_54 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_36); +x_55 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_55, 0, x_36); +lean_ctor_set(x_55, 1, x_53); +lean_ctor_set(x_55, 2, x_54); +x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_36); +x_57 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_57, 0, x_36); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_36); +x_59 = l_Lean_Syntax_node1(x_36, x_58, x_57); +lean_inc(x_36); +x_60 = l_Lean_Syntax_node1(x_36, x_53, x_59); +lean_inc_n(x_55, 4); +x_61 = l_Lean_Syntax_node6(x_36, x_2, x_55, x_55, x_55, x_60, x_55, x_55); +x_62 = lean_apply_4(x_3, x_61, x_6, x_7, x_52); +return x_62; } } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_61 = lean_unsigned_to_nat(0u); -x_62 = l_Lean_Syntax_getArg(x_10, x_61); +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_unsigned_to_nat(0u); +x_64 = l_Lean_Syntax_getArg(x_10, x_63); lean_dec(x_10); -x_63 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5___closed__2; -lean_inc(x_62); -x_64 = l_Lean_Syntax_isOfKind(x_62, x_63); -if (x_64 == 0) +x_65 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5___closed__2; +lean_inc(x_64); +x_66 = l_Lean_Syntax_isOfKind(x_64, x_65); +if (x_66 == 0) { -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; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -lean_dec(x_62); +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; uint8_t x_80; lean_object* x_81; lean_object* x_82; uint8_t 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; lean_object* x_92; lean_object* x_93; uint8_t x_94; +lean_dec(x_64); lean_dec(x_5); -x_65 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = l_Lean_replaceRef(x_1, x_66); -lean_dec(x_66); -x_69 = lean_ctor_get(x_6, 0); +x_67 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_6, 1); -lean_inc(x_70); -x_71 = lean_ctor_get(x_6, 2); +lean_dec(x_67); +x_70 = l_Lean_replaceRef(x_1, x_68); +lean_dec(x_68); +x_71 = lean_ctor_get(x_6, 0); lean_inc(x_71); -x_72 = lean_ctor_get(x_6, 3); +x_72 = lean_ctor_get(x_6, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_6, 4); +x_73 = lean_ctor_get(x_6, 2); lean_inc(x_73); -x_74 = lean_ctor_get(x_6, 5); +x_74 = lean_ctor_get(x_6, 3); lean_inc(x_74); -x_75 = lean_ctor_get(x_6, 7); +x_75 = lean_ctor_get(x_6, 4); lean_inc(x_75); -x_76 = lean_ctor_get(x_6, 8); +x_76 = lean_ctor_get(x_6, 5); lean_inc(x_76); -x_77 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_77, 0, x_69); -lean_ctor_set(x_77, 1, x_70); -lean_ctor_set(x_77, 2, x_71); -lean_ctor_set(x_77, 3, x_72); -lean_ctor_set(x_77, 4, x_73); -lean_ctor_set(x_77, 5, x_74); -lean_ctor_set(x_77, 6, x_68); -lean_ctor_set(x_77, 7, x_75); -lean_ctor_set(x_77, 8, x_76); -x_78 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_79 = 2; +x_77 = lean_ctor_get(x_6, 7); +lean_inc(x_77); +x_78 = lean_ctor_get(x_6, 8); +lean_inc(x_78); +x_79 = lean_ctor_get(x_6, 9); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_81 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_81, 0, x_71); +lean_ctor_set(x_81, 1, x_72); +lean_ctor_set(x_81, 2, x_73); +lean_ctor_set(x_81, 3, x_74); +lean_ctor_set(x_81, 4, x_75); +lean_ctor_set(x_81, 5, x_76); +lean_ctor_set(x_81, 6, x_70); +lean_ctor_set(x_81, 7, x_77); +lean_ctor_set(x_81, 8, x_78); +lean_ctor_set(x_81, 9, x_79); +lean_ctor_set_uint8(x_81, sizeof(void*)*10, x_80); +x_82 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_83 = 2; lean_inc(x_7); -x_80 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_78, x_79, x_77, x_7, x_67); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -x_82 = l_Lean_Elab_Command_getRef(x_6, x_7, x_81); -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 = 0; -x_86 = l_Lean_SourceInfo_fromRef(x_83, x_85); -x_87 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_84); -x_88 = lean_ctor_get(x_87, 1); +x_84 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_82, x_83, x_81, x_7, x_69); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +x_86 = l_Lean_Elab_Command_getRef(x_6, x_7, x_85); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); -lean_dec(x_87); -x_89 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_88); -x_90 = !lean_is_exclusive(x_89); -if (x_90 == 0) +lean_dec(x_86); +x_89 = 0; +x_90 = l_Lean_SourceInfo_fromRef(x_87, x_89); +x_91 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_88); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_92); +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) { -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_91 = lean_ctor_get(x_89, 1); -x_92 = lean_ctor_get(x_89, 0); -lean_dec(x_92); -x_93 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_94 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_86); -x_95 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_95, 0, x_86); -lean_ctor_set(x_95, 1, x_93); -lean_ctor_set(x_95, 2, x_94); -x_96 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_86); -lean_ctor_set_tag(x_89, 2); -lean_ctor_set(x_89, 1, x_96); -lean_ctor_set(x_89, 0, x_86); -x_97 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_86); -x_98 = l_Lean_Syntax_node1(x_86, x_97, x_89); -lean_inc(x_86); -x_99 = l_Lean_Syntax_node1(x_86, x_93, x_98); -lean_inc_n(x_95, 4); -x_100 = l_Lean_Syntax_node6(x_86, x_2, x_95, x_95, x_95, x_99, x_95, x_95); -x_101 = lean_apply_4(x_3, x_100, x_6, x_7, x_91); -return x_101; +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; +x_95 = lean_ctor_get(x_93, 1); +x_96 = lean_ctor_get(x_93, 0); +lean_dec(x_96); +x_97 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_98 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_90); +x_99 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_99, 0, x_90); +lean_ctor_set(x_99, 1, x_97); +lean_ctor_set(x_99, 2, x_98); +x_100 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_90); +lean_ctor_set_tag(x_93, 2); +lean_ctor_set(x_93, 1, x_100); +lean_ctor_set(x_93, 0, x_90); +x_101 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_90); +x_102 = l_Lean_Syntax_node1(x_90, x_101, x_93); +lean_inc(x_90); +x_103 = l_Lean_Syntax_node1(x_90, x_97, x_102); +lean_inc_n(x_99, 4); +x_104 = l_Lean_Syntax_node6(x_90, x_2, x_99, x_99, x_99, x_103, x_99, x_99); +x_105 = lean_apply_4(x_3, x_104, x_6, x_7, x_95); +return x_105; } 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; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_102 = lean_ctor_get(x_89, 1); -lean_inc(x_102); -lean_dec(x_89); -x_103 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_104 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_86); -x_105 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_105, 0, x_86); -lean_ctor_set(x_105, 1, x_103); -lean_ctor_set(x_105, 2, x_104); -x_106 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_86); -x_107 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_107, 0, x_86); -lean_ctor_set(x_107, 1, x_106); -x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_86); -x_109 = l_Lean_Syntax_node1(x_86, x_108, x_107); -lean_inc(x_86); -x_110 = l_Lean_Syntax_node1(x_86, x_103, x_109); -lean_inc_n(x_105, 4); -x_111 = l_Lean_Syntax_node6(x_86, x_2, x_105, x_105, x_105, x_110, x_105, x_105); -x_112 = lean_apply_4(x_3, x_111, x_6, x_7, x_102); -return x_112; +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_106 = lean_ctor_get(x_93, 1); +lean_inc(x_106); +lean_dec(x_93); +x_107 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_108 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_90); +x_109 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_109, 0, x_90); +lean_ctor_set(x_109, 1, x_107); +lean_ctor_set(x_109, 2, x_108); +x_110 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_90); +x_111 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_111, 0, x_90); +lean_ctor_set(x_111, 1, x_110); +x_112 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_90); +x_113 = l_Lean_Syntax_node1(x_90, x_112, x_111); +lean_inc(x_90); +x_114 = l_Lean_Syntax_node1(x_90, x_107, x_113); +lean_inc_n(x_109, 4); +x_115 = l_Lean_Syntax_node6(x_90, x_2, x_109, x_109, x_109, x_114, x_109, x_109); +x_116 = lean_apply_4(x_3, x_115, x_6, x_7, x_106); +return x_116; } } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_62); -x_114 = lean_box(0); -x_115 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__4(x_1, x_2, x_3, x_5, x_114, x_113, x_6, x_7, x_8); -return x_115; +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_117, 0, x_64); +x_118 = lean_box(0); +x_119 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__4(x_1, x_2, x_3, x_5, x_118, x_117, x_6, x_7, x_8); +return x_119; } } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_dec(x_10); -x_116 = lean_box(0); -x_117 = lean_box(0); -x_118 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__4(x_1, x_2, x_3, x_5, x_117, x_116, x_6, x_7, x_8); -return x_118; +x_120 = lean_box(0); +x_121 = lean_box(0); +x_122 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__4(x_1, x_2, x_3, x_5, x_121, x_120, x_6, x_7, x_8); +return x_122; } } } @@ -35992,17 +36085,17 @@ lean_inc(x_20); x_26 = l_Lean_Syntax_isOfKind(x_20, x_25); if (x_26 == 0) { -uint8_t x_211; -x_211 = 0; -x_27 = x_211; -goto block_210; +uint8_t x_217; +x_217 = 0; +x_27 = x_217; +goto block_216; } else { -uint8_t x_212; -x_212 = 1; -x_27 = x_212; -goto block_210; +uint8_t x_218; +x_218 = 1; +x_27 = x_218; +goto block_216; } block_18: { @@ -36015,11 +36108,11 @@ x_5 = x_14; x_8 = x_13; goto _start; } -block_210: +block_216: { if (x_27 == 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; lean_object* x_38; 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; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +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; uint8_t 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; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_dec(x_24); x_28 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); x_29 = lean_ctor_get(x_28, 0); @@ -36046,504 +36139,519 @@ x_38 = lean_ctor_get(x_6, 7); lean_inc(x_38); x_39 = lean_ctor_get(x_6, 8); lean_inc(x_39); -x_40 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_40, 0, x_32); -lean_ctor_set(x_40, 1, x_33); -lean_ctor_set(x_40, 2, x_34); -lean_ctor_set(x_40, 3, x_35); -lean_ctor_set(x_40, 4, x_36); -lean_ctor_set(x_40, 5, x_37); -lean_ctor_set(x_40, 6, x_31); -lean_ctor_set(x_40, 7, x_38); -lean_ctor_set(x_40, 8, x_39); -x_41 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_42 = 2; +x_40 = lean_ctor_get(x_6, 9); +lean_inc(x_40); +x_41 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_42 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_42, 0, x_32); +lean_ctor_set(x_42, 1, x_33); +lean_ctor_set(x_42, 2, x_34); +lean_ctor_set(x_42, 3, x_35); +lean_ctor_set(x_42, 4, x_36); +lean_ctor_set(x_42, 5, x_37); +lean_ctor_set(x_42, 6, x_31); +lean_ctor_set(x_42, 7, x_38); +lean_ctor_set(x_42, 8, x_39); +lean_ctor_set(x_42, 9, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*10, x_41); +x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_44 = 2; lean_inc(x_7); -x_43 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_41, x_42, x_40, x_7, x_30); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Lean_Elab_Command_getRef(x_6, x_7, x_44); -x_46 = lean_ctor_get(x_45, 0); +x_45 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_43, x_44, x_42, x_7, x_30); +x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); lean_dec(x_45); -x_48 = 0; -x_49 = l_Lean_SourceInfo_fromRef(x_46, x_48); -x_50 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_47); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_51); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -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; -x_54 = lean_ctor_get(x_52, 1); -x_55 = lean_ctor_get(x_52, 0); -lean_dec(x_55); -x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_57 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +x_47 = l_Lean_Elab_Command_getRef(x_6, x_7, x_46); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_58 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_58, 0, x_49); -lean_ctor_set(x_58, 1, x_56); -lean_ctor_set(x_58, 2, x_57); -x_59 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_49); -lean_ctor_set_tag(x_52, 2); -lean_ctor_set(x_52, 1, x_59); -lean_ctor_set(x_52, 0, x_49); -x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_49); -x_61 = l_Lean_Syntax_node1(x_49, x_60, x_52); -lean_inc(x_49); -x_62 = l_Lean_Syntax_node1(x_49, x_56, x_61); -lean_inc_n(x_58, 4); -x_63 = l_Lean_Syntax_node6(x_49, x_25, x_58, x_58, x_58, x_62, x_58, x_58); -lean_inc(x_1); -x_64 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_63, x_6, x_7, x_54); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_12 = x_65; -x_13 = x_66; -goto block_18; -} -else -{ -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; -x_67 = lean_ctor_get(x_52, 1); -lean_inc(x_67); +lean_dec(x_47); +x_50 = 0; +x_51 = l_Lean_SourceInfo_fromRef(x_48, x_50); +x_52 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_49); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); lean_dec(x_52); -x_68 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_69 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_49); -x_70 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_70, 0, x_49); -lean_ctor_set(x_70, 1, x_68); -lean_ctor_set(x_70, 2, x_69); -x_71 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_49); -x_72 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_72, 0, x_49); -lean_ctor_set(x_72, 1, x_71); -x_73 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_49); -x_74 = l_Lean_Syntax_node1(x_49, x_73, x_72); -lean_inc(x_49); -x_75 = l_Lean_Syntax_node1(x_49, x_68, x_74); -lean_inc_n(x_70, 4); -x_76 = l_Lean_Syntax_node6(x_49, x_25, x_70, x_70, x_70, x_75, x_70, x_70); +x_54 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_53); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +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; +x_56 = lean_ctor_get(x_54, 1); +x_57 = lean_ctor_get(x_54, 0); +lean_dec(x_57); +x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_59 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_51); +x_60 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_60, 0, x_51); +lean_ctor_set(x_60, 1, x_58); +lean_ctor_set(x_60, 2, x_59); +x_61 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_51); +lean_ctor_set_tag(x_54, 2); +lean_ctor_set(x_54, 1, x_61); +lean_ctor_set(x_54, 0, x_51); +x_62 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_51); +x_63 = l_Lean_Syntax_node1(x_51, x_62, x_54); +lean_inc(x_51); +x_64 = l_Lean_Syntax_node1(x_51, x_58, x_63); +lean_inc_n(x_60, 4); +x_65 = l_Lean_Syntax_node6(x_51, x_25, x_60, x_60, x_60, x_64, x_60, x_60); lean_inc(x_1); -x_77 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_76, x_6, x_7, x_67); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_12 = x_78; -x_13 = x_79; +x_66 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_65, x_6, x_7, x_56); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_12 = x_67; +x_13 = x_68; +goto block_18; +} +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; 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_54, 1); +lean_inc(x_69); +lean_dec(x_54); +x_70 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_71 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_51); +x_72 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_72, 0, x_51); +lean_ctor_set(x_72, 1, x_70); +lean_ctor_set(x_72, 2, x_71); +x_73 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_51); +x_74 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_74, 0, x_51); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_51); +x_76 = l_Lean_Syntax_node1(x_51, x_75, x_74); +lean_inc(x_51); +x_77 = l_Lean_Syntax_node1(x_51, x_70, x_76); +lean_inc_n(x_72, 4); +x_78 = l_Lean_Syntax_node6(x_51, x_25, x_72, x_72, x_72, x_77, x_72, x_72); +lean_inc(x_1); +x_79 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_78, x_6, x_7, x_69); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_12 = x_80; +x_13 = x_81; goto block_18; } } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_unsigned_to_nat(0u); -x_81 = l_Lean_Syntax_getArg(x_20, x_80); -x_82 = l_Lean_Syntax_isNone(x_81); -if (x_82 == 0) -{ -lean_object* x_83; uint8_t x_84; -x_83 = lean_unsigned_to_nat(1u); -lean_inc(x_81); -x_84 = l_Lean_Syntax_matchesNull(x_81, x_83); +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_unsigned_to_nat(0u); +x_83 = l_Lean_Syntax_getArg(x_20, x_82); +x_84 = l_Lean_Syntax_isNone(x_83); if (x_84 == 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; 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; uint8_t 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; uint8_t x_110; -lean_dec(x_81); +lean_object* x_85; uint8_t x_86; +x_85 = lean_unsigned_to_nat(1u); +lean_inc(x_83); +x_86 = l_Lean_Syntax_matchesNull(x_83, x_85); +if (x_86 == 0) +{ +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; uint8_t 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; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +lean_dec(x_83); lean_dec(x_24); -x_85 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = l_Lean_replaceRef(x_20, x_86); -lean_dec(x_86); -lean_dec(x_20); -x_89 = lean_ctor_get(x_6, 0); +x_87 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_6, 1); -lean_inc(x_90); -x_91 = lean_ctor_get(x_6, 2); +lean_dec(x_87); +x_90 = l_Lean_replaceRef(x_20, x_88); +lean_dec(x_88); +lean_dec(x_20); +x_91 = lean_ctor_get(x_6, 0); lean_inc(x_91); -x_92 = lean_ctor_get(x_6, 3); +x_92 = lean_ctor_get(x_6, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_6, 4); +x_93 = lean_ctor_get(x_6, 2); lean_inc(x_93); -x_94 = lean_ctor_get(x_6, 5); +x_94 = lean_ctor_get(x_6, 3); lean_inc(x_94); -x_95 = lean_ctor_get(x_6, 7); +x_95 = lean_ctor_get(x_6, 4); lean_inc(x_95); -x_96 = lean_ctor_get(x_6, 8); +x_96 = lean_ctor_get(x_6, 5); lean_inc(x_96); -x_97 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_97, 0, x_89); -lean_ctor_set(x_97, 1, x_90); -lean_ctor_set(x_97, 2, x_91); -lean_ctor_set(x_97, 3, x_92); -lean_ctor_set(x_97, 4, x_93); -lean_ctor_set(x_97, 5, x_94); -lean_ctor_set(x_97, 6, x_88); -lean_ctor_set(x_97, 7, x_95); -lean_ctor_set(x_97, 8, x_96); -x_98 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_99 = 2; +x_97 = lean_ctor_get(x_6, 7); +lean_inc(x_97); +x_98 = lean_ctor_get(x_6, 8); +lean_inc(x_98); +x_99 = lean_ctor_get(x_6, 9); +lean_inc(x_99); +x_100 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_101 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_101, 0, x_91); +lean_ctor_set(x_101, 1, x_92); +lean_ctor_set(x_101, 2, x_93); +lean_ctor_set(x_101, 3, x_94); +lean_ctor_set(x_101, 4, x_95); +lean_ctor_set(x_101, 5, x_96); +lean_ctor_set(x_101, 6, x_90); +lean_ctor_set(x_101, 7, x_97); +lean_ctor_set(x_101, 8, x_98); +lean_ctor_set(x_101, 9, x_99); +lean_ctor_set_uint8(x_101, sizeof(void*)*10, x_100); +x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_103 = 2; lean_inc(x_7); -x_100 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_98, x_99, x_97, x_7, x_87); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = l_Lean_Elab_Command_getRef(x_6, x_7, x_101); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = 0; -x_106 = l_Lean_SourceInfo_fromRef(x_103, x_105); -x_107 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_104); -x_108 = lean_ctor_get(x_107, 1); +x_104 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_102, x_103, x_101, x_7, x_89); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +lean_dec(x_104); +x_106 = l_Lean_Elab_Command_getRef(x_6, x_7, x_105); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); -lean_dec(x_107); -x_109 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_108); -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 0) +lean_dec(x_106); +x_109 = 0; +x_110 = l_Lean_SourceInfo_fromRef(x_107, x_109); +x_111 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_108); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_112); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 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_109, 1); -x_112 = lean_ctor_get(x_109, 0); -lean_dec(x_112); -x_113 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_114 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_106); -x_115 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_115, 0, x_106); -lean_ctor_set(x_115, 1, x_113); -lean_ctor_set(x_115, 2, x_114); -x_116 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_106); -lean_ctor_set_tag(x_109, 2); -lean_ctor_set(x_109, 1, x_116); -lean_ctor_set(x_109, 0, x_106); -x_117 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_106); -x_118 = l_Lean_Syntax_node1(x_106, x_117, x_109); -lean_inc(x_106); -x_119 = l_Lean_Syntax_node1(x_106, x_113, x_118); -lean_inc_n(x_115, 4); -x_120 = l_Lean_Syntax_node6(x_106, x_25, x_115, x_115, x_115, x_119, x_115, x_115); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_115 = lean_ctor_get(x_113, 1); +x_116 = lean_ctor_get(x_113, 0); +lean_dec(x_116); +x_117 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_118 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_110); +x_119 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_119, 0, x_110); +lean_ctor_set(x_119, 1, x_117); +lean_ctor_set(x_119, 2, x_118); +x_120 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_110); +lean_ctor_set_tag(x_113, 2); +lean_ctor_set(x_113, 1, x_120); +lean_ctor_set(x_113, 0, x_110); +x_121 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_110); +x_122 = l_Lean_Syntax_node1(x_110, x_121, x_113); +lean_inc(x_110); +x_123 = l_Lean_Syntax_node1(x_110, x_117, x_122); +lean_inc_n(x_119, 4); +x_124 = l_Lean_Syntax_node6(x_110, x_25, x_119, x_119, x_119, x_123, x_119, x_119); lean_inc(x_1); -x_121 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_120, x_6, x_7, x_111); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_12 = x_122; -x_13 = x_123; +x_125 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_124, x_6, x_7, x_115); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec(x_125); +x_12 = x_126; +x_13 = x_127; goto block_18; } 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; -x_124 = lean_ctor_get(x_109, 1); -lean_inc(x_124); -lean_dec(x_109); -x_125 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_126 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_106); -x_127 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_127, 0, x_106); -lean_ctor_set(x_127, 1, x_125); -lean_ctor_set(x_127, 2, x_126); -x_128 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_106); -x_129 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_129, 0, x_106); -lean_ctor_set(x_129, 1, x_128); -x_130 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_106); -x_131 = l_Lean_Syntax_node1(x_106, x_130, x_129); -lean_inc(x_106); -x_132 = l_Lean_Syntax_node1(x_106, x_125, x_131); -lean_inc_n(x_127, 4); -x_133 = l_Lean_Syntax_node6(x_106, x_25, x_127, x_127, x_127, x_132, x_127, 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_128 = lean_ctor_get(x_113, 1); +lean_inc(x_128); +lean_dec(x_113); +x_129 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_130 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_110); +x_131 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_131, 0, x_110); +lean_ctor_set(x_131, 1, x_129); +lean_ctor_set(x_131, 2, x_130); +x_132 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_110); +x_133 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_133, 0, x_110); +lean_ctor_set(x_133, 1, x_132); +x_134 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_110); +x_135 = l_Lean_Syntax_node1(x_110, x_134, x_133); +lean_inc(x_110); +x_136 = l_Lean_Syntax_node1(x_110, x_129, x_135); +lean_inc_n(x_131, 4); +x_137 = l_Lean_Syntax_node6(x_110, x_25, x_131, x_131, x_131, x_136, x_131, x_131); lean_inc(x_1); -x_134 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_133, x_6, x_7, x_124); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -lean_dec(x_134); -x_12 = x_135; -x_13 = x_136; +x_138 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_137, x_6, x_7, x_128); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_12 = x_139; +x_13 = x_140; goto block_18; } } else { -lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_137 = l_Lean_Syntax_getArg(x_81, x_80); -lean_dec(x_81); -x_138 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___closed__4; -lean_inc(x_137); -x_139 = l_Lean_Syntax_isOfKind(x_137, x_138); -if (x_139 == 0) -{ -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; uint8_t x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -lean_dec(x_137); -lean_dec(x_24); -x_140 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_141 = lean_ctor_get(x_140, 0); +lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_141 = l_Lean_Syntax_getArg(x_83, x_82); +lean_dec(x_83); +x_142 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___closed__4; lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -x_143 = l_Lean_replaceRef(x_20, x_141); +x_143 = l_Lean_Syntax_isOfKind(x_141, x_142); +if (x_143 == 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; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; uint8_t 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_object* x_170; uint8_t x_171; lean_dec(x_141); -lean_dec(x_20); -x_144 = lean_ctor_get(x_6, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_6, 1); +lean_dec(x_24); +x_144 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_145 = lean_ctor_get(x_144, 0); lean_inc(x_145); -x_146 = lean_ctor_get(x_6, 2); +x_146 = lean_ctor_get(x_144, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_6, 3); -lean_inc(x_147); -x_148 = lean_ctor_get(x_6, 4); -lean_inc(x_148); -x_149 = lean_ctor_get(x_6, 5); -lean_inc(x_149); -x_150 = lean_ctor_get(x_6, 7); -lean_inc(x_150); -x_151 = lean_ctor_get(x_6, 8); -lean_inc(x_151); -x_152 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_149); -lean_ctor_set(x_152, 6, x_143); -lean_ctor_set(x_152, 7, x_150); -lean_ctor_set(x_152, 8, x_151); -x_153 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; -x_154 = 2; -lean_inc(x_7); -x_155 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_153, x_154, x_152, x_7, x_142); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -lean_dec(x_155); -x_157 = l_Lean_Elab_Command_getRef(x_6, x_7, x_156); -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); -x_160 = 0; -x_161 = l_Lean_SourceInfo_fromRef(x_158, x_160); -x_162 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_159); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); -x_164 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_163); -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -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_166 = lean_ctor_get(x_164, 1); -x_167 = lean_ctor_get(x_164, 0); -lean_dec(x_167); -x_168 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_169 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_161); -x_170 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_170, 0, x_161); -lean_ctor_set(x_170, 1, x_168); -lean_ctor_set(x_170, 2, x_169); -x_171 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_161); -lean_ctor_set_tag(x_164, 2); -lean_ctor_set(x_164, 1, x_171); -lean_ctor_set(x_164, 0, x_161); -x_172 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_161); -x_173 = l_Lean_Syntax_node1(x_161, x_172, x_164); -lean_inc(x_161); -x_174 = l_Lean_Syntax_node1(x_161, x_168, x_173); -lean_inc_n(x_170, 4); -x_175 = l_Lean_Syntax_node6(x_161, x_25, x_170, x_170, x_170, x_174, x_170, x_170); -lean_inc(x_1); -x_176 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_175, x_6, x_7, x_166); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_12 = x_177; -x_13 = x_178; -goto block_18; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_179 = lean_ctor_get(x_164, 1); -lean_inc(x_179); -lean_dec(x_164); -x_180 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; -x_181 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; -lean_inc(x_161); -x_182 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_182, 0, x_161); -lean_ctor_set(x_182, 1, x_180); -lean_ctor_set(x_182, 2, x_181); -x_183 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; -lean_inc(x_161); -x_184 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_184, 0, x_161); -lean_ctor_set(x_184, 1, x_183); -x_185 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; -lean_inc(x_161); -x_186 = l_Lean_Syntax_node1(x_161, x_185, x_184); -lean_inc(x_161); -x_187 = l_Lean_Syntax_node1(x_161, x_180, x_186); -lean_inc_n(x_182, 4); -x_188 = l_Lean_Syntax_node6(x_161, x_25, x_182, x_182, x_182, x_187, x_182, x_182); -lean_inc(x_1); -x_189 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_188, x_6, x_7, x_179); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_12 = x_190; -x_13 = x_191; -goto block_18; -} -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_19); -x_192 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_192, 0, x_137); -x_193 = lean_box(0); -lean_inc(x_7); -lean_inc(x_6); -x_194 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5(x_20, x_25, x_24, x_193, x_192, x_6, x_7, x_8); +lean_dec(x_144); +x_147 = l_Lean_replaceRef(x_20, x_145); +lean_dec(x_145); lean_dec(x_20); -if (lean_obj_tag(x_194) == 0) +x_148 = lean_ctor_get(x_6, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_6, 1); +lean_inc(x_149); +x_150 = lean_ctor_get(x_6, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_6, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_6, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_6, 5); +lean_inc(x_153); +x_154 = lean_ctor_get(x_6, 7); +lean_inc(x_154); +x_155 = lean_ctor_get(x_6, 8); +lean_inc(x_155); +x_156 = lean_ctor_get(x_6, 9); +lean_inc(x_156); +x_157 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +x_158 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_158, 0, x_148); +lean_ctor_set(x_158, 1, x_149); +lean_ctor_set(x_158, 2, x_150); +lean_ctor_set(x_158, 3, x_151); +lean_ctor_set(x_158, 4, x_152); +lean_ctor_set(x_158, 5, x_153); +lean_ctor_set(x_158, 6, x_147); +lean_ctor_set(x_158, 7, x_154); +lean_ctor_set(x_158, 8, x_155); +lean_ctor_set(x_158, 9, x_156); +lean_ctor_set_uint8(x_158, sizeof(void*)*10, x_157); +x_159 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__3; +x_160 = 2; +lean_inc(x_7); +x_161 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_159, x_160, x_158, x_7, x_146); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +x_163 = l_Lean_Elab_Command_getRef(x_6, x_7, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = 0; +x_167 = l_Lean_SourceInfo_fromRef(x_164, x_166); +x_168 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_165); +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +lean_dec(x_168); +x_170 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_169); +x_171 = !lean_is_exclusive(x_170); +if (x_171 == 0) { -lean_object* x_195; lean_object* x_196; -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 1); -lean_inc(x_196); -lean_dec(x_194); -x_12 = x_195; -x_13 = x_196; +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_172 = lean_ctor_get(x_170, 1); +x_173 = lean_ctor_get(x_170, 0); +lean_dec(x_173); +x_174 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_175 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_167); +x_176 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_176, 0, x_167); +lean_ctor_set(x_176, 1, x_174); +lean_ctor_set(x_176, 2, x_175); +x_177 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_167); +lean_ctor_set_tag(x_170, 2); +lean_ctor_set(x_170, 1, x_177); +lean_ctor_set(x_170, 0, x_167); +x_178 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_167); +x_179 = l_Lean_Syntax_node1(x_167, x_178, x_170); +lean_inc(x_167); +x_180 = l_Lean_Syntax_node1(x_167, x_174, x_179); +lean_inc_n(x_176, 4); +x_181 = l_Lean_Syntax_node6(x_167, x_25, x_176, x_176, x_176, x_180, x_176, x_176); +lean_inc(x_1); +x_182 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_181, x_6, x_7, x_172); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_12 = x_183; +x_13 = x_184; goto block_18; } else { -uint8_t x_197; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_197 = !lean_is_exclusive(x_194); -if (x_197 == 0) -{ -return x_194; +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; +x_185 = lean_ctor_get(x_170, 1); +lean_inc(x_185); +lean_dec(x_170); +x_186 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1___closed__12; +x_187 = l_Lean_Elab_Command_instInhabitedCtorView___closed__1; +lean_inc(x_167); +x_188 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_188, 0, x_167); +lean_ctor_set(x_188, 1, x_186); +lean_ctor_set(x_188, 2, x_187); +x_189 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__4; +lean_inc(x_167); +x_190 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_190, 0, x_167); +lean_ctor_set(x_190, 1, x_189); +x_191 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__2___closed__5; +lean_inc(x_167); +x_192 = l_Lean_Syntax_node1(x_167, x_191, x_190); +lean_inc(x_167); +x_193 = l_Lean_Syntax_node1(x_167, x_186, x_192); +lean_inc_n(x_188, 4); +x_194 = l_Lean_Syntax_node6(x_167, x_25, x_188, x_188, x_188, x_193, x_188, x_188); +lean_inc(x_1); +x_195 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__1(x_19, x_1, x_21, x_22, x_23, x_194, x_6, x_7, x_185); +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_12 = x_196; +x_13 = x_197; +goto block_18; +} } else { lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_194, 0); -x_199 = lean_ctor_get(x_194, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_194); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; -} -} -} -} -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_81); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_19); -x_201 = lean_box(0); -x_202 = lean_box(0); +x_198 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_198, 0, x_141); +x_199 = lean_box(0); lean_inc(x_7); lean_inc(x_6); -x_203 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5(x_20, x_25, x_24, x_202, x_201, x_6, x_7, x_8); +x_200 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5(x_20, x_25, x_24, x_199, x_198, x_6, x_7, x_8); lean_dec(x_20); -if (lean_obj_tag(x_203) == 0) +if (lean_obj_tag(x_200) == 0) { -lean_object* x_204; lean_object* x_205; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -x_12 = x_204; -x_13 = x_205; +lean_object* x_201; lean_object* x_202; +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_12 = x_201; +x_13 = x_202; goto block_18; } else { -uint8_t x_206; +uint8_t x_203; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_206 = !lean_is_exclusive(x_203); -if (x_206 == 0) +x_203 = !lean_is_exclusive(x_200); +if (x_203 == 0) { -return x_203; +return x_200; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_200, 0); +x_205 = lean_ctor_get(x_200, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_200); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +return x_206; +} +} +} +} } else { lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_203, 0); -x_208 = lean_ctor_get(x_203, 1); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_203); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); +lean_dec(x_83); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_19); +x_207 = lean_box(0); +x_208 = lean_box(0); +lean_inc(x_7); +lean_inc(x_6); +x_209 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyComputedFields___spec__1___lambda__5(x_20, x_25, x_24, x_208, x_207, x_6, x_7, x_8); +lean_dec(x_20); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_12 = x_210; +x_13 = x_211; +goto block_18; +} +else +{ +uint8_t x_212; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_212 = !lean_is_exclusive(x_209); +if (x_212 == 0) +{ return x_209; } +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_209, 0); +x_214 = lean_ctor_get(x_209, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_209); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; +} } } } @@ -37788,7 +37896,7 @@ return x_45; } 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; lean_object* x_52; lean_object* x_53; lean_object* x_54; 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_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; uint8_t x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; x_46 = lean_ctor_get(x_9, 0); x_47 = lean_ctor_get(x_9, 1); x_48 = lean_ctor_get(x_9, 2); @@ -37800,7 +37908,10 @@ x_53 = lean_ctor_get(x_9, 7); x_54 = lean_ctor_get(x_9, 8); x_55 = lean_ctor_get(x_9, 9); x_56 = lean_ctor_get(x_9, 10); -x_57 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_57 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_58 = lean_ctor_get(x_9, 11); +x_59 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_58); lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); @@ -37813,41 +37924,31 @@ lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_dec(x_9); -x_58 = l_Lean_replaceRef(x_1, x_51); +x_60 = l_Lean_replaceRef(x_1, x_51); lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_59, 0, x_46); -lean_ctor_set(x_59, 1, x_47); -lean_ctor_set(x_59, 2, x_48); -lean_ctor_set(x_59, 3, x_49); -lean_ctor_set(x_59, 4, x_50); -lean_ctor_set(x_59, 5, x_58); -lean_ctor_set(x_59, 6, x_52); -lean_ctor_set(x_59, 7, x_53); -lean_ctor_set(x_59, 8, x_54); -lean_ctor_set(x_59, 9, x_55); -lean_ctor_set(x_59, 10, x_56); -lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_57); +x_61 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_61, 0, x_46); +lean_ctor_set(x_61, 1, x_47); +lean_ctor_set(x_61, 2, x_48); +lean_ctor_set(x_61, 3, x_49); +lean_ctor_set(x_61, 4, x_50); +lean_ctor_set(x_61, 5, x_60); +lean_ctor_set(x_61, 6, x_52); +lean_ctor_set(x_61, 7, x_53); +lean_ctor_set(x_61, 8, x_54); +lean_ctor_set(x_61, 9, x_55); +lean_ctor_set(x_61, 10, x_56); +lean_ctor_set(x_61, 11, x_58); +lean_ctor_set_uint8(x_61, sizeof(void*)*12, x_57); +lean_ctor_set_uint8(x_61, sizeof(void*)*12 + 1, x_59); lean_inc(x_10); -lean_inc(x_59); +lean_inc(x_61); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_60 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(x_2, x_3, x_5, x_6, x_7, x_8, x_59, x_10, x_11); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -lean_inc(x_10); -lean_inc(x_59); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_4); -x_62 = l_Lean_Meta_mkSizeOfInstances(x_4, x_7, x_8, x_59, x_10, x_61); +x_62 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl(x_2, x_3, x_5, x_6, x_7, x_8, x_61, x_10, x_11); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; lean_object* x_64; @@ -37855,108 +37956,153 @@ x_63 = lean_ctor_get(x_62, 1); lean_inc(x_63); lean_dec(x_62); lean_inc(x_10); -lean_inc(x_59); +lean_inc(x_61); lean_inc(x_8); lean_inc(x_7); -x_64 = l_Lean_Meta_IndPredBelow_mkBelow(x_4, x_7, x_8, x_59, x_10, x_63); +lean_inc(x_4); +x_64 = l_Lean_Meta_mkSizeOfInstances(x_4, x_7, x_8, x_61, x_10, x_63); if (lean_obj_tag(x_64) == 0) { -lean_object* x_65; lean_object* x_66; size_t x_67; size_t x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_65; lean_object* x_66; x_65 = lean_ctor_get(x_64, 1); lean_inc(x_65); lean_dec(x_64); -x_66 = lean_array_get_size(x_3); -x_67 = lean_usize_of_nat(x_66); +lean_inc(x_10); +lean_inc(x_61); +lean_inc(x_8); +lean_inc(x_7); +x_66 = l_Lean_Meta_IndPredBelow_mkBelow(x_4, x_7, x_8, x_61, x_10, x_65); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; size_t x_69; size_t x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); lean_dec(x_66); -x_68 = 0; -x_69 = lean_box(0); -x_70 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabInductiveViews___spec__1(x_3, x_67, x_68, x_69, x_5, x_6, x_7, x_8, x_59, x_10, x_65); +x_68 = lean_array_get_size(x_3); +x_69 = lean_usize_of_nat(x_68); +lean_dec(x_68); +x_70 = 0; +x_71 = lean_box(0); +x_72 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabInductiveViews___spec__1(x_3, x_69, x_70, x_71, x_5, x_6, x_7, x_8, x_61, x_10, x_67); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -if (lean_obj_tag(x_70) == 0) +if (lean_obj_tag(x_72) == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_72 = x_70; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; } else { - lean_dec_ref(x_70); - x_72 = lean_box(0); + lean_dec_ref(x_72); + x_74 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_72; + x_75 = x_74; } -lean_ctor_set(x_73, 0, x_69); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 1, x_73); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_ctor_get(x_70, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_76 = x_70; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_78 = x_72; } else { - lean_dec_ref(x_70); - x_76 = lean_box(0); + lean_dec_ref(x_72); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_59); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_61); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_78 = lean_ctor_get(x_64, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_64, 1); -lean_inc(x_79); +x_80 = lean_ctor_get(x_66, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_66, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_82 = x_66; +} else { + lean_dec_ref(x_66); + 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 +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_61); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_84 = lean_ctor_get(x_64, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_64, 1); +lean_inc(x_85); if (lean_is_exclusive(x_64)) { lean_ctor_release(x_64, 0); lean_ctor_release(x_64, 1); - x_80 = x_64; + x_86 = x_64; } else { lean_dec_ref(x_64); - x_80 = lean_box(0); + x_86 = lean_box(0); } -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); } else { - x_81 = x_80; + x_87 = x_86; } -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -return x_81; +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; } } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_59); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_61); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -37964,59 +38110,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_82 = lean_ctor_get(x_62, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_62, 1); -lean_inc(x_83); +x_88 = lean_ctor_get(x_62, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_62, 1); +lean_inc(x_89); if (lean_is_exclusive(x_62)) { lean_ctor_release(x_62, 0); lean_ctor_release(x_62, 1); - x_84 = x_62; + x_90 = x_62; } else { lean_dec_ref(x_62); - x_84 = lean_box(0); + x_90 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; + x_91 = x_90; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); -return x_85; -} -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_86 = lean_ctor_get(x_60, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_60, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_88 = x_60; -} else { - lean_dec_ref(x_60); - x_88 = lean_box(0); -} -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); -} else { - x_89 = x_88; -} -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } } @@ -38101,7 +38214,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; 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; lean_object* x_39; lean_object* x_40; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_25 = lean_ctor_get(x_9, 0); x_26 = lean_ctor_get(x_9, 1); x_27 = lean_ctor_get(x_9, 2); @@ -38113,7 +38226,10 @@ x_32 = lean_ctor_get(x_9, 7); x_33 = lean_ctor_get(x_9, 8); x_34 = lean_ctor_get(x_9, 9); x_35 = lean_ctor_get(x_9, 10); -x_36 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_37 = lean_ctor_get(x_9, 11); +x_38 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -38126,68 +38242,70 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_9); -x_37 = l_Lean_replaceRef(x_1, x_30); +x_39 = l_Lean_replaceRef(x_1, x_30); lean_dec(x_30); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); -x_39 = lean_box(0); -x_40 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabInductiveViews___spec__2(x_2, x_3, x_4, x_39, x_5, x_6, x_7, x_8, x_38, x_10, x_11); -if (lean_obj_tag(x_40) == 0) +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); +x_41 = lean_box(0); +x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabInductiveViews___spec__2(x_2, x_3, x_4, x_41, x_5, x_6, x_7, x_8, x_40, x_10, x_11); +if (lean_obj_tag(x_42) == 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); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_42 = x_40; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; } else { - lean_dec_ref(x_40); - x_42 = lean_box(0); + lean_dec_ref(x_42); + x_44 = lean_box(0); } -if (lean_is_scalar(x_42)) { - x_43 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_43 = x_42; + x_45 = x_44; } -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_41); -return x_43; +lean_ctor_set(x_45, 0, x_41); +lean_ctor_set(x_45, 1, x_43); +return x_45; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_40, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_40, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_46 = x_40; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_42, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_48 = x_42; } else { - lean_dec_ref(x_40); - x_46 = lean_box(0); + lean_dec_ref(x_42); + x_48 = lean_box(0); } -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(1, 2, 0); } else { - x_47 = x_46; + x_49 = x_48; } -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_45); -return x_47; +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; } } } diff --git a/stage0/stdlib/Lean/Elab/InfoTree/Main.c b/stage0/stdlib/Lean/Elab/InfoTree/Main.c index bd24642f5d..5cb358bddd 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree/Main.c +++ b/stage0/stdlib/Lean/Elab/InfoTree/Main.c @@ -59,6 +59,7 @@ lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); static lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___rarg___lambda__1___closed__2; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_withMacroExpansionInfo___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_ContextInfo_ppGoals___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_FieldRedeclInfo_format(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___spec__4(lean_object*); @@ -93,6 +94,7 @@ static lean_object* l_Lean_Elab_MacroExpansionInfo_format___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_realizeGlobalConstNoOverloadWithInfo___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_CompletionInfo_lctx___boxed(lean_object*); static lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___spec__2___rarg___closed__2; +static uint8_t l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___rarg___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -242,7 +244,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_formatStxRange_fmtPos___closed__10; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f___closed__3; -static uint8_t l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; +static lean_object* l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___spec__4___rarg___lambda__2(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_CompletionInfo_format___lambda__1___closed__2; @@ -2290,13 +2292,13 @@ x_11 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = lean_apply_3(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -2306,6 +2308,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -2316,23 +2321,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = lean_apply_3(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = lean_apply_3(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -2361,7 +2368,7 @@ x_13 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2___closed__1; x_16 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_15); x_17 = lean_st_ref_get(x_8, x_9); @@ -2484,7 +2491,7 @@ return x_47; } else { -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; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; +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; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; x_53 = lean_ctor_get(x_7, 0); x_54 = lean_ctor_get(x_7, 1); x_55 = lean_ctor_get(x_7, 3); @@ -2494,6 +2501,9 @@ x_58 = lean_ctor_get(x_7, 7); x_59 = lean_ctor_get(x_7, 8); x_60 = lean_ctor_get(x_7, 9); x_61 = lean_ctor_get(x_7, 10); +x_62 = lean_ctor_get(x_7, 11); +x_63 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); @@ -2504,133 +2514,135 @@ lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); lean_dec(x_7); -x_62 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; -x_63 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_62); -x_64 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_64, 0, x_53); -lean_ctor_set(x_64, 1, x_54); -lean_ctor_set(x_64, 2, x_1); -lean_ctor_set(x_64, 3, x_55); -lean_ctor_set(x_64, 4, x_63); -lean_ctor_set(x_64, 5, x_56); -lean_ctor_set(x_64, 6, x_57); -lean_ctor_set(x_64, 7, x_58); -lean_ctor_set(x_64, 8, x_59); -lean_ctor_set(x_64, 9, x_60); -lean_ctor_set(x_64, 10, x_61); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_2); -x_65 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2___closed__1; -x_66 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_65); -x_67 = lean_st_ref_get(x_8, x_9); -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_70 = lean_ctor_get(x_68, 0); +x_64 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1___closed__1; +x_65 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_64); +x_66 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_66, 0, x_53); +lean_ctor_set(x_66, 1, x_54); +lean_ctor_set(x_66, 2, x_1); +lean_ctor_set(x_66, 3, x_55); +lean_ctor_set(x_66, 4, x_65); +lean_ctor_set(x_66, 5, x_56); +lean_ctor_set(x_66, 6, x_57); +lean_ctor_set(x_66, 7, x_58); +lean_ctor_set(x_66, 8, x_59); +lean_ctor_set(x_66, 9, x_60); +lean_ctor_set(x_66, 10, x_61); +lean_ctor_set(x_66, 11, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_66, sizeof(void*)*12 + 1, x_63); +x_67 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2___closed__1; +x_68 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_67); +x_69 = lean_st_ref_get(x_8, x_9); +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_Kernel_isDiagnosticsEnabled(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_ctor_get(x_70, 0); +lean_inc(x_72); lean_dec(x_70); -if (x_71 == 0) +x_73 = l_Lean_Kernel_isDiagnosticsEnabled(x_72); +lean_dec(x_72); +if (x_73 == 0) { -if (x_66 == 0) -{ -uint8_t x_92; -x_92 = 1; -x_72 = x_92; -goto block_91; -} -else -{ -uint8_t x_93; -x_93 = 0; -x_72 = x_93; -goto block_91; -} -} -else -{ -if (x_66 == 0) +if (x_68 == 0) { uint8_t x_94; -x_94 = 0; -x_72 = x_94; -goto block_91; +x_94 = 1; +x_74 = x_94; +goto block_93; } else { uint8_t x_95; -x_95 = 1; -x_72 = x_95; -goto block_91; +x_95 = 0; +x_74 = x_95; +goto block_93; } } -block_91: -{ -if (x_72 == 0) -{ -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; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_73 = lean_st_ref_take(x_8, x_69); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = lean_ctor_get(x_74, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 1); -lean_inc(x_77); -x_78 = lean_ctor_get(x_74, 2); -lean_inc(x_78); -x_79 = lean_ctor_get(x_74, 3); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 5); -lean_inc(x_80); -x_81 = lean_ctor_get(x_74, 6); -lean_inc(x_81); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - lean_ctor_release(x_74, 2); - lean_ctor_release(x_74, 3); - lean_ctor_release(x_74, 4); - lean_ctor_release(x_74, 5); - lean_ctor_release(x_74, 6); - x_82 = x_74; -} else { - lean_dec_ref(x_74); - x_82 = lean_box(0); -} -x_83 = l_Lean_Kernel_enableDiag(x_76, x_66); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 7, 0); -} else { - x_84 = x_82; -} -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_77); -lean_ctor_set(x_84, 2, x_78); -lean_ctor_set(x_84, 3, x_79); -lean_ctor_set(x_84, 4, x_5); -lean_ctor_set(x_84, 5, x_80); -lean_ctor_set(x_84, 6, x_81); -x_85 = lean_st_ref_set(x_8, x_84, x_75); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = lean_box(0); -x_88 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1(x_3, x_66, x_4, x_87, x_64, x_8, x_86); -return x_88; -} else { -lean_object* x_89; lean_object* x_90; -lean_dec(x_5); +if (x_68 == 0) +{ +uint8_t x_96; +x_96 = 0; +x_74 = x_96; +goto block_93; +} +else +{ +uint8_t x_97; +x_97 = 1; +x_74 = x_97; +goto block_93; +} +} +block_93: +{ +if (x_74 == 0) +{ +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; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_75 = lean_st_ref_take(x_8, x_71); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 2); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 3); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 5); +lean_inc(x_82); +x_83 = lean_ctor_get(x_76, 6); +lean_inc(x_83); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + lean_ctor_release(x_76, 4); + lean_ctor_release(x_76, 5); + lean_ctor_release(x_76, 6); + x_84 = x_76; +} else { + lean_dec_ref(x_76); + x_84 = lean_box(0); +} +x_85 = l_Lean_Kernel_enableDiag(x_78, x_68); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 7, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_79); +lean_ctor_set(x_86, 2, x_80); +lean_ctor_set(x_86, 3, x_81); +lean_ctor_set(x_86, 4, x_5); +lean_ctor_set(x_86, 5, x_82); +lean_ctor_set(x_86, 6, x_83); +x_87 = lean_st_ref_set(x_8, x_86, x_77); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); x_89 = lean_box(0); -x_90 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1(x_3, x_66, x_4, x_89, x_64, x_8, x_69); +x_90 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1(x_3, x_68, x_4, x_89, x_66, x_8, x_88); return x_90; } +else +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_5); +x_91 = lean_box(0); +x_92 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__1(x_3, x_68, x_4, x_91, x_66, x_8, x_71); +return x_92; +} } } } @@ -2742,6 +2754,18 @@ return x_2; static lean_object* _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__11() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; +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_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__8; x_2 = lean_unsigned_to_nat(0u); @@ -2751,12 +2775,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12() { +static lean_object* _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; -x_2 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__11; +x_2 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12; x_3 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -2765,7 +2789,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13() { +static lean_object* _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14() { _start: { lean_object* x_1; @@ -2773,7 +2797,7 @@ x_1 = lean_mk_string_from_bytes("", 10); return x_1; } } -static uint8_t _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14() { +static uint8_t _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; @@ -2794,7 +2818,7 @@ lean_dec(x_1); x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) { -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; 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; uint8_t x_78; uint8_t x_79; +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; uint8_t 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; uint8_t x_80; uint8_t x_81; x_49 = lean_ctor_get(x_47, 3); x_50 = lean_ctor_get(x_47, 4); x_51 = lean_ctor_get(x_47, 5); @@ -2803,393 +2827,397 @@ x_53 = lean_ctor_get(x_47, 2); lean_dec(x_53); x_54 = lean_ctor_get(x_47, 1); lean_dec(x_54); -x_55 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__3; -x_56 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; -x_57 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__10; -x_58 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12; -lean_ctor_set(x_47, 6, x_58); -lean_ctor_set(x_47, 5, x_56); -lean_ctor_set(x_47, 4, x_57); -lean_ctor_set(x_47, 3, x_56); +x_55 = lean_box(0); +x_56 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__3; +x_57 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; +x_58 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__10; +x_59 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__11; +x_60 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13; +lean_ctor_set(x_47, 6, x_60); +lean_ctor_set(x_47, 5, x_59); +lean_ctor_set(x_47, 4, x_58); +lean_ctor_set(x_47, 3, x_57); lean_ctor_set(x_47, 2, x_52); -lean_ctor_set(x_47, 1, x_55); -x_59 = lean_io_get_num_heartbeats(x_3); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13; -x_63 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___rarg___lambda__1___closed__3; -x_64 = lean_unsigned_to_nat(0u); -x_65 = lean_unsigned_to_nat(1000u); -x_66 = lean_box(0); -x_67 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__2; -x_68 = l_Lean_firstFrontendMacroScope; -x_69 = 0; -x_70 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_70, 0, x_62); -lean_ctor_set(x_70, 1, x_63); -lean_ctor_set(x_70, 2, x_46); -lean_ctor_set(x_70, 3, x_64); -lean_ctor_set(x_70, 4, x_65); -lean_ctor_set(x_70, 5, x_66); -lean_ctor_set(x_70, 6, x_50); -lean_ctor_set(x_70, 7, x_51); -lean_ctor_set(x_70, 8, x_60); -lean_ctor_set(x_70, 9, x_67); -lean_ctor_set(x_70, 10, x_68); -lean_ctor_set_uint8(x_70, sizeof(void*)*11, x_69); -x_71 = lean_st_mk_ref(x_47, x_61); -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_74 = lean_st_ref_get(x_72, x_73); -x_75 = lean_ctor_get(x_74, 0); +lean_ctor_set(x_47, 1, x_56); +x_61 = lean_io_get_num_heartbeats(x_3); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; +x_65 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___rarg___lambda__1___closed__3; +x_66 = lean_unsigned_to_nat(0u); +x_67 = lean_unsigned_to_nat(1000u); +x_68 = lean_box(0); +x_69 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__2; +x_70 = l_Lean_firstFrontendMacroScope; +x_71 = 0; +x_72 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_72, 0, x_64); +lean_ctor_set(x_72, 1, x_65); +lean_ctor_set(x_72, 2, x_46); +lean_ctor_set(x_72, 3, x_66); +lean_ctor_set(x_72, 4, x_67); +lean_ctor_set(x_72, 5, x_68); +lean_ctor_set(x_72, 6, x_50); +lean_ctor_set(x_72, 7, x_51); +lean_ctor_set(x_72, 8, x_62); +lean_ctor_set(x_72, 9, x_69); +lean_ctor_set(x_72, 10, x_70); +lean_ctor_set(x_72, 11, x_55); +lean_ctor_set_uint8(x_72, sizeof(void*)*12, x_71); +lean_ctor_set_uint8(x_72, sizeof(void*)*12 + 1, x_71); +x_73 = lean_st_mk_ref(x_47, x_63); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_ctor_get(x_75, 0); +lean_dec(x_73); +x_76 = lean_st_ref_get(x_74, x_75); +x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_Kernel_isDiagnosticsEnabled(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_ctor_get(x_77, 0); +lean_inc(x_79); lean_dec(x_77); -if (x_78 == 0) -{ -uint8_t x_156; -x_156 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -if (x_156 == 0) -{ -uint8_t x_157; -x_157 = 1; -x_79 = x_157; -goto block_155; -} -else -{ -x_79 = x_69; -goto block_155; -} -} -else +x_80 = l_Lean_Kernel_isDiagnosticsEnabled(x_79); +lean_dec(x_79); +if (x_80 == 0) { uint8_t x_158; -x_158 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; +x_158 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; if (x_158 == 0) { -x_79 = x_69; -goto block_155; -} -else -{ uint8_t x_159; x_159 = 1; -x_79 = x_159; -goto block_155; -} -} -block_155: -{ -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = lean_st_ref_take(x_72, x_76); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = !lean_is_exclusive(x_81); -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; -x_84 = lean_ctor_get(x_81, 0); -x_85 = lean_ctor_get(x_81, 4); -lean_dec(x_85); -x_86 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -x_87 = l_Lean_Kernel_enableDiag(x_84, x_86); -lean_ctor_set(x_81, 4, x_57); -lean_ctor_set(x_81, 0, x_87); -x_88 = lean_st_ref_set(x_72, x_81, x_82); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = lean_box(0); -lean_inc(x_72); -x_91 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_86, x_49, x_2, x_57, x_90, x_70, x_72, x_89); -if (lean_obj_tag(x_91) == 0) -{ -uint8_t x_92; -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_91, 1); -x_94 = lean_st_ref_get(x_72, x_93); -lean_dec(x_72); -x_95 = !lean_is_exclusive(x_94); -if (x_95 == 0) -{ -lean_object* x_96; -x_96 = lean_ctor_get(x_94, 0); -lean_ctor_set(x_91, 1, x_96); -lean_ctor_set(x_94, 0, x_91); -x_4 = x_94; -goto block_16; +x_81 = x_159; +goto block_157; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_94, 0); -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_94); -lean_ctor_set(x_91, 1, x_97); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_91); -lean_ctor_set(x_99, 1, x_98); -x_4 = x_99; -goto block_16; +x_81 = x_71; +goto block_157; } } 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; lean_object* x_106; lean_object* x_107; -x_100 = lean_ctor_get(x_91, 0); -x_101 = lean_ctor_get(x_91, 1); -lean_inc(x_101); +uint8_t x_160; +x_160 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +if (x_160 == 0) +{ +x_81 = x_71; +goto block_157; +} +else +{ +uint8_t x_161; +x_161 = 1; +x_81 = x_161; +goto block_157; +} +} +block_157: +{ +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_82 = lean_st_ref_take(x_74, x_78); +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_is_exclusive(x_83); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_86 = lean_ctor_get(x_83, 0); +x_87 = lean_ctor_get(x_83, 4); +lean_dec(x_87); +x_88 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +x_89 = l_Lean_Kernel_enableDiag(x_86, x_88); +lean_ctor_set(x_83, 4, x_58); +lean_ctor_set(x_83, 0, x_89); +x_90 = lean_st_ref_set(x_74, x_83, x_84); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_box(0); +lean_inc(x_74); +x_93 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_88, x_49, x_2, x_58, x_92, x_72, x_74, x_91); +if (lean_obj_tag(x_93) == 0) +{ +uint8_t x_94; +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_93, 1); +x_96 = lean_st_ref_get(x_74, x_95); +lean_dec(x_74); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_96, 0); +lean_ctor_set(x_93, 1, x_98); +lean_ctor_set(x_96, 0, x_93); +x_4 = x_96; +goto block_16; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_96, 0); +x_100 = lean_ctor_get(x_96, 1); lean_inc(x_100); -lean_dec(x_91); -x_102 = lean_st_ref_get(x_72, x_101); -lean_dec(x_72); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; -} else { - lean_dec_ref(x_102); - x_105 = lean_box(0); -} -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_100); -lean_ctor_set(x_106, 1, x_103); -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(0, 2, 0); -} else { - x_107 = x_105; -} -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_104); -x_4 = x_107; +lean_inc(x_99); +lean_dec(x_96); +lean_ctor_set(x_93, 1, x_99); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_93); +lean_ctor_set(x_101, 1, x_100); +x_4 = x_101; goto block_16; } } else { -lean_object* x_108; lean_object* x_109; -lean_dec(x_72); -x_108 = lean_ctor_get(x_91, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_91, 1); -lean_inc(x_109); -lean_dec(x_91); -x_17 = x_108; -x_18 = x_109; +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; +x_102 = lean_ctor_get(x_93, 0); +x_103 = lean_ctor_get(x_93, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_93); +x_104 = lean_st_ref_get(x_74, x_103); +lean_dec(x_74); +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; +} else { + lean_dec_ref(x_104); + x_107 = lean_box(0); +} +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_102); +lean_ctor_set(x_108, 1, x_105); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +x_4 = x_109; +goto block_16; +} +} +else +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_74); +x_110 = lean_ctor_get(x_93, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_93, 1); +lean_inc(x_111); +lean_dec(x_93); +x_17 = x_110; +x_18 = x_111; goto block_45; } } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; 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; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_110 = lean_ctor_get(x_81, 0); -x_111 = lean_ctor_get(x_81, 1); -x_112 = lean_ctor_get(x_81, 2); -x_113 = lean_ctor_get(x_81, 3); -x_114 = lean_ctor_get(x_81, 5); -x_115 = lean_ctor_get(x_81, 6); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 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; lean_object* x_124; +x_112 = lean_ctor_get(x_83, 0); +x_113 = lean_ctor_get(x_83, 1); +x_114 = lean_ctor_get(x_83, 2); +x_115 = lean_ctor_get(x_83, 3); +x_116 = lean_ctor_get(x_83, 5); +x_117 = lean_ctor_get(x_83, 6); +lean_inc(x_117); +lean_inc(x_116); lean_inc(x_115); lean_inc(x_114); lean_inc(x_113); lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_81); -x_116 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -x_117 = l_Lean_Kernel_enableDiag(x_110, x_116); -x_118 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_111); -lean_ctor_set(x_118, 2, x_112); -lean_ctor_set(x_118, 3, x_113); -lean_ctor_set(x_118, 4, x_57); -lean_ctor_set(x_118, 5, x_114); -lean_ctor_set(x_118, 6, x_115); -x_119 = lean_st_ref_set(x_72, x_118, x_82); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -x_121 = lean_box(0); -lean_inc(x_72); -x_122 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_116, x_49, x_2, x_57, x_121, x_70, x_72, x_120); -if (lean_obj_tag(x_122) == 0) +lean_dec(x_83); +x_118 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +x_119 = l_Lean_Kernel_enableDiag(x_112, x_118); +x_120 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_113); +lean_ctor_set(x_120, 2, x_114); +lean_ctor_set(x_120, 3, x_115); +lean_ctor_set(x_120, 4, x_58); +lean_ctor_set(x_120, 5, x_116); +lean_ctor_set(x_120, 6, x_117); +x_121 = lean_st_ref_set(x_74, x_120, x_84); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +lean_dec(x_121); +x_123 = lean_box(0); +lean_inc(x_74); +x_124 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_118, x_49, x_2, x_58, x_123, x_72, x_74, x_122); +if (lean_obj_tag(x_124) == 0) { -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_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; +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; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_127 = x_124; } else { - lean_dec_ref(x_122); - x_125 = lean_box(0); + lean_dec_ref(x_124); + x_127 = lean_box(0); } -x_126 = lean_st_ref_get(x_72, x_124); -lean_dec(x_72); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_129 = x_126; +x_128 = lean_st_ref_get(x_74, x_126); +lean_dec(x_74); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_131 = x_128; } else { - lean_dec_ref(x_126); - x_129 = lean_box(0); + lean_dec_ref(x_128); + x_131 = lean_box(0); } -if (lean_is_scalar(x_125)) { - x_130 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_127)) { + x_132 = lean_alloc_ctor(0, 2, 0); } else { - x_130 = x_125; + x_132 = x_127; } -lean_ctor_set(x_130, 0, x_123); -lean_ctor_set(x_130, 1, x_127); -if (lean_is_scalar(x_129)) { - x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_125); +lean_ctor_set(x_132, 1, x_129); +if (lean_is_scalar(x_131)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_131 = x_129; + x_133 = x_131; } -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_128); -x_4 = x_131; +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_130); +x_4 = x_133; goto block_16; } else { -lean_object* x_132; lean_object* x_133; -lean_dec(x_72); -x_132 = lean_ctor_get(x_122, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_122, 1); -lean_inc(x_133); -lean_dec(x_122); -x_17 = x_132; -x_18 = x_133; +lean_object* x_134; lean_object* x_135; +lean_dec(x_74); +x_134 = lean_ctor_get(x_124, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_124, 1); +lean_inc(x_135); +lean_dec(x_124); +x_17 = x_134; +x_18 = x_135; goto block_45; } } } else { -uint8_t x_134; lean_object* x_135; lean_object* x_136; -x_134 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -x_135 = lean_box(0); -lean_inc(x_72); -x_136 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_134, x_49, x_2, x_57, x_135, x_70, x_72, x_76); -if (lean_obj_tag(x_136) == 0) +uint8_t x_136; lean_object* x_137; lean_object* x_138; +x_136 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +x_137 = lean_box(0); +lean_inc(x_74); +x_138 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_136, x_49, x_2, x_58, x_137, x_72, x_74, x_78); +if (lean_obj_tag(x_138) == 0) { -uint8_t x_137; -x_137 = !lean_is_exclusive(x_136); -if (x_137 == 0) +uint8_t x_139; +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) { -lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_138 = lean_ctor_get(x_136, 1); -x_139 = lean_st_ref_get(x_72, x_138); -lean_dec(x_72); -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) +lean_object* x_140; lean_object* x_141; uint8_t x_142; +x_140 = lean_ctor_get(x_138, 1); +x_141 = lean_st_ref_get(x_74, x_140); +lean_dec(x_74); +x_142 = !lean_is_exclusive(x_141); +if (x_142 == 0) { -lean_object* x_141; -x_141 = lean_ctor_get(x_139, 0); -lean_ctor_set(x_136, 1, x_141); -lean_ctor_set(x_139, 0, x_136); -x_4 = x_139; +lean_object* x_143; +x_143 = lean_ctor_get(x_141, 0); +lean_ctor_set(x_138, 1, x_143); +lean_ctor_set(x_141, 0, x_138); +x_4 = x_141; goto block_16; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_139, 0); -x_143 = lean_ctor_get(x_139, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_139); -lean_ctor_set(x_136, 1, x_142); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_136); -lean_ctor_set(x_144, 1, x_143); -x_4 = x_144; -goto block_16; -} -} -else -{ -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_145 = lean_ctor_get(x_136, 0); -x_146 = lean_ctor_get(x_136, 1); -lean_inc(x_146); +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_141, 0); +x_145 = lean_ctor_get(x_141, 1); lean_inc(x_145); -lean_dec(x_136); -x_147 = lean_st_ref_get(x_72, x_146); -lean_dec(x_72); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_150 = x_147; -} else { - lean_dec_ref(x_147); - x_150 = lean_box(0); -} -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_145); -lean_ctor_set(x_151, 1, x_148); -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 2, 0); -} else { - x_152 = x_150; -} -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_149); -x_4 = x_152; +lean_inc(x_144); +lean_dec(x_141); +lean_ctor_set(x_138, 1, x_144); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_138); +lean_ctor_set(x_146, 1, x_145); +x_4 = x_146; goto block_16; } } else { -lean_object* x_153; lean_object* x_154; -lean_dec(x_72); -x_153 = lean_ctor_get(x_136, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_136, 1); -lean_inc(x_154); -lean_dec(x_136); -x_17 = x_153; -x_18 = x_154; +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_147 = lean_ctor_get(x_138, 0); +x_148 = lean_ctor_get(x_138, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_138); +x_149 = lean_st_ref_get(x_74, x_148); +lean_dec(x_74); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; +} else { + lean_dec_ref(x_149); + x_152 = lean_box(0); +} +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_147); +lean_ctor_set(x_153, 1, x_150); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +x_4 = x_154; +goto block_16; +} +} +else +{ +lean_object* x_155; lean_object* x_156; +lean_dec(x_74); +x_155 = lean_ctor_get(x_138, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_138, 1); +lean_inc(x_156); +lean_dec(x_138); +x_17 = x_155; +x_18 = x_156; goto block_45; } } @@ -3197,182 +3225,172 @@ goto block_45; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 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_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; uint8_t x_190; -x_160 = lean_ctor_get(x_47, 0); -x_161 = lean_ctor_get(x_47, 3); -x_162 = lean_ctor_get(x_47, 4); -x_163 = lean_ctor_get(x_47, 5); -x_164 = lean_ctor_get(x_47, 6); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; 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; uint8_t x_193; uint8_t x_194; +x_162 = lean_ctor_get(x_47, 0); +x_163 = lean_ctor_get(x_47, 3); +x_164 = lean_ctor_get(x_47, 4); +x_165 = lean_ctor_get(x_47, 5); +x_166 = lean_ctor_get(x_47, 6); +lean_inc(x_166); +lean_inc(x_165); lean_inc(x_164); lean_inc(x_163); lean_inc(x_162); -lean_inc(x_161); -lean_inc(x_160); lean_dec(x_47); -x_165 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__3; -x_166 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; -x_167 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__10; -x_168 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12; -x_169 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_169, 0, x_160); -lean_ctor_set(x_169, 1, x_165); -lean_ctor_set(x_169, 2, x_164); -lean_ctor_set(x_169, 3, x_166); -lean_ctor_set(x_169, 4, x_167); -lean_ctor_set(x_169, 5, x_166); -lean_ctor_set(x_169, 6, x_168); -x_170 = lean_io_get_num_heartbeats(x_3); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13; -x_174 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___rarg___lambda__1___closed__3; -x_175 = lean_unsigned_to_nat(0u); -x_176 = lean_unsigned_to_nat(1000u); -x_177 = lean_box(0); -x_178 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__2; -x_179 = l_Lean_firstFrontendMacroScope; -x_180 = 0; -x_181 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_181, 0, x_173); -lean_ctor_set(x_181, 1, x_174); -lean_ctor_set(x_181, 2, x_46); -lean_ctor_set(x_181, 3, x_175); -lean_ctor_set(x_181, 4, x_176); -lean_ctor_set(x_181, 5, x_177); -lean_ctor_set(x_181, 6, x_162); -lean_ctor_set(x_181, 7, x_163); -lean_ctor_set(x_181, 8, x_171); -lean_ctor_set(x_181, 9, x_178); -lean_ctor_set(x_181, 10, x_179); -lean_ctor_set_uint8(x_181, sizeof(void*)*11, x_180); -x_182 = lean_st_mk_ref(x_169, x_172); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_185 = lean_st_ref_get(x_183, x_184); -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_185, 1); +x_167 = lean_box(0); +x_168 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__3; +x_169 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__6; +x_170 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__10; +x_171 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__11; +x_172 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13; +x_173 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_173, 0, x_162); +lean_ctor_set(x_173, 1, x_168); +lean_ctor_set(x_173, 2, x_166); +lean_ctor_set(x_173, 3, x_169); +lean_ctor_set(x_173, 4, x_170); +lean_ctor_set(x_173, 5, x_171); +lean_ctor_set(x_173, 6, x_172); +x_174 = lean_io_get_num_heartbeats(x_3); +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +x_177 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; +x_178 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___rarg___lambda__1___closed__3; +x_179 = lean_unsigned_to_nat(0u); +x_180 = lean_unsigned_to_nat(1000u); +x_181 = lean_box(0); +x_182 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__2; +x_183 = l_Lean_firstFrontendMacroScope; +x_184 = 0; +x_185 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_185, 0, x_177); +lean_ctor_set(x_185, 1, x_178); +lean_ctor_set(x_185, 2, x_46); +lean_ctor_set(x_185, 3, x_179); +lean_ctor_set(x_185, 4, x_180); +lean_ctor_set(x_185, 5, x_181); +lean_ctor_set(x_185, 6, x_164); +lean_ctor_set(x_185, 7, x_165); +lean_ctor_set(x_185, 8, x_175); +lean_ctor_set(x_185, 9, x_182); +lean_ctor_set(x_185, 10, x_183); +lean_ctor_set(x_185, 11, x_167); +lean_ctor_set_uint8(x_185, sizeof(void*)*12, x_184); +lean_ctor_set_uint8(x_185, sizeof(void*)*12 + 1, x_184); +x_186 = lean_st_mk_ref(x_173, x_176); +x_187 = lean_ctor_get(x_186, 0); lean_inc(x_187); -lean_dec(x_185); -x_188 = lean_ctor_get(x_186, 0); +x_188 = lean_ctor_get(x_186, 1); lean_inc(x_188); lean_dec(x_186); -x_189 = l_Lean_Kernel_isDiagnosticsEnabled(x_188); -lean_dec(x_188); -if (x_189 == 0) -{ -uint8_t x_234; -x_234 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -if (x_234 == 0) -{ -uint8_t x_235; -x_235 = 1; -x_190 = x_235; -goto block_233; -} -else -{ -x_190 = x_180; -goto block_233; -} -} -else -{ -uint8_t x_236; -x_236 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -if (x_236 == 0) -{ -x_190 = x_180; -goto block_233; -} -else -{ -uint8_t x_237; -x_237 = 1; -x_190 = x_237; -goto block_233; -} -} -block_233: -{ -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; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t 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; -x_191 = lean_st_ref_take(x_183, x_187); -x_192 = lean_ctor_get(x_191, 0); +x_189 = lean_st_ref_get(x_187, x_188); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_ctor_get(x_190, 0); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = lean_ctor_get(x_192, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_192, 1); -lean_inc(x_195); -x_196 = lean_ctor_get(x_192, 2); -lean_inc(x_196); -x_197 = lean_ctor_get(x_192, 3); -lean_inc(x_197); -x_198 = lean_ctor_get(x_192, 5); -lean_inc(x_198); -x_199 = lean_ctor_get(x_192, 6); -lean_inc(x_199); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - lean_ctor_release(x_192, 1); - lean_ctor_release(x_192, 2); - lean_ctor_release(x_192, 3); - lean_ctor_release(x_192, 4); - lean_ctor_release(x_192, 5); - lean_ctor_release(x_192, 6); - x_200 = x_192; -} else { - lean_dec_ref(x_192); - x_200 = lean_box(0); -} -x_201 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -x_202 = l_Lean_Kernel_enableDiag(x_194, x_201); -if (lean_is_scalar(x_200)) { - x_203 = lean_alloc_ctor(0, 7, 0); -} else { - x_203 = x_200; -} -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_195); -lean_ctor_set(x_203, 2, x_196); -lean_ctor_set(x_203, 3, x_197); -lean_ctor_set(x_203, 4, x_167); -lean_ctor_set(x_203, 5, x_198); -lean_ctor_set(x_203, 6, x_199); -x_204 = lean_st_ref_set(x_183, x_203, x_193); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -lean_dec(x_204); -x_206 = lean_box(0); -lean_inc(x_183); -x_207 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_201, x_161, x_2, x_167, x_206, x_181, x_183, x_205); -if (lean_obj_tag(x_207) == 0) +lean_dec(x_190); +x_193 = l_Lean_Kernel_isDiagnosticsEnabled(x_192); +lean_dec(x_192); +if (x_193 == 0) { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_210 = x_207; -} else { - lean_dec_ref(x_207); - x_210 = lean_box(0); +uint8_t x_238; +x_238 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = 1; +x_194 = x_239; +goto block_237; } -x_211 = lean_st_ref_get(x_183, x_209); -lean_dec(x_183); +else +{ +x_194 = x_184; +goto block_237; +} +} +else +{ +uint8_t x_240; +x_240 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +if (x_240 == 0) +{ +x_194 = x_184; +goto block_237; +} +else +{ +uint8_t x_241; +x_241 = 1; +x_194 = x_241; +goto block_237; +} +} +block_237: +{ +if (x_194 == 0) +{ +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; uint8_t 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; +x_195 = lean_st_ref_take(x_187, x_191); +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 = lean_ctor_get(x_196, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_196, 1); +lean_inc(x_199); +x_200 = lean_ctor_get(x_196, 2); +lean_inc(x_200); +x_201 = lean_ctor_get(x_196, 3); +lean_inc(x_201); +x_202 = lean_ctor_get(x_196, 5); +lean_inc(x_202); +x_203 = lean_ctor_get(x_196, 6); +lean_inc(x_203); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + lean_ctor_release(x_196, 2); + lean_ctor_release(x_196, 3); + lean_ctor_release(x_196, 4); + lean_ctor_release(x_196, 5); + lean_ctor_release(x_196, 6); + x_204 = x_196; +} else { + lean_dec_ref(x_196); + x_204 = lean_box(0); +} +x_205 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +x_206 = l_Lean_Kernel_enableDiag(x_198, x_205); +if (lean_is_scalar(x_204)) { + x_207 = lean_alloc_ctor(0, 7, 0); +} else { + x_207 = x_204; +} +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_199); +lean_ctor_set(x_207, 2, x_200); +lean_ctor_set(x_207, 3, x_201); +lean_ctor_set(x_207, 4, x_170); +lean_ctor_set(x_207, 5, x_202); +lean_ctor_set(x_207, 6, x_203); +x_208 = lean_st_ref_set(x_187, x_207, x_197); +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +lean_dec(x_208); +x_210 = lean_box(0); +lean_inc(x_187); +x_211 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_205, x_163, x_2, x_170, x_210, x_185, x_187, x_209); +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; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; x_212 = lean_ctor_get(x_211, 0); lean_inc(x_212); x_213 = lean_ctor_get(x_211, 1); @@ -3385,61 +3403,61 @@ if (lean_is_exclusive(x_211)) { lean_dec_ref(x_211); x_214 = lean_box(0); } -if (lean_is_scalar(x_210)) { - x_215 = lean_alloc_ctor(0, 2, 0); +x_215 = lean_st_ref_get(x_187, x_213); +lean_dec(x_187); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_218 = x_215; } else { - x_215 = x_210; + lean_dec_ref(x_215); + x_218 = lean_box(0); } -lean_ctor_set(x_215, 0, x_208); -lean_ctor_set(x_215, 1, x_212); if (lean_is_scalar(x_214)) { - x_216 = lean_alloc_ctor(0, 2, 0); + x_219 = lean_alloc_ctor(0, 2, 0); } else { - x_216 = x_214; + x_219 = x_214; } -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_213); -x_4 = x_216; +lean_ctor_set(x_219, 0, x_212); +lean_ctor_set(x_219, 1, x_216); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 0); +} else { + x_220 = x_218; +} +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_217); +x_4 = x_220; goto block_16; } else { -lean_object* x_217; lean_object* x_218; -lean_dec(x_183); -x_217 = lean_ctor_get(x_207, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_207, 1); -lean_inc(x_218); -lean_dec(x_207); -x_17 = x_217; -x_18 = x_218; +lean_object* x_221; lean_object* x_222; +lean_dec(x_187); +x_221 = lean_ctor_get(x_211, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_211, 1); +lean_inc(x_222); +lean_dec(x_211); +x_17 = x_221; +x_18 = x_222; goto block_45; } } else { -uint8_t x_219; lean_object* x_220; lean_object* x_221; -x_219 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14; -x_220 = lean_box(0); -lean_inc(x_183); -x_221 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_219, x_161, x_2, x_167, x_220, x_181, x_183, x_187); -if (lean_obj_tag(x_221) == 0) +uint8_t x_223; lean_object* x_224; lean_object* x_225; +x_223 = l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15; +x_224 = lean_box(0); +lean_inc(x_187); +x_225 = l_Lean_Elab_ContextInfo_runCoreM___rarg___lambda__2(x_46, x_223, x_163, x_2, x_170, x_224, x_185, x_187, x_191); +if (lean_obj_tag(x_225) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_224 = x_221; -} else { - lean_dec_ref(x_221); - x_224 = lean_box(0); -} -x_225 = lean_st_ref_get(x_183, x_223); -lean_dec(x_183); +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; x_226 = lean_ctor_get(x_225, 0); lean_inc(x_226); x_227 = lean_ctor_get(x_225, 1); @@ -3452,34 +3470,48 @@ if (lean_is_exclusive(x_225)) { lean_dec_ref(x_225); x_228 = lean_box(0); } -if (lean_is_scalar(x_224)) { - x_229 = lean_alloc_ctor(0, 2, 0); +x_229 = lean_st_ref_get(x_187, x_227); +lean_dec(x_187); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_232 = x_229; } else { - x_229 = x_224; + lean_dec_ref(x_229); + x_232 = lean_box(0); } -lean_ctor_set(x_229, 0, x_222); -lean_ctor_set(x_229, 1, x_226); if (lean_is_scalar(x_228)) { - x_230 = lean_alloc_ctor(0, 2, 0); + x_233 = lean_alloc_ctor(0, 2, 0); } else { - x_230 = x_228; + x_233 = x_228; } -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_227); -x_4 = x_230; +lean_ctor_set(x_233, 0, x_226); +lean_ctor_set(x_233, 1, x_230); +if (lean_is_scalar(x_232)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_232; +} +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_231); +x_4 = x_234; goto block_16; } else { -lean_object* x_231; lean_object* x_232; -lean_dec(x_183); -x_231 = lean_ctor_get(x_221, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_221, 1); -lean_inc(x_232); -lean_dec(x_221); -x_17 = x_231; -x_18 = x_232; +lean_object* x_235; lean_object* x_236; +lean_dec(x_187); +x_235 = lean_ctor_get(x_225, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_225, 1); +lean_inc(x_236); +lean_dec(x_225); +x_17 = x_235; +x_18 = x_236; goto block_45; } } @@ -4783,15 +4815,19 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; uint8_t x_18; x_16 = lean_ctor_get(x_11, 0); x_17 = lean_ctor_get(x_11, 1); -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_free_object(x_11); lean_dec(x_16); -x_19 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; -x_20 = lean_apply_6(x_2, x_19, x_3, x_4, x_5, x_6, x_17); -return x_20; +x_20 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; +x_21 = lean_apply_6(x_2, x_20, x_3, x_4, x_5, x_6, x_17); +return x_21; } else { @@ -4805,55 +4841,87 @@ return x_11; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_11); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_21); -x_24 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; -x_25 = lean_apply_6(x_2, x_24, x_3, x_4, x_5, x_6, x_22); -return x_25; -} -else -{ -lean_object* x_26; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_21); -lean_ctor_set(x_26, 1, x_22); -return x_26; +return x_11; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_11); +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) +{ +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_22); +x_26 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; +x_27 = lean_apply_6(x_2, x_26, x_3, x_4, x_5, x_6, x_23); +return x_27; +} +else +{ +lean_object* x_28; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_23); +return x_28; +} +} +else +{ +lean_object* x_29; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_23); +return x_29; } } } } else { -uint8_t x_27; -x_27 = !lean_is_exclusive(x_8); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_8, 0); -x_29 = lean_ctor_get(x_8, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); +uint8_t x_30; +x_30 = !lean_is_exclusive(x_8); if (x_30 == 0) { -lean_object* x_31; lean_object* x_32; +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +x_33 = l_Lean_Exception_isInterrupt(x_31); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = l_Lean_Exception_isRuntime(x_31); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_free_object(x_8); -lean_dec(x_28); -x_31 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; -x_32 = lean_apply_6(x_2, x_31, x_3, x_4, x_5, x_6, x_29); -return x_32; +lean_dec(x_31); +x_35 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; +x_36 = lean_apply_6(x_2, x_35, x_3, x_4, x_5, x_6, x_32); +return x_36; } else { @@ -4867,33 +4935,61 @@ return x_8; } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_8, 0); -x_34 = lean_ctor_get(x_8, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_8); -x_35 = l_Lean_Exception_isRuntime(x_33); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_33); -x_36 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; -x_37 = lean_apply_6(x_2, x_36, x_3, x_4, x_5, x_6, x_34); -return x_37; -} -else -{ -lean_object* x_38; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_34); -return x_38; +return x_8; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_8, 0); +x_38 = lean_ctor_get(x_8, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_8); +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) +{ +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_37); +x_41 = l_Lean_Elab_TermInfo_format___lambda__2___closed__2; +x_42 = lean_apply_6(x_2, x_41, x_3, x_4, x_5, x_6, x_38); +return x_42; +} +else +{ +lean_object* x_43; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_37); +lean_ctor_set(x_43, 1, x_38); +return x_43; +} +} +else +{ +lean_object* x_44; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_37); +lean_ctor_set(x_44, 1, x_38); +return x_44; } } } @@ -13217,6 +13313,8 @@ lean_mark_persistent(l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__12); l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13 = _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13(); lean_mark_persistent(l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__13); l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14 = _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14(); +lean_mark_persistent(l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__14); +l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15 = _init_l_Lean_Elab_ContextInfo_runCoreM___rarg___closed__15(); l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__1 = _init_l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__1); l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__2 = _init_l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/InheritDoc.c b/stage0/stdlib/Lean/Elab/InheritDoc.c index 8ec81af12d..d65a1fbb1c 100644 --- a/stage0/stdlib/Lean/Elab/InheritDoc.c +++ b/stage0/stdlib/Lean/Elab/InheritDoc.c @@ -31,7 +31,6 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_String_removeLeadingSpaces(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -42,11 +41,13 @@ static lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_Inheri lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__2; lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*); +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1___closed__1; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3___closed__4; static lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___closed__1; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3___closed__7; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3___closed__5; @@ -65,6 +66,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___closed__2; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17; static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2; +static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__1; lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -75,8 +77,10 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__9; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__5___closed__2; +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_log___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +97,7 @@ static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda_ static lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__1; static lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__3; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__11; +static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__4; lean_object* l_Lean_MessageData_ofExpr(lean_object*); @@ -101,15 +106,17 @@ static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed_ static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__6; static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3___closed__8; lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1; static lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___lambda__1___closed__3; +static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__5; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___boxed(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18; static lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___lambda__1___closed__1; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__4; @@ -119,12 +126,15 @@ static lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda_ lean_object* lean_st_ref_set(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_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___boxed(lean_object*, lean_object*, 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_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDocString___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__5___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -355,7 +365,7 @@ return x_22; } } } -static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1() { +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -363,6 +373,224 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___boxed), 1, 0); +return x_1; +} +} static lean_object* _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2() { _start: { @@ -374,1304 +602,780 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_373; uint8_t x_374; -x_373 = 2; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +lean_object* x_7; uint8_t x_182; uint8_t x_183; +x_182 = 2; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_7 = x_375; -goto block_372; +lean_object* x_184; +x_184 = lean_box(0); +x_7 = x_184; +goto block_181; } else { -lean_object* x_376; uint8_t x_377; +lean_object* x_185; uint8_t x_186; lean_inc(x_2); -x_376 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_377 = lean_unbox(x_376); -lean_dec(x_376); -if (x_377 == 0) +x_185 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_186 = lean_unbox(x_185); +lean_dec(x_185); +if (x_186 == 0) { -lean_object* x_378; -x_378 = lean_box(0); -x_7 = x_378; -goto block_372; +lean_object* x_187; +x_187 = lean_box(0); +x_7 = x_187; +goto block_181; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_188; lean_object* x_189; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_379 = lean_box(0); -x_380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_6); -return x_380; +lean_dec(x_1); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_6); +return x_189; } } -block_372: +block_181: { -uint8_t x_8; lean_object* x_366; uint8_t x_367; uint8_t x_368; +uint8_t x_8; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_dec(x_7); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = 1; -x_368 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_367); -if (x_368 == 0) +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = 1; +x_177 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_176); +if (x_177 == 0) { -lean_dec(x_366); +lean_dec(x_175); x_8 = x_3; -goto block_365; +goto block_174; } else { -lean_object* x_369; uint8_t x_370; -x_369 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2; -x_370 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_366, x_369); -lean_dec(x_366); -if (x_370 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2; +x_179 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_178); +lean_dec(x_175); +if (x_179 == 0) { x_8 = x_3; -goto block_365; +goto block_174; } else { -uint8_t x_371; -x_371 = 2; -x_8 = x_371; -goto block_365; +uint8_t x_180; +x_180 = 2; +x_8 = x_180; +goto block_174; } } -block_365: +block_174: { -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; lean_object* x_17; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 6); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 7); -lean_inc(x_13); -x_14 = l_Lean_replaceRef(x_1, x_11); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_13 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +lean_dec(x_1); +x_14 = 0; +x_15 = l_Lean_Syntax_getPos_x3f(x_13, x_14); +x_16 = l_Lean_Syntax_getTailPos_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ if (lean_obj_tag(x_16) == 0) { -if (lean_obj_tag(x_17) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_10, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +if (x_12 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_box(0); +x_25 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_19, x_9, x_22, x_23, x_8, x_24, x_4, x_5, x_20); +lean_dec(x_5); lean_dec(x_4); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +return x_25; +} +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; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_10, x_22); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 0, x_12); -x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_20); +lean_object* x_26; uint8_t x_27; x_26 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_27 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_23); -lean_ctor_set(x_27, 2, x_24); -lean_ctor_set(x_27, 3, x_26); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_8); -x_28 = lean_st_ref_take(x_5, x_21); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +lean_inc(x_19); +x_27 = l_Lean_MessageData_hasTag(x_26, x_19); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 5); -x_33 = l_Lean_PersistentArray_push___rarg(x_32, x_27); -lean_ctor_set(x_29, 5, x_33); -x_34 = lean_st_ref_set(x_5, x_29, x_30); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +lean_object* x_28; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_28 = lean_box(0); +lean_ctor_set(x_17, 0, x_28); +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_17); +x_29 = lean_box(0); +x_30 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_19, x_9, x_22, x_23, x_8, x_29, x_4, x_5, x_20); +lean_dec(x_5); +lean_dec(x_4); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_FileMap_toPosition(x_10, x_33); +lean_inc(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +if (x_12 == 0) { 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(x_34, 0, x_37); -return x_34; +x_36 = lean_box(0); +x_37 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_31, x_9, x_34, x_35, x_8, x_36, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_37; } else { -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_object* x_38; uint8_t x_39; +x_38 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_31); +x_39 = l_Lean_MessageData_hasTag(x_38, x_31); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_35); lean_dec(x_34); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_31); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_31, x_9, x_34, x_35, x_8, x_42, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_43; +} +} } } else { -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; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 2); -x_44 = lean_ctor_get(x_29, 3); -x_45 = lean_ctor_get(x_29, 4); -x_46 = lean_ctor_get(x_29, 5); -x_47 = lean_ctor_get(x_29, 6); -lean_inc(x_47); -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_dec(x_29); -x_48 = l_Lean_PersistentArray_push___rarg(x_46, x_27); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_43); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_47); -x_50 = lean_st_ref_set(x_5, x_49, x_30); -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); -} +uint8_t x_44; +x_44 = !lean_is_exclusive(x_16); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +x_50 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_51 = l_Lean_FileMap_toPosition(x_10, x_50); +x_52 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_52); +if (x_12 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_free_object(x_46); x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); +x_54 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_48, x_9, x_51, x_16, x_8, x_53, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); return x_54; } -} 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_55 = lean_ctor_get(x_18, 0); -x_56 = lean_ctor_get(x_18, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_18); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Lean_FileMap_toPosition(x_10, x_57); -lean_inc(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_13); -x_61 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -x_62 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_63 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_59); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_63, sizeof(void*)*5 + 1, x_8); -x_64 = lean_st_ref_take(x_5, x_56); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_65, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_65, 4); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 6); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - lean_ctor_release(x_65, 2); - lean_ctor_release(x_65, 3); - lean_ctor_release(x_65, 4); - lean_ctor_release(x_65, 5); - lean_ctor_release(x_65, 6); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -x_75 = l_Lean_PersistentArray_push___rarg(x_72, x_63); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 7, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set(x_76, 1, x_68); -lean_ctor_set(x_76, 2, x_69); -lean_ctor_set(x_76, 3, x_70); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_73); -x_77 = lean_st_ref_set(x_5, x_76, x_66); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; -} else { - lean_dec_ref(x_77); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -} -else +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_48); +x_56 = l_Lean_MessageData_hasTag(x_55, x_48); +if (x_56 == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_17); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_17, 0); -x_84 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_57; +lean_dec(x_16); +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_84); +x_57 = lean_box(0); +lean_ctor_set(x_46, 0, x_57); +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_free_object(x_46); +x_58 = lean_box(0); +x_59 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_48, x_9, x_51, x_16, x_8, x_58, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_63 = l_Lean_FileMap_toPosition(x_10, x_62); +x_64 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_64); +if (x_12 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_60, x_9, x_63, x_16, x_8, x_65, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_60); +x_68 = l_Lean_MessageData_hasTag(x_67, x_60); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_61); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_60, x_9, x_63, x_16, x_8, x_71, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_72; +} +} +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_16, 0); +lean_inc(x_73); +lean_dec(x_16); +x_74 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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_unsigned_to_nat(0u); +lean_inc(x_10); +x_79 = l_Lean_FileMap_toPosition(x_10, x_78); +x_80 = l_Lean_FileMap_toPosition(x_10, x_73); +lean_dec(x_73); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (x_12 == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_75, x_9, x_79, x_81, x_8, x_82, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_83; +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_75); +x_85 = l_Lean_MessageData_hasTag(x_84, x_75); if (x_85 == 0) { -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; uint8_t x_97; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -x_88 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_89 = l_Lean_FileMap_toPosition(x_10, x_88); -x_90 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_90); -lean_ctor_set(x_84, 1, x_13); -lean_ctor_set(x_84, 0, x_12); -x_91 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_86); -x_92 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_9); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_17); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_8); -x_94 = lean_st_ref_take(x_5, x_87); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_86 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_77; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_76); +return x_87; +} +else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_98 = lean_ctor_get(x_95, 5); -x_99 = l_Lean_PersistentArray_push___rarg(x_98, x_93); -lean_ctor_set(x_95, 5, x_99); -x_100 = lean_st_ref_set(x_5, x_95, x_96); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_77); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_75, x_9, x_79, x_81, x_8, x_88, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_89; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_15); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_15, 0); +x_92 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_96); +lean_ctor_set(x_15, 0, x_96); +if (x_12 == 0) +{ +lean_object* x_97; lean_object* x_98; +lean_free_object(x_92); +x_97 = lean_box(0); +x_98 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_94, x_9, x_96, x_15, x_8, x_97, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_98; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_94); +x_100 = l_Lean_MessageData_hasTag(x_99, x_94); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_15); +lean_dec(x_96); +lean_dec(x_94); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_101 = lean_box(0); +lean_ctor_set(x_92, 0, x_101); +return x_92; +} +else { lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = lean_box(0); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_free_object(x_92); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_94, x_9, x_96, x_15, x_8, x_102, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_103; +} +} } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 1); +x_104 = lean_ctor_get(x_92, 0); +x_105 = lean_ctor_get(x_92, 1); +lean_inc(x_105); lean_inc(x_104); -lean_dec(x_100); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_dec(x_92); +x_106 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_106); +lean_ctor_set(x_15, 0, x_106); +if (x_12 == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_104, x_9, x_106, x_15, x_8, x_107, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_104); +x_110 = l_Lean_MessageData_hasTag(x_109, x_104); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_15); +lean_dec(x_106); +lean_dec(x_104); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_104, x_9, x_106, x_15, x_8, x_113, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_114; +} +} } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -x_109 = lean_ctor_get(x_95, 2); -x_110 = lean_ctor_get(x_95, 3); -x_111 = lean_ctor_get(x_95, 4); -x_112 = lean_ctor_get(x_95, 5); -x_113 = lean_ctor_get(x_95, 6); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_114 = l_Lean_PersistentArray_push___rarg(x_112, x_93); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_107); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_111); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_113); -x_116 = lean_st_ref_set(x_5, x_115, x_96); -x_117 = lean_ctor_get(x_116, 1); +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_115 = lean_ctor_get(x_15, 0); +lean_inc(x_115); +lean_dec(x_15); +x_116 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); if (lean_is_exclusive(x_116)) { lean_ctor_release(x_116, 0); lean_ctor_release(x_116, 1); - x_118 = x_116; + x_119 = x_116; } else { lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; + x_119 = lean_box(0); } +x_120 = l_Lean_FileMap_toPosition(x_10, x_115); +lean_dec(x_115); +lean_inc(x_120); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (x_12 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_117, x_9, x_120, x_121, x_8, x_122, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_123; } 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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_121 = lean_ctor_get(x_84, 0); -x_122 = lean_ctor_get(x_84, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_84); -x_123 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_124 = l_Lean_FileMap_toPosition(x_10, x_123); -x_125 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_12); -lean_ctor_set(x_126, 1, x_13); -x_127 = lean_alloc_ctor(3, 2, 0); +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_117); +x_125 = l_Lean_MessageData_hasTag(x_124, x_117); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_117); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_126 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_119; +} lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_129 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_129, 0, x_9); -lean_ctor_set(x_129, 1, x_124); -lean_ctor_set(x_129, 2, x_17); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_8); -x_130 = lean_st_ref_take(x_5, x_122); -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_ctor_set(x_127, 1, x_118); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_119); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_117, x_9, x_120, x_121, x_8, x_128, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_129; +} +} +} +} +else +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_15, 0); +lean_inc(x_130); +lean_dec(x_15); +x_131 = !lean_is_exclusive(x_16); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_16, 0); +x_133 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_10); +x_137 = l_Lean_FileMap_toPosition(x_10, x_130); lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_138 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_138); +if (x_12 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_free_object(x_133); +x_139 = lean_box(0); +x_140 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_135, x_9, x_137, x_16, x_8, x_139, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_140; +} +else +{ +lean_object* x_141; uint8_t x_142; +x_141 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 4); -lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 5); -lean_inc(x_138); -x_139 = lean_ctor_get(x_131, 6); -lean_inc(x_139); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - lean_ctor_release(x_131, 4); - lean_ctor_release(x_131, 5); - lean_ctor_release(x_131, 6); - x_140 = x_131; -} else { - lean_dec_ref(x_131); - x_140 = lean_box(0); +x_142 = l_Lean_MessageData_hasTag(x_141, x_135); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_16); +lean_dec(x_137); +lean_dec(x_135); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_143 = lean_box(0); +lean_ctor_set(x_133, 0, x_143); +return x_133; } -x_141 = l_Lean_PersistentArray_push___rarg(x_138, x_129); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 7, 0); -} else { - x_142 = x_140; +else +{ +lean_object* x_144; lean_object* x_145; +lean_free_object(x_133); +x_144 = lean_box(0); +x_145 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_135, x_9, x_137, x_16, x_8, x_144, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_145; } -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_134); -lean_ctor_set(x_142, 2, x_135); -lean_ctor_set(x_142, 3, x_136); -lean_ctor_set(x_142, 4, x_137); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_139); -x_143 = lean_st_ref_set(x_5, x_142, x_132); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; -} else { - lean_dec_ref(x_143); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_148 = lean_ctor_get(x_17, 0); -lean_inc(x_148); -lean_dec(x_17); -x_149 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = lean_unsigned_to_nat(0u); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); lean_inc(x_10); -x_154 = l_Lean_FileMap_toPosition(x_10, x_153); -x_155 = l_Lean_FileMap_toPosition(x_10, x_148); +x_148 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_149 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_149); +if (x_12 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_146, x_9, x_148, x_16, x_8, x_150, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_151; +} +else +{ +lean_object* x_152; uint8_t x_153; +x_152 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_146); +x_153 = l_Lean_MessageData_hasTag(x_152, x_146); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_16); lean_dec(x_148); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_155); -if (lean_is_scalar(x_152)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_152; +lean_dec(x_146); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_147); +return x_155; } -lean_ctor_set(x_157, 0, x_12); -lean_ctor_set(x_157, 1, x_13); -x_158 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_150); -x_159 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_160 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_160, 0, x_9); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_159); -lean_ctor_set(x_160, 4, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_160, sizeof(void*)*5 + 1, x_8); -x_161 = lean_st_ref_take(x_5, x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -x_166 = lean_ctor_get(x_162, 2); -lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); -lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 6); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - lean_ctor_release(x_162, 6); +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_146, x_9, x_148, x_16, x_8, x_156, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_157; +} +} +} +} +else +{ +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; +x_158 = lean_ctor_get(x_16, 0); +lean_inc(x_158); +lean_dec(x_16); +x_159 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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); +} +lean_inc(x_10); +x_163 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_164 = l_Lean_FileMap_toPosition(x_10, x_158); +lean_dec(x_158); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +if (x_12 == 0) +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_162); +x_166 = lean_box(0); +x_167 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_160, x_9, x_163, x_165, x_8, x_166, x_4, x_5, x_161); +lean_dec(x_5); +lean_dec(x_4); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +lean_inc(x_160); +x_169 = l_Lean_MessageData_hasTag(x_168, x_160); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_165); +lean_dec(x_163); +lean_dec(x_160); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_170 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_push___rarg(x_169, x_160); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 7, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_164); -lean_ctor_set(x_173, 1, x_165); -lean_ctor_set(x_173, 2, x_166); -lean_ctor_set(x_173, 3, x_167); -lean_ctor_set(x_173, 4, x_168); -lean_ctor_set(x_173, 5, x_172); -lean_ctor_set(x_173, 6, x_170); -x_174 = lean_st_ref_set(x_5, x_173, x_163); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -x_177 = lean_box(0); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} } +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_161); +return x_171; } else { -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_179; -x_179 = !lean_is_exclusive(x_16); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = lean_ctor_get(x_16, 0); -x_181 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_160, x_9, x_163, x_165, x_8, x_172, x_4, x_5, x_161); +lean_dec(x_5); lean_dec(x_4); -x_182 = !lean_is_exclusive(x_181); -if (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_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -x_185 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_185); -lean_ctor_set(x_16, 0, x_185); -lean_ctor_set(x_181, 1, x_13); -lean_ctor_set(x_181, 0, x_12); -x_186 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_183); -x_187 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_188 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_188, 0, x_9); -lean_ctor_set(x_188, 1, x_185); -lean_ctor_set(x_188, 2, x_16); -lean_ctor_set(x_188, 3, x_187); -lean_ctor_set(x_188, 4, x_186); -lean_ctor_set_uint8(x_188, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_188, sizeof(void*)*5 + 1, x_8); -x_189 = lean_st_ref_take(x_5, x_184); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_193 = lean_ctor_get(x_190, 5); -x_194 = l_Lean_PersistentArray_push___rarg(x_193, x_188); -lean_ctor_set(x_190, 5, x_194); -x_195 = lean_st_ref_set(x_5, x_190, x_191); -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -lean_dec(x_197); -x_198 = lean_box(0); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -lean_dec(x_195); -x_200 = lean_box(0); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -return x_201; +return x_173; } } -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_202 = lean_ctor_get(x_190, 0); -x_203 = lean_ctor_get(x_190, 1); -x_204 = lean_ctor_get(x_190, 2); -x_205 = lean_ctor_get(x_190, 3); -x_206 = lean_ctor_get(x_190, 4); -x_207 = lean_ctor_get(x_190, 5); -x_208 = lean_ctor_get(x_190, 6); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_190); -x_209 = l_Lean_PersistentArray_push___rarg(x_207, x_188); -x_210 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_205); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_209); -lean_ctor_set(x_210, 6, x_208); -x_211 = lean_st_ref_set(x_5, x_210, x_191); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_216 = lean_ctor_get(x_181, 0); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_181); -x_218 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_218); -lean_ctor_set(x_16, 0, x_218); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_12); -lean_ctor_set(x_219, 1, x_13); -x_220 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -x_221 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_222 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_222, 0, x_9); -lean_ctor_set(x_222, 1, x_218); -lean_ctor_set(x_222, 2, x_16); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set(x_222, 4, x_220); -lean_ctor_set_uint8(x_222, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_222, sizeof(void*)*5 + 1, x_8); -x_223 = lean_st_ref_take(x_5, x_217); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_224, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_224, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_224, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_224, 6); -lean_inc(x_232); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - lean_ctor_release(x_224, 5); - lean_ctor_release(x_224, 6); - x_233 = x_224; -} else { - lean_dec_ref(x_224); - x_233 = lean_box(0); -} -x_234 = l_Lean_PersistentArray_push___rarg(x_231, x_222); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(0, 7, 0); -} else { - x_235 = x_233; -} -lean_ctor_set(x_235, 0, x_226); -lean_ctor_set(x_235, 1, x_227); -lean_ctor_set(x_235, 2, x_228); -lean_ctor_set(x_235, 3, x_229); -lean_ctor_set(x_235, 4, x_230); -lean_ctor_set(x_235, 5, x_234); -lean_ctor_set(x_235, 6, x_232); -x_236 = lean_st_ref_set(x_5, x_235, x_225); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; -} else { - lean_dec_ref(x_236); - x_238 = lean_box(0); -} -x_239 = lean_box(0); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_238; -} -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_237); -return x_240; -} -} -else -{ -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_241 = lean_ctor_get(x_16, 0); -lean_inc(x_241); -lean_dec(x_16); -x_242 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_245 = x_242; -} else { - lean_dec_ref(x_242); - x_245 = lean_box(0); -} -x_246 = l_Lean_FileMap_toPosition(x_10, x_241); -lean_dec(x_241); -lean_inc(x_246); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -if (lean_is_scalar(x_245)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_245; -} -lean_ctor_set(x_248, 0, x_12); -lean_ctor_set(x_248, 1, x_13); -x_249 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_243); -x_250 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_251 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_251, 0, x_9); -lean_ctor_set(x_251, 1, x_246); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_250); -lean_ctor_set(x_251, 4, x_249); -lean_ctor_set_uint8(x_251, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_251, sizeof(void*)*5 + 1, x_8); -x_252 = lean_st_ref_take(x_5, x_244); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = lean_ctor_get(x_253, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_253, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_253, 2); -lean_inc(x_257); -x_258 = lean_ctor_get(x_253, 3); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 4); -lean_inc(x_259); -x_260 = lean_ctor_get(x_253, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_253, 6); -lean_inc(x_261); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - lean_ctor_release(x_253, 5); - lean_ctor_release(x_253, 6); - x_262 = x_253; -} else { - lean_dec_ref(x_253); - x_262 = lean_box(0); -} -x_263 = l_Lean_PersistentArray_push___rarg(x_260, x_251); -if (lean_is_scalar(x_262)) { - x_264 = lean_alloc_ctor(0, 7, 0); -} else { - x_264 = x_262; -} -lean_ctor_set(x_264, 0, x_255); -lean_ctor_set(x_264, 1, x_256); -lean_ctor_set(x_264, 2, x_257); -lean_ctor_set(x_264, 3, x_258); -lean_ctor_set(x_264, 4, x_259); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_261); -x_265 = lean_st_ref_set(x_5, x_264, x_254); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -} -else -{ -lean_object* x_270; uint8_t x_271; -x_270 = lean_ctor_get(x_16, 0); -lean_inc(x_270); -lean_dec(x_16); -x_271 = !lean_is_exclusive(x_17); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_17, 0); -x_273 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_274 = !lean_is_exclusive(x_273); -if (x_274 == 0) -{ -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; uint8_t x_285; -x_275 = lean_ctor_get(x_273, 0); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_10); -x_277 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_278 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_278); -lean_ctor_set(x_273, 1, x_13); -lean_ctor_set(x_273, 0, x_12); -x_279 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_279, 0, x_273); -lean_ctor_set(x_279, 1, x_275); -x_280 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_281 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_281, 0, x_9); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_17); -lean_ctor_set(x_281, 3, x_280); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set_uint8(x_281, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_281, sizeof(void*)*5 + 1, x_8); -x_282 = lean_st_ref_take(x_5, x_276); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = !lean_is_exclusive(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_286 = lean_ctor_get(x_283, 5); -x_287 = l_Lean_PersistentArray_push___rarg(x_286, x_281); -lean_ctor_set(x_283, 5, x_287); -x_288 = lean_st_ref_set(x_5, x_283, x_284); -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -lean_dec(x_290); -x_291 = lean_box(0); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 1); -lean_inc(x_292); -lean_dec(x_288); -x_293 = lean_box(0); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_295 = lean_ctor_get(x_283, 0); -x_296 = lean_ctor_get(x_283, 1); -x_297 = lean_ctor_get(x_283, 2); -x_298 = lean_ctor_get(x_283, 3); -x_299 = lean_ctor_get(x_283, 4); -x_300 = lean_ctor_get(x_283, 5); -x_301 = lean_ctor_get(x_283, 6); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_283); -x_302 = l_Lean_PersistentArray_push___rarg(x_300, x_281); -x_303 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_303, 0, x_295); -lean_ctor_set(x_303, 1, x_296); -lean_ctor_set(x_303, 2, x_297); -lean_ctor_set(x_303, 3, x_298); -lean_ctor_set(x_303, 4, x_299); -lean_ctor_set(x_303, 5, x_302); -lean_ctor_set(x_303, 6, x_301); -x_304 = lean_st_ref_set(x_5, x_303, x_284); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_306 = x_304; -} else { - lean_dec_ref(x_304); - x_306 = lean_box(0); -} -x_307 = lean_box(0); -if (lean_is_scalar(x_306)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_306; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -else -{ -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; 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; -x_309 = lean_ctor_get(x_273, 0); -x_310 = lean_ctor_get(x_273, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_273); -lean_inc(x_10); -x_311 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_312 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_312); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_12); -lean_ctor_set(x_313, 1, x_13); -x_314 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_309); -x_315 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_316 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_316, 0, x_9); -lean_ctor_set(x_316, 1, x_311); -lean_ctor_set(x_316, 2, x_17); -lean_ctor_set(x_316, 3, x_315); -lean_ctor_set(x_316, 4, x_314); -lean_ctor_set_uint8(x_316, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_316, sizeof(void*)*5 + 1, x_8); -x_317 = lean_st_ref_take(x_5, x_310); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = lean_ctor_get(x_318, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_318, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_318, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_318, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_318, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_318, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_318, 6); -lean_inc(x_326); -if (lean_is_exclusive(x_318)) { - lean_ctor_release(x_318, 0); - lean_ctor_release(x_318, 1); - lean_ctor_release(x_318, 2); - lean_ctor_release(x_318, 3); - lean_ctor_release(x_318, 4); - lean_ctor_release(x_318, 5); - lean_ctor_release(x_318, 6); - x_327 = x_318; -} else { - lean_dec_ref(x_318); - x_327 = lean_box(0); -} -x_328 = l_Lean_PersistentArray_push___rarg(x_325, x_316); -if (lean_is_scalar(x_327)) { - x_329 = lean_alloc_ctor(0, 7, 0); -} else { - x_329 = x_327; -} -lean_ctor_set(x_329, 0, x_320); -lean_ctor_set(x_329, 1, x_321); -lean_ctor_set(x_329, 2, x_322); -lean_ctor_set(x_329, 3, x_323); -lean_ctor_set(x_329, 4, x_324); -lean_ctor_set(x_329, 5, x_328); -lean_ctor_set(x_329, 6, x_326); -x_330 = lean_st_ref_set(x_5, x_329, x_319); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_332 = x_330; -} else { - lean_dec_ref(x_330); - x_332 = lean_box(0); -} -x_333 = lean_box(0); -if (lean_is_scalar(x_332)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_332; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_331); -return x_334; -} -} -else -{ -lean_object* x_335; 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; 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_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; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_335 = lean_ctor_get(x_17, 0); -lean_inc(x_335); -lean_dec(x_17); -x_336 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; -} else { - lean_dec_ref(x_336); - x_339 = lean_box(0); -} -lean_inc(x_10); -x_340 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_341 = l_Lean_FileMap_toPosition(x_10, x_335); -lean_dec(x_335); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_12); -lean_ctor_set(x_343, 1, x_13); -x_344 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_337); -x_345 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; -x_346 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_346, 0, x_9); -lean_ctor_set(x_346, 1, x_340); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_345); -lean_ctor_set(x_346, 4, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_346, sizeof(void*)*5 + 1, x_8); -x_347 = lean_st_ref_take(x_5, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get(x_348, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_348, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 2); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -x_355 = lean_ctor_get(x_348, 5); -lean_inc(x_355); -x_356 = lean_ctor_get(x_348, 6); -lean_inc(x_356); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - x_357 = x_348; -} else { - lean_dec_ref(x_348); - x_357 = lean_box(0); -} -x_358 = l_Lean_PersistentArray_push___rarg(x_355, x_346); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 7, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_350); -lean_ctor_set(x_359, 1, x_351); -lean_ctor_set(x_359, 2, x_352); -lean_ctor_set(x_359, 3, x_353); -lean_ctor_set(x_359, 4, x_354); -lean_ctor_set(x_359, 5, x_358); -lean_ctor_set(x_359, 6, x_356); -x_360 = lean_st_ref_set(x_5, x_359, x_349); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_362 = x_360; -} else { - lean_dec_ref(x_360); - x_362 = lean_box(0); -} -x_363 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -return x_364; } } } @@ -1956,8 +1660,6 @@ lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_3, 5); lean_inc(x_6); x_7 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(x_6, x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_6); return x_7; } } @@ -1990,7 +1692,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____l _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1; +x_1 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -2063,8 +1765,6 @@ lean_ctor_set(x_8, 1, x_24); lean_ctor_set(x_8, 0, x_14); x_25 = 1; x_26 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(x_2, x_8, x_25, x_5, x_6, x_21); -lean_dec(x_6); -lean_dec(x_2); return x_26; } else @@ -2121,8 +1821,6 @@ lean_ctor_set(x_8, 1, x_38); lean_ctor_set(x_8, 0, x_37); x_39 = 1; x_40 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(x_2, x_8, x_39, x_5, x_6, x_34); -lean_dec(x_6); -lean_dec(x_2); return x_40; } else @@ -2226,8 +1924,6 @@ lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); x_64 = 1; x_65 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(x_2, x_63, x_64, x_5, x_6, x_58); -lean_dec(x_6); -lean_dec(x_2); return x_65; } else @@ -2657,7 +2353,7 @@ return x_92; } else { -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; +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; uint8_t x_106; lean_object* x_107; lean_object* x_108; x_93 = lean_ctor_get(x_5, 0); x_94 = lean_ctor_get(x_5, 1); x_95 = lean_ctor_get(x_5, 2); @@ -2669,7 +2365,10 @@ x_100 = lean_ctor_get(x_5, 7); x_101 = lean_ctor_get(x_5, 8); x_102 = lean_ctor_get(x_5, 9); x_103 = lean_ctor_get(x_5, 10); -x_104 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_104 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_105 = lean_ctor_get(x_5, 11); +x_106 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_105); lean_inc(x_103); lean_inc(x_102); lean_inc(x_101); @@ -2682,197 +2381,199 @@ lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_dec(x_5); -x_105 = l_Lean_replaceRef(x_1, x_98); +x_107 = l_Lean_replaceRef(x_1, x_98); lean_dec(x_98); lean_dec(x_1); -x_106 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_106, 0, x_93); -lean_ctor_set(x_106, 1, x_94); -lean_ctor_set(x_106, 2, x_95); -lean_ctor_set(x_106, 3, x_96); -lean_ctor_set(x_106, 4, x_97); -lean_ctor_set(x_106, 5, x_105); -lean_ctor_set(x_106, 6, x_99); -lean_ctor_set(x_106, 7, x_100); -lean_ctor_set(x_106, 8, x_101); -lean_ctor_set(x_106, 9, x_102); -lean_ctor_set(x_106, 10, x_103); -lean_ctor_set_uint8(x_106, sizeof(void*)*11, x_104); +x_108 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_108, 0, x_93); +lean_ctor_set(x_108, 1, x_94); +lean_ctor_set(x_108, 2, x_95); +lean_ctor_set(x_108, 3, x_96); +lean_ctor_set(x_108, 4, x_97); +lean_ctor_set(x_108, 5, x_107); +lean_ctor_set(x_108, 6, x_99); +lean_ctor_set(x_108, 7, x_100); +lean_ctor_set(x_108, 8, x_101); +lean_ctor_set(x_108, 9, x_102); +lean_ctor_set(x_108, 10, x_103); +lean_ctor_set(x_108, 11, x_105); +lean_ctor_set_uint8(x_108, sizeof(void*)*12, x_104); +lean_ctor_set_uint8(x_108, sizeof(void*)*12 + 1, x_106); if (lean_obj_tag(x_4) == 0) { -lean_object* x_107; lean_object* x_108; +lean_object* x_109; lean_object* x_110; lean_dec(x_2); -x_107 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__2; -x_108 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_107, x_106, x_6, x_7); +x_109 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__2; +x_110 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_109, x_108, x_6, x_7); lean_dec(x_6); -lean_dec(x_106); -return x_108; +lean_dec(x_108); +return x_110; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_4, 0); -lean_inc(x_109); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_4, 0); +lean_inc(x_111); lean_dec(x_4); -x_110 = lean_box(0); +x_112 = lean_box(0); lean_inc(x_6); -lean_inc(x_106); -lean_inc(x_109); -x_111 = l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(x_109, x_110, x_106, x_6, x_7); -if (lean_obj_tag(x_111) == 0) +lean_inc(x_108); +lean_inc(x_111); +x_113 = l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(x_111, x_112, x_108, x_6, x_7); +if (lean_obj_tag(x_113) == 0) { -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; uint8_t x_119; lean_object* x_120; lean_object* x_121; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_st_ref_get(x_6, x_113); -x_115 = lean_ctor_get(x_114, 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; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_117 = x_114; -} else { - lean_dec_ref(x_114); - x_117 = lean_box(0); -} -x_118 = lean_ctor_get(x_115, 0); +lean_dec(x_113); +x_116 = lean_st_ref_get(x_6, x_115); +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_115); -x_119 = 1; -lean_inc(x_2); -x_120 = l_Lean_findDocString_x3f(x_118, x_2, x_119, x_116); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; +} else { + lean_dec_ref(x_116); + x_119 = lean_box(0); +} +x_120 = lean_ctor_get(x_117, 0); +lean_inc(x_120); lean_dec(x_117); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_box(0); -x_124 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1(x_112, x_109, x_2, x_123, x_106, x_6, x_122); -return x_124; +x_121 = 1; +lean_inc(x_2); +x_122 = l_Lean_findDocString_x3f(x_120, x_2, x_121, x_118); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_119); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = lean_box(0); +x_126 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1(x_114, x_111, x_2, x_125, x_108, x_6, x_124); +return x_126; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_121); -x_125 = lean_ctor_get(x_120, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_126 = x_120; +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_123); +x_127 = lean_ctor_get(x_122, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_128 = x_122; } else { - lean_dec_ref(x_120); - x_126 = lean_box(0); + lean_dec_ref(x_122); + x_128 = lean_box(0); } lean_inc(x_2); -x_127 = l_Lean_mkConstWithLevelParams___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__1(x_2, x_106, x_6, x_125); -if (lean_obj_tag(x_127) == 0) +x_129 = l_Lean_mkConstWithLevelParams___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__1(x_2, x_108, x_6, x_127); +if (lean_obj_tag(x_129) == 0) { -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_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); -x_130 = l_Lean_MessageData_ofExpr(x_128); -x_131 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1___closed__1; -if (lean_is_scalar(x_126)) { - x_132 = lean_alloc_ctor(6, 2, 0); -} else { - x_132 = x_126; - lean_ctor_set_tag(x_132, 6); -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_130); -x_133 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__4; -if (lean_is_scalar(x_117)) { +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_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = l_Lean_MessageData_ofExpr(x_130); +x_133 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1___closed__1; +if (lean_is_scalar(x_128)) { x_134 = lean_alloc_ctor(6, 2, 0); } else { - x_134 = x_117; + x_134 = x_128; lean_ctor_set_tag(x_134, 6); } -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +x_135 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__2___closed__4; +if (lean_is_scalar(x_119)) { + x_136 = lean_alloc_ctor(6, 2, 0); +} else { + x_136 = x_119; + lean_ctor_set_tag(x_136, 6); +} +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); lean_inc(x_6); -lean_inc(x_106); -x_135 = l_Lean_logWarning___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__6(x_134, x_106, x_6, x_129); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_138 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1(x_112, x_109, x_2, x_136, x_106, x_6, x_137); -return x_138; -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_126); -lean_dec(x_117); -lean_dec(x_112); -lean_dec(x_109); -lean_dec(x_106); -lean_dec(x_6); -lean_dec(x_2); -x_139 = lean_ctor_get(x_127, 0); +lean_inc(x_108); +x_137 = l_Lean_logWarning___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__6(x_136, x_108, x_6, x_131); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_127, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_141 = x_127; -} else { - lean_dec_ref(x_127); - x_141 = lean_box(0); +lean_dec(x_137); +x_140 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__1(x_114, x_111, x_2, x_138, x_108, x_6, x_139); +return x_140; } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_128); +lean_dec(x_119); +lean_dec(x_114); +lean_dec(x_111); +lean_dec(x_108); +lean_dec(x_6); +lean_dec(x_2); +x_141 = lean_ctor_get(x_129, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_129, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_143 = x_129; } else { - x_142 = x_141; + lean_dec_ref(x_129); + x_143 = lean_box(0); } -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_109); -lean_dec(x_106); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_111); +lean_dec(x_108); lean_dec(x_6); lean_dec(x_2); -x_143 = lean_ctor_get(x_111, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_111, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_145 = x_111; +x_145 = lean_ctor_get(x_113, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_113, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_147 = x_113; } else { - lean_dec_ref(x_111); - x_145 = lean_box(0); + lean_dec_ref(x_113); + x_147 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_145; + x_148 = x_147; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } } } @@ -3209,22 +2910,14 @@ return x_3; static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__6; -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__7; +x_2 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__9() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__8() { _start: { lean_object* x_1; @@ -3232,17 +2925,17 @@ x_1 = lean_mk_string_from_bytes("InheritDoc", 10); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__10() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__8; -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__9; +x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__7; +x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__11() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__10() { _start: { lean_object* x_1; @@ -3250,27 +2943,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__12() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__10; -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__11; +x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__9; +x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__13() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__12; +x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__11; x_2 = lean_unsigned_to_nat(4u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__14() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__13() { _start: { lean_object* x_1; @@ -3278,17 +2971,17 @@ x_1 = lean_mk_string_from_bytes("inherit_doc", 11); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__15() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__14; +x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__15() { _start: { lean_object* x_1; @@ -3296,13 +2989,13 @@ x_1 = lean_mk_string_from_bytes("inherit documentation from a specified declarat return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; -x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__13; -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__15; -x_3 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16; +x_1 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__12; +x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__14; +x_3 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__15; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -3312,7 +3005,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17() { _start: { lean_object* x_1; @@ -3324,11 +3017,11 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4_(lean _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; -x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__15; +x_2 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__14; x_3 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____lambda__4___boxed), 7, 1); lean_closure_set(x_3, 0, x_2); -x_4 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17; -x_5 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18; +x_4 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16; +x_5 = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17; x_6 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_3); @@ -3367,6 +3060,29 @@ lean_dec(x_2); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____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: { @@ -3374,8 +3090,6 @@ uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); x_8 = l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_1); return x_8; } } @@ -3442,6 +3156,16 @@ l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec lean_mark_persistent(l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__3); l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__4 = _init_l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__4(); lean_mark_persistent(l_Lean_getConstInfo___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__2___closed__4); +l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__1___closed__1); +l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__1); +l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__2); +l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__3); +l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___lambda__2___closed__4); l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__1); l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2 = _init_l_Lean_logAt___at_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____spec__4___closed__2(); @@ -3534,8 +3258,6 @@ l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16 = _init_l_Lean_i lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__16); l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17 = _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17(); lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__17); -l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18 = _init_l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4____closed__18); if (builtin) {res = l_Lean_initFn____x40_Lean_Elab_InheritDoc___hyg_4_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index 29e37cb7b6..ba8d36007e 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -43,6 +43,7 @@ extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(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_isInterrupt(lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -421,7 +422,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -433,7 +434,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -446,29 +450,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -1421,7 +1427,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -1433,7 +1439,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -1446,29 +1455,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -1577,7 +1588,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -1589,7 +1600,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -1602,29 +1616,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -1733,7 +1749,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -1745,7 +1761,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -1758,29 +1777,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__13(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__13(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -3023,7 +3044,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -3035,7 +3056,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -3048,29 +3072,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -3179,7 +3205,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -3191,7 +3217,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -3204,29 +3233,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__22(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__22(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -3996,7 +4027,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4008,7 +4039,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4021,24 +4055,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -4479,7 +4515,7 @@ return x_13; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_14 = lean_array_uget(x_1, x_3); x_15 = lean_ctor_get(x_9, 0); lean_inc(x_15); @@ -4503,80 +4539,89 @@ x_24 = lean_ctor_get(x_9, 9); lean_inc(x_24); x_25 = lean_ctor_get(x_9, 10); lean_inc(x_25); -x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_27 = l_Lean_replaceRef(x_14, x_20); +x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_27 = lean_ctor_get(x_9, 11); +lean_inc(x_27); +x_28 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_29 = l_Lean_replaceRef(x_14, x_20); lean_dec(x_20); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_29 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__19(x_14, x_5, x_6, x_7, x_8, x_28, x_10, x_11); -if (lean_obj_tag(x_29) == 0) +x_31 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__19(x_14, x_5, x_6, x_7, x_8, x_30, x_10, x_11); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_array_push(x_4, x_30); -x_33 = 1; -x_34 = lean_usize_add(x_3, x_33); -x_3 = x_34; -x_4 = x_32; -x_11 = x_31; +lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; +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_array_push(x_4, x_32); +x_35 = 1; +x_36 = lean_usize_add(x_3, x_35); +x_3 = x_36; +x_4 = x_34; +x_11 = x_33; goto _start; } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_29); -if (x_36 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_29, 0); -x_38 = lean_ctor_get(x_29, 1); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_31, 0); +x_40 = lean_ctor_get(x_31, 1); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) { -lean_object* x_40; -lean_free_object(x_29); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +lean_free_object(x_31); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_40 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_38); -if (lean_obj_tag(x_40) == 0) +x_43 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_41; size_t x_42; size_t x_43; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = 1; -x_43 = lean_usize_add(x_3, x_42); -x_3 = x_43; -x_11 = x_41; +lean_object* x_44; size_t x_45; size_t x_46; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = 1; +x_46 = lean_usize_add(x_3, x_45); +x_3 = x_46; +x_11 = x_44; goto _start; } else { -uint8_t x_45; +uint8_t x_48; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4584,72 +4629,88 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) { -return x_40; +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -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); -return x_29; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_29, 0); -x_50 = lean_ctor_get(x_29, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); lean_inc(x_50); lean_inc(x_49); -lean_dec(x_29); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) +lean_dec(x_43); +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 { -lean_object* x_52; +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); +return x_31; +} +} +else +{ +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); +return x_31; +} +} +else +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_31, 0); +x_53 = lean_ctor_get(x_31, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_31); +x_54 = l_Lean_Exception_isInterrupt(x_52); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = l_Lean_Exception_isRuntime(x_52); +if (x_55 == 0) +{ +lean_object* x_56; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_52 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_52) == 0) +x_56 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_53; size_t x_54; size_t x_55; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = 1; -x_55 = lean_usize_add(x_3, x_54); -x_3 = x_55; -x_11 = x_53; +lean_object* x_57; size_t x_58; size_t x_59; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = 1; +x_59 = lean_usize_add(x_3, x_58); +x_3 = x_59; +x_11 = x_57; goto _start; } else { -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_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4657,31 +4718,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_59 = x_52; +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; } else { - lean_dec_ref(x_52); - x_59 = lean_box(0); + lean_dec_ref(x_56); + x_63 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_60 = x_59; + x_64 = x_63; } -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; } } else { -lean_object* x_61; +lean_object* x_65; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4689,10 +4750,26 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_49); -lean_ctor_set(x_61, 1, x_50); -return x_61; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_52); +lean_ctor_set(x_65, 1, x_53); +return x_65; +} +} +else +{ +lean_object* x_66; +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_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_52); +lean_ctor_set(x_66, 1, x_53); +return x_66; } } } @@ -7045,7 +7122,7 @@ return x_36; } 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; 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_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +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; uint8_t x_48; lean_object* x_49; uint8_t 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; x_37 = lean_ctor_get(x_10, 0); x_38 = lean_ctor_get(x_10, 1); x_39 = lean_ctor_get(x_10, 2); @@ -7057,7 +7134,10 @@ x_44 = lean_ctor_get(x_10, 7); x_45 = lean_ctor_get(x_10, 8); x_46 = lean_ctor_get(x_10, 9); x_47 = lean_ctor_get(x_10, 10); -x_48 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_48 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_49 = lean_ctor_get(x_10, 11); +x_50 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_49); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -7070,44 +7150,46 @@ lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_dec(x_10); -x_49 = l_Lean_replaceRef(x_22, x_42); +x_51 = l_Lean_replaceRef(x_22, x_42); lean_dec(x_42); lean_dec(x_22); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_37); -lean_ctor_set(x_50, 1, x_38); -lean_ctor_set(x_50, 2, x_39); -lean_ctor_set(x_50, 3, x_40); -lean_ctor_set(x_50, 4, x_41); -lean_ctor_set(x_50, 5, x_49); -lean_ctor_set(x_50, 6, x_43); -lean_ctor_set(x_50, 7, x_44); -lean_ctor_set(x_50, 8, x_45); -lean_ctor_set(x_50, 9, x_46); -lean_ctor_set(x_50, 10, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_48); -x_51 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_28, x_6, x_7, x_8, x_9, x_50, x_11, x_12); -lean_dec(x_50); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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; +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_37); +lean_ctor_set(x_52, 1, x_38); +lean_ctor_set(x_52, 2, x_39); +lean_ctor_set(x_52, 3, x_40); +lean_ctor_set(x_52, 4, x_41); +lean_ctor_set(x_52, 5, x_51); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_49); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_50); +x_53 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_28, x_6, x_7, x_8, x_9, x_52, x_11, x_12); +lean_dec(x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; } else { - lean_dec_ref(x_51); - x_54 = lean_box(0); + lean_dec_ref(x_53); + x_56 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_57 = x_56; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } } diff --git a/stage0/stdlib/Lean/Elab/Macro.c b/stage0/stdlib/Lean/Elab/Macro.c index aefbf8511b..0b2d5c0ee5 100644 --- a/stage0/stdlib/Lean/Elab/Macro.c +++ b/stage0/stdlib/Lean/Elab/Macro.c @@ -3601,7 +3601,7 @@ 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; lean_object* x_85; lean_object* x_86; lean_object* x_87; +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; uint8_t x_87; lean_object* x_88; lean_object* x_89; x_78 = lean_ctor_get(x_11, 0); x_79 = lean_ctor_get(x_11, 1); x_80 = lean_ctor_get(x_11, 2); @@ -3610,6 +3610,9 @@ x_82 = lean_ctor_get(x_11, 4); x_83 = lean_ctor_get(x_11, 5); x_84 = lean_ctor_get(x_11, 7); x_85 = lean_ctor_get(x_11, 8); +x_86 = lean_ctor_get(x_11, 9); +x_87 = lean_ctor_get_uint8(x_11, sizeof(void*)*10); +lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); @@ -3619,89 +3622,91 @@ lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_dec(x_11); -x_86 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_86, 0, x_78); -lean_ctor_set(x_86, 1, x_79); -lean_ctor_set(x_86, 2, x_80); -lean_ctor_set(x_86, 3, x_81); -lean_ctor_set(x_86, 4, x_82); -lean_ctor_set(x_86, 5, x_83); -lean_ctor_set(x_86, 6, x_36); -lean_ctor_set(x_86, 7, x_84); -lean_ctor_set(x_86, 8, x_85); +x_88 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_88, 0, x_78); +lean_ctor_set(x_88, 1, x_79); +lean_ctor_set(x_88, 2, x_80); +lean_ctor_set(x_88, 3, x_81); +lean_ctor_set(x_88, 4, x_82); +lean_ctor_set(x_88, 5, x_83); +lean_ctor_set(x_88, 6, x_36); +lean_ctor_set(x_88, 7, x_84); +lean_ctor_set(x_88, 8, x_85); +lean_ctor_set(x_88, 9, x_86); +lean_ctor_set_uint8(x_88, sizeof(void*)*10, x_87); lean_inc(x_12); -lean_inc(x_86); -x_87 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_32, x_86, x_12, x_35); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; size_t x_91; size_t x_92; lean_object* x_93; -x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_array_get_size(x_25); -x_91 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_92 = 0; -lean_inc(x_12); -lean_inc(x_86); -x_93 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(x_91, x_92, x_25, x_86, x_12, x_89); -if (lean_obj_tag(x_93) == 0) +x_89 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__4(x_32, x_88, x_12, x_35); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = l_Array_unzip___rarg(x_94); -lean_dec(x_94); +lean_object* x_90; lean_object* x_91; lean_object* x_92; size_t x_93; size_t x_94; lean_object* x_95; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_array_get_size(x_25); +x_93 = lean_usize_of_nat(x_92); +lean_dec(x_92); +x_94 = 0; +lean_inc(x_12); +lean_inc(x_88); +x_95 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(x_93, x_94, x_25, x_88, x_12, x_91); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = l_Array_unzip___rarg(x_96); +lean_dec(x_96); if (lean_obj_tag(x_6) == 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; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = l_Lean_Syntax_getId(x_22); -lean_inc(x_97); -x_100 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_100, 0, x_29); -lean_ctor_set(x_100, 1, x_30); -lean_ctor_set(x_100, 2, x_97); -x_101 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax), 4, 2); -lean_closure_set(x_101, 0, x_99); -lean_closure_set(x_101, 1, x_100); +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_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = l_Lean_Syntax_getId(x_22); +lean_inc(x_99); +x_102 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_102, 0, x_29); +lean_ctor_set(x_102, 1, x_30); +lean_ctor_set(x_102, 2, x_99); +x_103 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax), 4, 2); +lean_closure_set(x_103, 0, x_101); +lean_closure_set(x_103, 1, x_102); lean_inc(x_12); -lean_inc(x_86); -x_102 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__9(x_101, x_86, x_12, x_95); -if (lean_obj_tag(x_102) == 0) +lean_inc(x_88); +x_104 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__9(x_103, x_88, x_12, x_97); +if (lean_obj_tag(x_104) == 0) { -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_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -lean_inc(x_5); -x_105 = l_Lean_Elab_Command_addMacroScopeIfLocal___at_Lean_Elab_Command_elabSyntax___spec__13(x_103, x_5, x_86, x_12, x_104); -x_106 = lean_ctor_get(x_105, 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; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -lean_dec(x_105); -x_108 = l_Lean_Elab_Command_elabMacro___lambda__2(x_98, x_26, x_30, x_24, x_3, x_4, x_22, x_88, x_97, x_92, x_5, x_6, x_2, x_7, x_8, x_106, x_86, x_12, x_107); -return x_108; +lean_dec(x_104); +lean_inc(x_5); +x_107 = l_Lean_Elab_Command_addMacroScopeIfLocal___at_Lean_Elab_Command_elabSyntax___spec__13(x_105, x_5, x_88, x_12, x_106); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = l_Lean_Elab_Command_elabMacro___lambda__2(x_100, x_26, x_30, x_24, x_3, x_4, x_22, x_90, x_99, x_94, x_5, x_6, x_2, x_7, x_8, x_108, x_88, x_12, x_109); +return x_110; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_98); -lean_dec(x_97); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_100); +lean_dec(x_99); +lean_dec(x_90); lean_dec(x_88); -lean_dec(x_86); lean_dec(x_24); lean_dec(x_22); lean_dec(x_12); @@ -3711,49 +3716,49 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_109 = lean_ctor_get(x_102, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_102, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_111 = x_102; +x_111 = lean_ctor_get(x_104, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_104, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_113 = x_104; } else { - lean_dec_ref(x_102); - x_111 = lean_box(0); + lean_dec_ref(x_104); + x_113 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); } else { - x_112 = x_111; + x_114 = x_113; } -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +return x_114; } } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_113 = lean_ctor_get(x_96, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_96, 1); -lean_inc(x_114); -lean_dec(x_96); -x_115 = lean_ctor_get(x_6, 0); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_115 = lean_ctor_get(x_98, 0); lean_inc(x_115); -x_116 = l_Lean_Syntax_getId(x_115); -lean_dec(x_115); -x_117 = l_Lean_Elab_Command_elabMacro___lambda__2(x_114, x_26, x_30, x_24, x_3, x_4, x_22, x_88, x_113, x_92, x_5, x_6, x_2, x_7, x_8, x_116, x_86, x_12, x_95); -return x_117; +x_116 = lean_ctor_get(x_98, 1); +lean_inc(x_116); +lean_dec(x_98); +x_117 = lean_ctor_get(x_6, 0); +lean_inc(x_117); +x_118 = l_Lean_Syntax_getId(x_117); +lean_dec(x_117); +x_119 = l_Lean_Elab_Command_elabMacro___lambda__2(x_116, x_26, x_30, x_24, x_3, x_4, x_22, x_90, x_115, x_94, x_5, x_6, x_2, x_7, x_8, x_118, x_88, x_12, x_97); +return x_119; } } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_90); lean_dec(x_88); -lean_dec(x_86); lean_dec(x_24); lean_dec(x_22); lean_dec(x_12); @@ -3764,32 +3769,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_118 = lean_ctor_get(x_93, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_93, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_120 = x_93; +x_120 = lean_ctor_get(x_95, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_95, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_122 = x_95; } else { - lean_dec_ref(x_93); - x_120 = lean_box(0); + lean_dec_ref(x_95); + x_122 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; + x_123 = x_122; } -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); -return x_121; +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_86); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_88); lean_dec(x_25); lean_dec(x_24); lean_dec(x_22); @@ -3801,26 +3806,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_122 = lean_ctor_get(x_87, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_87, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_124 = x_87; +x_124 = lean_ctor_get(x_89, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_89, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_126 = x_89; } else { - lean_dec_ref(x_87); - x_124 = lean_box(0); + lean_dec_ref(x_89); + x_126 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_125 = x_124; + x_127 = x_126; } -lean_ctor_set(x_125, 0, x_122); -lean_ctor_set(x_125, 1, x_123); -return x_125; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } } diff --git a/stage0/stdlib/Lean/Elab/MacroRules.c b/stage0/stdlib/Lean/Elab/MacroRules.c index 4ba5f1c22d..54a09c6f2e 100644 --- a/stage0/stdlib/Lean/Elab/MacroRules.c +++ b/stage0/stdlib/Lean/Elab/MacroRules.c @@ -362,7 +362,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -371,6 +371,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -380,19 +383,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -3779,7 +3784,7 @@ return x_53; } 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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +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; uint8_t x_63; lean_object* x_64; lean_object* x_65; x_54 = lean_ctor_get(x_6, 0); x_55 = lean_ctor_get(x_6, 1); x_56 = lean_ctor_get(x_6, 2); @@ -3788,6 +3793,9 @@ x_58 = lean_ctor_get(x_6, 4); x_59 = lean_ctor_get(x_6, 5); x_60 = lean_ctor_get(x_6, 7); x_61 = lean_ctor_get(x_6, 8); +x_62 = lean_ctor_get(x_6, 9); +x_63 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); @@ -3797,2008 +3805,2035 @@ lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_dec(x_6); -x_62 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_62, 0, x_54); -lean_ctor_set(x_62, 1, x_55); -lean_ctor_set(x_62, 2, x_56); -lean_ctor_set(x_62, 3, x_57); -lean_ctor_set(x_62, 4, x_58); -lean_ctor_set(x_62, 5, x_59); -lean_ctor_set(x_62, 6, x_43); -lean_ctor_set(x_62, 7, x_60); -lean_ctor_set(x_62, 8, x_61); +x_64 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_64, 0, x_54); +lean_ctor_set(x_64, 1, x_55); +lean_ctor_set(x_64, 2, x_56); +lean_ctor_set(x_64, 3, x_57); +lean_ctor_set(x_64, 4, x_58); +lean_ctor_set(x_64, 5, x_59); +lean_ctor_set(x_64, 6, x_43); +lean_ctor_set(x_64, 7, x_60); +lean_ctor_set(x_64, 8, x_61); +lean_ctor_set(x_64, 9, x_62); +lean_ctor_set_uint8(x_64, sizeof(void*)*10, x_63); lean_inc(x_7); -lean_inc(x_62); -x_63 = l_Lean_Elab_Command_resolveSyntaxKind(x_39, x_62, x_7, x_42); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_64, x_31, x_62, x_7, x_65); +x_65 = l_Lean_Elab_Command_resolveSyntaxKind(x_39, x_64, x_7, x_42); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_66, x_31, x_64, x_7, x_67); lean_dec(x_5); -return x_66; +return x_68; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_62); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_64); lean_dec(x_31); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_67 = lean_ctor_get(x_63, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_63, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_69 = x_63; +x_69 = lean_ctor_get(x_65, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_71 = x_65; } else { - lean_dec_ref(x_63); - x_69 = lean_box(0); + lean_dec_ref(x_65); + x_71 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; + x_72 = x_71; } -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } else { -lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_71 = l_Lean_Syntax_getArg(x_28, x_18); -x_72 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___closed__5; -lean_inc(x_71); -x_73 = l_Lean_Syntax_isOfKind(x_71, x_72); -if (x_73 == 0) +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = l_Lean_Syntax_getArg(x_28, x_18); +x_74 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___closed__5; +lean_inc(x_73); +x_75 = l_Lean_Syntax_isOfKind(x_73, x_74); +if (x_75 == 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; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -lean_dec(x_71); -x_74 = l_Lean_Syntax_getArgs(x_28); +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; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +lean_dec(x_73); +x_76 = l_Lean_Syntax_getArgs(x_28); lean_dec(x_28); -x_75 = lean_box(2); -x_76 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -lean_inc(x_74); -x_77 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_77, 2, x_74); -x_78 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +x_77 = lean_box(2); +x_78 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +lean_inc(x_76); +x_79 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_79, 2, x_76); +x_80 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; lean_inc(x_15); -x_79 = lean_array_push(x_78, x_15); -x_80 = lean_array_push(x_79, x_77); -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_76); -lean_ctor_set(x_81, 2, x_80); -x_82 = l_Lean_Syntax_getId(x_23); +x_81 = lean_array_push(x_80, x_15); +x_82 = lean_array_push(x_81, x_79); +x_83 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_83, 0, x_77); +lean_ctor_set(x_83, 1, x_78); +lean_ctor_set(x_83, 2, x_82); +x_84 = l_Lean_Syntax_getId(x_23); lean_dec(x_23); -x_83 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); +x_85 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = l_Lean_replaceRef(x_83, x_86); +lean_dec(x_86); lean_dec(x_83); -x_86 = l_Lean_replaceRef(x_81, x_84); -lean_dec(x_84); -lean_dec(x_81); -x_87 = !lean_is_exclusive(x_6); -if (x_87 == 0) +x_89 = !lean_is_exclusive(x_6); +if (x_89 == 0) { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_6, 6); -lean_dec(x_88); -lean_ctor_set(x_6, 6, x_86); +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_6, 6); +lean_dec(x_90); +lean_ctor_set(x_6, 6, x_88); lean_inc(x_7); lean_inc(x_6); -x_89 = l_Lean_Elab_Command_resolveSyntaxKind(x_82, x_6, x_7, x_85); -if (lean_obj_tag(x_89) == 0) +x_91 = l_Lean_Elab_Command_resolveSyntaxKind(x_84, x_6, x_7, x_87); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_90, x_74, x_6, x_7, x_91); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +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 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_92, x_76, x_6, x_7, x_93); lean_dec(x_5); -return x_92; +return x_94; } else { -uint8_t x_93; +uint8_t x_95; lean_dec(x_6); -lean_dec(x_74); +lean_dec(x_76); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_93 = !lean_is_exclusive(x_89); -if (x_93 == 0) +x_95 = !lean_is_exclusive(x_91); +if (x_95 == 0) { -return x_89; +return x_91; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_89, 0); -x_95 = lean_ctor_get(x_89, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_89); -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; +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_91, 0); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_91); +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; } } } 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; -x_97 = lean_ctor_get(x_6, 0); -x_98 = lean_ctor_get(x_6, 1); -x_99 = lean_ctor_get(x_6, 2); -x_100 = lean_ctor_get(x_6, 3); -x_101 = lean_ctor_get(x_6, 4); -x_102 = lean_ctor_get(x_6, 5); -x_103 = lean_ctor_get(x_6, 7); -x_104 = lean_ctor_get(x_6, 8); +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; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_99 = lean_ctor_get(x_6, 0); +x_100 = lean_ctor_get(x_6, 1); +x_101 = lean_ctor_get(x_6, 2); +x_102 = lean_ctor_get(x_6, 3); +x_103 = lean_ctor_get(x_6, 4); +x_104 = lean_ctor_get(x_6, 5); +x_105 = lean_ctor_get(x_6, 7); +x_106 = lean_ctor_get(x_6, 8); +x_107 = lean_ctor_get(x_6, 9); +x_108 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); -lean_inc(x_98); -lean_inc(x_97); lean_dec(x_6); -x_105 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_105, 0, x_97); -lean_ctor_set(x_105, 1, x_98); -lean_ctor_set(x_105, 2, x_99); -lean_ctor_set(x_105, 3, x_100); -lean_ctor_set(x_105, 4, x_101); -lean_ctor_set(x_105, 5, x_102); -lean_ctor_set(x_105, 6, x_86); -lean_ctor_set(x_105, 7, x_103); -lean_ctor_set(x_105, 8, x_104); +x_109 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_109, 0, x_99); +lean_ctor_set(x_109, 1, x_100); +lean_ctor_set(x_109, 2, x_101); +lean_ctor_set(x_109, 3, x_102); +lean_ctor_set(x_109, 4, x_103); +lean_ctor_set(x_109, 5, x_104); +lean_ctor_set(x_109, 6, x_88); +lean_ctor_set(x_109, 7, x_105); +lean_ctor_set(x_109, 8, x_106); +lean_ctor_set(x_109, 9, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*10, x_108); lean_inc(x_7); -lean_inc(x_105); -x_106 = l_Lean_Elab_Command_resolveSyntaxKind(x_82, x_105, x_7, x_85); -if (lean_obj_tag(x_106) == 0) +lean_inc(x_109); +x_110 = l_Lean_Elab_Command_resolveSyntaxKind(x_84, x_109, x_7, x_87); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_109 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_107, x_74, x_105, x_7, x_108); -lean_dec(x_5); -return x_109; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_105); -lean_dec(x_74); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_110 = lean_ctor_get(x_106, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_106, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_112 = x_106; -} else { - lean_dec_ref(x_106); - 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_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_111, x_76, x_109, x_7, x_112); +lean_dec(x_5); return x_113; } -} -} else { -lean_object* x_114; uint8_t x_115; -x_114 = l_Lean_Syntax_getArg(x_71, x_29); -lean_inc(x_114); -x_115 = l_Lean_Syntax_matchesNull(x_114, x_29); -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; 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; uint8_t x_129; -lean_dec(x_114); -lean_dec(x_71); -x_116 = l_Lean_Syntax_getArgs(x_28); -lean_dec(x_28); -x_117 = lean_box(2); -x_118 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -lean_inc(x_116); -x_119 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set(x_119, 2, x_116); -x_120 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; -lean_inc(x_15); -x_121 = lean_array_push(x_120, x_15); -x_122 = lean_array_push(x_121, x_119); -x_123 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_123, 0, x_117); -lean_ctor_set(x_123, 1, x_118); -lean_ctor_set(x_123, 2, x_122); -x_124 = l_Lean_Syntax_getId(x_23); -lean_dec(x_23); -x_125 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = l_Lean_replaceRef(x_123, x_126); -lean_dec(x_126); -lean_dec(x_123); -x_129 = !lean_is_exclusive(x_6); -if (x_129 == 0) -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_6, 6); -lean_dec(x_130); -lean_ctor_set(x_6, 6, x_128); -lean_inc(x_7); -lean_inc(x_6); -x_131 = l_Lean_Elab_Command_resolveSyntaxKind(x_124, x_6, x_7, x_127); -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_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_132, x_116, x_6, x_7, x_133); -lean_dec(x_5); -return x_134; -} -else -{ -uint8_t x_135; -lean_dec(x_6); -lean_dec(x_116); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_109); +lean_dec(x_76); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_135 = !lean_is_exclusive(x_131); -if (x_135 == 0) -{ -return x_131; +x_114 = lean_ctor_get(x_110, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} } else { +lean_object* x_118; uint8_t x_119; +x_118 = l_Lean_Syntax_getArg(x_73, x_29); +lean_inc(x_118); +x_119 = l_Lean_Syntax_matchesNull(x_118, x_29); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; +lean_dec(x_118); +lean_dec(x_73); +x_120 = l_Lean_Syntax_getArgs(x_28); +lean_dec(x_28); +x_121 = lean_box(2); +x_122 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +lean_inc(x_120); +x_123 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +lean_ctor_set(x_123, 2, x_120); +x_124 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +lean_inc(x_15); +x_125 = lean_array_push(x_124, x_15); +x_126 = lean_array_push(x_125, x_123); +x_127 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_127, 0, x_121); +lean_ctor_set(x_127, 1, x_122); +lean_ctor_set(x_127, 2, x_126); +x_128 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); +x_129 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = l_Lean_replaceRef(x_127, x_130); +lean_dec(x_130); +lean_dec(x_127); +x_133 = !lean_is_exclusive(x_6); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_6, 6); +lean_dec(x_134); +lean_ctor_set(x_6, 6, x_132); +lean_inc(x_7); +lean_inc(x_6); +x_135 = l_Lean_Elab_Command_resolveSyntaxKind(x_128, x_6, x_7, x_131); +if (lean_obj_tag(x_135) == 0) +{ 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); +x_136 = lean_ctor_get(x_135, 0); 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); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_136, x_120, x_6, x_7, x_137); +lean_dec(x_5); return x_138; } +else +{ +uint8_t x_139; +lean_dec(x_6); +lean_dec(x_120); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_139 = !lean_is_exclusive(x_135); +if (x_139 == 0) +{ +return x_135; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; +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_135); +x_142 = lean_alloc_ctor(1, 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_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; -x_139 = lean_ctor_get(x_6, 0); -x_140 = lean_ctor_get(x_6, 1); -x_141 = lean_ctor_get(x_6, 2); -x_142 = lean_ctor_get(x_6, 3); -x_143 = lean_ctor_get(x_6, 4); -x_144 = lean_ctor_get(x_6, 5); -x_145 = lean_ctor_get(x_6, 7); -x_146 = lean_ctor_get(x_6, 8); +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; uint8_t x_152; lean_object* x_153; lean_object* x_154; +x_143 = lean_ctor_get(x_6, 0); +x_144 = lean_ctor_get(x_6, 1); +x_145 = lean_ctor_get(x_6, 2); +x_146 = lean_ctor_get(x_6, 3); +x_147 = lean_ctor_get(x_6, 4); +x_148 = lean_ctor_get(x_6, 5); +x_149 = lean_ctor_get(x_6, 7); +x_150 = lean_ctor_get(x_6, 8); +x_151 = lean_ctor_get(x_6, 9); +x_152 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_151); +lean_inc(x_150); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); lean_inc(x_146); lean_inc(x_145); lean_inc(x_144); lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); -lean_inc(x_140); -lean_inc(x_139); lean_dec(x_6); -x_147 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_147, 0, x_139); -lean_ctor_set(x_147, 1, x_140); -lean_ctor_set(x_147, 2, x_141); -lean_ctor_set(x_147, 3, x_142); -lean_ctor_set(x_147, 4, x_143); -lean_ctor_set(x_147, 5, x_144); -lean_ctor_set(x_147, 6, x_128); -lean_ctor_set(x_147, 7, x_145); -lean_ctor_set(x_147, 8, x_146); +x_153 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_153, 0, x_143); +lean_ctor_set(x_153, 1, x_144); +lean_ctor_set(x_153, 2, x_145); +lean_ctor_set(x_153, 3, x_146); +lean_ctor_set(x_153, 4, x_147); +lean_ctor_set(x_153, 5, x_148); +lean_ctor_set(x_153, 6, x_132); +lean_ctor_set(x_153, 7, x_149); +lean_ctor_set(x_153, 8, x_150); +lean_ctor_set(x_153, 9, x_151); +lean_ctor_set_uint8(x_153, sizeof(void*)*10, x_152); lean_inc(x_7); -lean_inc(x_147); -x_148 = l_Lean_Elab_Command_resolveSyntaxKind(x_124, x_147, x_7, x_127); -if (lean_obj_tag(x_148) == 0) +lean_inc(x_153); +x_154 = l_Lean_Elab_Command_resolveSyntaxKind(x_128, x_153, x_7, x_131); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -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 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_149, x_116, x_147, x_7, x_150); +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_155, x_120, x_153, x_7, x_156); lean_dec(x_5); -return x_151; +return x_157; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_147); -lean_dec(x_116); +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_153); +lean_dec(x_120); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_152 = lean_ctor_get(x_148, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_148, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_154 = x_148; +x_158 = lean_ctor_get(x_154, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_154, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_160 = x_154; } else { - lean_dec_ref(x_148); - x_154 = lean_box(0); + lean_dec_ref(x_154); + x_160 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); } else { - x_155 = x_154; + x_161 = x_160; } -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_153); -return x_155; +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; } } } else { -lean_object* x_156; uint8_t x_157; -x_156 = l_Lean_Syntax_getArg(x_114, x_18); -lean_dec(x_114); -lean_inc(x_156); -x_157 = l_Lean_Syntax_matchesNull(x_156, x_29); -if (x_157 == 0) +lean_object* x_162; uint8_t x_163; +x_162 = l_Lean_Syntax_getArg(x_118, x_18); +lean_dec(x_118); +lean_inc(x_162); +x_163 = l_Lean_Syntax_matchesNull(x_162, x_29); +if (x_163 == 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_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; uint8_t x_171; -lean_dec(x_156); -lean_dec(x_71); -x_158 = l_Lean_Syntax_getArgs(x_28); +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; uint8_t x_177; +lean_dec(x_162); +lean_dec(x_73); +x_164 = l_Lean_Syntax_getArgs(x_28); lean_dec(x_28); -x_159 = lean_box(2); -x_160 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -lean_inc(x_158); -x_161 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_161, 0, x_159); -lean_ctor_set(x_161, 1, x_160); -lean_ctor_set(x_161, 2, x_158); -x_162 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +x_165 = lean_box(2); +x_166 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +lean_inc(x_164); +x_167 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +lean_ctor_set(x_167, 2, x_164); +x_168 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; lean_inc(x_15); -x_163 = lean_array_push(x_162, x_15); -x_164 = lean_array_push(x_163, x_161); -x_165 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_165, 0, x_159); -lean_ctor_set(x_165, 1, x_160); -lean_ctor_set(x_165, 2, x_164); -x_166 = l_Lean_Syntax_getId(x_23); +x_169 = lean_array_push(x_168, x_15); +x_170 = lean_array_push(x_169, x_167); +x_171 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_171, 0, x_165); +lean_ctor_set(x_171, 1, x_166); +lean_ctor_set(x_171, 2, x_170); +x_172 = l_Lean_Syntax_getId(x_23); lean_dec(x_23); -x_167 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -x_170 = l_Lean_replaceRef(x_165, x_168); -lean_dec(x_168); -lean_dec(x_165); -x_171 = !lean_is_exclusive(x_6); -if (x_171 == 0) -{ -lean_object* x_172; lean_object* x_173; -x_172 = lean_ctor_get(x_6, 6); -lean_dec(x_172); -lean_ctor_set(x_6, 6, x_170); -lean_inc(x_7); -lean_inc(x_6); -x_173 = l_Lean_Elab_Command_resolveSyntaxKind(x_166, x_6, x_7, x_169); -if (lean_obj_tag(x_173) == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_173 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); 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 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_174, x_158, x_6, x_7, x_175); -lean_dec(x_5); -return x_176; -} -else -{ -uint8_t x_177; -lean_dec(x_6); -lean_dec(x_158); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_177 = !lean_is_exclusive(x_173); +x_176 = l_Lean_replaceRef(x_171, x_174); +lean_dec(x_174); +lean_dec(x_171); +x_177 = !lean_is_exclusive(x_6); if (x_177 == 0) { -return x_173; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_173, 0); -x_179 = lean_ctor_get(x_173, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_173); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -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; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_181 = lean_ctor_get(x_6, 0); -x_182 = lean_ctor_get(x_6, 1); -x_183 = lean_ctor_get(x_6, 2); -x_184 = lean_ctor_get(x_6, 3); -x_185 = lean_ctor_get(x_6, 4); -x_186 = lean_ctor_get(x_6, 5); -x_187 = lean_ctor_get(x_6, 7); -x_188 = lean_ctor_get(x_6, 8); -lean_inc(x_188); -lean_inc(x_187); -lean_inc(x_186); -lean_inc(x_185); -lean_inc(x_184); -lean_inc(x_183); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_6); -x_189 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_189, 0, x_181); -lean_ctor_set(x_189, 1, x_182); -lean_ctor_set(x_189, 2, x_183); -lean_ctor_set(x_189, 3, x_184); -lean_ctor_set(x_189, 4, x_185); -lean_ctor_set(x_189, 5, x_186); -lean_ctor_set(x_189, 6, x_170); -lean_ctor_set(x_189, 7, x_187); -lean_ctor_set(x_189, 8, x_188); -lean_inc(x_7); -lean_inc(x_189); -x_190 = l_Lean_Elab_Command_resolveSyntaxKind(x_166, x_189, x_7, x_169); -if (lean_obj_tag(x_190) == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec(x_190); -x_193 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_191, x_158, x_189, x_7, x_192); -lean_dec(x_5); -return x_193; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_189); -lean_dec(x_158); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -x_194 = lean_ctor_get(x_190, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_190, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_196 = x_190; -} else { - lean_dec_ref(x_190); - 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_194); -lean_ctor_set(x_197, 1, x_195); -return x_197; -} -} -} -else -{ -lean_object* x_198; lean_object* x_199; uint8_t x_200; -x_198 = l_Lean_Syntax_getArg(x_156, x_18); -lean_dec(x_156); -x_199 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__5; -lean_inc(x_198); -x_200 = l_Lean_Syntax_isOfKind(x_198, x_199); -if (x_200 == 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; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -lean_dec(x_198); -lean_dec(x_71); -x_201 = l_Lean_Syntax_getArgs(x_28); -lean_dec(x_28); -x_202 = lean_box(2); -x_203 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -lean_inc(x_201); -x_204 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -lean_ctor_set(x_204, 2, x_201); -x_205 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; -lean_inc(x_15); -x_206 = lean_array_push(x_205, x_15); -x_207 = lean_array_push(x_206, x_204); -x_208 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_208, 0, x_202); -lean_ctor_set(x_208, 1, x_203); -lean_ctor_set(x_208, 2, x_207); -x_209 = l_Lean_Syntax_getId(x_23); -lean_dec(x_23); -x_210 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_213 = l_Lean_replaceRef(x_208, x_211); -lean_dec(x_211); -lean_dec(x_208); -x_214 = !lean_is_exclusive(x_6); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; -x_215 = lean_ctor_get(x_6, 6); -lean_dec(x_215); -lean_ctor_set(x_6, 6, x_213); +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_6, 6); +lean_dec(x_178); +lean_ctor_set(x_6, 6, x_176); lean_inc(x_7); lean_inc(x_6); -x_216 = l_Lean_Elab_Command_resolveSyntaxKind(x_209, x_6, x_7, x_212); -if (lean_obj_tag(x_216) == 0) +x_179 = l_Lean_Elab_Command_resolveSyntaxKind(x_172, x_6, x_7, x_175); +if (lean_obj_tag(x_179) == 0) { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_219 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_217, x_201, x_6, x_7, x_218); +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_180, x_164, x_6, x_7, x_181); lean_dec(x_5); -return x_219; +return x_182; } else { -uint8_t x_220; +uint8_t x_183; lean_dec(x_6); -lean_dec(x_201); +lean_dec(x_164); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_220 = !lean_is_exclusive(x_216); -if (x_220 == 0) +x_183 = !lean_is_exclusive(x_179); +if (x_183 == 0) { -return x_216; +return x_179; } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_221 = lean_ctor_get(x_216, 0); -x_222 = lean_ctor_get(x_216, 1); -lean_inc(x_222); -lean_inc(x_221); +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_179, 0); +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_179); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; +} +} +} +else +{ +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; uint8_t x_196; lean_object* x_197; lean_object* x_198; +x_187 = lean_ctor_get(x_6, 0); +x_188 = lean_ctor_get(x_6, 1); +x_189 = lean_ctor_get(x_6, 2); +x_190 = lean_ctor_get(x_6, 3); +x_191 = lean_ctor_get(x_6, 4); +x_192 = lean_ctor_get(x_6, 5); +x_193 = lean_ctor_get(x_6, 7); +x_194 = lean_ctor_get(x_6, 8); +x_195 = lean_ctor_get(x_6, 9); +x_196 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_6); +x_197 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_197, 0, x_187); +lean_ctor_set(x_197, 1, x_188); +lean_ctor_set(x_197, 2, x_189); +lean_ctor_set(x_197, 3, x_190); +lean_ctor_set(x_197, 4, x_191); +lean_ctor_set(x_197, 5, x_192); +lean_ctor_set(x_197, 6, x_176); +lean_ctor_set(x_197, 7, x_193); +lean_ctor_set(x_197, 8, x_194); +lean_ctor_set(x_197, 9, x_195); +lean_ctor_set_uint8(x_197, sizeof(void*)*10, x_196); +lean_inc(x_7); +lean_inc(x_197); +x_198 = l_Lean_Elab_Command_resolveSyntaxKind(x_172, x_197, x_7, x_175); +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 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_199, x_164, x_197, x_7, x_200); +lean_dec(x_5); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_197); +lean_dec(x_164); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_202 = lean_ctor_get(x_198, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_198, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_204 = x_198; +} else { + lean_dec_ref(x_198); + x_204 = lean_box(0); +} +if (lean_is_scalar(x_204)) { + x_205 = lean_alloc_ctor(1, 2, 0); +} else { + x_205 = x_204; +} +lean_ctor_set(x_205, 0, x_202); +lean_ctor_set(x_205, 1, x_203); +return x_205; +} +} +} +else +{ +lean_object* x_206; lean_object* x_207; uint8_t x_208; +x_206 = l_Lean_Syntax_getArg(x_162, x_18); +lean_dec(x_162); +x_207 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__5; +lean_inc(x_206); +x_208 = l_Lean_Syntax_isOfKind(x_206, x_207); +if (x_208 == 0) +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; +lean_dec(x_206); +lean_dec(x_73); +x_209 = l_Lean_Syntax_getArgs(x_28); +lean_dec(x_28); +x_210 = lean_box(2); +x_211 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +lean_inc(x_209); +x_212 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +lean_ctor_set(x_212, 2, x_209); +x_213 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +lean_inc(x_15); +x_214 = lean_array_push(x_213, x_15); +x_215 = lean_array_push(x_214, x_212); +x_216 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_216, 0, x_210); +lean_ctor_set(x_216, 1, x_211); +lean_ctor_set(x_216, 2, x_215); +x_217 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); +x_218 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +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 = l_Lean_replaceRef(x_216, x_219); +lean_dec(x_219); lean_dec(x_216); -x_223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_223, 0, x_221); -lean_ctor_set(x_223, 1, x_222); -return x_223; -} -} +x_222 = !lean_is_exclusive(x_6); +if (x_222 == 0) +{ +lean_object* x_223; lean_object* x_224; +x_223 = lean_ctor_get(x_6, 6); +lean_dec(x_223); +lean_ctor_set(x_6, 6, x_221); +lean_inc(x_7); +lean_inc(x_6); +x_224 = l_Lean_Elab_Command_resolveSyntaxKind(x_217, x_6, x_7, x_220); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +x_227 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_225, x_209, x_6, x_7, x_226); +lean_dec(x_5); +return x_227; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_224 = lean_ctor_get(x_6, 0); -x_225 = lean_ctor_get(x_6, 1); -x_226 = lean_ctor_get(x_6, 2); -x_227 = lean_ctor_get(x_6, 3); -x_228 = lean_ctor_get(x_6, 4); -x_229 = lean_ctor_get(x_6, 5); -x_230 = lean_ctor_get(x_6, 7); -x_231 = lean_ctor_get(x_6, 8); -lean_inc(x_231); +uint8_t x_228; +lean_dec(x_6); +lean_dec(x_209); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_228 = !lean_is_exclusive(x_224); +if (x_228 == 0) +{ +return x_224; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_224, 0); +x_230 = lean_ctor_get(x_224, 1); lean_inc(x_230); lean_inc(x_229); -lean_inc(x_228); -lean_inc(x_227); -lean_inc(x_226); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_6); -x_232 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_232, 0, x_224); -lean_ctor_set(x_232, 1, x_225); -lean_ctor_set(x_232, 2, x_226); -lean_ctor_set(x_232, 3, x_227); -lean_ctor_set(x_232, 4, x_228); -lean_ctor_set(x_232, 5, x_229); -lean_ctor_set(x_232, 6, x_213); -lean_ctor_set(x_232, 7, x_230); -lean_ctor_set(x_232, 8, x_231); -lean_inc(x_7); -lean_inc(x_232); -x_233 = l_Lean_Elab_Command_resolveSyntaxKind(x_209, x_232, x_7, x_212); -if (lean_obj_tag(x_233) == 0) -{ -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); -x_236 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_234, x_201, x_232, x_7, x_235); -lean_dec(x_5); -return x_236; +lean_dec(x_224); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; +} +} } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -lean_dec(x_232); -lean_dec(x_201); +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; uint8_t x_241; lean_object* x_242; lean_object* x_243; +x_232 = lean_ctor_get(x_6, 0); +x_233 = lean_ctor_get(x_6, 1); +x_234 = lean_ctor_get(x_6, 2); +x_235 = lean_ctor_get(x_6, 3); +x_236 = lean_ctor_get(x_6, 4); +x_237 = lean_ctor_get(x_6, 5); +x_238 = lean_ctor_get(x_6, 7); +x_239 = lean_ctor_get(x_6, 8); +x_240 = lean_ctor_get(x_6, 9); +x_241 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_240); +lean_inc(x_239); +lean_inc(x_238); +lean_inc(x_237); +lean_inc(x_236); +lean_inc(x_235); +lean_inc(x_234); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_6); +x_242 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_234); +lean_ctor_set(x_242, 3, x_235); +lean_ctor_set(x_242, 4, x_236); +lean_ctor_set(x_242, 5, x_237); +lean_ctor_set(x_242, 6, x_221); +lean_ctor_set(x_242, 7, x_238); +lean_ctor_set(x_242, 8, x_239); +lean_ctor_set(x_242, 9, x_240); +lean_ctor_set_uint8(x_242, sizeof(void*)*10, x_241); +lean_inc(x_7); +lean_inc(x_242); +x_243 = l_Lean_Elab_Command_resolveSyntaxKind(x_217, x_242, x_7, x_220); +if (lean_obj_tag(x_243) == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +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 = l_Lean_Elab_Command_elabMacroRulesAux(x_2, x_5, x_10, x_15, x_244, x_209, x_242, x_7, x_245); +lean_dec(x_5); +return x_246; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_242); +lean_dec(x_209); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_237 = lean_ctor_get(x_233, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_233, 1); -lean_inc(x_238); -if (lean_is_exclusive(x_233)) { - lean_ctor_release(x_233, 0); - lean_ctor_release(x_233, 1); - x_239 = x_233; +x_247 = lean_ctor_get(x_243, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_243, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_249 = x_243; } else { - lean_dec_ref(x_233); - x_239 = lean_box(0); + lean_dec_ref(x_243); + x_249 = lean_box(0); } -if (lean_is_scalar(x_239)) { - x_240 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_249)) { + x_250 = lean_alloc_ctor(1, 2, 0); } else { - x_240 = x_239; + x_250 = x_249; } -lean_ctor_set(x_240, 0, x_237); -lean_ctor_set(x_240, 1, x_238); -return x_240; +lean_ctor_set(x_250, 0, x_247); +lean_ctor_set(x_250, 1, x_248); +return x_250; } } } else { -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; +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; uint8_t x_263; lean_dec(x_28); -x_241 = l_Lean_Syntax_getArg(x_71, x_14); -lean_dec(x_71); -x_242 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +x_251 = l_Lean_Syntax_getArg(x_73, x_14); +lean_dec(x_73); +x_252 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; lean_inc(x_15); -x_243 = lean_array_push(x_242, x_15); -lean_inc(x_241); -x_244 = lean_array_push(x_243, x_241); -x_245 = lean_box(2); -x_246 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -x_247 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_247, 0, x_245); -lean_ctor_set(x_247, 1, x_246); -lean_ctor_set(x_247, 2, x_244); -x_248 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; -} else { - lean_dec_ref(x_248); - x_251 = lean_box(0); -} -x_252 = l_Lean_replaceRef(x_247, x_249); -lean_dec(x_249); -lean_dec(x_247); -x_253 = !lean_is_exclusive(x_6); -if (x_253 == 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_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; -x_254 = lean_ctor_get(x_6, 6); -lean_dec(x_254); -lean_ctor_set(x_6, 6, x_252); -x_255 = l_Lean_Elab_Command_getRef(x_6, x_7, x_250); -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); -} -x_259 = 0; -x_260 = l_Lean_SourceInfo_fromRef(x_256, x_259); -x_261 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_257); -x_262 = lean_ctor_get(x_261, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_263 = x_261; -} else { - lean_dec_ref(x_261); - x_263 = lean_box(0); -} -x_264 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_262); -x_265 = !lean_is_exclusive(x_264); -if (x_265 == 0) -{ -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; -x_266 = lean_ctor_get(x_264, 1); -x_267 = lean_ctor_get(x_264, 0); -lean_dec(x_267); -x_268 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; +x_253 = lean_array_push(x_252, x_15); +lean_inc(x_251); +x_254 = lean_array_push(x_253, x_251); +x_255 = lean_box(2); +x_256 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +x_257 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +lean_ctor_set(x_257, 2, x_254); +x_258 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_258, 1); lean_inc(x_260); -lean_ctor_set_tag(x_264, 2); -lean_ctor_set(x_264, 1, x_268); -lean_ctor_set(x_264, 0, x_260); -x_269 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; -lean_inc(x_23); -lean_inc(x_260); -x_270 = l_Lean_Syntax_node2(x_260, x_269, x_264, x_23); -x_271 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; -x_272 = l_Lean_Syntax_node2(x_260, x_271, x_10, x_270); -x_273 = l_Lean_Elab_Command_getRef(x_6, x_7, x_266); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_487 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; -x_488 = lean_array_push(x_487, x_272); -x_489 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_490 = l_Lean_Syntax_SepArray_ofElems(x_489, x_488); -lean_dec(x_488); -x_274 = x_490; -goto block_486; +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_261 = x_258; +} else { + lean_dec_ref(x_258); + x_261 = lean_box(0); } -else +x_262 = l_Lean_replaceRef(x_257, x_259); +lean_dec(x_259); +lean_dec(x_257); +x_263 = !lean_is_exclusive(x_6); +if (x_263 == 0) { -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_491 = lean_ctor_get(x_5, 0); -lean_inc(x_491); -lean_dec(x_5); -x_492 = l_Lean_Syntax_TSepArray_getElems___rarg(x_491); -lean_dec(x_491); -x_493 = lean_array_push(x_492, x_272); -x_494 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_495 = l_Lean_Syntax_SepArray_ofElems(x_494, x_493); -lean_dec(x_493); -x_274 = x_495; -goto block_486; +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; +x_264 = lean_ctor_get(x_6, 6); +lean_dec(x_264); +lean_ctor_set(x_6, 6, x_262); +x_265 = l_Lean_Elab_Command_getRef(x_6, x_7, x_260); +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_268 = x_265; +} else { + lean_dec_ref(x_265); + x_268 = lean_box(0); } -block_486: -{ -uint8_t x_275; -x_275 = !lean_is_exclusive(x_273); +x_269 = 0; +x_270 = l_Lean_SourceInfo_fromRef(x_266, x_269); +x_271 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_267); +x_272 = lean_ctor_get(x_271, 1); +lean_inc(x_272); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_273 = x_271; +} else { + lean_dec_ref(x_271); + x_273 = lean_box(0); +} +x_274 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_272); +x_275 = !lean_is_exclusive(x_274); if (x_275 == 0) { -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; -x_276 = lean_ctor_get(x_273, 0); -x_277 = lean_ctor_get(x_273, 1); -x_278 = l_Lean_SourceInfo_fromRef(x_276, x_259); -x_279 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_277); -lean_dec(x_6); -x_280 = !lean_is_exclusive(x_279); -if (x_280 == 0) -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; -x_281 = lean_ctor_get(x_279, 0); -x_282 = lean_ctor_get(x_279, 1); -x_283 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_282); -lean_dec(x_7); -x_284 = !lean_is_exclusive(x_283); -if (x_284 == 0) -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t 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; 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; -x_285 = lean_ctor_get(x_283, 0); -x_286 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_278); -lean_ctor_set_tag(x_279, 2); -lean_ctor_set(x_279, 1, x_286); -lean_ctor_set(x_279, 0, x_278); -x_287 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_288 = l_Array_append___rarg(x_287, x_274); -lean_inc(x_278); -x_289 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_289, 0, x_278); -lean_ctor_set(x_289, 1, x_246); -lean_ctor_set(x_289, 2, x_288); -x_290 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_278); -lean_ctor_set_tag(x_273, 2); -lean_ctor_set(x_273, 1, x_290); -lean_ctor_set(x_273, 0, x_278); -x_291 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_278); -x_292 = l_Lean_Syntax_node3(x_278, x_291, x_279, x_289, x_273); -lean_inc(x_278); -x_293 = l_Lean_Syntax_node1(x_278, x_246, x_292); -x_294 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_278); -if (lean_is_scalar(x_263)) { - x_295 = lean_alloc_ctor(2, 2, 0); -} else { - x_295 = x_263; - lean_ctor_set_tag(x_295, 2); -} -lean_ctor_set(x_295, 0, x_278); -lean_ctor_set(x_295, 1, x_294); -x_296 = l_Lean_Syntax_getId(x_23); -x_297 = 1; -x_298 = l_Lean_mkIdentFrom(x_15, x_296, x_297); -lean_inc(x_278); -x_299 = l_Lean_Syntax_node2(x_278, x_246, x_298, x_23); -x_300 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_278); -if (lean_is_scalar(x_258)) { - x_301 = lean_alloc_ctor(2, 2, 0); -} else { - x_301 = x_258; - lean_ctor_set_tag(x_301, 2); -} -lean_ctor_set(x_301, 0, x_278); -lean_ctor_set(x_301, 1, x_300); -x_302 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_303 = l_Lean_addMacroScope(x_285, x_302, x_281); -x_304 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_305 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_278); -x_306 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_306, 0, x_278); -lean_ctor_set(x_306, 1, x_304); -lean_ctor_set(x_306, 2, x_303); -lean_ctor_set(x_306, 3, x_305); -x_307 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_278); -if (lean_is_scalar(x_251)) { - x_308 = lean_alloc_ctor(2, 2, 0); -} else { - x_308 = x_251; - lean_ctor_set_tag(x_308, 2); -} -lean_ctor_set(x_308, 0, x_278); -lean_ctor_set(x_308, 1, x_307); -x_309 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_278); -x_310 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_310, 0, x_278); -lean_ctor_set(x_310, 1, x_309); -lean_inc(x_278); -x_311 = l_Lean_Syntax_node1(x_278, x_246, x_198); -lean_inc(x_278); -x_312 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_312, 0, x_278); -lean_ctor_set(x_312, 1, x_246); -lean_ctor_set(x_312, 2, x_287); -x_313 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_278); -x_314 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_314, 0, x_278); -lean_ctor_set(x_314, 1, x_313); -x_315 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_278); -x_316 = l_Lean_Syntax_node4(x_278, x_315, x_311, x_312, x_314, x_241); -x_317 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_278); -x_318 = l_Lean_Syntax_node2(x_278, x_317, x_310, x_316); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_319 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_278); -x_320 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_320, 0, x_278); -lean_ctor_set(x_320, 1, x_246); -lean_ctor_set(x_320, 2, x_319); -x_321 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_322 = l_Lean_Syntax_node8(x_278, x_321, x_320, x_293, x_295, x_299, x_301, x_306, x_308, x_318); -lean_ctor_set(x_283, 0, x_322); -return x_283; -} -else -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_323 = lean_ctor_get(x_2, 0); -lean_inc(x_323); -lean_dec(x_2); -x_324 = l_Array_mkArray1___rarg(x_323); -x_325 = l_Array_append___rarg(x_287, x_324); -lean_inc(x_278); -x_326 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_326, 0, x_278); -lean_ctor_set(x_326, 1, x_246); -lean_ctor_set(x_326, 2, x_325); -x_327 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_328 = l_Lean_Syntax_node8(x_278, x_327, x_326, x_293, x_295, x_299, x_301, x_306, x_308, x_318); -lean_ctor_set(x_283, 0, x_328); -return x_283; -} -} -else -{ -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; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t 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; 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; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_329 = lean_ctor_get(x_283, 0); -x_330 = lean_ctor_get(x_283, 1); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_283); -x_331 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_278); -lean_ctor_set_tag(x_279, 2); -lean_ctor_set(x_279, 1, x_331); -lean_ctor_set(x_279, 0, x_278); -x_332 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_333 = l_Array_append___rarg(x_332, x_274); -lean_inc(x_278); -x_334 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_334, 0, x_278); -lean_ctor_set(x_334, 1, x_246); -lean_ctor_set(x_334, 2, x_333); -x_335 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_278); -lean_ctor_set_tag(x_273, 2); -lean_ctor_set(x_273, 1, x_335); -lean_ctor_set(x_273, 0, x_278); -x_336 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_278); -x_337 = l_Lean_Syntax_node3(x_278, x_336, x_279, x_334, x_273); -lean_inc(x_278); -x_338 = l_Lean_Syntax_node1(x_278, x_246, x_337); -x_339 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_278); -if (lean_is_scalar(x_263)) { - x_340 = lean_alloc_ctor(2, 2, 0); -} else { - x_340 = x_263; - lean_ctor_set_tag(x_340, 2); -} -lean_ctor_set(x_340, 0, x_278); -lean_ctor_set(x_340, 1, x_339); -x_341 = l_Lean_Syntax_getId(x_23); -x_342 = 1; -x_343 = l_Lean_mkIdentFrom(x_15, x_341, x_342); -lean_inc(x_278); -x_344 = l_Lean_Syntax_node2(x_278, x_246, x_343, x_23); -x_345 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_278); -if (lean_is_scalar(x_258)) { - x_346 = lean_alloc_ctor(2, 2, 0); -} else { - x_346 = x_258; - lean_ctor_set_tag(x_346, 2); -} -lean_ctor_set(x_346, 0, x_278); -lean_ctor_set(x_346, 1, x_345); -x_347 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_348 = l_Lean_addMacroScope(x_329, x_347, x_281); -x_349 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_350 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_278); -x_351 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_351, 0, x_278); -lean_ctor_set(x_351, 1, x_349); -lean_ctor_set(x_351, 2, x_348); -lean_ctor_set(x_351, 3, x_350); -x_352 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_278); -if (lean_is_scalar(x_251)) { - x_353 = lean_alloc_ctor(2, 2, 0); -} else { - x_353 = x_251; - lean_ctor_set_tag(x_353, 2); -} -lean_ctor_set(x_353, 0, x_278); -lean_ctor_set(x_353, 1, x_352); -x_354 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_278); -x_355 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_355, 0, x_278); -lean_ctor_set(x_355, 1, x_354); -lean_inc(x_278); -x_356 = l_Lean_Syntax_node1(x_278, x_246, x_198); -lean_inc(x_278); -x_357 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_357, 0, x_278); -lean_ctor_set(x_357, 1, x_246); -lean_ctor_set(x_357, 2, x_332); -x_358 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_278); -x_359 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_359, 0, x_278); -lean_ctor_set(x_359, 1, x_358); -x_360 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_278); -x_361 = l_Lean_Syntax_node4(x_278, x_360, x_356, x_357, x_359, x_241); -x_362 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_278); -x_363 = l_Lean_Syntax_node2(x_278, x_362, x_355, x_361); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_364 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_278); -x_365 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_365, 0, x_278); -lean_ctor_set(x_365, 1, x_246); -lean_ctor_set(x_365, 2, x_364); -x_366 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_367 = l_Lean_Syntax_node8(x_278, x_366, x_365, x_338, x_340, x_344, x_346, x_351, x_353, x_363); -x_368 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_368, 0, x_367); -lean_ctor_set(x_368, 1, x_330); -return x_368; -} -else -{ -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; -x_369 = lean_ctor_get(x_2, 0); -lean_inc(x_369); -lean_dec(x_2); -x_370 = l_Array_mkArray1___rarg(x_369); -x_371 = l_Array_append___rarg(x_332, x_370); -lean_inc(x_278); -x_372 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_372, 0, x_278); -lean_ctor_set(x_372, 1, x_246); -lean_ctor_set(x_372, 2, x_371); -x_373 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_374 = l_Lean_Syntax_node8(x_278, x_373, x_372, x_338, x_340, x_344, x_346, x_351, x_353, x_363); -x_375 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_375, 0, x_374); -lean_ctor_set(x_375, 1, x_330); -return x_375; -} -} -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 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_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; uint8_t x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* 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; 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; lean_object* x_414; lean_object* x_415; -x_376 = lean_ctor_get(x_279, 0); -x_377 = lean_ctor_get(x_279, 1); -lean_inc(x_377); -lean_inc(x_376); -lean_dec(x_279); -x_378 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_377); -lean_dec(x_7); -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_381 = x_378; -} else { - lean_dec_ref(x_378); - x_381 = lean_box(0); -} -x_382 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_278); -x_383 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_383, 0, x_278); -lean_ctor_set(x_383, 1, x_382); -x_384 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_385 = l_Array_append___rarg(x_384, x_274); -lean_inc(x_278); -x_386 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_386, 0, x_278); -lean_ctor_set(x_386, 1, x_246); -lean_ctor_set(x_386, 2, x_385); -x_387 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_278); -lean_ctor_set_tag(x_273, 2); -lean_ctor_set(x_273, 1, x_387); -lean_ctor_set(x_273, 0, x_278); -x_388 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_278); -x_389 = l_Lean_Syntax_node3(x_278, x_388, x_383, x_386, x_273); -lean_inc(x_278); -x_390 = l_Lean_Syntax_node1(x_278, x_246, x_389); -x_391 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_278); -if (lean_is_scalar(x_263)) { - x_392 = lean_alloc_ctor(2, 2, 0); -} else { - x_392 = x_263; - lean_ctor_set_tag(x_392, 2); -} -lean_ctor_set(x_392, 0, x_278); -lean_ctor_set(x_392, 1, x_391); -x_393 = l_Lean_Syntax_getId(x_23); -x_394 = 1; -x_395 = l_Lean_mkIdentFrom(x_15, x_393, x_394); -lean_inc(x_278); -x_396 = l_Lean_Syntax_node2(x_278, x_246, x_395, x_23); -x_397 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_278); -if (lean_is_scalar(x_258)) { - x_398 = lean_alloc_ctor(2, 2, 0); -} else { - x_398 = x_258; - lean_ctor_set_tag(x_398, 2); -} -lean_ctor_set(x_398, 0, x_278); -lean_ctor_set(x_398, 1, x_397); -x_399 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_400 = l_Lean_addMacroScope(x_379, x_399, x_376); -x_401 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_402 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_278); -x_403 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_403, 0, x_278); -lean_ctor_set(x_403, 1, x_401); -lean_ctor_set(x_403, 2, x_400); -lean_ctor_set(x_403, 3, x_402); -x_404 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_278); -if (lean_is_scalar(x_251)) { - x_405 = lean_alloc_ctor(2, 2, 0); -} else { - x_405 = x_251; - lean_ctor_set_tag(x_405, 2); -} -lean_ctor_set(x_405, 0, x_278); -lean_ctor_set(x_405, 1, x_404); -x_406 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_278); -x_407 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_407, 0, x_278); -lean_ctor_set(x_407, 1, x_406); -lean_inc(x_278); -x_408 = l_Lean_Syntax_node1(x_278, x_246, x_198); -lean_inc(x_278); -x_409 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_409, 0, x_278); -lean_ctor_set(x_409, 1, x_246); -lean_ctor_set(x_409, 2, x_384); -x_410 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_278); -x_411 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_411, 0, x_278); -lean_ctor_set(x_411, 1, x_410); -x_412 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_278); -x_413 = l_Lean_Syntax_node4(x_278, x_412, x_408, x_409, x_411, x_241); -x_414 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_278); -x_415 = l_Lean_Syntax_node2(x_278, x_414, x_407, x_413); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_416 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_278); -x_417 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_417, 0, x_278); -lean_ctor_set(x_417, 1, x_246); -lean_ctor_set(x_417, 2, x_416); -x_418 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_419 = l_Lean_Syntax_node8(x_278, x_418, x_417, x_390, x_392, x_396, x_398, x_403, x_405, x_415); -if (lean_is_scalar(x_381)) { - x_420 = lean_alloc_ctor(0, 2, 0); -} else { - x_420 = x_381; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_380); -return x_420; -} -else -{ -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; -x_421 = lean_ctor_get(x_2, 0); -lean_inc(x_421); -lean_dec(x_2); -x_422 = l_Array_mkArray1___rarg(x_421); -x_423 = l_Array_append___rarg(x_384, x_422); -lean_inc(x_278); -x_424 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_424, 0, x_278); -lean_ctor_set(x_424, 1, x_246); -lean_ctor_set(x_424, 2, x_423); -x_425 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_426 = l_Lean_Syntax_node8(x_278, x_425, x_424, x_390, x_392, x_396, x_398, x_403, x_405, x_415); -if (lean_is_scalar(x_381)) { - x_427 = lean_alloc_ctor(0, 2, 0); -} else { - x_427 = x_381; -} -lean_ctor_set(x_427, 0, x_426); -lean_ctor_set(x_427, 1, x_380); -return x_427; -} -} -} -else -{ -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; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; 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_object* x_449; lean_object* x_450; lean_object* x_451; uint8_t 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; 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_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; -x_428 = lean_ctor_get(x_273, 0); -x_429 = lean_ctor_get(x_273, 1); -lean_inc(x_429); -lean_inc(x_428); -lean_dec(x_273); -x_430 = l_Lean_SourceInfo_fromRef(x_428, x_259); -x_431 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_429); -lean_dec(x_6); -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_431, 1); -lean_inc(x_433); -if (lean_is_exclusive(x_431)) { - lean_ctor_release(x_431, 0); - lean_ctor_release(x_431, 1); - x_434 = x_431; -} else { - lean_dec_ref(x_431); - x_434 = lean_box(0); -} -x_435 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_433); -lean_dec(x_7); -x_436 = lean_ctor_get(x_435, 0); -lean_inc(x_436); -x_437 = lean_ctor_get(x_435, 1); -lean_inc(x_437); -if (lean_is_exclusive(x_435)) { - lean_ctor_release(x_435, 0); - lean_ctor_release(x_435, 1); - x_438 = x_435; -} else { - lean_dec_ref(x_435); - x_438 = lean_box(0); -} -x_439 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_430); -if (lean_is_scalar(x_434)) { - x_440 = lean_alloc_ctor(2, 2, 0); -} else { - x_440 = x_434; - lean_ctor_set_tag(x_440, 2); -} -lean_ctor_set(x_440, 0, x_430); -lean_ctor_set(x_440, 1, x_439); -x_441 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_442 = l_Array_append___rarg(x_441, x_274); -lean_inc(x_430); -x_443 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_443, 0, x_430); -lean_ctor_set(x_443, 1, x_246); -lean_ctor_set(x_443, 2, x_442); -x_444 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_430); -x_445 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_445, 0, x_430); -lean_ctor_set(x_445, 1, x_444); -x_446 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_430); -x_447 = l_Lean_Syntax_node3(x_430, x_446, x_440, x_443, x_445); -lean_inc(x_430); -x_448 = l_Lean_Syntax_node1(x_430, x_246, x_447); -x_449 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_430); -if (lean_is_scalar(x_263)) { - x_450 = lean_alloc_ctor(2, 2, 0); -} else { - x_450 = x_263; - lean_ctor_set_tag(x_450, 2); -} -lean_ctor_set(x_450, 0, x_430); -lean_ctor_set(x_450, 1, x_449); -x_451 = l_Lean_Syntax_getId(x_23); -x_452 = 1; -x_453 = l_Lean_mkIdentFrom(x_15, x_451, x_452); -lean_inc(x_430); -x_454 = l_Lean_Syntax_node2(x_430, x_246, x_453, x_23); -x_455 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_430); -if (lean_is_scalar(x_258)) { - x_456 = lean_alloc_ctor(2, 2, 0); -} else { - x_456 = x_258; - lean_ctor_set_tag(x_456, 2); -} -lean_ctor_set(x_456, 0, x_430); -lean_ctor_set(x_456, 1, x_455); -x_457 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_458 = l_Lean_addMacroScope(x_436, x_457, x_432); -x_459 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_460 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_430); -x_461 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_461, 0, x_430); -lean_ctor_set(x_461, 1, x_459); -lean_ctor_set(x_461, 2, x_458); -lean_ctor_set(x_461, 3, x_460); -x_462 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_430); -if (lean_is_scalar(x_251)) { - x_463 = lean_alloc_ctor(2, 2, 0); -} else { - x_463 = x_251; - lean_ctor_set_tag(x_463, 2); -} -lean_ctor_set(x_463, 0, x_430); -lean_ctor_set(x_463, 1, x_462); -x_464 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_430); -x_465 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_465, 0, x_430); -lean_ctor_set(x_465, 1, x_464); -lean_inc(x_430); -x_466 = l_Lean_Syntax_node1(x_430, x_246, x_198); -lean_inc(x_430); -x_467 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_467, 0, x_430); -lean_ctor_set(x_467, 1, x_246); -lean_ctor_set(x_467, 2, x_441); -x_468 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_430); -x_469 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_469, 0, x_430); -lean_ctor_set(x_469, 1, x_468); -x_470 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_430); -x_471 = l_Lean_Syntax_node4(x_430, x_470, x_466, x_467, x_469, x_241); -x_472 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_430); -x_473 = l_Lean_Syntax_node2(x_430, x_472, x_465, x_471); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_474 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_430); -x_475 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_475, 0, x_430); -lean_ctor_set(x_475, 1, x_246); -lean_ctor_set(x_475, 2, x_474); -x_476 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_477 = l_Lean_Syntax_node8(x_430, x_476, x_475, x_448, x_450, x_454, x_456, x_461, x_463, x_473); -if (lean_is_scalar(x_438)) { - x_478 = lean_alloc_ctor(0, 2, 0); -} else { - x_478 = x_438; -} -lean_ctor_set(x_478, 0, x_477); -lean_ctor_set(x_478, 1, x_437); -return x_478; -} -else -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_479 = lean_ctor_get(x_2, 0); -lean_inc(x_479); -lean_dec(x_2); -x_480 = l_Array_mkArray1___rarg(x_479); -x_481 = l_Array_append___rarg(x_441, x_480); -lean_inc(x_430); -x_482 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_482, 0, x_430); -lean_ctor_set(x_482, 1, x_246); -lean_ctor_set(x_482, 2, x_481); -x_483 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_484 = l_Lean_Syntax_node8(x_430, x_483, x_482, x_448, x_450, x_454, x_456, x_461, x_463, x_473); -if (lean_is_scalar(x_438)) { - x_485 = lean_alloc_ctor(0, 2, 0); -} else { - x_485 = x_438; -} -lean_ctor_set(x_485, 0, x_484); -lean_ctor_set(x_485, 1, x_437); -return x_485; -} -} -} -} -else -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_496 = lean_ctor_get(x_264, 1); -lean_inc(x_496); -lean_dec(x_264); -x_497 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; -lean_inc(x_260); -x_498 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_498, 0, x_260); -lean_ctor_set(x_498, 1, x_497); -x_499 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_276 = lean_ctor_get(x_274, 1); +x_277 = lean_ctor_get(x_274, 0); +lean_dec(x_277); +x_278 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; +lean_inc(x_270); +lean_ctor_set_tag(x_274, 2); +lean_ctor_set(x_274, 1, x_278); +lean_ctor_set(x_274, 0, x_270); +x_279 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; lean_inc(x_23); -lean_inc(x_260); -x_500 = l_Lean_Syntax_node2(x_260, x_499, x_498, x_23); -x_501 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; -x_502 = l_Lean_Syntax_node2(x_260, x_501, x_10, x_500); -x_503 = l_Lean_Elab_Command_getRef(x_6, x_7, x_496); +lean_inc(x_270); +x_280 = l_Lean_Syntax_node2(x_270, x_279, x_274, x_23); +x_281 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; +x_282 = l_Lean_Syntax_node2(x_270, x_281, x_10, x_280); +x_283 = l_Lean_Elab_Command_getRef(x_6, x_7, x_276); if (lean_obj_tag(x_5) == 0) { -lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_565 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; -x_566 = lean_array_push(x_565, x_502); -x_567 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_568 = l_Lean_Syntax_SepArray_ofElems(x_567, x_566); -lean_dec(x_566); -x_504 = x_568; -goto block_564; +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_497 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; +x_498 = lean_array_push(x_497, x_282); +x_499 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_500 = l_Lean_Syntax_SepArray_ofElems(x_499, x_498); +lean_dec(x_498); +x_284 = x_500; +goto block_496; } else { -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_569 = lean_ctor_get(x_5, 0); -lean_inc(x_569); +lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; +x_501 = lean_ctor_get(x_5, 0); +lean_inc(x_501); lean_dec(x_5); -x_570 = l_Lean_Syntax_TSepArray_getElems___rarg(x_569); -lean_dec(x_569); -x_571 = lean_array_push(x_570, x_502); -x_572 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_573 = l_Lean_Syntax_SepArray_ofElems(x_572, x_571); -lean_dec(x_571); -x_504 = x_573; -goto block_564; +x_502 = l_Lean_Syntax_TSepArray_getElems___rarg(x_501); +lean_dec(x_501); +x_503 = lean_array_push(x_502, x_282); +x_504 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_505 = l_Lean_Syntax_SepArray_ofElems(x_504, x_503); +lean_dec(x_503); +x_284 = x_505; +goto block_496; } -block_564: +block_496: { -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 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; 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; lean_object* x_527; lean_object* x_528; lean_object* x_529; uint8_t x_530; lean_object* x_531; 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; 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; lean_object* x_551; -x_505 = lean_ctor_get(x_503, 0); -lean_inc(x_505); -x_506 = lean_ctor_get(x_503, 1); -lean_inc(x_506); -if (lean_is_exclusive(x_503)) { - lean_ctor_release(x_503, 0); - lean_ctor_release(x_503, 1); - x_507 = x_503; -} else { - lean_dec_ref(x_503); - x_507 = lean_box(0); -} -x_508 = l_Lean_SourceInfo_fromRef(x_505, x_259); -x_509 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_506); +uint8_t x_285; +x_285 = !lean_is_exclusive(x_283); +if (x_285 == 0) +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; +x_286 = lean_ctor_get(x_283, 0); +x_287 = lean_ctor_get(x_283, 1); +x_288 = l_Lean_SourceInfo_fromRef(x_286, x_269); +x_289 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_287); lean_dec(x_6); -x_510 = lean_ctor_get(x_509, 0); -lean_inc(x_510); -x_511 = lean_ctor_get(x_509, 1); -lean_inc(x_511); -if (lean_is_exclusive(x_509)) { - lean_ctor_release(x_509, 0); - lean_ctor_release(x_509, 1); - x_512 = x_509; -} else { - lean_dec_ref(x_509); - x_512 = lean_box(0); -} -x_513 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_511); +x_290 = !lean_is_exclusive(x_289); +if (x_290 == 0) +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; +x_291 = lean_ctor_get(x_289, 0); +x_292 = lean_ctor_get(x_289, 1); +x_293 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_292); lean_dec(x_7); -x_514 = lean_ctor_get(x_513, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_513, 1); +x_294 = !lean_is_exclusive(x_293); +if (x_294 == 0) +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t 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; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_295 = lean_ctor_get(x_293, 0); +x_296 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_288); +lean_ctor_set_tag(x_289, 2); +lean_ctor_set(x_289, 1, x_296); +lean_ctor_set(x_289, 0, x_288); +x_297 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_298 = l_Array_append___rarg(x_297, x_284); +lean_inc(x_288); +x_299 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_299, 0, x_288); +lean_ctor_set(x_299, 1, x_256); +lean_ctor_set(x_299, 2, x_298); +x_300 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_288); +lean_ctor_set_tag(x_283, 2); +lean_ctor_set(x_283, 1, x_300); +lean_ctor_set(x_283, 0, x_288); +x_301 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_288); +x_302 = l_Lean_Syntax_node3(x_288, x_301, x_289, x_299, x_283); +lean_inc(x_288); +x_303 = l_Lean_Syntax_node1(x_288, x_256, x_302); +x_304 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_288); +if (lean_is_scalar(x_273)) { + x_305 = lean_alloc_ctor(2, 2, 0); +} else { + x_305 = x_273; + lean_ctor_set_tag(x_305, 2); +} +lean_ctor_set(x_305, 0, x_288); +lean_ctor_set(x_305, 1, x_304); +x_306 = l_Lean_Syntax_getId(x_23); +x_307 = 1; +x_308 = l_Lean_mkIdentFrom(x_15, x_306, x_307); +lean_inc(x_288); +x_309 = l_Lean_Syntax_node2(x_288, x_256, x_308, x_23); +x_310 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_288); +if (lean_is_scalar(x_268)) { + x_311 = lean_alloc_ctor(2, 2, 0); +} else { + x_311 = x_268; + lean_ctor_set_tag(x_311, 2); +} +lean_ctor_set(x_311, 0, x_288); +lean_ctor_set(x_311, 1, x_310); +x_312 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_313 = l_Lean_addMacroScope(x_295, x_312, x_291); +x_314 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_315 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_288); +x_316 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_316, 0, x_288); +lean_ctor_set(x_316, 1, x_314); +lean_ctor_set(x_316, 2, x_313); +lean_ctor_set(x_316, 3, x_315); +x_317 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_288); +if (lean_is_scalar(x_261)) { + x_318 = lean_alloc_ctor(2, 2, 0); +} else { + x_318 = x_261; + lean_ctor_set_tag(x_318, 2); +} +lean_ctor_set(x_318, 0, x_288); +lean_ctor_set(x_318, 1, x_317); +x_319 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_288); +x_320 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_320, 0, x_288); +lean_ctor_set(x_320, 1, x_319); +lean_inc(x_288); +x_321 = l_Lean_Syntax_node1(x_288, x_256, x_206); +lean_inc(x_288); +x_322 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_322, 0, x_288); +lean_ctor_set(x_322, 1, x_256); +lean_ctor_set(x_322, 2, x_297); +x_323 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_288); +x_324 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_324, 0, x_288); +lean_ctor_set(x_324, 1, x_323); +x_325 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_288); +x_326 = l_Lean_Syntax_node4(x_288, x_325, x_321, x_322, x_324, x_251); +x_327 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_288); +x_328 = l_Lean_Syntax_node2(x_288, x_327, x_320, x_326); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_329 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_288); +x_330 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_330, 0, x_288); +lean_ctor_set(x_330, 1, x_256); +lean_ctor_set(x_330, 2, x_329); +x_331 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_332 = l_Lean_Syntax_node8(x_288, x_331, x_330, x_303, x_305, x_309, x_311, x_316, x_318, x_328); +lean_ctor_set(x_293, 0, x_332); +return x_293; +} +else +{ +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_333 = lean_ctor_get(x_2, 0); +lean_inc(x_333); +lean_dec(x_2); +x_334 = l_Array_mkArray1___rarg(x_333); +x_335 = l_Array_append___rarg(x_297, x_334); +lean_inc(x_288); +x_336 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_336, 0, x_288); +lean_ctor_set(x_336, 1, x_256); +lean_ctor_set(x_336, 2, x_335); +x_337 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_338 = l_Lean_Syntax_node8(x_288, x_337, x_336, x_303, x_305, x_309, x_311, x_316, x_318, x_328); +lean_ctor_set(x_293, 0, x_338); +return x_293; +} +} +else +{ +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_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; 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; +x_339 = lean_ctor_get(x_293, 0); +x_340 = lean_ctor_get(x_293, 1); +lean_inc(x_340); +lean_inc(x_339); +lean_dec(x_293); +x_341 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_288); +lean_ctor_set_tag(x_289, 2); +lean_ctor_set(x_289, 1, x_341); +lean_ctor_set(x_289, 0, x_288); +x_342 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_343 = l_Array_append___rarg(x_342, x_284); +lean_inc(x_288); +x_344 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_344, 0, x_288); +lean_ctor_set(x_344, 1, x_256); +lean_ctor_set(x_344, 2, x_343); +x_345 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_288); +lean_ctor_set_tag(x_283, 2); +lean_ctor_set(x_283, 1, x_345); +lean_ctor_set(x_283, 0, x_288); +x_346 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_288); +x_347 = l_Lean_Syntax_node3(x_288, x_346, x_289, x_344, x_283); +lean_inc(x_288); +x_348 = l_Lean_Syntax_node1(x_288, x_256, x_347); +x_349 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_288); +if (lean_is_scalar(x_273)) { + x_350 = lean_alloc_ctor(2, 2, 0); +} else { + x_350 = x_273; + lean_ctor_set_tag(x_350, 2); +} +lean_ctor_set(x_350, 0, x_288); +lean_ctor_set(x_350, 1, x_349); +x_351 = l_Lean_Syntax_getId(x_23); +x_352 = 1; +x_353 = l_Lean_mkIdentFrom(x_15, x_351, x_352); +lean_inc(x_288); +x_354 = l_Lean_Syntax_node2(x_288, x_256, x_353, x_23); +x_355 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_288); +if (lean_is_scalar(x_268)) { + x_356 = lean_alloc_ctor(2, 2, 0); +} else { + x_356 = x_268; + lean_ctor_set_tag(x_356, 2); +} +lean_ctor_set(x_356, 0, x_288); +lean_ctor_set(x_356, 1, x_355); +x_357 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_358 = l_Lean_addMacroScope(x_339, x_357, x_291); +x_359 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_360 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_288); +x_361 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_361, 0, x_288); +lean_ctor_set(x_361, 1, x_359); +lean_ctor_set(x_361, 2, x_358); +lean_ctor_set(x_361, 3, x_360); +x_362 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_288); +if (lean_is_scalar(x_261)) { + x_363 = lean_alloc_ctor(2, 2, 0); +} else { + x_363 = x_261; + lean_ctor_set_tag(x_363, 2); +} +lean_ctor_set(x_363, 0, x_288); +lean_ctor_set(x_363, 1, x_362); +x_364 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_288); +x_365 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_365, 0, x_288); +lean_ctor_set(x_365, 1, x_364); +lean_inc(x_288); +x_366 = l_Lean_Syntax_node1(x_288, x_256, x_206); +lean_inc(x_288); +x_367 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_367, 0, x_288); +lean_ctor_set(x_367, 1, x_256); +lean_ctor_set(x_367, 2, x_342); +x_368 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_288); +x_369 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_369, 0, x_288); +lean_ctor_set(x_369, 1, x_368); +x_370 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_288); +x_371 = l_Lean_Syntax_node4(x_288, x_370, x_366, x_367, x_369, x_251); +x_372 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_288); +x_373 = l_Lean_Syntax_node2(x_288, x_372, x_365, x_371); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_374 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_288); +x_375 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_375, 0, x_288); +lean_ctor_set(x_375, 1, x_256); +lean_ctor_set(x_375, 2, x_374); +x_376 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_377 = l_Lean_Syntax_node8(x_288, x_376, x_375, x_348, x_350, x_354, x_356, x_361, x_363, x_373); +x_378 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_378, 0, x_377); +lean_ctor_set(x_378, 1, x_340); +return x_378; +} +else +{ +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +x_379 = lean_ctor_get(x_2, 0); +lean_inc(x_379); +lean_dec(x_2); +x_380 = l_Array_mkArray1___rarg(x_379); +x_381 = l_Array_append___rarg(x_342, x_380); +lean_inc(x_288); +x_382 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_382, 0, x_288); +lean_ctor_set(x_382, 1, x_256); +lean_ctor_set(x_382, 2, x_381); +x_383 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_384 = l_Lean_Syntax_node8(x_288, x_383, x_382, x_348, x_350, x_354, x_356, x_361, x_363, x_373); +x_385 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_385, 0, x_384); +lean_ctor_set(x_385, 1, x_340); +return x_385; +} +} +} +else +{ +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_object* x_399; lean_object* x_400; 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_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* 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_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; +x_386 = lean_ctor_get(x_289, 0); +x_387 = lean_ctor_get(x_289, 1); +lean_inc(x_387); +lean_inc(x_386); +lean_dec(x_289); +x_388 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_387); +lean_dec(x_7); +x_389 = lean_ctor_get(x_388, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_388, 1); +lean_inc(x_390); +if (lean_is_exclusive(x_388)) { + lean_ctor_release(x_388, 0); + lean_ctor_release(x_388, 1); + x_391 = x_388; +} else { + lean_dec_ref(x_388); + x_391 = lean_box(0); +} +x_392 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_288); +x_393 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_393, 0, x_288); +lean_ctor_set(x_393, 1, x_392); +x_394 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_395 = l_Array_append___rarg(x_394, x_284); +lean_inc(x_288); +x_396 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_396, 0, x_288); +lean_ctor_set(x_396, 1, x_256); +lean_ctor_set(x_396, 2, x_395); +x_397 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_288); +lean_ctor_set_tag(x_283, 2); +lean_ctor_set(x_283, 1, x_397); +lean_ctor_set(x_283, 0, x_288); +x_398 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_288); +x_399 = l_Lean_Syntax_node3(x_288, x_398, x_393, x_396, x_283); +lean_inc(x_288); +x_400 = l_Lean_Syntax_node1(x_288, x_256, x_399); +x_401 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_288); +if (lean_is_scalar(x_273)) { + x_402 = lean_alloc_ctor(2, 2, 0); +} else { + x_402 = x_273; + lean_ctor_set_tag(x_402, 2); +} +lean_ctor_set(x_402, 0, x_288); +lean_ctor_set(x_402, 1, x_401); +x_403 = l_Lean_Syntax_getId(x_23); +x_404 = 1; +x_405 = l_Lean_mkIdentFrom(x_15, x_403, x_404); +lean_inc(x_288); +x_406 = l_Lean_Syntax_node2(x_288, x_256, x_405, x_23); +x_407 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_288); +if (lean_is_scalar(x_268)) { + x_408 = lean_alloc_ctor(2, 2, 0); +} else { + x_408 = x_268; + lean_ctor_set_tag(x_408, 2); +} +lean_ctor_set(x_408, 0, x_288); +lean_ctor_set(x_408, 1, x_407); +x_409 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_410 = l_Lean_addMacroScope(x_389, x_409, x_386); +x_411 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_412 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_288); +x_413 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_413, 0, x_288); +lean_ctor_set(x_413, 1, x_411); +lean_ctor_set(x_413, 2, x_410); +lean_ctor_set(x_413, 3, x_412); +x_414 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_288); +if (lean_is_scalar(x_261)) { + x_415 = lean_alloc_ctor(2, 2, 0); +} else { + x_415 = x_261; + lean_ctor_set_tag(x_415, 2); +} +lean_ctor_set(x_415, 0, x_288); +lean_ctor_set(x_415, 1, x_414); +x_416 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_288); +x_417 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_417, 0, x_288); +lean_ctor_set(x_417, 1, x_416); +lean_inc(x_288); +x_418 = l_Lean_Syntax_node1(x_288, x_256, x_206); +lean_inc(x_288); +x_419 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_419, 0, x_288); +lean_ctor_set(x_419, 1, x_256); +lean_ctor_set(x_419, 2, x_394); +x_420 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_288); +x_421 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_421, 0, x_288); +lean_ctor_set(x_421, 1, x_420); +x_422 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_288); +x_423 = l_Lean_Syntax_node4(x_288, x_422, x_418, x_419, x_421, x_251); +x_424 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_288); +x_425 = l_Lean_Syntax_node2(x_288, x_424, x_417, x_423); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_426 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_288); +x_427 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_427, 0, x_288); +lean_ctor_set(x_427, 1, x_256); +lean_ctor_set(x_427, 2, x_426); +x_428 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_429 = l_Lean_Syntax_node8(x_288, x_428, x_427, x_400, x_402, x_406, x_408, x_413, x_415, x_425); +if (lean_is_scalar(x_391)) { + x_430 = lean_alloc_ctor(0, 2, 0); +} else { + x_430 = x_391; +} +lean_ctor_set(x_430, 0, x_429); +lean_ctor_set(x_430, 1, x_390); +return x_430; +} +else +{ +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; +x_431 = lean_ctor_get(x_2, 0); +lean_inc(x_431); +lean_dec(x_2); +x_432 = l_Array_mkArray1___rarg(x_431); +x_433 = l_Array_append___rarg(x_394, x_432); +lean_inc(x_288); +x_434 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_434, 0, x_288); +lean_ctor_set(x_434, 1, x_256); +lean_ctor_set(x_434, 2, x_433); +x_435 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_436 = l_Lean_Syntax_node8(x_288, x_435, x_434, x_400, x_402, x_406, x_408, x_413, x_415, x_425); +if (lean_is_scalar(x_391)) { + x_437 = lean_alloc_ctor(0, 2, 0); +} else { + x_437 = x_391; +} +lean_ctor_set(x_437, 0, x_436); +lean_ctor_set(x_437, 1, x_390); +return x_437; +} +} +} +else +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; 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_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; lean_object* x_461; uint8_t 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_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; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; +x_438 = lean_ctor_get(x_283, 0); +x_439 = lean_ctor_get(x_283, 1); +lean_inc(x_439); +lean_inc(x_438); +lean_dec(x_283); +x_440 = l_Lean_SourceInfo_fromRef(x_438, x_269); +x_441 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_439); +lean_dec(x_6); +x_442 = lean_ctor_get(x_441, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_441, 1); +lean_inc(x_443); +if (lean_is_exclusive(x_441)) { + lean_ctor_release(x_441, 0); + lean_ctor_release(x_441, 1); + x_444 = x_441; +} else { + lean_dec_ref(x_441); + x_444 = lean_box(0); +} +x_445 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_443); +lean_dec(x_7); +x_446 = lean_ctor_get(x_445, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_445, 1); +lean_inc(x_447); +if (lean_is_exclusive(x_445)) { + lean_ctor_release(x_445, 0); + lean_ctor_release(x_445, 1); + x_448 = x_445; +} else { + lean_dec_ref(x_445); + x_448 = lean_box(0); +} +x_449 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_440); +if (lean_is_scalar(x_444)) { + x_450 = lean_alloc_ctor(2, 2, 0); +} else { + x_450 = x_444; + lean_ctor_set_tag(x_450, 2); +} +lean_ctor_set(x_450, 0, x_440); +lean_ctor_set(x_450, 1, x_449); +x_451 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_452 = l_Array_append___rarg(x_451, x_284); +lean_inc(x_440); +x_453 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_453, 0, x_440); +lean_ctor_set(x_453, 1, x_256); +lean_ctor_set(x_453, 2, x_452); +x_454 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_440); +x_455 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_455, 0, x_440); +lean_ctor_set(x_455, 1, x_454); +x_456 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_440); +x_457 = l_Lean_Syntax_node3(x_440, x_456, x_450, x_453, x_455); +lean_inc(x_440); +x_458 = l_Lean_Syntax_node1(x_440, x_256, x_457); +x_459 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_440); +if (lean_is_scalar(x_273)) { + x_460 = lean_alloc_ctor(2, 2, 0); +} else { + x_460 = x_273; + lean_ctor_set_tag(x_460, 2); +} +lean_ctor_set(x_460, 0, x_440); +lean_ctor_set(x_460, 1, x_459); +x_461 = l_Lean_Syntax_getId(x_23); +x_462 = 1; +x_463 = l_Lean_mkIdentFrom(x_15, x_461, x_462); +lean_inc(x_440); +x_464 = l_Lean_Syntax_node2(x_440, x_256, x_463, x_23); +x_465 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_440); +if (lean_is_scalar(x_268)) { + x_466 = lean_alloc_ctor(2, 2, 0); +} else { + x_466 = x_268; + lean_ctor_set_tag(x_466, 2); +} +lean_ctor_set(x_466, 0, x_440); +lean_ctor_set(x_466, 1, x_465); +x_467 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_468 = l_Lean_addMacroScope(x_446, x_467, x_442); +x_469 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_470 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_440); +x_471 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_471, 0, x_440); +lean_ctor_set(x_471, 1, x_469); +lean_ctor_set(x_471, 2, x_468); +lean_ctor_set(x_471, 3, x_470); +x_472 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_440); +if (lean_is_scalar(x_261)) { + x_473 = lean_alloc_ctor(2, 2, 0); +} else { + x_473 = x_261; + lean_ctor_set_tag(x_473, 2); +} +lean_ctor_set(x_473, 0, x_440); +lean_ctor_set(x_473, 1, x_472); +x_474 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_440); +x_475 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_475, 0, x_440); +lean_ctor_set(x_475, 1, x_474); +lean_inc(x_440); +x_476 = l_Lean_Syntax_node1(x_440, x_256, x_206); +lean_inc(x_440); +x_477 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_477, 0, x_440); +lean_ctor_set(x_477, 1, x_256); +lean_ctor_set(x_477, 2, x_451); +x_478 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_440); +x_479 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_479, 0, x_440); +lean_ctor_set(x_479, 1, x_478); +x_480 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_440); +x_481 = l_Lean_Syntax_node4(x_440, x_480, x_476, x_477, x_479, x_251); +x_482 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_440); +x_483 = l_Lean_Syntax_node2(x_440, x_482, x_475, x_481); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +x_484 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_440); +x_485 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_485, 0, x_440); +lean_ctor_set(x_485, 1, x_256); +lean_ctor_set(x_485, 2, x_484); +x_486 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_487 = l_Lean_Syntax_node8(x_440, x_486, x_485, x_458, x_460, x_464, x_466, x_471, x_473, x_483); +if (lean_is_scalar(x_448)) { + x_488 = lean_alloc_ctor(0, 2, 0); +} else { + x_488 = x_448; +} +lean_ctor_set(x_488, 0, x_487); +lean_ctor_set(x_488, 1, x_447); +return x_488; +} +else +{ +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; +x_489 = lean_ctor_get(x_2, 0); +lean_inc(x_489); +lean_dec(x_2); +x_490 = l_Array_mkArray1___rarg(x_489); +x_491 = l_Array_append___rarg(x_451, x_490); +lean_inc(x_440); +x_492 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_492, 0, x_440); +lean_ctor_set(x_492, 1, x_256); +lean_ctor_set(x_492, 2, x_491); +x_493 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_494 = l_Lean_Syntax_node8(x_440, x_493, x_492, x_458, x_460, x_464, x_466, x_471, x_473, x_483); +if (lean_is_scalar(x_448)) { + x_495 = lean_alloc_ctor(0, 2, 0); +} else { + x_495 = x_448; +} +lean_ctor_set(x_495, 0, x_494); +lean_ctor_set(x_495, 1, x_447); +return x_495; +} +} +} +} +else +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_506 = lean_ctor_get(x_274, 1); +lean_inc(x_506); +lean_dec(x_274); +x_507 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; +lean_inc(x_270); +x_508 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_508, 0, x_270); +lean_ctor_set(x_508, 1, x_507); +x_509 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; +lean_inc(x_23); +lean_inc(x_270); +x_510 = l_Lean_Syntax_node2(x_270, x_509, x_508, x_23); +x_511 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; +x_512 = l_Lean_Syntax_node2(x_270, x_511, x_10, x_510); +x_513 = l_Lean_Elab_Command_getRef(x_6, x_7, x_506); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; +x_575 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; +x_576 = lean_array_push(x_575, x_512); +x_577 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_578 = l_Lean_Syntax_SepArray_ofElems(x_577, x_576); +lean_dec(x_576); +x_514 = x_578; +goto block_574; +} +else +{ +lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; +x_579 = lean_ctor_get(x_5, 0); +lean_inc(x_579); +lean_dec(x_5); +x_580 = l_Lean_Syntax_TSepArray_getElems___rarg(x_579); +lean_dec(x_579); +x_581 = lean_array_push(x_580, x_512); +x_582 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_583 = l_Lean_Syntax_SepArray_ofElems(x_582, x_581); +lean_dec(x_581); +x_514 = x_583; +goto block_574; +} +block_574: +{ +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; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 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; uint8_t x_540; lean_object* x_541; 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; 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; lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_515 = lean_ctor_get(x_513, 0); lean_inc(x_515); +x_516 = lean_ctor_get(x_513, 1); +lean_inc(x_516); if (lean_is_exclusive(x_513)) { lean_ctor_release(x_513, 0); lean_ctor_release(x_513, 1); - x_516 = x_513; + x_517 = x_513; } else { lean_dec_ref(x_513); - x_516 = lean_box(0); + x_517 = lean_box(0); } -x_517 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_508); -if (lean_is_scalar(x_512)) { - x_518 = lean_alloc_ctor(2, 2, 0); +x_518 = l_Lean_SourceInfo_fromRef(x_515, x_269); +x_519 = l_Lean_Elab_Command_getCurrMacroScope(x_6, x_7, x_516); +lean_dec(x_6); +x_520 = lean_ctor_get(x_519, 0); +lean_inc(x_520); +x_521 = lean_ctor_get(x_519, 1); +lean_inc(x_521); +if (lean_is_exclusive(x_519)) { + lean_ctor_release(x_519, 0); + lean_ctor_release(x_519, 1); + x_522 = x_519; } else { - x_518 = x_512; - lean_ctor_set_tag(x_518, 2); + lean_dec_ref(x_519); + x_522 = lean_box(0); } -lean_ctor_set(x_518, 0, x_508); -lean_ctor_set(x_518, 1, x_517); -x_519 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_520 = l_Array_append___rarg(x_519, x_504); -lean_inc(x_508); -x_521 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_521, 0, x_508); -lean_ctor_set(x_521, 1, x_246); -lean_ctor_set(x_521, 2, x_520); -x_522 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_508); -if (lean_is_scalar(x_507)) { - x_523 = lean_alloc_ctor(2, 2, 0); +x_523 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_521); +lean_dec(x_7); +x_524 = lean_ctor_get(x_523, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_523, 1); +lean_inc(x_525); +if (lean_is_exclusive(x_523)) { + lean_ctor_release(x_523, 0); + lean_ctor_release(x_523, 1); + x_526 = x_523; } else { - x_523 = x_507; - lean_ctor_set_tag(x_523, 2); + lean_dec_ref(x_523); + x_526 = lean_box(0); } -lean_ctor_set(x_523, 0, x_508); -lean_ctor_set(x_523, 1, x_522); -x_524 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_508); -x_525 = l_Lean_Syntax_node3(x_508, x_524, x_518, x_521, x_523); -lean_inc(x_508); -x_526 = l_Lean_Syntax_node1(x_508, x_246, x_525); -x_527 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_508); -if (lean_is_scalar(x_263)) { +x_527 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_518); +if (lean_is_scalar(x_522)) { x_528 = lean_alloc_ctor(2, 2, 0); } else { - x_528 = x_263; + x_528 = x_522; lean_ctor_set_tag(x_528, 2); } -lean_ctor_set(x_528, 0, x_508); +lean_ctor_set(x_528, 0, x_518); lean_ctor_set(x_528, 1, x_527); -x_529 = l_Lean_Syntax_getId(x_23); -x_530 = 1; -x_531 = l_Lean_mkIdentFrom(x_15, x_529, x_530); -lean_inc(x_508); -x_532 = l_Lean_Syntax_node2(x_508, x_246, x_531, x_23); -x_533 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_508); -if (lean_is_scalar(x_258)) { - x_534 = lean_alloc_ctor(2, 2, 0); +x_529 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_530 = l_Array_append___rarg(x_529, x_514); +lean_inc(x_518); +x_531 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_531, 0, x_518); +lean_ctor_set(x_531, 1, x_256); +lean_ctor_set(x_531, 2, x_530); +x_532 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_518); +if (lean_is_scalar(x_517)) { + x_533 = lean_alloc_ctor(2, 2, 0); } else { - x_534 = x_258; - lean_ctor_set_tag(x_534, 2); + x_533 = x_517; + lean_ctor_set_tag(x_533, 2); } -lean_ctor_set(x_534, 0, x_508); -lean_ctor_set(x_534, 1, x_533); -x_535 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_536 = l_Lean_addMacroScope(x_514, x_535, x_510); -x_537 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_538 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_508); -x_539 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_539, 0, x_508); -lean_ctor_set(x_539, 1, x_537); -lean_ctor_set(x_539, 2, x_536); -lean_ctor_set(x_539, 3, x_538); -x_540 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_508); -if (lean_is_scalar(x_251)) { - x_541 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_533, 0, x_518); +lean_ctor_set(x_533, 1, x_532); +x_534 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_518); +x_535 = l_Lean_Syntax_node3(x_518, x_534, x_528, x_531, x_533); +lean_inc(x_518); +x_536 = l_Lean_Syntax_node1(x_518, x_256, x_535); +x_537 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_518); +if (lean_is_scalar(x_273)) { + x_538 = lean_alloc_ctor(2, 2, 0); } else { - x_541 = x_251; - lean_ctor_set_tag(x_541, 2); + x_538 = x_273; + lean_ctor_set_tag(x_538, 2); } -lean_ctor_set(x_541, 0, x_508); -lean_ctor_set(x_541, 1, x_540); -x_542 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_508); -x_543 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_543, 0, x_508); -lean_ctor_set(x_543, 1, x_542); -lean_inc(x_508); -x_544 = l_Lean_Syntax_node1(x_508, x_246, x_198); -lean_inc(x_508); -x_545 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_545, 0, x_508); -lean_ctor_set(x_545, 1, x_246); -lean_ctor_set(x_545, 2, x_519); -x_546 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_508); -x_547 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_547, 0, x_508); -lean_ctor_set(x_547, 1, x_546); -x_548 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_508); -x_549 = l_Lean_Syntax_node4(x_508, x_548, x_544, x_545, x_547, x_241); -x_550 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_508); -x_551 = l_Lean_Syntax_node2(x_508, x_550, x_543, x_549); +lean_ctor_set(x_538, 0, x_518); +lean_ctor_set(x_538, 1, x_537); +x_539 = l_Lean_Syntax_getId(x_23); +x_540 = 1; +x_541 = l_Lean_mkIdentFrom(x_15, x_539, x_540); +lean_inc(x_518); +x_542 = l_Lean_Syntax_node2(x_518, x_256, x_541, x_23); +x_543 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_518); +if (lean_is_scalar(x_268)) { + x_544 = lean_alloc_ctor(2, 2, 0); +} else { + x_544 = x_268; + lean_ctor_set_tag(x_544, 2); +} +lean_ctor_set(x_544, 0, x_518); +lean_ctor_set(x_544, 1, x_543); +x_545 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_546 = l_Lean_addMacroScope(x_524, x_545, x_520); +x_547 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_548 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_518); +x_549 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_549, 0, x_518); +lean_ctor_set(x_549, 1, x_547); +lean_ctor_set(x_549, 2, x_546); +lean_ctor_set(x_549, 3, x_548); +x_550 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_518); +if (lean_is_scalar(x_261)) { + x_551 = lean_alloc_ctor(2, 2, 0); +} else { + x_551 = x_261; + lean_ctor_set_tag(x_551, 2); +} +lean_ctor_set(x_551, 0, x_518); +lean_ctor_set(x_551, 1, x_550); +x_552 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_518); +x_553 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_553, 0, x_518); +lean_ctor_set(x_553, 1, x_552); +lean_inc(x_518); +x_554 = l_Lean_Syntax_node1(x_518, x_256, x_206); +lean_inc(x_518); +x_555 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_555, 0, x_518); +lean_ctor_set(x_555, 1, x_256); +lean_ctor_set(x_555, 2, x_529); +x_556 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_518); +x_557 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_557, 0, x_518); +lean_ctor_set(x_557, 1, x_556); +x_558 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_518); +x_559 = l_Lean_Syntax_node4(x_518, x_558, x_554, x_555, x_557, x_251); +x_560 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_518); +x_561 = l_Lean_Syntax_node2(x_518, x_560, x_553, x_559); if (lean_obj_tag(x_2) == 0) { -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_552 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_508); -x_553 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_553, 0, x_508); -lean_ctor_set(x_553, 1, x_246); -lean_ctor_set(x_553, 2, x_552); -x_554 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_555 = l_Lean_Syntax_node8(x_508, x_554, x_553, x_526, x_528, x_532, x_534, x_539, x_541, x_551); -if (lean_is_scalar(x_516)) { - x_556 = lean_alloc_ctor(0, 2, 0); +lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_562 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_518); +x_563 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_563, 0, x_518); +lean_ctor_set(x_563, 1, x_256); +lean_ctor_set(x_563, 2, x_562); +x_564 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_565 = l_Lean_Syntax_node8(x_518, x_564, x_563, x_536, x_538, x_542, x_544, x_549, x_551, x_561); +if (lean_is_scalar(x_526)) { + x_566 = lean_alloc_ctor(0, 2, 0); } else { - x_556 = x_516; + x_566 = x_526; } -lean_ctor_set(x_556, 0, x_555); -lean_ctor_set(x_556, 1, x_515); -return x_556; +lean_ctor_set(x_566, 0, x_565); +lean_ctor_set(x_566, 1, x_525); +return x_566; } else { -lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_557 = lean_ctor_get(x_2, 0); -lean_inc(x_557); +lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; +x_567 = lean_ctor_get(x_2, 0); +lean_inc(x_567); lean_dec(x_2); -x_558 = l_Array_mkArray1___rarg(x_557); -x_559 = l_Array_append___rarg(x_519, x_558); -lean_inc(x_508); -x_560 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_560, 0, x_508); -lean_ctor_set(x_560, 1, x_246); -lean_ctor_set(x_560, 2, x_559); -x_561 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_562 = l_Lean_Syntax_node8(x_508, x_561, x_560, x_526, x_528, x_532, x_534, x_539, x_541, x_551); -if (lean_is_scalar(x_516)) { - x_563 = lean_alloc_ctor(0, 2, 0); +x_568 = l_Array_mkArray1___rarg(x_567); +x_569 = l_Array_append___rarg(x_529, x_568); +lean_inc(x_518); +x_570 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_570, 0, x_518); +lean_ctor_set(x_570, 1, x_256); +lean_ctor_set(x_570, 2, x_569); +x_571 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_572 = l_Lean_Syntax_node8(x_518, x_571, x_570, x_536, x_538, x_542, x_544, x_549, x_551, x_561); +if (lean_is_scalar(x_526)) { + x_573 = lean_alloc_ctor(0, 2, 0); } else { - x_563 = x_516; + x_573 = x_526; } -lean_ctor_set(x_563, 0, x_562); -lean_ctor_set(x_563, 1, x_515); -return x_563; +lean_ctor_set(x_573, 0, x_572); +lean_ctor_set(x_573, 1, x_525); +return x_573; } } } } else { -lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; uint8_t x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; -x_574 = lean_ctor_get(x_6, 0); -x_575 = lean_ctor_get(x_6, 1); -x_576 = lean_ctor_get(x_6, 2); -x_577 = lean_ctor_get(x_6, 3); -x_578 = lean_ctor_get(x_6, 4); -x_579 = lean_ctor_get(x_6, 5); -x_580 = lean_ctor_get(x_6, 7); -x_581 = lean_ctor_get(x_6, 8); -lean_inc(x_581); -lean_inc(x_580); -lean_inc(x_579); -lean_inc(x_578); -lean_inc(x_577); -lean_inc(x_576); -lean_inc(x_575); -lean_inc(x_574); -lean_dec(x_6); -x_582 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_582, 0, x_574); -lean_ctor_set(x_582, 1, x_575); -lean_ctor_set(x_582, 2, x_576); -lean_ctor_set(x_582, 3, x_577); -lean_ctor_set(x_582, 4, x_578); -lean_ctor_set(x_582, 5, x_579); -lean_ctor_set(x_582, 6, x_252); -lean_ctor_set(x_582, 7, x_580); -lean_ctor_set(x_582, 8, x_581); -x_583 = l_Lean_Elab_Command_getRef(x_582, x_7, x_250); -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_583, 1); -lean_inc(x_585); -if (lean_is_exclusive(x_583)) { - lean_ctor_release(x_583, 0); - lean_ctor_release(x_583, 1); - x_586 = x_583; -} else { - lean_dec_ref(x_583); - x_586 = lean_box(0); -} -x_587 = 0; -x_588 = l_Lean_SourceInfo_fromRef(x_584, x_587); -x_589 = l_Lean_Elab_Command_getCurrMacroScope(x_582, x_7, x_585); -x_590 = lean_ctor_get(x_589, 1); +lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; uint8_t x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; uint8_t 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; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; +x_584 = lean_ctor_get(x_6, 0); +x_585 = lean_ctor_get(x_6, 1); +x_586 = lean_ctor_get(x_6, 2); +x_587 = lean_ctor_get(x_6, 3); +x_588 = lean_ctor_get(x_6, 4); +x_589 = lean_ctor_get(x_6, 5); +x_590 = lean_ctor_get(x_6, 7); +x_591 = lean_ctor_get(x_6, 8); +x_592 = lean_ctor_get(x_6, 9); +x_593 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_592); +lean_inc(x_591); lean_inc(x_590); -if (lean_is_exclusive(x_589)) { - lean_ctor_release(x_589, 0); - lean_ctor_release(x_589, 1); - x_591 = x_589; -} else { - lean_dec_ref(x_589); - x_591 = lean_box(0); -} -x_592 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_590); -x_593 = lean_ctor_get(x_592, 1); -lean_inc(x_593); -if (lean_is_exclusive(x_592)) { - lean_ctor_release(x_592, 0); - lean_ctor_release(x_592, 1); - x_594 = x_592; -} else { - lean_dec_ref(x_592); - x_594 = lean_box(0); -} -x_595 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; +lean_inc(x_589); lean_inc(x_588); -if (lean_is_scalar(x_594)) { - x_596 = lean_alloc_ctor(2, 2, 0); +lean_inc(x_587); +lean_inc(x_586); +lean_inc(x_585); +lean_inc(x_584); +lean_dec(x_6); +x_594 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_594, 0, x_584); +lean_ctor_set(x_594, 1, x_585); +lean_ctor_set(x_594, 2, x_586); +lean_ctor_set(x_594, 3, x_587); +lean_ctor_set(x_594, 4, x_588); +lean_ctor_set(x_594, 5, x_589); +lean_ctor_set(x_594, 6, x_262); +lean_ctor_set(x_594, 7, x_590); +lean_ctor_set(x_594, 8, x_591); +lean_ctor_set(x_594, 9, x_592); +lean_ctor_set_uint8(x_594, sizeof(void*)*10, x_593); +x_595 = l_Lean_Elab_Command_getRef(x_594, x_7, x_260); +x_596 = lean_ctor_get(x_595, 0); +lean_inc(x_596); +x_597 = lean_ctor_get(x_595, 1); +lean_inc(x_597); +if (lean_is_exclusive(x_595)) { + lean_ctor_release(x_595, 0); + lean_ctor_release(x_595, 1); + x_598 = x_595; } else { - x_596 = x_594; - lean_ctor_set_tag(x_596, 2); + lean_dec_ref(x_595); + x_598 = lean_box(0); } -lean_ctor_set(x_596, 0, x_588); -lean_ctor_set(x_596, 1, x_595); -x_597 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; -lean_inc(x_23); -lean_inc(x_588); -x_598 = l_Lean_Syntax_node2(x_588, x_597, x_596, x_23); -x_599 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; -x_600 = l_Lean_Syntax_node2(x_588, x_599, x_10, x_598); -x_601 = l_Lean_Elab_Command_getRef(x_582, x_7, x_593); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_663 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; -x_664 = lean_array_push(x_663, x_600); -x_665 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_666 = l_Lean_Syntax_SepArray_ofElems(x_665, x_664); -lean_dec(x_664); -x_602 = x_666; -goto block_662; -} -else -{ -lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_667 = lean_ctor_get(x_5, 0); -lean_inc(x_667); -lean_dec(x_5); -x_668 = l_Lean_Syntax_TSepArray_getElems___rarg(x_667); -lean_dec(x_667); -x_669 = lean_array_push(x_668, x_600); -x_670 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; -x_671 = l_Lean_Syntax_SepArray_ofElems(x_670, x_669); -lean_dec(x_669); -x_602 = x_671; -goto block_662; -} -block_662: -{ -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; 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; 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; uint8_t x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 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; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; -x_603 = lean_ctor_get(x_601, 0); -lean_inc(x_603); -x_604 = lean_ctor_get(x_601, 1); -lean_inc(x_604); +x_599 = 0; +x_600 = l_Lean_SourceInfo_fromRef(x_596, x_599); +x_601 = l_Lean_Elab_Command_getCurrMacroScope(x_594, x_7, x_597); +x_602 = lean_ctor_get(x_601, 1); +lean_inc(x_602); if (lean_is_exclusive(x_601)) { lean_ctor_release(x_601, 0); lean_ctor_release(x_601, 1); - x_605 = x_601; + x_603 = x_601; } else { lean_dec_ref(x_601); - x_605 = lean_box(0); + x_603 = lean_box(0); } -x_606 = l_Lean_SourceInfo_fromRef(x_603, x_587); -x_607 = l_Lean_Elab_Command_getCurrMacroScope(x_582, x_7, x_604); -lean_dec(x_582); -x_608 = lean_ctor_get(x_607, 0); -lean_inc(x_608); -x_609 = lean_ctor_get(x_607, 1); -lean_inc(x_609); -if (lean_is_exclusive(x_607)) { - lean_ctor_release(x_607, 0); - lean_ctor_release(x_607, 1); - x_610 = x_607; +x_604 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_602); +x_605 = lean_ctor_get(x_604, 1); +lean_inc(x_605); +if (lean_is_exclusive(x_604)) { + lean_ctor_release(x_604, 0); + lean_ctor_release(x_604, 1); + x_606 = x_604; } else { - lean_dec_ref(x_607); - x_610 = lean_box(0); + lean_dec_ref(x_604); + x_606 = lean_box(0); } -x_611 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_609); +x_607 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; +lean_inc(x_600); +if (lean_is_scalar(x_606)) { + x_608 = lean_alloc_ctor(2, 2, 0); +} else { + x_608 = x_606; + lean_ctor_set_tag(x_608, 2); +} +lean_ctor_set(x_608, 0, x_600); +lean_ctor_set(x_608, 1, x_607); +x_609 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5; +lean_inc(x_23); +lean_inc(x_600); +x_610 = l_Lean_Syntax_node2(x_600, x_609, x_608, x_23); +x_611 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2; +x_612 = l_Lean_Syntax_node2(x_600, x_611, x_10, x_610); +x_613 = l_Lean_Elab_Command_getRef(x_594, x_7, x_605); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; +x_675 = l_Lean_Elab_Command_elabMacroRulesAux___closed__56; +x_676 = lean_array_push(x_675, x_612); +x_677 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_678 = l_Lean_Syntax_SepArray_ofElems(x_677, x_676); +lean_dec(x_676); +x_614 = x_678; +goto block_674; +} +else +{ +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; +x_679 = lean_ctor_get(x_5, 0); +lean_inc(x_679); +lean_dec(x_5); +x_680 = l_Lean_Syntax_TSepArray_getElems___rarg(x_679); +lean_dec(x_679); +x_681 = lean_array_push(x_680, x_612); +x_682 = l_Lean_Elab_Command_elabMacroRulesAux___closed__57; +x_683 = l_Lean_Syntax_SepArray_ofElems(x_682, x_681); +lean_dec(x_681); +x_614 = x_683; +goto block_674; +} +block_674: +{ +lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; 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_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 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; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* 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; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; +x_615 = lean_ctor_get(x_613, 0); +lean_inc(x_615); +x_616 = lean_ctor_get(x_613, 1); +lean_inc(x_616); +if (lean_is_exclusive(x_613)) { + lean_ctor_release(x_613, 0); + lean_ctor_release(x_613, 1); + x_617 = x_613; +} else { + lean_dec_ref(x_613); + x_617 = lean_box(0); +} +x_618 = l_Lean_SourceInfo_fromRef(x_615, x_599); +x_619 = l_Lean_Elab_Command_getCurrMacroScope(x_594, x_7, x_616); +lean_dec(x_594); +x_620 = lean_ctor_get(x_619, 0); +lean_inc(x_620); +x_621 = lean_ctor_get(x_619, 1); +lean_inc(x_621); +if (lean_is_exclusive(x_619)) { + lean_ctor_release(x_619, 0); + lean_ctor_release(x_619, 1); + x_622 = x_619; +} else { + lean_dec_ref(x_619); + x_622 = lean_box(0); +} +x_623 = l_Lean_Elab_Command_getMainModule___rarg(x_7, x_621); lean_dec(x_7); -x_612 = lean_ctor_get(x_611, 0); -lean_inc(x_612); -x_613 = lean_ctor_get(x_611, 1); -lean_inc(x_613); -if (lean_is_exclusive(x_611)) { - lean_ctor_release(x_611, 0); - lean_ctor_release(x_611, 1); - x_614 = x_611; +x_624 = lean_ctor_get(x_623, 0); +lean_inc(x_624); +x_625 = lean_ctor_get(x_623, 1); +lean_inc(x_625); +if (lean_is_exclusive(x_623)) { + lean_ctor_release(x_623, 0); + lean_ctor_release(x_623, 1); + x_626 = x_623; } else { - lean_dec_ref(x_611); - x_614 = lean_box(0); + lean_dec_ref(x_623); + x_626 = lean_box(0); } -x_615 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; -lean_inc(x_606); -if (lean_is_scalar(x_610)) { - x_616 = lean_alloc_ctor(2, 2, 0); +x_627 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12; +lean_inc(x_618); +if (lean_is_scalar(x_622)) { + x_628 = lean_alloc_ctor(2, 2, 0); } else { - x_616 = x_610; - lean_ctor_set_tag(x_616, 2); + x_628 = x_622; + lean_ctor_set_tag(x_628, 2); } -lean_ctor_set(x_616, 0, x_606); -lean_ctor_set(x_616, 1, x_615); -x_617 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; -x_618 = l_Array_append___rarg(x_617, x_602); -lean_inc(x_606); -x_619 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_619, 0, x_606); -lean_ctor_set(x_619, 1, x_246); -lean_ctor_set(x_619, 2, x_618); -x_620 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; -lean_inc(x_606); -if (lean_is_scalar(x_605)) { - x_621 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_628, 0, x_618); +lean_ctor_set(x_628, 1, x_627); +x_629 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__4; +x_630 = l_Array_append___rarg(x_629, x_614); +lean_inc(x_618); +x_631 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_631, 0, x_618); +lean_ctor_set(x_631, 1, x_256); +lean_ctor_set(x_631, 2, x_630); +x_632 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13; +lean_inc(x_618); +if (lean_is_scalar(x_617)) { + x_633 = lean_alloc_ctor(2, 2, 0); } else { - x_621 = x_605; - lean_ctor_set_tag(x_621, 2); + x_633 = x_617; + lean_ctor_set_tag(x_633, 2); } -lean_ctor_set(x_621, 0, x_606); -lean_ctor_set(x_621, 1, x_620); -x_622 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; -lean_inc(x_606); -x_623 = l_Lean_Syntax_node3(x_606, x_622, x_616, x_619, x_621); -lean_inc(x_606); -x_624 = l_Lean_Syntax_node1(x_606, x_246, x_623); -x_625 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_inc(x_606); -if (lean_is_scalar(x_591)) { - x_626 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_633, 0, x_618); +lean_ctor_set(x_633, 1, x_632); +x_634 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +lean_inc(x_618); +x_635 = l_Lean_Syntax_node3(x_618, x_634, x_628, x_631, x_633); +lean_inc(x_618); +x_636 = l_Lean_Syntax_node1(x_618, x_256, x_635); +x_637 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +lean_inc(x_618); +if (lean_is_scalar(x_603)) { + x_638 = lean_alloc_ctor(2, 2, 0); } else { - x_626 = x_591; - lean_ctor_set_tag(x_626, 2); + x_638 = x_603; + lean_ctor_set_tag(x_638, 2); } -lean_ctor_set(x_626, 0, x_606); -lean_ctor_set(x_626, 1, x_625); -x_627 = l_Lean_Syntax_getId(x_23); -x_628 = 1; -x_629 = l_Lean_mkIdentFrom(x_15, x_627, x_628); -lean_inc(x_606); -x_630 = l_Lean_Syntax_node2(x_606, x_246, x_629, x_23); -x_631 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_inc(x_606); -if (lean_is_scalar(x_586)) { - x_632 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_638, 0, x_618); +lean_ctor_set(x_638, 1, x_637); +x_639 = l_Lean_Syntax_getId(x_23); +x_640 = 1; +x_641 = l_Lean_mkIdentFrom(x_15, x_639, x_640); +lean_inc(x_618); +x_642 = l_Lean_Syntax_node2(x_618, x_256, x_641, x_23); +x_643 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +lean_inc(x_618); +if (lean_is_scalar(x_598)) { + x_644 = lean_alloc_ctor(2, 2, 0); } else { - x_632 = x_586; - lean_ctor_set_tag(x_632, 2); + x_644 = x_598; + lean_ctor_set_tag(x_644, 2); } -lean_ctor_set(x_632, 0, x_606); -lean_ctor_set(x_632, 1, x_631); -x_633 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -x_634 = l_Lean_addMacroScope(x_612, x_633, x_608); -x_635 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_636 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; -lean_inc(x_606); -x_637 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_637, 0, x_606); -lean_ctor_set(x_637, 1, x_635); -lean_ctor_set(x_637, 2, x_634); -lean_ctor_set(x_637, 3, x_636); -x_638 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; -lean_inc(x_606); -if (lean_is_scalar(x_251)) { - x_639 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_644, 0, x_618); +lean_ctor_set(x_644, 1, x_643); +x_645 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20; +x_646 = l_Lean_addMacroScope(x_624, x_645, x_620); +x_647 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_648 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__7; +lean_inc(x_618); +x_649 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_649, 0, x_618); +lean_ctor_set(x_649, 1, x_647); +lean_ctor_set(x_649, 2, x_646); +lean_ctor_set(x_649, 3, x_648); +x_650 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_inc(x_618); +if (lean_is_scalar(x_261)) { + x_651 = lean_alloc_ctor(2, 2, 0); } else { - x_639 = x_251; - lean_ctor_set_tag(x_639, 2); + x_651 = x_261; + lean_ctor_set_tag(x_651, 2); } -lean_ctor_set(x_639, 0, x_606); -lean_ctor_set(x_639, 1, x_638); -x_640 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_inc(x_606); -x_641 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_641, 0, x_606); -lean_ctor_set(x_641, 1, x_640); -lean_inc(x_606); -x_642 = l_Lean_Syntax_node1(x_606, x_246, x_198); -lean_inc(x_606); -x_643 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_643, 0, x_606); -lean_ctor_set(x_643, 1, x_246); -lean_ctor_set(x_643, 2, x_617); -x_644 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; -lean_inc(x_606); -x_645 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_645, 0, x_606); -lean_ctor_set(x_645, 1, x_644); -x_646 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; -lean_inc(x_606); -x_647 = l_Lean_Syntax_node4(x_606, x_646, x_642, x_643, x_645, x_241); -x_648 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; -lean_inc(x_606); -x_649 = l_Lean_Syntax_node2(x_606, x_648, x_641, x_647); +lean_ctor_set(x_651, 0, x_618); +lean_ctor_set(x_651, 1, x_650); +x_652 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27; +lean_inc(x_618); +x_653 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_653, 0, x_618); +lean_ctor_set(x_653, 1, x_652); +lean_inc(x_618); +x_654 = l_Lean_Syntax_node1(x_618, x_256, x_206); +lean_inc(x_618); +x_655 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_655, 0, x_618); +lean_ctor_set(x_655, 1, x_256); +lean_ctor_set(x_655, 2, x_629); +x_656 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__5; +lean_inc(x_618); +x_657 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_657, 0, x_618); +lean_ctor_set(x_657, 1, x_656); +x_658 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__9; +lean_inc(x_618); +x_659 = l_Lean_Syntax_node4(x_618, x_658, x_654, x_655, x_657, x_251); +x_660 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28; +lean_inc(x_618); +x_661 = l_Lean_Syntax_node2(x_618, x_660, x_653, x_659); if (lean_obj_tag(x_2) == 0) { -lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_650 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; -lean_inc(x_606); -x_651 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_651, 0, x_606); -lean_ctor_set(x_651, 1, x_246); -lean_ctor_set(x_651, 2, x_650); -x_652 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_653 = l_Lean_Syntax_node8(x_606, x_652, x_651, x_624, x_626, x_630, x_632, x_637, x_639, x_649); -if (lean_is_scalar(x_614)) { - x_654 = lean_alloc_ctor(0, 2, 0); +lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; +x_662 = l_Lean_Elab_Command_elabMacroRulesAux___closed__55; +lean_inc(x_618); +x_663 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_663, 0, x_618); +lean_ctor_set(x_663, 1, x_256); +lean_ctor_set(x_663, 2, x_662); +x_664 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_665 = l_Lean_Syntax_node8(x_618, x_664, x_663, x_636, x_638, x_642, x_644, x_649, x_651, x_661); +if (lean_is_scalar(x_626)) { + x_666 = lean_alloc_ctor(0, 2, 0); } else { - x_654 = x_614; + x_666 = x_626; } -lean_ctor_set(x_654, 0, x_653); -lean_ctor_set(x_654, 1, x_613); -return x_654; +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_625); +return x_666; } else { -lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; -x_655 = lean_ctor_get(x_2, 0); -lean_inc(x_655); +lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_667 = lean_ctor_get(x_2, 0); +lean_inc(x_667); lean_dec(x_2); -x_656 = l_Array_mkArray1___rarg(x_655); -x_657 = l_Array_append___rarg(x_617, x_656); -lean_inc(x_606); -x_658 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_658, 0, x_606); -lean_ctor_set(x_658, 1, x_246); -lean_ctor_set(x_658, 2, x_657); -x_659 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; -x_660 = l_Lean_Syntax_node8(x_606, x_659, x_658, x_624, x_626, x_630, x_632, x_637, x_639, x_649); -if (lean_is_scalar(x_614)) { - x_661 = lean_alloc_ctor(0, 2, 0); +x_668 = l_Array_mkArray1___rarg(x_667); +x_669 = l_Array_append___rarg(x_629, x_668); +lean_inc(x_618); +x_670 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_670, 0, x_618); +lean_ctor_set(x_670, 1, x_256); +lean_ctor_set(x_670, 2, x_669); +x_671 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +x_672 = l_Lean_Syntax_node8(x_618, x_671, x_670, x_636, x_638, x_642, x_644, x_649, x_651, x_661); +if (lean_is_scalar(x_626)) { + x_673 = lean_alloc_ctor(0, 2, 0); } else { - x_661 = x_614; + x_673 = x_626; } -lean_ctor_set(x_661, 0, x_660); -lean_ctor_set(x_661, 1, x_613); -return x_661; +lean_ctor_set(x_673, 0, x_672); +lean_ctor_set(x_673, 1, x_625); +return x_673; } } } @@ -5812,17 +5847,17 @@ return x_661; } else { -lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; +lean_object* x_684; lean_object* x_685; lean_object* x_686; uint8_t x_687; lean_dec(x_17); -x_672 = lean_unsigned_to_nat(5u); -x_673 = l_Lean_Syntax_getArg(x_1, x_672); -x_674 = l_Lean_Elab_Command_elabMacroRulesAux___closed__30; -lean_inc(x_673); -x_675 = l_Lean_Syntax_isOfKind(x_673, x_674); -if (x_675 == 0) +x_684 = lean_unsigned_to_nat(5u); +x_685 = l_Lean_Syntax_getArg(x_1, x_684); +x_686 = l_Lean_Elab_Command_elabMacroRulesAux___closed__30; +lean_inc(x_685); +x_687 = l_Lean_Syntax_isOfKind(x_685, x_686); +if (x_687 == 0) { -lean_object* x_676; -lean_dec(x_673); +lean_object* x_688; +lean_dec(x_685); lean_dec(x_15); lean_dec(x_10); lean_dec(x_7); @@ -5830,179 +5865,184 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_676 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_8); -return x_676; +x_688 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__17___rarg(x_8); +return x_688; } else { -lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; 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_677 = l_Lean_Syntax_getArg(x_673, x_18); -lean_dec(x_673); -x_678 = l_Lean_Syntax_getArgs(x_677); -lean_dec(x_677); -x_679 = lean_box(2); -x_680 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; -lean_inc(x_678); -x_681 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_681, 0, x_679); -lean_ctor_set(x_681, 1, x_680); -lean_ctor_set(x_681, 2, x_678); -x_682 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; -x_683 = lean_array_push(x_682, x_15); -x_684 = lean_array_push(x_683, x_681); -x_685 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_685, 0, x_679); -lean_ctor_set(x_685, 1, x_680); -lean_ctor_set(x_685, 2, x_684); -x_686 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lambda__1___boxed), 11, 6); -lean_closure_set(x_686, 0, x_680); -lean_closure_set(x_686, 1, x_674); -lean_closure_set(x_686, 2, x_3); -lean_closure_set(x_686, 3, x_10); -lean_closure_set(x_686, 4, x_5); -lean_closure_set(x_686, 5, x_2); -x_687 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); -x_688 = lean_ctor_get(x_687, 0); -lean_inc(x_688); -x_689 = lean_ctor_get(x_687, 1); -lean_inc(x_689); -lean_dec(x_687); -x_690 = l_Lean_replaceRef(x_685, x_688); -lean_dec(x_688); +lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; uint8_t x_703; +x_689 = l_Lean_Syntax_getArg(x_685, x_18); lean_dec(x_685); -x_691 = !lean_is_exclusive(x_6); -if (x_691 == 0) -{ -lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_692 = lean_ctor_get(x_6, 6); -lean_dec(x_692); -lean_ctor_set(x_6, 6, x_690); -x_693 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1; -x_694 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_678, x_693, x_686, x_6, x_7, x_689); -if (lean_obj_tag(x_694) == 0) -{ -uint8_t x_695; -x_695 = !lean_is_exclusive(x_694); -if (x_695 == 0) -{ -return x_694; -} -else -{ -lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_696 = lean_ctor_get(x_694, 0); -x_697 = lean_ctor_get(x_694, 1); -lean_inc(x_697); -lean_inc(x_696); -lean_dec(x_694); -x_698 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_698, 0, x_696); -lean_ctor_set(x_698, 1, x_697); -return x_698; -} -} -else -{ -uint8_t x_699; -x_699 = !lean_is_exclusive(x_694); -if (x_699 == 0) -{ -return x_694; -} -else -{ -lean_object* x_700; lean_object* x_701; lean_object* x_702; -x_700 = lean_ctor_get(x_694, 0); -x_701 = lean_ctor_get(x_694, 1); -lean_inc(x_701); +x_690 = l_Lean_Syntax_getArgs(x_689); +lean_dec(x_689); +x_691 = lean_box(2); +x_692 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___lambda__2___closed__3; +lean_inc(x_690); +x_693 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_693, 0, x_691); +lean_ctor_set(x_693, 1, x_692); +lean_ctor_set(x_693, 2, x_690); +x_694 = l_Lean_Elab_Command_elabMacroRules___lambda__2___closed__3; +x_695 = lean_array_push(x_694, x_15); +x_696 = lean_array_push(x_695, x_693); +x_697 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_697, 0, x_691); +lean_ctor_set(x_697, 1, x_692); +lean_ctor_set(x_697, 2, x_696); +x_698 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lambda__1___boxed), 11, 6); +lean_closure_set(x_698, 0, x_692); +lean_closure_set(x_698, 1, x_686); +lean_closure_set(x_698, 2, x_3); +lean_closure_set(x_698, 3, x_10); +lean_closure_set(x_698, 4, x_5); +lean_closure_set(x_698, 5, x_2); +x_699 = l_Lean_Elab_Command_getRef(x_6, x_7, x_8); +x_700 = lean_ctor_get(x_699, 0); lean_inc(x_700); -lean_dec(x_694); -x_702 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_702, 0, x_700); -lean_ctor_set(x_702, 1, x_701); -return x_702; -} -} +x_701 = lean_ctor_get(x_699, 1); +lean_inc(x_701); +lean_dec(x_699); +x_702 = l_Lean_replaceRef(x_697, x_700); +lean_dec(x_700); +lean_dec(x_697); +x_703 = !lean_is_exclusive(x_6); +if (x_703 == 0) +{ +lean_object* x_704; lean_object* x_705; lean_object* x_706; +x_704 = lean_ctor_get(x_6, 6); +lean_dec(x_704); +lean_ctor_set(x_6, 6, x_702); +x_705 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1; +x_706 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_690, x_705, x_698, x_6, x_7, x_701); +if (lean_obj_tag(x_706) == 0) +{ +uint8_t x_707; +x_707 = !lean_is_exclusive(x_706); +if (x_707 == 0) +{ +return x_706; } else { -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; -x_703 = lean_ctor_get(x_6, 0); -x_704 = lean_ctor_get(x_6, 1); -x_705 = lean_ctor_get(x_6, 2); -x_706 = lean_ctor_get(x_6, 3); -x_707 = lean_ctor_get(x_6, 4); -x_708 = lean_ctor_get(x_6, 5); -x_709 = lean_ctor_get(x_6, 7); -x_710 = lean_ctor_get(x_6, 8); -lean_inc(x_710); +lean_object* x_708; lean_object* x_709; lean_object* x_710; +x_708 = lean_ctor_get(x_706, 0); +x_709 = lean_ctor_get(x_706, 1); lean_inc(x_709); lean_inc(x_708); -lean_inc(x_707); -lean_inc(x_706); -lean_inc(x_705); -lean_inc(x_704); -lean_inc(x_703); -lean_dec(x_6); -x_711 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_711, 0, x_703); -lean_ctor_set(x_711, 1, x_704); -lean_ctor_set(x_711, 2, x_705); -lean_ctor_set(x_711, 3, x_706); -lean_ctor_set(x_711, 4, x_707); -lean_ctor_set(x_711, 5, x_708); -lean_ctor_set(x_711, 6, x_690); -lean_ctor_set(x_711, 7, x_709); -lean_ctor_set(x_711, 8, x_710); -x_712 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1; -x_713 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_678, x_712, x_686, x_711, x_7, x_689); -if (lean_obj_tag(x_713) == 0) -{ -lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; -x_714 = lean_ctor_get(x_713, 0); -lean_inc(x_714); -x_715 = lean_ctor_get(x_713, 1); -lean_inc(x_715); -if (lean_is_exclusive(x_713)) { - lean_ctor_release(x_713, 0); - lean_ctor_release(x_713, 1); - x_716 = x_713; -} else { - lean_dec_ref(x_713); - x_716 = lean_box(0); +lean_dec(x_706); +x_710 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_710, 0, x_708); +lean_ctor_set(x_710, 1, x_709); +return x_710; } -if (lean_is_scalar(x_716)) { - x_717 = lean_alloc_ctor(0, 2, 0); -} else { - x_717 = x_716; -} -lean_ctor_set(x_717, 0, x_714); -lean_ctor_set(x_717, 1, x_715); -return x_717; } else { -lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_718 = lean_ctor_get(x_713, 0); -lean_inc(x_718); -x_719 = lean_ctor_get(x_713, 1); +uint8_t x_711; +x_711 = !lean_is_exclusive(x_706); +if (x_711 == 0) +{ +return x_706; +} +else +{ +lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_712 = lean_ctor_get(x_706, 0); +x_713 = lean_ctor_get(x_706, 1); +lean_inc(x_713); +lean_inc(x_712); +lean_dec(x_706); +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_712); +lean_ctor_set(x_714, 1, x_713); +return x_714; +} +} +} +else +{ +lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; uint8_t x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; +x_715 = lean_ctor_get(x_6, 0); +x_716 = lean_ctor_get(x_6, 1); +x_717 = lean_ctor_get(x_6, 2); +x_718 = lean_ctor_get(x_6, 3); +x_719 = lean_ctor_get(x_6, 4); +x_720 = lean_ctor_get(x_6, 5); +x_721 = lean_ctor_get(x_6, 7); +x_722 = lean_ctor_get(x_6, 8); +x_723 = lean_ctor_get(x_6, 9); +x_724 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); +lean_inc(x_723); +lean_inc(x_722); +lean_inc(x_721); +lean_inc(x_720); lean_inc(x_719); -if (lean_is_exclusive(x_713)) { - lean_ctor_release(x_713, 0); - lean_ctor_release(x_713, 1); - x_720 = x_713; +lean_inc(x_718); +lean_inc(x_717); +lean_inc(x_716); +lean_inc(x_715); +lean_dec(x_6); +x_725 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_725, 0, x_715); +lean_ctor_set(x_725, 1, x_716); +lean_ctor_set(x_725, 2, x_717); +lean_ctor_set(x_725, 3, x_718); +lean_ctor_set(x_725, 4, x_719); +lean_ctor_set(x_725, 5, x_720); +lean_ctor_set(x_725, 6, x_702); +lean_ctor_set(x_725, 7, x_721); +lean_ctor_set(x_725, 8, x_722); +lean_ctor_set(x_725, 9, x_723); +lean_ctor_set_uint8(x_725, sizeof(void*)*10, x_724); +x_726 = l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__1; +x_727 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_690, x_726, x_698, x_725, x_7, x_701); +if (lean_obj_tag(x_727) == 0) +{ +lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; +x_728 = lean_ctor_get(x_727, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_727, 1); +lean_inc(x_729); +if (lean_is_exclusive(x_727)) { + lean_ctor_release(x_727, 0); + lean_ctor_release(x_727, 1); + x_730 = x_727; } else { - lean_dec_ref(x_713); - x_720 = lean_box(0); + lean_dec_ref(x_727); + x_730 = lean_box(0); } -if (lean_is_scalar(x_720)) { - x_721 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_730)) { + x_731 = lean_alloc_ctor(0, 2, 0); } else { - x_721 = x_720; + x_731 = x_730; } -lean_ctor_set(x_721, 0, x_718); -lean_ctor_set(x_721, 1, x_719); -return x_721; +lean_ctor_set(x_731, 0, x_728); +lean_ctor_set(x_731, 1, x_729); +return x_731; +} +else +{ +lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; +x_732 = lean_ctor_get(x_727, 0); +lean_inc(x_732); +x_733 = lean_ctor_get(x_727, 1); +lean_inc(x_733); +if (lean_is_exclusive(x_727)) { + lean_ctor_release(x_727, 0); + lean_ctor_release(x_727, 1); + x_734 = x_727; +} else { + lean_dec_ref(x_727); + x_734 = lean_box(0); +} +if (lean_is_scalar(x_734)) { + x_735 = lean_alloc_ctor(1, 2, 0); +} else { + x_735 = x_734; +} +lean_ctor_set(x_735, 0, x_732); +lean_ctor_set(x_735, 1, x_733); +return x_735; } } } diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 854f9cb455..41e6bc054b 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -20,8 +20,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Matc LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_precheckMatch___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632_(lean_object*); LEAN_EXPORT lean_object* l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_isAtomicDiscr___closed__3; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -48,10 +46,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUn LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(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_forInUnsafe_loop___at_Lean_Elab_Term_ToDepElimPattern_main___spec__5___closed__6; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabNoMatch___spec__2___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_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3; lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withEqs_go___rarg___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*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_isAtomicDiscr___spec__1___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -66,6 +62,7 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErr LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs___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_Meta_withLetDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__9___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5; static lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___closed__1; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__7___rarg___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*); @@ -87,6 +84,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch static lean_object* l_Lean_Elab_Term_elabNoMatch___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_precheckMatch___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Term_ToDepElimPattern_main___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__12___boxed(lean_object*, lean_object*, lean_object*); @@ -95,13 +93,10 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPatte LEAN_EXPORT lean_object* l_Lean_ForEachExprWhere_visited___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__11(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goType___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoFun_declRange___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___lambda__3___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___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__8; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__4; lean_object* l_Lean_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__13___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__12(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,6 +114,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_ lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__13(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_panic___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__2___rarg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___lambda__2___boxed(lean_object**); LEAN_EXPORT uint8_t l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_containsFVar(lean_object*, lean_object*); @@ -132,15 +128,14 @@ lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object* static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor___spec__1___rarg___closed__1; static lean_object* l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3___lambda__1___closed__1; static lean_object* l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3___closed__3; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7; lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___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_Meta_transform_visit_visitLet___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__6___lambda__1___boxed(lean_object**); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__3; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__11___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize___closed__2; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__10; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,8 +169,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchG lean_object* l_Lean_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__6(lean_object*, lean_object*, uint8_t, uint8_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_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12; uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___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*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_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*); static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__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*); @@ -221,6 +218,7 @@ extern lean_object* l_Lean_ForEachExprWhere_initCache; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_addVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__4(lean_object*, lean_object*, size_t, size_t); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__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* l_Lean_RBNode_insert___at_Lean_MVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_isAtomicDiscr___closed__1; @@ -272,7 +270,6 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_TopSort_State_visitedFVars___default; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__6(lean_object*, lean_object*, 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___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_withMVar___rarg(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_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_unpackMatchTypePatterns(lean_object*); lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -321,6 +318,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPat LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634_(lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__15; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__3(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*); @@ -359,6 +357,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElim LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_processVar(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_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___spec__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_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___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*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch_declRange___closed__2; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__1; @@ -368,6 +367,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchG LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__4; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___closed__6; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabNoFun___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__6___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___closed__2; @@ -405,6 +405,7 @@ LEAN_EXPORT lean_object* l_Lean_ForEachExprWhere_visit_go___at___private_Lean_El LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___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_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchOptMotive(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_toPattern___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -426,7 +427,6 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at___private_Lean_Elab_Match_ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___closed__1; lean_object* l_Lean_mkInaccessible(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10; LEAN_EXPORT lean_object* l_Lean_ForEachExprWhere_visit_go___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__10___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -475,6 +475,7 @@ static lean_object* l_Lean_Elab_Term_precheckMatch___lambda__1___closed__1; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__5___lambda__1___boxed(lean_object**); lean_object* l_Lean_Meta_kabstract(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11; static lean_object* l_Lean_Elab_Term_isAtomicDiscr___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -497,6 +498,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_ToDepElimPattern_main___spec__8(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_ReaderT_instMonadLift(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__22(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_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -513,10 +515,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__9___rarg___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___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__14(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815_(lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__9(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__6; lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__5; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); @@ -541,6 +545,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoFun___closed__2; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_markIsDep(lean_object*); @@ -585,6 +590,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpec LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f___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_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2; uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_processInaccessible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -625,7 +631,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_ LEAN_EXPORT lean_object* l_Lean_ForEachExprWhere_visit_go___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__14___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___spec__1___rarg___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_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); @@ -658,7 +663,6 @@ lean_object* l_Lean_mkPatternWithRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_unpack_go___rarg(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_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_State_patternVars___default; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); @@ -697,7 +701,6 @@ extern lean_object* l_Lean_Elab_abortTermExceptionId; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_updateMatchType___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_Lean_HashMap_insert___at_Lean_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14; lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__8___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -719,7 +722,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___rarg___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__13; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3; size_t lean_usize_mod(size_t, size_t); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch___lambda__2(lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___lambda__1___closed__4; @@ -743,6 +748,7 @@ extern lean_object* l_Lean_inheritedTraceOptions; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_ToDepElimPattern_main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoFun___spec__1___lambda__1___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoFun(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_processVar___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*); @@ -759,7 +765,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize___lambda__2 static lean_object* l_Lean_Elab_Term_precheckMatch___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__16(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__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_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_throwEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__4(lean_object*, lean_object*, lean_object*); @@ -874,6 +879,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElabo LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___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___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__4___boxed(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getIndexToInclude_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -983,9 +989,9 @@ lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch___lambda__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___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_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1043,7 +1049,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch lean_object* l_Lean_Expr_fvar___override(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___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_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_applyRefMap___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__7___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1121,7 +1126,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_addVar___bo LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabNoMatch___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813_(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__5(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* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(lean_object*, lean_object*); @@ -1144,17 +1148,14 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch_ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5; lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch_declRange___closed__6; static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__5(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1; static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__1; uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_checkCompatibleApps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___spec__1(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2; lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4544,7 +4545,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___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, 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; 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_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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -4567,161 +4568,169 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = lean_nat_dec_eq(x_15, x_16); -if (x_24 == 0) +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = lean_nat_dec_eq(x_15, x_16); +if (x_26 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 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; 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_26 = lean_ctor_get(x_9, 10); -lean_dec(x_26); -x_27 = lean_ctor_get(x_9, 9); -lean_dec(x_27); -x_28 = lean_ctor_get(x_9, 8); +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; +x_28 = lean_ctor_get(x_9, 11); lean_dec(x_28); -x_29 = lean_ctor_get(x_9, 7); +x_29 = lean_ctor_get(x_9, 10); lean_dec(x_29); -x_30 = lean_ctor_get(x_9, 6); +x_30 = lean_ctor_get(x_9, 9); lean_dec(x_30); -x_31 = lean_ctor_get(x_9, 5); +x_31 = lean_ctor_get(x_9, 8); lean_dec(x_31); -x_32 = lean_ctor_get(x_9, 4); +x_32 = lean_ctor_get(x_9, 7); lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 3); +x_33 = lean_ctor_get(x_9, 6); lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 2); +x_34 = lean_ctor_get(x_9, 5); lean_dec(x_34); -x_35 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_9, 0); +x_36 = lean_ctor_get(x_9, 3); lean_dec(x_36); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_15, x_37); -lean_dec(x_15); -lean_ctor_set(x_9, 3, x_38); -x_39 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -return x_39; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_inc(x_41); +x_37 = lean_ctor_get(x_9, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_9, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_9, 0); lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_15, x_40); +lean_dec(x_15); +lean_ctor_set(x_9, 3, x_41); +x_42 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; } else { -uint8_t x_44; -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_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); 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; +lean_inc(x_44); +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 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; +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) +{ +return x_42; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_42, 0); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_42); +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 { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_dec(x_9); -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_add(x_15, x_48); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_15, x_51); lean_dec(x_15); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_12); -lean_ctor_set(x_50, 1, x_13); -lean_ctor_set(x_50, 2, x_14); -lean_ctor_set(x_50, 3, x_49); -lean_ctor_set(x_50, 4, x_16); -lean_ctor_set(x_50, 5, x_17); -lean_ctor_set(x_50, 6, x_18); -lean_ctor_set(x_50, 7, x_19); -lean_ctor_set(x_50, 8, x_20); -lean_ctor_set(x_50, 9, x_21); -lean_ctor_set(x_50, 10, x_22); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_23); -x_51 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_50, x_10, x_11); -if (lean_obj_tag(x_51) == 0) +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_13); +lean_ctor_set(x_53, 2, x_14); +lean_ctor_set(x_53, 3, x_52); +lean_ctor_set(x_53, 4, x_16); +lean_ctor_set(x_53, 5, x_17); +lean_ctor_set(x_53, 6, x_18); +lean_ctor_set(x_53, 7, x_19); +lean_ctor_set(x_53, 8, x_20); +lean_ctor_set(x_53, 9, x_21); +lean_ctor_set(x_53, 10, x_22); +lean_ctor_set(x_53, 11, x_24); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_25); +x_54 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_53, x_10, x_11); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_51, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_58 = x_51; +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; } else { - lean_dec_ref(x_51); - x_58 = lean_box(0); + lean_dec_ref(x_54); + x_57 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_58; + x_58 = x_57; } -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + 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); +return x_62; } } } else { -lean_object* x_60; uint8_t x_61; +lean_object* x_63; uint8_t x_64; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -4736,28 +4745,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_60 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__16___rarg(x_17, x_7, x_8, x_9, x_10, x_11); +x_63 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__16___rarg(x_17, 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_7); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -return x_60; +return x_63; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_60); -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_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; } } } @@ -8096,14 +8105,18 @@ if (x_39 == 0) { lean_object* x_40; uint8_t x_41; x_40 = lean_ctor_get(x_19, 0); -x_41 = l_Lean_Exception_isRuntime(x_40); +x_41 = l_Lean_Exception_isInterrupt(x_40); if (x_41 == 0) { -lean_object* x_42; +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_dec(x_40); -x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_43 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; lean_ctor_set_tag(x_19, 0); -lean_ctor_set(x_19, 0, x_42); +lean_ctor_set(x_19, 0, x_43); return x_19; } else @@ -8113,30 +8126,48 @@ return x_19; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_19, 0); -x_44 = lean_ctor_get(x_19, 1); +return x_19; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_19, 0); +x_45 = lean_ctor_get(x_19, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_19); -x_45 = l_Lean_Exception_isRuntime(x_43); -if (x_45 == 0) +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) { -lean_object* x_46; lean_object* x_47; -lean_dec(x_43); -x_46 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -return x_47; +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_48 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; } else { -lean_object* x_48; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_44); -return x_48; +lean_object* x_50; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +else +{ +lean_object* x_51; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_44); +lean_ctor_set(x_51, 1, x_45); +return x_51; } } } @@ -8307,14 +8338,18 @@ if (x_39 == 0) { lean_object* x_40; uint8_t x_41; x_40 = lean_ctor_get(x_19, 0); -x_41 = l_Lean_Exception_isRuntime(x_40); +x_41 = l_Lean_Exception_isInterrupt(x_40); if (x_41 == 0) { -lean_object* x_42; +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_dec(x_40); -x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_43 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; lean_ctor_set_tag(x_19, 0); -lean_ctor_set(x_19, 0, x_42); +lean_ctor_set(x_19, 0, x_43); return x_19; } else @@ -8324,30 +8359,48 @@ return x_19; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_19, 0); -x_44 = lean_ctor_get(x_19, 1); +return x_19; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_19, 0); +x_45 = lean_ctor_get(x_19, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_19); -x_45 = l_Lean_Exception_isRuntime(x_43); -if (x_45 == 0) +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) { -lean_object* x_46; lean_object* x_47; -lean_dec(x_43); -x_46 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -return x_47; +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_48 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; } else { -lean_object* x_48; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_44); -return x_48; +lean_object* x_50; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +else +{ +lean_object* x_51; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_44); +lean_ctor_set(x_51, 1, x_45); +return x_51; } } } @@ -8598,14 +8651,18 @@ if (x_39 == 0) { lean_object* x_40; uint8_t x_41; x_40 = lean_ctor_get(x_19, 0); -x_41 = l_Lean_Exception_isRuntime(x_40); +x_41 = l_Lean_Exception_isInterrupt(x_40); if (x_41 == 0) { -lean_object* x_42; +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_40); +if (x_42 == 0) +{ +lean_object* x_43; lean_dec(x_40); -x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_43 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; lean_ctor_set_tag(x_19, 0); -lean_ctor_set(x_19, 0, x_42); +lean_ctor_set(x_19, 0, x_43); return x_19; } else @@ -8615,30 +8672,48 @@ return x_19; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_19, 0); -x_44 = lean_ctor_get(x_19, 1); +return x_19; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_19, 0); +x_45 = lean_ctor_get(x_19, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_19); -x_45 = l_Lean_Exception_isRuntime(x_43); -if (x_45 == 0) +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) { -lean_object* x_46; lean_object* x_47; -lean_dec(x_43); -x_46 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -return x_47; +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_48 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckMatch___spec__5___closed__2; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; } else { -lean_object* x_48; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_44); -return x_48; +lean_object* x_50; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +else +{ +lean_object* x_51; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_44); +lean_ctor_set(x_51, 1, x_45); +return x_51; } } } @@ -16548,30 +16623,32 @@ if (x_9 == 0) { uint8_t x_10; lean_object* x_11; x_10 = 1; -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 7, x_10); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 7, x_10); x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; x_12 = lean_ctor_get(x_2, 0); x_13 = lean_ctor_get(x_2, 1); x_14 = lean_ctor_get(x_2, 2); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); x_18 = lean_ctor_get(x_2, 3); x_19 = lean_ctor_get(x_2, 4); x_20 = lean_ctor_get(x_2, 5); x_21 = lean_ctor_get(x_2, 6); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); x_26 = lean_ctor_get(x_2, 7); -x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_27 = lean_ctor_get(x_2, 8); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_21); lean_inc(x_20); @@ -16581,28 +16658,29 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); -x_29 = 1; -x_30 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_13); -lean_ctor_set(x_30, 2, x_14); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_15); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_16); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_17); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_22); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_23); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 8, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 9, x_28); -x_31 = lean_apply_7(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8); -return x_31; +x_30 = 1; +x_31 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_14); +lean_ctor_set(x_31, 3, x_18); +lean_ctor_set(x_31, 4, x_19); +lean_ctor_set(x_31, 5, x_20); +lean_ctor_set(x_31, 6, x_21); +lean_ctor_set(x_31, 7, x_26); +lean_ctor_set(x_31, 8, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_15); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_16); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_17); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 9, x_29); +x_32 = lean_apply_7(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8); +return x_32; } } } @@ -16780,18 +16858,18 @@ lean_inc(x_10); x_35 = lean_whnf(x_32, x_10, x_11, x_12, x_13, x_14); if (x_34 == 0) { -lean_object* x_152; lean_object* x_153; -x_152 = l_Lean_instInhabitedSyntax; -x_153 = l___private_Init_GetElem_0__outOfBounds___rarg(x_152); -x_36 = x_153; -goto block_151; +lean_object* x_155; lean_object* x_156; +x_155 = l_Lean_instInhabitedSyntax; +x_156 = l___private_Init_GetElem_0__outOfBounds___rarg(x_155); +x_36 = x_156; +goto block_154; } else { -lean_object* x_154; -x_154 = lean_array_fget(x_1, x_4); -x_36 = x_154; -goto block_151; +lean_object* x_157; +x_157 = lean_array_fget(x_1, x_4); +x_36 = x_157; +goto block_154; } block_31: { @@ -16847,7 +16925,7 @@ x_14 = x_21; goto _start; } } -block_151: +block_154: { if (lean_obj_tag(x_35) == 0) { @@ -16929,12 +17007,16 @@ if (x_58 == 0) lean_object* x_59; lean_object* x_60; uint8_t x_61; x_59 = lean_ctor_get(x_52, 0); x_60 = lean_ctor_get(x_52, 1); -x_61 = l_Lean_Exception_isRuntime(x_59); +x_61 = l_Lean_Exception_isInterrupt(x_59); if (x_61 == 0) { -uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +uint8_t x_62; +x_62 = l_Lean_Exception_isRuntime(x_59); +if (x_62 == 0) +{ +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_free_object(x_52); -x_62 = 0; +x_63 = 0; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -16942,31 +17024,31 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_42); -x_63 = l_Lean_Elab_Term_SavedState_restore(x_42, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_60); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); +x_64 = l_Lean_Elab_Term_SavedState_restore(x_42, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_60); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); lean_inc(x_39); -x_65 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___lambda__2), 9, 2); -lean_closure_set(x_65, 0, x_39); -lean_closure_set(x_65, 1, x_36); -x_66 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg), 8, 1); -lean_closure_set(x_66, 0, x_65); +x_66 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___lambda__2), 9, 2); +lean_closure_set(x_66, 0, x_39); +lean_closure_set(x_66, 1, x_36); +x_67 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg), 8, 1); +lean_closure_set(x_67, 0, x_66); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_67 = l_Lean_Elab_Term_commitIfNoErrors_x3f___rarg(x_66, x_8, x_9, x_10, x_11, x_12, x_13, x_64); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); +x_68 = l_Lean_Elab_Term_commitIfNoErrors_x3f___rarg(x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_65); if (lean_obj_tag(x_68) == 0) { -uint8_t x_69; +lean_object* x_69; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +if (lean_obj_tag(x_69) == 0) +{ +uint8_t x_70; lean_dec(x_42); lean_dec(x_39); lean_dec(x_19); @@ -16977,142 +17059,142 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_69 = !lean_is_exclusive(x_67); -if (x_69 == 0) +x_70 = !lean_is_exclusive(x_68); +if (x_70 == 0) { -lean_object* x_70; -x_70 = lean_ctor_get(x_67, 0); -lean_dec(x_70); -lean_ctor_set_tag(x_67, 1); -lean_ctor_set(x_67, 0, x_59); -return x_67; +lean_object* x_71; +x_71 = lean_ctor_get(x_68, 0); +lean_dec(x_71); +lean_ctor_set_tag(x_68, 1); +lean_ctor_set(x_68, 0, x_59); +return x_68; } else { -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_67, 1); -lean_inc(x_71); -lean_dec(x_67); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_59); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_59); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_67, 1); -lean_inc(x_73); -lean_dec(x_67); -x_74 = lean_ctor_get(x_68, 0); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_68, 1); lean_inc(x_74); lean_dec(x_68); +x_75 = lean_ctor_get(x_69, 0); +lean_inc(x_75); +lean_dec(x_69); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_75 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath(x_74, x_39, x_10, x_11, x_12, x_13, x_73); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); +x_76 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath(x_75, x_39, x_10, x_11, x_12, x_13, x_74); if (lean_obj_tag(x_76) == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; +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; uint8_t x_80; lean_dec(x_19); lean_dec(x_4); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_Elab_Term_SavedState_restore(x_42, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_77); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) -{ -lean_object* x_80; -x_80 = lean_ctor_get(x_78, 0); -lean_dec(x_80); -lean_ctor_set_tag(x_78, 1); -lean_ctor_set(x_78, 0, x_59); -return x_78; -} -else -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -lean_dec(x_78); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_59); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -else -{ -lean_object* x_83; uint8_t x_84; -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_dec(x_75); -x_84 = !lean_is_exclusive(x_76); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_76, 0); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_86 = l_Lean_Elab_Term_SavedState_restore(x_42, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_83); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -lean_inc(x_4); -x_88 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_88, 0, x_59); -lean_ctor_set(x_88, 1, x_4); -lean_ctor_set(x_88, 2, x_85); -lean_ctor_set_tag(x_76, 0); -lean_ctor_set(x_76, 0, x_88); -x_20 = x_76; -x_21 = x_87; -goto block_31; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_89 = lean_ctor_get(x_76, 0); -lean_inc(x_89); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); lean_dec(x_76); +x_79 = l_Lean_Elab_Term_SavedState_restore(x_42, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_78); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +lean_ctor_set_tag(x_79, 1); +lean_ctor_set(x_79, 0, x_59); +return x_79; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_59); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = lean_ctor_get(x_76, 1); +lean_inc(x_84); +lean_dec(x_76); +x_85 = !lean_is_exclusive(x_77); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_77, 0); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_90 = l_Lean_Elab_Term_SavedState_restore(x_42, x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_83); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); +x_87 = l_Lean_Elab_Term_SavedState_restore(x_42, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_84); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); lean_inc(x_4); -x_92 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_92, 0, x_59); -lean_ctor_set(x_92, 1, x_4); -lean_ctor_set(x_92, 2, x_89); -x_93 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_20 = x_93; -x_21 = x_91; +x_89 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_89, 0, x_59); +lean_ctor_set(x_89, 1, x_4); +lean_ctor_set(x_89, 2, x_86); +lean_ctor_set_tag(x_77, 0); +lean_ctor_set(x_77, 0, x_89); +x_20 = x_77; +x_21 = x_88; +goto block_31; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_90 = lean_ctor_get(x_77, 0); +lean_inc(x_90); +lean_dec(x_77); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_91 = l_Lean_Elab_Term_SavedState_restore(x_42, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_84); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +lean_inc(x_4); +x_93 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_93, 0, x_59); +lean_ctor_set(x_93, 1, x_4); +lean_ctor_set(x_93, 2, x_90); +x_94 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_20 = x_94; +x_21 = x_92; goto block_31; } } } else { -uint8_t x_94; +uint8_t x_95; lean_dec(x_59); lean_dec(x_42); lean_dec(x_19); @@ -17123,30 +17205,30 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_94 = !lean_is_exclusive(x_75); -if (x_94 == 0) +x_95 = !lean_is_exclusive(x_76); +if (x_95 == 0) { -return x_75; +return x_76; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_75, 0); -x_96 = lean_ctor_get(x_75, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_76, 0); +x_97 = lean_ctor_get(x_76, 1); +lean_inc(x_97); lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_75); -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; +lean_dec(x_76); +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; } } } } else { -uint8_t x_98; +uint8_t x_99; lean_dec(x_59); lean_dec(x_42); lean_dec(x_39); @@ -17158,23 +17240,23 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_98 = !lean_is_exclusive(x_67); -if (x_98 == 0) +x_99 = !lean_is_exclusive(x_68); +if (x_99 == 0) { -return x_67; +return x_68; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_67, 0); -x_100 = lean_ctor_get(x_67, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_68, 0); +x_101 = lean_ctor_get(x_68, 1); +lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_67); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_dec(x_68); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } } @@ -17196,17 +17278,37 @@ return x_52; } else { -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_ctor_get(x_52, 0); -x_103 = lean_ctor_get(x_52, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_52); -x_104 = l_Lean_Exception_isRuntime(x_102); -if (x_104 == 0) +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_19); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +return x_52; +} +} +else { -uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_105 = 0; +lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_103 = lean_ctor_get(x_52, 0); +x_104 = lean_ctor_get(x_52, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_52); +x_105 = l_Lean_Exception_isInterrupt(x_103); +if (x_105 == 0) +{ +uint8_t x_106; +x_106 = l_Lean_Exception_isRuntime(x_103); +if (x_106 == 0) +{ +uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_107 = 0; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -17214,31 +17316,31 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_42); -x_106 = l_Lean_Elab_Term_SavedState_restore(x_42, x_105, x_8, x_9, x_10, x_11, x_12, x_13, x_103); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec(x_106); +x_108 = l_Lean_Elab_Term_SavedState_restore(x_42, x_107, x_8, x_9, x_10, x_11, x_12, x_13, x_104); +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec(x_108); lean_inc(x_39); -x_108 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___lambda__2), 9, 2); -lean_closure_set(x_108, 0, x_39); -lean_closure_set(x_108, 1, x_36); -x_109 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg), 8, 1); -lean_closure_set(x_109, 0, x_108); +x_110 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___lambda__2), 9, 2); +lean_closure_set(x_110, 0, x_39); +lean_closure_set(x_110, 1, x_36); +x_111 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg), 8, 1); +lean_closure_set(x_111, 0, x_110); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_110 = l_Lean_Elab_Term_commitIfNoErrors_x3f___rarg(x_109, x_8, x_9, x_10, x_11, x_12, x_13, x_107); -if (lean_obj_tag(x_110) == 0) +x_112 = l_Lean_Elab_Term_commitIfNoErrors_x3f___rarg(x_111, x_8, x_9, x_10, x_11, x_12, x_13, x_109); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_111; -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -if (lean_obj_tag(x_111) == 0) +lean_object* x_113; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_dec(x_42); lean_dec(x_39); lean_dec(x_19); @@ -17249,88 +17351,88 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_113 = x_110; +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_115 = x_112; } else { - lean_dec_ref(x_110); - x_113 = lean_box(0); + lean_dec_ref(x_112); + x_115 = lean_box(0); } -if (lean_is_scalar(x_113)) { - x_114 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(1, 2, 0); } else { - x_114 = x_113; - lean_ctor_set_tag(x_114, 1); + x_116 = x_115; + lean_ctor_set_tag(x_116, 1); } -lean_ctor_set(x_114, 0, x_102); -lean_ctor_set(x_114, 1, x_112); -return x_114; +lean_ctor_set(x_116, 0, x_103); +lean_ctor_set(x_116, 1, x_114); +return x_116; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_110, 1); -lean_inc(x_115); -lean_dec(x_110); -x_116 = lean_ctor_get(x_111, 0); -lean_inc(x_116); -lean_dec(x_111); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_112, 1); +lean_inc(x_117); +lean_dec(x_112); +x_118 = lean_ctor_get(x_113, 0); +lean_inc(x_118); +lean_dec(x_113); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_117 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath(x_116, x_39, x_10, x_11, x_12, x_13, x_115); -if (lean_obj_tag(x_117) == 0) +x_119 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath(x_118, x_39, x_10, x_11, x_12, x_13, x_117); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_118; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -if (lean_obj_tag(x_118) == 0) +lean_object* x_120; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_dec(x_19); lean_dec(x_4); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -lean_dec(x_117); -x_120 = l_Lean_Elab_Term_SavedState_restore(x_42, x_105, x_8, x_9, x_10, x_11, x_12, x_13, x_119); -x_121 = lean_ctor_get(x_120, 1); +x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; +lean_dec(x_119); +x_122 = l_Lean_Elab_Term_SavedState_restore(x_42, x_107, x_8, x_9, x_10, x_11, x_12, x_13, x_121); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_124 = x_122; } else { - lean_dec_ref(x_120); - x_122 = lean_box(0); + lean_dec_ref(x_122); + x_124 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); } else { - x_123 = x_122; - lean_ctor_set_tag(x_123, 1); + x_125 = x_124; + lean_ctor_set_tag(x_125, 1); } -lean_ctor_set(x_123, 0, x_102); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_125, 0, x_103); +lean_ctor_set(x_125, 1, x_123); +return x_125; } 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; -x_124 = lean_ctor_get(x_117, 1); -lean_inc(x_124); -lean_dec(x_117); -x_125 = lean_ctor_get(x_118, 0); -lean_inc(x_125); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - x_126 = x_118; +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; +x_126 = lean_ctor_get(x_119, 1); +lean_inc(x_126); +lean_dec(x_119); +x_127 = lean_ctor_get(x_120, 0); +lean_inc(x_127); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + x_128 = x_120; } else { - lean_dec_ref(x_118); - x_126 = lean_box(0); + lean_dec_ref(x_120); + x_128 = lean_box(0); } lean_inc(x_13); lean_inc(x_12); @@ -17338,31 +17440,31 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_127 = l_Lean_Elab_Term_SavedState_restore(x_42, x_105, x_8, x_9, x_10, x_11, x_12, x_13, x_124); -x_128 = lean_ctor_get(x_127, 1); -lean_inc(x_128); -lean_dec(x_127); +x_129 = l_Lean_Elab_Term_SavedState_restore(x_42, x_107, x_8, x_9, x_10, x_11, x_12, x_13, x_126); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); lean_inc(x_4); -x_129 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_129, 0, x_102); -lean_ctor_set(x_129, 1, x_4); -lean_ctor_set(x_129, 2, x_125); -if (lean_is_scalar(x_126)) { - x_130 = lean_alloc_ctor(0, 1, 0); +x_131 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_131, 0, x_103); +lean_ctor_set(x_131, 1, x_4); +lean_ctor_set(x_131, 2, x_127); +if (lean_is_scalar(x_128)) { + x_132 = lean_alloc_ctor(0, 1, 0); } else { - x_130 = x_126; - lean_ctor_set_tag(x_130, 0); + x_132 = x_128; + lean_ctor_set_tag(x_132, 0); } -lean_ctor_set(x_130, 0, x_129); -x_20 = x_130; -x_21 = x_128; +lean_ctor_set(x_132, 0, x_131); +x_20 = x_132; +x_21 = x_130; goto block_31; } } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_102); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_103); lean_dec(x_42); lean_dec(x_19); lean_dec(x_13); @@ -17372,33 +17474,33 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_131 = lean_ctor_get(x_117, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_117, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_133 = x_117; +x_133 = lean_ctor_get(x_119, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_119, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_135 = x_119; } else { - lean_dec_ref(x_117); - x_133 = lean_box(0); + lean_dec_ref(x_119); + x_135 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_134 = x_133; + x_136 = x_135; } -lean_ctor_set(x_134, 0, x_131); -lean_ctor_set(x_134, 1, x_132); -return x_134; +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; } } } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_102); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_103); lean_dec(x_42); lean_dec(x_39); lean_dec(x_19); @@ -17409,31 +17511,31 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_135 = lean_ctor_get(x_110, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_110, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_137 = x_110; +x_137 = lean_ctor_get(x_112, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_112, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_139 = x_112; } else { - lean_dec_ref(x_110); - x_137 = lean_box(0); + lean_dec_ref(x_112); + x_139 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); } else { - x_138 = x_137; + x_140 = x_139; } -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_138); +return x_140; } } else { -lean_object* x_139; +lean_object* x_141; lean_dec(x_42); lean_dec(x_39); lean_dec(x_36); @@ -17445,56 +17547,76 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_102); -lean_ctor_set(x_139, 1, x_103); -return x_139; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_103); +lean_ctor_set(x_141, 1, x_104); +return x_141; +} +} +else +{ +lean_object* x_142; +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_36); +lean_dec(x_19); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_103); +lean_ctor_set(x_142, 1, x_104); +return x_142; } } } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_dec(x_37); lean_dec(x_36); lean_dec(x_33); lean_dec(x_19); lean_dec(x_4); -x_140 = lean_ctor_get(x_35, 1); -lean_inc(x_140); +x_143 = lean_ctor_get(x_35, 1); +lean_inc(x_143); lean_dec(x_35); -x_141 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___closed__2; -x_142 = l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__1(x_141, x_8, x_9, x_10, x_11, x_12, x_13, x_140); +x_144 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2___closed__2; +x_145 = l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__1(x_144, x_8, x_9, x_10, x_11, x_12, x_13, x_143); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 0) +x_146 = !lean_is_exclusive(x_145); +if (x_146 == 0) { -return x_142; +return x_145; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_142, 0); -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_142); -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_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_145, 0); +x_148 = lean_ctor_get(x_145, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_145); +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_147; +uint8_t x_150; lean_dec(x_36); lean_dec(x_33); lean_dec(x_19); @@ -17505,30 +17627,30 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_147 = !lean_is_exclusive(x_35); -if (x_147 == 0) +x_150 = !lean_is_exclusive(x_35); +if (x_150 == 0) { return x_35; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_35, 0); -x_149 = lean_ctor_get(x_35, 1); -lean_inc(x_149); -lean_inc(x_148); +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_35, 0); +x_152 = lean_ctor_get(x_35, 1); +lean_inc(x_152); +lean_inc(x_151); lean_dec(x_35); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +return x_153; } } } } else { -lean_object* x_155; lean_object* x_156; +lean_object* x_158; lean_object* x_159; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -17537,17 +17659,17 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_7); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_14); -return x_156; +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_7); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_14); +return x_159; } } else { -lean_object* x_157; lean_object* x_158; +lean_object* x_160; lean_object* x_161; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -17556,12 +17678,12 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); -x_157 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_157, 0, x_7); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_14); -return x_158; +x_160 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_160, 0, x_7); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_14); +return x_161; } } } @@ -17579,7 +17701,7 @@ if (x_13 == 0) { uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = 0; -lean_ctor_set_uint8(x_3, sizeof(void*)*8 + 3, x_14); +lean_ctor_set_uint8(x_3, sizeof(void*)*9 + 3, x_14); x_15 = lean_unsigned_to_nat(0u); x_16 = lean_unsigned_to_nat(1u); lean_inc(x_10); @@ -17788,24 +17910,26 @@ return x_58; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; x_59 = lean_ctor_get(x_3, 0); x_60 = lean_ctor_get(x_3, 1); x_61 = lean_ctor_get(x_3, 2); -x_62 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_63 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_64 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +x_62 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_63 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_64 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); x_65 = lean_ctor_get(x_3, 3); x_66 = lean_ctor_get(x_3, 4); x_67 = lean_ctor_get(x_3, 5); x_68 = lean_ctor_get(x_3, 6); -x_69 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4); -x_70 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5); -x_71 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); -x_72 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_69 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_70 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_71 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_72 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); x_73 = lean_ctor_get(x_3, 7); -x_74 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); -x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); +x_74 = lean_ctor_get(x_3, 8); +x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_74); lean_inc(x_73); lean_inc(x_68); lean_inc(x_67); @@ -17815,153 +17939,154 @@ lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); lean_dec(x_3); -x_76 = 0; -x_77 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_77, 0, x_59); -lean_ctor_set(x_77, 1, x_60); -lean_ctor_set(x_77, 2, x_61); -lean_ctor_set(x_77, 3, x_65); -lean_ctor_set(x_77, 4, x_66); -lean_ctor_set(x_77, 5, x_67); -lean_ctor_set(x_77, 6, x_68); -lean_ctor_set(x_77, 7, x_73); -lean_ctor_set_uint8(x_77, sizeof(void*)*8, x_62); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 1, x_63); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 2, x_64); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 3, x_76); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 4, x_69); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 5, x_70); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 6, x_71); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 7, x_72); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 8, x_74); -lean_ctor_set_uint8(x_77, sizeof(void*)*8 + 9, x_75); -x_78 = lean_unsigned_to_nat(0u); -x_79 = lean_unsigned_to_nat(1u); +x_77 = 0; +x_78 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_78, 0, x_59); +lean_ctor_set(x_78, 1, x_60); +lean_ctor_set(x_78, 2, x_61); +lean_ctor_set(x_78, 3, x_65); +lean_ctor_set(x_78, 4, x_66); +lean_ctor_set(x_78, 5, x_67); +lean_ctor_set(x_78, 6, x_68); +lean_ctor_set(x_78, 7, x_73); +lean_ctor_set(x_78, 8, x_74); +lean_ctor_set_uint8(x_78, sizeof(void*)*9, x_62); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 1, x_63); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 2, x_64); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 3, x_77); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 4, x_69); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 5, x_70); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 6, x_71); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 7, x_72); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 8, x_75); +lean_ctor_set_uint8(x_78, sizeof(void*)*9 + 9, x_76); +x_79 = lean_unsigned_to_nat(0u); +x_80 = lean_unsigned_to_nat(1u); lean_inc(x_10); -x_80 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2(x_1, x_10, x_10, x_78, x_10, x_79, x_12, x_77, x_4, x_5, x_6, x_7, x_8, x_9); +x_81 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabPatterns___spec__2(x_1, x_10, x_10, x_79, x_10, x_80, x_12, x_78, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_10); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); if (lean_obj_tag(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; -x_82 = lean_ctor_get(x_80, 1); +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 0); 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; -} else { - lean_dec_ref(x_80); - x_83 = lean_box(0); -} -x_84 = lean_ctor_get(x_81, 0); -lean_inc(x_84); +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; +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); if (lean_is_exclusive(x_81)) { lean_ctor_release(x_81, 0); - x_85 = x_81; + lean_ctor_release(x_81, 1); + x_84 = x_81; } else { lean_dec_ref(x_81); - x_85 = lean_box(0); + x_84 = lean_box(0); } -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(0, 1, 0); +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + x_86 = x_82; } else { - x_86 = x_85; + lean_dec_ref(x_82); + x_86 = lean_box(0); } -lean_ctor_set(x_86, 0, x_84); -if (lean_is_scalar(x_83)) { - x_87 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(0, 1, 0); } else { - x_87 = x_83; + x_87 = x_86; } -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_82); -return x_87; +lean_ctor_set(x_87, 0, x_85); +if (lean_is_scalar(x_84)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_84; +} +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_83); +return x_88; } else { -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; -x_88 = lean_ctor_get(x_81, 0); -lean_inc(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; +x_89 = lean_ctor_get(x_82, 0); +lean_inc(x_89); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + x_90 = x_82; +} else { + lean_dec_ref(x_82); + x_90 = lean_box(0); +} +x_91 = lean_ctor_get(x_81, 1); +lean_inc(x_91); if (lean_is_exclusive(x_81)) { lean_ctor_release(x_81, 0); - x_89 = x_81; + lean_ctor_release(x_81, 1); + x_92 = x_81; } else { lean_dec_ref(x_81); - x_89 = lean_box(0); + x_92 = lean_box(0); } -x_90 = lean_ctor_get(x_80, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_91 = x_80; -} else { - lean_dec_ref(x_80); - x_91 = lean_box(0); -} -x_92 = lean_ctor_get(x_88, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_88, 1); +x_93 = lean_ctor_get(x_89, 0); lean_inc(x_93); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_94 = x_88; +x_94 = lean_ctor_get(x_89, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_95 = x_89; } else { - lean_dec_ref(x_88); - x_94 = lean_box(0); + lean_dec_ref(x_89); + x_95 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(0, 2, 0); } else { - x_95 = x_94; + x_96 = x_95; } -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_92); -if (lean_is_scalar(x_89)) { - x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_93); +if (lean_is_scalar(x_90)) { + x_97 = lean_alloc_ctor(1, 1, 0); } else { - x_96 = x_89; -} -lean_ctor_set(x_96, 0, x_95); -if (lean_is_scalar(x_91)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_91; + x_97 = x_90; } lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_90); -return x_97; +if (lean_is_scalar(x_92)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_92; +} +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_91); +return x_98; } } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_98 = lean_ctor_get(x_80, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_80, 1); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_99 = lean_ctor_get(x_81, 0); lean_inc(x_99); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_100 = x_80; +x_100 = lean_ctor_get(x_81, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_101 = x_81; } else { - lean_dec_ref(x_80); - x_100 = lean_box(0); + lean_dec_ref(x_81); + x_101 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_100; + x_102 = x_101; } -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } } @@ -29394,13 +29519,13 @@ x_15 = l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3_ x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); x_17 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_9, x_10, x_11); 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; 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_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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_18 = lean_ctor_get(x_9, 0); x_19 = lean_ctor_get(x_9, 1); x_20 = lean_ctor_get(x_9, 3); @@ -29410,6 +29535,9 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); +x_27 = lean_ctor_get(x_9, 11); +x_28 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -29420,23 +29548,25 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_9); -x_27 = l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3___lambda__1___closed__1; -x_28 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_27); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_18); -lean_ctor_set(x_29, 1, x_19); -lean_ctor_set(x_29, 2, x_1); -lean_ctor_set(x_29, 3, x_20); -lean_ctor_set(x_29, 4, x_28); -lean_ctor_set(x_29, 5, x_21); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_2); -x_30 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_29, x_10, x_11); -return x_30; +x_29 = l_Lean_withInPattern___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3___lambda__1___closed__1; +x_30 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_29); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_1); +lean_ctor_set(x_31, 3, x_20); +lean_ctor_set(x_31, 4, x_30); +lean_ctor_set(x_31, 5, x_21); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_28); +x_32 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_31, x_10, x_11); +return x_32; } } } @@ -37158,7 +37288,7 @@ return x_85; } 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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +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; uint8_t x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; x_86 = lean_ctor_get(x_9, 0); x_87 = lean_ctor_get(x_9, 1); x_88 = lean_ctor_get(x_9, 2); @@ -37170,7 +37300,10 @@ x_93 = lean_ctor_get(x_9, 7); x_94 = lean_ctor_get(x_9, 8); x_95 = lean_ctor_get(x_9, 9); x_96 = lean_ctor_get(x_9, 10); -x_97 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_97 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_98 = lean_ctor_get(x_9, 11); +x_99 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_98); lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); @@ -37183,123 +37316,125 @@ lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); lean_dec(x_9); -x_98 = l_Lean_replaceRef(x_12, x_91); +x_100 = l_Lean_replaceRef(x_12, x_91); lean_dec(x_91); lean_dec(x_12); -x_99 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_99, 0, x_86); -lean_ctor_set(x_99, 1, x_87); -lean_ctor_set(x_99, 2, x_88); -lean_ctor_set(x_99, 3, x_89); -lean_ctor_set(x_99, 4, x_90); -lean_ctor_set(x_99, 5, x_98); -lean_ctor_set(x_99, 6, x_92); -lean_ctor_set(x_99, 7, x_93); -lean_ctor_set(x_99, 8, x_94); -lean_ctor_set(x_99, 9, x_95); -lean_ctor_set(x_99, 10, x_96); -lean_ctor_set_uint8(x_99, sizeof(void*)*11, x_97); +x_101 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_101, 0, x_86); +lean_ctor_set(x_101, 1, x_87); +lean_ctor_set(x_101, 2, x_88); +lean_ctor_set(x_101, 3, x_89); +lean_ctor_set(x_101, 4, x_90); +lean_ctor_set(x_101, 5, x_100); +lean_ctor_set(x_101, 6, x_92); +lean_ctor_set(x_101, 7, x_93); +lean_ctor_set(x_101, 8, x_94); +lean_ctor_set(x_101, 9, x_95); +lean_ctor_set(x_101, 10, x_96); +lean_ctor_set(x_101, 11, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*12, x_97); +lean_ctor_set_uint8(x_101, sizeof(void*)*12 + 1, x_99); lean_inc(x_10); -lean_inc(x_99); +lean_inc(x_101); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_100 = l_Lean_Elab_Term_collectPatternVars(x_2, x_5, x_6, x_7, x_8, x_99, x_10, x_11); -if (lean_obj_tag(x_100) == 0) +x_102 = l_Lean_Elab_Term_collectPatternVars(x_2, x_5, x_6, x_7, x_8, x_101, x_10, x_11); +if (lean_obj_tag(x_102) == 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; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_ctor_get(x_101, 0); +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; uint8_t x_112; +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -x_104 = lean_ctor_get(x_101, 1); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_105 = x_101; +lean_dec(x_102); +x_105 = lean_ctor_get(x_103, 0); +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_101); - x_105 = lean_box(0); + lean_dec_ref(x_103); + x_107 = lean_box(0); } -x_106 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__7; -x_107 = l_Lean_isTracingEnabledFor___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__1(x_106, x_5, x_6, x_7, x_8, x_99, x_10, x_102); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -lean_dec(x_108); -x_110 = lean_unbox(x_109); -lean_dec(x_109); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_105); -x_111 = lean_ctor_get(x_107, 1); +x_108 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__7; +x_109 = l_Lean_isTracingEnabledFor___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__1(x_108, x_5, x_6, x_7, x_8, x_101, x_10, x_104); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); +lean_dec(x_110); +x_112 = lean_unbox(x_111); +lean_dec(x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_107); -x_112 = lean_box(0); -x_113 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__11(x_104, x_106, x_4, x_1, x_3, x_103, x_112, x_5, x_6, x_7, x_8, x_99, x_10, x_111); -return x_113; +x_113 = lean_ctor_get(x_109, 1); +lean_inc(x_113); +lean_dec(x_109); +x_114 = lean_box(0); +x_115 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__11(x_106, x_108, x_4, x_1, x_3, x_105, x_114, x_5, x_6, x_7, x_8, x_101, x_10, x_113); +return x_115; } else { -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; lean_object* x_127; lean_object* x_128; -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; +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_116 = lean_ctor_get(x_109, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_117 = x_109; } else { - lean_dec_ref(x_107); - x_115 = lean_box(0); + lean_dec_ref(x_109); + x_117 = lean_box(0); } -lean_inc(x_103); -x_116 = lean_array_to_list(lean_box(0), x_103); -x_117 = lean_box(0); -x_118 = l_List_mapTR_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__4(x_116, x_117); -x_119 = l_Lean_MessageData_ofList(x_118); -x_120 = l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__2___closed__2; -if (lean_is_scalar(x_115)) { - x_121 = lean_alloc_ctor(6, 2, 0); -} else { - x_121 = x_115; - lean_ctor_set_tag(x_121, 6); -} -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_119); -x_122 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__15; -if (lean_is_scalar(x_105)) { +lean_inc(x_105); +x_118 = lean_array_to_list(lean_box(0), x_105); +x_119 = lean_box(0); +x_120 = l_List_mapTR_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__4(x_118, x_119); +x_121 = l_Lean_MessageData_ofList(x_120); +x_122 = l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__2___closed__2; +if (lean_is_scalar(x_117)) { x_123 = lean_alloc_ctor(6, 2, 0); } else { - x_123 = x_105; + x_123 = x_117; lean_ctor_set_tag(x_123, 6); } -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -x_124 = l_Lean_addTrace___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__5(x_106, x_123, x_5, x_6, x_7, x_8, x_99, x_10, x_114); -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_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_121); +x_124 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__15; +if (lean_is_scalar(x_107)) { + x_125 = lean_alloc_ctor(6, 2, 0); +} else { + x_125 = x_107; + lean_ctor_set_tag(x_125, 6); +} +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Lean_addTrace___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___spec__5(x_108, x_125, x_5, x_6, x_7, x_8, x_101, x_10, x_116); +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_128 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__11(x_104, x_106, x_4, x_1, x_3, x_103, x_127, x_5, x_6, x_7, x_8, x_99, x_10, x_126); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_129 = lean_ctor_get(x_127, 0); +lean_inc(x_129); lean_dec(x_127); -return x_128; +x_130 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__11(x_106, x_108, x_4, x_1, x_3, x_105, x_129, x_5, x_6, x_7, x_8, x_101, x_10, x_128); +lean_dec(x_129); +return x_130; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_99); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_101); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -37308,26 +37443,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_129 = lean_ctor_get(x_100, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_100, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_131 = x_100; +x_131 = lean_ctor_get(x_102, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_102, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_133 = x_102; } else { - lean_dec_ref(x_100); - x_131 = lean_box(0); + lean_dec_ref(x_102); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -return x_132; +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; } } } @@ -41452,30 +41587,34 @@ if (x_39 == 0) lean_object* x_40; lean_object* x_41; uint8_t x_42; x_40 = lean_ctor_get(x_35, 0); x_41 = lean_ctor_get(x_35, 1); -x_42 = l_Lean_Exception_isRuntime(x_40); +x_42 = l_Lean_Exception_isInterrupt(x_40); if (x_42 == 0) { -lean_object* x_43; uint8_t x_44; +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; lean_free_object(x_35); lean_dec(x_40); -x_43 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_throwEx___rarg(x_23, x_15, x_16, x_17, x_18, x_19, x_20, x_41); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_44 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_throwEx___rarg(x_23, x_15, x_16, x_17, x_18, x_19, x_20, x_41); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -return x_43; +return x_44; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -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; +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } else @@ -41492,42 +41631,6 @@ return x_35; } else { -lean_object* x_48; lean_object* x_49; uint8_t 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 = l_Lean_Exception_isRuntime(x_48); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_48); -x_51 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_throwEx___rarg(x_23, x_15, x_16, x_17, x_18, x_19, x_20, x_49); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_dec(x_23); lean_dec(x_20); lean_dec(x_19); @@ -41535,17 +41638,85 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_48); -lean_ctor_set(x_56, 1, x_49); -return x_56; +return x_35; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +x_51 = l_Lean_Exception_isInterrupt(x_49); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = l_Lean_Exception_isRuntime(x_49); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_49); +x_53 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_throwEx___rarg(x_23, x_15, x_16, x_17, x_18, x_19, x_20, x_50); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_23); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_49); +lean_ctor_set(x_58, 1, x_50); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_23); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_50); +return x_59; } } } } else { -uint8_t x_57; +uint8_t x_60; lean_dec(x_23); lean_dec(x_20); lean_dec(x_19); @@ -41560,23 +41731,23 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_57 = !lean_is_exclusive(x_32); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_32); +if (x_60 == 0) { return x_32; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_32, 0); -x_59 = lean_ctor_get(x_32, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_32, 0); +x_62 = lean_ctor_get(x_32, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_32); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +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; } } } @@ -42458,7 +42629,7 @@ lean_dec(x_2); return x_9; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1() { _start: { lean_object* x_1; @@ -42466,17 +42637,17 @@ x_1 = lean_mk_string_from_bytes("ignoreUnusedAlts", 16); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__6; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3() { _start: { lean_object* x_1; @@ -42484,13 +42655,13 @@ x_1 = lean_mk_string_from_bytes("if true, do not generate error if an alternativ return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 0; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__14; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -42499,7 +42670,7 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____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; @@ -42507,18 +42678,18 @@ x_1 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__ x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__5; x_3 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__3; x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__6; -x_5 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1; +x_5 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1; x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__5; x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(x_2, x_3, x_4, x_1); return x_5; } @@ -42694,7 +42865,7 @@ return x_31; } 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; 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; 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_object* x_52; +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; uint8_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; x_32 = lean_ctor_get(x_12, 0); x_33 = lean_ctor_get(x_8, 0); lean_inc(x_33); @@ -42718,119 +42889,129 @@ x_42 = lean_ctor_get(x_8, 9); lean_inc(x_42); x_43 = lean_ctor_get(x_8, 10); lean_inc(x_43); -x_44 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_45 = l_Lean_replaceRef(x_32, x_38); +x_44 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_45 = lean_ctor_get(x_8, 11); +lean_inc(x_45); +x_46 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_47 = l_Lean_replaceRef(x_32, x_38); lean_dec(x_38); -x_46 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_46, 0, x_33); -lean_ctor_set(x_46, 1, x_34); -lean_ctor_set(x_46, 2, x_35); -lean_ctor_set(x_46, 3, x_36); -lean_ctor_set(x_46, 4, x_37); -lean_ctor_set(x_46, 5, x_45); -lean_ctor_set(x_46, 6, x_39); -lean_ctor_set(x_46, 7, x_40); -lean_ctor_set(x_46, 8, x_41); -lean_ctor_set(x_46, 9, x_42); -lean_ctor_set(x_46, 10, x_43); -lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_44); -x_47 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4; -x_48 = 2; -x_49 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_47, x_48, x_4, x_5, x_6, x_7, x_46, x_9, x_10); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); +x_48 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +lean_ctor_set(x_48, 2, x_35); +lean_ctor_set(x_48, 3, x_36); +lean_ctor_set(x_48, 4, x_37); +lean_ctor_set(x_48, 5, x_47); +lean_ctor_set(x_48, 6, x_39); +lean_ctor_set(x_48, 7, x_40); +lean_ctor_set(x_48, 8, x_41); +lean_ctor_set(x_48, 9, x_42); +lean_ctor_set(x_48, 10, x_43); +lean_ctor_set(x_48, 11, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*12, x_44); +lean_ctor_set_uint8(x_48, sizeof(void*)*12 + 1, x_46); +x_49 = l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__4; +x_50 = 2; +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_51 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_49, x_50, x_4, x_5, x_6, x_7, x_48, x_9, x_10); +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); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = lean_apply_9(x_14, x_3, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_51); -if (lean_obj_tag(x_52) == 0) +x_54 = lean_apply_9(x_14, x_3, x_52, x_4, x_5, x_6, x_7, x_8, x_9, x_53); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -if (lean_obj_tag(x_53) == 0) +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) { -uint8_t x_54; +uint8_t x_56; 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_54 = !lean_is_exclusive(x_52); -if (x_54 == 0) +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 0); -lean_dec(x_55); -x_56 = lean_ctor_get(x_53, 0); -lean_inc(x_56); -lean_dec(x_53); -lean_ctor_set(x_52, 0, x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_ctor_get(x_53, 0); +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 0); +lean_dec(x_57); +x_58 = lean_ctor_get(x_55, 0); lean_inc(x_58); -lean_dec(x_53); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_dec(x_55); +lean_ctor_set(x_54, 0, x_58); +return x_54; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_54, 1); +lean_inc(x_59); +lean_dec(x_54); +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +lean_dec(x_55); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +return x_61; } } else { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_52, 1); -lean_inc(x_60); -lean_dec(x_52); -x_61 = lean_ctor_get(x_53, 0); -lean_inc(x_61); -lean_dec(x_53); +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_54, 1); +lean_inc(x_62); +lean_dec(x_54); +x_63 = lean_ctor_get(x_55, 0); +lean_inc(x_63); +lean_dec(x_55); x_2 = x_13; -x_3 = x_61; -x_10 = x_60; +x_3 = x_63; +x_10 = x_62; goto _start; } } else { -uint8_t x_63; +uint8_t x_65; 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_63 = !lean_is_exclusive(x_52); -if (x_63 == 0) +x_65 = !lean_is_exclusive(x_54); +if (x_65 == 0) { -return x_52; +return x_54; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_52, 0); -x_65 = lean_ctor_get(x_52, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_52); -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; +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_54, 0); +x_67 = lean_ctor_get(x_54, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_54); +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; } } } @@ -42972,7 +43153,7 @@ lean_inc(x_10); x_11 = l_List_isEmpty___rarg(x_10); 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_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; uint8_t x_28; lean_object* x_29; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_dec(x_2); lean_dec(x_1); x_12 = l_Lean_Meta_Match_counterExamplesToMessageData(x_10); @@ -43006,12 +43187,16 @@ x_26 = lean_ctor_get(x_7, 9); lean_inc(x_26); x_27 = lean_ctor_get(x_7, 10); lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_29 = lean_ctor_get(x_7, 11); +lean_inc(x_29); +x_30 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); lean_inc(x_22); -x_29 = l_Lean_Syntax_getHead_x3f(x_22); -if (lean_obj_tag(x_29) == 0) +x_31 = l_Lean_Syntax_getHead_x3f(x_22); +if (lean_obj_tag(x_31) == 0) { -uint8_t x_30; lean_object* x_31; uint8_t x_32; +uint8_t x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_29); lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); @@ -43023,163 +43208,152 @@ lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); -x_30 = 2; -x_31 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_32 = 2; +x_33 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -x_34 = lean_box(0); -lean_ctor_set(x_31, 0, x_34); -return x_31; -} -else -{ -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); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; +lean_ctor_set(x_33, 0, x_36); +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +lean_dec(x_33); +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_37); +return x_39; } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_7); -if (x_38 == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 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; 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_39 = lean_ctor_get(x_7, 10); -lean_dec(x_39); -x_40 = lean_ctor_get(x_7, 9); -lean_dec(x_40); -x_41 = lean_ctor_get(x_7, 8); +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; uint8_t x_55; lean_object* x_56; uint8_t x_57; +x_41 = lean_ctor_get(x_7, 11); lean_dec(x_41); -x_42 = lean_ctor_get(x_7, 7); +x_42 = lean_ctor_get(x_7, 10); lean_dec(x_42); -x_43 = lean_ctor_get(x_7, 6); +x_43 = lean_ctor_get(x_7, 9); lean_dec(x_43); -x_44 = lean_ctor_get(x_7, 5); +x_44 = lean_ctor_get(x_7, 8); lean_dec(x_44); -x_45 = lean_ctor_get(x_7, 4); +x_45 = lean_ctor_get(x_7, 7); lean_dec(x_45); -x_46 = lean_ctor_get(x_7, 3); +x_46 = lean_ctor_get(x_7, 6); lean_dec(x_46); -x_47 = lean_ctor_get(x_7, 2); +x_47 = lean_ctor_get(x_7, 5); lean_dec(x_47); -x_48 = lean_ctor_get(x_7, 1); +x_48 = lean_ctor_get(x_7, 4); lean_dec(x_48); -x_49 = lean_ctor_get(x_7, 0); +x_49 = lean_ctor_get(x_7, 3); lean_dec(x_49); -x_50 = lean_ctor_get(x_29, 0); -lean_inc(x_50); -lean_dec(x_29); -x_51 = l_Lean_replaceRef(x_50, x_22); -lean_dec(x_22); +x_50 = lean_ctor_get(x_7, 2); lean_dec(x_50); -lean_ctor_set(x_7, 5, x_51); -x_52 = 2; -x_53 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -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(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(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} -} -else -{ -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_dec(x_7); -x_60 = lean_ctor_get(x_29, 0); -lean_inc(x_60); -lean_dec(x_29); -x_61 = l_Lean_replaceRef(x_60, x_22); +x_51 = lean_ctor_get(x_7, 1); +lean_dec(x_51); +x_52 = lean_ctor_get(x_7, 0); +lean_dec(x_52); +x_53 = lean_ctor_get(x_31, 0); +lean_inc(x_53); +lean_dec(x_31); +x_54 = l_Lean_replaceRef(x_53, x_22); lean_dec(x_22); -lean_dec(x_60); -x_62 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_62, 0, x_17); -lean_ctor_set(x_62, 1, x_18); -lean_ctor_set(x_62, 2, x_19); -lean_ctor_set(x_62, 3, x_20); -lean_ctor_set(x_62, 4, x_21); -lean_ctor_set(x_62, 5, x_61); -lean_ctor_set(x_62, 6, x_23); -lean_ctor_set(x_62, 7, x_24); -lean_ctor_set(x_62, 8, x_25); -lean_ctor_set(x_62, 9, x_26); -lean_ctor_set(x_62, 10, x_27); -lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_28); -x_63 = 2; -x_64 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_63, x_3, x_4, x_5, x_6, x_62, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -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); +lean_dec(x_53); +lean_ctor_set(x_7, 5, x_54); +x_55 = 2; +x_56 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_56, 0); +lean_dec(x_58); +x_59 = lean_box(0); +lean_ctor_set(x_56, 0, x_59); +return x_56; } -x_67 = lean_box(0); -if (lean_is_scalar(x_66)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_66; +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_56, 1); +lean_inc(x_60); +lean_dec(x_56); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +return x_62; } -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_65); -return x_68; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_7); +x_63 = lean_ctor_get(x_31, 0); +lean_inc(x_63); +lean_dec(x_31); +x_64 = l_Lean_replaceRef(x_63, x_22); +lean_dec(x_22); +lean_dec(x_63); +x_65 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_65, 0, x_17); +lean_ctor_set(x_65, 1, x_18); +lean_ctor_set(x_65, 2, x_19); +lean_ctor_set(x_65, 3, x_20); +lean_ctor_set(x_65, 4, x_21); +lean_ctor_set(x_65, 5, x_64); +lean_ctor_set(x_65, 6, x_23); +lean_ctor_set(x_65, 7, x_24); +lean_ctor_set(x_65, 8, x_25); +lean_ctor_set(x_65, 9, x_26); +lean_ctor_set(x_65, 10, x_27); +lean_ctor_set(x_65, 11, x_29); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_30); +x_66 = 2; +x_67 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_16, x_66, x_3, x_4, x_5, x_6, x_65, x_8, x_9); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +x_70 = lean_box(0); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_68); +return x_71; } } } else { -lean_object* x_69; lean_object* x_70; +lean_object* x_72; lean_object* x_73; lean_dec(x_10); -x_69 = lean_box(0); -x_70 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_2, x_1, x_69, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_72 = lean_box(0); +x_73 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(x_2, x_1, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); lean_dec(x_2); -return x_70; +return x_73; } } } @@ -44000,7 +44174,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -44012,7 +44186,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -44025,29 +44202,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -45492,7 +45671,7 @@ uint8_t x_12; x_12 = !lean_is_exclusive(x_1); if (x_12 == 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; lean_object* x_29; 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_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; uint8_t x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_13 = lean_ctor_get(x_1, 0); x_14 = lean_ctor_get(x_1, 1); x_15 = lean_ctor_get(x_13, 0); @@ -45519,9 +45698,12 @@ x_28 = lean_ctor_get(x_7, 7); x_29 = lean_ctor_get(x_7, 8); x_30 = lean_ctor_get(x_7, 9); x_31 = lean_ctor_get(x_7, 10); -x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_33 = l_Lean_replaceRef(x_19, x_26); +x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_33 = lean_ctor_get(x_7, 11); +x_34 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_35 = l_Lean_replaceRef(x_19, x_26); lean_dec(x_19); +lean_inc(x_33); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); @@ -45532,54 +45714,56 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); -x_34 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_34, 0, x_21); -lean_ctor_set(x_34, 1, x_22); -lean_ctor_set(x_34, 2, x_23); -lean_ctor_set(x_34, 3, x_24); -lean_ctor_set(x_34, 4, x_25); -lean_ctor_set(x_34, 5, x_33); -lean_ctor_set(x_34, 6, x_27); -lean_ctor_set(x_34, 7, x_28); -lean_ctor_set(x_34, 8, x_29); -lean_ctor_set(x_34, 9, x_30); -lean_ctor_set(x_34, 10, x_31); -lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_32); -x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +lean_ctor_set(x_36, 5, x_35); +lean_ctor_set(x_36, 6, x_27); +lean_ctor_set(x_36, 7, x_28); +lean_ctor_set(x_36, 8, x_29); +lean_ctor_set(x_36, 9, x_30); +lean_ctor_set(x_36, 10, x_31); +lean_ctor_set(x_36, 11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*12 + 1, x_34); +x_37 = lean_box(0); lean_inc(x_8); -lean_inc(x_34); +lean_inc(x_36); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc_n(x_20, 2); -x_36 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9(x_20, x_20, x_35, x_3, x_4, x_5, x_6, x_34, x_8, x_18); -if (lean_obj_tag(x_36) == 0) +x_38 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9(x_20, x_20, x_37, x_3, x_4, x_5, x_6, x_36, x_8, x_18); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_ctor_get(x_17, 2); -lean_inc(x_38); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_ctor_get(x_17, 2); +lean_inc(x_40); lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_39 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10(x_20, x_38, x_35, x_3, x_4, x_5, x_6, x_34, x_8, x_37); -if (lean_obj_tag(x_39) == 0) +x_41 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10(x_20, x_40, x_37, x_3, x_4, x_5, x_6, x_36, x_8, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); lean_ctor_set(x_1, 1, x_2); lean_ctor_set(x_1, 0, x_17); { lean_object* _tmp_0 = x_14; lean_object* _tmp_1 = x_1; -lean_object* _tmp_8 = x_40; +lean_object* _tmp_8 = x_42; x_1 = _tmp_0; x_2 = _tmp_1; x_9 = _tmp_8; @@ -45588,7 +45772,7 @@ goto _start; } else { -uint8_t x_42; +uint8_t x_44; lean_dec(x_17); lean_free_object(x_1); lean_dec(x_14); @@ -45598,30 +45782,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_42 = !lean_is_exclusive(x_39); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) { -return x_39; +return x_41; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 0); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_39); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_41, 0); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_41); +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_46; -lean_dec(x_34); +uint8_t x_48; +lean_dec(x_36); lean_dec(x_20); lean_dec(x_17); lean_free_object(x_1); @@ -45632,177 +45816,147 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_46 = !lean_is_exclusive(x_36); -if (x_46 == 0) +x_48 = !lean_is_exclusive(x_38); +if (x_48 == 0) { -return x_36; +return x_38; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_36, 0); -x_48 = lean_ctor_get(x_36, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_36); -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; 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; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_50 = lean_ctor_get(x_1, 0); -x_51 = lean_ctor_get(x_1, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_38, 0); +x_50 = lean_ctor_get(x_38, 1); lean_inc(x_50); -lean_dec(x_1); -x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_49); +lean_dec(x_38); +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 +{ +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; uint8_t 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; +x_52 = lean_ctor_get(x_1, 0); +x_53 = lean_ctor_get(x_1, 1); +lean_inc(x_53); lean_inc(x_52); -lean_dec(x_50); -x_53 = l_Lean_Meta_Match_instantiateAltLHSMVars(x_52, x_5, x_6, x_7, x_8, x_9); -x_54 = lean_ctor_get(x_53, 0); +lean_dec(x_1); +x_54 = lean_ctor_get(x_52, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_52); +x_55 = l_Lean_Meta_Match_instantiateAltLHSMVars(x_54, x_5, x_6, x_7, x_8, x_9); +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_7, 0); -x_59 = lean_ctor_get(x_7, 1); -x_60 = lean_ctor_get(x_7, 2); -x_61 = lean_ctor_get(x_7, 3); -x_62 = lean_ctor_get(x_7, 4); -x_63 = lean_ctor_get(x_7, 5); -x_64 = lean_ctor_get(x_7, 6); -x_65 = lean_ctor_get(x_7, 7); -x_66 = lean_ctor_get(x_7, 8); -x_67 = lean_ctor_get(x_7, 9); -x_68 = lean_ctor_get(x_7, 10); -x_69 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_70 = l_Lean_replaceRef(x_56, x_63); -lean_dec(x_56); +lean_dec(x_55); +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_7, 0); +x_61 = lean_ctor_get(x_7, 1); +x_62 = lean_ctor_get(x_7, 2); +x_63 = lean_ctor_get(x_7, 3); +x_64 = lean_ctor_get(x_7, 4); +x_65 = lean_ctor_get(x_7, 5); +x_66 = lean_ctor_get(x_7, 6); +x_67 = lean_ctor_get(x_7, 7); +x_68 = lean_ctor_get(x_7, 8); +x_69 = lean_ctor_get(x_7, 9); +x_70 = lean_ctor_get(x_7, 10); +x_71 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_72 = lean_ctor_get(x_7, 11); +x_73 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_74 = l_Lean_replaceRef(x_58, x_65); +lean_dec(x_58); +lean_inc(x_72); +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_inc(x_63); lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -x_71 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_71, 0, x_58); -lean_ctor_set(x_71, 1, x_59); -lean_ctor_set(x_71, 2, x_60); -lean_ctor_set(x_71, 3, x_61); -lean_ctor_set(x_71, 4, x_62); -lean_ctor_set(x_71, 5, x_70); -lean_ctor_set(x_71, 6, x_64); -lean_ctor_set(x_71, 7, x_65); -lean_ctor_set(x_71, 8, x_66); -lean_ctor_set(x_71, 9, x_67); -lean_ctor_set(x_71, 10, x_68); -lean_ctor_set_uint8(x_71, sizeof(void*)*11, x_69); -x_72 = lean_box(0); +x_75 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_75, 0, x_60); +lean_ctor_set(x_75, 1, x_61); +lean_ctor_set(x_75, 2, x_62); +lean_ctor_set(x_75, 3, x_63); +lean_ctor_set(x_75, 4, x_64); +lean_ctor_set(x_75, 5, x_74); +lean_ctor_set(x_75, 6, x_66); +lean_ctor_set(x_75, 7, x_67); +lean_ctor_set(x_75, 8, x_68); +lean_ctor_set(x_75, 9, x_69); +lean_ctor_set(x_75, 10, x_70); +lean_ctor_set(x_75, 11, x_72); +lean_ctor_set_uint8(x_75, sizeof(void*)*12, x_71); +lean_ctor_set_uint8(x_75, sizeof(void*)*12 + 1, x_73); +x_76 = lean_box(0); lean_inc(x_8); -lean_inc(x_71); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc_n(x_57, 2); -x_73 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9(x_57, x_57, x_72, x_3, x_4, x_5, x_6, x_71, x_8, x_55); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -x_75 = lean_ctor_get(x_54, 2); lean_inc(x_75); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc_n(x_59, 2); +x_77 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9(x_59, x_59, x_76, x_3, x_4, x_5, x_6, x_75, x_8, x_57); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_ctor_get(x_56, 2); +lean_inc(x_79); lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_76 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10(x_57, x_75, x_72, x_3, x_4, x_5, x_6, x_71, x_8, x_74); -if (lean_obj_tag(x_76) == 0) +x_80 = l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10(x_59, x_79, x_76, x_3, x_4, x_5, x_6, x_75, x_8, x_78); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_54); -lean_ctor_set(x_78, 1, x_2); -x_1 = x_51; -x_2 = x_78; -x_9 = x_77; +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_56); +lean_ctor_set(x_82, 1, x_2); +x_1 = x_53; +x_2 = x_82; +x_9 = x_81; goto _start; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_54); -lean_dec(x_51); -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_80 = lean_ctor_get(x_76, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_76, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_82 = x_76; -} else { - lean_dec_ref(x_76); - 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 -{ lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_71); -lean_dec(x_57); -lean_dec(x_54); -lean_dec(x_51); +lean_dec(x_56); +lean_dec(x_53); 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_84 = lean_ctor_get(x_73, 0); +x_84 = lean_ctor_get(x_80, 0); lean_inc(x_84); -x_85 = lean_ctor_get(x_73, 1); +x_85 = lean_ctor_get(x_80, 1); lean_inc(x_85); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_86 = x_73; +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_86 = x_80; } else { - lean_dec_ref(x_73); + lean_dec_ref(x_80); x_86 = lean_box(0); } if (lean_is_scalar(x_86)) { @@ -45815,6 +45969,41 @@ lean_ctor_set(x_87, 1, x_85); return x_87; } } +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_75); +lean_dec(x_59); +lean_dec(x_56); +lean_dec(x_53); +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_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; +} else { + lean_dec_ref(x_77); + 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); +return x_91; +} +} } } } @@ -49669,7 +49858,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -49681,7 +49870,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -49694,29 +49886,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -50219,7 +50413,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -50231,7 +50425,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -50244,24 +50441,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -51001,7 +51200,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -51011,27 +51210,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2; x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4() { _start: { lean_object* x_1; @@ -51039,17 +51238,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6() { _start: { lean_object* x_1; @@ -51057,37 +51256,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7; x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10() { _start: { lean_object* x_1; @@ -51095,17 +51294,17 @@ x_1 = lean_mk_string_from_bytes("Match", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12() { _start: { lean_object* x_1; @@ -51113,33 +51312,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13; -x_2 = lean_unsigned_to_nat(18632u); +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13; +x_2 = lean_unsigned_to_nat(18634u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___closed__7; x_3 = 0; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -53949,17 +54148,17 @@ l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__1 lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__1); l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813____closed__5); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14813_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815____closed__5); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_14815_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_match_ignoreUnusedAlts = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_match_ignoreUnusedAlts); @@ -54072,35 +54271,35 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch_declRange___closed_ if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabMatch_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__5); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__6); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__7); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__8); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__9); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__10); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__11); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__12); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__13); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632____closed__14); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18632_(lean_io_mk_world()); +}l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__5); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__6); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__7); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__8); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__9); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__10); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__11); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__12); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__13); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634____closed__14); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18634_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__3___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__3___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 235013758b..5671cc6256 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -16,13 +16,14 @@ extern "C" { LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_HashMapImp_find_x3f___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3___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_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_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_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14(lean_object*, size_t, size_t); lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__3; @@ -30,14 +31,17 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___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_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__1___closed__1; lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(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_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___boxed(lean_object*); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(lean_object*); @@ -54,6 +58,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualD LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__11___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* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_processDefDeriving(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instFVarIdSetInhabited; @@ -64,6 +69,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___rarg___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_CommandContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,20 +79,24 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___rarg___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_Lean_Elab_instInhabitedDefViewElabHeader___closed__3; +static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6; LEAN_EXPORT lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__3(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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2; static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__5; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5; extern lean_object* l_Lean_declRangeExt; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -96,29 +106,38 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfN static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__5(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_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1; +lean_object* l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default; LEAN_EXPORT lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Language_DynamicSnapshot_toTyped_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg(lean_object*); lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___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_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_promise_new(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__10; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getDocStringText___at_Lean_Elab_Command_elabMutualDef___spec__9___closed__2; +uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__4___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__5___rarg___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* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__7; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___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_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); @@ -147,6 +166,7 @@ static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain_ lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1___boxed(lean_object**); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -170,6 +190,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst(lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__1; @@ -186,7 +207,10 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_MutualDef_ lean_object* l_Lean_replaceRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default; static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__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* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___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_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5; lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,39 +227,46 @@ lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__3___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__11___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__12___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_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_TSepArray_getElems___rarg(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___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_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__6(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque(uint8_t); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__2___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at_Lean_Elab_Command_elabMutualDef___spec__13(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__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_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__4; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__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*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__4(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__3(size_t, size_t, 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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___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_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_WF_TerminationHints_none; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__11(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___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 uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample(lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3; +lean_object* lean_io_get_num_heartbeats(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__15___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_Lean_Meta_withLetDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__5(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -248,6 +279,7 @@ static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___ LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___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_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* lean_io_promise_result(lean_object*); uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__3___closed__3; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__5; @@ -257,6 +289,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualD uint8_t l_List_any___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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*); extern lean_object* l_Lean_maxRecDepth; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,18 +297,23 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply(lean_o LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__2(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__1; lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar(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_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___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_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___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_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_getAndEmptyMessageLog___rarg(lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__4; static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__5; @@ -311,24 +349,31 @@ uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run___boxed(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Term_elabMutualDef___spec__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_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars(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_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1; static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__5; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; size_t lean_ptr_addr(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__7___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_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___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*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__9; +lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___rarg___lambda__1(lean_object*, lean_object*); @@ -338,17 +383,18 @@ lean_object* l_Lean_LocalDecl_setBinderInfo(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__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*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(lean_object*); -static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; lean_object* l_Lean_Elab_Term_expandWhereDeclsOpt(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Command_elabMutualDef___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__2___lambda__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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_task_pure(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_preprocess___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__8; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1; lean_object* l_Lean_Meta_resetZetaDeltaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__11___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*); @@ -359,9 +405,10 @@ lean_object* l_Array_reverse___rarg(lean_object*); LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__1(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__1(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12(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* l_Lean_LocalDecl_setUserName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_setMVarUserNamesAt___spec__1(lean_object*, lean_object*); @@ -372,6 +419,7 @@ static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_main(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_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getDeclarationSelectionRef(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -390,6 +438,7 @@ lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___rarg___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); @@ -399,6 +448,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_Mutua uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t); LEAN_EXPORT uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_add_heartbeats(uint64_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__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* l_Lean_mkHole(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -408,14 +459,16 @@ lean_object* l_Lean_Name_quickCmp___boxed(lean_object*, lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__7; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__1(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*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___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_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__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_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__13; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at_Lean_Elab_Term_elabMutualDef___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -439,13 +492,11 @@ LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLet lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___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_Lean_Elab_getBetterRef(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; lean_object* l_Lean_HashMap_insert___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_check___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__2___closed__1; @@ -460,6 +511,7 @@ lean_object* l_Lean_RBNode_findCore___at_Lean_Elab_Structural_findRecArg_go___sp lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___rarg___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_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_Array_indexOfAux___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__7(lean_object*, lean_object*, lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -468,17 +520,20 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendind static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__12; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2; static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__1; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___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_Lean_pp_universes; LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_343____spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1(lean_object*, size_t, size_t); @@ -494,10 +549,10 @@ static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualD LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_MutualClosure_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -505,15 +560,18 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___sp static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___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_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___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_Elab_Term_elabMutualDef_go___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*); static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isMissing(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -521,32 +579,40 @@ static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualD LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___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_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___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_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__2; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10; extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__4___boxed(lean_object**); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__2(lean_object*, 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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(lean_object*); lean_object* l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(lean_object*, lean_object*, uint8_t); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__6; uint8_t l_Lean_Elab_DefView_isInstance(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___boxed(lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; lean_object* l_Lean_Syntax_getSepArgs(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___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* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___boxed(lean_object*); @@ -564,7 +630,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua lean_object* l_Lean_Elab_Term_getLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__4; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_Array_sequenceMap___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -580,6 +645,7 @@ lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessa LEAN_EXPORT lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -587,6 +653,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_checkForH uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkForall(lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3; extern lean_object* l_Lean_Elab_instInhabitedDefView; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___closed__3; extern lean_object* l_Lean_diagnostics; @@ -602,18 +669,18 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0_ lean_object* l_Lean_LocalDecl_fvarId(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7; LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Language_Snapshot_Diagnostics_empty; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___rarg___lambda__3___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_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___lambda__1(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_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader; lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; @@ -621,79 +688,93 @@ static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__2; lean_object* l_Lean_Meta_getZetaDeltaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_Elab_Term_elabMutualDef_go___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_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__7___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__8(lean_object*, lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkLambda(lean_object*, lean_object*); size_t lean_usize_mod(size_t, size_t); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__15(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__6(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___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* l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__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_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__6; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_getKindForLetRecs___boxed(lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3; lean_object* l_Lean_Meta_mkForallFVars_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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* l_Array_append___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5; extern lean_object* l_Lean_inheritedTraceOptions; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__1; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__1; lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getSubstring_x3f(lean_object*, uint8_t, uint8_t); static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Term_elabMutualDef___spec__8(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_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12(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_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__6; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__1; +static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__6(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___rarg___closed__1; lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___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_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__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*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__1; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4; static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__2___closed__7; +extern lean_object* l_Lean_Elab_instTypeNameDefsParsedSnapshot; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed___rarg(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_List_mapTR_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg___closed__1; static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__2; lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__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*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__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_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__12; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__4___rarg___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_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(lean_object*, uint8_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_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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*); extern lean_object* l_Lean_Parser_Term_type; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__17(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__2; static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__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_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__2; lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addLocalVarInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -720,10 +801,11 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenU static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__4___closed__1; lean_object* l_Lean_Elab_addPreDefinitions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__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_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(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_Term_checkForHiddenUnivLevels_visitLevel___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectMVars_visit(lean_object*, lean_object*); +uint8_t l_Substring_sameAs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___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_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -731,6 +813,7 @@ lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__1; @@ -741,6 +824,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosur static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__4; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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*); static lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__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_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*); @@ -750,11 +834,10 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_checkForHidd lean_object* l_Lean_MessageData_ofLevel(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___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_Lean_Elab_Term_MutualClosure_pushLetRecs(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__3___boxed(lean_object**); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__5; uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(uint8_t, uint8_t); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__3(lean_object*, size_t, size_t); @@ -762,18 +845,21 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1; static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___spec__2(lean_object*, lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_pp_funBinderTypes; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___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_Term_checkForHiddenUnivLevels_visit___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*); static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__3; LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_object*); -LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___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_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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*, lean_object*); lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__5; @@ -791,9 +877,11 @@ uint8_t l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_D LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getDelayedMVarRoot___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__2(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_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1; lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__11(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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2; @@ -804,7 +892,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_addPreDefinitions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushNewVars(lean_object*, lean_object*); @@ -813,17 +900,18 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__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_EXPORT lean_object* l_Lean_getDocStringText___at_Lean_Elab_Command_elabMutualDef___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__4; -static lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___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_Lean_Expr_instHashable; LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; +static size_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___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 uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__4___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef___spec__7(lean_object*, lean_object*, size_t, size_t, 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_Term_elabMutualDef___spec__12___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*); @@ -832,16 +920,19 @@ lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance__ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5(lean_object*, size_t, size_t, lean_object*); static lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4; uint8_t l_Lean_Expr_isProp(lean_object*); +lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__3; static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___lambda__1___closed__1; +lean_object* l_List_iotaTR(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -850,25 +941,30 @@ static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4; static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__11; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4; lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__15___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_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__11___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_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Term_withAuxDecl___rarg(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_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg(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_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__5___closed__1; lean_object* l_String_intercalate(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___boxed(lean_object*); lean_object* l_Lean_mkHashMapImp___rarg(lean_object*); @@ -881,6 +977,7 @@ lean_object* l_Lean_Meta_removeUnused(lean_object*, lean_object*, lean_object*, static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__10; static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__10; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__6___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_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -897,6 +994,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_elabMutualDef_go___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_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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*); @@ -909,7 +1007,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run(lean_object LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__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_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5(lean_object*, lean_object*, size_t, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object*); +lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); uint8_t l_Lean_Elab_Modifiers_isNonrec(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__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*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; @@ -938,9 +1038,12 @@ static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualD LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2(lean_object*, size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9; +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAttributeImpl(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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*); lean_object* l_Lean_Meta_InfoCacheKey_instHashable___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -960,19 +1063,21 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(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_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__5___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___boxed(lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___boxed(lean_object*); static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___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* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___boxed(lean_object*); @@ -981,7 +1086,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__4; static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__9; @@ -993,14 +1097,18 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__4; lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__2___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__7(size_t, size_t, 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_Term_elabMutualDef_go___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__8; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_fixLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1029,24 +1137,31 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualD lean_object* l_Lean_Expr_collectFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___spec__1(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified(lean_object*); LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___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*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_instantiateMVarsAtHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___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_Elab_Term_elabMutualDef_go___lambda__2(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* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1() { @@ -1080,43 +1195,72 @@ return x_6; static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3() { _start: { +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = 0; +x_3 = lean_box(0); +x_4 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__2; +x_5 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set(x_5, 4, x_1); +lean_ctor_set(x_5, 5, x_3); +lean_ctor_set(x_5, 6, x_1); +lean_ctor_set(x_5, 7, x_1); +lean_ctor_set_uint8(x_5, sizeof(void*)*8, x_2); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); x_2 = l_Lean_Expr_bvar___override(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4() { +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5() { _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; lean_object* x_7; lean_object* x_8; lean_object* x_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; x_1 = lean_box(0); x_2 = lean_box(0); -x_3 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__2; -x_4 = 0; -x_5 = lean_box(0); -x_6 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3; -x_9 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_9, 0, x_2); -lean_ctor_set(x_9, 1, x_3); -lean_ctor_set(x_9, 2, x_5); -lean_ctor_set(x_9, 3, x_5); -lean_ctor_set(x_9, 4, x_1); -lean_ctor_set(x_9, 5, x_6); -lean_ctor_set(x_9, 6, x_7); -lean_ctor_set(x_9, 7, x_8); -lean_ctor_set(x_9, 8, x_2); -lean_ctor_set_uint8(x_9, sizeof(void*)*9, x_4); -return x_9; +x_3 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4; +x_6 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_1); +lean_ctor_set(x_6, 3, x_3); +lean_ctor_set(x_6, 4, x_4); +lean_ctor_set(x_6, 5, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3; +x_3 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5; +x_4 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +lean_ctor_set(x_4, 2, x_1); +lean_ctor_set(x_4, 3, x_1); +return x_4; } } static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader() { _start: { lean_object* x_1; -x_1 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4; +x_1 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6; return x_1; } } @@ -1641,53 +1785,55 @@ return x_12; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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; -x_11 = lean_ctor_get(x_1, 1); -x_12 = lean_ctor_get(x_2, 1); +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_1, 0); +x_12 = lean_ctor_get(x_11, 1); +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_13, 1); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_13) == 0) +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers(x_12, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds(x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -return x_17; +lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +x_18 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds(x_17, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +return x_19; } else { -uint8_t x_18; +uint8_t x_20; 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_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -return x_13; +return x_15; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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; } } } @@ -1746,68 +1892,50 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_array_get_size(x_1); -x_32 = lean_unsigned_to_nat(0u); -x_33 = lean_nat_dec_lt(x_32, x_31); -lean_dec(x_31); -if (x_33 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_array_get_size(x_1); +x_34 = lean_unsigned_to_nat(0u); +x_35 = lean_nat_dec_lt(x_34, x_33); +lean_dec(x_33); +if (x_35 == 0) { -lean_object* x_34; lean_object* x_35; +lean_object* x_36; lean_object* x_37; 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_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_10); -return x_35; +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_10); +return x_37; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_array_fget(x_1, x_32); -x_37 = lean_ctor_get(x_2, 4); -x_38 = lean_ctor_get(x_36, 4); -lean_inc(x_38); -x_39 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_343____spec__1(x_37, x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_38 = lean_array_fget(x_1, x_34); +x_39 = lean_ctor_get(x_2, 1); +x_40 = lean_ctor_get(x_39, 2); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 2); +lean_inc(x_42); +lean_dec(x_41); +x_43 = l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_343____spec__1(x_40, x_42); +lean_dec(x_42); +if (x_43 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_36); -x_40 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__6; -x_41 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_40, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_38); +x_44 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__6; +x_45 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_44, x_4, 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_6); lean_dec(x_5); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_11 = x_42; -x_12 = x_43; -goto block_30; -} -else -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_box(0); -x_45 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1(x_2, x_36, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_36); -if (lean_obj_tag(x_45) == 0) -{ -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -1815,70 +1943,105 @@ lean_inc(x_47); lean_dec(x_45); x_11 = x_46; x_12 = x_47; -goto block_30; +goto block_32; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(0); +x_49 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1(x_2, x_38, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_38); +if (lean_obj_tag(x_49) == 0) +{ +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_11 = x_50; +x_12 = x_51; +goto block_32; } } } -block_30: +block_32: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { uint8_t x_14; -x_14 = !lean_is_exclusive(x_11); +x_14 = l_Lean_Exception_isRuntime(x_11); if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_11, 1); -x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2; -x_17 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_19 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -lean_ctor_set(x_11, 1, x_19); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_11); -lean_ctor_set(x_20, 1, x_12); -return x_20; +uint8_t x_15; +x_15 = !lean_is_exclusive(x_11); +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; +x_16 = lean_ctor_get(x_11, 1); +x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2; +x_18 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_20 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +lean_ctor_set(x_11, 1, x_20); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } else { -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; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 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; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); lean_dec(x_11); -x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2; -x_24 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_26 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_21); +x_24 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2; +x_25 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_27 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_12); -return x_28; -} -} -else -{ -lean_object* x_29; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_11); +lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_12); return x_29; } } +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_11); +lean_ctor_set(x_30, 1, x_12); +return x_30; +} +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_11); +lean_ctor_set(x_31, 1, x_12); +return x_31; +} +} } } static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__1() { @@ -1901,55 +2064,56 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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) { _start: { -lean_object* x_11; uint8_t x_12; +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_dec(x_3); -x_11 = lean_ctor_get(x_2, 1); -x_12 = l_Lean_Elab_Modifiers_isPartial(x_11); -if (x_12 == 0) +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_11, 1); +x_13 = l_Lean_Elab_Modifiers_isPartial(x_12); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } else { -uint8_t x_15; -x_15 = lean_ctor_get_uint8(x_11, sizeof(void*)*2 + 3); -if (x_15 == 0) +uint8_t x_16; +x_16 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 3); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(x_1, x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2; -x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2; +x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, 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_6); lean_dec(x_5); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -return x_19; +return x_20; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -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; +lean_dec(x_20); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } @@ -1975,55 +2139,56 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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; uint8_t x_12; +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_dec(x_3); -x_11 = lean_ctor_get(x_2, 1); -x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*2 + 1); -if (x_12 == 0) +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_11, 1); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 1); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } else { -uint8_t x_15; -x_15 = l_Lean_Elab_Modifiers_isPartial(x_11); -if (x_15 == 0) +uint8_t x_16; +x_16 = l_Lean_Elab_Modifiers_isPartial(x_12); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(x_1, x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__2; -x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__2; +x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, 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_6); lean_dec(x_5); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -return x_19; +return x_20; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -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; +lean_dec(x_20); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } @@ -2049,56 +2214,57 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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) { _start: { -uint8_t x_11; uint8_t x_12; +lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_dec(x_3); -x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_12 = l_Lean_Elab_DefKind_isTheorem(x_11); -if (x_12 == 0) +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +x_13 = l_Lean_Elab_DefKind_isTheorem(x_12); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } else { -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_2, 1); -x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2 + 1); -if (x_16 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_11, 1); +x_17 = lean_ctor_get_uint8(x_16, sizeof(void*)*2 + 1); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_box(0); -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_19; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2; -x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2; +x_21 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_20, x_4, 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_6); lean_dec(x_5); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -return x_20; +return x_21; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_dec(x_21); +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; } } } @@ -2124,56 +2290,57 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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) { _start: { -uint8_t x_11; uint8_t x_12; +lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_dec(x_3); -x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_12 = l_Lean_Elab_DefKind_isTheorem(x_11); -if (x_12 == 0) +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*8); +x_13 = l_Lean_Elab_DefKind_isTheorem(x_12); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } else { -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_2, 1); -x_16 = l_Lean_Elab_Modifiers_isPartial(x_15); -if (x_16 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_11, 1); +x_17 = l_Lean_Elab_Modifiers_isPartial(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_box(0); -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_19; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2; -x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2; +x_21 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_20, x_4, 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_6); lean_dec(x_5); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -return x_20; +return x_21; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_dec(x_21); +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; } } } @@ -2199,55 +2366,64 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(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; uint8_t x_11; -x_10 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_11 = l_Lean_Elab_DefKind_isTheorem(x_10); -if (x_11 == 0) +lean_object* x_10; uint8_t x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get_uint8(x_10, sizeof(void*)*8); +x_12 = l_Lean_Elab_DefKind_isTheorem(x_11); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_box(0); -x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_13; +lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_14; } else { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_2, 1); -x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 3); -if (x_15 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2 + 3); +lean_dec(x_15); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_18; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2; -x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_dec(x_2); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2; +x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -return x_19; +return x_20; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -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; +lean_dec(x_20); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } @@ -2320,7 +2496,6 @@ _start: { lean_object* x_10; x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); lean_dec(x_1); return x_10; } @@ -2484,7 +2659,7 @@ if (x_63 == 0) lean_object* x_64; lean_object* x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; x_64 = l_Lean_Elab_instInhabitedDefView; x_65 = l___private_Init_GetElem_0__outOfBounds___rarg(x_64); -x_66 = lean_ctor_get_uint8(x_65, sizeof(void*)*7); +x_66 = lean_ctor_get_uint8(x_65, sizeof(void*)*8); lean_dec(x_65); x_67 = 3; x_68 = l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15_(x_66, x_67); @@ -2507,7 +2682,7 @@ else { lean_object* x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; x_71 = lean_array_fget(x_1, x_62); -x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*7); +x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*8); lean_dec(x_71); x_73 = 3; x_74 = l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15_(x_72, x_73); @@ -3313,6 +3488,584 @@ lean_dec(x_2); return x_7; } } +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean", 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Parser", 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Command", 7); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("declValSimple", 13); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5; +lean_inc(x_1); +x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); +if (x_3 == 0) +{ +lean_object* x_4; +lean_dec(x_1); +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +lean_dec(x_1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +return x_7; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +lean_inc(x_1); +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f(x_1); +x_4 = lean_io_promise_result(x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_5; lean_object* x_6; lean_object* x_7; +x_5 = 0; +x_6 = l_Lean_Syntax_getRange_x3f(x_1, x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_1); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = 0; +x_10 = l_Lean_Syntax_getRange_x3f(x_8, x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_4); +return x_11; +} +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static size_t _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; size_t x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_usize_of_nat(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1; +x_2 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__2; +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set_usize(x_5, 4, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3; +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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4; +x_3 = lean_alloc_ctor(0, 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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_task_pure(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6; +x_2 = lean_box(0); +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8; +x_2 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___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; uint8_t x_12; +x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9; +x_11 = lean_io_promise_resolve(x_10, x_1, x_9); +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 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10; +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 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10; +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; +} +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Term", 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("byTactic", 8); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("tacticSeq", 9); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4; +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("tacticSeq1Indented", 18); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4; +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("null", 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f(x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_10, 0); +x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3; +lean_inc(x_14); +x_16 = l_Lean_Syntax_isOfKind(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_free_object(x_10); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_unsigned_to_nat(1u); +x_20 = l_Lean_Syntax_getArg(x_14, x_19); +x_21 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6; +lean_inc(x_20); +x_22 = l_Lean_Syntax_isOfKind(x_20, x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_20); +lean_free_object(x_10); +lean_dec(x_14); +x_23 = lean_box(0); +x_24 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Lean_Syntax_getArg(x_20, x_25); +lean_dec(x_20); +x_27 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8; +lean_inc(x_26); +x_28 = l_Lean_Syntax_isOfKind(x_26, x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_26); +lean_free_object(x_10); +lean_dec(x_14); +x_29 = lean_box(0); +x_30 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_30; +} +else +{ +lean_object* 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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_31 = l_Lean_Syntax_getArg(x_26, x_25); +lean_dec(x_26); +x_32 = l_Lean_Syntax_getArgs(x_31); +lean_dec(x_31); +x_33 = l_Lean_Syntax_TSepArray_getElems___rarg(x_32); +lean_dec(x_32); +x_34 = lean_box(2); +x_35 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; +x_36 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_33); +x_37 = 0; +x_38 = l_Lean_Syntax_getRange_x3f(x_36, x_37); +x_39 = lean_io_promise_result(x_2); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_10); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_9); +return x_43; +} +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_10, 0); +lean_inc(x_44); +lean_dec(x_10); +x_45 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3; +lean_inc(x_44); +x_46 = l_Lean_Syntax_isOfKind(x_44, x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +x_47 = lean_box(0); +x_48 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_49 = lean_unsigned_to_nat(1u); +x_50 = l_Lean_Syntax_getArg(x_44, x_49); +x_51 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6; +lean_inc(x_50); +x_52 = l_Lean_Syntax_isOfKind(x_50, x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_50); +lean_dec(x_44); +x_53 = lean_box(0); +x_54 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_Lean_Syntax_getArg(x_50, x_55); +lean_dec(x_50); +x_57 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8; +lean_inc(x_56); +x_58 = l_Lean_Syntax_isOfKind(x_56, x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_56); +lean_dec(x_44); +x_59 = lean_box(0); +x_60 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_2, x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_60; +} +else +{ +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; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_61 = l_Lean_Syntax_getArg(x_56, x_55); +lean_dec(x_56); +x_62 = l_Lean_Syntax_getArgs(x_61); +lean_dec(x_61); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_44); +x_64 = l_Lean_Syntax_TSepArray_getElems___rarg(x_62); +lean_dec(x_62); +x_65 = lean_box(2); +x_66 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; +x_67 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_67, 2, x_64); +x_68 = 0; +x_69 = l_Lean_Syntax_getRange_x3f(x_67, x_68); +x_70 = lean_io_promise_result(x_2); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_63); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_9); +return x_74; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, lean_object* x_10) { _start: { @@ -3334,7 +4087,7 @@ 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; 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; 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_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; uint8_t x_28; lean_object* 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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_13 = lean_array_uget(x_3, x_2); x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_uset(x_3, x_2, x_14); @@ -3362,60 +4115,65 @@ x_26 = lean_ctor_get(x_8, 9); lean_inc(x_26); x_27 = lean_ctor_get(x_8, 10); lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_29 = l_Lean_replaceRef(x_16, x_22); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_29 = lean_ctor_get(x_8, 11); +lean_inc(x_29); +x_30 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_31 = l_Lean_replaceRef(x_16, x_22); lean_dec(x_22); lean_dec(x_16); lean_inc(x_23); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_18); -lean_ctor_set(x_30, 2, x_19); -lean_ctor_set(x_30, 3, x_20); -lean_ctor_set(x_30, 4, x_21); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -lean_ctor_set(x_30, 7, x_24); -lean_ctor_set(x_30, 8, x_25); -lean_ctor_set(x_30, 9, x_26); -lean_ctor_set(x_30, 10, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_28); -x_31 = l_Lean_Elab_Term_getLevelNames___rarg(x_5, x_6, x_7, x_30, x_9, x_10); -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_ctor_get(x_13, 2); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_19); +lean_ctor_set(x_32, 3, x_20); +lean_ctor_set(x_32, 4, x_21); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_23); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_25); +lean_ctor_set(x_32, 9, x_26); +lean_ctor_set(x_32, 10, x_27); +lean_ctor_set(x_32, 11, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_30); +x_33 = l_Lean_Elab_Term_getLevelNames___rarg(x_5, x_6, x_7, x_32, x_9, x_10); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -x_35 = lean_ctor_get(x_13, 1); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_13, 2); +lean_inc(x_36); +x_37 = lean_ctor_get(x_13, 1); +lean_inc(x_37); lean_dec(x_13); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_36 = l_Lean_Elab_Term_expandDeclId(x_23, x_32, x_34, x_35, x_4, x_5, x_6, x_7, x_30, x_9, x_33); -if (lean_obj_tag(x_36) == 0) +x_38 = l_Lean_Elab_Term_expandDeclId(x_23, x_34, x_36, x_37, x_4, x_5, x_6, x_7, x_32, x_9, x_35); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = 1; -x_40 = lean_usize_add(x_2, x_39); -x_41 = lean_array_uset(x_15, x_2, x_37); -x_2 = x_40; -x_3 = x_41; -x_10 = x_38; +lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; +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 = 1; +x_42 = lean_usize_add(x_2, x_41); +x_43 = lean_array_uset(x_15, x_2, x_39); +x_2 = x_42; +x_3 = x_43; +x_10 = x_40; goto _start; } else { -uint8_t x_43; +uint8_t x_45; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -3423,23 +4181,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_43 = !lean_is_exclusive(x_36); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_38); +if (x_45 == 0) { -return x_36; +return x_38; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_36, 0); -x_45 = lean_ctor_get(x_36, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_36); -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; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_38, 0); +x_47 = lean_ctor_get(x_38, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_38); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -4075,42 +4833,18 @@ static lean_object* _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_E _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Lean", 4); +x_1 = lean_mk_string_from_bytes("example", 7); return x_1; } } static lean_object* _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Parser", 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Command", 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("example", 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; -x_4 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; +x_4 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } @@ -4121,7 +4855,7 @@ _start: lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_inc(x_2); x_10 = l_Lean_Syntax_getKind(x_2); -x_11 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5; +x_11 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; x_12 = lean_name_eq(x_10, x_11); lean_dec(x_10); if (x_12 == 0) @@ -4180,325 +4914,1151 @@ return x_27; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, 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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get_uint8(x_1, sizeof(void*)*7); -x_21 = lean_array_get_size(x_2); -x_22 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_4); -lean_ctor_set(x_22, 2, x_5); -lean_ctor_set(x_22, 3, x_6); -lean_ctor_set(x_22, 4, x_7); -lean_ctor_set(x_22, 5, x_8); -lean_ctor_set(x_22, 6, x_21); -lean_ctor_set(x_22, 7, x_9); -lean_ctor_set(x_22, 8, x_10); -lean_ctor_set_uint8(x_22, sizeof(void*)*9, x_20); -x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(x_11, x_22, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -if (lean_obj_tag(x_23) == 0) +lean_object* x_11; +lean_inc(x_2); +x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_22); -return x_23; +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_2); +return x_11; } else { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_22); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_14); +return x_15; } } else { +uint8_t x_16; +lean_dec(x_2); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_array_get_size(x_1); +lean_dec(x_1); +x_22 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_3); +lean_ctor_set(x_22, 2, x_4); +lean_ctor_set(x_22, 3, x_5); +lean_ctor_set(x_22, 4, x_21); +lean_ctor_set(x_22, 5, x_6); +x_23 = lean_box(0); +x_24 = lean_ctor_get(x_7, 6); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_7); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_23); +lean_ctor_set(x_25, 3, x_23); +x_26 = lean_box(0); +x_27 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_25, x_26, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_8); +return x_27; +} +else +{ uint8_t x_28; -lean_dec(x_22); -x_28 = !lean_is_exclusive(x_23); +x_28 = !lean_is_exclusive(x_24); if (x_28 == 0) { -return x_23; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -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_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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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, 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; -lean_dec(x_11); -x_19 = l_Array_unzip___rarg(x_1); -lean_dec(x_1); -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); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_12); -x_22 = l_Lean_Elab_Term_addAutoBoundImplicits(x_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_23); -x_25 = l_Lean_Meta_mkForallFVars_x27(x_23, x_10, x_14, x_15, x_16, x_17, x_24); -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; -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 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_26, x_12, x_13, x_14, x_15, x_16, x_17, x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Elab_Term_getLevelNames___rarg(x_13, x_14, x_15, x_16, x_17, x_30); -x_32 = lean_ctor_get(x_2, 4); +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; uint8_t x_42; +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_10); +lean_inc(x_9); +x_30 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_9, x_10, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_9); +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 = lean_box(0); -x_36 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1(x_2, x_23, x_3, x_4, x_5, x_6, x_33, x_20, x_29, x_7, x_8, x_35, x_12, x_13, x_14, x_15, x_16, x_17, x_34); -lean_dec(x_8); -lean_dec(x_23); -lean_dec(x_2); -return x_36; -} -else -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_32); -if (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; lean_object* x_46; lean_object* x_47; -x_38 = lean_ctor_get(x_32, 0); -lean_dec(x_38); -x_39 = lean_ctor_get(x_31, 0); +x_35 = l_Lean_Core_getAndEmptyMessageLog___rarg(x_19, x_32); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_36, x_37); +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -x_40 = lean_ctor_get(x_31, 1); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -lean_dec(x_31); -lean_inc(x_29); -x_41 = l_Lean_Meta_getMVars(x_29, x_14, x_15, x_16, x_17, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage(x_9); -lean_dec(x_9); -x_45 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_MessageData_ofFormat(x_45); -lean_ctor_set(x_32, 0, x_46); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_47 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_42, x_32, x_12, x_13, x_14, x_15, x_16, x_17, x_43); -lean_dec(x_42); -if (lean_obj_tag(x_47) == 0) +lean_dec(x_38); +x_41 = lean_st_ref_get(x_19, x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 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_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); +x_45 = lean_io_get_num_heartbeats(x_44); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_45, 1); +x_49 = lean_nat_sub(x_47, x_11); lean_dec(x_47); -x_49 = lean_box(0); -x_50 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1(x_2, x_23, x_3, x_4, x_5, x_6, x_39, x_20, x_29, x_7, x_8, x_49, x_12, x_13, x_14, x_15, x_16, x_17, x_48); -lean_dec(x_8); -lean_dec(x_23); -lean_dec(x_2); -return x_50; -} -else -{ -uint8_t x_51; -lean_dec(x_39); -lean_dec(x_29); -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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); -x_51 = !lean_is_exclusive(x_47); +lean_ctor_set(x_45, 1, x_49); +lean_ctor_set(x_45, 0, x_43); +x_50 = lean_st_ref_get(x_17, x_48); +x_51 = !lean_is_exclusive(x_50); if (x_51 == 0) { -return x_47; +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_ctor_set(x_50, 1, x_52); +lean_ctor_set(x_50, 0, x_45); +x_54 = lean_st_ref_get(x_15, x_53); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +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; uint8_t x_64; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); +lean_ctor_set(x_54, 1, x_56); +lean_ctor_set(x_54, 0, x_50); +x_58 = 0; +x_59 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_59, 0, x_39); +lean_ctor_set(x_59, 1, x_23); +lean_ctor_set_uint8(x_59, sizeof(void*)*2, x_58); +lean_inc(x_12); +lean_inc(x_9); +x_60 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_34); +lean_inc(x_22); +x_61 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_22); +lean_ctor_set(x_61, 2, x_54); +lean_ctor_set(x_61, 3, x_33); +lean_ctor_set(x_61, 4, x_34); +lean_ctor_set(x_61, 5, x_9); +lean_ctor_set(x_61, 6, x_60); +lean_ctor_set(x_24, 0, x_61); +x_62 = lean_ctor_get(x_29, 1); +lean_inc(x_62); +lean_dec(x_29); +x_63 = lean_io_promise_resolve(x_24, x_62, x_57); +lean_dec(x_62); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 1); +x_66 = lean_ctor_get(x_63, 0); +lean_dec(x_66); +lean_ctor_set(x_63, 1, x_12); +lean_ctor_set(x_63, 0, x_23); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_63); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_free_object(x_41); +lean_dec(x_10); +x_68 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_68, 0, x_7); +lean_ctor_set(x_68, 1, x_22); +lean_ctor_set(x_68, 2, x_23); +lean_ctor_set(x_68, 3, x_67); +x_69 = lean_box(0); +x_70 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_68, x_69, x_14, x_15, x_16, x_17, x_18, x_19, x_65); +lean_dec(x_8); +return x_70; } 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; +uint8_t x_71; +x_71 = !lean_is_exclusive(x_34); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_34, 0); +lean_dec(x_72); +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +lean_ctor_set(x_34, 0, x_41); +x_73 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_73, 0, x_7); +lean_ctor_set(x_73, 1, x_22); +lean_ctor_set(x_73, 2, x_34); +lean_ctor_set(x_73, 3, x_67); +x_74 = lean_box(0); +x_75 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_73, x_74, x_14, x_15, x_16, x_17, x_18, x_19, x_65); +lean_dec(x_8); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_34); +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_41); +x_77 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_77, 0, x_7); +lean_ctor_set(x_77, 1, x_22); +lean_ctor_set(x_77, 2, x_76); +lean_ctor_set(x_77, 3, x_67); +x_78 = lean_box(0); +x_79 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_77, x_78, x_14, x_15, x_16, x_17, x_18, x_19, x_65); +lean_dec(x_8); +return x_79; } } } 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; lean_object* x_63; lean_object* x_64; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_63, 1); +lean_inc(x_80); +lean_dec(x_63); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_23); +lean_ctor_set(x_81, 1, x_12); +x_82 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_82, 0, x_81); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_free_object(x_41); +lean_dec(x_10); +x_83 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_83, 0, x_7); +lean_ctor_set(x_83, 1, x_22); +lean_ctor_set(x_83, 2, x_23); +lean_ctor_set(x_83, 3, x_82); +x_84 = lean_box(0); +x_85 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_83, x_84, x_14, x_15, x_16, x_17, x_18, x_19, x_80); +lean_dec(x_8); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + x_86 = x_34; +} else { + lean_dec_ref(x_34); + x_86 = lean_box(0); +} +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 1, 0); +} else { + x_87 = x_86; +} +lean_ctor_set(x_87, 0, x_41); +x_88 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_88, 0, x_7); +lean_ctor_set(x_88, 1, x_22); +lean_ctor_set(x_88, 2, x_87); +lean_ctor_set(x_88, 3, x_82); +x_89 = lean_box(0); +x_90 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_88, x_89, x_14, x_15, x_16, x_17, x_18, x_19, x_80); +lean_dec(x_8); +return x_90; +} +} +} +else +{ +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_object* x_101; lean_object* x_102; lean_object* x_103; +x_91 = lean_ctor_get(x_54, 0); +x_92 = lean_ctor_get(x_54, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_54); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_50); +lean_ctor_set(x_93, 1, x_91); +x_94 = 0; +x_95 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_95, 0, x_39); +lean_ctor_set(x_95, 1, x_23); +lean_ctor_set_uint8(x_95, sizeof(void*)*2, x_94); +lean_inc(x_12); +lean_inc(x_9); +x_96 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_34); +lean_inc(x_22); +x_97 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_22); +lean_ctor_set(x_97, 2, x_93); +lean_ctor_set(x_97, 3, x_33); +lean_ctor_set(x_97, 4, x_34); +lean_ctor_set(x_97, 5, x_9); +lean_ctor_set(x_97, 6, x_96); +lean_ctor_set(x_24, 0, x_97); +x_98 = lean_ctor_get(x_29, 1); +lean_inc(x_98); +lean_dec(x_29); +x_99 = lean_io_promise_resolve(x_24, x_98, x_92); +lean_dec(x_98); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_101 = x_99; +} else { + lean_dec_ref(x_99); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(0, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_23); +lean_ctor_set(x_102, 1, x_12); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_102); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_free_object(x_41); +lean_dec(x_10); +x_104 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_104, 0, x_7); +lean_ctor_set(x_104, 1, x_22); +lean_ctor_set(x_104, 2, x_23); +lean_ctor_set(x_104, 3, x_103); +x_105 = lean_box(0); +x_106 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_104, x_105, x_14, x_15, x_16, x_17, x_18, x_19, x_100); +lean_dec(x_8); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + x_107 = x_34; +} else { + lean_dec_ref(x_34); + x_107 = lean_box(0); +} +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 1, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_41); +x_109 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_109, 0, x_7); +lean_ctor_set(x_109, 1, x_22); +lean_ctor_set(x_109, 2, x_108); +lean_ctor_set(x_109, 3, x_103); +x_110 = lean_box(0); +x_111 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_109, x_110, x_14, x_15, x_16, x_17, x_18, x_19, x_100); +lean_dec(x_8); +return x_111; +} +} +} +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_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; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_112 = lean_ctor_get(x_50, 0); +x_113 = lean_ctor_get(x_50, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_50); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_45); +lean_ctor_set(x_114, 1, x_112); +x_115 = lean_st_ref_get(x_15, x_113); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; +} else { + lean_dec_ref(x_115); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_114); +lean_ctor_set(x_119, 1, x_116); +x_120 = 0; +x_121 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_121, 0, x_39); +lean_ctor_set(x_121, 1, x_23); +lean_ctor_set_uint8(x_121, sizeof(void*)*2, x_120); +lean_inc(x_12); +lean_inc(x_9); +x_122 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_34); +lean_inc(x_22); +x_123 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_22); +lean_ctor_set(x_123, 2, x_119); +lean_ctor_set(x_123, 3, x_33); +lean_ctor_set(x_123, 4, x_34); +lean_ctor_set(x_123, 5, x_9); +lean_ctor_set(x_123, 6, x_122); +lean_ctor_set(x_24, 0, x_123); +x_124 = lean_ctor_get(x_29, 1); +lean_inc(x_124); +lean_dec(x_29); +x_125 = lean_io_promise_resolve(x_24, x_124, x_117); +lean_dec(x_124); +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_127 = x_125; +} else { + lean_dec_ref(x_125); + x_127 = lean_box(0); +} +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_127; +} +lean_ctor_set(x_128, 0, x_23); +lean_ctor_set(x_128, 1, x_12); +x_129 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_129, 0, x_128); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_free_object(x_41); +lean_dec(x_10); +x_130 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_130, 0, x_7); +lean_ctor_set(x_130, 1, x_22); +lean_ctor_set(x_130, 2, x_23); +lean_ctor_set(x_130, 3, x_129); +x_131 = lean_box(0); +x_132 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_130, x_131, x_14, x_15, x_16, x_17, x_18, x_19, x_126); +lean_dec(x_8); +return x_132; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + x_133 = x_34; +} else { + lean_dec_ref(x_34); + x_133 = lean_box(0); +} +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 1, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_41); +x_135 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_135, 0, x_7); +lean_ctor_set(x_135, 1, x_22); +lean_ctor_set(x_135, 2, x_134); +lean_ctor_set(x_135, 3, x_129); +x_136 = lean_box(0); +x_137 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_135, x_136, x_14, x_15, x_16, x_17, x_18, x_19, x_126); +lean_dec(x_8); +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; uint8_t 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; +x_138 = lean_ctor_get(x_45, 0); +x_139 = lean_ctor_get(x_45, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_45); +x_140 = lean_nat_sub(x_138, x_11); +lean_dec(x_138); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_43); +lean_ctor_set(x_141, 1, x_140); +x_142 = lean_st_ref_get(x_17, x_139); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_145 = x_142; +} else { + lean_dec_ref(x_142); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(0, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_141); +lean_ctor_set(x_146, 1, x_143); +x_147 = lean_st_ref_get(x_15, x_144); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_150 = x_147; +} else { + lean_dec_ref(x_147); + x_150 = lean_box(0); +} +if (lean_is_scalar(x_150)) { + x_151 = lean_alloc_ctor(0, 2, 0); +} else { + x_151 = x_150; +} +lean_ctor_set(x_151, 0, x_146); +lean_ctor_set(x_151, 1, x_148); +x_152 = 0; +x_153 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_153, 0, x_39); +lean_ctor_set(x_153, 1, x_23); +lean_ctor_set_uint8(x_153, sizeof(void*)*2, x_152); +lean_inc(x_12); +lean_inc(x_9); +x_154 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_34); +lean_inc(x_22); +x_155 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_22); +lean_ctor_set(x_155, 2, x_151); +lean_ctor_set(x_155, 3, x_33); +lean_ctor_set(x_155, 4, x_34); +lean_ctor_set(x_155, 5, x_9); +lean_ctor_set(x_155, 6, x_154); +lean_ctor_set(x_24, 0, x_155); +x_156 = lean_ctor_get(x_29, 1); +lean_inc(x_156); +lean_dec(x_29); +x_157 = lean_io_promise_resolve(x_24, x_156, x_149); +lean_dec(x_156); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_159 = x_157; +} else { + lean_dec_ref(x_157); + x_159 = lean_box(0); +} +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_159; +} +lean_ctor_set(x_160, 0, x_23); +lean_ctor_set(x_160, 1, x_12); +x_161 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_161, 0, x_160); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_free_object(x_41); +lean_dec(x_10); +x_162 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_162, 0, x_7); +lean_ctor_set(x_162, 1, x_22); +lean_ctor_set(x_162, 2, x_23); +lean_ctor_set(x_162, 3, x_161); +x_163 = lean_box(0); +x_164 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_162, x_163, x_14, x_15, x_16, x_17, x_18, x_19, x_158); +lean_dec(x_8); +return x_164; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + x_165 = x_34; +} else { + lean_dec_ref(x_34); + x_165 = lean_box(0); +} +lean_ctor_set(x_41, 1, x_10); +lean_ctor_set(x_41, 0, x_23); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 1, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_41); +x_167 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_167, 0, x_7); +lean_ctor_set(x_167, 1, x_22); +lean_ctor_set(x_167, 2, x_166); +lean_ctor_set(x_167, 3, x_161); +x_168 = lean_box(0); +x_169 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_167, x_168, x_14, x_15, x_16, x_17, x_18, x_19, x_158); +lean_dec(x_8); +return x_169; +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t 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; +x_170 = lean_ctor_get(x_41, 0); +x_171 = lean_ctor_get(x_41, 1); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_41); +x_172 = lean_io_get_num_heartbeats(x_171); +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_175 = x_172; +} else { + lean_dec_ref(x_172); + x_175 = lean_box(0); +} +x_176 = lean_nat_sub(x_173, x_11); +lean_dec(x_173); +if (lean_is_scalar(x_175)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { + x_177 = x_175; +} +lean_ctor_set(x_177, 0, x_170); +lean_ctor_set(x_177, 1, x_176); +x_178 = lean_st_ref_get(x_17, x_174); +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_181 = x_178; +} else { + lean_dec_ref(x_178); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_177); +lean_ctor_set(x_182, 1, x_179); +x_183 = lean_st_ref_get(x_15, x_180); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_186 = x_183; +} else { + lean_dec_ref(x_183); + x_186 = lean_box(0); +} +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(0, 2, 0); +} else { + x_187 = x_186; +} +lean_ctor_set(x_187, 0, x_182); +lean_ctor_set(x_187, 1, x_184); +x_188 = 0; +x_189 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_189, 0, x_39); +lean_ctor_set(x_189, 1, x_23); +lean_ctor_set_uint8(x_189, sizeof(void*)*2, x_188); +lean_inc(x_12); +lean_inc(x_9); +x_190 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_34); +lean_inc(x_22); +x_191 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_22); +lean_ctor_set(x_191, 2, x_187); +lean_ctor_set(x_191, 3, x_33); +lean_ctor_set(x_191, 4, x_34); +lean_ctor_set(x_191, 5, x_9); +lean_ctor_set(x_191, 6, x_190); +lean_ctor_set(x_24, 0, x_191); +x_192 = lean_ctor_get(x_29, 1); +lean_inc(x_192); +lean_dec(x_29); +x_193 = lean_io_promise_resolve(x_24, x_192, x_185); +lean_dec(x_192); +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + x_195 = x_193; +} else { + lean_dec_ref(x_193); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(0, 2, 0); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_23); +lean_ctor_set(x_196, 1, x_12); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_196); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_10); +x_198 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_198, 0, x_7); +lean_ctor_set(x_198, 1, x_22); +lean_ctor_set(x_198, 2, x_23); +lean_ctor_set(x_198, 3, x_197); +x_199 = lean_box(0); +x_200 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_198, x_199, x_14, x_15, x_16, x_17, x_18, x_19, x_194); +lean_dec(x_8); +return x_200; +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + x_201 = x_34; +} else { + lean_dec_ref(x_34); + x_201 = lean_box(0); +} +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_23); +lean_ctor_set(x_202, 1, x_10); +if (lean_is_scalar(x_201)) { + x_203 = lean_alloc_ctor(1, 1, 0); +} else { + x_203 = x_201; +} +lean_ctor_set(x_203, 0, x_202); +x_204 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_204, 0, x_7); +lean_ctor_set(x_204, 1, x_22); +lean_ctor_set(x_204, 2, x_203); +lean_ctor_set(x_204, 3, x_197); +x_205 = lean_box(0); +x_206 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_204, x_205, x_14, x_15, x_16, x_17, x_18, x_19, x_194); +lean_dec(x_8); +return x_206; +} +} +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t 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; lean_object* x_249; +x_207 = lean_ctor_get(x_24, 0); +lean_inc(x_207); +lean_dec(x_24); +lean_inc(x_10); +lean_inc(x_9); +x_208 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_9, x_10, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); +lean_dec(x_208); +x_211 = lean_ctor_get(x_209, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_209, 1); +lean_inc(x_212); +lean_dec(x_209); +x_213 = l_Lean_Core_getAndEmptyMessageLog___rarg(x_19, x_210); +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 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_214, x_215); +x_217 = lean_ctor_get(x_216, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_216, 1); +lean_inc(x_218); +lean_dec(x_216); +x_219 = lean_st_ref_get(x_19, x_218); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +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_223 = lean_io_get_num_heartbeats(x_221); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_226 = x_223; +} else { + lean_dec_ref(x_223); + x_226 = lean_box(0); +} +x_227 = lean_nat_sub(x_224, x_11); +lean_dec(x_224); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_220); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_st_ref_get(x_17, x_225); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_232 = x_229; +} else { + lean_dec_ref(x_229); + x_232 = lean_box(0); +} +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_232; +} +lean_ctor_set(x_233, 0, x_228); +lean_ctor_set(x_233, 1, x_230); +x_234 = lean_st_ref_get(x_15, x_231); +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_237 = x_234; +} else { + lean_dec_ref(x_234); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(0, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_233); +lean_ctor_set(x_238, 1, x_235); +x_239 = 0; +x_240 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_240, 0, x_217); +lean_ctor_set(x_240, 1, x_23); +lean_ctor_set_uint8(x_240, sizeof(void*)*2, x_239); +lean_inc(x_12); +lean_inc(x_9); +x_241 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_9, x_12); +lean_inc(x_212); +lean_inc(x_22); +x_242 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_22); +lean_ctor_set(x_242, 2, x_238); +lean_ctor_set(x_242, 3, x_211); +lean_ctor_set(x_242, 4, x_212); +lean_ctor_set(x_242, 5, x_9); +lean_ctor_set(x_242, 6, x_241); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_242); +x_244 = lean_ctor_get(x_207, 1); +lean_inc(x_244); +lean_dec(x_207); +x_245 = lean_io_promise_resolve(x_243, x_244, x_236); +lean_dec(x_244); +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_247 = x_245; +} else { + lean_dec_ref(x_245); + 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_23); +lean_ctor_set(x_248, 1, x_12); +x_249 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_249, 0, x_248); +if (lean_obj_tag(x_212) == 0) +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_222); +lean_dec(x_10); +x_250 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_250, 0, x_7); +lean_ctor_set(x_250, 1, x_22); +lean_ctor_set(x_250, 2, x_23); +lean_ctor_set(x_250, 3, x_249); +x_251 = lean_box(0); +x_252 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_250, x_251, x_14, x_15, x_16, x_17, x_18, x_19, x_246); +lean_dec(x_8); +return x_252; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + x_253 = x_212; +} else { + lean_dec_ref(x_212); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_222)) { + x_254 = lean_alloc_ctor(0, 2, 0); +} else { + x_254 = x_222; +} +lean_ctor_set(x_254, 0, x_23); +lean_ctor_set(x_254, 1, x_10); +if (lean_is_scalar(x_253)) { + x_255 = lean_alloc_ctor(1, 1, 0); +} else { + x_255 = x_253; +} +lean_ctor_set(x_255, 0, x_254); +x_256 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_256, 0, x_7); +lean_ctor_set(x_256, 1, x_22); +lean_ctor_set(x_256, 2, x_255); +lean_ctor_set(x_256, 3, x_249); +x_257 = lean_box(0); +x_258 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__1(x_8, x_256, x_257, x_14, x_15, x_16, x_17, x_18, x_19, x_246); +lean_dec(x_8); +return x_258; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_12); +x_20 = l_Array_unzip___rarg(x_1); +lean_dec(x_1); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_13); +x_23 = l_Lean_Elab_Term_addAutoBoundImplicits(x_22, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_24); +x_26 = l_Lean_Meta_mkForallFVars_x27(x_24, x_11, x_15, x_16, x_17, x_18, 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; lean_object* x_32; lean_object* x_33; +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 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_27, x_13, x_14, x_15, x_16, x_17, x_18, 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 = l_Lean_Elab_Term_getLevelNames___rarg(x_14, x_15, x_16, x_17, x_18, x_31); +x_33 = lean_ctor_get(x_4, 4); +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_dec(x_10); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); lean_dec(x_32); -x_55 = lean_ctor_get(x_31, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_31, 1); -lean_inc(x_56); -lean_dec(x_31); -lean_inc(x_29); -x_57 = l_Lean_Meta_getMVars(x_29, x_14, x_15, x_16, x_17, x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage(x_9); -lean_dec(x_9); -x_61 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_62 = l_Lean_MessageData_ofFormat(x_61); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_62); +x_36 = lean_box(0); +x_37 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__2(x_24, x_2, x_3, x_34, x_21, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_36, x_13, x_14, x_15, x_16, x_17, x_18, x_35); +lean_dec(x_8); +return x_37; +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (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; lean_object* x_47; lean_object* x_48; +x_39 = lean_ctor_get(x_33, 0); +lean_dec(x_39); +x_40 = lean_ctor_get(x_32, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_dec(x_32); +lean_inc(x_30); +x_42 = l_Lean_Meta_getMVars(x_30, x_15, x_16, x_17, x_18, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage(x_10); +lean_dec(x_10); +x_46 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = l_Lean_MessageData_ofFormat(x_46); +lean_ctor_set(x_33, 0, x_47); +lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); -x_64 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_58, x_63, x_12, x_13, x_14, x_15, x_16, x_17, x_59); -lean_dec(x_58); -if (lean_obj_tag(x_64) == 0) +x_48 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_43, x_33, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_43); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_box(0); -x_67 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1(x_2, x_23, x_3, x_4, x_5, x_6, x_55, x_20, x_29, x_7, x_8, x_66, x_12, x_13, x_14, x_15, x_16, x_17, x_65); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = lean_box(0); +x_51 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__2(x_24, x_2, x_3, x_40, x_21, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_50, x_13, x_14, x_15, x_16, x_17, x_18, x_49); lean_dec(x_8); -lean_dec(x_23); -lean_dec(x_2); -return x_67; +return x_51; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_55); -lean_dec(x_29); -lean_dec(x_23); -lean_dec(x_20); +uint8_t x_52; +lean_dec(x_40); +lean_dec(x_30); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -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); -x_68 = lean_ctor_get(x_64, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_64, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_70 = x_64; -} else { - lean_dec_ref(x_64); - x_70 = lean_box(0); -} -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); -} else { - x_71 = x_70; -} -lean_ctor_set(x_71, 0, x_68); -lean_ctor_set(x_71, 1, x_69); -return x_71; -} -} -} -} -else -{ -uint8_t x_72; -lean_dec(x_23); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -4507,30 +6067,289 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_25); -if (x_72 == 0) +x_52 = !lean_is_exclusive(x_48); +if (x_52 == 0) { -return x_25; +return x_48; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_25, 0); -x_74 = lean_ctor_get(x_25, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_48, 0); +x_54 = lean_ctor_get(x_48, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_48); +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; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_33); +x_56 = lean_ctor_get(x_32, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_32, 1); +lean_inc(x_57); +lean_dec(x_32); +lean_inc(x_30); +x_58 = l_Lean_Meta_getMVars(x_30, x_15, x_16, x_17, x_18, x_57); +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_61 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendindMVarErrorMessage(x_10); +lean_dec(x_10); +x_62 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = l_Lean_MessageData_ofFormat(x_62); +x_64 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_64, 0, x_63); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_65 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_59, x_64, x_13, x_14, x_15, x_16, x_17, x_18, x_60); +lean_dec(x_59); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_box(0); +x_68 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__2(x_24, x_2, x_3, x_56, x_21, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_67, x_13, x_14, x_15, x_16, x_17, x_18, x_66); +lean_dec(x_8); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_56); +lean_dec(x_30); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_69 = lean_ctor_get(x_65, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_71 = x_65; +} else { + lean_dec_ref(x_65); + 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_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_73 = !lean_is_exclusive(x_26); +if (x_73 == 0) +{ +return x_26; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_26, 0); +x_75 = lean_ctor_get(x_26, 1); +lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_25); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_dec(x_26); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_76; -lean_dec(x_20); +uint8_t x_77; +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_77 = !lean_is_exclusive(x_23); +if (x_77 == 0) +{ +return x_23; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_23, 0); +x_79 = lean_ctor_get(x_23, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_23); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +uint8_t x_20; uint8_t x_21; lean_object* x_22; +lean_dec(x_11); +x_20 = 1; +x_21 = 0; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_22 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_20, x_21, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +lean_inc(x_4); +x_24 = l_Lean_Elab_DefView_isInstance(x_4); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_box(0); +x_26 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_12, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_23); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__1; +x_28 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_29 = l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(x_12, x_27, x_28, x_21, x_21, x_15, x_16, x_17, x_18, x_23); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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_box(0); +x_33 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30, x_32, x_13, x_14, x_15, x_16, x_17, x_18, x_31); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_29); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -4546,158 +6365,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_22); -if (x_76 == 0) +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_22); +if (x_38 == 0) { return x_22; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_22, 0); -x_78 = lean_ctor_get(x_22, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_22); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { -_start: -{ -uint8_t x_19; uint8_t x_20; lean_object* x_21; -lean_dec(x_10); -x_19 = 1; -x_20 = 0; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_21 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_19, x_20, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -lean_inc(x_2); -x_23 = l_Lean_Elab_DefView_isInstance(x_2); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_24, x_12, x_13, x_14, x_15, x_16, x_17, x_22); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__1; -x_27 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -x_28 = l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(x_11, x_26, x_27, x_20, x_20, x_14, x_15, x_16, x_17, x_22); -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_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_box(0); -x_32 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29, x_31, x_12, x_13, x_14, x_15, x_16, x_17, x_30); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_33 = !lean_is_exclusive(x_28); -if (x_33 == 0) -{ -return x_28; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -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 -{ -uint8_t x_37; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_21); -if (x_37 == 0) -{ -return x_21; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_21, 0); -x_39 = lean_ctor_get(x_21, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_22, 0); +x_40 = lean_ctor_get(x_22, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_21); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_dec(x_22); +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; } } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -4710,7 +6400,7 @@ x_15 = lean_apply_9(x_3, x_14, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_13); return x_15; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1() { _start: { lean_object* x_1; @@ -4718,7 +6408,7 @@ x_1 = lean_mk_string_from_bytes("Elab", 4); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2() { _start: { lean_object* x_1; @@ -4726,17 +6416,17 @@ x_1 = lean_mk_string_from_bytes("definition", 10); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2; +x_1 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1; +x_2 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4() { _start: { lean_object* x_1; @@ -4744,16 +6434,16 @@ x_1 = lean_mk_string_from_bytes(">> type: ", 9); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4; +x_1 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6() { _start: { lean_object* x_1; @@ -4761,219 +6451,221 @@ x_1 = lean_mk_string_from_bytes("\n", 1); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6; +x_1 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_16; -x_16 = lean_ctor_get(x_1, 4); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) +lean_object* x_17; +x_17 = lean_ctor_get(x_1, 4); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_1, 5); -lean_inc(x_17); -lean_inc(x_17); -x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__3___boxed), 18, 9); -lean_closure_set(x_18, 0, x_8); -lean_closure_set(x_18, 1, x_1); -lean_closure_set(x_18, 2, x_2); -lean_closure_set(x_18, 3, x_3); -lean_closure_set(x_18, 4, x_4); -lean_closure_set(x_18, 5, x_5); -lean_closure_set(x_18, 6, x_17); -lean_closure_set(x_18, 7, x_6); -lean_closure_set(x_18, 8, x_7); -x_19 = 0; -lean_inc(x_17); -x_20 = l_Lean_mkHole(x_17, x_19); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_1, 5); +lean_inc(x_18); +lean_inc(x_18); +x_19 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__4___boxed), 19, 10); +lean_closure_set(x_19, 0, x_9); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_3); +lean_closure_set(x_19, 3, x_1); +lean_closure_set(x_19, 4, x_4); +lean_closure_set(x_19, 5, x_18); +lean_closure_set(x_19, 6, x_5); +lean_closure_set(x_19, 7, x_6); +lean_closure_set(x_19, 8, x_7); +lean_closure_set(x_19, 9, x_8); +x_20 = 0; +lean_inc(x_18); +x_21 = l_Lean_mkHole(x_18, x_20); +lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -x_21 = l_Lean_Elab_Term_elabType(x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Elab_Term_elabType(x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_22) == 0) { -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_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +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_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3; -x_25 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_unbox(x_26); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3; +x_26 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_25, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); lean_dec(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_box(0); -x_30 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4(x_22, x_17, x_18, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_28); -return x_30; +x_30 = lean_box(0); +x_31 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__5(x_23, x_18, x_19, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +return x_31; } else { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 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; 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; -x_32 = lean_ctor_get(x_25, 1); -x_33 = lean_ctor_get(x_25, 0); -lean_dec(x_33); -lean_inc(x_22); -x_34 = l_Lean_MessageData_ofExpr(x_22); -x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5; -lean_ctor_set_tag(x_25, 6); -lean_ctor_set(x_25, 1, x_34); -lean_ctor_set(x_25, 0, x_35); -x_36 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7; -x_37 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_37, 0, x_25); -lean_ctor_set(x_37, 1, x_36); -lean_inc(x_22); -x_38 = l_Lean_Expr_mvarId_x21(x_22); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_42 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_24, x_42, x_9, x_10, x_11, x_12, x_13, x_14, x_32); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); +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; +x_33 = lean_ctor_get(x_26, 1); +x_34 = lean_ctor_get(x_26, 0); +lean_dec(x_34); +lean_inc(x_23); +x_35 = l_Lean_MessageData_ofExpr(x_23); +x_36 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5; +lean_ctor_set_tag(x_26, 6); +lean_ctor_set(x_26, 1, x_35); +lean_ctor_set(x_26, 0, x_36); +x_37 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7; +x_38 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_38, 0, x_26); +lean_ctor_set(x_38, 1, x_37); +lean_inc(x_23); +x_39 = l_Lean_Expr_mvarId_x21(x_23); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_40); +x_42 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_43 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_25, x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_33); +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_43); -x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4(x_22, x_17, x_18, x_44, x_9, x_10, x_11, x_12, x_13, x_14, x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); lean_dec(x_44); -return x_46; +x_47 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__5(x_23, x_18, x_19, x_45, x_10, x_11, x_12, x_13, x_14, x_15, x_46); +lean_dec(x_45); +return x_47; } else { -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; -x_47 = lean_ctor_get(x_25, 1); -lean_inc(x_47); -lean_dec(x_25); -lean_inc(x_22); -x_48 = l_Lean_MessageData_ofExpr(x_22); -x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7; -x_52 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_inc(x_22); -x_53 = l_Lean_Expr_mvarId_x21(x_22); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_57 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_24, x_57, x_9, x_10, x_11, x_12, x_13, x_14, x_47); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); +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; +x_48 = lean_ctor_get(x_26, 1); +lean_inc(x_48); +lean_dec(x_26); +lean_inc(x_23); +x_49 = l_Lean_MessageData_ofExpr(x_23); +x_50 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +lean_inc(x_23); +x_54 = l_Lean_Expr_mvarId_x21(x_23); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_58 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_25, x_58, x_10, x_11, x_12, x_13, x_14, x_15, x_48); +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_58); -x_61 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4(x_22, x_17, x_18, x_59, x_9, x_10, x_11, x_12, x_13, x_14, x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); lean_dec(x_59); -return x_61; +x_62 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__5(x_23, x_18, x_19, x_60, x_10, x_11, x_12, x_13, x_14, x_15, x_61); +lean_dec(x_60); +return x_62; } } } else { -uint8_t x_62; +uint8_t x_63; +lean_dec(x_19); lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -x_62 = !lean_is_exclusive(x_21); -if (x_62 == 0) +x_63 = !lean_is_exclusive(x_22); +if (x_63 == 0) { -return x_21; +return x_22; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_21, 0); -x_64 = lean_ctor_get(x_21, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_22, 0); +x_65 = lean_ctor_get(x_22, 1); +lean_inc(x_65); lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_21); -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_dec(x_22); +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_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_1, 5); -lean_inc(x_66); -x_67 = lean_ctor_get(x_16, 0); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_1, 5); lean_inc(x_67); -lean_dec(x_16); +x_68 = lean_ctor_get(x_17, 0); +lean_inc(x_68); +lean_dec(x_17); +lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_67); -x_68 = l_Lean_Elab_Term_elabType(x_67, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_68) == 0) +lean_inc(x_68); +x_69 = l_Lean_Elab_Term_elabType(x_68, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +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_69, 0); lean_inc(x_70); -lean_dec(x_68); -x_71 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(x_69, x_67, x_9, x_10, x_11, x_12, x_13, x_14, x_70); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = l_Lean_Parser_Term_type; -x_74 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__3(x_8, x_1, x_2, x_3, x_4, x_5, x_66, x_6, x_7, x_73, x_69, x_9, x_10, x_11, x_12, x_13, x_14, x_72); -return x_74; +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(x_70, x_68, x_10, x_11, x_12, x_13, x_14, x_15, x_71); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = l_Lean_Parser_Term_type; +x_75 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__4(x_9, x_2, x_3, x_1, x_4, x_67, x_5, x_6, x_7, x_8, x_74, x_70, x_10, x_11, x_12, x_13, x_14, x_15, x_73); +return x_75; } else { -uint8_t x_75; +uint8_t x_76; +lean_dec(x_68); lean_dec(x_67); -lean_dec(x_66); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -4988,29 +6680,1543 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_75 = !lean_is_exclusive(x_68); -if (x_75 == 0) +x_76 = !lean_is_exclusive(x_69); +if (x_76 == 0) { -return x_68; +return x_69; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_68, 0); -x_77 = lean_ctor_get(x_68, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_69, 0); +x_78 = lean_ctor_get(x_69, 1); +lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_68); -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_dec(x_69); +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; } } } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(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, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_io_get_num_heartbeats(x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +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; lean_object* x_29; +x_22 = lean_ctor_get(x_14, 5); +x_23 = l_Lean_replaceRef(x_20, x_22); +lean_dec(x_22); +lean_ctor_set(x_14, 5, x_23); +lean_inc(x_14); +lean_inc(x_2); +x_24 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_2, x_20, x_3, x_4, x_5, x_6, x_14, x_15, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = 2; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_29 = l_Lean_Elab_Term_applyAttributesAt(x_2, x_27, x_28, x_3, x_4, x_5, x_6, x_14, x_15, x_25); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_ctor_get(x_1, 3); +lean_inc(x_31); +x_32 = l_Lean_Syntax_getArgs(x_31); +lean_dec(x_31); +lean_inc(x_2); +x_33 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6), 16, 8); +lean_closure_set(x_33, 0, x_1); +lean_closure_set(x_33, 1, x_7); +lean_closure_set(x_33, 2, x_2); +lean_closure_set(x_33, 3, x_8); +lean_closure_set(x_33, 4, x_9); +lean_closure_set(x_33, 5, x_18); +lean_closure_set(x_33, 6, x_10); +lean_closure_set(x_33, 7, x_11); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBindersEx___rarg), 9, 2); +lean_closure_set(x_34, 0, x_32); +lean_closure_set(x_34, 1, x_33); +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); +lean_closure_set(x_35, 0, x_12); +lean_closure_set(x_35, 1, x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_36, 0, x_35); +x_37 = l_Lean_Elab_Term_withDeclName___rarg(x_2, x_36, x_3, x_4, x_5, x_6, x_14, x_15, x_30); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_14); +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_29); +if (x_38 == 0) +{ +return x_29; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_29, 0); +x_40 = lean_ctor_get(x_29, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_29); +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_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; uint8_t 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; uint8_t x_62; lean_object* x_63; +x_42 = lean_ctor_get(x_14, 0); +x_43 = lean_ctor_get(x_14, 1); +x_44 = lean_ctor_get(x_14, 2); +x_45 = lean_ctor_get(x_14, 3); +x_46 = lean_ctor_get(x_14, 4); +x_47 = lean_ctor_get(x_14, 5); +x_48 = lean_ctor_get(x_14, 6); +x_49 = lean_ctor_get(x_14, 7); +x_50 = lean_ctor_get(x_14, 8); +x_51 = lean_ctor_get(x_14, 9); +x_52 = lean_ctor_get(x_14, 10); +x_53 = lean_ctor_get_uint8(x_14, sizeof(void*)*12); +x_54 = lean_ctor_get(x_14, 11); +x_55 = lean_ctor_get_uint8(x_14, sizeof(void*)*12 + 1); +lean_inc(x_54); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_14); +x_56 = l_Lean_replaceRef(x_20, x_47); +lean_dec(x_47); +x_57 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_57, 0, x_42); +lean_ctor_set(x_57, 1, x_43); +lean_ctor_set(x_57, 2, x_44); +lean_ctor_set(x_57, 3, x_45); +lean_ctor_set(x_57, 4, x_46); +lean_ctor_set(x_57, 5, x_56); +lean_ctor_set(x_57, 6, x_48); +lean_ctor_set(x_57, 7, x_49); +lean_ctor_set(x_57, 8, x_50); +lean_ctor_set(x_57, 9, x_51); +lean_ctor_set(x_57, 10, x_52); +lean_ctor_set(x_57, 11, x_54); +lean_ctor_set_uint8(x_57, sizeof(void*)*12, x_53); +lean_ctor_set_uint8(x_57, sizeof(void*)*12 + 1, x_55); +lean_inc(x_57); +lean_inc(x_2); +x_58 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_2, x_20, x_3, x_4, x_5, x_6, x_57, x_15, x_19); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_ctor_get(x_1, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = 2; +lean_inc(x_15); +lean_inc(x_57); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_63 = l_Lean_Elab_Term_applyAttributesAt(x_2, x_61, x_62, x_3, x_4, x_5, x_6, x_57, x_15, x_59); +if (lean_obj_tag(x_63) == 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 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_ctor_get(x_1, 3); +lean_inc(x_65); +x_66 = l_Lean_Syntax_getArgs(x_65); +lean_dec(x_65); +lean_inc(x_2); +x_67 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6), 16, 8); +lean_closure_set(x_67, 0, x_1); +lean_closure_set(x_67, 1, x_7); +lean_closure_set(x_67, 2, x_2); +lean_closure_set(x_67, 3, x_8); +lean_closure_set(x_67, 4, x_9); +lean_closure_set(x_67, 5, x_18); +lean_closure_set(x_67, 6, x_10); +lean_closure_set(x_67, 7, x_11); +x_68 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBindersEx___rarg), 9, 2); +lean_closure_set(x_68, 0, x_66); +lean_closure_set(x_68, 1, x_67); +x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); +lean_closure_set(x_69, 0, x_12); +lean_closure_set(x_69, 1, x_68); +x_70 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_70, 0, x_69); +x_71 = l_Lean_Elab_Term_withDeclName___rarg(x_2, x_70, x_3, x_4, x_5, x_6, x_57, x_15, x_64); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_57); +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_72 = lean_ctor_get(x_63, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_63, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_74 = x_63; +} else { + lean_dec_ref(x_63); + x_74 = lean_box(0); +} +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_74; +} +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__7(x_2, x_6, x_9, x_10, x_11, x_12, x_5, x_8, x_4, x_3, x_1, x_7, x_17, x_14, x_15, x_16); +return x_18; +} +else +{ +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; uint64_t x_26; lean_object* x_27; uint8_t x_28; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_13, 0); +lean_inc(x_19); +lean_dec(x_13); +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_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_st_ref_set(x_15, x_22, x_16); +lean_dec(x_15); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_uint64_of_nat(x_25); +lean_dec(x_25); +x_27 = lean_io_add_heartbeats(x_26, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_20); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__7(x_2, x_6, x_9, x_10, x_11, x_12, x_5, x_8, x_4, x_3, x_1, x_7, x_17, x_14, x_15, x_16); +return x_18; +} +else +{ +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; uint64_t x_26; lean_object* x_27; uint8_t x_28; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_13, 0); +lean_inc(x_19); +lean_dec(x_13); +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_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_st_ref_set(x_15, x_22, x_16); +lean_dec(x_15); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_uint64_of_nat(x_25); +lean_dec(x_25); +x_27 = lean_io_add_heartbeats(x_26, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_20); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_18, x_15, x_16, x_17); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +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 +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_1); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_1, 0); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 1); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +lean_dec(x_31); +lean_ctor_set(x_29, 1, x_32); +x_33 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_1, x_15, x_16, x_17); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_29); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_1, 0, x_45); +x_46 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_1, x_15, x_16, x_17); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 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; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_46, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_53 = x_46; +} else { + lean_dec_ref(x_46); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +} +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_1, 0); +lean_inc(x_55); +lean_dec(x_1); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +lean_dec(x_57); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_61, x_15, x_16, x_17); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +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; +} else { + lean_dec_ref(x_62); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 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; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; +} else { + lean_dec_ref(x_62); + 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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17, x_12, x_13, x_14, x_15, x_16); +return x_18; +} +else +{ +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_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_set(x_13, x_21, x_16); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23, x_12, x_13, x_14, x_15, x_24); +lean_dec(x_23); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__7(x_2, x_6, x_9, x_10, x_11, x_12, x_5, x_8, x_4, x_3, x_1, x_7, x_17, x_14, x_15, x_16); +return x_18; +} +else +{ +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; uint64_t x_26; lean_object* x_27; uint8_t x_28; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_13, 0); +lean_inc(x_19); +lean_dec(x_13); +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_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_st_ref_set(x_15, x_22, x_16); +lean_dec(x_15); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_uint64_of_nat(x_25); +lean_dec(x_25); +x_27 = lean_io_add_heartbeats(x_26, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_20); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__7(x_2, x_6, x_9, x_10, x_11, x_12, x_5, x_8, x_4, x_3, x_1, x_7, x_17, x_14, x_15, x_16); +return x_18; +} +else +{ +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; uint64_t x_26; lean_object* x_27; uint8_t x_28; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_13, 0); +lean_inc(x_19); +lean_dec(x_13); +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_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_st_ref_set(x_15, x_22, x_16); +lean_dec(x_15); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_uint64_of_nat(x_25); +lean_dec(x_25); +x_27 = lean_io_add_heartbeats(x_26, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_20); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, 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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_18, x_15, x_16, x_17); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +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 +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_1); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_1, 0); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 1); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +lean_dec(x_31); +lean_ctor_set(x_29, 1, x_32); +x_33 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_1, x_15, x_16, x_17); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_29); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_1, 0, x_45); +x_46 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_1, x_15, x_16, x_17); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 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; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_46, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_53 = x_46; +} else { + lean_dec_ref(x_46); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +} +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_1, 0); +lean_inc(x_55); +lean_dec(x_1); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +lean_dec(x_57); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_13, x_14, x_61, x_15, x_16, x_17); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +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; +} else { + lean_dec_ref(x_62); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 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; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; +} else { + lean_dec_ref(x_62); + 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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_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: +{ +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__1(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17, x_12, x_13, x_14, x_15, x_16); +return x_18; +} +else +{ +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_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_set(x_13, x_21, x_16); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__1(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23, x_12, x_13, x_14, x_15, x_24); +lean_dec(x_23); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, 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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_12, x_18, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +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 +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_1); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_1, 0); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 1); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +lean_dec(x_31); +lean_ctor_set(x_29, 1, x_32); +x_33 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_12, x_1, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_29); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_1, 0, x_45); +x_46 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_12, x_1, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 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; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_46, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_53 = x_46; +} else { + lean_dec_ref(x_46); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +} +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_1, 0); +lean_inc(x_55); +lean_dec(x_1); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +lean_dec(x_57); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_11, x_12, x_61, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +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; +} else { + lean_dec_ref(x_62); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 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; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; +} else { + lean_dec_ref(x_62); + 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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, 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: +{ +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_18; +} +else +{ +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_19 = lean_ctor_get(x_9, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_set(x_11, x_21, x_16); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +lean_dec(x_23); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___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, uint8_t 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) { +_start: +{ +lean_object* x_22; +lean_inc(x_11); +x_22 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_12, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (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_22, 0); +x_25 = lean_array_push(x_11, x_24); +x_26 = lean_box(x_13); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_8); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_9); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_10); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_22, 0, x_31); +return x_22; +} +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; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_32 = lean_ctor_get(x_22, 0); +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_22); +x_34 = lean_array_push(x_11, x_32); +x_35 = lean_box(x_13); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_8); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_9); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_10); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, 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_33); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_42 = !lean_is_exclusive(x_22); +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_22, 0); +x_44 = lean_ctor_get(x_22, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_22); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13(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, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -5019,6 +8225,7 @@ if (x_13 == 0) { lean_object* x_14; lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5031,703 +8238,7469 @@ return x_14; } else { -lean_object* x_15; uint8_t x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_25; lean_object* x_33; lean_object* x_34; uint8_t x_35; x_15 = lean_array_uget(x_2, x_4); -x_16 = !lean_is_exclusive(x_5); -if (x_16 == 0) -{ -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_5, 0); -x_18 = lean_ctor_get(x_5, 1); -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -x_21 = lean_ctor_get(x_17, 2); -lean_inc(x_21); -x_22 = lean_nat_dec_lt(x_20, x_21); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_5); -lean_ctor_set(x_23, 1, x_12); -return x_23; -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_17); -if (x_24 == 0) -{ -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; uint8_t 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; uint8_t x_53; lean_object* x_54; -x_25 = lean_ctor_get(x_17, 2); -lean_dec(x_25); -x_26 = lean_ctor_get(x_17, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_17, 0); -lean_dec(x_27); -x_28 = lean_array_fget(x_19, x_20); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_20, x_29); -lean_dec(x_20); -lean_ctor_set(x_17, 1, x_30); -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_28, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_28, 2); +x_33 = lean_ctor_get(x_5, 1); lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_ctor_get(x_15, 0); +x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_10, 0); -x_36 = lean_ctor_get(x_10, 1); -x_37 = lean_ctor_get(x_10, 2); -x_38 = lean_ctor_get(x_10, 3); -x_39 = lean_ctor_get(x_10, 4); -x_40 = lean_ctor_get(x_10, 5); -x_41 = lean_ctor_get(x_10, 6); -x_42 = lean_ctor_get(x_10, 7); -x_43 = lean_ctor_get(x_10, 8); -x_44 = lean_ctor_get(x_10, 9); -x_45 = lean_ctor_get(x_10, 10); -x_46 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_47 = l_Lean_replaceRef(x_34, x_40); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -x_48 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_48, 0, x_35); -lean_ctor_set(x_48, 1, x_36); -lean_ctor_set(x_48, 2, x_37); -lean_ctor_set(x_48, 3, x_38); -lean_ctor_set(x_48, 4, x_39); -lean_ctor_set(x_48, 5, x_47); -lean_ctor_set(x_48, 6, x_41); -lean_ctor_set(x_48, 7, x_42); -lean_ctor_set(x_48, 8, x_43); -lean_ctor_set(x_48, 9, x_44); -lean_ctor_set(x_48, 10, x_45); -lean_ctor_set_uint8(x_48, sizeof(void*)*11, x_46); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_5); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_37 = lean_ctor_get(x_34, 1); +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_5, 0); +x_40 = lean_ctor_get(x_5, 1); +lean_dec(x_40); +x_41 = !lean_is_exclusive(x_33); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_33, 0); +x_43 = lean_ctor_get(x_33, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_37); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_45 = lean_ctor_get(x_37, 0); +x_46 = lean_ctor_get(x_37, 1); +x_47 = lean_ctor_get(x_38, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_38, 1); lean_inc(x_48); -lean_inc(x_34); -lean_inc(x_32); -x_49 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_32, x_34, x_6, x_7, x_8, x_9, x_48, x_11, x_12); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); +x_49 = lean_ctor_get(x_38, 2); +lean_inc(x_49); +x_50 = lean_nat_dec_lt(x_48, x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_dec(x_49); -x_51 = lean_ctor_get(x_15, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -x_53 = 2; -lean_inc(x_11); -lean_inc(x_48); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_32); -x_54 = l_Lean_Elab_Term_applyAttributesAt(x_32, x_52, x_53, x_6, x_7, x_8, x_9, x_48, x_11, x_50); -if (lean_obj_tag(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; lean_object* x_61; lean_object* x_62; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_ctor_get(x_15, 3); -lean_inc(x_56); -x_57 = l_Lean_Syntax_getArgs(x_56); -lean_dec(x_56); -lean_inc(x_1); -lean_inc(x_18); -lean_inc(x_32); -x_58 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5), 15, 7); -lean_closure_set(x_58, 0, x_15); -lean_closure_set(x_58, 1, x_34); -lean_closure_set(x_58, 2, x_51); -lean_closure_set(x_58, 3, x_31); -lean_closure_set(x_58, 4, x_32); -lean_closure_set(x_58, 5, x_18); -lean_closure_set(x_58, 6, x_1); -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBindersEx___rarg), 9, 2); -lean_closure_set(x_59, 0, x_57); -lean_closure_set(x_59, 1, x_58); -x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_60, 0, x_33); -lean_closure_set(x_60, 1, x_59); -x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_61, 0, x_60); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_62 = l_Lean_Elab_Term_withDeclName___rarg(x_32, x_61, x_6, x_7, x_8, x_9, x_48, x_11, x_55); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; size_t x_66; size_t x_67; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_array_push(x_18, x_63); -lean_ctor_set(x_5, 1, x_65); -x_66 = 1; -x_67 = lean_usize_add(x_4, x_66); -x_4 = x_67; -x_12 = x_64; -goto _start; -} -else -{ -uint8_t x_69; -lean_dec(x_17); -lean_free_object(x_5); -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_69 = !lean_is_exclusive(x_62); -if (x_69 == 0) -{ -return x_62; -} -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); -return x_72; -} -} -} -else -{ -uint8_t x_73; -lean_dec(x_51); lean_dec(x_48); -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_17); -lean_free_object(x_5); -lean_dec(x_18); +lean_dec(x_47); lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_73 = !lean_is_exclusive(x_54); +x_51 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_51, 0, x_5); +x_16 = x_51; +x_17 = x_12; +goto block_24; +} +else +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_38); +if (x_52 == 0) +{ +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; uint8_t x_62; +x_53 = lean_ctor_get(x_38, 2); +lean_dec(x_53); +x_54 = lean_ctor_get(x_38, 1); +lean_dec(x_54); +x_55 = lean_ctor_get(x_38, 0); +lean_dec(x_55); +x_56 = lean_array_fget(x_47, x_48); +x_57 = lean_unsigned_to_nat(1u); +x_58 = lean_nat_add(x_48, x_57); +lean_dec(x_48); +lean_ctor_set(x_38, 1, x_58); +x_59 = lean_ctor_get(x_42, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_42, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_42, 2); +lean_inc(x_61); +x_62 = lean_nat_dec_lt(x_60, x_61); +if (x_62 == 0) +{ +lean_object* x_63; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_56); +lean_dec(x_15); +x_63 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_63, 0, x_5); +x_16 = x_63; +x_17 = x_12; +goto block_24; +} +else +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_42); +if (x_64 == 0) +{ +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; uint8_t x_73; +x_65 = lean_ctor_get(x_42, 2); +lean_dec(x_65); +x_66 = lean_ctor_get(x_42, 1); +lean_dec(x_66); +x_67 = lean_ctor_get(x_42, 0); +lean_dec(x_67); +x_68 = lean_array_fget(x_59, x_60); +x_69 = lean_nat_add(x_60, x_57); +lean_dec(x_60); +lean_ctor_set(x_42, 1, x_69); +x_70 = lean_ctor_get(x_39, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_39, 1); +lean_inc(x_71); +x_72 = lean_ctor_get(x_39, 2); +lean_inc(x_72); +x_73 = lean_nat_dec_lt(x_71, x_72); if (x_73 == 0) { -return x_54; +lean_object* x_74; +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_56); +lean_dec(x_15); +x_74 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_74, 0, x_5); +x_16 = x_74; +x_17 = x_12; +goto block_24; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_54, 0); -x_75 = lean_ctor_get(x_54, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_54); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -else +uint8_t x_75; +lean_free_object(x_37); +lean_free_object(x_33); +lean_free_object(x_5); +lean_free_object(x_34); +x_75 = !lean_is_exclusive(x_39); +if (x_75 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 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; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; -lean_dec(x_17); -x_77 = lean_array_fget(x_19, x_20); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_20, x_78); -lean_dec(x_20); -x_80 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_80, 0, x_19); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set(x_80, 2, x_21); -x_81 = lean_ctor_get(x_77, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_77, 1); -lean_inc(x_82); -x_83 = lean_ctor_get(x_77, 2); -lean_inc(x_83); +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_76 = lean_ctor_get(x_39, 2); +lean_dec(x_76); +x_77 = lean_ctor_get(x_39, 1); lean_dec(x_77); -x_84 = lean_ctor_get(x_15, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_10, 0); -x_86 = lean_ctor_get(x_10, 1); -x_87 = lean_ctor_get(x_10, 2); -x_88 = lean_ctor_get(x_10, 3); -x_89 = lean_ctor_get(x_10, 4); -x_90 = lean_ctor_get(x_10, 5); -x_91 = lean_ctor_get(x_10, 6); -x_92 = lean_ctor_get(x_10, 7); -x_93 = lean_ctor_get(x_10, 8); -x_94 = lean_ctor_get(x_10, 9); -x_95 = lean_ctor_get(x_10, 10); -x_96 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_97 = l_Lean_replaceRef(x_84, x_90); -lean_inc(x_95); -lean_inc(x_94); +x_78 = lean_ctor_get(x_39, 0); +lean_dec(x_78); +x_79 = lean_array_fget(x_70, x_71); +x_80 = lean_nat_add(x_71, x_57); +lean_dec(x_71); +lean_ctor_set(x_39, 1, x_80); +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_79, 2); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = lean_ctor_get(x_15, 6); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; uint8_t x_87; lean_object* x_88; +x_86 = lean_box(0); +x_87 = lean_unbox(x_46); +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_88 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_84, x_87, x_86, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; +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_16 = x_89; +x_17 = x_90; +goto block_24; +} +else +{ +uint8_t x_91; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_88); +if (x_91 == 0) +{ +return x_88; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_88, 0); +x_93 = lean_ctor_get(x_88, 1); lean_inc(x_93); lean_inc(x_92); -lean_inc(x_91); -lean_inc(x_89); -lean_inc(x_88); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); -x_98 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_98, 0, x_85); -lean_ctor_set(x_98, 1, x_86); -lean_ctor_set(x_98, 2, x_87); -lean_ctor_set(x_98, 3, x_88); -lean_ctor_set(x_98, 4, x_89); -lean_ctor_set(x_98, 5, x_97); -lean_ctor_set(x_98, 6, x_91); -lean_ctor_set(x_98, 7, x_92); -lean_ctor_set(x_98, 8, x_93); -lean_ctor_set(x_98, 9, x_94); -lean_ctor_set(x_98, 10, x_95); -lean_ctor_set_uint8(x_98, sizeof(void*)*11, x_96); -lean_inc(x_98); -lean_inc(x_84); -lean_inc(x_82); -x_99 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_82, x_84, x_6, x_7, x_8, x_9, x_98, x_11, x_12); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = lean_ctor_get(x_15, 1); +lean_dec(x_88); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_85, 0); +lean_inc(x_95); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + x_96 = x_85; +} else { + lean_dec_ref(x_85); + x_96 = lean_box(0); +} +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +uint8_t x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_46); +x_98 = 0; +x_99 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_100 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_84, x_98, x_99, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_100, 0); lean_inc(x_101); -x_102 = lean_ctor_get(x_101, 1); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_103 = 2; -lean_inc(x_11); -lean_inc(x_98); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_82); -x_104 = l_Lean_Elab_Term_applyAttributesAt(x_82, x_102, x_103, x_6, x_7, x_8, x_9, x_98, x_11, x_100); -if (lean_obj_tag(x_104) == 0) +lean_dec(x_100); +x_16 = x_101; +x_17 = x_102; +goto block_24; +} +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; lean_object* x_111; lean_object* x_112; -x_105 = lean_ctor_get(x_104, 1); +uint8_t x_103; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_103 = !lean_is_exclusive(x_100); +if (x_103 == 0) +{ +return x_100; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_100, 0); +x_105 = lean_ctor_get(x_100, 1); lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_ctor_get(x_15, 3); -lean_inc(x_106); -x_107 = l_Lean_Syntax_getArgs(x_106); -lean_dec(x_106); -lean_inc(x_1); -lean_inc(x_18); -lean_inc(x_82); -x_108 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5), 15, 7); -lean_closure_set(x_108, 0, x_15); -lean_closure_set(x_108, 1, x_84); -lean_closure_set(x_108, 2, x_101); -lean_closure_set(x_108, 3, x_81); -lean_closure_set(x_108, 4, x_82); -lean_closure_set(x_108, 5, x_18); -lean_closure_set(x_108, 6, x_1); -x_109 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBindersEx___rarg), 9, 2); -lean_closure_set(x_109, 0, x_107); -lean_closure_set(x_109, 1, x_108); -x_110 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_110, 0, x_83); -lean_closure_set(x_110, 1, x_109); -x_111 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_111, 0, x_110); +lean_inc(x_104); +lean_dec(x_100); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_107 = lean_ctor_get(x_97, 0); +lean_inc(x_107); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_108 = x_97; +} else { + lean_dec_ref(x_97); + x_108 = lean_box(0); +} +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = l_Lean_Language_SnapshotTask_get___rarg(x_109); +if (lean_obj_tag(x_110) == 0) +{ +uint8_t x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_108); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_46); +x_111 = 0; +x_112 = lean_box(0); lean_inc(x_11); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_112 = l_Lean_Elab_Term_withDeclName___rarg(x_82, x_111, x_6, x_7, x_8, x_9, x_98, x_11, x_105); -if (lean_obj_tag(x_112) == 0) +lean_inc(x_1); +x_113 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_84, x_111, x_112, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; size_t x_116; size_t x_117; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); -lean_dec(x_112); -x_115 = lean_array_push(x_18, x_113); -lean_ctor_set(x_5, 1, x_115); -lean_ctor_set(x_5, 0, x_80); -x_116 = 1; -x_117 = lean_usize_add(x_4, x_116); -x_4 = x_117; -x_12 = x_114; -goto _start; +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_16 = x_114; +x_17 = x_115; +goto block_24; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_80); -lean_free_object(x_5); -lean_dec(x_18); +uint8_t x_116; lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_119 = lean_ctor_get(x_112, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_112, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_121 = x_112; -} else { - lean_dec_ref(x_112); - x_121 = lean_box(0); +x_116 = !lean_is_exclusive(x_113); +if (x_116 == 0) +{ +return x_113; } -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_121; +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_113, 0); +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_113); +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; } -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -return x_122; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_101); -lean_dec(x_98); -lean_dec(x_84); -lean_dec(x_83); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_free_object(x_5); -lean_dec(x_18); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_123 = lean_ctor_get(x_104, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_104, 1); +uint8_t x_120; +x_120 = !lean_is_exclusive(x_110); +if (x_120 == 0) +{ +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; uint8_t x_130; +x_121 = lean_ctor_get(x_110, 0); +x_122 = lean_ctor_get(x_15, 5); +lean_inc(x_122); +lean_inc(x_68); +lean_inc(x_122); +x_123 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_122, x_68, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_125 = x_104; +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; } else { - lean_dec_ref(x_104); - x_125 = lean_box(0); + lean_dec_ref(x_123); + x_126 = lean_box(0); } -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_ctor_get(x_124, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_124, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_129 = x_124; } else { - x_126 = x_125; + lean_dec_ref(x_124); + x_129 = lean_box(0); +} +x_130 = !lean_is_exclusive(x_121); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; uint8_t x_210; +x_131 = lean_ctor_get(x_121, 1); +x_132 = lean_ctor_get(x_121, 2); +x_133 = lean_ctor_get(x_121, 3); +x_134 = lean_ctor_get(x_121, 4); +x_135 = lean_ctor_get(x_121, 5); +x_136 = lean_ctor_get(x_121, 6); +lean_inc(x_56); +lean_inc(x_122); +x_137 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_122, x_56); +lean_inc(x_122); +lean_inc(x_128); +lean_inc(x_132); +lean_inc(x_131); +lean_ctor_set(x_121, 6, x_137); +lean_ctor_set(x_121, 5, x_122); +lean_ctor_set(x_121, 4, x_128); +lean_ctor_set(x_121, 3, x_127); +x_138 = lean_ctor_get(x_95, 1); +lean_inc(x_138); +lean_dec(x_95); +x_139 = lean_io_promise_resolve(x_110, x_138, x_125); +lean_dec(x_138); +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_141 = x_139; +} else { + lean_dec_ref(x_139); + x_141 = lean_box(0); +} +x_142 = lean_ctor_get(x_10, 2); +lean_inc(x_142); +x_210 = lean_unbox(x_46); +if (x_210 == 0) +{ +uint8_t x_211; +lean_dec(x_142); +lean_dec(x_135); +lean_dec(x_122); +x_211 = 0; +x_143 = x_211; +goto block_209; +} +else +{ +lean_object* x_212; uint8_t x_213; +x_212 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_142, x_122, x_135); +lean_dec(x_142); +x_213 = lean_unbox(x_212); +lean_dec(x_212); +x_143 = x_213; +goto block_209; +} +block_209: +{ +lean_object* x_144; lean_object* x_153; +if (lean_obj_tag(x_128) == 0) +{ +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_46); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_84; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_84; +goto block_164; +} +} +else +{ +uint8_t x_165; +x_165 = !lean_is_exclusive(x_128); +if (x_165 == 0) +{ +lean_object* x_166; uint8_t x_167; +x_166 = lean_ctor_get(x_128, 0); +lean_dec(x_166); +x_167 = lean_unbox(x_46); +lean_dec(x_46); +if (x_167 == 0) +{ +lean_object* x_168; +lean_dec(x_134); +lean_dec(x_133); +lean_inc(x_68); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_84); +lean_ctor_set(x_168, 1, x_68); +lean_ctor_set(x_128, 0, x_168); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_128; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_128; +goto block_164; +} +} +else +{ +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_169; +lean_dec(x_134); +lean_inc(x_68); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_84); +lean_ctor_set(x_169, 1, x_68); +lean_ctor_set(x_128, 0, x_169); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_128; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_128; +goto block_164; +} +} +else +{ +lean_free_object(x_128); +if (lean_obj_tag(x_134) == 0) +{ +uint8_t x_170; +x_170 = !lean_is_exclusive(x_133); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_133, 0); +lean_dec(x_171); +lean_inc(x_68); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_84); +lean_ctor_set(x_172, 1, x_68); +lean_ctor_set(x_133, 0, x_172); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_133; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_133; +goto block_164; +} +} +else +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_133); +lean_inc(x_68); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_84); +lean_ctor_set(x_173, 1, x_68); +x_174 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_174, 0, x_173); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_174; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_174; +goto block_164; +} +} +} +else +{ +uint8_t x_175; +x_175 = !lean_is_exclusive(x_133); +if (x_175 == 0) +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_134); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_177 = lean_ctor_get(x_133, 0); +x_178 = lean_ctor_get(x_134, 0); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +lean_ctor_set(x_134, 0, x_179); +lean_inc(x_68); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_134); +lean_ctor_set(x_180, 1, x_68); +lean_ctor_set(x_133, 0, x_180); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_133; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_133; +goto block_164; +} +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_181 = lean_ctor_get(x_133, 0); +x_182 = lean_ctor_get(x_134, 0); +lean_inc(x_182); +lean_dec(x_134); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +x_184 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_184, 0, x_183); +lean_inc(x_68); +x_185 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_68); +lean_ctor_set(x_133, 0, x_185); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_133; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_133; +goto block_164; +} +} +} +else +{ +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; +x_186 = lean_ctor_get(x_133, 0); +lean_inc(x_186); +lean_dec(x_133); +x_187 = lean_ctor_get(x_134, 0); +lean_inc(x_187); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + x_188 = x_134; +} else { + lean_dec_ref(x_134); + x_188 = lean_box(0); +} +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_187); +if (lean_is_scalar(x_188)) { + x_190 = lean_alloc_ctor(1, 1, 0); +} else { + x_190 = x_188; +} +lean_ctor_set(x_190, 0, x_189); +lean_inc(x_68); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_68); +x_192 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_192, 0, x_191); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_192; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_192; +goto block_164; +} } -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -return x_126; } } } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_127 = lean_ctor_get(x_5, 0); -x_128 = lean_ctor_get(x_5, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_5); -x_129 = lean_ctor_get(x_127, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_130); -x_131 = lean_ctor_get(x_127, 2); -lean_inc(x_131); -x_132 = lean_nat_dec_lt(x_130, x_131); -if (x_132 == 0) +uint8_t x_193; +lean_dec(x_128); +x_193 = lean_unbox(x_46); +lean_dec(x_46); +if (x_193 == 0) { -lean_object* x_133; lean_object* x_134; -lean_dec(x_131); -lean_dec(x_130); +lean_object* x_194; lean_object* x_195; +lean_dec(x_134); +lean_dec(x_133); +lean_inc(x_68); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_84); +lean_ctor_set(x_194, 1, x_68); +x_195 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_195, 0, x_194); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_195; +goto block_152; +} +else +{ +lean_dec(x_141); lean_dec(x_129); -lean_dec(x_15); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_195; +goto block_164; +} +} +else +{ +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_196; lean_object* x_197; +lean_dec(x_134); +lean_inc(x_68); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_84); +lean_ctor_set(x_196, 1, x_68); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_196); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_197; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_197; +goto block_164; +} +} +else +{ +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + x_198 = x_133; +} else { + lean_dec_ref(x_133); + x_198 = lean_box(0); +} +lean_inc(x_68); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_84); +lean_ctor_set(x_199, 1, x_68); +if (lean_is_scalar(x_198)) { + x_200 = lean_alloc_ctor(1, 1, 0); +} else { + x_200 = x_198; +} +lean_ctor_set(x_200, 0, x_199); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_200; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_200; +goto block_164; +} +} +else +{ +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_201 = lean_ctor_get(x_133, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + x_202 = x_133; +} else { + lean_dec_ref(x_133); + x_202 = lean_box(0); +} +x_203 = lean_ctor_get(x_134, 0); +lean_inc(x_203); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + x_204 = x_134; +} else { + lean_dec_ref(x_134); + x_204 = lean_box(0); +} +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_201); +lean_ctor_set(x_205, 1, x_203); +if (lean_is_scalar(x_204)) { + x_206 = lean_alloc_ctor(1, 1, 0); +} else { + x_206 = x_204; +} +lean_ctor_set(x_206, 0, x_205); +lean_inc(x_68); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_68); +if (lean_is_scalar(x_202)) { + x_208 = lean_alloc_ctor(1, 1, 0); +} else { + x_208 = x_202; +} +lean_ctor_set(x_208, 0, x_207); +if (x_143 == 0) +{ +lean_dec(x_136); +lean_dec(x_126); +x_144 = x_208; +goto block_152; +} +else +{ +lean_dec(x_141); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_153 = x_208; +goto block_164; +} +} +} +} +} +} +block_152: +{ +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_inc(x_56); +if (lean_is_scalar(x_141)) { + x_145 = lean_alloc_ctor(0, 2, 0); +} else { + x_145 = x_141; +} +lean_ctor_set(x_145, 0, x_84); +lean_ctor_set(x_145, 1, x_56); +if (lean_is_scalar(x_108)) { + x_146 = lean_alloc_ctor(1, 1, 0); +} else { + x_146 = x_108; +} +lean_ctor_set(x_146, 0, x_145); +lean_inc(x_15); +x_147 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_147, 0, x_15); +lean_ctor_set(x_147, 1, x_131); +lean_ctor_set(x_147, 2, x_144); +lean_ctor_set(x_147, 3, x_146); +if (lean_is_scalar(x_129)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_129; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_132); +if (lean_is_scalar(x_96)) { + x_149 = lean_alloc_ctor(1, 1, 0); +} else { + x_149 = x_96; +} +lean_ctor_set(x_149, 0, x_148); +x_150 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_151 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_149, x_143, x_150, x_6, x_7, x_8, x_9, x_10, x_11, x_140); +x_25 = x_151; +goto block_32; +} +block_164: +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_154 = lean_box(0); +if (lean_is_scalar(x_126)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_126; +} +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_136); +x_156 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_156, 0, x_155); +lean_inc(x_56); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_56); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_157); +lean_inc(x_15); +x_159 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_159, 0, x_15); +lean_ctor_set(x_159, 1, x_131); +lean_ctor_set(x_159, 2, x_153); +lean_ctor_set(x_159, 3, x_158); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_132); +x_161 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_161, 0, x_160); +x_162 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_163 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_161, x_143, x_162, x_6, x_7, x_8, x_9, x_10, x_11, x_140); +x_25 = x_163; +goto block_32; +} +} +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; uint8_t x_268; +x_214 = lean_ctor_get(x_121, 0); +x_215 = lean_ctor_get(x_121, 1); +x_216 = lean_ctor_get(x_121, 2); +x_217 = lean_ctor_get(x_121, 3); +x_218 = lean_ctor_get(x_121, 4); +x_219 = lean_ctor_get(x_121, 5); +x_220 = lean_ctor_get(x_121, 6); +lean_inc(x_220); +lean_inc(x_219); +lean_inc(x_218); +lean_inc(x_217); +lean_inc(x_216); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_121); +lean_inc(x_56); +lean_inc(x_122); +x_221 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_122, x_56); +lean_inc(x_122); +lean_inc(x_128); +lean_inc(x_216); +lean_inc(x_215); +x_222 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_222, 0, x_214); +lean_ctor_set(x_222, 1, x_215); +lean_ctor_set(x_222, 2, x_216); +lean_ctor_set(x_222, 3, x_127); +lean_ctor_set(x_222, 4, x_128); +lean_ctor_set(x_222, 5, x_122); +lean_ctor_set(x_222, 6, x_221); +lean_ctor_set(x_110, 0, x_222); +x_223 = lean_ctor_get(x_95, 1); +lean_inc(x_223); +lean_dec(x_95); +x_224 = lean_io_promise_resolve(x_110, x_223, x_125); +lean_dec(x_223); +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_226 = x_224; +} else { + lean_dec_ref(x_224); + x_226 = lean_box(0); +} +x_227 = lean_ctor_get(x_10, 2); +lean_inc(x_227); +x_268 = lean_unbox(x_46); +if (x_268 == 0) +{ +uint8_t x_269; +lean_dec(x_227); +lean_dec(x_219); +lean_dec(x_122); +x_269 = 0; +x_228 = x_269; +goto block_267; +} +else +{ +lean_object* x_270; uint8_t x_271; +x_270 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_227, x_122, x_219); +lean_dec(x_227); +x_271 = lean_unbox(x_270); +lean_dec(x_270); +x_228 = x_271; +goto block_267; +} +block_267: +{ +lean_object* x_229; lean_object* x_238; +if (lean_obj_tag(x_128) == 0) +{ +lean_dec(x_218); +lean_dec(x_217); +lean_dec(x_46); +if (x_228 == 0) +{ +lean_dec(x_220); +lean_dec(x_126); +x_229 = x_84; +goto block_237; +} +else +{ +lean_dec(x_226); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_238 = x_84; +goto block_249; +} +} +else +{ +lean_object* x_250; uint8_t x_251; +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + x_250 = x_128; +} else { + lean_dec_ref(x_128); + x_250 = lean_box(0); +} +x_251 = lean_unbox(x_46); +lean_dec(x_46); +if (x_251 == 0) +{ +lean_object* x_252; lean_object* x_253; +lean_dec(x_218); +lean_dec(x_217); +lean_inc(x_68); +x_252 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_252, 0, x_84); +lean_ctor_set(x_252, 1, x_68); +if (lean_is_scalar(x_250)) { + x_253 = lean_alloc_ctor(1, 1, 0); +} else { + x_253 = x_250; +} +lean_ctor_set(x_253, 0, x_252); +if (x_228 == 0) +{ +lean_dec(x_220); +lean_dec(x_126); +x_229 = x_253; +goto block_237; +} +else +{ +lean_dec(x_226); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_238 = x_253; +goto block_249; +} +} +else +{ +if (lean_obj_tag(x_217) == 0) +{ +lean_object* x_254; lean_object* x_255; +lean_dec(x_218); +lean_inc(x_68); +x_254 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_254, 0, x_84); +lean_ctor_set(x_254, 1, x_68); +if (lean_is_scalar(x_250)) { + x_255 = lean_alloc_ctor(1, 1, 0); +} else { + x_255 = x_250; +} +lean_ctor_set(x_255, 0, x_254); +if (x_228 == 0) +{ +lean_dec(x_220); +lean_dec(x_126); +x_229 = x_255; +goto block_237; +} +else +{ +lean_dec(x_226); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_238 = x_255; +goto block_249; +} +} +else +{ +lean_dec(x_250); +if (lean_obj_tag(x_218) == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + x_256 = x_217; +} else { + lean_dec_ref(x_217); + x_256 = lean_box(0); +} +lean_inc(x_68); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_84); +lean_ctor_set(x_257, 1, x_68); +if (lean_is_scalar(x_256)) { + x_258 = lean_alloc_ctor(1, 1, 0); +} else { + x_258 = x_256; +} +lean_ctor_set(x_258, 0, x_257); +if (x_228 == 0) +{ +lean_dec(x_220); +lean_dec(x_126); +x_229 = x_258; +goto block_237; +} +else +{ +lean_dec(x_226); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_238 = x_258; +goto block_249; +} +} +else +{ +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; +x_259 = lean_ctor_get(x_217, 0); +lean_inc(x_259); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + x_260 = x_217; +} else { + lean_dec_ref(x_217); + x_260 = lean_box(0); +} +x_261 = lean_ctor_get(x_218, 0); +lean_inc(x_261); +if (lean_is_exclusive(x_218)) { + lean_ctor_release(x_218, 0); + x_262 = x_218; +} else { + lean_dec_ref(x_218); + x_262 = lean_box(0); +} +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_259); +lean_ctor_set(x_263, 1, x_261); +if (lean_is_scalar(x_262)) { + x_264 = lean_alloc_ctor(1, 1, 0); +} else { + x_264 = x_262; +} +lean_ctor_set(x_264, 0, x_263); +lean_inc(x_68); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_68); +if (lean_is_scalar(x_260)) { + x_266 = lean_alloc_ctor(1, 1, 0); +} else { + x_266 = x_260; +} +lean_ctor_set(x_266, 0, x_265); +if (x_228 == 0) +{ +lean_dec(x_220); +lean_dec(x_126); +x_229 = x_266; +goto block_237; +} +else +{ +lean_dec(x_226); +lean_dec(x_129); +lean_dec(x_108); +lean_dec(x_96); +x_238 = x_266; +goto block_249; +} +} +} +} +} +block_237: +{ +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_inc(x_56); +if (lean_is_scalar(x_226)) { + x_230 = lean_alloc_ctor(0, 2, 0); +} else { + x_230 = x_226; +} +lean_ctor_set(x_230, 0, x_84); +lean_ctor_set(x_230, 1, x_56); +if (lean_is_scalar(x_108)) { + x_231 = lean_alloc_ctor(1, 1, 0); +} else { + x_231 = x_108; +} +lean_ctor_set(x_231, 0, x_230); +lean_inc(x_15); +x_232 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_232, 0, x_15); +lean_ctor_set(x_232, 1, x_215); +lean_ctor_set(x_232, 2, x_229); +lean_ctor_set(x_232, 3, x_231); +if (lean_is_scalar(x_129)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_129; +} +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_216); +if (lean_is_scalar(x_96)) { + x_234 = lean_alloc_ctor(1, 1, 0); +} else { + x_234 = x_96; +} +lean_ctor_set(x_234, 0, x_233); +x_235 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_236 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_234, x_228, x_235, x_6, x_7, x_8, x_9, x_10, x_11, x_225); +x_25 = x_236; +goto block_32; +} +block_249: +{ +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_239 = lean_box(0); +if (lean_is_scalar(x_126)) { + x_240 = lean_alloc_ctor(0, 2, 0); +} else { + x_240 = x_126; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_220); +x_241 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_241, 0, x_240); +lean_inc(x_56); +x_242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_56); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_242); +lean_inc(x_15); +x_244 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_244, 0, x_15); +lean_ctor_set(x_244, 1, x_215); +lean_ctor_set(x_244, 2, x_238); +lean_ctor_set(x_244, 3, x_243); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_216); +x_246 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_246, 0, x_245); +x_247 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_248 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_246, x_228, x_247, x_6, x_7, x_8, x_9, x_10, x_11, x_225); +x_25 = x_248; +goto block_32; +} +} +} +} +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; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; uint8_t x_337; +x_272 = lean_ctor_get(x_110, 0); +lean_inc(x_272); +lean_dec(x_110); +x_273 = lean_ctor_get(x_15, 5); +lean_inc(x_273); +lean_inc(x_68); +lean_inc(x_273); +x_274 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_273, x_68, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +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, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_275, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_280 = x_275; +} else { + lean_dec_ref(x_275); + x_280 = lean_box(0); +} +x_281 = lean_ctor_get(x_272, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_272, 1); +lean_inc(x_282); +x_283 = lean_ctor_get(x_272, 2); +lean_inc(x_283); +x_284 = lean_ctor_get(x_272, 3); +lean_inc(x_284); +x_285 = lean_ctor_get(x_272, 4); +lean_inc(x_285); +x_286 = lean_ctor_get(x_272, 5); +lean_inc(x_286); +x_287 = lean_ctor_get(x_272, 6); +lean_inc(x_287); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + lean_ctor_release(x_272, 2); + lean_ctor_release(x_272, 3); + lean_ctor_release(x_272, 4); + lean_ctor_release(x_272, 5); + lean_ctor_release(x_272, 6); + x_288 = x_272; +} else { + lean_dec_ref(x_272); + x_288 = lean_box(0); +} +lean_inc(x_56); +lean_inc(x_273); +x_289 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_273, x_56); +lean_inc(x_273); +lean_inc(x_279); +lean_inc(x_283); +lean_inc(x_282); +if (lean_is_scalar(x_288)) { + x_290 = lean_alloc_ctor(0, 7, 0); +} else { + x_290 = x_288; +} +lean_ctor_set(x_290, 0, x_281); +lean_ctor_set(x_290, 1, x_282); +lean_ctor_set(x_290, 2, x_283); +lean_ctor_set(x_290, 3, x_278); +lean_ctor_set(x_290, 4, x_279); +lean_ctor_set(x_290, 5, x_273); +lean_ctor_set(x_290, 6, x_289); +x_291 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_291, 0, x_290); +x_292 = lean_ctor_get(x_95, 1); +lean_inc(x_292); +lean_dec(x_95); +x_293 = lean_io_promise_resolve(x_291, x_292, x_276); +lean_dec(x_292); +x_294 = lean_ctor_get(x_293, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_295 = x_293; +} else { + lean_dec_ref(x_293); + x_295 = lean_box(0); +} +x_296 = lean_ctor_get(x_10, 2); +lean_inc(x_296); +x_337 = lean_unbox(x_46); +if (x_337 == 0) +{ +uint8_t x_338; +lean_dec(x_296); +lean_dec(x_286); +lean_dec(x_273); +x_338 = 0; +x_297 = x_338; +goto block_336; +} +else +{ +lean_object* x_339; uint8_t x_340; +x_339 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_296, x_273, x_286); +lean_dec(x_296); +x_340 = lean_unbox(x_339); +lean_dec(x_339); +x_297 = x_340; +goto block_336; +} +block_336: +{ +lean_object* x_298; lean_object* x_307; +if (lean_obj_tag(x_279) == 0) +{ +lean_dec(x_285); +lean_dec(x_284); +lean_dec(x_46); +if (x_297 == 0) +{ +lean_dec(x_287); +lean_dec(x_277); +x_298 = x_84; +goto block_306; +} +else +{ +lean_dec(x_295); +lean_dec(x_280); +lean_dec(x_108); +lean_dec(x_96); +x_307 = x_84; +goto block_318; +} +} +else +{ +lean_object* x_319; uint8_t x_320; +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + x_319 = x_279; +} else { + lean_dec_ref(x_279); + x_319 = lean_box(0); +} +x_320 = lean_unbox(x_46); +lean_dec(x_46); +if (x_320 == 0) +{ +lean_object* x_321; lean_object* x_322; +lean_dec(x_285); +lean_dec(x_284); +lean_inc(x_68); +x_321 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_321, 0, x_84); +lean_ctor_set(x_321, 1, x_68); +if (lean_is_scalar(x_319)) { + x_322 = lean_alloc_ctor(1, 1, 0); +} else { + x_322 = x_319; +} +lean_ctor_set(x_322, 0, x_321); +if (x_297 == 0) +{ +lean_dec(x_287); +lean_dec(x_277); +x_298 = x_322; +goto block_306; +} +else +{ +lean_dec(x_295); +lean_dec(x_280); +lean_dec(x_108); +lean_dec(x_96); +x_307 = x_322; +goto block_318; +} +} +else +{ +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_323; lean_object* x_324; +lean_dec(x_285); +lean_inc(x_68); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_84); +lean_ctor_set(x_323, 1, x_68); +if (lean_is_scalar(x_319)) { + x_324 = lean_alloc_ctor(1, 1, 0); +} else { + x_324 = x_319; +} +lean_ctor_set(x_324, 0, x_323); +if (x_297 == 0) +{ +lean_dec(x_287); +lean_dec(x_277); +x_298 = x_324; +goto block_306; +} +else +{ +lean_dec(x_295); +lean_dec(x_280); +lean_dec(x_108); +lean_dec(x_96); +x_307 = x_324; +goto block_318; +} +} +else +{ +lean_dec(x_319); +if (lean_obj_tag(x_285) == 0) +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + x_325 = x_284; +} else { + lean_dec_ref(x_284); + x_325 = lean_box(0); +} +lean_inc(x_68); +x_326 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_326, 0, x_84); +lean_ctor_set(x_326, 1, x_68); +if (lean_is_scalar(x_325)) { + x_327 = lean_alloc_ctor(1, 1, 0); +} else { + x_327 = x_325; +} +lean_ctor_set(x_327, 0, x_326); +if (x_297 == 0) +{ +lean_dec(x_287); +lean_dec(x_277); +x_298 = x_327; +goto block_306; +} +else +{ +lean_dec(x_295); +lean_dec(x_280); +lean_dec(x_108); +lean_dec(x_96); +x_307 = x_327; +goto block_318; +} +} +else +{ +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; +x_328 = lean_ctor_get(x_284, 0); +lean_inc(x_328); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + x_329 = x_284; +} else { + lean_dec_ref(x_284); + x_329 = lean_box(0); +} +x_330 = lean_ctor_get(x_285, 0); +lean_inc(x_330); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + x_331 = x_285; +} else { + lean_dec_ref(x_285); + x_331 = lean_box(0); +} +x_332 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_332, 0, x_328); +lean_ctor_set(x_332, 1, x_330); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(1, 1, 0); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_332); +lean_inc(x_68); +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_68); +if (lean_is_scalar(x_329)) { + x_335 = lean_alloc_ctor(1, 1, 0); +} else { + x_335 = x_329; +} +lean_ctor_set(x_335, 0, x_334); +if (x_297 == 0) +{ +lean_dec(x_287); +lean_dec(x_277); +x_298 = x_335; +goto block_306; +} +else +{ +lean_dec(x_295); +lean_dec(x_280); +lean_dec(x_108); +lean_dec(x_96); +x_307 = x_335; +goto block_318; +} +} +} +} +} +block_306: +{ +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_inc(x_56); +if (lean_is_scalar(x_295)) { + x_299 = lean_alloc_ctor(0, 2, 0); +} else { + x_299 = x_295; +} +lean_ctor_set(x_299, 0, x_84); +lean_ctor_set(x_299, 1, x_56); +if (lean_is_scalar(x_108)) { + x_300 = lean_alloc_ctor(1, 1, 0); +} else { + x_300 = x_108; +} +lean_ctor_set(x_300, 0, x_299); +lean_inc(x_15); +x_301 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_301, 0, x_15); +lean_ctor_set(x_301, 1, x_282); +lean_ctor_set(x_301, 2, x_298); +lean_ctor_set(x_301, 3, x_300); +if (lean_is_scalar(x_280)) { + x_302 = lean_alloc_ctor(0, 2, 0); +} else { + x_302 = x_280; +} +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_283); +if (lean_is_scalar(x_96)) { + x_303 = lean_alloc_ctor(1, 1, 0); +} else { + x_303 = x_96; +} +lean_ctor_set(x_303, 0, x_302); +x_304 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_305 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_303, x_297, x_304, x_6, x_7, x_8, x_9, x_10, x_11, x_294); +x_25 = x_305; +goto block_32; +} +block_318: +{ +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; +x_308 = lean_box(0); +if (lean_is_scalar(x_277)) { + x_309 = lean_alloc_ctor(0, 2, 0); +} else { + x_309 = x_277; +} +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_287); +x_310 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_310, 0, x_309); +lean_inc(x_56); +x_311 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_56); +x_312 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_312, 0, x_311); +lean_inc(x_15); +x_313 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_313, 0, x_15); +lean_ctor_set(x_313, 1, x_282); +lean_ctor_set(x_313, 2, x_307); +lean_ctor_set(x_313, 3, x_312); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_314, 1, x_283); +x_315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_315, 0, x_314); +x_316 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_317 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_81, x_82, x_83, x_38, x_42, x_39, x_45, x_315, x_297, x_316, x_6, x_7, x_8, x_9, x_10, x_11, x_294); +x_25 = x_317; +goto block_32; +} +} +} +} +} +} +} +else +{ +lean_object* x_341; 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_dec(x_39); +x_341 = lean_array_fget(x_70, x_71); +x_342 = lean_nat_add(x_71, x_57); +lean_dec(x_71); +x_343 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_343, 0, x_70); +lean_ctor_set(x_343, 1, x_342); +lean_ctor_set(x_343, 2, x_72); +x_344 = lean_ctor_get(x_341, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_341, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_341, 2); +lean_inc(x_346); +lean_dec(x_341); +x_347 = lean_box(0); +x_348 = lean_ctor_get(x_15, 6); +lean_inc(x_348); +if (lean_obj_tag(x_348) == 0) +{ +lean_object* x_349; uint8_t x_350; lean_object* x_351; +x_349 = lean_box(0); +x_350 = lean_unbox(x_46); +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_351 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_344, x_345, x_346, x_38, x_42, x_343, x_45, x_347, x_350, x_349, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_351) == 0) +{ +lean_object* x_352; lean_object* x_353; +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_16 = x_352; +x_17 = x_353; +goto block_24; +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_127); -lean_ctor_set(x_133, 1, x_128); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_12); -return x_134; +x_354 = lean_ctor_get(x_351, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_351, 1); +lean_inc(x_355); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + x_356 = x_351; +} else { + lean_dec_ref(x_351); + x_356 = lean_box(0); +} +if (lean_is_scalar(x_356)) { + x_357 = lean_alloc_ctor(1, 2, 0); +} else { + x_357 = x_356; +} +lean_ctor_set(x_357, 0, x_354); +lean_ctor_set(x_357, 1, x_355); +return x_357; +} } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t 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; uint8_t x_162; lean_object* x_163; -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - lean_ctor_release(x_127, 2); - x_135 = x_127; +lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_358 = lean_ctor_get(x_348, 0); +lean_inc(x_358); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + x_359 = x_348; } else { - lean_dec_ref(x_127); - x_135 = lean_box(0); + lean_dec_ref(x_348); + x_359 = lean_box(0); } -x_136 = lean_array_fget(x_129, x_130); -x_137 = lean_unsigned_to_nat(1u); -x_138 = lean_nat_add(x_130, x_137); -lean_dec(x_130); -if (lean_is_scalar(x_135)) { - x_139 = lean_alloc_ctor(0, 3, 0); -} else { - x_139 = x_135; -} -lean_ctor_set(x_139, 0, x_129); -lean_ctor_set(x_139, 1, x_138); -lean_ctor_set(x_139, 2, x_131); -x_140 = lean_ctor_get(x_136, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_136, 1); -lean_inc(x_141); -x_142 = lean_ctor_get(x_136, 2); -lean_inc(x_142); -lean_dec(x_136); -x_143 = lean_ctor_get(x_15, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_10, 0); -x_145 = lean_ctor_get(x_10, 1); -x_146 = lean_ctor_get(x_10, 2); -x_147 = lean_ctor_get(x_10, 3); -x_148 = lean_ctor_get(x_10, 4); -x_149 = lean_ctor_get(x_10, 5); -x_150 = lean_ctor_get(x_10, 6); -x_151 = lean_ctor_get(x_10, 7); -x_152 = lean_ctor_get(x_10, 8); -x_153 = lean_ctor_get(x_10, 9); -x_154 = lean_ctor_get(x_10, 10); -x_155 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_156 = l_Lean_replaceRef(x_143, x_149); -lean_inc(x_154); -lean_inc(x_153); -lean_inc(x_152); -lean_inc(x_151); -lean_inc(x_150); -lean_inc(x_148); -lean_inc(x_147); -lean_inc(x_146); -lean_inc(x_145); -lean_inc(x_144); -x_157 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_157, 0, x_144); -lean_ctor_set(x_157, 1, x_145); -lean_ctor_set(x_157, 2, x_146); -lean_ctor_set(x_157, 3, x_147); -lean_ctor_set(x_157, 4, x_148); -lean_ctor_set(x_157, 5, x_156); -lean_ctor_set(x_157, 6, x_150); -lean_ctor_set(x_157, 7, x_151); -lean_ctor_set(x_157, 8, x_152); -lean_ctor_set(x_157, 9, x_153); -lean_ctor_set(x_157, 10, x_154); -lean_ctor_set_uint8(x_157, sizeof(void*)*11, x_155); -lean_inc(x_157); -lean_inc(x_143); -lean_inc(x_141); -x_158 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(x_141, x_143, x_6, x_7, x_8, x_9, x_157, x_11, x_12); -x_159 = lean_ctor_get(x_158, 1); -lean_inc(x_159); -lean_dec(x_158); -x_160 = lean_ctor_get(x_15, 1); -lean_inc(x_160); -x_161 = lean_ctor_get(x_160, 1); -lean_inc(x_161); -x_162 = 2; +x_360 = lean_ctor_get(x_358, 0); +lean_inc(x_360); +if (lean_obj_tag(x_360) == 0) +{ +uint8_t x_361; lean_object* x_362; lean_object* x_363; +lean_dec(x_359); +lean_dec(x_358); +lean_dec(x_46); +x_361 = 0; +x_362 = lean_box(0); lean_inc(x_11); -lean_inc(x_157); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_141); -x_163 = l_Lean_Elab_Term_applyAttributesAt(x_141, x_161, x_162, x_6, x_7, x_8, x_9, x_157, x_11, x_159); -if (lean_obj_tag(x_163) == 0) -{ -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; -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -lean_dec(x_163); -x_165 = lean_ctor_get(x_15, 3); -lean_inc(x_165); -x_166 = l_Lean_Syntax_getArgs(x_165); -lean_dec(x_165); lean_inc(x_1); -lean_inc(x_128); -lean_inc(x_141); -x_167 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5), 15, 7); -lean_closure_set(x_167, 0, x_15); -lean_closure_set(x_167, 1, x_143); -lean_closure_set(x_167, 2, x_160); -lean_closure_set(x_167, 3, x_140); -lean_closure_set(x_167, 4, x_141); -lean_closure_set(x_167, 5, x_128); -lean_closure_set(x_167, 6, x_1); -x_168 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBindersEx___rarg), 9, 2); -lean_closure_set(x_168, 0, x_166); -lean_closure_set(x_168, 1, x_167); -x_169 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_169, 0, x_142); -lean_closure_set(x_169, 1, x_168); -x_170 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_170, 0, x_169); +x_363 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_344, x_345, x_346, x_38, x_42, x_343, x_45, x_347, x_361, x_362, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_363) == 0) +{ +lean_object* x_364; lean_object* x_365; +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_363, 1); +lean_inc(x_365); +lean_dec(x_363); +x_16 = x_364; +x_17 = x_365; +goto block_24; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_366 = lean_ctor_get(x_363, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_363, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_363)) { + lean_ctor_release(x_363, 0); + lean_ctor_release(x_363, 1); + x_368 = x_363; +} else { + lean_dec_ref(x_363); + x_368 = lean_box(0); +} +if (lean_is_scalar(x_368)) { + x_369 = lean_alloc_ctor(1, 2, 0); +} else { + x_369 = x_368; +} +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +return x_369; +} +} +else +{ +lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; +x_370 = lean_ctor_get(x_360, 0); +lean_inc(x_370); +if (lean_is_exclusive(x_360)) { + lean_ctor_release(x_360, 0); + x_371 = x_360; +} else { + lean_dec_ref(x_360); + x_371 = lean_box(0); +} +x_372 = lean_ctor_get(x_370, 1); +lean_inc(x_372); +lean_dec(x_370); +x_373 = l_Lean_Language_SnapshotTask_get___rarg(x_372); +if (lean_obj_tag(x_373) == 0) +{ +uint8_t x_374; lean_object* x_375; lean_object* x_376; +lean_dec(x_371); +lean_dec(x_359); +lean_dec(x_358); +lean_dec(x_46); +x_374 = 0; +x_375 = lean_box(0); lean_inc(x_11); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_171 = l_Lean_Elab_Term_withDeclName___rarg(x_141, x_170, x_6, x_7, x_8, x_9, x_157, x_11, x_164); -if (lean_obj_tag(x_171) == 0) +lean_inc(x_1); +x_376 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_344, x_345, x_346, x_38, x_42, x_343, x_45, x_347, x_374, x_375, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_376) == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; size_t x_176; size_t x_177; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -lean_dec(x_171); -x_174 = lean_array_push(x_128, x_172); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_139); -lean_ctor_set(x_175, 1, x_174); -x_176 = 1; -x_177 = lean_usize_add(x_4, x_176); -x_4 = x_177; -x_5 = x_175; -x_12 = x_173; +lean_object* x_377; lean_object* x_378; +x_377 = lean_ctor_get(x_376, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_376, 1); +lean_inc(x_378); +lean_dec(x_376); +x_16 = x_377; +x_17 = x_378; +goto block_24; +} +else +{ +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_379 = lean_ctor_get(x_376, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_376, 1); +lean_inc(x_380); +if (lean_is_exclusive(x_376)) { + lean_ctor_release(x_376, 0); + lean_ctor_release(x_376, 1); + x_381 = x_376; +} else { + lean_dec_ref(x_376); + x_381 = lean_box(0); +} +if (lean_is_scalar(x_381)) { + x_382 = lean_alloc_ctor(1, 2, 0); +} else { + x_382 = x_381; +} +lean_ctor_set(x_382, 0, x_379); +lean_ctor_set(x_382, 1, x_380); +return x_382; +} +} +else +{ +lean_object* x_383; 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_object* x_399; lean_object* 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; lean_object* x_407; lean_object* x_408; uint8_t x_409; uint8_t x_449; +x_383 = lean_ctor_get(x_373, 0); +lean_inc(x_383); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + x_384 = x_373; +} else { + lean_dec_ref(x_373); + x_384 = lean_box(0); +} +x_385 = lean_ctor_get(x_15, 5); +lean_inc(x_385); +lean_inc(x_68); +lean_inc(x_385); +x_386 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_385, x_68, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_387 = lean_ctor_get(x_386, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_389 = x_386; +} else { + lean_dec_ref(x_386); + x_389 = lean_box(0); +} +x_390 = lean_ctor_get(x_387, 0); +lean_inc(x_390); +x_391 = lean_ctor_get(x_387, 1); +lean_inc(x_391); +if (lean_is_exclusive(x_387)) { + lean_ctor_release(x_387, 0); + lean_ctor_release(x_387, 1); + x_392 = x_387; +} else { + lean_dec_ref(x_387); + x_392 = lean_box(0); +} +x_393 = lean_ctor_get(x_383, 0); +lean_inc(x_393); +x_394 = lean_ctor_get(x_383, 1); +lean_inc(x_394); +x_395 = lean_ctor_get(x_383, 2); +lean_inc(x_395); +x_396 = lean_ctor_get(x_383, 3); +lean_inc(x_396); +x_397 = lean_ctor_get(x_383, 4); +lean_inc(x_397); +x_398 = lean_ctor_get(x_383, 5); +lean_inc(x_398); +x_399 = lean_ctor_get(x_383, 6); +lean_inc(x_399); +if (lean_is_exclusive(x_383)) { + lean_ctor_release(x_383, 0); + lean_ctor_release(x_383, 1); + lean_ctor_release(x_383, 2); + lean_ctor_release(x_383, 3); + lean_ctor_release(x_383, 4); + lean_ctor_release(x_383, 5); + lean_ctor_release(x_383, 6); + x_400 = x_383; +} else { + lean_dec_ref(x_383); + x_400 = lean_box(0); +} +lean_inc(x_56); +lean_inc(x_385); +x_401 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_385, x_56); +lean_inc(x_385); +lean_inc(x_391); +lean_inc(x_395); +lean_inc(x_394); +if (lean_is_scalar(x_400)) { + x_402 = lean_alloc_ctor(0, 7, 0); +} else { + x_402 = x_400; +} +lean_ctor_set(x_402, 0, x_393); +lean_ctor_set(x_402, 1, x_394); +lean_ctor_set(x_402, 2, x_395); +lean_ctor_set(x_402, 3, x_390); +lean_ctor_set(x_402, 4, x_391); +lean_ctor_set(x_402, 5, x_385); +lean_ctor_set(x_402, 6, x_401); +if (lean_is_scalar(x_384)) { + x_403 = lean_alloc_ctor(1, 1, 0); +} else { + x_403 = x_384; +} +lean_ctor_set(x_403, 0, x_402); +x_404 = lean_ctor_get(x_358, 1); +lean_inc(x_404); +lean_dec(x_358); +x_405 = lean_io_promise_resolve(x_403, x_404, x_388); +lean_dec(x_404); +x_406 = lean_ctor_get(x_405, 1); +lean_inc(x_406); +if (lean_is_exclusive(x_405)) { + lean_ctor_release(x_405, 0); + lean_ctor_release(x_405, 1); + x_407 = x_405; +} else { + lean_dec_ref(x_405); + x_407 = lean_box(0); +} +x_408 = lean_ctor_get(x_10, 2); +lean_inc(x_408); +x_449 = lean_unbox(x_46); +if (x_449 == 0) +{ +uint8_t x_450; +lean_dec(x_408); +lean_dec(x_398); +lean_dec(x_385); +x_450 = 0; +x_409 = x_450; +goto block_448; +} +else +{ +lean_object* x_451; uint8_t x_452; +x_451 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_408, x_385, x_398); +lean_dec(x_408); +x_452 = lean_unbox(x_451); +lean_dec(x_451); +x_409 = x_452; +goto block_448; +} +block_448: +{ +lean_object* x_410; lean_object* x_419; +if (lean_obj_tag(x_391) == 0) +{ +lean_dec(x_397); +lean_dec(x_396); +lean_dec(x_46); +if (x_409 == 0) +{ +lean_dec(x_399); +lean_dec(x_389); +x_410 = x_347; +goto block_418; +} +else +{ +lean_dec(x_407); +lean_dec(x_392); +lean_dec(x_371); +lean_dec(x_359); +x_419 = x_347; +goto block_430; +} +} +else +{ +lean_object* x_431; uint8_t x_432; +if (lean_is_exclusive(x_391)) { + lean_ctor_release(x_391, 0); + x_431 = x_391; +} else { + lean_dec_ref(x_391); + x_431 = lean_box(0); +} +x_432 = lean_unbox(x_46); +lean_dec(x_46); +if (x_432 == 0) +{ +lean_object* x_433; lean_object* x_434; +lean_dec(x_397); +lean_dec(x_396); +lean_inc(x_68); +x_433 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_433, 0, x_347); +lean_ctor_set(x_433, 1, x_68); +if (lean_is_scalar(x_431)) { + x_434 = lean_alloc_ctor(1, 1, 0); +} else { + x_434 = x_431; +} +lean_ctor_set(x_434, 0, x_433); +if (x_409 == 0) +{ +lean_dec(x_399); +lean_dec(x_389); +x_410 = x_434; +goto block_418; +} +else +{ +lean_dec(x_407); +lean_dec(x_392); +lean_dec(x_371); +lean_dec(x_359); +x_419 = x_434; +goto block_430; +} +} +else +{ +if (lean_obj_tag(x_396) == 0) +{ +lean_object* x_435; lean_object* x_436; +lean_dec(x_397); +lean_inc(x_68); +x_435 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_435, 0, x_347); +lean_ctor_set(x_435, 1, x_68); +if (lean_is_scalar(x_431)) { + x_436 = lean_alloc_ctor(1, 1, 0); +} else { + x_436 = x_431; +} +lean_ctor_set(x_436, 0, x_435); +if (x_409 == 0) +{ +lean_dec(x_399); +lean_dec(x_389); +x_410 = x_436; +goto block_418; +} +else +{ +lean_dec(x_407); +lean_dec(x_392); +lean_dec(x_371); +lean_dec(x_359); +x_419 = x_436; +goto block_430; +} +} +else +{ +lean_dec(x_431); +if (lean_obj_tag(x_397) == 0) +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; +if (lean_is_exclusive(x_396)) { + lean_ctor_release(x_396, 0); + x_437 = x_396; +} else { + lean_dec_ref(x_396); + x_437 = lean_box(0); +} +lean_inc(x_68); +x_438 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_438, 0, x_347); +lean_ctor_set(x_438, 1, x_68); +if (lean_is_scalar(x_437)) { + x_439 = lean_alloc_ctor(1, 1, 0); +} else { + x_439 = x_437; +} +lean_ctor_set(x_439, 0, x_438); +if (x_409 == 0) +{ +lean_dec(x_399); +lean_dec(x_389); +x_410 = x_439; +goto block_418; +} +else +{ +lean_dec(x_407); +lean_dec(x_392); +lean_dec(x_371); +lean_dec(x_359); +x_419 = x_439; +goto block_430; +} +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_440 = lean_ctor_get(x_396, 0); +lean_inc(x_440); +if (lean_is_exclusive(x_396)) { + lean_ctor_release(x_396, 0); + x_441 = x_396; +} else { + lean_dec_ref(x_396); + x_441 = lean_box(0); +} +x_442 = lean_ctor_get(x_397, 0); +lean_inc(x_442); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + x_443 = x_397; +} else { + lean_dec_ref(x_397); + x_443 = lean_box(0); +} +x_444 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_444, 0, x_440); +lean_ctor_set(x_444, 1, x_442); +if (lean_is_scalar(x_443)) { + x_445 = lean_alloc_ctor(1, 1, 0); +} else { + x_445 = x_443; +} +lean_ctor_set(x_445, 0, x_444); +lean_inc(x_68); +x_446 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_446, 0, x_445); +lean_ctor_set(x_446, 1, x_68); +if (lean_is_scalar(x_441)) { + x_447 = lean_alloc_ctor(1, 1, 0); +} else { + x_447 = x_441; +} +lean_ctor_set(x_447, 0, x_446); +if (x_409 == 0) +{ +lean_dec(x_399); +lean_dec(x_389); +x_410 = x_447; +goto block_418; +} +else +{ +lean_dec(x_407); +lean_dec(x_392); +lean_dec(x_371); +lean_dec(x_359); +x_419 = x_447; +goto block_430; +} +} +} +} +} +block_418: +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +lean_inc(x_56); +if (lean_is_scalar(x_407)) { + x_411 = lean_alloc_ctor(0, 2, 0); +} else { + x_411 = x_407; +} +lean_ctor_set(x_411, 0, x_347); +lean_ctor_set(x_411, 1, x_56); +if (lean_is_scalar(x_371)) { + x_412 = lean_alloc_ctor(1, 1, 0); +} else { + x_412 = x_371; +} +lean_ctor_set(x_412, 0, x_411); +lean_inc(x_15); +x_413 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_413, 0, x_15); +lean_ctor_set(x_413, 1, x_394); +lean_ctor_set(x_413, 2, x_410); +lean_ctor_set(x_413, 3, x_412); +if (lean_is_scalar(x_392)) { + x_414 = lean_alloc_ctor(0, 2, 0); +} else { + x_414 = x_392; +} +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_395); +if (lean_is_scalar(x_359)) { + x_415 = lean_alloc_ctor(1, 1, 0); +} else { + x_415 = x_359; +} +lean_ctor_set(x_415, 0, x_414); +x_416 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_417 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_344, x_345, x_346, x_38, x_42, x_343, x_45, x_415, x_409, x_416, x_6, x_7, x_8, x_9, x_10, x_11, x_406); +x_25 = x_417; +goto block_32; +} +block_430: +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +x_420 = lean_box(0); +if (lean_is_scalar(x_389)) { + x_421 = lean_alloc_ctor(0, 2, 0); +} else { + x_421 = x_389; +} +lean_ctor_set(x_421, 0, x_420); +lean_ctor_set(x_421, 1, x_399); +x_422 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_422, 0, x_421); +lean_inc(x_56); +x_423 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_423, 0, x_422); +lean_ctor_set(x_423, 1, x_56); +x_424 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_424, 0, x_423); +lean_inc(x_15); +x_425 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_425, 0, x_15); +lean_ctor_set(x_425, 1, x_394); +lean_ctor_set(x_425, 2, x_419); +lean_ctor_set(x_425, 3, x_424); +x_426 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_426, 0, x_425); +lean_ctor_set(x_426, 1, x_395); +x_427 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_427, 0, x_426); +x_428 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_429 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_68, x_344, x_345, x_346, x_38, x_42, x_343, x_45, x_427, x_409, x_428, x_6, x_7, x_8, x_9, x_10, x_11, x_406); +x_25 = x_429; +goto block_32; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; +lean_dec(x_42); +x_453 = lean_array_fget(x_59, x_60); +x_454 = lean_nat_add(x_60, x_57); +lean_dec(x_60); +x_455 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_455, 0, x_59); +lean_ctor_set(x_455, 1, x_454); +lean_ctor_set(x_455, 2, x_61); +x_456 = lean_ctor_get(x_39, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_39, 1); +lean_inc(x_457); +x_458 = lean_ctor_get(x_39, 2); +lean_inc(x_458); +x_459 = lean_nat_dec_lt(x_457, x_458); +if (x_459 == 0) +{ +lean_object* x_460; +lean_dec(x_458); +lean_dec(x_457); +lean_dec(x_456); +lean_dec(x_453); +lean_dec(x_56); +lean_dec(x_15); +lean_ctor_set(x_33, 0, x_455); +x_460 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_460, 0, x_5); +x_16 = x_460; +x_17 = x_12; +goto block_24; +} +else +{ +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_free_object(x_37); +lean_free_object(x_33); +lean_free_object(x_5); +lean_free_object(x_34); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + x_461 = x_39; +} else { + lean_dec_ref(x_39); + x_461 = lean_box(0); +} +x_462 = lean_array_fget(x_456, x_457); +x_463 = lean_nat_add(x_457, x_57); +lean_dec(x_457); +if (lean_is_scalar(x_461)) { + x_464 = lean_alloc_ctor(0, 3, 0); +} else { + x_464 = x_461; +} +lean_ctor_set(x_464, 0, x_456); +lean_ctor_set(x_464, 1, x_463); +lean_ctor_set(x_464, 2, x_458); +x_465 = lean_ctor_get(x_462, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_462, 1); +lean_inc(x_466); +x_467 = lean_ctor_get(x_462, 2); +lean_inc(x_467); +lean_dec(x_462); +x_468 = lean_box(0); +x_469 = lean_ctor_get(x_15, 6); +lean_inc(x_469); +if (lean_obj_tag(x_469) == 0) +{ +lean_object* x_470; uint8_t x_471; lean_object* x_472; +x_470 = lean_box(0); +x_471 = lean_unbox(x_46); +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_472 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_453, x_465, x_466, x_467, x_38, x_455, x_464, x_45, x_468, x_471, x_470, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_472) == 0) +{ +lean_object* x_473; lean_object* x_474; +x_473 = lean_ctor_get(x_472, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_472, 1); +lean_inc(x_474); +lean_dec(x_472); +x_16 = x_473; +x_17 = x_474; +goto block_24; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_475 = lean_ctor_get(x_472, 0); +lean_inc(x_475); +x_476 = lean_ctor_get(x_472, 1); +lean_inc(x_476); +if (lean_is_exclusive(x_472)) { + lean_ctor_release(x_472, 0); + lean_ctor_release(x_472, 1); + x_477 = x_472; +} else { + lean_dec_ref(x_472); + x_477 = lean_box(0); +} +if (lean_is_scalar(x_477)) { + x_478 = lean_alloc_ctor(1, 2, 0); +} else { + x_478 = x_477; +} +lean_ctor_set(x_478, 0, x_475); +lean_ctor_set(x_478, 1, x_476); +return x_478; +} +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_469, 0); +lean_inc(x_479); +if (lean_is_exclusive(x_469)) { + lean_ctor_release(x_469, 0); + x_480 = x_469; +} else { + lean_dec_ref(x_469); + x_480 = lean_box(0); +} +x_481 = lean_ctor_get(x_479, 0); +lean_inc(x_481); +if (lean_obj_tag(x_481) == 0) +{ +uint8_t x_482; lean_object* x_483; lean_object* x_484; +lean_dec(x_480); +lean_dec(x_479); +lean_dec(x_46); +x_482 = 0; +x_483 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_484 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_453, x_465, x_466, x_467, x_38, x_455, x_464, x_45, x_468, x_482, x_483, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_484) == 0) +{ +lean_object* x_485; lean_object* x_486; +x_485 = lean_ctor_get(x_484, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); +lean_dec(x_484); +x_16 = x_485; +x_17 = x_486; +goto block_24; +} +else +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_487 = lean_ctor_get(x_484, 0); +lean_inc(x_487); +x_488 = lean_ctor_get(x_484, 1); +lean_inc(x_488); +if (lean_is_exclusive(x_484)) { + lean_ctor_release(x_484, 0); + lean_ctor_release(x_484, 1); + x_489 = x_484; +} else { + lean_dec_ref(x_484); + x_489 = lean_box(0); +} +if (lean_is_scalar(x_489)) { + x_490 = lean_alloc_ctor(1, 2, 0); +} else { + x_490 = x_489; +} +lean_ctor_set(x_490, 0, x_487); +lean_ctor_set(x_490, 1, x_488); +return x_490; +} +} +else +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_491 = lean_ctor_get(x_481, 0); +lean_inc(x_491); +if (lean_is_exclusive(x_481)) { + lean_ctor_release(x_481, 0); + x_492 = x_481; +} else { + lean_dec_ref(x_481); + x_492 = lean_box(0); +} +x_493 = lean_ctor_get(x_491, 1); +lean_inc(x_493); +lean_dec(x_491); +x_494 = l_Lean_Language_SnapshotTask_get___rarg(x_493); +if (lean_obj_tag(x_494) == 0) +{ +uint8_t x_495; lean_object* x_496; lean_object* x_497; +lean_dec(x_492); +lean_dec(x_480); +lean_dec(x_479); +lean_dec(x_46); +x_495 = 0; +x_496 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_497 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_453, x_465, x_466, x_467, x_38, x_455, x_464, x_45, x_468, x_495, x_496, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_497) == 0) +{ +lean_object* x_498; lean_object* x_499; +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_497, 1); +lean_inc(x_499); +lean_dec(x_497); +x_16 = x_498; +x_17 = x_499; +goto block_24; +} +else +{ +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_500 = lean_ctor_get(x_497, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_497, 1); +lean_inc(x_501); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_502 = x_497; +} else { + lean_dec_ref(x_497); + x_502 = lean_box(0); +} +if (lean_is_scalar(x_502)) { + x_503 = lean_alloc_ctor(1, 2, 0); +} else { + x_503 = x_502; +} +lean_ctor_set(x_503, 0, x_500); +lean_ctor_set(x_503, 1, x_501); +return x_503; +} +} +else +{ +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 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; 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; lean_object* x_527; lean_object* x_528; lean_object* x_529; uint8_t x_530; uint8_t x_570; +x_504 = lean_ctor_get(x_494, 0); +lean_inc(x_504); +if (lean_is_exclusive(x_494)) { + lean_ctor_release(x_494, 0); + x_505 = x_494; +} else { + lean_dec_ref(x_494); + x_505 = lean_box(0); +} +x_506 = lean_ctor_get(x_15, 5); +lean_inc(x_506); +lean_inc(x_453); +lean_inc(x_506); +x_507 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_506, x_453, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_508 = lean_ctor_get(x_507, 0); +lean_inc(x_508); +x_509 = lean_ctor_get(x_507, 1); +lean_inc(x_509); +if (lean_is_exclusive(x_507)) { + lean_ctor_release(x_507, 0); + lean_ctor_release(x_507, 1); + x_510 = x_507; +} else { + lean_dec_ref(x_507); + x_510 = lean_box(0); +} +x_511 = lean_ctor_get(x_508, 0); +lean_inc(x_511); +x_512 = lean_ctor_get(x_508, 1); +lean_inc(x_512); +if (lean_is_exclusive(x_508)) { + lean_ctor_release(x_508, 0); + lean_ctor_release(x_508, 1); + x_513 = x_508; +} else { + lean_dec_ref(x_508); + x_513 = lean_box(0); +} +x_514 = lean_ctor_get(x_504, 0); +lean_inc(x_514); +x_515 = lean_ctor_get(x_504, 1); +lean_inc(x_515); +x_516 = lean_ctor_get(x_504, 2); +lean_inc(x_516); +x_517 = lean_ctor_get(x_504, 3); +lean_inc(x_517); +x_518 = lean_ctor_get(x_504, 4); +lean_inc(x_518); +x_519 = lean_ctor_get(x_504, 5); +lean_inc(x_519); +x_520 = lean_ctor_get(x_504, 6); +lean_inc(x_520); +if (lean_is_exclusive(x_504)) { + lean_ctor_release(x_504, 0); + lean_ctor_release(x_504, 1); + lean_ctor_release(x_504, 2); + lean_ctor_release(x_504, 3); + lean_ctor_release(x_504, 4); + lean_ctor_release(x_504, 5); + lean_ctor_release(x_504, 6); + x_521 = x_504; +} else { + lean_dec_ref(x_504); + x_521 = lean_box(0); +} +lean_inc(x_56); +lean_inc(x_506); +x_522 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_506, x_56); +lean_inc(x_506); +lean_inc(x_512); +lean_inc(x_516); +lean_inc(x_515); +if (lean_is_scalar(x_521)) { + x_523 = lean_alloc_ctor(0, 7, 0); +} else { + x_523 = x_521; +} +lean_ctor_set(x_523, 0, x_514); +lean_ctor_set(x_523, 1, x_515); +lean_ctor_set(x_523, 2, x_516); +lean_ctor_set(x_523, 3, x_511); +lean_ctor_set(x_523, 4, x_512); +lean_ctor_set(x_523, 5, x_506); +lean_ctor_set(x_523, 6, x_522); +if (lean_is_scalar(x_505)) { + x_524 = lean_alloc_ctor(1, 1, 0); +} else { + x_524 = x_505; +} +lean_ctor_set(x_524, 0, x_523); +x_525 = lean_ctor_get(x_479, 1); +lean_inc(x_525); +lean_dec(x_479); +x_526 = lean_io_promise_resolve(x_524, x_525, x_509); +lean_dec(x_525); +x_527 = lean_ctor_get(x_526, 1); +lean_inc(x_527); +if (lean_is_exclusive(x_526)) { + lean_ctor_release(x_526, 0); + lean_ctor_release(x_526, 1); + x_528 = x_526; +} else { + lean_dec_ref(x_526); + x_528 = lean_box(0); +} +x_529 = lean_ctor_get(x_10, 2); +lean_inc(x_529); +x_570 = lean_unbox(x_46); +if (x_570 == 0) +{ +uint8_t x_571; +lean_dec(x_529); +lean_dec(x_519); +lean_dec(x_506); +x_571 = 0; +x_530 = x_571; +goto block_569; +} +else +{ +lean_object* x_572; uint8_t x_573; +x_572 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_529, x_506, x_519); +lean_dec(x_529); +x_573 = lean_unbox(x_572); +lean_dec(x_572); +x_530 = x_573; +goto block_569; +} +block_569: +{ +lean_object* x_531; lean_object* x_540; +if (lean_obj_tag(x_512) == 0) +{ +lean_dec(x_518); +lean_dec(x_517); +lean_dec(x_46); +if (x_530 == 0) +{ +lean_dec(x_520); +lean_dec(x_510); +x_531 = x_468; +goto block_539; +} +else +{ +lean_dec(x_528); +lean_dec(x_513); +lean_dec(x_492); +lean_dec(x_480); +x_540 = x_468; +goto block_551; +} +} +else +{ +lean_object* x_552; uint8_t x_553; +if (lean_is_exclusive(x_512)) { + lean_ctor_release(x_512, 0); + x_552 = x_512; +} else { + lean_dec_ref(x_512); + x_552 = lean_box(0); +} +x_553 = lean_unbox(x_46); +lean_dec(x_46); +if (x_553 == 0) +{ +lean_object* x_554; lean_object* x_555; +lean_dec(x_518); +lean_dec(x_517); +lean_inc(x_453); +x_554 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_554, 0, x_468); +lean_ctor_set(x_554, 1, x_453); +if (lean_is_scalar(x_552)) { + x_555 = lean_alloc_ctor(1, 1, 0); +} else { + x_555 = x_552; +} +lean_ctor_set(x_555, 0, x_554); +if (x_530 == 0) +{ +lean_dec(x_520); +lean_dec(x_510); +x_531 = x_555; +goto block_539; +} +else +{ +lean_dec(x_528); +lean_dec(x_513); +lean_dec(x_492); +lean_dec(x_480); +x_540 = x_555; +goto block_551; +} +} +else +{ +if (lean_obj_tag(x_517) == 0) +{ +lean_object* x_556; lean_object* x_557; +lean_dec(x_518); +lean_inc(x_453); +x_556 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_556, 0, x_468); +lean_ctor_set(x_556, 1, x_453); +if (lean_is_scalar(x_552)) { + x_557 = lean_alloc_ctor(1, 1, 0); +} else { + x_557 = x_552; +} +lean_ctor_set(x_557, 0, x_556); +if (x_530 == 0) +{ +lean_dec(x_520); +lean_dec(x_510); +x_531 = x_557; +goto block_539; +} +else +{ +lean_dec(x_528); +lean_dec(x_513); +lean_dec(x_492); +lean_dec(x_480); +x_540 = x_557; +goto block_551; +} +} +else +{ +lean_dec(x_552); +if (lean_obj_tag(x_518) == 0) +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + x_558 = x_517; +} else { + lean_dec_ref(x_517); + x_558 = lean_box(0); +} +lean_inc(x_453); +x_559 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_559, 0, x_468); +lean_ctor_set(x_559, 1, x_453); +if (lean_is_scalar(x_558)) { + x_560 = lean_alloc_ctor(1, 1, 0); +} else { + x_560 = x_558; +} +lean_ctor_set(x_560, 0, x_559); +if (x_530 == 0) +{ +lean_dec(x_520); +lean_dec(x_510); +x_531 = x_560; +goto block_539; +} +else +{ +lean_dec(x_528); +lean_dec(x_513); +lean_dec(x_492); +lean_dec(x_480); +x_540 = x_560; +goto block_551; +} +} +else +{ +lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; +x_561 = lean_ctor_get(x_517, 0); +lean_inc(x_561); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + x_562 = x_517; +} else { + lean_dec_ref(x_517); + x_562 = lean_box(0); +} +x_563 = lean_ctor_get(x_518, 0); +lean_inc(x_563); +if (lean_is_exclusive(x_518)) { + lean_ctor_release(x_518, 0); + x_564 = x_518; +} else { + lean_dec_ref(x_518); + x_564 = lean_box(0); +} +x_565 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_565, 0, x_561); +lean_ctor_set(x_565, 1, x_563); +if (lean_is_scalar(x_564)) { + x_566 = lean_alloc_ctor(1, 1, 0); +} else { + x_566 = x_564; +} +lean_ctor_set(x_566, 0, x_565); +lean_inc(x_453); +x_567 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_567, 0, x_566); +lean_ctor_set(x_567, 1, x_453); +if (lean_is_scalar(x_562)) { + x_568 = lean_alloc_ctor(1, 1, 0); +} else { + x_568 = x_562; +} +lean_ctor_set(x_568, 0, x_567); +if (x_530 == 0) +{ +lean_dec(x_520); +lean_dec(x_510); +x_531 = x_568; +goto block_539; +} +else +{ +lean_dec(x_528); +lean_dec(x_513); +lean_dec(x_492); +lean_dec(x_480); +x_540 = x_568; +goto block_551; +} +} +} +} +} +block_539: +{ +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_inc(x_56); +if (lean_is_scalar(x_528)) { + x_532 = lean_alloc_ctor(0, 2, 0); +} else { + x_532 = x_528; +} +lean_ctor_set(x_532, 0, x_468); +lean_ctor_set(x_532, 1, x_56); +if (lean_is_scalar(x_492)) { + x_533 = lean_alloc_ctor(1, 1, 0); +} else { + x_533 = x_492; +} +lean_ctor_set(x_533, 0, x_532); +lean_inc(x_15); +x_534 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_534, 0, x_15); +lean_ctor_set(x_534, 1, x_515); +lean_ctor_set(x_534, 2, x_531); +lean_ctor_set(x_534, 3, x_533); +if (lean_is_scalar(x_513)) { + x_535 = lean_alloc_ctor(0, 2, 0); +} else { + x_535 = x_513; +} +lean_ctor_set(x_535, 0, x_534); +lean_ctor_set(x_535, 1, x_516); +if (lean_is_scalar(x_480)) { + x_536 = lean_alloc_ctor(1, 1, 0); +} else { + x_536 = x_480; +} +lean_ctor_set(x_536, 0, x_535); +x_537 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_538 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_453, x_465, x_466, x_467, x_38, x_455, x_464, x_45, x_536, x_530, x_537, x_6, x_7, x_8, x_9, x_10, x_11, x_527); +x_25 = x_538; +goto block_32; +} +block_551: +{ +lean_object* x_541; 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_541 = lean_box(0); +if (lean_is_scalar(x_510)) { + x_542 = lean_alloc_ctor(0, 2, 0); +} else { + x_542 = x_510; +} +lean_ctor_set(x_542, 0, x_541); +lean_ctor_set(x_542, 1, x_520); +x_543 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_543, 0, x_542); +lean_inc(x_56); +x_544 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_544, 0, x_543); +lean_ctor_set(x_544, 1, x_56); +x_545 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_545, 0, x_544); +lean_inc(x_15); +x_546 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_546, 0, x_15); +lean_ctor_set(x_546, 1, x_515); +lean_ctor_set(x_546, 2, x_540); +lean_ctor_set(x_546, 3, x_545); +x_547 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_547, 0, x_546); +lean_ctor_set(x_547, 1, x_516); +x_548 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_548, 0, x_547); +x_549 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_550 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_56, x_453, x_465, x_466, x_467, x_38, x_455, x_464, x_45, x_548, x_530, x_549, x_6, x_7, x_8, x_9, x_10, x_11, x_527); +x_25 = x_550; +goto block_32; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; uint8_t x_581; +lean_dec(x_38); +x_574 = lean_array_fget(x_47, x_48); +x_575 = lean_unsigned_to_nat(1u); +x_576 = lean_nat_add(x_48, x_575); +lean_dec(x_48); +x_577 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_577, 0, x_47); +lean_ctor_set(x_577, 1, x_576); +lean_ctor_set(x_577, 2, x_49); +x_578 = lean_ctor_get(x_42, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_42, 1); +lean_inc(x_579); +x_580 = lean_ctor_get(x_42, 2); +lean_inc(x_580); +x_581 = lean_nat_dec_lt(x_579, x_580); +if (x_581 == 0) +{ +lean_object* x_582; +lean_dec(x_580); +lean_dec(x_579); +lean_dec(x_578); +lean_dec(x_574); +lean_dec(x_15); +lean_ctor_set(x_34, 0, x_577); +x_582 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_582, 0, x_5); +x_16 = x_582; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; uint8_t x_590; +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + x_583 = x_42; +} else { + lean_dec_ref(x_42); + x_583 = lean_box(0); +} +x_584 = lean_array_fget(x_578, x_579); +x_585 = lean_nat_add(x_579, x_575); +lean_dec(x_579); +if (lean_is_scalar(x_583)) { + x_586 = lean_alloc_ctor(0, 3, 0); +} else { + x_586 = x_583; +} +lean_ctor_set(x_586, 0, x_578); +lean_ctor_set(x_586, 1, x_585); +lean_ctor_set(x_586, 2, x_580); +x_587 = lean_ctor_get(x_39, 0); +lean_inc(x_587); +x_588 = lean_ctor_get(x_39, 1); +lean_inc(x_588); +x_589 = lean_ctor_get(x_39, 2); +lean_inc(x_589); +x_590 = lean_nat_dec_lt(x_588, x_589); +if (x_590 == 0) +{ +lean_object* x_591; +lean_dec(x_589); +lean_dec(x_588); +lean_dec(x_587); +lean_dec(x_584); +lean_dec(x_574); +lean_dec(x_15); +lean_ctor_set(x_34, 0, x_577); +lean_ctor_set(x_33, 0, x_586); +x_591 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_591, 0, x_5); +x_16 = x_591; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +lean_free_object(x_37); +lean_free_object(x_33); +lean_free_object(x_5); +lean_free_object(x_34); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + x_592 = x_39; +} else { + lean_dec_ref(x_39); + x_592 = lean_box(0); +} +x_593 = lean_array_fget(x_587, x_588); +x_594 = lean_nat_add(x_588, x_575); +lean_dec(x_588); +if (lean_is_scalar(x_592)) { + x_595 = lean_alloc_ctor(0, 3, 0); +} else { + x_595 = x_592; +} +lean_ctor_set(x_595, 0, x_587); +lean_ctor_set(x_595, 1, x_594); +lean_ctor_set(x_595, 2, x_589); +x_596 = lean_ctor_get(x_593, 0); +lean_inc(x_596); +x_597 = lean_ctor_get(x_593, 1); +lean_inc(x_597); +x_598 = lean_ctor_get(x_593, 2); +lean_inc(x_598); +lean_dec(x_593); +x_599 = lean_box(0); +x_600 = lean_ctor_get(x_15, 6); +lean_inc(x_600); +if (lean_obj_tag(x_600) == 0) +{ +lean_object* x_601; uint8_t x_602; lean_object* x_603; +x_601 = lean_box(0); +x_602 = lean_unbox(x_46); +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_603 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_574, x_584, x_596, x_597, x_598, x_577, x_586, x_595, x_45, x_599, x_602, x_601, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_603) == 0) +{ +lean_object* x_604; lean_object* x_605; +x_604 = lean_ctor_get(x_603, 0); +lean_inc(x_604); +x_605 = lean_ctor_get(x_603, 1); +lean_inc(x_605); +lean_dec(x_603); +x_16 = x_604; +x_17 = x_605; +goto block_24; +} +else +{ +lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_606 = lean_ctor_get(x_603, 0); +lean_inc(x_606); +x_607 = lean_ctor_get(x_603, 1); +lean_inc(x_607); +if (lean_is_exclusive(x_603)) { + lean_ctor_release(x_603, 0); + lean_ctor_release(x_603, 1); + x_608 = x_603; +} else { + lean_dec_ref(x_603); + x_608 = lean_box(0); +} +if (lean_is_scalar(x_608)) { + x_609 = lean_alloc_ctor(1, 2, 0); +} else { + x_609 = x_608; +} +lean_ctor_set(x_609, 0, x_606); +lean_ctor_set(x_609, 1, x_607); +return x_609; +} +} +else +{ +lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_610 = lean_ctor_get(x_600, 0); +lean_inc(x_610); +if (lean_is_exclusive(x_600)) { + lean_ctor_release(x_600, 0); + x_611 = x_600; +} else { + lean_dec_ref(x_600); + x_611 = lean_box(0); +} +x_612 = lean_ctor_get(x_610, 0); +lean_inc(x_612); +if (lean_obj_tag(x_612) == 0) +{ +uint8_t x_613; lean_object* x_614; lean_object* x_615; +lean_dec(x_611); +lean_dec(x_610); +lean_dec(x_46); +x_613 = 0; +x_614 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_615 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_574, x_584, x_596, x_597, x_598, x_577, x_586, x_595, x_45, x_599, x_613, x_614, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_615) == 0) +{ +lean_object* x_616; lean_object* x_617; +x_616 = lean_ctor_get(x_615, 0); +lean_inc(x_616); +x_617 = lean_ctor_get(x_615, 1); +lean_inc(x_617); +lean_dec(x_615); +x_16 = x_616; +x_17 = x_617; +goto block_24; +} +else +{ +lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_618 = lean_ctor_get(x_615, 0); +lean_inc(x_618); +x_619 = lean_ctor_get(x_615, 1); +lean_inc(x_619); +if (lean_is_exclusive(x_615)) { + lean_ctor_release(x_615, 0); + lean_ctor_release(x_615, 1); + x_620 = x_615; +} else { + lean_dec_ref(x_615); + x_620 = lean_box(0); +} +if (lean_is_scalar(x_620)) { + x_621 = lean_alloc_ctor(1, 2, 0); +} else { + x_621 = x_620; +} +lean_ctor_set(x_621, 0, x_618); +lean_ctor_set(x_621, 1, x_619); +return x_621; +} +} +else +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; +x_622 = lean_ctor_get(x_612, 0); +lean_inc(x_622); +if (lean_is_exclusive(x_612)) { + lean_ctor_release(x_612, 0); + x_623 = x_612; +} else { + lean_dec_ref(x_612); + x_623 = lean_box(0); +} +x_624 = lean_ctor_get(x_622, 1); +lean_inc(x_624); +lean_dec(x_622); +x_625 = l_Lean_Language_SnapshotTask_get___rarg(x_624); +if (lean_obj_tag(x_625) == 0) +{ +uint8_t x_626; lean_object* x_627; lean_object* x_628; +lean_dec(x_623); +lean_dec(x_611); +lean_dec(x_610); +lean_dec(x_46); +x_626 = 0; +x_627 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_628 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_574, x_584, x_596, x_597, x_598, x_577, x_586, x_595, x_45, x_599, x_626, x_627, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_628) == 0) +{ +lean_object* x_629; lean_object* x_630; +x_629 = lean_ctor_get(x_628, 0); +lean_inc(x_629); +x_630 = lean_ctor_get(x_628, 1); +lean_inc(x_630); +lean_dec(x_628); +x_16 = x_629; +x_17 = x_630; +goto block_24; +} +else +{ +lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_631 = lean_ctor_get(x_628, 0); +lean_inc(x_631); +x_632 = lean_ctor_get(x_628, 1); +lean_inc(x_632); +if (lean_is_exclusive(x_628)) { + lean_ctor_release(x_628, 0); + lean_ctor_release(x_628, 1); + x_633 = x_628; +} else { + lean_dec_ref(x_628); + x_633 = lean_box(0); +} +if (lean_is_scalar(x_633)) { + x_634 = lean_alloc_ctor(1, 2, 0); +} else { + x_634 = x_633; +} +lean_ctor_set(x_634, 0, x_631); +lean_ctor_set(x_634, 1, x_632); +return x_634; +} +} +else +{ +lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* 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; lean_object* x_658; lean_object* x_659; lean_object* x_660; uint8_t x_661; uint8_t x_701; +x_635 = lean_ctor_get(x_625, 0); +lean_inc(x_635); +if (lean_is_exclusive(x_625)) { + lean_ctor_release(x_625, 0); + x_636 = x_625; +} else { + lean_dec_ref(x_625); + x_636 = lean_box(0); +} +x_637 = lean_ctor_get(x_15, 5); +lean_inc(x_637); +lean_inc(x_584); +lean_inc(x_637); +x_638 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_637, x_584, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_639 = lean_ctor_get(x_638, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_638, 1); +lean_inc(x_640); +if (lean_is_exclusive(x_638)) { + lean_ctor_release(x_638, 0); + lean_ctor_release(x_638, 1); + x_641 = x_638; +} else { + lean_dec_ref(x_638); + x_641 = lean_box(0); +} +x_642 = lean_ctor_get(x_639, 0); +lean_inc(x_642); +x_643 = lean_ctor_get(x_639, 1); +lean_inc(x_643); +if (lean_is_exclusive(x_639)) { + lean_ctor_release(x_639, 0); + lean_ctor_release(x_639, 1); + x_644 = x_639; +} else { + lean_dec_ref(x_639); + x_644 = lean_box(0); +} +x_645 = lean_ctor_get(x_635, 0); +lean_inc(x_645); +x_646 = lean_ctor_get(x_635, 1); +lean_inc(x_646); +x_647 = lean_ctor_get(x_635, 2); +lean_inc(x_647); +x_648 = lean_ctor_get(x_635, 3); +lean_inc(x_648); +x_649 = lean_ctor_get(x_635, 4); +lean_inc(x_649); +x_650 = lean_ctor_get(x_635, 5); +lean_inc(x_650); +x_651 = lean_ctor_get(x_635, 6); +lean_inc(x_651); +if (lean_is_exclusive(x_635)) { + lean_ctor_release(x_635, 0); + lean_ctor_release(x_635, 1); + lean_ctor_release(x_635, 2); + lean_ctor_release(x_635, 3); + lean_ctor_release(x_635, 4); + lean_ctor_release(x_635, 5); + lean_ctor_release(x_635, 6); + x_652 = x_635; +} else { + lean_dec_ref(x_635); + x_652 = lean_box(0); +} +lean_inc(x_574); +lean_inc(x_637); +x_653 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_637, x_574); +lean_inc(x_637); +lean_inc(x_643); +lean_inc(x_647); +lean_inc(x_646); +if (lean_is_scalar(x_652)) { + x_654 = lean_alloc_ctor(0, 7, 0); +} else { + x_654 = x_652; +} +lean_ctor_set(x_654, 0, x_645); +lean_ctor_set(x_654, 1, x_646); +lean_ctor_set(x_654, 2, x_647); +lean_ctor_set(x_654, 3, x_642); +lean_ctor_set(x_654, 4, x_643); +lean_ctor_set(x_654, 5, x_637); +lean_ctor_set(x_654, 6, x_653); +if (lean_is_scalar(x_636)) { + x_655 = lean_alloc_ctor(1, 1, 0); +} else { + x_655 = x_636; +} +lean_ctor_set(x_655, 0, x_654); +x_656 = lean_ctor_get(x_610, 1); +lean_inc(x_656); +lean_dec(x_610); +x_657 = lean_io_promise_resolve(x_655, x_656, x_640); +lean_dec(x_656); +x_658 = lean_ctor_get(x_657, 1); +lean_inc(x_658); +if (lean_is_exclusive(x_657)) { + lean_ctor_release(x_657, 0); + lean_ctor_release(x_657, 1); + x_659 = x_657; +} else { + lean_dec_ref(x_657); + x_659 = lean_box(0); +} +x_660 = lean_ctor_get(x_10, 2); +lean_inc(x_660); +x_701 = lean_unbox(x_46); +if (x_701 == 0) +{ +uint8_t x_702; +lean_dec(x_660); +lean_dec(x_650); +lean_dec(x_637); +x_702 = 0; +x_661 = x_702; +goto block_700; +} +else +{ +lean_object* x_703; uint8_t x_704; +x_703 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_660, x_637, x_650); +lean_dec(x_660); +x_704 = lean_unbox(x_703); +lean_dec(x_703); +x_661 = x_704; +goto block_700; +} +block_700: +{ +lean_object* x_662; lean_object* x_671; +if (lean_obj_tag(x_643) == 0) +{ +lean_dec(x_649); +lean_dec(x_648); +lean_dec(x_46); +if (x_661 == 0) +{ +lean_dec(x_651); +lean_dec(x_641); +x_662 = x_599; +goto block_670; +} +else +{ +lean_dec(x_659); +lean_dec(x_644); +lean_dec(x_623); +lean_dec(x_611); +x_671 = x_599; +goto block_682; +} +} +else +{ +lean_object* x_683; uint8_t x_684; +if (lean_is_exclusive(x_643)) { + lean_ctor_release(x_643, 0); + x_683 = x_643; +} else { + lean_dec_ref(x_643); + x_683 = lean_box(0); +} +x_684 = lean_unbox(x_46); +lean_dec(x_46); +if (x_684 == 0) +{ +lean_object* x_685; lean_object* x_686; +lean_dec(x_649); +lean_dec(x_648); +lean_inc(x_584); +x_685 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_685, 0, x_599); +lean_ctor_set(x_685, 1, x_584); +if (lean_is_scalar(x_683)) { + x_686 = lean_alloc_ctor(1, 1, 0); +} else { + x_686 = x_683; +} +lean_ctor_set(x_686, 0, x_685); +if (x_661 == 0) +{ +lean_dec(x_651); +lean_dec(x_641); +x_662 = x_686; +goto block_670; +} +else +{ +lean_dec(x_659); +lean_dec(x_644); +lean_dec(x_623); +lean_dec(x_611); +x_671 = x_686; +goto block_682; +} +} +else +{ +if (lean_obj_tag(x_648) == 0) +{ +lean_object* x_687; lean_object* x_688; +lean_dec(x_649); +lean_inc(x_584); +x_687 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_687, 0, x_599); +lean_ctor_set(x_687, 1, x_584); +if (lean_is_scalar(x_683)) { + x_688 = lean_alloc_ctor(1, 1, 0); +} else { + x_688 = x_683; +} +lean_ctor_set(x_688, 0, x_687); +if (x_661 == 0) +{ +lean_dec(x_651); +lean_dec(x_641); +x_662 = x_688; +goto block_670; +} +else +{ +lean_dec(x_659); +lean_dec(x_644); +lean_dec(x_623); +lean_dec(x_611); +x_671 = x_688; +goto block_682; +} +} +else +{ +lean_dec(x_683); +if (lean_obj_tag(x_649) == 0) +{ +lean_object* x_689; lean_object* x_690; lean_object* x_691; +if (lean_is_exclusive(x_648)) { + lean_ctor_release(x_648, 0); + x_689 = x_648; +} else { + lean_dec_ref(x_648); + x_689 = lean_box(0); +} +lean_inc(x_584); +x_690 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_690, 0, x_599); +lean_ctor_set(x_690, 1, x_584); +if (lean_is_scalar(x_689)) { + x_691 = lean_alloc_ctor(1, 1, 0); +} else { + x_691 = x_689; +} +lean_ctor_set(x_691, 0, x_690); +if (x_661 == 0) +{ +lean_dec(x_651); +lean_dec(x_641); +x_662 = x_691; +goto block_670; +} +else +{ +lean_dec(x_659); +lean_dec(x_644); +lean_dec(x_623); +lean_dec(x_611); +x_671 = x_691; +goto block_682; +} +} +else +{ +lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; +x_692 = lean_ctor_get(x_648, 0); +lean_inc(x_692); +if (lean_is_exclusive(x_648)) { + lean_ctor_release(x_648, 0); + x_693 = x_648; +} else { + lean_dec_ref(x_648); + x_693 = lean_box(0); +} +x_694 = lean_ctor_get(x_649, 0); +lean_inc(x_694); +if (lean_is_exclusive(x_649)) { + lean_ctor_release(x_649, 0); + x_695 = x_649; +} else { + lean_dec_ref(x_649); + x_695 = lean_box(0); +} +x_696 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_696, 0, x_692); +lean_ctor_set(x_696, 1, x_694); +if (lean_is_scalar(x_695)) { + x_697 = lean_alloc_ctor(1, 1, 0); +} else { + x_697 = x_695; +} +lean_ctor_set(x_697, 0, x_696); +lean_inc(x_584); +x_698 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_584); +if (lean_is_scalar(x_693)) { + x_699 = lean_alloc_ctor(1, 1, 0); +} else { + x_699 = x_693; +} +lean_ctor_set(x_699, 0, x_698); +if (x_661 == 0) +{ +lean_dec(x_651); +lean_dec(x_641); +x_662 = x_699; +goto block_670; +} +else +{ +lean_dec(x_659); +lean_dec(x_644); +lean_dec(x_623); +lean_dec(x_611); +x_671 = x_699; +goto block_682; +} +} +} +} +} +block_670: +{ +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; +lean_inc(x_574); +if (lean_is_scalar(x_659)) { + x_663 = lean_alloc_ctor(0, 2, 0); +} else { + x_663 = x_659; +} +lean_ctor_set(x_663, 0, x_599); +lean_ctor_set(x_663, 1, x_574); +if (lean_is_scalar(x_623)) { + x_664 = lean_alloc_ctor(1, 1, 0); +} else { + x_664 = x_623; +} +lean_ctor_set(x_664, 0, x_663); +lean_inc(x_15); +x_665 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_665, 0, x_15); +lean_ctor_set(x_665, 1, x_646); +lean_ctor_set(x_665, 2, x_662); +lean_ctor_set(x_665, 3, x_664); +if (lean_is_scalar(x_644)) { + x_666 = lean_alloc_ctor(0, 2, 0); +} else { + x_666 = x_644; +} +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_647); +if (lean_is_scalar(x_611)) { + x_667 = lean_alloc_ctor(1, 1, 0); +} else { + x_667 = x_611; +} +lean_ctor_set(x_667, 0, x_666); +x_668 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_669 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_574, x_584, x_596, x_597, x_598, x_577, x_586, x_595, x_45, x_667, x_661, x_668, x_6, x_7, x_8, x_9, x_10, x_11, x_658); +x_25 = x_669; +goto block_32; +} +block_682: +{ +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_object* x_679; lean_object* x_680; lean_object* x_681; +x_672 = lean_box(0); +if (lean_is_scalar(x_641)) { + x_673 = lean_alloc_ctor(0, 2, 0); +} else { + x_673 = x_641; +} +lean_ctor_set(x_673, 0, x_672); +lean_ctor_set(x_673, 1, x_651); +x_674 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_674, 0, x_673); +lean_inc(x_574); +x_675 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_675, 0, x_674); +lean_ctor_set(x_675, 1, x_574); +x_676 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_676, 0, x_675); +lean_inc(x_15); +x_677 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_677, 0, x_15); +lean_ctor_set(x_677, 1, x_646); +lean_ctor_set(x_677, 2, x_671); +lean_ctor_set(x_677, 3, x_676); +x_678 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_678, 0, x_677); +lean_ctor_set(x_678, 1, x_647); +x_679 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_679, 0, x_678); +x_680 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_681 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_574, x_584, x_596, x_597, x_598, x_577, x_586, x_595, x_45, x_679, x_661, x_680, x_6, x_7, x_8, x_9, x_10, x_11, x_658); +x_25 = x_681; +goto block_32; +} +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; uint8_t x_710; +x_705 = lean_ctor_get(x_37, 0); +x_706 = lean_ctor_get(x_37, 1); +lean_inc(x_706); +lean_inc(x_705); +lean_dec(x_37); +x_707 = lean_ctor_get(x_38, 0); +lean_inc(x_707); +x_708 = lean_ctor_get(x_38, 1); +lean_inc(x_708); +x_709 = lean_ctor_get(x_38, 2); +lean_inc(x_709); +x_710 = lean_nat_dec_lt(x_708, x_709); +if (x_710 == 0) +{ +lean_object* x_711; lean_object* x_712; +lean_dec(x_709); +lean_dec(x_708); +lean_dec(x_707); +lean_dec(x_15); +x_711 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_711, 0, x_705); +lean_ctor_set(x_711, 1, x_706); +lean_ctor_set(x_34, 1, x_711); +x_712 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_712, 0, x_5); +x_16 = x_712; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; uint8_t x_721; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_713 = x_38; +} else { + lean_dec_ref(x_38); + x_713 = lean_box(0); +} +x_714 = lean_array_fget(x_707, x_708); +x_715 = lean_unsigned_to_nat(1u); +x_716 = lean_nat_add(x_708, x_715); +lean_dec(x_708); +if (lean_is_scalar(x_713)) { + x_717 = lean_alloc_ctor(0, 3, 0); +} else { + x_717 = x_713; +} +lean_ctor_set(x_717, 0, x_707); +lean_ctor_set(x_717, 1, x_716); +lean_ctor_set(x_717, 2, x_709); +x_718 = lean_ctor_get(x_42, 0); +lean_inc(x_718); +x_719 = lean_ctor_get(x_42, 1); +lean_inc(x_719); +x_720 = lean_ctor_get(x_42, 2); +lean_inc(x_720); +x_721 = lean_nat_dec_lt(x_719, x_720); +if (x_721 == 0) +{ +lean_object* x_722; lean_object* x_723; +lean_dec(x_720); +lean_dec(x_719); +lean_dec(x_718); +lean_dec(x_714); +lean_dec(x_15); +x_722 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_722, 0, x_705); +lean_ctor_set(x_722, 1, x_706); +lean_ctor_set(x_34, 1, x_722); +lean_ctor_set(x_34, 0, x_717); +x_723 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_723, 0, x_5); +x_16 = x_723; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; uint8_t x_731; +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + x_724 = x_42; +} else { + lean_dec_ref(x_42); + x_724 = lean_box(0); +} +x_725 = lean_array_fget(x_718, x_719); +x_726 = lean_nat_add(x_719, x_715); +lean_dec(x_719); +if (lean_is_scalar(x_724)) { + x_727 = lean_alloc_ctor(0, 3, 0); +} else { + x_727 = x_724; +} +lean_ctor_set(x_727, 0, x_718); +lean_ctor_set(x_727, 1, x_726); +lean_ctor_set(x_727, 2, x_720); +x_728 = lean_ctor_get(x_39, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_39, 1); +lean_inc(x_729); +x_730 = lean_ctor_get(x_39, 2); +lean_inc(x_730); +x_731 = lean_nat_dec_lt(x_729, x_730); +if (x_731 == 0) +{ +lean_object* x_732; lean_object* x_733; +lean_dec(x_730); +lean_dec(x_729); +lean_dec(x_728); +lean_dec(x_725); +lean_dec(x_714); +lean_dec(x_15); +x_732 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_732, 0, x_705); +lean_ctor_set(x_732, 1, x_706); +lean_ctor_set(x_34, 1, x_732); +lean_ctor_set(x_34, 0, x_717); +lean_ctor_set(x_33, 0, x_727); +x_733 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_733, 0, x_5); +x_16 = x_733; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; +lean_free_object(x_33); +lean_free_object(x_5); +lean_free_object(x_34); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + x_734 = x_39; +} else { + lean_dec_ref(x_39); + x_734 = lean_box(0); +} +x_735 = lean_array_fget(x_728, x_729); +x_736 = lean_nat_add(x_729, x_715); +lean_dec(x_729); +if (lean_is_scalar(x_734)) { + x_737 = lean_alloc_ctor(0, 3, 0); +} else { + x_737 = x_734; +} +lean_ctor_set(x_737, 0, x_728); +lean_ctor_set(x_737, 1, x_736); +lean_ctor_set(x_737, 2, x_730); +x_738 = lean_ctor_get(x_735, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_735, 1); +lean_inc(x_739); +x_740 = lean_ctor_get(x_735, 2); +lean_inc(x_740); +lean_dec(x_735); +x_741 = lean_box(0); +x_742 = lean_ctor_get(x_15, 6); +lean_inc(x_742); +if (lean_obj_tag(x_742) == 0) +{ +lean_object* x_743; uint8_t x_744; lean_object* x_745; +x_743 = lean_box(0); +x_744 = lean_unbox(x_706); +lean_dec(x_706); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_745 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_714, x_725, x_738, x_739, x_740, x_717, x_727, x_737, x_705, x_741, x_744, x_743, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_745) == 0) +{ +lean_object* x_746; lean_object* x_747; +x_746 = lean_ctor_get(x_745, 0); +lean_inc(x_746); +x_747 = lean_ctor_get(x_745, 1); +lean_inc(x_747); +lean_dec(x_745); +x_16 = x_746; +x_17 = x_747; +goto block_24; +} +else +{ +lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_748 = lean_ctor_get(x_745, 0); +lean_inc(x_748); +x_749 = lean_ctor_get(x_745, 1); +lean_inc(x_749); +if (lean_is_exclusive(x_745)) { + lean_ctor_release(x_745, 0); + lean_ctor_release(x_745, 1); + x_750 = x_745; +} else { + lean_dec_ref(x_745); + x_750 = lean_box(0); +} +if (lean_is_scalar(x_750)) { + x_751 = lean_alloc_ctor(1, 2, 0); +} else { + x_751 = x_750; +} +lean_ctor_set(x_751, 0, x_748); +lean_ctor_set(x_751, 1, x_749); +return x_751; +} +} +else +{ +lean_object* x_752; lean_object* x_753; lean_object* x_754; +x_752 = lean_ctor_get(x_742, 0); +lean_inc(x_752); +if (lean_is_exclusive(x_742)) { + lean_ctor_release(x_742, 0); + x_753 = x_742; +} else { + lean_dec_ref(x_742); + x_753 = lean_box(0); +} +x_754 = lean_ctor_get(x_752, 0); +lean_inc(x_754); +if (lean_obj_tag(x_754) == 0) +{ +uint8_t x_755; lean_object* x_756; lean_object* x_757; +lean_dec(x_753); +lean_dec(x_752); +lean_dec(x_706); +x_755 = 0; +x_756 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_757 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_714, x_725, x_738, x_739, x_740, x_717, x_727, x_737, x_705, x_741, x_755, x_756, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_757) == 0) +{ +lean_object* x_758; lean_object* x_759; +x_758 = lean_ctor_get(x_757, 0); +lean_inc(x_758); +x_759 = lean_ctor_get(x_757, 1); +lean_inc(x_759); +lean_dec(x_757); +x_16 = x_758; +x_17 = x_759; +goto block_24; +} +else +{ +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_760 = lean_ctor_get(x_757, 0); +lean_inc(x_760); +x_761 = lean_ctor_get(x_757, 1); +lean_inc(x_761); +if (lean_is_exclusive(x_757)) { + lean_ctor_release(x_757, 0); + lean_ctor_release(x_757, 1); + x_762 = x_757; +} else { + lean_dec_ref(x_757); + x_762 = lean_box(0); +} +if (lean_is_scalar(x_762)) { + x_763 = lean_alloc_ctor(1, 2, 0); +} else { + x_763 = x_762; +} +lean_ctor_set(x_763, 0, x_760); +lean_ctor_set(x_763, 1, x_761); +return x_763; +} +} +else +{ +lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; +x_764 = lean_ctor_get(x_754, 0); +lean_inc(x_764); +if (lean_is_exclusive(x_754)) { + lean_ctor_release(x_754, 0); + x_765 = x_754; +} else { + lean_dec_ref(x_754); + x_765 = lean_box(0); +} +x_766 = lean_ctor_get(x_764, 1); +lean_inc(x_766); +lean_dec(x_764); +x_767 = l_Lean_Language_SnapshotTask_get___rarg(x_766); +if (lean_obj_tag(x_767) == 0) +{ +uint8_t x_768; lean_object* x_769; lean_object* x_770; +lean_dec(x_765); +lean_dec(x_753); +lean_dec(x_752); +lean_dec(x_706); +x_768 = 0; +x_769 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_770 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_714, x_725, x_738, x_739, x_740, x_717, x_727, x_737, x_705, x_741, x_768, x_769, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_770) == 0) +{ +lean_object* x_771; lean_object* x_772; +x_771 = lean_ctor_get(x_770, 0); +lean_inc(x_771); +x_772 = lean_ctor_get(x_770, 1); +lean_inc(x_772); +lean_dec(x_770); +x_16 = x_771; +x_17 = x_772; +goto block_24; +} +else +{ +lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_773 = lean_ctor_get(x_770, 0); +lean_inc(x_773); +x_774 = lean_ctor_get(x_770, 1); +lean_inc(x_774); +if (lean_is_exclusive(x_770)) { + lean_ctor_release(x_770, 0); + lean_ctor_release(x_770, 1); + x_775 = x_770; +} else { + lean_dec_ref(x_770); + x_775 = lean_box(0); +} +if (lean_is_scalar(x_775)) { + x_776 = lean_alloc_ctor(1, 2, 0); +} else { + x_776 = x_775; +} +lean_ctor_set(x_776, 0, x_773); +lean_ctor_set(x_776, 1, x_774); +return x_776; +} +} +else +{ +lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; uint8_t x_803; uint8_t x_843; +x_777 = lean_ctor_get(x_767, 0); +lean_inc(x_777); +if (lean_is_exclusive(x_767)) { + lean_ctor_release(x_767, 0); + x_778 = x_767; +} else { + lean_dec_ref(x_767); + x_778 = lean_box(0); +} +x_779 = lean_ctor_get(x_15, 5); +lean_inc(x_779); +lean_inc(x_725); +lean_inc(x_779); +x_780 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_779, x_725, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_781 = lean_ctor_get(x_780, 0); +lean_inc(x_781); +x_782 = lean_ctor_get(x_780, 1); +lean_inc(x_782); +if (lean_is_exclusive(x_780)) { + lean_ctor_release(x_780, 0); + lean_ctor_release(x_780, 1); + x_783 = x_780; +} else { + lean_dec_ref(x_780); + x_783 = lean_box(0); +} +x_784 = lean_ctor_get(x_781, 0); +lean_inc(x_784); +x_785 = lean_ctor_get(x_781, 1); +lean_inc(x_785); +if (lean_is_exclusive(x_781)) { + lean_ctor_release(x_781, 0); + lean_ctor_release(x_781, 1); + x_786 = x_781; +} else { + lean_dec_ref(x_781); + x_786 = lean_box(0); +} +x_787 = lean_ctor_get(x_777, 0); +lean_inc(x_787); +x_788 = lean_ctor_get(x_777, 1); +lean_inc(x_788); +x_789 = lean_ctor_get(x_777, 2); +lean_inc(x_789); +x_790 = lean_ctor_get(x_777, 3); +lean_inc(x_790); +x_791 = lean_ctor_get(x_777, 4); +lean_inc(x_791); +x_792 = lean_ctor_get(x_777, 5); +lean_inc(x_792); +x_793 = lean_ctor_get(x_777, 6); +lean_inc(x_793); +if (lean_is_exclusive(x_777)) { + lean_ctor_release(x_777, 0); + lean_ctor_release(x_777, 1); + lean_ctor_release(x_777, 2); + lean_ctor_release(x_777, 3); + lean_ctor_release(x_777, 4); + lean_ctor_release(x_777, 5); + lean_ctor_release(x_777, 6); + x_794 = x_777; +} else { + lean_dec_ref(x_777); + x_794 = lean_box(0); +} +lean_inc(x_714); +lean_inc(x_779); +x_795 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_779, x_714); +lean_inc(x_779); +lean_inc(x_785); +lean_inc(x_789); +lean_inc(x_788); +if (lean_is_scalar(x_794)) { + x_796 = lean_alloc_ctor(0, 7, 0); +} else { + x_796 = x_794; +} +lean_ctor_set(x_796, 0, x_787); +lean_ctor_set(x_796, 1, x_788); +lean_ctor_set(x_796, 2, x_789); +lean_ctor_set(x_796, 3, x_784); +lean_ctor_set(x_796, 4, x_785); +lean_ctor_set(x_796, 5, x_779); +lean_ctor_set(x_796, 6, x_795); +if (lean_is_scalar(x_778)) { + x_797 = lean_alloc_ctor(1, 1, 0); +} else { + x_797 = x_778; +} +lean_ctor_set(x_797, 0, x_796); +x_798 = lean_ctor_get(x_752, 1); +lean_inc(x_798); +lean_dec(x_752); +x_799 = lean_io_promise_resolve(x_797, x_798, x_782); +lean_dec(x_798); +x_800 = lean_ctor_get(x_799, 1); +lean_inc(x_800); +if (lean_is_exclusive(x_799)) { + lean_ctor_release(x_799, 0); + lean_ctor_release(x_799, 1); + x_801 = x_799; +} else { + lean_dec_ref(x_799); + x_801 = lean_box(0); +} +x_802 = lean_ctor_get(x_10, 2); +lean_inc(x_802); +x_843 = lean_unbox(x_706); +if (x_843 == 0) +{ +uint8_t x_844; +lean_dec(x_802); +lean_dec(x_792); +lean_dec(x_779); +x_844 = 0; +x_803 = x_844; +goto block_842; +} +else +{ +lean_object* x_845; uint8_t x_846; +x_845 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_802, x_779, x_792); +lean_dec(x_802); +x_846 = lean_unbox(x_845); +lean_dec(x_845); +x_803 = x_846; +goto block_842; +} +block_842: +{ +lean_object* x_804; lean_object* x_813; +if (lean_obj_tag(x_785) == 0) +{ +lean_dec(x_791); +lean_dec(x_790); +lean_dec(x_706); +if (x_803 == 0) +{ +lean_dec(x_793); +lean_dec(x_783); +x_804 = x_741; +goto block_812; +} +else +{ +lean_dec(x_801); +lean_dec(x_786); +lean_dec(x_765); +lean_dec(x_753); +x_813 = x_741; +goto block_824; +} +} +else +{ +lean_object* x_825; uint8_t x_826; +if (lean_is_exclusive(x_785)) { + lean_ctor_release(x_785, 0); + x_825 = x_785; +} else { + lean_dec_ref(x_785); + x_825 = lean_box(0); +} +x_826 = lean_unbox(x_706); +lean_dec(x_706); +if (x_826 == 0) +{ +lean_object* x_827; lean_object* x_828; +lean_dec(x_791); +lean_dec(x_790); +lean_inc(x_725); +x_827 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_827, 0, x_741); +lean_ctor_set(x_827, 1, x_725); +if (lean_is_scalar(x_825)) { + x_828 = lean_alloc_ctor(1, 1, 0); +} else { + x_828 = x_825; +} +lean_ctor_set(x_828, 0, x_827); +if (x_803 == 0) +{ +lean_dec(x_793); +lean_dec(x_783); +x_804 = x_828; +goto block_812; +} +else +{ +lean_dec(x_801); +lean_dec(x_786); +lean_dec(x_765); +lean_dec(x_753); +x_813 = x_828; +goto block_824; +} +} +else +{ +if (lean_obj_tag(x_790) == 0) +{ +lean_object* x_829; lean_object* x_830; +lean_dec(x_791); +lean_inc(x_725); +x_829 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_829, 0, x_741); +lean_ctor_set(x_829, 1, x_725); +if (lean_is_scalar(x_825)) { + x_830 = lean_alloc_ctor(1, 1, 0); +} else { + x_830 = x_825; +} +lean_ctor_set(x_830, 0, x_829); +if (x_803 == 0) +{ +lean_dec(x_793); +lean_dec(x_783); +x_804 = x_830; +goto block_812; +} +else +{ +lean_dec(x_801); +lean_dec(x_786); +lean_dec(x_765); +lean_dec(x_753); +x_813 = x_830; +goto block_824; +} +} +else +{ +lean_dec(x_825); +if (lean_obj_tag(x_791) == 0) +{ +lean_object* x_831; lean_object* x_832; lean_object* x_833; +if (lean_is_exclusive(x_790)) { + lean_ctor_release(x_790, 0); + x_831 = x_790; +} else { + lean_dec_ref(x_790); + x_831 = lean_box(0); +} +lean_inc(x_725); +x_832 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_832, 0, x_741); +lean_ctor_set(x_832, 1, x_725); +if (lean_is_scalar(x_831)) { + x_833 = lean_alloc_ctor(1, 1, 0); +} else { + x_833 = x_831; +} +lean_ctor_set(x_833, 0, x_832); +if (x_803 == 0) +{ +lean_dec(x_793); +lean_dec(x_783); +x_804 = x_833; +goto block_812; +} +else +{ +lean_dec(x_801); +lean_dec(x_786); +lean_dec(x_765); +lean_dec(x_753); +x_813 = x_833; +goto block_824; +} +} +else +{ +lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; +x_834 = lean_ctor_get(x_790, 0); +lean_inc(x_834); +if (lean_is_exclusive(x_790)) { + lean_ctor_release(x_790, 0); + x_835 = x_790; +} else { + lean_dec_ref(x_790); + x_835 = lean_box(0); +} +x_836 = lean_ctor_get(x_791, 0); +lean_inc(x_836); +if (lean_is_exclusive(x_791)) { + lean_ctor_release(x_791, 0); + x_837 = x_791; +} else { + lean_dec_ref(x_791); + x_837 = lean_box(0); +} +x_838 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_838, 0, x_834); +lean_ctor_set(x_838, 1, x_836); +if (lean_is_scalar(x_837)) { + x_839 = lean_alloc_ctor(1, 1, 0); +} else { + x_839 = x_837; +} +lean_ctor_set(x_839, 0, x_838); +lean_inc(x_725); +x_840 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_840, 0, x_839); +lean_ctor_set(x_840, 1, x_725); +if (lean_is_scalar(x_835)) { + x_841 = lean_alloc_ctor(1, 1, 0); +} else { + x_841 = x_835; +} +lean_ctor_set(x_841, 0, x_840); +if (x_803 == 0) +{ +lean_dec(x_793); +lean_dec(x_783); +x_804 = x_841; +goto block_812; +} +else +{ +lean_dec(x_801); +lean_dec(x_786); +lean_dec(x_765); +lean_dec(x_753); +x_813 = x_841; +goto block_824; +} +} +} +} +} +block_812: +{ +lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; +lean_inc(x_714); +if (lean_is_scalar(x_801)) { + x_805 = lean_alloc_ctor(0, 2, 0); +} else { + x_805 = x_801; +} +lean_ctor_set(x_805, 0, x_741); +lean_ctor_set(x_805, 1, x_714); +if (lean_is_scalar(x_765)) { + x_806 = lean_alloc_ctor(1, 1, 0); +} else { + x_806 = x_765; +} +lean_ctor_set(x_806, 0, x_805); +lean_inc(x_15); +x_807 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_807, 0, x_15); +lean_ctor_set(x_807, 1, x_788); +lean_ctor_set(x_807, 2, x_804); +lean_ctor_set(x_807, 3, x_806); +if (lean_is_scalar(x_786)) { + x_808 = lean_alloc_ctor(0, 2, 0); +} else { + x_808 = x_786; +} +lean_ctor_set(x_808, 0, x_807); +lean_ctor_set(x_808, 1, x_789); +if (lean_is_scalar(x_753)) { + x_809 = lean_alloc_ctor(1, 1, 0); +} else { + x_809 = x_753; +} +lean_ctor_set(x_809, 0, x_808); +x_810 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_811 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_714, x_725, x_738, x_739, x_740, x_717, x_727, x_737, x_705, x_809, x_803, x_810, x_6, x_7, x_8, x_9, x_10, x_11, x_800); +x_25 = x_811; +goto block_32; +} +block_824: +{ +lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; +x_814 = lean_box(0); +if (lean_is_scalar(x_783)) { + x_815 = lean_alloc_ctor(0, 2, 0); +} else { + x_815 = x_783; +} +lean_ctor_set(x_815, 0, x_814); +lean_ctor_set(x_815, 1, x_793); +x_816 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_816, 0, x_815); +lean_inc(x_714); +x_817 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_817, 0, x_816); +lean_ctor_set(x_817, 1, x_714); +x_818 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_818, 0, x_817); +lean_inc(x_15); +x_819 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_819, 0, x_15); +lean_ctor_set(x_819, 1, x_788); +lean_ctor_set(x_819, 2, x_813); +lean_ctor_set(x_819, 3, x_818); +x_820 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_820, 0, x_819); +lean_ctor_set(x_820, 1, x_789); +x_821 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_821, 0, x_820); +x_822 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_823 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_714, x_725, x_738, x_739, x_740, x_717, x_727, x_737, x_705, x_821, x_803, x_822, x_6, x_7, x_8, x_9, x_10, x_11, x_800); +x_25 = x_823; +goto block_32; +} +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; uint8_t x_854; +x_847 = lean_ctor_get(x_33, 0); +lean_inc(x_847); +lean_dec(x_33); +x_848 = lean_ctor_get(x_37, 0); +lean_inc(x_848); +x_849 = lean_ctor_get(x_37, 1); +lean_inc(x_849); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_850 = x_37; +} else { + lean_dec_ref(x_37); + x_850 = lean_box(0); +} +x_851 = lean_ctor_get(x_38, 0); +lean_inc(x_851); +x_852 = lean_ctor_get(x_38, 1); +lean_inc(x_852); +x_853 = lean_ctor_get(x_38, 2); +lean_inc(x_853); +x_854 = lean_nat_dec_lt(x_852, x_853); +if (x_854 == 0) +{ +lean_object* x_855; lean_object* x_856; lean_object* x_857; +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_15); +if (lean_is_scalar(x_850)) { + x_855 = lean_alloc_ctor(0, 2, 0); +} else { + x_855 = x_850; +} +lean_ctor_set(x_855, 0, x_848); +lean_ctor_set(x_855, 1, x_849); +lean_ctor_set(x_34, 1, x_855); +x_856 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_856, 0, x_847); +lean_ctor_set(x_856, 1, x_34); +lean_ctor_set(x_5, 1, x_856); +x_857 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_857, 0, x_5); +x_16 = x_857; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; uint8_t x_866; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + x_858 = x_38; +} else { + lean_dec_ref(x_38); + x_858 = lean_box(0); +} +x_859 = lean_array_fget(x_851, x_852); +x_860 = lean_unsigned_to_nat(1u); +x_861 = lean_nat_add(x_852, x_860); +lean_dec(x_852); +if (lean_is_scalar(x_858)) { + x_862 = lean_alloc_ctor(0, 3, 0); +} else { + x_862 = x_858; +} +lean_ctor_set(x_862, 0, x_851); +lean_ctor_set(x_862, 1, x_861); +lean_ctor_set(x_862, 2, x_853); +x_863 = lean_ctor_get(x_847, 0); +lean_inc(x_863); +x_864 = lean_ctor_get(x_847, 1); +lean_inc(x_864); +x_865 = lean_ctor_get(x_847, 2); +lean_inc(x_865); +x_866 = lean_nat_dec_lt(x_864, x_865); +if (x_866 == 0) +{ +lean_object* x_867; lean_object* x_868; lean_object* x_869; +lean_dec(x_865); +lean_dec(x_864); +lean_dec(x_863); +lean_dec(x_859); +lean_dec(x_15); +if (lean_is_scalar(x_850)) { + x_867 = lean_alloc_ctor(0, 2, 0); +} else { + x_867 = x_850; +} +lean_ctor_set(x_867, 0, x_848); +lean_ctor_set(x_867, 1, x_849); +lean_ctor_set(x_34, 1, x_867); +lean_ctor_set(x_34, 0, x_862); +x_868 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_868, 0, x_847); +lean_ctor_set(x_868, 1, x_34); +lean_ctor_set(x_5, 1, x_868); +x_869 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_869, 0, x_5); +x_16 = x_869; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; uint8_t x_877; +if (lean_is_exclusive(x_847)) { + lean_ctor_release(x_847, 0); + lean_ctor_release(x_847, 1); + lean_ctor_release(x_847, 2); + x_870 = x_847; +} else { + lean_dec_ref(x_847); + x_870 = lean_box(0); +} +x_871 = lean_array_fget(x_863, x_864); +x_872 = lean_nat_add(x_864, x_860); +lean_dec(x_864); +if (lean_is_scalar(x_870)) { + x_873 = lean_alloc_ctor(0, 3, 0); +} else { + x_873 = x_870; +} +lean_ctor_set(x_873, 0, x_863); +lean_ctor_set(x_873, 1, x_872); +lean_ctor_set(x_873, 2, x_865); +x_874 = lean_ctor_get(x_39, 0); +lean_inc(x_874); +x_875 = lean_ctor_get(x_39, 1); +lean_inc(x_875); +x_876 = lean_ctor_get(x_39, 2); +lean_inc(x_876); +x_877 = lean_nat_dec_lt(x_875, x_876); +if (x_877 == 0) +{ +lean_object* x_878; lean_object* x_879; lean_object* x_880; +lean_dec(x_876); +lean_dec(x_875); +lean_dec(x_874); +lean_dec(x_871); +lean_dec(x_859); +lean_dec(x_15); +if (lean_is_scalar(x_850)) { + x_878 = lean_alloc_ctor(0, 2, 0); +} else { + x_878 = x_850; +} +lean_ctor_set(x_878, 0, x_848); +lean_ctor_set(x_878, 1, x_849); +lean_ctor_set(x_34, 1, x_878); +lean_ctor_set(x_34, 0, x_862); +x_879 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_879, 0, x_873); +lean_ctor_set(x_879, 1, x_34); +lean_ctor_set(x_5, 1, x_879); +x_880 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_880, 0, x_5); +x_16 = x_880; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; +lean_dec(x_850); +lean_free_object(x_5); +lean_free_object(x_34); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + x_881 = x_39; +} else { + lean_dec_ref(x_39); + x_881 = lean_box(0); +} +x_882 = lean_array_fget(x_874, x_875); +x_883 = lean_nat_add(x_875, x_860); +lean_dec(x_875); +if (lean_is_scalar(x_881)) { + x_884 = lean_alloc_ctor(0, 3, 0); +} else { + x_884 = x_881; +} +lean_ctor_set(x_884, 0, x_874); +lean_ctor_set(x_884, 1, x_883); +lean_ctor_set(x_884, 2, x_876); +x_885 = lean_ctor_get(x_882, 0); +lean_inc(x_885); +x_886 = lean_ctor_get(x_882, 1); +lean_inc(x_886); +x_887 = lean_ctor_get(x_882, 2); +lean_inc(x_887); +lean_dec(x_882); +x_888 = lean_box(0); +x_889 = lean_ctor_get(x_15, 6); +lean_inc(x_889); +if (lean_obj_tag(x_889) == 0) +{ +lean_object* x_890; uint8_t x_891; lean_object* x_892; +x_890 = lean_box(0); +x_891 = lean_unbox(x_849); +lean_dec(x_849); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_892 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_859, x_871, x_885, x_886, x_887, x_862, x_873, x_884, x_848, x_888, x_891, x_890, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_892) == 0) +{ +lean_object* x_893; lean_object* x_894; +x_893 = lean_ctor_get(x_892, 0); +lean_inc(x_893); +x_894 = lean_ctor_get(x_892, 1); +lean_inc(x_894); +lean_dec(x_892); +x_16 = x_893; +x_17 = x_894; +goto block_24; +} +else +{ +lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_895 = lean_ctor_get(x_892, 0); +lean_inc(x_895); +x_896 = lean_ctor_get(x_892, 1); +lean_inc(x_896); +if (lean_is_exclusive(x_892)) { + lean_ctor_release(x_892, 0); + lean_ctor_release(x_892, 1); + x_897 = x_892; +} else { + lean_dec_ref(x_892); + x_897 = lean_box(0); +} +if (lean_is_scalar(x_897)) { + x_898 = lean_alloc_ctor(1, 2, 0); +} else { + x_898 = x_897; +} +lean_ctor_set(x_898, 0, x_895); +lean_ctor_set(x_898, 1, x_896); +return x_898; +} +} +else +{ +lean_object* x_899; lean_object* x_900; lean_object* x_901; +x_899 = lean_ctor_get(x_889, 0); +lean_inc(x_899); +if (lean_is_exclusive(x_889)) { + lean_ctor_release(x_889, 0); + x_900 = x_889; +} else { + lean_dec_ref(x_889); + x_900 = lean_box(0); +} +x_901 = lean_ctor_get(x_899, 0); +lean_inc(x_901); +if (lean_obj_tag(x_901) == 0) +{ +uint8_t x_902; lean_object* x_903; lean_object* x_904; +lean_dec(x_900); +lean_dec(x_899); +lean_dec(x_849); +x_902 = 0; +x_903 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_904 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_859, x_871, x_885, x_886, x_887, x_862, x_873, x_884, x_848, x_888, x_902, x_903, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_904) == 0) +{ +lean_object* x_905; lean_object* x_906; +x_905 = lean_ctor_get(x_904, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_904, 1); +lean_inc(x_906); +lean_dec(x_904); +x_16 = x_905; +x_17 = x_906; +goto block_24; +} +else +{ +lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_907 = lean_ctor_get(x_904, 0); +lean_inc(x_907); +x_908 = lean_ctor_get(x_904, 1); +lean_inc(x_908); +if (lean_is_exclusive(x_904)) { + lean_ctor_release(x_904, 0); + lean_ctor_release(x_904, 1); + x_909 = x_904; +} else { + lean_dec_ref(x_904); + x_909 = lean_box(0); +} +if (lean_is_scalar(x_909)) { + x_910 = lean_alloc_ctor(1, 2, 0); +} else { + x_910 = x_909; +} +lean_ctor_set(x_910, 0, x_907); +lean_ctor_set(x_910, 1, x_908); +return x_910; +} +} +else +{ +lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_911 = lean_ctor_get(x_901, 0); +lean_inc(x_911); +if (lean_is_exclusive(x_901)) { + lean_ctor_release(x_901, 0); + x_912 = x_901; +} else { + lean_dec_ref(x_901); + x_912 = lean_box(0); +} +x_913 = lean_ctor_get(x_911, 1); +lean_inc(x_913); +lean_dec(x_911); +x_914 = l_Lean_Language_SnapshotTask_get___rarg(x_913); +if (lean_obj_tag(x_914) == 0) +{ +uint8_t x_915; lean_object* x_916; lean_object* x_917; +lean_dec(x_912); +lean_dec(x_900); +lean_dec(x_899); +lean_dec(x_849); +x_915 = 0; +x_916 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_917 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_859, x_871, x_885, x_886, x_887, x_862, x_873, x_884, x_848, x_888, x_915, x_916, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_917) == 0) +{ +lean_object* x_918; lean_object* x_919; +x_918 = lean_ctor_get(x_917, 0); +lean_inc(x_918); +x_919 = lean_ctor_get(x_917, 1); +lean_inc(x_919); +lean_dec(x_917); +x_16 = x_918; +x_17 = x_919; +goto block_24; +} +else +{ +lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_920 = lean_ctor_get(x_917, 0); +lean_inc(x_920); +x_921 = lean_ctor_get(x_917, 1); +lean_inc(x_921); +if (lean_is_exclusive(x_917)) { + lean_ctor_release(x_917, 0); + lean_ctor_release(x_917, 1); + x_922 = x_917; +} else { + lean_dec_ref(x_917); + x_922 = lean_box(0); +} +if (lean_is_scalar(x_922)) { + x_923 = lean_alloc_ctor(1, 2, 0); +} else { + x_923 = x_922; +} +lean_ctor_set(x_923, 0, x_920); +lean_ctor_set(x_923, 1, x_921); +return x_923; +} +} +else +{ +lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; uint8_t x_950; uint8_t x_990; +x_924 = lean_ctor_get(x_914, 0); +lean_inc(x_924); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + x_925 = x_914; +} else { + lean_dec_ref(x_914); + x_925 = lean_box(0); +} +x_926 = lean_ctor_get(x_15, 5); +lean_inc(x_926); +lean_inc(x_871); +lean_inc(x_926); +x_927 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_926, x_871, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_928 = lean_ctor_get(x_927, 0); +lean_inc(x_928); +x_929 = lean_ctor_get(x_927, 1); +lean_inc(x_929); +if (lean_is_exclusive(x_927)) { + lean_ctor_release(x_927, 0); + lean_ctor_release(x_927, 1); + x_930 = x_927; +} else { + lean_dec_ref(x_927); + x_930 = lean_box(0); +} +x_931 = lean_ctor_get(x_928, 0); +lean_inc(x_931); +x_932 = lean_ctor_get(x_928, 1); +lean_inc(x_932); +if (lean_is_exclusive(x_928)) { + lean_ctor_release(x_928, 0); + lean_ctor_release(x_928, 1); + x_933 = x_928; +} else { + lean_dec_ref(x_928); + x_933 = lean_box(0); +} +x_934 = lean_ctor_get(x_924, 0); +lean_inc(x_934); +x_935 = lean_ctor_get(x_924, 1); +lean_inc(x_935); +x_936 = lean_ctor_get(x_924, 2); +lean_inc(x_936); +x_937 = lean_ctor_get(x_924, 3); +lean_inc(x_937); +x_938 = lean_ctor_get(x_924, 4); +lean_inc(x_938); +x_939 = lean_ctor_get(x_924, 5); +lean_inc(x_939); +x_940 = lean_ctor_get(x_924, 6); +lean_inc(x_940); +if (lean_is_exclusive(x_924)) { + lean_ctor_release(x_924, 0); + lean_ctor_release(x_924, 1); + lean_ctor_release(x_924, 2); + lean_ctor_release(x_924, 3); + lean_ctor_release(x_924, 4); + lean_ctor_release(x_924, 5); + lean_ctor_release(x_924, 6); + x_941 = x_924; +} else { + lean_dec_ref(x_924); + x_941 = lean_box(0); +} +lean_inc(x_859); +lean_inc(x_926); +x_942 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_926, x_859); +lean_inc(x_926); +lean_inc(x_932); +lean_inc(x_936); +lean_inc(x_935); +if (lean_is_scalar(x_941)) { + x_943 = lean_alloc_ctor(0, 7, 0); +} else { + x_943 = x_941; +} +lean_ctor_set(x_943, 0, x_934); +lean_ctor_set(x_943, 1, x_935); +lean_ctor_set(x_943, 2, x_936); +lean_ctor_set(x_943, 3, x_931); +lean_ctor_set(x_943, 4, x_932); +lean_ctor_set(x_943, 5, x_926); +lean_ctor_set(x_943, 6, x_942); +if (lean_is_scalar(x_925)) { + x_944 = lean_alloc_ctor(1, 1, 0); +} else { + x_944 = x_925; +} +lean_ctor_set(x_944, 0, x_943); +x_945 = lean_ctor_get(x_899, 1); +lean_inc(x_945); +lean_dec(x_899); +x_946 = lean_io_promise_resolve(x_944, x_945, x_929); +lean_dec(x_945); +x_947 = lean_ctor_get(x_946, 1); +lean_inc(x_947); +if (lean_is_exclusive(x_946)) { + lean_ctor_release(x_946, 0); + lean_ctor_release(x_946, 1); + x_948 = x_946; +} else { + lean_dec_ref(x_946); + x_948 = lean_box(0); +} +x_949 = lean_ctor_get(x_10, 2); +lean_inc(x_949); +x_990 = lean_unbox(x_849); +if (x_990 == 0) +{ +uint8_t x_991; +lean_dec(x_949); +lean_dec(x_939); +lean_dec(x_926); +x_991 = 0; +x_950 = x_991; +goto block_989; +} +else +{ +lean_object* x_992; uint8_t x_993; +x_992 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_949, x_926, x_939); +lean_dec(x_949); +x_993 = lean_unbox(x_992); +lean_dec(x_992); +x_950 = x_993; +goto block_989; +} +block_989: +{ +lean_object* x_951; lean_object* x_960; +if (lean_obj_tag(x_932) == 0) +{ +lean_dec(x_938); +lean_dec(x_937); +lean_dec(x_849); +if (x_950 == 0) +{ +lean_dec(x_940); +lean_dec(x_930); +x_951 = x_888; +goto block_959; +} +else +{ +lean_dec(x_948); +lean_dec(x_933); +lean_dec(x_912); +lean_dec(x_900); +x_960 = x_888; +goto block_971; +} +} +else +{ +lean_object* x_972; uint8_t x_973; +if (lean_is_exclusive(x_932)) { + lean_ctor_release(x_932, 0); + x_972 = x_932; +} else { + lean_dec_ref(x_932); + x_972 = lean_box(0); +} +x_973 = lean_unbox(x_849); +lean_dec(x_849); +if (x_973 == 0) +{ +lean_object* x_974; lean_object* x_975; +lean_dec(x_938); +lean_dec(x_937); +lean_inc(x_871); +x_974 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_974, 0, x_888); +lean_ctor_set(x_974, 1, x_871); +if (lean_is_scalar(x_972)) { + x_975 = lean_alloc_ctor(1, 1, 0); +} else { + x_975 = x_972; +} +lean_ctor_set(x_975, 0, x_974); +if (x_950 == 0) +{ +lean_dec(x_940); +lean_dec(x_930); +x_951 = x_975; +goto block_959; +} +else +{ +lean_dec(x_948); +lean_dec(x_933); +lean_dec(x_912); +lean_dec(x_900); +x_960 = x_975; +goto block_971; +} +} +else +{ +if (lean_obj_tag(x_937) == 0) +{ +lean_object* x_976; lean_object* x_977; +lean_dec(x_938); +lean_inc(x_871); +x_976 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_976, 0, x_888); +lean_ctor_set(x_976, 1, x_871); +if (lean_is_scalar(x_972)) { + x_977 = lean_alloc_ctor(1, 1, 0); +} else { + x_977 = x_972; +} +lean_ctor_set(x_977, 0, x_976); +if (x_950 == 0) +{ +lean_dec(x_940); +lean_dec(x_930); +x_951 = x_977; +goto block_959; +} +else +{ +lean_dec(x_948); +lean_dec(x_933); +lean_dec(x_912); +lean_dec(x_900); +x_960 = x_977; +goto block_971; +} +} +else +{ +lean_dec(x_972); +if (lean_obj_tag(x_938) == 0) +{ +lean_object* x_978; lean_object* x_979; lean_object* x_980; +if (lean_is_exclusive(x_937)) { + lean_ctor_release(x_937, 0); + x_978 = x_937; +} else { + lean_dec_ref(x_937); + x_978 = lean_box(0); +} +lean_inc(x_871); +x_979 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_979, 0, x_888); +lean_ctor_set(x_979, 1, x_871); +if (lean_is_scalar(x_978)) { + x_980 = lean_alloc_ctor(1, 1, 0); +} else { + x_980 = x_978; +} +lean_ctor_set(x_980, 0, x_979); +if (x_950 == 0) +{ +lean_dec(x_940); +lean_dec(x_930); +x_951 = x_980; +goto block_959; +} +else +{ +lean_dec(x_948); +lean_dec(x_933); +lean_dec(x_912); +lean_dec(x_900); +x_960 = x_980; +goto block_971; +} +} +else +{ +lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; +x_981 = lean_ctor_get(x_937, 0); +lean_inc(x_981); +if (lean_is_exclusive(x_937)) { + lean_ctor_release(x_937, 0); + x_982 = x_937; +} else { + lean_dec_ref(x_937); + x_982 = lean_box(0); +} +x_983 = lean_ctor_get(x_938, 0); +lean_inc(x_983); +if (lean_is_exclusive(x_938)) { + lean_ctor_release(x_938, 0); + x_984 = x_938; +} else { + lean_dec_ref(x_938); + x_984 = lean_box(0); +} +x_985 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_985, 0, x_981); +lean_ctor_set(x_985, 1, x_983); +if (lean_is_scalar(x_984)) { + x_986 = lean_alloc_ctor(1, 1, 0); +} else { + x_986 = x_984; +} +lean_ctor_set(x_986, 0, x_985); +lean_inc(x_871); +x_987 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_987, 0, x_986); +lean_ctor_set(x_987, 1, x_871); +if (lean_is_scalar(x_982)) { + x_988 = lean_alloc_ctor(1, 1, 0); +} else { + x_988 = x_982; +} +lean_ctor_set(x_988, 0, x_987); +if (x_950 == 0) +{ +lean_dec(x_940); +lean_dec(x_930); +x_951 = x_988; +goto block_959; +} +else +{ +lean_dec(x_948); +lean_dec(x_933); +lean_dec(x_912); +lean_dec(x_900); +x_960 = x_988; +goto block_971; +} +} +} +} +} +block_959: +{ +lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; +lean_inc(x_859); +if (lean_is_scalar(x_948)) { + x_952 = lean_alloc_ctor(0, 2, 0); +} else { + x_952 = x_948; +} +lean_ctor_set(x_952, 0, x_888); +lean_ctor_set(x_952, 1, x_859); +if (lean_is_scalar(x_912)) { + x_953 = lean_alloc_ctor(1, 1, 0); +} else { + x_953 = x_912; +} +lean_ctor_set(x_953, 0, x_952); +lean_inc(x_15); +x_954 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_954, 0, x_15); +lean_ctor_set(x_954, 1, x_935); +lean_ctor_set(x_954, 2, x_951); +lean_ctor_set(x_954, 3, x_953); +if (lean_is_scalar(x_933)) { + x_955 = lean_alloc_ctor(0, 2, 0); +} else { + x_955 = x_933; +} +lean_ctor_set(x_955, 0, x_954); +lean_ctor_set(x_955, 1, x_936); +if (lean_is_scalar(x_900)) { + x_956 = lean_alloc_ctor(1, 1, 0); +} else { + x_956 = x_900; +} +lean_ctor_set(x_956, 0, x_955); +x_957 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_958 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_859, x_871, x_885, x_886, x_887, x_862, x_873, x_884, x_848, x_956, x_950, x_957, x_6, x_7, x_8, x_9, x_10, x_11, x_947); +x_25 = x_958; +goto block_32; +} +block_971: +{ +lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; +x_961 = lean_box(0); +if (lean_is_scalar(x_930)) { + x_962 = lean_alloc_ctor(0, 2, 0); +} else { + x_962 = x_930; +} +lean_ctor_set(x_962, 0, x_961); +lean_ctor_set(x_962, 1, x_940); +x_963 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_963, 0, x_962); +lean_inc(x_859); +x_964 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_964, 0, x_963); +lean_ctor_set(x_964, 1, x_859); +x_965 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_965, 0, x_964); +lean_inc(x_15); +x_966 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_966, 0, x_15); +lean_ctor_set(x_966, 1, x_935); +lean_ctor_set(x_966, 2, x_960); +lean_ctor_set(x_966, 3, x_965); +x_967 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_967, 0, x_966); +lean_ctor_set(x_967, 1, x_936); +x_968 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_968, 0, x_967); +x_969 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_970 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_859, x_871, x_885, x_886, x_887, x_862, x_873, x_884, x_848, x_968, x_950, x_969, x_6, x_7, x_8, x_9, x_10, x_11, x_947); +x_25 = x_970; +goto block_32; +} +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; uint8_t x_1005; +x_994 = lean_ctor_get(x_34, 1); +x_995 = lean_ctor_get(x_34, 0); +x_996 = lean_ctor_get(x_5, 0); +lean_inc(x_996); +lean_dec(x_5); +x_997 = lean_ctor_get(x_33, 0); +lean_inc(x_997); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_998 = x_33; +} else { + lean_dec_ref(x_33); + x_998 = lean_box(0); +} +x_999 = lean_ctor_get(x_994, 0); +lean_inc(x_999); +x_1000 = lean_ctor_get(x_994, 1); +lean_inc(x_1000); +if (lean_is_exclusive(x_994)) { + lean_ctor_release(x_994, 0); + lean_ctor_release(x_994, 1); + x_1001 = x_994; +} else { + lean_dec_ref(x_994); + x_1001 = lean_box(0); +} +x_1002 = lean_ctor_get(x_995, 0); +lean_inc(x_1002); +x_1003 = lean_ctor_get(x_995, 1); +lean_inc(x_1003); +x_1004 = lean_ctor_get(x_995, 2); +lean_inc(x_1004); +x_1005 = lean_nat_dec_lt(x_1003, x_1004); +if (x_1005 == 0) +{ +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; +lean_dec(x_1004); +lean_dec(x_1003); +lean_dec(x_1002); +lean_dec(x_15); +if (lean_is_scalar(x_1001)) { + x_1006 = lean_alloc_ctor(0, 2, 0); +} else { + x_1006 = x_1001; +} +lean_ctor_set(x_1006, 0, x_999); +lean_ctor_set(x_1006, 1, x_1000); +lean_ctor_set(x_34, 1, x_1006); +if (lean_is_scalar(x_998)) { + x_1007 = lean_alloc_ctor(0, 2, 0); +} else { + x_1007 = x_998; +} +lean_ctor_set(x_1007, 0, x_997); +lean_ctor_set(x_1007, 1, x_34); +x_1008 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1008, 0, x_996); +lean_ctor_set(x_1008, 1, x_1007); +x_1009 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1009, 0, x_1008); +x_16 = x_1009; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; uint8_t x_1018; +if (lean_is_exclusive(x_995)) { + lean_ctor_release(x_995, 0); + lean_ctor_release(x_995, 1); + lean_ctor_release(x_995, 2); + x_1010 = x_995; +} else { + lean_dec_ref(x_995); + x_1010 = lean_box(0); +} +x_1011 = lean_array_fget(x_1002, x_1003); +x_1012 = lean_unsigned_to_nat(1u); +x_1013 = lean_nat_add(x_1003, x_1012); +lean_dec(x_1003); +if (lean_is_scalar(x_1010)) { + x_1014 = lean_alloc_ctor(0, 3, 0); +} else { + x_1014 = x_1010; +} +lean_ctor_set(x_1014, 0, x_1002); +lean_ctor_set(x_1014, 1, x_1013); +lean_ctor_set(x_1014, 2, x_1004); +x_1015 = lean_ctor_get(x_997, 0); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_997, 1); +lean_inc(x_1016); +x_1017 = lean_ctor_get(x_997, 2); +lean_inc(x_1017); +x_1018 = lean_nat_dec_lt(x_1016, x_1017); +if (x_1018 == 0) +{ +lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; +lean_dec(x_1017); +lean_dec(x_1016); +lean_dec(x_1015); +lean_dec(x_1011); +lean_dec(x_15); +if (lean_is_scalar(x_1001)) { + x_1019 = lean_alloc_ctor(0, 2, 0); +} else { + x_1019 = x_1001; +} +lean_ctor_set(x_1019, 0, x_999); +lean_ctor_set(x_1019, 1, x_1000); +lean_ctor_set(x_34, 1, x_1019); +lean_ctor_set(x_34, 0, x_1014); +if (lean_is_scalar(x_998)) { + x_1020 = lean_alloc_ctor(0, 2, 0); +} else { + x_1020 = x_998; +} +lean_ctor_set(x_1020, 0, x_997); +lean_ctor_set(x_1020, 1, x_34); +x_1021 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1021, 0, x_996); +lean_ctor_set(x_1021, 1, x_1020); +x_1022 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1022, 0, x_1021); +x_16 = x_1022; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; uint8_t x_1030; +if (lean_is_exclusive(x_997)) { + lean_ctor_release(x_997, 0); + lean_ctor_release(x_997, 1); + lean_ctor_release(x_997, 2); + x_1023 = x_997; +} else { + lean_dec_ref(x_997); + x_1023 = lean_box(0); +} +x_1024 = lean_array_fget(x_1015, x_1016); +x_1025 = lean_nat_add(x_1016, x_1012); +lean_dec(x_1016); +if (lean_is_scalar(x_1023)) { + x_1026 = lean_alloc_ctor(0, 3, 0); +} else { + x_1026 = x_1023; +} +lean_ctor_set(x_1026, 0, x_1015); +lean_ctor_set(x_1026, 1, x_1025); +lean_ctor_set(x_1026, 2, x_1017); +x_1027 = lean_ctor_get(x_996, 0); +lean_inc(x_1027); +x_1028 = lean_ctor_get(x_996, 1); +lean_inc(x_1028); +x_1029 = lean_ctor_get(x_996, 2); +lean_inc(x_1029); +x_1030 = lean_nat_dec_lt(x_1028, x_1029); +if (x_1030 == 0) +{ +lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; +lean_dec(x_1029); +lean_dec(x_1028); +lean_dec(x_1027); +lean_dec(x_1024); +lean_dec(x_1011); +lean_dec(x_15); +if (lean_is_scalar(x_1001)) { + x_1031 = lean_alloc_ctor(0, 2, 0); +} else { + x_1031 = x_1001; +} +lean_ctor_set(x_1031, 0, x_999); +lean_ctor_set(x_1031, 1, x_1000); +lean_ctor_set(x_34, 1, x_1031); +lean_ctor_set(x_34, 0, x_1014); +if (lean_is_scalar(x_998)) { + x_1032 = lean_alloc_ctor(0, 2, 0); +} else { + x_1032 = x_998; +} +lean_ctor_set(x_1032, 0, x_1026); +lean_ctor_set(x_1032, 1, x_34); +x_1033 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1033, 0, x_996); +lean_ctor_set(x_1033, 1, x_1032); +x_1034 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1034, 0, x_1033); +x_16 = x_1034; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; +lean_dec(x_1001); +lean_dec(x_998); +lean_free_object(x_34); +if (lean_is_exclusive(x_996)) { + lean_ctor_release(x_996, 0); + lean_ctor_release(x_996, 1); + lean_ctor_release(x_996, 2); + x_1035 = x_996; +} else { + lean_dec_ref(x_996); + x_1035 = lean_box(0); +} +x_1036 = lean_array_fget(x_1027, x_1028); +x_1037 = lean_nat_add(x_1028, x_1012); +lean_dec(x_1028); +if (lean_is_scalar(x_1035)) { + x_1038 = lean_alloc_ctor(0, 3, 0); +} else { + x_1038 = x_1035; +} +lean_ctor_set(x_1038, 0, x_1027); +lean_ctor_set(x_1038, 1, x_1037); +lean_ctor_set(x_1038, 2, x_1029); +x_1039 = lean_ctor_get(x_1036, 0); +lean_inc(x_1039); +x_1040 = lean_ctor_get(x_1036, 1); +lean_inc(x_1040); +x_1041 = lean_ctor_get(x_1036, 2); +lean_inc(x_1041); +lean_dec(x_1036); +x_1042 = lean_box(0); +x_1043 = lean_ctor_get(x_15, 6); +lean_inc(x_1043); +if (lean_obj_tag(x_1043) == 0) +{ +lean_object* x_1044; uint8_t x_1045; lean_object* x_1046; +x_1044 = lean_box(0); +x_1045 = lean_unbox(x_1000); +lean_dec(x_1000); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1046 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1011, x_1024, x_1039, x_1040, x_1041, x_1014, x_1026, x_1038, x_999, x_1042, x_1045, x_1044, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1046) == 0) +{ +lean_object* x_1047; lean_object* x_1048; +x_1047 = lean_ctor_get(x_1046, 0); +lean_inc(x_1047); +x_1048 = lean_ctor_get(x_1046, 1); +lean_inc(x_1048); +lean_dec(x_1046); +x_16 = x_1047; +x_17 = x_1048; +goto block_24; +} +else +{ +lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1049 = lean_ctor_get(x_1046, 0); +lean_inc(x_1049); +x_1050 = lean_ctor_get(x_1046, 1); +lean_inc(x_1050); +if (lean_is_exclusive(x_1046)) { + lean_ctor_release(x_1046, 0); + lean_ctor_release(x_1046, 1); + x_1051 = x_1046; +} else { + lean_dec_ref(x_1046); + x_1051 = lean_box(0); +} +if (lean_is_scalar(x_1051)) { + x_1052 = lean_alloc_ctor(1, 2, 0); +} else { + x_1052 = x_1051; +} +lean_ctor_set(x_1052, 0, x_1049); +lean_ctor_set(x_1052, 1, x_1050); +return x_1052; +} +} +else +{ +lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; +x_1053 = lean_ctor_get(x_1043, 0); +lean_inc(x_1053); +if (lean_is_exclusive(x_1043)) { + lean_ctor_release(x_1043, 0); + x_1054 = x_1043; +} else { + lean_dec_ref(x_1043); + x_1054 = lean_box(0); +} +x_1055 = lean_ctor_get(x_1053, 0); +lean_inc(x_1055); +if (lean_obj_tag(x_1055) == 0) +{ +uint8_t x_1056; lean_object* x_1057; lean_object* x_1058; +lean_dec(x_1054); +lean_dec(x_1053); +lean_dec(x_1000); +x_1056 = 0; +x_1057 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1058 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1011, x_1024, x_1039, x_1040, x_1041, x_1014, x_1026, x_1038, x_999, x_1042, x_1056, x_1057, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1058) == 0) +{ +lean_object* x_1059; lean_object* x_1060; +x_1059 = lean_ctor_get(x_1058, 0); +lean_inc(x_1059); +x_1060 = lean_ctor_get(x_1058, 1); +lean_inc(x_1060); +lean_dec(x_1058); +x_16 = x_1059; +x_17 = x_1060; +goto block_24; +} +else +{ +lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1061 = lean_ctor_get(x_1058, 0); +lean_inc(x_1061); +x_1062 = lean_ctor_get(x_1058, 1); +lean_inc(x_1062); +if (lean_is_exclusive(x_1058)) { + lean_ctor_release(x_1058, 0); + lean_ctor_release(x_1058, 1); + x_1063 = x_1058; +} else { + lean_dec_ref(x_1058); + x_1063 = lean_box(0); +} +if (lean_is_scalar(x_1063)) { + x_1064 = lean_alloc_ctor(1, 2, 0); +} else { + x_1064 = x_1063; +} +lean_ctor_set(x_1064, 0, x_1061); +lean_ctor_set(x_1064, 1, x_1062); +return x_1064; +} +} +else +{ +lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; +x_1065 = lean_ctor_get(x_1055, 0); +lean_inc(x_1065); +if (lean_is_exclusive(x_1055)) { + lean_ctor_release(x_1055, 0); + x_1066 = x_1055; +} else { + lean_dec_ref(x_1055); + x_1066 = lean_box(0); +} +x_1067 = lean_ctor_get(x_1065, 1); +lean_inc(x_1067); +lean_dec(x_1065); +x_1068 = l_Lean_Language_SnapshotTask_get___rarg(x_1067); +if (lean_obj_tag(x_1068) == 0) +{ +uint8_t x_1069; lean_object* x_1070; lean_object* x_1071; +lean_dec(x_1066); +lean_dec(x_1054); +lean_dec(x_1053); +lean_dec(x_1000); +x_1069 = 0; +x_1070 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1071 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1011, x_1024, x_1039, x_1040, x_1041, x_1014, x_1026, x_1038, x_999, x_1042, x_1069, x_1070, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1071) == 0) +{ +lean_object* x_1072; lean_object* x_1073; +x_1072 = lean_ctor_get(x_1071, 0); +lean_inc(x_1072); +x_1073 = lean_ctor_get(x_1071, 1); +lean_inc(x_1073); +lean_dec(x_1071); +x_16 = x_1072; +x_17 = x_1073; +goto block_24; +} +else +{ +lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1074 = lean_ctor_get(x_1071, 0); +lean_inc(x_1074); +x_1075 = lean_ctor_get(x_1071, 1); +lean_inc(x_1075); +if (lean_is_exclusive(x_1071)) { + lean_ctor_release(x_1071, 0); + lean_ctor_release(x_1071, 1); + x_1076 = x_1071; +} else { + lean_dec_ref(x_1071); + x_1076 = lean_box(0); +} +if (lean_is_scalar(x_1076)) { + x_1077 = lean_alloc_ctor(1, 2, 0); +} else { + x_1077 = x_1076; +} +lean_ctor_set(x_1077, 0, x_1074); +lean_ctor_set(x_1077, 1, x_1075); +return x_1077; +} +} +else +{ +lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; uint8_t x_1104; uint8_t x_1144; +x_1078 = lean_ctor_get(x_1068, 0); +lean_inc(x_1078); +if (lean_is_exclusive(x_1068)) { + lean_ctor_release(x_1068, 0); + x_1079 = x_1068; +} else { + lean_dec_ref(x_1068); + x_1079 = lean_box(0); +} +x_1080 = lean_ctor_get(x_15, 5); +lean_inc(x_1080); +lean_inc(x_1024); +lean_inc(x_1080); +x_1081 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_1080, x_1024, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_1082 = lean_ctor_get(x_1081, 0); +lean_inc(x_1082); +x_1083 = lean_ctor_get(x_1081, 1); +lean_inc(x_1083); +if (lean_is_exclusive(x_1081)) { + lean_ctor_release(x_1081, 0); + lean_ctor_release(x_1081, 1); + x_1084 = x_1081; +} else { + lean_dec_ref(x_1081); + x_1084 = lean_box(0); +} +x_1085 = lean_ctor_get(x_1082, 0); +lean_inc(x_1085); +x_1086 = lean_ctor_get(x_1082, 1); +lean_inc(x_1086); +if (lean_is_exclusive(x_1082)) { + lean_ctor_release(x_1082, 0); + lean_ctor_release(x_1082, 1); + x_1087 = x_1082; +} else { + lean_dec_ref(x_1082); + x_1087 = lean_box(0); +} +x_1088 = lean_ctor_get(x_1078, 0); +lean_inc(x_1088); +x_1089 = lean_ctor_get(x_1078, 1); +lean_inc(x_1089); +x_1090 = lean_ctor_get(x_1078, 2); +lean_inc(x_1090); +x_1091 = lean_ctor_get(x_1078, 3); +lean_inc(x_1091); +x_1092 = lean_ctor_get(x_1078, 4); +lean_inc(x_1092); +x_1093 = lean_ctor_get(x_1078, 5); +lean_inc(x_1093); +x_1094 = lean_ctor_get(x_1078, 6); +lean_inc(x_1094); +if (lean_is_exclusive(x_1078)) { + lean_ctor_release(x_1078, 0); + lean_ctor_release(x_1078, 1); + lean_ctor_release(x_1078, 2); + lean_ctor_release(x_1078, 3); + lean_ctor_release(x_1078, 4); + lean_ctor_release(x_1078, 5); + lean_ctor_release(x_1078, 6); + x_1095 = x_1078; +} else { + lean_dec_ref(x_1078); + x_1095 = lean_box(0); +} +lean_inc(x_1011); +lean_inc(x_1080); +x_1096 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_1080, x_1011); +lean_inc(x_1080); +lean_inc(x_1086); +lean_inc(x_1090); +lean_inc(x_1089); +if (lean_is_scalar(x_1095)) { + x_1097 = lean_alloc_ctor(0, 7, 0); +} else { + x_1097 = x_1095; +} +lean_ctor_set(x_1097, 0, x_1088); +lean_ctor_set(x_1097, 1, x_1089); +lean_ctor_set(x_1097, 2, x_1090); +lean_ctor_set(x_1097, 3, x_1085); +lean_ctor_set(x_1097, 4, x_1086); +lean_ctor_set(x_1097, 5, x_1080); +lean_ctor_set(x_1097, 6, x_1096); +if (lean_is_scalar(x_1079)) { + x_1098 = lean_alloc_ctor(1, 1, 0); +} else { + x_1098 = x_1079; +} +lean_ctor_set(x_1098, 0, x_1097); +x_1099 = lean_ctor_get(x_1053, 1); +lean_inc(x_1099); +lean_dec(x_1053); +x_1100 = lean_io_promise_resolve(x_1098, x_1099, x_1083); +lean_dec(x_1099); +x_1101 = lean_ctor_get(x_1100, 1); +lean_inc(x_1101); +if (lean_is_exclusive(x_1100)) { + lean_ctor_release(x_1100, 0); + lean_ctor_release(x_1100, 1); + x_1102 = x_1100; +} else { + lean_dec_ref(x_1100); + x_1102 = lean_box(0); +} +x_1103 = lean_ctor_get(x_10, 2); +lean_inc(x_1103); +x_1144 = lean_unbox(x_1000); +if (x_1144 == 0) +{ +uint8_t x_1145; +lean_dec(x_1103); +lean_dec(x_1093); +lean_dec(x_1080); +x_1145 = 0; +x_1104 = x_1145; +goto block_1143; +} +else +{ +lean_object* x_1146; uint8_t x_1147; +x_1146 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_1103, x_1080, x_1093); +lean_dec(x_1103); +x_1147 = lean_unbox(x_1146); +lean_dec(x_1146); +x_1104 = x_1147; +goto block_1143; +} +block_1143: +{ +lean_object* x_1105; lean_object* x_1114; +if (lean_obj_tag(x_1086) == 0) +{ +lean_dec(x_1092); +lean_dec(x_1091); +lean_dec(x_1000); +if (x_1104 == 0) +{ +lean_dec(x_1094); +lean_dec(x_1084); +x_1105 = x_1042; +goto block_1113; +} +else +{ +lean_dec(x_1102); +lean_dec(x_1087); +lean_dec(x_1066); +lean_dec(x_1054); +x_1114 = x_1042; +goto block_1125; +} +} +else +{ +lean_object* x_1126; uint8_t x_1127; +if (lean_is_exclusive(x_1086)) { + lean_ctor_release(x_1086, 0); + x_1126 = x_1086; +} else { + lean_dec_ref(x_1086); + x_1126 = lean_box(0); +} +x_1127 = lean_unbox(x_1000); +lean_dec(x_1000); +if (x_1127 == 0) +{ +lean_object* x_1128; lean_object* x_1129; +lean_dec(x_1092); +lean_dec(x_1091); +lean_inc(x_1024); +x_1128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1128, 0, x_1042); +lean_ctor_set(x_1128, 1, x_1024); +if (lean_is_scalar(x_1126)) { + x_1129 = lean_alloc_ctor(1, 1, 0); +} else { + x_1129 = x_1126; +} +lean_ctor_set(x_1129, 0, x_1128); +if (x_1104 == 0) +{ +lean_dec(x_1094); +lean_dec(x_1084); +x_1105 = x_1129; +goto block_1113; +} +else +{ +lean_dec(x_1102); +lean_dec(x_1087); +lean_dec(x_1066); +lean_dec(x_1054); +x_1114 = x_1129; +goto block_1125; +} +} +else +{ +if (lean_obj_tag(x_1091) == 0) +{ +lean_object* x_1130; lean_object* x_1131; +lean_dec(x_1092); +lean_inc(x_1024); +x_1130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1130, 0, x_1042); +lean_ctor_set(x_1130, 1, x_1024); +if (lean_is_scalar(x_1126)) { + x_1131 = lean_alloc_ctor(1, 1, 0); +} else { + x_1131 = x_1126; +} +lean_ctor_set(x_1131, 0, x_1130); +if (x_1104 == 0) +{ +lean_dec(x_1094); +lean_dec(x_1084); +x_1105 = x_1131; +goto block_1113; +} +else +{ +lean_dec(x_1102); +lean_dec(x_1087); +lean_dec(x_1066); +lean_dec(x_1054); +x_1114 = x_1131; +goto block_1125; +} +} +else +{ +lean_dec(x_1126); +if (lean_obj_tag(x_1092) == 0) +{ +lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; +if (lean_is_exclusive(x_1091)) { + lean_ctor_release(x_1091, 0); + x_1132 = x_1091; +} else { + lean_dec_ref(x_1091); + x_1132 = lean_box(0); +} +lean_inc(x_1024); +x_1133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1133, 0, x_1042); +lean_ctor_set(x_1133, 1, x_1024); +if (lean_is_scalar(x_1132)) { + x_1134 = lean_alloc_ctor(1, 1, 0); +} else { + x_1134 = x_1132; +} +lean_ctor_set(x_1134, 0, x_1133); +if (x_1104 == 0) +{ +lean_dec(x_1094); +lean_dec(x_1084); +x_1105 = x_1134; +goto block_1113; +} +else +{ +lean_dec(x_1102); +lean_dec(x_1087); +lean_dec(x_1066); +lean_dec(x_1054); +x_1114 = x_1134; +goto block_1125; +} +} +else +{ +lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; +x_1135 = lean_ctor_get(x_1091, 0); +lean_inc(x_1135); +if (lean_is_exclusive(x_1091)) { + lean_ctor_release(x_1091, 0); + x_1136 = x_1091; +} else { + lean_dec_ref(x_1091); + x_1136 = lean_box(0); +} +x_1137 = lean_ctor_get(x_1092, 0); +lean_inc(x_1137); +if (lean_is_exclusive(x_1092)) { + lean_ctor_release(x_1092, 0); + x_1138 = x_1092; +} else { + lean_dec_ref(x_1092); + x_1138 = lean_box(0); +} +x_1139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1139, 0, x_1135); +lean_ctor_set(x_1139, 1, x_1137); +if (lean_is_scalar(x_1138)) { + x_1140 = lean_alloc_ctor(1, 1, 0); +} else { + x_1140 = x_1138; +} +lean_ctor_set(x_1140, 0, x_1139); +lean_inc(x_1024); +x_1141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1141, 0, x_1140); +lean_ctor_set(x_1141, 1, x_1024); +if (lean_is_scalar(x_1136)) { + x_1142 = lean_alloc_ctor(1, 1, 0); +} else { + x_1142 = x_1136; +} +lean_ctor_set(x_1142, 0, x_1141); +if (x_1104 == 0) +{ +lean_dec(x_1094); +lean_dec(x_1084); +x_1105 = x_1142; +goto block_1113; +} +else +{ +lean_dec(x_1102); +lean_dec(x_1087); +lean_dec(x_1066); +lean_dec(x_1054); +x_1114 = x_1142; +goto block_1125; +} +} +} +} +} +block_1113: +{ +lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; +lean_inc(x_1011); +if (lean_is_scalar(x_1102)) { + x_1106 = lean_alloc_ctor(0, 2, 0); +} else { + x_1106 = x_1102; +} +lean_ctor_set(x_1106, 0, x_1042); +lean_ctor_set(x_1106, 1, x_1011); +if (lean_is_scalar(x_1066)) { + x_1107 = lean_alloc_ctor(1, 1, 0); +} else { + x_1107 = x_1066; +} +lean_ctor_set(x_1107, 0, x_1106); +lean_inc(x_15); +x_1108 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1108, 0, x_15); +lean_ctor_set(x_1108, 1, x_1089); +lean_ctor_set(x_1108, 2, x_1105); +lean_ctor_set(x_1108, 3, x_1107); +if (lean_is_scalar(x_1087)) { + x_1109 = lean_alloc_ctor(0, 2, 0); +} else { + x_1109 = x_1087; +} +lean_ctor_set(x_1109, 0, x_1108); +lean_ctor_set(x_1109, 1, x_1090); +if (lean_is_scalar(x_1054)) { + x_1110 = lean_alloc_ctor(1, 1, 0); +} else { + x_1110 = x_1054; +} +lean_ctor_set(x_1110, 0, x_1109); +x_1111 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1112 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1011, x_1024, x_1039, x_1040, x_1041, x_1014, x_1026, x_1038, x_999, x_1110, x_1104, x_1111, x_6, x_7, x_8, x_9, x_10, x_11, x_1101); +x_25 = x_1112; +goto block_32; +} +block_1125: +{ +lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; +x_1115 = lean_box(0); +if (lean_is_scalar(x_1084)) { + x_1116 = lean_alloc_ctor(0, 2, 0); +} else { + x_1116 = x_1084; +} +lean_ctor_set(x_1116, 0, x_1115); +lean_ctor_set(x_1116, 1, x_1094); +x_1117 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1117, 0, x_1116); +lean_inc(x_1011); +x_1118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1118, 0, x_1117); +lean_ctor_set(x_1118, 1, x_1011); +x_1119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1119, 0, x_1118); +lean_inc(x_15); +x_1120 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1120, 0, x_15); +lean_ctor_set(x_1120, 1, x_1089); +lean_ctor_set(x_1120, 2, x_1114); +lean_ctor_set(x_1120, 3, x_1119); +x_1121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1121, 0, x_1120); +lean_ctor_set(x_1121, 1, x_1090); +x_1122 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1122, 0, x_1121); +x_1123 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1124 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1011, x_1024, x_1039, x_1040, x_1041, x_1014, x_1026, x_1038, x_999, x_1122, x_1104, x_1123, x_6, x_7, x_8, x_9, x_10, x_11, x_1101); +x_25 = x_1124; +goto block_32; +} +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; uint8_t x_1160; +x_1148 = lean_ctor_get(x_34, 1); +x_1149 = lean_ctor_get(x_34, 0); +lean_inc(x_1148); +lean_inc(x_1149); +lean_dec(x_34); +x_1150 = lean_ctor_get(x_5, 0); +lean_inc(x_1150); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_1151 = x_5; +} else { + lean_dec_ref(x_5); + x_1151 = lean_box(0); +} +x_1152 = lean_ctor_get(x_33, 0); +lean_inc(x_1152); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_1153 = x_33; +} else { + lean_dec_ref(x_33); + x_1153 = lean_box(0); +} +x_1154 = lean_ctor_get(x_1148, 0); +lean_inc(x_1154); +x_1155 = lean_ctor_get(x_1148, 1); +lean_inc(x_1155); +if (lean_is_exclusive(x_1148)) { + lean_ctor_release(x_1148, 0); + lean_ctor_release(x_1148, 1); + x_1156 = x_1148; +} else { + lean_dec_ref(x_1148); + x_1156 = lean_box(0); +} +x_1157 = lean_ctor_get(x_1149, 0); +lean_inc(x_1157); +x_1158 = lean_ctor_get(x_1149, 1); +lean_inc(x_1158); +x_1159 = lean_ctor_get(x_1149, 2); +lean_inc(x_1159); +x_1160 = lean_nat_dec_lt(x_1158, x_1159); +if (x_1160 == 0) +{ +lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; +lean_dec(x_1159); +lean_dec(x_1158); +lean_dec(x_1157); +lean_dec(x_15); +if (lean_is_scalar(x_1156)) { + x_1161 = lean_alloc_ctor(0, 2, 0); +} else { + x_1161 = x_1156; +} +lean_ctor_set(x_1161, 0, x_1154); +lean_ctor_set(x_1161, 1, x_1155); +x_1162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1162, 0, x_1149); +lean_ctor_set(x_1162, 1, x_1161); +if (lean_is_scalar(x_1153)) { + x_1163 = lean_alloc_ctor(0, 2, 0); +} else { + x_1163 = x_1153; +} +lean_ctor_set(x_1163, 0, x_1152); +lean_ctor_set(x_1163, 1, x_1162); +if (lean_is_scalar(x_1151)) { + x_1164 = lean_alloc_ctor(0, 2, 0); +} else { + x_1164 = x_1151; +} +lean_ctor_set(x_1164, 0, x_1150); +lean_ctor_set(x_1164, 1, x_1163); +x_1165 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1165, 0, x_1164); +x_16 = x_1165; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; uint8_t x_1174; +if (lean_is_exclusive(x_1149)) { + lean_ctor_release(x_1149, 0); + lean_ctor_release(x_1149, 1); + lean_ctor_release(x_1149, 2); + x_1166 = x_1149; +} else { + lean_dec_ref(x_1149); + x_1166 = lean_box(0); +} +x_1167 = lean_array_fget(x_1157, x_1158); +x_1168 = lean_unsigned_to_nat(1u); +x_1169 = lean_nat_add(x_1158, x_1168); +lean_dec(x_1158); +if (lean_is_scalar(x_1166)) { + x_1170 = lean_alloc_ctor(0, 3, 0); +} else { + x_1170 = x_1166; +} +lean_ctor_set(x_1170, 0, x_1157); +lean_ctor_set(x_1170, 1, x_1169); +lean_ctor_set(x_1170, 2, x_1159); +x_1171 = lean_ctor_get(x_1152, 0); +lean_inc(x_1171); +x_1172 = lean_ctor_get(x_1152, 1); +lean_inc(x_1172); +x_1173 = lean_ctor_get(x_1152, 2); +lean_inc(x_1173); +x_1174 = lean_nat_dec_lt(x_1172, x_1173); +if (x_1174 == 0) +{ +lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; +lean_dec(x_1173); +lean_dec(x_1172); +lean_dec(x_1171); +lean_dec(x_1167); +lean_dec(x_15); +if (lean_is_scalar(x_1156)) { + x_1175 = lean_alloc_ctor(0, 2, 0); +} else { + x_1175 = x_1156; +} +lean_ctor_set(x_1175, 0, x_1154); +lean_ctor_set(x_1175, 1, x_1155); +x_1176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1176, 0, x_1170); +lean_ctor_set(x_1176, 1, x_1175); +if (lean_is_scalar(x_1153)) { + x_1177 = lean_alloc_ctor(0, 2, 0); +} else { + x_1177 = x_1153; +} +lean_ctor_set(x_1177, 0, x_1152); +lean_ctor_set(x_1177, 1, x_1176); +if (lean_is_scalar(x_1151)) { + x_1178 = lean_alloc_ctor(0, 2, 0); +} else { + x_1178 = x_1151; +} +lean_ctor_set(x_1178, 0, x_1150); +lean_ctor_set(x_1178, 1, x_1177); +x_1179 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1179, 0, x_1178); +x_16 = x_1179; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; uint8_t x_1187; +if (lean_is_exclusive(x_1152)) { + lean_ctor_release(x_1152, 0); + lean_ctor_release(x_1152, 1); + lean_ctor_release(x_1152, 2); + x_1180 = x_1152; +} else { + lean_dec_ref(x_1152); + x_1180 = lean_box(0); +} +x_1181 = lean_array_fget(x_1171, x_1172); +x_1182 = lean_nat_add(x_1172, x_1168); +lean_dec(x_1172); +if (lean_is_scalar(x_1180)) { + x_1183 = lean_alloc_ctor(0, 3, 0); +} else { + x_1183 = x_1180; +} +lean_ctor_set(x_1183, 0, x_1171); +lean_ctor_set(x_1183, 1, x_1182); +lean_ctor_set(x_1183, 2, x_1173); +x_1184 = lean_ctor_get(x_1150, 0); +lean_inc(x_1184); +x_1185 = lean_ctor_get(x_1150, 1); +lean_inc(x_1185); +x_1186 = lean_ctor_get(x_1150, 2); +lean_inc(x_1186); +x_1187 = lean_nat_dec_lt(x_1185, x_1186); +if (x_1187 == 0) +{ +lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; +lean_dec(x_1186); +lean_dec(x_1185); +lean_dec(x_1184); +lean_dec(x_1181); +lean_dec(x_1167); +lean_dec(x_15); +if (lean_is_scalar(x_1156)) { + x_1188 = lean_alloc_ctor(0, 2, 0); +} else { + x_1188 = x_1156; +} +lean_ctor_set(x_1188, 0, x_1154); +lean_ctor_set(x_1188, 1, x_1155); +x_1189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1189, 0, x_1170); +lean_ctor_set(x_1189, 1, x_1188); +if (lean_is_scalar(x_1153)) { + x_1190 = lean_alloc_ctor(0, 2, 0); +} else { + x_1190 = x_1153; +} +lean_ctor_set(x_1190, 0, x_1183); +lean_ctor_set(x_1190, 1, x_1189); +if (lean_is_scalar(x_1151)) { + x_1191 = lean_alloc_ctor(0, 2, 0); +} else { + x_1191 = x_1151; +} +lean_ctor_set(x_1191, 0, x_1150); +lean_ctor_set(x_1191, 1, x_1190); +x_1192 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1192, 0, x_1191); +x_16 = x_1192; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; +lean_dec(x_1156); +lean_dec(x_1153); +lean_dec(x_1151); +if (lean_is_exclusive(x_1150)) { + lean_ctor_release(x_1150, 0); + lean_ctor_release(x_1150, 1); + lean_ctor_release(x_1150, 2); + x_1193 = x_1150; +} else { + lean_dec_ref(x_1150); + x_1193 = lean_box(0); +} +x_1194 = lean_array_fget(x_1184, x_1185); +x_1195 = lean_nat_add(x_1185, x_1168); +lean_dec(x_1185); +if (lean_is_scalar(x_1193)) { + x_1196 = lean_alloc_ctor(0, 3, 0); +} else { + x_1196 = x_1193; +} +lean_ctor_set(x_1196, 0, x_1184); +lean_ctor_set(x_1196, 1, x_1195); +lean_ctor_set(x_1196, 2, x_1186); +x_1197 = lean_ctor_get(x_1194, 0); +lean_inc(x_1197); +x_1198 = lean_ctor_get(x_1194, 1); +lean_inc(x_1198); +x_1199 = lean_ctor_get(x_1194, 2); +lean_inc(x_1199); +lean_dec(x_1194); +x_1200 = lean_box(0); +x_1201 = lean_ctor_get(x_15, 6); +lean_inc(x_1201); +if (lean_obj_tag(x_1201) == 0) +{ +lean_object* x_1202; uint8_t x_1203; lean_object* x_1204; +x_1202 = lean_box(0); +x_1203 = lean_unbox(x_1155); +lean_dec(x_1155); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1204 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1167, x_1181, x_1197, x_1198, x_1199, x_1170, x_1183, x_1196, x_1154, x_1200, x_1203, x_1202, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1204) == 0) +{ +lean_object* x_1205; lean_object* x_1206; +x_1205 = lean_ctor_get(x_1204, 0); +lean_inc(x_1205); +x_1206 = lean_ctor_get(x_1204, 1); +lean_inc(x_1206); +lean_dec(x_1204); +x_16 = x_1205; +x_17 = x_1206; +goto block_24; +} +else +{ +lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1207 = lean_ctor_get(x_1204, 0); +lean_inc(x_1207); +x_1208 = lean_ctor_get(x_1204, 1); +lean_inc(x_1208); +if (lean_is_exclusive(x_1204)) { + lean_ctor_release(x_1204, 0); + lean_ctor_release(x_1204, 1); + x_1209 = x_1204; +} else { + lean_dec_ref(x_1204); + x_1209 = lean_box(0); +} +if (lean_is_scalar(x_1209)) { + x_1210 = lean_alloc_ctor(1, 2, 0); +} else { + x_1210 = x_1209; +} +lean_ctor_set(x_1210, 0, x_1207); +lean_ctor_set(x_1210, 1, x_1208); +return x_1210; +} +} +else +{ +lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; +x_1211 = lean_ctor_get(x_1201, 0); +lean_inc(x_1211); +if (lean_is_exclusive(x_1201)) { + lean_ctor_release(x_1201, 0); + x_1212 = x_1201; +} else { + lean_dec_ref(x_1201); + x_1212 = lean_box(0); +} +x_1213 = lean_ctor_get(x_1211, 0); +lean_inc(x_1213); +if (lean_obj_tag(x_1213) == 0) +{ +uint8_t x_1214; lean_object* x_1215; lean_object* x_1216; +lean_dec(x_1212); +lean_dec(x_1211); +lean_dec(x_1155); +x_1214 = 0; +x_1215 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1216 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1167, x_1181, x_1197, x_1198, x_1199, x_1170, x_1183, x_1196, x_1154, x_1200, x_1214, x_1215, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1216) == 0) +{ +lean_object* x_1217; lean_object* x_1218; +x_1217 = lean_ctor_get(x_1216, 0); +lean_inc(x_1217); +x_1218 = lean_ctor_get(x_1216, 1); +lean_inc(x_1218); +lean_dec(x_1216); +x_16 = x_1217; +x_17 = x_1218; +goto block_24; +} +else +{ +lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1219 = lean_ctor_get(x_1216, 0); +lean_inc(x_1219); +x_1220 = lean_ctor_get(x_1216, 1); +lean_inc(x_1220); +if (lean_is_exclusive(x_1216)) { + lean_ctor_release(x_1216, 0); + lean_ctor_release(x_1216, 1); + x_1221 = x_1216; +} else { + lean_dec_ref(x_1216); + x_1221 = lean_box(0); +} +if (lean_is_scalar(x_1221)) { + x_1222 = lean_alloc_ctor(1, 2, 0); +} else { + x_1222 = x_1221; +} +lean_ctor_set(x_1222, 0, x_1219); +lean_ctor_set(x_1222, 1, x_1220); +return x_1222; +} +} +else +{ +lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; +x_1223 = lean_ctor_get(x_1213, 0); +lean_inc(x_1223); +if (lean_is_exclusive(x_1213)) { + lean_ctor_release(x_1213, 0); + x_1224 = x_1213; +} else { + lean_dec_ref(x_1213); + x_1224 = lean_box(0); +} +x_1225 = lean_ctor_get(x_1223, 1); +lean_inc(x_1225); +lean_dec(x_1223); +x_1226 = l_Lean_Language_SnapshotTask_get___rarg(x_1225); +if (lean_obj_tag(x_1226) == 0) +{ +uint8_t x_1227; lean_object* x_1228; lean_object* x_1229; +lean_dec(x_1224); +lean_dec(x_1212); +lean_dec(x_1211); +lean_dec(x_1155); +x_1227 = 0; +x_1228 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1229 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1167, x_1181, x_1197, x_1198, x_1199, x_1170, x_1183, x_1196, x_1154, x_1200, x_1227, x_1228, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_1229) == 0) +{ +lean_object* x_1230; lean_object* x_1231; +x_1230 = lean_ctor_get(x_1229, 0); +lean_inc(x_1230); +x_1231 = lean_ctor_get(x_1229, 1); +lean_inc(x_1231); +lean_dec(x_1229); +x_16 = x_1230; +x_17 = x_1231; +goto block_24; +} +else +{ +lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_1232 = lean_ctor_get(x_1229, 0); +lean_inc(x_1232); +x_1233 = lean_ctor_get(x_1229, 1); +lean_inc(x_1233); +if (lean_is_exclusive(x_1229)) { + lean_ctor_release(x_1229, 0); + lean_ctor_release(x_1229, 1); + x_1234 = x_1229; +} else { + lean_dec_ref(x_1229); + x_1234 = lean_box(0); +} +if (lean_is_scalar(x_1234)) { + x_1235 = lean_alloc_ctor(1, 2, 0); +} else { + x_1235 = x_1234; +} +lean_ctor_set(x_1235, 0, x_1232); +lean_ctor_set(x_1235, 1, x_1233); +return x_1235; +} +} +else +{ +lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; uint8_t x_1262; uint8_t x_1302; +x_1236 = lean_ctor_get(x_1226, 0); +lean_inc(x_1236); +if (lean_is_exclusive(x_1226)) { + lean_ctor_release(x_1226, 0); + x_1237 = x_1226; +} else { + lean_dec_ref(x_1226); + x_1237 = lean_box(0); +} +x_1238 = lean_ctor_get(x_15, 5); +lean_inc(x_1238); +lean_inc(x_1181); +lean_inc(x_1238); +x_1239 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask(x_1238, x_1181, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_1240 = lean_ctor_get(x_1239, 0); +lean_inc(x_1240); +x_1241 = lean_ctor_get(x_1239, 1); +lean_inc(x_1241); +if (lean_is_exclusive(x_1239)) { + lean_ctor_release(x_1239, 0); + lean_ctor_release(x_1239, 1); + x_1242 = x_1239; +} else { + lean_dec_ref(x_1239); + x_1242 = lean_box(0); +} +x_1243 = lean_ctor_get(x_1240, 0); +lean_inc(x_1243); +x_1244 = lean_ctor_get(x_1240, 1); +lean_inc(x_1244); +if (lean_is_exclusive(x_1240)) { + lean_ctor_release(x_1240, 0); + lean_ctor_release(x_1240, 1); + x_1245 = x_1240; +} else { + lean_dec_ref(x_1240); + x_1245 = lean_box(0); +} +x_1246 = lean_ctor_get(x_1236, 0); +lean_inc(x_1246); +x_1247 = lean_ctor_get(x_1236, 1); +lean_inc(x_1247); +x_1248 = lean_ctor_get(x_1236, 2); +lean_inc(x_1248); +x_1249 = lean_ctor_get(x_1236, 3); +lean_inc(x_1249); +x_1250 = lean_ctor_get(x_1236, 4); +lean_inc(x_1250); +x_1251 = lean_ctor_get(x_1236, 5); +lean_inc(x_1251); +x_1252 = lean_ctor_get(x_1236, 6); +lean_inc(x_1252); +if (lean_is_exclusive(x_1236)) { + lean_ctor_release(x_1236, 0); + lean_ctor_release(x_1236, 1); + lean_ctor_release(x_1236, 2); + lean_ctor_release(x_1236, 3); + lean_ctor_release(x_1236, 4); + lean_ctor_release(x_1236, 5); + lean_ctor_release(x_1236, 6); + x_1253 = x_1236; +} else { + lean_dec_ref(x_1236); + x_1253 = lean_box(0); +} +lean_inc(x_1167); +lean_inc(x_1238); +x_1254 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkBodyTask(x_1238, x_1167); +lean_inc(x_1238); +lean_inc(x_1244); +lean_inc(x_1248); +lean_inc(x_1247); +if (lean_is_scalar(x_1253)) { + x_1255 = lean_alloc_ctor(0, 7, 0); +} else { + x_1255 = x_1253; +} +lean_ctor_set(x_1255, 0, x_1246); +lean_ctor_set(x_1255, 1, x_1247); +lean_ctor_set(x_1255, 2, x_1248); +lean_ctor_set(x_1255, 3, x_1243); +lean_ctor_set(x_1255, 4, x_1244); +lean_ctor_set(x_1255, 5, x_1238); +lean_ctor_set(x_1255, 6, x_1254); +if (lean_is_scalar(x_1237)) { + x_1256 = lean_alloc_ctor(1, 1, 0); +} else { + x_1256 = x_1237; +} +lean_ctor_set(x_1256, 0, x_1255); +x_1257 = lean_ctor_get(x_1211, 1); +lean_inc(x_1257); +lean_dec(x_1211); +x_1258 = lean_io_promise_resolve(x_1256, x_1257, x_1241); +lean_dec(x_1257); +x_1259 = lean_ctor_get(x_1258, 1); +lean_inc(x_1259); +if (lean_is_exclusive(x_1258)) { + lean_ctor_release(x_1258, 0); + lean_ctor_release(x_1258, 1); + x_1260 = x_1258; +} else { + lean_dec_ref(x_1258); + x_1260 = lean_box(0); +} +x_1261 = lean_ctor_get(x_10, 2); +lean_inc(x_1261); +x_1302 = lean_unbox(x_1155); +if (x_1302 == 0) +{ +uint8_t x_1303; +lean_dec(x_1261); +lean_dec(x_1251); +lean_dec(x_1238); +x_1303 = 0; +x_1262 = x_1303; +goto block_1301; +} +else +{ +lean_object* x_1304; uint8_t x_1305; +x_1304 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_1261, x_1238, x_1251); +lean_dec(x_1261); +x_1305 = lean_unbox(x_1304); +lean_dec(x_1304); +x_1262 = x_1305; +goto block_1301; +} +block_1301: +{ +lean_object* x_1263; lean_object* x_1272; +if (lean_obj_tag(x_1244) == 0) +{ +lean_dec(x_1250); +lean_dec(x_1249); +lean_dec(x_1155); +if (x_1262 == 0) +{ +lean_dec(x_1252); +lean_dec(x_1242); +x_1263 = x_1200; +goto block_1271; +} +else +{ +lean_dec(x_1260); +lean_dec(x_1245); +lean_dec(x_1224); +lean_dec(x_1212); +x_1272 = x_1200; +goto block_1283; +} +} +else +{ +lean_object* x_1284; uint8_t x_1285; +if (lean_is_exclusive(x_1244)) { + lean_ctor_release(x_1244, 0); + x_1284 = x_1244; +} else { + lean_dec_ref(x_1244); + x_1284 = lean_box(0); +} +x_1285 = lean_unbox(x_1155); +lean_dec(x_1155); +if (x_1285 == 0) +{ +lean_object* x_1286; lean_object* x_1287; +lean_dec(x_1250); +lean_dec(x_1249); +lean_inc(x_1181); +x_1286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1286, 0, x_1200); +lean_ctor_set(x_1286, 1, x_1181); +if (lean_is_scalar(x_1284)) { + x_1287 = lean_alloc_ctor(1, 1, 0); +} else { + x_1287 = x_1284; +} +lean_ctor_set(x_1287, 0, x_1286); +if (x_1262 == 0) +{ +lean_dec(x_1252); +lean_dec(x_1242); +x_1263 = x_1287; +goto block_1271; +} +else +{ +lean_dec(x_1260); +lean_dec(x_1245); +lean_dec(x_1224); +lean_dec(x_1212); +x_1272 = x_1287; +goto block_1283; +} +} +else +{ +if (lean_obj_tag(x_1249) == 0) +{ +lean_object* x_1288; lean_object* x_1289; +lean_dec(x_1250); +lean_inc(x_1181); +x_1288 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1288, 0, x_1200); +lean_ctor_set(x_1288, 1, x_1181); +if (lean_is_scalar(x_1284)) { + x_1289 = lean_alloc_ctor(1, 1, 0); +} else { + x_1289 = x_1284; +} +lean_ctor_set(x_1289, 0, x_1288); +if (x_1262 == 0) +{ +lean_dec(x_1252); +lean_dec(x_1242); +x_1263 = x_1289; +goto block_1271; +} +else +{ +lean_dec(x_1260); +lean_dec(x_1245); +lean_dec(x_1224); +lean_dec(x_1212); +x_1272 = x_1289; +goto block_1283; +} +} +else +{ +lean_dec(x_1284); +if (lean_obj_tag(x_1250) == 0) +{ +lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; +if (lean_is_exclusive(x_1249)) { + lean_ctor_release(x_1249, 0); + x_1290 = x_1249; +} else { + lean_dec_ref(x_1249); + x_1290 = lean_box(0); +} +lean_inc(x_1181); +x_1291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1291, 0, x_1200); +lean_ctor_set(x_1291, 1, x_1181); +if (lean_is_scalar(x_1290)) { + x_1292 = lean_alloc_ctor(1, 1, 0); +} else { + x_1292 = x_1290; +} +lean_ctor_set(x_1292, 0, x_1291); +if (x_1262 == 0) +{ +lean_dec(x_1252); +lean_dec(x_1242); +x_1263 = x_1292; +goto block_1271; +} +else +{ +lean_dec(x_1260); +lean_dec(x_1245); +lean_dec(x_1224); +lean_dec(x_1212); +x_1272 = x_1292; +goto block_1283; +} +} +else +{ +lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; +x_1293 = lean_ctor_get(x_1249, 0); +lean_inc(x_1293); +if (lean_is_exclusive(x_1249)) { + lean_ctor_release(x_1249, 0); + x_1294 = x_1249; +} else { + lean_dec_ref(x_1249); + x_1294 = lean_box(0); +} +x_1295 = lean_ctor_get(x_1250, 0); +lean_inc(x_1295); +if (lean_is_exclusive(x_1250)) { + lean_ctor_release(x_1250, 0); + x_1296 = x_1250; +} else { + lean_dec_ref(x_1250); + x_1296 = lean_box(0); +} +x_1297 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1297, 0, x_1293); +lean_ctor_set(x_1297, 1, x_1295); +if (lean_is_scalar(x_1296)) { + x_1298 = lean_alloc_ctor(1, 1, 0); +} else { + x_1298 = x_1296; +} +lean_ctor_set(x_1298, 0, x_1297); +lean_inc(x_1181); +x_1299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1299, 0, x_1298); +lean_ctor_set(x_1299, 1, x_1181); +if (lean_is_scalar(x_1294)) { + x_1300 = lean_alloc_ctor(1, 1, 0); +} else { + x_1300 = x_1294; +} +lean_ctor_set(x_1300, 0, x_1299); +if (x_1262 == 0) +{ +lean_dec(x_1252); +lean_dec(x_1242); +x_1263 = x_1300; +goto block_1271; +} +else +{ +lean_dec(x_1260); +lean_dec(x_1245); +lean_dec(x_1224); +lean_dec(x_1212); +x_1272 = x_1300; +goto block_1283; +} +} +} +} +} +block_1271: +{ +lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; +lean_inc(x_1167); +if (lean_is_scalar(x_1260)) { + x_1264 = lean_alloc_ctor(0, 2, 0); +} else { + x_1264 = x_1260; +} +lean_ctor_set(x_1264, 0, x_1200); +lean_ctor_set(x_1264, 1, x_1167); +if (lean_is_scalar(x_1224)) { + x_1265 = lean_alloc_ctor(1, 1, 0); +} else { + x_1265 = x_1224; +} +lean_ctor_set(x_1265, 0, x_1264); +lean_inc(x_15); +x_1266 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1266, 0, x_15); +lean_ctor_set(x_1266, 1, x_1247); +lean_ctor_set(x_1266, 2, x_1263); +lean_ctor_set(x_1266, 3, x_1265); +if (lean_is_scalar(x_1245)) { + x_1267 = lean_alloc_ctor(0, 2, 0); +} else { + x_1267 = x_1245; +} +lean_ctor_set(x_1267, 0, x_1266); +lean_ctor_set(x_1267, 1, x_1248); +if (lean_is_scalar(x_1212)) { + x_1268 = lean_alloc_ctor(1, 1, 0); +} else { + x_1268 = x_1212; +} +lean_ctor_set(x_1268, 0, x_1267); +x_1269 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1270 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1167, x_1181, x_1197, x_1198, x_1199, x_1170, x_1183, x_1196, x_1154, x_1268, x_1262, x_1269, x_6, x_7, x_8, x_9, x_10, x_11, x_1259); +x_25 = x_1270; +goto block_32; +} +block_1283: +{ +lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; +x_1273 = lean_box(0); +if (lean_is_scalar(x_1242)) { + x_1274 = lean_alloc_ctor(0, 2, 0); +} else { + x_1274 = x_1242; +} +lean_ctor_set(x_1274, 0, x_1273); +lean_ctor_set(x_1274, 1, x_1252); +x_1275 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1275, 0, x_1274); +lean_inc(x_1167); +x_1276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1276, 0, x_1275); +lean_ctor_set(x_1276, 1, x_1167); +x_1277 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1277, 0, x_1276); +lean_inc(x_15); +x_1278 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1278, 0, x_15); +lean_ctor_set(x_1278, 1, x_1247); +lean_ctor_set(x_1278, 2, x_1272); +lean_ctor_set(x_1278, 3, x_1277); +x_1279 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1279, 0, x_1278); +lean_ctor_set(x_1279, 1, x_1248); +x_1280 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1280, 0, x_1279); +x_1281 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_1282 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1(x_1, x_15, x_1167, x_1181, x_1197, x_1198, x_1199, x_1170, x_1183, x_1196, x_1154, x_1280, x_1262, x_1281, x_6, x_7, x_8, x_9, x_10, x_11, x_1259); +x_25 = x_1282; +goto block_32; +} +} +} +} +} +} +} +} +} +block_24: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(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); +return x_19; +} +else +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = 1; +x_22 = lean_usize_add(x_4, x_21); +x_4 = x_22; +x_5 = x_20; +x_12 = x_17; goto _start; } +} +block_32: +{ +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +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_16 = x_26; +x_17 = x_27; +goto block_24; +} else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -lean_dec(x_139); -lean_dec(x_128); +uint8_t x_28; lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_179 = lean_ctor_get(x_171, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_171, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_181 = x_171; -} else { - lean_dec_ref(x_171); - x_181 = lean_box(0); +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) +{ +return x_25; } -if (lean_is_scalar(x_181)) { - x_182 = lean_alloc_ctor(1, 2, 0); -} else { - x_182 = x_181; +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +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(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_array_uget(x_1, x_2); +x_6 = lean_ctor_get(x_5, 6); +lean_inc(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = 1; +return x_10; +} +else +{ +size_t x_11; size_t x_12; +lean_dec(x_9); +x_11 = 1; +x_12 = lean_usize_add(x_2, x_11); +x_2 = x_12; +goto _start; } -lean_ctor_set(x_182, 0, x_179); -lean_ctor_set(x_182, 1, x_180); -return x_182; } } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_160); -lean_dec(x_157); -lean_dec(x_143); -lean_dec(x_142); -lean_dec(x_141); -lean_dec(x_140); -lean_dec(x_139); -lean_dec(x_128); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_183 = lean_ctor_get(x_163, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_163, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_185 = x_163; -} else { - lean_dec_ref(x_163); - x_185 = lean_box(0); -} -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_185; -} -lean_ctor_set(x_186, 0, x_183); -lean_ctor_set(x_186, 1, x_184); -return x_186; -} -} -} +uint8_t x_14; +x_14 = 0; +return x_14; } } } @@ -5764,59 +15737,69 @@ _start: { lean_object* x_12; lean_inc(x_1); -x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(x_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 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13(x_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_1); if (lean_obj_tag(x_12) == 0) { -uint8_t x_13; -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); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_12, 0); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); +x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); -lean_dec(x_12); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); +lean_dec(x_15); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_12, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); lean_dec(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); -return x_19; +lean_ctor_set(x_12, 0, x_19); +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_16, 0); +lean_inc(x_21); +lean_dec(x_16); +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_20; -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_12); +if (x_23 == 0) { return x_12; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +lean_inc(x_25); +lean_inc(x_24); lean_dec(x_12); -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_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; } } } @@ -5830,55 +15813,103 @@ x_2 = lean_box_usize(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(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_9; size_t x_10; size_t x_11; lean_object* x_12; -x_9 = lean_array_get_size(x_1); -x_10 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_11 = 0; +lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; +x_11 = lean_array_get_size(x_1); +x_12 = lean_usize_of_nat(x_11); +x_13 = 0; +lean_inc(x_9); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); lean_inc(x_1); -x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(x_10, x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_12) == 0) +x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(x_12, x_13, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 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; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1; -lean_inc(x_13); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__1___boxed), 3, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_15); -x_17 = lean_array_get_size(x_13); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_toSubarray___rarg(x_13, x_18, x_17); -x_20 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_box_usize(x_10); -x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1; -x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__2___boxed), 11, 4); -lean_closure_set(x_24, 0, x_1); -lean_closure_set(x_24, 1, x_22); -lean_closure_set(x_24, 2, x_23); -lean_closure_set(x_24, 3, x_21); -x_25 = l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg(x_16, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -return x_25; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 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; uint8_t x_27; +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 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1; +lean_inc(x_15); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__1___boxed), 3, 2); +lean_closure_set(x_18, 0, x_15); +lean_closure_set(x_18, 1, x_17); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_nat_dec_lt(x_19, x_11); +lean_dec(x_11); +x_21 = lean_array_get_size(x_15); +x_22 = l_Array_toSubarray___rarg(x_15, x_19, x_21); +x_23 = lean_array_get_size(x_3); +x_24 = l_Array_toSubarray___rarg(x_3, x_19, x_23); +x_25 = lean_array_get_size(x_2); +x_26 = l_Array_toSubarray___rarg(x_2, x_19, x_25); +if (x_20 == 0) +{ +uint8_t x_39; +x_39 = 1; +x_27 = x_39; +goto block_38; } else { -uint8_t x_26; +uint8_t x_40; +x_40 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14(x_1, x_13, x_12); +if (x_40 == 0) +{ +uint8_t x_41; +x_41 = 1; +x_27 = x_41; +goto block_38; +} +else +{ +uint8_t x_42; +x_42 = 0; +x_27 = x_42; +goto block_38; +} +} +block_38: +{ +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 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_29 = lean_box(x_27); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_26); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_22); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_box_usize(x_12); +x_35 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1; +x_36 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__2___boxed), 11, 4); +lean_closure_set(x_36, 0, x_1); +lean_closure_set(x_36, 1, x_34); +lean_closure_set(x_36, 2, x_35); +lean_closure_set(x_36, 3, x_33); +x_37 = l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg(x_18, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +return x_37; +} +} +else +{ +uint8_t x_43; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5886,23 +15917,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_26 = !lean_is_exclusive(x_12); -if (x_26 == 0) +x_43 = !lean_is_exclusive(x_14); +if (x_43 == 0) { -return x_12; +return x_14; } else { -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_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; +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_14, 0); +x_45 = lean_ctor_get(x_14, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_14); +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; } } } @@ -5974,7 +16005,47 @@ lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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: +{ +lean_object* x_11; +x_11 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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]; +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_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_16, x_17, x_18, x_19, x_20); +lean_dec(x_13); +lean_dec(x_11); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__3___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -5997,15 +16068,11 @@ lean_object* x_19 = _args[18]; _start: { lean_object* x_20; -x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_2); -lean_dec(x_1); +x_20 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); return x_20; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__2___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__4___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -6024,49 +16091,143 @@ 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]; _start: { -lean_object* x_19; -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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_16, x_17, x_18); -return x_19; +lean_object* x_20; +x_20 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__4(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); +return x_20; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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]; -lean_object* x_18 = _args[17]; -_start: -{ -lean_object* x_19; -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_4); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___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, x_16); +lean_dec(x_13); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1___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_18; +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___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); +lean_dec(x_12); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___lambda__1___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_18; +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__10___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); +lean_dec(x_12); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__1___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_18; +x_18 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___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); +lean_dec(x_10); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___lambda__1___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]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +uint8_t x_22; lean_object* x_23; +x_22 = lean_unbox(x_13); +lean_dec(x_13); +x_23 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___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_22, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_14); +return x_23; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13___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; @@ -6074,12 +16235,25 @@ x_13 = lean_unbox_usize(x_3); lean_dec(x_3); x_14 = lean_unbox_usize(x_4); lean_dec(x_4); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_10); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__13(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_2); return x_15; } } +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14(x_1, x_4, x_5); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -6100,7 +16274,6 @@ lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___lambda__2(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_9); return x_14; } } @@ -6133,38 +16306,44 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_15 = lean_array_fget(x_1, x_3); -x_16 = lean_ctor_get(x_15, 1); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -x_17 = l_Lean_Elab_Modifiers_isNonrec(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); lean_dec(x_16); -if (x_17 == 0) +x_18 = l_Lean_Elab_Modifiers_isNonrec(x_17); +lean_dec(x_17); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_18 = lean_ctor_get(x_15, 2); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 7); +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_15, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_15, 3); -lean_inc(x_20); lean_dec(x_15); -x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___lambda__1), 12, 4); -lean_closure_set(x_21, 0, x_3); -lean_closure_set(x_21, 1, x_4); -lean_closure_set(x_21, 2, x_1); -lean_closure_set(x_21, 3, x_2); -x_22 = l_Lean_Elab_Term_withAuxDecl___rarg(x_18, x_19, x_20, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 5); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___lambda__1), 12, 4); +lean_closure_set(x_23, 0, x_3); +lean_closure_set(x_23, 1, x_4); +lean_closure_set(x_23, 2, x_1); +lean_closure_set(x_23, 3, x_2); +x_24 = l_Lean_Elab_Term_withAuxDecl___rarg(x_20, x_21, x_22, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_24; } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_25; lean_object* x_26; lean_dec(x_15); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_3, x_23); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_3, x_25); lean_dec(x_3); -x_3 = x_24; +x_3 = x_26; goto _start; } } @@ -6280,31 +16459,23 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Term", 4); +x_1 = lean_mk_string_from_bytes("letDecl", 7); return x_1; } } static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("letDecl", 7); -return x_1; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; -x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; +x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__4() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__3() { _start: { lean_object* x_1; @@ -6312,19 +16483,19 @@ x_1 = lean_mk_string_from_bytes("letPatDecl", 10); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__5() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; -x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__4; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; +x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__6() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__5() { _start: { lean_object* x_1; @@ -6332,19 +16503,19 @@ x_1 = lean_mk_string_from_bytes("letEqnsDecl", 11); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__7() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; -x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__6; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; +x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__7() { _start: { lean_object* x_1; @@ -6352,19 +16523,19 @@ x_1 = lean_mk_string_from_bytes("letIdDecl", 9); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8() { _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; -x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; +x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__7; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9() { _start: { lean_object* x_1; @@ -6392,7 +16563,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_ x_8 = lean_array_uget(x_3, x_2); x_9 = lean_unsigned_to_nat(0u); x_10 = lean_array_uset(x_3, x_2, x_9); -x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__3; +x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__2; lean_inc(x_8); x_12 = l_Lean_Syntax_isOfKind(x_8, x_11); if (x_12 == 0) @@ -6411,20 +16582,20 @@ else { lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = l_Lean_Syntax_getArg(x_8, x_9); -x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__5; +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__4; lean_inc(x_15); x_17 = l_Lean_Syntax_isOfKind(x_15, x_16); if (x_17 == 0) { lean_object* x_18; uint8_t x_19; lean_dec(x_8); -x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__7; +x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__6; lean_inc(x_15); x_19 = l_Lean_Syntax_isOfKind(x_15, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9; +x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8; lean_inc(x_15); x_21 = l_Lean_Syntax_isOfKind(x_15, x_20); if (x_21 == 0) @@ -6475,7 +16646,7 @@ else lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_dec(x_15); lean_dec(x_10); -x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10; +x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9; x_37 = l_Lean_Macro_throwErrorAt___rarg(x_8, x_36, x_4, x_5); lean_dec(x_8); x_38 = !lean_is_exclusive(x_37); @@ -6554,9 +16725,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6574,9 +16745,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6586,24 +16757,6 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("null", 4); -return x_1; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__5; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string_from_bytes(":=", 2); return x_1; } @@ -6617,7 +16770,7 @@ lean_inc(x_7); lean_dec(x_5); x_8 = 0; x_9 = l_Lean_SourceInfo_fromRef(x_7, x_8); -x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_9); x_11 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_11, 0, x_9); @@ -6626,7 +16779,7 @@ lean_ctor_set(x_11, 2, x_1); x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__4; lean_inc(x_9); x_13 = l_Lean_Syntax_node2(x_9, x_12, x_2, x_11); -x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7; +x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__5; lean_inc(x_9); x_15 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_15, 0, x_9); @@ -6651,9 +16804,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6671,9 +16824,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6723,7 +16876,7 @@ x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Te lean_dec(x_4); lean_inc(x_1); x_21 = l_Array_append___rarg(x_1, x_20); -x_22 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_22 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_16); x_23 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_23, 0, x_16); @@ -6764,9 +16917,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6841,7 +16994,7 @@ lean_inc(x_21); x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_21); lean_ctor_set(x_25, 1, x_24); -x_26 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_26 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_21); x_27 = l_Lean_Syntax_node1(x_21, x_26, x_19); x_28 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__5; @@ -6909,7 +17062,7 @@ lean_inc(x_46); x_50 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_50, 0, x_46); lean_ctor_set(x_50, 1, x_49); -x_51 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_51 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_46); x_52 = l_Lean_Syntax_node1(x_46, x_51, x_44); x_53 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__4___closed__5; @@ -6956,9 +17109,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -6976,9 +17129,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Mutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7006,7 +17159,7 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean x_11 = lean_array_uget(x_6, x_5); x_12 = lean_unsigned_to_nat(0u); x_13 = lean_array_uset(x_6, x_5, x_12); -x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9; +x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8; lean_inc(x_11); x_22 = l_Lean_Syntax_isOfKind(x_11, x_21); if (x_22 == 0) @@ -7295,9 +17448,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7323,7 +17476,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_unsigned_to_nat(0u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); lean_dec(x_1); -x_7 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__3; +x_7 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__2; lean_inc(x_6); x_8 = l_Lean_Syntax_isOfKind(x_6, x_7); if (x_8 == 0) @@ -7355,9 +17508,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7383,9 +17536,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7435,9 +17588,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2___closed__9; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7494,7 +17647,7 @@ lean_inc(x_22); x_24 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); -x_25 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_25 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_2); lean_inc(x_22); x_26 = lean_alloc_ctor(1, 3, 0); @@ -7561,7 +17714,7 @@ lean_inc(x_47); x_49 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6; +x_50 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; lean_inc(x_2); lean_inc(x_47); x_51 = lean_alloc_ctor(1, 3, 0); @@ -7679,9 +17832,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -7720,9 +17873,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__5; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -8083,7 +18236,7 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_decl _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declValSimple", 13); +x_1 = lean_mk_string_from_bytes("declValEqns", 11); return x_1; } } @@ -8091,9 +18244,9 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_decl _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -8103,31 +18256,11 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_decl _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declValEqns", 11); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; -x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string_from_bytes("unexpected declaration body", 27); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6() { +static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4() { _start: { lean_object* x_1; @@ -8139,7 +18272,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declV _start: { lean_object* x_4; uint8_t x_5; uint8_t x_6; -x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; +x_4 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5; lean_inc(x_1); x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); x_6 = !lean_is_exclusive(x_2); @@ -8153,7 +18286,7 @@ lean_ctor_set(x_2, 5, x_8); if (x_5 == 0) { lean_object* x_9; uint8_t x_10; -x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; +x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; lean_inc(x_1); x_10 = l_Lean_Syntax_isOfKind(x_1, x_9); if (x_10 == 0) @@ -8169,7 +18302,7 @@ x_13 = l_Lean_Syntax_isMissing(x_1); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5; +x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; x_15 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_14, x_2, x_3); lean_dec(x_1); return x_15; @@ -8177,7 +18310,7 @@ return x_15; else { lean_object* x_16; lean_object* x_17; -x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6; +x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; x_17 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_16, x_2, x_3); lean_dec(x_1); return x_17; @@ -8242,7 +18375,7 @@ lean_ctor_set(x_34, 5, x_33); if (x_5 == 0) { lean_object* x_35; uint8_t x_36; -x_35 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; +x_35 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; lean_inc(x_1); x_36 = l_Lean_Syntax_isOfKind(x_1, x_35); if (x_36 == 0) @@ -8258,7 +18391,7 @@ x_39 = l_Lean_Syntax_isMissing(x_1); if (x_39 == 0) { lean_object* x_40; lean_object* x_41; -x_40 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5; +x_40 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; x_41 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_40, x_34, x_3); lean_dec(x_1); return x_41; @@ -8266,7 +18399,7 @@ return x_41; else { lean_object* x_42; lean_object* x_43; -x_42 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6; +x_42 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; x_43 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_42, x_34, x_3); lean_dec(x_1); return x_43; @@ -8410,7 +18543,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -8422,7 +18555,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -8435,29 +18571,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -8566,7 +18704,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -8578,7 +18716,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -8591,29 +18732,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__5(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__5(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -8722,7 +18865,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -8734,7 +18877,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -8747,29 +18893,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__7(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__7(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -8793,8 +18941,8 @@ static lean_object* _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lea _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; x_3 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1; x_4 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -9116,8 +19264,8 @@ static lean_object* _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lea _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; x_3 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1; x_4 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__2___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -9136,8 +19284,8 @@ static lean_object* _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lea _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; x_3 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1; x_4 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__2___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -9699,8 +19847,8 @@ static lean_object* _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lea _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; x_3 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1; x_4 = l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__5___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -9847,13 +19995,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declV _start: { lean_object* x_9; uint8_t x_10; -x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; +x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5; lean_inc(x_1); x_10 = l_Lean_Syntax_isOfKind(x_1, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; +x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; lean_inc(x_1); x_12 = l_Lean_Syntax_isOfKind(x_1, x_11); if (x_12 == 0) @@ -10248,154 +20396,757 @@ return x_71; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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, lean_object* x_9) { _start: { -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, 5); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_box(0); +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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) { +_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; +x_15 = lean_ctor_get(x_1, 3); +x_16 = lean_array_get_size(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_14); -x_18 = l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__1(x_2, x_4, x_13, x_14, x_14, x_15, x_14, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_14); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_16); +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__1(x_2, x_6, x_15, x_16, x_16, x_17, x_16, x_18, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_16); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_5); -x_21 = lean_box(0); -x_22 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_23 = l_Lean_Elab_Term_elabTermEnsuringType(x_3, x_20, x_22, x_22, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_23, 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; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_7); +x_23 = lean_box(0); +x_24 = lean_ctor_get(x_8, 0); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +x_25 = lean_ctor_get(x_8, 1); lean_inc(x_25); -lean_dec(x_23); -x_26 = 0; -x_27 = 1; -x_28 = l_Lean_Meta_mkLambdaFVars(x_4, x_24, x_26, x_22, x_27, x_8, x_9, x_10, x_11, x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -return x_28; -} -else -{ -uint8_t x_29; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); -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); +x_26 = lean_ctor_get(x_8, 2); +lean_inc(x_26); +x_27 = lean_ctor_get_uint8(x_8, sizeof(void*)*9); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 1); +x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 2); +x_30 = lean_ctor_get(x_8, 3); 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; +x_31 = lean_ctor_get(x_8, 4); +lean_inc(x_31); +x_32 = lean_ctor_get(x_8, 5); +lean_inc(x_32); +x_33 = lean_ctor_get(x_8, 6); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 3); +x_35 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 4); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 5); +x_37 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 6); +x_38 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 7); +x_39 = lean_ctor_get(x_8, 7); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 8); +x_41 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 9); +x_42 = lean_ctor_get(x_3, 2); +lean_inc(x_42); +x_43 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_43, 0, x_24); +lean_ctor_set(x_43, 1, x_25); +lean_ctor_set(x_43, 2, x_26); +lean_ctor_set(x_43, 3, x_30); +lean_ctor_set(x_43, 4, x_31); +lean_ctor_set(x_43, 5, x_32); +lean_ctor_set(x_43, 6, x_33); +lean_ctor_set(x_43, 7, x_39); +lean_ctor_set(x_43, 8, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*9, x_27); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 1, x_28); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 2, x_29); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 3, x_34); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 4, x_35); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 5, x_36); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 6, x_37); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 7, x_38); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 8, x_40); +lean_ctor_set_uint8(x_43, sizeof(void*)*9 + 9, x_41); +x_44 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_43); +x_45 = l_Lean_Elab_Term_elabTermEnsuringType(x_4, x_22, x_44, x_44, x_23, x_43, x_9, x_10, x_11, x_12, x_13, x_21); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = 1; +x_49 = 0; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_50 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_48, x_49, x_43, x_9, x_10, x_11, x_12, x_13, x_47); +if (lean_obj_tag(x_50) == 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; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_46, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +lean_dec(x_8); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = 1; +x_56 = l_Lean_Meta_mkLambdaFVars(x_6, x_53, x_49, x_44, x_55, x_10, x_11, x_12, x_13, x_54); +lean_dec(x_12); +lean_dec(x_10); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; +x_57 = lean_ctor_get(x_3, 3); +lean_inc(x_57); +lean_dec(x_3); +if (lean_obj_tag(x_57) == 0) +{ +uint8_t x_58; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_9); +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) +{ +return x_56; +} +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_inc(x_59); +lean_dec(x_56); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_56, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +lean_dec(x_56); +x_64 = !lean_is_exclusive(x_57); +if (x_64 == 0) +{ +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; uint8_t x_76; +x_65 = lean_ctor_get(x_57, 0); +x_66 = l_Lean_Core_getAndEmptyMessageLog___rarg(x_13, x_63); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_67, x_68); +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_st_ref_get(x_13, x_71); +lean_dec(x_13); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_io_get_num_heartbeats(x_74); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +x_79 = lean_nat_sub(x_77, x_5); +lean_dec(x_77); +lean_ctor_set(x_75, 1, x_79); +lean_ctor_set(x_75, 0, x_73); +x_80 = lean_st_ref_get(x_11, x_78); +lean_dec(x_11); +x_81 = !lean_is_exclusive(x_80); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_82 = lean_ctor_get(x_80, 0); +x_83 = lean_ctor_get(x_80, 1); +lean_ctor_set(x_80, 1, x_82); +lean_ctor_set(x_80, 0, x_75); +x_84 = lean_st_ref_get(x_9, x_83); +lean_dec(x_9); +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_86 = lean_ctor_get(x_84, 0); +x_87 = lean_ctor_get(x_84, 1); +lean_ctor_set(x_84, 1, x_86); +lean_ctor_set(x_84, 0, x_80); +x_88 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_88, 0, x_70); +lean_ctor_set(x_88, 1, x_23); +lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_49); +lean_inc(x_62); +x_89 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_84); +lean_ctor_set(x_89, 2, x_62); +lean_ctor_set(x_57, 0, x_89); +x_90 = lean_ctor_get(x_65, 1); +lean_inc(x_90); +lean_dec(x_65); +x_91 = lean_io_promise_resolve(x_57, x_90, x_87); +lean_dec(x_90); +x_92 = !lean_is_exclusive(x_91); +if (x_92 == 0) +{ +lean_object* x_93; +x_93 = lean_ctor_get(x_91, 0); +lean_dec(x_93); +lean_ctor_set(x_91, 0, x_62); +return x_91; +} +else +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_62); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +else +{ +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; +x_96 = lean_ctor_get(x_84, 0); +x_97 = lean_ctor_get(x_84, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_84); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_80); +lean_ctor_set(x_98, 1, x_96); +x_99 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_99, 0, x_70); +lean_ctor_set(x_99, 1, x_23); +lean_ctor_set_uint8(x_99, sizeof(void*)*2, x_49); +lean_inc(x_62); +x_100 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_62); +lean_ctor_set(x_57, 0, x_100); +x_101 = lean_ctor_get(x_65, 1); +lean_inc(x_101); +lean_dec(x_65); +x_102 = lean_io_promise_resolve(x_57, x_101, x_97); +lean_dec(x_101); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_104 = x_102; +} else { + lean_dec_ref(x_102); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_62); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +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; 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; +x_106 = lean_ctor_get(x_80, 0); +x_107 = lean_ctor_get(x_80, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_80); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_75); +lean_ctor_set(x_108, 1, x_106); +x_109 = lean_st_ref_get(x_9, x_107); +lean_dec(x_9); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; +} else { + lean_dec_ref(x_109); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_110); +x_114 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_114, 0, x_70); +lean_ctor_set(x_114, 1, x_23); +lean_ctor_set_uint8(x_114, sizeof(void*)*2, x_49); +lean_inc(x_62); +x_115 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +lean_ctor_set(x_115, 2, x_62); +lean_ctor_set(x_57, 0, x_115); +x_116 = lean_ctor_get(x_65, 1); +lean_inc(x_116); +lean_dec(x_65); +x_117 = lean_io_promise_resolve(x_57, x_116, x_111); +lean_dec(x_116); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; +} else { + lean_dec_ref(x_117); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_62); +lean_ctor_set(x_120, 1, x_118); +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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_121 = lean_ctor_get(x_75, 0); +x_122 = lean_ctor_get(x_75, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_75); +x_123 = lean_nat_sub(x_121, x_5); +lean_dec(x_121); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_73); +lean_ctor_set(x_124, 1, x_123); +x_125 = lean_st_ref_get(x_11, x_122); +lean_dec(x_11); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; +} else { + lean_dec_ref(x_125); + x_128 = lean_box(0); +} +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_128; +} +lean_ctor_set(x_129, 0, x_124); +lean_ctor_set(x_129, 1, x_126); +x_130 = lean_st_ref_get(x_9, x_127); +lean_dec(x_9); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; +} else { + lean_dec_ref(x_130); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_129); +lean_ctor_set(x_134, 1, x_131); +x_135 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_135, 0, x_70); +lean_ctor_set(x_135, 1, x_23); +lean_ctor_set_uint8(x_135, sizeof(void*)*2, x_49); +lean_inc(x_62); +x_136 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_134); +lean_ctor_set(x_136, 2, x_62); +lean_ctor_set(x_57, 0, x_136); +x_137 = lean_ctor_get(x_65, 1); +lean_inc(x_137); +lean_dec(x_65); +x_138 = lean_io_promise_resolve(x_57, x_137, x_132); +lean_dec(x_137); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; +} else { + lean_dec_ref(x_138); + x_140 = lean_box(0); +} +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_140; +} +lean_ctor_set(x_141, 0, x_62); +lean_ctor_set(x_141, 1, x_139); +return x_141; +} +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_142 = lean_ctor_get(x_57, 0); +lean_inc(x_142); +lean_dec(x_57); +x_143 = l_Lean_Core_getAndEmptyMessageLog___rarg(x_13, x_63); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_144, x_145); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_st_ref_get(x_13, x_148); +lean_dec(x_13); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_io_get_num_heartbeats(x_151); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +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_152); + x_155 = lean_box(0); +} +x_156 = lean_nat_sub(x_153, x_5); +lean_dec(x_153); +if (lean_is_scalar(x_155)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_155; +} +lean_ctor_set(x_157, 0, x_150); +lean_ctor_set(x_157, 1, x_156); +x_158 = lean_st_ref_get(x_11, x_154); +lean_dec(x_11); +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_161 = x_158; +} else { + lean_dec_ref(x_158); + x_161 = lean_box(0); +} +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(0, 2, 0); +} else { + x_162 = x_161; +} +lean_ctor_set(x_162, 0, x_157); +lean_ctor_set(x_162, 1, x_159); +x_163 = lean_st_ref_get(x_9, x_160); +lean_dec(x_9); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +if (lean_is_scalar(x_166)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_166; +} +lean_ctor_set(x_167, 0, x_162); +lean_ctor_set(x_167, 1, x_164); +x_168 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_168, 0, x_147); +lean_ctor_set(x_168, 1, x_23); +lean_ctor_set_uint8(x_168, sizeof(void*)*2, x_49); +lean_inc(x_62); +x_169 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_62); +x_170 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_170, 0, x_169); +x_171 = lean_ctor_get(x_142, 1); +lean_inc(x_171); +lean_dec(x_142); +x_172 = lean_io_promise_resolve(x_170, x_171, x_165); +lean_dec(x_171); +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_174 = x_172; +} else { + lean_dec_ref(x_172); + x_174 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { + x_175 = x_174; +} +lean_ctor_set(x_175, 0, x_62); +lean_ctor_set(x_175, 1, x_173); +return x_175; } } } else { -uint8_t x_33; +uint8_t x_176; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_3); +x_176 = !lean_is_exclusive(x_56); +if (x_176 == 0) +{ +return x_56; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_56, 0); +x_178 = lean_ctor_get(x_56, 1); +lean_inc(x_178); +lean_inc(x_177); +lean_dec(x_56); +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +return x_179; +} +} +} +else +{ +uint8_t x_180; +lean_dec(x_46); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_180 = !lean_is_exclusive(x_50); +if (x_180 == 0) +{ +return x_50; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_50, 0); +x_182 = lean_ctor_get(x_50, 1); +lean_inc(x_182); +lean_inc(x_181); +lean_dec(x_50); +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +return x_183; +} +} +} +else +{ +uint8_t x_184; +lean_dec(x_43); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_184 = !lean_is_exclusive(x_45); +if (x_184 == 0) +{ +return x_45; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_45, 0); +x_186 = lean_ctor_get(x_45, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_45); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} +} +} +else +{ +uint8_t x_188; +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_33 = !lean_is_exclusive(x_18); -if (x_33 == 0) +x_188 = !lean_is_exclusive(x_20); +if (x_188 == 0) { -return x_18; +return x_20; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_18, 0); -x_35 = lean_ctor_get(x_18, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_18); -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; +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_20, 0); +x_190 = lean_ctor_get(x_20, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_20); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; } } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_10; +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_10 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_12 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 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; uint8_t x_17; lean_object* x_18; -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_2, 7); +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; +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -x_14 = lean_ctor_get(x_2, 6); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -lean_inc(x_14); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1___boxed), 12, 3); -lean_closure_set(x_16, 0, x_2); -lean_closure_set(x_16, 1, x_14); -lean_closure_set(x_16, 2, x_11); -x_17 = 0; -x_18 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(x_13, x_15, x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -return x_18; +lean_dec(x_12); +x_15 = lean_ctor_get(x_2, 5); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 4); +lean_inc(x_16); +lean_inc(x_16); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__2___boxed), 14, 5); +lean_closure_set(x_18, 0, x_2); +lean_closure_set(x_18, 1, x_16); +lean_closure_set(x_18, 2, x_3); +lean_closure_set(x_18, 3, x_13); +lean_closure_set(x_18, 4, x_4); +x_19 = 0; +x_20 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(x_15, x_17, x_18, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_20; } else { -uint8_t x_19; +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10403,28 +21154,1236 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 0) +x_21 = !lean_is_exclusive(x_12); +if (x_21 == 0) { -return x_10; +return x_12; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_inc(x_20); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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) { +_start: +{ +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; +x_10 = lean_io_get_num_heartbeats(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_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 5); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm), 3, 1); +lean_closure_set(x_18, 0, x_17); +x_19 = lean_alloc_closure((void*)(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__3), 11, 4); +lean_closure_set(x_19, 0, x_18); +lean_closure_set(x_19, 1, x_13); +lean_closure_set(x_19, 2, x_1); +lean_closure_set(x_19, 3, x_11); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); +lean_closure_set(x_20, 0, x_15); +lean_closure_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Term_withDeclName___rarg(x_14, x_20, x_2, x_3, x_4, x_5, x_7, x_8, x_12); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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, lean_object* x_9) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +return x_11; +} +else +{ +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; lean_object* x_20; uint8_t x_21; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_ctor_get(x_6, 0); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_st_ref_set(x_8, x_15, x_9); +lean_dec(x_8); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_uint64_of_nat(x_18); +lean_dec(x_18); +x_20 = lean_io_add_heartbeats(x_19, x_17); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_13); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__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) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +return x_11; +} +else +{ +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; lean_object* x_20; uint8_t x_21; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_ctor_get(x_6, 0); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_st_ref_set(x_8, x_15, x_9); +lean_dec(x_8); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_uint64_of_nat(x_18); +lean_dec(x_18); +x_20 = lean_io_add_heartbeats(x_19, x_17); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_13); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4(x_2, x_3, x_4, x_6, x_7, x_11, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +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; +} +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_1); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_1, 0); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +lean_ctor_set(x_22, 1, x_25); +x_26 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__5(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_10); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_22); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_1, 0, x_38); +x_39 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__5(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_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 = 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); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_39, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_46 = x_39; +} else { + lean_dec_ref(x_39); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +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; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +lean_dec(x_50); +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_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__5(x_2, x_3, x_4, x_6, x_7, x_54, x_8, x_9, x_10); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 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; +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_9) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3___lambda__1(x_4, x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +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_ctor_get(x_4, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_set(x_6, x_14, x_9); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3___lambda__1(x_4, x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_16); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_9) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +return x_11; +} +else +{ +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; lean_object* x_20; uint8_t x_21; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_ctor_get(x_6, 0); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_st_ref_set(x_8, x_15, x_9); +lean_dec(x_8); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_uint64_of_nat(x_18); +lean_dec(x_18); +x_20 = lean_io_add_heartbeats(x_19, x_17); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_13); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_9) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +return x_11; +} +else +{ +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; lean_object* x_20; uint8_t x_21; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_ctor_get(x_6, 0); +lean_inc(x_12); +lean_dec(x_6); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_st_ref_set(x_8, x_15, x_9); +lean_dec(x_8); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_uint64_of_nat(x_18); +lean_dec(x_18); +x_20 = lean_io_add_heartbeats(x_19, x_17); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_13); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__7(x_2, x_3, x_4, x_6, x_7, x_11, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +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; +} +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_1); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_1, 0); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +lean_ctor_set(x_22, 1, x_25); +x_26 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__8(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_10); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_22); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_1, 0, x_38); +x_39 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__8(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_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 = 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); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_39, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_46 = x_39; +} else { + lean_dec_ref(x_39); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +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; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +lean_dec(x_50); +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_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__8(x_2, x_3, x_4, x_6, x_7, x_54, x_8, x_9, x_10); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 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; +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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, lean_object* x_9) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___lambda__1(x_4, x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +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_ctor_get(x_4, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_set(x_6, x_14, x_9); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___lambda__1(x_4, x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_16); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3(x_2, x_4, x_5, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +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; +} +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_1); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_1, 0); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +lean_ctor_set(x_22, 1, x_25); +x_26 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6(x_2, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_22); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_1, 0, x_38); +x_39 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6(x_2, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_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 = 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); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_39, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_46 = x_39; +} else { + lean_dec_ref(x_39); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +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; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +lean_dec(x_50); +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_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6(x_2, x_4, x_5, x_54, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 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; +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1(x_2, x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +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_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_set(x_4, x_14, x_9); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1(x_2, x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_16); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_dec(x_3); +x_11 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_12); +lean_inc(x_13); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_box(0); +x_17 = lean_apply_9(x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9(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) { _start: { uint8_t x_11; @@ -10445,50 +22404,298 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_28; lean_object* x_29; x_13 = lean_array_uget(x_3, x_2); x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_uset(x_3, x_2, x_14); -x_16 = lean_ctor_get(x_13, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_13, 4); -lean_inc(x_17); -x_18 = lean_ctor_get(x_13, 8); -lean_inc(x_18); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm), 3, 1); -lean_closure_set(x_19, 0, x_18); -x_20 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__2), 9, 2); -lean_closure_set(x_20, 0, x_19); -lean_closure_set(x_20, 1, x_13); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_21, 0, x_17); -lean_closure_set(x_21, 1, x_20); +x_28 = lean_box(0); +x_29 = lean_ctor_get(x_13, 3); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_22 = l_Lean_Elab_Term_withDeclName___rarg(x_16, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_22) == 0) +x_30 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_13, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = x_30; +goto block_27; +} +else { -lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = 1; -x_26 = lean_usize_add(x_2, x_25); -x_27 = lean_array_uset(x_15, x_2, x_23); -x_2 = x_26; -x_3 = x_27; -x_10 = x_24; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +lean_dec(x_31); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_33 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_13, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = x_33; +goto block_27; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_13); +x_35 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__1), 10, 1); +lean_closure_set(x_35, 0, x_13); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Language_SnapshotTask_get___rarg(x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +lean_dec(x_35); +lean_dec(x_31); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_38 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_13, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = x_38; +goto block_27; +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_37, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_31, 1); +lean_inc(x_41); +lean_dec(x_31); +x_42 = lean_io_promise_resolve(x_37, x_41, x_10); +lean_dec(x_41); +x_43 = lean_ctor_get(x_13, 2); +lean_inc(x_43); +lean_dec(x_13); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_46 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_40, x_35, x_28, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +lean_dec(x_40); +x_16 = x_46; +goto block_27; +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_43, 0); +lean_inc(x_47); +lean_dec(x_43); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_47); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_dec(x_42); +x_50 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_51 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_40, x_35, x_28, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_49); +lean_dec(x_40); +x_16 = x_51; +goto block_27; +} +else +{ +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; +x_52 = lean_ctor_get(x_42, 1); +lean_inc(x_52); +lean_dec(x_42); +x_53 = lean_ctor_get(x_48, 0); +lean_inc(x_53); +lean_dec(x_48); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = l_Lean_Language_SnapshotTask_get___rarg(x_54); +x_56 = lean_ctor_get(x_47, 1); +lean_inc(x_56); +lean_dec(x_47); +x_57 = lean_io_promise_resolve(x_55, x_56, x_52); +lean_dec(x_56); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_60 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_40, x_35, x_28, x_58, x_4, x_5, x_6, x_7, x_8, x_9, x_59); +lean_dec(x_58); +lean_dec(x_40); +x_16 = x_60; +goto block_27; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_37, 0); +lean_inc(x_61); +lean_dec(x_37); +lean_inc(x_61); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_ctor_get(x_31, 1); +lean_inc(x_63); +lean_dec(x_31); +x_64 = lean_io_promise_resolve(x_62, x_63, x_10); +lean_dec(x_63); +x_65 = lean_ctor_get(x_13, 2); +lean_inc(x_65); +lean_dec(x_13); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_68 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_61, x_35, x_28, x_67, x_4, x_5, x_6, x_7, x_8, x_9, x_66); +lean_dec(x_61); +x_16 = x_68; +goto block_27; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_65, 0); +lean_inc(x_69); +lean_dec(x_65); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_69); +x_71 = lean_ctor_get(x_64, 1); +lean_inc(x_71); +lean_dec(x_64); +x_72 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_73 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_61, x_35, x_28, x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_71); +lean_dec(x_61); +x_16 = x_73; +goto block_27; +} +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_object* x_82; +x_74 = lean_ctor_get(x_64, 1); +lean_inc(x_74); +lean_dec(x_64); +x_75 = lean_ctor_get(x_70, 0); +lean_inc(x_75); +lean_dec(x_70); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = l_Lean_Language_SnapshotTask_get___rarg(x_76); +x_78 = lean_ctor_get(x_69, 1); +lean_inc(x_78); +lean_dec(x_69); +x_79 = lean_io_promise_resolve(x_77, x_78, x_74); +lean_dec(x_78); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_82 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(x_61, x_35, x_28, x_80, x_4, x_5, x_6, x_7, x_8, x_9, x_81); +lean_dec(x_80); +lean_dec(x_61); +x_16 = x_82; +goto block_27; +} +} +} +} +} +} +block_27: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; size_t x_19; size_t 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 = 1; +x_20 = lean_usize_add(x_2, x_19); +x_21 = lean_array_uset(x_15, x_2, x_17); +x_2 = x_20; +x_3 = x_21; +x_10 = x_18; goto _start; } else { -uint8_t x_29; +uint8_t x_23; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -10496,23 +22703,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_29 = !lean_is_exclusive(x_22); -if (x_29 == 0) +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) { -return x_22; +return x_16; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_22, 0); -x_31 = lean_ctor_get(x_22, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_22); -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_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_16); +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; +} } } } @@ -10526,7 +22734,7 @@ x_9 = lean_array_get_size(x_1); x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; -x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_10, x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9(x_10, x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_12; } } @@ -10544,17 +22752,80 @@ lean_dec(x_1); return x_17; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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_13; -x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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_object* x_10; +x_10 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___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); +lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -return x_13; +return x_15; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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) { +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__3___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_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___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: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__6___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_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Term_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___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; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___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: +{ +lean_object* x_12; +x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9___lambda__2(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_4); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___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: { size_t x_11; size_t x_12; lean_object* x_13; @@ -10562,7 +22833,7 @@ x_11 = lean_unbox_usize(x_1); lean_dec(x_1); x_12 = lean_unbox_usize(x_2); lean_dec(x_2); -x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__9(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } @@ -10645,32 +22916,35 @@ 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; size_t x_17; size_t x_18; +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_dec(x_4); x_12 = lean_array_uget(x_1, x_2); -x_13 = lean_ctor_get(x_12, 7); +x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Lean_Expr_collectFVars(x_13, x_5, x_6, x_7, x_8, x_9, x_10); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +x_14 = lean_ctor_get(x_13, 5); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Expr_collectFVars(x_14, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = 1; -x_18 = lean_usize_add(x_2, x_17); -x_2 = x_18; -x_4 = x_15; -x_10 = x_16; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_2 = x_19; +x_4 = x_16; +x_10 = x_17; goto _start; } else { -lean_object* x_20; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_10); -return x_20; +lean_object* x_21; +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_10); +return x_21; } } } @@ -10975,7 +23249,7 @@ if (x_4 == 0) { lean_object* x_5; uint8_t x_6; uint8_t x_7; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*7); +x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); lean_dec(x_5); x_7 = l_Lean_Elab_DefKind_isExample(x_6); if (x_7 == 0) @@ -11059,7 +23333,7 @@ if (x_4 == 0) { lean_object* x_5; uint8_t x_6; uint8_t x_7; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*7); +x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); lean_dec(x_5); x_7 = l_Lean_Elab_DefKind_isTheorem(x_6); if (x_7 == 0) @@ -11141,88 +23415,158 @@ uint8_t x_9; x_9 = !lean_is_exclusive(x_1); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_1, 7); -x_11 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_1, 1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_11, 0); -lean_ctor_set(x_1, 7, x_13); -lean_ctor_set(x_11, 0, x_1); -return x_11; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_10, 5); +x_13 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 0); +lean_ctor_set(x_10, 5, x_15); +lean_ctor_set(x_13, 0, x_1); +return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_11, 0); -x_15 = lean_ctor_get(x_11, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_11); -lean_ctor_set(x_1, 7, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_15); -return x_16; +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_13, 0); +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_13); +lean_ctor_set(x_10, 5, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } else { -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_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; -x_17 = lean_ctor_get(x_1, 0); -x_18 = lean_ctor_get(x_1, 1); -x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); -x_20 = lean_ctor_get(x_1, 2); -x_21 = lean_ctor_get(x_1, 3); -x_22 = lean_ctor_get(x_1, 4); -x_23 = lean_ctor_get(x_1, 5); -x_24 = lean_ctor_get(x_1, 6); -x_25 = lean_ctor_get(x_1, 7); -x_26 = lean_ctor_get(x_1, 8); -lean_inc(x_26); -lean_inc(x_25); +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; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +x_21 = lean_ctor_get(x_10, 2); +x_22 = lean_ctor_get(x_10, 3); +x_23 = lean_ctor_get(x_10, 4); +x_24 = lean_ctor_get(x_10, 5); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -lean_inc(x_18); -lean_inc(x_17); +lean_inc(x_19); +lean_dec(x_10); +x_25 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_28 = x_25; +} else { + lean_dec_ref(x_25); + x_28 = lean_box(0); +} +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_22); +lean_ctor_set(x_29, 4, x_23); +lean_ctor_set(x_29, 5, x_26); +lean_ctor_set(x_1, 1, x_29); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +else +{ +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; +x_31 = lean_ctor_get(x_1, 1); +x_32 = lean_ctor_get(x_1, 0); +x_33 = lean_ctor_get(x_1, 2); +x_34 = lean_ctor_get(x_1, 3); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_31); +lean_inc(x_32); lean_dec(x_1); -x_27 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; +x_35 = lean_ctor_get(x_31, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +x_37 = lean_ctor_get(x_31, 2); +lean_inc(x_37); +x_38 = lean_ctor_get(x_31, 3); +lean_inc(x_38); +x_39 = lean_ctor_get(x_31, 4); +lean_inc(x_39); +x_40 = lean_ctor_get(x_31, 5); +lean_inc(x_40); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + lean_ctor_release(x_31, 2); + lean_ctor_release(x_31, 3); + lean_ctor_release(x_31, 4); + lean_ctor_release(x_31, 5); + x_41 = x_31; } else { - lean_dec_ref(x_27); - x_30 = lean_box(0); + lean_dec_ref(x_31); + x_41 = lean_box(0); } -x_31 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_31, 0, x_17); -lean_ctor_set(x_31, 1, x_18); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_23); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_28); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_19); -if (lean_is_scalar(x_30)) { - x_32 = lean_alloc_ctor(0, 2, 0); +x_42 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +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 { - x_32 = x_30; + lean_dec_ref(x_42); + x_45 = lean_box(0); } -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_29); -return x_32; +if (lean_is_scalar(x_41)) { + x_46 = lean_alloc_ctor(0, 6, 0); +} else { + x_46 = x_41; +} +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +lean_ctor_set(x_46, 2, x_37); +lean_ctor_set(x_46, 3, x_38); +lean_ctor_set(x_46, 4, x_39); +lean_ctor_set(x_46, 5, x_43); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_32); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_33); +lean_ctor_set(x_47, 3, x_34); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_44); +return x_48; } } } @@ -16017,8 +28361,8 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_Mutu _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2; +x_1 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1; +x_2 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2; x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -17493,16 +29837,6 @@ return x_43; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6(lean_object* x_1, size_t 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_object* x_13) { _start: { @@ -19191,21 +31525,6 @@ lean_dec(x_3); return x_16; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6___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_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_10; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -19442,74 +31761,86 @@ x_19 = l___private_Init_GetElem_0__outOfBounds___rarg(x_18); x_20 = l_Lean_Expr_fvarId_x21(x_19); if (x_16 == 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_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_dec(x_12); x_21 = l_Lean_Elab_instInhabitedDefViewElabHeader; x_22 = l___private_Init_GetElem_0__outOfBounds___rarg(x_21); -x_23 = lean_ctor_get(x_22, 3); +x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); -x_24 = l_Lean_Expr_const___override(x_23, x_17); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Expr_const___override(x_24, x_17); lean_inc(x_1); -x_25 = l_Lean_mkAppN(x_24, x_1); -x_26 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_20, x_25); +x_26 = l_Lean_mkAppN(x_25, x_1); +x_27 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_20, x_26); x_5 = x_10; -x_6 = x_26; +x_6 = x_27; goto _start; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_array_fget(x_2, x_12); +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_array_fget(x_2, x_12); lean_dec(x_12); -x_29 = lean_ctor_get(x_28, 3); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l_Lean_Expr_const___override(x_29, x_17); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = l_Lean_Expr_const___override(x_31, x_17); lean_inc(x_1); -x_31 = l_Lean_mkAppN(x_30, x_1); -x_32 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_20, x_31); +x_33 = l_Lean_mkAppN(x_32, x_1); +x_34 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_20, x_33); x_5 = x_10; -x_6 = x_32; +x_6 = x_34; goto _start; } } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_array_fget(x_3, x_12); -x_35 = l_Lean_Expr_fvarId_x21(x_34); +lean_object* x_36; lean_object* x_37; +x_36 = lean_array_fget(x_3, x_12); +x_37 = l_Lean_Expr_fvarId_x21(x_36); if (x_16 == 0) { -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_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_dec(x_12); -x_36 = l_Lean_Elab_instInhabitedDefViewElabHeader; -x_37 = l___private_Init_GetElem_0__outOfBounds___rarg(x_36); -x_38 = lean_ctor_get(x_37, 3); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_Expr_const___override(x_38, x_17); +x_38 = l_Lean_Elab_instInhabitedDefViewElabHeader; +x_39 = l___private_Init_GetElem_0__outOfBounds___rarg(x_38); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l_Lean_Expr_const___override(x_41, x_17); lean_inc(x_1); -x_40 = l_Lean_mkAppN(x_39, x_1); -x_41 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_35, x_40); +x_43 = l_Lean_mkAppN(x_42, x_1); +x_44 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_37, x_43); x_5 = x_10; -x_6 = x_41; +x_6 = x_44; goto _start; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_array_fget(x_2, x_12); +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_array_fget(x_2, x_12); lean_dec(x_12); -x_44 = lean_ctor_get(x_43, 3); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Lean_Expr_const___override(x_44, x_17); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l_Lean_Expr_const___override(x_48, x_17); lean_inc(x_1); -x_46 = l_Lean_mkAppN(x_45, x_1); -x_47 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_35, x_46); +x_50 = l_Lean_mkAppN(x_49, x_1); +x_51 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_6, x_37, x_50); x_5 = x_10; -x_6 = x_47; +x_6 = x_51; goto _start; } } @@ -20557,26 +32888,34 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__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, 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_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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) { _start: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = l_Lean_Elab_getDeclarationSelectionRef(x_1); +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; lean_object* x_22; lean_object* x_23; +x_15 = lean_ctor_get(x_1, 0); +lean_inc(x_15); +x_16 = l_Lean_Elab_getDeclarationSelectionRef(x_15); +x_17 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -lean_ctor_set(x_19, 2, x_3); -lean_ctor_set(x_19, 3, x_4); -lean_ctor_set(x_19, 4, x_5); -lean_ctor_set(x_19, 5, x_6); -lean_ctor_set(x_19, 6, x_7); -lean_ctor_set_uint8(x_19, sizeof(void*)*7, x_2); -x_20 = lean_array_push(x_8, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_16); -return x_21; +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +lean_dec(x_1); +x_20 = lean_ctor_get(x_2, 1); +lean_inc(x_20); +x_21 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_19); +lean_ctor_set(x_21, 3, x_20); +lean_ctor_set(x_21, 4, x_3); +lean_ctor_set(x_21, 5, x_4); +lean_ctor_set(x_21, 6, x_5); +lean_ctor_set_uint8(x_21, sizeof(void*)*7, x_17); +x_22 = lean_array_push(x_6, 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_14); +return x_23; } } static lean_object* _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1() { @@ -20621,224 +32960,228 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_nat_dec_eq(x_5, 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_95; uint8_t x_96; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_96; uint8_t x_97; x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_sub(x_5, x_16); lean_dec(x_5); x_18 = lean_nat_sub(x_4, x_17); x_19 = lean_nat_sub(x_18, x_16); lean_dec(x_18); -x_95 = lean_array_get_size(x_2); -x_96 = lean_nat_dec_lt(x_19, x_95); -lean_dec(x_95); -if (x_96 == 0) +x_96 = lean_array_get_size(x_2); +x_97 = lean_nat_dec_lt(x_19, x_96); +lean_dec(x_96); +if (x_97 == 0) { -lean_object* x_97; lean_object* x_98; -x_97 = l_Lean_Elab_instInhabitedDefViewElabHeader; -x_98 = l___private_Init_GetElem_0__outOfBounds___rarg(x_97); -x_20 = x_98; -goto block_94; +lean_object* x_98; lean_object* x_99; +x_98 = l_Lean_Elab_instInhabitedDefViewElabHeader; +x_99 = l___private_Init_GetElem_0__outOfBounds___rarg(x_98); +x_20 = x_99; +goto block_95; } else { -lean_object* x_99; -x_99 = lean_array_fget(x_2, x_19); -x_20 = x_99; -goto block_94; +lean_object* x_100; +x_100 = lean_array_fget(x_2, x_19); +x_20 = x_100; +goto block_95; } -block_94: +block_95: { -lean_object* x_21; 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_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +x_22 = lean_ctor_get(x_21, 5); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_20, sizeof(void*)*9); -x_24 = lean_ctor_get(x_20, 3); -lean_inc(x_24); -x_25 = lean_ctor_get(x_20, 6); -lean_inc(x_25); -x_26 = lean_ctor_get(x_20, 7); -lean_inc(x_26); -x_27 = lean_ctor_get(x_20, 8); -lean_inc(x_27); -lean_dec(x_20); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_28 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_28) == 0) +x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint(x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_85; uint8_t x_86; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_85 = lean_array_get_size(x_3); -x_86 = lean_nat_dec_lt(x_19, x_85); -lean_dec(x_85); -if (x_86 == 0) +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_86; uint8_t x_87; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_dec(x_20); +x_27 = lean_ctor_get(x_26, 4); +lean_inc(x_27); +x_86 = lean_array_get_size(x_3); +x_87 = lean_nat_dec_lt(x_19, x_86); +lean_dec(x_86); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; +lean_object* x_88; lean_object* x_89; lean_dec(x_19); -x_87 = l_Lean_instInhabitedExpr; -x_88 = l___private_Init_GetElem_0__outOfBounds___rarg(x_87); -x_31 = x_88; -goto block_84; +x_88 = l_Lean_instInhabitedExpr; +x_89 = l___private_Init_GetElem_0__outOfBounds___rarg(x_88); +x_28 = x_89; +goto block_85; } else { -lean_object* x_89; -x_89 = lean_array_fget(x_3, x_19); +lean_object* x_90; +x_90 = lean_array_fget(x_3, x_19); lean_dec(x_19); -x_31 = x_89; -goto block_84; +x_28 = x_90; +goto block_85; } -block_84: +block_85: { -lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; -x_32 = l_Lean_Elab_WF_TerminationHints_rememberExtraParams(x_25, x_29, x_31); -lean_dec(x_25); -x_33 = 0; -x_34 = 1; -x_35 = 1; +lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; +x_29 = l_Lean_Elab_WF_TerminationHints_rememberExtraParams(x_27, x_24, x_28); +lean_dec(x_27); +x_30 = 0; +x_31 = 1; +x_32 = 1; lean_inc(x_1); -x_36 = l_Lean_Meta_mkLambdaFVars(x_1, x_31, x_33, x_34, x_35, x_9, x_10, x_11, x_12, x_30); -if (lean_obj_tag(x_36) == 0) +x_33 = l_Lean_Meta_mkLambdaFVars(x_1, x_28, x_30, x_31, x_32, x_9, x_10, x_11, x_12, x_25); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_26, 5); +lean_inc(x_36); +lean_inc(x_1); +x_37 = l_Lean_Meta_mkForallFVars(x_1, x_36, x_30, x_31, x_32, x_9, x_10, x_11, x_12, x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_36); -lean_inc(x_1); -x_39 = l_Lean_Meta_mkForallFVars(x_1, x_26, x_33, x_34, x_35, x_9, x_10, x_11, x_12, x_38); -if (lean_obj_tag(x_39) == 0) +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get_uint8(x_21, sizeof(void*)*8); +x_41 = l_Lean_Elab_DefKind_isTheorem(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_Elab_DefKind_isTheorem(x_23); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_box(0); -x_44 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_23, x_22, x_24, x_40, x_37, x_32, x_6, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_41); -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_box(0); +x_43 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_26, x_38, x_34, x_29, x_6, x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_39); +lean_dec(x_26); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); +lean_dec(x_43); x_5 = x_17; -x_6 = x_45; -x_13 = x_46; +x_6 = x_44; +x_13 = x_45; goto _start; } else { -lean_object* x_48; +lean_object* x_47; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_40); -x_48 = l_Lean_Meta_isProp(x_40, x_9, x_10, x_11, x_12, x_41); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_38); +x_47 = l_Lean_Meta_isProp(x_38, x_9, x_10, x_11, x_12, x_39); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_unbox(x_49); -lean_dec(x_49); -if (x_50 == 0) +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_unbox(x_48); +lean_dec(x_48); +if (x_49 == 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_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -lean_dec(x_37); -lean_dec(x_32); -lean_dec(x_22); +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; uint8_t x_63; +lean_dec(x_34); +lean_dec(x_29); lean_dec(x_17); lean_dec(x_6); lean_dec(x_1); -x_51 = lean_ctor_get(x_48, 1); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_dec(x_47); +x_51 = lean_ctor_get(x_21, 0); lean_inc(x_51); -lean_dec(x_48); -x_52 = l_Lean_MessageData_ofName(x_24); -x_53 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2; -x_54 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4; -x_56 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_indentExpr(x_40); -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -x_59 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7(x_21, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +lean_dec(x_21); +x_52 = lean_ctor_get(x_26, 1); +lean_inc(x_52); +lean_dec(x_26); +x_53 = l_Lean_MessageData_ofName(x_52); +x_54 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2; +x_55 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4; +x_57 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_indentExpr(x_38); +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_61 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7(x_51, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_50); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_21); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +lean_dec(x_51); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) { -return x_61; +return x_62; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_ctor_get(x_61, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_61); -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_dec(x_62); +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_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_ctor_get(x_48, 1); -lean_inc(x_66); -lean_dec(x_48); -x_67 = lean_box(0); -x_68 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_23, x_22, x_24, x_40, x_37, x_32, x_6, x_67, x_7, x_8, x_9, x_10, x_11, x_12, x_66); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_ctor_get(x_47, 1); +lean_inc(x_67); +lean_dec(x_47); +x_68 = lean_box(0); +x_69 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_26, x_38, x_34, x_29, x_6, x_68, x_7, x_8, x_9, x_10, x_11, x_12, x_67); +lean_dec(x_26); +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_68); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); x_5 = x_17; -x_6 = x_69; -x_13 = x_70; +x_6 = x_70; +x_13 = x_71; goto _start; } } else { -uint8_t x_72; -lean_dec(x_40); -lean_dec(x_37); -lean_dec(x_32); -lean_dec(x_24); -lean_dec(x_22); +uint8_t x_73; +lean_dec(x_38); +lean_dec(x_34); +lean_dec(x_29); +lean_dec(x_26); lean_dec(x_21); lean_dec(x_17); lean_dec(x_12); @@ -20849,34 +33192,33 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_48); -if (x_72 == 0) +x_73 = !lean_is_exclusive(x_47); +if (x_73 == 0) { -return x_48; +return x_47; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_48, 0); -x_74 = lean_ctor_get(x_48, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_47, 0); +x_75 = lean_ctor_get(x_47, 1); +lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_48); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_dec(x_47); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } } else { -uint8_t x_76; -lean_dec(x_37); -lean_dec(x_32); -lean_dec(x_24); -lean_dec(x_22); +uint8_t x_77; +lean_dec(x_34); +lean_dec(x_29); +lean_dec(x_26); lean_dec(x_21); lean_dec(x_17); lean_dec(x_12); @@ -20887,33 +33229,31 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_39); -if (x_76 == 0) +x_77 = !lean_is_exclusive(x_37); +if (x_77 == 0) { -return x_39; +return x_37; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_39, 0); -x_78 = lean_ctor_get(x_39, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_37, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_39); -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; +lean_dec(x_37); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } else { -uint8_t x_80; -lean_dec(x_32); +uint8_t x_81; +lean_dec(x_29); lean_dec(x_26); -lean_dec(x_24); -lean_dec(x_22); lean_dec(x_21); lean_dec(x_17); lean_dec(x_12); @@ -20924,35 +33264,32 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_80 = !lean_is_exclusive(x_36); -if (x_80 == 0) +x_81 = !lean_is_exclusive(x_33); +if (x_81 == 0) { -return x_36; +return x_33; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_36, 0); -x_82 = lean_ctor_get(x_36, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_33, 0); +x_83 = lean_ctor_get(x_33, 1); +lean_inc(x_83); lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_36); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_dec(x_33); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } } else { -uint8_t x_90; -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_22); +uint8_t x_91; lean_dec(x_21); +lean_dec(x_20); lean_dec(x_19); lean_dec(x_17); lean_dec(x_12); @@ -20963,30 +33300,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_90 = !lean_is_exclusive(x_28); -if (x_90 == 0) +x_91 = !lean_is_exclusive(x_23); +if (x_91 == 0) { -return x_28; +return x_23; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_28, 0); -x_92 = lean_ctor_get(x_28, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_23, 0); +x_93 = lean_ctor_get(x_23, 1); +lean_inc(x_93); lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_28); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +lean_dec(x_23); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } } else { -lean_object* x_100; +lean_object* x_101; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20995,10 +33332,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_6); -lean_ctor_set(x_100, 1, x_13); -return x_100; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_6); +lean_ctor_set(x_101, 1, x_13); +return x_101; } } } @@ -21015,21 +33352,20 @@ lean_dec(x_3); return x_13; } } -LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_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_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_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_17; lean_object* x_18; -x_17 = lean_unbox(x_2); -lean_dec(x_2); -x_18 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_1, x_17, 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); -lean_dec(x_15); -lean_dec(x_14); +lean_object* x_15; +x_15 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -return x_18; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +return x_15; } } LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_object* x_13) { @@ -21557,31 +33893,34 @@ uint8_t x_4; x_4 = lean_usize_dec_eq(x_2, x_3); if (x_4 == 0) { -lean_object* x_5; uint8_t x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); lean_dec(x_5); -x_7 = l_Lean_Elab_DefKind_isTheorem(x_6); -if (x_7 == 0) +x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); +lean_dec(x_6); +x_8 = l_Lean_Elab_DefKind_isTheorem(x_7); +if (x_8 == 0) { -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_2 = x_10; goto _start; } else { -uint8_t x_11; -x_11 = 1; -return x_11; +uint8_t x_12; +x_12 = 1; +return x_12; } } else { -uint8_t x_12; -x_12 = 0; -return x_12; +uint8_t x_13; +x_13 = 0; +return x_13; } } } @@ -21652,33 +33991,36 @@ uint8_t x_4; x_4 = lean_usize_dec_eq(x_2, x_3); if (x_4 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get(x_5, 1); +x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); lean_dec(x_5); -x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*2 + 3); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); lean_dec(x_6); -if (x_7 == 0) +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2 + 3); +lean_dec(x_7); +if (x_8 == 0) { -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_2 = x_10; goto _start; } else { -uint8_t x_11; -x_11 = 1; -return x_11; +uint8_t x_12; +x_12 = 1; +return x_12; } } else { -uint8_t x_12; -x_12 = 0; -return x_12; +uint8_t x_13; +x_13 = 0; +return x_13; } } } @@ -21689,33 +34031,36 @@ uint8_t x_4; x_4 = lean_usize_dec_eq(x_2, x_3); if (x_4 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get(x_5, 1); +x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); lean_dec(x_5); -x_7 = l_Lean_Elab_Modifiers_isPartial(x_6); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); lean_dec(x_6); -if (x_7 == 0) +x_8 = l_Lean_Elab_Modifiers_isPartial(x_7); +lean_dec(x_7); +if (x_8 == 0) { -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_2 = x_10; goto _start; } else { -uint8_t x_11; -x_11 = 1; -return x_11; +uint8_t x_12; +x_12 = 1; +return x_12; } } else { -uint8_t x_12; -x_12 = 0; -return x_12; +uint8_t x_13; +x_13 = 0; +return x_13; } } } @@ -21726,33 +34071,36 @@ uint8_t x_4; x_4 = lean_usize_dec_eq(x_2, x_3); if (x_4 == 0) { -lean_object* x_5; lean_object* x_6; uint8_t x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_array_uget(x_1, x_2); -x_6 = lean_ctor_get(x_5, 1); +x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); lean_dec(x_5); -x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*2 + 1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); lean_dec(x_6); -if (x_7 == 0) +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2 + 1); +lean_dec(x_7); +if (x_8 == 0) { -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_2, x_9); +x_2 = x_10; goto _start; } else { -uint8_t x_11; -x_11 = 1; -return x_11; +uint8_t x_12; +x_12 = 1; +return x_12; } } else { -uint8_t x_12; -x_12 = 0; -return x_12; +uint8_t x_13; +x_13 = 0; +return x_13; } } } @@ -22435,57 +34783,113 @@ x_8 = lean_array_uset(x_4, x_3, x_7); x_9 = !lean_is_exclusive(x_6); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_6, 7); -x_11 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_10); -lean_ctor_set(x_6, 7, x_11); -x_12 = 1; -x_13 = lean_usize_add(x_3, x_12); -x_14 = lean_array_uset(x_8, x_3, x_6); -x_3 = x_13; -x_4 = x_14; +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_6, 1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_10, 5); +x_13 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_12); +lean_ctor_set(x_10, 5, x_13); +x_14 = 1; +x_15 = lean_usize_add(x_3, x_14); +x_16 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_15; +x_4 = x_16; goto _start; } else { -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; lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; -x_16 = lean_ctor_get(x_6, 0); -x_17 = lean_ctor_get(x_6, 1); -x_18 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); -x_19 = lean_ctor_get(x_6, 2); -x_20 = lean_ctor_get(x_6, 3); -x_21 = lean_ctor_get(x_6, 4); -x_22 = lean_ctor_get(x_6, 5); -x_23 = lean_ctor_get(x_6, 6); -x_24 = lean_ctor_get(x_6, 7); -x_25 = lean_ctor_get(x_6, 8); -lean_inc(x_25); -lean_inc(x_24); +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; size_t x_26; size_t x_27; lean_object* x_28; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 1); +x_20 = lean_ctor_get(x_10, 2); +x_21 = lean_ctor_get(x_10, 3); +x_22 = lean_ctor_get(x_10, 4); +x_23 = lean_ctor_get(x_10, 5); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -lean_inc(x_17); -lean_inc(x_16); +lean_inc(x_18); +lean_dec(x_10); +x_24 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_23); +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_19); +lean_ctor_set(x_25, 2, x_20); +lean_ctor_set(x_25, 3, x_21); +lean_ctor_set(x_25, 4, x_22); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_6, 1, x_25); +x_26 = 1; +x_27 = lean_usize_add(x_3, x_26); +x_28 = lean_array_uset(x_8, x_3, x_6); +x_3 = x_27; +x_4 = x_28; +goto _start; +} +} +else +{ +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; size_t x_44; size_t x_45; lean_object* x_46; +x_30 = lean_ctor_get(x_6, 1); +x_31 = lean_ctor_get(x_6, 0); +x_32 = lean_ctor_get(x_6, 2); +x_33 = lean_ctor_get(x_6, 3); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_31); lean_dec(x_6); -x_26 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_24); -x_27 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_27, 0, x_16); -lean_ctor_set(x_27, 1, x_17); -lean_ctor_set(x_27, 2, x_19); -lean_ctor_set(x_27, 3, x_20); -lean_ctor_set(x_27, 4, x_21); -lean_ctor_set(x_27, 5, x_22); -lean_ctor_set(x_27, 6, x_23); -lean_ctor_set(x_27, 7, x_26); -lean_ctor_set(x_27, 8, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*9, x_18); -x_28 = 1; -x_29 = lean_usize_add(x_3, x_28); -x_30 = lean_array_uset(x_8, x_3, x_27); -x_3 = x_29; -x_4 = x_30; +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +x_36 = lean_ctor_get(x_30, 2); +lean_inc(x_36); +x_37 = lean_ctor_get(x_30, 3); +lean_inc(x_37); +x_38 = lean_ctor_get(x_30, 4); +lean_inc(x_38); +x_39 = lean_ctor_get(x_30, 5); +lean_inc(x_39); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + lean_ctor_release(x_30, 2); + lean_ctor_release(x_30, 3); + lean_ctor_release(x_30, 4); + lean_ctor_release(x_30, 5); + x_40 = x_30; +} else { + lean_dec_ref(x_30); + x_40 = lean_box(0); +} +x_41 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_39); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 6, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_34); +lean_ctor_set(x_42, 1, x_35); +lean_ctor_set(x_42, 2, x_36); +lean_ctor_set(x_42, 3, x_37); +lean_ctor_set(x_42, 4, x_38); +lean_ctor_set(x_42, 5, x_41); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_31); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_32); +lean_ctor_set(x_43, 3, x_33); +x_44 = 1; +x_45 = lean_usize_add(x_3, x_44); +x_46 = lean_array_uset(x_8, x_3, x_43); +x_3 = x_45; +x_4 = x_46; goto _start; } } @@ -23773,12 +36177,15 @@ return x_5; } else { -lean_object* x_6; lean_object* x_7; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_array_fget(x_1, x_3); -x_7 = lean_ctor_get(x_6, 4); +x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -return x_7; +x_8 = lean_ctor_get(x_7, 2); +lean_inc(x_8); +lean_dec(x_7); +return x_8; } } } @@ -23799,91 +36206,79 @@ x_2 = 0; return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = l_Lean_Elab_Term_levelMVarToParam(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_Term_getLevelNames___rarg(x_6, x_7, x_8, x_9, x_10, x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = l_Lean_Elab_Term_levelMVarToParam(x_1, x_2, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Term_getLevelNames___rarg(x_9, x_10, x_11, x_12, x_13, x_17); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; 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; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_3, 0); -x_19 = lean_ctor_get(x_3, 1); -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); -x_21 = lean_ctor_get(x_3, 2); -x_22 = lean_ctor_get(x_3, 3); -x_23 = lean_ctor_get(x_3, 5); -x_24 = lean_ctor_get(x_3, 6); -x_25 = lean_ctor_get(x_3, 8); -lean_inc(x_25); +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; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_3, 1); +x_23 = lean_ctor_get(x_3, 3); +x_24 = lean_ctor_get(x_3, 4); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); -lean_inc(x_19); -lean_inc(x_18); -x_26 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_19); -lean_ctor_set(x_26, 2, x_21); -lean_ctor_set(x_26, 3, x_22); -lean_ctor_set(x_26, 4, x_17); -lean_ctor_set(x_26, 5, x_23); -lean_ctor_set(x_26, 6, x_24); -lean_ctor_set(x_26, 7, x_13); -lean_ctor_set(x_26, 8, x_25); -lean_ctor_set_uint8(x_26, sizeof(void*)*9, x_20); -x_27 = lean_array_push(x_4, x_26); -lean_ctor_set(x_15, 0, x_27); -return x_15; +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_20); +lean_ctor_set(x_25, 3, x_23); +lean_ctor_set(x_25, 4, x_24); +lean_ctor_set(x_25, 5, x_16); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_4); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_5); +lean_ctor_set(x_26, 3, x_6); +x_27 = lean_array_push(x_7, x_26); +lean_ctor_set(x_18, 0, x_27); +return x_18; } else { -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; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_28 = lean_ctor_get(x_15, 0); -x_29 = lean_ctor_get(x_15, 1); +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_18, 0); +x_29 = lean_ctor_get(x_18, 1); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_15); +lean_dec(x_18); x_30 = lean_ctor_get(x_3, 0); x_31 = lean_ctor_get(x_3, 1); -x_32 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); -x_33 = lean_ctor_get(x_3, 2); -x_34 = lean_ctor_get(x_3, 3); -x_35 = lean_ctor_get(x_3, 5); -x_36 = lean_ctor_get(x_3, 6); -x_37 = lean_ctor_get(x_3, 8); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); +x_32 = lean_ctor_get(x_3, 3); +x_33 = lean_ctor_get(x_3, 4); lean_inc(x_33); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); -x_38 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_38, 0, x_30); -lean_ctor_set(x_38, 1, x_31); -lean_ctor_set(x_38, 2, x_33); -lean_ctor_set(x_38, 3, x_34); -lean_ctor_set(x_38, 4, x_28); -lean_ctor_set(x_38, 5, x_35); -lean_ctor_set(x_38, 6, x_36); -lean_ctor_set(x_38, 7, x_13); -lean_ctor_set(x_38, 8, x_37); -lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_32); -x_39 = lean_array_push(x_4, 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_29); -return x_40; +x_34 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_34, 0, x_30); +lean_ctor_set(x_34, 1, x_31); +lean_ctor_set(x_34, 2, x_28); +lean_ctor_set(x_34, 3, x_32); +lean_ctor_set(x_34, 4, x_33); +lean_ctor_set(x_34, 5, x_16); +x_35 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_35, 0, x_4); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_35, 2, x_5); +lean_ctor_set(x_35, 3, x_6); +x_36 = lean_array_push(x_7, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_29); +return x_37; } } } @@ -23967,7 +36362,7 @@ x_29 = lean_unsigned_to_nat(1u); x_30 = lean_nat_add(x_20, x_29); lean_dec(x_20); lean_ctor_set(x_17, 1, x_30); -x_31 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +x_31 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); lean_dec(x_15); x_32 = l_Lean_Elab_DefKind_isTheorem(x_31); if (x_32 == 0) @@ -23982,137 +36377,55 @@ goto _start; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_28, 4); +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; +x_37 = lean_ctor_get(x_28, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_28, 7); +x_38 = lean_ctor_get(x_28, 0); lean_inc(x_38); -x_39 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; -x_40 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 11, 4); -lean_closure_set(x_40, 0, x_38); -lean_closure_set(x_40, 1, x_39); -lean_closure_set(x_40, 2, x_28); -lean_closure_set(x_40, 3, x_18); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_41 = l_Lean_Elab_Term_withLevelNames___rarg(x_37, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; size_t x_44; size_t x_45; -x_42 = lean_ctor_get(x_41, 0); +x_39 = lean_ctor_get(x_28, 2); +lean_inc(x_39); +x_40 = lean_ctor_get(x_28, 3); +lean_inc(x_40); +lean_dec(x_28); +x_41 = lean_ctor_get(x_37, 2); +lean_inc(x_41); +x_42 = lean_ctor_get(x_37, 5); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -lean_ctor_set(x_4, 1, x_42); -x_44 = 1; -x_45 = lean_usize_add(x_3, x_44); -x_3 = x_45; -x_12 = x_43; -goto _start; -} -else -{ -uint8_t x_47; -lean_dec(x_17); -lean_free_object(x_4); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_47 = !lean_is_exclusive(x_41); -if (x_47 == 0) -{ -return x_41; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_41, 0); -x_49 = lean_ctor_get(x_41, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_41); -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 -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; -lean_dec(x_17); -x_51 = lean_array_fget(x_19, x_20); -x_52 = lean_unsigned_to_nat(1u); -x_53 = lean_nat_add(x_20, x_52); -lean_dec(x_20); -x_54 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_54, 0, x_19); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set(x_54, 2, x_21); -x_55 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_dec(x_15); -x_56 = l_Lean_Elab_DefKind_isTheorem(x_55); -if (x_56 == 0) -{ -lean_object* x_57; size_t x_58; size_t x_59; -x_57 = lean_array_push(x_18, x_51); -lean_ctor_set(x_4, 1, x_57); -lean_ctor_set(x_4, 0, x_54); -x_58 = 1; -x_59 = lean_usize_add(x_3, x_58); -x_3 = x_59; -goto _start; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_51, 4); -lean_inc(x_61); -x_62 = lean_ctor_get(x_51, 7); -lean_inc(x_62); -x_63 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; -x_64 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 11, 4); -lean_closure_set(x_64, 0, x_62); -lean_closure_set(x_64, 1, x_63); -lean_closure_set(x_64, 2, x_51); -lean_closure_set(x_64, 3, x_18); +x_43 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; +x_44 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 14, 7); +lean_closure_set(x_44, 0, x_42); +lean_closure_set(x_44, 1, x_43); +lean_closure_set(x_44, 2, x_37); +lean_closure_set(x_44, 3, x_38); +lean_closure_set(x_44, 4, x_39); +lean_closure_set(x_44, 5, x_40); +lean_closure_set(x_44, 6, x_18); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_65 = l_Lean_Elab_Term_withLevelNames___rarg(x_61, x_64, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_65) == 0) +x_45 = l_Lean_Elab_Term_withLevelNames___rarg(x_41, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_66; lean_object* x_67; size_t x_68; size_t x_69; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -lean_ctor_set(x_4, 1, x_66); -lean_ctor_set(x_4, 0, x_54); -x_68 = 1; -x_69 = lean_usize_add(x_3, x_68); -x_3 = x_69; -x_12 = x_67; +lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +lean_ctor_set(x_4, 1, x_46); +x_48 = 1; +x_49 = lean_usize_add(x_3, x_48); +x_3 = x_49; +x_12 = x_47; goto _start; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_54); +uint8_t x_51; +lean_dec(x_17); lean_free_object(x_4); lean_dec(x_11); lean_dec(x_10); @@ -24120,175 +36433,293 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_71 = lean_ctor_get(x_65, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 1); -lean_inc(x_72); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_73 = x_65; -} else { - lean_dec_ref(x_65); - 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); -return x_74; +x_51 = !lean_is_exclusive(x_45); +if (x_51 == 0) +{ +return x_45; } +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_45, 0); +x_53 = lean_ctor_get(x_45, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_45); +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_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_75 = lean_ctor_get(x_4, 0); -x_76 = lean_ctor_get(x_4, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_4); -x_77 = lean_ctor_get(x_75, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -x_79 = lean_ctor_get(x_75, 2); -lean_inc(x_79); -x_80 = lean_nat_dec_lt(x_78, x_79); -if (x_80 == 0) -{ -lean_object* x_81; lean_object* x_82; -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_77); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; +lean_dec(x_17); +x_55 = lean_array_fget(x_19, x_20); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_20, x_56); +lean_dec(x_20); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_19); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_21); +x_59 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); lean_dec(x_15); +x_60 = l_Lean_Elab_DefKind_isTheorem(x_59); +if (x_60 == 0) +{ +lean_object* x_61; size_t x_62; size_t x_63; +x_61 = lean_array_push(x_18, x_55); +lean_ctor_set(x_4, 1, x_61); +lean_ctor_set(x_4, 0, x_58); +x_62 = 1; +x_63 = lean_usize_add(x_3, x_62); +x_3 = x_63; +goto _start; +} +else +{ +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; +x_65 = lean_ctor_get(x_55, 1); +lean_inc(x_65); +x_66 = lean_ctor_get(x_55, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_55, 2); +lean_inc(x_67); +x_68 = lean_ctor_get(x_55, 3); +lean_inc(x_68); +lean_dec(x_55); +x_69 = lean_ctor_get(x_65, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 5); +lean_inc(x_70); +x_71 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; +x_72 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 14, 7); +lean_closure_set(x_72, 0, x_70); +lean_closure_set(x_72, 1, x_71); +lean_closure_set(x_72, 2, x_65); +lean_closure_set(x_72, 3, x_66); +lean_closure_set(x_72, 4, x_67); +lean_closure_set(x_72, 5, x_68); +lean_closure_set(x_72, 6, x_18); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_73 = l_Lean_Elab_Term_withLevelNames___rarg(x_69, x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; size_t x_76; size_t x_77; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +lean_ctor_set(x_4, 1, x_74); +lean_ctor_set(x_4, 0, x_58); +x_76 = 1; +x_77 = lean_usize_add(x_3, x_76); +x_3 = x_77; +x_12 = x_75; +goto _start; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_58); +lean_free_object(x_4); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_76); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_12); +x_79 = lean_ctor_get(x_73, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_73, 1); +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; +} else { + lean_dec_ref(x_73); + 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; } -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - lean_ctor_release(x_75, 2); - x_83 = x_75; -} else { - lean_dec_ref(x_75); - x_83 = lean_box(0); } -x_84 = lean_array_fget(x_77, x_78); -x_85 = lean_unsigned_to_nat(1u); -x_86 = lean_nat_add(x_78, x_85); -lean_dec(x_78); -if (lean_is_scalar(x_83)) { - x_87 = lean_alloc_ctor(0, 3, 0); -} else { - x_87 = x_83; } -lean_ctor_set(x_87, 0, x_77); -lean_ctor_set(x_87, 1, x_86); -lean_ctor_set(x_87, 2, x_79); -x_88 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); -lean_dec(x_15); -x_89 = l_Lean_Elab_DefKind_isTheorem(x_88); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; size_t x_92; size_t x_93; -x_90 = lean_array_push(x_76, x_84); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_87); -lean_ctor_set(x_91, 1, x_90); -x_92 = 1; -x_93 = lean_usize_add(x_3, x_92); -x_3 = x_93; -x_4 = x_91; -goto _start; +} } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_ctor_get(x_84, 4); -lean_inc(x_95); -x_96 = lean_ctor_get(x_84, 7); -lean_inc(x_96); -x_97 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; -x_98 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 11, 4); -lean_closure_set(x_98, 0, x_96); -lean_closure_set(x_98, 1, x_97); -lean_closure_set(x_98, 2, x_84); -lean_closure_set(x_98, 3, x_76); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_99 = l_Lean_Elab_Term_withLevelNames___rarg(x_95, x_98, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_99) == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_83 = lean_ctor_get(x_4, 0); +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_4); +x_85 = lean_ctor_get(x_83, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +x_87 = lean_ctor_get(x_83, 2); +lean_inc(x_87); +x_88 = lean_nat_dec_lt(x_86, x_87); +if (x_88 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; size_t x_103; size_t x_104; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_87); -lean_ctor_set(x_102, 1, x_100); -x_103 = 1; -x_104 = lean_usize_add(x_3, x_103); -x_3 = x_104; -x_4 = x_102; -x_12 = x_101; -goto _start; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_object* x_89; lean_object* x_90; lean_dec(x_87); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_15); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_106 = lean_ctor_get(x_99, 0); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_83); +lean_ctor_set(x_89, 1, x_84); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_12); +return x_90; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + x_91 = x_83; +} else { + lean_dec_ref(x_83); + x_91 = lean_box(0); +} +x_92 = lean_array_fget(x_85, x_86); +x_93 = lean_unsigned_to_nat(1u); +x_94 = lean_nat_add(x_86, x_93); +lean_dec(x_86); +if (lean_is_scalar(x_91)) { + x_95 = lean_alloc_ctor(0, 3, 0); +} else { + x_95 = x_91; +} +lean_ctor_set(x_95, 0, x_85); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_95, 2, x_87); +x_96 = lean_ctor_get_uint8(x_15, sizeof(void*)*8); +lean_dec(x_15); +x_97 = l_Lean_Elab_DefKind_isTheorem(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; size_t x_100; size_t x_101; +x_98 = lean_array_push(x_84, x_92); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_95); +lean_ctor_set(x_99, 1, x_98); +x_100 = 1; +x_101 = lean_usize_add(x_3, x_100); +x_3 = x_101; +x_4 = x_99; +goto _start; +} +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; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_103 = lean_ctor_get(x_92, 1); +lean_inc(x_103); +x_104 = lean_ctor_get(x_92, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_92, 2); +lean_inc(x_105); +x_106 = lean_ctor_get(x_92, 3); lean_inc(x_106); -x_107 = lean_ctor_get(x_99, 1); +lean_dec(x_92); +x_107 = lean_ctor_get(x_103, 2); lean_inc(x_107); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_108 = x_99; -} else { - lean_dec_ref(x_99); - x_108 = lean_box(0); +x_108 = lean_ctor_get(x_103, 5); +lean_inc(x_108); +x_109 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; +x_110 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2___boxed), 14, 7); +lean_closure_set(x_110, 0, x_108); +lean_closure_set(x_110, 1, x_109); +lean_closure_set(x_110, 2, x_103); +lean_closure_set(x_110, 3, x_104); +lean_closure_set(x_110, 4, x_105); +lean_closure_set(x_110, 5, x_106); +lean_closure_set(x_110, 6, x_84); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_111 = l_Lean_Elab_Term_withLevelNames___rarg(x_107, x_110, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; size_t x_115; size_t 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); +lean_dec(x_111); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_95); +lean_ctor_set(x_114, 1, x_112); +x_115 = 1; +x_116 = lean_usize_add(x_3, x_115); +x_3 = x_116; +x_4 = x_114; +x_12 = x_113; +goto _start; } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_95); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_118 = lean_ctor_get(x_111, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_111, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_120 = x_111; } else { - x_109 = x_108; + lean_dec_ref(x_111); + x_120 = lean_box(0); } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } } @@ -24377,19 +36808,19 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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) { _start: { -lean_object* x_12; -x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_15; +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___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); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); 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_3); -return x_12; +return x_15; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___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) { @@ -24438,69 +36869,131 @@ x_15 = lean_array_uset(x_3, x_2, x_14); x_16 = !lean_is_exclusive(x_13); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_13, 7); -x_18 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -lean_ctor_set(x_13, 7, x_19); -x_21 = 1; -x_22 = lean_usize_add(x_2, x_21); -x_23 = lean_array_uset(x_15, x_2, x_13); -x_2 = x_22; -x_3 = x_23; -x_10 = x_20; +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 1); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_17, 5); +x_20 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +lean_ctor_set(x_17, 5, x_21); +x_23 = 1; +x_24 = lean_usize_add(x_2, x_23); +x_25 = lean_array_uset(x_15, x_2, x_13); +x_2 = x_24; +x_3 = x_25; +x_10 = x_22; goto _start; } else { -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; 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; size_t x_39; size_t x_40; lean_object* x_41; -x_25 = lean_ctor_get(x_13, 0); -x_26 = lean_ctor_get(x_13, 1); -x_27 = lean_ctor_get_uint8(x_13, sizeof(void*)*9); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get(x_13, 4); -x_31 = lean_ctor_get(x_13, 5); -x_32 = lean_ctor_get(x_13, 6); -x_33 = lean_ctor_get(x_13, 7); -x_34 = lean_ctor_get(x_13, 8); -lean_inc(x_34); -lean_inc(x_33); +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; size_t x_37; size_t x_38; lean_object* x_39; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +x_29 = lean_ctor_get(x_17, 2); +x_30 = lean_ctor_get(x_17, 3); +x_31 = lean_ctor_get(x_17, 4); +x_32 = lean_ctor_get(x_17, 5); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); -lean_inc(x_26); -lean_inc(x_25); +lean_inc(x_27); +lean_dec(x_17); +x_33 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +lean_ctor_set(x_36, 2, x_29); +lean_ctor_set(x_36, 3, x_30); +lean_ctor_set(x_36, 4, x_31); +lean_ctor_set(x_36, 5, x_34); +lean_ctor_set(x_13, 1, x_36); +x_37 = 1; +x_38 = lean_usize_add(x_2, x_37); +x_39 = lean_array_uset(x_15, x_2, x_13); +x_2 = x_38; +x_3 = x_39; +x_10 = x_35; +goto _start; +} +} +else +{ +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; size_t x_57; size_t x_58; lean_object* x_59; +x_41 = lean_ctor_get(x_13, 1); +x_42 = lean_ctor_get(x_13, 0); +x_43 = lean_ctor_get(x_13, 2); +x_44 = lean_ctor_get(x_13, 3); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_41); +lean_inc(x_42); lean_dec(x_13); -x_35 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_alloc_ctor(0, 9, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_28); -lean_ctor_set(x_38, 3, x_29); -lean_ctor_set(x_38, 4, x_30); -lean_ctor_set(x_38, 5, x_31); -lean_ctor_set(x_38, 6, x_32); -lean_ctor_set(x_38, 7, x_36); -lean_ctor_set(x_38, 8, x_34); -lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_27); -x_39 = 1; -x_40 = lean_usize_add(x_2, x_39); -x_41 = lean_array_uset(x_15, x_2, x_38); -x_2 = x_40; -x_3 = x_41; -x_10 = x_37; +x_45 = lean_ctor_get(x_41, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_41, 2); +lean_inc(x_47); +x_48 = lean_ctor_get(x_41, 3); +lean_inc(x_48); +x_49 = lean_ctor_get(x_41, 4); +lean_inc(x_49); +x_50 = lean_ctor_get(x_41, 5); +lean_inc(x_50); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + lean_ctor_release(x_41, 2); + lean_ctor_release(x_41, 3); + lean_ctor_release(x_41, 4); + lean_ctor_release(x_41, 5); + x_51 = x_41; +} else { + lean_dec_ref(x_41); + x_51 = lean_box(0); +} +x_52 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +if (lean_is_scalar(x_51)) { + x_55 = lean_alloc_ctor(0, 6, 0); +} else { + x_55 = x_51; +} +lean_ctor_set(x_55, 0, x_45); +lean_ctor_set(x_55, 1, x_46); +lean_ctor_set(x_55, 2, x_47); +lean_ctor_set(x_55, 3, x_48); +lean_ctor_set(x_55, 4, x_49); +lean_ctor_set(x_55, 5, x_53); +x_56 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_56, 0, x_42); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_56, 2, x_43); +lean_ctor_set(x_56, 3, x_44); +x_57 = 1; +x_58 = lean_usize_add(x_2, x_57); +x_59 = lean_array_uset(x_15, x_2, x_56); +x_2 = x_58; +x_3 = x_59; +x_10 = x_54; goto _start; } } @@ -24670,7 +37163,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___lambda__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, 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; 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_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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); x_12 = lean_ctor_get(x_7, 3); @@ -24682,6 +37175,9 @@ x_17 = lean_ctor_get(x_7, 7); x_18 = lean_ctor_get(x_7, 8); x_19 = lean_ctor_get(x_7, 9); x_20 = lean_ctor_get(x_7, 10); +x_21 = lean_ctor_get(x_7, 11); +x_22 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -24691,28 +37187,30 @@ lean_inc(x_15); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_21 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_21, 0, x_10); -lean_ctor_set(x_21, 1, x_11); -lean_ctor_set(x_21, 2, x_1); -lean_ctor_set(x_21, 3, x_12); -lean_ctor_set(x_21, 4, x_14); -lean_ctor_set(x_21, 5, x_15); -lean_ctor_set(x_21, 6, x_16); -lean_ctor_set(x_21, 7, x_17); -lean_ctor_set(x_21, 8, x_18); -lean_ctor_set(x_21, 9, x_19); -lean_ctor_set(x_21, 10, x_20); -lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_2); -x_22 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_3, x_4, x_5, x_21, x_8, x_9); -lean_dec(x_21); -return x_22; +x_23 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_1); +lean_ctor_set(x_23, 3, x_12); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_17); +lean_ctor_set(x_23, 8, x_18); +lean_ctor_set(x_23, 9, x_19); +lean_ctor_set(x_23, 10, x_20); +lean_ctor_set(x_23, 11, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_23, sizeof(void*)*12 + 1, x_22); +x_24 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_3, x_4, x_5, x_23, x_8, x_9); +lean_dec(x_23); +return x_24; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___lambda__2(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_object* x_9) { _start: { -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_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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_ctor_get(x_7, 1); x_12 = lean_ctor_get(x_7, 3); @@ -24724,6 +37222,9 @@ x_17 = lean_ctor_get(x_7, 7); x_18 = lean_ctor_get(x_7, 8); x_19 = lean_ctor_get(x_7, 9); x_20 = lean_ctor_get(x_7, 10); +x_21 = lean_ctor_get(x_7, 11); +x_22 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -24733,30 +37234,32 @@ lean_inc(x_15); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_21 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_21, 0, x_10); -lean_ctor_set(x_21, 1, x_11); -lean_ctor_set(x_21, 2, x_1); -lean_ctor_set(x_21, 3, x_12); -lean_ctor_set(x_21, 4, x_14); -lean_ctor_set(x_21, 5, x_15); -lean_ctor_set(x_21, 6, x_16); -lean_ctor_set(x_21, 7, x_17); -lean_ctor_set(x_21, 8, x_18); -lean_ctor_set(x_21, 9, x_19); -lean_ctor_set(x_21, 10, x_20); -lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_2); -x_22 = l_Lean_indentExpr(x_3); -x_23 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; -x_24 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_25, x_4, x_5, x_21, x_8, x_9); -lean_dec(x_21); -return x_26; +x_23 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_1); +lean_ctor_set(x_23, 3, x_12); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_17); +lean_ctor_set(x_23, 8, x_18); +lean_ctor_set(x_23, 9, x_19); +lean_ctor_set(x_23, 10, x_20); +lean_ctor_set(x_23, 11, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_23, sizeof(void*)*12 + 1, x_22); +x_24 = l_Lean_indentExpr(x_3); +x_25 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_26 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_27, x_4, x_5, x_23, x_8, x_9); +lean_dec(x_23); +return x_28; } } static lean_object* _init_l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__1() { @@ -27997,7 +40500,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__2___closed__3; x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -28006,16 +40509,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } @@ -28266,7 +40770,7 @@ x_13 = lean_ctor_get(x_10, 1); x_14 = lean_ctor_get(x_12, 5); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_14); +x_15 = l_Lean_MessageLog_hasErrors(x_14); if (x_15 == 0) { lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -28450,7 +40954,7 @@ lean_dec(x_10); x_55 = lean_ctor_get(x_53, 5); lean_inc(x_55); lean_dec(x_53); -x_56 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_55); +x_56 = l_Lean_MessageLog_hasErrors(x_55); if (x_56 == 0) { lean_object* x_57; size_t x_58; size_t 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; uint8_t x_70; @@ -28714,142 +41218,150 @@ lean_inc(x_15); x_16 = l_Lean_realizeGlobalConstNoOverload(x_15, x_10, x_11, x_12); 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; 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_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; uint8_t x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 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 = lean_ctor_get(x_1, 3); +x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_10, 1); +lean_dec(x_19); +x_21 = lean_ctor_get(x_10, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_10, 2); +x_22 = lean_ctor_get(x_10, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_10, 3); +x_23 = lean_ctor_get(x_10, 2); lean_inc(x_23); -x_24 = lean_ctor_get(x_10, 4); +x_24 = lean_ctor_get(x_10, 3); lean_inc(x_24); -x_25 = lean_ctor_get(x_10, 5); +x_25 = lean_ctor_get(x_10, 4); lean_inc(x_25); -x_26 = lean_ctor_get(x_10, 6); +x_26 = lean_ctor_get(x_10, 5); lean_inc(x_26); -x_27 = lean_ctor_get(x_10, 7); +x_27 = lean_ctor_get(x_10, 6); lean_inc(x_27); -x_28 = lean_ctor_get(x_10, 8); +x_28 = lean_ctor_get(x_10, 7); lean_inc(x_28); -x_29 = lean_ctor_get(x_10, 9); +x_29 = lean_ctor_get(x_10, 8); lean_inc(x_29); -x_30 = lean_ctor_get(x_10, 10); +x_30 = lean_ctor_get(x_10, 9); lean_inc(x_30); -x_31 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_32 = l_Lean_replaceRef(x_15, x_25); -lean_dec(x_25); -lean_dec(x_15); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); -lean_inc(x_11); +x_31 = lean_ctor_get(x_10, 10); +lean_inc(x_31); +x_32 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_33 = lean_ctor_get(x_10, 11); lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_35 = l_Lean_replaceRef(x_15, x_26); +lean_dec(x_26); +lean_dec(x_15); +x_36 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +lean_ctor_set(x_36, 5, x_35); +lean_ctor_set(x_36, 6, x_27); +lean_ctor_set(x_36, 7, x_28); +lean_ctor_set(x_36, 8, x_29); +lean_ctor_set(x_36, 9, x_30); +lean_ctor_set(x_36, 10, x_31); +lean_ctor_set(x_36, 11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*12 + 1, x_34); +lean_inc(x_11); +lean_inc(x_36); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_19); +lean_inc(x_20); lean_inc(x_17); -x_34 = l_Lean_Elab_Term_processDefDeriving(x_17, x_19, x_6, x_7, x_8, x_9, x_33, x_11, x_18); -if (lean_obj_tag(x_34) == 0) +x_37 = l_Lean_Elab_Term_processDefDeriving(x_17, x_20, x_6, x_7, x_8, x_9, x_36, x_11, x_18); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -lean_dec(x_35); -if (x_36 == 0) +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +if (x_39 == 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; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +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; uint8_t x_51; lean_dec(x_10); lean_dec(x_1); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l_Lean_MessageData_ofName(x_17); -x_39 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__2; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__4; -x_42 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_MessageData_ofName(x_19); -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__6; -x_46 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_46, x_6, x_7, x_8, x_9, x_33, x_11, x_37); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = l_Lean_MessageData_ofName(x_17); +x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__2; +x_43 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__4; +x_45 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_MessageData_ofName(x_20); +x_47 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__6; +x_49 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_49, x_6, x_7, x_8, x_9, x_36, x_11, x_40); lean_dec(x_11); -lean_dec(x_33); +lean_dec(x_36); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -return x_47; +return x_50; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_47); -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 -{ -lean_object* x_52; size_t x_53; size_t x_54; lean_object* x_55; -lean_dec(x_33); -lean_dec(x_19); -lean_dec(x_17); -x_52 = lean_ctor_get(x_34, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); lean_inc(x_52); -lean_dec(x_34); -x_53 = 1; -x_54 = lean_usize_add(x_4, x_53); -x_55 = lean_box(0); -x_4 = x_54; -x_5 = x_55; -x_12 = x_52; +lean_dec(x_50); +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; size_t x_56; size_t x_57; lean_object* x_58; +lean_dec(x_36); +lean_dec(x_20); +lean_dec(x_17); +x_55 = lean_ctor_get(x_37, 1); +lean_inc(x_55); +lean_dec(x_37); +x_56 = 1; +x_57 = lean_usize_add(x_4, x_56); +x_58 = lean_box(0); +x_4 = x_57; +x_5 = x_58; +x_12 = x_55; goto _start; } } else { -uint8_t x_57; -lean_dec(x_33); -lean_dec(x_19); +uint8_t x_60; +lean_dec(x_36); +lean_dec(x_20); lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); @@ -28858,29 +41370,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_34); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_37); +if (x_60 == 0) { -return x_34; +return x_37; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_34, 0); -x_59 = lean_ctor_get(x_34, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_34); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_37, 0); +x_62 = lean_ctor_get(x_37, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_37); +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 { -uint8_t x_61; +uint8_t x_64; lean_dec(x_15); lean_dec(x_11); lean_dec(x_10); @@ -28889,23 +41401,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_16); -if (x_61 == 0) +x_64 = !lean_is_exclusive(x_16); +if (x_64 == 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_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_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; +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; } } } @@ -28977,7 +41489,7 @@ x_25 = lean_unsigned_to_nat(1u); x_26 = lean_nat_add(x_16, x_25); lean_dec(x_16); lean_ctor_set(x_4, 1, x_26); -x_27 = lean_ctor_get(x_24, 6); +x_27 = lean_ctor_get(x_24, 7); lean_inc(x_27); lean_dec(x_24); if (lean_obj_tag(x_27) == 0) @@ -29063,7 +41575,7 @@ x_48 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_48, 0, x_15); lean_ctor_set(x_48, 1, x_47); lean_ctor_set(x_48, 2, x_17); -x_49 = lean_ctor_get(x_45, 6); +x_49 = lean_ctor_get(x_45, 7); lean_inc(x_49); lean_dec(x_45); if (lean_obj_tag(x_49) == 0) @@ -29547,7 +42059,7 @@ else lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_dec(x_4); x_14 = lean_array_uget(x_1, x_3); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3; +x_15 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3; x_16 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -29709,7 +42221,7 @@ else lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_dec(x_4); x_14 = lean_array_uget(x_1, x_3); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3; +x_15 = l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3; x_16 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -29857,65 +42369,494 @@ return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +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; x_13 = lean_array_uget(x_3, x_2); x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_uset(x_3, x_2, x_14); -x_16 = lean_ctor_get(x_13, 7); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); lean_dec(x_13); -x_17 = 1; +x_17 = lean_ctor_get(x_16, 5); +lean_inc(x_17); +lean_dec(x_16); +x_18 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_18 = l_Lean_Meta_mkSorry(x_16, x_17, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Meta_mkSorry(x_17, x_18, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = 1; -x_22 = lean_usize_add(x_2, x_21); -x_23 = lean_array_uset(x_15, x_2, x_19); -x_2 = x_22; -x_3 = x_23; -x_10 = x_20; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = 1; +x_23 = lean_usize_add(x_2, x_22); +x_24 = lean_array_uset(x_15, x_2, x_20); +x_2 = x_23; +x_3 = x_24; +x_10 = x_21; goto _start; } else { -uint8_t x_25; +uint8_t x_26; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) { -return x_18; +return x_19; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_18, 0); -x_27 = lean_ctor_get(x_18, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_18); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_dec(x_19); +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; } } } } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__7(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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_2, x_1); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +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_13 = lean_unsigned_to_nat(0u); +x_14 = lean_array_uset(x_3, x_2, x_13); +x_15 = lean_io_promise_new(x_10); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_20 = lean_array_uset(x_14, x_2, x_16); +x_2 = x_19; +x_3 = x_20; +x_10 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__8(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, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_16 = lean_io_promise_resolve(x_1, x_15, x_12); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = 1; +x_19 = lean_usize_add(x_4, x_18); +x_20 = lean_box(0); +x_4 = x_19; +x_5 = x_20; +x_12 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__9(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, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_16 = lean_io_promise_resolve(x_1, x_15, x_12); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = 1; +x_19 = lean_usize_add(x_4, x_18); +x_20 = lean_box(0); +x_4 = x_19; +x_5 = x_20; +x_12 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___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, 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; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; +x_11 = l_List_iotaTR(x_2); +x_12 = l_List_redLength___rarg(x_11); +x_13 = lean_mk_empty_array_with_capacity(x_12); +lean_dec(x_12); +x_14 = l_List_toArrayAux___rarg(x_11, x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__7(x_16, x_17, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_array_get_size(x_19); +x_22 = lean_usize_of_nat(x_21); +lean_dec(x_21); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_19); +x_23 = lean_apply_8(x_3, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__8(x_1, x_19, x_22, x_17, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +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_19); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_24); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_24); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_23, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_dec(x_23); +x_34 = lean_box(0); +x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__9(x_1, x_19, x_22, x_17, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +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_19); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_32); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__11(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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_2, x_1); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +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_13 = lean_unsigned_to_nat(0u); +x_14 = lean_array_uset(x_3, x_2, x_13); +x_15 = lean_io_promise_new(x_10); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_20 = lean_array_uset(x_14, x_2, x_16); +x_2 = x_19; +x_3 = x_20; +x_10 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__12(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, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_16 = lean_io_promise_resolve(x_1, x_15, x_12); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = 1; +x_19 = lean_usize_add(x_4, x_18); +x_20 = lean_box(0); +x_4 = x_19; +x_5 = x_20; +x_12 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13(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, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_4, x_3); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_5); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +lean_dec(x_5); +x_15 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_16 = lean_io_promise_resolve(x_1, x_15, x_12); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = 1; +x_19 = lean_usize_add(x_4, x_18); +x_20 = lean_box(0); +x_4 = x_19; +x_5 = x_20; +x_12 = x_17; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___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_object* x_9, lean_object* x_10) { +_start: +{ +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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; +x_11 = l_List_iotaTR(x_2); +x_12 = l_List_redLength___rarg(x_11); +x_13 = lean_mk_empty_array_with_capacity(x_12); +lean_dec(x_12); +x_14 = l_List_toArrayAux___rarg(x_11, x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__11(x_16, x_17, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_array_get_size(x_19); +x_22 = lean_usize_of_nat(x_21); +lean_dec(x_21); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_19); +x_23 = lean_apply_8(x_3, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__12(x_1, x_19, x_22, x_17, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +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_19); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_24); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_24); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_23, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_dec(x_23); +x_34 = lean_box(0); +x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13(x_1, x_19, x_22, x_17, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +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_19); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_32); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -30277,28 +43218,27 @@ return x_36; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_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_14 = lean_array_get_size(x_6); -x_15 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_16 = l_Array_toSubarray___rarg(x_6, x_15, x_14); -x_17 = lean_array_get_size(x_1); -x_18 = lean_usize_of_nat(x_17); -lean_dec(x_17); +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_15 = lean_array_get_size(x_7); +x_16 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +x_17 = l_Array_toSubarray___rarg(x_7, x_16, x_15); +x_18 = lean_usize_of_nat(x_1); +lean_dec(x_1); x_19 = 0; +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_1, x_18, x_19, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_2, x_18, x_19, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14); 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_44; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_46; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); if (lean_is_exclusive(x_20)) { @@ -30309,122 +43249,127 @@ if (lean_is_exclusive(x_20)) { lean_dec_ref(x_20); x_22 = lean_box(0); } +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_44 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -if (lean_obj_tag(x_44) == 0) +lean_inc(x_3); +x_46 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_3, x_8, x_9, x_10, x_11, x_12, x_13, x_21); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t 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); -lean_dec(x_44); -x_47 = 1; -x_48 = 0; +lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t 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 = 1; +x_50 = 0; +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_49 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_47, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -if (lean_obj_tag(x_49) == 0) +x_51 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_49, x_50, x_8, x_9, x_10, x_11, x_12, x_13, x_48); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_50; lean_object* x_51; size_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +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; lean_dec(x_22); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = lean_array_get_size(x_45); -x_52 = lean_usize_of_nat(x_51); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); lean_dec(x_51); -x_53 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2(x_52, x_19, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_50); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); +x_53 = lean_array_get_size(x_47); +x_54 = lean_usize_of_nat(x_53); lean_dec(x_53); -x_56 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2(x_2, x_19, x_6, x_3, x_4, x_1, x_5, x_54, x_7, x_8, x_9, x_10, x_11, x_12, x_55); -lean_dec(x_5); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; -lean_dec(x_45); -x_57 = lean_ctor_get(x_49, 0); +x_55 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2(x_54, x_19, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_52); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_49, 1); -lean_inc(x_58); -lean_dec(x_49); -x_23 = x_57; -x_24 = x_58; -goto block_43; -} +lean_dec(x_55); +x_58 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2(x_3, x_19, x_7, x_4, x_5, x_2, x_6, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_57); +lean_dec(x_6); +return x_58; } else { lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_44, 0); +lean_dec(x_47); +x_59 = lean_ctor_get(x_51, 0); lean_inc(x_59); -x_60 = lean_ctor_get(x_44, 1); +x_60 = lean_ctor_get(x_51, 1); lean_inc(x_60); -lean_dec(x_44); +lean_dec(x_51); x_23 = x_59; x_24 = x_60; -goto block_43; +goto block_45; } -block_43: +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_46, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_46, 1); +lean_inc(x_62); +lean_dec(x_46); +x_23 = x_61; +x_24 = x_62; +goto block_45; +} +block_45: { uint8_t x_25; -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); if (x_25 == 0) { -lean_object* x_26; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_dec(x_22); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_26 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_24); -if (lean_obj_tag(x_26) == 0) +x_27 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_24); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; size_t x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_array_get_size(x_2); -x_29 = lean_usize_of_nat(x_28); -lean_dec(x_28); +lean_object* x_28; lean_object* x_29; size_t x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_array_get_size(x_3); +x_30 = lean_usize_of_nat(x_29); +lean_dec(x_29); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_2); -x_30 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__5(x_29, x_19, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_27); -if (lean_obj_tag(x_30) == 0) +lean_inc(x_3); +x_31 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__5(x_30, x_19, x_3, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2(x_2, x_19, x_6, x_3, x_4, x_1, x_5, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_32); -lean_dec(x_5); -return x_33; +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2(x_3, x_19, x_7, x_4, x_5, x_2, x_6, x_32, x_8, x_9, x_10, x_11, x_12, x_13, x_33); +lean_dec(x_6); +return x_34; } else { -uint8_t x_34; +uint8_t x_35; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -30436,30 +43381,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) { -return x_30; +return x_31; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_30, 0); -x_36 = lean_ctor_get(x_30, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_30); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_dec(x_31); +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; } } } else { -uint8_t x_38; +uint8_t x_39; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -30471,57 +43416,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_26); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) { -return x_26; +return x_27; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_26, 0); -x_40 = lean_ctor_get(x_26, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_26); -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_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_is_scalar(x_22)) { - x_42 = lean_alloc_ctor(1, 2, 0); -} else { - x_42 = x_22; - lean_ctor_set_tag(x_42, 1); -} -lean_ctor_set(x_42, 0, x_23); -lean_ctor_set(x_42, 1, x_24); +lean_dec(x_27); +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; } } } else { -uint8_t x_61; +lean_object* x_43; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -30533,145 +43451,230 @@ 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_20); -if (x_61 == 0) +if (lean_is_scalar(x_22)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_22; + lean_ctor_set_tag(x_43, 1); +} +lean_ctor_set(x_43, 0, x_23); +lean_ctor_set(x_43, 1, x_24); +return x_43; +} +} +else +{ +lean_object* x_44; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_22)) { + x_44 = lean_alloc_ctor(1, 2, 0); +} else { + x_44 = x_22; + lean_ctor_set_tag(x_44, 1); +} +lean_ctor_set(x_44, 0, x_23); +lean_ctor_set(x_44, 1, x_24); +return x_44; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_63 = !lean_is_exclusive(x_20); +if (x_63 == 0) { return x_20; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_20, 0); -x_63 = lean_ctor_get(x_20, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_20, 0); +x_65 = lean_ctor_get(x_20, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_20); -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; +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; } } } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l_Lean_Elab_Term_getLevelNames___rarg(x_7, x_8, x_9, x_10, x_11, x_12); +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders(x_1, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +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; +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 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(x_20); +lean_inc(x_20); +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__3), 14, 6); +lean_closure_set(x_23, 0, x_3); +lean_closure_set(x_23, 1, x_1); +lean_closure_set(x_23, 2, x_20); +lean_closure_set(x_23, 3, x_22); +lean_closure_set(x_23, 4, x_14); +lean_closure_set(x_23, 5, x_4); +x_24 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(x_20, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_14); +lean_dec(x_11); +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_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_14); +lean_dec(x_11); +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_29 = !lean_is_exclusive(x_16); +if (x_29 == 0) +{ +return x_16; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_16, 0); +x_31 = lean_ctor_get(x_16, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_16); +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_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_inc(x_2); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__4), 12, 4); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_4); +lean_closure_set(x_12, 2, x_2); +lean_closure_set(x_12, 3, x_3); +x_13 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; +x_14 = l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___spec__6(x_13, x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go(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; -x_10 = l_Lean_Elab_Term_getLevelNames___rarg(x_4, x_5, x_6, x_7, x_8, x_9); -x_11 = lean_ctor_get(x_10, 0); +x_10 = lean_box(0); +x_11 = lean_array_get_size(x_2); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -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); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_16 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders(x_2, x_14, x_3, x_4, x_5, x_6, x_7, x_8, 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; 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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(x_17); -lean_inc(x_17); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__3), 13, 5); -lean_closure_set(x_20, 0, x_2); -lean_closure_set(x_20, 1, x_17); -lean_closure_set(x_20, 2, x_19); -lean_closure_set(x_20, 3, x_11); -lean_closure_set(x_20, 4, x_1); -x_21 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(x_17, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -return x_21; -} -else -{ -uint8_t x_22; -lean_dec(x_11); -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_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) -{ -return x_16; -} -else -{ -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_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_26; -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_13); -if (x_26 == 0) -{ +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__5), 11, 3); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_11); +lean_closure_set(x_12, 2, x_1); +x_13 = l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Term_elabMutualDef_go___spec__10(x_10, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_13); -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; -} -} -} } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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: @@ -30752,6 +43755,118 @@ lean_dec(x_4); return x_13; } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___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, 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_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__7(x_11, x_12, x_3, x_4, 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_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__8(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__9(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___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: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__11(x_11, x_12, x_3, x_4, 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_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___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, 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; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__12(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13___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; +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__13(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_15; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___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: { @@ -33274,31 +46389,11 @@ return x_27; } } } -static lean_object* _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("byTactic", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___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_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1; -x_4 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} LEAN_EXPORT uint8_t l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; -x_2 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__2; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3; x_3 = lean_name_eq(x_1, x_2); if (x_3 == 0) { @@ -33472,8 +46567,8 @@ static lean_object* _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutual _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; x_3 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2; x_4 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -33668,108 +46763,207 @@ 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; 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_10; lean_object* x_11; lean_object* x_12; 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; uint8_t x_31; lean_object* x_32; lean_object* x_33; x_10 = lean_array_uget(x_1, x_3); -x_11 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); -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 = l_Lean_replaceRef(x_10, x_12); -lean_dec(x_12); -x_15 = lean_ctor_get(x_5, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -x_17 = lean_ctor_get(x_5, 2); -lean_inc(x_17); -x_18 = lean_ctor_get(x_5, 3); -lean_inc(x_18); -x_19 = lean_ctor_get(x_5, 4); +x_18 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -x_20 = lean_ctor_get(x_5, 5); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_5, 7); -lean_inc(x_21); -x_22 = lean_ctor_get(x_5, 8); +lean_dec(x_18); +x_21 = l_Lean_replaceRef(x_10, x_19); +lean_dec(x_19); +x_22 = lean_ctor_get(x_5, 0); lean_inc(x_22); -x_23 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_23, 0, x_15); -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(x_23, 5, x_20); -lean_ctor_set(x_23, 6, x_14); -lean_ctor_set(x_23, 7, x_21); -lean_ctor_set(x_23, 8, x_22); -lean_inc(x_6); -x_24 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(x_10, x_23, x_6, x_13); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; -x_25 = lean_ctor_get(x_24, 0); +x_23 = lean_ctor_get(x_5, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_5, 2); +lean_inc(x_24); +x_25 = lean_ctor_get(x_5, 3); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +x_26 = lean_ctor_get(x_5, 4); lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_array_push(x_4, x_25); -x_28 = 1; -x_29 = lean_usize_add(x_3, x_28); -x_3 = x_29; -x_4 = x_27; -x_7 = x_26; -goto _start; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_24, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_24, 1); -lean_inc(x_32); -lean_dec(x_24); +x_27 = lean_ctor_get(x_5, 5); +lean_inc(x_27); +x_28 = lean_ctor_get(x_5, 7); +lean_inc(x_28); +x_29 = lean_ctor_get(x_5, 8); +lean_inc(x_29); +x_30 = lean_ctor_get(x_5, 9); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +x_32 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_32, 2, x_24); +lean_ctor_set(x_32, 3, x_25); +lean_ctor_set(x_32, 4, x_26); +lean_ctor_set(x_32, 5, x_27); +lean_ctor_set(x_32, 6, x_21); +lean_ctor_set(x_32, 7, x_28); +lean_ctor_set(x_32, 8, x_29); +lean_ctor_set(x_32, 9, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*10, x_31); lean_inc(x_6); -lean_inc(x_5); -x_33 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_31, x_5, x_6, x_32); +x_33 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(x_10, x_32, x_6, x_20); if (lean_obj_tag(x_33) == 0) { -lean_object* x_34; size_t x_35; size_t x_36; -x_34 = lean_ctor_get(x_33, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); lean_dec(x_33); -x_35 = 1; -x_36 = lean_usize_add(x_3, x_35); -x_3 = x_36; -x_7 = x_34; -goto _start; +x_36 = lean_array_push(x_4, x_34); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_11 = x_37; +x_12 = x_35; +goto block_17; } else { uint8_t x_38; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); x_38 = !lean_is_exclusive(x_33); if (x_38 == 0) { -return x_33; +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +lean_object* x_42; +lean_free_object(x_33); +lean_inc(x_6); +lean_inc(x_5); +x_42 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_39, x_5, x_6, x_40); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_4); +x_11 = x_44; +x_12 = x_43; +goto block_17; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); +uint8_t x_45; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_45 = !lean_is_exclusive(x_42); +if (x_45 == 0) +{ +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_42, 0); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_42); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_33; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_33, 0); +x_50 = lean_ctor_get(x_33, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_33); -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; +x_51 = l_Lean_Exception_isInterrupt(x_49); +if (x_51 == 0) +{ +lean_object* x_52; +lean_inc(x_6); +lean_inc(x_5); +x_52 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_49, x_5, x_6, x_50); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_4); +x_11 = x_54; +x_12 = x_53; +goto block_17; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_55 = lean_ctor_get(x_52, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_57 = x_52; +} else { + lean_dec_ref(x_52); + 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; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_50); +return x_59; +} +} +} +block_17: +{ +lean_object* x_13; size_t x_14; size_t x_15; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = lean_usize_add(x_3, x_14); +x_3 = x_15; +x_4 = x_13; +x_7 = x_12; +goto _start; } } } @@ -33958,7 +47152,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -33967,6 +47161,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -33976,19 +47173,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__8(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__8(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -34106,7 +47305,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -34115,6 +47314,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -34124,19 +47326,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__11(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__11(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -34384,9 +47588,9 @@ static lean_object* _init_l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabM _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -34404,9 +47608,9 @@ static lean_object* _init_l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabM _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -34517,9 +47721,9 @@ static lean_object* _init_l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabM _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_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1; -x_2 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2; -x_3 = l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3; +x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1; +x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2; +x_3 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3; x_4 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -34702,17 +47906,476 @@ return x_41; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___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_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___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_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_9 = l_Lean_Elab_Command_mkDefView(x_2, x_8, x_4, x_5, x_6); -return x_9; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_array_push(x_4, x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +return x_13; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1() { +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +lean_inc(x_12); +lean_inc(x_11); +x_16 = l_Lean_Elab_Command_mkDefView(x_2, x_15, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +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 = lean_box(0); +x_20 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_3, x_8, x_17, x_9, x_19, x_11, x_12, x_18); +lean_dec(x_12); +lean_dec(x_11); +return x_20; +} +else +{ +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; 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; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_21 = lean_ctor_get(x_16, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_dec(x_16); +x_23 = lean_ctor_get(x_4, 0); +lean_inc(x_23); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + x_24 = x_4; +} else { + lean_dec_ref(x_4); + x_24 = lean_box(0); +} +x_25 = lean_ctor_get_uint8(x_21, sizeof(void*)*8); +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_21, 2); +lean_inc(x_28); +x_29 = lean_ctor_get(x_21, 3); +lean_inc(x_29); +x_30 = lean_ctor_get(x_21, 4); +lean_inc(x_30); +x_31 = lean_ctor_get(x_21, 5); +lean_inc(x_31); +x_32 = lean_ctor_get(x_21, 7); +lean_inc(x_32); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + lean_ctor_release(x_21, 2); + lean_ctor_release(x_21, 3); + lean_ctor_release(x_21, 4); + lean_ctor_release(x_21, 5); + lean_ctor_release(x_21, 6); + lean_ctor_release(x_21, 7); + x_33 = x_21; +} else { + lean_dec_ref(x_21); + x_33 = lean_box(0); +} +x_34 = lean_ctor_get(x_23, 0); +lean_inc(x_34); +lean_dec(x_23); +x_35 = 0; +x_36 = l_Lean_Syntax_getRange_x3f(x_1, x_35); +lean_inc(x_5); +x_37 = lean_io_promise_result(x_5); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_88; +x_88 = lean_box(0); +x_39 = x_88; +goto block_87; +} +else +{ +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_7, 0); +lean_inc(x_89); +lean_dec(x_7); +x_90 = l_Lean_Syntax_getPos_x3f(x_31, x_35); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +lean_dec(x_89); +x_91 = lean_box(0); +x_39 = x_91; +goto block_87; +} +else +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) +{ +uint8_t x_93; +x_93 = !lean_is_exclusive(x_89); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_90, 0); +x_95 = lean_ctor_get(x_89, 2); +lean_dec(x_95); +lean_ctor_set(x_89, 2, x_94); +lean_ctor_set(x_90, 0, x_89); +x_39 = x_90; +goto block_87; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_90, 0); +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(0, 3, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_99, 2, x_96); +lean_ctor_set(x_90, 0, x_99); +x_39 = x_90; +goto block_87; +} +} +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_90, 0); +lean_inc(x_100); +lean_dec(x_90); +x_101 = lean_ctor_get(x_89, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_89, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + lean_ctor_release(x_89, 2); + x_103 = x_89; +} else { + lean_dec_ref(x_89); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(0, 3, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +lean_ctor_set(x_104, 2, x_100); +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_104); +x_39 = x_105; +goto block_87; +} +} +} +block_87: +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_inc(x_39); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = lean_array_push(x_8, x_40); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_49; +lean_dec(x_39); +lean_dec(x_6); +x_49 = lean_box(0); +x_42 = x_49; +goto block_48; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_34, 0); +lean_inc(x_50); +lean_dec(x_34); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = l_Lean_Language_SnapshotTask_get___rarg(x_51); +x_53 = l_Lean_Elab_instTypeNameDefsParsedSnapshot; +x_54 = l_Lean_Language_DynamicSnapshot_toTyped_x3f___rarg(x_53, x_52); +lean_dec(x_52); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +lean_dec(x_39); +lean_dec(x_6); +x_55 = lean_box(0); +x_42 = x_55; +goto block_48; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_array_get_size(x_57); +x_59 = lean_nat_dec_lt(x_6, x_58); +lean_dec(x_58); +if (x_59 == 0) +{ +lean_object* x_60; +lean_dec(x_57); +lean_dec(x_39); +lean_dec(x_6); +x_60 = lean_box(0); +x_42 = x_60; +goto block_48; +} +else +{ +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_61; +lean_dec(x_57); +lean_dec(x_6); +x_61 = lean_box(0); +x_42 = x_61; +goto block_48; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_39, 0); +lean_inc(x_62); +lean_dec(x_39); +x_63 = lean_array_fget(x_57, x_6); +lean_dec(x_6); +lean_dec(x_57); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +lean_dec(x_63); +lean_dec(x_62); +x_65 = lean_box(0); +x_42 = x_65; +goto block_48; +} +else +{ +uint8_t x_66; +x_66 = !lean_is_exclusive(x_63); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_63, 1); +x_68 = lean_ctor_get(x_63, 0); +lean_dec(x_68); +x_69 = !lean_is_exclusive(x_64); +if (x_69 == 0) +{ +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_64, 0); +x_71 = l_Substring_sameAs(x_62, x_70); +if (x_71 == 0) +{ +lean_object* x_72; +lean_free_object(x_64); +lean_free_object(x_63); +lean_dec(x_67); +x_72 = lean_box(0); +x_42 = x_72; +goto block_48; +} +else +{ +lean_object* x_73; +x_73 = lean_box(0); +lean_ctor_set(x_63, 0, x_73); +lean_ctor_set(x_64, 0, x_63); +x_42 = x_64; +goto block_48; +} +} +else +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_64, 0); +lean_inc(x_74); +lean_dec(x_64); +x_75 = l_Substring_sameAs(x_62, x_74); +if (x_75 == 0) +{ +lean_object* x_76; +lean_free_object(x_63); +lean_dec(x_67); +x_76 = lean_box(0); +x_42 = x_76; +goto block_48; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_box(0); +lean_ctor_set(x_63, 0, x_77); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_63); +x_42 = x_78; +goto block_48; +} +} +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_79 = lean_ctor_get(x_63, 1); +lean_inc(x_79); +lean_dec(x_63); +x_80 = lean_ctor_get(x_64, 0); +lean_inc(x_80); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + x_81 = x_64; +} else { + lean_dec_ref(x_64); + x_81 = lean_box(0); +} +x_82 = l_Substring_sameAs(x_62, x_80); +if (x_82 == 0) +{ +lean_object* x_83; +lean_dec(x_81); +lean_dec(x_79); +x_83 = lean_box(0); +x_42 = x_83; +goto block_48; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_79); +if (lean_is_scalar(x_81)) { + x_86 = lean_alloc_ctor(1, 1, 0); +} else { + x_86 = x_81; +} +lean_ctor_set(x_86, 0, x_85); +x_42 = x_86; +goto block_48; +} +} +} +} +} +} +} +block_48: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_5); +if (lean_is_scalar(x_24)) { + x_44 = lean_alloc_ctor(1, 1, 0); +} else { + x_44 = x_24; +} +lean_ctor_set(x_44, 0, x_43); +if (lean_is_scalar(x_33)) { + x_45 = lean_alloc_ctor(0, 8, 1); +} else { + x_45 = x_33; +} +lean_ctor_set(x_45, 0, x_26); +lean_ctor_set(x_45, 1, x_27); +lean_ctor_set(x_45, 2, x_28); +lean_ctor_set(x_45, 3, x_29); +lean_ctor_set(x_45, 4, x_30); +lean_ctor_set(x_45, 5, x_31); +lean_ctor_set(x_45, 6, x_44); +lean_ctor_set(x_45, 7, x_32); +lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_25); +x_46 = lean_box(0); +x_47 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_3, x_41, x_45, x_9, x_46, x_11, x_12, x_22); +lean_dec(x_12); +lean_dec(x_11); +return x_47; +} +} +} +} +else +{ +uint8_t x_106; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_106 = !lean_is_exclusive(x_16); +if (x_106 == 0) +{ +return x_16; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_16, 0); +x_108 = lean_ctor_get(x_16, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_16); +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; +} +} +} +} +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1() { _start: { lean_object* x_1; @@ -34720,211 +48383,1659 @@ x_1 = lean_mk_string_from_bytes("invalid use of 'nonrec' modifier in 'mutual' bl return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2() { +static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1; +x_1 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12(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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___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_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_8; -x_8 = lean_usize_dec_lt(x_3, x_2); -if (x_8 == 0) +uint8_t x_16; +x_16 = lean_nat_dec_lt(x_10, x_7); +if (x_16 == 0) { -lean_object* x_9; -lean_dec(x_6); -lean_dec(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_7); -return x_9; +lean_object* x_17; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, x_15); +return x_17; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_array_uget(x_4, x_3); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_uset(x_4, x_3, x_11); -x_13 = l_Lean_Syntax_getArg(x_10, x_11); -lean_inc(x_6); -lean_inc(x_5); -x_14 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_13, x_5, x_6, x_7); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -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_array_get_size(x_1); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_dec_lt(x_18, x_17); -lean_dec(x_17); +lean_object* x_18; uint8_t x_19; +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_9, x_18); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -x_21 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_10, x_15, x_20, x_5, x_6, x_16); -lean_dec(x_10); -if (lean_obj_tag(x_21) == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_9, x_20); +lean_dec(x_9); +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; -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 = 1; -x_25 = lean_usize_add(x_3, x_24); -x_26 = lean_array_uset(x_12, x_3, x_22); -x_3 = x_25; -x_4 = x_26; -x_7 = x_23; -goto _start; -} -else +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_12, 1); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -uint8_t x_28; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_5); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -return x_21; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_21, 0); -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); +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; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_23, 0); +x_27 = lean_ctor_get(x_23, 1); +x_28 = lean_ctor_get(x_25, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_25, 1); lean_inc(x_29); +x_30 = lean_ctor_get(x_25, 2); +lean_inc(x_30); +x_31 = lean_nat_dec_lt(x_29, x_30); +if (x_31 == 0) +{ +lean_object* x_32; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_28); lean_dec(x_21); -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_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_12); +lean_ctor_set(x_32, 1, x_15); +return x_32; } +else +{ +uint8_t x_33; +lean_free_object(x_23); +lean_free_object(x_12); +x_33 = !lean_is_exclusive(x_25); +if (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; +x_34 = lean_ctor_get(x_25, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_25, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_25, 0); +lean_dec(x_36); +x_37 = lean_array_fget(x_28, x_29); +x_38 = lean_nat_add(x_29, x_20); +lean_dec(x_29); +lean_ctor_set(x_25, 1, x_38); +x_39 = lean_array_fget(x_1, x_10); +x_40 = l_Lean_Syntax_getArg(x_39, x_18); +lean_inc(x_14); +lean_inc(x_13); +x_41 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_40, x_13, x_14, x_15); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_nat_dec_lt(x_20, x_2); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_46 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_39, x_42, x_25, x_4, x_37, x_10, x_3, x_26, x_27, x_45, x_13, x_14, x_43); +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) +{ +uint8_t x_48; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_48 = !lean_is_exclusive(x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 0); +lean_dec(x_49); +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +lean_dec(x_47); +lean_ctor_set(x_46, 0, x_50); +return x_46; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_dec(x_46); +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +lean_dec(x_47); +x_53 = lean_alloc_ctor(0, 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_32; -x_32 = l_Lean_Elab_Modifiers_isNonrec(x_15); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -x_34 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_10, x_15, x_33, x_5, x_6, x_16); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +lean_dec(x_46); +x_55 = lean_ctor_get(x_47, 0); +lean_inc(x_55); +lean_dec(x_47); +x_56 = lean_nat_add(x_10, x_8); lean_dec(x_10); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; -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 = 1; -x_38 = lean_usize_add(x_3, x_37); -x_39 = lean_array_uset(x_12, x_3, x_35); -x_3 = x_38; -x_4 = x_39; -x_7 = x_36; +x_9 = x_21; +x_10 = x_56; +x_11 = lean_box(0); +x_12 = x_55; +x_15 = x_54; goto _start; } -else -{ -uint8_t x_41; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_5); -x_41 = !lean_is_exclusive(x_34); -if (x_41 == 0) -{ -return x_34; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_34, 0); -x_43 = lean_ctor_get(x_34, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_34); -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; uint8_t x_47; -lean_dec(x_15); -lean_dec(x_12); -x_45 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; -x_46 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(x_10, x_45, x_5, x_6, x_16); -lean_dec(x_6); +uint8_t x_58; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_10); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +lean_dec(x_4); +lean_dec(x_3); +x_58 = !lean_is_exclusive(x_46); +if (x_58 == 0) { return x_46; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_46, 0); +x_60 = lean_ctor_get(x_46, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_46); -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_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_51; -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -x_51 = !lean_is_exclusive(x_14); -if (x_51 == 0) +uint8_t x_62; +x_62 = l_Lean_Elab_Modifiers_isNonrec(x_42); +if (x_62 == 0) { -return x_14; -} -else +lean_object* x_63; lean_object* x_64; +x_63 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_64 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_39, x_42, x_25, x_4, x_37, x_10, x_3, x_26, x_27, x_63, x_13, x_14, x_43); +if (lean_obj_tag(x_64) == 0) { -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_object* x_65; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +if (lean_obj_tag(x_65) == 0) +{ +uint8_t x_66; +lean_dec(x_21); 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); -return x_54; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_66 = !lean_is_exclusive(x_64); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_64, 0); +lean_dec(x_67); +x_68 = lean_ctor_get(x_65, 0); +lean_inc(x_68); +lean_dec(x_65); +lean_ctor_set(x_64, 0, x_68); +return x_64; } +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_dec(x_64); +x_70 = lean_ctor_get(x_65, 0); +lean_inc(x_70); +lean_dec(x_65); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_64, 1); +lean_inc(x_72); +lean_dec(x_64); +x_73 = lean_ctor_get(x_65, 0); +lean_inc(x_73); +lean_dec(x_65); +x_74 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_74; +x_11 = lean_box(0); +x_12 = x_73; +x_15 = x_72; +goto _start; +} +} +else +{ +uint8_t x_76; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_76 = !lean_is_exclusive(x_64); +if (x_76 == 0) +{ +return x_64; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_64, 0); +x_78 = lean_ctor_get(x_64, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_64); +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; +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; +lean_dec(x_42); +lean_dec(x_25); +lean_dec(x_37); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_80 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; +x_81 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(x_39, x_80, x_13, x_14, x_43); +lean_dec(x_14); +lean_dec(x_39); +x_82 = !lean_is_exclusive(x_81); +if (x_82 == 0) +{ +return x_81; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_81, 0); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_81); +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; +} +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_39); +lean_dec(x_25); +lean_dec(x_37); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_86 = !lean_is_exclusive(x_41); +if (x_86 == 0) +{ +return x_41; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_41, 0); +x_88 = lean_ctor_get(x_41, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_41); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +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; +lean_dec(x_25); +x_90 = lean_array_fget(x_28, x_29); +x_91 = lean_nat_add(x_29, x_20); +lean_dec(x_29); +x_92 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_92, 0, x_28); +lean_ctor_set(x_92, 1, x_91); +lean_ctor_set(x_92, 2, x_30); +x_93 = lean_array_fget(x_1, x_10); +x_94 = l_Lean_Syntax_getArg(x_93, x_18); +lean_inc(x_14); +lean_inc(x_13); +x_95 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_94, x_13, x_14, x_15); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_nat_dec_lt(x_20, x_2); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_100 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_93, x_96, x_92, x_4, x_90, x_10, x_3, x_26, x_27, x_99, x_13, x_14, x_97); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +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_100); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_101, 0); +lean_inc(x_104); +lean_dec(x_101); +if (lean_is_scalar(x_103)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_103; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_102); +return x_105; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_100, 1); +lean_inc(x_106); +lean_dec(x_100); +x_107 = lean_ctor_get(x_101, 0); +lean_inc(x_107); +lean_dec(x_101); +x_108 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_108; +x_11 = lean_box(0); +x_12 = x_107; +x_15 = x_106; +goto _start; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_110 = lean_ctor_get(x_100, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_100, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_112 = x_100; +} else { + lean_dec_ref(x_100); + 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); +return x_113; +} +} +else +{ +uint8_t x_114; +x_114 = l_Lean_Elab_Modifiers_isNonrec(x_96); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_116 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_93, x_96, x_92, x_4, x_90, x_10, x_3, x_26, x_27, x_115, x_13, x_14, x_97); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; +} else { + lean_dec_ref(x_116); + x_119 = lean_box(0); +} +x_120 = lean_ctor_get(x_117, 0); +lean_inc(x_120); +lean_dec(x_117); +if (lean_is_scalar(x_119)) { + x_121 = lean_alloc_ctor(0, 2, 0); +} else { + x_121 = x_119; +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_118); +return x_121; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_116, 1); +lean_inc(x_122); +lean_dec(x_116); +x_123 = lean_ctor_get(x_117, 0); +lean_inc(x_123); +lean_dec(x_117); +x_124 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_124; +x_11 = lean_box(0); +x_12 = x_123; +x_15 = x_122; +goto _start; +} +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_126 = lean_ctor_get(x_116, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_116, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_128 = x_116; +} else { + lean_dec_ref(x_116); + x_128 = lean_box(0); +} +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_128; +} +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_127); +return x_129; +} +} +else +{ +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_dec(x_96); +lean_dec(x_92); +lean_dec(x_90); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_130 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; +x_131 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(x_93, x_130, x_13, x_14, x_97); +lean_dec(x_14); +lean_dec(x_93); +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); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); +} else { + x_135 = x_134; +} +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; +} +} +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_93); +lean_dec(x_92); +lean_dec(x_90); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_136 = lean_ctor_get(x_95, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_95, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_138 = x_95; +} else { + lean_dec_ref(x_95); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; +} +} +} +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_140 = lean_ctor_get(x_12, 0); +x_141 = lean_ctor_get(x_23, 0); +x_142 = lean_ctor_get(x_23, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_23); +x_143 = lean_ctor_get(x_140, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_140, 1); +lean_inc(x_144); +x_145 = lean_ctor_get(x_140, 2); +lean_inc(x_145); +x_146 = lean_nat_dec_lt(x_144, x_145); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; +lean_dec(x_145); +lean_dec(x_144); +lean_dec(x_143); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_141); +lean_ctor_set(x_147, 1, x_142); +lean_ctor_set(x_12, 1, x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_12); +lean_ctor_set(x_148, 1, x_15); +return x_148; +} +else +{ +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_free_object(x_12); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + lean_ctor_release(x_140, 2); + x_149 = x_140; +} else { + lean_dec_ref(x_140); + x_149 = lean_box(0); +} +x_150 = lean_array_fget(x_143, x_144); +x_151 = lean_nat_add(x_144, x_20); +lean_dec(x_144); +if (lean_is_scalar(x_149)) { + x_152 = lean_alloc_ctor(0, 3, 0); +} else { + x_152 = x_149; +} +lean_ctor_set(x_152, 0, x_143); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_145); +x_153 = lean_array_fget(x_1, x_10); +x_154 = l_Lean_Syntax_getArg(x_153, x_18); +lean_inc(x_14); +lean_inc(x_13); +x_155 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_154, x_13, x_14, x_15); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_nat_dec_lt(x_20, x_2); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; +x_159 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_160 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_153, x_156, x_152, x_4, x_150, x_10, x_3, x_141, x_142, x_159, x_13, x_14, x_157); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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, 0); +lean_inc(x_164); +lean_dec(x_161); +if (lean_is_scalar(x_163)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_163; +} +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_162); +return x_165; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_160, 1); +lean_inc(x_166); +lean_dec(x_160); +x_167 = lean_ctor_get(x_161, 0); +lean_inc(x_167); +lean_dec(x_161); +x_168 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_168; +x_11 = lean_box(0); +x_12 = x_167; +x_15 = x_166; +goto _start; +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_170 = lean_ctor_get(x_160, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_160, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_172 = x_160; +} else { + lean_dec_ref(x_160); + 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 +{ +uint8_t x_174; +x_174 = l_Lean_Elab_Modifiers_isNonrec(x_156); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_176 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_153, x_156, x_152, x_4, x_150, x_10, x_3, x_141, x_142, x_175, x_13, x_14, x_157); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; +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_object* x_181; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +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); +} +x_180 = lean_ctor_get(x_177, 0); +lean_inc(x_180); +lean_dec(x_177); +if (lean_is_scalar(x_179)) { + x_181 = lean_alloc_ctor(0, 2, 0); +} else { + x_181 = x_179; +} +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_178); +return x_181; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_176, 1); +lean_inc(x_182); +lean_dec(x_176); +x_183 = lean_ctor_get(x_177, 0); +lean_inc(x_183); +lean_dec(x_177); +x_184 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_184; +x_11 = lean_box(0); +x_12 = x_183; +x_15 = x_182; +goto _start; +} +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_186 = lean_ctor_get(x_176, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_176, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_188 = x_176; +} else { + lean_dec_ref(x_176); + x_188 = lean_box(0); +} +if (lean_is_scalar(x_188)) { + x_189 = lean_alloc_ctor(1, 2, 0); +} else { + x_189 = x_188; +} +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_187); +return x_189; +} +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_dec(x_156); +lean_dec(x_152); +lean_dec(x_150); +lean_dec(x_142); +lean_dec(x_141); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_190 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; +x_191 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(x_153, x_190, x_13, x_14, x_157); +lean_dec(x_14); +lean_dec(x_153); +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +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); +} +if (lean_is_scalar(x_194)) { + x_195 = lean_alloc_ctor(1, 2, 0); +} else { + x_195 = x_194; +} +lean_ctor_set(x_195, 0, x_192); +lean_ctor_set(x_195, 1, x_193); +return x_195; +} +} +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_153); +lean_dec(x_152); +lean_dec(x_150); +lean_dec(x_142); +lean_dec(x_141); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_196 = lean_ctor_get(x_155, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_155, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_198 = x_155; +} else { + lean_dec_ref(x_155); + x_198 = lean_box(0); +} +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_198; +} +lean_ctor_set(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +return x_199; +} +} +} +} +else +{ +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; +x_200 = lean_ctor_get(x_12, 1); +x_201 = lean_ctor_get(x_12, 0); +lean_inc(x_200); +lean_inc(x_201); +lean_dec(x_12); +x_202 = lean_ctor_get(x_200, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_200, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_204 = x_200; +} else { + lean_dec_ref(x_200); + x_204 = lean_box(0); +} +x_205 = lean_ctor_get(x_201, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_201, 1); +lean_inc(x_206); +x_207 = lean_ctor_get(x_201, 2); +lean_inc(x_207); +x_208 = lean_nat_dec_lt(x_206, x_207); +if (x_208 == 0) +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_204)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_204; +} +lean_ctor_set(x_209, 0, x_202); +lean_ctor_set(x_209, 1, x_203); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_201); +lean_ctor_set(x_210, 1, x_209); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_15); +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_object* x_218; +lean_dec(x_204); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + lean_ctor_release(x_201, 2); + x_212 = x_201; +} else { + lean_dec_ref(x_201); + x_212 = lean_box(0); +} +x_213 = lean_array_fget(x_205, x_206); +x_214 = lean_nat_add(x_206, x_20); +lean_dec(x_206); +if (lean_is_scalar(x_212)) { + x_215 = lean_alloc_ctor(0, 3, 0); +} else { + x_215 = x_212; +} +lean_ctor_set(x_215, 0, x_205); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_207); +x_216 = lean_array_fget(x_1, x_10); +x_217 = l_Lean_Syntax_getArg(x_216, x_18); +lean_inc(x_14); +lean_inc(x_13); +x_218 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_217, x_13, x_14, x_15); +if (lean_obj_tag(x_218) == 0) +{ +lean_object* x_219; lean_object* x_220; uint8_t x_221; +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_nat_dec_lt(x_20, x_2); +if (x_221 == 0) +{ +lean_object* x_222; lean_object* x_223; +x_222 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_223 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_216, x_219, x_215, x_4, x_213, x_10, x_3, x_202, x_203, x_222, x_13, x_14, x_220); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_226 = x_223; +} else { + lean_dec_ref(x_223); + x_226 = lean_box(0); +} +x_227 = lean_ctor_get(x_224, 0); +lean_inc(x_227); +lean_dec(x_224); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +return x_228; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_223, 1); +lean_inc(x_229); +lean_dec(x_223); +x_230 = lean_ctor_get(x_224, 0); +lean_inc(x_230); +lean_dec(x_224); +x_231 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_231; +x_11 = lean_box(0); +x_12 = x_230; +x_15 = x_229; +goto _start; +} +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_233 = lean_ctor_get(x_223, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_223, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_235 = x_223; +} else { + lean_dec_ref(x_223); + x_235 = lean_box(0); +} +if (lean_is_scalar(x_235)) { + x_236 = lean_alloc_ctor(1, 2, 0); +} else { + x_236 = x_235; +} +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_234); +return x_236; +} +} +else +{ +uint8_t x_237; +x_237 = l_Lean_Elab_Modifiers_isNonrec(x_219); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; +x_238 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_4); +x_239 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_216, x_219, x_215, x_4, x_213, x_10, x_3, x_202, x_203, x_238, x_13, x_14, x_220); +if (lean_obj_tag(x_239) == 0) +{ +lean_object* x_240; +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_241 = lean_ctor_get(x_239, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_242 = x_239; +} else { + lean_dec_ref(x_239); + x_242 = lean_box(0); +} +x_243 = lean_ctor_get(x_240, 0); +lean_inc(x_243); +lean_dec(x_240); +if (lean_is_scalar(x_242)) { + x_244 = lean_alloc_ctor(0, 2, 0); +} else { + x_244 = x_242; +} +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_241); +return x_244; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_239, 1); +lean_inc(x_245); +lean_dec(x_239); +x_246 = lean_ctor_get(x_240, 0); +lean_inc(x_246); +lean_dec(x_240); +x_247 = lean_nat_add(x_10, x_8); +lean_dec(x_10); +x_9 = x_21; +x_10 = x_247; +x_11 = lean_box(0); +x_12 = x_246; +x_15 = x_245; +goto _start; +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_249 = lean_ctor_get(x_239, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_239, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_251 = x_239; +} else { + lean_dec_ref(x_239); + x_251 = lean_box(0); +} +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_251; +} +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); +return x_252; +} +} +else +{ +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_dec(x_219); +lean_dec(x_215); +lean_dec(x_213); +lean_dec(x_203); +lean_dec(x_202); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_253 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; +x_254 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__14(x_216, x_253, x_13, x_14, x_220); +lean_dec(x_14); +lean_dec(x_216); +x_255 = lean_ctor_get(x_254, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_254, 1); +lean_inc(x_256); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_257 = x_254; +} else { + lean_dec_ref(x_254); + x_257 = lean_box(0); +} +if (lean_is_scalar(x_257)) { + x_258 = lean_alloc_ctor(1, 2, 0); +} else { + x_258 = x_257; +} +lean_ctor_set(x_258, 0, x_255); +lean_ctor_set(x_258, 1, x_256); +return x_258; +} +} +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_216); +lean_dec(x_215); +lean_dec(x_213); +lean_dec(x_203); +lean_dec(x_202); +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_259 = lean_ctor_get(x_218, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_218, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_218)) { + lean_ctor_release(x_218, 0); + lean_ctor_release(x_218, 1); + x_261 = x_218; +} else { + lean_dec_ref(x_218); + x_261 = lean_box(0); +} +if (lean_is_scalar(x_261)) { + x_262 = lean_alloc_ctor(1, 2, 0); +} else { + x_262 = x_261; +} +lean_ctor_set(x_262, 0, x_259); +lean_ctor_set(x_262, 1, x_260); +return x_262; +} +} +} +} +else +{ +lean_object* x_263; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_12); +lean_ctor_set(x_263, 1, x_15); +return x_263; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at_Lean_Elab_Command_elabMutualDef___spec__13(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(x_7, x_8, x_5); +lean_ctor_set(x_2, 1, x_9); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_3); +lean_ctor_set(x_10, 1, x_2); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_2); +x_13 = lean_array_get_size(x_12); +x_14 = lean_usize_of_nat(x_13); +lean_dec(x_13); +x_15 = 0; +x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_instToSnapshotTreeDefsParsedSnapshot___spec__1(x_14, x_15, x_12); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_11); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_3); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__15(size_t x_1, size_t 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_usize_dec_lt(x_2, x_1); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_array_uset(x_3, x_2, x_9); +x_11 = lean_io_promise_new(x_6); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 1; +x_15 = lean_usize_add(x_2, x_14); +x_16 = lean_array_uset(x_10, x_2, x_12); +x_2 = x_15; +x_3 = x_16; +x_6 = x_13; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__16(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) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_4, x_3); +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +lean_dec(x_5); +x_11 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_12 = lean_io_promise_resolve(x_1, x_11, x_8); +lean_dec(x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = 1; +x_15 = lean_usize_add(x_4, x_14); +x_16 = lean_box(0); +x_4 = x_15; +x_5 = x_16; +x_8 = x_13; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__17(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) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_4, x_3); +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; +lean_dec(x_5); +x_11 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_12 = lean_io_promise_resolve(x_1, x_11, x_8); +lean_dec(x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = 1; +x_15 = lean_usize_add(x_4, x_14); +x_16 = lean_box(0); +x_4 = x_15; +x_5 = x_16; +x_8 = x_13; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Command_elabMutualDef___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; lean_object* x_19; +x_7 = l_List_iotaTR(x_2); +x_8 = l_List_redLength___rarg(x_7); +x_9 = lean_mk_empty_array_with_capacity(x_8); +lean_dec(x_8); +x_10 = l_List_toArrayAux___rarg(x_7, x_9); +x_11 = lean_array_get_size(x_10); +x_12 = lean_usize_of_nat(x_11); +lean_dec(x_11); +x_13 = 0; +x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__15(x_12, x_13, x_10, x_4, x_5, x_6); +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_array_get_size(x_15); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_15); +x_19 = lean_apply_4(x_3, x_15, x_4, x_5, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +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_box(0); +x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__16(x_1, x_15, x_18, x_13, x_22, x_4, x_5, x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_15); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_20); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_20); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_dec(x_19); +x_30 = lean_box(0); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__17(x_1, x_15, x_18, x_13, x_30, x_4, x_5, x_29); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_15); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_28); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } @@ -34937,59 +50048,211 @@ x_10 = l_Lean_Elab_Term_elabMutualDef(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_ return x_10; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__2(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; lean_object* x_7; +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMutualDef___lambda__1), 9, 1); +lean_closure_set(x_6, 0, x_1); +x_7 = l_Lean_Elab_Command_runTermElabM___rarg(x_6, x_3, x_4, x_5); +return x_7; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___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) { +_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; 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; +x_8 = lean_box(2); +x_9 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10; +lean_inc(x_1); +x_10 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +lean_ctor_set(x_10, 2, x_1); +x_11 = 1; +x_12 = l_Lean_Syntax_getSubstring_x3f(x_10, x_11, x_11); +lean_dec(x_10); +x_13 = lean_ctor_get(x_5, 8); +lean_inc(x_13); +x_14 = lean_array_get_size(x_4); +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_toSubarray___rarg(x_4, x_15, x_14); +x_17 = lean_unsigned_to_nat(1u); +lean_inc(x_2); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_17); +x_19 = l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_19); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_13); +lean_inc(x_2); +x_21 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12(x_1, x_2, x_12, x_13, x_18, x_15, x_2, x_17, x_2, x_15, lean_box(0), x_20, x_5, x_6, x_7); +lean_dec(x_18); +lean_dec(x_2); +lean_dec(x_1); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_3); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l_Lean_Elab_Command_elabMutualDef___lambda__2(x_25, x_26, x_5, x_6, x_24); +lean_dec(x_6); +lean_dec(x_5); +return x_27; +} +else +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +x_32 = lean_ctor_get(x_13, 0); +lean_inc(x_32); +lean_dec(x_13); +x_33 = l_Lean_Language_Snapshot_Diagnostics_empty; +x_34 = 0; +x_35 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_3); +lean_ctor_set_uint8(x_35, sizeof(void*)*2, x_34); +lean_ctor_set(x_23, 1, x_30); +lean_ctor_set(x_23, 0, x_35); +x_36 = l_Lean_Elab_instTypeNameDefsParsedSnapshot; +x_37 = l_Lean_Language_DynamicSnapshot_ofTyped___at_Lean_Elab_Command_elabMutualDef___spec__13(x_36, x_23); +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_dec(x_32); +x_39 = lean_io_promise_resolve(x_37, x_38, x_28); +lean_dec(x_38); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_Command_elabMutualDef___lambda__2(x_31, x_40, x_5, x_6, x_41); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_40); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; 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; +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_ctor_get(x_13, 0); +lean_inc(x_45); +lean_dec(x_13); +x_46 = l_Lean_Language_Snapshot_Diagnostics_empty; +x_47 = 0; +x_48 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_3); +lean_ctor_set_uint8(x_48, sizeof(void*)*2, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_43); +x_50 = l_Lean_Elab_instTypeNameDefsParsedSnapshot; +x_51 = l_Lean_Language_DynamicSnapshot_ofTyped___at_Lean_Elab_Command_elabMutualDef___spec__13(x_50, x_49); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_dec(x_45); +x_53 = lean_io_promise_resolve(x_51, x_52, x_28); +lean_dec(x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Command_elabMutualDef___lambda__2(x_44, x_54, x_5, x_6, x_55); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_54); +return x_56; +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_57 = !lean_is_exclusive(x_21); +if (x_57 == 0) +{ +return x_21; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_21, 0); +x_59 = lean_ctor_get(x_21, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_21); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; -x_5 = lean_array_get_size(x_1); -x_6 = lean_usize_of_nat(x_5); -lean_dec(x_5); -x_7 = 0; -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_8 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12(x_1, x_6, x_7, x_1, x_2, x_3, x_4); -lean_dec(x_1); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -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_alloc_closure((void*)(l_Lean_Elab_Command_elabMutualDef___lambda__1), 9, 1); -lean_closure_set(x_11, 0, x_9); -x_12 = l_Lean_Elab_Command_runTermElabM___rarg(x_11, x_2, x_3, x_10); -lean_dec(x_3); -lean_dec(x_2); -return x_12; -} -else -{ -uint8_t x_13; -lean_dec(x_3); -lean_dec(x_2); -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) -{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_box(0); +x_6 = lean_array_get_size(x_1); +lean_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMutualDef___lambda__3), 7, 3); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_6); +lean_closure_set(x_7, 2, x_5); +x_8 = l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Command_elabMutualDef___spec__14(x_5, x_6, x_7, x_2, x_3, x_4); return x_8; } -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} } LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: @@ -35103,27 +50366,93 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___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_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___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_7; -x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); +lean_object* x_9; +x_9 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___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, 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_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12(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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); -return x_7; +return x_16; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___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) { _start: { -size_t x_8; size_t x_9; lean_object* x_10; +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); x_8 = lean_unbox_usize(x_2); lean_dec(x_2); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__15(x_7, x_8, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___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) { +_start: +{ +size_t x_9; size_t x_10; lean_object* x_11; x_9 = lean_unbox_usize(x_3); lean_dec(x_3); -x_10 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_10; +x_10 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__16(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___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) { +_start: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__17(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__2___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_Lean_Elab_Command_elabMutualDef___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; } } lean_object* initialize_Lean_Parser_Term(uint8_t builtin, lean_object*); @@ -35187,6 +50516,10 @@ l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3 = _init_l_Lean_Elab_instI lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeader___closed__3); l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4 = _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4(); lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeader___closed__4); +l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5 = _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeader___closed__5); +l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6 = _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6(); +lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeader___closed__6); l_Lean_Elab_instInhabitedDefViewElabHeader = _init_l_Lean_Elab_instInhabitedDefViewElabHeader(); lean_mark_persistent(l_Lean_Elab_instInhabitedDefViewElabHeader); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1(); @@ -35281,6 +50614,55 @@ l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__1 = _in lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__1); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__2); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__3); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__4); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_getBodyTerm_x3f___closed__5); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__1); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__2(); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__3); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__4); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__5); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__6); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__7); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__8); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__9); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___lambda__1___closed__10); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__1); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__2); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__3); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__4); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__5); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__6); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__7); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__8); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__9); +l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_mkTacTask___closed__10); l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__1 = _init_l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__1(); lean_mark_persistent(l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__1); l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__2 = _init_l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__2(); @@ -35313,26 +50695,20 @@ l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab lean_mark_persistent(l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__1); l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2 = _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2(); lean_mark_persistent(l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__2); -l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3 = _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3(); -lean_mark_persistent(l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__3); -l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4 = _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4(); -lean_mark_persistent(l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4); -l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5 = _init_l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5(); -lean_mark_persistent(l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__5); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__2); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__3); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__4); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__5); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__6); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__5___closed__7); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__1); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__2); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__3); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__4); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__5); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__6); +l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7 = _init_l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8___lambda__6___closed__7); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed__const__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__1(); @@ -35353,8 +50729,6 @@ l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__8); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__9); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__10); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__1(); @@ -35367,10 +50741,6 @@ l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expa lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__4); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__5 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__5(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__5); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__6); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___closed__7); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__2(); @@ -35449,10 +50819,6 @@ l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3 = _i lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__6); l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1 = _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__1); l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__2 = _init_l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1___lambda__1___closed__2(); @@ -35625,10 +50991,6 @@ l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__2); l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1___closed__1 = _init_l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1___closed__1(); lean_mark_persistent(l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_elabMutualDef___spec__1___closed__1); -l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1 = _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1); -l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__2 = _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__2); l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__1 = _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__1); l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__2 = _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___closed__2(); @@ -35669,10 +51031,12 @@ l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___close lean_mark_persistent(l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1); l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2 = _init_l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2(); lean_mark_persistent(l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2); -l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1); -l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__1); +l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2); +l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1 = _init_l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabMutualDef___lambda__3___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/PatternVar.c b/stage0/stdlib/Lean/Elab/PatternVar.c index e706bb53a7..100421a346 100644 --- a/stage0/stdlib/Lean/Elab/PatternVar.c +++ b/stage0/stdlib/Lean/Elab/PatternVar.c @@ -1202,7 +1202,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -1214,7 +1214,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -1227,31 +1230,33 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); lean_dec(x_9); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_29; +return x_31; } } } @@ -1907,7 +1912,7 @@ x_17 = lean_ctor_get(x_14, 2); 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; 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; lean_object* x_35; +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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_18 = lean_ctor_get(x_14, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_14, 1); @@ -1938,111 +1943,116 @@ x_30 = lean_ctor_get(x_9, 9); lean_inc(x_30); x_31 = lean_ctor_get(x_9, 10); lean_inc(x_31); -x_32 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_33 = l_Lean_replaceRef(x_18, x_26); -lean_dec(x_26); +x_32 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_33 = lean_ctor_get(x_9, 11); lean_inc(x_33); -x_34 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_34, 0, x_21); -lean_ctor_set(x_34, 1, x_22); -lean_ctor_set(x_34, 2, x_23); -lean_ctor_set(x_34, 3, x_24); -lean_ctor_set(x_34, 4, x_25); -lean_ctor_set(x_34, 5, x_33); -lean_ctor_set(x_34, 6, x_27); -lean_ctor_set(x_34, 7, x_28); -lean_ctor_set(x_34, 8, x_29); -lean_ctor_set(x_34, 9, x_30); -lean_ctor_set(x_34, 10, x_31); -lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_32); +x_34 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_35 = l_Lean_replaceRef(x_18, x_26); +lean_dec(x_26); +lean_inc(x_35); +x_36 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +lean_ctor_set(x_36, 5, x_35); +lean_ctor_set(x_36, 6, x_27); +lean_ctor_set(x_36, 7, x_28); +lean_ctor_set(x_36, 8, x_29); +lean_ctor_set(x_36, 9, x_30); +lean_ctor_set(x_36, 10, x_31); +lean_ctor_set(x_36, 11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*12 + 1, x_34); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_35 = l_Lean_Elab_Term_CollectPatternVars_collect(x_20, x_4, x_5, x_6, x_7, x_8, x_34, x_10, x_11); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Elab_Term_CollectPatternVars_collect(x_20, x_4, x_5, x_6, x_7, x_8, x_36, x_10, x_11); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = 0; -x_39 = l_Lean_SourceInfo_fromRef(x_33, x_38); -x_40 = lean_st_ref_get(x_10, x_37); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = 0; +x_41 = l_Lean_SourceInfo_fromRef(x_35, x_40); +x_42 = lean_st_ref_get(x_10, x_39); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -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; size_t x_52; size_t x_53; lean_object* x_54; -x_42 = lean_ctor_get(x_40, 1); -x_43 = lean_ctor_get(x_40, 0); -lean_dec(x_43); -x_44 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; -lean_inc(x_39); -lean_ctor_set_tag(x_40, 2); -lean_ctor_set(x_40, 1, x_44); -lean_ctor_set(x_40, 0, x_39); -x_45 = l_Lean_mkIdentFrom(x_18, x_19, x_38); -x_46 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; -lean_inc(x_39); -x_47 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_47, 0, x_39); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__5; -lean_inc(x_39); +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; size_t x_54; size_t x_55; lean_object* x_56; +x_44 = lean_ctor_get(x_42, 1); +x_45 = lean_ctor_get(x_42, 0); +lean_dec(x_45); +x_46 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; +lean_inc(x_41); +lean_ctor_set_tag(x_42, 2); +lean_ctor_set(x_42, 1, x_46); +lean_ctor_set(x_42, 0, x_41); +x_47 = l_Lean_mkIdentFrom(x_18, x_19, x_40); +x_48 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; +lean_inc(x_41); x_49 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_49, 0, x_39); +lean_ctor_set(x_49, 0, x_41); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; -x_51 = l_Lean_Syntax_node5(x_39, x_50, x_40, x_45, x_47, x_36, x_49); -x_52 = 1; -x_53 = lean_usize_add(x_2, x_52); -x_54 = lean_array_uset(x_16, x_2, x_51); -x_2 = x_53; -x_3 = x_54; -x_11 = x_42; +x_50 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__5; +lean_inc(x_41); +x_51 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_51, 0, x_41); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; +x_53 = l_Lean_Syntax_node5(x_41, x_52, x_42, x_47, x_49, x_38, x_51); +x_54 = 1; +x_55 = lean_usize_add(x_2, x_54); +x_56 = lean_array_uset(x_16, x_2, x_53); +x_2 = x_55; +x_3 = x_56; +x_11 = x_44; goto _start; } 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; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; size_t x_66; size_t x_67; lean_object* x_68; -x_56 = lean_ctor_get(x_40, 1); -lean_inc(x_56); -lean_dec(x_40); -x_57 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; -lean_inc(x_39); -x_58 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_58, 0, x_39); -lean_ctor_set(x_58, 1, x_57); -x_59 = l_Lean_mkIdentFrom(x_18, x_19, x_38); -x_60 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; -lean_inc(x_39); -x_61 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_61, 0, x_39); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__5; -lean_inc(x_39); +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; size_t x_68; size_t x_69; lean_object* x_70; +x_58 = lean_ctor_get(x_42, 1); +lean_inc(x_58); +lean_dec(x_42); +x_59 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; +lean_inc(x_41); +x_60 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_60, 0, x_41); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_mkIdentFrom(x_18, x_19, x_40); +x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; +lean_inc(x_41); x_63 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_63, 0, x_39); +lean_ctor_set(x_63, 0, x_41); lean_ctor_set(x_63, 1, x_62); -x_64 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; -x_65 = l_Lean_Syntax_node5(x_39, x_64, x_58, x_59, x_61, x_36, x_63); -x_66 = 1; -x_67 = lean_usize_add(x_2, x_66); -x_68 = lean_array_uset(x_16, x_2, x_65); -x_2 = x_67; -x_3 = x_68; -x_11 = x_56; +x_64 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__5; +lean_inc(x_41); +x_65 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_65, 0, x_41); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; +x_67 = l_Lean_Syntax_node5(x_41, x_66, x_60, x_61, x_63, x_38, x_65); +x_68 = 1; +x_69 = lean_usize_add(x_2, x_68); +x_70 = lean_array_uset(x_16, x_2, x_67); +x_2 = x_69; +x_3 = x_70; +x_11 = x_58; goto _start; } } else { -uint8_t x_70; -lean_dec(x_33); +uint8_t x_72; +lean_dec(x_35); lean_dec(x_19); lean_dec(x_18); lean_dec(x_16); @@ -2053,32 +2063,32 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_70 = !lean_is_exclusive(x_35); -if (x_70 == 0) +x_72 = !lean_is_exclusive(x_37); +if (x_72 == 0) { -return x_35; +return x_37; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_35, 0); -x_72 = lean_ctor_get(x_35, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_35); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_37, 0); +x_74 = lean_ctor_get(x_37, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_37); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -lean_object* x_74; lean_object* x_75; +lean_object* x_76; lean_object* x_77; lean_dec(x_17); lean_dec(x_14); -x_74 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__9; +x_76 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__9; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -2086,26 +2096,26 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_75 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1(x_74, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_75) == 0) +x_77 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1(x_76, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; lean_object* x_80; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = 1; -x_79 = lean_usize_add(x_2, x_78); -x_80 = lean_array_uset(x_16, x_2, x_76); -x_2 = x_79; -x_3 = x_80; -x_11 = x_77; +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = 1; +x_81 = lean_usize_add(x_2, x_80); +x_82 = lean_array_uset(x_16, x_2, x_78); +x_2 = x_81; +x_3 = x_82; +x_11 = x_79; goto _start; } else { -uint8_t x_82; +uint8_t x_84; lean_dec(x_16); lean_dec(x_10); lean_dec(x_9); @@ -2114,23 +2124,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_82 = !lean_is_exclusive(x_75); -if (x_82 == 0) +x_84 = !lean_is_exclusive(x_77); +if (x_84 == 0) { -return x_75; +return x_77; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_75, 0); -x_84 = lean_ctor_get(x_75, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_75); -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; +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_77, 0); +x_86 = lean_ctor_get(x_77, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_77); +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; } } } @@ -7782,7 +7792,7 @@ return x_141; } else { -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; uint8_t x_153; lean_object* x_154; lean_object* x_155; +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; uint8_t x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; x_142 = lean_ctor_get(x_7, 0); x_143 = lean_ctor_get(x_7, 1); x_144 = lean_ctor_get(x_7, 2); @@ -7794,7 +7804,10 @@ x_149 = lean_ctor_get(x_7, 7); x_150 = lean_ctor_get(x_7, 8); x_151 = lean_ctor_get(x_7, 9); x_152 = lean_ctor_get(x_7, 10); -x_153 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_153 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_154 = lean_ctor_get(x_7, 11); +x_155 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_154); lean_inc(x_152); lean_inc(x_151); lean_inc(x_150); @@ -7807,300 +7820,287 @@ lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); lean_dec(x_7); -x_154 = l_Lean_replaceRef(x_1, x_147); +x_156 = l_Lean_replaceRef(x_1, x_147); lean_dec(x_147); -x_155 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_155, 0, x_142); -lean_ctor_set(x_155, 1, x_143); -lean_ctor_set(x_155, 2, x_144); -lean_ctor_set(x_155, 3, x_145); -lean_ctor_set(x_155, 4, x_146); -lean_ctor_set(x_155, 5, x_154); -lean_ctor_set(x_155, 6, x_148); -lean_ctor_set(x_155, 7, x_149); -lean_ctor_set(x_155, 8, x_150); -lean_ctor_set(x_155, 9, x_151); -lean_ctor_set(x_155, 10, x_152); -lean_ctor_set_uint8(x_155, sizeof(void*)*11, x_153); +x_157 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_157, 0, x_142); +lean_ctor_set(x_157, 1, x_143); +lean_ctor_set(x_157, 2, x_144); +lean_ctor_set(x_157, 3, x_145); +lean_ctor_set(x_157, 4, x_146); +lean_ctor_set(x_157, 5, x_156); +lean_ctor_set(x_157, 6, x_148); +lean_ctor_set(x_157, 7, x_149); +lean_ctor_set(x_157, 8, x_150); +lean_ctor_set(x_157, 9, x_151); +lean_ctor_set(x_157, 10, x_152); +lean_ctor_set(x_157, 11, x_154); +lean_ctor_set_uint8(x_157, sizeof(void*)*12, x_153); +lean_ctor_set_uint8(x_157, sizeof(void*)*12 + 1, x_155); if (x_12 == 0) { -lean_object* x_156; uint8_t x_157; -x_156 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__2; -x_157 = lean_name_eq(x_10, x_156); -if (x_157 == 0) -{ lean_object* x_158; uint8_t x_159; -x_158 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; +x_158 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__2; x_159 = lean_name_eq(x_10, x_158); if (x_159 == 0) { lean_object* x_160; uint8_t x_161; -x_160 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; +x_160 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; x_161 = lean_name_eq(x_10, x_160); if (x_161 == 0) { lean_object* x_162; uint8_t x_163; -x_162 = l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___closed__6; +x_162 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; x_163 = lean_name_eq(x_10, x_162); if (x_163 == 0) { lean_object* x_164; uint8_t x_165; -x_164 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; +x_164 = l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___closed__6; x_165 = lean_name_eq(x_10, x_164); if (x_165 == 0) { lean_object* x_166; uint8_t x_167; -x_166 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; +x_166 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; x_167 = lean_name_eq(x_10, x_166); if (x_167 == 0) { lean_object* x_168; uint8_t x_169; -x_168 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; +x_168 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; x_169 = lean_name_eq(x_10, x_168); if (x_169 == 0) { lean_object* x_170; uint8_t x_171; -x_170 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; +x_170 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; x_171 = lean_name_eq(x_10, x_170); if (x_171 == 0) { lean_object* x_172; uint8_t x_173; -x_172 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; +x_172 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; x_173 = lean_name_eq(x_10, x_172); if (x_173 == 0) { lean_object* x_174; uint8_t x_175; -x_174 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__15; +x_174 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; x_175 = lean_name_eq(x_10, x_174); if (x_175 == 0) { lean_object* x_176; uint8_t x_177; -x_176 = l_Lean_Elab_Term_CollectPatternVars_collect___lambda__13___closed__2; +x_176 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__15; x_177 = lean_name_eq(x_10, x_176); if (x_177 == 0) { lean_object* x_178; uint8_t x_179; -x_178 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__17; +x_178 = l_Lean_Elab_Term_CollectPatternVars_collect___lambda__13___closed__2; x_179 = lean_name_eq(x_10, x_178); if (x_179 == 0) { lean_object* x_180; uint8_t x_181; -x_180 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__19; +x_180 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__17; x_181 = lean_name_eq(x_10, x_180); if (x_181 == 0) { lean_object* x_182; uint8_t x_183; -x_182 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__21; +x_182 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__19; x_183 = lean_name_eq(x_10, x_182); if (x_183 == 0) { lean_object* x_184; uint8_t x_185; -x_184 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__23; +x_184 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__21; x_185 = lean_name_eq(x_10, x_184); if (x_185 == 0) { lean_object* x_186; uint8_t x_187; -x_186 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__25; +x_186 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__23; x_187 = lean_name_eq(x_10, x_186); if (x_187 == 0) { lean_object* x_188; uint8_t x_189; -x_188 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__27; +x_188 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__25; x_189 = lean_name_eq(x_10, x_188); if (x_189 == 0) { lean_object* x_190; uint8_t x_191; -x_190 = l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1___closed__2; +x_190 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__27; x_191 = lean_name_eq(x_10, x_190); -lean_dec(x_10); if (x_191 == 0) { lean_object* x_192; uint8_t x_193; -x_192 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_CollectPatternVars_collect___spec__5___closed__2; -lean_inc(x_1); -x_193 = l_Lean_Syntax_isOfKind(x_1, x_192); +x_192 = l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1___closed__2; +x_193 = lean_name_eq(x_10, x_192); +lean_dec(x_10); if (x_193 == 0) { -lean_object* x_194; lean_object* x_195; +lean_object* x_194; uint8_t x_195; +x_194 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_CollectPatternVars_collect___spec__5___closed__2; +lean_inc(x_1); +x_195 = l_Lean_Syntax_isOfKind(x_1, x_194); +if (x_195 == 0) +{ +lean_object* x_196; lean_object* x_197; lean_dec(x_1); -x_194 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); -lean_closure_set(x_194, 0, x_2); -lean_closure_set(x_194, 1, x_3); -lean_closure_set(x_194, 2, x_4); -lean_closure_set(x_194, 3, x_5); -lean_closure_set(x_194, 4, x_6); -x_195 = l_Lean_Core_withFreshMacroScope___rarg(x_194, x_155, x_8, x_9); -return x_195; +x_196 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); +lean_closure_set(x_196, 0, x_2); +lean_closure_set(x_196, 1, x_3); +lean_closure_set(x_196, 2, x_4); +lean_closure_set(x_196, 3, x_5); +lean_closure_set(x_196, 4, x_6); +x_197 = l_Lean_Core_withFreshMacroScope___rarg(x_196, x_157, x_8, x_9); +return x_197; } else { -lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_196 = lean_unsigned_to_nat(1u); -x_197 = l_Lean_Syntax_getArg(x_1, x_196); -x_198 = l_Lean_Syntax_isNone(x_197); -if (x_198 == 0) -{ -lean_object* x_199; uint8_t x_200; -x_199 = lean_unsigned_to_nat(2u); -lean_inc(x_197); -x_200 = l_Lean_Syntax_matchesNull(x_197, x_199); +lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_198 = lean_unsigned_to_nat(1u); +x_199 = l_Lean_Syntax_getArg(x_1, x_198); +x_200 = l_Lean_Syntax_isNone(x_199); if (x_200 == 0) { -lean_object* x_201; lean_object* x_202; -lean_dec(x_197); +lean_object* x_201; uint8_t x_202; +x_201 = lean_unsigned_to_nat(2u); +lean_inc(x_199); +x_202 = l_Lean_Syntax_matchesNull(x_199, x_201); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; +lean_dec(x_199); lean_dec(x_1); -x_201 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); -lean_closure_set(x_201, 0, x_2); -lean_closure_set(x_201, 1, x_3); -lean_closure_set(x_201, 2, x_4); -lean_closure_set(x_201, 3, x_5); -lean_closure_set(x_201, 4, x_6); -x_202 = l_Lean_Core_withFreshMacroScope___rarg(x_201, x_155, x_8, x_9); -return x_202; +x_203 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); +lean_closure_set(x_203, 0, x_2); +lean_closure_set(x_203, 1, x_3); +lean_closure_set(x_203, 2, x_4); +lean_closure_set(x_203, 3, x_5); +lean_closure_set(x_203, 4, x_6); +x_204 = l_Lean_Core_withFreshMacroScope___rarg(x_203, x_157, x_8, x_9); +return x_204; } else { -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_203 = lean_unsigned_to_nat(0u); -x_204 = l_Lean_Syntax_getArg(x_197, x_203); -lean_dec(x_197); -x_205 = l_Lean_Syntax_getArgs(x_204); -lean_dec(x_204); -x_206 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_206, 0, x_205); -x_207 = lean_box(0); -x_208 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 12, 9); -lean_closure_set(x_208, 0, x_1); -lean_closure_set(x_208, 1, x_192); -lean_closure_set(x_208, 2, x_207); -lean_closure_set(x_208, 3, x_206); -lean_closure_set(x_208, 4, x_2); -lean_closure_set(x_208, 5, x_3); -lean_closure_set(x_208, 6, x_4); -lean_closure_set(x_208, 7, x_5); -lean_closure_set(x_208, 8, x_6); -x_209 = l_Lean_Core_withFreshMacroScope___rarg(x_208, x_155, x_8, x_9); -return x_209; +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; +x_205 = lean_unsigned_to_nat(0u); +x_206 = l_Lean_Syntax_getArg(x_199, x_205); +lean_dec(x_199); +x_207 = l_Lean_Syntax_getArgs(x_206); +lean_dec(x_206); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_209 = lean_box(0); +x_210 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 12, 9); +lean_closure_set(x_210, 0, x_1); +lean_closure_set(x_210, 1, x_194); +lean_closure_set(x_210, 2, x_209); +lean_closure_set(x_210, 3, x_208); +lean_closure_set(x_210, 4, x_2); +lean_closure_set(x_210, 5, x_3); +lean_closure_set(x_210, 6, x_4); +lean_closure_set(x_210, 7, x_5); +lean_closure_set(x_210, 8, x_6); +x_211 = l_Lean_Core_withFreshMacroScope___rarg(x_210, x_157, x_8, x_9); +return x_211; } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_197); -x_210 = lean_box(0); -x_211 = lean_box(0); -x_212 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 12, 9); -lean_closure_set(x_212, 0, x_1); -lean_closure_set(x_212, 1, x_192); -lean_closure_set(x_212, 2, x_211); -lean_closure_set(x_212, 3, x_210); -lean_closure_set(x_212, 4, x_2); -lean_closure_set(x_212, 5, x_3); -lean_closure_set(x_212, 6, x_4); -lean_closure_set(x_212, 7, x_5); -lean_closure_set(x_212, 8, x_6); -x_213 = l_Lean_Core_withFreshMacroScope___rarg(x_212, x_155, x_8, x_9); -return x_213; +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_199); +x_212 = lean_box(0); +x_213 = lean_box(0); +x_214 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 12, 9); +lean_closure_set(x_214, 0, x_1); +lean_closure_set(x_214, 1, x_194); +lean_closure_set(x_214, 2, x_213); +lean_closure_set(x_214, 3, x_212); +lean_closure_set(x_214, 4, x_2); +lean_closure_set(x_214, 5, x_3); +lean_closure_set(x_214, 6, x_4); +lean_closure_set(x_214, 7, x_5); +lean_closure_set(x_214, 8, x_6); +x_215 = l_Lean_Core_withFreshMacroScope___rarg(x_214, x_157, x_8, x_9); +return x_215; } } } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; -x_214 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; +x_216 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_215 = lean_array_get_size(x_214); -x_216 = lean_unsigned_to_nat(0u); -x_217 = lean_nat_dec_lt(x_216, x_215); -if (x_217 == 0) +x_217 = lean_array_get_size(x_216); +x_218 = lean_unsigned_to_nat(0u); +x_219 = lean_nat_dec_lt(x_218, x_217); +if (x_219 == 0) { -lean_object* x_218; lean_object* x_219; -lean_dec(x_215); -x_218 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_218, 0, x_2); -lean_closure_set(x_218, 1, x_3); -lean_closure_set(x_218, 2, x_4); -lean_closure_set(x_218, 3, x_5); -lean_closure_set(x_218, 4, x_6); -lean_closure_set(x_218, 5, x_214); -x_219 = l_Lean_Core_withFreshMacroScope___rarg(x_218, x_155, x_8, x_9); -return x_219; +lean_object* x_220; lean_object* x_221; +lean_dec(x_217); +x_220 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_220, 0, x_2); +lean_closure_set(x_220, 1, x_3); +lean_closure_set(x_220, 2, x_4); +lean_closure_set(x_220, 3, x_5); +lean_closure_set(x_220, 4, x_6); +lean_closure_set(x_220, 5, x_216); +x_221 = l_Lean_Core_withFreshMacroScope___rarg(x_220, x_157, x_8, x_9); +return x_221; } else { -size_t x_220; size_t x_221; uint8_t x_222; -x_220 = 0; -x_221 = lean_usize_of_nat(x_215); -x_222 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_CollectPatternVars_collect___spec__5(x_214, x_220, x_221); -if (x_222 == 0) +size_t x_222; size_t x_223; uint8_t x_224; +x_222 = 0; +x_223 = lean_usize_of_nat(x_217); +x_224 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_CollectPatternVars_collect___spec__5(x_216, x_222, x_223); +if (x_224 == 0) { -lean_object* x_223; lean_object* x_224; -lean_dec(x_215); -x_223 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_223, 0, x_2); -lean_closure_set(x_223, 1, x_3); -lean_closure_set(x_223, 2, x_4); -lean_closure_set(x_223, 3, x_5); -lean_closure_set(x_223, 4, x_6); -lean_closure_set(x_223, 5, x_214); -x_224 = l_Lean_Core_withFreshMacroScope___rarg(x_223, x_155, x_8, x_9); -return x_224; +lean_object* x_225; lean_object* x_226; +lean_dec(x_217); +x_225 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_225, 0, x_2); +lean_closure_set(x_225, 1, x_3); +lean_closure_set(x_225, 2, x_4); +lean_closure_set(x_225, 3, x_5); +lean_closure_set(x_225, 4, x_6); +lean_closure_set(x_225, 5, x_216); +x_226 = l_Lean_Core_withFreshMacroScope___rarg(x_225, x_157, x_8, x_9); +return x_226; } else { -uint8_t x_225; -x_225 = lean_nat_dec_le(x_215, x_215); -lean_dec(x_215); -if (x_225 == 0) +uint8_t x_227; +x_227 = lean_nat_dec_le(x_217, x_217); +lean_dec(x_217); +if (x_227 == 0) { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec(x_214); -x_226 = l_Lean_Elab_Term_CollectPatternVars_State_vars___default___closed__1; -x_227 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_227, 0, x_2); -lean_closure_set(x_227, 1, x_3); -lean_closure_set(x_227, 2, x_4); -lean_closure_set(x_227, 3, x_5); -lean_closure_set(x_227, 4, x_6); -lean_closure_set(x_227, 5, x_226); -x_228 = l_Lean_Core_withFreshMacroScope___rarg(x_227, x_155, x_8, x_9); -return x_228; +lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_216); +x_228 = l_Lean_Elab_Term_CollectPatternVars_State_vars___default___closed__1; +x_229 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_229, 0, x_2); +lean_closure_set(x_229, 1, x_3); +lean_closure_set(x_229, 2, x_4); +lean_closure_set(x_229, 3, x_5); +lean_closure_set(x_229, 4, x_6); +lean_closure_set(x_229, 5, x_228); +x_230 = l_Lean_Core_withFreshMacroScope___rarg(x_229, x_157, x_8, x_9); +return x_230; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_229 = l_Lean_Elab_Term_CollectPatternVars_State_vars___default___closed__1; -x_230 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_CollectPatternVars_collect___spec__6(x_214, x_220, x_221, x_229); -lean_dec(x_214); -x_231 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_231, 0, x_2); -lean_closure_set(x_231, 1, x_3); -lean_closure_set(x_231, 2, x_4); -lean_closure_set(x_231, 3, x_5); -lean_closure_set(x_231, 4, x_6); -lean_closure_set(x_231, 5, x_230); -x_232 = l_Lean_Core_withFreshMacroScope___rarg(x_231, x_155, x_8, x_9); -return x_232; -} -} -} -} -} -else -{ -lean_object* x_233; lean_object* x_234; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_233 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); -lean_closure_set(x_233, 0, x_1); -x_234 = l_Lean_Core_withFreshMacroScope___rarg(x_233, x_155, x_8, x_9); +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_231 = l_Lean_Elab_Term_CollectPatternVars_State_vars___default___closed__1; +x_232 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_CollectPatternVars_collect___spec__6(x_216, x_222, x_223, x_231); +lean_dec(x_216); +x_233 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_233, 0, x_2); +lean_closure_set(x_233, 1, x_3); +lean_closure_set(x_233, 2, x_4); +lean_closure_set(x_233, 3, x_5); +lean_closure_set(x_233, 4, x_6); +lean_closure_set(x_233, 5, x_232); +x_234 = l_Lean_Core_withFreshMacroScope___rarg(x_233, x_157, x_8, x_9); return x_234; } } +} +} +} else { lean_object* x_235; lean_object* x_236; @@ -8112,7 +8112,7 @@ lean_dec(x_3); lean_dec(x_2); x_235 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_235, 0, x_1); -x_236 = l_Lean_Core_withFreshMacroScope___rarg(x_235, x_155, x_8, x_9); +x_236 = l_Lean_Core_withFreshMacroScope___rarg(x_235, x_157, x_8, x_9); return x_236; } } @@ -8127,7 +8127,7 @@ lean_dec(x_3); lean_dec(x_2); x_237 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_237, 0, x_1); -x_238 = l_Lean_Core_withFreshMacroScope___rarg(x_237, x_155, x_8, x_9); +x_238 = l_Lean_Core_withFreshMacroScope___rarg(x_237, x_157, x_8, x_9); return x_238; } } @@ -8142,7 +8142,7 @@ lean_dec(x_3); lean_dec(x_2); x_239 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_239, 0, x_1); -x_240 = l_Lean_Core_withFreshMacroScope___rarg(x_239, x_155, x_8, x_9); +x_240 = l_Lean_Core_withFreshMacroScope___rarg(x_239, x_157, x_8, x_9); return x_240; } } @@ -8157,7 +8157,7 @@ lean_dec(x_3); lean_dec(x_2); x_241 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_241, 0, x_1); -x_242 = l_Lean_Core_withFreshMacroScope___rarg(x_241, x_155, x_8, x_9); +x_242 = l_Lean_Core_withFreshMacroScope___rarg(x_241, x_157, x_8, x_9); return x_242; } } @@ -8172,7 +8172,7 @@ lean_dec(x_3); lean_dec(x_2); x_243 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_243, 0, x_1); -x_244 = l_Lean_Core_withFreshMacroScope___rarg(x_243, x_155, x_8, x_9); +x_244 = l_Lean_Core_withFreshMacroScope___rarg(x_243, x_157, x_8, x_9); return x_244; } } @@ -8187,113 +8187,113 @@ lean_dec(x_3); lean_dec(x_2); x_245 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); lean_closure_set(x_245, 0, x_1); -x_246 = l_Lean_Core_withFreshMacroScope___rarg(x_245, x_155, x_8, x_9); +x_246 = l_Lean_Core_withFreshMacroScope___rarg(x_245, x_157, x_8, x_9); return x_246; } } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -lean_dec(x_10); -x_247 = lean_unsigned_to_nat(2u); -x_248 = l_Lean_Syntax_getArg(x_1, x_247); -x_249 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7), 10, 7); -lean_closure_set(x_249, 0, x_248); -lean_closure_set(x_249, 1, x_2); -lean_closure_set(x_249, 2, x_3); -lean_closure_set(x_249, 3, x_4); -lean_closure_set(x_249, 4, x_5); -lean_closure_set(x_249, 5, x_6); -lean_closure_set(x_249, 6, x_1); -x_250 = l_Lean_Core_withFreshMacroScope___rarg(x_249, x_155, x_8, x_9); -return x_250; -} -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_10); -x_251 = lean_unsigned_to_nat(1u); -x_252 = l_Lean_Syntax_getArg(x_1, x_251); -x_253 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9), 10, 7); -lean_closure_set(x_253, 0, x_252); -lean_closure_set(x_253, 1, x_3); -lean_closure_set(x_253, 2, x_4); -lean_closure_set(x_253, 3, x_5); -lean_closure_set(x_253, 4, x_6); -lean_closure_set(x_253, 5, x_2); -lean_closure_set(x_253, 6, x_1); -x_254 = l_Lean_Core_withFreshMacroScope___rarg(x_253, x_155, x_8, x_9); -return x_254; -} -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_10); -x_255 = lean_unsigned_to_nat(0u); -x_256 = l_Lean_Syntax_getArg(x_1, x_255); -x_257 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__11), 11, 8); -lean_closure_set(x_257, 0, x_256); -lean_closure_set(x_257, 1, x_2); -lean_closure_set(x_257, 2, x_3); -lean_closure_set(x_257, 3, x_4); -lean_closure_set(x_257, 4, x_5); -lean_closure_set(x_257, 5, x_6); -lean_closure_set(x_257, 6, x_1); -lean_closure_set(x_257, 7, x_156); -x_258 = l_Lean_Core_withFreshMacroScope___rarg(x_257, x_155, x_8, x_9); -return x_258; -} -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_10); -x_259 = lean_unsigned_to_nat(0u); -x_260 = l_Lean_Syntax_getArg(x_1, x_259); -lean_dec(x_1); -x_261 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); -lean_closure_set(x_261, 0, x_260); -lean_closure_set(x_261, 1, x_2); -lean_closure_set(x_261, 2, x_3); -lean_closure_set(x_261, 3, x_4); -lean_closure_set(x_261, 4, x_5); -lean_closure_set(x_261, 5, x_6); -x_262 = l_Lean_Core_withFreshMacroScope___rarg(x_261, x_155, x_8, x_9); -return x_262; -} -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -lean_dec(x_10); -x_263 = lean_unsigned_to_nat(1u); -x_264 = l_Lean_Syntax_getArg(x_1, x_263); -x_265 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__12), 10, 7); -lean_closure_set(x_265, 0, x_264); -lean_closure_set(x_265, 1, x_2); -lean_closure_set(x_265, 2, x_3); -lean_closure_set(x_265, 3, x_4); -lean_closure_set(x_265, 4, x_5); -lean_closure_set(x_265, 5, x_6); -lean_closure_set(x_265, 6, x_1); -x_266 = l_Lean_Core_withFreshMacroScope___rarg(x_265, x_155, x_8, x_9); -return x_266; -} -} -else -{ -lean_object* x_267; lean_object* x_268; +lean_object* x_247; lean_object* x_248; lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_267 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__13___boxed), 4, 1); -lean_closure_set(x_267, 0, x_1); -x_268 = l_Lean_Core_withFreshMacroScope___rarg(x_267, x_155, x_8, x_9); +x_247 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); +lean_closure_set(x_247, 0, x_1); +x_248 = l_Lean_Core_withFreshMacroScope___rarg(x_247, x_157, x_8, x_9); +return x_248; +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_10); +x_249 = lean_unsigned_to_nat(2u); +x_250 = l_Lean_Syntax_getArg(x_1, x_249); +x_251 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7), 10, 7); +lean_closure_set(x_251, 0, x_250); +lean_closure_set(x_251, 1, x_2); +lean_closure_set(x_251, 2, x_3); +lean_closure_set(x_251, 3, x_4); +lean_closure_set(x_251, 4, x_5); +lean_closure_set(x_251, 5, x_6); +lean_closure_set(x_251, 6, x_1); +x_252 = l_Lean_Core_withFreshMacroScope___rarg(x_251, x_157, x_8, x_9); +return x_252; +} +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec(x_10); +x_253 = lean_unsigned_to_nat(1u); +x_254 = l_Lean_Syntax_getArg(x_1, x_253); +x_255 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9), 10, 7); +lean_closure_set(x_255, 0, x_254); +lean_closure_set(x_255, 1, x_3); +lean_closure_set(x_255, 2, x_4); +lean_closure_set(x_255, 3, x_5); +lean_closure_set(x_255, 4, x_6); +lean_closure_set(x_255, 5, x_2); +lean_closure_set(x_255, 6, x_1); +x_256 = l_Lean_Core_withFreshMacroScope___rarg(x_255, x_157, x_8, x_9); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_dec(x_10); +x_257 = lean_unsigned_to_nat(0u); +x_258 = l_Lean_Syntax_getArg(x_1, x_257); +x_259 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__11), 11, 8); +lean_closure_set(x_259, 0, x_258); +lean_closure_set(x_259, 1, x_2); +lean_closure_set(x_259, 2, x_3); +lean_closure_set(x_259, 3, x_4); +lean_closure_set(x_259, 4, x_5); +lean_closure_set(x_259, 5, x_6); +lean_closure_set(x_259, 6, x_1); +lean_closure_set(x_259, 7, x_158); +x_260 = l_Lean_Core_withFreshMacroScope___rarg(x_259, x_157, x_8, x_9); +return x_260; +} +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +lean_dec(x_10); +x_261 = lean_unsigned_to_nat(0u); +x_262 = l_Lean_Syntax_getArg(x_1, x_261); +lean_dec(x_1); +x_263 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); +lean_closure_set(x_263, 0, x_262); +lean_closure_set(x_263, 1, x_2); +lean_closure_set(x_263, 2, x_3); +lean_closure_set(x_263, 3, x_4); +lean_closure_set(x_263, 4, x_5); +lean_closure_set(x_263, 5, x_6); +x_264 = l_Lean_Core_withFreshMacroScope___rarg(x_263, x_157, x_8, x_9); +return x_264; +} +} +else +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_10); +x_265 = lean_unsigned_to_nat(1u); +x_266 = l_Lean_Syntax_getArg(x_1, x_265); +x_267 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__12), 10, 7); +lean_closure_set(x_267, 0, x_266); +lean_closure_set(x_267, 1, x_2); +lean_closure_set(x_267, 2, x_3); +lean_closure_set(x_267, 3, x_4); +lean_closure_set(x_267, 4, x_5); +lean_closure_set(x_267, 5, x_6); +lean_closure_set(x_267, 6, x_1); +x_268 = l_Lean_Core_withFreshMacroScope___rarg(x_267, x_157, x_8, x_9); return x_268; } } @@ -8308,7 +8308,7 @@ lean_dec(x_3); lean_dec(x_2); x_269 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__13___boxed), 4, 1); lean_closure_set(x_269, 0, x_1); -x_270 = l_Lean_Core_withFreshMacroScope___rarg(x_269, x_155, x_8, x_9); +x_270 = l_Lean_Core_withFreshMacroScope___rarg(x_269, x_157, x_8, x_9); return x_270; } } @@ -8321,44 +8321,44 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_271 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); +x_271 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__13___boxed), 4, 1); lean_closure_set(x_271, 0, x_1); -x_272 = l_Lean_Core_withFreshMacroScope___rarg(x_271, x_155, x_8, x_9); +x_272 = l_Lean_Core_withFreshMacroScope___rarg(x_271, x_157, x_8, x_9); return x_272; } } else { -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_object* x_273; lean_object* x_274; lean_dec(x_10); -x_273 = lean_unsigned_to_nat(1u); -x_274 = l_Lean_Syntax_getArg(x_1, x_273); -x_275 = l_Lean_Syntax_getArgs(x_274); -lean_dec(x_274); -x_276 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__14___boxed), 10, 7); -lean_closure_set(x_276, 0, x_275); -lean_closure_set(x_276, 1, x_2); -lean_closure_set(x_276, 2, x_3); -lean_closure_set(x_276, 3, x_4); -lean_closure_set(x_276, 4, x_5); -lean_closure_set(x_276, 5, x_6); -lean_closure_set(x_276, 6, x_1); -x_277 = l_Lean_Core_withFreshMacroScope___rarg(x_276, x_155, x_8, x_9); -return x_277; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_273 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6___boxed), 4, 1); +lean_closure_set(x_273, 0, x_1); +x_274 = l_Lean_Core_withFreshMacroScope___rarg(x_273, x_157, x_8, x_9); +return x_274; } } else { -lean_object* x_278; lean_object* x_279; +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_dec(x_10); -x_278 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); -lean_closure_set(x_278, 0, x_1); +x_275 = lean_unsigned_to_nat(1u); +x_276 = l_Lean_Syntax_getArg(x_1, x_275); +x_277 = l_Lean_Syntax_getArgs(x_276); +lean_dec(x_276); +x_278 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__14___boxed), 10, 7); +lean_closure_set(x_278, 0, x_277); lean_closure_set(x_278, 1, x_2); lean_closure_set(x_278, 2, x_3); lean_closure_set(x_278, 3, x_4); lean_closure_set(x_278, 4, x_5); lean_closure_set(x_278, 5, x_6); -x_279 = l_Lean_Core_withFreshMacroScope___rarg(x_278, x_155, x_8, x_9); +lean_closure_set(x_278, 6, x_1); +x_279 = l_Lean_Core_withFreshMacroScope___rarg(x_278, x_157, x_8, x_9); return x_279; } } @@ -8366,17 +8366,32 @@ else { lean_object* x_280; lean_object* x_281; lean_dec(x_10); -x_280 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); +x_280 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); lean_closure_set(x_280, 0, x_1); lean_closure_set(x_280, 1, x_2); lean_closure_set(x_280, 2, x_3); lean_closure_set(x_280, 3, x_4); lean_closure_set(x_280, 4, x_5); lean_closure_set(x_280, 5, x_6); -x_281 = l_Lean_Core_withFreshMacroScope___rarg(x_280, x_155, x_8, x_9); +x_281 = l_Lean_Core_withFreshMacroScope___rarg(x_280, x_157, x_8, x_9); return x_281; } } +else +{ +lean_object* x_282; lean_object* x_283; +lean_dec(x_10); +x_282 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); +lean_closure_set(x_282, 0, x_1); +lean_closure_set(x_282, 1, x_2); +lean_closure_set(x_282, 2, x_3); +lean_closure_set(x_282, 3, x_4); +lean_closure_set(x_282, 4, x_5); +lean_closure_set(x_282, 5, x_6); +x_283 = l_Lean_Core_withFreshMacroScope___rarg(x_282, x_157, x_8, x_9); +return x_283; +} +} } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtor(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) { @@ -10179,7 +10194,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -10191,7 +10206,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -10204,24 +10222,26 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); -lean_dec(x_28); -return x_29; +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___spec__1(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); +lean_dec(x_30); +return x_31; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c index 4f3c3d0415..3e30469eea 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c @@ -32,6 +32,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_levelMVarToParamPreDecls___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_addNonRec(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileNonRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__15; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_fixLevelParams___spec__1(lean_object*, lean_object*, size_t, size_t); @@ -3186,7 +3187,7 @@ return x_37; } else { -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_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; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; x_38 = lean_ctor_get(x_4, 0); x_39 = lean_ctor_get(x_4, 1); x_40 = lean_ctor_get(x_4, 2); @@ -3198,7 +3199,10 @@ x_45 = lean_ctor_get(x_4, 7); x_46 = lean_ctor_get(x_4, 8); x_47 = lean_ctor_get(x_4, 9); x_48 = lean_ctor_get(x_4, 10); -x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_50 = lean_ctor_get(x_4, 11); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_50); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); @@ -3211,51 +3215,53 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_4); -x_50 = l_Lean_replaceRef(x_7, x_43); +x_52 = l_Lean_replaceRef(x_7, x_43); lean_dec(x_43); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_40); -lean_ctor_set(x_51, 3, x_41); -lean_ctor_set(x_51, 4, x_42); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_44); -lean_ctor_set(x_51, 7, x_45); -lean_ctor_set(x_51, 8, x_46); -lean_ctor_set(x_51, 9, x_47); -lean_ctor_set(x_51, 10, x_48); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_49); +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_38); +lean_ctor_set(x_53, 1, x_39); +lean_ctor_set(x_53, 2, x_40); +lean_ctor_set(x_53, 3, x_41); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set(x_53, 5, x_52); +lean_ctor_set(x_53, 6, x_44); +lean_ctor_set(x_53, 7, x_45); +lean_ctor_set(x_53, 8, x_46); +lean_ctor_set(x_53, 9, x_47); +lean_ctor_set(x_53, 10, x_48); +lean_ctor_set(x_53, 11, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_51); lean_inc(x_11); -x_52 = l_Lean_Meta_abstractNestedProofs(x_11, x_13, x_2, x_3, x_51, x_5, x_6); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_abstractNestedProofs(x_11, x_13, x_2, x_3, x_53, x_5, x_6); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -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_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; } else { - lean_dec_ref(x_52); - x_55 = lean_box(0); + lean_dec_ref(x_54); + x_57 = lean_box(0); } -lean_ctor_set(x_1, 5, x_53); -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1, 5, x_55); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_55; + x_58 = x_57; } -lean_ctor_set(x_56, 0, x_1); -lean_ctor_set(x_56, 1, x_54); -return x_56; +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_56); +return x_58; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_free_object(x_1); lean_dec(x_14); lean_dec(x_12); @@ -3263,56 +3269,59 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_59 = x_52; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; } else { - lean_dec_ref(x_52); - x_59 = lean_box(0); + lean_dec_ref(x_54); + x_61 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); } else { - x_60 = x_59; + x_62 = x_61; } -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } } else { -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; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +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; uint8_t x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_1); -x_61 = lean_ctor_get(x_4, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_4, 1); -lean_inc(x_62); -x_63 = lean_ctor_get(x_4, 2); +x_63 = lean_ctor_get(x_4, 0); lean_inc(x_63); -x_64 = lean_ctor_get(x_4, 3); +x_64 = lean_ctor_get(x_4, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_4, 4); +x_65 = lean_ctor_get(x_4, 2); lean_inc(x_65); -x_66 = lean_ctor_get(x_4, 5); +x_66 = lean_ctor_get(x_4, 3); lean_inc(x_66); -x_67 = lean_ctor_get(x_4, 6); +x_67 = lean_ctor_get(x_4, 4); lean_inc(x_67); -x_68 = lean_ctor_get(x_4, 7); +x_68 = lean_ctor_get(x_4, 5); lean_inc(x_68); -x_69 = lean_ctor_get(x_4, 8); +x_69 = lean_ctor_get(x_4, 6); lean_inc(x_69); -x_70 = lean_ctor_get(x_4, 9); +x_70 = lean_ctor_get(x_4, 7); lean_inc(x_70); -x_71 = lean_ctor_get(x_4, 10); +x_71 = lean_ctor_get(x_4, 8); lean_inc(x_71); -x_72 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_72 = lean_ctor_get(x_4, 9); +lean_inc(x_72); +x_73 = lean_ctor_get(x_4, 10); +lean_inc(x_73); +x_74 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_75 = lean_ctor_get(x_4, 11); +lean_inc(x_75); +x_76 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -3325,100 +3334,103 @@ if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 8); lean_ctor_release(x_4, 9); lean_ctor_release(x_4, 10); - x_73 = x_4; + lean_ctor_release(x_4, 11); + x_77 = x_4; } else { lean_dec_ref(x_4); - x_73 = lean_box(0); + x_77 = lean_box(0); } -x_74 = l_Lean_replaceRef(x_7, x_66); -lean_dec(x_66); -if (lean_is_scalar(x_73)) { - x_75 = lean_alloc_ctor(0, 11, 1); +x_78 = l_Lean_replaceRef(x_7, x_68); +lean_dec(x_68); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 12, 2); } else { - x_75 = x_73; + x_79 = x_77; } -lean_ctor_set(x_75, 0, x_61); -lean_ctor_set(x_75, 1, x_62); -lean_ctor_set(x_75, 2, x_63); -lean_ctor_set(x_75, 3, x_64); -lean_ctor_set(x_75, 4, x_65); -lean_ctor_set(x_75, 5, x_74); -lean_ctor_set(x_75, 6, x_67); -lean_ctor_set(x_75, 7, x_68); -lean_ctor_set(x_75, 8, x_69); -lean_ctor_set(x_75, 9, x_70); -lean_ctor_set(x_75, 10, x_71); -lean_ctor_set_uint8(x_75, sizeof(void*)*11, x_72); +lean_ctor_set(x_79, 0, x_63); +lean_ctor_set(x_79, 1, x_64); +lean_ctor_set(x_79, 2, x_65); +lean_ctor_set(x_79, 3, x_66); +lean_ctor_set(x_79, 4, x_67); +lean_ctor_set(x_79, 5, x_78); +lean_ctor_set(x_79, 6, x_69); +lean_ctor_set(x_79, 7, x_70); +lean_ctor_set(x_79, 8, x_71); +lean_ctor_set(x_79, 9, x_72); +lean_ctor_set(x_79, 10, x_73); +lean_ctor_set(x_79, 11, x_75); +lean_ctor_set_uint8(x_79, sizeof(void*)*12, x_74); +lean_ctor_set_uint8(x_79, sizeof(void*)*12 + 1, x_76); lean_inc(x_11); -x_76 = l_Lean_Meta_abstractNestedProofs(x_11, x_13, x_2, x_3, x_75, x_5, x_6); -if (lean_obj_tag(x_76) == 0) +x_80 = l_Lean_Meta_abstractNestedProofs(x_11, x_13, x_2, x_3, x_79, x_5, x_6); +if (lean_obj_tag(x_80) == 0) { -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_76, 0); -lean_inc(x_77); -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; -} else { - lean_dec_ref(x_76); - x_79 = lean_box(0); -} -x_80 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_80, 0, x_7); -lean_ctor_set(x_80, 1, x_9); -lean_ctor_set(x_80, 2, x_10); -lean_ctor_set(x_80, 3, x_11); -lean_ctor_set(x_80, 4, x_12); -lean_ctor_set(x_80, 5, x_77); -lean_ctor_set(x_80, 6, x_14); -lean_ctor_set_uint8(x_80, sizeof(void*)*7, x_8); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -x_82 = lean_ctor_get(x_76, 0); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_76, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_84 = x_76; +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_83 = x_80; } else { - lean_dec_ref(x_76); - x_84 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +x_84 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_84, 0, x_7); +lean_ctor_set(x_84, 1, x_9); +lean_ctor_set(x_84, 2, x_10); +lean_ctor_set(x_84, 3, x_11); +lean_ctor_set(x_84, 4, x_12); +lean_ctor_set(x_84, 5, x_81); +lean_ctor_set(x_84, 6, x_14); +lean_ctor_set_uint8(x_84, sizeof(void*)*7, x_8); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_85 = x_84; + x_85 = x_83; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); return x_85; } +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_80, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_88 = x_80; +} else { + lean_dec_ref(x_80); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); +} else { + x_89 = 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_86; +lean_object* x_90; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3430,15 +3442,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_1); -lean_ctor_set(x_86, 1, x_6); -return x_86; +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_1); +lean_ctor_set(x_90, 1, x_6); +return x_90; } } else { -lean_object* x_87; +lean_object* x_91; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3450,10 +3462,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_1); -lean_ctor_set(x_87, 1, x_6); -return x_87; +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_1); +lean_ctor_set(x_91, 1, x_6); +return x_91; } } } @@ -3492,7 +3504,7 @@ return x_19; } 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; 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_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; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_20 = lean_ctor_get(x_4, 0); x_21 = lean_ctor_get(x_4, 1); x_22 = lean_ctor_get(x_4, 2); @@ -3504,7 +3516,10 @@ x_27 = lean_ctor_get(x_4, 7); x_28 = lean_ctor_get(x_4, 8); x_29 = lean_ctor_get(x_4, 9); x_30 = lean_ctor_get(x_4, 10); -x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_32 = lean_ctor_get(x_4, 11); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -3517,23 +3532,25 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_4); -x_32 = l_Lean_replaceRef(x_7, x_25); +x_34 = l_Lean_replaceRef(x_7, x_25); lean_dec(x_25); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); -x_34 = l_Lean_addDecl(x_15, x_33, x_5, x_6); -return x_34; +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_21); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_23); +lean_ctor_set(x_35, 4, x_24); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_33); +x_36 = l_Lean_addDecl(x_15, x_35, x_5, x_6); +return x_36; } } } @@ -3642,24 +3659,28 @@ if (x_14 == 0) { lean_object* x_15; uint8_t x_16; x_15 = lean_ctor_get(x_9, 0); -x_16 = l_Lean_Exception_isRuntime(x_15); +x_16 = l_Lean_Exception_isInterrupt(x_15); if (x_16 == 0) { uint8_t x_17; -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -lean_dec(x_2); +x_17 = l_Lean_Exception_isRuntime(x_15); if (x_17 == 0) { +uint8_t x_18; +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +lean_dec(x_2); +if (x_18 == 0) +{ return x_9; } else { -uint8_t x_18; lean_object* x_19; +uint8_t x_19; lean_object* x_20; lean_dec(x_15); -x_18 = 0; -x_19 = lean_box(x_18); +x_19 = 0; +x_20 = lean_box(x_19); lean_ctor_set_tag(x_9, 0); -lean_ctor_set(x_9, 0, x_19); +lean_ctor_set(x_9, 0, x_20); return x_9; } } @@ -3671,46 +3692,66 @@ return x_9; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_9, 0); -x_21 = lean_ctor_get(x_9, 1); +lean_dec(x_2); +return x_9; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_9); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) -{ -uint8_t x_23; -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -lean_dec(x_2); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -else +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) { -uint8_t x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_20); -x_25 = 0; -x_26 = lean_box(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_21); -return x_27; -} -} -else -{ -lean_object* x_28; +uint8_t x_25; +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); lean_dec(x_2); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_21); -return x_28; +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_22); +return x_26; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +x_27 = 0; +x_28 = lean_box(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_22); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_2); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_22); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_2); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_21); +lean_ctor_set(x_31, 1, x_22); +return x_31; } } } @@ -6835,7 +6876,7 @@ return x_87; } else { -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; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +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; uint8_t x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; x_88 = lean_ctor_get(x_9, 0); x_89 = lean_ctor_get(x_9, 1); x_90 = lean_ctor_get(x_9, 2); @@ -6847,7 +6888,10 @@ x_95 = lean_ctor_get(x_9, 7); x_96 = lean_ctor_get(x_9, 8); x_97 = lean_ctor_get(x_9, 9); x_98 = lean_ctor_get(x_9, 10); -x_99 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_99 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_100 = lean_ctor_get(x_9, 11); +x_101 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_100); lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); @@ -6860,254 +6904,256 @@ lean_inc(x_90); lean_inc(x_89); lean_inc(x_88); lean_dec(x_9); -x_100 = l_Lean_replaceRef(x_12, x_93); +x_102 = l_Lean_replaceRef(x_12, x_93); lean_dec(x_93); lean_dec(x_12); -x_101 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_101, 0, x_88); -lean_ctor_set(x_101, 1, x_89); -lean_ctor_set(x_101, 2, x_90); -lean_ctor_set(x_101, 3, x_91); -lean_ctor_set(x_101, 4, x_92); -lean_ctor_set(x_101, 5, x_100); -lean_ctor_set(x_101, 6, x_94); -lean_ctor_set(x_101, 7, x_95); -lean_ctor_set(x_101, 8, x_96); -lean_ctor_set(x_101, 9, x_97); -lean_ctor_set(x_101, 10, x_98); -lean_ctor_set_uint8(x_101, sizeof(void*)*11, x_99); +x_103 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_103, 0, x_88); +lean_ctor_set(x_103, 1, x_89); +lean_ctor_set(x_103, 2, x_90); +lean_ctor_set(x_103, 3, x_91); +lean_ctor_set(x_103, 4, x_92); +lean_ctor_set(x_103, 5, x_102); +lean_ctor_set(x_103, 6, x_94); +lean_ctor_set(x_103, 7, x_95); +lean_ctor_set(x_103, 8, x_96); +lean_ctor_set(x_103, 9, x_97); +lean_ctor_set(x_103, 10, x_98); +lean_ctor_set(x_103, 11, x_100); +lean_ctor_set_uint8(x_103, sizeof(void*)*12, x_99); +lean_ctor_set_uint8(x_103, sizeof(void*)*12 + 1, x_101); lean_inc(x_10); -lean_inc(x_101); +lean_inc(x_103); lean_inc(x_8); lean_inc(x_7); -x_102 = l_Lean_Elab_abstractNestedProofs(x_1, x_7, x_8, x_101, x_10, x_11); -if (lean_obj_tag(x_102) == 0) +x_104 = l_Lean_Elab_abstractNestedProofs(x_1, x_7, x_8, x_103, x_10, x_11); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_103; uint8_t x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get_uint8(x_103, sizeof(void*)*7); -x_105 = lean_box(x_104); -switch (lean_obj_tag(x_105)) { +lean_object* x_105; uint8_t x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get_uint8(x_105, sizeof(void*)*7); +x_107 = lean_box(x_106); +switch (lean_obj_tag(x_107)) { case 1: { -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; -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -lean_dec(x_102); -x_107 = lean_ctor_get(x_103, 3); -lean_inc(x_107); -x_108 = lean_ctor_get(x_103, 1); +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_108 = lean_ctor_get(x_104, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_103, 4); +lean_dec(x_104); +x_109 = lean_ctor_get(x_105, 3); lean_inc(x_109); -x_110 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_110, 0, x_107); -lean_ctor_set(x_110, 1, x_108); -lean_ctor_set(x_110, 2, x_109); -x_111 = lean_ctor_get(x_103, 5); +x_110 = lean_ctor_get(x_105, 1); +lean_inc(x_110); +x_111 = lean_ctor_get(x_105, 4); lean_inc(x_111); x_112 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -lean_ctor_set(x_112, 2, x_3); -x_113 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_113, 0, x_112); -x_114 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_113, x_5, x_6, x_7, x_8, x_101, x_10, x_106); -return x_114; +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_110); +lean_ctor_set(x_112, 2, x_111); +x_113 = lean_ctor_get(x_105, 5); +lean_inc(x_113); +x_114 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +lean_ctor_set(x_114, 2, x_3); +x_115 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_115, 0, x_114); +x_116 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_115, x_5, x_6, x_7, x_8, x_103, x_10, x_108); +return x_116; } case 3: { -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; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_115 = lean_ctor_get(x_102, 1); -lean_inc(x_115); -lean_dec(x_102); -x_116 = lean_ctor_get(x_103, 3); -lean_inc(x_116); -x_117 = lean_ctor_get(x_103, 1); +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; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_117 = lean_ctor_get(x_104, 1); lean_inc(x_117); -x_118 = lean_ctor_get(x_103, 4); +lean_dec(x_104); +x_118 = lean_ctor_get(x_105, 3); lean_inc(x_118); -x_119 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -lean_ctor_set(x_119, 2, x_118); -x_120 = lean_ctor_get(x_103, 5); +x_119 = lean_ctor_get(x_105, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_105, 4); lean_inc(x_120); -x_121 = lean_ctor_get(x_103, 2); -lean_inc(x_121); -x_122 = lean_ctor_get_uint8(x_121, sizeof(void*)*2 + 3); -lean_dec(x_121); -x_123 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_123, 0, x_119); -lean_ctor_set(x_123, 1, x_120); -lean_ctor_set(x_123, 2, x_3); -lean_ctor_set_uint8(x_123, sizeof(void*)*3, x_122); -x_124 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_124, 0, x_123); -x_125 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_124, x_5, x_6, x_7, x_8, x_101, x_10, x_115); -return x_125; +x_121 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +lean_ctor_set(x_121, 2, x_120); +x_122 = lean_ctor_get(x_105, 5); +lean_inc(x_122); +x_123 = lean_ctor_get(x_105, 2); +lean_inc(x_123); +x_124 = lean_ctor_get_uint8(x_123, sizeof(void*)*2 + 3); +lean_dec(x_123); +x_125 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_125, 0, x_121); +lean_ctor_set(x_125, 1, x_122); +lean_ctor_set(x_125, 2, x_3); +lean_ctor_set_uint8(x_125, sizeof(void*)*3, x_124); +x_126 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_126, 0, x_125); +x_127 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_126, x_5, x_6, x_7, x_8, x_103, x_10, x_117); +return x_127; } case 4: { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_126 = lean_ctor_get(x_102, 1); -lean_inc(x_126); -lean_dec(x_102); -x_127 = lean_ctor_get(x_103, 3); -lean_inc(x_127); -x_128 = lean_ctor_get(x_103, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_128 = lean_ctor_get(x_104, 1); lean_inc(x_128); -x_129 = lean_ctor_get(x_103, 4); +lean_dec(x_104); +x_129 = lean_ctor_get(x_105, 3); lean_inc(x_129); -x_130 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -lean_ctor_set(x_130, 2, x_129); -x_131 = lean_ctor_get(x_103, 2); +x_130 = lean_ctor_get(x_105, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_105, 4); lean_inc(x_131); -x_132 = lean_ctor_get_uint8(x_131, sizeof(void*)*2 + 3); -lean_dec(x_131); -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; -x_133 = lean_ctor_get(x_103, 5); +x_132 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +lean_ctor_set(x_132, 2, x_131); +x_133 = lean_ctor_get(x_105, 2); lean_inc(x_133); -x_134 = lean_box(1); -x_135 = 1; -x_136 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_136, 0, x_130); -lean_ctor_set(x_136, 1, x_133); -lean_ctor_set(x_136, 2, x_134); -lean_ctor_set(x_136, 3, x_3); -lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_135); -x_137 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_137, 0, x_136); -x_138 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_137, x_5, x_6, x_7, x_8, x_101, x_10, x_126); -return x_138; +x_134 = lean_ctor_get_uint8(x_133, sizeof(void*)*2 + 3); +lean_dec(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_135 = lean_ctor_get(x_105, 5); +lean_inc(x_135); +x_136 = lean_box(1); +x_137 = 1; +x_138 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_138, 0, x_132); +lean_ctor_set(x_138, 1, x_135); +lean_ctor_set(x_138, 2, x_136); +lean_ctor_set(x_138, 3, x_3); +lean_ctor_set_uint8(x_138, sizeof(void*)*4, x_137); +x_139 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_139, 0, x_138); +x_140 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_139, x_5, x_6, x_7, x_8, x_103, x_10, x_128); +return x_140; } else { -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_103, 5); -lean_inc(x_139); -x_140 = lean_box(1); -x_141 = 0; -x_142 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_142, 0, x_130); -lean_ctor_set(x_142, 1, x_139); -lean_ctor_set(x_142, 2, x_140); -lean_ctor_set(x_142, 3, x_3); -lean_ctor_set_uint8(x_142, sizeof(void*)*4, x_141); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_142); -x_144 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_143, x_5, x_6, x_7, x_8, x_101, x_10, x_126); -return x_144; +lean_object* x_141; lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_141 = lean_ctor_get(x_105, 5); +lean_inc(x_141); +x_142 = lean_box(1); +x_143 = 0; +x_144 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_144, 0, x_132); +lean_ctor_set(x_144, 1, x_141); +lean_ctor_set(x_144, 2, x_142); +lean_ctor_set(x_144, 3, x_3); +lean_ctor_set_uint8(x_144, sizeof(void*)*4, x_143); +x_145 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_145, 0, x_144); +x_146 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_145, x_5, x_6, x_7, x_8, x_103, x_10, x_128); +return x_146; } } default: { -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; uint32_t x_156; uint32_t x_157; uint32_t x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; -lean_dec(x_105); -x_145 = lean_ctor_get(x_102, 1); -lean_inc(x_145); -lean_dec(x_102); -x_146 = lean_st_ref_get(x_10, x_145); -x_147 = lean_ctor_get(x_146, 0); +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; uint32_t x_158; uint32_t x_159; uint32_t x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; +lean_dec(x_107); +x_147 = lean_ctor_get(x_104, 1); lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec(x_146); -x_149 = lean_ctor_get(x_147, 0); +lean_dec(x_104); +x_148 = lean_st_ref_get(x_10, x_147); +x_149 = lean_ctor_get(x_148, 0); lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_ctor_get(x_103, 3); +x_150 = lean_ctor_get(x_148, 1); lean_inc(x_150); -x_151 = lean_ctor_get(x_103, 1); +lean_dec(x_148); +x_151 = lean_ctor_get(x_149, 0); lean_inc(x_151); -x_152 = lean_ctor_get(x_103, 4); +lean_dec(x_149); +x_152 = lean_ctor_get(x_105, 3); lean_inc(x_152); -x_153 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -lean_ctor_set(x_153, 2, x_152); -x_154 = lean_ctor_get(x_103, 5); +x_153 = lean_ctor_get(x_105, 1); +lean_inc(x_153); +x_154 = lean_ctor_get(x_105, 4); lean_inc(x_154); -lean_inc(x_154); -x_155 = l_Lean_getMaxHeight(x_149, x_154); -x_156 = lean_unbox_uint32(x_155); -lean_dec(x_155); -x_157 = 1; -x_158 = lean_uint32_add(x_156, x_157); -x_159 = lean_alloc_ctor(2, 0, 4); -lean_ctor_set_uint32(x_159, 0, x_158); -x_160 = lean_ctor_get(x_103, 2); -lean_inc(x_160); -x_161 = lean_ctor_get_uint8(x_160, sizeof(void*)*2 + 3); -lean_dec(x_160); -if (x_161 == 0) +x_155 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +lean_ctor_set(x_155, 2, x_154); +x_156 = lean_ctor_get(x_105, 5); +lean_inc(x_156); +lean_inc(x_156); +x_157 = l_Lean_getMaxHeight(x_151, x_156); +x_158 = lean_unbox_uint32(x_157); +lean_dec(x_157); +x_159 = 1; +x_160 = lean_uint32_add(x_158, x_159); +x_161 = lean_alloc_ctor(2, 0, 4); +lean_ctor_set_uint32(x_161, 0, x_160); +x_162 = lean_ctor_get(x_105, 2); +lean_inc(x_162); +x_163 = lean_ctor_get_uint8(x_162, sizeof(void*)*2 + 3); +lean_dec(x_162); +if (x_163 == 0) { -uint8_t x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_162 = 1; -x_163 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_163, 0, x_153); -lean_ctor_set(x_163, 1, x_154); -lean_ctor_set(x_163, 2, x_159); -lean_ctor_set(x_163, 3, x_3); -lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_162); -x_164 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_164, 0, x_163); -x_165 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_164, x_5, x_6, x_7, x_8, x_101, x_10, x_148); -return x_165; +uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_164 = 1; +x_165 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_165, 0, x_155); +lean_ctor_set(x_165, 1, x_156); +lean_ctor_set(x_165, 2, x_161); +lean_ctor_set(x_165, 3, x_3); +lean_ctor_set_uint8(x_165, sizeof(void*)*4, x_164); +x_166 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_166, 0, x_165); +x_167 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_166, x_5, x_6, x_7, x_8, x_103, x_10, x_150); +return x_167; } else { -uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_166 = 0; -x_167 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_167, 0, x_153); -lean_ctor_set(x_167, 1, x_154); -lean_ctor_set(x_167, 2, x_159); -lean_ctor_set(x_167, 3, x_3); -lean_ctor_set_uint8(x_167, sizeof(void*)*4, x_166); -x_168 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_168, 0, x_167); -x_169 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_103, x_4, x_2, x_168, x_5, x_6, x_7, x_8, x_101, x_10, x_148); -return x_169; +uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_168 = 0; +x_169 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_169, 0, x_155); +lean_ctor_set(x_169, 1, x_156); +lean_ctor_set(x_169, 2, x_161); +lean_ctor_set(x_169, 3, x_3); +lean_ctor_set_uint8(x_169, sizeof(void*)*4, x_168); +x_170 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_170, 0, x_169); +x_171 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4(x_105, x_4, x_2, x_170, x_5, x_6, x_7, x_8, x_103, x_10, x_150); +return x_171; } } } } else { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_101); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_103); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_170 = lean_ctor_get(x_102, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_102, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_172 = x_102; +x_172 = lean_ctor_get(x_104, 0); +lean_inc(x_172); +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_102); - x_172 = lean_box(0); + lean_dec_ref(x_104); + x_174 = lean_box(0); } -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); } else { - x_173 = x_172; + x_175 = x_174; } -lean_ctor_set(x_173, 0, x_170); -lean_ctor_set(x_173, 1, x_171); -return x_173; +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; } } } @@ -7976,7 +8022,7 @@ lean_inc(x_7); x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_11, x_12, x_1, x_3, 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_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; 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; uint8_t x_33; lean_object* x_34; lean_object* x_35; +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; 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; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -8012,7 +8058,10 @@ x_31 = lean_ctor_get(x_7, 9); lean_inc(x_31); x_32 = lean_ctor_get(x_7, 10); lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_33 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_34 = lean_ctor_get(x_7, 11); +lean_inc(x_34); +x_35 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); @@ -8025,269 +8074,272 @@ if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 8); lean_ctor_release(x_7, 9); lean_ctor_release(x_7, 10); - x_34 = x_7; + lean_ctor_release(x_7, 11); + x_36 = x_7; } else { lean_dec_ref(x_7); - x_34 = lean_box(0); + x_36 = lean_box(0); } if (x_18 == 0) { -lean_object* x_86; lean_object* x_87; -x_86 = l_Lean_Elab_instInhabitedPreDefinition; -x_87 = l___private_Init_GetElem_0__outOfBounds___rarg(x_86); -x_35 = x_87; -goto block_85; +lean_object* x_88; lean_object* x_89; +x_88 = l_Lean_Elab_instInhabitedPreDefinition; +x_89 = l___private_Init_GetElem_0__outOfBounds___rarg(x_88); +x_37 = x_89; +goto block_87; } else { -lean_object* x_88; -x_88 = lean_array_fget(x_14, x_17); -x_35 = x_88; -goto block_85; +lean_object* x_90; +x_90 = lean_array_fget(x_14, x_17); +x_37 = x_90; +goto block_87; } -block_85: +block_87: { -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; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -lean_dec(x_35); -x_37 = l_Lean_replaceRef(x_36, x_27); +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_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_replaceRef(x_38, x_27); lean_dec(x_27); -lean_dec(x_36); -if (lean_is_scalar(x_34)) { - x_38 = lean_alloc_ctor(0, 11, 1); +lean_dec(x_38); +if (lean_is_scalar(x_36)) { + x_40 = lean_alloc_ctor(0, 12, 2); } else { - x_38 = x_34; + x_40 = x_36; } -lean_ctor_set(x_38, 0, x_22); -lean_ctor_set(x_38, 1, x_23); -lean_ctor_set(x_38, 2, x_24); -lean_ctor_set(x_38, 3, x_25); -lean_ctor_set(x_38, 4, x_26); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_28); -lean_ctor_set(x_38, 7, x_29); -lean_ctor_set(x_38, 8, x_30); -lean_ctor_set(x_38, 9, x_31); -lean_ctor_set(x_38, 10, x_32); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_33); -x_39 = l_List_mapM_loop___at_Lean_Elab_addAndCompileUnsafe___spec__3(x_2, x_21, x_19, x_20, x_3, x_4, x_5, x_6, x_38, x_8, x_15); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_42, 0, x_40); -lean_inc(x_8); -lean_inc(x_38); +lean_ctor_set(x_40, 0, x_22); +lean_ctor_set(x_40, 1, x_23); +lean_ctor_set(x_40, 2, x_24); +lean_ctor_set(x_40, 3, x_25); +lean_ctor_set(x_40, 4, x_26); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_28); +lean_ctor_set(x_40, 7, x_29); +lean_ctor_set(x_40, 8, x_30); +lean_ctor_set(x_40, 9, x_31); +lean_ctor_set(x_40, 10, x_32); +lean_ctor_set(x_40, 11, x_34); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_33); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_35); +x_41 = l_List_mapM_loop___at_Lean_Elab_addAndCompileUnsafe___spec__3(x_2, x_21, x_19, x_20, x_3, x_4, x_5, x_6, x_40, x_8, x_15); +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -x_43 = l_Lean_addDecl(x_42, x_38, x_8, x_41); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; size_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_44 = lean_ctor_get(x_43, 1); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_44, 0, x_42); +lean_inc(x_8); +lean_inc(x_40); lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_usize_of_nat(x_16); +x_45 = l_Lean_addDecl(x_44, x_40, x_8, x_43); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; size_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_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_usize_of_nat(x_16); lean_dec(x_16); -x_46 = lean_box_usize(x_45); -x_47 = l_Lean_Elab_addAndCompileUnsafe___boxed__const__1; +x_48 = lean_box_usize(x_47); +x_49 = l_Lean_Elab_addAndCompileUnsafe___boxed__const__1; lean_inc(x_14); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_addAndCompileUnsafe___lambda__1___boxed), 10, 3); -lean_closure_set(x_48, 0, x_14); -lean_closure_set(x_48, 1, x_46); -lean_closure_set(x_48, 2, x_47); -x_49 = l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__1___closed__1; +x_50 = lean_alloc_closure((void*)(l_Lean_Elab_addAndCompileUnsafe___lambda__1___boxed), 10, 3); +lean_closure_set(x_50, 0, x_14); +lean_closure_set(x_50, 1, x_48); +lean_closure_set(x_50, 2, x_49); +x_51 = l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__1___closed__1; lean_inc(x_8); -lean_inc(x_38); +lean_inc(x_40); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_50 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_48, x_49, x_3, x_4, x_5, x_6, x_38, x_8, x_44); -if (lean_obj_tag(x_50) == 0) +x_52 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_50, x_51, x_3, x_4, x_5, x_6, x_40, x_8, x_46); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_51; uint8_t x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = 0; +lean_object* x_53; uint8_t x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = 0; lean_inc(x_8); -lean_inc(x_38); +lean_inc(x_40); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_53 = l_Lean_Elab_applyAttributesOf(x_14, x_52, x_3, x_4, x_5, x_6, x_38, x_8, x_51); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -lean_inc(x_8); -lean_inc(x_38); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_55 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compileDecl(x_42, x_3, x_4, x_5, x_6, x_38, x_8, x_54); +x_55 = l_Lean_Elab_applyAttributesOf(x_14, x_54, x_3, x_4, x_5, x_6, x_40, x_8, x_53); if (lean_obj_tag(x_55) == 0) { -lean_object* x_56; uint8_t x_57; lean_object* x_58; +lean_object* x_56; lean_object* x_57; x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); -x_57 = 1; -x_58 = l_Lean_Elab_applyAttributesOf(x_14, x_57, x_3, x_4, x_5, x_6, x_38, x_8, x_56); +lean_inc(x_8); +lean_inc(x_40); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_57 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compileDecl(x_44, x_3, x_4, x_5, x_6, x_40, x_8, x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; uint8_t x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = 1; +x_60 = l_Lean_Elab_applyAttributesOf(x_14, x_59, x_3, x_4, x_5, x_6, x_40, x_8, x_58); lean_dec(x_14); -if (lean_obj_tag(x_58) == 0) +if (lean_obj_tag(x_60) == 0) { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -x_61 = lean_box(0); -lean_ctor_set(x_58, 0, x_61); -return x_58; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_58, 1); -lean_inc(x_62); -lean_dec(x_58); +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); x_63 = lean_box(0); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -return x_64; +lean_ctor_set(x_60, 0, x_63); +return x_60; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } else { -uint8_t x_65; -x_65 = !lean_is_exclusive(x_58); -if (x_65 == 0) +uint8_t x_67; +x_67 = !lean_is_exclusive(x_60); +if (x_67 == 0) { -return x_58; +return x_60; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_58, 0); -x_67 = lean_ctor_get(x_58, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_58); -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; +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_60, 0); +x_69 = lean_ctor_get(x_60, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_60); +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_69; -lean_dec(x_38); +uint8_t x_71; +lean_dec(x_40); lean_dec(x_14); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_69 = !lean_is_exclusive(x_55); -if (x_69 == 0) +x_71 = !lean_is_exclusive(x_57); +if (x_71 == 0) +{ +return x_57; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_57, 0); +x_73 = lean_ctor_get(x_57, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_57); +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_44); +lean_dec(x_40); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_75 = !lean_is_exclusive(x_55); +if (x_75 == 0) { return x_55; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_55, 0); -x_71 = lean_ctor_get(x_55, 1); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_55, 0); +x_77 = lean_ctor_get(x_55, 1); +lean_inc(x_77); +lean_inc(x_76); lean_dec(x_55); -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; +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; } } } else { -uint8_t x_73; -lean_dec(x_42); -lean_dec(x_38); +uint8_t x_79; +lean_dec(x_44); +lean_dec(x_40); lean_dec(x_14); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_73 = !lean_is_exclusive(x_53); -if (x_73 == 0) +x_79 = !lean_is_exclusive(x_52); +if (x_79 == 0) { -return x_53; +return x_52; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_53, 0); -x_75 = lean_ctor_get(x_53, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_53); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_52, 0); +x_81 = lean_ctor_get(x_52, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_52); +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 { -uint8_t x_77; -lean_dec(x_42); -lean_dec(x_38); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_77 = !lean_is_exclusive(x_50); -if (x_77 == 0) -{ -return x_50; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -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_50); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_42); -lean_dec(x_38); +uint8_t x_83; +lean_dec(x_44); +lean_dec(x_40); lean_dec(x_16); lean_dec(x_14); lean_dec(x_8); @@ -8295,53 +8347,53 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_81 = !lean_is_exclusive(x_43); -if (x_81 == 0) +x_83 = !lean_is_exclusive(x_45); +if (x_83 == 0) { -return x_43; +return x_45; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_43, 0); -x_83 = lean_ctor_get(x_43, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_43); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_45, 0); +x_85 = lean_ctor_get(x_45, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_45); +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 { -uint8_t x_89; +uint8_t x_91; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_89 = !lean_is_exclusive(x_13); -if (x_89 == 0) +x_91 = !lean_is_exclusive(x_13); +if (x_91 == 0) { return x_13; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_13, 0); -x_91 = lean_ctor_get(x_13, 1); -lean_inc(x_91); -lean_inc(x_90); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_13, 0); +x_93 = lean_ctor_get(x_13, 1); +lean_inc(x_93); +lean_inc(x_92); lean_dec(x_13); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c index c9fee84ae7..283d1b8a64 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c @@ -57,6 +57,7 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_collectDeps___spec__3___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_collectDeps___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_Lean_Elab_Eqns_tryURefl___closed__3; static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6487____closed__13; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___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*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__8; lean_object* l_Lean_Meta_Match_isNamedPattern___boxed(lean_object*); @@ -1053,7 +1054,7 @@ return x_80; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___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: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -1071,172 +1072,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } @@ -2714,14 +2738,18 @@ if (x_54 == 0) lean_object* x_55; lean_object* x_56; uint8_t x_57; x_55 = lean_ctor_get(x_48, 0); x_56 = lean_ctor_get(x_48, 1); -x_57 = l_Lean_Exception_isRuntime(x_55); +x_57 = l_Lean_Exception_isInterrupt(x_55); if (x_57 == 0) { -lean_object* x_58; +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_55); +if (x_58 == 0) +{ +lean_object* x_59; lean_free_object(x_48); lean_dec(x_55); -x_58 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); -x_4 = x_58; +x_59 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); +x_4 = x_59; x_9 = x_56; goto _start; } @@ -2741,25 +2769,6 @@ return x_48; } else { -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_ctor_get(x_48, 0); -x_61 = lean_ctor_get(x_48, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_48); -x_62 = l_Lean_Exception_isRuntime(x_60); -if (x_62 == 0) -{ -lean_object* x_63; -lean_dec(x_60); -x_63 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); -x_4 = x_63; -x_9 = x_61; -goto _start; -} -else -{ -lean_object* x_65; lean_dec(x_47); lean_dec(x_8); lean_dec(x_7); @@ -2769,31 +2778,86 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_60); -lean_ctor_set(x_65, 1, x_61); -return x_65; +return x_48; +} +} +else +{ +lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_61 = lean_ctor_get(x_48, 0); +x_62 = lean_ctor_get(x_48, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_48); +x_63 = l_Lean_Exception_isInterrupt(x_61); +if (x_63 == 0) +{ +uint8_t x_64; +x_64 = l_Lean_Exception_isRuntime(x_61); +if (x_64 == 0) +{ +lean_object* x_65; +lean_dec(x_61); +x_65 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); +x_4 = x_65; +x_9 = x_62; +goto _start; +} +else +{ +lean_object* x_67; +lean_dec(x_47); +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_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_62); +return x_67; +} +} +else +{ +lean_object* x_68; +lean_dec(x_47); +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_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_61); +lean_ctor_set(x_68, 1, x_62); +return x_68; } } } } else { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_15, 0); -lean_inc(x_66); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_15, 0); +lean_inc(x_69); lean_dec(x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_66); +lean_inc(x_69); lean_inc(x_1); -x_67 = l_Lean_Meta_Split_splitMatch(x_1, x_66, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_67) == 0) +x_70 = l_Lean_Meta_Split_splitMatch(x_1, x_69, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_66); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_69); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2802,59 +2866,63 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_73 = x_70; } else { - lean_dec_ref(x_67); - x_70 = lean_box(0); + lean_dec_ref(x_70); + x_73 = lean_box(0); } -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_68); -if (lean_is_scalar(x_70)) { - x_72 = lean_alloc_ctor(0, 2, 0); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_71); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_70; + x_75 = x_73; } -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_69); -return x_72; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -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; +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_ctor_get(x_70, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_70, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_78 = x_70; } else { - lean_dec_ref(x_67); - x_75 = lean_box(0); + lean_dec_ref(x_70); + x_78 = lean_box(0); } -x_76 = l_Lean_Exception_isRuntime(x_73); -if (x_76 == 0) +x_79 = l_Lean_Exception_isInterrupt(x_76); +if (x_79 == 0) { -lean_object* x_77; -lean_dec(x_75); -lean_dec(x_73); -x_77 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_66); -x_4 = x_77; -x_9 = x_74; +uint8_t x_80; +x_80 = l_Lean_Exception_isRuntime(x_76); +if (x_80 == 0) +{ +lean_object* x_81; +lean_dec(x_78); +lean_dec(x_76); +x_81 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_69); +x_4 = x_81; +x_9 = x_77; goto _start; } else { -lean_object* x_79; -lean_dec(x_66); +lean_object* x_83; +lean_dec(x_69); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2863,117 +2931,139 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_75)) { - x_79 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_79 = x_75; -} -lean_ctor_set(x_79, 0, x_73); -lean_ctor_set(x_79, 1, x_74); -return x_79; -} -} + x_83 = x_78; } +lean_ctor_set(x_83, 0, x_76); +lean_ctor_set(x_83, 1, x_77); +return x_83; } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_10, 0); -x_81 = lean_ctor_get(x_10, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_10); -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -lean_dec(x_80); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_3); -x_83 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f(x_82, x_3, x_2, x_4); -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; lean_object* x_89; uint8_t x_90; +lean_object* x_84; +lean_dec(x_69); +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_84 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__4; -x_85 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_84, x_5, x_6, x_7, x_8, x_81); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -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_85); - x_88 = lean_box(0); -} -x_89 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__5; -x_90 = lean_unbox(x_86); -lean_dec(x_86); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_88); lean_dec(x_1); -x_91 = lean_box(0); -x_92 = lean_apply_6(x_89, x_91, x_5, x_6, x_7, x_8, x_87); -return x_92; -} -else -{ -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_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_1); -x_94 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__7; -if (lean_is_scalar(x_88)) { - x_95 = lean_alloc_ctor(6, 2, 0); +if (lean_is_scalar(x_78)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_88; - lean_ctor_set_tag(x_95, 6); + x_84 = x_78; +} +lean_ctor_set(x_84, 0, x_76); +lean_ctor_set(x_84, 1, x_77); +return x_84; +} +} } -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_93); -x_96 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__9; -x_97 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -x_98 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_84, x_97, x_5, x_6, x_7, x_8, x_87); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_apply_6(x_89, x_99, x_5, x_6, x_7, x_8, x_100); -return x_101; } } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_83, 0); -lean_inc(x_102); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - x_103 = x_83; +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_85 = lean_ctor_get(x_10, 0); +x_86 = lean_ctor_get(x_10, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_10); +x_87 = lean_ctor_get(x_85, 0); +lean_inc(x_87); +lean_dec(x_85); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_3); +x_88 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f(x_87, x_3, x_2, x_4); +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; uint8_t x_95; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_89 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__4; +x_90 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_89, x_5, x_6, x_7, x_8, x_86); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; } else { - lean_dec_ref(x_83); - x_103 = lean_box(0); + lean_dec_ref(x_90); + x_93 = lean_box(0); +} +x_94 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__5; +x_95 = lean_unbox(x_91); +lean_dec(x_91); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; +lean_dec(x_93); +lean_dec(x_1); +x_96 = lean_box(0); +x_97 = lean_apply_6(x_94, x_96, x_5, x_6, x_7, x_8, x_92); +return x_97; +} +else +{ +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; +x_98 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_98, 0, x_1); +x_99 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__7; +if (lean_is_scalar(x_93)) { + x_100 = lean_alloc_ctor(6, 2, 0); +} else { + x_100 = x_93; + lean_ctor_set_tag(x_100, 6); +} +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__9; +x_102 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_103 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_89, x_102, x_5, x_6, x_7, x_8, x_92); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_apply_6(x_94, x_104, x_5, x_6, x_7, x_8, x_105); +return x_106; +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_88, 0); +lean_inc(x_107); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + x_108 = x_88; +} else { + lean_dec_ref(x_88); + x_108 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_102); +lean_inc(x_107); lean_inc(x_1); -x_104 = l_Lean_Meta_Split_splitMatch(x_1, x_102, x_5, x_6, x_7, x_8, x_81); -if (lean_obj_tag(x_104) == 0) +x_109 = l_Lean_Meta_Split_splitMatch(x_1, x_107, x_5, x_6, x_7, x_8, x_86); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_102); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_107); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2982,64 +3072,68 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; } else { - lean_dec_ref(x_104); - x_107 = lean_box(0); + lean_dec_ref(x_109); + x_112 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_108 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_108)) { + x_113 = lean_alloc_ctor(1, 1, 0); } else { - x_108 = x_103; + x_113 = x_108; } -lean_ctor_set(x_108, 0, x_105); -if (lean_is_scalar(x_107)) { - x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_110); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); } else { - x_109 = x_107; + x_114 = x_112; } -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_106); -return x_109; +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +return x_114; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -lean_dec(x_103); -x_110 = lean_ctor_get(x_104, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_104, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_112 = x_104; +lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; +lean_dec(x_108); +x_115 = lean_ctor_get(x_109, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_109, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_117 = x_109; } else { - lean_dec_ref(x_104); - x_112 = lean_box(0); + lean_dec_ref(x_109); + x_117 = lean_box(0); } -x_113 = l_Lean_Exception_isRuntime(x_110); -if (x_113 == 0) +x_118 = l_Lean_Exception_isInterrupt(x_115); +if (x_118 == 0) { -lean_object* x_114; -lean_dec(x_112); -lean_dec(x_110); -x_114 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_102); -x_4 = x_114; -x_9 = x_111; +uint8_t x_119; +x_119 = l_Lean_Exception_isRuntime(x_115); +if (x_119 == 0) +{ +lean_object* x_120; +lean_dec(x_117); +lean_dec(x_115); +x_120 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_107); +x_4 = x_120; +x_9 = x_116; goto _start; } else { -lean_object* x_116; -lean_dec(x_102); +lean_object* x_122; +lean_dec(x_107); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3048,14 +3142,36 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_112)) { - x_116 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_117)) { + x_122 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_112; + x_122 = x_117; } -lean_ctor_set(x_116, 0, x_110); -lean_ctor_set(x_116, 1, x_111); -return x_116; +lean_ctor_set(x_122, 0, x_115); +lean_ctor_set(x_122, 1, x_116); +return x_122; +} +} +else +{ +lean_object* x_123; +lean_dec(x_107); +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); +if (lean_is_scalar(x_117)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_117; +} +lean_ctor_set(x_123, 0, x_115); +lean_ctor_set(x_123, 1, x_116); +return x_123; } } } @@ -3273,7 +3389,7 @@ x_13 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = l_Lean_MVarId_refl(x_3, x_4, x_5, x_7, x_8, x_9); if (lean_obj_tag(x_15) == 0) { @@ -3311,15 +3427,19 @@ if (x_24 == 0) { lean_object* x_25; uint8_t x_26; x_25 = lean_ctor_get(x_15, 0); -x_26 = l_Lean_Exception_isRuntime(x_25); +x_26 = l_Lean_Exception_isInterrupt(x_25); if (x_26 == 0) { -uint8_t x_27; lean_object* x_28; +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_25); +if (x_27 == 0) +{ +uint8_t x_28; lean_object* x_29; lean_dec(x_25); -x_27 = 0; -x_28 = lean_box(x_27); +x_28 = 0; +x_29 = lean_box(x_28); lean_ctor_set_tag(x_15, 0); -lean_ctor_set(x_15, 0, x_28); +lean_ctor_set(x_15, 0, x_29); return x_15; } else @@ -3329,140 +3449,180 @@ return x_15; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); +return x_15; +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_15, 0); +x_31 = lean_ctor_get(x_15, 1); +lean_inc(x_31); lean_inc(x_30); -lean_inc(x_29); lean_dec(x_15); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) +x_32 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) { -uint8_t x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_29); -x_32 = 0; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_30); -return x_34; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_30); +x_34 = 0; +x_35 = lean_box(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; } else { -lean_object* x_35; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_30); -return x_35; +lean_object* x_37; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_31); +return x_37; +} +} +else +{ +lean_object* x_38; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +return x_38; } } } } 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; 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; -x_36 = lean_ctor_get(x_7, 0); -x_37 = lean_ctor_get(x_7, 1); -x_38 = lean_ctor_get(x_7, 3); -x_39 = lean_ctor_get(x_7, 5); -x_40 = lean_ctor_get(x_7, 6); -x_41 = lean_ctor_get(x_7, 7); -x_42 = lean_ctor_get(x_7, 8); -x_43 = lean_ctor_get(x_7, 9); -x_44 = lean_ctor_get(x_7, 10); +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; +x_39 = lean_ctor_get(x_7, 0); +x_40 = lean_ctor_get(x_7, 1); +x_41 = lean_ctor_get(x_7, 3); +x_42 = lean_ctor_get(x_7, 5); +x_43 = lean_ctor_get(x_7, 6); +x_44 = lean_ctor_get(x_7, 7); +x_45 = lean_ctor_get(x_7, 8); +x_46 = lean_ctor_get(x_7, 9); +x_47 = lean_ctor_get(x_7, 10); +x_48 = lean_ctor_get(x_7, 11); +x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_48); +lean_inc(x_47); +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_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); lean_dec(x_7); -x_45 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; -x_46 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_45); -x_47 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_47, 0, x_36); -lean_ctor_set(x_47, 1, x_37); -lean_ctor_set(x_47, 2, x_1); -lean_ctor_set(x_47, 3, x_38); -lean_ctor_set(x_47, 4, x_46); -lean_ctor_set(x_47, 5, x_39); -lean_ctor_set(x_47, 6, x_40); -lean_ctor_set(x_47, 7, x_41); -lean_ctor_set(x_47, 8, x_42); -lean_ctor_set(x_47, 9, x_43); -lean_ctor_set(x_47, 10, x_44); -lean_ctor_set_uint8(x_47, sizeof(void*)*11, x_2); -x_48 = l_Lean_MVarId_refl(x_3, x_4, x_5, x_47, x_8, x_9); -if (lean_obj_tag(x_48) == 0) +x_50 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; +x_51 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_50); +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_40); +lean_ctor_set(x_52, 2, x_1); +lean_ctor_set(x_52, 3, x_41); +lean_ctor_set(x_52, 4, x_51); +lean_ctor_set(x_52, 5, x_42); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_49); +x_53 = l_Lean_MVarId_refl(x_3, x_4, x_5, x_52, x_8, x_9); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; -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); -} -x_51 = 1; -x_52 = lean_box(x_51); -if (lean_is_scalar(x_50)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_50; -} -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_49); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_54 = lean_ctor_get(x_48, 0); +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_48, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_56 = x_48; +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; } else { - lean_dec_ref(x_48); - x_56 = lean_box(0); + lean_dec_ref(x_53); + x_55 = lean_box(0); } -x_57 = l_Lean_Exception_isRuntime(x_54); -if (x_57 == 0) -{ -uint8_t x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_54); -x_58 = 0; -x_59 = lean_box(x_58); -if (lean_is_scalar(x_56)) { - x_60 = lean_alloc_ctor(0, 2, 0); +x_56 = 1; +x_57 = lean_box(x_56); +if (lean_is_scalar(x_55)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_60 = x_56; - lean_ctor_set_tag(x_60, 0); + x_58 = x_55; } -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_55); -return x_60; +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_54); +return x_58; } else { -lean_object* x_61; -if (lean_is_scalar(x_56)) { - x_61 = lean_alloc_ctor(1, 2, 0); +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_53, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_53, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_61 = x_53; } else { - x_61 = x_56; + lean_dec_ref(x_53); + x_61 = lean_box(0); } -lean_ctor_set(x_61, 0, x_54); -lean_ctor_set(x_61, 1, x_55); -return x_61; +x_62 = l_Lean_Exception_isInterrupt(x_59); +if (x_62 == 0) +{ +uint8_t x_63; +x_63 = l_Lean_Exception_isRuntime(x_59); +if (x_63 == 0) +{ +uint8_t x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_59); +x_64 = 0; +x_65 = lean_box(x_64); +if (lean_is_scalar(x_61)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_61; + lean_ctor_set_tag(x_66, 0); +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_60); +return x_66; +} +else +{ +lean_object* x_67; +if (lean_is_scalar(x_61)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_61; +} +lean_ctor_set(x_67, 0, x_59); +lean_ctor_set(x_67, 1, x_60); +return x_67; +} +} +else +{ +lean_object* x_68; +if (lean_is_scalar(x_61)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_61; +} +lean_ctor_set(x_68, 0, x_59); +lean_ctor_set(x_68, 1, x_60); +return x_68; } } } @@ -28036,229 +28196,140 @@ goto _start; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Eqns_mkUnfoldProof___spec__2___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_8; lean_object* x_9; lean_object* x_18; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_8 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_18 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -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 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_12 = l_Lean_MVarId_apply(x_2, x_9, x_11, x_3, x_4, x_5, x_6, x_10); -if (lean_obj_tag(x_12) == 0) +x_22 = l_Lean_MVarId_apply(x_2, x_19, x_21, x_3, x_4, x_5, x_6, x_20); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_List_allM___at_Lean_Elab_Eqns_mkUnfoldProof___spec__1(x_13, x_3, x_4, x_5, x_6, x_14); -if (lean_obj_tag(x_15) == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_List_allM___at_Lean_Elab_Eqns_mkUnfoldProof___spec__1(x_23, x_3, x_4, x_5, x_6, x_24); +if (lean_obj_tag(x_25) == 0) { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -return x_15; +return x_25; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_15); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_15); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_15, 0); -x_22 = l_Lean_Exception_isRuntime(x_21); -if (x_22 == 0) -{ -uint8_t x_23; lean_object* x_24; -lean_dec(x_21); -x_23 = 0; -x_24 = lean_box(x_23); -lean_ctor_set_tag(x_15, 0); -lean_ctor_set(x_15, 0, x_24); -return x_15; -} -else -{ -return x_15; -} -} -else -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_15, 0); -x_26 = lean_ctor_get(x_15, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_15); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -uint8_t x_28; lean_object* x_29; lean_object* x_30; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_25); -x_28 = 0; -x_29 = lean_box(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_26); -return x_30; -} -else -{ -lean_object* x_31; -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_25); -lean_ctor_set(x_31, 1, x_26); -return x_31; -} -} +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -uint8_t x_32; +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_25, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_8 = x_30; +x_9 = x_31; +goto block_17; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_32 = !lean_is_exclusive(x_12); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_12, 0); -x_34 = l_Lean_Exception_isRuntime(x_33); -if (x_34 == 0) -{ -uint8_t x_35; lean_object* x_36; -lean_dec(x_33); -x_35 = 0; -x_36 = lean_box(x_35); -lean_ctor_set_tag(x_12, 0); -lean_ctor_set(x_12, 0, x_36); -return x_12; -} -else -{ -return x_12; +x_32 = lean_ctor_get(x_22, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_dec(x_22); +x_8 = x_32; +x_9 = x_33; +goto block_17; } } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_12, 0); -x_38 = lean_ctor_get(x_12, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_12); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) -{ -uint8_t x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_37); -x_40 = 0; -x_41 = lean_box(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_38); -return x_42; -} -else -{ -lean_object* x_43; -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_37); -lean_ctor_set(x_43, 1, x_38); -return x_43; -} -} -} -} -else -{ -uint8_t x_44; +lean_object* x_34; lean_object* x_35; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_44 = !lean_is_exclusive(x_8); -if (x_44 == 0) -{ -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_8, 0); -x_46 = l_Lean_Exception_isRuntime(x_45); -if (x_46 == 0) -{ -uint8_t x_47; lean_object* x_48; -lean_dec(x_45); -x_47 = 0; -x_48 = lean_box(x_47); -lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_48); -return x_8; +x_34 = lean_ctor_get(x_18, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_18, 1); +lean_inc(x_35); +lean_dec(x_18); +x_8 = x_34; +x_9 = x_35; +goto block_17; } -else +block_17: { -return x_8; -} -} -else +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_8, 0); -x_50 = lean_ctor_get(x_8, 1); -lean_inc(x_50); -lean_inc(x_49); +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_8); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) -{ -uint8_t x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_49); -x_52 = 0; -x_53 = lean_box(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_50); -return x_54; +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_9); +return x_14; } else { -lean_object* x_55; -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_49); -lean_ctor_set(x_55, 1, x_50); -return x_55; +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; } } +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_8); +lean_ctor_set(x_16, 1, x_9); +return x_16; +} } } } @@ -28947,14 +29018,14 @@ x_14 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; x_15 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_14); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); x_16 = 0; x_17 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_3, x_4, x_16, x_5, x_6, x_8, x_9, 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_18 = lean_ctor_get(x_8, 0); x_19 = lean_ctor_get(x_8, 1); x_20 = lean_ctor_get(x_8, 3); @@ -28964,6 +29035,9 @@ x_23 = lean_ctor_get(x_8, 7); x_24 = lean_ctor_get(x_8, 8); x_25 = lean_ctor_get(x_8, 9); x_26 = lean_ctor_get(x_8, 10); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -28974,24 +29048,26 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_8); -x_27 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; -x_28 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_27); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_18); -lean_ctor_set(x_29, 1, x_19); -lean_ctor_set(x_29, 2, x_1); -lean_ctor_set(x_29, 3, x_20); -lean_ctor_set(x_29, 4, x_28); -lean_ctor_set(x_29, 5, x_21); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_2); -x_30 = 0; -x_31 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_3, x_4, x_30, x_5, x_6, x_29, x_9, x_10); -return x_31; +x_29 = l_Lean_Elab_Eqns_tryURefl___lambda__1___closed__1; +x_30 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_29); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_1); +lean_ctor_set(x_31, 3, x_20); +lean_ctor_set(x_31, 4, x_30); +lean_ctor_set(x_31, 5, x_21); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_28); +x_32 = 0; +x_33 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_3, x_4, x_32, x_5, x_6, x_31, x_9, x_10); +return x_33; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index 62035cb4e5..1aeee6f486 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -46,6 +46,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_addPreDefinitions___lambda__1(lean_object*, extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__1; lean_object* l_Lean_indentD(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__8___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_transform___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2(lean_object*, lean_object*, size_t, size_t); @@ -4405,7 +4406,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___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; 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; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_9 = lean_ctor_get(x_6, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_6, 1); @@ -4428,161 +4429,169 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); -lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); -x_36 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -return x_36; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); +lean_dec(x_12); +lean_ctor_set(x_6, 3, x_38); +x_39 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +return x_39; } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_36); -if (x_41 == 0) -{ -return x_36; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); -lean_dec(x_36); -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; +lean_inc(x_41); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 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_44; +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_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_6); -x_45 = lean_unsigned_to_nat(1u); -x_46 = lean_nat_add(x_12, x_45); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_add(x_12, x_48); lean_dec(x_12); -x_47 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_47, 0, x_9); -lean_ctor_set(x_47, 1, x_10); -lean_ctor_set(x_47, 2, x_11); -lean_ctor_set(x_47, 3, x_46); -lean_ctor_set(x_47, 4, x_13); -lean_ctor_set(x_47, 5, x_14); -lean_ctor_set(x_47, 6, x_15); -lean_ctor_set(x_47, 7, x_16); -lean_ctor_set(x_47, 8, x_17); -lean_ctor_set(x_47, 9, x_18); -lean_ctor_set(x_47, 10, x_19); -lean_ctor_set_uint8(x_47, sizeof(void*)*11, x_20); -x_48 = lean_apply_6(x_2, x_3, x_4, x_5, x_47, x_7, x_8); -if (lean_obj_tag(x_48) == 0) +x_50 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_50, 0, x_9); +lean_ctor_set(x_50, 1, x_10); +lean_ctor_set(x_50, 2, x_11); +lean_ctor_set(x_50, 3, x_49); +lean_ctor_set(x_50, 4, x_13); +lean_ctor_set(x_50, 5, x_14); +lean_ctor_set(x_50, 6, x_15); +lean_ctor_set(x_50, 7, x_16); +lean_ctor_set(x_50, 8, x_17); +lean_ctor_set(x_50, 9, x_18); +lean_ctor_set(x_50, 10, x_19); +lean_ctor_set(x_50, 11, x_21); +lean_ctor_set_uint8(x_50, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_50, sizeof(void*)*12 + 1, x_22); +x_51 = lean_apply_6(x_2, x_3, x_4, x_5, x_50, x_7, x_8); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; -} else { - lean_dec_ref(x_48); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(0, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_48, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_48, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_55 = x_48; +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_48); - x_55 = lean_box(0); + lean_dec_ref(x_51); + x_54 = lean_box(0); } -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_55; + x_55 = x_54; } -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_58 = x_51; +} else { + lean_dec_ref(x_51); + 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_57; uint8_t x_58; +lean_object* x_60; uint8_t x_61; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -4597,26 +4606,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_57 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__9___rarg(x_14, x_6, x_7, x_8); +x_60 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__9___rarg(x_14, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) { -return x_57; +return x_60; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_57); -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_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 0); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_60); +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; } } } @@ -6997,7 +7006,7 @@ uint8_t x_10; x_10 = lean_usize_dec_eq(x_2, x_3); 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; 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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t 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; lean_dec(x_4); x_11 = lean_array_uget(x_1, x_2); x_12 = lean_ctor_get(x_11, 0); @@ -7016,9 +7025,12 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_26 = l_Lean_replaceRef(x_12, x_19); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_28 = l_Lean_replaceRef(x_12, x_19); lean_dec(x_12); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -7029,67 +7041,69 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__3___closed__1; -x_29 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_13, x_28, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__3___closed__1; +x_31 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_13, x_30, x_5, x_6, x_29, x_8, x_9); lean_dec(x_29); -x_32 = 1; -x_33 = lean_usize_add(x_2, x_32); -x_2 = x_33; -x_4 = x_30; -x_9 = x_31; +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; +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 = 1; +x_35 = lean_usize_add(x_2, x_34); +x_2 = x_35; +x_4 = x_32; +x_9 = x_33; goto _start; } else { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_29); -if (x_35 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_31); +if (x_37 == 0) { -return x_29; +return x_31; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_29, 0); -x_37 = lean_ctor_get(x_29, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_29); -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_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_31, 0); +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_31); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -lean_object* x_39; -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_4); -lean_ctor_set(x_39, 1, x_9); -return x_39; +lean_object* x_41; +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_4); +lean_ctor_set(x_41, 1, x_9); +return x_41; } } } @@ -7104,71 +7118,71 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_ensureFunIndReservedNamesAvailable(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_68; uint8_t x_69; +lean_object* x_7; lean_object* x_8; lean_object* x_72; uint8_t x_73; x_7 = lean_array_get_size(x_1); -x_68 = lean_unsigned_to_nat(0u); -x_69 = lean_nat_dec_lt(x_68, x_7); -if (x_69 == 0) +x_72 = lean_unsigned_to_nat(0u); +x_73 = lean_nat_dec_lt(x_72, x_7); +if (x_73 == 0) { x_8 = x_6; -goto block_67; +goto block_71; } else { -uint8_t x_70; -x_70 = lean_nat_dec_le(x_7, x_7); -if (x_70 == 0) +uint8_t x_74; +x_74 = lean_nat_dec_le(x_7, x_7); +if (x_74 == 0) { x_8 = x_6; -goto block_67; +goto block_71; } else { -size_t x_71; size_t x_72; lean_object* x_73; lean_object* x_74; -x_71 = 0; -x_72 = lean_usize_of_nat(x_7); -x_73 = lean_box(0); -x_74 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__3(x_1, x_71, x_72, x_73, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_74) == 0) +size_t x_75; size_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = 0; +x_76 = lean_usize_of_nat(x_7); +x_77 = lean_box(0); +x_78 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__3(x_1, x_75, x_76, x_77, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_75; -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -lean_dec(x_74); -x_8 = x_75; -goto block_67; +lean_object* x_79; +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_8 = x_79; +goto block_71; } else { -uint8_t x_76; +uint8_t x_80; lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_74); -if (x_76 == 0) +x_80 = !lean_is_exclusive(x_78); +if (x_80 == 0) { -return x_74; +return x_78; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_74, 0); -x_78 = lean_ctor_get(x_74, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_74); -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; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_78, 0); +x_82 = lean_ctor_get(x_78, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_78); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } } -block_67: +block_71: { lean_object* x_9; uint8_t x_10; x_9 = lean_unsigned_to_nat(0u); @@ -7204,7 +7218,7 @@ return x_19; } 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; 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; lean_object* x_37; lean_object* x_38; lean_object* x_39; +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; uint8_t x_31; lean_object* x_32; uint8_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; x_20 = lean_ctor_get(x_4, 0); x_21 = lean_ctor_get(x_4, 1); x_22 = lean_ctor_get(x_4, 2); @@ -7216,7 +7230,10 @@ x_27 = lean_ctor_get(x_4, 7); x_28 = lean_ctor_get(x_4, 8); x_29 = lean_ctor_get(x_4, 9); x_30 = lean_ctor_get(x_4, 10); -x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_32 = lean_ctor_get(x_4, 11); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_32); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -7229,80 +7246,87 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_4); -x_32 = l_Lean_Elab_instInhabitedPreDefinition; -x_33 = l___private_Init_GetElem_0__outOfBounds___rarg(x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 3); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Lean_replaceRef(x_34, x_25); +x_34 = l_Lean_Elab_instInhabitedPreDefinition; +x_35 = l___private_Init_GetElem_0__outOfBounds___rarg(x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 3); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_replaceRef(x_36, x_25); lean_dec(x_25); -lean_dec(x_34); -x_37 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_37, 0, x_20); -lean_ctor_set(x_37, 1, x_21); -lean_ctor_set(x_37, 2, x_22); -lean_ctor_set(x_37, 3, x_23); -lean_ctor_set(x_37, 4, x_24); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_26); -lean_ctor_set(x_37, 7, x_27); -lean_ctor_set(x_37, 8, x_28); -lean_ctor_set(x_37, 9, x_29); -lean_ctor_set(x_37, 10, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*11, x_31); -x_38 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; -x_39 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_35, x_38, x_2, x_3, x_37, x_5, x_8); +lean_dec(x_36); +x_39 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_39, 0, x_20); +lean_ctor_set(x_39, 1, x_21); +lean_ctor_set(x_39, 2, x_22); +lean_ctor_set(x_39, 3, x_23); +lean_ctor_set(x_39, 4, x_24); +lean_ctor_set(x_39, 5, x_38); +lean_ctor_set(x_39, 6, x_26); +lean_ctor_set(x_39, 7, x_27); +lean_ctor_set(x_39, 8, x_28); +lean_ctor_set(x_39, 9, x_29); +lean_ctor_set(x_39, 10, x_30); +lean_ctor_set(x_39, 11, x_32); +lean_ctor_set_uint8(x_39, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_39, sizeof(void*)*12 + 1, x_33); +x_40 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; +x_41 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_37, x_40, x_2, x_3, x_39, x_5, x_8); lean_dec(x_5); -lean_dec(x_37); +lean_dec(x_39); lean_dec(x_3); lean_dec(x_2); -return x_39; +return x_41; } } else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_4); -if (x_40 == 0) +uint8_t x_42; +x_42 = !lean_is_exclusive(x_4); +if (x_42 == 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; -x_41 = lean_ctor_get(x_4, 5); -x_42 = lean_array_fget(x_1, x_9); +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; +x_43 = lean_ctor_get(x_4, 5); +x_44 = lean_array_fget(x_1, x_9); lean_dec(x_1); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 3); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_replaceRef(x_43, x_41); -lean_dec(x_41); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 3); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_replaceRef(x_45, x_43); lean_dec(x_43); -lean_ctor_set(x_4, 5, x_45); -x_46 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; -x_47 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_44, x_46, x_2, x_3, x_4, x_5, x_8); +lean_dec(x_45); +lean_ctor_set(x_4, 5, x_47); +x_48 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; +x_49 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_46, x_48, x_2, x_3, x_4, x_5, x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_47; +return x_49; } 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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t 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; -x_48 = lean_ctor_get(x_4, 0); -x_49 = lean_ctor_get(x_4, 1); -x_50 = lean_ctor_get(x_4, 2); -x_51 = lean_ctor_get(x_4, 3); -x_52 = lean_ctor_get(x_4, 4); -x_53 = lean_ctor_get(x_4, 5); -x_54 = lean_ctor_get(x_4, 6); -x_55 = lean_ctor_get(x_4, 7); -x_56 = lean_ctor_get(x_4, 8); -x_57 = lean_ctor_get(x_4, 9); -x_58 = lean_ctor_get(x_4, 10); -x_59 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +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; uint8_t 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; lean_object* x_70; +x_50 = lean_ctor_get(x_4, 0); +x_51 = lean_ctor_get(x_4, 1); +x_52 = lean_ctor_get(x_4, 2); +x_53 = lean_ctor_get(x_4, 3); +x_54 = lean_ctor_get(x_4, 4); +x_55 = lean_ctor_get(x_4, 5); +x_56 = lean_ctor_get(x_4, 6); +x_57 = lean_ctor_get(x_4, 7); +x_58 = lean_ctor_get(x_4, 8); +x_59 = lean_ctor_get(x_4, 9); +x_60 = lean_ctor_get(x_4, 10); +x_61 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_62 = lean_ctor_get(x_4, 11); +x_63 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +lean_inc(x_62); +lean_inc(x_60); +lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); @@ -7312,39 +7336,39 @@ lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); lean_dec(x_4); -x_60 = lean_array_fget(x_1, x_9); +x_64 = lean_array_fget(x_1, x_9); lean_dec(x_1); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 3); -lean_inc(x_62); -lean_dec(x_60); -x_63 = l_Lean_replaceRef(x_61, x_53); -lean_dec(x_53); -lean_dec(x_61); -x_64 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_64, 0, x_48); -lean_ctor_set(x_64, 1, x_49); -lean_ctor_set(x_64, 2, x_50); -lean_ctor_set(x_64, 3, x_51); -lean_ctor_set(x_64, 4, x_52); -lean_ctor_set(x_64, 5, x_63); -lean_ctor_set(x_64, 6, x_54); -lean_ctor_set(x_64, 7, x_55); -lean_ctor_set(x_64, 8, x_56); -lean_ctor_set(x_64, 9, x_57); -lean_ctor_set(x_64, 10, x_58); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_59); -x_65 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; -x_66 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_62, x_65, x_2, x_3, x_64, x_5, x_8); -lean_dec(x_5); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 3); +lean_inc(x_66); lean_dec(x_64); +x_67 = l_Lean_replaceRef(x_65, x_55); +lean_dec(x_55); +lean_dec(x_65); +x_68 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_68, 0, x_50); +lean_ctor_set(x_68, 1, x_51); +lean_ctor_set(x_68, 2, x_52); +lean_ctor_set(x_68, 3, x_53); +lean_ctor_set(x_68, 4, x_54); +lean_ctor_set(x_68, 5, x_67); +lean_ctor_set(x_68, 6, x_56); +lean_ctor_set(x_68, 7, x_57); +lean_ctor_set(x_68, 8, x_58); +lean_ctor_set(x_68, 9, x_59); +lean_ctor_set(x_68, 10, x_60); +lean_ctor_set(x_68, 11, x_62); +lean_ctor_set_uint8(x_68, sizeof(void*)*12, x_61); +lean_ctor_set_uint8(x_68, sizeof(void*)*12 + 1, x_63); +x_69 = l_Lean_Elab_ensureFunIndReservedNamesAvailable___closed__1; +x_70 = l_Lean_ensureReservedNameAvailable___at_Lean_Elab_ensureFunIndReservedNamesAvailable___spec__1(x_66, x_69, x_2, x_3, x_68, x_5, x_8); +lean_dec(x_5); +lean_dec(x_68); lean_dec(x_3); lean_dec(x_2); -return x_66; +return x_70; } } } @@ -8322,7 +8346,7 @@ return x_44; } else { -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; uint8_t 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_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; uint8_t 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; lean_object* x_64; lean_object* x_65; x_45 = lean_ctor_get(x_9, 0); x_46 = lean_ctor_get(x_9, 1); x_47 = lean_ctor_get(x_9, 2); @@ -8334,7 +8358,10 @@ x_52 = lean_ctor_get(x_9, 7); x_53 = lean_ctor_get(x_9, 8); x_54 = lean_ctor_get(x_9, 9); x_55 = lean_ctor_get(x_9, 10); -x_56 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_56 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_57 = lean_ctor_get(x_9, 11); +x_58 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_57); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); @@ -8347,59 +8374,61 @@ lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); lean_dec(x_9); -x_57 = l_Lean_replaceRef(x_26, x_50); +x_59 = l_Lean_replaceRef(x_26, x_50); lean_dec(x_50); lean_dec(x_26); -x_58 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_58, 0, x_45); -lean_ctor_set(x_58, 1, x_46); -lean_ctor_set(x_58, 2, x_47); -lean_ctor_set(x_58, 3, x_48); -lean_ctor_set(x_58, 4, x_49); -lean_ctor_set(x_58, 5, x_57); -lean_ctor_set(x_58, 6, x_51); -lean_ctor_set(x_58, 7, x_52); -lean_ctor_set(x_58, 8, x_53); -lean_ctor_set(x_58, 9, x_54); -lean_ctor_set(x_58, 10, x_55); -lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_56); -x_59 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_36, x_5, x_6, x_7, x_8, x_58, x_10, x_18); +x_60 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_46); +lean_ctor_set(x_60, 2, x_47); +lean_ctor_set(x_60, 3, x_48); +lean_ctor_set(x_60, 4, x_49); +lean_ctor_set(x_60, 5, x_59); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_54); +lean_ctor_set(x_60, 10, x_55); +lean_ctor_set(x_60, 11, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*12, x_56); +lean_ctor_set_uint8(x_60, sizeof(void*)*12 + 1, x_58); +x_61 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_36, x_5, x_6, x_7, x_8, x_60, x_10, x_18); lean_dec(x_10); -lean_dec(x_58); +lean_dec(x_60); lean_dec(x_8); lean_dec(x_7); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_62 = x_59; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +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_59); - x_62 = lean_box(0); + lean_dec_ref(x_61); + x_64 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); } else { - x_63 = x_62; + x_65 = x_64; } -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; } } else { -size_t x_64; size_t x_65; lean_object* x_66; +size_t x_66; size_t x_67; lean_object* x_68; lean_dec(x_15); lean_dec(x_14); -x_64 = 1; -x_65 = lean_usize_add(x_3, x_64); -x_66 = lean_box(0); -x_3 = x_65; -x_4 = x_66; +x_66 = 1; +x_67 = lean_usize_add(x_3, x_66); +x_68 = lean_box(0); +x_3 = x_67; +x_4 = x_68; x_11 = x_18; goto _start; } @@ -8407,7 +8436,7 @@ goto _start; } else { -uint8_t x_68; +uint8_t x_70; lean_dec(x_15); lean_dec(x_14); lean_dec(x_10); @@ -8415,23 +8444,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -x_68 = !lean_is_exclusive(x_16); -if (x_68 == 0) +x_70 = !lean_is_exclusive(x_16); +if (x_70 == 0) { return x_16; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_16, 0); -x_70 = lean_ctor_get(x_16, 1); -lean_inc(x_70); -lean_inc(x_69); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_16, 0); +x_72 = lean_ctor_get(x_16, 1); +lean_inc(x_72); +lean_inc(x_71); lean_dec(x_16); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } @@ -8459,9 +8488,9 @@ x_14 = lean_ctor_get(x_13, 6); lean_inc(x_14); lean_dec(x_13); x_15 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11___closed__1; +lean_inc(x_10); lean_inc(x_9); x_16 = l_Lean_Elab_WF_TerminationHints_ensureNone(x_14, x_15, x_9, x_10, x_11); -lean_dec(x_14); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -8477,6 +8506,7 @@ goto _start; else { lean_object* x_22; +lean_dec(x_10); lean_dec(x_9); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_4); @@ -8544,9 +8574,9 @@ x_14 = lean_ctor_get(x_13, 6); lean_inc(x_14); lean_dec(x_13); x_15 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13___closed__1; +lean_inc(x_10); lean_inc(x_9); x_16 = l_Lean_Elab_WF_TerminationHints_ensureNone(x_14, x_15, x_9, x_10, x_11); -lean_dec(x_14); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -8562,6 +8592,7 @@ goto _start; else { lean_object* x_22; +lean_dec(x_10); lean_dec(x_9); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_4); @@ -8583,6 +8614,8 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_10 = lean_ctor_get(x_1, 6); +lean_inc(x_10); +lean_dec(x_1); x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__1___closed__1; x_12 = l_Lean_Elab_WF_TerminationHints_ensureNone(x_10, x_11, x_7, x_8, x_9); x_13 = !lean_is_exclusive(x_12); @@ -8750,565 +8783,420 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; uint8_t x_25; x_23 = lean_ctor_get(x_17, 0); x_24 = lean_ctor_get(x_17, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); if (x_25 == 0) { -lean_object* x_26; uint8_t x_27; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; lean_free_object(x_17); -x_26 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_24); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_27 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_24); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_26, 1); -x_29 = lean_ctor_get(x_26, 0); -lean_dec(x_29); -x_30 = lean_st_ref_take(x_5, x_28); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_27, 1); +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_31 = lean_st_ref_take(x_5, x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_30, 0); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_31, 0); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_30, 1); -x_35 = lean_ctor_get(x_32, 0); -lean_dec(x_35); -lean_ctor_set(x_32, 0, x_16); -x_36 = lean_st_ref_set(x_5, x_32, x_34); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_31, 1); +x_36 = lean_ctor_get(x_33, 0); +lean_dec(x_36); +lean_ctor_set(x_33, 0, x_16); +x_37 = lean_st_ref_set(x_5, x_33, x_35); if (lean_obj_tag(x_23) == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = !lean_is_exclusive(x_23); -if (x_38 == 0) +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = !lean_is_exclusive(x_23); +if (x_39 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_23, 0); -x_40 = lean_ctor_get(x_23, 1); -x_41 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -if (lean_obj_tag(x_41) == 0) +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_23, 0); +x_41 = lean_ctor_get(x_23, 1); +x_42 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_38); +if (lean_obj_tag(x_42) == 0) { -uint8_t x_42; +uint8_t x_43; lean_free_object(x_23); -lean_dec(x_40); -lean_dec(x_39); -lean_free_object(x_30); -lean_free_object(x_26); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) -{ -return x_41; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_inc(x_43); lean_dec(x_41); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_dec(x_40); +lean_free_object(x_31); +lean_free_object(x_27); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 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_46; -x_46 = !lean_is_exclusive(x_41); -if (x_46 == 0) +uint8_t x_47; +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) { -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_41, 0); -x_48 = l_Lean_Exception_isRuntime(x_47); -if (x_48 == 0) -{ -if (lean_obj_tag(x_47) == 0) -{ -uint8_t x_49; -x_49 = !lean_is_exclusive(x_47); +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_42, 0); +x_49 = l_Lean_Exception_isInterrupt(x_48); if (x_49 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_47, 1); -x_51 = lean_ctor_get(x_47, 0); -lean_dec(x_51); -x_52 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -lean_ctor_set_tag(x_23, 6); -lean_ctor_set(x_23, 1, x_52); -lean_ctor_set(x_23, 0, x_40); -lean_ctor_set_tag(x_30, 6); -lean_ctor_set(x_30, 1, x_52); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_50); -lean_ctor_set(x_26, 0, x_30); -lean_ctor_set(x_47, 1, x_26); -lean_ctor_set(x_47, 0, x_39); -return x_41; -} -else +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_48); +if (x_50 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_dec(x_47); +if (lean_obj_tag(x_48) == 0) +{ +uint8_t x_51; +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_48, 1); +x_53 = lean_ctor_get(x_48, 0); +lean_dec(x_53); x_54 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; lean_ctor_set_tag(x_23, 6); lean_ctor_set(x_23, 1, x_54); -lean_ctor_set(x_23, 0, x_40); -lean_ctor_set_tag(x_30, 6); -lean_ctor_set(x_30, 1, x_54); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_53); -lean_ctor_set(x_26, 0, x_30); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_39); -lean_ctor_set(x_55, 1, x_26); -lean_ctor_set(x_41, 0, x_55); -return x_41; -} +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set_tag(x_31, 6); +lean_ctor_set(x_31, 1, x_54); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_52); +lean_ctor_set(x_27, 0, x_31); +lean_ctor_set(x_48, 1, x_27); +lean_ctor_set(x_48, 0, x_40); +return x_42; } else { -lean_free_object(x_23); -lean_dec(x_40); -lean_dec(x_39); -lean_free_object(x_30); -lean_free_object(x_26); -return x_41; -} -} -else -{ -lean_free_object(x_23); -lean_dec(x_40); -lean_dec(x_39); -lean_free_object(x_30); -lean_free_object(x_26); -return x_41; -} -} -else -{ -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_41, 0); -x_57 = lean_ctor_get(x_41, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_41); -x_58 = l_Lean_Exception_isRuntime(x_56); -if (x_58 == 0) -{ -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_60 = x_56; -} else { - lean_dec_ref(x_56); - x_60 = lean_box(0); -} -x_61 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_48, 1); +lean_inc(x_55); +lean_dec(x_48); +x_56 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; lean_ctor_set_tag(x_23, 6); -lean_ctor_set(x_23, 1, x_61); -lean_ctor_set(x_23, 0, x_40); -lean_ctor_set_tag(x_30, 6); -lean_ctor_set(x_30, 1, x_61); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_59); -lean_ctor_set(x_26, 0, x_30); -if (lean_is_scalar(x_60)) { - x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 1, x_56); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set_tag(x_31, 6); +lean_ctor_set(x_31, 1, x_56); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_55); +lean_ctor_set(x_27, 0, x_31); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_40); +lean_ctor_set(x_57, 1, x_27); +lean_ctor_set(x_42, 0, x_57); +return x_42; +} +} +else +{ +lean_free_object(x_23); +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_31); +lean_free_object(x_27); +return x_42; +} +} +else +{ +lean_free_object(x_23); +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_31); +lean_free_object(x_27); +return x_42; +} +} +else +{ +lean_free_object(x_23); +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_31); +lean_free_object(x_27); +return x_42; +} +} +else +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_42, 0); +x_59 = lean_ctor_get(x_42, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_42); +x_60 = l_Lean_Exception_isInterrupt(x_58); +if (x_60 == 0) +{ +uint8_t x_61; +x_61 = l_Lean_Exception_isRuntime(x_58); +if (x_61 == 0) +{ +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; } else { - x_62 = x_60; + lean_dec_ref(x_58); + x_63 = lean_box(0); } -lean_ctor_set(x_62, 0, x_39); -lean_ctor_set(x_62, 1, x_26); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_57); -return x_63; +x_64 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +lean_ctor_set_tag(x_23, 6); +lean_ctor_set(x_23, 1, x_64); +lean_ctor_set(x_23, 0, x_41); +lean_ctor_set_tag(x_31, 6); +lean_ctor_set(x_31, 1, x_64); +lean_ctor_set(x_31, 0, x_23); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_62); +lean_ctor_set(x_27, 0, x_31); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_40); +lean_ctor_set(x_65, 1, x_27); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_59); +return x_66; } else { -lean_object* x_64; +lean_object* x_67; lean_free_object(x_23); +lean_dec(x_41); lean_dec(x_40); -lean_dec(x_39); -lean_free_object(x_30); -lean_free_object(x_26); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_56); -lean_ctor_set(x_64, 1, x_57); -return x_64; +lean_free_object(x_31); +lean_free_object(x_27); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_58); +lean_ctor_set(x_67, 1, x_59); +return x_67; } } else { -lean_object* x_65; +lean_object* x_68; lean_free_object(x_23); +lean_dec(x_41); lean_dec(x_40); -lean_dec(x_39); -lean_free_object(x_30); -lean_free_object(x_26); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_56); -lean_ctor_set(x_65, 1, x_57); -return x_65; +lean_free_object(x_31); +lean_free_object(x_27); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_58); +lean_ctor_set(x_68, 1, x_59); +return x_68; +} +} +else +{ +lean_object* x_69; +lean_free_object(x_23); +lean_dec(x_41); +lean_dec(x_40); +lean_free_object(x_31); +lean_free_object(x_27); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_58); +lean_ctor_set(x_69, 1, x_59); +return x_69; } } } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_23, 0); -x_67 = lean_ctor_get(x_23, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_23); -x_68 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_67); -lean_dec(x_66); -lean_free_object(x_30); -lean_free_object(x_26); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_23, 0); +x_71 = lean_ctor_get(x_23, 1); +lean_inc(x_71); lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; -} else { - lean_dec_ref(x_68); - x_71 = lean_box(0); -} -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(0, 2, 0); -} else { - x_72 = x_71; -} -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -else +lean_dec(x_23); +x_72 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_38); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_73 = lean_ctor_get(x_68, 0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_71); +lean_dec(x_70); +lean_free_object(x_31); +lean_free_object(x_27); +x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); -x_74 = lean_ctor_get(x_68, 1); +x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_75 = x_68; +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; } else { - lean_dec_ref(x_68); + lean_dec_ref(x_72); x_75 = lean_box(0); } -x_76 = l_Lean_Exception_isRuntime(x_73); -if (x_76 == 0) +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_75; +} +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +else { -if (lean_obj_tag(x_73) == 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 = lean_ctor_get(x_73, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_77 = lean_ctor_get(x_72, 0); lean_inc(x_77); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_78 = x_73; +x_78 = lean_ctor_get(x_72, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_79 = x_72; } else { - lean_dec_ref(x_73); - x_78 = lean_box(0); + lean_dec_ref(x_72); + x_79 = lean_box(0); } -x_79 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -x_80 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_80, 0, x_67); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set_tag(x_30, 6); -lean_ctor_set(x_30, 1, x_79); -lean_ctor_set(x_30, 0, x_80); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_77); -lean_ctor_set(x_26, 0, x_30); -if (lean_is_scalar(x_78)) { - x_81 = lean_alloc_ctor(0, 2, 0); +x_80 = l_Lean_Exception_isInterrupt(x_77); +if (x_80 == 0) +{ +uint8_t x_81; +x_81 = l_Lean_Exception_isRuntime(x_77); +if (x_81 == 0) +{ +if (lean_obj_tag(x_77) == 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; +x_82 = lean_ctor_get(x_77, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_83 = x_77; } else { - x_81 = x_78; + lean_dec_ref(x_77); + x_83 = lean_box(0); } -lean_ctor_set(x_81, 0, x_66); -lean_ctor_set(x_81, 1, x_26); -if (lean_is_scalar(x_75)) { - x_82 = lean_alloc_ctor(1, 2, 0); +x_84 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +x_85 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_85, 0, x_71); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set_tag(x_31, 6); +lean_ctor_set(x_31, 1, x_84); +lean_ctor_set(x_31, 0, x_85); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_82); +lean_ctor_set(x_27, 0, x_31); +if (lean_is_scalar(x_83)) { + x_86 = lean_alloc_ctor(0, 2, 0); } else { - x_82 = x_75; + x_86 = x_83; } -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_74); -return x_82; +lean_ctor_set(x_86, 0, x_70); +lean_ctor_set(x_86, 1, x_27); +if (lean_is_scalar(x_79)) { + x_87 = lean_alloc_ctor(1, 2, 0); +} else { + x_87 = x_79; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_78); +return x_87; } else { -lean_object* x_83; -lean_dec(x_67); -lean_dec(x_66); -lean_free_object(x_30); -lean_free_object(x_26); -if (lean_is_scalar(x_75)) { - x_83 = lean_alloc_ctor(1, 2, 0); +lean_object* x_88; +lean_dec(x_71); +lean_dec(x_70); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_79)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_83 = x_75; + x_88 = x_79; } -lean_ctor_set(x_83, 0, x_73); -lean_ctor_set(x_83, 1, x_74); -return x_83; -} -} -else -{ -lean_object* x_84; -lean_dec(x_67); -lean_dec(x_66); -lean_free_object(x_30); -lean_free_object(x_26); -if (lean_is_scalar(x_75)) { - x_84 = lean_alloc_ctor(1, 2, 0); -} else { - x_84 = x_75; -} -lean_ctor_set(x_84, 0, x_73); -lean_ctor_set(x_84, 1, x_74); -return x_84; -} -} -} -} -else -{ -uint8_t x_85; -lean_free_object(x_30); -lean_free_object(x_26); -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_85 = !lean_is_exclusive(x_36); -if (x_85 == 0) -{ -lean_object* x_86; -x_86 = lean_ctor_get(x_36, 0); -lean_dec(x_86); -lean_ctor_set_tag(x_36, 1); -lean_ctor_set(x_36, 0, x_23); -return x_36; -} -else -{ -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_36, 1); -lean_inc(x_87); -lean_dec(x_36); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_23); -lean_ctor_set(x_88, 1, x_87); +lean_ctor_set(x_88, 0, x_77); +lean_ctor_set(x_88, 1, x_78); return x_88; } } -} 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; lean_object* x_95; -x_89 = lean_ctor_get(x_30, 1); -x_90 = lean_ctor_get(x_32, 1); -x_91 = lean_ctor_get(x_32, 2); -x_92 = lean_ctor_get(x_32, 3); -x_93 = lean_ctor_get(x_32, 4); -lean_inc(x_93); -lean_inc(x_92); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_32); -x_94 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_94, 0, x_16); -lean_ctor_set(x_94, 1, x_90); -lean_ctor_set(x_94, 2, x_91); -lean_ctor_set(x_94, 3, x_92); -lean_ctor_set(x_94, 4, x_93); -x_95 = lean_st_ref_set(x_5, x_94, x_89); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -x_97 = lean_ctor_get(x_23, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_23, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_99 = x_23; +lean_object* x_89; +lean_dec(x_71); +lean_dec(x_70); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_23); - x_99 = lean_box(0); + x_89 = x_79; } -x_100 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_97); -lean_free_object(x_30); -lean_free_object(x_26); -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_100); - x_103 = lean_box(0); -} -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_103; -} -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; -x_105 = lean_ctor_get(x_100, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_100, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_107 = x_100; -} else { - lean_dec_ref(x_100); - x_107 = lean_box(0); -} -x_108 = l_Lean_Exception_isRuntime(x_105); -if (x_108 == 0) -{ -if (lean_obj_tag(x_105) == 0) -{ -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_105, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_110 = x_105; -} else { - lean_dec_ref(x_105); - x_110 = lean_box(0); -} -x_111 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -if (lean_is_scalar(x_99)) { - x_112 = lean_alloc_ctor(6, 2, 0); -} else { - x_112 = x_99; - lean_ctor_set_tag(x_112, 6); -} -lean_ctor_set(x_112, 0, x_98); -lean_ctor_set(x_112, 1, x_111); -lean_ctor_set_tag(x_30, 6); -lean_ctor_set(x_30, 1, x_111); -lean_ctor_set(x_30, 0, x_112); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_109); -lean_ctor_set(x_26, 0, x_30); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_110; -} -lean_ctor_set(x_113, 0, x_97); -lean_ctor_set(x_113, 1, x_26); -if (lean_is_scalar(x_107)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_107; -} -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_106); -return x_114; -} -else -{ -lean_object* x_115; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_97); -lean_free_object(x_30); -lean_free_object(x_26); -if (lean_is_scalar(x_107)) { - x_115 = lean_alloc_ctor(1, 2, 0); -} else { - x_115 = x_107; -} -lean_ctor_set(x_115, 0, x_105); -lean_ctor_set(x_115, 1, x_106); -return x_115; +lean_ctor_set(x_89, 0, x_77); +lean_ctor_set(x_89, 1, x_78); +return x_89; } } else { -lean_object* x_116; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_97); -lean_free_object(x_30); -lean_free_object(x_26); -if (lean_is_scalar(x_107)) { - x_116 = lean_alloc_ctor(1, 2, 0); +lean_object* x_90; +lean_dec(x_71); +lean_dec(x_70); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_79)) { + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_107; + x_90 = x_79; +} +lean_ctor_set(x_90, 0, x_77); +lean_ctor_set(x_90, 1, x_78); +return x_90; } -lean_ctor_set(x_116, 0, x_105); -lean_ctor_set(x_116, 1, x_106); -return x_116; } } } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_free_object(x_30); -lean_free_object(x_26); +uint8_t x_91; +lean_free_object(x_31); +lean_free_object(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9316,445 +9204,459 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_117 = lean_ctor_get(x_95, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_118 = x_95; -} else { - lean_dec_ref(x_95); - x_118 = lean_box(0); +x_91 = !lean_is_exclusive(x_37); +if (x_91 == 0) +{ +lean_object* x_92; +x_92 = lean_ctor_get(x_37, 0); +lean_dec(x_92); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_23); +return x_37; } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); -} else { - x_119 = x_118; - lean_ctor_set_tag(x_119, 1); -} -lean_ctor_set(x_119, 0, x_23); -lean_ctor_set(x_119, 1, x_117); -return x_119; +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_37, 1); +lean_inc(x_93); +lean_dec(x_37); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_23); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } else { -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; -x_120 = lean_ctor_get(x_30, 0); -x_121 = lean_ctor_get(x_30, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_30); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -x_123 = lean_ctor_get(x_120, 2); -lean_inc(x_123); -x_124 = lean_ctor_get(x_120, 3); -lean_inc(x_124); -x_125 = lean_ctor_get(x_120, 4); -lean_inc(x_125); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - lean_ctor_release(x_120, 2); - lean_ctor_release(x_120, 3); - lean_ctor_release(x_120, 4); - x_126 = x_120; +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_95 = lean_ctor_get(x_31, 1); +x_96 = lean_ctor_get(x_33, 1); +x_97 = lean_ctor_get(x_33, 2); +x_98 = lean_ctor_get(x_33, 3); +x_99 = lean_ctor_get(x_33, 4); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_33); +x_100 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_100, 0, x_16); +lean_ctor_set(x_100, 1, x_96); +lean_ctor_set(x_100, 2, x_97); +lean_ctor_set(x_100, 3, x_98); +lean_ctor_set(x_100, 4, x_99); +x_101 = lean_st_ref_set(x_5, x_100, x_95); +if (lean_obj_tag(x_23) == 0) +{ +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, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = lean_ctor_get(x_23, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_23, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_105 = x_23; } else { - lean_dec_ref(x_120); + lean_dec_ref(x_23); + x_105 = lean_box(0); +} +x_106 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_102); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_105); +lean_dec(x_104); +lean_dec(x_103); +lean_free_object(x_31); +lean_free_object(x_27); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_109 = x_106; +} else { + lean_dec_ref(x_106); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_111 = lean_ctor_get(x_106, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_106, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_113 = x_106; +} else { + lean_dec_ref(x_106); + x_113 = lean_box(0); +} +x_114 = l_Lean_Exception_isInterrupt(x_111); +if (x_114 == 0) +{ +uint8_t x_115; +x_115 = l_Lean_Exception_isRuntime(x_111); +if (x_115 == 0) +{ +if (lean_obj_tag(x_111) == 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 = 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); +} +x_118 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +if (lean_is_scalar(x_105)) { + x_119 = lean_alloc_ctor(6, 2, 0); +} else { + x_119 = x_105; + lean_ctor_set_tag(x_119, 6); +} +lean_ctor_set(x_119, 0, x_104); +lean_ctor_set(x_119, 1, x_118); +lean_ctor_set_tag(x_31, 6); +lean_ctor_set(x_31, 1, x_118); +lean_ctor_set(x_31, 0, x_119); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_116); +lean_ctor_set(x_27, 0, x_31); +if (lean_is_scalar(x_117)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_117; +} +lean_ctor_set(x_120, 0, x_103); +lean_ctor_set(x_120, 1, x_27); +if (lean_is_scalar(x_113)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_113; +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_112); +return x_121; +} +else +{ +lean_object* x_122; +lean_dec(x_105); +lean_dec(x_104); +lean_dec(x_103); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_113)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_113; +} +lean_ctor_set(x_122, 0, x_111); +lean_ctor_set(x_122, 1, x_112); +return x_122; +} +} +else +{ +lean_object* x_123; +lean_dec(x_105); +lean_dec(x_104); +lean_dec(x_103); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_113)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_113; +} +lean_ctor_set(x_123, 0, x_111); +lean_ctor_set(x_123, 1, x_112); +return x_123; +} +} +else +{ +lean_object* x_124; +lean_dec(x_105); +lean_dec(x_104); +lean_dec(x_103); +lean_free_object(x_31); +lean_free_object(x_27); +if (lean_is_scalar(x_113)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_113; +} +lean_ctor_set(x_124, 0, x_111); +lean_ctor_set(x_124, 1, x_112); +return x_124; +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_free_object(x_31); +lean_free_object(x_27); +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_125 = lean_ctor_get(x_101, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_126 = x_101; +} else { + lean_dec_ref(x_101); x_126 = lean_box(0); } if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(0, 5, 0); + x_127 = lean_alloc_ctor(1, 2, 0); } else { x_127 = x_126; + lean_ctor_set_tag(x_127, 1); } -lean_ctor_set(x_127, 0, x_16); -lean_ctor_set(x_127, 1, x_122); -lean_ctor_set(x_127, 2, x_123); -lean_ctor_set(x_127, 3, x_124); -lean_ctor_set(x_127, 4, x_125); -x_128 = lean_st_ref_set(x_5, x_127, x_121); -if (lean_obj_tag(x_23) == 0) +lean_ctor_set(x_127, 0, x_23); +lean_ctor_set(x_127, 1, x_125); +return x_127; +} +} +} +else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_129 = lean_ctor_get(x_128, 1); +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; +x_128 = lean_ctor_get(x_31, 0); +x_129 = lean_ctor_get(x_31, 1); lean_inc(x_129); -lean_dec(x_128); -x_130 = lean_ctor_get(x_23, 0); +lean_inc(x_128); +lean_dec(x_31); +x_130 = lean_ctor_get(x_128, 1); lean_inc(x_130); -x_131 = lean_ctor_get(x_23, 1); +x_131 = lean_ctor_get(x_128, 2); lean_inc(x_131); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_132 = x_23; -} else { - lean_dec_ref(x_23); - x_132 = lean_box(0); -} -x_133 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_129); -if (lean_obj_tag(x_133) == 0) -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_free_object(x_26); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_136 = x_133; -} else { - lean_dec_ref(x_133); - x_136 = lean_box(0); -} -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(0, 2, 0); -} else { - x_137 = x_136; -} -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -return x_137; -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -x_138 = lean_ctor_get(x_133, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_140 = x_133; -} else { - lean_dec_ref(x_133); - x_140 = lean_box(0); -} -x_141 = l_Lean_Exception_isRuntime(x_138); -if (x_141 == 0) -{ -if (lean_obj_tag(x_138) == 0) -{ -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; -x_142 = lean_ctor_get(x_138, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_143 = x_138; -} else { - lean_dec_ref(x_138); - x_143 = lean_box(0); -} -x_144 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -if (lean_is_scalar(x_132)) { - x_145 = lean_alloc_ctor(6, 2, 0); -} else { - x_145 = x_132; - lean_ctor_set_tag(x_145, 6); -} -lean_ctor_set(x_145, 0, x_131); -lean_ctor_set(x_145, 1, x_144); -x_146 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_142); -lean_ctor_set(x_26, 0, x_146); -if (lean_is_scalar(x_143)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_143; -} -lean_ctor_set(x_147, 0, x_130); -lean_ctor_set(x_147, 1, x_26); -if (lean_is_scalar(x_140)) { - x_148 = lean_alloc_ctor(1, 2, 0); -} else { - x_148 = x_140; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_139); -return x_148; -} -else -{ -lean_object* x_149; -lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_free_object(x_26); -if (lean_is_scalar(x_140)) { - x_149 = lean_alloc_ctor(1, 2, 0); -} else { - x_149 = x_140; -} -lean_ctor_set(x_149, 0, x_138); -lean_ctor_set(x_149, 1, x_139); -return x_149; -} -} -else -{ -lean_object* x_150; -lean_dec(x_132); -lean_dec(x_131); -lean_dec(x_130); -lean_free_object(x_26); -if (lean_is_scalar(x_140)) { - x_150 = lean_alloc_ctor(1, 2, 0); -} else { - x_150 = x_140; -} -lean_ctor_set(x_150, 0, x_138); -lean_ctor_set(x_150, 1, x_139); -return x_150; -} -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_free_object(x_26); -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_151 = lean_ctor_get(x_128, 1); -lean_inc(x_151); +x_132 = lean_ctor_get(x_128, 3); +lean_inc(x_132); +x_133 = lean_ctor_get(x_128, 4); +lean_inc(x_133); if (lean_is_exclusive(x_128)) { lean_ctor_release(x_128, 0); lean_ctor_release(x_128, 1); - x_152 = x_128; + lean_ctor_release(x_128, 2); + lean_ctor_release(x_128, 3); + lean_ctor_release(x_128, 4); + x_134 = x_128; } else { lean_dec_ref(x_128); - x_152 = lean_box(0); + x_134 = lean_box(0); } -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(0, 5, 0); } else { - x_153 = x_152; - lean_ctor_set_tag(x_153, 1); + x_135 = x_134; } -lean_ctor_set(x_153, 0, x_23); -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; 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; -x_154 = lean_ctor_get(x_26, 1); -lean_inc(x_154); -lean_dec(x_26); -x_155 = lean_st_ref_take(x_5, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_158 = x_155; -} else { - lean_dec_ref(x_155); - x_158 = lean_box(0); -} -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -x_160 = lean_ctor_get(x_156, 2); -lean_inc(x_160); -x_161 = lean_ctor_get(x_156, 3); -lean_inc(x_161); -x_162 = lean_ctor_get(x_156, 4); -lean_inc(x_162); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - lean_ctor_release(x_156, 2); - lean_ctor_release(x_156, 3); - lean_ctor_release(x_156, 4); - x_163 = x_156; -} else { - lean_dec_ref(x_156); - x_163 = lean_box(0); -} -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(0, 5, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_16); -lean_ctor_set(x_164, 1, x_159); -lean_ctor_set(x_164, 2, x_160); -lean_ctor_set(x_164, 3, x_161); -lean_ctor_set(x_164, 4, x_162); -x_165 = lean_st_ref_set(x_5, x_164, x_157); +lean_ctor_set(x_135, 0, x_16); +lean_ctor_set(x_135, 1, x_130); +lean_ctor_set(x_135, 2, x_131); +lean_ctor_set(x_135, 3, x_132); +lean_ctor_set(x_135, 4, x_133); +x_136 = lean_st_ref_set(x_5, x_135, x_129); if (lean_obj_tag(x_23) == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec(x_165); -x_167 = lean_ctor_get(x_23, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_23, 1); -lean_inc(x_168); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = lean_ctor_get(x_23, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_23, 1); +lean_inc(x_139); if (lean_is_exclusive(x_23)) { lean_ctor_release(x_23, 0); lean_ctor_release(x_23, 1); - x_169 = x_23; + x_140 = x_23; } else { lean_dec_ref(x_23); - x_169 = lean_box(0); + x_140 = lean_box(0); } -x_170 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_166); -if (lean_obj_tag(x_170) == 0) +x_141 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_137); +if (lean_obj_tag(x_141) == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_167); -lean_dec(x_158); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_173 = x_170; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +lean_free_object(x_27); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_144 = x_141; } else { - lean_dec_ref(x_170); - x_173 = lean_box(0); + lean_dec_ref(x_141); + x_144 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 2, 0); } else { - x_174 = x_173; + x_145 = x_144; } -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; -x_175 = lean_ctor_get(x_170, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_170, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_177 = x_170; +lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +x_146 = lean_ctor_get(x_141, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_141, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_148 = x_141; } else { - lean_dec_ref(x_170); - x_177 = lean_box(0); + lean_dec_ref(x_141); + x_148 = lean_box(0); } -x_178 = l_Lean_Exception_isRuntime(x_175); -if (x_178 == 0) +x_149 = l_Lean_Exception_isInterrupt(x_146); +if (x_149 == 0) { -if (lean_obj_tag(x_175) == 0) +uint8_t x_150; +x_150 = l_Lean_Exception_isRuntime(x_146); +if (x_150 == 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; -x_179 = lean_ctor_get(x_175, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_180 = x_175; +if (lean_obj_tag(x_146) == 0) +{ +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_151 = lean_ctor_get(x_146, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_152 = x_146; } else { - lean_dec_ref(x_175); - x_180 = lean_box(0); + lean_dec_ref(x_146); + x_152 = lean_box(0); } -x_181 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -if (lean_is_scalar(x_169)) { - x_182 = lean_alloc_ctor(6, 2, 0); +x_153 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +if (lean_is_scalar(x_140)) { + x_154 = lean_alloc_ctor(6, 2, 0); } else { - x_182 = x_169; - lean_ctor_set_tag(x_182, 6); + x_154 = x_140; + lean_ctor_set_tag(x_154, 6); } -lean_ctor_set(x_182, 0, x_168); -lean_ctor_set(x_182, 1, x_181); -if (lean_is_scalar(x_158)) { - x_183 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_154, 0, x_139); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_151); +lean_ctor_set(x_27, 0, x_155); +if (lean_is_scalar(x_152)) { + x_156 = lean_alloc_ctor(0, 2, 0); } else { - x_183 = x_158; - lean_ctor_set_tag(x_183, 6); + x_156 = x_152; } -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_181); -x_184 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_179); -if (lean_is_scalar(x_180)) { - x_185 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_138); +lean_ctor_set(x_156, 1, x_27); +if (lean_is_scalar(x_148)) { + x_157 = lean_alloc_ctor(1, 2, 0); } else { - x_185 = x_180; + x_157 = x_148; } -lean_ctor_set(x_185, 0, x_167); -lean_ctor_set(x_185, 1, x_184); -if (lean_is_scalar(x_177)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_177; -} -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_176); -return x_186; +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_147); +return x_157; } else { -lean_object* x_187; -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_167); -lean_dec(x_158); -if (lean_is_scalar(x_177)) { - x_187 = lean_alloc_ctor(1, 2, 0); +lean_object* x_158; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +lean_free_object(x_27); +if (lean_is_scalar(x_148)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_187 = x_177; + x_158 = x_148; } -lean_ctor_set(x_187, 0, x_175); -lean_ctor_set(x_187, 1, x_176); -return x_187; +lean_ctor_set(x_158, 0, x_146); +lean_ctor_set(x_158, 1, x_147); +return x_158; } } else { -lean_object* x_188; -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_167); -lean_dec(x_158); -if (lean_is_scalar(x_177)) { - x_188 = lean_alloc_ctor(1, 2, 0); +lean_object* x_159; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +lean_free_object(x_27); +if (lean_is_scalar(x_148)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_188 = x_177; + x_159 = x_148; } -lean_ctor_set(x_188, 0, x_175); -lean_ctor_set(x_188, 1, x_176); -return x_188; +lean_ctor_set(x_159, 0, x_146); +lean_ctor_set(x_159, 1, x_147); +return x_159; +} +} +else +{ +lean_object* x_160; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_138); +lean_free_object(x_27); +if (lean_is_scalar(x_148)) { + x_160 = lean_alloc_ctor(1, 2, 0); +} else { + x_160 = x_148; +} +lean_ctor_set(x_160, 0, x_146); +lean_ctor_set(x_160, 1, x_147); +return x_160; } } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_158); +lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_free_object(x_27); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -9762,25 +9664,277 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_189 = lean_ctor_get(x_165, 1); -lean_inc(x_189); +x_161 = lean_ctor_get(x_136, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_162 = x_136; +} else { + lean_dec_ref(x_136); + x_162 = lean_box(0); +} +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); +} else { + x_163 = x_162; + lean_ctor_set_tag(x_163, 1); +} +lean_ctor_set(x_163, 0, x_23); +lean_ctor_set(x_163, 1, x_161); +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; lean_object* x_175; +x_164 = lean_ctor_get(x_27, 1); +lean_inc(x_164); +lean_dec(x_27); +x_165 = lean_st_ref_take(x_5, x_164); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); if (lean_is_exclusive(x_165)) { lean_ctor_release(x_165, 0); lean_ctor_release(x_165, 1); - x_190 = x_165; + x_168 = x_165; } else { lean_dec_ref(x_165); - x_190 = lean_box(0); + x_168 = lean_box(0); } -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(1, 2, 0); +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_166, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_166, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_166, 4); +lean_inc(x_172); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + lean_ctor_release(x_166, 2); + lean_ctor_release(x_166, 3); + lean_ctor_release(x_166, 4); + x_173 = x_166; } else { - x_191 = x_190; - lean_ctor_set_tag(x_191, 1); + lean_dec_ref(x_166); + x_173 = lean_box(0); } -lean_ctor_set(x_191, 0, x_23); -lean_ctor_set(x_191, 1, x_189); -return x_191; +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(0, 5, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_16); +lean_ctor_set(x_174, 1, x_169); +lean_ctor_set(x_174, 2, x_170); +lean_ctor_set(x_174, 3, x_171); +lean_ctor_set(x_174, 4, x_172); +x_175 = lean_st_ref_set(x_5, x_174, x_167); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_176 = lean_ctor_get(x_175, 1); +lean_inc(x_176); +lean_dec(x_175); +x_177 = lean_ctor_get(x_23, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_23, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_179 = x_23; +} else { + lean_dec_ref(x_23); + x_179 = lean_box(0); +} +x_180 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_176); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_dec(x_168); +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_183 = x_180; +} else { + lean_dec_ref(x_180); + x_183 = lean_box(0); +} +if (lean_is_scalar(x_183)) { + x_184 = lean_alloc_ctor(0, 2, 0); +} else { + x_184 = x_183; +} +lean_ctor_set(x_184, 0, x_181); +lean_ctor_set(x_184, 1, x_182); +return x_184; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; +x_185 = lean_ctor_get(x_180, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_180, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_187 = x_180; +} else { + lean_dec_ref(x_180); + x_187 = lean_box(0); +} +x_188 = l_Lean_Exception_isInterrupt(x_185); +if (x_188 == 0) +{ +uint8_t x_189; +x_189 = l_Lean_Exception_isRuntime(x_185); +if (x_189 == 0) +{ +if (lean_obj_tag(x_185) == 0) +{ +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; +x_190 = lean_ctor_get(x_185, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_191 = x_185; +} else { + lean_dec_ref(x_185); + x_191 = lean_box(0); +} +x_192 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +if (lean_is_scalar(x_179)) { + x_193 = lean_alloc_ctor(6, 2, 0); +} else { + x_193 = x_179; + lean_ctor_set_tag(x_193, 6); +} +lean_ctor_set(x_193, 0, x_178); +lean_ctor_set(x_193, 1, x_192); +if (lean_is_scalar(x_168)) { + x_194 = lean_alloc_ctor(6, 2, 0); +} else { + x_194 = x_168; + lean_ctor_set_tag(x_194, 6); +} +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +x_195 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_190); +if (lean_is_scalar(x_191)) { + x_196 = lean_alloc_ctor(0, 2, 0); +} else { + x_196 = x_191; +} +lean_ctor_set(x_196, 0, x_177); +lean_ctor_set(x_196, 1, x_195); +if (lean_is_scalar(x_187)) { + x_197 = lean_alloc_ctor(1, 2, 0); +} else { + x_197 = x_187; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_186); +return x_197; +} +else +{ +lean_object* x_198; +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_dec(x_168); +if (lean_is_scalar(x_187)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_187; +} +lean_ctor_set(x_198, 0, x_185); +lean_ctor_set(x_198, 1, x_186); +return x_198; +} +} +else +{ +lean_object* x_199; +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_dec(x_168); +if (lean_is_scalar(x_187)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_187; +} +lean_ctor_set(x_199, 0, x_185); +lean_ctor_set(x_199, 1, x_186); +return x_199; +} +} +else +{ +lean_object* x_200; +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_dec(x_168); +if (lean_is_scalar(x_187)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_187; +} +lean_ctor_set(x_200, 0, x_185); +lean_ctor_set(x_200, 1, x_186); +return x_200; +} +} +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_168); +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_201 = lean_ctor_get(x_175, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_202 = x_175; +} else { + lean_dec_ref(x_175); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_202; + lean_ctor_set_tag(x_203, 1); +} +lean_ctor_set(x_203, 0, x_23); +lean_ctor_set(x_203, 1, x_201); +return x_203; } } } @@ -9800,263 +9954,6 @@ return x_17; } else { -lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_192 = lean_ctor_get(x_17, 0); -x_193 = lean_ctor_get(x_17, 1); -lean_inc(x_193); -lean_inc(x_192); -lean_dec(x_17); -x_194 = l_Lean_Exception_isRuntime(x_192); -if (x_194 == 0) -{ -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_195 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_193); -x_196 = lean_ctor_get(x_195, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = lean_st_ref_take(x_5, x_196); -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_201 = x_198; -} else { - lean_dec_ref(x_198); - x_201 = lean_box(0); -} -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -x_203 = lean_ctor_get(x_199, 2); -lean_inc(x_203); -x_204 = lean_ctor_get(x_199, 3); -lean_inc(x_204); -x_205 = lean_ctor_get(x_199, 4); -lean_inc(x_205); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - lean_ctor_release(x_199, 2); - lean_ctor_release(x_199, 3); - lean_ctor_release(x_199, 4); - x_206 = x_199; -} else { - lean_dec_ref(x_199); - x_206 = lean_box(0); -} -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(0, 5, 0); -} else { - x_207 = x_206; -} -lean_ctor_set(x_207, 0, x_16); -lean_ctor_set(x_207, 1, x_202); -lean_ctor_set(x_207, 2, x_203); -lean_ctor_set(x_207, 3, x_204); -lean_ctor_set(x_207, 4, x_205); -x_208 = lean_st_ref_set(x_5, x_207, x_200); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -lean_dec(x_208); -x_210 = lean_ctor_get(x_192, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_192, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - lean_ctor_release(x_192, 1); - x_212 = x_192; -} else { - lean_dec_ref(x_192); - x_212 = lean_box(0); -} -x_213 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_209); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_210); -lean_dec(x_201); -lean_dec(x_197); -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_216 = x_213; -} else { - lean_dec_ref(x_213); - x_216 = lean_box(0); -} -if (lean_is_scalar(x_216)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_216; -} -lean_ctor_set(x_217, 0, x_214); -lean_ctor_set(x_217, 1, x_215); -return x_217; -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; -x_218 = lean_ctor_get(x_213, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_213, 1); -lean_inc(x_219); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_220 = x_213; -} else { - lean_dec_ref(x_213); - x_220 = lean_box(0); -} -x_221 = l_Lean_Exception_isRuntime(x_218); -if (x_221 == 0) -{ -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_222 = lean_ctor_get(x_218, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_223 = x_218; -} else { - lean_dec_ref(x_218); - x_223 = lean_box(0); -} -x_224 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; -if (lean_is_scalar(x_212)) { - x_225 = lean_alloc_ctor(6, 2, 0); -} else { - x_225 = x_212; - lean_ctor_set_tag(x_225, 6); -} -lean_ctor_set(x_225, 0, x_211); -lean_ctor_set(x_225, 1, x_224); -if (lean_is_scalar(x_201)) { - x_226 = lean_alloc_ctor(6, 2, 0); -} else { - x_226 = x_201; - lean_ctor_set_tag(x_226, 6); -} -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_224); -if (lean_is_scalar(x_197)) { - x_227 = lean_alloc_ctor(6, 2, 0); -} else { - x_227 = x_197; - lean_ctor_set_tag(x_227, 6); -} -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_222); -if (lean_is_scalar(x_223)) { - x_228 = lean_alloc_ctor(0, 2, 0); -} else { - x_228 = x_223; -} -lean_ctor_set(x_228, 0, x_210); -lean_ctor_set(x_228, 1, x_227); -if (lean_is_scalar(x_220)) { - x_229 = lean_alloc_ctor(1, 2, 0); -} else { - x_229 = x_220; -} -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_219); -return x_229; -} -else -{ -lean_object* x_230; -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_210); -lean_dec(x_201); -lean_dec(x_197); -if (lean_is_scalar(x_220)) { - x_230 = lean_alloc_ctor(1, 2, 0); -} else { - x_230 = x_220; -} -lean_ctor_set(x_230, 0, x_218); -lean_ctor_set(x_230, 1, x_219); -return x_230; -} -} -else -{ -lean_object* x_231; -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_210); -lean_dec(x_201); -lean_dec(x_197); -if (lean_is_scalar(x_220)) { - x_231 = lean_alloc_ctor(1, 2, 0); -} else { - x_231 = x_220; -} -lean_ctor_set(x_231, 0, x_218); -lean_ctor_set(x_231, 1, x_219); -return x_231; -} -} -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; -lean_dec(x_201); -lean_dec(x_197); -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_232 = lean_ctor_get(x_208, 1); -lean_inc(x_232); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_233 = x_208; -} else { - lean_dec_ref(x_208); - x_233 = lean_box(0); -} -if (lean_is_scalar(x_233)) { - x_234 = lean_alloc_ctor(1, 2, 0); -} else { - x_234 = x_233; - lean_ctor_set_tag(x_234, 1); -} -lean_ctor_set(x_234, 0, x_192); -lean_ctor_set(x_234, 1, x_232); -return x_234; -} -} -else -{ -lean_object* x_235; lean_dec(x_16); lean_dec(x_12); lean_dec(x_7); @@ -10066,10 +9963,325 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_192); -lean_ctor_set(x_235, 1, x_193); -return x_235; +return x_17; +} +} +else +{ +lean_object* x_204; lean_object* x_205; uint8_t x_206; +x_204 = lean_ctor_get(x_17, 0); +x_205 = lean_ctor_get(x_17, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_17); +x_206 = l_Lean_Exception_isInterrupt(x_204); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = l_Lean_Exception_isRuntime(x_204); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_208 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_205); +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + lean_ctor_release(x_208, 1); + x_210 = x_208; +} else { + lean_dec_ref(x_208); + x_210 = lean_box(0); +} +x_211 = lean_st_ref_take(x_5, x_209); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_214 = x_211; +} else { + lean_dec_ref(x_211); + x_214 = lean_box(0); +} +x_215 = lean_ctor_get(x_212, 1); +lean_inc(x_215); +x_216 = lean_ctor_get(x_212, 2); +lean_inc(x_216); +x_217 = lean_ctor_get(x_212, 3); +lean_inc(x_217); +x_218 = lean_ctor_get(x_212, 4); +lean_inc(x_218); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + lean_ctor_release(x_212, 2); + lean_ctor_release(x_212, 3); + lean_ctor_release(x_212, 4); + x_219 = x_212; +} else { + lean_dec_ref(x_212); + x_219 = lean_box(0); +} +if (lean_is_scalar(x_219)) { + x_220 = lean_alloc_ctor(0, 5, 0); +} else { + x_220 = x_219; +} +lean_ctor_set(x_220, 0, x_16); +lean_ctor_set(x_220, 1, x_215); +lean_ctor_set(x_220, 2, x_216); +lean_ctor_set(x_220, 3, x_217); +lean_ctor_set(x_220, 4, x_218); +x_221 = lean_st_ref_set(x_5, x_220, x_213); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_222 = lean_ctor_get(x_221, 1); +lean_inc(x_222); +lean_dec(x_221); +x_223 = lean_ctor_get(x_204, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_204, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_225 = x_204; +} else { + lean_dec_ref(x_204); + x_225 = lean_box(0); +} +x_226 = l_Lean_Elab_wfRecursion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_222); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); +lean_dec(x_214); +lean_dec(x_210); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +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); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(0, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; +x_231 = lean_ctor_get(x_226, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_226, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_233 = x_226; +} else { + lean_dec_ref(x_226); + x_233 = lean_box(0); +} +x_234 = l_Lean_Exception_isInterrupt(x_231); +if (x_234 == 0) +{ +uint8_t x_235; +x_235 = l_Lean_Exception_isRuntime(x_231); +if (x_235 == 0) +{ +if (lean_obj_tag(x_231) == 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; +x_236 = lean_ctor_get(x_231, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_237 = x_231; +} else { + lean_dec_ref(x_231); + x_237 = lean_box(0); +} +x_238 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2___closed__3; +if (lean_is_scalar(x_225)) { + x_239 = lean_alloc_ctor(6, 2, 0); +} else { + x_239 = x_225; + lean_ctor_set_tag(x_239, 6); +} +lean_ctor_set(x_239, 0, x_224); +lean_ctor_set(x_239, 1, x_238); +if (lean_is_scalar(x_214)) { + x_240 = lean_alloc_ctor(6, 2, 0); +} else { + x_240 = x_214; + lean_ctor_set_tag(x_240, 6); +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +if (lean_is_scalar(x_210)) { + x_241 = lean_alloc_ctor(6, 2, 0); +} else { + x_241 = x_210; + lean_ctor_set_tag(x_241, 6); +} +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_236); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_237; +} +lean_ctor_set(x_242, 0, x_223); +lean_ctor_set(x_242, 1, x_241); +if (lean_is_scalar(x_233)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_233; +} +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_232); +return x_243; +} +else +{ +lean_object* x_244; +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); +lean_dec(x_214); +lean_dec(x_210); +if (lean_is_scalar(x_233)) { + x_244 = lean_alloc_ctor(1, 2, 0); +} else { + x_244 = x_233; +} +lean_ctor_set(x_244, 0, x_231); +lean_ctor_set(x_244, 1, x_232); +return x_244; +} +} +else +{ +lean_object* x_245; +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); +lean_dec(x_214); +lean_dec(x_210); +if (lean_is_scalar(x_233)) { + x_245 = lean_alloc_ctor(1, 2, 0); +} else { + x_245 = x_233; +} +lean_ctor_set(x_245, 0, x_231); +lean_ctor_set(x_245, 1, x_232); +return x_245; +} +} +else +{ +lean_object* x_246; +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); +lean_dec(x_214); +lean_dec(x_210); +if (lean_is_scalar(x_233)) { + x_246 = lean_alloc_ctor(1, 2, 0); +} else { + x_246 = x_233; +} +lean_ctor_set(x_246, 0, x_231); +lean_ctor_set(x_246, 1, x_232); +return x_246; +} +} +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_214); +lean_dec(x_210); +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_247 = lean_ctor_get(x_221, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_248 = x_221; +} else { + lean_dec_ref(x_221); + x_248 = lean_box(0); +} +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); +} else { + x_249 = x_248; + lean_ctor_set_tag(x_249, 1); +} +lean_ctor_set(x_249, 0, x_204); +lean_ctor_set(x_249, 1, x_247); +return x_249; +} +} +else +{ +lean_object* x_250; +lean_dec(x_16); +lean_dec(x_12); +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_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_204); +lean_ctor_set(x_250, 1, x_205); +return x_250; +} +} +else +{ +lean_object* x_251; +lean_dec(x_16); +lean_dec(x_12); +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_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_204); +lean_ctor_set(x_251, 1, x_205); +return x_251; } } } @@ -10078,65 +10290,65 @@ return x_235; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__4(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) { _start: { -lean_object* x_11; lean_object* x_23; lean_object* x_65; lean_object* x_66; lean_object* x_196; lean_object* x_238; lean_object* x_275; uint8_t x_276; +lean_object* x_11; lean_object* x_23; lean_object* x_65; lean_object* x_66; lean_object* x_206; lean_object* x_248; lean_object* x_285; uint8_t x_286; lean_dec(x_3); x_65 = lean_array_get_size(x_1); -x_275 = lean_unsigned_to_nat(1u); -x_276 = lean_nat_dec_eq(x_65, x_275); -if (x_276 == 0) +x_285 = lean_unsigned_to_nat(1u); +x_286 = lean_nat_dec_eq(x_65, x_285); +if (x_286 == 0) { -lean_object* x_277; -x_277 = lean_box(0); -x_238 = x_277; -goto block_274; +lean_object* x_287; +x_287 = lean_box(0); +x_248 = x_287; +goto block_284; } else { -lean_object* x_278; uint8_t x_279; -x_278 = lean_unsigned_to_nat(0u); -x_279 = lean_nat_dec_lt(x_278, x_65); -if (x_279 == 0) +lean_object* x_288; uint8_t x_289; +x_288 = lean_unsigned_to_nat(0u); +x_289 = lean_nat_dec_lt(x_288, x_65); +if (x_289 == 0) { -lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_280 = l_Lean_Elab_instInhabitedPreDefinition; -x_281 = l___private_Init_GetElem_0__outOfBounds___rarg(x_280); -x_282 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(x_281); -if (x_282 == 0) +lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_290 = l_Lean_Elab_instInhabitedPreDefinition; +x_291 = l___private_Init_GetElem_0__outOfBounds___rarg(x_290); +x_292 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(x_291); +if (x_292 == 0) { -lean_object* x_283; -x_283 = lean_box(0); -x_238 = x_283; -goto block_274; +lean_object* x_293; +x_293 = lean_box(0); +x_248 = x_293; +goto block_284; } else { -lean_object* x_284; +lean_object* x_294; lean_dec(x_65); lean_dec(x_1); -x_284 = l___private_Init_GetElem_0__outOfBounds___rarg(x_280); -x_23 = x_284; +x_294 = l___private_Init_GetElem_0__outOfBounds___rarg(x_290); +x_23 = x_294; goto block_64; } } else { -lean_object* x_285; uint8_t x_286; -x_285 = lean_array_fget(x_1, x_278); -lean_inc(x_285); -x_286 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(x_285); -if (x_286 == 0) +lean_object* x_295; uint8_t x_296; +x_295 = lean_array_fget(x_1, x_288); +lean_inc(x_295); +x_296 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(x_295); +if (x_296 == 0) { -lean_object* x_287; -lean_dec(x_285); -x_287 = lean_box(0); -x_238 = x_287; -goto block_274; +lean_object* x_297; +lean_dec(x_295); +x_297 = lean_box(0); +x_248 = x_297; +goto block_284; } else { lean_dec(x_65); lean_dec(x_1); -x_23 = x_285; +x_23 = x_295; goto block_64; } } @@ -10247,13 +10459,11 @@ x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); x_38 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__1(x_25, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_37); -lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_36); -lean_dec(x_25); return x_38; } else @@ -10315,13 +10525,11 @@ x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); x_51 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__1(x_25, x_49, x_4, x_5, x_6, x_7, x_8, x_9, x_50); -lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_49); -lean_dec(x_25); return x_51; } else @@ -10415,7 +10623,7 @@ return x_63; } } } -block_195: +block_205: { lean_object* x_67; lean_dec(x_66); @@ -10427,7 +10635,7 @@ lean_inc(x_1); x_67 = l_Lean_Elab_ensureFunIndReservedNamesAvailable(x_1, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_67) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_153; +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_161; x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); if (lean_is_exclusive(x_67)) { @@ -10442,26 +10650,26 @@ x_70 = lean_unsigned_to_nat(0u); x_71 = lean_nat_dec_lt(x_70, x_65); if (x_71 == 0) { -lean_object* x_184; -x_184 = lean_box(0); -x_153 = x_184; -goto block_183; +lean_object* x_194; +x_194 = lean_box(0); +x_161 = x_194; +goto block_193; } else { -size_t x_185; uint8_t x_186; -x_185 = lean_usize_of_nat(x_65); -x_186 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__8(x_1, x_2, x_185); -if (x_186 == 0) +size_t x_195; uint8_t x_196; +x_195 = lean_usize_of_nat(x_65); +x_196 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__8(x_1, x_2, x_195); +if (x_196 == 0) { -lean_object* x_187; -x_187 = lean_box(0); -x_153 = x_187; -goto block_183; +lean_object* x_197; +x_197 = lean_box(0); +x_161 = x_197; +goto block_193; } else { -lean_object* x_188; +lean_object* x_198; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10469,8 +10677,8 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_188 = l_Lean_Elab_wfRecursion(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_68); -if (lean_obj_tag(x_188) == 0) +x_198 = l_Lean_Elab_wfRecursion(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_68); +if (lean_obj_tag(x_198) == 0) { lean_dec(x_69); lean_dec(x_65); @@ -10481,30 +10689,34 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_11 = x_188; +x_11 = x_198; goto block_22; } else { -lean_object* x_189; lean_object* x_190; -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_72 = x_189; -x_73 = x_190; -goto block_152; +lean_object* x_199; lean_object* x_200; +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_72 = x_199; +x_73 = x_200; +goto block_160; } } } -block_152: +block_160: { uint8_t x_74; -x_74 = l_Lean_Exception_isRuntime(x_72); +x_74 = l_Lean_Exception_isInterrupt(x_72); if (x_74 == 0) { -lean_object* x_75; +uint8_t x_75; +x_75 = l_Lean_Exception_isRuntime(x_72); +if (x_75 == 0) +{ +lean_object* x_76; lean_dec(x_69); lean_inc(x_9); lean_inc(x_8); @@ -10512,156 +10724,182 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_75 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_73); -if (lean_obj_tag(x_75) == 0) +x_76 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_73); +if (lean_obj_tag(x_76) == 0) { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +uint8_t x_77; +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_90; -x_77 = lean_ctor_get(x_75, 1); -x_78 = lean_ctor_get(x_75, 0); -lean_dec(x_78); -x_79 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_77); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +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_93; +x_78 = lean_ctor_get(x_76, 1); +x_79 = lean_ctor_get(x_76, 0); +lean_dec(x_79); +x_80 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_78); +x_81 = lean_ctor_get(x_80, 0); 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; +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; } else { - lean_dec_ref(x_79); - x_82 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } if (x_71 == 0) { -lean_object* x_103; -lean_free_object(x_75); +lean_object* x_107; +lean_free_object(x_76); lean_dec(x_65); -x_103 = lean_box(0); -x_90 = x_103; -goto block_102; +x_107 = lean_box(0); +x_93 = x_107; +goto block_106; } else { -size_t x_104; uint8_t x_105; -x_104 = lean_usize_of_nat(x_65); -x_105 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(x_2, x_1, x_65, x_71, x_1, x_2, x_104); +size_t x_108; uint8_t x_109; +x_108 = lean_usize_of_nat(x_65); +x_109 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(x_2, x_1, x_65, x_71, x_1, x_2, x_108); lean_dec(x_65); -if (x_105 == 0) +if (x_109 == 0) { -lean_object* x_106; -lean_free_object(x_75); -x_106 = lean_box(0); -x_90 = x_106; -goto block_102; +lean_object* x_110; +lean_free_object(x_76); +x_110 = lean_box(0); +x_93 = x_110; +goto block_106; } else { -uint8_t x_107; -x_107 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__6(x_1, x_2, x_104); -if (x_107 == 0) +uint8_t x_111; +x_111 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__6(x_1, x_2, x_108); +if (x_111 == 0) { -lean_object* x_108; -lean_free_object(x_75); +lean_object* x_112; +lean_free_object(x_76); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_108 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_81); +x_112 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_82); lean_dec(x_1); -if (lean_obj_tag(x_108) == 0) +if (lean_obj_tag(x_112) == 0) { -lean_dec(x_82); -lean_dec(x_80); -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_11 = x_108; -goto block_22; -} -else -{ -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_83 = x_109; -x_84 = x_110; -goto block_89; -} -} -else -{ -lean_object* x_111; -lean_dec(x_82); -lean_dec(x_80); -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_1); -x_111 = lean_box(0); -lean_ctor_set(x_75, 1, x_81); -lean_ctor_set(x_75, 0, x_111); -x_11 = x_75; -goto block_22; -} -} -} -block_89: -{ -uint8_t x_85; -x_85 = l_Lean_Exception_isRuntime(x_83); -if (x_85 == 0) -{ -uint8_t x_86; lean_object* x_87; lean_dec(x_83); -lean_dec(x_82); -x_86 = 0; -x_87 = l_Lean_Elab_Term_SavedState_restore(x_80, x_86, x_4, x_5, x_6, x_7, x_8, x_9, x_84); -x_11 = x_87; -goto block_22; -} -else -{ -lean_object* x_88; -lean_dec(x_80); +lean_dec(x_81); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_82)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_82; - lean_ctor_set_tag(x_88, 1); +x_11 = x_112; +goto block_22; } -lean_ctor_set(x_88, 0, x_83); -lean_ctor_set(x_88, 1, x_84); -x_11 = x_88; +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_84 = x_113; +x_85 = x_114; +goto block_92; +} +} +else +{ +lean_object* x_115; +lean_dec(x_83); +lean_dec(x_81); +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_1); +x_115 = lean_box(0); +lean_ctor_set(x_76, 1, x_82); +lean_ctor_set(x_76, 0, x_115); +x_11 = x_76; goto block_22; } } -block_102: +} +block_92: { -uint8_t x_91; lean_object* x_92; -lean_dec(x_90); -x_91 = 1; +uint8_t x_86; +x_86 = l_Lean_Exception_isInterrupt(x_84); +if (x_86 == 0) +{ +uint8_t x_87; +x_87 = l_Lean_Exception_isRuntime(x_84); +if (x_87 == 0) +{ +uint8_t x_88; lean_object* x_89; +lean_dec(x_84); +lean_dec(x_83); +x_88 = 0; +x_89 = l_Lean_Elab_Term_SavedState_restore(x_81, x_88, x_4, x_5, x_6, x_7, x_8, x_9, x_85); +x_11 = x_89; +goto block_22; +} +else +{ +lean_object* x_90; +lean_dec(x_81); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_83)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_83; + lean_ctor_set_tag(x_90, 1); +} +lean_ctor_set(x_90, 0, x_84); +lean_ctor_set(x_90, 1, x_85); +x_11 = x_90; +goto block_22; +} +} +else +{ +lean_object* x_91; +lean_dec(x_81); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_83)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_83; + lean_ctor_set_tag(x_91, 1); +} +lean_ctor_set(x_91, 0, x_84); +lean_ctor_set(x_91, 1, x_85); +x_11 = x_91; +goto block_22; +} +} +block_106: +{ +uint8_t x_94; lean_object* x_95; +lean_dec(x_93); +x_94 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10669,11 +10907,11 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_92 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_91, x_4, x_5, x_6, x_7, x_8, x_9, x_81); -if (lean_obj_tag(x_92) == 0) +x_95 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_94, x_4, x_5, x_6, x_7, x_8, x_9, x_82); +if (lean_obj_tag(x_95) == 0) { -lean_dec(x_82); -lean_dec(x_80); +lean_dec(x_83); +lean_dec(x_81); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10681,164 +10919,176 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_11 = x_92; +x_11 = x_95; goto block_22; } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = l_Lean_Exception_isRuntime(x_93); -if (x_95 == 0) +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = l_Lean_Exception_isInterrupt(x_96); +if (x_98 == 0) { -uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_93); -x_96 = 0; +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_96); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_96); +x_100 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_80); -x_97 = l_Lean_Elab_Term_SavedState_restore(x_80, x_96, x_4, x_5, x_6, x_7, x_8, x_9, x_94); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); +lean_inc(x_81); +x_101 = l_Lean_Elab_Term_SavedState_restore(x_81, x_100, x_4, x_5, x_6, x_7, x_8, x_9, x_97); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_99 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_98); +x_103 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_102); lean_dec(x_1); -if (lean_obj_tag(x_99) == 0) +if (lean_obj_tag(x_103) == 0) { -lean_dec(x_82); -lean_dec(x_80); +lean_dec(x_83); +lean_dec(x_81); 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_11 = x_99; +x_11 = x_103; goto block_22; } else { -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_83 = x_100; -x_84 = x_101; -goto block_89; +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_84 = x_104; +x_85 = x_105; +goto block_92; } } else { lean_dec(x_1); -x_83 = x_93; -x_84 = x_94; -goto block_89; +x_84 = x_96; +x_85 = x_97; +goto block_92; +} +} +else +{ +lean_dec(x_1); +x_84 = x_96; +x_85 = x_97; +goto block_92; } } } } 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_object* x_124; -x_112 = lean_ctor_get(x_75, 1); -lean_inc(x_112); -lean_dec(x_75); -x_113 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_112); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_116 = x_113; +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_130; +x_116 = lean_ctor_get(x_76, 1); +lean_inc(x_116); +lean_dec(x_76); +x_117 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_116); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_113); - x_116 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } if (x_71 == 0) { -lean_object* x_137; +lean_object* x_144; lean_dec(x_65); -x_137 = lean_box(0); -x_124 = x_137; -goto block_136; +x_144 = lean_box(0); +x_130 = x_144; +goto block_143; } else { -size_t x_138; uint8_t x_139; -x_138 = lean_usize_of_nat(x_65); -x_139 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(x_2, x_1, x_65, x_71, x_1, x_2, x_138); +size_t x_145; uint8_t x_146; +x_145 = lean_usize_of_nat(x_65); +x_146 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(x_2, x_1, x_65, x_71, x_1, x_2, x_145); lean_dec(x_65); -if (x_139 == 0) +if (x_146 == 0) { -lean_object* x_140; -x_140 = lean_box(0); -x_124 = x_140; -goto block_136; +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_143; } else { -uint8_t x_141; -x_141 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__6(x_1, x_2, x_138); -if (x_141 == 0) +uint8_t x_148; +x_148 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__6(x_1, x_2, x_145); +if (x_148 == 0) { -lean_object* x_142; +lean_object* x_149; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_142 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_115); +x_149 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_119); lean_dec(x_1); -if (lean_obj_tag(x_142) == 0) +if (lean_obj_tag(x_149) == 0) { -lean_dec(x_116); -lean_dec(x_114); +lean_dec(x_120); +lean_dec(x_118); 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_11 = x_142; +x_11 = x_149; goto block_22; } else { -lean_object* x_143; lean_object* x_144; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_117 = x_143; -x_118 = x_144; -goto block_123; +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_121 = x_150; +x_122 = x_151; +goto block_129; } } else { -lean_object* x_145; lean_object* x_146; -lean_dec(x_116); -lean_dec(x_114); +lean_object* x_152; lean_object* x_153; +lean_dec(x_120); +lean_dec(x_118); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10846,143 +11096,181 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_145 = lean_box(0); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_115); -x_11 = x_146; +x_152 = lean_box(0); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_119); +x_11 = x_153; goto block_22; } } } -block_123: +block_129: { -uint8_t x_119; -x_119 = l_Lean_Exception_isRuntime(x_117); -if (x_119 == 0) +uint8_t x_123; +x_123 = l_Lean_Exception_isInterrupt(x_121); +if (x_123 == 0) { -uint8_t x_120; lean_object* x_121; -lean_dec(x_117); -lean_dec(x_116); -x_120 = 0; -x_121 = l_Lean_Elab_Term_SavedState_restore(x_114, x_120, x_4, x_5, x_6, x_7, x_8, x_9, x_118); -x_11 = x_121; -goto block_22; -} -else -{ -lean_object* x_122; -lean_dec(x_114); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_is_scalar(x_116)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_116; - lean_ctor_set_tag(x_122, 1); -} -lean_ctor_set(x_122, 0, x_117); -lean_ctor_set(x_122, 1, x_118); -x_11 = x_122; -goto block_22; -} -} -block_136: +uint8_t x_124; +x_124 = l_Lean_Exception_isRuntime(x_121); +if (x_124 == 0) { uint8_t x_125; lean_object* x_126; -lean_dec(x_124); -x_125 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_126 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_125, x_4, x_5, x_6, x_7, x_8, x_9, x_115); -if (lean_obj_tag(x_126) == 0) -{ -lean_dec(x_116); -lean_dec(x_114); -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_1); +lean_dec(x_121); +lean_dec(x_120); +x_125 = 0; +x_126 = l_Lean_Elab_Term_SavedState_restore(x_118, x_125, x_4, x_5, x_6, x_7, x_8, x_9, x_122); x_11 = x_126; goto block_22; } else { -lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_Exception_isRuntime(x_127); -if (x_129 == 0) -{ -uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_127); -x_130 = 0; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_114); -x_131 = l_Lean_Elab_Term_SavedState_restore(x_114, x_130, x_4, x_5, x_6, x_7, x_8, x_9, x_128); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec(x_131); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_133 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_132); -lean_dec(x_1); -if (lean_obj_tag(x_133) == 0) -{ -lean_dec(x_116); -lean_dec(x_114); +lean_object* x_127; +lean_dec(x_118); 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_11 = x_133; +if (lean_is_scalar(x_120)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_120; + lean_ctor_set_tag(x_127, 1); +} +lean_ctor_set(x_127, 0, x_121); +lean_ctor_set(x_127, 1, x_122); +x_11 = x_127; +goto block_22; +} +} +else +{ +lean_object* x_128; +lean_dec(x_118); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_120)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_120; + lean_ctor_set_tag(x_128, 1); +} +lean_ctor_set(x_128, 0, x_121); +lean_ctor_set(x_128, 1, x_122); +x_11 = x_128; +goto block_22; +} +} +block_143: +{ +uint8_t x_131; lean_object* x_132; +lean_dec(x_130); +x_131 = 1; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_132 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_119); +if (lean_obj_tag(x_132) == 0) +{ +lean_dec(x_120); +lean_dec(x_118); +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_1); +x_11 = x_132; goto block_22; } else { -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_133, 0); +lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); +lean_dec(x_132); +x_135 = l_Lean_Exception_isInterrupt(x_133); +if (x_135 == 0) +{ +uint8_t x_136; +x_136 = l_Lean_Exception_isRuntime(x_133); +if (x_136 == 0) +{ +uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_dec(x_133); -x_117 = x_134; -x_118 = x_135; -goto block_123; +x_137 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_118); +x_138 = l_Lean_Elab_Term_SavedState_restore(x_118, x_137, x_4, x_5, x_6, x_7, x_8, x_9, x_134); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_140 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAsAxioms(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_139); +lean_dec(x_1); +if (lean_obj_tag(x_140) == 0) +{ +lean_dec(x_120); +lean_dec(x_118); +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_11 = x_140; +goto block_22; +} +else +{ +lean_object* x_141; lean_object* x_142; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_121 = x_141; +x_122 = x_142; +goto block_129; } } else { lean_dec(x_1); -x_117 = x_127; -x_118 = x_128; -goto block_123; +x_121 = x_133; +x_122 = x_134; +goto block_129; +} +} +else +{ +lean_dec(x_1); +x_121 = x_133; +x_122 = x_134; +goto block_129; } } } @@ -10990,7 +11278,7 @@ goto block_123; } else { -uint8_t x_147; +uint8_t x_154; lean_dec(x_65); lean_dec(x_9); lean_dec(x_8); @@ -10999,31 +11287,31 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_147 = !lean_is_exclusive(x_75); -if (x_147 == 0) +x_154 = !lean_is_exclusive(x_76); +if (x_154 == 0) { -x_11 = x_75; +x_11 = x_76; goto block_22; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_75, 0); -x_149 = lean_ctor_get(x_75, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_75); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -x_11 = x_150; +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_76, 0); +x_156 = lean_ctor_get(x_76, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_76); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +x_11 = x_157; goto block_22; } } } else { -lean_object* x_151; +lean_object* x_158; lean_dec(x_65); lean_dec(x_9); lean_dec(x_8); @@ -11033,98 +11321,126 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); if (lean_is_scalar(x_69)) { - x_151 = lean_alloc_ctor(1, 2, 0); + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_151 = x_69; - lean_ctor_set_tag(x_151, 1); + x_158 = x_69; + lean_ctor_set_tag(x_158, 1); } -lean_ctor_set(x_151, 0, x_72); -lean_ctor_set(x_151, 1, x_73); -x_11 = x_151; +lean_ctor_set(x_158, 0, x_72); +lean_ctor_set(x_158, 1, x_73); +x_11 = x_158; goto block_22; } } -block_183: +else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_153); +lean_object* x_159; +lean_dec(x_65); +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_1); +if (lean_is_scalar(x_69)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_69; + lean_ctor_set_tag(x_159, 1); +} +lean_ctor_set(x_159, 0, x_72); +lean_ctor_set(x_159, 1, x_73); +x_11 = x_159; +goto block_22; +} +} +block_193: +{ +lean_object* x_162; lean_object* x_163; +lean_dec(x_161); lean_inc(x_1); -x_154 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2), 2, 1); -lean_closure_set(x_154, 0, x_1); +x_162 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__2), 2, 1); +lean_closure_set(x_162, 0, x_1); if (x_71 == 0) { -lean_object* x_180; lean_object* x_181; -x_180 = l_Lean_Elab_instInhabitedPreDefinition; -x_181 = l___private_Init_GetElem_0__outOfBounds___rarg(x_180); -x_155 = x_181; -goto block_179; +lean_object* x_190; lean_object* x_191; +x_190 = l_Lean_Elab_instInhabitedPreDefinition; +x_191 = l___private_Init_GetElem_0__outOfBounds___rarg(x_190); +x_163 = x_191; +goto block_189; } else { -lean_object* x_182; -x_182 = lean_array_fget(x_1, x_70); -x_155 = x_182; -goto block_179; +lean_object* x_192; +x_192 = lean_array_fget(x_1, x_70); +x_163 = x_192; +goto block_189; } -block_179: +block_189: { -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; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -lean_dec(x_155); -x_157 = lean_ctor_get(x_8, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_8, 1); -lean_inc(x_158); -x_159 = lean_ctor_get(x_8, 2); -lean_inc(x_159); -x_160 = lean_ctor_get(x_8, 3); -lean_inc(x_160); -x_161 = lean_ctor_get(x_8, 4); -lean_inc(x_161); -x_162 = lean_ctor_get(x_8, 5); -lean_inc(x_162); -x_163 = lean_ctor_get(x_8, 6); -lean_inc(x_163); -x_164 = lean_ctor_get(x_8, 7); +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; uint8_t x_176; lean_object* x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_164 = lean_ctor_get(x_163, 0); lean_inc(x_164); -x_165 = lean_ctor_get(x_8, 8); +lean_dec(x_163); +x_165 = lean_ctor_get(x_8, 0); lean_inc(x_165); -x_166 = lean_ctor_get(x_8, 9); +x_166 = lean_ctor_get(x_8, 1); lean_inc(x_166); -x_167 = lean_ctor_get(x_8, 10); +x_167 = lean_ctor_get(x_8, 2); lean_inc(x_167); -x_168 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_169 = l_Lean_replaceRef(x_156, x_162); -lean_dec(x_162); -lean_dec(x_156); -x_170 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_170, 0, x_157); -lean_ctor_set(x_170, 1, x_158); -lean_ctor_set(x_170, 2, x_159); -lean_ctor_set(x_170, 3, x_160); -lean_ctor_set(x_170, 4, x_161); -lean_ctor_set(x_170, 5, x_169); -lean_ctor_set(x_170, 6, x_163); -lean_ctor_set(x_170, 7, x_164); -lean_ctor_set(x_170, 8, x_165); -lean_ctor_set(x_170, 9, x_166); -lean_ctor_set(x_170, 10, x_167); -lean_ctor_set_uint8(x_170, sizeof(void*)*11, x_168); +x_168 = lean_ctor_get(x_8, 3); +lean_inc(x_168); +x_169 = lean_ctor_get(x_8, 4); +lean_inc(x_169); +x_170 = lean_ctor_get(x_8, 5); +lean_inc(x_170); +x_171 = lean_ctor_get(x_8, 6); +lean_inc(x_171); +x_172 = lean_ctor_get(x_8, 7); +lean_inc(x_172); +x_173 = lean_ctor_get(x_8, 8); +lean_inc(x_173); +x_174 = lean_ctor_get(x_8, 9); +lean_inc(x_174); +x_175 = lean_ctor_get(x_8, 10); +lean_inc(x_175); +x_176 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_177 = lean_ctor_get(x_8, 11); +lean_inc(x_177); +x_178 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_179 = l_Lean_replaceRef(x_164, x_170); +lean_dec(x_170); +lean_dec(x_164); +x_180 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_180, 0, x_165); +lean_ctor_set(x_180, 1, x_166); +lean_ctor_set(x_180, 2, x_167); +lean_ctor_set(x_180, 3, x_168); +lean_ctor_set(x_180, 4, x_169); +lean_ctor_set(x_180, 5, x_179); +lean_ctor_set(x_180, 6, x_171); +lean_ctor_set(x_180, 7, x_172); +lean_ctor_set(x_180, 8, x_173); +lean_ctor_set(x_180, 9, x_174); +lean_ctor_set(x_180, 10, x_175); +lean_ctor_set(x_180, 11, x_177); +lean_ctor_set_uint8(x_180, sizeof(void*)*12, x_176); +lean_ctor_set_uint8(x_180, sizeof(void*)*12 + 1, x_178); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_171 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__3), 8, 3); -lean_closure_set(x_171, 0, x_1); -lean_closure_set(x_171, 1, x_4); -lean_closure_set(x_171, 2, x_5); +x_181 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__3), 8, 3); +lean_closure_set(x_181, 0, x_1); +lean_closure_set(x_181, 1, x_4); +lean_closure_set(x_181, 2, x_5); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); -x_172 = l_Lean_Meta_mapErrorImp___rarg(x_171, x_154, x_6, x_7, x_170, x_9, x_68); -if (lean_obj_tag(x_172) == 0) +x_182 = l_Lean_Meta_mapErrorImp___rarg(x_181, x_162, x_6, x_7, x_180, x_9, x_68); +if (lean_obj_tag(x_182) == 0) { -uint8_t x_173; +uint8_t x_183; lean_dec(x_69); lean_dec(x_65); lean_dec(x_9); @@ -11134,45 +11450,45 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_173 = !lean_is_exclusive(x_172); -if (x_173 == 0) +x_183 = !lean_is_exclusive(x_182); +if (x_183 == 0) { -x_11 = x_172; +x_11 = x_182; goto block_22; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_172, 0); -x_175 = lean_ctor_get(x_172, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_172); -x_176 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -x_11 = x_176; +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_182, 0); +x_185 = lean_ctor_get(x_182, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_182); +x_186 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +x_11 = x_186; goto block_22; } } else { -lean_object* x_177; lean_object* x_178; -x_177 = lean_ctor_get(x_172, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_172, 1); -lean_inc(x_178); -lean_dec(x_172); -x_72 = x_177; -x_73 = x_178; -goto block_152; +lean_object* x_187; lean_object* x_188; +x_187 = lean_ctor_get(x_182, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_182, 1); +lean_inc(x_188); +lean_dec(x_182); +x_72 = x_187; +x_73 = x_188; +goto block_160; } } } } else { -uint8_t x_191; +uint8_t x_201; lean_dec(x_65); lean_dec(x_9); lean_dec(x_8); @@ -11181,68 +11497,68 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_191 = !lean_is_exclusive(x_67); -if (x_191 == 0) +x_201 = !lean_is_exclusive(x_67); +if (x_201 == 0) { return x_67; } else { -lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_192 = lean_ctor_get(x_67, 0); -x_193 = lean_ctor_get(x_67, 1); -lean_inc(x_193); -lean_inc(x_192); +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_67, 0); +x_203 = lean_ctor_get(x_67, 1); +lean_inc(x_203); +lean_inc(x_202); lean_dec(x_67); -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -return x_194; +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; } } } -block_237: +block_247: { -lean_object* x_197; uint8_t x_198; -lean_dec(x_196); -x_197 = lean_unsigned_to_nat(0u); -x_198 = lean_nat_dec_lt(x_197, x_65); -if (x_198 == 0) +lean_object* x_207; uint8_t x_208; +lean_dec(x_206); +x_207 = lean_unsigned_to_nat(0u); +x_208 = lean_nat_dec_lt(x_207, x_65); +if (x_208 == 0) { -lean_object* x_199; -x_199 = lean_box(0); -x_66 = x_199; -goto block_195; +lean_object* x_209; +x_209 = lean_box(0); +x_66 = x_209; +goto block_205; } else { -size_t x_200; uint8_t x_201; -x_200 = lean_usize_of_nat(x_65); -x_201 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__9(x_1, x_2, x_200); -if (x_201 == 0) +size_t x_210; uint8_t x_211; +x_210 = lean_usize_of_nat(x_65); +x_211 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__9(x_1, x_2, x_210); +if (x_211 == 0) { -lean_object* x_202; -x_202 = lean_box(0); -x_66 = x_202; -goto block_195; +lean_object* x_212; +x_212 = lean_box(0); +x_66 = x_212; +goto block_205; } else { -lean_object* x_203; lean_object* x_204; -x_203 = lean_box(0); +lean_object* x_213; lean_object* x_214; +x_213 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_204 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__10(x_1, x_200, x_2, x_203, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_204) == 0) +x_214 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__10(x_1, x_210, x_2, x_213, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_205; uint8_t x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -lean_dec(x_204); -x_206 = 0; +lean_object* x_215; uint8_t x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_214, 1); +lean_inc(x_215); +lean_dec(x_214); +x_216 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -11250,79 +11566,22 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_207 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_206, x_4, x_5, x_6, x_7, x_8, x_9, x_205); -if (lean_obj_tag(x_207) == 0) +x_217 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(x_1, x_216, x_4, x_5, x_6, x_7, x_8, x_9, x_215); +if (lean_obj_tag(x_217) == 0) { -uint8_t x_208; -x_208 = !lean_is_exclusive(x_207); -if (x_208 == 0) +uint8_t x_218; +x_218 = !lean_is_exclusive(x_217); +if (x_218 == 0) { -lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_209 = lean_ctor_get(x_207, 1); -x_210 = lean_ctor_get(x_207, 0); -lean_dec(x_210); -x_211 = lean_nat_dec_le(x_65, x_65); -lean_dec(x_65); -if (x_211 == 0) -{ -lean_object* x_212; -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_1); -x_212 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -lean_ctor_set(x_207, 0, x_212); -return x_207; -} -else -{ -lean_object* x_213; uint8_t x_214; -lean_free_object(x_207); -x_213 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11(x_1, x_2, x_200, x_203, x_4, x_5, x_6, x_7, x_8, x_9, x_209); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_214 = !lean_is_exclusive(x_213); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; -x_215 = lean_ctor_get(x_213, 0); -lean_dec(x_215); -x_216 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -lean_ctor_set(x_213, 0, x_216); -return x_213; -} -else -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_213, 1); -lean_inc(x_217); -lean_dec(x_213); -x_218 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_217); -return x_219; -} -} -} -else -{ -lean_object* x_220; uint8_t x_221; -x_220 = lean_ctor_get(x_207, 1); -lean_inc(x_220); -lean_dec(x_207); +lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_219 = lean_ctor_get(x_217, 1); +x_220 = lean_ctor_get(x_217, 0); +lean_dec(x_220); x_221 = lean_nat_dec_le(x_65, x_65); lean_dec(x_65); if (x_221 == 0) { -lean_object* x_222; lean_object* x_223; +lean_object* x_222; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11331,77 +11590,101 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); x_222 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_220); +lean_ctor_set(x_217, 0, x_222); +return x_217; +} +else +{ +lean_object* x_223; uint8_t x_224; +lean_free_object(x_217); +x_223 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11(x_1, x_2, x_210, x_213, x_4, x_5, x_6, x_7, x_8, x_9, x_219); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_224 = !lean_is_exclusive(x_223); +if (x_224 == 0) +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_223, 0); +lean_dec(x_225); +x_226 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +lean_ctor_set(x_223, 0, x_226); return x_223; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_224 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11(x_1, x_2, x_200, x_203, x_4, x_5, x_6, x_7, x_8, x_9, x_220); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_225 = lean_ctor_get(x_224, 1); -lean_inc(x_225); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_226 = x_224; -} else { - lean_dec_ref(x_224); - x_226 = lean_box(0); -} -x_227 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -if (lean_is_scalar(x_226)) { - x_228 = lean_alloc_ctor(0, 2, 0); -} else { - x_228 = x_226; -} -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_225); -return x_228; +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_223, 1); +lean_inc(x_227); +lean_dec(x_223); +x_228 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +x_229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_227); +return x_229; } } } else { -uint8_t x_229; -lean_dec(x_65); -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_1); -x_229 = !lean_is_exclusive(x_207); -if (x_229 == 0) -{ -return x_207; -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_230 = lean_ctor_get(x_207, 0); -x_231 = lean_ctor_get(x_207, 1); -lean_inc(x_231); +lean_object* x_230; uint8_t x_231; +x_230 = lean_ctor_get(x_217, 1); lean_inc(x_230); -lean_dec(x_207); -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; +lean_dec(x_217); +x_231 = lean_nat_dec_le(x_65, x_65); +lean_dec(x_65); +if (x_231 == 0) +{ +lean_object* x_232; lean_object* x_233; +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_1); +x_232 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +x_233 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_230); +return x_233; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11(x_1, x_2, x_210, x_213, x_4, x_5, x_6, x_7, x_8, x_9, x_230); +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_234, 1); +lean_inc(x_235); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_236 = x_234; +} else { + lean_dec_ref(x_234); + x_236 = lean_box(0); +} +x_237 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +if (lean_is_scalar(x_236)) { + x_238 = lean_alloc_ctor(0, 2, 0); +} else { + x_238 = x_236; +} +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_235); +return x_238; } } } else { -uint8_t x_233; +uint8_t x_239; lean_dec(x_65); lean_dec(x_9); lean_dec(x_8); @@ -11410,57 +11693,88 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_233 = !lean_is_exclusive(x_204); -if (x_233 == 0) +x_239 = !lean_is_exclusive(x_217); +if (x_239 == 0) { -return x_204; +return x_217; } else { -lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_234 = lean_ctor_get(x_204, 0); -x_235 = lean_ctor_get(x_204, 1); -lean_inc(x_235); -lean_inc(x_234); -lean_dec(x_204); -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -return x_236; +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_217, 0); +x_241 = lean_ctor_get(x_217, 1); +lean_inc(x_241); +lean_inc(x_240); +lean_dec(x_217); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_241); +return x_242; } } } -} -} -block_274: -{ -lean_object* x_239; uint8_t x_240; -lean_dec(x_238); -x_239 = lean_unsigned_to_nat(0u); -x_240 = lean_nat_dec_lt(x_239, x_65); -if (x_240 == 0) -{ -lean_object* x_241; -x_241 = lean_box(0); -x_196 = x_241; -goto block_237; -} else { -size_t x_242; uint8_t x_243; -x_242 = lean_usize_of_nat(x_65); -x_243 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__12(x_1, x_2, x_242); +uint8_t x_243; +lean_dec(x_65); +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_1); +x_243 = !lean_is_exclusive(x_214); if (x_243 == 0) { -lean_object* x_244; -x_244 = lean_box(0); -x_196 = x_244; -goto block_237; +return x_214; } else { -uint8_t x_245; lean_object* x_246; -x_245 = 0; +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_214, 0); +x_245 = lean_ctor_get(x_214, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_214); +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_284: +{ +lean_object* x_249; uint8_t x_250; +lean_dec(x_248); +x_249 = lean_unsigned_to_nat(0u); +x_250 = lean_nat_dec_lt(x_249, x_65); +if (x_250 == 0) +{ +lean_object* x_251; +x_251 = lean_box(0); +x_206 = x_251; +goto block_247; +} +else +{ +size_t x_252; uint8_t x_253; +x_252 = lean_usize_of_nat(x_65); +x_253 = l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__12(x_1, x_2, x_252); +if (x_253 == 0) +{ +lean_object* x_254; +x_254 = lean_box(0); +x_206 = x_254; +goto block_247; +} +else +{ +uint8_t x_255; lean_object* x_256; +x_255 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -11468,22 +11782,22 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_246 = l_Lean_Elab_addAndCompileUnsafe(x_1, x_245, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_246) == 0) +x_256 = l_Lean_Elab_addAndCompileUnsafe(x_1, x_255, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_256) == 0) { -uint8_t x_247; -x_247 = !lean_is_exclusive(x_246); -if (x_247 == 0) +uint8_t x_257; +x_257 = !lean_is_exclusive(x_256); +if (x_257 == 0) { -lean_object* x_248; lean_object* x_249; uint8_t x_250; -x_248 = lean_ctor_get(x_246, 1); -x_249 = lean_ctor_get(x_246, 0); -lean_dec(x_249); -x_250 = lean_nat_dec_le(x_65, x_65); +lean_object* x_258; lean_object* x_259; uint8_t x_260; +x_258 = lean_ctor_get(x_256, 1); +x_259 = lean_ctor_get(x_256, 0); +lean_dec(x_259); +x_260 = lean_nat_dec_le(x_65, x_65); lean_dec(x_65); -if (x_250 == 0) +if (x_260 == 0) { -lean_object* x_251; +lean_object* x_261; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11491,106 +11805,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_251 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -lean_ctor_set(x_246, 0, x_251); -return x_246; +x_261 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +lean_ctor_set(x_256, 0, x_261); +return x_256; } else { -lean_object* x_252; lean_object* x_253; uint8_t x_254; -lean_free_object(x_246); -x_252 = lean_box(0); -x_253 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13(x_1, x_2, x_242, x_252, x_4, x_5, x_6, x_7, x_8, x_9, x_248); -lean_dec(x_9); +lean_object* x_262; lean_object* x_263; uint8_t x_264; +lean_free_object(x_256); +x_262 = lean_box(0); +x_263 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13(x_1, x_2, x_252, x_262, x_4, x_5, x_6, x_7, x_8, x_9, x_258); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_254 = !lean_is_exclusive(x_253); -if (x_254 == 0) +x_264 = !lean_is_exclusive(x_263); +if (x_264 == 0) { -lean_object* x_255; lean_object* x_256; -x_255 = lean_ctor_get(x_253, 0); -lean_dec(x_255); -x_256 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -lean_ctor_set(x_253, 0, x_256); -return x_253; -} -else -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_257 = lean_ctor_get(x_253, 1); -lean_inc(x_257); -lean_dec(x_253); -x_258 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -x_259 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_257); -return x_259; -} -} -} -else -{ -lean_object* x_260; uint8_t x_261; -x_260 = lean_ctor_get(x_246, 1); -lean_inc(x_260); -lean_dec(x_246); -x_261 = lean_nat_dec_le(x_65, x_65); -lean_dec(x_65); -if (x_261 == 0) -{ -lean_object* x_262; lean_object* x_263; -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_1); -x_262 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -x_263 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_260); +lean_object* x_265; lean_object* x_266; +x_265 = lean_ctor_get(x_263, 0); +lean_dec(x_265); +x_266 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +lean_ctor_set(x_263, 0, x_266); return x_263; } 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_box(0); -x_265 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13(x_1, x_2, x_242, x_264, x_4, x_5, x_6, x_7, x_8, x_9, x_260); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} +lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_267 = lean_ctor_get(x_263, 1); +lean_inc(x_267); +lean_dec(x_263); x_268 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} +x_269 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); +lean_ctor_set(x_269, 1, x_267); return x_269; } } } else { -uint8_t x_270; +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_256, 1); +lean_inc(x_270); +lean_dec(x_256); +x_271 = lean_nat_dec_le(x_65, x_65); +lean_dec(x_65); +if (x_271 == 0) +{ +lean_object* x_272; lean_object* x_273; +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_1); +x_272 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_270); +return x_273; +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_274 = lean_box(0); +x_275 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13(x_1, x_2, x_252, x_274, x_4, x_5, x_6, x_7, x_8, x_9, x_270); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_276 = lean_ctor_get(x_275, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_277 = x_275; +} else { + lean_dec_ref(x_275); + x_277 = lean_box(0); +} +x_278 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; +if (lean_is_scalar(x_277)) { + x_279 = lean_alloc_ctor(0, 2, 0); +} else { + x_279 = x_277; +} +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_276); +return x_279; +} +} +} +else +{ +uint8_t x_280; lean_dec(x_65); lean_dec(x_9); lean_dec(x_8); @@ -11599,23 +11911,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_270 = !lean_is_exclusive(x_246); -if (x_270 == 0) +x_280 = !lean_is_exclusive(x_256); +if (x_280 == 0) { -return x_246; +return x_256; } else { -lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_246, 0); -x_272 = lean_ctor_get(x_246, 1); -lean_inc(x_272); -lean_inc(x_271); -lean_dec(x_246); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set(x_273, 1, x_272); -return x_273; +lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_281 = lean_ctor_get(x_256, 0); +x_282 = lean_ctor_get(x_256, 1); +lean_inc(x_282); +lean_inc(x_281); +lean_dec(x_256); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set(x_283, 1, x_282); +return x_283; } } } @@ -12502,7 +12814,6 @@ lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__11(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -12534,7 +12845,6 @@ lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_addPreDefinitions___spec__13(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -12548,13 +12858,11 @@ _start: { lean_object* x_10; x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__14___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); return x_10; } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/MkInhabitant.c b/stage0/stdlib/Lean/Elab/PreDefinition/MkInhabitant.c index 314915e0b3..279b3ad54a 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/MkInhabitant.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/MkInhabitant.c @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* lean_mk_empty_array_with_capacity(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -60,176 +61,133 @@ lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_mkInhabitant_x3f(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) { _start: { +lean_object* x_8; lean_object* x_9; if (x_2 == 0) { -lean_object* x_8; -x_8 = l_Lean_Meta_mkDefault(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_17; +x_17 = l_Lean_Meta_mkDefault(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_17) == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_8, 0, x_11); -return x_8; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_8); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_12); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_8); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_8, 0); -x_18 = l_Lean_Exception_isRuntime(x_17); +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { -lean_object* x_19; -lean_dec(x_17); -x_19 = lean_box(0); -lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_19); -return x_8; +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_17, 0, x_20); +return x_17; } else { -return x_8; -} -} -else -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_8); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -lean_dec(x_20); -x_23 = lean_box(0); +lean_dec(x_17); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_21); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 1, x_22); return x_24; } +} else { -lean_object* x_25; -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_21); -return x_25; -} -} +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_8 = x_25; +x_9 = x_26; +goto block_16; } } else { -lean_object* x_26; -x_26 = l_Lean_Meta_mkOfNonempty(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_26) == 0) +lean_object* x_27; +x_27 = l_Lean_Meta_mkOfNonempty(x_1, x_3, x_4, x_5, x_6, x_7); +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_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_26, 0, x_29); -return x_26; +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_27, 0, x_30); +return x_27; } else { -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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_26); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_30); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_alloc_ctor(0, 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_34; -x_34 = !lean_is_exclusive(x_26); -if (x_34 == 0) +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_27, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_dec(x_27); +x_8 = x_35; +x_9 = x_36; +goto block_16; +} +} +block_16: { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_26, 0); -x_36 = l_Lean_Exception_isRuntime(x_35); -if (x_36 == 0) +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) { -lean_object* x_37; -lean_dec(x_35); -x_37 = lean_box(0); -lean_ctor_set_tag(x_26, 0); -lean_ctor_set(x_26, 0, x_37); -return x_26; +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +x_12 = lean_box(0); +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 { -return x_26; +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_8); +lean_ctor_set(x_14, 1, x_9); +return x_14; } } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_26, 0); -x_39 = lean_ctor_get(x_26, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_26); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -lean_dec(x_38); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; -} -else -{ -lean_object* x_43; -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_38); -lean_ctor_set(x_43, 1, x_39); -return x_43; -} -} +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c index 491830d3cb..ef558a8d80 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c @@ -50,6 +50,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDef static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__10___closed__2; static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__1(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_isInterrupt(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__7; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__35___boxed(lean_object*); @@ -1036,37 +1037,41 @@ if (x_35 == 0) lean_object* x_36; lean_object* x_37; uint8_t x_38; x_36 = lean_ctor_get(x_34, 0); x_37 = lean_ctor_get(x_34, 1); -x_38 = l_Lean_Exception_isRuntime(x_36); +x_38 = l_Lean_Exception_isInterrupt(x_36); if (x_38 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_free_object(x_34); lean_dec(x_36); -x_39 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_37); +x_40 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_37); lean_dec(x_28); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_42 = l_Lean_Meta_mkAppM(x_41, x_26, x_6, x_7, x_8, x_9, x_40); -if (lean_obj_tag(x_42) == 0) +x_43 = l_Lean_Meta_mkAppM(x_42, x_26, x_6, x_7, x_8, x_9, x_41); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_45 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_43, x_6, x_7, x_8, x_9, x_44); -return x_45; +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_44, x_6, x_7, x_8, x_9, x_45); +return x_46; } else { -uint8_t x_46; +uint8_t x_47; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1074,23 +1079,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_43); +if (x_47 == 0) { -return x_42; +return x_43; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_42, 0); -x_48 = lean_ctor_get(x_42, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_43, 0); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_42); -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; +lean_dec(x_43); +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; } } } @@ -1110,74 +1115,6 @@ return x_34; } else { -lean_object* x_50; lean_object* x_51; uint8_t 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 = l_Lean_Exception_isRuntime(x_50); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_50); -x_53 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_51); -lean_dec(x_28); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_56 = l_Lean_Meta_mkAppM(x_55, x_26, x_6, x_7, x_8, x_9, x_54); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_57, x_6, x_7, x_8, x_9, x_58); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_60 = lean_ctor_get(x_56, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_62 = x_56; -} else { - lean_dec_ref(x_56); - x_62 = lean_box(0); -} -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(1, 2, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -} -else -{ -lean_object* x_64; lean_dec(x_28); lean_dec(x_26); lean_dec(x_15); @@ -1187,55 +1124,51 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_50); -lean_ctor_set(x_64, 1, x_51); -return x_64; -} -} +return x_34; } } else { -uint8_t x_65; -lean_dec(x_16); -x_65 = !lean_is_exclusive(x_31); -if (x_65 == 0) +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_34, 0); +x_52 = lean_ctor_get(x_34, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_34); +x_53 = l_Lean_Exception_isInterrupt(x_51); +if (x_53 == 0) { -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_ctor_get(x_31, 0); -x_67 = lean_ctor_get(x_31, 1); -x_68 = l_Lean_Exception_isRuntime(x_66); -if (x_68 == 0) +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_51); +if (x_54 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_free_object(x_31); -lean_dec(x_66); -x_69 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_67); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_51); +x_55 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_52); lean_dec(x_28); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_72 = l_Lean_Meta_mkAppM(x_71, x_26, x_6, x_7, x_8, x_9, x_70); -if (lean_obj_tag(x_72) == 0) +x_58 = l_Lean_Meta_mkAppM(x_57, x_26, x_6, x_7, x_8, x_9, x_56); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_73, x_6, x_7, x_8, x_9, x_74); -return x_75; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +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_61 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_59, x_6, x_7, x_8, x_9, x_60); +return x_61; } else { -uint8_t x_76; +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1243,24 +1176,136 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_72); -if (x_76 == 0) -{ -return x_72; +x_62 = lean_ctor_get(x_58, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_64 = x_58; +} else { + lean_dec_ref(x_58); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} } else { +lean_object* x_66; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_51); +lean_ctor_set(x_66, 1, x_52); +return x_66; +} +} +else +{ +lean_object* x_67; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_51); +lean_ctor_set(x_67, 1, x_52); +return x_67; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_16); +x_68 = !lean_is_exclusive(x_31); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_31, 0); +x_70 = lean_ctor_get(x_31, 1); +x_71 = l_Lean_Exception_isInterrupt(x_69); +if (x_71 == 0) +{ +uint8_t x_72; +x_72 = l_Lean_Exception_isRuntime(x_69); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_free_object(x_31); +lean_dec(x_69); +x_73 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_70); +lean_dec(x_28); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_76 = l_Lean_Meta_mkAppM(x_75, x_26, x_6, x_7, x_8, x_9, x_74); +if (lean_obj_tag(x_76) == 0) +{ lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_72, 0); -x_78 = lean_ctor_get(x_72, 1); -lean_inc(x_78); +x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); -lean_dec(x_72); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_77, x_6, x_7, x_8, x_9, x_78); return x_79; } +else +{ +uint8_t x_80; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_80 = !lean_is_exclusive(x_76); +if (x_80 == 0) +{ +return x_76; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_76, 0); +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_76); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} } } else @@ -1279,74 +1324,6 @@ return x_31; } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_31, 0); -x_81 = lean_ctor_get(x_31, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_31); -x_82 = l_Lean_Exception_isRuntime(x_80); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_80); -x_83 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_81); -lean_dec(x_28); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_85 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_86 = l_Lean_Meta_mkAppM(x_85, x_26, x_6, x_7, x_8, x_9, x_84); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_89 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_87, x_6, x_7, x_8, x_9, x_88); -return x_89; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_90 = lean_ctor_get(x_86, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_92 = x_86; -} else { - lean_dec_ref(x_86); - x_92 = lean_box(0); -} -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); -} else { - x_93 = x_92; -} -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; -} -} -else -{ -lean_object* x_94; lean_dec(x_28); lean_dec(x_26); lean_dec(x_15); @@ -1356,54 +1333,158 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_80); -lean_ctor_set(x_94, 1, x_81); +return x_31; +} +} +else +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_84 = lean_ctor_get(x_31, 0); +x_85 = lean_ctor_get(x_31, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_31); +x_86 = l_Lean_Exception_isInterrupt(x_84); +if (x_86 == 0) +{ +uint8_t x_87; +x_87 = l_Lean_Exception_isRuntime(x_84); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_84); +x_88 = l_Lean_Meta_SavedState_restore(x_28, x_6, x_7, x_8, x_9, x_85); +lean_dec(x_28); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); +x_90 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_91 = l_Lean_Meta_mkAppM(x_90, x_26, x_6, x_7, x_8, x_9, x_89); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +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 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_92, x_6, x_7, x_8, x_9, x_93); return x_94; } +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_95 = lean_ctor_get(x_91, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_91, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_97 = x_91; +} else { + lean_dec_ref(x_91); + x_97 = lean_box(0); +} +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(1, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_96); +return x_98; +} +} +else +{ +lean_object* x_99; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_84); +lean_ctor_set(x_99, 1, x_85); +return x_99; +} +} +else +{ +lean_object* x_100; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_84); +lean_ctor_set(x_100, 1, x_85); +return x_100; +} } } } } 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_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_17); lean_dec(x_1); -x_95 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__5; -x_96 = lean_array_push(x_95, x_3); -x_97 = l_Lean_Meta_saveState___rarg(x_7, x_8, x_9, x_10); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__9; +x_101 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__5; +x_102 = lean_array_push(x_101, x_3); +x_103 = l_Lean_Meta_saveState___rarg(x_7, x_8, x_9, x_10); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__9; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_96); -x_101 = l_Lean_Meta_mkAppM(x_100, x_96, x_6, x_7, x_8, x_9, x_99); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -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_107 = l_Lean_Meta_mkAppM(x_106, x_102, x_6, x_7, x_8, x_9, x_105); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); lean_inc(x_4); -x_104 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_16, x_2, x_102, x_6, x_7, x_8, x_9, x_103); -if (lean_obj_tag(x_104) == 0) +x_110 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_16, x_2, x_108, x_6, x_7, x_8, x_9, x_109); +if (lean_obj_tag(x_110) == 0) { -lean_dec(x_98); -lean_dec(x_96); +lean_dec(x_104); +lean_dec(x_102); lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1411,48 +1492,52 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -return x_104; +return x_110; } else { -uint8_t x_105; -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) +uint8_t x_111; +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) { -lean_object* x_106; lean_object* x_107; uint8_t x_108; -x_106 = lean_ctor_get(x_104, 0); -x_107 = lean_ctor_get(x_104, 1); -x_108 = l_Lean_Exception_isRuntime(x_106); -if (x_108 == 0) +lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_112 = lean_ctor_get(x_110, 0); +x_113 = lean_ctor_get(x_110, 1); +x_114 = l_Lean_Exception_isInterrupt(x_112); +if (x_114 == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_free_object(x_104); -lean_dec(x_106); -x_109 = l_Lean_Meta_SavedState_restore(x_98, x_6, x_7, x_8, x_9, x_107); -lean_dec(x_98); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec(x_109); -x_111 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; +uint8_t x_115; +x_115 = l_Lean_Exception_isRuntime(x_112); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_free_object(x_110); +lean_dec(x_112); +x_116 = l_Lean_Meta_SavedState_restore(x_104, x_6, x_7, x_8, x_9, x_113); +lean_dec(x_104); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +lean_dec(x_116); +x_118 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_112 = l_Lean_Meta_mkAppM(x_111, x_96, x_6, x_7, x_8, x_9, x_110); -if (lean_obj_tag(x_112) == 0) +x_119 = l_Lean_Meta_mkAppM(x_118, x_102, x_6, x_7, x_8, x_9, x_117); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_113, x_6, x_7, x_8, x_9, x_114); -return x_115; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_122 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_120, x_6, x_7, x_8, x_9, x_121); +return x_122; } else { -uint8_t x_116; +uint8_t x_123; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1460,168 +1545,96 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_116 = !lean_is_exclusive(x_112); -if (x_116 == 0) +x_123 = !lean_is_exclusive(x_119); +if (x_123 == 0) { -return x_112; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_112, 0); -x_118 = lean_ctor_get(x_112, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_112); -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_dec(x_98); -lean_dec(x_96); -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -return x_104; -} -} -else -{ -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_104, 0); -x_121 = lean_ctor_get(x_104, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_104); -x_122 = l_Lean_Exception_isRuntime(x_120); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_120); -x_123 = l_Lean_Meta_SavedState_restore(x_98, x_6, x_7, x_8, x_9, x_121); -lean_dec(x_98); -x_124 = lean_ctor_get(x_123, 1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_119, 0); +x_125 = lean_ctor_get(x_119, 1); +lean_inc(x_125); lean_inc(x_124); -lean_dec(x_123); -x_125 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_126 = l_Lean_Meta_mkAppM(x_125, x_96, x_6, x_7, x_8, x_9, x_124); -if (lean_obj_tag(x_126) == 0) +lean_dec(x_119); +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; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_110; +} +} +else +{ +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_110; +} +} +else +{ +lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_127 = lean_ctor_get(x_110, 0); +x_128 = lean_ctor_get(x_110, 1); lean_inc(x_128); -lean_dec(x_126); -x_129 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_127, x_6, x_7, x_8, x_9, x_128); -return x_129; -} -else +lean_inc(x_127); +lean_dec(x_110); +x_129 = l_Lean_Exception_isInterrupt(x_127); +if (x_129 == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_130 = lean_ctor_get(x_126, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_126, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_132 = x_126; -} else { - lean_dec_ref(x_126); - x_132 = lean_box(0); -} -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); -} else { - x_133 = x_132; -} -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -return x_133; -} -} -else +uint8_t x_130; +x_130 = l_Lean_Exception_isRuntime(x_127); +if (x_130 == 0) { -lean_object* x_134; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_120); -lean_ctor_set(x_134, 1, x_121); -return x_134; -} -} -} -} -else -{ -uint8_t x_135; -lean_dec(x_16); -x_135 = !lean_is_exclusive(x_101); -if (x_135 == 0) -{ -lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_136 = lean_ctor_get(x_101, 0); -x_137 = lean_ctor_get(x_101, 1); -x_138 = l_Lean_Exception_isRuntime(x_136); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_free_object(x_101); -lean_dec(x_136); -x_139 = l_Lean_Meta_SavedState_restore(x_98, x_6, x_7, x_8, x_9, x_137); -lean_dec(x_98); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_141 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_127); +x_131 = l_Lean_Meta_SavedState_restore(x_104, x_6, x_7, x_8, x_9, x_128); +lean_dec(x_104); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_142 = l_Lean_Meta_mkAppM(x_141, x_96, x_6, x_7, x_8, x_9, x_140); -if (lean_obj_tag(x_142) == 0) +x_134 = l_Lean_Meta_mkAppM(x_133, x_102, x_6, x_7, x_8, x_9, x_132); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_145 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_143, x_6, x_7, x_8, x_9, x_144); -return x_145; +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_137 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_135, x_6, x_7, x_8, x_9, x_136); +return x_137; } else { -uint8_t x_146; +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1629,30 +1642,51 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_146 = !lean_is_exclusive(x_142); -if (x_146 == 0) +x_138 = lean_ctor_get(x_134, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_134, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_140 = x_134; +} else { + lean_dec_ref(x_134); + 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); +return x_141; +} +} +else { +lean_object* x_142; +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_127); +lean_ctor_set(x_142, 1, x_128); return x_142; } -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_142, 0); -x_148 = lean_ctor_get(x_142, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_142); -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 { -lean_dec(x_98); -lean_dec(x_96); +lean_object* x_143; +lean_dec(x_104); +lean_dec(x_102); lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1660,47 +1694,90 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -return x_101; +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_127); +lean_ctor_set(x_143, 1, x_128); +return x_143; +} +} } } else { -lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_150 = lean_ctor_get(x_101, 0); -x_151 = lean_ctor_get(x_101, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_101); -x_152 = l_Lean_Exception_isRuntime(x_150); -if (x_152 == 0) +uint8_t x_144; +lean_dec(x_16); +x_144 = !lean_is_exclusive(x_107); +if (x_144 == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_150); -x_153 = l_Lean_Meta_SavedState_restore(x_98, x_6, x_7, x_8, x_9, x_151); -lean_dec(x_98); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -lean_dec(x_153); -x_155 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; +lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_145 = lean_ctor_get(x_107, 0); +x_146 = lean_ctor_get(x_107, 1); +x_147 = l_Lean_Exception_isInterrupt(x_145); +if (x_147 == 0) +{ +uint8_t x_148; +x_148 = l_Lean_Exception_isRuntime(x_145); +if (x_148 == 0) +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_free_object(x_107); +lean_dec(x_145); +x_149 = l_Lean_Meta_SavedState_restore(x_104, x_6, x_7, x_8, x_9, x_146); +lean_dec(x_104); +x_150 = lean_ctor_get(x_149, 1); +lean_inc(x_150); +lean_dec(x_149); +x_151 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_156 = l_Lean_Meta_mkAppM(x_155, x_96, x_6, x_7, x_8, x_9, x_154); -if (lean_obj_tag(x_156) == 0) +x_152 = l_Lean_Meta_mkAppM(x_151, x_102, x_6, x_7, x_8, x_9, x_150); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_153, x_6, x_7, x_8, x_9, x_154); +return x_155; +} +else +{ +uint8_t x_156; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_156 = !lean_is_exclusive(x_152); +if (x_156 == 0) +{ +return x_152; +} +else { lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); +x_157 = lean_ctor_get(x_152, 0); +x_158 = lean_ctor_get(x_152, 1); lean_inc(x_158); -lean_dec(x_156); -x_159 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_157, x_6, x_7, x_8, x_9, x_158); +lean_inc(x_157); +lean_dec(x_152); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); return x_159; } +} +} else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_104); +lean_dec(x_102); lean_dec(x_15); lean_dec(x_9); lean_dec(x_8); @@ -1708,108 +1785,139 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_160 = lean_ctor_get(x_156, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_156, 1); +return x_107; +} +} +else +{ +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_107; +} +} +else +{ +lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_160 = lean_ctor_get(x_107, 0); +x_161 = lean_ctor_get(x_107, 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_156); - x_162 = lean_box(0); -} -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); -} else { - x_163 = x_162; -} -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; -} -} -else +lean_inc(x_160); +lean_dec(x_107); +x_162 = l_Lean_Exception_isInterrupt(x_160); +if (x_162 == 0) { -lean_object* x_164; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_150); -lean_ctor_set(x_164, 1, x_151); -return x_164; -} -} -} -} -} -else +uint8_t x_163; +x_163 = l_Lean_Exception_isRuntime(x_160); +if (x_163 == 0) { -lean_object* x_165; uint8_t x_166; lean_object* x_167; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_11); -x_165 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); -lean_closure_set(x_165, 0, x_2); -lean_closure_set(x_165, 1, x_3); -lean_closure_set(x_165, 2, x_4); -x_166 = 0; -x_167 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_165, x_166, x_6, x_7, x_8, x_9, x_10); -return x_167; -} -} -else +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_160); +x_164 = l_Lean_Meta_SavedState_restore(x_104, x_6, x_7, x_8, x_9, x_161); +lean_dec(x_104); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +lean_dec(x_164); +x_166 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_167 = l_Lean_Meta_mkAppM(x_166, x_102, x_6, x_7, x_8, x_9, x_165); +if (lean_obj_tag(x_167) == 0) { -lean_object* x_168; uint8_t x_169; lean_object* x_170; -lean_dec(x_13); -lean_dec(x_11); -x_168 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); -lean_closure_set(x_168, 0, x_2); -lean_closure_set(x_168, 1, x_3); -lean_closure_set(x_168, 2, x_4); -x_169 = 0; -x_170 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_168, x_169, x_6, x_7, x_8, x_9, x_10); +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(x_4, x_15, x_2, x_168, x_6, x_7, x_8, x_9, x_169); return x_170; } -} else { -lean_object* x_171; uint8_t x_172; lean_object* x_173; -lean_dec(x_12); -lean_dec(x_11); -x_171 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); -lean_closure_set(x_171, 0, x_2); -lean_closure_set(x_171, 1, x_3); -lean_closure_set(x_171, 2, x_4); -x_172 = 0; -x_173 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_171, x_172, x_6, x_7, x_8, x_9, x_10); -return x_173; +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_171 = lean_ctor_get(x_167, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_167, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_173 = x_167; +} else { + lean_dec_ref(x_167); + x_173 = lean_box(0); +} +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(1, 2, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_172); +return x_174; } } else { -lean_object* x_174; uint8_t x_175; lean_object* x_176; -lean_dec(x_11); -x_174 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); -lean_closure_set(x_174, 0, x_2); -lean_closure_set(x_174, 1, x_3); -lean_closure_set(x_174, 2, x_4); -x_175 = 0; -x_176 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_174, x_175, x_6, x_7, x_8, x_9, x_10); +lean_object* x_175; +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_160); +lean_ctor_set(x_175, 1, x_161); +return x_175; +} +} +else +{ +lean_object* x_176; +lean_dec(x_104); +lean_dec(x_102); +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_160); +lean_ctor_set(x_176, 1, x_161); return x_176; } } +} +} +} else { lean_object* x_177; uint8_t x_178; lean_object* x_179; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); x_177 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); lean_closure_set(x_177, 0, x_2); lean_closure_set(x_177, 1, x_3); @@ -1819,6 +1927,59 @@ x_179 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec_ return x_179; } } +else +{ +lean_object* x_180; uint8_t x_181; lean_object* x_182; +lean_dec(x_13); +lean_dec(x_11); +x_180 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); +lean_closure_set(x_180, 0, x_2); +lean_closure_set(x_180, 1, x_3); +lean_closure_set(x_180, 2, x_4); +x_181 = 0; +x_182 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_180, x_181, x_6, x_7, x_8, x_9, x_10); +return x_182; +} +} +else +{ +lean_object* x_183; uint8_t x_184; lean_object* x_185; +lean_dec(x_12); +lean_dec(x_11); +x_183 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); +lean_closure_set(x_183, 0, x_2); +lean_closure_set(x_183, 1, x_3); +lean_closure_set(x_183, 2, x_4); +x_184 = 0; +x_185 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_183, x_184, x_6, x_7, x_8, x_9, x_10); +return x_185; +} +} +else +{ +lean_object* x_186; uint8_t x_187; lean_object* x_188; +lean_dec(x_11); +x_186 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); +lean_closure_set(x_186, 0, x_2); +lean_closure_set(x_186, 1, x_3); +lean_closure_set(x_186, 2, x_4); +x_187 = 0; +x_188 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_186, x_187, x_6, x_7, x_8, x_9, x_10); +return x_188; +} +} +else +{ +lean_object* x_189; uint8_t x_190; lean_object* x_191; +x_189 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4), 10, 3); +lean_closure_set(x_189, 0, x_2); +lean_closure_set(x_189, 1, x_3); +lean_closure_set(x_189, 2, x_4); +x_190 = 0; +x_191 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_1, x_189, x_190, x_6, x_7, x_8, x_9, x_10); +return x_191; +} +} } static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__1() { _start: @@ -8794,28 +8955,28 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___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, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_18; lean_object* x_19; uint8_t x_62; +lean_object* x_18; lean_object* x_19; uint8_t x_65; lean_dec(x_10); x_18 = lean_array_get_size(x_1); -x_62 = lean_nat_dec_lt(x_9, x_18); -if (x_62 == 0) +x_65 = lean_nat_dec_lt(x_9, x_18); +if (x_65 == 0) { -lean_object* x_63; lean_object* x_64; +lean_object* x_66; lean_object* x_67; lean_dec(x_9); -x_63 = l_Lean_instInhabitedExpr; -x_64 = l___private_Init_GetElem_0__outOfBounds___rarg(x_63); -x_19 = x_64; -goto block_61; +x_66 = l_Lean_instInhabitedExpr; +x_67 = l___private_Init_GetElem_0__outOfBounds___rarg(x_66); +x_19 = x_67; +goto block_64; } else { -lean_object* x_65; -x_65 = lean_array_fget(x_1, x_9); +lean_object* x_68; +x_68 = lean_array_fget(x_1, x_9); lean_dec(x_9); -x_19 = x_65; -goto block_61; +x_19 = x_68; +goto block_64; } -block_61: +block_64: { lean_object* x_20; lean_inc(x_16); @@ -8874,45 +9035,49 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_25, 0); x_31 = lean_ctor_get(x_25, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (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; uint8_t x_39; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (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; uint8_t x_40; lean_free_object(x_25); lean_dec(x_30); -x_33 = l_Lean_indentExpr(x_8); -x_34 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_35 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_37 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__20___rarg(x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_31); +x_34 = l_Lean_indentExpr(x_8); +x_35 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_36 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_38 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__20___rarg(x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_31); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -return x_38; +return x_39; } else { -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_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -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_dec(x_39); +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 @@ -8929,57 +9094,6 @@ return x_25; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_25, 0); -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_25); -x_45 = l_Lean_Exception_isRuntime(x_43); -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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_43); -x_46 = l_Lean_indentExpr(x_8); -x_47 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_48 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__20___rarg(x_50, x_11, x_12, x_13, x_14, x_15, x_16, x_44); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -8987,17 +9101,100 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_44); -return x_56; +return x_25; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_25, 0); +x_45 = lean_ctor_get(x_25, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_25); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +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; lean_object* x_56; lean_object* x_57; +lean_dec(x_44); +x_48 = l_Lean_indentExpr(x_8); +x_49 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_50 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_52 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__20___rarg(x_52, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_44); +lean_ctor_set(x_58, 1, x_45); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_44); +lean_ctor_set(x_59, 1, x_45); +return x_59; } } } } else { -uint8_t x_57; +uint8_t x_60; lean_dec(x_18); lean_dec(x_16); lean_dec(x_15); @@ -9010,23 +9207,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_57 = !lean_is_exclusive(x_20); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_20); +if (x_60 == 0) { return x_20; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_20, 0); -x_59 = lean_ctor_get(x_20, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_20, 0); +x_62 = lean_ctor_get(x_20, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_20); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +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; } } } @@ -9729,28 +9926,28 @@ return x_32; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__27___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, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_18; lean_object* x_19; uint8_t x_62; +lean_object* x_18; lean_object* x_19; uint8_t x_65; lean_dec(x_10); x_18 = lean_array_get_size(x_1); -x_62 = lean_nat_dec_lt(x_9, x_18); -if (x_62 == 0) +x_65 = lean_nat_dec_lt(x_9, x_18); +if (x_65 == 0) { -lean_object* x_63; lean_object* x_64; +lean_object* x_66; lean_object* x_67; lean_dec(x_9); -x_63 = l_Lean_instInhabitedExpr; -x_64 = l___private_Init_GetElem_0__outOfBounds___rarg(x_63); -x_19 = x_64; -goto block_61; +x_66 = l_Lean_instInhabitedExpr; +x_67 = l___private_Init_GetElem_0__outOfBounds___rarg(x_66); +x_19 = x_67; +goto block_64; } else { -lean_object* x_65; -x_65 = lean_array_fget(x_1, x_9); +lean_object* x_68; +x_68 = lean_array_fget(x_1, x_9); lean_dec(x_9); -x_19 = x_65; -goto block_61; +x_19 = x_68; +goto block_64; } -block_61: +block_64: { lean_object* x_20; lean_inc(x_16); @@ -9809,45 +10006,49 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_25, 0); x_31 = lean_ctor_get(x_25, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (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; uint8_t x_39; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (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; uint8_t x_40; lean_free_object(x_25); lean_dec(x_30); -x_33 = l_Lean_indentExpr(x_8); -x_34 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_35 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_37 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__25___rarg(x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_31); +x_34 = l_Lean_indentExpr(x_8); +x_35 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_36 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_38 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__25___rarg(x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_31); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -return x_38; +return x_39; } else { -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_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -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_dec(x_39); +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 @@ -9864,57 +10065,6 @@ return x_25; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_25, 0); -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_25); -x_45 = l_Lean_Exception_isRuntime(x_43); -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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_43); -x_46 = l_Lean_indentExpr(x_8); -x_47 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_48 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__25___rarg(x_50, x_11, x_12, x_13, x_14, x_15, x_16, x_44); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -9922,17 +10072,100 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_44); -return x_56; +return x_25; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_25, 0); +x_45 = lean_ctor_get(x_25, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_25); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +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; lean_object* x_56; lean_object* x_57; +lean_dec(x_44); +x_48 = l_Lean_indentExpr(x_8); +x_49 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_50 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_52 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__25___rarg(x_52, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_44); +lean_ctor_set(x_58, 1, x_45); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_44); +lean_ctor_set(x_59, 1, x_45); +return x_59; } } } } else { -uint8_t x_57; +uint8_t x_60; lean_dec(x_18); lean_dec(x_16); lean_dec(x_15); @@ -9945,23 +10178,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_57 = !lean_is_exclusive(x_20); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_20); +if (x_60 == 0) { return x_20; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_20, 0); -x_59 = lean_ctor_get(x_20, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_20, 0); +x_62 = lean_ctor_get(x_20, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_20); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +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; } } } @@ -10700,28 +10933,28 @@ return x_32; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__33___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, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_18; lean_object* x_19; uint8_t x_62; +lean_object* x_18; lean_object* x_19; uint8_t x_65; lean_dec(x_10); x_18 = lean_array_get_size(x_1); -x_62 = lean_nat_dec_lt(x_9, x_18); -if (x_62 == 0) +x_65 = lean_nat_dec_lt(x_9, x_18); +if (x_65 == 0) { -lean_object* x_63; lean_object* x_64; +lean_object* x_66; lean_object* x_67; lean_dec(x_9); -x_63 = l_Lean_instInhabitedExpr; -x_64 = l___private_Init_GetElem_0__outOfBounds___rarg(x_63); -x_19 = x_64; -goto block_61; +x_66 = l_Lean_instInhabitedExpr; +x_67 = l___private_Init_GetElem_0__outOfBounds___rarg(x_66); +x_19 = x_67; +goto block_64; } else { -lean_object* x_65; -x_65 = lean_array_fget(x_1, x_9); +lean_object* x_68; +x_68 = lean_array_fget(x_1, x_9); lean_dec(x_9); -x_19 = x_65; -goto block_61; +x_19 = x_68; +goto block_64; } -block_61: +block_64: { lean_object* x_20; lean_inc(x_16); @@ -10780,45 +11013,49 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_25, 0); x_31 = lean_ctor_get(x_25, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (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; uint8_t x_39; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (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; uint8_t x_40; lean_free_object(x_25); lean_dec(x_30); -x_33 = l_Lean_indentExpr(x_8); -x_34 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_35 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_37 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__31___rarg(x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_31); +x_34 = l_Lean_indentExpr(x_8); +x_35 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_36 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_38 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__31___rarg(x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_31); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -return x_38; +return x_39; } else { -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_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -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_dec(x_39); +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 @@ -10835,57 +11072,6 @@ return x_25; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_25, 0); -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_25); -x_45 = l_Lean_Exception_isRuntime(x_43); -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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_43); -x_46 = l_Lean_indentExpr(x_8); -x_47 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; -x_48 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__31___rarg(x_50, x_11, x_12, x_13, x_14, x_15, x_16, x_44); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -10893,17 +11079,100 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_44); -return x_56; +return x_25; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_25, 0); +x_45 = lean_ctor_get(x_25, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_25); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +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; lean_object* x_56; lean_object* x_57; +lean_dec(x_44); +x_48 = l_Lean_indentExpr(x_8); +x_49 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__22___lambda__2___closed__2; +x_50 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; +x_52 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__31___rarg(x_52, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_44); +lean_ctor_set(x_58, 1, x_45); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_44); +lean_ctor_set(x_59, 1, x_45); +return x_59; } } } } else { -uint8_t x_57; +uint8_t x_60; lean_dec(x_18); lean_dec(x_16); lean_dec(x_15); @@ -10916,23 +11185,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_57 = !lean_is_exclusive(x_20); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_20); +if (x_60 == 0) { return x_20; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_20, 0); -x_59 = lean_ctor_get(x_20, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_20, 0); +x_62 = lean_ctor_get(x_20, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_20); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +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; } } } @@ -13519,7 +13788,7 @@ return x_153; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_dec(x_139); x_154 = lean_ctor_get(x_141, 0); lean_inc(x_154); @@ -13549,98 +13818,103 @@ x_165 = lean_ctor_get(x_11, 9); lean_inc(x_165); x_166 = lean_ctor_get(x_11, 10); lean_inc(x_166); -x_167 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_167 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_168 = lean_ctor_get(x_11, 11); +lean_inc(x_168); +x_169 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); lean_dec(x_11); -x_168 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_168, 0, x_157); -lean_ctor_set(x_168, 1, x_158); -lean_ctor_set(x_168, 2, x_159); -lean_ctor_set(x_168, 3, x_160); -lean_ctor_set(x_168, 4, x_161); -lean_ctor_set(x_168, 5, x_156); -lean_ctor_set(x_168, 6, x_162); -lean_ctor_set(x_168, 7, x_163); -lean_ctor_set(x_168, 8, x_164); -lean_ctor_set(x_168, 9, x_165); -lean_ctor_set(x_168, 10, x_166); -lean_ctor_set_uint8(x_168, sizeof(void*)*11, x_167); -x_169 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_168, x_12, x_13); -return x_169; +x_170 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_170, 0, x_157); +lean_ctor_set(x_170, 1, x_158); +lean_ctor_set(x_170, 2, x_159); +lean_ctor_set(x_170, 3, x_160); +lean_ctor_set(x_170, 4, x_161); +lean_ctor_set(x_170, 5, x_156); +lean_ctor_set(x_170, 6, x_162); +lean_ctor_set(x_170, 7, x_163); +lean_ctor_set(x_170, 8, x_164); +lean_ctor_set(x_170, 9, x_165); +lean_ctor_set(x_170, 10, x_166); +lean_ctor_set(x_170, 11, x_168); +lean_ctor_set_uint8(x_170, sizeof(void*)*12, x_167); +lean_ctor_set_uint8(x_170, sizeof(void*)*12 + 1, x_169); +x_171 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_2, x_3, x_4, x_5, x_140, x_7, x_8, x_9, x_10, x_170, x_12, x_13); +return x_171; } } case 11: { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_170 = lean_ctor_get(x_1, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_1, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_1, 2); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_172 = lean_ctor_get(x_1, 0); lean_inc(x_172); +x_173 = lean_ctor_get(x_1, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_1, 2); +lean_inc(x_174); lean_dec(x_1); -x_173 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_2, x_3, x_4, x_5, x_172, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_173) == 0) +x_175 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_2, x_3, x_4, x_5, x_174, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_175) == 0) { -uint8_t x_174; -x_174 = !lean_is_exclusive(x_173); -if (x_174 == 0) +uint8_t x_176; +x_176 = !lean_is_exclusive(x_175); +if (x_176 == 0) { -lean_object* x_175; lean_object* x_176; -x_175 = lean_ctor_get(x_173, 0); -x_176 = l_Lean_Expr_proj___override(x_170, x_171, x_175); -lean_ctor_set(x_173, 0, x_176); -return x_173; +lean_object* x_177; lean_object* x_178; +x_177 = lean_ctor_get(x_175, 0); +x_178 = l_Lean_Expr_proj___override(x_172, x_173, x_177); +lean_ctor_set(x_175, 0, x_178); +return x_175; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_177 = lean_ctor_get(x_173, 0); -x_178 = lean_ctor_get(x_173, 1); -lean_inc(x_178); -lean_inc(x_177); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_179 = lean_ctor_get(x_175, 0); +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_175); +x_181 = l_Lean_Expr_proj___override(x_172, x_173, x_179); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else +{ +uint8_t x_183; lean_dec(x_173); -x_179 = l_Lean_Expr_proj___override(x_170, x_171, x_177); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_178); -return x_180; -} +lean_dec(x_172); +x_183 = !lean_is_exclusive(x_175); +if (x_183 == 0) +{ +return x_175; } else { -uint8_t x_181; -lean_dec(x_171); -lean_dec(x_170); -x_181 = !lean_is_exclusive(x_173); -if (x_181 == 0) -{ -return x_173; -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_173, 0); -x_183 = lean_ctor_get(x_173, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_173); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_183); -return x_184; +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_175, 0); +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_175); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; } } } default: { -lean_object* x_185; +lean_object* x_187; lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_185 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); -return x_185; +x_187 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); +return x_187; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c index ddca7f0872..77dc98391b 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c @@ -2538,7 +2538,7 @@ x_14 = l_Lean_Elab_Structural_mkEqns___lambda__2___closed__1; x_15 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_14); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); x_16 = 0; lean_inc(x_9); lean_inc(x_8); @@ -2640,7 +2640,7 @@ 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; uint8_t x_51; lean_object* x_52; +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; uint8_t x_53; lean_object* x_54; x_39 = lean_ctor_get(x_8, 0); x_40 = lean_ctor_get(x_8, 1); x_41 = lean_ctor_get(x_8, 3); @@ -2650,6 +2650,9 @@ x_44 = lean_ctor_get(x_8, 7); x_45 = lean_ctor_get(x_8, 8); x_46 = lean_ctor_get(x_8, 9); x_47 = lean_ctor_get(x_8, 10); +x_48 = lean_ctor_get(x_8, 11); +x_49 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -2660,124 +2663,126 @@ lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_dec(x_8); -x_48 = l_Lean_Elab_Structural_mkEqns___lambda__2___closed__1; -x_49 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_48); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_39); -lean_ctor_set(x_50, 1, x_40); -lean_ctor_set(x_50, 2, x_1); -lean_ctor_set(x_50, 3, x_41); -lean_ctor_set(x_50, 4, x_49); -lean_ctor_set(x_50, 5, x_42); -lean_ctor_set(x_50, 6, x_43); -lean_ctor_set(x_50, 7, x_44); -lean_ctor_set(x_50, 8, x_45); -lean_ctor_set(x_50, 9, x_46); -lean_ctor_set(x_50, 10, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_2); -x_51 = 0; +x_50 = l_Lean_Elab_Structural_mkEqns___lambda__2___closed__1; +x_51 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_50); +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_40); +lean_ctor_set(x_52, 2, x_1); +lean_ctor_set(x_52, 3, x_41); +lean_ctor_set(x_52, 4, x_51); +lean_ctor_set(x_52, 5, x_42); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_49); +x_53 = 0; lean_inc(x_9); -lean_inc(x_50); +lean_inc(x_52); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_3, x_51, x_4, x_5, x_50, x_9, x_10); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_3, x_53, x_4, x_5, x_52, x_9, x_10); +if (lean_obj_tag(x_54) == 0) { -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; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_6, 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; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -x_56 = lean_box(0); -x_57 = lean_array_get_size(x_53); -x_58 = lean_unsigned_to_nat(0u); -x_59 = lean_unsigned_to_nat(1u); -x_60 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__3; +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_ctor_get(x_6, 0); lean_inc(x_57); -x_61 = l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1(x_6, x_53, x_55, x_56, x_57, x_57, x_58, x_57, x_59, x_60, x_4, x_5, x_50, x_9, x_54); -lean_dec(x_57); -lean_dec(x_53); +x_58 = lean_box(0); +x_59 = lean_array_get_size(x_55); +x_60 = lean_unsigned_to_nat(0u); +x_61 = lean_unsigned_to_nat(1u); +x_62 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__3; +lean_inc(x_59); +x_63 = l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1(x_6, x_55, x_57, x_58, x_59, x_59, x_60, x_59, x_61, x_62, x_4, x_5, x_52, x_9, x_56); +lean_dec(x_59); +lean_dec(x_55); lean_dec(x_6); -if (lean_obj_tag(x_61) == 0) +if (lean_obj_tag(x_63) == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_64 = x_61; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_61); - x_64 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_65 = x_64; + x_67 = x_66; } -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_61, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_61, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_68 = x_61; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_63, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_63, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_70 = x_63; } else { - lean_dec_ref(x_61); - x_68 = lean_box(0); + lean_dec_ref(x_63); + x_70 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_69 = x_68; + x_71 = x_70; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_50); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_52); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_70 = lean_ctor_get(x_52, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_52, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_72 = x_52; +x_72 = lean_ctor_get(x_54, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_54, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_74 = x_54; } else { - lean_dec_ref(x_52); - x_72 = lean_box(0); + lean_dec_ref(x_54); + x_74 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_73 = x_72; + x_75 = x_74; } -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/FindRecArg.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/FindRecArg.c index d0cfa6c730..74ee9da13b 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/FindRecArg.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/FindRecArg.c @@ -34,6 +34,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v static lean_object* l_Lean_Elab_Structural_findRecArg_go___rarg___lambda__3___closed__7; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_findRecArg_go___rarg___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_forEachExpr_x27___at_Lean_Elab_Structural_findRecArg___spec__3___closed__2; static lean_object* l_Lean_Elab_Structural_findRecArg_go___rarg___lambda__3___closed__4; @@ -3605,459 +3606,541 @@ if (x_31 == 0) lean_object* x_32; lean_object* x_33; uint8_t x_34; x_32 = lean_ctor_get(x_30, 0); x_33 = lean_ctor_get(x_30, 1); -x_34 = l_Lean_Exception_isRuntime(x_32); +x_34 = l_Lean_Exception_isInterrupt(x_32); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_free_object(x_30); -x_35 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_25, x_4, x_5, x_6, x_7, x_33); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_st_ref_take(x_5, x_36); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_36 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_25, x_4, x_5, x_6, x_7, x_33); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_st_ref_take(x_5, x_37); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_37, 0); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_38, 0); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 1); -x_42 = lean_ctor_get(x_39, 0); -lean_dec(x_42); -lean_ctor_set(x_39, 0, x_29); -x_43 = lean_st_ref_set(x_5, x_39, x_41); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 1); +x_43 = lean_ctor_get(x_40, 0); +lean_dec(x_43); +lean_ctor_set(x_40, 0, x_29); +x_44 = lean_st_ref_set(x_5, x_40, x_42); if (lean_obj_tag(x_32) == 0) { -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = !lean_is_exclusive(x_32); -if (x_45 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = !lean_is_exclusive(x_32); +if (x_46 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 1); -x_48 = lean_st_ref_set(x_3, x_10, x_44); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_32, 0); +x_48 = lean_ctor_get(x_32, 1); +x_49 = lean_st_ref_set(x_3, x_10, x_45); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 1); -x_51 = lean_ctor_get(x_48, 0); -lean_dec(x_51); -x_52 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_49, 1); +x_52 = lean_ctor_get(x_49, 0); +lean_dec(x_52); +x_53 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_51); +if (lean_obj_tag(x_53) == 0) { -lean_free_object(x_48); +lean_free_object(x_49); lean_free_object(x_32); +lean_dec(x_48); lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -x_12 = x_52; +lean_free_object(x_38); +x_12 = x_53; goto block_21; } else { -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +uint8_t x_54; +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_52, 0); -x_55 = l_Lean_Exception_isRuntime(x_54); -if (x_55 == 0) -{ -if (lean_obj_tag(x_54) == 0) -{ -uint8_t x_56; -x_56 = !lean_is_exclusive(x_54); +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_53, 0); +x_56 = l_Lean_Exception_isInterrupt(x_55); if (x_56 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_54, 1); -x_58 = lean_ctor_get(x_54, 0); -lean_dec(x_58); -x_59 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -lean_ctor_set_tag(x_48, 6); -lean_ctor_set(x_48, 1, x_59); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set_tag(x_32, 6); -lean_ctor_set(x_32, 1, x_59); -lean_ctor_set(x_32, 0, x_48); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_57); -lean_ctor_set(x_37, 0, x_32); -lean_ctor_set(x_54, 1, x_37); -lean_ctor_set(x_54, 0, x_46); -x_12 = x_52; -goto block_21; -} -else +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_55); +if (x_57 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_dec(x_54); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_58; +x_58 = !lean_is_exclusive(x_55); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_55, 1); +x_60 = lean_ctor_get(x_55, 0); +lean_dec(x_60); x_61 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -lean_ctor_set_tag(x_48, 6); -lean_ctor_set(x_48, 1, x_61); -lean_ctor_set(x_48, 0, x_47); +lean_ctor_set_tag(x_49, 6); +lean_ctor_set(x_49, 1, x_61); +lean_ctor_set(x_49, 0, x_48); lean_ctor_set_tag(x_32, 6); lean_ctor_set(x_32, 1, x_61); -lean_ctor_set(x_32, 0, x_48); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_60); -lean_ctor_set(x_37, 0, x_32); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_46); -lean_ctor_set(x_62, 1, x_37); -lean_ctor_set(x_52, 0, x_62); -x_12 = x_52; +lean_ctor_set(x_32, 0, x_49); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_59); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_55, 1, x_38); +lean_ctor_set(x_55, 0, x_47); +x_12 = x_53; goto block_21; } -} else { -lean_free_object(x_48); -lean_free_object(x_32); -lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -x_12 = x_52; -goto block_21; -} -} -else -{ -lean_free_object(x_48); -lean_free_object(x_32); -lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -x_12 = x_52; -goto block_21; -} -} -else -{ -lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_63 = lean_ctor_get(x_52, 0); -x_64 = lean_ctor_get(x_52, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_52); -x_65 = l_Lean_Exception_isRuntime(x_63); -if (x_65 == 0) -{ -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_67 = x_63; -} else { - lean_dec_ref(x_63); - x_67 = lean_box(0); -} -x_68 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -lean_ctor_set_tag(x_48, 6); -lean_ctor_set(x_48, 1, x_68); -lean_ctor_set(x_48, 0, x_47); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +lean_ctor_set_tag(x_49, 6); +lean_ctor_set(x_49, 1, x_63); +lean_ctor_set(x_49, 0, x_48); lean_ctor_set_tag(x_32, 6); -lean_ctor_set(x_32, 1, x_68); -lean_ctor_set(x_32, 0, x_48); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_66); -lean_ctor_set(x_37, 0, x_32); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_67; -} -lean_ctor_set(x_69, 0, x_46); -lean_ctor_set(x_69, 1, x_37); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_64); -x_12 = x_70; +lean_ctor_set(x_32, 1, x_63); +lean_ctor_set(x_32, 0, x_49); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_62); +lean_ctor_set(x_38, 0, x_32); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_47); +lean_ctor_set(x_64, 1, x_38); +lean_ctor_set(x_53, 0, x_64); +x_12 = x_53; goto block_21; } +} else { -lean_object* x_71; -lean_free_object(x_48); +lean_free_object(x_49); lean_free_object(x_32); -lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_63); -lean_ctor_set(x_71, 1, x_64); -x_12 = x_71; -goto block_21; -} -} -else -{ -lean_object* x_72; -lean_free_object(x_48); -lean_free_object(x_32); -lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_63); -lean_ctor_set(x_72, 1, x_64); -x_12 = x_72; -goto block_21; -} -} -} -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_48, 1); -lean_inc(x_73); lean_dec(x_48); -x_74 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_73); -if (lean_obj_tag(x_74) == 0) -{ -lean_free_object(x_32); lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); +lean_free_object(x_38); +x_12 = x_53; +goto block_21; +} +} +else +{ +lean_free_object(x_49); +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_12 = x_53; +goto block_21; +} +} +else +{ +lean_free_object(x_49); +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_12 = x_53; +goto block_21; +} +} +else +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_53, 0); +x_66 = lean_ctor_get(x_53, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_53); +x_67 = l_Lean_Exception_isInterrupt(x_65); +if (x_67 == 0) +{ +uint8_t x_68; +x_68 = l_Lean_Exception_isRuntime(x_65); +if (x_68 == 0) +{ +if (lean_obj_tag(x_65) == 0) +{ +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_65, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_70 = x_65; +} else { + lean_dec_ref(x_65); + x_70 = lean_box(0); +} +x_71 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +lean_ctor_set_tag(x_49, 6); +lean_ctor_set(x_49, 1, x_71); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set_tag(x_32, 6); +lean_ctor_set(x_32, 1, x_71); +lean_ctor_set(x_32, 0, x_49); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_69); +lean_ctor_set(x_38, 0, x_32); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_70; +} +lean_ctor_set(x_72, 0, x_47); +lean_ctor_set(x_72, 1, x_38); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_66); +x_12 = x_73; +goto block_21; +} +else +{ +lean_object* x_74; +lean_free_object(x_49); +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_65); +lean_ctor_set(x_74, 1, x_66); x_12 = x_74; goto block_21; } +} else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -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); +lean_object* x_75; +lean_free_object(x_49); +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_65); +lean_ctor_set(x_75, 1, x_66); +x_12 = x_75; +goto block_21; } -x_78 = l_Lean_Exception_isRuntime(x_75); -if (x_78 == 0) +} +else { -if (lean_obj_tag(x_75) == 0) +lean_object* x_76; +lean_free_object(x_49); +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_65); +lean_ctor_set(x_76, 1, x_66); +x_12 = x_76; +goto block_21; +} +} +} +} +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_75, 1); +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_49, 1); +lean_inc(x_77); +lean_dec(x_49); +x_78 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_77); +if (lean_obj_tag(x_78) == 0) +{ +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +x_12 = x_78; +goto block_21; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_80 = x_75; +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; } else { - lean_dec_ref(x_75); - x_80 = lean_box(0); + lean_dec_ref(x_78); + x_81 = lean_box(0); } -x_81 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -x_82 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_82, 0, x_47); -lean_ctor_set(x_82, 1, x_81); +x_82 = l_Lean_Exception_isInterrupt(x_79); +if (x_82 == 0) +{ +uint8_t x_83; +x_83 = l_Lean_Exception_isRuntime(x_79); +if (x_83 == 0) +{ +if (lean_obj_tag(x_79) == 0) +{ +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_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +x_86 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_48); +lean_ctor_set(x_87, 1, x_86); lean_ctor_set_tag(x_32, 6); -lean_ctor_set(x_32, 1, x_81); -lean_ctor_set(x_32, 0, x_82); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_79); -lean_ctor_set(x_37, 0, x_32); -if (lean_is_scalar(x_80)) { - x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 1, x_86); +lean_ctor_set(x_32, 0, x_87); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_84); +lean_ctor_set(x_38, 0, x_32); +if (lean_is_scalar(x_85)) { + x_88 = lean_alloc_ctor(0, 2, 0); } else { - x_83 = x_80; + x_88 = x_85; } -lean_ctor_set(x_83, 0, x_46); -lean_ctor_set(x_83, 1, x_37); -if (lean_is_scalar(x_77)) { - x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_47); +lean_ctor_set(x_88, 1, x_38); +if (lean_is_scalar(x_81)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_84 = x_77; + x_89 = x_81; } -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_76); -x_12 = x_84; +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_80); +x_12 = x_89; goto block_21; } else { -lean_object* x_85; +lean_object* x_90; lean_free_object(x_32); +lean_dec(x_48); lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -if (lean_is_scalar(x_77)) { - x_85 = lean_alloc_ctor(1, 2, 0); +lean_free_object(x_38); +if (lean_is_scalar(x_81)) { + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_77; + x_90 = x_81; } -lean_ctor_set(x_85, 0, x_75); -lean_ctor_set(x_85, 1, x_76); -x_12 = x_85; +lean_ctor_set(x_90, 0, x_79); +lean_ctor_set(x_90, 1, x_80); +x_12 = x_90; goto block_21; } } else { -lean_object* x_86; +lean_object* x_91; lean_free_object(x_32); +lean_dec(x_48); lean_dec(x_47); -lean_dec(x_46); -lean_free_object(x_37); -if (lean_is_scalar(x_77)) { - x_86 = lean_alloc_ctor(1, 2, 0); +lean_free_object(x_38); +if (lean_is_scalar(x_81)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_86 = x_77; + x_91 = x_81; } -lean_ctor_set(x_86, 0, x_75); -lean_ctor_set(x_86, 1, x_76); -x_12 = x_86; +lean_ctor_set(x_91, 0, x_79); +lean_ctor_set(x_91, 1, x_80); +x_12 = x_91; goto block_21; } } -} -} 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_32, 0); -x_88 = lean_ctor_get(x_32, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_32); -x_89 = lean_st_ref_set(x_3, x_10, x_44); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_91 = x_89; +lean_object* x_92; +lean_free_object(x_32); +lean_dec(x_48); +lean_dec(x_47); +lean_free_object(x_38); +if (lean_is_scalar(x_81)) { + x_92 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_89); - x_91 = lean_box(0); + x_92 = x_81; } -x_92 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_90); -if (lean_obj_tag(x_92) == 0) -{ -lean_dec(x_91); -lean_dec(x_88); -lean_dec(x_87); -lean_free_object(x_37); +lean_ctor_set(x_92, 0, x_79); +lean_ctor_set(x_92, 1, x_80); x_12 = x_92; goto block_21; } +} +} +} else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); +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_93 = lean_ctor_get(x_32, 0); +x_94 = lean_ctor_get(x_32, 1); lean_inc(x_94); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_95 = x_92; +lean_inc(x_93); +lean_dec(x_32); +x_95 = lean_st_ref_set(x_3, x_10, x_45); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_97 = x_95; } else { - lean_dec_ref(x_92); - x_95 = lean_box(0); + lean_dec_ref(x_95); + x_97 = lean_box(0); } -x_96 = l_Lean_Exception_isRuntime(x_93); -if (x_96 == 0) +x_98 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_96); +if (lean_obj_tag(x_98) == 0) { -if (lean_obj_tag(x_93) == 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; -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_98 = x_93; -} else { - lean_dec_ref(x_93); - x_98 = lean_box(0); -} -x_99 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -if (lean_is_scalar(x_91)) { - x_100 = lean_alloc_ctor(6, 2, 0); -} else { - x_100 = x_91; - lean_ctor_set_tag(x_100, 6); -} -lean_ctor_set(x_100, 0, x_88); -lean_ctor_set(x_100, 1, x_99); -x_101 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_99); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_97); -lean_ctor_set(x_37, 0, x_101); -if (lean_is_scalar(x_98)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_98; -} -lean_ctor_set(x_102, 0, x_87); -lean_ctor_set(x_102, 1, x_37); -if (lean_is_scalar(x_95)) { - x_103 = lean_alloc_ctor(1, 2, 0); -} else { - x_103 = x_95; -} -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_94); -x_12 = x_103; +lean_dec(x_97); +lean_dec(x_94); +lean_dec(x_93); +lean_free_object(x_38); +x_12 = x_98; goto block_21; } else { -lean_object* x_104; -lean_dec(x_91); -lean_dec(x_88); -lean_dec(x_87); -lean_free_object(x_37); -if (lean_is_scalar(x_95)) { - x_104 = lean_alloc_ctor(1, 2, 0); +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; } else { - x_104 = x_95; + lean_dec_ref(x_98); + x_101 = lean_box(0); } -lean_ctor_set(x_104, 0, x_93); -lean_ctor_set(x_104, 1, x_94); -x_12 = x_104; +x_102 = l_Lean_Exception_isInterrupt(x_99); +if (x_102 == 0) +{ +uint8_t x_103; +x_103 = l_Lean_Exception_isRuntime(x_99); +if (x_103 == 0) +{ +if (lean_obj_tag(x_99) == 0) +{ +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_104 = lean_ctor_get(x_99, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_105 = x_99; +} else { + lean_dec_ref(x_99); + x_105 = lean_box(0); +} +x_106 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +if (lean_is_scalar(x_97)) { + x_107 = lean_alloc_ctor(6, 2, 0); +} else { + x_107 = x_97; + lean_ctor_set_tag(x_107, 6); +} +lean_ctor_set(x_107, 0, x_94); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_106); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_104); +lean_ctor_set(x_38, 0, x_108); +if (lean_is_scalar(x_105)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_105; +} +lean_ctor_set(x_109, 0, x_93); +lean_ctor_set(x_109, 1, x_38); +if (lean_is_scalar(x_101)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_101; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_100); +x_12 = x_110; +goto block_21; +} +else +{ +lean_object* x_111; +lean_dec(x_97); +lean_dec(x_94); +lean_dec(x_93); +lean_free_object(x_38); +if (lean_is_scalar(x_101)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_101; +} +lean_ctor_set(x_111, 0, x_99); +lean_ctor_set(x_111, 1, x_100); +x_12 = x_111; goto block_21; } } else { -lean_object* x_105; -lean_dec(x_91); -lean_dec(x_88); -lean_dec(x_87); -lean_free_object(x_37); -if (lean_is_scalar(x_95)) { - x_105 = lean_alloc_ctor(1, 2, 0); +lean_object* x_112; +lean_dec(x_97); +lean_dec(x_94); +lean_dec(x_93); +lean_free_object(x_38); +if (lean_is_scalar(x_101)) { + x_112 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_95; + x_112 = x_101; } -lean_ctor_set(x_105, 0, x_93); -lean_ctor_set(x_105, 1, x_94); -x_12 = x_105; +lean_ctor_set(x_112, 0, x_99); +lean_ctor_set(x_112, 1, x_100); +x_12 = x_112; +goto block_21; +} +} +else +{ +lean_object* x_113; +lean_dec(x_97); +lean_dec(x_94); +lean_dec(x_93); +lean_free_object(x_38); +if (lean_is_scalar(x_101)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_101; +} +lean_ctor_set(x_113, 0, x_99); +lean_ctor_set(x_113, 1, x_100); +x_12 = x_113; goto block_21; } } @@ -4065,8 +4148,8 @@ goto block_21; } else { -uint8_t x_106; -lean_free_object(x_37); +uint8_t x_114; +lean_free_object(x_38); lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -4074,417 +4157,462 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_106 = !lean_is_exclusive(x_43); -if (x_106 == 0) +x_114 = !lean_is_exclusive(x_44); +if (x_114 == 0) { -lean_object* x_107; -x_107 = lean_ctor_get(x_43, 0); -lean_dec(x_107); -lean_ctor_set_tag(x_43, 1); -lean_ctor_set(x_43, 0, x_32); -x_12 = x_43; +lean_object* x_115; +x_115 = lean_ctor_get(x_44, 0); +lean_dec(x_115); +lean_ctor_set_tag(x_44, 1); +lean_ctor_set(x_44, 0, x_32); +x_12 = x_44; goto block_21; } else { -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_43, 1); -lean_inc(x_108); -lean_dec(x_43); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_32); -lean_ctor_set(x_109, 1, x_108); -x_12 = x_109; +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_44, 1); +lean_inc(x_116); +lean_dec(x_44); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_32); +lean_ctor_set(x_117, 1, x_116); +x_12 = x_117; goto block_21; } } } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_110 = lean_ctor_get(x_37, 1); -x_111 = lean_ctor_get(x_39, 1); -x_112 = lean_ctor_get(x_39, 2); -x_113 = lean_ctor_get(x_39, 3); -x_114 = lean_ctor_get(x_39, 4); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_39); -x_115 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_115, 0, x_29); -lean_ctor_set(x_115, 1, x_111); -lean_ctor_set(x_115, 2, x_112); -lean_ctor_set(x_115, 3, x_113); -lean_ctor_set(x_115, 4, x_114); -x_116 = lean_st_ref_set(x_5, x_115, x_110); +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; +x_118 = lean_ctor_get(x_38, 1); +x_119 = lean_ctor_get(x_40, 1); +x_120 = lean_ctor_get(x_40, 2); +x_121 = lean_ctor_get(x_40, 3); +x_122 = lean_ctor_get(x_40, 4); +lean_inc(x_122); +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_40); +x_123 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_123, 0, x_29); +lean_ctor_set(x_123, 1, x_119); +lean_ctor_set(x_123, 2, x_120); +lean_ctor_set(x_123, 3, x_121); +lean_ctor_set(x_123, 4, x_122); +x_124 = lean_st_ref_set(x_5, x_123, x_118); if (lean_obj_tag(x_32) == 0) { -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; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = lean_ctor_get(x_32, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_32, 1); -lean_inc(x_119); +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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec(x_124); +x_126 = lean_ctor_get(x_32, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_32, 1); +lean_inc(x_127); if (lean_is_exclusive(x_32)) { lean_ctor_release(x_32, 0); lean_ctor_release(x_32, 1); - x_120 = x_32; + x_128 = x_32; } else { lean_dec_ref(x_32); - x_120 = lean_box(0); + x_128 = lean_box(0); } -x_121 = lean_st_ref_set(x_3, x_10, x_117); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_123 = x_121; +x_129 = lean_st_ref_set(x_3, x_10, x_125); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_131 = x_129; } else { - lean_dec_ref(x_121); - x_123 = lean_box(0); + lean_dec_ref(x_129); + x_131 = lean_box(0); } -x_124 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_122); -if (lean_obj_tag(x_124) == 0) +x_132 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_130); +if (lean_obj_tag(x_132) == 0) { -lean_dec(x_123); -lean_dec(x_120); -lean_dec(x_119); -lean_dec(x_118); -lean_free_object(x_37); -x_12 = x_124; +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_free_object(x_38); +x_12 = x_132; goto block_21; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; -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_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t 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_132); + x_135 = lean_box(0); +} +x_136 = l_Lean_Exception_isInterrupt(x_133); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = l_Lean_Exception_isRuntime(x_133); +if (x_137 == 0) +{ +if (lean_obj_tag(x_133) == 0) +{ +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; +x_138 = lean_ctor_get(x_133, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_139 = x_133; +} else { + lean_dec_ref(x_133); + x_139 = lean_box(0); +} +x_140 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +if (lean_is_scalar(x_131)) { + x_141 = lean_alloc_ctor(6, 2, 0); +} else { + x_141 = x_131; + lean_ctor_set_tag(x_141, 6); +} +lean_ctor_set(x_141, 0, x_127); +lean_ctor_set(x_141, 1, x_140); +if (lean_is_scalar(x_128)) { + x_142 = lean_alloc_ctor(6, 2, 0); +} else { + x_142 = x_128; + lean_ctor_set_tag(x_142, 6); +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_140); +lean_ctor_set_tag(x_38, 6); +lean_ctor_set(x_38, 1, x_138); +lean_ctor_set(x_38, 0, x_142); +if (lean_is_scalar(x_139)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_139; +} +lean_ctor_set(x_143, 0, x_126); +lean_ctor_set(x_143, 1, x_38); +if (lean_is_scalar(x_135)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_135; +} +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_134); +x_12 = x_144; +goto block_21; +} +else +{ +lean_object* x_145; +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_free_object(x_38); +if (lean_is_scalar(x_135)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_135; +} +lean_ctor_set(x_145, 0, x_133); +lean_ctor_set(x_145, 1, x_134); +x_12 = x_145; +goto block_21; +} +} +else +{ +lean_object* x_146; +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_free_object(x_38); +if (lean_is_scalar(x_135)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_135; +} +lean_ctor_set(x_146, 0, x_133); +lean_ctor_set(x_146, 1, x_134); +x_12 = x_146; +goto block_21; +} +} +else +{ +lean_object* x_147; +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_free_object(x_38); +if (lean_is_scalar(x_135)) { + x_147 = lean_alloc_ctor(1, 2, 0); +} else { + x_147 = x_135; +} +lean_ctor_set(x_147, 0, x_133); +lean_ctor_set(x_147, 1, x_134); +x_12 = x_147; +goto block_21; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_free_object(x_38); +lean_dec(x_10); +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_148 = lean_ctor_get(x_124, 1); +lean_inc(x_148); if (lean_is_exclusive(x_124)) { lean_ctor_release(x_124, 0); lean_ctor_release(x_124, 1); - x_127 = x_124; + x_149 = x_124; } else { lean_dec_ref(x_124); - x_127 = lean_box(0); + x_149 = lean_box(0); } -x_128 = l_Lean_Exception_isRuntime(x_125); -if (x_128 == 0) -{ -if (lean_obj_tag(x_125) == 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; lean_object* x_135; -x_129 = lean_ctor_get(x_125, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_130 = x_125; +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_125); - x_130 = lean_box(0); + x_150 = x_149; + lean_ctor_set_tag(x_150, 1); } -x_131 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -if (lean_is_scalar(x_123)) { - x_132 = lean_alloc_ctor(6, 2, 0); -} else { - x_132 = x_123; - lean_ctor_set_tag(x_132, 6); -} -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_131); -if (lean_is_scalar(x_120)) { - x_133 = lean_alloc_ctor(6, 2, 0); -} else { - x_133 = x_120; - lean_ctor_set_tag(x_133, 6); -} -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_129); -lean_ctor_set(x_37, 0, x_133); -if (lean_is_scalar(x_130)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_130; -} -lean_ctor_set(x_134, 0, x_118); -lean_ctor_set(x_134, 1, x_37); -if (lean_is_scalar(x_127)) { - x_135 = lean_alloc_ctor(1, 2, 0); -} else { - x_135 = x_127; -} -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_126); -x_12 = x_135; -goto block_21; -} -else -{ -lean_object* x_136; -lean_dec(x_123); -lean_dec(x_120); -lean_dec(x_119); -lean_dec(x_118); -lean_free_object(x_37); -if (lean_is_scalar(x_127)) { - x_136 = lean_alloc_ctor(1, 2, 0); -} else { - x_136 = x_127; -} -lean_ctor_set(x_136, 0, x_125); -lean_ctor_set(x_136, 1, x_126); -x_12 = x_136; -goto block_21; -} -} -else -{ -lean_object* x_137; -lean_dec(x_123); -lean_dec(x_120); -lean_dec(x_119); -lean_dec(x_118); -lean_free_object(x_37); -if (lean_is_scalar(x_127)) { - x_137 = lean_alloc_ctor(1, 2, 0); -} else { - x_137 = x_127; -} -lean_ctor_set(x_137, 0, x_125); -lean_ctor_set(x_137, 1, x_126); -x_12 = x_137; +lean_ctor_set(x_150, 0, x_32); +lean_ctor_set(x_150, 1, x_148); +x_12 = x_150; goto block_21; } } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_free_object(x_37); -lean_dec(x_10); -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_138 = lean_ctor_get(x_116, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_139 = x_116; +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; +x_151 = lean_ctor_get(x_38, 0); +x_152 = lean_ctor_get(x_38, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_38); +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +x_154 = lean_ctor_get(x_151, 2); +lean_inc(x_154); +x_155 = lean_ctor_get(x_151, 3); +lean_inc(x_155); +x_156 = lean_ctor_get(x_151, 4); +lean_inc(x_156); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + lean_ctor_release(x_151, 2); + lean_ctor_release(x_151, 3); + lean_ctor_release(x_151, 4); + x_157 = x_151; } else { - lean_dec_ref(x_116); - x_139 = lean_box(0); + lean_dec_ref(x_151); + x_157 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 5, 0); } else { - x_140 = x_139; - lean_ctor_set_tag(x_140, 1); + x_158 = x_157; } -lean_ctor_set(x_140, 0, x_32); -lean_ctor_set(x_140, 1, x_138); -x_12 = x_140; -goto block_21; -} -} -} -else -{ -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; -x_141 = lean_ctor_get(x_37, 0); -x_142 = lean_ctor_get(x_37, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_37); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -x_144 = lean_ctor_get(x_141, 2); -lean_inc(x_144); -x_145 = lean_ctor_get(x_141, 3); -lean_inc(x_145); -x_146 = lean_ctor_get(x_141, 4); -lean_inc(x_146); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - lean_ctor_release(x_141, 2); - lean_ctor_release(x_141, 3); - lean_ctor_release(x_141, 4); - x_147 = x_141; -} else { - lean_dec_ref(x_141); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(0, 5, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_29); -lean_ctor_set(x_148, 1, x_143); -lean_ctor_set(x_148, 2, x_144); -lean_ctor_set(x_148, 3, x_145); -lean_ctor_set(x_148, 4, x_146); -x_149 = lean_st_ref_set(x_5, x_148, x_142); +lean_ctor_set(x_158, 0, x_29); +lean_ctor_set(x_158, 1, x_153); +lean_ctor_set(x_158, 2, x_154); +lean_ctor_set(x_158, 3, x_155); +lean_ctor_set(x_158, 4, x_156); +x_159 = lean_st_ref_set(x_5, x_158, x_152); if (lean_obj_tag(x_32) == 0) { -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_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec(x_149); -x_151 = lean_ctor_get(x_32, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_32, 1); -lean_inc(x_152); +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; +x_160 = lean_ctor_get(x_159, 1); +lean_inc(x_160); +lean_dec(x_159); +x_161 = lean_ctor_get(x_32, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_32, 1); +lean_inc(x_162); if (lean_is_exclusive(x_32)) { lean_ctor_release(x_32, 0); lean_ctor_release(x_32, 1); - x_153 = x_32; + x_163 = x_32; } else { lean_dec_ref(x_32); - x_153 = lean_box(0); -} -x_154 = lean_st_ref_set(x_3, x_10, x_150); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_156 = x_154; -} else { - lean_dec_ref(x_154); - x_156 = lean_box(0); -} -x_157 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_155); -if (lean_obj_tag(x_157) == 0) -{ -lean_dec(x_156); -lean_dec(x_153); -lean_dec(x_152); -lean_dec(x_151); -x_12 = x_157; -goto block_21; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_160 = x_157; -} else { - lean_dec_ref(x_157); - x_160 = lean_box(0); -} -x_161 = l_Lean_Exception_isRuntime(x_158); -if (x_161 == 0) -{ -if (lean_obj_tag(x_158) == 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; lean_object* x_168; lean_object* x_169; -x_162 = lean_ctor_get(x_158, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_163 = x_158; -} else { - lean_dec_ref(x_158); x_163 = lean_box(0); } -x_164 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -if (lean_is_scalar(x_156)) { - x_165 = lean_alloc_ctor(6, 2, 0); +x_164 = lean_st_ref_set(x_3, x_10, x_160); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_166 = x_164; } else { - x_165 = x_156; - lean_ctor_set_tag(x_165, 6); + lean_dec_ref(x_164); + x_166 = lean_box(0); } -lean_ctor_set(x_165, 0, x_152); -lean_ctor_set(x_165, 1, x_164); -if (lean_is_scalar(x_153)) { - x_166 = lean_alloc_ctor(6, 2, 0); +x_167 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_165); +if (lean_obj_tag(x_167) == 0) +{ +lean_dec(x_166); +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_161); +x_12 = x_167; +goto block_21; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_170 = x_167; } else { - x_166 = x_153; - lean_ctor_set_tag(x_166, 6); + lean_dec_ref(x_167); + x_170 = lean_box(0); } -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -x_167 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_162); +x_171 = l_Lean_Exception_isInterrupt(x_168); +if (x_171 == 0) +{ +uint8_t x_172; +x_172 = l_Lean_Exception_isRuntime(x_168); +if (x_172 == 0) +{ +if (lean_obj_tag(x_168) == 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; lean_object* x_179; lean_object* x_180; +x_173 = lean_ctor_get(x_168, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +if (lean_is_scalar(x_166)) { + x_176 = lean_alloc_ctor(6, 2, 0); +} else { + x_176 = x_166; + lean_ctor_set_tag(x_176, 6); +} +lean_ctor_set(x_176, 0, x_162); +lean_ctor_set(x_176, 1, x_175); if (lean_is_scalar(x_163)) { - x_168 = lean_alloc_ctor(0, 2, 0); + x_177 = lean_alloc_ctor(6, 2, 0); } else { - x_168 = x_163; + x_177 = x_163; + lean_ctor_set_tag(x_177, 6); } -lean_ctor_set(x_168, 0, x_151); -lean_ctor_set(x_168, 1, x_167); -if (lean_is_scalar(x_160)) { - x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_175); +x_178 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_173); +if (lean_is_scalar(x_174)) { + x_179 = lean_alloc_ctor(0, 2, 0); } else { - x_169 = x_160; + x_179 = x_174; } -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_159); -x_12 = x_169; +lean_ctor_set(x_179, 0, x_161); +lean_ctor_set(x_179, 1, x_178); +if (lean_is_scalar(x_170)) { + x_180 = lean_alloc_ctor(1, 2, 0); +} else { + x_180 = x_170; +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_169); +x_12 = x_180; goto block_21; } else { -lean_object* x_170; -lean_dec(x_156); -lean_dec(x_153); -lean_dec(x_152); -lean_dec(x_151); -if (lean_is_scalar(x_160)) { - x_170 = lean_alloc_ctor(1, 2, 0); +lean_object* x_181; +lean_dec(x_166); +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_161); +if (lean_is_scalar(x_170)) { + x_181 = lean_alloc_ctor(1, 2, 0); } else { - x_170 = x_160; + x_181 = x_170; } -lean_ctor_set(x_170, 0, x_158); -lean_ctor_set(x_170, 1, x_159); -x_12 = x_170; +lean_ctor_set(x_181, 0, x_168); +lean_ctor_set(x_181, 1, x_169); +x_12 = x_181; goto block_21; } } else { -lean_object* x_171; -lean_dec(x_156); -lean_dec(x_153); -lean_dec(x_152); -lean_dec(x_151); -if (lean_is_scalar(x_160)) { - x_171 = lean_alloc_ctor(1, 2, 0); +lean_object* x_182; +lean_dec(x_166); +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_161); +if (lean_is_scalar(x_170)) { + x_182 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_160; + x_182 = x_170; } -lean_ctor_set(x_171, 0, x_158); -lean_ctor_set(x_171, 1, x_159); -x_12 = x_171; +lean_ctor_set(x_182, 0, x_168); +lean_ctor_set(x_182, 1, x_169); +x_12 = x_182; +goto block_21; +} +} +else +{ +lean_object* x_183; +lean_dec(x_166); +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_161); +if (lean_is_scalar(x_170)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_170; +} +lean_ctor_set(x_183, 0, x_168); +lean_ctor_set(x_183, 1, x_169); +x_12 = x_183; goto block_21; } } } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -4492,25 +4620,25 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_172 = lean_ctor_get(x_149, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_173 = x_149; +x_184 = lean_ctor_get(x_159, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_185 = x_159; } else { - lean_dec_ref(x_149); - x_173 = lean_box(0); + lean_dec_ref(x_159); + x_185 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_173; - lean_ctor_set_tag(x_174, 1); + x_186 = x_185; + lean_ctor_set_tag(x_186, 1); } -lean_ctor_set(x_174, 0, x_32); -lean_ctor_set(x_174, 1, x_172); -x_12 = x_174; +lean_ctor_set(x_186, 0, x_32); +lean_ctor_set(x_186, 1, x_184); +x_12 = x_186; goto block_21; } } @@ -4532,251 +4660,6 @@ goto block_21; } else { -lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_175 = lean_ctor_get(x_30, 0); -x_176 = lean_ctor_get(x_30, 1); -lean_inc(x_176); -lean_inc(x_175); -lean_dec(x_30); -x_177 = l_Lean_Exception_isRuntime(x_175); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_178 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_25, x_4, x_5, x_6, x_7, x_176); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -lean_dec(x_178); -x_180 = lean_st_ref_take(x_5, x_179); -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_183 = x_180; -} else { - lean_dec_ref(x_180); - x_183 = lean_box(0); -} -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -x_185 = lean_ctor_get(x_181, 2); -lean_inc(x_185); -x_186 = lean_ctor_get(x_181, 3); -lean_inc(x_186); -x_187 = lean_ctor_get(x_181, 4); -lean_inc(x_187); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - lean_ctor_release(x_181, 1); - lean_ctor_release(x_181, 2); - lean_ctor_release(x_181, 3); - lean_ctor_release(x_181, 4); - x_188 = x_181; -} else { - lean_dec_ref(x_181); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(0, 5, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_29); -lean_ctor_set(x_189, 1, x_184); -lean_ctor_set(x_189, 2, x_185); -lean_ctor_set(x_189, 3, x_186); -lean_ctor_set(x_189, 4, x_187); -x_190 = lean_st_ref_set(x_5, x_189, x_182); -if (lean_obj_tag(x_175) == 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; lean_object* x_198; -x_191 = lean_ctor_get(x_190, 1); -lean_inc(x_191); -lean_dec(x_190); -x_192 = lean_ctor_get(x_175, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_175, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_194 = x_175; -} else { - lean_dec_ref(x_175); - x_194 = lean_box(0); -} -x_195 = lean_st_ref_set(x_3, x_10, x_191); -x_196 = lean_ctor_get(x_195, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_196); -if (lean_obj_tag(x_198) == 0) -{ -lean_dec(x_197); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_183); -x_12 = x_198; -goto block_21; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_201 = x_198; -} else { - lean_dec_ref(x_198); - x_201 = lean_box(0); -} -x_202 = l_Lean_Exception_isRuntime(x_199); -if (x_202 == 0) -{ -if (lean_obj_tag(x_199) == 0) -{ -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_203 = lean_ctor_get(x_199, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_204 = x_199; -} else { - lean_dec_ref(x_199); - x_204 = lean_box(0); -} -x_205 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; -if (lean_is_scalar(x_197)) { - x_206 = lean_alloc_ctor(6, 2, 0); -} else { - x_206 = x_197; - lean_ctor_set_tag(x_206, 6); -} -lean_ctor_set(x_206, 0, x_193); -lean_ctor_set(x_206, 1, x_205); -if (lean_is_scalar(x_194)) { - x_207 = lean_alloc_ctor(6, 2, 0); -} else { - x_207 = x_194; - lean_ctor_set_tag(x_207, 6); -} -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_205); -if (lean_is_scalar(x_183)) { - x_208 = lean_alloc_ctor(6, 2, 0); -} else { - x_208 = x_183; - lean_ctor_set_tag(x_208, 6); -} -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_203); -if (lean_is_scalar(x_204)) { - x_209 = lean_alloc_ctor(0, 2, 0); -} else { - x_209 = x_204; -} -lean_ctor_set(x_209, 0, x_192); -lean_ctor_set(x_209, 1, x_208); -if (lean_is_scalar(x_201)) { - x_210 = lean_alloc_ctor(1, 2, 0); -} else { - x_210 = x_201; -} -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_200); -x_12 = x_210; -goto block_21; -} -else -{ -lean_object* x_211; -lean_dec(x_197); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_183); -if (lean_is_scalar(x_201)) { - x_211 = lean_alloc_ctor(1, 2, 0); -} else { - x_211 = x_201; -} -lean_ctor_set(x_211, 0, x_199); -lean_ctor_set(x_211, 1, x_200); -x_12 = x_211; -goto block_21; -} -} -else -{ -lean_object* x_212; -lean_dec(x_197); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); -lean_dec(x_183); -if (lean_is_scalar(x_201)) { - x_212 = lean_alloc_ctor(1, 2, 0); -} else { - x_212 = x_201; -} -lean_ctor_set(x_212, 0, x_199); -lean_ctor_set(x_212, 1, x_200); -x_12 = x_212; -goto block_21; -} -} -} -else -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -lean_dec(x_183); -lean_dec(x_10); -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_213 = lean_ctor_get(x_190, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_214 = x_190; -} else { - lean_dec_ref(x_190); - 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_tag(x_215, 1); -} -lean_ctor_set(x_215, 0, x_175); -lean_ctor_set(x_215, 1, x_213); -x_12 = x_215; -goto block_21; -} -} -else -{ -lean_object* x_216; lean_dec(x_29); lean_dec(x_25); lean_dec(x_10); @@ -4786,10 +4669,316 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_175); -lean_ctor_set(x_216, 1, x_176); -x_12 = x_216; +x_12 = x_30; +goto block_21; +} +} +else +{ +lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_187 = lean_ctor_get(x_30, 0); +x_188 = lean_ctor_get(x_30, 1); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_30); +x_189 = l_Lean_Exception_isInterrupt(x_187); +if (x_189 == 0) +{ +uint8_t x_190; +x_190 = l_Lean_Exception_isRuntime(x_187); +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; 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_191 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_25, x_4, x_5, x_6, x_7, x_188); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_5, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + x_196 = x_193; +} else { + lean_dec_ref(x_193); + x_196 = lean_box(0); +} +x_197 = lean_ctor_get(x_194, 1); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 2); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 3); +lean_inc(x_199); +x_200 = lean_ctor_get(x_194, 4); +lean_inc(x_200); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + lean_ctor_release(x_194, 4); + x_201 = x_194; +} else { + lean_dec_ref(x_194); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(0, 5, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_29); +lean_ctor_set(x_202, 1, x_197); +lean_ctor_set(x_202, 2, x_198); +lean_ctor_set(x_202, 3, x_199); +lean_ctor_set(x_202, 4, x_200); +x_203 = lean_st_ref_set(x_5, x_202, x_195); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +lean_dec(x_203); +x_205 = lean_ctor_get(x_187, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_187, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_207 = x_187; +} else { + lean_dec_ref(x_187); + x_207 = lean_box(0); +} +x_208 = lean_st_ref_set(x_3, x_10, x_204); +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + lean_ctor_release(x_208, 1); + x_210 = x_208; +} else { + lean_dec_ref(x_208); + x_210 = lean_box(0); +} +x_211 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_209); +if (lean_obj_tag(x_211) == 0) +{ +lean_dec(x_210); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_196); +x_12 = x_211; +goto block_21; +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_214 = x_211; +} else { + lean_dec_ref(x_211); + x_214 = lean_box(0); +} +x_215 = l_Lean_Exception_isInterrupt(x_212); +if (x_215 == 0) +{ +uint8_t x_216; +x_216 = l_Lean_Exception_isRuntime(x_212); +if (x_216 == 0) +{ +if (lean_obj_tag(x_212) == 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; lean_object* x_224; +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 = l___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_orelse_x27___rarg___closed__1; +if (lean_is_scalar(x_210)) { + x_220 = lean_alloc_ctor(6, 2, 0); +} else { + x_220 = x_210; + lean_ctor_set_tag(x_220, 6); +} +lean_ctor_set(x_220, 0, x_206); +lean_ctor_set(x_220, 1, x_219); +if (lean_is_scalar(x_207)) { + x_221 = lean_alloc_ctor(6, 2, 0); +} else { + x_221 = x_207; + lean_ctor_set_tag(x_221, 6); +} +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +if (lean_is_scalar(x_196)) { + x_222 = lean_alloc_ctor(6, 2, 0); +} else { + x_222 = x_196; + lean_ctor_set_tag(x_222, 6); +} +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_217); +if (lean_is_scalar(x_218)) { + x_223 = lean_alloc_ctor(0, 2, 0); +} else { + x_223 = x_218; +} +lean_ctor_set(x_223, 0, x_205); +lean_ctor_set(x_223, 1, x_222); +if (lean_is_scalar(x_214)) { + x_224 = lean_alloc_ctor(1, 2, 0); +} else { + x_224 = x_214; +} +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_213); +x_12 = x_224; +goto block_21; +} +else +{ +lean_object* x_225; +lean_dec(x_210); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_196); +if (lean_is_scalar(x_214)) { + x_225 = lean_alloc_ctor(1, 2, 0); +} else { + x_225 = x_214; +} +lean_ctor_set(x_225, 0, x_212); +lean_ctor_set(x_225, 1, x_213); +x_12 = x_225; +goto block_21; +} +} +else +{ +lean_object* x_226; +lean_dec(x_210); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_196); +if (lean_is_scalar(x_214)) { + x_226 = lean_alloc_ctor(1, 2, 0); +} else { + x_226 = x_214; +} +lean_ctor_set(x_226, 0, x_212); +lean_ctor_set(x_226, 1, x_213); +x_12 = x_226; +goto block_21; +} +} +else +{ +lean_object* x_227; +lean_dec(x_210); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_196); +if (lean_is_scalar(x_214)) { + x_227 = lean_alloc_ctor(1, 2, 0); +} else { + x_227 = x_214; +} +lean_ctor_set(x_227, 0, x_212); +lean_ctor_set(x_227, 1, x_213); +x_12 = x_227; +goto block_21; +} +} +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_196); +lean_dec(x_10); +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_228 = lean_ctor_get(x_203, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_229 = x_203; +} else { + lean_dec_ref(x_203); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; + lean_ctor_set_tag(x_230, 1); +} +lean_ctor_set(x_230, 0, x_187); +lean_ctor_set(x_230, 1, x_228); +x_12 = x_230; +goto block_21; +} +} +else +{ +lean_object* x_231; +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_10); +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_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_187); +lean_ctor_set(x_231, 1, x_188); +x_12 = x_231; +goto block_21; +} +} +else +{ +lean_object* x_232; +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_10); +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_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_187); +lean_ctor_set(x_232, 1, x_188); +x_12 = x_232; goto block_21; } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c index 6b102173a3..0551c6047c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c @@ -5332,7 +5332,7 @@ return x_131; } else { -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; uint8_t x_145; lean_object* x_146; +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; uint8_t x_145; lean_object* x_146; uint8_t x_147; lean_object* x_148; lean_dec(x_117); x_132 = lean_ctor_get(x_119, 0); lean_inc(x_132); @@ -5362,98 +5362,103 @@ x_143 = lean_ctor_get(x_9, 9); lean_inc(x_143); x_144 = lean_ctor_get(x_9, 10); lean_inc(x_144); -x_145 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_145 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_146 = lean_ctor_get(x_9, 11); +lean_inc(x_146); +x_147 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); lean_dec(x_9); -x_146 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_146, 0, x_135); -lean_ctor_set(x_146, 1, x_136); -lean_ctor_set(x_146, 2, x_137); -lean_ctor_set(x_146, 3, x_138); -lean_ctor_set(x_146, 4, x_139); -lean_ctor_set(x_146, 5, x_134); -lean_ctor_set(x_146, 6, x_140); -lean_ctor_set(x_146, 7, x_141); -lean_ctor_set(x_146, 8, x_142); -lean_ctor_set(x_146, 9, x_143); -lean_ctor_set(x_146, 10, x_144); -lean_ctor_set_uint8(x_146, sizeof(void*)*11, x_145); +x_148 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_148, 0, x_135); +lean_ctor_set(x_148, 1, x_136); +lean_ctor_set(x_148, 2, x_137); +lean_ctor_set(x_148, 3, x_138); +lean_ctor_set(x_148, 4, x_139); +lean_ctor_set(x_148, 5, x_134); +lean_ctor_set(x_148, 6, x_140); +lean_ctor_set(x_148, 7, x_141); +lean_ctor_set(x_148, 8, x_142); +lean_ctor_set(x_148, 9, x_143); +lean_ctor_set(x_148, 10, x_144); +lean_ctor_set(x_148, 11, x_146); +lean_ctor_set_uint8(x_148, sizeof(void*)*12, x_145); +lean_ctor_set_uint8(x_148, sizeof(void*)*12 + 1, x_147); x_5 = x_118; -x_9 = x_146; +x_9 = x_148; goto _start; } } case 11: { -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_148 = lean_ctor_get(x_5, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_5, 1); -lean_inc(x_149); -x_150 = lean_ctor_get(x_5, 2); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_150 = lean_ctor_get(x_5, 0); lean_inc(x_150); +x_151 = lean_ctor_get(x_5, 1); +lean_inc(x_151); +x_152 = lean_ctor_get(x_5, 2); +lean_inc(x_152); lean_dec(x_5); -x_151 = l___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop(x_1, x_2, x_3, x_4, x_150, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_151) == 0) +x_153 = l___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop(x_1, x_2, x_3, x_4, x_152, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_153) == 0) { -uint8_t x_152; -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) +uint8_t x_154; +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) { -lean_object* x_153; lean_object* x_154; -x_153 = lean_ctor_get(x_151, 0); -x_154 = l_Lean_Expr_proj___override(x_148, x_149, x_153); -lean_ctor_set(x_151, 0, x_154); -return x_151; +lean_object* x_155; lean_object* x_156; +x_155 = lean_ctor_get(x_153, 0); +x_156 = l_Lean_Expr_proj___override(x_150, x_151, x_155); +lean_ctor_set(x_153, 0, x_156); +return x_153; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_155 = lean_ctor_get(x_151, 0); -x_156 = lean_ctor_get(x_151, 1); -lean_inc(x_156); -lean_inc(x_155); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_157 = lean_ctor_get(x_153, 0); +x_158 = lean_ctor_get(x_153, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_153); +x_159 = l_Lean_Expr_proj___override(x_150, x_151, x_157); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +return x_160; +} +} +else +{ +uint8_t x_161; lean_dec(x_151); -x_157 = l_Lean_Expr_proj___override(x_148, x_149, x_155); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -return x_158; -} +lean_dec(x_150); +x_161 = !lean_is_exclusive(x_153); +if (x_161 == 0) +{ +return x_153; } else { -uint8_t x_159; -lean_dec(x_149); -lean_dec(x_148); -x_159 = !lean_is_exclusive(x_151); -if (x_159 == 0) -{ -return x_151; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_151, 0); -x_161 = lean_ctor_get(x_151, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_151); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_153, 0); +x_163 = lean_ctor_get(x_153, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_153); +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; } } } default: { -lean_object* x_163; +lean_object* x_165; lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_163 = l_Lean_Elab_ensureNoRecFn(x_1, x_5, x_7, x_8, x_9, x_10, x_11); -return x_163; +x_165 = l_Lean_Elab_ensureNoRecFn(x_1, x_5, x_7, x_8, x_9, x_10, x_11); +return x_165; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c index 98f60ecaa3..4e9b93b90d 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c @@ -3695,7 +3695,7 @@ x_15 = l_Lean_Elab_WF_mkEqns___lambda__2___closed__1; x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); x_17 = 0; lean_inc(x_10); lean_inc(x_9); @@ -3794,7 +3794,7 @@ 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; uint8_t x_51; lean_object* x_52; +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; uint8_t x_53; lean_object* x_54; x_39 = lean_ctor_get(x_9, 0); x_40 = lean_ctor_get(x_9, 1); x_41 = lean_ctor_get(x_9, 3); @@ -3804,6 +3804,9 @@ x_44 = lean_ctor_get(x_9, 7); x_45 = lean_ctor_get(x_9, 8); x_46 = lean_ctor_get(x_9, 9); x_47 = lean_ctor_get(x_9, 10); +x_48 = lean_ctor_get(x_9, 11); +x_49 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -3814,121 +3817,123 @@ lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_dec(x_9); -x_48 = l_Lean_Elab_WF_mkEqns___lambda__2___closed__1; -x_49 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_48); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_39); -lean_ctor_set(x_50, 1, x_40); -lean_ctor_set(x_50, 2, x_1); -lean_ctor_set(x_50, 3, x_41); -lean_ctor_set(x_50, 4, x_49); -lean_ctor_set(x_50, 5, x_42); -lean_ctor_set(x_50, 6, x_43); -lean_ctor_set(x_50, 7, x_44); -lean_ctor_set(x_50, 8, x_45); -lean_ctor_set(x_50, 9, x_46); -lean_ctor_set(x_50, 10, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_2); -x_51 = 0; +x_50 = l_Lean_Elab_WF_mkEqns___lambda__2___closed__1; +x_51 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_50); +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_40); +lean_ctor_set(x_52, 2, x_1); +lean_ctor_set(x_52, 3, x_41); +lean_ctor_set(x_52, 4, x_51); +lean_ctor_set(x_52, 5, x_42); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_49); +x_53 = 0; lean_inc(x_10); -lean_inc(x_50); +lean_inc(x_52); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_3, x_51, x_4, x_5, x_50, x_10, x_11); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_3, x_53, x_4, x_5, x_52, x_10, x_11); +if (lean_obj_tag(x_54) == 0) { -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; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_box(0); -x_56 = lean_array_get_size(x_53); -x_57 = lean_unsigned_to_nat(0u); -x_58 = lean_unsigned_to_nat(1u); -x_59 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; +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_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_60 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1(x_6, x_7, x_53, x_55, x_56, x_56, x_57, x_56, x_58, x_59, x_4, x_5, x_50, x_10, x_54); -lean_dec(x_56); -lean_dec(x_53); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_54); +x_57 = lean_box(0); +x_58 = lean_array_get_size(x_55); +x_59 = lean_unsigned_to_nat(0u); +x_60 = lean_unsigned_to_nat(1u); +x_61 = l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; +lean_inc(x_58); +x_62 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1(x_6, x_7, x_55, x_57, x_58, x_58, x_59, x_58, x_60, x_61, x_4, x_5, x_52, x_10, x_56); +lean_dec(x_58); +lean_dec(x_55); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -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; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +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; } else { - lean_dec_ref(x_60); - x_63 = lean_box(0); + lean_dec_ref(x_62); + x_65 = lean_box(0); } -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 2, 0); } else { - x_64 = x_63; + x_66 = x_65; } -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_60, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_67 = x_60; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_69 = x_62; } else { - lean_dec_ref(x_60); - x_67 = lean_box(0); + lean_dec_ref(x_62); + x_69 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_67; + x_70 = x_69; } -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_50); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_52); lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_69 = lean_ctor_get(x_52, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_52, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_71 = x_52; +x_71 = lean_ctor_get(x_54, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_54, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_73 = x_54; } else { - lean_dec_ref(x_52); - x_71 = lean_box(0); + lean_dec_ref(x_54); + x_73 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; + x_74 = x_73; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c index 56bd01bde2..0a4832b664 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c @@ -8444,7 +8444,7 @@ return x_145; } else { -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; uint8_t x_159; lean_object* x_160; lean_object* x_161; +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; uint8_t x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_dec(x_131); x_146 = lean_ctor_get(x_133, 0); lean_inc(x_146); @@ -8474,98 +8474,103 @@ x_157 = lean_ctor_get(x_11, 9); lean_inc(x_157); x_158 = lean_ctor_get(x_11, 10); lean_inc(x_158); -x_159 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_159 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_160 = lean_ctor_get(x_11, 11); +lean_inc(x_160); +x_161 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); lean_dec(x_11); -x_160 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_160, 0, x_149); -lean_ctor_set(x_160, 1, x_150); -lean_ctor_set(x_160, 2, x_151); -lean_ctor_set(x_160, 3, x_152); -lean_ctor_set(x_160, 4, x_153); -lean_ctor_set(x_160, 5, x_148); -lean_ctor_set(x_160, 6, x_154); -lean_ctor_set(x_160, 7, x_155); -lean_ctor_set(x_160, 8, x_156); -lean_ctor_set(x_160, 9, x_157); -lean_ctor_set(x_160, 10, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*11, x_159); -x_161 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_2, x_3, x_4, x_132, x_6, x_7, x_8, x_9, x_10, x_160, x_12, x_13); -return x_161; +x_162 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_162, 0, x_149); +lean_ctor_set(x_162, 1, x_150); +lean_ctor_set(x_162, 2, x_151); +lean_ctor_set(x_162, 3, x_152); +lean_ctor_set(x_162, 4, x_153); +lean_ctor_set(x_162, 5, x_148); +lean_ctor_set(x_162, 6, x_154); +lean_ctor_set(x_162, 7, x_155); +lean_ctor_set(x_162, 8, x_156); +lean_ctor_set(x_162, 9, x_157); +lean_ctor_set(x_162, 10, x_158); +lean_ctor_set(x_162, 11, x_160); +lean_ctor_set_uint8(x_162, sizeof(void*)*12, x_159); +lean_ctor_set_uint8(x_162, sizeof(void*)*12 + 1, x_161); +x_163 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_2, x_3, x_4, x_132, x_6, x_7, x_8, x_9, x_10, x_162, x_12, x_13); +return x_163; } } case 11: { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_162 = lean_ctor_get(x_1, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_1, 1); -lean_inc(x_163); -x_164 = lean_ctor_get(x_1, 2); +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_164 = lean_ctor_get(x_1, 0); lean_inc(x_164); +x_165 = lean_ctor_get(x_1, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_1, 2); +lean_inc(x_166); lean_dec(x_1); -x_165 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_2, x_3, x_4, x_164, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_165) == 0) +x_167 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_2, x_3, x_4, x_166, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_167) == 0) { -uint8_t x_166; -x_166 = !lean_is_exclusive(x_165); -if (x_166 == 0) +uint8_t x_168; +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) { -lean_object* x_167; lean_object* x_168; -x_167 = lean_ctor_get(x_165, 0); -x_168 = l_Lean_Expr_proj___override(x_162, x_163, x_167); -lean_ctor_set(x_165, 0, x_168); -return x_165; +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 0); +x_170 = l_Lean_Expr_proj___override(x_164, x_165, x_169); +lean_ctor_set(x_167, 0, x_170); +return x_167; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_169 = lean_ctor_get(x_165, 0); -x_170 = lean_ctor_get(x_165, 1); -lean_inc(x_170); -lean_inc(x_169); +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_171 = lean_ctor_get(x_167, 0); +x_172 = lean_ctor_get(x_167, 1); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_167); +x_173 = l_Lean_Expr_proj___override(x_164, x_165, x_171); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_172); +return x_174; +} +} +else +{ +uint8_t x_175; lean_dec(x_165); -x_171 = l_Lean_Expr_proj___override(x_162, x_163, x_169); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_170); -return x_172; -} +lean_dec(x_164); +x_175 = !lean_is_exclusive(x_167); +if (x_175 == 0) +{ +return x_167; } else { -uint8_t x_173; -lean_dec(x_163); -lean_dec(x_162); -x_173 = !lean_is_exclusive(x_165); -if (x_173 == 0) -{ -return x_165; -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_165, 0); -x_175 = lean_ctor_get(x_165, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_165); -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; +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_167, 0); +x_177 = lean_ctor_get(x_167, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_167); +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; } } } default: { -lean_object* x_177; +lean_object* x_179; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_177 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); -return x_177; +x_179 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); +return x_179; } } } @@ -14143,7 +14148,7 @@ 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; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +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; uint8_t x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_dec(x_23); x_39 = lean_ctor_get(x_28, 0); lean_inc(x_39); @@ -14159,9 +14164,12 @@ x_47 = lean_ctor_get(x_9, 7); x_48 = lean_ctor_get(x_9, 8); x_49 = lean_ctor_get(x_9, 9); x_50 = lean_ctor_get(x_9, 10); -x_51 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_52 = l_Lean_replaceRef(x_39, x_45); +x_51 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_52 = lean_ctor_get(x_9, 11); +x_53 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_54 = l_Lean_replaceRef(x_39, x_45); lean_dec(x_39); +lean_inc(x_52); lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); @@ -14172,68 +14180,70 @@ lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); -x_53 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_53, 0, x_40); -lean_ctor_set(x_53, 1, x_41); -lean_ctor_set(x_53, 2, x_42); -lean_ctor_set(x_53, 3, x_43); -lean_ctor_set(x_53, 4, x_44); -lean_ctor_set(x_53, 5, x_52); -lean_ctor_set(x_53, 6, x_46); -lean_ctor_set(x_53, 7, x_47); -lean_ctor_set(x_53, 8, x_48); -lean_ctor_set(x_53, 9, x_49); -lean_ctor_set(x_53, 10, x_50); -lean_ctor_set_uint8(x_53, sizeof(void*)*11, x_51); +x_55 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_55, 0, x_40); +lean_ctor_set(x_55, 1, x_41); +lean_ctor_set(x_55, 2, x_42); +lean_ctor_set(x_55, 3, x_43); +lean_ctor_set(x_55, 4, x_44); +lean_ctor_set(x_55, 5, x_54); +lean_ctor_set(x_55, 6, x_46); +lean_ctor_set(x_55, 7, x_47); +lean_ctor_set(x_55, 8, x_48); +lean_ctor_set(x_55, 9, x_49); +lean_ctor_set(x_55, 10, x_50); +lean_ctor_set(x_55, 11, x_52); +lean_ctor_set_uint8(x_55, sizeof(void*)*12, x_51); +lean_ctor_set_uint8(x_55, sizeof(void*)*12 + 1, x_53); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_54 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic(x_14, x_5, x_6, x_7, x_8, x_53, x_10, x_27); -if (lean_obj_tag(x_54) == 0) +x_56 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic(x_14, x_5, x_6, x_7, x_8, x_55, x_10, x_27); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__1___closed__3; -x_15 = x_56; -x_16 = x_55; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__1___closed__3; +x_15 = x_58; +x_16 = x_57; goto block_21; } else { -uint8_t x_57; +uint8_t x_59; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_57 = !lean_is_exclusive(x_54); -if (x_57 == 0) +x_59 = !lean_is_exclusive(x_56); +if (x_59 == 0) { -return x_54; +return x_56; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 0); -x_59 = lean_ctor_get(x_54, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_54); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_56, 0); +x_61 = lean_ctor_get(x_56, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_56); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } } else { -uint8_t x_61; +uint8_t x_63; lean_dec(x_23); lean_dec(x_14); lean_dec(x_10); @@ -14241,52 +14251,52 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_61 = !lean_is_exclusive(x_25); -if (x_61 == 0) +x_63 = !lean_is_exclusive(x_25); +if (x_63 == 0) { return x_25; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_25, 0); -x_63 = lean_ctor_get(x_25, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_25, 0); +x_65 = lean_ctor_get(x_25, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_25); -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; +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 { -uint8_t x_65; +uint8_t x_67; lean_dec(x_14); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_65 = !lean_is_exclusive(x_22); -if (x_65 == 0) +x_67 = !lean_is_exclusive(x_22); +if (x_67 == 0) { return x_22; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_22, 0); -x_67 = lean_ctor_get(x_22, 1); -lean_inc(x_67); -lean_inc(x_66); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_22, 0); +x_69 = lean_ctor_get(x_22, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_22); -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; +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; } } block_21: @@ -14746,7 +14756,7 @@ return x_57; } else { -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; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; +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; uint8_t 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; uint8_t x_83; lean_object* x_84; x_65 = lean_ctor_get(x_9, 0); x_66 = lean_ctor_get(x_9, 1); x_67 = lean_ctor_get(x_9, 2); @@ -14758,7 +14768,10 @@ x_72 = lean_ctor_get(x_9, 7); x_73 = lean_ctor_get(x_9, 8); x_74 = lean_ctor_get(x_9, 9); x_75 = lean_ctor_get(x_9, 10); -x_76 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_76 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_77 = lean_ctor_get(x_9, 11); +x_78 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_77); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); @@ -14771,225 +14784,227 @@ lean_inc(x_67); lean_inc(x_66); lean_inc(x_65); lean_dec(x_9); -x_77 = l_Lean_replaceRef(x_2, x_70); +x_79 = l_Lean_replaceRef(x_2, x_70); lean_dec(x_70); -x_78 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_78, 0, x_65); -lean_ctor_set(x_78, 1, x_66); -lean_ctor_set(x_78, 2, x_67); -lean_ctor_set(x_78, 3, x_68); -lean_ctor_set(x_78, 4, x_69); -lean_ctor_set(x_78, 5, x_77); -lean_ctor_set(x_78, 6, x_71); -lean_ctor_set(x_78, 7, x_72); -lean_ctor_set(x_78, 8, x_73); -lean_ctor_set(x_78, 9, x_74); -lean_ctor_set(x_78, 10, x_75); -lean_ctor_set_uint8(x_78, sizeof(void*)*11, x_76); -x_79 = lean_array_get_size(x_3); -x_80 = lean_unsigned_to_nat(0u); -x_81 = lean_nat_dec_lt(x_80, x_79); -if (x_81 == 0) +x_80 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_80, 0, x_65); +lean_ctor_set(x_80, 1, x_66); +lean_ctor_set(x_80, 2, x_67); +lean_ctor_set(x_80, 3, x_68); +lean_ctor_set(x_80, 4, x_69); +lean_ctor_set(x_80, 5, x_79); +lean_ctor_set(x_80, 6, x_71); +lean_ctor_set(x_80, 7, x_72); +lean_ctor_set(x_80, 8, x_73); +lean_ctor_set(x_80, 9, x_74); +lean_ctor_set(x_80, 10, x_75); +lean_ctor_set(x_80, 11, x_77); +lean_ctor_set_uint8(x_80, sizeof(void*)*12, x_76); +lean_ctor_set_uint8(x_80, sizeof(void*)*12 + 1, x_78); +x_81 = lean_array_get_size(x_3); +x_82 = lean_unsigned_to_nat(0u); +x_83 = lean_nat_dec_lt(x_82, x_81); +if (x_83 == 0) { -lean_dec(x_79); -x_82 = x_11; -goto block_112; +lean_dec(x_81); +x_84 = x_11; +goto block_114; } else { -uint8_t x_113; -x_113 = lean_nat_dec_le(x_79, x_79); -if (x_113 == 0) +uint8_t x_115; +x_115 = lean_nat_dec_le(x_81, x_81); +if (x_115 == 0) { -lean_dec(x_79); -x_82 = x_11; -goto block_112; +lean_dec(x_81); +x_84 = x_11; +goto block_114; } else { -size_t x_114; size_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_114 = 0; -x_115 = lean_usize_of_nat(x_79); -lean_dec(x_79); -x_116 = lean_box(0); -x_117 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_solveDecreasingGoals___spec__2(x_3, x_114, x_115, x_116, x_5, x_6, x_7, x_8, x_78, x_10, x_11); -x_118 = lean_ctor_get(x_117, 1); -lean_inc(x_118); -lean_dec(x_117); -x_82 = x_118; -goto block_112; +size_t x_116; size_t x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_116 = 0; +x_117 = lean_usize_of_nat(x_81); +lean_dec(x_81); +x_118 = lean_box(0); +x_119 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_solveDecreasingGoals___spec__2(x_3, x_116, x_117, x_118, x_5, x_6, x_7, x_8, x_80, x_10, x_11); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_84 = x_120; +goto block_114; } } -block_112: +block_114: { -lean_object* x_83; lean_object* x_84; +lean_object* x_85; lean_object* x_86; lean_inc(x_3); -x_83 = lean_array_to_list(lean_box(0), x_3); -x_84 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__3___lambda__4), 12, 3); -lean_closure_set(x_84, 0, x_83); -lean_closure_set(x_84, 1, x_4); -lean_closure_set(x_84, 2, x_2); -if (x_81 == 0) +x_85 = lean_array_to_list(lean_box(0), x_3); +x_86 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__3___lambda__4), 12, 3); +lean_closure_set(x_86, 0, x_85); +lean_closure_set(x_86, 1, x_4); +lean_closure_set(x_86, 2, x_2); +if (x_83 == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_dec(x_3); -x_85 = l_Lean_instInhabitedMVarId; -x_86 = l___private_Init_GetElem_0__outOfBounds___rarg(x_85); +x_87 = l_Lean_instInhabitedMVarId; +x_88 = l___private_Init_GetElem_0__outOfBounds___rarg(x_87); lean_inc(x_10); -lean_inc(x_78); +lean_inc(x_80); lean_inc(x_8); lean_inc(x_7); -x_87 = l_Lean_Elab_Tactic_run(x_86, x_84, x_5, x_6, x_7, x_8, x_78, x_10, x_82); -if (lean_obj_tag(x_87) == 0) +x_89 = l_Lean_Elab_Tactic_run(x_88, x_86, x_5, x_6, x_7, x_8, x_80, x_10, x_84); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_90 = x_87; +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_92 = x_89; } else { - lean_dec_ref(x_87); - x_90 = lean_box(0); + lean_dec_ref(x_89); + x_92 = lean_box(0); } -x_91 = l_List_isEmpty___rarg(x_88); -if (x_91 == 0) +x_93 = l_List_isEmpty___rarg(x_90); +if (x_93 == 0) { -lean_object* x_92; -lean_dec(x_90); -x_92 = l_Lean_Elab_Term_reportUnsolvedGoals(x_88, x_7, x_8, x_78, x_10, x_89); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; -lean_dec(x_88); -lean_dec(x_78); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -x_93 = lean_box(0); -if (lean_is_scalar(x_90)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_90; -} -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_89); +lean_object* x_94; +lean_dec(x_92); +x_94 = l_Lean_Elab_Term_reportUnsolvedGoals(x_90, x_7, x_8, x_80, x_10, x_91); return x_94; } -} else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_78); +lean_object* x_95; lean_object* x_96; +lean_dec(x_90); +lean_dec(x_80); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -x_95 = lean_ctor_get(x_87, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_87, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_97 = x_87; +x_95 = lean_box(0); +if (lean_is_scalar(x_92)) { + x_96 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_87); - x_97 = lean_box(0); + x_96 = x_92; } -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -return x_98; +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_91); +return x_96; } } else { -lean_object* x_99; lean_object* x_100; -x_99 = lean_array_fget(x_3, x_80); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_80); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +x_97 = lean_ctor_get(x_89, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_89, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_99 = x_89; +} else { + lean_dec_ref(x_89); + x_99 = lean_box(0); +} +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +return x_100; +} +} +else +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_array_fget(x_3, x_82); lean_dec(x_3); lean_inc(x_10); -lean_inc(x_78); +lean_inc(x_80); lean_inc(x_8); lean_inc(x_7); -x_100 = l_Lean_Elab_Tactic_run(x_99, x_84, x_5, x_6, x_7, x_8, x_78, x_10, x_82); -if (lean_obj_tag(x_100) == 0) +x_102 = l_Lean_Elab_Tactic_run(x_101, x_86, x_5, x_6, x_7, x_8, x_80, x_10, x_84); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -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; +lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - lean_dec_ref(x_100); - x_103 = lean_box(0); + lean_dec_ref(x_102); + x_105 = lean_box(0); } -x_104 = l_List_isEmpty___rarg(x_101); -if (x_104 == 0) +x_106 = l_List_isEmpty___rarg(x_103); +if (x_106 == 0) { -lean_object* x_105; -lean_dec(x_103); -x_105 = l_Lean_Elab_Term_reportUnsolvedGoals(x_101, x_7, x_8, x_78, x_10, x_102); -return x_105; -} -else -{ -lean_object* x_106; lean_object* x_107; -lean_dec(x_101); -lean_dec(x_78); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -x_106 = lean_box(0); -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); +lean_object* x_107; +lean_dec(x_105); +x_107 = l_Lean_Elab_Term_reportUnsolvedGoals(x_103, x_7, x_8, x_80, x_10, x_104); return x_107; } -} else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_78); +lean_object* x_108; lean_object* x_109; +lean_dec(x_103); +lean_dec(x_80); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -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; +x_108 = lean_box(0); +if (lean_is_scalar(x_105)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_100); - x_110 = lean_box(0); + x_109 = x_105; } -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_104); +return x_109; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_80); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +x_110 = lean_ctor_get(x_102, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_102, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_112 = x_102; } else { - x_111 = x_110; + lean_dec_ref(x_102); + x_112 = lean_box(0); } -lean_ctor_set(x_111, 0, x_108); -lean_ctor_set(x_111, 1, x_109); -return x_111; +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); +return x_113; } } } @@ -14997,7 +15012,7 @@ return x_111; } else { -lean_object* x_119; lean_object* x_120; +lean_object* x_121; lean_object* x_122; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -15007,11 +15022,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_119 = lean_box(0); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_11); -return x_120; +x_121 = lean_box(0); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_11); +return x_122; } } } @@ -15070,7 +15085,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__3___closed__3; x_7 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_solveDecreasingGoals___spec__3___closed__4; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -15079,16 +15094,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/GuessLex.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/GuessLex.c index 4bbb6879fa..8fe557d35c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/GuessLex.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/GuessLex.c @@ -96,6 +96,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_guessLex___spe LEAN_EXPORT lean_object* l_Lean_Elab_WF_GuessLex_collectRecCalls___lambda__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_Lean_Elab_WF_GuessLex_withRecApps_loop___spec__21___rarg___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*); static lean_object* l_Lean_Elab_WF_GuessLex_explainNonMutualFailure___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_GuessLex_reportTermArgs___spec__1___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Elab_WF_GuessLex_naryVarNames___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_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); @@ -2055,493 +2056,458 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_WF_GuessLex_mayOmitSizeOf(uint8_t 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_9; lean_object* x_10; lean_object* x_19; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = lean_infer_type(x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) +x_19 = lean_infer_type(x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_19) == 0) { if (x_1 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t 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); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_12 = x_9; +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_22 = x_19; } else { - lean_dec_ref(x_9); - x_12 = lean_box(0); + lean_dec_ref(x_19); + x_22 = lean_box(0); } -lean_inc(x_10); -x_13 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Elab_WF_GuessLex_mayOmitSizeOf___spec__1(x_2, x_10); -if (x_13 == 0) +lean_inc(x_20); +x_23 = l_Lean_Expr_hasAnyFVar_visit___at_Lean_Elab_WF_GuessLex_mayOmitSizeOf___spec__1(x_2, x_20); +if (x_23 == 0) { -uint8_t x_89; -x_89 = 0; -x_14 = x_89; -goto block_88; +uint8_t x_85; +x_85 = 0; +x_24 = x_85; +goto block_84; } else { -uint8_t x_90; -x_90 = 1; -x_14 = x_90; -goto block_88; +uint8_t x_86; +x_86 = 1; +x_24 = x_86; +goto block_84; } -block_88: +block_84: { -if (x_14 == 0) +if (x_24 == 0) { -lean_object* x_15; -lean_dec(x_12); +lean_object* x_25; +lean_dec(x_22); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_10); -x_15 = l_Lean_Meta_getLevel(x_10, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_15) == 0) +lean_inc(x_20); +x_25 = l_Lean_Meta_getLevel(x_20, x_4, x_5, x_6, x_7, x_21); +if (lean_obj_tag(x_25) == 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; lean_object* x_24; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__2; -lean_inc(x_19); -x_21 = l_Lean_Expr_const___override(x_20, x_19); -lean_inc(x_10); -x_22 = l_Lean_Expr_app___override(x_21, x_10); -x_23 = lean_box(0); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_24 = l_Lean_Meta_synthInstance(x_22, x_23, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_24) == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -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_25 = lean_ctor_get(x_24, 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; +x_27 = lean_ctor_get(x_25, 1); +x_28 = lean_box(0); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 1, x_28); +x_29 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__2; lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__4; -lean_inc(x_19); -x_28 = l_Lean_Expr_const___override(x_27, x_19); -lean_inc(x_10); -x_29 = l_Lean_Expr_app___override(x_28, x_10); +x_30 = l_Lean_Expr_const___override(x_29, x_25); +lean_inc(x_20); +x_31 = l_Lean_Expr_app___override(x_30, x_20); +x_32 = lean_box(0); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_30 = l_Lean_Meta_synthInstance(x_29, x_23, x_4, x_5, x_6, x_7, x_26); -if (lean_obj_tag(x_30) == 0) +x_33 = l_Lean_Meta_synthInstance(x_31, x_32, x_4, x_5, x_6, x_7, x_27); +if (lean_obj_tag(x_33) == 0) { -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_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__6; -x_34 = l_Lean_Expr_const___override(x_33, x_19); -x_35 = l_Lean_mkAppB(x_34, x_10, x_31); -x_36 = l_Lean_Meta_isExprDefEq(x_25, x_35, x_4, x_5, x_6, x_7, x_32); -if (lean_obj_tag(x_36) == 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; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__4; +lean_inc(x_25); +x_37 = l_Lean_Expr_const___override(x_36, x_25); +lean_inc(x_20); +x_38 = l_Lean_Expr_app___override(x_37, x_20); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_39 = l_Lean_Meta_synthInstance(x_38, x_32, x_4, x_5, x_6, x_7, x_35); +if (lean_obj_tag(x_39) == 0) { -return x_36; +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_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__6; +x_43 = l_Lean_Expr_const___override(x_42, x_25); +x_44 = l_Lean_mkAppB(x_43, x_20, x_40); +x_45 = l_Lean_Meta_isExprDefEq(x_34, x_44, x_4, x_5, x_6, x_7, x_41); +if (lean_obj_tag(x_45) == 0) +{ +return x_45; } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_36, 0); -x_39 = l_Lean_Exception_isRuntime(x_38); -if (x_39 == 0) -{ -uint8_t x_40; lean_object* x_41; -lean_dec(x_38); -x_40 = 0; -x_41 = lean_box(x_40); -lean_ctor_set_tag(x_36, 0); -lean_ctor_set(x_36, 0, x_41); -return x_36; -} -else -{ -return x_36; +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_9 = x_46; +x_10 = x_47; +goto block_18; } } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_36); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) -{ -uint8_t x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_42); -x_45 = 0; -x_46 = lean_box(x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_43); -return x_47; -} -else -{ -lean_object* x_48; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_42); -lean_ctor_set(x_48, 1, x_43); -return x_48; -} -} -} -} -else -{ -uint8_t x_49; +lean_object* x_48; lean_object* x_49; +lean_dec(x_34); lean_dec(x_25); -lean_dec(x_19); -lean_dec(x_10); +lean_dec(x_20); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_49 = !lean_is_exclusive(x_30); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_30, 0); -x_51 = l_Lean_Exception_isRuntime(x_50); -if (x_51 == 0) -{ -uint8_t x_52; lean_object* x_53; -lean_dec(x_50); -x_52 = 0; -x_53 = lean_box(x_52); -lean_ctor_set_tag(x_30, 0); -lean_ctor_set(x_30, 0, x_53); -return x_30; -} -else -{ -return x_30; +x_48 = lean_ctor_get(x_39, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_39, 1); +lean_inc(x_49); +lean_dec(x_39); +x_9 = x_48; +x_10 = x_49; +goto block_18; } } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_30, 0); -x_55 = lean_ctor_get(x_30, 1); +lean_object* x_50; lean_object* x_51; +lean_dec(x_25); +lean_dec(x_20); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_50 = lean_ctor_get(x_33, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_33, 1); +lean_inc(x_51); +lean_dec(x_33); +x_9 = x_50; +x_10 = x_51; +goto block_18; +} +} +else +{ +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; +x_52 = lean_ctor_get(x_25, 0); +x_53 = lean_ctor_get(x_25, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_25); +x_54 = lean_box(0); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__2; lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_30); -x_56 = l_Lean_Exception_isRuntime(x_54); -if (x_56 == 0) +x_57 = l_Lean_Expr_const___override(x_56, x_55); +lean_inc(x_20); +x_58 = l_Lean_Expr_app___override(x_57, x_20); +x_59 = lean_box(0); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_60 = l_Lean_Meta_synthInstance(x_58, x_59, x_4, x_5, x_6, x_7, x_53); +if (lean_obj_tag(x_60) == 0) { -uint8_t x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_54); -x_57 = 0; -x_58 = lean_box(x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_55); -return x_59; -} -else +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* 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); +lean_dec(x_60); +x_63 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__4; +lean_inc(x_55); +x_64 = l_Lean_Expr_const___override(x_63, x_55); +lean_inc(x_20); +x_65 = l_Lean_Expr_app___override(x_64, x_20); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_66 = l_Lean_Meta_synthInstance(x_65, x_59, x_4, x_5, x_6, x_7, x_62); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_60; -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_54); -lean_ctor_set(x_60, 1, x_55); -return x_60; -} -} -} -} -else -{ -uint8_t x_61; -lean_dec(x_19); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_61 = !lean_is_exclusive(x_24); -if (x_61 == 0) -{ -lean_object* x_62; uint8_t x_63; -x_62 = lean_ctor_get(x_24, 0); -x_63 = l_Lean_Exception_isRuntime(x_62); -if (x_63 == 0) -{ -uint8_t x_64; lean_object* x_65; -lean_dec(x_62); -x_64 = 0; -x_65 = lean_box(x_64); -lean_ctor_set_tag(x_24, 0); -lean_ctor_set(x_24, 0, x_65); -return x_24; -} -else -{ -return x_24; -} -} -else -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_ctor_get(x_24, 0); -x_67 = lean_ctor_get(x_24, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_24); -x_68 = l_Lean_Exception_isRuntime(x_66); -if (x_68 == 0) -{ -uint8_t 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 = 0; -x_70 = lean_box(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_67); -return x_71; -} -else +x_69 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__6; +x_70 = l_Lean_Expr_const___override(x_69, x_55); +x_71 = l_Lean_mkAppB(x_70, x_20, x_67); +x_72 = l_Lean_Meta_isExprDefEq(x_61, x_71, x_4, x_5, x_6, x_7, x_68); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_72; -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_66); -lean_ctor_set(x_72, 1, x_67); return x_72; } -} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_9 = x_73; +x_10 = x_74; +goto block_18; } } else { -uint8_t x_73; -lean_dec(x_10); +lean_object* x_75; lean_object* x_76; +lean_dec(x_61); +lean_dec(x_55); +lean_dec(x_20); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_73 = !lean_is_exclusive(x_15); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_15, 0); -x_75 = l_Lean_Exception_isRuntime(x_74); -if (x_75 == 0) -{ -uint8_t x_76; lean_object* x_77; -lean_dec(x_74); -x_76 = 0; -x_77 = lean_box(x_76); -lean_ctor_set_tag(x_15, 0); -lean_ctor_set(x_15, 0, x_77); -return x_15; -} -else -{ -return x_15; +x_75 = lean_ctor_get(x_66, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_66, 1); +lean_inc(x_76); +lean_dec(x_66); +x_9 = x_75; +x_10 = x_76; +goto block_18; } } else { -lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_78 = lean_ctor_get(x_15, 0); -x_79 = lean_ctor_get(x_15, 1); -lean_inc(x_79); +lean_object* x_77; lean_object* x_78; +lean_dec(x_55); +lean_dec(x_20); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_77 = lean_ctor_get(x_60, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_60, 1); lean_inc(x_78); -lean_dec(x_15); -x_80 = l_Lean_Exception_isRuntime(x_78); -if (x_80 == 0) +lean_dec(x_60); +x_9 = x_77; +x_10 = x_78; +goto block_18; +} +} +} +else +{ +lean_object* x_79; lean_object* x_80; +lean_dec(x_20); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_79 = lean_ctor_get(x_25, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_25, 1); +lean_inc(x_80); +lean_dec(x_25); +x_9 = x_79; +x_10 = x_80; +goto block_18; +} +} +else { uint8_t x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_78); -x_81 = 0; -x_82 = lean_box(x_81); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_79); -return x_83; -} -else -{ -lean_object* x_84; -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_78); -lean_ctor_set(x_84, 1, x_79); -return x_84; -} -} -} -} -else -{ -uint8_t x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_10); +lean_dec(x_20); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_85 = 0; -x_86 = lean_box(x_85); -if (lean_is_scalar(x_12)) { - x_87 = lean_alloc_ctor(0, 2, 0); +x_81 = 0; +x_82 = lean_box(x_81); +if (lean_is_scalar(x_22)) { + x_83 = lean_alloc_ctor(0, 2, 0); } else { - x_87 = x_12; + x_83 = x_22; } -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_11); -return x_87; +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_21); +return x_83; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_91 = lean_ctor_get(x_4, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_9, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_9, 1); -lean_inc(x_93); -lean_dec(x_9); -x_94 = !lean_is_exclusive(x_4); -if (x_94 == 0) +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_4, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_19, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_19, 1); +lean_inc(x_89); +lean_dec(x_19); +x_90 = !lean_is_exclusive(x_4); +if (x_90 == 0) { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_4, 0); -lean_dec(x_95); -x_96 = !lean_is_exclusive(x_91); +lean_object* x_91; uint8_t x_92; +x_91 = lean_ctor_get(x_4, 0); +lean_dec(x_91); +x_92 = !lean_is_exclusive(x_87); +if (x_92 == 0) +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +x_93 = 2; +lean_ctor_set_uint8(x_87, 9, x_93); +x_94 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; +x_95 = l_Lean_Meta_isExprDefEq(x_88, x_94, x_4, x_5, x_6, x_7, x_89); +if (lean_obj_tag(x_95) == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); if (x_96 == 0) { -uint8_t x_97; lean_object* x_98; lean_object* x_99; -x_97 = 2; -lean_ctor_set_uint8(x_91, 9, x_97); -x_98 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; -x_99 = l_Lean_Meta_isExprDefEq(x_92, x_98, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_99) == 0) +return x_95; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_95); +x_99 = lean_alloc_ctor(0, 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; -x_100 = !lean_is_exclusive(x_99); +x_100 = !lean_is_exclusive(x_95); if (x_100 == 0) { -return x_99; +return x_95; } else { lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_99, 0); -x_102 = lean_ctor_get(x_99, 1); +x_101 = lean_ctor_get(x_95, 0); +x_102 = lean_ctor_get(x_95, 1); lean_inc(x_102); lean_inc(x_101); -lean_dec(x_99); -x_103 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_95); +x_103 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); return x_103; } } -else -{ -uint8_t x_104; -x_104 = !lean_is_exclusive(x_99); -if (x_104 == 0) -{ -return x_99; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_99, 0); -x_106 = lean_ctor_get(x_99, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_99); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_104 = lean_ctor_get_uint8(x_87, 0); +x_105 = lean_ctor_get_uint8(x_87, 1); +x_106 = lean_ctor_get_uint8(x_87, 2); +x_107 = lean_ctor_get_uint8(x_87, 3); +x_108 = lean_ctor_get_uint8(x_87, 4); +x_109 = lean_ctor_get_uint8(x_87, 5); +x_110 = lean_ctor_get_uint8(x_87, 6); +x_111 = lean_ctor_get_uint8(x_87, 7); +x_112 = lean_ctor_get_uint8(x_87, 8); +x_113 = lean_ctor_get_uint8(x_87, 10); +x_114 = lean_ctor_get_uint8(x_87, 11); +x_115 = lean_ctor_get_uint8(x_87, 12); +lean_dec(x_87); +x_116 = 2; +x_117 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_117, 0, x_104); +lean_ctor_set_uint8(x_117, 1, x_105); +lean_ctor_set_uint8(x_117, 2, x_106); +lean_ctor_set_uint8(x_117, 3, x_107); +lean_ctor_set_uint8(x_117, 4, x_108); +lean_ctor_set_uint8(x_117, 5, x_109); +lean_ctor_set_uint8(x_117, 6, x_110); +lean_ctor_set_uint8(x_117, 7, x_111); +lean_ctor_set_uint8(x_117, 8, x_112); +lean_ctor_set_uint8(x_117, 9, x_116); +lean_ctor_set_uint8(x_117, 10, x_113); +lean_ctor_set_uint8(x_117, 11, x_114); +lean_ctor_set_uint8(x_117, 12, x_115); +lean_ctor_set(x_4, 0, x_117); +x_118 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; +x_119 = l_Lean_Meta_isExprDefEq(x_88, x_118, x_4, x_5, x_6, x_7, x_89); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_122 = x_119; +} else { + lean_dec_ref(x_119); + x_122 = lean_box(0); } +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_122; } +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } else { -uint8_t x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_108 = lean_ctor_get_uint8(x_91, 0); -x_109 = lean_ctor_get_uint8(x_91, 1); -x_110 = lean_ctor_get_uint8(x_91, 2); -x_111 = lean_ctor_get_uint8(x_91, 3); -x_112 = lean_ctor_get_uint8(x_91, 4); -x_113 = lean_ctor_get_uint8(x_91, 5); -x_114 = lean_ctor_get_uint8(x_91, 6); -x_115 = lean_ctor_get_uint8(x_91, 7); -x_116 = lean_ctor_get_uint8(x_91, 8); -x_117 = lean_ctor_get_uint8(x_91, 10); -x_118 = lean_ctor_get_uint8(x_91, 11); -x_119 = lean_ctor_get_uint8(x_91, 12); -lean_dec(x_91); -x_120 = 2; -x_121 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_121, 0, x_108); -lean_ctor_set_uint8(x_121, 1, x_109); -lean_ctor_set_uint8(x_121, 2, x_110); -lean_ctor_set_uint8(x_121, 3, x_111); -lean_ctor_set_uint8(x_121, 4, x_112); -lean_ctor_set_uint8(x_121, 5, x_113); -lean_ctor_set_uint8(x_121, 6, x_114); -lean_ctor_set_uint8(x_121, 7, x_115); -lean_ctor_set_uint8(x_121, 8, x_116); -lean_ctor_set_uint8(x_121, 9, x_120); -lean_ctor_set_uint8(x_121, 10, x_117); -lean_ctor_set_uint8(x_121, 11, x_118); -lean_ctor_set_uint8(x_121, 12, x_119); -lean_ctor_set(x_4, 0, x_121); -x_122 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; -x_123 = l_Lean_Meta_isExprDefEq(x_92, x_122, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_123) == 0) -{ lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_124 = lean_ctor_get(x_123, 0); +x_124 = lean_ctor_get(x_119, 0); lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); +x_125 = lean_ctor_get(x_119, 1); lean_inc(x_125); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_126 = x_123; +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_126 = x_119; } else { - lean_dec_ref(x_123); + lean_dec_ref(x_119); x_126 = lean_box(0); } if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(0, 2, 0); + x_127 = lean_alloc_ctor(1, 2, 0); } else { x_127 = x_126; } @@ -2549,113 +2515,113 @@ lean_ctor_set(x_127, 0, x_124); lean_ctor_set(x_127, 1, x_125); return x_127; } -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_123, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_123, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_130 = x_123; -} else { - lean_dec_ref(x_123); - 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 { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_132 = lean_ctor_get(x_4, 1); -x_133 = lean_ctor_get(x_4, 2); -x_134 = lean_ctor_get(x_4, 3); -x_135 = lean_ctor_get(x_4, 4); -x_136 = lean_ctor_get(x_4, 5); -x_137 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); -x_138 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); -lean_inc(x_136); -lean_inc(x_135); -lean_inc(x_134); -lean_inc(x_133); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t 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_128 = lean_ctor_get(x_4, 1); +x_129 = lean_ctor_get(x_4, 2); +x_130 = lean_ctor_get(x_4, 3); +x_131 = lean_ctor_get(x_4, 4); +x_132 = lean_ctor_get(x_4, 5); +x_133 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); +x_134 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); lean_inc(x_132); +lean_inc(x_131); +lean_inc(x_130); +lean_inc(x_129); +lean_inc(x_128); lean_dec(x_4); -x_139 = lean_ctor_get_uint8(x_91, 0); -x_140 = lean_ctor_get_uint8(x_91, 1); -x_141 = lean_ctor_get_uint8(x_91, 2); -x_142 = lean_ctor_get_uint8(x_91, 3); -x_143 = lean_ctor_get_uint8(x_91, 4); -x_144 = lean_ctor_get_uint8(x_91, 5); -x_145 = lean_ctor_get_uint8(x_91, 6); -x_146 = lean_ctor_get_uint8(x_91, 7); -x_147 = lean_ctor_get_uint8(x_91, 8); -x_148 = lean_ctor_get_uint8(x_91, 10); -x_149 = lean_ctor_get_uint8(x_91, 11); -x_150 = lean_ctor_get_uint8(x_91, 12); -if (lean_is_exclusive(x_91)) { - x_151 = x_91; +x_135 = lean_ctor_get_uint8(x_87, 0); +x_136 = lean_ctor_get_uint8(x_87, 1); +x_137 = lean_ctor_get_uint8(x_87, 2); +x_138 = lean_ctor_get_uint8(x_87, 3); +x_139 = lean_ctor_get_uint8(x_87, 4); +x_140 = lean_ctor_get_uint8(x_87, 5); +x_141 = lean_ctor_get_uint8(x_87, 6); +x_142 = lean_ctor_get_uint8(x_87, 7); +x_143 = lean_ctor_get_uint8(x_87, 8); +x_144 = lean_ctor_get_uint8(x_87, 10); +x_145 = lean_ctor_get_uint8(x_87, 11); +x_146 = lean_ctor_get_uint8(x_87, 12); +if (lean_is_exclusive(x_87)) { + x_147 = x_87; } else { - lean_dec_ref(x_91); - x_151 = lean_box(0); + lean_dec_ref(x_87); + x_147 = lean_box(0); } -x_152 = 2; -if (lean_is_scalar(x_151)) { - x_153 = lean_alloc_ctor(0, 0, 13); +x_148 = 2; +if (lean_is_scalar(x_147)) { + x_149 = lean_alloc_ctor(0, 0, 13); } else { - x_153 = x_151; + x_149 = x_147; } -lean_ctor_set_uint8(x_153, 0, x_139); -lean_ctor_set_uint8(x_153, 1, x_140); -lean_ctor_set_uint8(x_153, 2, x_141); -lean_ctor_set_uint8(x_153, 3, x_142); -lean_ctor_set_uint8(x_153, 4, x_143); -lean_ctor_set_uint8(x_153, 5, x_144); -lean_ctor_set_uint8(x_153, 6, x_145); -lean_ctor_set_uint8(x_153, 7, x_146); -lean_ctor_set_uint8(x_153, 8, x_147); -lean_ctor_set_uint8(x_153, 9, x_152); -lean_ctor_set_uint8(x_153, 10, x_148); -lean_ctor_set_uint8(x_153, 11, x_149); -lean_ctor_set_uint8(x_153, 12, x_150); -x_154 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_132); -lean_ctor_set(x_154, 2, x_133); -lean_ctor_set(x_154, 3, x_134); -lean_ctor_set(x_154, 4, x_135); -lean_ctor_set(x_154, 5, x_136); -lean_ctor_set_uint8(x_154, sizeof(void*)*6, x_137); -lean_ctor_set_uint8(x_154, sizeof(void*)*6 + 1, x_138); -x_155 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; -x_156 = l_Lean_Meta_isExprDefEq(x_92, x_155, x_154, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_156) == 0) +lean_ctor_set_uint8(x_149, 0, x_135); +lean_ctor_set_uint8(x_149, 1, x_136); +lean_ctor_set_uint8(x_149, 2, x_137); +lean_ctor_set_uint8(x_149, 3, x_138); +lean_ctor_set_uint8(x_149, 4, x_139); +lean_ctor_set_uint8(x_149, 5, x_140); +lean_ctor_set_uint8(x_149, 6, x_141); +lean_ctor_set_uint8(x_149, 7, x_142); +lean_ctor_set_uint8(x_149, 8, x_143); +lean_ctor_set_uint8(x_149, 9, x_148); +lean_ctor_set_uint8(x_149, 10, x_144); +lean_ctor_set_uint8(x_149, 11, x_145); +lean_ctor_set_uint8(x_149, 12, x_146); +x_150 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_128); +lean_ctor_set(x_150, 2, x_129); +lean_ctor_set(x_150, 3, x_130); +lean_ctor_set(x_150, 4, x_131); +lean_ctor_set(x_150, 5, x_132); +lean_ctor_set_uint8(x_150, sizeof(void*)*6, x_133); +lean_ctor_set_uint8(x_150, sizeof(void*)*6 + 1, x_134); +x_151 = l_Lean_Elab_WF_GuessLex_mayOmitSizeOf___closed__9; +x_152 = l_Lean_Meta_isExprDefEq(x_88, x_151, x_150, x_5, x_6, x_7, x_89); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +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_152); + x_155 = lean_box(0); +} +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_155; +} +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; +} +else { lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_157 = lean_ctor_get(x_156, 0); +x_157 = lean_ctor_get(x_152, 0); lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); +x_158 = lean_ctor_get(x_152, 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; +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_159 = x_152; } else { - lean_dec_ref(x_156); + lean_dec_ref(x_152); x_159 = lean_box(0); } if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(0, 2, 0); + x_160 = lean_alloc_ctor(1, 2, 0); } else { x_160 = x_159; } @@ -2663,57 +2629,70 @@ lean_ctor_set(x_160, 0, x_157); lean_ctor_set(x_160, 1, x_158); return x_160; } -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_161 = lean_ctor_get(x_156, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_156, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_163 = x_156; -} else { - lean_dec_ref(x_156); - x_163 = lean_box(0); -} -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; -} } } } else { -uint8_t x_165; +uint8_t x_161; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_165 = !lean_is_exclusive(x_9); -if (x_165 == 0) +x_161 = !lean_is_exclusive(x_19); +if (x_161 == 0) { -return x_9; +return x_19; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_9, 0); -x_167 = lean_ctor_get(x_9, 1); -lean_inc(x_167); -lean_inc(x_166); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_19, 0); +x_163 = lean_ctor_get(x_19, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_19); +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; +} +} +block_18: +{ +uint8_t x_11; +x_11 = l_Lean_Exception_isInterrupt(x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = l_Lean_Exception_isRuntime(x_9); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_dec(x_9); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_167); -return x_168; +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_10); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 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; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; } } } @@ -12391,7 +12370,7 @@ return x_186; } else { -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; uint8_t x_200; lean_object* x_201; lean_object* x_202; +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; uint8_t x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; x_187 = lean_ctor_get(x_185, 0); lean_inc(x_187); lean_dec(x_185); @@ -12420,89 +12399,94 @@ x_198 = lean_ctor_get(x_11, 9); lean_inc(x_198); x_199 = lean_ctor_get(x_11, 10); lean_inc(x_199); -x_200 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_200 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_201 = lean_ctor_get(x_11, 11); +lean_inc(x_201); +x_202 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); lean_dec(x_11); -x_201 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_201, 0, x_190); -lean_ctor_set(x_201, 1, x_191); -lean_ctor_set(x_201, 2, x_192); -lean_ctor_set(x_201, 3, x_193); -lean_ctor_set(x_201, 4, x_194); -lean_ctor_set(x_201, 5, x_189); -lean_ctor_set(x_201, 6, x_195); -lean_ctor_set(x_201, 7, x_196); -lean_ctor_set(x_201, 8, x_197); -lean_ctor_set(x_201, 9, x_198); -lean_ctor_set(x_201, 10, x_199); -lean_ctor_set_uint8(x_201, sizeof(void*)*11, x_200); -x_202 = l_Lean_Elab_WF_GuessLex_withRecApps_loop___rarg(x_2, x_3, x_4, x_5, x_184, x_7, x_8, x_9, x_10, x_201, x_12, x_13); -return x_202; +x_203 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_203, 0, x_190); +lean_ctor_set(x_203, 1, x_191); +lean_ctor_set(x_203, 2, x_192); +lean_ctor_set(x_203, 3, x_193); +lean_ctor_set(x_203, 4, x_194); +lean_ctor_set(x_203, 5, x_189); +lean_ctor_set(x_203, 6, x_195); +lean_ctor_set(x_203, 7, x_196); +lean_ctor_set(x_203, 8, x_197); +lean_ctor_set(x_203, 9, x_198); +lean_ctor_set(x_203, 10, x_199); +lean_ctor_set(x_203, 11, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*12, x_200); +lean_ctor_set_uint8(x_203, sizeof(void*)*12 + 1, x_202); +x_204 = l_Lean_Elab_WF_GuessLex_withRecApps_loop___rarg(x_2, x_3, x_4, x_5, x_184, x_7, x_8, x_9, x_10, x_203, x_12, x_13); +return x_204; } } case 11: { -lean_object* x_203; lean_object* x_204; -x_203 = lean_ctor_get(x_1, 2); -lean_inc(x_203); +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_1, 2); +lean_inc(x_205); lean_dec(x_1); -x_204 = l_Lean_Elab_WF_GuessLex_withRecApps_loop___rarg(x_2, x_3, x_4, x_5, x_203, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_204; +x_206 = l_Lean_Elab_WF_GuessLex_withRecApps_loop___rarg(x_2, x_3, x_4, x_5, x_205, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_206; } default: { -lean_object* x_205; +lean_object* x_207; lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_205 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_205) == 0) +x_207 = l_Lean_Elab_ensureNoRecFn(x_2, x_1, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_207) == 0) { -uint8_t x_206; -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) +uint8_t x_208; +x_208 = !lean_is_exclusive(x_207); +if (x_208 == 0) { -lean_object* x_207; lean_object* x_208; -x_207 = lean_ctor_get(x_205, 0); -lean_dec(x_207); -x_208 = lean_box(0); -lean_ctor_set(x_205, 0, x_208); -return x_205; -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_205, 1); -lean_inc(x_209); -lean_dec(x_205); +lean_object* x_209; lean_object* x_210; +x_209 = lean_ctor_get(x_207, 0); +lean_dec(x_209); x_210 = lean_box(0); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_209); -return x_211; +lean_ctor_set(x_207, 0, x_210); +return x_207; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_207, 1); +lean_inc(x_211); +lean_dec(x_207); +x_212 = lean_box(0); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +return x_213; } } else { -uint8_t x_212; -x_212 = !lean_is_exclusive(x_205); -if (x_212 == 0) +uint8_t x_214; +x_214 = !lean_is_exclusive(x_207); +if (x_214 == 0) { -return x_205; +return x_207; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_205, 0); -x_214 = lean_ctor_get(x_205, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_205); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_207, 0); +x_216 = lean_ctor_get(x_207, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_207); +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; } } } @@ -20729,7 +20713,7 @@ x_4 = 1; x_5 = 0; x_6 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__9; x_7 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__10; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -20738,16 +20722,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } @@ -20824,464 +20809,301 @@ x_52 = 1; x_53 = l_Lean_Elab_WF_GuessLex_instDecidableEqGuessLexRel(x_3, x_52); if (x_53 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__6; +lean_object* x_140; lean_object* x_141; +x_140 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__6; if (lean_obj_tag(x_5) == 0) { -lean_object* x_155; -x_155 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__6), 10, 1); -lean_closure_set(x_155, 0, x_138); -x_139 = x_155; -goto block_154; +lean_object* x_157; +x_157 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__6), 10, 1); +lean_closure_set(x_157, 0, x_140); +x_141 = x_157; +goto block_156; } else { -lean_object* x_156; lean_object* x_157; -x_156 = lean_ctor_get(x_5, 0); -lean_inc(x_156); +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_5, 0); +lean_inc(x_158); lean_dec(x_5); lean_inc(x_2); -x_157 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__8), 12, 3); -lean_closure_set(x_157, 0, x_2); -lean_closure_set(x_157, 1, x_156); -lean_closure_set(x_157, 2, x_138); -x_139 = x_157; -goto block_154; +x_159 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__8), 12, 3); +lean_closure_set(x_159, 0, x_2); +lean_closure_set(x_159, 1, x_158); +lean_closure_set(x_159, 2, x_140); +x_141 = x_159; +goto block_156; } -block_154: +block_156: { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_140 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1); -lean_closure_set(x_140, 0, x_139); -lean_inc(x_49); -x_141 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__5), 9, 2); -lean_closure_set(x_141, 0, x_49); -lean_closure_set(x_141, 1, x_140); -x_142 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__2), 8, 1); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_142 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1); lean_closure_set(x_142, 0, x_141); -x_143 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__11; -x_144 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__12; +lean_inc(x_49); +x_143 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__5), 9, 2); +lean_closure_set(x_143, 0, x_49); +lean_closure_set(x_143, 1, x_142); +x_144 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__2), 8, 1); +lean_closure_set(x_144, 0, x_143); +x_145 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__11; +x_146 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__12; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_145 = l_Lean_Elab_Term_TermElabM_run___rarg(x_142, x_143, x_144, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_145) == 0) +x_147 = l_Lean_Elab_Term_TermElabM_run___rarg(x_144, x_145, x_146, x_7, x_8, x_9, x_10, x_50); +if (lean_obj_tag(x_147) == 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; +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_dec(x_51); lean_dec(x_49); lean_dec(x_44); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); -x_148 = lean_ctor_get(x_146, 0); +x_148 = lean_ctor_get(x_147, 0); lean_inc(x_148); -lean_dec(x_146); -x_149 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__2(x_2, x_3, x_148, x_7, x_8, x_9, x_10, x_147); -x_150 = lean_ctor_get(x_149, 0); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +x_150 = lean_ctor_get(x_148, 0); lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_12 = x_150; -x_13 = x_151; +lean_dec(x_148); +x_151 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__2(x_2, x_3, x_150, x_7, x_8, x_9, x_10, x_149); +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_12 = x_152; +x_13 = x_153; goto block_37; } else { -lean_object* x_152; lean_object* x_153; -x_152 = lean_ctor_get(x_145, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_145, 1); -lean_inc(x_153); -lean_dec(x_145); -x_54 = x_152; -x_55 = x_153; -goto block_137; +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_147, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_147, 1); +lean_inc(x_155); +lean_dec(x_147); +x_54 = x_154; +x_55 = x_155; +goto block_139; } } } else { -lean_object* x_158; +lean_object* x_160; lean_dec(x_5); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_49); -x_158 = l_Lean_MVarId_refl(x_49, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_158) == 0) +x_160 = l_Lean_MVarId_refl(x_49, x_7, x_8, x_9, x_10, x_50); +if (lean_obj_tag(x_160) == 0) { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_dec(x_51); lean_dec(x_49); lean_dec(x_44); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__2(x_2, x_3, x_159, x_7, x_8, x_9, x_10, x_160); -x_162 = lean_ctor_get(x_161, 0); +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); -lean_dec(x_161); -x_12 = x_162; -x_13 = x_163; +lean_dec(x_160); +x_163 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__2(x_2, x_3, x_161, x_7, x_8, x_9, x_10, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_12 = x_164; +x_13 = x_165; goto block_37; } else { -lean_object* x_164; lean_object* x_165; -x_164 = lean_ctor_get(x_158, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_158, 1); -lean_inc(x_165); -lean_dec(x_158); -x_54 = x_164; -x_55 = x_165; -goto block_137; +lean_object* x_166; lean_object* x_167; +x_166 = lean_ctor_get(x_160, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_160, 1); +lean_inc(x_167); +lean_dec(x_160); +x_54 = x_166; +x_55 = x_167; +goto block_139; } } -block_137: +block_139: { uint8_t x_56; -x_56 = l_Lean_Exception_isRuntime(x_54); +x_56 = l_Lean_Exception_isInterrupt(x_54); if (x_56 == 0) { -lean_object* x_57; uint8_t x_58; +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_54); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; lean_dec(x_54); lean_dec(x_51); lean_inc(x_2); -x_57 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_7, x_8, x_9, x_10, x_55); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_58 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_7, x_8, x_9, x_10, x_55); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); -x_61 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__1; -x_62 = lean_unbox(x_59); -lean_dec(x_59); -if (x_62 == 0) +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_ctor_get(x_58, 1); +x_62 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__1; +x_63 = lean_unbox(x_60); +lean_dec(x_60); +if (x_63 == 0) { -lean_object* x_63; lean_object* x_64; -lean_free_object(x_57); +lean_object* x_64; lean_object* x_65; +lean_free_object(x_58); lean_dec(x_49); lean_dec(x_44); lean_dec(x_2); -x_63 = lean_box(0); -x_64 = lean_apply_6(x_61, x_63, x_7, x_8, x_9, x_10, x_60); -if (lean_obj_tag(x_64) == 0) +x_64 = lean_box(0); +x_65 = lean_apply_6(x_62, x_64, x_7, x_8, x_9, x_10, x_61); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_12 = x_65; -x_13 = x_66; +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_12 = x_66; +x_13 = x_67; goto block_37; } else { -uint8_t x_67; +uint8_t x_68; lean_dec(x_4); -x_67 = !lean_is_exclusive(x_64); -if (x_67 == 0) +x_68 = !lean_is_exclusive(x_65); +if (x_68 == 0) { -return x_64; +return x_65; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_64, 0); -x_69 = lean_ctor_get(x_64, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_65, 0); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_64); -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; +lean_dec(x_65); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_box(0); -lean_ctor_set_tag(x_57, 1); -lean_ctor_set(x_57, 1, x_71); -lean_ctor_set(x_57, 0, x_49); -x_72 = l_Lean_Elab_goalsToMessageData(x_57); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_box(0); +lean_ctor_set_tag(x_58, 1); +lean_ctor_set(x_58, 1, x_72); +lean_ctor_set(x_58, 0, x_49); +x_73 = l_Lean_Elab_goalsToMessageData(x_58); switch (x_3) { case 0: { -lean_object* x_93; -x_93 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__1; -x_73 = x_93; -goto block_92; -} -case 1: -{ lean_object* x_94; -x_94 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__2; -x_73 = x_94; -goto block_92; -} -case 2: -{ -lean_object* x_95; -x_95 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__3; -x_73 = x_95; -goto block_92; -} -default: -{ -lean_object* x_96; -x_96 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__4; -x_73 = x_96; -goto block_92; -} -} -block_92: -{ -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_74 = l_Lean_MessageData_ofFormat(x_73); -x_75 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__3; -if (lean_is_scalar(x_44)) { - x_76 = lean_alloc_ctor(6, 2, 0); -} else { - x_76 = x_44; - lean_ctor_set_tag(x_76, 6); -} -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -x_77 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__5; -x_78 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_72); -x_80 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_GuessLex_withRecApps_loop___spec__21___rarg___lambda__2___closed__5; -x_81 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_82 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_81, x_7, x_8, x_9, x_10, x_60); -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_apply_6(x_61, x_83, x_7, x_8, x_9, x_10, x_84); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_12 = x_86; -x_13 = x_87; -goto block_37; -} -else -{ -uint8_t x_88; -lean_dec(x_4); -x_88 = !lean_is_exclusive(x_85); -if (x_88 == 0) -{ -return x_85; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_85, 0); -x_90 = lean_ctor_get(x_85, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_85); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -} -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_97 = lean_ctor_get(x_57, 0); -x_98 = lean_ctor_get(x_57, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_57); -x_99 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__1; -x_100 = lean_unbox(x_97); -lean_dec(x_97); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; -lean_dec(x_49); -lean_dec(x_44); -lean_dec(x_2); -x_101 = lean_box(0); -x_102 = lean_apply_6(x_99, x_101, x_7, x_8, x_9, x_10, x_98); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_12 = x_103; -x_13 = x_104; -goto block_37; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_4); -x_105 = lean_ctor_get(x_102, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_107 = x_102; -} else { - lean_dec_ref(x_102); - 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_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; -} -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_49); -lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_Elab_goalsToMessageData(x_110); -switch (x_3) { -case 0: -{ -lean_object* x_132; -x_132 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__1; -x_112 = x_132; -goto block_131; +x_94 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__1; +x_74 = x_94; +goto block_93; } case 1: { -lean_object* x_133; -x_133 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__2; -x_112 = x_133; -goto block_131; +lean_object* x_95; +x_95 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__2; +x_74 = x_95; +goto block_93; } case 2: { -lean_object* x_134; -x_134 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__3; -x_112 = x_134; -goto block_131; +lean_object* x_96; +x_96 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__3; +x_74 = x_96; +goto block_93; } default: { -lean_object* x_135; -x_135 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__4; -x_112 = x_135; -goto block_131; +lean_object* x_97; +x_97 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__4; +x_74 = x_97; +goto block_93; } } -block_131: +block_93: { -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; -x_113 = l_Lean_MessageData_ofFormat(x_112); -x_114 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__3; +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; lean_object* x_86; +x_75 = l_Lean_MessageData_ofFormat(x_74); +x_76 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__3; if (lean_is_scalar(x_44)) { - x_115 = lean_alloc_ctor(6, 2, 0); + x_77 = lean_alloc_ctor(6, 2, 0); } else { - x_115 = x_44; - lean_ctor_set_tag(x_115, 6); + x_77 = x_44; + lean_ctor_set_tag(x_77, 6); } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); -x_116 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__5; -x_117 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_111); -x_119 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_GuessLex_withRecApps_loop___spec__21___rarg___lambda__2___closed__5; -x_120 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -x_121 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_120, x_7, x_8, x_9, x_10, x_98); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = lean_apply_6(x_99, x_122, x_7, x_8, x_9, x_10, x_123); -if (lean_obj_tag(x_124) == 0) +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__5; +x_79 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_73); +x_81 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_GuessLex_withRecApps_loop___spec__21___rarg___lambda__2___closed__5; +x_82 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_82, x_7, x_8, x_9, x_10, x_61); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_apply_6(x_62, x_84, x_7, x_8, x_9, x_10, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_125; lean_object* x_126; -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_12 = x_125; -x_13 = x_126; +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_12 = x_87; +x_13 = x_88; goto block_37; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +uint8_t x_89; lean_dec(x_4); -x_127 = lean_ctor_get(x_124, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_124, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_129 = x_124; -} else { - lean_dec_ref(x_124); - x_129 = lean_box(0); +x_89 = !lean_is_exclusive(x_86); +if (x_89 == 0) +{ +return x_86; } -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(1, 2, 0); -} else { - x_130 = x_129; -} -lean_ctor_set(x_130, 0, x_127); -lean_ctor_set(x_130, 1, x_128); -return x_130; +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_86, 0); +x_91 = lean_ctor_get(x_86, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_86); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } @@ -21289,7 +21111,174 @@ return x_130; } else { +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = lean_ctor_get(x_58, 0); +x_99 = lean_ctor_get(x_58, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_58); +x_100 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__1; +x_101 = lean_unbox(x_98); +lean_dec(x_98); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_49); +lean_dec(x_44); +lean_dec(x_2); +x_102 = lean_box(0); +x_103 = lean_apply_6(x_100, x_102, x_7, x_8, x_9, x_10, x_99); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_12 = x_104; +x_13 = x_105; +goto block_37; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_4); +x_106 = lean_ctor_get(x_103, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_108 = x_103; +} else { + lean_dec_ref(x_103); + 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); +return x_109; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_49); +lean_ctor_set(x_111, 1, x_110); +x_112 = l_Lean_Elab_goalsToMessageData(x_111); +switch (x_3) { +case 0: +{ +lean_object* x_133; +x_133 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__1; +x_113 = x_133; +goto block_132; +} +case 1: +{ +lean_object* x_134; +x_134 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__2; +x_113 = x_134; +goto block_132; +} +case 2: +{ +lean_object* x_135; +x_135 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__3; +x_113 = x_135; +goto block_132; +} +default: +{ lean_object* x_136; +x_136 = l_Lean_Elab_WF_GuessLex_instToFormatGuessLexRel___closed__4; +x_113 = x_136; +goto block_132; +} +} +block_132: +{ +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; +x_114 = l_Lean_MessageData_ofFormat(x_113); +x_115 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__3; +if (lean_is_scalar(x_44)) { + x_116 = lean_alloc_ctor(6, 2, 0); +} else { + x_116 = x_44; + lean_ctor_set_tag(x_116, 6); +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +x_117 = l_List_forIn_loop___at_Lean_Elab_WF_GuessLex_evalRecCall___spec__3___lambda__9___closed__5; +x_118 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_112); +x_120 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_GuessLex_withRecApps_loop___spec__21___rarg___lambda__2___closed__5; +x_121 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +x_122 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_121, x_7, x_8, x_9, x_10, x_99); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = lean_apply_6(x_100, x_123, x_7, x_8, x_9, x_10, x_124); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec(x_125); +x_12 = x_126; +x_13 = x_127; +goto block_37; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_4); +x_128 = lean_ctor_get(x_125, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_125, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_130 = x_125; +} else { + lean_dec_ref(x_125); + 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 +{ +lean_object* x_137; lean_dec(x_49); lean_dec(x_44); lean_dec(x_10); @@ -21299,20 +21288,42 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_2); if (lean_is_scalar(x_51)) { - x_136 = lean_alloc_ctor(1, 2, 0); + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_136 = x_51; - lean_ctor_set_tag(x_136, 1); + x_137 = x_51; + lean_ctor_set_tag(x_137, 1); } -lean_ctor_set(x_136, 0, x_54); -lean_ctor_set(x_136, 1, x_55); -return x_136; +lean_ctor_set(x_137, 0, x_54); +lean_ctor_set(x_137, 1, x_55); +return x_137; +} +} +else +{ +lean_object* x_138; +lean_dec(x_49); +lean_dec(x_44); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_51)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_51; + lean_ctor_set_tag(x_138, 1); +} +lean_ctor_set(x_138, 0, x_54); +lean_ctor_set(x_138, 1, x_55); +return x_138; } } } else { -uint8_t x_166; +uint8_t x_168; lean_dec(x_44); lean_dec(x_10); lean_dec(x_9); @@ -21321,29 +21332,29 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_166 = !lean_is_exclusive(x_48); -if (x_166 == 0) +x_168 = !lean_is_exclusive(x_48); +if (x_168 == 0) { return x_48; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_48, 0); -x_168 = lean_ctor_get(x_48, 1); -lean_inc(x_168); -lean_inc(x_167); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_48, 0); +x_170 = lean_ctor_get(x_48, 1); +lean_inc(x_170); +lean_inc(x_169); lean_dec(x_48); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -return x_169; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } else { -uint8_t x_170; +uint8_t x_172; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21352,23 +21363,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_170 = !lean_is_exclusive(x_38); -if (x_170 == 0) +x_172 = !lean_is_exclusive(x_38); +if (x_172 == 0) { return x_38; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_171 = lean_ctor_get(x_38, 0); -x_172 = lean_ctor_get(x_38, 1); -lean_inc(x_172); -lean_inc(x_171); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_38, 0); +x_174 = lean_ctor_get(x_38, 1); +lean_inc(x_174); +lean_inc(x_173); lean_dec(x_38); -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; +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } block_37: @@ -31056,8 +31067,6 @@ lean_ctor_set(x_22, 4, x_21); lean_ctor_set(x_22, 5, x_21); x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_GuessLex_reportTermArgs___spec__1___lambda__1___closed__5; x_24 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_15, x_22, x_21, x_23, x_21, x_5, x_6, x_7, x_8, x_18); -lean_dec(x_6); -lean_dec(x_5); if (lean_obj_tag(x_24) == 0) { uint8_t x_25; @@ -31172,8 +31181,6 @@ lean_ctor_set(x_44, 4, x_43); lean_ctor_set(x_44, 5, x_43); x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_GuessLex_reportTermArgs___spec__1___lambda__1___closed__5; x_46 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_37, x_44, x_43, x_45, x_43, x_5, x_6, x_7, x_8, x_40); -lean_dec(x_6); -lean_dec(x_5); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; @@ -31471,9 +31478,11 @@ x_54 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); x_55 = 0; +lean_inc(x_8); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_56 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_49, x_54, x_55, x_5, x_6, x_7, x_8, x_48); -lean_dec(x_49); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); @@ -31734,9 +31743,11 @@ x_111 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_111, 0, x_109); lean_ctor_set(x_111, 1, x_110); x_112 = 0; +lean_inc(x_8); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_113 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_106, x_111, x_112, x_5, x_6, x_7, x_8, x_105); -lean_dec(x_106); x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); x_115 = lean_ctor_get(x_113, 1); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c index 482e71a1f8..673262470c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c @@ -7294,9 +7294,13 @@ x_28 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); x_29 = 2; +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); x_30 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_15, x_28, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_15); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -7330,9 +7334,13 @@ x_44 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); x_45 = 2; +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); x_46 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_15, x_44, x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_15); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); @@ -7349,7 +7357,12 @@ goto _start; else { lean_object* x_52; +lean_dec(x_11); lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); x_52 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_52, 0, x_5); lean_ctor_set(x_52, 1, x_12); @@ -8646,7 +8659,7 @@ x_18 = l_Lean_Elab_wfRecursion___lambda__5___closed__1; x_19 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_18); lean_ctor_set(x_12, 4, x_19); lean_ctor_set(x_12, 2, x_1); -lean_ctor_set_uint8(x_12, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_12, sizeof(void*)*12, x_2); lean_inc(x_13); lean_inc(x_12); lean_inc(x_6); @@ -8783,7 +8796,7 @@ return x_46; } else { -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_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; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; x_47 = lean_ctor_get(x_12, 0); x_48 = lean_ctor_get(x_12, 1); x_49 = lean_ctor_get(x_12, 3); @@ -8793,6 +8806,9 @@ x_52 = lean_ctor_get(x_12, 7); x_53 = lean_ctor_get(x_12, 8); x_54 = lean_ctor_get(x_12, 9); x_55 = lean_ctor_get(x_12, 10); +x_56 = lean_ctor_get(x_12, 11); +x_57 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); @@ -8803,128 +8819,75 @@ lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); lean_dec(x_12); -x_56 = l_Lean_Elab_wfRecursion___lambda__5___closed__1; -x_57 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_56); -x_58 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_58, 0, x_47); -lean_ctor_set(x_58, 1, x_48); -lean_ctor_set(x_58, 2, x_1); -lean_ctor_set(x_58, 3, x_49); -lean_ctor_set(x_58, 4, x_57); -lean_ctor_set(x_58, 5, x_50); -lean_ctor_set(x_58, 6, x_51); -lean_ctor_set(x_58, 7, x_52); -lean_ctor_set(x_58, 8, x_53); -lean_ctor_set(x_58, 9, x_54); -lean_ctor_set(x_58, 10, x_55); -lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_2); +x_58 = l_Lean_Elab_wfRecursion___lambda__5___closed__1; +x_59 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_58); +x_60 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_60, 0, x_47); +lean_ctor_set(x_60, 1, x_48); +lean_ctor_set(x_60, 2, x_1); +lean_ctor_set(x_60, 3, x_49); +lean_ctor_set(x_60, 4, x_59); +lean_ctor_set(x_60, 5, x_50); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_54); +lean_ctor_set(x_60, 10, x_55); +lean_ctor_set(x_60, 11, x_56); +lean_ctor_set_uint8(x_60, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_60, sizeof(void*)*12 + 1, x_57); lean_inc(x_13); -lean_inc(x_58); +lean_inc(x_60); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_59 = l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_isOnlyOneUnaryDef(x_3, x_4, x_5, x_6, x_58, x_13, x_14); -if (lean_obj_tag(x_59) == 0) +x_61 = l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_isOnlyOneUnaryDef(x_3, x_4, x_5, x_6, x_60, x_13, x_14); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_60; uint8_t x_61; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_unbox(x_60); -lean_dec(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_62 = lean_ctor_get(x_59, 1); +lean_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_59); -x_63 = lean_ctor_get(x_7, 3); -lean_inc(x_63); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = 0; -x_67 = lean_box(x_66); +x_63 = lean_unbox(x_62); +lean_dec(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; 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_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_ctor_get(x_7, 3); +lean_inc(x_65); +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = 0; +x_69 = lean_box(x_68); lean_inc(x_7); -x_68 = lean_alloc_closure((void*)(l_Lean_Elab_addNonRec___boxed), 10, 3); -lean_closure_set(x_68, 0, x_7); -lean_closure_set(x_68, 1, x_67); -lean_closure_set(x_68, 2, x_65); +x_70 = lean_alloc_closure((void*)(l_Lean_Elab_addNonRec___boxed), 10, 3); +lean_closure_set(x_70, 0, x_7); +lean_closure_set(x_70, 1, x_69); +lean_closure_set(x_70, 2, x_67); lean_inc(x_13); -lean_inc(x_58); +lean_inc(x_60); lean_inc(x_6); lean_inc(x_5); lean_inc(x_9); lean_inc(x_8); -x_69 = l_Lean_Elab_withEnableInfoTree___at_Lean_Elab_wfRecursion___spec__6(x_66, x_68, x_8, x_9, x_5, x_6, x_58, x_13, x_62); -if (lean_obj_tag(x_69) == 0) +x_71 = l_Lean_Elab_withEnableInfoTree___at_Lean_Elab_wfRecursion___spec__6(x_68, x_70, x_8, x_9, x_5, x_6, x_60, x_13, x_64); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs(x_4, x_10, x_3, x_7, x_8, x_9, x_5, x_6, x_58, x_13, x_70); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_58); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_72 = lean_ctor_get(x_69, 0); +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_69, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_74 = x_69; -} else { - lean_dec_ref(x_69); - x_74 = lean_box(0); -} -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); -} else { - x_75 = x_74; -} -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; -} +lean_dec(x_71); +x_73 = l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs(x_4, x_10, x_3, x_7, x_8, x_9, x_5, x_6, x_60, x_13, x_72); +return x_73; } else { -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_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -x_76 = lean_ctor_get(x_59, 1); -lean_inc(x_76); -lean_dec(x_59); -x_77 = lean_ctor_get(x_7, 3); -lean_inc(x_77); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = 0; -x_81 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(x_7, x_80, x_79, x_80, x_8, x_9, x_5, x_6, x_58, x_13, x_76); -return x_81; -} -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_58); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_60); lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -8934,26 +8897,81 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_82 = lean_ctor_get(x_59, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_59, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_84 = x_59; +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_59); - x_84 = lean_box(0); + lean_dec_ref(x_71); + x_76 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; + x_77 = x_76; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); -return x_85; +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; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_78 = lean_ctor_get(x_61, 1); +lean_inc(x_78); +lean_dec(x_61); +x_79 = lean_ctor_get(x_7, 3); +lean_inc(x_79); +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +x_82 = 0; +x_83 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(x_7, x_82, x_81, x_82, x_8, x_9, x_5, x_6, x_60, x_13, x_78); +return x_83; +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_60); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_84 = lean_ctor_get(x_61, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_61, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_86 = x_61; +} else { + lean_dec_ref(x_61); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); +} else { + x_87 = x_86; +} +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; } } } @@ -10547,11 +10565,6 @@ x_38 = lean_usize_of_nat(x_30); lean_dec(x_30); x_39 = lean_box(0); x_40 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_wfRecursion___spec__8(x_26, x_27, x_11, x_38, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); lean_dec(x_27); lean_dec(x_26); x_41 = !lean_is_exclusive(x_40); @@ -10836,11 +10849,6 @@ lean_dec(x_3); x_14 = lean_unbox_usize(x_4); lean_dec(x_4); x_15 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_wfRecursion___spec__8(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); return x_15; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackMutual.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackMutual.c index 396bd75ff8..95eb9a88cb 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackMutual.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackMutual.c @@ -324,7 +324,7 @@ x_16 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutu x_17 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_16); lean_ctor_set(x_10, 4, x_17); lean_ctor_set(x_10, 2, x_1); -lean_ctor_set_uint8(x_10, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_10, sizeof(void*)*12, x_2); lean_inc(x_11); lean_inc(x_10); lean_inc(x_5); @@ -486,7 +486,7 @@ return x_61; } else { -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_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; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; x_62 = lean_ctor_get(x_10, 0); x_63 = lean_ctor_get(x_10, 1); x_64 = lean_ctor_get(x_10, 3); @@ -496,6 +496,9 @@ x_67 = lean_ctor_get(x_10, 7); x_68 = lean_ctor_get(x_10, 8); x_69 = lean_ctor_get(x_10, 9); x_70 = lean_ctor_get(x_10, 10); +x_71 = lean_ctor_get(x_10, 11); +x_72 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_71); lean_inc(x_70); lean_inc(x_69); lean_inc(x_68); @@ -506,122 +509,124 @@ lean_inc(x_64); lean_inc(x_63); lean_inc(x_62); lean_dec(x_10); -x_71 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__1; -x_72 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_71); -x_73 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_73, 0, x_62); -lean_ctor_set(x_73, 1, x_63); -lean_ctor_set(x_73, 2, x_1); -lean_ctor_set(x_73, 3, x_64); -lean_ctor_set(x_73, 4, x_72); -lean_ctor_set(x_73, 5, x_65); -lean_ctor_set(x_73, 6, x_66); -lean_ctor_set(x_73, 7, x_67); -lean_ctor_set(x_73, 8, x_68); -lean_ctor_set(x_73, 9, x_69); -lean_ctor_set(x_73, 10, x_70); -lean_ctor_set_uint8(x_73, sizeof(void*)*11, x_2); +x_73 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__1; +x_74 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_73); +x_75 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_75, 0, x_62); +lean_ctor_set(x_75, 1, x_63); +lean_ctor_set(x_75, 2, x_1); +lean_ctor_set(x_75, 3, x_64); +lean_ctor_set(x_75, 4, x_74); +lean_ctor_set(x_75, 5, x_65); +lean_ctor_set(x_75, 6, x_66); +lean_ctor_set(x_75, 7, x_67); +lean_ctor_set(x_75, 8, x_68); +lean_ctor_set(x_75, 9, x_69); +lean_ctor_set(x_75, 10, x_70); +lean_ctor_set(x_75, 11, x_71); +lean_ctor_set_uint8(x_75, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_75, sizeof(void*)*12 + 1, x_72); lean_inc(x_11); -lean_inc(x_73); +lean_inc(x_75); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_74 = lean_infer_type(x_3, x_4, x_5, x_73, x_11, x_12); -if (lean_obj_tag(x_74) == 0) +x_76 = lean_infer_type(x_3, x_4, x_5, x_75, x_11, x_12); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); lean_inc(x_11); -lean_inc(x_73); +lean_inc(x_75); lean_inc(x_5); lean_inc(x_4); lean_inc(x_6); -x_77 = lean_infer_type(x_6, x_4, x_5, x_73, x_11, x_76); -if (lean_obj_tag(x_77) == 0) +x_79 = lean_infer_type(x_6, x_4, x_5, x_75, x_11, x_78); +if (lean_obj_tag(x_79) == 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; 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; 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; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_ctor_get(x_7, 3); +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; 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; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = lean_ctor_get(x_7, 3); +lean_inc(x_82); lean_dec(x_7); -x_81 = l_Lean_MessageData_ofName(x_80); -x_82 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__8; -x_83 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__10; +x_83 = l_Lean_MessageData_ofName(x_82); +x_84 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__8; x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_indentExpr(x_3); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__10; x_87 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); -x_88 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__12; +x_88 = l_Lean_indentExpr(x_3); x_89 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); -x_90 = l_Lean_MessageData_ofExpr(x_75); +x_90 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__12; x_91 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_91, 0, x_89); lean_ctor_set(x_91, 1, x_90); -x_92 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__14; +x_92 = l_Lean_MessageData_ofExpr(x_77); x_93 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); -x_94 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__6; +x_94 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__14; x_95 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_93); -x_96 = lean_ctor_get(x_8, 3); -lean_inc(x_96); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__6; +x_97 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_98 = lean_ctor_get(x_8, 3); +lean_inc(x_98); lean_dec(x_8); -x_97 = l_Lean_MessageData_ofName(x_96); -x_98 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__16; -x_99 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_84); -x_101 = l_Lean_indentExpr(x_6); +x_99 = l_Lean_MessageData_ofName(x_98); +x_100 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__16; +x_101 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); x_102 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_88); -x_104 = l_Lean_MessageData_ofExpr(x_78); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_86); +x_103 = l_Lean_indentExpr(x_6); +x_104 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); x_105 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__18; +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_90); +x_106 = l_Lean_MessageData_ofExpr(x_80); x_107 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_107, 0, x_105); lean_ctor_set(x_107, 1, x_106); -x_108 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_108, 0, x_95); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_108, x_4, x_5, x_73, x_11, x_79); +x_108 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackMutual_0__Lean_Elab_WF_checkCodomainsLevel___spec__1___lambda__1___closed__18; +x_109 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_110, 0, x_97); +lean_ctor_set(x_110, 1, x_109); +x_111 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_110, x_4, x_5, x_75, x_11, x_81); lean_dec(x_11); -lean_dec(x_73); -lean_dec(x_5); -lean_dec(x_4); -return x_109; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_dec(x_75); -lean_dec(x_73); +lean_dec(x_5); +lean_dec(x_4); +return x_111; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_77); +lean_dec(x_75); lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -629,32 +634,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_110 = lean_ctor_get(x_77, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_77, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_112 = x_77; +x_112 = lean_ctor_get(x_79, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_79, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_114 = x_79; } else { - lean_dec_ref(x_77); - x_112 = lean_box(0); + lean_dec_ref(x_79); + x_114 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_113 = x_112; + x_115 = x_114; } -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_73); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_75); lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -662,26 +667,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_114 = lean_ctor_get(x_74, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_74, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_116 = x_74; +x_116 = lean_ctor_get(x_76, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_76, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_118 = x_76; } else { - lean_dec_ref(x_74); - x_116 = lean_box(0); + lean_dec_ref(x_76); + x_118 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_119 = x_118; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/TerminationHint.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/TerminationHint.c index c8e71ab994..16bb9a34eb 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/TerminationHint.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/TerminationHint.c @@ -303,17 +303,22 @@ _start: { lean_object* x_6; x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +lean_dec(x_1); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; +lean_dec(x_4); lean_dec(x_3); x_9 = lean_box(0); x_10 = lean_alloc_ctor(0, 2, 0); @@ -325,7 +330,11 @@ else { 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; x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec(x_8); x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); x_13 = l_Lean_stringToMessageData(x_2); x_14 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__2; x_15 = lean_alloc_ctor(6, 2, 0); @@ -344,11 +353,17 @@ else { lean_object* x_20; x_20 = lean_ctor_get(x_1, 3); +lean_inc(x_20); 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; uint8_t x_28; lean_object* x_29; +lean_dec(x_1); x_21 = lean_ctor_get(x_7, 0); +lean_inc(x_21); +lean_dec(x_7); x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +lean_dec(x_21); x_23 = l_Lean_stringToMessageData(x_2); x_24 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__6; x_25 = lean_alloc_ctor(6, 2, 0); @@ -365,7 +380,11 @@ return x_29; else { 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_dec(x_20); +lean_dec(x_7); x_30 = lean_ctor_get(x_1, 0); +lean_inc(x_30); +lean_dec(x_1); x_31 = l_Lean_stringToMessageData(x_2); x_32 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__8; x_33 = lean_alloc_ctor(6, 2, 0); @@ -385,14 +404,19 @@ else { lean_object* x_38; x_38 = lean_ctor_get(x_1, 2); +lean_inc(x_38); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; x_39 = lean_ctor_get(x_1, 3); +lean_inc(x_39); 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; lean_object* x_45; uint8_t x_46; lean_object* x_47; +lean_dec(x_1); x_40 = lean_ctor_get(x_6, 0); +lean_inc(x_40); +lean_dec(x_6); x_41 = l_Lean_stringToMessageData(x_2); x_42 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__10; x_43 = lean_alloc_ctor(6, 2, 0); @@ -409,7 +433,11 @@ 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; uint8_t x_54; lean_object* x_55; +lean_dec(x_39); +lean_dec(x_6); x_48 = lean_ctor_get(x_1, 0); +lean_inc(x_48); +lean_dec(x_1); x_49 = l_Lean_stringToMessageData(x_2); x_50 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__8; x_51 = lean_alloc_ctor(6, 2, 0); @@ -427,7 +455,11 @@ 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; uint8_t x_62; lean_object* x_63; +lean_dec(x_38); +lean_dec(x_6); x_56 = lean_ctor_get(x_1, 0); +lean_inc(x_56); +lean_dec(x_1); x_57 = l_Lean_stringToMessageData(x_2); x_58 = l_Lean_Elab_WF_TerminationHints_ensureNone___closed__8; x_59 = lean_alloc_ctor(6, 2, 0); @@ -449,9 +481,7 @@ _start: { lean_object* x_6; x_6 = l_Lean_Elab_WF_TerminationHints_ensureNone(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); return x_6; } } @@ -651,7 +681,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -663,7 +693,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -676,24 +709,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index cb2381fd24..f6accb7526 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -4623,7 +4623,7 @@ return x_30; } else { -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_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; uint8_t x_40; lean_object* x_41; lean_object* x_42; x_31 = lean_ctor_get(x_2, 0); x_32 = lean_ctor_get(x_2, 1); x_33 = lean_ctor_get(x_2, 2); @@ -4632,6 +4632,9 @@ x_35 = lean_ctor_get(x_2, 4); x_36 = lean_ctor_get(x_2, 5); x_37 = lean_ctor_get(x_2, 7); x_38 = lean_ctor_get(x_2, 8); +x_39 = lean_ctor_get(x_2, 9); +x_40 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); @@ -4641,18 +4644,20 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_dec(x_2); -x_39 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_39, 0, x_31); -lean_ctor_set(x_39, 1, x_32); -lean_ctor_set(x_39, 2, x_33); -lean_ctor_set(x_39, 3, x_34); -lean_ctor_set(x_39, 4, x_35); -lean_ctor_set(x_39, 5, x_36); -lean_ctor_set(x_39, 6, x_27); -lean_ctor_set(x_39, 7, x_37); -lean_ctor_set(x_39, 8, x_38); -x_40 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printId(x_12, x_39, x_3, x_26); -return x_40; +x_41 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_41, 0, x_31); +lean_ctor_set(x_41, 1, x_32); +lean_ctor_set(x_41, 2, x_33); +lean_ctor_set(x_41, 3, x_34); +lean_ctor_set(x_41, 4, x_35); +lean_ctor_set(x_41, 5, x_36); +lean_ctor_set(x_41, 6, x_27); +lean_ctor_set(x_41, 7, x_37); +lean_ctor_set(x_41, 8, x_38); +lean_ctor_set(x_41, 9, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*10, x_40); +x_42 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printId(x_12, x_41, x_3, x_26); +return x_42; } } } @@ -6359,7 +6364,7 @@ return x_27; } else { -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_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; uint8_t x_37; lean_object* x_38; lean_object* x_39; x_28 = lean_ctor_get(x_2, 0); x_29 = lean_ctor_get(x_2, 1); x_30 = lean_ctor_get(x_2, 2); @@ -6368,6 +6373,9 @@ x_32 = lean_ctor_get(x_2, 4); x_33 = lean_ctor_get(x_2, 5); x_34 = lean_ctor_get(x_2, 7); x_35 = lean_ctor_get(x_2, 8); +x_36 = lean_ctor_get(x_2, 9); +x_37 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -6377,53 +6385,55 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_dec(x_2); -x_36 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_32); -lean_ctor_set(x_36, 5, x_33); -lean_ctor_set(x_36, 6, x_17); -lean_ctor_set(x_36, 7, x_34); -lean_ctor_set(x_36, 8, x_35); -x_37 = l_Lean_Elab_Command_liftCoreM___rarg(x_13, x_36, x_3, x_16); -if (lean_obj_tag(x_37) == 0) +x_38 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_38, 0, x_28); +lean_ctor_set(x_38, 1, x_29); +lean_ctor_set(x_38, 2, x_30); +lean_ctor_set(x_38, 3, x_31); +lean_ctor_set(x_38, 4, x_32); +lean_ctor_set(x_38, 5, x_33); +lean_ctor_set(x_38, 6, x_17); +lean_ctor_set(x_38, 7, x_34); +lean_ctor_set(x_38, 8, x_35); +lean_ctor_set(x_38, 9, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*10, x_37); +x_39 = l_Lean_Elab_Command_liftCoreM___rarg(x_13, x_38, x_3, x_16); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(x_38, x_36, x_3, x_39); -return x_40; +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(x_40, x_38, x_3, x_41); +return x_42; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_36); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_38); lean_dec(x_3); -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_43 = x_37; +x_43 = lean_ctor_get(x_39, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_45 = x_39; } else { - lean_dec_ref(x_37); - x_43 = lean_box(0); + lean_dec_ref(x_39); + x_45 = lean_box(0); } -if (lean_is_scalar(x_43)) { - x_44 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); } else { - x_44 = x_43; + x_46 = x_45; } -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } } diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index cb00695d7f..55a54407e4 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -7500,7 +7500,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -7512,7 +7512,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -7525,29 +7528,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -13181,7 +13186,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -13193,7 +13198,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -13206,29 +13214,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__25(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__25(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -20524,7 +20534,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -20536,7 +20546,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -20549,29 +20562,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -40519,11 +40534,6 @@ lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; x_13 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__5___closed__3; x_14 = 2; x_15 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -40609,11 +40619,6 @@ lean_dec(x_1); x_31 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__5___closed__3; x_32 = 2; x_33 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_31, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Quotation/Precheck.c b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c index cb74c08c2d..9a55e9f939 100644 --- a/stage0/stdlib/Lean/Elab/Quotation/Precheck.c +++ b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c @@ -45,6 +45,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Quotation_pr lean_object* l_Lean_indentD(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_precheckRightact___closed__3; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Quotation_precheckChoice___spec__5___closed__3; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_precheckRightact___closed__2; static lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_119____closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_precheck_hasQuotedIdent___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -1565,7 +1566,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -1577,7 +1578,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -1590,31 +1594,33 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); lean_dec(x_9); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_29; +return x_31; } } } @@ -2374,7 +2380,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -2386,7 +2392,10 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -2399,31 +2408,33 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_8); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_28, x_9, x_10); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_30, x_9, x_10); lean_dec(x_9); -lean_dec(x_28); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_29; +return x_31; } } } @@ -2732,7 +2743,7 @@ return x_18; } else { -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; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +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; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_19 = lean_ctor_get(x_16, 0); lean_inc(x_19); lean_dec(x_16); @@ -2758,22 +2769,27 @@ x_29 = lean_ctor_get(x_7, 9); lean_inc(x_29); x_30 = lean_ctor_get(x_7, 10); lean_inc(x_30); -x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_32 = l_Lean_replaceRef(x_1, x_25); +x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_32 = lean_ctor_get(x_7, 11); +lean_inc(x_32); +x_33 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_34 = l_Lean_replaceRef(x_1, x_25); lean_dec(x_25); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_21); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_23); +lean_ctor_set(x_35, 4, x_24); +lean_ctor_set(x_35, 5, x_34); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_33); lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); @@ -2781,10 +2797,10 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_34 = lean_apply_9(x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_33, x_8, x_12); -if (lean_obj_tag(x_34) == 0) +x_36 = lean_apply_9(x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_35, x_8, x_12); +if (lean_obj_tag(x_36) == 0) { -uint8_t x_35; +uint8_t x_37; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2793,63 +2809,47 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -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(x_34, 0, x_37); -return x_34; -} -else -{ -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); +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_ctor_set(x_36, 0, x_39); +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; } } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_34); -if (x_41 == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_34, 0); -x_43 = lean_ctor_get(x_34, 1); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_36, 0); +x_45 = lean_ctor_get(x_36, 1); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) { -if (lean_obj_tag(x_42) == 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); -lean_dec(x_1); -return x_34; -} -else -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_42, 0); -lean_inc(x_45); -x_46 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_precheck___spec__8___rarg___closed__1; -x_47 = lean_nat_dec_eq(x_46, x_45); -lean_dec(x_45); +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); if (x_47 == 0) { +if (lean_obj_tag(x_44) == 0) +{ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2858,16 +2858,36 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_34; +return x_36; } else { -lean_object* x_48; lean_object* x_49; -lean_free_object(x_34); -lean_dec(x_42); -x_48 = lean_box(0); -x_49 = l_Lean_Elab_Term_Quotation_precheck___lambda__4(x_1, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -return x_49; +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = lean_ctor_get(x_44, 0); +lean_inc(x_48); +x_49 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_precheck___spec__8___rarg___closed__1; +x_50 = lean_nat_dec_eq(x_49, x_48); +lean_dec(x_48); +if (x_50 == 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); +lean_dec(x_1); +return x_36; +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_free_object(x_36); +lean_dec(x_44); +x_51 = lean_box(0); +x_52 = l_Lean_Elab_Term_Quotation_precheck___lambda__4(x_1, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +return x_52; } } } @@ -2881,23 +2901,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_34; +return x_36; } } else { -lean_object* x_50; lean_object* x_51; uint8_t 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 = l_Lean_Exception_isRuntime(x_50); -if (x_52 == 0) -{ -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_53; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2906,21 +2914,26 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; +return x_36; +} } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_50, 0); +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_36, 0); +x_54 = lean_ctor_get(x_36, 1); lean_inc(x_54); -x_55 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_precheck___spec__8___rarg___closed__1; -x_56 = lean_nat_dec_eq(x_55, x_54); -lean_dec(x_54); +lean_inc(x_53); +lean_dec(x_36); +x_55 = l_Lean_Exception_isInterrupt(x_53); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = l_Lean_Exception_isRuntime(x_53); if (x_56 == 0) { +if (lean_obj_tag(x_53) == 0) +{ lean_object* x_57; lean_dec(x_8); lean_dec(x_7); @@ -2931,23 +2944,21 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_50); -lean_ctor_set(x_57, 1, x_51); +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_54); return x_57; } else { -lean_object* x_58; lean_object* x_59; -lean_dec(x_50); -x_58 = lean_box(0); -x_59 = l_Lean_Elab_Term_Quotation_precheck___lambda__4(x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_51); -return x_59; -} -} -} -else +lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_58 = lean_ctor_get(x_53, 0); +lean_inc(x_58); +x_59 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_precheck___spec__8___rarg___closed__1; +x_60 = lean_nat_dec_eq(x_59, x_58); +lean_dec(x_58); +if (x_60 == 0) { -lean_object* x_60; +lean_object* x_61; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2956,10 +2967,53 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_50); -lean_ctor_set(x_60, 1, x_51); -return x_60; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_53); +lean_ctor_set(x_61, 1, x_54); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_53); +x_62 = lean_box(0); +x_63 = l_Lean_Elab_Term_Quotation_precheck___lambda__4(x_1, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_54); +return x_63; +} +} +} +else +{ +lean_object* x_64; +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_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_53); +lean_ctor_set(x_64, 1, x_54); +return x_64; +} +} +else +{ +lean_object* x_65; +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_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_53); +lean_ctor_set(x_65, 1, x_54); +return x_65; } } } @@ -3605,13 +3659,17 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_14, 0); x_20 = lean_ctor_get(x_14, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_free_object(x_14); lean_dec(x_19); -x_22 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +x_23 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_20); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3619,7 +3677,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_22; +return x_23; } else { @@ -3636,30 +3694,6 @@ return x_14; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_14); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_23); -x_26 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); -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); -return x_26; -} -else -{ -lean_object* x_27; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3668,10 +3702,68 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_23); -lean_ctor_set(x_27, 1, x_24); -return x_27; +return x_14; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_14); +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_24); +x_28 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, 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_5); +lean_dec(x_4); +return x_28; +} +else +{ +lean_object* x_29; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 1, x_25); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_25); +return x_30; } } } @@ -4705,14 +4797,18 @@ if (x_18 == 0) { lean_object* x_19; uint8_t x_20; x_19 = lean_ctor_get(x_10, 0); -x_20 = l_Lean_Exception_isRuntime(x_19); +x_20 = l_Lean_Exception_isInterrupt(x_19); if (x_20 == 0) { -lean_object* x_21; -x_21 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_21, 0, x_19); +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_19); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_19); lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_21); +lean_ctor_set(x_10, 0, x_22); return x_10; } else @@ -4722,30 +4818,48 @@ return x_10; } else { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_10, 0); -x_23 = lean_ctor_get(x_10, 1); +return x_10; +} +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); lean_dec(x_10); -x_24 = l_Lean_Exception_isRuntime(x_22); -if (x_24 == 0) +x_25 = l_Lean_Exception_isInterrupt(x_23); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_25, 0, 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_23); -return x_26; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_27, 0, x_23); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_24); +return x_28; } else { -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_22); -lean_ctor_set(x_27, 1, x_23); -return x_27; +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +return x_29; +} +} +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_24); +return x_30; } } } diff --git a/stage0/stdlib/Lean/Elab/Quotation/Util.c b/stage0/stdlib/Lean/Elab/Quotation/Util.c index ce88ae6ae9..7ffd731b5e 100644 --- a/stage0/stdlib/Lean/Elab/Quotation/Util.c +++ b/stage0/stdlib/Lean/Elab/Quotation/Util.c @@ -221,7 +221,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -233,7 +233,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -246,24 +249,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -1265,7 +1270,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -1277,7 +1282,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -1290,29 +1298,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_getPatternVars___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_getPatternVars___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 2333856c97..a925c88072 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -96,6 +96,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructIns static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___lambda__2___closed__12; static lean_object* l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__13___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isDefaultMissing_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstFieldAbbrev___lambda__1___closed__1; static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___lambda__2___closed__1; @@ -4170,7 +4171,7 @@ return x_32; } 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; lean_object* 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_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; uint8_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; x_33 = lean_ctor_get(x_6, 0); x_34 = lean_ctor_get(x_6, 1); x_35 = lean_ctor_get(x_6, 2); @@ -4182,7 +4183,10 @@ x_40 = lean_ctor_get(x_6, 7); x_41 = lean_ctor_get(x_6, 8); x_42 = lean_ctor_get(x_6, 9); x_43 = lean_ctor_get(x_6, 10); -x_44 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_44 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_45 = lean_ctor_get(x_6, 11); +x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_45); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); @@ -4195,103 +4199,105 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_6); -x_45 = l_Lean_replaceRef(x_1, x_38); +x_47 = l_Lean_replaceRef(x_1, x_38); lean_dec(x_38); lean_dec(x_1); -x_46 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_46, 0, x_33); -lean_ctor_set(x_46, 1, x_34); -lean_ctor_set(x_46, 2, x_35); -lean_ctor_set(x_46, 3, x_36); -lean_ctor_set(x_46, 4, x_37); -lean_ctor_set(x_46, 5, x_45); -lean_ctor_set(x_46, 6, x_39); -lean_ctor_set(x_46, 7, x_40); -lean_ctor_set(x_46, 8, x_41); -lean_ctor_set(x_46, 9, x_42); -lean_ctor_set(x_46, 10, x_43); -lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_44); +x_48 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_34); +lean_ctor_set(x_48, 2, x_35); +lean_ctor_set(x_48, 3, x_36); +lean_ctor_set(x_48, 4, x_37); +lean_ctor_set(x_48, 5, x_47); +lean_ctor_set(x_48, 6, x_39); +lean_ctor_set(x_48, 7, x_40); +lean_ctor_set(x_48, 8, x_41); +lean_ctor_set(x_48, 9, x_42); +lean_ctor_set(x_48, 10, x_43); +lean_ctor_set(x_48, 11, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*12, x_44); +lean_ctor_set_uint8(x_48, sizeof(void*)*12 + 1, x_46); if (x_13 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; size_t x_51; size_t x_52; lean_object* x_53; -x_47 = lean_unsigned_to_nat(0u); -x_48 = l_Lean_Syntax_getArg(x_10, x_47); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; size_t x_53; size_t x_54; lean_object* x_55; +x_49 = lean_unsigned_to_nat(0u); +x_50 = l_Lean_Syntax_getArg(x_10, x_49); lean_dec(x_10); -x_49 = l_Lean_Syntax_getSepArgs(x_48); -lean_dec(x_48); -x_50 = lean_array_get_size(x_49); -x_51 = lean_usize_of_nat(x_50); +x_51 = l_Lean_Syntax_getSepArgs(x_50); lean_dec(x_50); -x_52 = 0; +x_52 = lean_array_get_size(x_51); +x_53 = lean_usize_of_nat(x_52); +lean_dec(x_52); +x_54 = 0; lean_inc(x_7); -lean_inc(x_46); +lean_inc(x_48); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_53 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___spec__2(x_51, x_52, x_49, x_2, x_3, x_4, x_5, x_46, x_7, x_8); -if (lean_obj_tag(x_53) == 0) +x_55 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___spec__2(x_53, x_54, x_51, x_2, x_3, x_4, x_5, x_48, x_7, x_8); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___lambda__1(x_12, x_54, x_2, x_3, x_4, x_5, x_46, x_7, x_55); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___lambda__1(x_12, x_56, x_2, x_3, x_4, x_5, x_48, x_7, x_57); lean_dec(x_7); -lean_dec(x_46); +lean_dec(x_48); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_56; +return x_58; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_46); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_48); lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_57 = lean_ctor_get(x_53, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_59 = x_53; +x_59 = lean_ctor_get(x_55, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_55, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_61 = x_55; } else { - lean_dec_ref(x_53); - x_59 = lean_box(0); + lean_dec_ref(x_55); + x_61 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); } else { - x_60 = x_59; + x_62 = x_61; } -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } else { -lean_object* x_61; lean_object* x_62; +lean_object* x_63; lean_object* x_64; lean_dec(x_10); -x_61 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__1; -x_62 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___lambda__1(x_12, x_61, x_2, x_3, x_4, x_5, x_46, x_7, x_8); +x_63 = l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___closed__1; +x_64 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___lambda__1(x_12, x_63, x_2, x_3, x_4, x_5, x_48, x_7, x_8); lean_dec(x_7); -lean_dec(x_46); +lean_dec(x_48); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_62; +return x_64; } } } @@ -4427,7 +4433,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4439,7 +4445,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4452,29 +4461,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -11177,7 +11188,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -11189,7 +11200,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -11202,29 +11216,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -13722,7 +13738,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -13734,7 +13750,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -13747,29 +13766,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -16284,7 +16305,7 @@ return x_18; } else { -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; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_19 = lean_ctor_get(x_6, 0); x_20 = lean_ctor_get(x_6, 1); x_21 = lean_ctor_get(x_6, 2); @@ -16296,7 +16317,10 @@ x_26 = lean_ctor_get(x_6, 7); x_27 = lean_ctor_get(x_6, 8); x_28 = lean_ctor_get(x_6, 9); x_29 = lean_ctor_get(x_6, 10); -x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_31 = lean_ctor_get(x_6, 11); +x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_31); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -16309,24 +16333,26 @@ lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_dec(x_6); -x_31 = l_Lean_replaceRef(x_13, x_24); +x_33 = l_Lean_replaceRef(x_13, x_24); lean_dec(x_24); lean_dec(x_13); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_19); -lean_ctor_set(x_32, 1, x_20); -lean_ctor_set(x_32, 2, x_21); -lean_ctor_set(x_32, 3, x_22); -lean_ctor_set(x_32, 4, x_23); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_30); -x_33 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__4(x_1, x_14, x_2, x_3, x_4, x_5, x_32, x_7, x_11); -return x_33; +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); +x_35 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__4(x_1, x_14, x_2, x_3, x_4, x_5, x_34, x_7, x_11); +return x_35; } } } @@ -17891,7 +17917,7 @@ return x_45; } 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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +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; uint8_t x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; x_46 = lean_ctor_get(x_6, 0); x_47 = lean_ctor_get(x_6, 1); x_48 = lean_ctor_get(x_6, 2); @@ -17903,7 +17929,10 @@ x_53 = lean_ctor_get(x_6, 7); x_54 = lean_ctor_get(x_6, 8); x_55 = lean_ctor_get(x_6, 9); x_56 = lean_ctor_get(x_6, 10); -x_57 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_57 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_58 = lean_ctor_get(x_6, 11); +x_59 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_58); lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); @@ -17916,26 +17945,28 @@ lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_dec(x_6); -x_58 = l_Lean_replaceRef(x_17, x_51); +x_60 = l_Lean_replaceRef(x_17, x_51); lean_dec(x_51); -x_59 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_59, 0, x_46); -lean_ctor_set(x_59, 1, x_47); -lean_ctor_set(x_59, 2, x_48); -lean_ctor_set(x_59, 3, x_49); -lean_ctor_set(x_59, 4, x_50); -lean_ctor_set(x_59, 5, x_58); -lean_ctor_set(x_59, 6, x_52); -lean_ctor_set(x_59, 7, x_53); -lean_ctor_set(x_59, 8, x_54); -lean_ctor_set(x_59, 9, x_55); -lean_ctor_set(x_59, 10, x_56); -lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_57); -x_60 = lean_nat_dec_le(x_19, x_19); -if (x_60 == 0) +x_61 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_61, 0, x_46); +lean_ctor_set(x_61, 1, x_47); +lean_ctor_set(x_61, 2, x_48); +lean_ctor_set(x_61, 3, x_49); +lean_ctor_set(x_61, 4, x_50); +lean_ctor_set(x_61, 5, x_60); +lean_ctor_set(x_61, 6, x_52); +lean_ctor_set(x_61, 7, x_53); +lean_ctor_set(x_61, 8, x_54); +lean_ctor_set(x_61, 9, x_55); +lean_ctor_set(x_61, 10, x_56); +lean_ctor_set(x_61, 11, x_58); +lean_ctor_set_uint8(x_61, sizeof(void*)*12, x_57); +lean_ctor_set_uint8(x_61, sizeof(void*)*12 + 1, x_59); +x_62 = lean_nat_dec_le(x_19, x_19); +if (x_62 == 0) { -lean_object* x_61; lean_object* x_62; -lean_dec(x_59); +lean_object* x_63; lean_object* x_64; +lean_dec(x_61); lean_dec(x_19); lean_dec(x_17); lean_dec(x_15); @@ -17946,70 +17977,70 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_61 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; -x_62 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_61); -lean_ctor_set(x_9, 0, x_62); +x_63 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; +x_64 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_63); +lean_ctor_set(x_9, 0, x_64); return x_9; } else { -size_t x_63; size_t x_64; lean_object* x_65; +size_t x_65; size_t x_66; lean_object* x_67; lean_free_object(x_9); -x_63 = 0; -x_64 = lean_usize_of_nat(x_19); +x_65 = 0; +x_66 = lean_usize_of_nat(x_19); lean_dec(x_19); -x_65 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4(x_1, x_13, x_14, x_17, x_15, x_63, x_64, x_18, x_2, x_3, x_4, x_5, x_59, x_7, x_12); +x_67 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4(x_1, x_13, x_14, x_17, x_15, x_65, x_66, x_18, x_2, x_3, x_4, x_5, x_61, x_7, x_12); lean_dec(x_15); -if (lean_obj_tag(x_65) == 0) +if (lean_obj_tag(x_67) == 0) { -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_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_68 = x_65; +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_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_65); - x_68 = lean_box(0); + lean_dec_ref(x_67); + x_70 = lean_box(0); } -x_69 = l_List_reverse___rarg(x_66); -x_70 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_69); -if (lean_is_scalar(x_68)) { - x_71 = lean_alloc_ctor(0, 2, 0); +x_71 = l_List_reverse___rarg(x_68); +x_72 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_71); +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_68; + x_73 = x_70; } -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_67); -return x_71; +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +return x_73; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_dec(x_1); -x_72 = lean_ctor_get(x_65, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_74 = x_65; +x_74 = lean_ctor_get(x_67, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_67, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_76 = x_67; } else { - lean_dec_ref(x_65); - x_74 = lean_box(0); + lean_dec_ref(x_67); + x_76 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; + x_77 = x_76; } -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } @@ -18017,72 +18048,75 @@ return x_75; } else { -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; uint8_t x_86; -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_ctor_get(x_76, 0); -lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); +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; uint8_t x_88; +x_78 = lean_ctor_get(x_9, 0); +x_79 = lean_ctor_get(x_9, 1); lean_inc(x_79); lean_inc(x_78); -x_80 = l_Lean_getStructureFields(x_78, x_79); -x_81 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); -x_82 = l_Lean_Syntax_mkSynthetic(x_81); -x_83 = lean_box(0); -x_84 = lean_array_get_size(x_80); -x_85 = lean_unsigned_to_nat(0u); -x_86 = lean_nat_dec_lt(x_85, x_84); -if (x_86 == 0) +lean_dec(x_9); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +lean_dec(x_78); +x_81 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); +lean_inc(x_81); +lean_inc(x_80); +x_82 = l_Lean_getStructureFields(x_80, x_81); +x_83 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +x_84 = l_Lean_Syntax_mkSynthetic(x_83); +x_85 = lean_box(0); +x_86 = lean_array_get_size(x_82); +x_87 = lean_unsigned_to_nat(0u); +x_88 = lean_nat_dec_lt(x_87, x_86); +if (x_88 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_86); lean_dec(x_84); lean_dec(x_82); +lean_dec(x_81); lean_dec(x_80); -lean_dec(x_79); -lean_dec(x_78); 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_87 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; -x_88 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, 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_77); -return x_89; +x_89 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; +x_90 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_79); +return x_91; } 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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_90 = lean_ctor_get(x_6, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_6, 1); -lean_inc(x_91); -x_92 = lean_ctor_get(x_6, 2); +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; uint8_t x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_92 = lean_ctor_get(x_6, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_6, 3); +x_93 = lean_ctor_get(x_6, 1); lean_inc(x_93); -x_94 = lean_ctor_get(x_6, 4); +x_94 = lean_ctor_get(x_6, 2); lean_inc(x_94); -x_95 = lean_ctor_get(x_6, 5); +x_95 = lean_ctor_get(x_6, 3); lean_inc(x_95); -x_96 = lean_ctor_get(x_6, 6); +x_96 = lean_ctor_get(x_6, 4); lean_inc(x_96); -x_97 = lean_ctor_get(x_6, 7); +x_97 = lean_ctor_get(x_6, 5); lean_inc(x_97); -x_98 = lean_ctor_get(x_6, 8); +x_98 = lean_ctor_get(x_6, 6); lean_inc(x_98); -x_99 = lean_ctor_get(x_6, 9); +x_99 = lean_ctor_get(x_6, 7); lean_inc(x_99); -x_100 = lean_ctor_get(x_6, 10); +x_100 = lean_ctor_get(x_6, 8); lean_inc(x_100); -x_101 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_101 = lean_ctor_get(x_6, 9); +lean_inc(x_101); +x_102 = lean_ctor_get(x_6, 10); +lean_inc(x_102); +x_103 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_104 = lean_ctor_get(x_6, 11); +lean_inc(x_104); +x_105 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); @@ -18095,111 +18129,114 @@ if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 8); lean_ctor_release(x_6, 9); lean_ctor_release(x_6, 10); - x_102 = x_6; + lean_ctor_release(x_6, 11); + x_106 = x_6; } else { lean_dec_ref(x_6); - x_102 = lean_box(0); + x_106 = lean_box(0); } -x_103 = l_Lean_replaceRef(x_82, x_95); -lean_dec(x_95); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 11, 1); +x_107 = l_Lean_replaceRef(x_84, x_97); +lean_dec(x_97); +if (lean_is_scalar(x_106)) { + x_108 = lean_alloc_ctor(0, 12, 2); } else { - x_104 = x_102; + x_108 = x_106; } -lean_ctor_set(x_104, 0, x_90); -lean_ctor_set(x_104, 1, x_91); -lean_ctor_set(x_104, 2, x_92); -lean_ctor_set(x_104, 3, x_93); -lean_ctor_set(x_104, 4, x_94); -lean_ctor_set(x_104, 5, x_103); -lean_ctor_set(x_104, 6, x_96); -lean_ctor_set(x_104, 7, x_97); -lean_ctor_set(x_104, 8, x_98); -lean_ctor_set(x_104, 9, x_99); -lean_ctor_set(x_104, 10, x_100); -lean_ctor_set_uint8(x_104, sizeof(void*)*11, x_101); -x_105 = lean_nat_dec_le(x_84, x_84); -if (x_105 == 0) +lean_ctor_set(x_108, 0, x_92); +lean_ctor_set(x_108, 1, x_93); +lean_ctor_set(x_108, 2, x_94); +lean_ctor_set(x_108, 3, x_95); +lean_ctor_set(x_108, 4, x_96); +lean_ctor_set(x_108, 5, x_107); +lean_ctor_set(x_108, 6, x_98); +lean_ctor_set(x_108, 7, x_99); +lean_ctor_set(x_108, 8, x_100); +lean_ctor_set(x_108, 9, x_101); +lean_ctor_set(x_108, 10, x_102); +lean_ctor_set(x_108, 11, x_104); +lean_ctor_set_uint8(x_108, sizeof(void*)*12, x_103); +lean_ctor_set_uint8(x_108, sizeof(void*)*12 + 1, x_105); +x_109 = lean_nat_dec_le(x_86, x_86); +if (x_109 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_104); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_108); +lean_dec(x_86); lean_dec(x_84); lean_dec(x_82); +lean_dec(x_81); lean_dec(x_80); -lean_dec(x_79); -lean_dec(x_78); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_106 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; -x_107 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_106); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_77); -return x_108; +x_110 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___closed__1; +x_111 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_79); +return x_112; } else { -size_t x_109; size_t x_110; lean_object* x_111; -x_109 = 0; -x_110 = lean_usize_of_nat(x_84); -lean_dec(x_84); -x_111 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4(x_1, x_78, x_79, x_82, x_80, x_109, x_110, x_83, x_2, x_3, x_4, x_5, x_104, x_7, x_77); -lean_dec(x_80); -if (lean_obj_tag(x_111) == 0) +size_t x_113; size_t x_114; lean_object* x_115; +x_113 = 0; +x_114 = lean_usize_of_nat(x_86); +lean_dec(x_86); +x_115 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4(x_1, x_80, x_81, x_84, x_82, x_113, x_114, x_85, x_2, x_3, x_4, x_5, x_108, x_7, x_79); +lean_dec(x_82); +if (lean_obj_tag(x_115) == 0) { -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_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; +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_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; } else { - lean_dec_ref(x_111); - x_114 = lean_box(0); + lean_dec_ref(x_115); + x_118 = lean_box(0); } -x_115 = l_List_reverse___rarg(x_112); -x_116 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_115); -if (lean_is_scalar(x_114)) { - x_117 = lean_alloc_ctor(0, 2, 0); +x_119 = l_List_reverse___rarg(x_116); +x_120 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_119); +if (lean_is_scalar(x_118)) { + x_121 = lean_alloc_ctor(0, 2, 0); } else { - x_117 = x_114; + x_121 = x_118; } -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_113); -return x_117; -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec(x_1); -x_118 = lean_ctor_get(x_111, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_111, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_120 = x_111; -} else { - lean_dec_ref(x_111); - x_120 = lean_box(0); -} -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); -} else { - x_121 = x_120; -} -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_117); return x_121; } +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_1); +x_122 = lean_ctor_get(x_115, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_115, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_124 = x_115; +} else { + lean_dec_ref(x_115); + x_124 = lean_box(0); +} +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); +return x_125; +} } } } @@ -19352,9 +19389,13 @@ if (x_19 == 0) { lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_14, 0); -x_21 = l_Lean_Exception_isRuntime(x_20); +x_21 = l_Lean_Exception_isInterrupt(x_20); if (x_21 == 0) { +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_20); +if (x_22 == 0) +{ lean_dec(x_20); lean_ctor_set_tag(x_14, 0); lean_ctor_set(x_14, 0, x_13); @@ -19367,29 +19408,47 @@ return x_14; } else { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_14); -x_24 = l_Lean_Exception_isRuntime(x_22); -if (x_24 == 0) -{ -lean_object* x_25; -lean_dec(x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_13); -lean_ctor_set(x_25, 1, x_23); -return x_25; +return x_14; +} } else { -lean_object* x_26; -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_22); -lean_ctor_set(x_26, 1, x_23); -return x_26; +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_25 = l_Lean_Exception_isInterrupt(x_23); +if (x_25 == 0) +{ +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_13); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +else +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_24); +return x_28; +} +} +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_24); +return x_29; } } } @@ -19512,7 +19571,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -19524,7 +19583,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -19537,29 +19599,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -20659,7 +20723,7 @@ x_252 = 3; x_253 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_250, x_252); if (x_253 == 0) { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; x_254 = lean_ctor_get(x_2, 0); lean_inc(x_254); lean_dec(x_2); @@ -20689,450 +20753,460 @@ x_266 = lean_ctor_get(x_16, 9); lean_inc(x_266); x_267 = lean_ctor_get(x_16, 10); lean_inc(x_267); -x_268 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_269 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_269, 0, x_258); -lean_ctor_set(x_269, 1, x_259); -lean_ctor_set(x_269, 2, x_260); -lean_ctor_set(x_269, 3, x_261); -lean_ctor_set(x_269, 4, x_262); -lean_ctor_set(x_269, 5, x_257); -lean_ctor_set(x_269, 6, x_263); -lean_ctor_set(x_269, 7, x_264); -lean_ctor_set(x_269, 8, x_265); -lean_ctor_set(x_269, 9, x_266); -lean_ctor_set(x_269, 10, x_267); -lean_ctor_set_uint8(x_269, sizeof(void*)*11, x_268); -x_270 = 0; -x_271 = lean_box(0); +x_268 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_269 = lean_ctor_get(x_16, 11); +lean_inc(x_269); +x_270 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_271 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_271, 0, x_258); +lean_ctor_set(x_271, 1, x_259); +lean_ctor_set(x_271, 2, x_260); +lean_ctor_set(x_271, 3, x_261); +lean_ctor_set(x_271, 4, x_262); +lean_ctor_set(x_271, 5, x_257); +lean_ctor_set(x_271, 6, x_263); +lean_ctor_set(x_271, 7, x_264); +lean_ctor_set(x_271, 8, x_265); +lean_ctor_set(x_271, 9, x_266); +lean_ctor_set(x_271, 10, x_267); +lean_ctor_set(x_271, 11, x_269); +lean_ctor_set_uint8(x_271, sizeof(void*)*12, x_268); +lean_ctor_set_uint8(x_271, sizeof(void*)*12 + 1, x_270); +x_272 = 0; +x_273 = lean_box(0); lean_inc(x_14); -x_272 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_255, x_270, x_271, x_14, x_15, x_269, x_17, x_18); -lean_dec(x_269); -x_273 = !lean_is_exclusive(x_272); -if (x_273 == 0) +x_274 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_255, x_272, x_273, x_14, x_15, x_271, x_17, x_18); +lean_dec(x_271); +x_275 = !lean_is_exclusive(x_274); +if (x_275 == 0) { -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; uint8_t x_283; -x_274 = lean_ctor_get(x_272, 0); -x_275 = lean_ctor_get(x_272, 1); -x_276 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_274); -x_277 = lean_ctor_get(x_14, 1); -lean_inc(x_277); +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; uint8_t x_285; +x_276 = lean_ctor_get(x_274, 0); +x_277 = lean_ctor_get(x_274, 1); +x_278 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_276); +x_279 = lean_ctor_get(x_14, 1); +lean_inc(x_279); lean_inc(x_3); -x_278 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_276); -x_279 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_279, 0, x_278); -lean_ctor_set(x_279, 1, x_3); -lean_ctor_set(x_279, 2, x_277); -lean_ctor_set(x_279, 3, x_276); -lean_ctor_set(x_279, 4, x_5); -x_280 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_280, 0, x_279); -x_281 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -lean_ctor_set_tag(x_272, 1); -lean_ctor_set(x_272, 1, x_281); -lean_ctor_set(x_272, 0, x_280); -x_282 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_272, x_12, x_13, x_14, x_15, x_16, x_17, x_275); +x_280 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_278); +x_281 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_3); +lean_ctor_set(x_281, 2, x_279); +lean_ctor_set(x_281, 3, x_278); +lean_ctor_set(x_281, 4, x_5); +x_282 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_282, 0, x_281); +x_283 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +lean_ctor_set_tag(x_274, 1); +lean_ctor_set(x_274, 1, x_283); +lean_ctor_set(x_274, 0, x_282); +x_284 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_274, x_12, x_13, x_14, x_15, x_16, x_17, x_277); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) +x_285 = !lean_is_exclusive(x_284); +if (x_285 == 0) { -lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_284 = lean_ctor_get(x_282, 0); -lean_dec(x_284); -lean_inc(x_276); -x_285 = l_Lean_Expr_app___override(x_6, x_276); -x_286 = lean_expr_instantiate1(x_249, x_276); +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_286 = lean_ctor_get(x_284, 0); +lean_dec(x_286); +lean_inc(x_278); +x_287 = l_Lean_Expr_app___override(x_6, x_278); +x_288 = lean_expr_instantiate1(x_249, x_278); lean_dec(x_249); -x_287 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_287, 0, x_276); -x_288 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_288, 0, x_254); -lean_ctor_set(x_288, 1, x_7); -lean_ctor_set(x_288, 2, x_19); -lean_ctor_set(x_288, 3, x_287); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_8); -x_290 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_9); -x_291 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_291, 0, x_286); -lean_ctor_set(x_291, 1, x_290); +x_289 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_289, 0, x_278); +x_290 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_290, 0, x_254); +lean_ctor_set(x_290, 1, x_7); +lean_ctor_set(x_290, 2, x_19); +lean_ctor_set(x_290, 3, x_289); +x_291 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_8); x_292 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_292, 0, x_285); -lean_ctor_set(x_292, 1, x_291); -lean_ctor_set(x_282, 0, x_292); -return x_282; +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_9); +x_293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_293, 0, x_288); +lean_ctor_set(x_293, 1, x_292); +x_294 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_294, 0, x_287); +lean_ctor_set(x_294, 1, x_293); +lean_ctor_set(x_284, 0, x_294); +return x_284; } 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; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_293 = lean_ctor_get(x_282, 1); -lean_inc(x_293); -lean_dec(x_282); -lean_inc(x_276); -x_294 = l_Lean_Expr_app___override(x_6, x_276); -x_295 = lean_expr_instantiate1(x_249, x_276); +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_295 = lean_ctor_get(x_284, 1); +lean_inc(x_295); +lean_dec(x_284); +lean_inc(x_278); +x_296 = l_Lean_Expr_app___override(x_6, x_278); +x_297 = lean_expr_instantiate1(x_249, x_278); lean_dec(x_249); -x_296 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_296, 0, x_276); -x_297 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_297, 0, x_254); -lean_ctor_set(x_297, 1, x_7); -lean_ctor_set(x_297, 2, x_19); -lean_ctor_set(x_297, 3, x_296); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_8); -x_299 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_299, 0, x_298); -lean_ctor_set(x_299, 1, x_9); -x_300 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_300, 0, x_295); -lean_ctor_set(x_300, 1, x_299); +x_298 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_298, 0, x_278); +x_299 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_299, 0, x_254); +lean_ctor_set(x_299, 1, x_7); +lean_ctor_set(x_299, 2, x_19); +lean_ctor_set(x_299, 3, x_298); +x_300 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_300, 0, x_299); +lean_ctor_set(x_300, 1, x_8); x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_294); -lean_ctor_set(x_301, 1, x_300); +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_9); x_302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_293); -return x_302; +lean_ctor_set(x_302, 0, x_297); +lean_ctor_set(x_302, 1, x_301); +x_303 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_303, 0, x_296); +lean_ctor_set(x_303, 1, x_302); +x_304 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_295); +return x_304; } } else { -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; 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; lean_object* x_323; -x_303 = lean_ctor_get(x_272, 0); -x_304 = lean_ctor_get(x_272, 1); -lean_inc(x_304); -lean_inc(x_303); -lean_dec(x_272); -x_305 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_303); -x_306 = lean_ctor_get(x_14, 1); +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; lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_305 = lean_ctor_get(x_274, 0); +x_306 = lean_ctor_get(x_274, 1); lean_inc(x_306); -lean_inc(x_3); -x_307 = l_Lean_Name_append(x_4, x_3); lean_inc(x_305); -x_308 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_3); -lean_ctor_set(x_308, 2, x_306); -lean_ctor_set(x_308, 3, x_305); -lean_ctor_set(x_308, 4, x_5); -x_309 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_309, 0, x_308); -x_310 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_311 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_311, 0, x_309); -lean_ctor_set(x_311, 1, x_310); -x_312 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_311, x_12, x_13, x_14, x_15, x_16, x_17, x_304); +lean_dec(x_274); +x_307 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_305); +x_308 = lean_ctor_get(x_14, 1); +lean_inc(x_308); +lean_inc(x_3); +x_309 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_307); +x_310 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_310, 0, x_309); +lean_ctor_set(x_310, 1, x_3); +lean_ctor_set(x_310, 2, x_308); +lean_ctor_set(x_310, 3, x_307); +lean_ctor_set(x_310, 4, x_5); +x_311 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_311, 0, x_310); +x_312 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_313 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_313, 0, x_311); +lean_ctor_set(x_313, 1, x_312); +x_314 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_313, x_12, x_13, x_14, x_15, x_16, x_17, x_306); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_313 = lean_ctor_get(x_312, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_314 = x_312; +x_315 = lean_ctor_get(x_314, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_316 = x_314; } else { - lean_dec_ref(x_312); - x_314 = lean_box(0); + lean_dec_ref(x_314); + x_316 = lean_box(0); } -lean_inc(x_305); -x_315 = l_Lean_Expr_app___override(x_6, x_305); -x_316 = lean_expr_instantiate1(x_249, x_305); +lean_inc(x_307); +x_317 = l_Lean_Expr_app___override(x_6, x_307); +x_318 = lean_expr_instantiate1(x_249, x_307); lean_dec(x_249); -x_317 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_317, 0, x_305); -x_318 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_318, 0, x_254); -lean_ctor_set(x_318, 1, x_7); -lean_ctor_set(x_318, 2, x_19); -lean_ctor_set(x_318, 3, x_317); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_8); -x_320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_9); -x_321 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_321, 0, x_316); -lean_ctor_set(x_321, 1, x_320); +x_319 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_319, 0, x_307); +x_320 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_320, 0, x_254); +lean_ctor_set(x_320, 1, x_7); +lean_ctor_set(x_320, 2, x_19); +lean_ctor_set(x_320, 3, x_319); +x_321 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_321, 0, x_320); +lean_ctor_set(x_321, 1, x_8); x_322 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_322, 0, x_315); -lean_ctor_set(x_322, 1, x_321); -if (lean_is_scalar(x_314)) { - x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_322, 0, x_321); +lean_ctor_set(x_322, 1, x_9); +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_318); +lean_ctor_set(x_323, 1, x_322); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_317); +lean_ctor_set(x_324, 1, x_323); +if (lean_is_scalar(x_316)) { + x_325 = lean_alloc_ctor(0, 2, 0); } else { - x_323 = x_314; + x_325 = x_316; } -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_313); -return x_323; +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_315); +return x_325; } } else { -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; uint8_t x_338; lean_object* x_339; uint8_t x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_324 = lean_ctor_get(x_2, 0); -lean_inc(x_324); -lean_dec(x_2); -x_325 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_325, 0, x_248); -x_326 = lean_ctor_get(x_16, 5); +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; lean_object* x_339; uint8_t x_340; lean_object* x_341; uint8_t x_342; lean_object* x_343; uint8_t x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; +x_326 = lean_ctor_get(x_2, 0); lean_inc(x_326); -x_327 = l_Lean_replaceRef(x_324, x_326); -lean_dec(x_326); -x_328 = lean_ctor_get(x_16, 0); +lean_dec(x_2); +x_327 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_327, 0, x_248); +x_328 = lean_ctor_get(x_16, 5); lean_inc(x_328); -x_329 = lean_ctor_get(x_16, 1); -lean_inc(x_329); -x_330 = lean_ctor_get(x_16, 2); +x_329 = l_Lean_replaceRef(x_326, x_328); +lean_dec(x_328); +x_330 = lean_ctor_get(x_16, 0); lean_inc(x_330); -x_331 = lean_ctor_get(x_16, 3); +x_331 = lean_ctor_get(x_16, 1); lean_inc(x_331); -x_332 = lean_ctor_get(x_16, 4); +x_332 = lean_ctor_get(x_16, 2); lean_inc(x_332); -x_333 = lean_ctor_get(x_16, 6); +x_333 = lean_ctor_get(x_16, 3); lean_inc(x_333); -x_334 = lean_ctor_get(x_16, 7); +x_334 = lean_ctor_get(x_16, 4); lean_inc(x_334); -x_335 = lean_ctor_get(x_16, 8); +x_335 = lean_ctor_get(x_16, 6); lean_inc(x_335); -x_336 = lean_ctor_get(x_16, 9); +x_336 = lean_ctor_get(x_16, 7); lean_inc(x_336); -x_337 = lean_ctor_get(x_16, 10); +x_337 = lean_ctor_get(x_16, 8); lean_inc(x_337); -x_338 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_339 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_339, 0, x_328); -lean_ctor_set(x_339, 1, x_329); -lean_ctor_set(x_339, 2, x_330); -lean_ctor_set(x_339, 3, x_331); -lean_ctor_set(x_339, 4, x_332); -lean_ctor_set(x_339, 5, x_327); -lean_ctor_set(x_339, 6, x_333); -lean_ctor_set(x_339, 7, x_334); -lean_ctor_set(x_339, 8, x_335); -lean_ctor_set(x_339, 9, x_336); -lean_ctor_set(x_339, 10, x_337); -lean_ctor_set_uint8(x_339, sizeof(void*)*11, x_338); -x_340 = 1; -x_341 = lean_box(0); +x_338 = lean_ctor_get(x_16, 9); +lean_inc(x_338); +x_339 = lean_ctor_get(x_16, 10); +lean_inc(x_339); +x_340 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_341 = lean_ctor_get(x_16, 11); +lean_inc(x_341); +x_342 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_343 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_343, 0, x_330); +lean_ctor_set(x_343, 1, x_331); +lean_ctor_set(x_343, 2, x_332); +lean_ctor_set(x_343, 3, x_333); +lean_ctor_set(x_343, 4, x_334); +lean_ctor_set(x_343, 5, x_329); +lean_ctor_set(x_343, 6, x_335); +lean_ctor_set(x_343, 7, x_336); +lean_ctor_set(x_343, 8, x_337); +lean_ctor_set(x_343, 9, x_338); +lean_ctor_set(x_343, 10, x_339); +lean_ctor_set(x_343, 11, x_341); +lean_ctor_set_uint8(x_343, sizeof(void*)*12, x_340); +lean_ctor_set_uint8(x_343, sizeof(void*)*12 + 1, x_342); +x_344 = 1; +x_345 = lean_box(0); lean_inc(x_14); -x_342 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_325, x_340, x_341, x_14, x_15, x_339, x_17, x_18); -lean_dec(x_339); -x_343 = !lean_is_exclusive(x_342); -if (x_343 == 0) +x_346 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_327, x_344, x_345, x_14, x_15, x_343, x_17, x_18); +lean_dec(x_343); +x_347 = !lean_is_exclusive(x_346); +if (x_347 == 0) { -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_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; -x_344 = lean_ctor_get(x_342, 0); -x_345 = lean_ctor_get(x_342, 1); -lean_inc(x_344); -x_346 = l_Lean_Expr_mvarId_x21(x_344); -x_347 = lean_array_push(x_9, x_346); -x_348 = lean_ctor_get(x_14, 1); +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; +x_348 = lean_ctor_get(x_346, 0); +x_349 = lean_ctor_get(x_346, 1); lean_inc(x_348); +x_350 = l_Lean_Expr_mvarId_x21(x_348); +x_351 = lean_array_push(x_9, x_350); +x_352 = lean_ctor_get(x_14, 1); +lean_inc(x_352); lean_inc(x_3); -x_349 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_344); -x_350 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_3); -lean_ctor_set(x_350, 2, x_348); -lean_ctor_set(x_350, 3, x_344); -lean_ctor_set(x_350, 4, x_5); -x_351 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_351, 0, x_350); -x_352 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -lean_ctor_set_tag(x_342, 1); -lean_ctor_set(x_342, 1, x_352); -lean_ctor_set(x_342, 0, x_351); -x_353 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_342, x_12, x_13, x_14, x_15, x_16, x_17, x_345); +x_353 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_348); +x_354 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_3); +lean_ctor_set(x_354, 2, x_352); +lean_ctor_set(x_354, 3, x_348); +lean_ctor_set(x_354, 4, x_5); +x_355 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_355, 0, x_354); +x_356 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +lean_ctor_set_tag(x_346, 1); +lean_ctor_set(x_346, 1, x_356); +lean_ctor_set(x_346, 0, x_355); +x_357 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_346, x_12, x_13, x_14, x_15, x_16, x_17, x_349); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_354 = !lean_is_exclusive(x_353); -if (x_354 == 0) +x_358 = !lean_is_exclusive(x_357); +if (x_358 == 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; -x_355 = lean_ctor_get(x_353, 0); -lean_dec(x_355); -lean_inc(x_344); -x_356 = l_Lean_Expr_app___override(x_6, x_344); -x_357 = lean_expr_instantiate1(x_249, x_344); +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; +x_359 = lean_ctor_get(x_357, 0); +lean_dec(x_359); +lean_inc(x_348); +x_360 = l_Lean_Expr_app___override(x_6, x_348); +x_361 = lean_expr_instantiate1(x_249, x_348); lean_dec(x_249); -x_358 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_358, 0, x_344); -x_359 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_359, 0, x_324); -lean_ctor_set(x_359, 1, x_7); -lean_ctor_set(x_359, 2, x_19); -lean_ctor_set(x_359, 3, x_358); -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_8); -x_361 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_361, 0, x_360); -lean_ctor_set(x_361, 1, x_347); -x_362 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_362, 0, x_357); -lean_ctor_set(x_362, 1, x_361); -x_363 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_363, 0, x_356); -lean_ctor_set(x_363, 1, x_362); -lean_ctor_set(x_353, 0, x_363); -return x_353; +x_362 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_362, 0, x_348); +x_363 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_363, 0, x_326); +lean_ctor_set(x_363, 1, x_7); +lean_ctor_set(x_363, 2, x_19); +lean_ctor_set(x_363, 3, x_362); +x_364 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_364, 0, x_363); +lean_ctor_set(x_364, 1, x_8); +x_365 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_365, 0, x_364); +lean_ctor_set(x_365, 1, x_351); +x_366 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_366, 0, x_361); +lean_ctor_set(x_366, 1, x_365); +x_367 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_367, 0, x_360); +lean_ctor_set(x_367, 1, x_366); +lean_ctor_set(x_357, 0, x_367); +return x_357; } else { -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; -x_364 = lean_ctor_get(x_353, 1); -lean_inc(x_364); -lean_dec(x_353); -lean_inc(x_344); -x_365 = l_Lean_Expr_app___override(x_6, x_344); -x_366 = lean_expr_instantiate1(x_249, x_344); +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; lean_object* x_377; +x_368 = lean_ctor_get(x_357, 1); +lean_inc(x_368); +lean_dec(x_357); +lean_inc(x_348); +x_369 = l_Lean_Expr_app___override(x_6, x_348); +x_370 = lean_expr_instantiate1(x_249, x_348); lean_dec(x_249); -x_367 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_367, 0, x_344); -x_368 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_368, 0, x_324); -lean_ctor_set(x_368, 1, x_7); -lean_ctor_set(x_368, 2, x_19); -lean_ctor_set(x_368, 3, x_367); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_8); -x_370 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_347); -x_371 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_371, 0, x_366); -lean_ctor_set(x_371, 1, x_370); -x_372 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_372, 0, x_365); -lean_ctor_set(x_372, 1, x_371); -x_373 = lean_alloc_ctor(0, 2, 0); +x_371 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_371, 0, x_348); +x_372 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_372, 0, x_326); +lean_ctor_set(x_372, 1, x_7); +lean_ctor_set(x_372, 2, x_19); +lean_ctor_set(x_372, 3, x_371); +x_373 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_373, 0, x_372); -lean_ctor_set(x_373, 1, x_364); -return x_373; +lean_ctor_set(x_373, 1, x_8); +x_374 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_351); +x_375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_375, 0, x_370); +lean_ctor_set(x_375, 1, x_374); +x_376 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_376, 0, x_369); +lean_ctor_set(x_376, 1, x_375); +x_377 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_377, 0, x_376); +lean_ctor_set(x_377, 1, x_368); +return x_377; } } else { -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 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_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; -x_374 = lean_ctor_get(x_342, 0); -x_375 = lean_ctor_get(x_342, 1); -lean_inc(x_375); -lean_inc(x_374); -lean_dec(x_342); -lean_inc(x_374); -x_376 = l_Lean_Expr_mvarId_x21(x_374); -x_377 = lean_array_push(x_9, x_376); -x_378 = lean_ctor_get(x_14, 1); +lean_object* x_378; lean_object* x_379; 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_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_object* x_399; +x_378 = lean_ctor_get(x_346, 0); +x_379 = lean_ctor_get(x_346, 1); +lean_inc(x_379); lean_inc(x_378); +lean_dec(x_346); +lean_inc(x_378); +x_380 = l_Lean_Expr_mvarId_x21(x_378); +x_381 = lean_array_push(x_9, x_380); +x_382 = lean_ctor_get(x_14, 1); +lean_inc(x_382); lean_inc(x_3); -x_379 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_374); -x_380 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_3); -lean_ctor_set(x_380, 2, x_378); -lean_ctor_set(x_380, 3, x_374); -lean_ctor_set(x_380, 4, x_5); -x_381 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_381, 0, x_380); -x_382 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_383 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_383, 0, x_381); -lean_ctor_set(x_383, 1, x_382); -x_384 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_383, x_12, x_13, x_14, x_15, x_16, x_17, x_375); +x_383 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_378); +x_384 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_384, 1, x_3); +lean_ctor_set(x_384, 2, x_382); +lean_ctor_set(x_384, 3, x_378); +lean_ctor_set(x_384, 4, x_5); +x_385 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_385, 0, x_384); +x_386 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +x_388 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_387, x_12, x_13, x_14, x_15, x_16, x_17, x_379); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_385 = lean_ctor_get(x_384, 1); -lean_inc(x_385); -if (lean_is_exclusive(x_384)) { - lean_ctor_release(x_384, 0); - lean_ctor_release(x_384, 1); - x_386 = x_384; +x_389 = lean_ctor_get(x_388, 1); +lean_inc(x_389); +if (lean_is_exclusive(x_388)) { + lean_ctor_release(x_388, 0); + lean_ctor_release(x_388, 1); + x_390 = x_388; } else { - lean_dec_ref(x_384); - x_386 = lean_box(0); + lean_dec_ref(x_388); + x_390 = lean_box(0); } -lean_inc(x_374); -x_387 = l_Lean_Expr_app___override(x_6, x_374); -x_388 = lean_expr_instantiate1(x_249, x_374); +lean_inc(x_378); +x_391 = l_Lean_Expr_app___override(x_6, x_378); +x_392 = lean_expr_instantiate1(x_249, x_378); lean_dec(x_249); -x_389 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_389, 0, x_374); -x_390 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_390, 0, x_324); -lean_ctor_set(x_390, 1, x_7); -lean_ctor_set(x_390, 2, x_19); -lean_ctor_set(x_390, 3, x_389); -x_391 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_391, 0, x_390); -lean_ctor_set(x_391, 1, x_8); -x_392 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_392, 0, x_391); -lean_ctor_set(x_392, 1, x_377); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_388); -lean_ctor_set(x_393, 1, x_392); -x_394 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_394, 0, x_387); -lean_ctor_set(x_394, 1, x_393); -if (lean_is_scalar(x_386)) { - x_395 = lean_alloc_ctor(0, 2, 0); -} else { - x_395 = x_386; -} +x_393 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_393, 0, x_378); +x_394 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_394, 0, x_326); +lean_ctor_set(x_394, 1, x_7); +lean_ctor_set(x_394, 2, x_19); +lean_ctor_set(x_394, 3, x_393); +x_395 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_395, 0, x_394); -lean_ctor_set(x_395, 1, x_385); -return x_395; +lean_ctor_set(x_395, 1, x_8); +x_396 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_396, 0, x_395); +lean_ctor_set(x_396, 1, x_381); +x_397 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_397, 0, x_392); +lean_ctor_set(x_397, 1, x_396); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_391); +lean_ctor_set(x_398, 1, x_397); +if (lean_is_scalar(x_390)) { + x_399 = lean_alloc_ctor(0, 2, 0); +} else { + x_399 = x_390; +} +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_389); +return x_399; } } } else { -uint8_t x_396; -x_396 = !lean_is_exclusive(x_251); -if (x_396 == 0) +uint8_t x_400; +x_400 = !lean_is_exclusive(x_251); +if (x_400 == 0) { -lean_object* x_397; -x_397 = lean_ctor_get(x_251, 0); -if (lean_obj_tag(x_397) == 4) +lean_object* x_401; +x_401 = lean_ctor_get(x_251, 0); +if (lean_obj_tag(x_401) == 4) { -lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -lean_dec(x_397); -x_399 = lean_ctor_get(x_16, 2); -lean_inc(x_399); -x_400 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_10, x_399, x_398); -lean_dec(x_399); -if (lean_obj_tag(x_400) == 0) +lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +lean_dec(x_401); +x_403 = lean_ctor_get(x_16, 2); +lean_inc(x_403); +x_404 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_10, x_403, x_402); +lean_dec(x_403); +if (lean_obj_tag(x_404) == 0) { -uint8_t x_401; +uint8_t x_405; lean_free_object(x_251); lean_dec(x_249); lean_dec(x_248); @@ -21144,29 +21218,12 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_401 = !lean_is_exclusive(x_400); -if (x_401 == 0) +x_405 = !lean_is_exclusive(x_404); +if (x_405 == 0) { -lean_object* x_402; lean_object* x_403; -lean_ctor_set_tag(x_400, 3); -x_402 = l_Lean_MessageData_ofFormat(x_400); -x_403 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_402, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -return x_403; -} -else -{ -lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_404 = lean_ctor_get(x_400, 0); -lean_inc(x_404); -lean_dec(x_400); -x_405 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_405, 0, x_404); -x_406 = l_Lean_MessageData_ofFormat(x_405); +lean_object* x_406; lean_object* x_407; +lean_ctor_set_tag(x_404, 3); +x_406 = l_Lean_MessageData_ofFormat(x_404); x_407 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_406, x_12, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_17); lean_dec(x_16); @@ -21175,312 +21232,180 @@ lean_dec(x_14); lean_dec(x_13); return x_407; } +else +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_408 = lean_ctor_get(x_404, 0); +lean_inc(x_408); +lean_dec(x_404); +x_409 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_409, 0, x_408); +x_410 = l_Lean_MessageData_ofFormat(x_409); +x_411 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_410, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +return x_411; +} } else { -uint8_t x_408; -x_408 = !lean_is_exclusive(x_400); -if (x_408 == 0) +uint8_t x_412; +x_412 = !lean_is_exclusive(x_404); +if (x_412 == 0) { -lean_object* x_409; lean_object* x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; -x_409 = lean_ctor_get(x_400, 0); -x_410 = lean_ctor_get(x_16, 5); -lean_inc(x_410); -x_411 = 0; -x_412 = l_Lean_SourceInfo_fromRef(x_410, x_411); -x_413 = lean_st_ref_get(x_17, x_18); -x_414 = !lean_is_exclusive(x_413); -if (x_414 == 0) +lean_object* x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; +x_413 = lean_ctor_get(x_404, 0); +x_414 = lean_ctor_get(x_16, 5); +lean_inc(x_414); +x_415 = 0; +x_416 = l_Lean_SourceInfo_fromRef(x_414, x_415); +x_417 = lean_st_ref_get(x_17, x_18); +x_418 = !lean_is_exclusive(x_417); +if (x_418 == 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; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; uint8_t x_428; lean_object* x_429; -x_415 = lean_ctor_get(x_413, 1); -x_416 = lean_ctor_get(x_413, 0); -lean_dec(x_416); -x_417 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; -lean_inc(x_412); -lean_ctor_set_tag(x_413, 2); -lean_ctor_set(x_413, 1, x_417); -lean_ctor_set(x_413, 0, x_412); -x_418 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; -x_419 = l_Lean_Syntax_node2(x_412, x_418, x_413, x_409); -x_420 = lean_unsigned_to_nat(0u); -x_421 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_420); -x_422 = lean_nat_sub(x_421, x_420); -lean_dec(x_421); -x_423 = lean_unsigned_to_nat(1u); -x_424 = lean_nat_sub(x_422, x_423); -lean_dec(x_422); -x_425 = l_Lean_Expr_getRevArg_x21(x_248, x_424); +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* 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; uint8_t x_432; lean_object* x_433; +x_419 = lean_ctor_get(x_417, 1); +x_420 = lean_ctor_get(x_417, 0); +lean_dec(x_420); +x_421 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; +lean_inc(x_416); +lean_ctor_set_tag(x_417, 2); +lean_ctor_set(x_417, 1, x_421); +lean_ctor_set(x_417, 0, x_416); +x_422 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; +x_423 = l_Lean_Syntax_node2(x_416, x_422, x_417, x_413); +x_424 = lean_unsigned_to_nat(0u); +x_425 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_424); +x_426 = lean_nat_sub(x_425, x_424); +lean_dec(x_425); +x_427 = lean_unsigned_to_nat(1u); +x_428 = lean_nat_sub(x_426, x_427); +lean_dec(x_426); +x_429 = l_Lean_Expr_getRevArg_x21(x_248, x_428); lean_dec(x_248); -x_426 = lean_expr_consume_type_annotations(x_425); -lean_ctor_set(x_251, 0, x_426); -x_427 = lean_box(0); -x_428 = 1; +x_430 = lean_expr_consume_type_annotations(x_429); +lean_ctor_set(x_251, 0, x_430); +x_431 = lean_box(0); +x_432 = 1; lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_429 = l_Lean_Elab_Term_elabTermEnsuringType(x_419, x_251, x_428, x_428, x_427, x_12, x_13, x_14, x_15, x_16, x_17, x_415); -if (lean_obj_tag(x_429) == 0) +x_433 = l_Lean_Elab_Term_elabTermEnsuringType(x_423, x_251, x_432, x_432, x_431, x_12, x_13, x_14, x_15, x_16, x_17, x_419); +if (lean_obj_tag(x_433) == 0) { -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; lean_object* x_437; uint8_t x_438; -x_430 = lean_ctor_get(x_429, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_429, 1); -lean_inc(x_431); -lean_dec(x_429); -x_432 = lean_ctor_get(x_14, 1); -lean_inc(x_432); +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; lean_object* x_441; uint8_t x_442; +x_434 = lean_ctor_get(x_433, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_433, 1); +lean_inc(x_435); +lean_dec(x_433); +x_436 = lean_ctor_get(x_14, 1); +lean_inc(x_436); lean_inc(x_3); -x_433 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_430); -x_434 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_3); -lean_ctor_set(x_434, 2, x_432); -lean_ctor_set(x_434, 3, x_430); -lean_ctor_set(x_434, 4, x_5); -lean_ctor_set_tag(x_400, 5); -lean_ctor_set(x_400, 0, x_434); -x_435 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_436 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_436, 0, x_400); -lean_ctor_set(x_436, 1, x_435); -x_437 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_436, x_12, x_13, x_14, x_15, x_16, x_17, x_431); +x_437 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_434); +x_438 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_438, 0, x_437); +lean_ctor_set(x_438, 1, x_3); +lean_ctor_set(x_438, 2, x_436); +lean_ctor_set(x_438, 3, x_434); +lean_ctor_set(x_438, 4, x_5); +lean_ctor_set_tag(x_404, 5); +lean_ctor_set(x_404, 0, x_438); +x_439 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_440 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_440, 0, x_404); +lean_ctor_set(x_440, 1, x_439); +x_441 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_440, x_12, x_13, x_14, x_15, x_16, x_17, x_435); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_438 = !lean_is_exclusive(x_437); -if (x_438 == 0) +x_442 = !lean_is_exclusive(x_441); +if (x_442 == 0) { -lean_object* x_439; lean_object* x_440; lean_object* x_441; 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; -x_439 = lean_ctor_get(x_437, 0); -lean_dec(x_439); -lean_inc(x_430); -x_440 = l_Lean_Expr_app___override(x_6, x_430); -x_441 = lean_expr_instantiate1(x_249, x_430); +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_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_443 = lean_ctor_get(x_441, 0); +lean_dec(x_443); +lean_inc(x_434); +x_444 = l_Lean_Expr_app___override(x_6, x_434); +x_445 = lean_expr_instantiate1(x_249, x_434); lean_dec(x_249); -x_442 = lean_ctor_get(x_2, 0); -lean_inc(x_442); +x_446 = lean_ctor_get(x_2, 0); +lean_inc(x_446); lean_dec(x_2); -x_443 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_443, 0, x_430); -x_444 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_444, 0, x_442); -lean_ctor_set(x_444, 1, x_7); -lean_ctor_set(x_444, 2, x_19); -lean_ctor_set(x_444, 3, x_443); -x_445 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_8); -x_446 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_446, 0, x_445); -lean_ctor_set(x_446, 1, x_9); -x_447 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_447, 0, x_441); -lean_ctor_set(x_447, 1, x_446); -x_448 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_448, 0, x_440); -lean_ctor_set(x_448, 1, x_447); -lean_ctor_set(x_437, 0, x_448); -return x_437; +x_447 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_447, 0, x_434); +x_448 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_448, 0, x_446); +lean_ctor_set(x_448, 1, x_7); +lean_ctor_set(x_448, 2, x_19); +lean_ctor_set(x_448, 3, x_447); +x_449 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_449, 0, x_448); +lean_ctor_set(x_449, 1, x_8); +x_450 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_450, 0, x_449); +lean_ctor_set(x_450, 1, x_9); +x_451 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_451, 0, x_445); +lean_ctor_set(x_451, 1, x_450); +x_452 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_452, 0, x_444); +lean_ctor_set(x_452, 1, x_451); +lean_ctor_set(x_441, 0, x_452); +return x_441; } else { -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; -x_449 = lean_ctor_get(x_437, 1); -lean_inc(x_449); -lean_dec(x_437); -lean_inc(x_430); -x_450 = l_Lean_Expr_app___override(x_6, x_430); -x_451 = lean_expr_instantiate1(x_249, x_430); +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; lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_453 = lean_ctor_get(x_441, 1); +lean_inc(x_453); +lean_dec(x_441); +lean_inc(x_434); +x_454 = l_Lean_Expr_app___override(x_6, x_434); +x_455 = lean_expr_instantiate1(x_249, x_434); lean_dec(x_249); -x_452 = lean_ctor_get(x_2, 0); -lean_inc(x_452); +x_456 = lean_ctor_get(x_2, 0); +lean_inc(x_456); lean_dec(x_2); -x_453 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_453, 0, x_430); -x_454 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_454, 0, x_452); -lean_ctor_set(x_454, 1, x_7); -lean_ctor_set(x_454, 2, x_19); -lean_ctor_set(x_454, 3, x_453); -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_455, 1, x_8); -x_456 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_456, 0, x_455); -lean_ctor_set(x_456, 1, x_9); -x_457 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_457, 0, x_451); -lean_ctor_set(x_457, 1, x_456); -x_458 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_458, 0, x_450); -lean_ctor_set(x_458, 1, x_457); -x_459 = lean_alloc_ctor(0, 2, 0); +x_457 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_457, 0, x_434); +x_458 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_458, 0, x_456); +lean_ctor_set(x_458, 1, x_7); +lean_ctor_set(x_458, 2, x_19); +lean_ctor_set(x_458, 3, x_457); +x_459 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_449); -return x_459; -} -} -else -{ -uint8_t x_460; -lean_free_object(x_400); -lean_dec(x_249); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_460 = !lean_is_exclusive(x_429); -if (x_460 == 0) -{ -return x_429; -} -else -{ -lean_object* x_461; lean_object* x_462; lean_object* x_463; -x_461 = lean_ctor_get(x_429, 0); -x_462 = lean_ctor_get(x_429, 1); -lean_inc(x_462); -lean_inc(x_461); -lean_dec(x_429); -x_463 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_463, 0, x_461); -lean_ctor_set(x_463, 1, x_462); +lean_ctor_set(x_459, 1, x_8); +x_460 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_460, 0, x_459); +lean_ctor_set(x_460, 1, x_9); +x_461 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_461, 0, x_455); +lean_ctor_set(x_461, 1, x_460); +x_462 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_462, 0, x_454); +lean_ctor_set(x_462, 1, x_461); +x_463 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_463, 0, x_462); +lean_ctor_set(x_463, 1, x_453); return x_463; } } -} else { -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_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; uint8_t x_477; lean_object* x_478; -x_464 = lean_ctor_get(x_413, 1); -lean_inc(x_464); -lean_dec(x_413); -x_465 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; -lean_inc(x_412); -x_466 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_466, 0, x_412); -lean_ctor_set(x_466, 1, x_465); -x_467 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; -x_468 = l_Lean_Syntax_node2(x_412, x_467, x_466, x_409); -x_469 = lean_unsigned_to_nat(0u); -x_470 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_469); -x_471 = lean_nat_sub(x_470, x_469); -lean_dec(x_470); -x_472 = lean_unsigned_to_nat(1u); -x_473 = lean_nat_sub(x_471, x_472); -lean_dec(x_471); -x_474 = l_Lean_Expr_getRevArg_x21(x_248, x_473); -lean_dec(x_248); -x_475 = lean_expr_consume_type_annotations(x_474); -lean_ctor_set(x_251, 0, x_475); -x_476 = lean_box(0); -x_477 = 1; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_478 = l_Lean_Elab_Term_elabTermEnsuringType(x_468, x_251, x_477, x_477, x_476, x_12, x_13, x_14, x_15, x_16, x_17, x_464); -if (lean_obj_tag(x_478) == 0) -{ -lean_object* x_479; 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; 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; -x_479 = lean_ctor_get(x_478, 0); -lean_inc(x_479); -x_480 = lean_ctor_get(x_478, 1); -lean_inc(x_480); -lean_dec(x_478); -x_481 = lean_ctor_get(x_14, 1); -lean_inc(x_481); -lean_inc(x_3); -x_482 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_479); -x_483 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_483, 0, x_482); -lean_ctor_set(x_483, 1, x_3); -lean_ctor_set(x_483, 2, x_481); -lean_ctor_set(x_483, 3, x_479); -lean_ctor_set(x_483, 4, x_5); -lean_ctor_set_tag(x_400, 5); -lean_ctor_set(x_400, 0, x_483); -x_484 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_400); -lean_ctor_set(x_485, 1, x_484); -x_486 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_485, x_12, x_13, x_14, x_15, x_16, x_17, x_480); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_487 = lean_ctor_get(x_486, 1); -lean_inc(x_487); -if (lean_is_exclusive(x_486)) { - lean_ctor_release(x_486, 0); - lean_ctor_release(x_486, 1); - x_488 = x_486; -} else { - lean_dec_ref(x_486); - x_488 = lean_box(0); -} -lean_inc(x_479); -x_489 = l_Lean_Expr_app___override(x_6, x_479); -x_490 = lean_expr_instantiate1(x_249, x_479); -lean_dec(x_249); -x_491 = lean_ctor_get(x_2, 0); -lean_inc(x_491); -lean_dec(x_2); -x_492 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_492, 0, x_479); -x_493 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_493, 0, x_491); -lean_ctor_set(x_493, 1, x_7); -lean_ctor_set(x_493, 2, x_19); -lean_ctor_set(x_493, 3, x_492); -x_494 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_494, 0, x_493); -lean_ctor_set(x_494, 1, x_8); -x_495 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_495, 0, x_494); -lean_ctor_set(x_495, 1, x_9); -x_496 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_496, 0, x_490); -lean_ctor_set(x_496, 1, x_495); -x_497 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_497, 0, x_489); -lean_ctor_set(x_497, 1, x_496); -if (lean_is_scalar(x_488)) { - x_498 = lean_alloc_ctor(0, 2, 0); -} else { - x_498 = x_488; -} -lean_ctor_set(x_498, 0, x_497); -lean_ctor_set(x_498, 1, x_487); -return x_498; -} -else -{ -lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; -lean_free_object(x_400); +uint8_t x_464; +lean_free_object(x_404); lean_dec(x_249); lean_dec(x_17); lean_dec(x_16); @@ -21496,162 +21421,140 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_499 = lean_ctor_get(x_478, 0); -lean_inc(x_499); -x_500 = lean_ctor_get(x_478, 1); -lean_inc(x_500); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - x_501 = x_478; -} else { - lean_dec_ref(x_478); - x_501 = lean_box(0); +x_464 = !lean_is_exclusive(x_433); +if (x_464 == 0) +{ +return x_433; } -if (lean_is_scalar(x_501)) { - x_502 = lean_alloc_ctor(1, 2, 0); -} else { - x_502 = x_501; +else +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_465 = lean_ctor_get(x_433, 0); +x_466 = lean_ctor_get(x_433, 1); +lean_inc(x_466); +lean_inc(x_465); +lean_dec(x_433); +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_465); +lean_ctor_set(x_467, 1, x_466); +return x_467; } -lean_ctor_set(x_502, 0, x_499); -lean_ctor_set(x_502, 1, x_500); +} +} +else +{ +lean_object* x_468; 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; lean_object* x_480; uint8_t x_481; lean_object* x_482; +x_468 = lean_ctor_get(x_417, 1); +lean_inc(x_468); +lean_dec(x_417); +x_469 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; +lean_inc(x_416); +x_470 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_470, 0, x_416); +lean_ctor_set(x_470, 1, x_469); +x_471 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; +x_472 = l_Lean_Syntax_node2(x_416, x_471, x_470, x_413); +x_473 = lean_unsigned_to_nat(0u); +x_474 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_473); +x_475 = lean_nat_sub(x_474, x_473); +lean_dec(x_474); +x_476 = lean_unsigned_to_nat(1u); +x_477 = lean_nat_sub(x_475, x_476); +lean_dec(x_475); +x_478 = l_Lean_Expr_getRevArg_x21(x_248, x_477); +lean_dec(x_248); +x_479 = lean_expr_consume_type_annotations(x_478); +lean_ctor_set(x_251, 0, x_479); +x_480 = lean_box(0); +x_481 = 1; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_482 = l_Lean_Elab_Term_elabTermEnsuringType(x_472, x_251, x_481, x_481, x_480, x_12, x_13, x_14, x_15, x_16, x_17, x_468); +if (lean_obj_tag(x_482) == 0) +{ +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_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_483 = lean_ctor_get(x_482, 0); +lean_inc(x_483); +x_484 = lean_ctor_get(x_482, 1); +lean_inc(x_484); +lean_dec(x_482); +x_485 = lean_ctor_get(x_14, 1); +lean_inc(x_485); +lean_inc(x_3); +x_486 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_483); +x_487 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_487, 0, x_486); +lean_ctor_set(x_487, 1, x_3); +lean_ctor_set(x_487, 2, x_485); +lean_ctor_set(x_487, 3, x_483); +lean_ctor_set(x_487, 4, x_5); +lean_ctor_set_tag(x_404, 5); +lean_ctor_set(x_404, 0, x_487); +x_488 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_489 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_489, 0, x_404); +lean_ctor_set(x_489, 1, x_488); +x_490 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_489, x_12, x_13, x_14, x_15, x_16, x_17, x_484); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_491 = lean_ctor_get(x_490, 1); +lean_inc(x_491); +if (lean_is_exclusive(x_490)) { + lean_ctor_release(x_490, 0); + lean_ctor_release(x_490, 1); + x_492 = x_490; +} else { + lean_dec_ref(x_490); + x_492 = lean_box(0); +} +lean_inc(x_483); +x_493 = l_Lean_Expr_app___override(x_6, x_483); +x_494 = lean_expr_instantiate1(x_249, x_483); +lean_dec(x_249); +x_495 = lean_ctor_get(x_2, 0); +lean_inc(x_495); +lean_dec(x_2); +x_496 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_496, 0, x_483); +x_497 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_497, 0, x_495); +lean_ctor_set(x_497, 1, x_7); +lean_ctor_set(x_497, 2, x_19); +lean_ctor_set(x_497, 3, x_496); +x_498 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_498, 0, x_497); +lean_ctor_set(x_498, 1, x_8); +x_499 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_499, 0, x_498); +lean_ctor_set(x_499, 1, x_9); +x_500 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_500, 0, x_494); +lean_ctor_set(x_500, 1, x_499); +x_501 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_501, 0, x_493); +lean_ctor_set(x_501, 1, x_500); +if (lean_is_scalar(x_492)) { + x_502 = lean_alloc_ctor(0, 2, 0); +} else { + x_502 = x_492; +} +lean_ctor_set(x_502, 0, x_501); +lean_ctor_set(x_502, 1, x_491); return x_502; } -} -} else { -lean_object* x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 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; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; -x_503 = lean_ctor_get(x_400, 0); -lean_inc(x_503); -lean_dec(x_400); -x_504 = lean_ctor_get(x_16, 5); -lean_inc(x_504); -x_505 = 0; -x_506 = l_Lean_SourceInfo_fromRef(x_504, x_505); -x_507 = lean_st_ref_get(x_17, x_18); -x_508 = lean_ctor_get(x_507, 1); -lean_inc(x_508); -if (lean_is_exclusive(x_507)) { - lean_ctor_release(x_507, 0); - lean_ctor_release(x_507, 1); - x_509 = x_507; -} else { - lean_dec_ref(x_507); - x_509 = lean_box(0); -} -x_510 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; -lean_inc(x_506); -if (lean_is_scalar(x_509)) { - x_511 = lean_alloc_ctor(2, 2, 0); -} else { - x_511 = x_509; - lean_ctor_set_tag(x_511, 2); -} -lean_ctor_set(x_511, 0, x_506); -lean_ctor_set(x_511, 1, x_510); -x_512 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; -x_513 = l_Lean_Syntax_node2(x_506, x_512, x_511, x_503); -x_514 = lean_unsigned_to_nat(0u); -x_515 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_514); -x_516 = lean_nat_sub(x_515, x_514); -lean_dec(x_515); -x_517 = lean_unsigned_to_nat(1u); -x_518 = lean_nat_sub(x_516, x_517); -lean_dec(x_516); -x_519 = l_Lean_Expr_getRevArg_x21(x_248, x_518); -lean_dec(x_248); -x_520 = lean_expr_consume_type_annotations(x_519); -lean_ctor_set(x_251, 0, x_520); -x_521 = lean_box(0); -x_522 = 1; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_523 = l_Lean_Elab_Term_elabTermEnsuringType(x_513, x_251, x_522, x_522, x_521, x_12, x_13, x_14, x_15, x_16, x_17, x_508); -if (lean_obj_tag(x_523) == 0) -{ -lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 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; lean_object* x_542; lean_object* x_543; lean_object* x_544; -x_524 = lean_ctor_get(x_523, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_523, 1); -lean_inc(x_525); -lean_dec(x_523); -x_526 = lean_ctor_get(x_14, 1); -lean_inc(x_526); -lean_inc(x_3); -x_527 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_524); -x_528 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_528, 0, x_527); -lean_ctor_set(x_528, 1, x_3); -lean_ctor_set(x_528, 2, x_526); -lean_ctor_set(x_528, 3, x_524); -lean_ctor_set(x_528, 4, x_5); -x_529 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_529, 0, x_528); -x_530 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_531 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_531, 0, x_529); -lean_ctor_set(x_531, 1, x_530); -x_532 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_531, x_12, x_13, x_14, x_15, x_16, x_17, x_525); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_533 = lean_ctor_get(x_532, 1); -lean_inc(x_533); -if (lean_is_exclusive(x_532)) { - lean_ctor_release(x_532, 0); - lean_ctor_release(x_532, 1); - x_534 = x_532; -} else { - lean_dec_ref(x_532); - x_534 = lean_box(0); -} -lean_inc(x_524); -x_535 = l_Lean_Expr_app___override(x_6, x_524); -x_536 = lean_expr_instantiate1(x_249, x_524); -lean_dec(x_249); -x_537 = lean_ctor_get(x_2, 0); -lean_inc(x_537); -lean_dec(x_2); -x_538 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_538, 0, x_524); -x_539 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_539, 0, x_537); -lean_ctor_set(x_539, 1, x_7); -lean_ctor_set(x_539, 2, x_19); -lean_ctor_set(x_539, 3, x_538); -x_540 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_540, 0, x_539); -lean_ctor_set(x_540, 1, x_8); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_540); -lean_ctor_set(x_541, 1, x_9); -x_542 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_542, 0, x_536); -lean_ctor_set(x_542, 1, x_541); -x_543 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_543, 0, x_535); -lean_ctor_set(x_543, 1, x_542); -if (lean_is_scalar(x_534)) { - x_544 = lean_alloc_ctor(0, 2, 0); -} else { - x_544 = x_534; -} -lean_ctor_set(x_544, 0, x_543); -lean_ctor_set(x_544, 1, x_533); -return x_544; -} -else -{ -lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +lean_free_object(x_404); lean_dec(x_249); lean_dec(x_17); lean_dec(x_16); @@ -21667,510 +21570,691 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_545 = lean_ctor_get(x_523, 0); -lean_inc(x_545); -x_546 = lean_ctor_get(x_523, 1); -lean_inc(x_546); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_547 = x_523; +x_503 = lean_ctor_get(x_482, 0); +lean_inc(x_503); +x_504 = lean_ctor_get(x_482, 1); +lean_inc(x_504); +if (lean_is_exclusive(x_482)) { + lean_ctor_release(x_482, 0); + lean_ctor_release(x_482, 1); + x_505 = x_482; } else { - lean_dec_ref(x_523); - x_547 = lean_box(0); + lean_dec_ref(x_482); + x_505 = lean_box(0); } -if (lean_is_scalar(x_547)) { - x_548 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_505)) { + x_506 = lean_alloc_ctor(1, 2, 0); } else { - x_548 = x_547; + x_506 = x_505; } -lean_ctor_set(x_548, 0, x_545); -lean_ctor_set(x_548, 1, x_546); +lean_ctor_set(x_506, 0, x_503); +lean_ctor_set(x_506, 1, x_504); +return x_506; +} +} +} +else +{ +lean_object* x_507; lean_object* x_508; uint8_t 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; 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; uint8_t x_526; lean_object* x_527; +x_507 = lean_ctor_get(x_404, 0); +lean_inc(x_507); +lean_dec(x_404); +x_508 = lean_ctor_get(x_16, 5); +lean_inc(x_508); +x_509 = 0; +x_510 = l_Lean_SourceInfo_fromRef(x_508, x_509); +x_511 = lean_st_ref_get(x_17, x_18); +x_512 = lean_ctor_get(x_511, 1); +lean_inc(x_512); +if (lean_is_exclusive(x_511)) { + lean_ctor_release(x_511, 0); + lean_ctor_release(x_511, 1); + x_513 = x_511; +} else { + lean_dec_ref(x_511); + x_513 = lean_box(0); +} +x_514 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; +lean_inc(x_510); +if (lean_is_scalar(x_513)) { + x_515 = lean_alloc_ctor(2, 2, 0); +} else { + x_515 = x_513; + lean_ctor_set_tag(x_515, 2); +} +lean_ctor_set(x_515, 0, x_510); +lean_ctor_set(x_515, 1, x_514); +x_516 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; +x_517 = l_Lean_Syntax_node2(x_510, x_516, x_515, x_507); +x_518 = lean_unsigned_to_nat(0u); +x_519 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_518); +x_520 = lean_nat_sub(x_519, x_518); +lean_dec(x_519); +x_521 = lean_unsigned_to_nat(1u); +x_522 = lean_nat_sub(x_520, x_521); +lean_dec(x_520); +x_523 = l_Lean_Expr_getRevArg_x21(x_248, x_522); +lean_dec(x_248); +x_524 = lean_expr_consume_type_annotations(x_523); +lean_ctor_set(x_251, 0, x_524); +x_525 = lean_box(0); +x_526 = 1; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_527 = l_Lean_Elab_Term_elabTermEnsuringType(x_517, x_251, x_526, x_526, x_525, x_12, x_13, x_14, x_15, x_16, x_17, x_512); +if (lean_obj_tag(x_527) == 0) +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 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; 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; +x_528 = lean_ctor_get(x_527, 0); +lean_inc(x_528); +x_529 = lean_ctor_get(x_527, 1); +lean_inc(x_529); +lean_dec(x_527); +x_530 = lean_ctor_get(x_14, 1); +lean_inc(x_530); +lean_inc(x_3); +x_531 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_528); +x_532 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_532, 0, x_531); +lean_ctor_set(x_532, 1, x_3); +lean_ctor_set(x_532, 2, x_530); +lean_ctor_set(x_532, 3, x_528); +lean_ctor_set(x_532, 4, x_5); +x_533 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_533, 0, x_532); +x_534 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_535 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_535, 0, x_533); +lean_ctor_set(x_535, 1, x_534); +x_536 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_535, x_12, x_13, x_14, x_15, x_16, x_17, x_529); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_537 = lean_ctor_get(x_536, 1); +lean_inc(x_537); +if (lean_is_exclusive(x_536)) { + lean_ctor_release(x_536, 0); + lean_ctor_release(x_536, 1); + x_538 = x_536; +} else { + lean_dec_ref(x_536); + x_538 = lean_box(0); +} +lean_inc(x_528); +x_539 = l_Lean_Expr_app___override(x_6, x_528); +x_540 = lean_expr_instantiate1(x_249, x_528); +lean_dec(x_249); +x_541 = lean_ctor_get(x_2, 0); +lean_inc(x_541); +lean_dec(x_2); +x_542 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_542, 0, x_528); +x_543 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_543, 0, x_541); +lean_ctor_set(x_543, 1, x_7); +lean_ctor_set(x_543, 2, x_19); +lean_ctor_set(x_543, 3, x_542); +x_544 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_544, 0, x_543); +lean_ctor_set(x_544, 1, x_8); +x_545 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_545, 0, x_544); +lean_ctor_set(x_545, 1, x_9); +x_546 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_546, 0, x_540); +lean_ctor_set(x_546, 1, x_545); +x_547 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_547, 0, x_539); +lean_ctor_set(x_547, 1, x_546); +if (lean_is_scalar(x_538)) { + x_548 = lean_alloc_ctor(0, 2, 0); +} else { + x_548 = x_538; +} +lean_ctor_set(x_548, 0, x_547); +lean_ctor_set(x_548, 1, x_537); return x_548; } +else +{ +lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; +lean_dec(x_249); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_549 = lean_ctor_get(x_527, 0); +lean_inc(x_549); +x_550 = lean_ctor_get(x_527, 1); +lean_inc(x_550); +if (lean_is_exclusive(x_527)) { + lean_ctor_release(x_527, 0); + lean_ctor_release(x_527, 1); + x_551 = x_527; +} else { + lean_dec_ref(x_527); + x_551 = lean_box(0); +} +if (lean_is_scalar(x_551)) { + x_552 = lean_alloc_ctor(1, 2, 0); +} else { + x_552 = x_551; +} +lean_ctor_set(x_552, 0, x_549); +lean_ctor_set(x_552, 1, x_550); +return x_552; +} } } } else { -uint8_t x_549; uint8_t x_550; -lean_dec(x_397); +uint8_t x_553; uint8_t x_554; +lean_dec(x_401); lean_dec(x_10); -x_549 = 3; -x_550 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_250, x_549); -if (x_550 == 0) +x_553 = 3; +x_554 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_250, x_553); +if (x_554 == 0) { -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; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; uint8_t x_564; lean_object* x_565; uint8_t x_566; lean_object* x_567; lean_object* x_568; uint8_t x_569; -x_551 = lean_ctor_get(x_2, 0); -lean_inc(x_551); -lean_dec(x_2); -lean_ctor_set(x_251, 0, x_248); -x_552 = lean_ctor_get(x_16, 5); -lean_inc(x_552); -x_553 = l_Lean_replaceRef(x_551, x_552); -lean_dec(x_552); -x_554 = lean_ctor_get(x_16, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_16, 1); +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; uint8_t x_568; lean_object* x_569; uint8_t x_570; lean_object* x_571; uint8_t x_572; lean_object* x_573; lean_object* x_574; uint8_t x_575; +x_555 = lean_ctor_get(x_2, 0); lean_inc(x_555); -x_556 = lean_ctor_get(x_16, 2); -lean_inc(x_556); -x_557 = lean_ctor_get(x_16, 3); -lean_inc(x_557); -x_558 = lean_ctor_get(x_16, 4); -lean_inc(x_558); -x_559 = lean_ctor_get(x_16, 6); -lean_inc(x_559); -x_560 = lean_ctor_get(x_16, 7); -lean_inc(x_560); -x_561 = lean_ctor_get(x_16, 8); -lean_inc(x_561); -x_562 = lean_ctor_get(x_16, 9); -lean_inc(x_562); -x_563 = lean_ctor_get(x_16, 10); -lean_inc(x_563); -x_564 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_565 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_565, 0, x_554); -lean_ctor_set(x_565, 1, x_555); -lean_ctor_set(x_565, 2, x_556); -lean_ctor_set(x_565, 3, x_557); -lean_ctor_set(x_565, 4, x_558); -lean_ctor_set(x_565, 5, x_553); -lean_ctor_set(x_565, 6, x_559); -lean_ctor_set(x_565, 7, x_560); -lean_ctor_set(x_565, 8, x_561); -lean_ctor_set(x_565, 9, x_562); -lean_ctor_set(x_565, 10, x_563); -lean_ctor_set_uint8(x_565, sizeof(void*)*11, x_564); -x_566 = 0; -x_567 = lean_box(0); -lean_inc(x_14); -x_568 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_251, x_566, x_567, x_14, x_15, x_565, x_17, x_18); -lean_dec(x_565); -x_569 = !lean_is_exclusive(x_568); -if (x_569 == 0) -{ -lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; uint8_t x_579; -x_570 = lean_ctor_get(x_568, 0); -x_571 = lean_ctor_get(x_568, 1); -x_572 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_570); -x_573 = lean_ctor_get(x_14, 1); -lean_inc(x_573); -lean_inc(x_3); -x_574 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_572); -x_575 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_575, 0, x_574); -lean_ctor_set(x_575, 1, x_3); -lean_ctor_set(x_575, 2, x_573); -lean_ctor_set(x_575, 3, x_572); -lean_ctor_set(x_575, 4, x_5); -x_576 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_576, 0, x_575); -x_577 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -lean_ctor_set_tag(x_568, 1); -lean_ctor_set(x_568, 1, x_577); -lean_ctor_set(x_568, 0, x_576); -x_578 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_568, x_12, x_13, x_14, x_15, x_16, x_17, x_571); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_579 = !lean_is_exclusive(x_578); -if (x_579 == 0) -{ -lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; -x_580 = lean_ctor_get(x_578, 0); -lean_dec(x_580); -lean_inc(x_572); -x_581 = l_Lean_Expr_app___override(x_6, x_572); -x_582 = lean_expr_instantiate1(x_249, x_572); -lean_dec(x_249); -x_583 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_583, 0, x_572); -x_584 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_584, 0, x_551); -lean_ctor_set(x_584, 1, x_7); -lean_ctor_set(x_584, 2, x_19); -lean_ctor_set(x_584, 3, x_583); -x_585 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_585, 0, x_584); -lean_ctor_set(x_585, 1, x_8); -x_586 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_586, 0, x_585); -lean_ctor_set(x_586, 1, x_9); -x_587 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_587, 0, x_582); -lean_ctor_set(x_587, 1, x_586); -x_588 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_588, 0, x_581); -lean_ctor_set(x_588, 1, x_587); -lean_ctor_set(x_578, 0, x_588); -return x_578; -} -else -{ -lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_589 = lean_ctor_get(x_578, 1); -lean_inc(x_589); -lean_dec(x_578); -lean_inc(x_572); -x_590 = l_Lean_Expr_app___override(x_6, x_572); -x_591 = lean_expr_instantiate1(x_249, x_572); -lean_dec(x_249); -x_592 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_592, 0, x_572); -x_593 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_593, 0, x_551); -lean_ctor_set(x_593, 1, x_7); -lean_ctor_set(x_593, 2, x_19); -lean_ctor_set(x_593, 3, x_592); -x_594 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_594, 0, x_593); -lean_ctor_set(x_594, 1, x_8); -x_595 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_595, 0, x_594); -lean_ctor_set(x_595, 1, x_9); -x_596 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_596, 0, x_591); -lean_ctor_set(x_596, 1, x_595); -x_597 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_597, 0, x_590); -lean_ctor_set(x_597, 1, x_596); -x_598 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_598, 0, x_597); -lean_ctor_set(x_598, 1, x_589); -return x_598; -} -} -else -{ -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; 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; lean_object* x_619; -x_599 = lean_ctor_get(x_568, 0); -x_600 = lean_ctor_get(x_568, 1); -lean_inc(x_600); -lean_inc(x_599); -lean_dec(x_568); -x_601 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_599); -x_602 = lean_ctor_get(x_14, 1); -lean_inc(x_602); -lean_inc(x_3); -x_603 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_601); -x_604 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_3); -lean_ctor_set(x_604, 2, x_602); -lean_ctor_set(x_604, 3, x_601); -lean_ctor_set(x_604, 4, x_5); -x_605 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_605, 0, x_604); -x_606 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_607 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_607, 0, x_605); -lean_ctor_set(x_607, 1, x_606); -x_608 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_607, x_12, x_13, x_14, x_15, x_16, x_17, x_600); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_609 = lean_ctor_get(x_608, 1); -lean_inc(x_609); -if (lean_is_exclusive(x_608)) { - lean_ctor_release(x_608, 0); - lean_ctor_release(x_608, 1); - x_610 = x_608; -} else { - lean_dec_ref(x_608); - x_610 = lean_box(0); -} -lean_inc(x_601); -x_611 = l_Lean_Expr_app___override(x_6, x_601); -x_612 = lean_expr_instantiate1(x_249, x_601); -lean_dec(x_249); -x_613 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_613, 0, x_601); -x_614 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_614, 0, x_551); -lean_ctor_set(x_614, 1, x_7); -lean_ctor_set(x_614, 2, x_19); -lean_ctor_set(x_614, 3, x_613); -x_615 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_615, 0, x_614); -lean_ctor_set(x_615, 1, x_8); -x_616 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_616, 0, x_615); -lean_ctor_set(x_616, 1, x_9); -x_617 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_617, 0, x_612); -lean_ctor_set(x_617, 1, x_616); -x_618 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_618, 0, x_611); -lean_ctor_set(x_618, 1, x_617); -if (lean_is_scalar(x_610)) { - x_619 = lean_alloc_ctor(0, 2, 0); -} else { - x_619 = x_610; -} -lean_ctor_set(x_619, 0, x_618); -lean_ctor_set(x_619, 1, x_609); -return x_619; -} -} -else -{ -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_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; uint8_t x_633; lean_object* x_634; uint8_t x_635; lean_object* x_636; lean_object* x_637; uint8_t x_638; -x_620 = lean_ctor_get(x_2, 0); -lean_inc(x_620); lean_dec(x_2); lean_ctor_set(x_251, 0, x_248); -x_621 = lean_ctor_get(x_16, 5); -lean_inc(x_621); -x_622 = l_Lean_replaceRef(x_620, x_621); -lean_dec(x_621); -x_623 = lean_ctor_get(x_16, 0); -lean_inc(x_623); -x_624 = lean_ctor_get(x_16, 1); -lean_inc(x_624); -x_625 = lean_ctor_get(x_16, 2); -lean_inc(x_625); -x_626 = lean_ctor_get(x_16, 3); -lean_inc(x_626); -x_627 = lean_ctor_get(x_16, 4); -lean_inc(x_627); -x_628 = lean_ctor_get(x_16, 6); -lean_inc(x_628); -x_629 = lean_ctor_get(x_16, 7); -lean_inc(x_629); -x_630 = lean_ctor_get(x_16, 8); -lean_inc(x_630); -x_631 = lean_ctor_get(x_16, 9); -lean_inc(x_631); -x_632 = lean_ctor_get(x_16, 10); -lean_inc(x_632); -x_633 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_634 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_634, 0, x_623); -lean_ctor_set(x_634, 1, x_624); -lean_ctor_set(x_634, 2, x_625); -lean_ctor_set(x_634, 3, x_626); -lean_ctor_set(x_634, 4, x_627); -lean_ctor_set(x_634, 5, x_622); -lean_ctor_set(x_634, 6, x_628); -lean_ctor_set(x_634, 7, x_629); -lean_ctor_set(x_634, 8, x_630); -lean_ctor_set(x_634, 9, x_631); -lean_ctor_set(x_634, 10, x_632); -lean_ctor_set_uint8(x_634, sizeof(void*)*11, x_633); -x_635 = 1; -x_636 = lean_box(0); +x_556 = lean_ctor_get(x_16, 5); +lean_inc(x_556); +x_557 = l_Lean_replaceRef(x_555, x_556); +lean_dec(x_556); +x_558 = lean_ctor_get(x_16, 0); +lean_inc(x_558); +x_559 = lean_ctor_get(x_16, 1); +lean_inc(x_559); +x_560 = lean_ctor_get(x_16, 2); +lean_inc(x_560); +x_561 = lean_ctor_get(x_16, 3); +lean_inc(x_561); +x_562 = lean_ctor_get(x_16, 4); +lean_inc(x_562); +x_563 = lean_ctor_get(x_16, 6); +lean_inc(x_563); +x_564 = lean_ctor_get(x_16, 7); +lean_inc(x_564); +x_565 = lean_ctor_get(x_16, 8); +lean_inc(x_565); +x_566 = lean_ctor_get(x_16, 9); +lean_inc(x_566); +x_567 = lean_ctor_get(x_16, 10); +lean_inc(x_567); +x_568 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_569 = lean_ctor_get(x_16, 11); +lean_inc(x_569); +x_570 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_571 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_571, 0, x_558); +lean_ctor_set(x_571, 1, x_559); +lean_ctor_set(x_571, 2, x_560); +lean_ctor_set(x_571, 3, x_561); +lean_ctor_set(x_571, 4, x_562); +lean_ctor_set(x_571, 5, x_557); +lean_ctor_set(x_571, 6, x_563); +lean_ctor_set(x_571, 7, x_564); +lean_ctor_set(x_571, 8, x_565); +lean_ctor_set(x_571, 9, x_566); +lean_ctor_set(x_571, 10, x_567); +lean_ctor_set(x_571, 11, x_569); +lean_ctor_set_uint8(x_571, sizeof(void*)*12, x_568); +lean_ctor_set_uint8(x_571, sizeof(void*)*12 + 1, x_570); +x_572 = 0; +x_573 = lean_box(0); lean_inc(x_14); -x_637 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_251, x_635, x_636, x_14, x_15, x_634, x_17, x_18); -lean_dec(x_634); -x_638 = !lean_is_exclusive(x_637); -if (x_638 == 0) +x_574 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_251, x_572, x_573, x_14, x_15, x_571, x_17, x_18); +lean_dec(x_571); +x_575 = !lean_is_exclusive(x_574); +if (x_575 == 0) { -lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_649; -x_639 = lean_ctor_get(x_637, 0); -x_640 = lean_ctor_get(x_637, 1); -lean_inc(x_639); -x_641 = l_Lean_Expr_mvarId_x21(x_639); -x_642 = lean_array_push(x_9, x_641); -x_643 = lean_ctor_get(x_14, 1); -lean_inc(x_643); +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; uint8_t x_585; +x_576 = lean_ctor_get(x_574, 0); +x_577 = lean_ctor_get(x_574, 1); +x_578 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_576); +x_579 = lean_ctor_get(x_14, 1); +lean_inc(x_579); lean_inc(x_3); -x_644 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_639); -x_645 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_645, 0, x_644); -lean_ctor_set(x_645, 1, x_3); -lean_ctor_set(x_645, 2, x_643); -lean_ctor_set(x_645, 3, x_639); -lean_ctor_set(x_645, 4, x_5); -x_646 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_646, 0, x_645); -x_647 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -lean_ctor_set_tag(x_637, 1); -lean_ctor_set(x_637, 1, x_647); -lean_ctor_set(x_637, 0, x_646); -x_648 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_637, x_12, x_13, x_14, x_15, x_16, x_17, x_640); +x_580 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_578); +x_581 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_581, 0, x_580); +lean_ctor_set(x_581, 1, x_3); +lean_ctor_set(x_581, 2, x_579); +lean_ctor_set(x_581, 3, x_578); +lean_ctor_set(x_581, 4, x_5); +x_582 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_582, 0, x_581); +x_583 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +lean_ctor_set_tag(x_574, 1); +lean_ctor_set(x_574, 1, x_583); +lean_ctor_set(x_574, 0, x_582); +x_584 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_574, x_12, x_13, x_14, x_15, x_16, x_17, x_577); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_649 = !lean_is_exclusive(x_648); -if (x_649 == 0) +x_585 = !lean_is_exclusive(x_584); +if (x_585 == 0) { -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; lean_object* x_658; -x_650 = lean_ctor_get(x_648, 0); -lean_dec(x_650); -lean_inc(x_639); -x_651 = l_Lean_Expr_app___override(x_6, x_639); -x_652 = lean_expr_instantiate1(x_249, x_639); +lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; +x_586 = lean_ctor_get(x_584, 0); +lean_dec(x_586); +lean_inc(x_578); +x_587 = l_Lean_Expr_app___override(x_6, x_578); +x_588 = lean_expr_instantiate1(x_249, x_578); lean_dec(x_249); -x_653 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_653, 0, x_639); -x_654 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_654, 0, x_620); -lean_ctor_set(x_654, 1, x_7); -lean_ctor_set(x_654, 2, x_19); -lean_ctor_set(x_654, 3, x_653); -x_655 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_655, 0, x_654); -lean_ctor_set(x_655, 1, x_8); -x_656 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_656, 0, x_655); -lean_ctor_set(x_656, 1, x_642); -x_657 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_657, 0, x_652); -lean_ctor_set(x_657, 1, x_656); -x_658 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_658, 0, x_651); -lean_ctor_set(x_658, 1, x_657); -lean_ctor_set(x_648, 0, x_658); -return x_648; +x_589 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_589, 0, x_578); +x_590 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_590, 0, x_555); +lean_ctor_set(x_590, 1, x_7); +lean_ctor_set(x_590, 2, x_19); +lean_ctor_set(x_590, 3, x_589); +x_591 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_591, 0, x_590); +lean_ctor_set(x_591, 1, x_8); +x_592 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_592, 0, x_591); +lean_ctor_set(x_592, 1, x_9); +x_593 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_593, 0, x_588); +lean_ctor_set(x_593, 1, x_592); +x_594 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_594, 0, x_587); +lean_ctor_set(x_594, 1, x_593); +lean_ctor_set(x_584, 0, x_594); +return x_584; } else { -lean_object* x_659; lean_object* x_660; 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; -x_659 = lean_ctor_get(x_648, 1); -lean_inc(x_659); -lean_dec(x_648); -lean_inc(x_639); -x_660 = l_Lean_Expr_app___override(x_6, x_639); -x_661 = lean_expr_instantiate1(x_249, x_639); +lean_object* x_595; lean_object* x_596; lean_object* 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; +x_595 = lean_ctor_get(x_584, 1); +lean_inc(x_595); +lean_dec(x_584); +lean_inc(x_578); +x_596 = l_Lean_Expr_app___override(x_6, x_578); +x_597 = lean_expr_instantiate1(x_249, x_578); lean_dec(x_249); -x_662 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_662, 0, x_639); -x_663 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_663, 0, x_620); -lean_ctor_set(x_663, 1, x_7); -lean_ctor_set(x_663, 2, x_19); -lean_ctor_set(x_663, 3, x_662); -x_664 = lean_alloc_ctor(1, 2, 0); +x_598 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_598, 0, x_578); +x_599 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_599, 0, x_555); +lean_ctor_set(x_599, 1, x_7); +lean_ctor_set(x_599, 2, x_19); +lean_ctor_set(x_599, 3, x_598); +x_600 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_600, 0, x_599); +lean_ctor_set(x_600, 1, x_8); +x_601 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_601, 0, x_600); +lean_ctor_set(x_601, 1, x_9); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_597); +lean_ctor_set(x_602, 1, x_601); +x_603 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_603, 0, x_596); +lean_ctor_set(x_603, 1, x_602); +x_604 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_604, 0, x_603); +lean_ctor_set(x_604, 1, x_595); +return x_604; +} +} +else +{ +lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; 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; 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; +x_605 = lean_ctor_get(x_574, 0); +x_606 = lean_ctor_get(x_574, 1); +lean_inc(x_606); +lean_inc(x_605); +lean_dec(x_574); +x_607 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_605); +x_608 = lean_ctor_get(x_14, 1); +lean_inc(x_608); +lean_inc(x_3); +x_609 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_607); +x_610 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_610, 0, x_609); +lean_ctor_set(x_610, 1, x_3); +lean_ctor_set(x_610, 2, x_608); +lean_ctor_set(x_610, 3, x_607); +lean_ctor_set(x_610, 4, x_5); +x_611 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_611, 0, x_610); +x_612 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_613 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_613, 0, x_611); +lean_ctor_set(x_613, 1, x_612); +x_614 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_613, x_12, x_13, x_14, x_15, x_16, x_17, x_606); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_615 = lean_ctor_get(x_614, 1); +lean_inc(x_615); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_616 = x_614; +} else { + lean_dec_ref(x_614); + x_616 = lean_box(0); +} +lean_inc(x_607); +x_617 = l_Lean_Expr_app___override(x_6, x_607); +x_618 = lean_expr_instantiate1(x_249, x_607); +lean_dec(x_249); +x_619 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_619, 0, x_607); +x_620 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_620, 0, x_555); +lean_ctor_set(x_620, 1, x_7); +lean_ctor_set(x_620, 2, x_19); +lean_ctor_set(x_620, 3, x_619); +x_621 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_621, 0, x_620); +lean_ctor_set(x_621, 1, x_8); +x_622 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_622, 0, x_621); +lean_ctor_set(x_622, 1, x_9); +x_623 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_623, 0, x_618); +lean_ctor_set(x_623, 1, x_622); +x_624 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_624, 0, x_617); +lean_ctor_set(x_624, 1, x_623); +if (lean_is_scalar(x_616)) { + x_625 = lean_alloc_ctor(0, 2, 0); +} else { + x_625 = x_616; +} +lean_ctor_set(x_625, 0, x_624); +lean_ctor_set(x_625, 1, x_615); +return x_625; +} +} +else +{ +lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; uint8_t x_639; lean_object* x_640; uint8_t x_641; lean_object* x_642; uint8_t x_643; lean_object* x_644; lean_object* x_645; uint8_t x_646; +x_626 = lean_ctor_get(x_2, 0); +lean_inc(x_626); +lean_dec(x_2); +lean_ctor_set(x_251, 0, x_248); +x_627 = lean_ctor_get(x_16, 5); +lean_inc(x_627); +x_628 = l_Lean_replaceRef(x_626, x_627); +lean_dec(x_627); +x_629 = lean_ctor_get(x_16, 0); +lean_inc(x_629); +x_630 = lean_ctor_get(x_16, 1); +lean_inc(x_630); +x_631 = lean_ctor_get(x_16, 2); +lean_inc(x_631); +x_632 = lean_ctor_get(x_16, 3); +lean_inc(x_632); +x_633 = lean_ctor_get(x_16, 4); +lean_inc(x_633); +x_634 = lean_ctor_get(x_16, 6); +lean_inc(x_634); +x_635 = lean_ctor_get(x_16, 7); +lean_inc(x_635); +x_636 = lean_ctor_get(x_16, 8); +lean_inc(x_636); +x_637 = lean_ctor_get(x_16, 9); +lean_inc(x_637); +x_638 = lean_ctor_get(x_16, 10); +lean_inc(x_638); +x_639 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_640 = lean_ctor_get(x_16, 11); +lean_inc(x_640); +x_641 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_642 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_642, 0, x_629); +lean_ctor_set(x_642, 1, x_630); +lean_ctor_set(x_642, 2, x_631); +lean_ctor_set(x_642, 3, x_632); +lean_ctor_set(x_642, 4, x_633); +lean_ctor_set(x_642, 5, x_628); +lean_ctor_set(x_642, 6, x_634); +lean_ctor_set(x_642, 7, x_635); +lean_ctor_set(x_642, 8, x_636); +lean_ctor_set(x_642, 9, x_637); +lean_ctor_set(x_642, 10, x_638); +lean_ctor_set(x_642, 11, x_640); +lean_ctor_set_uint8(x_642, sizeof(void*)*12, x_639); +lean_ctor_set_uint8(x_642, sizeof(void*)*12 + 1, x_641); +x_643 = 1; +x_644 = lean_box(0); +lean_inc(x_14); +x_645 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_251, x_643, x_644, x_14, x_15, x_642, x_17, x_18); +lean_dec(x_642); +x_646 = !lean_is_exclusive(x_645); +if (x_646 == 0) +{ +lean_object* 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; uint8_t x_657; +x_647 = lean_ctor_get(x_645, 0); +x_648 = lean_ctor_get(x_645, 1); +lean_inc(x_647); +x_649 = l_Lean_Expr_mvarId_x21(x_647); +x_650 = lean_array_push(x_9, x_649); +x_651 = lean_ctor_get(x_14, 1); +lean_inc(x_651); +lean_inc(x_3); +x_652 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_647); +x_653 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_3); +lean_ctor_set(x_653, 2, x_651); +lean_ctor_set(x_653, 3, x_647); +lean_ctor_set(x_653, 4, x_5); +x_654 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_654, 0, x_653); +x_655 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +lean_ctor_set_tag(x_645, 1); +lean_ctor_set(x_645, 1, x_655); +lean_ctor_set(x_645, 0, x_654); +x_656 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_645, x_12, x_13, x_14, x_15, x_16, x_17, x_648); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_657 = !lean_is_exclusive(x_656); +if (x_657 == 0) +{ +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; +x_658 = lean_ctor_get(x_656, 0); +lean_dec(x_658); +lean_inc(x_647); +x_659 = l_Lean_Expr_app___override(x_6, x_647); +x_660 = lean_expr_instantiate1(x_249, x_647); +lean_dec(x_249); +x_661 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_661, 0, x_647); +x_662 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_662, 0, x_626); +lean_ctor_set(x_662, 1, x_7); +lean_ctor_set(x_662, 2, x_19); +lean_ctor_set(x_662, 3, x_661); +x_663 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_663, 0, x_662); +lean_ctor_set(x_663, 1, x_8); +x_664 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_664, 0, x_663); -lean_ctor_set(x_664, 1, x_8); +lean_ctor_set(x_664, 1, x_650); x_665 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_665, 0, x_664); -lean_ctor_set(x_665, 1, x_642); +lean_ctor_set(x_665, 0, x_660); +lean_ctor_set(x_665, 1, x_664); x_666 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_666, 0, x_661); +lean_ctor_set(x_666, 0, x_659); lean_ctor_set(x_666, 1, x_665); -x_667 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_667, 0, x_660); -lean_ctor_set(x_667, 1, x_666); -x_668 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_668, 0, x_667); -lean_ctor_set(x_668, 1, x_659); -return x_668; +lean_ctor_set(x_656, 0, x_666); +return x_656; +} +else +{ +lean_object* x_667; lean_object* x_668; lean_object* x_669; 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; +x_667 = lean_ctor_get(x_656, 1); +lean_inc(x_667); +lean_dec(x_656); +lean_inc(x_647); +x_668 = l_Lean_Expr_app___override(x_6, x_647); +x_669 = lean_expr_instantiate1(x_249, x_647); +lean_dec(x_249); +x_670 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_670, 0, x_647); +x_671 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_671, 0, x_626); +lean_ctor_set(x_671, 1, x_7); +lean_ctor_set(x_671, 2, x_19); +lean_ctor_set(x_671, 3, x_670); +x_672 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_672, 0, x_671); +lean_ctor_set(x_672, 1, x_8); +x_673 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_673, 0, x_672); +lean_ctor_set(x_673, 1, x_650); +x_674 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_674, 0, x_669); +lean_ctor_set(x_674, 1, x_673); +x_675 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_675, 0, x_668); +lean_ctor_set(x_675, 1, x_674); +x_676 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_676, 0, x_675); +lean_ctor_set(x_676, 1, x_667); +return x_676; } } else { -lean_object* x_669; 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_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; 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; -x_669 = lean_ctor_get(x_637, 0); -x_670 = lean_ctor_get(x_637, 1); -lean_inc(x_670); -lean_inc(x_669); -lean_dec(x_637); -lean_inc(x_669); -x_671 = l_Lean_Expr_mvarId_x21(x_669); -x_672 = lean_array_push(x_9, x_671); -x_673 = lean_ctor_get(x_14, 1); -lean_inc(x_673); +lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; 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; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_677 = lean_ctor_get(x_645, 0); +x_678 = lean_ctor_get(x_645, 1); +lean_inc(x_678); +lean_inc(x_677); +lean_dec(x_645); +lean_inc(x_677); +x_679 = l_Lean_Expr_mvarId_x21(x_677); +x_680 = lean_array_push(x_9, x_679); +x_681 = lean_ctor_get(x_14, 1); +lean_inc(x_681); lean_inc(x_3); -x_674 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_669); -x_675 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_675, 0, x_674); -lean_ctor_set(x_675, 1, x_3); -lean_ctor_set(x_675, 2, x_673); -lean_ctor_set(x_675, 3, x_669); -lean_ctor_set(x_675, 4, x_5); -x_676 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_676, 0, x_675); -x_677 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_678 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_678, 0, x_676); -lean_ctor_set(x_678, 1, x_677); -x_679 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_678, x_12, x_13, x_14, x_15, x_16, x_17, x_670); +x_682 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_677); +x_683 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_683, 0, x_682); +lean_ctor_set(x_683, 1, x_3); +lean_ctor_set(x_683, 2, x_681); +lean_ctor_set(x_683, 3, x_677); +lean_ctor_set(x_683, 4, x_5); +x_684 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_684, 0, x_683); +x_685 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_686 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_686, 0, x_684); +lean_ctor_set(x_686, 1, x_685); +x_687 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_686, x_12, x_13, x_14, x_15, x_16, x_17, x_678); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_680 = lean_ctor_get(x_679, 1); -lean_inc(x_680); -if (lean_is_exclusive(x_679)) { - lean_ctor_release(x_679, 0); - lean_ctor_release(x_679, 1); - x_681 = x_679; +x_688 = lean_ctor_get(x_687, 1); +lean_inc(x_688); +if (lean_is_exclusive(x_687)) { + lean_ctor_release(x_687, 0); + lean_ctor_release(x_687, 1); + x_689 = x_687; } else { - lean_dec_ref(x_679); - x_681 = lean_box(0); + lean_dec_ref(x_687); + x_689 = lean_box(0); } -lean_inc(x_669); -x_682 = l_Lean_Expr_app___override(x_6, x_669); -x_683 = lean_expr_instantiate1(x_249, x_669); +lean_inc(x_677); +x_690 = l_Lean_Expr_app___override(x_6, x_677); +x_691 = lean_expr_instantiate1(x_249, x_677); lean_dec(x_249); -x_684 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_684, 0, x_669); -x_685 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_685, 0, x_620); -lean_ctor_set(x_685, 1, x_7); -lean_ctor_set(x_685, 2, x_19); -lean_ctor_set(x_685, 3, x_684); -x_686 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_686, 0, x_685); -lean_ctor_set(x_686, 1, x_8); -x_687 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_687, 0, x_686); -lean_ctor_set(x_687, 1, x_672); -x_688 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_688, 0, x_683); -lean_ctor_set(x_688, 1, x_687); -x_689 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_689, 0, x_682); -lean_ctor_set(x_689, 1, x_688); -if (lean_is_scalar(x_681)) { - x_690 = lean_alloc_ctor(0, 2, 0); +x_692 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_692, 0, x_677); +x_693 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_693, 0, x_626); +lean_ctor_set(x_693, 1, x_7); +lean_ctor_set(x_693, 2, x_19); +lean_ctor_set(x_693, 3, x_692); +x_694 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_694, 0, x_693); +lean_ctor_set(x_694, 1, x_8); +x_695 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_695, 0, x_694); +lean_ctor_set(x_695, 1, x_680); +x_696 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_696, 0, x_691); +lean_ctor_set(x_696, 1, x_695); +x_697 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_697, 0, x_690); +lean_ctor_set(x_697, 1, x_696); +if (lean_is_scalar(x_689)) { + x_698 = lean_alloc_ctor(0, 2, 0); } else { - x_690 = x_681; + x_698 = x_689; } -lean_ctor_set(x_690, 0, x_689); -lean_ctor_set(x_690, 1, x_680); -return x_690; +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_688); +return x_698; } } } } else { -lean_object* x_691; -x_691 = lean_ctor_get(x_251, 0); -lean_inc(x_691); +lean_object* x_699; +x_699 = lean_ctor_get(x_251, 0); +lean_inc(x_699); lean_dec(x_251); -if (lean_obj_tag(x_691) == 4) +if (lean_obj_tag(x_699) == 4) { -lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_692 = lean_ctor_get(x_691, 0); -lean_inc(x_692); -lean_dec(x_691); -x_693 = lean_ctor_get(x_16, 2); -lean_inc(x_693); -x_694 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_10, x_693, x_692); -lean_dec(x_693); -if (lean_obj_tag(x_694) == 0) +lean_object* x_700; lean_object* x_701; lean_object* x_702; +x_700 = lean_ctor_get(x_699, 0); +lean_inc(x_700); +lean_dec(x_699); +x_701 = lean_ctor_get(x_16, 2); +lean_inc(x_701); +x_702 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_10, x_701, x_700); +lean_dec(x_701); +if (lean_obj_tag(x_702) == 0) { -lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; +lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_dec(x_249); lean_dec(x_248); lean_dec(x_9); @@ -22181,177 +22265,177 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_695 = lean_ctor_get(x_694, 0); -lean_inc(x_695); -if (lean_is_exclusive(x_694)) { - lean_ctor_release(x_694, 0); - x_696 = x_694; +x_703 = lean_ctor_get(x_702, 0); +lean_inc(x_703); +if (lean_is_exclusive(x_702)) { + lean_ctor_release(x_702, 0); + x_704 = x_702; } else { - lean_dec_ref(x_694); - x_696 = lean_box(0); + lean_dec_ref(x_702); + x_704 = lean_box(0); } -if (lean_is_scalar(x_696)) { - x_697 = lean_alloc_ctor(3, 1, 0); +if (lean_is_scalar(x_704)) { + x_705 = lean_alloc_ctor(3, 1, 0); } else { - x_697 = x_696; - lean_ctor_set_tag(x_697, 3); + x_705 = x_704; + lean_ctor_set_tag(x_705, 3); } -lean_ctor_set(x_697, 0, x_695); -x_698 = l_Lean_MessageData_ofFormat(x_697); -x_699 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_698, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_ctor_set(x_705, 0, x_703); +x_706 = l_Lean_MessageData_ofFormat(x_705); +x_707 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__2(x_706, x_12, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -return x_699; +return x_707; } else { -lean_object* x_700; lean_object* x_701; lean_object* x_702; uint8_t 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_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; uint8_t x_721; lean_object* x_722; -x_700 = lean_ctor_get(x_694, 0); -lean_inc(x_700); -if (lean_is_exclusive(x_694)) { - lean_ctor_release(x_694, 0); - x_701 = x_694; +lean_object* x_708; lean_object* x_709; lean_object* x_710; uint8_t x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; uint8_t x_729; lean_object* x_730; +x_708 = lean_ctor_get(x_702, 0); +lean_inc(x_708); +if (lean_is_exclusive(x_702)) { + lean_ctor_release(x_702, 0); + x_709 = x_702; } else { - lean_dec_ref(x_694); - x_701 = lean_box(0); + lean_dec_ref(x_702); + x_709 = lean_box(0); } -x_702 = lean_ctor_get(x_16, 5); -lean_inc(x_702); -x_703 = 0; -x_704 = l_Lean_SourceInfo_fromRef(x_702, x_703); -x_705 = lean_st_ref_get(x_17, x_18); -x_706 = lean_ctor_get(x_705, 1); -lean_inc(x_706); -if (lean_is_exclusive(x_705)) { - lean_ctor_release(x_705, 0); - lean_ctor_release(x_705, 1); - x_707 = x_705; +x_710 = lean_ctor_get(x_16, 5); +lean_inc(x_710); +x_711 = 0; +x_712 = l_Lean_SourceInfo_fromRef(x_710, x_711); +x_713 = lean_st_ref_get(x_17, x_18); +x_714 = lean_ctor_get(x_713, 1); +lean_inc(x_714); +if (lean_is_exclusive(x_713)) { + lean_ctor_release(x_713, 0); + lean_ctor_release(x_713, 1); + x_715 = x_713; } else { - lean_dec_ref(x_705); - x_707 = lean_box(0); + lean_dec_ref(x_713); + x_715 = lean_box(0); } -x_708 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; -lean_inc(x_704); -if (lean_is_scalar(x_707)) { - x_709 = lean_alloc_ctor(2, 2, 0); +x_716 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__6; +lean_inc(x_712); +if (lean_is_scalar(x_715)) { + x_717 = lean_alloc_ctor(2, 2, 0); } else { - x_709 = x_707; - lean_ctor_set_tag(x_709, 2); + x_717 = x_715; + lean_ctor_set_tag(x_717, 2); } -lean_ctor_set(x_709, 0, x_704); -lean_ctor_set(x_709, 1, x_708); -x_710 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; -x_711 = l_Lean_Syntax_node2(x_704, x_710, x_709, x_700); -x_712 = lean_unsigned_to_nat(0u); -x_713 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_712); -x_714 = lean_nat_sub(x_713, x_712); -lean_dec(x_713); -x_715 = lean_unsigned_to_nat(1u); -x_716 = lean_nat_sub(x_714, x_715); -lean_dec(x_714); -x_717 = l_Lean_Expr_getRevArg_x21(x_248, x_716); +lean_ctor_set(x_717, 0, x_712); +lean_ctor_set(x_717, 1, x_716); +x_718 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__5; +x_719 = l_Lean_Syntax_node2(x_712, x_718, x_717, x_708); +x_720 = lean_unsigned_to_nat(0u); +x_721 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_248, x_720); +x_722 = lean_nat_sub(x_721, x_720); +lean_dec(x_721); +x_723 = lean_unsigned_to_nat(1u); +x_724 = lean_nat_sub(x_722, x_723); +lean_dec(x_722); +x_725 = l_Lean_Expr_getRevArg_x21(x_248, x_724); lean_dec(x_248); -x_718 = lean_expr_consume_type_annotations(x_717); -x_719 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_719, 0, x_718); -x_720 = lean_box(0); -x_721 = 1; +x_726 = lean_expr_consume_type_annotations(x_725); +x_727 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_727, 0, x_726); +x_728 = lean_box(0); +x_729 = 1; lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_722 = l_Lean_Elab_Term_elabTermEnsuringType(x_711, x_719, x_721, x_721, x_720, x_12, x_13, x_14, x_15, x_16, x_17, x_706); -if (lean_obj_tag(x_722) == 0) +x_730 = l_Lean_Elab_Term_elabTermEnsuringType(x_719, x_727, x_729, x_729, x_728, x_12, x_13, x_14, x_15, x_16, x_17, x_714); +if (lean_obj_tag(x_730) == 0) { -lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; -x_723 = lean_ctor_get(x_722, 0); -lean_inc(x_723); -x_724 = lean_ctor_get(x_722, 1); -lean_inc(x_724); -lean_dec(x_722); -x_725 = lean_ctor_get(x_14, 1); -lean_inc(x_725); +lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; +x_731 = lean_ctor_get(x_730, 0); +lean_inc(x_731); +x_732 = lean_ctor_get(x_730, 1); +lean_inc(x_732); +lean_dec(x_730); +x_733 = lean_ctor_get(x_14, 1); +lean_inc(x_733); lean_inc(x_3); -x_726 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_723); -x_727 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_3); -lean_ctor_set(x_727, 2, x_725); -lean_ctor_set(x_727, 3, x_723); -lean_ctor_set(x_727, 4, x_5); -if (lean_is_scalar(x_701)) { - x_728 = lean_alloc_ctor(5, 1, 0); +x_734 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_731); +x_735 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_735, 0, x_734); +lean_ctor_set(x_735, 1, x_3); +lean_ctor_set(x_735, 2, x_733); +lean_ctor_set(x_735, 3, x_731); +lean_ctor_set(x_735, 4, x_5); +if (lean_is_scalar(x_709)) { + x_736 = lean_alloc_ctor(5, 1, 0); } else { - x_728 = x_701; - lean_ctor_set_tag(x_728, 5); + x_736 = x_709; + lean_ctor_set_tag(x_736, 5); } -lean_ctor_set(x_728, 0, x_727); -x_729 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -x_730 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_730, 0, x_728); -lean_ctor_set(x_730, 1, x_729); -x_731 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_730, x_12, x_13, x_14, x_15, x_16, x_17, x_724); +lean_ctor_set(x_736, 0, x_735); +x_737 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +x_738 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_738, 0, x_736); +lean_ctor_set(x_738, 1, x_737); +x_739 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_738, x_12, x_13, x_14, x_15, x_16, x_17, x_732); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_732 = lean_ctor_get(x_731, 1); -lean_inc(x_732); -if (lean_is_exclusive(x_731)) { - lean_ctor_release(x_731, 0); - lean_ctor_release(x_731, 1); - x_733 = x_731; +x_740 = lean_ctor_get(x_739, 1); +lean_inc(x_740); +if (lean_is_exclusive(x_739)) { + lean_ctor_release(x_739, 0); + lean_ctor_release(x_739, 1); + x_741 = x_739; } else { - lean_dec_ref(x_731); - x_733 = lean_box(0); + lean_dec_ref(x_739); + x_741 = lean_box(0); } -lean_inc(x_723); -x_734 = l_Lean_Expr_app___override(x_6, x_723); -x_735 = lean_expr_instantiate1(x_249, x_723); +lean_inc(x_731); +x_742 = l_Lean_Expr_app___override(x_6, x_731); +x_743 = lean_expr_instantiate1(x_249, x_731); lean_dec(x_249); -x_736 = lean_ctor_get(x_2, 0); -lean_inc(x_736); +x_744 = lean_ctor_get(x_2, 0); +lean_inc(x_744); lean_dec(x_2); -x_737 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_737, 0, x_723); -x_738 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_738, 0, x_736); -lean_ctor_set(x_738, 1, x_7); -lean_ctor_set(x_738, 2, x_19); -lean_ctor_set(x_738, 3, x_737); -x_739 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_739, 0, x_738); -lean_ctor_set(x_739, 1, x_8); -x_740 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_740, 0, x_739); -lean_ctor_set(x_740, 1, x_9); -x_741 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_741, 0, x_735); -lean_ctor_set(x_741, 1, x_740); -x_742 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_742, 0, x_734); -lean_ctor_set(x_742, 1, x_741); -if (lean_is_scalar(x_733)) { - x_743 = lean_alloc_ctor(0, 2, 0); +x_745 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_745, 0, x_731); +x_746 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_746, 0, x_744); +lean_ctor_set(x_746, 1, x_7); +lean_ctor_set(x_746, 2, x_19); +lean_ctor_set(x_746, 3, x_745); +x_747 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_747, 0, x_746); +lean_ctor_set(x_747, 1, x_8); +x_748 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_748, 0, x_747); +lean_ctor_set(x_748, 1, x_9); +x_749 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_749, 0, x_743); +lean_ctor_set(x_749, 1, x_748); +x_750 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_750, 0, x_742); +lean_ctor_set(x_750, 1, x_749); +if (lean_is_scalar(x_741)) { + x_751 = lean_alloc_ctor(0, 2, 0); } else { - x_743 = x_733; + x_751 = x_741; } -lean_ctor_set(x_743, 0, x_742); -lean_ctor_set(x_743, 1, x_732); -return x_743; +lean_ctor_set(x_751, 0, x_750); +lean_ctor_set(x_751, 1, x_740); +return x_751; } else { -lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; -lean_dec(x_701); +lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +lean_dec(x_709); lean_dec(x_249); lean_dec(x_17); lean_dec(x_16); @@ -22367,307 +22451,317 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_744 = lean_ctor_get(x_722, 0); -lean_inc(x_744); -x_745 = lean_ctor_get(x_722, 1); -lean_inc(x_745); -if (lean_is_exclusive(x_722)) { - lean_ctor_release(x_722, 0); - lean_ctor_release(x_722, 1); - x_746 = x_722; +x_752 = lean_ctor_get(x_730, 0); +lean_inc(x_752); +x_753 = lean_ctor_get(x_730, 1); +lean_inc(x_753); +if (lean_is_exclusive(x_730)) { + lean_ctor_release(x_730, 0); + lean_ctor_release(x_730, 1); + x_754 = x_730; } else { - lean_dec_ref(x_722); - x_746 = lean_box(0); + lean_dec_ref(x_730); + x_754 = lean_box(0); } -if (lean_is_scalar(x_746)) { - x_747 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_754)) { + x_755 = lean_alloc_ctor(1, 2, 0); } else { - x_747 = x_746; + x_755 = x_754; } -lean_ctor_set(x_747, 0, x_744); -lean_ctor_set(x_747, 1, x_745); -return x_747; +lean_ctor_set(x_755, 0, x_752); +lean_ctor_set(x_755, 1, x_753); +return x_755; } } } else { -uint8_t x_748; uint8_t x_749; -lean_dec(x_691); +uint8_t x_756; uint8_t x_757; +lean_dec(x_699); lean_dec(x_10); -x_748 = 3; -x_749 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_250, x_748); -if (x_749 == 0) +x_756 = 3; +x_757 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_250, x_756); +if (x_757 == 0) { -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; uint8_t x_764; lean_object* x_765; uint8_t x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_750 = lean_ctor_get(x_2, 0); -lean_inc(x_750); -lean_dec(x_2); -x_751 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_751, 0, x_248); -x_752 = lean_ctor_get(x_16, 5); -lean_inc(x_752); -x_753 = l_Lean_replaceRef(x_750, x_752); -lean_dec(x_752); -x_754 = lean_ctor_get(x_16, 0); -lean_inc(x_754); -x_755 = lean_ctor_get(x_16, 1); -lean_inc(x_755); -x_756 = lean_ctor_get(x_16, 2); -lean_inc(x_756); -x_757 = lean_ctor_get(x_16, 3); -lean_inc(x_757); -x_758 = lean_ctor_get(x_16, 4); +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_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; uint8_t x_772; lean_object* x_773; uint8_t x_774; lean_object* x_775; uint8_t x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; +x_758 = lean_ctor_get(x_2, 0); lean_inc(x_758); -x_759 = lean_ctor_get(x_16, 6); -lean_inc(x_759); -x_760 = lean_ctor_get(x_16, 7); +lean_dec(x_2); +x_759 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_759, 0, x_248); +x_760 = lean_ctor_get(x_16, 5); lean_inc(x_760); -x_761 = lean_ctor_get(x_16, 8); -lean_inc(x_761); -x_762 = lean_ctor_get(x_16, 9); +x_761 = l_Lean_replaceRef(x_758, x_760); +lean_dec(x_760); +x_762 = lean_ctor_get(x_16, 0); lean_inc(x_762); -x_763 = lean_ctor_get(x_16, 10); +x_763 = lean_ctor_get(x_16, 1); lean_inc(x_763); -x_764 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_765 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_765, 0, x_754); -lean_ctor_set(x_765, 1, x_755); -lean_ctor_set(x_765, 2, x_756); -lean_ctor_set(x_765, 3, x_757); -lean_ctor_set(x_765, 4, x_758); -lean_ctor_set(x_765, 5, x_753); -lean_ctor_set(x_765, 6, x_759); -lean_ctor_set(x_765, 7, x_760); -lean_ctor_set(x_765, 8, x_761); -lean_ctor_set(x_765, 9, x_762); -lean_ctor_set(x_765, 10, x_763); -lean_ctor_set_uint8(x_765, sizeof(void*)*11, x_764); -x_766 = 0; -x_767 = lean_box(0); -lean_inc(x_14); -x_768 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_751, x_766, x_767, x_14, x_15, x_765, x_17, x_18); -lean_dec(x_765); -x_769 = lean_ctor_get(x_768, 0); +x_764 = lean_ctor_get(x_16, 2); +lean_inc(x_764); +x_765 = lean_ctor_get(x_16, 3); +lean_inc(x_765); +x_766 = lean_ctor_get(x_16, 4); +lean_inc(x_766); +x_767 = lean_ctor_get(x_16, 6); +lean_inc(x_767); +x_768 = lean_ctor_get(x_16, 7); +lean_inc(x_768); +x_769 = lean_ctor_get(x_16, 8); lean_inc(x_769); -x_770 = lean_ctor_get(x_768, 1); +x_770 = lean_ctor_get(x_16, 9); lean_inc(x_770); -if (lean_is_exclusive(x_768)) { - lean_ctor_release(x_768, 0); - lean_ctor_release(x_768, 1); - x_771 = x_768; -} else { - lean_dec_ref(x_768); - x_771 = lean_box(0); -} -x_772 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_769); -x_773 = lean_ctor_get(x_14, 1); +x_771 = lean_ctor_get(x_16, 10); +lean_inc(x_771); +x_772 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_773 = lean_ctor_get(x_16, 11); lean_inc(x_773); -lean_inc(x_3); -x_774 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_772); -x_775 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_775, 0, x_774); -lean_ctor_set(x_775, 1, x_3); -lean_ctor_set(x_775, 2, x_773); -lean_ctor_set(x_775, 3, x_772); -lean_ctor_set(x_775, 4, x_5); -x_776 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_776, 0, x_775); -x_777 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -if (lean_is_scalar(x_771)) { - x_778 = lean_alloc_ctor(1, 2, 0); -} else { - x_778 = x_771; - lean_ctor_set_tag(x_778, 1); -} -lean_ctor_set(x_778, 0, x_776); -lean_ctor_set(x_778, 1, x_777); -x_779 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_778, x_12, x_13, x_14, x_15, x_16, x_17, x_770); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_780 = lean_ctor_get(x_779, 1); +x_774 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_775 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_775, 0, x_762); +lean_ctor_set(x_775, 1, x_763); +lean_ctor_set(x_775, 2, x_764); +lean_ctor_set(x_775, 3, x_765); +lean_ctor_set(x_775, 4, x_766); +lean_ctor_set(x_775, 5, x_761); +lean_ctor_set(x_775, 6, x_767); +lean_ctor_set(x_775, 7, x_768); +lean_ctor_set(x_775, 8, x_769); +lean_ctor_set(x_775, 9, x_770); +lean_ctor_set(x_775, 10, x_771); +lean_ctor_set(x_775, 11, x_773); +lean_ctor_set_uint8(x_775, sizeof(void*)*12, x_772); +lean_ctor_set_uint8(x_775, sizeof(void*)*12 + 1, x_774); +x_776 = 0; +x_777 = lean_box(0); +lean_inc(x_14); +x_778 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_759, x_776, x_777, x_14, x_15, x_775, x_17, x_18); +lean_dec(x_775); +x_779 = lean_ctor_get(x_778, 0); +lean_inc(x_779); +x_780 = lean_ctor_get(x_778, 1); lean_inc(x_780); -if (lean_is_exclusive(x_779)) { - lean_ctor_release(x_779, 0); - lean_ctor_release(x_779, 1); - x_781 = x_779; +if (lean_is_exclusive(x_778)) { + lean_ctor_release(x_778, 0); + lean_ctor_release(x_778, 1); + x_781 = x_778; } else { - lean_dec_ref(x_779); + lean_dec_ref(x_778); x_781 = lean_box(0); } -lean_inc(x_772); -x_782 = l_Lean_Expr_app___override(x_6, x_772); -x_783 = lean_expr_instantiate1(x_249, x_772); -lean_dec(x_249); -x_784 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_784, 0, x_772); -x_785 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_785, 0, x_750); -lean_ctor_set(x_785, 1, x_7); -lean_ctor_set(x_785, 2, x_19); -lean_ctor_set(x_785, 3, x_784); -x_786 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_8); -x_787 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_787, 0, x_786); -lean_ctor_set(x_787, 1, x_9); -x_788 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_788, 0, x_783); -lean_ctor_set(x_788, 1, x_787); -x_789 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_789, 0, x_782); -lean_ctor_set(x_789, 1, x_788); -if (lean_is_scalar(x_781)) { - x_790 = lean_alloc_ctor(0, 2, 0); -} else { - x_790 = x_781; -} -lean_ctor_set(x_790, 0, x_789); -lean_ctor_set(x_790, 1, x_780); -return x_790; -} -else -{ -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; uint8_t x_805; lean_object* x_806; uint8_t x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; -x_791 = lean_ctor_get(x_2, 0); -lean_inc(x_791); -lean_dec(x_2); -x_792 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_792, 0, x_248); -x_793 = lean_ctor_get(x_16, 5); -lean_inc(x_793); -x_794 = l_Lean_replaceRef(x_791, x_793); -lean_dec(x_793); -x_795 = lean_ctor_get(x_16, 0); -lean_inc(x_795); -x_796 = lean_ctor_get(x_16, 1); -lean_inc(x_796); -x_797 = lean_ctor_get(x_16, 2); -lean_inc(x_797); -x_798 = lean_ctor_get(x_16, 3); -lean_inc(x_798); -x_799 = lean_ctor_get(x_16, 4); -lean_inc(x_799); -x_800 = lean_ctor_get(x_16, 6); -lean_inc(x_800); -x_801 = lean_ctor_get(x_16, 7); -lean_inc(x_801); -x_802 = lean_ctor_get(x_16, 8); -lean_inc(x_802); -x_803 = lean_ctor_get(x_16, 9); -lean_inc(x_803); -x_804 = lean_ctor_get(x_16, 10); -lean_inc(x_804); -x_805 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_806 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_806, 0, x_795); -lean_ctor_set(x_806, 1, x_796); -lean_ctor_set(x_806, 2, x_797); -lean_ctor_set(x_806, 3, x_798); -lean_ctor_set(x_806, 4, x_799); -lean_ctor_set(x_806, 5, x_794); -lean_ctor_set(x_806, 6, x_800); -lean_ctor_set(x_806, 7, x_801); -lean_ctor_set(x_806, 8, x_802); -lean_ctor_set(x_806, 9, x_803); -lean_ctor_set(x_806, 10, x_804); -lean_ctor_set_uint8(x_806, sizeof(void*)*11, x_805); -x_807 = 1; -x_808 = lean_box(0); -lean_inc(x_14); -x_809 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_792, x_807, x_808, x_14, x_15, x_806, x_17, x_18); -lean_dec(x_806); -x_810 = lean_ctor_get(x_809, 0); -lean_inc(x_810); -x_811 = lean_ctor_get(x_809, 1); -lean_inc(x_811); -if (lean_is_exclusive(x_809)) { - lean_ctor_release(x_809, 0); - lean_ctor_release(x_809, 1); - x_812 = x_809; -} else { - lean_dec_ref(x_809); - x_812 = lean_box(0); -} -lean_inc(x_810); -x_813 = l_Lean_Expr_mvarId_x21(x_810); -x_814 = lean_array_push(x_9, x_813); -x_815 = lean_ctor_get(x_14, 1); -lean_inc(x_815); +x_782 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_779); +x_783 = lean_ctor_get(x_14, 1); +lean_inc(x_783); lean_inc(x_3); -x_816 = l_Lean_Name_append(x_4, x_3); -lean_inc(x_810); -x_817 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_817, 0, x_816); -lean_ctor_set(x_817, 1, x_3); -lean_ctor_set(x_817, 2, x_815); -lean_ctor_set(x_817, 3, x_810); -lean_ctor_set(x_817, 4, x_5); -x_818 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_818, 0, x_817); -x_819 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; -if (lean_is_scalar(x_812)) { - x_820 = lean_alloc_ctor(1, 2, 0); +x_784 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_782); +x_785 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_785, 0, x_784); +lean_ctor_set(x_785, 1, x_3); +lean_ctor_set(x_785, 2, x_783); +lean_ctor_set(x_785, 3, x_782); +lean_ctor_set(x_785, 4, x_5); +x_786 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_786, 0, x_785); +x_787 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +if (lean_is_scalar(x_781)) { + x_788 = lean_alloc_ctor(1, 2, 0); } else { - x_820 = x_812; - lean_ctor_set_tag(x_820, 1); + x_788 = x_781; + lean_ctor_set_tag(x_788, 1); } -lean_ctor_set(x_820, 0, x_818); -lean_ctor_set(x_820, 1, x_819); -x_821 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_820, x_12, x_13, x_14, x_15, x_16, x_17, x_811); +lean_ctor_set(x_788, 0, x_786); +lean_ctor_set(x_788, 1, x_787); +x_789 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_788, x_12, x_13, x_14, x_15, x_16, x_17, x_780); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -x_822 = lean_ctor_get(x_821, 1); +x_790 = lean_ctor_get(x_789, 1); +lean_inc(x_790); +if (lean_is_exclusive(x_789)) { + lean_ctor_release(x_789, 0); + lean_ctor_release(x_789, 1); + x_791 = x_789; +} else { + lean_dec_ref(x_789); + x_791 = lean_box(0); +} +lean_inc(x_782); +x_792 = l_Lean_Expr_app___override(x_6, x_782); +x_793 = lean_expr_instantiate1(x_249, x_782); +lean_dec(x_249); +x_794 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_794, 0, x_782); +x_795 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_795, 0, x_758); +lean_ctor_set(x_795, 1, x_7); +lean_ctor_set(x_795, 2, x_19); +lean_ctor_set(x_795, 3, x_794); +x_796 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_796, 0, x_795); +lean_ctor_set(x_796, 1, x_8); +x_797 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_797, 0, x_796); +lean_ctor_set(x_797, 1, x_9); +x_798 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_798, 0, x_793); +lean_ctor_set(x_798, 1, x_797); +x_799 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_799, 0, x_792); +lean_ctor_set(x_799, 1, x_798); +if (lean_is_scalar(x_791)) { + x_800 = lean_alloc_ctor(0, 2, 0); +} else { + x_800 = x_791; +} +lean_ctor_set(x_800, 0, x_799); +lean_ctor_set(x_800, 1, x_790); +return x_800; +} +else +{ +lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; uint8_t x_815; lean_object* x_816; uint8_t x_817; lean_object* x_818; uint8_t x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; +x_801 = lean_ctor_get(x_2, 0); +lean_inc(x_801); +lean_dec(x_2); +x_802 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_802, 0, x_248); +x_803 = lean_ctor_get(x_16, 5); +lean_inc(x_803); +x_804 = l_Lean_replaceRef(x_801, x_803); +lean_dec(x_803); +x_805 = lean_ctor_get(x_16, 0); +lean_inc(x_805); +x_806 = lean_ctor_get(x_16, 1); +lean_inc(x_806); +x_807 = lean_ctor_get(x_16, 2); +lean_inc(x_807); +x_808 = lean_ctor_get(x_16, 3); +lean_inc(x_808); +x_809 = lean_ctor_get(x_16, 4); +lean_inc(x_809); +x_810 = lean_ctor_get(x_16, 6); +lean_inc(x_810); +x_811 = lean_ctor_get(x_16, 7); +lean_inc(x_811); +x_812 = lean_ctor_get(x_16, 8); +lean_inc(x_812); +x_813 = lean_ctor_get(x_16, 9); +lean_inc(x_813); +x_814 = lean_ctor_get(x_16, 10); +lean_inc(x_814); +x_815 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_816 = lean_ctor_get(x_16, 11); +lean_inc(x_816); +x_817 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_818 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_818, 0, x_805); +lean_ctor_set(x_818, 1, x_806); +lean_ctor_set(x_818, 2, x_807); +lean_ctor_set(x_818, 3, x_808); +lean_ctor_set(x_818, 4, x_809); +lean_ctor_set(x_818, 5, x_804); +lean_ctor_set(x_818, 6, x_810); +lean_ctor_set(x_818, 7, x_811); +lean_ctor_set(x_818, 8, x_812); +lean_ctor_set(x_818, 9, x_813); +lean_ctor_set(x_818, 10, x_814); +lean_ctor_set(x_818, 11, x_816); +lean_ctor_set_uint8(x_818, sizeof(void*)*12, x_815); +lean_ctor_set_uint8(x_818, sizeof(void*)*12 + 1, x_817); +x_819 = 1; +x_820 = lean_box(0); +lean_inc(x_14); +x_821 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_802, x_819, x_820, x_14, x_15, x_818, x_17, x_18); +lean_dec(x_818); +x_822 = lean_ctor_get(x_821, 0); lean_inc(x_822); +x_823 = lean_ctor_get(x_821, 1); +lean_inc(x_823); if (lean_is_exclusive(x_821)) { lean_ctor_release(x_821, 0); lean_ctor_release(x_821, 1); - x_823 = x_821; + x_824 = x_821; } else { lean_dec_ref(x_821); - x_823 = lean_box(0); + x_824 = lean_box(0); } -lean_inc(x_810); -x_824 = l_Lean_Expr_app___override(x_6, x_810); -x_825 = lean_expr_instantiate1(x_249, x_810); -lean_dec(x_249); -x_826 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_826, 0, x_810); -x_827 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_827, 0, x_791); -lean_ctor_set(x_827, 1, x_7); -lean_ctor_set(x_827, 2, x_19); -lean_ctor_set(x_827, 3, x_826); -x_828 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_828, 0, x_827); -lean_ctor_set(x_828, 1, x_8); -x_829 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_822); +x_825 = l_Lean_Expr_mvarId_x21(x_822); +x_826 = lean_array_push(x_9, x_825); +x_827 = lean_ctor_get(x_14, 1); +lean_inc(x_827); +lean_inc(x_3); +x_828 = l_Lean_Name_append(x_4, x_3); +lean_inc(x_822); +x_829 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_829, 0, x_828); -lean_ctor_set(x_829, 1, x_814); -x_830 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_830, 0, x_825); -lean_ctor_set(x_830, 1, x_829); -x_831 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_831, 0, x_824); -lean_ctor_set(x_831, 1, x_830); -if (lean_is_scalar(x_823)) { - x_832 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_829, 1, x_3); +lean_ctor_set(x_829, 2, x_827); +lean_ctor_set(x_829, 3, x_822); +lean_ctor_set(x_829, 4, x_5); +x_830 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_830, 0, x_829); +x_831 = l_List_foldlM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__3___lambda__1___closed__3; +if (lean_is_scalar(x_824)) { + x_832 = lean_alloc_ctor(1, 2, 0); } else { - x_832 = x_823; + x_832 = x_824; + lean_ctor_set_tag(x_832, 1); } -lean_ctor_set(x_832, 0, x_831); -lean_ctor_set(x_832, 1, x_822); -return x_832; +lean_ctor_set(x_832, 0, x_830); +lean_ctor_set(x_832, 1, x_831); +x_833 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(x_832, x_12, x_13, x_14, x_15, x_16, x_17, x_823); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_834 = lean_ctor_get(x_833, 1); +lean_inc(x_834); +if (lean_is_exclusive(x_833)) { + lean_ctor_release(x_833, 0); + lean_ctor_release(x_833, 1); + x_835 = x_833; +} else { + lean_dec_ref(x_833); + x_835 = lean_box(0); +} +lean_inc(x_822); +x_836 = l_Lean_Expr_app___override(x_6, x_822); +x_837 = lean_expr_instantiate1(x_249, x_822); +lean_dec(x_249); +x_838 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_838, 0, x_822); +x_839 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_839, 0, x_801); +lean_ctor_set(x_839, 1, x_7); +lean_ctor_set(x_839, 2, x_19); +lean_ctor_set(x_839, 3, x_838); +x_840 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_840, 0, x_839); +lean_ctor_set(x_840, 1, x_8); +x_841 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_841, 0, x_840); +lean_ctor_set(x_841, 1, x_826); +x_842 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_842, 0, x_837); +lean_ctor_set(x_842, 1, x_841); +x_843 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_843, 0, x_836); +lean_ctor_set(x_843, 1, x_842); +if (lean_is_scalar(x_835)) { + x_844 = lean_alloc_ctor(0, 2, 0); +} else { + x_844 = x_835; +} +lean_ctor_set(x_844, 0, x_843); +lean_ctor_set(x_844, 1, x_834); +return x_844; } } } @@ -22677,70 +22771,75 @@ return x_832; } else { -lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; uint8_t x_851; lean_object* x_852; lean_object* x_853; +lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; uint8_t x_863; lean_object* x_864; uint8_t x_865; lean_object* x_866; lean_object* x_867; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_833 = lean_ctor_get(x_2, 0); -lean_inc(x_833); -lean_dec(x_2); -x_834 = l_Lean_indentExpr(x_1); -x_835 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; -x_836 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_836, 0, x_835); -lean_ctor_set(x_836, 1, x_834); -x_837 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___lambda__2___closed__22; -x_838 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_838, 0, x_836); -lean_ctor_set(x_838, 1, x_837); -x_839 = lean_ctor_get(x_16, 5); -lean_inc(x_839); -x_840 = l_Lean_replaceRef(x_833, x_839); -lean_dec(x_839); -lean_dec(x_833); -x_841 = lean_ctor_get(x_16, 0); -lean_inc(x_841); -x_842 = lean_ctor_get(x_16, 1); -lean_inc(x_842); -x_843 = lean_ctor_get(x_16, 2); -lean_inc(x_843); -x_844 = lean_ctor_get(x_16, 3); -lean_inc(x_844); -x_845 = lean_ctor_get(x_16, 4); +x_845 = lean_ctor_get(x_2, 0); lean_inc(x_845); -x_846 = lean_ctor_get(x_16, 6); -lean_inc(x_846); -x_847 = lean_ctor_get(x_16, 7); -lean_inc(x_847); -x_848 = lean_ctor_get(x_16, 8); -lean_inc(x_848); -x_849 = lean_ctor_get(x_16, 9); -lean_inc(x_849); -x_850 = lean_ctor_get(x_16, 10); -lean_inc(x_850); -x_851 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); +lean_dec(x_2); +x_846 = l_Lean_indentExpr(x_1); +x_847 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; +x_848 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_848, 0, x_847); +lean_ctor_set(x_848, 1, x_846); +x_849 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___lambda__2___closed__22; +x_850 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_850, 0, x_848); +lean_ctor_set(x_850, 1, x_849); +x_851 = lean_ctor_get(x_16, 5); +lean_inc(x_851); +x_852 = l_Lean_replaceRef(x_845, x_851); +lean_dec(x_851); +lean_dec(x_845); +x_853 = lean_ctor_get(x_16, 0); +lean_inc(x_853); +x_854 = lean_ctor_get(x_16, 1); +lean_inc(x_854); +x_855 = lean_ctor_get(x_16, 2); +lean_inc(x_855); +x_856 = lean_ctor_get(x_16, 3); +lean_inc(x_856); +x_857 = lean_ctor_get(x_16, 4); +lean_inc(x_857); +x_858 = lean_ctor_get(x_16, 6); +lean_inc(x_858); +x_859 = lean_ctor_get(x_16, 7); +lean_inc(x_859); +x_860 = lean_ctor_get(x_16, 8); +lean_inc(x_860); +x_861 = lean_ctor_get(x_16, 9); +lean_inc(x_861); +x_862 = lean_ctor_get(x_16, 10); +lean_inc(x_862); +x_863 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_864 = lean_ctor_get(x_16, 11); +lean_inc(x_864); +x_865 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); lean_dec(x_16); -x_852 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_852, 0, x_841); -lean_ctor_set(x_852, 1, x_842); -lean_ctor_set(x_852, 2, x_843); -lean_ctor_set(x_852, 3, x_844); -lean_ctor_set(x_852, 4, x_845); -lean_ctor_set(x_852, 5, x_840); -lean_ctor_set(x_852, 6, x_846); -lean_ctor_set(x_852, 7, x_847); -lean_ctor_set(x_852, 8, x_848); -lean_ctor_set(x_852, 9, x_849); -lean_ctor_set(x_852, 10, x_850); -lean_ctor_set_uint8(x_852, sizeof(void*)*11, x_851); -x_853 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_3, x_4, x_838, x_12, x_13, x_14, x_15, x_852, x_17, x_18); +x_866 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_866, 0, x_853); +lean_ctor_set(x_866, 1, x_854); +lean_ctor_set(x_866, 2, x_855); +lean_ctor_set(x_866, 3, x_856); +lean_ctor_set(x_866, 4, x_857); +lean_ctor_set(x_866, 5, x_852); +lean_ctor_set(x_866, 6, x_858); +lean_ctor_set(x_866, 7, x_859); +lean_ctor_set(x_866, 8, x_860); +lean_ctor_set(x_866, 9, x_861); +lean_ctor_set(x_866, 10, x_862); +lean_ctor_set(x_866, 11, x_864); +lean_ctor_set_uint8(x_866, sizeof(void*)*12, x_863); +lean_ctor_set_uint8(x_866, sizeof(void*)*12 + 1, x_865); +x_867 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_3, x_4, x_850, x_12, x_13, x_14, x_15, x_866, x_17, x_18); lean_dec(x_17); lean_dec(x_15); lean_dec(x_13); -return x_853; +return x_867; } } } @@ -24403,7 +24502,7 @@ return x_54; } 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t 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; uint8_t x_78; +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; uint8_t x_66; lean_object* x_67; uint8_t 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; uint8_t x_80; x_55 = lean_ctor_get(x_7, 0); x_56 = lean_ctor_get(x_7, 1); x_57 = lean_ctor_get(x_7, 2); @@ -24415,7 +24514,10 @@ x_62 = lean_ctor_get(x_7, 7); x_63 = lean_ctor_get(x_7, 8); x_64 = lean_ctor_get(x_7, 9); x_65 = lean_ctor_get(x_7, 10); -x_66 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_66 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_67 = lean_ctor_get(x_7, 11); +x_68 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_67); lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); @@ -24428,104 +24530,106 @@ lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); lean_dec(x_7); -x_67 = l_Lean_replaceRef(x_10, x_60); +x_69 = l_Lean_replaceRef(x_10, x_60); lean_dec(x_60); lean_dec(x_10); -x_68 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_68, 0, x_55); -lean_ctor_set(x_68, 1, x_56); -lean_ctor_set(x_68, 2, x_57); -lean_ctor_set(x_68, 3, x_58); -lean_ctor_set(x_68, 4, x_59); -lean_ctor_set(x_68, 5, x_67); -lean_ctor_set(x_68, 6, x_61); -lean_ctor_set(x_68, 7, x_62); -lean_ctor_set(x_68, 8, x_63); -lean_ctor_set(x_68, 9, x_64); -lean_ctor_set(x_68, 10, x_65); -lean_ctor_set_uint8(x_68, sizeof(void*)*11, x_66); -x_69 = lean_st_ref_get(x_8, x_9); -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; +x_70 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_70, 0, x_55); +lean_ctor_set(x_70, 1, x_56); +lean_ctor_set(x_70, 2, x_57); +lean_ctor_set(x_70, 3, x_58); +lean_ctor_set(x_70, 4, x_59); +lean_ctor_set(x_70, 5, x_69); +lean_ctor_set(x_70, 6, x_61); +lean_ctor_set(x_70, 7, x_62); +lean_ctor_set(x_70, 8, x_63); +lean_ctor_set(x_70, 9, x_64); +lean_ctor_set(x_70, 10, x_65); +lean_ctor_set(x_70, 11, x_67); +lean_ctor_set_uint8(x_70, sizeof(void*)*12, x_66); +lean_ctor_set_uint8(x_70, sizeof(void*)*12 + 1, x_68); +x_71 = lean_st_ref_get(x_8, x_9); +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_69); - x_72 = lean_box(0); + lean_dec_ref(x_71); + x_74 = lean_box(0); } -x_73 = lean_ctor_get(x_70, 0); -lean_inc(x_73); -lean_dec(x_70); -x_74 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); -lean_inc(x_74); -lean_inc(x_73); -x_75 = l_Lean_getStructureCtor(x_73, x_74); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -lean_dec(x_76); -lean_inc(x_73); -x_78 = l_Lean_isPrivateNameFromImportedModule(x_73, x_77); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; +x_75 = lean_ctor_get(x_72, 0); +lean_inc(x_75); lean_dec(x_72); -x_79 = lean_box(0); -x_80 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___lambda__1(x_75, x_2, x_1, x_73, x_74, x_79, x_3, x_4, x_5, x_6, x_68, x_8, x_71); -return x_80; +x_76 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); +lean_inc(x_76); +lean_inc(x_75); +x_77 = l_Lean_getStructureCtor(x_75, x_76); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +lean_dec(x_78); +lean_inc(x_75); +x_80 = l_Lean_isPrivateNameFromImportedModule(x_75, x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_74); +x_81 = lean_box(0); +x_82 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___lambda__1(x_77, x_2, x_1, x_75, x_76, x_81, x_3, x_4, x_5, x_6, x_70, x_8, x_73); +return x_82; } else { -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_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_dec(x_77); lean_dec(x_75); -lean_dec(x_73); lean_dec(x_2); lean_dec(x_1); -x_81 = l_Lean_MessageData_ofName(x_74); -x_82 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___closed__2; -if (lean_is_scalar(x_72)) { - x_83 = lean_alloc_ctor(6, 2, 0); +x_83 = l_Lean_MessageData_ofName(x_76); +x_84 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___closed__2; +if (lean_is_scalar(x_74)) { + x_85 = lean_alloc_ctor(6, 2, 0); } else { - x_83 = x_72; - lean_ctor_set_tag(x_83, 6); + x_85 = x_74; + lean_ctor_set_tag(x_85, 6); } -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___closed__4; -x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_85, x_3, x_4, x_5, x_6, x_68, x_8, x_71); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___closed__4; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_87, x_3, x_4, x_5, x_6, x_70, x_8, x_73); lean_dec(x_8); -lean_dec(x_68); +lean_dec(x_70); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_89 = x_86; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; } else { - lean_dec_ref(x_86); - x_89 = lean_box(0); + lean_dec_ref(x_88); + x_91 = lean_box(0); } -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); } else { - x_90 = x_89; + x_92 = x_91; } -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +return x_92; } } } @@ -26502,21 +26606,21 @@ x_14 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); x_15 = l_Lean_BinderInfo_isExplicit(x_13); if (x_15 == 0) { -uint8_t x_162; -x_162 = 0; -x_16 = x_162; -goto block_161; +uint8_t x_164; +x_164 = 0; +x_16 = x_164; +goto block_163; } else { -uint8_t x_163; -x_163 = 1; -x_16 = x_163; -goto block_161; +uint8_t x_165; +x_165 = 1; +x_16 = x_165; +goto block_163; } -block_161: +block_163: { -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; lean_object* x_30; +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; lean_object* x_30; uint8_t x_31; lean_object* x_32; x_17 = lean_ctor_get(x_7, 5); lean_inc(x_17); x_18 = l_Lean_replaceRef(x_14, x_17); @@ -26542,102 +26646,107 @@ x_27 = lean_ctor_get(x_7, 9); lean_inc(x_27); x_28 = lean_ctor_get(x_7, 10); lean_inc(x_28); -x_29 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_30 = lean_ctor_get(x_7, 11); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); lean_dec(x_7); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_19); -lean_ctor_set(x_30, 1, x_20); -lean_ctor_set(x_30, 2, x_21); -lean_ctor_set(x_30, 3, x_22); -lean_ctor_set(x_30, 4, x_23); -lean_ctor_set(x_30, 5, x_18); -lean_ctor_set(x_30, 6, x_24); -lean_ctor_set(x_30, 7, x_25); -lean_ctor_set(x_30, 8, x_26); -lean_ctor_set(x_30, 9, x_27); -lean_ctor_set(x_30, 10, x_28); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_29); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_20); +lean_ctor_set(x_32, 2, x_21); +lean_ctor_set(x_32, 3, x_22); +lean_ctor_set(x_32, 4, x_23); +lean_ctor_set(x_32, 5, x_18); +lean_ctor_set(x_32, 6, x_24); +lean_ctor_set(x_32, 7, x_25); +lean_ctor_set(x_32, 8, x_26); +lean_ctor_set(x_32, 9, x_27); +lean_ctor_set(x_32, 10, x_28); +lean_ctor_set(x_32, 11, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_31); if (x_16 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_31 = l_Lean_Elab_Term_StructInst_Struct_params(x_1); -x_32 = lean_box(0); -x_33 = lean_array_get_size(x_31); -x_34 = lean_usize_of_nat(x_33); +lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_33 = l_Lean_Elab_Term_StructInst_Struct_params(x_1); +x_34 = lean_box(0); +x_35 = lean_array_get_size(x_33); +x_36 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_37 = 0; +x_38 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4___closed__1; +x_39 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___spec__1(x_10, x_38, x_33, x_36, x_37, x_38); lean_dec(x_33); -x_35 = 0; -x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields___spec__4___closed__1; -x_37 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___spec__1(x_10, x_36, x_31, x_34, x_35, x_36); -lean_dec(x_31); lean_dec(x_10); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -if (lean_obj_tag(x_38) == 0) +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +lean_dec(x_39); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_39; -x_39 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__5; -if (lean_obj_tag(x_39) == 0) +lean_object* x_41; +x_41 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__5; +if (lean_obj_tag(x_41) == 0) { -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_11); -x_41 = 0; -x_42 = lean_box(0); +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_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_11); +x_43 = 0; +x_44 = lean_box(0); lean_inc(x_5); -x_43 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_40, x_41, x_42, x_5, x_6, x_30, x_8, x_9); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_expr_instantiate1(x_12, x_44); -lean_dec(x_44); +x_45 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_42, x_43, x_44, x_5, x_6, x_32, x_8, x_9); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_expr_instantiate1(x_12, x_46); +lean_dec(x_46); lean_dec(x_12); -x_2 = x_46; -x_7 = x_30; -x_9 = x_45; +x_2 = x_48; +x_7 = x_32; +x_9 = x_47; goto _start; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_39, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_49); -x_50 = lean_infer_type(x_49, x_5, x_6, x_30, x_8, x_9); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_50, 0); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_41, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); lean_dec(x_50); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); -x_53 = l_Lean_Meta_isExprDefEq(x_51, x_11, x_5, x_6, x_30, x_8, x_52); -if (lean_obj_tag(x_53) == 0) +lean_inc(x_51); +x_52 = lean_infer_type(x_51, x_5, x_6, x_32, x_8, x_9); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_53, 0); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); -x_55 = lean_unbox(x_54); -lean_dec(x_54); -if (x_55 == 0) +lean_dec(x_52); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +x_55 = l_Lean_Meta_isExprDefEq(x_53, x_11, x_5, x_6, x_32, x_8, x_54); +if (lean_obj_tag(x_55) == 0) { -uint8_t x_56; -lean_dec(x_49); -lean_dec(x_30); +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +lean_dec(x_56); +if (x_57 == 0) +{ +uint8_t x_58; +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -26645,47 +26754,47 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_53); -if (x_56 == 0) +x_58 = !lean_is_exclusive(x_55); +if (x_58 == 0) { -lean_object* x_57; -x_57 = lean_ctor_get(x_53, 0); -lean_dec(x_57); -lean_ctor_set(x_53, 0, x_32); -return x_53; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -lean_dec(x_53); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_32); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} +lean_object* x_59; +x_59 = lean_ctor_get(x_55, 0); +lean_dec(x_59); +lean_ctor_set(x_55, 0, x_34); +return x_55; } else { lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_53, 1); +x_60 = lean_ctor_get(x_55, 1); lean_inc(x_60); -lean_dec(x_53); -x_61 = lean_expr_instantiate1(x_12, x_49); -lean_dec(x_49); +lean_dec(x_55); +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; +} +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_55, 1); +lean_inc(x_62); +lean_dec(x_55); +x_63 = lean_expr_instantiate1(x_12, x_51); +lean_dec(x_51); lean_dec(x_12); -x_2 = x_61; -x_7 = x_30; -x_9 = x_60; +x_2 = x_63; +x_7 = x_32; +x_9 = x_62; goto _start; } } else { -uint8_t x_63; -lean_dec(x_49); -lean_dec(x_30); +uint8_t x_65; +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -26693,31 +26802,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_53); -if (x_63 == 0) +x_65 = !lean_is_exclusive(x_55); +if (x_65 == 0) { -return x_53; +return x_55; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_53, 0); -x_65 = lean_ctor_get(x_53, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_53); -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; +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_55, 0); +x_67 = lean_ctor_get(x_55, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_55); +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 { -uint8_t x_67; -lean_dec(x_49); -lean_dec(x_30); +uint8_t x_69; +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); @@ -26726,97 +26835,97 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_50); -if (x_67 == 0) +x_69 = !lean_is_exclusive(x_52); +if (x_69 == 0) { -return x_50; +return x_52; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_50, 0); -x_69 = lean_ctor_get(x_50, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_50); -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; +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_52, 0); +x_71 = lean_ctor_get(x_52, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_52); +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 { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_38); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_40); +if (x_73 == 0) { -lean_object* x_72; -x_72 = lean_ctor_get(x_38, 0); -if (lean_obj_tag(x_72) == 0) +lean_object* x_74; +x_74 = lean_ctor_get(x_40, 0); +if (lean_obj_tag(x_74) == 0) { -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_ctor_set(x_38, 0, x_11); -x_73 = 0; -x_74 = lean_box(0); +uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_ctor_set(x_40, 0, x_11); +x_75 = 0; +x_76 = lean_box(0); lean_inc(x_5); -x_75 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_38, x_73, x_74, x_5, x_6, x_30, x_8, x_9); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_expr_instantiate1(x_12, x_76); -lean_dec(x_76); +x_77 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_40, x_75, x_76, x_5, x_6, x_32, x_8, x_9); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_expr_instantiate1(x_12, x_78); +lean_dec(x_78); lean_dec(x_12); -x_2 = x_78; -x_7 = x_30; -x_9 = x_77; +x_2 = x_80; +x_7 = x_32; +x_9 = x_79; goto _start; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_free_object(x_38); -x_80 = lean_ctor_get(x_72, 0); -lean_inc(x_80); -lean_dec(x_72); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_81); -x_82 = lean_infer_type(x_81, x_5, x_6, x_30, x_8, x_9); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_82, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_free_object(x_40); +x_82 = lean_ctor_get(x_74, 0); +lean_inc(x_82); +lean_dec(x_74); +x_83 = lean_ctor_get(x_82, 1); lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); lean_dec(x_82); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); -x_85 = l_Lean_Meta_isExprDefEq(x_83, x_11, x_5, x_6, x_30, x_8, x_84); -if (lean_obj_tag(x_85) == 0) +lean_inc(x_83); +x_84 = lean_infer_type(x_83, x_5, x_6, x_32, x_8, x_9); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_85, 0); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); -x_87 = lean_unbox(x_86); -lean_dec(x_86); -if (x_87 == 0) +lean_dec(x_84); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +x_87 = l_Lean_Meta_isExprDefEq(x_85, x_11, x_5, x_6, x_32, x_8, x_86); +if (lean_obj_tag(x_87) == 0) { -uint8_t x_88; -lean_dec(x_81); -lean_dec(x_30); +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_unbox(x_88); +lean_dec(x_88); +if (x_89 == 0) +{ +uint8_t x_90; +lean_dec(x_83); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -26824,47 +26933,47 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_85); -if (x_88 == 0) +x_90 = !lean_is_exclusive(x_87); +if (x_90 == 0) { -lean_object* x_89; -x_89 = lean_ctor_get(x_85, 0); -lean_dec(x_89); -lean_ctor_set(x_85, 0, x_32); -return x_85; -} -else -{ -lean_object* x_90; lean_object* x_91; -x_90 = lean_ctor_get(x_85, 1); -lean_inc(x_90); -lean_dec(x_85); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_32); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} +lean_object* x_91; +x_91 = lean_ctor_get(x_87, 0); +lean_dec(x_91); +lean_ctor_set(x_87, 0, x_34); +return x_87; } else { lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_85, 1); +x_92 = lean_ctor_get(x_87, 1); lean_inc(x_92); -lean_dec(x_85); -x_93 = lean_expr_instantiate1(x_12, x_81); -lean_dec(x_81); +lean_dec(x_87); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_34); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +lean_dec(x_87); +x_95 = lean_expr_instantiate1(x_12, x_83); +lean_dec(x_83); lean_dec(x_12); -x_2 = x_93; -x_7 = x_30; -x_9 = x_92; +x_2 = x_95; +x_7 = x_32; +x_9 = x_94; goto _start; } } else { -uint8_t x_95; -lean_dec(x_81); -lean_dec(x_30); +uint8_t x_97; +lean_dec(x_83); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -26872,31 +26981,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_95 = !lean_is_exclusive(x_85); -if (x_95 == 0) +x_97 = !lean_is_exclusive(x_87); +if (x_97 == 0) { -return x_85; +return x_87; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_85, 0); -x_97 = lean_ctor_get(x_85, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_85); -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; +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_87, 0); +x_99 = lean_ctor_get(x_87, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_87); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } else { -uint8_t x_99; -lean_dec(x_81); -lean_dec(x_30); +uint8_t x_101; +lean_dec(x_83); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); @@ -26905,95 +27014,95 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_99 = !lean_is_exclusive(x_82); -if (x_99 == 0) +x_101 = !lean_is_exclusive(x_84); +if (x_101 == 0) { -return x_82; +return x_84; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_82, 0); -x_101 = lean_ctor_get(x_82, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_82); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; -} -} -} -} -else -{ -lean_object* x_103; -x_103 = lean_ctor_get(x_38, 0); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_84, 0); +x_103 = lean_ctor_get(x_84, 1); lean_inc(x_103); -lean_dec(x_38); -if (lean_obj_tag(x_103) == 0) +lean_inc(x_102); +lean_dec(x_84); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +} +else { -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; -x_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_11); -x_105 = 0; -x_106 = lean_box(0); +lean_object* x_105; +x_105 = lean_ctor_get(x_40, 0); +lean_inc(x_105); +lean_dec(x_40); +if (lean_obj_tag(x_105) == 0) +{ +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; +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_11); +x_107 = 0; +x_108 = lean_box(0); lean_inc(x_5); -x_107 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_104, x_105, x_106, x_5, x_6, x_30, x_8, x_9); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_expr_instantiate1(x_12, x_108); -lean_dec(x_108); +x_109 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_106, x_107, x_108, x_5, x_6, x_32, x_8, x_9); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_expr_instantiate1(x_12, x_110); +lean_dec(x_110); lean_dec(x_12); -x_2 = x_110; -x_7 = x_30; -x_9 = x_109; +x_2 = x_112; +x_7 = x_32; +x_9 = x_111; goto _start; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_103, 0); -lean_inc(x_112); -lean_dec(x_103); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_113); -x_114 = lean_infer_type(x_113, x_5, x_6, x_30, x_8, x_9); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_114, 0); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_105, 0); +lean_inc(x_114); +lean_dec(x_105); +x_115 = lean_ctor_get(x_114, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); lean_dec(x_114); lean_inc(x_8); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_6); lean_inc(x_5); -x_117 = l_Lean_Meta_isExprDefEq(x_115, x_11, x_5, x_6, x_30, x_8, x_116); -if (lean_obj_tag(x_117) == 0) +lean_inc(x_115); +x_116 = lean_infer_type(x_115, x_5, x_6, x_32, x_8, x_9); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_118; uint8_t x_119; -x_118 = lean_ctor_get(x_117, 0); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); -x_119 = lean_unbox(x_118); -lean_dec(x_118); -if (x_119 == 0) +lean_dec(x_116); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +x_119 = l_Lean_Meta_isExprDefEq(x_117, x_11, x_5, x_6, x_32, x_8, x_118); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_113); -lean_dec(x_30); +lean_object* x_120; uint8_t x_121; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_unbox(x_120); +lean_dec(x_120); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_115); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -27001,45 +27110,45 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_121 = x_117; +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_123 = x_119; } else { - lean_dec_ref(x_117); - x_121 = lean_box(0); + lean_dec_ref(x_119); + x_123 = lean_box(0); } -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(0, 2, 0); } else { - x_122 = x_121; + x_124 = x_123; } -lean_ctor_set(x_122, 0, x_32); -lean_ctor_set(x_122, 1, x_120); -return x_122; +lean_ctor_set(x_124, 0, x_34); +lean_ctor_set(x_124, 1, x_122); +return x_124; } else { -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_117, 1); -lean_inc(x_123); -lean_dec(x_117); -x_124 = lean_expr_instantiate1(x_12, x_113); -lean_dec(x_113); +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_119, 1); +lean_inc(x_125); +lean_dec(x_119); +x_126 = lean_expr_instantiate1(x_12, x_115); +lean_dec(x_115); lean_dec(x_12); -x_2 = x_124; -x_7 = x_30; -x_9 = x_123; +x_2 = x_126; +x_7 = x_32; +x_9 = x_125; goto _start; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_113); -lean_dec(x_30); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_115); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_8); lean_dec(x_6); @@ -27047,33 +27156,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_126 = lean_ctor_get(x_117, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_117, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_128 = x_117; +x_128 = lean_ctor_get(x_119, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_119, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_130 = x_119; } else { - lean_dec_ref(x_117); - x_128 = lean_box(0); + lean_dec_ref(x_119); + x_130 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); } else { - x_129 = x_128; + x_131 = x_130; } -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); +return x_131; } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_113); -lean_dec(x_30); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_115); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); @@ -27082,26 +27191,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_130 = lean_ctor_get(x_114, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_114, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_132 = x_114; +x_132 = lean_ctor_get(x_116, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_116, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_134 = x_116; } else { - lean_dec_ref(x_114); - x_132 = lean_box(0); + lean_dec_ref(x_116); + x_134 = lean_box(0); } -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); } else { - x_133 = x_132; + x_135 = x_134; } -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -return x_133; +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); +return x_135; } } } @@ -27109,145 +27218,12 @@ return x_133; } else { -lean_object* x_134; -x_134 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_10); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_135; lean_object* x_136; -lean_dec(x_30); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_135 = lean_box(0); -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_9); -return x_136; -} -else +lean_object* x_136; +x_136 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_10); +if (lean_obj_tag(x_136) == 0) { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_134, 0); -lean_inc(x_137); -lean_dec(x_134); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_137); -x_138 = lean_infer_type(x_137, x_5, x_6, x_30, x_8, x_9); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -lean_inc(x_8); -lean_inc(x_30); -lean_inc(x_6); -lean_inc(x_5); -x_141 = l_Lean_Meta_isExprDefEq(x_139, x_11, x_5, x_6, x_30, x_8, x_140); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; uint8_t x_143; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_unbox(x_142); -lean_dec(x_142); -if (x_143 == 0) -{ -uint8_t x_144; -lean_dec(x_137); -lean_dec(x_30); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_144 = !lean_is_exclusive(x_141); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_141, 0); -lean_dec(x_145); -x_146 = lean_box(0); -lean_ctor_set(x_141, 0, x_146); -return x_141; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_141, 1); -lean_inc(x_147); -lean_dec(x_141); -x_148 = lean_box(0); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -} -else -{ -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_141, 1); -lean_inc(x_150); -lean_dec(x_141); -x_151 = lean_expr_instantiate1(x_12, x_137); -lean_dec(x_137); -lean_dec(x_12); -x_2 = x_151; -x_7 = x_30; -x_9 = x_150; -goto _start; -} -} -else -{ -uint8_t x_153; -lean_dec(x_137); -lean_dec(x_30); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_153 = !lean_is_exclusive(x_141); -if (x_153 == 0) -{ -return x_141; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_141, 0); -x_155 = lean_ctor_get(x_141, 1); -lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_141); -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_137); -lean_dec(x_30); +lean_dec(x_32); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); @@ -27256,99 +27232,232 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_157 = !lean_is_exclusive(x_138); -if (x_157 == 0) -{ +x_137 = lean_box(0); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_9); return x_138; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_138, 0); -x_159 = lean_ctor_get(x_138, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_138); -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 +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +lean_dec(x_136); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_139); +x_140 = lean_infer_type(x_139, x_5, x_6, x_32, x_8, x_9); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_164; lean_object* x_165; uint8_t x_166; +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +lean_inc(x_8); +lean_inc(x_32); +lean_inc(x_6); +lean_inc(x_5); +x_143 = l_Lean_Meta_isExprDefEq(x_141, x_11, x_5, x_6, x_32, x_8, x_142); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; uint8_t x_145; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_unbox(x_144); +lean_dec(x_144); +if (x_145 == 0) +{ +uint8_t x_146; +lean_dec(x_139); +lean_dec(x_32); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_164 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__1; +x_146 = !lean_is_exclusive(x_143); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; +x_147 = lean_ctor_get(x_143, 0); +lean_dec(x_147); +x_148 = lean_box(0); +lean_ctor_set(x_143, 0, x_148); +return x_143; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_143, 1); +lean_inc(x_149); +lean_dec(x_143); +x_150 = lean_box(0); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_149); +return x_151; +} +} +else +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_ctor_get(x_143, 1); +lean_inc(x_152); +lean_dec(x_143); +x_153 = lean_expr_instantiate1(x_12, x_139); +lean_dec(x_139); +lean_dec(x_12); +x_2 = x_153; +x_7 = x_32; +x_9 = x_152; +goto _start; +} +} +else +{ +uint8_t x_155; +lean_dec(x_139); +lean_dec(x_32); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_155 = !lean_is_exclusive(x_143); +if (x_155 == 0) +{ +return x_143; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_143, 0); +x_157 = lean_ctor_get(x_143, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_143); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +else +{ +uint8_t x_159; +lean_dec(x_139); +lean_dec(x_32); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_159 = !lean_is_exclusive(x_140); +if (x_159 == 0) +{ +return x_140; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_140, 0); +x_161 = lean_ctor_get(x_140, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_140); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +} +} +} +} +else +{ +lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec(x_1); +x_166 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__1; lean_inc(x_2); -x_165 = l_Lean_Expr_cleanupAnnotations(x_2); -x_166 = l_Lean_Expr_isApp(x_165); -if (x_166 == 0) +x_167 = l_Lean_Expr_cleanupAnnotations(x_2); +x_168 = l_Lean_Expr_isApp(x_167); +if (x_168 == 0) { -lean_object* x_167; lean_object* x_168; -lean_dec(x_165); -x_167 = lean_box(0); -x_168 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_169; lean_object* x_170; +lean_dec(x_167); +x_169 = lean_box(0); +x_170 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_169, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_168; +return x_170; } else { -lean_object* x_169; lean_object* x_170; uint8_t x_171; -x_169 = l_Lean_Expr_appArg(x_165, lean_box(0)); -x_170 = l_Lean_Expr_appFnCleanup(x_165, lean_box(0)); -x_171 = l_Lean_Expr_isApp(x_170); -if (x_171 == 0) +lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_171 = l_Lean_Expr_appArg(x_167, lean_box(0)); +x_172 = l_Lean_Expr_appFnCleanup(x_167, lean_box(0)); +x_173 = l_Lean_Expr_isApp(x_172); +if (x_173 == 0) { -lean_object* x_172; lean_object* x_173; -lean_dec(x_170); -lean_dec(x_169); -x_172 = lean_box(0); -x_173 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_172, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_174; lean_object* x_175; +lean_dec(x_172); +lean_dec(x_171); +x_174 = lean_box(0); +x_175 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_174, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_173; +return x_175; } else { -lean_object* x_174; lean_object* x_175; uint8_t x_176; -x_174 = l_Lean_Expr_appFnCleanup(x_170, lean_box(0)); -x_175 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__3; -x_176 = l_Lean_Expr_isConstOf(x_174, x_175); -lean_dec(x_174); -if (x_176 == 0) +lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_176 = l_Lean_Expr_appFnCleanup(x_172, lean_box(0)); +x_177 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___closed__3; +x_178 = l_Lean_Expr_isConstOf(x_176, x_177); +lean_dec(x_176); +if (x_178 == 0) { -lean_object* x_177; lean_object* x_178; -lean_dec(x_169); -x_177 = lean_box(0); -x_178 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_177, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_179; lean_object* x_180; +lean_dec(x_171); +x_179 = lean_box(0); +x_180 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___lambda__2(x_2, x_179, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_178; +return x_180; } else { -lean_object* x_179; +lean_object* x_181; lean_dec(x_2); -x_179 = lean_apply_8(x_164, x_169, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_179; +x_181 = lean_apply_8(x_166, x_171, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_181; } } } @@ -27479,7 +27588,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; 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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +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; uint8_t 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_25 = lean_ctor_get(x_7, 0); x_26 = lean_ctor_get(x_7, 1); x_27 = lean_ctor_get(x_7, 2); @@ -27491,7 +27600,10 @@ x_32 = lean_ctor_get(x_7, 7); x_33 = lean_ctor_get(x_7, 8); x_34 = lean_ctor_get(x_7, 9); x_35 = lean_ctor_get(x_7, 10); -x_36 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_37 = lean_ctor_get(x_7, 11); +x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -27504,76 +27616,78 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_7); -x_37 = l_Lean_replaceRef(x_10, x_30); +x_39 = l_Lean_replaceRef(x_10, x_30); lean_dec(x_30); lean_dec(x_10); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); lean_inc(x_8); -lean_inc(x_38); +lean_inc(x_40); lean_inc(x_6); lean_inc(x_5); -x_39 = l_Lean_Meta_mkFreshLevelMVarsFor(x_2, x_5, x_6, x_38, x_8, x_9); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_8); -lean_inc(x_38); -x_42 = l_Lean_Core_instantiateValueLevelParams(x_2, x_40, x_38, x_8, x_41); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); +x_41 = l_Lean_Meta_mkFreshLevelMVarsFor(x_2, x_5, x_6, x_40, x_8, x_9); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(x_1, x_43, x_3, x_4, x_5, x_6, x_38, x_8, x_44); -return x_45; +lean_dec(x_41); +lean_inc(x_8); +lean_inc(x_40); +x_44 = l_Lean_Core_instantiateValueLevelParams(x_2, x_42, x_40, x_8, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(x_1, x_45, x_3, x_4, x_5, x_6, x_40, x_8, x_46); +return x_47; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_38); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_40); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_46 = lean_ctor_get(x_42, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_48 = x_42; +x_48 = lean_ctor_get(x_44, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_44, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_50 = x_44; } else { - lean_dec_ref(x_42); - x_48 = lean_box(0); + lean_dec_ref(x_44); + x_50 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_48; + x_51 = x_50; } -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } } @@ -29613,7 +29727,7 @@ x_45 = lean_unbox(x_44); lean_dec(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; 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_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +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_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_46 = lean_ctor_get(x_43, 1); lean_inc(x_46); lean_dec(x_43); @@ -29652,72 +29766,77 @@ x_62 = lean_ctor_get(x_9, 9); lean_inc(x_62); x_63 = lean_ctor_get(x_9, 10); lean_inc(x_63); -x_64 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_65 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_65, 0, x_54); -lean_ctor_set(x_65, 1, x_55); -lean_ctor_set(x_65, 2, x_56); -lean_ctor_set(x_65, 3, x_57); -lean_ctor_set(x_65, 4, x_58); -lean_ctor_set(x_65, 5, x_53); -lean_ctor_set(x_65, 6, x_59); -lean_ctor_set(x_65, 7, x_60); -lean_ctor_set(x_65, 8, x_61); -lean_ctor_set(x_65, 9, x_62); -lean_ctor_set(x_65, 10, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_64); -x_66 = lean_unsigned_to_nat(0u); +x_64 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_65 = lean_ctor_get(x_9, 11); +lean_inc(x_65); +x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_67 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_67, 0, x_54); +lean_ctor_set(x_67, 1, x_55); +lean_ctor_set(x_67, 2, x_56); +lean_ctor_set(x_67, 3, x_57); +lean_ctor_set(x_67, 4, x_58); +lean_ctor_set(x_67, 5, x_53); +lean_ctor_set(x_67, 6, x_59); +lean_ctor_set(x_67, 7, x_60); +lean_ctor_set(x_67, 8, x_61); +lean_ctor_set(x_67, 9, x_62); +lean_ctor_set(x_67, 10, x_63); +lean_ctor_set(x_67, 11, x_65); +lean_ctor_set_uint8(x_67, sizeof(void*)*12, x_64); +lean_ctor_set_uint8(x_67, sizeof(void*)*12 + 1, x_66); +x_68 = lean_unsigned_to_nat(0u); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_67 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(x_48, x_49, x_50, x_51, x_42, x_66, x_66, x_5, x_6, x_7, x_8, x_65, x_10, x_46); +x_69 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop(x_48, x_49, x_50, x_51, x_42, x_68, x_68, x_5, x_6, x_7, x_8, x_67, x_10, x_46); lean_dec(x_50); lean_dec(x_48); -if (lean_obj_tag(x_67) == 0) +if (lean_obj_tag(x_69) == 0) { -lean_object* x_68; uint8_t x_69; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_unbox(x_68); -lean_dec(x_68); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_67); -x_71 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; -x_15 = x_71; -x_16 = x_70; -goto block_19; -} -else +x_71 = lean_unbox(x_70); +lean_dec(x_70); +if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_72 = lean_ctor_get(x_67, 1); +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_69, 1); lean_inc(x_72); -lean_dec(x_67); -x_73 = lean_st_ref_take(x_4, x_72); -x_74 = lean_ctor_get(x_73, 1); +lean_dec(x_69); +x_73 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; +x_15 = x_73; +x_16 = x_72; +goto block_19; +} +else +{ +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; +x_74 = lean_ctor_get(x_69, 1); lean_inc(x_74); -lean_dec(x_73); -x_75 = 1; -x_76 = lean_box(x_75); -x_77 = lean_st_ref_set(x_4, x_76, x_74); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -x_79 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; -x_15 = x_79; -x_16 = x_78; +lean_dec(x_69); +x_75 = lean_st_ref_take(x_4, x_74); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = 1; +x_78 = lean_box(x_77); +x_79 = lean_st_ref_set(x_4, x_78, x_76); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec(x_79); +x_81 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; +x_15 = x_81; +x_16 = x_80; goto block_19; } } else { -uint8_t x_80; +uint8_t x_82; lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -29727,47 +29846,47 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_80 = !lean_is_exclusive(x_67); -if (x_80 == 0) +x_82 = !lean_is_exclusive(x_69); +if (x_82 == 0) { -return x_67; +return x_69; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_67, 0); -x_82 = lean_ctor_get(x_67, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_67); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_69, 0); +x_84 = lean_ctor_get(x_69, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_69); +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; } } } else { -lean_object* x_84; lean_object* x_85; +lean_object* x_86; lean_object* x_87; lean_dec(x_42); lean_dec(x_13); -x_84 = lean_ctor_get(x_43, 1); -lean_inc(x_84); +x_86 = lean_ctor_get(x_43, 1); +lean_inc(x_86); lean_dec(x_43); -x_85 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; -x_15 = x_85; -x_16 = x_84; +x_87 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; +x_15 = x_87; +x_16 = x_86; goto block_19; } } else { -lean_object* x_86; +lean_object* x_88; lean_dec(x_41); lean_dec(x_13); -x_86 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; -x_15 = x_86; +x_88 = l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_allDefaultMissing_go___spec__5___rarg___lambda__2___closed__1; +x_15 = x_88; x_16 = x_11; goto block_19; } @@ -31380,7 +31499,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -31392,7 +31511,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -31405,32 +31527,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__14(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__14(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -32851,7 +32975,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -32863,7 +32987,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -32876,29 +33003,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 0669d5dca8..45d514ba45 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -105,6 +105,7 @@ lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(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_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__10; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___closed__1; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -205,7 +206,6 @@ lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__4; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_542____closed__15; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__3(lean_object*); @@ -2228,7 +2228,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -2240,7 +2240,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -2253,29 +2256,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -3500,7 +3505,7 @@ return x_13; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_14 = lean_array_uget(x_1, x_3); x_15 = lean_ctor_get(x_9, 0); lean_inc(x_15); @@ -3524,80 +3529,89 @@ x_24 = lean_ctor_get(x_9, 9); lean_inc(x_24); x_25 = lean_ctor_get(x_9, 10); lean_inc(x_25); -x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_27 = l_Lean_replaceRef(x_14, x_20); +x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_27 = lean_ctor_get(x_9, 11); +lean_inc(x_27); +x_28 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_29 = l_Lean_replaceRef(x_14, x_20); lean_dec(x_20); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_29 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(x_14, x_5, x_6, x_7, x_8, x_28, x_10, x_11); -if (lean_obj_tag(x_29) == 0) +x_31 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(x_14, x_5, x_6, x_7, x_8, x_30, x_10, x_11); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_array_push(x_4, x_30); -x_33 = 1; -x_34 = lean_usize_add(x_3, x_33); -x_3 = x_34; -x_4 = x_32; -x_11 = x_31; +lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; +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_array_push(x_4, x_32); +x_35 = 1; +x_36 = lean_usize_add(x_3, x_35); +x_3 = x_36; +x_4 = x_34; +x_11 = x_33; goto _start; } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_29); -if (x_36 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_29, 0); -x_38 = lean_ctor_get(x_29, 1); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_31, 0); +x_40 = lean_ctor_get(x_31, 1); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) { -lean_object* x_40; -lean_free_object(x_29); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +lean_free_object(x_31); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_40 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_38); -if (lean_obj_tag(x_40) == 0) +x_43 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_41; size_t x_42; size_t x_43; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = 1; -x_43 = lean_usize_add(x_3, x_42); -x_3 = x_43; -x_11 = x_41; +lean_object* x_44; size_t x_45; size_t x_46; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = 1; +x_46 = lean_usize_add(x_3, x_45); +x_3 = x_46; +x_11 = x_44; goto _start; } else { -uint8_t x_45; +uint8_t x_48; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3605,72 +3619,88 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) { -return x_40; +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -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); -return x_29; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_29, 0); -x_50 = lean_ctor_get(x_29, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); lean_inc(x_50); lean_inc(x_49); -lean_dec(x_29); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) +lean_dec(x_43); +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 { -lean_object* x_52; +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); +return x_31; +} +} +else +{ +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); +return x_31; +} +} +else +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_31, 0); +x_53 = lean_ctor_get(x_31, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_31); +x_54 = l_Lean_Exception_isInterrupt(x_52); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = l_Lean_Exception_isRuntime(x_52); +if (x_55 == 0) +{ +lean_object* x_56; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_52 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_52) == 0) +x_56 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_53; size_t x_54; size_t x_55; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = 1; -x_55 = lean_usize_add(x_3, x_54); -x_3 = x_55; -x_11 = x_53; +lean_object* x_57; size_t x_58; size_t x_59; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = 1; +x_59 = lean_usize_add(x_3, x_58); +x_3 = x_59; +x_11 = x_57; goto _start; } else { -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_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3678,31 +3708,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_59 = x_52; +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; } else { - lean_dec_ref(x_52); - x_59 = lean_box(0); + lean_dec_ref(x_56); + x_63 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_60 = x_59; + x_64 = x_63; } -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; } } else { -lean_object* x_61; +lean_object* x_65; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3710,10 +3740,26 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_49); -lean_ctor_set(x_61, 1, x_50); -return x_61; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_52); +lean_ctor_set(x_65, 1, x_53); +return x_65; +} +} +else +{ +lean_object* x_66; +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_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_52); +lean_ctor_set(x_66, 1, x_53); +return x_66; } } } @@ -3904,7 +3950,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -3916,7 +3962,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -3929,29 +3978,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__13(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__13(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -4060,7 +4111,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4072,7 +4123,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4085,29 +4139,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -6039,7 +6095,7 @@ return x_51; } else { -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; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; x_52 = lean_ctor_get(x_8, 0); x_53 = lean_ctor_get(x_8, 1); x_54 = lean_ctor_get(x_8, 2); @@ -6051,7 +6107,10 @@ x_59 = lean_ctor_get(x_8, 7); x_60 = lean_ctor_get(x_8, 8); x_61 = lean_ctor_get(x_8, 9); x_62 = lean_ctor_get(x_8, 10); -x_63 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_63 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_64 = lean_ctor_get(x_8, 11); +x_65 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_64); lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); @@ -6064,112 +6123,114 @@ lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_dec(x_8); -x_64 = l_Lean_replaceRef(x_22, x_57); +x_66 = l_Lean_replaceRef(x_22, x_57); lean_dec(x_57); -x_65 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_65, 0, x_52); -lean_ctor_set(x_65, 1, x_53); -lean_ctor_set(x_65, 2, x_54); -lean_ctor_set(x_65, 3, x_55); -lean_ctor_set(x_65, 4, x_56); -lean_ctor_set(x_65, 5, x_64); -lean_ctor_set(x_65, 6, x_58); -lean_ctor_set(x_65, 7, x_59); -lean_ctor_set(x_65, 8, x_60); -lean_ctor_set(x_65, 9, x_61); -lean_ctor_set(x_65, 10, x_62); -lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_63); +x_67 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_67, 0, x_52); +lean_ctor_set(x_67, 1, x_53); +lean_ctor_set(x_67, 2, x_54); +lean_ctor_set(x_67, 3, x_55); +lean_ctor_set(x_67, 4, x_56); +lean_ctor_set(x_67, 5, x_66); +lean_ctor_set(x_67, 6, x_58); +lean_ctor_set(x_67, 7, x_59); +lean_ctor_set(x_67, 8, x_60); +lean_ctor_set(x_67, 9, x_61); +lean_ctor_set(x_67, 10, x_62); +lean_ctor_set(x_67, 11, x_64); +lean_ctor_set_uint8(x_67, sizeof(void*)*12, x_63); +lean_ctor_set_uint8(x_67, sizeof(void*)*12 + 1, x_65); lean_inc(x_9); -lean_inc(x_65); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_66 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_23, x_4, x_5, x_6, x_7, x_65, x_9, x_10); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -lean_inc(x_9); -lean_inc(x_65); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_69 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17(x_67, x_4, x_5, x_6, x_7, x_65, x_9, x_68); -if (lean_obj_tag(x_69) == 0) +x_68 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1(x_23, x_4, x_5, x_6, x_7, x_67, x_9, x_10); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_70; uint8_t x_71; -x_70 = lean_ctor_get(x_69, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_9); +lean_inc(x_67); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_71 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17(x_69, x_4, x_5, x_6, x_7, x_67, x_9, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l_Lean_Elab_Modifiers_isPrivate(x_69); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; +x_74 = lean_box(0); +x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_22, x_3, x_69, x_2, x_74, x_4, x_5, x_6, x_7, x_67, x_9, x_72); +lean_dec(x_22); +return x_75; +} +else +{ +uint8_t x_76; +x_76 = l_Lean_Elab_Modifiers_isPrivate(x_2); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_box(0); +x_78 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_22, x_3, x_69, x_2, x_77, x_4, x_5, x_6, x_7, x_67, x_9, x_72); +lean_dec(x_22); +return x_78; +} +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; lean_dec(x_69); -x_71 = l_Lean_Elab_Modifiers_isPrivate(x_67); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_box(0); -x_73 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_22, x_3, x_67, x_2, x_72, x_4, x_5, x_6, x_7, x_65, x_9, x_70); -lean_dec(x_22); -return x_73; -} -else -{ -uint8_t x_74; -x_74 = l_Lean_Elab_Modifiers_isPrivate(x_2); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_box(0); -x_76 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2(x_22, x_3, x_67, x_2, x_75, x_4, x_5, x_6, x_7, x_65, x_9, x_70); -lean_dec(x_22); -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_dec(x_67); lean_dec(x_22); lean_dec(x_3); lean_dec(x_2); -x_77 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2; -x_78 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_77, x_4, x_5, x_6, x_7, x_65, x_9, x_70); +x_79 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2; +x_80 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_79, x_4, x_5, x_6, x_7, x_67, x_9, x_72); lean_dec(x_9); -lean_dec(x_65); +lean_dec(x_67); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_81 = x_78; +x_81 = lean_ctor_get(x_80, 0); +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; } else { - lean_dec_ref(x_78); - x_81 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_82 = x_81; + x_84 = x_83; } -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_69); lean_dec(x_67); -lean_dec(x_65); lean_dec(x_22); lean_dec(x_9); lean_dec(x_7); @@ -6178,32 +6239,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_83 = lean_ctor_get(x_69, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_69, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_85 = x_69; +x_85 = lean_ctor_get(x_71, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_71, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_87 = x_71; } else { - lean_dec_ref(x_69); - x_85 = lean_box(0); + lean_dec_ref(x_71); + x_87 = lean_box(0); } -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_86 = x_85; + x_88 = x_87; } -lean_ctor_set(x_86, 0, x_83); -lean_ctor_set(x_86, 1, x_84); -return x_86; +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_86); +return x_88; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_65); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_67); lean_dec(x_22); lean_dec(x_9); lean_dec(x_7); @@ -6212,112 +6273,112 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_87 = lean_ctor_get(x_66, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_66, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_89 = x_66; +x_89 = lean_ctor_get(x_68, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_68, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_91 = x_68; } else { - lean_dec_ref(x_66); - x_89 = lean_box(0); + lean_dec_ref(x_68); + x_91 = lean_box(0); } -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); } else { - x_90 = x_89; + x_92 = x_91; } -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +return x_92; } } } else { -lean_object* x_91; uint8_t x_92; +lean_object* x_93; uint8_t x_94; lean_dec(x_19); lean_dec(x_3); lean_dec(x_2); lean_inc_n(x_15, 2); lean_inc(x_12); -x_91 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__18(x_12, x_15, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) +x_93 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__18(x_12, x_15, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_91, 0); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_93, 0); +lean_dec(x_95); +x_96 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; +x_97 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_97, 0, x_15); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set(x_97, 2, x_11); +lean_ctor_set(x_97, 3, x_12); +lean_ctor_set(x_93, 0, x_97); +return x_93; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_93, 1); +lean_inc(x_98); lean_dec(x_93); -x_94 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_95 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_95, 0, x_15); -lean_ctor_set(x_95, 1, x_94); -lean_ctor_set(x_95, 2, x_11); -lean_ctor_set(x_95, 3, x_12); -lean_ctor_set(x_91, 0, x_95); -return x_91; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_96 = lean_ctor_get(x_91, 1); -lean_inc(x_96); -lean_dec(x_91); -x_97 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_98 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_98, 0, x_15); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_98, 2, x_11); -lean_ctor_set(x_98, 3, x_12); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_96); -return x_99; +x_99 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; +x_100 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_100, 0, x_15); +lean_ctor_set(x_100, 1, x_99); +lean_ctor_set(x_100, 2, x_11); +lean_ctor_set(x_100, 3, x_12); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +return x_101; } } } else { -lean_object* x_100; uint8_t x_101; +lean_object* x_102; uint8_t x_103; lean_dec(x_17); lean_dec(x_3); lean_dec(x_2); lean_inc_n(x_15, 2); lean_inc(x_12); -x_100 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__18(x_12, x_15, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +x_102 = l_Lean_Elab_addAuxDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__18(x_12, x_15, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_103 = !lean_is_exclusive(x_102); +if (x_103 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_104 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_104, 0, x_15); -lean_ctor_set(x_104, 1, x_103); -lean_ctor_set(x_104, 2, x_11); -lean_ctor_set(x_104, 3, x_12); -lean_ctor_set(x_100, 0, x_104); -return x_100; +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_102, 0); +lean_dec(x_104); +x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; +x_106 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_106, 0, x_15); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_106, 2, x_11); +lean_ctor_set(x_106, 3, x_12); +lean_ctor_set(x_102, 0, x_106); +return x_102; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_100, 1); -lean_inc(x_105); -lean_dec(x_100); -x_106 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; -x_107 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_107, 0, x_15); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_11); -lean_ctor_set(x_107, 3, x_12); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_105); -return x_108; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_107 = lean_ctor_get(x_102, 1); +lean_inc(x_107); +lean_dec(x_102); +x_108 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; +x_109 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_109, 0, x_15); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_109, 2, x_11); +lean_ctor_set(x_109, 3, x_12); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_107); +return x_110; } } } @@ -7084,7 +7145,7 @@ uint8_t x_18; x_18 = lean_usize_dec_eq(x_8, x_9); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; x_19 = lean_array_uget(x_7, x_8); x_20 = l_Lean_Syntax_getId(x_19); lean_inc(x_20); @@ -7101,8 +7162,11 @@ x_30 = lean_ctor_get(x_15, 7); x_31 = lean_ctor_get(x_15, 8); x_32 = lean_ctor_get(x_15, 9); x_33 = lean_ctor_get(x_15, 10); -x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*11); -x_35 = l_Lean_replaceRef(x_19, x_28); +x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*12); +x_35 = lean_ctor_get(x_15, 11); +x_36 = lean_ctor_get_uint8(x_15, sizeof(void*)*12 + 1); +x_37 = l_Lean_replaceRef(x_19, x_28); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -7113,22 +7177,24 @@ lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); if (x_22 == 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; +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; uint8_t x_46; lean_dec(x_20); lean_dec(x_10); lean_dec(x_6); @@ -7136,45 +7202,45 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_37 = lean_erase_macro_scopes(x_21); -x_38 = l_Lean_MessageData_ofName(x_37); -x_39 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__4; +x_39 = lean_erase_macro_scopes(x_21); +x_40 = l_Lean_MessageData_ofName(x_39); +x_41 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__2; x_42 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_throwErrorAt___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___spec__1(x_19, x_42, x_11, x_12, x_13, x_14, x_36, x_16, x_17); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___closed__4; +x_44 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_45 = l_Lean_throwErrorAt___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___spec__1(x_19, x_44, x_11, x_12, x_13, x_14, x_38, x_16, x_17); lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_19); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -return x_43; +return x_45; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -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; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_45); +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_48; lean_object* x_49; -x_48 = lean_box(0); +lean_object* x_50; lean_object* x_51; +x_50 = lean_box(0); lean_inc(x_16); lean_inc(x_14); lean_inc(x_13); @@ -7185,25 +7251,25 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_49 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(x_1, x_21, x_3, x_19, x_2, x_20, x_4, x_5, x_6, x_10, x_48, x_11, x_12, x_13, x_14, x_36, x_16, x_17); -if (lean_obj_tag(x_49) == 0) +x_51 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1___lambda__1(x_1, x_21, x_3, x_19, x_2, x_20, x_4, x_5, x_6, x_10, x_50, x_11, x_12, x_13, x_14, x_38, x_16, x_17); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = 1; -x_53 = lean_usize_add(x_8, x_52); -x_8 = x_53; -x_10 = x_50; -x_17 = x_51; +lean_object* x_52; lean_object* x_53; size_t x_54; size_t x_55; +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 = 1; +x_55 = lean_usize_add(x_8, x_54); +x_8 = x_55; +x_10 = x_52; +x_17 = x_53; goto _start; } else { -uint8_t x_55; +uint8_t x_57; lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -7214,30 +7280,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_49); -if (x_55 == 0) +x_57 = !lean_is_exclusive(x_51); +if (x_57 == 0) { -return x_49; +return x_51; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_49, 0); -x_57 = lean_ctor_get(x_49, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_49); -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; +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_51, 0); +x_59 = lean_ctor_get(x_51, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_51); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } } else { -lean_object* x_59; +lean_object* x_61; lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -7248,10 +7314,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_10); -lean_ctor_set(x_59, 1, x_17); -return x_59; +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_10); +lean_ctor_set(x_61, 1, x_17); +return x_61; } } } @@ -7360,7 +7426,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -7372,7 +7438,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -7385,29 +7454,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -8973,7 +9044,7 @@ uint8_t x_14; x_14 = lean_usize_dec_eq(x_4, x_5); if (x_14 == 0) { -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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +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; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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; x_15 = lean_array_uget(x_3, x_4); lean_inc(x_15); x_16 = l_Lean_Syntax_getKind(x_15); @@ -8991,8 +9062,11 @@ x_26 = lean_ctor_get(x_11, 7); x_27 = lean_ctor_get(x_11, 8); x_28 = lean_ctor_get(x_11, 9); x_29 = lean_ctor_get(x_11, 10); -x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_31 = l_Lean_replaceRef(x_15, x_24); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_31 = lean_ctor_get(x_11, 11); +x_32 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_33 = l_Lean_replaceRef(x_15, x_24); +lean_inc(x_31); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -9003,23 +9077,25 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_19); -lean_ctor_set(x_32, 1, x_20); -lean_ctor_set(x_32, 2, x_21); -lean_ctor_set(x_32, 3, x_22); -lean_ctor_set(x_32, 4, x_23); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_30); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); if (x_18 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_box(0); +lean_object* x_35; lean_object* x_36; +x_35 = lean_box(0); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); @@ -9027,25 +9103,25 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); lean_inc(x_2); -x_34 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_15, x_33, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_34) == 0) +x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_15, x_35, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; -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 = 1; -x_38 = lean_usize_add(x_4, x_37); -x_4 = x_38; -x_6 = x_35; -x_13 = x_36; +lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = 1; +x_40 = lean_usize_add(x_4, x_39); +x_4 = x_40; +x_6 = x_37; +x_13 = x_38; goto _start; } else { -uint8_t x_40; +uint8_t x_42; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9053,67 +9129,67 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +x_42 = !lean_is_exclusive(x_36); +if (x_42 == 0) { -return x_34; +return x_36; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_34, 0); -x_42 = lean_ctor_get(x_34, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_34); -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; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_36, 0); +x_44 = lean_ctor_get(x_36, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_36); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_44; 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; 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; -x_44 = lean_unsigned_to_nat(0u); -x_45 = l_Lean_Syntax_getArg(x_15, x_44); -x_46 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__3; -x_47 = 0; +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_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; +x_46 = lean_unsigned_to_nat(0u); +x_47 = l_Lean_Syntax_getArg(x_15, x_46); +x_48 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__3; +x_49 = 0; lean_inc(x_15); -x_48 = l_Lean_mkAtomFrom(x_15, x_46, x_47); -x_49 = lean_unsigned_to_nat(1u); -x_50 = l_Lean_Syntax_getArg(x_15, x_49); -x_51 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; -x_52 = lean_array_push(x_51, x_50); -x_53 = lean_box(2); -x_54 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_52); -x_56 = lean_unsigned_to_nat(2u); -x_57 = l_Lean_Syntax_getArg(x_15, x_56); -x_58 = lean_unsigned_to_nat(3u); +x_50 = l_Lean_mkAtomFrom(x_15, x_48, x_49); +x_51 = lean_unsigned_to_nat(1u); +x_52 = l_Lean_Syntax_getArg(x_15, x_51); +x_53 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; +x_54 = lean_array_push(x_53, x_52); +x_55 = lean_box(2); +x_56 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_54); +x_58 = lean_unsigned_to_nat(2u); x_59 = l_Lean_Syntax_getArg(x_15, x_58); -x_60 = lean_unsigned_to_nat(4u); +x_60 = lean_unsigned_to_nat(3u); x_61 = l_Lean_Syntax_getArg(x_15, x_60); -x_62 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; -x_63 = l_Lean_mkAtomFrom(x_15, x_62, x_47); -x_64 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6; -x_65 = lean_array_push(x_64, x_45); -x_66 = lean_array_push(x_65, x_48); -x_67 = lean_array_push(x_66, x_55); -x_68 = lean_array_push(x_67, x_57); -x_69 = lean_array_push(x_68, x_59); -x_70 = lean_array_push(x_69, x_61); -x_71 = lean_array_push(x_70, x_63); -x_72 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__2; -x_73 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_73, 0, x_53); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set(x_73, 2, x_71); -x_74 = lean_box(0); +x_62 = lean_unsigned_to_nat(4u); +x_63 = l_Lean_Syntax_getArg(x_15, x_62); +x_64 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; +x_65 = l_Lean_mkAtomFrom(x_15, x_64, x_49); +x_66 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6; +x_67 = lean_array_push(x_66, x_47); +x_68 = lean_array_push(x_67, x_50); +x_69 = lean_array_push(x_68, x_57); +x_70 = lean_array_push(x_69, x_59); +x_71 = lean_array_push(x_70, x_61); +x_72 = lean_array_push(x_71, x_63); +x_73 = lean_array_push(x_72, x_65); +x_74 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__2; +x_75 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_75, 0, x_55); +lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_75, 2, x_73); +x_76 = lean_box(0); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); @@ -9121,25 +9197,25 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); lean_inc(x_2); -x_75 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_73, x_74, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_75, x_76, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = 1; -x_79 = lean_usize_add(x_4, x_78); -x_4 = x_79; -x_6 = x_76; -x_13 = x_77; +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = 1; +x_81 = lean_usize_add(x_4, x_80); +x_4 = x_81; +x_6 = x_78; +x_13 = x_79; goto _start; } else { -uint8_t x_81; +uint8_t x_83; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9147,30 +9223,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_75); -if (x_81 == 0) +x_83 = !lean_is_exclusive(x_77); +if (x_83 == 0) { -return x_75; +return x_77; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_75, 0); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_75); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_77, 0); +x_85 = lean_ctor_get(x_77, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_77); +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_85; +lean_object* x_87; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9178,10 +9254,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_6); -lean_ctor_set(x_85, 1, x_13); -return x_85; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_6); +lean_ctor_set(x_87, 1, x_13); +return x_87; } } } @@ -9192,7 +9268,7 @@ uint8_t x_14; x_14 = lean_usize_dec_eq(x_4, x_5); if (x_14 == 0) { -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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +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; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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; x_15 = lean_array_uget(x_3, x_4); lean_inc(x_15); x_16 = l_Lean_Syntax_getKind(x_15); @@ -9210,8 +9286,11 @@ x_26 = lean_ctor_get(x_11, 7); x_27 = lean_ctor_get(x_11, 8); x_28 = lean_ctor_get(x_11, 9); x_29 = lean_ctor_get(x_11, 10); -x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_31 = l_Lean_replaceRef(x_15, x_24); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_31 = lean_ctor_get(x_11, 11); +x_32 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_33 = l_Lean_replaceRef(x_15, x_24); +lean_inc(x_31); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -9222,23 +9301,25 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_19); -lean_ctor_set(x_32, 1, x_20); -lean_ctor_set(x_32, 2, x_21); -lean_ctor_set(x_32, 3, x_22); -lean_ctor_set(x_32, 4, x_23); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_30); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); if (x_18 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_box(0); +lean_object* x_35; lean_object* x_36; +x_35 = lean_box(0); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); @@ -9246,25 +9327,25 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); lean_inc(x_2); -x_34 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_15, x_33, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_34) == 0) +x_36 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_15, x_35, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; -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 = 1; -x_38 = lean_usize_add(x_4, x_37); -x_4 = x_38; -x_6 = x_35; -x_13 = x_36; +lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = 1; +x_40 = lean_usize_add(x_4, x_39); +x_4 = x_40; +x_6 = x_37; +x_13 = x_38; goto _start; } else { -uint8_t x_40; +uint8_t x_42; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9272,67 +9353,67 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +x_42 = !lean_is_exclusive(x_36); +if (x_42 == 0) { -return x_34; +return x_36; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_34, 0); -x_42 = lean_ctor_get(x_34, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_34); -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; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_36, 0); +x_44 = lean_ctor_get(x_36, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_36); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_44; 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; 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; -x_44 = lean_unsigned_to_nat(0u); -x_45 = l_Lean_Syntax_getArg(x_15, x_44); -x_46 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__3; -x_47 = 0; +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_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; +x_46 = lean_unsigned_to_nat(0u); +x_47 = l_Lean_Syntax_getArg(x_15, x_46); +x_48 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__3; +x_49 = 0; lean_inc(x_15); -x_48 = l_Lean_mkAtomFrom(x_15, x_46, x_47); -x_49 = lean_unsigned_to_nat(1u); -x_50 = l_Lean_Syntax_getArg(x_15, x_49); -x_51 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; -x_52 = lean_array_push(x_51, x_50); -x_53 = lean_box(2); -x_54 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_52); -x_56 = lean_unsigned_to_nat(2u); -x_57 = l_Lean_Syntax_getArg(x_15, x_56); -x_58 = lean_unsigned_to_nat(3u); +x_50 = l_Lean_mkAtomFrom(x_15, x_48, x_49); +x_51 = lean_unsigned_to_nat(1u); +x_52 = l_Lean_Syntax_getArg(x_15, x_51); +x_53 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__4; +x_54 = lean_array_push(x_53, x_52); +x_55 = lean_box(2); +x_56 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__6; +x_57 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_54); +x_58 = lean_unsigned_to_nat(2u); x_59 = l_Lean_Syntax_getArg(x_15, x_58); -x_60 = lean_unsigned_to_nat(4u); +x_60 = lean_unsigned_to_nat(3u); x_61 = l_Lean_Syntax_getArg(x_15, x_60); -x_62 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; -x_63 = l_Lean_mkAtomFrom(x_15, x_62, x_47); -x_64 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6; -x_65 = lean_array_push(x_64, x_45); -x_66 = lean_array_push(x_65, x_48); -x_67 = lean_array_push(x_66, x_55); -x_68 = lean_array_push(x_67, x_57); -x_69 = lean_array_push(x_68, x_59); -x_70 = lean_array_push(x_69, x_61); -x_71 = lean_array_push(x_70, x_63); -x_72 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__2; -x_73 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_73, 0, x_53); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set(x_73, 2, x_71); -x_74 = lean_box(0); +x_62 = lean_unsigned_to_nat(4u); +x_63 = l_Lean_Syntax_getArg(x_15, x_62); +x_64 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__5; +x_65 = l_Lean_mkAtomFrom(x_15, x_64, x_49); +x_66 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___closed__6; +x_67 = lean_array_push(x_66, x_47); +x_68 = lean_array_push(x_67, x_50); +x_69 = lean_array_push(x_68, x_57); +x_70 = lean_array_push(x_69, x_59); +x_71 = lean_array_push(x_70, x_61); +x_72 = lean_array_push(x_71, x_63); +x_73 = lean_array_push(x_72, x_65); +x_74 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__2; +x_75 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_75, 0, x_55); +lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_75, 2, x_73); +x_76 = lean_box(0); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); @@ -9340,25 +9421,25 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); lean_inc(x_2); -x_75 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_73, x_74, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6(x_6, x_2, x_1, x_75, x_76, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; lean_object* x_77; size_t x_78; size_t x_79; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = 1; -x_79 = lean_usize_add(x_4, x_78); -x_4 = x_79; -x_6 = x_76; -x_13 = x_77; +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = 1; +x_81 = lean_usize_add(x_4, x_80); +x_4 = x_81; +x_6 = x_78; +x_13 = x_79; goto _start; } else { -uint8_t x_81; +uint8_t x_83; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9366,30 +9447,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_75); -if (x_81 == 0) +x_83 = !lean_is_exclusive(x_77); +if (x_83 == 0) { -return x_75; +return x_77; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_75, 0); -x_83 = lean_ctor_get(x_75, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_75); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_77, 0); +x_85 = lean_ctor_get(x_77, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_77); +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_85; +lean_object* x_87; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -9397,10 +9478,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_6); -lean_ctor_set(x_85, 1, x_13); -return x_85; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_6); +lean_ctor_set(x_87, 1, x_13); +return x_87; } } } @@ -12145,19 +12226,6 @@ return x_28; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f___closed__1() { _start: { @@ -12225,9 +12293,6 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_2); x_27 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed(x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); return x_27; } else @@ -12272,9 +12337,6 @@ x_35 = lean_ctor_get(x_32, 1); lean_inc(x_35); lean_dec(x_32); x_36 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed(x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_35); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); return x_36; } else @@ -12300,6 +12362,8 @@ lean_dec(x_11); 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); @@ -12333,6 +12397,8 @@ lean_dec(x_11); 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); @@ -12370,6 +12436,8 @@ if (x_50 == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; x_51 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_6); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -12434,6 +12502,8 @@ lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean x_66 = l_Lean_Expr_appArg_x21(x_5); lean_dec(x_5); x_67 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_66, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_6); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_ctor_get(x_67, 1); @@ -12500,8 +12570,6 @@ _start: { lean_object* x_13; x_13 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f(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_7); -lean_dec(x_6); lean_dec(x_1); return x_13; } @@ -12530,6 +12598,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12578,7 +12647,6 @@ x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); x_29 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f(x_1, x_2, x_3, x_4, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_28); -lean_dec(x_5); return x_29; } else @@ -12588,6 +12656,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12619,6 +12688,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12665,6 +12735,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12714,7 +12785,6 @@ x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); lean_dec(x_51); x_54 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f(x_1, x_2, x_3, x_4, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_53); -lean_dec(x_5); return x_54; } else @@ -12724,6 +12794,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12757,6 +12828,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -12791,7 +12863,6 @@ _start: { lean_object* x_12; x_12 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f(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_6); lean_dec(x_1); return x_12; } @@ -12808,6 +12879,7 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); @@ -12833,6 +12905,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_19); lean_inc(x_3); @@ -12959,6 +13032,7 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); @@ -12993,7 +13067,6 @@ x_13 = lean_usize_of_nat(x_12); lean_dec(x_12); x_14 = 0; x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_processOveriddenDefaultValues___spec__1(x_2, x_3, x_4, x_13, x_14, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); lean_dec(x_2); return x_15; } @@ -13007,7 +13080,6 @@ lean_dec(x_4); x_15 = lean_unbox_usize(x_5); lean_dec(x_5); x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_processOveriddenDefaultValues___spec__1(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); lean_dec(x_1); return x_16; } @@ -13389,6 +13461,7 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); +lean_inc(x_15); lean_inc(x_14); lean_inc(x_2); lean_inc(x_4); @@ -14894,7 +14967,12 @@ x_67 = lean_string_append(x_65, x_66); lean_ctor_set_tag(x_29, 3); lean_ctor_set(x_29, 0, x_67); x_68 = l_Lean_MessageData_ofFormat(x_29); +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); x_69 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_68, x_6, x_7, x_8, x_9, x_10, x_11, x_51); x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); @@ -14942,7 +15020,12 @@ x_87 = lean_string_append(x_85, x_86); x_88 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_88, 0, x_87); x_89 = l_Lean_MessageData_ofFormat(x_88); +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); x_90 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_89, x_6, x_7, x_8, x_9, x_10, x_11, x_51); x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); @@ -15029,7 +15112,7 @@ return x_101; } 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; 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_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; uint8_t x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; x_102 = lean_ctor_get(x_10, 0); x_103 = lean_ctor_get(x_10, 1); x_104 = lean_ctor_get(x_10, 2); @@ -15041,7 +15124,10 @@ x_109 = lean_ctor_get(x_10, 7); x_110 = lean_ctor_get(x_10, 8); x_111 = lean_ctor_get(x_10, 9); x_112 = lean_ctor_get(x_10, 10); -x_113 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_113 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_114 = lean_ctor_get(x_10, 11); +x_115 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_114); lean_inc(x_112); lean_inc(x_111); lean_inc(x_110); @@ -15054,228 +15140,198 @@ lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); lean_dec(x_10); -x_114 = l_Lean_replaceRef(x_17, x_107); +x_116 = l_Lean_replaceRef(x_17, x_107); lean_dec(x_107); lean_inc(x_104); -x_115 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_115, 0, x_102); -lean_ctor_set(x_115, 1, x_103); -lean_ctor_set(x_115, 2, x_104); -lean_ctor_set(x_115, 3, x_105); -lean_ctor_set(x_115, 4, x_106); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_108); -lean_ctor_set(x_115, 7, x_109); -lean_ctor_set(x_115, 8, x_110); -lean_ctor_set(x_115, 9, x_111); -lean_ctor_set(x_115, 10, x_112); -lean_ctor_set_uint8(x_115, sizeof(void*)*11, x_113); +x_117 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_117, 0, x_102); +lean_ctor_set(x_117, 1, x_103); +lean_ctor_set(x_117, 2, x_104); +lean_ctor_set(x_117, 3, x_105); +lean_ctor_set(x_117, 4, x_106); +lean_ctor_set(x_117, 5, x_116); +lean_ctor_set(x_117, 6, x_108); +lean_ctor_set(x_117, 7, x_109); +lean_ctor_set(x_117, 8, x_110); +lean_ctor_set(x_117, 9, x_111); +lean_ctor_set(x_117, 10, x_112); +lean_ctor_set(x_117, 11, x_114); +lean_ctor_set_uint8(x_117, sizeof(void*)*12, x_113); +lean_ctor_set_uint8(x_117, sizeof(void*)*12 + 1, x_115); lean_inc(x_11); -lean_inc(x_115); +lean_inc(x_117); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_116 = l_Lean_Elab_Term_elabType(x_17, x_6, x_7, x_8, x_9, x_115, x_11, x_12); -if (lean_obj_tag(x_116) == 0) +x_118 = l_Lean_Elab_Term_elabType(x_17, x_6, x_7, x_8, x_9, x_117, x_11, x_12); +if (lean_obj_tag(x_118) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -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); -lean_inc(x_117); -x_119 = l_Lean_Meta_getStructureName(x_117, x_8, x_9, x_115, x_11, x_118); -if (lean_obj_tag(x_119) == 0) +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +lean_inc(x_119); +x_121 = l_Lean_Meta_getStructureName(x_119, x_8, x_9, x_117, x_11, x_120); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -lean_inc(x_120); -x_122 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_4, x_120, x_115, x_11, x_121); -x_123 = lean_ctor_get(x_122, 0); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); lean_inc(x_123); -if (lean_obj_tag(x_123) == 0) +lean_dec(x_121); +lean_inc(x_122); +x_124 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f(x_4, x_122, x_117, x_11, x_123); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; +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; uint8_t x_135; lean_object* x_136; lean_dec(x_104); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); -x_125 = lean_st_ref_get(x_11, x_124); -x_126 = lean_ctor_get(x_125, 0); +x_126 = lean_ctor_get(x_124, 1); lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_ctor_get(x_126, 0); +lean_dec(x_124); +x_127 = lean_st_ref_get(x_11, x_126); +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = 1; -lean_inc(x_120); -lean_inc(x_128); -x_130 = l_Lean_getStructureFieldsFlattened(x_128, x_120, x_129); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = lean_ctor_get(x_128, 0); lean_inc(x_130); -lean_inc(x_4); -x_131 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__1___boxed), 3, 2); -lean_closure_set(x_131, 0, x_4); -lean_closure_set(x_131, 1, x_130); -lean_inc(x_120); -x_132 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName(x_120, x_131); -x_133 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); -lean_inc(x_120); -lean_inc(x_132); -x_134 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__3), 16, 8); -lean_closure_set(x_134, 0, x_1); -lean_closure_set(x_134, 1, x_132); -lean_closure_set(x_134, 2, x_4); -lean_closure_set(x_134, 3, x_3); -lean_closure_set(x_134, 4, x_2); -lean_closure_set(x_134, 5, x_5); -lean_closure_set(x_134, 6, x_120); -lean_closure_set(x_134, 7, x_130); -if (x_133 == 0) -{ -uint8_t x_135; uint8_t x_136; lean_object* x_137; lean_dec(x_128); -lean_dec(x_120); -x_135 = 0; -x_136 = 0; -x_137 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_132, x_135, x_117, x_134, x_136, x_6, x_7, x_8, x_9, x_115, x_11, x_127); -return x_137; -} -else +x_131 = 1; +lean_inc(x_122); +lean_inc(x_130); +x_132 = l_Lean_getStructureFieldsFlattened(x_130, x_122, x_131); +lean_inc(x_132); +lean_inc(x_4); +x_133 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_133, 0, x_4); +lean_closure_set(x_133, 1, x_132); +lean_inc(x_122); +x_134 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkToParentName(x_122, x_133); +x_135 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); +lean_inc(x_122); +lean_inc(x_134); +x_136 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__3), 16, 8); +lean_closure_set(x_136, 0, x_1); +lean_closure_set(x_136, 1, x_134); +lean_closure_set(x_136, 2, x_4); +lean_closure_set(x_136, 3, x_3); +lean_closure_set(x_136, 4, x_2); +lean_closure_set(x_136, 5, x_5); +lean_closure_set(x_136, 6, x_122); +lean_closure_set(x_136, 7, x_132); +if (x_135 == 0) { -uint8_t x_138; -x_138 = lean_is_class(x_128, x_120); -if (x_138 == 0) -{ -uint8_t x_139; uint8_t x_140; lean_object* x_141; -x_139 = 0; -x_140 = 0; -x_141 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_132, x_139, x_117, x_134, x_140, x_6, x_7, x_8, x_9, x_115, x_11, x_127); -return x_141; -} -else -{ -uint8_t x_142; uint8_t x_143; lean_object* x_144; -x_142 = 3; -x_143 = 0; -x_144 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_132, x_142, x_117, x_134, x_143, x_6, x_7, x_8, x_9, x_115, x_11, x_127); -return x_144; -} -} -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -x_145 = lean_ctor_get(x_122, 1); -lean_inc(x_145); +uint8_t x_137; uint8_t x_138; lean_object* x_139; +lean_dec(x_130); lean_dec(x_122); -x_146 = lean_ctor_get(x_123, 0); -lean_inc(x_146); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - x_147 = x_123; -} else { - lean_dec_ref(x_123); - x_147 = lean_box(0); -} -x_148 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1; -x_149 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_104, x_148); -lean_dec(x_104); -if (x_149 == 0) -{ -lean_object* x_150; lean_object* x_151; -lean_dec(x_147); -lean_dec(x_146); -lean_dec(x_120); -x_150 = lean_box(0); -x_151 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_117, x_2, x_4, x_150, x_6, x_7, x_8, x_9, x_115, x_11, x_145); -return x_151; +x_137 = 0; +x_138 = 0; +x_139 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_134, x_137, x_119, x_136, x_138, x_6, x_7, x_8, x_9, x_117, x_11, x_129); +return x_139; } else { -uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_152 = 1; -x_153 = l_Lean_Name_toString(x_146, x_152); -x_154 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; -x_155 = lean_string_append(x_154, x_153); -lean_dec(x_153); -x_156 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; -x_157 = lean_string_append(x_155, x_156); -x_158 = l_Lean_Name_toString(x_120, x_152); +uint8_t x_140; +x_140 = lean_is_class(x_130, x_122); +if (x_140 == 0) +{ +uint8_t x_141; uint8_t x_142; lean_object* x_143; +x_141 = 0; +x_142 = 0; +x_143 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_134, x_141, x_119, x_136, x_142, x_6, x_7, x_8, x_9, x_117, x_11, x_129); +return x_143; +} +else +{ +uint8_t x_144; uint8_t x_145; lean_object* x_146; +x_144 = 3; +x_145 = 0; +x_146 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_134, x_144, x_119, x_136, x_145, x_6, x_7, x_8, x_9, x_117, x_11, x_129); +return x_146; +} +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_147 = lean_ctor_get(x_124, 1); +lean_inc(x_147); +lean_dec(x_124); +x_148 = lean_ctor_get(x_125, 0); +lean_inc(x_148); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + x_149 = x_125; +} else { + lean_dec_ref(x_125); + x_149 = lean_box(0); +} +x_150 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___closed__1; +x_151 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_104, x_150); +lean_dec(x_104); +if (x_151 == 0) +{ +lean_object* x_152; lean_object* x_153; +lean_dec(x_149); +lean_dec(x_148); +lean_dec(x_122); +x_152 = lean_box(0); +x_153 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_119, x_2, x_4, x_152, x_6, x_7, x_8, x_9, x_117, x_11, x_147); +return x_153; +} +else +{ +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; 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_154 = 1; +x_155 = l_Lean_Name_toString(x_148, x_154); +x_156 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__1; +x_157 = lean_string_append(x_156, x_155); +lean_dec(x_155); +x_158 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__3; x_159 = lean_string_append(x_157, x_158); -lean_dec(x_158); -x_160 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__5; +x_160 = l_Lean_Name_toString(x_122, x_154); x_161 = lean_string_append(x_159, x_160); -if (lean_is_scalar(x_147)) { - x_162 = lean_alloc_ctor(3, 1, 0); +lean_dec(x_160); +x_162 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__5; +x_163 = lean_string_append(x_161, x_162); +if (lean_is_scalar(x_149)) { + x_164 = lean_alloc_ctor(3, 1, 0); } else { - x_162 = x_147; - lean_ctor_set_tag(x_162, 3); + x_164 = x_149; + lean_ctor_set_tag(x_164, 3); } -lean_ctor_set(x_162, 0, x_161); -x_163 = l_Lean_MessageData_ofFormat(x_162); -lean_inc(x_115); -x_164 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_163, x_6, x_7, x_8, x_9, x_115, x_11, x_145); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_117, x_2, x_4, x_165, x_6, x_7, x_8, x_9, x_115, x_11, x_166); -lean_dec(x_165); -return x_167; -} -} -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_117); -lean_dec(x_115); -lean_dec(x_104); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_168 = lean_ctor_get(x_119, 0); +lean_ctor_set(x_164, 0, x_163); +x_165 = l_Lean_MessageData_ofFormat(x_164); +lean_inc(x_11); +lean_inc(x_117); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_166 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_165, x_6, x_7, x_8, x_9, x_117, x_11, x_147); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); lean_inc(x_168); -x_169 = lean_ctor_get(x_119, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_170 = x_119; -} else { - lean_dec_ref(x_119); - x_170 = lean_box(0); +lean_dec(x_166); +x_169 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__5(x_1, x_3, x_5, x_119, x_2, x_4, x_167, x_6, x_7, x_8, x_9, x_117, x_11, x_168); +lean_dec(x_167); +return x_169; } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); -} else { - x_171 = x_170; -} -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_171, 1, x_169); -return x_171; } } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_115); +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_119); +lean_dec(x_117); lean_dec(x_104); lean_dec(x_11); lean_dec(x_9); @@ -15287,26 +15343,63 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_172 = lean_ctor_get(x_116, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_116, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_174 = x_116; +x_170 = lean_ctor_get(x_121, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_121, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_172 = x_121; } else { - lean_dec_ref(x_116); - x_174 = lean_box(0); + lean_dec_ref(x_121); + x_172 = lean_box(0); } -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); } else { - x_175 = x_174; + x_173 = x_172; } -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -return x_175; +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_117); +lean_dec(x_104); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_174 = lean_ctor_get(x_118, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_118, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_176 = x_118; +} else { + lean_dec_ref(x_118); + 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; } } } @@ -17549,7 +17642,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -17561,7 +17654,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -17574,29 +17670,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__7___rarg(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__7___rarg(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -17721,7 +17819,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -17733,7 +17831,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -17746,29 +17847,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__9___rarg(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__9___rarg(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -18763,7 +18866,7 @@ return x_35; } 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; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +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; uint8_t x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; x_116 = lean_ctor_get(x_10, 0); x_117 = lean_ctor_get(x_10, 1); x_118 = lean_ctor_get(x_10, 2); @@ -18775,7 +18878,10 @@ x_123 = lean_ctor_get(x_10, 7); x_124 = lean_ctor_get(x_10, 8); x_125 = lean_ctor_get(x_10, 9); x_126 = lean_ctor_get(x_10, 10); -x_127 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_127 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_128 = lean_ctor_get(x_10, 11); +x_129 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_128); lean_inc(x_126); lean_inc(x_125); lean_inc(x_124); @@ -18788,51 +18894,53 @@ lean_inc(x_118); lean_inc(x_117); lean_inc(x_116); lean_dec(x_10); -x_128 = l_Lean_replaceRef(x_17, x_121); +x_130 = l_Lean_replaceRef(x_17, x_121); lean_dec(x_121); -x_129 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_129, 0, x_116); -lean_ctor_set(x_129, 1, x_117); -lean_ctor_set(x_129, 2, x_118); -lean_ctor_set(x_129, 3, x_119); -lean_ctor_set(x_129, 4, x_120); -lean_ctor_set(x_129, 5, x_128); -lean_ctor_set(x_129, 6, x_122); -lean_ctor_set(x_129, 7, x_123); -lean_ctor_set(x_129, 8, x_124); -lean_ctor_set(x_129, 9, x_125); -lean_ctor_set(x_129, 10, x_126); -lean_ctor_set_uint8(x_129, sizeof(void*)*11, x_127); +x_131 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_131, 0, x_116); +lean_ctor_set(x_131, 1, x_117); +lean_ctor_set(x_131, 2, x_118); +lean_ctor_set(x_131, 3, x_119); +lean_ctor_set(x_131, 4, x_120); +lean_ctor_set(x_131, 5, x_130); +lean_ctor_set(x_131, 6, x_122); +lean_ctor_set(x_131, 7, x_123); +lean_ctor_set(x_131, 8, x_124); +lean_ctor_set(x_131, 9, x_125); +lean_ctor_set(x_131, 10, x_126); +lean_ctor_set(x_131, 11, x_128); +lean_ctor_set_uint8(x_131, sizeof(void*)*12, x_127); +lean_ctor_set_uint8(x_131, sizeof(void*)*12 + 1, x_129); if (lean_obj_tag(x_25) == 0) { -lean_object* x_138; +lean_object* x_140; lean_dec(x_24); lean_dec(x_23); lean_dec(x_22); lean_dec(x_17); lean_inc(x_11); -lean_inc(x_129); +lean_inc(x_131); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_138 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(x_16, x_6, x_7, x_8, x_9, x_129, x_11, x_12); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); +x_140 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(x_16, x_6, x_7, x_8, x_9, x_131, x_11, x_12); if (lean_obj_tag(x_140) == 0) { -lean_object* x_141; -x_141 = lean_ctor_get(x_139, 1); +lean_object* x_141; lean_object* x_142; +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -lean_dec(x_139); -if (lean_obj_tag(x_141) == 0) +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +if (lean_obj_tag(x_142) == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_object* x_143; +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); @@ -18841,59 +18949,59 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_142 = lean_ctor_get(x_138, 1); -lean_inc(x_142); -lean_dec(x_138); -x_143 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__2; -x_144 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__3___rarg(x_143, x_6, x_7, x_8, x_9, x_129, x_11, x_142); +x_144 = lean_ctor_get(x_140, 1); +lean_inc(x_144); +lean_dec(x_140); +x_145 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__2; +x_146 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__3___rarg(x_145, x_6, x_7, x_8, x_9, x_131, x_11, x_144); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_144; +return x_146; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_138, 1); -lean_inc(x_145); -lean_dec(x_138); -x_146 = lean_ctor_get(x_141, 0); -lean_inc(x_146); -lean_dec(x_141); +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_140, 1); +lean_inc(x_147); +lean_dec(x_140); +x_148 = lean_ctor_get(x_143, 0); +lean_inc(x_148); +lean_dec(x_143); lean_inc(x_11); -lean_inc(x_129); +lean_inc(x_131); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_146); -x_147 = lean_infer_type(x_146, x_8, x_9, x_129, x_11, x_145); -if (lean_obj_tag(x_147) == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; lean_object* x_152; -x_148 = lean_ctor_get(x_147, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__1), 16, 8); -lean_closure_set(x_150, 0, x_146); -lean_closure_set(x_150, 1, x_20); -lean_closure_set(x_150, 2, x_19); -lean_closure_set(x_150, 3, x_5); -lean_closure_set(x_150, 4, x_3); -lean_closure_set(x_150, 5, x_1); -lean_closure_set(x_150, 6, x_2); -lean_closure_set(x_150, 7, x_4); -x_151 = 0; -x_152 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_21, x_18, x_148, x_150, x_151, x_6, x_7, x_8, x_9, x_129, x_11, x_149); -return x_152; +x_149 = lean_infer_type(x_148, x_8, x_9, x_131, x_11, x_147); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__1), 16, 8); +lean_closure_set(x_152, 0, x_148); +lean_closure_set(x_152, 1, x_20); +lean_closure_set(x_152, 2, x_19); +lean_closure_set(x_152, 3, x_5); +lean_closure_set(x_152, 4, x_3); +lean_closure_set(x_152, 5, x_1); +lean_closure_set(x_152, 6, x_2); +lean_closure_set(x_152, 7, x_4); +x_153 = 0; +x_154 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_21, x_18, x_150, x_152, x_153, x_6, x_7, x_8, x_9, x_131, x_11, x_151); +return x_154; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_146); -lean_dec(x_129); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_148); +lean_dec(x_131); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); @@ -18907,59 +19015,59 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_153 = lean_ctor_get(x_147, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_147, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_155 = x_147; +x_155 = lean_ctor_get(x_149, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_149, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_157 = x_149; } else { - lean_dec_ref(x_147); - x_155 = lean_box(0); + lean_dec_ref(x_149); + x_157 = lean_box(0); } -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_155; + x_158 = x_157; } -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return x_156; +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; } } } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; -x_157 = lean_ctor_get(x_138, 1); -lean_inc(x_157); -lean_dec(x_138); -x_158 = lean_ctor_get(x_139, 1); -lean_inc(x_158); -lean_dec(x_139); -x_159 = lean_ctor_get(x_140, 0); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; +x_159 = lean_ctor_get(x_140, 1); lean_inc(x_159); lean_dec(x_140); -x_160 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__2), 16, 8); -lean_closure_set(x_160, 0, x_20); -lean_closure_set(x_160, 1, x_19); -lean_closure_set(x_160, 2, x_158); -lean_closure_set(x_160, 3, x_5); -lean_closure_set(x_160, 4, x_3); -lean_closure_set(x_160, 5, x_1); -lean_closure_set(x_160, 6, x_2); -lean_closure_set(x_160, 7, x_4); -x_161 = 0; -x_162 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_21, x_18, x_159, x_160, x_161, x_6, x_7, x_8, x_9, x_129, x_11, x_157); -return x_162; +x_160 = lean_ctor_get(x_141, 1); +lean_inc(x_160); +lean_dec(x_141); +x_161 = lean_ctor_get(x_142, 0); +lean_inc(x_161); +lean_dec(x_142); +x_162 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__2), 16, 8); +lean_closure_set(x_162, 0, x_20); +lean_closure_set(x_162, 1, x_19); +lean_closure_set(x_162, 2, x_160); +lean_closure_set(x_162, 3, x_5); +lean_closure_set(x_162, 4, x_3); +lean_closure_set(x_162, 5, x_1); +lean_closure_set(x_162, 6, x_2); +lean_closure_set(x_162, 7, x_4); +x_163 = 0; +x_164 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_21, x_18, x_161, x_162, x_163, x_6, x_7, x_8, x_9, x_131, x_11, x_159); +return x_164; } } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_129); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_131); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); @@ -18973,26 +19081,26 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_163 = lean_ctor_get(x_138, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_138, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_165 = x_138; +x_165 = lean_ctor_get(x_140, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_140, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_167 = x_140; } else { - lean_dec_ref(x_138); - x_165 = lean_box(0); + lean_dec_ref(x_140); + x_167 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; + x_168 = x_167; } -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; } } else @@ -19002,7 +19110,7 @@ lean_dec(x_19); lean_dec(x_16); if (lean_obj_tag(x_24) == 0) { -lean_object* 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; +lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_dec(x_23); lean_dec(x_22); lean_dec(x_17); @@ -19011,96 +19119,96 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_167 = lean_ctor_get(x_25, 0); -lean_inc(x_167); +x_169 = lean_ctor_get(x_25, 0); +lean_inc(x_169); lean_dec(x_25); -x_168 = lean_ctor_get_uint8(x_167, sizeof(void*)*4); -lean_dec(x_167); +x_170 = lean_ctor_get_uint8(x_169, sizeof(void*)*4); +lean_dec(x_169); lean_inc(x_20); -x_169 = l_Lean_MessageData_ofName(x_20); -x_170 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; -x_171 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_169); -x_172 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__4; +x_171 = l_Lean_MessageData_ofName(x_20); +x_172 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_173 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_172); -switch (x_168) { +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__4; +x_175 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +switch (x_170) { case 0: { -lean_object* x_174; -lean_dec(x_173); -x_174 = lean_box(0); -x_130 = x_174; -goto block_137; +lean_object* x_176; +lean_dec(x_175); +x_176 = lean_box(0); +x_132 = x_176; +goto block_139; } case 1: { -lean_object* x_175; +lean_object* x_177; lean_dec(x_20); -x_175 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__4___rarg(x_173, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +x_177 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__4___rarg(x_175, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_175; +return x_177; } case 2: { -lean_object* x_176; +lean_object* x_178; lean_dec(x_20); -x_176 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__5___rarg(x_173, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +x_178 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__5___rarg(x_175, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_176; -} -default: -{ -lean_object* x_177; lean_object* x_178; -lean_dec(x_173); -lean_dec(x_20); -x_177 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; -x_178 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_177, x_6, x_7, x_8, x_9, x_129, x_11, x_12); -lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); return x_178; } +default: +{ +lean_object* x_179; lean_object* x_180; +lean_dec(x_175); +lean_dec(x_20); +x_179 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; +x_180 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_179, x_6, x_7, x_8, x_9, x_131, x_11, x_12); +lean_dec(x_11); +lean_dec(x_131); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_180; +} } } else { if (lean_obj_tag(x_23) == 0) { -lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; -x_179 = lean_ctor_get(x_25, 0); -lean_inc(x_179); -lean_dec(x_25); -x_180 = lean_ctor_get_uint8(x_179, sizeof(void*)*4); -x_181 = lean_ctor_get(x_24, 0); +lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_181 = lean_ctor_get(x_25, 0); lean_inc(x_181); +lean_dec(x_25); +x_182 = lean_ctor_get_uint8(x_181, sizeof(void*)*4); +x_183 = lean_ctor_get(x_24, 0); +lean_inc(x_183); lean_dec(x_24); -x_182 = lean_ctor_get(x_179, 0); -lean_inc(x_182); -x_183 = l_Lean_NameSet_contains(x_4, x_182); -lean_dec(x_182); -if (x_183 == 0) +x_184 = lean_ctor_get(x_181, 0); +lean_inc(x_184); +x_185 = l_Lean_NameSet_contains(x_4, x_184); +lean_dec(x_184); +if (x_185 == 0) { -lean_object* x_184; -x_184 = lean_box(x_180); -switch (lean_obj_tag(x_184)) { +lean_object* x_186; +x_186 = lean_box(x_182); +switch (lean_obj_tag(x_186)) { case 0: { -lean_object* x_185; +lean_object* x_187; +lean_dec(x_183); lean_dec(x_181); -lean_dec(x_179); lean_dec(x_22); lean_dec(x_17); lean_dec(x_5); @@ -19108,48 +19216,48 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_185 = lean_box(0); -x_130 = x_185; -goto block_137; +x_187 = lean_box(0); +x_132 = x_187; +goto block_139; } case 3: { -lean_object* x_186; lean_object* x_187; -lean_dec(x_181); -lean_dec(x_179); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_186 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; -x_187 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_186, x_6, x_7, x_8, x_9, x_129, x_11, x_12); -lean_dec(x_11); -lean_dec(x_129); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_187; -} -default: -{ lean_object* x_188; lean_object* x_189; -lean_dec(x_184); +lean_dec(x_183); +lean_dec(x_181); +lean_dec(x_22); lean_dec(x_20); -x_188 = lean_box(0); -x_189 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4(x_179, x_4, x_17, x_5, x_3, x_1, x_2, x_22, x_181, x_188, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_188 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; +x_189 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_188, x_6, x_7, x_8, x_9, x_131, x_11, x_12); +lean_dec(x_11); +lean_dec(x_131); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); return x_189; } +default: +{ +lean_object* x_190; lean_object* x_191; +lean_dec(x_186); +lean_dec(x_20); +x_190 = lean_box(0); +x_191 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___lambda__4(x_181, x_4, x_17, x_5, x_3, x_1, x_2, x_22, x_183, x_190, x_6, x_7, x_8, x_9, x_131, x_11, x_12); +return x_191; +} } } else { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_183); lean_dec(x_181); -lean_dec(x_179); lean_dec(x_22); lean_dec(x_17); lean_dec(x_5); @@ -19158,77 +19266,77 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); lean_inc(x_20); -x_190 = l_Lean_MessageData_ofName(x_20); -x_191 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; -x_192 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_190); -x_193 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__8; +x_192 = l_Lean_MessageData_ofName(x_20); +x_193 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_194 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -x_195 = lean_box(x_180); -switch (lean_obj_tag(x_195)) { +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +x_195 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__8; +x_196 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_195); +x_197 = lean_box(x_182); +switch (lean_obj_tag(x_197)) { case 0: { -lean_object* x_196; -lean_dec(x_194); -x_196 = lean_box(0); -x_130 = x_196; -goto block_137; +lean_object* x_198; +lean_dec(x_196); +x_198 = lean_box(0); +x_132 = x_198; +goto block_139; } case 3: { -lean_object* x_197; lean_object* x_198; -lean_dec(x_194); +lean_object* x_199; lean_object* x_200; +lean_dec(x_196); lean_dec(x_20); -x_197 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; -x_198 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_197, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +x_199 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; +x_200 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_199, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_198; +return x_200; } default: { -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_195); +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_197); lean_dec(x_20); -x_199 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_194, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +x_201 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_196, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_202 = x_199; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_204 = x_201; } else { - lean_dec_ref(x_199); - x_202 = lean_box(0); + lean_dec_ref(x_201); + x_204 = lean_box(0); } -if (lean_is_scalar(x_202)) { - x_203 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_204)) { + x_205 = lean_alloc_ctor(1, 2, 0); } else { - x_203 = x_202; + x_205 = x_204; } -lean_ctor_set(x_203, 0, x_200); -lean_ctor_set(x_203, 1, x_201); -return x_203; +lean_ctor_set(x_205, 0, x_202); +lean_ctor_set(x_205, 1, x_203); +return x_205; } } } } else { -lean_object* x_204; uint8_t 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_206; uint8_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_dec(x_24); lean_dec(x_22); lean_dec(x_17); @@ -19237,87 +19345,87 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_204 = lean_ctor_get(x_25, 0); -lean_inc(x_204); -lean_dec(x_25); -x_205 = lean_ctor_get_uint8(x_204, sizeof(void*)*4); -lean_dec(x_204); -x_206 = lean_ctor_get(x_23, 0); +x_206 = lean_ctor_get(x_25, 0); lean_inc(x_206); +lean_dec(x_25); +x_207 = lean_ctor_get_uint8(x_206, sizeof(void*)*4); +lean_dec(x_206); +x_208 = lean_ctor_get(x_23, 0); +lean_inc(x_208); lean_dec(x_23); lean_inc(x_20); -x_207 = l_Lean_MessageData_ofName(x_20); -x_208 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__10; -x_209 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_207); -x_210 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__12; +x_209 = l_Lean_MessageData_ofName(x_20); +x_210 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__10; x_211 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -switch (x_205) { +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_209); +x_212 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__12; +x_213 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +switch (x_207) { case 0: { -lean_object* x_212; -lean_dec(x_211); -lean_dec(x_206); -x_212 = lean_box(0); -x_130 = x_212; -goto block_137; +lean_object* x_214; +lean_dec(x_213); +lean_dec(x_208); +x_214 = lean_box(0); +x_132 = x_214; +goto block_139; } case 1: { -lean_object* x_213; +lean_object* x_215; lean_dec(x_20); -x_213 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__6___rarg(x_206, x_211, x_6, x_7, x_8, x_9, x_129, x_11, x_12); -return x_213; +x_215 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__6___rarg(x_208, x_213, x_6, x_7, x_8, x_9, x_131, x_11, x_12); +return x_215; } case 2: { -lean_object* x_214; +lean_object* x_216; lean_dec(x_20); -x_214 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__8___rarg(x_206, x_211, x_6, x_7, x_8, x_9, x_129, x_11, x_12); -return x_214; +x_216 = l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__8___rarg(x_208, x_213, x_6, x_7, x_8, x_9, x_131, x_11, x_12); +return x_216; } default: { -lean_object* x_215; lean_object* x_216; -lean_dec(x_211); -lean_dec(x_206); +lean_object* x_217; lean_object* x_218; +lean_dec(x_213); +lean_dec(x_208); lean_dec(x_20); -x_215 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; -x_216 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_215, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +x_217 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__6; +x_218 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__2___rarg(x_217, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_216; +return x_218; } } } } } -block_137: +block_139: { -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_dec(x_130); -x_131 = l_Lean_MessageData_ofName(x_20); -x_132 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; -x_133 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -x_134 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__6; +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_dec(x_132); +x_133 = l_Lean_MessageData_ofName(x_20); +x_134 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__2; x_135 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__1___rarg(x_135, x_6, x_7, x_8, x_9, x_129, x_11, x_12); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +x_136 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__6; +x_137 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__1___rarg(x_137, x_6, x_7, x_8, x_9, x_131, x_11, x_12); lean_dec(x_11); -lean_dec(x_129); +lean_dec(x_131); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_136; +return x_138; } } } @@ -23757,7 +23865,7 @@ return x_54; } 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +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; uint8_t x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; x_55 = lean_ctor_get(x_9, 0); x_56 = lean_ctor_get(x_9, 1); x_57 = lean_ctor_get(x_9, 2); @@ -23769,7 +23877,10 @@ x_62 = lean_ctor_get(x_9, 7); x_63 = lean_ctor_get(x_9, 8); x_64 = lean_ctor_get(x_9, 9); x_65 = lean_ctor_get(x_9, 10); -x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_66 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_67 = lean_ctor_get(x_9, 11); +x_68 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_67); lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); @@ -23782,95 +23893,97 @@ lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); lean_dec(x_9); -x_67 = l_Lean_replaceRef(x_12, x_60); +x_69 = l_Lean_replaceRef(x_12, x_60); lean_dec(x_60); lean_dec(x_12); -x_68 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_68, 0, x_55); -lean_ctor_set(x_68, 1, x_56); -lean_ctor_set(x_68, 2, x_57); -lean_ctor_set(x_68, 3, x_58); -lean_ctor_set(x_68, 4, x_59); -lean_ctor_set(x_68, 5, x_67); -lean_ctor_set(x_68, 6, x_61); -lean_ctor_set(x_68, 7, x_62); -lean_ctor_set(x_68, 8, x_63); -lean_ctor_set(x_68, 9, x_64); -lean_ctor_set(x_68, 10, x_65); -lean_ctor_set_uint8(x_68, sizeof(void*)*11, x_66); +x_70 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_70, 0, x_55); +lean_ctor_set(x_70, 1, x_56); +lean_ctor_set(x_70, 2, x_57); +lean_ctor_set(x_70, 3, x_58); +lean_ctor_set(x_70, 4, x_59); +lean_ctor_set(x_70, 5, x_69); +lean_ctor_set(x_70, 6, x_61); +lean_ctor_set(x_70, 7, x_62); +lean_ctor_set(x_70, 8, x_63); +lean_ctor_set(x_70, 9, x_64); +lean_ctor_set(x_70, 10, x_65); +lean_ctor_set(x_70, 11, x_67); +lean_ctor_set_uint8(x_70, sizeof(void*)*12, x_66); +lean_ctor_set_uint8(x_70, sizeof(void*)*12 + 1, x_68); lean_inc(x_10); -lean_inc(x_68); +lean_inc(x_70); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_69 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_68, x_10, x_11); -if (lean_obj_tag(x_69) == 0) +x_71 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(x_4, x_18, x_17, x_5, x_6, x_7, x_8, x_70, x_10, x_11); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; -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 = 0; -x_73 = 1; -x_74 = 1; +lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; uint8_t 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); +lean_dec(x_71); +x_74 = 0; +x_75 = 1; +x_76 = 1; lean_inc(x_3); -x_75 = l_Lean_Meta_mkForallFVars(x_3, x_70, x_72, x_73, x_74, x_7, x_8, x_68, x_10, x_71); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_Meta_mkForallFVars(x_3, x_72, x_74, x_75, x_76, x_7, x_8, x_70, x_10, x_73); +if (lean_obj_tag(x_77) == 0) { -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; lean_object* x_86; lean_object* x_87; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_76, x_5, x_6, x_7, x_8, x_68, x_10, x_77); -lean_dec(x_10); -lean_dec(x_68); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_79 = lean_ctor_get(x_78, 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; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_81 = x_78; +lean_dec(x_77); +x_80 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_78, x_5, x_6, x_7, x_8, x_70, x_10, x_79); +lean_dec(x_10); +lean_dec(x_70); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_81 = lean_ctor_get(x_80, 0); +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; } else { - lean_dec_ref(x_78); - x_81 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } -x_82 = lean_array_get_size(x_3); +x_84 = lean_array_get_size(x_3); lean_dec(x_3); -x_83 = l_Lean_Expr_inferImplicit(x_79, x_82, x_73); -lean_dec(x_82); -x_84 = lean_ctor_get(x_1, 9); -lean_inc(x_84); -lean_dec(x_1); -x_85 = lean_ctor_get(x_84, 3); -lean_inc(x_85); +x_85 = l_Lean_Expr_inferImplicit(x_81, x_84, x_75); lean_dec(x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -if (lean_is_scalar(x_81)) { - x_87 = lean_alloc_ctor(0, 2, 0); +x_86 = lean_ctor_get(x_1, 9); +lean_inc(x_86); +lean_dec(x_1); +x_87 = lean_ctor_get(x_86, 3); +lean_inc(x_87); +lean_dec(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_85); +if (lean_is_scalar(x_83)) { + x_89 = lean_alloc_ctor(0, 2, 0); } else { - x_87 = x_81; + x_89 = x_83; } -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_80); -return x_87; +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_82); +return x_89; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_68); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_70); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -23878,32 +23991,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_88 = lean_ctor_get(x_75, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_75, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_90 = x_75; +x_90 = lean_ctor_get(x_77, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_77, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_92 = x_77; } else { - lean_dec_ref(x_75); - x_90 = lean_box(0); + lean_dec_ref(x_77); + x_92 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_90; + x_93 = x_92; } -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -lean_dec(x_68); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_70); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -23911,26 +24024,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_92 = lean_ctor_get(x_69, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_69, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_94 = x_69; +x_94 = lean_ctor_get(x_71, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_71, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_96 = x_71; } else { - lean_dec_ref(x_69); - x_94 = lean_box(0); + lean_dec_ref(x_71); + x_96 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_94; + x_97 = x_96; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_95); +return x_97; } } } @@ -29436,7 +29549,7 @@ return x_28; } else { -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; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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; uint8_t x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; x_29 = lean_ctor_get(x_14, 0); x_30 = lean_ctor_get(x_14, 1); x_31 = lean_ctor_get(x_14, 2); @@ -29448,7 +29561,10 @@ x_36 = lean_ctor_get(x_14, 7); x_37 = lean_ctor_get(x_14, 8); x_38 = lean_ctor_get(x_14, 9); x_39 = lean_ctor_get(x_14, 10); -x_40 = lean_ctor_get_uint8(x_14, sizeof(void*)*11); +x_40 = lean_ctor_get_uint8(x_14, sizeof(void*)*12); +x_41 = lean_ctor_get(x_14, 11); +x_42 = lean_ctor_get_uint8(x_14, sizeof(void*)*12 + 1); +lean_inc(x_41); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); @@ -29461,63 +29577,68 @@ lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_dec(x_14); -x_41 = l_Lean_replaceRef(x_6, x_34); +x_43 = l_Lean_replaceRef(x_6, x_34); lean_dec(x_34); lean_dec(x_6); -x_42 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_42, 0, x_29); -lean_ctor_set(x_42, 1, x_30); -lean_ctor_set(x_42, 2, x_31); -lean_ctor_set(x_42, 3, x_32); -lean_ctor_set(x_42, 4, x_33); -lean_ctor_set(x_42, 5, x_41); -lean_ctor_set(x_42, 6, x_35); -lean_ctor_set(x_42, 7, x_36); -lean_ctor_set(x_42, 8, x_37); -lean_ctor_set(x_42, 9, x_38); -lean_ctor_set(x_42, 10, x_39); -lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_40); -x_43 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_10, x_11, x_12, x_13, x_42, x_15, x_19); +x_44 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_44, 0, x_29); +lean_ctor_set(x_44, 1, x_30); +lean_ctor_set(x_44, 2, x_31); +lean_ctor_set(x_44, 3, x_32); +lean_ctor_set(x_44, 4, x_33); +lean_ctor_set(x_44, 5, x_43); +lean_ctor_set(x_44, 6, x_35); +lean_ctor_set(x_44, 7, x_36); +lean_ctor_set(x_44, 8, x_37); +lean_ctor_set(x_44, 9, x_38); +lean_ctor_set(x_44, 10, x_39); +lean_ctor_set(x_44, 11, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*12, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*12 + 1, x_42); +x_45 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_10, x_11, x_12, x_13, x_44, x_15, x_19); lean_dec(x_15); -lean_dec(x_42); +lean_dec(x_44); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -return x_43; +return x_45; } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* 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; -x_44 = lean_ctor_get(x_22, 0); -lean_inc(x_44); +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; uint8_t 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; +x_46 = lean_ctor_get(x_22, 0); +lean_inc(x_46); lean_dec(x_22); -x_45 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_MessageData_ofFormat(x_45); -x_47 = lean_ctor_get(x_14, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -x_49 = lean_ctor_get(x_14, 2); +x_47 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = l_Lean_MessageData_ofFormat(x_47); +x_49 = lean_ctor_get(x_14, 0); lean_inc(x_49); -x_50 = lean_ctor_get(x_14, 3); +x_50 = lean_ctor_get(x_14, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_14, 4); +x_51 = lean_ctor_get(x_14, 2); lean_inc(x_51); -x_52 = lean_ctor_get(x_14, 5); +x_52 = lean_ctor_get(x_14, 3); lean_inc(x_52); -x_53 = lean_ctor_get(x_14, 6); +x_53 = lean_ctor_get(x_14, 4); lean_inc(x_53); -x_54 = lean_ctor_get(x_14, 7); +x_54 = lean_ctor_get(x_14, 5); lean_inc(x_54); -x_55 = lean_ctor_get(x_14, 8); +x_55 = lean_ctor_get(x_14, 6); lean_inc(x_55); -x_56 = lean_ctor_get(x_14, 9); +x_56 = lean_ctor_get(x_14, 7); lean_inc(x_56); -x_57 = lean_ctor_get(x_14, 10); +x_57 = lean_ctor_get(x_14, 8); lean_inc(x_57); -x_58 = lean_ctor_get_uint8(x_14, sizeof(void*)*11); +x_58 = lean_ctor_get(x_14, 9); +lean_inc(x_58); +x_59 = lean_ctor_get(x_14, 10); +lean_inc(x_59); +x_60 = lean_ctor_get_uint8(x_14, sizeof(void*)*12); +x_61 = lean_ctor_get(x_14, 11); +lean_inc(x_61); +x_62 = lean_ctor_get_uint8(x_14, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -29530,264 +29651,267 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 8); lean_ctor_release(x_14, 9); lean_ctor_release(x_14, 10); - x_59 = x_14; + lean_ctor_release(x_14, 11); + x_63 = x_14; } else { lean_dec_ref(x_14); - x_59 = lean_box(0); + x_63 = lean_box(0); } -x_60 = l_Lean_replaceRef(x_6, x_52); -lean_dec(x_52); +x_64 = l_Lean_replaceRef(x_6, x_54); +lean_dec(x_54); lean_dec(x_6); -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(0, 11, 1); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 12, 2); } else { - x_61 = x_59; + x_65 = x_63; } -lean_ctor_set(x_61, 0, x_47); -lean_ctor_set(x_61, 1, x_48); -lean_ctor_set(x_61, 2, x_49); -lean_ctor_set(x_61, 3, x_50); -lean_ctor_set(x_61, 4, x_51); -lean_ctor_set(x_61, 5, x_60); -lean_ctor_set(x_61, 6, x_53); -lean_ctor_set(x_61, 7, x_54); -lean_ctor_set(x_61, 8, x_55); -lean_ctor_set(x_61, 9, x_56); -lean_ctor_set(x_61, 10, x_57); -lean_ctor_set_uint8(x_61, sizeof(void*)*11, x_58); -x_62 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_46, x_10, x_11, x_12, x_13, x_61, x_15, x_19); +lean_ctor_set(x_65, 0, x_49); +lean_ctor_set(x_65, 1, x_50); +lean_ctor_set(x_65, 2, x_51); +lean_ctor_set(x_65, 3, x_52); +lean_ctor_set(x_65, 4, x_53); +lean_ctor_set(x_65, 5, x_64); +lean_ctor_set(x_65, 6, x_55); +lean_ctor_set(x_65, 7, x_56); +lean_ctor_set(x_65, 8, x_57); +lean_ctor_set(x_65, 9, x_58); +lean_ctor_set(x_65, 10, x_59); +lean_ctor_set(x_65, 11, x_61); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_60); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_62); +x_66 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_48, x_10, x_11, x_12, x_13, x_65, x_15, x_19); lean_dec(x_15); -lean_dec(x_61); +lean_dec(x_65); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -return x_62; +return x_66; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_22, 0); -lean_inc(x_63); -lean_dec(x_22); -x_64 = l_Array_append___rarg(x_2, x_3); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_64); -lean_inc(x_63); -lean_inc(x_5); -x_65 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(x_5, x_63, x_64, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_19); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_22, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = 0; -x_69 = 1; -x_70 = 1; -lean_inc(x_64); -x_71 = l_Lean_Meta_mkForallFVars(x_64, x_1, x_68, x_69, x_70, x_12, x_13, x_14, x_15, x_67); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -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_74 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_73); -x_75 = !lean_is_exclusive(x_74); -if (x_75 == 0) -{ -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; uint8_t x_84; lean_object* x_85; lean_object* x_86; -x_76 = lean_ctor_get(x_74, 0); -x_77 = lean_ctor_get(x_74, 1); -x_78 = lean_ctor_get(x_5, 4); -lean_inc(x_78); -x_79 = lean_box(0); -lean_ctor_set_tag(x_74, 1); -lean_ctor_set(x_74, 1, x_79); -lean_ctor_set(x_74, 0, x_66); -lean_inc(x_78); -x_80 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_76); -lean_ctor_set(x_80, 2, x_74); -x_81 = lean_array_get_size(x_64); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_79); -x_83 = lean_ctor_get(x_5, 1); -lean_inc(x_83); -x_84 = lean_ctor_get_uint8(x_83, sizeof(void*)*2 + 3); -lean_inc(x_81); -lean_inc(x_63); -x_85 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_85, 0, x_63); -lean_ctor_set(x_85, 1, x_81); -lean_ctor_set(x_85, 2, x_82); -lean_ctor_set_uint8(x_85, sizeof(void*)*3, x_84); +lean_dec(x_22); +x_68 = l_Array_append___rarg(x_2, x_3); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_85); -x_86 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_85, x_10, x_11, x_12, x_13, x_14, x_15, x_77); -if (lean_obj_tag(x_86) == 0) +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_5); +x_69 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCtor(x_5, x_67, x_68, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_19); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_86, 1); +lean_object* x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; +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 = 0; +x_73 = 1; +x_74 = 1; +lean_inc(x_68); +x_75 = l_Lean_Meta_mkForallFVars(x_68, x_1, x_72, x_73, x_74, x_12, x_13, x_14, x_15, x_71); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_76, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) +{ +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; uint8_t x_88; lean_object* x_89; lean_object* x_90; +x_80 = lean_ctor_get(x_78, 0); +x_81 = lean_ctor_get(x_78, 1); +x_82 = lean_ctor_get(x_5, 4); +lean_inc(x_82); +x_83 = lean_box(0); +lean_ctor_set_tag(x_78, 1); +lean_ctor_set(x_78, 1, x_83); +lean_ctor_set(x_78, 0, x_70); +lean_inc(x_82); +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_80); +lean_ctor_set(x_84, 2, x_78); +x_85 = lean_array_get_size(x_68); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_83); +x_87 = lean_ctor_get(x_5, 1); lean_inc(x_87); -lean_dec(x_86); +x_88 = lean_ctor_get_uint8(x_87, sizeof(void*)*2 + 3); +lean_inc(x_85); +lean_inc(x_67); +x_89 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_89, 0, x_67); +lean_ctor_set(x_89, 1, x_85); +lean_ctor_set(x_89, 2, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*3, x_88); lean_inc(x_15); lean_inc(x_14); -x_88 = l_Lean_addDecl(x_85, x_14, x_15, x_87); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; -x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); lean_inc(x_89); -lean_dec(x_88); -x_90 = lean_array_get_size(x_4); -x_91 = lean_unsigned_to_nat(0u); -x_92 = lean_nat_dec_lt(x_91, x_90); -x_93 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -if (x_92 == 0) +x_90 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_89, x_10, x_11, x_12, x_13, x_14, x_15, x_81); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_211; -x_211 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_94 = x_211; -goto block_210; +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +lean_inc(x_15); +lean_inc(x_14); +x_92 = l_Lean_addDecl(x_89, x_14, x_15, x_91); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; lean_object* x_98; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_94 = lean_array_get_size(x_4); +x_95 = lean_unsigned_to_nat(0u); +x_96 = lean_nat_dec_lt(x_95, x_94); +x_97 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +if (x_96 == 0) +{ +lean_object* x_215; +x_215 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_98 = x_215; +goto block_214; } else { -uint8_t x_212; -x_212 = lean_nat_dec_le(x_90, x_90); -if (x_212 == 0) +uint8_t x_216; +x_216 = lean_nat_dec_le(x_94, x_94); +if (x_216 == 0) { -lean_object* x_213; -x_213 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_94 = x_213; -goto block_210; +lean_object* x_217; +x_217 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_98 = x_217; +goto block_214; } else { -size_t x_214; size_t x_215; lean_object* x_216; lean_object* x_217; -x_214 = 0; -x_215 = lean_usize_of_nat(x_90); -x_216 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_217 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(x_4, x_214, x_215, x_216); -x_94 = x_217; -goto block_210; +size_t x_218; size_t x_219; lean_object* x_220; lean_object* x_221; +x_218 = 0; +x_219 = lean_usize_of_nat(x_94); +x_220 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_221 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(x_4, x_218, x_219, x_220); +x_98 = x_221; +goto block_214; } } -block_210: +block_214: { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_array_to_list(lean_box(0), x_94); -x_96 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_95, x_79); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_array_to_list(lean_box(0), x_98); +x_100 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_99, x_83); lean_inc(x_14); lean_inc(x_12); lean_inc(x_10); -lean_inc(x_78); -x_97 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_78, x_96, x_93, x_10, x_11, x_12, x_13, x_14, x_15, x_89); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_78); -x_99 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_78, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_98); -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); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_78); -x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_78, x_10, x_11, x_12, x_13, x_14, x_15, x_100); +lean_inc(x_82); +x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_82, x_100, x_97, x_10, x_11, x_12, x_13, x_14, x_15, x_93); if (lean_obj_tag(x_101) == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_object* x_102; lean_object* x_103; x_102 = lean_ctor_get(x_101, 1); lean_inc(x_102); lean_dec(x_101); -if (x_92 == 0) -{ -lean_object* x_185; -x_185 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_103 = x_185; -x_104 = x_102; -goto block_184; -} -else -{ -uint8_t x_186; -x_186 = lean_nat_dec_le(x_90, x_90); -if (x_186 == 0) -{ -lean_object* x_187; -x_187 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_103 = x_187; -x_104 = x_102; -goto block_184; -} -else -{ -size_t x_188; size_t x_189; lean_object* x_190; lean_object* x_191; -x_188 = 0; -x_189 = lean_usize_of_nat(x_90); -x_190 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_191 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_188, x_189, x_190, x_10, x_11, x_12, x_13, x_14, x_15, x_102); -if (lean_obj_tag(x_191) == 0) +lean_inc(x_82); +x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_82, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_102); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_103 = x_192; -x_104 = x_193; -goto block_184; +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_82); +x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_82, x_10, x_11, x_12, x_13, x_14, x_15, x_104); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +if (x_96 == 0) +{ +lean_object* x_189; +x_189 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_107 = x_189; +x_108 = x_106; +goto block_188; } else { -uint8_t x_194; -lean_dec(x_90); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +uint8_t x_190; +x_190 = lean_nat_dec_le(x_94, x_94); +if (x_190 == 0) +{ +lean_object* x_191; +x_191 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_107 = x_191; +x_108 = x_106; +goto block_188; +} +else +{ +size_t x_192; size_t x_193; lean_object* x_194; lean_object* x_195; +x_192 = 0; +x_193 = lean_usize_of_nat(x_94); +x_194 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_195 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_192, x_193, x_194, x_10, x_11, x_12, x_13, x_14, x_15, x_106); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; +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_107 = x_196; +x_108 = x_197; +goto block_188; +} +else +{ +uint8_t x_198; +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -29797,349 +29921,314 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_194 = !lean_is_exclusive(x_191); -if (x_194 == 0) +x_198 = !lean_is_exclusive(x_195); +if (x_198 == 0) { -return x_191; +return x_195; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_191, 0); -x_196 = lean_ctor_get(x_191, 1); -lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_191); -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; +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = lean_ctor_get(x_195, 0); +x_200 = lean_ctor_get(x_195, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_195); +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; } } } } -block_184: +block_188: { -lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_inc(x_5); -lean_inc(x_78); -x_105 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2), 11, 4); -lean_closure_set(x_105, 0, x_78); -lean_closure_set(x_105, 1, x_6); -lean_closure_set(x_105, 2, x_7); -lean_closure_set(x_105, 3, x_5); -x_106 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3___closed__1; +lean_inc(x_82); +x_109 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2), 11, 4); +lean_closure_set(x_109, 0, x_82); +lean_closure_set(x_109, 1, x_6); +lean_closure_set(x_109, 2, x_7); +lean_closure_set(x_109, 3, x_5); +x_110 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3___closed__1; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_107 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_105, x_106, x_10, x_11, x_12, x_13, x_14, x_15, x_104); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = lean_ctor_get(x_83, 1); -lean_inc(x_109); -lean_dec(x_83); -x_110 = 0; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_111 = l_Lean_Elab_Term_applyAttributesAt(x_78, x_109, x_110, x_10, x_11, x_12, x_13, x_14, x_15, x_108); +x_111 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_109, x_110, x_10, x_11, x_12, x_13, x_14, x_15, x_108); 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_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; x_112 = lean_ctor_get(x_111, 1); lean_inc(x_112); lean_dec(x_111); -x_113 = lean_array_to_list(lean_box(0), x_103); -x_114 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_113, x_79); +x_113 = lean_ctor_get(x_87, 1); +lean_inc(x_113); +lean_dec(x_87); +x_114 = 0; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_115 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_114, x_10, x_11, x_12, x_13, x_14, x_15, x_112); +lean_inc(x_11); +lean_inc(x_10); +x_115 = l_Lean_Elab_Term_applyAttributesAt(x_82, x_113, x_114, x_10, x_11, x_12, x_13, x_14, x_15, x_112); if (lean_obj_tag(x_115) == 0) { -lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; x_116 = lean_ctor_get(x_115, 1); lean_inc(x_116); lean_dec(x_115); -x_117 = lean_array_get_size(x_8); -x_118 = lean_nat_dec_lt(x_91, x_117); -if (x_118 == 0) -{ -lean_dec(x_117); -lean_dec(x_63); -lean_dec(x_5); -x_119 = x_116; -goto block_161; -} -else -{ -uint8_t x_162; -x_162 = lean_nat_dec_le(x_117, x_117); -if (x_162 == 0) -{ -lean_dec(x_117); -lean_dec(x_63); -lean_dec(x_5); -x_119 = x_116; -goto block_161; -} -else -{ -size_t x_163; size_t x_164; lean_object* x_165; lean_object* x_166; -x_163 = 0; -x_164 = lean_usize_of_nat(x_117); -lean_dec(x_117); -x_165 = lean_box(0); +x_117 = lean_array_to_list(lean_box(0), x_107); +x_118 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_117, x_83); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -lean_inc(x_64); -x_166 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_5, x_63, x_64, x_8, x_163, x_164, x_165, x_10, x_11, x_12, x_13, x_14, x_15, x_116); -if (lean_obj_tag(x_166) == 0) +x_119 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_118, x_10, x_11, x_12, x_13, x_14, x_15, x_116); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_167; -x_167 = lean_ctor_get(x_166, 1); -lean_inc(x_167); -lean_dec(x_166); -x_119 = x_167; -goto block_161; +lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = lean_array_get_size(x_8); +x_122 = lean_nat_dec_lt(x_95, x_121); +if (x_122 == 0) +{ +lean_dec(x_121); +lean_dec(x_67); +lean_dec(x_5); +x_123 = x_120; +goto block_165; } else { -uint8_t x_168; -lean_dec(x_90); -lean_dec(x_81); -lean_dec(x_64); +uint8_t x_166; +x_166 = lean_nat_dec_le(x_121, x_121); +if (x_166 == 0) +{ +lean_dec(x_121); +lean_dec(x_67); +lean_dec(x_5); +x_123 = x_120; +goto block_165; +} +else +{ +size_t x_167; size_t x_168; lean_object* x_169; lean_object* x_170; +x_167 = 0; +x_168 = lean_usize_of_nat(x_121); +lean_dec(x_121); +x_169 = lean_box(0); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_68); +x_170 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_5, x_67, x_68, x_8, x_167, x_168, x_169, x_10, x_11, x_12, x_13, x_14, x_15, x_120); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +lean_dec(x_170); +x_123 = x_171; +goto block_165; +} +else +{ +uint8_t x_172; +lean_dec(x_94); +lean_dec(x_85); +lean_dec(x_68); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_168 = !lean_is_exclusive(x_166); -if (x_168 == 0) +x_172 = !lean_is_exclusive(x_170); +if (x_172 == 0) { -return x_166; +return x_170; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_166, 0); -x_170 = lean_ctor_get(x_166, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_166); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); -return x_171; +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_170, 0); +x_174 = lean_ctor_get(x_170, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_170); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } } } -block_161: +block_165: { -lean_object* x_120; size_t x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_12, 1); -lean_inc(x_120); -x_121 = 0; -if (x_92 == 0) +lean_object* x_124; size_t x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_12, 1); +lean_inc(x_124); +x_125 = 0; +if (x_96 == 0) { -lean_object* x_155; -x_155 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_122 = x_155; -goto block_154; -} -else -{ -uint8_t x_156; -x_156 = lean_nat_dec_le(x_90, x_90); -if (x_156 == 0) -{ -lean_object* x_157; -x_157 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_122 = x_157; -goto block_154; -} -else -{ -size_t x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_usize_of_nat(x_90); +lean_object* x_159; x_159 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_160 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_121, x_158, x_159); -x_122 = x_160; -goto block_154; +x_126 = x_159; +goto block_158; } -} -block_154: +else { -lean_object* x_123; size_t x_124; lean_object* x_125; -x_123 = lean_array_get_size(x_122); -x_124 = lean_usize_of_nat(x_123); -lean_dec(x_123); +uint8_t x_160; +x_160 = lean_nat_dec_le(x_94, x_94); +if (x_160 == 0) +{ +lean_object* x_161; +x_161 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_126 = x_161; +goto block_158; +} +else +{ +size_t x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_usize_of_nat(x_94); +x_163 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_164 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_125, x_162, x_163); +x_126 = x_164; +goto block_158; +} +} +block_158: +{ +lean_object* x_127; size_t x_128; lean_object* x_129; +x_127 = lean_array_get_size(x_126); +x_128 = lean_usize_of_nat(x_127); +lean_dec(x_127); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_125 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_124, x_121, x_122, x_10, x_11, x_12, x_13, x_14, x_15, x_119); -if (lean_obj_tag(x_125) == 0) +x_129 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_128, x_125, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_123); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_126; lean_object* x_127; uint8_t x_128; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_nat_dec_lt(x_91, x_81); -if (x_128 == 0) +lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = lean_nat_dec_lt(x_95, x_85); +if (x_132 == 0) { -lean_dec(x_81); -lean_dec(x_64); -if (x_92 == 0) +lean_dec(x_85); +lean_dec(x_68); +if (x_96 == 0) { -lean_object* x_129; -lean_dec(x_90); -x_129 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_120, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_129; +lean_object* x_133; +lean_dec(x_94); +x_133 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_124, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_133; } else { -uint8_t x_130; -x_130 = lean_nat_dec_le(x_90, x_90); -if (x_130 == 0) +uint8_t x_134; +x_134 = lean_nat_dec_le(x_94, x_94); +if (x_134 == 0) { -lean_object* x_131; -lean_dec(x_90); -x_131 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_120, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_131; +lean_object* x_135; +lean_dec(x_94); +x_135 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_124, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_135; } else { -size_t x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_133 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_121, x_132, x_120); -x_134 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_133, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_134; -} -} -} -else -{ -uint8_t x_135; -x_135 = lean_nat_dec_le(x_81, x_81); -if (x_135 == 0) -{ -lean_dec(x_81); -lean_dec(x_64); -if (x_92 == 0) -{ -lean_object* x_136; -lean_dec(x_90); -x_136 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_120, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_136; -} -else -{ -uint8_t x_137; -x_137 = lean_nat_dec_le(x_90, x_90); -if (x_137 == 0) -{ -lean_object* x_138; -lean_dec(x_90); -x_138 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_120, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); +size_t x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_137 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_125, x_136, x_124); +x_138 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_137, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); return x_138; } +} +} else { -size_t x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_140 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_121, x_139, x_120); -x_141 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_140, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_141; +uint8_t x_139; +x_139 = lean_nat_dec_le(x_85, x_85); +if (x_139 == 0) +{ +lean_dec(x_85); +lean_dec(x_68); +if (x_96 == 0) +{ +lean_object* x_140; +lean_dec(x_94); +x_140 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_124, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_140; +} +else +{ +uint8_t x_141; +x_141 = lean_nat_dec_le(x_94, x_94); +if (x_141 == 0) +{ +lean_object* x_142; +lean_dec(x_94); +x_142 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_124, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_142; +} +else +{ +size_t x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_144 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_125, x_143, x_124); +x_145 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_144, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_145; } } } else { -size_t x_142; lean_object* x_143; -x_142 = lean_usize_of_nat(x_81); -lean_dec(x_81); -x_143 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_64, x_121, x_142, x_120); -lean_dec(x_64); -if (x_92 == 0) +size_t x_146; lean_object* x_147; +x_146 = lean_usize_of_nat(x_85); +lean_dec(x_85); +x_147 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_68, x_125, x_146, x_124); +lean_dec(x_68); +if (x_96 == 0) { -lean_object* x_144; -lean_dec(x_90); -x_144 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_143, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_144; +lean_object* x_148; +lean_dec(x_94); +x_148 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_147, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_148; } else { -uint8_t x_145; -x_145 = lean_nat_dec_le(x_90, x_90); -if (x_145 == 0) +uint8_t x_149; +x_149 = lean_nat_dec_le(x_94, x_94); +if (x_149 == 0) { -lean_object* x_146; -lean_dec(x_90); -x_146 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_143, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_146; +lean_object* x_150; +lean_dec(x_94); +x_150 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_147, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +return x_150; } else { -size_t x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_148 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_121, x_147, x_143); -x_149 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_148, x_126, x_10, x_11, x_12, x_13, x_14, x_15, x_127); -return x_149; -} -} -} -} -} -else -{ -uint8_t x_150; -lean_dec(x_120); -lean_dec(x_90); -lean_dec(x_81); -lean_dec(x_64); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_150 = !lean_is_exclusive(x_125); -if (x_150 == 0) -{ -return x_125; -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_125, 0); -x_152 = lean_ctor_get(x_125, 1); -lean_inc(x_152); -lean_inc(x_151); -lean_dec(x_125); -x_153 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); +size_t x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_152 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_125, x_151, x_147); +x_153 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_152, x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_131); return x_153; } } @@ -30148,46 +30237,46 @@ return x_153; } else { -uint8_t x_172; -lean_dec(x_90); -lean_dec(x_81); -lean_dec(x_64); -lean_dec(x_63); +uint8_t x_154; +lean_dec(x_124); +lean_dec(x_94); +lean_dec(x_85); +lean_dec(x_68); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_5); -x_172 = !lean_is_exclusive(x_115); -if (x_172 == 0) +x_154 = !lean_is_exclusive(x_129); +if (x_154 == 0) { -return x_115; +return x_129; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_115, 0); -x_174 = lean_ctor_get(x_115, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_115); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_129, 0); +x_156 = lean_ctor_get(x_129, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_129); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; +} +} } } } else { uint8_t x_176; -lean_dec(x_103); -lean_dec(x_90); -lean_dec(x_81); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_94); +lean_dec(x_85); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30195,19 +30284,19 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_5); -x_176 = !lean_is_exclusive(x_111); +x_176 = !lean_is_exclusive(x_119); if (x_176 == 0) { -return x_111; +return x_119; } else { lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_111, 0); -x_178 = lean_ctor_get(x_111, 1); +x_177 = lean_ctor_get(x_119, 0); +x_178 = lean_ctor_get(x_119, 1); lean_inc(x_178); lean_inc(x_177); -lean_dec(x_111); +lean_dec(x_119); x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_177); lean_ctor_set(x_179, 1, x_178); @@ -30218,13 +30307,11 @@ return x_179; else { uint8_t x_180; -lean_dec(x_103); -lean_dec(x_90); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_107); +lean_dec(x_94); +lean_dec(x_85); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30232,19 +30319,19 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_5); -x_180 = !lean_is_exclusive(x_107); +x_180 = !lean_is_exclusive(x_115); if (x_180 == 0) { -return x_107; +return x_115; } else { lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_107, 0); -x_182 = lean_ctor_get(x_107, 1); +x_181 = lean_ctor_get(x_115, 0); +x_182 = lean_ctor_get(x_115, 1); lean_inc(x_182); lean_inc(x_181); -lean_dec(x_107); +lean_dec(x_115); x_183 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_183, 0, x_181); lean_ctor_set(x_183, 1, x_182); @@ -30252,54 +30339,53 @@ return x_183; } } } -} else { -uint8_t x_198; -lean_dec(x_90); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +uint8_t x_184; +lean_dec(x_107); +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); 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); -x_198 = !lean_is_exclusive(x_101); -if (x_198 == 0) +x_184 = !lean_is_exclusive(x_111); +if (x_184 == 0) { -return x_101; +return x_111; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_101, 0); -x_200 = lean_ctor_get(x_101, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_101); -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; +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_111, 0); +x_186 = lean_ctor_get(x_111, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_111); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} } } } else { uint8_t x_202; -lean_dec(x_90); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30309,19 +30395,19 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_202 = !lean_is_exclusive(x_99); +x_202 = !lean_is_exclusive(x_105); if (x_202 == 0) { -return x_99; +return x_105; } else { lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_99, 0); -x_204 = lean_ctor_get(x_99, 1); +x_203 = lean_ctor_get(x_105, 0); +x_204 = lean_ctor_get(x_105, 1); lean_inc(x_204); lean_inc(x_203); -lean_dec(x_99); +lean_dec(x_105); x_205 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_205, 0, x_203); lean_ctor_set(x_205, 1, x_204); @@ -30332,12 +30418,12 @@ return x_205; else { uint8_t x_206; -lean_dec(x_90); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30347,19 +30433,19 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_206 = !lean_is_exclusive(x_97); +x_206 = !lean_is_exclusive(x_103); if (x_206 == 0) { -return x_97; +return x_103; } else { lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_97, 0); -x_208 = lean_ctor_get(x_97, 1); +x_207 = lean_ctor_get(x_103, 0); +x_208 = lean_ctor_get(x_103, 1); lean_inc(x_208); lean_inc(x_207); -lean_dec(x_97); +lean_dec(x_103); x_209 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_209, 0, x_207); lean_ctor_set(x_209, 1, x_208); @@ -30367,15 +30453,15 @@ return x_209; } } } -} else { -uint8_t x_218; -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +uint8_t x_210; +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30385,35 +30471,35 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_218 = !lean_is_exclusive(x_88); -if (x_218 == 0) +x_210 = !lean_is_exclusive(x_101); +if (x_210 == 0) { -return x_88; +return x_101; } else { -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_88, 0); -x_220 = lean_ctor_get(x_88, 1); -lean_inc(x_220); -lean_inc(x_219); -lean_dec(x_88); -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; +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_101, 0); +x_212 = lean_ctor_get(x_101, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_101); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; +} } } } else { uint8_t x_222; +lean_dec(x_87); lean_dec(x_85); -lean_dec(x_83); -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30423,19 +30509,19 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_222 = !lean_is_exclusive(x_86); +x_222 = !lean_is_exclusive(x_92); if (x_222 == 0) { -return x_86; +return x_92; } else { lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_86, 0); -x_224 = lean_ctor_get(x_86, 1); +x_223 = lean_ctor_get(x_92, 0); +x_224 = lean_ctor_get(x_92, 1); lean_inc(x_224); lean_inc(x_223); -lean_dec(x_86); +lean_dec(x_92); x_225 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_225, 0, x_223); lean_ctor_set(x_225, 1, x_224); @@ -30445,191 +30531,13 @@ return x_225; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; -x_226 = lean_ctor_get(x_74, 0); -x_227 = lean_ctor_get(x_74, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_74); -x_228 = lean_ctor_get(x_5, 4); -lean_inc(x_228); -x_229 = lean_box(0); -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_66); -lean_ctor_set(x_230, 1, x_229); -lean_inc(x_228); -x_231 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_226); -lean_ctor_set(x_231, 2, x_230); -x_232 = lean_array_get_size(x_64); -x_233 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set(x_233, 1, x_229); -x_234 = lean_ctor_get(x_5, 1); -lean_inc(x_234); -x_235 = lean_ctor_get_uint8(x_234, sizeof(void*)*2 + 3); -lean_inc(x_232); -lean_inc(x_63); -x_236 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_236, 0, x_63); -lean_ctor_set(x_236, 1, x_232); -lean_ctor_set(x_236, 2, x_233); -lean_ctor_set_uint8(x_236, sizeof(void*)*3, x_235); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_236); -x_237 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_236, x_10, x_11, x_12, x_13, x_14, x_15, x_227); -if (lean_obj_tag(x_237) == 0) -{ -lean_object* x_238; lean_object* x_239; -x_238 = lean_ctor_get(x_237, 1); -lean_inc(x_238); -lean_dec(x_237); -lean_inc(x_15); -lean_inc(x_14); -x_239 = l_Lean_addDecl(x_236, x_14, x_15, x_238); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; uint8_t x_244; lean_object* x_245; -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -lean_dec(x_239); -x_241 = lean_array_get_size(x_4); -x_242 = lean_unsigned_to_nat(0u); -x_243 = lean_nat_dec_lt(x_242, x_241); -x_244 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -if (x_243 == 0) -{ -lean_object* x_362; -x_362 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_245 = x_362; -goto block_361; -} -else -{ -uint8_t x_363; -x_363 = lean_nat_dec_le(x_241, x_241); -if (x_363 == 0) -{ -lean_object* x_364; -x_364 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_245 = x_364; -goto block_361; -} -else -{ -size_t x_365; size_t x_366; lean_object* x_367; lean_object* x_368; -x_365 = 0; -x_366 = lean_usize_of_nat(x_241); -x_367 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_368 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(x_4, x_365, x_366, x_367); -x_245 = x_368; -goto block_361; -} -} -block_361: -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_246 = lean_array_to_list(lean_box(0), x_245); -x_247 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_246, x_229); -lean_inc(x_14); -lean_inc(x_12); -lean_inc(x_10); -lean_inc(x_228); -x_248 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_228, x_247, x_244, x_10, x_11, x_12, x_13, x_14, x_15, x_240); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; lean_object* x_250; -x_249 = lean_ctor_get(x_248, 1); -lean_inc(x_249); -lean_dec(x_248); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_228); -x_250 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_228, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_249); -if (lean_obj_tag(x_250) == 0) -{ -lean_object* x_251; lean_object* x_252; -x_251 = lean_ctor_get(x_250, 1); -lean_inc(x_251); -lean_dec(x_250); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_228); -x_252 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_228, x_10, x_11, x_12, x_13, x_14, x_15, x_251); -if (lean_obj_tag(x_252) == 0) -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_252, 1); -lean_inc(x_253); -lean_dec(x_252); -if (x_243 == 0) -{ -lean_object* x_336; -x_336 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_254 = x_336; -x_255 = x_253; -goto block_335; -} -else -{ -uint8_t x_337; -x_337 = lean_nat_dec_le(x_241, x_241); -if (x_337 == 0) -{ -lean_object* x_338; -x_338 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_254 = x_338; -x_255 = x_253; -goto block_335; -} -else -{ -size_t x_339; size_t x_340; lean_object* x_341; lean_object* x_342; -x_339 = 0; -x_340 = lean_usize_of_nat(x_241); -x_341 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_342 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_339, x_340, x_341, x_10, x_11, x_12, x_13, x_14, x_15, x_253); -if (lean_obj_tag(x_342) == 0) -{ -lean_object* x_343; lean_object* x_344; -x_343 = lean_ctor_get(x_342, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_342, 1); -lean_inc(x_344); -lean_dec(x_342); -x_254 = x_343; -x_255 = x_344; -goto block_335; -} -else -{ -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -lean_dec(x_241); -lean_dec(x_234); -lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +uint8_t x_226; +lean_dec(x_89); +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -30639,385 +30547,365 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_345 = lean_ctor_get(x_342, 0); -lean_inc(x_345); -x_346 = lean_ctor_get(x_342, 1); -lean_inc(x_346); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_347 = x_342; -} else { - lean_dec_ref(x_342); - x_347 = lean_box(0); -} -if (lean_is_scalar(x_347)) { - x_348 = lean_alloc_ctor(1, 2, 0); -} else { - x_348 = x_347; -} -lean_ctor_set(x_348, 0, x_345); -lean_ctor_set(x_348, 1, x_346); -return x_348; -} -} -} -block_335: +x_226 = !lean_is_exclusive(x_90); +if (x_226 == 0) { -lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_inc(x_5); +return x_90; +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_90, 0); +x_228 = lean_ctor_get(x_90, 1); lean_inc(x_228); -x_256 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2), 11, 4); -lean_closure_set(x_256, 0, x_228); -lean_closure_set(x_256, 1, x_6); -lean_closure_set(x_256, 2, x_7); -lean_closure_set(x_256, 3, x_5); -x_257 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3___closed__1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_258 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_256, x_257, x_10, x_11, x_12, x_13, x_14, x_15, x_255); -if (lean_obj_tag(x_258) == 0) +lean_inc(x_227); +lean_dec(x_90); +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; +} +} +} +else { -lean_object* x_259; lean_object* x_260; uint8_t x_261; lean_object* x_262; -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -lean_dec(x_258); -x_260 = lean_ctor_get(x_234, 1); -lean_inc(x_260); -lean_dec(x_234); -x_261 = 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; lean_object* x_237; lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; +x_230 = lean_ctor_get(x_78, 0); +x_231 = lean_ctor_get(x_78, 1); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_78); +x_232 = lean_ctor_get(x_5, 4); +lean_inc(x_232); +x_233 = lean_box(0); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_70); +lean_ctor_set(x_234, 1, x_233); +lean_inc(x_232); +x_235 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_235, 0, x_232); +lean_ctor_set(x_235, 1, x_230); +lean_ctor_set(x_235, 2, x_234); +x_236 = lean_array_get_size(x_68); +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_233); +x_238 = lean_ctor_get(x_5, 1); +lean_inc(x_238); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*2 + 3); +lean_inc(x_236); +lean_inc(x_67); +x_240 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_240, 0, x_67); +lean_ctor_set(x_240, 1, x_236); +lean_ctor_set(x_240, 2, x_237); +lean_ctor_set_uint8(x_240, sizeof(void*)*3, x_239); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_262 = l_Lean_Elab_Term_applyAttributesAt(x_228, x_260, x_261, x_10, x_11, x_12, x_13, x_14, x_15, x_259); +lean_inc(x_240); +x_241 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_240, x_10, x_11, x_12, x_13, x_14, x_15, x_231); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +lean_dec(x_241); +lean_inc(x_15); +lean_inc(x_14); +x_243 = l_Lean_addDecl(x_240, x_14, x_15, x_242); +if (lean_obj_tag(x_243) == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; uint8_t x_248; lean_object* x_249; +x_244 = lean_ctor_get(x_243, 1); +lean_inc(x_244); +lean_dec(x_243); +x_245 = lean_array_get_size(x_4); +x_246 = lean_unsigned_to_nat(0u); +x_247 = lean_nat_dec_lt(x_246, x_245); +x_248 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +if (x_247 == 0) +{ +lean_object* x_366; +x_366 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_249 = x_366; +goto block_365; +} +else +{ +uint8_t x_367; +x_367 = lean_nat_dec_le(x_245, x_245); +if (x_367 == 0) +{ +lean_object* x_368; +x_368 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_249 = x_368; +goto block_365; +} +else +{ +size_t x_369; size_t x_370; lean_object* x_371; lean_object* x_372; +x_369 = 0; +x_370 = lean_usize_of_nat(x_245); +x_371 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_372 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__10(x_4, x_369, x_370, x_371); +x_249 = x_372; +goto block_365; +} +} +block_365: +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_250 = lean_array_to_list(lean_box(0), x_249); +x_251 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_250, x_233); +lean_inc(x_14); +lean_inc(x_12); +lean_inc(x_10); +lean_inc(x_232); +x_252 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_232, x_251, x_248, x_10, x_11, x_12, x_13, x_14, x_15, x_244); +if (lean_obj_tag(x_252) == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_ctor_get(x_252, 1); +lean_inc(x_253); +lean_dec(x_252); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_232); +x_254 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_232, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_253); +if (lean_obj_tag(x_254) == 0) +{ +lean_object* x_255; lean_object* x_256; +x_255 = lean_ctor_get(x_254, 1); +lean_inc(x_255); +lean_dec(x_254); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_232); +x_256 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_232, x_10, x_11, x_12, x_13, x_14, x_15, x_255); +if (lean_obj_tag(x_256) == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_256, 1); +lean_inc(x_257); +lean_dec(x_256); +if (x_247 == 0) +{ +lean_object* x_340; +x_340 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_258 = x_340; +x_259 = x_257; +goto block_339; +} +else +{ +uint8_t x_341; +x_341 = lean_nat_dec_le(x_245, x_245); +if (x_341 == 0) +{ +lean_object* x_342; +x_342 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_258 = x_342; +x_259 = x_257; +goto block_339; +} +else +{ +size_t x_343; size_t x_344; lean_object* x_345; lean_object* x_346; +x_343 = 0; +x_344 = lean_usize_of_nat(x_245); +x_345 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_346 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_343, x_344, x_345, x_10, x_11, x_12, x_13, x_14, x_15, x_257); +if (lean_obj_tag(x_346) == 0) +{ +lean_object* x_347; lean_object* x_348; +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_346, 1); +lean_inc(x_348); +lean_dec(x_346); +x_258 = x_347; +x_259 = x_348; +goto block_339; +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +lean_dec(x_245); +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_232); +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_15); +lean_dec(x_14); +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); +x_349 = lean_ctor_get(x_346, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_346, 1); +lean_inc(x_350); +if (lean_is_exclusive(x_346)) { + lean_ctor_release(x_346, 0); + lean_ctor_release(x_346, 1); + x_351 = x_346; +} else { + lean_dec_ref(x_346); + x_351 = lean_box(0); +} +if (lean_is_scalar(x_351)) { + x_352 = lean_alloc_ctor(1, 2, 0); +} else { + x_352 = x_351; +} +lean_ctor_set(x_352, 0, x_349); +lean_ctor_set(x_352, 1, x_350); +return x_352; +} +} +} +block_339: +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_inc(x_5); +lean_inc(x_232); +x_260 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2), 11, 4); +lean_closure_set(x_260, 0, x_232); +lean_closure_set(x_260, 1, x_6); +lean_closure_set(x_260, 2, x_7); +lean_closure_set(x_260, 3, x_5); +x_261 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__3___closed__1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_262 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__2(x_260, x_261, x_10, x_11, x_12, x_13, x_14, x_15, x_259); if (lean_obj_tag(x_262) == 0) { -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +lean_object* x_263; lean_object* x_264; uint8_t x_265; lean_object* x_266; x_263 = lean_ctor_get(x_262, 1); lean_inc(x_263); lean_dec(x_262); -x_264 = lean_array_to_list(lean_box(0), x_254); -x_265 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_264, x_229); +x_264 = lean_ctor_get(x_238, 1); +lean_inc(x_264); +lean_dec(x_238); +x_265 = 0; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_266 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_265, x_10, x_11, x_12, x_13, x_14, x_15, x_263); +lean_inc(x_11); +lean_inc(x_10); +x_266 = l_Lean_Elab_Term_applyAttributesAt(x_232, x_264, x_265, x_10, x_11, x_12, x_13, x_14, x_15, x_263); if (lean_obj_tag(x_266) == 0) { -lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; x_267 = lean_ctor_get(x_266, 1); lean_inc(x_267); lean_dec(x_266); -x_268 = lean_array_get_size(x_8); -x_269 = lean_nat_dec_lt(x_242, x_268); -if (x_269 == 0) -{ -lean_dec(x_268); -lean_dec(x_63); -lean_dec(x_5); -x_270 = x_267; -goto block_312; -} -else -{ -uint8_t x_313; -x_313 = lean_nat_dec_le(x_268, x_268); -if (x_313 == 0) -{ -lean_dec(x_268); -lean_dec(x_63); -lean_dec(x_5); -x_270 = x_267; -goto block_312; -} -else -{ -size_t x_314; size_t x_315; lean_object* x_316; lean_object* x_317; -x_314 = 0; -x_315 = lean_usize_of_nat(x_268); -lean_dec(x_268); -x_316 = lean_box(0); +x_268 = lean_array_to_list(lean_box(0), x_258); +x_269 = l_List_mapTR_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(x_268, x_233); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -lean_inc(x_64); -x_317 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_5, x_63, x_64, x_8, x_314, x_315, x_316, x_10, x_11, x_12, x_13, x_14, x_15, x_267); -if (lean_obj_tag(x_317) == 0) +x_270 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_269, x_10, x_11, x_12, x_13, x_14, x_15, x_267); +if (lean_obj_tag(x_270) == 0) { -lean_object* x_318; -x_318 = lean_ctor_get(x_317, 1); -lean_inc(x_318); -lean_dec(x_317); -x_270 = x_318; -goto block_312; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -lean_dec(x_241); -lean_dec(x_232); -lean_dec(x_64); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_319 = lean_ctor_get(x_317, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_317, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_317)) { - lean_ctor_release(x_317, 0); - lean_ctor_release(x_317, 1); - x_321 = x_317; -} else { - lean_dec_ref(x_317); - x_321 = lean_box(0); -} -if (lean_is_scalar(x_321)) { - x_322 = lean_alloc_ctor(1, 2, 0); -} else { - x_322 = x_321; -} -lean_ctor_set(x_322, 0, x_319); -lean_ctor_set(x_322, 1, x_320); -return x_322; -} -} -} -block_312: -{ -lean_object* x_271; size_t x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_12, 1); +lean_object* x_271; lean_object* x_272; uint8_t x_273; lean_object* x_274; +x_271 = lean_ctor_get(x_270, 1); lean_inc(x_271); -x_272 = 0; -if (x_243 == 0) +lean_dec(x_270); +x_272 = lean_array_get_size(x_8); +x_273 = lean_nat_dec_lt(x_246, x_272); +if (x_273 == 0) { -lean_object* x_306; -x_306 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_273 = x_306; -goto block_305; +lean_dec(x_272); +lean_dec(x_67); +lean_dec(x_5); +x_274 = x_271; +goto block_316; } else { -uint8_t x_307; -x_307 = lean_nat_dec_le(x_241, x_241); -if (x_307 == 0) +uint8_t x_317; +x_317 = lean_nat_dec_le(x_272, x_272); +if (x_317 == 0) { -lean_object* x_308; -x_308 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_273 = x_308; -goto block_305; +lean_dec(x_272); +lean_dec(x_67); +lean_dec(x_5); +x_274 = x_271; +goto block_316; } else { -size_t x_309; lean_object* x_310; lean_object* x_311; -x_309 = lean_usize_of_nat(x_241); -x_310 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; -x_311 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_272, x_309, x_310); -x_273 = x_311; -goto block_305; -} -} -block_305: -{ -lean_object* x_274; size_t x_275; lean_object* x_276; -x_274 = lean_array_get_size(x_273); -x_275 = lean_usize_of_nat(x_274); -lean_dec(x_274); +size_t x_318; size_t x_319; lean_object* x_320; lean_object* x_321; +x_318 = 0; +x_319 = lean_usize_of_nat(x_272); +lean_dec(x_272); +x_320 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_276 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_275, x_272, x_273, x_10, x_11, x_12, x_13, x_14, x_15, x_270); -if (lean_obj_tag(x_276) == 0) +lean_inc(x_68); +x_321 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_5, x_67, x_68, x_8, x_318, x_319, x_320, x_10, x_11, x_12, x_13, x_14, x_15, x_271); +if (lean_obj_tag(x_321) == 0) { -lean_object* x_277; lean_object* x_278; uint8_t x_279; -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -lean_dec(x_276); -x_279 = lean_nat_dec_lt(x_242, x_232); -if (x_279 == 0) -{ -lean_dec(x_232); -lean_dec(x_64); -if (x_243 == 0) -{ -lean_object* x_280; -lean_dec(x_241); -x_280 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_271, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_280; -} -else -{ -uint8_t x_281; -x_281 = lean_nat_dec_le(x_241, x_241); -if (x_281 == 0) -{ -lean_object* x_282; -lean_dec(x_241); -x_282 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_271, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_282; -} -else -{ -size_t x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_usize_of_nat(x_241); -lean_dec(x_241); -x_284 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_272, x_283, x_271); -x_285 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_284, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_285; -} -} -} -else -{ -uint8_t x_286; -x_286 = lean_nat_dec_le(x_232, x_232); -if (x_286 == 0) -{ -lean_dec(x_232); -lean_dec(x_64); -if (x_243 == 0) -{ -lean_object* x_287; -lean_dec(x_241); -x_287 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_271, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_287; -} -else -{ -uint8_t x_288; -x_288 = lean_nat_dec_le(x_241, x_241); -if (x_288 == 0) -{ -lean_object* x_289; -lean_dec(x_241); -x_289 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_271, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_289; -} -else -{ -size_t x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_usize_of_nat(x_241); -lean_dec(x_241); -x_291 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_272, x_290, x_271); -x_292 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_291, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_292; -} -} -} -else -{ -size_t x_293; lean_object* x_294; -x_293 = lean_usize_of_nat(x_232); -lean_dec(x_232); -x_294 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_64, x_272, x_293, x_271); -lean_dec(x_64); -if (x_243 == 0) -{ -lean_object* x_295; -lean_dec(x_241); -x_295 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_294, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_295; -} -else -{ -uint8_t x_296; -x_296 = lean_nat_dec_le(x_241, x_241); -if (x_296 == 0) -{ -lean_object* x_297; -lean_dec(x_241); -x_297 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_294, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_297; -} -else -{ -size_t x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_usize_of_nat(x_241); -lean_dec(x_241); -x_299 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_272, x_298, x_294); -x_300 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_299, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_278); -return x_300; -} -} -} -} -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_271); -lean_dec(x_241); -lean_dec(x_232); -lean_dec(x_64); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_301 = lean_ctor_get(x_276, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_276, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_303 = x_276; -} else { - lean_dec_ref(x_276); - x_303 = lean_box(0); -} -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(1, 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; -} -} -} +lean_object* x_322; +x_322 = lean_ctor_get(x_321, 1); +lean_inc(x_322); +lean_dec(x_321); +x_274 = x_322; +goto block_316; } else { lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -lean_dec(x_241); -lean_dec(x_232); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_245); +lean_dec(x_236); +lean_dec(x_68); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_5); -x_323 = lean_ctor_get(x_266, 0); +x_323 = lean_ctor_get(x_321, 0); lean_inc(x_323); -x_324 = lean_ctor_get(x_266, 1); +x_324 = lean_ctor_get(x_321, 1); lean_inc(x_324); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_325 = x_266; +if (lean_is_exclusive(x_321)) { + lean_ctor_release(x_321, 0); + lean_ctor_release(x_321, 1); + x_325 = x_321; } else { - lean_dec_ref(x_266); + lean_dec_ref(x_321); x_325 = lean_box(0); } if (lean_is_scalar(x_325)) { @@ -31030,14 +30918,213 @@ lean_ctor_set(x_326, 1, x_324); return x_326; } } +} +block_316: +{ +lean_object* x_275; size_t x_276; lean_object* x_277; +x_275 = lean_ctor_get(x_12, 1); +lean_inc(x_275); +x_276 = 0; +if (x_247 == 0) +{ +lean_object* x_310; +x_310 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_277 = x_310; +goto block_309; +} +else +{ +uint8_t x_311; +x_311 = lean_nat_dec_le(x_245, x_245); +if (x_311 == 0) +{ +lean_object* x_312; +x_312 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_277 = x_312; +goto block_309; +} +else +{ +size_t x_313; lean_object* x_314; lean_object* x_315; +x_313 = lean_usize_of_nat(x_245); +x_314 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_315 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_276, x_313, x_314); +x_277 = x_315; +goto block_309; +} +} +block_309: +{ +lean_object* x_278; size_t x_279; lean_object* x_280; +x_278 = lean_array_get_size(x_277); +x_279 = lean_usize_of_nat(x_278); +lean_dec(x_278); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_280 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4(x_279, x_276, x_277, x_10, x_11, x_12, x_13, x_14, x_15, x_274); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; uint8_t x_283; +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_280, 1); +lean_inc(x_282); +lean_dec(x_280); +x_283 = lean_nat_dec_lt(x_246, x_236); +if (x_283 == 0) +{ +lean_dec(x_236); +lean_dec(x_68); +if (x_247 == 0) +{ +lean_object* x_284; +lean_dec(x_245); +x_284 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_275, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_284; +} +else +{ +uint8_t x_285; +x_285 = lean_nat_dec_le(x_245, x_245); +if (x_285 == 0) +{ +lean_object* x_286; +lean_dec(x_245); +x_286 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_275, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_286; +} +else +{ +size_t x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_usize_of_nat(x_245); +lean_dec(x_245); +x_288 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_276, x_287, x_275); +x_289 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_288, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_289; +} +} +} +else +{ +uint8_t x_290; +x_290 = lean_nat_dec_le(x_236, x_236); +if (x_290 == 0) +{ +lean_dec(x_236); +lean_dec(x_68); +if (x_247 == 0) +{ +lean_object* x_291; +lean_dec(x_245); +x_291 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_275, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_291; +} +else +{ +uint8_t x_292; +x_292 = lean_nat_dec_le(x_245, x_245); +if (x_292 == 0) +{ +lean_object* x_293; +lean_dec(x_245); +x_293 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_275, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_293; +} +else +{ +size_t x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_usize_of_nat(x_245); +lean_dec(x_245); +x_295 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_276, x_294, x_275); +x_296 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_295, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_296; +} +} +} +else +{ +size_t x_297; lean_object* x_298; +x_297 = lean_usize_of_nat(x_236); +lean_dec(x_236); +x_298 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_68, x_276, x_297, x_275); +lean_dec(x_68); +if (x_247 == 0) +{ +lean_object* x_299; +lean_dec(x_245); +x_299 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_298, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_299; +} +else +{ +uint8_t x_300; +x_300 = lean_nat_dec_le(x_245, x_245); +if (x_300 == 0) +{ +lean_object* x_301; +lean_dec(x_245); +x_301 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_298, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_301; +} +else +{ +size_t x_302; lean_object* x_303; lean_object* x_304; +x_302 = lean_usize_of_nat(x_245); +lean_dec(x_245); +x_303 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_276, x_302, x_298); +x_304 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_303, x_281, x_10, x_11, x_12, x_13, x_14, x_15, x_282); +return x_304; +} +} +} +} +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +lean_dec(x_275); +lean_dec(x_245); +lean_dec(x_236); +lean_dec(x_68); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_305 = lean_ctor_get(x_280, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_280, 1); +lean_inc(x_306); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + x_307 = x_280; +} else { + lean_dec_ref(x_280); + x_307 = lean_box(0); +} +if (lean_is_scalar(x_307)) { + x_308 = lean_alloc_ctor(1, 2, 0); +} else { + x_308 = x_307; +} +lean_ctor_set(x_308, 0, x_305); +lean_ctor_set(x_308, 1, x_306); +return x_308; +} +} +} +} else { lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -lean_dec(x_254); -lean_dec(x_241); -lean_dec(x_232); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_245); +lean_dec(x_236); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31045,16 +31132,16 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_5); -x_327 = lean_ctor_get(x_262, 0); +x_327 = lean_ctor_get(x_270, 0); lean_inc(x_327); -x_328 = lean_ctor_get(x_262, 1); +x_328 = lean_ctor_get(x_270, 1); lean_inc(x_328); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_329 = x_262; +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_329 = x_270; } else { - lean_dec_ref(x_262); + lean_dec_ref(x_270); x_329 = lean_box(0); } if (lean_is_scalar(x_329)) { @@ -31070,13 +31157,11 @@ return x_330; else { lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; -lean_dec(x_254); -lean_dec(x_241); -lean_dec(x_234); -lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_258); +lean_dec(x_245); +lean_dec(x_236); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31084,16 +31169,16 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_5); -x_331 = lean_ctor_get(x_258, 0); +x_331 = lean_ctor_get(x_266, 0); lean_inc(x_331); -x_332 = lean_ctor_get(x_258, 1); +x_332 = lean_ctor_get(x_266, 1); lean_inc(x_332); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_333 = x_258; +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_333 = x_266; } else { - lean_dec_ref(x_258); + lean_dec_ref(x_266); x_333 = lean_box(0); } if (lean_is_scalar(x_333)) { @@ -31106,56 +31191,55 @@ lean_ctor_set(x_334, 1, x_332); return x_334; } } -} else { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_241); -lean_dec(x_234); +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +lean_dec(x_258); +lean_dec(x_245); +lean_dec(x_238); +lean_dec(x_236); lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); 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); -x_349 = lean_ctor_get(x_252, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_252, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_252)) { - lean_ctor_release(x_252, 0); - lean_ctor_release(x_252, 1); - x_351 = x_252; +x_335 = lean_ctor_get(x_262, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_262, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_337 = x_262; } else { - lean_dec_ref(x_252); - x_351 = lean_box(0); + lean_dec_ref(x_262); + x_337 = lean_box(0); } -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_337)) { + x_338 = lean_alloc_ctor(1, 2, 0); } else { - x_352 = x_351; + x_338 = x_337; +} +lean_ctor_set(x_338, 0, x_335); +lean_ctor_set(x_338, 1, x_336); +return x_338; } -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; } } else { lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec(x_241); -lean_dec(x_234); +lean_dec(x_245); +lean_dec(x_238); +lean_dec(x_236); lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31165,16 +31249,16 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_353 = lean_ctor_get(x_250, 0); +x_353 = lean_ctor_get(x_256, 0); lean_inc(x_353); -x_354 = lean_ctor_get(x_250, 1); +x_354 = lean_ctor_get(x_256, 1); lean_inc(x_354); -if (lean_is_exclusive(x_250)) { - lean_ctor_release(x_250, 0); - lean_ctor_release(x_250, 1); - x_355 = x_250; +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_355 = x_256; } else { - lean_dec_ref(x_250); + lean_dec_ref(x_256); x_355 = lean_box(0); } if (lean_is_scalar(x_355)) { @@ -31190,12 +31274,12 @@ return x_356; else { lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -lean_dec(x_241); -lean_dec(x_234); +lean_dec(x_245); +lean_dec(x_238); +lean_dec(x_236); lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31205,16 +31289,16 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_357 = lean_ctor_get(x_248, 0); +x_357 = lean_ctor_get(x_254, 0); lean_inc(x_357); -x_358 = lean_ctor_get(x_248, 1); +x_358 = lean_ctor_get(x_254, 1); lean_inc(x_358); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_359 = x_248; +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_359 = x_254; } else { - lean_dec_ref(x_248); + lean_dec_ref(x_254); x_359 = lean_box(0); } if (lean_is_scalar(x_359)) { @@ -31227,15 +31311,15 @@ lean_ctor_set(x_360, 1, x_358); return x_360; } } -} else { -lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; -lean_dec(x_234); +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +lean_dec(x_245); +lean_dec(x_238); +lean_dec(x_236); lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31245,37 +31329,37 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_369 = lean_ctor_get(x_239, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_239, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - lean_ctor_release(x_239, 1); - x_371 = x_239; +x_361 = lean_ctor_get(x_252, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_252, 1); +lean_inc(x_362); +if (lean_is_exclusive(x_252)) { + lean_ctor_release(x_252, 0); + lean_ctor_release(x_252, 1); + x_363 = x_252; } else { - lean_dec_ref(x_239); - x_371 = lean_box(0); + lean_dec_ref(x_252); + x_363 = lean_box(0); } -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_363)) { + x_364 = lean_alloc_ctor(1, 2, 0); } else { - x_372 = x_371; + x_364 = x_363; +} +lean_ctor_set(x_364, 0, x_361); +lean_ctor_set(x_364, 1, x_362); +return x_364; } -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -return x_372; } } else { lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +lean_dec(x_238); lean_dec(x_236); -lean_dec(x_234); lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31285,16 +31369,16 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_373 = lean_ctor_get(x_237, 0); +x_373 = lean_ctor_get(x_243, 0); lean_inc(x_373); -x_374 = lean_ctor_get(x_237, 1); +x_374 = lean_ctor_get(x_243, 1); lean_inc(x_374); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_375 = x_237; +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_375 = x_243; } else { - lean_dec_ref(x_237); + lean_dec_ref(x_243); x_375 = lean_box(0); } if (lean_is_scalar(x_375)) { @@ -31307,13 +31391,15 @@ lean_ctor_set(x_376, 1, x_374); return x_376; } } -} else { -uint8_t x_377; -lean_dec(x_66); -lean_dec(x_64); -lean_dec(x_63); +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +lean_dec(x_240); +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_232); +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31323,22 +31409,25 @@ lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_377 = !lean_is_exclusive(x_71); -if (x_377 == 0) -{ -return x_71; -} -else -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_378 = lean_ctor_get(x_71, 0); -x_379 = lean_ctor_get(x_71, 1); -lean_inc(x_379); +x_377 = lean_ctor_get(x_241, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_241, 1); lean_inc(x_378); -lean_dec(x_71); -x_380 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_379); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_379 = x_241; +} else { + lean_dec_ref(x_241); + x_379 = lean_box(0); +} +if (lean_is_scalar(x_379)) { + x_380 = lean_alloc_ctor(1, 2, 0); +} else { + x_380 = x_379; +} +lean_ctor_set(x_380, 0, x_377); +lean_ctor_set(x_380, 1, x_378); return x_380; } } @@ -31346,8 +31435,43 @@ return x_380; else { uint8_t x_381; -lean_dec(x_64); -lean_dec(x_63); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_15); +lean_dec(x_14); +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); +x_381 = !lean_is_exclusive(x_75); +if (x_381 == 0) +{ +return x_75; +} +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_382 = lean_ctor_get(x_75, 0); +x_383 = lean_ctor_get(x_75, 1); +lean_inc(x_383); +lean_inc(x_382); +lean_dec(x_75); +x_384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_384, 0, x_382); +lean_ctor_set(x_384, 1, x_383); +return x_384; +} +} +} +else +{ +uint8_t x_385; +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31358,30 +31482,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_381 = !lean_is_exclusive(x_65); -if (x_381 == 0) +x_385 = !lean_is_exclusive(x_69); +if (x_385 == 0) { -return x_65; +return x_69; } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_65, 0); -x_383 = lean_ctor_get(x_65, 1); -lean_inc(x_383); -lean_inc(x_382); -lean_dec(x_65); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -return x_384; +lean_object* x_386; lean_object* x_387; lean_object* x_388; +x_386 = lean_ctor_get(x_69, 0); +x_387 = lean_ctor_get(x_69, 1); +lean_inc(x_387); +lean_inc(x_386); +lean_dec(x_69); +x_388 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_388, 0, x_386); +lean_ctor_set(x_388, 1, x_387); +return x_388; } } } } else { -uint8_t x_385; +uint8_t x_389; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31394,23 +31518,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_385 = !lean_is_exclusive(x_17); -if (x_385 == 0) +x_389 = !lean_is_exclusive(x_17); +if (x_389 == 0) { return x_17; } else { -lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_386 = lean_ctor_get(x_17, 0); -x_387 = lean_ctor_get(x_17, 1); -lean_inc(x_387); -lean_inc(x_386); +lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_390 = lean_ctor_get(x_17, 0); +x_391 = lean_ctor_get(x_17, 1); +lean_inc(x_391); +lean_inc(x_390); lean_dec(x_17); -x_388 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_388, 0, x_386); -lean_ctor_set(x_388, 1, x_387); -return x_388; +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +return x_392; } } } @@ -31466,7 +31590,7 @@ lean_inc(x_9); x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam(x_9, x_1, x_2, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_16); 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_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; uint8_t x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 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; uint8_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); @@ -31494,56 +31618,61 @@ x_60 = lean_ctor_get(x_14, 9); lean_inc(x_60); x_61 = lean_ctor_get(x_14, 10); lean_inc(x_61); -x_62 = lean_ctor_get_uint8(x_14, sizeof(void*)*11); -x_63 = l_Lean_replaceRef(x_5, x_56); +x_62 = lean_ctor_get_uint8(x_14, sizeof(void*)*12); +x_63 = lean_ctor_get(x_14, 11); +lean_inc(x_63); +x_64 = lean_ctor_get_uint8(x_14, sizeof(void*)*12 + 1); +x_65 = l_Lean_replaceRef(x_5, x_56); lean_dec(x_56); -x_64 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_64, 0, x_51); -lean_ctor_set(x_64, 1, x_52); -lean_ctor_set(x_64, 2, x_53); -lean_ctor_set(x_64, 3, x_54); -lean_ctor_set(x_64, 4, x_55); -lean_ctor_set(x_64, 5, x_63); -lean_ctor_set(x_64, 6, x_57); -lean_ctor_set(x_64, 7, x_58); -lean_ctor_set(x_64, 8, x_59); -lean_ctor_set(x_64, 9, x_60); -lean_ctor_set(x_64, 10, x_61); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_62); +x_66 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_66, 0, x_51); +lean_ctor_set(x_66, 1, x_52); +lean_ctor_set(x_66, 2, x_53); +lean_ctor_set(x_66, 3, x_54); +lean_ctor_set(x_66, 4, x_55); +lean_ctor_set(x_66, 5, x_65); +lean_ctor_set(x_66, 6, x_57); +lean_ctor_set(x_66, 7, x_58); +lean_ctor_set(x_66, 8, x_59); +lean_ctor_set(x_66, 9, x_60); +lean_ctor_set(x_66, 10, x_61); +lean_ctor_set(x_66, 11, x_63); +lean_ctor_set_uint8(x_66, sizeof(void*)*12, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*12 + 1, x_64); if (lean_obj_tag(x_3) == 0) { -lean_object* x_65; +lean_object* x_67; lean_inc(x_15); -lean_inc(x_64); +lean_inc(x_66); lean_inc(x_13); lean_inc(x_12); lean_inc(x_10); lean_inc(x_8); -x_65 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_8, x_10, x_11, x_12, x_13, x_64, x_15, x_19); -if (lean_obj_tag(x_65) == 0) +x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(x_8, x_10, x_11, x_12, x_13, x_66, x_15, x_19); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -lean_inc(x_10); -x_68 = l_Lean_Elab_Command_checkResultingUniverse(x_66, x_10, x_11, x_12, x_13, x_64, x_15, x_67); -lean_dec(x_64); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_68, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +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_68); +lean_dec(x_67); +lean_inc(x_10); +x_70 = l_Lean_Elab_Command_checkResultingUniverse(x_68, x_10, x_11, x_12, x_13, x_66, x_15, x_69); +lean_dec(x_66); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); x_20 = x_8; -x_21 = x_69; +x_21 = x_71; goto block_50; } else { -uint8_t x_70; +uint8_t x_72; lean_dec(x_18); lean_dec(x_15); lean_dec(x_14); @@ -31558,30 +31687,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_68); -if (x_70 == 0) +x_72 = !lean_is_exclusive(x_70); +if (x_72 == 0) { -return x_68; +return x_70; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_68, 0); -x_72 = lean_ctor_get(x_68, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_68); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_70, 0); +x_74 = lean_ctor_get(x_70, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_70); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -uint8_t x_74; -lean_dec(x_64); +uint8_t x_76; +lean_dec(x_66); lean_dec(x_18); lean_dec(x_15); lean_dec(x_14); @@ -31596,51 +31725,51 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_65); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_67); +if (x_76 == 0) { -return x_65; +return x_67; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_65, 0); -x_76 = lean_ctor_get(x_65, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_65); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_67, 0); +x_78 = lean_ctor_get(x_67, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_67); +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; } } } else { -lean_object* x_78; +lean_object* x_80; lean_dec(x_3); lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_78 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(x_18, x_8, x_10, x_11, x_12, x_13, x_64, x_15, x_19); -if (lean_obj_tag(x_78) == 0) +x_80 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(x_18, x_8, x_10, x_11, x_12, x_13, x_66, x_15, x_19); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_20 = x_79; -x_21 = x_80; +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_20 = x_81; +x_21 = x_82; goto block_50; } else { -uint8_t x_81; +uint8_t x_83; lean_dec(x_18); lean_dec(x_15); lean_dec(x_14); @@ -31654,23 +31783,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_78); -if (x_81 == 0) +x_83 = !lean_is_exclusive(x_80); +if (x_83 == 0) { -return x_78; +return x_80; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_78, 0); -x_83 = lean_ctor_get(x_78, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_78); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_80, 0); +x_85 = lean_ctor_get(x_80, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_80); +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; } } } @@ -31760,7 +31889,7 @@ return x_49; } else { -uint8_t x_85; +uint8_t x_87; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -31775,23 +31904,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_17); -if (x_85 == 0) +x_87 = !lean_is_exclusive(x_17); +if (x_87 == 0) { return x_17; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_17, 0); -x_87 = lean_ctor_get(x_17, 1); -lean_inc(x_87); -lean_inc(x_86); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_17, 0); +x_89 = lean_ctor_get(x_17, 1); +lean_inc(x_89); +lean_inc(x_88); lean_dec(x_17); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } @@ -32009,7 +32138,7 @@ 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; 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_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; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_18 = lean_ctor_get(x_9, 0); x_19 = lean_ctor_get(x_9, 1); x_20 = lean_ctor_get(x_9, 2); @@ -32021,7 +32150,10 @@ x_25 = lean_ctor_get(x_9, 7); x_26 = lean_ctor_get(x_9, 8); x_27 = lean_ctor_get(x_9, 9); x_28 = lean_ctor_get(x_9, 10); -x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_30 = lean_ctor_get(x_9, 11); +x_31 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_30); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); @@ -32034,24 +32166,26 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_9); -x_30 = l_Lean_replaceRef(x_12, x_23); +x_32 = l_Lean_replaceRef(x_12, x_23); lean_dec(x_23); lean_dec(x_12); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_30); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_25); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set(x_31, 9, x_27); -lean_ctor_set(x_31, 10, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_29); -x_32 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_31, x_10, x_11); -return x_32; +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_19); +lean_ctor_set(x_33, 2, x_20); +lean_ctor_set(x_33, 3, x_21); +lean_ctor_set(x_33, 4, x_22); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_24); +lean_ctor_set(x_33, 7, x_25); +lean_ctor_set(x_33, 8, x_26); +lean_ctor_set(x_33, 9, x_27); +lean_ctor_set(x_33, 10, x_28); +lean_ctor_set(x_33, 11, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_31); +x_34 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_33, x_10, x_11); +return x_34; } } } diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index bb120ac260..4ec9a9f27a 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -80,6 +80,7 @@ static lean_object* l_Lean_Elab_Term_checkLeftRec___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSyntax___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*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__23; static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__2; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processAlias___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2___boxed(lean_object*, lean_object*); @@ -2638,7 +2639,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -2650,7 +2651,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -2663,32 +2667,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -3436,7 +3442,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -3448,7 +3454,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -3461,32 +3470,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__10(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -4163,7 +4174,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4175,7 +4186,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4188,29 +4202,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_elabParserName_x3f___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabParserName_x3f___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -4862,7 +4878,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -4874,7 +4890,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -4887,29 +4906,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_elabParserName___spec__2(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabParserName___spec__2(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -6651,7 +6672,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -6663,7 +6684,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -6676,29 +6700,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_process___spec__3(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_process___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -7210,7 +7236,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -7222,7 +7248,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -7235,32 +7264,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_process___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_process___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -7684,7 +7715,7 @@ return x_80; } else { -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; uint8_t x_92; lean_object* x_93; lean_object* x_94; +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; uint8_t x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; x_81 = lean_ctor_get(x_8, 0); x_82 = lean_ctor_get(x_8, 1); x_83 = lean_ctor_get(x_8, 2); @@ -7696,7 +7727,10 @@ x_88 = lean_ctor_get(x_8, 7); x_89 = lean_ctor_get(x_8, 8); x_90 = lean_ctor_get(x_8, 9); x_91 = lean_ctor_get(x_8, 10); -x_92 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_92 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_93 = lean_ctor_get(x_8, 11); +x_94 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_93); lean_inc(x_91); lean_inc(x_90); lean_inc(x_89); @@ -7709,123 +7743,125 @@ lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_dec(x_8); -x_93 = l_Lean_replaceRef(x_1, x_86); +x_95 = l_Lean_replaceRef(x_1, x_86); lean_dec(x_86); -x_94 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_94, 0, x_81); -lean_ctor_set(x_94, 1, x_82); -lean_ctor_set(x_94, 2, x_83); -lean_ctor_set(x_94, 3, x_84); -lean_ctor_set(x_94, 4, x_85); -lean_ctor_set(x_94, 5, x_93); -lean_ctor_set(x_94, 6, x_87); -lean_ctor_set(x_94, 7, x_88); -lean_ctor_set(x_94, 8, x_89); -lean_ctor_set(x_94, 9, x_90); -lean_ctor_set(x_94, 10, x_91); -lean_ctor_set_uint8(x_94, sizeof(void*)*11, x_92); +x_96 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_96, 0, x_81); +lean_ctor_set(x_96, 1, x_82); +lean_ctor_set(x_96, 2, x_83); +lean_ctor_set(x_96, 3, x_84); +lean_ctor_set(x_96, 4, x_85); +lean_ctor_set(x_96, 5, x_95); +lean_ctor_set(x_96, 6, x_87); +lean_ctor_set(x_96, 7, x_88); +lean_ctor_set(x_96, 8, x_89); +lean_ctor_set(x_96, 9, x_90); +lean_ctor_set(x_96, 10, x_91); +lean_ctor_set(x_96, 11, x_93); +lean_ctor_set_uint8(x_96, sizeof(void*)*12, x_92); +lean_ctor_set_uint8(x_96, sizeof(void*)*12 + 1, x_94); if (x_13 == 0) { -lean_object* x_95; uint8_t x_96; -x_95 = l_Lean_Elab_Term_toParserDescr_process___closed__2; -x_96 = lean_name_eq(x_11, x_95); -if (x_96 == 0) -{ lean_object* x_97; uint8_t x_98; -x_97 = l_Lean_Elab_Term_toParserDescr_process___closed__3; +x_97 = l_Lean_Elab_Term_toParserDescr_process___closed__2; x_98 = lean_name_eq(x_11, x_97); if (x_98 == 0) { lean_object* x_99; uint8_t x_100; -x_99 = l_Lean_Elab_Term_checkLeftRec___closed__3; +x_99 = l_Lean_Elab_Term_toParserDescr_process___closed__3; x_100 = lean_name_eq(x_11, x_99); if (x_100 == 0) { lean_object* x_101; uint8_t x_102; -x_101 = l_Lean_Elab_Term_toParserDescr_process___closed__4; +x_101 = l_Lean_Elab_Term_checkLeftRec___closed__3; x_102 = lean_name_eq(x_11, x_101); if (x_102 == 0) { lean_object* x_103; uint8_t x_104; -x_103 = l_Lean_Elab_Term_toParserDescr_process___closed__5; +x_103 = l_Lean_Elab_Term_toParserDescr_process___closed__4; x_104 = lean_name_eq(x_11, x_103); if (x_104 == 0) { lean_object* x_105; uint8_t x_106; -x_105 = l_Lean_Elab_Term_toParserDescr_process___closed__7; +x_105 = l_Lean_Elab_Term_toParserDescr_process___closed__5; x_106 = lean_name_eq(x_11, x_105); if (x_106 == 0) { lean_object* x_107; uint8_t x_108; -x_107 = l_Lean_Elab_Term_toParserDescr_process___closed__9; +x_107 = l_Lean_Elab_Term_toParserDescr_process___closed__7; x_108 = lean_name_eq(x_11, x_107); if (x_108 == 0) { lean_object* x_109; uint8_t x_110; -x_109 = l_Lean_Elab_Term_toParserDescr_process___closed__11; +x_109 = l_Lean_Elab_Term_toParserDescr_process___closed__9; x_110 = lean_name_eq(x_11, x_109); if (x_110 == 0) { lean_object* x_111; uint8_t x_112; -x_111 = l_Lean_Elab_Term_toParserDescr_process___closed__13; +x_111 = l_Lean_Elab_Term_toParserDescr_process___closed__11; x_112 = lean_name_eq(x_11, x_111); if (x_112 == 0) { -lean_object* x_113; lean_object* x_114; +lean_object* x_113; uint8_t x_114; +x_113 = l_Lean_Elab_Term_toParserDescr_process___closed__13; +x_114 = lean_name_eq(x_11, x_113); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_inc(x_1); -x_113 = lean_alloc_closure((void*)(l_Lean_Macro_expandMacro_x3f), 3, 1); -lean_closure_set(x_113, 0, x_1); +x_115 = lean_alloc_closure((void*)(l_Lean_Macro_expandMacro_x3f), 3, 1); +lean_closure_set(x_115, 0, x_1); lean_inc(x_9); -lean_inc(x_94); +lean_inc(x_96); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_114 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_toParserDescr_process___spec__1(x_113, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -if (lean_obj_tag(x_114) == 0) +x_116 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_toParserDescr_process___spec__1(x_115, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_115; -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -if (lean_obj_tag(x_115) == 0) +lean_object* x_117; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +if (lean_obj_tag(x_117) == 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; lean_object* x_122; -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -x_117 = l_Lean_MessageData_ofName(x_11); -x_118 = l_Lean_Elab_Term_toParserDescr_process___closed__15; -x_119 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = l_Lean_Elab_Term_elabParserName_x3f___closed__3; +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; +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +x_119 = l_Lean_MessageData_ofName(x_11); +x_120 = l_Lean_Elab_Term_toParserDescr_process___closed__15; x_121 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_throwErrorAt___at_Lean_Elab_Term_toParserDescr_process___spec__6(x_1, x_121, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_116); -return x_122; +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_119); +x_122 = l_Lean_Elab_Term_elabParserName_x3f___closed__3; +x_123 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Lean_throwErrorAt___at_Lean_Elab_Term_toParserDescr_process___spec__6(x_1, x_123, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_118); +return x_124; } else { -lean_object* x_123; lean_object* x_124; +lean_object* x_125; lean_object* x_126; lean_dec(x_11); lean_dec(x_1); -x_123 = lean_ctor_get(x_114, 1); -lean_inc(x_123); -lean_dec(x_114); -x_124 = lean_ctor_get(x_115, 0); -lean_inc(x_124); -lean_dec(x_115); -x_1 = x_124; -x_8 = x_94; -x_10 = x_123; +x_125 = lean_ctor_get(x_116, 1); +lean_inc(x_125); +lean_dec(x_116); +x_126 = lean_ctor_get(x_117, 0); +lean_inc(x_126); +lean_dec(x_117); +x_1 = x_126; +x_8 = x_96; +x_10 = x_125; goto _start; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_94); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_96); lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -7835,48 +7871,25 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_126 = lean_ctor_get(x_114, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_114, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_128 = x_114; +x_128 = lean_ctor_get(x_116, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_116, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_130 = x_116; } else { - lean_dec_ref(x_114); - x_128 = lean_box(0); + lean_dec_ref(x_116); + x_130 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(1, 2, 0); } else { - x_129 = x_128; + x_131 = x_130; } -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; -} -} -else -{ -lean_object* x_130; -lean_dec(x_11); -x_130 = l_Lean_Elab_Term_toParserDescr_processNonReserved(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, 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); -return x_130; -} -} -else -{ -lean_object* x_131; -lean_dec(x_11); -x_131 = l_Lean_Elab_Term_toParserDescr_processAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); +lean_ctor_set(x_131, 0, x_128); +lean_ctor_set(x_131, 1, x_129); return x_131; } } @@ -7884,8 +7897,14 @@ else { lean_object* x_132; lean_dec(x_11); -x_132 = l_Lean_Elab_Term_toParserDescr_processSepBy1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -lean_dec(x_1); +x_132 = l_Lean_Elab_Term_toParserDescr_processNonReserved(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, 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); return x_132; } } @@ -7893,82 +7912,99 @@ else { lean_object* x_133; lean_dec(x_11); -x_133 = l_Lean_Elab_Term_toParserDescr_processSepBy(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -lean_dec(x_1); +x_133 = l_Lean_Elab_Term_toParserDescr_processAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); 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; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_object* x_134; lean_dec(x_11); -x_134 = lean_unsigned_to_nat(0u); -x_135 = l_Lean_Syntax_getArg(x_1, x_134); -x_136 = lean_unsigned_to_nat(2u); +x_134 = l_Lean_Elab_Term_toParserDescr_processSepBy1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +lean_dec(x_1); +return x_134; +} +} +else +{ +lean_object* x_135; +lean_dec(x_11); +x_135 = l_Lean_Elab_Term_toParserDescr_processSepBy(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +lean_dec(x_1); +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_dec(x_11); +x_136 = lean_unsigned_to_nat(0u); x_137 = l_Lean_Syntax_getArg(x_1, x_136); -x_138 = lean_unsigned_to_nat(4u); +x_138 = lean_unsigned_to_nat(2u); x_139 = l_Lean_Syntax_getArg(x_1, x_138); +x_140 = lean_unsigned_to_nat(4u); +x_141 = l_Lean_Syntax_getArg(x_1, x_140); lean_dec(x_1); -x_140 = l_Lean_Elab_Term_toParserDescr_process___closed__16; -x_141 = lean_array_push(x_140, x_137); -x_142 = lean_array_push(x_141, x_139); -x_143 = l_Lean_Elab_Term_toParserDescr_processAlias(x_135, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -return x_143; +x_142 = l_Lean_Elab_Term_toParserDescr_process___closed__16; +x_143 = lean_array_push(x_142, x_139); +x_144 = lean_array_push(x_143, x_141); +x_145 = l_Lean_Elab_Term_toParserDescr_processAlias(x_137, x_144, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +return x_145; } } else { -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_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_dec(x_11); -x_144 = lean_unsigned_to_nat(0u); -x_145 = l_Lean_Syntax_getArg(x_1, x_144); -x_146 = lean_unsigned_to_nat(2u); +x_146 = lean_unsigned_to_nat(0u); x_147 = l_Lean_Syntax_getArg(x_1, x_146); +x_148 = lean_unsigned_to_nat(2u); +x_149 = l_Lean_Syntax_getArg(x_1, x_148); lean_dec(x_1); -x_148 = l_Lean_Elab_Term_ensureUnaryOutput___closed__21; -x_149 = lean_array_push(x_148, x_147); -x_150 = l_Lean_Elab_Term_toParserDescr_processAlias(x_145, x_149, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -return x_150; +x_150 = l_Lean_Elab_Term_ensureUnaryOutput___closed__21; +x_151 = lean_array_push(x_150, x_149); +x_152 = l_Lean_Elab_Term_toParserDescr_processAlias(x_147, x_151, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +return x_152; } } else { -lean_object* x_151; +lean_object* x_153; lean_dec(x_11); -x_151 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -return x_151; +x_153 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +return x_153; } } else { -lean_object* x_152; lean_object* x_153; +lean_object* x_154; lean_object* x_155; lean_dec(x_11); -x_152 = lean_unsigned_to_nat(1u); -x_153 = l_Lean_Syntax_getArg(x_1, x_152); +x_154 = lean_unsigned_to_nat(1u); +x_155 = l_Lean_Syntax_getArg(x_1, x_154); lean_dec(x_1); -x_1 = x_153; -x_8 = x_94; +x_1 = x_155; +x_8 = x_96; goto _start; } } else { -lean_object* x_155; lean_object* x_156; +lean_object* x_157; lean_object* x_158; lean_dec(x_11); -x_155 = lean_unsigned_to_nat(0u); -x_156 = l_Lean_Syntax_getArg(x_1, x_155); +x_157 = lean_unsigned_to_nat(0u); +x_158 = l_Lean_Syntax_getArg(x_1, x_157); lean_dec(x_1); -x_1 = x_156; -x_8 = x_94; +x_1 = x_158; +x_8 = x_96; goto _start; } } else { -lean_object* x_158; +lean_object* x_160; lean_dec(x_11); -x_158 = l_Lean_Elab_Term_toParserDescr_processSeq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10); -return x_158; +x_160 = l_Lean_Elab_Term_toParserDescr_processSeq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_96, x_9, x_10); +return x_160; } } } @@ -17284,24 +17320,71 @@ return x_9; } else { -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = l_Lean_Exception_isInterrupt(x_11); +if (x_13 == 0) +{ +lean_free_object(x_9); +lean_dec(x_11); x_2 = x_7; -x_5 = x_10; +x_5 = x_12; goto _start; } +else +{ +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_9); +x_17 = l_Lean_Exception_isInterrupt(x_15); +if (x_17 == 0) +{ +lean_dec(x_15); +x_2 = x_7; +x_5 = x_16; +goto _start; +} +else +{ +lean_object* x_19; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_15); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +} +} } default: { -lean_object* x_12; lean_object* x_13; +lean_object* x_20; lean_object* x_21; lean_dec(x_2); lean_dec(x_1); -x_12 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; -x_13 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_12, x_3, x_4, x_5); +x_20 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; +x_21 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_20, x_3, x_4, x_5); lean_dec(x_4); -return x_13; +return x_21; } } } @@ -17355,96 +17438,149 @@ uint8_t x_11; x_11 = !lean_is_exclusive(x_10); 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; -x_12 = lean_ctor_get(x_10, 1); -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = l_Lean_MessageData_ofName(x_1); -x_15 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; -lean_ctor_set_tag(x_10, 6); -lean_ctor_set(x_10, 1, x_14); -lean_ctor_set(x_10, 0, x_15); -x_16 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = l_Lean_Exception_isInterrupt(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_free_object(x_10); +lean_dec(x_12); +x_15 = l_Lean_MessageData_ofName(x_1); +x_16 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; lean_ctor_set_tag(x_5, 6); -lean_ctor_set(x_5, 1, x_16); -lean_ctor_set(x_5, 0, x_10); -x_17 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_5, x_2, x_3, x_12); +lean_ctor_set(x_5, 1, x_15); +lean_ctor_set(x_5, 0, x_16); +x_17 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; +x_18 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_18, 0, x_5); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_18, x_2, x_3, x_13); lean_dec(x_3); -return x_17; +return x_19; } 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_10, 1); -lean_inc(x_18); -lean_dec(x_10); -x_19 = l_Lean_MessageData_ofName(x_1); -x_20 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; -x_21 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; -lean_ctor_set_tag(x_5, 6); -lean_ctor_set(x_5, 1, x_22); -lean_ctor_set(x_5, 0, x_21); -x_23 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_5, x_2, x_3, x_18); -lean_dec(x_3); -return x_23; -} -} -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_5, 0); -x_25 = lean_ctor_get(x_5, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_5); -x_26 = lean_ctor_get(x_24, 2); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_27 = l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___at_Lean_Elab_Command_resolveSyntaxKind___spec__1(x_1, x_26, x_2, x_3, x_25); -if (lean_obj_tag(x_27) == 0) -{ +lean_free_object(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); +return x_10; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_10); +x_22 = l_Lean_Exception_isInterrupt(x_20); +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_dec(x_20); +x_23 = l_Lean_MessageData_ofName(x_1); +x_24 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; +lean_ctor_set_tag(x_5, 6); +lean_ctor_set(x_5, 1, x_23); +lean_ctor_set(x_5, 0, x_24); +x_25 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; +x_26 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_26, 0, x_5); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_26, x_2, x_3, x_21); +lean_dec(x_3); return x_27; } else { -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; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_29 = x_27; -} else { - lean_dec_ref(x_27); - x_29 = lean_box(0); -} -x_30 = l_Lean_MessageData_ofName(x_1); -x_31 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; -if (lean_is_scalar(x_29)) { - x_32 = lean_alloc_ctor(6, 2, 0); -} else { - x_32 = x_29; - lean_ctor_set_tag(x_32, 6); -} -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; -x_34 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_34, x_2, x_3, x_28); +lean_object* x_28; +lean_free_object(x_5); lean_dec(x_3); -return x_35; +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_21); +return x_28; +} +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_5, 0); +x_30 = lean_ctor_get(x_5, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_5); +x_31 = lean_ctor_get(x_29, 2); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_32 = l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___at_Lean_Elab_Command_resolveSyntaxKind___spec__1(x_1, x_31, x_2, x_3, x_30); +if (lean_obj_tag(x_32) == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +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 = l_Lean_Exception_isInterrupt(x_33); +if (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_dec(x_35); +lean_dec(x_33); +x_37 = l_Lean_MessageData_ofName(x_1); +x_38 = l_Lean_Elab_Command_resolveSyntaxKind___closed__2; +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___lambda__1___closed__4; +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_41, x_2, x_3, x_34); +lean_dec(x_3); +return x_42; +} +else +{ +lean_object* x_43; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_35)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_35; +} +lean_ctor_set(x_43, 0, x_33); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} } } } @@ -17843,7 +17979,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -17852,6 +17988,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -17861,19 +18000,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__6(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__6(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -18353,7 +18494,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -18362,6 +18503,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -18371,18 +18515,20 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_2, x_21, x_4, x_8); -return x_22; +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -18928,7 +19074,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -18937,6 +19083,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -18946,18 +19095,20 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(x_2, x_21, x_4, x_8); -return x_22; +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -24152,7 +24303,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -24161,6 +24312,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -24170,19 +24324,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__4(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__4(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index af5e257df3..6ff6e25f79 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -14,17 +14,19 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12; static lean_object* l_Lean_Elab_Term_instBEqPostponeBehavior___closed__1; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__1; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashSetImp_contains___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__14(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*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__12; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__1(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_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___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_EXPORT lean_object* l_Lean_mkHashSet___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -36,18 +38,21 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___boxed(lean_ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13___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_Lean_Elab_Term_withSynthesizeLight___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_instInhabitedPostponeBehavior; lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2___closed__2; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15; extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628_(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSomeUsingDefaultPrio_visit___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_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -59,30 +64,35 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at_Lean_Elab_Term_runTa lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(lean_object*, 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*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16; size_t lean_hashset_mk_idx(lean_object*, uint64_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_toCtorIdx___boxed(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___spec__1___closed__1; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2; static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instReprPostponeBehavior; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11; lean_object* l_Lean_MetavarContext_getDelayedMVarAssignmentCore_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__2; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__3; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__1; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; static lean_object* l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1___closed__1; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePending(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__10___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__5; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5; lean_object* lean_mk_array(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesizeLight(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l___private_Init_GetElem_0__outOfBounds___rarg(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__3; @@ -92,7 +102,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_S lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8; LEAN_EXPORT lean_object* l_Lean_mkHashSet___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -101,7 +111,6 @@ static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synth LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__2(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_Term_reportStuckSyntheticMVar___closed__2; LEAN_EXPORT lean_object* l_List_elem___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__3___boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__16___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_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13(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*, lean_object*); lean_object* l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -113,7 +122,9 @@ static lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lea static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__1; LEAN_EXPORT uint8_t l_Lean_HashSetImp_contains___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987_(uint8_t, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__5; lean_object* l_Lean_stringToMessageData(lean_object*); @@ -121,12 +132,12 @@ lean_object* l_Lean_Expr_mvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2; lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5; lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20; LEAN_EXPORT lean_object* l_Lean_HashSetImp_expand___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__5(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeLightImp(lean_object*); @@ -134,40 +145,36 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop___boxed( static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12___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_Lean_Elab_Term_withSynthesizeLight___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__19; static lean_object* l_Lean_Elab_Term_runTactic___lambda__3___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___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_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2; LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9; static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_processPostponedUniverseContraints(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_List_elem___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101____boxed(lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_instInhabitedInfoTree; size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesizeLight___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSavedContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7; lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4; static lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___closed__1; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_appendTrees___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef(lean_object*, 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_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__14; -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6; LEAN_EXPORT lean_object* l_Lean_occursCheck_visit___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeLightImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -177,8 +184,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_runPendingTacticsAt(lean_object*, lean lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*); lean_object* lean_nat_to_int(lean_object*); static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__1; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4; lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14; lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -193,7 +202,6 @@ lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986_(uint8_t, lean_object*); lean_object* l_Lean_Elab_goalsToMessageData(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -204,56 +212,59 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_markAsResolved___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11(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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; extern uint8_t l_Lean_instInhabitedBinderInfo; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(uint8_t, uint8_t); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_mkLetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__1; static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__15; static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5; extern lean_object* l_Lean_Meta_instInhabitedDefaultInstances; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; extern lean_object* l_Lean_Meta_defaultInstanceExtension; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePending___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1; static lean_object* l_Lean_Elab_Term_runTactic___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_ofBool___boxed(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__18; +static lean_object* l_Lean_Elab_Term_runTactic___lambda__3___closed__3; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__4; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3; lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSomeUsingDefaultPrio_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_occursCheck_visitMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,9 +275,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(l static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__8; -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7; static lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Elab_Term_runTactic___spec__5___closed__1; -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17; LEAN_EXPORT lean_object* l_Lean_HashSetImp_insert___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__4(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getExprAssignmentCore_x3f(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -276,9 +285,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1___closed__2; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6; LEAN_EXPORT lean_object* l_Lean_occursCheck_visitMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__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_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -290,10 +299,9 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_SyntheticM LEAN_EXPORT lean_object* l_List_foldl___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__7___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__15___closed__1; lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -303,25 +311,28 @@ lean_object* l_Lean_LocalContext_mkLocalDecl(lean_object*, lean_object*, lean_ob LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__16; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_markAsResolved(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashSetImp_moveEntries___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___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_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7; lean_object* l_Lean_Elab_Term_ensureHasType(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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__7; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19; static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeSomeUsingDefault_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef___spec__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_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___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_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___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_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_runTactic___spec__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_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__12___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_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__1; @@ -334,18 +345,18 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___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_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___spec__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_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Elab_Term_runTactic___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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*); +static lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(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_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(uint8_t, uint8_t); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_Meta_coerce_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -356,39 +367,40 @@ static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synth LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__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_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___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* l_Lean_getDelayedMVarRoot___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3; LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_RBNode_isBlack___rarg(lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm___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_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSomeUsingDefaultPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(uint8_t, 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*); +lean_object* l_Array_ofSubarray___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_postponeExceptionId; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSyntheticMVarsRef___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__17; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Level_hash(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13; lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__6; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8; LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1___boxed(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); @@ -401,21 +413,18 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___privat LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg___lambda__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_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16; size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_replace___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3; lean_object* l_Lean_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__8(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1___closed__1; lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1; extern lean_object* l_Lean_Level_instHashable; +LEAN_EXPORT uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(uint8_t, uint8_t); lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_markAsResolved___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -433,16 +442,13 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at___private_Lean_Elab_SyntheticM LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(lean_object*, 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*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__2; -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14; LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___spec__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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___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*); static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__2___closed__1; lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_instBEq; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__10; -LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(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_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -454,18 +460,24 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPending uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7; lean_object* lean_expr_dbg_to_string(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14; uint8_t l_Lean_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10; lean_object* lean_nat_add(lean_object*, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); uint8_t l_Lean_Level_normLtAux(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20; lean_object* l_Lean_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__9; lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11___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___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_Elab_Term_runTactic___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -481,17 +493,17 @@ static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___clos lean_object* l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__11; uint8_t l_Lean_Expr_hasExprMVar(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__9; lean_object* l_Lean_Meta_processPostponed(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(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_object* x_10) { _start: { uint8_t x_11; -x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); if (x_11 == 0) { uint8_t x_12; @@ -500,31 +512,33 @@ if (x_12 == 0) { uint8_t x_13; uint8_t x_14; lean_object* x_15; x_13 = 0; -lean_ctor_set_uint8(x_4, sizeof(void*)*8 + 1, x_13); +lean_ctor_set_uint8(x_4, sizeof(void*)*9 + 1, x_13); x_14 = 1; x_15 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; x_16 = lean_ctor_get(x_4, 0); x_17 = lean_ctor_get(x_4, 1); x_18 = lean_ctor_get(x_4, 2); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); x_21 = lean_ctor_get(x_4, 3); x_22 = lean_ctor_get(x_4, 4); x_23 = lean_ctor_get(x_4, 5); x_24 = lean_ctor_get(x_4, 6); -x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5); -x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6); -x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); x_30 = lean_ctor_get(x_4, 7); -x_31 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 8); -x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 9); +x_31 = lean_ctor_get(x_4, 8); +x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_24); lean_inc(x_23); @@ -534,96 +548,100 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_4); -x_33 = 0; -x_34 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_34, 0, x_16); -lean_ctor_set(x_34, 1, x_17); -lean_ctor_set(x_34, 2, x_18); -lean_ctor_set(x_34, 3, x_21); -lean_ctor_set(x_34, 4, x_22); -lean_ctor_set(x_34, 5, x_23); -lean_ctor_set(x_34, 6, x_24); -lean_ctor_set(x_34, 7, x_30); -lean_ctor_set_uint8(x_34, sizeof(void*)*8, x_19); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 1, x_33); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 2, x_20); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 3, x_25); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 4, x_26); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 5, x_27); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 6, x_28); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 7, x_29); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 8, x_31); -lean_ctor_set_uint8(x_34, sizeof(void*)*8 + 9, x_32); -x_35 = 1; -x_36 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_33, x_35, x_34, x_5, x_6, x_7, x_8, x_9, x_10); -return x_36; +x_34 = 0; +x_35 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_35, 0, x_16); +lean_ctor_set(x_35, 1, x_17); +lean_ctor_set(x_35, 2, x_18); +lean_ctor_set(x_35, 3, x_21); +lean_ctor_set(x_35, 4, x_22); +lean_ctor_set(x_35, 5, x_23); +lean_ctor_set(x_35, 6, x_24); +lean_ctor_set(x_35, 7, x_30); +lean_ctor_set(x_35, 8, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*9, x_19); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 1, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 2, x_20); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 3, x_25); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 4, x_26); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 5, x_27); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 6, x_28); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 7, x_29); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 8, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*9 + 9, x_33); +x_36 = 1; +x_37 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_34, x_36, x_35, x_5, x_6, x_7, x_8, x_9, x_10); +return x_37; } } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_4); -if (x_37 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_4); +if (x_38 == 0) { -uint8_t x_38; uint8_t x_39; lean_object* x_40; -lean_ctor_set_uint8(x_4, sizeof(void*)*8 + 1, x_3); -x_38 = 0; -x_39 = 1; -x_40 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_38, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_40; +uint8_t x_39; uint8_t x_40; lean_object* x_41; +lean_ctor_set_uint8(x_4, sizeof(void*)*9 + 1, x_3); +x_39 = 0; +x_40 = 1; +x_41 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_39, x_40, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_41; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; -x_41 = lean_ctor_get(x_4, 0); -x_42 = lean_ctor_get(x_4, 1); -x_43 = lean_ctor_get(x_4, 2); -x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); -x_46 = lean_ctor_get(x_4, 3); -x_47 = lean_ctor_get(x_4, 4); -x_48 = lean_ctor_get(x_4, 5); -x_49 = lean_ctor_get(x_4, 6); -x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4); -x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5); -x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6); -x_54 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); -x_55 = lean_ctor_get(x_4, 7); -x_56 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 8); -x_57 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 9); -lean_inc(x_55); +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; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; lean_object* x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; +x_42 = lean_ctor_get(x_4, 0); +x_43 = lean_ctor_get(x_4, 1); +x_44 = lean_ctor_get(x_4, 2); +x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_47 = lean_ctor_get(x_4, 3); +x_48 = lean_ctor_get(x_4, 4); +x_49 = lean_ctor_get(x_4, 5); +x_50 = lean_ctor_get(x_4, 6); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_54 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_55 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_56 = lean_ctor_get(x_4, 7); +x_57 = lean_ctor_get(x_4, 8); +x_58 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_59 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); +lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); lean_dec(x_4); -x_58 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_58, 0, x_41); -lean_ctor_set(x_58, 1, x_42); -lean_ctor_set(x_58, 2, x_43); -lean_ctor_set(x_58, 3, x_46); -lean_ctor_set(x_58, 4, x_47); -lean_ctor_set(x_58, 5, x_48); -lean_ctor_set(x_58, 6, x_49); -lean_ctor_set(x_58, 7, x_55); -lean_ctor_set_uint8(x_58, sizeof(void*)*8, x_44); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 1, x_3); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 2, x_45); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 3, x_50); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 4, x_51); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 5, x_52); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 6, x_53); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 7, x_54); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 8, x_56); -lean_ctor_set_uint8(x_58, sizeof(void*)*8 + 9, x_57); -x_59 = 0; -x_60 = 1; -x_61 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_59, x_60, x_58, x_5, x_6, x_7, x_8, x_9, x_10); -return x_61; +x_60 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_60, 0, x_42); +lean_ctor_set(x_60, 1, x_43); +lean_ctor_set(x_60, 2, x_44); +lean_ctor_set(x_60, 3, x_47); +lean_ctor_set(x_60, 4, x_48); +lean_ctor_set(x_60, 5, x_49); +lean_ctor_set(x_60, 6, x_50); +lean_ctor_set(x_60, 7, x_56); +lean_ctor_set(x_60, 8, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*9, x_45); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 1, x_3); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 2, x_46); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 3, x_51); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 4, x_52); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 5, x_53); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 6, x_54); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 7, x_55); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 8, x_58); +lean_ctor_set_uint8(x_60, sizeof(void*)*9 + 9, x_59); +x_61 = 0; +x_62 = 1; +x_63 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_61, x_62, x_60, x_5, x_6, x_7, x_8, x_9, x_10); +return x_63; } } } @@ -1771,19 +1789,19 @@ lean_ctor_set(x_18, 0, x_16); x_19 = lean_st_ref_get(x_9, x_17); if (x_3 == 0) { -uint8_t x_284; -x_284 = 1; -x_20 = x_284; -goto block_283; +uint8_t x_288; +x_288 = 1; +x_20 = x_288; +goto block_287; } else { -uint8_t x_285; -x_285 = 0; -x_20 = x_285; -goto block_283; +uint8_t x_289; +x_289 = 0; +x_20 = x_289; +goto block_287; } -block_283: +block_287: { lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 0); @@ -1810,7 +1828,7 @@ lean_inc(x_2); x_25 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(x_2, x_18, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_24); 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; lean_object* 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; lean_object* x_42; lean_object* x_43; +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; uint8_t x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -1839,47 +1857,52 @@ x_38 = lean_ctor_get(x_8, 9); lean_inc(x_38); x_39 = lean_ctor_get(x_8, 10); lean_inc(x_39); -x_40 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_41 = l_Lean_replaceRef(x_2, x_34); +x_40 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_41 = lean_ctor_get(x_8, 11); +lean_inc(x_41); +x_42 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_43 = l_Lean_replaceRef(x_2, x_34); lean_dec(x_34); lean_dec(x_2); -x_42 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_42, 0, x_29); -lean_ctor_set(x_42, 1, x_30); -lean_ctor_set(x_42, 2, x_31); -lean_ctor_set(x_42, 3, x_32); -lean_ctor_set(x_42, 4, x_33); -lean_ctor_set(x_42, 5, x_41); -lean_ctor_set(x_42, 6, x_35); -lean_ctor_set(x_42, 7, x_36); -lean_ctor_set(x_42, 8, x_37); -lean_ctor_set(x_42, 9, x_38); -lean_ctor_set(x_42, 10, x_39); -lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_40); +x_44 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_44, 0, x_29); +lean_ctor_set(x_44, 1, x_30); +lean_ctor_set(x_44, 2, x_31); +lean_ctor_set(x_44, 3, x_32); +lean_ctor_set(x_44, 4, x_33); +lean_ctor_set(x_44, 5, x_43); +lean_ctor_set(x_44, 6, x_35); +lean_ctor_set(x_44, 7, x_36); +lean_ctor_set(x_44, 8, x_37); +lean_ctor_set(x_44, 9, x_38); +lean_ctor_set(x_44, 10, x_39); +lean_ctor_set(x_44, 11, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*12, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*12 + 1, x_42); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_43 = l_Lean_Elab_Term_ensureHasType(x_18, x_26, x_28, x_28, x_4, x_5, x_6, x_7, x_42, x_9, x_27); -if (lean_obj_tag(x_43) == 0) +x_45 = l_Lean_Elab_Term_ensureHasType(x_18, x_26, x_28, x_28, x_4, x_5, x_6, x_7, x_44, x_9, x_27); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_44); -x_46 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_1, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_45); -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_unbox(x_47); -lean_dec(x_47); -if (x_48 == 0) +lean_dec(x_45); +lean_inc(x_46); +x_48 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_1, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_47); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_unbox(x_49); +lean_dec(x_49); +if (x_50 == 0) { -uint8_t x_49; -lean_dec(x_44); +uint8_t x_51; +lean_dec(x_46); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -1887,73 +1910,73 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_46); -if (x_49 == 0) +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_46, 0); -lean_dec(x_50); -x_51 = 0; -x_52 = lean_box(x_51); -lean_ctor_set(x_46, 0, x_52); -return x_46; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_48, 0); +lean_dec(x_52); +x_53 = 0; +x_54 = lean_box(x_53); +lean_ctor_set(x_48, 0, x_54); +return x_48; } else { -lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -lean_dec(x_46); -x_54 = 0; -x_55 = lean_box(x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); -return x_56; -} -} -else -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_46, 1); -lean_inc(x_57); -lean_dec(x_46); -x_58 = l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(x_1, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_57); -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_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; uint8_t x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -x_61 = 1; -x_62 = lean_box(x_61); -lean_ctor_set(x_58, 0, x_62); +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_48, 1); +lean_inc(x_55); +lean_dec(x_48); +x_56 = 0; +x_57 = lean_box(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); return x_58; } +} else { -lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_58, 1); -lean_inc(x_63); -lean_dec(x_58); -x_64 = 1; -x_65 = lean_box(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_63); -return x_66; +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_48, 1); +lean_inc(x_59); +lean_dec(x_48); +x_60 = l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(x_1, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_59); +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_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; uint8_t x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +x_63 = 1; +x_64 = lean_box(x_63); +lean_ctor_set(x_60, 0, x_64); +return x_60; +} +else +{ +lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; +x_65 = lean_ctor_get(x_60, 1); +lean_inc(x_65); +lean_dec(x_60); +x_66 = 1; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; } } } else { -uint8_t x_67; +uint8_t x_69; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -1961,29 +1984,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_43); -if (x_67 == 0) +x_69 = !lean_is_exclusive(x_45); +if (x_69 == 0) { -return x_43; +return x_45; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_43, 0); -x_69 = lean_ctor_get(x_43, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_43); -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; +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_45, 0); +x_71 = lean_ctor_get(x_45, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_45); +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 { -uint8_t x_71; +uint8_t x_73; lean_dec(x_18); lean_dec(x_9); lean_dec(x_8); @@ -1993,38 +2016,38 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_25); -if (x_71 == 0) +x_73 = !lean_is_exclusive(x_25); +if (x_73 == 0) { return x_25; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_25, 0); -x_73 = lean_ctor_get(x_25, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_25, 0); +x_75 = lean_ctor_get(x_25, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_25); -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; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -lean_object* 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_168; lean_object* x_169; lean_object* x_249; -x_75 = lean_ctor_get(x_19, 1); -lean_inc(x_75); -lean_dec(x_19); -x_76 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_9, x_75); -x_77 = lean_ctor_get(x_76, 0); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_170; lean_object* x_171; lean_object* x_251; +x_77 = lean_ctor_get(x_19, 1); lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); +lean_dec(x_19); +x_78 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_9, x_77); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -2033,135 +2056,140 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_18); lean_inc(x_2); -x_249 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(x_2, x_18, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_78); -if (lean_obj_tag(x_249) == 0) +x_251 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(x_2, x_18, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_80); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); -x_252 = lean_box(0); -x_253 = lean_ctor_get(x_8, 0); +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_251, 1); lean_inc(x_253); -x_254 = lean_ctor_get(x_8, 1); -lean_inc(x_254); -x_255 = lean_ctor_get(x_8, 2); +lean_dec(x_251); +x_254 = lean_box(0); +x_255 = lean_ctor_get(x_8, 0); lean_inc(x_255); -x_256 = lean_ctor_get(x_8, 3); +x_256 = lean_ctor_get(x_8, 1); lean_inc(x_256); -x_257 = lean_ctor_get(x_8, 4); +x_257 = lean_ctor_get(x_8, 2); lean_inc(x_257); -x_258 = lean_ctor_get(x_8, 5); +x_258 = lean_ctor_get(x_8, 3); lean_inc(x_258); -x_259 = lean_ctor_get(x_8, 6); +x_259 = lean_ctor_get(x_8, 4); lean_inc(x_259); -x_260 = lean_ctor_get(x_8, 7); +x_260 = lean_ctor_get(x_8, 5); lean_inc(x_260); -x_261 = lean_ctor_get(x_8, 8); +x_261 = lean_ctor_get(x_8, 6); lean_inc(x_261); -x_262 = lean_ctor_get(x_8, 9); +x_262 = lean_ctor_get(x_8, 7); lean_inc(x_262); -x_263 = lean_ctor_get(x_8, 10); +x_263 = lean_ctor_get(x_8, 8); lean_inc(x_263); -x_264 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_265 = l_Lean_replaceRef(x_2, x_258); -lean_dec(x_258); +x_264 = lean_ctor_get(x_8, 9); +lean_inc(x_264); +x_265 = lean_ctor_get(x_8, 10); +lean_inc(x_265); +x_266 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_267 = lean_ctor_get(x_8, 11); +lean_inc(x_267); +x_268 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_269 = l_Lean_replaceRef(x_2, x_260); +lean_dec(x_260); lean_dec(x_2); -x_266 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_266, 0, x_253); -lean_ctor_set(x_266, 1, x_254); -lean_ctor_set(x_266, 2, x_255); -lean_ctor_set(x_266, 3, x_256); -lean_ctor_set(x_266, 4, x_257); -lean_ctor_set(x_266, 5, x_265); -lean_ctor_set(x_266, 6, x_259); -lean_ctor_set(x_266, 7, x_260); -lean_ctor_set(x_266, 8, x_261); -lean_ctor_set(x_266, 9, x_262); -lean_ctor_set(x_266, 10, x_263); -lean_ctor_set_uint8(x_266, sizeof(void*)*11, x_264); +x_270 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_270, 0, x_255); +lean_ctor_set(x_270, 1, x_256); +lean_ctor_set(x_270, 2, x_257); +lean_ctor_set(x_270, 3, x_258); +lean_ctor_set(x_270, 4, x_259); +lean_ctor_set(x_270, 5, x_269); +lean_ctor_set(x_270, 6, x_261); +lean_ctor_set(x_270, 7, x_262); +lean_ctor_set(x_270, 8, x_263); +lean_ctor_set(x_270, 9, x_264); +lean_ctor_set(x_270, 10, x_265); +lean_ctor_set(x_270, 11, x_267); +lean_ctor_set_uint8(x_270, sizeof(void*)*12, x_266); +lean_ctor_set_uint8(x_270, sizeof(void*)*12 + 1, x_268); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_267 = l_Lean_Elab_Term_ensureHasType(x_18, x_250, x_252, x_252, x_4, x_5, x_6, x_7, x_266, x_9, x_251); -if (lean_obj_tag(x_267) == 0) +x_271 = l_Lean_Elab_Term_ensureHasType(x_18, x_252, x_254, x_254, x_4, x_5, x_6, x_7, x_270, x_9, x_253); +if (lean_obj_tag(x_271) == 0) { -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_267, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); -lean_dec(x_267); -lean_inc(x_268); -x_270 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_1, x_268, x_4, x_5, x_6, x_7, x_8, x_9, x_269); -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_unbox(x_271); -lean_dec(x_271); -if (x_272 == 0) -{ -lean_object* x_273; uint8_t x_274; -lean_dec(x_268); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_273 = lean_ctor_get(x_270, 1); +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); lean_inc(x_273); -lean_dec(x_270); -x_274 = 0; -x_79 = x_274; -x_80 = x_273; -goto block_167; -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; -x_275 = lean_ctor_get(x_270, 1); +lean_dec(x_271); +lean_inc(x_272); +x_274 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_1, x_272, x_4, x_5, x_6, x_7, x_8, x_9, x_273); +x_275 = lean_ctor_get(x_274, 0); lean_inc(x_275); -lean_dec(x_270); -lean_inc(x_1); -x_276 = l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(x_1, x_268, x_4, x_5, x_6, x_7, x_8, x_9, x_275); +x_276 = lean_unbox(x_275); +lean_dec(x_275); +if (x_276 == 0) +{ +lean_object* x_277; uint8_t x_278; +lean_dec(x_272); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_277 = lean_ctor_get(x_276, 1); +x_277 = lean_ctor_get(x_274, 1); lean_inc(x_277); -lean_dec(x_276); -x_278 = 1; -x_79 = x_278; -x_80 = x_277; -goto block_167; -} +lean_dec(x_274); +x_278 = 0; +x_81 = x_278; +x_82 = x_277; +goto block_169; } else { -lean_object* x_279; lean_object* x_280; +lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; +x_279 = lean_ctor_get(x_274, 1); +lean_inc(x_279); +lean_dec(x_274); +lean_inc(x_1); +x_280 = l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(x_1, x_272, x_4, x_5, x_6, x_7, x_8, x_9, x_279); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_279 = lean_ctor_get(x_267, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_267, 1); -lean_inc(x_280); -lean_dec(x_267); -x_168 = x_279; -x_169 = x_280; -goto block_248; +x_281 = lean_ctor_get(x_280, 1); +lean_inc(x_281); +lean_dec(x_280); +x_282 = 1; +x_81 = x_282; +x_82 = x_281; +goto block_169; } } else { -lean_object* x_281; lean_object* x_282; +lean_object* x_283; lean_object* x_284; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_283 = lean_ctor_get(x_271, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_271, 1); +lean_inc(x_284); +lean_dec(x_271); +x_170 = x_283; +x_171 = x_284; +goto block_250; +} +} +else +{ +lean_object* x_285; lean_object* x_286; lean_dec(x_18); lean_dec(x_8); lean_dec(x_7); @@ -2169,628 +2197,628 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_281 = lean_ctor_get(x_249, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_249, 1); -lean_inc(x_282); -lean_dec(x_249); -x_168 = x_281; -x_169 = x_282; -goto block_248; +x_285 = lean_ctor_get(x_251, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_251, 1); +lean_inc(x_286); +lean_dec(x_251); +x_170 = x_285; +x_171 = x_286; +goto block_250; } -block_167: +block_169: { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_81 = lean_st_ref_take(x_9, x_80); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_82, 6); -lean_inc(x_83); -x_84 = lean_ctor_get(x_81, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_83 = lean_st_ref_take(x_9, x_82); +x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); -lean_dec(x_81); -x_85 = !lean_is_exclusive(x_82); -if (x_85 == 0) -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_82, 6); -lean_dec(x_86); -x_87 = !lean_is_exclusive(x_83); +x_85 = lean_ctor_get(x_84, 6); +lean_inc(x_85); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec(x_83); +x_87 = !lean_is_exclusive(x_84); if (x_87 == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_88 = lean_ctor_get(x_83, 0); -x_89 = lean_ctor_get(x_83, 1); -x_90 = lean_ctor_get(x_89, 2); -lean_inc(x_90); -x_91 = lean_unsigned_to_nat(0u); -x_92 = lean_nat_dec_lt(x_91, x_90); -if (x_92 == 0) +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_84, 6); +lean_dec(x_88); +x_89 = !lean_is_exclusive(x_85); +if (x_89 == 0) { -lean_object* x_93; uint8_t x_94; -lean_dec(x_90); -lean_dec(x_89); -lean_dec(x_1); -lean_ctor_set(x_83, 1, x_77); -x_93 = lean_st_ref_set(x_9, x_82, x_84); -lean_dec(x_9); -x_94 = !lean_is_exclusive(x_93); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_90 = lean_ctor_get(x_85, 0); +x_91 = lean_ctor_get(x_85, 1); +x_92 = lean_ctor_get(x_91, 2); +lean_inc(x_92); +x_93 = lean_unsigned_to_nat(0u); +x_94 = lean_nat_dec_lt(x_93, x_92); if (x_94 == 0) { -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_93, 0); -lean_dec(x_95); -x_96 = lean_box(x_79); -lean_ctor_set(x_93, 0, x_96); -return x_93; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -lean_dec(x_93); -x_98 = lean_box(x_79); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -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; uint8_t x_106; -x_100 = lean_unsigned_to_nat(1u); -x_101 = lean_nat_sub(x_90, x_100); -lean_dec(x_90); -x_102 = l_Lean_Elab_instInhabitedInfoTree; -x_103 = l_Lean_PersistentArray_get_x21___rarg(x_102, x_89, x_101); -lean_dec(x_101); -x_104 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_88, x_1, x_103); -lean_ctor_set(x_83, 1, x_77); -lean_ctor_set(x_83, 0, x_104); -x_105 = lean_st_ref_set(x_9, x_82, x_84); -lean_dec(x_9); -x_106 = !lean_is_exclusive(x_105); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_105, 0); -lean_dec(x_107); -x_108 = lean_box(x_79); -lean_ctor_set(x_105, 0, x_108); -return x_105; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_105, 1); -lean_inc(x_109); -lean_dec(x_105); -x_110 = lean_box(x_79); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -return x_111; -} -} -} -else -{ -uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_112 = lean_ctor_get_uint8(x_83, sizeof(void*)*2); -x_113 = lean_ctor_get(x_83, 0); -x_114 = lean_ctor_get(x_83, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_83); -x_115 = lean_ctor_get(x_114, 2); -lean_inc(x_115); -x_116 = lean_unsigned_to_nat(0u); -x_117 = lean_nat_dec_lt(x_116, x_115); -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; -lean_dec(x_115); -lean_dec(x_114); +lean_object* x_95; uint8_t x_96; +lean_dec(x_92); +lean_dec(x_91); lean_dec(x_1); -x_118 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_118, 0, x_113); -lean_ctor_set(x_118, 1, x_77); -lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_112); -lean_ctor_set(x_82, 6, x_118); -x_119 = lean_st_ref_set(x_9, x_82, x_84); +lean_ctor_set(x_85, 1, x_79); +x_95 = lean_st_ref_set(x_9, x_84, x_86); lean_dec(x_9); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_95, 0); +lean_dec(x_97); +x_98 = lean_box(x_81); +lean_ctor_set(x_95, 0, x_98); +return x_95; } -x_122 = lean_box(x_79); -if (lean_is_scalar(x_121)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +lean_dec(x_95); +x_100 = lean_box(x_81); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +return x_101; +} +} +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; uint8_t x_108; +x_102 = lean_unsigned_to_nat(1u); +x_103 = lean_nat_sub(x_92, x_102); +lean_dec(x_92); +x_104 = l_Lean_Elab_instInhabitedInfoTree; +x_105 = l_Lean_PersistentArray_get_x21___rarg(x_104, x_91, x_103); +lean_dec(x_103); +x_106 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_90, x_1, x_105); +lean_ctor_set(x_85, 1, x_79); +lean_ctor_set(x_85, 0, x_106); +x_107 = lean_st_ref_set(x_9, x_84, x_86); +lean_dec(x_9); +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(x_81); +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(x_81); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +} +else +{ +uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_114 = lean_ctor_get_uint8(x_85, sizeof(void*)*2); +x_115 = lean_ctor_get(x_85, 0); +x_116 = lean_ctor_get(x_85, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_85); +x_117 = lean_ctor_get(x_116, 2); +lean_inc(x_117); +x_118 = lean_unsigned_to_nat(0u); +x_119 = lean_nat_dec_lt(x_118, x_117); +if (x_119 == 0) +{ +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_dec(x_117); +lean_dec(x_116); +lean_dec(x_1); +x_120 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_120, 0, x_115); +lean_ctor_set(x_120, 1, x_79); +lean_ctor_set_uint8(x_120, sizeof(void*)*2, x_114); +lean_ctor_set(x_84, 6, x_120); +x_121 = lean_st_ref_set(x_9, x_84, x_86); +lean_dec(x_9); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); } -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_120); -return x_123; +x_124 = lean_box(x_81); +if (lean_is_scalar(x_123)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_123; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_122); +return x_125; } 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; -x_124 = lean_unsigned_to_nat(1u); -x_125 = lean_nat_sub(x_115, x_124); -lean_dec(x_115); -x_126 = l_Lean_Elab_instInhabitedInfoTree; -x_127 = l_Lean_PersistentArray_get_x21___rarg(x_126, x_114, x_125); -lean_dec(x_125); -x_128 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_113, x_1, x_127); -x_129 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_77); -lean_ctor_set_uint8(x_129, sizeof(void*)*2, x_112); -lean_ctor_set(x_82, 6, x_129); -x_130 = lean_st_ref_set(x_9, x_82, x_84); +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; +x_126 = lean_unsigned_to_nat(1u); +x_127 = lean_nat_sub(x_117, x_126); +lean_dec(x_117); +x_128 = l_Lean_Elab_instInhabitedInfoTree; +x_129 = l_Lean_PersistentArray_get_x21___rarg(x_128, x_116, x_127); +lean_dec(x_127); +x_130 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_115, x_1, x_129); +x_131 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_79); +lean_ctor_set_uint8(x_131, sizeof(void*)*2, x_114); +lean_ctor_set(x_84, 6, x_131); +x_132 = lean_st_ref_set(x_9, x_84, x_86); lean_dec(x_9); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = lean_box(x_79); -if (lean_is_scalar(x_132)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); x_134 = x_132; +} else { + lean_dec_ref(x_132); + x_134 = lean_box(0); } -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_131); -return x_134; +x_135 = lean_box(x_81); +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_135); +lean_ctor_set(x_136, 1, x_133); +return x_136; } } } else { -lean_object* x_135; 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; lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_135 = lean_ctor_get(x_82, 0); -x_136 = lean_ctor_get(x_82, 1); -x_137 = lean_ctor_get(x_82, 2); -x_138 = lean_ctor_get(x_82, 3); -x_139 = lean_ctor_get(x_82, 4); -x_140 = lean_ctor_get(x_82, 5); +lean_object* x_137; lean_object* x_138; lean_object* x_139; 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; uint8_t x_149; +x_137 = lean_ctor_get(x_84, 0); +x_138 = lean_ctor_get(x_84, 1); +x_139 = lean_ctor_get(x_84, 2); +x_140 = lean_ctor_get(x_84, 3); +x_141 = lean_ctor_get(x_84, 4); +x_142 = lean_ctor_get(x_84, 5); +lean_inc(x_142); +lean_inc(x_141); lean_inc(x_140); lean_inc(x_139); lean_inc(x_138); lean_inc(x_137); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_82); -x_141 = lean_ctor_get_uint8(x_83, sizeof(void*)*2); -x_142 = lean_ctor_get(x_83, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_83, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_144 = x_83; -} else { - lean_dec_ref(x_83); - x_144 = lean_box(0); -} -x_145 = lean_ctor_get(x_143, 2); +lean_dec(x_84); +x_143 = lean_ctor_get_uint8(x_85, sizeof(void*)*2); +x_144 = lean_ctor_get(x_85, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_85, 1); lean_inc(x_145); -x_146 = lean_unsigned_to_nat(0u); -x_147 = lean_nat_dec_lt(x_146, x_145); -if (x_147 == 0) +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_146 = x_85; +} else { + lean_dec_ref(x_85); + x_146 = lean_box(0); +} +x_147 = lean_ctor_get(x_145, 2); +lean_inc(x_147); +x_148 = lean_unsigned_to_nat(0u); +x_149 = lean_nat_dec_lt(x_148, x_147); +if (x_149 == 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; lean_object* x_154; +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_dec(x_147); lean_dec(x_145); -lean_dec(x_143); lean_dec(x_1); -if (lean_is_scalar(x_144)) { - x_148 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_146)) { + x_150 = lean_alloc_ctor(0, 2, 1); } else { - x_148 = x_144; + x_150 = x_146; } -lean_ctor_set(x_148, 0, x_142); -lean_ctor_set(x_148, 1, x_77); -lean_ctor_set_uint8(x_148, sizeof(void*)*2, x_141); -x_149 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_149, 0, x_135); -lean_ctor_set(x_149, 1, x_136); -lean_ctor_set(x_149, 2, x_137); -lean_ctor_set(x_149, 3, x_138); -lean_ctor_set(x_149, 4, x_139); -lean_ctor_set(x_149, 5, x_140); -lean_ctor_set(x_149, 6, x_148); -x_150 = lean_st_ref_set(x_9, x_149, x_84); +lean_ctor_set(x_150, 0, x_144); +lean_ctor_set(x_150, 1, x_79); +lean_ctor_set_uint8(x_150, sizeof(void*)*2, x_143); +x_151 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_151, 0, x_137); +lean_ctor_set(x_151, 1, x_138); +lean_ctor_set(x_151, 2, x_139); +lean_ctor_set(x_151, 3, x_140); +lean_ctor_set(x_151, 4, x_141); +lean_ctor_set(x_151, 5, x_142); +lean_ctor_set(x_151, 6, x_150); +x_152 = lean_st_ref_set(x_9, x_151, x_86); lean_dec(x_9); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; -} else { - lean_dec_ref(x_150); - x_152 = lean_box(0); -} -x_153 = lean_box(x_79); -if (lean_is_scalar(x_152)) { - x_154 = lean_alloc_ctor(0, 2, 0); -} else { +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); x_154 = x_152; +} else { + lean_dec_ref(x_152); + x_154 = lean_box(0); } -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_151); -return x_154; +x_155 = lean_box(x_81); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +return x_156; } 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; -x_155 = lean_unsigned_to_nat(1u); -x_156 = lean_nat_sub(x_145, x_155); -lean_dec(x_145); -x_157 = l_Lean_Elab_instInhabitedInfoTree; -x_158 = l_Lean_PersistentArray_get_x21___rarg(x_157, x_143, x_156); -lean_dec(x_156); -x_159 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_142, x_1, x_158); -if (lean_is_scalar(x_144)) { - x_160 = lean_alloc_ctor(0, 2, 1); +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; +x_157 = lean_unsigned_to_nat(1u); +x_158 = lean_nat_sub(x_147, x_157); +lean_dec(x_147); +x_159 = l_Lean_Elab_instInhabitedInfoTree; +x_160 = l_Lean_PersistentArray_get_x21___rarg(x_159, x_145, x_158); +lean_dec(x_158); +x_161 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_144, x_1, x_160); +if (lean_is_scalar(x_146)) { + x_162 = lean_alloc_ctor(0, 2, 1); } else { - x_160 = x_144; + x_162 = x_146; } -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_77); -lean_ctor_set_uint8(x_160, sizeof(void*)*2, x_141); -x_161 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_161, 0, x_135); -lean_ctor_set(x_161, 1, x_136); -lean_ctor_set(x_161, 2, x_137); -lean_ctor_set(x_161, 3, x_138); -lean_ctor_set(x_161, 4, x_139); -lean_ctor_set(x_161, 5, x_140); -lean_ctor_set(x_161, 6, x_160); -x_162 = lean_st_ref_set(x_9, x_161, x_84); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_79); +lean_ctor_set_uint8(x_162, sizeof(void*)*2, x_143); +x_163 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_163, 0, x_137); +lean_ctor_set(x_163, 1, x_138); +lean_ctor_set(x_163, 2, x_139); +lean_ctor_set(x_163, 3, x_140); +lean_ctor_set(x_163, 4, x_141); +lean_ctor_set(x_163, 5, x_142); +lean_ctor_set(x_163, 6, x_162); +x_164 = lean_st_ref_set(x_9, x_163, x_86); lean_dec(x_9); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_164 = x_162; -} else { - lean_dec_ref(x_162); - x_164 = lean_box(0); -} -x_165 = lean_box(x_79); -if (lean_is_scalar(x_164)) { - x_166 = lean_alloc_ctor(0, 2, 0); -} else { +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); x_166 = x_164; +} else { + lean_dec_ref(x_164); + x_166 = lean_box(0); } -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_163); -return x_166; +x_167 = lean_box(x_81); +if (lean_is_scalar(x_166)) { + x_168 = lean_alloc_ctor(0, 2, 0); +} else { + x_168 = x_166; +} +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_165); +return x_168; } } } -block_248: +block_250: { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; -x_170 = lean_st_ref_take(x_9, x_169); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_171, 6); -lean_inc(x_172); -x_173 = lean_ctor_get(x_170, 1); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_172 = lean_st_ref_take(x_9, x_171); +x_173 = lean_ctor_get(x_172, 0); lean_inc(x_173); -lean_dec(x_170); -x_174 = !lean_is_exclusive(x_171); -if (x_174 == 0) -{ -lean_object* x_175; uint8_t x_176; -x_175 = lean_ctor_get(x_171, 6); -lean_dec(x_175); -x_176 = !lean_is_exclusive(x_172); +x_174 = lean_ctor_get(x_173, 6); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 1); +lean_inc(x_175); +lean_dec(x_172); +x_176 = !lean_is_exclusive(x_173); if (x_176 == 0) { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_177 = lean_ctor_get(x_172, 0); -x_178 = lean_ctor_get(x_172, 1); -x_179 = lean_ctor_get(x_178, 2); -lean_inc(x_179); -x_180 = lean_unsigned_to_nat(0u); -x_181 = lean_nat_dec_lt(x_180, x_179); -if (x_181 == 0) +lean_object* x_177; uint8_t x_178; +x_177 = lean_ctor_get(x_173, 6); +lean_dec(x_177); +x_178 = !lean_is_exclusive(x_174); +if (x_178 == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_179); -lean_dec(x_178); -lean_dec(x_1); -lean_ctor_set(x_172, 1, x_77); -x_182 = lean_st_ref_set(x_9, x_171, x_173); -lean_dec(x_9); -x_183 = !lean_is_exclusive(x_182); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; +x_179 = lean_ctor_get(x_174, 0); +x_180 = lean_ctor_get(x_174, 1); +x_181 = lean_ctor_get(x_180, 2); +lean_inc(x_181); +x_182 = lean_unsigned_to_nat(0u); +x_183 = lean_nat_dec_lt(x_182, x_181); if (x_183 == 0) { -lean_object* x_184; -x_184 = lean_ctor_get(x_182, 0); -lean_dec(x_184); -lean_ctor_set_tag(x_182, 1); -lean_ctor_set(x_182, 0, x_168); -return x_182; -} -else -{ -lean_object* x_185; lean_object* x_186; -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_dec(x_182); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_168); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; -x_187 = lean_unsigned_to_nat(1u); -x_188 = lean_nat_sub(x_179, x_187); -lean_dec(x_179); -x_189 = l_Lean_Elab_instInhabitedInfoTree; -x_190 = l_Lean_PersistentArray_get_x21___rarg(x_189, x_178, x_188); -lean_dec(x_188); -x_191 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_177, x_1, x_190); -lean_ctor_set(x_172, 1, x_77); -lean_ctor_set(x_172, 0, x_191); -x_192 = lean_st_ref_set(x_9, x_171, x_173); -lean_dec(x_9); -x_193 = !lean_is_exclusive(x_192); -if (x_193 == 0) -{ -lean_object* x_194; -x_194 = lean_ctor_get(x_192, 0); -lean_dec(x_194); -lean_ctor_set_tag(x_192, 1); -lean_ctor_set(x_192, 0, x_168); -return x_192; -} -else -{ -lean_object* x_195; lean_object* x_196; -x_195 = lean_ctor_get(x_192, 1); -lean_inc(x_195); -lean_dec(x_192); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_168); -lean_ctor_set(x_196, 1, x_195); -return x_196; -} -} -} -else -{ -uint8_t x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_197 = lean_ctor_get_uint8(x_172, sizeof(void*)*2); -x_198 = lean_ctor_get(x_172, 0); -x_199 = lean_ctor_get(x_172, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_172); -x_200 = lean_ctor_get(x_199, 2); -lean_inc(x_200); -x_201 = lean_unsigned_to_nat(0u); -x_202 = lean_nat_dec_lt(x_201, x_200); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_200); -lean_dec(x_199); +lean_object* x_184; uint8_t x_185; +lean_dec(x_181); +lean_dec(x_180); lean_dec(x_1); -x_203 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_203, 0, x_198); -lean_ctor_set(x_203, 1, x_77); -lean_ctor_set_uint8(x_203, sizeof(void*)*2, x_197); -lean_ctor_set(x_171, 6, x_203); -x_204 = lean_st_ref_set(x_9, x_171, x_173); +lean_ctor_set(x_174, 1, x_79); +x_184 = lean_st_ref_set(x_9, x_173, x_175); lean_dec(x_9); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - lean_ctor_release(x_204, 1); - x_206 = x_204; -} else { - lean_dec_ref(x_204); - x_206 = lean_box(0); -} -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); -} else { - x_207 = x_206; - lean_ctor_set_tag(x_207, 1); -} -lean_ctor_set(x_207, 0, x_168); -lean_ctor_set(x_207, 1, x_205); -return x_207; +x_185 = !lean_is_exclusive(x_184); +if (x_185 == 0) +{ +lean_object* x_186; +x_186 = lean_ctor_get(x_184, 0); +lean_dec(x_186); +lean_ctor_set_tag(x_184, 1); +lean_ctor_set(x_184, 0, x_170); +return x_184; } 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; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_208 = lean_unsigned_to_nat(1u); -x_209 = lean_nat_sub(x_200, x_208); -lean_dec(x_200); -x_210 = l_Lean_Elab_instInhabitedInfoTree; -x_211 = l_Lean_PersistentArray_get_x21___rarg(x_210, x_199, x_209); -lean_dec(x_209); -x_212 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_198, x_1, x_211); -x_213 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_77); -lean_ctor_set_uint8(x_213, sizeof(void*)*2, x_197); -lean_ctor_set(x_171, 6, x_213); -x_214 = lean_st_ref_set(x_9, x_171, x_173); +lean_object* x_187; lean_object* x_188; +x_187 = lean_ctor_get(x_184, 1); +lean_inc(x_187); +lean_dec(x_184); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_170); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +} +else +{ +lean_object* x_189; 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_189 = lean_unsigned_to_nat(1u); +x_190 = lean_nat_sub(x_181, x_189); +lean_dec(x_181); +x_191 = l_Lean_Elab_instInhabitedInfoTree; +x_192 = l_Lean_PersistentArray_get_x21___rarg(x_191, x_180, x_190); +lean_dec(x_190); +x_193 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_179, x_1, x_192); +lean_ctor_set(x_174, 1, x_79); +lean_ctor_set(x_174, 0, x_193); +x_194 = lean_st_ref_set(x_9, x_173, x_175); lean_dec(x_9); -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - x_216 = x_214; -} else { - lean_dec_ref(x_214); - x_216 = lean_box(0); +x_195 = !lean_is_exclusive(x_194); +if (x_195 == 0) +{ +lean_object* x_196; +x_196 = lean_ctor_get(x_194, 0); +lean_dec(x_196); +lean_ctor_set_tag(x_194, 1); +lean_ctor_set(x_194, 0, x_170); +return x_194; } -if (lean_is_scalar(x_216)) { - x_217 = lean_alloc_ctor(1, 2, 0); -} else { - x_217 = x_216; - lean_ctor_set_tag(x_217, 1); -} -lean_ctor_set(x_217, 0, x_168); -lean_ctor_set(x_217, 1, x_215); -return x_217; +else +{ +lean_object* x_197; lean_object* x_198; +x_197 = lean_ctor_get(x_194, 1); +lean_inc(x_197); +lean_dec(x_194); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_170); +lean_ctor_set(x_198, 1, x_197); +return x_198; } } } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t 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; -x_218 = lean_ctor_get(x_171, 0); -x_219 = lean_ctor_get(x_171, 1); -x_220 = lean_ctor_get(x_171, 2); -x_221 = lean_ctor_get(x_171, 3); -x_222 = lean_ctor_get(x_171, 4); -x_223 = lean_ctor_get(x_171, 5); +uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_199 = lean_ctor_get_uint8(x_174, sizeof(void*)*2); +x_200 = lean_ctor_get(x_174, 0); +x_201 = lean_ctor_get(x_174, 1); +lean_inc(x_201); +lean_inc(x_200); +lean_dec(x_174); +x_202 = lean_ctor_get(x_201, 2); +lean_inc(x_202); +x_203 = lean_unsigned_to_nat(0u); +x_204 = lean_nat_dec_lt(x_203, x_202); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_202); +lean_dec(x_201); +lean_dec(x_1); +x_205 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_205, 0, x_200); +lean_ctor_set(x_205, 1, x_79); +lean_ctor_set_uint8(x_205, sizeof(void*)*2, x_199); +lean_ctor_set(x_173, 6, x_205); +x_206 = lean_st_ref_set(x_9, x_173, x_175); +lean_dec(x_9); +x_207 = lean_ctor_get(x_206, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_208 = x_206; +} else { + lean_dec_ref(x_206); + 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_tag(x_209, 1); +} +lean_ctor_set(x_209, 0, x_170); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +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_object* x_219; +x_210 = lean_unsigned_to_nat(1u); +x_211 = lean_nat_sub(x_202, x_210); +lean_dec(x_202); +x_212 = l_Lean_Elab_instInhabitedInfoTree; +x_213 = l_Lean_PersistentArray_get_x21___rarg(x_212, x_201, x_211); +lean_dec(x_211); +x_214 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_200, x_1, x_213); +x_215 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_79); +lean_ctor_set_uint8(x_215, sizeof(void*)*2, x_199); +lean_ctor_set(x_173, 6, x_215); +x_216 = lean_st_ref_set(x_9, x_173, x_175); +lean_dec(x_9); +x_217 = lean_ctor_get(x_216, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_218 = x_216; +} else { + lean_dec_ref(x_216); + x_218 = lean_box(0); +} +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(1, 2, 0); +} else { + x_219 = x_218; + lean_ctor_set_tag(x_219, 1); +} +lean_ctor_set(x_219, 0, x_170); +lean_ctor_set(x_219, 1, x_217); +return x_219; +} +} +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t 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; +x_220 = lean_ctor_get(x_173, 0); +x_221 = lean_ctor_get(x_173, 1); +x_222 = lean_ctor_get(x_173, 2); +x_223 = lean_ctor_get(x_173, 3); +x_224 = lean_ctor_get(x_173, 4); +x_225 = lean_ctor_get(x_173, 5); +lean_inc(x_225); +lean_inc(x_224); lean_inc(x_223); lean_inc(x_222); lean_inc(x_221); lean_inc(x_220); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_171); -x_224 = lean_ctor_get_uint8(x_172, sizeof(void*)*2); -x_225 = lean_ctor_get(x_172, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_172, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_227 = x_172; -} else { - lean_dec_ref(x_172); - x_227 = lean_box(0); -} -x_228 = lean_ctor_get(x_226, 2); +lean_dec(x_173); +x_226 = lean_ctor_get_uint8(x_174, sizeof(void*)*2); +x_227 = lean_ctor_get(x_174, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_174, 1); lean_inc(x_228); -x_229 = lean_unsigned_to_nat(0u); -x_230 = lean_nat_dec_lt(x_229, x_228); -if (x_230 == 0) +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_229 = x_174; +} else { + lean_dec_ref(x_174); + x_229 = lean_box(0); +} +x_230 = lean_ctor_get(x_228, 2); +lean_inc(x_230); +x_231 = lean_unsigned_to_nat(0u); +x_232 = lean_nat_dec_lt(x_231, x_230); +if (x_232 == 0) { -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_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_230); lean_dec(x_228); -lean_dec(x_226); lean_dec(x_1); -if (lean_is_scalar(x_227)) { - x_231 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_229)) { + x_233 = lean_alloc_ctor(0, 2, 1); } else { - x_231 = x_227; + x_233 = x_229; } -lean_ctor_set(x_231, 0, x_225); -lean_ctor_set(x_231, 1, x_77); -lean_ctor_set_uint8(x_231, sizeof(void*)*2, x_224); -x_232 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_232, 0, x_218); -lean_ctor_set(x_232, 1, x_219); -lean_ctor_set(x_232, 2, x_220); -lean_ctor_set(x_232, 3, x_221); -lean_ctor_set(x_232, 4, x_222); -lean_ctor_set(x_232, 5, x_223); -lean_ctor_set(x_232, 6, x_231); -x_233 = lean_st_ref_set(x_9, x_232, x_173); +lean_ctor_set(x_233, 0, x_227); +lean_ctor_set(x_233, 1, x_79); +lean_ctor_set_uint8(x_233, sizeof(void*)*2, x_226); +x_234 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_234, 0, x_220); +lean_ctor_set(x_234, 1, x_221); +lean_ctor_set(x_234, 2, x_222); +lean_ctor_set(x_234, 3, x_223); +lean_ctor_set(x_234, 4, x_224); +lean_ctor_set(x_234, 5, x_225); +lean_ctor_set(x_234, 6, x_233); +x_235 = lean_st_ref_set(x_9, x_234, x_175); lean_dec(x_9); -x_234 = lean_ctor_get(x_233, 1); -lean_inc(x_234); -if (lean_is_exclusive(x_233)) { - lean_ctor_release(x_233, 0); - lean_ctor_release(x_233, 1); - x_235 = x_233; +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_235)) { + lean_ctor_release(x_235, 0); + lean_ctor_release(x_235, 1); + x_237 = x_235; } else { - lean_dec_ref(x_233); - x_235 = lean_box(0); + lean_dec_ref(x_235); + x_237 = lean_box(0); } -if (lean_is_scalar(x_235)) { - x_236 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); } else { - x_236 = x_235; - lean_ctor_set_tag(x_236, 1); + x_238 = x_237; + lean_ctor_set_tag(x_238, 1); } -lean_ctor_set(x_236, 0, x_168); -lean_ctor_set(x_236, 1, x_234); -return x_236; +lean_ctor_set(x_238, 0, x_170); +lean_ctor_set(x_238, 1, x_236); +return x_238; } 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; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_237 = lean_unsigned_to_nat(1u); -x_238 = lean_nat_sub(x_228, x_237); -lean_dec(x_228); -x_239 = l_Lean_Elab_instInhabitedInfoTree; -x_240 = l_Lean_PersistentArray_get_x21___rarg(x_239, x_226, x_238); -lean_dec(x_238); -x_241 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_225, x_1, x_240); -if (lean_is_scalar(x_227)) { - x_242 = lean_alloc_ctor(0, 2, 1); +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; lean_object* x_249; +x_239 = lean_unsigned_to_nat(1u); +x_240 = lean_nat_sub(x_230, x_239); +lean_dec(x_230); +x_241 = l_Lean_Elab_instInhabitedInfoTree; +x_242 = l_Lean_PersistentArray_get_x21___rarg(x_241, x_228, x_240); +lean_dec(x_240); +x_243 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_227, x_1, x_242); +if (lean_is_scalar(x_229)) { + x_244 = lean_alloc_ctor(0, 2, 1); } else { - x_242 = x_227; + x_244 = x_229; } -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_77); -lean_ctor_set_uint8(x_242, sizeof(void*)*2, x_224); -x_243 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_243, 0, x_218); -lean_ctor_set(x_243, 1, x_219); -lean_ctor_set(x_243, 2, x_220); -lean_ctor_set(x_243, 3, x_221); -lean_ctor_set(x_243, 4, x_222); -lean_ctor_set(x_243, 5, x_223); -lean_ctor_set(x_243, 6, x_242); -x_244 = lean_st_ref_set(x_9, x_243, x_173); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_79); +lean_ctor_set_uint8(x_244, sizeof(void*)*2, x_226); +x_245 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_245, 0, x_220); +lean_ctor_set(x_245, 1, x_221); +lean_ctor_set(x_245, 2, x_222); +lean_ctor_set(x_245, 3, x_223); +lean_ctor_set(x_245, 4, x_224); +lean_ctor_set(x_245, 5, x_225); +lean_ctor_set(x_245, 6, x_244); +x_246 = lean_st_ref_set(x_9, x_245, x_175); lean_dec(x_9); -x_245 = lean_ctor_get(x_244, 1); -lean_inc(x_245); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_246 = x_244; +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_248 = x_246; } else { - lean_dec_ref(x_244); - x_246 = lean_box(0); + lean_dec_ref(x_246); + x_248 = lean_box(0); } -if (lean_is_scalar(x_246)) { - x_247 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); } else { - x_247 = x_246; - lean_ctor_set_tag(x_247, 1); + x_249 = x_248; + lean_ctor_set_tag(x_249, 1); } -lean_ctor_set(x_247, 0, x_168); -lean_ctor_set(x_247, 1, x_245); -return x_247; +lean_ctor_set(x_249, 0, x_170); +lean_ctor_set(x_249, 1, x_247); +return x_249; } } } @@ -2887,75 +2915,79 @@ if (x_33 == 0) lean_object* x_34; lean_object* x_35; uint8_t x_36; x_34 = lean_ctor_get(x_29, 0); x_35 = lean_ctor_get(x_29, 1); -x_36 = l_Lean_Exception_isRuntime(x_34); +x_36 = l_Lean_Exception_isInterrupt(x_34); if (x_36 == 0) { +uint8_t x_37; +x_37 = l_Lean_Exception_isRuntime(x_34); +if (x_37 == 0) +{ if (lean_obj_tag(x_34) == 0) { lean_free_object(x_29); if (x_3 == 0) { -lean_object* x_37; +lean_object* x_38; lean_dec(x_25); -x_37 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -if (lean_obj_tag(x_37) == 0) +x_38 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; -x_12 = x_39; -x_13 = x_38; +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; +x_12 = x_40; +x_13 = x_39; goto block_22; } else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_37); -if (x_40 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) { -return x_37; +return x_38; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 0); -x_42 = lean_ctor_get(x_37, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_37); -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; +lean_dec(x_38); +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 { -uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_34); -x_44 = 1; -x_45 = l_Lean_Elab_Term_SavedState_restore(x_25, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_47; -x_13 = x_46; +x_45 = 1; +x_46 = l_Lean_Elab_Term_SavedState_restore(x_25, x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_48; +x_13 = x_47; goto block_22; } } else { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_34, 0); -lean_inc(x_48); -x_49 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; -x_50 = lean_nat_dec_eq(x_48, x_49); -lean_dec(x_48); -if (x_50 == 0) +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_34, 0); +lean_inc(x_49); +x_50 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; +x_51 = lean_nat_dec_eq(x_49, x_50); +lean_dec(x_49); +if (x_51 == 0) { lean_dec(x_25); lean_dec(x_10); @@ -2968,17 +3000,17 @@ return x_29; } else { -uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_free_object(x_29); lean_dec(x_34); -x_51 = 1; -x_52 = l_Lean_Elab_Term_SavedState_restore(x_25, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_54; -x_13 = x_53; +x_52 = 1; +x_53 = l_Lean_Elab_Term_SavedState_restore(x_25, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_35); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_55; +x_13 = x_54; goto block_22; } } @@ -2997,84 +3029,100 @@ return x_29; } else { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_29, 0); -x_56 = lean_ctor_get(x_29, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_29); -x_57 = l_Lean_Exception_isRuntime(x_55); -if (x_57 == 0) +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_5); +return x_29; +} +} +else { -if (lean_obj_tag(x_55) == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_29, 0); +x_57 = lean_ctor_get(x_29, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_29); +x_58 = l_Lean_Exception_isInterrupt(x_56); +if (x_58 == 0) +{ +uint8_t x_59; +x_59 = l_Lean_Exception_isRuntime(x_56); +if (x_59 == 0) +{ +if (lean_obj_tag(x_56) == 0) { if (x_3 == 0) { -lean_object* x_58; +lean_object* x_60; lean_dec(x_25); -x_58 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_55, x_5, x_6, x_7, x_8, x_9, x_10, x_56); -if (lean_obj_tag(x_58) == 0) +x_60 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_57); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; -x_12 = x_60; -x_13 = x_59; -goto block_22; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_58, 0); +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_58, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_63 = x_58; -} else { - lean_dec_ref(x_58); - x_63 = lean_box(0); -} -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_63; -} -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; -} -} -else -{ -uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_55); -x_65 = 1; -x_66 = l_Lean_Elab_Term_SavedState_restore(x_25, x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_56); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_68; -x_13 = x_67; +lean_dec(x_60); +x_62 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; +x_12 = x_62; +x_13 = x_61; goto block_22; } +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_60, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_65 = x_60; +} else { + lean_dec_ref(x_60); + 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_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_55, 0); +uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_56); +x_67 = 1; +x_68 = l_Lean_Elab_Term_SavedState_restore(x_25, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_57); +x_69 = lean_ctor_get(x_68, 1); lean_inc(x_69); -x_70 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; -x_71 = lean_nat_dec_eq(x_69, x_70); -lean_dec(x_69); -if (x_71 == 0) +lean_dec(x_68); +x_70 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_70; +x_13 = x_69; +goto block_22; +} +} +else { -lean_object* x_72; +lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_71 = lean_ctor_get(x_56, 0); +lean_inc(x_71); +x_72 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; +x_73 = lean_nat_dec_eq(x_71, x_72); +lean_dec(x_71); +if (x_73 == 0) +{ +lean_object* x_74; lean_dec(x_25); lean_dec(x_10); lean_dec(x_9); @@ -3082,30 +3130,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_55); -lean_ctor_set(x_72, 1, x_56); -return x_72; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_56); +lean_ctor_set(x_74, 1, x_57); +return x_74; } else { -uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_55); -x_73 = 1; -x_74 = l_Lean_Elab_Term_SavedState_restore(x_25, x_73, x_5, x_6, x_7, x_8, x_9, x_10, x_56); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -lean_dec(x_74); -x_76 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_76; -x_13 = x_75; +uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_56); +x_75 = 1; +x_76 = l_Lean_Elab_Term_SavedState_restore(x_25, x_75, x_5, x_6, x_7, x_8, x_9, x_10, x_57); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_78; +x_13 = x_77; goto block_22; } } } else { -lean_object* x_77; +lean_object* x_79; lean_dec(x_25); lean_dec(x_10); lean_dec(x_9); @@ -3113,196 +3161,236 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_55); -lean_ctor_set(x_77, 1, x_56); -return x_77; +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_56); +lean_ctor_set(x_79, 1, x_57); +return x_79; +} +} +else +{ +lean_object* x_80; +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_5); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_56); +lean_ctor_set(x_80, 1, x_57); +return x_80; } } } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_78 = lean_ctor_get(x_23, 0); -x_79 = lean_ctor_get(x_23, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_23, 0); +x_82 = lean_ctor_get(x_23, 1); +lean_inc(x_82); +lean_inc(x_81); lean_dec(x_23); -x_80 = lean_box(x_3); -x_81 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1___boxed), 10, 3); -lean_closure_set(x_81, 0, x_1); -lean_closure_set(x_81, 1, x_2); -lean_closure_set(x_81, 2, x_80); +x_83 = lean_box(x_3); +x_84 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1___boxed), 10, 3); +lean_closure_set(x_84, 0, x_1); +lean_closure_set(x_84, 1, x_2); +lean_closure_set(x_84, 2, x_83); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_82 = l_Lean_Elab_Term_withSavedContext___rarg(x_4, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_79); -if (lean_obj_tag(x_82) == 0) +x_85 = l_Lean_Elab_Term_withSavedContext___rarg(x_4, x_84, x_5, x_6, x_7, x_8, x_9, x_10, x_82); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_78); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_81); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -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_box(0); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_83); -lean_ctor_set(x_86, 1, x_85); -x_12 = x_86; -x_13 = x_84; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_box(0); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +x_12 = x_89; +x_13 = x_87; goto block_22; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_87 = lean_ctor_get(x_82, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_82, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_89 = x_82; +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = lean_ctor_get(x_85, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_85, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_92 = x_85; } else { - lean_dec_ref(x_82); - x_89 = lean_box(0); + lean_dec_ref(x_85); + x_92 = lean_box(0); } -x_90 = l_Lean_Exception_isRuntime(x_87); -if (x_90 == 0) +x_93 = l_Lean_Exception_isInterrupt(x_90); +if (x_93 == 0) { -if (lean_obj_tag(x_87) == 0) +uint8_t x_94; +x_94 = l_Lean_Exception_isRuntime(x_90); +if (x_94 == 0) { -lean_dec(x_89); +if (lean_obj_tag(x_90) == 0) +{ +lean_dec(x_92); if (x_3 == 0) { -lean_object* x_91; -lean_dec(x_78); -x_91 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_88); -if (lean_obj_tag(x_91) == 0) +lean_object* x_95; +lean_dec(x_81); +x_95 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_91); +if (lean_obj_tag(x_95) == 0) { -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -lean_dec(x_91); -x_93 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; -x_12 = x_93; -x_13 = x_92; +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; +x_12 = x_97; +x_13 = x_96; goto block_22; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_91, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_96 = x_91; +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_95, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_100 = x_95; } else { - lean_dec_ref(x_91); - x_96 = lean_box(0); + lean_dec_ref(x_95); + x_100 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_101 = x_100; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } } else { -uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_87); -x_98 = 1; -x_99 = l_Lean_Elab_Term_SavedState_restore(x_78, x_98, x_5, x_6, x_7, x_8, x_9, x_10, x_88); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_101; -x_13 = x_100; +uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_90); +x_102 = 1; +x_103 = l_Lean_Elab_Term_SavedState_restore(x_81, x_102, x_5, x_6, x_7, x_8, x_9, x_10, x_91); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_105; +x_13 = x_104; goto block_22; } } else { -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_ctor_get(x_87, 0); -lean_inc(x_102); -x_103 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; -x_104 = lean_nat_dec_eq(x_102, x_103); -lean_dec(x_102); -if (x_104 == 0) +lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_106 = lean_ctor_get(x_90, 0); +lean_inc(x_106); +x_107 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__3; +x_108 = lean_nat_dec_eq(x_106, x_107); +lean_dec(x_106); +if (x_108 == 0) { -lean_object* x_105; -lean_dec(x_78); +lean_object* x_109; +lean_dec(x_81); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_89)) { - x_105 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_109 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_89; + x_109 = x_92; } -lean_ctor_set(x_105, 0, x_87); -lean_ctor_set(x_105, 1, x_88); -return x_105; +lean_ctor_set(x_109, 0, x_90); +lean_ctor_set(x_109, 1, x_91); +return x_109; } else { -uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_89); -lean_dec(x_87); -x_106 = 1; -x_107 = l_Lean_Elab_Term_SavedState_restore(x_78, x_106, x_5, x_6, x_7, x_8, x_9, x_10, x_88); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; -x_12 = x_109; -x_13 = x_108; +uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_92); +lean_dec(x_90); +x_110 = 1; +x_111 = l_Lean_Elab_Term_SavedState_restore(x_81, x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_91); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__2; +x_12 = x_113; +x_13 = x_112; goto block_22; } } } else { -lean_object* x_110; -lean_dec(x_78); +lean_object* x_114; +lean_dec(x_81); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_89)) { - x_110 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_114 = lean_alloc_ctor(1, 2, 0); } else { - x_110 = x_89; + x_114 = x_92; } -lean_ctor_set(x_110, 0, x_87); -lean_ctor_set(x_110, 1, x_88); -return x_110; +lean_ctor_set(x_114, 0, x_90); +lean_ctor_set(x_114, 1, x_91); +return x_114; +} +} +else +{ +lean_object* x_115; +lean_dec(x_81); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_92)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_92; +} +lean_ctor_set(x_115, 0, x_90); +lean_ctor_set(x_115, 1, x_91); +return x_115; } } } @@ -3386,7 +3474,7 @@ 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; 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_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; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_18 = lean_ctor_get(x_9, 0); x_19 = lean_ctor_get(x_9, 1); x_20 = lean_ctor_get(x_9, 2); @@ -3398,7 +3486,10 @@ x_25 = lean_ctor_get(x_9, 7); x_26 = lean_ctor_get(x_9, 8); x_27 = lean_ctor_get(x_9, 9); x_28 = lean_ctor_get(x_9, 10); -x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_30 = lean_ctor_get(x_9, 11); +x_31 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_30); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); @@ -3411,24 +3502,26 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_9); -x_30 = l_Lean_replaceRef(x_2, x_23); +x_32 = l_Lean_replaceRef(x_2, x_23); lean_dec(x_23); lean_dec(x_2); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_21); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_30); -lean_ctor_set(x_31, 6, x_24); -lean_ctor_set(x_31, 7, x_25); -lean_ctor_set(x_31, 8, x_26); -lean_ctor_set(x_31, 9, x_27); -lean_ctor_set(x_31, 10, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_29); -x_32 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_3, x_13, x_5, x_6, x_7, x_8, x_31, x_10, x_11); -return x_32; +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_18); +lean_ctor_set(x_33, 1, x_19); +lean_ctor_set(x_33, 2, x_20); +lean_ctor_set(x_33, 3, x_21); +lean_ctor_set(x_33, 4, x_22); +lean_ctor_set(x_33, 5, x_32); +lean_ctor_set(x_33, 6, x_24); +lean_ctor_set(x_33, 7, x_25); +lean_ctor_set(x_33, 8, x_26); +lean_ctor_set(x_33, 9, x_27); +lean_ctor_set(x_33, 10, x_28); +lean_ctor_set(x_33, 11, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_31); +x_34 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_3, x_13, x_5, x_6, x_7, x_8, x_33, x_10, x_11); +return x_34; } } } @@ -3638,113 +3731,117 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; uint8_t x_18; x_16 = lean_ctor_get(x_10, 0); x_17 = lean_ctor_get(x_10, 1); -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ lean_free_object(x_10); if (lean_obj_tag(x_16) == 0) { -lean_object* x_19; -x_19 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_19) == 0) +lean_object* x_20; +x_20 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_20) == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -lean_dec(x_21); -x_22 = 1; -x_23 = lean_box(x_22); -lean_ctor_set(x_19, 0, x_23); -return x_19; +lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_20, 0, x_24); +return x_20; } else { -lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); -lean_dec(x_19); -x_25 = 1; -x_26 = lean_box(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = 1; +x_27 = lean_box(x_26); +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 { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_19); -if (x_28 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_20); +if (x_29 == 0) { -return x_19; +return x_20; } 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_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); 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); -return x_31; +lean_dec(x_20); +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_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; lean_dec(x_16); -x_32 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__4; -x_33 = l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1(x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_33) == 0) +x_33 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__4; +x_34 = l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_34) == 0) { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -return x_33; +return x_34; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_33, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_33); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) { -return x_33; +return x_34; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -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; +lean_dec(x_34); +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; } } } @@ -3762,137 +3859,167 @@ return x_10; } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_10); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) -{ -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_45; -x_45 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); -} -x_48 = 1; -x_49 = lean_box(x_48); -if (lean_is_scalar(x_47)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_47; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_46); -return x_50; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -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_53 = x_45; -} else { - lean_dec_ref(x_45); - x_53 = lean_box(0); -} -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; -lean_dec(x_42); -x_55 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__4; -x_56 = l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1(x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; -} else { - lean_dec_ref(x_56); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_56, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_63 = x_56; -} else { - lean_dec_ref(x_56); - x_63 = lean_box(0); -} -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_63; -} -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; -} -} -} -else -{ -lean_object* x_65; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_42); -lean_ctor_set(x_65, 1, x_43); -return x_65; +return x_10; +} +} +else +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_10, 0); +x_44 = lean_ctor_get(x_10, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_10); +x_45 = l_Lean_Exception_isInterrupt(x_43); +if (x_45 == 0) +{ +uint8_t x_46; +x_46 = l_Lean_Exception_isRuntime(x_43); +if (x_46 == 0) +{ +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_47; +x_47 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = 1; +x_51 = lean_box(x_50); +if (lean_is_scalar(x_49)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_49; +} +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_48); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_47, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_47, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_55 = x_47; +} else { + lean_dec_ref(x_47); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_43); +x_57 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__4; +x_58 = l_panic___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___spec__1(x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +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, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_43); +lean_ctor_set(x_67, 1, x_44); +return x_67; +} +} +else +{ +lean_object* x_68; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_43); +lean_ctor_set(x_68, 1, x_44); +return x_68; } } } @@ -3914,7 +4041,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___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) { _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; lean_object* x_24; +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_26; x_9 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -3934,49 +4061,49 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_24 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_24) == 0) +x_26 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_25; uint8_t x_26; +lean_object* x_27; uint8_t x_28; lean_dec(x_12); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_unbox(x_25); -lean_dec(x_25); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_24, 1); +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_24); -x_28 = 0; -x_29 = l_Lean_Elab_Term_SavedState_restore(x_10, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_27); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +x_28 = lean_unbox(x_27); +lean_dec(x_27); +if (x_28 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_29, 0); +lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = 0; +x_31 = l_Lean_Elab_Term_SavedState_restore(x_10, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +x_34 = lean_box(x_30); +lean_ctor_set(x_31, 0, x_34); +return x_31; +} +else +{ +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_32 = lean_box(x_28); -lean_ctor_set(x_29, 0, x_32); -return x_29; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -lean_dec(x_29); -x_34 = lean_box(x_28); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +x_36 = lean_box(x_30); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } else { -uint8_t x_36; +uint8_t x_38; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -3984,79 +4111,83 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_36 = !lean_is_exclusive(x_24); -if (x_36 == 0) +x_38 = !lean_is_exclusive(x_26); +if (x_38 == 0) { -lean_object* x_37; uint8_t x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_24, 0); -lean_dec(x_37); -x_38 = 1; -x_39 = lean_box(x_38); -lean_ctor_set(x_24, 0, x_39); -return x_24; +lean_object* x_39; uint8_t x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_26, 0); +lean_dec(x_39); +x_40 = 1; +x_41 = lean_box(x_40); +lean_ctor_set(x_26, 0, x_41); +return x_26; } else { -lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_24, 1); -lean_inc(x_40); -lean_dec(x_24); -x_41 = 1; -x_42 = lean_box(x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; +lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_26, 1); +lean_inc(x_42); +lean_dec(x_26); +x_43 = 1; +x_44 = lean_box(x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; } } } else { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_24, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_24, 1); -lean_inc(x_45); -lean_dec(x_24); -x_13 = x_44; -x_14 = x_45; -goto block_23; +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_26, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_26, 1); +lean_inc(x_47); +lean_dec(x_26); +x_13 = x_46; +x_14 = x_47; +goto block_25; } -block_23: +block_25: { uint8_t x_15; -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { -uint8_t x_16; lean_object* x_17; uint8_t x_18; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_12); -x_16 = 0; -x_17 = l_Lean_Elab_Term_SavedState_restore(x_10, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +x_17 = 0; +x_18 = l_Lean_Elab_Term_SavedState_restore(x_10, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -lean_ctor_set_tag(x_17, 1); -lean_ctor_set(x_17, 0, x_13); -return x_17; +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set_tag(x_18, 1); +lean_ctor_set(x_18, 0, x_13); +return x_18; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_13); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } else { -lean_object* x_22; +lean_object* x_23; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -4065,14 +4196,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_12)) { - x_22 = lean_alloc_ctor(1, 2, 0); + x_23 = lean_alloc_ctor(1, 2, 0); } else { - x_22 = x_12; - lean_ctor_set_tag(x_22, 1); + x_23 = x_12; + lean_ctor_set_tag(x_23, 1); } -lean_ctor_set(x_22, 0, x_13); -lean_ctor_set(x_22, 1, x_14); -return x_22; +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +return x_23; +} +} +else +{ +lean_object* x_24; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_12)) { + x_24 = lean_alloc_ctor(1, 2, 0); +} else { + x_24 = x_12; + lean_ctor_set_tag(x_24, 1); +} +lean_ctor_set(x_24, 0, x_13); +lean_ctor_set(x_24, 1, x_14); +return x_24; } } } @@ -4112,15 +4264,19 @@ if (x_15 == 0) { lean_object* x_16; uint8_t x_17; x_16 = lean_ctor_get(x_10, 0); -x_17 = l_Lean_Exception_isRuntime(x_16); +x_17 = l_Lean_Exception_isInterrupt(x_16); if (x_17 == 0) { -uint8_t x_18; lean_object* x_19; +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_16); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; lean_dec(x_16); -x_18 = 0; -x_19 = lean_box(x_18); +x_19 = 0; +x_20 = lean_box(x_19); lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_19); +lean_ctor_set(x_10, 0, x_20); return x_10; } else @@ -4130,31 +4286,49 @@ return x_10; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); +return x_10; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_10); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -uint8_t x_23; lean_object* x_24; lean_object* x_25; -lean_dec(x_20); -x_23 = 0; -x_24 = lean_box(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_21); -return x_25; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_21); +x_25 = 0; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_22); +return x_27; } else { -lean_object* x_26; -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_21); -return x_26; +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +return x_28; +} +} +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_22); +return x_29; } } } @@ -8285,7 +8459,7 @@ x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); if (lean_obj_tag(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; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_23 = lean_ctor_get(x_17, 1); lean_inc(x_23); lean_dec(x_17); @@ -8303,9 +8477,12 @@ x_32 = lean_ctor_get(x_8, 7); x_33 = lean_ctor_get(x_8, 8); x_34 = lean_ctor_get(x_8, 9); x_35 = lean_ctor_get(x_8, 10); -x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_37 = l_Lean_replaceRef(x_24, x_30); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_37 = lean_ctor_get(x_8, 11); +x_38 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_39 = l_Lean_replaceRef(x_24, x_30); lean_dec(x_24); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -8316,19 +8493,21 @@ lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); @@ -8336,25 +8515,25 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); lean_inc(x_15); -x_39 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio(x_15, x_1, x_4, x_5, x_6, x_7, x_38, x_9, x_23); -if (lean_obj_tag(x_39) == 0) +x_41 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio(x_15, x_1, x_4, x_5, x_6, x_7, x_40, x_9, x_23); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; uint8_t x_41; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_unbox(x_40); -lean_dec(x_40); -if (x_41 == 0) -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_39, 1); +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_39); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +lean_object* x_44; +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); lean_ctor_set(x_2, 1, x_3); { lean_object* _tmp_1 = x_16; lean_object* _tmp_2 = x_2; -lean_object* _tmp_9 = x_42; +lean_object* _tmp_9 = x_44; x_2 = _tmp_1; x_3 = _tmp_2; x_10 = _tmp_9; @@ -8363,7 +8542,7 @@ goto _start; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_free_object(x_2); lean_dec(x_15); lean_dec(x_9); @@ -8371,99 +8550,99 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_dec(x_39); -x_45 = lean_st_ref_take(x_5, x_44); -x_46 = lean_ctor_get(x_45, 0); +x_46 = lean_ctor_get(x_41, 1); lean_inc(x_46); -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_dec(x_41); +x_47 = lean_st_ref_take(x_5, x_46); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +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) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_49 = lean_ctor_get(x_46, 2); -lean_dec(x_49); -x_50 = l_List_reverse___rarg(x_16); -x_51 = l_List_appendTR___rarg(x_50, x_3); -lean_ctor_set(x_46, 2, x_51); -x_52 = lean_st_ref_set(x_5, x_46, x_47); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_48, 2); +lean_dec(x_51); +x_52 = l_List_reverse___rarg(x_16); +x_53 = l_List_appendTR___rarg(x_52, x_3); +lean_ctor_set(x_48, 2, x_53); +x_54 = lean_st_ref_set(x_5, x_48, x_49); lean_dec(x_5); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -lean_object* x_54; uint8_t x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_52, 0); +lean_object* x_56; uint8_t x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +x_57 = 1; +x_58 = lean_box(x_57); +lean_ctor_set(x_54, 0, x_58); +return x_54; +} +else +{ +lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 1); +lean_inc(x_59); lean_dec(x_54); -x_55 = 1; -x_56 = lean_box(x_55); -lean_ctor_set(x_52, 0, x_56); -return x_52; -} -else -{ -lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); -x_58 = 1; -x_59 = lean_box(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_57); -return x_60; +x_60 = 1; +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_59); +return x_62; } } else { -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; uint8_t x_71; lean_object* x_72; lean_object* x_73; -x_61 = lean_ctor_get(x_46, 0); -x_62 = lean_ctor_get(x_46, 1); -x_63 = lean_ctor_get(x_46, 3); -x_64 = lean_ctor_get(x_46, 4); +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; uint8_t x_73; lean_object* x_74; lean_object* x_75; +x_63 = lean_ctor_get(x_48, 0); +x_64 = lean_ctor_get(x_48, 1); +x_65 = lean_ctor_get(x_48, 3); +x_66 = lean_ctor_get(x_48, 4); +lean_inc(x_66); +lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_46); -x_65 = l_List_reverse___rarg(x_16); -x_66 = l_List_appendTR___rarg(x_65, x_3); -x_67 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_67, 0, x_61); -lean_ctor_set(x_67, 1, x_62); -lean_ctor_set(x_67, 2, x_66); -lean_ctor_set(x_67, 3, x_63); -lean_ctor_set(x_67, 4, x_64); -x_68 = lean_st_ref_set(x_5, x_67, x_47); +lean_dec(x_48); +x_67 = l_List_reverse___rarg(x_16); +x_68 = l_List_appendTR___rarg(x_67, x_3); +x_69 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_69, 0, x_63); +lean_ctor_set(x_69, 1, x_64); +lean_ctor_set(x_69, 2, x_68); +lean_ctor_set(x_69, 3, x_65); +lean_ctor_set(x_69, 4, x_66); +x_70 = lean_st_ref_set(x_5, x_69, x_49); lean_dec(x_5); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_70 = x_68; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; } else { - lean_dec_ref(x_68); - x_70 = lean_box(0); + lean_dec_ref(x_70); + x_72 = lean_box(0); } -x_71 = 1; -x_72 = lean_box(x_71); -if (lean_is_scalar(x_70)) { - x_73 = lean_alloc_ctor(0, 2, 0); +x_73 = 1; +x_74 = lean_box(x_73); +if (lean_is_scalar(x_72)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_70; + x_75 = x_72; } -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_69); -return x_73; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_71); +return x_75; } } } else { -uint8_t x_74; +uint8_t x_76; lean_free_object(x_2); lean_dec(x_16); lean_dec(x_15); @@ -8474,39 +8653,39 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_39); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_41); +if (x_76 == 0) { -return x_39; +return x_41; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_39, 0); -x_76 = lean_ctor_get(x_39, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_39); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_41, 0); +x_78 = lean_ctor_get(x_41, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_41); +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; } } } else { -lean_object* x_78; +lean_object* x_80; lean_dec(x_22); lean_dec(x_21); -x_78 = lean_ctor_get(x_17, 1); -lean_inc(x_78); +x_80 = lean_ctor_get(x_17, 1); +lean_inc(x_80); lean_dec(x_17); lean_ctor_set(x_2, 1, x_3); { lean_object* _tmp_1 = x_16; lean_object* _tmp_2 = x_2; -lean_object* _tmp_9 = x_78; +lean_object* _tmp_9 = x_80; x_2 = _tmp_1; x_3 = _tmp_2; x_10 = _tmp_9; @@ -8517,190 +8696,195 @@ goto _start; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_2, 0); -x_81 = lean_ctor_get(x_2, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_2); -x_82 = l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(x_80, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_83 = lean_ctor_get(x_82, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_2, 0); +x_83 = lean_ctor_get(x_2, 1); lean_inc(x_83); -if (lean_obj_tag(x_83) == 0) +lean_inc(x_82); +lean_dec(x_2); +x_84 = l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(x_82, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_80); -lean_ctor_set(x_85, 1, x_3); -x_2 = x_81; -x_3 = x_85; -x_10 = x_84; +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_82); +lean_ctor_set(x_87, 1, x_3); +x_2 = x_83; +x_3 = x_87; +x_10 = x_86; goto _start; } else { -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_83, 0); -lean_inc(x_87); -lean_dec(x_83); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -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; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_89 = lean_ctor_get(x_82, 1); +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_85, 0); lean_inc(x_89); -lean_dec(x_82); -x_90 = lean_ctor_get(x_87, 0); +lean_dec(x_85); +x_90 = lean_ctor_get(x_89, 1); lean_inc(x_90); -lean_dec(x_87); -x_91 = lean_ctor_get(x_8, 0); -x_92 = lean_ctor_get(x_8, 1); -x_93 = lean_ctor_get(x_8, 2); -x_94 = lean_ctor_get(x_8, 3); -x_95 = lean_ctor_get(x_8, 4); -x_96 = lean_ctor_get(x_8, 5); -x_97 = lean_ctor_get(x_8, 6); -x_98 = lean_ctor_get(x_8, 7); -x_99 = lean_ctor_get(x_8, 8); -x_100 = lean_ctor_get(x_8, 9); -x_101 = lean_ctor_get(x_8, 10); -x_102 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_103 = l_Lean_replaceRef(x_90, x_96); -lean_dec(x_90); +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; 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; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_91 = lean_ctor_get(x_84, 1); +lean_inc(x_91); +lean_dec(x_84); +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +lean_dec(x_89); +x_93 = lean_ctor_get(x_8, 0); +x_94 = lean_ctor_get(x_8, 1); +x_95 = lean_ctor_get(x_8, 2); +x_96 = lean_ctor_get(x_8, 3); +x_97 = lean_ctor_get(x_8, 4); +x_98 = lean_ctor_get(x_8, 5); +x_99 = lean_ctor_get(x_8, 6); +x_100 = lean_ctor_get(x_8, 7); +x_101 = lean_ctor_get(x_8, 8); +x_102 = lean_ctor_get(x_8, 9); +x_103 = lean_ctor_get(x_8, 10); +x_104 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_105 = lean_ctor_get(x_8, 11); +x_106 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_107 = l_Lean_replaceRef(x_92, x_98); +lean_dec(x_92); +lean_inc(x_105); +lean_inc(x_103); +lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); -lean_inc(x_98); lean_inc(x_97); +lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); -lean_inc(x_91); -x_104 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_104, 0, x_91); -lean_ctor_set(x_104, 1, x_92); -lean_ctor_set(x_104, 2, x_93); -lean_ctor_set(x_104, 3, x_94); -lean_ctor_set(x_104, 4, x_95); -lean_ctor_set(x_104, 5, x_103); -lean_ctor_set(x_104, 6, x_97); -lean_ctor_set(x_104, 7, x_98); -lean_ctor_set(x_104, 8, x_99); -lean_ctor_set(x_104, 9, x_100); -lean_ctor_set(x_104, 10, x_101); -lean_ctor_set_uint8(x_104, sizeof(void*)*11, x_102); +x_108 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_108, 0, x_93); +lean_ctor_set(x_108, 1, x_94); +lean_ctor_set(x_108, 2, x_95); +lean_ctor_set(x_108, 3, x_96); +lean_ctor_set(x_108, 4, x_97); +lean_ctor_set(x_108, 5, x_107); +lean_ctor_set(x_108, 6, x_99); +lean_ctor_set(x_108, 7, x_100); +lean_ctor_set(x_108, 8, x_101); +lean_ctor_set(x_108, 9, x_102); +lean_ctor_set(x_108, 10, x_103); +lean_ctor_set(x_108, 11, x_105); +lean_ctor_set_uint8(x_108, sizeof(void*)*12, x_104); +lean_ctor_set_uint8(x_108, sizeof(void*)*12 + 1, x_106); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -lean_inc(x_80); -x_105 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio(x_80, x_1, x_4, x_5, x_6, x_7, x_104, x_9, x_89); -if (lean_obj_tag(x_105) == 0) +lean_inc(x_82); +x_109 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio(x_82, x_1, x_4, x_5, x_6, x_7, x_108, x_9, x_91); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_106; uint8_t x_107; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_unbox(x_106); -lean_dec(x_106); -if (x_107 == 0) +lean_object* x_110; uint8_t x_111; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_unbox(x_110); +lean_dec(x_110); +if (x_111 == 0) { -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_105, 1); -lean_inc(x_108); -lean_dec(x_105); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_80); -lean_ctor_set(x_109, 1, x_3); -x_2 = x_81; -x_3 = x_109; -x_10 = x_108; +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_82); +lean_ctor_set(x_113, 1, x_3); +x_2 = x_83; +x_3 = x_113; +x_10 = x_112; goto _start; } 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; 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; uint8_t x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_80); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_82); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_111 = lean_ctor_get(x_105, 1); -lean_inc(x_111); -lean_dec(x_105); -x_112 = lean_st_ref_take(x_5, x_111); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = lean_ctor_get(x_113, 0); +x_115 = lean_ctor_get(x_109, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_113, 1); -lean_inc(x_116); -x_117 = lean_ctor_get(x_113, 3); +lean_dec(x_109); +x_116 = lean_st_ref_take(x_5, x_115); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); -x_118 = lean_ctor_get(x_113, 4); +x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - lean_ctor_release(x_113, 2); - lean_ctor_release(x_113, 3); - lean_ctor_release(x_113, 4); - x_119 = x_113; +lean_dec(x_116); +x_119 = lean_ctor_get(x_117, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_117, 1); +lean_inc(x_120); +x_121 = lean_ctor_get(x_117, 3); +lean_inc(x_121); +x_122 = lean_ctor_get(x_117, 4); +lean_inc(x_122); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + lean_ctor_release(x_117, 2); + lean_ctor_release(x_117, 3); + lean_ctor_release(x_117, 4); + x_123 = x_117; } else { - lean_dec_ref(x_113); - x_119 = lean_box(0); + lean_dec_ref(x_117); + x_123 = lean_box(0); } -x_120 = l_List_reverse___rarg(x_81); -x_121 = l_List_appendTR___rarg(x_120, x_3); -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(0, 5, 0); +x_124 = l_List_reverse___rarg(x_83); +x_125 = l_List_appendTR___rarg(x_124, x_3); +if (lean_is_scalar(x_123)) { + x_126 = lean_alloc_ctor(0, 5, 0); } else { - x_122 = x_119; + x_126 = x_123; } -lean_ctor_set(x_122, 0, x_115); -lean_ctor_set(x_122, 1, x_116); -lean_ctor_set(x_122, 2, x_121); -lean_ctor_set(x_122, 3, x_117); -lean_ctor_set(x_122, 4, x_118); -x_123 = lean_st_ref_set(x_5, x_122, x_114); +lean_ctor_set(x_126, 0, x_119); +lean_ctor_set(x_126, 1, x_120); +lean_ctor_set(x_126, 2, x_125); +lean_ctor_set(x_126, 3, x_121); +lean_ctor_set(x_126, 4, x_122); +x_127 = lean_st_ref_set(x_5, x_126, x_118); lean_dec(x_5); -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; +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_129 = x_127; } else { - lean_dec_ref(x_123); - x_125 = lean_box(0); + lean_dec_ref(x_127); + x_129 = lean_box(0); } -x_126 = 1; -x_127 = lean_box(x_126); -if (lean_is_scalar(x_125)) { - x_128 = lean_alloc_ctor(0, 2, 0); +x_130 = 1; +x_131 = lean_box(x_130); +if (lean_is_scalar(x_129)) { + x_132 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_125; + x_132 = x_129; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_124); -return x_128; +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_128); +return x_132; } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_81); -lean_dec(x_80); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_83); +lean_dec(x_82); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -8708,42 +8892,42 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_129 = lean_ctor_get(x_105, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_105, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_131 = x_105; +x_133 = lean_ctor_get(x_109, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_109, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_135 = x_109; } else { - lean_dec_ref(x_105); - x_131 = lean_box(0); + lean_dec_ref(x_109); + x_135 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_131; + x_136 = x_135; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -return x_132; +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; } } else { -lean_object* x_133; lean_object* x_134; -lean_dec(x_88); -lean_dec(x_87); -x_133 = lean_ctor_get(x_82, 1); -lean_inc(x_133); -lean_dec(x_82); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_80); -lean_ctor_set(x_134, 1, x_3); -x_2 = x_81; -x_3 = x_134; -x_10 = x_133; +lean_object* x_137; lean_object* x_138; +lean_dec(x_90); +lean_dec(x_89); +x_137 = lean_ctor_get(x_84, 1); +lean_inc(x_137); +lean_dec(x_84); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_82); +lean_ctor_set(x_138, 1, x_3); +x_2 = x_83; +x_3 = x_138; +x_10 = x_137; goto _start; } } @@ -9167,7 +9351,7 @@ x_16 = lean_ctor_get(x_13, 1); x_17 = lean_ctor_get(x_15, 5); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_17); +x_18 = l_Lean_MessageLog_hasErrors(x_17); if (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; @@ -9209,7 +9393,7 @@ lean_dec(x_13); x_28 = lean_ctor_get(x_26, 5); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_28); +x_29 = l_Lean_MessageLog_hasErrors(x_28); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -9266,7 +9450,7 @@ if (lean_is_exclusive(x_40)) { x_44 = lean_ctor_get(x_41, 5); lean_inc(x_44); lean_dec(x_41); -x_45 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_44); +x_45 = l_Lean_MessageLog_hasErrors(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; lean_object* x_52; @@ -9577,7 +9761,7 @@ return x_37; } else { -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_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; uint8_t x_51; lean_object* x_52; lean_object* x_53; x_38 = lean_ctor_get(x_7, 0); x_39 = lean_ctor_get(x_7, 1); x_40 = lean_ctor_get(x_7, 2); @@ -9589,7 +9773,10 @@ x_45 = lean_ctor_get(x_7, 7); x_46 = lean_ctor_get(x_7, 8); x_47 = lean_ctor_get(x_7, 9); x_48 = lean_ctor_get(x_7, 10); -x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_50 = lean_ctor_get(x_7, 11); +x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_50); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); @@ -9602,123 +9789,128 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_7); -x_50 = l_Lean_replaceRef(x_22, x_43); +x_52 = l_Lean_replaceRef(x_22, x_43); lean_dec(x_43); lean_dec(x_22); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_40); -lean_ctor_set(x_51, 3, x_41); -lean_ctor_set(x_51, 4, x_42); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_44); -lean_ctor_set(x_51, 7, x_45); -lean_ctor_set(x_51, 8, x_46); -lean_ctor_set(x_51, 9, x_47); -lean_ctor_set(x_51, 10, x_48); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_49); +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_38); +lean_ctor_set(x_53, 1, x_39); +lean_ctor_set(x_53, 2, x_40); +lean_ctor_set(x_53, 3, x_41); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set(x_53, 5, x_52); +lean_ctor_set(x_53, 6, x_44); +lean_ctor_set(x_53, 7, x_45); +lean_ctor_set(x_53, 8, x_46); +lean_ctor_set(x_53, 9, x_47); +lean_ctor_set(x_53, 10, x_48); +lean_ctor_set(x_53, 11, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_51); switch (lean_obj_tag(x_23)) { case 0: { if (x_2 == 0) { -lean_object* x_52; lean_object* x_53; +lean_object* x_54; lean_object* x_55; lean_free_object(x_10); lean_inc(x_1); -x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___boxed), 8, 1); -lean_closure_set(x_52, 0, x_1); -x_53 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_52, x_3, x_4, x_5, x_6, x_51, x_8, x_19); -return x_53; +x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___boxed), 8, 1); +lean_closure_set(x_54, 0, x_1); +x_55 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_54, x_3, x_4, x_5, x_6, x_53, x_8, x_19); +return x_55; } else { -lean_object* x_54; -lean_dec(x_51); +lean_object* x_56; +lean_dec(x_53); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_54 = lean_box(0); -lean_ctor_set(x_10, 0, x_54); +x_56 = lean_box(0); +lean_ctor_set(x_10, 0, x_56); return x_10; } } case 1: { -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_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_free_object(x_10); -x_55 = lean_ctor_get(x_23, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_23, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_23, 2); +x_57 = lean_ctor_get(x_23, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_23, 3); +x_58 = lean_ctor_get(x_23, 1); lean_inc(x_58); +x_59 = lean_ctor_get(x_23, 2); +lean_inc(x_59); +x_60 = lean_ctor_get(x_23, 3); +lean_inc(x_60); lean_dec(x_23); lean_inc(x_1); -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2), 12, 5); -lean_closure_set(x_59, 0, x_57); -lean_closure_set(x_59, 1, x_1); -lean_closure_set(x_59, 2, x_55); -lean_closure_set(x_59, 3, x_56); -lean_closure_set(x_59, 4, x_58); -x_60 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_59, x_3, x_4, x_5, x_6, x_51, x_8, x_19); -return x_60; +x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2), 12, 5); +lean_closure_set(x_61, 0, x_59); +lean_closure_set(x_61, 1, x_1); +lean_closure_set(x_61, 2, x_57); +lean_closure_set(x_61, 3, x_58); +lean_closure_set(x_61, 4, x_60); +x_62 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_61, x_3, x_4, x_5, x_6, x_53, x_8, x_19); +return x_62; } default: { -lean_object* x_61; lean_object* x_62; +lean_object* x_63; lean_object* x_64; lean_dec(x_23); lean_free_object(x_10); lean_dec(x_1); -x_61 = l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__2; -x_62 = l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(x_61, x_3, x_4, x_5, x_6, x_51, x_8, x_19); -return x_62; +x_63 = l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__2; +x_64 = l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(x_63, x_3, x_4, x_5, x_6, x_53, x_8, x_19); +return x_64; } } } } else { -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; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_63 = lean_ctor_get(x_10, 1); -lean_inc(x_63); -lean_dec(x_10); -x_64 = lean_ctor_get(x_11, 0); -lean_inc(x_64); -lean_dec(x_11); -x_65 = lean_ctor_get(x_64, 0); +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; uint8_t x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_65 = lean_ctor_get(x_10, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_dec(x_10); +x_66 = lean_ctor_get(x_11, 0); lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_7, 0); +lean_dec(x_11); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_7, 1); +x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_7, 2); +lean_dec(x_66); +x_69 = lean_ctor_get(x_7, 0); lean_inc(x_69); -x_70 = lean_ctor_get(x_7, 3); +x_70 = lean_ctor_get(x_7, 1); lean_inc(x_70); -x_71 = lean_ctor_get(x_7, 4); +x_71 = lean_ctor_get(x_7, 2); lean_inc(x_71); -x_72 = lean_ctor_get(x_7, 5); +x_72 = lean_ctor_get(x_7, 3); lean_inc(x_72); -x_73 = lean_ctor_get(x_7, 6); +x_73 = lean_ctor_get(x_7, 4); lean_inc(x_73); -x_74 = lean_ctor_get(x_7, 7); +x_74 = lean_ctor_get(x_7, 5); lean_inc(x_74); -x_75 = lean_ctor_get(x_7, 8); +x_75 = lean_ctor_get(x_7, 6); lean_inc(x_75); -x_76 = lean_ctor_get(x_7, 9); +x_76 = lean_ctor_get(x_7, 7); lean_inc(x_76); -x_77 = lean_ctor_get(x_7, 10); +x_77 = lean_ctor_get(x_7, 8); lean_inc(x_77); -x_78 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_78 = lean_ctor_get(x_7, 9); +lean_inc(x_78); +x_79 = lean_ctor_get(x_7, 10); +lean_inc(x_79); +x_80 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_81 = lean_ctor_get(x_7, 11); +lean_inc(x_81); +x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); @@ -9731,90 +9923,93 @@ if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 8); lean_ctor_release(x_7, 9); lean_ctor_release(x_7, 10); - x_79 = x_7; + lean_ctor_release(x_7, 11); + x_83 = x_7; } else { lean_dec_ref(x_7); - x_79 = lean_box(0); + x_83 = lean_box(0); } -x_80 = l_Lean_replaceRef(x_65, x_72); -lean_dec(x_72); -lean_dec(x_65); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 11, 1); +x_84 = l_Lean_replaceRef(x_67, x_74); +lean_dec(x_74); +lean_dec(x_67); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 12, 2); } else { - x_81 = x_79; + x_85 = x_83; } -lean_ctor_set(x_81, 0, x_67); -lean_ctor_set(x_81, 1, x_68); -lean_ctor_set(x_81, 2, x_69); -lean_ctor_set(x_81, 3, x_70); -lean_ctor_set(x_81, 4, x_71); -lean_ctor_set(x_81, 5, x_80); -lean_ctor_set(x_81, 6, x_73); -lean_ctor_set(x_81, 7, x_74); -lean_ctor_set(x_81, 8, x_75); -lean_ctor_set(x_81, 9, x_76); -lean_ctor_set(x_81, 10, x_77); -lean_ctor_set_uint8(x_81, sizeof(void*)*11, x_78); -switch (lean_obj_tag(x_66)) { +lean_ctor_set(x_85, 0, x_69); +lean_ctor_set(x_85, 1, x_70); +lean_ctor_set(x_85, 2, x_71); +lean_ctor_set(x_85, 3, x_72); +lean_ctor_set(x_85, 4, x_73); +lean_ctor_set(x_85, 5, x_84); +lean_ctor_set(x_85, 6, x_75); +lean_ctor_set(x_85, 7, x_76); +lean_ctor_set(x_85, 8, x_77); +lean_ctor_set(x_85, 9, x_78); +lean_ctor_set(x_85, 10, x_79); +lean_ctor_set(x_85, 11, x_81); +lean_ctor_set_uint8(x_85, sizeof(void*)*12, x_80); +lean_ctor_set_uint8(x_85, sizeof(void*)*12 + 1, x_82); +switch (lean_obj_tag(x_68)) { case 0: { if (x_2 == 0) { -lean_object* x_82; lean_object* x_83; +lean_object* x_86; lean_object* x_87; lean_inc(x_1); -x_82 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___boxed), 8, 1); -lean_closure_set(x_82, 0, x_1); -x_83 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_82, x_3, x_4, x_5, x_6, x_81, x_8, x_63); -return x_83; +x_86 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___boxed), 8, 1); +lean_closure_set(x_86, 0, x_1); +x_87 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_86, x_3, x_4, x_5, x_6, x_85, x_8, x_65); +return x_87; } else { -lean_object* x_84; lean_object* x_85; -lean_dec(x_81); +lean_object* x_88; lean_object* x_89; +lean_dec(x_85); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_84 = lean_box(0); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_63); -return x_85; +x_88 = lean_box(0); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_65); +return x_89; } } case 1: { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_86 = lean_ctor_get(x_66, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_66, 1); -lean_inc(x_87); -x_88 = lean_ctor_get(x_66, 2); -lean_inc(x_88); -x_89 = lean_ctor_get(x_66, 3); -lean_inc(x_89); -lean_dec(x_66); +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_68, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_68, 1); +lean_inc(x_91); +x_92 = lean_ctor_get(x_68, 2); +lean_inc(x_92); +x_93 = lean_ctor_get(x_68, 3); +lean_inc(x_93); +lean_dec(x_68); lean_inc(x_1); -x_90 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2), 12, 5); -lean_closure_set(x_90, 0, x_88); -lean_closure_set(x_90, 1, x_1); -lean_closure_set(x_90, 2, x_86); -lean_closure_set(x_90, 3, x_87); -lean_closure_set(x_90, 4, x_89); -x_91 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_90, x_3, x_4, x_5, x_6, x_81, x_8, x_63); -return x_91; +x_94 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2), 12, 5); +lean_closure_set(x_94, 0, x_92); +lean_closure_set(x_94, 1, x_1); +lean_closure_set(x_94, 2, x_90); +lean_closure_set(x_94, 3, x_91); +lean_closure_set(x_94, 4, x_93); +x_95 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_94, x_3, x_4, x_5, x_6, x_85, x_8, x_65); +return x_95; } default: { -lean_object* x_92; lean_object* x_93; -lean_dec(x_66); +lean_object* x_96; lean_object* x_97; +lean_dec(x_68); lean_dec(x_1); -x_92 = l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__2; -x_93 = l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(x_92, x_3, x_4, x_5, x_6, x_81, x_8, x_63); -return x_93; +x_96 = l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__2; +x_97 = l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(x_96, x_3, x_4, x_5, x_6, x_85, x_8, x_65); +return x_97; } } } @@ -12016,7 +12211,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -12028,7 +12223,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -12041,24 +12239,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -lean_dec(x_27); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +lean_dec(x_29); +return x_30; } } } @@ -13070,7 +13270,7 @@ x_1 = 0; return x_1; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__1() { _start: { lean_object* x_1; @@ -13078,17 +13278,17 @@ x_1 = lean_mk_string_from_bytes("Lean.Elab.Term.PostponeBehavior.yes", 35); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -13097,23 +13297,23 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13121,7 +13321,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -13130,23 +13330,23 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13154,7 +13354,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__9() { _start: { lean_object* x_1; @@ -13162,33 +13362,33 @@ x_1 = lean_mk_string_from_bytes("Lean.Elab.Term.PostponeBehavior.no", 34); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13196,23 +13396,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13220,7 +13420,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15() { _start: { lean_object* x_1; @@ -13228,33 +13428,33 @@ x_1 = lean_mk_string_from_bytes("Lean.Elab.Term.PostponeBehavior.partial", 39); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13262,23 +13462,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16; x_3 = lean_alloc_ctor(4, 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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20() { +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -13286,7 +13486,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986_(uint8_t x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987_(uint8_t x_1, lean_object* x_2) { _start: { switch (x_1) { @@ -13298,14 +13498,14 @@ x_4 = lean_nat_dec_le(x_3, x_2); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; -x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5; +x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5; x_6 = l_Repr_addAppParen(x_5, x_2); return x_6; } else { lean_object* x_7; lean_object* x_8; -x_7 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8; +x_7 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8; x_8 = l_Repr_addAppParen(x_7, x_2); return x_8; } @@ -13318,14 +13518,14 @@ x_10 = lean_nat_dec_le(x_9, x_2); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12; +x_11 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12; x_12 = l_Repr_addAppParen(x_11, x_2); return x_12; } else { lean_object* x_13; lean_object* x_14; -x_13 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14; +x_13 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14; x_14 = l_Repr_addAppParen(x_13, x_2); return x_14; } @@ -13338,14 +13538,14 @@ x_16 = lean_nat_dec_le(x_15, x_2); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; -x_17 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18; +x_17 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18; x_18 = l_Repr_addAppParen(x_17, x_2); return x_18; } else { lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20; +x_19 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20; x_20 = l_Repr_addAppParen(x_19, x_2); return x_20; } @@ -13353,13 +13553,13 @@ return x_20; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986_(x_3, x_2); +x_4 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987_(x_3, x_2); lean_dec(x_2); return x_4; } @@ -13368,7 +13568,7 @@ static lean_object* _init_l_Lean_Elab_Term_instReprPostponeBehavior___closed__1( _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____boxed), 2, 0); return x_1; } } @@ -13380,7 +13580,7 @@ x_1 = l_Lean_Elab_Term_instReprPostponeBehavior___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(uint8_t x_1, uint8_t x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -13392,7 +13592,7 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; @@ -13400,7 +13600,7 @@ x_3 = lean_unbox(x_1); lean_dec(x_1); x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_3, x_4); +x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -13409,7 +13609,7 @@ static lean_object* _init_l_Lean_Elab_Term_instBEqPostponeBehavior___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102____boxed), 2, 0); return x_1; } } @@ -13505,7 +13705,7 @@ lean_dec(x_11); x_14 = !lean_is_exclusive(x_8); if (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_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; x_15 = lean_ctor_get(x_8, 0); x_16 = lean_ctor_get(x_8, 1); x_17 = lean_ctor_get(x_8, 2); @@ -13517,1256 +13717,1262 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); -x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_27 = l_Lean_replaceRef(x_12, x_20); +x_26 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_27 = lean_ctor_get(x_8, 11); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_29 = l_Lean_replaceRef(x_12, x_20); lean_dec(x_20); lean_dec(x_12); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); -lean_inc(x_27); +lean_inc(x_29); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); -lean_ctor_set(x_8, 5, x_27); -x_28 = lean_nat_dec_eq(x_18, x_19); -if (x_28 == 0) +lean_ctor_set(x_8, 5, x_29); +x_30 = lean_nat_dec_eq(x_18, x_19); +if (x_30 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_dec(x_8); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_18, x_29); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_18, x_31); lean_dec(x_18); -x_31 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_31, 0, x_15); -lean_ctor_set(x_31, 1, x_16); -lean_ctor_set(x_31, 2, x_17); -lean_ctor_set(x_31, 3, x_30); -lean_ctor_set(x_31, 4, x_19); -lean_ctor_set(x_31, 5, x_27); -lean_ctor_set(x_31, 6, x_21); -lean_ctor_set(x_31, 7, x_22); -lean_ctor_set(x_31, 8, x_23); -lean_ctor_set(x_31, 9, x_24); -lean_ctor_set(x_31, 10, x_25); -lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_26); -x_32 = lean_st_ref_get(x_5, x_13); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_33 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_33, 0, x_15); +lean_ctor_set(x_33, 1, x_16); +lean_ctor_set(x_33, 2, x_17); +lean_ctor_set(x_33, 3, x_32); +lean_ctor_set(x_33, 4, x_19); +lean_ctor_set(x_33, 5, x_29); +lean_ctor_set(x_33, 6, x_21); +lean_ctor_set(x_33, 7, x_22); +lean_ctor_set(x_33, 8, x_23); +lean_ctor_set(x_33, 9, x_24); +lean_ctor_set(x_33, 10, x_25); +lean_ctor_set(x_33, 11, x_27); +lean_ctor_set_uint8(x_33, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_33, sizeof(void*)*12 + 1, x_28); +x_34 = lean_st_ref_get(x_5, x_13); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -x_36 = lean_ctor_get(x_34, 2); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_List_isEmpty___rarg(x_36); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +x_38 = lean_ctor_get(x_36, 2); +lean_inc(x_38); lean_dec(x_36); -if (x_37 == 0) +x_39 = l_List_isEmpty___rarg(x_38); +lean_dec(x_38); +if (x_39 == 0) { -uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_free_object(x_32); -x_38 = 0; -x_39 = lean_box(x_38); -x_40 = lean_box(x_38); -x_41 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_41, 0, x_39); -lean_closure_set(x_41, 1, x_40); +uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_free_object(x_34); +x_40 = 0; +x_41 = lean_box(x_40); +x_42 = lean_box(x_40); +x_43 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_43, 0, x_41); +lean_closure_set(x_43, 1, x_42); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_42 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_38, x_38, x_4, x_5, x_6, x_7, x_31, x_9, x_35); -if (lean_obj_tag(x_42) == 0) +x_44 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_40, x_40, x_4, x_5, x_6, x_7, x_33, x_9, x_37); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_unbox(x_43); -lean_dec(x_43); -if (x_44 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) { -uint8_t x_45; -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) +uint8_t x_47; +x_47 = !lean_is_exclusive(x_44); +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_42, 1); -x_47 = lean_ctor_get(x_42, 0); -lean_dec(x_47); -x_48 = 0; -x_49 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_48); -if (x_49 == 0) +lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; +x_48 = lean_ctor_get(x_44, 1); +x_49 = lean_ctor_get(x_44, 0); +lean_dec(x_49); +x_50 = 0; +x_51 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_50); +if (x_51 == 0) { -uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_free_object(x_42); -x_50 = 1; -x_51 = lean_box(x_50); -x_52 = lean_box(x_38); -x_53 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_53, 0, x_51); -lean_closure_set(x_53, 1, x_52); +uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_free_object(x_44); +x_52 = 1; +x_53 = lean_box(x_52); +x_54 = lean_box(x_40); +x_55 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_55, 0, x_53); +lean_closure_set(x_55, 1, x_54); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_54 = l_Lean_Elab_Term_withoutPostponing___rarg(x_53, x_4, x_5, x_6, x_7, x_31, x_9, x_46); -if (lean_obj_tag(x_54) == 0) +x_56 = l_Lean_Elab_Term_withoutPostponing___rarg(x_55, x_4, x_5, x_6, x_7, x_33, x_9, x_48); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_55; uint8_t x_56; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_unbox(x_55); -lean_dec(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_54, 1); +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_54); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_58 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_31, x_9, x_57); -if (lean_obj_tag(x_58) == 0) +x_58 = lean_unbox(x_57); +lean_dec(x_57); +if (x_58 == 0) { -lean_object* x_59; uint8_t x_60; -x_59 = lean_ctor_get(x_58, 0); +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_56, 1); lean_inc(x_59); -x_60 = lean_unbox(x_59); -lean_dec(x_59); -if (x_60 == 0) +lean_dec(x_56); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_60 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_33, x_9, x_59); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -lean_dec(x_58); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_62 = l_Lean_Elab_Term_withoutPostponing___rarg(x_41, x_4, x_5, x_6, x_7, x_31, x_9, x_61); -if (lean_obj_tag(x_62) == 0) +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) { -lean_object* x_63; uint8_t x_64; -x_63 = lean_ctor_get(x_62, 0); +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_60, 1); lean_inc(x_63); -x_64 = lean_unbox(x_63); -lean_dec(x_63); -if (x_64 == 0) +lean_dec(x_60); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_64 = l_Lean_Elab_Term_withoutPostponing___rarg(x_43, x_4, x_5, x_6, x_7, x_33, x_9, x_63); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_62, 1); +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_62); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_66 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_38, x_50, x_4, x_5, x_6, x_7, x_31, x_9, x_65); -if (lean_obj_tag(x_66) == 0) +x_66 = lean_unbox(x_65); +lean_dec(x_65); +if (x_66 == 0) { -lean_object* x_67; uint8_t x_68; -x_67 = lean_ctor_get(x_66, 0); +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_64, 1); lean_inc(x_67); -x_68 = lean_unbox(x_67); -lean_dec(x_67); -if (x_68 == 0) +lean_dec(x_64); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_68 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_40, x_52, x_4, x_5, x_6, x_7, x_33, x_9, x_67); +if (lean_obj_tag(x_68) == 0) { -uint8_t x_69; -x_69 = !lean_is_exclusive(x_66); -if (x_69 == 0) +lean_object* x_69; uint8_t x_70; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) { -lean_object* x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; -x_70 = lean_ctor_get(x_66, 1); -x_71 = lean_ctor_get(x_66, 0); -lean_dec(x_71); -x_72 = 1; -x_73 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_72); -if (x_73 == 0) +uint8_t x_71; +x_71 = !lean_is_exclusive(x_68); +if (x_71 == 0) { -lean_object* x_74; -lean_dec(x_31); +lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; +x_72 = lean_ctor_get(x_68, 1); +x_73 = lean_ctor_get(x_68, 0); +lean_dec(x_73); +x_74 = 1; +x_75 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_74); +if (x_75 == 0) +{ +lean_object* x_76; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_74 = lean_box(0); -lean_ctor_set(x_66, 0, x_74); -return x_66; +x_76 = lean_box(0); +lean_ctor_set(x_68, 0, x_76); +return x_68; } else { -lean_object* x_75; -lean_free_object(x_66); -x_75 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_31, x_9, x_70); -return x_75; +lean_object* x_77; +lean_free_object(x_68); +x_77 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_33, x_9, x_72); +return x_77; } } else { -lean_object* x_76; uint8_t x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_66, 1); -lean_inc(x_76); -lean_dec(x_66); -x_77 = 1; -x_78 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_77); -if (x_78 == 0) +lean_object* x_78; uint8_t x_79; uint8_t x_80; +x_78 = lean_ctor_get(x_68, 1); +lean_inc(x_78); +lean_dec(x_68); +x_79 = 1; +x_80 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_79); +if (x_80 == 0) { -lean_object* x_79; lean_object* x_80; -lean_dec(x_31); +lean_object* x_81; lean_object* x_82; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_79 = lean_box(0); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_76); -return x_80; +x_81 = lean_box(0); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_78); +return x_82; } else { -lean_object* x_81; -x_81 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_31, x_9, x_76); -return x_81; +lean_object* x_83; +x_83 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_33, x_9, x_78); +return x_83; } } } else { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_66, 1); -lean_inc(x_82); -lean_dec(x_66); -x_83 = lean_box(0); -x_3 = x_83; -x_8 = x_31; -x_10 = x_82; +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_68, 1); +lean_inc(x_84); +lean_dec(x_68); +x_85 = lean_box(0); +x_3 = x_85; +x_8 = x_33; +x_10 = x_84; goto _start; } } else { -uint8_t x_85; -lean_dec(x_31); +uint8_t x_87; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_66); -if (x_85 == 0) +x_87 = !lean_is_exclusive(x_68); +if (x_87 == 0) { -return x_66; +return x_68; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_66, 0); -x_87 = lean_ctor_get(x_66, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_66); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -else -{ -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_62, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_68, 0); +x_89 = lean_ctor_get(x_68, 1); lean_inc(x_89); -lean_dec(x_62); -x_90 = lean_box(0); -x_3 = x_90; -x_8 = x_31; -x_10 = x_89; +lean_inc(x_88); +lean_dec(x_68); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_64, 1); +lean_inc(x_91); +lean_dec(x_64); +x_92 = lean_box(0); +x_3 = x_92; +x_8 = x_33; +x_10 = x_91; goto _start; } } else { -uint8_t x_92; -lean_dec(x_31); +uint8_t x_94; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_92 = !lean_is_exclusive(x_62); -if (x_92 == 0) +x_94 = !lean_is_exclusive(x_64); +if (x_94 == 0) { -return x_62; +return x_64; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_62, 0); -x_94 = lean_ctor_get(x_62, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_62); -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; lean_object* x_97; -lean_dec(x_41); -x_96 = lean_ctor_get(x_58, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_64, 0); +x_96 = lean_ctor_get(x_64, 1); lean_inc(x_96); -lean_dec(x_58); -x_97 = lean_box(0); -x_3 = x_97; -x_8 = x_31; -x_10 = x_96; +lean_inc(x_95); +lean_dec(x_64); +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_43); +x_98 = lean_ctor_get(x_60, 1); +lean_inc(x_98); +lean_dec(x_60); +x_99 = lean_box(0); +x_3 = x_99; +x_8 = x_33; +x_10 = x_98; goto _start; } } else { -uint8_t x_99; -lean_dec(x_41); -lean_dec(x_31); +uint8_t x_101; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_99 = !lean_is_exclusive(x_58); -if (x_99 == 0) +x_101 = !lean_is_exclusive(x_60); +if (x_101 == 0) { -return x_58; +return x_60; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_58, 0); -x_101 = lean_ctor_get(x_58, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_58); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; -} -} -} -else -{ -lean_object* x_103; lean_object* x_104; -lean_dec(x_41); -x_103 = lean_ctor_get(x_54, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_60, 0); +x_103 = lean_ctor_get(x_60, 1); lean_inc(x_103); -lean_dec(x_54); -x_104 = lean_box(0); -x_3 = x_104; -x_8 = x_31; -x_10 = x_103; +lean_inc(x_102); +lean_dec(x_60); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_43); +x_105 = lean_ctor_get(x_56, 1); +lean_inc(x_105); +lean_dec(x_56); +x_106 = lean_box(0); +x_3 = x_106; +x_8 = x_33; +x_10 = x_105; goto _start; } } else { -uint8_t x_106; -lean_dec(x_41); -lean_dec(x_31); +uint8_t x_108; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_106 = !lean_is_exclusive(x_54); -if (x_106 == 0) +x_108 = !lean_is_exclusive(x_56); +if (x_108 == 0) { -return x_54; +return x_56; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_54, 0); -x_108 = lean_ctor_get(x_54, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_54); -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_56, 0); +x_110 = lean_ctor_get(x_56, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_56); +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 { -lean_object* x_110; -lean_dec(x_41); -lean_dec(x_31); +lean_object* x_112; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_110 = lean_box(0); -lean_ctor_set(x_42, 0, x_110); -return x_42; +x_112 = lean_box(0); +lean_ctor_set(x_44, 0, x_112); +return x_44; } } else { -lean_object* x_111; uint8_t x_112; uint8_t x_113; -x_111 = lean_ctor_get(x_42, 1); -lean_inc(x_111); -lean_dec(x_42); -x_112 = 0; -x_113 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_112); -if (x_113 == 0) +lean_object* x_113; uint8_t x_114; uint8_t x_115; +x_113 = lean_ctor_get(x_44, 1); +lean_inc(x_113); +lean_dec(x_44); +x_114 = 0; +x_115 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_114); +if (x_115 == 0) { -uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_114 = 1; -x_115 = lean_box(x_114); -x_116 = lean_box(x_38); -x_117 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_117, 0, x_115); -lean_closure_set(x_117, 1, x_116); +uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_116 = 1; +x_117 = lean_box(x_116); +x_118 = lean_box(x_40); +x_119 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_119, 0, x_117); +lean_closure_set(x_119, 1, x_118); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_118 = l_Lean_Elab_Term_withoutPostponing___rarg(x_117, x_4, x_5, x_6, x_7, x_31, x_9, x_111); -if (lean_obj_tag(x_118) == 0) +x_120 = l_Lean_Elab_Term_withoutPostponing___rarg(x_119, x_4, x_5, x_6, x_7, x_33, x_9, x_113); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_119; uint8_t x_120; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_unbox(x_119); -lean_dec(x_119); -if (x_120 == 0) -{ -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_118, 1); +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -lean_dec(x_118); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_122 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_31, x_9, x_121); -if (lean_obj_tag(x_122) == 0) +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -lean_object* x_123; uint8_t x_124; -x_123 = lean_ctor_get(x_122, 0); +lean_object* x_123; lean_object* x_124; +x_123 = lean_ctor_get(x_120, 1); lean_inc(x_123); -x_124 = lean_unbox(x_123); -lean_dec(x_123); -if (x_124 == 0) +lean_dec(x_120); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_124 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_33, x_9, x_123); +if (lean_obj_tag(x_124) == 0) { -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_122, 1); +lean_object* x_125; uint8_t x_126; +x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); -lean_dec(x_122); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_126 = l_Lean_Elab_Term_withoutPostponing___rarg(x_41, x_4, x_5, x_6, x_7, x_31, x_9, x_125); -if (lean_obj_tag(x_126) == 0) +x_126 = lean_unbox(x_125); +lean_dec(x_125); +if (x_126 == 0) { -lean_object* x_127; uint8_t x_128; -x_127 = lean_ctor_get(x_126, 0); +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_124, 1); lean_inc(x_127); -x_128 = lean_unbox(x_127); -lean_dec(x_127); -if (x_128 == 0) -{ -lean_object* x_129; lean_object* x_130; -x_129 = lean_ctor_get(x_126, 1); -lean_inc(x_129); -lean_dec(x_126); +lean_dec(x_124); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_130 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_38, x_114, x_4, x_5, x_6, x_7, x_31, x_9, x_129); -if (lean_obj_tag(x_130) == 0) +x_128 = l_Lean_Elab_Term_withoutPostponing___rarg(x_43, x_4, x_5, x_6, x_7, x_33, x_9, x_127); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_131; uint8_t x_132; -x_131 = lean_ctor_get(x_130, 0); +lean_object* x_129; uint8_t x_130; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_unbox(x_129); +lean_dec(x_129); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_128, 1); lean_inc(x_131); -x_132 = lean_unbox(x_131); -lean_dec(x_131); -if (x_132 == 0) +lean_dec(x_128); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_132 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_40, x_116, x_4, x_5, x_6, x_7, x_33, x_9, x_131); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_133; lean_object* x_134; uint8_t x_135; uint8_t x_136; -x_133 = lean_ctor_get(x_130, 1); +lean_object* x_133; uint8_t x_134; +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_134 = x_130; -} else { - lean_dec_ref(x_130); - x_134 = lean_box(0); -} -x_135 = 1; -x_136 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_135); -if (x_136 == 0) +x_134 = lean_unbox(x_133); +lean_dec(x_133); +if (x_134 == 0) { -lean_object* x_137; lean_object* x_138; -lean_dec(x_31); +lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; +x_135 = lean_ctor_get(x_132, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_136 = x_132; +} else { + lean_dec_ref(x_132); + x_136 = lean_box(0); +} +x_137 = 1; +x_138 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_137 = lean_box(0); -if (lean_is_scalar(x_134)) { - x_138 = lean_alloc_ctor(0, 2, 0); +x_139 = lean_box(0); +if (lean_is_scalar(x_136)) { + x_140 = lean_alloc_ctor(0, 2, 0); } else { - x_138 = x_134; + x_140 = x_136; } -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_133); -return x_138; +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_135); +return x_140; } else { -lean_object* x_139; -lean_dec(x_134); -x_139 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_31, x_9, x_133); -return x_139; +lean_object* x_141; +lean_dec(x_136); +x_141 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_33, x_9, x_135); +return x_141; } } else { -lean_object* x_140; lean_object* x_141; -x_140 = lean_ctor_get(x_130, 1); -lean_inc(x_140); -lean_dec(x_130); -x_141 = lean_box(0); -x_3 = x_141; -x_8 = x_31; -x_10 = x_140; +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_132, 1); +lean_inc(x_142); +lean_dec(x_132); +x_143 = lean_box(0); +x_3 = x_143; +x_8 = x_33; +x_10 = x_142; goto _start; } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_31); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_143 = lean_ctor_get(x_130, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_130, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_145 = x_130; +x_145 = lean_ctor_get(x_132, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_132, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_147 = x_132; } else { - lean_dec_ref(x_130); - x_145 = lean_box(0); + lean_dec_ref(x_132); + x_147 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_146 = x_145; + x_148 = x_147; } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } } else { -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_126, 1); -lean_inc(x_147); -lean_dec(x_126); -x_148 = lean_box(0); -x_3 = x_148; -x_8 = x_31; -x_10 = x_147; +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_128, 1); +lean_inc(x_149); +lean_dec(x_128); +x_150 = lean_box(0); +x_3 = x_150; +x_8 = x_33; +x_10 = x_149; goto _start; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_31); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_150 = lean_ctor_get(x_126, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_126, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_152 = x_126; +x_152 = lean_ctor_get(x_128, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_128, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_154 = x_128; } else { - lean_dec_ref(x_126); - x_152 = lean_box(0); + lean_dec_ref(x_128); + x_154 = lean_box(0); } -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); } else { - x_153 = x_152; + x_155 = x_154; } -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -return x_153; +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_41); -x_154 = lean_ctor_get(x_122, 1); -lean_inc(x_154); -lean_dec(x_122); -x_155 = lean_box(0); -x_3 = x_155; -x_8 = x_31; -x_10 = x_154; +lean_object* x_156; lean_object* x_157; +lean_dec(x_43); +x_156 = lean_ctor_get(x_124, 1); +lean_inc(x_156); +lean_dec(x_124); +x_157 = lean_box(0); +x_3 = x_157; +x_8 = x_33; +x_10 = x_156; goto _start; } } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_41); -lean_dec(x_31); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_157 = lean_ctor_get(x_122, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_122, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_159 = x_122; +x_159 = lean_ctor_get(x_124, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_124, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_161 = x_124; } else { - lean_dec_ref(x_122); - x_159 = lean_box(0); + lean_dec_ref(x_124); + x_161 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_160 = x_159; + x_162 = x_161; } -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } else { -lean_object* x_161; lean_object* x_162; -lean_dec(x_41); -x_161 = lean_ctor_get(x_118, 1); -lean_inc(x_161); -lean_dec(x_118); -x_162 = lean_box(0); -x_3 = x_162; -x_8 = x_31; -x_10 = x_161; +lean_object* x_163; lean_object* x_164; +lean_dec(x_43); +x_163 = lean_ctor_get(x_120, 1); +lean_inc(x_163); +lean_dec(x_120); +x_164 = lean_box(0); +x_3 = x_164; +x_8 = x_33; +x_10 = x_163; goto _start; } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_41); -lean_dec(x_31); +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_164 = lean_ctor_get(x_118, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_118, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_166 = x_118; +x_166 = lean_ctor_get(x_120, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_120, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_168 = x_120; } else { - lean_dec_ref(x_118); - x_166 = lean_box(0); + lean_dec_ref(x_120); + x_168 = lean_box(0); } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_166; + x_169 = x_168; } -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); -return x_167; -} -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_41); -lean_dec(x_31); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_168 = lean_box(0); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_111); +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_dec(x_41); -x_170 = lean_ctor_get(x_42, 1); -lean_inc(x_170); -lean_dec(x_42); -x_171 = lean_box(0); -x_3 = x_171; -x_8 = x_31; -x_10 = x_170; +lean_dec(x_43); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_170 = lean_box(0); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_113); +return x_171; +} +} +} +else +{ +lean_object* x_172; lean_object* x_173; +lean_dec(x_43); +x_172 = lean_ctor_get(x_44, 1); +lean_inc(x_172); +lean_dec(x_44); +x_173 = lean_box(0); +x_3 = x_173; +x_8 = x_33; +x_10 = x_172; goto _start; } } else { -uint8_t x_173; -lean_dec(x_41); -lean_dec(x_31); +uint8_t x_175; +lean_dec(x_43); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_173 = !lean_is_exclusive(x_42); -if (x_173 == 0) +x_175 = !lean_is_exclusive(x_44); +if (x_175 == 0) { -return x_42; +return x_44; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_42, 0); -x_175 = lean_ctor_get(x_42, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_42); -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; +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_44, 0); +x_177 = lean_ctor_get(x_44, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_44); +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 { -lean_object* x_177; -lean_dec(x_31); +lean_object* x_179; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_177 = lean_box(0); -lean_ctor_set(x_32, 0, x_177); -return x_32; +x_179 = lean_box(0); +lean_ctor_set(x_34, 0, x_179); +return x_34; } } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_178 = lean_ctor_get(x_32, 0); -x_179 = lean_ctor_get(x_32, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_32); -x_180 = lean_ctor_get(x_178, 2); +lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; +x_180 = lean_ctor_get(x_34, 0); +x_181 = lean_ctor_get(x_34, 1); +lean_inc(x_181); lean_inc(x_180); -lean_dec(x_178); -x_181 = l_List_isEmpty___rarg(x_180); +lean_dec(x_34); +x_182 = lean_ctor_get(x_180, 2); +lean_inc(x_182); lean_dec(x_180); -if (x_181 == 0) +x_183 = l_List_isEmpty___rarg(x_182); +lean_dec(x_182); +if (x_183 == 0) { -uint8_t x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_182 = 0; -x_183 = lean_box(x_182); -x_184 = lean_box(x_182); -x_185 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_185, 0, x_183); -lean_closure_set(x_185, 1, x_184); +uint8_t x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_184 = 0; +x_185 = lean_box(x_184); +x_186 = lean_box(x_184); +x_187 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_187, 0, x_185); +lean_closure_set(x_187, 1, x_186); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_186 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_182, x_182, x_4, x_5, x_6, x_7, x_31, x_9, x_179); -if (lean_obj_tag(x_186) == 0) +x_188 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_184, x_184, x_4, x_5, x_6, x_7, x_33, x_9, x_181); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_187; uint8_t x_188; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_unbox(x_187); -lean_dec(x_187); -if (x_188 == 0) -{ -lean_object* x_189; lean_object* x_190; uint8_t x_191; uint8_t x_192; -x_189 = lean_ctor_get(x_186, 1); +lean_object* x_189; uint8_t x_190; +x_189 = lean_ctor_get(x_188, 0); lean_inc(x_189); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_190 = x_186; -} else { - lean_dec_ref(x_186); - x_190 = lean_box(0); -} -x_191 = 0; -x_192 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_191); -if (x_192 == 0) +x_190 = lean_unbox(x_189); +lean_dec(x_189); +if (x_190 == 0) { -uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_190); -x_193 = 1; -x_194 = lean_box(x_193); -x_195 = lean_box(x_182); -x_196 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_196, 0, x_194); -lean_closure_set(x_196, 1, x_195); +lean_object* x_191; lean_object* x_192; uint8_t x_193; uint8_t x_194; +x_191 = lean_ctor_get(x_188, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_192 = x_188; +} else { + lean_dec_ref(x_188); + x_192 = lean_box(0); +} +x_193 = 0; +x_194 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_193); +if (x_194 == 0) +{ +uint8_t x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_192); +x_195 = 1; +x_196 = lean_box(x_195); +x_197 = lean_box(x_184); +x_198 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_198, 0, x_196); +lean_closure_set(x_198, 1, x_197); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_197 = l_Lean_Elab_Term_withoutPostponing___rarg(x_196, x_4, x_5, x_6, x_7, x_31, x_9, x_189); -if (lean_obj_tag(x_197) == 0) +x_199 = l_Lean_Elab_Term_withoutPostponing___rarg(x_198, x_4, x_5, x_6, x_7, x_33, x_9, x_191); +if (lean_obj_tag(x_199) == 0) { -lean_object* x_198; uint8_t x_199; -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -x_199 = lean_unbox(x_198); -lean_dec(x_198); -if (x_199 == 0) -{ -lean_object* x_200; lean_object* x_201; -x_200 = lean_ctor_get(x_197, 1); +lean_object* x_200; uint8_t x_201; +x_200 = lean_ctor_get(x_199, 0); lean_inc(x_200); -lean_dec(x_197); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_201 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_31, x_9, x_200); -if (lean_obj_tag(x_201) == 0) +x_201 = lean_unbox(x_200); +lean_dec(x_200); +if (x_201 == 0) { -lean_object* x_202; uint8_t x_203; -x_202 = lean_ctor_get(x_201, 0); +lean_object* x_202; lean_object* x_203; +x_202 = lean_ctor_get(x_199, 1); lean_inc(x_202); -x_203 = lean_unbox(x_202); -lean_dec(x_202); -if (x_203 == 0) +lean_dec(x_199); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_203 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_33, x_9, x_202); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_204; lean_object* x_205; -x_204 = lean_ctor_get(x_201, 1); +lean_object* x_204; uint8_t x_205; +x_204 = lean_ctor_get(x_203, 0); lean_inc(x_204); -lean_dec(x_201); -lean_inc(x_9); -lean_inc(x_31); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_205 = l_Lean_Elab_Term_withoutPostponing___rarg(x_185, x_4, x_5, x_6, x_7, x_31, x_9, x_204); -if (lean_obj_tag(x_205) == 0) +x_205 = lean_unbox(x_204); +lean_dec(x_204); +if (x_205 == 0) { -lean_object* x_206; uint8_t x_207; -x_206 = lean_ctor_get(x_205, 0); +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_203, 1); lean_inc(x_206); -x_207 = lean_unbox(x_206); -lean_dec(x_206); -if (x_207 == 0) -{ -lean_object* x_208; lean_object* x_209; -x_208 = lean_ctor_get(x_205, 1); -lean_inc(x_208); -lean_dec(x_205); +lean_dec(x_203); lean_inc(x_9); -lean_inc(x_31); +lean_inc(x_33); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_209 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_182, x_193, x_4, x_5, x_6, x_7, x_31, x_9, x_208); -if (lean_obj_tag(x_209) == 0) +x_207 = l_Lean_Elab_Term_withoutPostponing___rarg(x_187, x_4, x_5, x_6, x_7, x_33, x_9, x_206); +if (lean_obj_tag(x_207) == 0) { -lean_object* x_210; uint8_t x_211; -x_210 = lean_ctor_get(x_209, 0); +lean_object* x_208; uint8_t x_209; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_unbox(x_208); +lean_dec(x_208); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; +x_210 = lean_ctor_get(x_207, 1); lean_inc(x_210); -x_211 = lean_unbox(x_210); -lean_dec(x_210); -if (x_211 == 0) +lean_dec(x_207); +lean_inc(x_9); +lean_inc(x_33); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_211 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_184, x_195, x_4, x_5, x_6, x_7, x_33, x_9, x_210); +if (lean_obj_tag(x_211) == 0) { -lean_object* x_212; lean_object* x_213; uint8_t x_214; uint8_t x_215; -x_212 = lean_ctor_get(x_209, 1); +lean_object* x_212; uint8_t x_213; +x_212 = lean_ctor_get(x_211, 0); lean_inc(x_212); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_213 = x_209; -} else { - lean_dec_ref(x_209); - x_213 = lean_box(0); -} -x_214 = 1; -x_215 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_214); -if (x_215 == 0) +x_213 = lean_unbox(x_212); +lean_dec(x_212); +if (x_213 == 0) { -lean_object* x_216; lean_object* x_217; -lean_dec(x_31); +lean_object* x_214; lean_object* x_215; uint8_t x_216; uint8_t x_217; +x_214 = lean_ctor_get(x_211, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_215 = x_211; +} else { + lean_dec_ref(x_211); + x_215 = lean_box(0); +} +x_216 = 1; +x_217 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_216); +if (x_217 == 0) +{ +lean_object* x_218; lean_object* x_219; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_216 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_217 = lean_alloc_ctor(0, 2, 0); +x_218 = lean_box(0); +if (lean_is_scalar(x_215)) { + x_219 = lean_alloc_ctor(0, 2, 0); } else { - x_217 = x_213; + x_219 = x_215; } -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_212); -return x_217; +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_214); +return x_219; } else { -lean_object* x_218; -lean_dec(x_213); -x_218 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_31, x_9, x_212); -return x_218; +lean_object* x_220; +lean_dec(x_215); +x_220 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_33, x_9, x_214); +return x_220; } } else { -lean_object* x_219; lean_object* x_220; -x_219 = lean_ctor_get(x_209, 1); -lean_inc(x_219); -lean_dec(x_209); -x_220 = lean_box(0); -x_3 = x_220; -x_8 = x_31; -x_10 = x_219; +lean_object* x_221; lean_object* x_222; +x_221 = lean_ctor_get(x_211, 1); +lean_inc(x_221); +lean_dec(x_211); +x_222 = lean_box(0); +x_3 = x_222; +x_8 = x_33; +x_10 = x_221; goto _start; } } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_31); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_222 = lean_ctor_get(x_209, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_209, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_224 = x_209; +x_224 = lean_ctor_get(x_211, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_211, 1); +lean_inc(x_225); +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_209); - x_224 = lean_box(0); + lean_dec_ref(x_211); + x_226 = lean_box(0); } -if (lean_is_scalar(x_224)) { - x_225 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_226)) { + x_227 = lean_alloc_ctor(1, 2, 0); } else { - x_225 = x_224; + x_227 = x_226; } -lean_ctor_set(x_225, 0, x_222); -lean_ctor_set(x_225, 1, x_223); -return x_225; +lean_ctor_set(x_227, 0, x_224); +lean_ctor_set(x_227, 1, x_225); +return x_227; } } else { -lean_object* x_226; lean_object* x_227; -x_226 = lean_ctor_get(x_205, 1); -lean_inc(x_226); -lean_dec(x_205); -x_227 = lean_box(0); -x_3 = x_227; -x_8 = x_31; -x_10 = x_226; +lean_object* x_228; lean_object* x_229; +x_228 = lean_ctor_get(x_207, 1); +lean_inc(x_228); +lean_dec(x_207); +x_229 = lean_box(0); +x_3 = x_229; +x_8 = x_33; +x_10 = x_228; goto _start; } } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_31); +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_229 = lean_ctor_get(x_205, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_205, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_205)) { - lean_ctor_release(x_205, 0); - lean_ctor_release(x_205, 1); - x_231 = x_205; +x_231 = lean_ctor_get(x_207, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_207, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_233 = x_207; } else { - lean_dec_ref(x_205); - x_231 = lean_box(0); + lean_dec_ref(x_207); + x_233 = lean_box(0); } -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); } else { - x_232 = x_231; + x_234 = x_233; } -lean_ctor_set(x_232, 0, x_229); -lean_ctor_set(x_232, 1, x_230); -return x_232; +lean_ctor_set(x_234, 0, x_231); +lean_ctor_set(x_234, 1, x_232); +return x_234; } } else { -lean_object* x_233; lean_object* x_234; -lean_dec(x_185); -x_233 = lean_ctor_get(x_201, 1); -lean_inc(x_233); -lean_dec(x_201); -x_234 = lean_box(0); -x_3 = x_234; -x_8 = x_31; -x_10 = x_233; +lean_object* x_235; lean_object* x_236; +lean_dec(x_187); +x_235 = lean_ctor_get(x_203, 1); +lean_inc(x_235); +lean_dec(x_203); +x_236 = lean_box(0); +x_3 = x_236; +x_8 = x_33; +x_10 = x_235; goto _start; } } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -lean_dec(x_185); -lean_dec(x_31); +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_187); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_236 = lean_ctor_get(x_201, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_201, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_238 = x_201; +x_238 = lean_ctor_get(x_203, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_203, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_240 = x_203; } else { - lean_dec_ref(x_201); - x_238 = lean_box(0); + lean_dec_ref(x_203); + x_240 = lean_box(0); } -if (lean_is_scalar(x_238)) { - x_239 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); } else { - x_239 = x_238; + x_241 = x_240; } -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_237); -return x_239; +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +return x_241; } } else { -lean_object* x_240; lean_object* x_241; -lean_dec(x_185); -x_240 = lean_ctor_get(x_197, 1); -lean_inc(x_240); -lean_dec(x_197); -x_241 = lean_box(0); -x_3 = x_241; -x_8 = x_31; -x_10 = x_240; +lean_object* x_242; lean_object* x_243; +lean_dec(x_187); +x_242 = lean_ctor_get(x_199, 1); +lean_inc(x_242); +lean_dec(x_199); +x_243 = lean_box(0); +x_3 = x_243; +x_8 = x_33; +x_10 = x_242; goto _start; } } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_dec(x_185); -lean_dec(x_31); +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_187); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_243 = lean_ctor_get(x_197, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_197, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_245 = x_197; +x_245 = lean_ctor_get(x_199, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_199, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + lean_ctor_release(x_199, 1); + x_247 = x_199; } else { - lean_dec_ref(x_197); - x_245 = lean_box(0); + lean_dec_ref(x_199); + x_247 = lean_box(0); } -if (lean_is_scalar(x_245)) { - x_246 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_247)) { + x_248 = lean_alloc_ctor(1, 2, 0); } else { - x_246 = x_245; + x_248 = x_247; } -lean_ctor_set(x_246, 0, x_243); -lean_ctor_set(x_246, 1, x_244); -return x_246; -} -} -else -{ -lean_object* x_247; lean_object* x_248; -lean_dec(x_185); -lean_dec(x_31); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_247 = lean_box(0); -if (lean_is_scalar(x_190)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_190; -} -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_189); +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); return x_248; } } else { lean_object* x_249; lean_object* x_250; -lean_dec(x_185); -x_249 = lean_ctor_get(x_186, 1); -lean_inc(x_249); -lean_dec(x_186); -x_250 = lean_box(0); -x_3 = x_250; -x_8 = x_31; -x_10 = x_249; +lean_dec(x_187); +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_249 = lean_box(0); +if (lean_is_scalar(x_192)) { + x_250 = lean_alloc_ctor(0, 2, 0); +} else { + x_250 = x_192; +} +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_191); +return x_250; +} +} +else +{ +lean_object* x_251; lean_object* x_252; +lean_dec(x_187); +x_251 = lean_ctor_get(x_188, 1); +lean_inc(x_251); +lean_dec(x_188); +x_252 = lean_box(0); +x_3 = x_252; +x_8 = x_33; +x_10 = x_251; goto _start; } } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -lean_dec(x_185); -lean_dec(x_31); +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_187); +lean_dec(x_33); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_252 = lean_ctor_get(x_186, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_186, 1); -lean_inc(x_253); -if (lean_is_exclusive(x_186)) { - lean_ctor_release(x_186, 0); - lean_ctor_release(x_186, 1); - x_254 = x_186; +x_254 = lean_ctor_get(x_188, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_188, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_256 = x_188; } else { - lean_dec_ref(x_186); - x_254 = lean_box(0); + lean_dec_ref(x_188); + x_256 = lean_box(0); } -if (lean_is_scalar(x_254)) { - x_255 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); } else { - x_255 = x_254; + x_257 = x_256; } -lean_ctor_set(x_255, 0, x_252); -lean_ctor_set(x_255, 1, x_253); -return x_255; -} -} -else -{ -lean_object* x_256; lean_object* x_257; -lean_dec(x_31); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_256 = lean_box(0); -x_257 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_257, 0, x_256); -lean_ctor_set(x_257, 1, x_179); +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); return x_257; } } +else +{ +lean_object* x_258; lean_object* x_259; +lean_dec(x_33); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_258 = lean_box(0); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_181); +return x_259; +} +} } else { -lean_object* x_258; +lean_object* x_260; +lean_dec(x_27); lean_dec(x_25); lean_dec(x_24); lean_dec(x_23); @@ -14777,31 +14983,36 @@ lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -x_258 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_260 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_258; +return x_260; } } else { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; -x_259 = lean_ctor_get(x_8, 0); -x_260 = lean_ctor_get(x_8, 1); -x_261 = lean_ctor_get(x_8, 2); -x_262 = lean_ctor_get(x_8, 3); -x_263 = lean_ctor_get(x_8, 4); -x_264 = lean_ctor_get(x_8, 5); -x_265 = lean_ctor_get(x_8, 6); -x_266 = lean_ctor_get(x_8, 7); -x_267 = lean_ctor_get(x_8, 8); -x_268 = lean_ctor_get(x_8, 9); -x_269 = lean_ctor_get(x_8, 10); -x_270 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; uint8_t x_274; lean_object* x_275; lean_object* x_276; uint8_t x_277; +x_261 = lean_ctor_get(x_8, 0); +x_262 = lean_ctor_get(x_8, 1); +x_263 = lean_ctor_get(x_8, 2); +x_264 = lean_ctor_get(x_8, 3); +x_265 = lean_ctor_get(x_8, 4); +x_266 = lean_ctor_get(x_8, 5); +x_267 = lean_ctor_get(x_8, 6); +x_268 = lean_ctor_get(x_8, 7); +x_269 = lean_ctor_get(x_8, 8); +x_270 = lean_ctor_get(x_8, 9); +x_271 = lean_ctor_get(x_8, 10); +x_272 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_273 = lean_ctor_get(x_8, 11); +x_274 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_273); +lean_inc(x_271); +lean_inc(x_270); lean_inc(x_269); lean_inc(x_268); lean_inc(x_267); @@ -14811,150 +15022,134 @@ lean_inc(x_264); lean_inc(x_263); lean_inc(x_262); lean_inc(x_261); -lean_inc(x_260); -lean_inc(x_259); lean_dec(x_8); -x_271 = l_Lean_replaceRef(x_12, x_264); -lean_dec(x_264); +x_275 = l_Lean_replaceRef(x_12, x_266); +lean_dec(x_266); lean_dec(x_12); +lean_inc(x_273); +lean_inc(x_271); +lean_inc(x_270); lean_inc(x_269); lean_inc(x_268); lean_inc(x_267); -lean_inc(x_266); +lean_inc(x_275); lean_inc(x_265); -lean_inc(x_271); +lean_inc(x_264); lean_inc(x_263); lean_inc(x_262); lean_inc(x_261); -lean_inc(x_260); -lean_inc(x_259); -x_272 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_272, 0, x_259); -lean_ctor_set(x_272, 1, x_260); -lean_ctor_set(x_272, 2, x_261); -lean_ctor_set(x_272, 3, x_262); -lean_ctor_set(x_272, 4, x_263); -lean_ctor_set(x_272, 5, x_271); -lean_ctor_set(x_272, 6, x_265); -lean_ctor_set(x_272, 7, x_266); -lean_ctor_set(x_272, 8, x_267); -lean_ctor_set(x_272, 9, x_268); -lean_ctor_set(x_272, 10, x_269); -lean_ctor_set_uint8(x_272, sizeof(void*)*11, x_270); -x_273 = lean_nat_dec_eq(x_262, x_263); -if (x_273 == 0) +x_276 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_276, 0, x_261); +lean_ctor_set(x_276, 1, x_262); +lean_ctor_set(x_276, 2, x_263); +lean_ctor_set(x_276, 3, x_264); +lean_ctor_set(x_276, 4, x_265); +lean_ctor_set(x_276, 5, x_275); +lean_ctor_set(x_276, 6, x_267); +lean_ctor_set(x_276, 7, x_268); +lean_ctor_set(x_276, 8, x_269); +lean_ctor_set(x_276, 9, x_270); +lean_ctor_set(x_276, 10, x_271); +lean_ctor_set(x_276, 11, x_273); +lean_ctor_set_uint8(x_276, sizeof(void*)*12, x_272); +lean_ctor_set_uint8(x_276, sizeof(void*)*12 + 1, x_274); +x_277 = lean_nat_dec_eq(x_264, x_265); +if (x_277 == 0) { -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; uint8_t x_282; -lean_dec(x_272); -x_274 = lean_unsigned_to_nat(1u); -x_275 = lean_nat_add(x_262, x_274); -lean_dec(x_262); -x_276 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_276, 0, x_259); -lean_ctor_set(x_276, 1, x_260); -lean_ctor_set(x_276, 2, x_261); -lean_ctor_set(x_276, 3, x_275); -lean_ctor_set(x_276, 4, x_263); -lean_ctor_set(x_276, 5, x_271); -lean_ctor_set(x_276, 6, x_265); -lean_ctor_set(x_276, 7, x_266); -lean_ctor_set(x_276, 8, x_267); -lean_ctor_set(x_276, 9, x_268); -lean_ctor_set(x_276, 10, x_269); -lean_ctor_set_uint8(x_276, sizeof(void*)*11, x_270); -x_277 = lean_st_ref_get(x_5, x_13); -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_280 = 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; uint8_t x_286; +lean_dec(x_276); +x_278 = lean_unsigned_to_nat(1u); +x_279 = lean_nat_add(x_264, x_278); +lean_dec(x_264); +x_280 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_280, 0, x_261); +lean_ctor_set(x_280, 1, x_262); +lean_ctor_set(x_280, 2, x_263); +lean_ctor_set(x_280, 3, x_279); +lean_ctor_set(x_280, 4, x_265); +lean_ctor_set(x_280, 5, x_275); +lean_ctor_set(x_280, 6, x_267); +lean_ctor_set(x_280, 7, x_268); +lean_ctor_set(x_280, 8, x_269); +lean_ctor_set(x_280, 9, x_270); +lean_ctor_set(x_280, 10, x_271); +lean_ctor_set(x_280, 11, x_273); +lean_ctor_set_uint8(x_280, sizeof(void*)*12, x_272); +lean_ctor_set_uint8(x_280, sizeof(void*)*12 + 1, x_274); +x_281 = lean_st_ref_get(x_5, x_13); +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +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; } else { - lean_dec_ref(x_277); - x_280 = lean_box(0); + lean_dec_ref(x_281); + x_284 = lean_box(0); } -x_281 = lean_ctor_get(x_278, 2); -lean_inc(x_281); -lean_dec(x_278); -x_282 = l_List_isEmpty___rarg(x_281); -lean_dec(x_281); -if (x_282 == 0) +x_285 = lean_ctor_get(x_282, 2); +lean_inc(x_285); +lean_dec(x_282); +x_286 = l_List_isEmpty___rarg(x_285); +lean_dec(x_285); +if (x_286 == 0) { -uint8_t x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -lean_dec(x_280); -x_283 = 0; -x_284 = lean_box(x_283); -x_285 = lean_box(x_283); -x_286 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_286, 0, x_284); -lean_closure_set(x_286, 1, x_285); +uint8_t x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_284); +x_287 = 0; +x_288 = lean_box(x_287); +x_289 = lean_box(x_287); +x_290 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_290, 0, x_288); +lean_closure_set(x_290, 1, x_289); lean_inc(x_9); -lean_inc(x_276); +lean_inc(x_280); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_287 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_283, x_283, x_4, x_5, x_6, x_7, x_276, x_9, x_279); -if (lean_obj_tag(x_287) == 0) +x_291 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_287, x_287, x_4, x_5, x_6, x_7, x_280, x_9, x_283); +if (lean_obj_tag(x_291) == 0) { -lean_object* x_288; uint8_t x_289; -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) -{ -lean_object* x_290; lean_object* x_291; uint8_t x_292; uint8_t x_293; -x_290 = lean_ctor_get(x_287, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_291 = x_287; -} else { - lean_dec_ref(x_287); - x_291 = lean_box(0); -} -x_292 = 0; -x_293 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_292); +lean_object* x_292; uint8_t x_293; +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +x_293 = lean_unbox(x_292); +lean_dec(x_292); if (x_293 == 0) { -uint8_t x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -lean_dec(x_291); -x_294 = 1; -x_295 = lean_box(x_294); -x_296 = lean_box(x_283); -x_297 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); -lean_closure_set(x_297, 0, x_295); -lean_closure_set(x_297, 1, x_296); +lean_object* x_294; lean_object* x_295; uint8_t x_296; uint8_t x_297; +x_294 = lean_ctor_get(x_291, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_295 = x_291; +} else { + lean_dec_ref(x_291); + x_295 = lean_box(0); +} +x_296 = 0; +x_297 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_296); +if (x_297 == 0) +{ +uint8_t x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_dec(x_295); +x_298 = 1; +x_299 = lean_box(x_298); +x_300 = lean_box(x_287); +x_301 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___boxed), 9, 2); +lean_closure_set(x_301, 0, x_299); +lean_closure_set(x_301, 1, x_300); lean_inc(x_9); -lean_inc(x_276); +lean_inc(x_280); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_298 = l_Lean_Elab_Term_withoutPostponing___rarg(x_297, x_4, x_5, x_6, x_7, x_276, x_9, x_290); -if (lean_obj_tag(x_298) == 0) -{ -lean_object* x_299; uint8_t x_300; -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_unbox(x_299); -lean_dec(x_299); -if (x_300 == 0) -{ -lean_object* x_301; lean_object* x_302; -x_301 = lean_ctor_get(x_298, 1); -lean_inc(x_301); -lean_dec(x_298); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_302 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_276, x_9, x_301); +x_302 = l_Lean_Elab_Term_withoutPostponing___rarg(x_301, x_4, x_5, x_6, x_7, x_280, x_9, x_294); if (lean_obj_tag(x_302) == 0) { lean_object* x_303; uint8_t x_304; @@ -14969,12 +15164,11 @@ x_305 = lean_ctor_get(x_302, 1); lean_inc(x_305); lean_dec(x_302); lean_inc(x_9); -lean_inc(x_276); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_306 = l_Lean_Elab_Term_withoutPostponing___rarg(x_286, x_4, x_5, x_6, x_7, x_276, x_9, x_305); +x_306 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(x_4, x_5, x_6, x_7, x_280, x_9, x_305); if (lean_obj_tag(x_306) == 0) { lean_object* x_307; uint8_t x_308; @@ -14989,12 +15183,12 @@ x_309 = lean_ctor_get(x_306, 1); lean_inc(x_309); lean_dec(x_306); lean_inc(x_9); -lean_inc(x_276); +lean_inc(x_280); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_310 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_283, x_294, x_4, x_5, x_6, x_7, x_276, x_9, x_309); +x_310 = l_Lean_Elab_Term_withoutPostponing___rarg(x_290, x_4, x_5, x_6, x_7, x_280, x_9, x_309); if (lean_obj_tag(x_310) == 0) { lean_object* x_311; uint8_t x_312; @@ -15004,363 +15198,384 @@ x_312 = lean_unbox(x_311); lean_dec(x_311); if (x_312 == 0) { -lean_object* x_313; lean_object* x_314; uint8_t x_315; uint8_t x_316; +lean_object* x_313; lean_object* x_314; x_313 = lean_ctor_get(x_310, 1); lean_inc(x_313); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - x_314 = x_310; -} else { - lean_dec_ref(x_310); - x_314 = lean_box(0); -} -x_315 = 1; -x_316 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_315); +lean_dec(x_310); +lean_inc(x_9); +lean_inc(x_280); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_314 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(x_287, x_298, x_4, x_5, x_6, x_7, x_280, x_9, x_313); +if (lean_obj_tag(x_314) == 0) +{ +lean_object* x_315; uint8_t x_316; +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_unbox(x_315); +lean_dec(x_315); if (x_316 == 0) { -lean_object* x_317; lean_object* x_318; -lean_dec(x_276); +lean_object* x_317; lean_object* x_318; uint8_t x_319; uint8_t x_320; +x_317 = lean_ctor_get(x_314, 1); +lean_inc(x_317); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_318 = x_314; +} else { + lean_dec_ref(x_314); + x_318 = lean_box(0); +} +x_319 = 1; +x_320 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_319); +if (x_320 == 0) +{ +lean_object* x_321; lean_object* x_322; +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_317 = lean_box(0); -if (lean_is_scalar(x_314)) { - x_318 = lean_alloc_ctor(0, 2, 0); -} else { - x_318 = x_314; -} -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_313); -return x_318; -} -else -{ -lean_object* x_319; -lean_dec(x_314); -x_319 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_276, x_9, x_313); -return x_319; -} -} -else -{ -lean_object* x_320; lean_object* x_321; -x_320 = lean_ctor_get(x_310, 1); -lean_inc(x_320); -lean_dec(x_310); x_321 = lean_box(0); -x_3 = x_321; -x_8 = x_276; -x_10 = x_320; +if (lean_is_scalar(x_318)) { + x_322 = lean_alloc_ctor(0, 2, 0); +} else { + x_322 = x_318; +} +lean_ctor_set(x_322, 0, x_321); +lean_ctor_set(x_322, 1, x_317); +return x_322; +} +else +{ +lean_object* x_323; +lean_dec(x_318); +x_323 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(x_2, x_4, x_5, x_6, x_7, x_280, x_9, x_317); +return x_323; +} +} +else +{ +lean_object* x_324; lean_object* x_325; +x_324 = lean_ctor_get(x_314, 1); +lean_inc(x_324); +lean_dec(x_314); +x_325 = lean_box(0); +x_3 = x_325; +x_8 = x_280; +x_10 = x_324; goto _start; } } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -lean_dec(x_276); +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_323 = lean_ctor_get(x_310, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_310, 1); -lean_inc(x_324); +x_327 = lean_ctor_get(x_314, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_314, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_329 = x_314; +} else { + lean_dec_ref(x_314); + x_329 = lean_box(0); +} +if (lean_is_scalar(x_329)) { + x_330 = lean_alloc_ctor(1, 2, 0); +} else { + x_330 = x_329; +} +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_328); +return x_330; +} +} +else +{ +lean_object* x_331; lean_object* x_332; +x_331 = lean_ctor_get(x_310, 1); +lean_inc(x_331); +lean_dec(x_310); +x_332 = lean_box(0); +x_3 = x_332; +x_8 = x_280; +x_10 = x_331; +goto _start; +} +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +lean_dec(x_280); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_334 = lean_ctor_get(x_310, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_310, 1); +lean_inc(x_335); if (lean_is_exclusive(x_310)) { lean_ctor_release(x_310, 0); lean_ctor_release(x_310, 1); - x_325 = x_310; + x_336 = x_310; } else { lean_dec_ref(x_310); - x_325 = lean_box(0); + x_336 = lean_box(0); } -if (lean_is_scalar(x_325)) { - x_326 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_336)) { + x_337 = lean_alloc_ctor(1, 2, 0); } else { - x_326 = x_325; + x_337 = x_336; } -lean_ctor_set(x_326, 0, x_323); -lean_ctor_set(x_326, 1, x_324); -return x_326; +lean_ctor_set(x_337, 0, x_334); +lean_ctor_set(x_337, 1, x_335); +return x_337; } } else { -lean_object* x_327; lean_object* x_328; -x_327 = lean_ctor_get(x_306, 1); -lean_inc(x_327); +lean_object* x_338; lean_object* x_339; +lean_dec(x_290); +x_338 = lean_ctor_get(x_306, 1); +lean_inc(x_338); lean_dec(x_306); -x_328 = lean_box(0); -x_3 = x_328; -x_8 = x_276; -x_10 = x_327; +x_339 = lean_box(0); +x_3 = x_339; +x_8 = x_280; +x_10 = x_338; goto _start; } } else { -lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -lean_dec(x_276); +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +lean_dec(x_290); +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_330 = lean_ctor_get(x_306, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_306, 1); -lean_inc(x_331); +x_341 = lean_ctor_get(x_306, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_306, 1); +lean_inc(x_342); if (lean_is_exclusive(x_306)) { lean_ctor_release(x_306, 0); lean_ctor_release(x_306, 1); - x_332 = x_306; + x_343 = x_306; } else { lean_dec_ref(x_306); - x_332 = lean_box(0); + x_343 = lean_box(0); } -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_343)) { + x_344 = lean_alloc_ctor(1, 2, 0); } else { - x_333 = x_332; + x_344 = x_343; } -lean_ctor_set(x_333, 0, x_330); -lean_ctor_set(x_333, 1, x_331); -return x_333; +lean_ctor_set(x_344, 0, x_341); +lean_ctor_set(x_344, 1, x_342); +return x_344; } } else { -lean_object* x_334; lean_object* x_335; -lean_dec(x_286); -x_334 = lean_ctor_get(x_302, 1); -lean_inc(x_334); +lean_object* x_345; lean_object* x_346; +lean_dec(x_290); +x_345 = lean_ctor_get(x_302, 1); +lean_inc(x_345); lean_dec(x_302); -x_335 = lean_box(0); -x_3 = x_335; -x_8 = x_276; -x_10 = x_334; +x_346 = lean_box(0); +x_3 = x_346; +x_8 = x_280; +x_10 = x_345; goto _start; } } else { -lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -lean_dec(x_286); -lean_dec(x_276); +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_290); +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_337 = lean_ctor_get(x_302, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_302, 1); -lean_inc(x_338); +x_348 = lean_ctor_get(x_302, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_302, 1); +lean_inc(x_349); if (lean_is_exclusive(x_302)) { lean_ctor_release(x_302, 0); lean_ctor_release(x_302, 1); - x_339 = x_302; + x_350 = x_302; } else { lean_dec_ref(x_302); - x_339 = lean_box(0); + x_350 = lean_box(0); } -if (lean_is_scalar(x_339)) { - x_340 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_350)) { + x_351 = lean_alloc_ctor(1, 2, 0); } else { - x_340 = x_339; + x_351 = x_350; } -lean_ctor_set(x_340, 0, x_337); -lean_ctor_set(x_340, 1, x_338); -return x_340; +lean_ctor_set(x_351, 0, x_348); +lean_ctor_set(x_351, 1, x_349); +return x_351; } } else { -lean_object* x_341; lean_object* x_342; -lean_dec(x_286); -x_341 = lean_ctor_get(x_298, 1); -lean_inc(x_341); -lean_dec(x_298); -x_342 = lean_box(0); -x_3 = x_342; -x_8 = x_276; -x_10 = x_341; -goto _start; -} -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -lean_dec(x_286); -lean_dec(x_276); +lean_object* x_352; lean_object* x_353; +lean_dec(x_290); +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_344 = lean_ctor_get(x_298, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_298, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_298)) { - lean_ctor_release(x_298, 0); - lean_ctor_release(x_298, 1); - x_346 = x_298; +x_352 = lean_box(0); +if (lean_is_scalar(x_295)) { + x_353 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_298); - x_346 = lean_box(0); + x_353 = x_295; } -if (lean_is_scalar(x_346)) { - x_347 = lean_alloc_ctor(1, 2, 0); -} else { - x_347 = x_346; -} -lean_ctor_set(x_347, 0, x_344); -lean_ctor_set(x_347, 1, x_345); -return x_347; +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_294); +return x_353; } } else { -lean_object* x_348; lean_object* x_349; -lean_dec(x_286); -lean_dec(x_276); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_348 = lean_box(0); -if (lean_is_scalar(x_291)) { - x_349 = lean_alloc_ctor(0, 2, 0); -} else { - x_349 = x_291; -} -lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_290); -return x_349; -} -} -else -{ -lean_object* x_350; lean_object* x_351; -lean_dec(x_286); -x_350 = lean_ctor_get(x_287, 1); -lean_inc(x_350); -lean_dec(x_287); -x_351 = lean_box(0); -x_3 = x_351; -x_8 = x_276; -x_10 = x_350; -goto _start; -} -} -else -{ -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec(x_286); -lean_dec(x_276); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_353 = lean_ctor_get(x_287, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_287, 1); +lean_object* x_354; lean_object* x_355; +lean_dec(x_290); +x_354 = lean_ctor_get(x_291, 1); lean_inc(x_354); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_355 = x_287; -} else { - lean_dec_ref(x_287); - x_355 = lean_box(0); -} -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(1, 2, 0); -} else { - x_356 = x_355; -} -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_354); -return x_356; +lean_dec(x_291); +x_355 = lean_box(0); +x_3 = x_355; +x_8 = x_280; +x_10 = x_354; +goto _start; } } else { -lean_object* x_357; lean_object* x_358; -lean_dec(x_276); +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +lean_dec(x_290); +lean_dec(x_280); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_357 = lean_box(0); -if (lean_is_scalar(x_280)) { - x_358 = lean_alloc_ctor(0, 2, 0); +x_357 = lean_ctor_get(x_291, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_291, 1); +lean_inc(x_358); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_359 = x_291; } else { - x_358 = x_280; + lean_dec_ref(x_291); + x_359 = lean_box(0); } -lean_ctor_set(x_358, 0, x_357); -lean_ctor_set(x_358, 1, x_279); -return x_358; +if (lean_is_scalar(x_359)) { + x_360 = lean_alloc_ctor(1, 2, 0); +} else { + x_360 = x_359; +} +lean_ctor_set(x_360, 0, x_357); +lean_ctor_set(x_360, 1, x_358); +return x_360; } } else { -lean_object* x_359; +lean_object* x_361; lean_object* x_362; +lean_dec(x_280); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_361 = lean_box(0); +if (lean_is_scalar(x_284)) { + x_362 = lean_alloc_ctor(0, 2, 0); +} else { + x_362 = x_284; +} +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_283); +return x_362; +} +} +else +{ +lean_object* x_363; +lean_dec(x_273); +lean_dec(x_271); +lean_dec(x_270); lean_dec(x_269); lean_dec(x_268); lean_dec(x_267); -lean_dec(x_266); lean_dec(x_265); +lean_dec(x_264); lean_dec(x_263); lean_dec(x_262); lean_dec(x_261); -lean_dec(x_260); -lean_dec(x_259); -x_359 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(x_271, x_4, x_5, x_6, x_7, x_272, x_9, x_13); +x_363 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(x_275, x_4, x_5, x_6, x_7, x_276, x_9, x_13); lean_dec(x_9); -lean_dec(x_272); +lean_dec(x_276); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_359; +return x_363; } } } else { -uint8_t x_360; +uint8_t x_364; 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_360 = !lean_is_exclusive(x_11); -if (x_360 == 0) +x_364 = !lean_is_exclusive(x_11); +if (x_364 == 0) { return x_11; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_11, 0); -x_362 = lean_ctor_get(x_11, 1); -lean_inc(x_362); -lean_inc(x_361); +lean_object* x_365; lean_object* x_366; lean_object* x_367; +x_365 = lean_ctor_get(x_11, 0); +x_366 = lean_ctor_get(x_11, 1); +lean_inc(x_366); +lean_inc(x_365); lean_dec(x_11); -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; +x_367 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_367, 0, x_365); +lean_ctor_set(x_367, 1, x_366); +return x_367; } } } @@ -16066,7 +16281,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ _start: { uint8_t x_4; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); if (x_4 == 0) { if (x_2 == 0) @@ -17266,7 +17481,7 @@ return x_41; } else { -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; uint8_t x_53; lean_object* x_54; lean_object* x_55; +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; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; x_42 = lean_ctor_get(x_8, 0); x_43 = lean_ctor_get(x_8, 1); x_44 = lean_ctor_get(x_8, 2); @@ -17278,7 +17493,10 @@ x_49 = lean_ctor_get(x_8, 7); x_50 = lean_ctor_get(x_8, 8); x_51 = lean_ctor_get(x_8, 9); x_52 = lean_ctor_get(x_8, 10); -x_53 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_53 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_54 = lean_ctor_get(x_8, 11); +x_55 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_54); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); @@ -17291,83 +17509,85 @@ lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_dec(x_8); -x_54 = l_Lean_replaceRef(x_23, x_47); +x_56 = l_Lean_replaceRef(x_23, x_47); lean_dec(x_47); -x_55 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_55, 0, x_42); -lean_ctor_set(x_55, 1, x_43); -lean_ctor_set(x_55, 2, x_44); -lean_ctor_set(x_55, 3, x_45); -lean_ctor_set(x_55, 4, x_46); -lean_ctor_set(x_55, 5, x_54); -lean_ctor_set(x_55, 6, x_48); -lean_ctor_set(x_55, 7, x_49); -lean_ctor_set(x_55, 8, x_50); -lean_ctor_set(x_55, 9, x_51); -lean_ctor_set(x_55, 10, x_52); -lean_ctor_set_uint8(x_55, sizeof(void*)*11, x_53); +x_57 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_57, 0, x_42); +lean_ctor_set(x_57, 1, x_43); +lean_ctor_set(x_57, 2, x_44); +lean_ctor_set(x_57, 3, x_45); +lean_ctor_set(x_57, 4, x_46); +lean_ctor_set(x_57, 5, x_56); +lean_ctor_set(x_57, 6, x_48); +lean_ctor_set(x_57, 7, x_49); +lean_ctor_set(x_57, 8, x_50); +lean_ctor_set(x_57, 9, x_51); +lean_ctor_set(x_57, 10, x_52); +lean_ctor_set(x_57, 11, x_54); +lean_ctor_set_uint8(x_57, sizeof(void*)*12, x_53); +lean_ctor_set_uint8(x_57, sizeof(void*)*12 + 1, x_55); switch (lean_obj_tag(x_24)) { case 0: { -lean_object* x_56; +lean_object* x_58; lean_dec(x_23); -x_56 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(x_1, x_4, x_5, x_6, x_7, x_55, x_9, x_21); -return x_56; +x_58 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(x_1, x_4, x_5, x_6, x_7, x_57, x_9, x_21); +return x_58; } case 1: { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_23); -x_57 = lean_ctor_get(x_24, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_24, 2); -lean_inc(x_58); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_24, 2); +lean_inc(x_60); lean_dec(x_24); lean_inc(x_1); -x_59 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__2), 10, 3); -lean_closure_set(x_59, 0, x_58); -lean_closure_set(x_59, 1, x_57); -lean_closure_set(x_59, 2, x_1); -x_60 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_59, x_4, x_5, x_6, x_7, x_55, x_9, x_21); -return x_60; +x_61 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__2), 10, 3); +lean_closure_set(x_61, 0, x_60); +lean_closure_set(x_61, 1, x_59); +lean_closure_set(x_61, 2, x_1); +x_62 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_61, x_4, x_5, x_6, x_7, x_57, x_9, x_21); +return x_62; } case 2: { lean_dec(x_23); if (x_3 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_dec(x_1); -x_61 = lean_ctor_get(x_24, 1); -lean_inc(x_61); +x_63 = lean_ctor_get(x_24, 1); +lean_inc(x_63); lean_dec(x_24); -x_62 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1; -x_63 = l_Lean_Elab_Term_withSavedContext___rarg(x_61, x_62, x_4, x_5, x_6, x_7, x_55, x_9, x_21); -return x_63; +x_64 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1; +x_65 = l_Lean_Elab_Term_withSavedContext___rarg(x_63, x_64, x_4, x_5, x_6, x_7, x_57, x_9, x_21); +return x_65; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_24, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_24, 1); -lean_inc(x_65); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_24, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_24, 1); +lean_inc(x_67); lean_dec(x_24); -x_66 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__3), 9, 2); -lean_closure_set(x_66, 0, x_1); -lean_closure_set(x_66, 1, x_64); -x_67 = l_Lean_Elab_Term_withSavedContext___rarg(x_65, x_66, x_4, x_5, x_6, x_7, x_55, x_9, x_21); -return x_67; +x_68 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__3), 9, 2); +lean_closure_set(x_68, 0, x_1); +lean_closure_set(x_68, 1, x_66); +x_69 = l_Lean_Elab_Term_withSavedContext___rarg(x_67, x_68, x_4, x_5, x_6, x_7, x_57, x_9, x_21); +return x_69; } } default: { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_24, 0); -lean_inc(x_68); +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_24, 0); +lean_inc(x_70); lean_dec(x_24); -x_69 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed(x_68, x_23, x_1, x_2, x_4, x_5, x_6, x_7, x_55, x_9, x_21); -return x_69; +x_71 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed(x_70, x_23, x_1, x_2, x_4, x_5, x_6, x_7, x_57, x_9, x_21); +return x_71; } } } @@ -18714,7 +18934,1149 @@ return x_118; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___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_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_runTactic___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_1); +x_13 = lean_apply_1(x_1, x_3); +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_is_exclusive(x_10); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_6); +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_10, 2); +x_19 = lean_ctor_get(x_10, 5); +x_20 = lean_ctor_get(x_6, 8); +x_21 = l_Lean_replaceRef(x_15, x_19); +lean_dec(x_19); +lean_inc(x_18); +lean_ctor_set(x_10, 5, x_21); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_22 = lean_box(0); +lean_ctor_set(x_6, 8, x_22); +x_23 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_25, 0, x_29); +x_30 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set(x_20, 0, x_33); +x_34 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_25); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_25, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_37, 0); +x_41 = lean_ctor_get(x_37, 1); +x_42 = lean_apply_1(x_1, x_40); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_43); +lean_dec(x_18); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +lean_free_object(x_37); +lean_dec(x_41); +lean_free_object(x_20); +x_47 = lean_box(0); +lean_ctor_set(x_25, 0, x_47); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_48 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_48; +} +else +{ +lean_object* x_49; +lean_ctor_set(x_37, 0, x_44); +x_49 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_49; +} +} +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; uint8_t x_56; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_apply_1(x_1, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_53); +lean_dec(x_18); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_51); +lean_free_object(x_20); +x_57 = lean_box(0); +lean_ctor_set(x_25, 0, x_57); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_58 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_26, 0, x_59); +x_60 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_60; +} +} +} +else +{ +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; uint8_t x_70; +x_61 = lean_ctor_get(x_26, 0); +x_62 = lean_ctor_get(x_25, 1); +lean_inc(x_62); +lean_dec(x_25); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_65 = x_61; +} else { + lean_dec_ref(x_61); + x_65 = lean_box(0); +} +x_66 = lean_apply_1(x_1, x_63); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_67); +lean_dec(x_18); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_68); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_20); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_62); +lean_ctor_set(x_26, 0, x_72); +lean_ctor_set(x_6, 8, x_26); +x_73 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +if (lean_is_scalar(x_65)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_65; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_64); +lean_ctor_set(x_26, 0, x_74); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_26); +lean_ctor_set(x_75, 1, x_62); +lean_ctor_set(x_20, 0, x_75); +x_76 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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; uint8_t x_87; +x_77 = lean_ctor_get(x_26, 0); +lean_inc(x_77); +lean_dec(x_26); +x_78 = lean_ctor_get(x_25, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_79 = x_25; +} else { + lean_dec_ref(x_25); + x_79 = 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_apply_1(x_1, x_80); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_84); +lean_dec(x_18); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_81); +lean_free_object(x_20); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_6, 8, x_90); +x_91 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +if (lean_is_scalar(x_82)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_82; +} +lean_ctor_set(x_92, 0, x_85); +lean_ctor_set(x_92, 1, x_81); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_78); +lean_ctor_set(x_20, 0, x_94); +x_95 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_95; +} +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_20, 0); +lean_inc(x_96); +lean_dec(x_20); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +x_100 = lean_box(0); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_99; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_6, 8, x_102); +x_103 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_104 = lean_ctor_get(x_97, 0); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_105 = x_97; +} else { + lean_dec_ref(x_97); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_96, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_107 = x_96; +} else { + lean_dec_ref(x_96); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_110 = x_104; +} else { + lean_dec_ref(x_104); + x_110 = lean_box(0); +} +x_111 = lean_apply_1(x_1, x_108); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_112); +lean_dec(x_18); +x_115 = lean_unbox(x_114); +lean_dec(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_109); +x_116 = lean_box(0); +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); +if (lean_is_scalar(x_105)) { + x_118 = lean_alloc_ctor(1, 1, 0); +} else { + x_118 = x_105; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_6, 8, x_118); +x_119 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_110; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_109); +if (lean_is_scalar(x_105)) { + x_121 = lean_alloc_ctor(1, 1, 0); +} else { + x_121 = x_105; +} +lean_ctor_set(x_121, 0, x_120); +if (lean_is_scalar(x_107)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_107; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_106); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_6, 8, x_123); +x_124 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_124; +} +} +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; +x_125 = lean_ctor_get(x_10, 2); +x_126 = lean_ctor_get(x_10, 5); +x_127 = lean_ctor_get(x_6, 0); +x_128 = lean_ctor_get(x_6, 1); +x_129 = lean_ctor_get(x_6, 2); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_132 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_133 = lean_ctor_get(x_6, 3); +x_134 = lean_ctor_get(x_6, 4); +x_135 = lean_ctor_get(x_6, 5); +x_136 = lean_ctor_get(x_6, 6); +x_137 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_138 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_139 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_140 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_141 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_142 = lean_ctor_get(x_6, 7); +x_143 = lean_ctor_get(x_6, 8); +x_144 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_145 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_inc(x_133); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_6); +x_146 = l_Lean_replaceRef(x_15, x_126); +lean_dec(x_126); +lean_inc(x_125); +lean_ctor_set(x_10, 5, x_146); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_148, 0, x_127); +lean_ctor_set(x_148, 1, x_128); +lean_ctor_set(x_148, 2, x_129); +lean_ctor_set(x_148, 3, x_133); +lean_ctor_set(x_148, 4, x_134); +lean_ctor_set(x_148, 5, x_135); +lean_ctor_set(x_148, 6, x_136); +lean_ctor_set(x_148, 7, x_142); +lean_ctor_set(x_148, 8, x_147); +lean_ctor_set_uint8(x_148, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 9, x_145); +x_149 = lean_apply_10(x_2, x_15, x_4, x_5, x_148, x_7, x_8, x_9, x_10, x_11, x_12); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_143, 0); +lean_inc(x_150); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + x_151 = x_143; +} else { + lean_dec_ref(x_143); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) +{ +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_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +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_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +if (lean_is_scalar(x_151)) { + x_157 = lean_alloc_ctor(1, 1, 0); +} else { + x_157 = x_151; +} +lean_ctor_set(x_157, 0, x_156); +x_158 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_158, 0, x_127); +lean_ctor_set(x_158, 1, x_128); +lean_ctor_set(x_158, 2, x_129); +lean_ctor_set(x_158, 3, x_133); +lean_ctor_set(x_158, 4, x_134); +lean_ctor_set(x_158, 5, x_135); +lean_ctor_set(x_158, 6, x_136); +lean_ctor_set(x_158, 7, x_142); +lean_ctor_set(x_158, 8, x_157); +lean_ctor_set_uint8(x_158, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 9, x_145); +x_159 = lean_apply_10(x_2, x_15, x_4, x_5, x_158, x_7, x_8, x_9, x_10, x_11, x_12); +return x_159; +} +else +{ +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; uint8_t x_171; +x_160 = lean_ctor_get(x_152, 0); +lean_inc(x_160); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + x_161 = x_152; +} else { + lean_dec_ref(x_152); + x_161 = lean_box(0); +} +x_162 = lean_ctor_get(x_150, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_163 = x_150; +} else { + lean_dec_ref(x_150); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_166 = x_160; +} else { + lean_dec_ref(x_160); + x_166 = lean_box(0); +} +x_167 = lean_apply_1(x_1, x_164); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_125, x_14, x_168); +lean_dec(x_125); +x_171 = lean_unbox(x_170); +lean_dec(x_170); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_169); +lean_dec(x_166); +lean_dec(x_165); +lean_dec(x_151); +x_172 = lean_box(0); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_163; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_162); +if (lean_is_scalar(x_161)) { + x_174 = lean_alloc_ctor(1, 1, 0); +} else { + x_174 = x_161; +} +lean_ctor_set(x_174, 0, x_173); +x_175 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_175, 0, x_127); +lean_ctor_set(x_175, 1, x_128); +lean_ctor_set(x_175, 2, x_129); +lean_ctor_set(x_175, 3, x_133); +lean_ctor_set(x_175, 4, x_134); +lean_ctor_set(x_175, 5, x_135); +lean_ctor_set(x_175, 6, x_136); +lean_ctor_set(x_175, 7, x_142); +lean_ctor_set(x_175, 8, x_174); +lean_ctor_set_uint8(x_175, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 9, x_145); +x_176 = lean_apply_10(x_2, x_15, x_4, x_5, x_175, x_7, x_8, x_9, x_10, x_11, x_12); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +if (lean_is_scalar(x_166)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { + x_177 = x_166; +} +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_165); +if (lean_is_scalar(x_161)) { + x_178 = lean_alloc_ctor(1, 1, 0); +} else { + x_178 = x_161; +} +lean_ctor_set(x_178, 0, x_177); +if (lean_is_scalar(x_163)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_163; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_162); +if (lean_is_scalar(x_151)) { + x_180 = lean_alloc_ctor(1, 1, 0); +} else { + x_180 = x_151; +} +lean_ctor_set(x_180, 0, x_179); +x_181 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_181, 0, x_127); +lean_ctor_set(x_181, 1, x_128); +lean_ctor_set(x_181, 2, x_129); +lean_ctor_set(x_181, 3, x_133); +lean_ctor_set(x_181, 4, x_134); +lean_ctor_set(x_181, 5, x_135); +lean_ctor_set(x_181, 6, x_136); +lean_ctor_set(x_181, 7, x_142); +lean_ctor_set(x_181, 8, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 9, x_145); +x_182 = lean_apply_10(x_2, x_15, x_4, x_5, x_181, x_7, x_8, x_9, x_10, x_11, x_12); +return x_182; +} +} +} +} +} +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_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_183 = lean_ctor_get(x_10, 0); +x_184 = lean_ctor_get(x_10, 1); +x_185 = lean_ctor_get(x_10, 2); +x_186 = lean_ctor_get(x_10, 3); +x_187 = lean_ctor_get(x_10, 4); +x_188 = lean_ctor_get(x_10, 5); +x_189 = lean_ctor_get(x_10, 6); +x_190 = lean_ctor_get(x_10, 7); +x_191 = lean_ctor_get(x_10, 8); +x_192 = lean_ctor_get(x_10, 9); +x_193 = lean_ctor_get(x_10, 10); +x_194 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_195 = lean_ctor_get(x_10, 11); +x_196 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_195); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_10); +x_197 = lean_ctor_get(x_6, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_6, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_6, 2); +lean_inc(x_199); +x_200 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_201 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_202 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_203 = lean_ctor_get(x_6, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_6, 4); +lean_inc(x_204); +x_205 = lean_ctor_get(x_6, 5); +lean_inc(x_205); +x_206 = lean_ctor_get(x_6, 6); +lean_inc(x_206); +x_207 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_208 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_209 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_210 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_211 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_212 = lean_ctor_get(x_6, 7); +lean_inc(x_212); +x_213 = lean_ctor_get(x_6, 8); +lean_inc(x_213); +x_214 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_215 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_6, 4); + lean_ctor_release(x_6, 5); + lean_ctor_release(x_6, 6); + lean_ctor_release(x_6, 7); + lean_ctor_release(x_6, 8); + x_216 = x_6; +} else { + lean_dec_ref(x_6); + x_216 = lean_box(0); +} +x_217 = l_Lean_replaceRef(x_15, x_188); +lean_dec(x_188); +lean_inc(x_185); +x_218 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_218, 0, x_183); +lean_ctor_set(x_218, 1, x_184); +lean_ctor_set(x_218, 2, x_185); +lean_ctor_set(x_218, 3, x_186); +lean_ctor_set(x_218, 4, x_187); +lean_ctor_set(x_218, 5, x_217); +lean_ctor_set(x_218, 6, x_189); +lean_ctor_set(x_218, 7, x_190); +lean_ctor_set(x_218, 8, x_191); +lean_ctor_set(x_218, 9, x_192); +lean_ctor_set(x_218, 10, x_193); +lean_ctor_set(x_218, 11, x_195); +lean_ctor_set_uint8(x_218, sizeof(void*)*12, x_194); +lean_ctor_set_uint8(x_218, sizeof(void*)*12 + 1, x_196); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +x_219 = lean_box(0); +if (lean_is_scalar(x_216)) { + x_220 = lean_alloc_ctor(0, 9, 10); +} else { + x_220 = x_216; +} +lean_ctor_set(x_220, 0, x_197); +lean_ctor_set(x_220, 1, x_198); +lean_ctor_set(x_220, 2, x_199); +lean_ctor_set(x_220, 3, x_203); +lean_ctor_set(x_220, 4, x_204); +lean_ctor_set(x_220, 5, x_205); +lean_ctor_set(x_220, 6, x_206); +lean_ctor_set(x_220, 7, x_212); +lean_ctor_set(x_220, 8, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 9, x_215); +x_221 = lean_apply_10(x_2, x_15, x_4, x_5, x_220, x_7, x_8, x_9, x_218, x_11, x_12); +return x_221; +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + x_223 = x_213; +} else { + lean_dec_ref(x_213); + x_223 = lean_box(0); +} +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +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); +} +x_227 = lean_box(0); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +if (lean_is_scalar(x_223)) { + x_229 = lean_alloc_ctor(1, 1, 0); +} else { + x_229 = x_223; +} +lean_ctor_set(x_229, 0, x_228); +if (lean_is_scalar(x_216)) { + x_230 = lean_alloc_ctor(0, 9, 10); +} else { + x_230 = x_216; +} +lean_ctor_set(x_230, 0, x_197); +lean_ctor_set(x_230, 1, x_198); +lean_ctor_set(x_230, 2, x_199); +lean_ctor_set(x_230, 3, x_203); +lean_ctor_set(x_230, 4, x_204); +lean_ctor_set(x_230, 5, x_205); +lean_ctor_set(x_230, 6, x_206); +lean_ctor_set(x_230, 7, x_212); +lean_ctor_set(x_230, 8, x_229); +lean_ctor_set_uint8(x_230, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 9, x_215); +x_231 = lean_apply_10(x_2, x_15, x_4, x_5, x_230, x_7, x_8, x_9, x_218, x_11, x_12); +return x_231; +} +else +{ +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; uint8_t x_243; +x_232 = lean_ctor_get(x_224, 0); +lean_inc(x_232); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + x_233 = x_224; +} else { + lean_dec_ref(x_224); + x_233 = lean_box(0); +} +x_234 = lean_ctor_get(x_222, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_235 = x_222; +} else { + lean_dec_ref(x_222); + x_235 = lean_box(0); +} +x_236 = lean_ctor_get(x_232, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_232, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_238 = x_232; +} else { + lean_dec_ref(x_232); + x_238 = lean_box(0); +} +x_239 = lean_apply_1(x_1, x_236); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_185, x_14, x_240); +lean_dec(x_185); +x_243 = lean_unbox(x_242); +lean_dec(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_241); +lean_dec(x_238); +lean_dec(x_237); +lean_dec(x_223); +x_244 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_245 = lean_alloc_ctor(0, 2, 0); +} else { + x_245 = x_235; +} +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_234); +if (lean_is_scalar(x_233)) { + x_246 = lean_alloc_ctor(1, 1, 0); +} else { + x_246 = x_233; +} +lean_ctor_set(x_246, 0, x_245); +if (lean_is_scalar(x_216)) { + x_247 = lean_alloc_ctor(0, 9, 10); +} else { + x_247 = x_216; +} +lean_ctor_set(x_247, 0, x_197); +lean_ctor_set(x_247, 1, x_198); +lean_ctor_set(x_247, 2, x_199); +lean_ctor_set(x_247, 3, x_203); +lean_ctor_set(x_247, 4, x_204); +lean_ctor_set(x_247, 5, x_205); +lean_ctor_set(x_247, 6, x_206); +lean_ctor_set(x_247, 7, x_212); +lean_ctor_set(x_247, 8, x_246); +lean_ctor_set_uint8(x_247, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 9, x_215); +x_248 = lean_apply_10(x_2, x_15, x_4, x_5, x_247, x_7, x_8, x_9, x_218, x_11, x_12); +return x_248; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +if (lean_is_scalar(x_238)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_238; +} +lean_ctor_set(x_249, 0, x_241); +lean_ctor_set(x_249, 1, x_237); +if (lean_is_scalar(x_233)) { + x_250 = lean_alloc_ctor(1, 1, 0); +} else { + x_250 = x_233; +} +lean_ctor_set(x_250, 0, x_249); +if (lean_is_scalar(x_235)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_235; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_234); +if (lean_is_scalar(x_223)) { + x_252 = lean_alloc_ctor(1, 1, 0); +} else { + x_252 = x_223; +} +lean_ctor_set(x_252, 0, x_251); +if (lean_is_scalar(x_216)) { + x_253 = lean_alloc_ctor(0, 9, 10); +} else { + x_253 = x_216; +} +lean_ctor_set(x_253, 0, x_197); +lean_ctor_set(x_253, 1, x_198); +lean_ctor_set(x_253, 2, x_199); +lean_ctor_set(x_253, 3, x_203); +lean_ctor_set(x_253, 4, x_204); +lean_ctor_set(x_253, 5, x_205); +lean_ctor_set(x_253, 6, x_206); +lean_ctor_set(x_253, 7, x_212); +lean_ctor_set(x_253, 8, x_252); +lean_ctor_set_uint8(x_253, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 9, x_215); +x_254 = lean_apply_10(x_2, x_15, x_4, x_5, x_253, x_7, x_8, x_9, x_218, x_11, x_12); +return x_254; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("null", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_3 = l_Lean_Syntax_getArgs(x_2); +x_4 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_5 = l_Array_toSubarray___rarg(x_3, x_4, x_1); +x_6 = l_Array_ofSubarray___rarg(x_5); +x_7 = lean_box(2); +x_8 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2; +x_9 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 2, x_6); +x_10 = l_Lean_Syntax_getArg(x_2, x_1); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_runTactic___spec__10(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___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_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; @@ -19167,7 +20529,7 @@ return x_126; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___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, 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_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__12(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_object* x_11) { _start: { uint8_t x_12; @@ -19317,7 +20679,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_16 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(x_2, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_16 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_2, x_15, x_3, 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; uint8_t x_18; uint8_t x_19; lean_object* x_20; @@ -19363,180 +20725,192 @@ static lean_object* _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("unsolved goals\n", 15); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 0); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolved goals\n", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_runTactic___lambda__3___closed__1; +x_1 = l_Lean_Elab_Term_runTactic___lambda__3___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3(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_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3(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_object* x_10) { _start: { -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_41; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -lean_inc(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_42; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); lean_inc(x_1); -x_12 = l_Lean_instantiateMVarDeclMVars___at_Lean_Elab_Term_runTactic___spec__1(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -if (lean_is_exclusive(x_12)) { - lean_ctor_release(x_12, 0); - lean_ctor_release(x_12, 1); - x_14 = x_12; +x_11 = l_Lean_instantiateMVarDeclMVars___at_Lean_Elab_Term_runTactic___spec__1(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_13 = x_11; } else { - lean_dec_ref(x_12); - x_14 = lean_box(0); + lean_dec_ref(x_11); + x_13 = lean_box(0); } -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Lean_Syntax_getArg(x_2, x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_17, 0, x_3); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Syntax_getArg(x_2, x_14); +x_16 = lean_unsigned_to_nat(1u); +x_17 = l_Lean_Elab_Term_runTactic___lambda__3___closed__1; +lean_inc(x_2); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9), 12, 3); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__2), 11, 2); -lean_closure_set(x_19, 0, x_2); +lean_closure_set(x_18, 2, x_2); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_19, 0, x_15); lean_closure_set(x_19, 1, x_18); -x_77 = lean_st_ref_get(x_10, x_13); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_78, 6); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__2), 11, 2); +lean_closure_set(x_20, 0, x_2); +lean_closure_set(x_20, 1, x_19); +x_78 = lean_st_ref_get(x_9, x_12); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_78); -x_80 = lean_ctor_get_uint8(x_79, sizeof(void*)*2); +x_80 = lean_ctor_get(x_79, 6); +lean_inc(x_80); lean_dec(x_79); -if (x_80 == 0) +x_81 = lean_ctor_get_uint8(x_80, sizeof(void*)*2); +lean_dec(x_80); +if (x_81 == 0) { -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_77, 1); -lean_inc(x_81); -lean_dec(x_77); -lean_inc(x_10); +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_78, 1); +lean_inc(x_82); +lean_dec(x_78); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); lean_inc(x_1); -x_82 = l_Lean_Elab_Tactic_run(x_1, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_81); -x_41 = x_82; -goto block_76; +x_83 = l_Lean_Elab_Tactic_run(x_1, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_82); +x_42 = x_83; +goto block_77; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_83 = lean_ctor_get(x_77, 1); -lean_inc(x_83); -lean_dec(x_77); -x_84 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_10, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +lean_dec(x_78); +x_85 = l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(x_9, x_84); +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_dec(x_84); -lean_inc(x_10); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); lean_inc(x_1); -x_87 = l_Lean_Elab_Tactic_run(x_1, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_86); -if (lean_obj_tag(x_87) == 0) +x_88 = l_Lean_Elab_Tactic_run(x_1, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_87); +if (lean_obj_tag(x_88) == 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; uint8_t x_94; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_st_ref_take(x_10, x_89); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_91, 6); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_91 = lean_st_ref_take(x_9, x_90); +x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); -x_93 = lean_ctor_get(x_90, 1); +x_93 = lean_ctor_get(x_92, 6); lean_inc(x_93); -lean_dec(x_90); -x_94 = !lean_is_exclusive(x_91); -if (x_94 == 0) +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); +x_95 = !lean_is_exclusive(x_92); +if (x_95 == 0) { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_91, 6); -lean_dec(x_95); -x_96 = !lean_is_exclusive(x_92); -if (x_96 == 0) +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_92, 6); +lean_dec(x_96); +x_97 = !lean_is_exclusive(x_93); +if (x_97 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_97 = lean_ctor_get(x_92, 0); -x_98 = lean_ctor_get(x_92, 1); -x_99 = lean_ctor_get(x_98, 2); -lean_inc(x_99); -x_100 = lean_nat_dec_lt(x_15, x_99); -if (x_100 == 0) +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = lean_ctor_get(x_93, 0); +x_99 = lean_ctor_get(x_93, 1); +x_100 = lean_ctor_get(x_99, 2); +lean_inc(x_100); +x_101 = lean_nat_dec_lt(x_14, x_100); +if (x_101 == 0) { -lean_object* x_101; uint8_t x_102; +lean_object* x_102; uint8_t x_103; +lean_dec(x_100); lean_dec(x_99); -lean_dec(x_98); -lean_ctor_set(x_92, 1, x_85); -x_101 = lean_st_ref_set(x_10, x_91, x_93); -x_102 = !lean_is_exclusive(x_101); -if (x_102 == 0) +lean_ctor_set(x_93, 1, x_86); +x_102 = lean_st_ref_set(x_9, x_92, x_94); +x_103 = !lean_is_exclusive(x_102); +if (x_103 == 0) { -lean_object* x_103; -x_103 = lean_ctor_get(x_101, 0); -lean_dec(x_103); -lean_ctor_set(x_101, 0, x_88); -x_41 = x_101; -goto block_76; +lean_object* x_104; +x_104 = lean_ctor_get(x_102, 0); +lean_dec(x_104); +lean_ctor_set(x_102, 0, x_89); +x_42 = x_102; +goto block_77; } else { -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_104); -lean_dec(x_101); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_88); -lean_ctor_set(x_105, 1, x_104); -x_41 = x_105; -goto block_76; +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +lean_dec(x_102); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_89); +lean_ctor_set(x_106, 1, x_105); +x_42 = x_106; +goto block_77; } } 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; uint8_t x_112; -x_106 = lean_unsigned_to_nat(1u); -x_107 = lean_nat_sub(x_99, x_106); -lean_dec(x_99); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_107 = lean_nat_sub(x_100, x_16); +lean_dec(x_100); x_108 = l_Lean_Elab_instInhabitedInfoTree; -x_109 = l_Lean_PersistentArray_get_x21___rarg(x_108, x_98, x_107); +x_109 = l_Lean_PersistentArray_get_x21___rarg(x_108, x_99, x_107); lean_dec(x_107); lean_inc(x_1); -x_110 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_97, x_1, x_109); -lean_ctor_set(x_92, 1, x_85); -lean_ctor_set(x_92, 0, x_110); -x_111 = lean_st_ref_set(x_10, x_91, x_93); +x_110 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_98, x_1, x_109); +lean_ctor_set(x_93, 1, x_86); +lean_ctor_set(x_93, 0, x_110); +x_111 = lean_st_ref_set(x_9, x_92, x_94); x_112 = !lean_is_exclusive(x_111); if (x_112 == 0) { lean_object* x_113; x_113 = lean_ctor_get(x_111, 0); lean_dec(x_113); -lean_ctor_set(x_111, 0, x_88); -x_41 = x_111; -goto block_76; +lean_ctor_set(x_111, 0, x_89); +x_42 = x_111; +goto block_77; } else { @@ -19545,25 +20919,25 @@ x_114 = lean_ctor_get(x_111, 1); lean_inc(x_114); lean_dec(x_111); x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_88); +lean_ctor_set(x_115, 0, x_89); lean_ctor_set(x_115, 1, x_114); -x_41 = x_115; -goto block_76; +x_42 = x_115; +goto block_77; } } } else { uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_116 = lean_ctor_get_uint8(x_92, sizeof(void*)*2); -x_117 = lean_ctor_get(x_92, 0); -x_118 = lean_ctor_get(x_92, 1); +x_116 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); +x_117 = lean_ctor_get(x_93, 0); +x_118 = lean_ctor_get(x_93, 1); lean_inc(x_118); lean_inc(x_117); -lean_dec(x_92); +lean_dec(x_93); x_119 = lean_ctor_get(x_118, 2); lean_inc(x_119); -x_120 = lean_nat_dec_lt(x_15, x_119); +x_120 = lean_nat_dec_lt(x_14, x_119); if (x_120 == 0) { lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; @@ -19571,10 +20945,10 @@ lean_dec(x_119); lean_dec(x_118); x_121 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_121, 0, x_117); -lean_ctor_set(x_121, 1, x_85); +lean_ctor_set(x_121, 1, x_86); lean_ctor_set_uint8(x_121, sizeof(void*)*2, x_116); -lean_ctor_set(x_91, 6, x_121); -x_122 = lean_st_ref_set(x_10, x_91, x_93); +lean_ctor_set(x_92, 6, x_121); +x_122 = lean_st_ref_set(x_9, x_92, x_94); x_123 = lean_ctor_get(x_122, 1); lean_inc(x_123); if (lean_is_exclusive(x_122)) { @@ -19590,783 +20964,778 @@ if (lean_is_scalar(x_124)) { } else { x_125 = x_124; } -lean_ctor_set(x_125, 0, x_88); +lean_ctor_set(x_125, 0, x_89); lean_ctor_set(x_125, 1, x_123); -x_41 = x_125; -goto block_76; +x_42 = x_125; +goto block_77; } else { -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; -x_126 = lean_unsigned_to_nat(1u); -x_127 = lean_nat_sub(x_119, x_126); +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; +x_126 = lean_nat_sub(x_119, x_16); lean_dec(x_119); -x_128 = l_Lean_Elab_instInhabitedInfoTree; -x_129 = l_Lean_PersistentArray_get_x21___rarg(x_128, x_118, x_127); -lean_dec(x_127); +x_127 = l_Lean_Elab_instInhabitedInfoTree; +x_128 = l_Lean_PersistentArray_get_x21___rarg(x_127, x_118, x_126); +lean_dec(x_126); lean_inc(x_1); -x_130 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_117, x_1, x_129); -x_131 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_85); -lean_ctor_set_uint8(x_131, sizeof(void*)*2, x_116); -lean_ctor_set(x_91, 6, x_131); -x_132 = lean_st_ref_set(x_10, x_91, x_93); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_134 = x_132; +x_129 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_117, x_1, x_128); +x_130 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_86); +lean_ctor_set_uint8(x_130, sizeof(void*)*2, x_116); +lean_ctor_set(x_92, 6, x_130); +x_131 = lean_st_ref_set(x_9, x_92, x_94); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_133 = x_131; } else { - lean_dec_ref(x_132); - x_134 = lean_box(0); + lean_dec_ref(x_131); + x_133 = lean_box(0); } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_135 = x_134; + x_134 = x_133; } -lean_ctor_set(x_135, 0, x_88); -lean_ctor_set(x_135, 1, x_133); -x_41 = x_135; -goto block_76; +lean_ctor_set(x_134, 0, x_89); +lean_ctor_set(x_134, 1, x_132); +x_42 = x_134; +goto block_77; } } } 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; uint8_t x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_136 = lean_ctor_get(x_91, 0); -x_137 = lean_ctor_get(x_91, 1); -x_138 = lean_ctor_get(x_91, 2); -x_139 = lean_ctor_get(x_91, 3); -x_140 = lean_ctor_get(x_91, 4); -x_141 = lean_ctor_get(x_91, 5); -lean_inc(x_141); +lean_object* x_135; 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; lean_object* x_145; uint8_t x_146; +x_135 = lean_ctor_get(x_92, 0); +x_136 = lean_ctor_get(x_92, 1); +x_137 = lean_ctor_get(x_92, 2); +x_138 = lean_ctor_get(x_92, 3); +x_139 = lean_ctor_get(x_92, 4); +x_140 = lean_ctor_get(x_92, 5); lean_inc(x_140); lean_inc(x_139); lean_inc(x_138); lean_inc(x_137); lean_inc(x_136); -lean_dec(x_91); -x_142 = lean_ctor_get_uint8(x_92, sizeof(void*)*2); -x_143 = lean_ctor_get(x_92, 0); +lean_inc(x_135); +lean_dec(x_92); +x_141 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); +x_142 = lean_ctor_get(x_93, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_93, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_92, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_145 = x_92; +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_144 = x_93; } else { - lean_dec_ref(x_92); - x_145 = lean_box(0); + lean_dec_ref(x_93); + x_144 = lean_box(0); } -x_146 = lean_ctor_get(x_144, 2); -lean_inc(x_146); -x_147 = lean_nat_dec_lt(x_15, x_146); -if (x_147 == 0) +x_145 = lean_ctor_get(x_143, 2); +lean_inc(x_145); +x_146 = lean_nat_dec_lt(x_14, x_145); +if (x_146 == 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; -lean_dec(x_146); -lean_dec(x_144); -if (lean_is_scalar(x_145)) { - x_148 = lean_alloc_ctor(0, 2, 1); +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_dec(x_145); +lean_dec(x_143); +if (lean_is_scalar(x_144)) { + x_147 = lean_alloc_ctor(0, 2, 1); } else { - x_148 = x_145; + x_147 = x_144; } -lean_ctor_set(x_148, 0, x_143); -lean_ctor_set(x_148, 1, x_85); -lean_ctor_set_uint8(x_148, sizeof(void*)*2, x_142); -x_149 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_149, 0, x_136); -lean_ctor_set(x_149, 1, x_137); -lean_ctor_set(x_149, 2, x_138); -lean_ctor_set(x_149, 3, x_139); -lean_ctor_set(x_149, 4, x_140); -lean_ctor_set(x_149, 5, x_141); -lean_ctor_set(x_149, 6, x_148); -x_150 = lean_st_ref_set(x_10, x_149, x_93); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; +lean_ctor_set(x_147, 0, x_142); +lean_ctor_set(x_147, 1, x_86); +lean_ctor_set_uint8(x_147, sizeof(void*)*2, x_141); +x_148 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_148, 0, x_135); +lean_ctor_set(x_148, 1, x_136); +lean_ctor_set(x_148, 2, x_137); +lean_ctor_set(x_148, 3, x_138); +lean_ctor_set(x_148, 4, x_139); +lean_ctor_set(x_148, 5, x_140); +lean_ctor_set(x_148, 6, x_147); +x_149 = lean_st_ref_set(x_9, x_148, x_94); +x_150 = lean_ctor_get(x_149, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_151 = x_149; } else { - lean_dec_ref(x_150); - x_152 = lean_box(0); + lean_dec_ref(x_149); + x_151 = lean_box(0); } -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(0, 2, 0); } else { - x_153 = x_152; + x_152 = x_151; } -lean_ctor_set(x_153, 0, x_88); -lean_ctor_set(x_153, 1, x_151); -x_41 = x_153; -goto block_76; +lean_ctor_set(x_152, 0, x_89); +lean_ctor_set(x_152, 1, x_150); +x_42 = x_152; +goto block_77; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_154 = lean_unsigned_to_nat(1u); -x_155 = lean_nat_sub(x_146, x_154); -lean_dec(x_146); -x_156 = l_Lean_Elab_instInhabitedInfoTree; -x_157 = l_Lean_PersistentArray_get_x21___rarg(x_156, x_144, x_155); -lean_dec(x_155); +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_153 = lean_nat_sub(x_145, x_16); +lean_dec(x_145); +x_154 = l_Lean_Elab_instInhabitedInfoTree; +x_155 = l_Lean_PersistentArray_get_x21___rarg(x_154, x_143, x_153); +lean_dec(x_153); lean_inc(x_1); -x_158 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_143, x_1, x_157); -if (lean_is_scalar(x_145)) { - x_159 = lean_alloc_ctor(0, 2, 1); +x_156 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_142, x_1, x_155); +if (lean_is_scalar(x_144)) { + x_157 = lean_alloc_ctor(0, 2, 1); } else { - x_159 = x_145; + x_157 = x_144; } -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_85); -lean_ctor_set_uint8(x_159, sizeof(void*)*2, x_142); -x_160 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_160, 0, x_136); -lean_ctor_set(x_160, 1, x_137); -lean_ctor_set(x_160, 2, x_138); -lean_ctor_set(x_160, 3, x_139); -lean_ctor_set(x_160, 4, x_140); -lean_ctor_set(x_160, 5, x_141); -lean_ctor_set(x_160, 6, x_159); -x_161 = lean_st_ref_set(x_10, x_160, x_93); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_163 = x_161; +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_86); +lean_ctor_set_uint8(x_157, sizeof(void*)*2, x_141); +x_158 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_158, 0, x_135); +lean_ctor_set(x_158, 1, x_136); +lean_ctor_set(x_158, 2, x_137); +lean_ctor_set(x_158, 3, x_138); +lean_ctor_set(x_158, 4, x_139); +lean_ctor_set(x_158, 5, x_140); +lean_ctor_set(x_158, 6, x_157); +x_159 = lean_st_ref_set(x_9, x_158, x_94); +x_160 = lean_ctor_get(x_159, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_161 = x_159; } else { - lean_dec_ref(x_161); - x_163 = lean_box(0); + lean_dec_ref(x_159); + x_161 = lean_box(0); } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(0, 2, 0); } else { - x_164 = x_163; + x_162 = x_161; } -lean_ctor_set(x_164, 0, x_88); -lean_ctor_set(x_164, 1, x_162); -x_41 = x_164; -goto block_76; +lean_ctor_set(x_162, 0, x_89); +lean_ctor_set(x_162, 1, x_160); +x_42 = x_162; +goto block_77; } } } 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; uint8_t x_171; -x_165 = lean_ctor_get(x_87, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_87, 1); +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_163 = lean_ctor_get(x_88, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_88, 1); +lean_inc(x_164); +lean_dec(x_88); +x_165 = lean_st_ref_take(x_9, x_164); +x_166 = lean_ctor_get(x_165, 0); lean_inc(x_166); -lean_dec(x_87); -x_167 = lean_st_ref_take(x_10, x_166); -x_168 = lean_ctor_get(x_167, 0); +x_167 = lean_ctor_get(x_166, 6); +lean_inc(x_167); +x_168 = lean_ctor_get(x_165, 1); lean_inc(x_168); -x_169 = lean_ctor_get(x_168, 6); -lean_inc(x_169); -x_170 = lean_ctor_get(x_167, 1); -lean_inc(x_170); -lean_dec(x_167); -x_171 = !lean_is_exclusive(x_168); +lean_dec(x_165); +x_169 = !lean_is_exclusive(x_166); +if (x_169 == 0) +{ +lean_object* x_170; uint8_t x_171; +x_170 = lean_ctor_get(x_166, 6); +lean_dec(x_170); +x_171 = !lean_is_exclusive(x_167); if (x_171 == 0) { -lean_object* x_172; uint8_t x_173; -x_172 = lean_ctor_get(x_168, 6); -lean_dec(x_172); -x_173 = !lean_is_exclusive(x_169); -if (x_173 == 0) +lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_172 = lean_ctor_get(x_167, 0); +x_173 = lean_ctor_get(x_167, 1); +x_174 = lean_ctor_get(x_173, 2); +lean_inc(x_174); +x_175 = lean_nat_dec_lt(x_14, x_174); +if (x_175 == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_174 = lean_ctor_get(x_169, 0); -x_175 = lean_ctor_get(x_169, 1); -x_176 = lean_ctor_get(x_175, 2); -lean_inc(x_176); -x_177 = lean_nat_dec_lt(x_15, x_176); +lean_object* x_176; uint8_t x_177; +lean_dec(x_174); +lean_dec(x_173); +lean_ctor_set(x_167, 1, x_86); +x_176 = lean_st_ref_set(x_9, x_166, x_168); +x_177 = !lean_is_exclusive(x_176); if (x_177 == 0) { -lean_object* x_178; uint8_t x_179; -lean_dec(x_176); -lean_dec(x_175); -lean_ctor_set(x_169, 1, x_85); -x_178 = lean_st_ref_set(x_10, x_168, x_170); -x_179 = !lean_is_exclusive(x_178); -if (x_179 == 0) -{ -lean_object* x_180; -x_180 = lean_ctor_get(x_178, 0); -lean_dec(x_180); -lean_ctor_set_tag(x_178, 1); -lean_ctor_set(x_178, 0, x_165); -x_41 = x_178; -goto block_76; -} -else -{ -lean_object* x_181; lean_object* x_182; -x_181 = lean_ctor_get(x_178, 1); -lean_inc(x_181); +lean_object* x_178; +x_178 = lean_ctor_get(x_176, 0); lean_dec(x_178); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_165); -lean_ctor_set(x_182, 1, x_181); -x_41 = x_182; -goto block_76; -} +lean_ctor_set_tag(x_176, 1); +lean_ctor_set(x_176, 0, x_163); +x_42 = x_176; +goto block_77; } 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; uint8_t x_189; -x_183 = lean_unsigned_to_nat(1u); -x_184 = lean_nat_sub(x_176, x_183); +lean_object* x_179; lean_object* x_180; +x_179 = lean_ctor_get(x_176, 1); +lean_inc(x_179); lean_dec(x_176); -x_185 = l_Lean_Elab_instInhabitedInfoTree; -x_186 = l_Lean_PersistentArray_get_x21___rarg(x_185, x_175, x_184); -lean_dec(x_184); -lean_inc(x_1); -x_187 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_174, x_1, x_186); -lean_ctor_set(x_169, 1, x_85); -lean_ctor_set(x_169, 0, x_187); -x_188 = lean_st_ref_set(x_10, x_168, x_170); -x_189 = !lean_is_exclusive(x_188); -if (x_189 == 0) -{ -lean_object* x_190; -x_190 = lean_ctor_get(x_188, 0); -lean_dec(x_190); -lean_ctor_set_tag(x_188, 1); -lean_ctor_set(x_188, 0, x_165); -x_41 = x_188; -goto block_76; +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_163); +lean_ctor_set(x_180, 1, x_179); +x_42 = x_180; +goto block_77; +} } else { -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_188, 1); +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +x_181 = lean_nat_sub(x_174, x_16); +lean_dec(x_174); +x_182 = l_Lean_Elab_instInhabitedInfoTree; +x_183 = l_Lean_PersistentArray_get_x21___rarg(x_182, x_173, x_181); +lean_dec(x_181); +lean_inc(x_1); +x_184 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_172, x_1, x_183); +lean_ctor_set(x_167, 1, x_86); +lean_ctor_set(x_167, 0, x_184); +x_185 = lean_st_ref_set(x_9, x_166, x_168); +x_186 = !lean_is_exclusive(x_185); +if (x_186 == 0) +{ +lean_object* x_187; +x_187 = lean_ctor_get(x_185, 0); +lean_dec(x_187); +lean_ctor_set_tag(x_185, 1); +lean_ctor_set(x_185, 0, x_163); +x_42 = x_185; +goto block_77; +} +else +{ +lean_object* x_188; lean_object* x_189; +x_188 = lean_ctor_get(x_185, 1); +lean_inc(x_188); +lean_dec(x_185); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_163); +lean_ctor_set(x_189, 1, x_188); +x_42 = x_189; +goto block_77; +} +} +} +else +{ +uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; +x_190 = lean_ctor_get_uint8(x_167, sizeof(void*)*2); +x_191 = lean_ctor_get(x_167, 0); +x_192 = lean_ctor_get(x_167, 1); +lean_inc(x_192); lean_inc(x_191); -lean_dec(x_188); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_165); -lean_ctor_set(x_192, 1, x_191); -x_41 = x_192; -goto block_76; +lean_dec(x_167); +x_193 = lean_ctor_get(x_192, 2); +lean_inc(x_193); +x_194 = lean_nat_dec_lt(x_14, x_193); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_193); +lean_dec(x_192); +x_195 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_195, 0, x_191); +lean_ctor_set(x_195, 1, x_86); +lean_ctor_set_uint8(x_195, sizeof(void*)*2, x_190); +lean_ctor_set(x_166, 6, x_195); +x_196 = lean_st_ref_set(x_9, x_166, x_168); +x_197 = lean_ctor_get(x_196, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_198 = x_196; +} else { + lean_dec_ref(x_196); + x_198 = lean_box(0); } +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_198; + lean_ctor_set_tag(x_199, 1); } +lean_ctor_set(x_199, 0, x_163); +lean_ctor_set(x_199, 1, x_197); +x_42 = x_199; +goto block_77; } else { -uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; -x_193 = lean_ctor_get_uint8(x_169, sizeof(void*)*2); -x_194 = lean_ctor_get(x_169, 0); -x_195 = lean_ctor_get(x_169, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_169); -x_196 = lean_ctor_get(x_195, 2); -lean_inc(x_196); -x_197 = lean_nat_dec_lt(x_15, x_196); -if (x_197 == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_196); -lean_dec(x_195); -x_198 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_198, 0, x_194); -lean_ctor_set(x_198, 1, x_85); -lean_ctor_set_uint8(x_198, sizeof(void*)*2, x_193); -lean_ctor_set(x_168, 6, x_198); -x_199 = lean_st_ref_set(x_10, x_168, x_170); -x_200 = lean_ctor_get(x_199, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_201 = x_199; -} else { - lean_dec_ref(x_199); - x_201 = lean_box(0); -} -if (lean_is_scalar(x_201)) { - x_202 = lean_alloc_ctor(1, 2, 0); -} else { - x_202 = x_201; - lean_ctor_set_tag(x_202, 1); -} -lean_ctor_set(x_202, 0, x_165); -lean_ctor_set(x_202, 1, x_200); -x_41 = x_202; -goto block_76; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_203 = lean_unsigned_to_nat(1u); -x_204 = lean_nat_sub(x_196, x_203); -lean_dec(x_196); -x_205 = l_Lean_Elab_instInhabitedInfoTree; -x_206 = l_Lean_PersistentArray_get_x21___rarg(x_205, x_195, x_204); -lean_dec(x_204); +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_200 = lean_nat_sub(x_193, x_16); +lean_dec(x_193); +x_201 = l_Lean_Elab_instInhabitedInfoTree; +x_202 = l_Lean_PersistentArray_get_x21___rarg(x_201, x_192, x_200); +lean_dec(x_200); lean_inc(x_1); -x_207 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_194, x_1, x_206); -x_208 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_85); -lean_ctor_set_uint8(x_208, sizeof(void*)*2, x_193); -lean_ctor_set(x_168, 6, x_208); -x_209 = lean_st_ref_set(x_10, x_168, x_170); -x_210 = lean_ctor_get(x_209, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_211 = x_209; +x_203 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_191, x_1, x_202); +x_204 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_86); +lean_ctor_set_uint8(x_204, sizeof(void*)*2, x_190); +lean_ctor_set(x_166, 6, x_204); +x_205 = lean_st_ref_set(x_9, x_166, x_168); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; } else { - lean_dec_ref(x_209); - x_211 = lean_box(0); + lean_dec_ref(x_205); + x_207 = lean_box(0); } -if (lean_is_scalar(x_211)) { - x_212 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); } else { - x_212 = x_211; - lean_ctor_set_tag(x_212, 1); + x_208 = x_207; + lean_ctor_set_tag(x_208, 1); } -lean_ctor_set(x_212, 0, x_165); -lean_ctor_set(x_212, 1, x_210); -x_41 = x_212; -goto block_76; +lean_ctor_set(x_208, 0, x_163); +lean_ctor_set(x_208, 1, x_206); +x_42 = x_208; +goto block_77; } } } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; -x_213 = lean_ctor_get(x_168, 0); -x_214 = lean_ctor_get(x_168, 1); -x_215 = lean_ctor_get(x_168, 2); -x_216 = lean_ctor_get(x_168, 3); -x_217 = lean_ctor_get(x_168, 4); -x_218 = lean_ctor_get(x_168, 5); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; +x_209 = lean_ctor_get(x_166, 0); +x_210 = lean_ctor_get(x_166, 1); +x_211 = lean_ctor_get(x_166, 2); +x_212 = lean_ctor_get(x_166, 3); +x_213 = lean_ctor_get(x_166, 4); +x_214 = lean_ctor_get(x_166, 5); lean_inc(x_214); lean_inc(x_213); -lean_dec(x_168); -x_219 = lean_ctor_get_uint8(x_169, sizeof(void*)*2); -x_220 = lean_ctor_get(x_169, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_169, 1); -lean_inc(x_221); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_222 = x_169; +lean_inc(x_212); +lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_166); +x_215 = lean_ctor_get_uint8(x_167, sizeof(void*)*2); +x_216 = lean_ctor_get(x_167, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_167, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_218 = x_167; } else { - lean_dec_ref(x_169); - x_222 = lean_box(0); + lean_dec_ref(x_167); + x_218 = lean_box(0); } -x_223 = lean_ctor_get(x_221, 2); -lean_inc(x_223); -x_224 = lean_nat_dec_lt(x_15, x_223); -if (x_224 == 0) +x_219 = lean_ctor_get(x_217, 2); +lean_inc(x_219); +x_220 = lean_nat_dec_lt(x_14, x_219); +if (x_220 == 0) { -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_dec(x_223); -lean_dec(x_221); -if (lean_is_scalar(x_222)) { - x_225 = lean_alloc_ctor(0, 2, 1); +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_219); +lean_dec(x_217); +if (lean_is_scalar(x_218)) { + x_221 = lean_alloc_ctor(0, 2, 1); } else { - x_225 = x_222; + x_221 = x_218; } -lean_ctor_set(x_225, 0, x_220); -lean_ctor_set(x_225, 1, x_85); -lean_ctor_set_uint8(x_225, sizeof(void*)*2, x_219); -x_226 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_226, 0, x_213); -lean_ctor_set(x_226, 1, x_214); -lean_ctor_set(x_226, 2, x_215); -lean_ctor_set(x_226, 3, x_216); -lean_ctor_set(x_226, 4, x_217); -lean_ctor_set(x_226, 5, x_218); -lean_ctor_set(x_226, 6, x_225); -x_227 = lean_st_ref_set(x_10, x_226, x_170); -x_228 = lean_ctor_get(x_227, 1); -lean_inc(x_228); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_229 = x_227; +lean_ctor_set(x_221, 0, x_216); +lean_ctor_set(x_221, 1, x_86); +lean_ctor_set_uint8(x_221, sizeof(void*)*2, x_215); +x_222 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_222, 0, x_209); +lean_ctor_set(x_222, 1, x_210); +lean_ctor_set(x_222, 2, x_211); +lean_ctor_set(x_222, 3, x_212); +lean_ctor_set(x_222, 4, x_213); +lean_ctor_set(x_222, 5, x_214); +lean_ctor_set(x_222, 6, x_221); +x_223 = lean_st_ref_set(x_9, x_222, x_168); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_225 = x_223; } else { - lean_dec_ref(x_227); - x_229 = lean_box(0); + lean_dec_ref(x_223); + x_225 = lean_box(0); } -if (lean_is_scalar(x_229)) { - x_230 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_225)) { + x_226 = lean_alloc_ctor(1, 2, 0); } else { - x_230 = x_229; - lean_ctor_set_tag(x_230, 1); + x_226 = x_225; + lean_ctor_set_tag(x_226, 1); } -lean_ctor_set(x_230, 0, x_165); -lean_ctor_set(x_230, 1, x_228); -x_41 = x_230; -goto block_76; +lean_ctor_set(x_226, 0, x_163); +lean_ctor_set(x_226, 1, x_224); +x_42 = x_226; +goto block_77; } else { -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; -x_231 = lean_unsigned_to_nat(1u); -x_232 = lean_nat_sub(x_223, x_231); -lean_dec(x_223); -x_233 = l_Lean_Elab_instInhabitedInfoTree; -x_234 = l_Lean_PersistentArray_get_x21___rarg(x_233, x_221, x_232); -lean_dec(x_232); +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; +x_227 = lean_nat_sub(x_219, x_16); +lean_dec(x_219); +x_228 = l_Lean_Elab_instInhabitedInfoTree; +x_229 = l_Lean_PersistentArray_get_x21___rarg(x_228, x_217, x_227); +lean_dec(x_227); lean_inc(x_1); -x_235 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_220, x_1, x_234); -if (lean_is_scalar(x_222)) { - x_236 = lean_alloc_ctor(0, 2, 1); +x_230 = l_Lean_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_216, x_1, x_229); +if (lean_is_scalar(x_218)) { + x_231 = lean_alloc_ctor(0, 2, 1); } else { - x_236 = x_222; + x_231 = x_218; } -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_85); -lean_ctor_set_uint8(x_236, sizeof(void*)*2, x_219); -x_237 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_237, 0, x_213); -lean_ctor_set(x_237, 1, x_214); -lean_ctor_set(x_237, 2, x_215); -lean_ctor_set(x_237, 3, x_216); -lean_ctor_set(x_237, 4, x_217); -lean_ctor_set(x_237, 5, x_218); -lean_ctor_set(x_237, 6, x_236); -x_238 = lean_st_ref_set(x_10, x_237, x_170); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_86); +lean_ctor_set_uint8(x_231, sizeof(void*)*2, x_215); +x_232 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_232, 0, x_209); +lean_ctor_set(x_232, 1, x_210); +lean_ctor_set(x_232, 2, x_211); +lean_ctor_set(x_232, 3, x_212); +lean_ctor_set(x_232, 4, x_213); +lean_ctor_set(x_232, 5, x_214); +lean_ctor_set(x_232, 6, x_231); +x_233 = lean_st_ref_set(x_9, x_232, x_168); +x_234 = lean_ctor_get(x_233, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_235 = x_233; } else { - lean_dec_ref(x_238); - x_240 = lean_box(0); + lean_dec_ref(x_233); + x_235 = lean_box(0); } -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_235)) { + x_236 = lean_alloc_ctor(1, 2, 0); } else { - x_241 = x_240; - lean_ctor_set_tag(x_241, 1); + x_236 = x_235; + lean_ctor_set_tag(x_236, 1); } -lean_ctor_set(x_241, 0, x_165); -lean_ctor_set(x_241, 1, x_239); -x_41 = x_241; -goto block_76; +lean_ctor_set(x_236, 0, x_163); +lean_ctor_set(x_236, 1, x_234); +x_42 = x_236; +goto block_77; } } } } -block_40: +block_41: { -if (x_4 == 0) +if (x_3 == 0) { -lean_object* x_22; -lean_dec(x_10); +lean_object* x_23; 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_1); -if (lean_is_scalar(x_14)) { - x_22 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_13)) { + x_23 = lean_alloc_ctor(1, 2, 0); } else { - x_22 = x_14; - lean_ctor_set_tag(x_22, 1); + x_23 = x_13; + lean_ctor_set_tag(x_23, 1); } -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } else { -uint8_t x_23; -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -if (x_23 == 0) +uint8_t x_24; +x_24 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +if (x_24 == 0) { -lean_object* x_24; -lean_dec(x_10); +lean_object* x_25; 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_1); -if (lean_is_scalar(x_14)) { - x_24 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_13)) { + x_25 = lean_alloc_ctor(1, 2, 0); } else { - x_24 = x_14; - lean_ctor_set_tag(x_24, 1); + x_25 = x_13; + lean_ctor_set_tag(x_25, 1); } -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_21); -return x_24; +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_22); +return x_25; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_14); -x_25 = l_Lean_Expr_mvar___override(x_1); -x_26 = l_Lean_Meta_getMVars(x_25, x_7, x_8, x_9, x_10, x_21); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_13); +x_26 = l_Lean_Expr_mvar___override(x_1); +x_27 = l_Lean_Meta_getMVars(x_26, x_6, x_7, x_8, x_9, x_22); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_array_get_size(x_27); -x_30 = lean_usize_of_nat(x_29); -lean_dec(x_29); -x_31 = 0; -x_32 = lean_box(0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_33 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__10(x_27, x_30, x_31, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); lean_dec(x_27); -if (lean_obj_tag(x_33) == 0) +x_30 = lean_array_get_size(x_28); +x_31 = lean_usize_of_nat(x_30); +lean_dec(x_30); +x_32 = 0; +x_33 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_34 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__12(x_28, x_31, x_32, x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +lean_dec(x_28); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_34); -return x_35; +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +return x_36; } else { -uint8_t x_36; -lean_dec(x_20); -lean_dec(x_10); +uint8_t x_37; +lean_dec(x_21); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) +lean_dec(x_4); +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) { -return x_33; +return x_34; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -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_dec(x_34); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } } } -block_76: +block_77: { -if (lean_obj_tag(x_41) == 0) +if (lean_obj_tag(x_42) == 0) { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_41, 0); -x_44 = lean_ctor_get(x_41, 1); -x_45 = l_List_isEmpty___rarg(x_43); -if (x_45 == 0) +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +x_46 = l_List_isEmpty___rarg(x_44); +if (x_46 == 0) { -lean_free_object(x_41); -if (x_4 == 0) +lean_free_object(x_42); +if (x_3 == 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; lean_object* x_52; lean_object* x_53; -x_46 = l_Lean_Elab_goalsToMessageData(x_43); -x_47 = l_Lean_Elab_Term_runTactic___lambda__3___closed__2; -x_48 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; -x_50 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -lean_inc(x_5); -x_51 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_50, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +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 = l_Lean_Elab_goalsToMessageData(x_44); +x_48 = l_Lean_Elab_Term_runTactic___lambda__3___closed__3; +x_49 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_4); +x_52 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_51, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_20 = x_52; +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); x_21 = x_53; -goto block_40; +x_22 = x_54; +goto block_41; } else { -lean_object* x_54; -lean_inc(x_10); +lean_object* x_55; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_54 = l_Lean_Elab_Term_reportUnsolvedGoals(x_43, x_7, x_8, x_9, x_10, x_44); -if (lean_obj_tag(x_54) == 0) +lean_inc(x_6); +x_55 = l_Lean_Elab_Term_reportUnsolvedGoals(x_44, x_6, x_7, x_8, x_9, x_45); +if (lean_obj_tag(x_55) == 0) { -lean_dec(x_14); -lean_dec(x_10); +lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -return x_54; +return x_55; } else { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -lean_dec(x_54); -x_20 = x_55; +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); x_21 = x_56; -goto block_40; +x_22 = x_57; +goto block_41; } } } else { -lean_object* x_57; -lean_dec(x_43); -lean_dec(x_14); -lean_dec(x_10); +lean_object* x_58; +lean_dec(x_44); +lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -x_57 = lean_box(0); -lean_ctor_set(x_41, 0, x_57); -return x_41; +x_58 = lean_box(0); +lean_ctor_set(x_42, 0, x_58); +return x_42; } } else { -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_41, 0); -x_59 = lean_ctor_get(x_41, 1); +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_42, 0); +x_60 = lean_ctor_get(x_42, 1); +lean_inc(x_60); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_41); -x_60 = l_List_isEmpty___rarg(x_58); -if (x_60 == 0) +lean_dec(x_42); +x_61 = l_List_isEmpty___rarg(x_59); +if (x_61 == 0) { -if (x_4 == 0) +if (x_3 == 0) { -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; -x_61 = l_Lean_Elab_goalsToMessageData(x_58); -x_62 = l_Lean_Elab_Term_runTactic___lambda__3___closed__2; -x_63 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -x_64 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; -x_65 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -lean_inc(x_5); -x_66 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_59); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +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_62 = l_Lean_Elab_goalsToMessageData(x_59); +x_63 = l_Lean_Elab_Term_runTactic___lambda__3___closed__3; +x_64 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +x_66 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +lean_inc(x_4); +x_67 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_66, x_4, x_5, x_6, x_7, x_8, x_9, x_60); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_66); -x_20 = x_67; +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); x_21 = x_68; -goto block_40; +x_22 = x_69; +goto block_41; } else { -lean_object* x_69; -lean_inc(x_10); +lean_object* x_70; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_69 = l_Lean_Elab_Term_reportUnsolvedGoals(x_58, x_7, x_8, x_9, x_10, x_59); -if (lean_obj_tag(x_69) == 0) +lean_inc(x_6); +x_70 = l_Lean_Elab_Term_reportUnsolvedGoals(x_59, x_6, x_7, x_8, x_9, x_60); +if (lean_obj_tag(x_70) == 0) { -lean_dec(x_14); -lean_dec(x_10); +lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -return x_69; +return x_70; } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); -lean_dec(x_69); -x_20 = x_70; +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); x_21 = x_71; -goto block_40; +x_22 = x_72; +goto block_41; } } } else { -lean_object* x_72; lean_object* x_73; -lean_dec(x_58); -lean_dec(x_14); -lean_dec(x_10); +lean_object* x_73; lean_object* x_74; +lean_dec(x_59); +lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -x_72 = lean_box(0); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_59); -return x_73; +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_60); +return x_74; } } } else { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_41, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_41, 1); +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_42, 0); lean_inc(x_75); -lean_dec(x_41); -x_20 = x_74; +x_76 = lean_ctor_get(x_42, 1); +lean_inc(x_76); +lean_dec(x_42); x_21 = x_75; -goto block_40; +x_22 = x_76; +goto block_41; } } } @@ -20374,17 +21743,14 @@ goto block_40; LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic(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_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_unsigned_to_nat(1u); -x_12 = l_Lean_Syntax_getArg(x_2, x_11); -x_13 = lean_box(x_3); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__3___boxed), 11, 4); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_2); -lean_closure_set(x_14, 2, x_12); -lean_closure_set(x_14, 3, x_13); -x_15 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_15; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_box(x_3); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__3___boxed), 10, 3); +lean_closure_set(x_12, 0, x_1); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_11); +x_13 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t 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_object* x_9) { @@ -20410,7 +21776,7 @@ x_13 = lean_ctor_get(x_11, 1); x_14 = lean_ctor_get(x_11, 0); lean_dec(x_14); x_15 = 1; -x_16 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_15); +x_16 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_15); if (x_16 == 0) { lean_dec(x_8); @@ -20437,7 +21803,7 @@ x_18 = lean_ctor_get(x_11, 1); lean_inc(x_18); lean_dec(x_11); x_19 = 1; -x_20 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_1, x_19); +x_20 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_1, x_19); if (x_20 == 0) { lean_object* x_21; @@ -20661,7 +22027,16 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___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_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___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, 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; @@ -20669,21 +22044,21 @@ x_12 = lean_unbox_usize(x_2); lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__10(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runTactic___spec__12(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_4); -lean_dec(x_4); -x_13 = l_Lean_Elab_Term_runTactic___lambda__3(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Lean_Elab_Term_runTactic___lambda__3(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___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) { @@ -20987,7 +22362,7 @@ x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); lean_dec(x_79); x_81 = 0; -x_82 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_2, x_81); +x_82 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_2, x_81); if (x_82 == 0) { lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; @@ -21326,7 +22701,7 @@ x_149 = lean_ctor_get(x_148, 1); lean_inc(x_149); lean_dec(x_148); x_150 = 0; -x_151 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4101_(x_2, x_150); +x_151 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_beqPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_4102_(x_2, x_150); if (x_151 == 0) { lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; @@ -22231,7 +23606,7 @@ return x_25; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* 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; lean_object* x_39; uint8_t x_40; lean_object* x_41; +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; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; x_26 = lean_ctor_get(x_7, 0); x_27 = lean_ctor_get(x_7, 1); x_28 = lean_ctor_get(x_7, 2); @@ -22243,7 +23618,10 @@ x_33 = lean_ctor_get(x_7, 7); x_34 = lean_ctor_get(x_7, 8); x_35 = lean_ctor_get(x_7, 9); x_36 = lean_ctor_get(x_7, 10); -x_37 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_37 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_38 = lean_ctor_get(x_7, 11); +x_39 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_38); lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); @@ -22256,76 +23634,78 @@ lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_dec(x_7); -x_38 = l_Lean_replaceRef(x_1, x_31); +x_40 = l_Lean_replaceRef(x_1, x_31); lean_dec(x_31); lean_dec(x_1); -x_39 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_39, 0, x_26); -lean_ctor_set(x_39, 1, x_27); -lean_ctor_set(x_39, 2, x_28); -lean_ctor_set(x_39, 3, x_29); -lean_ctor_set(x_39, 4, x_30); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_32); -lean_ctor_set(x_39, 7, x_33); -lean_ctor_set(x_39, 8, x_34); -lean_ctor_set(x_39, 9, x_35); -lean_ctor_set(x_39, 10, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_37); -x_40 = 1; +x_41 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_27); +lean_ctor_set(x_41, 2, x_28); +lean_ctor_set(x_41, 3, x_29); +lean_ctor_set(x_41, 4, x_30); +lean_ctor_set(x_41, 5, x_40); +lean_ctor_set(x_41, 6, x_32); +lean_ctor_set(x_41, 7, x_33); +lean_ctor_set(x_41, 8, x_34); +lean_ctor_set(x_41, 9, x_35); +lean_ctor_set(x_41, 10, x_36); +lean_ctor_set(x_41, 11, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*12, x_37); +lean_ctor_set_uint8(x_41, sizeof(void*)*12 + 1, x_39); +x_42 = 1; lean_inc(x_8); -lean_inc(x_39); +lean_inc(x_41); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_41 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_13, x_40, x_3, x_4, x_5, x_6, x_39, x_8, x_9); -if (lean_obj_tag(x_41) == 0) +x_43 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_13, x_42, x_3, x_4, x_5, x_6, x_41, x_8, x_9); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_42, x_3, x_4, x_5, x_6, x_39, x_8, x_43); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_44, x_3, x_4, x_5, x_6, x_41, x_8, x_45); lean_dec(x_8); -lean_dec(x_39); +lean_dec(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_44; +return x_46; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_39); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_41); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_45 = lean_ctor_get(x_41, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_47 = x_41; +x_47 = lean_ctor_get(x_43, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_49 = x_43; } else { - lean_dec_ref(x_41); - x_47 = lean_box(0); + lean_dec_ref(x_43); + x_49 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_50 = x_49; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } } @@ -22623,7 +24003,7 @@ lean_dec(x_1); return x_14; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1() { _start: { lean_object* x_1; @@ -22631,17 +24011,17 @@ x_1 = lean_mk_string_from_bytes("resume", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3() { _start: { lean_object* x_1; @@ -22649,27 +24029,27 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4; x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6() { _start: { lean_object* x_1; @@ -22677,17 +24057,17 @@ x_1 = lean_mk_string_from_bytes("Term", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8() { _start: { lean_object* x_1; @@ -22695,17 +24075,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10() { _start: { lean_object* x_1; @@ -22713,37 +24093,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12; x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14() { _start: { lean_object* x_1; @@ -22751,17 +24131,17 @@ x_1 = lean_mk_string_from_bytes("SyntheticMVars", 14); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16() { _start: { lean_object* x_1; @@ -22769,33 +24149,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17; -x_2 = lean_unsigned_to_nat(6650u); +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17; +x_2 = lean_unsigned_to_nat(6628u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2; x_3 = 0; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -22906,46 +24286,46 @@ lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_thro l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___closed__1 = _init_l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_PostponeBehavior_noConfusion___rarg___closed__1); l_Lean_Elab_Term_instInhabitedPostponeBehavior = _init_l_Lean_Elab_Term_instInhabitedPostponeBehavior(); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__1); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__2); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__3); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__4); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__5); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__6); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__7); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__8); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__9); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__10); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__11); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__12); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__13); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__14); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__15); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__16); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__17); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__18); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__19); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3986____closed__20); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__1(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__1); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__2); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__3); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__4); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__5); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__6); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__7); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__8); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__9 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__9(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__9); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__10); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__11); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__12); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__13); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__14); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__15); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__16); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__17); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__18); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__19); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reprPostponeBehavior____x40_Lean_Elab_SyntheticMVars___hyg_3987____closed__20); l_Lean_Elab_Term_instReprPostponeBehavior___closed__1 = _init_l_Lean_Elab_Term_instReprPostponeBehavior___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_instReprPostponeBehavior___closed__1); l_Lean_Elab_Term_instReprPostponeBehavior = _init_l_Lean_Elab_Term_instReprPostponeBehavior(); @@ -23044,51 +24424,57 @@ l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__6 lean_mark_persistent(l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__6); l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7 = _init_l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7(); lean_mark_persistent(l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7); +l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1 = _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__1); +l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2 = _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9___lambda__1___closed__2); l_Lean_Elab_Term_runTactic___lambda__3___closed__1 = _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_runTactic___lambda__3___closed__1); l_Lean_Elab_Term_runTactic___lambda__3___closed__2 = _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_runTactic___lambda__3___closed__2); +l_Lean_Elab_Term_runTactic___lambda__3___closed__3 = _init_l_Lean_Elab_Term_runTactic___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_runTactic___lambda__3___closed__3); l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1 = _init_l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_runPendingTacticsAt___spec__1___closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__5); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__6); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__7); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__8); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__9); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__10); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__11); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__12); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__13); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__14); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__15); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__16); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__17); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650____closed__18); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6650_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__5); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__6); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__7); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__8); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__9); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__10); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__11); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__12); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__13); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__14); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__15); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__16); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__17); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628____closed__18); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_6628_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 0ecadbdf0f..91ed91ff68 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -32,8 +32,9 @@ uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); extern lean_object* l_Lean_trace_profiler_useHearbeats; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___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_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2(lean_object*); +static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__3(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_admitGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__4; @@ -45,7 +46,6 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTac static lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__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_Lean_Elab_Tactic_ensureHasNoMVars(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo___elambda__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_MonadExcept_ofExcept___at_Lean_Elab_Tactic_evalTactic___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_Lean_Elab_Tactic_liftMetaMAtMain(lean_object*); @@ -61,6 +61,8 @@ static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__11; lean_object* l_Lean_indentD(lean_object*); double lean_float_div(double, double); static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6; static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1___closed__2; static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -75,13 +77,11 @@ LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___ LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg(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_Lean_Elab_Tactic_evalTactic_handleEx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___rarg___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519_(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__4___boxed(lean_object**); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___lambda__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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__10; @@ -107,25 +107,25 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withoutRecover___rarg(lean_object*, lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16; static lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainGoal(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_instMonadBacktrackSavedStateTacticM___closed__3; +static lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focus(lean_object*); uint8_t lean_float_decLt(double, double); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaFinishingTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___closed__1; static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__4___closed__4; static lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg___closed__2; +lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Tactic_evalTactic___spec__6(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_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg(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_evalTactic___lambda__5___closed__2; lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(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_getMainModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic_x3f(lean_object*); @@ -142,8 +142,6 @@ uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_ lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__3___closed__1; static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5; -lean_object* l_Lean_PersistentArray_toList___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, uint8_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_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec__1(lean_object*); @@ -154,10 +152,13 @@ static lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_run(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___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_Elab_Tactic_getMainModule___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___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_Lean_Elab_Tactic_mkInitialTacticInfo___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadTacticM___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_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2; @@ -185,18 +186,20 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focusAndDone___rarg(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_instMonadExceptExceptionTacticM___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadTacticM___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_builtinIncrementalTactics; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__4___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg___lambda__1(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_expandEval___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_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__4(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_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalTactic_throwExs___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802_(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__3___closed__2; lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,6 +217,7 @@ lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(le LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getGoals(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getGoals___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_toList(lean_object*); static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__4___closed__5; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__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*); static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__1; @@ -234,6 +238,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg(lean_object LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_expandEval(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_Lean_Elab_Tactic_adaptExpander(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_instMonadTacticM; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(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_evalTactic___lambda__5___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM; @@ -255,20 +260,24 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1(l lean_object* l_ReaderT_instApplicativeOfMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(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_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_orElse(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_eval(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_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(lean_object*, lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoal___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_instAlternativeTacticM___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* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8; LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__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_Lean_profileitM___at_Lean_Elab_Tactic_evalTactic___spec__9(lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -285,6 +294,7 @@ extern lean_object* l_Lean_Elab_macroAttribute; extern lean_object* l_Lean_warningAsError; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals___boxed(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_mkTacticAttribute___closed__1; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13; uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__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_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___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_object*); @@ -308,7 +318,6 @@ static lean_object* l_Lean_Elab_goalsToMessageData___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg___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_Elab_Tactic_tryCatch(lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12; uint8_t l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalTactic___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_evalTactic___spec__4___rarg___boxed(lean_object*, lean_object*); @@ -316,10 +325,9 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); extern lean_object* l_Lean_inheritedTraceOptions; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___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_EXPORT lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focusAndDone___rarg___lambda__1(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,12 +337,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27___boxed(lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(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_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_evalTactic___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___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*); +extern lean_object* l_Lean_Core_interruptExceptionId; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10; static lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withTacticInfoContext(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoal(lean_object*, uint8_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_withRestoreOrSaveFull(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic_throwExs___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_EXPORT lean_object* l_Lean_Elab_Tactic_mkTacticInfo___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*); @@ -342,6 +352,8 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTac LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__7(lean_object*, size_t, size_t, 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_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic___spec__8___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_Elab_Tactic_evalTactic___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_NameSet_empty; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -349,6 +361,7 @@ static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__3; LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_Elab_Tactic_evalTactic___spec__9___rarg___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_Lean_Elab_Term_reportUnsolvedGoals___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAtRaw(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_MVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2; @@ -360,13 +373,13 @@ lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(l LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_expandEval___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_object*); lean_object* l_ReaderT_instFunctorOfMonad___rarg(lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec__1___rarg___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_List_forM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__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_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__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*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__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_Lean_Elab_Tactic_withMacroExpansion(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -382,26 +395,32 @@ LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTa static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5709_(lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___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_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withMainContext(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg(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_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___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*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_instAlternativeTacticM___spec__1___rarg(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15; static lean_object* l_Lean_Elab_Tactic_instOrElseTacticM___closed__1; static lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2; lean_object* l_List_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryCatch___rarg(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_adaptExpander___lambda__1(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo___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_throwError___at_Lean_Elab_Tactic_instAlternativeTacticM___spec__1___rarg___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_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__1(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -436,22 +455,25 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__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___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__5___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_Lean_Elab_Term_reportUnsolvedGoals___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2; static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__4; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___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_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___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_Elab_Tactic_ensureHasNoMVars___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_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__2(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___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_admitGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1___closed__1; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3(lean_object*, lean_object*, lean_object*, uint8_t, 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_setGoals(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_instMonadTacticM___closed__5; @@ -461,7 +483,7 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic__ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadTacticM___lambda__1(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_evalTactic___lambda__4___closed__6; uint8_t l_Lean_Exception_isRuntime(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11; lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_saveState(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__6; @@ -472,17 +494,20 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTactic(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_done(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_run___lambda__1(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_registerBuiltinIncrementalTactic___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9; static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__3; LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___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_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___rarg(lean_object*); extern lean_object* l_Lean_Elab_abortTacticExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_setGoals___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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9; lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); double lean_float_sub(double, double); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__1(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_hasExprMVar(lean_object*); static lean_object* l_Lean_Elab_goalsToMessageData___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1756,13 +1781,17 @@ lean_inc(x_79); x_80 = lean_ctor_get(x_74, 1); lean_inc(x_80); lean_dec(x_74); -x_81 = l_Lean_Exception_isRuntime(x_79); +x_81 = l_Lean_Exception_isInterrupt(x_79); if (x_81 == 0) { uint8_t x_82; -x_82 = l_Lean_Elab_isAbortTacticException(x_79); +x_82 = l_Lean_Exception_isRuntime(x_79); if (x_82 == 0) { +uint8_t x_83; +x_83 = l_Lean_Elab_isAbortTacticException(x_79); +if (x_83 == 0) +{ lean_dec(x_47); lean_dec(x_8); lean_dec(x_7); @@ -1775,21 +1804,21 @@ goto block_45; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_dec(x_79); -x_83 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_73, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_80); +x_84 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_73, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_80); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_49 = x_84; -x_50 = x_85; +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_49 = x_85; +x_50 = x_86; goto block_72; } } @@ -1806,6 +1835,19 @@ x_25 = x_80; goto block_45; } } +else +{ +lean_dec(x_47); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_24 = x_79; +x_25 = x_80; +goto block_45; +} +} block_45: { lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; @@ -1974,488 +2016,522 @@ return x_71; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_125; lean_object* x_126; -x_86 = lean_ctor_get(x_20, 1); -lean_inc(x_86); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_126; lean_object* x_127; +x_87 = lean_ctor_get(x_20, 1); +lean_inc(x_87); lean_dec(x_20); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_1); -lean_ctor_set(x_87, 1, x_19); -x_104 = lean_st_mk_ref(x_87, x_86); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_1); +lean_ctor_set(x_88, 1, x_19); +x_105 = lean_st_mk_ref(x_88, x_87); +x_106 = lean_ctor_get(x_105, 0); lean_inc(x_106); -lean_dec(x_104); -x_125 = l_Lean_Elab_Tactic_run___lambda__1___closed__1; +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_126 = l_Lean_Elab_Tactic_run___lambda__1___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_105); -x_126 = lean_apply_9(x_2, x_125, x_105, x_3, x_4, x_5, x_6, x_7, x_8, x_106); -if (lean_obj_tag(x_126) == 0) +lean_inc(x_106); +x_127 = lean_apply_9(x_2, x_126, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_107); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_127 = lean_ctor_get(x_126, 1); -lean_inc(x_127); -lean_dec(x_126); -x_128 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_125, x_105, x_3, x_4, x_5, x_6, x_7, x_8, x_127); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +x_129 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_126, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_128); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); +x_130 = lean_ctor_get(x_129, 0); lean_inc(x_130); -lean_dec(x_128); -x_107 = x_129; +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); x_108 = x_130; -goto block_124; +x_109 = x_131; +goto block_125; } else { -lean_object* x_131; lean_object* x_132; uint8_t x_133; -x_131 = lean_ctor_get(x_126, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_126, 1); +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_127, 0); lean_inc(x_132); -lean_dec(x_126); -x_133 = l_Lean_Exception_isRuntime(x_131); -if (x_133 == 0) -{ -uint8_t x_134; -x_134 = l_Lean_Elab_isAbortTacticException(x_131); +x_133 = lean_ctor_get(x_127, 1); +lean_inc(x_133); +lean_dec(x_127); +x_134 = l_Lean_Exception_isInterrupt(x_132); if (x_134 == 0) { -lean_dec(x_105); +uint8_t x_135; +x_135 = l_Lean_Exception_isRuntime(x_132); +if (x_135 == 0) +{ +uint8_t x_136; +x_136 = l_Lean_Elab_isAbortTacticException(x_132); +if (x_136 == 0) +{ +lean_dec(x_106); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_88 = x_131; x_89 = x_132; -goto block_103; +x_90 = x_133; +goto block_104; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_131); -x_135 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_125, x_105, x_3, x_4, x_5, x_6, x_7, x_8, x_132); +lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_132); +x_137 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_126, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_133); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_107 = x_136; -x_108 = x_137; -goto block_124; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_108 = x_138; +x_109 = x_139; +goto block_125; } } else { -lean_dec(x_105); +lean_dec(x_106); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_88 = x_131; x_89 = x_132; -goto block_103; +x_90 = x_133; +goto block_104; } } -block_103: +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; 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; -x_90 = lean_st_ref_take(x_4, x_89); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); +lean_dec(x_106); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_89 = x_132; +x_90 = x_133; +goto block_104; +} +} +block_104: +{ +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; +x_91 = lean_st_ref_take(x_4, x_90); +x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_91, 0); +x_93 = lean_ctor_get(x_91, 1); lean_inc(x_93); -x_94 = lean_ctor_get(x_91, 1); +lean_dec(x_91); +x_94 = lean_ctor_get(x_92, 0); lean_inc(x_94); -x_95 = lean_ctor_get(x_91, 3); +x_95 = lean_ctor_get(x_92, 1); lean_inc(x_95); -x_96 = lean_ctor_get(x_91, 4); +x_96 = lean_ctor_get(x_92, 3); lean_inc(x_96); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - lean_ctor_release(x_91, 2); - lean_ctor_release(x_91, 3); - lean_ctor_release(x_91, 4); - x_97 = x_91; +x_97 = lean_ctor_get(x_92, 4); +lean_inc(x_97); +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); + x_98 = x_92; } else { - lean_dec_ref(x_91); - x_97 = lean_box(0); + lean_dec_ref(x_92); + x_98 = lean_box(0); } -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(0, 5, 0); } else { - x_98 = x_97; + x_99 = x_98; } -lean_ctor_set(x_98, 0, x_93); -lean_ctor_set(x_98, 1, x_94); -lean_ctor_set(x_98, 2, x_13); -lean_ctor_set(x_98, 3, x_95); -lean_ctor_set(x_98, 4, x_96); -x_99 = lean_st_ref_set(x_4, x_98, x_92); +lean_ctor_set(x_99, 0, x_94); +lean_ctor_set(x_99, 1, x_95); +lean_ctor_set(x_99, 2, x_13); +lean_ctor_set(x_99, 3, x_96); +lean_ctor_set(x_99, 4, x_97); +x_100 = lean_st_ref_set(x_4, x_99, x_93); lean_dec(x_4); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_101 = x_99; +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; } else { - lean_dec_ref(x_99); - x_101 = lean_box(0); + lean_dec_ref(x_100); + x_102 = lean_box(0); } -if (lean_is_scalar(x_101)) { - x_102 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); } else { - x_102 = x_101; - lean_ctor_set_tag(x_102, 1); + x_103 = x_102; + lean_ctor_set_tag(x_103, 1); } -lean_ctor_set(x_102, 0, x_88); -lean_ctor_set(x_102, 1, x_100); -return x_102; +lean_ctor_set(x_103, 0, x_89); +lean_ctor_set(x_103, 1, x_101); +return x_103; } -block_124: +block_125: { -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_109 = lean_st_ref_get(x_105, x_108); -lean_dec(x_105); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec(x_109); -x_111 = lean_st_ref_take(x_4, x_110); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +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; +x_110 = lean_st_ref_get(x_106, x_109); +lean_dec(x_106); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +lean_dec(x_110); +x_112 = lean_st_ref_take(x_4, x_111); +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_ctor_get(x_112, 0); +x_114 = lean_ctor_get(x_112, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_112, 1); +lean_dec(x_112); +x_115 = lean_ctor_get(x_113, 0); lean_inc(x_115); -x_116 = lean_ctor_get(x_112, 3); +x_116 = lean_ctor_get(x_113, 1); lean_inc(x_116); -x_117 = lean_ctor_get(x_112, 4); +x_117 = lean_ctor_get(x_113, 3); lean_inc(x_117); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - lean_ctor_release(x_112, 2); - lean_ctor_release(x_112, 3); - lean_ctor_release(x_112, 4); - x_118 = x_112; +x_118 = lean_ctor_get(x_113, 4); +lean_inc(x_118); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + lean_ctor_release(x_113, 2); + lean_ctor_release(x_113, 3); + lean_ctor_release(x_113, 4); + x_119 = x_113; } else { - lean_dec_ref(x_112); - x_118 = lean_box(0); + lean_dec_ref(x_113); + x_119 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(0, 5, 0); } else { - x_119 = x_118; + x_120 = x_119; } -lean_ctor_set(x_119, 0, x_114); -lean_ctor_set(x_119, 1, x_115); -lean_ctor_set(x_119, 2, x_13); -lean_ctor_set(x_119, 3, x_116); -lean_ctor_set(x_119, 4, x_117); -x_120 = lean_st_ref_set(x_4, x_119, x_113); +lean_ctor_set(x_120, 0, x_115); +lean_ctor_set(x_120, 1, x_116); +lean_ctor_set(x_120, 2, x_13); +lean_ctor_set(x_120, 3, x_117); +lean_ctor_set(x_120, 4, x_118); +x_121 = lean_st_ref_set(x_4, x_120, x_114); lean_dec(x_4); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; } else { - lean_dec_ref(x_120); - x_122 = lean_box(0); + lean_dec_ref(x_121); + x_123 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(0, 2, 0); } else { - x_123 = x_122; + x_124 = x_123; } -lean_ctor_set(x_123, 0, x_107); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_124, 0, x_108); +lean_ctor_set(x_124, 1, x_122); +return x_124; } } } 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_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_185; lean_object* x_186; -x_138 = lean_ctor_get(x_15, 0); -x_139 = lean_ctor_get(x_15, 1); -x_140 = lean_ctor_get(x_15, 3); -x_141 = lean_ctor_get(x_15, 4); +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_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_187; lean_object* x_188; +x_140 = lean_ctor_get(x_15, 0); +x_141 = lean_ctor_get(x_15, 1); +x_142 = lean_ctor_get(x_15, 3); +x_143 = lean_ctor_get(x_15, 4); +lean_inc(x_143); +lean_inc(x_142); lean_inc(x_141); lean_inc(x_140); -lean_inc(x_139); -lean_inc(x_138); lean_dec(x_15); -x_142 = lean_box(0); -x_143 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_143, 0, x_138); -lean_ctor_set(x_143, 1, x_139); -lean_ctor_set(x_143, 2, x_142); -lean_ctor_set(x_143, 3, x_140); -lean_ctor_set(x_143, 4, x_141); -x_144 = lean_st_ref_set(x_4, x_143, x_16); -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_146 = x_144; +x_144 = lean_box(0); +x_145 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_145, 0, x_140); +lean_ctor_set(x_145, 1, x_141); +lean_ctor_set(x_145, 2, x_144); +lean_ctor_set(x_145, 3, x_142); +lean_ctor_set(x_145, 4, x_143); +x_146 = lean_st_ref_set(x_4, x_145, x_16); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_148 = x_146; } else { - lean_dec_ref(x_144); - x_146 = lean_box(0); + lean_dec_ref(x_146); + x_148 = lean_box(0); } -if (lean_is_scalar(x_146)) { - x_147 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_147 = x_146; - lean_ctor_set_tag(x_147, 1); + x_149 = x_148; + lean_ctor_set_tag(x_149, 1); } -lean_ctor_set(x_147, 0, x_1); -lean_ctor_set(x_147, 1, x_142); -x_164 = lean_st_mk_ref(x_147, x_145); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_185 = l_Lean_Elab_Tactic_run___lambda__1___closed__1; +lean_ctor_set(x_149, 0, x_1); +lean_ctor_set(x_149, 1, x_144); +x_166 = lean_st_mk_ref(x_149, x_147); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_187 = l_Lean_Elab_Tactic_run___lambda__1___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_165); -x_186 = lean_apply_9(x_2, x_185, x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_166); -if (lean_obj_tag(x_186) == 0) +lean_inc(x_167); +x_188 = lean_apply_9(x_2, x_187, x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_168); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_187 = lean_ctor_get(x_186, 1); -lean_inc(x_187); -lean_dec(x_186); -x_188 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_185, x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_187); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_189 = lean_ctor_get(x_188, 0); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_189 = lean_ctor_get(x_188, 1); lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); lean_dec(x_188); -x_167 = x_189; -x_168 = x_190; -goto block_184; -} -else -{ -lean_object* x_191; lean_object* x_192; uint8_t x_193; -x_191 = lean_ctor_get(x_186, 0); +x_190 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_187, x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_189); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_191 = lean_ctor_get(x_190, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_186, 1); +x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); -lean_dec(x_186); -x_193 = l_Lean_Exception_isRuntime(x_191); -if (x_193 == 0) -{ -uint8_t x_194; -x_194 = l_Lean_Elab_isAbortTacticException(x_191); -if (x_194 == 0) -{ -lean_dec(x_165); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_148 = x_191; -x_149 = x_192; -goto block_163; +lean_dec(x_190); +x_169 = x_191; +x_170 = x_192; +goto block_186; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_191); -x_195 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_185, x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_192); +lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_193 = lean_ctor_get(x_188, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_188, 1); +lean_inc(x_194); +lean_dec(x_188); +x_195 = l_Lean_Exception_isInterrupt(x_193); +if (x_195 == 0) +{ +uint8_t x_196; +x_196 = l_Lean_Exception_isRuntime(x_193); +if (x_196 == 0) +{ +uint8_t x_197; +x_197 = l_Lean_Elab_isAbortTacticException(x_193); +if (x_197 == 0) +{ +lean_dec(x_167); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -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_167 = x_196; -x_168 = x_197; -goto block_184; +x_150 = x_193; +x_151 = x_194; +goto block_165; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_193); +x_198 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_187, x_167, x_3, x_4, x_5, x_6, x_7, x_8, x_194); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +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_169 = x_199; +x_170 = x_200; +goto block_186; } } else { -lean_dec(x_165); +lean_dec(x_167); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_148 = x_191; -x_149 = x_192; -goto block_163; +x_150 = x_193; +x_151 = x_194; +goto block_165; } } -block_163: +else { -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_150 = lean_st_ref_take(x_4, x_149); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -x_153 = lean_ctor_get(x_151, 0); +lean_dec(x_167); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_150 = x_193; +x_151 = x_194; +goto block_165; +} +} +block_165: +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_152 = lean_st_ref_take(x_4, x_151); +x_153 = lean_ctor_get(x_152, 0); lean_inc(x_153); -x_154 = lean_ctor_get(x_151, 1); +x_154 = lean_ctor_get(x_152, 1); lean_inc(x_154); -x_155 = lean_ctor_get(x_151, 3); +lean_dec(x_152); +x_155 = lean_ctor_get(x_153, 0); lean_inc(x_155); -x_156 = lean_ctor_get(x_151, 4); +x_156 = lean_ctor_get(x_153, 1); lean_inc(x_156); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - lean_ctor_release(x_151, 2); - lean_ctor_release(x_151, 3); - lean_ctor_release(x_151, 4); - x_157 = x_151; +x_157 = lean_ctor_get(x_153, 3); +lean_inc(x_157); +x_158 = lean_ctor_get(x_153, 4); +lean_inc(x_158); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + lean_ctor_release(x_153, 2); + lean_ctor_release(x_153, 3); + lean_ctor_release(x_153, 4); + x_159 = x_153; } else { - lean_dec_ref(x_151); - x_157 = lean_box(0); + lean_dec_ref(x_153); + x_159 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(0, 5, 0); } else { - x_158 = x_157; + x_160 = x_159; } -lean_ctor_set(x_158, 0, x_153); -lean_ctor_set(x_158, 1, x_154); -lean_ctor_set(x_158, 2, x_13); -lean_ctor_set(x_158, 3, x_155); -lean_ctor_set(x_158, 4, x_156); -x_159 = lean_st_ref_set(x_4, x_158, x_152); +lean_ctor_set(x_160, 0, x_155); +lean_ctor_set(x_160, 1, x_156); +lean_ctor_set(x_160, 2, x_13); +lean_ctor_set(x_160, 3, x_157); +lean_ctor_set(x_160, 4, x_158); +x_161 = lean_st_ref_set(x_4, x_160, x_154); lean_dec(x_4); -x_160 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_161 = x_159; +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_163 = x_161; } else { - lean_dec_ref(x_159); - x_161 = lean_box(0); + lean_dec_ref(x_161); + x_163 = lean_box(0); } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); } else { - x_162 = x_161; - lean_ctor_set_tag(x_162, 1); + x_164 = x_163; + lean_ctor_set_tag(x_164, 1); } -lean_ctor_set(x_162, 0, x_148); -lean_ctor_set(x_162, 1, x_160); -return x_162; +lean_ctor_set(x_164, 0, x_150); +lean_ctor_set(x_164, 1, x_162); +return x_164; } -block_184: +block_186: { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_169 = lean_st_ref_get(x_165, x_168); -lean_dec(x_165); -x_170 = lean_ctor_get(x_169, 1); -lean_inc(x_170); -lean_dec(x_169); -x_171 = lean_st_ref_take(x_4, x_170); -x_172 = lean_ctor_get(x_171, 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; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_171 = lean_st_ref_get(x_167, x_170); +lean_dec(x_167); +x_172 = lean_ctor_get(x_171, 1); lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); lean_dec(x_171); -x_174 = lean_ctor_get(x_172, 0); +x_173 = lean_st_ref_take(x_4, x_172); +x_174 = lean_ctor_get(x_173, 0); lean_inc(x_174); -x_175 = lean_ctor_get(x_172, 1); +x_175 = lean_ctor_get(x_173, 1); lean_inc(x_175); -x_176 = lean_ctor_get(x_172, 3); +lean_dec(x_173); +x_176 = lean_ctor_get(x_174, 0); lean_inc(x_176); -x_177 = lean_ctor_get(x_172, 4); +x_177 = lean_ctor_get(x_174, 1); lean_inc(x_177); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - lean_ctor_release(x_172, 2); - lean_ctor_release(x_172, 3); - lean_ctor_release(x_172, 4); - x_178 = x_172; +x_178 = lean_ctor_get(x_174, 3); +lean_inc(x_178); +x_179 = lean_ctor_get(x_174, 4); +lean_inc(x_179); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + lean_ctor_release(x_174, 3); + lean_ctor_release(x_174, 4); + x_180 = x_174; } else { - lean_dec_ref(x_172); - x_178 = lean_box(0); + lean_dec_ref(x_174); + x_180 = lean_box(0); } -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(0, 5, 0); } else { - x_179 = x_178; + x_181 = x_180; } -lean_ctor_set(x_179, 0, x_174); -lean_ctor_set(x_179, 1, x_175); -lean_ctor_set(x_179, 2, x_13); -lean_ctor_set(x_179, 3, x_176); -lean_ctor_set(x_179, 4, x_177); -x_180 = lean_st_ref_set(x_4, x_179, x_173); +lean_ctor_set(x_181, 0, x_176); +lean_ctor_set(x_181, 1, x_177); +lean_ctor_set(x_181, 2, x_13); +lean_ctor_set(x_181, 3, x_178); +lean_ctor_set(x_181, 4, x_179); +x_182 = lean_st_ref_set(x_4, x_181, x_175); lean_dec(x_4); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_182 = x_180; +x_183 = lean_ctor_get(x_182, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_184 = x_182; } else { - lean_dec_ref(x_180); - x_182 = lean_box(0); + lean_dec_ref(x_182); + x_184 = lean_box(0); } -if (lean_is_scalar(x_182)) { - x_183 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(0, 2, 0); } else { - x_183 = x_182; + x_185 = x_184; } -lean_ctor_set(x_183, 0, x_167); -lean_ctor_set(x_183, 1, x_181); -return x_183; +lean_ctor_set(x_185, 0, x_169); +lean_ctor_set(x_185, 1, x_183); +return x_185; } } } @@ -2620,6 +2696,412 @@ lean_dec(x_3); return x_13; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___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; +x_11 = lean_apply_7(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(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_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_st_ref_get(x_3, x_13); +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); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, x_16); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_12); +lean_ctor_set(x_20, 1, x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_11); +if (x_22 == 0) +{ +return x_11; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_11, 0); +x_24 = lean_ctor_get(x_11, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_11); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___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; +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__1___boxed), 10, 1); +lean_closure_set(x_12, 0, x_4); +x_13 = lean_apply_10(x_1, x_12, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__2), 11, 3); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_4); +lean_closure_set(x_13, 2, x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(x_14, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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; +} +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_2); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_2, 0); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 1); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +lean_dec(x_27); +lean_ctor_set(x_25, 1, x_28); +x_29 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(x_2, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +return x_29; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_29); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_25, 0); +x_39 = lean_ctor_get(x_25, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_25); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_2, 0, x_41); +x_42 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(x_2, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +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); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_42, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_49 = x_42; +} else { + lean_dec_ref(x_42); + 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; +} +} +} +else +{ +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; +x_51 = lean_ctor_get(x_2, 0); +lean_inc(x_51); +lean_dec(x_2); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +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_51); + x_54 = lean_box(0); +} +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +lean_dec(x_53); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_52); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(x_57, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___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_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +else +{ +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; +x_14 = lean_ctor_get(x_1, 0); +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, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_set(x_4, x_16, x_11); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +lean_dec(x_18); +return x_20; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg), 11, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___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: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___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); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_3); +return x_13; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3896,7 +4378,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -3908,7 +4390,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -3921,32 +4406,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -4794,7 +5281,7 @@ lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = l_Lean_PersistentArray_toList___rarg(x_34); +x_36 = l_Lean_MessageLog_toList(x_34); x_37 = lean_box(0); x_38 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(x_36, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); x_39 = lean_ctor_get(x_38, 1); @@ -5471,7 +5958,7 @@ return x_14; } else { -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_72; lean_object* x_73; uint8_t 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_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_74; lean_object* x_75; uint8_t 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; x_15 = lean_ctor_get(x_3, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_3, 1); @@ -5488,25 +5975,25 @@ x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); lean_inc(x_1); x_19 = lean_apply_1(x_18, x_1); -x_72 = lean_ctor_get(x_15, 0); -lean_inc(x_72); +x_74 = lean_ctor_get(x_15, 0); +lean_inc(x_74); lean_dec(x_15); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); -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_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +x_76 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_77 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set_uint8(x_77, sizeof(void*)*1, x_76); lean_inc(x_1); -x_76 = l_Lean_Elab_Tactic_mkInitialTacticInfo(x_1, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg___lambda__1), 11, 1); -lean_closure_set(x_79, 0, x_77); +x_78 = l_Lean_Elab_Tactic_mkInitialTacticInfo(x_1, x_77, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg___lambda__1), 11, 1); +lean_closure_set(x_81, 0, x_79); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5514,8 +6001,8 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_80 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(x_19, x_79, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_78); -if (lean_obj_tag(x_80) == 0) +x_82 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(x_19, x_81, x_77, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); +if (lean_obj_tag(x_82) == 0) { lean_dec(x_17); lean_dec(x_16); @@ -5530,80 +6017,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_80; +return x_82; } else { -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_20 = x_81; -x_21 = x_82; -goto block_71; +lean_object* x_83; lean_object* x_84; +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_20 = x_83; +x_21 = x_84; +goto block_73; } -block_71: +block_73: { uint8_t x_22; -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_dec(x_17); -x_23 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; -x_24 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_unbox(x_25); +x_24 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; +x_25 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); lean_dec(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_box(0); -x_29 = l_Lean_Elab_Tactic_evalTactic_eval___lambda__1(x_20, x_4, x_2, x_1, x_16, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); -return x_29; +x_29 = lean_box(0); +x_30 = l_Lean_Elab_Tactic_evalTactic_eval___lambda__1(x_20, x_4, x_2, x_1, x_16, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +return x_30; } else { -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_30 = lean_ctor_get(x_24, 1); -lean_inc(x_30); -lean_dec(x_24); +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_25, 1); +lean_inc(x_31); +lean_dec(x_25); lean_inc(x_20); -x_31 = l_Lean_Exception_toMessageData(x_20); -x_32 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_23, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_30); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +x_32 = l_Lean_Exception_toMessageData(x_20); +x_33 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_24, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Elab_Tactic_evalTactic_eval___lambda__1(x_20, x_4, x_2, x_1, x_16, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); -return x_35; +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_Elab_Tactic_evalTactic_eval___lambda__1(x_20, x_4, x_2, x_1, x_16, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +return x_36; } } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_20, 0); -lean_inc(x_36); -x_37 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__1; -x_38 = lean_nat_dec_eq(x_36, x_37); -if (x_38 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_20, 0); +lean_inc(x_37); +x_38 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__1; +x_39 = lean_nat_dec_eq(x_37, x_38); +if (x_39 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2; -x_40 = lean_nat_dec_eq(x_36, x_39); -lean_dec(x_36); -if (x_40 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2; +x_41 = lean_nat_dec_eq(x_37, x_40); +lean_dec(x_37); +if (x_41 == 0) { -lean_object* x_41; +lean_object* x_42; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -5617,41 +6108,41 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_17)) { - x_41 = lean_alloc_ctor(1, 2, 0); + x_42 = lean_alloc_ctor(1, 2, 0); } else { - x_41 = x_17; + x_42 = x_17; } -lean_ctor_set(x_41, 0, x_20); -lean_ctor_set(x_41, 1, x_21); -return x_41; +lean_ctor_set(x_42, 0, x_20); +lean_ctor_set(x_42, 1, x_21); +return x_42; } else { -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; uint8_t x_50; +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; uint8_t x_51; lean_dec(x_17); -x_42 = l_Lean_Core_getMessageLog___rarg(x_12, x_21); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +x_43 = l_Lean_Core_getMessageLog___rarg(x_12, x_21); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_PersistentArray_toList___rarg(x_43); -x_46 = lean_box(0); -x_47 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(x_45, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_48); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_MessageLog_toList(x_44); +x_47 = lean_box(0); +x_48 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(x_46, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_49); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; -x_51 = lean_ctor_get(x_49, 0); -x_52 = lean_ctor_get(x_49, 1); -lean_ctor_set(x_49, 1, x_51); -lean_ctor_set(x_49, 0, x_20); -x_53 = lean_array_push(x_4, x_49); -x_54 = 1; +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_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_ctor_set(x_50, 1, x_52); +lean_ctor_set(x_50, 0, x_20); +x_54 = lean_array_push(x_4, x_50); +x_55 = 1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5659,28 +6150,28 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_55 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); +x_56 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_55, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_53); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); x_3 = x_16; -x_4 = x_53; -x_13 = x_56; +x_4 = x_54; +x_13 = x_57; goto _start; } 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; -x_58 = lean_ctor_get(x_49, 0); -x_59 = lean_ctor_get(x_49, 1); +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; +x_59 = lean_ctor_get(x_50, 0); +x_60 = lean_ctor_get(x_50, 1); +lean_inc(x_60); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_49); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_20); -lean_ctor_set(x_60, 1, x_58); -x_61 = lean_array_push(x_4, x_60); -x_62 = 1; +lean_dec(x_50); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_20); +lean_ctor_set(x_61, 1, x_59); +x_62 = lean_array_push(x_4, x_61); +x_63 = 1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5688,24 +6179,24 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_63 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_59); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); +x_64 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_63, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_60); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); x_3 = x_16; -x_4 = x_61; -x_13 = x_64; +x_4 = x_62; +x_13 = x_65; goto _start; } } } else { -uint8_t x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_36); +uint8_t x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_37); lean_dec(x_20); lean_dec(x_17); -x_66 = 1; +x_67 = 1; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -5713,19 +6204,19 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_67 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); +x_68 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); x_3 = x_16; -x_13 = x_68; +x_13 = x_69; goto _start; } } } else { -lean_object* x_70; +lean_object* x_71; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -5739,13 +6230,38 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_17)) { - x_70 = lean_alloc_ctor(1, 2, 0); + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_17; + x_71 = x_17; } -lean_ctor_set(x_70, 0, x_20); -lean_ctor_set(x_70, 1, x_21); -return x_70; +lean_ctor_set(x_71, 0, x_20); +lean_ctor_set(x_71, 1, x_21); +return x_71; +} +} +else +{ +lean_object* x_72; +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_17)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_17; +} +lean_ctor_set(x_72, 0, x_20); +lean_ctor_set(x_72, 1, x_21); +return x_72; } } } @@ -5878,7 +6394,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -5890,7 +6406,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -5903,32 +6422,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -6750,7 +7271,7 @@ return x_15; } else { -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_74; lean_object* x_75; uint8_t 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_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_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; x_16 = lean_ctor_get(x_3, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_3, 1); @@ -6769,25 +7290,25 @@ lean_inc(x_1); x_20 = lean_apply_1(x_19, x_1); x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__1), 10, 1); lean_closure_set(x_21, 0, x_20); -x_74 = lean_ctor_get(x_16, 0); -lean_inc(x_74); +x_76 = lean_ctor_get(x_16, 0); +lean_inc(x_76); lean_dec(x_16); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -lean_dec(x_74); -x_76 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_77 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set_uint8(x_77, sizeof(void*)*1, x_76); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); +x_79 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set_uint8(x_79, sizeof(void*)*1, x_78); lean_inc(x_1); -x_78 = l_Lean_Elab_Tactic_mkInitialTacticInfo(x_1, x_77, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg___lambda__1), 11, 1); -lean_closure_set(x_81, 0, x_79); +x_80 = l_Lean_Elab_Tactic_mkInitialTacticInfo(x_1, x_79, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg___lambda__1), 11, 1); +lean_closure_set(x_83, 0, x_81); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6795,8 +7316,8 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_82 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(x_21, x_81, x_77, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_80); -if (lean_obj_tag(x_82) == 0) +x_84 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(x_21, x_83, x_79, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_82); +if (lean_obj_tag(x_84) == 0) { lean_dec(x_18); lean_dec(x_17); @@ -6812,80 +7333,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_82; +return x_84; } else { -lean_object* x_83; lean_object* x_84; -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_22 = x_83; -x_23 = x_84; -goto block_73; +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_22 = x_85; +x_23 = x_86; +goto block_75; } -block_73: +block_75: { uint8_t x_24; -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ if (lean_obj_tag(x_22) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_dec(x_18); -x_25 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; -x_26 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_unbox(x_27); +x_26 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; +x_27 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); lean_dec(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_box(0); -x_31 = l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__2(x_22, x_5, x_2, x_1, x_17, x_4, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_29); -return x_31; +x_31 = lean_box(0); +x_32 = l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__2(x_22, x_5, x_2, x_1, x_17, x_4, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_30); +return x_32; } 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_26, 1); -lean_inc(x_32); -lean_dec(x_26); +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_27, 1); +lean_inc(x_33); +lean_dec(x_27); lean_inc(x_22); -x_33 = l_Lean_Exception_toMessageData(x_22); -x_34 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_25, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_32); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); +x_34 = l_Lean_Exception_toMessageData(x_22); +x_35 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_26, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_33); +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__2(x_22, x_5, x_2, x_1, x_17, x_4, x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_36); -return x_37; +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__2(x_22, x_5, x_2, x_1, x_17, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_37); +return x_38; } } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_22, 0); -lean_inc(x_38); -x_39 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__1; -x_40 = lean_nat_dec_eq(x_38, x_39); -if (x_40 == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_22, 0); +lean_inc(x_39); +x_40 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__1; +x_41 = lean_nat_dec_eq(x_39, x_40); +if (x_41 == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2; -x_42 = lean_nat_dec_eq(x_38, x_41); -lean_dec(x_38); -if (x_42 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2; +x_43 = lean_nat_dec_eq(x_39, x_42); +lean_dec(x_39); +if (x_43 == 0) { -lean_object* x_43; +lean_object* x_44; lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); @@ -6900,41 +7425,41 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_18)) { - x_43 = lean_alloc_ctor(1, 2, 0); + x_44 = lean_alloc_ctor(1, 2, 0); } else { - x_43 = x_18; + x_44 = x_18; } -lean_ctor_set(x_43, 0, x_22); -lean_ctor_set(x_43, 1, x_23); -return x_43; +lean_ctor_set(x_44, 0, x_22); +lean_ctor_set(x_44, 1, x_23); +return x_44; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +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; uint8_t x_53; lean_dec(x_18); -x_44 = l_Lean_Core_getMessageLog___rarg(x_13, x_23); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); +x_45 = l_Lean_Core_getMessageLog___rarg(x_13, x_23); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_PersistentArray_toList___rarg(x_45); -x_48 = lean_box(0); -x_49 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(x_47, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_46); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = l_Lean_Elab_Tactic_saveState___rarg(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_50); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = l_Lean_MessageLog_toList(x_46); +x_49 = lean_box(0); +x_50 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(x_48, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = l_Lean_Elab_Tactic_saveState___rarg(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_ctor_get(x_51, 1); -lean_ctor_set(x_51, 1, x_53); -lean_ctor_set(x_51, 0, x_22); -x_55 = lean_array_push(x_5, x_51); -x_56 = 1; +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; +x_54 = lean_ctor_get(x_52, 0); +x_55 = lean_ctor_get(x_52, 1); +lean_ctor_set(x_52, 1, x_54); +lean_ctor_set(x_52, 0, x_22); +x_56 = lean_array_push(x_5, x_52); +x_57 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6942,28 +7467,28 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_57 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_54); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); +x_58 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_57, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_55); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); x_3 = x_17; -x_5 = x_55; -x_14 = x_58; +x_5 = x_56; +x_14 = x_59; goto _start; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; -x_60 = lean_ctor_get(x_51, 0); -x_61 = lean_ctor_get(x_51, 1); +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; +x_61 = lean_ctor_get(x_52, 0); +x_62 = lean_ctor_get(x_52, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_22); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_array_push(x_5, x_62); -x_64 = 1; +lean_dec(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_22); +lean_ctor_set(x_63, 1, x_61); +x_64 = lean_array_push(x_5, x_63); +x_65 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6971,24 +7496,24 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_65 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_64, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_61); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); +x_66 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_62); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); x_3 = x_17; -x_5 = x_63; -x_14 = x_66; +x_5 = x_64; +x_14 = x_67; goto _start; } } } else { -uint8_t x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_38); +uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_39); lean_dec(x_22); lean_dec(x_18); -x_68 = 1; +x_69 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6996,19 +7521,19 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_69 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_68, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); +x_70 = l_Lean_Elab_Tactic_SavedState_restore(x_2, x_69, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); x_3 = x_17; -x_14 = x_70; +x_14 = x_71; goto _start; } } } else { -lean_object* x_72; +lean_object* x_73; lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); @@ -7023,13 +7548,39 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_18)) { - x_72 = lean_alloc_ctor(1, 2, 0); + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_18; + x_73 = x_18; } -lean_ctor_set(x_72, 0, x_22); -lean_ctor_set(x_72, 1, x_23); -return x_72; +lean_ctor_set(x_73, 0, x_22); +lean_ctor_set(x_73, 1, x_23); +return x_73; +} +} +else +{ +lean_object* x_74; +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_18)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_18; +} +lean_ctor_set(x_74, 0, x_22); +lean_ctor_set(x_74, 1, x_23); +return x_74; } } } @@ -7099,7 +7650,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -7111,7 +7662,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -7124,32 +7678,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -7459,7 +8015,7 @@ return x_74; } else { -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; 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; size_t x_95; size_t 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; 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_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; uint8_t x_86; lean_object* x_87; uint8_t 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; size_t x_97; size_t 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; 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; x_75 = lean_ctor_get(x_11, 0); x_76 = lean_ctor_get(x_11, 1); x_77 = lean_ctor_get(x_11, 2); @@ -7471,7 +8027,10 @@ x_82 = lean_ctor_get(x_11, 7); x_83 = lean_ctor_get(x_11, 8); x_84 = lean_ctor_get(x_11, 9); x_85 = lean_ctor_get(x_11, 10); -x_86 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_86 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_87 = lean_ctor_get(x_11, 11); +x_88 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +lean_inc(x_87); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); @@ -7484,125 +8043,127 @@ lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); lean_dec(x_11); -x_87 = l_Lean_replaceRef(x_3, x_80); +x_89 = l_Lean_replaceRef(x_3, x_80); lean_dec(x_80); -x_88 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_88, 0, x_75); -lean_ctor_set(x_88, 1, x_76); -lean_ctor_set(x_88, 2, x_77); -lean_ctor_set(x_88, 3, x_78); -lean_ctor_set(x_88, 4, x_79); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_81); -lean_ctor_set(x_88, 7, x_82); -lean_ctor_set(x_88, 8, x_83); -lean_ctor_set(x_88, 9, x_84); -lean_ctor_set(x_88, 10, x_85); -lean_ctor_set_uint8(x_88, sizeof(void*)*11, x_86); -x_89 = lean_st_ref_get(x_12, x_13); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_ctor_get(x_90, 3); +x_90 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_90, 0, x_75); +lean_ctor_set(x_90, 1, x_76); +lean_ctor_set(x_90, 2, x_77); +lean_ctor_set(x_90, 3, x_78); +lean_ctor_set(x_90, 4, x_79); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_81); +lean_ctor_set(x_90, 7, x_82); +lean_ctor_set(x_90, 8, x_83); +lean_ctor_set(x_90, 9, x_84); +lean_ctor_set(x_90, 10, x_85); +lean_ctor_set(x_90, 11, x_87); +lean_ctor_set_uint8(x_90, sizeof(void*)*12, x_86); +lean_ctor_set_uint8(x_90, sizeof(void*)*12 + 1, x_88); +x_91 = lean_st_ref_get(x_12, x_13); +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, 3); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Lean_PersistentArray_toArray___rarg(x_94); +x_96 = lean_array_get_size(x_95); +x_97 = lean_usize_of_nat(x_96); +lean_dec(x_96); +x_98 = 0; +x_99 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_97, x_98, x_95); +x_100 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_100, 0, x_2); +lean_ctor_set(x_100, 1, x_4); +lean_ctor_set(x_100, 2, x_99); +x_101 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_100, x_9, x_10, x_90, x_12, x_93); lean_dec(x_90); -x_93 = l_Lean_PersistentArray_toArray___rarg(x_92); -x_94 = lean_array_get_size(x_93); -x_95 = lean_usize_of_nat(x_94); -lean_dec(x_94); -x_96 = 0; -x_97 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_95, x_96, x_93); -x_98 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_98, 0, x_2); -lean_ctor_set(x_98, 1, x_4); -lean_ctor_set(x_98, 2, x_97); -x_99 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_98, x_9, x_10, x_88, x_12, x_91); -lean_dec(x_88); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = lean_st_ref_take(x_12, x_101); -x_103 = lean_ctor_get(x_102, 0); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; -} else { - lean_dec_ref(x_102); - x_105 = lean_box(0); -} -x_106 = lean_ctor_get(x_103, 0); +lean_dec(x_101); +x_104 = lean_st_ref_take(x_12, x_103); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); lean_inc(x_106); -x_107 = lean_ctor_get(x_103, 1); -lean_inc(x_107); -x_108 = lean_ctor_get(x_103, 2); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_107 = x_104; +} else { + lean_dec_ref(x_104); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_105, 0); lean_inc(x_108); -x_109 = lean_ctor_get(x_103, 4); +x_109 = lean_ctor_get(x_105, 1); lean_inc(x_109); -x_110 = lean_ctor_get(x_103, 5); +x_110 = lean_ctor_get(x_105, 2); lean_inc(x_110); -x_111 = lean_ctor_get(x_103, 6); +x_111 = lean_ctor_get(x_105, 4); lean_inc(x_111); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - lean_ctor_release(x_103, 2); - lean_ctor_release(x_103, 3); - lean_ctor_release(x_103, 4); - lean_ctor_release(x_103, 5); - lean_ctor_release(x_103, 6); - x_112 = x_103; +x_112 = lean_ctor_get(x_105, 5); +lean_inc(x_112); +x_113 = lean_ctor_get(x_105, 6); +lean_inc(x_113); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + lean_ctor_release(x_105, 2); + lean_ctor_release(x_105, 3); + lean_ctor_release(x_105, 4); + lean_ctor_release(x_105, 5); + lean_ctor_release(x_105, 6); + x_114 = x_105; } else { - lean_dec_ref(x_103); - x_112 = lean_box(0); + lean_dec_ref(x_105); + x_114 = lean_box(0); } -if (lean_is_scalar(x_105)) { - x_113 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_107)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_105; + x_115 = x_107; } -lean_ctor_set(x_113, 0, x_3); -lean_ctor_set(x_113, 1, x_100); -x_114 = l_Lean_PersistentArray_push___rarg(x_1, x_113); -if (lean_is_scalar(x_112)) { - x_115 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_115, 0, x_3); +lean_ctor_set(x_115, 1, x_102); +x_116 = l_Lean_PersistentArray_push___rarg(x_1, x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 7, 0); } else { - x_115 = x_112; + x_117 = x_114; } -lean_ctor_set(x_115, 0, x_106); -lean_ctor_set(x_115, 1, x_107); -lean_ctor_set(x_115, 2, x_108); -lean_ctor_set(x_115, 3, x_114); -lean_ctor_set(x_115, 4, x_109); -lean_ctor_set(x_115, 5, x_110); -lean_ctor_set(x_115, 6, x_111); -x_116 = lean_st_ref_set(x_12, x_115, x_104); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_118 = x_116; -} else { - lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_117, 0, x_108); +lean_ctor_set(x_117, 1, x_109); +lean_ctor_set(x_117, 2, x_110); +lean_ctor_set(x_117, 3, x_116); +lean_ctor_set(x_117, 4, x_111); +lean_ctor_set(x_117, 5, x_112); +lean_ctor_set(x_117, 6, x_113); +x_118 = lean_st_ref_set(x_12, x_117, x_106); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); } -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; +x_121 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_120; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_119); +return x_122; } } } @@ -9457,7 +10018,7 @@ uint8_t x_11; x_11 = !lean_is_exclusive(x_8); 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_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; x_12 = lean_ctor_get(x_8, 0); x_13 = lean_ctor_get(x_8, 1); x_14 = lean_ctor_get(x_8, 2); @@ -9469,247 +10030,253 @@ x_19 = lean_ctor_get(x_8, 7); x_20 = lean_ctor_get(x_8, 8); x_21 = lean_ctor_get(x_8, 9); x_22 = lean_ctor_get(x_8, 10); -x_23 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_23 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_24 = lean_ctor_get(x_8, 11); +x_25 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); -lean_inc(x_24); +lean_inc(x_26); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -lean_ctor_set(x_8, 5, x_24); -x_25 = lean_nat_dec_eq(x_15, x_16); -if (x_25 == 0) +lean_ctor_set(x_8, 5, x_26); +x_27 = lean_nat_dec_eq(x_15, x_16); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_8); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_add(x_15, x_26); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_15, x_28); lean_dec(x_15); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_12); -lean_ctor_set(x_28, 1, x_13); -lean_ctor_set(x_28, 2, x_14); -lean_ctor_set(x_28, 3, x_27); -lean_ctor_set(x_28, 4, x_16); -lean_ctor_set(x_28, 5, x_24); -lean_ctor_set(x_28, 6, x_18); -lean_ctor_set(x_28, 7, x_19); -lean_ctor_set(x_28, 8, x_20); -lean_ctor_set(x_28, 9, x_21); -lean_ctor_set(x_28, 10, x_22); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_23); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_12); +lean_ctor_set(x_30, 1, x_13); +lean_ctor_set(x_30, 2, x_14); +lean_ctor_set(x_30, 3, x_29); +lean_ctor_set(x_30, 4, x_16); +lean_ctor_set(x_30, 5, x_26); +lean_ctor_set(x_30, 6, x_18); +lean_ctor_set(x_30, 7, x_19); +lean_ctor_set(x_30, 8, x_20); +lean_ctor_set(x_30, 9, x_21); +lean_ctor_set(x_30, 10, x_22); +lean_ctor_set(x_30, 11, x_24); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_25); switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_29; lean_object* x_30; +lean_object* x_31; lean_object* x_32; 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_29 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_30 = l_Lean_Core_withFreshMacroScope___rarg(x_29, x_28, x_9, x_10); -return x_30; +x_31 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_32 = l_Lean_Core_withFreshMacroScope___rarg(x_31, x_30, x_9, x_10); +return x_32; } case 1: { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_1, 1); -lean_inc(x_31); -x_32 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3; -x_33 = lean_name_eq(x_31, x_32); -lean_dec(x_31); -if (x_33 == 0) +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_1, 1); +lean_inc(x_33); +x_34 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3; +x_35 = lean_name_eq(x_33, x_34); +lean_dec(x_33); +if (x_35 == 0) { -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; +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_inc(x_1); -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__2___boxed), 11, 1); -lean_closure_set(x_34, 0, x_1); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__2___boxed), 11, 1); +lean_closure_set(x_36, 0, x_1); lean_inc(x_1); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__4), 10, 1); -lean_closure_set(x_35, 0, x_1); -x_36 = l_Lean_Syntax_getKind(x_1); -x_37 = 1; -x_38 = l_Lean_Name_toString(x_36, x_37); -x_39 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__5; -x_40 = lean_box(x_37); -x_41 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed), 14, 11); -lean_closure_set(x_41, 0, x_39); -lean_closure_set(x_41, 1, x_34); -lean_closure_set(x_41, 2, x_35); -lean_closure_set(x_41, 3, x_40); -lean_closure_set(x_41, 4, x_38); -lean_closure_set(x_41, 5, x_2); -lean_closure_set(x_41, 6, x_3); -lean_closure_set(x_41, 7, x_4); -lean_closure_set(x_41, 8, x_5); -lean_closure_set(x_41, 9, x_6); -lean_closure_set(x_41, 10, x_7); -x_42 = l_Lean_Core_withFreshMacroScope___rarg(x_41, x_28, x_9, x_10); -return x_42; +x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__4), 10, 1); +lean_closure_set(x_37, 0, x_1); +x_38 = l_Lean_Syntax_getKind(x_1); +x_39 = 1; +x_40 = l_Lean_Name_toString(x_38, x_39); +x_41 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__5; +x_42 = lean_box(x_39); +x_43 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed), 14, 11); +lean_closure_set(x_43, 0, x_41); +lean_closure_set(x_43, 1, x_36); +lean_closure_set(x_43, 2, x_37); +lean_closure_set(x_43, 3, x_42); +lean_closure_set(x_43, 4, x_40); +lean_closure_set(x_43, 5, x_2); +lean_closure_set(x_43, 6, x_3); +lean_closure_set(x_43, 7, x_4); +lean_closure_set(x_43, 8, x_5); +lean_closure_set(x_43, 9, x_6); +lean_closure_set(x_43, 10, x_7); +x_44 = l_Lean_Core_withFreshMacroScope___rarg(x_43, x_30, x_9, x_10); +return x_44; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_43 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_44 = lean_array_get_size(x_43); -x_45 = lean_unsigned_to_nat(0u); -x_46 = lean_nat_dec_lt(x_45, x_44); -if (x_46 == 0) +x_46 = lean_array_get_size(x_45); +x_47 = lean_unsigned_to_nat(0u); +x_48 = lean_nat_dec_lt(x_47, x_46); +if (x_48 == 0) { -lean_object* x_47; lean_object* x_48; -lean_dec(x_44); -lean_dec(x_43); +lean_object* x_49; lean_object* x_50; +lean_dec(x_46); +lean_dec(x_45); 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_47 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_48 = l_Lean_Core_withFreshMacroScope___rarg(x_47, x_28, x_9, x_10); -return x_48; +x_49 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_50 = l_Lean_Core_withFreshMacroScope___rarg(x_49, x_30, x_9, x_10); +return x_50; } else { -uint8_t x_49; -x_49 = lean_nat_dec_le(x_44, x_44); -if (x_49 == 0) +uint8_t x_51; +x_51 = lean_nat_dec_le(x_46, x_46); +if (x_51 == 0) { -lean_object* x_50; lean_object* x_51; -lean_dec(x_44); -lean_dec(x_43); +lean_object* x_52; lean_object* x_53; +lean_dec(x_46); +lean_dec(x_45); 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_50 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_51 = l_Lean_Core_withFreshMacroScope___rarg(x_50, x_28, x_9, x_10); -return x_51; +x_52 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_53 = l_Lean_Core_withFreshMacroScope___rarg(x_52, x_30, x_9, x_10); +return x_53; } else { -size_t 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_usize_of_nat(x_44); -lean_dec(x_44); -x_53 = lean_box(0); -x_54 = l_Lean_Elab_Tactic_evalTactic___lambda__5___boxed__const__1; -x_55 = lean_box_usize(x_52); -x_56 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__7___boxed), 13, 10); -lean_closure_set(x_56, 0, x_43); -lean_closure_set(x_56, 1, x_54); -lean_closure_set(x_56, 2, x_55); -lean_closure_set(x_56, 3, x_53); -lean_closure_set(x_56, 4, x_2); -lean_closure_set(x_56, 5, x_3); -lean_closure_set(x_56, 6, x_4); -lean_closure_set(x_56, 7, x_5); -lean_closure_set(x_56, 8, x_6); -lean_closure_set(x_56, 9, x_7); -x_57 = l_Lean_Core_withFreshMacroScope___rarg(x_56, x_28, x_9, x_10); -return x_57; +size_t 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_usize_of_nat(x_46); +lean_dec(x_46); +x_55 = lean_box(0); +x_56 = l_Lean_Elab_Tactic_evalTactic___lambda__5___boxed__const__1; +x_57 = lean_box_usize(x_54); +x_58 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__7___boxed), 13, 10); +lean_closure_set(x_58, 0, x_45); +lean_closure_set(x_58, 1, x_56); +lean_closure_set(x_58, 2, x_57); +lean_closure_set(x_58, 3, x_55); +lean_closure_set(x_58, 4, x_2); +lean_closure_set(x_58, 5, x_3); +lean_closure_set(x_58, 6, x_4); +lean_closure_set(x_58, 7, x_5); +lean_closure_set(x_58, 8, x_6); +lean_closure_set(x_58, 9, x_7); +x_59 = l_Lean_Core_withFreshMacroScope___rarg(x_58, x_30, x_9, x_10); +return x_59; } } } } case 2: { -lean_object* x_58; uint8_t x_59; +lean_object* x_60; uint8_t x_61; lean_inc(x_1); -x_58 = l_Lean_MessageData_ofSyntax(x_1); -x_59 = !lean_is_exclusive(x_1); -if (x_59 == 0) +x_60 = l_Lean_MessageData_ofSyntax(x_1); +x_61 = !lean_is_exclusive(x_1); +if (x_61 == 0) { -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; -x_60 = lean_ctor_get(x_1, 1); -lean_dec(x_60); -x_61 = lean_ctor_get(x_1, 0); -lean_dec(x_61); -x_62 = l_Lean_indentD(x_58); -x_63 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; +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_62 = lean_ctor_get(x_1, 1); +lean_dec(x_62); +x_63 = lean_ctor_get(x_1, 0); +lean_dec(x_63); +x_64 = l_Lean_indentD(x_60); +x_65 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; lean_ctor_set_tag(x_1, 6); -lean_ctor_set(x_1, 1, x_62); -lean_ctor_set(x_1, 0, x_63); -x_64 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; -x_65 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); -lean_closure_set(x_66, 0, x_65); -lean_closure_set(x_66, 1, x_2); -lean_closure_set(x_66, 2, x_3); -lean_closure_set(x_66, 3, x_4); -lean_closure_set(x_66, 4, x_5); -lean_closure_set(x_66, 5, x_6); -lean_closure_set(x_66, 6, x_7); -x_67 = l_Lean_Core_withFreshMacroScope___rarg(x_66, x_28, x_9, x_10); -return x_67; +lean_ctor_set(x_1, 1, x_64); +lean_ctor_set(x_1, 0, x_65); +x_66 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_67 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_67, 0, x_1); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); +lean_closure_set(x_68, 0, x_67); +lean_closure_set(x_68, 1, x_2); +lean_closure_set(x_68, 2, x_3); +lean_closure_set(x_68, 3, x_4); +lean_closure_set(x_68, 4, x_5); +lean_closure_set(x_68, 5, x_6); +lean_closure_set(x_68, 6, x_7); +x_69 = l_Lean_Core_withFreshMacroScope___rarg(x_68, x_30, x_9, x_10); +return x_69; } else { -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_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_dec(x_1); -x_68 = l_Lean_indentD(x_58); -x_69 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; -x_70 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_70 = l_Lean_indentD(x_60); +x_71 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; x_72 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); -lean_closure_set(x_73, 0, x_72); -lean_closure_set(x_73, 1, x_2); -lean_closure_set(x_73, 2, x_3); -lean_closure_set(x_73, 3, x_4); -lean_closure_set(x_73, 4, x_5); -lean_closure_set(x_73, 5, x_6); -lean_closure_set(x_73, 6, x_7); -x_74 = l_Lean_Core_withFreshMacroScope___rarg(x_73, x_28, x_9, x_10); -return x_74; +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_74 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); +lean_closure_set(x_75, 0, x_74); +lean_closure_set(x_75, 1, x_2); +lean_closure_set(x_75, 2, x_3); +lean_closure_set(x_75, 3, x_4); +lean_closure_set(x_75, 4, x_5); +lean_closure_set(x_75, 5, x_6); +lean_closure_set(x_75, 6, x_7); +x_76 = l_Lean_Core_withFreshMacroScope___rarg(x_75, x_30, x_9, x_10); +return x_76; } } default: { -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; -x_75 = l_Lean_MessageData_ofSyntax(x_1); -x_76 = l_Lean_indentD(x_75); -x_77 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; -x_78 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +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; +x_77 = l_Lean_MessageData_ofSyntax(x_1); +x_78 = l_Lean_indentD(x_77); +x_79 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; x_80 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); -lean_closure_set(x_81, 0, x_80); -lean_closure_set(x_81, 1, x_2); -lean_closure_set(x_81, 2, x_3); -lean_closure_set(x_81, 3, x_4); -lean_closure_set(x_81, 4, x_5); -lean_closure_set(x_81, 5, x_6); -lean_closure_set(x_81, 6, x_7); -x_82 = l_Lean_Core_withFreshMacroScope___rarg(x_81, x_28, x_9, x_10); -return x_82; +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_82 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); +lean_closure_set(x_83, 0, x_82); +lean_closure_set(x_83, 1, x_2); +lean_closure_set(x_83, 2, x_3); +lean_closure_set(x_83, 3, x_4); +lean_closure_set(x_83, 4, x_5); +lean_closure_set(x_83, 5, x_6); +lean_closure_set(x_83, 6, x_7); +x_84 = l_Lean_Core_withFreshMacroScope___rarg(x_83, x_30, x_9, x_10); +return x_84; } } } else { -lean_object* x_83; +lean_object* x_85; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -9721,7 +10288,7 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_1); -x_83 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic___spec__8(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_85 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic___spec__8(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9730,24 +10297,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_83; +return x_85; } } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_84 = lean_ctor_get(x_8, 0); -x_85 = lean_ctor_get(x_8, 1); -x_86 = lean_ctor_get(x_8, 2); -x_87 = lean_ctor_get(x_8, 3); -x_88 = lean_ctor_get(x_8, 4); -x_89 = lean_ctor_get(x_8, 5); -x_90 = lean_ctor_get(x_8, 6); -x_91 = lean_ctor_get(x_8, 7); -x_92 = lean_ctor_get(x_8, 8); -x_93 = lean_ctor_get(x_8, 9); -x_94 = lean_ctor_get(x_8, 10); -x_95 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +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; uint8_t x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_86 = lean_ctor_get(x_8, 0); +x_87 = lean_ctor_get(x_8, 1); +x_88 = lean_ctor_get(x_8, 2); +x_89 = lean_ctor_get(x_8, 3); +x_90 = lean_ctor_get(x_8, 4); +x_91 = lean_ctor_get(x_8, 5); +x_92 = lean_ctor_get(x_8, 6); +x_93 = lean_ctor_get(x_8, 7); +x_94 = lean_ctor_get(x_8, 8); +x_95 = lean_ctor_get(x_8, 9); +x_96 = lean_ctor_get(x_8, 10); +x_97 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_98 = lean_ctor_get(x_8, 11); +x_99 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_98); +lean_inc(x_96); +lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); @@ -9757,262 +10329,266 @@ lean_inc(x_89); lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); -lean_inc(x_85); -lean_inc(x_84); lean_dec(x_8); -x_96 = l_Lean_replaceRef(x_1, x_89); -lean_dec(x_89); +x_100 = l_Lean_replaceRef(x_1, x_91); +lean_dec(x_91); +lean_inc(x_98); +lean_inc(x_96); +lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); -lean_inc(x_91); +lean_inc(x_100); lean_inc(x_90); -lean_inc(x_96); +lean_inc(x_89); lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); -lean_inc(x_85); -lean_inc(x_84); -x_97 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_97, 0, x_84); -lean_ctor_set(x_97, 1, x_85); -lean_ctor_set(x_97, 2, x_86); -lean_ctor_set(x_97, 3, x_87); -lean_ctor_set(x_97, 4, x_88); -lean_ctor_set(x_97, 5, x_96); -lean_ctor_set(x_97, 6, x_90); -lean_ctor_set(x_97, 7, x_91); -lean_ctor_set(x_97, 8, x_92); -lean_ctor_set(x_97, 9, x_93); -lean_ctor_set(x_97, 10, x_94); -lean_ctor_set_uint8(x_97, sizeof(void*)*11, x_95); -x_98 = lean_nat_dec_eq(x_87, x_88); -if (x_98 == 0) +x_101 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_101, 0, x_86); +lean_ctor_set(x_101, 1, x_87); +lean_ctor_set(x_101, 2, x_88); +lean_ctor_set(x_101, 3, x_89); +lean_ctor_set(x_101, 4, x_90); +lean_ctor_set(x_101, 5, x_100); +lean_ctor_set(x_101, 6, x_92); +lean_ctor_set(x_101, 7, x_93); +lean_ctor_set(x_101, 8, x_94); +lean_ctor_set(x_101, 9, x_95); +lean_ctor_set(x_101, 10, x_96); +lean_ctor_set(x_101, 11, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*12, x_97); +lean_ctor_set_uint8(x_101, sizeof(void*)*12 + 1, x_99); +x_102 = lean_nat_dec_eq(x_89, x_90); +if (x_102 == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_97); -x_99 = lean_unsigned_to_nat(1u); -x_100 = lean_nat_add(x_87, x_99); -lean_dec(x_87); -x_101 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_101, 0, x_84); -lean_ctor_set(x_101, 1, x_85); -lean_ctor_set(x_101, 2, x_86); -lean_ctor_set(x_101, 3, x_100); -lean_ctor_set(x_101, 4, x_88); -lean_ctor_set(x_101, 5, x_96); -lean_ctor_set(x_101, 6, x_90); -lean_ctor_set(x_101, 7, x_91); -lean_ctor_set(x_101, 8, x_92); -lean_ctor_set(x_101, 9, x_93); -lean_ctor_set(x_101, 10, x_94); -lean_ctor_set_uint8(x_101, sizeof(void*)*11, x_95); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_101); +x_103 = lean_unsigned_to_nat(1u); +x_104 = lean_nat_add(x_89, x_103); +lean_dec(x_89); +x_105 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_105, 0, x_86); +lean_ctor_set(x_105, 1, x_87); +lean_ctor_set(x_105, 2, x_88); +lean_ctor_set(x_105, 3, x_104); +lean_ctor_set(x_105, 4, x_90); +lean_ctor_set(x_105, 5, x_100); +lean_ctor_set(x_105, 6, x_92); +lean_ctor_set(x_105, 7, x_93); +lean_ctor_set(x_105, 8, x_94); +lean_ctor_set(x_105, 9, x_95); +lean_ctor_set(x_105, 10, x_96); +lean_ctor_set(x_105, 11, x_98); +lean_ctor_set_uint8(x_105, sizeof(void*)*12, x_97); +lean_ctor_set_uint8(x_105, sizeof(void*)*12 + 1, x_99); switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_102; lean_object* x_103; +lean_object* x_106; lean_object* x_107; 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_102 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_103 = l_Lean_Core_withFreshMacroScope___rarg(x_102, x_101, x_9, x_10); -return x_103; +x_106 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_107 = l_Lean_Core_withFreshMacroScope___rarg(x_106, x_105, x_9, x_10); +return x_107; } case 1: { -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_ctor_get(x_1, 1); -lean_inc(x_104); -x_105 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3; -x_106 = lean_name_eq(x_104, x_105); -lean_dec(x_104); -if (x_106 == 0) +lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_108 = lean_ctor_get(x_1, 1); +lean_inc(x_108); +x_109 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3; +x_110 = lean_name_eq(x_108, x_109); +lean_dec(x_108); +if (x_110 == 0) { -lean_object* 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_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_inc(x_1); -x_107 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__2___boxed), 11, 1); -lean_closure_set(x_107, 0, x_1); +x_111 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__2___boxed), 11, 1); +lean_closure_set(x_111, 0, x_1); lean_inc(x_1); -x_108 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__4), 10, 1); -lean_closure_set(x_108, 0, x_1); -x_109 = l_Lean_Syntax_getKind(x_1); -x_110 = 1; -x_111 = l_Lean_Name_toString(x_109, x_110); -x_112 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__5; -x_113 = lean_box(x_110); -x_114 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed), 14, 11); -lean_closure_set(x_114, 0, x_112); -lean_closure_set(x_114, 1, x_107); -lean_closure_set(x_114, 2, x_108); -lean_closure_set(x_114, 3, x_113); -lean_closure_set(x_114, 4, x_111); -lean_closure_set(x_114, 5, x_2); -lean_closure_set(x_114, 6, x_3); -lean_closure_set(x_114, 7, x_4); -lean_closure_set(x_114, 8, x_5); -lean_closure_set(x_114, 9, x_6); -lean_closure_set(x_114, 10, x_7); -x_115 = l_Lean_Core_withFreshMacroScope___rarg(x_114, x_101, x_9, x_10); -return x_115; +x_112 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___lambda__4), 10, 1); +lean_closure_set(x_112, 0, x_1); +x_113 = l_Lean_Syntax_getKind(x_1); +x_114 = 1; +x_115 = l_Lean_Name_toString(x_113, x_114); +x_116 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__5; +x_117 = lean_box(x_114); +x_118 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed), 14, 11); +lean_closure_set(x_118, 0, x_116); +lean_closure_set(x_118, 1, x_111); +lean_closure_set(x_118, 2, x_112); +lean_closure_set(x_118, 3, x_117); +lean_closure_set(x_118, 4, x_115); +lean_closure_set(x_118, 5, x_2); +lean_closure_set(x_118, 6, x_3); +lean_closure_set(x_118, 7, x_4); +lean_closure_set(x_118, 8, x_5); +lean_closure_set(x_118, 9, x_6); +lean_closure_set(x_118, 10, x_7); +x_119 = l_Lean_Core_withFreshMacroScope___rarg(x_118, x_105, x_9, x_10); +return x_119; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_116 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_120 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_117 = lean_array_get_size(x_116); -x_118 = lean_unsigned_to_nat(0u); -x_119 = lean_nat_dec_lt(x_118, x_117); -if (x_119 == 0) +x_121 = lean_array_get_size(x_120); +x_122 = lean_unsigned_to_nat(0u); +x_123 = lean_nat_dec_lt(x_122, x_121); +if (x_123 == 0) { -lean_object* x_120; lean_object* x_121; -lean_dec(x_117); -lean_dec(x_116); +lean_object* x_124; lean_object* x_125; +lean_dec(x_121); +lean_dec(x_120); 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_120 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_121 = l_Lean_Core_withFreshMacroScope___rarg(x_120, x_101, x_9, x_10); -return x_121; +x_124 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_125 = l_Lean_Core_withFreshMacroScope___rarg(x_124, x_105, x_9, x_10); +return x_125; } else { -uint8_t x_122; -x_122 = lean_nat_dec_le(x_117, x_117); -if (x_122 == 0) +uint8_t x_126; +x_126 = lean_nat_dec_le(x_121, x_121); +if (x_126 == 0) { -lean_object* x_123; lean_object* x_124; -lean_dec(x_117); -lean_dec(x_116); +lean_object* x_127; lean_object* x_128; +lean_dec(x_121); +lean_dec(x_120); 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_123 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; -x_124 = l_Lean_Core_withFreshMacroScope___rarg(x_123, x_101, x_9, x_10); -return x_124; +x_127 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__1; +x_128 = l_Lean_Core_withFreshMacroScope___rarg(x_127, x_105, x_9, x_10); +return x_128; } else { -size_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_125 = lean_usize_of_nat(x_117); -lean_dec(x_117); -x_126 = lean_box(0); -x_127 = l_Lean_Elab_Tactic_evalTactic___lambda__5___boxed__const__1; -x_128 = lean_box_usize(x_125); -x_129 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__7___boxed), 13, 10); -lean_closure_set(x_129, 0, x_116); -lean_closure_set(x_129, 1, x_127); -lean_closure_set(x_129, 2, x_128); -lean_closure_set(x_129, 3, x_126); -lean_closure_set(x_129, 4, x_2); -lean_closure_set(x_129, 5, x_3); -lean_closure_set(x_129, 6, x_4); -lean_closure_set(x_129, 7, x_5); -lean_closure_set(x_129, 8, x_6); -lean_closure_set(x_129, 9, x_7); -x_130 = l_Lean_Core_withFreshMacroScope___rarg(x_129, x_101, x_9, x_10); -return x_130; +size_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = lean_usize_of_nat(x_121); +lean_dec(x_121); +x_130 = lean_box(0); +x_131 = l_Lean_Elab_Tactic_evalTactic___lambda__5___boxed__const__1; +x_132 = lean_box_usize(x_129); +x_133 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__7___boxed), 13, 10); +lean_closure_set(x_133, 0, x_120); +lean_closure_set(x_133, 1, x_131); +lean_closure_set(x_133, 2, x_132); +lean_closure_set(x_133, 3, x_130); +lean_closure_set(x_133, 4, x_2); +lean_closure_set(x_133, 5, x_3); +lean_closure_set(x_133, 6, x_4); +lean_closure_set(x_133, 7, x_5); +lean_closure_set(x_133, 8, x_6); +lean_closure_set(x_133, 9, x_7); +x_134 = l_Lean_Core_withFreshMacroScope___rarg(x_133, x_105, x_9, x_10); +return x_134; } } } } case 2: { -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_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_inc(x_1); -x_131 = l_Lean_MessageData_ofSyntax(x_1); +x_135 = l_Lean_MessageData_ofSyntax(x_1); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_132 = x_1; + x_136 = x_1; } else { lean_dec_ref(x_1); - x_132 = lean_box(0); + x_136 = lean_box(0); } -x_133 = l_Lean_indentD(x_131); -x_134 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; -if (lean_is_scalar(x_132)) { - x_135 = lean_alloc_ctor(6, 2, 0); +x_137 = l_Lean_indentD(x_135); +x_138 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(6, 2, 0); } else { - x_135 = x_132; - lean_ctor_set_tag(x_135, 6); + x_139 = x_136; + lean_ctor_set_tag(x_139, 6); } -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_133); -x_136 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; -x_137 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -x_138 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); -lean_closure_set(x_138, 0, x_137); -lean_closure_set(x_138, 1, x_2); -lean_closure_set(x_138, 2, x_3); -lean_closure_set(x_138, 3, x_4); -lean_closure_set(x_138, 4, x_5); -lean_closure_set(x_138, 5, x_6); -lean_closure_set(x_138, 6, x_7); -x_139 = l_Lean_Core_withFreshMacroScope___rarg(x_138, x_101, x_9, x_10); -return x_139; +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +x_140 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_141 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +x_142 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); +lean_closure_set(x_142, 0, x_141); +lean_closure_set(x_142, 1, x_2); +lean_closure_set(x_142, 2, x_3); +lean_closure_set(x_142, 3, x_4); +lean_closure_set(x_142, 4, x_5); +lean_closure_set(x_142, 5, x_6); +lean_closure_set(x_142, 6, x_7); +x_143 = l_Lean_Core_withFreshMacroScope___rarg(x_142, x_105, x_9, x_10); +return x_143; } default: { -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; -x_140 = l_Lean_MessageData_ofSyntax(x_1); -x_141 = l_Lean_indentD(x_140); -x_142 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; -x_143 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; -x_145 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -x_146 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); -lean_closure_set(x_146, 0, x_145); -lean_closure_set(x_146, 1, x_2); -lean_closure_set(x_146, 2, x_3); -lean_closure_set(x_146, 3, x_4); -lean_closure_set(x_146, 4, x_5); -lean_closure_set(x_146, 5, x_6); -lean_closure_set(x_146, 6, x_7); -x_147 = l_Lean_Core_withFreshMacroScope___rarg(x_146, x_101, x_9, x_10); -return x_147; +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; +x_144 = l_Lean_MessageData_ofSyntax(x_1); +x_145 = l_Lean_indentD(x_144); +x_146 = l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__7; +x_147 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +x_148 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_149 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed), 10, 7); +lean_closure_set(x_150, 0, x_149); +lean_closure_set(x_150, 1, x_2); +lean_closure_set(x_150, 2, x_3); +lean_closure_set(x_150, 3, x_4); +lean_closure_set(x_150, 4, x_5); +lean_closure_set(x_150, 5, x_6); +lean_closure_set(x_150, 6, x_7); +x_151 = l_Lean_Core_withFreshMacroScope___rarg(x_150, x_105, x_9, x_10); +return x_151; } } } else { -lean_object* x_148; +lean_object* x_152; +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_95); lean_dec(x_94); lean_dec(x_93); lean_dec(x_92); -lean_dec(x_91); lean_dec(x_90); +lean_dec(x_89); lean_dec(x_88); lean_dec(x_87); lean_dec(x_86); -lean_dec(x_85); -lean_dec(x_84); lean_dec(x_1); -x_148 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic___spec__8(x_96, x_2, x_3, x_4, x_5, x_6, x_7, x_97, x_9, x_10); +x_152 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic___spec__8(x_100, x_2, x_3, x_4, x_5, x_6, x_7, x_101, x_9, x_10); lean_dec(x_9); -lean_dec(x_97); +lean_dec(x_101); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_148; +return x_152; } } } @@ -11056,10 +11632,204 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focusAndDone___rarg), 10, 0) return x_2; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__2; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -11067,1304 +11837,758 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___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_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; uint8_t x_379; uint8_t x_380; -x_379 = 2; -x_380 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_379); -if (x_380 == 0) +lean_object* x_13; uint8_t x_188; uint8_t x_189; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_188 = 2; +x_189 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_188); +if (x_189 == 0) { -lean_object* x_381; -x_381 = lean_box(0); -x_13 = x_381; -goto block_378; +lean_object* x_190; +x_190 = lean_box(0); +x_13 = x_190; +goto block_187; } else { -lean_object* x_382; uint8_t x_383; +lean_object* x_191; uint8_t x_192; lean_inc(x_2); -x_382 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_383 = lean_unbox(x_382); -lean_dec(x_382); -if (x_383 == 0) +x_191 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_192 = lean_unbox(x_191); +lean_dec(x_191); +if (x_192 == 0) { -lean_object* x_384; -x_384 = lean_box(0); -x_13 = x_384; -goto block_378; +lean_object* x_193; +x_193 = lean_box(0); +x_13 = x_193; +goto block_187; } else { -lean_object* x_385; lean_object* x_386; +lean_object* x_194; lean_object* x_195; lean_dec(x_10); +lean_dec(x_9); lean_dec(x_2); -x_385 = lean_box(0); -x_386 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_386, 0, x_385); -lean_ctor_set(x_386, 1, x_12); -return x_386; +lean_dec(x_1); +x_194 = lean_box(0); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_12); +return x_195; } } -block_378: +block_187: { -uint8_t x_14; lean_object* x_372; uint8_t x_373; uint8_t x_374; +uint8_t x_14; lean_object* x_181; uint8_t x_182; uint8_t x_183; lean_dec(x_13); -x_372 = lean_ctor_get(x_10, 2); -lean_inc(x_372); -x_373 = 1; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +x_181 = lean_ctor_get(x_10, 2); +lean_inc(x_181); +x_182 = 1; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_dec(x_372); +lean_dec(x_181); x_14 = x_3; -goto block_371; +goto block_180; } else { -lean_object* x_375; uint8_t x_376; -x_375 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; -x_376 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_372, x_375); -lean_dec(x_372); -if (x_376 == 0) +lean_object* x_184; uint8_t x_185; +x_184 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2; +x_185 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_181, x_184); +lean_dec(x_181); +if (x_185 == 0) { x_14 = x_3; -goto block_371; +goto block_180; } else { -uint8_t x_377; -x_377 = 2; -x_14 = x_377; -goto block_371; +uint8_t x_186; +x_186 = 2; +x_14 = x_186; +goto block_180; } } -block_371: +block_180: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_15 = lean_ctor_get(x_10, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_10, 1); lean_inc(x_16); x_17 = lean_ctor_get(x_10, 5); lean_inc(x_17); -x_18 = lean_ctor_get(x_10, 6); -lean_inc(x_18); -x_19 = lean_ctor_get(x_10, 7); -lean_inc(x_19); -x_20 = l_Lean_replaceRef(x_1, x_17); +x_18 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_19 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_21 = 0; -x_22 = l_Lean_Syntax_getPos_x3f(x_20, x_21); -x_23 = l_Lean_Syntax_getTailPos_x3f(x_20, x_21); +lean_dec(x_1); +x_20 = 0; +x_21 = l_Lean_Syntax_getPos_x3f(x_19, x_20); +x_22 = l_Lean_Syntax_getTailPos_x3f(x_19, x_20); +if (lean_obj_tag(x_21) == 0) +{ if (lean_obj_tag(x_22) == 0) { -if (lean_obj_tag(x_23) == 0) +lean_object* x_23; uint8_t x_24; +x_23 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +x_27 = lean_unsigned_to_nat(0u); +x_28 = l_Lean_FileMap_toPosition(x_16, x_27); +lean_inc(x_28); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +if (x_18 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_free_object(x_23); +x_30 = lean_box(0); +x_31 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_25, x_15, x_28, x_29, x_14, x_30, x_10, x_11, x_26); lean_dec(x_10); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +return x_31; +} +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_object* x_36; uint8_t x_37; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -x_28 = lean_unsigned_to_nat(0u); -x_29 = l_Lean_FileMap_toPosition(x_16, x_28); -lean_inc(x_29); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_24, 1, x_19); -lean_ctor_set(x_24, 0, x_18); -x_31 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_31, 0, x_24); -lean_ctor_set(x_31, 1, x_26); -x_32 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_33 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_33, 0, x_15); -lean_ctor_set(x_33, 1, x_29); -lean_ctor_set(x_33, 2, x_30); -lean_ctor_set(x_33, 3, x_32); -lean_ctor_set(x_33, 4, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_33, sizeof(void*)*5 + 1, x_14); -x_34 = lean_st_ref_take(x_11, x_27); -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_is_exclusive(x_35); -if (x_37 == 0) +lean_object* x_32; uint8_t x_33; +x_32 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_25); +x_33 = l_Lean_MessageData_hasTag(x_32, x_25); +if (x_33 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_35, 5); -x_39 = l_Lean_PersistentArray_push___rarg(x_38, x_33); -lean_ctor_set(x_35, 5, x_39); -x_40 = lean_st_ref_set(x_11, x_35, x_36); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +lean_object* x_34; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_25); +lean_dec(x_15); +lean_dec(x_10); +x_34 = lean_box(0); +lean_ctor_set(x_23, 0, x_34); +return x_23; +} +else +{ +lean_object* x_35; lean_object* x_36; +lean_free_object(x_23); +x_35 = lean_box(0); +x_36 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_25, x_15, x_28, x_29, x_14, x_35, x_10, x_11, x_26); +lean_dec(x_10); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_23, 0); +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_23); +x_39 = lean_unsigned_to_nat(0u); +x_40 = l_Lean_FileMap_toPosition(x_16, x_39); +lean_inc(x_40); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +if (x_18 == 0) { lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -x_43 = lean_box(0); -lean_ctor_set(x_40, 0, x_43); -return x_40; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_37, x_15, x_40, x_41, x_14, x_42, x_10, x_11, x_38); +lean_dec(x_10); +return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_40, 1); -lean_inc(x_44); +lean_object* x_44; uint8_t x_45; +x_44 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_37); +x_45 = l_Lean_MessageData_hasTag(x_44, x_37); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_41); lean_dec(x_40); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_dec(x_37); +lean_dec(x_15); +lean_dec(x_10); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_38); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(0); +x_49 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_37, x_15, x_40, x_41, x_14, x_48, x_10, x_11, x_38); +lean_dec(x_10); +return x_49; +} +} } } else { -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; -x_47 = lean_ctor_get(x_35, 0); -x_48 = lean_ctor_get(x_35, 1); -x_49 = lean_ctor_get(x_35, 2); -x_50 = lean_ctor_get(x_35, 3); -x_51 = lean_ctor_get(x_35, 4); -x_52 = lean_ctor_get(x_35, 5); -x_53 = lean_ctor_get(x_35, 6); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_35); -x_54 = l_Lean_PersistentArray_push___rarg(x_52, x_33); -x_55 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_55, 0, x_47); -lean_ctor_set(x_55, 1, x_48); -lean_ctor_set(x_55, 2, x_49); -lean_ctor_set(x_55, 3, x_50); -lean_ctor_set(x_55, 4, x_51); -lean_ctor_set(x_55, 5, x_54); -lean_ctor_set(x_55, 6, x_53); -x_56 = lean_st_ref_set(x_11, x_55, x_36); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_58 = x_56; -} else { - lean_dec_ref(x_56); - x_58 = lean_box(0); -} +uint8_t x_50; +x_50 = !lean_is_exclusive(x_22); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_22, 0); +x_52 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_54 = lean_ctor_get(x_52, 0); +x_55 = lean_ctor_get(x_52, 1); +x_56 = lean_unsigned_to_nat(0u); +lean_inc(x_16); +x_57 = l_Lean_FileMap_toPosition(x_16, x_56); +x_58 = l_Lean_FileMap_toPosition(x_16, x_51); +lean_dec(x_51); +lean_ctor_set(x_22, 0, x_58); +if (x_18 == 0) +{ +lean_object* x_59; lean_object* x_60; +lean_free_object(x_52); x_59 = lean_box(0); -if (lean_is_scalar(x_58)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_58; -} -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_57); +x_60 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_54, x_15, x_57, x_22, x_14, x_59, x_10, x_11, x_55); +lean_dec(x_10); return x_60; } -} else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_61 = lean_ctor_get(x_24, 0); -x_62 = lean_ctor_get(x_24, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_24); -x_63 = lean_unsigned_to_nat(0u); -x_64 = l_Lean_FileMap_toPosition(x_16, x_63); -lean_inc(x_64); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_18); -lean_ctor_set(x_66, 1, x_19); -x_67 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_61); -x_68 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_69 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_69, 0, x_15); -lean_ctor_set(x_69, 1, x_64); -lean_ctor_set(x_69, 2, x_65); -lean_ctor_set(x_69, 3, x_68); -lean_ctor_set(x_69, 4, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_69, sizeof(void*)*5 + 1, x_14); -x_70 = lean_st_ref_take(x_11, x_62); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -x_75 = lean_ctor_get(x_71, 2); -lean_inc(x_75); -x_76 = lean_ctor_get(x_71, 3); -lean_inc(x_76); -x_77 = lean_ctor_get(x_71, 4); -lean_inc(x_77); -x_78 = lean_ctor_get(x_71, 5); -lean_inc(x_78); -x_79 = lean_ctor_get(x_71, 6); -lean_inc(x_79); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - lean_ctor_release(x_71, 2); - lean_ctor_release(x_71, 3); - lean_ctor_release(x_71, 4); - lean_ctor_release(x_71, 5); - lean_ctor_release(x_71, 6); - x_80 = x_71; -} else { - lean_dec_ref(x_71); - x_80 = lean_box(0); -} -x_81 = l_Lean_PersistentArray_push___rarg(x_78, x_69); -if (lean_is_scalar(x_80)) { - x_82 = lean_alloc_ctor(0, 7, 0); -} else { - x_82 = x_80; -} -lean_ctor_set(x_82, 0, x_73); -lean_ctor_set(x_82, 1, x_74); -lean_ctor_set(x_82, 2, x_75); -lean_ctor_set(x_82, 3, x_76); -lean_ctor_set(x_82, 4, x_77); -lean_ctor_set(x_82, 5, x_81); -lean_ctor_set(x_82, 6, x_79); -x_83 = lean_st_ref_set(x_11, x_82, x_72); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -x_86 = lean_box(0); -if (lean_is_scalar(x_85)) { - x_87 = lean_alloc_ctor(0, 2, 0); -} else { - x_87 = x_85; -} -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_84); -return x_87; -} -} -else +lean_object* x_61; uint8_t x_62; +x_61 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_54); +x_62 = l_Lean_MessageData_hasTag(x_61, x_54); +if (x_62 == 0) { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_23); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_89 = lean_ctor_get(x_23, 0); -x_90 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_object* x_63; +lean_dec(x_22); +lean_dec(x_57); +lean_dec(x_54); +lean_dec(x_15); lean_dec(x_10); -x_91 = !lean_is_exclusive(x_90); +x_63 = lean_box(0); +lean_ctor_set(x_52, 0, x_63); +return x_52; +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_free_object(x_52); +x_64 = lean_box(0); +x_65 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_54, x_15, x_57, x_22, x_14, x_64, x_10, x_11, x_55); +lean_dec(x_10); +return x_65; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_66 = lean_ctor_get(x_52, 0); +x_67 = lean_ctor_get(x_52, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_52); +x_68 = lean_unsigned_to_nat(0u); +lean_inc(x_16); +x_69 = l_Lean_FileMap_toPosition(x_16, x_68); +x_70 = l_Lean_FileMap_toPosition(x_16, x_51); +lean_dec(x_51); +lean_ctor_set(x_22, 0, x_70); +if (x_18 == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_66, x_15, x_69, x_22, x_14, x_71, x_10, x_11, x_67); +lean_dec(x_10); +return x_72; +} +else +{ +lean_object* x_73; uint8_t x_74; +x_73 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_66); +x_74 = l_Lean_MessageData_hasTag(x_73, x_66); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_22); +lean_dec(x_69); +lean_dec(x_66); +lean_dec(x_15); +lean_dec(x_10); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_67); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_box(0); +x_78 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_66, x_15, x_69, x_22, x_14, x_77, x_10, x_11, x_67); +lean_dec(x_10); +return x_78; +} +} +} +} +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; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_79 = lean_ctor_get(x_22, 0); +lean_inc(x_79); +lean_dec(x_22); +x_80 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_81 = lean_ctor_get(x_80, 0); +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; +} else { + lean_dec_ref(x_80); + x_83 = lean_box(0); +} +x_84 = lean_unsigned_to_nat(0u); +lean_inc(x_16); +x_85 = l_Lean_FileMap_toPosition(x_16, x_84); +x_86 = l_Lean_FileMap_toPosition(x_16, x_79); +lean_dec(x_79); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_86); +if (x_18 == 0) +{ +lean_object* x_88; lean_object* x_89; +lean_dec(x_83); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_81, x_15, x_85, x_87, x_14, x_88, x_10, x_11, x_82); +lean_dec(x_10); +return x_89; +} +else +{ +lean_object* x_90; uint8_t x_91; +x_90 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_81); +x_91 = l_Lean_MessageData_hasTag(x_90, x_81); if (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; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_92 = lean_ctor_get(x_90, 0); -x_93 = lean_ctor_get(x_90, 1); -x_94 = lean_unsigned_to_nat(0u); -lean_inc(x_16); -x_95 = l_Lean_FileMap_toPosition(x_16, x_94); -x_96 = l_Lean_FileMap_toPosition(x_16, x_89); -lean_dec(x_89); -lean_ctor_set(x_23, 0, x_96); -lean_ctor_set(x_90, 1, x_19); -lean_ctor_set(x_90, 0, x_18); -x_97 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_97, 0, x_90); -lean_ctor_set(x_97, 1, x_92); -x_98 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_99 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_99, 0, x_15); -lean_ctor_set(x_99, 1, x_95); -lean_ctor_set(x_99, 2, x_23); -lean_ctor_set(x_99, 3, x_98); -lean_ctor_set(x_99, 4, x_97); -lean_ctor_set_uint8(x_99, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_99, sizeof(void*)*5 + 1, x_14); -x_100 = lean_st_ref_take(x_11, x_93); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = !lean_is_exclusive(x_101); -if (x_103 == 0) +lean_object* x_92; lean_object* x_93; +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_81); +lean_dec(x_15); +lean_dec(x_10); +x_92 = lean_box(0); +if (lean_is_scalar(x_83)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_83; +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_82); +return x_93; +} +else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_104 = lean_ctor_get(x_101, 5); -x_105 = l_Lean_PersistentArray_push___rarg(x_104, x_99); -lean_ctor_set(x_101, 5, x_105); -x_106 = lean_st_ref_set(x_11, x_101, x_102); -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) +lean_object* x_94; lean_object* x_95; +lean_dec(x_83); +x_94 = lean_box(0); +x_95 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_81, x_15, x_85, x_87, x_14, x_94, x_10, x_11, x_82); +lean_dec(x_10); +return x_95; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_21); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_97 = lean_ctor_get(x_21, 0); +x_98 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_98, 0); +x_101 = lean_ctor_get(x_98, 1); +x_102 = l_Lean_FileMap_toPosition(x_16, x_97); +lean_dec(x_97); +lean_inc(x_102); +lean_ctor_set(x_21, 0, x_102); +if (x_18 == 0) +{ +lean_object* x_103; lean_object* x_104; +lean_free_object(x_98); +x_103 = lean_box(0); +x_104 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_100, x_15, x_102, x_21, x_14, x_103, x_10, x_11, x_101); +lean_dec(x_10); +return x_104; +} +else +{ +lean_object* x_105; uint8_t x_106; +x_105 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_100); +x_106 = l_Lean_MessageData_hasTag(x_105, x_100); +if (x_106 == 0) +{ +lean_object* x_107; +lean_dec(x_21); +lean_dec(x_102); +lean_dec(x_100); +lean_dec(x_15); +lean_dec(x_10); +x_107 = lean_box(0); +lean_ctor_set(x_98, 0, x_107); +return x_98; +} +else { lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_106, 0); -lean_dec(x_108); -x_109 = lean_box(0); -lean_ctor_set(x_106, 0, x_109); -return x_106; +lean_free_object(x_98); +x_108 = lean_box(0); +x_109 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_100, x_15, x_102, x_21, x_14, x_108, x_10, x_11, x_101); +lean_dec(x_10); +return x_109; +} +} } else { lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_106, 1); +x_110 = lean_ctor_get(x_98, 0); +x_111 = lean_ctor_get(x_98, 1); +lean_inc(x_111); lean_inc(x_110); -lean_dec(x_106); -x_111 = lean_box(0); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_dec(x_98); +x_112 = l_Lean_FileMap_toPosition(x_16, x_97); +lean_dec(x_97); +lean_inc(x_112); +lean_ctor_set(x_21, 0, x_112); +if (x_18 == 0) +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_110, x_15, x_112, x_21, x_14, x_113, x_10, x_11, x_111); +lean_dec(x_10); +return x_114; +} +else +{ +lean_object* x_115; uint8_t x_116; +x_115 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_110); +x_116 = l_Lean_MessageData_hasTag(x_115, x_110); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_21); +lean_dec(x_112); +lean_dec(x_110); +lean_dec(x_15); +lean_dec(x_10); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_111); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; +x_119 = lean_box(0); +x_120 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_110, x_15, x_112, x_21, x_14, x_119, x_10, x_11, x_111); +lean_dec(x_10); +return x_120; +} +} } } else { -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_113 = lean_ctor_get(x_101, 0); -x_114 = lean_ctor_get(x_101, 1); -x_115 = lean_ctor_get(x_101, 2); -x_116 = lean_ctor_get(x_101, 3); -x_117 = lean_ctor_get(x_101, 4); -x_118 = lean_ctor_get(x_101, 5); -x_119 = lean_ctor_get(x_101, 6); -lean_inc(x_119); -lean_inc(x_118); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_101); -x_120 = l_Lean_PersistentArray_push___rarg(x_118, x_99); -x_121 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_121, 0, x_113); -lean_ctor_set(x_121, 1, x_114); -lean_ctor_set(x_121, 2, x_115); -lean_ctor_set(x_121, 3, x_116); -lean_ctor_set(x_121, 4, x_117); -lean_ctor_set(x_121, 5, x_120); -lean_ctor_set(x_121, 6, x_119); -x_122 = lean_st_ref_set(x_11, x_121, x_102); -x_123 = lean_ctor_get(x_122, 1); +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; +x_121 = lean_ctor_get(x_21, 0); +lean_inc(x_121); +lean_dec(x_21); +x_122 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +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_124 = x_122; + x_125 = x_122; } else { lean_dec_ref(x_122); - x_124 = lean_box(0); -} -x_125 = lean_box(0); -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -return x_126; + x_125 = lean_box(0); } +x_126 = l_Lean_FileMap_toPosition(x_16, x_121); +lean_dec(x_121); +lean_inc(x_126); +x_127 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_127, 0, x_126); +if (x_18 == 0) +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_125); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_123, x_15, x_126, x_127, x_14, x_128, x_10, x_11, x_124); +lean_dec(x_10); +return x_129; } 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_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_127 = lean_ctor_get(x_90, 0); -x_128 = lean_ctor_get(x_90, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_90); -x_129 = lean_unsigned_to_nat(0u); -lean_inc(x_16); -x_130 = l_Lean_FileMap_toPosition(x_16, x_129); -x_131 = l_Lean_FileMap_toPosition(x_16, x_89); -lean_dec(x_89); -lean_ctor_set(x_23, 0, x_131); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_18); -lean_ctor_set(x_132, 1, x_19); -x_133 = lean_alloc_ctor(3, 2, 0); +lean_object* x_130; uint8_t x_131; +x_130 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_123); +x_131 = l_Lean_MessageData_hasTag(x_130, x_123); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_123); +lean_dec(x_15); +lean_dec(x_10); +x_132 = lean_box(0); +if (lean_is_scalar(x_125)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_125; +} lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_127); -x_134 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_135 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_135, 0, x_15); -lean_ctor_set(x_135, 1, x_130); -lean_ctor_set(x_135, 2, x_23); -lean_ctor_set(x_135, 3, x_134); -lean_ctor_set(x_135, 4, x_133); -lean_ctor_set_uint8(x_135, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_135, sizeof(void*)*5 + 1, x_14); -x_136 = lean_st_ref_take(x_11, x_128); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); +lean_ctor_set(x_133, 1, x_124); +return x_133; +} +else +{ +lean_object* x_134; lean_object* x_135; +lean_dec(x_125); +x_134 = lean_box(0); +x_135 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_123, x_15, x_126, x_127, x_14, x_134, x_10, x_11, x_124); +lean_dec(x_10); +return x_135; +} +} +} +} +else +{ +lean_object* x_136; uint8_t x_137; +x_136 = lean_ctor_get(x_21, 0); +lean_inc(x_136); +lean_dec(x_21); +x_137 = !lean_is_exclusive(x_22); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_138 = lean_ctor_get(x_22, 0); +x_139 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_140 = !lean_is_exclusive(x_139); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_141 = lean_ctor_get(x_139, 0); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_16); +x_143 = l_Lean_FileMap_toPosition(x_16, x_136); lean_dec(x_136); -x_139 = lean_ctor_get(x_137, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -x_141 = lean_ctor_get(x_137, 2); +x_144 = l_Lean_FileMap_toPosition(x_16, x_138); +lean_dec(x_138); +lean_ctor_set(x_22, 0, x_144); +if (x_18 == 0) +{ +lean_object* x_145; lean_object* x_146; +lean_free_object(x_139); +x_145 = lean_box(0); +x_146 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_141, x_15, x_143, x_22, x_14, x_145, x_10, x_11, x_142); +lean_dec(x_10); +return x_146; +} +else +{ +lean_object* x_147; uint8_t x_148; +x_147 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; lean_inc(x_141); -x_142 = lean_ctor_get(x_137, 3); -lean_inc(x_142); -x_143 = lean_ctor_get(x_137, 4); -lean_inc(x_143); -x_144 = lean_ctor_get(x_137, 5); -lean_inc(x_144); -x_145 = lean_ctor_get(x_137, 6); -lean_inc(x_145); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - lean_ctor_release(x_137, 2); - lean_ctor_release(x_137, 3); - lean_ctor_release(x_137, 4); - lean_ctor_release(x_137, 5); - lean_ctor_release(x_137, 6); - x_146 = x_137; -} else { - lean_dec_ref(x_137); - x_146 = lean_box(0); +x_148 = l_Lean_MessageData_hasTag(x_147, x_141); +if (x_148 == 0) +{ +lean_object* x_149; +lean_dec(x_22); +lean_dec(x_143); +lean_dec(x_141); +lean_dec(x_15); +lean_dec(x_10); +x_149 = lean_box(0); +lean_ctor_set(x_139, 0, x_149); +return x_139; } -x_147 = l_Lean_PersistentArray_push___rarg(x_144, x_135); -if (lean_is_scalar(x_146)) { - x_148 = lean_alloc_ctor(0, 7, 0); -} else { - x_148 = x_146; +else +{ +lean_object* x_150; lean_object* x_151; +lean_free_object(x_139); +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_141, x_15, x_143, x_22, x_14, x_150, x_10, x_11, x_142); +lean_dec(x_10); +return x_151; } -lean_ctor_set(x_148, 0, x_139); -lean_ctor_set(x_148, 1, x_140); -lean_ctor_set(x_148, 2, x_141); -lean_ctor_set(x_148, 3, x_142); -lean_ctor_set(x_148, 4, x_143); -lean_ctor_set(x_148, 5, x_147); -lean_ctor_set(x_148, 6, x_145); -x_149 = lean_st_ref_set(x_11, x_148, x_138); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_151 = x_149; -} else { - lean_dec_ref(x_149); - x_151 = lean_box(0); -} -x_152 = lean_box(0); -if (lean_is_scalar(x_151)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_151; -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_150); -return x_153; } } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_154 = lean_ctor_get(x_23, 0); -lean_inc(x_154); -lean_dec(x_23); -x_155 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_10); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_158 = x_155; -} else { - lean_dec_ref(x_155); - x_158 = lean_box(0); -} -x_159 = lean_unsigned_to_nat(0u); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_152 = lean_ctor_get(x_139, 0); +x_153 = lean_ctor_get(x_139, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_139); lean_inc(x_16); -x_160 = l_Lean_FileMap_toPosition(x_16, x_159); -x_161 = l_Lean_FileMap_toPosition(x_16, x_154); +x_154 = l_Lean_FileMap_toPosition(x_16, x_136); +lean_dec(x_136); +x_155 = l_Lean_FileMap_toPosition(x_16, x_138); +lean_dec(x_138); +lean_ctor_set(x_22, 0, x_155); +if (x_18 == 0) +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_152, x_15, x_154, x_22, x_14, x_156, x_10, x_11, x_153); +lean_dec(x_10); +return x_157; +} +else +{ +lean_object* x_158; uint8_t x_159; +x_158 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_152); +x_159 = l_Lean_MessageData_hasTag(x_158, x_152); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_22); lean_dec(x_154); -x_162 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_162, 0, x_161); -if (lean_is_scalar(x_158)) { - x_163 = lean_alloc_ctor(0, 2, 0); -} else { - x_163 = x_158; +lean_dec(x_152); +lean_dec(x_15); +lean_dec(x_10); +x_160 = lean_box(0); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_153); +return x_161; } -lean_ctor_set(x_163, 0, x_18); -lean_ctor_set(x_163, 1, x_19); -x_164 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_156); -x_165 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_166 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_166, 0, x_15); -lean_ctor_set(x_166, 1, x_160); -lean_ctor_set(x_166, 2, x_162); -lean_ctor_set(x_166, 3, x_165); -lean_ctor_set(x_166, 4, x_164); -lean_ctor_set_uint8(x_166, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_166, sizeof(void*)*5 + 1, x_14); -x_167 = lean_st_ref_take(x_11, x_157); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -x_170 = lean_ctor_get(x_168, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_168, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_168, 2); -lean_inc(x_172); -x_173 = lean_ctor_get(x_168, 3); -lean_inc(x_173); -x_174 = lean_ctor_get(x_168, 4); -lean_inc(x_174); -x_175 = lean_ctor_get(x_168, 5); -lean_inc(x_175); -x_176 = lean_ctor_get(x_168, 6); -lean_inc(x_176); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - lean_ctor_release(x_168, 2); - lean_ctor_release(x_168, 3); - lean_ctor_release(x_168, 4); - lean_ctor_release(x_168, 5); - lean_ctor_release(x_168, 6); +else +{ +lean_object* x_162; lean_object* x_163; +x_162 = lean_box(0); +x_163 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_152, x_15, x_154, x_22, x_14, x_162, x_10, x_11, x_153); +lean_dec(x_10); +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; +x_164 = lean_ctor_get(x_22, 0); +lean_inc(x_164); +lean_dec(x_22); +x_165 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_9); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_168 = x_165; +} else { + lean_dec_ref(x_165); + x_168 = lean_box(0); +} +lean_inc(x_16); +x_169 = l_Lean_FileMap_toPosition(x_16, x_136); +lean_dec(x_136); +x_170 = l_Lean_FileMap_toPosition(x_16, x_164); +lean_dec(x_164); +x_171 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_171, 0, x_170); +if (x_18 == 0) +{ +lean_object* x_172; lean_object* x_173; +lean_dec(x_168); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_166, x_15, x_169, x_171, x_14, x_172, x_10, x_11, x_167); +lean_dec(x_10); +return x_173; +} +else +{ +lean_object* x_174; uint8_t x_175; +x_174 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1; +lean_inc(x_166); +x_175 = l_Lean_MessageData_hasTag(x_174, x_166); +if (x_175 == 0) +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_171); +lean_dec(x_169); +lean_dec(x_166); +lean_dec(x_15); +lean_dec(x_10); +x_176 = lean_box(0); +if (lean_is_scalar(x_168)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { x_177 = x_168; -} else { - lean_dec_ref(x_168); - x_177 = lean_box(0); -} -x_178 = l_Lean_PersistentArray_push___rarg(x_175, x_166); -if (lean_is_scalar(x_177)) { - x_179 = lean_alloc_ctor(0, 7, 0); -} else { - x_179 = x_177; -} -lean_ctor_set(x_179, 0, x_170); -lean_ctor_set(x_179, 1, x_171); -lean_ctor_set(x_179, 2, x_172); -lean_ctor_set(x_179, 3, x_173); -lean_ctor_set(x_179, 4, x_174); -lean_ctor_set(x_179, 5, x_178); -lean_ctor_set(x_179, 6, x_176); -x_180 = lean_st_ref_set(x_11, x_179, x_169); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_182 = x_180; -} else { - lean_dec_ref(x_180); - x_182 = lean_box(0); -} -x_183 = lean_box(0); -if (lean_is_scalar(x_182)) { - x_184 = lean_alloc_ctor(0, 2, 0); -} else { - x_184 = x_182; -} -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_181); -return x_184; -} } +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_167); +return x_177; } else { -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_185; -x_185 = !lean_is_exclusive(x_22); -if (x_185 == 0) -{ -lean_object* x_186; lean_object* x_187; uint8_t x_188; -x_186 = lean_ctor_get(x_22, 0); -x_187 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); +lean_object* x_178; lean_object* x_179; +lean_dec(x_168); +x_178 = lean_box(0); +x_179 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_166, x_15, x_169, x_171, x_14, x_178, x_10, x_11, x_167); lean_dec(x_10); -x_188 = !lean_is_exclusive(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_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_189 = lean_ctor_get(x_187, 0); -x_190 = lean_ctor_get(x_187, 1); -x_191 = l_Lean_FileMap_toPosition(x_16, x_186); -lean_dec(x_186); -lean_inc(x_191); -lean_ctor_set(x_22, 0, x_191); -lean_ctor_set(x_187, 1, x_19); -lean_ctor_set(x_187, 0, x_18); -x_192 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_192, 0, x_187); -lean_ctor_set(x_192, 1, x_189); -x_193 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_194 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_194, 0, x_15); -lean_ctor_set(x_194, 1, x_191); -lean_ctor_set(x_194, 2, x_22); -lean_ctor_set(x_194, 3, x_193); -lean_ctor_set(x_194, 4, x_192); -lean_ctor_set_uint8(x_194, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_194, sizeof(void*)*5 + 1, x_14); -x_195 = lean_st_ref_take(x_11, x_190); -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 = !lean_is_exclusive(x_196); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_199 = lean_ctor_get(x_196, 5); -x_200 = l_Lean_PersistentArray_push___rarg(x_199, x_194); -lean_ctor_set(x_196, 5, x_200); -x_201 = lean_st_ref_set(x_11, x_196, x_197); -x_202 = !lean_is_exclusive(x_201); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; -x_203 = lean_ctor_get(x_201, 0); -lean_dec(x_203); -x_204 = lean_box(0); -lean_ctor_set(x_201, 0, x_204); -return x_201; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_201, 1); -lean_inc(x_205); -lean_dec(x_201); -x_206 = lean_box(0); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_205); -return x_207; +return x_179; } } -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; 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_208 = lean_ctor_get(x_196, 0); -x_209 = lean_ctor_get(x_196, 1); -x_210 = lean_ctor_get(x_196, 2); -x_211 = lean_ctor_get(x_196, 3); -x_212 = lean_ctor_get(x_196, 4); -x_213 = lean_ctor_get(x_196, 5); -x_214 = lean_ctor_get(x_196, 6); -lean_inc(x_214); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); -lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_196); -x_215 = l_Lean_PersistentArray_push___rarg(x_213, x_194); -x_216 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_216, 0, x_208); -lean_ctor_set(x_216, 1, x_209); -lean_ctor_set(x_216, 2, x_210); -lean_ctor_set(x_216, 3, x_211); -lean_ctor_set(x_216, 4, x_212); -lean_ctor_set(x_216, 5, x_215); -lean_ctor_set(x_216, 6, x_214); -x_217 = lean_st_ref_set(x_11, x_216, x_197); -x_218 = lean_ctor_get(x_217, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_219 = x_217; -} else { - lean_dec_ref(x_217); - x_219 = lean_box(0); -} -x_220 = lean_box(0); -if (lean_is_scalar(x_219)) { - x_221 = lean_alloc_ctor(0, 2, 0); -} else { - x_221 = x_219; -} -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_218); -return x_221; -} -} -else -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_222 = lean_ctor_get(x_187, 0); -x_223 = lean_ctor_get(x_187, 1); -lean_inc(x_223); -lean_inc(x_222); -lean_dec(x_187); -x_224 = l_Lean_FileMap_toPosition(x_16, x_186); -lean_dec(x_186); -lean_inc(x_224); -lean_ctor_set(x_22, 0, x_224); -x_225 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_225, 0, x_18); -lean_ctor_set(x_225, 1, x_19); -x_226 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_222); -x_227 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_228 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_228, 0, x_15); -lean_ctor_set(x_228, 1, x_224); -lean_ctor_set(x_228, 2, x_22); -lean_ctor_set(x_228, 3, x_227); -lean_ctor_set(x_228, 4, x_226); -lean_ctor_set_uint8(x_228, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_228, sizeof(void*)*5 + 1, x_14); -x_229 = lean_st_ref_take(x_11, x_223); -x_230 = lean_ctor_get(x_229, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_229, 1); -lean_inc(x_231); -lean_dec(x_229); -x_232 = lean_ctor_get(x_230, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_230, 1); -lean_inc(x_233); -x_234 = lean_ctor_get(x_230, 2); -lean_inc(x_234); -x_235 = lean_ctor_get(x_230, 3); -lean_inc(x_235); -x_236 = lean_ctor_get(x_230, 4); -lean_inc(x_236); -x_237 = lean_ctor_get(x_230, 5); -lean_inc(x_237); -x_238 = lean_ctor_get(x_230, 6); -lean_inc(x_238); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - lean_ctor_release(x_230, 2); - lean_ctor_release(x_230, 3); - lean_ctor_release(x_230, 4); - lean_ctor_release(x_230, 5); - lean_ctor_release(x_230, 6); - x_239 = x_230; -} else { - lean_dec_ref(x_230); - x_239 = lean_box(0); -} -x_240 = l_Lean_PersistentArray_push___rarg(x_237, x_228); -if (lean_is_scalar(x_239)) { - x_241 = lean_alloc_ctor(0, 7, 0); -} else { - x_241 = x_239; -} -lean_ctor_set(x_241, 0, x_232); -lean_ctor_set(x_241, 1, x_233); -lean_ctor_set(x_241, 2, x_234); -lean_ctor_set(x_241, 3, x_235); -lean_ctor_set(x_241, 4, x_236); -lean_ctor_set(x_241, 5, x_240); -lean_ctor_set(x_241, 6, x_238); -x_242 = lean_st_ref_set(x_11, x_241, x_231); -x_243 = lean_ctor_get(x_242, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_244 = x_242; -} else { - lean_dec_ref(x_242); - x_244 = lean_box(0); -} -x_245 = lean_box(0); -if (lean_is_scalar(x_244)) { - x_246 = lean_alloc_ctor(0, 2, 0); -} else { - x_246 = x_244; -} -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_243); -return x_246; -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_247 = lean_ctor_get(x_22, 0); -lean_inc(x_247); -lean_dec(x_22); -x_248 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_10); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; -} else { - lean_dec_ref(x_248); - x_251 = lean_box(0); -} -x_252 = l_Lean_FileMap_toPosition(x_16, x_247); -lean_dec(x_247); -lean_inc(x_252); -x_253 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_253, 0, x_252); -if (lean_is_scalar(x_251)) { - x_254 = lean_alloc_ctor(0, 2, 0); -} else { - x_254 = x_251; -} -lean_ctor_set(x_254, 0, x_18); -lean_ctor_set(x_254, 1, x_19); -x_255 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_249); -x_256 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_257 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_257, 0, x_15); -lean_ctor_set(x_257, 1, x_252); -lean_ctor_set(x_257, 2, x_253); -lean_ctor_set(x_257, 3, x_256); -lean_ctor_set(x_257, 4, x_255); -lean_ctor_set_uint8(x_257, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_257, sizeof(void*)*5 + 1, x_14); -x_258 = lean_st_ref_take(x_11, x_250); -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_259, 1); -lean_inc(x_262); -x_263 = lean_ctor_get(x_259, 2); -lean_inc(x_263); -x_264 = lean_ctor_get(x_259, 3); -lean_inc(x_264); -x_265 = lean_ctor_get(x_259, 4); -lean_inc(x_265); -x_266 = lean_ctor_get(x_259, 5); -lean_inc(x_266); -x_267 = lean_ctor_get(x_259, 6); -lean_inc(x_267); -if (lean_is_exclusive(x_259)) { - lean_ctor_release(x_259, 0); - lean_ctor_release(x_259, 1); - lean_ctor_release(x_259, 2); - lean_ctor_release(x_259, 3); - lean_ctor_release(x_259, 4); - lean_ctor_release(x_259, 5); - lean_ctor_release(x_259, 6); - x_268 = x_259; -} else { - lean_dec_ref(x_259); - x_268 = lean_box(0); -} -x_269 = l_Lean_PersistentArray_push___rarg(x_266, x_257); -if (lean_is_scalar(x_268)) { - x_270 = lean_alloc_ctor(0, 7, 0); -} else { - x_270 = x_268; -} -lean_ctor_set(x_270, 0, x_261); -lean_ctor_set(x_270, 1, x_262); -lean_ctor_set(x_270, 2, x_263); -lean_ctor_set(x_270, 3, x_264); -lean_ctor_set(x_270, 4, x_265); -lean_ctor_set(x_270, 5, x_269); -lean_ctor_set(x_270, 6, x_267); -x_271 = lean_st_ref_set(x_11, x_270, x_260); -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_273 = x_271; -} else { - lean_dec_ref(x_271); - x_273 = lean_box(0); -} -x_274 = lean_box(0); -if (lean_is_scalar(x_273)) { - x_275 = lean_alloc_ctor(0, 2, 0); -} else { - x_275 = x_273; -} -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_272); -return x_275; -} -} -else -{ -lean_object* x_276; uint8_t x_277; -x_276 = lean_ctor_get(x_22, 0); -lean_inc(x_276); -lean_dec(x_22); -x_277 = !lean_is_exclusive(x_23); -if (x_277 == 0) -{ -lean_object* x_278; lean_object* x_279; uint8_t x_280; -x_278 = lean_ctor_get(x_23, 0); -x_279 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_10); -x_280 = !lean_is_exclusive(x_279); -if (x_280 == 0) -{ -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; -x_281 = lean_ctor_get(x_279, 0); -x_282 = lean_ctor_get(x_279, 1); -lean_inc(x_16); -x_283 = l_Lean_FileMap_toPosition(x_16, x_276); -lean_dec(x_276); -x_284 = l_Lean_FileMap_toPosition(x_16, x_278); -lean_dec(x_278); -lean_ctor_set(x_23, 0, x_284); -lean_ctor_set(x_279, 1, x_19); -lean_ctor_set(x_279, 0, x_18); -x_285 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_285, 0, x_279); -lean_ctor_set(x_285, 1, x_281); -x_286 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_287 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_287, 0, x_15); -lean_ctor_set(x_287, 1, x_283); -lean_ctor_set(x_287, 2, x_23); -lean_ctor_set(x_287, 3, x_286); -lean_ctor_set(x_287, 4, x_285); -lean_ctor_set_uint8(x_287, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_287, sizeof(void*)*5 + 1, x_14); -x_288 = lean_st_ref_take(x_11, x_282); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); -x_291 = !lean_is_exclusive(x_289); -if (x_291 == 0) -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; -x_292 = lean_ctor_get(x_289, 5); -x_293 = l_Lean_PersistentArray_push___rarg(x_292, x_287); -lean_ctor_set(x_289, 5, x_293); -x_294 = lean_st_ref_set(x_11, x_289, x_290); -x_295 = !lean_is_exclusive(x_294); -if (x_295 == 0) -{ -lean_object* x_296; lean_object* x_297; -x_296 = lean_ctor_get(x_294, 0); -lean_dec(x_296); -x_297 = lean_box(0); -lean_ctor_set(x_294, 0, x_297); -return x_294; -} -else -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_ctor_get(x_294, 1); -lean_inc(x_298); -lean_dec(x_294); -x_299 = lean_box(0); -x_300 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_300, 0, x_299); -lean_ctor_set(x_300, 1, x_298); -return x_300; -} -} -else -{ -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; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_301 = lean_ctor_get(x_289, 0); -x_302 = lean_ctor_get(x_289, 1); -x_303 = lean_ctor_get(x_289, 2); -x_304 = lean_ctor_get(x_289, 3); -x_305 = lean_ctor_get(x_289, 4); -x_306 = lean_ctor_get(x_289, 5); -x_307 = lean_ctor_get(x_289, 6); -lean_inc(x_307); -lean_inc(x_306); -lean_inc(x_305); -lean_inc(x_304); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_dec(x_289); -x_308 = l_Lean_PersistentArray_push___rarg(x_306, x_287); -x_309 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_309, 0, x_301); -lean_ctor_set(x_309, 1, x_302); -lean_ctor_set(x_309, 2, x_303); -lean_ctor_set(x_309, 3, x_304); -lean_ctor_set(x_309, 4, x_305); -lean_ctor_set(x_309, 5, x_308); -lean_ctor_set(x_309, 6, x_307); -x_310 = lean_st_ref_set(x_11, x_309, x_290); -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - x_312 = x_310; -} else { - lean_dec_ref(x_310); - x_312 = lean_box(0); -} -x_313 = lean_box(0); -if (lean_is_scalar(x_312)) { - x_314 = lean_alloc_ctor(0, 2, 0); -} else { - x_314 = x_312; -} -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_311); -return x_314; -} -} -else -{ -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; 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; lean_object* x_339; lean_object* x_340; -x_315 = lean_ctor_get(x_279, 0); -x_316 = lean_ctor_get(x_279, 1); -lean_inc(x_316); -lean_inc(x_315); -lean_dec(x_279); -lean_inc(x_16); -x_317 = l_Lean_FileMap_toPosition(x_16, x_276); -lean_dec(x_276); -x_318 = l_Lean_FileMap_toPosition(x_16, x_278); -lean_dec(x_278); -lean_ctor_set(x_23, 0, x_318); -x_319 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_319, 0, x_18); -lean_ctor_set(x_319, 1, x_19); -x_320 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_315); -x_321 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_322 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_322, 0, x_15); -lean_ctor_set(x_322, 1, x_317); -lean_ctor_set(x_322, 2, x_23); -lean_ctor_set(x_322, 3, x_321); -lean_ctor_set(x_322, 4, x_320); -lean_ctor_set_uint8(x_322, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_322, sizeof(void*)*5 + 1, x_14); -x_323 = lean_st_ref_take(x_11, x_316); -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -lean_dec(x_323); -x_326 = lean_ctor_get(x_324, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_324, 1); -lean_inc(x_327); -x_328 = lean_ctor_get(x_324, 2); -lean_inc(x_328); -x_329 = lean_ctor_get(x_324, 3); -lean_inc(x_329); -x_330 = lean_ctor_get(x_324, 4); -lean_inc(x_330); -x_331 = lean_ctor_get(x_324, 5); -lean_inc(x_331); -x_332 = lean_ctor_get(x_324, 6); -lean_inc(x_332); -if (lean_is_exclusive(x_324)) { - lean_ctor_release(x_324, 0); - lean_ctor_release(x_324, 1); - lean_ctor_release(x_324, 2); - lean_ctor_release(x_324, 3); - lean_ctor_release(x_324, 4); - lean_ctor_release(x_324, 5); - lean_ctor_release(x_324, 6); - x_333 = x_324; -} else { - lean_dec_ref(x_324); - x_333 = lean_box(0); -} -x_334 = l_Lean_PersistentArray_push___rarg(x_331, x_322); -if (lean_is_scalar(x_333)) { - x_335 = lean_alloc_ctor(0, 7, 0); -} else { - x_335 = x_333; -} -lean_ctor_set(x_335, 0, x_326); -lean_ctor_set(x_335, 1, x_327); -lean_ctor_set(x_335, 2, x_328); -lean_ctor_set(x_335, 3, x_329); -lean_ctor_set(x_335, 4, x_330); -lean_ctor_set(x_335, 5, x_334); -lean_ctor_set(x_335, 6, x_332); -x_336 = lean_st_ref_set(x_11, x_335, x_325); -x_337 = lean_ctor_get(x_336, 1); -lean_inc(x_337); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_338 = x_336; -} else { - lean_dec_ref(x_336); - x_338 = lean_box(0); -} -x_339 = lean_box(0); -if (lean_is_scalar(x_338)) { - x_340 = lean_alloc_ctor(0, 2, 0); -} else { - x_340 = x_338; -} -lean_ctor_set(x_340, 0, x_339); -lean_ctor_set(x_340, 1, x_337); -return x_340; -} -} -else -{ -lean_object* x_341; 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; 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; 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; -x_341 = lean_ctor_get(x_23, 0); -lean_inc(x_341); -lean_dec(x_23); -x_342 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_10); -x_343 = lean_ctor_get(x_342, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_342, 1); -lean_inc(x_344); -if (lean_is_exclusive(x_342)) { - lean_ctor_release(x_342, 0); - lean_ctor_release(x_342, 1); - x_345 = x_342; -} else { - lean_dec_ref(x_342); - x_345 = lean_box(0); -} -lean_inc(x_16); -x_346 = l_Lean_FileMap_toPosition(x_16, x_276); -lean_dec(x_276); -x_347 = l_Lean_FileMap_toPosition(x_16, x_341); -lean_dec(x_341); -x_348 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_348, 0, x_347); -if (lean_is_scalar(x_345)) { - x_349 = lean_alloc_ctor(0, 2, 0); -} else { - x_349 = x_345; -} -lean_ctor_set(x_349, 0, x_18); -lean_ctor_set(x_349, 1, x_19); -x_350 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_343); -x_351 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__6; -x_352 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_352, 0, x_15); -lean_ctor_set(x_352, 1, x_346); -lean_ctor_set(x_352, 2, x_348); -lean_ctor_set(x_352, 3, x_351); -lean_ctor_set(x_352, 4, x_350); -lean_ctor_set_uint8(x_352, sizeof(void*)*5, x_21); -lean_ctor_set_uint8(x_352, sizeof(void*)*5 + 1, x_14); -x_353 = lean_st_ref_take(x_11, x_344); -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -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); -x_357 = lean_ctor_get(x_354, 1); -lean_inc(x_357); -x_358 = lean_ctor_get(x_354, 2); -lean_inc(x_358); -x_359 = lean_ctor_get(x_354, 3); -lean_inc(x_359); -x_360 = lean_ctor_get(x_354, 4); -lean_inc(x_360); -x_361 = lean_ctor_get(x_354, 5); -lean_inc(x_361); -x_362 = lean_ctor_get(x_354, 6); -lean_inc(x_362); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - lean_ctor_release(x_354, 1); - lean_ctor_release(x_354, 2); - lean_ctor_release(x_354, 3); - lean_ctor_release(x_354, 4); - lean_ctor_release(x_354, 5); - lean_ctor_release(x_354, 6); - x_363 = x_354; -} else { - lean_dec_ref(x_354); - x_363 = lean_box(0); -} -x_364 = l_Lean_PersistentArray_push___rarg(x_361, x_352); -if (lean_is_scalar(x_363)) { - x_365 = lean_alloc_ctor(0, 7, 0); -} else { - x_365 = x_363; -} -lean_ctor_set(x_365, 0, x_356); -lean_ctor_set(x_365, 1, x_357); -lean_ctor_set(x_365, 2, x_358); -lean_ctor_set(x_365, 3, x_359); -lean_ctor_set(x_365, 4, x_360); -lean_ctor_set(x_365, 5, x_364); -lean_ctor_set(x_365, 6, x_362); -x_366 = lean_st_ref_set(x_11, x_365, x_355); -x_367 = lean_ctor_get(x_366, 1); -lean_inc(x_367); -if (lean_is_exclusive(x_366)) { - lean_ctor_release(x_366, 0); - lean_ctor_release(x_366, 1); - x_368 = x_366; -} else { - lean_dec_ref(x_366); - x_368 = lean_box(0); -} -x_369 = lean_box(0); -if (lean_is_scalar(x_368)) { - x_370 = lean_alloc_ctor(0, 2, 0); -} else { - x_370 = x_368; -} -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_367); -return x_370; } } } @@ -12380,13 +12604,7 @@ x_12 = lean_ctor_get(x_9, 5); lean_inc(x_12); x_13 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_12, 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_10); -lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_12); return x_13; } } @@ -12394,15 +12612,23 @@ static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUs _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +x_1 = l_Lean_Core_interruptExceptionId; return x_1; } } static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1; +x_1 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -12421,13 +12647,7 @@ lean_dec(x_1); x_13 = 2; x_14 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_11, x_12, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, 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_11); return x_14; } else @@ -12443,87 +12663,42 @@ lean_dec(x_17); x_18 = l_Lean_Elab_isAbortExceptionId(x_16); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_8, 5); -lean_inc(x_19); -x_20 = l_Lean_InternalExceptionId_getName(x_16, x_10); -lean_dec(x_16); -if (lean_obj_tag(x_20) == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1; +x_20 = lean_nat_dec_eq(x_16, x_19); +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; uint8_t x_28; lean_object* x_29; -lean_dec(x_19); -lean_free_object(x_1); -x_21 = lean_ctor_get(x_20, 0); +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_8, 5); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_MessageData_ofName(x_21); -x_24 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2; -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; -x_27 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = 2; -x_29 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_27, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -return x_29; -} -else -{ -uint8_t x_30; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_30 = !lean_is_exclusive(x_20); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_20, 0); -x_32 = lean_io_error_to_string(x_31); -x_33 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_MessageData_ofFormat(x_33); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_34); -lean_ctor_set(x_1, 0, x_19); -lean_ctor_set(x_20, 0, x_1); -return x_20; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_20, 0); -x_36 = lean_ctor_get(x_20, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_20); -x_37 = lean_io_error_to_string(x_35); -x_38 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_MessageData_ofFormat(x_38); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_39); -lean_ctor_set(x_1, 0, x_19); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_1); -lean_ctor_set(x_40, 1, x_36); -return x_40; -} -} -} -else -{ -lean_object* x_41; lean_object* x_42; -lean_free_object(x_1); +x_22 = l_Lean_InternalExceptionId_getName(x_16, x_10); lean_dec(x_16); +if (lean_obj_tag(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; uint8_t x_30; lean_object* x_31; +lean_dec(x_21); +lean_free_object(x_1); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_MessageData_ofName(x_23); +x_26 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3; +x_27 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_29 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = 2; +x_31 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_29, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +return x_31; +} +else +{ +uint8_t x_32; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12532,52 +12707,127 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_10); +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_22, 0); +x_34 = lean_io_error_to_string(x_33); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = l_Lean_MessageData_ofFormat(x_35); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_36); +lean_ctor_set(x_1, 0, x_21); +lean_ctor_set(x_22, 0, x_1); +return x_22; +} +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_22, 0); +x_38 = lean_ctor_get(x_22, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_22); +x_39 = lean_io_error_to_string(x_37); +x_40 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = l_Lean_MessageData_ofFormat(x_40); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_41); +lean_ctor_set(x_1, 0, x_21); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_38); return x_42; } } +} else { -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_1, 0); -lean_inc(x_43); -lean_dec(x_1); -x_44 = l_Lean_Elab_isAbortExceptionId(x_43); -if (x_44 == 0) +lean_object* x_43; lean_object* x_44; +lean_free_object(x_1); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_10); +return x_44; +} +} +else { lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_8, 5); -lean_inc(x_45); -x_46 = l_Lean_InternalExceptionId_getName(x_43, x_10); -lean_dec(x_43); -if (lean_obj_tag(x_46) == 0) +lean_free_object(x_1); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_10); +return x_46; +} +} +else { -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; uint8_t x_54; lean_object* x_55; -lean_dec(x_45); -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_1, 0); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = l_Lean_MessageData_ofName(x_47); -x_50 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2; -x_51 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; -x_53 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -x_54 = 2; -x_55 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_53, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_48); -return x_55; +lean_dec(x_1); +x_48 = l_Lean_Elab_isAbortExceptionId(x_47); +if (x_48 == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1; +x_50 = lean_nat_dec_eq(x_47, x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_8, 5); +lean_inc(x_51); +x_52 = l_Lean_InternalExceptionId_getName(x_47, x_10); +lean_dec(x_47); +if (lean_obj_tag(x_52) == 0) +{ +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; uint8_t x_60; lean_object* x_61; +lean_dec(x_51); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_MessageData_ofName(x_53); +x_56 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3; +x_57 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +x_58 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__7; +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = 2; +x_61 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_59, x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_54); +return x_61; } 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; lean_object* x_62; lean_object* x_63; +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_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12586,39 +12836,39 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -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; +x_62 = lean_ctor_get(x_52, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_52, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_64 = x_52; } else { - lean_dec_ref(x_46); - x_58 = lean_box(0); + lean_dec_ref(x_52); + x_64 = lean_box(0); } -x_59 = lean_io_error_to_string(x_56); -x_60 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = l_Lean_MessageData_ofFormat(x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_45); -lean_ctor_set(x_62, 1, x_61); -if (lean_is_scalar(x_58)) { - x_63 = lean_alloc_ctor(1, 2, 0); +x_65 = lean_io_error_to_string(x_62); +x_66 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = l_Lean_MessageData_ofFormat(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_51); +lean_ctor_set(x_68, 1, x_67); +if (lean_is_scalar(x_64)) { + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_63 = x_58; + x_69 = x_64; } -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_57); -return x_63; +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_63); +return x_69; } } else { -lean_object* x_64; lean_object* x_65; -lean_dec(x_43); +lean_object* x_70; lean_object* x_71; +lean_dec(x_47); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12627,11 +12877,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_10); -return x_65; +x_70 = lean_box(0); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_10); +return x_71; +} +} +else +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_47); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_72 = lean_box(0); +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; } } } @@ -12838,6 +13107,29 @@ return x_38; } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___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, lean_object* x_11, lean_object* x_12) { _start: { @@ -12846,13 +13138,7 @@ x_13 = lean_unbox(x_3); lean_dec(x_3); x_14 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); -lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); return x_14; } } @@ -12963,24 +13249,28 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_15, 0); x_18 = lean_ctor_get(x_15, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { -uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_free_object(x_15); -x_20 = 0; +x_21 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_21 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_apply_10(x_2, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); -return x_23; +x_22 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_apply_10(x_2, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +return x_24; } else { @@ -12999,33 +13289,6 @@ return x_15; } else { -lean_object* x_24; lean_object* x_25; uint8_t 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_dec(x_15); -x_26 = l_Lean_Exception_isRuntime(x_24); -if (x_26 == 0) -{ -uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_28 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_apply_10(x_2, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_29); -return x_30; -} -else -{ -lean_object* x_31; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -13036,10 +13299,75 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_24); -lean_ctor_set(x_31, 1, x_25); -return x_31; +return x_15; +} +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +x_27 = l_Lean_Exception_isInterrupt(x_25); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_30 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_apply_10(x_2, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +return x_32; +} +else +{ +lean_object* x_33; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_26); +return x_33; +} +} +else +{ +lean_object* x_34; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_25); +lean_ctor_set(x_34, 1, x_26); +return x_34; } } } @@ -13105,24 +13433,28 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_Exception_isRuntime(x_18); +x_20 = l_Lean_Exception_isInterrupt(x_18); if (x_20 == 0) { -uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_free_object(x_16); -x_21 = 0; +x_22 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_22 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_apply_10(x_3, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); -return x_24; +x_23 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_apply_10(x_3, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +return x_25; } else { @@ -13141,33 +13473,6 @@ return x_16; } else { -lean_object* x_25; lean_object* x_26; uint8_t 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 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = 0; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_apply_10(x_3, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -return x_31; -} -else -{ -lean_object* x_32; lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); @@ -13178,10 +13483,75 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_25); -lean_ctor_set(x_32, 1, x_26); -return x_32; +return x_16; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_16); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_31 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_apply_10(x_3, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +return x_33; +} +else +{ +lean_object* x_34; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_27); +return x_34; +} +} +else +{ +lean_object* x_35; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_26); +lean_ctor_set(x_35, 1, x_27); +return x_35; } } } @@ -13317,26 +13687,30 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_15, 0); x_18 = lean_ctor_get(x_15, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { -uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_free_object(x_15); lean_dec(x_17); -x_20 = 0; +x_21 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_21 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_box(0); -x_24 = lean_apply_10(x_2, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); -return x_24; +x_22 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_box(0); +x_25 = lean_apply_10(x_2, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +return x_25; } else { @@ -13355,35 +13729,6 @@ return x_15; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_15, 0); -x_26 = lean_ctor_get(x_15, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_15); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_25); -x_28 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_box(0); -x_32 = lean_apply_10(x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); -return x_32; -} -else -{ -lean_object* x_33; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -13394,10 +13739,77 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_25); -lean_ctor_set(x_33, 1, x_26); -return x_33; +return x_15; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_26); +x_30 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_31 = l_Lean_Elab_Tactic_SavedState_restore(x_13, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_box(0); +x_34 = lean_apply_10(x_2, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); +return x_34; +} +else +{ +lean_object* x_35; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_26); +lean_ctor_set(x_35, 1, x_27); +return x_35; +} +} +else +{ +lean_object* x_36; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_26); +lean_ctor_set(x_36, 1, x_27); +return x_36; } } } @@ -13541,26 +13953,30 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_Exception_isRuntime(x_18); +x_20 = l_Lean_Exception_isInterrupt(x_18); if (x_20 == 0) { -uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_free_object(x_16); lean_dec(x_18); -x_21 = 0; +x_22 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_22 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_box(0); -x_25 = lean_apply_10(x_3, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); -return x_25; +x_23 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_box(0); +x_26 = lean_apply_10(x_3, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +return x_26; } else { @@ -13579,35 +13995,6 @@ return x_16; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_16, 0); -x_27 = lean_ctor_get(x_16, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_16); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) -{ -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_26); -x_29 = 0; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_30 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_box(0); -x_33 = lean_apply_10(x_3, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_31); -return x_33; -} -else -{ -lean_object* x_34; lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); @@ -13618,10 +14005,77 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_26); -lean_ctor_set(x_34, 1, x_27); -return x_34; +return x_16; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_27); +x_31 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_32 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_box(0); +x_35 = lean_apply_10(x_3, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +return x_35; +} +else +{ +lean_object* x_36; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } @@ -14297,25 +14751,27 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; uint8_t 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_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_18 = lean_ctor_get(x_6, 0); x_19 = lean_ctor_get(x_6, 1); x_20 = lean_ctor_get(x_6, 2); -x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2); +x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); x_24 = lean_ctor_get(x_6, 3); x_25 = lean_ctor_get(x_6, 4); x_26 = lean_ctor_get(x_6, 5); x_27 = lean_ctor_get(x_6, 6); -x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 3); -x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 4); -x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 5); -x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 6); -x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 7); +x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); x_33 = lean_ctor_get(x_6, 7); -x_34 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 8); -x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 9); +x_34 = lean_ctor_get(x_6, 8); +x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_36 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_34); lean_inc(x_33); lean_inc(x_27); lean_inc(x_26); @@ -14325,33 +14781,34 @@ lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_dec(x_6); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_1); -lean_ctor_set(x_36, 1, x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_20); -x_38 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_38, 0, x_18); -lean_ctor_set(x_38, 1, x_19); -lean_ctor_set(x_38, 2, x_37); -lean_ctor_set(x_38, 3, x_24); -lean_ctor_set(x_38, 4, x_25); -lean_ctor_set(x_38, 5, x_26); -lean_ctor_set(x_38, 6, x_27); -lean_ctor_set(x_38, 7, x_33); -lean_ctor_set_uint8(x_38, sizeof(void*)*8, x_21); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 1, x_22); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 2, x_23); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 3, x_28); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 4, x_29); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 5, x_30); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 6, x_31); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 7, x_32); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 8, x_34); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 9, x_35); -x_39 = lean_apply_9(x_3, x_4, x_5, x_38, x_7, x_8, x_9, x_10, x_11, x_12); -return x_39; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_2); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_20); +x_39 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_39, 0, x_18); +lean_ctor_set(x_39, 1, x_19); +lean_ctor_set(x_39, 2, x_38); +lean_ctor_set(x_39, 3, x_24); +lean_ctor_set(x_39, 4, x_25); +lean_ctor_set(x_39, 5, x_26); +lean_ctor_set(x_39, 6, x_27); +lean_ctor_set(x_39, 7, x_33); +lean_ctor_set(x_39, 8, x_34); +lean_ctor_set_uint8(x_39, sizeof(void*)*9, x_21); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 1, x_22); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 2, x_23); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 3, x_28); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 4, x_29); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 5, x_30); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 6, x_31); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 7, x_32); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 8, x_35); +lean_ctor_set_uint8(x_39, sizeof(void*)*9 + 9, x_36); +x_40 = lean_apply_9(x_3, x_4, x_5, x_39, x_7, x_8, x_9, x_10, x_11, x_12); +return x_40; } } } @@ -14426,25 +14883,27 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t 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_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_17 = lean_ctor_get(x_5, 0); x_18 = lean_ctor_get(x_5, 1); x_19 = lean_ctor_get(x_5, 2); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); x_23 = lean_ctor_get(x_5, 3); x_24 = lean_ctor_get(x_5, 4); x_25 = lean_ctor_get(x_5, 5); x_26 = lean_ctor_get(x_5, 6); -x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4); -x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5); -x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_5, 7); -x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 9); +x_33 = lean_ctor_get(x_5, 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_33); lean_inc(x_32); lean_inc(x_26); lean_inc(x_25); @@ -14455,33 +14914,34 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_5); lean_inc(x_2); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_2); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_19); -x_37 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_37, 0, x_17); -lean_ctor_set(x_37, 1, x_18); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_23); -lean_ctor_set(x_37, 4, x_24); -lean_ctor_set(x_37, 5, x_25); -lean_ctor_set(x_37, 6, x_26); -lean_ctor_set(x_37, 7, x_32); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_20); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_21); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_22); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 3, x_27); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 4, x_28); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 5, x_29); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 6, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 9, x_34); -x_38 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_37, x_6, x_7, x_8, x_9, x_10, x_11); -return x_38; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_2); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_19); +x_38 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_38, 0, x_17); +lean_ctor_set(x_38, 1, x_18); +lean_ctor_set(x_38, 2, x_37); +lean_ctor_set(x_38, 3, x_23); +lean_ctor_set(x_38, 4, x_24); +lean_ctor_set(x_38, 5, x_25); +lean_ctor_set(x_38, 6, x_26); +lean_ctor_set(x_38, 7, x_32); +lean_ctor_set(x_38, 8, x_33); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 9, x_35); +x_39 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11); +return x_39; } } } @@ -17068,37 +17528,41 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; uint8_t x_25; x_23 = lean_ctor_get(x_14, 0); x_24 = lean_ctor_get(x_14, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); if (x_25 == 0) { -uint8_t x_26; lean_object* x_27; uint8_t x_28; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +uint8_t x_27; lean_object* x_28; uint8_t x_29; lean_free_object(x_14); lean_dec(x_23); -x_26 = 0; -x_27 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +x_27 = 0; +x_28 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); lean_dec(x_3); lean_dec(x_2); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -x_30 = lean_box(0); -lean_ctor_set(x_27, 0, x_30); -return x_27; +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(x_28, 0, x_31); +return x_28; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; +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(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } else @@ -17117,44 +17581,6 @@ return x_14; } else { -lean_object* x_34; lean_object* x_35; uint8_t 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 = l_Lean_Exception_isRuntime(x_34); -if (x_36 == 0) -{ -uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_34); -x_37 = 0; -x_38 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); -lean_dec(x_3); -lean_dec(x_2); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; -} else { - lean_dec_ref(x_38); - x_40 = lean_box(0); -} -x_41 = lean_box(0); -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); -return x_42; -} -else -{ -lean_object* x_43; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -17164,10 +17590,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_34); -lean_ctor_set(x_43, 1, x_35); -return x_43; +return x_14; +} +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_14, 0); +x_36 = lean_ctor_get(x_14, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_14); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +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_dec(x_35); +x_39 = 0; +x_40 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); +lean_dec(x_3); +lean_dec(x_2); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_42 = x_40; +} else { + lean_dec_ref(x_40); + x_42 = lean_box(0); +} +x_43 = lean_box(0); +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_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_36); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +return x_46; } } } @@ -17246,37 +17746,41 @@ if (x_23 == 0) lean_object* x_24; lean_object* x_25; uint8_t x_26; x_24 = lean_ctor_get(x_14, 0); x_25 = lean_ctor_get(x_14, 1); -x_26 = l_Lean_Exception_isRuntime(x_24); +x_26 = l_Lean_Exception_isInterrupt(x_24); if (x_26 == 0) { -uint8_t x_27; lean_object* x_28; uint8_t x_29; +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_free_object(x_14); lean_dec(x_24); -x_27 = 0; -x_28 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +x_28 = 0; +x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); lean_dec(x_3); lean_dec(x_2); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_28, 0); -lean_dec(x_30); -x_31 = lean_box(x_27); -lean_ctor_set(x_28, 0, x_31); -return x_28; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_box(x_28); +lean_ctor_set(x_29, 0, x_32); +return x_29; } else { -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(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_box(x_28); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; } } else @@ -17295,44 +17799,6 @@ return x_14; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_14, 0); -x_36 = lean_ctor_get(x_14, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_14); -x_37 = l_Lean_Exception_isRuntime(x_35); -if (x_37 == 0) -{ -uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_35); -x_38 = 0; -x_39 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); -lean_dec(x_3); -lean_dec(x_2); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -x_42 = lean_box(x_38); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; -} -else -{ -lean_object* x_44; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -17342,10 +17808,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_35); -lean_ctor_set(x_44, 1, x_36); -return x_44; +return x_14; +} +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_14, 0); +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_14); +x_38 = l_Lean_Exception_isInterrupt(x_36); +if (x_38 == 0) +{ +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_36); +if (x_39 == 0) +{ +uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_36); +x_40 = 0; +x_41 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_37); +lean_dec(x_3); +lean_dec(x_2); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; +} else { + lean_dec_ref(x_41); + x_43 = lean_box(0); +} +x_44 = lean_box(x_40); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_43; +} +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_42); +return x_45; +} +else +{ +lean_object* x_46; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_36); +lean_ctor_set(x_46, 1, x_37); +return x_46; +} +} +else +{ +lean_object* x_47; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_36); +lean_ctor_set(x_47, 1, x_37); +return x_47; } } } @@ -17969,7 +18509,75 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5709_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_NameSet_empty; +x_3 = lean_st_mk_ref(x_2, x_1); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_builtinIncrementalTactics; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(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; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic___closed__1; +x_4 = lean_st_ref_take(x_3, x_2); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_box(0); +x_8 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_5, x_1, x_7); +x_9 = lean_st_ref_set(x_3, x_8, x_6); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -17979,7 +18587,7 @@ x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -17989,27 +18597,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2; x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3; x_2 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5() { _start: { lean_object* x_1; @@ -18017,17 +18625,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7() { _start: { lean_object* x_1; @@ -18035,47 +18643,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8; x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9; x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10; x_2 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12() { _start: { lean_object* x_1; @@ -18083,17 +18691,17 @@ x_1 = lean_mk_string_from_bytes("Basic", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14() { _start: { lean_object* x_1; @@ -18101,54 +18709,54 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15; -x_2 = lean_unsigned_to_nat(5519u); +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15; +x_2 = lean_unsigned_to_nat(5760u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15; -x_2 = lean_unsigned_to_nat(5561u); +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15; +x_2 = lean_unsigned_to_nat(5802u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2; x_3 = 0; -x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -18303,12 +18911,18 @@ l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2 = _init_l_Lean_Elab lean_mark_persistent(l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2); l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___rarg___closed__1); +l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___lambda__2___closed__1); l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1); +l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2 = _init_l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__2); l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1 = _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1(); lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__1); l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2 = _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2(); lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2); +l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3 = _init_l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__3); l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__1); l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2 = _init_l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___closed__2(); @@ -18351,44 +18965,51 @@ l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2 = _init_l_Lean_Elab_Tactic_get lean_mark_persistent(l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2); l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1 = _init_l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__2); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__3); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__4); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__5); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__6); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__7); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__8); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__9); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__10); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__11); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__12); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__13); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__14); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__15); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519____closed__16); -if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5519_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5709_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_Tactic_builtinIncrementalTactics = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_Tactic_builtinIncrementalTactics); +lean_dec_ref(res); +}l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic___closed__1 = _init_l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic___closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__2); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__3); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__4); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__5); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__6); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__7); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__8); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__9); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__10); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__11); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__12); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__13); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__14); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__15); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760____closed__16); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5760_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561____closed__1); -if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5561_(lean_io_mk_world()); +}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802____closed__1); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5802_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c index 42638f1c5e..0b428c5c7d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c @@ -23,6 +23,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___closed static lean_object* l_Lean_Elab_Tactic_evalCase___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__26; @@ -42,16 +43,15 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSeq1(lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___lambda__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___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_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___spec__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRange___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Tactic_renameInaccessibles___spec__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_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___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_isCheckpointableTactic___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__1; @@ -60,6 +60,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed( static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState_declRange___closed__6; lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__5; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_sequenceMap___at_Lean_Elab_OpenDecl_elabOpenDecl___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRunTac_unsafe__1___closed__1; lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); @@ -82,6 +83,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___sp static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalChoiceAux___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_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase_x27___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_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__4; @@ -106,8 +108,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange___clo static lean_object* l_Lean_Elab_Tactic_evalAnyGoals___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_renameInaccessibles___spec__1___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__4; +extern lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInaccessibles___spec__10(lean_object*, lean_object*, size_t, size_t, 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_List_forIn_loop___at_Lean_Elab_Tactic_evalAnyGoals___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_object*); +static lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1; +lean_object* l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed__2; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__5; static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___closed__2; @@ -120,10 +125,14 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___closed_ LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28(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_LocalContext_findFromUserName_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__13; +lean_object* lean_io_promise_new(lean_object*); static lean_object* l_Lean_Elab_Tactic_renameInaccessibles___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__1; +uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_renameInaccessibles___lambda__3___boxed(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone(lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRange___closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___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*); @@ -177,7 +186,6 @@ lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__8; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_save___at_Lean_Elab_Tactic_renameInaccessibles___spec__4___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_forEachVar___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,12 +196,13 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase_x27___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*); static lean_object* l_Lean_Elab_Tactic_evalLeft___rarg___lambda__1___closed__2; lean_object* l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1(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_evalCase___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_addCheckpoints(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_evalIntro___lambda__2___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRunTac_unsafe__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___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_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__18(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_evalReplace___closed__1; static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___spec__1___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange(lean_object*); @@ -231,6 +240,7 @@ extern lean_object* l_Lean_Expr_instBEq; static lean_object* l_Lean_Elab_Tactic_evalReplace___lambda__2___closed__1; static lean_object* l_Lean_Elab_Tactic_evalFail___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___closed__7; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInaccessibles___spec__16___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* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -255,6 +265,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalClear___lambda__1(lean_object*, static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_object*); lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRange___closed__2; @@ -283,6 +294,7 @@ static lean_object* l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSetOption___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*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__8(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___regBuiltin_Lean_Elab_Tactic_evalChoice(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRevert___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq(lean_object*); @@ -293,13 +305,17 @@ static lean_object* l_Lean_Elab_Tactic_evalReplace___lambda__2___closed__3; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__12; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___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* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRunTac___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTraceMessage(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_get_num_heartbeats(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalLeft___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___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_EXPORT lean_object* l_Lean_Elab_Tactic_isCheckpointableTactic___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___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen(lean_object*); @@ -310,14 +326,16 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFail___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSetOption(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_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__10; -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalClear(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_evalFail___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_promise_result(lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFirst___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___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__3; LEAN_EXPORT lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,7 +347,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__2; lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepth; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq___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_getRefPos___at_Lean_Elab_Tactic_evalOpen___spec__38___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___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_object*); static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__8; @@ -353,6 +370,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange___clos uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__10; +lean_object* l_Lean_Core_getAndEmptyMessageLog___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___closed__6; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalReplace___closed__4; @@ -382,6 +400,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalOpen__ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed__4; static lean_object* l_Lean_Elab_Tactic_evalRenameInaccessibles___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_evalFailIfSuccess___spec__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_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getOptRotation(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalReplace___closed__2; @@ -412,7 +431,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState_declRa LEAN_EXPORT lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__31___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_evalDone___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__6; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; lean_object* l_Lean_MVarId_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -439,6 +457,7 @@ LEAN_EXPORT lean_object* l_Lean_pushScope___at_Lean_Elab_Tactic_evalOpen___spec_ lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRight___rarg___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_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalFirst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reportDiag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ensureNoOverload___at_Lean_Elab_Tactic_evalOpen___spec__19(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_Lean_Elab_Tactic_evalAnyGoals___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -457,9 +476,11 @@ lean_object* l_Lean_Elab_Term_Do_getDoHaveVars(lean_object*, lean_object*, lean_ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__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_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___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* l_List_mapTR_loop___at_Lean_filterFieldList___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_renameInaccessibles___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_Lean_Elab_Tactic_evalSepTactics_goEven(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_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessibles_declRange___closed__7; @@ -474,15 +495,16 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed static lean_object* l_Lean_Elab_Tactic_evalCase_x27___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange___closed__4; lean_object* l_Array_reverse___rarg(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4; uint8_t l_instDecidableNot___rarg(uint8_t); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2; +extern lean_object* l_Lean_Elab_Tactic_builtinIncrementalTactics; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__32; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__3; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; static lean_object* l_Lean_Elab_Tactic_evalContradiction___rarg___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___closed__3; lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalFail___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1688_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___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_Elab_Tactic_evalTraceState___rarg(lean_object*, 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*); @@ -492,6 +514,7 @@ static lean_object* l_Lean_Elab_Tactic_evalSubst___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__7; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___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_Lean_Elab_Tactic_evalIntro___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessibles_declRange(lean_object*); @@ -516,6 +539,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDbgTrace___lambda__1___boxed(lea LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalParen___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___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalClear___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_Elab_Tactic_evalSepTactics_goEven___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_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_commaList___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs___closed__3; LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Tactic_evalOpen___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -526,7 +550,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declRange__ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRotateRight___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___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__2; -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5; lean_object* l_Lean_MessageData_ofSyntax(lean_object*); uint32_t lean_uint32_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -538,6 +561,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalParen(lean_object*, lean_object* lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___closed__3; lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* lean_io_add_heartbeats(uint64_t, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__46___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_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInaccessibles___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_object*, lean_object*); @@ -555,6 +579,7 @@ lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFocus(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_evalCase___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRefl___rarg___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_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalLeft(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl___closed__2; static lean_object* l_Lean_Elab_Tactic_evalLeft___rarg___closed__1; @@ -566,10 +591,13 @@ static lean_object* l_Lean_Elab_Tactic_evalFail___closed__10; LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___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_EXPORT lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__6(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___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707_(lean_object*); lean_object* l_List_rotateLeft___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl___closed__3; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__8(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_Lean_Elab_Tactic_evalRotateRight(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_evalWithAnnotateState___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__3___boxed(lean_object**); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange___closed__3; static lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; @@ -595,8 +623,11 @@ lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___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_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___closed__3; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__17___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTraceState(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRange___closed__6; @@ -641,6 +672,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFirst___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goOdd(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_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__8; lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRunTac_unsafe__1___closed__5; @@ -665,6 +697,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_addCheckpo lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___closed__6; +static lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___closed__3; @@ -673,8 +706,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_evalOpen static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFirst___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*); static lean_object* l_Lean_Elab_Tactic_evalRight___rarg___closed__1; +lean_object* l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_renameInaccessibles___spec__2(lean_object*, size_t, size_t, 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_evalReplace___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_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCase___spec__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalIntros___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -686,9 +721,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___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_Lean_Elab_Tactic_evalIntro___lambda__2___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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*); static lean_object* l_Lean_Elab_Tactic_isCheckpointableTactic___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessibles_declRange___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declRange___closed__3; lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__4; @@ -723,6 +760,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tacti lean_object* l_Lean_Syntax_getSepArgs(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__7; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__17(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___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange___closed__3; @@ -735,6 +773,7 @@ lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Tactic_evalOpen___spec__34___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_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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*); uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__2; @@ -772,7 +811,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_addCheckpoints___lambda__2___boxed(l static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___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___regBuiltin_Lean_Elab_Tactic_evalDone___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange___closed__5; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__36; @@ -796,6 +834,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___closed static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFail___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842_(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__2; static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Tactic_evalOpen___spec__34___lambda__1___closed__2; extern lean_object* l_Lean_diagnostics; @@ -806,6 +845,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSkip___boxed(lean_object*, lean_ extern lean_object* l_Lean_scopedEnvExtensionsRef; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1___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* l_Lean_MVarId_nthConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange(lean_object*); @@ -825,6 +865,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAssumption(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange___closed__6; +lean_object* lean_task_get_own(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRefl___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getOptRotation___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Tactic_evalOpen___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -834,6 +875,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Built static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase_x27___spec__1(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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics(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_getRefPos___at_Lean_Elab_Tactic_evalOpen___spec__38___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen(lean_object*); @@ -850,7 +892,6 @@ static lean_object* l_Lean_Elab_Tactic_evalRenameInaccessibles___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__4; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8; lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); @@ -863,25 +904,32 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRange___c static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalLeft___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___closed__6; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Tactic_renameInaccessibles___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_substEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__1; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__12(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___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__2; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2; static lean_object* l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticCDot___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRange___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalOpen___spec__41(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___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnknown___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___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRange___closed__4; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__15(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_Lean_resolveNamespaceCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_Lean_Elab_Tactic_evalReplace___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* l_Lean_LocalDecl_userName(lean_object*); @@ -899,12 +947,14 @@ lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lea static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch___closed__5; LEAN_EXPORT lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__31(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___regBuiltin_Lean_Elab_Tactic_evalCase___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_3370_(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalOpen___spec__41___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___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___closed__4; lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(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_addRawTrace___at_Lean_Elab_Tactic_evalTraceState___spec__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___regBuiltin_Lean_Elab_Tactic_evalRunTac(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRange___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_EXPORT lean_object* l_Lean_Elab_Tactic_forEachVar(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___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -926,6 +976,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange_ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1(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___regBuiltin_Lean_Elab_Tactic_evalFail___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___closed__3; @@ -933,7 +984,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSubstVars(lean_object*); static lean_object* l_Lean_pushScope___at_Lean_Elab_Tactic_evalOpen___spec__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___closed__2; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__4; +static lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed__5; @@ -942,6 +995,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRunTac(lean_object*, lean_object static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__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_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalOpen___spec__35(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_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___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* l_Lean_Elab_Term_addLocalVarInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___closed__6; static lean_object* l_Lean_Elab_Tactic_evalRunTac___closed__6; @@ -1003,15 +1057,17 @@ static lean_object* l_Lean_Elab_Tactic_evalReplace___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___closed__5; static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__11; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRotateLeft___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_mapMUnsafe_map___at_Lean_Elab_OpenDecl_elabOpenDecl___spec__5(size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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_environment_main_module(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__3; -lean_object* lean_nat_mod(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(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___regBuiltin_Lean_Elab_Tactic_evalCase___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__5; @@ -1020,13 +1076,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSkip___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRunTac___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__4; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(lean_object*, size_t, size_t, 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_evalDbgTrace(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_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed__6; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_evalOpen___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInaccessibles___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1049,11 +1104,16 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact_ static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__24; LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__14(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_evalWithAnnotateState___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed__5; lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption___closed__5; lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__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_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__4___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__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___regBuiltin_Lean_Elab_Tactic_evalAssumption(lean_object*); lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1093,6 +1153,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInac static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRefl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___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* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1106,9 +1167,11 @@ static lean_object* l_Lean_Elab_Tactic_evalReplace___lambda__2___closed__2; lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_renameInaccessibles___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___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*); static lean_object* l_Lean_Elab_Tactic_evalIntro_introStep___lambda__6___closed__1; lean_object* l_Lean_MVarId_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__6; +lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___closed__3; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__28; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1131,7 +1194,9 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange___clo static lean_object* l_Lean_Elab_Tactic_evalIntro_introStep___lambda__6___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalIntroMatch___lambda__1(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_Lean_Elab_Tactic_instInhabitedTacticFinished; lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___at_Array_appendList___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); @@ -1141,6 +1206,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange(lea static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRange___closed__6; +static lean_object* l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1; lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__7; @@ -1148,10 +1214,13 @@ static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_eva static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRange___closed__6; lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_commaList___closed__5; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__16(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_List_toString___at_Lean_ensureNoOverload___spec__2(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSetOption___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___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* l_List_reverse___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027_(lean_object*); static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___closed__1; static lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1; lean_object* l_Lean_Meta_subst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1167,6 +1236,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_renameInac static lean_object* l_Lean_Elab_Tactic_evalIntro_introStep___lambda__6___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessibles_declRange___closed__6; +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__11(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_Lean_Elab_Tactic_evalContradiction(lean_object*); lean_object* l_Lean_MVarId_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___closed__4; @@ -1198,12 +1268,10 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___closed_ static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__1; static lean_object* l_Lean_Elab_Tactic_evalRunTac_unsafe__1___closed__3; extern lean_object* l_Lean_instInhabitedName; -static lean_object* l_Lean_Elab_Tactic_evalCase___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___closed__2; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Expr_fvar___override(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepByIndentTactic(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_Lean_Elab_Tactic_renameInaccessibles___spec__11___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_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___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* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1215,6 +1283,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_declR LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption(lean_object*); lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__2; +lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declRange___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___closed__7; @@ -1222,9 +1291,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSubstVars___rarg___lambda__1(lea lean_object* lean_io_error_to_string(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__12; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__7; extern lean_object* l_Lean_instInhabitedSyntax; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalAnyGoals___closed__3; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_erase___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals___spec__1___boxed(lean_object*, lean_object*); @@ -1255,12 +1326,12 @@ lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg(lean_object*, lean_ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalChoice(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___regBuiltin_Lean_Elab_Tactic_evalFail(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange___closed__3; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRange___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___closed__2; static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__2; static lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__6; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___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_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight___closed__2; lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange___closed__7; @@ -1289,7 +1360,6 @@ LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_evalOpen___spec static lean_object* l_Lean_Elab_Tactic_evalFail___closed__9; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed__7; -lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(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___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTraceState___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___closed__7; @@ -1302,6 +1372,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___closed_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase___spec__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*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___closed__7; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_renameInaccessibles___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*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; @@ -1320,7 +1391,6 @@ lean_object* l_Lean_MVarId_intros(lean_object*, lean_object*, lean_object*, lean static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRunTac___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; static lean_object* l_Lean_Elab_Tactic_renameInaccessibles___closed__5; static lean_object* l_Lean_Elab_Tactic_evalWithAnnotateState___closed__4; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange(lean_object*); @@ -1350,6 +1420,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Open_0__Lean_Elab_O static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__6; lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessibles___closed__1; lean_object* l_String_toSubstring_x27(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Tactic_renameInaccessibles___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1401,6 +1472,8 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange___close static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange___closed__6; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___boxed(lean_object**); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___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_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13(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___regBuiltin_Lean_Elab_Tactic_elabSetOption___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_renameInaccessibles___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*); static lean_object* l_Lean_Elab_Tactic_evalCase_x27___closed__1; @@ -1412,6 +1485,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange___clos static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__6; static lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_get_x3f___rarg(lean_object*, lean_object*); uint8_t l_Lean_MacroScopesView_equalScope(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalWithAnnotateState___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) { _start: @@ -1919,46 +1993,5923 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1() { +static lean_object* _init_l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_builtinIncrementalTactics; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_14 = lean_io_get_num_heartbeats(x_13); +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 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1; +x_18 = lean_st_ref_get(x_17, x_16); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_1); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 1); +x_23 = lean_ctor_get(x_1, 8); +lean_dec(x_23); +lean_inc(x_2); +x_24 = l_Lean_Syntax_getKind(x_2); +x_25 = l_Lean_NameSet_contains(x_21, x_24); +lean_dec(x_24); +lean_dec(x_21); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_18); +lean_dec(x_9); +lean_dec(x_8); +x_26 = lean_box(0); +lean_ctor_set(x_1, 8, x_26); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_27 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_11, x_12, x_22); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_st_ref_get(x_12, x_28); +lean_dec(x_12); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +x_33 = lean_io_get_num_heartbeats(x_32); +x_34 = !lean_is_exclusive(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; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +x_37 = lean_nat_sub(x_35, x_15); +lean_dec(x_15); +lean_dec(x_35); +lean_ctor_set(x_33, 1, x_37); +lean_ctor_set(x_33, 0, x_31); +x_38 = lean_st_ref_get(x_7, x_36); +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_ctor_set(x_38, 1, x_40); +lean_ctor_set(x_38, 0, x_33); +x_42 = lean_st_ref_get(x_5, x_41); +lean_dec(x_5); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_ctor_set(x_42, 1, x_44); +lean_ctor_set(x_42, 0, x_38); +x_46 = lean_st_ref_get(x_4, x_45); +lean_dec(x_4); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; +x_48 = lean_ctor_get(x_46, 0); +lean_ctor_set(x_29, 1, x_48); +lean_ctor_set(x_29, 0, x_42); +lean_ctor_set(x_46, 0, x_29); +return x_46; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_46, 0); +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_46); +lean_ctor_set(x_29, 1, x_49); +lean_ctor_set(x_29, 0, x_42); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_29); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +else +{ +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; +x_52 = lean_ctor_get(x_42, 0); +x_53 = lean_ctor_get(x_42, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_42); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_38); +lean_ctor_set(x_54, 1, x_52); +x_55 = lean_st_ref_get(x_4, x_53); +lean_dec(x_4); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; +} else { + lean_dec_ref(x_55); + x_58 = lean_box(0); +} +lean_ctor_set(x_29, 1, x_56); +lean_ctor_set(x_29, 0, x_54); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_29); +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_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_60 = lean_ctor_get(x_38, 0); +x_61 = lean_ctor_get(x_38, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_38); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_33); +lean_ctor_set(x_62, 1, x_60); +x_63 = lean_st_ref_get(x_5, x_61); +lean_dec(x_5); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; +} else { + lean_dec_ref(x_63); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_64); +x_68 = lean_st_ref_get(x_4, x_65); +lean_dec(x_4); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_71 = x_68; +} else { + lean_dec_ref(x_68); + x_71 = lean_box(0); +} +lean_ctor_set(x_29, 1, x_69); +lean_ctor_set(x_29, 0, x_67); +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_29); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +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; 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; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_73 = lean_ctor_get(x_33, 0); +x_74 = lean_ctor_get(x_33, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_33); +x_75 = lean_nat_sub(x_73, x_15); +lean_dec(x_15); +lean_dec(x_73); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_31); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_st_ref_get(x_7, x_74); +lean_dec(x_7); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_76); +lean_ctor_set(x_81, 1, x_78); +x_82 = lean_st_ref_get(x_5, x_79); +lean_dec(x_5); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +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 { + lean_dec_ref(x_82); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_81); +lean_ctor_set(x_86, 1, x_83); +x_87 = lean_st_ref_get(x_4, x_84); +lean_dec(x_4); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +lean_ctor_set(x_29, 1, x_88); +lean_ctor_set(x_29, 0, x_86); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_90; +} +lean_ctor_set(x_91, 0, x_29); +lean_ctor_set(x_91, 1, x_89); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 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; +x_92 = lean_ctor_get(x_29, 0); +x_93 = lean_ctor_get(x_29, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_29); +x_94 = lean_io_get_num_heartbeats(x_93); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_97 = x_94; +} else { + lean_dec_ref(x_94); + x_97 = lean_box(0); +} +x_98 = lean_nat_sub(x_95, x_15); +lean_dec(x_15); +lean_dec(x_95); +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_97; +} +lean_ctor_set(x_99, 0, x_92); +lean_ctor_set(x_99, 1, x_98); +x_100 = lean_st_ref_get(x_7, x_96); +lean_dec(x_7); +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_100); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_99); +lean_ctor_set(x_104, 1, x_101); +x_105 = lean_st_ref_get(x_5, x_102); +lean_dec(x_5); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; +} else { + lean_dec_ref(x_105); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_106); +x_110 = lean_st_ref_get(x_4, x_107); +lean_dec(x_4); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_113 = x_110; +} else { + lean_dec_ref(x_110); + x_113 = lean_box(0); +} +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_109); +lean_ctor_set(x_114, 1, x_111); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_113; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; +} +} +else +{ +uint8_t x_116; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_116 = !lean_is_exclusive(x_27); +if (x_116 == 0) +{ +return x_27; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_27, 0); +x_118 = lean_ctor_get(x_27, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_27); +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_ctor_set(x_18, 1, x_9); +lean_ctor_set(x_18, 0, x_8); +x_120 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_120, 0, x_18); +lean_ctor_set(x_1, 8, x_120); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_121 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_11, x_12, x_22); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +lean_dec(x_121); +x_123 = lean_st_ref_get(x_12, x_122); +lean_dec(x_12); +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_123, 0); +x_126 = lean_ctor_get(x_123, 1); +x_127 = lean_io_get_num_heartbeats(x_126); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; +x_129 = lean_ctor_get(x_127, 0); +x_130 = lean_ctor_get(x_127, 1); +x_131 = lean_nat_sub(x_129, x_15); +lean_dec(x_15); +lean_dec(x_129); +lean_ctor_set(x_127, 1, x_131); +lean_ctor_set(x_127, 0, x_125); +x_132 = lean_st_ref_get(x_7, x_130); +lean_dec(x_7); +x_133 = !lean_is_exclusive(x_132); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_134 = lean_ctor_get(x_132, 0); +x_135 = lean_ctor_get(x_132, 1); +lean_ctor_set(x_132, 1, x_134); +lean_ctor_set(x_132, 0, x_127); +x_136 = lean_st_ref_get(x_5, x_135); +lean_dec(x_5); +x_137 = !lean_is_exclusive(x_136); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_138 = lean_ctor_get(x_136, 0); +x_139 = lean_ctor_get(x_136, 1); +lean_ctor_set(x_136, 1, x_138); +lean_ctor_set(x_136, 0, x_132); +x_140 = lean_st_ref_get(x_4, x_139); +lean_dec(x_4); +x_141 = !lean_is_exclusive(x_140); +if (x_141 == 0) +{ +lean_object* x_142; +x_142 = lean_ctor_get(x_140, 0); +lean_ctor_set(x_123, 1, x_142); +lean_ctor_set(x_123, 0, x_136); +lean_ctor_set(x_140, 0, x_123); +return x_140; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_140, 0); +x_144 = lean_ctor_get(x_140, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_140); +lean_ctor_set(x_123, 1, x_143); +lean_ctor_set(x_123, 0, x_136); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_123); +lean_ctor_set(x_145, 1, x_144); +return x_145; +} +} +else +{ +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_146 = lean_ctor_get(x_136, 0); +x_147 = lean_ctor_get(x_136, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_136); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_132); +lean_ctor_set(x_148, 1, x_146); +x_149 = lean_st_ref_get(x_4, x_147); +lean_dec(x_4); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; +} else { + lean_dec_ref(x_149); + x_152 = lean_box(0); +} +lean_ctor_set(x_123, 1, x_150); +lean_ctor_set(x_123, 0, x_148); +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_123); +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; 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; +x_154 = lean_ctor_get(x_132, 0); +x_155 = lean_ctor_get(x_132, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_132); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_127); +lean_ctor_set(x_156, 1, x_154); +x_157 = lean_st_ref_get(x_5, x_155); +lean_dec(x_5); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_160 = x_157; +} else { + lean_dec_ref(x_157); + x_160 = lean_box(0); +} +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(0, 2, 0); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_156); +lean_ctor_set(x_161, 1, x_158); +x_162 = lean_st_ref_get(x_4, x_159); +lean_dec(x_4); +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_165 = x_162; +} else { + lean_dec_ref(x_162); + x_165 = lean_box(0); +} +lean_ctor_set(x_123, 1, x_163); +lean_ctor_set(x_123, 0, x_161); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(0, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_123); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_167 = lean_ctor_get(x_127, 0); +x_168 = lean_ctor_get(x_127, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_127); +x_169 = lean_nat_sub(x_167, x_15); +lean_dec(x_15); +lean_dec(x_167); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_125); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_st_ref_get(x_7, x_168); +lean_dec(x_7); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_174 = x_171; +} else { + lean_dec_ref(x_171); + x_174 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { + x_175 = x_174; +} +lean_ctor_set(x_175, 0, x_170); +lean_ctor_set(x_175, 1, x_172); +x_176 = lean_st_ref_get(x_5, x_173); +lean_dec(x_5); +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +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_175); +lean_ctor_set(x_180, 1, x_177); +x_181 = lean_st_ref_get(x_4, x_178); +lean_dec(x_4); +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_184 = x_181; +} else { + lean_dec_ref(x_181); + x_184 = lean_box(0); +} +lean_ctor_set(x_123, 1, x_182); +lean_ctor_set(x_123, 0, x_180); +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(0, 2, 0); +} else { + x_185 = x_184; +} +lean_ctor_set(x_185, 0, x_123); +lean_ctor_set(x_185, 1, x_183); +return x_185; +} +} +else +{ +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; lean_object* x_209; +x_186 = lean_ctor_get(x_123, 0); +x_187 = lean_ctor_get(x_123, 1); +lean_inc(x_187); +lean_inc(x_186); +lean_dec(x_123); +x_188 = lean_io_get_num_heartbeats(x_187); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +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); +} +x_192 = lean_nat_sub(x_189, x_15); +lean_dec(x_15); +lean_dec(x_189); +if (lean_is_scalar(x_191)) { + x_193 = lean_alloc_ctor(0, 2, 0); +} else { + x_193 = x_191; +} +lean_ctor_set(x_193, 0, x_186); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_st_ref_get(x_7, x_190); +lean_dec(x_7); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_197 = x_194; +} else { + lean_dec_ref(x_194); + x_197 = lean_box(0); +} +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_197; +} +lean_ctor_set(x_198, 0, x_193); +lean_ctor_set(x_198, 1, x_195); +x_199 = lean_st_ref_get(x_5, x_196); +lean_dec(x_5); +x_200 = lean_ctor_get(x_199, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + lean_ctor_release(x_199, 1); + x_202 = x_199; +} else { + lean_dec_ref(x_199); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 2, 0); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_198); +lean_ctor_set(x_203, 1, x_200); +x_204 = lean_st_ref_get(x_4, x_201); +lean_dec(x_4); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; +} else { + lean_dec_ref(x_204); + x_207 = lean_box(0); +} +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_203); +lean_ctor_set(x_208, 1, x_205); +if (lean_is_scalar(x_207)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_207; +} +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_206); +return x_209; +} +} +else +{ +uint8_t x_210; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_210 = !lean_is_exclusive(x_121); +if (x_210 == 0) +{ +return x_121; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_121, 0); +x_212 = lean_ctor_get(x_121, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_121); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; +} +} +} +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; uint8_t x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; lean_object* x_231; uint8_t x_232; uint8_t x_233; lean_object* x_234; uint8_t x_235; +x_214 = lean_ctor_get(x_18, 0); +x_215 = lean_ctor_get(x_18, 1); +x_216 = lean_ctor_get(x_1, 0); +x_217 = lean_ctor_get(x_1, 1); +x_218 = lean_ctor_get(x_1, 2); +x_219 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +x_220 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); +x_221 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 2); +x_222 = lean_ctor_get(x_1, 3); +x_223 = lean_ctor_get(x_1, 4); +x_224 = lean_ctor_get(x_1, 5); +x_225 = lean_ctor_get(x_1, 6); +x_226 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 3); +x_227 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 4); +x_228 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 5); +x_229 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 6); +x_230 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 7); +x_231 = lean_ctor_get(x_1, 7); +x_232 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 8); +x_233 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 9); +lean_inc(x_231); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_218); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_1); +lean_inc(x_2); +x_234 = l_Lean_Syntax_getKind(x_2); +x_235 = l_Lean_NameSet_contains(x_214, x_234); +lean_dec(x_234); +lean_dec(x_214); +if (x_235 == 0) +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_free_object(x_18); +lean_dec(x_9); +lean_dec(x_8); +x_236 = lean_box(0); +x_237 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_237, 0, x_216); +lean_ctor_set(x_237, 1, x_217); +lean_ctor_set(x_237, 2, x_218); +lean_ctor_set(x_237, 3, x_222); +lean_ctor_set(x_237, 4, x_223); +lean_ctor_set(x_237, 5, x_224); +lean_ctor_set(x_237, 6, x_225); +lean_ctor_set(x_237, 7, x_231); +lean_ctor_set(x_237, 8, x_236); +lean_ctor_set_uint8(x_237, sizeof(void*)*9, x_219); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 1, x_220); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 2, x_221); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 3, x_226); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 4, x_227); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 5, x_228); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 6, x_229); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 7, x_230); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 8, x_232); +lean_ctor_set_uint8(x_237, sizeof(void*)*9 + 9, x_233); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_238 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_237, x_5, x_6, x_7, x_11, x_12, x_215); +if (lean_obj_tag(x_238) == 0) +{ +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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_239 = lean_ctor_get(x_238, 1); +lean_inc(x_239); +lean_dec(x_238); +x_240 = lean_st_ref_get(x_12, x_239); +lean_dec(x_12); +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_243 = x_240; +} else { + lean_dec_ref(x_240); + x_243 = lean_box(0); +} +x_244 = lean_io_get_num_heartbeats(x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_247 = x_244; +} else { + lean_dec_ref(x_244); + x_247 = lean_box(0); +} +x_248 = lean_nat_sub(x_245, x_15); +lean_dec(x_15); +lean_dec(x_245); +if (lean_is_scalar(x_247)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_247; +} +lean_ctor_set(x_249, 0, x_241); +lean_ctor_set(x_249, 1, x_248); +x_250 = lean_st_ref_get(x_7, x_246); +lean_dec(x_7); +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_253)) { + x_254 = lean_alloc_ctor(0, 2, 0); +} else { + x_254 = x_253; +} +lean_ctor_set(x_254, 0, x_249); +lean_ctor_set(x_254, 1, x_251); +x_255 = lean_st_ref_get(x_5, x_252); +lean_dec(x_5); +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_254); +lean_ctor_set(x_259, 1, x_256); +x_260 = lean_st_ref_get(x_4, x_257); +lean_dec(x_4); +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + lean_ctor_release(x_260, 1); + x_263 = x_260; +} else { + lean_dec_ref(x_260); + x_263 = lean_box(0); +} +if (lean_is_scalar(x_243)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_243; +} +lean_ctor_set(x_264, 0, x_259); +lean_ctor_set(x_264, 1, x_261); +if (lean_is_scalar(x_263)) { + x_265 = lean_alloc_ctor(0, 2, 0); +} else { + x_265 = x_263; +} +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_262); +return x_265; +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_266 = lean_ctor_get(x_238, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_238, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_268 = x_238; +} else { + lean_dec_ref(x_238); + 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_ctor_set(x_18, 1, x_9); +lean_ctor_set(x_18, 0, x_8); +x_270 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_270, 0, x_18); +x_271 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_271, 0, x_216); +lean_ctor_set(x_271, 1, x_217); +lean_ctor_set(x_271, 2, x_218); +lean_ctor_set(x_271, 3, x_222); +lean_ctor_set(x_271, 4, x_223); +lean_ctor_set(x_271, 5, x_224); +lean_ctor_set(x_271, 6, x_225); +lean_ctor_set(x_271, 7, x_231); +lean_ctor_set(x_271, 8, x_270); +lean_ctor_set_uint8(x_271, sizeof(void*)*9, x_219); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 1, x_220); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 2, x_221); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 3, x_226); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 4, x_227); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 5, x_228); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 6, x_229); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 7, x_230); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 8, x_232); +lean_ctor_set_uint8(x_271, sizeof(void*)*9 + 9, x_233); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_272 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_271, x_5, x_6, x_7, x_11, x_12, x_215); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_273 = lean_ctor_get(x_272, 1); +lean_inc(x_273); +lean_dec(x_272); +x_274 = lean_st_ref_get(x_12, x_273); +lean_dec(x_12); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +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_io_get_num_heartbeats(x_276); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_281 = x_278; +} else { + lean_dec_ref(x_278); + x_281 = lean_box(0); +} +x_282 = lean_nat_sub(x_279, x_15); +lean_dec(x_15); +lean_dec(x_279); +if (lean_is_scalar(x_281)) { + x_283 = lean_alloc_ctor(0, 2, 0); +} else { + x_283 = x_281; +} +lean_ctor_set(x_283, 0, x_275); +lean_ctor_set(x_283, 1, x_282); +x_284 = lean_st_ref_get(x_7, x_280); +lean_dec(x_7); +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_284, 1); +lean_inc(x_286); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_287 = x_284; +} else { + lean_dec_ref(x_284); + x_287 = lean_box(0); +} +if (lean_is_scalar(x_287)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_287; +} +lean_ctor_set(x_288, 0, x_283); +lean_ctor_set(x_288, 1, x_285); +x_289 = lean_st_ref_get(x_5, x_286); +lean_dec(x_5); +x_290 = lean_ctor_get(x_289, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_292 = x_289; +} else { + lean_dec_ref(x_289); + x_292 = lean_box(0); +} +if (lean_is_scalar(x_292)) { + x_293 = lean_alloc_ctor(0, 2, 0); +} else { + x_293 = x_292; +} +lean_ctor_set(x_293, 0, x_288); +lean_ctor_set(x_293, 1, x_290); +x_294 = lean_st_ref_get(x_4, x_291); +lean_dec(x_4); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +if (lean_is_exclusive(x_294)) { + lean_ctor_release(x_294, 0); + lean_ctor_release(x_294, 1); + x_297 = x_294; +} else { + lean_dec_ref(x_294); + x_297 = lean_box(0); +} +if (lean_is_scalar(x_277)) { + x_298 = lean_alloc_ctor(0, 2, 0); +} else { + x_298 = x_277; +} +lean_ctor_set(x_298, 0, x_293); +lean_ctor_set(x_298, 1, x_295); +if (lean_is_scalar(x_297)) { + x_299 = lean_alloc_ctor(0, 2, 0); +} else { + x_299 = x_297; +} +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_296); +return x_299; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_300 = lean_ctor_get(x_272, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_272, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_302 = x_272; +} else { + lean_dec_ref(x_272); + x_302 = lean_box(0); +} +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(1, 2, 0); +} else { + x_303 = x_302; +} +lean_ctor_set(x_303, 0, x_300); +lean_ctor_set(x_303, 1, x_301); +return x_303; +} +} +} +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; uint8_t x_310; uint8_t x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; uint8_t x_317; uint8_t x_318; uint8_t x_319; uint8_t x_320; lean_object* x_321; uint8_t x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; +x_304 = lean_ctor_get(x_18, 0); +x_305 = lean_ctor_get(x_18, 1); +lean_inc(x_305); +lean_inc(x_304); +lean_dec(x_18); +x_306 = lean_ctor_get(x_1, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_1, 1); +lean_inc(x_307); +x_308 = lean_ctor_get(x_1, 2); +lean_inc(x_308); +x_309 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +x_310 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); +x_311 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 2); +x_312 = lean_ctor_get(x_1, 3); +lean_inc(x_312); +x_313 = lean_ctor_get(x_1, 4); +lean_inc(x_313); +x_314 = lean_ctor_get(x_1, 5); +lean_inc(x_314); +x_315 = lean_ctor_get(x_1, 6); +lean_inc(x_315); +x_316 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 3); +x_317 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 4); +x_318 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 5); +x_319 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 6); +x_320 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 7); +x_321 = lean_ctor_get(x_1, 7); +lean_inc(x_321); +x_322 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 8); +x_323 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + lean_ctor_release(x_1, 7); + lean_ctor_release(x_1, 8); + x_324 = x_1; +} else { + lean_dec_ref(x_1); + x_324 = lean_box(0); +} +lean_inc(x_2); +x_325 = l_Lean_Syntax_getKind(x_2); +x_326 = l_Lean_NameSet_contains(x_304, x_325); +lean_dec(x_325); +lean_dec(x_304); +if (x_326 == 0) +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; +lean_dec(x_9); +lean_dec(x_8); +x_327 = lean_box(0); +if (lean_is_scalar(x_324)) { + x_328 = lean_alloc_ctor(0, 9, 10); +} else { + x_328 = x_324; +} +lean_ctor_set(x_328, 0, x_306); +lean_ctor_set(x_328, 1, x_307); +lean_ctor_set(x_328, 2, x_308); +lean_ctor_set(x_328, 3, x_312); +lean_ctor_set(x_328, 4, x_313); +lean_ctor_set(x_328, 5, x_314); +lean_ctor_set(x_328, 6, x_315); +lean_ctor_set(x_328, 7, x_321); +lean_ctor_set(x_328, 8, x_327); +lean_ctor_set_uint8(x_328, sizeof(void*)*9, x_309); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 1, x_310); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 2, x_311); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 3, x_316); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 4, x_317); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 5, x_318); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 6, x_319); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 7, x_320); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 8, x_322); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 9, x_323); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_329 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_328, x_5, x_6, x_7, x_11, x_12, x_305); +if (lean_obj_tag(x_329) == 0) +{ +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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; +x_330 = lean_ctor_get(x_329, 1); +lean_inc(x_330); +lean_dec(x_329); +x_331 = lean_st_ref_get(x_12, x_330); +lean_dec(x_12); +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); +if (lean_is_exclusive(x_331)) { + lean_ctor_release(x_331, 0); + lean_ctor_release(x_331, 1); + x_334 = x_331; +} else { + lean_dec_ref(x_331); + x_334 = lean_box(0); +} +x_335 = lean_io_get_num_heartbeats(x_333); +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); +if (lean_is_exclusive(x_335)) { + lean_ctor_release(x_335, 0); + lean_ctor_release(x_335, 1); + x_338 = x_335; +} else { + lean_dec_ref(x_335); + x_338 = lean_box(0); +} +x_339 = lean_nat_sub(x_336, x_15); +lean_dec(x_15); +lean_dec(x_336); +if (lean_is_scalar(x_338)) { + x_340 = lean_alloc_ctor(0, 2, 0); +} else { + x_340 = x_338; +} +lean_ctor_set(x_340, 0, x_332); +lean_ctor_set(x_340, 1, x_339); +x_341 = lean_st_ref_get(x_7, x_337); +lean_dec(x_7); +x_342 = lean_ctor_get(x_341, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_341, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + x_344 = x_341; +} else { + lean_dec_ref(x_341); + x_344 = lean_box(0); +} +if (lean_is_scalar(x_344)) { + x_345 = lean_alloc_ctor(0, 2, 0); +} else { + x_345 = x_344; +} +lean_ctor_set(x_345, 0, x_340); +lean_ctor_set(x_345, 1, x_342); +x_346 = lean_st_ref_get(x_5, x_343); +lean_dec(x_5); +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_346, 1); +lean_inc(x_348); +if (lean_is_exclusive(x_346)) { + lean_ctor_release(x_346, 0); + lean_ctor_release(x_346, 1); + x_349 = x_346; +} else { + lean_dec_ref(x_346); + x_349 = lean_box(0); +} +if (lean_is_scalar(x_349)) { + x_350 = lean_alloc_ctor(0, 2, 0); +} else { + x_350 = x_349; +} +lean_ctor_set(x_350, 0, x_345); +lean_ctor_set(x_350, 1, x_347); +x_351 = lean_st_ref_get(x_4, x_348); +lean_dec(x_4); +x_352 = lean_ctor_get(x_351, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); +lean_inc(x_353); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + x_354 = x_351; +} else { + lean_dec_ref(x_351); + x_354 = lean_box(0); +} +if (lean_is_scalar(x_334)) { + x_355 = lean_alloc_ctor(0, 2, 0); +} else { + x_355 = x_334; +} +lean_ctor_set(x_355, 0, x_350); +lean_ctor_set(x_355, 1, x_352); +if (lean_is_scalar(x_354)) { + x_356 = lean_alloc_ctor(0, 2, 0); +} else { + x_356 = x_354; +} +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_353); +return x_356; +} +else +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_357 = lean_ctor_get(x_329, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_329, 1); +lean_inc(x_358); +if (lean_is_exclusive(x_329)) { + lean_ctor_release(x_329, 0); + lean_ctor_release(x_329, 1); + x_359 = x_329; +} else { + lean_dec_ref(x_329); + x_359 = lean_box(0); +} +if (lean_is_scalar(x_359)) { + x_360 = lean_alloc_ctor(1, 2, 0); +} else { + x_360 = x_359; +} +lean_ctor_set(x_360, 0, x_357); +lean_ctor_set(x_360, 1, x_358); +return x_360; +} +} +else +{ +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_361 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_361, 0, x_8); +lean_ctor_set(x_361, 1, x_9); +x_362 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_362, 0, x_361); +if (lean_is_scalar(x_324)) { + x_363 = lean_alloc_ctor(0, 9, 10); +} else { + x_363 = x_324; +} +lean_ctor_set(x_363, 0, x_306); +lean_ctor_set(x_363, 1, x_307); +lean_ctor_set(x_363, 2, x_308); +lean_ctor_set(x_363, 3, x_312); +lean_ctor_set(x_363, 4, x_313); +lean_ctor_set(x_363, 5, x_314); +lean_ctor_set(x_363, 6, x_315); +lean_ctor_set(x_363, 7, x_321); +lean_ctor_set(x_363, 8, x_362); +lean_ctor_set_uint8(x_363, sizeof(void*)*9, x_309); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 1, x_310); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 2, x_311); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 3, x_316); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 4, x_317); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 5, x_318); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 6, x_319); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 7, x_320); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 8, x_322); +lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 9, x_323); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +x_364 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_363, x_5, x_6, x_7, x_11, x_12, x_305); +if (lean_obj_tag(x_364) == 0) +{ +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; lean_object* x_377; lean_object* x_378; lean_object* x_379; 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_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_365 = lean_ctor_get(x_364, 1); +lean_inc(x_365); +lean_dec(x_364); +x_366 = lean_st_ref_get(x_12, x_365); +lean_dec(x_12); +x_367 = lean_ctor_get(x_366, 0); +lean_inc(x_367); +x_368 = lean_ctor_get(x_366, 1); +lean_inc(x_368); +if (lean_is_exclusive(x_366)) { + lean_ctor_release(x_366, 0); + lean_ctor_release(x_366, 1); + x_369 = x_366; +} else { + lean_dec_ref(x_366); + x_369 = lean_box(0); +} +x_370 = lean_io_get_num_heartbeats(x_368); +x_371 = lean_ctor_get(x_370, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_370, 1); +lean_inc(x_372); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_373 = x_370; +} else { + lean_dec_ref(x_370); + x_373 = lean_box(0); +} +x_374 = lean_nat_sub(x_371, x_15); +lean_dec(x_15); +lean_dec(x_371); +if (lean_is_scalar(x_373)) { + x_375 = lean_alloc_ctor(0, 2, 0); +} else { + x_375 = x_373; +} +lean_ctor_set(x_375, 0, x_367); +lean_ctor_set(x_375, 1, x_374); +x_376 = lean_st_ref_get(x_7, x_372); +lean_dec(x_7); +x_377 = lean_ctor_get(x_376, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_376, 1); +lean_inc(x_378); +if (lean_is_exclusive(x_376)) { + lean_ctor_release(x_376, 0); + lean_ctor_release(x_376, 1); + x_379 = x_376; +} else { + lean_dec_ref(x_376); + x_379 = lean_box(0); +} +if (lean_is_scalar(x_379)) { + x_380 = lean_alloc_ctor(0, 2, 0); +} else { + x_380 = x_379; +} +lean_ctor_set(x_380, 0, x_375); +lean_ctor_set(x_380, 1, x_377); +x_381 = lean_st_ref_get(x_5, x_378); +lean_dec(x_5); +x_382 = lean_ctor_get(x_381, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_381, 1); +lean_inc(x_383); +if (lean_is_exclusive(x_381)) { + lean_ctor_release(x_381, 0); + lean_ctor_release(x_381, 1); + x_384 = x_381; +} else { + lean_dec_ref(x_381); + x_384 = lean_box(0); +} +if (lean_is_scalar(x_384)) { + x_385 = lean_alloc_ctor(0, 2, 0); +} else { + x_385 = x_384; +} +lean_ctor_set(x_385, 0, x_380); +lean_ctor_set(x_385, 1, x_382); +x_386 = lean_st_ref_get(x_4, x_383); +lean_dec(x_4); +x_387 = lean_ctor_get(x_386, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_389 = x_386; +} else { + lean_dec_ref(x_386); + x_389 = lean_box(0); +} +if (lean_is_scalar(x_369)) { + x_390 = lean_alloc_ctor(0, 2, 0); +} else { + x_390 = x_369; +} +lean_ctor_set(x_390, 0, x_385); +lean_ctor_set(x_390, 1, x_387); +if (lean_is_scalar(x_389)) { + x_391 = lean_alloc_ctor(0, 2, 0); +} else { + x_391 = x_389; +} +lean_ctor_set(x_391, 0, x_390); +lean_ctor_set(x_391, 1, x_388); +return x_391; +} +else +{ +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_392 = lean_ctor_get(x_364, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_364, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_364)) { + lean_ctor_release(x_364, 0); + lean_ctor_release(x_364, 1); + x_394 = x_364; +} else { + lean_dec_ref(x_364); + x_394 = lean_box(0); +} +if (lean_is_scalar(x_394)) { + x_395 = lean_alloc_ctor(1, 2, 0); +} else { + x_395 = x_394; +} +lean_ctor_set(x_395, 0, x_392); +lean_ctor_set(x_395, 1, x_393); +return x_395; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__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) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_15, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_58, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_10, x_18, x_13); +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 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, 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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_15, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_58, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_10, x_18, x_13); +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 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_15, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_1, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_1, x_10, x_11, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_58, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___lambda__1(x_6, x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_6, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_8, x_18, x_13); +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 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___lambda__1(x_6, x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_15, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_58, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_10, x_18, x_13); +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 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1(x_6, x_1, x_4, x_5, x_7, x_8, x_9, x_2, x_3, x_14, x_11, x_12, x_13); +return x_15; +} +else +{ +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; uint64_t x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_st_ref_set(x_12, x_19, x_13); +lean_dec(x_12); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_uint64_of_nat(x_22); +lean_dec(x_22); +x_24 = lean_io_add_heartbeats(x_23, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_17); +return x_24; +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__14(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_15, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__15(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__15(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_1, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__15(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_11, x_58, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_8, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_10, x_18, x_13); +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 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___lambda__1(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_20, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_15, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_1, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_1, x_10, x_11, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13(x_2, x_3, x_4, x_5, x_6, x_8, x_9, x_58, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___lambda__1(x_6, x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_6, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_8, x_18, x_13); +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 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___lambda__1(x_6, x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2(x_2, x_3, x_4, x_6, x_7, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_1, 0); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +lean_ctor_set(x_26, 1, x_29); +x_30 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 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; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_30); +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; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_ctor_get(x_40, 0); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_1, 0, x_42); +x_43 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9(x_2, x_3, x_4, x_6, x_7, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +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_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; +} else { + lean_dec_ref(x_43); + 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 +{ +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; +x_52 = lean_ctor_get(x_1, 0); +lean_inc(x_52); +lean_dec(x_1); +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_54, 0); +lean_inc(x_56); +lean_dec(x_54); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_53); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9(x_2, x_3, x_4, x_6, x_7, x_58, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; +} else { + lean_dec_ref(x_59); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1___lambda__1(x_4, x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} +else +{ +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; +x_16 = lean_ctor_get(x_4, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_set(x_6, x_18, x_13); +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 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1___lambda__1(x_4, x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___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, 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 = lean_io_promise_new(x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_13); +x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_io_promise_resolve(x_1, x_13, x_17); +lean_dec(x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_15, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_io_promise_resolve(x_1, x_13, x_24); +lean_dec(x_13); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_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 = lean_io_promise_new(x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_13); +x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_io_promise_resolve(x_1, x_13, x_17); +lean_dec(x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_15, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_io_promise_resolve(x_1, x_13, x_24); +lean_dec(x_13); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_1); +x_13 = lean_apply_1(x_1, x_3); +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_is_exclusive(x_10); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_6); +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_10, 2); +x_19 = lean_ctor_get(x_10, 5); +x_20 = lean_ctor_get(x_6, 8); +x_21 = l_Lean_replaceRef(x_15, x_19); +lean_dec(x_19); +lean_inc(x_18); +lean_ctor_set(x_10, 5, x_21); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_22 = lean_box(0); +lean_ctor_set(x_6, 8, x_22); +x_23 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_25, 0, x_29); +x_30 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set(x_20, 0, x_33); +x_34 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_25); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_25, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_37, 0); +x_41 = lean_ctor_get(x_37, 1); +x_42 = lean_apply_1(x_1, x_40); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_43); +lean_dec(x_18); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +lean_free_object(x_37); +lean_dec(x_41); +lean_free_object(x_20); +x_47 = lean_box(0); +lean_ctor_set(x_25, 0, x_47); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_48 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_48; +} +else +{ +lean_object* x_49; +lean_ctor_set(x_37, 0, x_44); +x_49 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_49; +} +} +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; uint8_t x_56; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_apply_1(x_1, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_53); +lean_dec(x_18); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_51); +lean_free_object(x_20); +x_57 = lean_box(0); +lean_ctor_set(x_25, 0, x_57); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_58 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_26, 0, x_59); +x_60 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_60; +} +} +} +else +{ +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; uint8_t x_70; +x_61 = lean_ctor_get(x_26, 0); +x_62 = lean_ctor_get(x_25, 1); +lean_inc(x_62); +lean_dec(x_25); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_65 = x_61; +} else { + lean_dec_ref(x_61); + x_65 = lean_box(0); +} +x_66 = lean_apply_1(x_1, x_63); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_67); +lean_dec(x_18); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_68); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_20); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_62); +lean_ctor_set(x_26, 0, x_72); +lean_ctor_set(x_6, 8, x_26); +x_73 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +if (lean_is_scalar(x_65)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_65; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_64); +lean_ctor_set(x_26, 0, x_74); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_26); +lean_ctor_set(x_75, 1, x_62); +lean_ctor_set(x_20, 0, x_75); +x_76 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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; uint8_t x_87; +x_77 = lean_ctor_get(x_26, 0); +lean_inc(x_77); +lean_dec(x_26); +x_78 = lean_ctor_get(x_25, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_79 = x_25; +} else { + lean_dec_ref(x_25); + x_79 = 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_apply_1(x_1, x_80); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_84); +lean_dec(x_18); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_81); +lean_free_object(x_20); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_6, 8, x_90); +x_91 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +if (lean_is_scalar(x_82)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_82; +} +lean_ctor_set(x_92, 0, x_85); +lean_ctor_set(x_92, 1, x_81); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_78); +lean_ctor_set(x_20, 0, x_94); +x_95 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_95; +} +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_20, 0); +lean_inc(x_96); +lean_dec(x_20); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +x_100 = lean_box(0); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_99; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_6, 8, x_102); +x_103 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_104 = lean_ctor_get(x_97, 0); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_105 = x_97; +} else { + lean_dec_ref(x_97); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_96, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_107 = x_96; +} else { + lean_dec_ref(x_96); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_110 = x_104; +} else { + lean_dec_ref(x_104); + x_110 = lean_box(0); +} +x_111 = lean_apply_1(x_1, x_108); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_112); +lean_dec(x_18); +x_115 = lean_unbox(x_114); +lean_dec(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_109); +x_116 = lean_box(0); +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); +if (lean_is_scalar(x_105)) { + x_118 = lean_alloc_ctor(1, 1, 0); +} else { + x_118 = x_105; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_6, 8, x_118); +x_119 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_110; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_109); +if (lean_is_scalar(x_105)) { + x_121 = lean_alloc_ctor(1, 1, 0); +} else { + x_121 = x_105; +} +lean_ctor_set(x_121, 0, x_120); +if (lean_is_scalar(x_107)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_107; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_106); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_6, 8, x_123); +x_124 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_124; +} +} +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; +x_125 = lean_ctor_get(x_10, 2); +x_126 = lean_ctor_get(x_10, 5); +x_127 = lean_ctor_get(x_6, 0); +x_128 = lean_ctor_get(x_6, 1); +x_129 = lean_ctor_get(x_6, 2); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_132 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_133 = lean_ctor_get(x_6, 3); +x_134 = lean_ctor_get(x_6, 4); +x_135 = lean_ctor_get(x_6, 5); +x_136 = lean_ctor_get(x_6, 6); +x_137 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_138 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_139 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_140 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_141 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_142 = lean_ctor_get(x_6, 7); +x_143 = lean_ctor_get(x_6, 8); +x_144 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_145 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_inc(x_133); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_6); +x_146 = l_Lean_replaceRef(x_15, x_126); +lean_dec(x_126); +lean_inc(x_125); +lean_ctor_set(x_10, 5, x_146); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_148, 0, x_127); +lean_ctor_set(x_148, 1, x_128); +lean_ctor_set(x_148, 2, x_129); +lean_ctor_set(x_148, 3, x_133); +lean_ctor_set(x_148, 4, x_134); +lean_ctor_set(x_148, 5, x_135); +lean_ctor_set(x_148, 6, x_136); +lean_ctor_set(x_148, 7, x_142); +lean_ctor_set(x_148, 8, x_147); +lean_ctor_set_uint8(x_148, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 9, x_145); +x_149 = lean_apply_10(x_2, x_15, x_4, x_5, x_148, x_7, x_8, x_9, x_10, x_11, x_12); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_143, 0); +lean_inc(x_150); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + x_151 = x_143; +} else { + lean_dec_ref(x_143); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) +{ +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_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +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_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +if (lean_is_scalar(x_151)) { + x_157 = lean_alloc_ctor(1, 1, 0); +} else { + x_157 = x_151; +} +lean_ctor_set(x_157, 0, x_156); +x_158 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_158, 0, x_127); +lean_ctor_set(x_158, 1, x_128); +lean_ctor_set(x_158, 2, x_129); +lean_ctor_set(x_158, 3, x_133); +lean_ctor_set(x_158, 4, x_134); +lean_ctor_set(x_158, 5, x_135); +lean_ctor_set(x_158, 6, x_136); +lean_ctor_set(x_158, 7, x_142); +lean_ctor_set(x_158, 8, x_157); +lean_ctor_set_uint8(x_158, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 9, x_145); +x_159 = lean_apply_10(x_2, x_15, x_4, x_5, x_158, x_7, x_8, x_9, x_10, x_11, x_12); +return x_159; +} +else +{ +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; uint8_t x_171; +x_160 = lean_ctor_get(x_152, 0); +lean_inc(x_160); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + x_161 = x_152; +} else { + lean_dec_ref(x_152); + x_161 = lean_box(0); +} +x_162 = lean_ctor_get(x_150, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_163 = x_150; +} else { + lean_dec_ref(x_150); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_166 = x_160; +} else { + lean_dec_ref(x_160); + x_166 = lean_box(0); +} +x_167 = lean_apply_1(x_1, x_164); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_125, x_14, x_168); +lean_dec(x_125); +x_171 = lean_unbox(x_170); +lean_dec(x_170); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_169); +lean_dec(x_166); +lean_dec(x_165); +lean_dec(x_151); +x_172 = lean_box(0); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_163; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_162); +if (lean_is_scalar(x_161)) { + x_174 = lean_alloc_ctor(1, 1, 0); +} else { + x_174 = x_161; +} +lean_ctor_set(x_174, 0, x_173); +x_175 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_175, 0, x_127); +lean_ctor_set(x_175, 1, x_128); +lean_ctor_set(x_175, 2, x_129); +lean_ctor_set(x_175, 3, x_133); +lean_ctor_set(x_175, 4, x_134); +lean_ctor_set(x_175, 5, x_135); +lean_ctor_set(x_175, 6, x_136); +lean_ctor_set(x_175, 7, x_142); +lean_ctor_set(x_175, 8, x_174); +lean_ctor_set_uint8(x_175, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 9, x_145); +x_176 = lean_apply_10(x_2, x_15, x_4, x_5, x_175, x_7, x_8, x_9, x_10, x_11, x_12); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +if (lean_is_scalar(x_166)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { + x_177 = x_166; +} +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_165); +if (lean_is_scalar(x_161)) { + x_178 = lean_alloc_ctor(1, 1, 0); +} else { + x_178 = x_161; +} +lean_ctor_set(x_178, 0, x_177); +if (lean_is_scalar(x_163)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_163; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_162); +if (lean_is_scalar(x_151)) { + x_180 = lean_alloc_ctor(1, 1, 0); +} else { + x_180 = x_151; +} +lean_ctor_set(x_180, 0, x_179); +x_181 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_181, 0, x_127); +lean_ctor_set(x_181, 1, x_128); +lean_ctor_set(x_181, 2, x_129); +lean_ctor_set(x_181, 3, x_133); +lean_ctor_set(x_181, 4, x_134); +lean_ctor_set(x_181, 5, x_135); +lean_ctor_set(x_181, 6, x_136); +lean_ctor_set(x_181, 7, x_142); +lean_ctor_set(x_181, 8, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 9, x_145); +x_182 = lean_apply_10(x_2, x_15, x_4, x_5, x_181, x_7, x_8, x_9, x_10, x_11, x_12); +return x_182; +} +} +} +} +} +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_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_183 = lean_ctor_get(x_10, 0); +x_184 = lean_ctor_get(x_10, 1); +x_185 = lean_ctor_get(x_10, 2); +x_186 = lean_ctor_get(x_10, 3); +x_187 = lean_ctor_get(x_10, 4); +x_188 = lean_ctor_get(x_10, 5); +x_189 = lean_ctor_get(x_10, 6); +x_190 = lean_ctor_get(x_10, 7); +x_191 = lean_ctor_get(x_10, 8); +x_192 = lean_ctor_get(x_10, 9); +x_193 = lean_ctor_get(x_10, 10); +x_194 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_195 = lean_ctor_get(x_10, 11); +x_196 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_195); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_10); +x_197 = lean_ctor_get(x_6, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_6, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_6, 2); +lean_inc(x_199); +x_200 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_201 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_202 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_203 = lean_ctor_get(x_6, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_6, 4); +lean_inc(x_204); +x_205 = lean_ctor_get(x_6, 5); +lean_inc(x_205); +x_206 = lean_ctor_get(x_6, 6); +lean_inc(x_206); +x_207 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_208 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_209 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_210 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_211 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_212 = lean_ctor_get(x_6, 7); +lean_inc(x_212); +x_213 = lean_ctor_get(x_6, 8); +lean_inc(x_213); +x_214 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_215 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_6, 4); + lean_ctor_release(x_6, 5); + lean_ctor_release(x_6, 6); + lean_ctor_release(x_6, 7); + lean_ctor_release(x_6, 8); + x_216 = x_6; +} else { + lean_dec_ref(x_6); + x_216 = lean_box(0); +} +x_217 = l_Lean_replaceRef(x_15, x_188); +lean_dec(x_188); +lean_inc(x_185); +x_218 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_218, 0, x_183); +lean_ctor_set(x_218, 1, x_184); +lean_ctor_set(x_218, 2, x_185); +lean_ctor_set(x_218, 3, x_186); +lean_ctor_set(x_218, 4, x_187); +lean_ctor_set(x_218, 5, x_217); +lean_ctor_set(x_218, 6, x_189); +lean_ctor_set(x_218, 7, x_190); +lean_ctor_set(x_218, 8, x_191); +lean_ctor_set(x_218, 9, x_192); +lean_ctor_set(x_218, 10, x_193); +lean_ctor_set(x_218, 11, x_195); +lean_ctor_set_uint8(x_218, sizeof(void*)*12, x_194); +lean_ctor_set_uint8(x_218, sizeof(void*)*12 + 1, x_196); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +x_219 = lean_box(0); +if (lean_is_scalar(x_216)) { + x_220 = lean_alloc_ctor(0, 9, 10); +} else { + x_220 = x_216; +} +lean_ctor_set(x_220, 0, x_197); +lean_ctor_set(x_220, 1, x_198); +lean_ctor_set(x_220, 2, x_199); +lean_ctor_set(x_220, 3, x_203); +lean_ctor_set(x_220, 4, x_204); +lean_ctor_set(x_220, 5, x_205); +lean_ctor_set(x_220, 6, x_206); +lean_ctor_set(x_220, 7, x_212); +lean_ctor_set(x_220, 8, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 9, x_215); +x_221 = lean_apply_10(x_2, x_15, x_4, x_5, x_220, x_7, x_8, x_9, x_218, x_11, x_12); +return x_221; +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + x_223 = x_213; +} else { + lean_dec_ref(x_213); + x_223 = lean_box(0); +} +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +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); +} +x_227 = lean_box(0); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +if (lean_is_scalar(x_223)) { + x_229 = lean_alloc_ctor(1, 1, 0); +} else { + x_229 = x_223; +} +lean_ctor_set(x_229, 0, x_228); +if (lean_is_scalar(x_216)) { + x_230 = lean_alloc_ctor(0, 9, 10); +} else { + x_230 = x_216; +} +lean_ctor_set(x_230, 0, x_197); +lean_ctor_set(x_230, 1, x_198); +lean_ctor_set(x_230, 2, x_199); +lean_ctor_set(x_230, 3, x_203); +lean_ctor_set(x_230, 4, x_204); +lean_ctor_set(x_230, 5, x_205); +lean_ctor_set(x_230, 6, x_206); +lean_ctor_set(x_230, 7, x_212); +lean_ctor_set(x_230, 8, x_229); +lean_ctor_set_uint8(x_230, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 9, x_215); +x_231 = lean_apply_10(x_2, x_15, x_4, x_5, x_230, x_7, x_8, x_9, x_218, x_11, x_12); +return x_231; +} +else +{ +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; uint8_t x_243; +x_232 = lean_ctor_get(x_224, 0); +lean_inc(x_232); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + x_233 = x_224; +} else { + lean_dec_ref(x_224); + x_233 = lean_box(0); +} +x_234 = lean_ctor_get(x_222, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_235 = x_222; +} else { + lean_dec_ref(x_222); + x_235 = lean_box(0); +} +x_236 = lean_ctor_get(x_232, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_232, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_238 = x_232; +} else { + lean_dec_ref(x_232); + x_238 = lean_box(0); +} +x_239 = lean_apply_1(x_1, x_236); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_185, x_14, x_240); +lean_dec(x_185); +x_243 = lean_unbox(x_242); +lean_dec(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_241); +lean_dec(x_238); +lean_dec(x_237); +lean_dec(x_223); +x_244 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_245 = lean_alloc_ctor(0, 2, 0); +} else { + x_245 = x_235; +} +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_234); +if (lean_is_scalar(x_233)) { + x_246 = lean_alloc_ctor(1, 1, 0); +} else { + x_246 = x_233; +} +lean_ctor_set(x_246, 0, x_245); +if (lean_is_scalar(x_216)) { + x_247 = lean_alloc_ctor(0, 9, 10); +} else { + x_247 = x_216; +} +lean_ctor_set(x_247, 0, x_197); +lean_ctor_set(x_247, 1, x_198); +lean_ctor_set(x_247, 2, x_199); +lean_ctor_set(x_247, 3, x_203); +lean_ctor_set(x_247, 4, x_204); +lean_ctor_set(x_247, 5, x_205); +lean_ctor_set(x_247, 6, x_206); +lean_ctor_set(x_247, 7, x_212); +lean_ctor_set(x_247, 8, x_246); +lean_ctor_set_uint8(x_247, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 9, x_215); +x_248 = lean_apply_10(x_2, x_15, x_4, x_5, x_247, x_7, x_8, x_9, x_218, x_11, x_12); +return x_248; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +if (lean_is_scalar(x_238)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_238; +} +lean_ctor_set(x_249, 0, x_241); +lean_ctor_set(x_249, 1, x_237); +if (lean_is_scalar(x_233)) { + x_250 = lean_alloc_ctor(1, 1, 0); +} else { + x_250 = x_233; +} +lean_ctor_set(x_250, 0, x_249); +if (lean_is_scalar(x_235)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_235; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_234); +if (lean_is_scalar(x_223)) { + x_252 = lean_alloc_ctor(1, 1, 0); +} else { + x_252 = x_223; +} +lean_ctor_set(x_252, 0, x_251); +if (lean_is_scalar(x_216)) { + x_253 = lean_alloc_ctor(0, 9, 10); +} else { + x_253 = x_216; +} +lean_ctor_set(x_253, 0, x_197); +lean_ctor_set(x_253, 1, x_198); +lean_ctor_set(x_253, 2, x_199); +lean_ctor_set(x_253, 3, x_203); +lean_ctor_set(x_253, 4, x_204); +lean_ctor_set(x_253, 5, x_205); +lean_ctor_set(x_253, 6, x_206); +lean_ctor_set(x_253, 7, x_212); +lean_ctor_set(x_253, 8, x_252); +lean_ctor_set_uint8(x_253, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 9, x_215); +x_254 = lean_apply_10(x_2, x_15, x_4, x_5, x_253, x_7, x_8, x_9, x_218, x_11, x_12); +return x_254; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("null", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1(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; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +x_4 = l_Lean_Syntax_getArgs(x_1); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(1u); +x_7 = l_Array_toSubarray___rarg(x_4, x_6, x_5); +x_8 = l_Array_ofSubarray___rarg(x_7); +x_9 = lean_box(2); +x_10 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; +x_11 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_11, 2, x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = lean_unsigned_to_nat(2u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -uint8_t x_17; -x_17 = lean_nat_dec_le(x_5, x_4); -if (x_17 == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Core_getAndEmptyMessageLog___rarg(x_17, x_18); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = lean_unsigned_to_nat(0u); -x_19 = lean_nat_dec_eq(x_3, x_18); -if (x_19 == 0) +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_21, x_22); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_28; lean_object* x_29; uint8_t x_30; -lean_dec(x_7); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_sub(x_3, x_20); -lean_dec(x_3); -x_28 = lean_unsigned_to_nat(2u); -x_29 = lean_nat_mod(x_4, x_28); -x_30 = lean_nat_dec_eq(x_29, x_18); -lean_dec(x_29); -if (x_30 == 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; 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; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +x_27 = 0; +x_28 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_28, 0, x_25); +lean_ctor_set(x_28, 1, x_1); +lean_ctor_set_uint8(x_28, sizeof(void*)*2, x_27); +lean_inc(x_2); +x_29 = lean_io_promise_result(x_2); +lean_inc(x_3); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_3); +lean_ctor_set(x_30, 2, x_29); +lean_inc(x_3); +x_31 = l_Lean_Syntax_getRange_x3f(x_3, x_27); +lean_inc(x_9); +x_32 = lean_io_promise_result(x_9); +lean_ctor_set(x_23, 1, x_32); +lean_ctor_set(x_23, 0, x_31); +x_33 = l_Lean_Syntax_getRange_x3f(x_4, x_27); +x_34 = lean_io_promise_result(x_5); +lean_ctor_set(x_19, 1, x_34); +lean_ctor_set(x_19, 0, x_33); +x_35 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; +x_36 = lean_array_push(x_35, x_23); +x_37 = lean_array_push(x_36, x_19); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_ctor_get(x_6, 1); +x_40 = lean_io_promise_resolve(x_38, x_39, x_26); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1(x_3, x_7, x_9, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_41); +if (lean_obj_tag(x_42) == 0) { -uint8_t x_31; -x_31 = lean_nat_dec_lt(x_4, x_2); -if (x_31 == 0) +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t 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); +lean_dec(x_42); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_43); +x_46 = lean_io_promise_resolve(x_45, x_2, x_44); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = l_Lean_instInhabitedSyntax; -x_33 = l___private_Init_GetElem_0__outOfBounds___rarg(x_32); +return x_46; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_46); +x_50 = lean_alloc_ctor(0, 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; +lean_dec(x_2); +x_51 = !lean_is_exclusive(x_42); +if (x_51 == 0) +{ +return x_42; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_42, 0); +x_53 = lean_ctor_get(x_42, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_42); +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; 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; 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; +x_55 = lean_ctor_get(x_23, 0); +x_56 = lean_ctor_get(x_23, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_23); +x_57 = 0; +x_58 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_1); +lean_ctor_set_uint8(x_58, sizeof(void*)*2, x_57); +lean_inc(x_2); +x_59 = lean_io_promise_result(x_2); +lean_inc(x_3); +x_60 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_3); +lean_ctor_set(x_60, 2, x_59); +lean_inc(x_3); +x_61 = l_Lean_Syntax_getRange_x3f(x_3, x_57); +lean_inc(x_9); +x_62 = lean_io_promise_result(x_9); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Syntax_getRange_x3f(x_4, x_57); +x_65 = lean_io_promise_result(x_5); +lean_ctor_set(x_19, 1, x_65); +lean_ctor_set(x_19, 0, x_64); +x_66 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; +x_67 = lean_array_push(x_66, x_63); +x_68 = lean_array_push(x_67, x_19); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_ctor_get(x_6, 1); +x_71 = lean_io_promise_resolve(x_69, x_70, x_56); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1(x_3, x_7, x_9, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_72); +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; lean_object* x_81; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_74); +x_77 = lean_io_promise_resolve(x_76, x_2, x_75); +lean_dec(x_2); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 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; lean_object* x_84; lean_object* x_85; +lean_dec(x_2); +x_82 = lean_ctor_get(x_73, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_73, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_84 = x_73; +} else { + lean_dec_ref(x_73); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(1, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +} +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; 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; 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; +x_86 = lean_ctor_get(x_19, 0); +x_87 = lean_ctor_get(x_19, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_19); +x_88 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_86, x_87); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; +} else { + lean_dec_ref(x_88); + x_91 = lean_box(0); +} +x_92 = 0; +x_93 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_93, 0, x_89); +lean_ctor_set(x_93, 1, x_1); +lean_ctor_set_uint8(x_93, sizeof(void*)*2, x_92); +lean_inc(x_2); +x_94 = lean_io_promise_result(x_2); +lean_inc(x_3); +x_95 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_3); +lean_ctor_set(x_95, 2, x_94); +lean_inc(x_3); +x_96 = l_Lean_Syntax_getRange_x3f(x_3, x_92); +lean_inc(x_9); +x_97 = lean_io_promise_result(x_9); +if (lean_is_scalar(x_91)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_91; +} +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Lean_Syntax_getRange_x3f(x_4, x_92); +x_100 = lean_io_promise_result(x_5); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; +x_103 = lean_array_push(x_102, x_98); +x_104 = lean_array_push(x_103, x_101); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_95); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_ctor_get(x_6, 1); +x_107 = lean_io_promise_resolve(x_105, x_106, x_90); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__1(x_3, x_7, x_9, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_108); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_110); +x_113 = lean_io_promise_resolve(x_112, x_2, x_111); +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); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_2); +x_118 = lean_ctor_get(x_109, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_109, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_120 = x_109; +} else { + lean_dec_ref(x_109); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___boxed), 18, 8); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_8); +lean_closure_set(x_18, 2, x_2); +lean_closure_set(x_18, 3, x_3); +lean_closure_set(x_18, 4, x_4); +lean_closure_set(x_18, 5, x_5); +lean_closure_set(x_18, 6, x_6); +lean_closure_set(x_18, 7, x_7); +x_19 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; +x_20 = l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__16(x_19, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_inc(x_8); +lean_inc(x_3); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__3___boxed), 17, 7); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_3); +lean_closure_set(x_18, 3, x_8); +lean_closure_set(x_18, 4, x_4); +lean_closure_set(x_18, 5, x_5); +lean_closure_set(x_18, 6, x_6); +x_19 = l_Lean_Elab_Tactic_instInhabitedTacticFinished; +lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -1966,23 +7917,91 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_34 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_33, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_34) == 0) +x_20 = l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__17(x_19, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; -x_22 = x_36; -x_23 = x_35; -goto block_27; +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = !lean_is_exclusive(x_11); +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_11, 8); +lean_dec(x_23); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_7); +lean_ctor_set(x_24, 1, x_8); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_11, 8, x_25); +x_26 = l_Lean_Elab_Tactic_evalSepTactics_goOdd(x_3, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_21); +return x_26; } else { -uint8_t x_37; -lean_dec(x_21); +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +x_29 = lean_ctor_get(x_11, 2); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*9); +x_31 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 1); +x_32 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 2); +x_33 = lean_ctor_get(x_11, 3); +x_34 = lean_ctor_get(x_11, 4); +x_35 = lean_ctor_get(x_11, 5); +x_36 = lean_ctor_get(x_11, 6); +x_37 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 3); +x_38 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 4); +x_39 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 5); +x_40 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 6); +x_41 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 7); +x_42 = lean_ctor_get(x_11, 7); +x_43 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 8); +x_44 = lean_ctor_get_uint8(x_11, sizeof(void*)*9 + 9); +lean_inc(x_42); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_7); +lean_ctor_set(x_45, 1, x_8); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_47, 0, x_27); +lean_ctor_set(x_47, 1, x_28); +lean_ctor_set(x_47, 2, x_29); +lean_ctor_set(x_47, 3, x_33); +lean_ctor_set(x_47, 4, x_34); +lean_ctor_set(x_47, 5, x_35); +lean_ctor_set(x_47, 6, x_36); +lean_ctor_set(x_47, 7, x_42); +lean_ctor_set(x_47, 8, x_46); +lean_ctor_set_uint8(x_47, sizeof(void*)*9, x_30); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 1, x_31); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 2, x_32); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 3, x_37); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 4, x_38); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 5, x_39); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 6, x_40); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 7, x_41); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 8, x_43); +lean_ctor_set_uint8(x_47, sizeof(void*)*9 + 9, x_44); +x_48 = l_Lean_Elab_Tactic_evalSepTactics_goOdd(x_3, x_9, x_10, x_47, x_12, x_13, x_14, x_15, x_16, x_21); +return x_48; +} +} +else +{ +uint8_t x_49; +lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -1991,332 +8010,959 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_34); -if (x_37 == 0) +lean_dec(x_7); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_20); +if (x_49 == 0) { -return x_34; +return x_20; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_34, 0); -x_39 = lean_ctor_get(x_34, 1); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_8); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__4___boxed), 17, 7); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_3); +lean_closure_set(x_18, 3, x_4); +lean_closure_set(x_18, 4, x_5); +lean_closure_set(x_18, 5, x_7); +lean_closure_set(x_18, 6, x_6); +x_19 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; +x_20 = l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__16(x_19, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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) { +_start: +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_7, 8); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +lean_dec(x_3); +lean_dec(x_2); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_15 = l_Lean_Elab_Tactic_evalTactic(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Tactic_evalSepTactics_goOdd(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_12); +lean_dec(x_11); +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_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +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(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +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; +x_24 = lean_box(0); +lean_inc_n(x_2, 2); +x_25 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_2, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_25; +} +else +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_inc(x_26); +lean_dec(x_23); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +x_30 = l_Lean_Language_SnapshotTask_get___rarg(x_29); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +x_34 = lean_ctor_get(x_32, 2); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_task_get_own(x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_free_object(x_30); +lean_dec(x_33); +lean_free_object(x_26); +lean_dec(x_28); +x_36 = lean_box(0); +lean_inc_n(x_2, 2); +x_37 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_2, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_37; +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_35); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 0); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_34); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_30, 1, x_39); +lean_ctor_set(x_30, 0, x_39); +lean_ctor_set(x_35, 0, x_30); +x_40 = lean_unsigned_to_nat(1u); +x_41 = l_Array_get_x3f___rarg(x_33, x_40); +lean_dec(x_33); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_free_object(x_26); +lean_dec(x_28); +x_42 = lean_box(0); +lean_inc(x_2); +x_43 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_35, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_43; +} +else +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_41, 0); +lean_ctor_set(x_26, 1, x_45); +lean_ctor_set(x_41, 0, x_26); +x_46 = lean_box(0); +x_47 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_41, x_35, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_41, 0); +lean_inc(x_48); +lean_dec(x_41); +lean_ctor_set(x_26, 1, x_48); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_26); +x_50 = lean_box(0); +x_51 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_49, x_35, x_50, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_51; +} +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_35, 0); +lean_inc(x_52); +lean_dec(x_35); +lean_inc(x_52); +lean_ctor_set(x_30, 1, x_52); +lean_ctor_set(x_30, 0, x_52); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_30); +x_54 = lean_unsigned_to_nat(1u); +x_55 = l_Array_get_x3f___rarg(x_33, x_54); +lean_dec(x_33); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; +lean_free_object(x_26); +lean_dec(x_28); +x_56 = lean_box(0); +lean_inc(x_2); +x_57 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_53, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_55, 0); +lean_inc(x_58); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + x_59 = x_55; +} else { + lean_dec_ref(x_55); + x_59 = lean_box(0); +} +lean_ctor_set(x_26, 1, x_58); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 1, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_26); +x_61 = lean_box(0); +x_62 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_60, x_53, x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_62; +} +} +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_30, 0); +x_64 = lean_ctor_get(x_30, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_30); +x_65 = lean_ctor_get(x_63, 2); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_task_get_own(x_65); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_64); +lean_free_object(x_26); +lean_dec(x_28); +x_67 = lean_box(0); +lean_inc_n(x_2, 2); +x_68 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_2, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; +x_69 = lean_ctor_get(x_66, 0); +lean_inc(x_69); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + x_70 = x_66; +} else { + lean_dec_ref(x_66); + x_70 = lean_box(0); +} +lean_inc(x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_69); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(1, 1, 0); +} else { + x_72 = x_70; +} +lean_ctor_set(x_72, 0, x_71); +x_73 = lean_unsigned_to_nat(1u); +x_74 = l_Array_get_x3f___rarg(x_64, x_73); +lean_dec(x_64); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; +lean_free_object(x_26); +lean_dec(x_28); +x_75 = lean_box(0); +lean_inc(x_2); +x_76 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_72, x_75, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_76; +} +else +{ +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_74, 0); +lean_inc(x_77); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + x_78 = x_74; +} else { + lean_dec_ref(x_74); + x_78 = lean_box(0); +} +lean_ctor_set(x_26, 1, x_77); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 1, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_26); +x_80 = lean_box(0); +x_81 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_79, x_72, x_80, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; lean_object* x_88; lean_object* x_89; +x_82 = lean_ctor_get(x_26, 0); +x_83 = lean_ctor_get(x_26, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_26); +x_84 = l_Lean_Language_SnapshotTask_get___rarg(x_83); +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); + x_87 = x_84; +} else { + lean_dec_ref(x_84); + x_87 = lean_box(0); +} +x_88 = lean_ctor_get(x_85, 2); +lean_inc(x_88); +lean_dec(x_85); +x_89 = lean_task_get_own(x_88); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_87); +lean_dec(x_86); +lean_dec(x_82); +x_90 = lean_box(0); +lean_inc_n(x_2, 2); +x_91 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_2, x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_92 = lean_ctor_get(x_89, 0); +lean_inc(x_92); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + x_93 = x_89; +} else { + lean_dec_ref(x_89); + x_93 = lean_box(0); +} +lean_inc(x_92); +if (lean_is_scalar(x_87)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_87; +} +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_92); +if (lean_is_scalar(x_93)) { + x_95 = lean_alloc_ctor(1, 1, 0); +} else { + x_95 = x_93; +} +lean_ctor_set(x_95, 0, x_94); +x_96 = lean_unsigned_to_nat(1u); +x_97 = l_Array_get_x3f___rarg(x_86, x_96); +lean_dec(x_86); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +x_98 = lean_box(0); +lean_inc(x_2); +x_99 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_2, x_95, x_98, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_99; +} +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_97, 0); +lean_inc(x_100); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_101 = x_97; +} else { + lean_dec_ref(x_97); + x_101 = lean_box(0); +} +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_82); +lean_ctor_set(x_102, 1, x_100); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(1, 1, 0); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_102); +x_104 = lean_box(0); +x_105 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(x_2, x_1, x_4, x_22, x_3, x_103, x_95, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_105; +} +} +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__6), 13, 3); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_4); +x_16 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1; +x_17 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__18(x_16, x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__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_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; +lean_dec(x_2); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); +x_14 = lean_box(0); +x_15 = lean_ctor_get(x_5, 8); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_14, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_14, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Language_SnapshotTask_get___rarg(x_23); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +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); +x_28 = l_Array_get_x3f___rarg(x_27, x_12); +lean_dec(x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_24); +lean_dec(x_26); +x_29 = lean_box(0); +x_30 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_14, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_30; +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +lean_ctor_set(x_24, 1, x_32); +lean_ctor_set(x_24, 0, x_33); +lean_ctor_set(x_28, 0, x_24); +x_34 = lean_box(0); +x_35 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_28, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_28, 0); +lean_inc(x_36); +lean_dec(x_28); +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_dec(x_26); +lean_ctor_set(x_24, 1, x_36); +lean_ctor_set(x_24, 0, x_37); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_24); +x_39 = lean_box(0); +x_40 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_38, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_40; } } } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_array_fget(x_1, x_4); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_42 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_41, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_24, 0); +x_42 = lean_ctor_get(x_24, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_24); +x_43 = l_Array_get_x3f___rarg(x_42, x_12); lean_dec(x_42); -x_44 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; -x_22 = x_44; -x_23 = x_43; -goto block_27; +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_41); +x_44 = lean_box(0); +x_45 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_14, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_45; } else { -uint8_t x_45; -lean_dec(x_21); -lean_dec(x_15); -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_8); -lean_dec(x_4); -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) -{ -return x_42; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_46 = lean_ctor_get(x_43, 0); lean_inc(x_46); -lean_dec(x_42); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + x_47 = x_43; +} else { + lean_dec_ref(x_43); + x_47 = lean_box(0); } +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +lean_dec(x_41); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +if (lean_is_scalar(x_47)) { + x_50 = lean_alloc_ctor(1, 1, 0); +} else { + x_50 = x_47; } -} -} -else -{ -uint8_t x_49; -x_49 = lean_nat_dec_lt(x_4, x_2); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = l_Lean_instInhabitedSyntax; -x_51 = l___private_Init_GetElem_0__outOfBounds___rarg(x_50); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_52 = l_Lean_Elab_Tactic_evalTactic(x_51, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; -x_22 = x_54; -x_23 = x_53; -goto block_27; -} -else -{ -uint8_t x_55; -lean_dec(x_21); -lean_dec(x_15); -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_8); -lean_dec(x_4); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) -{ +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_box(0); +x_52 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7(x_13, x_14, x_1, x_50, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_52; } -else +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven(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_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 0); -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_52); -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; -} -} +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = l_Lean_Syntax_getNumArgs(x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_eq(x_11, x_12); +lean_dec(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__8(x_1, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } else { -lean_object* x_59; lean_object* x_60; -x_59 = lean_array_fget(x_1, x_4); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); +lean_object* x_16; lean_object* x_17; +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_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_10); +return x_17; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics_goEven), 10, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goOdd___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_60 = l_Lean_Elab_Tactic_evalTactic(x_59, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_60) == 0) +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_14 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; -x_22 = x_62; -x_23 = x_61; -goto block_27; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1; +x_17 = l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1; +x_18 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__18(x_16, x_17, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +return x_18; } else { -uint8_t x_63; -lean_dec(x_21); -lean_dec(x_15); -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_8); -lean_dec(x_4); -x_63 = !lean_is_exclusive(x_60); -if (x_63 == 0) -{ -return x_60; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_60); -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; -} -} -} -} -block_27: -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_21; -x_4 = x_25; -x_7 = x_24; -x_16 = x_23; -goto _start; -} -} -else -{ -lean_object* x_67; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_19; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_7); -lean_ctor_set(x_67, 1, x_16); -return x_67; -} +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; } else { -lean_object* x_68; -lean_dec(x_15); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +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); -lean_dec(x_13); -lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goOdd(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; +x_11 = l_Lean_Syntax_getNumArgs(x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_eq(x_11, x_12); lean_dec(x_11); -lean_dec(x_10); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1(x_1, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; 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); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_7); -lean_ctor_set(x_68, 1, x_16); -return x_68; +lean_dec(x_2); +lean_dec(x_1); +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_10); +return x_17; } } } +LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___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) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___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); +lean_dec(x_10); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__3___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); +lean_dec(x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__6___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); +lean_dec(x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__2___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); +lean_dec(x_7); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__10___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); +lean_dec(x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__13___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); +lean_dec(x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___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) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Elab_Term_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__9___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); +lean_dec(x_7); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Elab_Tactic_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___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); +lean_dec(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_Elab_Tactic_evalSepTactics_goEven___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_16, x_17, x_18); +lean_dec(x_6); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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_18; +x_18 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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: +{ +lean_object* x_18; +x_18 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__4(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); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics_goEven___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: +{ +lean_object* x_18; +x_18 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__5(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); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepTactics(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_Lean_Elab_Tactic_evalSepTactics_goEven(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSeq1(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_13 = l_Lean_Syntax_getArgs(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_13); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_box(0); -lean_inc(x_14); -x_17 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1(x_13, x_14, x_14, x_11, x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_14); -lean_dec(x_13); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_16); -return x_17; -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_16); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -return x_17; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_17); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___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_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -lean_object* x_17; -x_17 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___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); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_17; +x_13 = l_Lean_Elab_Tactic_evalSepTactics_goEven(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSeq1___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) { @@ -2392,7 +9038,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(32u); +x_1 = lean_unsigned_to_nat(119u); x_2 = lean_unsigned_to_nat(23u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2404,8 +9050,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(38u); -x_2 = lean_unsigned_to_nat(37u); +x_1 = lean_unsigned_to_nat(120u); +x_2 = lean_unsigned_to_nat(23u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -2415,24 +9061,23 @@ return x_3; static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__1; x_2 = lean_unsigned_to_nat(23u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__2; -x_4 = lean_unsigned_to_nat(37u); -x_5 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_2); -lean_ctor_set(x_5, 2, x_3); -lean_ctor_set(x_5, 3, x_4); -return x_5; +x_4 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +lean_ctor_set(x_4, 3, x_2); +return x_4; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(32u); +x_1 = lean_unsigned_to_nat(119u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2444,7 +9089,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(32u); +x_1 = lean_unsigned_to_nat(119u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2573,7 +9218,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(40u); +x_1 = lean_unsigned_to_nat(122u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2585,7 +9230,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(41u); +x_1 = lean_unsigned_to_nat(123u); x_2 = lean_unsigned_to_nat(19u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2613,7 +9258,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(40u); +x_1 = lean_unsigned_to_nat(122u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2625,7 +9270,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalParen_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(40u); +x_1 = lean_unsigned_to_nat(122u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -2791,33 +9436,6 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("null", 4); -return x_1; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(2u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___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) { _start: { @@ -2947,7 +9565,7 @@ x_44 = l_Lean_mkAtomFrom(x_29, x_42, x_43); x_45 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__7; x_46 = lean_array_push(x_45, x_29); x_47 = lean_box(2); -x_48 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_48 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; x_49 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -2969,7 +9587,7 @@ x_57 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_57, 0, x_47); lean_ctor_set(x_57, 1, x_56); lean_ctor_set(x_57, 2, x_55); -x_58 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10; +x_58 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; x_59 = lean_array_push(x_58, x_44); x_60 = lean_array_push(x_59, x_57); x_61 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__2; @@ -3383,424 +10001,54 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(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_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1688_(lean_object* x_1) { _start: { -uint8_t x_14; -x_14 = lean_usize_dec_lt(x_3, x_2); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_4); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_array_uget(x_1, x_3); -x_17 = lean_ctor_get(x_4, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_4, 1); -lean_inc(x_18); -x_19 = lean_ctor_get(x_4, 2); -lean_inc(x_19); -x_20 = lean_nat_dec_lt(x_17, x_18); -if (x_20 == 0) -{ -lean_object* x_21; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_4); -lean_ctor_set(x_21, 1, x_13); -return x_21; -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_4); -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; uint8_t x_30; -x_23 = lean_ctor_get(x_4, 2); -lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 1); -lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 0); -lean_dec(x_25); -x_26 = lean_nat_add(x_17, x_19); -lean_ctor_set(x_4, 0, x_26); -x_27 = lean_unsigned_to_nat(2u); -x_28 = lean_nat_mod(x_17, x_27); -lean_dec(x_17); -x_29 = lean_unsigned_to_nat(0u); -x_30 = lean_nat_dec_eq(x_28, x_29); -lean_dec(x_28); -if (x_30 == 0) -{ -lean_object* x_31; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_31 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; size_t x_33; size_t x_34; -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = 1; -x_34 = lean_usize_add(x_3, x_33); -x_3 = x_34; -x_13 = x_32; -goto _start; -} -else -{ -uint8_t x_36; -lean_dec(x_4); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_36 = !lean_is_exclusive(x_31); -if (x_36 == 0) -{ -return x_31; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_31, 0); -x_38 = lean_ctor_get(x_31, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_31); -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_object* x_2; lean_object* x_3; +x_2 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__6; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; } } -} -else -{ -lean_object* x_40; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_40 = l_Lean_Elab_Tactic_evalTactic(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; size_t x_42; size_t x_43; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = 1; -x_43 = lean_usize_add(x_3, x_42); -x_3 = x_43; -x_13 = x_41; -goto _start; -} -else -{ -uint8_t x_45; -lean_dec(x_4); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -return x_40; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -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_dec(x_4); -x_49 = lean_nat_add(x_17, x_19); -x_50 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_18); -lean_ctor_set(x_50, 2, x_19); -x_51 = lean_unsigned_to_nat(2u); -x_52 = lean_nat_mod(x_17, x_51); -lean_dec(x_17); -x_53 = lean_unsigned_to_nat(0u); -x_54 = lean_nat_dec_eq(x_52, x_53); -lean_dec(x_52); -if (x_54 == 0) -{ -lean_object* x_55; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_55 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; size_t x_57; size_t x_58; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = 1; -x_58 = lean_usize_add(x_3, x_57); -x_3 = x_58; -x_4 = x_50; -x_13 = x_56; -goto _start; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_50); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_60 = lean_ctor_get(x_55, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_55, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_62 = x_55; -} else { - lean_dec_ref(x_55); - x_62 = lean_box(0); -} -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(1, 2, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -} -else -{ -lean_object* x_64; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_64 = l_Lean_Elab_Tactic_evalTactic(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; size_t x_66; size_t x_67; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = 1; -x_67 = lean_usize_add(x_3, x_66); -x_3 = x_67; -x_4 = x_50; -x_13 = x_65; -goto _start; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_50); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_69 = lean_ctor_get(x_64, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_64, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_71 = x_64; -} else { - lean_dec_ref(x_64); - 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_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSepByIndentTactic(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_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { -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; size_t x_20; size_t x_21; lean_object* x_22; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_11 = l_Lean_Elab_Tactic_addCheckpoints(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -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 = l_Lean_Syntax_getArgs(x_12); -lean_dec(x_12); -x_15 = lean_array_get_size(x_14); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_15); -lean_ctor_set(x_18, 2, x_17); -x_19 = lean_array_get_size(x_14); -x_20 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_21 = 0; -x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(x_14, x_20, x_21, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_14); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; -} -} -else -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_22); -if (x_29 == 0) -{ -return x_22; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_22, 0); -x_31 = lean_ctor_get(x_22, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_22); -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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___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_object* x_13) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; +x_3 = l_Lean_Syntax_getArgs(x_2); +x_4 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_5 = l_Array_toSubarray___rarg(x_3, x_4, x_1); +x_6 = l_Array_ofSubarray___rarg(x_5); +x_7 = lean_box(2); +x_8 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; +x_9 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 2, x_6); +x_10 = l_Lean_Syntax_getArg(x_2, x_1); lean_dec(x_1); -return x_16; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__18(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSepTactics), 10, 0); +return x_1; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented(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) { @@ -3808,18 +10056,18 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_13 = l_Lean_Elab_Tactic_evalSepByIndentTactic(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; +x_13 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1(x_11, x_12, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___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_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_evalTacticSeq1Indented(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_11; +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1() { @@ -3846,7 +10094,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeq1Indented___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeq1Indented), 10, 0); return x_1; } } @@ -3866,7 +10114,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(116u); +x_1 = lean_unsigned_to_nat(190u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3878,8 +10126,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(117u); -x_2 = lean_unsigned_to_nat(30u); +x_1 = lean_unsigned_to_nat(191u); +x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -3893,7 +10141,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_declRange___closed__1; x_2 = lean_unsigned_to_nat(37u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_declRange___closed__2; -x_4 = lean_unsigned_to_nat(30u); +x_4 = lean_unsigned_to_nat(62u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -3906,7 +10154,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(116u); +x_1 = lean_unsigned_to_nat(190u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3918,7 +10166,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(116u); +x_1 = lean_unsigned_to_nat(190u); x_2 = lean_unsigned_to_nat(63u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3964,6 +10212,35 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("tacticSeqBracketed", 18); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____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_Elab_Tactic_evalWithAnnotateState___closed__1; +x_2 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__2; +x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___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: { @@ -3976,7 +10253,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; @@ -3984,8 +10261,8 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); x_15 = lean_unsigned_to_nat(1u); -x_16 = l_Lean_Syntax_getArg(x_3, x_15); -x_17 = l_Lean_Elab_Tactic_evalSepByIndentTactic(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +x_16 = l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; +x_17 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1(x_15, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); return x_17; } else @@ -3999,6 +10276,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); x_18 = !lean_is_exclusive(x_13); if (x_18 == 0) { @@ -4047,7 +10325,7 @@ x_17 = l_Lean_Syntax_getArg(x_1, x_16); x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalWithAnnotateState___lambda__1), 11, 1); lean_closure_set(x_18, 0, x_14); x_19 = l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeqBracketed___lambda__1___boxed), 12, 3); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeqBracketed___lambda__1), 12, 3); lean_closure_set(x_20, 0, x_19); lean_closure_set(x_20, 1, x_18); lean_closure_set(x_20, 2, x_1); @@ -4065,7 +10343,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; 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; lean_object* x_39; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_25 = lean_ctor_get(x_8, 0); x_26 = lean_ctor_get(x_8, 1); x_27 = lean_ctor_get(x_8, 2); @@ -4077,7 +10355,10 @@ x_32 = lean_ctor_get(x_8, 7); x_33 = lean_ctor_get(x_8, 8); x_34 = lean_ctor_get(x_8, 9); x_35 = lean_ctor_get(x_8, 10); -x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_37 = lean_ctor_get(x_8, 11); +x_38 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -4090,41 +10371,34 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_8); -x_37 = l_Lean_replaceRef(x_17, x_30); +x_39 = l_Lean_replaceRef(x_17, x_30); lean_dec(x_30); lean_dec(x_17); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); -x_39 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_9, x_15); -return x_39; +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); +x_41 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_40, x_9, x_15); +return x_41; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___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_Lean_Elab_Tactic_evalTacticSeqBracketed___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_3); -return x_13; -} -} static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("tacticSeqBracketed", 18); +x_1 = lean_mk_string_from_bytes("evalTacticSeqBracketed", 22); return x_1; } } @@ -4133,7 +10407,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_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; -x_2 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); @@ -4144,26 +10418,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("evalTacticSeqBracketed", 22); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; -x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeqBracketed), 10, 0); return x_1; } @@ -4173,9 +10427,9 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__4; -x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } @@ -4184,7 +10438,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(119u); +x_1 = lean_unsigned_to_nat(194u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4196,8 +10450,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(124u); -x_2 = lean_unsigned_to_nat(32u); +x_1 = lean_unsigned_to_nat(199u); +x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -4211,7 +10465,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__1; x_2 = lean_unsigned_to_nat(37u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__2; -x_4 = lean_unsigned_to_nat(32u); +x_4 = lean_unsigned_to_nat(68u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -4224,7 +10478,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(119u); +x_1 = lean_unsigned_to_nat(194u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4236,7 +10490,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(119u); +x_1 = lean_unsigned_to_nat(194u); x_2 = lean_unsigned_to_nat(63u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4276,12 +10530,104 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange___closed__7; x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("cdot", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticCDot___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; +x_17 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1(x_15, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticCDot(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: { @@ -4298,7 +10644,7 @@ lean_dec(x_13); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalWithAnnotateState___lambda__1), 11, 1); lean_closure_set(x_16, 0, x_14); x_17 = l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeqBracketed___lambda__1___boxed), 12, 3); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticCDot___lambda__1), 12, 3); lean_closure_set(x_18, 0, x_17); lean_closure_set(x_18, 1, x_16); lean_closure_set(x_18, 2, x_1); @@ -4316,7 +10662,7 @@ return x_22; } else { -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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_23 = lean_ctor_get(x_8, 0); x_24 = lean_ctor_get(x_8, 1); x_25 = lean_ctor_get(x_8, 2); @@ -4328,7 +10674,10 @@ x_30 = lean_ctor_get(x_8, 7); x_31 = lean_ctor_get(x_8, 8); x_32 = lean_ctor_get(x_8, 9); x_33 = lean_ctor_get(x_8, 10); -x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_35 = lean_ctor_get(x_8, 11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -4341,24 +10690,26 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_8); -x_35 = l_Lean_replaceRef(x_12, x_28); +x_37 = l_Lean_replaceRef(x_12, x_28); lean_dec(x_28); lean_dec(x_12); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); -x_37 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_36, x_9, x_15); -return x_37; +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); +x_39 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_9, x_15); +return x_39; } } } @@ -4366,41 +10717,23 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___close _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("cdot", 4); +x_1 = lean_mk_string_from_bytes("evalTacticCDot", 14); return x_1; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("evalTacticCDot", 14); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__1; x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3() { _start: { lean_object* x_1; @@ -4413,9 +10746,9 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__4; -x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } @@ -4424,7 +10757,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(126u); +x_1 = lean_unsigned_to_nat(202u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4436,8 +10769,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(135u); -x_2 = lean_unsigned_to_nat(32u); +x_1 = lean_unsigned_to_nat(211u); +x_2 = lean_unsigned_to_nat(64u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -4451,7 +10784,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__1; x_2 = lean_unsigned_to_nat(28u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__2; -x_4 = lean_unsigned_to_nat(32u); +x_4 = lean_unsigned_to_nat(64u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -4464,7 +10797,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(126u); +x_1 = lean_unsigned_to_nat(202u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4476,7 +10809,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(126u); +x_1 = lean_unsigned_to_nat(202u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4516,7 +10849,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRang _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2; x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot_declRange___closed__7; x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; @@ -4534,7 +10867,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; @@ -4674,7 +11007,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFocus_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(137u); +x_1 = lean_unsigned_to_nat(213u); x_2 = lean_unsigned_to_nat(38u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4686,7 +11019,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFocus_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(142u); +x_1 = lean_unsigned_to_nat(218u); x_2 = lean_unsigned_to_nat(21u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4714,7 +11047,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFocus_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(137u); +x_1 = lean_unsigned_to_nat(213u); x_2 = lean_unsigned_to_nat(42u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4726,7 +11059,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFocus_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(137u); +x_1 = lean_unsigned_to_nat(213u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4904,7 +11237,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(147u); +x_1 = lean_unsigned_to_nat(223u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4916,7 +11249,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(149u); +x_1 = lean_unsigned_to_nat(225u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4944,7 +11277,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(147u); +x_1 = lean_unsigned_to_nat(223u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4956,7 +11289,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(147u); +x_1 = lean_unsigned_to_nat(223u); x_2 = lean_unsigned_to_nat(61u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5103,7 +11436,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(151u); +x_1 = lean_unsigned_to_nat(227u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5115,7 +11448,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(153u); +x_1 = lean_unsigned_to_nat(229u); x_2 = lean_unsigned_to_nat(40u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5143,7 +11476,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(151u); +x_1 = lean_unsigned_to_nat(227u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5155,7 +11488,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRotateRight_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(151u); +x_1 = lean_unsigned_to_nat(227u); x_2 = lean_unsigned_to_nat(63u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5684,7 +12017,7 @@ return x_16; } else { -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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_17 = lean_ctor_get(x_10, 0); x_18 = lean_ctor_get(x_10, 1); x_19 = lean_ctor_get(x_10, 2); @@ -5696,7 +12029,10 @@ x_24 = lean_ctor_get(x_10, 7); x_25 = lean_ctor_get(x_10, 8); x_26 = lean_ctor_get(x_10, 9); x_27 = lean_ctor_get(x_10, 10); -x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_29 = lean_ctor_get(x_10, 11); +x_30 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_29); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); @@ -5709,25 +12045,27 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_10); -x_29 = l_Lean_replaceRef(x_1, x_22); +x_31 = l_Lean_replaceRef(x_1, x_22); lean_dec(x_22); lean_dec(x_1); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_18); -lean_ctor_set(x_30, 2, x_19); -lean_ctor_set(x_30, 3, x_20); -lean_ctor_set(x_30, 4, x_21); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -lean_ctor_set(x_30, 7, x_24); -lean_ctor_set(x_30, 8, x_25); -lean_ctor_set(x_30, 9, x_26); -lean_ctor_set(x_30, 10, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_28); -x_31 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30, x_11, x_12); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_19); +lean_ctor_set(x_32, 3, x_20); +lean_ctor_set(x_32, 4, x_21); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_23); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_25); +lean_ctor_set(x_32, 9, x_26); +lean_ctor_set(x_32, 10, x_27); +lean_ctor_set(x_32, 11, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_30); +x_33 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_32, x_11, x_12); lean_dec(x_11); -lean_dec(x_30); +lean_dec(x_32); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5735,7 +12073,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_31; +return x_33; } } } @@ -6051,7 +12389,7 @@ return x_21; } else { -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; uint8_t x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; +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; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; x_22 = lean_ctor_get(x_9, 0); x_23 = lean_ctor_get(x_9, 1); x_24 = lean_ctor_get(x_9, 2); @@ -6063,7 +12401,10 @@ x_29 = lean_ctor_get(x_9, 7); x_30 = lean_ctor_get(x_9, 8); x_31 = lean_ctor_get(x_9, 9); x_32 = lean_ctor_get(x_9, 10); -x_33 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_33 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_34 = lean_ctor_get(x_9, 11); +x_35 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_34); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); @@ -6076,26 +12417,28 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_9); -x_34 = l_Lean_replaceRef(x_1, x_27); +x_36 = l_Lean_replaceRef(x_1, x_27); lean_dec(x_27); lean_dec(x_1); -x_35 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_35, 0, x_22); -lean_ctor_set(x_35, 1, x_23); -lean_ctor_set(x_35, 2, x_24); -lean_ctor_set(x_35, 3, x_25); -lean_ctor_set(x_35, 4, x_26); -lean_ctor_set(x_35, 5, x_34); -lean_ctor_set(x_35, 6, x_28); -lean_ctor_set(x_35, 7, x_29); -lean_ctor_set(x_35, 8, x_30); -lean_ctor_set(x_35, 9, x_31); -lean_ctor_set(x_35, 10, x_32); -lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_33); -x_36 = 0; -x_37 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Tactic_evalOpen___spec__9(x_12, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_35, x_10, x_11); +x_37 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_37, 0, x_22); +lean_ctor_set(x_37, 1, x_23); +lean_ctor_set(x_37, 2, x_24); +lean_ctor_set(x_37, 3, x_25); +lean_ctor_set(x_37, 4, x_26); +lean_ctor_set(x_37, 5, x_36); +lean_ctor_set(x_37, 6, x_28); +lean_ctor_set(x_37, 7, x_29); +lean_ctor_set(x_37, 8, x_30); +lean_ctor_set(x_37, 9, x_31); +lean_ctor_set(x_37, 10, x_32); +lean_ctor_set(x_37, 11, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*12, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*12 + 1, x_35); +x_38 = 0; +x_39 = l_Lean_resolveNamespaceCore___at_Lean_Elab_Tactic_evalOpen___spec__9(x_12, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_37, x_10, x_11); lean_dec(x_10); -lean_dec(x_35); +lean_dec(x_37); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6103,16 +12446,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_37; +return x_39; } } } else { -lean_object* x_38; lean_object* x_39; -x_38 = l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__6___closed__3; -x_39 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalOpen___spec__7(x_1, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_39; +lean_object* x_40; lean_object* x_41; +x_40 = l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__6___closed__3; +x_41 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalOpen___spec__7(x_1, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_41; } } } @@ -6939,7 +13282,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; 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; lean_object* x_39; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_25 = lean_ctor_get(x_10, 0); x_26 = lean_ctor_get(x_10, 1); x_27 = lean_ctor_get(x_10, 2); @@ -6951,7 +13294,10 @@ x_32 = lean_ctor_get(x_10, 7); x_33 = lean_ctor_get(x_10, 8); x_34 = lean_ctor_get(x_10, 9); x_35 = lean_ctor_get(x_10, 10); -x_36 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_37 = lean_ctor_get(x_10, 11); +x_38 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -6964,24 +13310,26 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_10); -x_37 = l_Lean_replaceRef(x_2, x_30); +x_39 = l_Lean_replaceRef(x_2, x_30); lean_dec(x_30); lean_dec(x_2); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); -x_39 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__13(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38, x_11, x_18); -return x_39; +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); +x_41 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__13(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40, x_11, x_18); +return x_41; } } else @@ -7002,43 +13350,46 @@ return x_15; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_15, 0); -x_41 = lean_ctor_get(x_15, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_15); -x_42 = lean_ctor_get(x_40, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_15, 0); +x_43 = lean_ctor_get(x_15, 1); +lean_inc(x_43); lean_inc(x_42); -lean_dec(x_40); -lean_inc(x_14); -x_43 = l_Lean_Environment_contains(x_42, x_14); -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; 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; lean_object* x_58; lean_object* x_59; -x_44 = lean_ctor_get(x_10, 0); +lean_dec(x_15); +x_44 = lean_ctor_get(x_42, 0); lean_inc(x_44); -x_45 = lean_ctor_get(x_10, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_10, 2); +lean_dec(x_42); +lean_inc(x_14); +x_45 = l_Lean_Environment_contains(x_44, x_14); +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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_46 = lean_ctor_get(x_10, 0); lean_inc(x_46); -x_47 = lean_ctor_get(x_10, 3); +x_47 = lean_ctor_get(x_10, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_10, 4); +x_48 = lean_ctor_get(x_10, 2); lean_inc(x_48); -x_49 = lean_ctor_get(x_10, 5); +x_49 = lean_ctor_get(x_10, 3); lean_inc(x_49); -x_50 = lean_ctor_get(x_10, 6); +x_50 = lean_ctor_get(x_10, 4); lean_inc(x_50); -x_51 = lean_ctor_get(x_10, 7); +x_51 = lean_ctor_get(x_10, 5); lean_inc(x_51); -x_52 = lean_ctor_get(x_10, 8); +x_52 = lean_ctor_get(x_10, 6); lean_inc(x_52); -x_53 = lean_ctor_get(x_10, 9); +x_53 = lean_ctor_get(x_10, 7); lean_inc(x_53); -x_54 = lean_ctor_get(x_10, 10); +x_54 = lean_ctor_get(x_10, 8); lean_inc(x_54); -x_55 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_55 = lean_ctor_get(x_10, 9); +lean_inc(x_55); +x_56 = lean_ctor_get(x_10, 10); +lean_inc(x_56); +x_57 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_58 = lean_ctor_get(x_10, 11); +lean_inc(x_58); +x_59 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); @@ -7051,37 +13402,40 @@ if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 8); lean_ctor_release(x_10, 9); lean_ctor_release(x_10, 10); - x_56 = x_10; + lean_ctor_release(x_10, 11); + x_60 = x_10; } else { lean_dec_ref(x_10); - x_56 = lean_box(0); + x_60 = lean_box(0); } -x_57 = l_Lean_replaceRef(x_2, x_49); -lean_dec(x_49); +x_61 = l_Lean_replaceRef(x_2, x_51); +lean_dec(x_51); lean_dec(x_2); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 11, 1); +if (lean_is_scalar(x_60)) { + x_62 = lean_alloc_ctor(0, 12, 2); } else { - x_58 = x_56; + x_62 = x_60; } -lean_ctor_set(x_58, 0, x_44); -lean_ctor_set(x_58, 1, x_45); -lean_ctor_set(x_58, 2, x_46); -lean_ctor_set(x_58, 3, x_47); -lean_ctor_set(x_58, 4, x_48); -lean_ctor_set(x_58, 5, x_57); -lean_ctor_set(x_58, 6, x_50); -lean_ctor_set(x_58, 7, x_51); -lean_ctor_set(x_58, 8, x_52); -lean_ctor_set(x_58, 9, x_53); -lean_ctor_set(x_58, 10, x_54); -lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_55); -x_59 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__13(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_58, x_11, x_41); -return x_59; +lean_ctor_set(x_62, 0, x_46); +lean_ctor_set(x_62, 1, x_47); +lean_ctor_set(x_62, 2, x_48); +lean_ctor_set(x_62, 3, x_49); +lean_ctor_set(x_62, 4, x_50); +lean_ctor_set(x_62, 5, x_61); +lean_ctor_set(x_62, 6, x_52); +lean_ctor_set(x_62, 7, x_53); +lean_ctor_set(x_62, 8, x_54); +lean_ctor_set(x_62, 9, x_55); +lean_ctor_set(x_62, 10, x_56); +lean_ctor_set(x_62, 11, x_58); +lean_ctor_set_uint8(x_62, sizeof(void*)*12, x_57); +lean_ctor_set_uint8(x_62, sizeof(void*)*12 + 1, x_59); +x_63 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__13(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_62, x_11, x_43); +return x_63; } else { -lean_object* x_60; +lean_object* x_64; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7092,10 +13446,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_14); -lean_ctor_set(x_60, 1, x_41); -return x_60; +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_14); +lean_ctor_set(x_64, 1, x_43); +return x_64; } } } @@ -7779,6 +14133,16 @@ return x_27; } } } +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___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) { _start: { @@ -7794,7 +14158,7 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_16, 0); lean_dec(x_18); -x_19 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1; lean_ctor_set(x_16, 0, x_19); return x_16; } @@ -7804,7 +14168,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_ctor_get(x_16, 1); lean_inc(x_20); lean_dec(x_16); -x_21 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1; +x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__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); @@ -8517,13 +14881,17 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_20, 0); x_27 = lean_ctor_get(x_20, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; lean_free_object(x_20); -x_29 = lean_array_push(x_18, x_26); -lean_ctor_set(x_3, 0, x_29); +x_30 = lean_array_push(x_18, x_26); +lean_ctor_set(x_3, 0, x_30); x_2 = x_16; x_13 = x_27; goto _start; @@ -8549,25 +14917,6 @@ return x_20; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_20, 0); -x_32 = lean_ctor_get(x_20, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_20); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_array_push(x_18, x_31); -lean_ctor_set(x_3, 0, x_34); -x_2 = x_16; -x_13 = x_32; -goto _start; -} -else -{ -lean_object* x_36; lean_free_object(x_3); lean_dec(x_19); lean_dec(x_18); @@ -8582,84 +14931,37 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_31); -lean_ctor_set(x_36, 1, x_32); -return x_36; -} -} +return x_20; } } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_3, 0); -x_38 = lean_ctor_get(x_3, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_3); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_39 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__12(x_15, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_39) == 0) +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_20); +x_34 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_array_push(x_38, x_40); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_37); -lean_ctor_set(x_43, 1, x_42); +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_array_push(x_18, x_32); +lean_ctor_set(x_3, 0, x_36); x_2 = x_16; -x_3 = x_43; -x_13 = x_41; +x_13 = x_33; goto _start; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -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); -} -x_48 = l_Lean_Exception_isRuntime(x_45); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_47); -x_49 = lean_array_push(x_37, x_45); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_38); -x_2 = x_16; -x_3 = x_50; -x_13 = x_46; -goto _start; -} -else -{ -lean_object* x_52; -lean_dec(x_38); -lean_dec(x_37); +lean_object* x_38; +lean_free_object(x_3); +lean_dec(x_19); +lean_dec(x_18); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -8671,14 +14973,156 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -if (lean_is_scalar(x_47)) { - x_52 = lean_alloc_ctor(1, 2, 0); -} else { - x_52 = x_47; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_33); +return x_38; } -lean_ctor_set(x_52, 0, x_45); -lean_ctor_set(x_52, 1, x_46); -return x_52; +} +else +{ +lean_object* x_39; +lean_free_object(x_3); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_33); +return x_39; +} +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_3, 0); +x_41 = lean_ctor_get(x_3, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_3); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_42 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__12(x_15, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_array_push(x_41, x_43); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_45); +x_2 = x_16; +x_3 = x_46; +x_13 = x_44; +goto _start; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +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); +} +x_51 = l_Lean_Exception_isInterrupt(x_48); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = l_Lean_Exception_isRuntime(x_48); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_50); +x_53 = lean_array_push(x_40, x_48); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_41); +x_2 = x_16; +x_3 = x_54; +x_13 = x_49; +goto _start; +} +else +{ +lean_object* x_56; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_50)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_50; +} +lean_ctor_set(x_56, 0, x_48); +lean_ctor_set(x_56, 1, x_49); +return x_56; +} +} +else +{ +lean_object* x_57; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_50)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_50; +} +lean_ctor_set(x_57, 0, x_48); +lean_ctor_set(x_57, 1, x_49); +return x_57; } } } @@ -9232,7 +15676,7 @@ return x_36; } 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; 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_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; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; x_37 = lean_ctor_get(x_11, 0); x_38 = lean_ctor_get(x_11, 1); x_39 = lean_ctor_get(x_11, 2); @@ -9244,7 +15688,10 @@ x_44 = lean_ctor_get(x_11, 7); x_45 = lean_ctor_get(x_11, 8); x_46 = lean_ctor_get(x_11, 9); x_47 = lean_ctor_get(x_11, 10); -x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_48 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_49 = lean_ctor_get(x_11, 11); +x_50 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +lean_inc(x_49); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -9257,60 +15704,62 @@ lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_dec(x_11); -x_49 = l_Lean_replaceRef(x_2, x_42); +x_51 = l_Lean_replaceRef(x_2, x_42); lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_37); -lean_ctor_set(x_50, 1, x_38); -lean_ctor_set(x_50, 2, x_39); -lean_ctor_set(x_50, 3, x_40); -lean_ctor_set(x_50, 4, x_41); -lean_ctor_set(x_50, 5, x_49); -lean_ctor_set(x_50, 6, x_43); -lean_ctor_set(x_50, 7, x_44); -lean_ctor_set(x_50, 8, x_45); -lean_ctor_set(x_50, 9, x_46); -lean_ctor_set(x_50, 10, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_48); -x_51 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__21(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_50, x_12, x_13); -lean_dec(x_50); +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_37); +lean_ctor_set(x_52, 1, x_38); +lean_ctor_set(x_52, 2, x_39); +lean_ctor_set(x_52, 3, x_40); +lean_ctor_set(x_52, 4, x_41); +lean_ctor_set(x_52, 5, x_51); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_49); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_50); +x_53 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__21(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_52, x_12, x_13); +lean_dec(x_52); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -return x_51; +return x_53; } } else { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_52 = lean_unsigned_to_nat(0u); -x_53 = lean_nat_dec_lt(x_52, x_14); +x_54 = lean_unsigned_to_nat(0u); +x_55 = lean_nat_dec_lt(x_54, x_14); lean_dec(x_14); -if (x_53 == 0) +if (x_55 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_1); -x_54 = l_Lean_instInhabitedName; -x_55 = l___private_Init_GetElem_0__outOfBounds___rarg(x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_13); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_array_fget(x_1, x_52); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_1); +x_56 = l_Lean_instInhabitedName; +x_57 = l___private_Init_GetElem_0__outOfBounds___rarg(x_56); x_58 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_13); return x_58; } +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_array_fget(x_1, x_54); +lean_dec(x_1); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_13); +return x_60; +} } } } @@ -9408,19 +15857,19 @@ x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_dec_eq(x_20, x_26); if (x_27 == 0) { -uint8_t x_65; -x_65 = 0; -x_28 = x_65; -goto block_64; +uint8_t x_67; +x_67 = 0; +x_28 = x_67; +goto block_66; } else { -uint8_t x_66; -x_66 = 1; -x_28 = x_66; -goto block_64; +uint8_t x_68; +x_68 = 1; +x_28 = x_68; +goto block_66; } -block_64: +block_66: { if (x_28 == 0) { @@ -9459,7 +15908,7 @@ return x_37; } else { -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_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; 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_object* x_57; lean_object* x_58; lean_object* x_59; x_38 = lean_ctor_get(x_10, 0); x_39 = lean_ctor_get(x_10, 1); x_40 = lean_ctor_get(x_10, 2); @@ -9471,7 +15920,10 @@ x_45 = lean_ctor_get(x_10, 7); x_46 = lean_ctor_get(x_10, 8); x_47 = lean_ctor_get(x_10, 9); x_48 = lean_ctor_get(x_10, 10); -x_49 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_50 = lean_ctor_get(x_10, 11); +x_51 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_50); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); @@ -9484,49 +15936,51 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_10); -x_50 = l_Lean_replaceRef(x_2, x_43); +x_52 = l_Lean_replaceRef(x_2, x_43); lean_dec(x_43); lean_dec(x_2); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_40); -lean_ctor_set(x_51, 3, x_41); -lean_ctor_set(x_51, 4, x_42); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_44); -lean_ctor_set(x_51, 7, x_45); -lean_ctor_set(x_51, 8, x_46); -lean_ctor_set(x_51, 9, x_47); -lean_ctor_set(x_51, 10, x_48); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_49); -x_52 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Tactic_evalOpen___spec__34___closed__3; -x_53 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Tactic_evalOpen___spec__36(x_52, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51, x_11, x_16); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_56 = x_53; +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_38); +lean_ctor_set(x_53, 1, x_39); +lean_ctor_set(x_53, 2, x_40); +lean_ctor_set(x_53, 3, x_41); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set(x_53, 5, x_52); +lean_ctor_set(x_53, 6, x_44); +lean_ctor_set(x_53, 7, x_45); +lean_ctor_set(x_53, 8, x_46); +lean_ctor_set(x_53, 9, x_47); +lean_ctor_set(x_53, 10, x_48); +lean_ctor_set(x_53, 11, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_51); +x_54 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Tactic_evalOpen___spec__34___closed__3; +x_55 = l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Tactic_evalOpen___spec__36(x_54, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53, x_11, x_16); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; } else { - lean_dec_ref(x_53); - x_56 = lean_box(0); + lean_dec_ref(x_55); + x_58 = lean_box(0); } -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); } else { - x_57 = x_56; + x_59 = x_58; } -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } else { -uint8_t x_58; +uint8_t x_60; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9537,29 +15991,14 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_58 = lean_nat_dec_lt(x_21, x_20); +x_60 = lean_nat_dec_lt(x_21, x_20); lean_dec(x_20); -if (x_58 == 0) +if (x_60 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_18); -x_59 = l_Lean_instInhabitedException; -x_60 = l___private_Init_GetElem_0__outOfBounds___rarg(x_59); -if (lean_is_scalar(x_17)) { - x_61 = lean_alloc_ctor(1, 2, 0); -} else { - x_61 = x_17; - lean_ctor_set_tag(x_61, 1); -} -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_16); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_array_fget(x_18, x_21); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_18); +x_61 = l_Lean_instInhabitedException; +x_62 = l___private_Init_GetElem_0__outOfBounds___rarg(x_61); if (lean_is_scalar(x_17)) { x_63 = lean_alloc_ctor(1, 2, 0); } else { @@ -9570,13 +16009,28 @@ lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_16); return x_63; } +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_array_fget(x_18, x_21); +lean_dec(x_18); +if (lean_is_scalar(x_17)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_17; + lean_ctor_set_tag(x_65, 1); +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_16); +return x_65; +} } } } } else { -uint8_t x_67; +uint8_t x_69; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9588,23 +16042,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_14); -if (x_67 == 0) +x_69 = !lean_is_exclusive(x_14); +if (x_69 == 0) { return x_14; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_14, 0); -x_69 = lean_ctor_get(x_14, 1); -lean_inc(x_69); -lean_inc(x_68); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_14, 0); +x_71 = lean_ctor_get(x_14, 1); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_14); -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; +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; } } } @@ -12106,7 +18560,7 @@ lean_inc(x_2); x_20 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); 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_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; lean_object* x_35; +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; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -12132,20 +18586,25 @@ x_31 = lean_ctor_get(x_8, 9); lean_inc(x_31); x_32 = lean_ctor_get(x_8, 10); lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_34 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_34, 0, x_23); -lean_ctor_set(x_34, 1, x_24); -lean_ctor_set(x_34, 2, x_25); -lean_ctor_set(x_34, 3, x_26); -lean_ctor_set(x_34, 4, x_27); -lean_ctor_set(x_34, 5, x_28); -lean_ctor_set(x_34, 6, x_29); -lean_ctor_set(x_34, 7, x_21); -lean_ctor_set(x_34, 8, x_30); -lean_ctor_set(x_34, 9, x_31); -lean_ctor_set(x_34, 10, x_32); -lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_33); +x_33 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_34 = lean_ctor_get(x_8, 11); +lean_inc(x_34); +x_35 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_36 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_36, 0, x_23); +lean_ctor_set(x_36, 1, x_24); +lean_ctor_set(x_36, 2, x_25); +lean_ctor_set(x_36, 3, x_26); +lean_ctor_set(x_36, 4, x_27); +lean_ctor_set(x_36, 5, x_28); +lean_ctor_set(x_36, 6, x_29); +lean_ctor_set(x_36, 7, x_21); +lean_ctor_set(x_36, 8, x_30); +lean_ctor_set(x_36, 9, x_31); +lean_ctor_set(x_36, 10, x_32); +lean_ctor_set(x_36, 11, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*12, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*12 + 1, x_35); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); @@ -12153,16 +18612,16 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_35 = l_Lean_Elab_Tactic_evalTactic(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_22); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Elab_Tactic_evalTactic(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_36, x_9, x_22); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_37); +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_39); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12171,36 +18630,36 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -lean_ctor_set(x_38, 0, x_36); -return x_38; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_38); +return x_40; } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_36); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_43 = lean_ctor_get(x_35, 0); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_35, 1); -lean_inc(x_44); -lean_dec(x_35); -x_45 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_37, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_37, 1); +lean_inc(x_46); +lean_dec(x_37); +x_47 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_46); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12209,39 +18668,39 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -lean_object* x_47; -x_47 = lean_ctor_get(x_45, 0); -lean_dec(x_47); -lean_ctor_set_tag(x_45, 1); -lean_ctor_set(x_45, 0, x_43); -return x_45; +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set_tag(x_47, 1); +lean_ctor_set(x_47, 0, x_45); +return x_47; } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -lean_dec(x_17); -x_50 = lean_ctor_get(x_20, 0); +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_20, 1); -lean_inc(x_51); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_45); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_17); +x_52 = lean_ctor_get(x_20, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_20, 1); +lean_inc(x_53); lean_dec(x_20); -x_52 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); +x_54 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__45(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12250,26 +18709,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -lean_ctor_set_tag(x_52, 1); -lean_ctor_set(x_52, 0, x_50); -return x_52; +lean_object* x_56; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +lean_ctor_set_tag(x_54, 1); +lean_ctor_set(x_54, 0, x_52); +return x_54; } else { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_50); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } @@ -12949,7 +19408,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(155u); +x_1 = lean_unsigned_to_nat(231u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -12961,7 +19420,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(163u); +x_1 = lean_unsigned_to_nat(239u); x_2 = lean_unsigned_to_nat(12u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -12989,7 +19448,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(155u); +x_1 = lean_unsigned_to_nat(231u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -13001,7 +19460,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalOpen_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(155u); +x_1 = lean_unsigned_to_nat(231u); x_2 = lean_unsigned_to_nat(49u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -14291,7 +20750,7 @@ x_18 = l_Lean_Elab_Tactic_elabSetOption___lambda__1___closed__1; x_19 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_18); lean_ctor_set(x_12, 4, x_19); lean_ctor_set(x_12, 2, x_1); -lean_ctor_set_uint8(x_12, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_12, sizeof(void*)*12, x_2); lean_inc(x_13); lean_inc(x_12); lean_inc(x_9); @@ -14473,7 +20932,7 @@ return x_50; } else { -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_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; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_51 = lean_ctor_get(x_12, 0); x_52 = lean_ctor_get(x_12, 1); x_53 = lean_ctor_get(x_12, 3); @@ -14483,6 +20942,9 @@ x_56 = lean_ctor_get(x_12, 7); x_57 = lean_ctor_get(x_12, 8); x_58 = lean_ctor_get(x_12, 9); x_59 = lean_ctor_get(x_12, 10); +x_60 = lean_ctor_get(x_12, 11); +x_61 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_60); lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); @@ -14493,111 +20955,113 @@ lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_dec(x_12); -x_60 = l_Lean_Elab_Tactic_elabSetOption___lambda__1___closed__1; -x_61 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_60); -x_62 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_62, 0, x_51); -lean_ctor_set(x_62, 1, x_52); -lean_ctor_set(x_62, 2, x_1); -lean_ctor_set(x_62, 3, x_53); -lean_ctor_set(x_62, 4, x_61); -lean_ctor_set(x_62, 5, x_54); -lean_ctor_set(x_62, 6, x_55); -lean_ctor_set(x_62, 7, x_56); -lean_ctor_set(x_62, 8, x_57); -lean_ctor_set(x_62, 9, x_58); -lean_ctor_set(x_62, 10, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_2); +x_62 = l_Lean_Elab_Tactic_elabSetOption___lambda__1___closed__1; +x_63 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_62); +x_64 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_64, 0, x_51); +lean_ctor_set(x_64, 1, x_52); +lean_ctor_set(x_64, 2, x_1); +lean_ctor_set(x_64, 3, x_53); +lean_ctor_set(x_64, 4, x_63); +lean_ctor_set(x_64, 5, x_54); +lean_ctor_set(x_64, 6, x_55); +lean_ctor_set(x_64, 7, x_56); +lean_ctor_set(x_64, 8, x_57); +lean_ctor_set(x_64, 9, x_58); +lean_ctor_set(x_64, 10, x_59); +lean_ctor_set(x_64, 11, x_60); +lean_ctor_set_uint8(x_64, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_64, sizeof(void*)*12 + 1, x_61); lean_inc(x_13); -lean_inc(x_62); +lean_inc(x_64); lean_inc(x_9); lean_inc(x_8); -x_63 = l_Lean_Elab_Tactic_evalTactic(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_62, x_13, x_14); -if (lean_obj_tag(x_63) == 0) +x_65 = l_Lean_Elab_Tactic_evalTactic(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_64, x_13, x_14); +if (lean_obj_tag(x_65) == 0) { if (x_10 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_64); lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_66 = x_63; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_68 = x_65; } else { - lean_dec_ref(x_63); - x_66 = lean_box(0); + lean_dec_ref(x_65); + x_68 = lean_box(0); } -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_66; + x_69 = x_68; } -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_65); -return x_67; +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +return x_69; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_63, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_63, 1); -lean_inc(x_69); -lean_dec(x_63); -x_70 = l_Lean_Meta_reportDiag(x_8, x_9, x_62, x_13, x_69); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_70, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_65, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_65, 1); lean_inc(x_71); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_72 = x_70; +lean_dec(x_65); +x_72 = l_Lean_Meta_reportDiag(x_8, x_9, x_64, x_13, x_71); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; } else { - lean_dec_ref(x_70); - x_72 = lean_box(0); + lean_dec_ref(x_72); + x_74 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_72; + x_75 = x_74; } -lean_ctor_set(x_73, 0, x_68); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_ctor_set(x_75, 0, x_70); +lean_ctor_set(x_75, 1, x_73); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_68); -x_74 = lean_ctor_get(x_70, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_76 = x_70; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_70); +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_78 = x_72; } else { - lean_dec_ref(x_70); - x_76 = lean_box(0); + lean_dec_ref(x_72); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } } @@ -14605,88 +21069,88 @@ else { if (x_10 == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_62); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_64); lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); -x_78 = lean_ctor_get(x_63, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_63, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_80 = x_63; +x_80 = lean_ctor_get(x_65, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_65, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_82 = x_65; } else { - lean_dec_ref(x_63); - x_80 = lean_box(0); + lean_dec_ref(x_65); + x_82 = lean_box(0); } -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_81 = x_80; + x_83 = x_82; } -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -return x_81; +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_63, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_63, 1); -lean_inc(x_83); -lean_dec(x_63); -x_84 = l_Lean_Meta_reportDiag(x_8, x_9, x_62, x_13, x_83); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_84, 1); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_65, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_65, 1); lean_inc(x_85); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_86 = x_84; +lean_dec(x_65); +x_86 = l_Lean_Meta_reportDiag(x_8, x_9, x_64, x_13, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_88 = x_86; } else { - lean_dec_ref(x_84); - x_86 = lean_box(0); + lean_dec_ref(x_86); + x_88 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_87 = x_86; - lean_ctor_set_tag(x_87, 1); + x_89 = x_88; + lean_ctor_set_tag(x_89, 1); } -lean_ctor_set(x_87, 0, x_82); -lean_ctor_set(x_87, 1, x_85); -return x_87; +lean_ctor_set(x_89, 0, x_84); +lean_ctor_set(x_89, 1, x_87); +return x_89; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_82); -x_88 = lean_ctor_get(x_84, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_84, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_90 = x_84; +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_84); +x_90 = lean_ctor_get(x_86, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_86, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_92 = x_86; } else { - lean_dec_ref(x_84); - x_90 = lean_box(0); + lean_dec_ref(x_86); + x_92 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_90; + x_93 = x_92; } -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } } @@ -15107,7 +21571,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(165u); +x_1 = lean_unsigned_to_nat(241u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15119,7 +21583,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(172u); +x_1 = lean_unsigned_to_nat(248u); x_2 = lean_unsigned_to_nat(18u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15147,7 +21611,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(165u); +x_1 = lean_unsigned_to_nat(241u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15159,7 +21623,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_elabSetOption_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(165u); +x_1 = lean_unsigned_to_nat(241u); x_2 = lean_unsigned_to_nat(60u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15242,7 +21706,7 @@ x_20 = lean_unbox(x_19); lean_dec(x_19); 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_51; +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_53; x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec(x_18); @@ -15276,60 +21740,64 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_51 = l_Lean_Elab_Tactic_evalTactic(x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Elab_Tactic_evalTactic(x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_29); lean_dec(x_27); lean_dec(x_16); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_52); -x_54 = lean_ctor_get(x_53, 0); +x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); lean_dec(x_53); -x_56 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_4, x_54); +x_55 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_4, x_56); x_3 = x_17; -x_4 = x_56; -x_13 = x_55; +x_4 = x_58; +x_13 = x_57; goto _start; } else { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_51, 1); -lean_inc(x_59); -lean_dec(x_51); -x_30 = x_58; -x_31 = x_59; -goto block_50; +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_53, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_53, 1); +lean_inc(x_61); +lean_dec(x_53); +x_30 = x_60; +x_31 = x_61; +goto block_52; } -block_50: +block_52: { uint8_t x_32; -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (x_32 == 0) { -uint8_t x_33; lean_object* x_34; uint8_t x_35; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_dec(x_29); -x_33 = 0; +x_34 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_34 = l_Lean_Elab_Tactic_SavedState_restore(x_27, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); -x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); -if (x_35 == 0) +x_35 = l_Lean_Elab_Tactic_SavedState_restore(x_27, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_36 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +if (x_36 == 0) { -uint8_t x_36; +uint8_t x_37; lean_dec(x_17); lean_dec(x_16); lean_dec(x_12); @@ -15342,34 +21810,34 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_36 = !lean_is_exclusive(x_34); -if (x_36 == 0) +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) { -lean_object* x_37; -x_37 = lean_ctor_get(x_34, 0); -lean_dec(x_37); -lean_ctor_set_tag(x_34, 1); -lean_ctor_set(x_34, 0, x_30); -return x_34; +lean_object* x_38; +x_38 = lean_ctor_get(x_35, 0); +lean_dec(x_38); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_30); +return x_35; } else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_34, 1); -lean_inc(x_38); -lean_dec(x_34); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); -lean_dec(x_34); +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_dec(x_35); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -15378,22 +21846,22 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_41 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_40); -if (lean_obj_tag(x_41) == 0) +x_42 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_41); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_array_push(x_4, x_16); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_array_push(x_4, x_16); x_3 = x_17; -x_4 = x_43; -x_13 = x_42; +x_4 = x_44; +x_13 = x_43; goto _start; } else { -uint8_t x_45; +uint8_t x_46; lean_dec(x_17); lean_dec(x_16); lean_dec(x_12); @@ -15406,30 +21874,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_45 = !lean_is_exclusive(x_41); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) { -return x_41; +return x_42; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 0); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_41); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_42); +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_49; +lean_object* x_50; lean_dec(x_27); lean_dec(x_17); lean_dec(x_16); @@ -15444,73 +21912,100 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); if (lean_is_scalar(x_29)) { - x_49 = lean_alloc_ctor(1, 2, 0); + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_29; - lean_ctor_set_tag(x_49, 1); + x_50 = x_29; + lean_ctor_set_tag(x_50, 1); } -lean_ctor_set(x_49, 0, x_30); -lean_ctor_set(x_49, 1, x_31); -return x_49; +lean_ctor_set(x_50, 0, x_30); +lean_ctor_set(x_50, 1, x_31); +return x_50; +} +} +else +{ +lean_object* x_51; +lean_dec(x_27); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_29)) { + x_51 = lean_alloc_ctor(1, 2, 0); +} else { + x_51 = x_29; + lean_ctor_set_tag(x_51, 1); +} +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_31); +return x_51; } } } else { -lean_object* x_60; +lean_object* x_62; lean_free_object(x_3); lean_dec(x_16); -x_60 = lean_ctor_get(x_18, 1); -lean_inc(x_60); +x_62 = lean_ctor_get(x_18, 1); +lean_inc(x_62); lean_dec(x_18); x_3 = x_17; -x_13 = x_60; +x_13 = x_62; goto _start; } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_62 = lean_ctor_get(x_3, 0); -x_63 = lean_ctor_get(x_3, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_3); -lean_inc(x_62); -x_64 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_65 = lean_ctor_get(x_64, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_64 = lean_ctor_get(x_3, 0); +x_65 = lean_ctor_get(x_3, 1); lean_inc(x_65); -x_66 = lean_unbox(x_65); -lean_dec(x_65); -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; lean_object* x_77; lean_object* x_78; lean_object* x_97; -x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_64); +lean_dec(x_3); +lean_inc(x_64); +x_66 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_64); +x_68 = lean_unbox(x_67); +lean_dec(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_101; +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); lean_inc(x_2); -lean_inc(x_62); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_62); -lean_ctor_set(x_68, 1, x_2); -x_69 = l_Lean_Elab_Tactic_setGoals(x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_67); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = lean_unsigned_to_nat(1u); -x_72 = l_Lean_Syntax_getArg(x_1, x_71); -x_73 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_70); -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_inc(x_64); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_64); +lean_ctor_set(x_70, 1, x_2); +x_71 = l_Lean_Elab_Tactic_setGoals(x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_69); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_unsigned_to_nat(1u); +x_74 = l_Lean_Syntax_getArg(x_1, x_73); +x_75 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_72); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; } else { - lean_dec_ref(x_73); - x_76 = lean_box(0); + lean_dec_ref(x_75); + x_78 = lean_box(0); } lean_inc(x_12); lean_inc(x_11); @@ -15520,62 +22015,66 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_97 = l_Lean_Elab_Tactic_evalTactic(x_72, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_75); -if (lean_obj_tag(x_97) == 0) +x_101 = l_Lean_Elab_Tactic_evalTactic(x_74, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_77); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_78); lean_dec(x_76); -lean_dec(x_74); -lean_dec(x_62); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_98); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_4, x_100); -x_3 = x_63; -x_4 = x_102; -x_13 = x_101; +lean_dec(x_64); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_4, x_104); +x_3 = x_65; +x_4 = x_106; +x_13 = x_105; goto _start; } else { -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_97, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_97, 1); -lean_inc(x_105); -lean_dec(x_97); -x_77 = x_104; -x_78 = x_105; -goto block_96; +lean_object* x_108; lean_object* x_109; +x_108 = lean_ctor_get(x_101, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_101, 1); +lean_inc(x_109); +lean_dec(x_101); +x_79 = x_108; +x_80 = x_109; +goto block_100; } -block_96: +block_100: { -uint8_t x_79; -x_79 = l_Lean_Exception_isRuntime(x_77); -if (x_79 == 0) +uint8_t x_81; +x_81 = l_Lean_Exception_isInterrupt(x_79); +if (x_81 == 0) { -uint8_t x_80; lean_object* x_81; uint8_t x_82; -lean_dec(x_76); -x_80 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_81 = l_Lean_Elab_Tactic_SavedState_restore(x_74, x_80, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_78); -x_82 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +uint8_t x_82; +x_82 = l_Lean_Exception_isRuntime(x_79); if (x_82 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_63); -lean_dec(x_62); +uint8_t x_83; lean_object* x_84; uint8_t x_85; +lean_dec(x_78); +x_83 = 0; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_84 = l_Lean_Elab_Tactic_SavedState_restore(x_76, x_83, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); +x_85 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_65); +lean_dec(x_64); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -15586,32 +22085,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -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; +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); + x_87 = x_84; } else { - lean_dec_ref(x_81); - x_84 = lean_box(0); + lean_dec_ref(x_84); + x_87 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; - lean_ctor_set_tag(x_85, 1); + x_88 = x_87; + lean_ctor_set_tag(x_88, 1); } -lean_ctor_set(x_85, 0, x_77); -lean_ctor_set(x_85, 1, x_83); -return x_85; +lean_ctor_set(x_88, 0, x_79); +lean_ctor_set(x_88, 1, x_86); +return x_88; } else { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_81, 1); -lean_inc(x_86); -lean_dec(x_81); +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); +lean_dec(x_84); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -15620,94 +22119,121 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_87 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_86); -if (lean_obj_tag(x_87) == 0) +x_90 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_79, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_89); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_array_push(x_4, x_62); -x_3 = x_63; -x_4 = x_89; -x_13 = x_88; +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_array_push(x_4, x_64); +x_3 = x_65; +x_4 = x_92; +x_13 = x_91; goto _start; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_63); -lean_dec(x_62); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_91 = lean_ctor_get(x_87, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_93 = x_87; -} else { - lean_dec_ref(x_87); - 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); -return x_94; -} -} -} -else -{ -lean_object* x_95; -lean_dec(x_74); -lean_dec(x_63); -lean_dec(x_62); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_76)) { - x_95 = lean_alloc_ctor(1, 2, 0); -} else { - x_95 = x_76; - lean_ctor_set_tag(x_95, 1); -} -lean_ctor_set(x_95, 0, x_77); -lean_ctor_set(x_95, 1, x_78); -return x_95; -} -} -} -else -{ -lean_object* x_106; -lean_dec(x_62); -x_106 = lean_ctor_get(x_64, 1); -lean_inc(x_106); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_65); lean_dec(x_64); -x_3 = x_63; -x_13 = x_106; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_94 = lean_ctor_get(x_90, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_90, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_96 = x_90; +} else { + lean_dec_ref(x_90); + x_96 = lean_box(0); +} +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_94); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +} +else +{ +lean_object* x_98; +lean_dec(x_76); +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_78)) { + x_98 = lean_alloc_ctor(1, 2, 0); +} else { + x_98 = x_78; + lean_ctor_set_tag(x_98, 1); +} +lean_ctor_set(x_98, 0, x_79); +lean_ctor_set(x_98, 1, x_80); +return x_98; +} +} +else +{ +lean_object* x_99; +lean_dec(x_76); +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_78)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_78; + lean_ctor_set_tag(x_99, 1); +} +lean_ctor_set(x_99, 0, x_79); +lean_ctor_set(x_99, 1, x_80); +return x_99; +} +} +} +else +{ +lean_object* x_110; +lean_dec(x_64); +x_110 = lean_ctor_get(x_66, 1); +lean_inc(x_110); +lean_dec(x_66); +x_3 = x_65; +x_13 = x_110; goto _start; } } @@ -15869,7 +22395,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(174u); +x_1 = lean_unsigned_to_nat(250u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15881,7 +22407,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(189u); +x_1 = lean_unsigned_to_nat(265u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15909,7 +22435,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(174u); +x_1 = lean_unsigned_to_nat(250u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15921,7 +22447,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(174u); +x_1 = lean_unsigned_to_nat(250u); x_2 = lean_unsigned_to_nat(57u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -15993,543 +22519,55 @@ uint8_t x_15; x_15 = !lean_is_exclusive(x_3); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_23; lean_object* x_24; uint8_t x_33; +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; x_16 = lean_ctor_get(x_3, 0); x_17 = lean_ctor_get(x_3, 1); -x_33 = !lean_is_exclusive(x_4); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_34 = lean_ctor_get(x_4, 0); -x_35 = lean_ctor_get(x_4, 1); -lean_inc(x_16); -x_36 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -lean_dec(x_37); -if (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; lean_object* x_47; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -lean_inc(x_2); -lean_inc(x_16); -lean_ctor_set(x_3, 1, x_2); -x_40 = l_Lean_Elab_Tactic_setGoals(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_unsigned_to_nat(1u); -x_43 = l_Lean_Syntax_getArg(x_1, x_42); -x_44 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_41); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_47 = l_Lean_Elab_Tactic_evalTactic(x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -lean_dec(x_45); -lean_dec(x_35); -lean_dec(x_16); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_48); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; -x_51 = lean_ctor_get(x_49, 0); -x_52 = lean_ctor_get(x_49, 1); -x_53 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_34, x_51); -x_54 = 1; -x_55 = lean_box(x_54); -lean_ctor_set(x_4, 1, x_55); -lean_ctor_set(x_4, 0, x_53); -x_56 = lean_box(0); -lean_ctor_set(x_49, 1, x_4); -lean_ctor_set(x_49, 0, x_56); -x_23 = x_49; -x_24 = x_52; -goto block_32; -} -else -{ -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; -x_57 = lean_ctor_get(x_49, 0); -x_58 = lean_ctor_get(x_49, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_49); -x_59 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_34, x_57); -x_60 = 1; -x_61 = lean_box(x_60); -lean_ctor_set(x_4, 1, x_61); -lean_ctor_set(x_4, 0, x_59); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_4); -x_23 = x_63; -x_24 = x_58; -goto block_32; -} -} -else -{ -uint8_t x_64; -x_64 = !lean_is_exclusive(x_47); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_47, 0); -x_66 = lean_ctor_get(x_47, 1); -x_67 = l_Lean_Exception_isRuntime(x_65); -if (x_67 == 0) -{ -uint8_t x_68; lean_object* x_69; uint8_t x_70; -lean_free_object(x_47); -lean_dec(x_65); -x_68 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_69 = l_Lean_Elab_Tactic_SavedState_restore(x_45, x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_66); -x_70 = !lean_is_exclusive(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_69, 1); -x_72 = lean_ctor_get(x_69, 0); -lean_dec(x_72); -x_73 = lean_array_push(x_34, x_16); -lean_ctor_set(x_4, 0, x_73); -x_74 = lean_box(0); -lean_ctor_set(x_69, 1, x_4); -lean_ctor_set(x_69, 0, x_74); -x_23 = x_69; -x_24 = x_71; -goto block_32; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_69, 1); -lean_inc(x_75); -lean_dec(x_69); -x_76 = lean_array_push(x_34, x_16); -lean_ctor_set(x_4, 0, x_76); -x_77 = lean_box(0); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_4); -x_23 = x_78; -x_24 = x_75; -goto block_32; -} -} -else -{ -lean_dec(x_45); -lean_free_object(x_4); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -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_2); -return x_47; -} -} -else -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_47, 0); -x_80 = lean_ctor_get(x_47, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_47); -x_81 = l_Lean_Exception_isRuntime(x_79); -if (x_81 == 0) -{ -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; -lean_dec(x_79); -x_82 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_83 = l_Lean_Elab_Tactic_SavedState_restore(x_45, x_82, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_80); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -x_86 = lean_array_push(x_34, x_16); -lean_ctor_set(x_4, 0, x_86); -x_87 = lean_box(0); -if (lean_is_scalar(x_85)) { - x_88 = lean_alloc_ctor(0, 2, 0); -} else { - x_88 = x_85; -} -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_4); -x_23 = x_88; -x_24 = x_84; -goto block_32; -} -else -{ -lean_object* x_89; -lean_dec(x_45); -lean_free_object(x_4); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -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_2); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_79); -lean_ctor_set(x_89, 1, x_80); -return x_89; -} -} -} -} -else -{ -lean_object* x_90; lean_object* x_91; -lean_free_object(x_3); -lean_dec(x_16); -x_90 = lean_ctor_get(x_36, 1); -lean_inc(x_90); -lean_dec(x_36); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_4); -x_18 = x_91; -x_19 = x_90; -goto block_22; -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_92 = lean_ctor_get(x_4, 0); -x_93 = lean_ctor_get(x_4, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_4); -lean_inc(x_16); -x_94 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_unbox(x_95); -lean_dec(x_95); -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; -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -lean_inc(x_2); -lean_inc(x_16); -lean_ctor_set(x_3, 1, x_2); -x_98 = l_Lean_Elab_Tactic_setGoals(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_97); -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -lean_dec(x_98); -x_100 = lean_unsigned_to_nat(1u); -x_101 = l_Lean_Syntax_getArg(x_1, x_100); -x_102 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_99); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_105 = l_Lean_Elab_Tactic_evalTactic(x_101, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_104); -if (lean_obj_tag(x_105) == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 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; -lean_dec(x_103); -lean_dec(x_93); -lean_dec(x_16); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); -x_107 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_106); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; -} else { - lean_dec_ref(x_107); - x_110 = lean_box(0); -} -x_111 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_92, x_108); -x_112 = 1; -x_113 = lean_box(x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_113); -x_115 = lean_box(0); -if (lean_is_scalar(x_110)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { - x_116 = x_110; -} -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -x_23 = x_116; -x_24 = x_109; -goto block_32; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_117 = lean_ctor_get(x_105, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_105, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_119 = x_105; -} else { - lean_dec_ref(x_105); - x_119 = lean_box(0); -} -x_120 = l_Lean_Exception_isRuntime(x_117); -if (x_120 == 0) -{ -uint8_t 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_dec(x_119); -lean_dec(x_117); -x_121 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_122 = l_Lean_Elab_Tactic_SavedState_restore(x_103, x_121, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_118); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); -} -x_125 = lean_array_push(x_92, x_16); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_93); -x_127 = lean_box(0); -if (lean_is_scalar(x_124)) { - x_128 = lean_alloc_ctor(0, 2, 0); -} else { - x_128 = x_124; -} -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_126); -x_23 = x_128; -x_24 = x_123; -goto block_32; -} -else -{ -lean_object* x_129; -lean_dec(x_103); -lean_dec(x_93); -lean_dec(x_92); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -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_2); -if (lean_is_scalar(x_119)) { - x_129 = lean_alloc_ctor(1, 2, 0); -} else { - x_129 = x_119; -} -lean_ctor_set(x_129, 0, x_117); -lean_ctor_set(x_129, 1, x_118); -return x_129; -} -} -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_free_object(x_3); -lean_dec(x_16); -x_130 = lean_ctor_get(x_94, 1); -lean_inc(x_130); -lean_dec(x_94); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_92); -lean_ctor_set(x_131, 1, x_93); -x_132 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_132, 0, x_131); -x_18 = x_132; -x_19 = x_130; -goto block_22; -} -} -block_22: -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_3 = x_17; -x_4 = x_20; -x_13 = x_19; -goto _start; -} -block_32: -{ -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_25); -x_18 = x_27; -x_19 = x_24; -goto block_22; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -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); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_18 = x_31; -x_19 = x_24; -goto block_22; -} -} -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_140; lean_object* x_141; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; -x_133 = lean_ctor_get(x_3, 0); -x_134 = lean_ctor_get(x_3, 1); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_3); -x_149 = lean_ctor_get(x_4, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_4, 1); -lean_inc(x_150); +x_18 = lean_ctor_get(x_4, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_19); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); - x_151 = x_4; + x_20 = x_4; } else { lean_dec_ref(x_4); - x_151 = lean_box(0); + x_20 = lean_box(0); } -lean_inc(x_133); -x_152 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_133, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_unbox(x_153); -lean_dec(x_153); -if (x_154 == 0) +lean_inc(x_16); +x_21 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); +lean_dec(x_22); +if (x_23 == 0) { -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; -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -lean_dec(x_152); +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_46; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); lean_inc(x_2); -lean_inc(x_133); -x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_133); -lean_ctor_set(x_156, 1, x_2); -x_157 = l_Lean_Elab_Tactic_setGoals(x_156, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_155); -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -lean_dec(x_157); -x_159 = lean_unsigned_to_nat(1u); -x_160 = l_Lean_Syntax_getArg(x_1, x_159); -x_161 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_158); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); +lean_inc(x_16); +lean_ctor_set(x_3, 1, x_2); +x_25 = l_Lean_Elab_Tactic_setGoals(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_unsigned_to_nat(1u); +x_28 = l_Lean_Syntax_getArg(x_1, x_27); +x_29 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -16538,119 +22576,113 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_164 = l_Lean_Elab_Tactic_evalTactic(x_160, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_163); -if (lean_obj_tag(x_164) == 0) +x_46 = l_Lean_Elab_Tactic_evalTactic(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_162); -lean_dec(x_150); -lean_dec(x_133); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec(x_164); -x_166 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_165); -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_169 = x_166; -} else { - lean_dec_ref(x_166); - x_169 = lean_box(0); -} -x_170 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_149, x_167); -x_171 = 1; -x_172 = lean_box(x_171); -if (lean_is_scalar(x_151)) { - x_173 = lean_alloc_ctor(0, 2, 0); -} else { - x_173 = x_151; -} -lean_ctor_set(x_173, 0, x_170); -lean_ctor_set(x_173, 1, x_172); -x_174 = lean_box(0); -if (lean_is_scalar(x_169)) { - x_175 = lean_alloc_ctor(0, 2, 0); -} else { - x_175 = x_169; -} -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_173); -x_140 = x_175; -x_141 = x_168; -goto block_148; +lean_object* x_47; lean_object* x_48; uint8_t x_49; +lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_16); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +x_52 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_18, x_50); +x_53 = 1; +x_54 = lean_box(x_53); +lean_ctor_set(x_48, 1, x_54); +lean_ctor_set(x_48, 0, x_52); +x_3 = x_17; +x_4 = x_48; +x_13 = x_51; +goto _start; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_176 = lean_ctor_get(x_164, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_164, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_178 = x_164; -} else { - lean_dec_ref(x_164); - x_178 = lean_box(0); +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_48, 0); +x_57 = lean_ctor_get(x_48, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_48); +x_58 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_18, x_56); +x_59 = 1; +x_60 = lean_box(x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_60); +x_3 = x_17; +x_4 = x_61; +x_13 = x_57; +goto _start; } -x_179 = l_Lean_Exception_isRuntime(x_176); -if (x_179 == 0) +} +else { -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_object* x_186; lean_object* x_187; -lean_dec(x_178); -lean_dec(x_176); -x_180 = 0; +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_46, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_46, 1); +lean_inc(x_64); +lean_dec(x_46); +x_33 = x_63; +x_34 = x_64; +goto block_45; +} +block_45: +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isInterrupt(x_33); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = l_Lean_Exception_isRuntime(x_33); +if (x_36 == 0) +{ +uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_33); +lean_dec(x_32); +x_37 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_181 = l_Lean_Elab_Tactic_SavedState_restore(x_162, x_180, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_177); -x_182 = lean_ctor_get(x_181, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - lean_ctor_release(x_181, 1); - x_183 = x_181; +x_38 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_array_push(x_18, x_16); +if (lean_is_scalar(x_20)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_181); - x_183 = lean_box(0); + x_41 = x_20; } -x_184 = lean_array_push(x_149, x_133); -if (lean_is_scalar(x_151)) { - x_185 = lean_alloc_ctor(0, 2, 0); -} else { - x_185 = x_151; -} -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_150); -x_186 = lean_box(0); -if (lean_is_scalar(x_183)) { - x_187 = lean_alloc_ctor(0, 2, 0); -} else { - x_187 = x_183; -} -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_185); -x_140 = x_187; -x_141 = x_182; -goto block_148; +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_19); +x_3 = x_17; +x_4 = x_41; +x_13 = x_39; +goto _start; } else { -lean_object* x_188; -lean_dec(x_162); -lean_dec(x_151); -lean_dec(x_150); -lean_dec(x_149); -lean_dec(x_134); -lean_dec(x_133); +lean_object* x_43; +lean_dec(x_30); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -16660,78 +22692,298 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -if (lean_is_scalar(x_178)) { - x_188 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_32)) { + x_43 = lean_alloc_ctor(1, 2, 0); } else { - x_188 = x_178; + x_43 = x_32; + lean_ctor_set_tag(x_43, 1); } -lean_ctor_set(x_188, 0, x_176); -lean_ctor_set(x_188, 1, x_177); -return x_188; +lean_ctor_set(x_43, 0, x_33); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +} +else +{ +lean_object* x_44; +lean_dec(x_30); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +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_2); +if (lean_is_scalar(x_32)) { + x_44 = lean_alloc_ctor(1, 2, 0); +} else { + x_44 = x_32; + lean_ctor_set_tag(x_44, 1); +} +lean_ctor_set(x_44, 0, x_33); +lean_ctor_set(x_44, 1, x_34); +return x_44; } } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_133); -x_189 = lean_ctor_get(x_152, 1); -lean_inc(x_189); -lean_dec(x_152); -if (lean_is_scalar(x_151)) { - x_190 = lean_alloc_ctor(0, 2, 0); +lean_object* x_65; lean_object* x_66; +lean_free_object(x_3); +lean_dec(x_16); +x_65 = lean_ctor_get(x_21, 1); +lean_inc(x_65); +lean_dec(x_21); +if (lean_is_scalar(x_20)) { + x_66 = lean_alloc_ctor(0, 2, 0); } else { - x_190 = x_151; + x_66 = x_20; } -lean_ctor_set(x_190, 0, x_149); -lean_ctor_set(x_190, 1, x_150); -x_191 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_191, 0, x_190); -x_135 = x_191; -x_136 = x_189; -goto block_139; -} -block_139: -{ -lean_object* x_137; -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -lean_dec(x_135); -x_3 = x_134; -x_4 = x_137; -x_13 = x_136; +lean_ctor_set(x_66, 0, x_18); +lean_ctor_set(x_66, 1, x_19); +x_3 = x_17; +x_4 = x_66; +x_13 = x_65; goto _start; } -block_148: +} +else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_145 = x_142; +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; uint8_t x_75; +x_68 = lean_ctor_get(x_3, 0); +x_69 = lean_ctor_get(x_3, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_3); +x_70 = lean_ctor_get(x_4, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_4, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + x_72 = x_4; } else { - lean_dec_ref(x_142); - x_145 = lean_box(0); + lean_dec_ref(x_4); + x_72 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_68); +x_73 = l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_unbox(x_74); +lean_dec(x_74); +if (x_75 == 0) +{ +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; lean_object* x_86; lean_object* x_87; lean_object* x_99; +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +lean_inc(x_2); +lean_inc(x_68); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_68); +lean_ctor_set(x_77, 1, x_2); +x_78 = l_Lean_Elab_Tactic_setGoals(x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_76); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = lean_unsigned_to_nat(1u); +x_81 = l_Lean_Syntax_getArg(x_1, x_80); +x_82 = l_Lean_Elab_Tactic_saveState___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_79); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +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_146 = x_145; + lean_dec_ref(x_82); + x_85 = lean_box(0); } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_135 = x_147; -x_136 = x_141; -goto block_139; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_99 = l_Lean_Elab_Tactic_evalTactic(x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +if (lean_obj_tag(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; uint8_t x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_85); +lean_dec(x_83); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_68); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_100); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; +} else { + lean_dec_ref(x_101); + x_104 = lean_box(0); +} +x_105 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_70, x_102); +x_106 = 1; +x_107 = lean_box(x_106); +if (lean_is_scalar(x_104)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_104; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_107); +x_3 = x_69; +x_4 = x_108; +x_13 = x_103; +goto _start; +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_99, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_99, 1); +lean_inc(x_111); +lean_dec(x_99); +x_86 = x_110; +x_87 = x_111; +goto block_98; +} +block_98: +{ +uint8_t x_88; +x_88 = l_Lean_Exception_isInterrupt(x_86); +if (x_88 == 0) +{ +uint8_t x_89; +x_89 = l_Lean_Exception_isRuntime(x_86); +if (x_89 == 0) +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_86); +lean_dec(x_85); +x_90 = 0; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_91 = l_Lean_Elab_Tactic_SavedState_restore(x_83, x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_array_push(x_70, x_68); +if (lean_is_scalar(x_72)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_72; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_71); +x_3 = x_69; +x_4 = x_94; +x_13 = x_92; +goto _start; +} +else +{ +lean_object* x_96; +lean_dec(x_83); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_12); +lean_dec(x_11); +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_2); +if (lean_is_scalar(x_85)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_85; + lean_ctor_set_tag(x_96, 1); +} +lean_ctor_set(x_96, 0, x_86); +lean_ctor_set(x_96, 1, x_87); +return x_96; +} +} +else +{ +lean_object* x_97; +lean_dec(x_83); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_12); +lean_dec(x_11); +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_2); +if (lean_is_scalar(x_85)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_85; + lean_ctor_set_tag(x_97, 1); +} +lean_ctor_set(x_97, 0, x_86); +lean_ctor_set(x_97, 1, x_87); +return x_97; +} +} +} +else +{ +lean_object* x_112; lean_object* x_113; +lean_dec(x_68); +x_112 = lean_ctor_get(x_73, 1); +lean_inc(x_112); +lean_dec(x_73); +if (lean_is_scalar(x_72)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_72; +} +lean_ctor_set(x_113, 0, x_70); +lean_ctor_set(x_113, 1, x_71); +x_3 = x_69; +x_4 = x_113; +x_13 = x_112; +goto _start; } } } @@ -16987,7 +23239,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(191u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -16999,7 +23251,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(206u); +x_1 = lean_unsigned_to_nat(282u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17027,7 +23279,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(191u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17039,7 +23291,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(191u); +x_1 = lean_unsigned_to_nat(267u); x_2 = lean_unsigned_to_nat(57u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17085,25 +23337,25 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_3370_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__4; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq(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; x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_13 = l_Lean_Elab_Tactic_evalTactic(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; +x_13 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1(x_11, x_12, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticSeq___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_Lean_Elab_Tactic_evalTacticSeq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_11; -} -} static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1() { _start: { @@ -17128,7 +23380,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeq___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticSeq), 10, 0); return x_1; } } @@ -17148,7 +23400,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(208u); +x_1 = lean_unsigned_to_nat(285u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17160,8 +23412,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(209u); -x_2 = lean_unsigned_to_nat(19u); +x_1 = lean_unsigned_to_nat(286u); +x_2 = lean_unsigned_to_nat(58u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -17175,7 +23427,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__1; x_2 = lean_unsigned_to_nat(28u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRange___closed__2; -x_4 = lean_unsigned_to_nat(19u); +x_4 = lean_unsigned_to_nat(58u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -17188,7 +23440,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(208u); +x_1 = lean_unsigned_to_nat(285u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17200,7 +23452,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(208u); +x_1 = lean_unsigned_to_nat(285u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17310,22 +23562,26 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 0); x_22 = lean_ctor_get(x_19, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -uint8_t x_24; lean_object* x_25; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +uint8_t x_25; lean_object* x_26; lean_free_object(x_19); -x_24 = 0; +x_25 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_25 = l_Lean_Elab_Tactic_SavedState_restore(x_17, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +x_26 = l_Lean_Elab_Tactic_SavedState_restore(x_17, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); if (lean_obj_tag(x_21) == 0) { -uint8_t x_26; +uint8_t x_27; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17335,44 +23591,44 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set_tag(x_25, 1); -lean_ctor_set(x_25, 0, x_21); -return x_25; +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set_tag(x_26, 1); +lean_ctor_set(x_26, 0, x_21); +return x_26; } else { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_21); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } else { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_25); -if (x_30 == 0) +uint8_t x_31; +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_25, 1); -x_32 = lean_ctor_get(x_25, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_21, 0); -lean_inc(x_33); -x_34 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; -x_35 = lean_nat_dec_eq(x_34, x_33); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_32 = lean_ctor_get(x_26, 1); +x_33 = lean_ctor_get(x_26, 0); lean_dec(x_33); -if (x_35 == 0) +x_34 = lean_ctor_get(x_21, 0); +lean_inc(x_34); +x_35 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; +x_36 = lean_nat_dec_eq(x_35, x_34); +lean_dec(x_34); +if (x_36 == 0) { lean_dec(x_10); lean_dec(x_9); @@ -17383,37 +23639,37 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_ctor_set_tag(x_25, 1); -lean_ctor_set(x_25, 0, x_21); -return x_25; +lean_ctor_set_tag(x_26, 1); +lean_ctor_set(x_26, 0, x_21); +return x_26; } else { -lean_object* x_36; lean_object* x_37; -lean_free_object(x_25); +lean_object* x_37; lean_object* x_38; +lean_free_object(x_26); lean_dec(x_21); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_2, x_36); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_2, x_37); lean_dec(x_2); -x_2 = x_37; -x_11 = x_31; +x_2 = x_38; +x_11 = x_32; goto _start; } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_ctor_get(x_25, 1); -lean_inc(x_39); -lean_dec(x_25); -x_40 = lean_ctor_get(x_21, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_26, 1); lean_inc(x_40); -x_41 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; -x_42 = lean_nat_dec_eq(x_41, x_40); -lean_dec(x_40); -if (x_42 == 0) +lean_dec(x_26); +x_41 = lean_ctor_get(x_21, 0); +lean_inc(x_41); +x_42 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; +x_43 = lean_nat_dec_eq(x_42, x_41); +lean_dec(x_41); +if (x_43 == 0) { -lean_object* x_43; +lean_object* x_44; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17423,20 +23679,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_21); -lean_ctor_set(x_43, 1, x_39); -return x_43; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_21); +lean_ctor_set(x_44, 1, x_40); +return x_44; } else { -lean_object* x_44; lean_object* x_45; +lean_object* x_45; lean_object* x_46; lean_dec(x_21); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_add(x_2, x_44); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_add(x_2, x_45); lean_dec(x_2); -x_2 = x_45; -x_11 = x_39; +x_2 = x_46; +x_11 = x_40; goto _start; } } @@ -17459,113 +23715,6 @@ return x_19; } else { -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = lean_ctor_get(x_19, 0); -x_48 = lean_ctor_get(x_19, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_19); -x_49 = l_Lean_Exception_isRuntime(x_47); -if (x_49 == 0) -{ -uint8_t x_50; lean_object* x_51; -x_50 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_51 = l_Lean_Elab_Tactic_SavedState_restore(x_17, x_50, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_48); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_53 = x_51; -} else { - lean_dec_ref(x_51); - x_53 = lean_box(0); -} -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; - lean_ctor_set_tag(x_54, 1); -} -lean_ctor_set(x_54, 0, x_47); -lean_ctor_set(x_54, 1, x_52); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_55 = lean_ctor_get(x_51, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_56 = x_51; -} else { - lean_dec_ref(x_51); - x_56 = lean_box(0); -} -x_57 = lean_ctor_get(x_47, 0); -lean_inc(x_57); -x_58 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; -x_59 = lean_nat_dec_eq(x_58, x_57); -lean_dec(x_57); -if (x_59 == 0) -{ -lean_object* x_60; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (lean_is_scalar(x_56)) { - x_60 = lean_alloc_ctor(1, 2, 0); -} else { - x_60 = x_56; - lean_ctor_set_tag(x_60, 1); -} -lean_ctor_set(x_60, 0, x_47); -lean_ctor_set(x_60, 1, x_55); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_56); -lean_dec(x_47); -x_61 = lean_unsigned_to_nat(1u); -x_62 = lean_nat_add(x_2, x_61); -lean_dec(x_2); -x_2 = x_62; -x_11 = x_55; -goto _start; -} -} -} -else -{ -lean_object* x_64; lean_dec(x_17); lean_dec(x_10); lean_dec(x_9); @@ -17576,10 +23725,155 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_47); -lean_ctor_set(x_64, 1, x_48); -return x_64; +return x_19; +} +} +else +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = lean_ctor_get(x_19, 0); +x_49 = lean_ctor_get(x_19, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_19); +x_50 = l_Lean_Exception_isInterrupt(x_48); +if (x_50 == 0) +{ +uint8_t x_51; +x_51 = l_Lean_Exception_isRuntime(x_48); +if (x_51 == 0) +{ +uint8_t x_52; lean_object* x_53; +x_52 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_53 = l_Lean_Elab_Tactic_SavedState_restore(x_17, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; +} else { + lean_dec_ref(x_53); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; + lean_ctor_set_tag(x_56, 1); +} +lean_ctor_set(x_56, 0, x_48); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_58 = x_53; +} else { + lean_dec_ref(x_53); + x_58 = lean_box(0); +} +x_59 = lean_ctor_get(x_48, 0); +lean_inc(x_59); +x_60 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalOpen___spec__4___rarg___closed__1; +x_61 = lean_nat_dec_eq(x_60, x_59); +lean_dec(x_59); +if (x_61 == 0) +{ +lean_object* x_62; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_58; + lean_ctor_set_tag(x_62, 1); +} +lean_ctor_set(x_62, 0, x_48); +lean_ctor_set(x_62, 1, x_57); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_58); +lean_dec(x_48); +x_63 = lean_unsigned_to_nat(1u); +x_64 = lean_nat_add(x_2, x_63); +lean_dec(x_2); +x_2 = x_64; +x_11 = x_57; +goto _start; +} +} +} +else +{ +lean_object* x_66; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_48); +lean_ctor_set(x_66, 1, x_49); +return x_66; +} +} +else +{ +lean_object* x_67; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_48); +lean_ctor_set(x_67, 1, x_49); +return x_67; } } } @@ -17677,7 +23971,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalChoice_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(220u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17689,7 +23983,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalChoice_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(221u); +x_1 = lean_unsigned_to_nat(298u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17717,7 +24011,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalChoice_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(220u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17729,7 +24023,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalChoice_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(220u); +x_1 = lean_unsigned_to_nat(297u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17875,7 +24169,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(223u); +x_1 = lean_unsigned_to_nat(300u); x_2 = lean_unsigned_to_nat(23u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17887,7 +24181,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(223u); +x_1 = lean_unsigned_to_nat(300u); x_2 = lean_unsigned_to_nat(64u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17915,7 +24209,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(223u); +x_1 = lean_unsigned_to_nat(300u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -17927,7 +24221,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSkip_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(223u); +x_1 = lean_unsigned_to_nat(300u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18086,7 +24380,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(302u); x_2 = lean_unsigned_to_nat(26u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18098,7 +24392,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(226u); +x_1 = lean_unsigned_to_nat(303u); x_2 = lean_unsigned_to_nat(61u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18126,7 +24420,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(302u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18138,7 +24432,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(225u); +x_1 = lean_unsigned_to_nat(302u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18250,25 +24544,29 @@ if (x_24 == 0) lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_21, 0); x_26 = lean_ctor_get(x_21, 1); -x_27 = l_Lean_Exception_isRuntime(x_25); +x_27 = l_Lean_Exception_isInterrupt(x_25); if (x_27 == 0) { -uint8_t x_28; lean_object* x_29; lean_object* x_30; +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_free_object(x_21); lean_dec(x_25); -x_28 = 0; +x_29 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_11 = x_28; -x_12 = x_30; +x_30 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_11 = x_29; +x_12 = x_31; goto block_17; } else @@ -18287,35 +24585,6 @@ return x_21; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_21, 0); -x_32 = lean_ctor_get(x_21, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_21); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) -{ -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -x_34 = 0; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_35 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_32); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_11 = x_34; -x_12 = x_36; -goto block_17; -} -else -{ -lean_object* x_37; lean_dec(x_19); lean_dec(x_9); lean_dec(x_8); @@ -18325,10 +24594,75 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -return x_37; +return x_21; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +x_34 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_32); +x_36 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_37 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_11 = x_36; +x_12 = x_38; +goto block_17; +} +else +{ +lean_object* x_39; +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_33); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_32); +lean_ctor_set(x_40, 1, x_33); +return x_40; } } } @@ -18448,7 +24782,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(228u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18460,7 +24794,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(232u); +x_1 = lean_unsigned_to_nat(309u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18488,7 +24822,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(228u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18500,7 +24834,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(228u); +x_1 = lean_unsigned_to_nat(305u); x_2 = lean_unsigned_to_nat(53u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18846,7 +25180,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(234u); +x_1 = lean_unsigned_to_nat(311u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18858,7 +25192,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(236u); +x_1 = lean_unsigned_to_nat(313u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18886,7 +25220,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(234u); +x_1 = lean_unsigned_to_nat(311u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18898,7 +25232,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(234u); +x_1 = lean_unsigned_to_nat(311u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19027,7 +25361,7 @@ return x_22; } else { -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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_23 = lean_ctor_get(x_8, 0); x_24 = lean_ctor_get(x_8, 1); x_25 = lean_ctor_get(x_8, 2); @@ -19039,7 +25373,10 @@ x_30 = lean_ctor_get(x_8, 7); x_31 = lean_ctor_get(x_8, 8); x_32 = lean_ctor_get(x_8, 9); x_33 = lean_ctor_get(x_8, 10); -x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_35 = lean_ctor_get(x_8, 11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -19052,69 +25389,74 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_8); -x_35 = l_Lean_replaceRef(x_17, x_28); +x_37 = l_Lean_replaceRef(x_17, x_28); lean_dec(x_28); lean_dec(x_17); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); -x_37 = l_Lean_addRawTrace___at_Lean_Elab_Tactic_evalTraceState___spec__1(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_36, x_9, x_10); +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); +x_39 = l_Lean_addRawTrace___at_Lean_Elab_Tactic_evalTraceState___spec__1(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_9, x_10); lean_dec(x_9); -lean_dec(x_36); +lean_dec(x_38); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_37; +return x_39; } } else { -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; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_38 = lean_ctor_get(x_13, 0); -lean_inc(x_38); +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; uint8_t 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; +x_40 = lean_ctor_get(x_13, 0); +lean_inc(x_40); lean_dec(x_13); -x_39 = lean_unsigned_to_nat(0u); -x_40 = l_Lean_Syntax_getArg(x_1, x_39); +x_41 = lean_unsigned_to_nat(0u); +x_42 = l_Lean_Syntax_getArg(x_1, x_41); lean_dec(x_1); -x_41 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_41, 0, x_38); -x_42 = l_Lean_MessageData_ofFormat(x_41); -x_43 = lean_ctor_get(x_8, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_8, 1); -lean_inc(x_44); -x_45 = lean_ctor_get(x_8, 2); +x_43 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_43, 0, x_40); +x_44 = l_Lean_MessageData_ofFormat(x_43); +x_45 = lean_ctor_get(x_8, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_8, 3); +x_46 = lean_ctor_get(x_8, 1); lean_inc(x_46); -x_47 = lean_ctor_get(x_8, 4); +x_47 = lean_ctor_get(x_8, 2); lean_inc(x_47); -x_48 = lean_ctor_get(x_8, 5); +x_48 = lean_ctor_get(x_8, 3); lean_inc(x_48); -x_49 = lean_ctor_get(x_8, 6); +x_49 = lean_ctor_get(x_8, 4); lean_inc(x_49); -x_50 = lean_ctor_get(x_8, 7); +x_50 = lean_ctor_get(x_8, 5); lean_inc(x_50); -x_51 = lean_ctor_get(x_8, 8); +x_51 = lean_ctor_get(x_8, 6); lean_inc(x_51); -x_52 = lean_ctor_get(x_8, 9); +x_52 = lean_ctor_get(x_8, 7); lean_inc(x_52); -x_53 = lean_ctor_get(x_8, 10); +x_53 = lean_ctor_get(x_8, 8); lean_inc(x_53); -x_54 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_54 = lean_ctor_get(x_8, 9); +lean_inc(x_54); +x_55 = lean_ctor_get(x_8, 10); +lean_inc(x_55); +x_56 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_57 = lean_ctor_get(x_8, 11); +lean_inc(x_57); +x_58 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); @@ -19127,41 +25469,44 @@ if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 8); lean_ctor_release(x_8, 9); lean_ctor_release(x_8, 10); - x_55 = x_8; + lean_ctor_release(x_8, 11); + x_59 = x_8; } else { lean_dec_ref(x_8); - x_55 = lean_box(0); + x_59 = lean_box(0); } -x_56 = l_Lean_replaceRef(x_40, x_48); -lean_dec(x_48); -lean_dec(x_40); -if (lean_is_scalar(x_55)) { - x_57 = lean_alloc_ctor(0, 11, 1); +x_60 = l_Lean_replaceRef(x_42, x_50); +lean_dec(x_50); +lean_dec(x_42); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 12, 2); } else { - x_57 = x_55; + x_61 = x_59; } -lean_ctor_set(x_57, 0, x_43); -lean_ctor_set(x_57, 1, x_44); -lean_ctor_set(x_57, 2, x_45); -lean_ctor_set(x_57, 3, x_46); -lean_ctor_set(x_57, 4, x_47); -lean_ctor_set(x_57, 5, x_56); -lean_ctor_set(x_57, 6, x_49); -lean_ctor_set(x_57, 7, x_50); -lean_ctor_set(x_57, 8, x_51); -lean_ctor_set(x_57, 9, x_52); -lean_ctor_set(x_57, 10, x_53); -lean_ctor_set_uint8(x_57, sizeof(void*)*11, x_54); -x_58 = l_Lean_addRawTrace___at_Lean_Elab_Tactic_evalTraceState___spec__1(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_57, x_9, x_10); +lean_ctor_set(x_61, 0, x_45); +lean_ctor_set(x_61, 1, x_46); +lean_ctor_set(x_61, 2, x_47); +lean_ctor_set(x_61, 3, x_48); +lean_ctor_set(x_61, 4, x_49); +lean_ctor_set(x_61, 5, x_60); +lean_ctor_set(x_61, 6, x_51); +lean_ctor_set(x_61, 7, x_52); +lean_ctor_set(x_61, 8, x_53); +lean_ctor_set(x_61, 9, x_54); +lean_ctor_set(x_61, 10, x_55); +lean_ctor_set(x_61, 11, x_57); +lean_ctor_set_uint8(x_61, sizeof(void*)*12, x_56); +lean_ctor_set_uint8(x_61, sizeof(void*)*12 + 1, x_58); +x_62 = l_Lean_addRawTrace___at_Lean_Elab_Tactic_evalTraceState___spec__1(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_61, x_9, x_10); lean_dec(x_9); -lean_dec(x_57); +lean_dec(x_61); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_58; +return x_62; } } } @@ -19246,7 +25591,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19258,7 +25603,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(241u); +x_1 = lean_unsigned_to_nat(318u); x_2 = lean_unsigned_to_nat(49u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19286,7 +25631,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19298,7 +25643,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(238u); +x_1 = lean_unsigned_to_nat(315u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19752,7 +26097,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(243u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19764,7 +26109,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(247u); +x_1 = lean_unsigned_to_nat(324u); x_2 = lean_unsigned_to_nat(90u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19792,7 +26137,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(243u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19804,7 +26149,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(243u); +x_1 = lean_unsigned_to_nat(320u); x_2 = lean_unsigned_to_nat(66u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20110,7 +26455,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(326u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20122,7 +26467,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(250u); +x_1 = lean_unsigned_to_nat(327u); x_2 = lean_unsigned_to_nat(63u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20150,7 +26495,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(326u); x_2 = lean_unsigned_to_nat(55u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20162,7 +26507,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(249u); +x_1 = lean_unsigned_to_nat(326u); x_2 = lean_unsigned_to_nat(72u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20452,7 +26797,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(329u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20464,7 +26809,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(253u); +x_1 = lean_unsigned_to_nat(330u); x_2 = lean_unsigned_to_nat(54u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20492,7 +26837,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(329u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20504,7 +26849,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(252u); +x_1 = lean_unsigned_to_nat(329u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -21480,7 +27825,7 @@ lean_inc(x_15); lean_ctor_set_tag(x_16, 2); lean_ctor_set(x_16, 1, x_20); lean_ctor_set(x_16, 0, x_15); -x_21 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_21 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_15); x_22 = l_Lean_Syntax_node1(x_15, x_21, x_2); lean_inc(x_16); @@ -21519,7 +27864,7 @@ lean_inc(x_15); x_36 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_36, 0, x_15); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_37 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_15); x_38 = l_Lean_Syntax_node1(x_15, x_37, x_2); lean_inc(x_36); @@ -21951,7 +28296,7 @@ x_27 = l_Array_extract___rarg(x_25, x_14, x_26); lean_dec(x_26); lean_dec(x_25); x_28 = lean_box(2); -x_29 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_29 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; x_30 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -22017,7 +28362,7 @@ lean_ctor_set(x_55, 0, x_42); lean_ctor_set(x_55, 1, x_54); lean_ctor_set(x_55, 2, x_52); lean_ctor_set(x_55, 3, x_53); -x_56 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_56 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_55); lean_inc(x_42); x_57 = l_Lean_Syntax_node1(x_42, x_56, x_55); @@ -22159,7 +28504,7 @@ lean_ctor_set(x_121, 0, x_42); lean_ctor_set(x_121, 1, x_120); lean_ctor_set(x_121, 2, x_118); lean_ctor_set(x_121, 3, x_119); -x_122 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_122 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_121); lean_inc(x_42); x_123 = l_Lean_Syntax_node1(x_42, x_122, x_121); @@ -22317,7 +28662,7 @@ lean_ctor_set(x_194, 0, x_181); lean_ctor_set(x_194, 1, x_193); lean_ctor_set(x_194, 2, x_191); lean_ctor_set(x_194, 3, x_192); -x_195 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_195 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_194); lean_inc(x_181); x_196 = l_Lean_Syntax_node1(x_181, x_195, x_194); @@ -22459,7 +28804,7 @@ lean_ctor_set(x_260, 0, x_181); lean_ctor_set(x_260, 1, x_259); lean_ctor_set(x_260, 2, x_257); lean_ctor_set(x_260, 3, x_258); -x_261 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_261 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_260); lean_inc(x_181); x_262 = l_Lean_Syntax_node1(x_181, x_261, x_260); @@ -22619,7 +28964,7 @@ lean_ctor_set(x_334, 0, x_321); lean_ctor_set(x_334, 1, x_333); lean_ctor_set(x_334, 2, x_331); lean_ctor_set(x_334, 3, x_332); -x_335 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_335 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_334); lean_inc(x_321); x_336 = l_Lean_Syntax_node1(x_321, x_335, x_334); @@ -22761,7 +29106,7 @@ lean_ctor_set(x_400, 0, x_321); lean_ctor_set(x_400, 1, x_399); lean_ctor_set(x_400, 2, x_397); lean_ctor_set(x_400, 3, x_398); -x_401 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_401 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_400); lean_inc(x_321); x_402 = l_Lean_Syntax_node1(x_321, x_401, x_400); @@ -22996,7 +29341,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(255u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23008,7 +29353,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(281u); +x_1 = lean_unsigned_to_nat(358u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23036,7 +29381,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(255u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23048,7 +29393,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(255u); +x_1 = lean_unsigned_to_nat(332u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23116,25 +29461,27 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t 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_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_17 = lean_ctor_get(x_5, 0); x_18 = lean_ctor_get(x_5, 1); x_19 = lean_ctor_get(x_5, 2); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); x_23 = lean_ctor_get(x_5, 3); x_24 = lean_ctor_get(x_5, 4); x_25 = lean_ctor_get(x_5, 5); x_26 = lean_ctor_get(x_5, 6); -x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4); -x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5); -x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_5, 7); -x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 9); +x_33 = lean_ctor_get(x_5, 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_33); lean_inc(x_32); lean_inc(x_26); lean_inc(x_25); @@ -23145,33 +29492,34 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_5); lean_inc(x_2); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_2); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_19); -x_37 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_37, 0, x_17); -lean_ctor_set(x_37, 1, x_18); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_23); -lean_ctor_set(x_37, 4, x_24); -lean_ctor_set(x_37, 5, x_25); -lean_ctor_set(x_37, 6, x_26); -lean_ctor_set(x_37, 7, x_32); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_20); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_21); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_22); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 3, x_27); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 4, x_28); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 5, x_29); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 6, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 9, x_34); -x_38 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_37, x_6, x_7, x_8, x_9, x_10, x_11); -return x_38; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_2); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_19); +x_38 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_38, 0, x_17); +lean_ctor_set(x_38, 1, x_18); +lean_ctor_set(x_38, 2, x_37); +lean_ctor_set(x_38, 3, x_23); +lean_ctor_set(x_38, 4, x_24); +lean_ctor_set(x_38, 5, x_25); +lean_ctor_set(x_38, 6, x_26); +lean_ctor_set(x_38, 7, x_32); +lean_ctor_set(x_38, 8, x_33); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 9, x_35); +x_39 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11); +return x_39; } } } @@ -23307,7 +29655,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(283u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23319,7 +29667,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(286u); +x_1 = lean_unsigned_to_nat(363u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23347,7 +29695,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(283u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23359,7 +29707,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(283u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(66u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24351,7 +30699,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24363,7 +30711,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(300u); +x_1 = lean_unsigned_to_nat(377u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24391,7 +30739,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24403,7 +30751,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(288u); +x_1 = lean_unsigned_to_nat(365u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24716,7 +31064,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(302u); +x_1 = lean_unsigned_to_nat(379u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24728,7 +31076,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(307u); +x_1 = lean_unsigned_to_nat(384u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24756,7 +31104,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(302u); +x_1 = lean_unsigned_to_nat(379u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -24768,7 +31116,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(302u); +x_1 = lean_unsigned_to_nat(379u); x_2 = lean_unsigned_to_nat(58u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25268,7 +31616,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(386u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25280,7 +31628,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(318u); +x_1 = lean_unsigned_to_nat(395u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25308,7 +31656,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(386u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25320,7 +31668,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(309u); +x_1 = lean_unsigned_to_nat(386u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25798,7 +32146,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(404u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25810,7 +32158,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(330u); +x_1 = lean_unsigned_to_nat(407u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25838,7 +32186,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(404u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -25850,7 +32198,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(327u); +x_1 = lean_unsigned_to_nat(404u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26145,7 +32493,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(332u); +x_1 = lean_unsigned_to_nat(409u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26157,7 +32505,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(333u); +x_1 = lean_unsigned_to_nat(410u); x_2 = lean_unsigned_to_nat(58u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26185,7 +32533,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(332u); +x_1 = lean_unsigned_to_nat(409u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26197,7 +32545,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(332u); +x_1 = lean_unsigned_to_nat(409u); x_2 = lean_unsigned_to_nat(64u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26462,7 +32810,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(335u); +x_1 = lean_unsigned_to_nat(412u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26474,7 +32822,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(336u); +x_1 = lean_unsigned_to_nat(413u); x_2 = lean_unsigned_to_nat(42u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26502,7 +32850,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(335u); +x_1 = lean_unsigned_to_nat(412u); x_2 = lean_unsigned_to_nat(50u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -26514,7 +32862,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstEqs_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(335u); +x_1 = lean_unsigned_to_nat(412u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -33836,54 +40184,55 @@ return x_35; } else { -lean_object* x_36; lean_object* x_37; +lean_object* x_36; lean_object* x_37; lean_object* x_38; x_36 = l_Lean_Syntax_getId(x_25); lean_dec(x_25); -lean_inc(x_36); +x_37 = lean_erase_macro_scopes(x_36); +lean_inc(x_37); lean_inc(x_12); -x_37 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f(x_12, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); +x_38 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f(x_12, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); 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_37, 1); +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound(x_12, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_39); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +if (lean_obj_tag(x_39) == 0) { -return x_40; +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound(x_12, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +return x_41; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -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; +lean_dec(x_41); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_36); -x_45 = lean_ctor_get(x_37, 1); -lean_inc(x_45); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_37); -x_46 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); lean_inc(x_46); lean_dec(x_38); -x_47 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals___lambda__1(x_12, x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +x_47 = lean_ctor_get(x_39, 0); +lean_inc(x_47); +lean_dec(x_39); +x_48 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals___lambda__1(x_12, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_46); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -33892,13 +40241,13 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_47; +return x_48; } } else { -uint8_t x_48; -lean_dec(x_36); +uint8_t x_49; +lean_dec(x_37); lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -33908,23 +40257,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_48 = !lean_is_exclusive(x_37); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_38); +if (x_49 == 0) { -return x_37; +return x_38; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_38, 0); +x_51 = lean_ctor_get(x_38, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -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; +lean_dec(x_38); +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; } } } @@ -33956,6 +40305,35 @@ lean_dec(x_3); return x_12; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("case", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____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_Elab_Tactic_evalWithAnnotateState___closed__1; +x_2 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__2; +x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Tactic_evalCase___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -34094,11 +40472,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_ev _start: { 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; -x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10; +x_13 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; x_14 = lean_array_push(x_13, x_1); x_15 = lean_array_push(x_14, x_2); x_16 = lean_box(2); -x_17 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_17 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; x_18 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -34117,7 +40495,7 @@ return x_22; } else { -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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_23 = lean_ctor_get(x_10, 0); x_24 = lean_ctor_get(x_10, 1); x_25 = lean_ctor_get(x_10, 2); @@ -34129,7 +40507,10 @@ x_30 = lean_ctor_get(x_10, 7); x_31 = lean_ctor_get(x_10, 8); x_32 = lean_ctor_get(x_10, 9); x_33 = lean_ctor_get(x_10, 10); -x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_35 = lean_ctor_get(x_10, 11); +x_36 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -34142,24 +40523,26 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_10); -x_35 = l_Lean_replaceRef(x_18, x_28); +x_37 = l_Lean_replaceRef(x_18, x_28); lean_dec(x_28); lean_dec(x_18); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); -x_37 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36, x_11, x_12); -return x_37; +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); +x_39 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38, x_11, x_12); +return x_39; } } } @@ -34263,7 +40646,7 @@ lean_inc(x_8); x_47 = l_Lean_Elab_Tactic_renameInaccessibles(x_45, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_43); if (lean_obj_tag(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; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +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; x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -34283,15 +40666,19 @@ x_54 = l_Lean_MVarId_setTag(x_48, x_53, x_12, x_13, x_14, x_15, x_52); x_55 = lean_ctor_get(x_54, 1); lean_inc(x_55); lean_dec(x_54); -lean_inc(x_3); -x_56 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_56, 0, x_3); +x_56 = lean_unsigned_to_nat(3u); +x_57 = l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; lean_inc(x_1); -x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); -lean_closure_set(x_57, 0, x_1); -lean_closure_set(x_57, 1, x_56); -x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); -lean_closure_set(x_58, 0, x_57); +x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1), 12, 3); +lean_closure_set(x_58, 0, x_56); +lean_closure_set(x_58, 1, x_57); +lean_closure_set(x_58, 2, x_1); +lean_inc(x_1); +x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_59, 0, x_1); +lean_closure_set(x_59, 1, x_58); +x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); +lean_closure_set(x_60, 0, x_59); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -34302,26 +40689,26 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_3); lean_inc(x_2); -x_59 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_58, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_55); -if (lean_obj_tag(x_59) == 0) +x_61 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_60, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_55); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Lean_Elab_Tactic_setGoals(x_46, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_60); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); lean_dec(x_61); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_7); -x_20 = x_63; -x_21 = x_62; +x_63 = l_Lean_Elab_Tactic_setGoals(x_46, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_7); +x_20 = x_65; +x_21 = x_64; goto block_28; } else { -uint8_t x_64; +uint8_t x_66; lean_dec(x_46); lean_dec(x_7); lean_dec(x_15); @@ -34335,29 +40722,29 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_59); -if (x_64 == 0) +x_66 = !lean_is_exclusive(x_61); +if (x_66 == 0) { -return x_59; +return x_61; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_59, 0); -x_66 = lean_ctor_get(x_59, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_59); -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_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_61, 0); +x_68 = lean_ctor_get(x_61, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_61); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -uint8_t x_68; +uint8_t x_70; lean_free_object(x_42); lean_dec(x_46); lean_dec(x_7); @@ -34372,33 +40759,33 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_47); -if (x_68 == 0) +x_70 = !lean_is_exclusive(x_47); +if (x_70 == 0) { return x_47; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_47, 0); -x_70 = lean_ctor_get(x_47, 1); -lean_inc(x_70); -lean_inc(x_69); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_47, 0); +x_72 = lean_ctor_get(x_47, 1); +lean_inc(x_72); +lean_inc(x_71); lean_dec(x_47); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_42, 0); -x_73 = lean_ctor_get(x_42, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_42, 0); +x_75 = lean_ctor_get(x_42, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_42); lean_inc(x_15); lean_inc(x_14); @@ -34408,38 +40795,42 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_74 = l_Lean_Elab_Tactic_renameInaccessibles(x_72, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_43); -if (lean_obj_tag(x_74) == 0) +x_76 = l_Lean_Elab_Tactic_renameInaccessibles(x_74, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_43); +if (lean_obj_tag(x_76) == 0) { -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; lean_object* x_86; lean_object* x_87; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_box(0); -lean_inc(x_75); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_Elab_Tactic_setGoals(x_78, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_76); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = lean_box(0); -x_82 = l_Lean_MVarId_setTag(x_75, x_81, x_12, x_13, x_14, x_15, x_80); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -lean_inc(x_3); -x_84 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_84, 0, x_3); +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; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_box(0); +lean_inc(x_77); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_79); +x_81 = l_Lean_Elab_Tactic_setGoals(x_80, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_78); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); +x_83 = lean_box(0); +x_84 = l_Lean_MVarId_setTag(x_77, x_83, x_12, x_13, x_14, x_15, x_82); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +x_86 = lean_unsigned_to_nat(3u); +x_87 = l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; lean_inc(x_1); -x_85 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); -lean_closure_set(x_85, 0, x_1); -lean_closure_set(x_85, 1, x_84); -x_86 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); -lean_closure_set(x_86, 0, x_85); +x_88 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1), 12, 3); +lean_closure_set(x_88, 0, x_86); +lean_closure_set(x_88, 1, x_87); +lean_closure_set(x_88, 2, x_1); +lean_inc(x_1); +x_89 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_89, 0, x_1); +lean_closure_set(x_89, 1, x_88); +x_90 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); +lean_closure_set(x_90, 0, x_89); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -34450,65 +40841,27 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_3); lean_inc(x_2); -x_87 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_86, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_83); -if (lean_obj_tag(x_87) == 0) +x_91 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_90, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_85); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = l_Lean_Elab_Tactic_setGoals(x_73, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_88); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_7); -x_20 = x_91; -x_21 = x_90; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = l_Lean_Elab_Tactic_setGoals(x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_92); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_7); +x_20 = x_95; +x_21 = x_94; goto block_28; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -lean_dec(x_73); -lean_dec(x_7); -lean_dec(x_15); -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_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_92 = lean_ctor_get(x_87, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_87, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_94 = x_87; -} else { - lean_dec_ref(x_87); - x_94 = lean_box(0); -} -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); -} else { - x_95 = x_94; -} -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; -} -} -else -{ lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_73); +lean_dec(x_75); lean_dec(x_7); lean_dec(x_15); lean_dec(x_14); @@ -34521,16 +40874,16 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_96 = lean_ctor_get(x_74, 0); +x_96 = lean_ctor_get(x_91, 0); lean_inc(x_96); -x_97 = lean_ctor_get(x_74, 1); +x_97 = lean_ctor_get(x_91, 1); lean_inc(x_97); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_98 = x_74; +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_98 = x_91; } else { - lean_dec_ref(x_74); + lean_dec_ref(x_91); x_98 = lean_box(0); } if (lean_is_scalar(x_98)) { @@ -34543,10 +40896,48 @@ lean_ctor_set(x_99, 1, x_97); return x_99; } } +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_75); +lean_dec(x_7); +lean_dec(x_15); +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_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_100 = lean_ctor_get(x_76, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_76, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_102 = x_76; +} else { + lean_dec_ref(x_76); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} } else { -uint8_t x_100; +uint8_t x_104; lean_dec(x_7); lean_dec(x_38); lean_dec(x_15); @@ -34560,38 +40951,38 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_100 = !lean_is_exclusive(x_41); -if (x_100 == 0) +x_104 = !lean_is_exclusive(x_41); +if (x_104 == 0) { return x_41; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_41, 0); -x_102 = lean_ctor_get(x_41, 1); -lean_inc(x_102); -lean_inc(x_101); +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_41, 0); +x_106 = lean_ctor_get(x_41, 1); +lean_inc(x_106); +lean_inc(x_105); lean_dec(x_41); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; } } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_7); -x_104 = lean_array_fget(x_29, x_30); -x_105 = lean_unsigned_to_nat(1u); -x_106 = lean_nat_add(x_30, x_105); +x_108 = lean_array_fget(x_29, x_30); +x_109 = lean_unsigned_to_nat(1u); +x_110 = lean_nat_add(x_30, x_109); lean_dec(x_30); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_29); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_31); +x_111 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_111, 0, x_29); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_111, 2, x_31); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -34600,72 +40991,76 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_108 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals(x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_108) == 0) +x_112 = l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals(x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_112) == 0) { -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_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = lean_ctor_get(x_109, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_113 = x_109; -} else { - lean_dec_ref(x_109); - x_113 = lean_box(0); -} -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_114 = l_Lean_Elab_Tactic_renameInaccessibles(x_111, x_104, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_110); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_115 = lean_ctor_get(x_114, 0); +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_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_115 = lean_ctor_get(x_113, 0); lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); +x_116 = lean_ctor_get(x_113, 1); lean_inc(x_116); -lean_dec(x_114); -x_117 = lean_box(0); -lean_inc(x_115); -if (lean_is_scalar(x_113)) { - x_118 = lean_alloc_ctor(1, 2, 0); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_117 = x_113; } else { - x_118 = x_113; - lean_ctor_set_tag(x_118, 1); + lean_dec_ref(x_113); + x_117 = lean_box(0); } -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_117); -x_119 = l_Lean_Elab_Tactic_setGoals(x_118, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_116); -x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_118 = l_Lean_Elab_Tactic_renameInaccessibles(x_115, x_108, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_114); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); lean_inc(x_120); -lean_dec(x_119); +lean_dec(x_118); x_121 = lean_box(0); -x_122 = l_Lean_MVarId_setTag(x_115, x_121, x_12, x_13, x_14, x_15, x_120); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec(x_122); -lean_inc(x_3); -x_124 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_124, 0, x_3); +lean_inc(x_119); +if (lean_is_scalar(x_117)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_117; + lean_ctor_set_tag(x_122, 1); +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_Elab_Tactic_setGoals(x_122, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_120); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); +x_125 = lean_box(0); +x_126 = l_Lean_MVarId_setTag(x_119, x_125, x_12, x_13, x_14, x_15, x_124); +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_unsigned_to_nat(3u); +x_129 = l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1; lean_inc(x_1); -x_125 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); -lean_closure_set(x_125, 0, x_1); -lean_closure_set(x_125, 1, x_124); -x_126 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); -lean_closure_set(x_126, 0, x_125); +x_130 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1), 12, 3); +lean_closure_set(x_130, 0, x_128); +lean_closure_set(x_130, 1, x_129); +lean_closure_set(x_130, 2, x_1); +lean_inc(x_1); +x_131 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_131, 0, x_1); +lean_closure_set(x_131, 1, x_130); +x_132 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); +lean_closure_set(x_132, 0, x_131); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -34676,28 +41071,28 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_3); lean_inc(x_2); -x_127 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_126, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_123); -if (lean_obj_tag(x_127) == 0) +x_133 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__5(x_2, x_3, x_132, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_127); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_127, 1); -lean_inc(x_128); -lean_dec(x_127); -x_129 = l_Lean_Elab_Tactic_setGoals(x_112, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_128); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -lean_dec(x_129); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_107); -x_20 = x_131; -x_21 = x_130; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = l_Lean_Elab_Tactic_setGoals(x_116, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_134); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +lean_dec(x_135); +x_137 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_137, 0, x_111); +x_20 = x_137; +x_21 = x_136; goto block_28; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_112); -lean_dec(x_107); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_116); +lean_dec(x_111); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -34709,34 +41104,34 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_132 = lean_ctor_get(x_127, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_127, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_134 = x_127; +x_138 = lean_ctor_get(x_133, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_133, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_140 = x_133; } else { - lean_dec_ref(x_127); - x_134 = lean_box(0); + lean_dec_ref(x_133); + x_140 = lean_box(0); } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(1, 2, 0); } else { - x_135 = x_134; + x_141 = x_140; } -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; +lean_ctor_set(x_141, 0, x_138); +lean_ctor_set(x_141, 1, x_139); +return x_141; } } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -lean_dec(x_113); -lean_dec(x_112); -lean_dec(x_107); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_117); +lean_dec(x_116); +lean_dec(x_111); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -34748,33 +41143,33 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_136 = lean_ctor_get(x_114, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_114, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_138 = x_114; +x_142 = lean_ctor_get(x_118, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_118, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_144 = x_118; } else { - lean_dec_ref(x_114); - x_138 = lean_box(0); + lean_dec_ref(x_118); + x_144 = lean_box(0); } -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); } else { - x_139 = x_138; + x_145 = x_144; } -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_107); -lean_dec(x_104); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_111); +lean_dec(x_108); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -34786,26 +41181,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_140 = lean_ctor_get(x_108, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_108, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_142 = x_108; +x_146 = lean_ctor_get(x_112, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_112, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_148 = x_112; } else { - lean_dec_ref(x_108); - x_142 = lean_box(0); + lean_dec_ref(x_112); + x_148 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_143 = x_142; + x_149 = x_148; } -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_147); +return x_149; } } } @@ -34907,26 +41302,6 @@ static lean_object* _init_l_Lean_Elab_Tactic_evalCase___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("case", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_evalCase___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_Elab_Tactic_evalWithAnnotateState___closed__1; -x_2 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__2; -x_3 = l_Lean_Elab_Tactic_evalWithAnnotateState___closed__3; -x_4 = l_Lean_Elab_Tactic_evalCase___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_evalCase___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCase___lambda__1), 1, 0); return x_1; } @@ -34935,7 +41310,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCase(lean_object* x_1, lean_obje _start: { lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Elab_Tactic_evalCase___closed__2; +x_11 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2; lean_inc(x_1); x_12 = l_Lean_Syntax_isOfKind(x_1, x_11); if (x_12 == 0) @@ -34965,46 +41340,46 @@ x_18 = lean_unsigned_to_nat(0u); x_19 = lean_nat_dec_lt(x_18, x_17); if (x_19 == 0) { -lean_object* x_53; +lean_object* x_57; lean_dec(x_17); lean_dec(x_16); -x_53 = l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1; -x_20 = x_53; -goto block_52; +x_57 = l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1; +x_20 = x_57; +goto block_56; } else { -uint8_t x_54; -x_54 = lean_nat_dec_le(x_17, x_17); -if (x_54 == 0) +uint8_t x_58; +x_58 = lean_nat_dec_le(x_17, x_17); +if (x_58 == 0) { -lean_object* x_55; +lean_object* x_59; lean_dec(x_17); lean_dec(x_16); -x_55 = l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1; -x_20 = x_55; -goto block_52; +x_59 = l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1; +x_20 = x_59; +goto block_56; } else { -size_t x_56; size_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = 0; -x_57 = lean_usize_of_nat(x_17); +size_t x_60; size_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = 0; +x_61 = lean_usize_of_nat(x_17); lean_dec(x_17); -x_58 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__12; -x_59 = l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(x_16, x_56, x_57, x_58); +x_62 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__12; +x_63 = l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(x_16, x_60, x_61, x_62); lean_dec(x_16); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_20 = x_60; -goto block_52; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_20 = x_64; +goto block_56; } } -block_52: +block_56: { lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_Elab_Tactic_evalCase___closed__3; +x_21 = l_Lean_Elab_Tactic_evalCase___closed__1; x_22 = l_Array_sequenceMap___at_Lean_Elab_Tactic_evalCase___spec__1(x_20, x_21); lean_dec(x_20); if (lean_obj_tag(x_22) == 0) @@ -35063,62 +41438,90 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; size_t x_40; lean_object* x_41; -x_37 = lean_array_get_size(x_28); -x_38 = l_Array_toSubarray___rarg(x_28, x_18, x_37); -x_39 = lean_array_get_size(x_29); -x_40 = lean_usize_of_nat(x_39); -lean_dec(x_39); -x_41 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase___spec__6(x_1, x_31, x_33, x_29, x_40, x_27, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = l_Lean_Syntax_getArg(x_33, x_18); +lean_dec(x_33); +x_38 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__6; +lean_inc(x_37); +x_39 = l_Lean_Syntax_isOfKind(x_37, x_38); +if (x_39 == 0) +{ +lean_object* x_40; +lean_dec(x_37); +lean_dec(x_31); lean_dec(x_29); -if (lean_obj_tag(x_41) == 0) +lean_dec(x_28); +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_40 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___rarg(x_10); +return x_40; +} +else { -uint8_t x_42; -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_object* x_41; lean_object* x_42; lean_object* x_43; size_t x_44; lean_object* x_45; +x_41 = lean_array_get_size(x_28); +x_42 = l_Array_toSubarray___rarg(x_28, x_18, x_41); +x_43 = lean_array_get_size(x_29); +x_44 = lean_usize_of_nat(x_43); lean_dec(x_43); -x_44 = lean_box(0); -lean_ctor_set(x_41, 0, x_44); -return x_41; -} -else +x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalCase___spec__6(x_1, x_31, x_37, x_29, x_44, x_27, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_29); +if (lean_obj_tag(x_45) == 0) { -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(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -else +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -uint8_t x_48; -x_48 = !lean_is_exclusive(x_41); -if (x_48 == 0) -{ -return x_41; +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +x_48 = lean_box(0); +lean_ctor_set(x_45, 0, x_48); +return x_45; } else { lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_41, 0); -x_50 = lean_ctor_get(x_41, 1); -lean_inc(x_50); +x_49 = lean_ctor_get(x_45, 1); lean_inc(x_49); -lean_dec(x_41); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); +lean_dec(x_45); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); return x_51; } } +else +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_45); +if (x_52 == 0) +{ +return x_45; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_45, 0); +x_54 = lean_ctor_get(x_45, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_45); +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; +} +} +} } } } @@ -35213,7 +41616,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_2 = l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__4; -x_3 = l_Lean_Elab_Tactic_evalCase___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__2; x_5 = l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__3; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); @@ -35224,7 +41627,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(430u); +x_1 = lean_unsigned_to_nat(507u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35236,7 +41639,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(440u); +x_1 = lean_unsigned_to_nat(517u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35264,7 +41667,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(430u); +x_1 = lean_unsigned_to_nat(507u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35276,7 +41679,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(430u); +x_1 = lean_unsigned_to_nat(507u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36836,7 +43239,7 @@ goto block_58; block_58: { lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_Elab_Tactic_evalCase___closed__3; +x_21 = l_Lean_Elab_Tactic_evalCase___closed__1; x_22 = l_Array_sequenceMap___at_Lean_Elab_Tactic_evalCase___spec__1(x_20, x_21); lean_dec(x_20); if (lean_obj_tag(x_22) == 0) @@ -37056,7 +43459,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(442u); +x_1 = lean_unsigned_to_nat(519u); x_2 = lean_unsigned_to_nat(26u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37068,7 +43471,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(457u); +x_1 = lean_unsigned_to_nat(534u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37096,7 +43499,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(442u); +x_1 = lean_unsigned_to_nat(519u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37108,7 +43511,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(442u); +x_1 = lean_unsigned_to_nat(519u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37354,7 +43757,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(459u); +x_1 = lean_unsigned_to_nat(536u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37366,7 +43769,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(461u); +x_1 = lean_unsigned_to_nat(538u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37394,7 +43797,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(459u); +x_1 = lean_unsigned_to_nat(536u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37406,7 +43809,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(459u); +x_1 = lean_unsigned_to_nat(536u); x_2 = lean_unsigned_to_nat(55u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37513,27 +43916,31 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_24, 0); x_27 = lean_ctor_get(x_24, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_free_object(x_24); lean_dec(x_26); -x_29 = 0; +x_30 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_30 = l_Lean_Elab_Tactic_SavedState_restore(x_18, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_nat_add(x_2, x_13); +x_31 = l_Lean_Elab_Tactic_SavedState_restore(x_18, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_nat_add(x_2, x_13); lean_dec(x_2); -x_2 = x_32; -x_11 = x_31; +x_2 = x_33; +x_11 = x_32; goto _start; } else @@ -37553,37 +43960,6 @@ return x_24; } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -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 = l_Lean_Exception_isRuntime(x_34); -if (x_36 == 0) -{ -uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_34); -x_37 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_38 = l_Lean_Elab_Tactic_SavedState_restore(x_18, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_35); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = lean_nat_add(x_2, x_13); -lean_dec(x_2); -x_2 = x_40; -x_11 = x_39; -goto _start; -} -else -{ -lean_object* x_42; lean_dec(x_18); lean_dec(x_10); lean_dec(x_9); @@ -37594,27 +43970,96 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_34); -lean_ctor_set(x_42, 1, x_35); -return x_42; +return x_24; +} +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_24, 0); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_24); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_35); +x_39 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_40 = l_Lean_Elab_Tactic_SavedState_restore(x_18, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_nat_add(x_2, x_13); +lean_dec(x_2); +x_2 = x_42; +x_11 = x_41; +goto _start; +} +else +{ +lean_object* x_44; +lean_dec(x_18); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_35); +lean_ctor_set(x_44, 1, x_36); +return x_44; +} +} +else +{ +lean_object* x_45; +lean_dec(x_18); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_36); +return x_45; } } } } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_43 = lean_ctor_get(x_17, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_17, 1); -lean_inc(x_44); +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_17, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_17, 1); +lean_inc(x_47); lean_dec(x_17); -x_45 = lean_array_fget(x_1, x_2); -x_46 = l_Lean_Syntax_getArg(x_45, x_13); -lean_dec(x_45); -x_47 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_47, 0, x_46); +x_48 = lean_array_fget(x_1, x_2); +x_49 = l_Lean_Syntax_getArg(x_48, x_13); +lean_dec(x_48); +x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); +lean_closure_set(x_50, 0, x_49); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -37623,10 +44068,10 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_48 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -if (lean_obj_tag(x_48) == 0) +x_51 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_50, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +if (lean_obj_tag(x_51) == 0) { -lean_dec(x_43); +lean_dec(x_46); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -37636,89 +44081,47 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_48; +return x_51; } else { -uint8_t x_49; -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -x_52 = l_Lean_Exception_isRuntime(x_50); +uint8_t x_52; +x_52 = !lean_is_exclusive(x_51); if (x_52 == 0) { -uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_free_object(x_48); -lean_dec(x_50); -x_53 = 0; +lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_53 = lean_ctor_get(x_51, 0); +x_54 = lean_ctor_get(x_51, 1); +x_55 = l_Lean_Exception_isInterrupt(x_53); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = l_Lean_Exception_isRuntime(x_53); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_free_object(x_51); +lean_dec(x_53); +x_57 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_54 = l_Lean_Elab_Tactic_SavedState_restore(x_43, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_51); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_nat_add(x_2, x_13); -lean_dec(x_2); -x_2 = x_56; -x_11 = x_55; -goto _start; -} -else -{ -lean_dec(x_43); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_48; -} -} -else -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_48, 0); -x_59 = lean_ctor_get(x_48, 1); +x_58 = l_Lean_Elab_Tactic_SavedState_restore(x_46, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +x_59 = lean_ctor_get(x_58, 1); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_48); -x_60 = l_Lean_Exception_isRuntime(x_58); -if (x_60 == 0) -{ -uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_58); -x_61 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_62 = l_Lean_Elab_Tactic_SavedState_restore(x_43, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = lean_nat_add(x_2, x_13); +x_60 = lean_nat_add(x_2, x_13); lean_dec(x_2); -x_2 = x_64; -x_11 = x_63; +x_2 = x_60; +x_11 = x_59; goto _start; } else { -lean_object* x_66; -lean_dec(x_43); +lean_dec(x_46); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -37728,40 +44131,124 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_58); -lean_ctor_set(x_66, 1, x_59); -return x_66; -} -} -} +return x_51; } } else { -uint8_t x_67; -x_67 = lean_nat_dec_lt(x_2, x_12); -lean_dec(x_12); -if (x_67 == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_68 = l_Lean_instInhabitedSyntax; -x_69 = l___private_Init_GetElem_0__outOfBounds___rarg(x_68); -x_70 = l_Lean_Syntax_getArg(x_69, x_13); -lean_dec(x_69); -x_71 = l_Lean_Elab_Tactic_evalTactic(x_70, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_51; +} +} +else +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_51, 0); +x_63 = lean_ctor_get(x_51, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_51); +x_64 = l_Lean_Exception_isInterrupt(x_62); +if (x_64 == 0) +{ +uint8_t x_65; +x_65 = l_Lean_Exception_isRuntime(x_62); +if (x_65 == 0) +{ +uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_62); +x_66 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_67 = l_Lean_Elab_Tactic_SavedState_restore(x_46, x_66, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_63); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_nat_add(x_2, x_13); +lean_dec(x_2); +x_2 = x_69; +x_11 = x_68; +goto _start; +} +else +{ +lean_object* x_71; +lean_dec(x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_62); +lean_ctor_set(x_71, 1, x_63); return x_71; } +} else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_array_fget(x_1, x_2); +lean_object* x_72; +lean_dec(x_46); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_73 = l_Lean_Syntax_getArg(x_72, x_13); -lean_dec(x_72); -x_74 = l_Lean_Elab_Tactic_evalTactic(x_73, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_74; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_62); +lean_ctor_set(x_72, 1, x_63); +return x_72; +} +} +} +} +} +else +{ +uint8_t x_73; +x_73 = lean_nat_dec_lt(x_2, x_12); +lean_dec(x_12); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_2); +x_74 = l_Lean_instInhabitedSyntax; +x_75 = l___private_Init_GetElem_0__outOfBounds___rarg(x_74); +x_76 = l_Lean_Syntax_getArg(x_75, x_13); +lean_dec(x_75); +x_77 = l_Lean_Elab_Tactic_evalTactic(x_76, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_array_fget(x_1, x_2); +lean_dec(x_2); +x_79 = l_Lean_Syntax_getArg(x_78, x_13); +lean_dec(x_78); +x_80 = l_Lean_Elab_Tactic_evalTactic(x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_80; } } } @@ -37953,7 +44440,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(463u); +x_1 = lean_unsigned_to_nat(540u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37965,7 +44452,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(472u); +x_1 = lean_unsigned_to_nat(549u); x_2 = lean_unsigned_to_nat(48u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -37993,7 +44480,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(463u); +x_1 = lean_unsigned_to_nat(540u); x_2 = lean_unsigned_to_nat(38u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38005,7 +44492,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(463u); +x_1 = lean_unsigned_to_nat(540u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38416,7 +44903,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(474u); +x_1 = lean_unsigned_to_nat(551u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38428,7 +44915,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(480u); +x_1 = lean_unsigned_to_nat(557u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38456,7 +44943,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(474u); +x_1 = lean_unsigned_to_nat(551u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38468,7 +44955,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(474u); +x_1 = lean_unsigned_to_nat(551u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38658,7 +45145,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(482u); +x_1 = lean_unsigned_to_nat(559u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38670,7 +45157,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(485u); +x_1 = lean_unsigned_to_nat(562u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38698,7 +45185,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(482u); +x_1 = lean_unsigned_to_nat(559u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38710,7 +45197,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(482u); +x_1 = lean_unsigned_to_nat(559u); x_2 = lean_unsigned_to_nat(57u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38881,7 +45368,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(487u); +x_1 = lean_unsigned_to_nat(564u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38893,7 +45380,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(490u); +x_1 = lean_unsigned_to_nat(567u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38921,7 +45408,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(487u); +x_1 = lean_unsigned_to_nat(564u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -38933,7 +45420,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(487u); +x_1 = lean_unsigned_to_nat(564u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39247,7 +45734,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(492u); +x_1 = lean_unsigned_to_nat(569u); x_2 = lean_unsigned_to_nat(23u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39259,7 +45746,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(493u); +x_1 = lean_unsigned_to_nat(570u); x_2 = lean_unsigned_to_nat(61u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39287,7 +45774,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(492u); +x_1 = lean_unsigned_to_nat(569u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39299,7 +45786,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalLeft_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(492u); +x_1 = lean_unsigned_to_nat(569u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39603,7 +46090,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(495u); +x_1 = lean_unsigned_to_nat(572u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39615,7 +46102,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(496u); +x_1 = lean_unsigned_to_nat(573u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39643,7 +46130,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(495u); +x_1 = lean_unsigned_to_nat(572u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -39655,7 +46142,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRight_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(495u); +x_1 = lean_unsigned_to_nat(572u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40145,7 +46632,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_evalReplace___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10; +x_1 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1; x_2 = lean_box(0); x_3 = lean_array_push(x_1, x_2); return x_3; @@ -40204,7 +46691,7 @@ x_19 = l_Lean_Elab_Tactic_evalReplace___closed__5; lean_inc(x_15); x_20 = lean_array_push(x_19, x_15); x_21 = lean_box(2); -x_22 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_22 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; x_23 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -40292,7 +46779,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(498u); +x_1 = lean_unsigned_to_nat(575u); x_2 = lean_unsigned_to_nat(26u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40304,7 +46791,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(510u); +x_1 = lean_unsigned_to_nat(587u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40332,7 +46819,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(498u); +x_1 = lean_unsigned_to_nat(575u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40344,7 +46831,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalReplace_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(498u); +x_1 = lean_unsigned_to_nat(575u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40660,7 +47147,7 @@ lean_ctor_set(x_20, 0, x_18); x_32 = l_Lean_Elab_Tactic_evalRunTac___closed__13; lean_inc(x_18); x_33 = l_Lean_Syntax_node2(x_18, x_32, x_20, x_15); -x_34 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_34 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_18); x_35 = l_Lean_Syntax_node1(x_18, x_34, x_33); x_36 = l_Lean_Elab_Tactic_evalRunTac___closed__4; @@ -40744,7 +47231,7 @@ lean_ctor_set(x_56, 1, x_55); x_57 = l_Lean_Elab_Tactic_evalRunTac___closed__13; lean_inc(x_18); x_58 = l_Lean_Syntax_node2(x_18, x_57, x_56, x_15); -x_59 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9; +x_59 = l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2; lean_inc(x_18); x_60 = l_Lean_Syntax_node1(x_18, x_59, x_58); x_61 = l_Lean_Elab_Tactic_evalRunTac___closed__4; @@ -40847,7 +47334,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(512u); +x_1 = lean_unsigned_to_nat(589u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40859,7 +47346,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(517u); +x_1 = lean_unsigned_to_nat(594u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40887,7 +47374,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(512u); +x_1 = lean_unsigned_to_nat(589u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -40899,7 +47386,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRunTac_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(512u); +x_1 = lean_unsigned_to_nat(589u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -41068,8 +47555,18 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange___closed if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalDone_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___closed__1); +}l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1 = _init_l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Core_withRestoreOrSaveFull___at_Lean_Elab_Tactic_evalSepTactics_goEven___spec__4___lambda__1___closed__1); +l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__1); +l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__1___closed__2); +l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__2___closed__1); +l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1 = _init_l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSepTactics_goEven___lambda__7___closed__1); +l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalSepTactics_goOdd___lambda__1___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__2(); @@ -41148,16 +47645,15 @@ l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__ lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__6); l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__7 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__7(); lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__7); -l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__8); -l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__9); -l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_addCheckpoints___spec__1___closed__10); l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__1); l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_addCheckpoints___lambda__1___closed__2); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1688_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1 = _init_l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__2(); @@ -41184,6 +47680,13 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_decl if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707____closed__2); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1707_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); }l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1 = _init_l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1(); @@ -41192,10 +47695,6 @@ l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2 = _init_l___r lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2); l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3); -l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__4); -l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5); if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -41216,16 +47715,21 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_decl if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1(); +}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842____closed__2); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_1842_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticCDot___lambda__1___closed__1); +l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__2); l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__3); -l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__4); -l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot___closed__5); if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalTacticCDot(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -41400,6 +47904,8 @@ l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___closed__2 = lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___closed__2); l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___closed__3 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___closed__3(); lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_evalOpen___spec__28___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__30___lambda__1___closed__1); l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__37___closed__1 = _init_l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__37___closed__1(); lean_mark_persistent(l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__37___closed__1); l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__37___closed__2 = _init_l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__37___closed__2(); @@ -41606,6 +48112,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange___cl if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +}if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_3370_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); }l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__2(); @@ -42298,16 +48807,19 @@ l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notF lean_mark_persistent(l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__11); l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__12 = _init_l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__12(); lean_mark_persistent(l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getCaseGoals_notFound___closed__12); -l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1(); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027____closed__2); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_BuiltinTactic___hyg_8027_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___lambda__1___closed__1); l_Lean_Elab_Tactic_evalCase___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalCase___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___lambda__1___closed__2); l_Lean_Elab_Tactic_evalCase___closed__1 = _init_l_Lean_Elab_Tactic_evalCase___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___closed__1); -l_Lean_Elab_Tactic_evalCase___closed__2 = _init_l_Lean_Elab_Tactic_evalCase___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___closed__2); -l_Lean_Elab_Tactic_evalCase___closed__3 = _init_l_Lean_Elab_Tactic_evalCase___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalCase___closed__3); l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Cache.c b/stage0/stdlib/Lean/Elab/Tactic/Cache.c index e3a32ff114..b04f38b573 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Cache.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Cache.c @@ -48,12 +48,14 @@ static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Cache___hy static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Cache___hyg_16____closed__9; static lean_object* l___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache_x27___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_findCache_x3f___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 lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache_x27___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_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Tactic_evalCheckpoint___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Cache___hyg_16____closed__3; +uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Tactic_evalCheckpoint___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tactic_dbg__cache; static size_t l_Lean_PersistentHashMap_findAux___at___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache_x27___spec__2___closed__1; @@ -78,8 +80,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Cache static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCheckpoint_declRange___closed__2; static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Cache___hyg_16____closed__7; static lean_object* l___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache___closed__1; -uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(lean_object*); -uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(lean_object*, lean_object*); lean_object* l_Lean_MVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache_x27___spec__2___closed__2; @@ -342,7 +342,7 @@ else { lean_object* x_9; uint8_t x_10; x_9 = lean_array_fget(x_1, x_4); -x_10 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_5, x_9); +x_10 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_5, x_9); lean_dec(x_9); if (x_10 == 0) { @@ -414,7 +414,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_3, x_12); +x_14 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_3, x_12); lean_dec(x_12); if (x_14 == 0) { @@ -475,7 +475,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_3, x_27); +x_29 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_3, x_27); lean_dec(x_27); if (x_29 == 0) { @@ -535,7 +535,7 @@ lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); -x_4 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(x_2); +x_4 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(x_2); x_5 = lean_uint64_to_usize(x_4); x_6 = l_Lean_PersistentHashMap_findAux___at___private_Lean_Elab_Tactic_Cache_0__Lean_Elab_Tactic_dbg__cache_x27___spec__2(x_3, x_5, x_2); lean_dec(x_2); @@ -1816,7 +1816,7 @@ else lean_object* x_9; lean_object* x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_9 = lean_array_fget(x_2, x_5); x_10 = lean_array_fget(x_3, x_5); -x_11 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(x_9); +x_11 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(x_9); x_12 = lean_uint64_to_usize(x_11); x_13 = 1; x_14 = lean_usize_sub(x_1, x_13); @@ -1879,7 +1879,7 @@ else { lean_object* x_17; uint8_t x_18; x_17 = lean_array_fget(x_5, x_2); -x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_3, x_17); +x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_3, x_17); lean_dec(x_17); if (x_18 == 0) { @@ -1976,7 +1976,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_15, 0); x_20 = lean_ctor_get(x_15, 1); -x_21 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_4, x_19); +x_21 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_4, x_19); if (x_21 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -2010,7 +2010,7 @@ x_27 = lean_ctor_get(x_15, 1); lean_inc(x_27); lean_inc(x_26); lean_dec(x_15); -x_28 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_4, x_26); +x_28 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_4, x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -2131,7 +2131,7 @@ if (lean_is_exclusive(x_57)) { lean_dec_ref(x_57); x_62 = lean_box(0); } -x_63 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_4, x_60); +x_63 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_4, x_60); if (x_63 == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; @@ -2308,7 +2308,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(x_2); +x_7 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(x_2); x_8 = lean_uint64_to_usize(x_7); x_9 = 1; x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Tactic_evalCheckpoint___spec__2(x_5, x_8, x_9, x_2, x_3); @@ -2327,7 +2327,7 @@ x_14 = lean_ctor_get(x_1, 1); lean_inc(x_14); lean_inc(x_13); lean_dec(x_1); -x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(x_2); +x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(x_2); x_16 = lean_uint64_to_usize(x_15); x_17 = 1; x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Elab_Tactic_evalCheckpoint___spec__2(x_13, x_16, x_17, x_2, x_3); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c index 811e628a78..0651280506 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c @@ -44,6 +44,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTacticCore_declRange___closed__5; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convTarget(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_Conv_markAsConvGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalNestedConv___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -71,6 +72,7 @@ lean_object* l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1( static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalZeta_declRange___closed__3; static lean_object* l_Lean_Elab_Tactic_Conv_convert___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic_declRange___closed__6; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___spec__1(lean_object*, size_t, 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_Lean_Elab_Tactic_Conv_convert___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_mkConvGoalFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,6 +126,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalFirst_declRange___c static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_getLhsRhsCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___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_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvTactic_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeq1Indented(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___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedConv(lean_object*); @@ -151,6 +154,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedConv___closed static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalZeta_declRange___closed__7; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__18; static lean_object* l_Lean_Elab_Tactic_Conv_getLhsRhsCore___lambda__1___closed__1; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic___closed__1; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__22; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -176,6 +180,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__ LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Tactic_Conv_remarkAsConvGoal___spec__1(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___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__5; lean_object* l_Lean_Elab_goalsToMessageData(lean_object*); +lean_object* l_Lean_Elab_Tactic_saveTacticInfoForToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalZeta___closed__3; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__6; uint8_t l_Lean_Expr_isMVar(lean_object*); @@ -306,10 +311,12 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvTactic_declRang static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConv___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic___closed__5; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(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_nat_mod(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalWhnf(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvConvSeq(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec__1___rarg___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___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__1; static lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; @@ -350,6 +357,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalReduce___rarg(lean_object*, static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf_declRange___closed__6; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvTactic(lean_object*, lean_object*, 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___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented_declRange___closed__3; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__14; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq_declRange___closed__5; @@ -358,6 +366,7 @@ static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___closed__1; static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__17; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvConvSeq___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__3; +lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___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_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalConvConvSeq___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___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed(lean_object*); @@ -379,16 +388,17 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedConv_declRang lean_object* lean_array_get_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvConvSeq_declRange___closed__2; static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__9; -lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(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___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__3; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvConvSeq___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConv(lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Array_mkArray2___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalParen_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedConv_declRange___closed__4; lean_object* l_Lean_Elab_Tactic_setGoals(lean_object*, lean_object*, 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*); static lean_object* l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalReduce_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__5; @@ -991,112 +1001,150 @@ 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); -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +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_free_object(x_23); lean_dec(x_27); -x_30 = l_Lean_Meta_SavedState_restore(x_21, x_7, x_8, x_9, x_10, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_21, x_7, x_8, x_9, x_10, x_28); lean_dec(x_21); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_31); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_32); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_35 = l_Lean_MVarId_inferInstance(x_13, x_7, x_8, x_9, x_10, x_34); -if (lean_obj_tag(x_35) == 0) +x_36 = l_Lean_MVarId_inferInstance(x_13, x_7, x_8, x_9, x_10, x_35); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_36; lean_object* x_37; -lean_dec(x_33); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; -x_15 = x_37; -x_16 = x_36; +lean_object* x_37; lean_object* x_38; +lean_dec(x_34); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; +x_15 = x_38; +x_16 = x_37; goto block_19; } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_35); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_35, 0); -x_40 = lean_ctor_get(x_35, 1); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_free_object(x_35); -lean_dec(x_39); -x_42 = l_Lean_Meta_SavedState_restore(x_33, x_7, x_8, x_9, x_10, x_40); -lean_dec(x_33); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; -x_15 = x_44; -x_16 = x_43; -goto block_19; -} -else +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) { -lean_dec(x_33); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_35; -} -} -else -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_35, 0); -x_46 = lean_ctor_get(x_35, 1); -lean_inc(x_46); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_free_object(x_36); +lean_dec(x_40); +x_44 = l_Lean_Meta_SavedState_restore(x_34, x_7, x_8, x_9, x_10, x_41); +lean_dec(x_34); +x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); -lean_dec(x_35); -x_47 = l_Lean_Exception_isRuntime(x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_45); -x_48 = l_Lean_Meta_SavedState_restore(x_33, x_7, x_8, x_9, x_10, x_46); -lean_dec(x_33); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; -x_15 = x_50; -x_16 = x_49; +lean_dec(x_44); +x_46 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; +x_15 = x_46; +x_16 = x_45; goto block_19; } else { -lean_object* x_51; -lean_dec(x_33); +lean_dec(x_34); lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_45); -lean_ctor_set(x_51, 1, x_46); -return x_51; +return x_36; +} +} +else +{ +lean_dec(x_34); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_36; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_36, 0); +x_48 = lean_ctor_get(x_36, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_36); +x_49 = l_Lean_Exception_isInterrupt(x_47); +if (x_49 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_47); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_47); +x_51 = l_Lean_Meta_SavedState_restore(x_34, x_7, x_8, x_9, x_10, x_48); +lean_dec(x_34); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; +x_15 = x_53; +x_16 = x_52; +goto block_19; +} +else +{ +lean_object* x_54; +lean_dec(x_34); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_47); +lean_ctor_set(x_54, 1, x_48); +return x_54; +} +} +else +{ +lean_object* x_55; +lean_dec(x_34); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_47); +lean_ctor_set(x_55, 1, x_48); +return x_55; } } } @@ -1115,99 +1163,6 @@ return x_23; } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_23, 0); -x_53 = lean_ctor_get(x_23, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_23); -x_54 = l_Lean_Exception_isRuntime(x_52); -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; -lean_dec(x_52); -x_55 = l_Lean_Meta_SavedState_restore(x_21, x_7, x_8, x_9, x_10, x_53); -lean_dec(x_21); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_60 = l_Lean_MVarId_inferInstance(x_13, x_7, x_8, x_9, x_10, x_59); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_58); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; -x_15 = x_62; -x_16 = x_61; -goto block_19; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_65 = x_60; -} else { - lean_dec_ref(x_60); - x_65 = lean_box(0); -} -x_66 = l_Lean_Exception_isRuntime(x_63); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_65); -lean_dec(x_63); -x_67 = l_Lean_Meta_SavedState_restore(x_58, x_7, x_8, x_9, x_10, x_64); -lean_dec(x_58); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; -x_15 = x_69; -x_16 = x_68; -goto block_19; -} -else -{ -lean_object* x_70; -lean_dec(x_58); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -if (lean_is_scalar(x_65)) { - x_70 = lean_alloc_ctor(1, 2, 0); -} else { - x_70 = x_65; -} -lean_ctor_set(x_70, 0, x_63); -lean_ctor_set(x_70, 1, x_64); -return x_70; -} -} -} -else -{ -lean_object* x_71; lean_dec(x_21); lean_dec(x_14); lean_dec(x_13); @@ -1215,10 +1170,158 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_52); -lean_ctor_set(x_71, 1, x_53); -return x_71; +return x_23; +} +} +else +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_23, 0); +x_57 = lean_ctor_get(x_23, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_23); +x_58 = l_Lean_Exception_isInterrupt(x_56); +if (x_58 == 0) +{ +uint8_t x_59; +x_59 = l_Lean_Exception_isRuntime(x_56); +if (x_59 == 0) +{ +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_dec(x_56); +x_60 = l_Lean_Meta_SavedState_restore(x_21, x_7, x_8, x_9, x_10, x_57); +lean_dec(x_21); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_65 = l_Lean_MVarId_inferInstance(x_13, x_7, x_8, x_9, x_10, x_64); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_63); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; +x_15 = x_67; +x_16 = x_66; +goto block_19; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_65, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_65, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_70 = x_65; +} else { + lean_dec_ref(x_65); + x_70 = lean_box(0); +} +x_71 = l_Lean_Exception_isInterrupt(x_68); +if (x_71 == 0) +{ +uint8_t x_72; +x_72 = l_Lean_Exception_isRuntime(x_68); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_70); +lean_dec(x_68); +x_73 = l_Lean_Meta_SavedState_restore(x_63, x_7, x_8, x_9, x_10, x_69); +lean_dec(x_63); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l_List_forIn_loop___at_Lean_Elab_Tactic_Conv_convert___spec__1___closed__1; +x_15 = x_75; +x_16 = x_74; +goto block_19; +} +else +{ +lean_object* x_76; +lean_dec(x_63); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +if (lean_is_scalar(x_70)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_70; +} +lean_ctor_set(x_76, 0, x_68); +lean_ctor_set(x_76, 1, x_69); +return x_76; +} +} +else +{ +lean_object* x_77; +lean_dec(x_63); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +if (lean_is_scalar(x_70)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_70; +} +lean_ctor_set(x_77, 0, x_68); +lean_ctor_set(x_77, 1, x_69); +return x_77; +} +} +} +else +{ +lean_object* x_78; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_56); +lean_ctor_set(x_78, 1, x_57); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_56); +lean_ctor_set(x_79, 1, x_57); +return x_79; } } } @@ -3912,6 +4015,330 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___spec__1(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_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_3, x_2); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_array_uget(x_1, x_3); +x_17 = lean_ctor_get(x_4, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 2); +lean_inc(x_19); +x_20 = lean_nat_dec_lt(x_17, x_18); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_13); +return x_21; +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +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; uint8_t x_30; +x_23 = lean_ctor_get(x_4, 2); +lean_dec(x_23); +x_24 = lean_ctor_get(x_4, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_4, 0); +lean_dec(x_25); +x_26 = lean_nat_add(x_17, x_19); +lean_ctor_set(x_4, 0, x_26); +x_27 = lean_unsigned_to_nat(2u); +x_28 = lean_nat_mod(x_17, x_27); +lean_dec(x_17); +x_29 = lean_unsigned_to_nat(0u); +x_30 = lean_nat_dec_eq(x_28, x_29); +lean_dec(x_28); +if (x_30 == 0) +{ +lean_object* x_31; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_31 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; size_t x_33; size_t x_34; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = 1; +x_34 = lean_usize_add(x_3, x_33); +x_3 = x_34; +x_13 = x_32; +goto _start; +} +else +{ +uint8_t x_36; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) +{ +return x_31; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_31); +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; +} +} +} +else +{ +lean_object* x_40; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_40 = l_Lean_Elab_Tactic_evalTactic(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; size_t x_42; size_t x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = 1; +x_43 = lean_usize_add(x_3, x_42); +x_3 = x_43; +x_13 = x_41; +goto _start; +} +else +{ +uint8_t x_45; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +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_dec(x_4); +x_49 = lean_nat_add(x_17, x_19); +x_50 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_18); +lean_ctor_set(x_50, 2, x_19); +x_51 = lean_unsigned_to_nat(2u); +x_52 = lean_nat_mod(x_17, x_51); +lean_dec(x_17); +x_53 = lean_unsigned_to_nat(0u); +x_54 = lean_nat_dec_eq(x_52, x_53); +lean_dec(x_52); +if (x_54 == 0) +{ +lean_object* x_55; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_55 = l_Lean_Elab_Tactic_saveTacticInfoForToken(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; size_t x_57; size_t x_58; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = 1; +x_58 = lean_usize_add(x_3, x_57); +x_3 = x_58; +x_4 = x_50; +x_13 = x_56; +goto _start; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_50); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +else +{ +lean_object* x_64; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_64 = l_Lean_Elab_Tactic_evalTactic(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; size_t x_66; size_t x_67; +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = 1; +x_67 = lean_usize_add(x_3, x_66); +x_3 = x_67; +x_4 = x_50; +x_13 = x_65; +goto _start; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_50); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_69 = lean_ctor_get(x_64, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_64, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_71 = x_64; +} else { + lean_dec_ref(x_64); + 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_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +} +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalSepByIndentConv(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: { @@ -3928,7 +4355,7 @@ x_16 = lean_array_get_size(x_11); x_17 = lean_usize_of_nat(x_16); lean_dec(x_16); x_18 = 0; -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSepByIndentTactic___spec__1(x_11, x_17, x_18, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___spec__1(x_11, x_17, x_18, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_11); if (lean_obj_tag(x_19) == 0) { @@ -3980,6 +4407,19 @@ return x_29; } } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___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_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Conv_evalSepByIndentConv___spec__1(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_16; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalSepByIndentConv___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: { @@ -4452,7 +4892,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; @@ -4752,7 +5192,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; 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; lean_object* x_39; +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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_25 = lean_ctor_get(x_8, 0); x_26 = lean_ctor_get(x_8, 1); x_27 = lean_ctor_get(x_8, 2); @@ -4764,7 +5204,10 @@ x_32 = lean_ctor_get(x_8, 7); x_33 = lean_ctor_get(x_8, 8); x_34 = lean_ctor_get(x_8, 9); x_35 = lean_ctor_get(x_8, 10); -x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_37 = lean_ctor_get(x_8, 11); +x_38 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_37); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -4777,24 +5220,26 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_dec(x_8); -x_37 = l_Lean_replaceRef(x_17, x_30); +x_39 = l_Lean_replaceRef(x_17, x_30); lean_dec(x_30); lean_dec(x_17); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_25); -lean_ctor_set(x_38, 1, x_26); -lean_ctor_set(x_38, 2, x_27); -lean_ctor_set(x_38, 3, x_28); -lean_ctor_set(x_38, 4, x_29); -lean_ctor_set(x_38, 5, x_37); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_36); -x_39 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_9, x_15); -return x_39; +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_26); +lean_ctor_set(x_40, 2, x_27); +lean_ctor_set(x_40, 3, x_28); +lean_ctor_set(x_40, 4, x_29); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_38); +x_41 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_40, x_9, x_15); +return x_41; } } } @@ -8128,7 +8573,7 @@ return x_37; } else { -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_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; uint8_t x_51; lean_object* x_52; lean_object* x_53; x_38 = lean_ctor_get(x_12, 0); x_39 = lean_ctor_get(x_12, 1); x_40 = lean_ctor_get(x_12, 2); @@ -8140,7 +8585,10 @@ x_45 = lean_ctor_get(x_12, 7); x_46 = lean_ctor_get(x_12, 8); x_47 = lean_ctor_get(x_12, 9); x_48 = lean_ctor_get(x_12, 10); -x_49 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_50 = lean_ctor_get(x_12, 11); +x_51 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_50); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); @@ -8153,348 +8601,350 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_12); -x_50 = l_Lean_replaceRef(x_30, x_43); +x_52 = l_Lean_replaceRef(x_30, x_43); lean_dec(x_43); lean_dec(x_30); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_40); -lean_ctor_set(x_51, 3, x_41); -lean_ctor_set(x_51, 4, x_42); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_44); -lean_ctor_set(x_51, 7, x_45); -lean_ctor_set(x_51, 8, x_46); -lean_ctor_set(x_51, 9, x_47); -lean_ctor_set(x_51, 10, x_48); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_49); +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_38); +lean_ctor_set(x_53, 1, x_39); +lean_ctor_set(x_53, 2, x_40); +lean_ctor_set(x_53, 3, x_41); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set(x_53, 5, x_52); +lean_ctor_set(x_53, 6, x_44); +lean_ctor_set(x_53, 7, x_45); +lean_ctor_set(x_53, 8, x_46); +lean_ctor_set(x_53, 9, x_47); +lean_ctor_set(x_53, 10, x_48); +lean_ctor_set(x_53, 11, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_51); if (lean_obj_tag(x_5) == 0) { -lean_object* x_52; -x_52 = l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convTarget(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_14); -return x_52; +lean_object* x_54; +x_54 = l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convTarget(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_53, x_13, x_14); +return x_54; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_5, 0); -lean_inc(x_53); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_5, 0); +lean_inc(x_55); lean_dec(x_5); -x_54 = l_Lean_Syntax_getId(x_53); -lean_dec(x_53); -x_55 = l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convLocalDecl(x_24, x_54, x_6, x_7, x_8, x_9, x_10, x_11, x_51, x_13, x_14); -return x_55; +x_56 = l_Lean_Syntax_getId(x_55); +lean_dec(x_55); +x_57 = l___private_Lean_Elab_Tactic_Conv_Basic_0__Lean_Elab_Tactic_Conv_convLocalDecl(x_24, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_53, x_13, x_14); +return x_57; } } } } 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; lean_object* x_62; lean_object* x_175; -x_56 = lean_unsigned_to_nat(1u); -x_57 = l_Lean_Syntax_getArg(x_16, x_56); -x_58 = l_Lean_Syntax_getArg(x_16, x_15); +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_177; +x_58 = lean_unsigned_to_nat(1u); +x_59 = l_Lean_Syntax_getArg(x_16, x_58); +x_60 = l_Lean_Syntax_getArg(x_16, x_15); lean_dec(x_16); -x_59 = l_Lean_Syntax_getArg(x_1, x_17); -x_60 = lean_unsigned_to_nat(4u); -x_61 = l_Lean_Syntax_getArg(x_1, x_60); -x_175 = l_Lean_Syntax_getOptional_x3f(x_57); -lean_dec(x_57); -if (lean_obj_tag(x_175) == 0) +x_61 = l_Lean_Syntax_getArg(x_1, x_17); +x_62 = lean_unsigned_to_nat(4u); +x_63 = l_Lean_Syntax_getArg(x_1, x_62); +x_177 = l_Lean_Syntax_getOptional_x3f(x_59); +lean_dec(x_59); +if (lean_obj_tag(x_177) == 0) { -lean_object* x_176; -x_176 = lean_box(0); -x_62 = x_176; -goto block_174; +lean_object* x_178; +x_178 = lean_box(0); +x_64 = x_178; +goto block_176; } else { -uint8_t x_177; -x_177 = !lean_is_exclusive(x_175); -if (x_177 == 0) +uint8_t x_179; +x_179 = !lean_is_exclusive(x_177); +if (x_179 == 0) { -x_62 = x_175; -goto block_174; +x_64 = x_177; +goto block_176; } else { -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_175, 0); -lean_inc(x_178); -lean_dec(x_175); -x_179 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_179, 0, x_178); -x_62 = x_179; -goto block_174; +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_177, 0); +lean_inc(x_180); +lean_dec(x_177); +x_181 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_181, 0, x_180); +x_64 = x_181; +goto block_176; } } -block_174: +block_176: { -lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_63 = lean_ctor_get(x_12, 5); -lean_inc(x_63); -x_64 = 0; -x_65 = l_Lean_SourceInfo_fromRef(x_63, x_64); -x_66 = lean_st_ref_get(x_13, x_14); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) +lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_65 = lean_ctor_get(x_12, 5); +lean_inc(x_65); +x_66 = 0; +x_67 = l_Lean_SourceInfo_fromRef(x_65, x_66); +x_68 = lean_st_ref_get(x_13, x_14); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) { -lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_68 = lean_ctor_get(x_66, 1); -x_69 = lean_ctor_get(x_66, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = l_Lean_SourceInfo_fromRef(x_2, x_70); -x_72 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__2; -lean_ctor_set_tag(x_66, 2); -lean_ctor_set(x_66, 1, x_72); -lean_ctor_set(x_66, 0, x_71); -x_73 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__9; -x_74 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__3; -lean_inc(x_65); -x_75 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_75, 0, x_65); -lean_ctor_set(x_75, 1, x_73); -lean_ctor_set(x_75, 2, x_74); -x_76 = l_Lean_SourceInfo_fromRef(x_59, x_70); -x_77 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__4; -x_78 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__5; -lean_inc(x_65); +lean_object* x_70; lean_object* x_71; uint8_t 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; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_70 = lean_ctor_get(x_68, 1); +x_71 = lean_ctor_get(x_68, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = l_Lean_SourceInfo_fromRef(x_2, x_72); +x_74 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__2; +lean_ctor_set_tag(x_68, 2); +lean_ctor_set(x_68, 1, x_74); +lean_ctor_set(x_68, 0, x_73); +x_75 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__9; +x_76 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__3; +lean_inc(x_67); +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_67); +lean_ctor_set(x_77, 1, x_75); +lean_ctor_set(x_77, 2, x_76); +x_78 = l_Lean_SourceInfo_fromRef(x_61, x_72); +x_79 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__4; x_80 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_80, 0, x_65); +lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; -lean_inc(x_65); +x_81 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__5; +lean_inc(x_67); x_82 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_82, 0, x_65); +lean_ctor_set(x_82, 0, x_67); lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__12; -lean_inc(x_65); +x_83 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; +lean_inc(x_67); x_84 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_84, 0, x_65); +lean_ctor_set(x_84, 0, x_67); lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__22; -lean_inc(x_65); +x_85 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__12; +lean_inc(x_67); x_86 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_86, 0, x_65); +lean_ctor_set(x_86, 0, x_67); lean_ctor_set(x_86, 1, x_85); -x_87 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalParen___closed__1; -lean_inc(x_65); -x_88 = l_Lean_Syntax_node3(x_65, x_87, x_84, x_61, x_86); +x_87 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__22; +lean_inc(x_67); +x_88 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_88, 0, x_67); +lean_ctor_set(x_88, 1, x_87); +x_89 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalParen___closed__1; +lean_inc(x_67); +x_90 = l_Lean_Syntax_node3(x_67, x_89, x_86, x_63, x_88); if (lean_obj_tag(x_5) == 0) { -x_89 = x_74; -goto block_116; +x_91 = x_76; +goto block_118; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_5, 0); -lean_inc(x_117); +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_5, 0); +lean_inc(x_119); lean_dec(x_5); -x_118 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__9; -lean_inc(x_65); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_65); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Array_mkArray2___rarg(x_119, x_117); -x_89 = x_120; -goto block_116; +x_120 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__9; +lean_inc(x_67); +x_121 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_121, 0, x_67); +lean_ctor_set(x_121, 1, x_120); +x_122 = l_Array_mkArray2___rarg(x_121, x_119); +x_91 = x_122; +goto block_118; } -block_116: +block_118: { -lean_object* x_90; lean_object* x_91; -x_90 = l_Array_append___rarg(x_74, x_89); -lean_inc(x_65); -x_91 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_91, 0, x_65); -lean_ctor_set(x_91, 1, x_73); -lean_ctor_set(x_91, 2, x_90); -if (lean_obj_tag(x_62) == 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; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_92 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__8; -lean_inc(x_65); +lean_object* x_92; lean_object* x_93; +x_92 = l_Array_append___rarg(x_76, x_91); +lean_inc(x_67); x_93 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_93, 0, x_65); -lean_ctor_set(x_93, 1, x_73); +lean_ctor_set(x_93, 0, x_67); +lean_ctor_set(x_93, 1, x_75); lean_ctor_set(x_93, 2, x_92); -x_94 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; -lean_inc(x_65); -x_95 = l_Lean_Syntax_node3(x_65, x_94, x_80, x_93, x_58); -lean_inc(x_65); -x_96 = l_Lean_Syntax_node3(x_65, x_73, x_95, x_82, x_88); -x_97 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; -lean_inc(x_65); -x_98 = l_Lean_Syntax_node1(x_65, x_97, x_96); -x_99 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; -lean_inc(x_65); -x_100 = l_Lean_Syntax_node1(x_65, x_99, x_98); -x_101 = l_Lean_Syntax_node5(x_65, x_3, x_66, x_91, x_75, x_78, x_100); -x_102 = l_Lean_Elab_Tactic_evalTactic(x_101, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_68); -return x_102; +if (lean_obj_tag(x_64) == 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; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_94 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__8; +lean_inc(x_67); +x_95 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_95, 0, x_67); +lean_ctor_set(x_95, 1, x_75); +lean_ctor_set(x_95, 2, x_94); +x_96 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; +lean_inc(x_67); +x_97 = l_Lean_Syntax_node3(x_67, x_96, x_82, x_95, x_60); +lean_inc(x_67); +x_98 = l_Lean_Syntax_node3(x_67, x_75, x_97, x_84, x_90); +x_99 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; +lean_inc(x_67); +x_100 = l_Lean_Syntax_node1(x_67, x_99, x_98); +x_101 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; +lean_inc(x_67); +x_102 = l_Lean_Syntax_node1(x_67, x_101, x_100); +x_103 = l_Lean_Syntax_node5(x_67, x_3, x_68, x_93, x_77, x_80, x_102); +x_104 = l_Lean_Elab_Tactic_evalTactic(x_103, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); +return x_104; } 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; 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_103 = lean_ctor_get(x_62, 0); -lean_inc(x_103); -lean_dec(x_62); -x_104 = lean_array_push(x_74, x_103); -x_105 = l_Array_append___rarg(x_74, x_104); -lean_inc(x_65); -x_106 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_106, 0, x_65); -lean_ctor_set(x_106, 1, x_73); -lean_ctor_set(x_106, 2, x_105); -x_107 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; -lean_inc(x_65); -x_108 = l_Lean_Syntax_node3(x_65, x_107, x_80, x_106, x_58); -lean_inc(x_65); -x_109 = l_Lean_Syntax_node3(x_65, x_73, x_108, x_82, x_88); -x_110 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; -lean_inc(x_65); -x_111 = l_Lean_Syntax_node1(x_65, x_110, x_109); -x_112 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; -lean_inc(x_65); -x_113 = l_Lean_Syntax_node1(x_65, x_112, x_111); -x_114 = l_Lean_Syntax_node5(x_65, x_3, x_66, x_91, x_75, x_78, x_113); -x_115 = l_Lean_Elab_Tactic_evalTactic(x_114, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_68); -return x_115; +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; +x_105 = lean_ctor_get(x_64, 0); +lean_inc(x_105); +lean_dec(x_64); +x_106 = lean_array_push(x_76, x_105); +x_107 = l_Array_append___rarg(x_76, x_106); +lean_inc(x_67); +x_108 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_108, 0, x_67); +lean_ctor_set(x_108, 1, x_75); +lean_ctor_set(x_108, 2, x_107); +x_109 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; +lean_inc(x_67); +x_110 = l_Lean_Syntax_node3(x_67, x_109, x_82, x_108, x_60); +lean_inc(x_67); +x_111 = l_Lean_Syntax_node3(x_67, x_75, x_110, x_84, x_90); +x_112 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; +lean_inc(x_67); +x_113 = l_Lean_Syntax_node1(x_67, x_112, x_111); +x_114 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; +lean_inc(x_67); +x_115 = l_Lean_Syntax_node1(x_67, x_114, x_113); +x_116 = l_Lean_Syntax_node5(x_67, x_3, x_68, x_93, x_77, x_80, x_115); +x_117 = l_Lean_Elab_Tactic_evalTactic(x_116, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); +return x_117; } } } else { -lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_121 = lean_ctor_get(x_66, 1); -lean_inc(x_121); -lean_dec(x_66); -x_122 = 1; -x_123 = l_Lean_SourceInfo_fromRef(x_2, x_122); -x_124 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__2; -x_125 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -x_126 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__9; -x_127 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__3; -lean_inc(x_65); -x_128 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_128, 0, x_65); -lean_ctor_set(x_128, 1, x_126); -lean_ctor_set(x_128, 2, x_127); -x_129 = l_Lean_SourceInfo_fromRef(x_59, x_122); -x_130 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__4; -x_131 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__5; -lean_inc(x_65); +lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_123 = lean_ctor_get(x_68, 1); +lean_inc(x_123); +lean_dec(x_68); +x_124 = 1; +x_125 = l_Lean_SourceInfo_fromRef(x_2, x_124); +x_126 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__2; +x_127 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +x_128 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__9; +x_129 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__3; +lean_inc(x_67); +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_67); +lean_ctor_set(x_130, 1, x_128); +lean_ctor_set(x_130, 2, x_129); +x_131 = l_Lean_SourceInfo_fromRef(x_61, x_124); +x_132 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__4; x_133 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_133, 0, x_65); +lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); -x_134 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; -lean_inc(x_65); +x_134 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__5; +lean_inc(x_67); x_135 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_135, 0, x_65); +lean_ctor_set(x_135, 0, x_67); lean_ctor_set(x_135, 1, x_134); -x_136 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__12; -lean_inc(x_65); +x_136 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__7; +lean_inc(x_67); x_137 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_137, 0, x_65); +lean_ctor_set(x_137, 0, x_67); lean_ctor_set(x_137, 1, x_136); -x_138 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__22; -lean_inc(x_65); +x_138 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__12; +lean_inc(x_67); x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_65); +lean_ctor_set(x_139, 0, x_67); lean_ctor_set(x_139, 1, x_138); -x_140 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalParen___closed__1; -lean_inc(x_65); -x_141 = l_Lean_Syntax_node3(x_65, x_140, x_137, x_61, x_139); +x_140 = l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__22; +lean_inc(x_67); +x_141 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_141, 0, x_67); +lean_ctor_set(x_141, 1, x_140); +x_142 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalParen___closed__1; +lean_inc(x_67); +x_143 = l_Lean_Syntax_node3(x_67, x_142, x_139, x_63, x_141); if (lean_obj_tag(x_5) == 0) { -x_142 = x_127; -goto block_169; +x_144 = x_129; +goto block_171; } else { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_170 = lean_ctor_get(x_5, 0); -lean_inc(x_170); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_172 = lean_ctor_get(x_5, 0); +lean_inc(x_172); lean_dec(x_5); -x_171 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__9; -lean_inc(x_65); -x_172 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_172, 0, x_65); -lean_ctor_set(x_172, 1, x_171); -x_173 = l_Array_mkArray2___rarg(x_172, x_170); -x_142 = x_173; -goto block_169; +x_173 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__9; +lean_inc(x_67); +x_174 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_174, 0, x_67); +lean_ctor_set(x_174, 1, x_173); +x_175 = l_Array_mkArray2___rarg(x_174, x_172); +x_144 = x_175; +goto block_171; } -block_169: +block_171: { -lean_object* x_143; lean_object* x_144; -x_143 = l_Array_append___rarg(x_127, x_142); -lean_inc(x_65); -x_144 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_144, 0, x_65); -lean_ctor_set(x_144, 1, x_126); -lean_ctor_set(x_144, 2, x_143); -if (lean_obj_tag(x_62) == 0) -{ -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; -x_145 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__8; -lean_inc(x_65); +lean_object* x_145; lean_object* x_146; +x_145 = l_Array_append___rarg(x_129, x_144); +lean_inc(x_67); x_146 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_146, 0, x_65); -lean_ctor_set(x_146, 1, x_126); +lean_ctor_set(x_146, 0, x_67); +lean_ctor_set(x_146, 1, x_128); lean_ctor_set(x_146, 2, x_145); -x_147 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; -lean_inc(x_65); -x_148 = l_Lean_Syntax_node3(x_65, x_147, x_133, x_146, x_58); -lean_inc(x_65); -x_149 = l_Lean_Syntax_node3(x_65, x_126, x_148, x_135, x_141); -x_150 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; -lean_inc(x_65); -x_151 = l_Lean_Syntax_node1(x_65, x_150, x_149); -x_152 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; -lean_inc(x_65); -x_153 = l_Lean_Syntax_node1(x_65, x_152, x_151); -x_154 = l_Lean_Syntax_node5(x_65, x_3, x_125, x_144, x_128, x_131, x_153); -x_155 = l_Lean_Elab_Tactic_evalTactic(x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_121); -return x_155; +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_147 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__8; +lean_inc(x_67); +x_148 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_148, 0, x_67); +lean_ctor_set(x_148, 1, x_128); +lean_ctor_set(x_148, 2, x_147); +x_149 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; +lean_inc(x_67); +x_150 = l_Lean_Syntax_node3(x_67, x_149, x_135, x_148, x_60); +lean_inc(x_67); +x_151 = l_Lean_Syntax_node3(x_67, x_128, x_150, x_137, x_143); +x_152 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; +lean_inc(x_67); +x_153 = l_Lean_Syntax_node1(x_67, x_152, x_151); +x_154 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; +lean_inc(x_67); +x_155 = l_Lean_Syntax_node1(x_67, x_154, x_153); +x_156 = l_Lean_Syntax_node5(x_67, x_3, x_127, x_146, x_130, x_133, x_155); +x_157 = l_Lean_Elab_Tactic_evalTactic(x_156, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_123); +return x_157; } else { -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; -x_156 = lean_ctor_get(x_62, 0); -lean_inc(x_156); -lean_dec(x_62); -x_157 = lean_array_push(x_127, x_156); -x_158 = l_Array_append___rarg(x_127, x_157); -lean_inc(x_65); -x_159 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_159, 0, x_65); -lean_ctor_set(x_159, 1, x_126); -lean_ctor_set(x_159, 2, x_158); -x_160 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; -lean_inc(x_65); -x_161 = l_Lean_Syntax_node3(x_65, x_160, x_133, x_159, x_58); -lean_inc(x_65); -x_162 = l_Lean_Syntax_node3(x_65, x_126, x_161, x_135, x_141); -x_163 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; -lean_inc(x_65); -x_164 = l_Lean_Syntax_node1(x_65, x_163, x_162); -x_165 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; -lean_inc(x_65); -x_166 = l_Lean_Syntax_node1(x_65, x_165, x_164); -x_167 = l_Lean_Syntax_node5(x_65, x_3, x_125, x_144, x_128, x_131, x_166); -x_168 = l_Lean_Elab_Tactic_evalTactic(x_167, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_121); -return x_168; +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_158 = lean_ctor_get(x_64, 0); +lean_inc(x_158); +lean_dec(x_64); +x_159 = lean_array_push(x_129, x_158); +x_160 = l_Array_append___rarg(x_129, x_159); +lean_inc(x_67); +x_161 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_161, 0, x_67); +lean_ctor_set(x_161, 1, x_128); +lean_ctor_set(x_161, 2, x_160); +x_162 = l_Lean_Elab_Tactic_Conv_evalConv___lambda__1___closed__6; +lean_inc(x_67); +x_163 = l_Lean_Syntax_node3(x_67, x_162, x_135, x_161, x_60); +lean_inc(x_67); +x_164 = l_Lean_Syntax_node3(x_67, x_128, x_163, x_137, x_143); +x_165 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq1Indented___closed__2; +lean_inc(x_67); +x_166 = l_Lean_Syntax_node1(x_67, x_165, x_164); +x_167 = l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeq___closed__2; +lean_inc(x_67); +x_168 = l_Lean_Syntax_node1(x_67, x_167, x_166); +x_169 = l_Lean_Syntax_node5(x_67, x_3, x_127, x_146, x_130, x_133, x_168); +x_170 = l_Lean_Elab_Tactic_evalTactic(x_169, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_123); +return x_170; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c index 1498a4b547..e59ba9d52d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c @@ -18558,7 +18558,7 @@ return x_15; } else { -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; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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; 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_dec(x_4); x_16 = lean_array_uget(x_1, x_3); x_17 = l_Lean_Syntax_getId(x_16); @@ -18575,9 +18575,12 @@ x_26 = lean_ctor_get(x_11, 7); x_27 = lean_ctor_get(x_11, 8); x_28 = lean_ctor_get(x_11, 9); x_29 = lean_ctor_get(x_11, 10); -x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_31 = l_Lean_replaceRef(x_16, x_24); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_31 = lean_ctor_get(x_11, 11); +x_32 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_33 = l_Lean_replaceRef(x_16, x_24); lean_dec(x_16); +lean_inc(x_31); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -18588,19 +18591,21 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_19); -lean_ctor_set(x_32, 1, x_20); -lean_ctor_set(x_32, 2, x_21); -lean_ctor_set(x_32, 3, x_22); -lean_ctor_set(x_32, 4, x_23); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_30); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); @@ -18608,24 +18613,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_33 = l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_ext(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_33) == 0) +x_35 = l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_ext(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_34; size_t x_35; size_t x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = 1; -x_36 = lean_usize_add(x_3, x_35); -x_37 = lean_box(0); -x_3 = x_36; -x_4 = x_37; -x_13 = x_34; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = 1; +x_38 = lean_usize_add(x_3, x_37); +x_39 = lean_box(0); +x_3 = x_38; +x_4 = x_39; +x_13 = x_36; goto _start; } else { -uint8_t x_39; +uint8_t x_41; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -18633,23 +18638,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_39 = !lean_is_exclusive(x_33); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_35); +if (x_41 == 0) { -return x_33; +return x_35; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_33, 0); -x_41 = lean_ctor_get(x_33, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_33); -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_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +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; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c index 1e255c83a2..fb0c208be2 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c @@ -2383,7 +2383,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -2395,7 +2395,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -2408,32 +2411,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Tactic_Conv_evalPattern___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_Conv_evalPattern___spec__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -2731,7 +2736,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -2743,7 +2748,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -2756,23 +2764,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +return x_30; } } } @@ -4524,7 +4534,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; 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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_dec(x_2); x_13 = lean_unsigned_to_nat(2u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); @@ -4543,9 +4553,9 @@ x_19 = lean_ctor_get(x_6, 1); lean_inc(x_19); x_20 = lean_ctor_get(x_6, 2); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2); +x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); x_24 = lean_ctor_get(x_6, 3); lean_inc(x_24); x_25 = lean_ctor_get(x_6, 4); @@ -4554,48 +4564,51 @@ x_26 = lean_ctor_get(x_6, 5); lean_inc(x_26); x_27 = lean_ctor_get(x_6, 6); lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 3); -x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 4); -x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 5); -x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 7); +x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_29 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_6, 7); lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 9); -x_35 = 1; -x_36 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_36, 0, x_18); -lean_ctor_set(x_36, 1, x_19); -lean_ctor_set(x_36, 2, x_20); -lean_ctor_set(x_36, 3, x_24); -lean_ctor_set(x_36, 4, x_25); -lean_ctor_set(x_36, 5, x_26); -lean_ctor_set(x_36, 6, x_27); -lean_ctor_set(x_36, 7, x_32); -lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_21); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_22); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_23); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 3, x_28); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 4, x_29); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 5, x_30); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 6, x_35); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 9, x_34); +x_33 = lean_ctor_get(x_6, 8); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +x_36 = 1; +x_37 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_37, 0, x_18); +lean_ctor_set(x_37, 1, x_19); +lean_ctor_set(x_37, 2, x_20); +lean_ctor_set(x_37, 3, x_24); +lean_ctor_set(x_37, 4, x_25); +lean_ctor_set(x_37, 5, x_26); +lean_ctor_set(x_37, 6, x_27); +lean_ctor_set(x_37, 7, x_32); +lean_ctor_set(x_37, 8, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_21); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_22); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 2, x_23); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 3, x_28); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 4, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 5, x_30); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 6, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 9, x_35); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_37 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_17, x_36, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_37) == 0) +x_38 = l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(x_17, x_37, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -4604,54 +4617,54 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_40 = l_Lean_Elab_Tactic_Conv_getLhs(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_39); -if (lean_obj_tag(x_40) == 0) +x_41 = l_Lean_Elab_Tactic_Conv_getLhs(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +if (lean_obj_tag(x_41) == 0) { if (lean_obj_tag(x_3) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__3; -x_44 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9(x_38, x_15, x_41, x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_42); -return x_44; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__3; +x_45 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9(x_39, x_15, x_42, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +return x_45; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_45 = lean_ctor_get(x_40, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_40, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_46 = lean_ctor_get(x_41, 0); lean_inc(x_46); -lean_dec(x_40); -x_47 = lean_ctor_get(x_3, 0); +x_47 = lean_ctor_get(x_41, 1); lean_inc(x_47); +lean_dec(x_41); +x_48 = lean_ctor_get(x_3, 0); +lean_inc(x_48); lean_dec(x_3); -lean_inc(x_45); -lean_inc(x_38); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9), 13, 3); -lean_closure_set(x_48, 0, x_38); -lean_closure_set(x_48, 1, x_15); -lean_closure_set(x_48, 2, x_45); -x_49 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__9; -lean_inc(x_47); -x_50 = l_Lean_Syntax_isOfKind(x_47, x_49); -if (x_50 == 0) +lean_inc(x_46); +lean_inc(x_39); +x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9), 13, 3); +lean_closure_set(x_49, 0, x_39); +lean_closure_set(x_49, 1, x_15); +lean_closure_set(x_49, 2, x_46); +x_50 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__9; +lean_inc(x_48); +x_51 = l_Lean_Syntax_isOfKind(x_48, x_50); +if (x_51 == 0) { -lean_object* x_51; uint8_t x_52; -lean_dec(x_45); -lean_dec(x_38); -x_51 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__11; -lean_inc(x_47); -x_52 = l_Lean_Syntax_isOfKind(x_47, x_51); -if (x_52 == 0) +lean_object* x_52; uint8_t x_53; +lean_dec(x_46); +lean_dec(x_39); +x_52 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__11; +lean_inc(x_48); +x_53 = l_Lean_Syntax_isOfKind(x_48, x_52); +if (x_53 == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_54; uint8_t x_55; +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4660,36 +4673,36 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_53 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_Conv_evalPattern___spec__5___rarg(x_46); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) +x_54 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_Conv_evalPattern___spec__5___rarg(x_47); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -return x_53; +return x_54; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_ctor_get(x_53, 1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_53); -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_dec(x_54); +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_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_58 = lean_unsigned_to_nat(0u); -x_59 = l_Lean_Syntax_getArg(x_47, x_58); -lean_dec(x_47); -x_60 = l_Lean_Syntax_getArgs(x_59); -lean_dec(x_59); -x_61 = lean_array_get_size(x_60); -x_62 = lean_mk_empty_array_with_capacity(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_59 = lean_unsigned_to_nat(0u); +x_60 = l_Lean_Syntax_getArg(x_48, x_59); +lean_dec(x_48); +x_61 = l_Lean_Syntax_getArgs(x_60); +lean_dec(x_60); +x_62 = lean_array_get_size(x_61); +x_63 = lean_mk_empty_array_with_capacity(x_62); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -4698,30 +4711,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_63 = l_Array_mapIdxM_map___at_Lean_Elab_Tactic_Conv_evalPattern___spec__8(x_60, x_60, x_61, x_58, lean_box(0), x_62, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -lean_dec(x_60); -if (lean_obj_tag(x_63) == 0) +x_64 = l_Array_mapIdxM_map___at_Lean_Elab_Tactic_Conv_evalPattern___spec__8(x_61, x_61, x_62, x_59, lean_box(0), x_63, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +lean_dec(x_61); +if (lean_obj_tag(x_64) == 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; uint8_t x_70; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_array_get_size(x_64); -x_67 = lean_unsigned_to_nat(1u); -x_68 = lean_nat_sub(x_66, x_67); -lean_dec(x_66); -x_69 = l_Array_qsort_sort___at_Lean_Elab_Tactic_Conv_evalPattern___spec__9(x_64, x_58, x_68); -lean_dec(x_68); -x_70 = l___private_Init_Data_Array_Basic_0__Array_allDiffAux___at_Lean_Elab_Tactic_Conv_evalPattern___spec__10(x_69, x_58); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_array_get_size(x_65); +x_68 = lean_unsigned_to_nat(1u); +x_69 = lean_nat_sub(x_67, x_68); +lean_dec(x_67); +x_70 = l_Array_qsort_sort___at_Lean_Elab_Tactic_Conv_evalPattern___spec__9(x_65, x_59, x_69); lean_dec(x_69); -lean_dec(x_48); -x_71 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__13; -x_72 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_71, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_65); +x_71 = l___private_Init_Data_Array_Basic_0__Array_allDiffAux___at_Lean_Elab_Tactic_Conv_evalPattern___spec__10(x_70, x_59); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +lean_dec(x_70); +lean_dec(x_49); +x_72 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__13; +x_73 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_66); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4730,37 +4743,37 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) { -return x_72; +return x_73; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); -x_75 = lean_ctor_get(x_72, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_72); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +lean_dec(x_73); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } else { -lean_object* x_77; lean_object* x_78; -x_77 = lean_box(0); -x_78 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__10(x_69, x_48, x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_65); -return x_78; +lean_object* x_78; lean_object* x_79; +x_78 = lean_box(0); +x_79 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__10(x_70, x_49, x_78, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_66); +return x_79; } } else { -uint8_t x_79; -lean_dec(x_48); +uint8_t x_80; +lean_dec(x_49); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4769,42 +4782,42 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_79 = !lean_is_exclusive(x_63); -if (x_79 == 0) +x_80 = !lean_is_exclusive(x_64); +if (x_80 == 0) { -return x_63; +return x_64; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_63, 0); -x_81 = lean_ctor_get(x_63, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_64, 0); +x_82 = lean_ctor_get(x_64, 1); +lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_63); -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_dec(x_64); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } } else { -lean_object* x_83; lean_object* x_84; +lean_object* x_84; lean_object* x_85; +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -x_83 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__14; -x_84 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9(x_38, x_15, x_45, x_83, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -return x_84; +x_84 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__11___closed__14; +x_85 = l_Lean_Elab_Tactic_Conv_evalPattern___lambda__9(x_39, x_15, x_46, x_84, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +return x_85; } } } else { -uint8_t x_85; -lean_dec(x_38); +uint8_t x_86; +lean_dec(x_39); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4814,29 +4827,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_85 = !lean_is_exclusive(x_40); -if (x_85 == 0) +x_86 = !lean_is_exclusive(x_41); +if (x_86 == 0) { -return x_40; +return x_41; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_40, 0); -x_87 = lean_ctor_get(x_40, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_41, 0); +x_88 = lean_ctor_get(x_41, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_40); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_dec(x_41); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -uint8_t x_89; +uint8_t x_90; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4846,23 +4859,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_89 = !lean_is_exclusive(x_37); -if (x_89 == 0) +x_90 = !lean_is_exclusive(x_38); +if (x_90 == 0) { -return x_37; +return x_38; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_37, 0); -x_91 = lean_ctor_get(x_37, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_38, 0); +x_92 = lean_ctor_get(x_38, 1); +lean_inc(x_92); lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_37); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +lean_dec(x_38); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index 60fbed4022..4971b5b9b5 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -785,7 +785,7 @@ return x_27; } else { -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; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +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; uint8_t x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_28 = lean_ctor_get(x_10, 0); x_29 = lean_ctor_get(x_10, 1); x_30 = lean_ctor_get(x_10, 2); @@ -797,7 +797,10 @@ x_35 = lean_ctor_get(x_10, 7); x_36 = lean_ctor_get(x_10, 8); x_37 = lean_ctor_get(x_10, 9); x_38 = lean_ctor_get(x_10, 10); -x_39 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_40 = lean_ctor_get(x_10, 11); +x_41 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_40); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); @@ -810,54 +813,56 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_dec(x_10); -x_40 = l_Lean_replaceRef(x_1, x_33); +x_42 = l_Lean_replaceRef(x_1, x_33); lean_dec(x_33); lean_dec(x_1); -x_41 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_41, 0, x_28); -lean_ctor_set(x_41, 1, x_29); -lean_ctor_set(x_41, 2, x_30); -lean_ctor_set(x_41, 3, x_31); -lean_ctor_set(x_41, 4, x_32); -lean_ctor_set(x_41, 5, x_40); -lean_ctor_set(x_41, 6, x_34); -lean_ctor_set(x_41, 7, x_35); -lean_ctor_set(x_41, 8, x_36); -lean_ctor_set(x_41, 9, x_37); -lean_ctor_set(x_41, 10, x_38); -lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_39); +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_28); +lean_ctor_set(x_43, 1, x_29); +lean_ctor_set(x_43, 2, x_30); +lean_ctor_set(x_43, 3, x_31); +lean_ctor_set(x_43, 4, x_32); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_34); +lean_ctor_set(x_43, 7, x_35); +lean_ctor_set(x_43, 8, x_36); +lean_ctor_set(x_43, 9, x_37); +lean_ctor_set(x_43, 10, x_38); +lean_ctor_set(x_43, 11, x_40); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_39); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_41); lean_inc(x_11); -lean_inc(x_41); +lean_inc(x_43); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_42 = l_Lean_Elab_Tactic_runTermElab___rarg(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41, x_11, x_12); -if (lean_obj_tag(x_42) == 0) +x_44 = l_Lean_Elab_Tactic_runTermElab___rarg(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_43, x_11, x_12); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1(x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_41, x_11, x_44); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1(x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_43, x_11, x_46); lean_dec(x_11); -lean_dec(x_41); +lean_dec(x_43); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_45; +return x_47; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_41); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_43); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -865,26 +870,26 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_46 = lean_ctor_get(x_42, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_48 = x_42; +x_48 = lean_ctor_get(x_44, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_44, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_50 = x_44; } else { - lean_dec_ref(x_42); - x_48 = lean_box(0); + lean_dec_ref(x_44); + x_50 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_48; + x_51 = x_50; } -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } } @@ -3401,7 +3406,7 @@ x_16 = !lean_is_exclusive(x_8); if (x_16 == 0) { uint8_t x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 9); +x_17 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); x_18 = lean_ctor_get(x_8, 0); lean_dec(x_18); x_19 = !lean_is_exclusive(x_14); @@ -3413,7 +3418,7 @@ lean_ctor_set_uint8(x_14, 7, x_20); if (x_17 == 0) { lean_object* x_21; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_3); x_21 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_21) == 0) { @@ -3463,7 +3468,7 @@ return x_29; else { lean_object* x_30; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_20); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_20); x_30 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_30) == 0) { @@ -3546,7 +3551,7 @@ lean_ctor_set(x_8, 0, x_52); if (x_17 == 0) { lean_object* x_53; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_3); x_53 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_53) == 0) { @@ -3600,7 +3605,7 @@ return x_61; else { lean_object* x_62; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_51); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_51); x_62 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_62) == 0) { @@ -3656,7 +3661,7 @@ return x_70; else { uint8_t 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; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; -x_71 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 9); +x_71 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); x_72 = lean_ctor_get(x_8, 1); x_73 = lean_ctor_get(x_8, 2); x_74 = lean_ctor_get(x_8, 3); @@ -3719,7 +3724,7 @@ lean_ctor_set_uint8(x_94, sizeof(void*)*6 + 1, x_78); if (x_71 == 0) { lean_object* x_95; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_3); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_3); x_95 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_95) == 0) { @@ -3773,7 +3778,7 @@ return x_103; else { lean_object* x_104; -lean_ctor_set_uint8(x_6, sizeof(void*)*8 + 9, x_92); +lean_ctor_set_uint8(x_6, sizeof(void*)*9 + 9, x_92); x_104 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_94, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_104) == 0) { @@ -3828,25 +3833,27 @@ return x_112; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; lean_object* x_128; uint8_t x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; uint8_t x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; +lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; uint8_t 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; uint8_t x_137; uint8_t x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; lean_object* x_155; x_113 = lean_ctor_get(x_6, 0); x_114 = lean_ctor_get(x_6, 1); x_115 = lean_ctor_get(x_6, 2); -x_116 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -x_117 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -x_118 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2); +x_116 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_117 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_118 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); x_119 = lean_ctor_get(x_6, 3); x_120 = lean_ctor_get(x_6, 4); x_121 = lean_ctor_get(x_6, 5); x_122 = lean_ctor_get(x_6, 6); -x_123 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 3); -x_124 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 4); -x_125 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 5); -x_126 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 6); -x_127 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 7); +x_123 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_124 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_125 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_126 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_127 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); x_128 = lean_ctor_get(x_6, 7); -x_129 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 8); -x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 9); +x_129 = lean_ctor_get(x_6, 8); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_129); lean_inc(x_128); lean_inc(x_122); lean_inc(x_121); @@ -3856,18 +3863,18 @@ lean_inc(x_115); lean_inc(x_114); lean_inc(x_113); lean_dec(x_6); -x_131 = lean_ctor_get(x_8, 1); -lean_inc(x_131); -x_132 = lean_ctor_get(x_8, 2); +x_132 = lean_ctor_get(x_8, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_8, 3); +x_133 = lean_ctor_get(x_8, 2); lean_inc(x_133); -x_134 = lean_ctor_get(x_8, 4); +x_134 = lean_ctor_get(x_8, 3); lean_inc(x_134); -x_135 = lean_ctor_get(x_8, 5); +x_135 = lean_ctor_get(x_8, 4); lean_inc(x_135); -x_136 = lean_ctor_get_uint8(x_8, sizeof(void*)*6); -x_137 = lean_ctor_get_uint8(x_8, sizeof(void*)*6 + 1); +x_136 = lean_ctor_get(x_8, 5); +lean_inc(x_136); +x_137 = lean_ctor_get_uint8(x_8, sizeof(void*)*6); +x_138 = lean_ctor_get_uint8(x_8, sizeof(void*)*6 + 1); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); @@ -3875,203 +3882,205 @@ if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 3); lean_ctor_release(x_8, 4); lean_ctor_release(x_8, 5); - x_138 = x_8; + x_139 = x_8; } else { lean_dec_ref(x_8); - x_138 = lean_box(0); + x_139 = lean_box(0); } -x_139 = lean_ctor_get_uint8(x_14, 0); -x_140 = lean_ctor_get_uint8(x_14, 1); -x_141 = lean_ctor_get_uint8(x_14, 2); -x_142 = lean_ctor_get_uint8(x_14, 3); -x_143 = lean_ctor_get_uint8(x_14, 4); -x_144 = lean_ctor_get_uint8(x_14, 5); -x_145 = lean_ctor_get_uint8(x_14, 6); -x_146 = lean_ctor_get_uint8(x_14, 8); -x_147 = lean_ctor_get_uint8(x_14, 9); -x_148 = lean_ctor_get_uint8(x_14, 10); -x_149 = lean_ctor_get_uint8(x_14, 11); -x_150 = lean_ctor_get_uint8(x_14, 12); +x_140 = lean_ctor_get_uint8(x_14, 0); +x_141 = lean_ctor_get_uint8(x_14, 1); +x_142 = lean_ctor_get_uint8(x_14, 2); +x_143 = lean_ctor_get_uint8(x_14, 3); +x_144 = lean_ctor_get_uint8(x_14, 4); +x_145 = lean_ctor_get_uint8(x_14, 5); +x_146 = lean_ctor_get_uint8(x_14, 6); +x_147 = lean_ctor_get_uint8(x_14, 8); +x_148 = lean_ctor_get_uint8(x_14, 9); +x_149 = lean_ctor_get_uint8(x_14, 10); +x_150 = lean_ctor_get_uint8(x_14, 11); +x_151 = lean_ctor_get_uint8(x_14, 12); if (lean_is_exclusive(x_14)) { - x_151 = x_14; + x_152 = x_14; } else { lean_dec_ref(x_14); - x_151 = lean_box(0); + x_152 = lean_box(0); } -x_152 = 1; -if (lean_is_scalar(x_151)) { - x_153 = lean_alloc_ctor(0, 0, 13); +x_153 = 1; +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 0, 13); } else { - x_153 = x_151; + x_154 = x_152; } -lean_ctor_set_uint8(x_153, 0, x_139); -lean_ctor_set_uint8(x_153, 1, x_140); -lean_ctor_set_uint8(x_153, 2, x_141); -lean_ctor_set_uint8(x_153, 3, x_142); -lean_ctor_set_uint8(x_153, 4, x_143); -lean_ctor_set_uint8(x_153, 5, x_144); -lean_ctor_set_uint8(x_153, 6, x_145); -lean_ctor_set_uint8(x_153, 7, x_152); -lean_ctor_set_uint8(x_153, 8, x_146); -lean_ctor_set_uint8(x_153, 9, x_147); -lean_ctor_set_uint8(x_153, 10, x_148); -lean_ctor_set_uint8(x_153, 11, x_149); -lean_ctor_set_uint8(x_153, 12, x_150); -if (lean_is_scalar(x_138)) { - x_154 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set_uint8(x_154, 0, x_140); +lean_ctor_set_uint8(x_154, 1, x_141); +lean_ctor_set_uint8(x_154, 2, x_142); +lean_ctor_set_uint8(x_154, 3, x_143); +lean_ctor_set_uint8(x_154, 4, x_144); +lean_ctor_set_uint8(x_154, 5, x_145); +lean_ctor_set_uint8(x_154, 6, x_146); +lean_ctor_set_uint8(x_154, 7, x_153); +lean_ctor_set_uint8(x_154, 8, x_147); +lean_ctor_set_uint8(x_154, 9, x_148); +lean_ctor_set_uint8(x_154, 10, x_149); +lean_ctor_set_uint8(x_154, 11, x_150); +lean_ctor_set_uint8(x_154, 12, x_151); +if (lean_is_scalar(x_139)) { + x_155 = lean_alloc_ctor(0, 6, 2); } else { - x_154 = x_138; + x_155 = x_139; } -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_131); -lean_ctor_set(x_154, 2, x_132); -lean_ctor_set(x_154, 3, x_133); -lean_ctor_set(x_154, 4, x_134); -lean_ctor_set(x_154, 5, x_135); -lean_ctor_set_uint8(x_154, sizeof(void*)*6, x_136); -lean_ctor_set_uint8(x_154, sizeof(void*)*6 + 1, x_137); -if (x_130 == 0) +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_132); +lean_ctor_set(x_155, 2, x_133); +lean_ctor_set(x_155, 3, x_134); +lean_ctor_set(x_155, 4, x_135); +lean_ctor_set(x_155, 5, x_136); +lean_ctor_set_uint8(x_155, sizeof(void*)*6, x_137); +lean_ctor_set_uint8(x_155, sizeof(void*)*6 + 1, x_138); +if (x_131 == 0) { -lean_object* x_155; lean_object* x_156; -x_155 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_155, 0, x_113); -lean_ctor_set(x_155, 1, x_114); -lean_ctor_set(x_155, 2, x_115); -lean_ctor_set(x_155, 3, x_119); -lean_ctor_set(x_155, 4, x_120); -lean_ctor_set(x_155, 5, x_121); -lean_ctor_set(x_155, 6, x_122); -lean_ctor_set(x_155, 7, x_128); -lean_ctor_set_uint8(x_155, sizeof(void*)*8, x_116); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 1, x_117); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 2, x_118); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 3, x_123); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 4, x_124); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 5, x_125); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 6, x_126); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 7, x_127); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 8, x_129); -lean_ctor_set_uint8(x_155, sizeof(void*)*8 + 9, x_3); -x_156 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_155, x_7, x_154, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_156) == 0) +lean_object* x_156; lean_object* x_157; +x_156 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_156, 0, x_113); +lean_ctor_set(x_156, 1, x_114); +lean_ctor_set(x_156, 2, x_115); +lean_ctor_set(x_156, 3, x_119); +lean_ctor_set(x_156, 4, x_120); +lean_ctor_set(x_156, 5, x_121); +lean_ctor_set(x_156, 6, x_122); +lean_ctor_set(x_156, 7, x_128); +lean_ctor_set(x_156, 8, x_129); +lean_ctor_set_uint8(x_156, sizeof(void*)*9, x_116); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 1, x_117); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 2, x_118); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 3, x_123); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 4, x_124); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 5, x_125); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 6, x_126); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 7, x_127); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 8, x_130); +lean_ctor_set_uint8(x_156, sizeof(void*)*9 + 9, x_3); +x_157 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_156, x_7, x_155, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_157) == 0) { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_158 = lean_ctor_get(x_157, 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; +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_160 = x_157; } else { - lean_dec_ref(x_156); - x_159 = lean_box(0); + lean_dec_ref(x_157); + x_160 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(0, 2, 0); } else { - x_160 = x_159; + x_161 = x_160; } -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_161 = lean_ctor_get(x_156, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_156, 1); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_157, 0); lean_inc(x_162); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_163 = x_156; +x_163 = lean_ctor_get(x_157, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_164 = x_157; } else { - lean_dec_ref(x_156); - x_163 = lean_box(0); + lean_dec_ref(x_157); + x_164 = lean_box(0); } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); } else { - x_164 = x_163; + x_165 = x_164; } -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; } } else { -lean_object* x_165; lean_object* x_166; -x_165 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_165, 0, x_113); -lean_ctor_set(x_165, 1, x_114); -lean_ctor_set(x_165, 2, x_115); -lean_ctor_set(x_165, 3, x_119); -lean_ctor_set(x_165, 4, x_120); -lean_ctor_set(x_165, 5, x_121); -lean_ctor_set(x_165, 6, x_122); -lean_ctor_set(x_165, 7, x_128); -lean_ctor_set_uint8(x_165, sizeof(void*)*8, x_116); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 1, x_117); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 2, x_118); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 3, x_123); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 4, x_124); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 5, x_125); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 6, x_126); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 7, x_127); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 8, x_129); -lean_ctor_set_uint8(x_165, sizeof(void*)*8 + 9, x_152); -x_166 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_165, x_7, x_154, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_166) == 0) +lean_object* x_166; lean_object* x_167; +x_166 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_166, 0, x_113); +lean_ctor_set(x_166, 1, x_114); +lean_ctor_set(x_166, 2, x_115); +lean_ctor_set(x_166, 3, x_119); +lean_ctor_set(x_166, 4, x_120); +lean_ctor_set(x_166, 5, x_121); +lean_ctor_set(x_166, 6, x_122); +lean_ctor_set(x_166, 7, x_128); +lean_ctor_set(x_166, 8, x_129); +lean_ctor_set_uint8(x_166, sizeof(void*)*9, x_116); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 1, x_117); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 2, x_118); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 3, x_123); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 4, x_124); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 5, x_125); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 6, x_126); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 7, x_127); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 8, x_130); +lean_ctor_set_uint8(x_166, sizeof(void*)*9 + 9, x_153); +x_167 = l_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go(x_1, x_2, x_3, x_4, x_5, x_166, x_7, x_155, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_167) == 0) { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_168 = lean_ctor_get(x_167, 0); lean_inc(x_168); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_169 = x_166; +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_170 = x_167; } else { - lean_dec_ref(x_166); - x_169 = lean_box(0); + lean_dec_ref(x_167); + x_170 = lean_box(0); } -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(0, 2, 0); } else { - x_170 = x_169; + x_171 = x_170; } -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -return x_170; +lean_ctor_set(x_171, 0, x_168); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_171 = lean_ctor_get(x_166, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_166, 1); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_172 = lean_ctor_get(x_167, 0); lean_inc(x_172); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_173 = x_166; +x_173 = lean_ctor_get(x_167, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_174 = x_167; } else { - lean_dec_ref(x_166); - x_173 = lean_box(0); + lean_dec_ref(x_167); + x_174 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_173; + x_175 = x_174; } -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; } } } @@ -6211,7 +6220,7 @@ 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; 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_object* x_48; lean_object* x_49; lean_object* x_50; +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; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; x_36 = lean_ctor_get(x_8, 0); x_37 = lean_ctor_get(x_8, 1); x_38 = lean_ctor_get(x_8, 2); @@ -6223,7 +6232,10 @@ x_43 = lean_ctor_get(x_8, 7); x_44 = lean_ctor_get(x_8, 8); x_45 = lean_ctor_get(x_8, 9); x_46 = lean_ctor_get(x_8, 10); -x_47 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_47 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_48 = lean_ctor_get(x_8, 11); +x_49 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_48); lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); @@ -6236,100 +6248,102 @@ lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_dec(x_8); -x_48 = l_Lean_replaceRef(x_1, x_41); +x_50 = l_Lean_replaceRef(x_1, x_41); lean_dec(x_41); lean_dec(x_1); -x_49 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_49, 0, x_36); -lean_ctor_set(x_49, 1, x_37); -lean_ctor_set(x_49, 2, x_38); -lean_ctor_set(x_49, 3, x_39); -lean_ctor_set(x_49, 4, x_40); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_42); -lean_ctor_set(x_49, 7, x_43); -lean_ctor_set(x_49, 8, x_44); -lean_ctor_set(x_49, 9, x_45); -lean_ctor_set(x_49, 10, x_46); -lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_47); +x_51 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_51, 0, x_36); +lean_ctor_set(x_51, 1, x_37); +lean_ctor_set(x_51, 2, x_38); +lean_ctor_set(x_51, 3, x_39); +lean_ctor_set(x_51, 4, x_40); +lean_ctor_set(x_51, 5, x_50); +lean_ctor_set(x_51, 6, x_42); +lean_ctor_set(x_51, 7, x_43); +lean_ctor_set(x_51, 8, x_44); +lean_ctor_set(x_51, 9, x_45); +lean_ctor_set(x_51, 10, x_46); +lean_ctor_set(x_51, 11, x_48); +lean_ctor_set_uint8(x_51, sizeof(void*)*12, x_47); +lean_ctor_set_uint8(x_51, sizeof(void*)*12 + 1, x_49); lean_inc(x_9); -lean_inc(x_49); +lean_inc(x_51); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_50 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_49, x_9, x_10); -if (lean_obj_tag(x_50) == 0) +x_52 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_51, x_9, x_10); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_51; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 1) +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +if (lean_obj_tag(x_53) == 1) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_49); -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); -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_50); - x_53 = lean_box(0); -} -x_54 = lean_ctor_get(x_51, 0); -lean_inc(x_54); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_51); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 0); +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); +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 { - x_55 = x_53; + lean_dec_ref(x_52); + x_55 = lean_box(0); } -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -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; lean_object* x_62; -x_56 = lean_ctor_get(x_50, 1); +x_56 = lean_ctor_get(x_53, 0); lean_inc(x_56); -lean_dec(x_50); -x_57 = l_Lean_MessageData_ofExpr(x_51); -x_58 = l_Lean_Elab_Tactic_getFVarId___closed__2; -x_59 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -x_60 = l_Lean_Elab_Tactic_getFVarId___closed__4; +lean_dec(x_53); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; +} +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_54); +return x_57; +} +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; lean_object* x_64; +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +lean_dec(x_52); +x_59 = l_Lean_MessageData_ofExpr(x_53); +x_60 = l_Lean_Elab_Tactic_getFVarId___closed__2; x_61 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -x_62 = l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1(x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_49, x_9, x_56); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_Elab_Tactic_getFVarId___closed__4; +x_63 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1(x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_51, x_9, x_58); lean_dec(x_9); -lean_dec(x_49); +lean_dec(x_51); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_62; +return x_64; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_49); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_51); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -6337,26 +6351,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_63 = lean_ctor_get(x_50, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_50, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_65 = x_50; +x_65 = lean_ctor_get(x_52, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_52, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_67 = x_52; } else { - lean_dec_ref(x_50); - x_65 = lean_box(0); + lean_dec_ref(x_52); + x_67 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_68 = x_67; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Ext.c b/stage0/stdlib/Lean/Elab/Tactic/Ext.c index ab2d099e1a..b663522543 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Ext.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Ext.c @@ -72,6 +72,7 @@ uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Elab_Tactic_Ext_withExtHyps___rarg___closed__2; static lean_object* l___private_Lean_Elab_Tactic_Ext_0__Lean_Elab_Tactic_Ext_reprExtTheorem____x40_Lean_Elab_Tactic_Ext___hyg_43____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Ext_evalApplyExtTheorem___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Ext_evalExt___spec__3___closed__5; uint64_t lean_uint64_of_nat(lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); @@ -4229,7 +4230,7 @@ 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +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; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -4238,6 +4239,9 @@ x_17 = lean_ctor_get(x_3, 4); x_18 = lean_ctor_get(x_3, 5); x_19 = lean_ctor_get(x_3, 7); x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -4247,19 +4251,21 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); -x_21 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_14); -lean_ctor_set(x_21, 2, x_15); -lean_ctor_set(x_21, 3, x_16); -lean_ctor_set(x_21, 4, x_17); -lean_ctor_set(x_21, 5, x_18); -lean_ctor_set(x_21, 6, x_9); -lean_ctor_set(x_21, 7, x_19); -lean_ctor_set(x_21, 8, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Tactic_Ext_initFn____x40_Lean_Elab_Tactic_Ext___hyg_614____spec__3(x_2, x_21, x_4, x_8); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_Ext_initFn____x40_Lean_Elab_Tactic_Ext___hyg_614____spec__3(x_2, x_23, x_4, x_8); lean_dec(x_4); -return x_22; +return x_24; } } } @@ -5304,7 +5310,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -5316,7 +5322,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -5329,24 +5338,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } @@ -8952,7 +8963,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -8964,7 +8975,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -8977,24 +8991,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_MVarId_proofIrrelHeq___spec__1(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_MVarId_proofIrrelHeq___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } @@ -11000,119 +11016,119 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_35; lean_object* x_36; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_35; lean_object* x_36; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_dec(x_9); x_17 = lean_array_uget(x_6, x_8); -x_48 = lean_ctor_get(x_17, 0); -lean_inc(x_48); +x_50 = lean_ctor_get(x_17, 0); +lean_inc(x_50); lean_dec(x_17); lean_inc(x_3); -lean_inc(x_48); -x_49 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Ext_applyExtTheoremAt___spec__1___lambda__1), 7, 2); -lean_closure_set(x_49, 0, x_48); -lean_closure_set(x_49, 1, x_3); -x_50 = 0; +lean_inc(x_50); +x_51 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Ext_applyExtTheoremAt___spec__1___lambda__1), 7, 2); +lean_closure_set(x_51, 0, x_50); +lean_closure_set(x_51, 1, x_3); +x_52 = 0; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_51 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_49, x_50, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_53 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_48, x_10, x_11, x_12, x_13, x_52); +x_53 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_matchesInstance___spec__1___rarg(x_51, x_52, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_53) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_53, 0); +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); lean_dec(x_53); -x_56 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Ext_applyExtTheoremAt___spec__1___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_55 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_50, x_10, x_11, x_12, x_13, x_54); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_Ext_applyExtTheoremAt___spec__1___closed__1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_1); -x_57 = l_Lean_MVarId_apply(x_1, x_54, x_56, x_10, x_11, x_12, x_13, x_55); -if (lean_obj_tag(x_57) == 0) +x_59 = l_Lean_MVarId_apply(x_1, x_56, x_58, x_10, x_11, x_12, x_13, x_57); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_58; -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_57, 1); -x_60 = lean_box(0); -lean_ctor_set_tag(x_57, 1); -lean_ctor_set(x_57, 1, x_60); -x_18 = x_57; -x_19 = x_59; +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_59, 1); +x_62 = lean_box(0); +lean_ctor_set_tag(x_59, 1); +lean_ctor_set(x_59, 1, x_62); +x_18 = x_59; +x_19 = x_61; goto block_34; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_57, 0); -x_62 = lean_ctor_get(x_57, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_57); -x_63 = lean_box(0); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_63); -x_18 = x_64; -x_19 = x_62; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_59, 0); +x_64 = lean_ctor_get(x_59, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_59); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_65); +x_18 = x_66; +x_19 = x_64; goto block_34; } } else { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_57, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_57, 1); -lean_inc(x_66); -lean_dec(x_57); -x_35 = x_65; -x_36 = x_66; -goto block_47; -} -} -else -{ lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_53, 0); +x_67 = lean_ctor_get(x_59, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_53, 1); +x_68 = lean_ctor_get(x_59, 1); lean_inc(x_68); -lean_dec(x_53); +lean_dec(x_59); x_35 = x_67; x_36 = x_68; -goto block_47; +goto block_49; } } else { lean_object* x_69; lean_object* x_70; -lean_dec(x_48); -x_69 = lean_ctor_get(x_51, 0); +x_69 = lean_ctor_get(x_55, 0); lean_inc(x_69); -x_70 = lean_ctor_get(x_51, 1); +x_70 = lean_ctor_get(x_55, 1); lean_inc(x_70); -lean_dec(x_51); +lean_dec(x_55); x_35 = x_69; x_36 = x_70; -goto block_47; +goto block_49; +} +} +else +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_50); +x_71 = lean_ctor_get(x_53, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_53, 1); +lean_inc(x_72); +lean_dec(x_53); +x_35 = x_71; +x_36 = x_72; +goto block_49; } block_34: { @@ -11180,46 +11196,50 @@ return x_33; } } } -block_47: +block_49: { uint8_t x_37; -x_37 = l_Lean_Exception_isRuntime(x_35); +x_37 = l_Lean_Exception_isInterrupt(x_35); if (x_37 == 0) { -lean_object* x_38; uint8_t x_39; +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; lean_dec(x_35); -x_38 = l_Lean_Meta_SavedState_restore(x_4, x_10, x_11, x_12, x_13, x_36); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_39 = l_Lean_Meta_SavedState_restore(x_4, x_10, x_11, x_12, x_13, x_36); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 1); -x_41 = lean_box(0); -lean_ctor_set(x_38, 1, x_41); -x_18 = x_38; -x_19 = x_40; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_39, 1); +x_42 = lean_box(0); +lean_ctor_set(x_39, 1, x_42); +x_18 = x_39; +x_19 = x_41; goto block_34; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_38, 0); -x_43 = lean_ctor_get(x_38, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_39, 0); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_38); -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_44); -x_18 = x_45; -x_19 = x_43; +lean_dec(x_39); +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_45); +x_18 = x_46; +x_19 = x_44; goto block_34; } } else { -lean_object* x_46; +lean_object* x_47; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -11227,10 +11247,26 @@ lean_dec(x_10); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_35); -lean_ctor_set(x_46, 1, x_36); -return x_46; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_35); +lean_ctor_set(x_47, 1, x_36); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_35); +lean_ctor_set(x_48, 1, x_36); +return x_48; } } } @@ -13824,14 +13860,18 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 0); x_22 = lean_ctor_get(x_19, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_free_object(x_19); lean_dec(x_21); -x_24 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -return x_24; +x_25 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +return x_25; } else { @@ -13850,23 +13890,6 @@ return x_19; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_19); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -lean_object* x_28; -lean_dec(x_25); -x_28 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); -return x_28; -} -else -{ -lean_object* x_29; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -13877,33 +13900,88 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_26); -return x_29; -} -} +return x_19; } } else { -lean_object* x_30; lean_object* x_31; -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Ext_withExtN___at_Lean_Elab_Tactic_Ext_extCore___spec__1___lambda__1), 12, 2); -lean_closure_set(x_30, 0, x_3); -lean_closure_set(x_30, 1, x_17); -x_31 = l_Lean_Elab_Tactic_Ext_withExt1___at_Lean_Elab_Tactic_Ext_extCore___spec__2(x_1, x_2, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_26); +x_30 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +return x_30; +} +else +{ +lean_object* x_31; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_26); +lean_ctor_set(x_31, 1, x_27); return x_31; } } else { lean_object* x_32; -lean_dec(x_4); -x_32 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_27); return x_32; } } } +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_Ext_withExtN___at_Lean_Elab_Tactic_Ext_extCore___spec__1___lambda__1), 12, 2); +lean_closure_set(x_33, 0, x_3); +lean_closure_set(x_33, 1, x_17); +x_34 = l_Lean_Elab_Tactic_Ext_withExt1___at_Lean_Elab_Tactic_Ext_extCore___spec__2(x_1, x_2, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_34; +} +} +else +{ +lean_object* x_35; +lean_dec(x_4); +x_35 = lean_apply_10(x_3, x_1, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_35; +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Ext_extCore___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: { @@ -14455,8 +14533,12 @@ x_50 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_50, 0, x_24); lean_ctor_set(x_50, 1, x_49); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); x_51 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Ext_evalExt___spec__3(x_30, x_43, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); -lean_dec(x_43); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -14531,8 +14613,12 @@ x_79 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_79, 0, x_77); lean_ctor_set(x_79, 1, x_78); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); x_80 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Ext_evalExt___spec__3(x_58, x_71, x_79, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25); -lean_dec(x_71); x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); @@ -14695,13 +14781,7 @@ _start: lean_object* x_13; x_13 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Ext_evalExt___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); -lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); return x_13; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/FalseOrByContra.c b/stage0/stdlib/Lean/Elab/Tactic/FalseOrByContra.c index 237807f2b7..07b5d0460f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/FalseOrByContra.c +++ b/stage0/stdlib/Lean/Elab/Tactic/FalseOrByContra.c @@ -19,6 +19,7 @@ static lean_object* l___regBuiltin_Lean_MVarId_elabFalseOrByContra_declRange___c LEAN_EXPORT lean_object* l___regBuiltin_Lean_MVarId_elabFalseOrByContra(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_MVarId_elabFalseOrByContra_declRange___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_MVarId_elabFalseOrByContra___closed__6; LEAN_EXPORT lean_object* l_Lean_MVarId_falseOrByContra___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_MVarId_elabFalseOrByContra___spec__1___rarg___closed__2; @@ -569,57 +570,61 @@ if (x_35 == 0) lean_object* x_36; lean_object* x_37; uint8_t x_38; x_36 = lean_ctor_get(x_30, 0); x_37 = lean_ctor_get(x_30, 1); -x_38 = l_Lean_Exception_isRuntime(x_36); +x_38 = l_Lean_Exception_isInterrupt(x_36); if (x_38 == 0) { -lean_object* x_39; lean_object* x_40; +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_free_object(x_30); lean_dec(x_36); -x_39 = l_Lean_MVarId_falseOrByContra___closed__5; +x_40 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_40 = l_Lean_MVarId_applyConst(x_1, x_39, x_29, x_3, x_4, x_5, x_6, x_37); -if (lean_obj_tag(x_40) == 0) +x_41 = l_Lean_MVarId_applyConst(x_1, x_40, x_29, x_3, x_4, x_5, x_6, x_37); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_41); -x_44 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_43, x_3, x_4, x_5, x_6, x_42); -return x_44; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_42); +x_45 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_44, x_3, x_4, x_5, x_6, x_43); +return x_45; } else { -uint8_t x_45; +uint8_t x_46; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) { -return x_40; +return x_41; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_41, 0); +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_41); +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; } } } @@ -635,138 +640,170 @@ return x_30; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_30, 0); -x_50 = lean_ctor_get(x_30, 1); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_30; +} +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = lean_ctor_get(x_30, 0); +x_51 = lean_ctor_get(x_30, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); lean_dec(x_30); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) +x_52 = l_Lean_Exception_isInterrupt(x_50); +if (x_52 == 0) { -lean_object* x_52; lean_object* x_53; -lean_dec(x_49); -x_52 = l_Lean_MVarId_falseOrByContra___closed__5; +uint8_t x_53; +x_53 = l_Lean_Exception_isRuntime(x_50); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_50); +x_54 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_53 = l_Lean_MVarId_applyConst(x_1, x_52, x_29, x_3, x_4, x_5, x_6, x_50); -if (lean_obj_tag(x_53) == 0) +x_55 = l_Lean_MVarId_applyConst(x_1, x_54, x_29, x_3, x_4, x_5, x_6, x_51); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_54); -x_57 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_56, x_3, x_4, x_5, x_6, x_55); -return x_57; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_56); +x_59 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_58, x_3, x_4, x_5, x_6, x_57); +return x_59; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_58 = lean_ctor_get(x_53, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_53, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_60 = x_53; +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; } else { - lean_dec_ref(x_53); - x_60 = lean_box(0); + lean_dec_ref(x_55); + x_62 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; + x_63 = x_62; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } else { -lean_object* x_62; +lean_object* x_64; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_49); -lean_ctor_set(x_62, 1, x_50); -return x_62; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_50); +lean_ctor_set(x_64, 1, x_51); +return x_64; +} +} +else +{ +lean_object* x_65; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_50); +lean_ctor_set(x_65, 1, x_51); +return x_65; } } } } else { -uint8_t x_63; -x_63 = !lean_is_exclusive(x_2); -if (x_63 == 0) +uint8_t x_66; +x_66 = !lean_is_exclusive(x_2); +if (x_66 == 0) { -lean_object* x_64; uint8_t x_65; -x_64 = lean_ctor_get(x_2, 0); -x_65 = lean_unbox(x_64); -lean_dec(x_64); -if (x_65 == 0) +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_2, 0); +x_68 = lean_unbox(x_67); +lean_dec(x_67); +if (x_68 == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_21, 1); -lean_inc(x_66); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_21, 1); +lean_inc(x_69); lean_dec(x_21); -x_67 = l_Lean_MVarId_falseOrByContra___closed__3; -x_68 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +x_70 = l_Lean_MVarId_falseOrByContra___closed__3; +x_71 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_69 = l_Lean_MVarId_applyConst(x_1, x_67, x_68, x_3, x_4, x_5, x_6, x_66); -if (lean_obj_tag(x_69) == 0) +x_72 = l_Lean_MVarId_applyConst(x_1, x_70, x_71, x_3, x_4, x_5, x_6, x_69); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -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); -lean_ctor_set(x_2, 0, x_70); -x_72 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_71); -return x_72; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +lean_ctor_set(x_2, 0, x_73); +x_75 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_74); +return x_75; } else { -uint8_t x_73; +uint8_t x_76; lean_free_object(x_2); -x_73 = !lean_is_exclusive(x_69); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_74 = lean_ctor_get(x_69, 0); -x_75 = lean_ctor_get(x_69, 1); -x_76 = l_Lean_Exception_isRuntime(x_74); +x_76 = !lean_is_exclusive(x_72); if (x_76 == 0) { -lean_object* x_77; lean_object* x_78; -lean_free_object(x_69); -lean_dec(x_74); -x_77 = lean_box(0); -x_78 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_77, x_3, x_4, x_5, x_6, x_75); -return x_78; +lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_77 = lean_ctor_get(x_72, 0); +x_78 = lean_ctor_get(x_72, 1); +x_79 = l_Lean_Exception_isInterrupt(x_77); +if (x_79 == 0) +{ +uint8_t x_80; +x_80 = l_Lean_Exception_isRuntime(x_77); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +lean_free_object(x_72); +lean_dec(x_77); +x_81 = lean_box(0); +x_82 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_81, x_3, x_4, x_5, x_6, x_78); +return x_82; } else { @@ -775,232 +812,282 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_69; +return x_72; } } else { -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_69, 0); -x_80 = lean_ctor_get(x_69, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_69); -x_81 = l_Lean_Exception_isRuntime(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; -lean_dec(x_79); -x_82 = lean_box(0); -x_83 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_82, x_3, x_4, x_5, x_6, x_80); -return x_83; -} -else -{ -lean_object* x_84; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_79); -lean_ctor_set(x_84, 1, x_80); -return x_84; -} -} +return x_72; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_21, 1); -lean_inc(x_85); -lean_dec(x_21); -x_86 = l_Lean_MVarId_falseOrByContra___closed__5; -x_87 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_88 = l_Lean_MVarId_applyConst(x_1, x_86, x_87, x_3, x_4, x_5, x_6, x_85); -if (lean_obj_tag(x_88) == 0) +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_72, 0); +x_84 = lean_ctor_get(x_72, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_72); +x_85 = l_Lean_Exception_isInterrupt(x_83); +if (x_85 == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -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); -lean_ctor_set(x_2, 0, x_89); -x_91 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_90); -return x_91; -} -else -{ -uint8_t x_92; -lean_free_object(x_2); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_92 = !lean_is_exclusive(x_88); -if (x_92 == 0) +uint8_t x_86; +x_86 = l_Lean_Exception_isRuntime(x_83); +if (x_86 == 0) { +lean_object* x_87; lean_object* x_88; +lean_dec(x_83); +x_87 = lean_box(0); +x_88 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_87, x_3, x_4, x_5, x_6, x_84); return x_88; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_88, 0); -x_94 = lean_ctor_get(x_88, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_88); -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; +lean_object* x_89; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_83); +lean_ctor_set(x_89, 1, x_84); +return x_89; +} +} +else +{ +lean_object* x_90; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +return x_90; } } } } else { -lean_object* x_96; uint8_t x_97; -x_96 = lean_ctor_get(x_2, 0); -lean_inc(x_96); -lean_dec(x_2); -x_97 = lean_unbox(x_96); -lean_dec(x_96); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_98 = lean_ctor_get(x_21, 1); -lean_inc(x_98); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_21, 1); +lean_inc(x_91); lean_dec(x_21); -x_99 = l_Lean_MVarId_falseOrByContra___closed__3; -x_100 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +x_92 = l_Lean_MVarId_falseOrByContra___closed__5; +x_93 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_101 = l_Lean_MVarId_applyConst(x_1, x_99, x_100, x_3, x_4, x_5, x_6, x_98); -if (lean_obj_tag(x_101) == 0) +x_94 = l_Lean_MVarId_applyConst(x_1, x_92, x_93, x_3, x_4, x_5, x_6, x_91); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -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_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_102); -x_105 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_104, x_3, x_4, x_5, x_6, x_103); -return x_105; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +lean_ctor_set(x_2, 0, x_95); +x_97 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_96); +return x_97; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_106 = lean_ctor_get(x_101, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_108 = x_101; -} else { - lean_dec_ref(x_101); - x_108 = lean_box(0); -} -x_109 = l_Lean_Exception_isRuntime(x_106); -if (x_109 == 0) +uint8_t x_98; +lean_free_object(x_2); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_98 = !lean_is_exclusive(x_94); +if (x_98 == 0) { -lean_object* x_110; lean_object* x_111; -lean_dec(x_108); -lean_dec(x_106); -x_110 = lean_box(0); -x_111 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_110, x_3, x_4, x_5, x_6, x_107); +return x_94; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_94, 0); +x_100 = lean_ctor_get(x_94, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_94); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; +} +} +} +} +else +{ +lean_object* x_102; uint8_t x_103; +x_102 = lean_ctor_get(x_2, 0); +lean_inc(x_102); +lean_dec(x_2); +x_103 = lean_unbox(x_102); +lean_dec(x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_21, 1); +lean_inc(x_104); +lean_dec(x_21); +x_105 = l_Lean_MVarId_falseOrByContra___closed__3; +x_106 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_107 = l_Lean_MVarId_applyConst(x_1, x_105, x_106, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_108); +x_111 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_110, x_3, x_4, x_5, x_6, x_109); return x_111; } else { -lean_object* x_112; +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_112 = lean_ctor_get(x_107, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_107, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_114 = x_107; +} else { + lean_dec_ref(x_107); + x_114 = lean_box(0); +} +x_115 = l_Lean_Exception_isInterrupt(x_112); +if (x_115 == 0) +{ +uint8_t x_116; +x_116 = l_Lean_Exception_isRuntime(x_112); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_114); +lean_dec(x_112); +x_117 = lean_box(0); +x_118 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_117, x_3, x_4, x_5, x_6, x_113); +return x_118; +} +else +{ +lean_object* x_119; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_108)) { - x_112 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_112 = x_108; + x_119 = x_114; } -lean_ctor_set(x_112, 0, x_106); -lean_ctor_set(x_112, 1, x_107); -return x_112; +lean_ctor_set(x_119, 0, x_112); +lean_ctor_set(x_119, 1, x_113); +return x_119; +} +} +else +{ +lean_object* x_120; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_114)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_114; +} +lean_ctor_set(x_120, 0, x_112); +lean_ctor_set(x_120, 1, x_113); +return x_120; } } } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_21, 1); -lean_inc(x_113); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_21, 1); +lean_inc(x_121); lean_dec(x_21); -x_114 = l_Lean_MVarId_falseOrByContra___closed__5; -x_115 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +x_122 = l_Lean_MVarId_falseOrByContra___closed__5; +x_123 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_116 = l_Lean_MVarId_applyConst(x_1, x_114, x_115, x_3, x_4, x_5, x_6, x_113); -if (lean_obj_tag(x_116) == 0) +x_124 = l_Lean_MVarId_applyConst(x_1, x_122, x_123, x_3, x_4, x_5, x_6, x_121); +if (lean_obj_tag(x_124) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -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_119 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_119, 0, x_117); -x_120 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_119, x_3, x_4, x_5, x_6, x_118); -return x_120; +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_127, 0, x_125); +x_128 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_127, x_3, x_4, x_5, x_6, x_126); +return x_128; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_121 = lean_ctor_get(x_116, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_116, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_123 = x_116; +x_129 = lean_ctor_get(x_124, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_124, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_131 = x_124; } else { - lean_dec_ref(x_116); - x_123 = lean_box(0); + lean_dec_ref(x_124); + x_131 = lean_box(0); } -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); } else { - x_124 = x_123; + x_132 = x_131; } -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; } } } @@ -1009,30 +1096,30 @@ return x_124; } else { -uint8_t x_125; +uint8_t x_133; 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_125 = !lean_is_exclusive(x_21); -if (x_125 == 0) +x_133 = !lean_is_exclusive(x_21); +if (x_133 == 0) { return x_21; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_21, 0); -x_127 = lean_ctor_get(x_21, 1); -lean_inc(x_127); -lean_inc(x_126); +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_21, 0); +x_135 = lean_ctor_get(x_21, 1); +lean_inc(x_135); +lean_inc(x_134); lean_dec(x_21); -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; +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; } } } @@ -1050,516 +1137,493 @@ return x_11; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_129 = lean_ctor_get(x_11, 1); -lean_inc(x_129); +lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_137 = lean_ctor_get(x_11, 1); +lean_inc(x_137); lean_dec(x_11); -x_130 = lean_ctor_get(x_13, 1); -lean_inc(x_130); +x_138 = lean_ctor_get(x_13, 1); +lean_inc(x_138); lean_dec(x_13); -x_131 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__1; -x_132 = lean_string_dec_eq(x_130, x_131); -lean_dec(x_130); -if (x_132 == 0) +x_139 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__1; +x_140 = lean_string_dec_eq(x_138, x_139); +lean_dec(x_138); +if (x_140 == 0) { -lean_object* x_133; +lean_object* x_141; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_133 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_129); -if (lean_obj_tag(x_133) == 0) +x_141 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_137); +if (lean_obj_tag(x_141) == 0) { -lean_object* x_134; uint8_t x_135; -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_unbox(x_134); -lean_dec(x_134); -if (x_135 == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_2); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -lean_dec(x_133); -x_137 = lean_box(0); -x_138 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_137, x_3, x_4, x_5, x_6, x_136); -return x_138; -} -else -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_139 = lean_ctor_get(x_133, 1); -lean_inc(x_139); -lean_dec(x_133); -x_140 = l_Lean_MVarId_falseOrByContra___closed__3; -x_141 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_142 = l_Lean_MVarId_applyConst(x_1, x_140, x_141, x_3, x_4, x_5, x_6, x_139); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); +lean_object* x_142; uint8_t x_143; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_unbox(x_142); lean_dec(x_142); -x_145 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_145, 0, x_143); +if (x_143 == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_2); +x_144 = lean_ctor_get(x_141, 1); +lean_inc(x_144); +lean_dec(x_141); +x_145 = lean_box(0); x_146 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_145, x_3, x_4, x_5, x_6, x_144); return x_146; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; -x_147 = lean_ctor_get(x_142, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_142, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_149 = x_142; -} else { - lean_dec_ref(x_142); - x_149 = lean_box(0); -} -x_150 = l_Lean_Exception_isRuntime(x_147); -if (x_150 == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_151; lean_object* x_152; -lean_dec(x_149); -lean_dec(x_147); -x_151 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get(x_141, 1); +lean_inc(x_147); +lean_dec(x_141); +x_148 = l_Lean_MVarId_falseOrByContra___closed__3; +x_149 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_152 = l_Lean_MVarId_applyConst(x_1, x_151, x_141, x_3, x_4, x_5, x_6, x_148); -if (lean_obj_tag(x_152) == 0) +x_150 = l_Lean_MVarId_applyConst(x_1, x_148, x_149, x_3, x_4, x_5, x_6, x_147); +if (lean_obj_tag(x_150) == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_153); -x_156 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_155, x_3, x_4, x_5, x_6, x_154); -return x_156; +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_153, 0, x_151); +x_154 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_153, x_3, x_4, x_5, x_6, x_152); +return x_154; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_157 = lean_ctor_get(x_152, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_152, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_159 = x_152; +lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_155 = lean_ctor_get(x_150, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_150, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_157 = x_150; } else { - lean_dec_ref(x_152); - x_159 = lean_box(0); + lean_dec_ref(x_150); + x_157 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); -} else { - x_160 = x_159; -} -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; -} -} -else +x_158 = l_Lean_Exception_isInterrupt(x_155); +if (x_158 == 0) { -lean_object* x_161; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -if (lean_is_scalar(x_149)) { - x_161 = lean_alloc_ctor(1, 2, 0); -} else { - x_161 = x_149; -} -lean_ctor_set(x_161, 0, x_147); -lean_ctor_set(x_161, 1, x_148); -return x_161; -} -} -} -else +uint8_t x_159; +x_159 = l_Lean_Exception_isRuntime(x_155); +if (x_159 == 0) { -lean_object* x_162; lean_object* x_163; uint8_t x_164; -x_162 = lean_ctor_get(x_2, 0); +lean_object* x_160; lean_object* x_161; +lean_dec(x_157); +lean_dec(x_155); +x_160 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_161 = l_Lean_MVarId_applyConst(x_1, x_160, x_149, x_3, x_4, x_5, x_6, x_156); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_164, 0, x_162); +x_165 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_164, x_3, x_4, x_5, x_6, x_163); +return x_165; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_166 = lean_ctor_get(x_161, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_161, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_168 = x_161; +} else { + lean_dec_ref(x_161); + 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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_157)) { + x_170 = lean_alloc_ctor(1, 2, 0); +} else { + x_170 = x_157; +} +lean_ctor_set(x_170, 0, x_155); +lean_ctor_set(x_170, 1, x_156); +return x_170; +} +} +else +{ +lean_object* x_171; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_157)) { + x_171 = lean_alloc_ctor(1, 2, 0); +} else { + x_171 = x_157; +} +lean_ctor_set(x_171, 0, x_155); +lean_ctor_set(x_171, 1, x_156); +return x_171; +} +} +} +else +{ +lean_object* x_172; lean_object* x_173; uint8_t x_174; +x_172 = lean_ctor_get(x_2, 0); +lean_inc(x_172); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); - x_163 = x_2; + x_173 = x_2; } else { lean_dec_ref(x_2); - x_163 = lean_box(0); + x_173 = lean_box(0); } -x_164 = lean_unbox(x_162); -lean_dec(x_162); -if (x_164 == 0) +x_174 = lean_unbox(x_172); +lean_dec(x_172); +if (x_174 == 0) { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_165 = lean_ctor_get(x_133, 1); -lean_inc(x_165); -lean_dec(x_133); -x_166 = l_Lean_MVarId_falseOrByContra___closed__3; -x_167 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_175 = lean_ctor_get(x_141, 1); +lean_inc(x_175); +lean_dec(x_141); +x_176 = l_Lean_MVarId_falseOrByContra___closed__3; +x_177 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_168 = l_Lean_MVarId_applyConst(x_1, x_166, x_167, x_3, x_4, x_5, x_6, x_165); -if (lean_obj_tag(x_168) == 0) +x_178 = l_Lean_MVarId_applyConst(x_1, x_176, x_177, x_3, x_4, x_5, x_6, x_175); +if (lean_obj_tag(x_178) == 0) { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec(x_168); -if (lean_is_scalar(x_163)) { - x_171 = lean_alloc_ctor(1, 1, 0); -} else { - x_171 = x_163; -} -lean_ctor_set(x_171, 0, x_169); -x_172 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_171, x_3, x_4, x_5, x_6, x_170); -return x_172; -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; -lean_dec(x_163); -x_173 = lean_ctor_get(x_168, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_168, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_175 = x_168; -} else { - lean_dec_ref(x_168); - x_175 = lean_box(0); -} -x_176 = l_Lean_Exception_isRuntime(x_173); -if (x_176 == 0) -{ -lean_object* x_177; lean_object* x_178; -lean_dec(x_175); -lean_dec(x_173); -x_177 = lean_box(0); -x_178 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_177, x_3, x_4, x_5, x_6, x_174); -return x_178; -} -else -{ -lean_object* x_179; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -if (lean_is_scalar(x_175)) { - x_179 = lean_alloc_ctor(1, 2, 0); -} else { - x_179 = x_175; -} -lean_ctor_set(x_179, 0, x_173); -lean_ctor_set(x_179, 1, x_174); -return x_179; -} -} -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_180 = lean_ctor_get(x_133, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); lean_inc(x_180); -lean_dec(x_133); -x_181 = l_Lean_MVarId_falseOrByContra___closed__5; -x_182 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_183 = l_Lean_MVarId_applyConst(x_1, x_181, x_182, x_3, x_4, x_5, x_6, x_180); -if (lean_obj_tag(x_183) == 0) -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -lean_dec(x_183); -if (lean_is_scalar(x_163)) { - x_186 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_178); +if (lean_is_scalar(x_173)) { + x_181 = lean_alloc_ctor(1, 1, 0); } else { - x_186 = x_163; + x_181 = x_173; } -lean_ctor_set(x_186, 0, x_184); -x_187 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_186, x_3, x_4, x_5, x_6, x_185); -return x_187; +lean_ctor_set(x_181, 0, x_179); +x_182 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_181, x_3, x_4, x_5, x_6, x_180); +return x_182; } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_163); +lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +lean_dec(x_173); +x_183 = lean_ctor_get(x_178, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_178, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_185 = x_178; +} else { + lean_dec_ref(x_178); + x_185 = lean_box(0); +} +x_186 = l_Lean_Exception_isInterrupt(x_183); +if (x_186 == 0) +{ +uint8_t x_187; +x_187 = l_Lean_Exception_isRuntime(x_183); +if (x_187 == 0) +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_185); +lean_dec(x_183); +x_188 = lean_box(0); +x_189 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_188, x_3, x_4, x_5, x_6, x_184); +return x_189; +} +else +{ +lean_object* x_190; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_188 = lean_ctor_get(x_183, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_183, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_190 = x_183; +if (lean_is_scalar(x_185)) { + x_190 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_183); - x_190 = lean_box(0); + x_190 = x_185; } -if (lean_is_scalar(x_190)) { +lean_ctor_set(x_190, 0, x_183); +lean_ctor_set(x_190, 1, x_184); +return x_190; +} +} +else +{ +lean_object* x_191; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_185)) { x_191 = lean_alloc_ctor(1, 2, 0); } else { - x_191 = x_190; + x_191 = x_185; } -lean_ctor_set(x_191, 0, x_188); -lean_ctor_set(x_191, 1, x_189); +lean_ctor_set(x_191, 0, x_183); +lean_ctor_set(x_191, 1, x_184); return x_191; } } } -} -} else { lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_192 = lean_ctor_get(x_141, 1); +lean_inc(x_192); +lean_dec(x_141); +x_193 = l_Lean_MVarId_falseOrByContra___closed__5; +x_194 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_195 = l_Lean_MVarId_applyConst(x_1, x_193, x_194, x_3, x_4, x_5, x_6, x_192); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +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); +if (lean_is_scalar(x_173)) { + x_198 = lean_alloc_ctor(1, 1, 0); +} else { + x_198 = x_173; +} +lean_ctor_set(x_198, 0, x_196); +x_199 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_198, x_3, x_4, x_5, x_6, x_197); +return x_199; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_173); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_200 = lean_ctor_get(x_195, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_195, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; +} +} +} +} +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; 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_192 = lean_ctor_get(x_133, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_133, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_194 = x_133; +x_204 = lean_ctor_get(x_141, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_141, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_206 = x_141; } else { - lean_dec_ref(x_133); - x_194 = lean_box(0); + lean_dec_ref(x_141); + x_206 = lean_box(0); } -if (lean_is_scalar(x_194)) { - x_195 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(1, 2, 0); } else { - x_195 = x_194; + x_207 = x_206; } -lean_ctor_set(x_195, 0, x_192); -lean_ctor_set(x_195, 1, x_193); -return x_195; +lean_ctor_set(x_207, 0, x_204); +lean_ctor_set(x_207, 1, x_205); +return x_207; } } else { -lean_object* x_196; +lean_object* x_208; lean_dec(x_12); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_196 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_196, 0, x_1); -lean_ctor_set(x_196, 1, x_129); -return x_196; +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_1); +lean_ctor_set(x_208, 1, x_137); +return x_208; } } } else { -lean_object* x_197; lean_object* x_198; +lean_object* x_209; lean_object* x_210; lean_dec(x_14); lean_dec(x_13); -x_197 = lean_ctor_get(x_11, 1); -lean_inc(x_197); +x_209 = lean_ctor_get(x_11, 1); +lean_inc(x_209); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_198 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_197); -if (lean_obj_tag(x_198) == 0) +x_210 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_209); +if (lean_obj_tag(x_210) == 0) { -lean_object* x_199; uint8_t x_200; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_unbox(x_199); -lean_dec(x_199); -if (x_200 == 0) +lean_object* x_211; uint8_t x_212; +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_unbox(x_211); +lean_dec(x_211); +if (x_212 == 0) { -lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_dec(x_2); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -lean_dec(x_198); -x_202 = lean_box(0); -x_203 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_202, x_3, x_4, x_5, x_6, x_201); -return x_203; +x_213 = lean_ctor_get(x_210, 1); +lean_inc(x_213); +lean_dec(x_210); +x_214 = lean_box(0); +x_215 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_214, x_3, x_4, x_5, x_6, x_213); +return x_215; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_204 = lean_ctor_get(x_198, 1); -lean_inc(x_204); -lean_dec(x_198); -x_205 = l_Lean_MVarId_falseOrByContra___closed__3; -x_206 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_216 = lean_ctor_get(x_210, 1); +lean_inc(x_216); +lean_dec(x_210); +x_217 = l_Lean_MVarId_falseOrByContra___closed__3; +x_218 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_207 = l_Lean_MVarId_applyConst(x_1, x_205, x_206, x_3, x_4, x_5, x_6, x_204); -if (lean_obj_tag(x_207) == 0) +x_219 = l_Lean_MVarId_applyConst(x_1, x_217, x_218, x_3, x_4, x_5, x_6, x_216); +if (lean_obj_tag(x_219) == 0) { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec(x_207); -x_210 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_210, 0, x_208); -x_211 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_210, x_3, x_4, x_5, x_6, x_209); -return x_211; +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +lean_dec(x_219); +x_222 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_222, 0, x_220); +x_223 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_222, x_3, x_4, x_5, x_6, x_221); +return x_223; } else { -uint8_t x_212; -x_212 = !lean_is_exclusive(x_207); -if (x_212 == 0) +uint8_t x_224; +x_224 = !lean_is_exclusive(x_219); +if (x_224 == 0) { -lean_object* x_213; lean_object* x_214; uint8_t x_215; -x_213 = lean_ctor_get(x_207, 0); -x_214 = lean_ctor_get(x_207, 1); -x_215 = l_Lean_Exception_isRuntime(x_213); -if (x_215 == 0) +lean_object* x_225; lean_object* x_226; uint8_t x_227; +x_225 = lean_ctor_get(x_219, 0); +x_226 = lean_ctor_get(x_219, 1); +x_227 = l_Lean_Exception_isInterrupt(x_225); +if (x_227 == 0) { -lean_object* x_216; lean_object* x_217; -lean_free_object(x_207); -lean_dec(x_213); -x_216 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_217 = l_Lean_MVarId_applyConst(x_1, x_216, x_206, x_3, x_4, x_5, x_6, x_214); -if (lean_obj_tag(x_217) == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_220, 0, x_218); -x_221 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_220, x_3, x_4, x_5, x_6, x_219); -return x_221; -} -else -{ -uint8_t x_222; -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_217); -if (x_222 == 0) -{ -return x_217; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_217, 0); -x_224 = lean_ctor_get(x_217, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_217); -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_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_207; -} -} -else -{ -lean_object* x_226; lean_object* x_227; uint8_t x_228; -x_226 = lean_ctor_get(x_207, 0); -x_227 = lean_ctor_get(x_207, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_207); -x_228 = l_Lean_Exception_isRuntime(x_226); +uint8_t x_228; +x_228 = l_Lean_Exception_isRuntime(x_225); if (x_228 == 0) { lean_object* x_229; lean_object* x_230; -lean_dec(x_226); +lean_free_object(x_219); +lean_dec(x_225); x_229 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_230 = l_Lean_MVarId_applyConst(x_1, x_229, x_206, x_3, x_4, x_5, x_6, x_227); +x_230 = l_Lean_MVarId_applyConst(x_1, x_229, x_218, x_3, x_4, x_5, x_6, x_226); if (lean_obj_tag(x_230) == 0) { lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; @@ -1575,669 +1639,741 @@ return x_234; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +uint8_t x_235; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_235 = lean_ctor_get(x_230, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_230, 1); +x_235 = !lean_is_exclusive(x_230); +if (x_235 == 0) +{ +return x_230; +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_236 = lean_ctor_get(x_230, 0); +x_237 = lean_ctor_get(x_230, 1); +lean_inc(x_237); lean_inc(x_236); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - x_237 = x_230; -} else { - lean_dec_ref(x_230); - 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); +lean_dec(x_230); +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_236); +lean_ctor_set(x_238, 1, x_237); return x_238; } } +} else { -lean_object* x_239; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_226); -lean_ctor_set(x_239, 1, x_227); -return x_239; -} -} +return x_219; } } else { -uint8_t x_240; -x_240 = !lean_is_exclusive(x_2); -if (x_240 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_219; +} +} +else { -lean_object* x_241; uint8_t x_242; -x_241 = lean_ctor_get(x_2, 0); -x_242 = lean_unbox(x_241); -lean_dec(x_241); +lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_239 = lean_ctor_get(x_219, 0); +x_240 = lean_ctor_get(x_219, 1); +lean_inc(x_240); +lean_inc(x_239); +lean_dec(x_219); +x_241 = l_Lean_Exception_isInterrupt(x_239); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = l_Lean_Exception_isRuntime(x_239); if (x_242 == 0) { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_243 = lean_ctor_get(x_198, 1); -lean_inc(x_243); -lean_dec(x_198); -x_244 = l_Lean_MVarId_falseOrByContra___closed__3; -x_245 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_243; lean_object* x_244; +lean_dec(x_239); +x_243 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_246 = l_Lean_MVarId_applyConst(x_1, x_244, x_245, x_3, x_4, x_5, x_6, x_243); -if (lean_obj_tag(x_246) == 0) +x_244 = l_Lean_MVarId_applyConst(x_1, x_243, x_218, x_3, x_4, x_5, x_6, x_240); +if (lean_obj_tag(x_244) == 0) { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -lean_ctor_set(x_2, 0, x_247); -x_249 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_248); -return x_249; -} -else -{ -uint8_t x_250; -lean_free_object(x_2); -x_250 = !lean_is_exclusive(x_246); -if (x_250 == 0) -{ -lean_object* x_251; lean_object* x_252; uint8_t x_253; -x_251 = lean_ctor_get(x_246, 0); -x_252 = lean_ctor_get(x_246, 1); -x_253 = l_Lean_Exception_isRuntime(x_251); -if (x_253 == 0) -{ -lean_object* x_254; lean_object* x_255; -lean_free_object(x_246); -lean_dec(x_251); -x_254 = lean_box(0); -x_255 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_254, x_3, x_4, x_5, x_6, x_252); -return x_255; +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +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 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_247, 0, x_245); +x_248 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_247, x_3, x_4, x_5, x_6, x_246); +return x_248; } else { +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_246; +x_249 = lean_ctor_get(x_244, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_244, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_251 = x_244; +} else { + lean_dec_ref(x_244); + x_251 = lean_box(0); +} +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_251; +} +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); +return x_252; } } else { -lean_object* x_256; lean_object* x_257; uint8_t x_258; -x_256 = lean_ctor_get(x_246, 0); -x_257 = lean_ctor_get(x_246, 1); -lean_inc(x_257); -lean_inc(x_256); -lean_dec(x_246); -x_258 = l_Lean_Exception_isRuntime(x_256); -if (x_258 == 0) +lean_object* x_253; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_239); +lean_ctor_set(x_253, 1, x_240); +return x_253; +} +} +else { -lean_object* x_259; lean_object* x_260; +lean_object* x_254; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_239); +lean_ctor_set(x_254, 1, x_240); +return x_254; +} +} +} +} +else +{ +uint8_t x_255; +x_255 = !lean_is_exclusive(x_2); +if (x_255 == 0) +{ +lean_object* x_256; uint8_t x_257; +x_256 = lean_ctor_get(x_2, 0); +x_257 = lean_unbox(x_256); lean_dec(x_256); -x_259 = lean_box(0); -x_260 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_259, x_3, x_4, x_5, x_6, x_257); -return x_260; +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_258 = lean_ctor_get(x_210, 1); +lean_inc(x_258); +lean_dec(x_210); +x_259 = l_Lean_MVarId_falseOrByContra___closed__3; +x_260 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_261 = l_Lean_MVarId_applyConst(x_1, x_259, x_260, x_3, x_4, x_5, x_6, x_258); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; +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); +lean_ctor_set(x_2, 0, x_262); +x_264 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_263); +return x_264; +} +else +{ +uint8_t x_265; +lean_free_object(x_2); +x_265 = !lean_is_exclusive(x_261); +if (x_265 == 0) +{ +lean_object* x_266; lean_object* x_267; uint8_t x_268; +x_266 = lean_ctor_get(x_261, 0); +x_267 = lean_ctor_get(x_261, 1); +x_268 = l_Lean_Exception_isInterrupt(x_266); +if (x_268 == 0) +{ +uint8_t x_269; +x_269 = l_Lean_Exception_isRuntime(x_266); +if (x_269 == 0) +{ +lean_object* x_270; lean_object* x_271; +lean_free_object(x_261); +lean_dec(x_266); +x_270 = lean_box(0); +x_271 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_270, x_3, x_4, x_5, x_6, x_267); +return x_271; } else { -lean_object* x_261; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_261 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_261, 0, x_256); -lean_ctor_set(x_261, 1, x_257); return x_261; } } +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_261; } } else { -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_262 = lean_ctor_get(x_198, 1); -lean_inc(x_262); -lean_dec(x_198); -x_263 = l_Lean_MVarId_falseOrByContra___closed__5; -x_264 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_272; lean_object* x_273; uint8_t x_274; +x_272 = lean_ctor_get(x_261, 0); +x_273 = lean_ctor_get(x_261, 1); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_261); +x_274 = l_Lean_Exception_isInterrupt(x_272); +if (x_274 == 0) +{ +uint8_t x_275; +x_275 = l_Lean_Exception_isRuntime(x_272); +if (x_275 == 0) +{ +lean_object* x_276; lean_object* x_277; +lean_dec(x_272); +x_276 = lean_box(0); +x_277 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_276, x_3, x_4, x_5, x_6, x_273); +return x_277; +} +else +{ +lean_object* x_278; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_278 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_278, 0, x_272); +lean_ctor_set(x_278, 1, x_273); +return x_278; +} +} +else +{ +lean_object* x_279; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_272); +lean_ctor_set(x_279, 1, x_273); +return x_279; +} +} +} +} +else +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_280 = lean_ctor_get(x_210, 1); +lean_inc(x_280); +lean_dec(x_210); +x_281 = l_Lean_MVarId_falseOrByContra___closed__5; +x_282 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_265 = l_Lean_MVarId_applyConst(x_1, x_263, x_264, x_3, x_4, x_5, x_6, x_262); -if (lean_obj_tag(x_265) == 0) +x_283 = l_Lean_MVarId_applyConst(x_1, x_281, x_282, x_3, x_4, x_5, x_6, x_280); +if (lean_obj_tag(x_283) == 0) { -lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -lean_dec(x_265); -lean_ctor_set(x_2, 0, x_266); -x_268 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_267); -return x_268; +lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_284 = lean_ctor_get(x_283, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_283, 1); +lean_inc(x_285); +lean_dec(x_283); +lean_ctor_set(x_2, 0, x_284); +x_286 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_285); +return x_286; } else { -uint8_t x_269; +uint8_t x_287; lean_free_object(x_2); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_269 = !lean_is_exclusive(x_265); -if (x_269 == 0) +x_287 = !lean_is_exclusive(x_283); +if (x_287 == 0) { -return x_265; +return x_283; } else { -lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_270 = lean_ctor_get(x_265, 0); -x_271 = lean_ctor_get(x_265, 1); -lean_inc(x_271); -lean_inc(x_270); -lean_dec(x_265); -x_272 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_272, 0, x_270); -lean_ctor_set(x_272, 1, x_271); -return x_272; -} -} -} -} -else -{ -lean_object* x_273; uint8_t x_274; -x_273 = lean_ctor_get(x_2, 0); -lean_inc(x_273); -lean_dec(x_2); -x_274 = lean_unbox(x_273); -lean_dec(x_273); -if (x_274 == 0) -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_275 = lean_ctor_get(x_198, 1); -lean_inc(x_275); -lean_dec(x_198); -x_276 = l_Lean_MVarId_falseOrByContra___closed__3; -x_277 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_278 = l_Lean_MVarId_applyConst(x_1, x_276, x_277, x_3, x_4, x_5, x_6, x_275); -if (lean_obj_tag(x_278) == 0) -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_281, 0, x_279); -x_282 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_281, x_3, x_4, x_5, x_6, x_280); -return x_282; -} -else -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; -x_283 = lean_ctor_get(x_278, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_278, 1); -lean_inc(x_284); -if (lean_is_exclusive(x_278)) { - lean_ctor_release(x_278, 0); - lean_ctor_release(x_278, 1); - x_285 = x_278; -} else { - lean_dec_ref(x_278); - x_285 = lean_box(0); -} -x_286 = l_Lean_Exception_isRuntime(x_283); -if (x_286 == 0) -{ -lean_object* x_287; lean_object* x_288; -lean_dec(x_285); +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = lean_ctor_get(x_283, 0); +x_289 = lean_ctor_get(x_283, 1); +lean_inc(x_289); +lean_inc(x_288); lean_dec(x_283); -x_287 = lean_box(0); -x_288 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_287, x_3, x_4, x_5, x_6, x_284); -return x_288; +x_290 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_290, 0, x_288); +lean_ctor_set(x_290, 1, x_289); +return x_290; } -else -{ -lean_object* x_289; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -if (lean_is_scalar(x_285)) { - x_289 = lean_alloc_ctor(1, 2, 0); -} else { - x_289 = x_285; -} -lean_ctor_set(x_289, 0, x_283); -lean_ctor_set(x_289, 1, x_284); -return x_289; } } } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_290 = lean_ctor_get(x_198, 1); -lean_inc(x_290); -lean_dec(x_198); -x_291 = l_Lean_MVarId_falseOrByContra___closed__5; -x_292 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_291; uint8_t x_292; +x_291 = lean_ctor_get(x_2, 0); +lean_inc(x_291); +lean_dec(x_2); +x_292 = lean_unbox(x_291); +lean_dec(x_291); +if (x_292 == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_293 = lean_ctor_get(x_210, 1); +lean_inc(x_293); +lean_dec(x_210); +x_294 = l_Lean_MVarId_falseOrByContra___closed__3; +x_295 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_293 = l_Lean_MVarId_applyConst(x_1, x_291, x_292, x_3, x_4, x_5, x_6, x_290); -if (lean_obj_tag(x_293) == 0) +x_296 = l_Lean_MVarId_applyConst(x_1, x_294, x_295, x_3, x_4, x_5, x_6, x_293); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_293, 1); -lean_inc(x_295); -lean_dec(x_293); -x_296 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_296, 0, x_294); -x_297 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_296, x_3, x_4, x_5, x_6, x_295); -return x_297; -} -else -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_298 = lean_ctor_get(x_293, 0); +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); lean_inc(x_298); -x_299 = lean_ctor_get(x_293, 1); -lean_inc(x_299); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_300 = x_293; +lean_dec(x_296); +x_299 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_299, 0, x_297); +x_300 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_299, x_3, x_4, x_5, x_6, x_298); +return x_300; +} +else +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_301 = lean_ctor_get(x_296, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_296, 1); +lean_inc(x_302); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_303 = x_296; } else { - lean_dec_ref(x_293); - x_300 = lean_box(0); + lean_dec_ref(x_296); + x_303 = lean_box(0); } -if (lean_is_scalar(x_300)) { - x_301 = lean_alloc_ctor(1, 2, 0); -} else { - x_301 = x_300; -} -lean_ctor_set(x_301, 0, x_298); -lean_ctor_set(x_301, 1, x_299); -return x_301; -} -} -} -} -} -} -else +x_304 = l_Lean_Exception_isInterrupt(x_301); +if (x_304 == 0) { -uint8_t x_302; -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_302 = !lean_is_exclusive(x_198); -if (x_302 == 0) -{ -return x_198; -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_303 = lean_ctor_get(x_198, 0); -x_304 = lean_ctor_get(x_198, 1); -lean_inc(x_304); -lean_inc(x_303); -lean_dec(x_198); -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_303); -lean_ctor_set(x_305, 1, x_304); -return x_305; -} -} -} -} -else +uint8_t x_305; +x_305 = l_Lean_Exception_isRuntime(x_301); +if (x_305 == 0) { lean_object* x_306; lean_object* x_307; +lean_dec(x_303); +lean_dec(x_301); +x_306 = lean_box(0); +x_307 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_306, x_3, x_4, x_5, x_6, x_302); +return x_307; +} +else +{ +lean_object* x_308; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_303)) { + x_308 = lean_alloc_ctor(1, 2, 0); +} else { + x_308 = x_303; +} +lean_ctor_set(x_308, 0, x_301); +lean_ctor_set(x_308, 1, x_302); +return x_308; +} +} +else +{ +lean_object* x_309; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_303)) { + x_309 = lean_alloc_ctor(1, 2, 0); +} else { + x_309 = x_303; +} +lean_ctor_set(x_309, 0, x_301); +lean_ctor_set(x_309, 1, x_302); +return x_309; +} +} +} +else +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +x_310 = lean_ctor_get(x_210, 1); +lean_inc(x_310); +lean_dec(x_210); +x_311 = l_Lean_MVarId_falseOrByContra___closed__5; +x_312 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_313 = l_Lean_MVarId_applyConst(x_1, x_311, x_312, x_3, x_4, x_5, x_6, x_310); +if (lean_obj_tag(x_313) == 0) +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_314 = lean_ctor_get(x_313, 0); +lean_inc(x_314); +x_315 = lean_ctor_get(x_313, 1); +lean_inc(x_315); +lean_dec(x_313); +x_316 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_316, 0, x_314); +x_317 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_316, x_3, x_4, x_5, x_6, x_315); +return x_317; +} +else +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_318 = lean_ctor_get(x_313, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_313, 1); +lean_inc(x_319); +if (lean_is_exclusive(x_313)) { + lean_ctor_release(x_313, 0); + lean_ctor_release(x_313, 1); + x_320 = x_313; +} else { + lean_dec_ref(x_313); + x_320 = lean_box(0); +} +if (lean_is_scalar(x_320)) { + x_321 = lean_alloc_ctor(1, 2, 0); +} else { + x_321 = x_320; +} +lean_ctor_set(x_321, 0, x_318); +lean_ctor_set(x_321, 1, x_319); +return x_321; +} +} +} +} +} +} +else +{ +uint8_t x_322; +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_322 = !lean_is_exclusive(x_210); +if (x_322 == 0) +{ +return x_210; +} +else +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_210, 0); +x_324 = lean_ctor_get(x_210, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_210); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +return x_325; +} +} +} +} +else +{ +lean_object* x_326; lean_object* x_327; lean_dec(x_13); -x_306 = lean_ctor_get(x_11, 1); -lean_inc(x_306); +x_326 = lean_ctor_get(x_11, 1); +lean_inc(x_326); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_307 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_306); -if (lean_obj_tag(x_307) == 0) +x_327 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_326); +if (lean_obj_tag(x_327) == 0) { -lean_object* x_308; uint8_t x_309; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_unbox(x_308); -lean_dec(x_308); -if (x_309 == 0) +lean_object* x_328; uint8_t x_329; +x_328 = lean_ctor_get(x_327, 0); +lean_inc(x_328); +x_329 = lean_unbox(x_328); +lean_dec(x_328); +if (x_329 == 0) { -lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_dec(x_2); -x_310 = lean_ctor_get(x_307, 1); -lean_inc(x_310); -lean_dec(x_307); -x_311 = lean_box(0); -x_312 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_311, x_3, x_4, x_5, x_6, x_310); -return x_312; +x_330 = lean_ctor_get(x_327, 1); +lean_inc(x_330); +lean_dec(x_327); +x_331 = lean_box(0); +x_332 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_331, x_3, x_4, x_5, x_6, x_330); +return x_332; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_313 = lean_ctor_get(x_307, 1); -lean_inc(x_313); -lean_dec(x_307); -x_314 = l_Lean_MVarId_falseOrByContra___closed__3; -x_315 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_316 = l_Lean_MVarId_applyConst(x_1, x_314, x_315, x_3, x_4, x_5, x_6, x_313); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_319, 0, x_317); -x_320 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_319, x_3, x_4, x_5, x_6, x_318); -return x_320; -} -else -{ -uint8_t x_321; -x_321 = !lean_is_exclusive(x_316); -if (x_321 == 0) -{ -lean_object* x_322; lean_object* x_323; uint8_t x_324; -x_322 = lean_ctor_get(x_316, 0); -x_323 = lean_ctor_get(x_316, 1); -x_324 = l_Lean_Exception_isRuntime(x_322); -if (x_324 == 0) -{ -lean_object* x_325; lean_object* x_326; -lean_free_object(x_316); -lean_dec(x_322); -x_325 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_326 = l_Lean_MVarId_applyConst(x_1, x_325, x_315, x_3, x_4, x_5, x_6, x_323); -if (lean_obj_tag(x_326) == 0) -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_327 = lean_ctor_get(x_326, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 1); -lean_inc(x_328); -lean_dec(x_326); -x_329 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_329, 0, x_327); -x_330 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_329, x_3, x_4, x_5, x_6, x_328); -return x_330; -} -else -{ -uint8_t x_331; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_331 = !lean_is_exclusive(x_326); -if (x_331 == 0) -{ -return x_326; -} -else -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_332 = lean_ctor_get(x_326, 0); -x_333 = lean_ctor_get(x_326, 1); +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_333 = lean_ctor_get(x_327, 1); lean_inc(x_333); -lean_inc(x_332); -lean_dec(x_326); -x_334 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_334, 0, x_332); -lean_ctor_set(x_334, 1, x_333); -return x_334; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_316; -} -} -else -{ -lean_object* x_335; lean_object* x_336; uint8_t x_337; -x_335 = lean_ctor_get(x_316, 0); -x_336 = lean_ctor_get(x_316, 1); -lean_inc(x_336); -lean_inc(x_335); -lean_dec(x_316); -x_337 = l_Lean_Exception_isRuntime(x_335); -if (x_337 == 0) -{ -lean_object* x_338; lean_object* x_339; -lean_dec(x_335); -x_338 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_dec(x_327); +x_334 = l_Lean_MVarId_falseOrByContra___closed__3; +x_335 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_339 = l_Lean_MVarId_applyConst(x_1, x_338, x_315, x_3, x_4, x_5, x_6, x_336); -if (lean_obj_tag(x_339) == 0) +x_336 = l_Lean_MVarId_applyConst(x_1, x_334, x_335, x_3, x_4, x_5, x_6, x_333); +if (lean_obj_tag(x_336) == 0) { -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -lean_dec(x_339); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_340); -x_343 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_342, x_3, x_4, x_5, x_6, x_341); -return x_343; +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; +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_340 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_339, x_3, x_4, x_5, x_6, x_338); +return x_340; } else { -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +uint8_t x_341; +x_341 = !lean_is_exclusive(x_336); +if (x_341 == 0) +{ +lean_object* x_342; lean_object* x_343; uint8_t x_344; +x_342 = lean_ctor_get(x_336, 0); +x_343 = lean_ctor_get(x_336, 1); +x_344 = l_Lean_Exception_isInterrupt(x_342); +if (x_344 == 0) +{ +uint8_t x_345; +x_345 = l_Lean_Exception_isRuntime(x_342); +if (x_345 == 0) +{ +lean_object* x_346; lean_object* x_347; +lean_free_object(x_336); +lean_dec(x_342); +x_346 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_347 = l_Lean_MVarId_applyConst(x_1, x_346, x_335, x_3, x_4, x_5, x_6, x_343); +if (lean_obj_tag(x_347) == 0) +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_348 = lean_ctor_get(x_347, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_347, 1); +lean_inc(x_349); +lean_dec(x_347); +x_350 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_350, 0, x_348); +x_351 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_350, x_3, x_4, x_5, x_6, x_349); +return x_351; +} +else +{ +uint8_t x_352; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_344 = lean_ctor_get(x_339, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_339, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_346 = x_339; -} else { - lean_dec_ref(x_339); - x_346 = lean_box(0); -} -if (lean_is_scalar(x_346)) { - x_347 = lean_alloc_ctor(1, 2, 0); -} else { - x_347 = x_346; -} -lean_ctor_set(x_347, 0, x_344); -lean_ctor_set(x_347, 1, x_345); +x_352 = !lean_is_exclusive(x_347); +if (x_352 == 0) +{ return x_347; } -} else { -lean_object* x_348; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_335); -lean_ctor_set(x_348, 1, x_336); -return x_348; -} -} -} -} -else -{ -uint8_t x_349; -x_349 = !lean_is_exclusive(x_2); -if (x_349 == 0) -{ -lean_object* x_350; uint8_t x_351; -x_350 = lean_ctor_get(x_2, 0); -x_351 = lean_unbox(x_350); -lean_dec(x_350); -if (x_351 == 0) -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; -x_352 = lean_ctor_get(x_307, 1); -lean_inc(x_352); -lean_dec(x_307); -x_353 = l_Lean_MVarId_falseOrByContra___closed__3; -x_354 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_355 = l_Lean_MVarId_applyConst(x_1, x_353, x_354, x_3, x_4, x_5, x_6, x_352); -if (lean_obj_tag(x_355) == 0) -{ -lean_object* x_356; lean_object* x_357; lean_object* x_358; -x_356 = lean_ctor_get(x_355, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_355, 1); -lean_inc(x_357); -lean_dec(x_355); -lean_ctor_set(x_2, 0, x_356); -x_358 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_357); -return x_358; -} -else -{ -uint8_t x_359; -lean_free_object(x_2); -x_359 = !lean_is_exclusive(x_355); -if (x_359 == 0) -{ -lean_object* x_360; lean_object* x_361; uint8_t x_362; -x_360 = lean_ctor_get(x_355, 0); -x_361 = lean_ctor_get(x_355, 1); -x_362 = l_Lean_Exception_isRuntime(x_360); -if (x_362 == 0) -{ -lean_object* x_363; lean_object* x_364; -lean_free_object(x_355); -lean_dec(x_360); -x_363 = lean_box(0); -x_364 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_363, x_3, x_4, x_5, x_6, x_361); -return x_364; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); +lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_353 = lean_ctor_get(x_347, 0); +x_354 = lean_ctor_get(x_347, 1); +lean_inc(x_354); +lean_inc(x_353); +lean_dec(x_347); +x_355 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_355, 0, x_353); +lean_ctor_set(x_355, 1, x_354); return x_355; } } +} else { -lean_object* x_365; lean_object* x_366; uint8_t x_367; -x_365 = lean_ctor_get(x_355, 0); -x_366 = lean_ctor_get(x_355, 1); -lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_355); -x_367 = l_Lean_Exception_isRuntime(x_365); -if (x_367 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_336; +} +} +else { -lean_object* x_368; lean_object* x_369; -lean_dec(x_365); -x_368 = lean_box(0); -x_369 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_368, x_3, x_4, x_5, x_6, x_366); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_336; +} +} +else +{ +lean_object* x_356; lean_object* x_357; uint8_t x_358; +x_356 = lean_ctor_get(x_336, 0); +x_357 = lean_ctor_get(x_336, 1); +lean_inc(x_357); +lean_inc(x_356); +lean_dec(x_336); +x_358 = l_Lean_Exception_isInterrupt(x_356); +if (x_358 == 0) +{ +uint8_t x_359; +x_359 = l_Lean_Exception_isRuntime(x_356); +if (x_359 == 0) +{ +lean_object* x_360; lean_object* x_361; +lean_dec(x_356); +x_360 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_361 = l_Lean_MVarId_applyConst(x_1, x_360, x_335, x_3, x_4, x_5, x_6, x_357); +if (lean_obj_tag(x_361) == 0) +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +lean_dec(x_361); +x_364 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_364, 0, x_362); +x_365 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_364, x_3, x_4, x_5, x_6, x_363); +return x_365; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_366 = lean_ctor_get(x_361, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_361, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_361)) { + lean_ctor_release(x_361, 0); + lean_ctor_release(x_361, 1); + x_368 = x_361; +} else { + lean_dec_ref(x_361); + x_368 = lean_box(0); +} +if (lean_is_scalar(x_368)) { + x_369 = lean_alloc_ctor(1, 2, 0); +} else { + x_369 = x_368; +} +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); return x_369; } +} else { lean_object* x_370; @@ -2247,203 +2383,370 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_365); -lean_ctor_set(x_370, 1, x_366); +lean_ctor_set(x_370, 0, x_356); +lean_ctor_set(x_370, 1, x_357); return x_370; } } +else +{ +lean_object* x_371; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_371 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_371, 0, x_356); +lean_ctor_set(x_371, 1, x_357); +return x_371; +} +} } } else { -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_371 = lean_ctor_get(x_307, 1); -lean_inc(x_371); -lean_dec(x_307); -x_372 = l_Lean_MVarId_falseOrByContra___closed__5; -x_373 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +uint8_t x_372; +x_372 = !lean_is_exclusive(x_2); +if (x_372 == 0) +{ +lean_object* x_373; uint8_t x_374; +x_373 = lean_ctor_get(x_2, 0); +x_374 = lean_unbox(x_373); +lean_dec(x_373); +if (x_374 == 0) +{ +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_375 = lean_ctor_get(x_327, 1); +lean_inc(x_375); +lean_dec(x_327); +x_376 = l_Lean_MVarId_falseOrByContra___closed__3; +x_377 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_374 = l_Lean_MVarId_applyConst(x_1, x_372, x_373, x_3, x_4, x_5, x_6, x_371); -if (lean_obj_tag(x_374) == 0) +x_378 = l_Lean_MVarId_applyConst(x_1, x_376, x_377, x_3, x_4, x_5, x_6, x_375); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_375; lean_object* x_376; lean_object* x_377; -x_375 = lean_ctor_get(x_374, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_374, 1); -lean_inc(x_376); -lean_dec(x_374); -lean_ctor_set(x_2, 0, x_375); -x_377 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_376); -return x_377; +lean_object* x_379; lean_object* x_380; lean_object* x_381; +x_379 = lean_ctor_get(x_378, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +lean_dec(x_378); +lean_ctor_set(x_2, 0, x_379); +x_381 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_380); +return x_381; } else { -uint8_t x_378; +uint8_t x_382; +lean_free_object(x_2); +x_382 = !lean_is_exclusive(x_378); +if (x_382 == 0) +{ +lean_object* x_383; lean_object* x_384; uint8_t x_385; +x_383 = lean_ctor_get(x_378, 0); +x_384 = lean_ctor_get(x_378, 1); +x_385 = l_Lean_Exception_isInterrupt(x_383); +if (x_385 == 0) +{ +uint8_t x_386; +x_386 = l_Lean_Exception_isRuntime(x_383); +if (x_386 == 0) +{ +lean_object* x_387; lean_object* x_388; +lean_free_object(x_378); +lean_dec(x_383); +x_387 = lean_box(0); +x_388 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_387, x_3, x_4, x_5, x_6, x_384); +return x_388; +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_378; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_378; +} +} +else +{ +lean_object* x_389; lean_object* x_390; uint8_t x_391; +x_389 = lean_ctor_get(x_378, 0); +x_390 = lean_ctor_get(x_378, 1); +lean_inc(x_390); +lean_inc(x_389); +lean_dec(x_378); +x_391 = l_Lean_Exception_isInterrupt(x_389); +if (x_391 == 0) +{ +uint8_t x_392; +x_392 = l_Lean_Exception_isRuntime(x_389); +if (x_392 == 0) +{ +lean_object* x_393; lean_object* x_394; +lean_dec(x_389); +x_393 = lean_box(0); +x_394 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_393, x_3, x_4, x_5, x_6, x_390); +return x_394; +} +else +{ +lean_object* x_395; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_389); +lean_ctor_set(x_395, 1, x_390); +return x_395; +} +} +else +{ +lean_object* x_396; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_389); +lean_ctor_set(x_396, 1, x_390); +return x_396; +} +} +} +} +else +{ +lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; +x_397 = lean_ctor_get(x_327, 1); +lean_inc(x_397); +lean_dec(x_327); +x_398 = l_Lean_MVarId_falseOrByContra___closed__5; +x_399 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_400 = l_Lean_MVarId_applyConst(x_1, x_398, x_399, x_3, x_4, x_5, x_6, x_397); +if (lean_obj_tag(x_400) == 0) +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +lean_ctor_set(x_2, 0, x_401); +x_403 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_402); +return x_403; +} +else +{ +uint8_t x_404; lean_free_object(x_2); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_378 = !lean_is_exclusive(x_374); -if (x_378 == 0) +x_404 = !lean_is_exclusive(x_400); +if (x_404 == 0) { -return x_374; +return x_400; } else { -lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_379 = lean_ctor_get(x_374, 0); -x_380 = lean_ctor_get(x_374, 1); -lean_inc(x_380); -lean_inc(x_379); -lean_dec(x_374); -x_381 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_381, 0, x_379); -lean_ctor_set(x_381, 1, x_380); -return x_381; +lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_405 = lean_ctor_get(x_400, 0); +x_406 = lean_ctor_get(x_400, 1); +lean_inc(x_406); +lean_inc(x_405); +lean_dec(x_400); +x_407 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_407, 0, x_405); +lean_ctor_set(x_407, 1, x_406); +return x_407; } } } } else { -lean_object* x_382; uint8_t x_383; -x_382 = lean_ctor_get(x_2, 0); -lean_inc(x_382); -lean_dec(x_2); -x_383 = lean_unbox(x_382); -lean_dec(x_382); -if (x_383 == 0) -{ -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_384 = lean_ctor_get(x_307, 1); -lean_inc(x_384); -lean_dec(x_307); -x_385 = l_Lean_MVarId_falseOrByContra___closed__3; -x_386 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_387 = l_Lean_MVarId_applyConst(x_1, x_385, x_386, x_3, x_4, x_5, x_6, x_384); -if (lean_obj_tag(x_387) == 0) -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); -lean_inc(x_389); -lean_dec(x_387); -x_390 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_390, 0, x_388); -x_391 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_390, x_3, x_4, x_5, x_6, x_389); -return x_391; -} -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; -x_392 = lean_ctor_get(x_387, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_387, 1); -lean_inc(x_393); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_394 = x_387; -} else { - lean_dec_ref(x_387); - x_394 = lean_box(0); -} -x_395 = l_Lean_Exception_isRuntime(x_392); -if (x_395 == 0) -{ -lean_object* x_396; lean_object* x_397; -lean_dec(x_394); -lean_dec(x_392); -x_396 = lean_box(0); -x_397 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_396, x_3, x_4, x_5, x_6, x_393); -return x_397; -} -else -{ -lean_object* x_398; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -if (lean_is_scalar(x_394)) { - x_398 = lean_alloc_ctor(1, 2, 0); -} else { - x_398 = x_394; -} -lean_ctor_set(x_398, 0, x_392); -lean_ctor_set(x_398, 1, x_393); -return x_398; -} -} -} -else -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_399 = lean_ctor_get(x_307, 1); -lean_inc(x_399); -lean_dec(x_307); -x_400 = l_Lean_MVarId_falseOrByContra___closed__5; -x_401 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_402 = l_Lean_MVarId_applyConst(x_1, x_400, x_401, x_3, x_4, x_5, x_6, x_399); -if (lean_obj_tag(x_402) == 0) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -x_405 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_405, 0, x_403); -x_406 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_405, x_3, x_4, x_5, x_6, x_404); -return x_406; -} -else -{ -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_407 = lean_ctor_get(x_402, 0); -lean_inc(x_407); -x_408 = lean_ctor_get(x_402, 1); +lean_object* x_408; uint8_t x_409; +x_408 = lean_ctor_get(x_2, 0); lean_inc(x_408); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - lean_ctor_release(x_402, 1); - x_409 = x_402; -} else { - lean_dec_ref(x_402); - x_409 = lean_box(0); +lean_dec(x_2); +x_409 = lean_unbox(x_408); +lean_dec(x_408); +if (x_409 == 0) +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_410 = lean_ctor_get(x_327, 1); +lean_inc(x_410); +lean_dec(x_327); +x_411 = l_Lean_MVarId_falseOrByContra___closed__3; +x_412 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_413 = l_Lean_MVarId_applyConst(x_1, x_411, x_412, x_3, x_4, x_5, x_6, x_410); +if (lean_obj_tag(x_413) == 0) +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_414 = lean_ctor_get(x_413, 0); +lean_inc(x_414); +x_415 = lean_ctor_get(x_413, 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_417 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_416, x_3, x_4, x_5, x_6, x_415); +return x_417; } -if (lean_is_scalar(x_409)) { - x_410 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; +x_418 = lean_ctor_get(x_413, 0); +lean_inc(x_418); +x_419 = lean_ctor_get(x_413, 1); +lean_inc(x_419); +if (lean_is_exclusive(x_413)) { + lean_ctor_release(x_413, 0); + lean_ctor_release(x_413, 1); + x_420 = x_413; } else { - x_410 = x_409; + lean_dec_ref(x_413); + x_420 = lean_box(0); } -lean_ctor_set(x_410, 0, x_407); -lean_ctor_set(x_410, 1, x_408); -return x_410; +x_421 = l_Lean_Exception_isInterrupt(x_418); +if (x_421 == 0) +{ +uint8_t x_422; +x_422 = l_Lean_Exception_isRuntime(x_418); +if (x_422 == 0) +{ +lean_object* x_423; lean_object* x_424; +lean_dec(x_420); +lean_dec(x_418); +x_423 = lean_box(0); +x_424 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_423, x_3, x_4, x_5, x_6, x_419); +return x_424; +} +else +{ +lean_object* x_425; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_420)) { + x_425 = lean_alloc_ctor(1, 2, 0); +} else { + x_425 = x_420; +} +lean_ctor_set(x_425, 0, x_418); +lean_ctor_set(x_425, 1, x_419); +return x_425; +} +} +else +{ +lean_object* x_426; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_420)) { + x_426 = lean_alloc_ctor(1, 2, 0); +} else { + x_426 = x_420; +} +lean_ctor_set(x_426, 0, x_418); +lean_ctor_set(x_426, 1, x_419); +return x_426; +} +} +} +else +{ +lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_427 = lean_ctor_get(x_327, 1); +lean_inc(x_427); +lean_dec(x_327); +x_428 = l_Lean_MVarId_falseOrByContra___closed__5; +x_429 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_430 = l_Lean_MVarId_applyConst(x_1, x_428, x_429, x_3, x_4, x_5, x_6, x_427); +if (lean_obj_tag(x_430) == 0) +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_431 = lean_ctor_get(x_430, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_430, 1); +lean_inc(x_432); +lean_dec(x_430); +x_433 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_433, 0, x_431); +x_434 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_433, x_3, x_4, x_5, x_6, x_432); +return x_434; +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_435 = lean_ctor_get(x_430, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_430, 1); +lean_inc(x_436); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_437 = x_430; +} else { + lean_dec_ref(x_430); + x_437 = lean_box(0); +} +if (lean_is_scalar(x_437)) { + x_438 = lean_alloc_ctor(1, 2, 0); +} else { + x_438 = x_437; +} +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_436); +return x_438; } } } @@ -2452,324 +2755,183 @@ return x_410; } else { -uint8_t x_411; +uint8_t x_439; 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_411 = !lean_is_exclusive(x_307); -if (x_411 == 0) +x_439 = !lean_is_exclusive(x_327); +if (x_439 == 0) { -return x_307; +return x_327; } else { -lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_412 = lean_ctor_get(x_307, 0); -x_413 = lean_ctor_get(x_307, 1); -lean_inc(x_413); -lean_inc(x_412); -lean_dec(x_307); -x_414 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_414, 0, x_412); -lean_ctor_set(x_414, 1, x_413); -return x_414; +lean_object* x_440; lean_object* x_441; lean_object* x_442; +x_440 = lean_ctor_get(x_327, 0); +x_441 = lean_ctor_get(x_327, 1); +lean_inc(x_441); +lean_inc(x_440); +lean_dec(x_327); +x_442 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_442, 0, x_440); +lean_ctor_set(x_442, 1, x_441); +return x_442; } } } } case 5: { -lean_object* x_415; -x_415 = lean_ctor_get(x_12, 0); -lean_inc(x_415); -if (lean_obj_tag(x_415) == 4) +lean_object* x_443; +x_443 = lean_ctor_get(x_12, 0); +lean_inc(x_443); +if (lean_obj_tag(x_443) == 4) { -lean_object* x_416; -x_416 = lean_ctor_get(x_415, 0); -lean_inc(x_416); -lean_dec(x_415); -if (lean_obj_tag(x_416) == 1) +lean_object* x_444; +x_444 = lean_ctor_get(x_443, 0); +lean_inc(x_444); +lean_dec(x_443); +if (lean_obj_tag(x_444) == 1) { -lean_object* x_417; -x_417 = lean_ctor_get(x_416, 0); -lean_inc(x_417); -if (lean_obj_tag(x_417) == 0) +lean_object* x_445; +x_445 = lean_ctor_get(x_444, 0); +lean_inc(x_445); +if (lean_obj_tag(x_445) == 0) { -lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; -x_418 = lean_ctor_get(x_11, 1); -lean_inc(x_418); +lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; +x_446 = lean_ctor_get(x_11, 1); +lean_inc(x_446); lean_dec(x_11); -x_419 = lean_ctor_get(x_416, 1); -lean_inc(x_419); -lean_dec(x_416); -x_420 = l_Lean_MVarId_falseOrByContra___closed__6; -x_421 = lean_string_dec_eq(x_419, x_420); -lean_dec(x_419); -if (x_421 == 0) +x_447 = lean_ctor_get(x_444, 1); +lean_inc(x_447); +lean_dec(x_444); +x_448 = l_Lean_MVarId_falseOrByContra___closed__6; +x_449 = lean_string_dec_eq(x_447, x_448); +lean_dec(x_447); +if (x_449 == 0) { -lean_object* x_422; +lean_object* x_450; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_422 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_418); -if (lean_obj_tag(x_422) == 0) +x_450 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_446); +if (lean_obj_tag(x_450) == 0) { -lean_object* x_423; uint8_t x_424; -x_423 = lean_ctor_get(x_422, 0); -lean_inc(x_423); -x_424 = lean_unbox(x_423); -lean_dec(x_423); -if (x_424 == 0) +lean_object* x_451; uint8_t x_452; +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_unbox(x_451); +lean_dec(x_451); +if (x_452 == 0) { -lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_dec(x_2); -x_425 = lean_ctor_get(x_422, 1); -lean_inc(x_425); -lean_dec(x_422); -x_426 = lean_box(0); -x_427 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_426, x_3, x_4, x_5, x_6, x_425); -return x_427; +x_453 = lean_ctor_get(x_450, 1); +lean_inc(x_453); +lean_dec(x_450); +x_454 = lean_box(0); +x_455 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_454, x_3, x_4, x_5, x_6, x_453); +return x_455; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_428 = lean_ctor_get(x_422, 1); -lean_inc(x_428); -lean_dec(x_422); -x_429 = l_Lean_MVarId_falseOrByContra___closed__3; -x_430 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_431 = l_Lean_MVarId_applyConst(x_1, x_429, x_430, x_3, x_4, x_5, x_6, x_428); -if (lean_obj_tag(x_431) == 0) -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_431, 1); -lean_inc(x_433); -lean_dec(x_431); -x_434 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_434, 0, x_432); -x_435 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_434, x_3, x_4, x_5, x_6, x_433); -return x_435; -} -else -{ -uint8_t x_436; -x_436 = !lean_is_exclusive(x_431); -if (x_436 == 0) -{ -lean_object* x_437; lean_object* x_438; uint8_t x_439; -x_437 = lean_ctor_get(x_431, 0); -x_438 = lean_ctor_get(x_431, 1); -x_439 = l_Lean_Exception_isRuntime(x_437); -if (x_439 == 0) -{ -lean_object* x_440; lean_object* x_441; -lean_free_object(x_431); -lean_dec(x_437); -x_440 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_441 = l_Lean_MVarId_applyConst(x_1, x_440, x_430, x_3, x_4, x_5, x_6, x_438); -if (lean_obj_tag(x_441) == 0) -{ -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_442 = lean_ctor_get(x_441, 0); -lean_inc(x_442); -x_443 = lean_ctor_get(x_441, 1); -lean_inc(x_443); -lean_dec(x_441); -x_444 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_444, 0, x_442); -x_445 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_444, x_3, x_4, x_5, x_6, x_443); -return x_445; -} -else -{ -uint8_t x_446; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_446 = !lean_is_exclusive(x_441); -if (x_446 == 0) -{ -return x_441; -} -else -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_441, 0); -x_448 = lean_ctor_get(x_441, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_441); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_447); -lean_ctor_set(x_449, 1, x_448); -return x_449; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_431; -} -} -else -{ -lean_object* x_450; lean_object* x_451; uint8_t x_452; -x_450 = lean_ctor_get(x_431, 0); -x_451 = lean_ctor_get(x_431, 1); -lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_431); -x_452 = l_Lean_Exception_isRuntime(x_450); -if (x_452 == 0) -{ -lean_object* x_453; lean_object* x_454; -lean_dec(x_450); -x_453 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_454 = l_Lean_MVarId_applyConst(x_1, x_453, x_430, x_3, x_4, x_5, x_6, x_451); -if (lean_obj_tag(x_454) == 0) -{ -lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_455 = lean_ctor_get(x_454, 0); -lean_inc(x_455); -x_456 = lean_ctor_get(x_454, 1); +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; +x_456 = lean_ctor_get(x_450, 1); lean_inc(x_456); -lean_dec(x_454); -x_457 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_457, 0, x_455); -x_458 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_457, x_3, x_4, x_5, x_6, x_456); -return x_458; -} -else +lean_dec(x_450); +x_457 = l_Lean_MVarId_falseOrByContra___closed__3; +x_458 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_459 = l_Lean_MVarId_applyConst(x_1, x_457, x_458, x_3, x_4, x_5, x_6, x_456); +if (lean_obj_tag(x_459) == 0) { -lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_459 = lean_ctor_get(x_454, 0); -lean_inc(x_459); -x_460 = lean_ctor_get(x_454, 1); +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_460 = lean_ctor_get(x_459, 0); lean_inc(x_460); -if (lean_is_exclusive(x_454)) { - lean_ctor_release(x_454, 0); - lean_ctor_release(x_454, 1); - x_461 = x_454; -} else { - lean_dec_ref(x_454); - x_461 = lean_box(0); -} -if (lean_is_scalar(x_461)) { - x_462 = lean_alloc_ctor(1, 2, 0); -} else { - x_462 = x_461; -} -lean_ctor_set(x_462, 0, x_459); -lean_ctor_set(x_462, 1, x_460); -return x_462; -} -} -else -{ -lean_object* x_463; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_463 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_463, 0, x_450); -lean_ctor_set(x_463, 1, x_451); +x_461 = lean_ctor_get(x_459, 1); +lean_inc(x_461); +lean_dec(x_459); +x_462 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_462, 0, x_460); +x_463 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_462, x_3, x_4, x_5, x_6, x_461); return x_463; } -} -} -} else { uint8_t x_464; -x_464 = !lean_is_exclusive(x_2); +x_464 = !lean_is_exclusive(x_459); if (x_464 == 0) { -lean_object* x_465; uint8_t x_466; -x_465 = lean_ctor_get(x_2, 0); -x_466 = lean_unbox(x_465); -lean_dec(x_465); -if (x_466 == 0) +lean_object* x_465; lean_object* x_466; uint8_t x_467; +x_465 = lean_ctor_get(x_459, 0); +x_466 = lean_ctor_get(x_459, 1); +x_467 = l_Lean_Exception_isInterrupt(x_465); +if (x_467 == 0) { -lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; -x_467 = lean_ctor_get(x_422, 1); -lean_inc(x_467); -lean_dec(x_422); -x_468 = l_Lean_MVarId_falseOrByContra___closed__3; -x_469 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +uint8_t x_468; +x_468 = l_Lean_Exception_isRuntime(x_465); +if (x_468 == 0) +{ +lean_object* x_469; lean_object* x_470; +lean_free_object(x_459); +lean_dec(x_465); +x_469 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_470 = l_Lean_MVarId_applyConst(x_1, x_468, x_469, x_3, x_4, x_5, x_6, x_467); +x_470 = l_Lean_MVarId_applyConst(x_1, x_469, x_458, x_3, x_4, x_5, x_6, x_466); if (lean_obj_tag(x_470) == 0) { -lean_object* x_471; lean_object* x_472; lean_object* x_473; +lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; x_471 = lean_ctor_get(x_470, 0); lean_inc(x_471); x_472 = lean_ctor_get(x_470, 1); lean_inc(x_472); lean_dec(x_470); -lean_ctor_set(x_2, 0, x_471); -x_473 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_472); -return x_473; +x_473 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_473, 0, x_471); +x_474 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_473, x_3, x_4, x_5, x_6, x_472); +return x_474; } else { -uint8_t x_474; -lean_free_object(x_2); -x_474 = !lean_is_exclusive(x_470); -if (x_474 == 0) +uint8_t x_475; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_475 = !lean_is_exclusive(x_470); +if (x_475 == 0) { -lean_object* x_475; lean_object* x_476; uint8_t x_477; -x_475 = lean_ctor_get(x_470, 0); -x_476 = lean_ctor_get(x_470, 1); -x_477 = l_Lean_Exception_isRuntime(x_475); -if (x_477 == 0) +return x_470; +} +else { -lean_object* x_478; lean_object* x_479; -lean_free_object(x_470); -lean_dec(x_475); -x_478 = lean_box(0); -x_479 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_478, x_3, x_4, x_5, x_6, x_476); -return x_479; +lean_object* x_476; lean_object* x_477; lean_object* x_478; +x_476 = lean_ctor_get(x_470, 0); +x_477 = lean_ctor_get(x_470, 1); +lean_inc(x_477); +lean_inc(x_476); +lean_dec(x_470); +x_478 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_478, 0, x_476); +lean_ctor_set(x_478, 1, x_477); +return x_478; +} +} } else { @@ -2778,872 +2940,1185 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_470; +return x_459; } } else { -lean_object* x_480; lean_object* x_481; uint8_t x_482; -x_480 = lean_ctor_get(x_470, 0); -x_481 = lean_ctor_get(x_470, 1); -lean_inc(x_481); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_459; +} +} +else +{ +lean_object* x_479; lean_object* x_480; uint8_t x_481; +x_479 = lean_ctor_get(x_459, 0); +x_480 = lean_ctor_get(x_459, 1); lean_inc(x_480); -lean_dec(x_470); -x_482 = l_Lean_Exception_isRuntime(x_480); +lean_inc(x_479); +lean_dec(x_459); +x_481 = l_Lean_Exception_isInterrupt(x_479); +if (x_481 == 0) +{ +uint8_t x_482; +x_482 = l_Lean_Exception_isRuntime(x_479); if (x_482 == 0) { lean_object* x_483; lean_object* x_484; -lean_dec(x_480); -x_483 = lean_box(0); -x_484 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_483, x_3, x_4, x_5, x_6, x_481); -return x_484; -} -else -{ -lean_object* x_485; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_480); -lean_ctor_set(x_485, 1, x_481); -return x_485; -} -} -} -} -else -{ -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_486 = lean_ctor_get(x_422, 1); -lean_inc(x_486); -lean_dec(x_422); -x_487 = l_Lean_MVarId_falseOrByContra___closed__5; -x_488 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_dec(x_479); +x_483 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_489 = l_Lean_MVarId_applyConst(x_1, x_487, x_488, x_3, x_4, x_5, x_6, x_486); -if (lean_obj_tag(x_489) == 0) +x_484 = l_Lean_MVarId_applyConst(x_1, x_483, x_458, x_3, x_4, x_5, x_6, x_480); +if (lean_obj_tag(x_484) == 0) { -lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_490 = lean_ctor_get(x_489, 0); -lean_inc(x_490); -x_491 = lean_ctor_get(x_489, 1); -lean_inc(x_491); -lean_dec(x_489); -lean_ctor_set(x_2, 0, x_490); -x_492 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_491); -return x_492; +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +x_485 = lean_ctor_get(x_484, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); +lean_dec(x_484); +x_487 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_487, 0, x_485); +x_488 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_487, x_3, x_4, x_5, x_6, x_486); +return x_488; } else { -uint8_t x_493; +lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_489 = lean_ctor_get(x_484, 0); +lean_inc(x_489); +x_490 = lean_ctor_get(x_484, 1); +lean_inc(x_490); +if (lean_is_exclusive(x_484)) { + lean_ctor_release(x_484, 0); + lean_ctor_release(x_484, 1); + x_491 = x_484; +} else { + lean_dec_ref(x_484); + x_491 = lean_box(0); +} +if (lean_is_scalar(x_491)) { + x_492 = lean_alloc_ctor(1, 2, 0); +} else { + x_492 = x_491; +} +lean_ctor_set(x_492, 0, x_489); +lean_ctor_set(x_492, 1, x_490); +return x_492; +} +} +else +{ +lean_object* x_493; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_493, 0, x_479); +lean_ctor_set(x_493, 1, x_480); +return x_493; +} +} +else +{ +lean_object* x_494; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_494 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_494, 0, x_479); +lean_ctor_set(x_494, 1, x_480); +return x_494; +} +} +} +} +else +{ +uint8_t x_495; +x_495 = !lean_is_exclusive(x_2); +if (x_495 == 0) +{ +lean_object* x_496; uint8_t x_497; +x_496 = lean_ctor_get(x_2, 0); +x_497 = lean_unbox(x_496); +lean_dec(x_496); +if (x_497 == 0) +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_498 = lean_ctor_get(x_450, 1); +lean_inc(x_498); +lean_dec(x_450); +x_499 = l_Lean_MVarId_falseOrByContra___closed__3; +x_500 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_501 = l_Lean_MVarId_applyConst(x_1, x_499, x_500, x_3, x_4, x_5, x_6, x_498); +if (lean_obj_tag(x_501) == 0) +{ +lean_object* x_502; lean_object* x_503; lean_object* x_504; +x_502 = lean_ctor_get(x_501, 0); +lean_inc(x_502); +x_503 = lean_ctor_get(x_501, 1); +lean_inc(x_503); +lean_dec(x_501); +lean_ctor_set(x_2, 0, x_502); +x_504 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_503); +return x_504; +} +else +{ +uint8_t x_505; +lean_free_object(x_2); +x_505 = !lean_is_exclusive(x_501); +if (x_505 == 0) +{ +lean_object* x_506; lean_object* x_507; uint8_t x_508; +x_506 = lean_ctor_get(x_501, 0); +x_507 = lean_ctor_get(x_501, 1); +x_508 = l_Lean_Exception_isInterrupt(x_506); +if (x_508 == 0) +{ +uint8_t x_509; +x_509 = l_Lean_Exception_isRuntime(x_506); +if (x_509 == 0) +{ +lean_object* x_510; lean_object* x_511; +lean_free_object(x_501); +lean_dec(x_506); +x_510 = lean_box(0); +x_511 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_510, x_3, x_4, x_5, x_6, x_507); +return x_511; +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_501; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_501; +} +} +else +{ +lean_object* x_512; lean_object* x_513; uint8_t x_514; +x_512 = lean_ctor_get(x_501, 0); +x_513 = lean_ctor_get(x_501, 1); +lean_inc(x_513); +lean_inc(x_512); +lean_dec(x_501); +x_514 = l_Lean_Exception_isInterrupt(x_512); +if (x_514 == 0) +{ +uint8_t x_515; +x_515 = l_Lean_Exception_isRuntime(x_512); +if (x_515 == 0) +{ +lean_object* x_516; lean_object* x_517; +lean_dec(x_512); +x_516 = lean_box(0); +x_517 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_516, x_3, x_4, x_5, x_6, x_513); +return x_517; +} +else +{ +lean_object* x_518; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_518 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_518, 0, x_512); +lean_ctor_set(x_518, 1, x_513); +return x_518; +} +} +else +{ +lean_object* x_519; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_519 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_519, 0, x_512); +lean_ctor_set(x_519, 1, x_513); +return x_519; +} +} +} +} +else +{ +lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_520 = lean_ctor_get(x_450, 1); +lean_inc(x_520); +lean_dec(x_450); +x_521 = l_Lean_MVarId_falseOrByContra___closed__5; +x_522 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_523 = l_Lean_MVarId_applyConst(x_1, x_521, x_522, x_3, x_4, x_5, x_6, x_520); +if (lean_obj_tag(x_523) == 0) +{ +lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_524 = lean_ctor_get(x_523, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_523, 1); +lean_inc(x_525); +lean_dec(x_523); +lean_ctor_set(x_2, 0, x_524); +x_526 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_525); +return x_526; +} +else +{ +uint8_t x_527; lean_free_object(x_2); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_493 = !lean_is_exclusive(x_489); -if (x_493 == 0) +x_527 = !lean_is_exclusive(x_523); +if (x_527 == 0) { -return x_489; +return x_523; } else { -lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_494 = lean_ctor_get(x_489, 0); -x_495 = lean_ctor_get(x_489, 1); -lean_inc(x_495); -lean_inc(x_494); -lean_dec(x_489); -x_496 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_496, 0, x_494); -lean_ctor_set(x_496, 1, x_495); -return x_496; -} -} -} -} -else -{ -lean_object* x_497; uint8_t x_498; -x_497 = lean_ctor_get(x_2, 0); -lean_inc(x_497); -lean_dec(x_2); -x_498 = lean_unbox(x_497); -lean_dec(x_497); -if (x_498 == 0) -{ -lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; -x_499 = lean_ctor_get(x_422, 1); -lean_inc(x_499); -lean_dec(x_422); -x_500 = l_Lean_MVarId_falseOrByContra___closed__3; -x_501 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_502 = l_Lean_MVarId_applyConst(x_1, x_500, x_501, x_3, x_4, x_5, x_6, x_499); -if (lean_obj_tag(x_502) == 0) -{ -lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; -x_503 = lean_ctor_get(x_502, 0); -lean_inc(x_503); -x_504 = lean_ctor_get(x_502, 1); -lean_inc(x_504); -lean_dec(x_502); -x_505 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_505, 0, x_503); -x_506 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_505, x_3, x_4, x_5, x_6, x_504); -return x_506; -} -else -{ -lean_object* x_507; lean_object* x_508; lean_object* x_509; uint8_t x_510; -x_507 = lean_ctor_get(x_502, 0); -lean_inc(x_507); -x_508 = lean_ctor_get(x_502, 1); -lean_inc(x_508); -if (lean_is_exclusive(x_502)) { - lean_ctor_release(x_502, 0); - lean_ctor_release(x_502, 1); - x_509 = x_502; -} else { - lean_dec_ref(x_502); - x_509 = lean_box(0); -} -x_510 = l_Lean_Exception_isRuntime(x_507); -if (x_510 == 0) -{ -lean_object* x_511; lean_object* x_512; -lean_dec(x_509); -lean_dec(x_507); -x_511 = lean_box(0); -x_512 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_511, x_3, x_4, x_5, x_6, x_508); -return x_512; -} -else -{ -lean_object* x_513; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -if (lean_is_scalar(x_509)) { - x_513 = lean_alloc_ctor(1, 2, 0); -} else { - x_513 = x_509; -} -lean_ctor_set(x_513, 0, x_507); -lean_ctor_set(x_513, 1, x_508); -return x_513; -} -} -} -else -{ -lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -x_514 = lean_ctor_get(x_422, 1); -lean_inc(x_514); -lean_dec(x_422); -x_515 = l_Lean_MVarId_falseOrByContra___closed__5; -x_516 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_517 = l_Lean_MVarId_applyConst(x_1, x_515, x_516, x_3, x_4, x_5, x_6, x_514); -if (lean_obj_tag(x_517) == 0) -{ -lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; -x_518 = lean_ctor_get(x_517, 0); -lean_inc(x_518); -x_519 = lean_ctor_get(x_517, 1); -lean_inc(x_519); -lean_dec(x_517); -x_520 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_520, 0, x_518); -x_521 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_520, x_3, x_4, x_5, x_6, x_519); -return x_521; -} -else -{ -lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_522 = lean_ctor_get(x_517, 0); -lean_inc(x_522); -x_523 = lean_ctor_get(x_517, 1); -lean_inc(x_523); -if (lean_is_exclusive(x_517)) { - lean_ctor_release(x_517, 0); - lean_ctor_release(x_517, 1); - x_524 = x_517; -} else { - lean_dec_ref(x_517); - x_524 = lean_box(0); -} -if (lean_is_scalar(x_524)) { - x_525 = lean_alloc_ctor(1, 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 -{ -uint8_t x_526; -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_526 = !lean_is_exclusive(x_422); -if (x_526 == 0) -{ -return x_422; -} -else -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_422, 0); -x_528 = lean_ctor_get(x_422, 1); +lean_object* x_528; lean_object* x_529; lean_object* x_530; +x_528 = lean_ctor_get(x_523, 0); +x_529 = lean_ctor_get(x_523, 1); +lean_inc(x_529); lean_inc(x_528); -lean_inc(x_527); -lean_dec(x_422); -x_529 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_529, 0, x_527); -lean_ctor_set(x_529, 1, x_528); -return x_529; +lean_dec(x_523); +x_530 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_530, 0, x_528); +lean_ctor_set(x_530, 1, x_529); +return x_530; +} } } } else { -lean_object* x_530; uint8_t x_531; uint8_t x_532; uint8_t x_533; uint8_t x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; uint8_t x_538; uint8_t x_539; uint8_t x_540; uint8_t x_541; uint8_t x_542; uint8_t 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; uint8_t x_550; uint8_t x_551; lean_object* x_552; uint8_t x_553; lean_object* x_554; -lean_dec(x_12); -x_530 = lean_ctor_get(x_3, 0); -lean_inc(x_530); -x_531 = lean_ctor_get_uint8(x_530, 0); -x_532 = lean_ctor_get_uint8(x_530, 1); -x_533 = lean_ctor_get_uint8(x_530, 2); -x_534 = lean_ctor_get_uint8(x_530, 3); -x_535 = lean_ctor_get_uint8(x_530, 4); -x_536 = lean_ctor_get_uint8(x_530, 5); -x_537 = lean_ctor_get_uint8(x_530, 6); -x_538 = lean_ctor_get_uint8(x_530, 7); -x_539 = lean_ctor_get_uint8(x_530, 8); -x_540 = lean_ctor_get_uint8(x_530, 10); -x_541 = lean_ctor_get_uint8(x_530, 11); -x_542 = lean_ctor_get_uint8(x_530, 12); -lean_dec(x_530); -x_543 = 0; -x_544 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_544, 0, x_531); -lean_ctor_set_uint8(x_544, 1, x_532); -lean_ctor_set_uint8(x_544, 2, x_533); -lean_ctor_set_uint8(x_544, 3, x_534); -lean_ctor_set_uint8(x_544, 4, x_535); -lean_ctor_set_uint8(x_544, 5, x_536); -lean_ctor_set_uint8(x_544, 6, x_537); -lean_ctor_set_uint8(x_544, 7, x_538); -lean_ctor_set_uint8(x_544, 8, x_539); -lean_ctor_set_uint8(x_544, 9, x_543); -lean_ctor_set_uint8(x_544, 10, x_540); -lean_ctor_set_uint8(x_544, 11, x_541); -lean_ctor_set_uint8(x_544, 12, x_542); -x_545 = lean_ctor_get(x_3, 1); -lean_inc(x_545); -x_546 = lean_ctor_get(x_3, 2); -lean_inc(x_546); -x_547 = lean_ctor_get(x_3, 3); -lean_inc(x_547); -x_548 = lean_ctor_get(x_3, 4); -lean_inc(x_548); -x_549 = lean_ctor_get(x_3, 5); -lean_inc(x_549); -x_550 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); -x_551 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); -x_552 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_552, 0, x_544); -lean_ctor_set(x_552, 1, x_545); -lean_ctor_set(x_552, 2, x_546); -lean_ctor_set(x_552, 3, x_547); -lean_ctor_set(x_552, 4, x_548); -lean_ctor_set(x_552, 5, x_549); -lean_ctor_set_uint8(x_552, sizeof(void*)*6, x_550); -lean_ctor_set_uint8(x_552, sizeof(void*)*6 + 1, x_551); -x_553 = 1; +lean_object* x_531; uint8_t x_532; +x_531 = lean_ctor_get(x_2, 0); +lean_inc(x_531); +lean_dec(x_2); +x_532 = lean_unbox(x_531); +lean_dec(x_531); +if (x_532 == 0) +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_533 = lean_ctor_get(x_450, 1); +lean_inc(x_533); +lean_dec(x_450); +x_534 = l_Lean_MVarId_falseOrByContra___closed__3; +x_535 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_554 = l_Lean_Meta_intro1Core(x_1, x_553, x_552, x_4, x_5, x_6, x_418); -if (lean_obj_tag(x_554) == 0) +lean_inc(x_3); +lean_inc(x_1); +x_536 = l_Lean_MVarId_applyConst(x_1, x_534, x_535, x_3, x_4, x_5, x_6, x_533); +if (lean_obj_tag(x_536) == 0) { -lean_object* x_555; lean_object* x_556; lean_object* x_557; -x_555 = lean_ctor_get(x_554, 0); +lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; +x_537 = lean_ctor_get(x_536, 0); +lean_inc(x_537); +x_538 = lean_ctor_get(x_536, 1); +lean_inc(x_538); +lean_dec(x_536); +x_539 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_539, 0, x_537); +x_540 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_539, x_3, x_4, x_5, x_6, x_538); +return x_540; +} +else +{ +lean_object* x_541; lean_object* x_542; lean_object* x_543; uint8_t x_544; +x_541 = lean_ctor_get(x_536, 0); +lean_inc(x_541); +x_542 = lean_ctor_get(x_536, 1); +lean_inc(x_542); +if (lean_is_exclusive(x_536)) { + lean_ctor_release(x_536, 0); + lean_ctor_release(x_536, 1); + x_543 = x_536; +} else { + lean_dec_ref(x_536); + x_543 = lean_box(0); +} +x_544 = l_Lean_Exception_isInterrupt(x_541); +if (x_544 == 0) +{ +uint8_t x_545; +x_545 = l_Lean_Exception_isRuntime(x_541); +if (x_545 == 0) +{ +lean_object* x_546; lean_object* x_547; +lean_dec(x_543); +lean_dec(x_541); +x_546 = lean_box(0); +x_547 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_546, x_3, x_4, x_5, x_6, x_542); +return x_547; +} +else +{ +lean_object* x_548; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_543)) { + x_548 = lean_alloc_ctor(1, 2, 0); +} else { + x_548 = x_543; +} +lean_ctor_set(x_548, 0, x_541); +lean_ctor_set(x_548, 1, x_542); +return x_548; +} +} +else +{ +lean_object* x_549; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_543)) { + x_549 = lean_alloc_ctor(1, 2, 0); +} else { + x_549 = x_543; +} +lean_ctor_set(x_549, 0, x_541); +lean_ctor_set(x_549, 1, x_542); +return x_549; +} +} +} +else +{ +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +x_550 = lean_ctor_get(x_450, 1); +lean_inc(x_550); +lean_dec(x_450); +x_551 = l_Lean_MVarId_falseOrByContra___closed__5; +x_552 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_553 = l_Lean_MVarId_applyConst(x_1, x_551, x_552, x_3, x_4, x_5, x_6, x_550); +if (lean_obj_tag(x_553) == 0) +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_554 = lean_ctor_get(x_553, 0); +lean_inc(x_554); +x_555 = lean_ctor_get(x_553, 1); lean_inc(x_555); -x_556 = lean_ctor_get(x_554, 1); -lean_inc(x_556); -lean_dec(x_554); -x_557 = lean_ctor_get(x_555, 1); -lean_inc(x_557); -lean_dec(x_555); -x_1 = x_557; -x_7 = x_556; +lean_dec(x_553); +x_556 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_556, 0, x_554); +x_557 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_556, x_3, x_4, x_5, x_6, x_555); +return x_557; +} +else +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_558 = lean_ctor_get(x_553, 0); +lean_inc(x_558); +x_559 = lean_ctor_get(x_553, 1); +lean_inc(x_559); +if (lean_is_exclusive(x_553)) { + lean_ctor_release(x_553, 0); + lean_ctor_release(x_553, 1); + x_560 = x_553; +} else { + lean_dec_ref(x_553); + x_560 = lean_box(0); +} +if (lean_is_scalar(x_560)) { + x_561 = lean_alloc_ctor(1, 2, 0); +} else { + x_561 = x_560; +} +lean_ctor_set(x_561, 0, x_558); +lean_ctor_set(x_561, 1, x_559); +return x_561; +} +} +} +} +} +} +else +{ +uint8_t x_562; +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_562 = !lean_is_exclusive(x_450); +if (x_562 == 0) +{ +return x_450; +} +else +{ +lean_object* x_563; lean_object* x_564; lean_object* x_565; +x_563 = lean_ctor_get(x_450, 0); +x_564 = lean_ctor_get(x_450, 1); +lean_inc(x_564); +lean_inc(x_563); +lean_dec(x_450); +x_565 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_565, 0, x_563); +lean_ctor_set(x_565, 1, x_564); +return x_565; +} +} +} +else +{ +lean_object* x_566; uint8_t x_567; uint8_t x_568; uint8_t x_569; uint8_t x_570; uint8_t x_571; uint8_t x_572; uint8_t x_573; uint8_t x_574; uint8_t x_575; uint8_t x_576; uint8_t x_577; uint8_t x_578; uint8_t x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; uint8_t x_586; uint8_t x_587; lean_object* x_588; uint8_t x_589; lean_object* x_590; +lean_dec(x_12); +x_566 = lean_ctor_get(x_3, 0); +lean_inc(x_566); +x_567 = lean_ctor_get_uint8(x_566, 0); +x_568 = lean_ctor_get_uint8(x_566, 1); +x_569 = lean_ctor_get_uint8(x_566, 2); +x_570 = lean_ctor_get_uint8(x_566, 3); +x_571 = lean_ctor_get_uint8(x_566, 4); +x_572 = lean_ctor_get_uint8(x_566, 5); +x_573 = lean_ctor_get_uint8(x_566, 6); +x_574 = lean_ctor_get_uint8(x_566, 7); +x_575 = lean_ctor_get_uint8(x_566, 8); +x_576 = lean_ctor_get_uint8(x_566, 10); +x_577 = lean_ctor_get_uint8(x_566, 11); +x_578 = lean_ctor_get_uint8(x_566, 12); +lean_dec(x_566); +x_579 = 0; +x_580 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_580, 0, x_567); +lean_ctor_set_uint8(x_580, 1, x_568); +lean_ctor_set_uint8(x_580, 2, x_569); +lean_ctor_set_uint8(x_580, 3, x_570); +lean_ctor_set_uint8(x_580, 4, x_571); +lean_ctor_set_uint8(x_580, 5, x_572); +lean_ctor_set_uint8(x_580, 6, x_573); +lean_ctor_set_uint8(x_580, 7, x_574); +lean_ctor_set_uint8(x_580, 8, x_575); +lean_ctor_set_uint8(x_580, 9, x_579); +lean_ctor_set_uint8(x_580, 10, x_576); +lean_ctor_set_uint8(x_580, 11, x_577); +lean_ctor_set_uint8(x_580, 12, x_578); +x_581 = lean_ctor_get(x_3, 1); +lean_inc(x_581); +x_582 = lean_ctor_get(x_3, 2); +lean_inc(x_582); +x_583 = lean_ctor_get(x_3, 3); +lean_inc(x_583); +x_584 = lean_ctor_get(x_3, 4); +lean_inc(x_584); +x_585 = lean_ctor_get(x_3, 5); +lean_inc(x_585); +x_586 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_587 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); +x_588 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_588, 0, x_580); +lean_ctor_set(x_588, 1, x_581); +lean_ctor_set(x_588, 2, x_582); +lean_ctor_set(x_588, 3, x_583); +lean_ctor_set(x_588, 4, x_584); +lean_ctor_set(x_588, 5, x_585); +lean_ctor_set_uint8(x_588, sizeof(void*)*6, x_586); +lean_ctor_set_uint8(x_588, sizeof(void*)*6 + 1, x_587); +x_589 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_590 = l_Lean_Meta_intro1Core(x_1, x_589, x_588, x_4, x_5, x_6, x_446); +if (lean_obj_tag(x_590) == 0) +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_591 = lean_ctor_get(x_590, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_590, 1); +lean_inc(x_592); +lean_dec(x_590); +x_593 = lean_ctor_get(x_591, 1); +lean_inc(x_593); +lean_dec(x_591); +x_1 = x_593; +x_7 = x_592; goto _start; } else { -uint8_t x_559; +uint8_t x_595; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_559 = !lean_is_exclusive(x_554); -if (x_559 == 0) +x_595 = !lean_is_exclusive(x_590); +if (x_595 == 0) { -return x_554; +return x_590; } else { -lean_object* x_560; lean_object* x_561; lean_object* x_562; -x_560 = lean_ctor_get(x_554, 0); -x_561 = lean_ctor_get(x_554, 1); -lean_inc(x_561); -lean_inc(x_560); -lean_dec(x_554); -x_562 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_562, 0, x_560); -lean_ctor_set(x_562, 1, x_561); -return x_562; +lean_object* x_596; lean_object* x_597; lean_object* x_598; +x_596 = lean_ctor_get(x_590, 0); +x_597 = lean_ctor_get(x_590, 1); +lean_inc(x_597); +lean_inc(x_596); +lean_dec(x_590); +x_598 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_598, 0, x_596); +lean_ctor_set(x_598, 1, x_597); +return x_598; } } } } else { -lean_object* x_563; lean_object* x_564; -lean_dec(x_417); -lean_dec(x_416); -x_563 = lean_ctor_get(x_11, 1); -lean_inc(x_563); +lean_object* x_599; lean_object* x_600; +lean_dec(x_445); +lean_dec(x_444); +x_599 = lean_ctor_get(x_11, 1); +lean_inc(x_599); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_564 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_563); -if (lean_obj_tag(x_564) == 0) +x_600 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_599); +if (lean_obj_tag(x_600) == 0) { -lean_object* x_565; uint8_t x_566; -x_565 = lean_ctor_get(x_564, 0); -lean_inc(x_565); -x_566 = lean_unbox(x_565); -lean_dec(x_565); -if (x_566 == 0) +lean_object* x_601; uint8_t x_602; +x_601 = lean_ctor_get(x_600, 0); +lean_inc(x_601); +x_602 = lean_unbox(x_601); +lean_dec(x_601); +if (x_602 == 0) { -lean_object* x_567; lean_object* x_568; lean_object* x_569; +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_dec(x_2); -x_567 = lean_ctor_get(x_564, 1); -lean_inc(x_567); -lean_dec(x_564); -x_568 = lean_box(0); -x_569 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_568, x_3, x_4, x_5, x_6, x_567); -return x_569; +x_603 = lean_ctor_get(x_600, 1); +lean_inc(x_603); +lean_dec(x_600); +x_604 = lean_box(0); +x_605 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_604, x_3, x_4, x_5, x_6, x_603); +return x_605; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_570 = lean_ctor_get(x_564, 1); -lean_inc(x_570); -lean_dec(x_564); -x_571 = l_Lean_MVarId_falseOrByContra___closed__3; -x_572 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; +x_606 = lean_ctor_get(x_600, 1); +lean_inc(x_606); +lean_dec(x_600); +x_607 = l_Lean_MVarId_falseOrByContra___closed__3; +x_608 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_573 = l_Lean_MVarId_applyConst(x_1, x_571, x_572, x_3, x_4, x_5, x_6, x_570); -if (lean_obj_tag(x_573) == 0) +x_609 = l_Lean_MVarId_applyConst(x_1, x_607, x_608, x_3, x_4, x_5, x_6, x_606); +if (lean_obj_tag(x_609) == 0) { -lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; -x_574 = lean_ctor_get(x_573, 0); -lean_inc(x_574); -x_575 = lean_ctor_get(x_573, 1); -lean_inc(x_575); -lean_dec(x_573); -x_576 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_576, 0, x_574); -x_577 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_576, x_3, x_4, x_5, x_6, x_575); -return x_577; +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +x_610 = lean_ctor_get(x_609, 0); +lean_inc(x_610); +x_611 = lean_ctor_get(x_609, 1); +lean_inc(x_611); +lean_dec(x_609); +x_612 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_612, 0, x_610); +x_613 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_612, x_3, x_4, x_5, x_6, x_611); +return x_613; } else { -uint8_t x_578; -x_578 = !lean_is_exclusive(x_573); -if (x_578 == 0) +uint8_t x_614; +x_614 = !lean_is_exclusive(x_609); +if (x_614 == 0) { -lean_object* x_579; lean_object* x_580; uint8_t x_581; -x_579 = lean_ctor_get(x_573, 0); -x_580 = lean_ctor_get(x_573, 1); -x_581 = l_Lean_Exception_isRuntime(x_579); -if (x_581 == 0) +lean_object* x_615; lean_object* x_616; uint8_t x_617; +x_615 = lean_ctor_get(x_609, 0); +x_616 = lean_ctor_get(x_609, 1); +x_617 = l_Lean_Exception_isInterrupt(x_615); +if (x_617 == 0) { -lean_object* x_582; lean_object* x_583; -lean_free_object(x_573); -lean_dec(x_579); -x_582 = l_Lean_MVarId_falseOrByContra___closed__5; +uint8_t x_618; +x_618 = l_Lean_Exception_isRuntime(x_615); +if (x_618 == 0) +{ +lean_object* x_619; lean_object* x_620; +lean_free_object(x_609); +lean_dec(x_615); +x_619 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_583 = l_Lean_MVarId_applyConst(x_1, x_582, x_572, x_3, x_4, x_5, x_6, x_580); -if (lean_obj_tag(x_583) == 0) +x_620 = l_Lean_MVarId_applyConst(x_1, x_619, x_608, x_3, x_4, x_5, x_6, x_616); +if (lean_obj_tag(x_620) == 0) { -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_583, 1); -lean_inc(x_585); -lean_dec(x_583); -x_586 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_586, 0, x_584); -x_587 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_586, x_3, x_4, x_5, x_6, x_585); -return x_587; -} -else -{ -uint8_t x_588; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_588 = !lean_is_exclusive(x_583); -if (x_588 == 0) -{ -return x_583; -} -else -{ -lean_object* x_589; lean_object* x_590; lean_object* x_591; -x_589 = lean_ctor_get(x_583, 0); -x_590 = lean_ctor_get(x_583, 1); -lean_inc(x_590); -lean_inc(x_589); -lean_dec(x_583); -x_591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_591, 0, x_589); -lean_ctor_set(x_591, 1, x_590); -return x_591; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_573; -} -} -else -{ -lean_object* x_592; lean_object* x_593; uint8_t x_594; -x_592 = lean_ctor_get(x_573, 0); -x_593 = lean_ctor_get(x_573, 1); -lean_inc(x_593); -lean_inc(x_592); -lean_dec(x_573); -x_594 = l_Lean_Exception_isRuntime(x_592); -if (x_594 == 0) -{ -lean_object* x_595; lean_object* x_596; -lean_dec(x_592); -x_595 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_596 = l_Lean_MVarId_applyConst(x_1, x_595, x_572, x_3, x_4, x_5, x_6, x_593); -if (lean_obj_tag(x_596) == 0) -{ -lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; -x_597 = lean_ctor_get(x_596, 0); -lean_inc(x_597); -x_598 = lean_ctor_get(x_596, 1); -lean_inc(x_598); -lean_dec(x_596); -x_599 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_599, 0, x_597); -x_600 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_599, x_3, x_4, x_5, x_6, x_598); -return x_600; -} -else -{ -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_601 = lean_ctor_get(x_596, 0); -lean_inc(x_601); -x_602 = lean_ctor_get(x_596, 1); -lean_inc(x_602); -if (lean_is_exclusive(x_596)) { - lean_ctor_release(x_596, 0); - lean_ctor_release(x_596, 1); - x_603 = x_596; -} else { - lean_dec_ref(x_596); - x_603 = lean_box(0); -} -if (lean_is_scalar(x_603)) { - x_604 = lean_alloc_ctor(1, 2, 0); -} else { - x_604 = x_603; -} -lean_ctor_set(x_604, 0, x_601); -lean_ctor_set(x_604, 1, x_602); -return x_604; -} -} -else -{ -lean_object* x_605; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_605 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_605, 0, x_592); -lean_ctor_set(x_605, 1, x_593); -return x_605; -} -} -} -} -else -{ -uint8_t x_606; -x_606 = !lean_is_exclusive(x_2); -if (x_606 == 0) -{ -lean_object* x_607; uint8_t x_608; -x_607 = lean_ctor_get(x_2, 0); -x_608 = lean_unbox(x_607); -lean_dec(x_607); -if (x_608 == 0) -{ -lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; -x_609 = lean_ctor_get(x_564, 1); -lean_inc(x_609); -lean_dec(x_564); -x_610 = l_Lean_MVarId_falseOrByContra___closed__3; -x_611 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_612 = l_Lean_MVarId_applyConst(x_1, x_610, x_611, x_3, x_4, x_5, x_6, x_609); -if (lean_obj_tag(x_612) == 0) -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; -x_613 = lean_ctor_get(x_612, 0); -lean_inc(x_613); -x_614 = lean_ctor_get(x_612, 1); -lean_inc(x_614); -lean_dec(x_612); -lean_ctor_set(x_2, 0, x_613); -x_615 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_614); -return x_615; -} -else -{ -uint8_t x_616; -lean_free_object(x_2); -x_616 = !lean_is_exclusive(x_612); -if (x_616 == 0) -{ -lean_object* x_617; lean_object* x_618; uint8_t x_619; -x_617 = lean_ctor_get(x_612, 0); -x_618 = lean_ctor_get(x_612, 1); -x_619 = l_Lean_Exception_isRuntime(x_617); -if (x_619 == 0) -{ -lean_object* x_620; lean_object* x_621; -lean_free_object(x_612); -lean_dec(x_617); -x_620 = lean_box(0); -x_621 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_620, x_3, x_4, x_5, x_6, x_618); -return x_621; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_612; -} -} -else -{ -lean_object* x_622; lean_object* x_623; uint8_t x_624; -x_622 = lean_ctor_get(x_612, 0); -x_623 = lean_ctor_get(x_612, 1); -lean_inc(x_623); +lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_621 = lean_ctor_get(x_620, 0); +lean_inc(x_621); +x_622 = lean_ctor_get(x_620, 1); lean_inc(x_622); -lean_dec(x_612); -x_624 = l_Lean_Exception_isRuntime(x_622); -if (x_624 == 0) -{ -lean_object* x_625; lean_object* x_626; -lean_dec(x_622); -x_625 = lean_box(0); -x_626 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_625, x_3, x_4, x_5, x_6, x_623); -return x_626; +lean_dec(x_620); +x_623 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_623, 0, x_621); +x_624 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_623, x_3, x_4, x_5, x_6, x_622); +return x_624; } else { -lean_object* x_627; +uint8_t x_625; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_627 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_627, 0, x_622); -lean_ctor_set(x_627, 1, x_623); -return x_627; +x_625 = !lean_is_exclusive(x_620); +if (x_625 == 0) +{ +return x_620; } +else +{ +lean_object* x_626; lean_object* x_627; lean_object* x_628; +x_626 = lean_ctor_get(x_620, 0); +x_627 = lean_ctor_get(x_620, 1); +lean_inc(x_627); +lean_inc(x_626); +lean_dec(x_620); +x_628 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_628, 0, x_626); +lean_ctor_set(x_628, 1, x_627); +return x_628; } } } else { -lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; -x_628 = lean_ctor_get(x_564, 1); -lean_inc(x_628); -lean_dec(x_564); -x_629 = l_Lean_MVarId_falseOrByContra___closed__5; -x_630 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_609; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_609; +} +} +else +{ +lean_object* x_629; lean_object* x_630; uint8_t x_631; +x_629 = lean_ctor_get(x_609, 0); +x_630 = lean_ctor_get(x_609, 1); +lean_inc(x_630); +lean_inc(x_629); +lean_dec(x_609); +x_631 = l_Lean_Exception_isInterrupt(x_629); +if (x_631 == 0) +{ +uint8_t x_632; +x_632 = l_Lean_Exception_isRuntime(x_629); +if (x_632 == 0) +{ +lean_object* x_633; lean_object* x_634; +lean_dec(x_629); +x_633 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_631 = l_Lean_MVarId_applyConst(x_1, x_629, x_630, x_3, x_4, x_5, x_6, x_628); -if (lean_obj_tag(x_631) == 0) +x_634 = l_Lean_MVarId_applyConst(x_1, x_633, x_608, x_3, x_4, x_5, x_6, x_630); +if (lean_obj_tag(x_634) == 0) { -lean_object* x_632; lean_object* x_633; lean_object* x_634; -x_632 = lean_ctor_get(x_631, 0); -lean_inc(x_632); -x_633 = lean_ctor_get(x_631, 1); -lean_inc(x_633); -lean_dec(x_631); -lean_ctor_set(x_2, 0, x_632); -x_634 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_633); -return x_634; -} -else -{ -uint8_t x_635; -lean_free_object(x_2); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_635 = !lean_is_exclusive(x_631); -if (x_635 == 0) -{ -return x_631; -} -else -{ -lean_object* x_636; lean_object* x_637; lean_object* x_638; -x_636 = lean_ctor_get(x_631, 0); -x_637 = lean_ctor_get(x_631, 1); -lean_inc(x_637); +lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_635 = lean_ctor_get(x_634, 0); +lean_inc(x_635); +x_636 = lean_ctor_get(x_634, 1); lean_inc(x_636); -lean_dec(x_631); -x_638 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_638, 0, x_636); -lean_ctor_set(x_638, 1, x_637); +lean_dec(x_634); +x_637 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_637, 0, x_635); +x_638 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_637, x_3, x_4, x_5, x_6, x_636); return x_638; } +else +{ +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_639 = lean_ctor_get(x_634, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_634, 1); +lean_inc(x_640); +if (lean_is_exclusive(x_634)) { + lean_ctor_release(x_634, 0); + lean_ctor_release(x_634, 1); + x_641 = x_634; +} else { + lean_dec_ref(x_634); + x_641 = lean_box(0); +} +if (lean_is_scalar(x_641)) { + x_642 = lean_alloc_ctor(1, 2, 0); +} else { + x_642 = x_641; +} +lean_ctor_set(x_642, 0, x_639); +lean_ctor_set(x_642, 1, x_640); +return x_642; +} +} +else +{ +lean_object* x_643; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_643 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_643, 0, x_629); +lean_ctor_set(x_643, 1, x_630); +return x_643; +} +} +else +{ +lean_object* x_644; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_644 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_644, 0, x_629); +lean_ctor_set(x_644, 1, x_630); +return x_644; +} } } } else { -lean_object* x_639; uint8_t x_640; -x_639 = lean_ctor_get(x_2, 0); -lean_inc(x_639); -lean_dec(x_2); -x_640 = lean_unbox(x_639); -lean_dec(x_639); -if (x_640 == 0) +uint8_t x_645; +x_645 = !lean_is_exclusive(x_2); +if (x_645 == 0) { -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; -x_641 = lean_ctor_get(x_564, 1); -lean_inc(x_641); -lean_dec(x_564); -x_642 = l_Lean_MVarId_falseOrByContra___closed__3; -x_643 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_646; uint8_t x_647; +x_646 = lean_ctor_get(x_2, 0); +x_647 = lean_unbox(x_646); +lean_dec(x_646); +if (x_647 == 0) +{ +lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_648 = lean_ctor_get(x_600, 1); +lean_inc(x_648); +lean_dec(x_600); +x_649 = l_Lean_MVarId_falseOrByContra___closed__3; +x_650 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_644 = l_Lean_MVarId_applyConst(x_1, x_642, x_643, x_3, x_4, x_5, x_6, x_641); -if (lean_obj_tag(x_644) == 0) +x_651 = l_Lean_MVarId_applyConst(x_1, x_649, x_650, x_3, x_4, x_5, x_6, x_648); +if (lean_obj_tag(x_651) == 0) { -lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; -x_645 = lean_ctor_get(x_644, 0); -lean_inc(x_645); -x_646 = lean_ctor_get(x_644, 1); -lean_inc(x_646); -lean_dec(x_644); -x_647 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_647, 0, x_645); -x_648 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_647, x_3, x_4, x_5, x_6, x_646); -return x_648; -} -else -{ -lean_object* x_649; lean_object* x_650; lean_object* x_651; uint8_t x_652; -x_649 = lean_ctor_get(x_644, 0); -lean_inc(x_649); -x_650 = lean_ctor_get(x_644, 1); -lean_inc(x_650); -if (lean_is_exclusive(x_644)) { - lean_ctor_release(x_644, 0); - lean_ctor_release(x_644, 1); - x_651 = x_644; -} else { - lean_dec_ref(x_644); - x_651 = lean_box(0); -} -x_652 = l_Lean_Exception_isRuntime(x_649); -if (x_652 == 0) -{ -lean_object* x_653; lean_object* x_654; +lean_object* x_652; lean_object* x_653; lean_object* x_654; +x_652 = lean_ctor_get(x_651, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_651, 1); +lean_inc(x_653); lean_dec(x_651); -lean_dec(x_649); -x_653 = lean_box(0); -x_654 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_653, x_3, x_4, x_5, x_6, x_650); +lean_ctor_set(x_2, 0, x_652); +x_654 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_653); return x_654; } else { -lean_object* x_655; +uint8_t x_655; +lean_free_object(x_2); +x_655 = !lean_is_exclusive(x_651); +if (x_655 == 0) +{ +lean_object* x_656; lean_object* x_657; uint8_t x_658; +x_656 = lean_ctor_get(x_651, 0); +x_657 = lean_ctor_get(x_651, 1); +x_658 = l_Lean_Exception_isInterrupt(x_656); +if (x_658 == 0) +{ +uint8_t x_659; +x_659 = l_Lean_Exception_isRuntime(x_656); +if (x_659 == 0) +{ +lean_object* x_660; lean_object* x_661; +lean_free_object(x_651); +lean_dec(x_656); +x_660 = lean_box(0); +x_661 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_660, x_3, x_4, x_5, x_6, x_657); +return x_661; +} +else +{ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_651)) { - x_655 = lean_alloc_ctor(1, 2, 0); -} else { - x_655 = x_651; +return x_651; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_651; +} +} +else +{ +lean_object* x_662; lean_object* x_663; uint8_t x_664; +x_662 = lean_ctor_get(x_651, 0); +x_663 = lean_ctor_get(x_651, 1); +lean_inc(x_663); +lean_inc(x_662); +lean_dec(x_651); +x_664 = l_Lean_Exception_isInterrupt(x_662); +if (x_664 == 0) +{ +uint8_t x_665; +x_665 = l_Lean_Exception_isRuntime(x_662); +if (x_665 == 0) +{ +lean_object* x_666; lean_object* x_667; +lean_dec(x_662); +x_666 = lean_box(0); +x_667 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_666, x_3, x_4, x_5, x_6, x_663); +return x_667; +} +else +{ +lean_object* x_668; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_668 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_668, 0, x_662); +lean_ctor_set(x_668, 1, x_663); +return x_668; +} +} +else +{ +lean_object* x_669; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_669 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_669, 0, x_662); +lean_ctor_set(x_669, 1, x_663); +return x_669; } -lean_ctor_set(x_655, 0, x_649); -lean_ctor_set(x_655, 1, x_650); -return x_655; } } } else { -lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; -x_656 = lean_ctor_get(x_564, 1); -lean_inc(x_656); -lean_dec(x_564); -x_657 = l_Lean_MVarId_falseOrByContra___closed__5; -x_658 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_670 = lean_ctor_get(x_600, 1); +lean_inc(x_670); +lean_dec(x_600); +x_671 = l_Lean_MVarId_falseOrByContra___closed__5; +x_672 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_659 = l_Lean_MVarId_applyConst(x_1, x_657, x_658, x_3, x_4, x_5, x_6, x_656); -if (lean_obj_tag(x_659) == 0) +x_673 = l_Lean_MVarId_applyConst(x_1, x_671, x_672, x_3, x_4, x_5, x_6, x_670); +if (lean_obj_tag(x_673) == 0) { -lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; -x_660 = lean_ctor_get(x_659, 0); -lean_inc(x_660); -x_661 = lean_ctor_get(x_659, 1); -lean_inc(x_661); -lean_dec(x_659); -x_662 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_662, 0, x_660); -x_663 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_662, x_3, x_4, x_5, x_6, x_661); -return x_663; +lean_object* x_674; lean_object* x_675; lean_object* x_676; +x_674 = lean_ctor_get(x_673, 0); +lean_inc(x_674); +x_675 = lean_ctor_get(x_673, 1); +lean_inc(x_675); +lean_dec(x_673); +lean_ctor_set(x_2, 0, x_674); +x_676 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_675); +return x_676; } else { -lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; +uint8_t x_677; +lean_free_object(x_2); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_664 = lean_ctor_get(x_659, 0); -lean_inc(x_664); -x_665 = lean_ctor_get(x_659, 1); -lean_inc(x_665); -if (lean_is_exclusive(x_659)) { - lean_ctor_release(x_659, 0); - lean_ctor_release(x_659, 1); - x_666 = x_659; -} else { - lean_dec_ref(x_659); - x_666 = lean_box(0); +x_677 = !lean_is_exclusive(x_673); +if (x_677 == 0) +{ +return x_673; } -if (lean_is_scalar(x_666)) { - x_667 = lean_alloc_ctor(1, 2, 0); -} else { - x_667 = x_666; +else +{ +lean_object* x_678; lean_object* x_679; lean_object* x_680; +x_678 = lean_ctor_get(x_673, 0); +x_679 = lean_ctor_get(x_673, 1); +lean_inc(x_679); +lean_inc(x_678); +lean_dec(x_673); +x_680 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_680, 0, x_678); +lean_ctor_set(x_680, 1, x_679); +return x_680; } -lean_ctor_set(x_667, 0, x_664); -lean_ctor_set(x_667, 1, x_665); -return x_667; +} +} +} +else +{ +lean_object* x_681; uint8_t x_682; +x_681 = lean_ctor_get(x_2, 0); +lean_inc(x_681); +lean_dec(x_2); +x_682 = lean_unbox(x_681); +lean_dec(x_681); +if (x_682 == 0) +{ +lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; +x_683 = lean_ctor_get(x_600, 1); +lean_inc(x_683); +lean_dec(x_600); +x_684 = l_Lean_MVarId_falseOrByContra___closed__3; +x_685 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_686 = l_Lean_MVarId_applyConst(x_1, x_684, x_685, x_3, x_4, x_5, x_6, x_683); +if (lean_obj_tag(x_686) == 0) +{ +lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; +x_687 = lean_ctor_get(x_686, 0); +lean_inc(x_687); +x_688 = lean_ctor_get(x_686, 1); +lean_inc(x_688); +lean_dec(x_686); +x_689 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_689, 0, x_687); +x_690 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_689, x_3, x_4, x_5, x_6, x_688); +return x_690; +} +else +{ +lean_object* x_691; lean_object* x_692; lean_object* x_693; uint8_t x_694; +x_691 = lean_ctor_get(x_686, 0); +lean_inc(x_691); +x_692 = lean_ctor_get(x_686, 1); +lean_inc(x_692); +if (lean_is_exclusive(x_686)) { + lean_ctor_release(x_686, 0); + lean_ctor_release(x_686, 1); + x_693 = x_686; +} else { + lean_dec_ref(x_686); + x_693 = lean_box(0); +} +x_694 = l_Lean_Exception_isInterrupt(x_691); +if (x_694 == 0) +{ +uint8_t x_695; +x_695 = l_Lean_Exception_isRuntime(x_691); +if (x_695 == 0) +{ +lean_object* x_696; lean_object* x_697; +lean_dec(x_693); +lean_dec(x_691); +x_696 = lean_box(0); +x_697 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_696, x_3, x_4, x_5, x_6, x_692); +return x_697; +} +else +{ +lean_object* x_698; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_693)) { + x_698 = lean_alloc_ctor(1, 2, 0); +} else { + x_698 = x_693; +} +lean_ctor_set(x_698, 0, x_691); +lean_ctor_set(x_698, 1, x_692); +return x_698; +} +} +else +{ +lean_object* x_699; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_693)) { + x_699 = lean_alloc_ctor(1, 2, 0); +} else { + x_699 = x_693; +} +lean_ctor_set(x_699, 0, x_691); +lean_ctor_set(x_699, 1, x_692); +return x_699; +} +} +} +else +{ +lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; +x_700 = lean_ctor_get(x_600, 1); +lean_inc(x_700); +lean_dec(x_600); +x_701 = l_Lean_MVarId_falseOrByContra___closed__5; +x_702 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_703 = l_Lean_MVarId_applyConst(x_1, x_701, x_702, x_3, x_4, x_5, x_6, x_700); +if (lean_obj_tag(x_703) == 0) +{ +lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; +x_704 = lean_ctor_get(x_703, 0); +lean_inc(x_704); +x_705 = lean_ctor_get(x_703, 1); +lean_inc(x_705); +lean_dec(x_703); +x_706 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_706, 0, x_704); +x_707 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_706, x_3, x_4, x_5, x_6, x_705); +return x_707; +} +else +{ +lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_708 = lean_ctor_get(x_703, 0); +lean_inc(x_708); +x_709 = lean_ctor_get(x_703, 1); +lean_inc(x_709); +if (lean_is_exclusive(x_703)) { + lean_ctor_release(x_703, 0); + lean_ctor_release(x_703, 1); + x_710 = x_703; +} else { + lean_dec_ref(x_703); + x_710 = lean_box(0); +} +if (lean_is_scalar(x_710)) { + x_711 = lean_alloc_ctor(1, 2, 0); +} else { + x_711 = x_710; +} +lean_ctor_set(x_711, 0, x_708); +lean_ctor_set(x_711, 1, x_709); +return x_711; } } } @@ -3652,486 +4127,294 @@ return x_667; } else { -uint8_t x_668; +uint8_t x_712; 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_668 = !lean_is_exclusive(x_564); -if (x_668 == 0) +x_712 = !lean_is_exclusive(x_600); +if (x_712 == 0) { -return x_564; +return x_600; } else { -lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_669 = lean_ctor_get(x_564, 0); -x_670 = lean_ctor_get(x_564, 1); -lean_inc(x_670); -lean_inc(x_669); -lean_dec(x_564); -x_671 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_671, 0, x_669); -lean_ctor_set(x_671, 1, x_670); -return x_671; +lean_object* x_713; lean_object* x_714; lean_object* x_715; +x_713 = lean_ctor_get(x_600, 0); +x_714 = lean_ctor_get(x_600, 1); +lean_inc(x_714); +lean_inc(x_713); +lean_dec(x_600); +x_715 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_715, 0, x_713); +lean_ctor_set(x_715, 1, x_714); +return x_715; } } } } else { -lean_object* x_672; lean_object* x_673; -lean_dec(x_416); -x_672 = lean_ctor_get(x_11, 1); -lean_inc(x_672); +lean_object* x_716; lean_object* x_717; +lean_dec(x_444); +x_716 = lean_ctor_get(x_11, 1); +lean_inc(x_716); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_673 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_672); -if (lean_obj_tag(x_673) == 0) +x_717 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_716); +if (lean_obj_tag(x_717) == 0) { -lean_object* x_674; uint8_t x_675; -x_674 = lean_ctor_get(x_673, 0); -lean_inc(x_674); -x_675 = lean_unbox(x_674); -lean_dec(x_674); -if (x_675 == 0) +lean_object* x_718; uint8_t x_719; +x_718 = lean_ctor_get(x_717, 0); +lean_inc(x_718); +x_719 = lean_unbox(x_718); +lean_dec(x_718); +if (x_719 == 0) { -lean_object* x_676; lean_object* x_677; lean_object* x_678; +lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_dec(x_2); -x_676 = lean_ctor_get(x_673, 1); -lean_inc(x_676); -lean_dec(x_673); -x_677 = lean_box(0); -x_678 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_677, x_3, x_4, x_5, x_6, x_676); -return x_678; +x_720 = lean_ctor_get(x_717, 1); +lean_inc(x_720); +lean_dec(x_717); +x_721 = lean_box(0); +x_722 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_721, x_3, x_4, x_5, x_6, x_720); +return x_722; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_679 = lean_ctor_get(x_673, 1); -lean_inc(x_679); -lean_dec(x_673); -x_680 = l_Lean_MVarId_falseOrByContra___closed__3; -x_681 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_682 = l_Lean_MVarId_applyConst(x_1, x_680, x_681, x_3, x_4, x_5, x_6, x_679); -if (lean_obj_tag(x_682) == 0) -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; -x_683 = lean_ctor_get(x_682, 0); -lean_inc(x_683); -x_684 = lean_ctor_get(x_682, 1); -lean_inc(x_684); -lean_dec(x_682); -x_685 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_685, 0, x_683); -x_686 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_685, x_3, x_4, x_5, x_6, x_684); -return x_686; -} -else -{ -uint8_t x_687; -x_687 = !lean_is_exclusive(x_682); -if (x_687 == 0) -{ -lean_object* x_688; lean_object* x_689; uint8_t x_690; -x_688 = lean_ctor_get(x_682, 0); -x_689 = lean_ctor_get(x_682, 1); -x_690 = l_Lean_Exception_isRuntime(x_688); -if (x_690 == 0) -{ -lean_object* x_691; lean_object* x_692; -lean_free_object(x_682); -lean_dec(x_688); -x_691 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_692 = l_Lean_MVarId_applyConst(x_1, x_691, x_681, x_3, x_4, x_5, x_6, x_689); -if (lean_obj_tag(x_692) == 0) -{ -lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; -x_693 = lean_ctor_get(x_692, 0); -lean_inc(x_693); -x_694 = lean_ctor_get(x_692, 1); -lean_inc(x_694); -lean_dec(x_692); -x_695 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_695, 0, x_693); -x_696 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_695, x_3, x_4, x_5, x_6, x_694); -return x_696; -} -else -{ -uint8_t x_697; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_697 = !lean_is_exclusive(x_692); -if (x_697 == 0) -{ -return x_692; -} -else -{ -lean_object* x_698; lean_object* x_699; lean_object* x_700; -x_698 = lean_ctor_get(x_692, 0); -x_699 = lean_ctor_get(x_692, 1); -lean_inc(x_699); -lean_inc(x_698); -lean_dec(x_692); -x_700 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_700, 0, x_698); -lean_ctor_set(x_700, 1, x_699); -return x_700; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_682; -} -} -else -{ -lean_object* x_701; lean_object* x_702; uint8_t x_703; -x_701 = lean_ctor_get(x_682, 0); -x_702 = lean_ctor_get(x_682, 1); -lean_inc(x_702); -lean_inc(x_701); -lean_dec(x_682); -x_703 = l_Lean_Exception_isRuntime(x_701); -if (x_703 == 0) -{ -lean_object* x_704; lean_object* x_705; -lean_dec(x_701); -x_704 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_705 = l_Lean_MVarId_applyConst(x_1, x_704, x_681, x_3, x_4, x_5, x_6, x_702); -if (lean_obj_tag(x_705) == 0) -{ -lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; -x_706 = lean_ctor_get(x_705, 0); -lean_inc(x_706); -x_707 = lean_ctor_get(x_705, 1); -lean_inc(x_707); -lean_dec(x_705); -x_708 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_708, 0, x_706); -x_709 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_708, x_3, x_4, x_5, x_6, x_707); -return x_709; -} -else -{ -lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_710 = lean_ctor_get(x_705, 0); -lean_inc(x_710); -x_711 = lean_ctor_get(x_705, 1); -lean_inc(x_711); -if (lean_is_exclusive(x_705)) { - lean_ctor_release(x_705, 0); - lean_ctor_release(x_705, 1); - x_712 = x_705; -} else { - lean_dec_ref(x_705); - x_712 = lean_box(0); -} -if (lean_is_scalar(x_712)) { - x_713 = lean_alloc_ctor(1, 2, 0); -} else { - x_713 = x_712; -} -lean_ctor_set(x_713, 0, x_710); -lean_ctor_set(x_713, 1, x_711); -return x_713; -} -} -else -{ -lean_object* x_714; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_714 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_714, 0, x_701); -lean_ctor_set(x_714, 1, x_702); -return x_714; -} -} -} -} -else -{ -uint8_t x_715; -x_715 = !lean_is_exclusive(x_2); -if (x_715 == 0) -{ -lean_object* x_716; uint8_t x_717; -x_716 = lean_ctor_get(x_2, 0); -x_717 = lean_unbox(x_716); -lean_dec(x_716); -if (x_717 == 0) -{ -lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_718 = lean_ctor_get(x_673, 1); -lean_inc(x_718); -lean_dec(x_673); -x_719 = l_Lean_MVarId_falseOrByContra___closed__3; -x_720 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_721 = l_Lean_MVarId_applyConst(x_1, x_719, x_720, x_3, x_4, x_5, x_6, x_718); -if (lean_obj_tag(x_721) == 0) -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; -x_722 = lean_ctor_get(x_721, 0); -lean_inc(x_722); -x_723 = lean_ctor_get(x_721, 1); +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_723 = lean_ctor_get(x_717, 1); lean_inc(x_723); -lean_dec(x_721); -lean_ctor_set(x_2, 0, x_722); -x_724 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_723); -return x_724; -} -else +lean_dec(x_717); +x_724 = l_Lean_MVarId_falseOrByContra___closed__3; +x_725 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_726 = l_Lean_MVarId_applyConst(x_1, x_724, x_725, x_3, x_4, x_5, x_6, x_723); +if (lean_obj_tag(x_726) == 0) { -uint8_t x_725; -lean_free_object(x_2); -x_725 = !lean_is_exclusive(x_721); -if (x_725 == 0) -{ -lean_object* x_726; lean_object* x_727; uint8_t x_728; -x_726 = lean_ctor_get(x_721, 0); -x_727 = lean_ctor_get(x_721, 1); -x_728 = l_Lean_Exception_isRuntime(x_726); -if (x_728 == 0) -{ -lean_object* x_729; lean_object* x_730; -lean_free_object(x_721); +lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; +x_727 = lean_ctor_get(x_726, 0); +lean_inc(x_727); +x_728 = lean_ctor_get(x_726, 1); +lean_inc(x_728); lean_dec(x_726); -x_729 = lean_box(0); -x_730 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_729, x_3, x_4, x_5, x_6, x_727); +x_729 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_729, 0, x_727); +x_730 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_729, x_3, x_4, x_5, x_6, x_728); return x_730; } else { -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_721; -} -} -else +uint8_t x_731; +x_731 = !lean_is_exclusive(x_726); +if (x_731 == 0) { -lean_object* x_731; lean_object* x_732; uint8_t x_733; -x_731 = lean_ctor_get(x_721, 0); -x_732 = lean_ctor_get(x_721, 1); -lean_inc(x_732); -lean_inc(x_731); -lean_dec(x_721); -x_733 = l_Lean_Exception_isRuntime(x_731); -if (x_733 == 0) +lean_object* x_732; lean_object* x_733; uint8_t x_734; +x_732 = lean_ctor_get(x_726, 0); +x_733 = lean_ctor_get(x_726, 1); +x_734 = l_Lean_Exception_isInterrupt(x_732); +if (x_734 == 0) { -lean_object* x_734; lean_object* x_735; -lean_dec(x_731); -x_734 = lean_box(0); -x_735 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_734, x_3, x_4, x_5, x_6, x_732); -return x_735; -} -else +uint8_t x_735; +x_735 = l_Lean_Exception_isRuntime(x_732); +if (x_735 == 0) { -lean_object* x_736; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_736 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_736, 0, x_731); -lean_ctor_set(x_736, 1, x_732); -return x_736; -} -} -} -} -else -{ -lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; -x_737 = lean_ctor_get(x_673, 1); -lean_inc(x_737); -lean_dec(x_673); -x_738 = l_Lean_MVarId_falseOrByContra___closed__5; -x_739 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_736; lean_object* x_737; +lean_free_object(x_726); +lean_dec(x_732); +x_736 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_740 = l_Lean_MVarId_applyConst(x_1, x_738, x_739, x_3, x_4, x_5, x_6, x_737); -if (lean_obj_tag(x_740) == 0) +x_737 = l_Lean_MVarId_applyConst(x_1, x_736, x_725, x_3, x_4, x_5, x_6, x_733); +if (lean_obj_tag(x_737) == 0) { -lean_object* x_741; lean_object* x_742; lean_object* x_743; -x_741 = lean_ctor_get(x_740, 0); -lean_inc(x_741); -x_742 = lean_ctor_get(x_740, 1); -lean_inc(x_742); -lean_dec(x_740); -lean_ctor_set(x_2, 0, x_741); -x_743 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_742); -return x_743; +lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_738 = lean_ctor_get(x_737, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_737, 1); +lean_inc(x_739); +lean_dec(x_737); +x_740 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_740, 0, x_738); +x_741 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_740, x_3, x_4, x_5, x_6, x_739); +return x_741; } else { -uint8_t x_744; -lean_free_object(x_2); +uint8_t x_742; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_744 = !lean_is_exclusive(x_740); -if (x_744 == 0) +x_742 = !lean_is_exclusive(x_737); +if (x_742 == 0) { -return x_740; +return x_737; } else { -lean_object* x_745; lean_object* x_746; lean_object* x_747; -x_745 = lean_ctor_get(x_740, 0); -x_746 = lean_ctor_get(x_740, 1); +lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_743 = lean_ctor_get(x_737, 0); +x_744 = lean_ctor_get(x_737, 1); +lean_inc(x_744); +lean_inc(x_743); +lean_dec(x_737); +x_745 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_745, 0, x_743); +lean_ctor_set(x_745, 1, x_744); +return x_745; +} +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_726; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_726; +} +} +else +{ +lean_object* x_746; lean_object* x_747; uint8_t x_748; +x_746 = lean_ctor_get(x_726, 0); +x_747 = lean_ctor_get(x_726, 1); +lean_inc(x_747); lean_inc(x_746); -lean_inc(x_745); -lean_dec(x_740); -x_747 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_747, 0, x_745); -lean_ctor_set(x_747, 1, x_746); -return x_747; -} -} -} -} -else +lean_dec(x_726); +x_748 = l_Lean_Exception_isInterrupt(x_746); +if (x_748 == 0) { -lean_object* x_748; uint8_t x_749; -x_748 = lean_ctor_get(x_2, 0); -lean_inc(x_748); -lean_dec(x_2); -x_749 = lean_unbox(x_748); -lean_dec(x_748); +uint8_t x_749; +x_749 = l_Lean_Exception_isRuntime(x_746); if (x_749 == 0) { -lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; -x_750 = lean_ctor_get(x_673, 1); -lean_inc(x_750); -lean_dec(x_673); -x_751 = l_Lean_MVarId_falseOrByContra___closed__3; -x_752 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_750; lean_object* x_751; +lean_dec(x_746); +x_750 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_753 = l_Lean_MVarId_applyConst(x_1, x_751, x_752, x_3, x_4, x_5, x_6, x_750); -if (lean_obj_tag(x_753) == 0) +x_751 = l_Lean_MVarId_applyConst(x_1, x_750, x_725, x_3, x_4, x_5, x_6, x_747); +if (lean_obj_tag(x_751) == 0) { -lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; -x_754 = lean_ctor_get(x_753, 0); -lean_inc(x_754); -x_755 = lean_ctor_get(x_753, 1); -lean_inc(x_755); -lean_dec(x_753); -x_756 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_756, 0, x_754); -x_757 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_756, x_3, x_4, x_5, x_6, x_755); -return x_757; +lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +x_752 = lean_ctor_get(x_751, 0); +lean_inc(x_752); +x_753 = lean_ctor_get(x_751, 1); +lean_inc(x_753); +lean_dec(x_751); +x_754 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_754, 0, x_752); +x_755 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_754, x_3, x_4, x_5, x_6, x_753); +return x_755; } else { -lean_object* x_758; lean_object* x_759; lean_object* x_760; uint8_t x_761; -x_758 = lean_ctor_get(x_753, 0); -lean_inc(x_758); -x_759 = lean_ctor_get(x_753, 1); -lean_inc(x_759); -if (lean_is_exclusive(x_753)) { - lean_ctor_release(x_753, 0); - lean_ctor_release(x_753, 1); - x_760 = x_753; -} else { - lean_dec_ref(x_753); - x_760 = lean_box(0); -} -x_761 = l_Lean_Exception_isRuntime(x_758); -if (x_761 == 0) -{ -lean_object* x_762; lean_object* x_763; -lean_dec(x_760); -lean_dec(x_758); -x_762 = lean_box(0); -x_763 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_762, x_3, x_4, x_5, x_6, x_759); -return x_763; -} -else -{ -lean_object* x_764; +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_760)) { - x_764 = lean_alloc_ctor(1, 2, 0); +x_756 = lean_ctor_get(x_751, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_751, 1); +lean_inc(x_757); +if (lean_is_exclusive(x_751)) { + lean_ctor_release(x_751, 0); + lean_ctor_release(x_751, 1); + x_758 = x_751; } else { - x_764 = x_760; + lean_dec_ref(x_751); + x_758 = lean_box(0); +} +if (lean_is_scalar(x_758)) { + x_759 = lean_alloc_ctor(1, 2, 0); +} else { + x_759 = x_758; +} +lean_ctor_set(x_759, 0, x_756); +lean_ctor_set(x_759, 1, x_757); +return x_759; +} +} +else +{ +lean_object* x_760; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_760 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_760, 0, x_746); +lean_ctor_set(x_760, 1, x_747); +return x_760; +} +} +else +{ +lean_object* x_761; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_761 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_761, 0, x_746); +lean_ctor_set(x_761, 1, x_747); +return x_761; } -lean_ctor_set(x_764, 0, x_758); -lean_ctor_set(x_764, 1, x_759); -return x_764; } } } else { +uint8_t x_762; +x_762 = !lean_is_exclusive(x_2); +if (x_762 == 0) +{ +lean_object* x_763; uint8_t x_764; +x_763 = lean_ctor_get(x_2, 0); +x_764 = lean_unbox(x_763); +lean_dec(x_763); +if (x_764 == 0) +{ lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; -x_765 = lean_ctor_get(x_673, 1); +x_765 = lean_ctor_get(x_717, 1); lean_inc(x_765); -lean_dec(x_673); -x_766 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_dec(x_717); +x_766 = l_Lean_MVarId_falseOrByContra___closed__3; x_767 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); @@ -4141,45 +4424,323 @@ lean_inc(x_1); x_768 = l_Lean_MVarId_applyConst(x_1, x_766, x_767, x_3, x_4, x_5, x_6, x_765); if (lean_obj_tag(x_768) == 0) { -lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; +lean_object* x_769; lean_object* x_770; lean_object* x_771; x_769 = lean_ctor_get(x_768, 0); lean_inc(x_769); x_770 = lean_ctor_get(x_768, 1); lean_inc(x_770); lean_dec(x_768); -x_771 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_771, 0, x_769); -x_772 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_771, x_3, x_4, x_5, x_6, x_770); -return x_772; +lean_ctor_set(x_2, 0, x_769); +x_771 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_770); +return x_771; +} +else +{ +uint8_t x_772; +lean_free_object(x_2); +x_772 = !lean_is_exclusive(x_768); +if (x_772 == 0) +{ +lean_object* x_773; lean_object* x_774; uint8_t x_775; +x_773 = lean_ctor_get(x_768, 0); +x_774 = lean_ctor_get(x_768, 1); +x_775 = l_Lean_Exception_isInterrupt(x_773); +if (x_775 == 0) +{ +uint8_t x_776; +x_776 = l_Lean_Exception_isRuntime(x_773); +if (x_776 == 0) +{ +lean_object* x_777; lean_object* x_778; +lean_free_object(x_768); +lean_dec(x_773); +x_777 = lean_box(0); +x_778 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_777, x_3, x_4, x_5, x_6, x_774); +return x_778; } else { -lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_773 = lean_ctor_get(x_768, 0); -lean_inc(x_773); -x_774 = lean_ctor_get(x_768, 1); -lean_inc(x_774); -if (lean_is_exclusive(x_768)) { - lean_ctor_release(x_768, 0); - lean_ctor_release(x_768, 1); - x_775 = x_768; -} else { - lean_dec_ref(x_768); - x_775 = lean_box(0); +return x_768; } -if (lean_is_scalar(x_775)) { - x_776 = lean_alloc_ctor(1, 2, 0); -} else { - x_776 = x_775; } -lean_ctor_set(x_776, 0, x_773); -lean_ctor_set(x_776, 1, x_774); -return x_776; +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_768; +} +} +else +{ +lean_object* x_779; lean_object* x_780; uint8_t x_781; +x_779 = lean_ctor_get(x_768, 0); +x_780 = lean_ctor_get(x_768, 1); +lean_inc(x_780); +lean_inc(x_779); +lean_dec(x_768); +x_781 = l_Lean_Exception_isInterrupt(x_779); +if (x_781 == 0) +{ +uint8_t x_782; +x_782 = l_Lean_Exception_isRuntime(x_779); +if (x_782 == 0) +{ +lean_object* x_783; lean_object* x_784; +lean_dec(x_779); +x_783 = lean_box(0); +x_784 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_783, x_3, x_4, x_5, x_6, x_780); +return x_784; +} +else +{ +lean_object* x_785; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_785 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_785, 0, x_779); +lean_ctor_set(x_785, 1, x_780); +return x_785; +} +} +else +{ +lean_object* x_786; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_786 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_786, 0, x_779); +lean_ctor_set(x_786, 1, x_780); +return x_786; +} +} +} +} +else +{ +lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; +x_787 = lean_ctor_get(x_717, 1); +lean_inc(x_787); +lean_dec(x_717); +x_788 = l_Lean_MVarId_falseOrByContra___closed__5; +x_789 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_790 = l_Lean_MVarId_applyConst(x_1, x_788, x_789, x_3, x_4, x_5, x_6, x_787); +if (lean_obj_tag(x_790) == 0) +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; +x_791 = lean_ctor_get(x_790, 0); +lean_inc(x_791); +x_792 = lean_ctor_get(x_790, 1); +lean_inc(x_792); +lean_dec(x_790); +lean_ctor_set(x_2, 0, x_791); +x_793 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_792); +return x_793; +} +else +{ +uint8_t x_794; +lean_free_object(x_2); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_794 = !lean_is_exclusive(x_790); +if (x_794 == 0) +{ +return x_790; +} +else +{ +lean_object* x_795; lean_object* x_796; lean_object* x_797; +x_795 = lean_ctor_get(x_790, 0); +x_796 = lean_ctor_get(x_790, 1); +lean_inc(x_796); +lean_inc(x_795); +lean_dec(x_790); +x_797 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_797, 0, x_795); +lean_ctor_set(x_797, 1, x_796); +return x_797; +} +} +} +} +else +{ +lean_object* x_798; uint8_t x_799; +x_798 = lean_ctor_get(x_2, 0); +lean_inc(x_798); +lean_dec(x_2); +x_799 = lean_unbox(x_798); +lean_dec(x_798); +if (x_799 == 0) +{ +lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; +x_800 = lean_ctor_get(x_717, 1); +lean_inc(x_800); +lean_dec(x_717); +x_801 = l_Lean_MVarId_falseOrByContra___closed__3; +x_802 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_803 = l_Lean_MVarId_applyConst(x_1, x_801, x_802, x_3, x_4, x_5, x_6, x_800); +if (lean_obj_tag(x_803) == 0) +{ +lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; +x_804 = lean_ctor_get(x_803, 0); +lean_inc(x_804); +x_805 = lean_ctor_get(x_803, 1); +lean_inc(x_805); +lean_dec(x_803); +x_806 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_806, 0, x_804); +x_807 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_806, x_3, x_4, x_5, x_6, x_805); +return x_807; +} +else +{ +lean_object* x_808; lean_object* x_809; lean_object* x_810; uint8_t x_811; +x_808 = lean_ctor_get(x_803, 0); +lean_inc(x_808); +x_809 = lean_ctor_get(x_803, 1); +lean_inc(x_809); +if (lean_is_exclusive(x_803)) { + lean_ctor_release(x_803, 0); + lean_ctor_release(x_803, 1); + x_810 = x_803; +} else { + lean_dec_ref(x_803); + x_810 = lean_box(0); +} +x_811 = l_Lean_Exception_isInterrupt(x_808); +if (x_811 == 0) +{ +uint8_t x_812; +x_812 = l_Lean_Exception_isRuntime(x_808); +if (x_812 == 0) +{ +lean_object* x_813; lean_object* x_814; +lean_dec(x_810); +lean_dec(x_808); +x_813 = lean_box(0); +x_814 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_813, x_3, x_4, x_5, x_6, x_809); +return x_814; +} +else +{ +lean_object* x_815; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_810)) { + x_815 = lean_alloc_ctor(1, 2, 0); +} else { + x_815 = x_810; +} +lean_ctor_set(x_815, 0, x_808); +lean_ctor_set(x_815, 1, x_809); +return x_815; +} +} +else +{ +lean_object* x_816; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_810)) { + x_816 = lean_alloc_ctor(1, 2, 0); +} else { + x_816 = x_810; +} +lean_ctor_set(x_816, 0, x_808); +lean_ctor_set(x_816, 1, x_809); +return x_816; +} +} +} +else +{ +lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +x_817 = lean_ctor_get(x_717, 1); +lean_inc(x_817); +lean_dec(x_717); +x_818 = l_Lean_MVarId_falseOrByContra___closed__5; +x_819 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_820 = l_Lean_MVarId_applyConst(x_1, x_818, x_819, x_3, x_4, x_5, x_6, x_817); +if (lean_obj_tag(x_820) == 0) +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; +x_821 = lean_ctor_get(x_820, 0); +lean_inc(x_821); +x_822 = lean_ctor_get(x_820, 1); +lean_inc(x_822); +lean_dec(x_820); +x_823 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_823, 0, x_821); +x_824 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_823, x_3, x_4, x_5, x_6, x_822); +return x_824; +} +else +{ +lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_825 = lean_ctor_get(x_820, 0); +lean_inc(x_825); +x_826 = lean_ctor_get(x_820, 1); +lean_inc(x_826); +if (lean_is_exclusive(x_820)) { + lean_ctor_release(x_820, 0); + lean_ctor_release(x_820, 1); + x_827 = x_820; +} else { + lean_dec_ref(x_820); + x_827 = lean_box(0); +} +if (lean_is_scalar(x_827)) { + x_828 = lean_alloc_ctor(1, 2, 0); +} else { + x_828 = x_827; +} +lean_ctor_set(x_828, 0, x_825); +lean_ctor_set(x_828, 1, x_826); +return x_828; } } } @@ -4188,1063 +4749,846 @@ return x_776; } else { -uint8_t x_777; +uint8_t x_829; 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_777 = !lean_is_exclusive(x_673); -if (x_777 == 0) +x_829 = !lean_is_exclusive(x_717); +if (x_829 == 0) { -return x_673; +return x_717; } else { -lean_object* x_778; lean_object* x_779; lean_object* x_780; -x_778 = lean_ctor_get(x_673, 0); -x_779 = lean_ctor_get(x_673, 1); -lean_inc(x_779); -lean_inc(x_778); -lean_dec(x_673); -x_780 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_780, 0, x_778); -lean_ctor_set(x_780, 1, x_779); -return x_780; +lean_object* x_830; lean_object* x_831; lean_object* x_832; +x_830 = lean_ctor_get(x_717, 0); +x_831 = lean_ctor_get(x_717, 1); +lean_inc(x_831); +lean_inc(x_830); +lean_dec(x_717); +x_832 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_832, 0, x_830); +lean_ctor_set(x_832, 1, x_831); +return x_832; } } } } else { -lean_object* x_781; lean_object* x_782; -lean_dec(x_415); -x_781 = lean_ctor_get(x_11, 1); -lean_inc(x_781); +lean_object* x_833; lean_object* x_834; +lean_dec(x_443); +x_833 = lean_ctor_get(x_11, 1); +lean_inc(x_833); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_782 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_781); -if (lean_obj_tag(x_782) == 0) +x_834 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_833); +if (lean_obj_tag(x_834) == 0) { -lean_object* x_783; uint8_t x_784; -x_783 = lean_ctor_get(x_782, 0); -lean_inc(x_783); -x_784 = lean_unbox(x_783); -lean_dec(x_783); -if (x_784 == 0) +lean_object* x_835; uint8_t x_836; +x_835 = lean_ctor_get(x_834, 0); +lean_inc(x_835); +x_836 = lean_unbox(x_835); +lean_dec(x_835); +if (x_836 == 0) { -lean_object* x_785; lean_object* x_786; lean_object* x_787; +lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_dec(x_2); -x_785 = lean_ctor_get(x_782, 1); -lean_inc(x_785); -lean_dec(x_782); -x_786 = lean_box(0); -x_787 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_786, x_3, x_4, x_5, x_6, x_785); -return x_787; +x_837 = lean_ctor_get(x_834, 1); +lean_inc(x_837); +lean_dec(x_834); +x_838 = lean_box(0); +x_839 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_838, x_3, x_4, x_5, x_6, x_837); +return x_839; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; -x_788 = lean_ctor_get(x_782, 1); -lean_inc(x_788); -lean_dec(x_782); -x_789 = l_Lean_MVarId_falseOrByContra___closed__3; -x_790 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_791 = l_Lean_MVarId_applyConst(x_1, x_789, x_790, x_3, x_4, x_5, x_6, x_788); -if (lean_obj_tag(x_791) == 0) -{ -lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; -x_792 = lean_ctor_get(x_791, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_791, 1); -lean_inc(x_793); -lean_dec(x_791); -x_794 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_794, 0, x_792); -x_795 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_794, x_3, x_4, x_5, x_6, x_793); -return x_795; -} -else -{ -uint8_t x_796; -x_796 = !lean_is_exclusive(x_791); -if (x_796 == 0) -{ -lean_object* x_797; lean_object* x_798; uint8_t x_799; -x_797 = lean_ctor_get(x_791, 0); -x_798 = lean_ctor_get(x_791, 1); -x_799 = l_Lean_Exception_isRuntime(x_797); -if (x_799 == 0) -{ -lean_object* x_800; lean_object* x_801; -lean_free_object(x_791); -lean_dec(x_797); -x_800 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_801 = l_Lean_MVarId_applyConst(x_1, x_800, x_790, x_3, x_4, x_5, x_6, x_798); -if (lean_obj_tag(x_801) == 0) -{ -lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; -x_802 = lean_ctor_get(x_801, 0); -lean_inc(x_802); -x_803 = lean_ctor_get(x_801, 1); -lean_inc(x_803); -lean_dec(x_801); -x_804 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_804, 0, x_802); -x_805 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_804, x_3, x_4, x_5, x_6, x_803); -return x_805; -} -else -{ -uint8_t x_806; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_806 = !lean_is_exclusive(x_801); -if (x_806 == 0) -{ -return x_801; -} -else -{ -lean_object* x_807; lean_object* x_808; lean_object* x_809; -x_807 = lean_ctor_get(x_801, 0); -x_808 = lean_ctor_get(x_801, 1); -lean_inc(x_808); -lean_inc(x_807); -lean_dec(x_801); -x_809 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_809, 0, x_807); -lean_ctor_set(x_809, 1, x_808); -return x_809; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_791; -} -} -else -{ -lean_object* x_810; lean_object* x_811; uint8_t x_812; -x_810 = lean_ctor_get(x_791, 0); -x_811 = lean_ctor_get(x_791, 1); -lean_inc(x_811); -lean_inc(x_810); -lean_dec(x_791); -x_812 = l_Lean_Exception_isRuntime(x_810); -if (x_812 == 0) -{ -lean_object* x_813; lean_object* x_814; -lean_dec(x_810); -x_813 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_814 = l_Lean_MVarId_applyConst(x_1, x_813, x_790, x_3, x_4, x_5, x_6, x_811); -if (lean_obj_tag(x_814) == 0) -{ -lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; -x_815 = lean_ctor_get(x_814, 0); -lean_inc(x_815); -x_816 = lean_ctor_get(x_814, 1); -lean_inc(x_816); -lean_dec(x_814); -x_817 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_817, 0, x_815); -x_818 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_817, x_3, x_4, x_5, x_6, x_816); -return x_818; -} -else -{ -lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_819 = lean_ctor_get(x_814, 0); -lean_inc(x_819); -x_820 = lean_ctor_get(x_814, 1); -lean_inc(x_820); -if (lean_is_exclusive(x_814)) { - lean_ctor_release(x_814, 0); - lean_ctor_release(x_814, 1); - x_821 = x_814; -} else { - lean_dec_ref(x_814); - x_821 = lean_box(0); -} -if (lean_is_scalar(x_821)) { - x_822 = lean_alloc_ctor(1, 2, 0); -} else { - x_822 = x_821; -} -lean_ctor_set(x_822, 0, x_819); -lean_ctor_set(x_822, 1, x_820); -return x_822; -} -} -else -{ -lean_object* x_823; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_823 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_823, 0, x_810); -lean_ctor_set(x_823, 1, x_811); -return x_823; -} -} -} -} -else -{ -uint8_t x_824; -x_824 = !lean_is_exclusive(x_2); -if (x_824 == 0) -{ -lean_object* x_825; uint8_t x_826; -x_825 = lean_ctor_get(x_2, 0); -x_826 = lean_unbox(x_825); -lean_dec(x_825); -if (x_826 == 0) -{ -lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; -x_827 = lean_ctor_get(x_782, 1); -lean_inc(x_827); -lean_dec(x_782); -x_828 = l_Lean_MVarId_falseOrByContra___closed__3; -x_829 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_830 = l_Lean_MVarId_applyConst(x_1, x_828, x_829, x_3, x_4, x_5, x_6, x_827); -if (lean_obj_tag(x_830) == 0) -{ -lean_object* x_831; lean_object* x_832; lean_object* x_833; -x_831 = lean_ctor_get(x_830, 0); -lean_inc(x_831); -x_832 = lean_ctor_get(x_830, 1); -lean_inc(x_832); -lean_dec(x_830); -lean_ctor_set(x_2, 0, x_831); -x_833 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_832); -return x_833; -} -else -{ -uint8_t x_834; -lean_free_object(x_2); -x_834 = !lean_is_exclusive(x_830); -if (x_834 == 0) -{ -lean_object* x_835; lean_object* x_836; uint8_t x_837; -x_835 = lean_ctor_get(x_830, 0); -x_836 = lean_ctor_get(x_830, 1); -x_837 = l_Lean_Exception_isRuntime(x_835); -if (x_837 == 0) -{ -lean_object* x_838; lean_object* x_839; -lean_free_object(x_830); -lean_dec(x_835); -x_838 = lean_box(0); -x_839 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_838, x_3, x_4, x_5, x_6, x_836); -return x_839; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_830; -} -} -else -{ -lean_object* x_840; lean_object* x_841; uint8_t x_842; -x_840 = lean_ctor_get(x_830, 0); -x_841 = lean_ctor_get(x_830, 1); -lean_inc(x_841); +lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; +x_840 = lean_ctor_get(x_834, 1); lean_inc(x_840); -lean_dec(x_830); -x_842 = l_Lean_Exception_isRuntime(x_840); -if (x_842 == 0) -{ -lean_object* x_843; lean_object* x_844; -lean_dec(x_840); -x_843 = lean_box(0); -x_844 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_843, x_3, x_4, x_5, x_6, x_841); -return x_844; -} -else -{ -lean_object* x_845; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_845 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_845, 0, x_840); -lean_ctor_set(x_845, 1, x_841); -return x_845; -} -} -} -} -else -{ -lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; -x_846 = lean_ctor_get(x_782, 1); -lean_inc(x_846); -lean_dec(x_782); -x_847 = l_Lean_MVarId_falseOrByContra___closed__5; -x_848 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_dec(x_834); +x_841 = l_Lean_MVarId_falseOrByContra___closed__3; +x_842 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_849 = l_Lean_MVarId_applyConst(x_1, x_847, x_848, x_3, x_4, x_5, x_6, x_846); -if (lean_obj_tag(x_849) == 0) +x_843 = l_Lean_MVarId_applyConst(x_1, x_841, x_842, x_3, x_4, x_5, x_6, x_840); +if (lean_obj_tag(x_843) == 0) { -lean_object* x_850; lean_object* x_851; lean_object* x_852; -x_850 = lean_ctor_get(x_849, 0); -lean_inc(x_850); -x_851 = lean_ctor_get(x_849, 1); -lean_inc(x_851); +lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; +x_844 = lean_ctor_get(x_843, 0); +lean_inc(x_844); +x_845 = lean_ctor_get(x_843, 1); +lean_inc(x_845); +lean_dec(x_843); +x_846 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_846, 0, x_844); +x_847 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_846, x_3, x_4, x_5, x_6, x_845); +return x_847; +} +else +{ +uint8_t x_848; +x_848 = !lean_is_exclusive(x_843); +if (x_848 == 0) +{ +lean_object* x_849; lean_object* x_850; uint8_t x_851; +x_849 = lean_ctor_get(x_843, 0); +x_850 = lean_ctor_get(x_843, 1); +x_851 = l_Lean_Exception_isInterrupt(x_849); +if (x_851 == 0) +{ +uint8_t x_852; +x_852 = l_Lean_Exception_isRuntime(x_849); +if (x_852 == 0) +{ +lean_object* x_853; lean_object* x_854; +lean_free_object(x_843); lean_dec(x_849); -lean_ctor_set(x_2, 0, x_850); -x_852 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_851); -return x_852; -} -else +x_853 = l_Lean_MVarId_falseOrByContra___closed__5; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_854 = l_Lean_MVarId_applyConst(x_1, x_853, x_842, x_3, x_4, x_5, x_6, x_850); +if (lean_obj_tag(x_854) == 0) { -uint8_t x_853; -lean_free_object(x_2); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_853 = !lean_is_exclusive(x_849); -if (x_853 == 0) -{ -return x_849; -} -else -{ -lean_object* x_854; lean_object* x_855; lean_object* x_856; -x_854 = lean_ctor_get(x_849, 0); -x_855 = lean_ctor_get(x_849, 1); +lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; +x_855 = lean_ctor_get(x_854, 0); lean_inc(x_855); -lean_inc(x_854); -lean_dec(x_849); -x_856 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_856, 0, x_854); -lean_ctor_set(x_856, 1, x_855); -return x_856; +x_856 = lean_ctor_get(x_854, 1); +lean_inc(x_856); +lean_dec(x_854); +x_857 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_857, 0, x_855); +x_858 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_857, x_3, x_4, x_5, x_6, x_856); +return x_858; } +else +{ +uint8_t x_859; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_859 = !lean_is_exclusive(x_854); +if (x_859 == 0) +{ +return x_854; +} +else +{ +lean_object* x_860; lean_object* x_861; lean_object* x_862; +x_860 = lean_ctor_get(x_854, 0); +x_861 = lean_ctor_get(x_854, 1); +lean_inc(x_861); +lean_inc(x_860); +lean_dec(x_854); +x_862 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_862, 0, x_860); +lean_ctor_set(x_862, 1, x_861); +return x_862; } } } else { -lean_object* x_857; uint8_t x_858; -x_857 = lean_ctor_get(x_2, 0); -lean_inc(x_857); -lean_dec(x_2); -x_858 = lean_unbox(x_857); -lean_dec(x_857); -if (x_858 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_843; +} +} +else { -lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; -x_859 = lean_ctor_get(x_782, 1); -lean_inc(x_859); -lean_dec(x_782); -x_860 = l_Lean_MVarId_falseOrByContra___closed__3; -x_861 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_843; +} +} +else +{ +lean_object* x_863; lean_object* x_864; uint8_t x_865; +x_863 = lean_ctor_get(x_843, 0); +x_864 = lean_ctor_get(x_843, 1); +lean_inc(x_864); +lean_inc(x_863); +lean_dec(x_843); +x_865 = l_Lean_Exception_isInterrupt(x_863); +if (x_865 == 0) +{ +uint8_t x_866; +x_866 = l_Lean_Exception_isRuntime(x_863); +if (x_866 == 0) +{ +lean_object* x_867; lean_object* x_868; +lean_dec(x_863); +x_867 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_862 = l_Lean_MVarId_applyConst(x_1, x_860, x_861, x_3, x_4, x_5, x_6, x_859); -if (lean_obj_tag(x_862) == 0) +x_868 = l_Lean_MVarId_applyConst(x_1, x_867, x_842, x_3, x_4, x_5, x_6, x_864); +if (lean_obj_tag(x_868) == 0) { -lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; -x_863 = lean_ctor_get(x_862, 0); -lean_inc(x_863); -x_864 = lean_ctor_get(x_862, 1); -lean_inc(x_864); -lean_dec(x_862); -x_865 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_865, 0, x_863); -x_866 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_865, x_3, x_4, x_5, x_6, x_864); -return x_866; -} -else -{ -lean_object* x_867; lean_object* x_868; lean_object* x_869; uint8_t x_870; -x_867 = lean_ctor_get(x_862, 0); -lean_inc(x_867); -x_868 = lean_ctor_get(x_862, 1); -lean_inc(x_868); -if (lean_is_exclusive(x_862)) { - lean_ctor_release(x_862, 0); - lean_ctor_release(x_862, 1); - x_869 = x_862; -} else { - lean_dec_ref(x_862); - x_869 = lean_box(0); -} -x_870 = l_Lean_Exception_isRuntime(x_867); -if (x_870 == 0) -{ -lean_object* x_871; lean_object* x_872; -lean_dec(x_869); -lean_dec(x_867); -x_871 = lean_box(0); -x_872 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_871, x_3, x_4, x_5, x_6, x_868); +lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_869 = lean_ctor_get(x_868, 0); +lean_inc(x_869); +x_870 = lean_ctor_get(x_868, 1); +lean_inc(x_870); +lean_dec(x_868); +x_871 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_871, 0, x_869); +x_872 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_871, x_3, x_4, x_5, x_6, x_870); return x_872; } else { -lean_object* x_873; +lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_869)) { - x_873 = lean_alloc_ctor(1, 2, 0); +x_873 = lean_ctor_get(x_868, 0); +lean_inc(x_873); +x_874 = lean_ctor_get(x_868, 1); +lean_inc(x_874); +if (lean_is_exclusive(x_868)) { + lean_ctor_release(x_868, 0); + lean_ctor_release(x_868, 1); + x_875 = x_868; } else { - x_873 = x_869; + lean_dec_ref(x_868); + x_875 = lean_box(0); +} +if (lean_is_scalar(x_875)) { + x_876 = lean_alloc_ctor(1, 2, 0); +} else { + x_876 = x_875; +} +lean_ctor_set(x_876, 0, x_873); +lean_ctor_set(x_876, 1, x_874); +return x_876; +} +} +else +{ +lean_object* x_877; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_877 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_877, 0, x_863); +lean_ctor_set(x_877, 1, x_864); +return x_877; +} +} +else +{ +lean_object* x_878; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_878 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_878, 0, x_863); +lean_ctor_set(x_878, 1, x_864); +return x_878; } -lean_ctor_set(x_873, 0, x_867); -lean_ctor_set(x_873, 1, x_868); -return x_873; } } } else { -lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; -x_874 = lean_ctor_get(x_782, 1); -lean_inc(x_874); -lean_dec(x_782); -x_875 = l_Lean_MVarId_falseOrByContra___closed__5; -x_876 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +uint8_t x_879; +x_879 = !lean_is_exclusive(x_2); +if (x_879 == 0) +{ +lean_object* x_880; uint8_t x_881; +x_880 = lean_ctor_get(x_2, 0); +x_881 = lean_unbox(x_880); +lean_dec(x_880); +if (x_881 == 0) +{ +lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; +x_882 = lean_ctor_get(x_834, 1); +lean_inc(x_882); +lean_dec(x_834); +x_883 = l_Lean_MVarId_falseOrByContra___closed__3; +x_884 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_877 = l_Lean_MVarId_applyConst(x_1, x_875, x_876, x_3, x_4, x_5, x_6, x_874); -if (lean_obj_tag(x_877) == 0) +x_885 = l_Lean_MVarId_applyConst(x_1, x_883, x_884, x_3, x_4, x_5, x_6, x_882); +if (lean_obj_tag(x_885) == 0) { -lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; -x_878 = lean_ctor_get(x_877, 0); -lean_inc(x_878); -x_879 = lean_ctor_get(x_877, 1); -lean_inc(x_879); -lean_dec(x_877); -x_880 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_880, 0, x_878); -x_881 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_880, x_3, x_4, x_5, x_6, x_879); -return x_881; +lean_object* x_886; lean_object* x_887; lean_object* x_888; +x_886 = lean_ctor_get(x_885, 0); +lean_inc(x_886); +x_887 = lean_ctor_get(x_885, 1); +lean_inc(x_887); +lean_dec(x_885); +lean_ctor_set(x_2, 0, x_886); +x_888 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_887); +return x_888; +} +else +{ +uint8_t x_889; +lean_free_object(x_2); +x_889 = !lean_is_exclusive(x_885); +if (x_889 == 0) +{ +lean_object* x_890; lean_object* x_891; uint8_t x_892; +x_890 = lean_ctor_get(x_885, 0); +x_891 = lean_ctor_get(x_885, 1); +x_892 = l_Lean_Exception_isInterrupt(x_890); +if (x_892 == 0) +{ +uint8_t x_893; +x_893 = l_Lean_Exception_isRuntime(x_890); +if (x_893 == 0) +{ +lean_object* x_894; lean_object* x_895; +lean_free_object(x_885); +lean_dec(x_890); +x_894 = lean_box(0); +x_895 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_894, x_3, x_4, x_5, x_6, x_891); +return x_895; } else { -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_882 = lean_ctor_get(x_877, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_877, 1); -lean_inc(x_883); -if (lean_is_exclusive(x_877)) { - lean_ctor_release(x_877, 0); - lean_ctor_release(x_877, 1); - x_884 = x_877; -} else { - lean_dec_ref(x_877); - x_884 = lean_box(0); -} -if (lean_is_scalar(x_884)) { - x_885 = lean_alloc_ctor(1, 2, 0); -} else { - x_885 = x_884; -} -lean_ctor_set(x_885, 0, x_882); -lean_ctor_set(x_885, 1, x_883); return x_885; } } +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_885; +} +} +else +{ +lean_object* x_896; lean_object* x_897; uint8_t x_898; +x_896 = lean_ctor_get(x_885, 0); +x_897 = lean_ctor_get(x_885, 1); +lean_inc(x_897); +lean_inc(x_896); +lean_dec(x_885); +x_898 = l_Lean_Exception_isInterrupt(x_896); +if (x_898 == 0) +{ +uint8_t x_899; +x_899 = l_Lean_Exception_isRuntime(x_896); +if (x_899 == 0) +{ +lean_object* x_900; lean_object* x_901; +lean_dec(x_896); +x_900 = lean_box(0); +x_901 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_900, x_3, x_4, x_5, x_6, x_897); +return x_901; +} +else +{ +lean_object* x_902; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_902 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_902, 0, x_896); +lean_ctor_set(x_902, 1, x_897); +return x_902; +} +} +else +{ +lean_object* x_903; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_903 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_903, 0, x_896); +lean_ctor_set(x_903, 1, x_897); +return x_903; +} +} +} +} +else +{ +lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; +x_904 = lean_ctor_get(x_834, 1); +lean_inc(x_904); +lean_dec(x_834); +x_905 = l_Lean_MVarId_falseOrByContra___closed__5; +x_906 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_907 = l_Lean_MVarId_applyConst(x_1, x_905, x_906, x_3, x_4, x_5, x_6, x_904); +if (lean_obj_tag(x_907) == 0) +{ +lean_object* x_908; lean_object* x_909; lean_object* x_910; +x_908 = lean_ctor_get(x_907, 0); +lean_inc(x_908); +x_909 = lean_ctor_get(x_907, 1); +lean_inc(x_909); +lean_dec(x_907); +lean_ctor_set(x_2, 0, x_908); +x_910 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_909); +return x_910; +} +else +{ +uint8_t x_911; +lean_free_object(x_2); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_911 = !lean_is_exclusive(x_907); +if (x_911 == 0) +{ +return x_907; +} +else +{ +lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_912 = lean_ctor_get(x_907, 0); +x_913 = lean_ctor_get(x_907, 1); +lean_inc(x_913); +lean_inc(x_912); +lean_dec(x_907); +x_914 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_914, 0, x_912); +lean_ctor_set(x_914, 1, x_913); +return x_914; +} +} +} +} +else +{ +lean_object* x_915; uint8_t x_916; +x_915 = lean_ctor_get(x_2, 0); +lean_inc(x_915); +lean_dec(x_2); +x_916 = lean_unbox(x_915); +lean_dec(x_915); +if (x_916 == 0) +{ +lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; +x_917 = lean_ctor_get(x_834, 1); +lean_inc(x_917); +lean_dec(x_834); +x_918 = l_Lean_MVarId_falseOrByContra___closed__3; +x_919 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_920 = l_Lean_MVarId_applyConst(x_1, x_918, x_919, x_3, x_4, x_5, x_6, x_917); +if (lean_obj_tag(x_920) == 0) +{ +lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; +x_921 = lean_ctor_get(x_920, 0); +lean_inc(x_921); +x_922 = lean_ctor_get(x_920, 1); +lean_inc(x_922); +lean_dec(x_920); +x_923 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_923, 0, x_921); +x_924 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_923, x_3, x_4, x_5, x_6, x_922); +return x_924; +} +else +{ +lean_object* x_925; lean_object* x_926; lean_object* x_927; uint8_t x_928; +x_925 = lean_ctor_get(x_920, 0); +lean_inc(x_925); +x_926 = lean_ctor_get(x_920, 1); +lean_inc(x_926); +if (lean_is_exclusive(x_920)) { + lean_ctor_release(x_920, 0); + lean_ctor_release(x_920, 1); + x_927 = x_920; +} else { + lean_dec_ref(x_920); + x_927 = lean_box(0); +} +x_928 = l_Lean_Exception_isInterrupt(x_925); +if (x_928 == 0) +{ +uint8_t x_929; +x_929 = l_Lean_Exception_isRuntime(x_925); +if (x_929 == 0) +{ +lean_object* x_930; lean_object* x_931; +lean_dec(x_927); +lean_dec(x_925); +x_930 = lean_box(0); +x_931 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_930, x_3, x_4, x_5, x_6, x_926); +return x_931; +} +else +{ +lean_object* x_932; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_927)) { + x_932 = lean_alloc_ctor(1, 2, 0); +} else { + x_932 = x_927; +} +lean_ctor_set(x_932, 0, x_925); +lean_ctor_set(x_932, 1, x_926); +return x_932; +} +} +else +{ +lean_object* x_933; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_927)) { + x_933 = lean_alloc_ctor(1, 2, 0); +} else { + x_933 = x_927; +} +lean_ctor_set(x_933, 0, x_925); +lean_ctor_set(x_933, 1, x_926); +return x_933; +} +} +} +else +{ +lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; +x_934 = lean_ctor_get(x_834, 1); +lean_inc(x_934); +lean_dec(x_834); +x_935 = l_Lean_MVarId_falseOrByContra___closed__5; +x_936 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_937 = l_Lean_MVarId_applyConst(x_1, x_935, x_936, x_3, x_4, x_5, x_6, x_934); +if (lean_obj_tag(x_937) == 0) +{ +lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; +x_938 = lean_ctor_get(x_937, 0); +lean_inc(x_938); +x_939 = lean_ctor_get(x_937, 1); +lean_inc(x_939); +lean_dec(x_937); +x_940 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_940, 0, x_938); +x_941 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_940, x_3, x_4, x_5, x_6, x_939); +return x_941; +} +else +{ +lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_942 = lean_ctor_get(x_937, 0); +lean_inc(x_942); +x_943 = lean_ctor_get(x_937, 1); +lean_inc(x_943); +if (lean_is_exclusive(x_937)) { + lean_ctor_release(x_937, 0); + lean_ctor_release(x_937, 1); + x_944 = x_937; +} else { + lean_dec_ref(x_937); + x_944 = lean_box(0); +} +if (lean_is_scalar(x_944)) { + x_945 = lean_alloc_ctor(1, 2, 0); +} else { + x_945 = x_944; +} +lean_ctor_set(x_945, 0, x_942); +lean_ctor_set(x_945, 1, x_943); +return x_945; +} +} } } } } else { -uint8_t x_886; +uint8_t x_946; 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_886 = !lean_is_exclusive(x_782); -if (x_886 == 0) +x_946 = !lean_is_exclusive(x_834); +if (x_946 == 0) { -return x_782; +return x_834; } else { -lean_object* x_887; lean_object* x_888; lean_object* x_889; -x_887 = lean_ctor_get(x_782, 0); -x_888 = lean_ctor_get(x_782, 1); -lean_inc(x_888); -lean_inc(x_887); -lean_dec(x_782); -x_889 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_889, 0, x_887); -lean_ctor_set(x_889, 1, x_888); -return x_889; +lean_object* x_947; lean_object* x_948; lean_object* x_949; +x_947 = lean_ctor_get(x_834, 0); +x_948 = lean_ctor_get(x_834, 1); +lean_inc(x_948); +lean_inc(x_947); +lean_dec(x_834); +x_949 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_949, 0, x_947); +lean_ctor_set(x_949, 1, x_948); +return x_949; } } } } case 7: { -lean_object* x_890; lean_object* x_891; uint8_t x_892; uint8_t x_893; uint8_t x_894; uint8_t x_895; uint8_t x_896; uint8_t x_897; uint8_t x_898; uint8_t x_899; uint8_t x_900; uint8_t x_901; uint8_t x_902; uint8_t x_903; uint8_t x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; uint8_t x_911; uint8_t x_912; lean_object* x_913; uint8_t x_914; lean_object* x_915; +lean_object* x_950; lean_object* x_951; uint8_t x_952; uint8_t x_953; uint8_t x_954; uint8_t x_955; uint8_t x_956; uint8_t x_957; uint8_t x_958; uint8_t x_959; uint8_t x_960; uint8_t x_961; uint8_t x_962; uint8_t x_963; uint8_t x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; uint8_t x_971; uint8_t x_972; lean_object* x_973; uint8_t x_974; lean_object* x_975; lean_dec(x_12); -x_890 = lean_ctor_get(x_11, 1); -lean_inc(x_890); +x_950 = lean_ctor_get(x_11, 1); +lean_inc(x_950); lean_dec(x_11); -x_891 = lean_ctor_get(x_3, 0); -lean_inc(x_891); -x_892 = lean_ctor_get_uint8(x_891, 0); -x_893 = lean_ctor_get_uint8(x_891, 1); -x_894 = lean_ctor_get_uint8(x_891, 2); -x_895 = lean_ctor_get_uint8(x_891, 3); -x_896 = lean_ctor_get_uint8(x_891, 4); -x_897 = lean_ctor_get_uint8(x_891, 5); -x_898 = lean_ctor_get_uint8(x_891, 6); -x_899 = lean_ctor_get_uint8(x_891, 7); -x_900 = lean_ctor_get_uint8(x_891, 8); -x_901 = lean_ctor_get_uint8(x_891, 10); -x_902 = lean_ctor_get_uint8(x_891, 11); -x_903 = lean_ctor_get_uint8(x_891, 12); -lean_dec(x_891); -x_904 = 0; -x_905 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_905, 0, x_892); -lean_ctor_set_uint8(x_905, 1, x_893); -lean_ctor_set_uint8(x_905, 2, x_894); -lean_ctor_set_uint8(x_905, 3, x_895); -lean_ctor_set_uint8(x_905, 4, x_896); -lean_ctor_set_uint8(x_905, 5, x_897); -lean_ctor_set_uint8(x_905, 6, x_898); -lean_ctor_set_uint8(x_905, 7, x_899); -lean_ctor_set_uint8(x_905, 8, x_900); -lean_ctor_set_uint8(x_905, 9, x_904); -lean_ctor_set_uint8(x_905, 10, x_901); -lean_ctor_set_uint8(x_905, 11, x_902); -lean_ctor_set_uint8(x_905, 12, x_903); -x_906 = lean_ctor_get(x_3, 1); -lean_inc(x_906); -x_907 = lean_ctor_get(x_3, 2); -lean_inc(x_907); -x_908 = lean_ctor_get(x_3, 3); -lean_inc(x_908); -x_909 = lean_ctor_get(x_3, 4); -lean_inc(x_909); -x_910 = lean_ctor_get(x_3, 5); -lean_inc(x_910); -x_911 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); -x_912 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); -x_913 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_913, 0, x_905); -lean_ctor_set(x_913, 1, x_906); -lean_ctor_set(x_913, 2, x_907); -lean_ctor_set(x_913, 3, x_908); -lean_ctor_set(x_913, 4, x_909); -lean_ctor_set(x_913, 5, x_910); -lean_ctor_set_uint8(x_913, sizeof(void*)*6, x_911); -lean_ctor_set_uint8(x_913, sizeof(void*)*6 + 1, x_912); -x_914 = 1; +x_951 = lean_ctor_get(x_3, 0); +lean_inc(x_951); +x_952 = lean_ctor_get_uint8(x_951, 0); +x_953 = lean_ctor_get_uint8(x_951, 1); +x_954 = lean_ctor_get_uint8(x_951, 2); +x_955 = lean_ctor_get_uint8(x_951, 3); +x_956 = lean_ctor_get_uint8(x_951, 4); +x_957 = lean_ctor_get_uint8(x_951, 5); +x_958 = lean_ctor_get_uint8(x_951, 6); +x_959 = lean_ctor_get_uint8(x_951, 7); +x_960 = lean_ctor_get_uint8(x_951, 8); +x_961 = lean_ctor_get_uint8(x_951, 10); +x_962 = lean_ctor_get_uint8(x_951, 11); +x_963 = lean_ctor_get_uint8(x_951, 12); +lean_dec(x_951); +x_964 = 0; +x_965 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_965, 0, x_952); +lean_ctor_set_uint8(x_965, 1, x_953); +lean_ctor_set_uint8(x_965, 2, x_954); +lean_ctor_set_uint8(x_965, 3, x_955); +lean_ctor_set_uint8(x_965, 4, x_956); +lean_ctor_set_uint8(x_965, 5, x_957); +lean_ctor_set_uint8(x_965, 6, x_958); +lean_ctor_set_uint8(x_965, 7, x_959); +lean_ctor_set_uint8(x_965, 8, x_960); +lean_ctor_set_uint8(x_965, 9, x_964); +lean_ctor_set_uint8(x_965, 10, x_961); +lean_ctor_set_uint8(x_965, 11, x_962); +lean_ctor_set_uint8(x_965, 12, x_963); +x_966 = lean_ctor_get(x_3, 1); +lean_inc(x_966); +x_967 = lean_ctor_get(x_3, 2); +lean_inc(x_967); +x_968 = lean_ctor_get(x_3, 3); +lean_inc(x_968); +x_969 = lean_ctor_get(x_3, 4); +lean_inc(x_969); +x_970 = lean_ctor_get(x_3, 5); +lean_inc(x_970); +x_971 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_972 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); +x_973 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_973, 0, x_965); +lean_ctor_set(x_973, 1, x_966); +lean_ctor_set(x_973, 2, x_967); +lean_ctor_set(x_973, 3, x_968); +lean_ctor_set(x_973, 4, x_969); +lean_ctor_set(x_973, 5, x_970); +lean_ctor_set_uint8(x_973, sizeof(void*)*6, x_971); +lean_ctor_set_uint8(x_973, sizeof(void*)*6 + 1, x_972); +x_974 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_915 = l_Lean_Meta_intro1Core(x_1, x_914, x_913, x_4, x_5, x_6, x_890); -if (lean_obj_tag(x_915) == 0) +x_975 = l_Lean_Meta_intro1Core(x_1, x_974, x_973, x_4, x_5, x_6, x_950); +if (lean_obj_tag(x_975) == 0) { -lean_object* x_916; lean_object* x_917; lean_object* x_918; -x_916 = lean_ctor_get(x_915, 0); -lean_inc(x_916); -x_917 = lean_ctor_get(x_915, 1); -lean_inc(x_917); -lean_dec(x_915); -x_918 = lean_ctor_get(x_916, 1); -lean_inc(x_918); -lean_dec(x_916); -x_1 = x_918; -x_7 = x_917; +lean_object* x_976; lean_object* x_977; lean_object* x_978; +x_976 = lean_ctor_get(x_975, 0); +lean_inc(x_976); +x_977 = lean_ctor_get(x_975, 1); +lean_inc(x_977); +lean_dec(x_975); +x_978 = lean_ctor_get(x_976, 1); +lean_inc(x_978); +lean_dec(x_976); +x_1 = x_978; +x_7 = x_977; goto _start; } else { -uint8_t x_920; +uint8_t x_980; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_920 = !lean_is_exclusive(x_915); -if (x_920 == 0) +x_980 = !lean_is_exclusive(x_975); +if (x_980 == 0) { -return x_915; +return x_975; } else { -lean_object* x_921; lean_object* x_922; lean_object* x_923; -x_921 = lean_ctor_get(x_915, 0); -x_922 = lean_ctor_get(x_915, 1); -lean_inc(x_922); -lean_inc(x_921); -lean_dec(x_915); -x_923 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_923, 0, x_921); -lean_ctor_set(x_923, 1, x_922); -return x_923; +lean_object* x_981; lean_object* x_982; lean_object* x_983; +x_981 = lean_ctor_get(x_975, 0); +x_982 = lean_ctor_get(x_975, 1); +lean_inc(x_982); +lean_inc(x_981); +lean_dec(x_975); +x_983 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_983, 0, x_981); +lean_ctor_set(x_983, 1, x_982); +return x_983; } } } default: { -lean_object* x_924; lean_object* x_925; -x_924 = lean_ctor_get(x_11, 1); -lean_inc(x_924); +lean_object* x_984; lean_object* x_985; +x_984 = lean_ctor_get(x_11, 1); +lean_inc(x_984); lean_dec(x_11); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_925 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_924); -if (lean_obj_tag(x_925) == 0) +x_985 = l_Lean_Meta_isProp(x_12, x_3, x_4, x_5, x_6, x_984); +if (lean_obj_tag(x_985) == 0) { -lean_object* x_926; uint8_t x_927; -x_926 = lean_ctor_get(x_925, 0); -lean_inc(x_926); -x_927 = lean_unbox(x_926); -lean_dec(x_926); -if (x_927 == 0) +lean_object* x_986; uint8_t x_987; +x_986 = lean_ctor_get(x_985, 0); +lean_inc(x_986); +x_987 = lean_unbox(x_986); +lean_dec(x_986); +if (x_987 == 0) { -lean_object* x_928; lean_object* x_929; lean_object* x_930; +lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_dec(x_2); -x_928 = lean_ctor_get(x_925, 1); -lean_inc(x_928); -lean_dec(x_925); -x_929 = lean_box(0); -x_930 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_929, x_3, x_4, x_5, x_6, x_928); -return x_930; +x_988 = lean_ctor_get(x_985, 1); +lean_inc(x_988); +lean_dec(x_985); +x_989 = lean_box(0); +x_990 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_989, x_3, x_4, x_5, x_6, x_988); +return x_990; } else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; -x_931 = lean_ctor_get(x_925, 1); -lean_inc(x_931); -lean_dec(x_925); -x_932 = l_Lean_MVarId_falseOrByContra___closed__3; -x_933 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; +x_991 = lean_ctor_get(x_985, 1); +lean_inc(x_991); +lean_dec(x_985); +x_992 = l_Lean_MVarId_falseOrByContra___closed__3; +x_993 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_934 = l_Lean_MVarId_applyConst(x_1, x_932, x_933, x_3, x_4, x_5, x_6, x_931); -if (lean_obj_tag(x_934) == 0) +x_994 = l_Lean_MVarId_applyConst(x_1, x_992, x_993, x_3, x_4, x_5, x_6, x_991); +if (lean_obj_tag(x_994) == 0) { -lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; -x_935 = lean_ctor_get(x_934, 0); -lean_inc(x_935); -x_936 = lean_ctor_get(x_934, 1); -lean_inc(x_936); -lean_dec(x_934); -x_937 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_937, 0, x_935); -x_938 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_937, x_3, x_4, x_5, x_6, x_936); -return x_938; +lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +x_995 = lean_ctor_get(x_994, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_994, 1); +lean_inc(x_996); +lean_dec(x_994); +x_997 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_997, 0, x_995); +x_998 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_997, x_3, x_4, x_5, x_6, x_996); +return x_998; } else { -uint8_t x_939; -x_939 = !lean_is_exclusive(x_934); -if (x_939 == 0) +uint8_t x_999; +x_999 = !lean_is_exclusive(x_994); +if (x_999 == 0) { -lean_object* x_940; lean_object* x_941; uint8_t x_942; -x_940 = lean_ctor_get(x_934, 0); -x_941 = lean_ctor_get(x_934, 1); -x_942 = l_Lean_Exception_isRuntime(x_940); -if (x_942 == 0) +lean_object* x_1000; lean_object* x_1001; uint8_t x_1002; +x_1000 = lean_ctor_get(x_994, 0); +x_1001 = lean_ctor_get(x_994, 1); +x_1002 = l_Lean_Exception_isInterrupt(x_1000); +if (x_1002 == 0) { -lean_object* x_943; lean_object* x_944; -lean_free_object(x_934); -lean_dec(x_940); -x_943 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_944 = l_Lean_MVarId_applyConst(x_1, x_943, x_933, x_3, x_4, x_5, x_6, x_941); -if (lean_obj_tag(x_944) == 0) +uint8_t x_1003; +x_1003 = l_Lean_Exception_isRuntime(x_1000); +if (x_1003 == 0) { -lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; -x_945 = lean_ctor_get(x_944, 0); -lean_inc(x_945); -x_946 = lean_ctor_get(x_944, 1); -lean_inc(x_946); -lean_dec(x_944); -x_947 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_947, 0, x_945); -x_948 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_947, x_3, x_4, x_5, x_6, x_946); -return x_948; -} -else -{ -uint8_t x_949; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_949 = !lean_is_exclusive(x_944); -if (x_949 == 0) -{ -return x_944; -} -else -{ -lean_object* x_950; lean_object* x_951; lean_object* x_952; -x_950 = lean_ctor_get(x_944, 0); -x_951 = lean_ctor_get(x_944, 1); -lean_inc(x_951); -lean_inc(x_950); -lean_dec(x_944); -x_952 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_952, 0, x_950); -lean_ctor_set(x_952, 1, x_951); -return x_952; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_934; -} -} -else -{ -lean_object* x_953; lean_object* x_954; uint8_t x_955; -x_953 = lean_ctor_get(x_934, 0); -x_954 = lean_ctor_get(x_934, 1); -lean_inc(x_954); -lean_inc(x_953); -lean_dec(x_934); -x_955 = l_Lean_Exception_isRuntime(x_953); -if (x_955 == 0) -{ -lean_object* x_956; lean_object* x_957; -lean_dec(x_953); -x_956 = l_Lean_MVarId_falseOrByContra___closed__5; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_957 = l_Lean_MVarId_applyConst(x_1, x_956, x_933, x_3, x_4, x_5, x_6, x_954); -if (lean_obj_tag(x_957) == 0) -{ -lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; -x_958 = lean_ctor_get(x_957, 0); -lean_inc(x_958); -x_959 = lean_ctor_get(x_957, 1); -lean_inc(x_959); -lean_dec(x_957); -x_960 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_960, 0, x_958); -x_961 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_960, x_3, x_4, x_5, x_6, x_959); -return x_961; -} -else -{ -lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_962 = lean_ctor_get(x_957, 0); -lean_inc(x_962); -x_963 = lean_ctor_get(x_957, 1); -lean_inc(x_963); -if (lean_is_exclusive(x_957)) { - lean_ctor_release(x_957, 0); - lean_ctor_release(x_957, 1); - x_964 = x_957; -} else { - lean_dec_ref(x_957); - x_964 = lean_box(0); -} -if (lean_is_scalar(x_964)) { - x_965 = lean_alloc_ctor(1, 2, 0); -} else { - x_965 = x_964; -} -lean_ctor_set(x_965, 0, x_962); -lean_ctor_set(x_965, 1, x_963); -return x_965; -} -} -else -{ -lean_object* x_966; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_966 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_966, 0, x_953); -lean_ctor_set(x_966, 1, x_954); -return x_966; -} -} -} -} -else -{ -uint8_t x_967; -x_967 = !lean_is_exclusive(x_2); -if (x_967 == 0) -{ -lean_object* x_968; uint8_t x_969; -x_968 = lean_ctor_get(x_2, 0); -x_969 = lean_unbox(x_968); -lean_dec(x_968); -if (x_969 == 0) -{ -lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; -x_970 = lean_ctor_get(x_925, 1); -lean_inc(x_970); -lean_dec(x_925); -x_971 = l_Lean_MVarId_falseOrByContra___closed__3; -x_972 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_973 = l_Lean_MVarId_applyConst(x_1, x_971, x_972, x_3, x_4, x_5, x_6, x_970); -if (lean_obj_tag(x_973) == 0) -{ -lean_object* x_974; lean_object* x_975; lean_object* x_976; -x_974 = lean_ctor_get(x_973, 0); -lean_inc(x_974); -x_975 = lean_ctor_get(x_973, 1); -lean_inc(x_975); -lean_dec(x_973); -lean_ctor_set(x_2, 0, x_974); -x_976 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_975); -return x_976; -} -else -{ -uint8_t x_977; -lean_free_object(x_2); -x_977 = !lean_is_exclusive(x_973); -if (x_977 == 0) -{ -lean_object* x_978; lean_object* x_979; uint8_t x_980; -x_978 = lean_ctor_get(x_973, 0); -x_979 = lean_ctor_get(x_973, 1); -x_980 = l_Lean_Exception_isRuntime(x_978); -if (x_980 == 0) -{ -lean_object* x_981; lean_object* x_982; -lean_free_object(x_973); -lean_dec(x_978); -x_981 = lean_box(0); -x_982 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_981, x_3, x_4, x_5, x_6, x_979); -return x_982; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_973; -} -} -else -{ -lean_object* x_983; lean_object* x_984; uint8_t x_985; -x_983 = lean_ctor_get(x_973, 0); -x_984 = lean_ctor_get(x_973, 1); -lean_inc(x_984); -lean_inc(x_983); -lean_dec(x_973); -x_985 = l_Lean_Exception_isRuntime(x_983); -if (x_985 == 0) -{ -lean_object* x_986; lean_object* x_987; -lean_dec(x_983); -x_986 = lean_box(0); -x_987 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_986, x_3, x_4, x_5, x_6, x_984); -return x_987; -} -else -{ -lean_object* x_988; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_988 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_988, 0, x_983); -lean_ctor_set(x_988, 1, x_984); -return x_988; -} -} -} -} -else -{ -lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; -x_989 = lean_ctor_get(x_925, 1); -lean_inc(x_989); -lean_dec(x_925); -x_990 = l_Lean_MVarId_falseOrByContra___closed__5; -x_991 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_992 = l_Lean_MVarId_applyConst(x_1, x_990, x_991, x_3, x_4, x_5, x_6, x_989); -if (lean_obj_tag(x_992) == 0) -{ -lean_object* x_993; lean_object* x_994; lean_object* x_995; -x_993 = lean_ctor_get(x_992, 0); -lean_inc(x_993); -x_994 = lean_ctor_get(x_992, 1); -lean_inc(x_994); -lean_dec(x_992); -lean_ctor_set(x_2, 0, x_993); -x_995 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_994); -return x_995; -} -else -{ -uint8_t x_996; -lean_free_object(x_2); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_996 = !lean_is_exclusive(x_992); -if (x_996 == 0) -{ -return x_992; -} -else -{ -lean_object* x_997; lean_object* x_998; lean_object* x_999; -x_997 = lean_ctor_get(x_992, 0); -x_998 = lean_ctor_get(x_992, 1); -lean_inc(x_998); -lean_inc(x_997); -lean_dec(x_992); -x_999 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_999, 0, x_997); -lean_ctor_set(x_999, 1, x_998); -return x_999; -} -} -} -} -else -{ -lean_object* x_1000; uint8_t x_1001; -x_1000 = lean_ctor_get(x_2, 0); -lean_inc(x_1000); -lean_dec(x_2); -x_1001 = lean_unbox(x_1000); +lean_object* x_1004; lean_object* x_1005; +lean_free_object(x_994); lean_dec(x_1000); -if (x_1001 == 0) -{ -lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; -x_1002 = lean_ctor_get(x_925, 1); -lean_inc(x_1002); -lean_dec(x_925); -x_1003 = l_Lean_MVarId_falseOrByContra___closed__3; -x_1004 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +x_1004 = l_Lean_MVarId_falseOrByContra___closed__5; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_1005 = l_Lean_MVarId_applyConst(x_1, x_1003, x_1004, x_3, x_4, x_5, x_6, x_1002); +x_1005 = l_Lean_MVarId_applyConst(x_1, x_1004, x_993, x_3, x_4, x_5, x_6, x_1001); if (lean_obj_tag(x_1005) == 0) { lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; @@ -5260,135 +5604,524 @@ return x_1009; } else { -lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; uint8_t x_1013; -x_1010 = lean_ctor_get(x_1005, 0); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_1005, 1); -lean_inc(x_1011); -if (lean_is_exclusive(x_1005)) { - lean_ctor_release(x_1005, 0); - lean_ctor_release(x_1005, 1); - x_1012 = x_1005; -} else { - lean_dec_ref(x_1005); - x_1012 = lean_box(0); -} -x_1013 = l_Lean_Exception_isRuntime(x_1010); -if (x_1013 == 0) -{ -lean_object* x_1014; lean_object* x_1015; -lean_dec(x_1012); -lean_dec(x_1010); -x_1014 = lean_box(0); -x_1015 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1014, x_3, x_4, x_5, x_6, x_1011); -return x_1015; -} -else -{ -lean_object* x_1016; +uint8_t x_1010; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_1012)) { - x_1016 = lean_alloc_ctor(1, 2, 0); -} else { - x_1016 = x_1012; +x_1010 = !lean_is_exclusive(x_1005); +if (x_1010 == 0) +{ +return x_1005; } -lean_ctor_set(x_1016, 0, x_1010); -lean_ctor_set(x_1016, 1, x_1011); -return x_1016; +else +{ +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; +x_1011 = lean_ctor_get(x_1005, 0); +x_1012 = lean_ctor_get(x_1005, 1); +lean_inc(x_1012); +lean_inc(x_1011); +lean_dec(x_1005); +x_1013 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1013, 0, x_1011); +lean_ctor_set(x_1013, 1, x_1012); +return x_1013; } } } else { -lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; -x_1017 = lean_ctor_get(x_925, 1); -lean_inc(x_1017); -lean_dec(x_925); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_994; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_994; +} +} +else +{ +lean_object* x_1014; lean_object* x_1015; uint8_t x_1016; +x_1014 = lean_ctor_get(x_994, 0); +x_1015 = lean_ctor_get(x_994, 1); +lean_inc(x_1015); +lean_inc(x_1014); +lean_dec(x_994); +x_1016 = l_Lean_Exception_isInterrupt(x_1014); +if (x_1016 == 0) +{ +uint8_t x_1017; +x_1017 = l_Lean_Exception_isRuntime(x_1014); +if (x_1017 == 0) +{ +lean_object* x_1018; lean_object* x_1019; +lean_dec(x_1014); x_1018 = l_Lean_MVarId_falseOrByContra___closed__5; -x_1019 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_1020 = l_Lean_MVarId_applyConst(x_1, x_1018, x_1019, x_3, x_4, x_5, x_6, x_1017); -if (lean_obj_tag(x_1020) == 0) +x_1019 = l_Lean_MVarId_applyConst(x_1, x_1018, x_993, x_3, x_4, x_5, x_6, x_1015); +if (lean_obj_tag(x_1019) == 0) { -lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; -x_1021 = lean_ctor_get(x_1020, 0); +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; +x_1020 = lean_ctor_get(x_1019, 0); +lean_inc(x_1020); +x_1021 = lean_ctor_get(x_1019, 1); lean_inc(x_1021); -x_1022 = lean_ctor_get(x_1020, 1); -lean_inc(x_1022); -lean_dec(x_1020); -x_1023 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1023, 0, x_1021); -x_1024 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1023, x_3, x_4, x_5, x_6, x_1022); -return x_1024; +lean_dec(x_1019); +x_1022 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1022, 0, x_1020); +x_1023 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1022, x_3, x_4, x_5, x_6, x_1021); +return x_1023; } else { -lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; +lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1025 = lean_ctor_get(x_1020, 0); +x_1024 = lean_ctor_get(x_1019, 0); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_1019, 1); lean_inc(x_1025); -x_1026 = lean_ctor_get(x_1020, 1); -lean_inc(x_1026); -if (lean_is_exclusive(x_1020)) { - lean_ctor_release(x_1020, 0); - lean_ctor_release(x_1020, 1); - x_1027 = x_1020; +if (lean_is_exclusive(x_1019)) { + lean_ctor_release(x_1019, 0); + lean_ctor_release(x_1019, 1); + x_1026 = x_1019; } else { - lean_dec_ref(x_1020); - x_1027 = lean_box(0); + lean_dec_ref(x_1019); + x_1026 = lean_box(0); } -if (lean_is_scalar(x_1027)) { - x_1028 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1026)) { + x_1027 = lean_alloc_ctor(1, 2, 0); } else { - x_1028 = x_1027; + x_1027 = x_1026; } -lean_ctor_set(x_1028, 0, x_1025); -lean_ctor_set(x_1028, 1, x_1026); +lean_ctor_set(x_1027, 0, x_1024); +lean_ctor_set(x_1027, 1, x_1025); +return x_1027; +} +} +else +{ +lean_object* x_1028; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1028 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1028, 0, x_1014); +lean_ctor_set(x_1028, 1, x_1015); return x_1028; } } +else +{ +lean_object* x_1029; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1029 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1029, 0, x_1014); +lean_ctor_set(x_1029, 1, x_1015); +return x_1029; } } } } else { -uint8_t x_1029; +uint8_t x_1030; +x_1030 = !lean_is_exclusive(x_2); +if (x_1030 == 0) +{ +lean_object* x_1031; uint8_t x_1032; +x_1031 = lean_ctor_get(x_2, 0); +x_1032 = lean_unbox(x_1031); +lean_dec(x_1031); +if (x_1032 == 0) +{ +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +x_1033 = lean_ctor_get(x_985, 1); +lean_inc(x_1033); +lean_dec(x_985); +x_1034 = l_Lean_MVarId_falseOrByContra___closed__3; +x_1035 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_1036 = l_Lean_MVarId_applyConst(x_1, x_1034, x_1035, x_3, x_4, x_5, x_6, x_1033); +if (lean_obj_tag(x_1036) == 0) +{ +lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; +x_1037 = lean_ctor_get(x_1036, 0); +lean_inc(x_1037); +x_1038 = lean_ctor_get(x_1036, 1); +lean_inc(x_1038); +lean_dec(x_1036); +lean_ctor_set(x_2, 0, x_1037); +x_1039 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_1038); +return x_1039; +} +else +{ +uint8_t x_1040; +lean_free_object(x_2); +x_1040 = !lean_is_exclusive(x_1036); +if (x_1040 == 0) +{ +lean_object* x_1041; lean_object* x_1042; uint8_t x_1043; +x_1041 = lean_ctor_get(x_1036, 0); +x_1042 = lean_ctor_get(x_1036, 1); +x_1043 = l_Lean_Exception_isInterrupt(x_1041); +if (x_1043 == 0) +{ +uint8_t x_1044; +x_1044 = l_Lean_Exception_isRuntime(x_1041); +if (x_1044 == 0) +{ +lean_object* x_1045; lean_object* x_1046; +lean_free_object(x_1036); +lean_dec(x_1041); +x_1045 = lean_box(0); +x_1046 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1045, x_3, x_4, x_5, x_6, x_1042); +return x_1046; +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_1036; +} +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_1036; +} +} +else +{ +lean_object* x_1047; lean_object* x_1048; uint8_t x_1049; +x_1047 = lean_ctor_get(x_1036, 0); +x_1048 = lean_ctor_get(x_1036, 1); +lean_inc(x_1048); +lean_inc(x_1047); +lean_dec(x_1036); +x_1049 = l_Lean_Exception_isInterrupt(x_1047); +if (x_1049 == 0) +{ +uint8_t x_1050; +x_1050 = l_Lean_Exception_isRuntime(x_1047); +if (x_1050 == 0) +{ +lean_object* x_1051; lean_object* x_1052; +lean_dec(x_1047); +x_1051 = lean_box(0); +x_1052 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1051, x_3, x_4, x_5, x_6, x_1048); +return x_1052; +} +else +{ +lean_object* x_1053; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1053 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1053, 0, x_1047); +lean_ctor_set(x_1053, 1, x_1048); +return x_1053; +} +} +else +{ +lean_object* x_1054; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1054 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1054, 0, x_1047); +lean_ctor_set(x_1054, 1, x_1048); +return x_1054; +} +} +} +} +else +{ +lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; +x_1055 = lean_ctor_get(x_985, 1); +lean_inc(x_1055); +lean_dec(x_985); +x_1056 = l_Lean_MVarId_falseOrByContra___closed__5; +x_1057 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_1058 = l_Lean_MVarId_applyConst(x_1, x_1056, x_1057, x_3, x_4, x_5, x_6, x_1055); +if (lean_obj_tag(x_1058) == 0) +{ +lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; +x_1059 = lean_ctor_get(x_1058, 0); +lean_inc(x_1059); +x_1060 = lean_ctor_get(x_1058, 1); +lean_inc(x_1060); +lean_dec(x_1058); +lean_ctor_set(x_2, 0, x_1059); +x_1061 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_1060); +return x_1061; +} +else +{ +uint8_t x_1062; +lean_free_object(x_2); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1062 = !lean_is_exclusive(x_1058); +if (x_1062 == 0) +{ +return x_1058; +} +else +{ +lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; +x_1063 = lean_ctor_get(x_1058, 0); +x_1064 = lean_ctor_get(x_1058, 1); +lean_inc(x_1064); +lean_inc(x_1063); +lean_dec(x_1058); +x_1065 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1065, 0, x_1063); +lean_ctor_set(x_1065, 1, x_1064); +return x_1065; +} +} +} +} +else +{ +lean_object* x_1066; uint8_t x_1067; +x_1066 = lean_ctor_get(x_2, 0); +lean_inc(x_1066); +lean_dec(x_2); +x_1067 = lean_unbox(x_1066); +lean_dec(x_1066); +if (x_1067 == 0) +{ +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; +x_1068 = lean_ctor_get(x_985, 1); +lean_inc(x_1068); +lean_dec(x_985); +x_1069 = l_Lean_MVarId_falseOrByContra___closed__3; +x_1070 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_1071 = l_Lean_MVarId_applyConst(x_1, x_1069, x_1070, x_3, x_4, x_5, x_6, x_1068); +if (lean_obj_tag(x_1071) == 0) +{ +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; +x_1072 = lean_ctor_get(x_1071, 0); +lean_inc(x_1072); +x_1073 = lean_ctor_get(x_1071, 1); +lean_inc(x_1073); +lean_dec(x_1071); +x_1074 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1074, 0, x_1072); +x_1075 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1074, x_3, x_4, x_5, x_6, x_1073); +return x_1075; +} +else +{ +lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; uint8_t x_1079; +x_1076 = lean_ctor_get(x_1071, 0); +lean_inc(x_1076); +x_1077 = lean_ctor_get(x_1071, 1); +lean_inc(x_1077); +if (lean_is_exclusive(x_1071)) { + lean_ctor_release(x_1071, 0); + lean_ctor_release(x_1071, 1); + x_1078 = x_1071; +} else { + lean_dec_ref(x_1071); + x_1078 = lean_box(0); +} +x_1079 = l_Lean_Exception_isInterrupt(x_1076); +if (x_1079 == 0) +{ +uint8_t x_1080; +x_1080 = l_Lean_Exception_isRuntime(x_1076); +if (x_1080 == 0) +{ +lean_object* x_1081; lean_object* x_1082; +lean_dec(x_1078); +lean_dec(x_1076); +x_1081 = lean_box(0); +x_1082 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1081, x_3, x_4, x_5, x_6, x_1077); +return x_1082; +} +else +{ +lean_object* x_1083; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_1078)) { + x_1083 = lean_alloc_ctor(1, 2, 0); +} else { + x_1083 = x_1078; +} +lean_ctor_set(x_1083, 0, x_1076); +lean_ctor_set(x_1083, 1, x_1077); +return x_1083; +} +} +else +{ +lean_object* x_1084; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_1078)) { + x_1084 = lean_alloc_ctor(1, 2, 0); +} else { + x_1084 = x_1078; +} +lean_ctor_set(x_1084, 0, x_1076); +lean_ctor_set(x_1084, 1, x_1077); +return x_1084; +} +} +} +else +{ +lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; +x_1085 = lean_ctor_get(x_985, 1); +lean_inc(x_1085); +lean_dec(x_985); +x_1086 = l_Lean_MVarId_falseOrByContra___closed__5; +x_1087 = l_Lean_MVarId_falseOrByContra___lambda__1___closed__4; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_1088 = l_Lean_MVarId_applyConst(x_1, x_1086, x_1087, x_3, x_4, x_5, x_6, x_1085); +if (lean_obj_tag(x_1088) == 0) +{ +lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; +x_1089 = lean_ctor_get(x_1088, 0); +lean_inc(x_1089); +x_1090 = lean_ctor_get(x_1088, 1); +lean_inc(x_1090); +lean_dec(x_1088); +x_1091 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1091, 0, x_1089); +x_1092 = l_Lean_MVarId_falseOrByContra___lambda__1(x_1, x_1091, x_3, x_4, x_5, x_6, x_1090); +return x_1092; +} +else +{ +lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1093 = lean_ctor_get(x_1088, 0); +lean_inc(x_1093); +x_1094 = lean_ctor_get(x_1088, 1); +lean_inc(x_1094); +if (lean_is_exclusive(x_1088)) { + lean_ctor_release(x_1088, 0); + lean_ctor_release(x_1088, 1); + x_1095 = x_1088; +} else { + lean_dec_ref(x_1088); + x_1095 = lean_box(0); +} +if (lean_is_scalar(x_1095)) { + x_1096 = lean_alloc_ctor(1, 2, 0); +} else { + x_1096 = x_1095; +} +lean_ctor_set(x_1096, 0, x_1093); +lean_ctor_set(x_1096, 1, x_1094); +return x_1096; +} +} +} +} +} +} +else +{ +uint8_t x_1097; 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_1029 = !lean_is_exclusive(x_925); -if (x_1029 == 0) +x_1097 = !lean_is_exclusive(x_985); +if (x_1097 == 0) { -return x_925; +return x_985; } else { -lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; -x_1030 = lean_ctor_get(x_925, 0); -x_1031 = lean_ctor_get(x_925, 1); -lean_inc(x_1031); -lean_inc(x_1030); -lean_dec(x_925); -x_1032 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1032, 0, x_1030); -lean_ctor_set(x_1032, 1, x_1031); -return x_1032; +lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; +x_1098 = lean_ctor_get(x_985, 0); +x_1099 = lean_ctor_get(x_985, 1); +lean_inc(x_1099); +lean_inc(x_1098); +lean_dec(x_985); +x_1100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1100, 0, x_1098); +lean_ctor_set(x_1100, 1, x_1099); +return x_1100; } } } @@ -5396,59 +6129,59 @@ return x_1032; } else { -uint8_t x_1033; +uint8_t x_1101; 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_1033 = !lean_is_exclusive(x_11); -if (x_1033 == 0) +x_1101 = !lean_is_exclusive(x_11); +if (x_1101 == 0) { return x_11; } else { -lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; -x_1034 = lean_ctor_get(x_11, 0); -x_1035 = lean_ctor_get(x_11, 1); -lean_inc(x_1035); -lean_inc(x_1034); +lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; +x_1102 = lean_ctor_get(x_11, 0); +x_1103 = lean_ctor_get(x_11, 1); +lean_inc(x_1103); +lean_inc(x_1102); lean_dec(x_11); -x_1036 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1036, 0, x_1034); -lean_ctor_set(x_1036, 1, x_1035); -return x_1036; +x_1104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1104, 0, x_1102); +lean_ctor_set(x_1104, 1, x_1103); +return x_1104; } } } else { -uint8_t x_1037; +uint8_t x_1105; 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_1037 = !lean_is_exclusive(x_8); -if (x_1037 == 0) +x_1105 = !lean_is_exclusive(x_8); +if (x_1105 == 0) { return x_8; } else { -lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; -x_1038 = lean_ctor_get(x_8, 0); -x_1039 = lean_ctor_get(x_8, 1); -lean_inc(x_1039); -lean_inc(x_1038); +lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; +x_1106 = lean_ctor_get(x_8, 0); +x_1107 = lean_ctor_get(x_8, 1); +lean_inc(x_1107); +lean_inc(x_1106); lean_dec(x_8); -x_1040 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1040, 0, x_1038); -lean_ctor_set(x_1040, 1, x_1039); -return x_1040; +x_1108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1108, 0, x_1106); +lean_ctor_set(x_1108, 1, x_1107); +return x_1108; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 5bacbbcb85..eb37bd0167 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -13,13 +13,15 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getElimInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg(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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__5(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_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,70 +29,78 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___cl LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandCases_x3f(lean_object*); lean_object* l_Lean_Meta_getElimExprInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2; +lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___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_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__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_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(size_t, size_t, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1; +static lean_object* l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1; lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(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_object* l_Lean_Elab_CommandContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__3___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getArgExpectedType(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__6___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___spec__2(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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_isMultiAlt___boxed(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__3; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732_(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___spec__1___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_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11(lean_object*); +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3; static lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCasesTargets___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_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___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_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__3; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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*); +extern lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__6; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f(lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5___closed__1; LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_isMultiAlt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars(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_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1(lean_object*, lean_object*); +lean_object* lean_io_promise_new(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___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_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___boxed(lean_object**); +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2; +lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAt(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___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5; +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___spec__1(lean_object*, size_t, size_t, 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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__7___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; -lean_object* l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(lean_object*, lean_object*, uint8_t, 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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop(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_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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* l_Lean_Meta_mkGeneralizationForbiddenSet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__2(lean_object*, lean_object*, size_t, 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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); @@ -105,8 +115,11 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVars___boxed(lean_object*); lean_object* l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1(size_t, size_t, 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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___boxed(lean_object**); lean_object* lean_mk_array(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3___closed__2; +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1; uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_shouldGeneralizeTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeTargetsEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -115,28 +128,34 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induc lean_object* l_Lean_Elab_Tactic_mkTacticInfo(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___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_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_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__3; lean_object* l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1; lean_object* l___private_Init_GetElem_0__outOfBounds___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getFirstAltLhs(lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_appendGoals(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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__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* l_Lean_replaceRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__11___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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13; +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts(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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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*); lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed(lean_object**); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16; +LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3; extern lean_object* l_Lean_casesOnSuffix; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3___closed__4; static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___closed__1; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15; lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___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*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__6(lean_object*, lean_object*, size_t, size_t, 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_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); @@ -144,336 +163,368 @@ lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_hasValue(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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*); lean_object* lean_environment_find(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___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*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts(lean_object*); static lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1; -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_setKind(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_Result_alts___default; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRHS(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__10(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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3(lean_object*, uint8_t, 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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__5(lean_object*, lean_object*, 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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___boxed(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Expr_mvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___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_Lean_Elab_Tactic_ElimApp_setMotiveArg___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_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10(lean_object*, size_t, size_t, lean_object*); +lean_object* lean_io_promise_result(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1(uint8_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___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__3; lean_object* l_Lean_Elab_Tactic_getFVarIds(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_findCore___at_Lean_Meta_mkGeneralizationForbiddenSet_visit___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getArgExpectedType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__1(lean_object*, lean_object*, 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_Array_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Elab_Tactic_elabCasesTargets___spec__3___closed__1; lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets(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_evalInduction___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1(uint8_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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction(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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___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_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___spec__2(lean_object*, 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_Term_withoutHeedElabAsElim___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_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_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___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_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_EXPORT uint8_t l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_isHoleRHS(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5; +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__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_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabCasesTargets___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_State_alts___default; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__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*); uint8_t l_Lean_Expr_hasMVar(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addNewArg___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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__1(lean_object*, lean_object*, 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_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_mkElimApp___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp(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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___lambda__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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__5___boxed(lean_object**); +lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__4; lean_object* l_Lean_Elab_Term_withoutHeedElabAsElimImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__6(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9; +LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(lean_object*); +lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3; size_t lean_usize_of_nat(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f___spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__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* l_Lean_Elab_Tactic_getGoals___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727_(lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__2; -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(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_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(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_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, 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_ElimApp_instInhabitedAlt___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___spec__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_EXPORT lean_object* l_Lean_Elab_Tactic_tactic_customEliminators; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(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_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___spec__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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__4(size_t, size_t, 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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__3___boxed(lean_object**); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(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_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__4___closed__2; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___closed__1; static lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___at_Lean_Elab_Tactic_evalInduction_checkTargets___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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_zip___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__1; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___boxed(lean_object**); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__3___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2___closed__2; lean_object* l_Lean_MessageData_ofSyntax(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2; lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8; lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___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_Lean_Elab_Tactic_evalInduction___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRHS___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__1; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed__const__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); static lean_object* l_Lean_Elab_Tactic_isHoleRHS___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__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*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__4(uint8_t, 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_elabCasesTargets(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_Lean_Elab_Tactic_ElimApp_mkElimApp___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*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__4; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11___boxed(lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___boxed__const__1; lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__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* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__2___boxed(lean_object**); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVars(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__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_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard___boxed(lean_object*); lean_object* l_Lean_Meta_getCustomEliminator_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Tactic_elabCasesTargets___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__6(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_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__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_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_elabCasesTargets___spec__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*); lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2; +lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__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*); static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__5; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__1(lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts___boxed(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1; lean_object* lean_array_to_list(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3; +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__1(lean_object*, lean_object*, 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_Meta_abstractMVars(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200_(lean_object*); lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_State_insts___default; lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, 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_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_mkElimApp___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt(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_Lean_levelZero; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1(lean_object*); lean_object* l_Lean_MVarId_revert(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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* l_Lean_Meta_addImplicitTargets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp___closed__2; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5; -static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1; -static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___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_Lean_Elab_Tactic_ElimApp_evalAlts_go___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* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_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_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1; lean_object* l_Lean_Syntax_getSepArgs(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___boxed(lean_object**); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___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_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1___rarg(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___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__4; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4; +LEAN_EXPORT lean_object* l_Array_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__7; +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__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_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_State_argPos___default; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCasesTargets___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__4___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__5(lean_object*, lean_object*, size_t, 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_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___closed__2; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__3; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__5(lean_object*, lean_object*, size_t, size_t, 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_ElimApp_instInhabitedAlt; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__7(uint8_t, 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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___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*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6; lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__2(lean_object*, lean_object*, size_t, 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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__2___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_Lean_Language_Snapshot_Diagnostics_empty; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___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_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__7___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(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_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__2; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__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*); +extern lean_object* l_Std_Format_defWidth; +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2(lean_object*, uint8_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_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2; extern lean_object* l_Lean_Meta_instInhabitedElimAltInfo; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__3(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedFVarId; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__3___closed__1; static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___closed__1; +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8; lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts(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_Lean_Elab_Tactic_ElimApp_evalAlts_go(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*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2; lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5(uint8_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_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___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_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__3; lean_object* l_Lean_Expr_eta(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___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_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1(lean_object*, size_t, size_t, 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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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_Lean_Elab_Tactic_evalInduction___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_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName(lean_object*); lean_object* l_Lean_Meta_forallMetaBoundedTelescope(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___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_ElimApp_evalAlts_applyAltStx___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(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_elabCasesTargets___lambda__2(lean_object*, size_t, 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_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569_(lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1; lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__7; -static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__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_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__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_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_isHoleRHS___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getArgExpectedType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltDArrow___boxed(lean_object*); lean_object* l_Lean_Elab_Term_addLocalVarInfo(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__13___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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___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_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6; +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569_(lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getArgExpectedType___boxed(lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltDArrow(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -484,15 +535,17 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__6(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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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* l_Lean_indentExpr(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); +static lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1; lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12; lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__1(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___boxed(lean_object**); lean_object* l_Lean_Meta_getFVarSetToGeneralize(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___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_getInductiveValFromMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -500,13 +553,14 @@ lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, l static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__2; lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBTree_toArray___at_Lean_Meta_getFVarsToGeneralize___spec__1(lean_object*); +uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__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_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__4___boxed(lean_object**); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__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_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_mkElimApp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental(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_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__2(lean_object*, uint8_t, 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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___boxed__const__1; @@ -518,57 +572,61 @@ lean_object* l_Lean_MVarId_tryClear(lean_object*, lean_object*, lean_object*, le lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___boxed(lean_object*); +lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__1___boxed(lean_object**); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___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_Elab_Tactic_ElimApp_evalAlts___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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*, lean_object*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +lean_object* l_List_iotaTR(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__6; +extern lean_object* l_Lean_Elab_Tactic_instInhabitedTacticFinished; +lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__1; -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f___spec__1(lean_object*, size_t, size_t); lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_elabCasesTargets___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__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_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___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*); lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabCasesTargets___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__3(lean_object*, size_t, size_t, 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_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType___boxed(lean_object*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___closed__1; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___boxed(lean_object**); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___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_evalInduction___lambda__3___boxed(lean_object**); static lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__4; +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7; +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___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_array_uget(lean_object*, size_t); lean_object* l_Lean_Expr_fvar___override(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__2___closed__1; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2; +lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___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_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames(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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_List_redLength___rarg(lean_object*); @@ -579,79 +637,89 @@ lean_object* l_Lean_Meta_sortFVarIds(lean_object*, lean_object*, lean_object*, l LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__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_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg(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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__7(lean_object*, lean_object*, size_t, 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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__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*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_shouldGeneralizeTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getFirstAltLhs___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574_(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_isHoleRHS___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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*); static lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__6; uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___boxed(lean_object**); uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_admitGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_unifyEqs_x3f(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_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___lambda__1(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_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts(lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals(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_evalCases(lean_object*, lean_object*, 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_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed(lean_object*, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_mkElimApp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_mkElimApp___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__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*); uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___lambda__1___closed__2; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; +lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__3___closed__2; +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1; lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_elabCasesTargets___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_object*); +static lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___spec__1(lean_object*, size_t, size_t, 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_ElimApp_reorderAlts(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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 uint8_t l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(uint8_t, lean_object*); +static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_Result_others___default; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCasesTargets___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*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___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_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds(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_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_State_targetPos___default; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__3___boxed(lean_object**); uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getFirstAltLhs(lean_object* x_1) { @@ -1023,7 +1091,7 @@ return x_22; } else { -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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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; uint8_t x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_23 = lean_ctor_get(x_10, 0); x_24 = lean_ctor_get(x_10, 1); x_25 = lean_ctor_get(x_10, 2); @@ -1035,7 +1103,10 @@ x_30 = lean_ctor_get(x_10, 7); x_31 = lean_ctor_get(x_10, 8); x_32 = lean_ctor_get(x_10, 9); x_33 = lean_ctor_get(x_10, 10); -x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_35 = lean_ctor_get(x_10, 11); +x_36 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -1048,24 +1119,26 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_10); -x_35 = l_Lean_replaceRef(x_18, x_28); +x_37 = l_Lean_replaceRef(x_18, x_28); lean_dec(x_28); lean_dec(x_18); -x_36 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_24); -lean_ctor_set(x_36, 2, x_25); -lean_ctor_set(x_36, 3, x_26); -lean_ctor_set(x_36, 4, x_27); -lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_29); -lean_ctor_set(x_36, 7, x_30); -lean_ctor_set(x_36, 8, x_31); -lean_ctor_set(x_36, 9, x_32); -lean_ctor_set(x_36, 10, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_34); -x_37 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36, x_11, x_12); -return x_37; +x_38 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_38, 0, x_23); +lean_ctor_set(x_38, 1, x_24); +lean_ctor_set(x_38, 2, x_25); +lean_ctor_set(x_38, 3, x_26); +lean_ctor_set(x_38, 4, x_27); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_29); +lean_ctor_set(x_38, 7, x_30); +lean_ctor_set(x_38, 8, x_31); +lean_ctor_set(x_38, 9, x_32); +lean_ctor_set(x_38, 10, x_33); +lean_ctor_set(x_38, 11, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*12, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*12 + 1, x_36); +x_39 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38, x_11, x_12); +return x_39; } } } @@ -1122,66 +1195,221 @@ return x_18; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = l_Lean_Elab_Tactic_setGoals(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__1), 11, 2); -lean_closure_set(x_17, 0, x_2); -lean_closure_set(x_17, 1, x_3); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); -lean_closure_set(x_18, 0, x_4); -lean_closure_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_16); -if (lean_obj_tag(x_19) == 0) +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Elab_Tactic_getGoals___rarg(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; -x_21 = lean_ctor_get(x_19, 0); -lean_dec(x_21); -lean_ctor_set(x_19, 0, x_5); -return x_19; -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); +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_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = lean_box(0); +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 1, x_18); +lean_ctor_set(x_14, 0, x_1); +x_19 = l_Lean_Elab_Tactic_setGoals(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); lean_dec(x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_5); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -else +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__1), 11, 2); +lean_closure_set(x_21, 0, x_2); +lean_closure_set(x_21, 1, x_3); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_22, 0, x_4); +lean_closure_set(x_22, 1, x_21); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_23 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +if (lean_obj_tag(x_23) == 0) { -uint8_t x_24; -lean_dec(x_5); -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) -{ -return x_19; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -lean_dec(x_19); -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; +lean_dec(x_23); +x_26 = l_Lean_Elab_Tactic_setGoals(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_24); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_23, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_23, 1); +lean_inc(x_32); +lean_dec(x_23); +x_33 = l_Lean_Elab_Tactic_setGoals(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_31); +return x_33; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +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; +x_38 = lean_ctor_get(x_14, 0); +x_39 = lean_ctor_get(x_14, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_14); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_1); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_Elab_Tactic_setGoals(x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__1), 11, 2); +lean_closure_set(x_44, 0, x_2); +lean_closure_set(x_44, 1, x_3); +x_45 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_45, 0, x_4); +lean_closure_set(x_45, 1, x_44); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_46 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_43); +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; +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 = l_Lean_Elab_Tactic_setGoals(x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_48); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_47); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +else +{ +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_53 = lean_ctor_get(x_46, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +lean_dec(x_46); +x_55 = l_Lean_Elab_Tactic_setGoals(x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_54); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + 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_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_53); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } } @@ -1234,7 +1462,7 @@ lean_inc(x_3); x_18 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_2, x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); if (lean_obj_tag(x_18) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +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; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -1258,10 +1486,21 @@ lean_dec(x_23); x_26 = lean_ctor_get(x_13, 0); lean_inc(x_26); lean_dec(x_13); -lean_inc(x_24); x_27 = lean_array_to_list(lean_box(0), x_24); x_28 = l_Lean_Elab_Tactic_evalAlt___lambda__3___closed__2; +lean_inc(x_27); x_29 = l_Lean_Elab_Tactic_tagUntaggedGoals(x_26, x_28, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l_Lean_Elab_Tactic_getGoals___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_List_appendTR___rarg(x_32, x_27); +x_35 = l_Lean_Elab_Tactic_setGoals(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_33); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -1270,30 +1509,11 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -lean_ctor_set(x_29, 0, x_24); -return x_29; +return x_35; } else { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_24); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -else -{ -uint8_t x_34; +uint8_t x_36; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -1304,29 +1524,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_18); -if (x_34 == 0) +x_36 = !lean_is_exclusive(x_18); +if (x_36 == 0) { return x_18; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_18, 0); -x_36 = lean_ctor_get(x_18, 1); -lean_inc(x_36); -lean_inc(x_35); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_18, 0); +x_38 = lean_ctor_get(x_18, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_18); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +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; } } } else { -uint8_t x_38; +uint8_t x_40; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -1337,108 +1557,58 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_12); -if (x_38 == 0) +x_40 = !lean_is_exclusive(x_12); +if (x_40 == 0) { return x_12; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_12, 0); -x_40 = lean_ctor_get(x_12, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_12, 0); +x_42 = lean_ctor_get(x_12, 1); +lean_inc(x_42); +lean_inc(x_41); lean_dec(x_12); -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; +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___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) { _start: { -lean_object* x_14; -lean_inc(x_12); +lean_object* x_13; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_14 = lean_apply_7(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_14) == 0) +lean_inc(x_6); +x_13 = lean_apply_7(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); lean_inc(x_3); lean_inc(x_2); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__3), 11, 2); -lean_closure_set(x_16, 0, x_2); -lean_closure_set(x_16, 1, x_3); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); -lean_closure_set(x_17, 0, x_3); -lean_closure_set(x_17, 1, x_16); -x_18 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_2, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_15); -if (lean_obj_tag(x_18) == 0) -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -x_21 = l_Array_append___rarg(x_4, x_20); -lean_ctor_set(x_18, 0, x_21); -return x_18; +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__3), 11, 2); +lean_closure_set(x_15, 0, x_2); +lean_closure_set(x_15, 1, x_3); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_16, 0, x_3); +lean_closure_set(x_16, 1, x_15); +x_17 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +return x_17; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_18); -x_24 = l_Array_append___rarg(x_4, x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -} -else -{ -uint8_t x_26; -lean_dec(x_4); -x_26 = !lean_is_exclusive(x_18); -if (x_26 == 0) -{ -return x_18; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_18, 0); -x_28 = lean_ctor_get(x_18, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_18); -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; -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_12); +uint8_t x_18; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1449,66 +1619,60 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_14); -if (x_30 == 0) -{ -return x_14; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_14, 0); -x_32 = lean_ctor_get(x_14, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_14); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_14 = lean_unsigned_to_nat(2u); -x_15 = l_Lean_Syntax_getArg(x_2, x_14); -x_16 = lean_unsigned_to_nat(1u); -x_17 = l_Lean_Syntax_getArg(x_2, x_16); -lean_inc(x_15); -x_18 = l_Lean_Elab_Tactic_isHoleRHS(x_15); +x_18 = !lean_is_exclusive(x_13); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_19); -lean_inc(x_15); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2), 14, 5); -lean_closure_set(x_21, 0, x_20); -lean_closure_set(x_21, 1, x_3); -lean_closure_set(x_21, 2, x_15); -lean_closure_set(x_21, 3, x_2); -lean_closure_set(x_21, 4, x_4); -x_22 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1(x_17, x_15, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_22; +return x_13; } else { -lean_object* x_23; lean_object* x_24; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_unsigned_to_nat(2u); +x_14 = l_Lean_Syntax_getArg(x_2, x_13); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Lean_Syntax_getArg(x_2, x_15); +lean_inc(x_14); +x_17 = l_Lean_Elab_Tactic_isHoleRHS(x_14); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_inc(x_14); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2), 13, 4); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_3); +lean_closure_set(x_18, 2, x_14); +lean_closure_set(x_18, 3, x_2); +x_19 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1(x_16, x_14, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_dec(x_2); -lean_inc(x_15); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__4), 13, 4); -lean_closure_set(x_23, 0, x_3); -lean_closure_set(x_23, 1, x_1); -lean_closure_set(x_23, 2, x_15); -lean_closure_set(x_23, 3, x_4); -x_24 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1(x_17, x_15, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_24; +lean_inc(x_14); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__4), 12, 3); +lean_closure_set(x_20, 0, x_3); +lean_closure_set(x_20, 1, x_1); +lean_closure_set(x_20, 2, x_14); +x_21 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1(x_16, x_14, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_21; } } } @@ -3333,9 +3497,9 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_27; lean_object* x_28; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_22; lean_object* x_23; lean_object* x_34; lean_object* x_35; x_14 = lean_array_uget(x_1, x_3); -x_27 = lean_box(0); +x_34 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -3343,85 +3507,100 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_14); -x_28 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_14, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_28) == 0) +x_35 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_14, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_unbox(x_29); -lean_dec(x_29); -if (x_30 == 0) +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_unbox(x_36); +lean_dec(x_36); +if (x_37 == 0) { -lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = 2; +lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = 2; lean_inc(x_14); -x_33 = l_Lean_MVarId_setKind(x_14, x_32, x_7, x_8, x_9, x_10, x_31); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_array_push(x_4, x_14); -x_36 = 1; -x_37 = lean_usize_add(x_3, x_36); -x_3 = x_37; -x_4 = x_35; -x_11 = x_34; -goto _start; -} -else -{ -lean_object* x_39; size_t x_40; size_t x_41; -lean_dec(x_14); -x_39 = lean_ctor_get(x_28, 1); -lean_inc(x_39); -lean_dec(x_28); -x_40 = 1; -x_41 = lean_usize_add(x_3, x_40); -x_3 = x_41; -x_11 = x_39; -goto _start; -} -} -else -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_28, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_28, 1); -lean_inc(x_44); -lean_dec(x_28); +x_40 = l_Lean_MVarId_setKind(x_14, x_39, x_7, x_8, x_9, x_10, x_38); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_array_push(x_4, x_14); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); x_15 = x_43; -x_16 = x_44; -goto block_26; -} -block_26: -{ -uint8_t x_17; -x_17 = l_Lean_Exception_isRuntime(x_15); -if (x_17 == 0) -{ -uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; -lean_dec(x_15); -x_18 = 2; -lean_inc(x_14); -x_19 = l_Lean_MVarId_setKind(x_14, x_18, x_7, x_8, x_9, x_10, x_16); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_array_push(x_4, x_14); -x_22 = 1; -x_23 = lean_usize_add(x_3, x_22); -x_3 = x_23; -x_4 = x_21; -x_11 = x_20; -goto _start; +x_16 = x_41; +goto block_21; } else { -lean_object* x_25; +lean_object* x_44; lean_object* x_45; +lean_dec(x_14); +x_44 = lean_ctor_get(x_35, 1); +lean_inc(x_44); +lean_dec(x_35); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_4); +x_15 = x_45; +x_16 = x_44; +goto block_21; +} +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_35, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_35, 1); +lean_inc(x_47); +lean_dec(x_35); +x_22 = x_46; +x_23 = x_47; +goto block_33; +} +block_21: +{ +lean_object* x_17; size_t x_18; size_t x_19; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = lean_usize_add(x_3, x_18); +x_3 = x_19; +x_4 = x_17; +x_11 = x_16; +goto _start; +} +block_33: +{ +uint8_t x_24; +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) +{ +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_22); +x_26 = 2; +lean_inc(x_14); +x_27 = l_Lean_MVarId_setKind(x_14, x_26, x_7, x_8, x_9, x_10, x_23); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_array_push(x_4, x_14); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_15 = x_30; +x_16 = x_28; +goto block_21; +} +else +{ +lean_object* x_31; lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); @@ -3430,10 +3609,27 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_16); -return x_25; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_23); +return x_31; +} +} +else +{ +lean_object* x_32; +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_5); +lean_dec(x_4); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_23); +return x_32; } } } @@ -4577,6 +4773,27 @@ lean_dec(x_3); return x_9; } } +LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_1); +x_3 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__7; +x_4 = lean_name_eq(x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { _start: { @@ -4787,20 +5004,20 @@ lean_dec(x_4); x_23 = lean_nat_dec_lt(x_5, x_3); if (x_23 == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = l_Lean_instInhabitedSyntax; -x_83 = l___private_Init_GetElem_0__outOfBounds___rarg(x_82); -x_24 = x_83; -goto block_81; +lean_object* x_84; lean_object* x_85; +x_84 = l_Lean_instInhabitedSyntax; +x_85 = l___private_Init_GetElem_0__outOfBounds___rarg(x_84); +x_24 = x_85; +goto block_83; } else { -lean_object* x_84; -x_84 = lean_array_fget(x_2, x_5); -x_24 = x_84; -goto block_81; +lean_object* x_86; +x_86 = lean_array_fget(x_2, x_5); +x_24 = x_86; +goto block_83; } -block_81: +block_83: { lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_24); @@ -4923,7 +5140,7 @@ return x_49; } 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; lean_object* x_56; 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; lean_object* x_68; lean_object* x_69; +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; uint8_t 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; lean_object* x_70; lean_object* x_71; x_50 = lean_ctor_get(x_15, 0); x_51 = lean_ctor_get(x_15, 1); x_52 = lean_ctor_get(x_15, 2); @@ -4935,7 +5152,10 @@ x_57 = lean_ctor_get(x_15, 7); x_58 = lean_ctor_get(x_15, 8); x_59 = lean_ctor_get(x_15, 9); x_60 = lean_ctor_get(x_15, 10); -x_61 = lean_ctor_get_uint8(x_15, sizeof(void*)*11); +x_61 = lean_ctor_get_uint8(x_15, sizeof(void*)*12); +x_62 = lean_ctor_get(x_15, 11); +x_63 = lean_ctor_get_uint8(x_15, sizeof(void*)*12 + 1); +lean_inc(x_62); lean_inc(x_60); lean_inc(x_59); lean_inc(x_58); @@ -4948,58 +5168,60 @@ lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); lean_dec(x_15); -x_62 = l_Lean_replaceRef(x_24, x_55); +x_64 = l_Lean_replaceRef(x_24, x_55); lean_dec(x_55); lean_dec(x_24); -x_63 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_63, 0, x_50); -lean_ctor_set(x_63, 1, x_51); -lean_ctor_set(x_63, 2, x_52); -lean_ctor_set(x_63, 3, x_53); -lean_ctor_set(x_63, 4, x_54); -lean_ctor_set(x_63, 5, x_62); -lean_ctor_set(x_63, 6, x_56); -lean_ctor_set(x_63, 7, x_57); -lean_ctor_set(x_63, 8, x_58); -lean_ctor_set(x_63, 9, x_59); -lean_ctor_set(x_63, 10, x_60); -lean_ctor_set_uint8(x_63, sizeof(void*)*11, x_61); -x_64 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___closed__2; -x_65 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_64, x_9, x_10, x_11, x_12, x_13, x_14, x_63, x_16, x_17); +x_65 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_65, 0, x_50); +lean_ctor_set(x_65, 1, x_51); +lean_ctor_set(x_65, 2, x_52); +lean_ctor_set(x_65, 3, x_53); +lean_ctor_set(x_65, 4, x_54); +lean_ctor_set(x_65, 5, x_64); +lean_ctor_set(x_65, 6, x_56); +lean_ctor_set(x_65, 7, x_57); +lean_ctor_set(x_65, 8, x_58); +lean_ctor_set(x_65, 9, x_59); +lean_ctor_set(x_65, 10, x_60); +lean_ctor_set(x_65, 11, x_62); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_61); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_63); +x_66 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___closed__2; +x_67 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_66, x_9, x_10, x_11, x_12, x_13, x_14, x_65, x_16, x_17); lean_dec(x_16); -lean_dec(x_63); +lean_dec(x_65); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_68 = x_65; +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_65); - x_68 = lean_box(0); + lean_dec_ref(x_67); + x_70 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_69 = x_68; + x_71 = x_70; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_box(0); +lean_object* x_72; lean_object* x_73; +x_72 = lean_box(0); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -5008,29 +5230,29 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_71 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1(x_24, x_26, x_1, x_70, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -if (lean_obj_tag(x_71) == 0) +x_73 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1(x_24, x_26, x_1, x_72, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -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_74 = lean_ctor_get(x_72, 0); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_nat_add(x_5, x_7); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +lean_dec(x_74); +x_77 = lean_nat_add(x_5, x_7); lean_dec(x_5); x_4 = x_22; -x_5 = x_75; -x_8 = x_74; -x_17 = x_73; +x_5 = x_77; +x_8 = x_76; +x_17 = x_75; goto _start; } else { -uint8_t x_77; +uint8_t x_79; lean_dec(x_22); lean_dec(x_16); lean_dec(x_15); @@ -5041,23 +5263,23 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); -x_77 = !lean_is_exclusive(x_71); -if (x_77 == 0) +x_79 = !lean_is_exclusive(x_73); +if (x_79 == 0) { -return x_71; +return x_73; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_71, 0); -x_79 = lean_ctor_get(x_71, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_71); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_73, 0); +x_81 = lean_ctor_get(x_73, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_73); +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; } } } @@ -5066,7 +5288,7 @@ return x_80; } else { -lean_object* x_85; +lean_object* x_87; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -5077,15 +5299,15 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_8); -lean_ctor_set(x_85, 1, x_17); -return x_85; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_8); +lean_ctor_set(x_87, 1, x_17); +return x_87; } } else { -lean_object* x_86; +lean_object* x_88; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -5096,10 +5318,10 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_8); -lean_ctor_set(x_86, 1, x_17); -return x_86; +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_8); +lean_ctor_set(x_88, 1, x_17); +return x_88; } } } @@ -8251,301 +8473,1370 @@ lean_dec(x_1); return x_16; } } -LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_name_eq(x_3, x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___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_lt(x_4, x_3); -if (x_6 == 0) -{ -lean_dec(x_1); -return x_5; -} -else -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_array_uget(x_2, x_4); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_dec(x_5); -x_9 = !lean_is_exclusive(x_8); -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; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_7); -lean_dec(x_7); -x_13 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1___boxed), 2, 1); -lean_closure_set(x_13, 0, x_12); -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Array_findIdx_x3f_loop___rarg(x_10, x_13, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_1); -lean_inc(x_10); -lean_inc(x_11); -x_16 = l_Array_append___rarg(x_11, x_10); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, 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_8); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_array_get_size(x_10); -x_21 = lean_nat_dec_lt(x_19, x_20); -lean_dec(x_20); -lean_inc(x_19); -lean_inc(x_10); -x_22 = l_Array_eraseIdx___rarg(x_10, x_19); -if (x_21 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; -lean_dec(x_19); -lean_dec(x_10); -x_23 = l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt; -x_24 = l___private_Init_GetElem_0__outOfBounds___rarg(x_23); -x_25 = lean_array_push(x_11, x_24); -lean_ctor_set(x_8, 1, x_25); -lean_ctor_set(x_8, 0, x_22); -lean_inc(x_1); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_1); -lean_ctor_set(x_26, 1, x_8); -x_27 = 1; -x_28 = lean_usize_add(x_4, x_27); -x_4 = x_28; -x_5 = x_26; -goto _start; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; -x_30 = lean_array_fget(x_10, x_19); -lean_dec(x_19); -lean_dec(x_10); -x_31 = lean_array_push(x_11, x_30); -lean_ctor_set(x_8, 1, x_31); -lean_ctor_set(x_8, 0, x_22); -lean_inc(x_1); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set(x_32, 1, x_8); -x_33 = 1; -x_34 = lean_usize_add(x_4, x_33); -x_4 = x_34; -x_5 = x_32; -goto _start; -} -} -} -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_8, 0); -x_37 = lean_ctor_get(x_8, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_8); -x_38 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_7); -lean_dec(x_7); -x_39 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1___boxed), 2, 1); -lean_closure_set(x_39, 0, x_38); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_Array_findIdx_x3f_loop___rarg(x_36, x_39, x_40); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_1); -lean_inc(x_36); -lean_inc(x_37); -x_42 = l_Array_append___rarg(x_37, x_36); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_36); -lean_ctor_set(x_44, 1, x_37); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 0); -lean_inc(x_46); -lean_dec(x_41); -x_47 = lean_array_get_size(x_36); -x_48 = lean_nat_dec_lt(x_46, x_47); -lean_dec(x_47); -lean_inc(x_46); -lean_inc(x_36); -x_49 = l_Array_eraseIdx___rarg(x_36, x_46); -if (x_48 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; size_t x_56; -lean_dec(x_46); -lean_dec(x_36); -x_50 = l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt; -x_51 = l___private_Init_GetElem_0__outOfBounds___rarg(x_50); -x_52 = lean_array_push(x_37, x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_52); -lean_inc(x_1); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_1); -lean_ctor_set(x_54, 1, x_53); -x_55 = 1; -x_56 = lean_usize_add(x_4, x_55); -x_4 = x_56; -x_5 = x_54; -goto _start; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; -x_58 = lean_array_fget(x_36, x_46); -lean_dec(x_46); -lean_dec(x_36); -x_59 = lean_array_push(x_37, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_59); -lean_inc(x_1); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_1); -lean_ctor_set(x_61, 1, x_60); -x_62 = 1; -x_63 = lean_usize_add(x_4, x_62); -x_4 = x_63; -x_5 = x_61; -goto _start; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_append___rarg(x_1, x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts(lean_object* x_1, lean_object* x_2) { -_start: +if (x_1 == 0) { uint8_t x_3; -x_3 = l_Array_isEmpty___rarg(x_2); -if (x_3 == 0) +x_3 = 1; +return x_3; +} +else { -lean_object* x_4; 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; lean_object* x_12; lean_object* x_13; -x_4 = lean_box(0); -x_5 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_1); -lean_ctor_set(x_6, 1, x_5); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_4); -lean_ctor_set(x_7, 1, x_6); -x_8 = lean_array_get_size(x_2); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1(x_4, x_2, x_9, x_10, x_7); -x_12 = lean_ctor_get(x_11, 1); +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(0); +x_4 = lean_apply_1(x_1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("trace", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; +x_3 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse stopped: guard failed at ", 31); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1(uint8_t 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_5, 8); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_5); +if (x_13 == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_Array_append___rarg(x_15, x_14); +x_14 = lean_ctor_get(x_5, 8); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_5, 8, x_15); +x_16 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_16; } else { -lean_object* x_17; -lean_dec(x_12); -x_17 = lean_ctor_get(x_13, 0); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +x_19 = lean_ctor_get(x_5, 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_23 = lean_ctor_get(x_5, 3); +x_24 = lean_ctor_get(x_5, 4); +x_25 = lean_ctor_get(x_5, 5); +x_26 = lean_ctor_get(x_5, 6); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_32 = lean_ctor_get(x_5, 7); +x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_32); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_19); +lean_inc(x_18); lean_inc(x_17); -lean_dec(x_13); -return x_17; +lean_dec(x_5); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_36, 0, x_17); +lean_ctor_set(x_36, 1, x_18); +lean_ctor_set(x_36, 2, x_19); +lean_ctor_set(x_36, 3, x_23); +lean_ctor_set(x_36, 4, x_24); +lean_ctor_set(x_36, 5, x_25); +lean_ctor_set(x_36, 6, x_26); +lean_ctor_set(x_36, 7, x_32); +lean_ctor_set(x_36, 8, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 8, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 9, x_34); +x_37 = lean_apply_9(x_2, x_3, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11); +return x_37; } } else { -return x_1; -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: +uint8_t x_38; +x_38 = !lean_is_exclusive(x_12); +if (x_38 == 0) { -uint8_t x_3; lean_object* x_4; -x_3 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1___lambda__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__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_39; lean_object* x_40; +x_39 = lean_ctor_get(x_12, 0); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) { -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_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_reorderAlts___spec__1(x_1, x_2, x_6, x_7, x_5); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +uint8_t x_41; +x_41 = !lean_is_exclusive(x_5); +if (x_41 == 0) { -lean_object* x_4; -x_4 = l_Lean_Elab_Tactic_ElimApp_reorderAlts___lambda__1(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_reorderAlts___boxed(lean_object* x_1, lean_object* x_2) { -_start: +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_5, 8); +lean_dec(x_42); +x_43 = lean_box(0); +x_44 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_43); +if (x_44 == 0) { -lean_object* x_3; -x_3 = l_Lean_Elab_Tactic_ElimApp_reorderAlts(x_1, x_2); -lean_dec(x_2); -return x_3; +lean_object* x_45; lean_object* x_46; +lean_free_object(x_12); +lean_dec(x_39); +x_45 = lean_box(0); +lean_ctor_set(x_5, 8, x_45); +x_46 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_46; +} +else +{ +lean_object* x_47; +x_47 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_47; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; uint8_t x_67; +x_48 = lean_ctor_get(x_5, 0); +x_49 = lean_ctor_get(x_5, 1); +x_50 = lean_ctor_get(x_5, 2); +x_51 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_53 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_54 = lean_ctor_get(x_5, 3); +x_55 = lean_ctor_get(x_5, 4); +x_56 = lean_ctor_get(x_5, 5); +x_57 = lean_ctor_get(x_5, 6); +x_58 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_59 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_60 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_61 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_62 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_63 = lean_ctor_get(x_5, 7); +x_64 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_65 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_63); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_5); +x_66 = lean_box(0); +x_67 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_free_object(x_12); +lean_dec(x_39); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_69, 0, x_48); +lean_ctor_set(x_69, 1, x_49); +lean_ctor_set(x_69, 2, x_50); +lean_ctor_set(x_69, 3, x_54); +lean_ctor_set(x_69, 4, x_55); +lean_ctor_set(x_69, 5, x_56); +lean_ctor_set(x_69, 6, x_57); +lean_ctor_set(x_69, 7, x_63); +lean_ctor_set(x_69, 8, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*9, x_51); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 1, x_52); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 2, x_53); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 3, x_58); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 4, x_59); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 5, x_60); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 6, x_61); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 7, x_62); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 8, x_64); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 9, x_65); +x_70 = lean_apply_9(x_2, x_3, x_4, x_69, x_6, x_7, x_8, x_9, x_10, x_11); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_71, 0, x_48); +lean_ctor_set(x_71, 1, x_49); +lean_ctor_set(x_71, 2, x_50); +lean_ctor_set(x_71, 3, x_54); +lean_ctor_set(x_71, 4, x_55); +lean_ctor_set(x_71, 5, x_56); +lean_ctor_set(x_71, 6, x_57); +lean_ctor_set(x_71, 7, x_63); +lean_ctor_set(x_71, 8, x_12); +lean_ctor_set_uint8(x_71, sizeof(void*)*9, x_51); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 1, x_52); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 2, x_53); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 3, x_58); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 4, x_59); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 5, x_60); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 6, x_61); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 7, x_62); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 8, x_64); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 9, x_65); +x_72 = lean_apply_9(x_2, x_3, x_4, x_71, x_6, x_7, x_8, x_9, x_10, x_11); +return x_72; +} +} +} +else +{ +lean_free_object(x_12); +if (x_1 == 0) +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_40); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_40, 0); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_5); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = lean_ctor_get(x_5, 8); +lean_dec(x_76); +x_77 = lean_box(0); +x_78 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +lean_free_object(x_40); +lean_dec(x_39); +x_79 = lean_box(0); +lean_ctor_set(x_5, 8, x_79); +x_80 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_80; +} +else +{ +lean_object* x_81; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_81 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; lean_object* x_100; uint8_t x_101; +x_82 = lean_ctor_get(x_5, 0); +x_83 = lean_ctor_get(x_5, 1); +x_84 = lean_ctor_get(x_5, 2); +x_85 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_86 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_87 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_88 = lean_ctor_get(x_5, 3); +x_89 = lean_ctor_get(x_5, 4); +x_90 = lean_ctor_get(x_5, 5); +x_91 = lean_ctor_get(x_5, 6); +x_92 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_93 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_94 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_95 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_96 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_97 = lean_ctor_get(x_5, 7); +x_98 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_99 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_97); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_5); +x_100 = lean_box(0); +x_101 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_free_object(x_40); +lean_dec(x_39); +x_102 = lean_box(0); +x_103 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_103, 0, x_82); +lean_ctor_set(x_103, 1, x_83); +lean_ctor_set(x_103, 2, x_84); +lean_ctor_set(x_103, 3, x_88); +lean_ctor_set(x_103, 4, x_89); +lean_ctor_set(x_103, 5, x_90); +lean_ctor_set(x_103, 6, x_91); +lean_ctor_set(x_103, 7, x_97); +lean_ctor_set(x_103, 8, x_102); +lean_ctor_set_uint8(x_103, sizeof(void*)*9, x_85); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 1, x_86); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 2, x_87); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 3, x_92); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 4, x_93); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 5, x_94); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 6, x_95); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 7, x_96); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 8, x_98); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 9, x_99); +x_104 = lean_apply_9(x_2, x_3, x_4, x_103, x_6, x_7, x_8, x_9, x_10, x_11); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_ctor_set(x_40, 0, x_39); +x_105 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_105, 0, x_82); +lean_ctor_set(x_105, 1, x_83); +lean_ctor_set(x_105, 2, x_84); +lean_ctor_set(x_105, 3, x_88); +lean_ctor_set(x_105, 4, x_89); +lean_ctor_set(x_105, 5, x_90); +lean_ctor_set(x_105, 6, x_91); +lean_ctor_set(x_105, 7, x_97); +lean_ctor_set(x_105, 8, x_40); +lean_ctor_set_uint8(x_105, sizeof(void*)*9, x_85); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 1, x_86); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 2, x_87); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 3, x_92); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 4, x_93); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 5, x_94); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 6, x_95); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 7, x_96); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 8, x_98); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 9, x_99); +x_106 = lean_apply_9(x_2, x_3, x_4, x_105, x_6, x_7, x_8, x_9, x_10, x_11); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; +lean_dec(x_40); +x_107 = lean_ctor_get(x_5, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_5, 1); +lean_inc(x_108); +x_109 = lean_ctor_get(x_5, 2); +lean_inc(x_109); +x_110 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_111 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_112 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_113 = lean_ctor_get(x_5, 3); +lean_inc(x_113); +x_114 = lean_ctor_get(x_5, 4); +lean_inc(x_114); +x_115 = lean_ctor_get(x_5, 5); +lean_inc(x_115); +x_116 = lean_ctor_get(x_5, 6); +lean_inc(x_116); +x_117 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_118 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_119 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_120 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_121 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_122 = lean_ctor_get(x_5, 7); +lean_inc(x_122); +x_123 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_124 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_125 = x_5; +} else { + lean_dec_ref(x_5); + x_125 = lean_box(0); +} +x_126 = lean_box(0); +x_127 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_126); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_39); +x_128 = lean_box(0); +if (lean_is_scalar(x_125)) { + x_129 = lean_alloc_ctor(0, 9, 10); +} else { + x_129 = x_125; +} +lean_ctor_set(x_129, 0, x_107); +lean_ctor_set(x_129, 1, x_108); +lean_ctor_set(x_129, 2, x_109); +lean_ctor_set(x_129, 3, x_113); +lean_ctor_set(x_129, 4, x_114); +lean_ctor_set(x_129, 5, x_115); +lean_ctor_set(x_129, 6, x_116); +lean_ctor_set(x_129, 7, x_122); +lean_ctor_set(x_129, 8, x_128); +lean_ctor_set_uint8(x_129, sizeof(void*)*9, x_110); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 1, x_111); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 2, x_112); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 3, x_117); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 4, x_118); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 5, x_119); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 6, x_120); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 7, x_121); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 8, x_123); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 9, x_124); +x_130 = lean_apply_9(x_2, x_3, x_4, x_129, x_6, x_7, x_8, x_9, x_10, x_11); +return x_130; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_39); +if (lean_is_scalar(x_125)) { + x_132 = lean_alloc_ctor(0, 9, 10); +} else { + x_132 = x_125; +} +lean_ctor_set(x_132, 0, x_107); +lean_ctor_set(x_132, 1, x_108); +lean_ctor_set(x_132, 2, x_109); +lean_ctor_set(x_132, 3, x_113); +lean_ctor_set(x_132, 4, x_114); +lean_ctor_set(x_132, 5, x_115); +lean_ctor_set(x_132, 6, x_116); +lean_ctor_set(x_132, 7, x_122); +lean_ctor_set(x_132, 8, x_131); +lean_ctor_set_uint8(x_132, sizeof(void*)*9, x_110); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 1, x_111); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 2, x_112); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 3, x_117); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 4, x_118); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 5, x_119); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 6, x_120); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 7, x_121); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 8, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 9, x_124); +x_133 = lean_apply_9(x_2, x_3, x_4, x_132, x_6, x_7, x_8, x_9, x_10, x_11); +return x_133; +} +} +} +else +{ +uint8_t x_134; +x_134 = !lean_is_exclusive(x_5); +if (x_134 == 0) +{ +lean_object* x_135; uint8_t x_136; +x_135 = lean_ctor_get(x_5, 8); +lean_dec(x_135); +x_136 = !lean_is_exclusive(x_40); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; uint8_t x_143; +x_137 = lean_ctor_get(x_40, 0); +x_138 = lean_ctor_get(x_9, 2); +lean_inc(x_138); +x_139 = lean_box(x_1); +x_140 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_140, 0, x_139); +x_141 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_142 = 0; +x_143 = l_Lean_KVMap_getBool(x_138, x_141, x_142); +lean_dec(x_138); +if (x_143 == 0) +{ +lean_object* x_144; uint8_t x_145; +lean_dec(x_140); +lean_dec(x_137); +x_144 = lean_box(0); +x_145 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_144); +if (x_145 == 0) +{ +lean_object* x_146; lean_object* x_147; +lean_free_object(x_40); +lean_dec(x_39); +x_146 = lean_box(0); +lean_ctor_set(x_5, 8, x_146); +x_147 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_147; +} +else +{ +lean_object* x_148; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_148 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_148; +} +} +else +{ +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; uint8_t x_161; +x_149 = lean_ctor_get(x_137, 0); +lean_inc(x_149); +lean_dec(x_137); +x_150 = lean_box(0); +x_151 = lean_unsigned_to_nat(0u); +x_152 = l_Lean_Syntax_formatStxAux(x_150, x_142, x_151, x_149); +x_153 = l_Std_Format_defWidth; +x_154 = lean_format_pretty(x_152, x_153, x_151, x_151); +x_155 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_156 = lean_string_append(x_155, x_154); +lean_dec(x_154); +x_157 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_158 = lean_string_append(x_156, x_157); +x_159 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_159, 0, x_140); +x_160 = lean_dbg_trace(x_158, x_159); +x_161 = lean_unbox(x_160); +lean_dec(x_160); +if (x_161 == 0) +{ +lean_object* x_162; +lean_free_object(x_40); +lean_dec(x_39); +lean_ctor_set(x_5, 8, x_150); +x_162 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_162; +} +else +{ +lean_object* x_163; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_163 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_163; +} +} +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; uint8_t x_170; +x_164 = lean_ctor_get(x_40, 0); +lean_inc(x_164); +lean_dec(x_40); +x_165 = lean_ctor_get(x_9, 2); +lean_inc(x_165); +x_166 = lean_box(x_1); +x_167 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_167, 0, x_166); +x_168 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_169 = 0; +x_170 = l_Lean_KVMap_getBool(x_165, x_168, x_169); +lean_dec(x_165); +if (x_170 == 0) +{ +lean_object* x_171; uint8_t x_172; +lean_dec(x_167); +lean_dec(x_164); +x_171 = lean_box(0); +x_172 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_39); +x_173 = lean_box(0); +lean_ctor_set(x_5, 8, x_173); +x_174 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_175, 0, x_39); +lean_ctor_set(x_5, 8, x_175); +x_176 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_176; +} +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_177 = lean_ctor_get(x_164, 0); +lean_inc(x_177); +lean_dec(x_164); +x_178 = lean_box(0); +x_179 = lean_unsigned_to_nat(0u); +x_180 = l_Lean_Syntax_formatStxAux(x_178, x_169, x_179, x_177); +x_181 = l_Std_Format_defWidth; +x_182 = lean_format_pretty(x_180, x_181, x_179, x_179); +x_183 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_184 = lean_string_append(x_183, x_182); +lean_dec(x_182); +x_185 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_186 = lean_string_append(x_184, x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_187, 0, x_167); +x_188 = lean_dbg_trace(x_186, x_187); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) +{ +lean_object* x_190; +lean_dec(x_39); +lean_ctor_set(x_5, 8, x_178); +x_190 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_190; +} +else +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_39); +lean_ctor_set(x_5, 8, x_191); +x_192 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_192; +} +} +} +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; uint8_t x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; uint8_t 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; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; uint8_t x_218; +x_193 = lean_ctor_get(x_5, 0); +x_194 = lean_ctor_get(x_5, 1); +x_195 = lean_ctor_get(x_5, 2); +x_196 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_197 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_198 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_199 = lean_ctor_get(x_5, 3); +x_200 = lean_ctor_get(x_5, 4); +x_201 = lean_ctor_get(x_5, 5); +x_202 = lean_ctor_get(x_5, 6); +x_203 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_204 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_205 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_206 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_207 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_208 = lean_ctor_get(x_5, 7); +x_209 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_210 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_208); +lean_inc(x_202); +lean_inc(x_201); +lean_inc(x_200); +lean_inc(x_199); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_5); +x_211 = lean_ctor_get(x_40, 0); +lean_inc(x_211); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + x_212 = x_40; +} else { + lean_dec_ref(x_40); + x_212 = lean_box(0); +} +x_213 = lean_ctor_get(x_9, 2); +lean_inc(x_213); +x_214 = lean_box(x_1); +x_215 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_215, 0, x_214); +x_216 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_217 = 0; +x_218 = l_Lean_KVMap_getBool(x_213, x_216, x_217); +lean_dec(x_213); +if (x_218 == 0) +{ +lean_object* x_219; uint8_t x_220; +lean_dec(x_215); +lean_dec(x_211); +x_219 = lean_box(0); +x_220 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_219); +if (x_220 == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_212); +lean_dec(x_39); +x_221 = lean_box(0); +x_222 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_222, 0, x_193); +lean_ctor_set(x_222, 1, x_194); +lean_ctor_set(x_222, 2, x_195); +lean_ctor_set(x_222, 3, x_199); +lean_ctor_set(x_222, 4, x_200); +lean_ctor_set(x_222, 5, x_201); +lean_ctor_set(x_222, 6, x_202); +lean_ctor_set(x_222, 7, x_208); +lean_ctor_set(x_222, 8, x_221); +lean_ctor_set_uint8(x_222, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 9, x_210); +x_223 = lean_apply_9(x_2, x_3, x_4, x_222, x_6, x_7, x_8, x_9, x_10, x_11); +return x_223; +} +else +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; +if (lean_is_scalar(x_212)) { + x_224 = lean_alloc_ctor(1, 1, 0); +} else { + x_224 = x_212; +} +lean_ctor_set(x_224, 0, x_39); +x_225 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_225, 0, x_193); +lean_ctor_set(x_225, 1, x_194); +lean_ctor_set(x_225, 2, x_195); +lean_ctor_set(x_225, 3, x_199); +lean_ctor_set(x_225, 4, x_200); +lean_ctor_set(x_225, 5, x_201); +lean_ctor_set(x_225, 6, x_202); +lean_ctor_set(x_225, 7, x_208); +lean_ctor_set(x_225, 8, x_224); +lean_ctor_set_uint8(x_225, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 9, x_210); +x_226 = lean_apply_9(x_2, x_3, x_4, x_225, x_6, x_7, x_8, x_9, x_10, x_11); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +x_227 = lean_ctor_get(x_211, 0); +lean_inc(x_227); +lean_dec(x_211); +x_228 = lean_box(0); +x_229 = lean_unsigned_to_nat(0u); +x_230 = l_Lean_Syntax_formatStxAux(x_228, x_217, x_229, x_227); +x_231 = l_Std_Format_defWidth; +x_232 = lean_format_pretty(x_230, x_231, x_229, x_229); +x_233 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_234 = lean_string_append(x_233, x_232); +lean_dec(x_232); +x_235 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_236 = lean_string_append(x_234, x_235); +x_237 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_237, 0, x_215); +x_238 = lean_dbg_trace(x_236, x_237); +x_239 = lean_unbox(x_238); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; lean_object* x_241; +lean_dec(x_212); +lean_dec(x_39); +x_240 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_240, 0, x_193); +lean_ctor_set(x_240, 1, x_194); +lean_ctor_set(x_240, 2, x_195); +lean_ctor_set(x_240, 3, x_199); +lean_ctor_set(x_240, 4, x_200); +lean_ctor_set(x_240, 5, x_201); +lean_ctor_set(x_240, 6, x_202); +lean_ctor_set(x_240, 7, x_208); +lean_ctor_set(x_240, 8, x_228); +lean_ctor_set_uint8(x_240, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 9, x_210); +x_241 = lean_apply_9(x_2, x_3, x_4, x_240, x_6, x_7, x_8, x_9, x_10, x_11); +return x_241; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +if (lean_is_scalar(x_212)) { + x_242 = lean_alloc_ctor(1, 1, 0); +} else { + x_242 = x_212; +} +lean_ctor_set(x_242, 0, x_39); +x_243 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_243, 0, x_193); +lean_ctor_set(x_243, 1, x_194); +lean_ctor_set(x_243, 2, x_195); +lean_ctor_set(x_243, 3, x_199); +lean_ctor_set(x_243, 4, x_200); +lean_ctor_set(x_243, 5, x_201); +lean_ctor_set(x_243, 6, x_202); +lean_ctor_set(x_243, 7, x_208); +lean_ctor_set(x_243, 8, x_242); +lean_ctor_set_uint8(x_243, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 9, x_210); +x_244 = lean_apply_9(x_2, x_3, x_4, x_243, x_6, x_7, x_8, x_9, x_10, x_11); +return x_244; +} +} +} +} +} +} +else +{ +lean_object* x_245; lean_object* x_246; +x_245 = lean_ctor_get(x_12, 0); +lean_inc(x_245); +lean_dec(x_12); +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; uint8_t x_250; uint8_t x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; uint8_t x_258; uint8_t x_259; uint8_t x_260; uint8_t x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_247 = lean_ctor_get(x_5, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_5, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_5, 2); +lean_inc(x_249); +x_250 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_251 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_252 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_253 = lean_ctor_get(x_5, 3); +lean_inc(x_253); +x_254 = lean_ctor_get(x_5, 4); +lean_inc(x_254); +x_255 = lean_ctor_get(x_5, 5); +lean_inc(x_255); +x_256 = lean_ctor_get(x_5, 6); +lean_inc(x_256); +x_257 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_258 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_259 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_260 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_261 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_262 = lean_ctor_get(x_5, 7); +lean_inc(x_262); +x_263 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_264 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_265 = x_5; +} else { + lean_dec_ref(x_5); + x_265 = lean_box(0); +} +x_266 = lean_box(0); +x_267 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_266); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_245); +x_268 = lean_box(0); +if (lean_is_scalar(x_265)) { + x_269 = lean_alloc_ctor(0, 9, 10); +} else { + x_269 = x_265; +} +lean_ctor_set(x_269, 0, x_247); +lean_ctor_set(x_269, 1, x_248); +lean_ctor_set(x_269, 2, x_249); +lean_ctor_set(x_269, 3, x_253); +lean_ctor_set(x_269, 4, x_254); +lean_ctor_set(x_269, 5, x_255); +lean_ctor_set(x_269, 6, x_256); +lean_ctor_set(x_269, 7, x_262); +lean_ctor_set(x_269, 8, x_268); +lean_ctor_set_uint8(x_269, sizeof(void*)*9, x_250); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 1, x_251); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 2, x_252); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 3, x_257); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 4, x_258); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 5, x_259); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 6, x_260); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 7, x_261); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 8, x_263); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 9, x_264); +x_270 = lean_apply_9(x_2, x_3, x_4, x_269, x_6, x_7, x_8, x_9, x_10, x_11); +return x_270; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_271, 0, x_245); +if (lean_is_scalar(x_265)) { + x_272 = lean_alloc_ctor(0, 9, 10); +} else { + x_272 = x_265; +} +lean_ctor_set(x_272, 0, x_247); +lean_ctor_set(x_272, 1, x_248); +lean_ctor_set(x_272, 2, x_249); +lean_ctor_set(x_272, 3, x_253); +lean_ctor_set(x_272, 4, x_254); +lean_ctor_set(x_272, 5, x_255); +lean_ctor_set(x_272, 6, x_256); +lean_ctor_set(x_272, 7, x_262); +lean_ctor_set(x_272, 8, x_271); +lean_ctor_set_uint8(x_272, sizeof(void*)*9, x_250); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 1, x_251); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 2, x_252); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 3, x_257); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 4, x_258); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 5, x_259); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 6, x_260); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 7, x_261); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 8, x_263); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 9, x_264); +x_273 = lean_apply_9(x_2, x_3, x_4, x_272, x_6, x_7, x_8, x_9, x_10, x_11); +return x_273; +} +} +else +{ +if (x_1 == 0) +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; uint8_t x_286; uint8_t x_287; uint8_t x_288; uint8_t x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + x_274 = x_246; +} else { + lean_dec_ref(x_246); + x_274 = lean_box(0); +} +x_275 = lean_ctor_get(x_5, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_5, 1); +lean_inc(x_276); +x_277 = lean_ctor_get(x_5, 2); +lean_inc(x_277); +x_278 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_279 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_280 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_281 = lean_ctor_get(x_5, 3); +lean_inc(x_281); +x_282 = lean_ctor_get(x_5, 4); +lean_inc(x_282); +x_283 = lean_ctor_get(x_5, 5); +lean_inc(x_283); +x_284 = lean_ctor_get(x_5, 6); +lean_inc(x_284); +x_285 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_286 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_287 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_288 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_289 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_290 = lean_ctor_get(x_5, 7); +lean_inc(x_290); +x_291 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_292 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_293 = x_5; +} else { + lean_dec_ref(x_5); + x_293 = lean_box(0); +} +x_294 = lean_box(0); +x_295 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_294); +if (x_295 == 0) +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; +lean_dec(x_274); +lean_dec(x_245); +x_296 = lean_box(0); +if (lean_is_scalar(x_293)) { + x_297 = lean_alloc_ctor(0, 9, 10); +} else { + x_297 = x_293; +} +lean_ctor_set(x_297, 0, x_275); +lean_ctor_set(x_297, 1, x_276); +lean_ctor_set(x_297, 2, x_277); +lean_ctor_set(x_297, 3, x_281); +lean_ctor_set(x_297, 4, x_282); +lean_ctor_set(x_297, 5, x_283); +lean_ctor_set(x_297, 6, x_284); +lean_ctor_set(x_297, 7, x_290); +lean_ctor_set(x_297, 8, x_296); +lean_ctor_set_uint8(x_297, sizeof(void*)*9, x_278); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 1, x_279); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 2, x_280); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 3, x_285); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 4, x_286); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 5, x_287); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 6, x_288); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 7, x_289); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 8, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 9, x_292); +x_298 = lean_apply_9(x_2, x_3, x_4, x_297, x_6, x_7, x_8, x_9, x_10, x_11); +return x_298; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +if (lean_is_scalar(x_274)) { + x_299 = lean_alloc_ctor(1, 1, 0); +} else { + x_299 = x_274; +} +lean_ctor_set(x_299, 0, x_245); +if (lean_is_scalar(x_293)) { + x_300 = lean_alloc_ctor(0, 9, 10); +} else { + x_300 = x_293; +} +lean_ctor_set(x_300, 0, x_275); +lean_ctor_set(x_300, 1, x_276); +lean_ctor_set(x_300, 2, x_277); +lean_ctor_set(x_300, 3, x_281); +lean_ctor_set(x_300, 4, x_282); +lean_ctor_set(x_300, 5, x_283); +lean_ctor_set(x_300, 6, x_284); +lean_ctor_set(x_300, 7, x_290); +lean_ctor_set(x_300, 8, x_299); +lean_ctor_set_uint8(x_300, sizeof(void*)*9, x_278); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 1, x_279); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 2, x_280); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 3, x_285); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 4, x_286); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 5, x_287); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 6, x_288); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 7, x_289); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 8, x_291); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 9, x_292); +x_301 = lean_apply_9(x_2, x_3, x_4, x_300, x_6, x_7, x_8, x_9, x_10, x_11); +return x_301; +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; uint8_t x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; uint8_t x_313; uint8_t x_314; uint8_t x_315; uint8_t x_316; lean_object* x_317; uint8_t x_318; uint8_t x_319; 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; uint8_t x_327; uint8_t x_328; +x_302 = lean_ctor_get(x_5, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_5, 1); +lean_inc(x_303); +x_304 = lean_ctor_get(x_5, 2); +lean_inc(x_304); +x_305 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_306 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_307 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_308 = lean_ctor_get(x_5, 3); +lean_inc(x_308); +x_309 = lean_ctor_get(x_5, 4); +lean_inc(x_309); +x_310 = lean_ctor_get(x_5, 5); +lean_inc(x_310); +x_311 = lean_ctor_get(x_5, 6); +lean_inc(x_311); +x_312 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_313 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_314 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_315 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_316 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_317 = lean_ctor_get(x_5, 7); +lean_inc(x_317); +x_318 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_319 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_320 = x_5; +} else { + lean_dec_ref(x_5); + x_320 = lean_box(0); +} +x_321 = lean_ctor_get(x_246, 0); +lean_inc(x_321); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + x_322 = x_246; +} else { + lean_dec_ref(x_246); + x_322 = lean_box(0); +} +x_323 = lean_ctor_get(x_9, 2); +lean_inc(x_323); +x_324 = lean_box(x_1); +x_325 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_325, 0, x_324); +x_326 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_327 = 0; +x_328 = l_Lean_KVMap_getBool(x_323, x_326, x_327); +lean_dec(x_323); +if (x_328 == 0) +{ +lean_object* x_329; uint8_t x_330; +lean_dec(x_325); +lean_dec(x_321); +x_329 = lean_box(0); +x_330 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_329); +if (x_330 == 0) +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; +lean_dec(x_322); +lean_dec(x_245); +x_331 = lean_box(0); +if (lean_is_scalar(x_320)) { + x_332 = lean_alloc_ctor(0, 9, 10); +} else { + x_332 = x_320; +} +lean_ctor_set(x_332, 0, x_302); +lean_ctor_set(x_332, 1, x_303); +lean_ctor_set(x_332, 2, x_304); +lean_ctor_set(x_332, 3, x_308); +lean_ctor_set(x_332, 4, x_309); +lean_ctor_set(x_332, 5, x_310); +lean_ctor_set(x_332, 6, x_311); +lean_ctor_set(x_332, 7, x_317); +lean_ctor_set(x_332, 8, x_331); +lean_ctor_set_uint8(x_332, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 9, x_319); +x_333 = lean_apply_9(x_2, x_3, x_4, x_332, x_6, x_7, x_8, x_9, x_10, x_11); +return x_333; +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; +if (lean_is_scalar(x_322)) { + x_334 = lean_alloc_ctor(1, 1, 0); +} else { + x_334 = x_322; +} +lean_ctor_set(x_334, 0, x_245); +if (lean_is_scalar(x_320)) { + x_335 = lean_alloc_ctor(0, 9, 10); +} else { + x_335 = x_320; +} +lean_ctor_set(x_335, 0, x_302); +lean_ctor_set(x_335, 1, x_303); +lean_ctor_set(x_335, 2, x_304); +lean_ctor_set(x_335, 3, x_308); +lean_ctor_set(x_335, 4, x_309); +lean_ctor_set(x_335, 5, x_310); +lean_ctor_set(x_335, 6, x_311); +lean_ctor_set(x_335, 7, x_317); +lean_ctor_set(x_335, 8, x_334); +lean_ctor_set_uint8(x_335, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 9, x_319); +x_336 = lean_apply_9(x_2, x_3, x_4, x_335, x_6, x_7, x_8, x_9, x_10, x_11); +return x_336; +} +} +else +{ +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; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_337 = lean_ctor_get(x_321, 0); +lean_inc(x_337); +lean_dec(x_321); +x_338 = lean_box(0); +x_339 = lean_unsigned_to_nat(0u); +x_340 = l_Lean_Syntax_formatStxAux(x_338, x_327, x_339, x_337); +x_341 = l_Std_Format_defWidth; +x_342 = lean_format_pretty(x_340, x_341, x_339, x_339); +x_343 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_344 = lean_string_append(x_343, x_342); +lean_dec(x_342); +x_345 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_346 = lean_string_append(x_344, x_345); +x_347 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_347, 0, x_325); +x_348 = lean_dbg_trace(x_346, x_347); +x_349 = lean_unbox(x_348); +lean_dec(x_348); +if (x_349 == 0) +{ +lean_object* x_350; lean_object* x_351; +lean_dec(x_322); +lean_dec(x_245); +if (lean_is_scalar(x_320)) { + x_350 = lean_alloc_ctor(0, 9, 10); +} else { + x_350 = x_320; +} +lean_ctor_set(x_350, 0, x_302); +lean_ctor_set(x_350, 1, x_303); +lean_ctor_set(x_350, 2, x_304); +lean_ctor_set(x_350, 3, x_308); +lean_ctor_set(x_350, 4, x_309); +lean_ctor_set(x_350, 5, x_310); +lean_ctor_set(x_350, 6, x_311); +lean_ctor_set(x_350, 7, x_317); +lean_ctor_set(x_350, 8, x_338); +lean_ctor_set_uint8(x_350, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 9, x_319); +x_351 = lean_apply_9(x_2, x_3, x_4, x_350, x_6, x_7, x_8, x_9, x_10, x_11); +return x_351; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +if (lean_is_scalar(x_322)) { + x_352 = lean_alloc_ctor(1, 1, 0); +} else { + x_352 = x_322; +} +lean_ctor_set(x_352, 0, x_245); +if (lean_is_scalar(x_320)) { + x_353 = lean_alloc_ctor(0, 9, 10); +} else { + x_353 = x_320; +} +lean_ctor_set(x_353, 0, x_302); +lean_ctor_set(x_353, 1, x_303); +lean_ctor_set(x_353, 2, x_304); +lean_ctor_set(x_353, 3, x_308); +lean_ctor_set(x_353, 4, x_309); +lean_ctor_set(x_353, 5, x_310); +lean_ctor_set(x_353, 6, x_311); +lean_ctor_set(x_353, 7, x_317); +lean_ctor_set(x_353, 8, x_352); +lean_ctor_set_uint8(x_353, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 9, x_319); +x_354 = lean_apply_9(x_2, x_3, x_4, x_353, x_6, x_7, x_8, x_9, x_10, x_11); +return x_354; +} +} +} +} +} +} } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(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) { @@ -8555,15 +9846,20 @@ uint8_t x_12; x_12 = l_Lean_Syntax_isNone(x_1); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; x_13 = lean_unsigned_to_nat(0u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Elab_Tactic_evalTacticAt(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_15; +lean_dec(x_1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticAt), 11, 2); +lean_closure_set(x_15, 0, x_14); +lean_closure_set(x_15, 1, x_2); +x_16 = 1; +x_17 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1(x_16, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_17; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -8572,27 +9868,159 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, 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; +lean_dec(x_1); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_2); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_11); +return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___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_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); lean_dec(x_1); -return x_12; +x_4 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_3, x_2); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1(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_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +x_13 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_Lean_Elab_Tactic_getNameOfIdent_x27(x_5); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_Lean_Elab_Tactic_getNameOfIdent_x27(x_9); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_4); +x_11 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7(x_2, x_4, x_5, x_6, x_7, x_8, x_9, 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_1); +x_16 = l_Lean_LocalContext_empty; +x_17 = 0; +x_18 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_16); +lean_ctor_set(x_18, 2, x_3); +lean_ctor_set(x_18, 3, x_12); +lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_4); +return x_20; +} +else +{ +uint8_t x_21; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_11); +if (x_21 == 0) +{ +return x_11; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_11); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -8662,7 +10090,7 @@ return x_26; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__2(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__4(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -8744,305 +10172,7 @@ return x_30; } } } -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_object* x_9, lean_object* x_10) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_1, 1); -lean_inc(x_14); -lean_dec(x_1); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_15 = l_Lean_Elab_admitGoal(x_13, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_1 = x_14; -x_10 = x_16; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -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(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lean_Elab_Tactic_getNameOfIdent_x27(x_5); -lean_dec(x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = l_Lean_Elab_Tactic_getNameOfIdent_x27(x_9); -lean_dec(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__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) { -_start: -{ -lean_object* x_11; -lean_inc(x_4); -x_11 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7(x_2, x_4, x_5, x_6, x_7, x_8, x_9, 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_1); -x_16 = l_Lean_LocalContext_empty; -x_17 = 0; -x_18 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_16); -lean_ctor_set(x_18, 2, x_3); -lean_ctor_set(x_18, 3, x_12); -lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_4); -return x_20; -} -else -{ -uint8_t x_21; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_11); -if (x_21 == 0) -{ -return x_11; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_11, 0); -x_23 = lean_ctor_get(x_11, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_11); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_8, 5); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); -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); -lean_inc(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_11); -lean_ctor_set(x_15, 1, x_14); -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_12, 0); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_12); -lean_inc(x_11); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_16); -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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__7(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; -x_15 = lean_usize_dec_lt(x_4, x_3); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_5); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_5); -x_17 = lean_array_uget(x_2, x_4); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_Meta_FVarSubst_get(x_1, x_19); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_21 = l_Lean_Elab_Term_addLocalVarInfo(x_18, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = 1; -x_24 = lean_usize_add(x_4, x_23); -x_25 = lean_box(0); -x_4 = x_24; -x_5 = x_25; -x_14 = x_22; -goto _start; -} -else -{ -uint8_t x_27; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_27 = !lean_is_exclusive(x_21); -if (x_27 == 0) -{ -return x_21; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_21, 0); -x_29 = lean_ctor_get(x_21, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_21); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__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) { _start: { if (lean_obj_tag(x_3) == 0) @@ -9066,6 +10196,7 @@ return x_14; else { lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_4); x_15 = lean_ctor_get(x_3, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_3, 1); @@ -9079,20 +10210,19 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_2); lean_inc(x_1); -x_17 = l_Lean_Elab_Tactic_evalAlt(x_15, x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_inc(x_2); +x_17 = l_Lean_Elab_Tactic_evalAlt(x_15, x_2, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 0); +x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); lean_dec(x_17); +x_19 = lean_box(0); x_3 = x_16; -x_4 = x_18; -x_13 = x_19; +x_4 = x_19; +x_13 = x_18; goto _start; } else @@ -9131,687 +10261,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_box(0); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__2(x_1, x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -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; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -lean_ctor_set(x_15, 0, x_14); -return x_15; -} -else -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_15); -if (x_20 == 0) -{ -return x_15; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_15, 0); -x_22 = lean_ctor_get(x_15, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_15); -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; -} -} -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("alternative '", 13); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("' has not been provided", 23); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(lean_object* x_1, 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, 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) { -_start: -{ -lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; -x_21 = lean_array_get_size(x_1); -x_22 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_23 = 0; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1(x_1, x_22, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_array_get_size(x_2); -x_28 = lean_usize_of_nat(x_27); -lean_dec(x_27); -x_29 = lean_box_usize(x_28); -x_30 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed__const__1; -x_31 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__1___boxed), 13, 4); -lean_closure_set(x_31, 0, x_3); -lean_closure_set(x_31, 1, x_2); -lean_closure_set(x_31, 2, x_29); -lean_closure_set(x_31, 3, x_30); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_25); -x_32 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_25, x_31, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_26); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_34 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(x_4, x_25, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_33); -if (lean_obj_tag(x_34) == 0) -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_36 = lean_ctor_get(x_34, 0); -x_37 = lean_ctor_get(x_34, 1); -x_38 = lean_array_get_size(x_5); -x_39 = lean_unsigned_to_nat(0u); -x_40 = lean_nat_dec_lt(x_39, x_38); -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; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -x_41 = l_List_redLength___rarg(x_36); -x_42 = lean_mk_empty_array_with_capacity(x_41); -lean_dec(x_41); -x_43 = l_List_toArrayAux___rarg(x_36, x_42); -x_44 = l_Array_append___rarg(x_10, x_43); -x_45 = lean_box(x_6); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_7); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_34, 0, x_48); -return x_34; -} -else -{ -uint8_t x_49; -x_49 = l_List_isEmpty___rarg(x_36); -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; uint8_t x_57; -lean_free_object(x_34); -x_50 = l_Lean_MessageData_ofName(x_8); -x_51 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2; -x_52 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4; -x_54 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = 2; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_56 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_54, x_55, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_37); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 1); -x_59 = lean_ctor_get(x_56, 0); -lean_dec(x_59); -x_60 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(x_36, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_58); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -if (lean_obj_tag(x_60) == 0) -{ -uint8_t x_61; -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_60, 0); -lean_dec(x_62); -x_63 = lean_box(x_6); -lean_ctor_set(x_56, 1, x_63); -lean_ctor_set(x_56, 0, x_10); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_7); -lean_ctor_set(x_64, 1, x_56); -x_65 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_60, 0, x_65); -return x_60; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec(x_60); -x_67 = lean_box(x_6); -lean_ctor_set(x_56, 1, x_67); -lean_ctor_set(x_56, 0, x_10); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_7); -lean_ctor_set(x_68, 1, x_56); -x_69 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_66); -return x_70; -} -} -else -{ -uint8_t x_71; -lean_free_object(x_56); -lean_dec(x_10); -lean_dec(x_7); -x_71 = !lean_is_exclusive(x_60); -if (x_71 == 0) -{ -return x_60; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_60, 0); -x_73 = lean_ctor_get(x_60, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_60); -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 -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_56, 1); -lean_inc(x_75); -lean_dec(x_56); -x_76 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(x_36, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_75); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -if (lean_obj_tag(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; lean_object* x_83; -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_78 = x_76; -} else { - lean_dec_ref(x_76); - x_78 = lean_box(0); -} -x_79 = lean_box(x_6); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_10); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_7); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_82, 0, x_81); -if (lean_is_scalar(x_78)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_78; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_77); -return x_83; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_10); -lean_dec(x_7); -x_84 = lean_ctor_get(x_76, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_76, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_86 = x_76; -} else { - lean_dec_ref(x_76); - x_86 = lean_box(0); -} -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); -} else { - x_87 = x_86; -} -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_36); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -x_88 = lean_box(x_6); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_10); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_7); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_34, 0, x_91); -return x_34; -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_92 = lean_ctor_get(x_34, 0); -x_93 = lean_ctor_get(x_34, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_34); -x_94 = lean_array_get_size(x_5); -x_95 = lean_unsigned_to_nat(0u); -x_96 = lean_nat_dec_lt(x_95, x_94); -lean_dec(x_94); -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_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -x_97 = l_List_redLength___rarg(x_92); -x_98 = lean_mk_empty_array_with_capacity(x_97); -lean_dec(x_97); -x_99 = l_List_toArrayAux___rarg(x_92, x_98); -x_100 = l_Array_append___rarg(x_10, x_99); -x_101 = lean_box(x_6); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_7); -lean_ctor_set(x_103, 1, x_102); -x_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_103); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_93); -return x_105; -} -else -{ -uint8_t x_106; -x_106 = l_List_isEmpty___rarg(x_92); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; 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_107 = l_Lean_MessageData_ofName(x_8); -x_108 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2; -x_109 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -x_110 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4; -x_111 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -x_112 = 2; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_113 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_111, x_112, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_93); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_115 = x_113; -} else { - lean_dec_ref(x_113); - x_115 = lean_box(0); -} -x_116 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(x_92, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_114); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -if (lean_obj_tag(x_116) == 0) -{ -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_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_118 = x_116; -} else { - lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(x_6); -if (lean_is_scalar(x_115)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_115; -} -lean_ctor_set(x_120, 0, x_10); -lean_ctor_set(x_120, 1, x_119); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_7); -lean_ctor_set(x_121, 1, x_120); -x_122 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_122, 0, x_121); -if (lean_is_scalar(x_118)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { - x_123 = x_118; -} -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_117); -return x_123; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_115); -lean_dec(x_10); -lean_dec(x_7); -x_124 = lean_ctor_get(x_116, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_126 = x_116; -} else { - lean_dec_ref(x_116); - 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); -return x_127; -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_92); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -x_128 = lean_box(x_6); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_10); -lean_ctor_set(x_129, 1, x_128); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_7); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_130); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_93); -return x_132; -} -} -} -} -else -{ -uint8_t x_133; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -x_133 = !lean_is_exclusive(x_34); -if (x_133 == 0) -{ -return x_34; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_34, 0); -x_135 = lean_ctor_get(x_34, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_34); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; -} -} -} -else -{ -uint8_t x_137; -lean_dec(x_25); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -x_137 = !lean_is_exclusive(x_32); -if (x_137 == 0) -{ -return x_32; -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_32, 0); -x_139 = lean_ctor_get(x_32, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_32); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; -} -} -} -else -{ -uint8_t x_141; -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -x_141 = !lean_is_exclusive(x_24); -if (x_141 == 0) -{ -return x_24; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_24, 0); -x_143 = lean_ctor_get(x_24, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_24); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -9819,7 +10269,7 @@ x_12 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAl return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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; @@ -9894,7 +10344,7 @@ lean_dec(x_22); x_27 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(x_2); x_28 = lean_box(0); lean_inc(x_5); -x_29 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5(x_27, x_26, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +x_29 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__2(x_27, x_26, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_25); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; @@ -9939,12 +10389,1412 @@ return x_35; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__5(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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, 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: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_17; +lean_dec(x_15); +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_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_7); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +x_18 = lean_ctor_get(x_6, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_6, 1); +lean_inc(x_19); +lean_dec(x_6); +lean_inc(x_2); +lean_inc(x_3); +lean_inc(x_1); +lean_inc(x_4); +x_20 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___lambda__2), 11, 4); +lean_closure_set(x_20, 0, x_4); +lean_closure_set(x_20, 1, x_1); +lean_closure_set(x_20, 2, x_3); +lean_closure_set(x_20, 3, x_2); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_5); +x_21 = l_Lean_Elab_Tactic_evalAlt(x_18, x_5, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_box(0); +x_6 = x_19; +x_7 = x_23; +x_16 = x_22; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_19); +lean_dec(x_15); +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_8); +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_21); +if (x_25 == 0) +{ +return x_21; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_21, 0); +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_21); +x_28 = lean_alloc_ctor(1, 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_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__7(uint8_t 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_5, 8); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_5); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_5, 8); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_5, 8, x_15); +x_16 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +x_19 = lean_ctor_get(x_5, 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_23 = lean_ctor_get(x_5, 3); +x_24 = lean_ctor_get(x_5, 4); +x_25 = lean_ctor_get(x_5, 5); +x_26 = lean_ctor_get(x_5, 6); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_32 = lean_ctor_get(x_5, 7); +x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_32); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_36, 0, x_17); +lean_ctor_set(x_36, 1, x_18); +lean_ctor_set(x_36, 2, x_19); +lean_ctor_set(x_36, 3, x_23); +lean_ctor_set(x_36, 4, x_24); +lean_ctor_set(x_36, 5, x_25); +lean_ctor_set(x_36, 6, x_26); +lean_ctor_set(x_36, 7, x_32); +lean_ctor_set(x_36, 8, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 8, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 9, x_34); +x_37 = lean_apply_9(x_2, x_3, x_4, x_36, x_6, x_7, x_8, x_9, x_10, x_11); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_12); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_12, 0); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_5); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_5, 8); +lean_dec(x_42); +x_43 = lean_box(0); +x_44 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_free_object(x_12); +lean_dec(x_39); +x_45 = lean_box(0); +lean_ctor_set(x_5, 8, x_45); +x_46 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_46; +} +else +{ +lean_object* x_47; +x_47 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_47; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; uint8_t x_67; +x_48 = lean_ctor_get(x_5, 0); +x_49 = lean_ctor_get(x_5, 1); +x_50 = lean_ctor_get(x_5, 2); +x_51 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_53 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_54 = lean_ctor_get(x_5, 3); +x_55 = lean_ctor_get(x_5, 4); +x_56 = lean_ctor_get(x_5, 5); +x_57 = lean_ctor_get(x_5, 6); +x_58 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_59 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_60 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_61 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_62 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_63 = lean_ctor_get(x_5, 7); +x_64 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_65 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_63); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_5); +x_66 = lean_box(0); +x_67 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_free_object(x_12); +lean_dec(x_39); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_69, 0, x_48); +lean_ctor_set(x_69, 1, x_49); +lean_ctor_set(x_69, 2, x_50); +lean_ctor_set(x_69, 3, x_54); +lean_ctor_set(x_69, 4, x_55); +lean_ctor_set(x_69, 5, x_56); +lean_ctor_set(x_69, 6, x_57); +lean_ctor_set(x_69, 7, x_63); +lean_ctor_set(x_69, 8, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*9, x_51); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 1, x_52); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 2, x_53); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 3, x_58); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 4, x_59); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 5, x_60); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 6, x_61); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 7, x_62); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 8, x_64); +lean_ctor_set_uint8(x_69, sizeof(void*)*9 + 9, x_65); +x_70 = lean_apply_9(x_2, x_3, x_4, x_69, x_6, x_7, x_8, x_9, x_10, x_11); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_71, 0, x_48); +lean_ctor_set(x_71, 1, x_49); +lean_ctor_set(x_71, 2, x_50); +lean_ctor_set(x_71, 3, x_54); +lean_ctor_set(x_71, 4, x_55); +lean_ctor_set(x_71, 5, x_56); +lean_ctor_set(x_71, 6, x_57); +lean_ctor_set(x_71, 7, x_63); +lean_ctor_set(x_71, 8, x_12); +lean_ctor_set_uint8(x_71, sizeof(void*)*9, x_51); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 1, x_52); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 2, x_53); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 3, x_58); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 4, x_59); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 5, x_60); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 6, x_61); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 7, x_62); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 8, x_64); +lean_ctor_set_uint8(x_71, sizeof(void*)*9 + 9, x_65); +x_72 = lean_apply_9(x_2, x_3, x_4, x_71, x_6, x_7, x_8, x_9, x_10, x_11); +return x_72; +} +} +} +else +{ +lean_free_object(x_12); +if (x_1 == 0) +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_40); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_40, 0); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_5); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = lean_ctor_get(x_5, 8); +lean_dec(x_76); +x_77 = lean_box(0); +x_78 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; +lean_free_object(x_40); +lean_dec(x_39); +x_79 = lean_box(0); +lean_ctor_set(x_5, 8, x_79); +x_80 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_80; +} +else +{ +lean_object* x_81; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_81 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; lean_object* x_100; uint8_t x_101; +x_82 = lean_ctor_get(x_5, 0); +x_83 = lean_ctor_get(x_5, 1); +x_84 = lean_ctor_get(x_5, 2); +x_85 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_86 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_87 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_88 = lean_ctor_get(x_5, 3); +x_89 = lean_ctor_get(x_5, 4); +x_90 = lean_ctor_get(x_5, 5); +x_91 = lean_ctor_get(x_5, 6); +x_92 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_93 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_94 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_95 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_96 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_97 = lean_ctor_get(x_5, 7); +x_98 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_99 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_97); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_5); +x_100 = lean_box(0); +x_101 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_free_object(x_40); +lean_dec(x_39); +x_102 = lean_box(0); +x_103 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_103, 0, x_82); +lean_ctor_set(x_103, 1, x_83); +lean_ctor_set(x_103, 2, x_84); +lean_ctor_set(x_103, 3, x_88); +lean_ctor_set(x_103, 4, x_89); +lean_ctor_set(x_103, 5, x_90); +lean_ctor_set(x_103, 6, x_91); +lean_ctor_set(x_103, 7, x_97); +lean_ctor_set(x_103, 8, x_102); +lean_ctor_set_uint8(x_103, sizeof(void*)*9, x_85); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 1, x_86); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 2, x_87); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 3, x_92); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 4, x_93); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 5, x_94); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 6, x_95); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 7, x_96); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 8, x_98); +lean_ctor_set_uint8(x_103, sizeof(void*)*9 + 9, x_99); +x_104 = lean_apply_9(x_2, x_3, x_4, x_103, x_6, x_7, x_8, x_9, x_10, x_11); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_ctor_set(x_40, 0, x_39); +x_105 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_105, 0, x_82); +lean_ctor_set(x_105, 1, x_83); +lean_ctor_set(x_105, 2, x_84); +lean_ctor_set(x_105, 3, x_88); +lean_ctor_set(x_105, 4, x_89); +lean_ctor_set(x_105, 5, x_90); +lean_ctor_set(x_105, 6, x_91); +lean_ctor_set(x_105, 7, x_97); +lean_ctor_set(x_105, 8, x_40); +lean_ctor_set_uint8(x_105, sizeof(void*)*9, x_85); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 1, x_86); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 2, x_87); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 3, x_92); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 4, x_93); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 5, x_94); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 6, x_95); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 7, x_96); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 8, x_98); +lean_ctor_set_uint8(x_105, sizeof(void*)*9 + 9, x_99); +x_106 = lean_apply_9(x_2, x_3, x_4, x_105, x_6, x_7, x_8, x_9, x_10, x_11); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; +lean_dec(x_40); +x_107 = lean_ctor_get(x_5, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_5, 1); +lean_inc(x_108); +x_109 = lean_ctor_get(x_5, 2); +lean_inc(x_109); +x_110 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_111 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_112 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_113 = lean_ctor_get(x_5, 3); +lean_inc(x_113); +x_114 = lean_ctor_get(x_5, 4); +lean_inc(x_114); +x_115 = lean_ctor_get(x_5, 5); +lean_inc(x_115); +x_116 = lean_ctor_get(x_5, 6); +lean_inc(x_116); +x_117 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_118 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_119 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_120 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_121 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_122 = lean_ctor_get(x_5, 7); +lean_inc(x_122); +x_123 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_124 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_125 = x_5; +} else { + lean_dec_ref(x_5); + x_125 = lean_box(0); +} +x_126 = lean_box(0); +x_127 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_126); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_39); +x_128 = lean_box(0); +if (lean_is_scalar(x_125)) { + x_129 = lean_alloc_ctor(0, 9, 10); +} else { + x_129 = x_125; +} +lean_ctor_set(x_129, 0, x_107); +lean_ctor_set(x_129, 1, x_108); +lean_ctor_set(x_129, 2, x_109); +lean_ctor_set(x_129, 3, x_113); +lean_ctor_set(x_129, 4, x_114); +lean_ctor_set(x_129, 5, x_115); +lean_ctor_set(x_129, 6, x_116); +lean_ctor_set(x_129, 7, x_122); +lean_ctor_set(x_129, 8, x_128); +lean_ctor_set_uint8(x_129, sizeof(void*)*9, x_110); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 1, x_111); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 2, x_112); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 3, x_117); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 4, x_118); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 5, x_119); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 6, x_120); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 7, x_121); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 8, x_123); +lean_ctor_set_uint8(x_129, sizeof(void*)*9 + 9, x_124); +x_130 = lean_apply_9(x_2, x_3, x_4, x_129, x_6, x_7, x_8, x_9, x_10, x_11); +return x_130; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_39); +if (lean_is_scalar(x_125)) { + x_132 = lean_alloc_ctor(0, 9, 10); +} else { + x_132 = x_125; +} +lean_ctor_set(x_132, 0, x_107); +lean_ctor_set(x_132, 1, x_108); +lean_ctor_set(x_132, 2, x_109); +lean_ctor_set(x_132, 3, x_113); +lean_ctor_set(x_132, 4, x_114); +lean_ctor_set(x_132, 5, x_115); +lean_ctor_set(x_132, 6, x_116); +lean_ctor_set(x_132, 7, x_122); +lean_ctor_set(x_132, 8, x_131); +lean_ctor_set_uint8(x_132, sizeof(void*)*9, x_110); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 1, x_111); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 2, x_112); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 3, x_117); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 4, x_118); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 5, x_119); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 6, x_120); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 7, x_121); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 8, x_123); +lean_ctor_set_uint8(x_132, sizeof(void*)*9 + 9, x_124); +x_133 = lean_apply_9(x_2, x_3, x_4, x_132, x_6, x_7, x_8, x_9, x_10, x_11); +return x_133; +} +} +} +else +{ +uint8_t x_134; +x_134 = !lean_is_exclusive(x_5); +if (x_134 == 0) +{ +lean_object* x_135; uint8_t x_136; +x_135 = lean_ctor_get(x_5, 8); +lean_dec(x_135); +x_136 = !lean_is_exclusive(x_40); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; uint8_t x_143; +x_137 = lean_ctor_get(x_40, 0); +x_138 = lean_ctor_get(x_9, 2); +lean_inc(x_138); +x_139 = lean_box(x_1); +x_140 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_140, 0, x_139); +x_141 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_142 = 0; +x_143 = l_Lean_KVMap_getBool(x_138, x_141, x_142); +lean_dec(x_138); +if (x_143 == 0) +{ +lean_object* x_144; uint8_t x_145; +lean_dec(x_140); +lean_dec(x_137); +x_144 = lean_box(0); +x_145 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_144); +if (x_145 == 0) +{ +lean_object* x_146; lean_object* x_147; +lean_free_object(x_40); +lean_dec(x_39); +x_146 = lean_box(0); +lean_ctor_set(x_5, 8, x_146); +x_147 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_147; +} +else +{ +lean_object* x_148; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_148 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_148; +} +} +else +{ +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; uint8_t x_161; +x_149 = lean_ctor_get(x_137, 0); +lean_inc(x_149); +lean_dec(x_137); +x_150 = lean_box(0); +x_151 = lean_unsigned_to_nat(0u); +x_152 = l_Lean_Syntax_formatStxAux(x_150, x_142, x_151, x_149); +x_153 = l_Std_Format_defWidth; +x_154 = lean_format_pretty(x_152, x_153, x_151, x_151); +x_155 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_156 = lean_string_append(x_155, x_154); +lean_dec(x_154); +x_157 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_158 = lean_string_append(x_156, x_157); +x_159 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_159, 0, x_140); +x_160 = lean_dbg_trace(x_158, x_159); +x_161 = lean_unbox(x_160); +lean_dec(x_160); +if (x_161 == 0) +{ +lean_object* x_162; +lean_free_object(x_40); +lean_dec(x_39); +lean_ctor_set(x_5, 8, x_150); +x_162 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_162; +} +else +{ +lean_object* x_163; +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_5, 8, x_40); +x_163 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_163; +} +} +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; uint8_t x_170; +x_164 = lean_ctor_get(x_40, 0); +lean_inc(x_164); +lean_dec(x_40); +x_165 = lean_ctor_get(x_9, 2); +lean_inc(x_165); +x_166 = lean_box(x_1); +x_167 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_167, 0, x_166); +x_168 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_169 = 0; +x_170 = l_Lean_KVMap_getBool(x_165, x_168, x_169); +lean_dec(x_165); +if (x_170 == 0) +{ +lean_object* x_171; uint8_t x_172; +lean_dec(x_167); +lean_dec(x_164); +x_171 = lean_box(0); +x_172 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_39); +x_173 = lean_box(0); +lean_ctor_set(x_5, 8, x_173); +x_174 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_175, 0, x_39); +lean_ctor_set(x_5, 8, x_175); +x_176 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_176; +} +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; +x_177 = lean_ctor_get(x_164, 0); +lean_inc(x_177); +lean_dec(x_164); +x_178 = lean_box(0); +x_179 = lean_unsigned_to_nat(0u); +x_180 = l_Lean_Syntax_formatStxAux(x_178, x_169, x_179, x_177); +x_181 = l_Std_Format_defWidth; +x_182 = lean_format_pretty(x_180, x_181, x_179, x_179); +x_183 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_184 = lean_string_append(x_183, x_182); +lean_dec(x_182); +x_185 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_186 = lean_string_append(x_184, x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_187, 0, x_167); +x_188 = lean_dbg_trace(x_186, x_187); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) +{ +lean_object* x_190; +lean_dec(x_39); +lean_ctor_set(x_5, 8, x_178); +x_190 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_190; +} +else +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_39); +lean_ctor_set(x_5, 8, x_191); +x_192 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_192; +} +} +} +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; uint8_t x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; uint8_t 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; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; uint8_t x_218; +x_193 = lean_ctor_get(x_5, 0); +x_194 = lean_ctor_get(x_5, 1); +x_195 = lean_ctor_get(x_5, 2); +x_196 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_197 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_198 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_199 = lean_ctor_get(x_5, 3); +x_200 = lean_ctor_get(x_5, 4); +x_201 = lean_ctor_get(x_5, 5); +x_202 = lean_ctor_get(x_5, 6); +x_203 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_204 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_205 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_206 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_207 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_208 = lean_ctor_get(x_5, 7); +x_209 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_210 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_208); +lean_inc(x_202); +lean_inc(x_201); +lean_inc(x_200); +lean_inc(x_199); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_5); +x_211 = lean_ctor_get(x_40, 0); +lean_inc(x_211); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + x_212 = x_40; +} else { + lean_dec_ref(x_40); + x_212 = lean_box(0); +} +x_213 = lean_ctor_get(x_9, 2); +lean_inc(x_213); +x_214 = lean_box(x_1); +x_215 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_215, 0, x_214); +x_216 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_217 = 0; +x_218 = l_Lean_KVMap_getBool(x_213, x_216, x_217); +lean_dec(x_213); +if (x_218 == 0) +{ +lean_object* x_219; uint8_t x_220; +lean_dec(x_215); +lean_dec(x_211); +x_219 = lean_box(0); +x_220 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_219); +if (x_220 == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_212); +lean_dec(x_39); +x_221 = lean_box(0); +x_222 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_222, 0, x_193); +lean_ctor_set(x_222, 1, x_194); +lean_ctor_set(x_222, 2, x_195); +lean_ctor_set(x_222, 3, x_199); +lean_ctor_set(x_222, 4, x_200); +lean_ctor_set(x_222, 5, x_201); +lean_ctor_set(x_222, 6, x_202); +lean_ctor_set(x_222, 7, x_208); +lean_ctor_set(x_222, 8, x_221); +lean_ctor_set_uint8(x_222, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_222, sizeof(void*)*9 + 9, x_210); +x_223 = lean_apply_9(x_2, x_3, x_4, x_222, x_6, x_7, x_8, x_9, x_10, x_11); +return x_223; +} +else +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; +if (lean_is_scalar(x_212)) { + x_224 = lean_alloc_ctor(1, 1, 0); +} else { + x_224 = x_212; +} +lean_ctor_set(x_224, 0, x_39); +x_225 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_225, 0, x_193); +lean_ctor_set(x_225, 1, x_194); +lean_ctor_set(x_225, 2, x_195); +lean_ctor_set(x_225, 3, x_199); +lean_ctor_set(x_225, 4, x_200); +lean_ctor_set(x_225, 5, x_201); +lean_ctor_set(x_225, 6, x_202); +lean_ctor_set(x_225, 7, x_208); +lean_ctor_set(x_225, 8, x_224); +lean_ctor_set_uint8(x_225, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_225, sizeof(void*)*9 + 9, x_210); +x_226 = lean_apply_9(x_2, x_3, x_4, x_225, x_6, x_7, x_8, x_9, x_10, x_11); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +x_227 = lean_ctor_get(x_211, 0); +lean_inc(x_227); +lean_dec(x_211); +x_228 = lean_box(0); +x_229 = lean_unsigned_to_nat(0u); +x_230 = l_Lean_Syntax_formatStxAux(x_228, x_217, x_229, x_227); +x_231 = l_Std_Format_defWidth; +x_232 = lean_format_pretty(x_230, x_231, x_229, x_229); +x_233 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_234 = lean_string_append(x_233, x_232); +lean_dec(x_232); +x_235 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_236 = lean_string_append(x_234, x_235); +x_237 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_237, 0, x_215); +x_238 = lean_dbg_trace(x_236, x_237); +x_239 = lean_unbox(x_238); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; lean_object* x_241; +lean_dec(x_212); +lean_dec(x_39); +x_240 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_240, 0, x_193); +lean_ctor_set(x_240, 1, x_194); +lean_ctor_set(x_240, 2, x_195); +lean_ctor_set(x_240, 3, x_199); +lean_ctor_set(x_240, 4, x_200); +lean_ctor_set(x_240, 5, x_201); +lean_ctor_set(x_240, 6, x_202); +lean_ctor_set(x_240, 7, x_208); +lean_ctor_set(x_240, 8, x_228); +lean_ctor_set_uint8(x_240, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_240, sizeof(void*)*9 + 9, x_210); +x_241 = lean_apply_9(x_2, x_3, x_4, x_240, x_6, x_7, x_8, x_9, x_10, x_11); +return x_241; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +if (lean_is_scalar(x_212)) { + x_242 = lean_alloc_ctor(1, 1, 0); +} else { + x_242 = x_212; +} +lean_ctor_set(x_242, 0, x_39); +x_243 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_243, 0, x_193); +lean_ctor_set(x_243, 1, x_194); +lean_ctor_set(x_243, 2, x_195); +lean_ctor_set(x_243, 3, x_199); +lean_ctor_set(x_243, 4, x_200); +lean_ctor_set(x_243, 5, x_201); +lean_ctor_set(x_243, 6, x_202); +lean_ctor_set(x_243, 7, x_208); +lean_ctor_set(x_243, 8, x_242); +lean_ctor_set_uint8(x_243, sizeof(void*)*9, x_196); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 1, x_197); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 2, x_198); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 3, x_203); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 4, x_204); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 5, x_205); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 6, x_206); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 7, x_207); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 8, x_209); +lean_ctor_set_uint8(x_243, sizeof(void*)*9 + 9, x_210); +x_244 = lean_apply_9(x_2, x_3, x_4, x_243, x_6, x_7, x_8, x_9, x_10, x_11); +return x_244; +} +} +} +} +} +} +else +{ +lean_object* x_245; lean_object* x_246; +x_245 = lean_ctor_get(x_12, 0); +lean_inc(x_245); +lean_dec(x_12); +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; uint8_t x_250; uint8_t x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; uint8_t x_258; uint8_t x_259; uint8_t x_260; uint8_t x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_247 = lean_ctor_get(x_5, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_5, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_5, 2); +lean_inc(x_249); +x_250 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_251 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_252 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_253 = lean_ctor_get(x_5, 3); +lean_inc(x_253); +x_254 = lean_ctor_get(x_5, 4); +lean_inc(x_254); +x_255 = lean_ctor_get(x_5, 5); +lean_inc(x_255); +x_256 = lean_ctor_get(x_5, 6); +lean_inc(x_256); +x_257 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_258 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_259 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_260 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_261 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_262 = lean_ctor_get(x_5, 7); +lean_inc(x_262); +x_263 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_264 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_265 = x_5; +} else { + lean_dec_ref(x_5); + x_265 = lean_box(0); +} +x_266 = lean_box(0); +x_267 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_266); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_245); +x_268 = lean_box(0); +if (lean_is_scalar(x_265)) { + x_269 = lean_alloc_ctor(0, 9, 10); +} else { + x_269 = x_265; +} +lean_ctor_set(x_269, 0, x_247); +lean_ctor_set(x_269, 1, x_248); +lean_ctor_set(x_269, 2, x_249); +lean_ctor_set(x_269, 3, x_253); +lean_ctor_set(x_269, 4, x_254); +lean_ctor_set(x_269, 5, x_255); +lean_ctor_set(x_269, 6, x_256); +lean_ctor_set(x_269, 7, x_262); +lean_ctor_set(x_269, 8, x_268); +lean_ctor_set_uint8(x_269, sizeof(void*)*9, x_250); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 1, x_251); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 2, x_252); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 3, x_257); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 4, x_258); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 5, x_259); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 6, x_260); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 7, x_261); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 8, x_263); +lean_ctor_set_uint8(x_269, sizeof(void*)*9 + 9, x_264); +x_270 = lean_apply_9(x_2, x_3, x_4, x_269, x_6, x_7, x_8, x_9, x_10, x_11); +return x_270; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_271, 0, x_245); +if (lean_is_scalar(x_265)) { + x_272 = lean_alloc_ctor(0, 9, 10); +} else { + x_272 = x_265; +} +lean_ctor_set(x_272, 0, x_247); +lean_ctor_set(x_272, 1, x_248); +lean_ctor_set(x_272, 2, x_249); +lean_ctor_set(x_272, 3, x_253); +lean_ctor_set(x_272, 4, x_254); +lean_ctor_set(x_272, 5, x_255); +lean_ctor_set(x_272, 6, x_256); +lean_ctor_set(x_272, 7, x_262); +lean_ctor_set(x_272, 8, x_271); +lean_ctor_set_uint8(x_272, sizeof(void*)*9, x_250); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 1, x_251); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 2, x_252); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 3, x_257); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 4, x_258); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 5, x_259); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 6, x_260); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 7, x_261); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 8, x_263); +lean_ctor_set_uint8(x_272, sizeof(void*)*9 + 9, x_264); +x_273 = lean_apply_9(x_2, x_3, x_4, x_272, x_6, x_7, x_8, x_9, x_10, x_11); +return x_273; +} +} +else +{ +if (x_1 == 0) +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; uint8_t x_286; uint8_t x_287; uint8_t x_288; uint8_t x_289; lean_object* x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + x_274 = x_246; +} else { + lean_dec_ref(x_246); + x_274 = lean_box(0); +} +x_275 = lean_ctor_get(x_5, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_5, 1); +lean_inc(x_276); +x_277 = lean_ctor_get(x_5, 2); +lean_inc(x_277); +x_278 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_279 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_280 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_281 = lean_ctor_get(x_5, 3); +lean_inc(x_281); +x_282 = lean_ctor_get(x_5, 4); +lean_inc(x_282); +x_283 = lean_ctor_get(x_5, 5); +lean_inc(x_283); +x_284 = lean_ctor_get(x_5, 6); +lean_inc(x_284); +x_285 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_286 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_287 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_288 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_289 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_290 = lean_ctor_get(x_5, 7); +lean_inc(x_290); +x_291 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_292 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_293 = x_5; +} else { + lean_dec_ref(x_5); + x_293 = lean_box(0); +} +x_294 = lean_box(0); +x_295 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_294); +if (x_295 == 0) +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; +lean_dec(x_274); +lean_dec(x_245); +x_296 = lean_box(0); +if (lean_is_scalar(x_293)) { + x_297 = lean_alloc_ctor(0, 9, 10); +} else { + x_297 = x_293; +} +lean_ctor_set(x_297, 0, x_275); +lean_ctor_set(x_297, 1, x_276); +lean_ctor_set(x_297, 2, x_277); +lean_ctor_set(x_297, 3, x_281); +lean_ctor_set(x_297, 4, x_282); +lean_ctor_set(x_297, 5, x_283); +lean_ctor_set(x_297, 6, x_284); +lean_ctor_set(x_297, 7, x_290); +lean_ctor_set(x_297, 8, x_296); +lean_ctor_set_uint8(x_297, sizeof(void*)*9, x_278); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 1, x_279); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 2, x_280); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 3, x_285); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 4, x_286); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 5, x_287); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 6, x_288); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 7, x_289); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 8, x_291); +lean_ctor_set_uint8(x_297, sizeof(void*)*9 + 9, x_292); +x_298 = lean_apply_9(x_2, x_3, x_4, x_297, x_6, x_7, x_8, x_9, x_10, x_11); +return x_298; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +if (lean_is_scalar(x_274)) { + x_299 = lean_alloc_ctor(1, 1, 0); +} else { + x_299 = x_274; +} +lean_ctor_set(x_299, 0, x_245); +if (lean_is_scalar(x_293)) { + x_300 = lean_alloc_ctor(0, 9, 10); +} else { + x_300 = x_293; +} +lean_ctor_set(x_300, 0, x_275); +lean_ctor_set(x_300, 1, x_276); +lean_ctor_set(x_300, 2, x_277); +lean_ctor_set(x_300, 3, x_281); +lean_ctor_set(x_300, 4, x_282); +lean_ctor_set(x_300, 5, x_283); +lean_ctor_set(x_300, 6, x_284); +lean_ctor_set(x_300, 7, x_290); +lean_ctor_set(x_300, 8, x_299); +lean_ctor_set_uint8(x_300, sizeof(void*)*9, x_278); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 1, x_279); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 2, x_280); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 3, x_285); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 4, x_286); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 5, x_287); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 6, x_288); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 7, x_289); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 8, x_291); +lean_ctor_set_uint8(x_300, sizeof(void*)*9 + 9, x_292); +x_301 = lean_apply_9(x_2, x_3, x_4, x_300, x_6, x_7, x_8, x_9, x_10, x_11); +return x_301; +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; uint8_t x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; uint8_t x_313; uint8_t x_314; uint8_t x_315; uint8_t x_316; lean_object* x_317; uint8_t x_318; uint8_t x_319; 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; uint8_t x_327; uint8_t x_328; +x_302 = lean_ctor_get(x_5, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_5, 1); +lean_inc(x_303); +x_304 = lean_ctor_get(x_5, 2); +lean_inc(x_304); +x_305 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_306 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_307 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); +x_308 = lean_ctor_get(x_5, 3); +lean_inc(x_308); +x_309 = lean_ctor_get(x_5, 4); +lean_inc(x_309); +x_310 = lean_ctor_get(x_5, 5); +lean_inc(x_310); +x_311 = lean_ctor_get(x_5, 6); +lean_inc(x_311); +x_312 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_313 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_314 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_315 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_316 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); +x_317 = lean_ctor_get(x_5, 7); +lean_inc(x_317); +x_318 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_319 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + x_320 = x_5; +} else { + lean_dec_ref(x_5); + x_320 = lean_box(0); +} +x_321 = lean_ctor_get(x_246, 0); +lean_inc(x_321); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + x_322 = x_246; +} else { + lean_dec_ref(x_246); + x_322 = lean_box(0); +} +x_323 = lean_ctor_get(x_9, 2); +lean_inc(x_323); +x_324 = lean_box(x_1); +x_325 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1___boxed), 2, 1); +lean_closure_set(x_325, 0, x_324); +x_326 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4; +x_327 = 0; +x_328 = l_Lean_KVMap_getBool(x_323, x_326, x_327); +lean_dec(x_323); +if (x_328 == 0) +{ +lean_object* x_329; uint8_t x_330; +lean_dec(x_325); +lean_dec(x_321); +x_329 = lean_box(0); +x_330 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__1(x_1, x_329); +if (x_330 == 0) +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; +lean_dec(x_322); +lean_dec(x_245); +x_331 = lean_box(0); +if (lean_is_scalar(x_320)) { + x_332 = lean_alloc_ctor(0, 9, 10); +} else { + x_332 = x_320; +} +lean_ctor_set(x_332, 0, x_302); +lean_ctor_set(x_332, 1, x_303); +lean_ctor_set(x_332, 2, x_304); +lean_ctor_set(x_332, 3, x_308); +lean_ctor_set(x_332, 4, x_309); +lean_ctor_set(x_332, 5, x_310); +lean_ctor_set(x_332, 6, x_311); +lean_ctor_set(x_332, 7, x_317); +lean_ctor_set(x_332, 8, x_331); +lean_ctor_set_uint8(x_332, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_332, sizeof(void*)*9 + 9, x_319); +x_333 = lean_apply_9(x_2, x_3, x_4, x_332, x_6, x_7, x_8, x_9, x_10, x_11); +return x_333; +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; +if (lean_is_scalar(x_322)) { + x_334 = lean_alloc_ctor(1, 1, 0); +} else { + x_334 = x_322; +} +lean_ctor_set(x_334, 0, x_245); +if (lean_is_scalar(x_320)) { + x_335 = lean_alloc_ctor(0, 9, 10); +} else { + x_335 = x_320; +} +lean_ctor_set(x_335, 0, x_302); +lean_ctor_set(x_335, 1, x_303); +lean_ctor_set(x_335, 2, x_304); +lean_ctor_set(x_335, 3, x_308); +lean_ctor_set(x_335, 4, x_309); +lean_ctor_set(x_335, 5, x_310); +lean_ctor_set(x_335, 6, x_311); +lean_ctor_set(x_335, 7, x_317); +lean_ctor_set(x_335, 8, x_334); +lean_ctor_set_uint8(x_335, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_335, sizeof(void*)*9 + 9, x_319); +x_336 = lean_apply_9(x_2, x_3, x_4, x_335, x_6, x_7, x_8, x_9, x_10, x_11); +return x_336; +} +} +else +{ +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; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_337 = lean_ctor_get(x_321, 0); +lean_inc(x_337); +lean_dec(x_321); +x_338 = lean_box(0); +x_339 = lean_unsigned_to_nat(0u); +x_340 = l_Lean_Syntax_formatStxAux(x_338, x_327, x_339, x_337); +x_341 = l_Std_Format_defWidth; +x_342 = lean_format_pretty(x_340, x_341, x_339, x_339); +x_343 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5; +x_344 = lean_string_append(x_343, x_342); +lean_dec(x_342); +x_345 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__5; +x_346 = lean_string_append(x_344, x_345); +x_347 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___lambda__2___boxed), 2, 1); +lean_closure_set(x_347, 0, x_325); +x_348 = lean_dbg_trace(x_346, x_347); +x_349 = lean_unbox(x_348); +lean_dec(x_348); +if (x_349 == 0) +{ +lean_object* x_350; lean_object* x_351; +lean_dec(x_322); +lean_dec(x_245); +if (lean_is_scalar(x_320)) { + x_350 = lean_alloc_ctor(0, 9, 10); +} else { + x_350 = x_320; +} +lean_ctor_set(x_350, 0, x_302); +lean_ctor_set(x_350, 1, x_303); +lean_ctor_set(x_350, 2, x_304); +lean_ctor_set(x_350, 3, x_308); +lean_ctor_set(x_350, 4, x_309); +lean_ctor_set(x_350, 5, x_310); +lean_ctor_set(x_350, 6, x_311); +lean_ctor_set(x_350, 7, x_317); +lean_ctor_set(x_350, 8, x_338); +lean_ctor_set_uint8(x_350, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_350, sizeof(void*)*9 + 9, x_319); +x_351 = lean_apply_9(x_2, x_3, x_4, x_350, x_6, x_7, x_8, x_9, x_10, x_11); +return x_351; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +if (lean_is_scalar(x_322)) { + x_352 = lean_alloc_ctor(1, 1, 0); +} else { + x_352 = x_322; +} +lean_ctor_set(x_352, 0, x_245); +if (lean_is_scalar(x_320)) { + x_353 = lean_alloc_ctor(0, 9, 10); +} else { + x_353 = x_320; +} +lean_ctor_set(x_353, 0, x_302); +lean_ctor_set(x_353, 1, x_303); +lean_ctor_set(x_353, 2, x_304); +lean_ctor_set(x_353, 3, x_308); +lean_ctor_set(x_353, 4, x_309); +lean_ctor_set(x_353, 5, x_310); +lean_ctor_set(x_353, 6, x_311); +lean_ctor_set(x_353, 7, x_317); +lean_ctor_set(x_353, 8, x_352); +lean_ctor_set_uint8(x_353, sizeof(void*)*9, x_305); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 1, x_306); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 2, x_307); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 3, x_312); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 4, x_313); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 5, x_314); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 6, x_315); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 7, x_316); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 8, x_318); +lean_ctor_set_uint8(x_353, sizeof(void*)*9 + 9, x_319); +x_354 = lean_apply_9(x_2, x_3, x_4, x_353, x_6, x_7, x_8, x_9, x_10, x_11); +return x_354; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; x_14 = lean_box(0); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__7(x_1, x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__4(x_1, x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_15) == 0) { uint8_t x_16; @@ -9993,7 +11843,267 @@ return x_23; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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: +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) +{ +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_17); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +lean_dec(x_7); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_List_lengthTRAux___rarg(x_1, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_dec_eq(x_18, x_19); +lean_dec(x_18); +lean_inc(x_6); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__2), 15, 6); +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); +lean_closure_set(x_21, 4, x_6); +lean_closure_set(x_21, 5, x_1); +if (x_20 == 0) +{ +uint8_t x_22; lean_object* x_23; +lean_dec(x_6); +x_22 = 1; +x_23 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__7(x_22, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_23; +} +else +{ +uint8_t x_24; lean_object* x_25; +x_24 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(x_6); +lean_dec(x_6); +x_25 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__7(x_24, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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; +lean_inc(x_6); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__3), 16, 6); +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); +x_17 = lean_unsigned_to_nat(2u); +x_18 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9(x_17, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__4), 15, 5); +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_4); +lean_closure_set(x_20, 4, x_5); +x_21 = lean_box(2); +x_22 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__3; +x_23 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_6); +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_13, 8); +lean_dec(x_25); +x_26 = lean_array_get_size(x_7); +x_27 = lean_nat_dec_lt(x_8, x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +lean_ctor_set(x_13, 8, x_9); +x_28 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9(x_8, x_20, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_9); +x_29 = lean_array_fget(x_7, x_8); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_13, 8, x_30); +x_31 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9(x_8, x_20, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t 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; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; +x_32 = lean_ctor_get(x_13, 0); +x_33 = lean_ctor_get(x_13, 1); +x_34 = lean_ctor_get(x_13, 2); +x_35 = lean_ctor_get_uint8(x_13, sizeof(void*)*9); +x_36 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 1); +x_37 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 2); +x_38 = lean_ctor_get(x_13, 3); +x_39 = lean_ctor_get(x_13, 4); +x_40 = lean_ctor_get(x_13, 5); +x_41 = lean_ctor_get(x_13, 6); +x_42 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 3); +x_43 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 4); +x_44 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 5); +x_45 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 6); +x_46 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 7); +x_47 = lean_ctor_get(x_13, 7); +x_48 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 8); +x_49 = lean_ctor_get_uint8(x_13, sizeof(void*)*9 + 9); +lean_inc(x_47); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_13); +x_50 = lean_array_get_size(x_7); +x_51 = lean_nat_dec_lt(x_8, x_50); +lean_dec(x_50); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_52, 0, x_32); +lean_ctor_set(x_52, 1, x_33); +lean_ctor_set(x_52, 2, x_34); +lean_ctor_set(x_52, 3, x_38); +lean_ctor_set(x_52, 4, x_39); +lean_ctor_set(x_52, 5, x_40); +lean_ctor_set(x_52, 6, x_41); +lean_ctor_set(x_52, 7, x_47); +lean_ctor_set(x_52, 8, x_9); +lean_ctor_set_uint8(x_52, sizeof(void*)*9, x_35); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 1, x_36); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 2, x_37); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 3, x_42); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 4, x_43); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 5, x_44); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 6, x_45); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 7, x_46); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 8, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*9 + 9, x_49); +x_53 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9(x_8, x_20, x_23, x_11, x_12, x_52, x_14, x_15, x_16, x_17, x_18, x_19); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_9); +x_54 = lean_array_fget(x_7, x_8); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_56, 0, x_32); +lean_ctor_set(x_56, 1, x_33); +lean_ctor_set(x_56, 2, x_34); +lean_ctor_set(x_56, 3, x_38); +lean_ctor_set(x_56, 4, x_39); +lean_ctor_set(x_56, 5, x_40); +lean_ctor_set(x_56, 6, x_41); +lean_ctor_set(x_56, 7, x_47); +lean_ctor_set(x_56, 8, x_55); +lean_ctor_set_uint8(x_56, sizeof(void*)*9, x_35); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 1, x_36); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 2, x_37); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 3, x_42); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 4, x_43); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 5, x_44); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 6, x_45); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 7, x_46); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 8, x_48); +lean_ctor_set_uint8(x_56, sizeof(void*)*9 + 9, x_49); +x_57 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Term_runTactic___spec__9(x_8, x_20, x_23, x_11, x_12, x_56, x_14, x_15, x_16, x_17, x_18, x_19); +return x_57; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("alternative '", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3() { _start: { lean_object* x_1; @@ -10001,16 +12111,16 @@ x_1 = lean_mk_string_from_bytes("' is not needed", 15); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1() { +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1() { _start: { size_t x_1; lean_object* x_2; @@ -10019,158 +12129,720 @@ x_2 = lean_box_usize(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__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, uint8_t 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_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, 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) { _start: { -lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; -x_27 = lean_array_get_size(x_1); -x_28 = lean_usize_of_nat(x_27); -lean_dec(x_27); -x_29 = 0; -lean_inc(x_25); -lean_inc(x_24); +lean_object* x_25; size_t x_26; size_t x_27; lean_object* x_28; +lean_dec(x_14); +x_25 = lean_array_get_size(x_1); +x_26 = lean_usize_of_nat(x_25); +lean_dec(x_25); +x_27 = 0; lean_inc(x_23); lean_inc(x_22); -x_30 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1(x_1, x_28, x_29, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); +lean_inc(x_21); +lean_inc(x_20); +x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__3(x_1, x_26, x_27, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); lean_dec(x_1); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; size_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_array_get_size(x_2); +x_32 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_33 = lean_box_usize(x_32); +x_34 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1; +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__1___boxed), 13, 4); +lean_closure_set(x_35, 0, x_3); +lean_closure_set(x_35, 1, x_2); +lean_closure_set(x_35, 2, x_33); +lean_closure_set(x_35, 3, x_34); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_29); +x_36 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_29, x_35, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_30); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +x_38 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(x_4, x_29, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; +} else { + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +x_42 = l_List_isEmpty___rarg(x_39); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_41); +lean_dec(x_13); +x_43 = lean_box(0); +x_44 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__5(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_43, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_40); +lean_dec(x_10); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +lean_dec(x_39); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_60 = lean_st_ref_get(x_23, x_40); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_61, 6); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_ctor_get_uint8(x_62, sizeof(void*)*2); +lean_dec(x_62); +if (x_63 == 0) +{ +lean_object* x_64; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_45 = x_64; +goto block_59; +} +else +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_6, 1); +lean_inc(x_65); +lean_dec(x_6); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_12); +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_5); +x_67 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_8, x_5, x_7, x_18, x_19, x_20, x_21, x_22, x_23, x_66); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_45 = x_68; +goto block_59; +} +else +{ +uint8_t x_69; +lean_dec(x_41); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_5); +x_69 = !lean_is_exclusive(x_67); +if (x_69 == 0) +{ +return x_67; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_67, 0); +x_71 = lean_ctor_get(x_67, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_67); +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; +x_73 = lean_ctor_get(x_60, 1); +lean_inc(x_73); +lean_dec(x_60); +x_74 = lean_ctor_get(x_65, 0); +lean_inc(x_74); +lean_dec(x_65); +x_75 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(x_5); +lean_inc(x_18); +x_76 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__2(x_75, x_74, x_12, x_18, x_19, x_20, x_21, x_22, x_23, x_73); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_5); +x_78 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_8, x_5, x_7, x_18, x_19, x_20, x_21, x_22, x_23, x_77); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_45 = x_79; +goto block_59; +} +else +{ +uint8_t x_80; +lean_dec(x_41); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_5); +x_80 = !lean_is_exclusive(x_78); +if (x_80 == 0) +{ +return x_78; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_78, 0); +x_82 = lean_ctor_get(x_78, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_78); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_41); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_84 = !lean_is_exclusive(x_76); +if (x_84 == 0) +{ +return x_76; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_76, 0); +x_86 = lean_ctor_get(x_76, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_76); +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; +} +} +} +} +block_59: +{ +uint8_t x_46; +x_46 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(x_5); +lean_dec(x_5); +if (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; uint8_t x_53; +lean_dec(x_41); +x_47 = l_Lean_MessageData_ofName(x_13); +x_48 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2; +x_49 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_51, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_45); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) +{ +return x_52; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_52, 0); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_52); +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; lean_object* x_58; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +x_57 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_41; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_45); +return x_58; +} +} +} +} +else +{ +uint8_t x_88; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_88 = !lean_is_exclusive(x_38); +if (x_88 == 0) +{ +return x_38; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_38, 0); +x_90 = lean_ctor_get(x_38, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_38); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; +} +} +} +else +{ +uint8_t x_92; +lean_dec(x_29); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_92 = !lean_is_exclusive(x_36); +if (x_92 == 0) +{ +return x_36; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_36, 0); +x_94 = lean_ctor_get(x_36, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_36); +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 +{ +uint8_t x_96; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_96 = !lean_is_exclusive(x_28); +if (x_96 == 0) +{ +return x_28; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_28, 0); +x_98 = lean_ctor_get(x_28, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_28); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, 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) { +_start: +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_109; +lean_dec(x_15); +x_25 = lean_array_to_list(lean_box(0), x_1); +x_26 = lean_box(0); +x_27 = l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__1(x_25, x_26); +x_109 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(x_4); +if (x_109 == 0) +{ +uint8_t x_110; +x_110 = 1; +x_28 = x_110; +goto block_108; +} +else +{ +uint8_t x_111; +x_111 = 0; +x_28 = x_111; +goto block_108; +} +block_108: +{ +uint8_t x_29; lean_object* x_30; +x_29 = 0; +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +x_30 = l_Lean_Meta_introNCore(x_2, x_3, x_27, x_28, x_29, x_20, x_21, x_22, x_23, x_24); if (lean_obj_tag(x_30) == 0) { -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_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_50; x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_array_get_size(x_2); -x_34 = lean_usize_of_nat(x_33); -lean_dec(x_33); -x_35 = lean_box_usize(x_34); -x_36 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1; -x_37 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__5___boxed), 13, 4); -lean_closure_set(x_37, 0, x_3); -lean_closure_set(x_37, 1, x_2); -lean_closure_set(x_37, 2, x_35); -lean_closure_set(x_37, 3, x_36); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_31); -x_38 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_31, x_37, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_32); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_52; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_33 = x_30; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_30); + x_33 = lean_box(0); } -lean_inc(x_25); -lean_inc(x_24); +x_34 = lean_ctor_get(x_31, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_36 = x_31; +} else { + lean_dec_ref(x_31); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +x_38 = lean_box(0); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -x_52 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(x_8, x_31, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_39); -lean_dec(x_8); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_35); +x_50 = l_Lean_Meta_Cases_unifyEqs_x3f(x_6, x_35, x_37, x_38, x_20, x_21, x_22, x_23, x_32); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_List_isEmpty___rarg(x_53); -if (x_55 == 0) +lean_object* x_51; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_56; -lean_dec(x_40); -lean_dec(x_15); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_5); -x_56 = l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__8(x_9, x_10, x_53, x_11, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_54); -if (lean_obj_tag(x_56) == 0) +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_st_ref_get(x_23, x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_54, 6); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_ctor_get_uint8(x_55, sizeof(void*)*2); +lean_dec(x_55); +if (x_56 == 0) { -if (x_7 == 0) -{ -uint8_t x_57; -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_box(x_4); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_56, 0, x_60); -return x_56; +lean_object* x_57; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_7); +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +x_39 = x_57; +goto block_49; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_56, 0); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); +lean_object* x_58; +x_58 = lean_ctor_get(x_7, 1); +lean_inc(x_58); +lean_dec(x_7); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_dec(x_53); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_4); +x_60 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_35, x_4, x_34, x_18, x_19, x_20, x_21, x_22, x_23, x_59); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); -lean_dec(x_56); -x_63 = lean_box(x_4); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); +lean_dec(x_60); +x_39 = x_61; +goto block_49; +} +else +{ +uint8_t x_62; +lean_dec(x_36); +lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); +lean_dec(x_4); +x_62 = !lean_is_exclusive(x_60); +if (x_62 == 0) +{ +return x_60; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_60, 0); +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_60); +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; } } -else -{ -uint8_t x_66; -x_66 = !lean_is_exclusive(x_56); -if (x_66 == 0) -{ -lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_56, 0); -x_68 = 1; -x_69 = lean_box(x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_67); -lean_ctor_set(x_70, 1, x_69); -lean_ctor_set(x_56, 0, x_70); -return x_56; } else { -lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_71 = lean_ctor_get(x_56, 0); -x_72 = lean_ctor_get(x_56, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_53, 1); +lean_inc(x_66); +lean_dec(x_53); +x_67 = lean_ctor_get(x_58, 0); +lean_inc(x_67); +lean_dec(x_58); +x_68 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(x_4); +lean_inc(x_18); +x_69 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__2(x_68, x_67, x_38, x_18, x_19, x_20, x_21, x_22, x_23, x_66); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_4); +x_71 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_35, x_4, x_34, x_18, x_19, x_20, x_21, x_22, x_23, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_56); -x_73 = 1; -x_74 = lean_box(x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_71); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_72); +lean_dec(x_71); +x_39 = x_72; +goto block_49; +} +else +{ +uint8_t x_73; +lean_dec(x_36); +lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); +lean_dec(x_4); +x_73 = !lean_is_exclusive(x_71); +if (x_73 == 0) +{ +return x_71; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_71, 0); +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_71); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); return x_76; } } @@ -10178,19 +12850,33 @@ return x_76; else { uint8_t x_77; -x_77 = !lean_is_exclusive(x_56); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); +lean_dec(x_4); +x_77 = !lean_is_exclusive(x_69); if (x_77 == 0) { -return x_56; +return x_69; } else { lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_56, 0); -x_79 = lean_ctor_get(x_56, 1); +x_78 = lean_ctor_get(x_69, 0); +x_79 = lean_ctor_get(x_69, 1); lean_inc(x_79); lean_inc(x_78); -lean_dec(x_56); +lean_dec(x_69); x_80 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); @@ -10198,312 +12884,224 @@ return x_80; } } } +} +} else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -lean_dec(x_53); -lean_dec(x_11); -lean_dec(x_10); -x_81 = lean_st_ref_get(x_25, x_54); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_82, 6); -lean_inc(x_83); -lean_dec(x_82); -x_84 = lean_ctor_get_uint8(x_83, sizeof(void*)*2); -lean_dec(x_83); -if (x_84 == 0) +lean_object* x_81; uint8_t x_82; +lean_dec(x_36); +lean_dec(x_33); +x_81 = lean_ctor_get(x_51, 0); +lean_inc(x_81); +lean_dec(x_51); +x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*3); +if (x_82 == 0) { -lean_object* x_85; -lean_dec(x_15); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); +x_83 = lean_ctor_get(x_50, 1); +lean_inc(x_83); +lean_dec(x_50); +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); x_85 = lean_ctor_get(x_81, 1); lean_inc(x_85); lean_dec(x_81); -x_41 = x_85; -goto block_51; +lean_inc(x_35); +x_86 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6(x_8, x_9, x_85, x_10, x_4, x_7, x_34, x_35, x_11, x_12, x_13, x_38, x_5, x_35, x_84, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_83); +return x_86; } else { -lean_object* x_86; -x_86 = lean_ctor_get(x_14, 1); -lean_inc(x_86); -lean_dec(x_14); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; -lean_dec(x_15); -x_87 = lean_ctor_get(x_81, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; +x_87 = lean_ctor_get(x_50, 1); lean_inc(x_87); -lean_dec(x_81); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -x_88 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_12, x_9, x_13, x_20, x_21, x_22, x_23, x_24, x_25, x_87); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; -x_89 = lean_ctor_get(x_88, 1); +lean_dec(x_50); +x_88 = lean_ctor_get(x_81, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_81, 1); lean_inc(x_89); -lean_dec(x_88); -x_41 = x_89; -goto block_51; -} -else -{ -uint8_t x_90; -lean_dec(x_40); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_6); -lean_dec(x_5); -x_90 = !lean_is_exclusive(x_88); -if (x_90 == 0) -{ -return x_88; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_88, 0); -x_92 = lean_ctor_get(x_88, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_88); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_81, 1); -lean_inc(x_94); lean_dec(x_81); -x_95 = lean_ctor_get(x_86, 0); -lean_inc(x_95); -lean_dec(x_86); -x_96 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(x_9); -lean_inc(x_20); -x_97 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5(x_96, x_95, x_15, x_20, x_21, x_22, x_23, x_24, x_25, x_94); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -lean_inc(x_25); -lean_inc(x_24); +x_90 = 1; lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -x_99 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_12, x_9, x_13, x_20, x_21, x_22, x_23, x_24, x_25, x_98); -if (lean_obj_tag(x_99) == 0) +x_91 = l_Lean_Meta_introNCore(x_88, x_14, x_26, x_29, x_90, x_20, x_21, x_22, x_23, x_87); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_100; -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_41 = x_100; -goto block_51; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +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, 1); +lean_inc(x_94); +lean_dec(x_92); +lean_inc(x_94); +x_95 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6(x_8, x_9, x_89, x_10, x_4, x_7, x_34, x_35, x_11, x_12, x_13, x_38, x_5, x_94, x_94, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_93); +return x_95; } else { -uint8_t x_101; -lean_dec(x_40); -lean_dec(x_25); -lean_dec(x_24); +uint8_t x_96; +lean_dec(x_89); +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); -lean_dec(x_6); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_5); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) +lean_dec(x_4); +x_96 = !lean_is_exclusive(x_91); +if (x_96 == 0) { +return x_91; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_91, 0); +x_98 = lean_ctor_get(x_91, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_91); +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 -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_99, 0); -x_103 = lean_ctor_get(x_99, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_99); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; +} } } } else { -uint8_t x_105; -lean_dec(x_40); -lean_dec(x_25); -lean_dec(x_24); +uint8_t x_100; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_105 = !lean_is_exclusive(x_97); -if (x_105 == 0) -{ -return x_97; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_97, 0); -x_107 = lean_ctor_get(x_97, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_97); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -} -} -} -else -{ -uint8_t x_109; -lean_dec(x_40); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_15); +lean_dec(x_17); +lean_dec(x_16); 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_6); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_5); -x_109 = !lean_is_exclusive(x_52); -if (x_109 == 0) +lean_dec(x_4); +x_100 = !lean_is_exclusive(x_50); +if (x_100 == 0) { -return x_52; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_52, 0); -x_111 = lean_ctor_get(x_52, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_52); -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; -} -} -block_51: -{ -if (x_4 == 0) -{ -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_40); -lean_dec(x_6); -x_42 = l_Lean_MessageData_ofName(x_5); -x_43 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2; -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2; -x_46 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__6(x_46, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_41); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_5); -x_48 = lean_box(x_7); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_6); -lean_ctor_set(x_49, 1, x_48); -if (lean_is_scalar(x_40)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_40; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_41); return x_50; } -} -} else { -uint8_t x_113; -lean_dec(x_31); -lean_dec(x_25); -lean_dec(x_24); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_50, 0); +x_102 = lean_ctor_get(x_50, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_50); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; +} +} +block_49: +{ +uint8_t x_40; +x_40 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(x_4); +lean_dec(x_4); +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_dec(x_33); +x_41 = l_Lean_MessageData_ofName(x_5); +x_42 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2; +if (lean_is_scalar(x_36)) { + x_43 = lean_alloc_ctor(6, 2, 0); +} else { + x_43 = x_36; + lean_ctor_set_tag(x_43, 6); +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4; +x_45 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(x_45, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_39); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); -lean_dec(x_15); +lean_dec(x_17); +lean_dec(x_16); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_36); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); +x_47 = lean_box(0); +if (lean_is_scalar(x_33)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_33; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_39); +return x_48; +} +} +} +else +{ +uint8_t x_104; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10511,311 +13109,1288 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_113 = !lean_is_exclusive(x_38); -if (x_113 == 0) -{ -return x_38; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_38, 0); -x_115 = lean_ctor_get(x_38, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_38); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -else -{ -uint8_t x_117; -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_15); -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_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_117 = !lean_is_exclusive(x_30); -if (x_117 == 0) +lean_dec(x_4); +x_104 = !lean_is_exclusive(x_30); +if (x_104 == 0) { return x_30; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_30, 0); -x_119 = lean_ctor_get(x_30, 1); -lean_inc(x_119); -lean_inc(x_118); +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_30, 0); +x_106 = lean_ctor_get(x_30, 1); +lean_inc(x_106); +lean_inc(x_105); lean_dec(x_30); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; } } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__7(lean_object* x_1, 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, 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) { +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1() { _start: { -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_111; -lean_dec(x_16); -x_26 = lean_array_to_list(lean_box(0), x_1); -x_27 = lean_box(0); -x_28 = l_List_mapTR_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__4(x_26, x_27); -x_111 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(x_4); -if (x_111 == 0) +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("too many variable names provided at alternative '", 49); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2() { +_start: { -uint8_t x_112; -x_112 = 1; -x_29 = x_112; -goto block_110; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("', #", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" provided, but #", 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" expected", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__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_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) { +_start: +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_array_get_size(x_1); +x_26 = lean_nat_dec_lt(x_15, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_25); +lean_dec(x_15); +x_27 = lean_box(0); +x_28 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_27, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +return x_28; } else { -uint8_t x_113; -x_113 = 0; -x_29 = x_113; -goto block_110; -} -block_110: -{ -uint8_t x_30; lean_object* x_31; -x_30 = 0; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -x_31 = l_Lean_Meta_introNCore(x_2, x_3, x_28, x_29, x_30, x_21, x_22, x_23, x_24, x_25); -if (lean_obj_tag(x_31) == 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; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_52; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_34 = x_31; -} else { - lean_dec_ref(x_31); - x_34 = lean_box(0); -} -x_35 = lean_ctor_get(x_32, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_37 = x_32; -} else { - lean_dec_ref(x_32); - x_37 = lean_box(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; 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; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_inc(x_5); -lean_inc(x_35); -lean_inc(x_4); -lean_inc(x_36); -x_38 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__4), 11, 4); -lean_closure_set(x_38, 0, x_36); -lean_closure_set(x_38, 1, x_4); -lean_closure_set(x_38, 2, x_35); -lean_closure_set(x_38, 3, x_5); -x_39 = lean_box(0); -x_40 = lean_box(0); -lean_inc(x_24); +x_29 = l_Lean_MessageData_ofName(x_5); +x_30 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2; +x_31 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4; +x_33 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l___private_Init_Data_Repr_0__Nat_reprFast(x_25); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = l_Lean_MessageData_ofFormat(x_35); +x_37 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6; +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l___private_Init_Data_Repr_0__Nat_reprFast(x_15); +x_41 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = l_Lean_MessageData_ofFormat(x_41); +x_43 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8; +x_45 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = 2; lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); -lean_inc(x_36); -x_52 = l_Lean_Meta_Cases_unifyEqs_x3f(x_10, x_36, x_39, x_40, x_21, x_22, x_23, x_24, x_33); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +x_47 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_45, x_46, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_48, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_49); +return x_50; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(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) { +_start: { -lean_object* x_53; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -if (lean_obj_tag(x_53) == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_dec(x_38); +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_22 = lean_ctor_get(x_18, 5); +x_23 = l_Lean_replaceRef(x_10, x_22); +lean_dec(x_22); +lean_ctor_set(x_18, 5, x_23); +x_24 = lean_ctor_get(x_11, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_11, 2); +lean_inc(x_26); +lean_dec(x_11); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_24); +x_27 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields(x_1, x_24, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t 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 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVars(x_10); +x_31 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(x_10); +if (x_31 == 0) +{ +lean_object* x_32; +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_28); +lean_inc(x_26); +x_32 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields(x_26, x_28, x_16, x_17, x_18, x_19, x_29); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +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 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(x_30, x_26, x_28, x_10, x_24, x_4, x_25, x_6, x_7, x_2, x_3, x_8, x_9, x_5, x_33, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_34); +return x_35; +} +else +{ +uint8_t x_36; +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_18); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_11); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_st_ref_get(x_24, x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_56, 6); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*2); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_object* x_59; -lean_dec(x_36); -lean_dec(x_35); +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_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_41 = x_59; -goto block_51; +lean_dec(x_3); +lean_dec(x_2); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +return x_32; } else { -lean_object* x_60; -x_60 = lean_ctor_get(x_5, 1); -lean_inc(x_60); -lean_dec(x_5); -if (lean_obj_tag(x_60) == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_32, 0); +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_32); +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; +} +} +} +else { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_55, 1); +lean_object* x_40; +lean_inc(x_28); +x_40 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(x_30, x_26, x_28, x_10, x_24, x_4, x_25, x_6, x_7, x_2, x_3, x_8, x_9, x_5, x_28, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_29); +return x_40; +} +} +else +{ +uint8_t x_41; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_18); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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_41 = !lean_is_exclusive(x_27); +if (x_41 == 0) +{ +return x_27; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_27, 0); +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_27); +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; 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; uint8_t 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; lean_object* x_64; +x_45 = lean_ctor_get(x_18, 0); +x_46 = lean_ctor_get(x_18, 1); +x_47 = lean_ctor_get(x_18, 2); +x_48 = lean_ctor_get(x_18, 3); +x_49 = lean_ctor_get(x_18, 4); +x_50 = lean_ctor_get(x_18, 5); +x_51 = lean_ctor_get(x_18, 6); +x_52 = lean_ctor_get(x_18, 7); +x_53 = lean_ctor_get(x_18, 8); +x_54 = lean_ctor_get(x_18, 9); +x_55 = lean_ctor_get(x_18, 10); +x_56 = lean_ctor_get_uint8(x_18, sizeof(void*)*12); +x_57 = lean_ctor_get(x_18, 11); +x_58 = lean_ctor_get_uint8(x_18, sizeof(void*)*12 + 1); +lean_inc(x_57); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_18); +x_59 = l_Lean_replaceRef(x_10, x_50); +lean_dec(x_50); +x_60 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_60, 0, x_45); +lean_ctor_set(x_60, 1, x_46); +lean_ctor_set(x_60, 2, x_47); +lean_ctor_set(x_60, 3, x_48); +lean_ctor_set(x_60, 4, x_49); +lean_ctor_set(x_60, 5, x_59); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_54); +lean_ctor_set(x_60, 10, x_55); +lean_ctor_set(x_60, 11, x_57); +lean_ctor_set_uint8(x_60, sizeof(void*)*12, x_56); +lean_ctor_set_uint8(x_60, sizeof(void*)*12 + 1, x_58); +x_61 = lean_ctor_get(x_11, 0); lean_inc(x_61); -lean_dec(x_55); +x_62 = lean_ctor_get(x_11, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_11, 2); +lean_inc(x_63); +lean_dec(x_11); +lean_inc(x_19); +lean_inc(x_60); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_61); +x_64 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields(x_1, x_61, x_14, x_15, x_16, x_17, x_60, x_19, x_20); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVars(x_10); +x_68 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(x_10); +if (x_68 == 0) +{ +lean_object* x_69; +lean_inc(x_19); +lean_inc(x_60); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_65); +lean_inc(x_63); +x_69 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields(x_63, x_65, x_16, x_17, x_60, x_19, x_66); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +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 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(x_67, x_63, x_65, x_10, x_61, x_4, x_62, x_6, x_7, x_2, x_3, x_8, x_9, x_5, x_70, x_12, x_13, x_14, x_15, x_16, x_17, x_60, x_19, x_71); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_67); +lean_dec(x_65); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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_73 = lean_ctor_get(x_69, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_75 = x_69; +} else { + lean_dec_ref(x_69); + 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(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +} +else +{ +lean_object* x_77; +lean_inc(x_65); +x_77 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(x_67, x_63, x_65, x_10, x_61, x_4, x_62, x_6, x_7, x_2, x_3, x_8, x_9, x_5, x_65, x_12, x_13, x_14, x_15, x_16, x_17, x_60, x_19, x_66); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +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_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_78 = lean_ctor_get(x_64, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_64, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_80 = x_64; +} else { + lean_dec_ref(x_64); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__2(x_1, x_2, x_3, x_4, 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_6); +lean_dec(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__3(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__4(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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) { +_start: +{ +lean_object* x_12; +x_12 = l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__5___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__6___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_4); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +x_13 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__7(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__1(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +lean_object* x_20; +x_20 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__5(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); +lean_dec(x_10); +lean_dec(x_7); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +_start: +{ +lean_object* x_25; +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +return x_25; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +_start: +{ +lean_object* x_25; +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24); +return x_25; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +_start: +{ +lean_object* x_25; +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8(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, x_21, x_22, x_23, x_24); +return x_25; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___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]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +_start: +{ +lean_object* x_21; +x_21 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(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); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 5); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); +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); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +lean_inc(x_11); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_16); +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_Lean_throwErrorAt___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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) { +_start: +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 5); +x_14 = l_Lean_replaceRef(x_1, x_13); +lean_dec(x_13); +lean_dec(x_1); +lean_ctor_set(x_9, 5, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__2(x_2, x_3, x_4, x_5, 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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +else +{ +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_9, 2); +x_19 = lean_ctor_get(x_9, 3); +x_20 = lean_ctor_get(x_9, 4); +x_21 = lean_ctor_get(x_9, 5); +x_22 = lean_ctor_get(x_9, 6); +x_23 = lean_ctor_get(x_9, 7); +x_24 = lean_ctor_get(x_9, 8); +x_25 = lean_ctor_get(x_9, 9); +x_26 = lean_ctor_get(x_9, 10); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); +lean_inc(x_26); +lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_62 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_36, x_4, x_35, x_19, x_20, x_21, x_22, x_23, x_24, x_61); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_41 = x_63; -goto block_51; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_30 = l_Lean_replaceRef(x_1, x_21); +lean_dec(x_21); +lean_dec(x_1); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); +lean_dec(x_10); +lean_dec(x_31); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_32; } -else +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_object* x_9, lean_object* x_10, lean_object* x_11, size_t x_12, size_t 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) { +_start: { -uint8_t x_64; -lean_dec(x_37); -lean_dec(x_34); -lean_dec(x_24); -lean_dec(x_23); +uint8_t x_24; +x_24 = lean_usize_dec_lt(x_13, x_12); +if (x_24 == 0) +{ +lean_object* x_25; lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_64 = !lean_is_exclusive(x_62); -if (x_64 == 0) -{ -return x_62; +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_23); +return x_25; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_62, 0); -x_66 = lean_ctor_get(x_62, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_62); -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; -} -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_55, 1); -lean_inc(x_68); -lean_dec(x_55); -x_69 = lean_ctor_get(x_60, 0); -lean_inc(x_69); -lean_dec(x_60); -x_70 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltNameStx(x_4); -lean_inc(x_19); -x_71 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5(x_70, x_69, x_40, x_19, x_20, x_21, x_22, x_23, x_24, x_68); -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); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_26; lean_object* x_27; +lean_dec(x_14); +x_26 = lean_array_uget(x_11, x_13); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_73 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo(x_36, x_4, x_35, x_19, x_20, x_21, x_22, x_23, x_24, x_72); -if (lean_obj_tag(x_73) == 0) +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_27 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_74; -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -x_41 = x_74; -goto block_51; +lean_object* x_28; size_t x_29; size_t x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = 1; +x_30 = lean_usize_add(x_13, x_29); +x_31 = lean_box(0); +x_13 = x_30; +x_14 = x_31; +x_23 = x_28; +goto _start; +} +else +{ +uint8_t x_33; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_27); +if (x_33 == 0) +{ +return x_27; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_27, 0); +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_27); +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; +} +} +} +} +} +LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_name_eq(x_3, x_1); +return x_4; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unused alternative '", 20); +return x_1; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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, 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) { +_start: +{ +uint8_t x_24; +x_24 = lean_nat_dec_le(x_12, x_11); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_unsigned_to_nat(0u); +x_26 = lean_nat_dec_eq(x_10, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_35; uint8_t x_110; +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_sub(x_10, x_27); +lean_dec(x_10); +x_110 = lean_nat_dec_lt(x_11, x_9); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = l_Lean_instInhabitedSyntax; +x_112 = l___private_Init_GetElem_0__outOfBounds___rarg(x_111); +x_35 = x_112; +goto block_109; +} +else +{ +lean_object* x_113; +x_113 = lean_array_fget(x_3, x_11); +x_35 = x_113; +goto block_109; +} +block_34: +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_nat_add(x_11, x_13); +lean_dec(x_11); +x_10 = x_28; +x_11 = x_32; +x_14 = x_31; +x_23 = x_30; +goto _start; +} +block_109: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_49; lean_object* x_50; +x_36 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_35); +lean_inc(x_36); +x_49 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1___boxed), 2, 1); +lean_closure_set(x_49, 0, x_36); +x_50 = l_Array_findIdx_x3f_loop___rarg(x_14, x_49, x_25); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_51; +x_51 = l_Array_isEmpty___rarg(x_14); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_isWildcard(x_35); +if (x_52 == 0) +{ +lean_object* x_53; +lean_dec(x_28); +lean_dec(x_14); +lean_dec(x_11); +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_53 = lean_box(0); +x_37 = x_53; +goto block_48; +} +else +{ +lean_object* x_54; size_t x_55; size_t x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_36); +x_54 = lean_array_get_size(x_14); +x_55 = lean_usize_of_nat(x_54); +lean_dec(x_54); +x_56 = 0; +x_57 = lean_box(0); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_58 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_35, x_14, x_55, x_56, x_57, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +lean_dec(x_14); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3; +x_29 = x_60; +x_30 = x_59; +goto block_34; +} +else +{ +uint8_t x_61; +lean_dec(x_28); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +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_58); +if (x_61 == 0) +{ +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 0); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_58); +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_dec(x_28); +lean_dec(x_14); +lean_dec(x_11); +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_65 = lean_box(0); +x_37 = x_65; +goto block_48; +} +} +else +{ +uint8_t x_66; +lean_dec(x_36); +x_66 = !lean_is_exclusive(x_50); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_50, 0); +x_68 = lean_array_get_size(x_14); +x_69 = lean_nat_dec_lt(x_67, x_68); +lean_dec(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt; +x_71 = l___private_Init_GetElem_0__outOfBounds___rarg(x_70); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_72 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_35, x_71, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = l_Array_eraseIdx___rarg(x_14, x_67); +lean_ctor_set(x_50, 0, x_74); +x_29 = x_50; +x_30 = x_73; +goto block_34; } else { uint8_t x_75; -lean_dec(x_37); -lean_dec(x_34); -lean_dec(x_24); -lean_dec(x_23); +lean_free_object(x_50); +lean_dec(x_67); +lean_dec(x_28); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); -x_75 = !lean_is_exclusive(x_73); +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_75 = !lean_is_exclusive(x_72); if (x_75 == 0) { -return x_73; +return x_72; } else { lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_73, 0); -x_77 = lean_ctor_get(x_73, 1); +x_76 = lean_ctor_get(x_72, 0); +x_77 = lean_ctor_get(x_72, 1); lean_inc(x_77); lean_inc(x_76); -lean_dec(x_73); +lean_dec(x_72); x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_76); lean_ctor_set(x_78, 1, x_77); @@ -10825,929 +14400,1003 @@ return x_78; } else { -uint8_t x_79; -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -x_79 = !lean_is_exclusive(x_71); -if (x_79 == 0) -{ -return x_71; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_71, 0); -x_81 = lean_ctor_get(x_71, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_71); -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_dec(x_37); -lean_dec(x_34); -x_83 = lean_ctor_get(x_53, 0); -lean_inc(x_83); -lean_dec(x_53); -x_84 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_15); -x_85 = lean_ctor_get(x_52, 1); -lean_inc(x_85); -lean_dec(x_52); -x_86 = lean_ctor_get(x_83, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_dec(x_83); -lean_inc(x_36); -x_88 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6(x_11, x_12, x_87, x_6, x_7, x_8, x_9, x_13, x_4, x_38, x_14, x_36, x_35, x_5, x_40, x_36, x_86, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_85); -lean_dec(x_36); -return x_88; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; -x_89 = lean_ctor_get(x_52, 1); -lean_inc(x_89); -lean_dec(x_52); -x_90 = lean_ctor_get(x_83, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_83, 1); -lean_inc(x_91); -lean_dec(x_83); -x_92 = 1; -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_79; lean_object* x_80; +x_79 = lean_array_fget(x_14, x_67); lean_inc(x_22); lean_inc(x_21); -x_93 = l_Lean_Meta_introNCore(x_90, x_15, x_27, x_30, x_92, x_21, x_22, x_23, x_24, x_89); -if (lean_obj_tag(x_93) == 0) +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_80 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_35, x_79, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -lean_inc(x_96); -x_97 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6(x_11, x_12, x_91, x_6, x_7, x_8, x_9, x_13, x_4, x_38, x_14, x_36, x_35, x_5, x_40, x_96, x_96, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_95); -lean_dec(x_96); -return x_97; +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l_Array_eraseIdx___rarg(x_14, x_67); +lean_ctor_set(x_50, 0, x_82); +x_29 = x_50; +x_30 = x_81; +goto block_34; } else { -uint8_t x_98; -lean_dec(x_91); -lean_dec(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_24); -lean_dec(x_23); +uint8_t x_83; +lean_free_object(x_50); +lean_dec(x_67); +lean_dec(x_28); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +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_83 = !lean_is_exclusive(x_80); +if (x_83 == 0) +{ +return x_80; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_80, 0); +x_85 = lean_ctor_get(x_80, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_80); +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; uint8_t x_89; +x_87 = lean_ctor_get(x_50, 0); +lean_inc(x_87); +lean_dec(x_50); +x_88 = lean_array_get_size(x_14); +x_89 = lean_nat_dec_lt(x_87, x_88); +lean_dec(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt; +x_91 = l___private_Init_GetElem_0__outOfBounds___rarg(x_90); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_92 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_35, x_91, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_94 = l_Array_eraseIdx___rarg(x_14, x_87); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +x_29 = x_95; +x_30 = x_93; +goto block_34; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_87); +lean_dec(x_28); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +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_96 = lean_ctor_get(x_92, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_92, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_98 = x_92; +} else { + lean_dec_ref(x_92); + 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); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_array_fget(x_14, x_87); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_101 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11, x_35, x_100, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = l_Array_eraseIdx___rarg(x_14, x_87); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_29 = x_104; +x_30 = x_102; +goto block_34; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_87); +lean_dec(x_28); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +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_105 = lean_ctor_get(x_101, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_101, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_107 = x_101; +} else { + lean_dec_ref(x_101); + 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_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +} +} +block_48: +{ +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; +lean_dec(x_37); +x_38 = l_Lean_MessageData_ofName(x_36); +x_39 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2; +x_40 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__4; +x_42 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__1(x_35, x_42, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +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_114; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_14); +lean_ctor_set(x_114, 1, x_23); +return x_114; +} +} +else +{ +lean_object* x_115; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_14); +lean_ctor_set(x_115, 1, x_23); +return x_115; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__5(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_4, x_3); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_5); +x_17 = lean_array_uget(x_2, x_4); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Meta_FVarSubst_get(x_1, x_19); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_21 = l_Lean_Elab_Term_addLocalVarInfo(x_18, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = 1; +x_24 = lean_usize_add(x_4, x_23); +x_25 = lean_box(0); +x_4 = x_24; +x_5 = x_25; +x_14 = x_22; +goto _start; +} +else +{ +uint8_t x_27; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +return x_21; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_21); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +lean_dec(x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_15 = l_Lean_Elab_admitGoal(x_13, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_1 = x_14; +x_10 = x_16; +goto _start; +} +else +{ +uint8_t x_18; +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +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(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__5(x_1, x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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; +} +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("' has not been provided", 23); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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, 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; size_t x_19; size_t x_20; lean_object* x_21; +x_18 = lean_array_get_size(x_1); +x_19 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_20 = 0; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___spec__3(x_1, x_19, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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_array_get_size(x_2); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = lean_box_usize(x_25); +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed__const__1; +x_28 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__1___boxed), 13, 4); +lean_closure_set(x_28, 0, x_3); +lean_closure_set(x_28, 1, x_2); +lean_closure_set(x_28, 2, x_26); +lean_closure_set(x_28, 3, x_27); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_22); +x_29 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_22, x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_23); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_31 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac(x_4, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_30); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +x_35 = lean_unsigned_to_nat(0u); +x_36 = lean_nat_dec_lt(x_35, x_5); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_free_object(x_31); +lean_dec(x_6); +x_37 = l_Lean_Elab_Tactic_getGoals___rarg(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_34); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_List_appendTR___rarg(x_38, x_33); +x_41 = l_Lean_Elab_Tactic_setGoals(x_40, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_39); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -x_98 = !lean_is_exclusive(x_93); -if (x_98 == 0) +lean_dec(x_10); +lean_dec(x_9); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -return x_93; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +x_44 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +lean_ctor_set(x_41, 0, x_44); +return x_41; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_93, 0); -x_100 = lean_ctor_get(x_93, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_93); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +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 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } +else +{ +uint8_t x_48; +x_48 = l_List_isEmpty___rarg(x_33); +if (x_48 == 0) +{ +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; +lean_free_object(x_31); +x_49 = l_Lean_MessageData_ofName(x_6); +x_50 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2; +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = 2; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_55 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_53, x_54, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_34); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__6(x_33, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_56); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +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; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +} +else +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_57); +if (x_64 == 0) +{ +return x_57; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_57, 0); +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_57); +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; +} +} +} +else +{ +lean_object* x_68; +lean_dec(x_33); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +x_68 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +lean_ctor_set(x_31, 0, x_68); +return x_31; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_69 = lean_ctor_get(x_31, 0); +x_70 = lean_ctor_get(x_31, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_31); +x_71 = lean_unsigned_to_nat(0u); +x_72 = lean_nat_dec_lt(x_71, x_5); +if (x_72 == 0) +{ +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_dec(x_6); +x_73 = l_Lean_Elab_Tactic_getGoals___rarg(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_70); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_List_appendTR___rarg(x_74, x_69); +x_77 = l_Lean_Elab_Tactic_setGoals(x_76, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_75); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_79 = x_77; +} else { + lean_dec_ref(x_77); + x_79 = lean_box(0); +} +x_80 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_79; +} +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +return x_81; +} +else +{ +uint8_t x_82; +x_82 = l_List_isEmpty___rarg(x_69); +if (x_82 == 0) +{ +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; lean_object* x_90; lean_object* x_91; +x_83 = l_Lean_MessageData_ofName(x_6); +x_84 = l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2; +x_85 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = 2; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_89 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_87, x_88, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_70); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +lean_dec(x_89); +x_91 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__6(x_69, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_90); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +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_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +x_94 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +if (lean_is_scalar(x_93)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_93; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_92); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_91, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_91, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_98 = x_91; +} else { + lean_dec_ref(x_91); + 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); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_69); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +x_100 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_70); +return x_101; +} } } } else { uint8_t x_102; -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -x_102 = !lean_is_exclusive(x_52); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +x_102 = !lean_is_exclusive(x_31); if (x_102 == 0) { -return x_52; +return x_31; } else { lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_52, 0); -x_104 = lean_ctor_get(x_52, 1); +x_103 = lean_ctor_get(x_31, 0); +x_104 = lean_ctor_get(x_31, 1); lean_inc(x_104); lean_inc(x_103); -lean_dec(x_52); +lean_dec(x_31); x_105 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); return x_105; } } -block_51: -{ -if (x_6 == 0) -{ -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_37); -lean_dec(x_34); -lean_dec(x_8); -x_42 = l_Lean_MessageData_ofName(x_7); -x_43 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2; -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2; -x_46 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__6(x_46, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_41); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_7); -x_48 = lean_box(x_9); -if (lean_is_scalar(x_37)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_37; -} -lean_ctor_set(x_49, 0, x_8); -lean_ctor_set(x_49, 1, x_48); -if (lean_is_scalar(x_34)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_34; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_41); -return x_50; -} -} } else { uint8_t x_106; -lean_dec(x_24); -lean_dec(x_23); lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_9); +lean_dec(x_6); lean_dec(x_4); -x_106 = !lean_is_exclusive(x_31); +x_106 = !lean_is_exclusive(x_29); if (x_106 == 0) { -return x_31; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_31, 0); -x_108 = lean_ctor_get(x_31, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_31); -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; -} -} -} -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("too many variable names provided at alternative '", 49); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("', #", 4); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(" provided, but #", 16); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(" expected", 9); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(lean_object* x_1, 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, 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) { -_start: -{ -lean_object* x_26; uint8_t x_27; -x_26 = lean_array_get_size(x_1); -x_27 = lean_nat_dec_lt(x_16, x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_26); -lean_dec(x_16); -x_28 = lean_box(0); -x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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, x_28, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); return x_29; } else { -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; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_inc(x_7); -x_30 = l_Lean_MessageData_ofName(x_7); -x_31 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2; -x_32 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4; -x_34 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l___private_Init_Data_Repr_0__Nat_reprFast(x_26); -x_36 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = l_Lean_MessageData_ofFormat(x_36); -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_34); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Init_Data_Repr_0__Nat_reprFast(x_16); -x_42 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = l_Lean_MessageData_ofFormat(x_42); -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_40); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8; -x_46 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = 2; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -x_48 = l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(x_46, x_47, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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, x_49, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_50); -return x_51; -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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, uint8_t 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, lean_object* x_24, lean_object* x_25) { -_start: -{ -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_26; uint8_t x_27; lean_object* x_28; -lean_dec(x_11); -x_26 = lean_box(0); -x_27 = 0; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -x_28 = l_Lean_Meta_introNCore(x_1, x_2, x_26, x_27, x_27, x_21, x_22, x_23, x_24, x_25); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_29, 1); -x_33 = lean_ctor_get(x_29, 0); -lean_dec(x_33); -x_34 = lean_box(0); -x_35 = lean_box(0); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_32); -x_36 = l_Lean_Meta_Cases_unifyEqs_x3f(x_3, x_32, x_34, x_35, x_21, x_22, x_23, x_24, x_30); -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) -{ -uint8_t x_38; -lean_dec(x_32); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -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_38 = !lean_is_exclusive(x_36); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_36, 0); -lean_dec(x_39); -x_40 = lean_box(x_15); -lean_ctor_set(x_29, 1, x_40); -lean_ctor_set(x_29, 0, x_14); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_12); -lean_ctor_set(x_41, 1, x_29); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_36, 0, x_42); -return x_36; -} -else -{ -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_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_44 = lean_box(x_15); -lean_ctor_set(x_29, 1, x_44); -lean_ctor_set(x_29, 0, x_14); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_12); -lean_ctor_set(x_45, 1, x_29); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_43); -return x_47; -} -} -else -{ -lean_object* x_48; uint8_t x_49; -lean_free_object(x_29); -x_48 = lean_ctor_get(x_37, 0); -lean_inc(x_48); -lean_dec(x_37); -x_49 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); -lean_dec(x_9); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_10); -x_50 = lean_ctor_get(x_36, 1); -lean_inc(x_50); -lean_dec(x_36); -x_51 = lean_ctor_get(x_48, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_48, 1); -lean_inc(x_52); -lean_dec(x_48); -x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(x_4, x_5, x_52, x_6, x_7, x_15, x_12, x_8, x_32, x_14, x_51, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_50); -lean_dec(x_32); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; -lean_dec(x_32); -x_54 = lean_ctor_get(x_36, 1); -lean_inc(x_54); -lean_dec(x_36); -x_55 = lean_ctor_get(x_48, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_48, 1); -lean_inc(x_56); -lean_dec(x_48); -x_57 = 1; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -x_58 = l_Lean_Meta_introNCore(x_55, x_10, x_26, x_27, x_57, x_21, x_22, x_23, x_24, x_54); -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, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -lean_inc(x_61); -x_62 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(x_4, x_5, x_56, x_6, x_7, x_15, x_12, x_8, x_61, x_14, x_61, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_60); -lean_dec(x_61); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_62; -} -else -{ -uint8_t x_63; -lean_dec(x_56); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_63 = !lean_is_exclusive(x_58); -if (x_63 == 0) -{ -return x_58; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_58, 0); -x_65 = lean_ctor_get(x_58, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_58); -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 -{ -uint8_t x_67; -lean_free_object(x_29); -lean_dec(x_32); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_67 = !lean_is_exclusive(x_36); -if (x_67 == 0) -{ -return x_36; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_36, 0); -x_69 = lean_ctor_get(x_36, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_36); -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 -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_29, 1); -lean_inc(x_71); -lean_dec(x_29); -x_72 = lean_box(0); -x_73 = lean_box(0); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_71); -x_74 = l_Lean_Meta_Cases_unifyEqs_x3f(x_3, x_71, x_72, x_73, x_21, x_22, x_23, x_24, x_30); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -if (lean_obj_tag(x_75) == 0) -{ -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_dec(x_71); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -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_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_box(x_15); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_14); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_12); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_80); -if (lean_is_scalar(x_77)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_77; -} -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_76); -return x_82; -} -else -{ -lean_object* x_83; uint8_t x_84; -x_83 = lean_ctor_get(x_75, 0); -lean_inc(x_83); -lean_dec(x_75); -x_84 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); -lean_dec(x_9); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_10); -x_85 = lean_ctor_get(x_74, 1); -lean_inc(x_85); -lean_dec(x_74); -x_86 = lean_ctor_get(x_83, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_dec(x_83); -x_88 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(x_4, x_5, x_87, x_6, x_7, x_15, x_12, x_8, x_71, x_14, x_86, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_85); -lean_dec(x_71); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_88; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; -lean_dec(x_71); -x_89 = lean_ctor_get(x_74, 1); -lean_inc(x_89); -lean_dec(x_74); -x_90 = lean_ctor_get(x_83, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_83, 1); -lean_inc(x_91); -lean_dec(x_83); -x_92 = 1; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -x_93 = l_Lean_Meta_introNCore(x_90, x_10, x_26, x_27, x_92, x_21, x_22, x_23, x_24, x_89); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -lean_inc(x_96); -x_97 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(x_4, x_5, x_91, x_6, x_7, x_15, x_12, x_8, x_96, x_14, x_96, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_95); -lean_dec(x_96); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_97; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_91); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_98 = lean_ctor_get(x_93, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_93, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_100 = x_93; -} else { - lean_dec_ref(x_93); - x_100 = lean_box(0); -} -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); -} else { - x_101 = x_100; -} -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; -} -} -} -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_71); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_102 = lean_ctor_get(x_74, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_74, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_104 = x_74; -} else { - lean_dec_ref(x_74); - 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 -{ -uint8_t x_106; -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_106 = !lean_is_exclusive(x_28); -if (x_106 == 0) -{ -return x_28; -} -else -{ lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_28, 0); -x_108 = lean_ctor_get(x_28, 1); +x_107 = lean_ctor_get(x_29, 0); +x_108 = lean_ctor_get(x_29, 1); lean_inc(x_108); lean_inc(x_107); -lean_dec(x_28); +lean_dec(x_29); x_109 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_109, 0, x_107); lean_ctor_set(x_109, 1, x_108); @@ -11757,652 +15406,41 @@ return x_109; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; -lean_dec(x_7); -x_110 = lean_ctor_get(x_16, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_16)) { - lean_ctor_release(x_16, 0); - x_111 = x_16; -} else { - lean_dec_ref(x_16); - x_111 = lean_box(0); -} -x_112 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVars(x_110); -x_113 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(x_110); -if (x_113 == 0) -{ -uint8_t x_225; -x_225 = 0; -x_114 = x_225; -goto block_224; -} -else -{ -uint8_t x_226; -x_226 = 1; -x_114 = x_226; -goto block_224; -} -block_224: -{ -uint8_t x_115; -x_115 = !lean_is_exclusive(x_23); -if (x_115 == 0) -{ -lean_object* x_116; lean_object* x_117; -x_116 = lean_ctor_get(x_23, 5); -x_117 = l_Lean_replaceRef(x_110, x_116); -lean_dec(x_116); -lean_ctor_set(x_23, 5, x_117); -if (x_114 == 0) -{ -lean_object* x_118; -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_2); -lean_inc(x_1); -x_118 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields(x_1, x_2, x_21, x_22, x_23, x_24, x_25); -if (lean_obj_tag(x_118) == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(x_112, x_1, x_2, x_110, x_9, x_13, x_8, x_11, x_15, x_3, x_4, x_5, x_6, x_14, x_10, x_119, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_120); -if (lean_obj_tag(x_121) == 0) -{ -uint8_t x_122; -x_122 = !lean_is_exclusive(x_121); -if (x_122 == 0) -{ -lean_object* x_123; uint8_t x_124; -x_123 = lean_ctor_get(x_121, 0); -x_124 = !lean_is_exclusive(x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_12); -lean_ctor_set(x_125, 1, x_123); -if (lean_is_scalar(x_111)) { - x_126 = lean_alloc_ctor(1, 1, 0); -} else { - x_126 = x_111; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_121, 0, x_126); -return x_121; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_127 = lean_ctor_get(x_123, 0); -x_128 = lean_ctor_get(x_123, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_123); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_12); -lean_ctor_set(x_130, 1, x_129); -if (lean_is_scalar(x_111)) { - x_131 = lean_alloc_ctor(1, 1, 0); -} else { - x_131 = x_111; -} -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_121, 0, x_131); -return x_121; -} -} -else -{ -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_132 = lean_ctor_get(x_121, 0); -x_133 = lean_ctor_get(x_121, 1); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_121); -x_134 = lean_ctor_get(x_132, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_132, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_136 = x_132; -} else { - lean_dec_ref(x_132); - x_136 = lean_box(0); -} -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(0, 2, 0); -} else { - x_137 = x_136; -} -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_12); -lean_ctor_set(x_138, 1, x_137); -if (lean_is_scalar(x_111)) { - x_139 = lean_alloc_ctor(1, 1, 0); -} else { - x_139 = x_111; -} -lean_ctor_set(x_139, 0, x_138); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_133); -return x_140; -} -} -else -{ -uint8_t x_141; -lean_dec(x_111); -lean_dec(x_12); -x_141 = !lean_is_exclusive(x_121); -if (x_141 == 0) -{ -return x_121; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_121, 0); -x_143 = lean_ctor_get(x_121, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_121); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -} -else -{ -uint8_t x_145; -lean_dec(x_23); -lean_dec(x_112); -lean_dec(x_111); -lean_dec(x_110); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +uint8_t x_110; +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); 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_145 = !lean_is_exclusive(x_118); -if (x_145 == 0) +x_110 = !lean_is_exclusive(x_21); +if (x_110 == 0) { -return x_118; +return x_21; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_118, 0); -x_147 = lean_ctor_get(x_118, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_118); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; -} -} -} -else -{ -lean_object* x_149; -lean_inc(x_2); -x_149 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(x_112, x_1, x_2, x_110, x_9, x_13, x_8, x_11, x_15, x_3, x_4, x_5, x_6, x_14, x_10, x_2, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); -if (lean_obj_tag(x_149) == 0) -{ -uint8_t x_150; -x_150 = !lean_is_exclusive(x_149); -if (x_150 == 0) -{ -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_149, 0); -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_12); -lean_ctor_set(x_153, 1, x_151); -if (lean_is_scalar(x_111)) { - x_154 = lean_alloc_ctor(1, 1, 0); -} else { - x_154 = x_111; -} -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_149, 0, x_154); -return x_149; -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_155 = lean_ctor_get(x_151, 0); -x_156 = lean_ctor_get(x_151, 1); -lean_inc(x_156); -lean_inc(x_155); -lean_dec(x_151); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_155); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_12); -lean_ctor_set(x_158, 1, x_157); -if (lean_is_scalar(x_111)) { - x_159 = lean_alloc_ctor(1, 1, 0); -} else { - x_159 = x_111; -} -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_149, 0, x_159); -return x_149; -} -} -else -{ -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; -x_160 = lean_ctor_get(x_149, 0); -x_161 = lean_ctor_get(x_149, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_149); -x_162 = lean_ctor_get(x_160, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_160, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_164 = x_160; -} else { - lean_dec_ref(x_160); - x_164 = lean_box(0); -} -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_164; -} -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_163); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_12); -lean_ctor_set(x_166, 1, x_165); -if (lean_is_scalar(x_111)) { - x_167 = lean_alloc_ctor(1, 1, 0); -} else { - x_167 = x_111; -} -lean_ctor_set(x_167, 0, 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_161); -return x_168; -} -} -else -{ -uint8_t x_169; -lean_dec(x_111); -lean_dec(x_12); -x_169 = !lean_is_exclusive(x_149); -if (x_169 == 0) -{ -return x_149; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_149, 0); -x_171 = lean_ctor_get(x_149, 1); -lean_inc(x_171); -lean_inc(x_170); -lean_dec(x_149); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_171); -return x_172; -} -} -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; -x_173 = lean_ctor_get(x_23, 0); -x_174 = lean_ctor_get(x_23, 1); -x_175 = lean_ctor_get(x_23, 2); -x_176 = lean_ctor_get(x_23, 3); -x_177 = lean_ctor_get(x_23, 4); -x_178 = lean_ctor_get(x_23, 5); -x_179 = lean_ctor_get(x_23, 6); -x_180 = lean_ctor_get(x_23, 7); -x_181 = lean_ctor_get(x_23, 8); -x_182 = lean_ctor_get(x_23, 9); -x_183 = lean_ctor_get(x_23, 10); -x_184 = lean_ctor_get_uint8(x_23, sizeof(void*)*11); -lean_inc(x_183); -lean_inc(x_182); -lean_inc(x_181); -lean_inc(x_180); -lean_inc(x_179); -lean_inc(x_178); -lean_inc(x_177); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_23); -x_185 = l_Lean_replaceRef(x_110, x_178); -lean_dec(x_178); -x_186 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_186, 0, x_173); -lean_ctor_set(x_186, 1, x_174); -lean_ctor_set(x_186, 2, x_175); -lean_ctor_set(x_186, 3, x_176); -lean_ctor_set(x_186, 4, x_177); -lean_ctor_set(x_186, 5, x_185); -lean_ctor_set(x_186, 6, x_179); -lean_ctor_set(x_186, 7, x_180); -lean_ctor_set(x_186, 8, x_181); -lean_ctor_set(x_186, 9, x_182); -lean_ctor_set(x_186, 10, x_183); -lean_ctor_set_uint8(x_186, sizeof(void*)*11, x_184); -if (x_114 == 0) -{ -lean_object* x_187; -lean_inc(x_24); -lean_inc(x_186); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_2); -lean_inc(x_1); -x_187 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields(x_1, x_2, x_21, x_22, x_186, x_24, x_25); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_190 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(x_112, x_1, x_2, x_110, x_9, x_13, x_8, x_11, x_15, x_3, x_4, x_5, x_6, x_14, x_10, x_188, x_17, x_18, x_19, x_20, x_21, x_22, x_186, x_24, x_189); -if (lean_obj_tag(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; lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_193 = x_190; -} else { - lean_dec_ref(x_190); - x_193 = lean_box(0); -} -x_194 = lean_ctor_get(x_191, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_191, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_196 = x_191; -} else { - lean_dec_ref(x_191); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(0, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_12); -lean_ctor_set(x_198, 1, x_197); -if (lean_is_scalar(x_111)) { - x_199 = lean_alloc_ctor(1, 1, 0); -} else { - x_199 = x_111; -} -lean_ctor_set(x_199, 0, x_198); -if (lean_is_scalar(x_193)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_193; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_192); -return x_200; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_111); -lean_dec(x_12); -x_201 = lean_ctor_get(x_190, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_190, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_203 = x_190; -} else { - lean_dec_ref(x_190); - x_203 = lean_box(0); -} -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(1, 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_dec(x_186); -lean_dec(x_112); -lean_dec(x_111); -lean_dec(x_110); -lean_dec(x_24); -lean_dec(x_22); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_21, 0); +x_112 = lean_ctor_get(x_21, 1); +lean_inc(x_112); +lean_inc(x_111); lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -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_205 = lean_ctor_get(x_187, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_187, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_207 = x_187; -} else { - lean_dec_ref(x_187); - x_207 = lean_box(0); -} -if (lean_is_scalar(x_207)) { - x_208 = lean_alloc_ctor(1, 2, 0); -} else { - x_208 = x_207; -} -lean_ctor_set(x_208, 0, x_205); -lean_ctor_set(x_208, 1, x_206); -return x_208; -} -} -else -{ -lean_object* x_209; -lean_inc(x_2); -x_209 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(x_112, x_1, x_2, x_110, x_9, x_13, x_8, x_11, x_15, x_3, x_4, x_5, x_6, x_14, x_10, x_2, x_17, x_18, x_19, x_20, x_21, x_22, x_186, x_24, x_25); -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; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_209, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_212 = x_209; -} else { - lean_dec_ref(x_209); - x_212 = lean_box(0); -} -x_213 = lean_ctor_get(x_210, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_210, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_210)) { - lean_ctor_release(x_210, 0); - lean_ctor_release(x_210, 1); - x_215 = x_210; -} else { - lean_dec_ref(x_210); - x_215 = lean_box(0); -} -if (lean_is_scalar(x_215)) { - x_216 = lean_alloc_ctor(0, 2, 0); -} else { - x_216 = x_215; -} -lean_ctor_set(x_216, 0, x_213); -lean_ctor_set(x_216, 1, x_214); -x_217 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_217, 0, x_12); -lean_ctor_set(x_217, 1, x_216); -if (lean_is_scalar(x_111)) { - x_218 = lean_alloc_ctor(1, 1, 0); -} else { - x_218 = x_111; -} -lean_ctor_set(x_218, 0, x_217); -if (lean_is_scalar(x_212)) { - x_219 = lean_alloc_ctor(0, 2, 0); -} else { - x_219 = x_212; -} -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_211); -return x_219; -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec(x_111); -lean_dec(x_12); -x_220 = lean_ctor_get(x_209, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_209, 1); -lean_inc(x_221); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_222 = x_209; -} else { - lean_dec_ref(x_209); - x_222 = lean_box(0); -} -if (lean_is_scalar(x_222)) { - x_223 = lean_alloc_ctor(1, 2, 0); -} else { - x_223 = x_222; -} -lean_ctor_set(x_223, 0, x_220); -lean_ctor_set(x_223, 1, x_221); -return x_223; +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } } } -} -} -} -LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_2); -x_4 = lean_name_eq(x_3, x_1); -lean_dec(x_3); -return x_4; -} -} -LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_1); -x_3 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__7; -x_4 = lean_name_eq(x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11___boxed), 1, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_object* x_9, size_t x_10, size_t 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_object* x_9, size_t x_10, size_t 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) { _start: { uint8_t x_22; @@ -12418,12 +15456,9 @@ lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -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_23 = lean_alloc_ctor(0, 2, 0); @@ -12433,7 +15468,8 @@ return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; 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_24; lean_object* x_25; lean_object* x_26; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_12); x_24 = lean_array_uget(x_9, x_11); x_34 = lean_ctor_get(x_24, 0); lean_inc(x_34); @@ -12442,16 +15478,6 @@ lean_inc(x_35); x_36 = lean_ctor_get(x_24, 2); lean_inc(x_36); lean_dec(x_24); -x_37 = lean_ctor_get(x_12, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_12, 1); -lean_inc(x_38); -lean_dec(x_12); -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); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -12460,120 +15486,80 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_34); lean_inc(x_1); -x_41 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields(x_1, x_34, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -if (lean_obj_tag(x_41) == 0) +x_37 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields(x_1, x_34, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +if (lean_obj_tag(x_37) == 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_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_box(0); +x_41 = 0; +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_42 = l_Lean_Meta_introNCore(x_36, x_38, x_40, x_41, x_41, x_17, x_18, x_19, x_20, x_39); +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; lean_object* x_48; +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec(x_41); -lean_inc(x_34); -x_44 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10___boxed), 2, 1); -lean_closure_set(x_44, 0, x_34); -x_45 = lean_unsigned_to_nat(0u); -x_46 = l_Array_findIdx_x3f_loop___rarg(x_37, x_44, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1; -x_48 = l_Array_findIdx_x3f_loop___rarg(x_37, x_47, x_45); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_box(0); +x_47 = lean_box(0); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_45); +lean_inc(x_4); +x_48 = l_Lean_Meta_Cases_unifyEqs_x3f(x_4, x_45, x_46, x_47, x_17, x_18, x_19, x_20, x_44); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; -x_49 = lean_box(0); -x_50 = 0; -x_51 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_52 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_37, x_50, x_39, x_51, x_49, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_52) == 0) +lean_object* x_49; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_25 = x_53; -x_26 = x_54; +lean_object* x_50; lean_object* x_51; +lean_dec(x_45); +lean_dec(x_35); +lean_dec(x_34); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___closed__3; +x_25 = x_51; +x_26 = x_50; goto block_33; } else { -uint8_t x_55; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_49, 0); +lean_inc(x_52); +lean_dec(x_49); +x_53 = lean_ctor_get_uint8(x_35, sizeof(void*)*3); +lean_dec(x_35); +if (x_53 == 0) { -return x_52; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 0); -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_48, 1); +lean_inc(x_54); +lean_dec(x_48); +x_55 = lean_ctor_get(x_52, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_52, 1); lean_inc(x_56); lean_dec(x_52); -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 -{ -uint8_t x_59; -x_59 = !lean_is_exclusive(x_48); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_ctor_get(x_48, 0); -x_61 = lean_array_get_size(x_37); -x_62 = lean_nat_dec_lt(x_60, x_61); -lean_dec(x_61); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; -lean_dec(x_60); -x_63 = l_Lean_instInhabitedSyntax; -x_64 = l___private_Init_GetElem_0__outOfBounds___rarg(x_63); -lean_ctor_set(x_48, 0, x_64); -x_65 = 1; -x_66 = lean_unbox(x_40); -lean_dec(x_40); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -12582,74 +15568,88 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); lean_inc(x_2); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_67 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_37, x_65, x_39, x_66, x_48, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_67) == 0) +x_57 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2(x_6, x_7, x_56, x_2, x_8, x_34, x_45, x_55, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_54); +lean_dec(x_45); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_25 = x_58; +x_26 = x_59; +goto block_33; +} +else +{ +uint8_t x_60; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_57); +if (x_60 == 0) +{ +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 0); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_57); +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; uint8_t x_67; lean_object* x_68; +lean_dec(x_45); +x_64 = lean_ctor_get(x_48, 1); +lean_inc(x_64); +lean_dec(x_48); +x_65 = lean_ctor_get(x_52, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_52, 1); +lean_inc(x_66); +lean_dec(x_52); +x_67 = 1; +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_5); +x_68 = l_Lean_Meta_introNCore(x_65, x_5, x_40, x_41, x_67, x_17, x_18, x_19, x_20, x_64); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_25 = x_68; -x_26 = x_69; -goto block_33; -} -else -{ -uint8_t x_70; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_70 = !lean_is_exclusive(x_67); -if (x_70 == 0) -{ -return x_67; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_67, 0); -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_ctor_get(x_69, 1); lean_inc(x_71); -lean_dec(x_67); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -else -{ -lean_object* x_74; uint8_t x_75; uint8_t x_76; lean_object* x_77; -x_74 = lean_array_fget(x_37, x_60); -lean_dec(x_60); -lean_ctor_set(x_48, 0, x_74); -x_75 = 1; -x_76 = lean_unbox(x_40); -lean_dec(x_40); +lean_dec(x_69); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -12658,29 +15658,26 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); +lean_inc(x_71); lean_inc(x_2); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_77 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_37, x_75, x_39, x_76, x_48, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_77) == 0) +x_72 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2(x_6, x_7, x_66, x_2, x_8, x_34, x_71, x_71, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_70); +lean_dec(x_71); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_25 = x_78; -x_26 = x_79; +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_25 = x_73; +x_26 = x_74; goto block_33; } else { -uint8_t x_80; +uint8_t x_75; lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -12689,86 +15686,115 @@ lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -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_80 = !lean_is_exclusive(x_77); -if (x_80 == 0) +x_75 = !lean_is_exclusive(x_72); +if (x_75 == 0) { -return x_77; +return x_72; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_77, 0); -x_82 = lean_ctor_get(x_77, 1); -lean_inc(x_82); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_72, 0); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_72); +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; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_66); +lean_dec(x_34); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_68); +if (x_79 == 0) +{ +return x_68; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_68, 0); +x_81 = lean_ctor_get(x_68, 1); lean_inc(x_81); -lean_dec(x_77); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_inc(x_80); +lean_dec(x_68); +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_84; lean_object* x_85; uint8_t x_86; +uint8_t x_83; +lean_dec(x_45); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_48); +if (x_83 == 0) +{ +return x_48; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; x_84 = lean_ctor_get(x_48, 0); +x_85 = lean_ctor_get(x_48, 1); +lean_inc(x_85); lean_inc(x_84); lean_dec(x_48); -x_85 = lean_array_get_size(x_37); -x_86 = lean_nat_dec_lt(x_84, x_85); -lean_dec(x_85); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; -lean_dec(x_84); -x_87 = l_Lean_instInhabitedSyntax; -x_88 = l___private_Init_GetElem_0__outOfBounds___rarg(x_87); -x_89 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_89, 0, x_88); -x_90 = 1; -x_91 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_92 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_37, x_90, x_39, x_91, x_89, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_25 = x_93; -x_26 = x_94; -goto block_33; +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_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +uint8_t x_87; +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -12777,470 +15803,34 @@ lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -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_95 = lean_ctor_get(x_92, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_92, 1); -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); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -return x_98; -} +x_87 = !lean_is_exclusive(x_42); +if (x_87 == 0) +{ +return x_42; } else { -lean_object* x_99; lean_object* x_100; uint8_t x_101; uint8_t x_102; lean_object* x_103; -x_99 = lean_array_fget(x_37, x_84); -lean_dec(x_84); -x_100 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_100, 0, x_99); -x_101 = 1; -x_102 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_103 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_37, x_101, x_39, x_102, x_100, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_25 = x_104; -x_26 = x_105; -goto block_33; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_106 = lean_ctor_get(x_103, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_103, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_108 = x_103; -} else { - lean_dec_ref(x_103); - 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); -return x_109; -} -} +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_42, 0); +x_89 = lean_ctor_get(x_42, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_42); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } else { -uint8_t x_110; -x_110 = !lean_is_exclusive(x_46); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_46, 0); -x_112 = lean_array_get_size(x_37); -x_113 = lean_nat_dec_lt(x_111, x_112); -lean_dec(x_112); -lean_inc(x_111); -lean_inc(x_37); -x_114 = l_Array_eraseIdx___rarg(x_37, x_111); -if (x_113 == 0) -{ -lean_object* x_115; lean_object* x_116; uint8_t x_117; uint8_t x_118; lean_object* x_119; -lean_dec(x_111); -lean_dec(x_37); -x_115 = l_Lean_instInhabitedSyntax; -x_116 = l___private_Init_GetElem_0__outOfBounds___rarg(x_115); -lean_ctor_set(x_46, 0, x_116); -x_117 = 0; -x_118 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_119 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_114, x_117, x_39, x_118, x_46, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; lean_object* x_121; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -x_25 = x_120; -x_26 = x_121; -goto block_33; -} -else -{ -uint8_t x_122; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_122 = !lean_is_exclusive(x_119); -if (x_122 == 0) -{ -return x_119; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_119, 0); -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_119); -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; -} -} -} -else -{ -lean_object* x_126; uint8_t x_127; uint8_t x_128; lean_object* x_129; -x_126 = lean_array_fget(x_37, x_111); -lean_dec(x_111); -lean_dec(x_37); -lean_ctor_set(x_46, 0, x_126); -x_127 = 0; -x_128 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_129 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_114, x_127, x_39, x_128, x_46, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_25 = x_130; -x_26 = x_131; -goto block_33; -} -else -{ -uint8_t x_132; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_132 = !lean_is_exclusive(x_129); -if (x_132 == 0) -{ -return x_129; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_129, 0); -x_134 = lean_ctor_get(x_129, 1); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_129); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -return x_135; -} -} -} -} -else -{ -lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_46, 0); -lean_inc(x_136); -lean_dec(x_46); -x_137 = lean_array_get_size(x_37); -x_138 = lean_nat_dec_lt(x_136, x_137); -lean_dec(x_137); -lean_inc(x_136); -lean_inc(x_37); -x_139 = l_Array_eraseIdx___rarg(x_37, x_136); -if (x_138 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; uint8_t x_144; lean_object* x_145; -lean_dec(x_136); -lean_dec(x_37); -x_140 = l_Lean_instInhabitedSyntax; -x_141 = l___private_Init_GetElem_0__outOfBounds___rarg(x_140); -x_142 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_142, 0, x_141); -x_143 = 0; -x_144 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_145 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_139, x_143, x_39, x_144, x_142, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_145) == 0) -{ -lean_object* x_146; lean_object* x_147; -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); -x_25 = x_146; -x_26 = x_147; -goto block_33; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_148 = lean_ctor_get(x_145, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_145, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_150 = x_145; -} else { - lean_dec_ref(x_145); - 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); -return x_151; -} -} -else -{ -lean_object* x_152; lean_object* x_153; uint8_t x_154; uint8_t x_155; lean_object* x_156; -x_152 = lean_array_fget(x_37, x_136); -lean_dec(x_136); -lean_dec(x_37); -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_152); -x_154 = 0; -x_155 = lean_unbox(x_40); -lean_dec(x_40); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_156 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9(x_36, x_42, x_4, x_6, x_7, x_2, x_3, x_34, x_35, x_5, x_8, x_139, x_154, x_39, x_155, x_153, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_43); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; -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_25 = x_157; -x_26 = x_158; -goto block_33; -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_159 = lean_ctor_get(x_156, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_156, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_161 = x_156; -} else { - lean_dec_ref(x_156); - x_161 = lean_box(0); -} -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); -} else { - x_162 = x_161; -} -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_160); -return x_162; -} -} -} -} -} -else -{ -uint8_t x_163; -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_37); +uint8_t x_91; lean_dec(x_36); lean_dec(x_35); lean_dec(x_34); @@ -13252,31 +15842,28 @@ lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -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_163 = !lean_is_exclusive(x_41); -if (x_163 == 0) +x_91 = !lean_is_exclusive(x_37); +if (x_91 == 0) { -return x_41; +return x_37; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_41, 0); -x_165 = lean_ctor_get(x_41, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_41); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_37, 0); +x_93 = lean_ctor_get(x_37, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_37); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } block_33: @@ -13292,12 +15879,9 @@ lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); -lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_27 = lean_ctor_get(x_25, 0); @@ -13325,135 +15909,158 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental(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: { -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_2, x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; size_t x_10; size_t x_11; -x_6 = lean_array_uget(x_1, x_2); -x_7 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(x_6); -x_8 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__7; -x_9 = lean_name_eq(x_7, x_8); -lean_dec(x_7); -x_10 = 1; -x_11 = lean_usize_add(x_2, x_10); -if (x_9 == 0) -{ -lean_object* x_12; -x_12 = lean_array_push(x_4, x_6); -x_2 = x_11; -x_4 = x_12; -goto _start; -} -else -{ -lean_dec(x_6); -x_2 = x_11; -goto _start; -} -} -else -{ -return x_4; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___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) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_array_to_list(lean_box(0), x_1); -x_13 = l_Lean_Elab_Tactic_setGoals(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("unused alternative", 18); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___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_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___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) { -_start: -{ -uint8_t x_13; -lean_dec(x_3); -x_13 = l_Array_isEmpty___rarg(x_2); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_array_get_size(x_2); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); -lean_dec(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_2); -x_17 = l_Lean_instInhabitedSyntax; -x_18 = l___private_Init_GetElem_0__outOfBounds___rarg(x_17); -x_19 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3; -x_20 = 2; +lean_object* x_19; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); lean_inc(x_10); -x_21 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_18); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); +x_19 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames(x_2, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +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; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_array_get_size(x_4); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_unsigned_to_nat(1u); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_21); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_24 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21, x_21, x_22, x_21, x_23, x_2, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_20); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; lean_object* x_31; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_array_get_size(x_25); +x_28 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_29 = 0; +x_30 = lean_box(0); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_21, x_25, x_28, x_29, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_26); +lean_dec(x_25); lean_dec(x_21); -x_24 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__1(x_1, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +lean_dec(x_7); +lean_dec(x_4); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set(x_31, 0, x_30); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_30); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) +{ +return x_31; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_31); +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; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_22); +lean_dec(x_3); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_24); +if (x_40 == 0) +{ return x_24; } else { -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_array_fget(x_2, x_15); -lean_dec(x_2); -x_26 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3; -x_27 = 2; -lean_inc(x_10); -x_28 = l_Lean_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(x_25, x_26, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_25); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__1(x_1, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_24, 0); +x_42 = lean_ctor_get(x_24, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_24); +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_44; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13462,567 +16069,200 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_29); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; +lean_dec(x_3); lean_dec(x_2); -x_32 = lean_box(0); -x_33 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__1(x_1, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -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); -return x_33; -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1() { -_start: +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_19); +if (x_44 == 0) { -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -x_2 = 0; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go(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) { -_start: -{ -lean_object* x_18; -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_18 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames(x_2, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Elab_Tactic_ElimApp_reorderAlts(x_2, x_4); -x_21 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1; -lean_inc(x_4); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_4); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_array_get_size(x_20); -x_24 = lean_usize_of_nat(x_23); -lean_dec(x_23); -x_25 = 0; -x_26 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_26, x_20, x_24, x_25, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_19); -lean_dec(x_20); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_dec(x_27); -x_33 = lean_ctor_get(x_28, 0); -lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_ctor_get(x_29, 0); -lean_inc(x_34); -lean_dec(x_29); -x_35 = lean_box(0); -x_36 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2(x_34, x_33, x_35, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_32); -return x_36; +return x_19; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_dec(x_27); -x_38 = lean_ctor_get(x_28, 0); -lean_inc(x_38); -lean_dec(x_28); -x_39 = lean_ctor_get(x_29, 0); -lean_inc(x_39); -lean_dec(x_29); -x_40 = lean_array_get_size(x_38); -x_41 = lean_unsigned_to_nat(0u); -x_42 = lean_nat_dec_lt(x_41, x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_40); -lean_dec(x_38); -x_43 = lean_box(0); -x_44 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2(x_39, x_26, x_43, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_37); -return x_44; -} -else -{ -uint8_t x_45; -x_45 = lean_nat_dec_le(x_40, x_40); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -lean_dec(x_40); -lean_dec(x_38); -x_46 = lean_box(0); -x_47 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2(x_39, x_26, x_46, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_37); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_19, 0); +x_46 = lean_ctor_get(x_19, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_19); +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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_usize_of_nat(x_40); -lean_dec(x_40); -x_49 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10(x_38, x_25, x_48, x_26); -lean_dec(x_38); -x_50 = lean_box(0); -x_51 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2(x_39, x_49, x_50, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_37); -return x_51; +lean_object* x_11; +x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__2(x_1, x_2, x_3, x_4, 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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; } } -} -} -else +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__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]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +_start: { -uint8_t x_52; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); +size_t x_24; size_t x_25; lean_object* x_26; +x_24 = lean_unbox_usize(x_12); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_52 = !lean_is_exclusive(x_27); -if (x_52 == 0) -{ -return x_27; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_27, 0); -x_54 = lean_ctor_get(x_27, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_27); -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_56; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); +x_25 = lean_unbox_usize(x_13); lean_dec(x_13); -lean_dec(x_12); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24, x_25, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23); lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_18); -if (x_56 == 0) -{ -return x_18; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_18, 0); -x_58 = lean_ctor_get(x_18, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_18); -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; +return x_26; } } -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_object* x_13) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__2(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_17; -} -} -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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: -{ -lean_object* x_11; -x_11 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_addConstInfo___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5(x_1, x_2, x_3, x_4, 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_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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: -{ -lean_object* x_11; -x_11 = l_Lean_throwError___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__6(x_1, x_2, x_3, x_4, 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_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___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, 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: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_16 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__7(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__1(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -_start: -{ -uint8_t x_21; lean_object* x_22; -x_21 = lean_unbox(x_6); -lean_dec(x_6); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2(x_1, x_2, x_3, x_4, x_5, x_21, 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_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_22; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__3(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_4); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__5(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -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]; -lean_object* x_26 = _args[25]; -_start: -{ -uint8_t x_27; uint8_t x_28; lean_object* x_29; -x_27 = lean_unbox(x_4); -lean_dec(x_4); -x_28 = lean_unbox(x_7); -lean_dec(x_7); -x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6(x_1, x_2, x_3, x_27, x_5, x_6, x_28, 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, x_21, x_22, x_23, x_24, x_25, x_26); -lean_dec(x_16); -return x_29; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -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; uint8_t x_27; lean_object* x_28; -x_26 = lean_unbox(x_6); -lean_dec(x_6); -x_27 = lean_unbox(x_9); -lean_dec(x_9); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__7(x_1, x_2, x_3, x_4, x_5, x_26, x_7, x_8, x_27, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); -return x_28; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -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; uint8_t x_27; lean_object* x_28; -x_26 = lean_unbox(x_6); -lean_dec(x_6); -x_27 = lean_unbox(x_9); -lean_dec(x_9); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8(x_1, x_2, x_3, x_4, x_5, x_26, x_7, x_8, x_27, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); -return x_28; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__9___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]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -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; uint8_t x_27; lean_object* x_28; -x_26 = lean_unbox(x_13); -lean_dec(x_13); -x_27 = lean_unbox(x_15); -lean_dec(x_15); -x_28 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___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_26, x_14, x_27, x_16, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); -return x_28; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__10(x_1, x_2); +x_3 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__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]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__11(x_1); +lean_object* x_24; +x_24 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4(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, x_21, x_22, x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +return x_24; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__5(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; +return x_17; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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: +{ +lean_object* x_11; +x_11 = l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__1(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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_18; +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___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_16, x_17); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -14051,29 +16291,465 @@ x_22 = lean_unbox_usize(x_10); lean_dec(x_10); x_23 = lean_unbox_usize(x_11); lean_dec(x_11); -x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22, x_23, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22, x_23, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); return x_24; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___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_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_object* x_19; +x_19 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental(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); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Array_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__10(x_1, x_5, x_6, x_4); +return x_4; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_1, x_3); +x_8 = lean_array_get_size(x_2); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_dec(x_7); +lean_dec(x_3); +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_13 = 0; +x_14 = l_Lean_Syntax_getRange_x3f(x_7, x_13); +x_15 = lean_io_promise_result(x_10); +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_array_push(x_4, x_16); +x_3 = x_12; +x_4 = x_17; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_4, x_8); +if (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_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_4, x_10); +lean_dec(x_4); +x_12 = lean_array_fget(x_3, x_5); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +x_14 = lean_nat_add(x_5, x_10); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +x_17 = lean_array_push(x_7, x_16); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_17; +goto _start; +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Language_SnapshotTask_get___rarg(x_21); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +x_26 = lean_array_get_size(x_25); +x_27 = lean_nat_dec_lt(x_5, x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_25); +lean_dec(x_24); +lean_free_object(x_13); +lean_dec(x_5); +x_28 = lean_box(0); +lean_ctor_set(x_22, 1, x_12); +lean_ctor_set(x_22, 0, x_28); +x_29 = lean_array_push(x_7, x_22); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_29; +goto _start; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_array_fget(x_25, x_5); +lean_dec(x_5); +lean_dec(x_25); +x_32 = lean_ctor_get(x_24, 1); +lean_inc(x_32); +lean_dec(x_24); +lean_ctor_set(x_22, 1, x_31); +lean_ctor_set(x_22, 0, x_32); +lean_ctor_set(x_13, 0, x_22); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_13); +lean_ctor_set(x_33, 1, x_12); +x_34 = lean_array_push(x_7, x_33); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_34; +goto _start; +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_22, 0); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_22); +x_38 = lean_array_get_size(x_37); +x_39 = lean_nat_dec_lt(x_5, x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_37); +lean_dec(x_36); +lean_free_object(x_13); +lean_dec(x_5); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_12); +x_42 = lean_array_push(x_7, x_41); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_42; +goto _start; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_array_fget(x_37, x_5); +lean_dec(x_5); +lean_dec(x_37); +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); +lean_dec(x_36); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +lean_ctor_set(x_13, 0, x_46); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_13); +lean_ctor_set(x_47, 1, x_12); +x_48 = lean_array_push(x_7, x_47); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_48; +goto _start; +} +} +} +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; lean_object* x_56; uint8_t x_57; +x_50 = lean_ctor_get(x_13, 0); +lean_inc(x_50); +lean_dec(x_13); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = l_Lean_Language_SnapshotTask_get___rarg(x_51); +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_array_get_size(x_54); +x_57 = lean_nat_dec_lt(x_5, x_56); +lean_dec(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_5); +x_58 = lean_box(0); +if (lean_is_scalar(x_55)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_55; +} +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_12); +x_60 = lean_array_push(x_7, x_59); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_60; +goto _start; +} +else +{ +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_62 = lean_array_fget(x_54, x_5); +lean_dec(x_5); +lean_dec(x_54); +x_63 = lean_ctor_get(x_53, 1); +lean_inc(x_63); +lean_dec(x_53); +if (lean_is_scalar(x_55)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_55; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_12); +x_67 = lean_array_push(x_7, x_66); +x_4 = x_11; +x_5 = x_14; +x_6 = lean_box(0); +x_7 = x_67; +goto _start; +} +} +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___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_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_2, x_1); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +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; lean_object* x_22; +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_uset(x_3, x_2, x_15); +x_17 = lean_io_promise_new(x_12); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = lean_usize_add(x_2, x_20); +x_22 = lean_array_uset(x_16, x_2, x_18); +x_2 = x_21; +x_3 = x_22; +x_12 = x_19; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__5(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_4, x_3); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_1); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +lean_dec(x_5); +x_17 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_18 = lean_io_promise_resolve(x_1, x_17, x_14); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = lean_usize_add(x_4, x_20); +x_22 = lean_box(0); +x_4 = x_21; +x_5 = x_22; +x_14 = x_19; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__6(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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_4, x_3); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_1); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +lean_dec(x_5); +x_17 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_18 = lean_io_promise_resolve(x_1, x_17, x_14); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = lean_usize_add(x_4, x_20); +x_22 = lean_box(0); +x_4 = x_21; +x_5 = x_22; +x_14 = x_19; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; lean_object* x_25; +x_13 = l_List_iotaTR(x_2); +x_14 = l_List_redLength___rarg(x_13); +x_15 = lean_mk_empty_array_with_capacity(x_14); +lean_dec(x_14); +x_16 = l_List_toArrayAux___rarg(x_13, x_15); +x_17 = lean_array_get_size(x_16); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_19 = 0; +x_20 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__4(x_18, x_19, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_array_get_size(x_21); +x_24 = lean_usize_of_nat(x_23); +lean_dec(x_23); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_21); +x_25 = lean_apply_10(x_3, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +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_box(0); +x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__5(x_1, x_21, x_24, x_19, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -14081,12 +16757,573 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_21); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_26); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_26); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_34 = lean_ctor_get(x_25, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_25, 1); +lean_inc(x_35); +lean_dec(x_25); +x_36 = lean_box(0); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__6(x_1, x_21, x_24, x_19, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_21); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_34); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_34); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_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 = lean_io_promise_new(x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_13); +x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_io_promise_resolve(x_1, x_13, x_17); +lean_dec(x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_15, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_io_promise_resolve(x_1, x_13, x_24); +lean_dec(x_13); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_19; lean_object* x_20; +x_19 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; +x_20 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_20; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_Language_Snapshot_Diagnostics_empty; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +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; +x_21 = lean_box(2); +x_22 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__3; +lean_inc(x_1); +x_23 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_1); +lean_inc(x_2); +x_24 = lean_io_promise_result(x_2); +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1; +x_26 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +lean_ctor_set(x_26, 2, x_24); +x_27 = lean_unsigned_to_nat(0u); +x_28 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; +x_29 = l_Array_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__1(x_1, x_11, x_27, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_26); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_ctor_get(x_3, 1); +lean_inc(x_31); +x_32 = lean_io_promise_resolve(x_30, x_31, x_20); +lean_dec(x_31); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_array_get_size(x_11); +x_35 = lean_mk_empty_array_with_capacity(x_34); +x_36 = l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__2(x_3, x_11, x_11, x_34, x_27, lean_box(0), x_35); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_37 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental(x_4, x_5, x_6, x_1, x_7, x_8, x_9, x_10, x_36, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_33); +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; uint8_t x_44; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Elab_Tactic_saveState___rarg(x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_38); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_40); +x_43 = lean_io_promise_resolve(x_42, x_2, x_41); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 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_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_37); +if (x_48 == 0) +{ +return x_37; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_37, 0); +x_50 = lean_ctor_get(x_37, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_37); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19, lean_object* x_20) { +_start: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___boxed), 20, 10); +lean_closure_set(x_21, 0, x_1); +lean_closure_set(x_21, 1, x_11); +lean_closure_set(x_21, 2, x_2); +lean_closure_set(x_21, 3, x_3); +lean_closure_set(x_21, 4, x_4); +lean_closure_set(x_21, 5, x_5); +lean_closure_set(x_21, 6, x_6); +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_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; +x_23 = l_Lean_Language_withAlwaysResolvedPromises___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__3(x_22, x_10, x_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +return x_23; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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) { +_start: +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_array_get_size(x_4); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_nat_dec_lt(x_19, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_18); +x_21 = lean_box(0); +x_22 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_22; +} +else +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_11, 8); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_18); +x_24 = lean_box(0); +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +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_23, 0); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__3___boxed), 20, 10); +lean_closure_set(x_27, 0, x_4); +lean_closure_set(x_27, 1, x_26); +lean_closure_set(x_27, 2, x_1); +lean_closure_set(x_27, 3, x_2); +lean_closure_set(x_27, 4, x_3); +lean_closure_set(x_27, 5, x_5); +lean_closure_set(x_27, 6, x_6); +lean_closure_set(x_27, 7, x_7); +lean_closure_set(x_27, 8, x_8); +lean_closure_set(x_27, 9, x_18); +x_28 = l_Lean_Elab_Tactic_instInhabitedTacticFinished; +x_29 = l_Lean_Language_withAlwaysResolvedPromise___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__7(x_28, x_27, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_29, 0, x_32); +return x_29; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_29); +if (x_36 == 0) +{ +return x_29; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_29, 0); +x_38 = lean_ctor_get(x_29, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_29); +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_Array_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_zipWithAux___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_mapIdxM_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_3); lean_dec(x_2); -return x_12; +return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_14 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__4(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +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); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__5(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, 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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___spec__6(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, 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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__1___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: +{ +lean_object* x_19; +x_19 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_9); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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]; +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_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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_16, x_17, x_18, x_19, x_20); +lean_dec(x_11); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___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]; +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_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -14107,7 +17344,7 @@ lean_object* x_17 = _args[16]; _start: { lean_object* x_18; -x_18 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go(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 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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); return x_18; } } @@ -14140,7 +17377,7 @@ x_27 = lean_st_ref_set(x_17, x_20, x_22); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go(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_28); +x_29 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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_28); return x_29; } else @@ -14159,7 +17396,7 @@ x_33 = lean_st_ref_set(x_17, x_20, x_22); x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); -x_35 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go(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_34); +x_35 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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_34); return x_35; } } @@ -14210,7 +17447,7 @@ x_47 = lean_st_ref_set(x_17, x_46, x_22); x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); lean_dec(x_47); -x_49 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go(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_48); +x_49 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(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_48); return x_49; } } @@ -14240,7 +17477,7 @@ if (x_21 == 0) { lean_object* x_22; lean_dec(x_5); -x_22 = l_Lean_Elab_Tactic_ElimApp_evalAlts_go(x_1, x_2, x_3, x_4, 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_22 = l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo(x_1, x_2, x_3, x_4, 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); return x_22; } else @@ -14352,16 +17589,8 @@ return x_15; static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; x_2 = l_Lean_Elab_Tactic_evalAlt___lambda__3___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -14386,7 +17615,7 @@ x_16 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); lean_ctor_set(x_8, 5, x_16); -x_17 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2; +x_17 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; x_18 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -14463,7 +17692,7 @@ return x_42; } else { -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; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +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; uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; x_43 = lean_ctor_get(x_8, 0); x_44 = lean_ctor_get(x_8, 1); x_45 = lean_ctor_get(x_8, 2); @@ -14475,7 +17704,10 @@ x_50 = lean_ctor_get(x_8, 7); x_51 = lean_ctor_get(x_8, 8); x_52 = lean_ctor_get(x_8, 9); x_53 = lean_ctor_get(x_8, 10); -x_54 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_54 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_55 = lean_ctor_get(x_8, 11); +x_56 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_55); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); @@ -14488,82 +17720,84 @@ lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_dec(x_8); -x_55 = l_Lean_replaceRef(x_1, x_48); +x_57 = l_Lean_replaceRef(x_1, x_48); lean_dec(x_48); lean_dec(x_1); -x_56 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_56, 0, x_43); -lean_ctor_set(x_56, 1, x_44); -lean_ctor_set(x_56, 2, x_45); -lean_ctor_set(x_56, 3, x_46); -lean_ctor_set(x_56, 4, x_47); -lean_ctor_set(x_56, 5, x_55); -lean_ctor_set(x_56, 6, x_49); -lean_ctor_set(x_56, 7, x_50); -lean_ctor_set(x_56, 8, x_51); -lean_ctor_set(x_56, 9, x_52); -lean_ctor_set(x_56, 10, x_53); -lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_54); -x_57 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2; -x_58 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_56, x_9, x_10); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_unbox(x_59); -lean_dec(x_59); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_58, 1); +x_58 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_58, 0, x_43); +lean_ctor_set(x_58, 1, x_44); +lean_ctor_set(x_58, 2, x_45); +lean_ctor_set(x_58, 3, x_46); +lean_ctor_set(x_58, 4, x_47); +lean_ctor_set(x_58, 5, x_57); +lean_ctor_set(x_58, 6, x_49); +lean_ctor_set(x_58, 7, x_50); +lean_ctor_set(x_58, 8, x_51); +lean_ctor_set(x_58, 9, x_52); +lean_ctor_set(x_58, 10, x_53); +lean_ctor_set(x_58, 11, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*12, x_54); +lean_ctor_set_uint8(x_58, sizeof(void*)*12 + 1, x_56); +x_59 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +x_60 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_59, x_2, x_3, x_4, x_5, x_6, x_7, x_58, x_9, x_10); +x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_box(0); -x_63 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1(x_12, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_56, x_9, x_61); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_box(0); +x_65 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1(x_12, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_58, x_9, x_63); lean_dec(x_12); -return x_63; +return x_65; } 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; -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; +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; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_67 = x_60; } else { - lean_dec_ref(x_58); - x_65 = lean_box(0); + lean_dec_ref(x_60); + x_67 = lean_box(0); } lean_inc(x_12); -x_66 = l_Lean_MessageData_ofSyntax(x_12); -x_67 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; -if (lean_is_scalar(x_65)) { - x_68 = lean_alloc_ctor(6, 2, 0); +x_68 = l_Lean_MessageData_ofSyntax(x_12); +x_69 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; +if (lean_is_scalar(x_67)) { + x_70 = lean_alloc_ctor(6, 2, 0); } else { - x_68 = x_65; - lean_ctor_set_tag(x_68, 6); + x_70 = x_67; + lean_ctor_set_tag(x_70, 6); } -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -x_69 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_57, x_69, x_2, x_3, x_4, x_5, x_6, x_7, x_56, x_9, x_64); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1(x_12, x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_56, x_9, x_72); -lean_dec(x_71); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_59, x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_58, x_9, x_66); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1(x_12, x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_58, x_9, x_74); +lean_dec(x_73); lean_dec(x_12); -return x_73; +return x_75; } } } else { -lean_object* x_74; lean_object* x_75; +lean_object* x_76; lean_object* x_77; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -14574,11 +17808,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_74 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_10); -return x_75; +x_76 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_10); +return x_77; } } } @@ -15290,38 +18524,1106 @@ lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_2; -x_2 = l_Lean_Syntax_isNone(x_1); -if (x_2 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_1); +x_13 = lean_apply_1(x_1, x_3); +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_is_exclusive(x_10); +if (x_16 == 0) { -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Syntax_getArg(x_1, x_3); -x_5 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts(x_4); -lean_dec(x_4); -return x_5; +uint8_t x_17; +x_17 = !lean_is_exclusive(x_6); +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_10, 2); +x_19 = lean_ctor_get(x_10, 5); +x_20 = lean_ctor_get(x_6, 8); +x_21 = l_Lean_replaceRef(x_15, x_19); +lean_dec(x_19); +lean_inc(x_18); +lean_ctor_set(x_10, 5, x_21); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_22 = lean_box(0); +lean_ctor_set(x_6, 8, x_22); +x_23 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_23; } else { -lean_object* x_6; -x_6 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -return x_6; +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_25, 0, x_29); +x_30 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set(x_20, 0, x_33); +x_34 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_25); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_25, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_37, 0); +x_41 = lean_ctor_get(x_37, 1); +x_42 = lean_apply_1(x_1, x_40); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_43); +lean_dec(x_18); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +lean_free_object(x_37); +lean_dec(x_41); +lean_free_object(x_20); +x_47 = lean_box(0); +lean_ctor_set(x_25, 0, x_47); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_48 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_48; +} +else +{ +lean_object* x_49; +lean_ctor_set(x_37, 0, x_44); +x_49 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_49; +} +} +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; uint8_t x_56; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_apply_1(x_1, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_53); +lean_dec(x_18); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_51); +lean_free_object(x_20); +x_57 = lean_box(0); +lean_ctor_set(x_25, 0, x_57); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_58 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_26, 0, x_59); +x_60 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_60; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts___boxed(lean_object* x_1) { +else +{ +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; uint8_t x_70; +x_61 = lean_ctor_get(x_26, 0); +x_62 = lean_ctor_get(x_25, 1); +lean_inc(x_62); +lean_dec(x_25); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_65 = x_61; +} else { + lean_dec_ref(x_61); + x_65 = lean_box(0); +} +x_66 = lean_apply_1(x_1, x_63); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_67); +lean_dec(x_18); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_68); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_20); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_62); +lean_ctor_set(x_26, 0, x_72); +lean_ctor_set(x_6, 8, x_26); +x_73 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +if (lean_is_scalar(x_65)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_65; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_64); +lean_ctor_set(x_26, 0, x_74); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_26); +lean_ctor_set(x_75, 1, x_62); +lean_ctor_set(x_20, 0, x_75); +x_76 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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; uint8_t x_87; +x_77 = lean_ctor_get(x_26, 0); +lean_inc(x_77); +lean_dec(x_26); +x_78 = lean_ctor_get(x_25, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_79 = x_25; +} else { + lean_dec_ref(x_25); + x_79 = 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_apply_1(x_1, x_80); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_84); +lean_dec(x_18); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_81); +lean_free_object(x_20); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_6, 8, x_90); +x_91 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +if (lean_is_scalar(x_82)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_82; +} +lean_ctor_set(x_92, 0, x_85); +lean_ctor_set(x_92, 1, x_81); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_78); +lean_ctor_set(x_20, 0, x_94); +x_95 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_95; +} +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_20, 0); +lean_inc(x_96); +lean_dec(x_20); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +x_100 = lean_box(0); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_99; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_6, 8, x_102); +x_103 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_104 = lean_ctor_get(x_97, 0); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_105 = x_97; +} else { + lean_dec_ref(x_97); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_96, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_107 = x_96; +} else { + lean_dec_ref(x_96); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_110 = x_104; +} else { + lean_dec_ref(x_104); + x_110 = lean_box(0); +} +x_111 = lean_apply_1(x_1, x_108); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_112); +lean_dec(x_18); +x_115 = lean_unbox(x_114); +lean_dec(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_109); +x_116 = lean_box(0); +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); +if (lean_is_scalar(x_105)) { + x_118 = lean_alloc_ctor(1, 1, 0); +} else { + x_118 = x_105; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_6, 8, x_118); +x_119 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_110; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_109); +if (lean_is_scalar(x_105)) { + x_121 = lean_alloc_ctor(1, 1, 0); +} else { + x_121 = x_105; +} +lean_ctor_set(x_121, 0, x_120); +if (lean_is_scalar(x_107)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_107; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_106); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_6, 8, x_123); +x_124 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_124; +} +} +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; +x_125 = lean_ctor_get(x_10, 2); +x_126 = lean_ctor_get(x_10, 5); +x_127 = lean_ctor_get(x_6, 0); +x_128 = lean_ctor_get(x_6, 1); +x_129 = lean_ctor_get(x_6, 2); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_132 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_133 = lean_ctor_get(x_6, 3); +x_134 = lean_ctor_get(x_6, 4); +x_135 = lean_ctor_get(x_6, 5); +x_136 = lean_ctor_get(x_6, 6); +x_137 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_138 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_139 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_140 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_141 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_142 = lean_ctor_get(x_6, 7); +x_143 = lean_ctor_get(x_6, 8); +x_144 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_145 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_inc(x_133); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_6); +x_146 = l_Lean_replaceRef(x_15, x_126); +lean_dec(x_126); +lean_inc(x_125); +lean_ctor_set(x_10, 5, x_146); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_148, 0, x_127); +lean_ctor_set(x_148, 1, x_128); +lean_ctor_set(x_148, 2, x_129); +lean_ctor_set(x_148, 3, x_133); +lean_ctor_set(x_148, 4, x_134); +lean_ctor_set(x_148, 5, x_135); +lean_ctor_set(x_148, 6, x_136); +lean_ctor_set(x_148, 7, x_142); +lean_ctor_set(x_148, 8, x_147); +lean_ctor_set_uint8(x_148, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 9, x_145); +x_149 = lean_apply_10(x_2, x_15, x_4, x_5, x_148, x_7, x_8, x_9, x_10, x_11, x_12); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_143, 0); +lean_inc(x_150); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + x_151 = x_143; +} else { + lean_dec_ref(x_143); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) +{ +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_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +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_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +if (lean_is_scalar(x_151)) { + x_157 = lean_alloc_ctor(1, 1, 0); +} else { + x_157 = x_151; +} +lean_ctor_set(x_157, 0, x_156); +x_158 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_158, 0, x_127); +lean_ctor_set(x_158, 1, x_128); +lean_ctor_set(x_158, 2, x_129); +lean_ctor_set(x_158, 3, x_133); +lean_ctor_set(x_158, 4, x_134); +lean_ctor_set(x_158, 5, x_135); +lean_ctor_set(x_158, 6, x_136); +lean_ctor_set(x_158, 7, x_142); +lean_ctor_set(x_158, 8, x_157); +lean_ctor_set_uint8(x_158, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 9, x_145); +x_159 = lean_apply_10(x_2, x_15, x_4, x_5, x_158, x_7, x_8, x_9, x_10, x_11, x_12); +return x_159; +} +else +{ +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; uint8_t x_171; +x_160 = lean_ctor_get(x_152, 0); +lean_inc(x_160); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + x_161 = x_152; +} else { + lean_dec_ref(x_152); + x_161 = lean_box(0); +} +x_162 = lean_ctor_get(x_150, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_163 = x_150; +} else { + lean_dec_ref(x_150); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_166 = x_160; +} else { + lean_dec_ref(x_160); + x_166 = lean_box(0); +} +x_167 = lean_apply_1(x_1, x_164); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_125, x_14, x_168); +lean_dec(x_125); +x_171 = lean_unbox(x_170); +lean_dec(x_170); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_169); +lean_dec(x_166); +lean_dec(x_165); +lean_dec(x_151); +x_172 = lean_box(0); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_163; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_162); +if (lean_is_scalar(x_161)) { + x_174 = lean_alloc_ctor(1, 1, 0); +} else { + x_174 = x_161; +} +lean_ctor_set(x_174, 0, x_173); +x_175 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_175, 0, x_127); +lean_ctor_set(x_175, 1, x_128); +lean_ctor_set(x_175, 2, x_129); +lean_ctor_set(x_175, 3, x_133); +lean_ctor_set(x_175, 4, x_134); +lean_ctor_set(x_175, 5, x_135); +lean_ctor_set(x_175, 6, x_136); +lean_ctor_set(x_175, 7, x_142); +lean_ctor_set(x_175, 8, x_174); +lean_ctor_set_uint8(x_175, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 9, x_145); +x_176 = lean_apply_10(x_2, x_15, x_4, x_5, x_175, x_7, x_8, x_9, x_10, x_11, x_12); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +if (lean_is_scalar(x_166)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { + x_177 = x_166; +} +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_165); +if (lean_is_scalar(x_161)) { + x_178 = lean_alloc_ctor(1, 1, 0); +} else { + x_178 = x_161; +} +lean_ctor_set(x_178, 0, x_177); +if (lean_is_scalar(x_163)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_163; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_162); +if (lean_is_scalar(x_151)) { + x_180 = lean_alloc_ctor(1, 1, 0); +} else { + x_180 = x_151; +} +lean_ctor_set(x_180, 0, x_179); +x_181 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_181, 0, x_127); +lean_ctor_set(x_181, 1, x_128); +lean_ctor_set(x_181, 2, x_129); +lean_ctor_set(x_181, 3, x_133); +lean_ctor_set(x_181, 4, x_134); +lean_ctor_set(x_181, 5, x_135); +lean_ctor_set(x_181, 6, x_136); +lean_ctor_set(x_181, 7, x_142); +lean_ctor_set(x_181, 8, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 9, x_145); +x_182 = lean_apply_10(x_2, x_15, x_4, x_5, x_181, x_7, x_8, x_9, x_10, x_11, x_12); +return x_182; +} +} +} +} +} +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_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_183 = lean_ctor_get(x_10, 0); +x_184 = lean_ctor_get(x_10, 1); +x_185 = lean_ctor_get(x_10, 2); +x_186 = lean_ctor_get(x_10, 3); +x_187 = lean_ctor_get(x_10, 4); +x_188 = lean_ctor_get(x_10, 5); +x_189 = lean_ctor_get(x_10, 6); +x_190 = lean_ctor_get(x_10, 7); +x_191 = lean_ctor_get(x_10, 8); +x_192 = lean_ctor_get(x_10, 9); +x_193 = lean_ctor_get(x_10, 10); +x_194 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_195 = lean_ctor_get(x_10, 11); +x_196 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_195); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_10); +x_197 = lean_ctor_get(x_6, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_6, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_6, 2); +lean_inc(x_199); +x_200 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_201 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_202 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_203 = lean_ctor_get(x_6, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_6, 4); +lean_inc(x_204); +x_205 = lean_ctor_get(x_6, 5); +lean_inc(x_205); +x_206 = lean_ctor_get(x_6, 6); +lean_inc(x_206); +x_207 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_208 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_209 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_210 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_211 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_212 = lean_ctor_get(x_6, 7); +lean_inc(x_212); +x_213 = lean_ctor_get(x_6, 8); +lean_inc(x_213); +x_214 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_215 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_6, 4); + lean_ctor_release(x_6, 5); + lean_ctor_release(x_6, 6); + lean_ctor_release(x_6, 7); + lean_ctor_release(x_6, 8); + x_216 = x_6; +} else { + lean_dec_ref(x_6); + x_216 = lean_box(0); +} +x_217 = l_Lean_replaceRef(x_15, x_188); +lean_dec(x_188); +lean_inc(x_185); +x_218 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_218, 0, x_183); +lean_ctor_set(x_218, 1, x_184); +lean_ctor_set(x_218, 2, x_185); +lean_ctor_set(x_218, 3, x_186); +lean_ctor_set(x_218, 4, x_187); +lean_ctor_set(x_218, 5, x_217); +lean_ctor_set(x_218, 6, x_189); +lean_ctor_set(x_218, 7, x_190); +lean_ctor_set(x_218, 8, x_191); +lean_ctor_set(x_218, 9, x_192); +lean_ctor_set(x_218, 10, x_193); +lean_ctor_set(x_218, 11, x_195); +lean_ctor_set_uint8(x_218, sizeof(void*)*12, x_194); +lean_ctor_set_uint8(x_218, sizeof(void*)*12 + 1, x_196); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +x_219 = lean_box(0); +if (lean_is_scalar(x_216)) { + x_220 = lean_alloc_ctor(0, 9, 10); +} else { + x_220 = x_216; +} +lean_ctor_set(x_220, 0, x_197); +lean_ctor_set(x_220, 1, x_198); +lean_ctor_set(x_220, 2, x_199); +lean_ctor_set(x_220, 3, x_203); +lean_ctor_set(x_220, 4, x_204); +lean_ctor_set(x_220, 5, x_205); +lean_ctor_set(x_220, 6, x_206); +lean_ctor_set(x_220, 7, x_212); +lean_ctor_set(x_220, 8, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 9, x_215); +x_221 = lean_apply_10(x_2, x_15, x_4, x_5, x_220, x_7, x_8, x_9, x_218, x_11, x_12); +return x_221; +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + x_223 = x_213; +} else { + lean_dec_ref(x_213); + x_223 = lean_box(0); +} +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +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); +} +x_227 = lean_box(0); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +if (lean_is_scalar(x_223)) { + x_229 = lean_alloc_ctor(1, 1, 0); +} else { + x_229 = x_223; +} +lean_ctor_set(x_229, 0, x_228); +if (lean_is_scalar(x_216)) { + x_230 = lean_alloc_ctor(0, 9, 10); +} else { + x_230 = x_216; +} +lean_ctor_set(x_230, 0, x_197); +lean_ctor_set(x_230, 1, x_198); +lean_ctor_set(x_230, 2, x_199); +lean_ctor_set(x_230, 3, x_203); +lean_ctor_set(x_230, 4, x_204); +lean_ctor_set(x_230, 5, x_205); +lean_ctor_set(x_230, 6, x_206); +lean_ctor_set(x_230, 7, x_212); +lean_ctor_set(x_230, 8, x_229); +lean_ctor_set_uint8(x_230, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 9, x_215); +x_231 = lean_apply_10(x_2, x_15, x_4, x_5, x_230, x_7, x_8, x_9, x_218, x_11, x_12); +return x_231; +} +else +{ +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; uint8_t x_243; +x_232 = lean_ctor_get(x_224, 0); +lean_inc(x_232); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + x_233 = x_224; +} else { + lean_dec_ref(x_224); + x_233 = lean_box(0); +} +x_234 = lean_ctor_get(x_222, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_235 = x_222; +} else { + lean_dec_ref(x_222); + x_235 = lean_box(0); +} +x_236 = lean_ctor_get(x_232, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_232, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_238 = x_232; +} else { + lean_dec_ref(x_232); + x_238 = lean_box(0); +} +x_239 = lean_apply_1(x_1, x_236); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_185, x_14, x_240); +lean_dec(x_185); +x_243 = lean_unbox(x_242); +lean_dec(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_241); +lean_dec(x_238); +lean_dec(x_237); +lean_dec(x_223); +x_244 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_245 = lean_alloc_ctor(0, 2, 0); +} else { + x_245 = x_235; +} +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_234); +if (lean_is_scalar(x_233)) { + x_246 = lean_alloc_ctor(1, 1, 0); +} else { + x_246 = x_233; +} +lean_ctor_set(x_246, 0, x_245); +if (lean_is_scalar(x_216)) { + x_247 = lean_alloc_ctor(0, 9, 10); +} else { + x_247 = x_216; +} +lean_ctor_set(x_247, 0, x_197); +lean_ctor_set(x_247, 1, x_198); +lean_ctor_set(x_247, 2, x_199); +lean_ctor_set(x_247, 3, x_203); +lean_ctor_set(x_247, 4, x_204); +lean_ctor_set(x_247, 5, x_205); +lean_ctor_set(x_247, 6, x_206); +lean_ctor_set(x_247, 7, x_212); +lean_ctor_set(x_247, 8, x_246); +lean_ctor_set_uint8(x_247, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 9, x_215); +x_248 = lean_apply_10(x_2, x_15, x_4, x_5, x_247, x_7, x_8, x_9, x_218, x_11, x_12); +return x_248; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +if (lean_is_scalar(x_238)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_238; +} +lean_ctor_set(x_249, 0, x_241); +lean_ctor_set(x_249, 1, x_237); +if (lean_is_scalar(x_233)) { + x_250 = lean_alloc_ctor(1, 1, 0); +} else { + x_250 = x_233; +} +lean_ctor_set(x_250, 0, x_249); +if (lean_is_scalar(x_235)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_235; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_234); +if (lean_is_scalar(x_223)) { + x_252 = lean_alloc_ctor(1, 1, 0); +} else { + x_252 = x_223; +} +lean_ctor_set(x_252, 0, x_251); +if (lean_is_scalar(x_216)) { + x_253 = lean_alloc_ctor(0, 9, 10); +} else { + x_253 = x_216; +} +lean_ctor_set(x_253, 0, x_197); +lean_ctor_set(x_253, 1, x_198); +lean_ctor_set(x_253, 2, x_199); +lean_ctor_set(x_253, 3, x_203); +lean_ctor_set(x_253, 4, x_204); +lean_ctor_set(x_253, 5, x_205); +lean_ctor_set(x_253, 6, x_206); +lean_ctor_set(x_253, 7, x_212); +lean_ctor_set(x_253, 8, x_252); +lean_ctor_set_uint8(x_253, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 9, x_215); +x_254 = lean_apply_10(x_2, x_15, x_4, x_5, x_253, x_7, x_8, x_9, x_218, x_11, x_12); +return x_254; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(x_1); -lean_dec(x_1); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1___rarg), 12, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -15335,6 +19637,106 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } +static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Syntax_isNone(x_1); +if (x_2 == 0) +{ +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; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Syntax_getArg(x_1, x_3); +x_5 = l_Lean_Syntax_getArgs(x_4); +x_6 = lean_unsigned_to_nat(2u); +x_7 = l_Array_toSubarray___rarg(x_5, x_3, x_6); +x_8 = l_Array_ofSubarray___rarg(x_7); +x_9 = lean_box(2); +x_10 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__3; +x_11 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_11, 2, x_8); +x_12 = l_Lean_Syntax_getArg(x_4, x_6); +lean_dec(x_4); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +else +{ +lean_object* x_14; +x_14 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2; +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___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; +x_12 = l_Lean_Syntax_getArgs(x_2); +x_13 = lean_apply_10(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___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_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__2___boxed), 11, 1); +lean_closure_set(x_12, 0, x_2); +x_13 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1; +x_14 = l_Lean_Elab_Term_withNarrowedTacticReuse___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___spec__1___rarg(x_13, x_12, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg), 11, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___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: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__2(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_2); +return x_12; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(lean_object* x_1) { _start: { @@ -15353,7 +19755,7 @@ return x_6; else { lean_object* x_7; -x_7 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1; +x_7 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1; return x_7; } } @@ -16965,7 +21367,7 @@ lean_dec(x_2); return x_10; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1() { _start: { lean_object* x_1; @@ -16973,7 +21375,7 @@ x_1 = lean_mk_string_from_bytes("tactic", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2() { _start: { lean_object* x_1; @@ -16981,17 +21383,17 @@ x_1 = lean_mk_string_from_bytes("customEliminators", 17); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4() { _start: { lean_object* x_1; @@ -16999,13 +21401,13 @@ x_1 = lean_mk_string_from_bytes("enable using custom eliminators in the 'inducti return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 1; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -17014,7 +21416,7 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6() { _start: { lean_object* x_1; @@ -17022,26 +21424,26 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7() { _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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; -x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1; -x_5 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1; +x_5 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2; x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5; -x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7; x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(x_2, x_3, x_4, x_1); return x_5; } @@ -17165,7 +21567,7 @@ return x_16; } else { -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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_17 = lean_ctor_get(x_10, 0); x_18 = lean_ctor_get(x_10, 1); x_19 = lean_ctor_get(x_10, 2); @@ -17177,7 +21579,10 @@ x_24 = lean_ctor_get(x_10, 7); x_25 = lean_ctor_get(x_10, 8); x_26 = lean_ctor_get(x_10, 9); x_27 = lean_ctor_get(x_10, 10); -x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_29 = lean_ctor_get(x_10, 11); +x_30 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_29); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); @@ -17190,23 +21595,25 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_10); -x_29 = l_Lean_replaceRef(x_1, x_22); +x_31 = l_Lean_replaceRef(x_1, x_22); lean_dec(x_22); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_18); -lean_ctor_set(x_30, 2, x_19); -lean_ctor_set(x_30, 3, x_20); -lean_ctor_set(x_30, 4, x_21); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -lean_ctor_set(x_30, 7, x_24); -lean_ctor_set(x_30, 8, x_25); -lean_ctor_set(x_30, 9, x_26); -lean_ctor_set(x_30, 10, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_28); -x_31 = l_Lean_Meta_getElimExprInfo(x_2, x_3, x_8, x_9, x_30, x_11, x_12); -return x_31; +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_19); +lean_ctor_set(x_32, 3, x_20); +lean_ctor_set(x_32, 4, x_21); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_23); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_25); +lean_ctor_set(x_32, 9, x_26); +lean_ctor_set(x_32, 10, x_27); +lean_ctor_set(x_32, 11, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_30); +x_33 = l_Lean_Meta_getElimExprInfo(x_2, x_3, x_8, x_9, x_32, x_11, x_12); +return x_33; } } } @@ -17618,7 +22025,7 @@ uint8_t x_13; x_13 = l_Lean_Syntax_isNone(x_1); if (x_13 == 0) { -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; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +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; uint8_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_2); x_14 = lean_unsigned_to_nat(1u); x_15 = l_Lean_Syntax_getArg(x_1, x_14); @@ -17645,93 +22052,83 @@ x_25 = lean_ctor_get(x_10, 9); lean_inc(x_25); x_26 = lean_ctor_get(x_10, 10); lean_inc(x_26); -x_27 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_28 = l_Lean_replaceRef(x_15, x_21); +x_27 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_28 = lean_ctor_get(x_10, 11); +lean_inc(x_28); +x_29 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_30 = l_Lean_replaceRef(x_15, x_21); lean_dec(x_21); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); lean_inc(x_11); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_15); -x_30 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim(x_15, x_6, x_7, x_8, x_9, x_29, x_11, x_12); -if (lean_obj_tag(x_30) == 0) +x_32 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim(x_15, x_6, x_7, x_8, x_9, x_31, x_11, x_12); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_Expr_getAppFn(x_31); -x_34 = l_Lean_Expr_constName_x3f(x_33); -lean_dec(x_33); -if (lean_obj_tag(x_34) == 0) +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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 = l_Lean_Expr_getAppFn(x_33); +x_36 = l_Lean_Expr_constName_x3f(x_35); +lean_dec(x_35); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_35; lean_object* x_36; -x_35 = lean_box(0); -x_36 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_31, x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +lean_object* x_37; lean_object* x_38; +x_37 = lean_box(0); +x_38 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_33, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_34); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_15); -return x_36; +return x_38; } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_34); -if (x_37 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_38 = lean_ctor_get(x_34, 0); -x_39 = l_Lean_Name_getPrefix(x_38); -lean_dec(x_38); -lean_inc(x_39); -x_40 = l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__1(x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_40 = lean_ctor_get(x_36, 0); +x_41 = l_Lean_Name_getPrefix(x_40); +lean_dec(x_40); lean_inc(x_41); -x_42 = lean_unbox(x_41); -lean_dec(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_39); -lean_free_object(x_34); -x_43 = lean_ctor_get(x_40, 1); +x_42 = l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__1(x_41, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec(x_40); -x_44 = lean_box(0); -x_45 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_31, x_44, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_15); -return x_45; -} -else +x_44 = lean_unbox(x_43); +lean_dec(x_43); +if (x_44 == 0) { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_dec(x_40); -lean_ctor_set(x_34, 0, x_39); -x_47 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_31, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_41); +lean_free_object(x_36); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_box(0); +x_47 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_33, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -17739,59 +22136,74 @@ lean_dec(x_4); lean_dec(x_15); return x_47; } -} else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_48 = lean_ctor_get(x_34, 0); +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_42, 1); lean_inc(x_48); -lean_dec(x_34); -x_49 = l_Lean_Name_getPrefix(x_48); -lean_dec(x_48); -lean_inc(x_49); -x_50 = l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__1(x_49, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); -x_51 = lean_ctor_get(x_50, 0); +lean_dec(x_42); +lean_ctor_set(x_36, 0, x_41); +x_49 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_33, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_48); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_15); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_50 = lean_ctor_get(x_36, 0); +lean_inc(x_50); +lean_dec(x_36); +x_51 = l_Lean_Name_getPrefix(x_50); +lean_dec(x_50); lean_inc(x_51); -x_52 = lean_unbox(x_51); -lean_dec(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_49); -x_53 = lean_ctor_get(x_50, 1); +x_52 = l_Lean_isInductive___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__1(x_51, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_box(0); -x_55 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_31, x_54, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +x_54 = lean_unbox(x_53); +lean_dec(x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_51); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_box(0); +x_57 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_33, x_56, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_55); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_15); -return x_55; +return x_57; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_dec(x_50); -x_57 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_57, 0, x_49); -x_58 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_31, x_57, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_56); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +lean_dec(x_52); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_51); +x_60 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__1(x_15, x_33, x_59, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_58); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_15); -return x_58; +return x_60; } } } } else { -uint8_t x_59; +uint8_t x_61; lean_dec(x_15); lean_dec(x_11); lean_dec(x_10); @@ -17801,131 +22213,131 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_59 = !lean_is_exclusive(x_30); -if (x_59 == 0) +x_61 = !lean_is_exclusive(x_32); +if (x_61 == 0) { -return x_30; +return x_32; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_30, 0); -x_61 = lean_ctor_get(x_30, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_30); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -} -else -{ -lean_object* x_63; lean_object* x_64; uint8_t x_65; -lean_dec(x_1); -x_63 = lean_ctor_get(x_10, 2); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_32, 0); +x_63 = lean_ctor_get(x_32, 1); lean_inc(x_63); -x_64 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___closed__1; -x_65 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_63, x_64); -lean_dec(x_63); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_box(0); -x_67 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5(x_3, x_2, x_66, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_67; +lean_inc(x_62); +lean_dec(x_32); +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_68; +lean_object* x_65; lean_object* x_66; uint8_t x_67; +lean_dec(x_1); +x_65 = lean_ctor_get(x_10, 2); +lean_inc(x_65); +x_66 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___closed__1; +x_67 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_65, x_66); +lean_dec(x_65); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_box(0); +x_69 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5(x_3, x_2, x_68, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_69; +} +else +{ +lean_object* x_70; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_68 = l_Lean_Meta_getCustomEliminator_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_68) == 0) +x_70 = l_Lean_Meta_getCustomEliminator_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_69; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -if (lean_obj_tag(x_69) == 0) +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_box(0); -x_72 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5(x_3, x_2, x_71, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_70); -return x_72; +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_box(0); +x_74 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___lambda__5(x_3, x_2, x_73, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_72); +return x_74; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = lean_ctor_get(x_69, 0); -lean_inc(x_74); -lean_dec(x_69); -x_75 = lean_box(0); -x_76 = l_Lean_Meta_getElimInfo(x_74, x_75, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_76) == 0) +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = lean_ctor_get(x_71, 0); +lean_inc(x_76); +lean_dec(x_71); +x_77 = lean_box(0); +x_78 = l_Lean_Meta_getElimInfo(x_76, x_77, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_78) == 0) { -uint8_t x_77; -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) +uint8_t x_79; +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) { -return x_76; +return x_78; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_76, 0); -x_79 = lean_ctor_get(x_76, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_76); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_78, 0); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_inc(x_80); +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); +return x_82; } } else { -uint8_t x_81; -x_81 = !lean_is_exclusive(x_76); -if (x_81 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_78); +if (x_83 == 0) { -return x_76; +return x_78; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_76, 0); -x_83 = lean_ctor_get(x_76, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_76); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_78, 0); +x_85 = lean_ctor_get(x_78, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_78); +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 { -uint8_t x_85; +uint8_t x_87; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -17935,23 +22347,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_85 = !lean_is_exclusive(x_68); -if (x_85 == 0) +x_87 = !lean_is_exclusive(x_70); +if (x_87 == 0) { -return x_68; +return x_70; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_68, 0); -x_87 = lean_ctor_get(x_68, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_68); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_70, 0); +x_89 = lean_ctor_get(x_70, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_70); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } @@ -18698,6 +23110,27 @@ lean_dec(x_1); return x_10; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; +x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; +x_4 = l_Lean_Elab_Tactic_evalAlt___lambda__3___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___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: { @@ -19245,37 +23678,1145 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalInduction___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_1); +x_13 = lean_apply_1(x_1, x_3); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_inc(x_3); -lean_inc(x_2); -x_20 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg(x_2, x_19, x_3, x_14, x_15, x_16, x_17, x_18); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_10); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_6); +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_10, 2); +x_19 = lean_ctor_get(x_10, 5); +x_20 = lean_ctor_get(x_6, 8); +x_21 = l_Lean_replaceRef(x_15, x_19); +lean_dec(x_19); +lean_inc(x_18); +lean_ctor_set(x_10, 5, x_21); 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_28; lean_object* x_29; +lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_22 = lean_box(0); +lean_ctor_set(x_6, 8, x_22); +x_23 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_25, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_25, 0, x_29); +x_30 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set(x_20, 0, x_33); +x_34 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_25); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_25, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_37, 0); +x_41 = lean_ctor_get(x_37, 1); +x_42 = lean_apply_1(x_1, x_40); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_43); +lean_dec(x_18); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +lean_free_object(x_37); +lean_dec(x_41); +lean_free_object(x_20); +x_47 = lean_box(0); +lean_ctor_set(x_25, 0, x_47); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_48 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_48; +} +else +{ +lean_object* x_49; +lean_ctor_set(x_37, 0, x_44); +x_49 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_49; +} +} +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; uint8_t x_56; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_apply_1(x_1, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_53); +lean_dec(x_18); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_54); +lean_dec(x_51); +lean_free_object(x_20); +x_57 = lean_box(0); +lean_ctor_set(x_25, 0, x_57); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_6, 8, x_26); +x_58 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_51); +lean_ctor_set(x_26, 0, x_59); +x_60 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_60; +} +} +} +else +{ +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; uint8_t x_70; +x_61 = lean_ctor_get(x_26, 0); +x_62 = lean_ctor_get(x_25, 1); +lean_inc(x_62); +lean_dec(x_25); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_65 = x_61; +} else { + lean_dec_ref(x_61); + x_65 = lean_box(0); +} +x_66 = lean_apply_1(x_1, x_63); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_67); +lean_dec(x_18); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_68); +lean_dec(x_65); +lean_dec(x_64); +lean_free_object(x_20); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_62); +lean_ctor_set(x_26, 0, x_72); +lean_ctor_set(x_6, 8, x_26); +x_73 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +if (lean_is_scalar(x_65)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_65; +} +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_64); +lean_ctor_set(x_26, 0, x_74); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_26); +lean_ctor_set(x_75, 1, x_62); +lean_ctor_set(x_20, 0, x_75); +x_76 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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; uint8_t x_87; +x_77 = lean_ctor_get(x_26, 0); +lean_inc(x_77); +lean_dec(x_26); +x_78 = lean_ctor_get(x_25, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_79 = x_25; +} else { + lean_dec_ref(x_25); + x_79 = 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_apply_1(x_1, x_80); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_84); +lean_dec(x_18); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_82); +lean_dec(x_81); +lean_free_object(x_20); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_6, 8, x_90); +x_91 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +if (lean_is_scalar(x_82)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_82; +} +lean_ctor_set(x_92, 0, x_85); +lean_ctor_set(x_92, 1, x_81); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_92); +if (lean_is_scalar(x_79)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_79; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_78); +lean_ctor_set(x_20, 0, x_94); +x_95 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_95; +} +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_20, 0); +lean_inc(x_96); +lean_dec(x_20); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_1); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +x_100 = lean_box(0); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); +} else { + x_101 = x_99; +} +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_6, 8, x_102); +x_103 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_104 = lean_ctor_get(x_97, 0); +lean_inc(x_104); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + x_105 = x_97; +} else { + lean_dec_ref(x_97); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_96, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_107 = x_96; +} else { + lean_dec_ref(x_96); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_104, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_110 = x_104; +} else { + lean_dec_ref(x_104); + x_110 = lean_box(0); +} +x_111 = lean_apply_1(x_1, x_108); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_18, x_14, x_112); +lean_dec(x_18); +x_115 = lean_unbox(x_114); +lean_dec(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_109); +x_116 = lean_box(0); +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); +if (lean_is_scalar(x_105)) { + x_118 = lean_alloc_ctor(1, 1, 0); +} else { + x_118 = x_105; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_6, 8, x_118); +x_119 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_110; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_109); +if (lean_is_scalar(x_105)) { + x_121 = lean_alloc_ctor(1, 1, 0); +} else { + x_121 = x_105; +} +lean_ctor_set(x_121, 0, x_120); +if (lean_is_scalar(x_107)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_107; +} +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_106); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_6, 8, x_123); +x_124 = lean_apply_10(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_124; +} +} +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; +x_125 = lean_ctor_get(x_10, 2); +x_126 = lean_ctor_get(x_10, 5); +x_127 = lean_ctor_get(x_6, 0); +x_128 = lean_ctor_get(x_6, 1); +x_129 = lean_ctor_get(x_6, 2); +x_130 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_132 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_133 = lean_ctor_get(x_6, 3); +x_134 = lean_ctor_get(x_6, 4); +x_135 = lean_ctor_get(x_6, 5); +x_136 = lean_ctor_get(x_6, 6); +x_137 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_138 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_139 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_140 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_141 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_142 = lean_ctor_get(x_6, 7); +x_143 = lean_ctor_get(x_6, 8); +x_144 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_145 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_inc(x_133); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_6); +x_146 = l_Lean_replaceRef(x_15, x_126); +lean_dec(x_126); +lean_inc(x_125); +lean_ctor_set(x_10, 5, x_146); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_148, 0, x_127); +lean_ctor_set(x_148, 1, x_128); +lean_ctor_set(x_148, 2, x_129); +lean_ctor_set(x_148, 3, x_133); +lean_ctor_set(x_148, 4, x_134); +lean_ctor_set(x_148, 5, x_135); +lean_ctor_set(x_148, 6, x_136); +lean_ctor_set(x_148, 7, x_142); +lean_ctor_set(x_148, 8, x_147); +lean_ctor_set_uint8(x_148, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_148, sizeof(void*)*9 + 9, x_145); +x_149 = lean_apply_10(x_2, x_15, x_4, x_5, x_148, x_7, x_8, x_9, x_10, x_11, x_12); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_143, 0); +lean_inc(x_150); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + x_151 = x_143; +} else { + lean_dec_ref(x_143); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) +{ +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_dec(x_125); +lean_dec(x_14); +lean_dec(x_1); +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_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +if (lean_is_scalar(x_151)) { + x_157 = lean_alloc_ctor(1, 1, 0); +} else { + x_157 = x_151; +} +lean_ctor_set(x_157, 0, x_156); +x_158 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_158, 0, x_127); +lean_ctor_set(x_158, 1, x_128); +lean_ctor_set(x_158, 2, x_129); +lean_ctor_set(x_158, 3, x_133); +lean_ctor_set(x_158, 4, x_134); +lean_ctor_set(x_158, 5, x_135); +lean_ctor_set(x_158, 6, x_136); +lean_ctor_set(x_158, 7, x_142); +lean_ctor_set(x_158, 8, x_157); +lean_ctor_set_uint8(x_158, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_158, sizeof(void*)*9 + 9, x_145); +x_159 = lean_apply_10(x_2, x_15, x_4, x_5, x_158, x_7, x_8, x_9, x_10, x_11, x_12); +return x_159; +} +else +{ +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; uint8_t x_171; +x_160 = lean_ctor_get(x_152, 0); +lean_inc(x_160); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + x_161 = x_152; +} else { + lean_dec_ref(x_152); + x_161 = lean_box(0); +} +x_162 = lean_ctor_get(x_150, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_163 = x_150; +} else { + lean_dec_ref(x_150); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_160, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_160, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_166 = x_160; +} else { + lean_dec_ref(x_160); + x_166 = lean_box(0); +} +x_167 = lean_apply_1(x_1, x_164); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_125, x_14, x_168); +lean_dec(x_125); +x_171 = lean_unbox(x_170); +lean_dec(x_170); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_169); +lean_dec(x_166); +lean_dec(x_165); +lean_dec(x_151); +x_172 = lean_box(0); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_163; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_162); +if (lean_is_scalar(x_161)) { + x_174 = lean_alloc_ctor(1, 1, 0); +} else { + x_174 = x_161; +} +lean_ctor_set(x_174, 0, x_173); +x_175 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_175, 0, x_127); +lean_ctor_set(x_175, 1, x_128); +lean_ctor_set(x_175, 2, x_129); +lean_ctor_set(x_175, 3, x_133); +lean_ctor_set(x_175, 4, x_134); +lean_ctor_set(x_175, 5, x_135); +lean_ctor_set(x_175, 6, x_136); +lean_ctor_set(x_175, 7, x_142); +lean_ctor_set(x_175, 8, x_174); +lean_ctor_set_uint8(x_175, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_175, sizeof(void*)*9 + 9, x_145); +x_176 = lean_apply_10(x_2, x_15, x_4, x_5, x_175, x_7, x_8, x_9, x_10, x_11, x_12); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +if (lean_is_scalar(x_166)) { + x_177 = lean_alloc_ctor(0, 2, 0); +} else { + x_177 = x_166; +} +lean_ctor_set(x_177, 0, x_169); +lean_ctor_set(x_177, 1, x_165); +if (lean_is_scalar(x_161)) { + x_178 = lean_alloc_ctor(1, 1, 0); +} else { + x_178 = x_161; +} +lean_ctor_set(x_178, 0, x_177); +if (lean_is_scalar(x_163)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_163; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_162); +if (lean_is_scalar(x_151)) { + x_180 = lean_alloc_ctor(1, 1, 0); +} else { + x_180 = x_151; +} +lean_ctor_set(x_180, 0, x_179); +x_181 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_181, 0, x_127); +lean_ctor_set(x_181, 1, x_128); +lean_ctor_set(x_181, 2, x_129); +lean_ctor_set(x_181, 3, x_133); +lean_ctor_set(x_181, 4, x_134); +lean_ctor_set(x_181, 5, x_135); +lean_ctor_set(x_181, 6, x_136); +lean_ctor_set(x_181, 7, x_142); +lean_ctor_set(x_181, 8, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*9, x_130); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 1, x_131); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 2, x_132); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 3, x_137); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 4, x_138); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 5, x_139); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 6, x_140); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 7, x_141); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 8, x_144); +lean_ctor_set_uint8(x_181, sizeof(void*)*9 + 9, x_145); +x_182 = lean_apply_10(x_2, x_15, x_4, x_5, x_181, x_7, x_8, x_9, x_10, x_11, x_12); +return x_182; +} +} +} +} +} +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_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_183 = lean_ctor_get(x_10, 0); +x_184 = lean_ctor_get(x_10, 1); +x_185 = lean_ctor_get(x_10, 2); +x_186 = lean_ctor_get(x_10, 3); +x_187 = lean_ctor_get(x_10, 4); +x_188 = lean_ctor_get(x_10, 5); +x_189 = lean_ctor_get(x_10, 6); +x_190 = lean_ctor_get(x_10, 7); +x_191 = lean_ctor_get(x_10, 8); +x_192 = lean_ctor_get(x_10, 9); +x_193 = lean_ctor_get(x_10, 10); +x_194 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_195 = lean_ctor_get(x_10, 11); +x_196 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_195); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_10); +x_197 = lean_ctor_get(x_6, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_6, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_6, 2); +lean_inc(x_199); +x_200 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); +x_201 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +x_202 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 2); +x_203 = lean_ctor_get(x_6, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_6, 4); +lean_inc(x_204); +x_205 = lean_ctor_get(x_6, 5); +lean_inc(x_205); +x_206 = lean_ctor_get(x_6, 6); +lean_inc(x_206); +x_207 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 3); +x_208 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 4); +x_209 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 5); +x_210 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 6); +x_211 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 7); +x_212 = lean_ctor_get(x_6, 7); +lean_inc(x_212); +x_213 = lean_ctor_get(x_6, 8); +lean_inc(x_213); +x_214 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 8); +x_215 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_6, 4); + lean_ctor_release(x_6, 5); + lean_ctor_release(x_6, 6); + lean_ctor_release(x_6, 7); + lean_ctor_release(x_6, 8); + x_216 = x_6; +} else { + lean_dec_ref(x_6); + x_216 = lean_box(0); +} +x_217 = l_Lean_replaceRef(x_15, x_188); +lean_dec(x_188); +lean_inc(x_185); +x_218 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_218, 0, x_183); +lean_ctor_set(x_218, 1, x_184); +lean_ctor_set(x_218, 2, x_185); +lean_ctor_set(x_218, 3, x_186); +lean_ctor_set(x_218, 4, x_187); +lean_ctor_set(x_218, 5, x_217); +lean_ctor_set(x_218, 6, x_189); +lean_ctor_set(x_218, 7, x_190); +lean_ctor_set(x_218, 8, x_191); +lean_ctor_set(x_218, 9, x_192); +lean_ctor_set(x_218, 10, x_193); +lean_ctor_set(x_218, 11, x_195); +lean_ctor_set_uint8(x_218, sizeof(void*)*12, x_194); +lean_ctor_set_uint8(x_218, sizeof(void*)*12 + 1, x_196); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +x_219 = lean_box(0); +if (lean_is_scalar(x_216)) { + x_220 = lean_alloc_ctor(0, 9, 10); +} else { + x_220 = x_216; +} +lean_ctor_set(x_220, 0, x_197); +lean_ctor_set(x_220, 1, x_198); +lean_ctor_set(x_220, 2, x_199); +lean_ctor_set(x_220, 3, x_203); +lean_ctor_set(x_220, 4, x_204); +lean_ctor_set(x_220, 5, x_205); +lean_ctor_set(x_220, 6, x_206); +lean_ctor_set(x_220, 7, x_212); +lean_ctor_set(x_220, 8, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_220, sizeof(void*)*9 + 9, x_215); +x_221 = lean_apply_10(x_2, x_15, x_4, x_5, x_220, x_7, x_8, x_9, x_218, x_11, x_12); +return x_221; +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_213, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + x_223 = x_213; +} else { + lean_dec_ref(x_213); + x_223 = lean_box(0); +} +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_185); +lean_dec(x_14); +lean_dec(x_1); +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); +} +x_227 = lean_box(0); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +if (lean_is_scalar(x_223)) { + x_229 = lean_alloc_ctor(1, 1, 0); +} else { + x_229 = x_223; +} +lean_ctor_set(x_229, 0, x_228); +if (lean_is_scalar(x_216)) { + x_230 = lean_alloc_ctor(0, 9, 10); +} else { + x_230 = x_216; +} +lean_ctor_set(x_230, 0, x_197); +lean_ctor_set(x_230, 1, x_198); +lean_ctor_set(x_230, 2, x_199); +lean_ctor_set(x_230, 3, x_203); +lean_ctor_set(x_230, 4, x_204); +lean_ctor_set(x_230, 5, x_205); +lean_ctor_set(x_230, 6, x_206); +lean_ctor_set(x_230, 7, x_212); +lean_ctor_set(x_230, 8, x_229); +lean_ctor_set_uint8(x_230, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_230, sizeof(void*)*9 + 9, x_215); +x_231 = lean_apply_10(x_2, x_15, x_4, x_5, x_230, x_7, x_8, x_9, x_218, x_11, x_12); +return x_231; +} +else +{ +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; uint8_t x_243; +x_232 = lean_ctor_get(x_224, 0); +lean_inc(x_232); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + x_233 = x_224; +} else { + lean_dec_ref(x_224); + x_233 = lean_box(0); +} +x_234 = lean_ctor_get(x_222, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_235 = x_222; +} else { + lean_dec_ref(x_222); + x_235 = lean_box(0); +} +x_236 = lean_ctor_get(x_232, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_232, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_238 = x_232; +} else { + lean_dec_ref(x_232); + x_238 = lean_box(0); +} +x_239 = lean_apply_1(x_1, x_236); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_185, x_14, x_240); +lean_dec(x_185); +x_243 = lean_unbox(x_242); +lean_dec(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_241); +lean_dec(x_238); +lean_dec(x_237); +lean_dec(x_223); +x_244 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_245 = lean_alloc_ctor(0, 2, 0); +} else { + x_245 = x_235; +} +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_234); +if (lean_is_scalar(x_233)) { + x_246 = lean_alloc_ctor(1, 1, 0); +} else { + x_246 = x_233; +} +lean_ctor_set(x_246, 0, x_245); +if (lean_is_scalar(x_216)) { + x_247 = lean_alloc_ctor(0, 9, 10); +} else { + x_247 = x_216; +} +lean_ctor_set(x_247, 0, x_197); +lean_ctor_set(x_247, 1, x_198); +lean_ctor_set(x_247, 2, x_199); +lean_ctor_set(x_247, 3, x_203); +lean_ctor_set(x_247, 4, x_204); +lean_ctor_set(x_247, 5, x_205); +lean_ctor_set(x_247, 6, x_206); +lean_ctor_set(x_247, 7, x_212); +lean_ctor_set(x_247, 8, x_246); +lean_ctor_set_uint8(x_247, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_247, sizeof(void*)*9 + 9, x_215); +x_248 = lean_apply_10(x_2, x_15, x_4, x_5, x_247, x_7, x_8, x_9, x_218, x_11, x_12); +return x_248; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +if (lean_is_scalar(x_238)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_238; +} +lean_ctor_set(x_249, 0, x_241); +lean_ctor_set(x_249, 1, x_237); +if (lean_is_scalar(x_233)) { + x_250 = lean_alloc_ctor(1, 1, 0); +} else { + x_250 = x_233; +} +lean_ctor_set(x_250, 0, x_249); +if (lean_is_scalar(x_235)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_235; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_234); +if (lean_is_scalar(x_223)) { + x_252 = lean_alloc_ctor(1, 1, 0); +} else { + x_252 = x_223; +} +lean_ctor_set(x_252, 0, x_251); +if (lean_is_scalar(x_216)) { + x_253 = lean_alloc_ctor(0, 9, 10); +} else { + x_253 = x_216; +} +lean_ctor_set(x_253, 0, x_197); +lean_ctor_set(x_253, 1, x_198); +lean_ctor_set(x_253, 2, x_199); +lean_ctor_set(x_253, 3, x_203); +lean_ctor_set(x_253, 4, x_204); +lean_ctor_set(x_253, 5, x_205); +lean_ctor_set(x_253, 6, x_206); +lean_ctor_set(x_253, 7, x_212); +lean_ctor_set(x_253, 8, x_252); +lean_ctor_set_uint8(x_253, sizeof(void*)*9, x_200); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 1, x_201); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 2, x_202); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 3, x_207); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 4, x_208); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 5, x_209); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 6, x_210); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 7, x_211); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 8, x_214); +lean_ctor_set_uint8(x_253, sizeof(void*)*9 + 9, x_215); +x_254 = lean_apply_10(x_2, x_15, x_4, x_5, x_253, x_7, x_8, x_9, x_218, x_11, x_12); +return x_254; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_3 = l_Lean_Syntax_getArgs(x_2); +x_4 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_5 = l_Array_toSubarray___rarg(x_3, x_4, x_1); +x_6 = l_Array_ofSubarray___rarg(x_5); +x_7 = lean_box(2); +x_8 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalAlt___spec__1___closed__3; +x_9 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 2, x_6); +x_10 = l_Lean_Syntax_getArg(x_2, x_1); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1___boxed), 2, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__4(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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) { +_start: +{ +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 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(x_1); +x_19 = lean_ctor_get(x_2, 0); +lean_inc(x_19); +x_20 = l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1(x_3, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(x_4); -x_23 = lean_ctor_get(x_1, 0); -lean_inc(x_23); -x_24 = l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1(x_2, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_21); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_ctor_get(x_1, 2); -lean_inc(x_26); -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; -lean_inc(x_17); +x_22 = lean_ctor_get(x_2, 2); +lean_inc(x_22); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_Elab_Tactic_ElimApp_State_alts___default___closed__1; lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -19283,19 +24824,19 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_29 = l_Lean_Elab_Tactic_ElimApp_evalAlts(x_5, x_26, x_22, x_6, x_7, x_27, x_8, x_3, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_25); -if (lean_obj_tag(x_29) == 0) +lean_inc(x_9); +x_25 = l_Lean_Elab_Tactic_ElimApp_evalAlts(x_4, x_22, x_18, x_8, x_5, x_23, x_6, x_7, x_24, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_21); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_1, 3); -lean_inc(x_31); -lean_dec(x_1); -x_32 = lean_array_to_list(lean_box(0), x_31); -x_33 = l_Lean_Elab_Tactic_appendGoals(x_32, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_30); -lean_dec(x_17); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_ctor_get(x_2, 3); +lean_inc(x_27); +lean_dec(x_2); +x_28 = lean_array_to_list(lean_box(0), x_27); +x_29 = l_Lean_Elab_Tactic_appendGoals(x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_26); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -19303,44 +24844,12 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -return x_33; -} -else -{ -uint8_t x_34; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_29); -if (x_34 == 0) -{ +lean_dec(x_9); return x_29; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_29, 0); -x_36 = lean_ctor_get(x_29, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_29); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -else -{ -uint8_t x_38; -lean_dec(x_17); +uint8_t x_30; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -19348,35 +24857,117 @@ 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_5); -lean_dec(x_3); +lean_dec(x_9); lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_20); -if (x_38 == 0) +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) { -return x_20; +return x_25; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_20, 0); -x_40 = lean_ctor_get(x_20, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_20); -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; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } } -static lean_object* _init_l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; +lean_inc(x_7); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__1___boxed), 17, 7); +lean_closure_set(x_17, 0, x_7); +lean_closure_set(x_17, 1, x_1); +lean_closure_set(x_17, 2, x_2); +lean_closure_set(x_17, 3, x_3); +lean_closure_set(x_17, 4, x_4); +lean_closure_set(x_17, 5, x_5); +lean_closure_set(x_17, 6, x_6); +x_18 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg(x_7, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_8); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +lean_inc(x_2); +x_19 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg(x_2, x_18, x_3, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__2), 16, 6); +lean_closure_set(x_21, 0, x_1); +lean_closure_set(x_21, 1, x_2); +lean_closure_set(x_21, 2, x_4); +lean_closure_set(x_21, 3, x_5); +lean_closure_set(x_21, 4, x_6); +lean_closure_set(x_21, 5, x_3); +x_22 = lean_unsigned_to_nat(4u); +x_23 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3(x_22, x_21, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_20); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_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_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -19384,156 +24975,155 @@ x_1 = lean_mk_string_from_bytes("elimApp: ", 9); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1; +x_1 = l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -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; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_20 = lean_ctor_get(x_17, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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; +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_16, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_17, 1); +x_21 = lean_ctor_get(x_16, 2); lean_inc(x_21); -x_22 = lean_ctor_get(x_17, 2); +x_22 = lean_ctor_get(x_16, 3); lean_inc(x_22); -x_23 = lean_ctor_get(x_17, 3); +x_23 = lean_ctor_get(x_16, 4); lean_inc(x_23); -x_24 = lean_ctor_get(x_17, 4); +x_24 = lean_ctor_get(x_16, 5); lean_inc(x_24); -x_25 = lean_ctor_get(x_17, 5); +x_25 = lean_ctor_get(x_16, 6); lean_inc(x_25); -x_26 = lean_ctor_get(x_17, 6); +x_26 = lean_ctor_get(x_16, 7); lean_inc(x_26); -x_27 = lean_ctor_get(x_17, 7); +x_27 = lean_ctor_get(x_16, 8); lean_inc(x_27); -x_28 = lean_ctor_get(x_17, 8); +x_28 = lean_ctor_get(x_16, 9); lean_inc(x_28); -x_29 = lean_ctor_get(x_17, 9); +x_29 = lean_ctor_get(x_16, 10); lean_inc(x_29); -x_30 = lean_ctor_get(x_17, 10); -lean_inc(x_30); -x_31 = lean_ctor_get_uint8(x_17, sizeof(void*)*11); -x_32 = l_Lean_replaceRef(x_1, x_25); -lean_dec(x_25); +x_30 = lean_ctor_get_uint8(x_16, sizeof(void*)*12); +x_31 = lean_ctor_get(x_16, 11); +lean_inc(x_31); +x_32 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1); +x_33 = l_Lean_replaceRef(x_1, x_24); +lean_dec(x_24); lean_dec(x_1); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_21); -lean_ctor_set(x_33, 2, x_22); -lean_ctor_set(x_33, 3, x_23); -lean_ctor_set(x_33, 4, x_24); -lean_ctor_set(x_33, 5, x_32); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_31); -lean_inc(x_18); -lean_inc(x_16); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); +lean_inc(x_17); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); +lean_inc(x_12); lean_inc(x_2); -x_34 = l_Lean_Elab_Tactic_ElimApp_mkElimApp(x_2, x_3, x_4, x_13, x_14, x_15, x_16, x_33, x_18, x_19); -if (lean_obj_tag(x_34) == 0) +x_35 = l_Lean_Elab_Tactic_ElimApp_mkElimApp(x_2, x_3, x_4, x_12, x_13, x_14, x_15, x_34, x_17, x_18); +if (lean_obj_tag(x_35) == 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_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2; -x_38 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_36); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_unbox(x_39); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +x_39 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(x_38, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_37); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); lean_dec(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_box(0); -x_43 = l_Lean_Elab_Tactic_evalInduction___lambda__1(x_35, x_5, x_6, x_7, x_2, x_8, x_9, x_10, x_42, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_41); -lean_dec(x_7); -return x_43; +x_43 = lean_box(0); +x_44 = l_Lean_Elab_Tactic_evalInduction___lambda__3(x_36, x_5, x_6, x_2, x_7, x_8, x_9, x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_42); +return x_44; } else { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_38); -if (x_44 == 0) +uint8_t x_45; +x_45 = !lean_is_exclusive(x_39); +if (x_45 == 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; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_45 = lean_ctor_get(x_38, 1); -x_46 = lean_ctor_get(x_38, 0); -lean_dec(x_46); -x_47 = lean_ctor_get(x_35, 0); -lean_inc(x_47); -x_48 = l_Lean_MessageData_ofExpr(x_47); -x_49 = l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2; -lean_ctor_set_tag(x_38, 6); -lean_ctor_set(x_38, 1, x_48); -lean_ctor_set(x_38, 0, x_49); -x_50 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; -x_51 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_37, x_51, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_45); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); +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; +x_46 = lean_ctor_get(x_39, 1); +x_47 = lean_ctor_get(x_39, 0); +lean_dec(x_47); +x_48 = lean_ctor_get(x_36, 0); +lean_inc(x_48); +x_49 = l_Lean_MessageData_ofExpr(x_48); +x_50 = l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2; +lean_ctor_set_tag(x_39, 6); +lean_ctor_set(x_39, 1, x_49); +lean_ctor_set(x_39, 0, x_50); +x_51 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; +x_52 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_38, x_52, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_46); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_Elab_Tactic_evalInduction___lambda__1(x_35, x_5, x_6, x_7, x_2, x_8, x_9, x_10, x_53, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); lean_dec(x_53); -lean_dec(x_7); -return x_55; +x_56 = l_Lean_Elab_Tactic_evalInduction___lambda__3(x_36, x_5, x_6, x_2, x_7, x_8, x_9, x_54, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_55); +return x_56; } 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; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_56 = lean_ctor_get(x_38, 1); -lean_inc(x_56); -lean_dec(x_38); -x_57 = lean_ctor_get(x_35, 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; +x_57 = lean_ctor_get(x_39, 1); lean_inc(x_57); -x_58 = l_Lean_MessageData_ofExpr(x_57); -x_59 = l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2; -x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; -x_62 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_37, x_62, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_56); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); +lean_dec(x_39); +x_58 = lean_ctor_get(x_36, 0); +lean_inc(x_58); +x_59 = l_Lean_MessageData_ofExpr(x_58); +x_60 = l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2; +x_61 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__6; +x_63 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__2(x_38, x_63, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_57); +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_Elab_Tactic_evalInduction___lambda__1(x_35, x_5, x_6, x_7, x_2, x_8, x_9, x_10, x_64, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); lean_dec(x_64); -lean_dec(x_7); -return x_66; +x_67 = l_Lean_Elab_Tactic_evalInduction___lambda__3(x_36, x_5, x_6, x_2, x_7, x_8, x_9, x_65, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_66); +return x_67; } } } else { -uint8_t x_67; -lean_dec(x_18); +uint8_t x_68; lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -19548,106 +25138,344 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_67 = !lean_is_exclusive(x_34); -if (x_67 == 0) +x_68 = !lean_is_exclusive(x_35); +if (x_68 == 0) { -return x_34; +return x_35; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_34, 0); -x_69 = lean_ctor_get(x_34, 1); +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_inc(x_68); -lean_dec(x_34); -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; +lean_dec(x_35); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_20; -lean_inc(x_18); -lean_inc(x_17); +lean_object* x_18; lean_inc(x_16); lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); lean_inc(x_1); -x_20 = l_Lean_Meta_addImplicitTargets(x_1, x_2, x_15, x_16, x_17, x_18, x_19); -if (lean_obj_tag(x_20) == 0) +x_18 = l_Lean_Meta_addImplicitTargets(x_1, x_2, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_Tactic_evalInduction_checkTargets(x_19, x_13, x_14, x_15, x_16, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; size_t x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Elab_Tactic_evalInduction_checkTargets(x_21, x_15, x_16, x_17, x_18, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; size_t x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); +lean_dec(x_21); +x_23 = lean_array_get_size(x_19); +x_24 = lean_usize_of_nat(x_23); lean_dec(x_23); -x_25 = lean_array_get_size(x_21); -x_26 = lean_usize_of_nat(x_25); -lean_dec(x_25); -lean_inc(x_21); -x_27 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2(x_26, x_3, x_21); -lean_inc(x_18); -lean_inc(x_17); +lean_inc(x_19); +x_25 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2(x_24, x_3, x_19); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_21); -x_28 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars(x_4, x_5, x_21, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_24); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_19); +lean_inc(x_5); +x_26 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars(x_4, x_5, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_22); +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; lean_object* 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_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +lean_inc(x_30); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__4___boxed), 18, 9); +lean_closure_set(x_31, 0, x_6); +lean_closure_set(x_31, 1, x_1); +lean_closure_set(x_31, 2, x_19); +lean_closure_set(x_31, 3, x_7); +lean_closure_set(x_31, 4, x_30); +lean_closure_set(x_31, 5, x_25); +lean_closure_set(x_31, 6, x_8); +lean_closure_set(x_31, 7, x_29); +lean_closure_set(x_31, 8, x_5); +x_32 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_30, x_31, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_28); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_25); +lean_dec(x_19); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +return x_26; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_26, 0); +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_26); +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 +{ +uint8_t x_37; +lean_dec(x_19); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_21); +if (x_37 == 0) +{ +return x_21; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_21, 0); +x_39 = lean_ctor_get(x_21, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_21); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_18); +if (x_41 == 0) +{ +return x_18; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_18, 0); +x_43 = lean_ctor_get(x_18, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_18); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__6(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) { +_start: +{ +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Elab_Tactic_withMainContext___rarg(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_17 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(2u); +x_21 = l_Lean_Syntax_getArg(x_2, x_20); +x_22 = 1; +x_23 = lean_box(x_22); +lean_inc(x_18); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___boxed), 12, 3); +lean_closure_set(x_24, 0, x_21); +lean_closure_set(x_24, 1, x_18); +lean_closure_set(x_24, 2, x_23); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_25 = l_Lean_Elab_Tactic_withMainContext___rarg(x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* 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); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_28 = l_Lean_Elab_Tactic_getMainGoal(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); 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_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; x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = lean_ctor_get(x_29, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_29, 1); +x_31 = lean_st_ref_get(x_10, x_30); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_29); -lean_inc(x_32); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__2___boxed), 19, 10); -lean_closure_set(x_33, 0, x_6); -lean_closure_set(x_33, 1, x_1); -lean_closure_set(x_33, 2, x_21); -lean_closure_set(x_33, 3, x_7); -lean_closure_set(x_33, 4, x_32); -lean_closure_set(x_33, 5, x_27); -lean_closure_set(x_33, 6, x_8); -lean_closure_set(x_33, 7, x_9); -lean_closure_set(x_33, 8, x_10); -lean_closure_set(x_33, 9, x_31); -x_34 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_32, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_30); -return x_34; +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_33); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_ctor_get(x_11, 5); +lean_inc(x_38); +x_39 = l_Lean_Elab_Tactic_mkTacticInfo(x_34, x_36, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_29); +x_42 = l_Lean_MVarId_getTag(x_29, x_9, x_10, x_11, x_12, x_41); +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); +lean_dec(x_42); +x_45 = lean_box_usize(x_3); +lean_inc(x_29); +x_46 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__5___boxed), 17, 8); +lean_closure_set(x_46, 0, x_26); +lean_closure_set(x_46, 1, x_18); +lean_closure_set(x_46, 2, x_45); +lean_closure_set(x_46, 3, x_29); +lean_closure_set(x_46, 4, x_2); +lean_closure_set(x_46, 5, x_4); +lean_closure_set(x_46, 6, x_43); +lean_closure_set(x_46, 7, x_40); +x_47 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_29, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); +return x_47; } else { -uint8_t x_35; -lean_dec(x_27); -lean_dec(x_21); +uint8_t x_48; +lean_dec(x_40); +lean_dec(x_29); +lean_dec(x_26); lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -19655,246 +25483,134 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_28); -if (x_35 == 0) +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_42); +if (x_48 == 0) +{ +return x_42; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_42, 0); +x_50 = lean_ctor_get(x_42, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_42); +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_26); +lean_dec(x_18); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_52 = !lean_is_exclusive(x_28); +if (x_52 == 0) { return x_28; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_28, 0); -x_37 = lean_ctor_get(x_28, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_28, 0); +x_54 = lean_ctor_get(x_28, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_28); -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_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_39; -lean_dec(x_21); +uint8_t x_56; lean_dec(x_18); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_25); +if (x_56 == 0) +{ +return x_25; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_25, 0); +x_58 = lean_ctor_get(x_25, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_25); +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; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_60 = !lean_is_exclusive(x_17); +if (x_60 == 0) +{ +return x_17; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_17, 0); +x_62 = lean_ctor_get(x_17, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_39 = !lean_is_exclusive(x_23); -if (x_39 == 0) -{ -return x_23; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return 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 { -uint8_t x_43; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_20); -if (x_43 == 0) -{ -return x_20; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_20, 0); -x_45 = lean_ctor_get(x_20, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_20); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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) { -_start: -{ -lean_object* x_16; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_16 = l_Lean_Elab_Tactic_withMainContext___rarg(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, 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); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_19 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_18); -if (lean_obj_tag(x_19) == 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; lean_object* x_27; -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_unsigned_to_nat(2u); -x_23 = l_Lean_Syntax_getArg(x_2, x_22); -x_24 = 1; -x_25 = lean_box(x_24); -lean_inc(x_20); -x_26 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___boxed), 12, 3); -lean_closure_set(x_26, 0, x_23); -lean_closure_set(x_26, 1, x_20); -lean_closure_set(x_26, 2, x_25); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_27 = l_Lean_Elab_Tactic_withMainContext___rarg(x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); -if (lean_obj_tag(x_27) == 0) -{ -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); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_30 = l_Lean_Elab_Tactic_getMainGoal(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); -if (lean_obj_tag(x_30) == 0) -{ -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_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_st_ref_get(x_12, x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_35); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_13, 5); -lean_inc(x_40); -x_41 = l_Lean_Elab_Tactic_mkTacticInfo(x_36, x_38, x_40, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_39); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -lean_inc(x_31); -x_44 = l_Lean_MVarId_getTag(x_31, x_11, x_12, x_13, x_14, x_43); -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); -lean_dec(x_44); -x_47 = lean_box_usize(x_3); -lean_inc(x_31); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__3___boxed), 19, 10); -lean_closure_set(x_48, 0, x_28); -lean_closure_set(x_48, 1, x_20); -lean_closure_set(x_48, 2, x_47); -lean_closure_set(x_48, 3, x_31); -lean_closure_set(x_48, 4, x_2); -lean_closure_set(x_48, 5, x_4); -lean_closure_set(x_48, 6, x_45); -lean_closure_set(x_48, 7, x_5); -lean_closure_set(x_48, 8, x_6); -lean_closure_set(x_48, 9, x_42); -x_49 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_31, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_46); -return x_49; -} -else -{ -uint8_t x_50; -lean_dec(x_42); -lean_dec(x_31); -lean_dec(x_28); -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_13); +uint8_t x_64; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -19905,171 +25621,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_50 = !lean_is_exclusive(x_44); -if (x_50 == 0) +x_64 = !lean_is_exclusive(x_14); +if (x_64 == 0) { -return x_44; +return x_14; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_44, 0); -x_52 = lean_ctor_get(x_44, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_44); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -uint8_t x_54; -lean_dec(x_28); -lean_dec(x_20); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_14, 0); +x_66 = lean_ctor_get(x_14, 1); +lean_inc(x_66); +lean_inc(x_65); 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_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_54 = !lean_is_exclusive(x_30); -if (x_54 == 0) -{ -return x_30; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_30, 0); -x_56 = lean_ctor_get(x_30, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_30); -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_20); -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_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_58 = !lean_is_exclusive(x_27); -if (x_58 == 0) -{ -return x_27; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_27, 0); -x_60 = lean_ctor_get(x_27, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_27); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_62 = !lean_is_exclusive(x_19); -if (x_62 == 0) -{ -return x_19; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_19, 0); -x_64 = lean_ctor_get(x_19, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_19); -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; -} -} -} -else -{ -uint8_t x_66; -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_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_16); -if (x_66 == 0) -{ -return x_16; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_16, 0); -x_68 = lean_ctor_get(x_16, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_16); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +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_Lean_Elab_Tactic_evalInduction___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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: { uint8_t x_12; @@ -20091,25 +25664,27 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t 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_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_17 = lean_ctor_get(x_5, 0); x_18 = lean_ctor_get(x_5, 1); x_19 = lean_ctor_get(x_5, 2); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); x_23 = lean_ctor_get(x_5, 3); x_24 = lean_ctor_get(x_5, 4); x_25 = lean_ctor_get(x_5, 5); x_26 = lean_ctor_get(x_5, 6); -x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4); -x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5); -x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_5, 7); -x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 9); +x_33 = lean_ctor_get(x_5, 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_33); lean_inc(x_32); lean_inc(x_26); lean_inc(x_25); @@ -20120,33 +25695,34 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_5); lean_inc(x_2); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_2); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_19); -x_37 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_37, 0, x_17); -lean_ctor_set(x_37, 1, x_18); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_23); -lean_ctor_set(x_37, 4, x_24); -lean_ctor_set(x_37, 5, x_25); -lean_ctor_set(x_37, 6, x_26); -lean_ctor_set(x_37, 7, x_32); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_20); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_21); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_22); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 3, x_27); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 4, x_28); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 5, x_29); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 6, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 9, x_34); -x_38 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_37, x_6, x_7, x_8, x_9, x_10, x_11); -return x_38; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_2); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_19); +x_38 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_38, 0, x_17); +lean_ctor_set(x_38, 1, x_18); +lean_ctor_set(x_38, 2, x_37); +lean_ctor_set(x_38, 3, x_23); +lean_ctor_set(x_38, 4, x_24); +lean_ctor_set(x_38, 5, x_25); +lean_ctor_set(x_38, 6, x_26); +lean_ctor_set(x_38, 7, x_32); +lean_ctor_set(x_38, 8, x_33); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 9, x_35); +x_39 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11); +return x_39; } } } @@ -20167,46 +25743,41 @@ lean_inc(x_1); x_11 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInduction_x3f(x_1); 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; lean_object* x_18; size_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; -x_12 = lean_unsigned_to_nat(4u); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t 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; +x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(x_13); -x_15 = lean_unsigned_to_nat(1u); -x_16 = l_Lean_Syntax_getArg(x_1, x_15); -x_17 = l_Lean_Syntax_getSepArgs(x_16); -x_18 = lean_array_get_size(x_17); -x_19 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_20 = lean_box_usize(x_19); -x_21 = l_Lean_Elab_Tactic_evalInduction___boxed__const__1; -x_22 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1___boxed), 12, 3); -lean_closure_set(x_22, 0, x_20); -lean_closure_set(x_22, 1, x_21); -lean_closure_set(x_22, 2, x_17); -x_23 = l_Lean_Elab_Tactic_evalInduction___boxed__const__1; -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__4___boxed), 15, 6); -lean_closure_set(x_24, 0, x_22); -lean_closure_set(x_24, 1, x_1); -lean_closure_set(x_24, 2, x_23); -lean_closure_set(x_24, 3, x_16); -lean_closure_set(x_24, 4, x_13); -lean_closure_set(x_24, 5, x_14); -x_25 = l_Lean_Elab_Tactic_focus___rarg(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_25; +x_14 = l_Lean_Syntax_getSepArgs(x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = lean_box_usize(x_16); +x_18 = l_Lean_Elab_Tactic_evalInduction___boxed__const__1; +x_19 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1___boxed), 12, 3); +lean_closure_set(x_19, 0, x_17); +lean_closure_set(x_19, 1, x_18); +lean_closure_set(x_19, 2, x_14); +x_20 = l_Lean_Elab_Tactic_evalInduction___boxed__const__1; +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__6___boxed), 13, 4); +lean_closure_set(x_21, 0, x_19); +lean_closure_set(x_21, 1, x_1); +lean_closure_set(x_21, 2, x_20); +lean_closure_set(x_21, 3, x_13); +x_22 = l_Lean_Elab_Tactic_focus___rarg(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_22; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_11, 0); -lean_inc(x_26); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_11, 0); +lean_inc(x_23); lean_dec(x_11); -lean_inc(x_26); +lean_inc(x_23); lean_inc(x_1); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__5), 11, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_26); -x_28 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(x_1, x_26, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_28; +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__7), 11, 2); +lean_closure_set(x_24, 0, x_1); +lean_closure_set(x_24, 1, x_23); +x_25 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(x_1, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_25; } } } @@ -20234,6 +25805,15 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2(x_4, return x_6; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -20252,17 +25832,66 @@ 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_18; +x_18 = l_Lean_Elab_Tactic_evalInduction___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); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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_18; +x_18 = l_Lean_Elab_Tactic_evalInduction___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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]; lean_object* x_18 = _args[17]; _start: { lean_object* x_19; -x_19 = l_Lean_Elab_Tactic_evalInduction___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_9); -lean_dec(x_4); +x_19 = l_Lean_Elab_Tactic_evalInduction___lambda__4(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); return x_19; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__2___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__5___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -20280,87 +25909,46 @@ 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]; -lean_object* x_19 = _args[18]; _start: { -lean_object* x_20; -x_20 = l_Lean_Elab_Tactic_evalInduction___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_16, x_17, x_18, x_19); -return x_20; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction___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]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -_start: -{ -size_t x_20; lean_object* x_21; -x_20 = lean_unbox_usize(x_3); +size_t x_18; lean_object* x_19; +x_18 = lean_unbox_usize(x_3); lean_dec(x_3); -x_21 = l_Lean_Elab_Tactic_evalInduction___lambda__3(x_1, x_2, x_20, 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); -return x_21; +x_19 = l_Lean_Elab_Tactic_evalInduction___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_Lean_Elab_Tactic_evalInduction___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_Lean_Elab_Tactic_evalInduction___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) { _start: { -size_t x_16; lean_object* x_17; -x_16 = lean_unbox_usize(x_3); +size_t x_14; lean_object* x_15; +x_14 = lean_unbox_usize(x_3); lean_dec(x_3); -x_17 = l_Lean_Elab_Tactic_evalInduction___lambda__4(x_1, x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_17; +x_15 = l_Lean_Elab_Tactic_evalInduction___lambda__6(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__2; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; -x_4 = l_Lean_Elab_Tactic_evalAlt___lambda__3___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string_from_bytes("evalInduction", 13); return x_1; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3() { _start: { lean_object* x_1; @@ -20368,7 +25956,7 @@ x_1 = l_Lean_Elab_Tactic_tacticElabAttribute; return x_1; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4() { _start: { lean_object* x_1; @@ -20380,10 +25968,10 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction(lean_obje _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4; -x_3 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; -x_5 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } @@ -20392,7 +25980,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(585u); +x_1 = lean_unsigned_to_nat(640u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20404,7 +25992,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(620u); +x_1 = lean_unsigned_to_nat(678u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20432,7 +26020,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(585u); +x_1 = lean_unsigned_to_nat(640u); x_2 = lean_unsigned_to_nat(51u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20444,7 +26032,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(585u); +x_1 = lean_unsigned_to_nat(640u); x_2 = lean_unsigned_to_nat(64u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20484,7 +26072,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__2; x_3 = l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__7; x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; @@ -21306,7 +26894,7 @@ _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_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__4; x_2 = l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__5; -x_3 = lean_unsigned_to_nat(648u); +x_3 = lean_unsigned_to_nat(706u); x_4 = lean_unsigned_to_nat(8u); x_5 = l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -22535,6 +28123,35 @@ lean_dec(x_1); return x_17; } } +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("cases", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; +x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2; +x_3 = l_Lean_Elab_Tactic_registerBuiltinIncrementalTactic(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___spec__1(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_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -22599,38 +28216,71 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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) { _start: { -lean_object* x_21; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(x_1); +x_19 = lean_ctor_get(x_2, 2); lean_inc(x_19); +lean_dec(x_2); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_Elab_Tactic_ElimApp_evalAlts(x_3, x_19, x_18, x_8, x_4, x_5, x_20, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; +lean_inc(x_7); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__1___boxed), 17, 7); +lean_closure_set(x_17, 0, x_7); +lean_closure_set(x_17, 1, x_1); +lean_closure_set(x_17, 2, x_2); +lean_closure_set(x_17, 3, x_3); +lean_closure_set(x_17, 4, x_4); +lean_closure_set(x_17, 5, x_5); +lean_closure_set(x_17, 6, x_6); +x_18 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg(x_7, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); +lean_inc(x_15); lean_inc(x_3); lean_inc(x_1); -x_21 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg(x_1, x_2, x_3, x_16, x_17, x_18, x_19, x_20); -if (lean_obj_tag(x_21) == 0) +x_20 = l_Lean_Elab_Tactic_ElimApp_setMotiveArg(x_1, x_2, x_3, x_15, x_16, x_17, x_18, x_19); +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; lean_object* x_27; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1(x_1, x_4, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_22); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_ctor_get(x_5, 2); -lean_inc(x_25); -lean_dec(x_5); -x_26 = lean_unsigned_to_nat(0u); -x_27 = l_Lean_Elab_Tactic_ElimApp_evalAlts(x_6, x_25, x_7, x_8, x_9, x_10, x_26, x_3, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_24); -return x_27; +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_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_MVarId_assign___at_Lean_Elab_Tactic_closeMainGoal___spec__1(x_1, x_4, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__2), 16, 6); +lean_closure_set(x_24, 0, x_5); +lean_closure_set(x_24, 1, x_6); +lean_closure_set(x_24, 2, x_7); +lean_closure_set(x_24, 3, x_8); +lean_closure_set(x_24, 4, x_3); +lean_closure_set(x_24, 5, x_9); +x_25 = lean_unsigned_to_nat(3u); +x_26 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___at_Lean_Elab_Tactic_evalInduction___spec__3(x_25, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_23); +return x_26; } else { -uint8_t x_28; -lean_dec(x_19); +uint8_t x_27; lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -22648,28 +28298,28 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) { -return x_21; +return x_20; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_21, 0); -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_20, 0); +x_29 = lean_ctor_get(x_20, 1); lean_inc(x_29); -lean_dec(x_21); -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_inc(x_28); +lean_dec(x_20); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } } -static lean_object* _init_l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -22678,322 +28328,285 @@ x_2 = l_Lean_Expr_sort___override(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_19; -lean_inc(x_17); +lean_object* x_18; lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); -lean_inc(x_1); -x_19 = l_Lean_Meta_addImplicitTargets(x_1, x_2, x_14, x_15, x_16, x_17, x_18); -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_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; lean_object* x_35; lean_object* x_36; -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_ctor_get(x_16, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); -x_24 = lean_ctor_get(x_16, 2); -lean_inc(x_24); -x_25 = lean_ctor_get(x_16, 3); -lean_inc(x_25); -x_26 = lean_ctor_get(x_16, 4); -lean_inc(x_26); -x_27 = lean_ctor_get(x_16, 5); -lean_inc(x_27); -x_28 = lean_ctor_get(x_16, 6); -lean_inc(x_28); -x_29 = lean_ctor_get(x_16, 7); -lean_inc(x_29); -x_30 = lean_ctor_get(x_16, 8); -lean_inc(x_30); -x_31 = lean_ctor_get(x_16, 9); -lean_inc(x_31); -x_32 = lean_ctor_get(x_16, 10); -lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_16, sizeof(void*)*11); -x_34 = l_Lean_replaceRef(x_3, x_27); -lean_dec(x_27); -x_35 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_35, 0, x_22); -lean_ctor_set(x_35, 1, x_23); -lean_ctor_set(x_35, 2, x_24); -lean_ctor_set(x_35, 3, x_25); -lean_ctor_set(x_35, 4, x_26); -lean_ctor_set(x_35, 5, x_34); -lean_ctor_set(x_35, 6, x_28); -lean_ctor_set(x_35, 7, x_29); -lean_ctor_set(x_35, 8, x_30); -lean_ctor_set(x_35, 9, x_31); -lean_ctor_set(x_35, 10, x_32); -lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_33); -lean_inc(x_17); -lean_inc(x_15); -lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); lean_inc(x_1); -x_36 = l_Lean_Elab_Tactic_ElimApp_mkElimApp(x_1, x_20, x_4, x_12, x_13, x_14, x_15, x_35, x_17, x_21); -if (lean_obj_tag(x_36) == 0) +x_18 = l_Lean_Meta_addImplicitTargets(x_1, x_2, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_18) == 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; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); +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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_15, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_15, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_15, 3); +lean_inc(x_24); +x_25 = lean_ctor_get(x_15, 4); +lean_inc(x_25); +x_26 = lean_ctor_get(x_15, 5); +lean_inc(x_26); +x_27 = lean_ctor_get(x_15, 6); +lean_inc(x_27); +x_28 = lean_ctor_get(x_15, 7); +lean_inc(x_28); +x_29 = lean_ctor_get(x_15, 8); +lean_inc(x_29); +x_30 = lean_ctor_get(x_15, 9); +lean_inc(x_30); +x_31 = lean_ctor_get(x_15, 10); +lean_inc(x_31); +x_32 = lean_ctor_get_uint8(x_15, sizeof(void*)*12); +x_33 = lean_ctor_get(x_15, 11); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*12 + 1); +x_35 = l_Lean_replaceRef(x_3, x_26); +lean_dec(x_26); +x_36 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_36, 0, x_21); +lean_ctor_set(x_36, 1, x_22); +lean_ctor_set(x_36, 2, x_23); +lean_ctor_set(x_36, 3, x_24); +lean_ctor_set(x_36, 4, x_25); +lean_ctor_set(x_36, 5, x_35); +lean_ctor_set(x_36, 6, x_27); +lean_ctor_set(x_36, 7, x_28); +lean_ctor_set(x_36, 8, x_29); +lean_ctor_set(x_36, 9, x_30); +lean_ctor_set(x_36, 10, x_31); +lean_ctor_set(x_36, 11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*12 + 1, x_34); +lean_inc(x_16); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_1); +x_37 = l_Lean_Elab_Tactic_ElimApp_mkElimApp(x_1, x_19, x_4, x_11, x_12, x_13, x_14, x_36, x_16, x_20); +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; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; size_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_ctor_get(x_37, 0); +x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_39, x_40); -x_42 = l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1; -lean_inc(x_41); -x_43 = lean_mk_array(x_41, x_42); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_sub(x_41, x_44); -lean_dec(x_41); -lean_inc(x_39); -x_46 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_39, x_43, x_45); -x_47 = lean_ctor_get(x_1, 3); -lean_inc(x_47); -x_48 = lean_array_get_size(x_47); -x_49 = lean_usize_of_nat(x_48); -lean_dec(x_48); -x_50 = 0; -x_51 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___spec__1(x_46, x_49, x_50, x_47, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_38); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_unsigned_to_nat(0u); +x_42 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_40, x_41); +x_43 = l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1; +lean_inc(x_42); +x_44 = lean_mk_array(x_42, x_43); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_sub(x_42, x_45); +lean_dec(x_42); +lean_inc(x_40); +x_47 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_40, x_44, x_46); +x_48 = lean_ctor_get(x_1, 3); +lean_inc(x_48); +x_49 = lean_array_get_size(x_48); +x_50 = lean_usize_of_nat(x_49); +lean_dec(x_49); +x_51 = 0; +x_52 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___spec__1(x_47, x_50, x_51, x_48, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_39); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_85 = lean_ctor_get(x_1, 2); -lean_inc(x_85); -x_86 = lean_array_get_size(x_46); -x_87 = lean_nat_dec_lt(x_85, x_86); -lean_dec(x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_85); -lean_dec(x_46); -x_88 = l_Lean_instInhabitedExpr; -x_89 = l___private_Init_GetElem_0__outOfBounds___rarg(x_88); -x_54 = x_89; -goto block_84; -} -else -{ -lean_object* x_90; -x_90 = lean_array_fget(x_46, x_85); -lean_dec(x_85); -lean_dec(x_46); -x_54 = x_90; -goto block_84; -} -block_84: -{ -lean_object* x_55; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); -x_55 = lean_infer_type(x_54, x_14, x_15, x_16, x_17, x_53); -if (lean_obj_tag(x_55) == 0) +lean_dec(x_52); +x_86 = lean_ctor_get(x_1, 2); +lean_inc(x_86); +x_87 = lean_array_get_size(x_47); +x_88 = lean_nat_dec_lt(x_86, x_87); +lean_dec(x_87); +if (x_88 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +lean_object* x_89; lean_object* x_90; +lean_dec(x_86); +lean_dec(x_47); +x_89 = l_Lean_instInhabitedExpr; +x_90 = l___private_Init_GetElem_0__outOfBounds___rarg(x_89); +x_55 = x_90; +goto block_85; +} +else +{ +lean_object* x_91; +x_91 = lean_array_fget(x_47, x_86); +lean_dec(x_86); +lean_dec(x_47); +x_55 = x_91; +goto block_85; +} +block_85: +{ +lean_object* x_56; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_55); +x_56 = lean_infer_type(x_55, x_13, x_14, x_15, x_16, x_54); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -lean_inc(x_17); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); -lean_inc(x_52); -x_58 = l_Lean_Meta_generalizeTargetsEq(x_5, x_56, x_52, x_14, x_15, x_16, x_17, x_57); -if (lean_obj_tag(x_58) == 0) +lean_inc(x_13); +lean_inc(x_53); +x_59 = l_Lean_Meta_generalizeTargetsEq(x_5, x_57, x_53, x_13, x_14, x_15, x_16, x_58); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_array_get_size(x_52); -lean_dec(x_52); -x_62 = lean_box(0); -x_63 = 0; -lean_inc(x_17); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_array_get_size(x_53); +lean_dec(x_53); +x_63 = lean_box(0); +x_64 = 0; lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); -lean_inc(x_61); -x_64 = l_Lean_Meta_introNCore(x_59, x_61, x_62, x_63, x_63, x_14, x_15, x_16, x_17, x_60); -if (lean_obj_tag(x_64) == 0) +lean_inc(x_13); +lean_inc(x_62); +x_65 = l_Lean_Meta_introNCore(x_60, x_62, x_63, x_64, x_64, x_13, x_14, x_15, x_16, x_61); +if (lean_obj_tag(x_65) == 0) { -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_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); +x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); lean_dec(x_65); -x_69 = l_Lean_Expr_mvarId_x21(x_54); +x_68 = lean_ctor_get(x_66, 0); lean_inc(x_68); -x_70 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__1___boxed), 20, 11); -lean_closure_set(x_70, 0, x_68); -lean_closure_set(x_70, 1, x_69); -lean_closure_set(x_70, 2, x_67); -lean_closure_set(x_70, 3, x_39); -lean_closure_set(x_70, 4, x_37); -lean_closure_set(x_70, 5, x_1); -lean_closure_set(x_70, 6, x_6); -lean_closure_set(x_70, 7, x_7); -lean_closure_set(x_70, 8, x_8); -lean_closure_set(x_70, 9, x_61); -lean_closure_set(x_70, 10, x_9); -x_71 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_68, x_70, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_66); -return x_71; +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = l_Lean_Expr_mvarId_x21(x_55); +lean_inc(x_69); +x_71 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__3___boxed), 19, 10); +lean_closure_set(x_71, 0, x_69); +lean_closure_set(x_71, 1, x_70); +lean_closure_set(x_71, 2, x_68); +lean_closure_set(x_71, 3, x_40); +lean_closure_set(x_71, 4, x_38); +lean_closure_set(x_71, 5, x_1); +lean_closure_set(x_71, 6, x_6); +lean_closure_set(x_71, 7, x_62); +lean_closure_set(x_71, 8, x_7); +lean_closure_set(x_71, 9, x_8); +x_72 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_69, x_71, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_67); +return x_72; } else { -uint8_t x_72; -lean_dec(x_61); -lean_dec(x_54); -lean_dec(x_39); -lean_dec(x_37); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_72 = !lean_is_exclusive(x_64); -if (x_72 == 0) -{ -return x_64; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_64, 0); -x_74 = lean_ctor_get(x_64, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_64); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_39); -lean_dec(x_37); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_76 = !lean_is_exclusive(x_58); -if (x_76 == 0) -{ -return x_58; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_58, 0); -x_78 = lean_ctor_get(x_58, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_58); -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; -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_39); -lean_dec(x_37); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_80 = !lean_is_exclusive(x_55); -if (x_80 == 0) -{ -return x_55; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_55, 0); -x_82 = lean_ctor_get(x_55, 1); -lean_inc(x_82); -lean_inc(x_81); +uint8_t x_73; +lean_dec(x_62); lean_dec(x_55); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_65); +if (x_73 == 0) +{ +return x_65; } +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_65, 0); +x_75 = lean_ctor_get(x_65, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_65); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_91; -lean_dec(x_17); +uint8_t x_77; +lean_dec(x_55); +lean_dec(x_53); +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_59); +if (x_77 == 0) +{ +return x_59; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_59, 0); +x_79 = lean_ctor_get(x_59, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_59); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_55); +lean_dec(x_53); +lean_dec(x_40); +lean_dec(x_38); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23007,30 +28620,66 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_91 = !lean_is_exclusive(x_36); -if (x_91 == 0) +x_81 = !lean_is_exclusive(x_56); +if (x_81 == 0) { -return x_36; +return x_56; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_36, 0); -x_93 = lean_ctor_get(x_36, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_56, 0); +x_83 = lean_ctor_get(x_56, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_56); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +else +{ +uint8_t x_92; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_37); +if (x_92 == 0) +{ +return x_37; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_37, 0); +x_94 = lean_ctor_get(x_37, 1); +lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_36); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +lean_dec(x_37); +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 { -uint8_t x_95; -lean_dec(x_17); +uint8_t x_96; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23045,28 +28694,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_95 = !lean_is_exclusive(x_19); -if (x_95 == 0) +x_96 = !lean_is_exclusive(x_18); +if (x_96 == 0) { -return x_19; +return x_18; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_19, 0); -x_97 = lean_ctor_get(x_19, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_18, 0); +x_98 = lean_ctor_get(x_18, 1); +lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_19); -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; +lean_dec(x_18); +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; @@ -23081,7 +28730,7 @@ lean_inc(x_4); x_13 = l_Lean_Elab_Tactic_elabCasesTargets(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; 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; lean_object* x_27; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -23092,20 +28741,15 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); lean_dec(x_14); -x_18 = lean_unsigned_to_nat(3u); +x_18 = lean_unsigned_to_nat(2u); x_19 = l_Lean_Syntax_getArg(x_2, x_18); -x_20 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts(x_19); -x_21 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(x_19); -lean_dec(x_19); -x_22 = lean_unsigned_to_nat(2u); -x_23 = l_Lean_Syntax_getArg(x_2, x_22); -x_24 = 0; -x_25 = lean_box(x_24); +x_20 = 0; +x_21 = lean_box(x_20); lean_inc(x_16); -x_26 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___boxed), 12, 3); -lean_closure_set(x_26, 0, x_23); -lean_closure_set(x_26, 1, x_16); -lean_closure_set(x_26, 2, x_25); +x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___boxed), 12, 3); +lean_closure_set(x_22, 0, x_19); +lean_closure_set(x_22, 1, x_16); +lean_closure_set(x_22, 2, x_21); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -23114,87 +28758,84 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_27 = l_Lean_Elab_Tactic_withMainContext___rarg(x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -if (lean_obj_tag(x_27) == 0) +x_23 = l_Lean_Elab_Tactic_withMainContext___rarg(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_26 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; 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; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_30 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_29); -if (lean_obj_tag(x_30) == 0) -{ -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_31 = lean_ctor_get(x_30, 0); +lean_dec(x_26); +x_29 = lean_st_ref_get(x_9, 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); -x_32 = lean_ctor_get(x_30, 1); +lean_dec(x_29); +x_32 = lean_ctor_get(x_30, 0); lean_inc(x_32); lean_dec(x_30); -x_33 = lean_st_ref_get(x_9, x_32); +x_33 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_31); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = lean_ctor_get(x_34, 0); +x_36 = lean_ctor_get(x_10, 5); lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_35); +x_37 = l_Lean_Elab_Tactic_mkTacticInfo(x_32, x_34, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_35); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); -x_40 = lean_ctor_get(x_10, 5); -lean_inc(x_40); -x_41 = l_Lean_Elab_Tactic_mkTacticInfo(x_36, x_38, x_40, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_39); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -lean_inc(x_31); -x_44 = l_Lean_MVarId_getTag(x_31, x_8, x_9, x_10, x_11, x_43); -if (lean_obj_tag(x_44) == 0) +lean_inc(x_27); +x_40 = l_Lean_MVarId_getTag(x_27, x_8, x_9, x_10, x_11, x_39); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_31); -x_47 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__2___boxed), 18, 9); -lean_closure_set(x_47, 0, x_28); -lean_closure_set(x_47, 1, x_16); -lean_closure_set(x_47, 2, x_3); -lean_closure_set(x_47, 3, x_45); -lean_closure_set(x_47, 4, x_31); -lean_closure_set(x_47, 5, x_20); -lean_closure_set(x_47, 6, x_21); -lean_closure_set(x_47, 7, x_42); -lean_closure_set(x_47, 8, x_17); -x_48 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_31, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -return x_48; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +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); +lean_inc(x_27); +x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__4___boxed), 17, 8); +lean_closure_set(x_43, 0, x_24); +lean_closure_set(x_43, 1, x_16); +lean_closure_set(x_43, 2, x_3); +lean_closure_set(x_43, 3, x_41); +lean_closure_set(x_43, 4, x_27); +lean_closure_set(x_43, 5, x_38); +lean_closure_set(x_43, 6, x_17); +lean_closure_set(x_43, 7, x_2); +x_44 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_27, x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_42); +return x_44; } else { -uint8_t x_49; -lean_dec(x_42); -lean_dec(x_31); -lean_dec(x_28); -lean_dec(x_21); -lean_dec(x_20); +uint8_t x_45; +lean_dec(x_38); +lean_dec(x_27); +lean_dec(x_24); lean_dec(x_17); lean_dec(x_16); lean_dec(x_11); @@ -23206,19 +28847,56 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_49 = !lean_is_exclusive(x_44); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_26); if (x_49 == 0) { -return x_44; +return x_26; } else { lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_44, 0); -x_51 = lean_ctor_get(x_44, 1); +x_50 = lean_ctor_get(x_26, 0); +x_51 = lean_ctor_get(x_26, 1); lean_inc(x_51); lean_inc(x_50); -lean_dec(x_44); +lean_dec(x_26); x_52 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -23229,9 +28907,6 @@ return x_52; else { uint8_t x_53; -lean_dec(x_28); -lean_dec(x_21); -lean_dec(x_20); lean_dec(x_17); lean_dec(x_16); lean_dec(x_11); @@ -23243,19 +28918,20 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_53 = !lean_is_exclusive(x_30); +lean_dec(x_2); +x_53 = !lean_is_exclusive(x_23); if (x_53 == 0) { -return x_30; +return x_23; } else { lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_30, 0); -x_55 = lean_ctor_get(x_30, 1); +x_54 = lean_ctor_get(x_23, 0); +x_55 = lean_ctor_get(x_23, 1); lean_inc(x_55); lean_inc(x_54); -lean_dec(x_30); +lean_dec(x_23); x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -23266,10 +28942,6 @@ return x_56; else { uint8_t x_57; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23279,55 +28951,24 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_57 = !lean_is_exclusive(x_27); +lean_dec(x_2); +x_57 = !lean_is_exclusive(x_13); if (x_57 == 0) { -return x_27; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_27, 0); -x_59 = lean_ctor_get(x_27, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_27); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -uint8_t x_61; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -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_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_13, 0); +x_59 = lean_ctor_get(x_13, 1); +lean_inc(x_59); +lean_inc(x_58); 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; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } @@ -23344,7 +28985,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); x_14 = l_Lean_Syntax_getSepArgs(x_13); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__3___boxed), 12, 3); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__5), 12, 3); lean_closure_set(x_15, 0, x_14); lean_closure_set(x_15, 1, x_1); lean_closure_set(x_15, 2, x_13); @@ -23359,7 +29000,7 @@ lean_inc(x_17); lean_dec(x_11); lean_inc(x_17); lean_inc(x_1); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__5), 11, 2); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__7), 11, 2); lean_closure_set(x_18, 0, x_1); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(x_1, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -23406,17 +29047,15 @@ 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]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; _start: { -lean_object* x_21; -x_21 = l_Lean_Elab_Tactic_evalCases___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); -return x_21; +lean_object* x_18; +x_18 = l_Lean_Elab_Tactic_evalCases___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); +lean_dec(x_1); +return x_18; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2___boxed(lean_object** _args) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__3___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -23435,28 +29074,45 @@ 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]; _start: { -lean_object* x_19; -x_19 = l_Lean_Elab_Tactic_evalCases___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_16, x_17, x_18); +lean_object* x_20; +x_20 = l_Lean_Elab_Tactic_evalCases___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___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: +{ +lean_object* x_18; +x_18 = l_Lean_Elab_Tactic_evalCases___lambda__4(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); lean_dec(x_3); -return x_19; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCases___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Elab_Tactic_evalCases___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_2); -return x_13; +return x_18; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("cases", 5); +x_1 = lean_mk_string_from_bytes("evalCases", 9); return x_1; } } @@ -23465,8 +29121,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__2; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -23476,26 +29132,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3( _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("evalCases", 9); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; -x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases), 10, 0); return x_1; } @@ -23504,10 +29140,10 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases(lean_object* _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4; -x_3 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3; +x_3 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2; +x_4 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3; x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } @@ -23516,7 +29152,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(653u); +x_1 = lean_unsigned_to_nat(712u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23528,8 +29164,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(680u); -x_2 = lean_unsigned_to_nat(75u); +x_1 = lean_unsigned_to_nat(742u); +x_2 = lean_unsigned_to_nat(77u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -23543,7 +29179,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj x_1 = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__1; x_2 = lean_unsigned_to_nat(43u); x_3 = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__2; -x_4 = lean_unsigned_to_nat(75u); +x_4 = lean_unsigned_to_nat(77u); x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -23556,7 +29192,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(653u); +x_1 = lean_unsigned_to_nat(712u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23568,7 +29204,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(653u); +x_1 = lean_unsigned_to_nat(712u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23608,23 +29244,23 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange(lea _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4; +x_2 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2; x_3 = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__7; x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; -x_2 = l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -23634,27 +29270,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5() { _start: { lean_object* x_1; @@ -23662,17 +29298,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7() { _start: { lean_object* x_1; @@ -23680,47 +29316,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8; x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9; -x_2 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12() { _start: { lean_object* x_1; @@ -23728,17 +29364,17 @@ x_1 = lean_mk_string_from_bytes("Induction", 9); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14() { _start: { lean_object* x_1; @@ -23746,33 +29382,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14; +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15; -x_2 = lean_unsigned_to_nat(10574u); +x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15; +x_2 = lean_unsigned_to_nat(10732u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16; +x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -23780,7 +29416,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); -x_7 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2; +x_7 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1; x_8 = l_Lean_registerTraceClass(x_7, x_3, x_4, x_6); return x_8; } @@ -23953,52 +29589,58 @@ l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lea lean_mark_persistent(l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___spec__2___closed__1); l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___boxed__const__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed__const__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed__const__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__2___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__6___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__4); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__5); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__6); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__7); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___lambda__8___closed__8); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__9___closed__1); -l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__1); -l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__2); -l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__2___closed__3); -l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_go___closed__1); +l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__1); +l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__2); +l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__3); +l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__4); +l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___at_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___spec__1___closed__5); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__1); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__2); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__3); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___closed__4); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__6___boxed__const__1); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__1); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__2); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__3); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__4); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__5); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__6); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__7); +l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_applyAltStx___lambda__8___closed__8); +l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__1); +l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__2); +l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__4___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed__const__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed__const__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_goWithIncremental___spec__7___lambda__2___boxed__const__1); +l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_ElimApp_evalAlts_goWithInfo___lambda__2___closed__1); l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__1); -l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___closed__2); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__2(); @@ -24011,8 +29653,12 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_ lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___closed__2); -l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getOptPreTacOfOptInductionAlts___closed__1); +l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__1); +l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___lambda__1___closed__2); +l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_withAltsOfOptInductionAlts___rarg___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f___spec__1___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandMultiAlt_x3f___spec__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__1___closed__1(); @@ -24033,21 +29679,21 @@ l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2 = _init_l_Le lean_mark_persistent(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2); l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___closed__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTermForElim___closed__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__2); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__3); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__4); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__5); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__6); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569____closed__7); -if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7569_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__2); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__3); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__4); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__5); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__6); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727____closed__7); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7727_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Tactic_tactic_customEliminators = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Tactic_tactic_customEliminators); @@ -24076,7 +29722,12 @@ l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___c lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___closed__1); l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___boxed__const__1 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___boxed__const__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1(); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569____closed__1); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_8569_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___lambda__2___closed__2); @@ -24084,10 +29735,10 @@ l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__2); -l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__1); -l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___lambda__2___closed__2); +l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1); +l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2); l_Lean_Elab_Tactic_evalInduction___boxed__const__1 = _init_l_Lean_Elab_Tactic_evalInduction___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___boxed__const__1); l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1(); @@ -24098,8 +29749,6 @@ l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3 = _init_l___regBuiltin lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__3); l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__4); -l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__5); if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalInduction(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24138,18 +29787,21 @@ l_Lean_Elab_Tactic_elabCasesTargets___closed__1 = _init_l_Lean_Elab_Tactic_elabC lean_mark_persistent(l_Lean_Elab_Tactic_elabCasesTargets___closed__1); l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1 = _init_l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabCasesTargets___boxed__const__1); -l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200____closed__2); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10200_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1 = _init_l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalCases___lambda__4___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2); l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__3); -l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__4); -l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5 = _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5); if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalCases(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24170,39 +29822,39 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___close if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__2); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__3); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__4); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__5); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__6); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__7); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__8); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__9); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__10); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__11); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__12); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__13); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__14); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__15); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574____closed__16); -if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10574_(lean_io_mk_world()); +}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__1); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__2); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__3); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__4); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__5); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__6); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__7); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__8); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__9); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__10); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__11); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__12); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__13); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__14); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__15); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732____closed__16); +if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_10732_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/LibrarySearch.c b/stage0/stdlib/Lean/Elab/Tactic/LibrarySearch.c index f56b2a3dc7..cdefff31ac 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/LibrarySearch.c +++ b/stage0/stdlib/Lean/Elab/Tactic/LibrarySearch.c @@ -99,7 +99,6 @@ LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_LibrarySearch_ex lean_object* l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_LibrarySearch_evalExact_declRange___closed__2; lean_object* lean_array_to_list(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__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_object*, lean_object*); static lean_object* l_Lean_Elab_LibrarySearch_evalExact___closed__6; extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -666,6 +665,7 @@ _start: lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; lean_object* x_22; lean_object* x_23; x_16 = l_Lean_Elab_LibrarySearch_exact_x3f___lambda__5___closed__2; x_17 = lean_unsigned_to_nat(90u); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_1); x_18 = l_Lean_reportOutOfHeartbeats(x_16, x_1, x_17, x_13, x_14, x_15); @@ -2372,6 +2372,8 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); return x_26; } else @@ -2381,6 +2383,8 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); x_27 = !lean_is_exclusive(x_24); if (x_27 == 0) @@ -2420,7 +2424,10 @@ if (x_33 == 0) lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; x_34 = l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4___closed__4; x_35 = 2; +lean_inc(x_12); lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); x_36 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_34, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_31); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); @@ -2434,7 +2441,10 @@ else lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; x_40 = l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4___closed__7; x_41 = 2; +lean_inc(x_12); lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); x_42 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_40, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_31); x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); @@ -2452,6 +2462,8 @@ lean_dec(x_12); lean_dec(x_11); 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); @@ -2529,7 +2541,7 @@ lean_dec(x_18); x_21 = l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__5___closed__1; x_22 = l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__5___closed__2; lean_inc(x_20); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4___boxed), 13, 6); +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4), 13, 6); lean_closure_set(x_23, 0, x_20); lean_closure_set(x_23, 1, x_21); lean_closure_set(x_23, 2, x_22); @@ -2657,16 +2669,6 @@ lean_dec(x_2); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_Lean_Elab_LibrarySearch_elabExact_x3fTerm___lambda__4(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_8); -lean_dec(x_7); -return x_14; -} -} static lean_object* _init_l___regBuiltin_Lean_Elab_LibrarySearch_elabExact_x3fTerm___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Location.c b/stage0/stdlib/Lean/Elab/Tactic/Location.c index 2822fac478..e10b5f1511 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Location.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Location.c @@ -16,6 +16,7 @@ extern "C" { lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandLocation___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarId(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_isInterrupt(lean_object*); static lean_object* l_Lean_Elab_Tactic_expandOptLocation___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandLocation(lean_object*); @@ -896,37 +897,41 @@ if (x_26 == 0) lean_object* x_27; lean_object* x_28; uint8_t x_29; x_27 = lean_ctor_get(x_21, 0); x_28 = lean_ctor_get(x_21, 1); -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -uint8_t x_30; lean_object* x_31; uint8_t x_32; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_free_object(x_21); lean_dec(x_27); -x_30 = 0; -x_31 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +x_31 = 0; +x_32 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); lean_dec(x_6); lean_dec(x_5); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -x_34 = lean_box(0); -lean_ctor_set(x_31, 0, x_34); -return x_31; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_box(0); +lean_ctor_set(x_32, 0, x_35); +return x_32; } else { -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 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; +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 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; } } else @@ -945,44 +950,6 @@ return x_21; } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_21, 0); -x_39 = lean_ctor_get(x_21, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_21); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -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_dec(x_38); -x_41 = 0; -x_42 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -lean_dec(x_6); -lean_dec(x_5); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_44 = x_42; -} else { - lean_dec_ref(x_42); - x_44 = lean_box(0); -} -x_45 = lean_box(0); -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_dec(x_19); lean_dec(x_12); lean_dec(x_11); @@ -992,17 +959,91 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_38); -lean_ctor_set(x_47, 1, x_39); -return x_47; +return x_21; +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_21, 0); +x_40 = lean_ctor_get(x_21, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_21); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_39); +x_43 = 0; +x_44 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_40); +lean_dec(x_6); +lean_dec(x_5); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +x_47 = lean_box(0); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_46; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; +} +else +{ +lean_object* x_49; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_39); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +else +{ +lean_object* x_50; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_39); +lean_ctor_set(x_50, 1, x_40); +return x_50; } } } } else { -uint8_t x_48; +uint8_t x_51; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -1013,45 +1054,45 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_48 = !lean_is_exclusive(x_15); -if (x_48 == 0) +x_51 = !lean_is_exclusive(x_15); +if (x_51 == 0) { return x_15; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_15, 0); -x_50 = lean_ctor_get(x_15, 1); -lean_inc(x_50); -lean_inc(x_49); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_15, 0); +x_53 = lean_ctor_get(x_15, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_15); -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; +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_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_dec(x_4); -x_52 = lean_ctor_get(x_1, 0); -lean_inc(x_52); -x_53 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_55 = lean_ctor_get(x_1, 0); +lean_inc(x_55); +x_56 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); lean_dec(x_1); -x_54 = lean_array_get_size(x_52); -x_55 = lean_unsigned_to_nat(0u); -x_56 = lean_nat_dec_lt(x_55, x_54); +x_57 = lean_array_get_size(x_55); +x_58 = lean_unsigned_to_nat(0u); +x_59 = lean_nat_dec_lt(x_58, x_57); +if (x_59 == 0) +{ +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_2); if (x_56 == 0) { -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_2); -if (x_53 == 0) -{ -lean_object* x_57; lean_object* x_58; +lean_object* x_60; lean_object* x_61; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -1061,60 +1102,60 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_13); -return x_58; +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_13); +return x_61; } else { -lean_object* x_59; -x_59 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_59; -} -} -else -{ -uint8_t x_60; -x_60 = lean_nat_dec_le(x_54, x_54); -if (x_60 == 0) -{ -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_2); -if (x_53 == 0) -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_12); -lean_dec(x_11); -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_3); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_13); +lean_object* x_62; +x_62 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_62; } +} else { -lean_object* x_63; -x_63 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_63; +uint8_t x_63; +x_63 = lean_nat_dec_le(x_57, x_57); +if (x_63 == 0) +{ +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_2); +if (x_56 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_12); +lean_dec(x_11); +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_3); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_13); +return x_65; +} +else +{ +lean_object* x_66; +x_66 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_66; } } else { -size_t x_64; size_t x_65; lean_object* x_66; lean_object* x_67; -x_64 = 0; -x_65 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_66 = lean_box(0); +size_t x_67; size_t x_68; lean_object* x_69; lean_object* x_70; +x_67 = 0; +x_68 = lean_usize_of_nat(x_57); +lean_dec(x_57); +x_69 = lean_box(0); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -1123,13 +1164,13 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_67 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(x_2, x_52, x_64, x_65, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_52); -if (lean_obj_tag(x_67) == 0) +x_70 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2(x_2, x_55, x_67, x_68, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_55); +if (lean_obj_tag(x_70) == 0) { -if (x_53 == 0) +if (x_56 == 0) { -uint8_t x_68; +uint8_t x_71; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -1139,66 +1180,66 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) { -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set(x_67, 0, x_66); -return x_67; +lean_object* x_72; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +lean_ctor_set(x_70, 0, x_69); +return x_70; } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_66); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_69); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } else { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_72); -return x_73; -} -} -else -{ -uint8_t x_74; -lean_dec(x_12); -lean_dec(x_11); -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_3); -x_74 = !lean_is_exclusive(x_67); -if (x_74 == 0) -{ -return x_67; -} -else -{ -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_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_70, 1); lean_inc(x_75); -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); -return x_77; +lean_dec(x_70); +x_76 = l_Lean_Elab_Tactic_withMainContext___rarg(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_75); +return x_76; +} +} +else +{ +uint8_t x_77; +lean_dec(x_12); +lean_dec(x_11); +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_3); +x_77 = !lean_is_exclusive(x_70); +if (x_77 == 0) +{ +return x_70; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_70, 0); +x_79 = lean_ctor_get(x_70, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_70); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index f3d057ca06..a491ca71db 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -2005,7 +2005,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -2017,7 +2017,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -2030,32 +2033,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); lean_dec(x_1); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l_Lean_throwError___at_Lean_Elab_Tactic_evalMatch___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_10, x_11); +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_evalMatch___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31, x_10, x_11); lean_dec(x_10); -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_30; +return x_32; } } } @@ -2781,25 +2786,27 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t 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_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_17 = lean_ctor_get(x_5, 0); x_18 = lean_ctor_get(x_5, 1); x_19 = lean_ctor_get(x_5, 2); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 2); x_23 = lean_ctor_get(x_5, 3); x_24 = lean_ctor_get(x_5, 4); x_25 = lean_ctor_get(x_5, 5); x_26 = lean_ctor_get(x_5, 6); -x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 4); -x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 5); -x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 6); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 7); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_5, 7); -x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 9); +x_33 = lean_ctor_get(x_5, 8); +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 9); +lean_inc(x_33); lean_inc(x_32); lean_inc(x_26); lean_inc(x_25); @@ -2810,33 +2817,34 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_5); lean_inc(x_2); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_2); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_19); -x_37 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_37, 0, x_17); -lean_ctor_set(x_37, 1, x_18); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_23); -lean_ctor_set(x_37, 4, x_24); -lean_ctor_set(x_37, 5, x_25); -lean_ctor_set(x_37, 6, x_26); -lean_ctor_set(x_37, 7, x_32); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_20); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_21); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_22); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 3, x_27); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 4, x_28); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 5, x_29); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 6, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 9, x_34); -x_38 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_37, x_6, x_7, x_8, x_9, x_10, x_11); -return x_38; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_2); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_19); +x_38 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_38, 0, x_17); +lean_ctor_set(x_38, 1, x_18); +lean_ctor_set(x_38, 2, x_37); +lean_ctor_set(x_38, 3, x_23); +lean_ctor_set(x_38, 4, x_24); +lean_ctor_set(x_38, 5, x_25); +lean_ctor_set(x_38, 6, x_26); +lean_ctor_set(x_38, 7, x_32); +lean_ctor_set(x_38, 8, x_33); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 9, x_35); +x_39 = l_Lean_Elab_Tactic_evalTactic(x_2, x_3, x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11); +return x_39; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/NormCast.c b/stage0/stdlib/Lean/Elab/Tactic/NormCast.c index 066783ae1b..b62edd79c6 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/NormCast.c +++ b/stage0/stdlib/Lean/Elab/Tactic/NormCast.c @@ -53,6 +53,7 @@ uint32_t l_UInt32_ofNatTruncate(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_NormCast_proveEqUsingDown___spec__1___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*); double lean_float_div(double, double); static lean_object* l_Lean_Elab_Tactic_NormCast_initFn____x40_Lean_Elab_Tactic_NormCast___hyg_6____closed__10; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_NormCast_initFn____x40_Lean_Elab_Tactic_NormCast___hyg_6____closed__5; static lean_object* l_Lean_Elab_Tactic_NormCast_evalNormCast0___closed__3; @@ -5561,409 +5562,89 @@ return x_37; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_NormCast_splittingProcedure___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_24; lean_object* x_25; lean_object* x_43; lean_object* x_44; lean_object* x_58; lean_object* x_59; lean_object* x_68; lean_object* x_69; lean_object* x_135; lean_object* x_136; lean_object* x_198; +lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_43; lean_object* x_44; lean_object* x_58; lean_object* x_59; lean_object* x_70; lean_object* x_71; lean_object* x_139; lean_object* x_140; lean_object* x_204; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_198 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_1, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_198) == 0) +x_204 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_204) == 0) { -lean_object* x_199; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec(x_198); -x_201 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_202 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_201, x_6, x_7, x_8, x_9, x_200); -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_202, 1); -lean_inc(x_204); -lean_dec(x_202); -x_135 = x_203; -x_136 = x_204; -goto block_197; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_198, 1); +lean_object* x_205; +x_205 = lean_ctor_get(x_204, 0); lean_inc(x_205); -lean_dec(x_198); -x_206 = lean_ctor_get(x_199, 0); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_206 = lean_ctor_get(x_204, 1); lean_inc(x_206); -lean_dec(x_199); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_207 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_3, x_6, x_7, x_8, x_9, x_205); -if (lean_obj_tag(x_207) == 0) -{ -lean_object* x_208; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -if (lean_obj_tag(x_208) == 0) -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_206); -x_209 = lean_ctor_get(x_207, 1); +lean_dec(x_204); +x_207 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_208 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_207, x_6, x_7, x_8, x_9, x_206); +x_209 = lean_ctor_get(x_208, 0); lean_inc(x_209); -lean_dec(x_207); -x_210 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_211 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_210, x_6, x_7, x_8, x_9, x_209); -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -lean_dec(x_211); -x_135 = x_212; -x_136 = x_213; -goto block_197; -} -else -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_207, 1); -lean_inc(x_214); -lean_dec(x_207); -x_215 = lean_ctor_get(x_208, 0); -lean_inc(x_215); +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); lean_dec(x_208); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_206); -x_216 = lean_infer_type(x_206, x_6, x_7, x_8, x_9, x_214); -if (lean_obj_tag(x_216) == 0) +x_139 = x_209; +x_140 = x_210; +goto block_203; +} +else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_275; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_204, 1); +lean_inc(x_211); +lean_dec(x_204); +x_212 = lean_ctor_get(x_205, 0); +lean_inc(x_212); +lean_dec(x_205); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); +x_213 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_3, x_6, x_7, x_8, x_9, x_211); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_212); +x_215 = lean_ctor_get(x_213, 1); lean_inc(x_215); -x_275 = lean_infer_type(x_215, x_6, x_7, x_8, x_9, x_218); -if (lean_obj_tag(x_275) == 0) -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); -lean_dec(x_275); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_278 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_206, x_276, x_6, x_7, x_8, x_9, x_277); -if (lean_obj_tag(x_278) == 0) -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -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); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -x_281 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_279, x_4, x_6, x_7, x_8, x_9, x_280); -if (lean_obj_tag(x_281) == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_281, 1); -lean_inc(x_283); -lean_dec(x_281); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_1); -x_284 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_1, x_282, x_6, x_7, x_8, x_9, x_283); -if (lean_obj_tag(x_284) == 0) -{ -lean_object* x_285; -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -if (lean_obj_tag(x_285) == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); -x_287 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_288 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_287, x_6, x_7, x_8, x_9, x_286); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); -x_219 = x_289; -x_220 = x_290; -goto block_274; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; lean_object* x_295; lean_object* x_296; -x_291 = lean_ctor_get(x_284, 1); -lean_inc(x_291); -lean_dec(x_284); -x_292 = lean_ctor_get(x_285, 0); -lean_inc(x_292); -lean_dec(x_285); -x_293 = lean_box(0); -x_294 = 1; -lean_inc(x_5); -x_295 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_295, 0, x_5); -lean_ctor_set(x_295, 1, x_293); -lean_ctor_set_uint8(x_295, sizeof(void*)*2, x_294); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_296 = l_Lean_Meta_Simp_mkCongr(x_295, x_292, x_6, x_7, x_8, x_9, x_291); -if (lean_obj_tag(x_296) == 0) -{ -uint8_t x_297; -x_297 = !lean_is_exclusive(x_296); -if (x_297 == 0) -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_ctor_get(x_296, 0); -x_299 = lean_ctor_get(x_296, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_3); -x_300 = l_Lean_Meta_Simp_mkCongrFun(x_298, x_3, x_6, x_7, x_8, x_9, x_299); -if (lean_obj_tag(x_300) == 0) -{ -uint8_t x_301; +lean_dec(x_213); +x_216 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_217 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_216, x_6, x_7, x_8, x_9, x_215); +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); -lean_dec(x_215); -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_301 = !lean_is_exclusive(x_300); -if (x_301 == 0) -{ -lean_object* x_302; lean_object* x_303; -x_302 = lean_ctor_get(x_300, 0); -x_303 = lean_box(0); -lean_ctor_set(x_296, 1, x_303); -lean_ctor_set(x_296, 0, x_302); -lean_ctor_set(x_300, 0, x_296); -x_11 = x_300; -goto block_23; +x_139 = x_218; +x_140 = x_219; +goto block_203; } else { -lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; -x_304 = lean_ctor_get(x_300, 0); -x_305 = lean_ctor_get(x_300, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_300); -x_306 = lean_box(0); -lean_ctor_set(x_296, 1, x_306); -lean_ctor_set(x_296, 0, x_304); -x_307 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_307, 0, x_296); -lean_ctor_set(x_307, 1, x_305); -x_11 = x_307; -goto block_23; -} -} -else -{ -lean_object* x_308; lean_object* x_309; -lean_free_object(x_296); -x_308 = lean_ctor_get(x_300, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_300, 1); -lean_inc(x_309); -lean_dec(x_300); -x_219 = x_308; -x_220 = x_309; -goto block_274; -} -} -else -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_296, 0); -x_311 = lean_ctor_get(x_296, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_296); +lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_220 = lean_ctor_get(x_213, 1); +lean_inc(x_220); +lean_dec(x_213); +x_221 = lean_ctor_get(x_214, 0); +lean_inc(x_221); +lean_dec(x_214); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_3); -x_312 = l_Lean_Meta_Simp_mkCongrFun(x_310, x_3, x_6, x_7, x_8, x_9, x_311); -if (lean_obj_tag(x_312) == 0) -{ -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_217); -lean_dec(x_215); -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_313 = lean_ctor_get(x_312, 0); -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; -} else { - lean_dec_ref(x_312); - x_315 = lean_box(0); -} -x_316 = lean_box(0); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_313); -lean_ctor_set(x_317, 1, x_316); -if (lean_is_scalar(x_315)) { - x_318 = lean_alloc_ctor(0, 2, 0); -} else { - x_318 = x_315; -} -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_314); -x_11 = x_318; -goto block_23; -} -else -{ -lean_object* x_319; lean_object* x_320; -x_319 = lean_ctor_get(x_312, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_312, 1); -lean_inc(x_320); -lean_dec(x_312); -x_219 = x_319; -x_220 = x_320; -goto block_274; -} -} -} -else -{ -lean_object* x_321; lean_object* x_322; -x_321 = lean_ctor_get(x_296, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_296, 1); -lean_inc(x_322); -lean_dec(x_296); -x_219 = x_321; -x_220 = x_322; -goto block_274; -} -} -} -else -{ -lean_object* x_323; lean_object* x_324; -x_323 = lean_ctor_get(x_284, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_284, 1); -lean_inc(x_324); -lean_dec(x_284); -x_219 = x_323; -x_220 = x_324; -goto block_274; -} -} -else -{ -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_281, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_281, 1); -lean_inc(x_326); -lean_dec(x_281); -x_219 = x_325; -x_220 = x_326; -goto block_274; -} -} -else -{ -lean_object* x_327; lean_object* x_328; -x_327 = lean_ctor_get(x_278, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_278, 1); -lean_inc(x_328); -lean_dec(x_278); -x_219 = x_327; -x_220 = x_328; -goto block_274; -} -} -else -{ -lean_object* x_329; lean_object* x_330; -lean_dec(x_217); -lean_dec(x_215); -lean_dec(x_206); -x_329 = lean_ctor_get(x_275, 0); -lean_inc(x_329); -x_330 = lean_ctor_get(x_275, 1); -lean_inc(x_330); -lean_dec(x_275); -x_135 = x_329; -x_136 = x_330; -goto block_197; -} -block_274: -{ -uint8_t x_221; -x_221 = l_Lean_Exception_isRuntime(x_219); -if (x_221 == 0) -{ -lean_object* x_222; -lean_dec(x_219); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_222 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_215, x_217, x_6, x_7, x_8, x_9, x_220); +lean_inc(x_212); +x_222 = lean_infer_type(x_212, x_6, x_7, x_8, x_9, x_220); if (lean_obj_tag(x_222) == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_282; x_223 = lean_ctor_get(x_222, 0); lean_inc(x_223); x_224 = lean_ctor_get(x_222, 1); @@ -5973,74 +5654,398 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_4); -x_225 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_223, x_4, x_6, x_7, x_8, x_9, x_224); -if (lean_obj_tag(x_225) == 0) +lean_inc(x_221); +x_282 = lean_infer_type(x_221, x_6, x_7, x_8, x_9, x_224); +if (lean_obj_tag(x_282) == 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_283; lean_object* x_284; lean_object* x_285; +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +lean_dec(x_282); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_285 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_212, x_283, x_6, x_7, x_8, x_9, x_284); +if (lean_obj_tag(x_285) == 0) +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_285, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_285, 1); +lean_inc(x_287); +lean_dec(x_285); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_288 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_286, x_4, x_6, x_7, x_8, x_9, x_287); +if (lean_obj_tag(x_288) == 0) +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); +lean_inc(x_290); +lean_dec(x_288); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_291 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_1, x_289, x_6, x_7, x_8, x_9, x_290); +if (lean_obj_tag(x_291) == 0) +{ +lean_object* x_292; +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +if (lean_obj_tag(x_292) == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +lean_dec(x_291); +x_294 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_295 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_294, x_6, x_7, x_8, x_9, x_293); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_295, 1); +lean_inc(x_297); +lean_dec(x_295); +x_225 = x_296; +x_226 = x_297; +goto block_281; +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; lean_object* x_302; lean_object* x_303; +x_298 = lean_ctor_get(x_291, 1); +lean_inc(x_298); +lean_dec(x_291); +x_299 = lean_ctor_get(x_292, 0); +lean_inc(x_299); +lean_dec(x_292); +x_300 = lean_box(0); +x_301 = 1; +lean_inc(x_5); +x_302 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_302, 0, x_5); +lean_ctor_set(x_302, 1, x_300); +lean_ctor_set_uint8(x_302, sizeof(void*)*2, x_301); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_303 = l_Lean_Meta_Simp_mkCongr(x_302, x_299, x_6, x_7, x_8, x_9, x_298); +if (lean_obj_tag(x_303) == 0) +{ +uint8_t x_304; +x_304 = !lean_is_exclusive(x_303); +if (x_304 == 0) +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_305 = lean_ctor_get(x_303, 0); +x_306 = lean_ctor_get(x_303, 1); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_228 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_3, x_226, x_6, x_7, x_8, x_9, x_227); -if (lean_obj_tag(x_228) == 0) +x_307 = l_Lean_Meta_Simp_mkCongrFun(x_305, x_3, x_6, x_7, x_8, x_9, x_306); +if (lean_obj_tag(x_307) == 0) +{ +uint8_t x_308; +lean_dec(x_223); +lean_dec(x_221); +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_308 = !lean_is_exclusive(x_307); +if (x_308 == 0) +{ +lean_object* x_309; lean_object* x_310; +x_309 = lean_ctor_get(x_307, 0); +x_310 = lean_box(0); +lean_ctor_set(x_303, 1, x_310); +lean_ctor_set(x_303, 0, x_309); +lean_ctor_set(x_307, 0, x_303); +x_11 = x_307; +goto block_23; +} +else +{ +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_311 = lean_ctor_get(x_307, 0); +x_312 = lean_ctor_get(x_307, 1); +lean_inc(x_312); +lean_inc(x_311); +lean_dec(x_307); +x_313 = lean_box(0); +lean_ctor_set(x_303, 1, x_313); +lean_ctor_set(x_303, 0, x_311); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_303); +lean_ctor_set(x_314, 1, x_312); +x_11 = x_314; +goto block_23; +} +} +else +{ +lean_object* x_315; lean_object* x_316; +lean_free_object(x_303); +x_315 = lean_ctor_get(x_307, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_307, 1); +lean_inc(x_316); +lean_dec(x_307); +x_225 = x_315; +x_226 = x_316; +goto block_281; +} +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_317 = lean_ctor_get(x_303, 0); +x_318 = lean_ctor_get(x_303, 1); +lean_inc(x_318); +lean_inc(x_317); +lean_dec(x_303); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_3); +x_319 = l_Lean_Meta_Simp_mkCongrFun(x_317, x_3, x_6, x_7, x_8, x_9, x_318); +if (lean_obj_tag(x_319) == 0) +{ +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_dec(x_223); +lean_dec(x_221); +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_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_319)) { + lean_ctor_release(x_319, 0); + lean_ctor_release(x_319, 1); + x_322 = x_319; +} else { + lean_dec_ref(x_319); + x_322 = lean_box(0); +} +x_323 = lean_box(0); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_320); +lean_ctor_set(x_324, 1, x_323); +if (lean_is_scalar(x_322)) { + x_325 = lean_alloc_ctor(0, 2, 0); +} else { + x_325 = x_322; +} +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_321); +x_11 = x_325; +goto block_23; +} +else +{ +lean_object* x_326; lean_object* x_327; +x_326 = lean_ctor_get(x_319, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_319, 1); +lean_inc(x_327); +lean_dec(x_319); +x_225 = x_326; +x_226 = x_327; +goto block_281; +} +} +} +else +{ +lean_object* x_328; lean_object* x_329; +x_328 = lean_ctor_get(x_303, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_303, 1); +lean_inc(x_329); +lean_dec(x_303); +x_225 = x_328; +x_226 = x_329; +goto block_281; +} +} +} +else +{ +lean_object* x_330; lean_object* x_331; +x_330 = lean_ctor_get(x_291, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_291, 1); +lean_inc(x_331); +lean_dec(x_291); +x_225 = x_330; +x_226 = x_331; +goto block_281; +} +} +else +{ +lean_object* x_332; lean_object* x_333; +x_332 = lean_ctor_get(x_288, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_288, 1); +lean_inc(x_333); +lean_dec(x_288); +x_225 = x_332; +x_226 = x_333; +goto block_281; +} +} +else +{ +lean_object* x_334; lean_object* x_335; +x_334 = lean_ctor_get(x_285, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_285, 1); +lean_inc(x_335); +lean_dec(x_285); +x_225 = x_334; +x_226 = x_335; +goto block_281; +} +} +else +{ +lean_object* x_336; lean_object* x_337; +lean_dec(x_223); +lean_dec(x_221); +lean_dec(x_212); +x_336 = lean_ctor_get(x_282, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_282, 1); +lean_inc(x_337); +lean_dec(x_282); +x_139 = x_336; +x_140 = x_337; +goto block_203; +} +block_281: +{ +uint8_t x_227; +x_227 = l_Lean_Exception_isInterrupt(x_225); +if (x_227 == 0) +{ +uint8_t x_228; +x_228 = l_Lean_Exception_isRuntime(x_225); +if (x_228 == 0) { lean_object* x_229; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); +lean_dec(x_225); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_229 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_221, x_223, x_6, x_7, x_8, x_9, x_226); if (lean_obj_tag(x_229) == 0) { -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_230 = lean_ctor_get(x_228, 1); +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_229, 0); lean_inc(x_230); -lean_dec(x_228); -x_231 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_232 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_231, x_6, x_7, x_8, x_9, x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +x_232 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_230, x_4, x_6, x_7, x_8, x_9, x_231); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; x_233 = lean_ctor_get(x_232, 0); lean_inc(x_233); x_234 = lean_ctor_get(x_232, 1); lean_inc(x_234); lean_dec(x_232); -x_135 = x_233; -x_136 = x_234; -goto block_197; -} -else -{ -uint8_t x_235; -x_235 = !lean_is_exclusive(x_228); -if (x_235 == 0) -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; lean_object* x_242; lean_object* x_243; -x_236 = lean_ctor_get(x_228, 1); -x_237 = lean_ctor_get(x_228, 0); -lean_dec(x_237); -x_238 = lean_ctor_get(x_229, 0); -lean_inc(x_238); -lean_dec(x_229); -lean_inc(x_1); -lean_inc(x_5); -x_239 = l_Lean_Expr_app___override(x_5, x_1); -x_240 = lean_box(0); -x_241 = 1; -x_242 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_242, 0, x_239); -lean_ctor_set(x_242, 1, x_240); -lean_ctor_set_uint8(x_242, sizeof(void*)*2, x_241); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_243 = l_Lean_Meta_Simp_mkCongr(x_242, x_238, x_6, x_7, x_8, x_9, x_236); -if (lean_obj_tag(x_243) == 0) +lean_inc(x_3); +x_235 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_3, x_233, x_6, x_7, x_8, x_9, x_234); +if (lean_obj_tag(x_235) == 0) { -uint8_t x_244; +lean_object* x_236; +x_236 = lean_ctor_get(x_235, 0); +lean_inc(x_236); +if (lean_obj_tag(x_236) == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_237 = lean_ctor_get(x_235, 1); +lean_inc(x_237); +lean_dec(x_235); +x_238 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_239 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_238, x_6, x_7, x_8, x_9, x_237); +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_139 = x_240; +x_140 = x_241; +goto block_203; +} +else +{ +uint8_t x_242; +x_242 = !lean_is_exclusive(x_235); +if (x_242 == 0) +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; lean_object* x_250; +x_243 = lean_ctor_get(x_235, 1); +x_244 = lean_ctor_get(x_235, 0); +lean_dec(x_244); +x_245 = lean_ctor_get(x_236, 0); +lean_inc(x_245); +lean_dec(x_236); +lean_inc(x_1); +lean_inc(x_5); +x_246 = l_Lean_Expr_app___override(x_5, x_1); +x_247 = lean_box(0); +x_248 = 1; +x_249 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_247); +lean_ctor_set_uint8(x_249, sizeof(void*)*2, x_248); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_250 = l_Lean_Meta_Simp_mkCongr(x_249, x_245, x_6, x_7, x_8, x_9, x_243); +if (lean_obj_tag(x_250) == 0) +{ +uint8_t x_251; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6050,76 +6055,76 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_244 = !lean_is_exclusive(x_243); -if (x_244 == 0) +x_251 = !lean_is_exclusive(x_250); +if (x_251 == 0) { -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_243, 0); -x_246 = lean_box(0); -lean_ctor_set(x_228, 1, x_246); -lean_ctor_set(x_228, 0, x_245); -lean_ctor_set(x_243, 0, x_228); -x_11 = x_243; -goto block_23; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_247 = lean_ctor_get(x_243, 0); -x_248 = lean_ctor_get(x_243, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_243); -x_249 = lean_box(0); -lean_ctor_set(x_228, 1, x_249); -lean_ctor_set(x_228, 0, x_247); -x_250 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_250, 0, x_228); -lean_ctor_set(x_250, 1, x_248); +lean_object* x_252; lean_object* x_253; +x_252 = lean_ctor_get(x_250, 0); +x_253 = lean_box(0); +lean_ctor_set(x_235, 1, x_253); +lean_ctor_set(x_235, 0, x_252); +lean_ctor_set(x_250, 0, x_235); x_11 = x_250; goto block_23; } -} else { -lean_object* x_251; lean_object* x_252; -lean_free_object(x_228); -x_251 = lean_ctor_get(x_243, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_243, 1); -lean_inc(x_252); -lean_dec(x_243); -x_135 = x_251; -x_136 = x_252; -goto block_197; -} -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_object* x_258; lean_object* x_259; -x_253 = lean_ctor_get(x_228, 1); -lean_inc(x_253); -lean_dec(x_228); -x_254 = lean_ctor_get(x_229, 0); +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_254 = lean_ctor_get(x_250, 0); +x_255 = lean_ctor_get(x_250, 1); +lean_inc(x_255); lean_inc(x_254); -lean_dec(x_229); +lean_dec(x_250); +x_256 = lean_box(0); +lean_ctor_set(x_235, 1, x_256); +lean_ctor_set(x_235, 0, x_254); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_235); +lean_ctor_set(x_257, 1, x_255); +x_11 = x_257; +goto block_23; +} +} +else +{ +lean_object* x_258; lean_object* x_259; +lean_free_object(x_235); +x_258 = lean_ctor_get(x_250, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_250, 1); +lean_inc(x_259); +lean_dec(x_250); +x_139 = x_258; +x_140 = x_259; +goto block_203; +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; +x_260 = lean_ctor_get(x_235, 1); +lean_inc(x_260); +lean_dec(x_235); +x_261 = lean_ctor_get(x_236, 0); +lean_inc(x_261); +lean_dec(x_236); lean_inc(x_1); lean_inc(x_5); -x_255 = l_Lean_Expr_app___override(x_5, x_1); -x_256 = lean_box(0); -x_257 = 1; -x_258 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -lean_ctor_set_uint8(x_258, sizeof(void*)*2, x_257); +x_262 = l_Lean_Expr_app___override(x_5, x_1); +x_263 = lean_box(0); +x_264 = 1; +x_265 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +lean_ctor_set_uint8(x_265, sizeof(void*)*2, x_264); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_259 = l_Lean_Meta_Simp_mkCongr(x_258, x_254, x_6, x_7, x_8, x_9, x_253); -if (lean_obj_tag(x_259) == 0) +x_266 = l_Lean_Meta_Simp_mkCongr(x_265, x_261, x_6, x_7, x_8, x_9, x_260); +if (lean_obj_tag(x_266) == 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_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6129,138 +6134,147 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -if (lean_is_exclusive(x_259)) { - lean_ctor_release(x_259, 0); - lean_ctor_release(x_259, 1); - x_262 = x_259; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_269 = x_266; } else { - lean_dec_ref(x_259); - x_262 = lean_box(0); + lean_dec_ref(x_266); + x_269 = lean_box(0); } -x_263 = lean_box(0); -x_264 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_264, 0, x_260); -lean_ctor_set(x_264, 1, x_263); -if (lean_is_scalar(x_262)) { - x_265 = lean_alloc_ctor(0, 2, 0); +x_270 = lean_box(0); +x_271 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_271, 0, x_267); +lean_ctor_set(x_271, 1, x_270); +if (lean_is_scalar(x_269)) { + x_272 = lean_alloc_ctor(0, 2, 0); } else { - x_265 = x_262; + x_272 = x_269; } -lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_261); -x_11 = x_265; +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_268); +x_11 = x_272; goto block_23; } else { -lean_object* x_266; lean_object* x_267; -x_266 = lean_ctor_get(x_259, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_259, 1); -lean_inc(x_267); -lean_dec(x_259); -x_135 = x_266; -x_136 = x_267; -goto block_197; -} -} -} -} -else -{ -lean_object* x_268; lean_object* x_269; -x_268 = lean_ctor_get(x_228, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_228, 1); -lean_inc(x_269); -lean_dec(x_228); -x_135 = x_268; -x_136 = x_269; -goto block_197; -} -} -else -{ -lean_object* x_270; lean_object* x_271; -x_270 = lean_ctor_get(x_225, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_225, 1); -lean_inc(x_271); -lean_dec(x_225); -x_135 = x_270; -x_136 = x_271; -goto block_197; -} -} -else -{ -lean_object* x_272; lean_object* x_273; -x_272 = lean_ctor_get(x_222, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_222, 1); +lean_object* x_273; lean_object* x_274; +x_273 = lean_ctor_get(x_266, 0); lean_inc(x_273); +x_274 = lean_ctor_get(x_266, 1); +lean_inc(x_274); +lean_dec(x_266); +x_139 = x_273; +x_140 = x_274; +goto block_203; +} +} +} +} +else +{ +lean_object* x_275; lean_object* x_276; +x_275 = lean_ctor_get(x_235, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_235, 1); +lean_inc(x_276); +lean_dec(x_235); +x_139 = x_275; +x_140 = x_276; +goto block_203; +} +} +else +{ +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_232, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_232, 1); +lean_inc(x_278); +lean_dec(x_232); +x_139 = x_277; +x_140 = x_278; +goto block_203; +} +} +else +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_229, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_229, 1); +lean_inc(x_280); +lean_dec(x_229); +x_139 = x_279; +x_140 = x_280; +goto block_203; +} +} +else +{ +lean_dec(x_223); +lean_dec(x_221); +x_139 = x_225; +x_140 = x_226; +goto block_203; +} +} +else +{ +lean_dec(x_223); +lean_dec(x_221); +x_139 = x_225; +x_140 = x_226; +goto block_203; +} +} +} +else +{ +lean_object* x_338; lean_object* x_339; +lean_dec(x_221); +lean_dec(x_212); +x_338 = lean_ctor_get(x_222, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_222, 1); +lean_inc(x_339); lean_dec(x_222); -x_135 = x_272; -x_136 = x_273; -goto block_197; -} -} -else -{ -lean_dec(x_217); -lean_dec(x_215); -x_135 = x_219; -x_136 = x_220; -goto block_197; +x_139 = x_338; +x_140 = x_339; +goto block_203; } } } else { -lean_object* x_331; lean_object* x_332; -lean_dec(x_215); -lean_dec(x_206); -x_331 = lean_ctor_get(x_216, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_216, 1); -lean_inc(x_332); -lean_dec(x_216); -x_135 = x_331; -x_136 = x_332; -goto block_197; +lean_object* x_340; lean_object* x_341; +lean_dec(x_212); +x_340 = lean_ctor_get(x_213, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_213, 1); +lean_inc(x_341); +lean_dec(x_213); +x_139 = x_340; +x_140 = x_341; +goto block_203; } } } else { -lean_object* x_333; lean_object* x_334; -lean_dec(x_206); -x_333 = lean_ctor_get(x_207, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_207, 1); -lean_inc(x_334); -lean_dec(x_207); -x_135 = x_333; -x_136 = x_334; -goto block_197; -} -} -} -else -{ -lean_object* x_335; lean_object* x_336; -x_335 = lean_ctor_get(x_198, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_198, 1); -lean_inc(x_336); -lean_dec(x_198); -x_135 = x_335; -x_136 = x_336; -goto block_197; +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_204, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_204, 1); +lean_inc(x_343); +lean_dec(x_204); +x_139 = x_342; +x_140 = x_343; +goto block_203; } block_23: { @@ -6452,142 +6466,149 @@ goto block_42; } } } -block_67: +block_69: { uint8_t x_60; -x_60 = l_Lean_Exception_isRuntime(x_58); +x_60 = l_Lean_Exception_isInterrupt(x_58); if (x_60 == 0) { -lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +uint8_t x_61; +x_61 = l_Lean_Exception_isRuntime(x_58); +if (x_61 == 0) +{ +lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_58); -x_61 = lean_box(0); -x_62 = 1; -x_63 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_63, 0, x_2); -lean_ctor_set(x_63, 1, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*2, x_62); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_43 = x_65; +x_62 = lean_box(0); +x_63 = 1; +x_64 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_64, 0, x_2); +lean_ctor_set(x_64, 1, x_62); +lean_ctor_set_uint8(x_64, sizeof(void*)*2, x_63); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_43 = x_66; x_44 = x_59; goto block_57; } else { -lean_object* x_66; +lean_object* x_67; lean_dec(x_2); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_58); -lean_ctor_set(x_66, 1, x_59); -return x_66; +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_58); +lean_ctor_set(x_67, 1, x_59); +x_11 = x_67; +goto block_23; } } -block_134: +else { -uint8_t x_70; -x_70 = l_Lean_Exception_isRuntime(x_68); -if (x_70 == 0) +lean_object* x_68; +lean_dec(x_2); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_58); +lean_ctor_set(x_68, 1, x_59); +x_11 = x_68; +goto block_23; +} +} +block_138: { -lean_object* x_71; -lean_dec(x_68); +uint8_t x_72; +x_72 = l_Lean_Exception_isInterrupt(x_70); +if (x_72 == 0) +{ +uint8_t x_73; +x_73 = l_Lean_Exception_isRuntime(x_70); +if (x_73 == 0) +{ +lean_object* x_74; +lean_dec(x_70); lean_inc(x_1); -x_71 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_1); -if (lean_obj_tag(x_71) == 0) +x_74 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_1); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_72 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_73 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_72, x_6, x_7, x_8, x_9, x_69); +x_75 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_76 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_75, x_6, x_7, x_8, x_9, x_71); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_58 = x_74; -x_59 = x_75; -goto block_67; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_71, 0); -lean_inc(x_76); -lean_dec(x_71); -x_77 = lean_ctor_get(x_76, 1); +x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); lean_dec(x_76); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_78 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_3, x_6, x_7, x_8, x_9, x_69); -if (lean_obj_tag(x_78) == 0) -{ -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_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_77); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_82 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_81, x_6, x_7, x_8, x_9, x_80); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -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_58 = x_83; -x_59 = x_84; -goto block_67; +x_58 = x_77; +x_59 = x_78; +goto block_69; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_78, 1); -lean_inc(x_85); -lean_dec(x_78); -x_86 = lean_ctor_get(x_79, 0); -lean_inc(x_86); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_74, 0); +lean_inc(x_79); +lean_dec(x_74); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); lean_dec(x_79); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_87 = lean_infer_type(x_86, x_6, x_7, x_8, x_9, x_85); -if (lean_obj_tag(x_87) == 0) +x_81 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_3, x_6, x_7, x_8, x_9, x_71); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +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_dec(x_80); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_85 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_84, x_6, x_7, x_8, x_9, x_83); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_58 = x_86; +x_59 = x_87; +goto block_69; +} +else { lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 0); +x_88 = lean_ctor_get(x_81, 1); lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +lean_dec(x_81); +x_89 = lean_ctor_get(x_82, 0); lean_inc(x_89); -lean_dec(x_87); +lean_dec(x_82); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_90 = l_Lean_Meta_mkNumeral(x_88, x_77, x_6, x_7, x_8, x_9, x_89); +x_90 = lean_infer_type(x_89, x_6, x_7, x_8, x_9, x_88); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; lean_object* x_92; lean_object* x_93; @@ -6600,7 +6621,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_93 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_91, x_4, x_6, x_7, x_8, x_9, x_92); +x_93 = l_Lean_Meta_mkNumeral(x_91, x_80, x_6, x_7, x_8, x_9, x_92); if (lean_obj_tag(x_93) == 0) { lean_object* x_94; lean_object* x_95; lean_object* x_96; @@ -6613,215 +6634,183 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_96 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_1, x_94, x_6, x_7, x_8, x_9, x_95); +x_96 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_94, x_4, x_6, x_7, x_8, x_9, x_95); if (lean_obj_tag(x_96) == 0) { -lean_object* x_97; +lean_object* x_97; lean_object* x_98; lean_object* x_99; x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_5); -lean_dec(x_3); x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); lean_dec(x_96); -x_99 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_100 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_99, x_6, x_7, x_8, x_9, x_98); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_58 = x_101; -x_59 = x_102; -goto block_67; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; -x_103 = lean_ctor_get(x_96, 1); -lean_inc(x_103); -lean_dec(x_96); -x_104 = lean_ctor_get(x_97, 0); -lean_inc(x_104); -lean_dec(x_97); -x_105 = lean_box(0); -x_106 = 1; -x_107 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_107, 0, x_5); -lean_ctor_set(x_107, 1, x_105); -lean_ctor_set_uint8(x_107, sizeof(void*)*2, x_106); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_108 = l_Lean_Meta_Simp_mkCongr(x_107, x_104, x_6, x_7, x_8, x_9, x_103); -if (lean_obj_tag(x_108) == 0) +x_99 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_1, x_97, x_6, x_7, x_8, x_9, x_98); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Meta_Simp_mkCongrFun(x_109, x_3, x_6, x_7, x_8, x_9, x_110); -if (lean_obj_tag(x_111) == 0) +lean_object* x_100; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) { -uint8_t x_112; -lean_dec(x_2); -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, 1); -x_114 = lean_box(0); -lean_ctor_set(x_111, 1, x_114); -x_43 = x_111; -x_44 = x_113; -goto block_57; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_5); +lean_dec(x_3); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_103 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_102, x_6, x_7, x_8, x_9, x_101); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_58 = x_104; +x_59 = x_105; +goto block_69; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -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_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_99, 1); +lean_inc(x_106); +lean_dec(x_99); +x_107 = lean_ctor_get(x_100, 0); +lean_inc(x_107); +lean_dec(x_100); +x_108 = lean_box(0); +x_109 = 1; +x_110 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_110, 0, x_5); +lean_ctor_set(x_110, 1, x_108); +lean_ctor_set_uint8(x_110, sizeof(void*)*2, x_109); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_111 = l_Lean_Meta_Simp_mkCongr(x_110, x_107, x_6, x_7, x_8, x_9, x_106); +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, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); lean_dec(x_111); +x_114 = l_Lean_Meta_Simp_mkCongrFun(x_112, x_3, x_6, x_7, x_8, x_9, x_113); +if (lean_obj_tag(x_114) == 0) +{ +uint8_t x_115; +lean_dec(x_2); +x_115 = !lean_is_exclusive(x_114); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_114, 1); x_117 = lean_box(0); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_117); -x_43 = x_118; +lean_ctor_set(x_114, 1, x_117); +x_43 = x_114; x_44 = x_116; goto block_57; } -} else { -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_111, 0); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_114, 0); +x_119 = lean_ctor_get(x_114, 1); lean_inc(x_119); -x_120 = lean_ctor_get(x_111, 1); -lean_inc(x_120); -lean_dec(x_111); -x_58 = x_119; -x_59 = x_120; -goto block_67; +lean_inc(x_118); +lean_dec(x_114); +x_120 = lean_box(0); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_120); +x_43 = x_121; +x_44 = x_119; +goto block_57; } } else { -lean_object* x_121; lean_object* x_122; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_121 = lean_ctor_get(x_108, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_108, 1); +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_114, 0); lean_inc(x_122); -lean_dec(x_108); -x_58 = x_121; -x_59 = x_122; -goto block_67; -} -} -} -else -{ -lean_object* x_123; lean_object* x_124; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_123 = lean_ctor_get(x_96, 0); +x_123 = lean_ctor_get(x_114, 1); lean_inc(x_123); -x_124 = lean_ctor_get(x_96, 1); +lean_dec(x_114); +x_58 = x_122; +x_59 = x_123; +goto block_69; +} +} +else +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_124 = lean_ctor_get(x_111, 0); lean_inc(x_124); -lean_dec(x_96); -x_58 = x_123; -x_59 = x_124; -goto block_67; -} -} -else -{ -lean_object* x_125; lean_object* x_126; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_125 = lean_ctor_get(x_93, 0); +x_125 = lean_ctor_get(x_111, 1); lean_inc(x_125); -x_126 = lean_ctor_get(x_93, 1); +lean_dec(x_111); +x_58 = x_124; +x_59 = x_125; +goto block_69; +} +} +} +else +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_126 = lean_ctor_get(x_99, 0); lean_inc(x_126); -lean_dec(x_93); -x_58 = x_125; -x_59 = x_126; -goto block_67; -} -} -else -{ -lean_object* x_127; lean_object* x_128; -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_1); -x_127 = lean_ctor_get(x_90, 0); +x_127 = lean_ctor_get(x_99, 1); lean_inc(x_127); -x_128 = lean_ctor_get(x_90, 1); +lean_dec(x_99); +x_58 = x_126; +x_59 = x_127; +goto block_69; +} +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_128 = lean_ctor_get(x_96, 0); lean_inc(x_128); -lean_dec(x_90); -x_58 = x_127; -x_59 = x_128; -goto block_67; -} -} -else -{ -lean_object* x_129; lean_object* x_130; -lean_dec(x_77); -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_1); -x_129 = lean_ctor_get(x_87, 0); +x_129 = lean_ctor_get(x_96, 1); lean_inc(x_129); -x_130 = lean_ctor_get(x_87, 1); -lean_inc(x_130); -lean_dec(x_87); -x_58 = x_129; -x_59 = x_130; -goto block_67; -} +lean_dec(x_96); +x_58 = x_128; +x_59 = x_129; +goto block_69; } } else { -lean_object* x_131; lean_object* x_132; -lean_dec(x_77); +lean_object* x_130; lean_object* x_131; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6830,20 +6819,65 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_131 = lean_ctor_get(x_78, 0); +x_130 = lean_ctor_get(x_93, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_93, 1); lean_inc(x_131); -x_132 = lean_ctor_get(x_78, 1); +lean_dec(x_93); +x_58 = x_130; +x_59 = x_131; +goto block_69; +} +} +else +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_80); +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_1); +x_132 = lean_ctor_get(x_90, 0); lean_inc(x_132); -lean_dec(x_78); -x_58 = x_131; -x_59 = x_132; -goto block_67; +x_133 = lean_ctor_get(x_90, 1); +lean_inc(x_133); +lean_dec(x_90); +x_58 = x_132; +x_59 = x_133; +goto block_69; } } } else { -lean_object* x_133; +lean_object* x_134; lean_object* x_135; +lean_dec(x_80); +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_1); +x_134 = lean_ctor_get(x_81, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_81, 1); +lean_inc(x_135); +lean_dec(x_81); +x_58 = x_134; +x_59 = x_135; +goto block_69; +} +} +} +else +{ +lean_object* x_136; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6853,177 +6887,200 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_68); -lean_ctor_set(x_133, 1, x_69); -x_11 = x_133; +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_70); +lean_ctor_set(x_136, 1, x_71); +x_11 = x_136; goto block_23; } } -block_197: -{ -uint8_t x_137; -x_137 = l_Lean_Exception_isRuntime(x_135); -if (x_137 == 0) -{ -lean_object* x_138; -lean_dec(x_135); -lean_inc(x_3); -x_138 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_3); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_139 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_140 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_139, x_6, x_7, x_8, x_9, x_136); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -x_68 = x_141; -x_69 = x_142; -goto block_134; -} else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_138, 0); -lean_inc(x_143); -lean_dec(x_138); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -lean_dec(x_143); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_145 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_1, x_6, x_7, x_8, x_9, x_136); -if (lean_obj_tag(x_145) == 0) +lean_object* x_137; +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_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_70); +lean_ctor_set(x_137, 1, x_71); +x_11 = x_137; +goto block_23; +} +} +block_203: { -lean_object* x_146; +uint8_t x_141; +x_141 = l_Lean_Exception_isInterrupt(x_139); +if (x_141 == 0) +{ +uint8_t x_142; +x_142 = l_Lean_Exception_isRuntime(x_139); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_139); +lean_inc(x_3); +x_143 = l_Lean_Elab_Tactic_NormCast_isNumeral_x3f(x_3); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_144 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_145 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_144, x_6, x_7, x_8, x_9, x_140); x_146 = lean_ctor_get(x_145, 0); lean_inc(x_146); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_144); x_147 = lean_ctor_get(x_145, 1); lean_inc(x_147); lean_dec(x_145); -x_148 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_149 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_148, x_6, x_7, x_8, x_9, x_147); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_68 = x_150; -x_69 = x_151; -goto block_134; +x_70 = x_146; +x_71 = x_147; +goto block_138; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_145, 1); -lean_inc(x_152); -lean_dec(x_145); -x_153 = lean_ctor_get(x_146, 0); -lean_inc(x_153); -lean_dec(x_146); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_143, 0); +lean_inc(x_148); +lean_dec(x_143); +x_149 = lean_ctor_get(x_148, 1); +lean_inc(x_149); +lean_dec(x_148); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_154 = lean_infer_type(x_153, x_6, x_7, x_8, x_9, x_152); -if (lean_obj_tag(x_154) == 0) +x_150 = l_Lean_Elab_Tactic_NormCast_isCoeOf_x3f(x_1, x_6, x_7, x_8, x_9, x_140); +if (lean_obj_tag(x_150) == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_object* x_151; +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_dec(x_149); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_154 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_153, x_6, x_7, x_8, x_9, x_152); x_155 = lean_ctor_get(x_154, 0); lean_inc(x_155); x_156 = lean_ctor_get(x_154, 1); lean_inc(x_156); lean_dec(x_154); +x_70 = x_155; +x_71 = x_156; +goto block_138; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_150, 1); +lean_inc(x_157); +lean_dec(x_150); +x_158 = lean_ctor_get(x_151, 0); +lean_inc(x_158); +lean_dec(x_151); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_157 = l_Lean_Meta_mkNumeral(x_155, x_144, x_6, x_7, x_8, x_9, x_156); -if (lean_obj_tag(x_157) == 0) +x_159 = lean_infer_type(x_158, x_6, x_7, x_8, x_9, x_157); +if (lean_obj_tag(x_159) == 0) { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_162 = l_Lean_Meta_mkNumeral(x_160, x_149, x_6, x_7, x_8, x_9, x_161); +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, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +lean_dec(x_162); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); -x_160 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_158, x_4, x_6, x_7, x_8, x_9, x_159); -if (lean_obj_tag(x_160) == 0) +x_165 = l_Lean_Elab_Tactic_NormCast_mkCoe(x_163, x_4, x_6, x_7, x_8, x_9, x_164); +if (lean_obj_tag(x_165) == 0) { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_163 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_3, x_161, x_6, x_7, x_8, x_9, x_162); -if (lean_obj_tag(x_163) == 0) +x_168 = l_Lean_Elab_Tactic_NormCast_proveEqUsingDown(x_3, x_166, x_6, x_7, x_8, x_9, x_167); +if (lean_obj_tag(x_168) == 0) { -lean_object* x_164; -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; -x_167 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_166, x_6, x_7, x_8, x_9, x_165); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); +lean_object* x_169; +x_169 = lean_ctor_get(x_168, 0); lean_inc(x_169); -lean_dec(x_167); -x_68 = x_168; -x_69 = x_169; -goto block_134; +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; +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec(x_168); +x_171 = l_Lean_Elab_Tactic_NormCast_mkCoe___closed__2; +x_172 = l_Lean_throwError___at_Lean_Elab_Tactic_NormCast_splittingProcedure___spec__1(x_171, x_6, x_7, x_8, x_9, x_170); +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_70 = x_173; +x_71 = x_174; +goto block_138; } else { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; -x_170 = lean_ctor_get(x_163, 1); -lean_inc(x_170); -lean_dec(x_163); -x_171 = lean_ctor_get(x_164, 0); -lean_inc(x_171); -lean_dec(x_164); +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; +x_175 = lean_ctor_get(x_168, 1); +lean_inc(x_175); +lean_dec(x_168); +x_176 = lean_ctor_get(x_169, 0); +lean_inc(x_176); +lean_dec(x_169); lean_inc(x_1); lean_inc(x_5); -x_172 = l_Lean_Expr_app___override(x_5, x_1); -x_173 = lean_box(0); -x_174 = 1; -x_175 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set_uint8(x_175, sizeof(void*)*2, x_174); +x_177 = l_Lean_Expr_app___override(x_5, x_1); +x_178 = lean_box(0); +x_179 = 1; +x_180 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +lean_ctor_set_uint8(x_180, sizeof(void*)*2, x_179); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_176 = l_Lean_Meta_Simp_mkCongr(x_175, x_171, x_6, x_7, x_8, x_9, x_170); -if (lean_obj_tag(x_176) == 0) +x_181 = l_Lean_Meta_Simp_mkCongr(x_180, x_176, x_6, x_7, x_8, x_9, x_175); +if (lean_obj_tag(x_181) == 0) { -uint8_t x_177; +uint8_t x_182; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7033,120 +7090,120 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) +x_182 = !lean_is_exclusive(x_181); +if (x_182 == 0) { -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_176, 1); -x_179 = lean_box(0); -lean_ctor_set(x_176, 1, x_179); -x_24 = x_176; -x_25 = x_178; +lean_object* x_183; lean_object* x_184; +x_183 = lean_ctor_get(x_181, 1); +x_184 = lean_box(0); +lean_ctor_set(x_181, 1, x_184); +x_24 = x_181; +x_25 = x_183; goto block_42; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_180 = lean_ctor_get(x_176, 0); -x_181 = lean_ctor_get(x_176, 1); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_176); -x_182 = lean_box(0); -x_183 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_183, 0, x_180); -lean_ctor_set(x_183, 1, x_182); -x_24 = x_183; -x_25 = x_181; -goto block_42; -} -} -else -{ -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_176, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_176, 1); -lean_inc(x_185); -lean_dec(x_176); -x_68 = x_184; -x_69 = x_185; -goto block_134; -} -} -} -else -{ -lean_object* x_186; lean_object* x_187; -x_186 = lean_ctor_get(x_163, 0); +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_185 = lean_ctor_get(x_181, 0); +x_186 = lean_ctor_get(x_181, 1); lean_inc(x_186); -x_187 = lean_ctor_get(x_163, 1); -lean_inc(x_187); -lean_dec(x_163); -x_68 = x_186; -x_69 = x_187; -goto block_134; +lean_inc(x_185); +lean_dec(x_181); +x_187 = lean_box(0); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_187); +x_24 = x_188; +x_25 = x_186; +goto block_42; } } else { -lean_object* x_188; lean_object* x_189; -x_188 = lean_ctor_get(x_160, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_160, 1); +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_181, 0); lean_inc(x_189); -lean_dec(x_160); -x_68 = x_188; -x_69 = x_189; -goto block_134; -} -} -else -{ -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_157, 0); +x_190 = lean_ctor_get(x_181, 1); lean_inc(x_190); -x_191 = lean_ctor_get(x_157, 1); +lean_dec(x_181); +x_70 = x_189; +x_71 = x_190; +goto block_138; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_168, 0); lean_inc(x_191); -lean_dec(x_157); -x_68 = x_190; -x_69 = x_191; -goto block_134; -} -} -else -{ -lean_object* x_192; lean_object* x_193; -lean_dec(x_144); -x_192 = lean_ctor_get(x_154, 0); +x_192 = lean_ctor_get(x_168, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_154, 1); +lean_dec(x_168); +x_70 = x_191; +x_71 = x_192; +goto block_138; +} +} +else +{ +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_165, 0); lean_inc(x_193); -lean_dec(x_154); -x_68 = x_192; -x_69 = x_193; -goto block_134; -} -} -} -else -{ -lean_object* x_194; lean_object* x_195; -lean_dec(x_144); -x_194 = lean_ctor_get(x_145, 0); +x_194 = lean_ctor_get(x_165, 1); lean_inc(x_194); -x_195 = lean_ctor_get(x_145, 1); +lean_dec(x_165); +x_70 = x_193; +x_71 = x_194; +goto block_138; +} +} +else +{ +lean_object* x_195; lean_object* x_196; +x_195 = lean_ctor_get(x_162, 0); lean_inc(x_195); -lean_dec(x_145); -x_68 = x_194; -x_69 = x_195; -goto block_134; +x_196 = lean_ctor_get(x_162, 1); +lean_inc(x_196); +lean_dec(x_162); +x_70 = x_195; +x_71 = x_196; +goto block_138; +} +} +else +{ +lean_object* x_197; lean_object* x_198; +lean_dec(x_149); +x_197 = lean_ctor_get(x_159, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_159, 1); +lean_inc(x_198); +lean_dec(x_159); +x_70 = x_197; +x_71 = x_198; +goto block_138; } } } else { -lean_object* x_196; +lean_object* x_199; lean_object* x_200; +lean_dec(x_149); +x_199 = lean_ctor_get(x_150, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_150, 1); +lean_inc(x_200); +lean_dec(x_150); +x_70 = x_199; +x_71 = x_200; +goto block_138; +} +} +} +else +{ +lean_object* x_201; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7156,10 +7213,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_135); -lean_ctor_set(x_196, 1, x_136); -x_11 = x_196; +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_139); +lean_ctor_set(x_201, 1, x_140); +x_11 = x_201; +goto block_23; +} +} +else +{ +lean_object* x_202; +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_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_139); +lean_ctor_set(x_202, 1, x_140); +x_11 = x_202; goto block_23; } } @@ -10726,20 +10802,24 @@ if (x_19 == 0) { lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_11, 0); -x_21 = l_Lean_Exception_isRuntime(x_20); +x_21 = l_Lean_Exception_isInterrupt(x_20); if (x_21 == 0) { -uint8_t x_22; lean_object* x_23; lean_object* x_24; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_20); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_dec(x_20); -x_22 = 1; -x_23 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_23, 0, x_2); -lean_ctor_set(x_23, 1, x_1); -lean_ctor_set_uint8(x_23, sizeof(void*)*2, x_22); -x_24 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_24, 0, x_23); +x_23 = 1; +x_24 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_24, 0, x_2); +lean_ctor_set(x_24, 1, x_1); +lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_23); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_24); lean_ctor_set_tag(x_11, 0); -lean_ctor_set(x_11, 0, x_24); +lean_ctor_set(x_11, 0, x_25); return x_11; } else @@ -10751,38 +10831,60 @@ return x_11; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_11, 0); -x_26 = lean_ctor_get(x_11, 1); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_11, 0); +x_27 = lean_ctor_get(x_11, 1); +lean_inc(x_27); lean_inc(x_26); -lean_inc(x_25); lean_dec(x_11); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) { -uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_25); -x_28 = 1; -x_29 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_29, 0, x_2); -lean_ctor_set(x_29, 1, x_1); -lean_ctor_set_uint8(x_29, sizeof(void*)*2, x_28); -x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_26); -return x_31; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_26); +x_30 = 1; +x_31 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_31, 0, x_2); +lean_ctor_set(x_31, 1, x_1); +lean_ctor_set_uint8(x_31, sizeof(void*)*2, x_30); +x_32 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_27); +return x_33; } else { -lean_object* x_32; +lean_object* x_34; lean_dec(x_2); lean_dec(x_1); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_25); -lean_ctor_set(x_32, 1, x_26); -return x_32; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_27); +return x_34; +} +} +else +{ +lean_object* x_35; +lean_dec(x_2); +lean_dec(x_1); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_26); +lean_ctor_set(x_35, 1, x_27); +return x_35; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/RCases.c b/stage0/stdlib/Lean/Elab/Tactic/RCases.c index c2befb41cb..28e3dde2b4 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/RCases.c +++ b/stage0/stdlib/Lean/Elab/Tactic/RCases.c @@ -19600,7 +19600,7 @@ return x_99; } 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; 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_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; uint8_t x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; x_100 = lean_ctor_get(x_12, 0); x_101 = lean_ctor_get(x_12, 1); x_102 = lean_ctor_get(x_12, 2); @@ -19612,7 +19612,10 @@ x_107 = lean_ctor_get(x_12, 7); x_108 = lean_ctor_get(x_12, 8); x_109 = lean_ctor_get(x_12, 9); x_110 = lean_ctor_get(x_12, 10); -x_111 = lean_ctor_get_uint8(x_12, sizeof(void*)*11); +x_111 = lean_ctor_get_uint8(x_12, sizeof(void*)*12); +x_112 = lean_ctor_get(x_12, 11); +x_113 = lean_ctor_get_uint8(x_12, sizeof(void*)*12 + 1); +lean_inc(x_112); lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); @@ -19625,432 +19628,434 @@ lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); lean_dec(x_12); -x_112 = l_Lean_replaceRef(x_15, x_105); +x_114 = l_Lean_replaceRef(x_15, x_105); lean_dec(x_105); -x_113 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_113, 0, x_100); -lean_ctor_set(x_113, 1, x_101); -lean_ctor_set(x_113, 2, x_102); -lean_ctor_set(x_113, 3, x_103); -lean_ctor_set(x_113, 4, x_104); -lean_ctor_set(x_113, 5, x_112); -lean_ctor_set(x_113, 6, x_106); -lean_ctor_set(x_113, 7, x_107); -lean_ctor_set(x_113, 8, x_108); -lean_ctor_set(x_113, 9, x_109); -lean_ctor_set(x_113, 10, x_110); -lean_ctor_set_uint8(x_113, sizeof(void*)*11, x_111); +x_115 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_115, 0, x_100); +lean_ctor_set(x_115, 1, x_101); +lean_ctor_set(x_115, 2, x_102); +lean_ctor_set(x_115, 3, x_103); +lean_ctor_set(x_115, 4, x_104); +lean_ctor_set(x_115, 5, x_114); +lean_ctor_set(x_115, 6, x_106); +lean_ctor_set(x_115, 7, x_107); +lean_ctor_set(x_115, 8, x_108); +lean_ctor_set(x_115, 9, x_109); +lean_ctor_set(x_115, 10, x_110); +lean_ctor_set(x_115, 11, x_112); +lean_ctor_set_uint8(x_115, sizeof(void*)*12, x_111); +lean_ctor_set_uint8(x_115, sizeof(void*)*12 + 1, x_113); switch (lean_obj_tag(x_6)) { case 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; lean_object* x_120; +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_15); -x_114 = lean_ctor_get(x_6, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_6, 1); -lean_inc(x_115); +x_116 = lean_ctor_get(x_6, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_6, 1); +lean_inc(x_117); lean_dec(x_6); -x_116 = lean_box(0); -lean_inc(x_4); -x_117 = l_Lean_Expr_mdata___override(x_116, x_4); x_118 = lean_box(0); +lean_inc(x_4); +x_119 = l_Lean_Expr_mdata___override(x_118, x_4); +x_120 = lean_box(0); lean_inc(x_1); -x_119 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__1___boxed), 17, 10); -lean_closure_set(x_119, 0, x_114); -lean_closure_set(x_119, 1, x_117); -lean_closure_set(x_119, 2, x_118); -lean_closure_set(x_119, 3, x_1); -lean_closure_set(x_119, 4, x_2); -lean_closure_set(x_119, 5, x_3); -lean_closure_set(x_119, 6, x_4); -lean_closure_set(x_119, 7, x_5); -lean_closure_set(x_119, 8, x_115); -lean_closure_set(x_119, 9, x_7); -x_120 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_119, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_120; +x_121 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__1___boxed), 17, 10); +lean_closure_set(x_121, 0, x_116); +lean_closure_set(x_121, 1, x_119); +lean_closure_set(x_121, 2, x_120); +lean_closure_set(x_121, 3, x_1); +lean_closure_set(x_121, 4, x_2); +lean_closure_set(x_121, 5, x_3); +lean_closure_set(x_121, 6, x_4); +lean_closure_set(x_121, 7, x_5); +lean_closure_set(x_121, 8, x_117); +lean_closure_set(x_121, 9, x_7); +x_122 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_121, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_122; } case 1: { -lean_object* x_121; +lean_object* x_123; lean_dec(x_15); -x_121 = lean_ctor_get(x_6, 1); -lean_inc(x_121); -if (lean_obj_tag(x_121) == 1) -{ -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; lean_object* x_125; uint8_t x_126; -x_123 = lean_ctor_get(x_6, 0); +x_123 = lean_ctor_get(x_6, 1); lean_inc(x_123); -lean_dec(x_6); -x_124 = lean_ctor_get(x_121, 1); -lean_inc(x_124); -lean_dec(x_121); -x_125 = l_Lean_Elab_Tactic_RCases_RCasesPatt_name_x3f___closed__1; -x_126 = lean_string_dec_eq(x_124, x_125); -lean_dec(x_124); -if (x_126 == 0) +if (lean_obj_tag(x_123) == 1) { -lean_object* x_127; uint8_t x_128; +lean_object* x_124; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_125 = lean_ctor_get(x_6, 0); +lean_inc(x_125); +lean_dec(x_6); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +lean_dec(x_123); +x_127 = l_Lean_Elab_Tactic_RCases_RCasesPatt_name_x3f___closed__1; +x_128 = lean_string_dec_eq(x_126, x_127); +lean_dec(x_126); +if (x_128 == 0) +{ +lean_object* x_129; uint8_t x_130; lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); lean_inc(x_7); -x_127 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); -lean_closure_set(x_127, 0, x_7); -lean_closure_set(x_127, 1, x_1); -lean_closure_set(x_127, 2, x_2); -lean_closure_set(x_127, 3, x_3); -lean_closure_set(x_127, 4, x_5); -x_128 = l_Lean_Expr_isFVar(x_4); -if (x_128 == 0) +x_129 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); +lean_closure_set(x_129, 0, x_7); +lean_closure_set(x_129, 1, x_1); +lean_closure_set(x_129, 2, x_2); +lean_closure_set(x_129, 3, x_3); +lean_closure_set(x_129, 4, x_5); +x_130 = l_Lean_Expr_isFVar(x_4); +if (x_130 == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_127); -lean_dec(x_123); +lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_129); +lean_dec(x_125); lean_dec(x_4); -x_129 = lean_box(0); +x_131 = lean_box(0); lean_inc(x_1); -x_130 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); -lean_closure_set(x_130, 0, x_7); -lean_closure_set(x_130, 1, x_1); -lean_closure_set(x_130, 2, x_2); -lean_closure_set(x_130, 3, x_3); -lean_closure_set(x_130, 4, x_5); -lean_closure_set(x_130, 5, x_129); -x_131 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_130, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_131; -} -else -{ -lean_object* x_132; lean_object* x_133; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_132 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); -lean_closure_set(x_132, 0, x_123); -lean_closure_set(x_132, 1, x_4); -lean_closure_set(x_132, 2, x_127); -x_133 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_132, x_8, x_9, x_10, x_11, x_113, x_13, x_14); +x_132 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); +lean_closure_set(x_132, 0, x_7); +lean_closure_set(x_132, 1, x_1); +lean_closure_set(x_132, 2, x_2); +lean_closure_set(x_132, 3, x_3); +lean_closure_set(x_132, 4, x_5); +lean_closure_set(x_132, 5, x_131); +x_133 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_132, x_8, x_9, x_10, x_11, x_115, x_13, x_14); return x_133; } -} else { lean_object* x_134; lean_object* x_135; -lean_inc(x_1); -x_134 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__4), 14, 7); -lean_closure_set(x_134, 0, x_4); -lean_closure_set(x_134, 1, x_123); -lean_closure_set(x_134, 2, x_2); -lean_closure_set(x_134, 3, x_1); -lean_closure_set(x_134, 4, x_7); -lean_closure_set(x_134, 5, x_3); -lean_closure_set(x_134, 6, x_5); -x_135 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_134, x_8, x_9, x_10, x_11, x_113, x_13, x_14); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_134 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); +lean_closure_set(x_134, 0, x_125); +lean_closure_set(x_134, 1, x_4); +lean_closure_set(x_134, 2, x_129); +x_135 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_134, x_8, x_9, x_10, x_11, x_115, x_13, x_14); return x_135; } } else { -lean_object* x_136; lean_object* x_137; uint8_t x_138; -lean_dec(x_122); -lean_dec(x_121); -x_136 = lean_ctor_get(x_6, 0); -lean_inc(x_136); +lean_object* x_136; lean_object* x_137; +lean_inc(x_1); +x_136 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__4), 14, 7); +lean_closure_set(x_136, 0, x_4); +lean_closure_set(x_136, 1, x_125); +lean_closure_set(x_136, 2, x_2); +lean_closure_set(x_136, 3, x_1); +lean_closure_set(x_136, 4, x_7); +lean_closure_set(x_136, 5, x_3); +lean_closure_set(x_136, 6, x_5); +x_137 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_136, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_137; +} +} +else +{ +lean_object* x_138; lean_object* x_139; uint8_t x_140; +lean_dec(x_124); +lean_dec(x_123); +x_138 = lean_ctor_get(x_6, 0); +lean_inc(x_138); lean_dec(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); lean_inc(x_7); -x_137 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); -lean_closure_set(x_137, 0, x_7); -lean_closure_set(x_137, 1, x_1); -lean_closure_set(x_137, 2, x_2); -lean_closure_set(x_137, 3, x_3); -lean_closure_set(x_137, 4, x_5); -x_138 = l_Lean_Expr_isFVar(x_4); -if (x_138 == 0) +x_139 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); +lean_closure_set(x_139, 0, x_7); +lean_closure_set(x_139, 1, x_1); +lean_closure_set(x_139, 2, x_2); +lean_closure_set(x_139, 3, x_3); +lean_closure_set(x_139, 4, x_5); +x_140 = l_Lean_Expr_isFVar(x_4); +if (x_140 == 0) { -lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_137); -lean_dec(x_136); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_139); +lean_dec(x_138); lean_dec(x_4); -x_139 = lean_box(0); +x_141 = lean_box(0); lean_inc(x_1); -x_140 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); -lean_closure_set(x_140, 0, x_7); -lean_closure_set(x_140, 1, x_1); -lean_closure_set(x_140, 2, x_2); -lean_closure_set(x_140, 3, x_3); -lean_closure_set(x_140, 4, x_5); -lean_closure_set(x_140, 5, x_139); -x_141 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_140, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_141; -} -else -{ -lean_object* x_142; lean_object* x_143; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_142 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); -lean_closure_set(x_142, 0, x_136); -lean_closure_set(x_142, 1, x_4); -lean_closure_set(x_142, 2, x_137); -x_143 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_142, x_8, x_9, x_10, x_11, x_113, x_13, x_14); +x_142 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); +lean_closure_set(x_142, 0, x_7); +lean_closure_set(x_142, 1, x_1); +lean_closure_set(x_142, 2, x_2); +lean_closure_set(x_142, 3, x_3); +lean_closure_set(x_142, 4, x_5); +lean_closure_set(x_142, 5, x_141); +x_143 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_142, x_8, x_9, x_10, x_11, x_115, x_13, x_14); return x_143; } +else +{ +lean_object* x_144; lean_object* x_145; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_144 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); +lean_closure_set(x_144, 0, x_138); +lean_closure_set(x_144, 1, x_4); +lean_closure_set(x_144, 2, x_139); +x_145 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_144, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_145; +} } } else { -lean_object* x_144; lean_object* x_145; uint8_t x_146; -lean_dec(x_121); -x_144 = lean_ctor_get(x_6, 0); -lean_inc(x_144); +lean_object* x_146; lean_object* x_147; uint8_t x_148; +lean_dec(x_123); +x_146 = lean_ctor_get(x_6, 0); +lean_inc(x_146); lean_dec(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); lean_inc(x_7); -x_145 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); -lean_closure_set(x_145, 0, x_7); -lean_closure_set(x_145, 1, x_1); -lean_closure_set(x_145, 2, x_2); -lean_closure_set(x_145, 3, x_3); -lean_closure_set(x_145, 4, x_5); -x_146 = l_Lean_Expr_isFVar(x_4); -if (x_146 == 0) +x_147 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 5); +lean_closure_set(x_147, 0, x_7); +lean_closure_set(x_147, 1, x_1); +lean_closure_set(x_147, 2, x_2); +lean_closure_set(x_147, 3, x_3); +lean_closure_set(x_147, 4, x_5); +x_148 = l_Lean_Expr_isFVar(x_4); +if (x_148 == 0) { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_145); -lean_dec(x_144); +lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_dec(x_147); +lean_dec(x_146); lean_dec(x_4); -x_147 = lean_box(0); +x_149 = lean_box(0); lean_inc(x_1); -x_148 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); -lean_closure_set(x_148, 0, x_7); -lean_closure_set(x_148, 1, x_1); -lean_closure_set(x_148, 2, x_2); -lean_closure_set(x_148, 3, x_3); -lean_closure_set(x_148, 4, x_5); -lean_closure_set(x_148, 5, x_147); -x_149 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_148, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_149; +x_150 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__2___boxed), 13, 6); +lean_closure_set(x_150, 0, x_7); +lean_closure_set(x_150, 1, x_1); +lean_closure_set(x_150, 2, x_2); +lean_closure_set(x_150, 3, x_3); +lean_closure_set(x_150, 4, x_5); +lean_closure_set(x_150, 5, x_149); +x_151 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_150, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_151; } else { -lean_object* x_150; lean_object* x_151; +lean_object* x_152; lean_object* x_153; lean_dec(x_7); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_150 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); -lean_closure_set(x_150, 0, x_144); -lean_closure_set(x_150, 1, x_4); -lean_closure_set(x_150, 2, x_145); -x_151 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_150, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_151; +x_152 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__3), 10, 3); +lean_closure_set(x_152, 0, x_146); +lean_closure_set(x_152, 1, x_4); +lean_closure_set(x_152, 2, x_147); +x_153 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_152, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_153; } } } case 2: { -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_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_dec(x_15); -x_152 = lean_ctor_get(x_6, 0); -lean_inc(x_152); +x_154 = lean_ctor_get(x_6, 0); +lean_inc(x_154); lean_dec(x_6); -x_153 = lean_box(0); -lean_inc(x_4); -x_154 = l_Lean_Expr_mdata___override(x_153, x_4); x_155 = lean_box(0); +lean_inc(x_4); +x_156 = l_Lean_Expr_mdata___override(x_155, x_4); +x_157 = lean_box(0); lean_inc(x_1); -x_156 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__5), 16, 9); -lean_closure_set(x_156, 0, x_152); -lean_closure_set(x_156, 1, x_154); -lean_closure_set(x_156, 2, x_155); -lean_closure_set(x_156, 3, x_4); -lean_closure_set(x_156, 4, x_7); -lean_closure_set(x_156, 5, x_1); -lean_closure_set(x_156, 6, x_2); -lean_closure_set(x_156, 7, x_3); -lean_closure_set(x_156, 8, x_5); -x_157 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_156, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_157; +x_158 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__5), 16, 9); +lean_closure_set(x_158, 0, x_154); +lean_closure_set(x_158, 1, x_156); +lean_closure_set(x_158, 2, x_157); +lean_closure_set(x_158, 3, x_4); +lean_closure_set(x_158, 4, x_7); +lean_closure_set(x_158, 5, x_1); +lean_closure_set(x_158, 6, x_2); +lean_closure_set(x_158, 7, x_3); +lean_closure_set(x_158, 8, x_5); +x_159 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_158, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_159; } case 3: { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_158 = lean_box(0); -lean_inc(x_4); -x_159 = l_Lean_Expr_mdata___override(x_158, x_4); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; x_160 = lean_box(0); +lean_inc(x_4); +x_161 = l_Lean_Expr_mdata___override(x_160, x_4); +x_162 = lean_box(0); lean_inc(x_1); -x_161 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__8___boxed), 18, 11); -lean_closure_set(x_161, 0, x_15); -lean_closure_set(x_161, 1, x_159); -lean_closure_set(x_161, 2, x_160); -lean_closure_set(x_161, 3, x_2); -lean_closure_set(x_161, 4, x_4); -lean_closure_set(x_161, 5, x_5); -lean_closure_set(x_161, 6, x_3); -lean_closure_set(x_161, 7, x_7); -lean_closure_set(x_161, 8, x_6); -lean_closure_set(x_161, 9, x_1); -lean_closure_set(x_161, 10, x_158); -x_162 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_161, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_162; +x_163 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__8___boxed), 18, 11); +lean_closure_set(x_163, 0, x_15); +lean_closure_set(x_163, 1, x_161); +lean_closure_set(x_163, 2, x_162); +lean_closure_set(x_163, 3, x_2); +lean_closure_set(x_163, 4, x_4); +lean_closure_set(x_163, 5, x_5); +lean_closure_set(x_163, 6, x_3); +lean_closure_set(x_163, 7, x_7); +lean_closure_set(x_163, 8, x_6); +lean_closure_set(x_163, 9, x_1); +lean_closure_set(x_163, 10, x_160); +x_164 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_163, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_164; } case 4: { -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_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_dec(x_15); -x_163 = lean_ctor_get(x_6, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_6, 1); -lean_inc(x_164); -x_165 = lean_ctor_get(x_6, 2); +x_165 = lean_ctor_get(x_6, 0); lean_inc(x_165); +x_166 = lean_ctor_get(x_6, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_6, 2); +lean_inc(x_167); lean_dec(x_6); -x_166 = lean_box(0); -lean_inc(x_4); -x_167 = l_Lean_Expr_mdata___override(x_166, x_4); x_168 = lean_box(0); +lean_inc(x_4); +x_169 = l_Lean_Expr_mdata___override(x_168, x_4); +x_170 = lean_box(0); lean_inc(x_1); -x_169 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__11___boxed), 18, 11); -lean_closure_set(x_169, 0, x_163); -lean_closure_set(x_169, 1, x_167); -lean_closure_set(x_169, 2, x_168); -lean_closure_set(x_169, 3, x_165); -lean_closure_set(x_169, 4, x_2); -lean_closure_set(x_169, 5, x_4); -lean_closure_set(x_169, 6, x_3); -lean_closure_set(x_169, 7, x_5); -lean_closure_set(x_169, 8, x_164); -lean_closure_set(x_169, 9, x_7); -lean_closure_set(x_169, 10, x_1); -x_170 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_169, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_170; +x_171 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__11___boxed), 18, 11); +lean_closure_set(x_171, 0, x_165); +lean_closure_set(x_171, 1, x_169); +lean_closure_set(x_171, 2, x_170); +lean_closure_set(x_171, 3, x_167); +lean_closure_set(x_171, 4, x_2); +lean_closure_set(x_171, 5, x_4); +lean_closure_set(x_171, 6, x_3); +lean_closure_set(x_171, 7, x_5); +lean_closure_set(x_171, 8, x_166); +lean_closure_set(x_171, 9, x_7); +lean_closure_set(x_171, 10, x_1); +x_172 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_171, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_172; } case 5: { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_171 = lean_box(0); -lean_inc(x_4); -x_172 = l_Lean_Expr_mdata___override(x_171, x_4); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; x_173 = lean_box(0); +lean_inc(x_4); +x_174 = l_Lean_Expr_mdata___override(x_173, x_4); +x_175 = lean_box(0); lean_inc(x_1); -x_174 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__12___boxed), 18, 11); -lean_closure_set(x_174, 0, x_15); -lean_closure_set(x_174, 1, x_172); -lean_closure_set(x_174, 2, x_173); -lean_closure_set(x_174, 3, x_2); -lean_closure_set(x_174, 4, x_4); -lean_closure_set(x_174, 5, x_5); -lean_closure_set(x_174, 6, x_3); -lean_closure_set(x_174, 7, x_7); -lean_closure_set(x_174, 8, x_6); -lean_closure_set(x_174, 9, x_1); -lean_closure_set(x_174, 10, x_171); -x_175 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_174, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_175; +x_176 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__12___boxed), 18, 11); +lean_closure_set(x_176, 0, x_15); +lean_closure_set(x_176, 1, x_174); +lean_closure_set(x_176, 2, x_175); +lean_closure_set(x_176, 3, x_2); +lean_closure_set(x_176, 4, x_4); +lean_closure_set(x_176, 5, x_5); +lean_closure_set(x_176, 6, x_3); +lean_closure_set(x_176, 7, x_7); +lean_closure_set(x_176, 8, x_6); +lean_closure_set(x_176, 9, x_1); +lean_closure_set(x_176, 10, x_173); +x_177 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_176, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_177; } default: { -lean_object* x_176; -x_176 = lean_ctor_get(x_6, 1); -lean_inc(x_176); -if (lean_obj_tag(x_176) == 0) +lean_object* x_178; +x_178 = lean_ctor_get(x_6, 1); +lean_inc(x_178); +if (lean_obj_tag(x_178) == 0) { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_177 = lean_box(0); -lean_inc(x_4); -x_178 = l_Lean_Expr_mdata___override(x_177, x_4); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; x_179 = lean_box(0); +lean_inc(x_4); +x_180 = l_Lean_Expr_mdata___override(x_179, x_4); +x_181 = lean_box(0); lean_inc(x_1); -x_180 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__13___boxed), 18, 11); -lean_closure_set(x_180, 0, x_15); -lean_closure_set(x_180, 1, x_178); -lean_closure_set(x_180, 2, x_179); -lean_closure_set(x_180, 3, x_2); -lean_closure_set(x_180, 4, x_4); -lean_closure_set(x_180, 5, x_5); -lean_closure_set(x_180, 6, x_3); -lean_closure_set(x_180, 7, x_7); -lean_closure_set(x_180, 8, x_6); -lean_closure_set(x_180, 9, x_1); -lean_closure_set(x_180, 10, x_177); -x_181 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_180, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_181; +x_182 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__13___boxed), 18, 11); +lean_closure_set(x_182, 0, x_15); +lean_closure_set(x_182, 1, x_180); +lean_closure_set(x_182, 2, x_181); +lean_closure_set(x_182, 3, x_2); +lean_closure_set(x_182, 4, x_4); +lean_closure_set(x_182, 5, x_5); +lean_closure_set(x_182, 6, x_3); +lean_closure_set(x_182, 7, x_7); +lean_closure_set(x_182, 8, x_6); +lean_closure_set(x_182, 9, x_1); +lean_closure_set(x_182, 10, x_179); +x_183 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_182, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_183; } else { -lean_object* x_182; -x_182 = lean_ctor_get(x_176, 1); -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_188; lean_object* x_189; -lean_dec(x_15); -x_183 = lean_ctor_get(x_6, 0); -lean_inc(x_183); -lean_dec(x_6); -x_184 = lean_ctor_get(x_176, 0); +lean_object* x_184; +x_184 = lean_ctor_get(x_178, 1); lean_inc(x_184); -lean_dec(x_176); -x_185 = lean_box(0); -lean_inc(x_4); -x_186 = l_Lean_Expr_mdata___override(x_185, x_4); +if (lean_obj_tag(x_184) == 0) +{ +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_15); +x_185 = lean_ctor_get(x_6, 0); +lean_inc(x_185); +lean_dec(x_6); +x_186 = lean_ctor_get(x_178, 0); +lean_inc(x_186); +lean_dec(x_178); x_187 = lean_box(0); +lean_inc(x_4); +x_188 = l_Lean_Expr_mdata___override(x_187, x_4); +x_189 = lean_box(0); lean_inc(x_1); -x_188 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__1___boxed), 17, 10); -lean_closure_set(x_188, 0, x_183); -lean_closure_set(x_188, 1, x_186); -lean_closure_set(x_188, 2, x_187); -lean_closure_set(x_188, 3, x_1); -lean_closure_set(x_188, 4, x_2); -lean_closure_set(x_188, 5, x_3); -lean_closure_set(x_188, 6, x_4); -lean_closure_set(x_188, 7, x_5); -lean_closure_set(x_188, 8, x_184); -lean_closure_set(x_188, 9, x_7); -x_189 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_188, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_189; +x_190 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__1___boxed), 17, 10); +lean_closure_set(x_190, 0, x_185); +lean_closure_set(x_190, 1, x_188); +lean_closure_set(x_190, 2, x_189); +lean_closure_set(x_190, 3, x_1); +lean_closure_set(x_190, 4, x_2); +lean_closure_set(x_190, 5, x_3); +lean_closure_set(x_190, 6, x_4); +lean_closure_set(x_190, 7, x_5); +lean_closure_set(x_190, 8, x_186); +lean_closure_set(x_190, 9, x_7); +x_191 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_190, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_191; } else { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_182); -lean_dec(x_176); -x_190 = lean_box(0); -lean_inc(x_4); -x_191 = l_Lean_Expr_mdata___override(x_190, x_4); +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_dec(x_184); +lean_dec(x_178); x_192 = lean_box(0); +lean_inc(x_4); +x_193 = l_Lean_Expr_mdata___override(x_192, x_4); +x_194 = lean_box(0); lean_inc(x_1); -x_193 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__14___boxed), 18, 11); -lean_closure_set(x_193, 0, x_15); -lean_closure_set(x_193, 1, x_191); -lean_closure_set(x_193, 2, x_192); -lean_closure_set(x_193, 3, x_2); -lean_closure_set(x_193, 4, x_4); -lean_closure_set(x_193, 5, x_5); -lean_closure_set(x_193, 6, x_3); -lean_closure_set(x_193, 7, x_7); -lean_closure_set(x_193, 8, x_6); -lean_closure_set(x_193, 9, x_1); -lean_closure_set(x_193, 10, x_190); -x_194 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_193, x_8, x_9, x_10, x_11, x_113, x_13, x_14); -return x_194; +x_195 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_RCases_rcasesCore___rarg___lambda__14___boxed), 18, 11); +lean_closure_set(x_195, 0, x_15); +lean_closure_set(x_195, 1, x_193); +lean_closure_set(x_195, 2, x_194); +lean_closure_set(x_195, 3, x_2); +lean_closure_set(x_195, 4, x_4); +lean_closure_set(x_195, 5, x_5); +lean_closure_set(x_195, 6, x_3); +lean_closure_set(x_195, 7, x_7); +lean_closure_set(x_195, 8, x_6); +lean_closure_set(x_195, 9, x_1); +lean_closure_set(x_195, 10, x_192); +x_196 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_195, x_8, x_9, x_10, x_11, x_115, x_13, x_14); +return x_196; } } } @@ -30031,7 +30036,7 @@ uint8_t x_31; x_31 = !lean_is_exclusive(x_29); if (x_31 == 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; 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; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +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; uint8_t x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; x_32 = lean_ctor_get(x_28, 0); x_33 = lean_ctor_get(x_28, 1); x_34 = lean_ctor_get(x_29, 0); @@ -30059,56 +30064,61 @@ x_46 = lean_ctor_get(x_8, 9); lean_inc(x_46); x_47 = lean_ctor_get(x_8, 10); lean_inc(x_47); -x_48 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_49 = l_Lean_replaceRef(x_34, x_42); +x_48 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_49 = lean_ctor_get(x_8, 11); +lean_inc(x_49); +x_50 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_51 = l_Lean_replaceRef(x_34, x_42); lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_37); -lean_ctor_set(x_50, 1, x_38); -lean_ctor_set(x_50, 2, x_39); -lean_ctor_set(x_50, 3, x_40); -lean_ctor_set(x_50, 4, x_41); -lean_ctor_set(x_50, 5, x_49); -lean_ctor_set(x_50, 6, x_43); -lean_ctor_set(x_50, 7, x_44); -lean_ctor_set(x_50, 8, x_45); -lean_ctor_set(x_50, 9, x_46); -lean_ctor_set(x_50, 10, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_48); +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_37); +lean_ctor_set(x_52, 1, x_38); +lean_ctor_set(x_52, 2, x_39); +lean_ctor_set(x_52, 3, x_40); +lean_ctor_set(x_52, 4, x_41); +lean_ctor_set(x_52, 5, x_51); +lean_ctor_set(x_52, 6, x_43); +lean_ctor_set(x_52, 7, x_44); +lean_ctor_set(x_52, 8, x_45); +lean_ctor_set(x_52, 9, x_46); +lean_ctor_set(x_52, 10, x_47); +lean_ctor_set(x_52, 11, x_49); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_50); lean_inc(x_9); -lean_inc(x_50); +lean_inc(x_52); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_51 = l_Lean_Elab_Term_elabType(x_36, x_4, x_5, x_6, x_7, x_50, x_9, x_10); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Elab_Term_elabType(x_36, x_4, x_5, x_6, x_7, x_52, x_9, x_10); +if (lean_obj_tag(x_53) == 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); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_52); -x_54 = l_Lean_Elab_Term_exprToSyntax(x_52, x_4, x_5, x_6, x_7, x_50, x_9, x_53); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_54, 0); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -lean_ctor_set(x_29, 2, x_55); -x_57 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_57, 0, x_52); -lean_ctor_set(x_28, 1, x_57); +lean_dec(x_53); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_54); +x_56 = l_Lean_Elab_Term_exprToSyntax(x_54, x_4, x_5, x_6, x_7, x_52, x_9, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +lean_ctor_set(x_29, 2, x_57); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_28, 1, x_59); lean_ctor_set(x_28, 0, x_29); lean_inc(x_9); lean_inc(x_8); @@ -30116,13 +30126,45 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_58 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_33, x_32, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_56); -x_16 = x_58; +x_60 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_33, x_32, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_58); +x_16 = x_60; goto block_27; } else { -uint8_t x_59; +uint8_t x_61; +lean_dec(x_54); +lean_free_object(x_29); +lean_dec(x_35); +lean_dec(x_34); +lean_free_object(x_28); +lean_dec(x_33); +lean_dec(x_32); +x_61 = !lean_is_exclusive(x_56); +if (x_61 == 0) +{ +x_16 = x_56; +goto block_27; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_56); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_16 = x_64; +goto block_27; +} +} +} +else +{ +uint8_t x_65; lean_dec(x_52); lean_free_object(x_29); lean_dec(x_35); @@ -30130,209 +30172,150 @@ lean_dec(x_34); lean_free_object(x_28); lean_dec(x_33); lean_dec(x_32); -x_59 = !lean_is_exclusive(x_54); -if (x_59 == 0) +x_65 = !lean_is_exclusive(x_53); +if (x_65 == 0) { -x_16 = x_54; +x_16 = x_53; goto block_27; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_54, 0); -x_61 = lean_ctor_get(x_54, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_54); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -x_16 = x_62; +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_53, 0); +x_67 = lean_ctor_get(x_53, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_53); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_16 = x_68; goto block_27; } } } else { -uint8_t x_63; -lean_dec(x_50); -lean_free_object(x_29); -lean_dec(x_35); -lean_dec(x_34); -lean_free_object(x_28); -lean_dec(x_33); -lean_dec(x_32); -x_63 = !lean_is_exclusive(x_51); -if (x_63 == 0) -{ -x_16 = x_51; -goto block_27; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_51, 0); -x_65 = lean_ctor_get(x_51, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_51); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -x_16 = x_66; -goto block_27; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_67 = lean_ctor_get(x_28, 0); -x_68 = lean_ctor_get(x_28, 1); -x_69 = lean_ctor_get(x_29, 0); -x_70 = lean_ctor_get(x_29, 1); -x_71 = lean_ctor_get(x_29, 2); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_29); -x_72 = lean_ctor_get(x_8, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_8, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_69 = lean_ctor_get(x_28, 0); +x_70 = lean_ctor_get(x_28, 1); +x_71 = lean_ctor_get(x_29, 0); +x_72 = lean_ctor_get(x_29, 1); +x_73 = lean_ctor_get(x_29, 2); lean_inc(x_73); -x_74 = lean_ctor_get(x_8, 2); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_29); +x_74 = lean_ctor_get(x_8, 0); lean_inc(x_74); -x_75 = lean_ctor_get(x_8, 3); +x_75 = lean_ctor_get(x_8, 1); lean_inc(x_75); -x_76 = lean_ctor_get(x_8, 4); +x_76 = lean_ctor_get(x_8, 2); lean_inc(x_76); -x_77 = lean_ctor_get(x_8, 5); +x_77 = lean_ctor_get(x_8, 3); lean_inc(x_77); -x_78 = lean_ctor_get(x_8, 6); +x_78 = lean_ctor_get(x_8, 4); lean_inc(x_78); -x_79 = lean_ctor_get(x_8, 7); +x_79 = lean_ctor_get(x_8, 5); lean_inc(x_79); -x_80 = lean_ctor_get(x_8, 8); +x_80 = lean_ctor_get(x_8, 6); lean_inc(x_80); -x_81 = lean_ctor_get(x_8, 9); +x_81 = lean_ctor_get(x_8, 7); lean_inc(x_81); -x_82 = lean_ctor_get(x_8, 10); +x_82 = lean_ctor_get(x_8, 8); lean_inc(x_82); -x_83 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_84 = l_Lean_replaceRef(x_69, x_77); -lean_dec(x_77); -x_85 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_85, 0, x_72); -lean_ctor_set(x_85, 1, x_73); -lean_ctor_set(x_85, 2, x_74); -lean_ctor_set(x_85, 3, x_75); -lean_ctor_set(x_85, 4, x_76); -lean_ctor_set(x_85, 5, x_84); -lean_ctor_set(x_85, 6, x_78); -lean_ctor_set(x_85, 7, x_79); -lean_ctor_set(x_85, 8, x_80); -lean_ctor_set(x_85, 9, x_81); -lean_ctor_set(x_85, 10, x_82); -lean_ctor_set_uint8(x_85, sizeof(void*)*11, x_83); +x_83 = lean_ctor_get(x_8, 9); +lean_inc(x_83); +x_84 = lean_ctor_get(x_8, 10); +lean_inc(x_84); +x_85 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_86 = lean_ctor_get(x_8, 11); +lean_inc(x_86); +x_87 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_88 = l_Lean_replaceRef(x_71, x_79); +lean_dec(x_79); +x_89 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_89, 0, x_74); +lean_ctor_set(x_89, 1, x_75); +lean_ctor_set(x_89, 2, x_76); +lean_ctor_set(x_89, 3, x_77); +lean_ctor_set(x_89, 4, x_78); +lean_ctor_set(x_89, 5, x_88); +lean_ctor_set(x_89, 6, x_80); +lean_ctor_set(x_89, 7, x_81); +lean_ctor_set(x_89, 8, x_82); +lean_ctor_set(x_89, 9, x_83); +lean_ctor_set(x_89, 10, x_84); +lean_ctor_set(x_89, 11, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*12, x_85); +lean_ctor_set_uint8(x_89, sizeof(void*)*12 + 1, x_87); lean_inc(x_9); -lean_inc(x_85); +lean_inc(x_89); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_86 = l_Lean_Elab_Term_elabType(x_71, x_4, x_5, x_6, x_7, x_85, x_9, x_10); -if (lean_obj_tag(x_86) == 0) +x_90 = l_Lean_Elab_Term_elabType(x_73, x_4, x_5, x_6, x_7, x_89, x_9, x_10); +if (lean_obj_tag(x_90) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_87); -x_89 = l_Lean_Elab_Term_exprToSyntax(x_87, x_4, x_5, x_6, x_7, x_85, x_9, x_88); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_alloc_ctor(4, 3, 0); -lean_ctor_set(x_92, 0, x_69); -lean_ctor_set(x_92, 1, x_70); -lean_ctor_set(x_92, 2, x_90); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_87); -lean_ctor_set(x_28, 1, x_93); -lean_ctor_set(x_28, 0, x_92); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_91); +x_93 = l_Lean_Elab_Term_exprToSyntax(x_91, x_4, x_5, x_6, x_7, x_89, x_9, x_92); +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; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = lean_alloc_ctor(4, 3, 0); +lean_ctor_set(x_96, 0, x_71); +lean_ctor_set(x_96, 1, x_72); +lean_ctor_set(x_96, 2, x_94); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_91); +lean_ctor_set(x_28, 1, x_97); +lean_ctor_set(x_28, 0, x_96); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_94 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_68, x_67, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_91); -x_16 = x_94; -goto block_27; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_87); -lean_dec(x_70); -lean_dec(x_69); -lean_free_object(x_28); -lean_dec(x_68); -lean_dec(x_67); -x_95 = lean_ctor_get(x_89, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_89, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_97 = x_89; -} else { - lean_dec_ref(x_89); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); +x_98 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_70, x_69, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_95); x_16 = x_98; goto block_27; } -} else { lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_85); +lean_dec(x_91); +lean_dec(x_72); +lean_dec(x_71); +lean_free_object(x_28); lean_dec(x_70); lean_dec(x_69); -lean_free_object(x_28); -lean_dec(x_68); -lean_dec(x_67); -x_99 = lean_ctor_get(x_86, 0); +x_99 = lean_ctor_get(x_93, 0); lean_inc(x_99); -x_100 = lean_ctor_get(x_86, 1); +x_100 = lean_ctor_get(x_93, 1); lean_inc(x_100); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_101 = x_86; +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_86); + lean_dec_ref(x_93); x_101 = lean_box(0); } if (lean_is_scalar(x_101)) { @@ -30346,197 +30329,234 @@ x_16 = x_102; goto block_27; } } +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_89); +lean_dec(x_72); +lean_dec(x_71); +lean_free_object(x_28); +lean_dec(x_70); +lean_dec(x_69); +x_103 = lean_ctor_get(x_90, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_90, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_105 = x_90; +} else { + lean_dec_ref(x_90); + 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); +x_16 = x_106; +goto block_27; +} +} } 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; 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; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_103 = lean_ctor_get(x_28, 0); -x_104 = lean_ctor_get(x_28, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_28); -x_105 = lean_ctor_get(x_29, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_29, 1); -lean_inc(x_106); -x_107 = lean_ctor_get(x_29, 2); +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; uint8_t x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_107 = lean_ctor_get(x_28, 0); +x_108 = lean_ctor_get(x_28, 1); +lean_inc(x_108); lean_inc(x_107); +lean_dec(x_28); +x_109 = lean_ctor_get(x_29, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_29, 1); +lean_inc(x_110); +x_111 = lean_ctor_get(x_29, 2); +lean_inc(x_111); if (lean_is_exclusive(x_29)) { lean_ctor_release(x_29, 0); lean_ctor_release(x_29, 1); lean_ctor_release(x_29, 2); - x_108 = x_29; + x_112 = x_29; } else { lean_dec_ref(x_29); - x_108 = lean_box(0); + x_112 = lean_box(0); } -x_109 = lean_ctor_get(x_8, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_8, 1); -lean_inc(x_110); -x_111 = lean_ctor_get(x_8, 2); -lean_inc(x_111); -x_112 = lean_ctor_get(x_8, 3); -lean_inc(x_112); -x_113 = lean_ctor_get(x_8, 4); +x_113 = lean_ctor_get(x_8, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_8, 5); +x_114 = lean_ctor_get(x_8, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_8, 6); +x_115 = lean_ctor_get(x_8, 2); lean_inc(x_115); -x_116 = lean_ctor_get(x_8, 7); +x_116 = lean_ctor_get(x_8, 3); lean_inc(x_116); -x_117 = lean_ctor_get(x_8, 8); +x_117 = lean_ctor_get(x_8, 4); lean_inc(x_117); -x_118 = lean_ctor_get(x_8, 9); +x_118 = lean_ctor_get(x_8, 5); lean_inc(x_118); -x_119 = lean_ctor_get(x_8, 10); +x_119 = lean_ctor_get(x_8, 6); lean_inc(x_119); -x_120 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_121 = l_Lean_replaceRef(x_105, x_114); -lean_dec(x_114); -x_122 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_122, 0, x_109); -lean_ctor_set(x_122, 1, x_110); -lean_ctor_set(x_122, 2, x_111); -lean_ctor_set(x_122, 3, x_112); -lean_ctor_set(x_122, 4, x_113); -lean_ctor_set(x_122, 5, x_121); -lean_ctor_set(x_122, 6, x_115); -lean_ctor_set(x_122, 7, x_116); -lean_ctor_set(x_122, 8, x_117); -lean_ctor_set(x_122, 9, x_118); -lean_ctor_set(x_122, 10, x_119); -lean_ctor_set_uint8(x_122, sizeof(void*)*11, x_120); -lean_inc(x_9); +x_120 = lean_ctor_get(x_8, 7); +lean_inc(x_120); +x_121 = lean_ctor_get(x_8, 8); +lean_inc(x_121); +x_122 = lean_ctor_get(x_8, 9); lean_inc(x_122); +x_123 = lean_ctor_get(x_8, 10); +lean_inc(x_123); +x_124 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_125 = lean_ctor_get(x_8, 11); +lean_inc(x_125); +x_126 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_127 = l_Lean_replaceRef(x_109, x_118); +lean_dec(x_118); +x_128 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_128, 0, x_113); +lean_ctor_set(x_128, 1, x_114); +lean_ctor_set(x_128, 2, x_115); +lean_ctor_set(x_128, 3, x_116); +lean_ctor_set(x_128, 4, x_117); +lean_ctor_set(x_128, 5, x_127); +lean_ctor_set(x_128, 6, x_119); +lean_ctor_set(x_128, 7, x_120); +lean_ctor_set(x_128, 8, x_121); +lean_ctor_set(x_128, 9, x_122); +lean_ctor_set(x_128, 10, x_123); +lean_ctor_set(x_128, 11, x_125); +lean_ctor_set_uint8(x_128, sizeof(void*)*12, x_124); +lean_ctor_set_uint8(x_128, sizeof(void*)*12 + 1, x_126); +lean_inc(x_9); +lean_inc(x_128); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_123 = l_Lean_Elab_Term_elabType(x_107, x_4, x_5, x_6, x_7, x_122, x_9, x_10); -if (lean_obj_tag(x_123) == 0) +x_129 = l_Lean_Elab_Term_elabType(x_111, x_4, x_5, x_6, x_7, x_128, x_9, x_10); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec(x_123); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); lean_inc(x_9); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_124); -x_126 = l_Lean_Elab_Term_exprToSyntax(x_124, x_4, x_5, x_6, x_7, x_122, x_9, x_125); -if (lean_obj_tag(x_126) == 0) +lean_inc(x_130); +x_132 = l_Lean_Elab_Term_exprToSyntax(x_130, x_4, x_5, x_6, x_7, x_128, x_9, x_131); +if (lean_obj_tag(x_132) == 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 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -if (lean_is_scalar(x_108)) { - x_129 = lean_alloc_ctor(4, 3, 0); +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_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +if (lean_is_scalar(x_112)) { + x_135 = lean_alloc_ctor(4, 3, 0); } else { - x_129 = x_108; + x_135 = x_112; } -lean_ctor_set(x_129, 0, x_105); -lean_ctor_set(x_129, 1, x_106); -lean_ctor_set(x_129, 2, x_127); -x_130 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_130, 0, x_124); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); +lean_ctor_set(x_135, 0, x_109); +lean_ctor_set(x_135, 1, x_110); +lean_ctor_set(x_135, 2, x_133); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_130); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_132 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_104, x_103, x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_128); -x_16 = x_132; +x_138 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_108, x_107, x_137, x_4, x_5, x_6, x_7, x_8, x_9, x_134); +x_16 = x_138; goto block_27; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_124); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_130); +lean_dec(x_112); +lean_dec(x_110); +lean_dec(x_109); lean_dec(x_108); -lean_dec(x_106); -lean_dec(x_105); -lean_dec(x_104); -lean_dec(x_103); -x_133 = lean_ctor_get(x_126, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_126, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_135 = x_126; +lean_dec(x_107); +x_139 = lean_ctor_get(x_132, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_132, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_141 = x_132; } else { - lean_dec_ref(x_126); - x_135 = lean_box(0); + lean_dec_ref(x_132); + x_141 = lean_box(0); } -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_136 = x_135; + x_142 = x_141; } -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_134); -x_16 = x_136; +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +x_16 = x_142; goto block_27; } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_122); +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_128); +lean_dec(x_112); +lean_dec(x_110); +lean_dec(x_109); lean_dec(x_108); -lean_dec(x_106); -lean_dec(x_105); -lean_dec(x_104); -lean_dec(x_103); -x_137 = lean_ctor_get(x_123, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_123, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_139 = x_123; +lean_dec(x_107); +x_143 = lean_ctor_get(x_129, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_129, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_145 = x_129; } else { - lean_dec_ref(x_123); - x_139 = lean_box(0); + lean_dec_ref(x_129); + x_145 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_146 = x_145; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -x_16 = x_140; +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +x_16 = x_146; goto block_27; } } } else { -uint8_t x_141; -x_141 = !lean_is_exclusive(x_28); -if (x_141 == 0) +uint8_t x_147; +x_147 = !lean_is_exclusive(x_28); +if (x_147 == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_142 = lean_ctor_get(x_28, 0); -x_143 = lean_ctor_get(x_28, 1); -x_144 = lean_box(0); -lean_ctor_set(x_28, 1, x_144); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_28, 0); +x_149 = lean_ctor_get(x_28, 1); +x_150 = lean_box(0); +lean_ctor_set(x_28, 1, x_150); lean_ctor_set(x_28, 0, x_29); lean_inc(x_9); lean_inc(x_8); @@ -30544,30 +30564,30 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_145 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_143, x_142, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_16 = x_145; +x_151 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_149, x_148, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = x_151; goto block_27; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_146 = lean_ctor_get(x_28, 0); -x_147 = lean_ctor_get(x_28, 1); -lean_inc(x_147); -lean_inc(x_146); +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_28, 0); +x_153 = lean_ctor_get(x_28, 1); +lean_inc(x_153); +lean_inc(x_152); lean_dec(x_28); -x_148 = lean_box(0); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_29); -lean_ctor_set(x_149, 1, x_148); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_29); +lean_ctor_set(x_155, 1, x_154); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_150 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_147, x_146, x_149, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_16 = x_150; +x_156 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_RCases_rcases___spec__1___lambda__1(x_153, x_152, x_155, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = x_156; goto block_27; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Repeat.c b/stage0/stdlib/Lean/Elab/Tactic/Repeat.c index 6d5daaed84..ff100b95de 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Repeat.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Repeat.c @@ -16,11 +16,13 @@ extern "C" { lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRepeat_x27___spec__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* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1; static lean_object* l_Lean_Elab_Tactic_evalRepeat_x27___closed__5; static lean_object* l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRepeat_x27_declRange___closed__3; lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(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_isInterrupt(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRepeat1_x27_declRange___closed__4; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* lean_array_push(lean_object*, lean_object*); @@ -143,22 +145,35 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_El return x_9; } } +static lean_object* _init_l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +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; +} +} LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__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) { _start: { -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; -x_11 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -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 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -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); +lean_object* x_11; lean_object* x_12; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_25 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_28, 1); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -167,12 +182,12 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_17 = lean_apply_9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); -if (lean_obj_tag(x_17) == 0) +x_32 = lean_apply_9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +if (lean_obj_tag(x_32) == 0) { -uint8_t x_18; -lean_dec(x_15); -lean_dec(x_12); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_30); +lean_dec(x_26); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -181,88 +196,79 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_17, 0, x_20); -return x_17; +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_box(0); +lean_ctor_set(x_28, 1, x_35); +lean_ctor_set(x_28, 0, x_33); +x_11 = x_28; +x_12 = x_34; +goto block_24; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_17, 0); -x_22 = lean_ctor_get(x_17, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_17); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_21); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -return x_24; -} -} -else +uint8_t x_36; +lean_free_object(x_28); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_17); -if (x_25 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_32, 0); +x_38 = lean_ctor_get(x_32, 1); +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_17, 0); -x_27 = lean_ctor_get(x_17, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) { -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -lean_free_object(x_17); -lean_dec(x_26); -x_29 = 0; +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_free_object(x_32); +lean_dec(x_37); +x_41 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_30 = l_Lean_Elab_Tactic_SavedState_restore(x_15, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +x_42 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l_Lean_Elab_Tactic_SavedState_restore(x_26, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_43); lean_dec(x_3); lean_dec(x_2); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1; +x_11 = x_46; +x_12 = x_45; +goto block_24; +} +else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -x_35 = lean_box(0); -lean_ctor_set(x_32, 0, x_35); +lean_dec(x_30); +lean_dec(x_26); +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); return x_32; } -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 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} } else { -lean_dec(x_15); -lean_dec(x_12); +lean_dec(x_30); +lean_dec(x_26); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -271,61 +277,53 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_17; +return x_32; } } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_17, 0); -x_40 = lean_ctor_get(x_17, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_17); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_32, 0); +x_48 = lean_ctor_get(x_32, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_32); +x_49 = l_Lean_Exception_isInterrupt(x_47); +if (x_49 == 0) { -uint8_t 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_dec(x_39); -x_42 = 0; +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_47); +if (x_50 == 0) +{ +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_dec(x_47); +x_51 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_43 = l_Lean_Elab_Tactic_SavedState_restore(x_15, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Lean_Elab_Tactic_SavedState_restore(x_12, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +x_52 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_48); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = l_Lean_Elab_Tactic_SavedState_restore(x_26, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53); lean_dec(x_3); lean_dec(x_2); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); -} -x_48 = lean_box(0); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_47; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1; +x_11 = x_56; +x_12 = x_55; +goto block_24; } else { -lean_object* x_50; -lean_dec(x_15); -lean_dec(x_12); +lean_object* x_57; +lean_dec(x_30); +lean_dec(x_26); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -334,10 +332,225 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_39); -lean_ctor_set(x_50, 1, x_40); -return x_50; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_47); +lean_ctor_set(x_57, 1, x_48); +return x_57; +} +} +else +{ +lean_object* x_58; +lean_dec(x_30); +lean_dec(x_26); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_47); +lean_ctor_set(x_58, 1, x_48); +return x_58; +} +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_28, 0); +x_60 = lean_ctor_get(x_28, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_28); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_61 = lean_apply_9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_60); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_59); +lean_dec(x_26); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_64); +x_11 = x_65; +x_12 = x_63; +goto block_24; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_61, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_68 = x_61; +} else { + lean_dec_ref(x_61); + x_68 = lean_box(0); +} +x_69 = l_Lean_Exception_isInterrupt(x_66); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = l_Lean_Exception_isRuntime(x_66); +if (x_70 == 0) +{ +uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_68); +lean_dec(x_66); +x_71 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_72 = l_Lean_Elab_Tactic_SavedState_restore(x_59, x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_67); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = l_Lean_Elab_Tactic_SavedState_restore(x_26, x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_73); +lean_dec(x_3); +lean_dec(x_2); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +x_76 = l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1; +x_11 = x_76; +x_12 = x_75; +goto block_24; +} +else +{ +lean_object* x_77; +lean_dec(x_59); +lean_dec(x_26); +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); +if (lean_is_scalar(x_68)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_68; +} +lean_ctor_set(x_77, 0, x_66); +lean_ctor_set(x_77, 1, x_67); +return x_77; +} +} +else +{ +lean_object* x_78; +lean_dec(x_59); +lean_dec(x_26); +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); +if (lean_is_scalar(x_68)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_68; +} +lean_ctor_set(x_78, 0, x_66); +lean_ctor_set(x_78, 1, x_67); +return x_78; +} +} +} +block_24: +{ +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_ctor_get(x_11, 1); +lean_dec(x_15); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_11, 1, x_12); +lean_ctor_set(x_11, 0, x_16); +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_12); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_11); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_11, 1); +lean_dec(x_21); +lean_ctor_set_tag(x_11, 0); +lean_ctor_set(x_11, 1, x_12); +return x_11; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_11, 0); +lean_inc(x_22); +lean_dec(x_11); +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; } } } @@ -2287,6 +2500,8 @@ l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__ lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__1___rarg___closed__1); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__1___rarg___closed__2(); lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalRepeat_x27___spec__1___rarg___closed__2); +l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1 = _init_l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1(); +lean_mark_persistent(l_Lean_observing_x3f___at_Lean_Elab_Tactic_evalRepeat_x27___spec__5___closed__1); l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__1 = _init_l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__1(); lean_mark_persistent(l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__1); l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__2 = _init_l_Lean_Meta_repeat_x27Core___at_Lean_Elab_Tactic_evalRepeat_x27___spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c index 0d1896fdc5..580e240d39 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c @@ -33,6 +33,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSa lean_object* l_Lean_Elab_Tactic_getFVarId(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_withRWRulesSeq_go___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_1164_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_withRWRulesSeq___closed__4; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -146,6 +147,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withRWRulesSeq_go(lean_object*, uint8_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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(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_elabRewriteConfig___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRewriteSeq___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -189,7 +191,6 @@ lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabRewriteConfig___spec__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*); -lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(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_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRewriteSeq___lambda__2___boxed(lean_object*, lean_object*, 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); @@ -1048,10 +1049,14 @@ 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_32, 1); -x_36 = l_Lean_Exception_isRuntime(x_34); +x_36 = l_Lean_Exception_isInterrupt(x_34); if (x_36 == 0) { -lean_object* x_37; lean_object* x_38; +uint8_t x_37; +x_37 = l_Lean_Exception_isRuntime(x_34); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_free_object(x_32); lean_dec(x_34); lean_inc(x_13); @@ -1060,12 +1065,12 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_37 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); +x_38 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); x_5 = x_22; -x_14 = x_38; +x_14 = x_39; goto _start; } else @@ -1088,34 +1093,6 @@ return x_32; } else { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_32, 0); -x_41 = lean_ctor_get(x_32, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_32); -x_42 = l_Lean_Exception_isRuntime(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_40); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_43 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_41); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_5 = x_22; -x_14 = x_44; -goto _start; -} -else -{ -lean_object* x_46; lean_dec(x_30); lean_dec(x_22); lean_dec(x_13); @@ -1129,10 +1106,82 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_40); -lean_ctor_set(x_46, 1, x_41); -return x_46; +return x_32; +} +} +else +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_32, 0); +x_42 = lean_ctor_get(x_32, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_32); +x_43 = l_Lean_Exception_isInterrupt(x_41); +if (x_43 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Exception_isRuntime(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_45 = l_Lean_Elab_Tactic_SavedState_restore(x_30, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_42); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_5 = x_22; +x_14 = x_46; +goto _start; +} +else +{ +lean_object* x_48; +lean_dec(x_30); +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_42); +return x_48; +} +} +else +{ +lean_object* x_49; +lean_dec(x_30); +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_41); +lean_ctor_set(x_49, 1, x_42); +return x_49; } } } @@ -2057,16 +2106,16 @@ return x_27; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_inc(x_24); x_28 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); lean_closure_set(x_28, 0, x_24); -x_75 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); +x_78 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -2075,54 +2124,58 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_78 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_77); -if (lean_obj_tag(x_78) == 0) +x_81 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_80); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_79; lean_object* x_80; -lean_dec(x_76); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_29 = x_79; -x_30 = x_80; -goto block_74; +lean_object* x_82; lean_object* x_83; +lean_dec(x_79); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_29 = x_82; +x_30 = x_83; +goto block_77; } else { -uint8_t x_81; -x_81 = !lean_is_exclusive(x_78); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_78, 0); -x_83 = lean_ctor_get(x_78, 1); -x_84 = l_Lean_Exception_isRuntime(x_82); +uint8_t x_84; +x_84 = !lean_is_exclusive(x_81); if (x_84 == 0) { -uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_free_object(x_78); -lean_dec(x_82); -x_85 = 0; +lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_85 = lean_ctor_get(x_81, 0); +x_86 = lean_ctor_get(x_81, 1); +x_87 = l_Lean_Exception_isInterrupt(x_85); +if (x_87 == 0) +{ +uint8_t x_88; +x_88 = l_Lean_Exception_isRuntime(x_85); +if (x_88 == 0) +{ +uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_free_object(x_81); +lean_dec(x_85); +x_89 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_86 = l_Lean_Elab_Tactic_SavedState_restore(x_76, x_85, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_83); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_88 = lean_box(0); -x_29 = x_88; -x_30 = x_87; -goto block_74; +x_90 = l_Lean_Elab_Tactic_SavedState_restore(x_79, x_89, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_86); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_box(0); +x_29 = x_92; +x_30 = x_91; +goto block_77; } else { -lean_dec(x_76); +lean_dec(x_79); lean_dec(x_24); lean_dec(x_13); lean_dec(x_14); @@ -2134,42 +2187,63 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -return x_78; +return x_81; } } else { -lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_89 = lean_ctor_get(x_78, 0); -x_90 = lean_ctor_get(x_78, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_78); -x_91 = l_Lean_Exception_isRuntime(x_89); -if (x_91 == 0) +lean_dec(x_79); +lean_dec(x_24); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_81; +} +} +else { -uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -lean_dec(x_89); -x_92 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_93 = l_Lean_Elab_Tactic_SavedState_restore(x_76, x_92, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_90); -x_94 = lean_ctor_get(x_93, 1); +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_81, 0); +x_94 = lean_ctor_get(x_81, 1); lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_81); +x_95 = l_Lean_Exception_isInterrupt(x_93); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = l_Lean_Exception_isRuntime(x_93); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_dec(x_93); -x_95 = lean_box(0); -x_29 = x_95; -x_30 = x_94; -goto block_74; +x_97 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_98 = l_Lean_Elab_Tactic_SavedState_restore(x_79, x_97, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_94); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = lean_box(0); +x_29 = x_100; +x_30 = x_99; +goto block_77; } else { -lean_object* x_96; -lean_dec(x_76); +lean_object* x_101; +lean_dec(x_79); lean_dec(x_24); lean_dec(x_13); lean_dec(x_14); @@ -2181,14 +2255,35 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_89); -lean_ctor_set(x_96, 1, x_90); -return x_96; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_93); +lean_ctor_set(x_101, 1, x_94); +return x_101; +} +} +else +{ +lean_object* x_102; +lean_dec(x_79); +lean_dec(x_24); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_93); +lean_ctor_set(x_102, 1, x_94); +return x_102; } } } -block_74: +block_77: { if (lean_obj_tag(x_29) == 0) { @@ -2225,67 +2320,71 @@ 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); -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_free_object(x_34); lean_dec(x_39); -x_42 = 0; +x_43 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_43 = l_Lean_Elab_Tactic_SavedState_restore(x_32, x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_40); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_box(x_5); -x_46 = lean_apply_11(x_4, x_45, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); -if (lean_obj_tag(x_46) == 0) +x_44 = l_Lean_Elab_Tactic_SavedState_restore(x_32, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_40); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_box(x_5); +x_47 = lean_apply_11(x_4, x_46, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_45); +if (lean_obj_tag(x_47) == 0) { -uint8_t x_47; -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +uint8_t x_48; +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -return x_46; +return x_47; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_ctor_get(x_46, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_46); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +lean_dec(x_47); +x_51 = lean_alloc_ctor(0, 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_51; -x_51 = !lean_is_exclusive(x_46); -if (x_51 == 0) +uint8_t x_52; +x_52 = !lean_is_exclusive(x_47); +if (x_52 == 0) { -return x_46; +return x_47; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_46, 0); -x_53 = lean_ctor_get(x_46, 1); +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); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_46); -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; +lean_dec(x_47); +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; } } } @@ -2307,82 +2406,6 @@ return x_34; } else { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_34, 0); -x_56 = lean_ctor_get(x_34, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_34); -x_57 = l_Lean_Exception_isRuntime(x_55); -if (x_57 == 0) -{ -uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_55); -x_58 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_59 = l_Lean_Elab_Tactic_SavedState_restore(x_32, x_58, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_56); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_box(x_5); -x_62 = lean_apply_11(x_4, x_61, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_60); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_62, 0); -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; -} else { - lean_dec_ref(x_62); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(0, 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; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_62, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_62, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_69 = x_62; -} else { - lean_dec_ref(x_62); - 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 -{ -lean_object* x_71; lean_dec(x_32); lean_dec(x_13); lean_dec(x_14); @@ -2394,96 +2417,92 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_55); -lean_ctor_set(x_71, 1, x_56); -return x_71; -} -} +return x_34; } } else { -lean_object* x_72; lean_object* x_73; -lean_dec(x_29); -lean_dec(x_24); -x_72 = lean_box(x_5); -x_73 = lean_apply_11(x_4, x_72, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); -return x_73; -} -} -} -} -} -else +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_34, 0); +x_57 = lean_ctor_get(x_34, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_34); +x_58 = l_Lean_Exception_isInterrupt(x_56); +if (x_58 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_6); -lean_inc(x_3); -x_97 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); -lean_closure_set(x_97, 0, x_3); -x_144 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -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); +uint8_t x_59; +x_59 = l_Lean_Exception_isRuntime(x_56); +if (x_59 == 0) +{ +uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_56); +x_60 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_147 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_97, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_146); -if (lean_obj_tag(x_147) == 0) +x_61 = l_Lean_Elab_Tactic_SavedState_restore(x_32, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_57); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_box(x_5); +x_64 = lean_apply_11(x_4, x_63, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_62); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_148; lean_object* x_149; -lean_dec(x_145); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_98 = x_148; -x_99 = x_149; -goto block_143; +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; +} else { + lean_dec_ref(x_64); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; } else { -uint8_t x_150; -x_150 = !lean_is_exclusive(x_147); -if (x_150 == 0) -{ -lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_151 = lean_ctor_get(x_147, 0); -x_152 = lean_ctor_get(x_147, 1); -x_153 = l_Lean_Exception_isRuntime(x_151); -if (x_153 == 0) -{ -uint8_t x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_free_object(x_147); -lean_dec(x_151); -x_154 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_155 = l_Lean_Elab_Tactic_SavedState_restore(x_145, x_154, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_152); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -lean_dec(x_155); -x_157 = lean_box(0); -x_98 = x_157; -x_99 = x_156; -goto block_143; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_64, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_64, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_71 = x_64; +} else { + lean_dec_ref(x_64); + 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_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} } else { -lean_dec(x_145); +lean_object* x_73; +lean_dec(x_32); lean_dec(x_13); lean_dec(x_14); lean_dec(x_12); @@ -2494,42 +2513,442 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_56); +lean_ctor_set(x_73, 1, x_57); +return x_73; +} +} +else +{ +lean_object* x_74; +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_56); +lean_ctor_set(x_74, 1, x_57); +return x_74; +} +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_29); +lean_dec(x_24); +x_75 = lean_box(x_5); +x_76 = lean_apply_11(x_4, x_75, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_76; +} +} +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_6); +lean_inc(x_3); +x_103 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); +lean_closure_set(x_103, 0, x_3); +x_153 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_156 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_103, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_155); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; +lean_dec(x_154); +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_104 = x_157; +x_105 = x_158; +goto block_152; +} +else +{ +uint8_t x_159; +x_159 = !lean_is_exclusive(x_156); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_160 = lean_ctor_get(x_156, 0); +x_161 = lean_ctor_get(x_156, 1); +x_162 = l_Lean_Exception_isInterrupt(x_160); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = l_Lean_Exception_isRuntime(x_160); +if (x_163 == 0) +{ +uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_free_object(x_156); +lean_dec(x_160); +x_164 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_165 = l_Lean_Elab_Tactic_SavedState_restore(x_154, x_164, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_161); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_box(0); +x_104 = x_167; +x_105 = x_166; +goto block_152; +} +else +{ +lean_dec(x_154); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_156; +} +} +else +{ +lean_dec(x_154); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_156; +} +} +else +{ +lean_object* x_168; lean_object* x_169; uint8_t x_170; +x_168 = lean_ctor_get(x_156, 0); +x_169 = lean_ctor_get(x_156, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_156); +x_170 = l_Lean_Exception_isInterrupt(x_168); +if (x_170 == 0) +{ +uint8_t x_171; +x_171 = l_Lean_Exception_isRuntime(x_168); +if (x_171 == 0) +{ +uint8_t x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_168); +x_172 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_173 = l_Lean_Elab_Tactic_SavedState_restore(x_154, x_172, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_169); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +lean_dec(x_173); +x_175 = lean_box(0); +x_104 = x_175; +x_105 = x_174; +goto block_152; +} +else +{ +lean_object* x_176; +lean_dec(x_154); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_168); +lean_ctor_set(x_176, 1, x_169); +return x_176; +} +} +else +{ +lean_object* x_177; +lean_dec(x_154); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_168); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +block_152: +{ +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_106 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_105); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_3); +x_109 = l_Lean_realizeGlobalConstNoOverload(x_3, x_13, x_14, x_108); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_107); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__3(x_4, x_5, x_3, x_110, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_111); +return x_112; +} +else +{ +uint8_t x_113; +x_113 = !lean_is_exclusive(x_109); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_114 = lean_ctor_get(x_109, 0); +x_115 = lean_ctor_get(x_109, 1); +x_116 = l_Lean_Exception_isInterrupt(x_114); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = l_Lean_Exception_isRuntime(x_114); +if (x_117 == 0) +{ +uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_free_object(x_109); +lean_dec(x_114); +x_118 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_119 = l_Lean_Elab_Tactic_SavedState_restore(x_107, x_118, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_115); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = lean_box(x_5); +x_122 = lean_apply_11(x_4, x_121, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_120); +if (lean_obj_tag(x_122) == 0) +{ +uint8_t x_123; +x_123 = !lean_is_exclusive(x_122); +if (x_123 == 0) +{ +return x_122; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_122, 0); +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_122); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +else +{ +uint8_t x_127; +x_127 = !lean_is_exclusive(x_122); +if (x_127 == 0) +{ +return x_122; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_122, 0); +x_129 = lean_ctor_get(x_122, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_122); +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_dec(x_107); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_109; +} +} +else +{ +lean_dec(x_107); +lean_dec(x_13); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +return x_109; +} +} +else +{ +lean_object* x_131; lean_object* x_132; uint8_t x_133; +x_131 = lean_ctor_get(x_109, 0); +x_132 = lean_ctor_get(x_109, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_109); +x_133 = l_Lean_Exception_isInterrupt(x_131); +if (x_133 == 0) +{ +uint8_t x_134; +x_134 = l_Lean_Exception_isRuntime(x_131); +if (x_134 == 0) +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_131); +x_135 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_136 = l_Lean_Elab_Tactic_SavedState_restore(x_107, x_135, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_132); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = lean_box(x_5); +x_139 = lean_apply_11(x_4, x_138, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_137); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_142 = x_139; +} else { + lean_dec_ref(x_139); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_144 = lean_ctor_get(x_139, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_139, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_146 = x_139; +} else { + lean_dec_ref(x_139); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(1, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); return x_147; } } else { -lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_158 = lean_ctor_get(x_147, 0); -x_159 = lean_ctor_get(x_147, 1); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_147); -x_160 = l_Lean_Exception_isRuntime(x_158); -if (x_160 == 0) -{ -uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_158); -x_161 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_162 = l_Lean_Elab_Tactic_SavedState_restore(x_145, x_161, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_159); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); -x_164 = lean_box(0); -x_98 = x_164; -x_99 = x_163; -goto block_143; -} -else -{ -lean_object* x_165; -lean_dec(x_145); +lean_object* x_148; +lean_dec(x_107); lean_dec(x_13); lean_dec(x_14); lean_dec(x_12); @@ -2540,116 +2959,16 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_158); -lean_ctor_set(x_165, 1, x_159); -return x_165; -} -} -} -block_143: -{ -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_100 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_3); -x_103 = l_Lean_realizeGlobalConstNoOverload(x_3, x_13, x_14, x_102); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_101); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__3(x_4, x_5, x_3, x_104, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_105); -return x_106; -} -else -{ -uint8_t x_107; -x_107 = !lean_is_exclusive(x_103); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_108 = lean_ctor_get(x_103, 0); -x_109 = lean_ctor_get(x_103, 1); -x_110 = l_Lean_Exception_isRuntime(x_108); -if (x_110 == 0) -{ -uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_free_object(x_103); -lean_dec(x_108); -x_111 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_112 = l_Lean_Elab_Tactic_SavedState_restore(x_101, x_111, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_109); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -x_114 = lean_box(x_5); -x_115 = lean_apply_11(x_4, x_114, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_113); -if (lean_obj_tag(x_115) == 0) -{ -uint8_t x_116; -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) -{ -return x_115; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_115); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_131); +lean_ctor_set(x_148, 1, x_132); +return x_148; } } else { -uint8_t x_120; -x_120 = !lean_is_exclusive(x_115); -if (x_120 == 0) -{ -return x_115; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_115, 0); -x_122 = lean_ctor_get(x_115, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_115); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; -} -} -} -else -{ -lean_dec(x_101); +lean_object* x_149; +lean_dec(x_107); lean_dec(x_13); lean_dec(x_14); lean_dec(x_12); @@ -2660,267 +2979,184 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -return x_103; +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_131); +lean_ctor_set(x_149, 1, x_132); +return x_149; +} +} } } else { -lean_object* x_124; lean_object* x_125; uint8_t x_126; -x_124 = lean_ctor_get(x_103, 0); -x_125 = lean_ctor_get(x_103, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_103); -x_126 = l_Lean_Exception_isRuntime(x_124); -if (x_126 == 0) -{ -uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_124); -x_127 = 0; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_128 = l_Lean_Elab_Tactic_SavedState_restore(x_101, x_127, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_125); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -lean_dec(x_128); -x_130 = lean_box(x_5); -x_131 = lean_apply_11(x_4, x_130, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_129); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -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_object* x_150; lean_object* x_151; +lean_dec(x_104); +x_150 = lean_box(x_5); +x_151 = lean_apply_11(x_4, x_150, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_105); +return x_151; } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_134; } -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_131, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_138 = x_131; -} else { - lean_dec_ref(x_131); - x_138 = lean_box(0); -} -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); -} else { - x_139 = x_138; -} -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; } } else { -lean_object* x_140; -lean_dec(x_101); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; +x_178 = lean_ctor_get(x_13, 0); +x_179 = lean_ctor_get(x_13, 1); +x_180 = lean_ctor_get(x_13, 2); +x_181 = lean_ctor_get(x_13, 3); +x_182 = lean_ctor_get(x_13, 4); +x_183 = lean_ctor_get(x_13, 5); +x_184 = lean_ctor_get(x_13, 6); +x_185 = lean_ctor_get(x_13, 7); +x_186 = lean_ctor_get(x_13, 8); +x_187 = lean_ctor_get(x_13, 9); +x_188 = lean_ctor_get(x_13, 10); +x_189 = lean_ctor_get_uint8(x_13, sizeof(void*)*12); +x_190 = lean_ctor_get(x_13, 11); +x_191 = lean_ctor_get_uint8(x_13, sizeof(void*)*12 + 1); +lean_inc(x_190); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); lean_dec(x_13); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_124); -lean_ctor_set(x_140, 1, x_125); -return x_140; -} -} -} -} -else -{ -lean_object* x_141; lean_object* x_142; -lean_dec(x_98); -x_141 = lean_box(x_5); -x_142 = lean_apply_11(x_4, x_141, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_142; -} -} -} -} -else -{ -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; uint8_t x_177; lean_object* x_178; lean_object* x_179; -x_166 = lean_ctor_get(x_13, 0); -x_167 = lean_ctor_get(x_13, 1); -x_168 = lean_ctor_get(x_13, 2); -x_169 = lean_ctor_get(x_13, 3); -x_170 = lean_ctor_get(x_13, 4); -x_171 = lean_ctor_get(x_13, 5); -x_172 = lean_ctor_get(x_13, 6); -x_173 = lean_ctor_get(x_13, 7); -x_174 = lean_ctor_get(x_13, 8); -x_175 = lean_ctor_get(x_13, 9); -x_176 = lean_ctor_get(x_13, 10); -x_177 = lean_ctor_get_uint8(x_13, sizeof(void*)*11); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_inc(x_173); -lean_inc(x_172); -lean_inc(x_171); -lean_inc(x_170); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); -lean_inc(x_166); -lean_dec(x_13); -x_178 = l_Lean_replaceRef(x_1, x_171); -lean_dec(x_171); +x_192 = l_Lean_replaceRef(x_1, x_183); +lean_dec(x_183); lean_dec(x_1); -x_179 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_179, 0, x_166); -lean_ctor_set(x_179, 1, x_167); -lean_ctor_set(x_179, 2, x_168); -lean_ctor_set(x_179, 3, x_169); -lean_ctor_set(x_179, 4, x_170); -lean_ctor_set(x_179, 5, x_178); -lean_ctor_set(x_179, 6, x_172); -lean_ctor_set(x_179, 7, x_173); -lean_ctor_set(x_179, 8, x_174); -lean_ctor_set(x_179, 9, x_175); -lean_ctor_set(x_179, 10, x_176); -lean_ctor_set_uint8(x_179, sizeof(void*)*11, x_177); +x_193 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_193, 0, x_178); +lean_ctor_set(x_193, 1, x_179); +lean_ctor_set(x_193, 2, x_180); +lean_ctor_set(x_193, 3, x_181); +lean_ctor_set(x_193, 4, x_182); +lean_ctor_set(x_193, 5, x_192); +lean_ctor_set(x_193, 6, x_184); +lean_ctor_set(x_193, 7, x_185); +lean_ctor_set(x_193, 8, x_186); +lean_ctor_set(x_193, 9, x_187); +lean_ctor_set(x_193, 10, x_188); +lean_ctor_set(x_193, 11, x_190); +lean_ctor_set_uint8(x_193, sizeof(void*)*12, x_189); +lean_ctor_set_uint8(x_193, sizeof(void*)*12 + 1, x_191); if (x_2 == 0) { -lean_object* x_180; uint8_t x_181; -x_180 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__4___closed__5; +lean_object* x_194; uint8_t x_195; +x_194 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__4___closed__5; lean_inc(x_3); -x_181 = l_Lean_Syntax_isOfKind(x_3, x_180); -if (x_181 == 0) +x_195 = l_Lean_Syntax_isOfKind(x_3, x_194); +if (x_195 == 0) { -lean_object* x_182; lean_object* x_183; +lean_object* x_196; lean_object* x_197; lean_dec(x_6); -x_182 = lean_box(x_5); -x_183 = lean_apply_11(x_4, x_182, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_15); -return x_183; +x_196 = lean_box(x_5); +x_197 = lean_apply_11(x_4, x_196, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_15); +return x_197; } else { -lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_184 = lean_unsigned_to_nat(1u); -x_185 = l_Lean_Syntax_getArg(x_3, x_184); -lean_inc(x_185); -x_186 = l_Lean_Syntax_isOfKind(x_185, x_6); +lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_198 = lean_unsigned_to_nat(1u); +x_199 = l_Lean_Syntax_getArg(x_3, x_198); +lean_inc(x_199); +x_200 = l_Lean_Syntax_isOfKind(x_199, x_6); lean_dec(x_6); -if (x_186 == 0) +if (x_200 == 0) { -lean_object* x_187; lean_object* x_188; -lean_dec(x_185); -x_187 = lean_box(x_5); -x_188 = lean_apply_11(x_4, x_187, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_15); -return x_188; +lean_object* x_201; lean_object* x_202; +lean_dec(x_199); +x_201 = lean_box(x_5); +x_202 = lean_apply_11(x_4, x_201, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_15); +return x_202; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_inc(x_185); -x_189 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); -lean_closure_set(x_189, 0, x_185); -x_220 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_15); -x_221 = lean_ctor_get(x_220, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_220, 1); -lean_inc(x_222); -lean_dec(x_220); +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_inc(x_199); +x_203 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); +lean_closure_set(x_203, 0, x_199); +x_236 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_15); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +lean_dec(x_236); lean_inc(x_14); -lean_inc(x_179); +lean_inc(x_193); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_223 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_189, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_222); -if (lean_obj_tag(x_223) == 0) +x_239 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_203, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_238); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_224; lean_object* x_225; -lean_dec(x_221); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_190 = x_224; -x_191 = x_225; -goto block_219; +lean_object* x_240; lean_object* x_241; +lean_dec(x_237); +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_204 = x_240; +x_205 = x_241; +goto block_235; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; -x_226 = lean_ctor_get(x_223, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_223, 1); -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; +lean_object* x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; +x_242 = lean_ctor_get(x_239, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_239, 1); +lean_inc(x_243); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_244 = x_239; } else { - lean_dec_ref(x_223); - x_228 = lean_box(0); + lean_dec_ref(x_239); + x_244 = lean_box(0); } -x_229 = l_Lean_Exception_isRuntime(x_226); -if (x_229 == 0) +x_245 = l_Lean_Exception_isInterrupt(x_242); +if (x_245 == 0) { -uint8_t x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -lean_dec(x_228); -lean_dec(x_226); -x_230 = 0; +uint8_t x_246; +x_246 = l_Lean_Exception_isRuntime(x_242); +if (x_246 == 0) +{ +uint8_t x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_244); +lean_dec(x_242); +x_247 = 0; lean_inc(x_14); -lean_inc(x_179); +lean_inc(x_193); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_231 = l_Lean_Elab_Tactic_SavedState_restore(x_221, x_230, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_227); -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -lean_dec(x_231); -x_233 = lean_box(0); -x_190 = x_233; -x_191 = x_232; -goto block_219; +x_248 = l_Lean_Elab_Tactic_SavedState_restore(x_237, x_247, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_243); +x_249 = lean_ctor_get(x_248, 1); +lean_inc(x_249); +lean_dec(x_248); +x_250 = lean_box(0); +x_204 = x_250; +x_205 = x_249; +goto block_235; } else { -lean_object* x_234; -lean_dec(x_221); -lean_dec(x_185); -lean_dec(x_179); +lean_object* x_251; +lean_dec(x_237); +lean_dec(x_199); +lean_dec(x_193); lean_dec(x_14); lean_dec(x_12); lean_dec(x_11); @@ -2930,242 +3166,299 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_228)) { - x_234 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_244)) { + x_251 = lean_alloc_ctor(1, 2, 0); } else { - x_234 = x_228; + x_251 = x_244; } -lean_ctor_set(x_234, 0, x_226); -lean_ctor_set(x_234, 1, x_227); +lean_ctor_set(x_251, 0, x_242); +lean_ctor_set(x_251, 1, x_243); +return x_251; +} +} +else +{ +lean_object* x_252; +lean_dec(x_237); +lean_dec(x_199); +lean_dec(x_193); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_244)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_244; +} +lean_ctor_set(x_252, 0, x_242); +lean_ctor_set(x_252, 1, x_243); +return x_252; +} +} +block_235: +{ +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_206 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_205); +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +lean_dec(x_206); +lean_inc(x_14); +lean_inc(x_193); +lean_inc(x_199); +x_209 = l_Lean_realizeGlobalConstNoOverload(x_199, x_193, x_14, x_208); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_dec(x_207); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_212 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__2(x_4, x_5, x_3, x_199, x_210, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_211); +return x_212; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; +lean_dec(x_199); +x_213 = lean_ctor_get(x_209, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_209, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_209)) { + lean_ctor_release(x_209, 0); + lean_ctor_release(x_209, 1); + x_215 = x_209; +} else { + lean_dec_ref(x_209); + x_215 = lean_box(0); +} +x_216 = l_Lean_Exception_isInterrupt(x_213); +if (x_216 == 0) +{ +uint8_t x_217; +x_217 = l_Lean_Exception_isRuntime(x_213); +if (x_217 == 0) +{ +uint8_t x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_215); +lean_dec(x_213); +x_218 = 0; +lean_inc(x_14); +lean_inc(x_193); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_219 = l_Lean_Elab_Tactic_SavedState_restore(x_207, x_218, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_214); +x_220 = lean_ctor_get(x_219, 1); +lean_inc(x_220); +lean_dec(x_219); +x_221 = lean_box(x_5); +x_222 = lean_apply_11(x_4, x_221, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_220); +if (lean_obj_tag(x_222) == 0) +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +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_225)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_225; +} +lean_ctor_set(x_226, 0, x_223); +lean_ctor_set(x_226, 1, x_224); +return x_226; +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_227 = lean_ctor_get(x_222, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_222, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_229 = x_222; +} else { + lean_dec_ref(x_222); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +} +else +{ +lean_object* x_231; +lean_dec(x_207); +lean_dec(x_193); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_215)) { + x_231 = lean_alloc_ctor(1, 2, 0); +} else { + x_231 = x_215; +} +lean_ctor_set(x_231, 0, x_213); +lean_ctor_set(x_231, 1, x_214); +return x_231; +} +} +else +{ +lean_object* x_232; +lean_dec(x_207); +lean_dec(x_193); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_215)) { + x_232 = lean_alloc_ctor(1, 2, 0); +} else { + x_232 = x_215; +} +lean_ctor_set(x_232, 0, x_213); +lean_ctor_set(x_232, 1, x_214); +return x_232; +} +} +} +else +{ +lean_object* x_233; lean_object* x_234; +lean_dec(x_204); +lean_dec(x_199); +x_233 = lean_box(x_5); +x_234 = lean_apply_11(x_4, x_233, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_205); return x_234; } } -block_219: -{ -if (lean_obj_tag(x_190) == 0) -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_192 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_191); -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); -lean_inc(x_14); -lean_inc(x_179); -lean_inc(x_185); -x_195 = l_Lean_realizeGlobalConstNoOverload(x_185, x_179, x_14, x_194); -if (lean_obj_tag(x_195) == 0) -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; -lean_dec(x_193); -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_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__2(x_4, x_5, x_3, x_185, x_196, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_197); -return x_198; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -lean_dec(x_185); -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 = l_Lean_Exception_isRuntime(x_199); -if (x_202 == 0) -{ -uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_201); -lean_dec(x_199); -x_203 = 0; -lean_inc(x_14); -lean_inc(x_179); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_204 = l_Lean_Elab_Tactic_SavedState_restore(x_193, x_203, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_200); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -lean_dec(x_204); -x_206 = lean_box(x_5); -x_207 = lean_apply_11(x_4, x_206, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_205); -if (lean_obj_tag(x_207) == 0) -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_210 = x_207; -} else { - lean_dec_ref(x_207); - x_210 = lean_box(0); -} -if (lean_is_scalar(x_210)) { - x_211 = lean_alloc_ctor(0, 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; -x_212 = lean_ctor_get(x_207, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_207, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_214 = x_207; -} else { - lean_dec_ref(x_207); - 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); -return x_215; -} -} -else -{ -lean_object* x_216; -lean_dec(x_193); -lean_dec(x_179); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_201)) { - x_216 = lean_alloc_ctor(1, 2, 0); -} else { - x_216 = x_201; -} -lean_ctor_set(x_216, 0, x_199); -lean_ctor_set(x_216, 1, x_200); -return x_216; } } } else { -lean_object* x_217; lean_object* x_218; -lean_dec(x_190); -lean_dec(x_185); -x_217 = lean_box(x_5); -x_218 = lean_apply_11(x_4, x_217, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_191); -return x_218; -} -} -} -} -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_dec(x_6); lean_inc(x_3); -x_235 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); -lean_closure_set(x_235, 0, x_3); -x_266 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_15); -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -lean_dec(x_266); +x_253 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__1), 10, 1); +lean_closure_set(x_253, 0, x_3); +x_286 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_15); +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_286, 1); +lean_inc(x_288); +lean_dec(x_286); lean_inc(x_14); -lean_inc(x_179); +lean_inc(x_193); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_269 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_235, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_268); -if (lean_obj_tag(x_269) == 0) +x_289 = l_Lean_Elab_Tactic_withoutRecover___rarg(x_253, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_288); +if (lean_obj_tag(x_289) == 0) { -lean_object* x_270; lean_object* x_271; -lean_dec(x_267); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -lean_dec(x_269); -x_236 = x_270; -x_237 = x_271; -goto block_265; +lean_object* x_290; lean_object* x_291; +lean_dec(x_287); +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_254 = x_290; +x_255 = x_291; +goto block_285; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; -x_272 = lean_ctor_get(x_269, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_269, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_274 = x_269; +lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; +x_292 = lean_ctor_get(x_289, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_289, 1); +lean_inc(x_293); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_294 = x_289; } else { - lean_dec_ref(x_269); - x_274 = lean_box(0); + lean_dec_ref(x_289); + x_294 = lean_box(0); } -x_275 = l_Lean_Exception_isRuntime(x_272); -if (x_275 == 0) +x_295 = l_Lean_Exception_isInterrupt(x_292); +if (x_295 == 0) { -uint8_t x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; -lean_dec(x_274); -lean_dec(x_272); -x_276 = 0; +uint8_t x_296; +x_296 = l_Lean_Exception_isRuntime(x_292); +if (x_296 == 0) +{ +uint8_t x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_dec(x_294); +lean_dec(x_292); +x_297 = 0; lean_inc(x_14); -lean_inc(x_179); +lean_inc(x_193); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_277 = l_Lean_Elab_Tactic_SavedState_restore(x_267, x_276, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_273); -x_278 = lean_ctor_get(x_277, 1); -lean_inc(x_278); -lean_dec(x_277); -x_279 = lean_box(0); -x_236 = x_279; -x_237 = x_278; -goto block_265; +x_298 = l_Lean_Elab_Tactic_SavedState_restore(x_287, x_297, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_293); +x_299 = lean_ctor_get(x_298, 1); +lean_inc(x_299); +lean_dec(x_298); +x_300 = lean_box(0); +x_254 = x_300; +x_255 = x_299; +goto block_285; } else { -lean_object* x_280; -lean_dec(x_267); -lean_dec(x_179); +lean_object* x_301; +lean_dec(x_287); +lean_dec(x_193); lean_dec(x_14); lean_dec(x_12); lean_dec(x_11); @@ -3175,131 +3468,159 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_274)) { +if (lean_is_scalar(x_294)) { + x_301 = lean_alloc_ctor(1, 2, 0); +} else { + x_301 = x_294; +} +lean_ctor_set(x_301, 0, x_292); +lean_ctor_set(x_301, 1, x_293); +return x_301; +} +} +else +{ +lean_object* x_302; +lean_dec(x_287); +lean_dec(x_193); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_294)) { + x_302 = lean_alloc_ctor(1, 2, 0); +} else { + x_302 = x_294; +} +lean_ctor_set(x_302, 0, x_292); +lean_ctor_set(x_302, 1, x_293); +return x_302; +} +} +block_285: +{ +if (lean_obj_tag(x_254) == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_256 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_255); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +lean_inc(x_14); +lean_inc(x_193); +lean_inc(x_3); +x_259 = l_Lean_realizeGlobalConstNoOverload(x_3, x_193, x_14, x_258); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_257); +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); +lean_dec(x_259); +x_262 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__3(x_4, x_5, x_3, x_260, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_261); +return x_262; +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; +x_263 = lean_ctor_get(x_259, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_259, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + x_265 = x_259; +} else { + lean_dec_ref(x_259); + x_265 = lean_box(0); +} +x_266 = l_Lean_Exception_isInterrupt(x_263); +if (x_266 == 0) +{ +uint8_t x_267; +x_267 = l_Lean_Exception_isRuntime(x_263); +if (x_267 == 0) +{ +uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +lean_dec(x_265); +lean_dec(x_263); +x_268 = 0; +lean_inc(x_14); +lean_inc(x_193); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_269 = l_Lean_Elab_Tactic_SavedState_restore(x_257, x_268, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_264); +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +lean_dec(x_269); +x_271 = lean_box(x_5); +x_272 = lean_apply_11(x_4, x_271, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_270); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_273 = lean_ctor_get(x_272, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_275 = x_272; +} else { + lean_dec_ref(x_272); + x_275 = lean_box(0); +} +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_275; +} +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_274); +return x_276; +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_277 = lean_ctor_get(x_272, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_272, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_279 = x_272; +} else { + lean_dec_ref(x_272); + x_279 = lean_box(0); +} +if (lean_is_scalar(x_279)) { x_280 = lean_alloc_ctor(1, 2, 0); } else { - x_280 = x_274; + x_280 = x_279; } -lean_ctor_set(x_280, 0, x_272); -lean_ctor_set(x_280, 1, x_273); +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); return x_280; } } -block_265: -{ -if (lean_obj_tag(x_236) == 0) -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_238 = l_Lean_Elab_Tactic_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_237); -x_239 = lean_ctor_get(x_238, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_238, 1); -lean_inc(x_240); -lean_dec(x_238); -lean_inc(x_14); -lean_inc(x_179); -lean_inc(x_3); -x_241 = l_Lean_realizeGlobalConstNoOverload(x_3, x_179, x_14, x_240); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_239); -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -x_244 = l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__1___lambda__3(x_4, x_5, x_3, x_242, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_243); -return x_244; -} else { -lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; -x_245 = lean_ctor_get(x_241, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_241, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_247 = x_241; -} else { - lean_dec_ref(x_241); - x_247 = lean_box(0); -} -x_248 = l_Lean_Exception_isRuntime(x_245); -if (x_248 == 0) -{ -uint8_t x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_247); -lean_dec(x_245); -x_249 = 0; -lean_inc(x_14); -lean_inc(x_179); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_250 = l_Lean_Elab_Tactic_SavedState_restore(x_239, x_249, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_246); -x_251 = lean_ctor_get(x_250, 1); -lean_inc(x_251); -lean_dec(x_250); -x_252 = lean_box(x_5); -x_253 = lean_apply_11(x_4, x_252, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_251); -if (lean_obj_tag(x_253) == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_253, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - x_256 = x_253; -} else { - lean_dec_ref(x_253); - x_256 = lean_box(0); -} -if (lean_is_scalar(x_256)) { - x_257 = lean_alloc_ctor(0, 2, 0); -} else { - x_257 = x_256; -} -lean_ctor_set(x_257, 0, x_254); -lean_ctor_set(x_257, 1, x_255); -return x_257; -} -else -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_258 = lean_ctor_get(x_253, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - x_260 = x_253; -} else { - lean_dec_ref(x_253); - x_260 = lean_box(0); -} -if (lean_is_scalar(x_260)) { - x_261 = lean_alloc_ctor(1, 2, 0); -} else { - x_261 = x_260; -} -lean_ctor_set(x_261, 0, x_258); -lean_ctor_set(x_261, 1, x_259); -return x_261; -} -} -else -{ -lean_object* x_262; -lean_dec(x_239); -lean_dec(x_179); +lean_object* x_281; +lean_dec(x_257); +lean_dec(x_193); lean_dec(x_14); lean_dec(x_12); lean_dec(x_11); @@ -3309,24 +3630,48 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_247)) { - x_262 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_265)) { + x_281 = lean_alloc_ctor(1, 2, 0); } else { - x_262 = x_247; + x_281 = x_265; } -lean_ctor_set(x_262, 0, x_245); -lean_ctor_set(x_262, 1, x_246); -return x_262; +lean_ctor_set(x_281, 0, x_263); +lean_ctor_set(x_281, 1, x_264); +return x_281; +} +} +else +{ +lean_object* x_282; +lean_dec(x_257); +lean_dec(x_193); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_265)) { + x_282 = lean_alloc_ctor(1, 2, 0); +} else { + x_282 = x_265; +} +lean_ctor_set(x_282, 0, x_263); +lean_ctor_set(x_282, 1, x_264); +return x_282; } } } else { -lean_object* x_263; lean_object* x_264; -lean_dec(x_236); -x_263 = lean_box(x_5); -x_264 = lean_apply_11(x_4, x_263, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_179, x_14, x_237); -return x_264; +lean_object* x_283; lean_object* x_284; +lean_dec(x_254); +x_283 = lean_box(x_5); +x_284 = lean_apply_11(x_4, x_283, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_193, x_14, x_255); +return x_284; } } } @@ -3706,7 +4051,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_29 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__9(x_28, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +x_29 = l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_runTactic___spec__11(x_28, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrites.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrites.c index 1b3d0f2520..71d7803c66 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrites.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrites.c @@ -1148,6 +1148,7 @@ lean_inc(x_33); lean_dec(x_31); x_34 = l_Lean_Elab_Rewrites_evalExact___lambda__2___closed__2; x_35 = lean_unsigned_to_nat(90u); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_5); x_36 = l_Lean_reportOutOfHeartbeats(x_34, x_5, x_35, x_13, x_14, x_33); @@ -1475,6 +1476,7 @@ lean_inc(x_101); lean_dec(x_99); x_102 = l_Lean_Elab_Rewrites_evalExact___lambda__2___closed__2; x_103 = lean_unsigned_to_nat(90u); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_5); x_104 = l_Lean_reportOutOfHeartbeats(x_102, x_5, x_103, x_13, x_14, x_101); @@ -3165,6 +3167,7 @@ lean_inc(x_30); lean_dec(x_28); x_31 = l_Lean_Elab_Rewrites_evalExact___lambda__2___closed__2; x_32 = lean_unsigned_to_nat(90u); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_4); x_33 = l_Lean_reportOutOfHeartbeats(x_31, x_4, x_32, x_11, x_12, x_30); @@ -3429,6 +3432,7 @@ lean_dec(x_16); x_19 = 0; x_20 = l_Lean_Elab_Rewrites_evalExact___lambda__7___closed__3; x_21 = lean_unsigned_to_nat(90u); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); x_22 = l_Lean_reportOutOfHeartbeats(x_20, x_1, x_21, x_11, x_12, x_18); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index 652d8b6080..7cbcf52ace 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -63,6 +63,7 @@ uint32_t l_UInt32_ofNatTruncate(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFromUserName_x3f(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__3; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_elabSimpArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4050,14 +4051,18 @@ if (x_14 == 0) { lean_object* x_15; uint8_t x_16; x_15 = lean_ctor_get(x_9, 0); -x_16 = l_Lean_Exception_isRuntime(x_15); +x_16 = l_Lean_Exception_isInterrupt(x_15); if (x_16 == 0) { -lean_object* x_17; +uint8_t x_17; +x_17 = l_Lean_Exception_isRuntime(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_dec(x_15); -x_17 = lean_box(0); +x_18 = lean_box(0); lean_ctor_set_tag(x_9, 0); -lean_ctor_set(x_9, 0, x_17); +lean_ctor_set(x_9, 0, x_18); return x_9; } else @@ -4067,30 +4072,48 @@ return x_9; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_9, 0); -x_19 = lean_ctor_get(x_9, 1); +return x_9; +} +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_9, 0); +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); lean_dec(x_9); -x_20 = l_Lean_Exception_isRuntime(x_18); -if (x_20 == 0) +x_21 = l_Lean_Exception_isInterrupt(x_19); +if (x_21 == 0) { -lean_object* x_21; lean_object* x_22; -lean_dec(x_18); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -return x_22; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_19); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +return x_24; } else { -lean_object* x_23; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_18); -lean_ctor_set(x_23, 1, x_19); -return x_23; +lean_object* x_25; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_20); +return x_25; +} +} +else +{ +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_20); +return x_26; } } } @@ -5849,7 +5872,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -5861,7 +5884,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -5874,23 +5900,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); -return x_28; +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); +return x_30; } } } @@ -6250,7 +6278,7 @@ return x_45; } 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; lean_object* x_100; uint8_t x_101; lean_object* x_102; +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_102; uint8_t x_103; lean_object* x_104; x_46 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); @@ -6264,8 +6292,8 @@ if (lean_is_exclusive(x_46)) { lean_dec_ref(x_46); x_49 = lean_box(0); } -x_100 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__4; -x_101 = 1; +x_102 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__4; +x_103 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6273,471 +6301,471 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_102 = l_Lean_Elab_Term_resolveId_x3f(x_1, x_100, x_101, x_4, x_5, x_6, x_7, x_8, x_9, x_48); -if (lean_obj_tag(x_102) == 0) +x_104 = l_Lean_Elab_Term_resolveId_x3f(x_1, x_102, x_103, x_4, x_5, x_6, x_7, x_8, x_9, x_48); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_103; +lean_object* x_105; lean_dec(x_49); lean_dec(x_47); lean_dec(x_5); lean_dec(x_4); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -if (lean_obj_tag(x_103) == 0) +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +if (lean_obj_tag(x_105) == 0) { -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_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_dec(x_7); lean_dec(x_6); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = l_Lean_Syntax_getId(x_1); -lean_dec(x_1); -x_106 = lean_erase_macro_scopes(x_105); +x_106 = lean_ctor_get(x_104, 1); lean_inc(x_106); -x_107 = l_Lean_Meta_Simp_isBuiltinSimproc(x_106, x_8, x_9, x_104); +lean_dec(x_104); +x_107 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_108 = lean_erase_macro_scopes(x_107); +lean_inc(x_108); +x_109 = l_Lean_Meta_Simp_isBuiltinSimproc(x_108, x_8, x_9, x_106); lean_dec(x_9); lean_dec(x_8); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_unbox(x_108); -lean_dec(x_108); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = lean_ctor_get(x_107, 1); +x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); -lean_dec(x_107); -lean_inc(x_106); -x_111 = l_Lean_Meta_getSimpExtension_x3f(x_106, x_110); -x_112 = !lean_is_exclusive(x_111); -if (x_112 == 0) +x_111 = lean_unbox(x_110); +lean_dec(x_110); +if (x_111 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_111, 0); -x_114 = lean_ctor_get(x_111, 1); -x_115 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_106, x_114); -if (lean_obj_tag(x_113) == 0) +lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +lean_inc(x_108); +x_113 = l_Lean_Meta_getSimpExtension_x3f(x_108, x_112); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) { -lean_object* x_116; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -if (lean_obj_tag(x_116) == 0) +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_117 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_108, x_116); +if (lean_obj_tag(x_115) == 0) { -lean_object* x_117; lean_object* x_118; -lean_free_object(x_111); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_118 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; -x_11 = x_118; -x_12 = x_117; +lean_object* x_118; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; +lean_free_object(x_113); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; +x_11 = x_120; +x_12 = x_119; goto block_21; } else { -uint8_t x_119; -x_119 = !lean_is_exclusive(x_115); -if (x_119 == 0) +uint8_t x_121; +x_121 = !lean_is_exclusive(x_117); +if (x_121 == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_115, 1); -x_121 = lean_ctor_get(x_115, 0); -lean_dec(x_121); -lean_ctor_set_tag(x_115, 3); -lean_ctor_set(x_115, 1, x_116); -lean_ctor_set(x_115, 0, x_113); -x_122 = lean_box(0); -lean_ctor_set(x_111, 1, x_122); -lean_ctor_set(x_111, 0, x_115); -x_11 = x_111; -x_12 = x_120; +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_117, 1); +x_123 = lean_ctor_get(x_117, 0); +lean_dec(x_123); +lean_ctor_set_tag(x_117, 3); +lean_ctor_set(x_117, 1, x_118); +lean_ctor_set(x_117, 0, x_115); +x_124 = lean_box(0); +lean_ctor_set(x_113, 1, x_124); +lean_ctor_set(x_113, 0, x_117); +x_11 = x_113; +x_12 = x_122; goto block_21; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_115, 1); -lean_inc(x_123); -lean_dec(x_115); -x_124 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_124, 0, x_113); -lean_ctor_set(x_124, 1, x_116); -x_125 = lean_box(0); -lean_ctor_set(x_111, 1, x_125); -lean_ctor_set(x_111, 0, x_124); -x_11 = x_111; -x_12 = x_123; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_117, 1); +lean_inc(x_125); +lean_dec(x_117); +x_126 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_126, 0, x_115); +lean_ctor_set(x_126, 1, x_118); +x_127 = lean_box(0); +lean_ctor_set(x_113, 1, x_127); +lean_ctor_set(x_113, 0, x_126); +x_11 = x_113; +x_12 = x_125; goto block_21; } } } else { -uint8_t x_126; -x_126 = !lean_is_exclusive(x_115); -if (x_126 == 0) +uint8_t x_128; +x_128 = !lean_is_exclusive(x_117); +if (x_128 == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_115, 0); -x_128 = lean_ctor_get(x_115, 1); -lean_ctor_set_tag(x_115, 3); -lean_ctor_set(x_115, 1, x_127); -lean_ctor_set(x_115, 0, x_113); -x_129 = lean_box(0); -lean_ctor_set(x_111, 1, x_129); -lean_ctor_set(x_111, 0, x_115); -x_11 = x_111; -x_12 = x_128; +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_117, 0); +x_130 = lean_ctor_get(x_117, 1); +lean_ctor_set_tag(x_117, 3); +lean_ctor_set(x_117, 1, x_129); +lean_ctor_set(x_117, 0, x_115); +x_131 = lean_box(0); +lean_ctor_set(x_113, 1, x_131); +lean_ctor_set(x_113, 0, x_117); +x_11 = x_113; +x_12 = x_130; goto block_21; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_130 = lean_ctor_get(x_115, 0); -x_131 = lean_ctor_get(x_115, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_115); -x_132 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_132, 0, x_113); -lean_ctor_set(x_132, 1, x_130); -x_133 = lean_box(0); -lean_ctor_set(x_111, 1, x_133); -lean_ctor_set(x_111, 0, x_132); -x_11 = x_111; -x_12 = x_131; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_117, 0); +x_133 = lean_ctor_get(x_117, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_117); +x_134 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_134, 0, x_115); +lean_ctor_set(x_134, 1, x_132); +x_135 = lean_box(0); +lean_ctor_set(x_113, 1, x_135); +lean_ctor_set(x_113, 0, x_134); +x_11 = x_113; +x_12 = x_133; goto block_21; } } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_111, 0); -x_135 = lean_ctor_get(x_111, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_111); -x_136 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_106, x_135); -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_137; -x_137 = lean_ctor_get(x_136, 0); +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_113, 0); +x_137 = lean_ctor_get(x_113, 1); lean_inc(x_137); -if (lean_obj_tag(x_137) == 0) +lean_inc(x_136); +lean_dec(x_113); +x_138 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_108, x_137); +if (lean_obj_tag(x_136) == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; -x_11 = x_139; -x_12 = x_138; -goto block_21; -} -else +lean_object* x_139; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +if (lean_obj_tag(x_139) == 0) { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_140 = lean_ctor_get(x_136, 1); +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_138, 1); lean_inc(x_140); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_141 = x_136; -} else { - lean_dec_ref(x_136); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(3, 2, 0); -} else { - x_142 = x_141; - lean_ctor_set_tag(x_142, 3); -} -lean_ctor_set(x_142, 0, x_134); -lean_ctor_set(x_142, 1, x_137); -x_143 = lean_box(0); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -x_11 = x_144; +lean_dec(x_138); +x_141 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; +x_11 = x_141; x_12 = x_140; goto block_21; } -} else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_145 = lean_ctor_get(x_136, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_136, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_147 = x_136; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_142 = lean_ctor_get(x_138, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_143 = x_138; } else { - lean_dec_ref(x_136); - x_147 = lean_box(0); + lean_dec_ref(x_138); + x_143 = lean_box(0); } -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(3, 2, 0); +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(3, 2, 0); } else { - x_148 = x_147; - lean_ctor_set_tag(x_148, 3); + x_144 = x_143; + lean_ctor_set_tag(x_144, 3); } -lean_ctor_set(x_148, 0, x_134); -lean_ctor_set(x_148, 1, x_145); -x_149 = lean_box(0); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -x_11 = x_150; -x_12 = x_146; +lean_ctor_set(x_144, 0, x_136); +lean_ctor_set(x_144, 1, x_139); +x_145 = lean_box(0); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_11 = x_146; +x_12 = x_142; +goto block_21; +} +} +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_138, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_138, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_149 = x_138; +} else { + lean_dec_ref(x_138); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(3, 2, 0); +} else { + x_150 = x_149; + lean_ctor_set_tag(x_150, 3); +} +lean_ctor_set(x_150, 0, x_136); +lean_ctor_set(x_150, 1, x_147); +x_151 = lean_box(0); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_11 = x_152; +x_12 = x_148; goto block_21; } } } else { -uint8_t x_151; -x_151 = !lean_is_exclusive(x_107); -if (x_151 == 0) +uint8_t x_153; +x_153 = !lean_is_exclusive(x_109); +if (x_153 == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_152 = lean_ctor_get(x_107, 1); -x_153 = lean_ctor_get(x_107, 0); -lean_dec(x_153); -x_154 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_154, 0, x_106); -x_155 = lean_box(0); -lean_ctor_set_tag(x_107, 1); -lean_ctor_set(x_107, 1, x_155); -lean_ctor_set(x_107, 0, x_154); -x_11 = x_107; -x_12 = x_152; +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_154 = lean_ctor_get(x_109, 1); +x_155 = lean_ctor_get(x_109, 0); +lean_dec(x_155); +x_156 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_156, 0, x_108); +x_157 = lean_box(0); +lean_ctor_set_tag(x_109, 1); +lean_ctor_set(x_109, 1, x_157); +lean_ctor_set(x_109, 0, x_156); +x_11 = x_109; +x_12 = x_154; goto block_21; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_156 = lean_ctor_get(x_107, 1); -lean_inc(x_156); -lean_dec(x_107); -x_157 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_157, 0, x_106); -x_158 = lean_box(0); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -x_11 = x_159; -x_12 = x_156; +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_158 = lean_ctor_get(x_109, 1); +lean_inc(x_158); +lean_dec(x_109); +x_159 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_159, 0, x_108); +x_160 = lean_box(0); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +x_11 = x_161; +x_12 = x_158; goto block_21; } } } else { -lean_object* x_160; uint8_t x_161; +lean_object* x_162; uint8_t x_163; lean_dec(x_1); -x_160 = lean_ctor_get(x_102, 1); -lean_inc(x_160); -lean_dec(x_102); -x_161 = !lean_is_exclusive(x_103); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_103, 0); +x_162 = lean_ctor_get(x_104, 1); lean_inc(x_162); -x_163 = l_Lean_Elab_Tactic_elabSimpArgs_isSimproc_x3f(x_162, x_6, x_7, x_8, x_9, x_160); -x_164 = lean_ctor_get(x_163, 0); +lean_dec(x_104); +x_163 = !lean_is_exclusive(x_105); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_105, 0); lean_inc(x_164); -if (lean_obj_tag(x_164) == 0) +x_165 = l_Lean_Elab_Tactic_elabSimpArgs_isSimproc_x3f(x_164, x_6, x_7, x_8, x_9, x_162); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +if (lean_obj_tag(x_166) == 0) { -uint8_t x_165; -x_165 = !lean_is_exclusive(x_163); -if (x_165 == 0) +uint8_t x_167; +x_167 = !lean_is_exclusive(x_165); +if (x_167 == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_163, 1); -x_167 = lean_ctor_get(x_163, 0); -lean_dec(x_167); -x_168 = lean_box(0); -lean_ctor_set_tag(x_163, 1); -lean_ctor_set(x_163, 1, x_168); -lean_ctor_set(x_163, 0, x_103); -x_11 = x_163; -x_12 = x_166; -goto block_21; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_163, 1); -lean_inc(x_169); -lean_dec(x_163); +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_165, 1); +x_169 = lean_ctor_get(x_165, 0); +lean_dec(x_169); x_170 = lean_box(0); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_103); -lean_ctor_set(x_171, 1, x_170); -x_11 = x_171; -x_12 = x_169; +lean_ctor_set_tag(x_165, 1); +lean_ctor_set(x_165, 1, x_170); +lean_ctor_set(x_165, 0, x_105); +x_11 = x_165; +x_12 = x_168; +goto block_21; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_165, 1); +lean_inc(x_171); +lean_dec(x_165); +x_172 = lean_box(0); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_105); +lean_ctor_set(x_173, 1, x_172); +x_11 = x_173; +x_12 = x_171; goto block_21; } } else { -uint8_t x_172; -lean_free_object(x_103); -lean_dec(x_162); -x_172 = !lean_is_exclusive(x_163); -if (x_172 == 0) -{ -lean_object* x_173; lean_object* x_174; uint8_t x_175; -x_173 = lean_ctor_get(x_163, 1); -x_174 = lean_ctor_get(x_163, 0); -lean_dec(x_174); -x_175 = !lean_is_exclusive(x_164); -if (x_175 == 0) -{ -lean_object* x_176; -lean_ctor_set_tag(x_164, 2); -x_176 = lean_box(0); -lean_ctor_set_tag(x_163, 1); -lean_ctor_set(x_163, 1, x_176); -x_11 = x_163; -x_12 = x_173; -goto block_21; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_164, 0); -lean_inc(x_177); +uint8_t x_174; +lean_free_object(x_105); lean_dec(x_164); -x_178 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_178, 0, x_177); -x_179 = lean_box(0); -lean_ctor_set_tag(x_163, 1); -lean_ctor_set(x_163, 1, x_179); -lean_ctor_set(x_163, 0, x_178); -x_11 = x_163; -x_12 = x_173; +x_174 = !lean_is_exclusive(x_165); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; uint8_t x_177; +x_175 = lean_ctor_get(x_165, 1); +x_176 = lean_ctor_get(x_165, 0); +lean_dec(x_176); +x_177 = !lean_is_exclusive(x_166); +if (x_177 == 0) +{ +lean_object* x_178; +lean_ctor_set_tag(x_166, 2); +x_178 = lean_box(0); +lean_ctor_set_tag(x_165, 1); +lean_ctor_set(x_165, 1, x_178); +x_11 = x_165; +x_12 = x_175; +goto block_21; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_166, 0); +lean_inc(x_179); +lean_dec(x_166); +x_180 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_180, 0, x_179); +x_181 = lean_box(0); +lean_ctor_set_tag(x_165, 1); +lean_ctor_set(x_165, 1, x_181); +lean_ctor_set(x_165, 0, x_180); +x_11 = x_165; +x_12 = x_175; goto block_21; } } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_180 = lean_ctor_get(x_163, 1); -lean_inc(x_180); -lean_dec(x_163); -x_181 = lean_ctor_get(x_164, 0); -lean_inc(x_181); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - x_182 = x_164; +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_182 = lean_ctor_get(x_165, 1); +lean_inc(x_182); +lean_dec(x_165); +x_183 = lean_ctor_get(x_166, 0); +lean_inc(x_183); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + x_184 = x_166; } else { - lean_dec_ref(x_164); - x_182 = lean_box(0); + lean_dec_ref(x_166); + x_184 = lean_box(0); } -if (lean_is_scalar(x_182)) { - x_183 = lean_alloc_ctor(2, 1, 0); +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(2, 1, 0); } else { - x_183 = x_182; - lean_ctor_set_tag(x_183, 2); + x_185 = x_184; + lean_ctor_set_tag(x_185, 2); } -lean_ctor_set(x_183, 0, x_181); -x_184 = lean_box(0); -x_185 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -x_11 = x_185; -x_12 = x_180; +x_186 = lean_box(0); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +x_11 = x_187; +x_12 = x_182; goto block_21; } } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_103, 0); -lean_inc(x_186); -lean_dec(x_103); -lean_inc(x_186); -x_187 = l_Lean_Elab_Tactic_elabSimpArgs_isSimproc_x3f(x_186, x_6, x_7, x_8, x_9, x_160); -x_188 = lean_ctor_get(x_187, 0); +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_ctor_get(x_105, 0); lean_inc(x_188); -if (lean_obj_tag(x_188) == 0) +lean_dec(x_105); +lean_inc(x_188); +x_189 = l_Lean_Elab_Tactic_elabSimpArgs_isSimproc_x3f(x_188, x_6, x_7, x_8, x_9, x_162); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +if (lean_obj_tag(x_190) == 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_187, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_190 = x_187; +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; } else { - lean_dec_ref(x_187); - x_190 = lean_box(0); + lean_dec_ref(x_189); + x_192 = lean_box(0); } -x_191 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_191, 0, x_186); -x_192 = lean_box(0); -if (lean_is_scalar(x_190)) { - x_193 = lean_alloc_ctor(1, 2, 0); +x_193 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_193, 0, x_188); +x_194 = lean_box(0); +if (lean_is_scalar(x_192)) { + x_195 = lean_alloc_ctor(1, 2, 0); } else { - x_193 = x_190; - lean_ctor_set_tag(x_193, 1); + x_195 = x_192; + lean_ctor_set_tag(x_195, 1); } -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -x_11 = x_193; -x_12 = x_189; +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +x_11 = x_195; +x_12 = x_191; goto block_21; } else { -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_dec(x_186); -x_194 = lean_ctor_get(x_187, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_195 = x_187; -} else { - lean_dec_ref(x_187); - x_195 = lean_box(0); -} -x_196 = lean_ctor_get(x_188, 0); +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_188); +x_196 = lean_ctor_get(x_189, 1); lean_inc(x_196); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - x_197 = x_188; +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_197 = x_189; } else { - lean_dec_ref(x_188); + lean_dec_ref(x_189); x_197 = lean_box(0); } -if (lean_is_scalar(x_197)) { - x_198 = lean_alloc_ctor(2, 1, 0); +x_198 = lean_ctor_get(x_190, 0); +lean_inc(x_198); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + x_199 = x_190; } else { - x_198 = x_197; - lean_ctor_set_tag(x_198, 2); + lean_dec_ref(x_190); + x_199 = lean_box(0); } -lean_ctor_set(x_198, 0, x_196); -x_199 = lean_box(0); -if (lean_is_scalar(x_195)) { - x_200 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(2, 1, 0); } else { - x_200 = x_195; - lean_ctor_set_tag(x_200, 1); + x_200 = x_199; + lean_ctor_set_tag(x_200, 2); } lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -x_11 = x_200; -x_12 = x_194; +x_201 = lean_box(0); +if (lean_is_scalar(x_197)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_197; + lean_ctor_set_tag(x_202, 1); +} +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_201); +x_11 = x_202; +x_12 = x_196; goto block_21; } } @@ -6745,227 +6773,231 @@ goto block_21; } else { -lean_object* x_201; lean_object* x_202; -x_201 = lean_ctor_get(x_102, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_102, 1); -lean_inc(x_202); -lean_dec(x_102); -x_50 = x_201; -x_51 = x_202; -goto block_99; +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_104, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_104, 1); +lean_inc(x_204); +lean_dec(x_104); +x_50 = x_203; +x_51 = x_204; +goto block_101; } -block_99: +block_101: { uint8_t x_52; -x_52 = l_Lean_Exception_isRuntime(x_50); +x_52 = l_Lean_Exception_isInterrupt(x_50); if (x_52 == 0) { -uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +uint8_t x_53; +x_53 = l_Lean_Exception_isRuntime(x_50); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_dec(x_50); lean_dec(x_49); -x_53 = 0; -x_54 = l_Lean_Elab_Tactic_SavedState_restore(x_47, x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = l_Lean_Syntax_getId(x_1); +x_54 = 0; +x_55 = l_Lean_Elab_Tactic_SavedState_restore(x_47, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); -x_57 = lean_erase_macro_scopes(x_56); -lean_inc(x_57); -x_58 = l_Lean_Meta_getSimpExtension_x3f(x_57, x_55); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_58 = lean_erase_macro_scopes(x_57); +lean_inc(x_58); +x_59 = l_Lean_Meta_getSimpExtension_x3f(x_58, x_56); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -x_62 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_57, x_61); -if (lean_obj_tag(x_60) == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +x_63 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_58, x_62); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_63; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_free_object(x_58); -x_64 = lean_ctor_get(x_62, 1); +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -lean_dec(x_62); -x_65 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; -x_11 = x_65; -x_12 = x_64; +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_free_object(x_59); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; +x_11 = x_66; +x_12 = x_65; goto block_21; } else { -uint8_t x_66; -x_66 = !lean_is_exclusive(x_62); -if (x_66 == 0) +uint8_t x_67; +x_67 = !lean_is_exclusive(x_63); +if (x_67 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_62, 1); -x_68 = lean_ctor_get(x_62, 0); -lean_dec(x_68); -lean_ctor_set_tag(x_62, 3); -lean_ctor_set(x_62, 1, x_63); -lean_ctor_set(x_62, 0, x_60); -x_69 = lean_box(0); -lean_ctor_set(x_58, 1, x_69); -lean_ctor_set(x_58, 0, x_62); -x_11 = x_58; -x_12 = x_67; +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_63, 1); +x_69 = lean_ctor_get(x_63, 0); +lean_dec(x_69); +lean_ctor_set_tag(x_63, 3); +lean_ctor_set(x_63, 1, x_64); +lean_ctor_set(x_63, 0, x_61); +x_70 = lean_box(0); +lean_ctor_set(x_59, 1, x_70); +lean_ctor_set(x_59, 0, x_63); +x_11 = x_59; +x_12 = x_68; goto block_21; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_62, 1); -lean_inc(x_70); -lean_dec(x_62); -x_71 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_71, 0, x_60); -lean_ctor_set(x_71, 1, x_63); -x_72 = lean_box(0); -lean_ctor_set(x_58, 1, x_72); -lean_ctor_set(x_58, 0, x_71); -x_11 = x_58; -x_12 = x_70; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_63, 1); +lean_inc(x_71); +lean_dec(x_63); +x_72 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_72, 0, x_61); +lean_ctor_set(x_72, 1, x_64); +x_73 = lean_box(0); +lean_ctor_set(x_59, 1, x_73); +lean_ctor_set(x_59, 0, x_72); +x_11 = x_59; +x_12 = x_71; goto block_21; } } } else { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_62); -if (x_73 == 0) +uint8_t x_74; +x_74 = !lean_is_exclusive(x_63); +if (x_74 == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_62, 0); -x_75 = lean_ctor_get(x_62, 1); -lean_ctor_set_tag(x_62, 3); -lean_ctor_set(x_62, 1, x_74); -lean_ctor_set(x_62, 0, x_60); -x_76 = lean_box(0); -lean_ctor_set(x_58, 1, x_76); -lean_ctor_set(x_58, 0, x_62); -x_11 = x_58; -x_12 = x_75; +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_63, 0); +x_76 = lean_ctor_get(x_63, 1); +lean_ctor_set_tag(x_63, 3); +lean_ctor_set(x_63, 1, x_75); +lean_ctor_set(x_63, 0, x_61); +x_77 = lean_box(0); +lean_ctor_set(x_59, 1, x_77); +lean_ctor_set(x_59, 0, x_63); +x_11 = x_59; +x_12 = x_76; goto block_21; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_62, 0); -x_78 = lean_ctor_get(x_62, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_63, 0); +x_79 = lean_ctor_get(x_63, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_62); -x_79 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_79, 0, x_60); -lean_ctor_set(x_79, 1, x_77); -x_80 = lean_box(0); -lean_ctor_set(x_58, 1, x_80); -lean_ctor_set(x_58, 0, x_79); -x_11 = x_58; -x_12 = x_78; +lean_dec(x_63); +x_80 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_box(0); +lean_ctor_set(x_59, 1, x_81); +lean_ctor_set(x_59, 0, x_80); +x_11 = x_59; +x_12 = x_79; goto block_21; } } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_58, 0); -x_82 = lean_ctor_get(x_58, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_59, 0); +x_83 = lean_ctor_get(x_59, 1); +lean_inc(x_83); lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_58); -x_83 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_57, x_82); -if (lean_obj_tag(x_81) == 0) +lean_dec(x_59); +x_84 = l_Lean_Meta_Simp_getSimprocExtension_x3f(x_58, x_83); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_83, 1); +lean_object* x_85; +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_86 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; -x_11 = x_86; -x_12 = x_85; +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___closed__3; +x_11 = x_87; +x_12 = x_86; goto block_21; } else { -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_83, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_88 = x_83; +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_84, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_89 = x_84; } else { - lean_dec_ref(x_83); - x_88 = lean_box(0); + lean_dec_ref(x_84); + x_89 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(3, 2, 0); +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(3, 2, 0); } else { - x_89 = x_88; - lean_ctor_set_tag(x_89, 3); + x_90 = x_89; + lean_ctor_set_tag(x_90, 3); } -lean_ctor_set(x_89, 0, x_81); -lean_ctor_set(x_89, 1, x_84); -x_90 = lean_box(0); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -x_11 = x_91; -x_12 = x_87; +lean_ctor_set(x_90, 0, x_82); +lean_ctor_set(x_90, 1, x_85); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +x_11 = x_92; +x_12 = x_88; goto block_21; } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_92 = lean_ctor_get(x_83, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_83, 1); +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_93 = lean_ctor_get(x_84, 0); lean_inc(x_93); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_94 = x_83; +x_94 = lean_ctor_get(x_84, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_95 = x_84; } else { - lean_dec_ref(x_83); - x_94 = lean_box(0); + lean_dec_ref(x_84); + x_95 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(3, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(3, 2, 0); } else { - x_95 = x_94; - lean_ctor_set_tag(x_95, 3); + x_96 = x_95; + lean_ctor_set_tag(x_96, 3); } -lean_ctor_set(x_95, 0, x_81); -lean_ctor_set(x_95, 1, x_92); -x_96 = lean_box(0); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -x_11 = x_97; -x_12 = x_93; +lean_ctor_set(x_96, 0, x_82); +lean_ctor_set(x_96, 1, x_93); +x_97 = lean_box(0); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_11 = x_98; +x_12 = x_94; goto block_21; } } } else { -lean_object* x_98; +lean_object* x_99; lean_dec(x_47); lean_dec(x_9); lean_dec(x_8); @@ -6975,14 +7007,36 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); if (lean_is_scalar(x_49)) { - x_98 = lean_alloc_ctor(1, 2, 0); + x_99 = lean_alloc_ctor(1, 2, 0); } else { - x_98 = x_49; - lean_ctor_set_tag(x_98, 1); + x_99 = x_49; + lean_ctor_set_tag(x_99, 1); } -lean_ctor_set(x_98, 0, x_50); -lean_ctor_set(x_98, 1, x_51); -return x_98; +lean_ctor_set(x_99, 0, x_50); +lean_ctor_set(x_99, 1, x_51); +return x_99; +} +} +else +{ +lean_object* x_100; +lean_dec(x_47); +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_1); +if (lean_is_scalar(x_49)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_49; + lean_ctor_set_tag(x_100, 1); +} +lean_ctor_set(x_100, 0, x_50); +lean_ctor_set(x_100, 1, x_51); +return x_100; } } } @@ -7568,26 +7622,30 @@ if (x_173 == 0) lean_object* x_174; lean_object* x_175; uint8_t x_176; x_174 = lean_ctor_get(x_169, 0); x_175 = lean_ctor_get(x_169, 1); -x_176 = l_Lean_Exception_isRuntime(x_174); +x_176 = l_Lean_Exception_isInterrupt(x_174); if (x_176 == 0) { -uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +uint8_t x_177; +x_177 = l_Lean_Exception_isRuntime(x_174); +if (x_177 == 0) +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_free_object(x_169); -x_177 = 0; +x_178 = 0; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_178 = l_Lean_Elab_Tactic_SavedState_restore(x_167, x_177, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_175); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -lean_dec(x_178); -x_180 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_180, 0, x_174); -x_20 = x_180; -x_21 = x_179; +x_179 = l_Lean_Elab_Tactic_SavedState_restore(x_167, x_178, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_175); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +lean_dec(x_179); +x_181 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_181, 0, x_174); +x_20 = x_181; +x_21 = x_180; goto block_165; } else @@ -7611,36 +7669,6 @@ return x_169; } else { -lean_object* x_181; lean_object* x_182; uint8_t x_183; -x_181 = lean_ctor_get(x_169, 0); -x_182 = lean_ctor_get(x_169, 1); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_169); -x_183 = l_Lean_Exception_isRuntime(x_181); -if (x_183 == 0) -{ -uint8_t x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_184 = 0; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_185 = l_Lean_Elab_Tactic_SavedState_restore(x_167, x_184, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_182); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -lean_dec(x_185); -x_187 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_187, 0, x_181); -x_20 = x_187; -x_21 = x_186; -goto block_165; -} -else -{ -lean_object* x_188; lean_dec(x_167); lean_dec(x_18); lean_dec(x_15); @@ -7655,10 +7683,86 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_181); -lean_ctor_set(x_188, 1, x_182); -return x_188; +return x_169; +} +} +else +{ +lean_object* x_182; lean_object* x_183; uint8_t x_184; +x_182 = lean_ctor_get(x_169, 0); +x_183 = lean_ctor_get(x_169, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_169); +x_184 = l_Lean_Exception_isInterrupt(x_182); +if (x_184 == 0) +{ +uint8_t x_185; +x_185 = l_Lean_Exception_isRuntime(x_182); +if (x_185 == 0) +{ +uint8_t x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_186 = 0; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_187 = l_Lean_Elab_Tactic_SavedState_restore(x_167, x_186, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_183); +x_188 = lean_ctor_get(x_187, 1); +lean_inc(x_188); +lean_dec(x_187); +x_189 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_189, 0, x_182); +x_20 = x_189; +x_21 = x_188; +goto block_165; +} +else +{ +lean_object* x_190; +lean_dec(x_167); +lean_dec(x_18); +lean_dec(x_15); +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_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_182); +lean_ctor_set(x_190, 1, x_183); +return x_190; +} +} +else +{ +lean_object* x_191; +lean_dec(x_167); +lean_dec(x_18); +lean_dec(x_15); +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_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_182); +lean_ctor_set(x_191, 1, x_183); +return x_191; } } } @@ -8296,7 +8400,7 @@ return x_164; } else { -uint8_t x_189; +uint8_t x_192; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8305,55 +8409,55 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_189 = !lean_is_exclusive(x_7); -if (x_189 == 0) +x_192 = !lean_is_exclusive(x_7); +if (x_192 == 0) { -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; -x_190 = lean_ctor_get(x_7, 0); -x_191 = l_Lean_Expr_fvarId_x21(x_190); -lean_ctor_set(x_7, 0, x_191); -x_192 = l_Lean_Meta_SimpTheorems_eraseCore(x_6, x_7); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_2); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_3); -lean_ctor_set(x_194, 1, x_193); -x_195 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_195, 0, x_5); -lean_ctor_set(x_195, 1, x_194); -x_196 = lean_alloc_ctor(1, 1, 0); +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; +x_193 = lean_ctor_get(x_7, 0); +x_194 = l_Lean_Expr_fvarId_x21(x_193); +lean_ctor_set(x_7, 0, x_194); +x_195 = l_Lean_Meta_SimpTheorems_eraseCore(x_6, x_7); +x_196 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_2); x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_16); -return x_197; +lean_ctor_set(x_197, 0, x_3); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_5); +lean_ctor_set(x_198, 1, x_197); +x_199 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_199, 0, x_198); +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_16); +return x_200; } else { -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; -x_198 = lean_ctor_get(x_7, 0); -lean_inc(x_198); +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_7, 0); +lean_inc(x_201); lean_dec(x_7); -x_199 = l_Lean_Expr_fvarId_x21(x_198); -x_200 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_200, 0, x_199); -x_201 = l_Lean_Meta_SimpTheorems_eraseCore(x_6, x_200); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_2); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_3); -lean_ctor_set(x_203, 1, x_202); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_5); -lean_ctor_set(x_204, 1, x_203); -x_205 = lean_alloc_ctor(1, 1, 0); +x_202 = l_Lean_Expr_fvarId_x21(x_201); +x_203 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_203, 0, x_202); +x_204 = l_Lean_Meta_SimpTheorems_eraseCore(x_6, x_203); +x_205 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_2); x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_16); -return x_206; +lean_ctor_set(x_206, 0, x_3); +lean_ctor_set(x_206, 1, x_205); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_5); +lean_ctor_set(x_207, 1, x_206); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_16); +return x_209; } } } @@ -16809,10 +16913,6 @@ lean_ctor_set(x_17, 0, x_8); lean_ctor_set(x_17, 1, x_16); x_18 = 0; x_19 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_13, x_17, x_18, x_3, x_4, x_5, x_6, x_11); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_13); return x_19; } else @@ -16837,10 +16937,6 @@ lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); x_29 = 0; x_30 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_23, x_28, x_29, x_3, x_4, x_5, x_6, x_21); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_23); return x_30; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c index 0e7f0b6a71..790f7f1629 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c +++ b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c @@ -372,8 +372,6 @@ x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_31); x_36 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_37 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_34, x_35, x_36, x_33, x_8, x_9, x_10, x_11, x_30); -lean_dec(x_9); -lean_dec(x_8); if (lean_obj_tag(x_37) == 0) { uint8_t x_38; @@ -454,8 +452,6 @@ x_55 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_55, 0, x_50); x_56 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_57 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_54, x_55, x_56, x_53, x_8, x_9, x_10, x_11, x_49); -lean_dec(x_9); -lean_dec(x_8); if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; @@ -2207,8 +2203,6 @@ x_23 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_23, 0, x_19); x_24 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_25 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_3, x_22, x_23, x_24, x_21, x_9, x_10, x_11, x_12, x_18); -lean_dec(x_10); -lean_dec(x_9); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -2289,8 +2283,6 @@ x_43 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_43, 0, x_38); x_44 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_45 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_3, x_42, x_43, x_44, x_41, x_9, x_10, x_11, x_12, x_37); -lean_dec(x_10); -lean_dec(x_9); if (lean_obj_tag(x_45) == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; @@ -4897,8 +4889,6 @@ x_38 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_38, 0, x_34); x_39 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_40 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_37, x_38, x_39, x_36, x_8, x_9, x_10, x_11, x_33); -lean_dec(x_9); -lean_dec(x_8); if (lean_obj_tag(x_40) == 0) { uint8_t x_41; @@ -4979,8 +4969,6 @@ x_58 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_58, 0, x_53); x_59 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; x_60 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_57, x_58, x_59, x_56, x_8, x_9, x_10, x_11, x_52); -lean_dec(x_9); -lean_dec(x_8); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simpa.c b/stage0/stdlib/Lean/Elab/Tactic/Simpa.c index 175e942ed5..2d02a26d19 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simpa.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simpa.c @@ -879,6 +879,8 @@ lean_ctor_set(x_18, 0, x_13); x_19 = l_Lean_Elab_Tactic_Simpa_evalSimpa___lambda__3___closed__3; lean_inc(x_11); lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); x_20 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_17, x_18, x_19, x_16, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_20) == 0) { @@ -2843,13 +2845,7 @@ lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); x_43 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_31, x_35, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); lean_dec(x_13); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_35); x_44 = !lean_is_exclusive(x_43); if (x_44 == 0) { @@ -2948,13 +2944,7 @@ lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); x_63 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_50, x_54, x_62, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); lean_dec(x_13); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_54); x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); if (lean_is_exclusive(x_63)) { @@ -3074,13 +3064,7 @@ lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); x_86 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_71, x_77, x_85, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_67); lean_dec(x_13); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_77); x_87 = lean_ctor_get(x_86, 1); lean_inc(x_87); if (lean_is_exclusive(x_86)) { @@ -3470,13 +3454,7 @@ lean_ctor_set(x_162, 0, x_160); lean_ctor_set(x_162, 1, x_161); x_163 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_147, x_153, x_162, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_142); lean_dec(x_13); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_153); x_164 = lean_ctor_get(x_163, 1); lean_inc(x_164); if (lean_is_exclusive(x_163)) { @@ -4549,13 +4527,7 @@ lean_inc(x_36); x_37 = l_Lean_Elab_Tactic_Simpa_evalSimpa___lambda__11___closed__15; x_38 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_33, x_36, x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_30); lean_dec(x_18); -lean_dec(x_16); lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_36); x_39 = !lean_is_exclusive(x_38); if (x_39 == 0) { @@ -4616,13 +4588,7 @@ lean_inc(x_51); x_52 = l_Lean_Elab_Tactic_Simpa_evalSimpa___lambda__11___closed__15; x_53 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___spec__1(x_47, x_51, x_52, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_45); lean_dec(x_18); -lean_dec(x_16); lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_51); x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); if (lean_is_exclusive(x_53)) { @@ -6143,13 +6109,7 @@ _start: lean_object* x_13; x_13 = l_Lean_Linter_logLint___at_Lean_Elab_Tactic_Simpa_evalSimpa___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); lean_dec(x_11); -lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); return x_13; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simproc.c b/stage0/stdlib/Lean/Elab/Tactic/Simproc.c index 1fa1938a7c..31d911c6a8 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simproc.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simproc.c @@ -346,7 +346,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Lean_Elab_elabSimprocPattern___closed__3; x_7 = l_Lean_Elab_elabSimprocPattern___closed__4; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -355,16 +355,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index bc1b8c8c0a..038ce22814 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Term -// Imports: Lean.ReservedNameAction Lean.Meta.AppBuilder Lean.Meta.CollectMVars Lean.Meta.Coe Lean.Linter.Deprecated Lean.Elab.Config Lean.Elab.Level Lean.Elab.DeclModifiers Lean.Elab.PreDefinition.WF.TerminationHint +// Imports: Lean.ReservedNameAction Lean.Meta.AppBuilder Lean.Meta.CollectMVars Lean.Meta.Coe Lean.Linter.Deprecated Lean.Elab.Config Lean.Elab.Level Lean.Elab.DeclModifiers Lean.Elab.PreDefinition.WF.TerminationHint Lean.Language.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,7 +16,6 @@ extern "C" { LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___rarg(lean_object*); static lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___rarg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg___lambda__1(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_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15; static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); @@ -31,19 +30,21 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutSavingRecAppSyntax___rarg(lean_ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___boxed(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1___closed__4; +lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(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_Term_withoutHeedElabAsElimImp(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars_go___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_Term_Context_autoBoundImplicitForbidden___default___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___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_Lean_Elab_Term_tryPostponeIfNoneOrMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_setLevelNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorryImp(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__11; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3(lean_object*, lean_object*, size_t, size_t); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,9 +61,11 @@ extern lean_object* l_Lean_profiler; lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler_useHearbeats; uint8_t l_Lean_MacroScopesView_isSuffixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__44(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1___rarg___closed__1; @@ -79,12 +82,15 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDeclName___spec__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_Lean_Elab_Tactic_TacticParsedSnapshot_data(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorCustomInfo(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_assign___at_Lean_Elab_Term_exprToSyntax___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_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDeclName___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_withExpectedType___closed__2; static lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__11___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_Term_ensureType___lambda__1___closed__3; @@ -101,13 +107,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instAddErrorMessageContextTermElabM(le LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__10(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfNoErrors_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__8(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_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSavedContext(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkIfShadowingStructureField___at_Lean_Elab_Term_expandDeclId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instAddErrorMessageContextTermElabM___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_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__12; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11; lean_object* lean_private_to_user_name(lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__5; @@ -129,10 +136,12 @@ static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__4; lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedSyntheticMVarDecl; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__24; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVar___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_Elab_Term_registerSyntheticMVarWithCurrRef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -159,26 +168,30 @@ static lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__2; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(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_instInhabitedCache___closed__1; static lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1; uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__10; -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216_(lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__41(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process___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_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_isIncrementalElab___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__7(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, 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*); static size_t l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f___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_FileMap_toPosition(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2; LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTypeMismatchError___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_Lean_Elab_Term_mkCoe___lambda__1___closed__3; @@ -188,14 +201,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplic LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___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_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Elab_Term_resolveId_x3f___spec__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__7; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__6; static lean_object* l_Lean_Elab_Term_mkCoe___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__3; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__3___boxed(lean_object**); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName(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_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__8; @@ -205,6 +217,7 @@ lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCoe___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4(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_object*); lean_object* l_Lean_MetavarContext_getDelayedMVarAssignmentCore_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -215,7 +228,6 @@ static lean_object* l_Lean_localDeclDependsOn___at_Lean_Elab_Term_addAutoBoundIm LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__12___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_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8; lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +237,7 @@ lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__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*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__2___rarg(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_Lean_Elab_Term_withDeclName___spec__11___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*); @@ -244,6 +257,7 @@ static double l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda_ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__36___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f___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_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_data___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_ensureType___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Term_mkCoe___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* lean_mk_array(lean_object*, lean_object*); @@ -255,11 +269,13 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean LEAN_EXPORT lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___boxed(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_next___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__4; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadTermElabM; @@ -270,6 +286,7 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFn LEAN_EXPORT lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages___rarg___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_Lean_Elab_Term_hasNoImplicitLambdaAnnotation___boxed(lean_object*); static lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevMAux___at_Lean_Elab_Term_resolveLocalName___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkAuxName___closed__2; lean_object* l_Lean_Meta_getMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -293,6 +310,7 @@ lean_object* l_Lean_Expr_bvar___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___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_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__51___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_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3(uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEq; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__42___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -309,6 +327,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_sectionVars___default; lean_object* l_Lean_RBNode_insert___at_Lean_MVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__46(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull(lean_object*); +static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27; static lean_object* l_Lean_Elab_Term_mkCoe___lambda__2___closed__1; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___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*); @@ -321,6 +341,7 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Elab_Term_logUnassi static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__3; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__38___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda___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_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyResult(lean_object*); @@ -328,11 +349,12 @@ lean_object* lean_environment_find(lean_object*, lean_object*); uint8_t lean_float_decLt(double, double); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__22___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkConst___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_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10(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_Term_LVal_getRef___boxed(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10; +lean_object* l_Lean_Attribute_Builtin_ensureNoArgs(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1; +lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__9; static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -348,6 +370,7 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutHeedElabAsElim___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__3; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__21; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Linter_getLinterValue(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -360,17 +383,19 @@ static lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutM LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__43___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___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_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__3; -static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__16; lean_object* lean_io_get_num_heartbeats(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Syntax_identComponents(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__2; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__12(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -381,12 +406,13 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBound LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10; lean_object* l_Lean_Expr_mvar___override(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_syntheticMVars___default; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__9; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___boxed(lean_object*, lean_object*); uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Cache_post___default; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__10; @@ -396,10 +422,10 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_getFVarLocalDecl_x21___spec static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveName_x27___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_any___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__3___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_Lean_maxRecDepth; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); @@ -418,19 +444,16 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImpli LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_loop___lambda__1(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_object*, lean_object*); static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar(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_Term_mkExplicitBinder___closed__15; LEAN_EXPORT uint8_t l_Lean_Elab_Term_levelMVarToParam___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__6(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_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__18___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__3(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_Term_SavedState_restoreFull(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__51___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__10___lambda__3(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_Name_isPrefixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__30___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___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_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12; static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_letRecsToLift___default; static lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__1; @@ -447,7 +470,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_ static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__19___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__28(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo(lean_object*); @@ -455,9 +477,11 @@ LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___closed__2; static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__3; static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__3; +static lean_object* l_Lean_Elab_addBuiltinIncrementalElab___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_Term_resolveLocalName___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasSyntheticSorry(lean_object*); +static lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1; lean_object* l_Lean_Kernel_enableDiag(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg(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_Term_instInhabitedLetRecToLift___closed__7; @@ -474,6 +498,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withPushMacroExpansionStack___rarg(lea uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_resolveName_x27___spec__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_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___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_Elab_Term_elabTermEnsuringType___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*); @@ -487,6 +512,7 @@ static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_TermElabM_run(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeAscription(lean_object*); static lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1___closed__2; +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___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___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__5; @@ -498,6 +524,7 @@ lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_Linter_instInhabitedDeprecationEntry; lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -506,27 +533,29 @@ lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedSyntheticMVarDecl___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__13___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_Lean_Elab_Term_withoutHeedElabAsElimImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_153_(uint8_t, uint8_t); static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__3; LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_mayPostpone___default; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__44___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7; LEAN_EXPORT lean_object* l_Lean_profileitM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__11___rarg(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_Term_withSavedContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__2; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4; lean_object* l_Lean_Meta_mkFreshLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; static lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__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_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__4; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -534,6 +563,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0_ static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__3(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_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg___closed__1; +lean_object* lean_task_pure(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__16; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -543,6 +574,7 @@ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__10; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__4; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___closed__2; static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__4; +static lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__13(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_withoutHeedElabAsElim___rarg___closed__1; @@ -558,6 +590,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift(lean_object*); +lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveLocalName_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -566,8 +599,11 @@ lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Term_withMacroExpansion___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg___lambda__1(lean_object*, 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*); +LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_collectUnassignedMVars_go___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1(lean_object*, uint8_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_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__5(lean_object*, lean_object*); @@ -575,7 +611,9 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addA LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_mvarErrorInfos___default; +lean_object* l_Lean_declareBuiltin(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_auxDeclToFullName___default; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__8; lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); @@ -583,15 +621,18 @@ LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotComp static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withMacroExpansion(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2; lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__2; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__40(lean_object*, lean_object*, size_t, size_t); +uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); @@ -606,14 +647,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAu LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__4___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__14(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instInhabitedCache; static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__6; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___rarg(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___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_Lean_PersistentArray_mapMAux___at_Lean_Elab_Term_withDeclName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__6___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM; @@ -623,6 +665,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instInhabitedState; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_go___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_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_tacSnap_x3f___default; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___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___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Term_mkCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__9(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -640,8 +683,8 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___l LEAN_EXPORT lean_object* l_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__5; static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__10; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTerm___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 uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__23(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -650,6 +693,8 @@ static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_go(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef___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_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__29___boxed(lean_object*, lean_object*); @@ -662,19 +707,23 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTacticOrPostponedHole_x3f(lean_objec uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot; LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); static lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___closed__1; static lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1___closed__5; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); extern lean_object* l___private_Lean_DocString_0__Lean_docStringExt; uint8_t l_Lean_Expr_isMVar(lean_object*); +static lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withDeclName(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1(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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___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___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAuxDecl(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6(lean_object*, uint8_t, 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_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__5___boxed(lean_object*, lean_object*); @@ -685,8 +734,10 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassigne LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkSaveInfoAnnotation(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutPostponing(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___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___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Term_mkCoe___spec__2___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -707,8 +758,9 @@ LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_Elab_Term_ContainsPendi LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError(lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__5; +lean_object* l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9; +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -716,6 +768,7 @@ LEAN_EXPORT lean_object* l_Lean_profileitM___at___private_Lean_Elab_Term_0__Lean LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(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_Term_TermElabM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___boxed__const__1; +LEAN_EXPORT lean_object* l_Lean_Elab_addBuiltinIncrementalElab(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -726,6 +779,7 @@ static uint8_t l_Lean_Elab_Term_collectUnassignedMVars_go___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___closed__1; static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1; static lean_object* l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -734,6 +788,7 @@ LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBound LEAN_EXPORT lean_object* l_liftExcept___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTacticOrPostponedHole_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_go___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2; lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_ReaderT_instApplicativeOfMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -746,11 +801,14 @@ static lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_termElabAttribute; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__2; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__1; +LEAN_EXPORT uint8_t l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -759,6 +817,7 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_coerceToSort_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_liftLevelM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__1(lean_object*); @@ -774,7 +833,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadTermElabM___lambda__2(lean_ob LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__9(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_Term_throwErrorIfErrors___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens(lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_Term_resolveLocalName___spec__7___boxed(lean_object*, lean_object*); @@ -795,9 +854,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSa LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__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*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___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_Lean_Elab_Tactic_TacticParsedSnapshot_next(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLevelNames___boxed(lean_object*); static lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_isFieldName___boxed(lean_object*); +static lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2; +static lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_macroStack___default; @@ -810,6 +872,7 @@ LEAN_EXPORT lean_object* l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStack uint64_t l_Lean_Expr_hash(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg(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___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___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_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); @@ -819,11 +882,15 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withLogging___at___private_Lean_Elab_Term_0 LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_builtinIncrementalElabs; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_x3f___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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__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* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkNoImplicitLambdaAnnotation(lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Term_mkCoe___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -831,6 +898,7 @@ lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfNoErrors_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148_(lean_object*); lean_object* l_Lean_Core_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Term_mkCoe___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*); @@ -844,9 +912,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_setLevelNames(lean_object*, lean_objec LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__31(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__21(lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__2(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__24(lean_object*, lean_object*, size_t, size_t); @@ -867,8 +935,9 @@ LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLam static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isSaveInfoAnnotation_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17590_(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__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_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7; static lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_expandDeclId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___lambda__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*); @@ -890,12 +959,14 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImp LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12___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_Lean_Elab_Tactic_instInhabitedCacheKey___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___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_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___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_Syntax_matchesNull(lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__3; @@ -904,9 +975,11 @@ static lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___ static lean_object* l_Lean_Elab_Tactic_instHashableCacheKey___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__25(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___boxed(lean_object*); @@ -915,12 +988,15 @@ uint64_t l___private_Lean_Expr_0__Lean_hashMVarId____x40_Lean_Expr___hyg_1921_(l uint8_t l_Lean_Syntax_isIdent(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux(lean_object*, uint8_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_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_postponeElabTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__46___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); LEAN_EXPORT lean_object* l_List_filterMap___at_Lean_Elab_Term_resolveName___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_postponeElabTerm___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_abortTermExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(lean_object*); @@ -936,13 +1012,15 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_go___lambda__1___boxe LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveLocalName_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_liftLevelM(lean_object*); +lean_object* l_Lean_registerTagAttribute(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts(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_Term_withAutoBoundImplicitForbiddenPred___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_Elab_Term_instToStringMVarErrorKind(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6; +extern lean_object* l_Std_Format_defWidth; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens___closed__2; static lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorInfo___closed__1; static lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__1; @@ -953,6 +1031,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCoe___lambda__3(lean_object*, lean_o LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isImplicit(uint8_t); lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__34(lean_object*, lean_object*, lean_object*); @@ -963,8 +1042,10 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Elab_Term_logUnassi uint8_t l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_declName_x3f___default; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Elab_Term_getMVarErrorInfo_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_process___closed__3; +static lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Elab_Term_exprToSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_hashmap_mk_idx(lean_object*, uint64_t); LEAN_EXPORT lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_addTermInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -979,7 +1060,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__1(lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyAttributesAt___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__6(lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009_(lean_object*); extern lean_object* l_Lean_inheritedTraceOptions; LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -999,18 +1079,17 @@ lean_object* l_List_tail_x21___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getDeclName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___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_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDeclName___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___closed__1; LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_implicitLambda___default; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__1; -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); +static lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1028,12 +1107,15 @@ LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Elab_Term_containsPendingMVa LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Term_mkCoe___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641_(lean_object*); extern lean_object* l_Lean_Linter_deprecatedAttr; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Core_interruptExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isSaveInfoAnnotation_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___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_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1; static lean_object* l_Lean_Elab_Term_resolveName___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addTermInfo_x27(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_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1045,16 +1127,17 @@ LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resol static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwTypeMismatchError(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCoe___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_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___rarg___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Term_mkCoe___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__22(lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__4; static double l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2___closed__1; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__4___closed__3; -static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_tacticCache_x3f___default; LEAN_EXPORT lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_holesAsSyntheticOpaque___default; @@ -1064,6 +1147,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda_ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1072,9 +1157,10 @@ static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__3___ LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_autoBoundImplicitForbidden___default(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__4(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5; +extern lean_object* l_Lean_NameSet_empty; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___closed__2; static lean_object* l_Lean_Elab_Term_withExpectedType___closed__1; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___rarg___closed__1; @@ -1082,23 +1168,24 @@ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadTermElabM___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_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Term_withDeclName___spec__4(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_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars(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_withContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11; uint8_t l_Lean_Name_isAtomic(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__4; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_LVal_isFieldName(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__36(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__4___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -1107,12 +1194,10 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFn LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__4___closed__4; -static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5; static lean_object* l_panic___at_Lean_Elab_Term_getFVarLocalDecl_x21___spec__1___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__1(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_heedElabAsElim___default; @@ -1142,7 +1227,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpo lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9(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_Term_instMonadMacroAdapterTermElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__12___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*); @@ -1153,10 +1237,10 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__11___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_coerce_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__6; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__4; lean_object* l_Lean_ParametricAttribute_getParam_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restoreFull___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_CommandContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); @@ -1166,7 +1250,9 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModif static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__3___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__4; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_loop___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___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__27___boxed(lean_object*, lean_object*, lean_object*); @@ -1174,10 +1260,12 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModif static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__51___closed__4; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkConst___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679____boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedState; static lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___closed__2; +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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_TagDeclarationExtension_tag(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___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___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___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_Elab_getResetInfoTrees___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__5___rarg(lean_object*, lean_object*); @@ -1185,6 +1273,9 @@ lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, l lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(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*); +static lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandDeclId(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_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___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_Lean_Elab_Term_instInhabitedMVarErrorInfo; @@ -1195,10 +1286,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId static lean_object* l_Lean_Elab_Term_mkCoe___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_getDelayedMVarRoot___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__18; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__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_EXPORT lean_object* l_Lean_localDeclDependsOn___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1209,24 +1302,29 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVa LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___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_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___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_Lean_Elab_Term_resolveLocalName___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1(lean_object*, size_t, size_t); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__20(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instHashable; LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_autoBoundImplicit___default; static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__15; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__1; +static lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__2___rarg___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_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureType___lambda__1(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_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3; static lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__3; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -1235,10 +1333,10 @@ LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Elab_Term LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit(lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1; uint8_t l_Lean_isStructure(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg___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_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_autoImplicit; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1248,6 +1346,7 @@ lean_object* l_Lean_Core_resetMessageLog(lean_object*, lean_object*, lean_object LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars(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_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__27(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__51___closed__2; @@ -1257,6 +1356,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedSyntheticMVarKind; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___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_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process___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_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, 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_instInhabitedTacticParsedSnapshot___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_relaxedAutoImplicit; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_loop(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1264,29 +1364,38 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__2___boxed(lean_o LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withInfoContext_x27(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_isIncrementalElab(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg___lambda__1(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_Term_MVarErrorInfo_logError___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_withDeclName___spec__2(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1___lambda__2___closed__1; lean_object* l_Lean_Expr_setAppPPExplicitForExposingMVars(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__18(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ensureType___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__14___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_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_Elab_Term_withDeclName___spec__9(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_Term_mkTypeMismatchError(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_instInhabitedTacticFinished; LEAN_EXPORT lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__42(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Linter_linter_deprecated; lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__8(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +lean_object* l_Array_ofSubarray___rarg(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__33(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___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_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo___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_Elab_Term_withoutTacticIncrementality(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__4___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___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__2; extern lean_object* l_Lean_Elab_postponeExceptionId; @@ -1296,7 +1405,9 @@ lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCoe(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_Term_tryPostponeIfHasMVars___closed__6; +lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_incrementalAttr; LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda___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_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1___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*); @@ -1311,7 +1422,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___b LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__2(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_Term_instMetaEvalTermElabM___rarg___closed__11; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl(lean_object*); +lean_object* l___private_Lean_ToExpr_0__Lean_Name_toExprAux(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__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*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instBEqCacheKey; @@ -1330,6 +1444,7 @@ lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_x27___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_autoBoundImplicitExceptionId; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___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_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1(lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); @@ -1339,11 +1454,13 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaE static lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo___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_Lean_Elab_Term_addTermInfo___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_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDeclName___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___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_Term_withDeclName___spec__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_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift; size_t lean_usize_add(size_t, size_t); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4; lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_postponeElabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1355,9 +1472,12 @@ LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_ContainsPen LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__11(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Language_SnapshotTask_map___rarg(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__8(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__7___closed__1; +lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_withAutoBoundImplicit_loop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData; LEAN_EXPORT uint8_t l_Lean_Elab_Term_addAutoBoundImplicits_go___lambda__1(lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___closed__2; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2(lean_object*, lean_object*, size_t, size_t); @@ -1374,6 +1494,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_Elab_Term_addAuto static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addTermInfo(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*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__1; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8; extern lean_object* l_Lean_trace_profiler; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_Term_withoutErrToSorry___rarg(lean_object*, lean_object*); @@ -1385,6 +1506,7 @@ static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___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_Lean_Elab_Term_addAutoBoundImplicits_go___lambda__1___boxed(lean_object*); lean_object* lean_io_error_to_string(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(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_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__3; @@ -1422,15 +1544,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at___private_Lean_Ela LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Term_mkCoe___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1___closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__1(lean_object*, lean_object*); lean_object* l_Lean_getAttributeImpl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_SavedState_restoreFull(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_pendingMVars___default; static lean_object* l_List_foldl___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__2___closed__3; 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_Lean_Elab_Term_instInhabitedLetRecToLift___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_isIncrementalElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashable___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1447,6 +1571,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingE LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withDeclName___spec__13___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_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred(lean_object*); @@ -1463,6 +1589,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAuxDecl___rarg___lambda__1(lean_ob LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevMAux___at_Lean_Elab_Term_resolveLocalName___spec__9(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2(uint8_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_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2; LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Term_resolveLocalName___spec__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1479,6 +1606,7 @@ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__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_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorKind; @@ -1487,6 +1615,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing(lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__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*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___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_Term_initFn____x40_Lean_Elab_Term___hyg_3183_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__26(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___rarg(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1495,6 +1624,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0_ static lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__19(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1507,7 +1638,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___l static lean_object* l_Lean_Elab_Term_expandDeclId___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__1; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1520,9 +1650,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplic LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedState___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4; uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__10___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__2; lean_object* l_String_toSubstring_x27(lean_object*); @@ -1531,6 +1659,7 @@ static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkCoe___lambda__2___closed__2; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Term_mkCoe___spec__2___rarg___boxed(lean_object*, lean_object*); @@ -1551,6 +1680,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0_ static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1565,6 +1695,7 @@ LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_ignoreTCFailures___default; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__47___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); lean_object* l_ReaderT_instMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___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_Lean_Elab_Term_isMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1582,15 +1713,18 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImp LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_HashMap_0__Lean_numBucketsForCapacity(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___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*); double lean_float_sub(double, double); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_Meta_processPostponed(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___closed__1; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Message_toString(lean_object*, uint8_t, lean_object*); +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Term_instInhabitedSyntheticMVarKind() { _start: @@ -2016,7 +2150,7 @@ x_1 = lean_box(0); return x_1; } } -LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(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; uint8_t x_7; @@ -2039,11 +2173,11 @@ return x_9; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602_(x_1, x_2); +x_3 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -2054,7 +2188,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_instBEqCacheKey___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_602____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_658____boxed), 2, 0); return x_1; } } @@ -2066,7 +2200,7 @@ x_1 = l_Lean_Elab_Tactic_instBEqCacheKey___closed__1; return x_1; } } -LEAN_EXPORT uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(lean_object* x_1) { +LEAN_EXPORT uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint64_t x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; @@ -2080,11 +2214,11 @@ x_8 = lean_uint64_mix_hash(x_6, x_7); return x_8; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679____boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735____boxed(lean_object* x_1) { _start: { uint64_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679_(x_1); +x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735_(x_1); lean_dec(x_1); x_3 = lean_box_uint64(x_2); return x_3; @@ -2094,7 +2228,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_instHashableCacheKey___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_679____boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_735____boxed), 1, 0); return x_1; } } @@ -2173,6 +2307,241 @@ x_1 = l_Lean_Elab_Tactic_instInhabitedCache___closed__1; return x_1; } } +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticFinished() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__7; +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_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1; +x_3 = lean_alloc_ctor(0, 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_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_task_pure(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3; +x_2 = lean_box(0); +x_3 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5; +x_2 = l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot___closed__1; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_data(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_data___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_TacticParsedSnapshot_data(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_next(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_TacticParsedSnapshot_next___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_TacticParsedSnapshot_next(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___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; lean_object* x_9; uint8_t x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; +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); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1; +x_10 = 1; +x_11 = l_Lean_Language_SnapshotTask_map___rarg(x_5, x_9, x_8, x_10); +x_12 = 1; +x_13 = lean_usize_add(x_2, x_12); +x_14 = lean_array_uset(x_7, x_2, x_11); +x_2 = x_13; +x_3 = x_14; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_array_get_size(x_4); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1(x_7, x_8, x_4); +lean_ctor_set(x_1, 1, x_9); +lean_ctor_set(x_1, 0, x_5); +return x_1; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_1); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_array_get_size(x_11); +x_14 = lean_usize_of_nat(x_13); +lean_dec(x_13); +x_15 = 0; +x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1(x_14, x_15, x_11); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___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_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1(x_4, x_5, x_3); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1; +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Term_Context_declName_x3f___default() { _start: { @@ -2347,6 +2716,14 @@ x_1 = lean_box(0); return x_1; } } +static lean_object* _init_l_Lean_Elab_Term_Context_tacSnap_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static uint8_t _init_l_Lean_Elab_Term_Context_saveRecAppSyntax___default() { _start: { @@ -2980,20 +3357,98 @@ x_11 = l_Lean_Elab_Term_SavedState_restore(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restoreFull(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_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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; uint8_t x_14; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = l_Lean_Meta_SavedState_restoreFull(x_9, x_4, x_5, x_6, x_7, x_8); -x_11 = lean_ctor_get(x_10, 1); +lean_object* x_9; +x_9 = lean_apply_5(x_1, 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; uint8_t x_13; +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_10); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -lean_dec(x_1); -x_13 = lean_st_ref_set(x_3, x_12, x_11); +lean_dec(x_9); +x_12 = lean_st_ref_get(x_3, x_11); +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_10); +lean_ctor_set(x_18, 1, 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); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +return x_9; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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; +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__1___boxed), 8, 1); +lean_closure_set(x_10, 0, x_4); +x_11 = lean_apply_8(x_1, x_10, x_2, x_3, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___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) { +_start: +{ +lean_object* x_11; +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__2), 9, 3); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_4); +lean_closure_set(x_11, 2, x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l_Lean_Meta_withRestoreOrSaveFull___rarg(x_12, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) { @@ -3013,21 +3468,301 @@ lean_ctor_set(x_17, 1, x_16); return x_17; } } +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +return x_13; } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restoreFull___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) { +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +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; +} +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_2); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_2, 0); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 1); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +lean_ctor_set(x_23, 1, x_26); +x_27 = l_Lean_Meta_withRestoreOrSaveFull___rarg(x_2, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +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_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 +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_23, 0); +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_23); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_2, 0, x_39); +x_40 = l_Lean_Meta_withRestoreOrSaveFull___rarg(x_2, x_11, x_6, x_7, x_8, x_9, x_10); +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 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; +} else { + lean_dec_ref(x_40); + x_43 = lean_box(0); +} +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + 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 +{ +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; +x_49 = lean_ctor_get(x_2, 0); +lean_inc(x_49); +lean_dec(x_2); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +lean_dec(x_51); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_50); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = l_Lean_Meta_withRestoreOrSaveFull___rarg(x_55, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; +} else { + lean_dec_ref(x_56); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; +} else { + lean_dec_ref(x_56); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___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_object* x_9) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +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_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_set(x_4, x_14, x_9); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +lean_dec(x_16); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withRestoreOrSaveFull___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___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) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_Term_SavedState_restoreFull(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +x_9 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Term_withRestoreOrSaveFull___rarg___lambda__3(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; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___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: { @@ -3073,6 +3808,4151 @@ x_1 = l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__3; return x_1; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_4, 8); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +lean_dec(x_3); +lean_dec(x_1); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 8); +lean_dec(x_7); +x_8 = lean_box(0); +lean_ctor_set(x_4, 8, x_8); +return x_4; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_9 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_4, 1); +x_11 = lean_ctor_get(x_4, 2); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_13 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_14 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_15 = lean_ctor_get(x_4, 3); +x_16 = lean_ctor_get(x_4, 4); +x_17 = lean_ctor_get(x_4, 5); +x_18 = lean_ctor_get(x_4, 6); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_24 = lean_ctor_get(x_4, 7); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_24); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_4); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_28, 0, x_9); +lean_ctor_set(x_28, 1, x_10); +lean_ctor_set(x_28, 2, x_11); +lean_ctor_set(x_28, 3, x_15); +lean_ctor_set(x_28, 4, x_16); +lean_ctor_set(x_28, 5, x_17); +lean_ctor_set(x_28, 6, x_18); +lean_ctor_set(x_28, 7, x_24); +lean_ctor_set(x_28, 8, x_27); +lean_ctor_set_uint8(x_28, sizeof(void*)*9, x_12); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 1, x_13); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 2, x_14); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 3, x_19); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 4, x_20); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 5, x_21); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 6, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 7, x_23); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 8, x_25); +lean_ctor_set_uint8(x_28, sizeof(void*)*9 + 9, x_26); +return x_28; +} +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_5); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_5, 0); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +lean_dec(x_3); +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_4); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_4, 8); +lean_dec(x_33); +x_34 = !lean_is_exclusive(x_30); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_30, 0); +lean_dec(x_35); +x_36 = lean_box(0); +lean_ctor_set(x_30, 0, x_36); +return x_4; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_30, 1); +lean_inc(x_37); +lean_dec(x_30); +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_37); +lean_ctor_set(x_5, 0, x_39); +return x_4; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; uint8_t 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_40 = lean_ctor_get(x_4, 0); +x_41 = lean_ctor_get(x_4, 1); +x_42 = lean_ctor_get(x_4, 2); +x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_46 = lean_ctor_get(x_4, 3); +x_47 = lean_ctor_get(x_4, 4); +x_48 = lean_ctor_get(x_4, 5); +x_49 = lean_ctor_get(x_4, 6); +x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_54 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_55 = lean_ctor_get(x_4, 7); +x_56 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_57 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_55); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_4); +x_58 = lean_ctor_get(x_30, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_59 = x_30; +} else { + lean_dec_ref(x_30); + x_59 = lean_box(0); +} +x_60 = lean_box(0); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +lean_ctor_set(x_5, 0, x_61); +x_62 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_62, 0, x_40); +lean_ctor_set(x_62, 1, x_41); +lean_ctor_set(x_62, 2, x_42); +lean_ctor_set(x_62, 3, x_46); +lean_ctor_set(x_62, 4, x_47); +lean_ctor_set(x_62, 5, x_48); +lean_ctor_set(x_62, 6, x_49); +lean_ctor_set(x_62, 7, x_55); +lean_ctor_set(x_62, 8, x_5); +lean_ctor_set_uint8(x_62, sizeof(void*)*9, x_43); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 1, x_44); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 2, x_45); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 3, x_50); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 4, x_51); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 5, x_52); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 6, x_53); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 7, x_54); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 8, x_56); +lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 9, x_57); +return x_62; +} +} +else +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_31); +if (x_63 == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_4); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_31, 0); +x_66 = lean_ctor_get(x_4, 8); +lean_dec(x_66); +x_67 = !lean_is_exclusive(x_30); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_30, 0); +lean_dec(x_68); +x_69 = !lean_is_exclusive(x_65); +if (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; uint8_t x_76; +x_70 = lean_ctor_get(x_65, 0); +x_71 = lean_ctor_get(x_65, 1); +x_72 = lean_apply_1(x_1, x_70); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_73); +x_76 = lean_unbox(x_75); +lean_dec(x_75); +if (x_76 == 0) +{ +lean_object* x_77; +lean_dec(x_74); +lean_free_object(x_65); +lean_dec(x_71); +lean_free_object(x_5); +x_77 = lean_box(0); +lean_ctor_set(x_30, 0, x_77); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_4, 8, x_31); +return x_4; +} +else +{ +lean_ctor_set(x_65, 0, x_74); +return x_4; +} +} +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; uint8_t x_84; +x_78 = lean_ctor_get(x_65, 0); +x_79 = lean_ctor_get(x_65, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_65); +x_80 = lean_apply_1(x_1, x_78); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_81); +x_84 = lean_unbox(x_83); +lean_dec(x_83); +if (x_84 == 0) +{ +lean_object* x_85; +lean_dec(x_82); +lean_dec(x_79); +lean_free_object(x_5); +x_85 = lean_box(0); +lean_ctor_set(x_30, 0, x_85); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_4, 8, x_31); +return x_4; +} +else +{ +lean_object* x_86; +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_82); +lean_ctor_set(x_86, 1, x_79); +lean_ctor_set(x_31, 0, x_86); +return x_4; +} +} +} +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; lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_87 = lean_ctor_get(x_30, 1); +lean_inc(x_87); +lean_dec(x_30); +x_88 = lean_ctor_get(x_65, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_65, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_90 = x_65; +} else { + lean_dec_ref(x_65); + x_90 = lean_box(0); +} +x_91 = lean_apply_1(x_1, x_88); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_92); +x_95 = lean_unbox(x_94); +lean_dec(x_94); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; +lean_dec(x_93); +lean_dec(x_90); +lean_dec(x_89); +lean_free_object(x_5); +x_96 = lean_box(0); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_87); +lean_ctor_set(x_31, 0, x_97); +lean_ctor_set(x_4, 8, x_31); +return x_4; +} +else +{ +lean_object* x_98; lean_object* x_99; +if (lean_is_scalar(x_90)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_90; +} +lean_ctor_set(x_98, 0, x_93); +lean_ctor_set(x_98, 1, x_89); +lean_ctor_set(x_31, 0, x_98); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_31); +lean_ctor_set(x_99, 1, x_87); +lean_ctor_set(x_5, 0, x_99); +return x_4; +} +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; lean_object* x_116; uint8_t 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; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +x_100 = lean_ctor_get(x_31, 0); +x_101 = lean_ctor_get(x_4, 0); +x_102 = lean_ctor_get(x_4, 1); +x_103 = lean_ctor_get(x_4, 2); +x_104 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_105 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_106 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_107 = lean_ctor_get(x_4, 3); +x_108 = lean_ctor_get(x_4, 4); +x_109 = lean_ctor_get(x_4, 5); +x_110 = lean_ctor_get(x_4, 6); +x_111 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_112 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_113 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_114 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_115 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_116 = lean_ctor_get(x_4, 7); +x_117 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_118 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_116); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_4); +x_119 = lean_ctor_get(x_30, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_120 = x_30; +} else { + lean_dec_ref(x_30); + x_120 = lean_box(0); +} +x_121 = lean_ctor_get(x_100, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_100, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_123 = x_100; +} else { + lean_dec_ref(x_100); + x_123 = lean_box(0); +} +x_124 = lean_apply_1(x_1, x_121); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_125); +x_128 = lean_unbox(x_127); +lean_dec(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_126); +lean_dec(x_123); +lean_dec(x_122); +lean_free_object(x_5); +x_129 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_130 = lean_alloc_ctor(0, 2, 0); +} else { + x_130 = x_120; +} +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_119); +lean_ctor_set(x_31, 0, x_130); +x_131 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_131, 0, x_101); +lean_ctor_set(x_131, 1, x_102); +lean_ctor_set(x_131, 2, x_103); +lean_ctor_set(x_131, 3, x_107); +lean_ctor_set(x_131, 4, x_108); +lean_ctor_set(x_131, 5, x_109); +lean_ctor_set(x_131, 6, x_110); +lean_ctor_set(x_131, 7, x_116); +lean_ctor_set(x_131, 8, x_31); +lean_ctor_set_uint8(x_131, sizeof(void*)*9, x_104); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 1, x_105); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 2, x_106); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 3, x_111); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 4, x_112); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 5, x_113); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 6, x_114); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 7, x_115); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 8, x_117); +lean_ctor_set_uint8(x_131, sizeof(void*)*9 + 9, x_118); +return x_131; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +if (lean_is_scalar(x_123)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_123; +} +lean_ctor_set(x_132, 0, x_126); +lean_ctor_set(x_132, 1, x_122); +lean_ctor_set(x_31, 0, x_132); +if (lean_is_scalar(x_120)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_120; +} +lean_ctor_set(x_133, 0, x_31); +lean_ctor_set(x_133, 1, x_119); +lean_ctor_set(x_5, 0, x_133); +x_134 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_134, 0, x_101); +lean_ctor_set(x_134, 1, x_102); +lean_ctor_set(x_134, 2, x_103); +lean_ctor_set(x_134, 3, x_107); +lean_ctor_set(x_134, 4, x_108); +lean_ctor_set(x_134, 5, x_109); +lean_ctor_set(x_134, 6, x_110); +lean_ctor_set(x_134, 7, x_116); +lean_ctor_set(x_134, 8, x_5); +lean_ctor_set_uint8(x_134, sizeof(void*)*9, x_104); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 1, x_105); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 2, x_106); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 3, x_111); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 4, x_112); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 5, x_113); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 6, x_114); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 7, x_115); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 8, x_117); +lean_ctor_set_uint8(x_134, sizeof(void*)*9 + 9, x_118); +return x_134; +} +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; uint8_t x_147; uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; uint8_t x_152; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; +x_135 = lean_ctor_get(x_31, 0); +lean_inc(x_135); +lean_dec(x_31); +x_136 = lean_ctor_get(x_4, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_4, 1); +lean_inc(x_137); +x_138 = lean_ctor_get(x_4, 2); +lean_inc(x_138); +x_139 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_140 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_141 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_142 = lean_ctor_get(x_4, 3); +lean_inc(x_142); +x_143 = lean_ctor_get(x_4, 4); +lean_inc(x_143); +x_144 = lean_ctor_get(x_4, 5); +lean_inc(x_144); +x_145 = lean_ctor_get(x_4, 6); +lean_inc(x_145); +x_146 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_147 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_148 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_149 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_150 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_151 = lean_ctor_get(x_4, 7); +lean_inc(x_151); +x_152 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_153 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + lean_ctor_release(x_4, 7); + lean_ctor_release(x_4, 8); + x_154 = x_4; +} else { + lean_dec_ref(x_4); + x_154 = lean_box(0); +} +x_155 = lean_ctor_get(x_30, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_156 = x_30; +} else { + lean_dec_ref(x_30); + x_156 = lean_box(0); +} +x_157 = lean_ctor_get(x_135, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_135, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_159 = x_135; +} else { + lean_dec_ref(x_135); + x_159 = lean_box(0); +} +x_160 = lean_apply_1(x_1, x_157); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_161); +x_164 = lean_unbox(x_163); +lean_dec(x_163); +if (x_164 == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_162); +lean_dec(x_159); +lean_dec(x_158); +lean_free_object(x_5); +x_165 = lean_box(0); +if (lean_is_scalar(x_156)) { + x_166 = lean_alloc_ctor(0, 2, 0); +} else { + x_166 = x_156; +} +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_155); +x_167 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_167, 0, x_166); +if (lean_is_scalar(x_154)) { + x_168 = lean_alloc_ctor(0, 9, 10); +} else { + x_168 = x_154; +} +lean_ctor_set(x_168, 0, x_136); +lean_ctor_set(x_168, 1, x_137); +lean_ctor_set(x_168, 2, x_138); +lean_ctor_set(x_168, 3, x_142); +lean_ctor_set(x_168, 4, x_143); +lean_ctor_set(x_168, 5, x_144); +lean_ctor_set(x_168, 6, x_145); +lean_ctor_set(x_168, 7, x_151); +lean_ctor_set(x_168, 8, x_167); +lean_ctor_set_uint8(x_168, sizeof(void*)*9, x_139); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 1, x_140); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 2, x_141); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 3, x_146); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 4, x_147); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 5, x_148); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 6, x_149); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 7, x_150); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 8, x_152); +lean_ctor_set_uint8(x_168, sizeof(void*)*9 + 9, x_153); +return x_168; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +if (lean_is_scalar(x_159)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_159; +} +lean_ctor_set(x_169, 0, x_162); +lean_ctor_set(x_169, 1, x_158); +x_170 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_170, 0, x_169); +if (lean_is_scalar(x_156)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_156; +} +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_155); +lean_ctor_set(x_5, 0, x_171); +if (lean_is_scalar(x_154)) { + x_172 = lean_alloc_ctor(0, 9, 10); +} else { + x_172 = x_154; +} +lean_ctor_set(x_172, 0, x_136); +lean_ctor_set(x_172, 1, x_137); +lean_ctor_set(x_172, 2, x_138); +lean_ctor_set(x_172, 3, x_142); +lean_ctor_set(x_172, 4, x_143); +lean_ctor_set(x_172, 5, x_144); +lean_ctor_set(x_172, 6, x_145); +lean_ctor_set(x_172, 7, x_151); +lean_ctor_set(x_172, 8, x_5); +lean_ctor_set_uint8(x_172, sizeof(void*)*9, x_139); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 1, x_140); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 2, x_141); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 3, x_146); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 4, x_147); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 5, x_148); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 6, x_149); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 7, x_150); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 8, x_152); +lean_ctor_set_uint8(x_172, sizeof(void*)*9 + 9, x_153); +return x_172; +} +} +} +} +else +{ +lean_object* x_173; lean_object* x_174; +x_173 = lean_ctor_get(x_5, 0); +lean_inc(x_173); +lean_dec(x_5); +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; lean_object* x_190; uint8_t x_191; uint8_t 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_dec(x_3); +lean_dec(x_1); +x_175 = lean_ctor_get(x_4, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_4, 1); +lean_inc(x_176); +x_177 = lean_ctor_get(x_4, 2); +lean_inc(x_177); +x_178 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_179 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_180 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_181 = lean_ctor_get(x_4, 3); +lean_inc(x_181); +x_182 = lean_ctor_get(x_4, 4); +lean_inc(x_182); +x_183 = lean_ctor_get(x_4, 5); +lean_inc(x_183); +x_184 = lean_ctor_get(x_4, 6); +lean_inc(x_184); +x_185 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_186 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_187 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_188 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_189 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_190 = lean_ctor_get(x_4, 7); +lean_inc(x_190); +x_191 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_192 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + lean_ctor_release(x_4, 7); + lean_ctor_release(x_4, 8); + x_193 = x_4; +} else { + lean_dec_ref(x_4); + x_193 = lean_box(0); +} +x_194 = lean_ctor_get(x_173, 1); +lean_inc(x_194); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_195 = x_173; +} else { + lean_dec_ref(x_173); + x_195 = lean_box(0); +} +x_196 = lean_box(0); +if (lean_is_scalar(x_195)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_195; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_194); +x_198 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_198, 0, x_197); +if (lean_is_scalar(x_193)) { + x_199 = lean_alloc_ctor(0, 9, 10); +} else { + x_199 = x_193; +} +lean_ctor_set(x_199, 0, x_175); +lean_ctor_set(x_199, 1, x_176); +lean_ctor_set(x_199, 2, x_177); +lean_ctor_set(x_199, 3, x_181); +lean_ctor_set(x_199, 4, x_182); +lean_ctor_set(x_199, 5, x_183); +lean_ctor_set(x_199, 6, x_184); +lean_ctor_set(x_199, 7, x_190); +lean_ctor_set(x_199, 8, x_198); +lean_ctor_set_uint8(x_199, sizeof(void*)*9, x_178); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 1, x_179); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 2, x_180); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 3, x_185); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 4, x_186); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 5, x_187); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 6, x_188); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 7, x_189); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 8, x_191); +lean_ctor_set_uint8(x_199, sizeof(void*)*9 + 9, x_192); +return x_199; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; uint8_t x_206; uint8_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; uint8_t x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; uint8_t x_216; lean_object* x_217; uint8_t x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; +x_200 = lean_ctor_get(x_174, 0); +lean_inc(x_200); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + x_201 = x_174; +} else { + lean_dec_ref(x_174); + x_201 = lean_box(0); +} +x_202 = lean_ctor_get(x_4, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_4, 1); +lean_inc(x_203); +x_204 = lean_ctor_get(x_4, 2); +lean_inc(x_204); +x_205 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_206 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_207 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); +x_208 = lean_ctor_get(x_4, 3); +lean_inc(x_208); +x_209 = lean_ctor_get(x_4, 4); +lean_inc(x_209); +x_210 = lean_ctor_get(x_4, 5); +lean_inc(x_210); +x_211 = lean_ctor_get(x_4, 6); +lean_inc(x_211); +x_212 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_213 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_214 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_215 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_216 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); +x_217 = lean_ctor_get(x_4, 7); +lean_inc(x_217); +x_218 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_219 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + lean_ctor_release(x_4, 7); + lean_ctor_release(x_4, 8); + x_220 = x_4; +} else { + lean_dec_ref(x_4); + x_220 = lean_box(0); +} +x_221 = lean_ctor_get(x_173, 1); +lean_inc(x_221); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_222 = x_173; +} else { + lean_dec_ref(x_173); + x_222 = lean_box(0); +} +x_223 = lean_ctor_get(x_200, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_200, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_225 = x_200; +} else { + lean_dec_ref(x_200); + x_225 = lean_box(0); +} +x_226 = lean_apply_1(x_1, x_223); +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 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_2, x_3, x_227); +x_230 = lean_unbox(x_229); +lean_dec(x_229); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_228); +lean_dec(x_225); +lean_dec(x_224); +x_231 = lean_box(0); +if (lean_is_scalar(x_222)) { + x_232 = lean_alloc_ctor(0, 2, 0); +} else { + x_232 = x_222; +} +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_221); +if (lean_is_scalar(x_201)) { + x_233 = lean_alloc_ctor(1, 1, 0); +} else { + x_233 = x_201; +} +lean_ctor_set(x_233, 0, x_232); +if (lean_is_scalar(x_220)) { + x_234 = lean_alloc_ctor(0, 9, 10); +} else { + x_234 = x_220; +} +lean_ctor_set(x_234, 0, x_202); +lean_ctor_set(x_234, 1, x_203); +lean_ctor_set(x_234, 2, x_204); +lean_ctor_set(x_234, 3, x_208); +lean_ctor_set(x_234, 4, x_209); +lean_ctor_set(x_234, 5, x_210); +lean_ctor_set(x_234, 6, x_211); +lean_ctor_set(x_234, 7, x_217); +lean_ctor_set(x_234, 8, x_233); +lean_ctor_set_uint8(x_234, sizeof(void*)*9, x_205); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 1, x_206); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 2, x_207); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 3, x_212); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 4, x_213); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 5, x_214); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 6, x_215); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 7, x_216); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 8, x_218); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 9, x_219); +return x_234; +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +if (lean_is_scalar(x_225)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_225; +} +lean_ctor_set(x_235, 0, x_228); +lean_ctor_set(x_235, 1, x_224); +if (lean_is_scalar(x_201)) { + x_236 = lean_alloc_ctor(1, 1, 0); +} else { + x_236 = x_201; +} +lean_ctor_set(x_236, 0, x_235); +if (lean_is_scalar(x_222)) { + x_237 = lean_alloc_ctor(0, 2, 0); +} else { + x_237 = x_222; +} +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_221); +x_238 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_238, 0, x_237); +if (lean_is_scalar(x_220)) { + x_239 = lean_alloc_ctor(0, 9, 10); +} else { + x_239 = x_220; +} +lean_ctor_set(x_239, 0, x_202); +lean_ctor_set(x_239, 1, x_203); +lean_ctor_set(x_239, 2, x_204); +lean_ctor_set(x_239, 3, x_208); +lean_ctor_set(x_239, 4, x_209); +lean_ctor_set(x_239, 5, x_210); +lean_ctor_set(x_239, 6, x_211); +lean_ctor_set(x_239, 7, x_217); +lean_ctor_set(x_239, 8, x_238); +lean_ctor_set_uint8(x_239, sizeof(void*)*9, x_205); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 1, x_206); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 2, x_207); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 3, x_212); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 4, x_213); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 5, x_214); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 6, x_215); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 7, x_216); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 8, x_218); +lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 9, x_219); +return x_239; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = l_Lean_replaceRef(x_1, x_4); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_apply_3(x_6, lean_box(0), x_5, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_8); +lean_closure_set(x_9, 2, x_2); +lean_inc(x_4); +x_10 = lean_apply_1(x_3, x_4); +x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2___boxed), 4, 3); +lean_closure_set(x_12, 0, x_4); +lean_closure_set(x_12, 1, x_5); +lean_closure_set(x_12, 2, x_10); +x_13 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_11, x_12); +x_14 = lean_apply_3(x_7, lean_box(0), x_9, x_13); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___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_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_inc(x_6); +x_9 = lean_apply_1(x_6, x_8); +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_1, 1); +lean_inc(x_12); +lean_dec(x_1); +lean_inc(x_12); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__3), 8, 7); +lean_closure_set(x_13, 0, x_6); +lean_closure_set(x_13, 1, x_10); +lean_closure_set(x_13, 2, x_7); +lean_closure_set(x_13, 3, x_11); +lean_closure_set(x_13, 4, x_5); +lean_closure_set(x_13, 5, x_12); +lean_closure_set(x_13, 6, x_3); +x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_4, x_13); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___boxed), 8, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__2(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___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_Lean_Elab_Term_withNarrowedTacticReuse___rarg(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_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___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_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_inc(x_6); +x_9 = lean_apply_1(x_6, x_8); +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_1, 1); +lean_inc(x_12); +lean_dec(x_1); +lean_inc(x_12); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___rarg___lambda__3), 8, 7); +lean_closure_set(x_13, 0, x_6); +lean_closure_set(x_13, 1, x_10); +lean_closure_set(x_13, 2, x_7); +lean_closure_set(x_13, 3, x_11); +lean_closure_set(x_13, 4, x_5); +lean_closure_set(x_13, 5, x_12); +lean_closure_set(x_13, 6, x_3); +x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_4, x_13); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___rarg___boxed), 8, 0); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("null", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_3 = l_Lean_Syntax_getArgs(x_2); +x_4 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_5 = l_Array_toSubarray___rarg(x_3, x_4, x_1); +x_6 = l_Array_ofSubarray___rarg(x_5); +x_7 = lean_box(2); +x_8 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2; +x_9 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set(x_9, 2, x_6); +x_10 = l_Lean_Syntax_getArg(x_2, x_1); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___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_object* x_10; +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_9, 0, x_6); +x_10 = l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___boxed), 8, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___rarg___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_Lean_Elab_Term_withNarrowedTacticReuse___at_Lean_Elab_Term_withNarrowedArgTacticReuse___spec__1___rarg(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_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___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_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg(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 uint8_t l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (x_1 == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(0); +x_4 = lean_apply_1(x_1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("trace", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_3 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse stopped: guard failed at ", 31); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("", 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_3, 8); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 8); +lean_dec(x_6); +x_7 = lean_box(0); +lean_ctor_set(x_3, 8, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_ctor_get(x_3, 1); +x_10 = lean_ctor_get(x_3, 2); +x_11 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_12 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_14 = lean_ctor_get(x_3, 3); +x_15 = lean_ctor_get(x_3, 4); +x_16 = lean_ctor_get(x_3, 5); +x_17 = lean_ctor_get(x_3, 6); +x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_23 = lean_ctor_get(x_3, 7); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_23); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_3); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_9); +lean_ctor_set(x_27, 2, x_10); +lean_ctor_set(x_27, 3, x_14); +lean_ctor_set(x_27, 4, x_15); +lean_ctor_set(x_27, 5, x_16); +lean_ctor_set(x_27, 6, x_17); +lean_ctor_set(x_27, 7, x_23); +lean_ctor_set(x_27, 8, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*9, x_11); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 1, x_12); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 2, x_13); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 3, x_18); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 4, x_19); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 5, x_20); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 6, x_21); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 7, x_22); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 8, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 9, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_4); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_3); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_3, 8); +lean_dec(x_32); +x_33 = lean_box(0); +x_34 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_33); +if (x_34 == 0) +{ +lean_object* x_35; +lean_free_object(x_4); +lean_dec(x_29); +x_35 = lean_box(0); +lean_ctor_set(x_3, 8, x_35); +return x_3; +} +else +{ +return x_3; +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; +x_36 = lean_ctor_get(x_3, 0); +x_37 = lean_ctor_get(x_3, 1); +x_38 = lean_ctor_get(x_3, 2); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_41 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_42 = lean_ctor_get(x_3, 3); +x_43 = lean_ctor_get(x_3, 4); +x_44 = lean_ctor_get(x_3, 5); +x_45 = lean_ctor_get(x_3, 6); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_51 = lean_ctor_get(x_3, 7); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_53 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_51); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_3); +x_54 = lean_box(0); +x_55 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +lean_free_object(x_4); +lean_dec(x_29); +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_57, 0, x_36); +lean_ctor_set(x_57, 1, x_37); +lean_ctor_set(x_57, 2, x_38); +lean_ctor_set(x_57, 3, x_42); +lean_ctor_set(x_57, 4, x_43); +lean_ctor_set(x_57, 5, x_44); +lean_ctor_set(x_57, 6, x_45); +lean_ctor_set(x_57, 7, x_51); +lean_ctor_set(x_57, 8, x_56); +lean_ctor_set_uint8(x_57, sizeof(void*)*9, x_39); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 1, x_40); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 2, x_41); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 3, x_46); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 4, x_47); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 5, x_48); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 6, x_49); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 7, x_50); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 8, x_52); +lean_ctor_set_uint8(x_57, sizeof(void*)*9 + 9, x_53); +return x_57; +} +else +{ +lean_object* x_58; +x_58 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_58, 0, x_36); +lean_ctor_set(x_58, 1, x_37); +lean_ctor_set(x_58, 2, x_38); +lean_ctor_set(x_58, 3, x_42); +lean_ctor_set(x_58, 4, x_43); +lean_ctor_set(x_58, 5, x_44); +lean_ctor_set(x_58, 6, x_45); +lean_ctor_set(x_58, 7, x_51); +lean_ctor_set(x_58, 8, x_4); +lean_ctor_set_uint8(x_58, sizeof(void*)*9, x_39); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 1, x_40); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 2, x_41); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 3, x_46); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 4, x_47); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 5, x_48); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 6, x_49); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 7, x_50); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 8, x_52); +lean_ctor_set_uint8(x_58, sizeof(void*)*9 + 9, x_53); +return x_58; +} +} +} +else +{ +lean_free_object(x_4); +if (x_1 == 0) +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_30); +if (x_59 == 0) +{ +lean_object* x_60; uint8_t x_61; +x_60 = lean_ctor_get(x_30, 0); +lean_dec(x_60); +x_61 = !lean_is_exclusive(x_3); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_3, 8); +lean_dec(x_62); +x_63 = lean_box(0); +x_64 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_63); +if (x_64 == 0) +{ +lean_object* x_65; +lean_free_object(x_30); +lean_dec(x_29); +x_65 = lean_box(0); +lean_ctor_set(x_3, 8, x_65); +return x_3; +} +else +{ +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; lean_object* x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; +x_66 = lean_ctor_get(x_3, 0); +x_67 = lean_ctor_get(x_3, 1); +x_68 = lean_ctor_get(x_3, 2); +x_69 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_70 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_71 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_72 = lean_ctor_get(x_3, 3); +x_73 = lean_ctor_get(x_3, 4); +x_74 = lean_ctor_get(x_3, 5); +x_75 = lean_ctor_get(x_3, 6); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_78 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_79 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_81 = lean_ctor_get(x_3, 7); +x_82 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_83 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_81); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_3); +x_84 = lean_box(0); +x_85 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_84); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; +lean_free_object(x_30); +lean_dec(x_29); +x_86 = lean_box(0); +x_87 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_87, 0, x_66); +lean_ctor_set(x_87, 1, x_67); +lean_ctor_set(x_87, 2, x_68); +lean_ctor_set(x_87, 3, x_72); +lean_ctor_set(x_87, 4, x_73); +lean_ctor_set(x_87, 5, x_74); +lean_ctor_set(x_87, 6, x_75); +lean_ctor_set(x_87, 7, x_81); +lean_ctor_set(x_87, 8, x_86); +lean_ctor_set_uint8(x_87, sizeof(void*)*9, x_69); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 1, x_70); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 2, x_71); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 3, x_76); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 4, x_77); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 5, x_78); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 6, x_79); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 7, x_80); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 8, x_82); +lean_ctor_set_uint8(x_87, sizeof(void*)*9 + 9, x_83); +return x_87; +} +else +{ +lean_object* x_88; +lean_ctor_set(x_30, 0, x_29); +x_88 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_88, 0, x_66); +lean_ctor_set(x_88, 1, x_67); +lean_ctor_set(x_88, 2, x_68); +lean_ctor_set(x_88, 3, x_72); +lean_ctor_set(x_88, 4, x_73); +lean_ctor_set(x_88, 5, x_74); +lean_ctor_set(x_88, 6, x_75); +lean_ctor_set(x_88, 7, x_81); +lean_ctor_set(x_88, 8, x_30); +lean_ctor_set_uint8(x_88, sizeof(void*)*9, x_69); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 1, x_70); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 2, x_71); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 3, x_76); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 4, x_77); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 5, x_78); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 6, x_79); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 7, x_80); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 8, x_82); +lean_ctor_set_uint8(x_88, sizeof(void*)*9 + 9, x_83); +return x_88; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; lean_object* x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +lean_dec(x_30); +x_89 = lean_ctor_get(x_3, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_3, 1); +lean_inc(x_90); +x_91 = lean_ctor_get(x_3, 2); +lean_inc(x_91); +x_92 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_93 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_94 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_95 = lean_ctor_get(x_3, 3); +lean_inc(x_95); +x_96 = lean_ctor_get(x_3, 4); +lean_inc(x_96); +x_97 = lean_ctor_get(x_3, 5); +lean_inc(x_97); +x_98 = lean_ctor_get(x_3, 6); +lean_inc(x_98); +x_99 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_100 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_101 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_102 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_103 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_104 = lean_ctor_get(x_3, 7); +lean_inc(x_104); +x_105 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_106 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_107 = x_3; +} else { + lean_dec_ref(x_3); + x_107 = lean_box(0); +} +x_108 = lean_box(0); +x_109 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_108); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_29); +x_110 = lean_box(0); +if (lean_is_scalar(x_107)) { + x_111 = lean_alloc_ctor(0, 9, 10); +} else { + x_111 = x_107; +} +lean_ctor_set(x_111, 0, x_89); +lean_ctor_set(x_111, 1, x_90); +lean_ctor_set(x_111, 2, x_91); +lean_ctor_set(x_111, 3, x_95); +lean_ctor_set(x_111, 4, x_96); +lean_ctor_set(x_111, 5, x_97); +lean_ctor_set(x_111, 6, x_98); +lean_ctor_set(x_111, 7, x_104); +lean_ctor_set(x_111, 8, x_110); +lean_ctor_set_uint8(x_111, sizeof(void*)*9, x_92); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 1, x_93); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 2, x_94); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 3, x_99); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 4, x_100); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 5, x_101); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 6, x_102); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 7, x_103); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 8, x_105); +lean_ctor_set_uint8(x_111, sizeof(void*)*9 + 9, x_106); +return x_111; +} +else +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_29); +if (lean_is_scalar(x_107)) { + x_113 = lean_alloc_ctor(0, 9, 10); +} else { + x_113 = x_107; +} +lean_ctor_set(x_113, 0, x_89); +lean_ctor_set(x_113, 1, x_90); +lean_ctor_set(x_113, 2, x_91); +lean_ctor_set(x_113, 3, x_95); +lean_ctor_set(x_113, 4, x_96); +lean_ctor_set(x_113, 5, x_97); +lean_ctor_set(x_113, 6, x_98); +lean_ctor_set(x_113, 7, x_104); +lean_ctor_set(x_113, 8, x_112); +lean_ctor_set_uint8(x_113, sizeof(void*)*9, x_92); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 1, x_93); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 2, x_94); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 3, x_99); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 4, x_100); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 5, x_101); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 6, x_102); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 7, x_103); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 8, x_105); +lean_ctor_set_uint8(x_113, sizeof(void*)*9 + 9, x_106); +return x_113; +} +} +} +else +{ +uint8_t x_114; +x_114 = !lean_is_exclusive(x_3); +if (x_114 == 0) +{ +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_3, 8); +lean_dec(x_115); +x_116 = !lean_is_exclusive(x_30); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t x_122; +x_117 = lean_ctor_get(x_30, 0); +x_118 = lean_box(x_1); +x_119 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_119, 0, x_118); +x_120 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_121 = 0; +x_122 = l_Lean_KVMap_getBool(x_2, x_120, x_121); +if (x_122 == 0) +{ +lean_object* x_123; uint8_t x_124; +lean_dec(x_119); +lean_dec(x_117); +x_123 = lean_box(0); +x_124 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_123); +if (x_124 == 0) +{ +lean_object* x_125; +lean_free_object(x_30); +lean_dec(x_29); +x_125 = lean_box(0); +lean_ctor_set(x_3, 8, x_125); +return x_3; +} +else +{ +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +} +else +{ +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; uint8_t x_138; +x_126 = lean_ctor_get(x_117, 0); +lean_inc(x_126); +lean_dec(x_117); +x_127 = lean_box(0); +x_128 = lean_unsigned_to_nat(0u); +x_129 = l_Lean_Syntax_formatStxAux(x_127, x_121, x_128, x_126); +x_130 = l_Std_Format_defWidth; +x_131 = lean_format_pretty(x_129, x_130, x_128, x_128); +x_132 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_133 = lean_string_append(x_132, x_131); +lean_dec(x_131); +x_134 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_135 = lean_string_append(x_133, x_134); +x_136 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_136, 0, x_119); +x_137 = lean_dbg_trace(x_135, x_136); +x_138 = lean_unbox(x_137); +lean_dec(x_137); +if (x_138 == 0) +{ +lean_free_object(x_30); +lean_dec(x_29); +lean_ctor_set(x_3, 8, x_127); +return x_3; +} +else +{ +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; uint8_t x_144; +x_139 = lean_ctor_get(x_30, 0); +lean_inc(x_139); +lean_dec(x_30); +x_140 = lean_box(x_1); +x_141 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_141, 0, x_140); +x_142 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_143 = 0; +x_144 = l_Lean_KVMap_getBool(x_2, x_142, x_143); +if (x_144 == 0) +{ +lean_object* x_145; uint8_t x_146; +lean_dec(x_141); +lean_dec(x_139); +x_145 = lean_box(0); +x_146 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_145); +if (x_146 == 0) +{ +lean_object* x_147; +lean_dec(x_29); +x_147 = lean_box(0); +lean_ctor_set(x_3, 8, x_147); +return x_3; +} +else +{ +lean_object* x_148; +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_29); +lean_ctor_set(x_3, 8, x_148); +return x_3; +} +} +else +{ +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; uint8_t x_161; +x_149 = lean_ctor_get(x_139, 0); +lean_inc(x_149); +lean_dec(x_139); +x_150 = lean_box(0); +x_151 = lean_unsigned_to_nat(0u); +x_152 = l_Lean_Syntax_formatStxAux(x_150, x_143, x_151, x_149); +x_153 = l_Std_Format_defWidth; +x_154 = lean_format_pretty(x_152, x_153, x_151, x_151); +x_155 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_156 = lean_string_append(x_155, x_154); +lean_dec(x_154); +x_157 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_158 = lean_string_append(x_156, x_157); +x_159 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_159, 0, x_141); +x_160 = lean_dbg_trace(x_158, x_159); +x_161 = lean_unbox(x_160); +lean_dec(x_160); +if (x_161 == 0) +{ +lean_dec(x_29); +lean_ctor_set(x_3, 8, x_150); +return x_3; +} +else +{ +lean_object* x_162; +x_162 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_162, 0, x_29); +lean_ctor_set(x_3, 8, x_162); +return x_3; +} +} +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t 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; uint8_t x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; uint8_t x_177; lean_object* x_178; uint8_t 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; uint8_t x_186; uint8_t x_187; +x_163 = lean_ctor_get(x_3, 0); +x_164 = lean_ctor_get(x_3, 1); +x_165 = lean_ctor_get(x_3, 2); +x_166 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_167 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_168 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_169 = lean_ctor_get(x_3, 3); +x_170 = lean_ctor_get(x_3, 4); +x_171 = lean_ctor_get(x_3, 5); +x_172 = lean_ctor_get(x_3, 6); +x_173 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_174 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_175 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_176 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_177 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_178 = lean_ctor_get(x_3, 7); +x_179 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_180 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_178); +lean_inc(x_172); +lean_inc(x_171); +lean_inc(x_170); +lean_inc(x_169); +lean_inc(x_165); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_3); +x_181 = lean_ctor_get(x_30, 0); +lean_inc(x_181); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + x_182 = x_30; +} else { + lean_dec_ref(x_30); + x_182 = lean_box(0); +} +x_183 = lean_box(x_1); +x_184 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_184, 0, x_183); +x_185 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_186 = 0; +x_187 = l_Lean_KVMap_getBool(x_2, x_185, x_186); +if (x_187 == 0) +{ +lean_object* x_188; uint8_t x_189; +lean_dec(x_184); +lean_dec(x_181); +x_188 = lean_box(0); +x_189 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_188); +if (x_189 == 0) +{ +lean_object* x_190; lean_object* x_191; +lean_dec(x_182); +lean_dec(x_29); +x_190 = lean_box(0); +x_191 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_191, 0, x_163); +lean_ctor_set(x_191, 1, x_164); +lean_ctor_set(x_191, 2, x_165); +lean_ctor_set(x_191, 3, x_169); +lean_ctor_set(x_191, 4, x_170); +lean_ctor_set(x_191, 5, x_171); +lean_ctor_set(x_191, 6, x_172); +lean_ctor_set(x_191, 7, x_178); +lean_ctor_set(x_191, 8, x_190); +lean_ctor_set_uint8(x_191, sizeof(void*)*9, x_166); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 1, x_167); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 2, x_168); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 3, x_173); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 4, x_174); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 5, x_175); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 6, x_176); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 7, x_177); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 8, x_179); +lean_ctor_set_uint8(x_191, sizeof(void*)*9 + 9, x_180); +return x_191; +} +else +{ +lean_object* x_192; lean_object* x_193; +if (lean_is_scalar(x_182)) { + x_192 = lean_alloc_ctor(1, 1, 0); +} else { + x_192 = x_182; +} +lean_ctor_set(x_192, 0, x_29); +x_193 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_193, 0, x_163); +lean_ctor_set(x_193, 1, x_164); +lean_ctor_set(x_193, 2, x_165); +lean_ctor_set(x_193, 3, x_169); +lean_ctor_set(x_193, 4, x_170); +lean_ctor_set(x_193, 5, x_171); +lean_ctor_set(x_193, 6, x_172); +lean_ctor_set(x_193, 7, x_178); +lean_ctor_set(x_193, 8, x_192); +lean_ctor_set_uint8(x_193, sizeof(void*)*9, x_166); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 1, x_167); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 2, x_168); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 3, x_173); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 4, x_174); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 5, x_175); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 6, x_176); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 7, x_177); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 8, x_179); +lean_ctor_set_uint8(x_193, sizeof(void*)*9 + 9, x_180); +return x_193; +} +} +else +{ +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; uint8_t x_206; +x_194 = lean_ctor_get(x_181, 0); +lean_inc(x_194); +lean_dec(x_181); +x_195 = lean_box(0); +x_196 = lean_unsigned_to_nat(0u); +x_197 = l_Lean_Syntax_formatStxAux(x_195, x_186, x_196, x_194); +x_198 = l_Std_Format_defWidth; +x_199 = lean_format_pretty(x_197, x_198, x_196, x_196); +x_200 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_201 = lean_string_append(x_200, x_199); +lean_dec(x_199); +x_202 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_203 = lean_string_append(x_201, x_202); +x_204 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_204, 0, x_184); +x_205 = lean_dbg_trace(x_203, x_204); +x_206 = lean_unbox(x_205); +lean_dec(x_205); +if (x_206 == 0) +{ +lean_object* x_207; +lean_dec(x_182); +lean_dec(x_29); +x_207 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_207, 0, x_163); +lean_ctor_set(x_207, 1, x_164); +lean_ctor_set(x_207, 2, x_165); +lean_ctor_set(x_207, 3, x_169); +lean_ctor_set(x_207, 4, x_170); +lean_ctor_set(x_207, 5, x_171); +lean_ctor_set(x_207, 6, x_172); +lean_ctor_set(x_207, 7, x_178); +lean_ctor_set(x_207, 8, x_195); +lean_ctor_set_uint8(x_207, sizeof(void*)*9, x_166); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 1, x_167); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 2, x_168); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 3, x_173); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 4, x_174); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 5, x_175); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 6, x_176); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 7, x_177); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 8, x_179); +lean_ctor_set_uint8(x_207, sizeof(void*)*9 + 9, x_180); +return x_207; +} +else +{ +lean_object* x_208; lean_object* x_209; +if (lean_is_scalar(x_182)) { + x_208 = lean_alloc_ctor(1, 1, 0); +} else { + x_208 = x_182; +} +lean_ctor_set(x_208, 0, x_29); +x_209 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_209, 0, x_163); +lean_ctor_set(x_209, 1, x_164); +lean_ctor_set(x_209, 2, x_165); +lean_ctor_set(x_209, 3, x_169); +lean_ctor_set(x_209, 4, x_170); +lean_ctor_set(x_209, 5, x_171); +lean_ctor_set(x_209, 6, x_172); +lean_ctor_set(x_209, 7, x_178); +lean_ctor_set(x_209, 8, x_208); +lean_ctor_set_uint8(x_209, sizeof(void*)*9, x_166); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 1, x_167); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 2, x_168); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 3, x_173); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 4, x_174); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 5, x_175); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 6, x_176); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 7, x_177); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 8, x_179); +lean_ctor_set_uint8(x_209, sizeof(void*)*9 + 9, x_180); +return x_209; +} +} +} +} +} +} +else +{ +lean_object* x_210; lean_object* x_211; +x_210 = lean_ctor_get(x_4, 0); +lean_inc(x_210); +lean_dec(x_4); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +if (lean_obj_tag(x_211) == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; uint8_t x_216; uint8_t x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; uint8_t x_226; lean_object* x_227; uint8_t x_228; uint8_t x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; +x_212 = lean_ctor_get(x_3, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_3, 1); +lean_inc(x_213); +x_214 = lean_ctor_get(x_3, 2); +lean_inc(x_214); +x_215 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_216 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_217 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_218 = lean_ctor_get(x_3, 3); +lean_inc(x_218); +x_219 = lean_ctor_get(x_3, 4); +lean_inc(x_219); +x_220 = lean_ctor_get(x_3, 5); +lean_inc(x_220); +x_221 = lean_ctor_get(x_3, 6); +lean_inc(x_221); +x_222 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_223 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_224 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_225 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_226 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_227 = lean_ctor_get(x_3, 7); +lean_inc(x_227); +x_228 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_229 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_230 = x_3; +} else { + lean_dec_ref(x_3); + x_230 = lean_box(0); +} +x_231 = lean_box(0); +x_232 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_231); +if (x_232 == 0) +{ +lean_object* x_233; lean_object* x_234; +lean_dec(x_210); +x_233 = lean_box(0); +if (lean_is_scalar(x_230)) { + x_234 = lean_alloc_ctor(0, 9, 10); +} else { + x_234 = x_230; +} +lean_ctor_set(x_234, 0, x_212); +lean_ctor_set(x_234, 1, x_213); +lean_ctor_set(x_234, 2, x_214); +lean_ctor_set(x_234, 3, x_218); +lean_ctor_set(x_234, 4, x_219); +lean_ctor_set(x_234, 5, x_220); +lean_ctor_set(x_234, 6, x_221); +lean_ctor_set(x_234, 7, x_227); +lean_ctor_set(x_234, 8, x_233); +lean_ctor_set_uint8(x_234, sizeof(void*)*9, x_215); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 1, x_216); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 2, x_217); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 3, x_222); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 4, x_223); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 5, x_224); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 6, x_225); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 7, x_226); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 8, x_228); +lean_ctor_set_uint8(x_234, sizeof(void*)*9 + 9, x_229); +return x_234; +} +else +{ +lean_object* x_235; lean_object* x_236; +x_235 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_235, 0, x_210); +if (lean_is_scalar(x_230)) { + x_236 = lean_alloc_ctor(0, 9, 10); +} else { + x_236 = x_230; +} +lean_ctor_set(x_236, 0, x_212); +lean_ctor_set(x_236, 1, x_213); +lean_ctor_set(x_236, 2, x_214); +lean_ctor_set(x_236, 3, x_218); +lean_ctor_set(x_236, 4, x_219); +lean_ctor_set(x_236, 5, x_220); +lean_ctor_set(x_236, 6, x_221); +lean_ctor_set(x_236, 7, x_227); +lean_ctor_set(x_236, 8, x_235); +lean_ctor_set_uint8(x_236, sizeof(void*)*9, x_215); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 1, x_216); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 2, x_217); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 3, x_222); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 4, x_223); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 5, x_224); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 6, x_225); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 7, x_226); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 8, x_228); +lean_ctor_set_uint8(x_236, sizeof(void*)*9 + 9, x_229); +return x_236; +} +} +else +{ +if (x_1 == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; uint8_t x_242; uint8_t 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; uint8_t x_250; uint8_t x_251; uint8_t x_252; lean_object* x_253; uint8_t x_254; uint8_t x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + x_237 = x_211; +} else { + lean_dec_ref(x_211); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_3, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_3, 1); +lean_inc(x_239); +x_240 = lean_ctor_get(x_3, 2); +lean_inc(x_240); +x_241 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_242 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_243 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_244 = lean_ctor_get(x_3, 3); +lean_inc(x_244); +x_245 = lean_ctor_get(x_3, 4); +lean_inc(x_245); +x_246 = lean_ctor_get(x_3, 5); +lean_inc(x_246); +x_247 = lean_ctor_get(x_3, 6); +lean_inc(x_247); +x_248 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_249 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_250 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_251 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_252 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_253 = lean_ctor_get(x_3, 7); +lean_inc(x_253); +x_254 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_255 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_256 = x_3; +} else { + lean_dec_ref(x_3); + x_256 = lean_box(0); +} +x_257 = lean_box(0); +x_258 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_257); +if (x_258 == 0) +{ +lean_object* x_259; lean_object* x_260; +lean_dec(x_237); +lean_dec(x_210); +x_259 = lean_box(0); +if (lean_is_scalar(x_256)) { + x_260 = lean_alloc_ctor(0, 9, 10); +} else { + x_260 = x_256; +} +lean_ctor_set(x_260, 0, x_238); +lean_ctor_set(x_260, 1, x_239); +lean_ctor_set(x_260, 2, x_240); +lean_ctor_set(x_260, 3, x_244); +lean_ctor_set(x_260, 4, x_245); +lean_ctor_set(x_260, 5, x_246); +lean_ctor_set(x_260, 6, x_247); +lean_ctor_set(x_260, 7, x_253); +lean_ctor_set(x_260, 8, x_259); +lean_ctor_set_uint8(x_260, sizeof(void*)*9, x_241); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 1, x_242); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 2, x_243); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 3, x_248); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 4, x_249); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 5, x_250); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 6, x_251); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 7, x_252); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 8, x_254); +lean_ctor_set_uint8(x_260, sizeof(void*)*9 + 9, x_255); +return x_260; +} +else +{ +lean_object* x_261; lean_object* x_262; +if (lean_is_scalar(x_237)) { + x_261 = lean_alloc_ctor(1, 1, 0); +} else { + x_261 = x_237; +} +lean_ctor_set(x_261, 0, x_210); +if (lean_is_scalar(x_256)) { + x_262 = lean_alloc_ctor(0, 9, 10); +} else { + x_262 = x_256; +} +lean_ctor_set(x_262, 0, x_238); +lean_ctor_set(x_262, 1, x_239); +lean_ctor_set(x_262, 2, x_240); +lean_ctor_set(x_262, 3, x_244); +lean_ctor_set(x_262, 4, x_245); +lean_ctor_set(x_262, 5, x_246); +lean_ctor_set(x_262, 6, x_247); +lean_ctor_set(x_262, 7, x_253); +lean_ctor_set(x_262, 8, x_261); +lean_ctor_set_uint8(x_262, sizeof(void*)*9, x_241); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 1, x_242); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 2, x_243); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 3, x_248); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 4, x_249); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 5, x_250); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 6, x_251); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 7, x_252); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 8, x_254); +lean_ctor_set_uint8(x_262, sizeof(void*)*9 + 9, x_255); +return x_262; +} +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; uint8_t x_267; uint8_t x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; uint8_t x_274; uint8_t x_275; uint8_t x_276; uint8_t x_277; lean_object* x_278; uint8_t x_279; uint8_t 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; uint8_t x_287; uint8_t x_288; +x_263 = lean_ctor_get(x_3, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_3, 1); +lean_inc(x_264); +x_265 = lean_ctor_get(x_3, 2); +lean_inc(x_265); +x_266 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_267 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_268 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_269 = lean_ctor_get(x_3, 3); +lean_inc(x_269); +x_270 = lean_ctor_get(x_3, 4); +lean_inc(x_270); +x_271 = lean_ctor_get(x_3, 5); +lean_inc(x_271); +x_272 = lean_ctor_get(x_3, 6); +lean_inc(x_272); +x_273 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_274 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_275 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_276 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_277 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_278 = lean_ctor_get(x_3, 7); +lean_inc(x_278); +x_279 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_280 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_281 = x_3; +} else { + lean_dec_ref(x_3); + x_281 = lean_box(0); +} +x_282 = lean_ctor_get(x_211, 0); +lean_inc(x_282); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + x_283 = x_211; +} else { + lean_dec_ref(x_211); + x_283 = lean_box(0); +} +x_284 = lean_box(x_1); +x_285 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_285, 0, x_284); +x_286 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_287 = 0; +x_288 = l_Lean_KVMap_getBool(x_2, x_286, x_287); +if (x_288 == 0) +{ +lean_object* x_289; uint8_t x_290; +lean_dec(x_285); +lean_dec(x_282); +x_289 = lean_box(0); +x_290 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_289); +if (x_290 == 0) +{ +lean_object* x_291; lean_object* x_292; +lean_dec(x_283); +lean_dec(x_210); +x_291 = lean_box(0); +if (lean_is_scalar(x_281)) { + x_292 = lean_alloc_ctor(0, 9, 10); +} else { + x_292 = x_281; +} +lean_ctor_set(x_292, 0, x_263); +lean_ctor_set(x_292, 1, x_264); +lean_ctor_set(x_292, 2, x_265); +lean_ctor_set(x_292, 3, x_269); +lean_ctor_set(x_292, 4, x_270); +lean_ctor_set(x_292, 5, x_271); +lean_ctor_set(x_292, 6, x_272); +lean_ctor_set(x_292, 7, x_278); +lean_ctor_set(x_292, 8, x_291); +lean_ctor_set_uint8(x_292, sizeof(void*)*9, x_266); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 1, x_267); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 2, x_268); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 3, x_273); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 4, x_274); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 5, x_275); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 6, x_276); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 7, x_277); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 8, x_279); +lean_ctor_set_uint8(x_292, sizeof(void*)*9 + 9, x_280); +return x_292; +} +else +{ +lean_object* x_293; lean_object* x_294; +if (lean_is_scalar(x_283)) { + x_293 = lean_alloc_ctor(1, 1, 0); +} else { + x_293 = x_283; +} +lean_ctor_set(x_293, 0, x_210); +if (lean_is_scalar(x_281)) { + x_294 = lean_alloc_ctor(0, 9, 10); +} else { + x_294 = x_281; +} +lean_ctor_set(x_294, 0, x_263); +lean_ctor_set(x_294, 1, x_264); +lean_ctor_set(x_294, 2, x_265); +lean_ctor_set(x_294, 3, x_269); +lean_ctor_set(x_294, 4, x_270); +lean_ctor_set(x_294, 5, x_271); +lean_ctor_set(x_294, 6, x_272); +lean_ctor_set(x_294, 7, x_278); +lean_ctor_set(x_294, 8, x_293); +lean_ctor_set_uint8(x_294, sizeof(void*)*9, x_266); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 1, x_267); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 2, x_268); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 3, x_273); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 4, x_274); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 5, x_275); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 6, x_276); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 7, x_277); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 8, x_279); +lean_ctor_set_uint8(x_294, sizeof(void*)*9 + 9, x_280); +return x_294; +} +} +else +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; +x_295 = lean_ctor_get(x_282, 0); +lean_inc(x_295); +lean_dec(x_282); +x_296 = lean_box(0); +x_297 = lean_unsigned_to_nat(0u); +x_298 = l_Lean_Syntax_formatStxAux(x_296, x_287, x_297, x_295); +x_299 = l_Std_Format_defWidth; +x_300 = lean_format_pretty(x_298, x_299, x_297, x_297); +x_301 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_302 = lean_string_append(x_301, x_300); +lean_dec(x_300); +x_303 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_304 = lean_string_append(x_302, x_303); +x_305 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_305, 0, x_285); +x_306 = lean_dbg_trace(x_304, x_305); +x_307 = lean_unbox(x_306); +lean_dec(x_306); +if (x_307 == 0) +{ +lean_object* x_308; +lean_dec(x_283); +lean_dec(x_210); +if (lean_is_scalar(x_281)) { + x_308 = lean_alloc_ctor(0, 9, 10); +} else { + x_308 = x_281; +} +lean_ctor_set(x_308, 0, x_263); +lean_ctor_set(x_308, 1, x_264); +lean_ctor_set(x_308, 2, x_265); +lean_ctor_set(x_308, 3, x_269); +lean_ctor_set(x_308, 4, x_270); +lean_ctor_set(x_308, 5, x_271); +lean_ctor_set(x_308, 6, x_272); +lean_ctor_set(x_308, 7, x_278); +lean_ctor_set(x_308, 8, x_296); +lean_ctor_set_uint8(x_308, sizeof(void*)*9, x_266); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 1, x_267); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 2, x_268); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 3, x_273); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 4, x_274); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 5, x_275); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 6, x_276); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 7, x_277); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 8, x_279); +lean_ctor_set_uint8(x_308, sizeof(void*)*9 + 9, x_280); +return x_308; +} +else +{ +lean_object* x_309; lean_object* x_310; +if (lean_is_scalar(x_283)) { + x_309 = lean_alloc_ctor(1, 1, 0); +} else { + x_309 = x_283; +} +lean_ctor_set(x_309, 0, x_210); +if (lean_is_scalar(x_281)) { + x_310 = lean_alloc_ctor(0, 9, 10); +} else { + x_310 = x_281; +} +lean_ctor_set(x_310, 0, x_263); +lean_ctor_set(x_310, 1, x_264); +lean_ctor_set(x_310, 2, x_265); +lean_ctor_set(x_310, 3, x_269); +lean_ctor_set(x_310, 4, x_270); +lean_ctor_set(x_310, 5, x_271); +lean_ctor_set(x_310, 6, x_272); +lean_ctor_set(x_310, 7, x_278); +lean_ctor_set(x_310, 8, x_309); +lean_ctor_set_uint8(x_310, sizeof(void*)*9, x_266); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 1, x_267); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 2, x_268); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 3, x_273); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 4, x_274); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 5, x_275); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 6, x_276); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 7, x_277); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 8, x_279); +lean_ctor_set_uint8(x_310, sizeof(void*)*9 + 9, x_280); +return x_310; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_box(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___boxed), 3, 2); +lean_closure_set(x_6, 0, x_5); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_3(x_2, lean_box(0), x_6, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_box(x_5); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4___boxed), 4, 3); +lean_closure_set(x_9, 0, x_8); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_6); +x_10 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_3, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___boxed), 6, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_3, x_2); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3(x_4, x_2, x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__4(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticIncrementality___rarg___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_5); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg(x_1, x_2, x_3, x_4, x_7, x_6); +lean_dec(x_4); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_3, 8); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 8); +lean_dec(x_6); +x_7 = lean_box(0); +lean_ctor_set(x_3, 8, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_ctor_get(x_3, 1); +x_10 = lean_ctor_get(x_3, 2); +x_11 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_12 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_14 = lean_ctor_get(x_3, 3); +x_15 = lean_ctor_get(x_3, 4); +x_16 = lean_ctor_get(x_3, 5); +x_17 = lean_ctor_get(x_3, 6); +x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_23 = lean_ctor_get(x_3, 7); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_23); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_3); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_27, 0, x_8); +lean_ctor_set(x_27, 1, x_9); +lean_ctor_set(x_27, 2, x_10); +lean_ctor_set(x_27, 3, x_14); +lean_ctor_set(x_27, 4, x_15); +lean_ctor_set(x_27, 5, x_16); +lean_ctor_set(x_27, 6, x_17); +lean_ctor_set(x_27, 7, x_23); +lean_ctor_set(x_27, 8, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*9, x_11); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 1, x_12); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 2, x_13); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 3, x_18); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 4, x_19); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 5, x_20); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 6, x_21); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 7, x_22); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 8, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 9, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_4); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_3); +if (x_31 == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_3, 8); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_29); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_29, 0); +lean_dec(x_34); +x_35 = lean_box(0); +lean_ctor_set(x_29, 0, x_35); +return x_3; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_dec(x_29); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +lean_ctor_set(x_4, 0, x_38); +return x_3; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_39 = lean_ctor_get(x_3, 0); +x_40 = lean_ctor_get(x_3, 1); +x_41 = lean_ctor_get(x_3, 2); +x_42 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_43 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_45 = lean_ctor_get(x_3, 3); +x_46 = lean_ctor_get(x_3, 4); +x_47 = lean_ctor_get(x_3, 5); +x_48 = lean_ctor_get(x_3, 6); +x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_53 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_54 = lean_ctor_get(x_3, 7); +x_55 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_56 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_54); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_3); +x_57 = lean_ctor_get(x_29, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_58 = x_29; +} else { + lean_dec_ref(x_29); + x_58 = lean_box(0); +} +x_59 = lean_box(0); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set(x_4, 0, x_60); +x_61 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_61, 0, x_39); +lean_ctor_set(x_61, 1, x_40); +lean_ctor_set(x_61, 2, x_41); +lean_ctor_set(x_61, 3, x_45); +lean_ctor_set(x_61, 4, x_46); +lean_ctor_set(x_61, 5, x_47); +lean_ctor_set(x_61, 6, x_48); +lean_ctor_set(x_61, 7, x_54); +lean_ctor_set(x_61, 8, x_4); +lean_ctor_set_uint8(x_61, sizeof(void*)*9, x_42); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 1, x_43); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 2, x_44); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 3, x_49); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 4, x_50); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 5, x_51); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 6, x_52); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 7, x_53); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 8, x_55); +lean_ctor_set_uint8(x_61, sizeof(void*)*9 + 9, x_56); +return x_61; +} +} +else +{ +if (x_1 == 0) +{ +uint8_t x_62; +x_62 = !lean_is_exclusive(x_3); +if (x_62 == 0) +{ +lean_object* x_63; uint8_t x_64; +x_63 = lean_ctor_get(x_3, 8); +lean_dec(x_63); +x_64 = !lean_is_exclusive(x_29); +if (x_64 == 0) +{ +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_29, 0); +lean_dec(x_65); +x_66 = !lean_is_exclusive(x_30); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_30, 0); +x_68 = lean_box(0); +x_69 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_68); +if (x_69 == 0) +{ +lean_object* x_70; +lean_dec(x_67); +lean_free_object(x_4); +x_70 = lean_box(0); +lean_ctor_set(x_29, 0, x_70); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +else +{ +return x_3; +} +} +else +{ +lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_71 = lean_ctor_get(x_30, 0); +lean_inc(x_71); +lean_dec(x_30); +x_72 = lean_box(0); +x_73 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; +lean_dec(x_71); +lean_free_object(x_4); +x_74 = lean_box(0); +lean_ctor_set(x_29, 0, x_74); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_29); +lean_ctor_set(x_3, 8, x_75); +return x_3; +} +else +{ +lean_object* x_76; +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_71); +lean_ctor_set(x_29, 0, x_76); +return x_3; +} +} +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_77 = lean_ctor_get(x_29, 1); +lean_inc(x_77); +lean_dec(x_29); +x_78 = lean_ctor_get(x_30, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + x_79 = x_30; +} else { + lean_dec_ref(x_30); + x_79 = lean_box(0); +} +x_80 = lean_box(0); +x_81 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_80); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_78); +lean_free_object(x_4); +x_82 = lean_box(0); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_77); +if (lean_is_scalar(x_79)) { + x_84 = lean_alloc_ctor(1, 1, 0); +} else { + x_84 = x_79; +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_3, 8, x_84); +return x_3; +} +else +{ +lean_object* x_85; lean_object* x_86; +if (lean_is_scalar(x_79)) { + x_85 = lean_alloc_ctor(1, 1, 0); +} else { + x_85 = x_79; +} +lean_ctor_set(x_85, 0, x_78); +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_4, 0, x_86); +return x_3; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_87 = lean_ctor_get(x_3, 0); +x_88 = lean_ctor_get(x_3, 1); +x_89 = lean_ctor_get(x_3, 2); +x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_92 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_93 = lean_ctor_get(x_3, 3); +x_94 = lean_ctor_get(x_3, 4); +x_95 = lean_ctor_get(x_3, 5); +x_96 = lean_ctor_get(x_3, 6); +x_97 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_98 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_99 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_100 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_101 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_102 = lean_ctor_get(x_3, 7); +x_103 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_104 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_102); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_3); +x_105 = lean_ctor_get(x_29, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_106 = x_29; +} else { + lean_dec_ref(x_29); + x_106 = lean_box(0); +} +x_107 = lean_ctor_get(x_30, 0); +lean_inc(x_107); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + x_108 = x_30; +} else { + lean_dec_ref(x_30); + x_108 = lean_box(0); +} +x_109 = lean_box(0); +x_110 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_107); +lean_free_object(x_4); +x_111 = lean_box(0); +if (lean_is_scalar(x_106)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_106; +} +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +if (lean_is_scalar(x_108)) { + x_113 = lean_alloc_ctor(1, 1, 0); +} else { + x_113 = x_108; +} +lean_ctor_set(x_113, 0, x_112); +x_114 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_114, 0, x_87); +lean_ctor_set(x_114, 1, x_88); +lean_ctor_set(x_114, 2, x_89); +lean_ctor_set(x_114, 3, x_93); +lean_ctor_set(x_114, 4, x_94); +lean_ctor_set(x_114, 5, x_95); +lean_ctor_set(x_114, 6, x_96); +lean_ctor_set(x_114, 7, x_102); +lean_ctor_set(x_114, 8, x_113); +lean_ctor_set_uint8(x_114, sizeof(void*)*9, x_90); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 1, x_91); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 2, x_92); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 3, x_97); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 4, x_98); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 5, x_99); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 6, x_100); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 7, x_101); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 8, x_103); +lean_ctor_set_uint8(x_114, sizeof(void*)*9 + 9, x_104); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +if (lean_is_scalar(x_108)) { + x_115 = lean_alloc_ctor(1, 1, 0); +} else { + x_115 = x_108; +} +lean_ctor_set(x_115, 0, x_107); +if (lean_is_scalar(x_106)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_106; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_105); +lean_ctor_set(x_4, 0, x_116); +x_117 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_117, 0, x_87); +lean_ctor_set(x_117, 1, x_88); +lean_ctor_set(x_117, 2, x_89); +lean_ctor_set(x_117, 3, x_93); +lean_ctor_set(x_117, 4, x_94); +lean_ctor_set(x_117, 5, x_95); +lean_ctor_set(x_117, 6, x_96); +lean_ctor_set(x_117, 7, x_102); +lean_ctor_set(x_117, 8, x_4); +lean_ctor_set_uint8(x_117, sizeof(void*)*9, x_90); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 1, x_91); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 2, x_92); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 3, x_97); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 4, x_98); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 5, x_99); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 6, x_100); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 7, x_101); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 8, x_103); +lean_ctor_set_uint8(x_117, sizeof(void*)*9 + 9, x_104); +return x_117; +} +} +} +else +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_3); +if (x_118 == 0) +{ +lean_object* x_119; uint8_t x_120; +x_119 = lean_ctor_get(x_3, 8); +lean_dec(x_119); +x_120 = !lean_is_exclusive(x_29); +if (x_120 == 0) +{ +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_29, 0); +lean_dec(x_121); +x_122 = !lean_is_exclusive(x_30); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; +x_123 = lean_ctor_get(x_30, 0); +x_124 = lean_box(x_1); +x_125 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_125, 0, x_124); +x_126 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_127 = 0; +x_128 = l_Lean_KVMap_getBool(x_2, x_126, x_127); +if (x_128 == 0) +{ +lean_object* x_129; uint8_t x_130; +lean_dec(x_125); +x_129 = lean_box(0); +x_130 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_129); +if (x_130 == 0) +{ +lean_object* x_131; +lean_dec(x_123); +lean_free_object(x_4); +x_131 = lean_box(0); +lean_ctor_set(x_29, 0, x_131); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +else +{ +return x_3; +} +} +else +{ +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; uint8_t x_144; +x_132 = lean_ctor_get(x_123, 0); +lean_inc(x_132); +x_133 = lean_box(0); +x_134 = lean_unsigned_to_nat(0u); +x_135 = l_Lean_Syntax_formatStxAux(x_133, x_127, x_134, x_132); +x_136 = l_Std_Format_defWidth; +x_137 = lean_format_pretty(x_135, x_136, x_134, x_134); +x_138 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_139 = lean_string_append(x_138, x_137); +lean_dec(x_137); +x_140 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_141 = lean_string_append(x_139, x_140); +x_142 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_142, 0, x_125); +x_143 = lean_dbg_trace(x_141, x_142); +x_144 = lean_unbox(x_143); +lean_dec(x_143); +if (x_144 == 0) +{ +lean_dec(x_123); +lean_free_object(x_4); +lean_ctor_set(x_29, 0, x_133); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_3, 8, x_30); +return x_3; +} +else +{ +return x_3; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; uint8_t x_150; +x_145 = lean_ctor_get(x_30, 0); +lean_inc(x_145); +lean_dec(x_30); +x_146 = lean_box(x_1); +x_147 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_147, 0, x_146); +x_148 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_149 = 0; +x_150 = l_Lean_KVMap_getBool(x_2, x_148, x_149); +if (x_150 == 0) +{ +lean_object* x_151; uint8_t x_152; +lean_dec(x_147); +x_151 = lean_box(0); +x_152 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_151); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_145); +lean_free_object(x_4); +x_153 = lean_box(0); +lean_ctor_set(x_29, 0, x_153); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_29); +lean_ctor_set(x_3, 8, x_154); +return x_3; +} +else +{ +lean_object* x_155; +x_155 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_155, 0, x_145); +lean_ctor_set(x_29, 0, x_155); +return x_3; +} +} +else +{ +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; uint8_t x_168; +x_156 = lean_ctor_get(x_145, 0); +lean_inc(x_156); +x_157 = lean_box(0); +x_158 = lean_unsigned_to_nat(0u); +x_159 = l_Lean_Syntax_formatStxAux(x_157, x_149, x_158, x_156); +x_160 = l_Std_Format_defWidth; +x_161 = lean_format_pretty(x_159, x_160, x_158, x_158); +x_162 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_163 = lean_string_append(x_162, x_161); +lean_dec(x_161); +x_164 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_165 = lean_string_append(x_163, x_164); +x_166 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_166, 0, x_147); +x_167 = lean_dbg_trace(x_165, x_166); +x_168 = lean_unbox(x_167); +lean_dec(x_167); +if (x_168 == 0) +{ +lean_object* x_169; +lean_dec(x_145); +lean_free_object(x_4); +lean_ctor_set(x_29, 0, x_157); +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_29); +lean_ctor_set(x_3, 8, x_169); +return x_3; +} +else +{ +lean_object* x_170; +x_170 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_170, 0, x_145); +lean_ctor_set(x_29, 0, x_170); +return x_3; +} +} +} +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; +x_171 = lean_ctor_get(x_29, 1); +lean_inc(x_171); +lean_dec(x_29); +x_172 = lean_ctor_get(x_30, 0); +lean_inc(x_172); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + x_173 = x_30; +} else { + lean_dec_ref(x_30); + x_173 = lean_box(0); +} +x_174 = lean_box(x_1); +x_175 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_175, 0, x_174); +x_176 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_177 = 0; +x_178 = l_Lean_KVMap_getBool(x_2, x_176, x_177); +if (x_178 == 0) +{ +lean_object* x_179; uint8_t x_180; +lean_dec(x_175); +x_179 = lean_box(0); +x_180 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_179); +if (x_180 == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_172); +lean_free_object(x_4); +x_181 = lean_box(0); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_171); +if (lean_is_scalar(x_173)) { + x_183 = lean_alloc_ctor(1, 1, 0); +} else { + x_183 = x_173; +} +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_3, 8, x_183); +return x_3; +} +else +{ +lean_object* x_184; lean_object* x_185; +if (lean_is_scalar(x_173)) { + x_184 = lean_alloc_ctor(1, 1, 0); +} else { + x_184 = x_173; +} +lean_ctor_set(x_184, 0, x_172); +x_185 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_171); +lean_ctor_set(x_4, 0, x_185); +return x_3; +} +} +else +{ +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; uint8_t x_198; +x_186 = lean_ctor_get(x_172, 0); +lean_inc(x_186); +x_187 = lean_box(0); +x_188 = lean_unsigned_to_nat(0u); +x_189 = l_Lean_Syntax_formatStxAux(x_187, x_177, x_188, x_186); +x_190 = l_Std_Format_defWidth; +x_191 = lean_format_pretty(x_189, x_190, x_188, x_188); +x_192 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_193 = lean_string_append(x_192, x_191); +lean_dec(x_191); +x_194 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_195 = lean_string_append(x_193, x_194); +x_196 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_196, 0, x_175); +x_197 = lean_dbg_trace(x_195, x_196); +x_198 = lean_unbox(x_197); +lean_dec(x_197); +if (x_198 == 0) +{ +lean_object* x_199; lean_object* x_200; +lean_dec(x_172); +lean_free_object(x_4); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_187); +lean_ctor_set(x_199, 1, x_171); +if (lean_is_scalar(x_173)) { + x_200 = lean_alloc_ctor(1, 1, 0); +} else { + x_200 = x_173; +} +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_3, 8, x_200); +return x_3; +} +else +{ +lean_object* x_201; lean_object* x_202; +if (lean_is_scalar(x_173)) { + x_201 = lean_alloc_ctor(1, 1, 0); +} else { + x_201 = x_173; +} +lean_ctor_set(x_201, 0, x_172); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_171); +lean_ctor_set(x_4, 0, x_202); +return x_3; +} +} +} +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; uint8_t x_216; uint8_t x_217; lean_object* x_218; uint8_t 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_object* x_227; uint8_t x_228; uint8_t x_229; +x_203 = lean_ctor_get(x_3, 0); +x_204 = lean_ctor_get(x_3, 1); +x_205 = lean_ctor_get(x_3, 2); +x_206 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_207 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_208 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_209 = lean_ctor_get(x_3, 3); +x_210 = lean_ctor_get(x_3, 4); +x_211 = lean_ctor_get(x_3, 5); +x_212 = lean_ctor_get(x_3, 6); +x_213 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_214 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_215 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_216 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_217 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_218 = lean_ctor_get(x_3, 7); +x_219 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_220 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_218); +lean_inc(x_212); +lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_205); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_3); +x_221 = lean_ctor_get(x_29, 1); +lean_inc(x_221); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_222 = x_29; +} else { + lean_dec_ref(x_29); + x_222 = lean_box(0); +} +x_223 = lean_ctor_get(x_30, 0); +lean_inc(x_223); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + x_224 = x_30; +} else { + lean_dec_ref(x_30); + x_224 = lean_box(0); +} +x_225 = lean_box(x_1); +x_226 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_226, 0, x_225); +x_227 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_228 = 0; +x_229 = l_Lean_KVMap_getBool(x_2, x_227, x_228); +if (x_229 == 0) +{ +lean_object* x_230; uint8_t x_231; +lean_dec(x_226); +x_230 = lean_box(0); +x_231 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_230); +if (x_231 == 0) +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_223); +lean_free_object(x_4); +x_232 = lean_box(0); +if (lean_is_scalar(x_222)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_222; +} +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_221); +if (lean_is_scalar(x_224)) { + x_234 = lean_alloc_ctor(1, 1, 0); +} else { + x_234 = x_224; +} +lean_ctor_set(x_234, 0, x_233); +x_235 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_235, 0, x_203); +lean_ctor_set(x_235, 1, x_204); +lean_ctor_set(x_235, 2, x_205); +lean_ctor_set(x_235, 3, x_209); +lean_ctor_set(x_235, 4, x_210); +lean_ctor_set(x_235, 5, x_211); +lean_ctor_set(x_235, 6, x_212); +lean_ctor_set(x_235, 7, x_218); +lean_ctor_set(x_235, 8, x_234); +lean_ctor_set_uint8(x_235, sizeof(void*)*9, x_206); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 1, x_207); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 2, x_208); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 3, x_213); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 4, x_214); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 5, x_215); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 6, x_216); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 7, x_217); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 8, x_219); +lean_ctor_set_uint8(x_235, sizeof(void*)*9 + 9, x_220); +return x_235; +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +if (lean_is_scalar(x_224)) { + x_236 = lean_alloc_ctor(1, 1, 0); +} else { + x_236 = x_224; +} +lean_ctor_set(x_236, 0, x_223); +if (lean_is_scalar(x_222)) { + x_237 = lean_alloc_ctor(0, 2, 0); +} else { + x_237 = x_222; +} +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_221); +lean_ctor_set(x_4, 0, x_237); +x_238 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_238, 0, x_203); +lean_ctor_set(x_238, 1, x_204); +lean_ctor_set(x_238, 2, x_205); +lean_ctor_set(x_238, 3, x_209); +lean_ctor_set(x_238, 4, x_210); +lean_ctor_set(x_238, 5, x_211); +lean_ctor_set(x_238, 6, x_212); +lean_ctor_set(x_238, 7, x_218); +lean_ctor_set(x_238, 8, x_4); +lean_ctor_set_uint8(x_238, sizeof(void*)*9, x_206); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 1, x_207); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 2, x_208); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 3, x_213); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 4, x_214); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 5, x_215); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 6, x_216); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 7, x_217); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 8, x_219); +lean_ctor_set_uint8(x_238, sizeof(void*)*9 + 9, x_220); +return x_238; +} +} +else +{ +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; lean_object* x_249; lean_object* x_250; uint8_t x_251; +x_239 = lean_ctor_get(x_223, 0); +lean_inc(x_239); +x_240 = lean_box(0); +x_241 = lean_unsigned_to_nat(0u); +x_242 = l_Lean_Syntax_formatStxAux(x_240, x_228, x_241, x_239); +x_243 = l_Std_Format_defWidth; +x_244 = lean_format_pretty(x_242, x_243, x_241, x_241); +x_245 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_246 = lean_string_append(x_245, x_244); +lean_dec(x_244); +x_247 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_248 = lean_string_append(x_246, x_247); +x_249 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_249, 0, x_226); +x_250 = lean_dbg_trace(x_248, x_249); +x_251 = lean_unbox(x_250); +lean_dec(x_250); +if (x_251 == 0) +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_223); +lean_free_object(x_4); +if (lean_is_scalar(x_222)) { + x_252 = lean_alloc_ctor(0, 2, 0); +} else { + x_252 = x_222; +} +lean_ctor_set(x_252, 0, x_240); +lean_ctor_set(x_252, 1, x_221); +if (lean_is_scalar(x_224)) { + x_253 = lean_alloc_ctor(1, 1, 0); +} else { + x_253 = x_224; +} +lean_ctor_set(x_253, 0, x_252); +x_254 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_254, 0, x_203); +lean_ctor_set(x_254, 1, x_204); +lean_ctor_set(x_254, 2, x_205); +lean_ctor_set(x_254, 3, x_209); +lean_ctor_set(x_254, 4, x_210); +lean_ctor_set(x_254, 5, x_211); +lean_ctor_set(x_254, 6, x_212); +lean_ctor_set(x_254, 7, x_218); +lean_ctor_set(x_254, 8, x_253); +lean_ctor_set_uint8(x_254, sizeof(void*)*9, x_206); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 1, x_207); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 2, x_208); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 3, x_213); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 4, x_214); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 5, x_215); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 6, x_216); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 7, x_217); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 8, x_219); +lean_ctor_set_uint8(x_254, sizeof(void*)*9 + 9, x_220); +return x_254; +} +else +{ +lean_object* x_255; lean_object* x_256; lean_object* x_257; +if (lean_is_scalar(x_224)) { + x_255 = lean_alloc_ctor(1, 1, 0); +} else { + x_255 = x_224; +} +lean_ctor_set(x_255, 0, x_223); +if (lean_is_scalar(x_222)) { + x_256 = lean_alloc_ctor(0, 2, 0); +} else { + x_256 = x_222; +} +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_221); +lean_ctor_set(x_4, 0, x_256); +x_257 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_257, 0, x_203); +lean_ctor_set(x_257, 1, x_204); +lean_ctor_set(x_257, 2, x_205); +lean_ctor_set(x_257, 3, x_209); +lean_ctor_set(x_257, 4, x_210); +lean_ctor_set(x_257, 5, x_211); +lean_ctor_set(x_257, 6, x_212); +lean_ctor_set(x_257, 7, x_218); +lean_ctor_set(x_257, 8, x_4); +lean_ctor_set_uint8(x_257, sizeof(void*)*9, x_206); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 1, x_207); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 2, x_208); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 3, x_213); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 4, x_214); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 5, x_215); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 6, x_216); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 7, x_217); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 8, x_219); +lean_ctor_set_uint8(x_257, sizeof(void*)*9 + 9, x_220); +return x_257; +} +} +} +} +} +} +else +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_4, 0); +lean_inc(x_258); +lean_dec(x_4); +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; uint8_t x_271; uint8_t x_272; uint8_t x_273; uint8_t x_274; lean_object* x_275; uint8_t x_276; uint8_t x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_260 = lean_ctor_get(x_3, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_3, 1); +lean_inc(x_261); +x_262 = lean_ctor_get(x_3, 2); +lean_inc(x_262); +x_263 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_264 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_265 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_266 = lean_ctor_get(x_3, 3); +lean_inc(x_266); +x_267 = lean_ctor_get(x_3, 4); +lean_inc(x_267); +x_268 = lean_ctor_get(x_3, 5); +lean_inc(x_268); +x_269 = lean_ctor_get(x_3, 6); +lean_inc(x_269); +x_270 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_271 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_272 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_273 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_274 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_275 = lean_ctor_get(x_3, 7); +lean_inc(x_275); +x_276 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_277 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_278 = x_3; +} else { + lean_dec_ref(x_3); + x_278 = lean_box(0); +} +x_279 = lean_ctor_get(x_258, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_280 = x_258; +} else { + lean_dec_ref(x_258); + x_280 = lean_box(0); +} +x_281 = lean_box(0); +if (lean_is_scalar(x_280)) { + x_282 = lean_alloc_ctor(0, 2, 0); +} else { + x_282 = x_280; +} +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_279); +x_283 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_283, 0, x_282); +if (lean_is_scalar(x_278)) { + x_284 = lean_alloc_ctor(0, 9, 10); +} else { + x_284 = x_278; +} +lean_ctor_set(x_284, 0, x_260); +lean_ctor_set(x_284, 1, x_261); +lean_ctor_set(x_284, 2, x_262); +lean_ctor_set(x_284, 3, x_266); +lean_ctor_set(x_284, 4, x_267); +lean_ctor_set(x_284, 5, x_268); +lean_ctor_set(x_284, 6, x_269); +lean_ctor_set(x_284, 7, x_275); +lean_ctor_set(x_284, 8, x_283); +lean_ctor_set_uint8(x_284, sizeof(void*)*9, x_263); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 1, x_264); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 2, x_265); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 3, x_270); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 4, x_271); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 5, x_272); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 6, x_273); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 7, x_274); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 8, x_276); +lean_ctor_set_uint8(x_284, sizeof(void*)*9 + 9, x_277); +return x_284; +} +else +{ +if (x_1 == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; uint8_t x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; uint8_t x_296; uint8_t x_297; uint8_t x_298; uint8_t x_299; lean_object* x_300; uint8_t 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; uint8_t x_309; +x_285 = lean_ctor_get(x_3, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_3, 1); +lean_inc(x_286); +x_287 = lean_ctor_get(x_3, 2); +lean_inc(x_287); +x_288 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_289 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_290 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_291 = lean_ctor_get(x_3, 3); +lean_inc(x_291); +x_292 = lean_ctor_get(x_3, 4); +lean_inc(x_292); +x_293 = lean_ctor_get(x_3, 5); +lean_inc(x_293); +x_294 = lean_ctor_get(x_3, 6); +lean_inc(x_294); +x_295 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_296 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_297 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_298 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_299 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_300 = lean_ctor_get(x_3, 7); +lean_inc(x_300); +x_301 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_302 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_303 = x_3; +} else { + lean_dec_ref(x_3); + x_303 = lean_box(0); +} +x_304 = lean_ctor_get(x_258, 1); +lean_inc(x_304); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_305 = x_258; +} else { + lean_dec_ref(x_258); + x_305 = lean_box(0); +} +x_306 = lean_ctor_get(x_259, 0); +lean_inc(x_306); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + x_307 = x_259; +} else { + lean_dec_ref(x_259); + x_307 = lean_box(0); +} +x_308 = lean_box(0); +x_309 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_308); +if (x_309 == 0) +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_306); +x_310 = lean_box(0); +if (lean_is_scalar(x_305)) { + x_311 = lean_alloc_ctor(0, 2, 0); +} else { + x_311 = x_305; +} +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_304); +if (lean_is_scalar(x_307)) { + x_312 = lean_alloc_ctor(1, 1, 0); +} else { + x_312 = x_307; +} +lean_ctor_set(x_312, 0, x_311); +if (lean_is_scalar(x_303)) { + x_313 = lean_alloc_ctor(0, 9, 10); +} else { + x_313 = x_303; +} +lean_ctor_set(x_313, 0, x_285); +lean_ctor_set(x_313, 1, x_286); +lean_ctor_set(x_313, 2, x_287); +lean_ctor_set(x_313, 3, x_291); +lean_ctor_set(x_313, 4, x_292); +lean_ctor_set(x_313, 5, x_293); +lean_ctor_set(x_313, 6, x_294); +lean_ctor_set(x_313, 7, x_300); +lean_ctor_set(x_313, 8, x_312); +lean_ctor_set_uint8(x_313, sizeof(void*)*9, x_288); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 1, x_289); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 2, x_290); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 3, x_295); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 4, x_296); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 5, x_297); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 6, x_298); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 7, x_299); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 8, x_301); +lean_ctor_set_uint8(x_313, sizeof(void*)*9 + 9, x_302); +return x_313; +} +else +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +if (lean_is_scalar(x_307)) { + x_314 = lean_alloc_ctor(1, 1, 0); +} else { + x_314 = x_307; +} +lean_ctor_set(x_314, 0, x_306); +if (lean_is_scalar(x_305)) { + x_315 = lean_alloc_ctor(0, 2, 0); +} else { + x_315 = x_305; +} +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_304); +x_316 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_316, 0, x_315); +if (lean_is_scalar(x_303)) { + x_317 = lean_alloc_ctor(0, 9, 10); +} else { + x_317 = x_303; +} +lean_ctor_set(x_317, 0, x_285); +lean_ctor_set(x_317, 1, x_286); +lean_ctor_set(x_317, 2, x_287); +lean_ctor_set(x_317, 3, x_291); +lean_ctor_set(x_317, 4, x_292); +lean_ctor_set(x_317, 5, x_293); +lean_ctor_set(x_317, 6, x_294); +lean_ctor_set(x_317, 7, x_300); +lean_ctor_set(x_317, 8, x_316); +lean_ctor_set_uint8(x_317, sizeof(void*)*9, x_288); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 1, x_289); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 2, x_290); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 3, x_295); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 4, x_296); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 5, x_297); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 6, x_298); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 7, x_299); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 8, x_301); +lean_ctor_set_uint8(x_317, sizeof(void*)*9 + 9, x_302); +return x_317; +} +} +else +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; uint8_t x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; uint8_t x_329; uint8_t x_330; uint8_t x_331; uint8_t x_332; lean_object* x_333; uint8_t x_334; uint8_t x_335; 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; uint8_t x_345; +x_318 = lean_ctor_get(x_3, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_3, 1); +lean_inc(x_319); +x_320 = lean_ctor_get(x_3, 2); +lean_inc(x_320); +x_321 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_322 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_323 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_324 = lean_ctor_get(x_3, 3); +lean_inc(x_324); +x_325 = lean_ctor_get(x_3, 4); +lean_inc(x_325); +x_326 = lean_ctor_get(x_3, 5); +lean_inc(x_326); +x_327 = lean_ctor_get(x_3, 6); +lean_inc(x_327); +x_328 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_329 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_330 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_331 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_332 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_333 = lean_ctor_get(x_3, 7); +lean_inc(x_333); +x_334 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_335 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +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); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + x_336 = x_3; +} else { + lean_dec_ref(x_3); + x_336 = lean_box(0); +} +x_337 = lean_ctor_get(x_258, 1); +lean_inc(x_337); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_338 = x_258; +} else { + lean_dec_ref(x_258); + x_338 = lean_box(0); +} +x_339 = lean_ctor_get(x_259, 0); +lean_inc(x_339); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + x_340 = x_259; +} else { + lean_dec_ref(x_259); + x_340 = lean_box(0); +} +x_341 = lean_box(x_1); +x_342 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_342, 0, x_341); +x_343 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4; +x_344 = 0; +x_345 = l_Lean_KVMap_getBool(x_2, x_343, x_344); +if (x_345 == 0) +{ +lean_object* x_346; uint8_t x_347; +lean_dec(x_342); +x_346 = lean_box(0); +x_347 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__1(x_1, x_346); +if (x_347 == 0) +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_339); +x_348 = lean_box(0); +if (lean_is_scalar(x_338)) { + x_349 = lean_alloc_ctor(0, 2, 0); +} else { + x_349 = x_338; +} +lean_ctor_set(x_349, 0, x_348); +lean_ctor_set(x_349, 1, x_337); +if (lean_is_scalar(x_340)) { + x_350 = lean_alloc_ctor(1, 1, 0); +} else { + x_350 = x_340; +} +lean_ctor_set(x_350, 0, x_349); +if (lean_is_scalar(x_336)) { + x_351 = lean_alloc_ctor(0, 9, 10); +} else { + x_351 = x_336; +} +lean_ctor_set(x_351, 0, x_318); +lean_ctor_set(x_351, 1, x_319); +lean_ctor_set(x_351, 2, x_320); +lean_ctor_set(x_351, 3, x_324); +lean_ctor_set(x_351, 4, x_325); +lean_ctor_set(x_351, 5, x_326); +lean_ctor_set(x_351, 6, x_327); +lean_ctor_set(x_351, 7, x_333); +lean_ctor_set(x_351, 8, x_350); +lean_ctor_set_uint8(x_351, sizeof(void*)*9, x_321); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 1, x_322); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 2, x_323); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 3, x_328); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 4, x_329); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 5, x_330); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 6, x_331); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 7, x_332); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 8, x_334); +lean_ctor_set_uint8(x_351, sizeof(void*)*9 + 9, x_335); +return x_351; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +if (lean_is_scalar(x_340)) { + x_352 = lean_alloc_ctor(1, 1, 0); +} else { + x_352 = x_340; +} +lean_ctor_set(x_352, 0, x_339); +if (lean_is_scalar(x_338)) { + x_353 = lean_alloc_ctor(0, 2, 0); +} else { + x_353 = x_338; +} +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_337); +x_354 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_354, 0, x_353); +if (lean_is_scalar(x_336)) { + x_355 = lean_alloc_ctor(0, 9, 10); +} else { + x_355 = x_336; +} +lean_ctor_set(x_355, 0, x_318); +lean_ctor_set(x_355, 1, x_319); +lean_ctor_set(x_355, 2, x_320); +lean_ctor_set(x_355, 3, x_324); +lean_ctor_set(x_355, 4, x_325); +lean_ctor_set(x_355, 5, x_326); +lean_ctor_set(x_355, 6, x_327); +lean_ctor_set(x_355, 7, x_333); +lean_ctor_set(x_355, 8, x_354); +lean_ctor_set_uint8(x_355, sizeof(void*)*9, x_321); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 1, x_322); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 2, x_323); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 3, x_328); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 4, x_329); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 5, x_330); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 6, x_331); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 7, x_332); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 8, x_334); +lean_ctor_set_uint8(x_355, sizeof(void*)*9 + 9, x_335); +return x_355; +} +} +else +{ +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; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; +x_356 = lean_ctor_get(x_339, 0); +lean_inc(x_356); +x_357 = lean_box(0); +x_358 = lean_unsigned_to_nat(0u); +x_359 = l_Lean_Syntax_formatStxAux(x_357, x_344, x_358, x_356); +x_360 = l_Std_Format_defWidth; +x_361 = lean_format_pretty(x_359, x_360, x_358, x_358); +x_362 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5; +x_363 = lean_string_append(x_362, x_361); +lean_dec(x_361); +x_364 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_365 = lean_string_append(x_363, x_364); +x_366 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_366, 0, x_342); +x_367 = lean_dbg_trace(x_365, x_366); +x_368 = lean_unbox(x_367); +lean_dec(x_367); +if (x_368 == 0) +{ +lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_339); +if (lean_is_scalar(x_338)) { + x_369 = lean_alloc_ctor(0, 2, 0); +} else { + x_369 = x_338; +} +lean_ctor_set(x_369, 0, x_357); +lean_ctor_set(x_369, 1, x_337); +if (lean_is_scalar(x_340)) { + x_370 = lean_alloc_ctor(1, 1, 0); +} else { + x_370 = x_340; +} +lean_ctor_set(x_370, 0, x_369); +if (lean_is_scalar(x_336)) { + x_371 = lean_alloc_ctor(0, 9, 10); +} else { + x_371 = x_336; +} +lean_ctor_set(x_371, 0, x_318); +lean_ctor_set(x_371, 1, x_319); +lean_ctor_set(x_371, 2, x_320); +lean_ctor_set(x_371, 3, x_324); +lean_ctor_set(x_371, 4, x_325); +lean_ctor_set(x_371, 5, x_326); +lean_ctor_set(x_371, 6, x_327); +lean_ctor_set(x_371, 7, x_333); +lean_ctor_set(x_371, 8, x_370); +lean_ctor_set_uint8(x_371, sizeof(void*)*9, x_321); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 1, x_322); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 2, x_323); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 3, x_328); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 4, x_329); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 5, x_330); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 6, x_331); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 7, x_332); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 8, x_334); +lean_ctor_set_uint8(x_371, sizeof(void*)*9 + 9, x_335); +return x_371; +} +else +{ +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +if (lean_is_scalar(x_340)) { + x_372 = lean_alloc_ctor(1, 1, 0); +} else { + x_372 = x_340; +} +lean_ctor_set(x_372, 0, x_339); +if (lean_is_scalar(x_338)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_338; +} +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_337); +x_374 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_374, 0, x_373); +if (lean_is_scalar(x_336)) { + x_375 = lean_alloc_ctor(0, 9, 10); +} else { + x_375 = x_336; +} +lean_ctor_set(x_375, 0, x_318); +lean_ctor_set(x_375, 1, x_319); +lean_ctor_set(x_375, 2, x_320); +lean_ctor_set(x_375, 3, x_324); +lean_ctor_set(x_375, 4, x_325); +lean_ctor_set(x_375, 5, x_326); +lean_ctor_set(x_375, 6, x_327); +lean_ctor_set(x_375, 7, x_333); +lean_ctor_set(x_375, 8, x_374); +lean_ctor_set_uint8(x_375, sizeof(void*)*9, x_321); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 1, x_322); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 2, x_323); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 3, x_328); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 4, x_329); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 5, x_330); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 6, x_331); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 7, x_332); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 8, x_334); +lean_ctor_set_uint8(x_375, sizeof(void*)*9 + 9, x_335); +return x_375; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_box(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_6, 0, x_5); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_3(x_2, lean_box(0), x_6, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_box(x_5); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2___boxed), 4, 3); +lean_closure_set(x_9, 0, x_8); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_6); +x_10 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_3, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutTacticReuse___rarg___boxed), 6, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__1(x_4, x_2, x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Elab_Term_withoutTacticReuse___rarg___lambda__2(x_5, x_2, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutTacticReuse___rarg___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_5); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_withoutTacticReuse___rarg(x_1, x_2, x_3, x_4, x_7, x_6); +lean_dec(x_4); +return x_8; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing___rarg___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: { @@ -3094,7 +7974,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing___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_object* x_10; 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_57; +lean_object* x_9; lean_object* x_10; 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_59; x_16 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -3114,107 +7994,107 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_57 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18); -if (lean_obj_tag(x_57) == 0) +x_59 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_dec(x_19); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_59); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_61); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) { -lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; uint8_t x_66; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -x_64 = 1; -x_65 = l_Lean_Elab_Term_SavedState_restore(x_17, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_63); -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) +lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; uint8_t x_68; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_62, 1); +x_66 = 1; +x_67 = l_Lean_Elab_Term_SavedState_restore(x_17, x_66, x_2, x_3, x_4, x_5, x_6, x_7, x_65); +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_65, 1); -x_68 = lean_ctor_get(x_65, 0); -lean_dec(x_68); -lean_ctor_set(x_65, 1, x_62); -lean_ctor_set(x_65, 0, x_58); -x_69 = lean_box(0); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 1, x_69); -lean_ctor_set(x_60, 0, x_65); -x_9 = x_60; -x_10 = x_67; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_67, 1); +x_70 = lean_ctor_get(x_67, 0); +lean_dec(x_70); +lean_ctor_set(x_67, 1, x_64); +lean_ctor_set(x_67, 0, x_60); +x_71 = lean_box(0); +lean_ctor_set_tag(x_62, 1); +lean_ctor_set(x_62, 1, x_71); +lean_ctor_set(x_62, 0, x_67); +x_9 = x_62; +x_10 = x_69; goto block_15; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); -lean_dec(x_65); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_58); -lean_ctor_set(x_71, 1, x_62); -x_72 = lean_box(0); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 1, x_72); -lean_ctor_set(x_60, 0, x_71); -x_9 = x_60; -x_10 = x_70; +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +lean_dec(x_67); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_60); +lean_ctor_set(x_73, 1, x_64); +x_74 = lean_box(0); +lean_ctor_set_tag(x_62, 1); +lean_ctor_set(x_62, 1, x_74); +lean_ctor_set(x_62, 0, x_73); +x_9 = x_62; +x_10 = x_72; goto block_15; } } 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; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_73 = lean_ctor_get(x_60, 0); -x_74 = lean_ctor_get(x_60, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_60); -x_75 = 1; -x_76 = l_Lean_Elab_Term_SavedState_restore(x_17, x_75, x_2, x_3, x_4, x_5, x_6, x_7, x_74); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_78 = x_76; +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; lean_object* x_83; +x_75 = lean_ctor_get(x_62, 0); +x_76 = lean_ctor_get(x_62, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_62); +x_77 = 1; +x_78 = l_Lean_Elab_Term_SavedState_restore(x_17, x_77, x_2, x_3, x_4, x_5, x_6, x_7, x_76); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_80 = x_78; } else { - lean_dec_ref(x_76); - x_78 = lean_box(0); + lean_dec_ref(x_78); + x_80 = lean_box(0); } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_78; + x_81 = x_80; } -lean_ctor_set(x_79, 0, x_58); -lean_ctor_set(x_79, 1, x_73); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_9 = x_81; -x_10 = x_77; +lean_ctor_set(x_81, 0, x_60); +lean_ctor_set(x_81, 1, x_75); +x_82 = lean_box(0); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_9 = x_83; +x_10 = x_79; goto block_15; } } else { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_57, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_57, 1); -lean_inc(x_83); -lean_dec(x_57); -x_20 = x_82; -x_21 = x_83; -goto block_56; +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_59, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_59, 1); +lean_inc(x_85); +lean_dec(x_59); +x_20 = x_84; +x_21 = x_85; +goto block_58; } block_15: { @@ -3241,109 +8121,113 @@ lean_ctor_set(x_14, 1, x_10); return x_14; } } -block_56: +block_58: { uint8_t x_22; -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; uint8_t x_24; +lean_object* x_24; uint8_t x_25; lean_dec(x_19); -x_23 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_21); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +x_24 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -x_27 = 1; -x_28 = l_Lean_Elab_Term_SavedState_restore(x_17, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_26); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = 1; +x_29 = l_Lean_Elab_Term_SavedState_restore(x_17, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_27); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 1); -x_31 = lean_ctor_get(x_28, 0); -lean_dec(x_31); -lean_ctor_set_tag(x_28, 1); -lean_ctor_set(x_28, 1, x_25); -lean_ctor_set(x_28, 0, x_20); -x_32 = lean_box(0); -lean_ctor_set_tag(x_23, 1); -lean_ctor_set(x_23, 1, x_32); -lean_ctor_set(x_23, 0, x_28); -x_9 = x_23; -x_10 = x_30; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 1); +x_32 = lean_ctor_get(x_29, 0); +lean_dec(x_32); +lean_ctor_set_tag(x_29, 1); +lean_ctor_set(x_29, 1, x_26); +lean_ctor_set(x_29, 0, x_20); +x_33 = lean_box(0); +lean_ctor_set_tag(x_24, 1); +lean_ctor_set(x_24, 1, x_33); +lean_ctor_set(x_24, 0, x_29); +x_9 = x_24; +x_10 = x_31; goto block_15; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_20); -lean_ctor_set(x_34, 1, x_25); -x_35 = lean_box(0); -lean_ctor_set_tag(x_23, 1); -lean_ctor_set(x_23, 1, x_35); -lean_ctor_set(x_23, 0, x_34); -x_9 = x_23; -x_10 = x_33; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_20); +lean_ctor_set(x_35, 1, x_26); +x_36 = lean_box(0); +lean_ctor_set_tag(x_24, 1); +lean_ctor_set(x_24, 1, x_36); +lean_ctor_set(x_24, 0, x_35); +x_9 = x_24; +x_10 = x_34; goto block_15; } } else { -lean_object* x_36; 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; lean_object* x_44; -x_36 = lean_ctor_get(x_23, 0); -x_37 = lean_ctor_get(x_23, 1); +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; +x_37 = lean_ctor_get(x_24, 0); +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_23); -x_38 = 1; -x_39 = l_Lean_Elab_Term_SavedState_restore(x_17, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; +lean_dec(x_24); +x_39 = 1; +x_40 = l_Lean_Elab_Term_SavedState_restore(x_17, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_38); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_42 = x_40; } else { - lean_dec_ref(x_39); - x_41 = lean_box(0); + lean_dec_ref(x_40); + x_42 = lean_box(0); } -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(1, 2, 0); } else { - x_42 = x_41; - lean_ctor_set_tag(x_42, 1); + x_43 = x_42; + lean_ctor_set_tag(x_43, 1); } -lean_ctor_set(x_42, 0, x_20); -lean_ctor_set(x_42, 1, x_36); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_9 = x_44; -x_10 = x_40; +lean_ctor_set(x_43, 0, x_20); +lean_ctor_set(x_43, 1, x_37); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_9 = x_45; +x_10 = x_41; goto block_15; } } else { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_20, 0); -lean_inc(x_45); -x_46 = l_Lean_Elab_Term_observing___rarg___closed__1; -x_47 = lean_nat_dec_eq(x_45, x_46); -lean_dec(x_45); -if (x_47 == 0) +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_20, 0); +lean_inc(x_46); +x_47 = l_Lean_Elab_Term_observing___rarg___closed__1; +x_48 = lean_nat_dec_eq(x_46, x_47); +lean_dec(x_46); +if (x_48 == 0) { -lean_object* x_48; +lean_object* x_49; lean_dec(x_17); lean_dec(x_7); lean_dec(x_6); @@ -3352,48 +8236,48 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_19)) { - x_48 = lean_alloc_ctor(1, 2, 0); + x_49 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_19; - lean_ctor_set_tag(x_48, 1); + x_49 = x_19; + lean_ctor_set_tag(x_49, 1); } -lean_ctor_set(x_48, 0, x_20); -lean_ctor_set(x_48, 1, x_21); -return x_48; +lean_ctor_set(x_49, 0, x_20); +lean_ctor_set(x_49, 1, x_21); +return x_49; } else { -uint8_t x_49; lean_object* x_50; uint8_t x_51; +uint8_t x_50; lean_object* x_51; uint8_t x_52; lean_dec(x_19); -x_49 = 1; -x_50 = l_Lean_Elab_Term_SavedState_restore(x_17, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_21); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) +x_50 = 1; +x_51 = l_Lean_Elab_Term_SavedState_restore(x_17, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_21); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) { -lean_object* x_52; -x_52 = lean_ctor_get(x_50, 0); -lean_dec(x_52); -lean_ctor_set_tag(x_50, 1); -lean_ctor_set(x_50, 0, x_20); -return x_50; +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set_tag(x_51, 1); +lean_ctor_set(x_51, 0, x_20); +return x_51; } else { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_20); -lean_ctor_set(x_54, 1, x_53); -return x_54; +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_20); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } } else { -lean_object* x_55; +lean_object* x_56; lean_dec(x_17); lean_dec(x_7); lean_dec(x_6); @@ -3402,14 +8286,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_19)) { - x_55 = lean_alloc_ctor(1, 2, 0); + x_56 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_19; - lean_ctor_set_tag(x_55, 1); + x_56 = x_19; + lean_ctor_set_tag(x_56, 1); } -lean_ctor_set(x_55, 0, x_20); -lean_ctor_set(x_55, 1, x_21); -return x_55; +lean_ctor_set(x_56, 0, x_20); +lean_ctor_set(x_56, 1, x_21); +return x_56; +} +} +else +{ +lean_object* x_57; +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_19)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_19; + lean_ctor_set_tag(x_57, 1); +} +lean_ctor_set(x_57, 0, x_20); +lean_ctor_set(x_57, 1, x_21); +return x_57; } } } @@ -3685,7 +8590,7 @@ _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_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; x_2 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__2; -x_3 = lean_unsigned_to_nat(332u); +x_3 = lean_unsigned_to_nat(445u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4056,30 +8961,32 @@ if (x_9 == 0) { uint8_t x_10; lean_object* x_11; x_10 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 8, x_10); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 8, x_10); x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t 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; x_12 = lean_ctor_get(x_2, 0); x_13 = lean_ctor_get(x_2, 1); x_14 = lean_ctor_get(x_2, 2); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); x_18 = lean_ctor_get(x_2, 3); x_19 = lean_ctor_get(x_2, 4); x_20 = lean_ctor_get(x_2, 5); x_21 = lean_ctor_get(x_2, 6); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_27 = lean_ctor_get(x_2, 7); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_28 = lean_ctor_get(x_2, 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_28); lean_inc(x_27); lean_inc(x_21); lean_inc(x_20); @@ -4089,28 +8996,29 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); -x_29 = 0; -x_30 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_13); -lean_ctor_set(x_30, 2, x_14); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_15); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_16); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_17); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_22); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_23); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 8, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 9, x_28); -x_31 = lean_apply_7(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8); -return x_31; +x_30 = 0; +x_31 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_14); +lean_ctor_set(x_31, 3, x_18); +lean_ctor_set(x_31, 4, x_19); +lean_ctor_set(x_31, 5, x_20); +lean_ctor_set(x_31, 6, x_21); +lean_ctor_set(x_31, 7, x_27); +lean_ctor_set(x_31, 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_15); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_16); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_17); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_26); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 8, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 9, x_29); +x_32 = lean_apply_7(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8); +return x_32; } } } @@ -4197,31 +9105,23 @@ static lean_object* _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9 _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); +x_1 = lean_mk_string_from_bytes("TermElab", 8); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("TermElab", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___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_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; -x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_3 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; -x_4 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10; +x_4 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11() { _start: { lean_object* x_1; @@ -4236,13 +9136,13 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__2; x_4 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__4; x_5 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__8; -x_6 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11; -x_7 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12; +x_6 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10; +x_7 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11; x_8 = l_Lean_Elab_mkElabAttribute___rarg(x_3, x_4, x_5, x_6, x_7, x_1, x_2); return x_8; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1() { _start: { lean_object* x_1; @@ -4250,23 +9150,23 @@ x_1 = lean_mk_string_from_bytes("termElabAttribute", 17); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____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_Elab_Term_mkTermElabAttributeUnsafe___closed__5; -x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_3 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__2; x_3 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe(x_2, x_1); return x_3; } @@ -6966,24 +11866,26 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t 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_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_15 = lean_ctor_get(x_3, 1); x_16 = lean_ctor_get(x_3, 2); -x_17 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +x_17 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); x_20 = lean_ctor_get(x_3, 3); x_21 = lean_ctor_get(x_3, 4); x_22 = lean_ctor_get(x_3, 5); x_23 = lean_ctor_get(x_3, 6); -x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 3); -x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5); -x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); -x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); x_29 = lean_ctor_get(x_3, 7); -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); -x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); +x_30 = lean_ctor_get(x_3, 8); +x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_32 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_23); lean_inc(x_22); @@ -6992,28 +11894,29 @@ lean_inc(x_20); lean_inc(x_16); lean_inc(x_15); lean_dec(x_3); -x_32 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_32, 0, x_10); -lean_ctor_set(x_32, 1, x_15); -lean_ctor_set(x_32, 2, x_16); -lean_ctor_set(x_32, 3, x_20); -lean_ctor_set(x_32, 4, x_21); -lean_ctor_set(x_32, 5, x_22); -lean_ctor_set(x_32, 6, x_23); -lean_ctor_set(x_32, 7, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*8, x_17); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 1, x_18); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 2, x_19); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 3, x_24); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 4, x_25); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 5, x_26); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 6, x_27); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 7, x_28); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 8, x_30); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 9, x_31); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1___rarg___lambda__1___boxed), 7, 0); -x_34 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_withDeclName___spec__2___rarg(x_2, x_33, x_32, x_4, x_5, x_6, x_7, x_8, x_9); -return x_34; +x_33 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_33, 0, x_10); +lean_ctor_set(x_33, 1, x_15); +lean_ctor_set(x_33, 2, x_16); +lean_ctor_set(x_33, 3, x_20); +lean_ctor_set(x_33, 4, x_21); +lean_ctor_set(x_33, 5, x_22); +lean_ctor_set(x_33, 6, x_23); +lean_ctor_set(x_33, 7, x_29); +lean_ctor_set(x_33, 8, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*9, x_17); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 1, x_18); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 2, x_19); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 3, x_24); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 4, x_25); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 5, x_26); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 6, x_27); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 7, x_28); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 8, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 9, x_32); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_withSaveParentDeclInfoContext___at_Lean_Elab_Term_withDeclName___spec__1___rarg___lambda__1___boxed), 7, 0); +x_35 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at_Lean_Elab_Term_withDeclName___spec__2___rarg(x_2, x_34, x_33, x_4, x_5, x_6, x_7, x_8, x_9); +return x_35; } } } @@ -7431,25 +12334,27 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_16 = lean_ctor_get(x_4, 0); x_17 = lean_ctor_get(x_4, 1); x_18 = lean_ctor_get(x_4, 2); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); x_22 = lean_ctor_get(x_4, 3); x_23 = lean_ctor_get(x_4, 4); x_24 = lean_ctor_get(x_4, 5); x_25 = lean_ctor_get(x_4, 6); -x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4); -x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5); -x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6); -x_30 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_30 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); x_31 = lean_ctor_get(x_4, 7); -x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 8); -x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 9); +x_32 = lean_ctor_get(x_4, 8); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_25); lean_inc(x_24); @@ -7460,29 +12365,30 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_4); lean_inc(x_3); -x_34 = l_Lean_Expr_fvarId_x21(x_3); -x_35 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_17, x_34, x_1); -x_36 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_36, 0, x_16); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set(x_36, 2, x_18); -lean_ctor_set(x_36, 3, x_22); -lean_ctor_set(x_36, 4, x_23); -lean_ctor_set(x_36, 5, x_24); -lean_ctor_set(x_36, 6, x_25); -lean_ctor_set(x_36, 7, x_31); -lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_19); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_20); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_21); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 3, x_26); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 4, x_27); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 5, x_28); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 6, x_29); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 7, x_30); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 8, x_32); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 9, x_33); -x_37 = lean_apply_8(x_2, x_3, x_36, x_5, x_6, x_7, x_8, x_9, x_10); -return x_37; +x_35 = l_Lean_Expr_fvarId_x21(x_3); +x_36 = l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(x_17, x_35, x_1); +x_37 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_37, 0, x_16); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_18); +lean_ctor_set(x_37, 3, x_22); +lean_ctor_set(x_37, 4, x_23); +lean_ctor_set(x_37, 5, x_24); +lean_ctor_set(x_37, 6, x_25); +lean_ctor_set(x_37, 7, x_31); +lean_ctor_set(x_37, 8, x_32); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_19); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_20); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 2, x_21); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 3, x_26); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 4, x_27); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 5, x_28); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 6, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 7, x_30); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 8, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 9, x_34); +x_38 = lean_apply_8(x_2, x_3, x_37, x_5, x_6, x_7, x_8, x_9, x_10); +return x_38; } } } @@ -7528,30 +12434,32 @@ if (x_9 == 0) { uint8_t x_10; lean_object* x_11; x_10 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 1, x_10); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 1, x_10); x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t 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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t 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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; x_12 = lean_ctor_get(x_2, 0); x_13 = lean_ctor_get(x_2, 1); x_14 = lean_ctor_get(x_2, 2); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); x_17 = lean_ctor_get(x_2, 3); x_18 = lean_ctor_get(x_2, 4); x_19 = lean_ctor_get(x_2, 5); x_20 = lean_ctor_get(x_2, 6); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_26 = lean_ctor_get(x_2, 7); -x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_27 = lean_ctor_get(x_2, 8); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_20); lean_inc(x_19); @@ -7561,28 +12469,29 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); -x_29 = 0; -x_30 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_13); -lean_ctor_set(x_30, 2, x_14); -lean_ctor_set(x_30, 3, x_17); -lean_ctor_set(x_30, 4, x_18); -lean_ctor_set(x_30, 5, x_19); -lean_ctor_set(x_30, 6, x_20); -lean_ctor_set(x_30, 7, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_15); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_16); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_21); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_22); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_23); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 8, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 9, x_28); -x_31 = lean_apply_7(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8); -return x_31; +x_30 = 0; +x_31 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_14); +lean_ctor_set(x_31, 3, x_17); +lean_ctor_set(x_31, 4, x_18); +lean_ctor_set(x_31, 5, x_19); +lean_ctor_set(x_31, 6, x_20); +lean_ctor_set(x_31, 7, x_26); +lean_ctor_set(x_31, 8, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_15); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_16); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_21); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 9, x_29); +x_32 = lean_apply_7(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8); +return x_32; } } } @@ -7636,30 +12545,32 @@ if (x_9 == 0) { uint8_t x_10; lean_object* x_11; x_10 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 4, x_10); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 4, x_10); x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; x_12 = lean_ctor_get(x_2, 0); x_13 = lean_ctor_get(x_2, 1); x_14 = lean_ctor_get(x_2, 2); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); x_18 = lean_ctor_get(x_2, 3); x_19 = lean_ctor_get(x_2, 4); x_20 = lean_ctor_get(x_2, 5); x_21 = lean_ctor_get(x_2, 6); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_26 = lean_ctor_get(x_2, 7); -x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_27 = lean_ctor_get(x_2, 8); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_21); lean_inc(x_20); @@ -7669,28 +12580,29 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); -x_29 = 0; -x_30 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_13); -lean_ctor_set(x_30, 2, x_14); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_15); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_16); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_17); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_22); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_23); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 8, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 9, x_28); -x_31 = lean_apply_7(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8); -return x_31; +x_30 = 0; +x_31 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_14); +lean_ctor_set(x_31, 3, x_18); +lean_ctor_set(x_31, 4, x_19); +lean_ctor_set(x_31, 5, x_20); +lean_ctor_set(x_31, 6, x_21); +lean_ctor_set(x_31, 7, x_26); +lean_ctor_set(x_31, 8, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_15); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_16); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_17); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 9, x_29); +x_32 = lean_apply_7(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8); +return x_32; } } } @@ -7738,16 +12650,8 @@ return x_3; static lean_object* _init_l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("", 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_2 = l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -7802,7 +12706,7 @@ x_24 = lean_ctor_get(x_22, 0); x_25 = lean_ctor_get(x_24, 2); lean_inc(x_25); lean_dec(x_24); -x_26 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2; +x_26 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -7826,7 +12730,7 @@ lean_dec(x_22); x_29 = lean_ctor_get(x_27, 2); lean_inc(x_29); lean_dec(x_27); -x_30 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2; +x_30 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); @@ -7876,7 +12780,7 @@ if (lean_is_exclusive(x_40)) { x_44 = lean_ctor_get(x_41, 2); lean_inc(x_44); lean_dec(x_41); -x_45 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2; +x_45 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); @@ -12670,7 +17574,7 @@ lean_inc(x_2); x_13 = l___private_Lean_Elab_InfoTree_Main_0__Lean_Elab_withSavedPartialInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__2___rarg(x_1, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_11); 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; 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; +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; uint8_t x_26; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -12690,564 +17594,789 @@ x_21 = lean_ctor_get(x_10, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -x_24 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_20, 0); lean_inc(x_24); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); lean_dec(x_20); -x_25 = !lean_is_exclusive(x_10); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_10); +if (x_26 == 0) { -lean_object* x_26; uint8_t x_27; -x_26 = lean_ctor_get(x_10, 0); -lean_dec(x_26); -x_27 = !lean_is_exclusive(x_21); -if (x_27 == 0) +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_10, 0); +lean_dec(x_27); +x_28 = !lean_is_exclusive(x_21); +if (x_28 == 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; uint8_t x_34; -x_28 = lean_ctor_get(x_21, 0); -lean_dec(x_28); -x_29 = lean_ctor_get(x_22, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_22, 1); -lean_inc(x_30); -x_31 = lean_ctor_get(x_22, 2); -lean_inc(x_31); -x_32 = lean_ctor_get(x_22, 3); +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_21, 0); +lean_dec(x_29); +x_30 = !lean_is_exclusive(x_22); +if (x_30 == 0) +{ +lean_object* 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; +x_31 = lean_ctor_get(x_22, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_23, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_22, 4); +x_33 = lean_ctor_get(x_23, 1); lean_inc(x_33); -lean_dec(x_22); -x_34 = !lean_is_exclusive(x_23); -if (x_34 == 0) -{ -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_object* x_42; uint8_t x_43; -x_35 = lean_ctor_get(x_23, 6); -lean_dec(x_35); +x_34 = lean_ctor_get(x_23, 2); +lean_inc(x_34); +x_35 = lean_ctor_get(x_23, 3); +lean_inc(x_35); x_36 = lean_ctor_get(x_23, 4); -lean_dec(x_36); -x_37 = lean_ctor_get(x_23, 3); -lean_dec(x_37); -x_38 = lean_ctor_get(x_23, 2); -lean_dec(x_38); -x_39 = lean_ctor_get(x_23, 1); -lean_dec(x_39); -x_40 = lean_ctor_get(x_23, 0); -lean_dec(x_40); -lean_ctor_set(x_23, 6, x_19); -lean_ctor_set(x_23, 4, x_33); -lean_ctor_set(x_23, 3, x_32); -lean_ctor_set(x_23, 2, x_31); -lean_ctor_set(x_23, 1, x_30); -lean_ctor_set(x_23, 0, x_29); -lean_ctor_set(x_21, 0, x_23); -x_41 = 0; -x_42 = l_Lean_Elab_Term_SavedState_restore(x_10, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_24); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -lean_ctor_set(x_42, 0, x_14); -return x_42; -} -else -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_14); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -else -{ -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; -x_47 = lean_ctor_get(x_23, 5); -lean_inc(x_47); +lean_inc(x_36); lean_dec(x_23); -x_48 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_48, 0, x_29); -lean_ctor_set(x_48, 1, x_30); -lean_ctor_set(x_48, 2, x_31); -lean_ctor_set(x_48, 3, x_32); -lean_ctor_set(x_48, 4, x_33); -lean_ctor_set(x_48, 5, x_47); -lean_ctor_set(x_48, 6, x_19); -lean_ctor_set(x_21, 0, x_48); -x_49 = 0; -x_50 = l_Lean_Elab_Term_SavedState_restore(x_10, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_24); -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_37 = !lean_is_exclusive(x_24); +if (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; uint8_t x_44; lean_object* x_45; uint8_t x_46; +x_38 = lean_ctor_get(x_24, 6); +lean_dec(x_38); +x_39 = lean_ctor_get(x_24, 4); +lean_dec(x_39); +x_40 = lean_ctor_get(x_24, 3); +lean_dec(x_40); +x_41 = lean_ctor_get(x_24, 2); +lean_dec(x_41); +x_42 = lean_ctor_get(x_24, 1); +lean_dec(x_42); +x_43 = lean_ctor_get(x_24, 0); +lean_dec(x_43); +lean_ctor_set(x_24, 6, x_19); +lean_ctor_set(x_24, 4, x_36); +lean_ctor_set(x_24, 3, x_35); +lean_ctor_set(x_24, 2, x_34); +lean_ctor_set(x_24, 1, x_33); +lean_ctor_set(x_24, 0, x_32); +lean_ctor_set(x_22, 0, x_24); +x_44 = 0; +x_45 = l_Lean_Elab_Term_SavedState_restore(x_10, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set(x_45, 0, x_14); +return x_45; } -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_14); -lean_ctor_set(x_53, 1, x_51); -return x_53; +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_14); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } 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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_54 = lean_ctor_get(x_21, 1); +lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_50 = lean_ctor_get(x_24, 5); +lean_inc(x_50); +lean_dec(x_24); +x_51 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_51, 0, x_32); +lean_ctor_set(x_51, 1, x_33); +lean_ctor_set(x_51, 2, x_34); +lean_ctor_set(x_51, 3, x_35); +lean_ctor_set(x_51, 4, x_36); +lean_ctor_set(x_51, 5, x_50); +lean_ctor_set(x_51, 6, x_19); +lean_ctor_set(x_22, 0, x_51); +x_52 = 0; +x_53 = l_Lean_Elab_Term_SavedState_restore(x_10, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); -lean_dec(x_21); -x_55 = lean_ctor_get(x_22, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_22, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_22, 2); -lean_inc(x_57); -x_58 = lean_ctor_get(x_22, 3); -lean_inc(x_58); -x_59 = lean_ctor_get(x_22, 4); -lean_inc(x_59); -lean_dec(x_22); -x_60 = lean_ctor_get(x_23, 5); -lean_inc(x_60); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - lean_ctor_release(x_23, 2); - lean_ctor_release(x_23, 3); - lean_ctor_release(x_23, 4); - lean_ctor_release(x_23, 5); - lean_ctor_release(x_23, 6); - x_61 = x_23; +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; } else { - lean_dec_ref(x_23); - x_61 = lean_box(0); + lean_dec_ref(x_53); + x_55 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 7, 0); +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 2, 0); } else { - x_62 = x_61; + x_56 = x_55; } -lean_ctor_set(x_62, 0, x_55); -lean_ctor_set(x_62, 1, x_56); -lean_ctor_set(x_62, 2, x_57); -lean_ctor_set(x_62, 3, x_58); -lean_ctor_set(x_62, 4, x_59); -lean_ctor_set(x_62, 5, x_60); -lean_ctor_set(x_62, 6, x_19); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_54); -lean_ctor_set(x_10, 0, x_63); -x_64 = 0; -x_65 = l_Lean_Elab_Term_SavedState_restore(x_10, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_24); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_67 = x_65; -} else { - lean_dec_ref(x_65); - x_67 = lean_box(0); -} -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_67; -} -lean_ctor_set(x_68, 0, x_14); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_56, 0, x_14); +lean_ctor_set(x_56, 1, x_54); +return x_56; } } 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; lean_object* x_77; 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; -x_69 = lean_ctor_get(x_10, 1); +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; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_57 = lean_ctor_get(x_22, 1); +lean_inc(x_57); +lean_dec(x_22); +x_58 = lean_ctor_get(x_23, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_23, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_23, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_23, 3); +lean_inc(x_61); +x_62 = lean_ctor_get(x_23, 4); +lean_inc(x_62); +lean_dec(x_23); +x_63 = lean_ctor_get(x_24, 5); +lean_inc(x_63); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + lean_ctor_release(x_24, 2); + lean_ctor_release(x_24, 3); + lean_ctor_release(x_24, 4); + lean_ctor_release(x_24, 5); + lean_ctor_release(x_24, 6); + x_64 = x_24; +} else { + lean_dec_ref(x_24); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 7, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_58); +lean_ctor_set(x_65, 1, x_59); +lean_ctor_set(x_65, 2, x_60); +lean_ctor_set(x_65, 3, x_61); +lean_ctor_set(x_65, 4, x_62); +lean_ctor_set(x_65, 5, x_63); +lean_ctor_set(x_65, 6, x_19); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_57); +lean_ctor_set(x_21, 0, x_66); +x_67 = 0; +x_68 = l_Lean_Elab_Term_SavedState_restore(x_10, x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_69 = lean_ctor_get(x_68, 1); lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_14); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +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; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_72 = lean_ctor_get(x_21, 1); +lean_inc(x_72); +lean_dec(x_21); +x_73 = lean_ctor_get(x_22, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_74 = x_22; +} else { + lean_dec_ref(x_22); + x_74 = lean_box(0); +} +x_75 = lean_ctor_get(x_23, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_23, 1); +lean_inc(x_76); +x_77 = lean_ctor_get(x_23, 2); +lean_inc(x_77); +x_78 = lean_ctor_get(x_23, 3); +lean_inc(x_78); +x_79 = lean_ctor_get(x_23, 4); +lean_inc(x_79); +lean_dec(x_23); +x_80 = lean_ctor_get(x_24, 5); +lean_inc(x_80); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + lean_ctor_release(x_24, 2); + lean_ctor_release(x_24, 3); + lean_ctor_release(x_24, 4); + lean_ctor_release(x_24, 5); + lean_ctor_release(x_24, 6); + x_81 = x_24; +} else { + lean_dec_ref(x_24); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(0, 7, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_75); +lean_ctor_set(x_82, 1, x_76); +lean_ctor_set(x_82, 2, x_77); +lean_ctor_set(x_82, 3, x_78); +lean_ctor_set(x_82, 4, x_79); +lean_ctor_set(x_82, 5, x_80); +lean_ctor_set(x_82, 6, x_19); +if (lean_is_scalar(x_74)) { + x_83 = lean_alloc_ctor(0, 2, 0); +} else { + x_83 = x_74; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_73); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_72); +lean_ctor_set(x_10, 0, x_84); +x_85 = 0; +x_86 = l_Lean_Elab_Term_SavedState_restore(x_10, x_85, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_88 = x_86; +} else { + lean_dec_ref(x_86); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_14); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +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; 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; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_90 = lean_ctor_get(x_10, 1); +lean_inc(x_90); lean_dec(x_10); -x_70 = lean_ctor_get(x_21, 1); -lean_inc(x_70); +x_91 = lean_ctor_get(x_21, 1); +lean_inc(x_91); if (lean_is_exclusive(x_21)) { lean_ctor_release(x_21, 0); lean_ctor_release(x_21, 1); - x_71 = x_21; + x_92 = x_21; } else { lean_dec_ref(x_21); - x_71 = lean_box(0); + x_92 = lean_box(0); } -x_72 = lean_ctor_get(x_22, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_22, 1); -lean_inc(x_73); -x_74 = lean_ctor_get(x_22, 2); -lean_inc(x_74); -x_75 = lean_ctor_get(x_22, 3); -lean_inc(x_75); -x_76 = lean_ctor_get(x_22, 4); -lean_inc(x_76); -lean_dec(x_22); -x_77 = lean_ctor_get(x_23, 5); -lean_inc(x_77); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - lean_ctor_release(x_23, 2); - lean_ctor_release(x_23, 3); - lean_ctor_release(x_23, 4); - lean_ctor_release(x_23, 5); - lean_ctor_release(x_23, 6); - x_78 = x_23; +x_93 = lean_ctor_get(x_22, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_94 = x_22; } else { - lean_dec_ref(x_23); - x_78 = lean_box(0); + lean_dec_ref(x_22); + x_94 = lean_box(0); } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(0, 7, 0); -} else { - x_79 = x_78; -} -lean_ctor_set(x_79, 0, x_72); -lean_ctor_set(x_79, 1, x_73); -lean_ctor_set(x_79, 2, x_74); -lean_ctor_set(x_79, 3, x_75); -lean_ctor_set(x_79, 4, x_76); -lean_ctor_set(x_79, 5, x_77); -lean_ctor_set(x_79, 6, x_19); -if (lean_is_scalar(x_71)) { - x_80 = lean_alloc_ctor(0, 2, 0); -} else { - x_80 = x_71; -} -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_70); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_69); -x_82 = 0; -x_83 = l_Lean_Elab_Term_SavedState_restore(x_81, x_82, x_2, x_3, x_4, x_5, x_6, x_7, x_24); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_85; -} -lean_ctor_set(x_86, 0, x_14); -lean_ctor_set(x_86, 1, x_84); -return x_86; -} -} -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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_87 = lean_ctor_get(x_13, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_13, 1); -lean_inc(x_88); -lean_dec(x_13); -x_89 = lean_st_ref_get(x_7, x_88); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_ctor_get(x_90, 6); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_st_ref_get(x_7, x_91); -x_94 = lean_ctor_get(x_10, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_94, 0); +x_95 = lean_ctor_get(x_23, 0); lean_inc(x_95); -x_96 = lean_ctor_get(x_93, 0); +x_96 = lean_ctor_get(x_23, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_93, 1); +x_97 = lean_ctor_get(x_23, 2); lean_inc(x_97); -lean_dec(x_93); -x_98 = !lean_is_exclusive(x_10); -if (x_98 == 0) +x_98 = lean_ctor_get(x_23, 3); +lean_inc(x_98); +x_99 = lean_ctor_get(x_23, 4); +lean_inc(x_99); +lean_dec(x_23); +x_100 = lean_ctor_get(x_24, 5); +lean_inc(x_100); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + lean_ctor_release(x_24, 2); + lean_ctor_release(x_24, 3); + lean_ctor_release(x_24, 4); + lean_ctor_release(x_24, 5); + lean_ctor_release(x_24, 6); + x_101 = x_24; +} else { + lean_dec_ref(x_24); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(0, 7, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_95); +lean_ctor_set(x_102, 1, x_96); +lean_ctor_set(x_102, 2, x_97); +lean_ctor_set(x_102, 3, x_98); +lean_ctor_set(x_102, 4, x_99); +lean_ctor_set(x_102, 5, x_100); +lean_ctor_set(x_102, 6, x_19); +if (lean_is_scalar(x_94)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_94; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_93); +if (lean_is_scalar(x_92)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_92; +} +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_91); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_90); +x_106 = 0; +x_107 = l_Lean_Elab_Term_SavedState_restore(x_105, x_106, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_109 = x_107; +} else { + lean_dec_ref(x_107); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_14); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +} +else { -lean_object* x_99; uint8_t x_100; -x_99 = lean_ctor_get(x_10, 0); -lean_dec(x_99); -x_100 = !lean_is_exclusive(x_94); -if (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; -x_101 = lean_ctor_get(x_94, 0); -lean_dec(x_101); -x_102 = lean_ctor_get(x_95, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_95, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_95, 2); -lean_inc(x_104); -x_105 = lean_ctor_get(x_95, 3); -lean_inc(x_105); -x_106 = lean_ctor_get(x_95, 4); -lean_inc(x_106); -lean_dec(x_95); -x_107 = !lean_is_exclusive(x_96); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; uint8_t x_116; -x_108 = lean_ctor_get(x_96, 6); -lean_dec(x_108); -x_109 = lean_ctor_get(x_96, 4); -lean_dec(x_109); -x_110 = lean_ctor_get(x_96, 3); -lean_dec(x_110); -x_111 = lean_ctor_get(x_96, 2); -lean_dec(x_111); -x_112 = lean_ctor_get(x_96, 1); -lean_dec(x_112); -x_113 = lean_ctor_get(x_96, 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; uint8_t x_123; +x_111 = lean_ctor_get(x_13, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_13, 1); +lean_inc(x_112); +lean_dec(x_13); +x_113 = lean_st_ref_get(x_7, x_112); +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); -lean_ctor_set(x_96, 6, x_92); -lean_ctor_set(x_96, 4, x_106); -lean_ctor_set(x_96, 3, x_105); -lean_ctor_set(x_96, 2, x_104); -lean_ctor_set(x_96, 1, x_103); -lean_ctor_set(x_96, 0, x_102); -lean_ctor_set(x_94, 0, x_96); -x_114 = 0; -x_115 = l_Lean_Elab_Term_SavedState_restore(x_10, x_114, x_2, x_3, x_4, x_5, x_6, x_7, x_97); -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) -{ -lean_object* x_117; -x_117 = lean_ctor_get(x_115, 0); -lean_dec(x_117); -lean_ctor_set_tag(x_115, 1); -lean_ctor_set(x_115, 0, x_87); -return x_115; -} -else -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_115, 1); +x_116 = lean_ctor_get(x_114, 6); +lean_inc(x_116); +lean_dec(x_114); +x_117 = lean_st_ref_get(x_7, x_115); +x_118 = lean_ctor_get(x_10, 0); lean_inc(x_118); -lean_dec(x_115); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_87); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -else -{ -lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_120 = lean_ctor_get(x_96, 5); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_119, 0); lean_inc(x_120); -lean_dec(x_96); -x_121 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_121, 0, x_102); -lean_ctor_set(x_121, 1, x_103); -lean_ctor_set(x_121, 2, x_104); -lean_ctor_set(x_121, 3, x_105); -lean_ctor_set(x_121, 4, x_106); -lean_ctor_set(x_121, 5, x_120); -lean_ctor_set(x_121, 6, x_92); -lean_ctor_set(x_94, 0, x_121); -x_122 = 0; -x_123 = l_Lean_Elab_Term_SavedState_restore(x_10, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_97); -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_87); -lean_ctor_set(x_126, 1, x_124); -return x_126; -} -} -else +x_121 = lean_ctor_get(x_117, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); +lean_dec(x_117); +x_123 = !lean_is_exclusive(x_10); +if (x_123 == 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; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_127 = lean_ctor_get(x_94, 1); -lean_inc(x_127); -lean_dec(x_94); -x_128 = lean_ctor_get(x_95, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_95, 1); +lean_object* x_124; uint8_t x_125; +x_124 = lean_ctor_get(x_10, 0); +lean_dec(x_124); +x_125 = !lean_is_exclusive(x_118); +if (x_125 == 0) +{ +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_118, 0); +lean_dec(x_126); +x_127 = !lean_is_exclusive(x_119); +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_object* x_133; uint8_t x_134; +x_128 = lean_ctor_get(x_119, 0); +lean_dec(x_128); +x_129 = lean_ctor_get(x_120, 0); lean_inc(x_129); -x_130 = lean_ctor_get(x_95, 2); +x_130 = lean_ctor_get(x_120, 1); lean_inc(x_130); -x_131 = lean_ctor_get(x_95, 3); +x_131 = lean_ctor_get(x_120, 2); lean_inc(x_131); -x_132 = lean_ctor_get(x_95, 4); +x_132 = lean_ctor_get(x_120, 3); lean_inc(x_132); -lean_dec(x_95); -x_133 = lean_ctor_get(x_96, 5); +x_133 = lean_ctor_get(x_120, 4); lean_inc(x_133); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - lean_ctor_release(x_96, 2); - lean_ctor_release(x_96, 3); - lean_ctor_release(x_96, 4); - lean_ctor_release(x_96, 5); - lean_ctor_release(x_96, 6); - x_134 = x_96; -} else { - lean_dec_ref(x_96); - x_134 = lean_box(0); +lean_dec(x_120); +x_134 = !lean_is_exclusive(x_121); +if (x_134 == 0) +{ +lean_object* x_135; 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; uint8_t x_143; +x_135 = lean_ctor_get(x_121, 6); +lean_dec(x_135); +x_136 = lean_ctor_get(x_121, 4); +lean_dec(x_136); +x_137 = lean_ctor_get(x_121, 3); +lean_dec(x_137); +x_138 = lean_ctor_get(x_121, 2); +lean_dec(x_138); +x_139 = lean_ctor_get(x_121, 1); +lean_dec(x_139); +x_140 = lean_ctor_get(x_121, 0); +lean_dec(x_140); +lean_ctor_set(x_121, 6, x_116); +lean_ctor_set(x_121, 4, x_133); +lean_ctor_set(x_121, 3, x_132); +lean_ctor_set(x_121, 2, x_131); +lean_ctor_set(x_121, 1, x_130); +lean_ctor_set(x_121, 0, x_129); +lean_ctor_set(x_119, 0, x_121); +x_141 = 0; +x_142 = l_Lean_Elab_Term_SavedState_restore(x_10, x_141, x_2, x_3, x_4, x_5, x_6, x_7, x_122); +x_143 = !lean_is_exclusive(x_142); +if (x_143 == 0) +{ +lean_object* x_144; +x_144 = lean_ctor_get(x_142, 0); +lean_dec(x_144); +lean_ctor_set_tag(x_142, 1); +lean_ctor_set(x_142, 0, x_111); +return x_142; } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 7, 0); -} else { - x_135 = x_134; -} -lean_ctor_set(x_135, 0, x_128); -lean_ctor_set(x_135, 1, x_129); -lean_ctor_set(x_135, 2, x_130); -lean_ctor_set(x_135, 3, x_131); -lean_ctor_set(x_135, 4, x_132); -lean_ctor_set(x_135, 5, x_133); -lean_ctor_set(x_135, 6, x_92); -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_127); -lean_ctor_set(x_10, 0, x_136); -x_137 = 0; -x_138 = l_Lean_Elab_Term_SavedState_restore(x_10, x_137, x_2, x_3, x_4, x_5, x_6, x_7, x_97); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_140 = x_138; -} else { - lean_dec_ref(x_138); - 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_tag(x_141, 1); -} -lean_ctor_set(x_141, 0, x_87); -lean_ctor_set(x_141, 1, x_139); -return x_141; +else +{ +lean_object* x_145; lean_object* x_146; +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +lean_dec(x_142); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_111); +lean_ctor_set(x_146, 1, x_145); +return x_146; } } else { -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; uint8_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_142 = lean_ctor_get(x_10, 1); -lean_inc(x_142); -lean_dec(x_10); -x_143 = lean_ctor_get(x_94, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_144 = x_94; -} else { - lean_dec_ref(x_94); - x_144 = lean_box(0); -} -x_145 = lean_ctor_get(x_95, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_95, 1); -lean_inc(x_146); -x_147 = lean_ctor_get(x_95, 2); +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; +x_147 = lean_ctor_get(x_121, 5); lean_inc(x_147); -x_148 = lean_ctor_get(x_95, 3); -lean_inc(x_148); -x_149 = lean_ctor_get(x_95, 4); -lean_inc(x_149); -lean_dec(x_95); -x_150 = lean_ctor_get(x_96, 5); -lean_inc(x_150); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - lean_ctor_release(x_96, 2); - lean_ctor_release(x_96, 3); - lean_ctor_release(x_96, 4); - lean_ctor_release(x_96, 5); - lean_ctor_release(x_96, 6); - x_151 = x_96; +lean_dec(x_121); +x_148 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_148, 0, x_129); +lean_ctor_set(x_148, 1, x_130); +lean_ctor_set(x_148, 2, x_131); +lean_ctor_set(x_148, 3, x_132); +lean_ctor_set(x_148, 4, x_133); +lean_ctor_set(x_148, 5, x_147); +lean_ctor_set(x_148, 6, x_116); +lean_ctor_set(x_119, 0, x_148); +x_149 = 0; +x_150 = l_Lean_Elab_Term_SavedState_restore(x_10, x_149, x_2, x_3, x_4, x_5, x_6, x_7, x_122); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; } else { - lean_dec_ref(x_96); - x_151 = lean_box(0); + lean_dec_ref(x_150); + x_152 = lean_box(0); } -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(0, 7, 0); +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); } else { - x_152 = x_151; + x_153 = x_152; + lean_ctor_set_tag(x_153, 1); } -lean_ctor_set(x_152, 0, x_145); -lean_ctor_set(x_152, 1, x_146); -lean_ctor_set(x_152, 2, x_147); -lean_ctor_set(x_152, 3, x_148); -lean_ctor_set(x_152, 4, x_149); -lean_ctor_set(x_152, 5, x_150); -lean_ctor_set(x_152, 6, x_92); -if (lean_is_scalar(x_144)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_144; +lean_ctor_set(x_153, 0, x_111); +lean_ctor_set(x_153, 1, x_151); +return x_153; } -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_143); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_142); -x_155 = 0; -x_156 = l_Lean_Elab_Term_SavedState_restore(x_154, x_155, x_2, x_3, x_4, x_5, x_6, x_7, x_97); -x_157 = lean_ctor_get(x_156, 1); +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_154 = lean_ctor_get(x_119, 1); +lean_inc(x_154); +lean_dec(x_119); +x_155 = lean_ctor_get(x_120, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_120, 1); +lean_inc(x_156); +x_157 = lean_ctor_get(x_120, 2); lean_inc(x_157); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_158 = x_156; +x_158 = lean_ctor_get(x_120, 3); +lean_inc(x_158); +x_159 = lean_ctor_get(x_120, 4); +lean_inc(x_159); +lean_dec(x_120); +x_160 = lean_ctor_get(x_121, 5); +lean_inc(x_160); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + lean_ctor_release(x_121, 2); + lean_ctor_release(x_121, 3); + lean_ctor_release(x_121, 4); + lean_ctor_release(x_121, 5); + lean_ctor_release(x_121, 6); + x_161 = x_121; } else { - lean_dec_ref(x_156); - x_158 = lean_box(0); + lean_dec_ref(x_121); + x_161 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(0, 7, 0); } else { - x_159 = x_158; - lean_ctor_set_tag(x_159, 1); + x_162 = x_161; } -lean_ctor_set(x_159, 0, x_87); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_162, 0, x_155); +lean_ctor_set(x_162, 1, x_156); +lean_ctor_set(x_162, 2, x_157); +lean_ctor_set(x_162, 3, x_158); +lean_ctor_set(x_162, 4, x_159); +lean_ctor_set(x_162, 5, x_160); +lean_ctor_set(x_162, 6, x_116); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_154); +lean_ctor_set(x_118, 0, x_163); +x_164 = 0; +x_165 = l_Lean_Elab_Term_SavedState_restore(x_10, x_164, x_2, x_3, x_4, x_5, x_6, x_7, x_122); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_167 = x_165; +} else { + lean_dec_ref(x_165); + x_167 = lean_box(0); +} +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); +} else { + x_168 = x_167; + lean_ctor_set_tag(x_168, 1); +} +lean_ctor_set(x_168, 0, x_111); +lean_ctor_set(x_168, 1, x_166); +return x_168; +} +} +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; 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; uint8_t x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_169 = lean_ctor_get(x_118, 1); +lean_inc(x_169); +lean_dec(x_118); +x_170 = lean_ctor_get(x_119, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_171 = x_119; +} else { + lean_dec_ref(x_119); + x_171 = lean_box(0); +} +x_172 = lean_ctor_get(x_120, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_120, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_120, 2); +lean_inc(x_174); +x_175 = lean_ctor_get(x_120, 3); +lean_inc(x_175); +x_176 = lean_ctor_get(x_120, 4); +lean_inc(x_176); +lean_dec(x_120); +x_177 = lean_ctor_get(x_121, 5); +lean_inc(x_177); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + lean_ctor_release(x_121, 2); + lean_ctor_release(x_121, 3); + lean_ctor_release(x_121, 4); + lean_ctor_release(x_121, 5); + lean_ctor_release(x_121, 6); + x_178 = x_121; +} else { + lean_dec_ref(x_121); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(0, 7, 0); +} else { + x_179 = x_178; +} +lean_ctor_set(x_179, 0, x_172); +lean_ctor_set(x_179, 1, x_173); +lean_ctor_set(x_179, 2, x_174); +lean_ctor_set(x_179, 3, x_175); +lean_ctor_set(x_179, 4, x_176); +lean_ctor_set(x_179, 5, x_177); +lean_ctor_set(x_179, 6, x_116); +if (lean_is_scalar(x_171)) { + x_180 = lean_alloc_ctor(0, 2, 0); +} else { + x_180 = x_171; +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_170); +x_181 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_169); +lean_ctor_set(x_10, 0, x_181); +x_182 = 0; +x_183 = l_Lean_Elab_Term_SavedState_restore(x_10, x_182, x_2, x_3, x_4, x_5, x_6, x_7, x_122); +x_184 = lean_ctor_get(x_183, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_185 = x_183; +} else { + lean_dec_ref(x_183); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); +} else { + x_186 = x_185; + lean_ctor_set_tag(x_186, 1); +} +lean_ctor_set(x_186, 0, x_111); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +} +else +{ +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; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_187 = lean_ctor_get(x_10, 1); +lean_inc(x_187); +lean_dec(x_10); +x_188 = lean_ctor_get(x_118, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_189 = x_118; +} else { + lean_dec_ref(x_118); + x_189 = lean_box(0); +} +x_190 = lean_ctor_get(x_119, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_191 = x_119; +} else { + lean_dec_ref(x_119); + x_191 = lean_box(0); +} +x_192 = lean_ctor_get(x_120, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_120, 1); +lean_inc(x_193); +x_194 = lean_ctor_get(x_120, 2); +lean_inc(x_194); +x_195 = lean_ctor_get(x_120, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_120, 4); +lean_inc(x_196); +lean_dec(x_120); +x_197 = lean_ctor_get(x_121, 5); +lean_inc(x_197); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + lean_ctor_release(x_121, 2); + lean_ctor_release(x_121, 3); + lean_ctor_release(x_121, 4); + lean_ctor_release(x_121, 5); + lean_ctor_release(x_121, 6); + x_198 = x_121; +} else { + lean_dec_ref(x_121); + x_198 = lean_box(0); +} +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(0, 7, 0); +} else { + x_199 = x_198; +} +lean_ctor_set(x_199, 0, x_192); +lean_ctor_set(x_199, 1, x_193); +lean_ctor_set(x_199, 2, x_194); +lean_ctor_set(x_199, 3, x_195); +lean_ctor_set(x_199, 4, x_196); +lean_ctor_set(x_199, 5, x_197); +lean_ctor_set(x_199, 6, x_116); +if (lean_is_scalar(x_191)) { + x_200 = lean_alloc_ctor(0, 2, 0); +} else { + x_200 = x_191; +} +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_190); +if (lean_is_scalar(x_189)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_189; +} +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_188); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_187); +x_203 = 0; +x_204 = l_Lean_Elab_Term_SavedState_restore(x_202, x_203, x_2, x_3, x_4, x_5, x_6, x_7, x_122); +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_206 = x_204; +} else { + lean_dec_ref(x_204); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(1, 2, 0); +} else { + x_207 = x_206; + lean_ctor_set_tag(x_207, 1); +} +lean_ctor_set(x_207, 0, x_111); +lean_ctor_set(x_207, 1, x_205); +return x_207; } } } @@ -13454,7 +18583,7 @@ x_11 = lean_ctor_get(x_8, 1); x_12 = lean_ctor_get(x_10, 5); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); +x_13 = l_Lean_MessageLog_hasErrors(x_12); if (x_13 == 0) { lean_object* x_14; @@ -13493,7 +18622,7 @@ lean_dec(x_8); x_19 = lean_ctor_get(x_17, 5); lean_inc(x_19); lean_dec(x_17); -x_20 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_19); +x_20 = l_Lean_MessageLog_hasErrors(x_19); if (x_20 == 0) { lean_object* x_21; lean_object* x_22; @@ -13617,7 +18746,7 @@ x_18 = lean_ctor_get(x_14, 1); x_19 = lean_ctor_get(x_16, 3); x_20 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2___closed__1; x_21 = 0; -x_22 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_22 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_23 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_23, 0, x_1); lean_ctor_set(x_23, 1, x_22); @@ -13679,7 +18808,7 @@ lean_inc(x_35); lean_dec(x_16); x_42 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2___closed__1; x_43 = 0; -x_44 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_44 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_45 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_45, 0, x_1); lean_ctor_set(x_45, 1, x_44); @@ -13762,7 +18891,7 @@ if (lean_is_exclusive(x_55)) { } x_65 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2___closed__1; x_66 = 0; -x_67 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_67 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_68 = lean_alloc_ctor(0, 2, 17); lean_ctor_set(x_68, 0, x_1); lean_ctor_set(x_68, 1, x_67); @@ -13877,7 +19006,7 @@ return x_26; } else { -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; 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_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; uint8_t x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; x_27 = lean_ctor_get(x_7, 0); x_28 = lean_ctor_get(x_7, 1); x_29 = lean_ctor_get(x_7, 2); @@ -13889,7 +19018,10 @@ x_34 = lean_ctor_get(x_7, 7); x_35 = lean_ctor_get(x_7, 8); x_36 = lean_ctor_get(x_7, 9); x_37 = lean_ctor_get(x_7, 10); -x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_39 = lean_ctor_get(x_7, 11); +x_40 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_39); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -13902,65 +19034,67 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_7); -x_39 = lean_box(0); -x_40 = l_Lean_replaceRef(x_39, x_32); +x_41 = lean_box(0); +x_42 = l_Lean_replaceRef(x_41, x_32); lean_dec(x_32); -x_41 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_41, 0, x_27); -lean_ctor_set(x_41, 1, x_28); -lean_ctor_set(x_41, 2, x_29); -lean_ctor_set(x_41, 3, x_30); -lean_ctor_set(x_41, 4, x_31); -lean_ctor_set(x_41, 5, x_40); -lean_ctor_set(x_41, 6, x_33); -lean_ctor_set(x_41, 7, x_34); -lean_ctor_set(x_41, 8, x_35); -lean_ctor_set(x_41, 9, x_36); -lean_ctor_set(x_41, 10, x_37); -lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_38); +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_27); +lean_ctor_set(x_43, 1, x_28); +lean_ctor_set(x_43, 2, x_29); +lean_ctor_set(x_43, 3, x_30); +lean_ctor_set(x_43, 4, x_31); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_33); +lean_ctor_set(x_43, 7, x_34); +lean_ctor_set(x_43, 8, x_35); +lean_ctor_set(x_43, 9, x_36); +lean_ctor_set(x_43, 10, x_37); +lean_ctor_set(x_43, 11, x_39); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_38); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_40); lean_inc(x_1); -x_42 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1, x_3, x_4, x_5, x_6, x_41, x_8, x_9); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_unbox(x_43); -lean_dec(x_43); -if (x_44 == 0) +x_44 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1, x_3, x_4, x_5, x_6, x_43, x_8, x_9); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_41); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_43); lean_dec(x_2); lean_dec(x_1); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_46 = x_42; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_48 = x_44; } else { - lean_dec_ref(x_42); - x_46 = lean_box(0); + lean_dec_ref(x_44); + x_48 = lean_box(0); } -x_47 = lean_box(0); -if (lean_is_scalar(x_46)) { - x_48 = lean_alloc_ctor(0, 2, 0); +x_49 = lean_box(0); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_48 = x_46; + x_50 = x_48; } -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -return x_48; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_42, 1); -lean_inc(x_49); -lean_dec(x_42); -x_50 = lean_box(0); -x_51 = lean_apply_1(x_2, x_50); -x_52 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_1, x_51, x_3, x_4, x_5, x_6, x_41, x_8, x_49); -lean_dec(x_41); -return x_52; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); +lean_dec(x_44); +x_52 = lean_box(0); +x_53 = lean_apply_1(x_2, x_52); +x_54 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_1, x_53, x_3, x_4, x_5, x_6, x_43, x_8, x_51); +lean_dec(x_43); +return x_54; } } } @@ -14048,7 +19182,7 @@ lean_inc(x_16); lean_dec(x_14); x_17 = lean_ctor_get(x_6, 2); x_18 = lean_ctor_get(x_6, 5); -x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); lean_inc(x_18); lean_inc(x_17); x_20 = lean_alloc_ctor(0, 2, 1); @@ -14377,25 +19511,27 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_16 = lean_ctor_get(x_4, 0); x_17 = lean_ctor_get(x_4, 1); x_18 = lean_ctor_get(x_4, 2); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*9); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 1); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); x_22 = lean_ctor_get(x_4, 3); x_23 = lean_ctor_get(x_4, 4); x_24 = lean_ctor_get(x_4, 5); x_25 = lean_ctor_get(x_4, 6); -x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 4); -x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 5); -x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 6); -x_30 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 3); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 4); +x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 5); +x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 6); +x_30 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); x_31 = lean_ctor_get(x_4, 7); -x_32 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 8); -x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 9); +x_32 = lean_ctor_get(x_4, 8); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 8); +x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 9); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_25); lean_inc(x_24); @@ -14405,33 +19541,34 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_4); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_2); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_18); -x_36 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_36, 0, x_16); -lean_ctor_set(x_36, 1, x_17); -lean_ctor_set(x_36, 2, x_35); -lean_ctor_set(x_36, 3, x_22); -lean_ctor_set(x_36, 4, x_23); -lean_ctor_set(x_36, 5, x_24); -lean_ctor_set(x_36, 6, x_25); -lean_ctor_set(x_36, 7, x_31); -lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_19); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_20); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_21); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 3, x_26); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 4, x_27); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 5, x_28); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 6, x_29); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 7, x_30); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 8, x_32); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 9, x_33); -x_37 = lean_apply_7(x_3, x_36, x_5, x_6, x_7, x_8, x_9, x_10); -return x_37; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_2); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_18); +x_37 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_37, 0, x_16); +lean_ctor_set(x_37, 1, x_17); +lean_ctor_set(x_37, 2, x_36); +lean_ctor_set(x_37, 3, x_22); +lean_ctor_set(x_37, 4, x_23); +lean_ctor_set(x_37, 5, x_24); +lean_ctor_set(x_37, 6, x_25); +lean_ctor_set(x_37, 7, x_31); +lean_ctor_set(x_37, 8, x_32); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_19); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_20); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 2, x_21); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 3, x_26); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 4, x_27); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 5, x_28); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 6, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 7, x_30); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 8, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 9, x_34); +x_38 = lean_apply_7(x_3, x_37, x_5, x_6, x_7, x_8, x_9, x_10); +return x_38; } } } @@ -15666,7 +20803,7 @@ lean_dec(x_9); x_12 = lean_ctor_get(x_10, 5); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); +x_13 = l_Lean_MessageLog_hasErrors(x_12); if (x_13 == 0) { lean_object* x_14; @@ -15992,10 +21129,220 @@ return x_36; } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -16003,1304 +21350,798 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___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_object* x_10) { _start: { -lean_object* x_11; uint8_t x_377; uint8_t x_378; -x_377 = 2; -x_378 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_377); -if (x_378 == 0) +lean_object* x_11; uint8_t x_186; uint8_t x_187; +lean_dec(x_5); +lean_dec(x_4); +x_186 = 2; +x_187 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_186); +if (x_187 == 0) { -lean_object* x_379; -x_379 = lean_box(0); -x_11 = x_379; -goto block_376; +lean_object* x_188; +x_188 = lean_box(0); +x_11 = x_188; +goto block_185; } else { -lean_object* x_380; uint8_t x_381; +lean_object* x_189; uint8_t x_190; lean_inc(x_2); -x_380 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_381 = lean_unbox(x_380); -lean_dec(x_380); -if (x_381 == 0) +x_189 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_190 = lean_unbox(x_189); +lean_dec(x_189); +if (x_190 == 0) { -lean_object* x_382; -x_382 = lean_box(0); -x_11 = x_382; -goto block_376; +lean_object* x_191; +x_191 = lean_box(0); +x_11 = x_191; +goto block_185; } else { -lean_object* x_383; lean_object* x_384; +lean_object* x_192; lean_object* x_193; +lean_dec(x_9); lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_2); -x_383 = lean_box(0); -x_384 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_384, 0, x_383); -lean_ctor_set(x_384, 1, x_10); -return x_384; +lean_dec(x_1); +x_192 = lean_box(0); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_10); +return x_193; } } -block_376: +block_185: { -uint8_t x_12; lean_object* x_370; uint8_t x_371; uint8_t x_372; +uint8_t x_12; lean_object* x_179; uint8_t x_180; uint8_t x_181; lean_dec(x_11); -x_370 = lean_ctor_get(x_8, 2); -lean_inc(x_370); -x_371 = 1; -x_372 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_371); -if (x_372 == 0) +x_179 = lean_ctor_get(x_8, 2); +lean_inc(x_179); +x_180 = 1; +x_181 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_180); +if (x_181 == 0) { -lean_dec(x_370); +lean_dec(x_179); x_12 = x_3; -goto block_369; +goto block_178; } else { -lean_object* x_373; uint8_t x_374; -x_373 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; -x_374 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_370, x_373); -lean_dec(x_370); -if (x_374 == 0) +lean_object* x_182; uint8_t x_183; +x_182 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2; +x_183 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_179, x_182); +lean_dec(x_179); +if (x_183 == 0) { x_12 = x_3; -goto block_369; +goto block_178; } else { -uint8_t x_375; -x_375 = 2; -x_12 = x_375; -goto block_369; +uint8_t x_184; +x_184 = 2; +x_12 = x_184; +goto block_178; } } -block_369: +block_178: { -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_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_ctor_get(x_8, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_8, 1); lean_inc(x_14); x_15 = lean_ctor_get(x_8, 5); lean_inc(x_15); -x_16 = lean_ctor_get(x_8, 6); -lean_inc(x_16); -x_17 = lean_ctor_get(x_8, 7); -lean_inc(x_17); -x_18 = l_Lean_replaceRef(x_1, x_15); +x_16 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_17 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_19 = 0; -x_20 = l_Lean_Syntax_getPos_x3f(x_18, x_19); -x_21 = l_Lean_Syntax_getTailPos_x3f(x_18, x_19); +lean_dec(x_1); +x_18 = 0; +x_19 = l_Lean_Syntax_getPos_x3f(x_17, x_18); +x_20 = l_Lean_Syntax_getTailPos_x3f(x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ if (lean_obj_tag(x_20) == 0) { -if (lean_obj_tag(x_21) == 0) +lean_object* x_21; uint8_t x_22; +x_21 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Lean_FileMap_toPosition(x_14, x_25); +lean_inc(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +if (x_16 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_free_object(x_21); +x_28 = lean_box(0); +x_29 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_23, x_13, x_26, x_27, x_12, x_28, x_8, x_9, x_24); +lean_dec(x_9); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +return x_29; +} +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -x_26 = lean_unsigned_to_nat(0u); -x_27 = l_Lean_FileMap_toPosition(x_14, x_26); -lean_inc(x_27); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_22, 1, x_17); -lean_ctor_set(x_22, 0, x_16); -x_29 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_24); -x_30 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_31 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_31, 0, x_13); -lean_ctor_set(x_31, 1, x_27); -lean_ctor_set(x_31, 2, x_28); -lean_ctor_set(x_31, 3, x_30); -lean_ctor_set(x_31, 4, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_31, sizeof(void*)*5 + 1, x_12); -x_32 = lean_st_ref_take(x_9, x_25); -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_is_exclusive(x_33); -if (x_35 == 0) +lean_object* x_30; uint8_t x_31; +x_30 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_23); +x_31 = l_Lean_MessageData_hasTag(x_30, x_23); +if (x_31 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_33, 5); -x_37 = l_Lean_PersistentArray_push___rarg(x_36, x_31); -lean_ctor_set(x_33, 5, x_37); -x_38 = lean_st_ref_set(x_9, x_33, x_34); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +lean_object* x_32; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_32 = lean_box(0); +lean_ctor_set(x_21, 0, x_32); +return x_21; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_free_object(x_21); +x_33 = lean_box(0); +x_34 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_23, x_13, x_26, x_27, x_12, x_33, x_8, x_9, x_24); +lean_dec(x_9); +lean_dec(x_8); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_21, 0); +x_36 = lean_ctor_get(x_21, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_21); +x_37 = lean_unsigned_to_nat(0u); +x_38 = l_Lean_FileMap_toPosition(x_14, x_37); +lean_inc(x_38); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +if (x_16 == 0) { lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -x_41 = lean_box(0); -lean_ctor_set(x_38, 0, x_41); -return x_38; +x_40 = lean_box(0); +x_41 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_35, x_13, x_38, x_39, x_12, x_40, x_8, x_9, x_36); +lean_dec(x_9); +lean_dec(x_8); +return x_41; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_38, 1); -lean_inc(x_42); +lean_object* x_42; uint8_t x_43; +x_42 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_35); +x_43 = l_Lean_MessageData_hasTag(x_42, x_35); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_39); lean_dec(x_38); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_dec(x_35); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_36); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_box(0); +x_47 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_35, x_13, x_38, x_39, x_12, x_46, x_8, x_9, x_36); +lean_dec(x_9); +lean_dec(x_8); +return x_47; +} +} } } else { -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; -x_45 = lean_ctor_get(x_33, 0); -x_46 = lean_ctor_get(x_33, 1); -x_47 = lean_ctor_get(x_33, 2); -x_48 = lean_ctor_get(x_33, 3); -x_49 = lean_ctor_get(x_33, 4); -x_50 = lean_ctor_get(x_33, 5); -x_51 = lean_ctor_get(x_33, 6); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_33); -x_52 = l_Lean_PersistentArray_push___rarg(x_50, x_31); -x_53 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_53, 0, x_45); -lean_ctor_set(x_53, 1, x_46); -lean_ctor_set(x_53, 2, x_47); -lean_ctor_set(x_53, 3, x_48); -lean_ctor_set(x_53, 4, x_49); -lean_ctor_set(x_53, 5, x_52); -lean_ctor_set(x_53, 6, x_51); -x_54 = lean_st_ref_set(x_9, x_53, x_34); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; -} else { - lean_dec_ref(x_54); - x_56 = lean_box(0); -} +uint8_t x_48; +x_48 = !lean_is_exclusive(x_20); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_20, 0); +x_50 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +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; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +x_54 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_55 = l_Lean_FileMap_toPosition(x_14, x_54); +x_56 = l_Lean_FileMap_toPosition(x_14, x_49); +lean_dec(x_49); +lean_ctor_set(x_20, 0, x_56); +if (x_16 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_free_object(x_50); x_57 = lean_box(0); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_56; -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_55); +x_58 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_52, x_13, x_55, x_20, x_12, x_57, x_8, x_9, x_53); +lean_dec(x_9); +lean_dec(x_8); return x_58; } -} else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_59 = lean_ctor_get(x_22, 0); -x_60 = lean_ctor_get(x_22, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_22); -x_61 = lean_unsigned_to_nat(0u); -x_62 = l_Lean_FileMap_toPosition(x_14, x_61); -lean_inc(x_62); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_16); -lean_ctor_set(x_64, 1, x_17); -x_65 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_59); -x_66 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_67 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_67, 0, x_13); -lean_ctor_set(x_67, 1, x_62); -lean_ctor_set(x_67, 2, x_63); -lean_ctor_set(x_67, 3, x_66); -lean_ctor_set(x_67, 4, x_65); -lean_ctor_set_uint8(x_67, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_67, sizeof(void*)*5 + 1, x_12); -x_68 = lean_st_ref_take(x_9, x_60); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_69, 2); -lean_inc(x_73); -x_74 = lean_ctor_get(x_69, 3); -lean_inc(x_74); -x_75 = lean_ctor_get(x_69, 4); -lean_inc(x_75); -x_76 = lean_ctor_get(x_69, 5); -lean_inc(x_76); -x_77 = lean_ctor_get(x_69, 6); -lean_inc(x_77); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - lean_ctor_release(x_69, 2); - lean_ctor_release(x_69, 3); - lean_ctor_release(x_69, 4); - lean_ctor_release(x_69, 5); - lean_ctor_release(x_69, 6); - x_78 = x_69; -} else { - lean_dec_ref(x_69); - x_78 = lean_box(0); -} -x_79 = l_Lean_PersistentArray_push___rarg(x_76, x_67); -if (lean_is_scalar(x_78)) { - x_80 = lean_alloc_ctor(0, 7, 0); -} else { - x_80 = x_78; -} -lean_ctor_set(x_80, 0, x_71); -lean_ctor_set(x_80, 1, x_72); -lean_ctor_set(x_80, 2, x_73); -lean_ctor_set(x_80, 3, x_74); -lean_ctor_set(x_80, 4, x_75); -lean_ctor_set(x_80, 5, x_79); -lean_ctor_set(x_80, 6, x_77); -x_81 = lean_st_ref_set(x_9, x_80, x_70); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; -} else { - lean_dec_ref(x_81); - x_83 = lean_box(0); -} -x_84 = lean_box(0); -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 0); -} else { - x_85 = x_83; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; -} -} -else +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_52); +x_60 = l_Lean_MessageData_hasTag(x_59, x_52); +if (x_60 == 0) { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_21); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = lean_ctor_get(x_21, 0); -x_88 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_61; +lean_dec(x_20); +lean_dec(x_55); +lean_dec(x_52); +lean_dec(x_13); +lean_dec(x_9); lean_dec(x_8); -x_89 = !lean_is_exclusive(x_88); +x_61 = lean_box(0); +lean_ctor_set(x_50, 0, x_61); +return x_50; +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_free_object(x_50); +x_62 = lean_box(0); +x_63 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_52, x_13, x_55, x_20, x_12, x_62, x_8, x_9, x_53); +lean_dec(x_9); +lean_dec(x_8); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_50, 0); +x_65 = lean_ctor_get(x_50, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_50); +x_66 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_67 = l_Lean_FileMap_toPosition(x_14, x_66); +x_68 = l_Lean_FileMap_toPosition(x_14, x_49); +lean_dec(x_49); +lean_ctor_set(x_20, 0, x_68); +if (x_16 == 0) +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_box(0); +x_70 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_64, x_13, x_67, x_20, x_12, x_69, x_8, x_9, x_65); +lean_dec(x_9); +lean_dec(x_8); +return x_70; +} +else +{ +lean_object* x_71; uint8_t x_72; +x_71 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_64); +x_72 = l_Lean_MessageData_hasTag(x_71, x_64); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_20); +lean_dec(x_67); +lean_dec(x_64); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_65); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_box(0); +x_76 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_64, x_13, x_67, x_20, x_12, x_75, x_8, x_9, x_65); +lean_dec(x_9); +lean_dec(x_8); +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; +x_77 = lean_ctor_get(x_20, 0); +lean_inc(x_77); +lean_dec(x_20); +x_78 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_83 = l_Lean_FileMap_toPosition(x_14, x_82); +x_84 = l_Lean_FileMap_toPosition(x_14, x_77); +lean_dec(x_77); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_84); +if (x_16 == 0) +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +x_86 = lean_box(0); +x_87 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_79, x_13, x_83, x_85, x_12, x_86, x_8, x_9, x_80); +lean_dec(x_9); +lean_dec(x_8); +return x_87; +} +else +{ +lean_object* x_88; uint8_t x_89; +x_88 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_79); +x_89 = l_Lean_MessageData_hasTag(x_88, x_79); 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; 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_90 = lean_ctor_get(x_88, 0); -x_91 = lean_ctor_get(x_88, 1); -x_92 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_93 = l_Lean_FileMap_toPosition(x_14, x_92); -x_94 = l_Lean_FileMap_toPosition(x_14, x_87); -lean_dec(x_87); -lean_ctor_set(x_21, 0, x_94); -lean_ctor_set(x_88, 1, x_17); -lean_ctor_set(x_88, 0, x_16); -x_95 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_95, 0, x_88); -lean_ctor_set(x_95, 1, x_90); -x_96 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_97 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_97, 0, x_13); -lean_ctor_set(x_97, 1, x_93); -lean_ctor_set(x_97, 2, x_21); -lean_ctor_set(x_97, 3, x_96); -lean_ctor_set(x_97, 4, x_95); -lean_ctor_set_uint8(x_97, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_97, sizeof(void*)*5 + 1, x_12); -x_98 = lean_st_ref_take(x_9, x_91); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) +lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_90 = lean_box(0); +if (lean_is_scalar(x_81)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_81; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_80); +return x_91; +} +else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = lean_ctor_get(x_99, 5); -x_103 = l_Lean_PersistentArray_push___rarg(x_102, x_97); -lean_ctor_set(x_99, 5, x_103); -x_104 = lean_st_ref_set(x_9, x_99, x_100); -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) +lean_object* x_92; lean_object* x_93; +lean_dec(x_81); +x_92 = lean_box(0); +x_93 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_79, x_13, x_83, x_85, x_12, x_92, x_8, x_9, x_80); +lean_dec(x_9); +lean_dec(x_8); +return x_93; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_94; +x_94 = !lean_is_exclusive(x_19); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_19, 0); +x_96 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_ctor_get(x_96, 1); +x_100 = l_Lean_FileMap_toPosition(x_14, x_95); +lean_dec(x_95); +lean_inc(x_100); +lean_ctor_set(x_19, 0, x_100); +if (x_16 == 0) +{ +lean_object* x_101; lean_object* x_102; +lean_free_object(x_96); +x_101 = lean_box(0); +x_102 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_98, x_13, x_100, x_19, x_12, x_101, x_8, x_9, x_99); +lean_dec(x_9); +lean_dec(x_8); +return x_102; +} +else +{ +lean_object* x_103; uint8_t x_104; +x_103 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_98); +x_104 = l_Lean_MessageData_hasTag(x_103, x_98); +if (x_104 == 0) +{ +lean_object* x_105; +lean_dec(x_19); +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_105 = lean_box(0); +lean_ctor_set(x_96, 0, x_105); +return x_96; +} +else { lean_object* x_106; lean_object* x_107; -x_106 = lean_ctor_get(x_104, 0); -lean_dec(x_106); -x_107 = lean_box(0); -lean_ctor_set(x_104, 0, x_107); -return x_104; +lean_free_object(x_96); +x_106 = lean_box(0); +x_107 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_98, x_13, x_100, x_19, x_12, x_106, x_8, x_9, x_99); +lean_dec(x_9); +lean_dec(x_8); +return x_107; +} +} } else { lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_104, 1); +x_108 = lean_ctor_get(x_96, 0); +x_109 = lean_ctor_get(x_96, 1); +lean_inc(x_109); lean_inc(x_108); -lean_dec(x_104); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_108); -return x_110; +lean_dec(x_96); +x_110 = l_Lean_FileMap_toPosition(x_14, x_95); +lean_dec(x_95); +lean_inc(x_110); +lean_ctor_set(x_19, 0, x_110); +if (x_16 == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = lean_box(0); +x_112 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_108, x_13, x_110, x_19, x_12, x_111, x_8, x_9, x_109); +lean_dec(x_9); +lean_dec(x_8); +return x_112; +} +else +{ +lean_object* x_113; uint8_t x_114; +x_113 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_108); +x_114 = l_Lean_MessageData_hasTag(x_113, x_108); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_19); +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_115 = lean_box(0); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_109); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; +x_117 = lean_box(0); +x_118 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_108, x_13, x_110, x_19, x_12, x_117, x_8, x_9, x_109); +lean_dec(x_9); +lean_dec(x_8); +return x_118; +} +} } } 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; 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; -x_111 = lean_ctor_get(x_99, 0); -x_112 = lean_ctor_get(x_99, 1); -x_113 = lean_ctor_get(x_99, 2); -x_114 = lean_ctor_get(x_99, 3); -x_115 = lean_ctor_get(x_99, 4); -x_116 = lean_ctor_get(x_99, 5); -x_117 = lean_ctor_get(x_99, 6); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_99); -x_118 = l_Lean_PersistentArray_push___rarg(x_116, x_97); -x_119 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_119, 0, x_111); -lean_ctor_set(x_119, 1, x_112); -lean_ctor_set(x_119, 2, x_113); -lean_ctor_set(x_119, 3, x_114); -lean_ctor_set(x_119, 4, x_115); -lean_ctor_set(x_119, 5, x_118); -lean_ctor_set(x_119, 6, x_117); -x_120 = lean_st_ref_set(x_9, x_119, x_100); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_119 = lean_ctor_get(x_19, 0); +lean_inc(x_119); +lean_dec(x_19); +x_120 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); if (lean_is_exclusive(x_120)) { lean_ctor_release(x_120, 0); lean_ctor_release(x_120, 1); - x_122 = x_120; + x_123 = x_120; } else { lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(0); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; + x_123 = lean_box(0); } +x_124 = l_Lean_FileMap_toPosition(x_14, x_119); +lean_dec(x_119); +lean_inc(x_124); +x_125 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_125, 0, x_124); +if (x_16 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_123); +x_126 = lean_box(0); +x_127 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_121, x_13, x_124, x_125, x_12, x_126, x_8, x_9, x_122); +lean_dec(x_9); +lean_dec(x_8); +return x_127; } 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; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_125 = lean_ctor_get(x_88, 0); -x_126 = lean_ctor_get(x_88, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_88); -x_127 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_128 = l_Lean_FileMap_toPosition(x_14, x_127); -x_129 = l_Lean_FileMap_toPosition(x_14, x_87); -lean_dec(x_87); -lean_ctor_set(x_21, 0, x_129); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_16); -lean_ctor_set(x_130, 1, x_17); -x_131 = lean_alloc_ctor(3, 2, 0); +lean_object* x_128; uint8_t x_129; +x_128 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_121); +x_129 = l_Lean_MessageData_hasTag(x_128, x_121); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_121); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_130 = lean_box(0); +if (lean_is_scalar(x_123)) { + x_131 = lean_alloc_ctor(0, 2, 0); +} else { + x_131 = x_123; +} lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_125); -x_132 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_133 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_133, 0, x_13); -lean_ctor_set(x_133, 1, x_128); -lean_ctor_set(x_133, 2, x_21); -lean_ctor_set(x_133, 3, x_132); -lean_ctor_set(x_133, 4, x_131); -lean_ctor_set_uint8(x_133, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_133, sizeof(void*)*5 + 1, x_12); -x_134 = lean_st_ref_take(x_9, x_126); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); +lean_ctor_set(x_131, 1, x_122); +return x_131; +} +else +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_123); +x_132 = lean_box(0); +x_133 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_121, x_13, x_124, x_125, x_12, x_132, x_8, x_9, x_122); +lean_dec(x_9); +lean_dec(x_8); +return x_133; +} +} +} +} +else +{ +lean_object* x_134; uint8_t x_135; +x_134 = lean_ctor_get(x_19, 0); +lean_inc(x_134); +lean_dec(x_19); +x_135 = !lean_is_exclusive(x_20); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_20, 0); +x_137 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_14); +x_141 = l_Lean_FileMap_toPosition(x_14, x_134); lean_dec(x_134); -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_135, 2); +x_142 = l_Lean_FileMap_toPosition(x_14, x_136); +lean_dec(x_136); +lean_ctor_set(x_20, 0, x_142); +if (x_16 == 0) +{ +lean_object* x_143; lean_object* x_144; +lean_free_object(x_137); +x_143 = lean_box(0); +x_144 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_139, x_13, x_141, x_20, x_12, x_143, x_8, x_9, x_140); +lean_dec(x_9); +lean_dec(x_8); +return x_144; +} +else +{ +lean_object* x_145; uint8_t x_146; +x_145 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 3); -lean_inc(x_140); -x_141 = lean_ctor_get(x_135, 4); -lean_inc(x_141); -x_142 = lean_ctor_get(x_135, 5); -lean_inc(x_142); -x_143 = lean_ctor_get(x_135, 6); -lean_inc(x_143); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - lean_ctor_release(x_135, 2); - lean_ctor_release(x_135, 3); - lean_ctor_release(x_135, 4); - lean_ctor_release(x_135, 5); - lean_ctor_release(x_135, 6); - x_144 = x_135; -} else { - lean_dec_ref(x_135); - x_144 = lean_box(0); +x_146 = l_Lean_MessageData_hasTag(x_145, x_139); +if (x_146 == 0) +{ +lean_object* x_147; +lean_dec(x_20); +lean_dec(x_141); +lean_dec(x_139); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_147 = lean_box(0); +lean_ctor_set(x_137, 0, x_147); +return x_137; } -x_145 = l_Lean_PersistentArray_push___rarg(x_142, x_133); -if (lean_is_scalar(x_144)) { - x_146 = lean_alloc_ctor(0, 7, 0); -} else { - x_146 = x_144; +else +{ +lean_object* x_148; lean_object* x_149; +lean_free_object(x_137); +x_148 = lean_box(0); +x_149 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_139, x_13, x_141, x_20, x_12, x_148, x_8, x_9, x_140); +lean_dec(x_9); +lean_dec(x_8); +return x_149; } -lean_ctor_set(x_146, 0, x_137); -lean_ctor_set(x_146, 1, x_138); -lean_ctor_set(x_146, 2, x_139); -lean_ctor_set(x_146, 3, x_140); -lean_ctor_set(x_146, 4, x_141); -lean_ctor_set(x_146, 5, x_145); -lean_ctor_set(x_146, 6, x_143); -x_147 = lean_st_ref_set(x_9, x_146, x_136); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_149 = x_147; -} else { - lean_dec_ref(x_147); - x_149 = lean_box(0); -} -x_150 = lean_box(0); -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_150); -lean_ctor_set(x_151, 1, x_148); -return x_151; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_152 = lean_ctor_get(x_21, 0); -lean_inc(x_152); -lean_dec(x_21); -x_153 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_156 = x_153; -} else { - lean_dec_ref(x_153); - x_156 = lean_box(0); -} -x_157 = lean_unsigned_to_nat(0u); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_150 = lean_ctor_get(x_137, 0); +x_151 = lean_ctor_get(x_137, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_137); lean_inc(x_14); -x_158 = l_Lean_FileMap_toPosition(x_14, x_157); -x_159 = l_Lean_FileMap_toPosition(x_14, x_152); +x_152 = l_Lean_FileMap_toPosition(x_14, x_134); +lean_dec(x_134); +x_153 = l_Lean_FileMap_toPosition(x_14, x_136); +lean_dec(x_136); +lean_ctor_set(x_20, 0, x_153); +if (x_16 == 0) +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_box(0); +x_155 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_150, x_13, x_152, x_20, x_12, x_154, x_8, x_9, x_151); +lean_dec(x_9); +lean_dec(x_8); +return x_155; +} +else +{ +lean_object* x_156; uint8_t x_157; +x_156 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_150); +x_157 = l_Lean_MessageData_hasTag(x_156, x_150); +if (x_157 == 0) +{ +lean_object* x_158; lean_object* x_159; +lean_dec(x_20); lean_dec(x_152); -x_160 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_160, 0, x_159); -if (lean_is_scalar(x_156)) { - x_161 = lean_alloc_ctor(0, 2, 0); -} else { - x_161 = x_156; +lean_dec(x_150); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_158 = lean_box(0); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_151); +return x_159; } -lean_ctor_set(x_161, 0, x_16); -lean_ctor_set(x_161, 1, x_17); -x_162 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_154); -x_163 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_164 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_164, 0, x_13); -lean_ctor_set(x_164, 1, x_158); -lean_ctor_set(x_164, 2, x_160); -lean_ctor_set(x_164, 3, x_163); -lean_ctor_set(x_164, 4, x_162); -lean_ctor_set_uint8(x_164, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_164, sizeof(void*)*5 + 1, x_12); -x_165 = lean_st_ref_take(x_9, x_155); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_166, 1); -lean_inc(x_169); -x_170 = lean_ctor_get(x_166, 2); -lean_inc(x_170); -x_171 = lean_ctor_get(x_166, 3); -lean_inc(x_171); -x_172 = lean_ctor_get(x_166, 4); -lean_inc(x_172); -x_173 = lean_ctor_get(x_166, 5); -lean_inc(x_173); -x_174 = lean_ctor_get(x_166, 6); -lean_inc(x_174); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - lean_ctor_release(x_166, 2); - lean_ctor_release(x_166, 3); - lean_ctor_release(x_166, 4); - lean_ctor_release(x_166, 5); - lean_ctor_release(x_166, 6); +else +{ +lean_object* x_160; lean_object* x_161; +x_160 = lean_box(0); +x_161 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_150, x_13, x_152, x_20, x_12, x_160, x_8, x_9, x_151); +lean_dec(x_9); +lean_dec(x_8); +return x_161; +} +} +} +} +else +{ +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_162 = lean_ctor_get(x_20, 0); +lean_inc(x_162); +lean_dec(x_20); +x_163 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +lean_inc(x_14); +x_167 = l_Lean_FileMap_toPosition(x_14, x_134); +lean_dec(x_134); +x_168 = l_Lean_FileMap_toPosition(x_14, x_162); +lean_dec(x_162); +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_168); +if (x_16 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_166); +x_170 = lean_box(0); +x_171 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_164, x_13, x_167, x_169, x_12, x_170, x_8, x_9, x_165); +lean_dec(x_9); +lean_dec(x_8); +return x_171; +} +else +{ +lean_object* x_172; uint8_t x_173; +x_172 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_164); +x_173 = l_Lean_MessageData_hasTag(x_172, x_164); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; +lean_dec(x_169); +lean_dec(x_167); +lean_dec(x_164); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +x_174 = lean_box(0); +if (lean_is_scalar(x_166)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { x_175 = x_166; -} else { - lean_dec_ref(x_166); - x_175 = lean_box(0); -} -x_176 = l_Lean_PersistentArray_push___rarg(x_173, x_164); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(0, 7, 0); -} else { - x_177 = x_175; -} -lean_ctor_set(x_177, 0, x_168); -lean_ctor_set(x_177, 1, x_169); -lean_ctor_set(x_177, 2, x_170); -lean_ctor_set(x_177, 3, x_171); -lean_ctor_set(x_177, 4, x_172); -lean_ctor_set(x_177, 5, x_176); -lean_ctor_set(x_177, 6, x_174); -x_178 = lean_st_ref_set(x_9, x_177, x_167); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_180 = x_178; -} else { - lean_dec_ref(x_178); - x_180 = lean_box(0); -} -x_181 = lean_box(0); -if (lean_is_scalar(x_180)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_180; -} -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_179); -return x_182; -} } +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_165); +return x_175; } else { -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_183; -x_183 = !lean_is_exclusive(x_20); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_184 = lean_ctor_get(x_20, 0); -x_185 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_176; lean_object* x_177; +lean_dec(x_166); +x_176 = lean_box(0); +x_177 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_164, x_13, x_167, x_169, x_12, x_176, x_8, x_9, x_165); +lean_dec(x_9); lean_dec(x_8); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -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; uint8_t x_196; -x_187 = lean_ctor_get(x_185, 0); -x_188 = lean_ctor_get(x_185, 1); -x_189 = l_Lean_FileMap_toPosition(x_14, x_184); -lean_dec(x_184); -lean_inc(x_189); -lean_ctor_set(x_20, 0, x_189); -lean_ctor_set(x_185, 1, x_17); -lean_ctor_set(x_185, 0, x_16); -x_190 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_190, 0, x_185); -lean_ctor_set(x_190, 1, x_187); -x_191 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_192 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_192, 0, x_13); -lean_ctor_set(x_192, 1, x_189); -lean_ctor_set(x_192, 2, x_20); -lean_ctor_set(x_192, 3, x_191); -lean_ctor_set(x_192, 4, x_190); -lean_ctor_set_uint8(x_192, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_192, sizeof(void*)*5 + 1, x_12); -x_193 = lean_st_ref_take(x_9, x_188); -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_is_exclusive(x_194); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; -x_197 = lean_ctor_get(x_194, 5); -x_198 = l_Lean_PersistentArray_push___rarg(x_197, x_192); -lean_ctor_set(x_194, 5, x_198); -x_199 = lean_st_ref_set(x_9, x_194, x_195); -x_200 = !lean_is_exclusive(x_199); -if (x_200 == 0) -{ -lean_object* x_201; lean_object* x_202; -x_201 = lean_ctor_get(x_199, 0); -lean_dec(x_201); -x_202 = lean_box(0); -lean_ctor_set(x_199, 0, x_202); -return x_199; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_199, 1); -lean_inc(x_203); -lean_dec(x_199); -x_204 = lean_box(0); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -return x_205; +return x_177; } } -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_206 = lean_ctor_get(x_194, 0); -x_207 = lean_ctor_get(x_194, 1); -x_208 = lean_ctor_get(x_194, 2); -x_209 = lean_ctor_get(x_194, 3); -x_210 = lean_ctor_get(x_194, 4); -x_211 = lean_ctor_get(x_194, 5); -x_212 = lean_ctor_get(x_194, 6); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); -lean_inc(x_209); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_194); -x_213 = l_Lean_PersistentArray_push___rarg(x_211, x_192); -x_214 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_214, 0, x_206); -lean_ctor_set(x_214, 1, x_207); -lean_ctor_set(x_214, 2, x_208); -lean_ctor_set(x_214, 3, x_209); -lean_ctor_set(x_214, 4, x_210); -lean_ctor_set(x_214, 5, x_213); -lean_ctor_set(x_214, 6, x_212); -x_215 = lean_st_ref_set(x_9, x_214, x_195); -x_216 = lean_ctor_get(x_215, 1); -lean_inc(x_216); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_217 = x_215; -} else { - lean_dec_ref(x_215); - x_217 = lean_box(0); -} -x_218 = lean_box(0); -if (lean_is_scalar(x_217)) { - x_219 = lean_alloc_ctor(0, 2, 0); -} else { - x_219 = x_217; -} -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_216); -return x_219; -} -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_220 = lean_ctor_get(x_185, 0); -x_221 = lean_ctor_get(x_185, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_185); -x_222 = l_Lean_FileMap_toPosition(x_14, x_184); -lean_dec(x_184); -lean_inc(x_222); -lean_ctor_set(x_20, 0, x_222); -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_16); -lean_ctor_set(x_223, 1, x_17); -x_224 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_220); -x_225 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_226 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_226, 0, x_13); -lean_ctor_set(x_226, 1, x_222); -lean_ctor_set(x_226, 2, x_20); -lean_ctor_set(x_226, 3, x_225); -lean_ctor_set(x_226, 4, x_224); -lean_ctor_set_uint8(x_226, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_226, sizeof(void*)*5 + 1, x_12); -x_227 = lean_st_ref_take(x_9, x_221); -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec(x_227); -x_230 = lean_ctor_get(x_228, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_228, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_228, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_228, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_228, 4); -lean_inc(x_234); -x_235 = lean_ctor_get(x_228, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_228, 6); -lean_inc(x_236); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - lean_ctor_release(x_228, 2); - lean_ctor_release(x_228, 3); - lean_ctor_release(x_228, 4); - lean_ctor_release(x_228, 5); - lean_ctor_release(x_228, 6); - x_237 = x_228; -} else { - lean_dec_ref(x_228); - x_237 = lean_box(0); -} -x_238 = l_Lean_PersistentArray_push___rarg(x_235, x_226); -if (lean_is_scalar(x_237)) { - x_239 = lean_alloc_ctor(0, 7, 0); -} else { - x_239 = x_237; -} -lean_ctor_set(x_239, 0, x_230); -lean_ctor_set(x_239, 1, x_231); -lean_ctor_set(x_239, 2, x_232); -lean_ctor_set(x_239, 3, x_233); -lean_ctor_set(x_239, 4, x_234); -lean_ctor_set(x_239, 5, x_238); -lean_ctor_set(x_239, 6, x_236); -x_240 = lean_st_ref_set(x_9, x_239, x_229); -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_242 = x_240; -} else { - lean_dec_ref(x_240); - x_242 = lean_box(0); -} -x_243 = lean_box(0); -if (lean_is_scalar(x_242)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_242; -} -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_241); -return x_244; -} -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_245 = lean_ctor_get(x_20, 0); -lean_inc(x_245); -lean_dec(x_20); -x_246 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -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_Lean_FileMap_toPosition(x_14, x_245); -lean_dec(x_245); -lean_inc(x_250); -x_251 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_251, 0, x_250); -if (lean_is_scalar(x_249)) { - x_252 = lean_alloc_ctor(0, 2, 0); -} else { - x_252 = x_249; -} -lean_ctor_set(x_252, 0, x_16); -lean_ctor_set(x_252, 1, x_17); -x_253 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_247); -x_254 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_255 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_255, 0, x_13); -lean_ctor_set(x_255, 1, x_250); -lean_ctor_set(x_255, 2, x_251); -lean_ctor_set(x_255, 3, x_254); -lean_ctor_set(x_255, 4, x_253); -lean_ctor_set_uint8(x_255, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_255, sizeof(void*)*5 + 1, x_12); -x_256 = lean_st_ref_take(x_9, x_248); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -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); -x_261 = lean_ctor_get(x_257, 2); -lean_inc(x_261); -x_262 = lean_ctor_get(x_257, 3); -lean_inc(x_262); -x_263 = lean_ctor_get(x_257, 4); -lean_inc(x_263); -x_264 = lean_ctor_get(x_257, 5); -lean_inc(x_264); -x_265 = lean_ctor_get(x_257, 6); -lean_inc(x_265); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - lean_ctor_release(x_257, 2); - lean_ctor_release(x_257, 3); - lean_ctor_release(x_257, 4); - lean_ctor_release(x_257, 5); - lean_ctor_release(x_257, 6); - x_266 = x_257; -} else { - lean_dec_ref(x_257); - x_266 = lean_box(0); -} -x_267 = l_Lean_PersistentArray_push___rarg(x_264, x_255); -if (lean_is_scalar(x_266)) { - x_268 = lean_alloc_ctor(0, 7, 0); -} else { - x_268 = x_266; -} -lean_ctor_set(x_268, 0, x_259); -lean_ctor_set(x_268, 1, x_260); -lean_ctor_set(x_268, 2, x_261); -lean_ctor_set(x_268, 3, x_262); -lean_ctor_set(x_268, 4, x_263); -lean_ctor_set(x_268, 5, x_267); -lean_ctor_set(x_268, 6, x_265); -x_269 = lean_st_ref_set(x_9, x_268, x_258); -x_270 = lean_ctor_get(x_269, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_271 = x_269; -} else { - lean_dec_ref(x_269); - x_271 = lean_box(0); -} -x_272 = lean_box(0); -if (lean_is_scalar(x_271)) { - x_273 = lean_alloc_ctor(0, 2, 0); -} else { - x_273 = x_271; -} -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_270); -return x_273; -} -} -else -{ -lean_object* x_274; uint8_t x_275; -x_274 = lean_ctor_get(x_20, 0); -lean_inc(x_274); -lean_dec(x_20); -x_275 = !lean_is_exclusive(x_21); -if (x_275 == 0) -{ -lean_object* x_276; lean_object* x_277; uint8_t x_278; -x_276 = lean_ctor_get(x_21, 0); -x_277 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_278 = !lean_is_exclusive(x_277); -if (x_278 == 0) -{ -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; uint8_t x_289; -x_279 = lean_ctor_get(x_277, 0); -x_280 = lean_ctor_get(x_277, 1); -lean_inc(x_14); -x_281 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_282 = l_Lean_FileMap_toPosition(x_14, x_276); -lean_dec(x_276); -lean_ctor_set(x_21, 0, x_282); -lean_ctor_set(x_277, 1, x_17); -lean_ctor_set(x_277, 0, x_16); -x_283 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_283, 0, x_277); -lean_ctor_set(x_283, 1, x_279); -x_284 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_285 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_285, 0, x_13); -lean_ctor_set(x_285, 1, x_281); -lean_ctor_set(x_285, 2, x_21); -lean_ctor_set(x_285, 3, x_284); -lean_ctor_set(x_285, 4, x_283); -lean_ctor_set_uint8(x_285, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_285, sizeof(void*)*5 + 1, x_12); -x_286 = lean_st_ref_take(x_9, x_280); -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec(x_286); -x_289 = !lean_is_exclusive(x_287); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; -x_290 = lean_ctor_get(x_287, 5); -x_291 = l_Lean_PersistentArray_push___rarg(x_290, x_285); -lean_ctor_set(x_287, 5, x_291); -x_292 = lean_st_ref_set(x_9, x_287, x_288); -x_293 = !lean_is_exclusive(x_292); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; -x_294 = lean_ctor_get(x_292, 0); -lean_dec(x_294); -x_295 = lean_box(0); -lean_ctor_set(x_292, 0, x_295); -return x_292; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_292, 1); -lean_inc(x_296); -lean_dec(x_292); -x_297 = lean_box(0); -x_298 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_296); -return x_298; -} -} -else -{ -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; lean_object* x_312; -x_299 = lean_ctor_get(x_287, 0); -x_300 = lean_ctor_get(x_287, 1); -x_301 = lean_ctor_get(x_287, 2); -x_302 = lean_ctor_get(x_287, 3); -x_303 = lean_ctor_get(x_287, 4); -x_304 = lean_ctor_get(x_287, 5); -x_305 = lean_ctor_get(x_287, 6); -lean_inc(x_305); -lean_inc(x_304); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_dec(x_287); -x_306 = l_Lean_PersistentArray_push___rarg(x_304, x_285); -x_307 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_307, 0, x_299); -lean_ctor_set(x_307, 1, x_300); -lean_ctor_set(x_307, 2, x_301); -lean_ctor_set(x_307, 3, x_302); -lean_ctor_set(x_307, 4, x_303); -lean_ctor_set(x_307, 5, x_306); -lean_ctor_set(x_307, 6, x_305); -x_308 = lean_st_ref_set(x_9, x_307, x_288); -x_309 = lean_ctor_get(x_308, 1); -lean_inc(x_309); -if (lean_is_exclusive(x_308)) { - lean_ctor_release(x_308, 0); - lean_ctor_release(x_308, 1); - x_310 = x_308; -} else { - lean_dec_ref(x_308); - x_310 = lean_box(0); -} -x_311 = lean_box(0); -if (lean_is_scalar(x_310)) { - x_312 = lean_alloc_ctor(0, 2, 0); -} else { - x_312 = x_310; -} -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_309); -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_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_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_313 = lean_ctor_get(x_277, 0); -x_314 = lean_ctor_get(x_277, 1); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_277); -lean_inc(x_14); -x_315 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_316 = l_Lean_FileMap_toPosition(x_14, x_276); -lean_dec(x_276); -lean_ctor_set(x_21, 0, x_316); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_16); -lean_ctor_set(x_317, 1, x_17); -x_318 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_313); -x_319 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_320 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_320, 0, x_13); -lean_ctor_set(x_320, 1, x_315); -lean_ctor_set(x_320, 2, x_21); -lean_ctor_set(x_320, 3, x_319); -lean_ctor_set(x_320, 4, x_318); -lean_ctor_set_uint8(x_320, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_320, sizeof(void*)*5 + 1, x_12); -x_321 = lean_st_ref_take(x_9, x_314); -x_322 = lean_ctor_get(x_321, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_321, 1); -lean_inc(x_323); -lean_dec(x_321); -x_324 = lean_ctor_get(x_322, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_322, 1); -lean_inc(x_325); -x_326 = lean_ctor_get(x_322, 2); -lean_inc(x_326); -x_327 = lean_ctor_get(x_322, 3); -lean_inc(x_327); -x_328 = lean_ctor_get(x_322, 4); -lean_inc(x_328); -x_329 = lean_ctor_get(x_322, 5); -lean_inc(x_329); -x_330 = lean_ctor_get(x_322, 6); -lean_inc(x_330); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - lean_ctor_release(x_322, 2); - lean_ctor_release(x_322, 3); - lean_ctor_release(x_322, 4); - lean_ctor_release(x_322, 5); - lean_ctor_release(x_322, 6); - x_331 = x_322; -} else { - lean_dec_ref(x_322); - x_331 = lean_box(0); -} -x_332 = l_Lean_PersistentArray_push___rarg(x_329, x_320); -if (lean_is_scalar(x_331)) { - x_333 = lean_alloc_ctor(0, 7, 0); -} else { - x_333 = x_331; -} -lean_ctor_set(x_333, 0, x_324); -lean_ctor_set(x_333, 1, x_325); -lean_ctor_set(x_333, 2, x_326); -lean_ctor_set(x_333, 3, x_327); -lean_ctor_set(x_333, 4, x_328); -lean_ctor_set(x_333, 5, x_332); -lean_ctor_set(x_333, 6, x_330); -x_334 = lean_st_ref_set(x_9, x_333, x_323); -x_335 = lean_ctor_get(x_334, 1); -lean_inc(x_335); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_336 = x_334; -} else { - lean_dec_ref(x_334); - x_336 = lean_box(0); -} -x_337 = lean_box(0); -if (lean_is_scalar(x_336)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_336; -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_335); -return x_338; -} -} -else -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; 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; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_339 = lean_ctor_get(x_21, 0); -lean_inc(x_339); -lean_dec(x_21); -x_340 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -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); -} -lean_inc(x_14); -x_344 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_345 = l_Lean_FileMap_toPosition(x_14, x_339); -lean_dec(x_339); -x_346 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_346, 0, x_345); -if (lean_is_scalar(x_343)) { - x_347 = lean_alloc_ctor(0, 2, 0); -} else { - x_347 = x_343; -} -lean_ctor_set(x_347, 0, x_16); -lean_ctor_set(x_347, 1, x_17); -x_348 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_341); -x_349 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_350 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_350, 0, x_13); -lean_ctor_set(x_350, 1, x_344); -lean_ctor_set(x_350, 2, x_346); -lean_ctor_set(x_350, 3, x_349); -lean_ctor_set(x_350, 4, x_348); -lean_ctor_set_uint8(x_350, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_350, sizeof(void*)*5 + 1, x_12); -x_351 = lean_st_ref_take(x_9, 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, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_352, 1); -lean_inc(x_355); -x_356 = lean_ctor_get(x_352, 2); -lean_inc(x_356); -x_357 = lean_ctor_get(x_352, 3); -lean_inc(x_357); -x_358 = lean_ctor_get(x_352, 4); -lean_inc(x_358); -x_359 = lean_ctor_get(x_352, 5); -lean_inc(x_359); -x_360 = lean_ctor_get(x_352, 6); -lean_inc(x_360); -if (lean_is_exclusive(x_352)) { - lean_ctor_release(x_352, 0); - lean_ctor_release(x_352, 1); - lean_ctor_release(x_352, 2); - lean_ctor_release(x_352, 3); - lean_ctor_release(x_352, 4); - lean_ctor_release(x_352, 5); - lean_ctor_release(x_352, 6); - x_361 = x_352; -} else { - lean_dec_ref(x_352); - x_361 = lean_box(0); -} -x_362 = l_Lean_PersistentArray_push___rarg(x_359, x_350); -if (lean_is_scalar(x_361)) { - x_363 = lean_alloc_ctor(0, 7, 0); -} else { - x_363 = x_361; -} -lean_ctor_set(x_363, 0, x_354); -lean_ctor_set(x_363, 1, x_355); -lean_ctor_set(x_363, 2, x_356); -lean_ctor_set(x_363, 3, x_357); -lean_ctor_set(x_363, 4, x_358); -lean_ctor_set(x_363, 5, x_362); -lean_ctor_set(x_363, 6, x_360); -x_364 = lean_st_ref_set(x_9, x_363, x_353); -x_365 = lean_ctor_get(x_364, 1); -lean_inc(x_365); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_366 = x_364; -} else { - lean_dec_ref(x_364); - x_366 = lean_box(0); -} -x_367 = lean_box(0); -if (lean_is_scalar(x_366)) { - x_368 = lean_alloc_ctor(0, 2, 0); -} else { - x_368 = x_366; -} -lean_ctor_set(x_368, 0, x_367); -lean_ctor_set(x_368, 1, x_365); -return x_368; } } } @@ -17339,7 +22180,7 @@ static lean_object* _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -17409,17 +22250,9 @@ return x_1; static lean_object* _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -x_2 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_2 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } @@ -17451,7 +22284,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean x_17 = lean_ctor_get(x_15, 0); x_18 = lean_ctor_get(x_15, 1); x_19 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__3; -x_20 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_20 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_21 = l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName(x_1, x_19, x_20); x_22 = l_Lean_Expr_setAppPPExplicitForExposingMVars(x_17); x_23 = l_Lean_indentExpr(x_22); @@ -17485,12 +22318,6 @@ x_33 = l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(x_2, x_32); lean_dec(x_2); x_34 = 2; x_35 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_12, x_33, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_12); return x_35; } else @@ -17502,7 +22329,7 @@ lean_inc(x_37); lean_inc(x_36); lean_dec(x_15); x_38 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__3; -x_39 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_39 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_40 = l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName(x_1, x_38, x_39); x_41 = l_Lean_Expr_setAppPPExplicitForExposingMVars(x_36); x_42 = l_Lean_indentExpr(x_41); @@ -17536,12 +22363,6 @@ x_53 = l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(x_2, x_52); lean_dec(x_2); x_54 = 2; x_55 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_12, x_53, x_54, x_3, x_4, x_5, x_6, x_7, x_8, x_37); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_12); return x_55; } } @@ -17565,7 +22386,7 @@ if (lean_is_exclusive(x_57)) { x_60 = lean_box(0); } x_61 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__3; -x_62 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_62 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_63 = l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName(x_1, x_61, x_62); x_64 = l_Lean_Expr_setAppPPExplicitForExposingMVars(x_58); x_65 = l_Lean_indentExpr(x_64); @@ -17604,12 +22425,6 @@ x_77 = l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(x_2, x_76); lean_dec(x_2); x_78 = 2; x_79 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_12, x_77, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_59); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_12); return x_79; } } @@ -17641,18 +22456,12 @@ lean_ctor_set(x_91, 0, x_89); lean_ctor_set(x_91, 1, x_90); x_92 = l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(x_2, x_91); lean_dec(x_2); -x_93 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13; +x_93 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; x_94 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); x_95 = 2; x_96 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_81, x_94, x_95, x_3, x_4, x_5, x_6, x_7, x_8, 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_81); return x_96; } default: @@ -17668,12 +22477,6 @@ x_99 = l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(x_2, x_98); lean_dec(x_2); x_100 = 2; x_101 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_97, x_99, x_100, x_3, x_4, x_5, x_6, x_7, x_8, 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_97); return x_101; } } @@ -17693,6 +22496,29 @@ lean_dec(x_2); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___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: { @@ -17700,12 +22526,6 @@ uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_3); lean_dec(x_3); x_12 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, 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_1); return x_12; } } @@ -18880,7 +23700,7 @@ lean_dec(x_11); x_14 = lean_ctor_get(x_12, 5); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_14); +x_15 = l_Lean_MessageLog_hasErrors(x_14); x_16 = lean_st_ref_get(x_4, x_13); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -19246,30 +24066,32 @@ if (x_9 == 0) { uint8_t x_10; lean_object* x_11; x_10 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*8, x_10); +lean_ctor_set_uint8(x_2, sizeof(void*)*9, x_10); x_11 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t 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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t 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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; x_12 = lean_ctor_get(x_2, 0); x_13 = lean_ctor_get(x_2, 1); x_14 = lean_ctor_get(x_2, 2); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); -x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 2); x_17 = lean_ctor_get(x_2, 3); x_18 = lean_ctor_get(x_2, 4); x_19 = lean_ctor_get(x_2, 5); x_20 = lean_ctor_get(x_2, 6); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_26 = lean_ctor_get(x_2, 7); -x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_27 = lean_ctor_get(x_2, 8); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_27); lean_inc(x_26); lean_inc(x_20); lean_inc(x_19); @@ -19279,28 +24101,29 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); -x_29 = 0; -x_30 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_13); -lean_ctor_set(x_30, 2, x_14); -lean_ctor_set(x_30, 3, x_17); -lean_ctor_set(x_30, 4, x_18); -lean_ctor_set(x_30, 5, x_19); -lean_ctor_set(x_30, 6, x_20); -lean_ctor_set(x_30, 7, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*8, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 1, x_15); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 2, x_16); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 3, x_21); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 4, x_22); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 5, x_23); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 6, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 7, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 8, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*8 + 9, x_28); -x_31 = lean_apply_7(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8); -return x_31; +x_30 = 0; +x_31 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_14); +lean_ctor_set(x_31, 3, x_17); +lean_ctor_set(x_31, 4, x_18); +lean_ctor_set(x_31, 5, x_19); +lean_ctor_set(x_31, 6, x_20); +lean_ctor_set(x_31, 7, x_26); +lean_ctor_set(x_31, 8, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*9, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 1, x_15); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 2, x_16); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 3, x_21); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 4, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 5, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 6, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 7, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 8, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*9 + 9, x_29); +x_32 = lean_apply_7(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8); +return x_32; } } } @@ -19365,7 +24188,7 @@ static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__6() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("null", 4); +x_1 = lean_mk_string_from_bytes(":", 1); return x_1; } } @@ -19373,33 +24196,15 @@ static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__6; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(":", 1); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; +x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__6; x_3 = lean_alloc_ctor(2, 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_Lean_Elab_Term_mkExplicitBinder___closed__10() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__8() { _start: { lean_object* x_1; lean_object* x_2; @@ -19408,22 +24213,22 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__11() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__10; -x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__9; +x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; +x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +x_2 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2; x_3 = l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__1; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -19432,7 +24237,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__13() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__11() { _start: { lean_object* x_1; @@ -19440,19 +24245,19 @@ x_1 = lean_mk_string_from_bytes(")", 1); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__14() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; +x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__11; x_3 = lean_alloc_ctor(2, 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_Lean_Elab_Term_mkExplicitBinder___closed__15() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__13() { _start: { lean_object* x_1; lean_object* x_2; @@ -19461,11 +24266,11 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__16() { +static lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__15; +x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; x_2 = l_Lean_Elab_Term_mkExplicitBinder___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; @@ -19478,23 +24283,23 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_4 = lean_array_push(x_3, x_1); x_5 = lean_box(2); -x_6 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +x_6 = l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2; x_7 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); lean_ctor_set(x_7, 2, x_4); -x_8 = l_Lean_Elab_Term_mkExplicitBinder___closed__11; +x_8 = l_Lean_Elab_Term_mkExplicitBinder___closed__9; x_9 = lean_array_push(x_8, x_2); x_10 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_10, 0, x_5); lean_ctor_set(x_10, 1, x_6); lean_ctor_set(x_10, 2, x_9); -x_11 = l_Lean_Elab_Term_mkExplicitBinder___closed__16; +x_11 = l_Lean_Elab_Term_mkExplicitBinder___closed__14; x_12 = lean_array_push(x_11, x_7); x_13 = lean_array_push(x_12, x_10); -x_14 = l_Lean_Elab_Term_mkExplicitBinder___closed__12; +x_14 = l_Lean_Elab_Term_mkExplicitBinder___closed__10; x_15 = lean_array_push(x_13, x_14); -x_16 = l_Lean_Elab_Term_mkExplicitBinder___closed__14; +x_16 = l_Lean_Elab_Term_mkExplicitBinder___closed__12; x_17 = lean_array_push(x_15, x_16); x_18 = l_Lean_Elab_Term_mkExplicitBinder___closed__2; x_19 = lean_alloc_ctor(1, 3, 0); @@ -20761,1304 +25566,744 @@ return x_124; LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__8(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_object* x_10) { _start: { -lean_object* x_11; uint8_t x_377; uint8_t x_378; -x_377 = 2; -x_378 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_377); -if (x_378 == 0) +lean_object* x_11; uint8_t x_186; uint8_t x_187; +x_186 = 2; +x_187 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_186); +if (x_187 == 0) { -lean_object* x_379; -x_379 = lean_box(0); -x_11 = x_379; -goto block_376; +lean_object* x_188; +x_188 = lean_box(0); +x_11 = x_188; +goto block_185; } else { -lean_object* x_380; uint8_t x_381; +lean_object* x_189; uint8_t x_190; lean_inc(x_2); -x_380 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_381 = lean_unbox(x_380); -lean_dec(x_380); -if (x_381 == 0) +x_189 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_190 = lean_unbox(x_189); +lean_dec(x_189); +if (x_190 == 0) { -lean_object* x_382; -x_382 = lean_box(0); -x_11 = x_382; -goto block_376; +lean_object* x_191; +x_191 = lean_box(0); +x_11 = x_191; +goto block_185; } else { -lean_object* x_383; lean_object* x_384; +lean_object* x_192; lean_object* x_193; lean_dec(x_8); lean_dec(x_2); -x_383 = lean_box(0); -x_384 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_384, 0, x_383); -lean_ctor_set(x_384, 1, x_10); -return x_384; +x_192 = lean_box(0); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_10); +return x_193; } } -block_376: +block_185: { -uint8_t x_12; lean_object* x_370; uint8_t x_371; uint8_t x_372; +uint8_t x_12; lean_object* x_179; uint8_t x_180; uint8_t x_181; lean_dec(x_11); -x_370 = lean_ctor_get(x_8, 2); -lean_inc(x_370); -x_371 = 1; -x_372 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_371); -if (x_372 == 0) +x_179 = lean_ctor_get(x_8, 2); +lean_inc(x_179); +x_180 = 1; +x_181 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_180); +if (x_181 == 0) { -lean_dec(x_370); +lean_dec(x_179); x_12 = x_3; -goto block_369; +goto block_178; } else { -lean_object* x_373; uint8_t x_374; -x_373 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; -x_374 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_370, x_373); -lean_dec(x_370); -if (x_374 == 0) +lean_object* x_182; uint8_t x_183; +x_182 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2; +x_183 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_179, x_182); +lean_dec(x_179); +if (x_183 == 0) { x_12 = x_3; -goto block_369; +goto block_178; } else { -uint8_t x_375; -x_375 = 2; -x_12 = x_375; -goto block_369; +uint8_t x_184; +x_184 = 2; +x_12 = x_184; +goto block_178; } } -block_369: +block_178: { -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_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_ctor_get(x_8, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_8, 1); lean_inc(x_14); x_15 = lean_ctor_get(x_8, 5); lean_inc(x_15); -x_16 = lean_ctor_get(x_8, 6); -lean_inc(x_16); -x_17 = lean_ctor_get(x_8, 7); -lean_inc(x_17); -x_18 = l_Lean_replaceRef(x_1, x_15); +x_16 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_17 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_19 = 0; -x_20 = l_Lean_Syntax_getPos_x3f(x_18, x_19); -x_21 = l_Lean_Syntax_getTailPos_x3f(x_18, x_19); +x_18 = 0; +x_19 = l_Lean_Syntax_getPos_x3f(x_17, x_18); +x_20 = l_Lean_Syntax_getTailPos_x3f(x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ if (lean_obj_tag(x_20) == 0) { -if (lean_obj_tag(x_21) == 0) +lean_object* x_21; uint8_t x_22; +x_21 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Lean_FileMap_toPosition(x_14, x_25); +lean_inc(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +if (x_16 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_free_object(x_21); +x_28 = lean_box(0); +x_29 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_23, x_13, x_26, x_27, x_12, x_28, x_8, x_9, x_24); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +return x_29; +} +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); -x_26 = lean_unsigned_to_nat(0u); -x_27 = l_Lean_FileMap_toPosition(x_14, x_26); -lean_inc(x_27); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_22, 1, x_17); -lean_ctor_set(x_22, 0, x_16); -x_29 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_24); -x_30 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_31 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_31, 0, x_13); -lean_ctor_set(x_31, 1, x_27); -lean_ctor_set(x_31, 2, x_28); -lean_ctor_set(x_31, 3, x_30); -lean_ctor_set(x_31, 4, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_31, sizeof(void*)*5 + 1, x_12); -x_32 = lean_st_ref_take(x_9, x_25); -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_is_exclusive(x_33); -if (x_35 == 0) +lean_object* x_30; uint8_t x_31; +x_30 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_23); +x_31 = l_Lean_MessageData_hasTag(x_30, x_23); +if (x_31 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_33, 5); -x_37 = l_Lean_PersistentArray_push___rarg(x_36, x_31); -lean_ctor_set(x_33, 5, x_37); -x_38 = lean_st_ref_set(x_9, x_33, x_34); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +lean_object* x_32; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_8); +x_32 = lean_box(0); +lean_ctor_set(x_21, 0, x_32); +return x_21; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_free_object(x_21); +x_33 = lean_box(0); +x_34 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_23, x_13, x_26, x_27, x_12, x_33, x_8, x_9, x_24); +lean_dec(x_8); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_21, 0); +x_36 = lean_ctor_get(x_21, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_21); +x_37 = lean_unsigned_to_nat(0u); +x_38 = l_Lean_FileMap_toPosition(x_14, x_37); +lean_inc(x_38); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +if (x_16 == 0) { lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -x_41 = lean_box(0); -lean_ctor_set(x_38, 0, x_41); -return x_38; +x_40 = lean_box(0); +x_41 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_35, x_13, x_38, x_39, x_12, x_40, x_8, x_9, x_36); +lean_dec(x_8); +return x_41; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_38, 1); -lean_inc(x_42); +lean_object* x_42; uint8_t x_43; +x_42 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_35); +x_43 = l_Lean_MessageData_hasTag(x_42, x_35); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_39); lean_dec(x_38); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_dec(x_35); +lean_dec(x_13); +lean_dec(x_8); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_36); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_box(0); +x_47 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_35, x_13, x_38, x_39, x_12, x_46, x_8, x_9, x_36); +lean_dec(x_8); +return x_47; +} +} } } else { -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; -x_45 = lean_ctor_get(x_33, 0); -x_46 = lean_ctor_get(x_33, 1); -x_47 = lean_ctor_get(x_33, 2); -x_48 = lean_ctor_get(x_33, 3); -x_49 = lean_ctor_get(x_33, 4); -x_50 = lean_ctor_get(x_33, 5); -x_51 = lean_ctor_get(x_33, 6); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_33); -x_52 = l_Lean_PersistentArray_push___rarg(x_50, x_31); -x_53 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_53, 0, x_45); -lean_ctor_set(x_53, 1, x_46); -lean_ctor_set(x_53, 2, x_47); -lean_ctor_set(x_53, 3, x_48); -lean_ctor_set(x_53, 4, x_49); -lean_ctor_set(x_53, 5, x_52); -lean_ctor_set(x_53, 6, x_51); -x_54 = lean_st_ref_set(x_9, x_53, x_34); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; -} else { - lean_dec_ref(x_54); - x_56 = lean_box(0); -} +uint8_t x_48; +x_48 = !lean_is_exclusive(x_20); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_20, 0); +x_50 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +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; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +x_54 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_55 = l_Lean_FileMap_toPosition(x_14, x_54); +x_56 = l_Lean_FileMap_toPosition(x_14, x_49); +lean_dec(x_49); +lean_ctor_set(x_20, 0, x_56); +if (x_16 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_free_object(x_50); x_57 = lean_box(0); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_56; -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_55); +x_58 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_52, x_13, x_55, x_20, x_12, x_57, x_8, x_9, x_53); +lean_dec(x_8); return x_58; } -} else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_59 = lean_ctor_get(x_22, 0); -x_60 = lean_ctor_get(x_22, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_22); -x_61 = lean_unsigned_to_nat(0u); -x_62 = l_Lean_FileMap_toPosition(x_14, x_61); -lean_inc(x_62); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_16); -lean_ctor_set(x_64, 1, x_17); -x_65 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_59); -x_66 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_67 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_67, 0, x_13); -lean_ctor_set(x_67, 1, x_62); -lean_ctor_set(x_67, 2, x_63); -lean_ctor_set(x_67, 3, x_66); -lean_ctor_set(x_67, 4, x_65); -lean_ctor_set_uint8(x_67, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_67, sizeof(void*)*5 + 1, x_12); -x_68 = lean_st_ref_take(x_9, x_60); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_69, 2); -lean_inc(x_73); -x_74 = lean_ctor_get(x_69, 3); -lean_inc(x_74); -x_75 = lean_ctor_get(x_69, 4); -lean_inc(x_75); -x_76 = lean_ctor_get(x_69, 5); -lean_inc(x_76); -x_77 = lean_ctor_get(x_69, 6); -lean_inc(x_77); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - lean_ctor_release(x_69, 2); - lean_ctor_release(x_69, 3); - lean_ctor_release(x_69, 4); - lean_ctor_release(x_69, 5); - lean_ctor_release(x_69, 6); - x_78 = x_69; -} else { - lean_dec_ref(x_69); - x_78 = lean_box(0); -} -x_79 = l_Lean_PersistentArray_push___rarg(x_76, x_67); -if (lean_is_scalar(x_78)) { - x_80 = lean_alloc_ctor(0, 7, 0); -} else { - x_80 = x_78; -} -lean_ctor_set(x_80, 0, x_71); -lean_ctor_set(x_80, 1, x_72); -lean_ctor_set(x_80, 2, x_73); -lean_ctor_set(x_80, 3, x_74); -lean_ctor_set(x_80, 4, x_75); -lean_ctor_set(x_80, 5, x_79); -lean_ctor_set(x_80, 6, x_77); -x_81 = lean_st_ref_set(x_9, x_80, x_70); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; -} else { - lean_dec_ref(x_81); - x_83 = lean_box(0); -} -x_84 = lean_box(0); -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 0); -} else { - x_85 = x_83; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; -} -} -else +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_52); +x_60 = l_Lean_MessageData_hasTag(x_59, x_52); +if (x_60 == 0) { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_21); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = lean_ctor_get(x_21, 0); -x_88 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_61; +lean_dec(x_20); +lean_dec(x_55); +lean_dec(x_52); +lean_dec(x_13); lean_dec(x_8); -x_89 = !lean_is_exclusive(x_88); +x_61 = lean_box(0); +lean_ctor_set(x_50, 0, x_61); +return x_50; +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_free_object(x_50); +x_62 = lean_box(0); +x_63 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_52, x_13, x_55, x_20, x_12, x_62, x_8, x_9, x_53); +lean_dec(x_8); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_50, 0); +x_65 = lean_ctor_get(x_50, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_50); +x_66 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_67 = l_Lean_FileMap_toPosition(x_14, x_66); +x_68 = l_Lean_FileMap_toPosition(x_14, x_49); +lean_dec(x_49); +lean_ctor_set(x_20, 0, x_68); +if (x_16 == 0) +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_box(0); +x_70 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_64, x_13, x_67, x_20, x_12, x_69, x_8, x_9, x_65); +lean_dec(x_8); +return x_70; +} +else +{ +lean_object* x_71; uint8_t x_72; +x_71 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_64); +x_72 = l_Lean_MessageData_hasTag(x_71, x_64); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_20); +lean_dec(x_67); +lean_dec(x_64); +lean_dec(x_13); +lean_dec(x_8); +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_65); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_box(0); +x_76 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_64, x_13, x_67, x_20, x_12, x_75, x_8, x_9, x_65); +lean_dec(x_8); +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; +x_77 = lean_ctor_get(x_20, 0); +lean_inc(x_77); +lean_dec(x_20); +x_78 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_83 = l_Lean_FileMap_toPosition(x_14, x_82); +x_84 = l_Lean_FileMap_toPosition(x_14, x_77); +lean_dec(x_77); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_84); +if (x_16 == 0) +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +x_86 = lean_box(0); +x_87 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_79, x_13, x_83, x_85, x_12, x_86, x_8, x_9, x_80); +lean_dec(x_8); +return x_87; +} +else +{ +lean_object* x_88; uint8_t x_89; +x_88 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_79); +x_89 = l_Lean_MessageData_hasTag(x_88, x_79); 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; 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_90 = lean_ctor_get(x_88, 0); -x_91 = lean_ctor_get(x_88, 1); -x_92 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_93 = l_Lean_FileMap_toPosition(x_14, x_92); -x_94 = l_Lean_FileMap_toPosition(x_14, x_87); -lean_dec(x_87); -lean_ctor_set(x_21, 0, x_94); -lean_ctor_set(x_88, 1, x_17); -lean_ctor_set(x_88, 0, x_16); -x_95 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_95, 0, x_88); -lean_ctor_set(x_95, 1, x_90); -x_96 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_97 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_97, 0, x_13); -lean_ctor_set(x_97, 1, x_93); -lean_ctor_set(x_97, 2, x_21); -lean_ctor_set(x_97, 3, x_96); -lean_ctor_set(x_97, 4, x_95); -lean_ctor_set_uint8(x_97, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_97, sizeof(void*)*5 + 1, x_12); -x_98 = lean_st_ref_take(x_9, x_91); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) +lean_object* x_90; lean_object* x_91; +lean_dec(x_85); +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_13); +lean_dec(x_8); +x_90 = lean_box(0); +if (lean_is_scalar(x_81)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_81; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_80); +return x_91; +} +else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = lean_ctor_get(x_99, 5); -x_103 = l_Lean_PersistentArray_push___rarg(x_102, x_97); -lean_ctor_set(x_99, 5, x_103); -x_104 = lean_st_ref_set(x_9, x_99, x_100); -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) +lean_object* x_92; lean_object* x_93; +lean_dec(x_81); +x_92 = lean_box(0); +x_93 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_79, x_13, x_83, x_85, x_12, x_92, x_8, x_9, x_80); +lean_dec(x_8); +return x_93; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_94; +x_94 = !lean_is_exclusive(x_19); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_19, 0); +x_96 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_ctor_get(x_96, 1); +x_100 = l_Lean_FileMap_toPosition(x_14, x_95); +lean_dec(x_95); +lean_inc(x_100); +lean_ctor_set(x_19, 0, x_100); +if (x_16 == 0) +{ +lean_object* x_101; lean_object* x_102; +lean_free_object(x_96); +x_101 = lean_box(0); +x_102 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_98, x_13, x_100, x_19, x_12, x_101, x_8, x_9, x_99); +lean_dec(x_8); +return x_102; +} +else +{ +lean_object* x_103; uint8_t x_104; +x_103 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_98); +x_104 = l_Lean_MessageData_hasTag(x_103, x_98); +if (x_104 == 0) +{ +lean_object* x_105; +lean_dec(x_19); +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_13); +lean_dec(x_8); +x_105 = lean_box(0); +lean_ctor_set(x_96, 0, x_105); +return x_96; +} +else { lean_object* x_106; lean_object* x_107; -x_106 = lean_ctor_get(x_104, 0); -lean_dec(x_106); -x_107 = lean_box(0); -lean_ctor_set(x_104, 0, x_107); -return x_104; +lean_free_object(x_96); +x_106 = lean_box(0); +x_107 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_98, x_13, x_100, x_19, x_12, x_106, x_8, x_9, x_99); +lean_dec(x_8); +return x_107; +} +} } else { lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_104, 1); +x_108 = lean_ctor_get(x_96, 0); +x_109 = lean_ctor_get(x_96, 1); +lean_inc(x_109); lean_inc(x_108); -lean_dec(x_104); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_108); -return x_110; +lean_dec(x_96); +x_110 = l_Lean_FileMap_toPosition(x_14, x_95); +lean_dec(x_95); +lean_inc(x_110); +lean_ctor_set(x_19, 0, x_110); +if (x_16 == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = lean_box(0); +x_112 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_108, x_13, x_110, x_19, x_12, x_111, x_8, x_9, x_109); +lean_dec(x_8); +return x_112; +} +else +{ +lean_object* x_113; uint8_t x_114; +x_113 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_108); +x_114 = l_Lean_MessageData_hasTag(x_113, x_108); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_19); +lean_dec(x_110); +lean_dec(x_108); +lean_dec(x_13); +lean_dec(x_8); +x_115 = lean_box(0); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_109); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; +x_117 = lean_box(0); +x_118 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_108, x_13, x_110, x_19, x_12, x_117, x_8, x_9, x_109); +lean_dec(x_8); +return x_118; +} +} } } 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; 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; -x_111 = lean_ctor_get(x_99, 0); -x_112 = lean_ctor_get(x_99, 1); -x_113 = lean_ctor_get(x_99, 2); -x_114 = lean_ctor_get(x_99, 3); -x_115 = lean_ctor_get(x_99, 4); -x_116 = lean_ctor_get(x_99, 5); -x_117 = lean_ctor_get(x_99, 6); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_99); -x_118 = l_Lean_PersistentArray_push___rarg(x_116, x_97); -x_119 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_119, 0, x_111); -lean_ctor_set(x_119, 1, x_112); -lean_ctor_set(x_119, 2, x_113); -lean_ctor_set(x_119, 3, x_114); -lean_ctor_set(x_119, 4, x_115); -lean_ctor_set(x_119, 5, x_118); -lean_ctor_set(x_119, 6, x_117); -x_120 = lean_st_ref_set(x_9, x_119, x_100); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_119 = lean_ctor_get(x_19, 0); +lean_inc(x_119); +lean_dec(x_19); +x_120 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); if (lean_is_exclusive(x_120)) { lean_ctor_release(x_120, 0); lean_ctor_release(x_120, 1); - x_122 = x_120; + x_123 = x_120; } else { lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(0); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; + x_123 = lean_box(0); } +x_124 = l_Lean_FileMap_toPosition(x_14, x_119); +lean_dec(x_119); +lean_inc(x_124); +x_125 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_125, 0, x_124); +if (x_16 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_123); +x_126 = lean_box(0); +x_127 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_121, x_13, x_124, x_125, x_12, x_126, x_8, x_9, x_122); +lean_dec(x_8); +return x_127; } 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; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_125 = lean_ctor_get(x_88, 0); -x_126 = lean_ctor_get(x_88, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_88); -x_127 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_128 = l_Lean_FileMap_toPosition(x_14, x_127); -x_129 = l_Lean_FileMap_toPosition(x_14, x_87); -lean_dec(x_87); -lean_ctor_set(x_21, 0, x_129); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_16); -lean_ctor_set(x_130, 1, x_17); -x_131 = lean_alloc_ctor(3, 2, 0); +lean_object* x_128; uint8_t x_129; +x_128 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_121); +x_129 = l_Lean_MessageData_hasTag(x_128, x_121); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_121); +lean_dec(x_13); +lean_dec(x_8); +x_130 = lean_box(0); +if (lean_is_scalar(x_123)) { + x_131 = lean_alloc_ctor(0, 2, 0); +} else { + x_131 = x_123; +} lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_125); -x_132 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_133 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_133, 0, x_13); -lean_ctor_set(x_133, 1, x_128); -lean_ctor_set(x_133, 2, x_21); -lean_ctor_set(x_133, 3, x_132); -lean_ctor_set(x_133, 4, x_131); -lean_ctor_set_uint8(x_133, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_133, sizeof(void*)*5 + 1, x_12); -x_134 = lean_st_ref_take(x_9, x_126); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); +lean_ctor_set(x_131, 1, x_122); +return x_131; +} +else +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_123); +x_132 = lean_box(0); +x_133 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_121, x_13, x_124, x_125, x_12, x_132, x_8, x_9, x_122); +lean_dec(x_8); +return x_133; +} +} +} +} +else +{ +lean_object* x_134; uint8_t x_135; +x_134 = lean_ctor_get(x_19, 0); +lean_inc(x_134); +lean_dec(x_19); +x_135 = !lean_is_exclusive(x_20); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_20, 0); +x_137 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_14); +x_141 = l_Lean_FileMap_toPosition(x_14, x_134); lean_dec(x_134); -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_135, 2); +x_142 = l_Lean_FileMap_toPosition(x_14, x_136); +lean_dec(x_136); +lean_ctor_set(x_20, 0, x_142); +if (x_16 == 0) +{ +lean_object* x_143; lean_object* x_144; +lean_free_object(x_137); +x_143 = lean_box(0); +x_144 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_139, x_13, x_141, x_20, x_12, x_143, x_8, x_9, x_140); +lean_dec(x_8); +return x_144; +} +else +{ +lean_object* x_145; uint8_t x_146; +x_145 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 3); -lean_inc(x_140); -x_141 = lean_ctor_get(x_135, 4); -lean_inc(x_141); -x_142 = lean_ctor_get(x_135, 5); -lean_inc(x_142); -x_143 = lean_ctor_get(x_135, 6); -lean_inc(x_143); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - lean_ctor_release(x_135, 2); - lean_ctor_release(x_135, 3); - lean_ctor_release(x_135, 4); - lean_ctor_release(x_135, 5); - lean_ctor_release(x_135, 6); - x_144 = x_135; -} else { - lean_dec_ref(x_135); - x_144 = lean_box(0); +x_146 = l_Lean_MessageData_hasTag(x_145, x_139); +if (x_146 == 0) +{ +lean_object* x_147; +lean_dec(x_20); +lean_dec(x_141); +lean_dec(x_139); +lean_dec(x_13); +lean_dec(x_8); +x_147 = lean_box(0); +lean_ctor_set(x_137, 0, x_147); +return x_137; } -x_145 = l_Lean_PersistentArray_push___rarg(x_142, x_133); -if (lean_is_scalar(x_144)) { - x_146 = lean_alloc_ctor(0, 7, 0); -} else { - x_146 = x_144; +else +{ +lean_object* x_148; lean_object* x_149; +lean_free_object(x_137); +x_148 = lean_box(0); +x_149 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_139, x_13, x_141, x_20, x_12, x_148, x_8, x_9, x_140); +lean_dec(x_8); +return x_149; } -lean_ctor_set(x_146, 0, x_137); -lean_ctor_set(x_146, 1, x_138); -lean_ctor_set(x_146, 2, x_139); -lean_ctor_set(x_146, 3, x_140); -lean_ctor_set(x_146, 4, x_141); -lean_ctor_set(x_146, 5, x_145); -lean_ctor_set(x_146, 6, x_143); -x_147 = lean_st_ref_set(x_9, x_146, x_136); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_149 = x_147; -} else { - lean_dec_ref(x_147); - x_149 = lean_box(0); -} -x_150 = lean_box(0); -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_150); -lean_ctor_set(x_151, 1, x_148); -return x_151; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_152 = lean_ctor_get(x_21, 0); -lean_inc(x_152); -lean_dec(x_21); -x_153 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_156 = x_153; -} else { - lean_dec_ref(x_153); - x_156 = lean_box(0); -} -x_157 = lean_unsigned_to_nat(0u); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_150 = lean_ctor_get(x_137, 0); +x_151 = lean_ctor_get(x_137, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_137); lean_inc(x_14); -x_158 = l_Lean_FileMap_toPosition(x_14, x_157); -x_159 = l_Lean_FileMap_toPosition(x_14, x_152); +x_152 = l_Lean_FileMap_toPosition(x_14, x_134); +lean_dec(x_134); +x_153 = l_Lean_FileMap_toPosition(x_14, x_136); +lean_dec(x_136); +lean_ctor_set(x_20, 0, x_153); +if (x_16 == 0) +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_box(0); +x_155 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_150, x_13, x_152, x_20, x_12, x_154, x_8, x_9, x_151); +lean_dec(x_8); +return x_155; +} +else +{ +lean_object* x_156; uint8_t x_157; +x_156 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_150); +x_157 = l_Lean_MessageData_hasTag(x_156, x_150); +if (x_157 == 0) +{ +lean_object* x_158; lean_object* x_159; +lean_dec(x_20); lean_dec(x_152); -x_160 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_160, 0, x_159); -if (lean_is_scalar(x_156)) { - x_161 = lean_alloc_ctor(0, 2, 0); -} else { - x_161 = x_156; +lean_dec(x_150); +lean_dec(x_13); +lean_dec(x_8); +x_158 = lean_box(0); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_151); +return x_159; } -lean_ctor_set(x_161, 0, x_16); -lean_ctor_set(x_161, 1, x_17); -x_162 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_154); -x_163 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_164 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_164, 0, x_13); -lean_ctor_set(x_164, 1, x_158); -lean_ctor_set(x_164, 2, x_160); -lean_ctor_set(x_164, 3, x_163); -lean_ctor_set(x_164, 4, x_162); -lean_ctor_set_uint8(x_164, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_164, sizeof(void*)*5 + 1, x_12); -x_165 = lean_st_ref_take(x_9, x_155); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_166, 1); -lean_inc(x_169); -x_170 = lean_ctor_get(x_166, 2); -lean_inc(x_170); -x_171 = lean_ctor_get(x_166, 3); -lean_inc(x_171); -x_172 = lean_ctor_get(x_166, 4); -lean_inc(x_172); -x_173 = lean_ctor_get(x_166, 5); -lean_inc(x_173); -x_174 = lean_ctor_get(x_166, 6); -lean_inc(x_174); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - lean_ctor_release(x_166, 2); - lean_ctor_release(x_166, 3); - lean_ctor_release(x_166, 4); - lean_ctor_release(x_166, 5); - lean_ctor_release(x_166, 6); +else +{ +lean_object* x_160; lean_object* x_161; +x_160 = lean_box(0); +x_161 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_150, x_13, x_152, x_20, x_12, x_160, x_8, x_9, x_151); +lean_dec(x_8); +return x_161; +} +} +} +} +else +{ +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_162 = lean_ctor_get(x_20, 0); +lean_inc(x_162); +lean_dec(x_20); +x_163 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +lean_inc(x_14); +x_167 = l_Lean_FileMap_toPosition(x_14, x_134); +lean_dec(x_134); +x_168 = l_Lean_FileMap_toPosition(x_14, x_162); +lean_dec(x_162); +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_168); +if (x_16 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_166); +x_170 = lean_box(0); +x_171 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_164, x_13, x_167, x_169, x_12, x_170, x_8, x_9, x_165); +lean_dec(x_8); +return x_171; +} +else +{ +lean_object* x_172; uint8_t x_173; +x_172 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +lean_inc(x_164); +x_173 = l_Lean_MessageData_hasTag(x_172, x_164); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; +lean_dec(x_169); +lean_dec(x_167); +lean_dec(x_164); +lean_dec(x_13); +lean_dec(x_8); +x_174 = lean_box(0); +if (lean_is_scalar(x_166)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { x_175 = x_166; -} else { - lean_dec_ref(x_166); - x_175 = lean_box(0); -} -x_176 = l_Lean_PersistentArray_push___rarg(x_173, x_164); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(0, 7, 0); -} else { - x_177 = x_175; -} -lean_ctor_set(x_177, 0, x_168); -lean_ctor_set(x_177, 1, x_169); -lean_ctor_set(x_177, 2, x_170); -lean_ctor_set(x_177, 3, x_171); -lean_ctor_set(x_177, 4, x_172); -lean_ctor_set(x_177, 5, x_176); -lean_ctor_set(x_177, 6, x_174); -x_178 = lean_st_ref_set(x_9, x_177, x_167); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_180 = x_178; -} else { - lean_dec_ref(x_178); - x_180 = lean_box(0); -} -x_181 = lean_box(0); -if (lean_is_scalar(x_180)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_180; -} -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_179); -return x_182; -} } +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_165); +return x_175; } else { -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_183; -x_183 = !lean_is_exclusive(x_20); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_184 = lean_ctor_get(x_20, 0); -x_185 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +lean_object* x_176; lean_object* x_177; +lean_dec(x_166); +x_176 = lean_box(0); +x_177 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__1(x_164, x_13, x_167, x_169, x_12, x_176, x_8, x_9, x_165); lean_dec(x_8); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -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; uint8_t x_196; -x_187 = lean_ctor_get(x_185, 0); -x_188 = lean_ctor_get(x_185, 1); -x_189 = l_Lean_FileMap_toPosition(x_14, x_184); -lean_dec(x_184); -lean_inc(x_189); -lean_ctor_set(x_20, 0, x_189); -lean_ctor_set(x_185, 1, x_17); -lean_ctor_set(x_185, 0, x_16); -x_190 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_190, 0, x_185); -lean_ctor_set(x_190, 1, x_187); -x_191 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_192 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_192, 0, x_13); -lean_ctor_set(x_192, 1, x_189); -lean_ctor_set(x_192, 2, x_20); -lean_ctor_set(x_192, 3, x_191); -lean_ctor_set(x_192, 4, x_190); -lean_ctor_set_uint8(x_192, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_192, sizeof(void*)*5 + 1, x_12); -x_193 = lean_st_ref_take(x_9, x_188); -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_is_exclusive(x_194); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; -x_197 = lean_ctor_get(x_194, 5); -x_198 = l_Lean_PersistentArray_push___rarg(x_197, x_192); -lean_ctor_set(x_194, 5, x_198); -x_199 = lean_st_ref_set(x_9, x_194, x_195); -x_200 = !lean_is_exclusive(x_199); -if (x_200 == 0) -{ -lean_object* x_201; lean_object* x_202; -x_201 = lean_ctor_get(x_199, 0); -lean_dec(x_201); -x_202 = lean_box(0); -lean_ctor_set(x_199, 0, x_202); -return x_199; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_199, 1); -lean_inc(x_203); -lean_dec(x_199); -x_204 = lean_box(0); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -return x_205; +return x_177; } } -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_206 = lean_ctor_get(x_194, 0); -x_207 = lean_ctor_get(x_194, 1); -x_208 = lean_ctor_get(x_194, 2); -x_209 = lean_ctor_get(x_194, 3); -x_210 = lean_ctor_get(x_194, 4); -x_211 = lean_ctor_get(x_194, 5); -x_212 = lean_ctor_get(x_194, 6); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); -lean_inc(x_209); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_194); -x_213 = l_Lean_PersistentArray_push___rarg(x_211, x_192); -x_214 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_214, 0, x_206); -lean_ctor_set(x_214, 1, x_207); -lean_ctor_set(x_214, 2, x_208); -lean_ctor_set(x_214, 3, x_209); -lean_ctor_set(x_214, 4, x_210); -lean_ctor_set(x_214, 5, x_213); -lean_ctor_set(x_214, 6, x_212); -x_215 = lean_st_ref_set(x_9, x_214, x_195); -x_216 = lean_ctor_get(x_215, 1); -lean_inc(x_216); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_217 = x_215; -} else { - lean_dec_ref(x_215); - x_217 = lean_box(0); -} -x_218 = lean_box(0); -if (lean_is_scalar(x_217)) { - x_219 = lean_alloc_ctor(0, 2, 0); -} else { - x_219 = x_217; -} -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_216); -return x_219; -} -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_220 = lean_ctor_get(x_185, 0); -x_221 = lean_ctor_get(x_185, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_185); -x_222 = l_Lean_FileMap_toPosition(x_14, x_184); -lean_dec(x_184); -lean_inc(x_222); -lean_ctor_set(x_20, 0, x_222); -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_16); -lean_ctor_set(x_223, 1, x_17); -x_224 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_220); -x_225 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_226 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_226, 0, x_13); -lean_ctor_set(x_226, 1, x_222); -lean_ctor_set(x_226, 2, x_20); -lean_ctor_set(x_226, 3, x_225); -lean_ctor_set(x_226, 4, x_224); -lean_ctor_set_uint8(x_226, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_226, sizeof(void*)*5 + 1, x_12); -x_227 = lean_st_ref_take(x_9, x_221); -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec(x_227); -x_230 = lean_ctor_get(x_228, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_228, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_228, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_228, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_228, 4); -lean_inc(x_234); -x_235 = lean_ctor_get(x_228, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_228, 6); -lean_inc(x_236); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - lean_ctor_release(x_228, 2); - lean_ctor_release(x_228, 3); - lean_ctor_release(x_228, 4); - lean_ctor_release(x_228, 5); - lean_ctor_release(x_228, 6); - x_237 = x_228; -} else { - lean_dec_ref(x_228); - x_237 = lean_box(0); -} -x_238 = l_Lean_PersistentArray_push___rarg(x_235, x_226); -if (lean_is_scalar(x_237)) { - x_239 = lean_alloc_ctor(0, 7, 0); -} else { - x_239 = x_237; -} -lean_ctor_set(x_239, 0, x_230); -lean_ctor_set(x_239, 1, x_231); -lean_ctor_set(x_239, 2, x_232); -lean_ctor_set(x_239, 3, x_233); -lean_ctor_set(x_239, 4, x_234); -lean_ctor_set(x_239, 5, x_238); -lean_ctor_set(x_239, 6, x_236); -x_240 = lean_st_ref_set(x_9, x_239, x_229); -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_242 = x_240; -} else { - lean_dec_ref(x_240); - x_242 = lean_box(0); -} -x_243 = lean_box(0); -if (lean_is_scalar(x_242)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_242; -} -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_241); -return x_244; -} -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_245 = lean_ctor_get(x_20, 0); -lean_inc(x_245); -lean_dec(x_20); -x_246 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -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_Lean_FileMap_toPosition(x_14, x_245); -lean_dec(x_245); -lean_inc(x_250); -x_251 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_251, 0, x_250); -if (lean_is_scalar(x_249)) { - x_252 = lean_alloc_ctor(0, 2, 0); -} else { - x_252 = x_249; -} -lean_ctor_set(x_252, 0, x_16); -lean_ctor_set(x_252, 1, x_17); -x_253 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_247); -x_254 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_255 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_255, 0, x_13); -lean_ctor_set(x_255, 1, x_250); -lean_ctor_set(x_255, 2, x_251); -lean_ctor_set(x_255, 3, x_254); -lean_ctor_set(x_255, 4, x_253); -lean_ctor_set_uint8(x_255, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_255, sizeof(void*)*5 + 1, x_12); -x_256 = lean_st_ref_take(x_9, x_248); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -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); -x_261 = lean_ctor_get(x_257, 2); -lean_inc(x_261); -x_262 = lean_ctor_get(x_257, 3); -lean_inc(x_262); -x_263 = lean_ctor_get(x_257, 4); -lean_inc(x_263); -x_264 = lean_ctor_get(x_257, 5); -lean_inc(x_264); -x_265 = lean_ctor_get(x_257, 6); -lean_inc(x_265); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - lean_ctor_release(x_257, 2); - lean_ctor_release(x_257, 3); - lean_ctor_release(x_257, 4); - lean_ctor_release(x_257, 5); - lean_ctor_release(x_257, 6); - x_266 = x_257; -} else { - lean_dec_ref(x_257); - x_266 = lean_box(0); -} -x_267 = l_Lean_PersistentArray_push___rarg(x_264, x_255); -if (lean_is_scalar(x_266)) { - x_268 = lean_alloc_ctor(0, 7, 0); -} else { - x_268 = x_266; -} -lean_ctor_set(x_268, 0, x_259); -lean_ctor_set(x_268, 1, x_260); -lean_ctor_set(x_268, 2, x_261); -lean_ctor_set(x_268, 3, x_262); -lean_ctor_set(x_268, 4, x_263); -lean_ctor_set(x_268, 5, x_267); -lean_ctor_set(x_268, 6, x_265); -x_269 = lean_st_ref_set(x_9, x_268, x_258); -x_270 = lean_ctor_get(x_269, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_271 = x_269; -} else { - lean_dec_ref(x_269); - x_271 = lean_box(0); -} -x_272 = lean_box(0); -if (lean_is_scalar(x_271)) { - x_273 = lean_alloc_ctor(0, 2, 0); -} else { - x_273 = x_271; -} -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_270); -return x_273; -} -} -else -{ -lean_object* x_274; uint8_t x_275; -x_274 = lean_ctor_get(x_20, 0); -lean_inc(x_274); -lean_dec(x_20); -x_275 = !lean_is_exclusive(x_21); -if (x_275 == 0) -{ -lean_object* x_276; lean_object* x_277; uint8_t x_278; -x_276 = lean_ctor_get(x_21, 0); -x_277 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -x_278 = !lean_is_exclusive(x_277); -if (x_278 == 0) -{ -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; uint8_t x_289; -x_279 = lean_ctor_get(x_277, 0); -x_280 = lean_ctor_get(x_277, 1); -lean_inc(x_14); -x_281 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_282 = l_Lean_FileMap_toPosition(x_14, x_276); -lean_dec(x_276); -lean_ctor_set(x_21, 0, x_282); -lean_ctor_set(x_277, 1, x_17); -lean_ctor_set(x_277, 0, x_16); -x_283 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_283, 0, x_277); -lean_ctor_set(x_283, 1, x_279); -x_284 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_285 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_285, 0, x_13); -lean_ctor_set(x_285, 1, x_281); -lean_ctor_set(x_285, 2, x_21); -lean_ctor_set(x_285, 3, x_284); -lean_ctor_set(x_285, 4, x_283); -lean_ctor_set_uint8(x_285, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_285, sizeof(void*)*5 + 1, x_12); -x_286 = lean_st_ref_take(x_9, x_280); -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec(x_286); -x_289 = !lean_is_exclusive(x_287); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; -x_290 = lean_ctor_get(x_287, 5); -x_291 = l_Lean_PersistentArray_push___rarg(x_290, x_285); -lean_ctor_set(x_287, 5, x_291); -x_292 = lean_st_ref_set(x_9, x_287, x_288); -x_293 = !lean_is_exclusive(x_292); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; -x_294 = lean_ctor_get(x_292, 0); -lean_dec(x_294); -x_295 = lean_box(0); -lean_ctor_set(x_292, 0, x_295); -return x_292; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_292, 1); -lean_inc(x_296); -lean_dec(x_292); -x_297 = lean_box(0); -x_298 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_296); -return x_298; -} -} -else -{ -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; lean_object* x_312; -x_299 = lean_ctor_get(x_287, 0); -x_300 = lean_ctor_get(x_287, 1); -x_301 = lean_ctor_get(x_287, 2); -x_302 = lean_ctor_get(x_287, 3); -x_303 = lean_ctor_get(x_287, 4); -x_304 = lean_ctor_get(x_287, 5); -x_305 = lean_ctor_get(x_287, 6); -lean_inc(x_305); -lean_inc(x_304); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_dec(x_287); -x_306 = l_Lean_PersistentArray_push___rarg(x_304, x_285); -x_307 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_307, 0, x_299); -lean_ctor_set(x_307, 1, x_300); -lean_ctor_set(x_307, 2, x_301); -lean_ctor_set(x_307, 3, x_302); -lean_ctor_set(x_307, 4, x_303); -lean_ctor_set(x_307, 5, x_306); -lean_ctor_set(x_307, 6, x_305); -x_308 = lean_st_ref_set(x_9, x_307, x_288); -x_309 = lean_ctor_get(x_308, 1); -lean_inc(x_309); -if (lean_is_exclusive(x_308)) { - lean_ctor_release(x_308, 0); - lean_ctor_release(x_308, 1); - x_310 = x_308; -} else { - lean_dec_ref(x_308); - x_310 = lean_box(0); -} -x_311 = lean_box(0); -if (lean_is_scalar(x_310)) { - x_312 = lean_alloc_ctor(0, 2, 0); -} else { - x_312 = x_310; -} -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_309); -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_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_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_313 = lean_ctor_get(x_277, 0); -x_314 = lean_ctor_get(x_277, 1); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_277); -lean_inc(x_14); -x_315 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_316 = l_Lean_FileMap_toPosition(x_14, x_276); -lean_dec(x_276); -lean_ctor_set(x_21, 0, x_316); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_16); -lean_ctor_set(x_317, 1, x_17); -x_318 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_313); -x_319 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_320 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_320, 0, x_13); -lean_ctor_set(x_320, 1, x_315); -lean_ctor_set(x_320, 2, x_21); -lean_ctor_set(x_320, 3, x_319); -lean_ctor_set(x_320, 4, x_318); -lean_ctor_set_uint8(x_320, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_320, sizeof(void*)*5 + 1, x_12); -x_321 = lean_st_ref_take(x_9, x_314); -x_322 = lean_ctor_get(x_321, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_321, 1); -lean_inc(x_323); -lean_dec(x_321); -x_324 = lean_ctor_get(x_322, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_322, 1); -lean_inc(x_325); -x_326 = lean_ctor_get(x_322, 2); -lean_inc(x_326); -x_327 = lean_ctor_get(x_322, 3); -lean_inc(x_327); -x_328 = lean_ctor_get(x_322, 4); -lean_inc(x_328); -x_329 = lean_ctor_get(x_322, 5); -lean_inc(x_329); -x_330 = lean_ctor_get(x_322, 6); -lean_inc(x_330); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - lean_ctor_release(x_322, 2); - lean_ctor_release(x_322, 3); - lean_ctor_release(x_322, 4); - lean_ctor_release(x_322, 5); - lean_ctor_release(x_322, 6); - x_331 = x_322; -} else { - lean_dec_ref(x_322); - x_331 = lean_box(0); -} -x_332 = l_Lean_PersistentArray_push___rarg(x_329, x_320); -if (lean_is_scalar(x_331)) { - x_333 = lean_alloc_ctor(0, 7, 0); -} else { - x_333 = x_331; -} -lean_ctor_set(x_333, 0, x_324); -lean_ctor_set(x_333, 1, x_325); -lean_ctor_set(x_333, 2, x_326); -lean_ctor_set(x_333, 3, x_327); -lean_ctor_set(x_333, 4, x_328); -lean_ctor_set(x_333, 5, x_332); -lean_ctor_set(x_333, 6, x_330); -x_334 = lean_st_ref_set(x_9, x_333, x_323); -x_335 = lean_ctor_get(x_334, 1); -lean_inc(x_335); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_336 = x_334; -} else { - lean_dec_ref(x_334); - x_336 = lean_box(0); -} -x_337 = lean_box(0); -if (lean_is_scalar(x_336)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_336; -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_335); -return x_338; -} -} -else -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; 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; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_339 = lean_ctor_get(x_21, 0); -lean_inc(x_339); -lean_dec(x_21); -x_340 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -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); -} -lean_inc(x_14); -x_344 = l_Lean_FileMap_toPosition(x_14, x_274); -lean_dec(x_274); -x_345 = l_Lean_FileMap_toPosition(x_14, x_339); -lean_dec(x_339); -x_346 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_346, 0, x_345); -if (lean_is_scalar(x_343)) { - x_347 = lean_alloc_ctor(0, 2, 0); -} else { - x_347 = x_343; -} -lean_ctor_set(x_347, 0, x_16); -lean_ctor_set(x_347, 1, x_17); -x_348 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_341); -x_349 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; -x_350 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_350, 0, x_13); -lean_ctor_set(x_350, 1, x_344); -lean_ctor_set(x_350, 2, x_346); -lean_ctor_set(x_350, 3, x_349); -lean_ctor_set(x_350, 4, x_348); -lean_ctor_set_uint8(x_350, sizeof(void*)*5, x_19); -lean_ctor_set_uint8(x_350, sizeof(void*)*5 + 1, x_12); -x_351 = lean_st_ref_take(x_9, 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, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_352, 1); -lean_inc(x_355); -x_356 = lean_ctor_get(x_352, 2); -lean_inc(x_356); -x_357 = lean_ctor_get(x_352, 3); -lean_inc(x_357); -x_358 = lean_ctor_get(x_352, 4); -lean_inc(x_358); -x_359 = lean_ctor_get(x_352, 5); -lean_inc(x_359); -x_360 = lean_ctor_get(x_352, 6); -lean_inc(x_360); -if (lean_is_exclusive(x_352)) { - lean_ctor_release(x_352, 0); - lean_ctor_release(x_352, 1); - lean_ctor_release(x_352, 2); - lean_ctor_release(x_352, 3); - lean_ctor_release(x_352, 4); - lean_ctor_release(x_352, 5); - lean_ctor_release(x_352, 6); - x_361 = x_352; -} else { - lean_dec_ref(x_352); - x_361 = lean_box(0); -} -x_362 = l_Lean_PersistentArray_push___rarg(x_359, x_350); -if (lean_is_scalar(x_361)) { - x_363 = lean_alloc_ctor(0, 7, 0); -} else { - x_363 = x_361; -} -lean_ctor_set(x_363, 0, x_354); -lean_ctor_set(x_363, 1, x_355); -lean_ctor_set(x_363, 2, x_356); -lean_ctor_set(x_363, 3, x_357); -lean_ctor_set(x_363, 4, x_358); -lean_ctor_set(x_363, 5, x_362); -lean_ctor_set(x_363, 6, x_360); -x_364 = lean_st_ref_set(x_9, x_363, x_353); -x_365 = lean_ctor_get(x_364, 1); -lean_inc(x_365); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_366 = x_364; -} else { - lean_dec_ref(x_364); - x_366 = lean_box(0); -} -x_367 = lean_box(0); -if (lean_is_scalar(x_366)) { - x_368 = lean_alloc_ctor(0, 2, 0); -} else { - x_368 = x_366; -} -lean_ctor_set(x_368, 0, x_367); -lean_ctor_set(x_368, 1, x_365); -return x_368; } } } @@ -22086,15 +26331,23 @@ static lean_object* _init_l_Lean_Elab_logException___at___private_Lean_Elab_Term _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +x_1 = l_Lean_Core_interruptExceptionId; return x_1; } } static lean_object* _init_l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("internal exception: ", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1; +x_1 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -22133,187 +26386,232 @@ lean_dec(x_15); x_16 = l_Lean_Elab_isAbortExceptionId(x_14); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_6, 5); -lean_inc(x_17); -x_18 = l_Lean_InternalExceptionId_getName(x_14, x_8); -lean_dec(x_14); -if (lean_obj_tag(x_18) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1; +x_18 = lean_nat_dec_eq(x_14, x_17); +if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; -lean_dec(x_17); -lean_free_object(x_1); -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_6, 5); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_MessageData_ofName(x_19); -x_22 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2; -x_23 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = 2; -x_27 = l_Lean_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__9(x_25, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_20); -return x_27; -} -else -{ -uint8_t x_28; -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_28 = !lean_is_exclusive(x_18); -if (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_18, 0); -x_30 = lean_io_error_to_string(x_29); -x_31 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = l_Lean_MessageData_ofFormat(x_31); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_32); -lean_ctor_set(x_1, 0, x_17); -lean_ctor_set(x_18, 0, x_1); -return x_18; -} -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_18, 0); -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_18); -x_35 = lean_io_error_to_string(x_33); -x_36 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = l_Lean_MessageData_ofFormat(x_36); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_37); -lean_ctor_set(x_1, 0, x_17); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_1); -lean_ctor_set(x_38, 1, x_34); -return x_38; -} -} -} -else -{ -lean_object* x_39; lean_object* x_40; -lean_free_object(x_1); +x_20 = l_Lean_InternalExceptionId_getName(x_14, x_8); lean_dec(x_14); +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; uint8_t x_28; lean_object* x_29; +lean_dec(x_19); +lean_free_object(x_1); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_MessageData_ofName(x_21); +x_24 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3; +x_25 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; +x_27 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = 2; +x_29 = l_Lean_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__9(x_27, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +return x_29; +} +else +{ +uint8_t x_30; 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_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_8); +x_30 = !lean_is_exclusive(x_20); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_20, 0); +x_32 = lean_io_error_to_string(x_31); +x_33 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = l_Lean_MessageData_ofFormat(x_33); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_34); +lean_ctor_set(x_1, 0, x_19); +lean_ctor_set(x_20, 0, x_1); +return x_20; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_20, 0); +x_36 = lean_ctor_get(x_20, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_20); +x_37 = lean_io_error_to_string(x_35); +x_38 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = l_Lean_MessageData_ofFormat(x_38); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_39); +lean_ctor_set(x_1, 0, x_19); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_1); +lean_ctor_set(x_40, 1, x_36); return x_40; } } +} else { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_1, 0); -lean_inc(x_41); -lean_dec(x_1); -x_42 = l_Lean_Elab_isAbortExceptionId(x_41); -if (x_42 == 0) +lean_object* x_41; lean_object* x_42; +lean_free_object(x_1); +lean_dec(x_14); +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_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_8); +return x_42; +} +} +else { lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_6, 5); -lean_inc(x_43); -x_44 = l_Lean_InternalExceptionId_getName(x_41, x_8); -lean_dec(x_41); -if (lean_obj_tag(x_44) == 0) +lean_free_object(x_1); +lean_dec(x_14); +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_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_8); +return x_44; +} +} +else { -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; -lean_dec(x_43); -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_1, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_MessageData_ofName(x_45); -x_48 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2; -x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; -x_51 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = 2; -x_53 = l_Lean_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__9(x_51, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_46); -return x_53; +lean_dec(x_1); +x_46 = l_Lean_Elab_isAbortExceptionId(x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1; +x_48 = lean_nat_dec_eq(x_45, x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_6, 5); +lean_inc(x_49); +x_50 = l_Lean_InternalExceptionId_getName(x_45, x_8); +lean_dec(x_45); +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; uint8_t x_58; lean_object* x_59; +lean_dec(x_49); +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 = l_Lean_MessageData_ofName(x_51); +x_54 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3; +x_55 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; +x_57 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = 2; +x_59 = l_Lean_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__9(x_57, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +return x_59; } 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; lean_object* x_60; lean_object* x_61; +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_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = lean_ctor_get(x_44, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_44, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_56 = x_44; +x_60 = lean_ctor_get(x_50, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_50, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_62 = x_50; } else { - lean_dec_ref(x_44); - x_56 = lean_box(0); + lean_dec_ref(x_50); + x_62 = lean_box(0); } -x_57 = lean_io_error_to_string(x_54); -x_58 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l_Lean_MessageData_ofFormat(x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_43); -lean_ctor_set(x_60, 1, x_59); -if (lean_is_scalar(x_56)) { - x_61 = lean_alloc_ctor(1, 2, 0); +x_63 = lean_io_error_to_string(x_60); +x_64 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_64, 0, x_63); +x_65 = l_Lean_MessageData_ofFormat(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_49); +lean_ctor_set(x_66, 1, x_65); +if (lean_is_scalar(x_62)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_56; + x_67 = x_62; } -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -return x_61; +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_61); +return x_67; } } else { -lean_object* x_62; lean_object* x_63; -lean_dec(x_41); +lean_object* x_68; lean_object* x_69; +lean_dec(x_45); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_8); -return x_63; +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_8); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_45); +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_70 = lean_box(0); +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; } } } @@ -22349,13 +26647,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_ctor_get(x_9, 1); -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_free_object(x_9); -x_14 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); -return x_14; +x_15 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_15; } else { @@ -22370,32 +26672,62 @@ return x_9; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_9); -x_17 = l_Lean_Exception_isRuntime(x_15); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_16); -return x_18; -} -else -{ -lean_object* x_19; 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_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_15); -lean_ctor_set(x_19, 1, x_16); -return x_19; +return x_9; +} +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = l_Lean_Exception_isInterrupt(x_16); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_20; +} +else +{ +lean_object* x_21; +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_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +else +{ +lean_object* x_22; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_17); +return x_22; } } } @@ -24055,7 +28387,7 @@ return x_15; } else { -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; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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; 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_dec(x_6); x_16 = lean_array_uget(x_3, x_5); x_17 = lean_ctor_get(x_16, 1); @@ -24079,9 +28411,12 @@ x_26 = lean_ctor_get(x_11, 7); x_27 = lean_ctor_get(x_11, 8); x_28 = lean_ctor_get(x_11, 9); x_29 = lean_ctor_get(x_11, 10); -x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_31 = l_Lean_replaceRef(x_17, x_24); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_31 = lean_ctor_get(x_11, 11); +x_32 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_33 = l_Lean_replaceRef(x_17, x_24); lean_dec(x_17); +lean_inc(x_31); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -24092,42 +28427,44 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -x_32 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_32, 0, x_19); -lean_ctor_set(x_32, 1, x_20); -lean_ctor_set(x_32, 2, x_21); -lean_ctor_set(x_32, 3, x_22); -lean_ctor_set(x_32, 4, x_23); -lean_ctor_set(x_32, 5, x_31); -lean_ctor_set(x_32, 6, x_25); -lean_ctor_set(x_32, 7, x_26); -lean_ctor_set(x_32, 8, x_27); -lean_ctor_set(x_32, 9, x_28); -lean_ctor_set(x_32, 10, x_29); -lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_30); +x_34 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_34, 0, x_19); +lean_ctor_set(x_34, 1, x_20); +lean_ctor_set(x_34, 2, x_21); +lean_ctor_set(x_34, 3, x_22); +lean_ctor_set(x_34, 4, x_23); +lean_ctor_set(x_34, 5, x_33); +lean_ctor_set(x_34, 6, x_25); +lean_ctor_set(x_34, 7, x_26); +lean_ctor_set(x_34, 8, x_27); +lean_ctor_set(x_34, 9, x_28); +lean_ctor_set(x_34, 10, x_29); +lean_ctor_set(x_34, 11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*12, x_30); +lean_ctor_set_uint8(x_34, sizeof(void*)*12 + 1, x_32); lean_inc(x_12); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_33 = l_Lean_Elab_withLogging___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__6(x_18, x_7, x_8, x_9, x_10, x_32, x_12, x_13); -if (lean_obj_tag(x_33) == 0) +x_35 = l_Lean_Elab_withLogging___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__6(x_18, x_7, x_8, x_9, x_10, x_34, x_12, x_13); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_34; size_t x_35; size_t x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = 1; -x_36 = lean_usize_add(x_5, x_35); -x_37 = lean_box(0); -x_5 = x_36; -x_6 = x_37; -x_13 = x_34; +lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = 1; +x_38 = lean_usize_add(x_5, x_37); +x_39 = lean_box(0); +x_5 = x_38; +x_6 = x_39; +x_13 = x_36; goto _start; } else { -uint8_t x_39; +uint8_t x_41; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -24135,23 +28472,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_33); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_35); +if (x_41 == 0) { -return x_33; +return x_35; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_33, 0); -x_41 = lean_ctor_get(x_33, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_33); -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_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_35); +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; } } } @@ -24954,7 +29291,7 @@ return x_14; } else { -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; uint8_t 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_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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_15 = lean_ctor_get(x_6, 0); x_16 = lean_ctor_get(x_6, 1); x_17 = lean_ctor_get(x_6, 2); @@ -24966,7 +29303,10 @@ x_22 = lean_ctor_get(x_6, 7); x_23 = lean_ctor_get(x_6, 8); x_24 = lean_ctor_get(x_6, 9); x_25 = lean_ctor_get(x_6, 10); -x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_27 = lean_ctor_get(x_6, 11); +x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -24979,24 +29319,26 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_6); -x_27 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__1; -x_28 = 0; -x_29 = l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(x_17, x_27, x_28); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_16); -lean_ctor_set(x_30, 2, x_29); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_22); -lean_ctor_set(x_30, 8, x_23); -lean_ctor_set(x_30, 9, x_24); -lean_ctor_set(x_30, 10, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_26); -x_31 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_30, x_7, x_8); -return x_31; +x_29 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__1; +x_30 = 0; +x_31 = l_Lean_Option_set___at_Lean_Elab_Term_withoutMacroStackAtErr___spec__1(x_17, x_29, x_30); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_15); +lean_ctor_set(x_32, 1, x_16); +lean_ctor_set(x_32, 2, x_31); +lean_ctor_set(x_32, 3, x_18); +lean_ctor_set(x_32, 4, x_19); +lean_ctor_set(x_32, 5, x_20); +lean_ctor_set(x_32, 6, x_21); +lean_ctor_set(x_32, 7, x_22); +lean_ctor_set(x_32, 8, x_23); +lean_ctor_set(x_32, 9, x_24); +lean_ctor_set(x_32, 10, x_25); +lean_ctor_set(x_32, 11, x_27); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_28); +x_33 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_32, x_7, x_8); +return x_33; } } } @@ -28572,7 +32914,7 @@ case 0: { uint8_t x_21; lean_dec(x_1); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); if (x_21 == 0) { 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; @@ -29442,7 +33784,7 @@ case 0: { uint8_t x_192; lean_dec(x_1); -x_192 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); +x_192 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); if (x_192 == 0) { 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; @@ -29988,7 +34330,7 @@ case 0: { uint8_t x_298; lean_dec(x_1); -x_298 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); +x_298 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); if (x_298 == 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; @@ -30893,7 +35235,7 @@ return x_72; } 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; lean_object* x_79; 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; lean_object* x_91; lean_object* x_92; size_t x_93; size_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_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_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; uint8_t 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; size_t x_95; size_t 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; 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; x_73 = lean_ctor_get(x_9, 0); x_74 = lean_ctor_get(x_9, 1); x_75 = lean_ctor_get(x_9, 2); @@ -30905,7 +35247,10 @@ x_80 = lean_ctor_get(x_9, 7); x_81 = lean_ctor_get(x_9, 8); x_82 = lean_ctor_get(x_9, 9); x_83 = lean_ctor_get(x_9, 10); -x_84 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_84 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_85 = lean_ctor_get(x_9, 11); +x_86 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_85); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); @@ -30918,125 +35263,127 @@ lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); lean_dec(x_9); -x_85 = l_Lean_replaceRef(x_3, x_78); +x_87 = l_Lean_replaceRef(x_3, x_78); lean_dec(x_78); -x_86 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_86, 0, x_73); -lean_ctor_set(x_86, 1, x_74); -lean_ctor_set(x_86, 2, x_75); -lean_ctor_set(x_86, 3, x_76); -lean_ctor_set(x_86, 4, x_77); -lean_ctor_set(x_86, 5, x_85); -lean_ctor_set(x_86, 6, x_79); -lean_ctor_set(x_86, 7, x_80); -lean_ctor_set(x_86, 8, x_81); -lean_ctor_set(x_86, 9, x_82); -lean_ctor_set(x_86, 10, x_83); -lean_ctor_set_uint8(x_86, sizeof(void*)*11, x_84); -x_87 = lean_st_ref_get(x_10, x_11); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_ctor_get(x_88, 3); +x_88 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_88, 0, x_73); +lean_ctor_set(x_88, 1, x_74); +lean_ctor_set(x_88, 2, x_75); +lean_ctor_set(x_88, 3, x_76); +lean_ctor_set(x_88, 4, x_77); +lean_ctor_set(x_88, 5, x_87); +lean_ctor_set(x_88, 6, x_79); +lean_ctor_set(x_88, 7, x_80); +lean_ctor_set(x_88, 8, x_81); +lean_ctor_set(x_88, 9, x_82); +lean_ctor_set(x_88, 10, x_83); +lean_ctor_set(x_88, 11, x_85); +lean_ctor_set_uint8(x_88, sizeof(void*)*12, x_84); +lean_ctor_set_uint8(x_88, sizeof(void*)*12 + 1, x_86); +x_89 = lean_st_ref_get(x_10, x_11); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_ctor_get(x_90, 3); +lean_inc(x_92); +lean_dec(x_90); +x_93 = l_Lean_PersistentArray_toArray___rarg(x_92); +x_94 = lean_array_get_size(x_93); +x_95 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_96 = 0; +x_97 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_95, x_96, x_93); +x_98 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_98, 0, x_2); +lean_ctor_set(x_98, 1, x_4); +lean_ctor_set(x_98, 2, x_97); +x_99 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_98, x_7, x_8, x_88, x_10, x_91); lean_dec(x_88); -x_91 = l_Lean_PersistentArray_toArray___rarg(x_90); -x_92 = lean_array_get_size(x_91); -x_93 = lean_usize_of_nat(x_92); -lean_dec(x_92); -x_94 = 0; -x_95 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_93, x_94, x_91); -x_96 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_96, 0, x_2); -lean_ctor_set(x_96, 1, x_4); -lean_ctor_set(x_96, 2, x_95); -x_97 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_96, x_7, x_8, x_86, x_10, x_89); -lean_dec(x_86); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = lean_st_ref_take(x_10, x_99); -x_101 = lean_ctor_get(x_100, 0); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); 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_100); - x_103 = lean_box(0); -} -x_104 = lean_ctor_get(x_101, 0); +lean_dec(x_99); +x_102 = lean_st_ref_take(x_10, x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_101, 1); -lean_inc(x_105); -x_106 = lean_ctor_get(x_101, 2); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; +} else { + lean_dec_ref(x_102); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_103, 0); lean_inc(x_106); -x_107 = lean_ctor_get(x_101, 4); +x_107 = lean_ctor_get(x_103, 1); lean_inc(x_107); -x_108 = lean_ctor_get(x_101, 5); +x_108 = lean_ctor_get(x_103, 2); lean_inc(x_108); -x_109 = lean_ctor_get(x_101, 6); +x_109 = lean_ctor_get(x_103, 4); lean_inc(x_109); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - lean_ctor_release(x_101, 2); - lean_ctor_release(x_101, 3); - lean_ctor_release(x_101, 4); - lean_ctor_release(x_101, 5); - lean_ctor_release(x_101, 6); - x_110 = x_101; +x_110 = lean_ctor_get(x_103, 5); +lean_inc(x_110); +x_111 = lean_ctor_get(x_103, 6); +lean_inc(x_111); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + lean_ctor_release(x_103, 2); + lean_ctor_release(x_103, 3); + lean_ctor_release(x_103, 4); + lean_ctor_release(x_103, 5); + lean_ctor_release(x_103, 6); + x_112 = x_103; } else { - lean_dec_ref(x_101); - x_110 = lean_box(0); + lean_dec_ref(x_103); + x_112 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_111 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_105)) { + x_113 = lean_alloc_ctor(0, 2, 0); } else { - x_111 = x_103; + x_113 = x_105; } -lean_ctor_set(x_111, 0, x_3); -lean_ctor_set(x_111, 1, x_98); -x_112 = l_Lean_PersistentArray_push___rarg(x_1, x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_113, 0, x_3); +lean_ctor_set(x_113, 1, x_100); +x_114 = l_Lean_PersistentArray_push___rarg(x_1, x_113); +if (lean_is_scalar(x_112)) { + x_115 = lean_alloc_ctor(0, 7, 0); } else { - x_113 = x_110; + x_115 = x_112; } -lean_ctor_set(x_113, 0, x_104); -lean_ctor_set(x_113, 1, x_105); -lean_ctor_set(x_113, 2, x_106); -lean_ctor_set(x_113, 3, x_112); -lean_ctor_set(x_113, 4, x_107); -lean_ctor_set(x_113, 5, x_108); -lean_ctor_set(x_113, 6, x_109); -x_114 = lean_st_ref_set(x_10, x_113, x_102); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_116 = x_114; -} else { - lean_dec_ref(x_114); - x_116 = lean_box(0); -} -x_117 = lean_box(0); -if (lean_is_scalar(x_116)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_115, 0, x_106); +lean_ctor_set(x_115, 1, x_107); +lean_ctor_set(x_115, 2, x_108); +lean_ctor_set(x_115, 3, x_114); +lean_ctor_set(x_115, 4, x_109); +lean_ctor_set(x_115, 5, x_110); +lean_ctor_set(x_115, 6, x_111); +x_116 = lean_st_ref_set(x_10, x_115, x_104); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); x_118 = x_116; +} else { + lean_dec_ref(x_116); + x_118 = lean_box(0); } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_115); -return x_118; +x_119 = lean_box(0); +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_117); +return x_120; } } } @@ -32690,39 +37037,43 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Lean_Exception_isRuntime(x_15); +x_17 = l_Lean_Exception_isInterrupt(x_15); if (x_17 == 0) { +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_15); +if (x_18 == 0) +{ lean_free_object(x_13); if (lean_obj_tag(x_15) == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); lean_dec(x_15); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_19 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_19) == 0) +x_20 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_18); -x_23 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_20, x_2, x_5, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_21); -return x_23; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_19); +x_24 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_21, x_2, x_5, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_24; } else { -uint8_t x_24; -lean_dec(x_18); +uint8_t x_25; +lean_dec(x_19); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -32733,78 +37084,78 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) { -return x_19; +return x_20; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_19); -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_dec(x_15); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_2); -x_28 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_16); -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_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_box(0); -x_32 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_29, x_2, x_5, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_33 = !lean_is_exclusive(x_28); -if (x_33 == 0) -{ +lean_dec(x_20); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); return x_28; } +} +} else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); +lean_object* x_29; +lean_dec(x_15); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_2); +x_29 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +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_box(0); +x_33 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_30, x_2, x_5, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_31); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -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; +lean_dec(x_29); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } @@ -32826,101 +37177,63 @@ return x_13; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_13, 0); -x_38 = lean_ctor_get(x_13, 1); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_13; +} +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_13, 0); +x_39 = lean_ctor_get(x_13, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); lean_dec(x_13); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) +x_40 = l_Lean_Exception_isInterrupt(x_38); +if (x_40 == 0) { -if (lean_obj_tag(x_37) == 0) +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_2); -x_41 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_41) == 0) +if (lean_obj_tag(x_38) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_41, 0); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_38, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_40); -x_45 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_42, x_2, x_5, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_40); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_46 = lean_ctor_get(x_41, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_48 = x_41; -} else { - lean_dec_ref(x_41); - x_48 = lean_box(0); -} -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -else -{ -lean_object* x_50; -lean_dec(x_37); +lean_dec(x_38); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_50 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_50) == 0) +x_43 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_39); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -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_box(0); -x_54 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_51, x_2, x_5, x_53, x_6, x_7, x_8, x_9, x_10, x_11, x_52); -return x_54; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_42); +x_47 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_44, x_2, x_5, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +return x_47; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_42); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -32931,32 +37244,53 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -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; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; } else { - lean_dec_ref(x_50); - x_57 = lean_box(0); + lean_dec_ref(x_43); + x_50 = lean_box(0); } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_50)) { + x_51 = 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; + x_51 = x_50; } +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } else { -lean_object* x_59; +lean_object* x_52; +lean_dec(x_38); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_2); +x_52 = lean_infer_type(x_2, x_8, x_9, x_10, x_11, x_39); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_box(0); +x_56 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_3, x_4, x_53, x_2, x_5, x_55, x_6, x_7, x_8, x_9, x_10, x_11, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -32967,10 +37301,65 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_37); -lean_ctor_set(x_59, 1, x_38); -return x_59; +x_57 = lean_ctor_get(x_52, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_59 = x_52; +} else { + lean_dec_ref(x_52); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +else +{ +lean_object* x_61; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_38); +lean_ctor_set(x_61, 1, x_39); +return x_61; +} +} +else +{ +lean_object* x_62; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_38); +lean_ctor_set(x_62, 1, x_39); +return x_62; } } } @@ -32980,7 +37369,7 @@ static lean_object* _init_l_Lean_Elab_Term_mkCoe___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_2 = l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__2; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -33012,7 +37401,7 @@ lean_closure_set(x_14, 3, x_1); lean_closure_set(x_14, 4, x_3); x_15 = l_Lean_Elab_Term_mkCoe___closed__1; x_16 = 1; -x_17 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_17 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; x_18 = l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1(x_15, x_12, x_14, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_18; } @@ -33423,7 +37812,6 @@ lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_7, 5); lean_inc(x_10); x_11 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_10); return x_11; } } @@ -33440,12 +37828,6 @@ lean_inc(x_10); lean_dec(x_1); x_11 = 2; x_12 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(x_9, x_10, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_9); return x_12; } else @@ -33461,197 +37843,232 @@ lean_dec(x_15); x_16 = l_Lean_Elab_isAbortExceptionId(x_14); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_6, 5); -lean_inc(x_17); -x_18 = l_Lean_InternalExceptionId_getName(x_14, x_8); -lean_dec(x_14); -if (lean_obj_tag(x_18) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1; +x_18 = lean_nat_dec_eq(x_14, x_17); +if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; -lean_dec(x_17); -lean_free_object(x_1); -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_6, 5); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_MessageData_ofName(x_19); -x_22 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2; -x_23 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = 2; -x_27 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_25, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_20); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_27; -} -else -{ -uint8_t x_28; -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_28 = !lean_is_exclusive(x_18); -if (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_18, 0); -x_30 = lean_io_error_to_string(x_29); -x_31 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = l_Lean_MessageData_ofFormat(x_31); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_32); -lean_ctor_set(x_1, 0, x_17); -lean_ctor_set(x_18, 0, x_1); -return x_18; -} -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_18, 0); -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_18); -x_35 = lean_io_error_to_string(x_33); -x_36 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_37 = l_Lean_MessageData_ofFormat(x_36); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_37); -lean_ctor_set(x_1, 0, x_17); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_1); -lean_ctor_set(x_38, 1, x_34); -return x_38; -} -} -} -else -{ -lean_object* x_39; lean_object* x_40; -lean_free_object(x_1); +x_20 = l_Lean_InternalExceptionId_getName(x_14, x_8); lean_dec(x_14); +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; uint8_t x_28; lean_object* x_29; +lean_dec(x_19); +lean_free_object(x_1); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_MessageData_ofName(x_21); +x_24 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3; +x_25 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; +x_27 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = 2; +x_29 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_27, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +return x_29; +} +else +{ +uint8_t x_30; 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_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_8); +x_30 = !lean_is_exclusive(x_20); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_20, 0); +x_32 = lean_io_error_to_string(x_31); +x_33 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = l_Lean_MessageData_ofFormat(x_33); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_34); +lean_ctor_set(x_1, 0, x_19); +lean_ctor_set(x_20, 0, x_1); +return x_20; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_20, 0); +x_36 = lean_ctor_get(x_20, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_20); +x_37 = lean_io_error_to_string(x_35); +x_38 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = l_Lean_MessageData_ofFormat(x_38); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 1, x_39); +lean_ctor_set(x_1, 0, x_19); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_1); +lean_ctor_set(x_40, 1, x_36); return x_40; } } +} else { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_1, 0); -lean_inc(x_41); -lean_dec(x_1); -x_42 = l_Lean_Elab_isAbortExceptionId(x_41); -if (x_42 == 0) +lean_object* x_41; lean_object* x_42; +lean_free_object(x_1); +lean_dec(x_14); +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_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_8); +return x_42; +} +} +else { lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_6, 5); -lean_inc(x_43); -x_44 = l_Lean_InternalExceptionId_getName(x_41, x_8); -lean_dec(x_41); -if (lean_obj_tag(x_44) == 0) +lean_free_object(x_1); +lean_dec(x_14); +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_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_8); +return x_44; +} +} +else { -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; -lean_dec(x_43); -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_1, 0); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_MessageData_ofName(x_45); -x_48 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2; -x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; -x_51 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = 2; -x_53 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_51, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_46); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_53; +lean_dec(x_1); +x_46 = l_Lean_Elab_isAbortExceptionId(x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1; +x_48 = lean_nat_dec_eq(x_45, x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_6, 5); +lean_inc(x_49); +x_50 = l_Lean_InternalExceptionId_getName(x_45, x_8); +lean_dec(x_45); +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; uint8_t x_58; lean_object* x_59; +lean_dec(x_49); +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 = l_Lean_MessageData_ofName(x_51); +x_54 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3; +x_55 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; +x_57 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = 2; +x_59 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_57, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +return x_59; } 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; lean_object* x_60; lean_object* x_61; +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_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = lean_ctor_get(x_44, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_44, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_56 = x_44; +x_60 = lean_ctor_get(x_50, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_50, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_62 = x_50; } else { - lean_dec_ref(x_44); - x_56 = lean_box(0); + lean_dec_ref(x_50); + x_62 = lean_box(0); } -x_57 = lean_io_error_to_string(x_54); -x_58 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l_Lean_MessageData_ofFormat(x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_43); -lean_ctor_set(x_60, 1, x_59); -if (lean_is_scalar(x_56)) { - x_61 = lean_alloc_ctor(1, 2, 0); +x_63 = lean_io_error_to_string(x_60); +x_64 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_64, 0, x_63); +x_65 = l_Lean_MessageData_ofFormat(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_49); +lean_ctor_set(x_66, 1, x_65); +if (lean_is_scalar(x_62)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_56; + x_67 = x_62; } -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -return x_61; +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_61); +return x_67; } } else { -lean_object* x_62; lean_object* x_63; -lean_dec(x_41); +lean_object* x_68; lean_object* x_69; +lean_dec(x_45); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_8); -return x_63; +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_8); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_45); +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_70 = lean_box(0); +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; } } } @@ -33763,11 +38180,6 @@ uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_2); lean_dec(x_2); x_11 = l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); return x_11; } } @@ -33806,7 +38218,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostpone(lean_object* x_1, lean_obj _start: { uint8_t x_8; -x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); lean_dec(x_1); if (x_8 == 0) { @@ -34649,7 +39061,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_obje x_12 = lean_ctor_get(x_10, 0); x_13 = lean_ctor_get(x_1, 0); x_14 = lean_ctor_get(x_1, 2); -x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); x_16 = lean_ctor_get(x_12, 0); lean_inc(x_16); lean_dec(x_12); @@ -34677,7 +39089,7 @@ lean_inc(x_18); lean_dec(x_10); x_20 = lean_ctor_get(x_1, 0); x_21 = lean_ctor_get(x_1, 2); -x_22 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); +x_22 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); x_23 = lean_ctor_get(x_18, 0); lean_inc(x_23); lean_dec(x_18); @@ -34739,7 +39151,7 @@ x_18 = lean_ctor_get(x_3, 0); lean_dec(x_18); lean_ctor_set(x_3, 2, x_13); lean_ctor_set(x_3, 0, x_10); -lean_ctor_set_uint8(x_3, sizeof(void*)*8 + 1, x_14); +lean_ctor_set_uint8(x_3, sizeof(void*)*9 + 1, x_14); x_19 = !lean_is_exclusive(x_7); if (x_19 == 0) { @@ -34755,7 +39167,7 @@ return x_22; } else { -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; +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; uint8_t x_34; lean_object* x_35; lean_object* x_36; x_23 = lean_ctor_get(x_7, 0); x_24 = lean_ctor_get(x_7, 1); x_25 = lean_ctor_get(x_7, 3); @@ -34765,7 +39177,10 @@ x_28 = lean_ctor_get(x_7, 6); x_29 = lean_ctor_get(x_7, 8); x_30 = lean_ctor_get(x_7, 9); x_31 = lean_ctor_get(x_7, 10); -x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_32 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_33 = lean_ctor_get(x_7, 11); +x_34 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_33); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); @@ -34776,86 +39191,94 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_7); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_23); -lean_ctor_set(x_33, 1, x_24); -lean_ctor_set(x_33, 2, x_11); -lean_ctor_set(x_33, 3, x_25); -lean_ctor_set(x_33, 4, x_26); -lean_ctor_set(x_33, 5, x_27); -lean_ctor_set(x_33, 6, x_28); -lean_ctor_set(x_33, 7, x_12); -lean_ctor_set(x_33, 8, x_29); -lean_ctor_set(x_33, 9, x_30); -lean_ctor_set(x_33, 10, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_32); -x_34 = l_Lean_Elab_Term_withLevelNames___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_33, x_8, x_9); -return x_34; +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_23); +lean_ctor_set(x_35, 1, x_24); +lean_ctor_set(x_35, 2, x_11); +lean_ctor_set(x_35, 3, x_25); +lean_ctor_set(x_35, 4, x_26); +lean_ctor_set(x_35, 5, x_27); +lean_ctor_set(x_35, 6, x_28); +lean_ctor_set(x_35, 7, x_12); +lean_ctor_set(x_35, 8, x_29); +lean_ctor_set(x_35, 9, x_30); +lean_ctor_set(x_35, 10, x_31); +lean_ctor_set(x_35, 11, x_33); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_34); +x_36 = l_Lean_Elab_Term_withLevelNames___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_35, x_8, x_9); +return x_36; } } else { -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; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t 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; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_35 = lean_ctor_get(x_3, 1); -x_36 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_37 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); -x_38 = lean_ctor_get(x_3, 3); -x_39 = lean_ctor_get(x_3, 4); -x_40 = lean_ctor_get(x_3, 5); -x_41 = lean_ctor_get(x_3, 6); -x_42 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 3); -x_43 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4); -x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5); -x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); -x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); -x_47 = lean_ctor_get(x_3, 7); -x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); -x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); -lean_inc(x_47); +lean_object* x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t 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; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_37 = lean_ctor_get(x_3, 1); +x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); +x_40 = lean_ctor_get(x_3, 3); +x_41 = lean_ctor_get(x_3, 4); +x_42 = lean_ctor_get(x_3, 5); +x_43 = lean_ctor_get(x_3, 6); +x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); +x_49 = lean_ctor_get(x_3, 7); +x_50 = lean_ctor_get(x_3, 8); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_43); +lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_35); +lean_inc(x_37); lean_dec(x_3); -x_50 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_50, 0, x_10); -lean_ctor_set(x_50, 1, x_35); -lean_ctor_set(x_50, 2, x_13); -lean_ctor_set(x_50, 3, x_38); -lean_ctor_set(x_50, 4, x_39); -lean_ctor_set(x_50, 5, x_40); -lean_ctor_set(x_50, 6, x_41); -lean_ctor_set(x_50, 7, x_47); -lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_36); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 1, x_14); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 2, x_37); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 3, x_42); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 4, x_43); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 5, x_44); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 6, x_45); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 7, x_46); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 8, x_48); -lean_ctor_set_uint8(x_50, sizeof(void*)*8 + 9, x_49); -x_51 = lean_ctor_get(x_7, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_7, 1); -lean_inc(x_52); -x_53 = lean_ctor_get(x_7, 3); -lean_inc(x_53); -x_54 = lean_ctor_get(x_7, 4); +x_53 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_53, 0, x_10); +lean_ctor_set(x_53, 1, x_37); +lean_ctor_set(x_53, 2, x_13); +lean_ctor_set(x_53, 3, x_40); +lean_ctor_set(x_53, 4, x_41); +lean_ctor_set(x_53, 5, x_42); +lean_ctor_set(x_53, 6, x_43); +lean_ctor_set(x_53, 7, x_49); +lean_ctor_set(x_53, 8, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*9, x_38); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 1, x_14); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 2, x_39); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 3, x_44); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 4, x_45); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 5, x_46); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 6, x_47); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 7, x_48); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 8, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*9 + 9, x_52); +x_54 = lean_ctor_get(x_7, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_7, 5); +x_55 = lean_ctor_get(x_7, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_7, 6); +x_56 = lean_ctor_get(x_7, 3); lean_inc(x_56); -x_57 = lean_ctor_get(x_7, 8); +x_57 = lean_ctor_get(x_7, 4); lean_inc(x_57); -x_58 = lean_ctor_get(x_7, 9); +x_58 = lean_ctor_get(x_7, 5); lean_inc(x_58); -x_59 = lean_ctor_get(x_7, 10); +x_59 = lean_ctor_get(x_7, 6); lean_inc(x_59); -x_60 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_60 = lean_ctor_get(x_7, 8); +lean_inc(x_60); +x_61 = lean_ctor_get(x_7, 9); +lean_inc(x_61); +x_62 = lean_ctor_get(x_7, 10); +lean_inc(x_62); +x_63 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_64 = lean_ctor_get(x_7, 11); +lean_inc(x_64); +x_65 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); @@ -34868,30 +39291,33 @@ if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 8); lean_ctor_release(x_7, 9); lean_ctor_release(x_7, 10); - x_61 = x_7; + lean_ctor_release(x_7, 11); + x_66 = x_7; } else { lean_dec_ref(x_7); - x_61 = lean_box(0); + x_66 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 11, 1); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 12, 2); } else { - x_62 = x_61; + x_67 = x_66; } -lean_ctor_set(x_62, 0, x_51); -lean_ctor_set(x_62, 1, x_52); -lean_ctor_set(x_62, 2, x_11); -lean_ctor_set(x_62, 3, x_53); -lean_ctor_set(x_62, 4, x_54); -lean_ctor_set(x_62, 5, x_55); -lean_ctor_set(x_62, 6, x_56); -lean_ctor_set(x_62, 7, x_12); -lean_ctor_set(x_62, 8, x_57); -lean_ctor_set(x_62, 9, x_58); -lean_ctor_set(x_62, 10, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_60); -x_63 = l_Lean_Elab_Term_withLevelNames___rarg(x_15, x_2, x_50, x_4, x_5, x_6, x_62, x_8, x_9); -return x_63; +lean_ctor_set(x_67, 0, x_54); +lean_ctor_set(x_67, 1, x_55); +lean_ctor_set(x_67, 2, x_11); +lean_ctor_set(x_67, 3, x_56); +lean_ctor_set(x_67, 4, x_57); +lean_ctor_set(x_67, 5, x_58); +lean_ctor_set(x_67, 6, x_59); +lean_ctor_set(x_67, 7, x_12); +lean_ctor_set(x_67, 8, x_60); +lean_ctor_set(x_67, 9, x_61); +lean_ctor_set(x_67, 10, x_62); +lean_ctor_set(x_67, 11, x_64); +lean_ctor_set_uint8(x_67, sizeof(void*)*12, x_63); +lean_ctor_set_uint8(x_67, sizeof(void*)*12 + 1, x_65); +x_68 = l_Lean_Elab_Term_withLevelNames___rarg(x_15, x_2, x_53, x_4, x_5, x_6, x_67, x_8, x_9); +return x_68; } } } @@ -34962,7 +39388,7 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeE _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -36585,7 +41011,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_addTermInfo(lean_object* x_1, lean_obj _start: { lean_object* x_15; uint8_t x_30; -x_30 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 7); +x_30 = lean_ctor_get_uint8(x_8, sizeof(void*)*9 + 7); if (x_30 == 0) { lean_object* x_31; @@ -37531,7 +41957,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withInfoContext_x27(lean_object* x_1, _start: { uint8_t x_11; -x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 7); +x_11 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 7); if (x_11 == 0) { lean_object* x_12; @@ -37682,16 +42108,20 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Lean_Exception_isRuntime(x_15); +x_17 = l_Lean_Exception_isInterrupt(x_15); if (x_17 == 0) { +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_15); +if (x_18 == 0) +{ if (lean_obj_tag(x_15) == 0) { -uint8_t x_18; +uint8_t x_19; lean_dec(x_5); lean_dec(x_2); -x_18 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -if (x_18 == 0) +x_19 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_19 == 0) { lean_dec(x_11); lean_dec(x_10); @@ -37704,28 +42134,28 @@ return x_13; } else { -lean_object* x_19; +lean_object* x_20; lean_free_object(x_13); -x_19 = l_Lean_Elab_Term_exceptionToSorry(x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -return x_19; +x_20 = l_Lean_Elab_Term_exceptionToSorry(x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +return x_20; } } else { -uint8_t x_20; -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -if (x_20 == 0) +uint8_t x_21; +x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_21 == 0) { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_15, 0); -lean_inc(x_21); -x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_23 = lean_nat_dec_eq(x_21, x_22); -if (x_23 == 0) +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +x_23 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_24 = lean_nat_dec_eq(x_22, x_23); +if (x_24 == 0) { if (x_4 == 0) { -lean_dec(x_21); +lean_dec(x_22); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37739,11 +42169,11 @@ return x_13; } else { -lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Term_observing___rarg___closed__1; -x_25 = lean_nat_dec_eq(x_21, x_24); -lean_dec(x_21); -if (x_25 == 0) +lean_object* x_25; uint8_t x_26; +x_25 = l_Lean_Elab_Term_observing___rarg___closed__1; +x_26 = lean_nat_dec_eq(x_22, x_25); +lean_dec(x_22); +if (x_26 == 0) { lean_dec(x_11); lean_dec(x_10); @@ -37758,28 +42188,28 @@ return x_13; } else { -uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_free_object(x_13); lean_dec(x_15); -x_26 = 0; +x_27 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_27 = l_Lean_Elab_Term_SavedState_restore(x_5, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -return x_29; +x_28 = l_Lean_Elab_Term_SavedState_restore(x_5, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +return x_30; } } } else { -lean_dec(x_21); +lean_dec(x_22); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37794,21 +42224,21 @@ return x_13; } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_15, 0); -lean_inc(x_30); -x_31 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; -x_32 = lean_nat_dec_eq(x_30, x_31); -if (x_32 == 0) +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_15, 0); +lean_inc(x_31); +x_32 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; +x_33 = lean_nat_dec_eq(x_31, x_32); +if (x_33 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_34 = lean_nat_dec_eq(x_30, x_33); -if (x_34 == 0) +lean_object* x_34; uint8_t x_35; +x_34 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_35 = lean_nat_dec_eq(x_31, x_34); +if (x_35 == 0) { if (x_4 == 0) { -lean_dec(x_30); +lean_dec(x_31); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37822,11 +42252,11 @@ return x_13; } else { -lean_object* x_35; uint8_t x_36; -x_35 = l_Lean_Elab_Term_observing___rarg___closed__1; -x_36 = lean_nat_dec_eq(x_30, x_35); -lean_dec(x_30); -if (x_36 == 0) +lean_object* x_36; uint8_t x_37; +x_36 = l_Lean_Elab_Term_observing___rarg___closed__1; +x_37 = lean_nat_dec_eq(x_31, x_36); +lean_dec(x_31); +if (x_37 == 0) { lean_dec(x_11); lean_dec(x_10); @@ -37841,52 +42271,52 @@ return x_13; } else { -uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_free_object(x_13); lean_dec(x_15); -x_37 = 0; +x_38 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_38 = l_Lean_Elab_Term_SavedState_restore(x_5, x_37, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_39); -return x_40; -} -} -} -else -{ -lean_dec(x_30); -lean_dec(x_11); -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_3); -lean_dec(x_2); -return x_13; -} -} -else -{ -lean_object* x_41; -lean_dec(x_30); -lean_free_object(x_13); -lean_dec(x_5); -lean_dec(x_2); -x_41 = l_Lean_Elab_Term_exceptionToSorry(x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_39 = l_Lean_Elab_Term_SavedState_restore(x_5, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_40); return x_41; } } } +else +{ +lean_dec(x_31); +lean_dec(x_11); +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_3); +lean_dec(x_2); +return x_13; +} +} +else +{ +lean_object* x_42; +lean_dec(x_31); +lean_free_object(x_13); +lean_dec(x_5); +lean_dec(x_2); +x_42 = l_Lean_Elab_Term_exceptionToSorry(x_15, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +return x_42; +} +} +} } else { @@ -37904,24 +42334,42 @@ return x_13; } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_13, 0); -x_43 = lean_ctor_get(x_13, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_13); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) -{ -if (lean_obj_tag(x_42) == 0) -{ -uint8_t x_45; +lean_dec(x_11); +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_3); lean_dec(x_2); -x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); +return x_13; +} +} +else +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_13, 0); +x_44 = lean_ctor_get(x_13, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_13); +x_45 = l_Lean_Exception_isInterrupt(x_43); if (x_45 == 0) { -lean_object* x_46; +uint8_t x_46; +x_46 = l_Lean_Exception_isRuntime(x_43); +if (x_46 == 0) +{ +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_47; +lean_dec(x_5); +lean_dec(x_2); +x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_47 == 0) +{ +lean_object* x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37929,35 +42377,35 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_42); -lean_ctor_set(x_46, 1, x_43); -return x_46; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_44); +return x_48; } else { -lean_object* x_47; -x_47 = l_Lean_Elab_Term_exceptionToSorry(x_42, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -return x_47; +lean_object* x_49; +x_49 = l_Lean_Elab_Term_exceptionToSorry(x_43, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +return x_49; } } else { -uint8_t x_48; -x_48 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -if (x_48 == 0) +uint8_t x_50; +x_50 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_50 == 0) { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_42, 0); -lean_inc(x_49); -x_50 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_51 = lean_nat_dec_eq(x_49, x_50); -if (x_51 == 0) +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_43, 0); +lean_inc(x_51); +x_52 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_53 = lean_nat_dec_eq(x_51, x_52); +if (x_53 == 0) { if (x_4 == 0) { -lean_object* x_52; -lean_dec(x_49); +lean_object* x_54; +lean_dec(x_51); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37967,20 +42415,20 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_42); -lean_ctor_set(x_52, 1, x_43); -return x_52; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_43); +lean_ctor_set(x_54, 1, x_44); +return x_54; } else { -lean_object* x_53; uint8_t x_54; -x_53 = l_Lean_Elab_Term_observing___rarg___closed__1; -x_54 = lean_nat_dec_eq(x_49, x_53); -lean_dec(x_49); -if (x_54 == 0) +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_Elab_Term_observing___rarg___closed__1; +x_56 = lean_nat_dec_eq(x_51, x_55); +lean_dec(x_51); +if (x_56 == 0) { -lean_object* x_55; +lean_object* x_57; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -37990,35 +42438,35 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_42); -lean_ctor_set(x_55, 1, x_43); -return x_55; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_43); +lean_ctor_set(x_57, 1, x_44); +return x_57; } else { -uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_42); -x_56 = 0; +uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_43); +x_58 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_57 = l_Lean_Elab_Term_SavedState_restore(x_5, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -x_59 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_58); -return x_59; +x_59 = l_Lean_Elab_Term_SavedState_restore(x_5, x_58, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_60); +return x_61; } } } else { -lean_object* x_60; -lean_dec(x_49); +lean_object* x_62; +lean_dec(x_51); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -38028,30 +42476,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_42); -lean_ctor_set(x_60, 1, x_43); -return x_60; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_43); +lean_ctor_set(x_62, 1, x_44); +return x_62; } } else { -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_42, 0); -lean_inc(x_61); -x_62 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; -x_63 = lean_nat_dec_eq(x_61, x_62); -if (x_63 == 0) -{ -lean_object* x_64; uint8_t x_65; -x_64 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_65 = lean_nat_dec_eq(x_61, x_64); +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_43, 0); +lean_inc(x_63); +x_64 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; +x_65 = lean_nat_dec_eq(x_63, x_64); if (x_65 == 0) { +lean_object* x_66; uint8_t x_67; +x_66 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_67 = lean_nat_dec_eq(x_63, x_66); +if (x_67 == 0) +{ if (x_4 == 0) { -lean_object* x_66; -lean_dec(x_61); +lean_object* x_68; +lean_dec(x_63); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -38061,20 +42509,20 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_42); -lean_ctor_set(x_66, 1, x_43); -return x_66; +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_43); +lean_ctor_set(x_68, 1, x_44); +return x_68; } else { -lean_object* x_67; uint8_t x_68; -x_67 = l_Lean_Elab_Term_observing___rarg___closed__1; -x_68 = lean_nat_dec_eq(x_61, x_67); -lean_dec(x_61); -if (x_68 == 0) +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_Elab_Term_observing___rarg___closed__1; +x_70 = lean_nat_dec_eq(x_63, x_69); +lean_dec(x_63); +if (x_70 == 0) { -lean_object* x_69; +lean_object* x_71; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -38084,65 +42532,35 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_42); -lean_ctor_set(x_69, 1, x_43); -return x_69; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_43); +lean_ctor_set(x_71, 1, x_44); +return x_71; } else { -uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_42); -x_70 = 0; +uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_43); +x_72 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_71 = l_Lean_Elab_Term_SavedState_restore(x_5, x_70, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_72); -return x_73; -} -} -} -else -{ -lean_object* x_74; -lean_dec(x_61); -lean_dec(x_11); -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_3); -lean_dec(x_2); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_42); -lean_ctor_set(x_74, 1, x_43); -return x_74; -} -} -else -{ -lean_object* x_75; -lean_dec(x_61); -lean_dec(x_5); -lean_dec(x_2); -x_75 = l_Lean_Elab_Term_exceptionToSorry(x_42, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +x_73 = l_Lean_Elab_Term_SavedState_restore(x_5, x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore(x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_74); return x_75; } } } -} else { lean_object* x_76; +lean_dec(x_63); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -38153,11 +42571,59 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_42); -lean_ctor_set(x_76, 1, x_43); +lean_ctor_set(x_76, 0, x_43); +lean_ctor_set(x_76, 1, x_44); return x_76; } } +else +{ +lean_object* x_77; +lean_dec(x_63); +lean_dec(x_5); +lean_dec(x_2); +x_77 = l_Lean_Elab_Term_exceptionToSorry(x_43, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +return x_77; +} +} +} +} +else +{ +lean_object* x_78; +lean_dec(x_11); +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_3); +lean_dec(x_2); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_43); +lean_ctor_set(x_78, 1, x_44); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_11); +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_3); +lean_dec(x_2); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_43); +lean_ctor_set(x_79, 1, x_44); +return x_79; +} +} } } } @@ -38277,9 +42743,13 @@ if (x_27 == 0) lean_object* x_28; lean_object* x_29; uint8_t x_30; x_28 = lean_ctor_get(x_26, 0); x_29 = lean_ctor_get(x_26, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); +x_30 = l_Lean_Exception_isInterrupt(x_28); if (x_30 == 0) { +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ if (lean_obj_tag(x_28) == 0) { lean_dec(x_21); @@ -38296,13 +42766,13 @@ return x_26; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_33 = lean_nat_dec_eq(x_31, x_32); -lean_dec(x_31); -if (x_33 == 0) +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +x_33 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_34 = lean_nat_dec_eq(x_32, x_33); +lean_dec(x_32); +if (x_34 == 0) { lean_dec(x_21); lean_dec(x_11); @@ -38318,10 +42788,10 @@ return x_26; } else { -uint8_t x_34; lean_object* x_35; lean_object* x_36; +uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_free_object(x_26); lean_dec(x_28); -x_34 = 0; +x_35 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -38329,12 +42799,12 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_35 = l_Lean_Elab_Term_SavedState_restore(x_1, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_29); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); +x_36 = l_Lean_Elab_Term_SavedState_restore(x_1, x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); x_5 = x_21; -x_12 = x_36; +x_12 = x_37; goto _start; } } @@ -38356,18 +42826,37 @@ return x_26; } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_26, 0); -x_39 = lean_ctor_get(x_26, 1); +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_26; +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +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_inc(x_38); lean_dec(x_26); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) { -if (lean_obj_tag(x_38) == 0) +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) { -lean_object* x_41; +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_43; lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -38378,22 +42867,22 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_38); -lean_ctor_set(x_41, 1, x_39); -return x_41; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_40); +return x_43; } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_38, 0); -lean_inc(x_42); -x_43 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; -x_44 = lean_nat_dec_eq(x_42, x_43); -lean_dec(x_42); -if (x_44 == 0) +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_39, 0); +lean_inc(x_44); +x_45 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__1___closed__1; +x_46 = lean_nat_dec_eq(x_44, x_45); +lean_dec(x_44); +if (x_46 == 0) { -lean_object* x_45; +lean_object* x_47; lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -38404,16 +42893,16 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_38); -lean_ctor_set(x_45, 1, x_39); -return x_45; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_39); +lean_ctor_set(x_47, 1, x_40); +return x_47; } else { -uint8_t x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_38); -x_46 = 0; +uint8_t x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_39); +x_48 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -38421,19 +42910,19 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_47 = l_Lean_Elab_Term_SavedState_restore(x_1, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_39); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); +x_49 = l_Lean_Elab_Term_SavedState_restore(x_1, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); x_5 = x_21; -x_12 = x_48; +x_12 = x_50; goto _start; } } } else { -lean_object* x_50; +lean_object* x_52; lean_dec(x_21); lean_dec(x_11); lean_dec(x_10); @@ -38444,10 +42933,29 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_38); -lean_ctor_set(x_50, 1, x_39); -return x_50; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_40); +return x_52; +} +} +else +{ +lean_object* x_53; +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_39); +lean_ctor_set(x_53, 1, x_40); +return x_53; } } } @@ -39458,26 +43966,18 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticB _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Tactic", 6); +x_1 = lean_mk_string_from_bytes("tacticSeq", 9); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("tacticSeq", 9); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___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_Elab_Term_mkTermElabAttributeUnsafe___closed__5; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__6; -x_3 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__3; -x_4 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4; +x_3 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1; +x_4 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__3; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } @@ -39502,7 +44002,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); lean_dec(x_1); -x_7 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5; +x_7 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4; x_8 = l_Lean_Syntax_isOfKind(x_6, x_7); return x_8; } @@ -44198,7 +48698,7 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImpli _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -44220,7 +48720,7 @@ lean_inc(x_12); x_13 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(x_1, x_12, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); 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; lean_object* x_19; lean_object* x_32; +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_34; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -44240,215 +48740,219 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_32 = l_Lean_Elab_Term_ensureHasType(x_12, x_14, x_17, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -if (lean_obj_tag(x_32) == 0) +x_34 = l_Lean_Elab_Term_ensureHasType(x_12, x_14, x_17, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; uint8_t 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); -lean_dec(x_32); -x_35 = 0; -x_36 = 1; -x_37 = 1; +lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; +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 = 0; +x_38 = 1; +x_39 = 1; lean_inc(x_4); -x_38 = l_Lean_Meta_mkLambdaFVars(x_4, x_33, x_35, x_36, x_37, x_7, x_8, x_9, x_10, x_34); -if (lean_obj_tag(x_38) == 0) +x_40 = l_Lean_Meta_mkLambdaFVars(x_4, x_35, x_37, x_38, x_39, x_7, x_8, x_9, x_10, x_36); +if (lean_obj_tag(x_40) == 0) { -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_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_dec(x_16); lean_dec(x_4); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___closed__2; -x_42 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_40); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_unbox(x_43); -lean_dec(x_43); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_45 = lean_ctor_get(x_42, 1); +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 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___closed__2; +x_44 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_42); +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_box(0); -x_47 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___lambda__1(x_39, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_box(0); +x_49 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___lambda__1(x_41, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_47); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -lean_dec(x_49); -lean_ctor_set(x_47, 0, x_50); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_47, 0); -x_52 = lean_ctor_get(x_47, 1); +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_47); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); lean_dec(x_51); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_49, 0, x_52); +return x_49; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_49, 0); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_49); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +return x_56; } } 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; uint8_t x_61; -x_55 = lean_ctor_get(x_42, 1); -lean_inc(x_55); -lean_dec(x_42); -lean_inc(x_39); -x_56 = l_Lean_MessageData_ofExpr(x_39); -x_57 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_41, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_55); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___lambda__1(x_39, x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_57 = lean_ctor_get(x_44, 1); +lean_inc(x_57); +lean_dec(x_44); +lean_inc(x_41); +x_58 = l_Lean_MessageData_ofExpr(x_41); +x_59 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_43, x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_57); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___lambda__1(x_41, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_61); 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_58); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -lean_dec(x_62); -lean_ctor_set(x_60, 0, x_63); -return x_60; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -lean_inc(x_64); lean_dec(x_60); -x_66 = lean_ctor_get(x_64, 0); -lean_inc(x_66); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); lean_dec(x_64); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -return x_67; -} -} +lean_ctor_set(x_62, 0, x_65); +return x_62; } else { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_38, 0); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_62, 0); +x_67 = lean_ctor_get(x_62, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_62); +x_68 = lean_ctor_get(x_66, 0); lean_inc(x_68); -x_69 = lean_ctor_get(x_38, 1); -lean_inc(x_69); -lean_dec(x_38); -x_18 = x_68; -x_19 = x_69; -goto block_31; +lean_dec(x_66); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} } } else { lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_32, 0); +x_70 = lean_ctor_get(x_40, 0); lean_inc(x_70); -x_71 = lean_ctor_get(x_32, 1); +x_71 = lean_ctor_get(x_40, 1); lean_inc(x_71); -lean_dec(x_32); +lean_dec(x_40); x_18 = x_70; x_19 = x_71; -goto block_31; +goto block_33; } -block_31: +} +else +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_34, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_34, 1); +lean_inc(x_73); +lean_dec(x_34); +x_18 = x_72; +x_19 = x_73; +goto block_33; +} +block_33: { uint8_t x_20; -x_20 = l_Lean_Exception_isRuntime(x_18); +x_20 = l_Lean_Exception_isInterrupt(x_18); if (x_20 == 0) { -lean_object* x_21; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +lean_object* x_22; lean_dec(x_16); -x_21 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_obj_tag(x_21) == 0) +if (lean_obj_tag(x_22) == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_ctor_set_tag(x_21, 1); -return x_21; +lean_ctor_set_tag(x_22, 1); +return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_21); -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; +lean_dec(x_22); +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_26; -x_26 = !lean_is_exclusive(x_21); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) { -return x_21; +return x_22; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_21); -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; +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } else { -lean_object* x_30; +lean_object* x_31; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -44457,20 +48961,41 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_16)) { - x_30 = lean_alloc_ctor(1, 2, 0); + x_31 = lean_alloc_ctor(1, 2, 0); } else { - x_30 = x_16; - lean_ctor_set_tag(x_30, 1); + x_31 = x_16; + lean_ctor_set_tag(x_31, 1); } -lean_ctor_set(x_30, 0, x_18); -lean_ctor_set(x_30, 1, x_19); -return x_30; +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +return x_31; +} +} +else +{ +lean_object* x_32; +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); +if (lean_is_scalar(x_16)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_16; + lean_ctor_set_tag(x_32, 1); +} +lean_ctor_set(x_32, 0, x_18); +lean_ctor_set(x_32, 1, x_19); +return x_32; } } } else { -uint8_t x_72; +uint8_t x_74; lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -44479,23 +49004,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_72 = !lean_is_exclusive(x_13); -if (x_72 == 0) +x_74 = !lean_is_exclusive(x_13); +if (x_74 == 0) { return x_13; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_13, 0); -x_74 = lean_ctor_get(x_13, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_13, 0); +x_76 = lean_ctor_get(x_13, 1); +lean_inc(x_76); +lean_inc(x_75); lean_dec(x_13); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } @@ -44888,7 +49413,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -44900,7 +49425,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -44913,29 +49441,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -45766,7 +50296,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -45778,7 +50308,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -45791,29 +50324,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } } @@ -46413,7 +50948,7 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermA _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; x_3 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); @@ -46599,7 +51134,7 @@ return x_29; default: { uint8_t x_30; -x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*9); if (x_30 == 0) { lean_object* x_31; @@ -46758,7 +51293,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -46770,7 +51305,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -46783,23 +51321,25 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_29, x_10, x_11); -return x_30; +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_31, x_10, x_11); +return x_32; } } } @@ -46882,7 +51422,7 @@ return x_25; else { uint8_t x_26; -x_26 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); +x_26 = lean_ctor_get_uint8(x_5, sizeof(void*)*9 + 3); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; @@ -47139,7 +51679,7 @@ return x_68; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__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_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; 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_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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -47162,73 +51702,81 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = lean_nat_dec_eq(x_15, x_16); -if (x_24 == 0) +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = lean_nat_dec_eq(x_15, x_16); +if (x_26 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 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; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_26 = lean_ctor_get(x_9, 10); -lean_dec(x_26); -x_27 = lean_ctor_get(x_9, 9); -lean_dec(x_27); -x_28 = lean_ctor_get(x_9, 8); +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; uint8_t x_42; lean_object* x_43; +x_28 = lean_ctor_get(x_9, 11); lean_dec(x_28); -x_29 = lean_ctor_get(x_9, 7); +x_29 = lean_ctor_get(x_9, 10); lean_dec(x_29); -x_30 = lean_ctor_get(x_9, 6); +x_30 = lean_ctor_get(x_9, 9); lean_dec(x_30); -x_31 = lean_ctor_get(x_9, 5); +x_31 = lean_ctor_get(x_9, 8); lean_dec(x_31); -x_32 = lean_ctor_get(x_9, 4); +x_32 = lean_ctor_get(x_9, 7); lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 3); +x_33 = lean_ctor_get(x_9, 6); lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 2); +x_34 = lean_ctor_get(x_9, 5); lean_dec(x_34); -x_35 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_9, 0); +x_36 = lean_ctor_get(x_9, 3); lean_dec(x_36); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_15, x_37); +x_37 = lean_ctor_get(x_9, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_9, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_9, 0); +lean_dec(x_39); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_15, x_40); lean_dec(x_15); -lean_ctor_set(x_9, 3, x_38); -x_39 = 1; -x_40 = l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1(x_1, x_2, x_3, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_40; +lean_ctor_set(x_9, 3, x_41); +x_42 = 1; +x_43 = l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1(x_1, x_2, x_3, x_42, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_43; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_dec(x_9); -x_41 = lean_unsigned_to_nat(1u); -x_42 = lean_nat_add(x_15, x_41); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_add(x_15, x_44); lean_dec(x_15); -x_43 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_43, 0, x_12); -lean_ctor_set(x_43, 1, x_13); -lean_ctor_set(x_43, 2, x_14); -lean_ctor_set(x_43, 3, x_42); -lean_ctor_set(x_43, 4, x_16); -lean_ctor_set(x_43, 5, x_17); -lean_ctor_set(x_43, 6, x_18); -lean_ctor_set(x_43, 7, x_19); -lean_ctor_set(x_43, 8, x_20); -lean_ctor_set(x_43, 9, x_21); -lean_ctor_set(x_43, 10, x_22); -lean_ctor_set_uint8(x_43, sizeof(void*)*11, x_23); -x_44 = 1; -x_45 = l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1(x_1, x_2, x_3, x_44, x_4, x_5, x_6, x_7, x_8, x_43, x_10, x_11); -return x_45; +x_46 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_46, 0, x_12); +lean_ctor_set(x_46, 1, x_13); +lean_ctor_set(x_46, 2, x_14); +lean_ctor_set(x_46, 3, x_45); +lean_ctor_set(x_46, 4, x_16); +lean_ctor_set(x_46, 5, x_17); +lean_ctor_set(x_46, 6, x_18); +lean_ctor_set(x_46, 7, x_19); +lean_ctor_set(x_46, 8, x_20); +lean_ctor_set(x_46, 9, x_21); +lean_ctor_set(x_46, 10, x_22); +lean_ctor_set(x_46, 11, x_24); +lean_ctor_set_uint8(x_46, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_46, sizeof(void*)*12 + 1, x_25); +x_47 = 1; +x_48 = l_Lean_withTraceNode___at_Lean_Elab_Term_mkCoe___spec__1(x_1, x_2, x_3, x_47, x_4, x_5, x_6, x_7, x_8, x_46, x_10, x_11); +return x_48; } } else { -lean_object* x_46; +lean_object* x_49; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -47243,14 +51791,14 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_46 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__14(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_49 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__14(x_17, x_5, 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_7); lean_dec(x_6); lean_dec(x_5); -return x_46; +return x_49; } } } @@ -47258,7 +51806,7 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermA _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -47940,7 +52488,7 @@ return x_15; } else { -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; lean_object* x_30; +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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_16 = lean_ctor_get(x_9, 0); x_17 = lean_ctor_get(x_9, 1); x_18 = lean_ctor_get(x_9, 2); @@ -47952,7 +52500,10 @@ x_23 = lean_ctor_get(x_9, 7); x_24 = lean_ctor_get(x_9, 8); x_25 = lean_ctor_get(x_9, 9); x_26 = lean_ctor_get(x_9, 10); -x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_28 = lean_ctor_get(x_9, 11); +x_29 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_28); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -47965,23 +52516,25 @@ lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_dec(x_9); -x_28 = l_Lean_replaceRef(x_1, x_21); +x_30 = l_Lean_replaceRef(x_1, x_21); lean_dec(x_21); -x_29 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_17); -lean_ctor_set(x_29, 2, x_18); -lean_ctor_set(x_29, 3, x_19); -lean_ctor_set(x_29, 4, x_20); -lean_ctor_set(x_29, 5, x_28); -lean_ctor_set(x_29, 6, x_22); -lean_ctor_set(x_29, 7, x_23); -lean_ctor_set(x_29, 8, x_24); -lean_ctor_set(x_29, 9, x_25); -lean_ctor_set(x_29, 10, x_26); -lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_27); -x_30 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_29, x_10, x_11); -return x_30; +x_31 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_30); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_24); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set(x_31, 10, x_26); +lean_ctor_set(x_31, 11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*12, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*12 + 1, x_29); +x_32 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8, x_31, x_10, x_11); +return x_32; } } } @@ -48012,7 +52565,7 @@ lean_inc(x_1); x_13 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, 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; 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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -48041,74 +52594,83 @@ x_26 = lean_ctor_get(x_10, 9); lean_inc(x_26); x_27 = lean_ctor_get(x_10, 10); lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_29 = l_Lean_replaceRef(x_1, x_22); +x_28 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_29 = lean_ctor_get(x_10, 11); +lean_inc(x_29); +x_30 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_31 = l_Lean_replaceRef(x_1, x_22); lean_dec(x_22); lean_dec(x_1); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_18); -lean_ctor_set(x_30, 2, x_19); -lean_ctor_set(x_30, 3, x_20); -lean_ctor_set(x_30, 4, x_21); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -lean_ctor_set(x_30, 7, x_24); -lean_ctor_set(x_30, 8, x_25); -lean_ctor_set(x_30, 9, x_26); -lean_ctor_set(x_30, 10, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_28); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_19); +lean_ctor_set(x_32, 3, x_20); +lean_ctor_set(x_32, 4, x_21); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_23); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_25); +lean_ctor_set(x_32, 9, x_26); +lean_ctor_set(x_32, 10, x_27); +lean_ctor_set(x_32, 11, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_30); lean_inc(x_11); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -x_31 = l_Lean_Elab_Term_ensureHasType(x_2, x_14, x_5, x_16, x_6, x_7, x_8, x_9, x_30, x_11, x_15); -if (lean_obj_tag(x_31) == 0) -{ -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -return x_31; -} -else -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -x_35 = l_Lean_Exception_isRuntime(x_33); -if (x_35 == 0) -{ -uint8_t x_36; -x_36 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -if (x_36 == 0) -{ -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -return x_31; -} -else -{ +x_33 = l_Lean_Elab_Term_ensureHasType(x_2, x_14, x_5, x_16, x_6, x_7, x_8, x_9, x_32, x_11, x_15); if (lean_obj_tag(x_33) == 0) { -lean_object* x_37; -lean_free_object(x_31); -x_37 = l_Lean_Elab_Term_exceptionToSorry(x_33, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_34); -return x_37; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_33; +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +uint8_t x_39; +x_39 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_39 == 0) +{ +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_33; +} +else +{ +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_40; +lean_free_object(x_33); +x_40 = l_Lean_Elab_Term_exceptionToSorry(x_35, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_36); +return x_40; } else { @@ -48119,7 +52681,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -return x_31; +return x_33; } } } @@ -48132,25 +52694,11 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -return x_31; +return x_33; } } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_31, 0); -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_31); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -uint8_t x_41; -x_41 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -if (x_41 == 0) -{ -lean_object* x_42; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -48158,22 +52706,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_39); -return x_42; +return x_33; +} } else { -if (lean_obj_tag(x_38) == 0) +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_33, 0); +x_42 = lean_ctor_get(x_33, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_33); +x_43 = l_Lean_Exception_isInterrupt(x_41); +if (x_43 == 0) { -lean_object* x_43; -x_43 = l_Lean_Elab_Term_exceptionToSorry(x_38, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_39); -return x_43; -} -else +uint8_t x_44; +x_44 = l_Lean_Exception_isRuntime(x_41); +if (x_44 == 0) { -lean_object* x_44; +uint8_t x_45; +x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*9 + 1); +if (x_45 == 0) +{ +lean_object* x_46; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -48181,16 +52736,22 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_39); -return x_44; -} -} +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_41); +lean_ctor_set(x_46, 1, x_42); +return x_46; } else { -lean_object* x_45; +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_47; +x_47 = l_Lean_Elab_Term_exceptionToSorry(x_41, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_42); +return x_47; +} +else +{ +lean_object* x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -48198,17 +52759,50 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_38); -lean_ctor_set(x_45, 1, x_39); -return x_45; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_42); +return x_48; +} +} +} +else +{ +lean_object* x_49; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_41); +lean_ctor_set(x_49, 1, x_42); +return x_49; +} +} +else +{ +lean_object* x_50; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_41); +lean_ctor_set(x_50, 1, x_42); +return x_50; } } } } else { -uint8_t x_46; +uint8_t x_51; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -48218,23 +52812,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_13); -if (x_46 == 0) +x_51 = !lean_is_exclusive(x_13); +if (x_51 == 0) { return x_13; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_13, 0); -x_48 = lean_ctor_get(x_13, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_13, 0); +x_53 = lean_ctor_get(x_13, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_13); -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; +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; } } } @@ -48254,7 +52848,7 @@ return x_15; LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfNoErrors_x3f___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_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_28; +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_30; x_9 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); @@ -48278,156 +52872,163 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_28 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_13); -if (lean_obj_tag(x_28) == 0) +x_30 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +if (lean_obj_tag(x_30) == 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; uint8_t x_35; +lean_object* 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_dec(x_14); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_st_ref_get(x_7, x_30); -x_32 = lean_ctor_get(x_31, 0); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_ctor_get(x_32, 5); +lean_dec(x_30); +x_33 = lean_st_ref_get(x_7, x_32); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_34); -if (x_35 == 0) +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_34, 5); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_MessageLog_hasErrors(x_36); +if (x_37 == 0) { -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; uint8_t x_44; +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; uint8_t x_47; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_36 = l_Lean_Core_getMessageLog___rarg(x_7, x_33); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_ctor_get(x_10, 0); +x_38 = l_Lean_Core_getMessageLog___rarg(x_7, x_35); +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_10); -x_40 = lean_ctor_get(x_39, 0); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_ctor_get(x_40, 5); +lean_dec(x_38); +x_41 = lean_ctor_get(x_10, 0); lean_inc(x_41); -lean_dec(x_40); -x_42 = l_Lean_PersistentArray_append___rarg(x_41, x_37); -x_43 = l_Lean_Core_setMessageLog(x_42, x_6, x_7, x_38); +lean_dec(x_10); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_dec(x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_ctor_get(x_43, 5); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_MessageLog_append(x_44, x_39); +x_46 = l_Lean_Core_setMessageLog(x_45, x_6, x_7, x_40); lean_dec(x_7); lean_dec(x_6); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_43, 0); -lean_dec(x_45); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_29); -lean_ctor_set(x_43, 0, x_46); -return x_43; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_31); +lean_ctor_set(x_46, 0, x_49); +return x_46; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_43, 1); -lean_inc(x_47); -lean_dec(x_43); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_29); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_31); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } else { -uint8_t x_50; lean_object* x_51; uint8_t x_52; -lean_dec(x_29); -x_50 = 0; -x_51 = l_Lean_Elab_Term_SavedState_restore(x_10, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +uint8_t x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_31); +x_53 = 0; +x_54 = l_Lean_Elab_Term_SavedState_restore(x_10, x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_35); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_51, 0); -lean_dec(x_53); -x_54 = lean_box(0); -lean_ctor_set(x_51, 0, x_54); -return x_51; +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +x_57 = lean_box(0); +lean_ctor_set(x_54, 0, x_57); +return x_54; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_51, 1); -lean_inc(x_55); -lean_dec(x_51); -x_56 = lean_box(0); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -} -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_28, 0); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_54, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_28, 1); -lean_inc(x_59); -lean_dec(x_28); -x_15 = x_58; -x_16 = x_59; -goto block_27; +lean_dec(x_54); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +return x_60; } -block_27: +} +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_30, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_30, 1); +lean_inc(x_62); +lean_dec(x_30); +x_15 = x_61; +x_16 = x_62; +goto block_29; +} +block_29: { uint8_t x_17; -x_17 = l_Lean_Exception_isRuntime(x_15); +x_17 = l_Lean_Exception_isInterrupt(x_15); if (x_17 == 0) { -uint8_t x_18; lean_object* x_19; uint8_t x_20; +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_15); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; uint8_t x_21; lean_dec(x_15); lean_dec(x_14); -x_18 = 0; -x_19 = l_Lean_Elab_Term_SavedState_restore(x_10, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_16); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_19 = 0; +x_20 = l_Lean_Elab_Term_SavedState_restore(x_10, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -lean_dec(x_21); -x_22 = lean_box(0); -lean_ctor_set(x_19, 0, x_22); -return x_19; +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set(x_20, 0, x_23); +return x_20; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; } } else { -lean_object* x_26; +lean_object* x_27; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); @@ -48436,14 +53037,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_14)) { - x_26 = lean_alloc_ctor(1, 2, 0); + x_27 = lean_alloc_ctor(1, 2, 0); } else { - x_26 = x_14; - lean_ctor_set_tag(x_26, 1); + x_27 = x_14; + lean_ctor_set_tag(x_27, 1); } -lean_ctor_set(x_26, 0, x_15); -lean_ctor_set(x_26, 1, x_16); -return x_26; +lean_ctor_set(x_27, 0, x_15); +lean_ctor_set(x_27, 1, x_16); +return x_27; +} +} +else +{ +lean_object* x_28; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_14)) { + x_28 = lean_alloc_ctor(1, 2, 0); +} else { + x_28 = x_14; + lean_ctor_set_tag(x_28, 1); +} +lean_ctor_set(x_28, 0, x_15); +lean_ctor_set(x_28, 1, x_16); +return x_28; } } } @@ -48691,7 +53313,7 @@ static lean_object* _init_l_Lean_Elab_Term_ensureType___lambda__1___closed__3() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; +x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__11; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -49240,7 +53862,7 @@ return x_21; } else { -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; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_22 = lean_ctor_get(x_6, 0); x_23 = lean_ctor_get(x_6, 1); x_24 = lean_ctor_get(x_6, 2); @@ -49252,7 +53874,10 @@ x_29 = lean_ctor_get(x_6, 7); x_30 = lean_ctor_get(x_6, 8); x_31 = lean_ctor_get(x_6, 9); x_32 = lean_ctor_get(x_6, 10); -x_33 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_33 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_34 = lean_ctor_get(x_6, 11); +x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +lean_inc(x_34); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); @@ -49265,29 +53890,31 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_6); -x_34 = l_Lean_replaceRef(x_1, x_27); +x_36 = l_Lean_replaceRef(x_1, x_27); lean_dec(x_27); lean_dec(x_1); -x_35 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_35, 0, x_22); -lean_ctor_set(x_35, 1, x_23); -lean_ctor_set(x_35, 2, x_24); -lean_ctor_set(x_35, 3, x_25); -lean_ctor_set(x_35, 4, x_26); -lean_ctor_set(x_35, 5, x_34); -lean_ctor_set(x_35, 6, x_28); -lean_ctor_set(x_35, 7, x_29); -lean_ctor_set(x_35, 8, x_30); -lean_ctor_set(x_35, 9, x_31); -lean_ctor_set(x_35, 10, x_32); -lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_33); -x_36 = l_Lean_Elab_Term_ensureType(x_16, x_2, x_3, x_4, x_5, x_35, x_7, x_17); -return x_36; +x_37 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_37, 0, x_22); +lean_ctor_set(x_37, 1, x_23); +lean_ctor_set(x_37, 2, x_24); +lean_ctor_set(x_37, 3, x_25); +lean_ctor_set(x_37, 4, x_26); +lean_ctor_set(x_37, 5, x_36); +lean_ctor_set(x_37, 6, x_28); +lean_ctor_set(x_37, 7, x_29); +lean_ctor_set(x_37, 8, x_30); +lean_ctor_set(x_37, 9, x_31); +lean_ctor_set(x_37, 10, x_32); +lean_ctor_set(x_37, 11, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*12, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*12 + 1, x_35); +x_38 = l_Lean_Elab_Term_ensureType(x_16, x_2, x_3, x_4, x_5, x_37, x_7, x_17); +return x_38; } } else { -uint8_t x_37; +uint8_t x_39; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -49295,23 +53922,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_15); -if (x_37 == 0) +x_39 = !lean_is_exclusive(x_15); +if (x_39 == 0) { return x_15; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_15, 0); -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_inc(x_38); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_15, 0); +x_41 = lean_ctor_get(x_15, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_15); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +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; } } } @@ -49360,25 +53987,27 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t 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; lean_object* x_40; +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t 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; lean_object* x_41; x_17 = lean_ctor_get(x_3, 0); x_18 = lean_ctor_get(x_3, 1); x_19 = lean_ctor_get(x_3, 2); -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); x_23 = lean_ctor_get(x_3, 3); x_24 = lean_ctor_get(x_3, 4); x_25 = lean_ctor_get(x_3, 5); x_26 = lean_ctor_get(x_3, 6); -x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 3); -x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4); -x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5); -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); -x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); x_32 = lean_ctor_get(x_3, 7); -x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); -x_34 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); +x_33 = lean_ctor_get(x_3, 8); +x_34 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_35 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); +lean_inc(x_33); lean_inc(x_32); lean_inc(x_26); lean_inc(x_25); @@ -49388,34 +54017,35 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_3); -x_35 = l_Lean_PersistentArray_push___rarg(x_23, x_2); -x_36 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_36, 0, x_17); -lean_ctor_set(x_36, 1, x_18); -lean_ctor_set(x_36, 2, x_19); -lean_ctor_set(x_36, 3, x_35); -lean_ctor_set(x_36, 4, x_24); -lean_ctor_set(x_36, 5, x_25); -lean_ctor_set(x_36, 6, x_26); -lean_ctor_set(x_36, 7, x_32); -lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_20); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_21); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_22); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 3, x_27); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 4, x_28); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 5, x_29); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 6, x_30); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 7, x_31); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 8, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 9, x_34); -x_37 = l_Lean_Elab_Term_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +x_36 = l_Lean_PersistentArray_push___rarg(x_23, x_2); +x_37 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_37, 0, x_17); +lean_ctor_set(x_37, 1, x_18); +lean_ctor_set(x_37, 2, x_19); +lean_ctor_set(x_37, 3, x_36); +lean_ctor_set(x_37, 4, x_24); +lean_ctor_set(x_37, 5, x_25); +lean_ctor_set(x_37, 6, x_26); +lean_ctor_set(x_37, 7, x_32); +lean_ctor_set(x_37, 8, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_20); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_21); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 2, x_22); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 3, x_27); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 4, x_28); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 5, x_29); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 6, x_30); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 7, x_31); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 8, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 9, x_35); +x_38 = l_Lean_Elab_Term_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9); +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg(x_1, x_38, x_36, x_4, x_5, x_6, x_7, x_8, x_39); -return x_40; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg(x_1, x_39, x_37, x_4, x_5, x_6, x_7, x_8, x_40); +return x_41; } } } @@ -49430,7 +54060,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop___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_object* x_9) { _start: { -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; uint8_t x_21; uint8_t x_22; +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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -49453,49 +54083,54 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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; -x_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); +lean_dec(x_37); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___closed__1; -x_38 = l_Lean_Core_checkSystem(x_37, x_7, x_8, x_9); -if (lean_obj_tag(x_38) == 0) +lean_ctor_set(x_7, 3, x_39); +x_40 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___closed__1; +x_41 = l_Lean_Core_checkSystem(x_40, x_7, x_8, x_9); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); lean_inc(x_1); lean_inc(x_8); lean_inc(x_7); @@ -49503,8 +54138,8 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_40 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_40) == 0) +x_43 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +if (lean_obj_tag(x_43) == 0) { lean_dec(x_7); lean_dec(x_8); @@ -49514,23 +54149,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_40; +return x_43; } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -x_44 = l_Lean_Exception_isRuntime(x_42); +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); if (x_44 == 0) { -lean_object* x_45; -x_45 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_42); -if (lean_obj_tag(x_45) == 0) +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +x_47 = l_Lean_Exception_isInterrupt(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_45); +if (lean_obj_tag(x_49) == 0) { lean_dec(x_7); lean_dec(x_8); @@ -49540,42 +54179,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_40; +return x_43; } else { -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint8_t 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; uint8_t x_57; lean_object* x_58; -lean_free_object(x_40); -lean_dec(x_42); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); +lean_object* x_50; uint8_t 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; lean_object* x_58; lean_object* x_59; uint8_t x_60; uint8_t x_61; lean_object* x_62; +lean_free_object(x_43); lean_dec(x_45); -x_47 = 1; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +x_51 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_48 = l_Lean_Elab_Term_SavedState_restore(x_2, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = 0; -x_51 = lean_box(0); -lean_inc(x_5); -x_52 = l_Lean_Meta_mkFreshTypeMVar(x_50, x_51, x_5, x_6, x_7, x_8, x_49); -x_53 = lean_ctor_get(x_52, 0); +x_52 = l_Lean_Elab_Term_SavedState_restore(x_2, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); lean_dec(x_52); -x_55 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); -lean_closure_set(x_55, 0, x_1); -x_56 = 1; -x_57 = 0; -x_58 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_46, x_56, x_53, x_55, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_54); -return x_58; +x_54 = 0; +x_55 = lean_box(0); +lean_inc(x_5); +x_56 = l_Lean_Meta_mkFreshTypeMVar(x_54, x_55, x_5, x_6, x_7, x_8, x_53); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); +lean_closure_set(x_59, 0, x_1); +x_60 = 1; +x_61 = 0; +x_62 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_50, x_60, x_57, x_59, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_58); +return x_62; } } else @@ -49588,25 +54227,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_40; +return x_43; } } else { -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_40, 0); -x_60 = lean_ctor_get(x_40, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_40); -x_61 = l_Lean_Exception_isRuntime(x_59); -if (x_61 == 0) -{ -lean_object* x_62; -x_62 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_59); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -49615,135 +54240,185 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_59); -lean_ctor_set(x_63, 1, x_60); -return x_63; +return x_43; +} } else { -lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; -lean_dec(x_59); -x_64 = lean_ctor_get(x_62, 0); +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_43, 0); +x_64 = lean_ctor_get(x_43, 1); lean_inc(x_64); -lean_dec(x_62); -x_65 = 1; +lean_inc(x_63); +lean_dec(x_43); +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +if (x_66 == 0) +{ +lean_object* x_67; +x_67 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_63); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; +lean_dec(x_7); +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_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_63); +lean_ctor_set(x_68, 1, x_64); +return x_68; +} +else +{ +lean_object* x_69; uint8_t 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; uint8_t x_79; uint8_t x_80; lean_object* x_81; +lean_dec(x_63); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +lean_dec(x_67); +x_70 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_66 = l_Lean_Elab_Term_SavedState_restore(x_2, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_60); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = 0; -x_69 = lean_box(0); -lean_inc(x_5); -x_70 = l_Lean_Meta_mkFreshTypeMVar(x_68, x_69, x_5, x_6, x_7, x_8, x_67); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); +x_71 = l_Lean_Elab_Term_SavedState_restore(x_2, x_70, x_3, x_4, x_5, x_6, x_7, x_8, x_64); +x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); -lean_closure_set(x_73, 0, x_1); -x_74 = 1; -x_75 = 0; -x_76 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_64, x_74, x_71, x_73, x_75, x_3, x_4, x_5, x_6, x_7, x_8, x_72); -return x_76; -} -} -else -{ -lean_object* x_77; -lean_dec(x_7); -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_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_59); -lean_ctor_set(x_77, 1, x_60); -return x_77; -} -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_7); -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_78 = !lean_is_exclusive(x_38); -if (x_78 == 0) -{ -return x_38; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_38, 0); -x_80 = lean_ctor_get(x_38, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_38); -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_dec(x_71); +x_73 = 0; +x_74 = lean_box(0); +lean_inc(x_5); +x_75 = l_Lean_Meta_mkFreshTypeMVar(x_73, x_74, x_5, x_6, x_7, x_8, x_72); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); +lean_closure_set(x_78, 0, x_1); +x_79 = 1; +x_80 = 0; +x_81 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_69, x_79, x_76, x_78, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_77); return x_81; } } +else +{ +lean_object* x_82; +lean_dec(x_7); +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_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_63); +lean_ctor_set(x_82, 1, x_64); +return x_82; +} } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_object* x_83; lean_dec(x_7); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_nat_add(x_13, x_82); -lean_dec(x_13); -x_84 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_84, 0, x_10); -lean_ctor_set(x_84, 1, x_11); -lean_ctor_set(x_84, 2, x_12); -lean_ctor_set(x_84, 3, x_83); -lean_ctor_set(x_84, 4, x_14); -lean_ctor_set(x_84, 5, x_15); -lean_ctor_set(x_84, 6, x_16); -lean_ctor_set(x_84, 7, x_17); -lean_ctor_set(x_84, 8, x_18); -lean_ctor_set(x_84, 9, x_19); -lean_ctor_set(x_84, 10, x_20); -lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_21); -x_85 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___closed__1; -x_86 = l_Lean_Core_checkSystem(x_85, x_84, x_8, x_9); -if (lean_obj_tag(x_86) == 0) +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_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_63); +lean_ctor_set(x_83, 1, x_64); +return x_83; +} +} +} +} +else { -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); +uint8_t x_84; +lean_dec(x_7); +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_84 = !lean_is_exclusive(x_41); +if (x_84 == 0) +{ +return x_41; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_41, 0); +x_86 = lean_ctor_get(x_41, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_41); +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_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_7); +x_88 = lean_unsigned_to_nat(1u); +x_89 = lean_nat_add(x_13, x_88); +lean_dec(x_13); +x_90 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_90, 0, x_10); +lean_ctor_set(x_90, 1, x_11); +lean_ctor_set(x_90, 2, x_12); +lean_ctor_set(x_90, 3, x_89); +lean_ctor_set(x_90, 4, x_14); +lean_ctor_set(x_90, 5, x_15); +lean_ctor_set(x_90, 6, x_16); +lean_ctor_set(x_90, 7, x_17); +lean_ctor_set(x_90, 8, x_18); +lean_ctor_set(x_90, 9, x_19); +lean_ctor_set(x_90, 10, x_20); +lean_ctor_set(x_90, 11, x_22); +lean_ctor_set_uint8(x_90, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_90, sizeof(void*)*12 + 1, x_23); +x_91 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___closed__1; +x_92 = l_Lean_Core_checkSystem(x_91, x_90, x_8, x_9); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); lean_inc(x_1); lean_inc(x_8); -lean_inc(x_84); +lean_inc(x_90); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_88 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_84, x_8, x_87); -if (lean_obj_tag(x_88) == 0) +x_94 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_90, x_8, x_93); +if (lean_obj_tag(x_94) == 0) { -lean_dec(x_84); +lean_dec(x_90); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -49751,143 +54426,169 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_88; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_91 = x_88; -} else { - lean_dec_ref(x_88); - x_91 = lean_box(0); -} -x_92 = l_Lean_Exception_isRuntime(x_89); -if (x_92 == 0) -{ -lean_object* x_93; -x_93 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_89); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; -lean_dec(x_84); -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); -if (lean_is_scalar(x_91)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_91; -} -lean_ctor_set(x_94, 0, x_89); -lean_ctor_set(x_94, 1, x_90); return x_94; } else { -lean_object* x_95; uint8_t 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; uint8_t x_105; uint8_t x_106; lean_object* x_107; -lean_dec(x_91); -lean_dec(x_89); -x_95 = lean_ctor_get(x_93, 0); +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_dec(x_93); -x_96 = 1; +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_97 = x_94; +} else { + lean_dec_ref(x_94); + x_97 = lean_box(0); +} +x_98 = l_Lean_Exception_isInterrupt(x_95); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_95); +if (x_99 == 0) +{ +lean_object* x_100; +x_100 = l_Lean_Elab_isAutoBoundImplicitLocalException_x3f(x_95); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; +lean_dec(x_90); +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); +if (lean_is_scalar(x_97)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_97; +} +lean_ctor_set(x_101, 0, x_95); +lean_ctor_set(x_101, 1, x_96); +return x_101; +} +else +{ +lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; +lean_dec(x_97); +lean_dec(x_95); +x_102 = lean_ctor_get(x_100, 0); +lean_inc(x_102); +lean_dec(x_100); +x_103 = 1; lean_inc(x_8); -lean_inc(x_84); +lean_inc(x_90); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_97 = l_Lean_Elab_Term_SavedState_restore(x_2, x_96, x_3, x_4, x_5, x_6, x_84, x_8, x_90); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = 0; -x_100 = lean_box(0); -lean_inc(x_5); -x_101 = l_Lean_Meta_mkFreshTypeMVar(x_99, x_100, x_5, x_6, x_84, x_8, x_98); -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_104 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); -lean_closure_set(x_104, 0, x_1); -x_105 = 1; +x_104 = l_Lean_Elab_Term_SavedState_restore(x_2, x_103, x_3, x_4, x_5, x_6, x_90, x_8, x_96); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +lean_dec(x_104); x_106 = 0; -x_107 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_95, x_105, x_102, x_104, x_106, x_3, x_4, x_5, x_6, x_84, x_8, x_103); -return x_107; -} -} -else -{ -lean_object* x_108; -lean_dec(x_84); -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); -if (lean_is_scalar(x_91)) { - x_108 = lean_alloc_ctor(1, 2, 0); -} else { - x_108 = x_91; -} -lean_ctor_set(x_108, 0, x_89); -lean_ctor_set(x_108, 1, x_90); -return x_108; -} -} -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_84); -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_109 = lean_ctor_get(x_86, 0); +x_107 = lean_box(0); +lean_inc(x_5); +x_108 = l_Lean_Meta_mkFreshTypeMVar(x_106, x_107, x_5, x_6, x_90, x_8, x_105); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_86, 1); +x_110 = lean_ctor_get(x_108, 1); lean_inc(x_110); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_111 = x_86; -} else { - lean_dec_ref(x_86); - x_111 = lean_box(0); +lean_dec(x_108); +x_111 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1), 9, 1); +lean_closure_set(x_111, 0, x_1); +x_112 = 1; +x_113 = 0; +x_114 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_102, x_112, x_109, x_111, x_113, x_3, x_4, x_5, x_6, x_90, x_8, x_110); +return x_114; } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); -} else { - x_112 = x_111; } -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; +else +{ +lean_object* x_115; +lean_dec(x_90); +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); +if (lean_is_scalar(x_97)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_97; +} +lean_ctor_set(x_115, 0, x_95); +lean_ctor_set(x_115, 1, x_96); +return x_115; +} +} +else +{ +lean_object* x_116; +lean_dec(x_90); +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); +if (lean_is_scalar(x_97)) { + x_116 = lean_alloc_ctor(1, 2, 0); +} else { + x_116 = x_97; +} +lean_ctor_set(x_116, 0, x_95); +lean_ctor_set(x_116, 1, x_96); +return x_116; } } } else { -lean_object* x_113; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_90); +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_117 = lean_ctor_get(x_92, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_92, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_119 = x_92; +} else { + lean_dec_ref(x_92); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +} +} +else +{ +lean_object* x_121; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -49900,14 +54601,14 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); lean_dec(x_1); -x_113 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_withAutoBoundImplicit_loop___spec__1___rarg(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_121 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_withAutoBoundImplicit_loop___spec__1___rarg(x_15, x_3, x_4, x_5, x_6, x_7, x_8, 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); -return x_113; +return x_121; } } } @@ -49967,7 +54668,7 @@ x_14 = lean_ctor_get(x_2, 3); lean_dec(x_14); x_15 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; lean_ctor_set(x_2, 3, x_15); -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 2, x_11); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 2, x_11); x_16 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -49979,23 +54680,25 @@ return x_19; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; uint8_t 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; lean_object* x_41; +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t 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; lean_object* x_42; x_20 = lean_ctor_get(x_2, 0); x_21 = lean_ctor_get(x_2, 1); x_22 = lean_ctor_get(x_2, 2); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); x_25 = lean_ctor_get(x_2, 4); x_26 = lean_ctor_get(x_2, 5); x_27 = lean_ctor_get(x_2, 6); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_30 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_31 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_32 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_30 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_31 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_32 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_33 = lean_ctor_get(x_2, 7); -x_34 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_35 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_34 = lean_ctor_get(x_2, 8); +x_35 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_36 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_34); lean_inc(x_33); lean_inc(x_27); lean_inc(x_26); @@ -50004,34 +54707,35 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_2); -x_36 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; -x_37 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_37, 0, x_20); -lean_ctor_set(x_37, 1, x_21); -lean_ctor_set(x_37, 2, x_22); -lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_25); -lean_ctor_set(x_37, 5, x_26); -lean_ctor_set(x_37, 6, x_27); -lean_ctor_set(x_37, 7, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_23); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_24); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_11); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 3, x_28); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 4, x_29); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 5, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 6, x_31); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 7, x_32); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 8, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 9, x_35); -x_38 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +x_37 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; +x_38 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_38, 0, x_20); +lean_ctor_set(x_38, 1, x_21); +lean_ctor_set(x_38, 2, x_22); +lean_ctor_set(x_38, 3, x_37); +lean_ctor_set(x_38, 4, x_25); +lean_ctor_set(x_38, 5, x_26); +lean_ctor_set(x_38, 6, x_27); +lean_ctor_set(x_38, 7, x_33); +lean_ctor_set(x_38, 8, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_23); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_24); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 2, x_11); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 3, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 4, x_29); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 5, x_30); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 6, x_31); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 7, x_32); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 8, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 9, x_36); +x_39 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg(x_1, x_39, x_37, x_3, x_4, x_5, x_6, x_7, x_40); -return x_41; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg(x_1, x_40, x_38, x_3, x_4, x_5, x_6, x_7, x_41); +return x_42; } } } @@ -50057,29 +54761,31 @@ lean_dec(x_10); x_11 = 0; x_12 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; lean_ctor_set(x_2, 3, x_12); -lean_ctor_set_uint8(x_2, sizeof(void*)*8 + 2, x_11); +lean_ctor_set_uint8(x_2, sizeof(void*)*9 + 2, x_11); x_13 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t 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_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_14 = lean_ctor_get(x_2, 0); x_15 = lean_ctor_get(x_2, 1); x_16 = lean_ctor_get(x_2, 2); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 1); x_19 = lean_ctor_get(x_2, 4); x_20 = lean_ctor_get(x_2, 5); x_21 = lean_ctor_get(x_2, 6); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 5); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 6); -x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 7); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 3); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 4); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 5); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 6); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 7); x_27 = lean_ctor_get(x_2, 7); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 8); -x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 9); +x_28 = lean_ctor_get(x_2, 8); +x_29 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 8); +x_30 = lean_ctor_get_uint8(x_2, sizeof(void*)*9 + 9); +lean_inc(x_28); lean_inc(x_27); lean_inc(x_21); lean_inc(x_20); @@ -50088,29 +54794,30 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_2); -x_30 = 0; -x_31 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; -x_32 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_32, 0, x_14); -lean_ctor_set(x_32, 1, x_15); -lean_ctor_set(x_32, 2, x_16); -lean_ctor_set(x_32, 3, x_31); -lean_ctor_set(x_32, 4, x_19); -lean_ctor_set(x_32, 5, x_20); -lean_ctor_set(x_32, 6, x_21); -lean_ctor_set(x_32, 7, x_27); -lean_ctor_set_uint8(x_32, sizeof(void*)*8, x_17); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 1, x_18); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 2, x_30); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 3, x_22); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 4, x_23); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 5, x_24); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 6, x_25); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 7, x_26); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 8, x_28); -lean_ctor_set_uint8(x_32, sizeof(void*)*8 + 9, x_29); -x_33 = lean_apply_7(x_1, x_32, x_3, x_4, x_5, x_6, x_7, x_8); -return x_33; +x_31 = 0; +x_32 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; +x_33 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_33, 0, x_14); +lean_ctor_set(x_33, 1, x_15); +lean_ctor_set(x_33, 2, x_16); +lean_ctor_set(x_33, 3, x_32); +lean_ctor_set(x_33, 4, x_19); +lean_ctor_set(x_33, 5, x_20); +lean_ctor_set(x_33, 6, x_21); +lean_ctor_set(x_33, 7, x_27); +lean_ctor_set(x_33, 8, x_28); +lean_ctor_set_uint8(x_33, sizeof(void*)*9, x_17); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 1, x_18); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 2, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 3, x_22); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 4, x_23); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 5, x_24); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 6, x_25); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 7, x_26); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 8, x_29); +lean_ctor_set_uint8(x_33, sizeof(void*)*9 + 9, x_30); +x_34 = lean_apply_7(x_1, x_33, x_3, x_4, x_5, x_6, x_7, x_8); +return x_34; } } } @@ -50153,84 +54860,89 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___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_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; uint8_t x_29; x_10 = lean_ctor_get(x_3, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_3, 1); lean_inc(x_11); x_12 = lean_ctor_get(x_3, 2); lean_inc(x_12); -x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*9); +x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 1); +x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 2); x_16 = lean_ctor_get(x_3, 3); lean_inc(x_16); x_17 = lean_ctor_get(x_3, 5); lean_inc(x_17); x_18 = lean_ctor_get(x_3, 6); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 3); -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 4); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 5); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 6); -x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 7); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 3); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 4); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 5); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 6); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 7); x_24 = lean_ctor_get(x_3, 7); lean_inc(x_24); -x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 8); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 9); +x_25 = lean_ctor_get(x_3, 8); +lean_inc(x_25); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 8); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*9 + 9); lean_inc(x_3); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg___lambda__1), 3, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_3); -x_28 = !lean_is_exclusive(x_3); -if (x_28 == 0) +x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred___rarg___lambda__1), 3, 2); +lean_closure_set(x_28, 0, x_1); +lean_closure_set(x_28, 1, x_3); +x_29 = !lean_is_exclusive(x_3); +if (x_29 == 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; lean_object* x_36; lean_object* x_37; -x_29 = lean_ctor_get(x_3, 7); -lean_dec(x_29); -x_30 = lean_ctor_get(x_3, 6); +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; +x_30 = lean_ctor_get(x_3, 8); lean_dec(x_30); -x_31 = lean_ctor_get(x_3, 5); +x_31 = lean_ctor_get(x_3, 7); lean_dec(x_31); -x_32 = lean_ctor_get(x_3, 4); +x_32 = lean_ctor_get(x_3, 6); lean_dec(x_32); -x_33 = lean_ctor_get(x_3, 3); +x_33 = lean_ctor_get(x_3, 5); lean_dec(x_33); -x_34 = lean_ctor_get(x_3, 2); +x_34 = lean_ctor_get(x_3, 4); lean_dec(x_34); -x_35 = lean_ctor_get(x_3, 1); +x_35 = lean_ctor_get(x_3, 3); lean_dec(x_35); -x_36 = lean_ctor_get(x_3, 0); +x_36 = lean_ctor_get(x_3, 2); lean_dec(x_36); -lean_ctor_set(x_3, 4, x_27); -x_37 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_37; +x_37 = lean_ctor_get(x_3, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_3, 0); +lean_dec(x_38); +lean_ctor_set(x_3, 4, x_28); +x_39 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_39; } else { -lean_object* x_38; lean_object* x_39; +lean_object* x_40; lean_object* x_41; lean_dec(x_3); -x_38 = lean_alloc_ctor(0, 8, 10); -lean_ctor_set(x_38, 0, x_10); -lean_ctor_set(x_38, 1, x_11); -lean_ctor_set(x_38, 2, x_12); -lean_ctor_set(x_38, 3, x_16); -lean_ctor_set(x_38, 4, x_27); -lean_ctor_set(x_38, 5, x_17); -lean_ctor_set(x_38, 6, x_18); -lean_ctor_set(x_38, 7, x_24); -lean_ctor_set_uint8(x_38, sizeof(void*)*8, x_13); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 1, x_14); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 2, x_15); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 3, x_19); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 4, x_20); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 5, x_21); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 6, x_22); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 7, x_23); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 8, x_25); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 9, x_26); -x_39 = lean_apply_7(x_2, x_38, x_4, x_5, x_6, x_7, x_8, x_9); -return x_39; +x_40 = lean_alloc_ctor(0, 9, 10); +lean_ctor_set(x_40, 0, x_10); +lean_ctor_set(x_40, 1, x_11); +lean_ctor_set(x_40, 2, x_12); +lean_ctor_set(x_40, 3, x_16); +lean_ctor_set(x_40, 4, x_28); +lean_ctor_set(x_40, 5, x_17); +lean_ctor_set(x_40, 6, x_18); +lean_ctor_set(x_40, 7, x_24); +lean_ctor_set(x_40, 8, x_25); +lean_ctor_set_uint8(x_40, sizeof(void*)*9, x_13); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 1, x_14); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 2, x_15); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 3, x_19); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 4, x_20); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 5, x_21); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 6, x_22); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 7, x_23); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 8, x_26); +lean_ctor_set_uint8(x_40, sizeof(void*)*9 + 9, x_27); +x_41 = lean_apply_7(x_2, x_40, x_4, x_5, x_6, x_7, x_8, x_9); +return x_41; } } } @@ -57585,7 +62297,7 @@ lean_dec(x_3); return x_10; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1() { _start: { lean_object* x_1; @@ -57593,17 +62305,17 @@ x_1 = lean_mk_string_from_bytes("letrec", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -57613,27 +62325,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3; -x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6() { _start: { lean_object* x_1; @@ -57641,17 +62353,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8() { _start: { lean_object* x_1; @@ -57659,47 +62371,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10; -x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13() { _start: { lean_object* x_1; @@ -57707,33 +62419,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14; -x_2 = lean_unsigned_to_nat(13958u); +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14; +x_2 = lean_unsigned_to_nat(15148u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2; x_3 = 0; -x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15; +x_4 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -58172,7 +62884,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object* x_1, lean _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2; +x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2; x_10 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -58403,7 +63115,7 @@ _start: lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_ctor_get(x_6, 2); lean_inc(x_9); -x_10 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1; +x_10 = l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2; x_11 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_9, x_10); lean_dec(x_9); if (x_11 == 0) @@ -58509,7 +63221,12 @@ lean_dec(x_9); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; +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_12 = lean_box(0); x_13 = lean_alloc_ctor(0, 2, 0); @@ -58537,7 +63254,12 @@ x_21 = l_Lean_ParametricAttribute_getParam_x3f___rarg(x_19, x_20, x_18, x_1); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; +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_22 = lean_box(0); lean_ctor_set(x_14, 0, x_22); @@ -58802,7 +63524,12 @@ x_123 = l_Lean_ParametricAttribute_getParam_x3f___rarg(x_121, x_122, x_120, x_1) if (lean_obj_tag(x_123) == 0) { lean_object* x_124; lean_object* x_125; +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_124 = lean_box(0); x_125 = lean_alloc_ctor(0, 2, 0); @@ -59143,7 +63870,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkConst(lean_object* x_1, lean_object* _start: { lean_object* x_10; uint8_t x_11; +lean_inc(x_8); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_1); x_10 = l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = !lean_is_exclusive(x_10); @@ -59175,6 +63907,7 @@ if (x_21 == 0) { lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_free_object(x_10); +lean_dec(x_4); lean_dec(x_3); x_22 = lean_nat_sub(x_19, x_20); lean_dec(x_20); @@ -59226,6 +63959,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); return x_37; } } @@ -59237,6 +63971,7 @@ 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); @@ -59287,6 +64022,7 @@ x_50 = lean_nat_dec_lt(x_48, x_49); if (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); lean_dec(x_3); x_51 = lean_nat_sub(x_48, x_49); lean_dec(x_49); @@ -59335,6 +64071,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); return x_64; } } @@ -59345,6 +64082,7 @@ 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); @@ -59372,32 +64110,6 @@ return x_68; } } } -LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Elab_Term_mkConst___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_logWarning___at_Lean_Elab_Term_mkConst___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___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: -{ -lean_object* x_9; -x_9 = l_Lean_Linter_checkDeprecated___at_Lean_Elab_Term_mkConst___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___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) { _start: { @@ -59424,15 +64136,6 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkConst___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_Term_mkConst(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -return x_10; -} -} LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___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) { _start: { @@ -59443,6 +64146,7 @@ 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_1); x_11 = lean_alloc_ctor(0, 2, 0); @@ -59469,6 +64173,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); x_18 = l_Lean_Elab_Term_mkConst(x_16, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -59498,6 +64203,7 @@ 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_2); lean_dec(x_1); @@ -59534,6 +64240,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); x_29 = l_Lean_Elab_Term_mkConst(x_27, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -59565,6 +64272,7 @@ 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_2); lean_dec(x_1); @@ -59615,6 +64323,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); x_43 = l_Lean_Elab_Term_mkConst(x_40, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -59651,6 +64360,7 @@ 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_2); lean_dec(x_1); @@ -59685,16 +64395,6 @@ _start: lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); x_11 = l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__1(x_2, x_10, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -return x_11; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___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: -{ -lean_object* x_11; -x_11 = l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); return x_11; } } @@ -59793,7 +64493,7 @@ else lean_object* x_13; uint8_t x_27; lean_dec(x_3); lean_dec(x_2); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*9 + 2); if (x_27 == 0) { lean_object* x_28; @@ -61513,14 +66213,18 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; uint8_t x_22; x_20 = lean_ctor_get(x_15, 0); x_21 = lean_ctor_get(x_15, 1); -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { -lean_object* x_23; +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_free_object(x_15); lean_dec(x_20); -x_23 = l_Lean_Elab_Term_resolveId_x3f___lambda__2(x_3, x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -return x_23; +x_24 = l_Lean_Elab_Term_resolveId_x3f___lambda__2(x_3, x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +return x_24; } else { @@ -61537,23 +66241,6 @@ return x_15; } else { -lean_object* x_24; lean_object* x_25; uint8_t 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_dec(x_15); -x_26 = l_Lean_Exception_isRuntime(x_24); -if (x_26 == 0) -{ -lean_object* x_27; -lean_dec(x_24); -x_27 = l_Lean_Elab_Term_resolveId_x3f___lambda__2(x_3, x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_25); -return x_27; -} -else -{ -lean_object* x_28; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -61562,27 +66249,78 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_25); -return x_28; +return x_15; +} +} +else +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +x_27 = l_Lean_Exception_isInterrupt(x_25); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_25); +x_29 = l_Lean_Elab_Term_resolveId_x3f___lambda__2(x_3, x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +return x_29; +} +else +{ +lean_object* x_30; +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_2); +lean_dec(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_26); +return x_30; +} +} +else +{ +lean_object* x_31; +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_2); +lean_dec(x_1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_25); +lean_ctor_set(x_31, 1, x_26); +return x_31; } } } } else { -lean_object* x_29; lean_object* x_30; +lean_object* x_32; lean_object* x_33; lean_dec(x_2); lean_dec(x_1); -x_29 = l_Lean_Elab_Term_resolveName_x27___closed__2; -x_30 = l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__1(x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_32 = l_Lean_Elab_Term_resolveName_x27___closed__2; +x_33 = l_Lean_throwError___at_Lean_Elab_Term_resolveId_x3f___spec__1(x_32, x_4, 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_6); lean_dec(x_5); -return x_30; +return x_33; } } } @@ -61995,7 +66733,7 @@ x_15 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); x_17 = lean_st_mk_ref(x_3, x_11); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) @@ -62139,7 +66877,7 @@ return x_48; } 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; 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_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; uint8_t 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; x_49 = lean_ctor_get(x_9, 0); x_50 = lean_ctor_get(x_9, 1); x_51 = lean_ctor_get(x_9, 3); @@ -62149,6 +66887,9 @@ x_54 = lean_ctor_get(x_9, 7); x_55 = lean_ctor_get(x_9, 8); x_56 = lean_ctor_get(x_9, 9); x_57 = lean_ctor_get(x_9, 10); +x_58 = lean_ctor_get(x_9, 11); +x_59 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); @@ -62159,99 +66900,101 @@ lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_dec(x_9); -x_58 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; -x_59 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_58); -x_60 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_50); -lean_ctor_set(x_60, 2, x_1); -lean_ctor_set(x_60, 3, x_51); -lean_ctor_set(x_60, 4, x_59); -lean_ctor_set(x_60, 5, x_52); -lean_ctor_set(x_60, 6, x_53); -lean_ctor_set(x_60, 7, x_54); -lean_ctor_set(x_60, 8, x_55); -lean_ctor_set(x_60, 9, x_56); -lean_ctor_set(x_60, 10, x_57); -lean_ctor_set_uint8(x_60, sizeof(void*)*11, x_2); -x_61 = lean_st_mk_ref(x_3, x_11); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_64 = x_61; +x_60 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; +x_61 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_60); +x_62 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_62, 0, x_49); +lean_ctor_set(x_62, 1, x_50); +lean_ctor_set(x_62, 2, x_1); +lean_ctor_set(x_62, 3, x_51); +lean_ctor_set(x_62, 4, x_61); +lean_ctor_set(x_62, 5, x_52); +lean_ctor_set(x_62, 6, x_53); +lean_ctor_set(x_62, 7, x_54); +lean_ctor_set(x_62, 8, x_55); +lean_ctor_set(x_62, 9, x_56); +lean_ctor_set(x_62, 10, x_57); +lean_ctor_set(x_62, 11, x_58); +lean_ctor_set_uint8(x_62, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_62, sizeof(void*)*12 + 1, x_59); +x_63 = lean_st_mk_ref(x_3, x_11); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_61); - x_64 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -lean_inc(x_62); -x_65 = l_Lean_Elab_Term_TermElabM_run___rarg(x_4, x_5, x_6, x_7, x_62, x_60, x_10, x_63); -if (lean_obj_tag(x_65) == 0) +lean_inc(x_64); +x_67 = l_Lean_Elab_Term_TermElabM_run___rarg(x_4, x_5, x_6, x_7, x_64, x_62, x_10, x_65); +if (lean_obj_tag(x_67) == 0) { -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_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_st_ref_get(x_62, x_67); -lean_dec(x_62); -x_69 = lean_ctor_get(x_68, 0); +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_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; +lean_dec(x_67); +x_70 = lean_st_ref_get(x_64, x_69); +lean_dec(x_64); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_73 = x_70; } else { - lean_dec_ref(x_68); - x_71 = lean_box(0); + lean_dec_ref(x_70); + x_73 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_72 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_74 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_64; + x_74 = x_66; } -lean_ctor_set(x_72, 0, x_66); -lean_ctor_set(x_72, 1, x_69); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_71); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_71; + x_75 = x_73; } -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_70); -return x_73; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_66); lean_dec(x_64); -lean_dec(x_62); -x_74 = lean_ctor_get(x_65, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_65, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_76 = x_65; +x_76 = lean_ctor_get(x_67, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_67, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_78 = x_67; } else { - lean_dec_ref(x_65); - x_76 = lean_box(0); + lean_dec_ref(x_67); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } } @@ -62672,7 +67415,7 @@ goto block_126; } else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; uint8_t x_245; +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 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; uint8_t x_246; uint8_t x_247; x_223 = lean_ctor_get(x_2, 0); x_224 = lean_ctor_get(x_2, 1); x_225 = lean_ctor_get(x_2, 2); @@ -62683,7 +67426,10 @@ x_229 = lean_ctor_get(x_2, 6); x_230 = lean_ctor_get(x_2, 7); x_231 = lean_ctor_get(x_2, 9); x_232 = lean_ctor_get(x_2, 10); -x_233 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_233 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_234 = lean_ctor_get(x_2, 11); +x_235 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_234); lean_inc(x_232); lean_inc(x_231); lean_inc(x_230); @@ -62696,252 +67442,254 @@ lean_inc(x_224); lean_inc(x_223); lean_dec(x_2); lean_inc(x_225); -x_234 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_234, 0, x_223); -lean_ctor_set(x_234, 1, x_224); -lean_ctor_set(x_234, 2, x_225); -lean_ctor_set(x_234, 3, x_226); -lean_ctor_set(x_234, 4, x_227); -lean_ctor_set(x_234, 5, x_228); -lean_ctor_set(x_234, 6, x_229); -lean_ctor_set(x_234, 7, x_230); -lean_ctor_set(x_234, 8, x_128); -lean_ctor_set(x_234, 9, x_231); -lean_ctor_set(x_234, 10, x_232); -lean_ctor_set_uint8(x_234, sizeof(void*)*11, x_233); -x_235 = lean_st_mk_ref(x_3, x_129); -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_238 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__2; -x_239 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_225, x_238); -x_240 = lean_st_ref_get(x_236, x_237); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -lean_dec(x_240); -x_243 = lean_ctor_get(x_241, 0); +x_236 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_236, 0, x_223); +lean_ctor_set(x_236, 1, x_224); +lean_ctor_set(x_236, 2, x_225); +lean_ctor_set(x_236, 3, x_226); +lean_ctor_set(x_236, 4, x_227); +lean_ctor_set(x_236, 5, x_228); +lean_ctor_set(x_236, 6, x_229); +lean_ctor_set(x_236, 7, x_230); +lean_ctor_set(x_236, 8, x_128); +lean_ctor_set(x_236, 9, x_231); +lean_ctor_set(x_236, 10, x_232); +lean_ctor_set(x_236, 11, x_234); +lean_ctor_set_uint8(x_236, sizeof(void*)*12, x_233); +lean_ctor_set_uint8(x_236, sizeof(void*)*12 + 1, x_235); +x_237 = lean_st_mk_ref(x_3, x_129); +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__2; +x_241 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_225, x_240); +x_242 = lean_st_ref_get(x_238, x_239); +x_243 = lean_ctor_get(x_242, 0); lean_inc(x_243); -lean_dec(x_241); -x_244 = l_Lean_Kernel_isDiagnosticsEnabled(x_243); +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +lean_dec(x_242); +x_245 = lean_ctor_get(x_243, 0); +lean_inc(x_245); lean_dec(x_243); -if (x_244 == 0) +x_246 = l_Lean_Kernel_isDiagnosticsEnabled(x_245); +lean_dec(x_245); +if (x_246 == 0) { -if (x_239 == 0) -{ -uint8_t x_288; -x_288 = 1; -x_245 = x_288; -goto block_287; -} -else -{ -uint8_t x_289; -x_289 = 0; -x_245 = x_289; -goto block_287; -} -} -else -{ -if (x_239 == 0) +if (x_241 == 0) { uint8_t x_290; -x_290 = 0; -x_245 = x_290; -goto block_287; +x_290 = 1; +x_247 = x_290; +goto block_289; } else { uint8_t x_291; -x_291 = 1; -x_245 = x_291; -goto block_287; +x_291 = 0; +x_247 = x_291; +goto block_289; } } -block_287: +else { -if (x_245 == 0) +if (x_241 == 0) { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_246 = lean_st_ref_take(x_236, x_242); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -x_249 = lean_ctor_get(x_247, 0); +uint8_t x_292; +x_292 = 0; +x_247 = x_292; +goto block_289; +} +else +{ +uint8_t x_293; +x_293 = 1; +x_247 = x_293; +goto block_289; +} +} +block_289: +{ +if (x_247 == 0) +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_248 = lean_st_ref_take(x_238, x_244); +x_249 = lean_ctor_get(x_248, 0); lean_inc(x_249); -x_250 = lean_ctor_get(x_247, 1); +x_250 = lean_ctor_get(x_248, 1); lean_inc(x_250); -x_251 = lean_ctor_get(x_247, 2); +lean_dec(x_248); +x_251 = lean_ctor_get(x_249, 0); lean_inc(x_251); -x_252 = lean_ctor_get(x_247, 3); +x_252 = lean_ctor_get(x_249, 1); lean_inc(x_252); -x_253 = lean_ctor_get(x_247, 5); +x_253 = lean_ctor_get(x_249, 2); lean_inc(x_253); -x_254 = lean_ctor_get(x_247, 6); +x_254 = lean_ctor_get(x_249, 3); lean_inc(x_254); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - lean_ctor_release(x_247, 2); - lean_ctor_release(x_247, 3); - lean_ctor_release(x_247, 4); - lean_ctor_release(x_247, 5); - lean_ctor_release(x_247, 6); - x_255 = x_247; +x_255 = lean_ctor_get(x_249, 5); +lean_inc(x_255); +x_256 = lean_ctor_get(x_249, 6); +lean_inc(x_256); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + lean_ctor_release(x_249, 2); + lean_ctor_release(x_249, 3); + lean_ctor_release(x_249, 4); + lean_ctor_release(x_249, 5); + lean_ctor_release(x_249, 6); + x_257 = x_249; } else { - lean_dec_ref(x_247); - x_255 = lean_box(0); + lean_dec_ref(x_249); + x_257 = lean_box(0); } -x_256 = l_Lean_Kernel_enableDiag(x_249, x_239); -x_257 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__4; -if (lean_is_scalar(x_255)) { - x_258 = lean_alloc_ctor(0, 7, 0); +x_258 = l_Lean_Kernel_enableDiag(x_251, x_241); +x_259 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__4; +if (lean_is_scalar(x_257)) { + x_260 = lean_alloc_ctor(0, 7, 0); } else { - x_258 = x_255; + x_260 = x_257; } -lean_ctor_set(x_258, 0, x_256); -lean_ctor_set(x_258, 1, x_250); -lean_ctor_set(x_258, 2, x_251); -lean_ctor_set(x_258, 3, x_252); -lean_ctor_set(x_258, 4, x_257); -lean_ctor_set(x_258, 5, x_253); -lean_ctor_set(x_258, 6, x_254); -x_259 = lean_st_ref_set(x_236, x_258, x_248); -x_260 = lean_ctor_get(x_259, 1); -lean_inc(x_260); -lean_dec(x_259); -x_261 = lean_box(0); -lean_inc(x_236); -x_262 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1(x_225, x_239, x_5, x_1, x_6, x_7, x_4, x_261, x_234, x_236, x_260); -if (lean_obj_tag(x_262) == 0) +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_252); +lean_ctor_set(x_260, 2, x_253); +lean_ctor_set(x_260, 3, x_254); +lean_ctor_set(x_260, 4, x_259); +lean_ctor_set(x_260, 5, x_255); +lean_ctor_set(x_260, 6, x_256); +x_261 = lean_st_ref_set(x_238, x_260, x_250); +x_262 = lean_ctor_get(x_261, 1); +lean_inc(x_262); +lean_dec(x_261); +x_263 = lean_box(0); +lean_inc(x_238); +x_264 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1(x_225, x_241, x_5, x_1, x_6, x_7, x_4, x_263, x_236, x_238, x_262); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_265 = x_262; +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_264)) { + lean_ctor_release(x_264, 0); + lean_ctor_release(x_264, 1); + x_267 = x_264; } else { - lean_dec_ref(x_262); - x_265 = lean_box(0); + lean_dec_ref(x_264); + x_267 = lean_box(0); } -x_266 = lean_st_ref_get(x_236, x_264); -lean_dec(x_236); -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_269 = x_266; +x_268 = lean_st_ref_get(x_238, x_266); +lean_dec(x_238); +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_268, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_271 = x_268; } else { - lean_dec_ref(x_266); - x_269 = lean_box(0); + lean_dec_ref(x_268); + x_271 = lean_box(0); } -if (lean_is_scalar(x_265)) { - x_270 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_267)) { + x_272 = lean_alloc_ctor(0, 2, 0); } else { - x_270 = x_265; + x_272 = x_267; } -lean_ctor_set(x_270, 0, x_263); -lean_ctor_set(x_270, 1, x_267); -if (lean_is_scalar(x_269)) { - x_271 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_272, 0, x_265); +lean_ctor_set(x_272, 1, x_269); +if (lean_is_scalar(x_271)) { + x_273 = lean_alloc_ctor(0, 2, 0); } else { - x_271 = x_269; + x_273 = x_271; } -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_268); -x_65 = x_271; +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_270); +x_65 = x_273; goto block_97; } else { -lean_object* x_272; lean_object* x_273; -lean_dec(x_236); -x_272 = lean_ctor_get(x_262, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_262, 1); -lean_inc(x_273); -lean_dec(x_262); -x_98 = x_272; -x_99 = x_273; +lean_object* x_274; lean_object* x_275; +lean_dec(x_238); +x_274 = lean_ctor_get(x_264, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_264, 1); +lean_inc(x_275); +lean_dec(x_264); +x_98 = x_274; +x_99 = x_275; goto block_126; } } else { -lean_object* x_274; lean_object* x_275; -x_274 = lean_box(0); -lean_inc(x_236); -x_275 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1(x_225, x_239, x_5, x_1, x_6, x_7, x_4, x_274, x_234, x_236, x_242); -if (lean_obj_tag(x_275) == 0) +lean_object* x_276; lean_object* x_277; +x_276 = lean_box(0); +lean_inc(x_238); +x_277 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1(x_225, x_241, x_5, x_1, x_6, x_7, x_4, x_276, x_236, x_238, x_244); +if (lean_obj_tag(x_277) == 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; -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); -if (lean_is_exclusive(x_275)) { - lean_ctor_release(x_275, 0); - lean_ctor_release(x_275, 1); - x_278 = x_275; +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; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_280 = x_277; } else { - lean_dec_ref(x_275); - x_278 = lean_box(0); + lean_dec_ref(x_277); + x_280 = lean_box(0); } -x_279 = lean_st_ref_get(x_236, x_277); -lean_dec(x_236); -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -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; +x_281 = lean_st_ref_get(x_238, x_279); +lean_dec(x_238); +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +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; } else { - lean_dec_ref(x_279); - x_282 = lean_box(0); + lean_dec_ref(x_281); + x_284 = lean_box(0); } -if (lean_is_scalar(x_278)) { - x_283 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_280)) { + x_285 = lean_alloc_ctor(0, 2, 0); } else { - x_283 = x_278; + x_285 = x_280; } -lean_ctor_set(x_283, 0, x_276); -lean_ctor_set(x_283, 1, x_280); -if (lean_is_scalar(x_282)) { - x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_285, 0, x_278); +lean_ctor_set(x_285, 1, x_282); +if (lean_is_scalar(x_284)) { + x_286 = lean_alloc_ctor(0, 2, 0); } else { - x_284 = x_282; + x_286 = x_284; } -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_281); -x_65 = x_284; +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_283); +x_65 = x_286; goto block_97; } else { -lean_object* x_285; lean_object* x_286; -lean_dec(x_236); -x_285 = lean_ctor_get(x_275, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_275, 1); -lean_inc(x_286); -lean_dec(x_275); -x_98 = x_285; -x_99 = x_286; +lean_object* x_287; lean_object* x_288; +lean_dec(x_238); +x_287 = lean_ctor_get(x_277, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_277, 1); +lean_inc(x_288); +lean_dec(x_277); +x_98 = x_287; +x_99 = x_288; goto block_126; } } @@ -64022,9 +68770,12 @@ return x_43; LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___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) { _start: { -lean_object* x_10; -x_10 = l_Lean_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +x_11 = l_Lean_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(x_2, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___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) { @@ -64184,7 +68935,7 @@ x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); x_15 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed__1; -x_16 = l_Lean_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(x_15, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +x_16 = l_Lean_MessageLog_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__1(x_13, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_14); if (lean_obj_tag(x_16) == 0) { uint8_t x_17; @@ -64248,7 +68999,7 @@ x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); x_30 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed__1; -x_31 = l_Lean_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(x_30, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_29); +x_31 = l_Lean_MessageLog_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__1(x_28, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_29); if (lean_obj_tag(x_31) == 0) { uint8_t x_32; @@ -64314,7 +69065,7 @@ x_15 = lean_ctor_get(x_10, 2); lean_dec(x_15); lean_ctor_set(x_10, 4, x_2); lean_ctor_set(x_10, 2, x_1); -lean_ctor_set_uint8(x_10, sizeof(void*)*11, x_3); +lean_ctor_set_uint8(x_10, sizeof(void*)*12, x_3); x_16 = lean_st_mk_ref(x_4, x_12); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -64452,7 +69203,7 @@ return x_44; } else { -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_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; 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_45 = lean_ctor_get(x_10, 0); x_46 = lean_ctor_get(x_10, 1); x_47 = lean_ctor_get(x_10, 3); @@ -64462,6 +69213,9 @@ x_50 = lean_ctor_get(x_10, 7); x_51 = lean_ctor_get(x_10, 8); x_52 = lean_ctor_get(x_10, 9); x_53 = lean_ctor_get(x_10, 10); +x_54 = lean_ctor_get(x_10, 11); +x_55 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); @@ -64472,151 +69226,153 @@ lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); lean_dec(x_10); -x_54 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_54, 0, x_45); -lean_ctor_set(x_54, 1, x_46); -lean_ctor_set(x_54, 2, x_1); -lean_ctor_set(x_54, 3, x_47); -lean_ctor_set(x_54, 4, x_2); -lean_ctor_set(x_54, 5, x_48); -lean_ctor_set(x_54, 6, x_49); -lean_ctor_set(x_54, 7, x_50); -lean_ctor_set(x_54, 8, x_51); -lean_ctor_set(x_54, 9, x_52); -lean_ctor_set(x_54, 10, x_53); -lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_3); -x_55 = lean_st_mk_ref(x_4, x_12); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -lean_inc(x_11); -lean_inc(x_54); -lean_inc(x_56); -x_58 = l_Lean_Elab_Term_TermElabM_run___rarg(x_5, x_6, x_7, x_8, x_56, x_54, x_11, x_57); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_58, 0); +x_56 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_56, 0, x_45); +lean_ctor_set(x_56, 1, x_46); +lean_ctor_set(x_56, 2, x_1); +lean_ctor_set(x_56, 3, x_47); +lean_ctor_set(x_56, 4, x_2); +lean_ctor_set(x_56, 5, x_48); +lean_ctor_set(x_56, 6, x_49); +lean_ctor_set(x_56, 7, x_50); +lean_ctor_set(x_56, 8, x_51); +lean_ctor_set(x_56, 9, x_52); +lean_ctor_set(x_56, 10, x_53); +lean_ctor_set(x_56, 11, x_54); +lean_ctor_set_uint8(x_56, sizeof(void*)*12, x_3); +lean_ctor_set_uint8(x_56, sizeof(void*)*12 + 1, x_55); +x_57 = lean_st_mk_ref(x_4, x_12); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_ctor_get(x_59, 0); -lean_inc(x_61); -lean_dec(x_59); -x_62 = lean_st_ref_get(x_56, x_60); -lean_dec(x_56); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_54, x_11, x_63); -if (lean_obj_tag(x_64) == 0) +lean_dec(x_57); +lean_inc(x_11); +lean_inc(x_56); +lean_inc(x_58); +x_60 = l_Lean_Elab_Term_TermElabM_run___rarg(x_5, x_6, x_7, x_8, x_58, x_56, x_11, x_59); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* 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); +lean_dec(x_60); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +lean_dec(x_61); +x_64 = lean_st_ref_get(x_58, x_62); +lean_dec(x_58); 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; +lean_dec(x_64); +x_66 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_56, x_11, x_65); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_68 = x_66; } else { - lean_dec_ref(x_64); - x_66 = lean_box(0); + lean_dec_ref(x_66); + x_68 = lean_box(0); } -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_66; + x_69 = x_68; } -lean_ctor_set(x_67, 0, x_61); -lean_ctor_set(x_67, 1, x_65); -return x_67; +lean_ctor_set(x_69, 0, x_63); +lean_ctor_set(x_69, 1, x_67); +return x_69; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_61); -x_68 = lean_ctor_get(x_64, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_64, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_70 = x_64; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_63); +x_70 = lean_ctor_get(x_66, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_66, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_72 = x_66; } else { - lean_dec_ref(x_64); - x_70 = lean_box(0); + lean_dec_ref(x_66); + x_72 = lean_box(0); } -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_71 = x_70; + x_73 = x_72; } -lean_ctor_set(x_71, 0, x_68); -lean_ctor_set(x_71, 1, x_69); -return x_71; +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_56); -x_72 = lean_ctor_get(x_58, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_58, 1); -lean_inc(x_73); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_dec(x_58); -x_74 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_54, x_11, x_73); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 1); +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_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_76 = x_74; +lean_dec(x_60); +x_76 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_56, x_11, x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; } else { - lean_dec_ref(x_74); - x_76 = lean_box(0); + lean_dec_ref(x_76); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; - lean_ctor_set_tag(x_77, 1); + x_79 = x_78; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_77, 0, x_72); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_74); +lean_ctor_set(x_79, 1, x_77); +return x_79; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_72); -x_78 = lean_ctor_get(x_74, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_74, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_80 = x_74; +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_74); +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; } else { - lean_dec_ref(x_74); - x_80 = lean_box(0); + lean_dec_ref(x_76); + x_82 = lean_box(0); } -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_81 = x_80; + x_83 = x_82; } -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -return x_81; +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } } } @@ -64641,7 +69397,7 @@ lean_inc(x_17); lean_inc(x_1); lean_ctor_set(x_10, 4, x_17); lean_ctor_set(x_10, 2, x_1); -lean_ctor_set_uint8(x_10, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_10, sizeof(void*)*12, x_2); x_18 = lean_st_ref_get(x_11, x_12); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -64762,7 +69518,7 @@ return x_48; } 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; 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; uint8_t x_70; uint8_t x_71; +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_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; uint8_t x_72; uint8_t x_73; x_54 = lean_ctor_get(x_10, 0); x_55 = lean_ctor_get(x_10, 1); x_56 = lean_ctor_get(x_10, 3); @@ -64772,6 +69528,9 @@ x_59 = lean_ctor_get(x_10, 7); x_60 = lean_ctor_get(x_10, 8); x_61 = lean_ctor_get(x_10, 9); x_62 = lean_ctor_get(x_10, 10); +x_63 = lean_ctor_get(x_10, 11); +x_64 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_63); lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); @@ -64782,133 +69541,135 @@ lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_dec(x_10); -x_63 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; -x_64 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_63); -lean_inc(x_64); +x_65 = l_Lean_Elab_Term_TermElabM_toIO___rarg___lambda__1___closed__1; +x_66 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_65); +lean_inc(x_66); lean_inc(x_1); -x_65 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_65, 0, x_54); -lean_ctor_set(x_65, 1, x_55); -lean_ctor_set(x_65, 2, x_1); -lean_ctor_set(x_65, 3, x_56); -lean_ctor_set(x_65, 4, x_64); -lean_ctor_set(x_65, 5, x_57); -lean_ctor_set(x_65, 6, x_58); -lean_ctor_set(x_65, 7, x_59); -lean_ctor_set(x_65, 8, x_60); -lean_ctor_set(x_65, 9, x_61); -lean_ctor_set(x_65, 10, x_62); -lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_2); -x_66 = lean_st_ref_get(x_11, x_12); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_ctor_get(x_67, 0); +x_67 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_67, 0, x_54); +lean_ctor_set(x_67, 1, x_55); +lean_ctor_set(x_67, 2, x_1); +lean_ctor_set(x_67, 3, x_56); +lean_ctor_set(x_67, 4, x_66); +lean_ctor_set(x_67, 5, x_57); +lean_ctor_set(x_67, 6, x_58); +lean_ctor_set(x_67, 7, x_59); +lean_ctor_set(x_67, 8, x_60); +lean_ctor_set(x_67, 9, x_61); +lean_ctor_set(x_67, 10, x_62); +lean_ctor_set(x_67, 11, x_63); +lean_ctor_set_uint8(x_67, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_67, sizeof(void*)*12 + 1, x_64); +x_68 = lean_st_ref_get(x_11, x_12); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = l_Lean_Kernel_isDiagnosticsEnabled(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_ctor_get(x_69, 0); +lean_inc(x_71); lean_dec(x_69); -if (x_70 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_91; -x_91 = 1; -x_71 = x_91; -goto block_90; -} -else -{ -uint8_t x_92; -x_92 = 0; -x_71 = x_92; -goto block_90; -} -} -else +x_72 = l_Lean_Kernel_isDiagnosticsEnabled(x_71); +lean_dec(x_71); +if (x_72 == 0) { if (x_2 == 0) { uint8_t x_93; -x_93 = 0; -x_71 = x_93; -goto block_90; +x_93 = 1; +x_73 = x_93; +goto block_92; } else { uint8_t x_94; -x_94 = 1; -x_71 = x_94; -goto block_90; +x_94 = 0; +x_73 = x_94; +goto block_92; } } -block_90: -{ -if (x_71 == 0) -{ -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; lean_object* x_86; lean_object* x_87; -x_72 = lean_st_ref_take(x_11, x_68); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -x_77 = lean_ctor_get(x_73, 2); -lean_inc(x_77); -x_78 = lean_ctor_get(x_73, 3); -lean_inc(x_78); -x_79 = lean_ctor_get(x_73, 5); -lean_inc(x_79); -x_80 = lean_ctor_get(x_73, 6); -lean_inc(x_80); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - lean_ctor_release(x_73, 2); - lean_ctor_release(x_73, 3); - lean_ctor_release(x_73, 4); - lean_ctor_release(x_73, 5); - lean_ctor_release(x_73, 6); - x_81 = x_73; -} else { - lean_dec_ref(x_73); - x_81 = lean_box(0); -} -x_82 = l_Lean_Kernel_enableDiag(x_75, x_2); -if (lean_is_scalar(x_81)) { - x_83 = lean_alloc_ctor(0, 7, 0); -} else { - x_83 = x_81; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_76); -lean_ctor_set(x_83, 2, x_77); -lean_ctor_set(x_83, 3, x_78); -lean_ctor_set(x_83, 4, x_8); -lean_ctor_set(x_83, 5, x_79); -lean_ctor_set(x_83, 6, x_80); -x_84 = lean_st_ref_set(x_11, x_83, x_74); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_box(0); -x_87 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__3(x_1, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_86, x_65, x_11, x_85); -return x_87; -} else { -lean_object* x_88; lean_object* x_89; -lean_dec(x_8); +if (x_2 == 0) +{ +uint8_t x_95; +x_95 = 0; +x_73 = x_95; +goto block_92; +} +else +{ +uint8_t x_96; +x_96 = 1; +x_73 = x_96; +goto block_92; +} +} +block_92: +{ +if (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; 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; +x_74 = lean_st_ref_take(x_11, x_70); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +lean_dec(x_74); +x_77 = lean_ctor_get(x_75, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +x_79 = lean_ctor_get(x_75, 2); +lean_inc(x_79); +x_80 = lean_ctor_get(x_75, 3); +lean_inc(x_80); +x_81 = lean_ctor_get(x_75, 5); +lean_inc(x_81); +x_82 = lean_ctor_get(x_75, 6); +lean_inc(x_82); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + lean_ctor_release(x_75, 2); + lean_ctor_release(x_75, 3); + lean_ctor_release(x_75, 4); + lean_ctor_release(x_75, 5); + lean_ctor_release(x_75, 6); + x_83 = x_75; +} else { + lean_dec_ref(x_75); + x_83 = lean_box(0); +} +x_84 = l_Lean_Kernel_enableDiag(x_77, x_2); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 7, 0); +} else { + x_85 = x_83; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_78); +lean_ctor_set(x_85, 2, x_79); +lean_ctor_set(x_85, 3, x_80); +lean_ctor_set(x_85, 4, x_8); +lean_ctor_set(x_85, 5, x_81); +lean_ctor_set(x_85, 6, x_82); +x_86 = lean_st_ref_set(x_11, x_85, x_76); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); x_88 = lean_box(0); -x_89 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__3(x_1, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_88, x_65, x_11, x_68); +x_89 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__3(x_1, x_66, x_2, x_3, x_4, x_5, x_6, x_7, x_88, x_67, x_11, x_87); return x_89; } +else +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_8); +x_90 = lean_box(0); +x_91 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__3(x_1, x_66, x_2, x_3, x_4, x_5, x_6, x_7, x_90, x_67, x_11, x_70); +return x_91; +} } } } @@ -64924,7 +69685,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; x_7 = l_Lean_Elab_Term_addAutoBoundImplicits_go___closed__1; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -64933,16 +69694,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } @@ -65262,6 +70024,18 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; +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_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7; @@ -65273,7 +70047,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26() { +static lean_object* _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27() { _start: { lean_object* x_1; @@ -65284,568 +70058,572 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_23; lean_object* x_24; 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; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; uint8_t x_81; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_24; lean_object* x_25; 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; uint8_t 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; uint8_t x_82; uint8_t x_83; x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2), 8, 1); lean_closure_set(x_7, 0, x_4); x_8 = lean_box(0); -x_52 = l_Lean_Core_getMaxHeartbeats(x_3); -x_53 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__21; -x_54 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__24; -x_55 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; -x_56 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__4; -x_57 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25; -x_58 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_58, 0, x_2); -lean_ctor_set(x_58, 1, x_53); -lean_ctor_set(x_58, 2, x_54); -lean_ctor_set(x_58, 3, x_55); -lean_ctor_set(x_58, 4, x_56); -lean_ctor_set(x_58, 5, x_55); -lean_ctor_set(x_58, 6, x_57); -x_59 = lean_io_get_num_heartbeats(x_6); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26; -x_63 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2; -x_64 = lean_unsigned_to_nat(0u); -x_65 = lean_unsigned_to_nat(1000u); -x_66 = lean_box(0); -x_67 = lean_box(0); -x_68 = l_Lean_firstFrontendMacroScope; -x_69 = 0; +x_9 = lean_box(0); +x_53 = l_Lean_Core_getMaxHeartbeats(x_3); +x_54 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__21; +x_55 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__24; +x_56 = l_Lean_Elab_Term_Context_autoBoundImplicits___default___closed__3; +x_57 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__4; +x_58 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25; +x_59 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26; +x_60 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_60, 0, x_2); +lean_ctor_set(x_60, 1, x_54); +lean_ctor_set(x_60, 2, x_55); +lean_ctor_set(x_60, 3, x_56); +lean_ctor_set(x_60, 4, x_57); +lean_ctor_set(x_60, 5, x_58); +lean_ctor_set(x_60, 6, x_59); +x_61 = lean_io_get_num_heartbeats(x_6); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27; +x_65 = l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1; +x_66 = lean_unsigned_to_nat(0u); +x_67 = lean_unsigned_to_nat(1000u); +x_68 = lean_box(0); +x_69 = lean_box(0); +x_70 = l_Lean_firstFrontendMacroScope; +x_71 = 0; lean_inc(x_3); -x_70 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_70, 0, x_62); -lean_ctor_set(x_70, 1, x_63); -lean_ctor_set(x_70, 2, x_3); -lean_ctor_set(x_70, 3, x_64); -lean_ctor_set(x_70, 4, x_65); -lean_ctor_set(x_70, 5, x_66); -lean_ctor_set(x_70, 6, x_67); -lean_ctor_set(x_70, 7, x_8); -lean_ctor_set(x_70, 8, x_60); -lean_ctor_set(x_70, 9, x_52); -lean_ctor_set(x_70, 10, x_68); -lean_ctor_set_uint8(x_70, sizeof(void*)*11, x_69); -x_71 = lean_st_mk_ref(x_58, x_61); -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_74 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__2; -x_75 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_74); -x_76 = lean_st_ref_get(x_72, x_73); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_ctor_get(x_77, 0); +x_72 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_72, 0, x_64); +lean_ctor_set(x_72, 1, x_65); +lean_ctor_set(x_72, 2, x_3); +lean_ctor_set(x_72, 3, x_66); +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_9); +lean_ctor_set(x_72, 8, x_62); +lean_ctor_set(x_72, 9, x_53); +lean_ctor_set(x_72, 10, x_70); +lean_ctor_set(x_72, 11, x_8); +lean_ctor_set_uint8(x_72, sizeof(void*)*12, x_71); +lean_ctor_set_uint8(x_72, sizeof(void*)*12 + 1, x_71); +x_73 = lean_st_mk_ref(x_60, x_63); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__2; +x_77 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_76); +x_78 = lean_st_ref_get(x_74, x_75); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); -x_80 = l_Lean_Kernel_isDiagnosticsEnabled(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); lean_dec(x_79); -if (x_80 == 0) +x_82 = l_Lean_Kernel_isDiagnosticsEnabled(x_81); +lean_dec(x_81); +if (x_82 == 0) { -if (x_75 == 0) +if (x_77 == 0) { -uint8_t x_167; -x_167 = 1; -x_81 = x_167; -goto block_166; +uint8_t x_169; +x_169 = 1; +x_83 = x_169; +goto block_168; } else { -x_81 = x_69; -goto block_166; +x_83 = x_71; +goto block_168; } } else { -if (x_75 == 0) +if (x_77 == 0) { -x_81 = x_69; -goto block_166; +x_83 = x_71; +goto block_168; } else { -uint8_t x_168; -x_168 = 1; -x_81 = x_168; -goto block_166; +uint8_t x_170; +x_170 = 1; +x_83 = x_170; +goto block_168; } } -block_22: +block_23: { -if (lean_obj_tag(x_9) == 0) +if (lean_obj_tag(x_10) == 0) { -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; lean_object* x_17; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +lean_object* x_11; 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_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); lean_dec(x_10); -x_14 = lean_ctor_get(x_13, 0); +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_13); -x_15 = 1; -x_16 = lean_box(x_15); -x_17 = lean_apply_5(x_1, x_14, x_3, x_12, x_16, x_11); -return x_17; +lean_dec(x_11); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_apply_5(x_1, x_15, x_3, x_13, x_17, x_12); +return x_18; } else { -uint8_t x_18; +uint8_t x_19; lean_dec(x_3); lean_dec(x_1); -x_18 = !lean_is_exclusive(x_9); -if (x_18 == 0) +x_19 = !lean_is_exclusive(x_10); +if (x_19 == 0) { -return x_9; +return x_10; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_9, 0); -x_20 = lean_ctor_get(x_9, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_9); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_10); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } -block_51: +block_52: { -if (lean_obj_tag(x_23) == 0) +if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_MessageData_toString(x_25, x_24); -if (lean_obj_tag(x_26) == 0) +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_MessageData_toString(x_26, x_25); +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_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set_tag(x_26, 1); -lean_ctor_set(x_26, 0, x_29); -x_9 = x_26; -goto block_22; +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 0, x_30); +x_10 = x_27; +goto block_23; } else { -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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_26); -x_32 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_32, 0, x_30); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_9 = x_33; -goto block_22; +lean_dec(x_27); +x_33 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_10 = x_34; +goto block_23; } } else { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_26); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_27); +if (x_35 == 0) { -x_9 = x_26; -goto block_22; +x_10 = x_27; +goto block_23; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_26, 0); -x_36 = lean_ctor_get(x_26, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_27, 0); +x_37 = lean_ctor_get(x_27, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_26); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_9 = x_37; -goto block_22; +lean_dec(x_27); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_10 = x_38; +goto block_23; } } } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_23); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_24); +if (x_39 == 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; -x_39 = lean_ctor_get(x_23, 0); -x_40 = lean_ctor_get(x_23, 1); -lean_dec(x_40); -x_41 = l___private_Init_Data_Repr_0__Nat_reprFast(x_39); -x_42 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__1; -x_43 = lean_string_append(x_42, x_41); +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_40 = lean_ctor_get(x_24, 0); +x_41 = lean_ctor_get(x_24, 1); lean_dec(x_41); -x_44 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_23, 1, x_24); -lean_ctor_set(x_23, 0, x_44); -x_9 = x_23; -goto block_22; +x_42 = l___private_Init_Data_Repr_0__Nat_reprFast(x_40); +x_43 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__1; +x_44 = lean_string_append(x_43, x_42); +lean_dec(x_42); +x_45 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_24, 1, x_25); +lean_ctor_set(x_24, 0, x_45); +x_10 = x_24; +goto block_23; } else { -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_45 = lean_ctor_get(x_23, 0); -lean_inc(x_45); -lean_dec(x_23); -x_46 = l___private_Init_Data_Repr_0__Nat_reprFast(x_45); -x_47 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__1; -x_48 = lean_string_append(x_47, x_46); -lean_dec(x_46); -x_49 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = lean_alloc_ctor(1, 2, 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 = lean_ctor_get(x_24, 0); +lean_inc(x_46); +lean_dec(x_24); +x_47 = l___private_Init_Data_Repr_0__Nat_reprFast(x_46); +x_48 = l_Lean_Elab_Term_TermElabM_toIO___rarg___closed__1; +x_49 = lean_string_append(x_48, x_47); +lean_dec(x_47); +x_50 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_24); -x_9 = x_50; -goto block_22; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_25); +x_10 = x_51; +goto block_23; } } } -block_166: +block_168: { -if (x_81 == 0) +if (x_83 == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_82 = lean_st_ref_take(x_72, x_78); -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_is_exclusive(x_83); -if (x_85 == 0) +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = lean_st_ref_take(x_74, x_80); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = !lean_is_exclusive(x_85); +if (x_87 == 0) { -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; -x_86 = lean_ctor_get(x_83, 0); -x_87 = lean_ctor_get(x_83, 4); -lean_dec(x_87); -x_88 = l_Lean_Kernel_enableDiag(x_86, x_75); -lean_ctor_set(x_83, 4, x_56); -lean_ctor_set(x_83, 0, x_88); -x_89 = lean_st_ref_set(x_72, x_83, x_84); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); +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; +x_88 = lean_ctor_get(x_85, 0); +x_89 = lean_ctor_get(x_85, 4); lean_dec(x_89); -x_91 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; -x_92 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; -x_93 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; -x_94 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; -x_95 = lean_box(0); -lean_inc(x_72); +x_90 = l_Lean_Kernel_enableDiag(x_88, x_77); +lean_ctor_set(x_85, 4, x_57); +lean_ctor_set(x_85, 0, x_90); +x_91 = lean_st_ref_set(x_74, x_85, x_86); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; +x_94 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; +x_95 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; +x_96 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; +x_97 = lean_box(0); +lean_inc(x_74); lean_inc(x_3); -x_96 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_75, x_91, x_7, x_92, x_93, x_94, x_56, x_95, x_70, x_72, x_90); -if (lean_obj_tag(x_96) == 0) +x_98 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_77, x_93, x_7, x_94, x_95, x_96, x_57, x_97, x_72, x_74, x_92); +if (lean_obj_tag(x_98) == 0) { -uint8_t x_97; -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) +uint8_t x_99; +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) { -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = lean_ctor_get(x_96, 1); -x_99 = lean_st_ref_get(x_72, x_98); -lean_dec(x_72); -x_100 = !lean_is_exclusive(x_99); -if (x_100 == 0) +lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_100 = lean_ctor_get(x_98, 1); +x_101 = lean_st_ref_get(x_74, x_100); +lean_dec(x_74); +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -lean_object* x_101; -x_101 = lean_ctor_get(x_99, 0); -lean_ctor_set(x_96, 1, x_101); -lean_ctor_set(x_99, 0, x_96); -x_9 = x_99; -goto block_22; +lean_object* x_103; +x_103 = lean_ctor_get(x_101, 0); +lean_ctor_set(x_98, 1, x_103); +lean_ctor_set(x_101, 0, x_98); +x_10 = x_101; +goto block_23; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_99, 0); -x_103 = lean_ctor_get(x_99, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_99); -lean_ctor_set(x_96, 1, x_102); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_96); -lean_ctor_set(x_104, 1, x_103); -x_9 = x_104; -goto block_22; -} -} -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; lean_object* x_111; lean_object* x_112; -x_105 = lean_ctor_get(x_96, 0); -x_106 = lean_ctor_get(x_96, 1); -lean_inc(x_106); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_101, 0); +x_105 = lean_ctor_get(x_101, 1); lean_inc(x_105); -lean_dec(x_96); -x_107 = lean_st_ref_get(x_72, x_106); -lean_dec(x_72); -x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_104); +lean_dec(x_101); +lean_ctor_set(x_98, 1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_98); +lean_ctor_set(x_106, 1, x_105); +x_10 = x_106; +goto block_23; +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_107 = lean_ctor_get(x_98, 0); +x_108 = lean_ctor_get(x_98, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; +lean_inc(x_107); +lean_dec(x_98); +x_109 = lean_st_ref_get(x_74, x_108); +lean_dec(x_74); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; } else { - lean_dec_ref(x_107); - x_110 = lean_box(0); + lean_dec_ref(x_109); + x_112 = lean_box(0); } -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_105); -lean_ctor_set(x_111, 1, x_108); -if (lean_is_scalar(x_110)) { - x_112 = lean_alloc_ctor(0, 2, 0); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_110); +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_110; + x_114 = x_112; } -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_109); -x_9 = x_112; -goto block_22; +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +x_10 = x_114; +goto block_23; } } else { -lean_object* x_113; lean_object* x_114; -lean_dec(x_72); -x_113 = lean_ctor_get(x_96, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_96, 1); -lean_inc(x_114); -lean_dec(x_96); -x_23 = x_113; -x_24 = x_114; -goto block_51; +lean_object* x_115; lean_object* x_116; +lean_dec(x_74); +x_115 = lean_ctor_get(x_98, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_98, 1); +lean_inc(x_116); +lean_dec(x_98); +x_24 = x_115; +x_25 = x_116; +goto block_52; } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_115 = lean_ctor_get(x_83, 0); -x_116 = lean_ctor_get(x_83, 1); -x_117 = lean_ctor_get(x_83, 2); -x_118 = lean_ctor_get(x_83, 3); -x_119 = lean_ctor_get(x_83, 5); -x_120 = lean_ctor_get(x_83, 6); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_117 = lean_ctor_get(x_85, 0); +x_118 = lean_ctor_get(x_85, 1); +x_119 = lean_ctor_get(x_85, 2); +x_120 = lean_ctor_get(x_85, 3); +x_121 = lean_ctor_get(x_85, 5); +x_122 = lean_ctor_get(x_85, 6); +lean_inc(x_122); +lean_inc(x_121); lean_inc(x_120); lean_inc(x_119); lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_83); -x_121 = l_Lean_Kernel_enableDiag(x_115, x_75); -x_122 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_116); -lean_ctor_set(x_122, 2, x_117); -lean_ctor_set(x_122, 3, x_118); -lean_ctor_set(x_122, 4, x_56); -lean_ctor_set(x_122, 5, x_119); -lean_ctor_set(x_122, 6, x_120); -x_123 = lean_st_ref_set(x_72, x_122, x_84); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -lean_dec(x_123); -x_125 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; -x_126 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; -x_127 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; -x_128 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; -x_129 = lean_box(0); -lean_inc(x_72); +lean_dec(x_85); +x_123 = l_Lean_Kernel_enableDiag(x_117, x_77); +x_124 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_118); +lean_ctor_set(x_124, 2, x_119); +lean_ctor_set(x_124, 3, x_120); +lean_ctor_set(x_124, 4, x_57); +lean_ctor_set(x_124, 5, x_121); +lean_ctor_set(x_124, 6, x_122); +x_125 = lean_st_ref_set(x_74, x_124, x_86); +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +lean_dec(x_125); +x_127 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; +x_128 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; +x_129 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; +x_130 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; +x_131 = lean_box(0); +lean_inc(x_74); lean_inc(x_3); -x_130 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_75, x_125, x_7, x_126, x_127, x_128, x_56, x_129, x_70, x_72, x_124); -if (lean_obj_tag(x_130) == 0) +x_132 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_77, x_127, x_7, x_128, x_129, x_130, x_57, x_131, x_72, x_74, x_126); +if (lean_obj_tag(x_132) == 0) { -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; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_133 = x_130; +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; +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_130); - x_133 = lean_box(0); + lean_dec_ref(x_132); + x_135 = lean_box(0); } -x_134 = lean_st_ref_get(x_72, x_132); -lean_dec(x_72); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_137 = x_134; +x_136 = lean_st_ref_get(x_74, x_134); +lean_dec(x_74); +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; } else { - lean_dec_ref(x_134); - x_137 = lean_box(0); + lean_dec_ref(x_136); + x_139 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_138 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_135)) { + x_140 = lean_alloc_ctor(0, 2, 0); } else { - x_138 = x_133; + x_140 = x_135; } -lean_ctor_set(x_138, 0, x_131); -lean_ctor_set(x_138, 1, x_135); -if (lean_is_scalar(x_137)) { - x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_133); +lean_ctor_set(x_140, 1, x_137); +if (lean_is_scalar(x_139)) { + x_141 = lean_alloc_ctor(0, 2, 0); } else { - x_139 = x_137; + x_141 = x_139; } -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_136); -x_9 = x_139; -goto block_22; +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_138); +x_10 = x_141; +goto block_23; } else { -lean_object* x_140; lean_object* x_141; -lean_dec(x_72); -x_140 = lean_ctor_get(x_130, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_130, 1); -lean_inc(x_141); -lean_dec(x_130); -x_23 = x_140; -x_24 = x_141; -goto block_51; +lean_object* x_142; lean_object* x_143; +lean_dec(x_74); +x_142 = lean_ctor_get(x_132, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_132, 1); +lean_inc(x_143); +lean_dec(x_132); +x_24 = x_142; +x_25 = x_143; +goto block_52; } } } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_142 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; -x_143 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; -x_144 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; -x_145 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; -x_146 = lean_box(0); -lean_inc(x_72); +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_144 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__20; +x_145 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; +x_146 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; +x_147 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__5; +x_148 = lean_box(0); +lean_inc(x_74); lean_inc(x_3); -x_147 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_75, x_142, x_7, x_143, x_144, x_145, x_56, x_146, x_70, x_72, x_78); -if (lean_obj_tag(x_147) == 0) +x_149 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__4(x_3, x_77, x_144, x_7, x_145, x_146, x_147, x_57, x_148, x_72, x_74, x_80); +if (lean_obj_tag(x_149) == 0) { -uint8_t x_148; -x_148 = !lean_is_exclusive(x_147); -if (x_148 == 0) +uint8_t x_150; +x_150 = !lean_is_exclusive(x_149); +if (x_150 == 0) { -lean_object* x_149; lean_object* x_150; uint8_t x_151; -x_149 = lean_ctor_get(x_147, 1); -x_150 = lean_st_ref_get(x_72, x_149); -lean_dec(x_72); -x_151 = !lean_is_exclusive(x_150); -if (x_151 == 0) +lean_object* x_151; lean_object* x_152; uint8_t x_153; +x_151 = lean_ctor_get(x_149, 1); +x_152 = lean_st_ref_get(x_74, x_151); +lean_dec(x_74); +x_153 = !lean_is_exclusive(x_152); +if (x_153 == 0) { -lean_object* x_152; -x_152 = lean_ctor_get(x_150, 0); -lean_ctor_set(x_147, 1, x_152); -lean_ctor_set(x_150, 0, x_147); -x_9 = x_150; -goto block_22; +lean_object* x_154; +x_154 = lean_ctor_get(x_152, 0); +lean_ctor_set(x_149, 1, x_154); +lean_ctor_set(x_152, 0, x_149); +x_10 = x_152; +goto block_23; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_150, 0); -x_154 = lean_ctor_get(x_150, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_150); -lean_ctor_set(x_147, 1, x_153); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_147); -lean_ctor_set(x_155, 1, x_154); -x_9 = x_155; -goto block_22; -} -} -else -{ -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; -x_156 = lean_ctor_get(x_147, 0); -x_157 = lean_ctor_get(x_147, 1); -lean_inc(x_157); +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_152, 0); +x_156 = lean_ctor_get(x_152, 1); lean_inc(x_156); -lean_dec(x_147); -x_158 = lean_st_ref_get(x_72, x_157); -lean_dec(x_72); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_161 = x_158; -} else { - lean_dec_ref(x_158); - x_161 = lean_box(0); -} -x_162 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_162, 0, x_156); -lean_ctor_set(x_162, 1, x_159); -if (lean_is_scalar(x_161)) { - x_163 = lean_alloc_ctor(0, 2, 0); -} else { - x_163 = x_161; -} -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_160); -x_9 = x_163; -goto block_22; +lean_inc(x_155); +lean_dec(x_152); +lean_ctor_set(x_149, 1, x_155); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_149); +lean_ctor_set(x_157, 1, x_156); +x_10 = x_157; +goto block_23; } } else { -lean_object* x_164; lean_object* x_165; -lean_dec(x_72); -x_164 = lean_ctor_get(x_147, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_147, 1); -lean_inc(x_165); -lean_dec(x_147); -x_23 = x_164; -x_24 = x_165; -goto block_51; +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; +x_158 = lean_ctor_get(x_149, 0); +x_159 = lean_ctor_get(x_149, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_149); +x_160 = lean_st_ref_get(x_74, x_159); +lean_dec(x_74); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_158); +lean_ctor_set(x_164, 1, x_161); +if (lean_is_scalar(x_163)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_163; +} +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_162); +x_10 = x_165; +goto block_23; +} +} +else +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_74); +x_166 = lean_ctor_get(x_149, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_149, 1); +lean_inc(x_167); +lean_dec(x_149); +x_24 = x_166; +x_25 = x_167; +goto block_52; } } } @@ -68873,7 +73651,7 @@ return x_27; } else { -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; 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_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; uint8_t 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; x_28 = lean_ctor_get(x_9, 0); x_29 = lean_ctor_get(x_9, 1); x_30 = lean_ctor_get(x_9, 2); @@ -68885,7 +73663,10 @@ x_35 = lean_ctor_get(x_9, 7); x_36 = lean_ctor_get(x_9, 8); x_37 = lean_ctor_get(x_9, 9); x_38 = lean_ctor_get(x_9, 10); -x_39 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_40 = lean_ctor_get(x_9, 11); +x_41 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_40); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); @@ -68898,63 +73679,65 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_dec(x_9); -x_40 = l_Lean_replaceRef(x_13, x_33); +x_42 = l_Lean_replaceRef(x_13, x_33); lean_dec(x_33); lean_dec(x_13); -x_41 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_41, 0, x_28); -lean_ctor_set(x_41, 1, x_29); -lean_ctor_set(x_41, 2, x_30); -lean_ctor_set(x_41, 3, x_31); -lean_ctor_set(x_41, 4, x_32); -lean_ctor_set(x_41, 5, x_40); -lean_ctor_set(x_41, 6, x_34); -lean_ctor_set(x_41, 7, x_35); -lean_ctor_set(x_41, 8, x_36); -lean_ctor_set(x_41, 9, x_37); -lean_ctor_set(x_41, 10, x_38); -lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_39); -x_42 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(x_14, x_5, x_6, x_7, x_8, x_41, x_10, x_11); -lean_dec(x_41); -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; +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_28); +lean_ctor_set(x_43, 1, x_29); +lean_ctor_set(x_43, 2, x_30); +lean_ctor_set(x_43, 3, x_31); +lean_ctor_set(x_43, 4, x_32); +lean_ctor_set(x_43, 5, x_42); +lean_ctor_set(x_43, 6, x_34); +lean_ctor_set(x_43, 7, x_35); +lean_ctor_set(x_43, 8, x_36); +lean_ctor_set(x_43, 9, x_37); +lean_ctor_set(x_43, 10, x_38); +lean_ctor_set(x_43, 11, x_40); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_39); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_41); +x_44 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(x_14, x_5, x_6, x_7, x_8, x_43, x_10, x_11); +lean_dec(x_43); +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_42); - x_45 = lean_box(0); + lean_dec_ref(x_44); + x_47 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); } else { - x_46 = x_45; + x_48 = x_47; } -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } else { -lean_object* x_47; +lean_object* x_49; lean_dec(x_9); lean_dec(x_5); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_4); -lean_ctor_set(x_47, 1, x_11); -return x_47; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_4); +lean_ctor_set(x_49, 1, x_11); +return x_49; } } } LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___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) { _start: { -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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +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; uint8_t x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_10, 1); @@ -68977,108 +73760,113 @@ x_22 = lean_ctor_get(x_10, 9); lean_inc(x_22); x_23 = lean_ctor_get(x_10, 10); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_25 = l_Lean_replaceRef(x_1, x_18); +x_24 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_25 = lean_ctor_get(x_10, 11); +lean_inc(x_25); +x_26 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_27 = l_Lean_replaceRef(x_1, x_18); lean_dec(x_18); -x_26 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_26, 0, x_13); -lean_ctor_set(x_26, 1, x_14); -lean_ctor_set(x_26, 2, x_15); -lean_ctor_set(x_26, 3, x_16); -lean_ctor_set(x_26, 4, x_17); -lean_ctor_set(x_26, 5, x_25); -lean_ctor_set(x_26, 6, x_19); -lean_ctor_set(x_26, 7, x_20); -lean_ctor_set(x_26, 8, x_21); -lean_ctor_set(x_26, 9, x_22); -lean_ctor_set(x_26, 10, x_23); -lean_ctor_set_uint8(x_26, sizeof(void*)*11, x_24); +x_28 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_28, 0, x_13); +lean_ctor_set(x_28, 1, x_14); +lean_ctor_set(x_28, 2, x_15); +lean_ctor_set(x_28, 3, x_16); +lean_ctor_set(x_28, 4, x_17); +lean_ctor_set(x_28, 5, x_27); +lean_ctor_set(x_28, 6, x_19); +lean_ctor_set(x_28, 7, x_20); +lean_ctor_set(x_28, 8, x_21); +lean_ctor_set(x_28, 9, x_22); +lean_ctor_set(x_28, 10, x_23); +lean_ctor_set(x_28, 11, x_25); +lean_ctor_set_uint8(x_28, sizeof(void*)*12, x_24); +lean_ctor_set_uint8(x_28, sizeof(void*)*12 + 1, x_26); lean_inc(x_11); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_27 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_26, x_11, x_12); -if (lean_obj_tag(x_27) == 0) +x_29 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_28, x_11, x_12); +if (lean_obj_tag(x_29) == 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; -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_28, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -x_31 = lean_ctor_get(x_28, 1); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -lean_dec(x_28); -x_32 = lean_ctor_get(x_3, 0); +lean_dec(x_29); +x_32 = lean_ctor_get(x_30, 0); lean_inc(x_32); -lean_dec(x_3); -lean_inc(x_30); -x_33 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_30, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_29); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_36, 0, x_31); -lean_ctor_set(x_36, 1, x_30); -lean_ctor_set(x_36, 2, x_5); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_31); -lean_ctor_set(x_38, 1, x_30); -lean_ctor_set(x_38, 2, x_5); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -else -{ -uint8_t x_40; -lean_dec(x_31); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); lean_dec(x_30); -lean_dec(x_5); -x_40 = !lean_is_exclusive(x_33); -if (x_40 == 0) +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +lean_dec(x_3); +lean_inc(x_32); +x_35 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_32, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_35) == 0) { -return x_33; +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +x_38 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_32); +lean_ctor_set(x_38, 2, x_5); +lean_ctor_set(x_35, 0, x_38); +return x_35; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_33, 0); -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_40, 0, x_33); +lean_ctor_set(x_40, 1, x_32); +lean_ctor_set(x_40, 2, x_5); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +else +{ +uint8_t x_42; lean_dec(x_33); -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; +lean_dec(x_32); +lean_dec(x_5); +x_42 = !lean_is_exclusive(x_35); +if (x_42 == 0) +{ +return x_35; +} +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); +return x_45; } } } else { -uint8_t x_44; +uint8_t x_46; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -69087,23 +73875,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_44 = !lean_is_exclusive(x_27); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_29); +if (x_46 == 0) { -return x_27; +return x_29; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_27, 0); -x_46 = lean_ctor_get(x_27, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_27); -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; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_29, 0); +x_48 = lean_ctor_get(x_29, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_29); +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; } } } @@ -70270,77 +75058,77 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withoutModifyingStateWithInfoAndMes return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3; -x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4; x_2 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6; -x_2 = lean_unsigned_to_nat(16216u); +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6; +x_2 = lean_unsigned_to_nat(17406u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8() { _start: { lean_object* x_1; @@ -70348,41 +75136,33 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("reuse", 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10; +x_1 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTermCore___closed__2; x_3 = 0; -x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7; +x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -70398,7 +75178,7 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9; +x_10 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9; x_11 = l_Lean_registerTraceClass(x_10, x_3, x_4, x_9); if (lean_obj_tag(x_11) == 0) { @@ -70406,7 +75186,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); lean_dec(x_11); -x_13 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11; +x_13 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10; x_14 = l_Lean_registerTraceClass(x_13, x_3, x_4, x_12); return x_14; } @@ -70480,6 +75260,611 @@ return x_26; } } } +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("incremental", 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("incrementalAttr", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Marks an elaborator (tactic or command, currently) as supporting incremental elaboration. For unmarked elaborators, the corresponding snapshot bundle field in the elaboration context is unset so as to prevent accidental, incorrect reuse.", 237); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1___boxed), 4, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564_(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; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5; +x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4; +x_6 = 0; +x_7 = l_Lean_registerTagAttribute(x_2, x_3, x_4, x_5, x_6, x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17590_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_NameSet_empty; +x_3 = lean_st_mk_ref(x_2, x_1); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +return x_3; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +} +static lean_object* _init_l_Lean_Elab_addBuiltinIncrementalElab___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_builtinIncrementalElabs; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_addBuiltinIncrementalElab(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; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_3 = l_Lean_Elab_addBuiltinIncrementalElab___closed__1; +x_4 = lean_st_ref_take(x_3, x_2); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_box(0); +x_8 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_5, x_1, x_7); +x_9 = lean_st_ref_set(x_3, x_8, x_6); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("addBuiltinIncrementalElab", 25); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_inc(x_1); +x_6 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux(x_1); +x_7 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3; +x_8 = l_Lean_Expr_app___override(x_7, x_6); +x_9 = l_Lean_declareBuiltin(x_1, x_8, x_3, x_4, x_5); +return x_9; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("invalid attribute 'builtin_incremental', must be global", 55); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__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) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +lean_inc(x_4); +x_7 = l_Lean_Attribute_Builtin_ensureNoArgs(x_2, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; uint8_t x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = 0; +x_10 = l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_153_(x_3, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_dec(x_1); +x_11 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2; +x_12 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_11, x_4, x_5, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1(x_1, x_17, x_4, x_5, x_8); +lean_dec(x_5); +lean_dec(x_4); +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_7); +if (x_19 == 0) +{ +return x_7; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_7, 0); +x_21 = lean_ctor_get(x_7, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_7); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("attribute cannot be erased", 26); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2; +x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6; +x_2 = lean_unsigned_to_nat(17641u); +x_3 = l_Lean_Name_num___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("builtin_incremental", 19); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(builtin) ", 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____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_Lean_Elab_incrementalAttr; +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, 2); +lean_inc(x_4); +lean_dec(x_3); +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4; +x_6 = lean_string_append(x_5, x_4); +lean_dec(x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__5; +x_2 = l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__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_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6; +x_4 = 1; +x_5 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___boxed), 4, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__7; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10; +x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____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_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2(x_1, x_2, x_7, x_4, x_5, x_6); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_isIncrementalElab___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_incrementalAttr; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_isIncrementalElab(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = l_Lean_Elab_addBuiltinIncrementalElab___closed__1; +x_6 = lean_st_ref_get(x_5, x_4); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = l_Lean_NameSet_contains(x_8, x_1); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +lean_free_object(x_6); +x_11 = lean_st_ref_get(x_3, x_9); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Elab_isIncrementalElab___closed__1; +x_16 = l_Lean_TagAttribute_hasTag(x_15, x_14, x_1); +x_17 = lean_box(x_16); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_11); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_isIncrementalElab___closed__1; +x_22 = l_Lean_TagAttribute_hasTag(x_21, x_20, x_1); +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_19); +return x_24; +} +} +else +{ +lean_object* x_25; +lean_dec(x_1); +x_25 = lean_box(x_10); +lean_ctor_set(x_6, 0, x_25); +return x_6; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_6, 0); +x_27 = lean_ctor_get(x_6, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_6); +x_28 = l_Lean_NameSet_contains(x_26, x_1); +lean_dec(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; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_st_ref_get(x_3, x_27); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +x_33 = lean_ctor_get(x_30, 0); +lean_inc(x_33); +lean_dec(x_30); +x_34 = l_Lean_Elab_isIncrementalElab___closed__1; +x_35 = l_Lean_TagAttribute_hasTag(x_34, x_33, x_1); +x_36 = lean_box(x_35); +if (lean_is_scalar(x_32)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_32; +} +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_31); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_1); +x_38 = lean_box(x_28); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_27); +return x_39; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_isIncrementalElab___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_isIncrementalElab(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} lean_object* initialize_Lean_ReservedNameAction(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_CollectMVars(uint8_t builtin, lean_object*); @@ -70489,6 +75874,7 @@ lean_object* initialize_Lean_Elab_Config(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Level(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_DeclModifiers(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_WF_TerminationHint(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Language_Basic(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Term(uint8_t builtin, lean_object* w) { lean_object * res; @@ -70521,6 +75907,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_PreDefinition_WF_TerminationHint(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Language_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Elab_Term_instInhabitedSyntheticMVarKind = _init_l_Lean_Elab_Term_instInhabitedSyntheticMVarKind(); lean_mark_persistent(l_Lean_Elab_Term_instInhabitedSyntheticMVarKind); l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__1 = _init_l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__1(); @@ -70612,6 +76001,28 @@ l_Lean_Elab_Tactic_instInhabitedCache___closed__1 = _init_l_Lean_Elab_Tactic_ins lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedCache___closed__1); l_Lean_Elab_Tactic_instInhabitedCache = _init_l_Lean_Elab_Tactic_instInhabitedCache(); lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedCache); +l_Lean_Elab_Tactic_instInhabitedTacticFinished = _init_l_Lean_Elab_Tactic_instInhabitedTacticFinished(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticFinished); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__1); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__2); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__3); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__4); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData___closed__5); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshotData); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot___closed__1 = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot___closed__1); +l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot = _init_l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot(); +lean_mark_persistent(l_Lean_Elab_Tactic_instInhabitedTacticParsedSnapshot); +l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot_go___spec__1___closed__1); +l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot = _init_l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot(); +lean_mark_persistent(l_Lean_Elab_Tactic_instToSnapshotTreeTacticParsedSnapshot); l_Lean_Elab_Term_Context_declName_x3f___default = _init_l_Lean_Elab_Term_Context_declName_x3f___default(); lean_mark_persistent(l_Lean_Elab_Term_Context_declName_x3f___default); l_Lean_Elab_Term_Context_auxDeclToFullName___default = _init_l_Lean_Elab_Term_Context_auxDeclToFullName___default(); @@ -70640,6 +76051,8 @@ l_Lean_Elab_Term_Context_ignoreTCFailures___default = _init_l_Lean_Elab_Term_Con l_Lean_Elab_Term_Context_inPattern___default = _init_l_Lean_Elab_Term_Context_inPattern___default(); l_Lean_Elab_Term_Context_tacticCache_x3f___default = _init_l_Lean_Elab_Term_Context_tacticCache_x3f___default(); lean_mark_persistent(l_Lean_Elab_Term_Context_tacticCache_x3f___default); +l_Lean_Elab_Term_Context_tacSnap_x3f___default = _init_l_Lean_Elab_Term_Context_tacSnap_x3f___default(); +lean_mark_persistent(l_Lean_Elab_Term_Context_tacSnap_x3f___default); l_Lean_Elab_Term_Context_saveRecAppSyntax___default = _init_l_Lean_Elab_Term_Context_saveRecAppSyntax___default(); l_Lean_Elab_Term_Context_holesAsSyntheticOpaque___default = _init_l_Lean_Elab_Term_Context_holesAsSyntheticOpaque___default(); l_Lean_Elab_Term_instMonadTermElabM___closed__1 = _init_l_Lean_Elab_Term_instMonadTermElabM___closed__1(); @@ -70668,6 +76081,22 @@ l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__3 = _init_l_Lea lean_mark_persistent(l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__3); l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM = _init_l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM(); lean_mark_persistent(l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM); +l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__1); +l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_withNarrowedArgTacticReuse___rarg___lambda__1___closed__2); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__1); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__2); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__3); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__4); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__5); +l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6 = _init_l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_withoutTacticIncrementality___rarg___lambda__3___closed__6); l_Lean_Elab_Term_observing___rarg___closed__1 = _init_l_Lean_Elab_Term_observing___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_observing___rarg___closed__1); l_panic___at_Lean_Elab_Term_getFVarLocalDecl_x21___spec__1___closed__1 = _init_l_panic___at_Lean_Elab_Term_getFVarLocalDecl_x21___spec__1___closed__1(); @@ -70718,13 +76147,11 @@ l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10 = _init_l_Lean_Elab_Term lean_mark_persistent(l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__10); l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11 = _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11(); lean_mark_persistent(l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11); -l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12 = _init_l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__12); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009____closed__2); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_2009_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183____closed__2); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3183_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_termElabAttribute = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_termElabAttribute); @@ -70741,8 +76168,6 @@ l_Lean_Elab_Term_withoutHeedElabAsElim___rarg___closed__1 = _init_l_Lean_Elab_Te lean_mark_persistent(l_Lean_Elab_Term_withoutHeedElabAsElim___rarg___closed__1); l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1 = _init_l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__1); -l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2 = _init_l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2(); -lean_mark_persistent(l_Lean_Elab_CommandContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___rarg___closed__2); l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1___rarg___closed__1 = _init_l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__1___rarg___closed__1); l_Lean_Elab_Term_throwErrorIfErrors___closed__1 = _init_l_Lean_Elab_Term_throwErrorIfErrors___closed__1(); @@ -70764,8 +76189,16 @@ l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__3 = _init_l_Lean_El lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__3); l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4); +l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__1); +l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__2); +l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___lambda__2___closed__3); l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1 = _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__1); +l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2 = _init_l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__2); l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1); l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2(); @@ -70790,8 +76223,6 @@ l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11 = _init_l_Lean_Elab_Term_MV lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11); l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12(); lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12); -l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13); l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1 = _init_l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1); l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__2 = _init_l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__2(); @@ -70828,10 +76259,6 @@ l_Lean_Elab_Term_mkExplicitBinder___closed__13 = _init_l_Lean_Elab_Term_mkExplic lean_mark_persistent(l_Lean_Elab_Term_mkExplicitBinder___closed__13); l_Lean_Elab_Term_mkExplicitBinder___closed__14 = _init_l_Lean_Elab_Term_mkExplicitBinder___closed__14(); lean_mark_persistent(l_Lean_Elab_Term_mkExplicitBinder___closed__14); -l_Lean_Elab_Term_mkExplicitBinder___closed__15 = _init_l_Lean_Elab_Term_mkExplicitBinder___closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_mkExplicitBinder___closed__15); -l_Lean_Elab_Term_mkExplicitBinder___closed__16 = _init_l_Lean_Elab_Term_mkExplicitBinder___closed__16(); -lean_mark_persistent(l_Lean_Elab_Term_mkExplicitBinder___closed__16); l_Lean_Elab_Term_levelMVarToParam___closed__1 = _init_l_Lean_Elab_Term_levelMVarToParam___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_levelMVarToParam___closed__1); l_Lean_Elab_Term_levelMVarToParam___closed__2 = _init_l_Lean_Elab_Term_levelMVarToParam___closed__2(); @@ -70844,6 +76271,8 @@ l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAt lean_mark_persistent(l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__1); l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2 = _init_l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2(); lean_mark_persistent(l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__2); +l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3 = _init_l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3(); +lean_mark_persistent(l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__7___closed__3); l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___closed__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___closed__1); l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___boxed__const__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___boxed__const__1(); @@ -71034,8 +76463,6 @@ l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__3 = _init_l lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__3); l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__4); -l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5); l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__1); l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__2 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__2(); @@ -71117,37 +76544,37 @@ l_Lean_Elab_Term_mkAuxName___closed__1 = _init_l_Lean_Elab_Term_mkAuxName___clos lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__1); l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__5); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__6); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__7); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__8); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__9); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__10); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__11); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__12); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__13); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__14); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958____closed__15); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13958_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__5); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__6); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__7); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__8); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__9); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__10); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__11); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__12); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__13); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__14); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148____closed__15); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_15148_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_Elab_Term_isLetRecAuxMVar___lambda__3___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___lambda__3___closed__1(); @@ -71286,6 +76713,8 @@ l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25 = _init_l_Lean_Elab_T lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__25); l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26(); lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__26); +l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27(); +lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__27); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2(); @@ -71358,32 +76787,93 @@ l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3 = _init_l_Lean_Elab_Term_e lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3); l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4 = _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__3); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__5); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__6); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__7); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__8); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__9); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__10); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216____closed__11); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_16216_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__5); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__6); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__7); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__8); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__9); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406____closed__10); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17406_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}return lean_io_result_mk_ok(lean_box(0)); +}l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__5); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564____closed__6); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17564_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_incrementalAttr = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_incrementalAttr); +lean_dec_ref(res); +}if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17590_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_builtinIncrementalElabs = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_builtinIncrementalElabs); +lean_dec_ref(res); +}l_Lean_Elab_addBuiltinIncrementalElab___closed__1 = _init_l_Lean_Elab_addBuiltinIncrementalElab___closed__1(); +lean_mark_persistent(l_Lean_Elab_addBuiltinIncrementalElab___closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__1___closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__2___closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____lambda__3___closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__5(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__5); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__6); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__7(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__7); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__8); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__9); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641____closed__10); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_17641_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Elab_isIncrementalElab___closed__1 = _init_l_Lean_Elab_isIncrementalElab___closed__1(); +lean_mark_persistent(l_Lean_Elab_isIncrementalElab___closed__1); +return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus } diff --git a/stage0/stdlib/Lean/Elab/Util.c b/stage0/stdlib/Lean/Elab/Util.c index b7c293951e..1be43e2ccd 100644 --- a/stage0/stdlib/Lean/Elab/Util.c +++ b/stage0/stdlib/Lean/Elab/Util.c @@ -18,20 +18,19 @@ lean_object* l_Lean_addTrace___rarg(lean_object*, lean_object*, lean_object*, le LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1; uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__22; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_throwErrorWithNestedErrors___spec__1(lean_object*); static lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__4; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__6; lean_object* l_Lean_Attribute_Builtin_getId(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_instMonadMacroAdapterOfMonadLift(lean_object*, lean_object*); static lean_object* l_Lean_Elab_expandMacroImpl_x3f___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13; static lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__3; extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__6; @@ -41,22 +40,23 @@ lean_object* l_Lean_indentD(lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg(lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__18; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__7; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__4; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___at_Lean_Elab_checkSyntaxNodeKindAtCurrentNamespaces___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKind(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Elab_expandOptNamedPrio___closed__4; lean_object* l_Lean_getRefPos___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10; static lean_object* l_Lean_Elab_mkElabAttribute___rarg___closed__2; lean_object* l_String_toFormat(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18; static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__1; lean_object* l_List_foldl___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l_Lean_declareBuiltinDocStringAndRanges(lean_object*, lean_object*, lean_object*, lean_object*); @@ -66,10 +66,8 @@ lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_adaptMacro___rarg(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_Lean_Elab_liftMacroM___rarg___lambda__12(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_Lean_Elab_checkSyntaxNodeKind___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___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*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7; lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_liftMacroM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors(lean_object*, lean_object*); @@ -94,20 +92,22 @@ static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed static lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__3; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_expandOptNamedPrio___closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16; static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__24; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_getBetterRef___lambda__1___boxed(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__13(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_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511_(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_throwErrorWithNestedErrors___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -118,11 +118,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__11(lean_object* static lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1___closed__2; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MacroScopesView_format___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7; lean_object* l_Lean_Elab_addConstInfo___at_Lean_KeyedDeclsAttribute_Def_evalKey___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_throwErrorWithNestedErrors___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__16; LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_getBetterRef___lambda__1(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); @@ -145,7 +147,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1(lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__3; lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___rarg(lean_object*, lean_object*, lean_object*); @@ -153,7 +154,8 @@ lean_object* l_Lean_Macro_hasDecl(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_logException___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__4; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_expandMacroImpl_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_throwErrorWithNestedErrors___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -163,12 +165,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_macroAttribute; LEAN_EXPORT lean_object* l_Lean_Elab_pp_macroStack; static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1004_(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2; uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_getBetterRef___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12; static lean_object* l_Lean_Elab_checkSyntaxNodeKind___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__10; @@ -183,15 +185,17 @@ static lean_object* l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1_ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandOptNamedPrio___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8; static lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__2; static lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__4; static lean_object* l_Lean_Elab_expandOptNamedPrio___closed__3; lean_object* l_Lean_Syntax_reprint(lean_object*); lean_object* lean_name_append_index_after(lean_object*, lean_object*); static lean_object* l_Lean_Elab_expandMacroImpl_x3f___closed__1; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Core_interruptExceptionId; static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__26; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17; static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__15; lean_object* l_Lean_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandOptNamedPrio(lean_object*, lean_object*, lean_object*); @@ -218,9 +222,9 @@ static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__13; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__14; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__14(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___auto____x40_Lean_Elab_Util___hyg_777____closed__1; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__25; LEAN_EXPORT lean_object* l_Lean_Elab_adaptMacro(lean_object*); @@ -230,6 +234,7 @@ lean_object* l_Lean_logAt___rarg(lean_object*, lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_liftMacroM___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_liftMacroM___spec__3(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__3; @@ -240,19 +245,20 @@ lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object* lean_object* l_Lean_toMessageList(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandMacroImpl_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4; static lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKind___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_prettyPrint(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__8(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*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18; static lean_object* l_Lean_Elab_expandOptNamedPrio___closed__1; static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__23; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3; size_t lean_usize_add(size_t, size_t); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_logException___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces(lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__27; @@ -274,7 +280,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__4(lean_object*, lean_object* lean_array_get_size(lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__21; LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_liftMacroM___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8; static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1004____closed__2; static lean_object* l_Lean_Elab_addMacroStack___rarg___lambda__1___closed__1; uint8_t lean_usize_dec_lt(size_t, size_t); @@ -288,14 +293,13 @@ LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1___boxe uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_System_FilePath_parent___spec__1(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__20; static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withLogging(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1; uint8_t l_List_beq___at_Lean_MacroScopesView_isPrefixOf___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17; LEAN_EXPORT lean_object* l_Lean_MacroScopesView_equalScope___boxed(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Elab_Util___hyg_777____closed__11; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -1195,9 +1199,13 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_ctor_get(x_9, 1); -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ lean_free_object(x_9); lean_dec(x_11); x_2 = x_7; @@ -1215,45 +1223,71 @@ return x_9; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_9); -x_17 = l_Lean_Exception_isRuntime(x_15); -if (x_17 == 0) -{ -lean_dec(x_15); -x_2 = x_7; -x_5 = x_16; -goto _start; -} -else -{ -lean_object* x_19; lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_15); -lean_ctor_set(x_19, 1, x_16); -return x_19; +return x_9; +} +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = l_Lean_Exception_isInterrupt(x_16); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ +lean_dec(x_16); +x_2 = x_7; +x_5 = x_17; +goto _start; +} +else +{ +lean_object* x_21; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +else +{ +lean_object* x_22; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_17); +return x_22; } } } } default: { -lean_object* x_20; lean_object* x_21; +lean_object* x_23; lean_object* x_24; lean_dec(x_2); lean_dec(x_1); -x_20 = l_Lean_Elab_checkSyntaxNodeKind___rarg___lambda__1___closed__2; -x_21 = l_Lean_throwError___at_Lean_registerInitAttrUnsafe___spec__3(x_20, x_3, x_4, x_5); +x_23 = l_Lean_Elab_checkSyntaxNodeKind___rarg___lambda__1___closed__2; +x_24 = l_Lean_throwError___at_Lean_registerInitAttrUnsafe___spec__3(x_23, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); -return x_21; +return x_24; } } } @@ -1386,96 +1420,128 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_ctor_get(x_9, 1); -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_free_object(x_9); lean_dec(x_11); lean_inc(x_7); -x_14 = l_Lean_Name_append(x_1, x_7); -x_15 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_checkSyntaxNodeKindAtCurrentNamespaces___spec__2(x_14, x_3, x_4, x_12); -if (lean_obj_tag(x_15) == 0) +x_15 = l_Lean_Name_append(x_1, x_7); +x_16 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_checkSyntaxNodeKindAtCurrentNamespaces___spec__2(x_15, x_3, x_4, x_12); +if (lean_obj_tag(x_16) == 0) { lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -return x_15; +return x_16; } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); -if (x_19 == 0) +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +x_20 = l_Lean_Exception_isInterrupt(x_18); +if (x_20 == 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_free_object(x_15); -lean_dec(x_17); -x_20 = l_Lean_MessageData_ofName(x_7); -x_21 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; -x_22 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +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_free_object(x_16); +lean_dec(x_18); +x_22 = l_Lean_MessageData_ofName(x_7); +x_23 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; x_24 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_24, x_3, x_4, x_18); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; +x_26 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_26, x_3, x_4, x_19); lean_dec(x_4); lean_dec(x_3); -return x_25; +return x_27; } else { lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -return x_15; +return x_16; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_15, 0); -x_27 = lean_ctor_get(x_15, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_15); -x_28 = l_Lean_Exception_isRuntime(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; -lean_dec(x_26); -x_29 = l_Lean_MessageData_ofName(x_7); -x_30 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; -x_31 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; -x_33 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_33, x_3, x_4, x_27); -lean_dec(x_4); -lean_dec(x_3); -return x_34; -} -else -{ -lean_object* x_35; lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_27); -return x_35; +return x_16; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_16, 0); +x_29 = lean_ctor_get(x_16, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_16); +x_30 = l_Lean_Exception_isInterrupt(x_28); +if (x_30 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 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; +lean_dec(x_28); +x_32 = l_Lean_MessageData_ofName(x_7); +x_33 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; +x_34 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; +x_36 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_36, x_3, x_4, x_29); +lean_dec(x_4); +lean_dec(x_3); +return x_37; +} +else +{ +lean_object* x_38; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_28); +lean_ctor_set(x_38, 1, x_29); +return x_38; +} +} +else +{ +lean_object* x_39; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_28); +lean_ctor_set(x_39, 1, x_29); +return x_39; } } } @@ -1491,117 +1557,163 @@ return x_9; } else { -lean_object* x_36; lean_object* x_37; uint8_t 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_dec(x_9); -x_38 = l_Lean_Exception_isRuntime(x_36); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_36); -lean_inc(x_7); -x_39 = l_Lean_Name_append(x_1, x_7); -x_40 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_checkSyntaxNodeKindAtCurrentNamespaces___spec__2(x_39, x_3, x_4, x_37); -if (lean_obj_tag(x_40) == 0) -{ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -return x_40; +lean_dec(x_1); +return x_9; +} } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_9, 0); +x_41 = lean_ctor_get(x_9, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; -} else { - lean_dec_ref(x_40); - x_43 = lean_box(0); -} -x_44 = l_Lean_Exception_isRuntime(x_41); -if (x_44 == 0) +lean_inc(x_40); +lean_dec(x_9); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 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_dec(x_43); -lean_dec(x_41); -x_45 = l_Lean_MessageData_ofName(x_7); -x_46 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; -x_47 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; -x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_49, x_3, x_4, x_42); -lean_dec(x_4); -lean_dec(x_3); -return x_50; -} -else +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_40); +lean_inc(x_7); +x_44 = l_Lean_Name_append(x_1, x_7); +x_45 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_checkSyntaxNodeKindAtCurrentNamespaces___spec__2(x_44, x_3, x_4, x_41); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_51; lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_43)) { - x_51 = lean_alloc_ctor(1, 2, 0); -} else { - x_51 = x_43; +return x_45; } -lean_ctor_set(x_51, 0, x_41); -lean_ctor_set(x_51, 1, x_42); -return x_51; +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_48 = x_45; +} else { + lean_dec_ref(x_45); + x_48 = lean_box(0); +} +x_49 = l_Lean_Exception_isInterrupt(x_46); +if (x_49 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_46); +if (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_dec(x_48); +lean_dec(x_46); +x_51 = l_Lean_MessageData_ofName(x_7); +x_52 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__2; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__4; +x_55 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_throwError___at_Lean_Elab_syntaxNodeKindOfAttrParam___spec__1(x_55, x_3, x_4, x_47); +lean_dec(x_4); +lean_dec(x_3); +return x_56; +} +else +{ +lean_object* x_57; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_48)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_48; +} +lean_ctor_set(x_57, 0, x_46); +lean_ctor_set(x_57, 1, x_47); +return x_57; +} +} +else +{ +lean_object* x_58; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_48)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_48; +} +lean_ctor_set(x_58, 0, x_46); +lean_ctor_set(x_58, 1, x_47); +return x_58; } } } else { -lean_object* x_52; +lean_object* x_59; lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_36); -lean_ctor_set(x_52, 1, x_37); -return x_52; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_40); +lean_ctor_set(x_59, 1, x_41); +return x_59; +} +} +else +{ +lean_object* x_60; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_40); +lean_ctor_set(x_60, 1, x_41); +return x_60; } } } } else { -uint8_t x_53; +uint8_t x_61; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_6); -if (x_53 == 0) +x_61 = !lean_is_exclusive(x_6); +if (x_61 == 0) { return x_6; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_6, 0); -x_55 = lean_ctor_get(x_6, 1); -lean_inc(x_55); -lean_inc(x_54); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_6, 0); +x_63 = lean_ctor_get(x_6, 1); +lean_inc(x_63); +lean_inc(x_62); lean_dec(x_6); -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; +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; } } } @@ -4229,6 +4341,14 @@ x_12 = l_Lean_log___rarg(x_1, x_2, x_3, x_4, x_10, x_11); return x_12; } } +static lean_object* _init_l_Lean_Elab_logException___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Core_interruptExceptionId; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_logException___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) { _start: { @@ -4254,37 +4374,61 @@ lean_dec(x_6); x_12 = l_Lean_Elab_isAbortExceptionId(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -x_14 = lean_alloc_closure((void*)(l_Lean_InternalExceptionId_getName___boxed), 2, 1); -lean_closure_set(x_14, 0, x_11); -x_15 = lean_apply_2(x_5, lean_box(0), x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_logException___rarg___lambda__1), 5, 4); -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); -x_17 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_15, x_16); -return x_17; +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_Elab_logException___rarg___closed__1; +x_14 = lean_nat_dec_eq(x_11, x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_alloc_closure((void*)(l_Lean_InternalExceptionId_getName___boxed), 2, 1); +lean_closure_set(x_16, 0, x_11); +x_17 = lean_apply_2(x_5, lean_box(0), x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_logException___rarg___lambda__1), 5, 4); +lean_closure_set(x_18, 0, x_1); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_3); +lean_closure_set(x_18, 3, x_4); +x_19 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_17, x_18); +return x_19; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_18 = lean_ctor_get(x_1, 0); -lean_inc(x_18); +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); lean_dec(x_1); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_box(0); -x_21 = lean_apply_2(x_19, lean_box(0), x_20); -return x_21; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_box(0); +x_23 = lean_apply_2(x_21, lean_box(0), x_22); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_ctor_get(x_1, 0); +lean_inc(x_24); +lean_dec(x_1); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_box(0); +x_27 = lean_apply_2(x_25, lean_box(0), x_26); +return x_27; } } } @@ -4666,7 +4810,7 @@ x_8 = l_Array_mapMUnsafe_map___at_Lean_Elab_throwErrorWithNestedErrors___spec__1 return x_8; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4676,7 +4820,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4686,17 +4830,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4() { _start: { lean_object* x_1; @@ -4704,17 +4848,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6() { _start: { lean_object* x_1; @@ -4722,37 +4866,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7; x_2 = l_Lean_Elab_expandOptNamedPrio___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8; x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10() { _start: { lean_object* x_1; @@ -4760,17 +4904,17 @@ x_1 = lean_mk_string_from_bytes("Util", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12() { _start: { lean_object* x_1; @@ -4778,27 +4922,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12; +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13; -x_2 = lean_unsigned_to_nat(2503u); +x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13; +x_2 = lean_unsigned_to_nat(2511u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15() { _start: { lean_object* x_1; @@ -4806,17 +4950,17 @@ x_1 = lean_mk_string_from_bytes("step", 4); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__6; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17() { _start: { lean_object* x_1; @@ -4824,24 +4968,24 @@ x_1 = lean_mk_string_from_bytes("result", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_341____closed__6; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15; -x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1; x_3 = 0; -x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14; +x_4 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -4849,7 +4993,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); -x_7 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16; +x_7 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16; x_8 = l_Lean_registerTraceClass(x_7, x_3, x_4, x_6); if (lean_obj_tag(x_8) == 0) { @@ -4857,7 +5001,7 @@ lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18; +x_10 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18; x_11 = 1; x_12 = l_Lean_registerTraceClass(x_10, x_11, x_4, x_9); return x_12; @@ -5082,6 +5226,8 @@ l_Lean_Elab_logException___rarg___lambda__1___closed__3 = _init_l_Lean_Elab_logE lean_mark_persistent(l_Lean_Elab_logException___rarg___lambda__1___closed__3); l_Lean_Elab_logException___rarg___lambda__1___closed__4 = _init_l_Lean_Elab_logException___rarg___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Elab_logException___rarg___lambda__1___closed__4); +l_Lean_Elab_logException___rarg___closed__1 = _init_l_Lean_Elab_logException___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_logException___rarg___closed__1); l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__1); l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_nestedExceptionToMessageData___rarg___lambda__1___closed__2(); @@ -5094,43 +5240,43 @@ l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__1 = _init_l_ lean_mark_persistent(l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__1); l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_throwErrorWithNestedErrors___rarg___lambda__1___closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__3); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__5); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__6); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__7); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__8); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__9); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__10); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__11); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__12); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__13); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__14); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__15); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__16); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__17); -l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503____closed__18); -if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2503_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__5); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__6); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__7); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__8); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__9); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__10); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__11); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__12); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__13); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__14); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__15); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__16); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__17); +l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511____closed__18); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_2511_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Language/Basic.c b/stage0/stdlib/Lean/Language/Basic.c index 58c3bebd1b..09589eabf0 100644 --- a/stage0/stdlib/Lean/Language/Basic.c +++ b/stage0/stdlib/Lean/Language/Basic.c @@ -13,32 +13,37 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5; +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4; +static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3; LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lean_Language_reportMessages___spec__7(lean_object*, lean_object*); lean_object* lean_io_cancel(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_cancel___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_cancel___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_printMessageEndPos; -static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_children(lean_object*); -static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3; LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_toTyped_x3f___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_mkIncrementalProcessor___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_toTyped_x3f___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Language_diagnosticsOfHeaderError___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forM___at_Lean_Language_reportMessages___spec__2(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4; +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); static lean_object* l_Lean_Language_instInhabitedSnapshot___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___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_Lean_Language_reportMessages___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___at_Lean_Language_SnapshotTree_runAndReport___spec__1(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_element___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMessages___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_ofIO(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); @@ -47,6 +52,7 @@ LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_toTyped_x3f(lean_object LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_ofIO___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bind___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Snapshot_Diagnostics_empty___closed__1; +LEAN_EXPORT lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_; static lean_object* l_Lean_Language_reportMessages___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_instToSnapshotTreeDynamicSnapshot(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bindIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -62,17 +68,21 @@ LEAN_EXPORT lean_object* l_Lean_Language_Snapshot_infoTree_x3f___default; static lean_object* l_Lean_Language_reportMessages___lambda__1___closed__1; lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_withHeaderExceptions___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_; +lean_object* l_IO_Promise_resolve___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); +lean_object* l_IO_Promise_new___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bindIO(lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); static size_t l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__3; +static lean_object* l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6; LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_runAndReport(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_runAndReport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_instInhabitedSnapshotTree___closed__1; static lean_object* l_Lean_Language_diagnosticsOfHeaderError___closed__1; +static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1; +LEAN_EXPORT lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_pure(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_instInhabitedSnapshotTree; LEAN_EXPORT lean_object* l_Lean_Language_reportMessages(lean_object*, lean_object*, uint8_t, lean_object*); @@ -81,26 +91,27 @@ LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___rarg___lambda__2___ LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_map___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__2; LEAN_EXPORT lean_object* l_Lean_Language_instMonadLiftProcessingMProcessingTIO(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_SnapshotTree_runAndReport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_get_x3f(lean_object*); -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2; LEAN_EXPORT lean_object* l_Lean_Language_mkIncrementalProcessor(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___boxed__const__1; static lean_object* l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5; -static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2; -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_Language_reportMessages___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_diagnosticsOfHeaderError(lean_object*, lean_object*, lean_object*); lean_object* l_IO_print___at_IO_println___spec__1(lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938_(lean_object*); static lean_object* l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__1; extern lean_object* l_Lean_MessageLog_empty; uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5; +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_instInhabitedSnapshot; LEAN_EXPORT lean_object* l_Lean_Language_instToSnapshotTreeOption(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Snapshot_Diagnostics_empty; @@ -108,55 +119,81 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMess LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped(lean_object*); lean_object* lean_task_get_own(lean_object*); static lean_object* l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__4; +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMessages___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_instToSnapshotTreeDynamicSnapshot___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMessages___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_mkIncrementalProcessor___elambda__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_SnapshotTree_getAll___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_mkIncrementalProcessor___elambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_SnapshotTree_getAll___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_reportMessages___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lean_Language_reportMessages___spec__7___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___at_Lean_Language_reportMessages___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_instMonadLiftProcessingMProcessingTIO___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMessages___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_reportMessages___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_map(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_withHeaderExceptions(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_get_x3f___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_get(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bindIO___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2; lean_object* lean_io_get_task_state(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bind___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6; lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises(lean_object*, lean_object*); +static lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1; +lean_object* l_List_iotaTR(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bind(lean_object*, lean_object*); +static lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_map___rarg(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_foldlMUnsafe_fold___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); -static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3; LEAN_EXPORT lean_object* l_Lean_Language_mkIncrementalProcessor___elambda__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_reportMessages___lambda__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_SnapshotTree_runAndReport___spec__2(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_instToSnapshotTreeSnapshotLeaf(lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_element(lean_object*); +static lean_object* l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_bindIO___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1; LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTask_cancel(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_reportMessages___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_children___boxed(lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___at_Lean_Language_SnapshotTree_getAll___spec__1(lean_object*, lean_object*); +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___at_Lean_Language_SnapshotTree_runAndReport___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_SnapshotTree_forM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -211,9 +248,21 @@ return x_5; static lean_object* _init_l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__4; +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_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__4; +x_2 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -224,7 +273,7 @@ static lean_object* _init_l_Lean_Language_Snapshot_instInhabitedDiagnostics() { _start: { lean_object* x_1; -x_1 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5; +x_1 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6; return x_1; } } @@ -269,7 +318,7 @@ _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; x_1 = lean_box(0); -x_2 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5; +x_2 = l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6; x_3 = 0; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -750,6 +799,465 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Language_SnapshotTask_get_x3f___rarg), 2 return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2(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_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___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) { +_start: +{ +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; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +lean_inc(x_6); +x_9 = lean_apply_1(x_2, x_6); +x_10 = lean_alloc_closure((void*)(l_IO_Promise_resolve___boxed), 4, 3); +lean_closure_set(x_10, 0, lean_box(0)); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_6); +x_11 = lean_apply_2(x_4, lean_box(0), x_10); +x_12 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_12); +x_14 = lean_ctor_get(x_8, 0); +lean_inc(x_14); +lean_dec(x_8); +x_15 = l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1; +x_16 = lean_apply_4(x_14, lean_box(0), lean_box(0), x_15, x_13); +return x_16; +} +} +static lean_object* _init_l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_IO_Promise_new___boxed), 3, 2); +lean_closure_set(x_1, 0, lean_box(0)); +lean_closure_set(x_1, 1, lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1; +lean_inc(x_2); +x_8 = lean_apply_2(x_2, lean_box(0), x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3), 6, 5); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_5); +lean_closure_set(x_9, 2, x_4); +lean_closure_set(x_9, 3, x_2); +lean_closure_set(x_9, 4, x_3); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromise___rarg), 5, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__2(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___lambda__1(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_7 = 1; +x_8 = lean_usize_add(x_1, x_7); +x_9 = lean_array_uset(x_2, x_1, x_6); +x_10 = l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg(x_3, x_4, x_5, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg(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_lt(x_4, x_3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_2(x_8, lean_box(0), x_5); +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_unsigned_to_nat(0u); +x_11 = lean_array_uset(x_5, x_4, x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1; +lean_inc(x_2); +x_14 = lean_apply_2(x_2, lean_box(0), x_13); +x_15 = lean_box_usize(x_4); +x_16 = lean_box_usize(x_3); +x_17 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___lambda__1___boxed), 6, 5); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_11); +lean_closure_set(x_17, 2, x_1); +lean_closure_set(x_17, 3, x_2); +lean_closure_set(x_17, 4, x_16); +x_18 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_14, x_17); +return x_18; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___boxed), 5, 0); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1; +x_5 = lean_apply_2(x_3, lean_box(0), x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__2(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, size_t x_8, lean_object* x_9) { +_start: +{ +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_apply_2(x_12, lean_box(0), x_10); +return x_13; +} +else +{ +lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_9, 0); +lean_inc(x_14); +lean_dec(x_9); +x_15 = 1; +x_16 = lean_usize_add(x_2, x_15); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_16, x_14); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___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, size_t x_7, size_t x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_lt(x_8, x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_apply_2(x_12, lean_box(0), x_9); +return x_13; +} +else +{ +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_dec(x_9); +x_14 = lean_array_uget(x_6, x_8); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +lean_inc(x_3); +x_16 = lean_alloc_closure((void*)(l_IO_Promise_resolve___boxed), 4, 3); +lean_closure_set(x_16, 0, lean_box(0)); +lean_closure_set(x_16, 1, x_3); +lean_closure_set(x_16, 2, x_14); +lean_inc(x_2); +x_17 = lean_apply_2(x_2, lean_box(0), x_16); +lean_inc(x_5); +x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_18, 0, x_5); +lean_inc(x_4); +x_19 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_17, x_18); +x_20 = lean_box_usize(x_8); +x_21 = lean_box_usize(x_7); +x_22 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__2___boxed), 9, 8); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +lean_closure_set(x_22, 2, x_2); +lean_closure_set(x_22, 3, x_3); +lean_closure_set(x_22, 4, x_4); +lean_closure_set(x_22, 5, x_5); +lean_closure_set(x_22, 6, x_6); +lean_closure_set(x_22, 7, x_21); +x_23 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_19, x_22); +return x_23; +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___boxed), 9, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_box(0); +x_5 = lean_apply_2(x_3, lean_box(0), x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__2(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t 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; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_inc(x_8); +x_11 = lean_apply_1(x_2, x_8); +x_12 = lean_array_get_size(x_8); +x_13 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_14 = lean_box(0); +lean_inc(x_9); +lean_inc(x_5); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg(x_1, x_3, x_4, x_5, x_9, x_8, x_13, x_6, x_14); +x_16 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_16, 0, x_9); +x_17 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__1___boxed), 2, 1); +lean_closure_set(x_18, 0, x_17); +x_19 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_11, x_18); +x_20 = lean_ctor_get(x_10, 0); +lean_inc(x_20); +lean_dec(x_10); +x_21 = l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1; +x_22 = lean_apply_4(x_20, lean_box(0), lean_box(0), x_21, x_19); +return x_22; +} +} +static lean_object* _init_l_Lean_Language_withAlwaysResolvedPromises___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_Language_withAlwaysResolvedPromises___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = l_List_iotaTR(x_5); +x_9 = l_List_redLength___rarg(x_8); +x_10 = lean_mk_empty_array_with_capacity(x_9); +lean_dec(x_9); +x_11 = l_List_toArrayAux___rarg(x_8, x_10); +x_12 = lean_array_get_size(x_11); +x_13 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_14 = 0; +lean_inc(x_2); +lean_inc(x_1); +x_15 = l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg(x_1, x_2, x_13, x_14, x_11); +x_16 = l_Lean_Language_withAlwaysResolvedPromises___rarg___boxed__const__1; +lean_inc(x_7); +x_17 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__2___boxed), 8, 7); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_6); +lean_closure_set(x_17, 2, x_2); +lean_closure_set(x_17, 3, x_4); +lean_closure_set(x_17, 4, x_7); +lean_closure_set(x_17, 5, x_16); +lean_closure_set(x_17, 6, x_3); +x_18 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_15, x_17); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Language_withAlwaysResolvedPromises___rarg), 6, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___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) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___lambda__1(x_7, x_2, x_3, x_4, x_8, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg___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_mapMUnsafe_map___at_Lean_Language_withAlwaysResolvedPromises___spec__1___rarg(x_1, x_2, x_6, x_7, x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___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) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__2(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_11, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___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_7); +lean_dec(x_7); +x_11 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Language_withAlwaysResolvedPromises___rarg___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: +{ +size_t x_9; lean_object* x_10; +x_9 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_10 = l_Lean_Language_withAlwaysResolvedPromises___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); +return x_10; +} +} static lean_object* _init_l_Lean_Language_instInhabitedSnapshotTree___closed__1() { _start: { @@ -835,7 +1343,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Language_instToSnapshotTreeOption___rarg return x_2; } } -static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1() { +static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1() { _start: { lean_object* x_1; @@ -843,7 +1351,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2() { +static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2() { _start: { lean_object* x_1; @@ -851,7 +1359,7 @@ x_1 = lean_mk_string_from_bytes("Language", 8); return x_1; } } -static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3() { +static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3() { _start: { lean_object* x_1; @@ -859,22 +1367,22 @@ x_1 = lean_mk_string_from_bytes("SnapshotLeaf", 12); return x_1; } } -static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4() { +static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1; -x_2 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2; -x_3 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3; +x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1; +x_2 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2; +x_3 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_() { +static lean_object* _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_() { _start: { lean_object* x_1; -x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4; +x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4; return x_1; } } @@ -882,7 +1390,7 @@ static lean_object* _init_l_Lean_Language_instTypeNameSnapshotLeaf() { _start: { lean_object* x_1; -x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_; +x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_; return x_1; } } @@ -1073,7 +1581,7 @@ lean_dec(x_4); return x_5; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1() { _start: { lean_object* x_1; @@ -1081,17 +1589,17 @@ x_1 = lean_mk_string_from_bytes("printMessageEndPos", 18); return x_1; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1; +x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3() { _start: { lean_object* x_1; @@ -1099,7 +1607,7 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4() { _start: { lean_object* x_1; @@ -1107,13 +1615,13 @@ x_1 = lean_mk_string_from_bytes("print end position of each message in addition return x_1; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 0; -x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3; -x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4; +x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3; +x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -1122,24 +1630,24 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6() { +static lean_object* _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1; -x_2 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2; -x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1; +x_1 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1; +x_2 = l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2; +x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2; -x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5; -x_4 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6; +x_2 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2; +x_3 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5; +x_4 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6; x_5 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(x_2, x_3, x_4, x_1); return x_5; } @@ -1580,9 +2088,12 @@ return x_37; LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___at_Lean_Language_reportMessages___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l_Lean_PersistentArray_forM___at_Lean_Language_reportMessages___spec__2(x_2, x_1, x_3); -return x_4; +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Lean_PersistentArray_forM___at_Lean_Language_reportMessages___spec__2(x_2, x_4, x_3); +return x_5; } } LEAN_EXPORT lean_object* l_Functor_mapRev___at_Lean_Language_reportMessages___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -1767,7 +2278,7 @@ if (x_3 == 0) lean_object* x_5; lean_object* x_6; x_5 = lean_alloc_closure((void*)(l_Lean_Language_reportMessages___lambda__1___boxed), 3, 1); lean_closure_set(x_5, 0, x_2); -x_6 = l_Lean_PersistentArray_forM___at_Lean_Language_reportMessages___spec__2(x_5, x_1, x_4); +x_6 = l_Lean_MessageLog_forM___at_Lean_Language_reportMessages___spec__1(x_1, x_5, x_4); return x_6; } else @@ -1775,7 +2286,7 @@ else lean_object* x_7; lean_object* x_8; lean_dec(x_2); x_7 = l_Lean_Language_reportMessages___closed__1; -x_8 = l_Lean_PersistentArray_forM___at_Lean_Language_reportMessages___spec__2(x_7, x_1, x_4); +x_8 = l_Lean_MessageLog_forM___at_Lean_Language_reportMessages___spec__1(x_1, x_7, x_4); return x_8; } } @@ -2394,7 +2905,7 @@ x_11 = l_Lean_Language_diagnosticsOfHeaderError___closed__2; x_12 = l_Lean_Language_diagnosticsOfHeaderError___closed__1; x_13 = 0; x_14 = 2; -x_15 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3; +x_15 = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3; x_16 = lean_alloc_ctor(0, 5, 2); lean_ctor_set(x_16, 0, x_11); lean_ctor_set(x_16, 1, x_12); @@ -2404,7 +2915,7 @@ lean_ctor_set(x_16, 4, x_10); lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_13); lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_14); x_17 = l_Lean_MessageLog_empty; -x_18 = l_Lean_PersistentArray_push___rarg(x_17, x_16); +x_18 = l_Lean_MessageLog_add(x_16, x_17); x_19 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_18, x_3); return x_19; } @@ -2758,6 +3269,8 @@ l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__4 = _init_l_Lean_Lan lean_mark_persistent(l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__4); l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5 = _init_l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5(); lean_mark_persistent(l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__5); +l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6 = _init_l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6(); +lean_mark_persistent(l_Lean_Language_Snapshot_instInhabitedDiagnostics___closed__6); l_Lean_Language_Snapshot_instInhabitedDiagnostics = _init_l_Lean_Language_Snapshot_instInhabitedDiagnostics(); lean_mark_persistent(l_Lean_Language_Snapshot_instInhabitedDiagnostics); l_Lean_Language_Snapshot_Diagnostics_empty___closed__1 = _init_l_Lean_Language_Snapshot_Diagnostics_empty___closed__1(); @@ -2771,35 +3284,43 @@ l_Lean_Language_instInhabitedSnapshot___closed__1 = _init_l_Lean_Language_instIn lean_mark_persistent(l_Lean_Language_instInhabitedSnapshot___closed__1); l_Lean_Language_instInhabitedSnapshot = _init_l_Lean_Language_instInhabitedSnapshot(); lean_mark_persistent(l_Lean_Language_instInhabitedSnapshot); +l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1 = _init_l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Language_withAlwaysResolvedPromise___rarg___lambda__3___closed__1); +l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1 = _init_l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1(); +lean_mark_persistent(l_Lean_Language_withAlwaysResolvedPromise___rarg___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Language_withAlwaysResolvedPromises___spec__2___rarg___lambda__1___closed__1); +l_Lean_Language_withAlwaysResolvedPromises___rarg___boxed__const__1 = _init_l_Lean_Language_withAlwaysResolvedPromises___rarg___boxed__const__1(); +lean_mark_persistent(l_Lean_Language_withAlwaysResolvedPromises___rarg___boxed__const__1); l_Lean_Language_instInhabitedSnapshotTree___closed__1 = _init_l_Lean_Language_instInhabitedSnapshotTree___closed__1(); lean_mark_persistent(l_Lean_Language_instInhabitedSnapshotTree___closed__1); l_Lean_Language_instInhabitedSnapshotTree = _init_l_Lean_Language_instInhabitedSnapshotTree(); lean_mark_persistent(l_Lean_Language_instInhabitedSnapshotTree); -l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1(); -lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__1); -l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2(); -lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__2); -l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3(); -lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__3); -l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4(); -lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728____closed__4); -l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_ = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_(); -lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_728_); +l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1(); +lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__1); +l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2(); +lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__2); +l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3(); +lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__3); +l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4 = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4(); +lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951____closed__4); +l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_ = _init_l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_(); +lean_mark_persistent(l_Lean_Language_instImpl____x40_Lean_Language_Basic___hyg_951_); l_Lean_Language_instTypeNameSnapshotLeaf = _init_l_Lean_Language_instTypeNameSnapshotLeaf(); lean_mark_persistent(l_Lean_Language_instTypeNameSnapshotLeaf); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__1); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__2); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__3); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__4); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__5); -l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6(); -lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938____closed__6); -if (builtin) {res = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_938_(lean_io_mk_world()); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__1); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__2); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__3); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__4); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__5); +l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6 = _init_l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6(); +lean_mark_persistent(l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161____closed__6); +if (builtin) {res = l_Lean_Language_initFn____x40_Lean_Language_Basic___hyg_1161_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Language_printMessageEndPos = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Language_printMessageEndPos); diff --git a/stage0/stdlib/Lean/Language/Lean.c b/stage0/stdlib/Lean/Language/Lean.c index 9ae99bdc19..a2789b63c8 100644 --- a/stage0/stdlib/Lean/Language/Lean.c +++ b/stage0/stdlib/Lean/Language/Lean.c @@ -14,118 +14,93 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_Language_Lean_process(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71_(lean_object*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5; -static lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1; LEAN_EXPORT uint32_t l_Lean_Language_Lean_SetupImportsResult_trustLevel___default; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___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*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7; -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Language_SnapshotTask_cancel___rarg(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -size_t lean_usize_shift_right(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__1; LEAN_EXPORT uint8_t l_Lean_Language_Lean_HeaderProcessedSnapshot_isFatal___default(lean_object*); lean_object* l_IO_mkRef___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_cancel___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot(lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__10; static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__4; static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__8; -lean_object* lean_io_check_canceled(lean_object*); lean_object* l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_DynamicSnapshot_ofTyped___at_Lean_Language_Lean_process_doElab___spec__5(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__7; lean_object* lean_io_promise_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_data___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7(lean_object*, size_t, size_t, lean_object*); lean_object* lean_get_set_stdout(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__1; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Language_Lean_process_processHeader___spec__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__5; static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__4; LEAN_EXPORT lean_object* l_Lean_Language_Lean_waitForFinalEnv_x3f(lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__7; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__1(lean_object*, lean_object*); -uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_List_mapTR_loop___at_Lean_Language_Lean_process_processHeader___spec__1___closed__3; lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l___private_Init_GetElem_0__outOfBounds___rarg(lean_object*); lean_object* l_Lean_Language_SnapshotTask_ofIO___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_parseCmd___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__3; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_cancel(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___boxed(lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Language_Lean_process_processHeader___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_next_x3f(lean_object*); -lean_object* l_List_get___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); lean_object* lean_io_promise_result(lean_object*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1; -lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__2; extern lean_object* l_Lean_maxRecDepth; lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__2; -static lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__2; lean_object* lean_string_utf8_byte_size(lean_object*); -static lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_validate_utf8(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_data(lean_object*); +static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot; +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_promise_resolve(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__11; extern lean_object* l_Lean_Elab_instInhabitedInfoTree; -size_t lean_usize_of_nat(lean_object*); uint8_t l_String_isEmpty(lean_object*); uint8_t l_Lean_Parser_isTerminalCommand(lean_object*); +lean_object* l_IO_CancelToken_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_waitForFinalEnv_x3f_goCmd(lean_object*); static lean_object* l_List_mapTR_loop___at_Lean_Language_Lean_process_processHeader___spec__1___closed__1; -LEAN_EXPORT uint8_t l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__8; -uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__8; -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__6; extern lean_object* l_ByteArray_empty; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___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* l_List_toPArray_x27___rarg(lean_object*); lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4; static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__12; static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__2; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_next_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeHeaderParsedSnapshot___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1; LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO(lean_object*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6; static lean_object* l_List_mapTR_loop___at_Lean_Language_Lean_process_processHeader___spec__1___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,35 +109,27 @@ LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__1( lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftProcessingTLeanProcessingT(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___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_Language_Lean_process_doElab___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult(lean_object*); lean_object* l_String_firstDiffPos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__3; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); -uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__5; lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); lean_object* l_Array_toPArray_x27___rarg(lean_object*); -lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_nextCmdSnap_x3f___boxed(lean_object*); lean_object* l_panic___at_String_fromUTF8_x21___spec__1(lean_object*); lean_object* lean_environment_set_main_module(lean_object*, lean_object*); -lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Language_diagnosticsOfHeaderError(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__6; -extern lean_object* l_Task_Priority_default; -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___lambda__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_Language_Lean_process_doElab___spec__8(lean_object*, lean_object*); -uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_ofBuffer(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageLog_empty; @@ -177,113 +144,85 @@ lean_object* lean_get_set_stderr(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___closed__1; extern lean_object* l_Lean_Language_Snapshot_Diagnostics_empty; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_withLoggingExceptions(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot___closed__1; lean_object* lean_string_from_utf8(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___lambda__1(lean_object*); -lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeHeaderParsedSnapshot(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot(lean_object*); static lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___closed__2; -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_pushOpt___rarg(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Language_Lean_HeaderParsedSnapshot_isFatal___default(lean_object*); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__7; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6; +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed(lean_object*, lean_object*, 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_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_isBeforeEditPos(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__4; -lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__8(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_Language_Lean_process_parseHeader___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_stderrAsMessages; lean_object* l_Lean_Language_SnapshotTask_get_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_Language_SnapshotTask_bindIO___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_get_set_stdin(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Language_Lean_process_processHeader___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__5; static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__9; LEAN_EXPORT lean_object* l_Lean_Language_Lean_isBeforeEditPos___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_parseCmd___closed__2; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__4; static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__3; -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__3___closed__6; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__9(lean_object*, size_t, size_t, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_pushOpt(lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__2; -size_t lean_usize_sub(size_t, size_t); extern lean_object* l_Lean_Elab_Command_instInhabitedScope; LEAN_EXPORT lean_object* l_Lean_Language_Lean_HeaderProcessedSnapshot_isFatal___default___boxed(lean_object*); +static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__4; uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_isFatal___default___boxed(lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at_Lean_Language_Lean_process_doElab___spec__4(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_hasMissing(lean_object*); static lean_object* l_Lean_Language_Lean_process_doElab___lambda__2___closed__1; -size_t lean_usize_add(size_t, size_t); static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__5; lean_object* l_Lean_Language_SnapshotTask_map___rarg(lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__5; lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__3; -size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Name_isSuffixOf(lean_object*, lean_object*); -lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); -uint8_t lean_nat_dec_le(lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Parser_parseCommand(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Language_Lean_showPartialSyntaxErrors; -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__1; -static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1; +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__7(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_Language_Lean_process_processHeader___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions(lean_object*); -lean_object* l_Lean_Elab_Command_catchExceptions(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___closed__4; static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__1; static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1; -size_t lean_usize_land(size_t, size_t); -static lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1; +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_nextCmdSnap_x3f(lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at_Lean_Language_Lean_process_doElab___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___lambda__1(lean_object*); static lean_object* l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___closed__1; lean_object* l_Lean_Language_SnapshotTask_pure___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Language_instTypeNameSnapshotLeaf; +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_pushOpt___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -397,77 +336,6 @@ x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___ return x_5; } } -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("showPartialSyntaxErrors", 23); -return x_1; -} -} -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("", 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("show elaboration errors from partial syntax trees (i.e. after parser recovery)", 78); -return x_1; -} -} -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5() { -_start: -{ -uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 0; -x_2 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3; -x_3 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4; -x_4 = lean_box(x_1); -x_5 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_2); -lean_ctor_set(x_5, 2, x_3); -return x_5; -} -} -static lean_object* _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__6; -x_2 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_36____closed__7; -x_3 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1; -x_4 = l_Lean_Name_mkStr4(x_1, x_2, x_1, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71_(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2; -x_3 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5; -x_4 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6; -x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_7____spec__1(x_2, x_3, x_4, x_1); -return x_5; -} -} static lean_object* _init_l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot___closed__1() { _start: { @@ -523,7 +391,7 @@ lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_next_x3f(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_nextCmdSnap_x3f(lean_object* x_1) { _start: { lean_object* x_2; @@ -532,11 +400,11 @@ lean_inc(x_2); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_next_x3f___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_nextCmdSnap_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Language_Lean_CommandParsedSnapshot_next_x3f(x_1); +x_2 = l_Lean_Language_Lean_CommandParsedSnapshot_nextCmdSnap_x3f(x_1); lean_dec(x_1); return x_2; } @@ -771,179 +639,6 @@ x_1 = l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__ return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_cancel___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = l_Lean_Language_Lean_CommandParsedSnapshot_cancel(x_1, x_2); -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_3, 0, x_6); -return x_3; -} -else -{ -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); -lean_inc(x_8); -lean_inc(x_7); -lean_dec(x_3); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -} -} -static lean_object* _init_l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_CommandParsedSnapshot_cancel___lambda__1), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_CommandParsedSnapshot_cancel(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; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_3, 4); -lean_inc(x_5); -lean_dec(x_3); -x_6 = l_Lean_Language_SnapshotTask_cancel___rarg(x_5, x_2); -lean_dec(x_5); -if (lean_obj_tag(x_6) == 0) -{ -if (lean_obj_tag(x_4) == 0) -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -lean_dec(x_8); -x_9 = lean_box(0); -lean_ctor_set(x_6, 0, x_9); -return x_6; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_6, 1); -lean_inc(x_10); -lean_dec(x_6); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -return x_12; -} -} -else -{ -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; -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -lean_dec(x_6); -x_14 = lean_ctor_get(x_4, 0); -lean_inc(x_14); -lean_dec(x_4); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1; -x_17 = l_Task_Priority_default; -x_18 = 1; -x_19 = lean_io_map_task(x_16, x_15, x_17, x_18, x_13); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -lean_dec(x_21); -x_22 = lean_box(0); -lean_ctor_set(x_19, 0, x_22); -return x_19; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) -{ -return x_19; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_19, 0); -x_28 = lean_ctor_get(x_19, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_19); -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; -} -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_4); -x_30 = !lean_is_exclusive(x_6); -if (x_30 == 0) -{ -return x_6; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_6, 0); -x_32 = lean_ctor_get(x_6, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_6); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} LEAN_EXPORT uint8_t l_Lean_Language_Lean_HeaderProcessedSnapshot_isFatal___default(lean_object* x_1) { _start: { @@ -1440,6 +1135,155 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Language_Lean_instMonadLiftProcessingTLe return x_3; } } +LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run___rarg(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_IO_CancelToken_new(x_5); +if (lean_obj_tag(x_2) == 0) +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +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_box(0); +x_10 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +lean_ctor_set(x_10, 2, x_3); +lean_ctor_set(x_10, 3, x_7); +x_11 = lean_apply_2(x_1, x_10, x_8); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) +{ +return x_6; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_6, 0); +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_6); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +else +{ +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_2); +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; +x_17 = lean_ctor_get(x_2, 0); +x_18 = lean_ctor_get(x_6, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_6, 1); +lean_inc(x_19); +lean_dec(x_6); +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_4, 0); +lean_inc(x_21); +x_22 = l_String_firstDiffPos(x_20, x_21); +lean_dec(x_21); +lean_dec(x_20); +lean_ctor_set(x_2, 0, x_22); +x_23 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_23, 0, x_4); +lean_ctor_set(x_23, 1, x_2); +lean_ctor_set(x_23, 2, x_3); +lean_ctor_set(x_23, 3, x_18); +x_24 = lean_apply_2(x_1, x_23, x_19); +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_25 = lean_ctor_get(x_2, 0); +lean_inc(x_25); +lean_dec(x_2); +x_26 = lean_ctor_get(x_6, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_6, 1); +lean_inc(x_27); +lean_dec(x_6); +x_28 = lean_ctor_get(x_25, 0); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_ctor_get(x_4, 0); +lean_inc(x_29); +x_30 = l_String_firstDiffPos(x_28, x_29); +lean_dec(x_29); +lean_dec(x_28); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_32, 2, x_3); +lean_ctor_set(x_32, 3, x_26); +x_33 = lean_apply_2(x_1, x_32, x_27); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_6); +if (x_34 == 0) +{ +return x_6; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_6, 0); +x_36 = lean_ctor_get(x_6, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_6); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_Lean_LeanProcessingM_run(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Language_Lean_LeanProcessingM_run___rarg), 5, 0); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Language_Lean_isBeforeEditPos(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2499,492 +2343,6 @@ lean_ctor_set(x_6, 1, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___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_eq(x_2, x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; -x_6 = lean_array_uget(x_1, x_2); -x_7 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_Language_Lean_process_doElab___spec__8(x_6, x_4); -x_8 = 1; -x_9 = lean_usize_add(x_2, x_8); -x_2 = x_9; -x_4 = x_7; -goto _start; -} -else -{ -return x_4; -} -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1; -x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Tactic", 6); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4; -x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("_traceMsg", 9); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT uint8_t l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; -x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3; -x_3 = lean_name_eq(x_1, x_2); -if (x_3 == 0) -{ -lean_object* x_4; uint8_t x_5; -x_4 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6; -x_5 = lean_name_eq(x_1, x_4); -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8; -x_7 = l_Lean_Name_isSuffixOf(x_6, x_1); -return x_7; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -else -{ -uint8_t x_9; -x_9 = 1; -return x_9; -} -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___boxed), 1, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(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_eq(x_2, x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t 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, 4); -lean_inc(x_7); -x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1; -x_9 = l_Lean_MessageData_hasTag(x_8, x_7); -x_10 = 1; -x_11 = lean_usize_add(x_2, x_10); -if (x_9 == 0) -{ -lean_dec(x_6); -x_2 = x_11; -goto _start; -} -else -{ -lean_object* x_13; -x_13 = l_Lean_PersistentArray_push___rarg(x_4, x_6); -x_2 = x_11; -x_4 = x_13; -goto _start; -} -} -else -{ -return x_4; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_Language_Lean_process_doElab___spec__8(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -lean_dec(x_4); -lean_dec(x_3); -return x_2; -} -else -{ -uint8_t x_7; -x_7 = lean_nat_dec_le(x_4, x_4); -if (x_7 == 0) -{ -lean_dec(x_4); -lean_dec(x_3); -return x_2; -} -else -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = 0; -x_9 = lean_usize_of_nat(x_4); -lean_dec(x_4); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__9(x_3, x_8, x_9, x_2); -lean_dec(x_3); -return x_10; -} -} -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -lean_dec(x_1); -x_12 = lean_array_get_size(x_11); -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_nat_dec_lt(x_13, x_12); -if (x_14 == 0) -{ -lean_dec(x_12); -lean_dec(x_11); -return x_2; -} -else -{ -uint8_t x_15; -x_15 = lean_nat_dec_le(x_12, x_12); -if (x_15 == 0) -{ -lean_dec(x_12); -lean_dec(x_11); -return x_2; -} -else -{ -size_t x_16; size_t x_17; lean_object* x_18; -x_16 = 0; -x_17 = lean_usize_of_nat(x_12); -lean_dec(x_12); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_11, x_16, x_17, x_2); -lean_dec(x_11); -return x_18; -} -} -} -} -} -static lean_object* _init_l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_instInhabitedPersistentArrayNode(lean_box(0)); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_5; size_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_usize_shift_right(x_2, x_3); -x_7 = lean_usize_to_nat(x_6); -x_8 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1; -x_9 = lean_array_get(x_8, x_5, x_7); -x_10 = 1; -x_11 = lean_usize_shift_left(x_10, x_3); -x_12 = lean_usize_sub(x_11, x_10); -x_13 = lean_usize_land(x_2, x_12); -x_14 = 5; -x_15 = lean_usize_sub(x_3, x_14); -x_16 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7(x_9, x_13, x_15, x_4); -lean_dec(x_9); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_7, x_17); -lean_dec(x_7); -x_19 = lean_array_get_size(x_5); -x_20 = lean_nat_dec_lt(x_18, x_19); -if (x_20 == 0) -{ -lean_dec(x_19); -lean_dec(x_18); -return x_16; -} -else -{ -uint8_t x_21; -x_21 = lean_nat_dec_le(x_19, x_19); -if (x_21 == 0) -{ -lean_dec(x_19); -lean_dec(x_18); -return x_16; -} -else -{ -size_t x_22; size_t x_23; lean_object* x_24; -x_22 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_23 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_24 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__9(x_5, x_22, x_23, x_16); -return x_24; -} -} -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_1, 0); -x_26 = lean_usize_to_nat(x_2); -x_27 = lean_array_get_size(x_25); -x_28 = lean_nat_dec_lt(x_26, x_27); -if (x_28 == 0) -{ -lean_dec(x_27); -lean_dec(x_26); -return x_4; -} -else -{ -uint8_t x_29; -x_29 = lean_nat_dec_le(x_27, x_27); -if (x_29 == 0) -{ -lean_dec(x_27); -lean_dec(x_26); -return x_4; -} -else -{ -size_t x_30; size_t x_31; lean_object* x_32; -x_30 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_31 = lean_usize_of_nat(x_27); -lean_dec(x_27); -x_32 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_25, x_30, x_31, x_4); -return x_32; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___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_unsigned_to_nat(0u); -x_5 = lean_nat_dec_eq(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_1, 3); -lean_inc(x_6); -x_7 = lean_nat_dec_le(x_6, x_3); -if (x_7 == 0) -{ -lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_6); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = lean_usize_of_nat(x_3); -lean_dec(x_3); -x_10 = lean_ctor_get_usize(x_1, 4); -x_11 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7(x_8, x_9, x_10, x_2); -lean_dec(x_8); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -lean_dec(x_1); -x_13 = lean_array_get_size(x_12); -x_14 = lean_nat_dec_lt(x_4, x_13); -if (x_14 == 0) -{ -lean_dec(x_13); -lean_dec(x_12); -return x_11; -} -else -{ -uint8_t x_15; -x_15 = lean_nat_dec_le(x_13, x_13); -if (x_15 == 0) -{ -lean_dec(x_13); -lean_dec(x_12); -return x_11; -} -else -{ -size_t x_16; size_t x_17; lean_object* x_18; -x_16 = 0; -x_17 = lean_usize_of_nat(x_13); -lean_dec(x_13); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_12, x_16, x_17, x_11); -lean_dec(x_12); -return x_18; -} -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); -lean_dec(x_1); -x_20 = lean_nat_sub(x_3, x_6); -lean_dec(x_6); -lean_dec(x_3); -x_21 = lean_array_get_size(x_19); -x_22 = lean_nat_dec_lt(x_20, x_21); -if (x_22 == 0) -{ -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -return x_2; -} -else -{ -uint8_t x_23; -x_23 = lean_nat_dec_le(x_21, x_21); -if (x_23 == 0) -{ -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -return x_2; -} -else -{ -size_t x_24; size_t x_25; lean_object* x_26; -x_24 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_25 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_19, x_24, x_25, x_2); -lean_dec(x_19); -return x_26; -} -} -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_3); -x_27 = lean_ctor_get(x_1, 0); -lean_inc(x_27); -x_28 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_Language_Lean_process_doElab___spec__8(x_27, x_2); -x_29 = lean_ctor_get(x_1, 1); -lean_inc(x_29); -lean_dec(x_1); -x_30 = lean_array_get_size(x_29); -x_31 = lean_nat_dec_lt(x_4, x_30); -if (x_31 == 0) -{ -lean_dec(x_30); -lean_dec(x_29); -return x_28; -} -else -{ -uint8_t x_32; -x_32 = lean_nat_dec_le(x_30, x_30); -if (x_32 == 0) -{ -lean_dec(x_30); -lean_dec(x_29); -return x_28; -} -else -{ -size_t x_33; size_t x_34; lean_object* x_35; -x_33 = 0; -x_34 = lean_usize_of_nat(x_30); -lean_dec(x_30); -x_35 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_29, x_33, x_34, x_28); -lean_dec(x_29); -return x_35; -} -} -} -} -} LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -3218,50 +2576,7 @@ return x_66; } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___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) { -_start: -{ -uint8_t x_10; -x_10 = l_String_isEmpty(x_3); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_11 = l_Lean_FileMap_toPosition(x_4, x_5); -lean_dec(x_5); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_13, 0, x_3); -x_14 = l_Lean_MessageData_ofFormat(x_13); -x_15 = 0; -x_16 = 0; -x_17 = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3; -x_18 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_18, 0, x_6); -lean_ctor_set(x_18, 1, x_11); -lean_ctor_set(x_18, 2, x_12); -lean_ctor_set(x_18, 3, x_17); -lean_ctor_set(x_18, 4, x_14); -lean_ctor_set_uint8(x_18, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_18, sizeof(void*)*5 + 1, x_16); -x_19 = l_Lean_PersistentArray_push___rarg(x_7, x_18); -x_20 = lean_box(0); -x_21 = l_Lean_Language_Lean_process_doElab___lambda__2(x_1, x_2, x_19, x_20, x_9); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_box(0); -x_23 = l_Lean_Language_Lean_process_doElab___lambda__2(x_1, x_2, x_7, x_22, x_9); -return x_23; -} -} -} -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -3269,7 +2584,7 @@ x_1 = l_Lean_Language_Lean_stderrAsMessages; return x_1; } } -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -3277,21 +2592,21 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__3() { +static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__2; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__4() { +static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__3; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__3; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3299,966 +2614,764 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__7() { -_start: -{ -size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 5; -x_2 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__6; -x_3 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__5; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_4); -lean_ctor_set(x_5, 3, x_4); -lean_ctor_set_usize(x_5, 4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__8() { +static lean_object* _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__5() { _start: { lean_object* x_1; -x_1 = l_Lean_Language_Lean_showPartialSyntaxErrors; +x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___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, uint8_t x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___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_10; -x_10 = lean_st_ref_get(x_1, x_9); -if (lean_obj_tag(x_10) == 0) +lean_object* x_9; +x_9 = lean_st_ref_get(x_1, x_8); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); 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_11, x_12); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_9); +x_12 = lean_st_mk_ref(x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -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; uint8_t x_30; lean_object* x_31; -x_14 = lean_ctor_get(x_13, 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; uint8_t 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; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_dec(x_12); +x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); -lean_dec(x_2); -x_17 = lean_ctor_get(x_16, 1); +x_17 = lean_ctor_get(x_15, 2); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 2); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_box(0); -lean_inc(x_14); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_14); +lean_dec(x_15); +x_18 = lean_box(0); +lean_inc(x_13); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_13); lean_inc(x_3); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_3); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_firstFrontendMacroScope; -x_24 = lean_box(0); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_3); +x_21 = lean_ctor_get(x_2, 3); +lean_inc(x_21); +lean_dec(x_2); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_firstFrontendMacroScope; +x_25 = lean_box(0); +x_26 = 0; lean_inc(x_4); -lean_inc(x_18); lean_inc(x_17); -x_25 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_18); -lean_ctor_set(x_25, 2, x_22); -lean_ctor_set(x_25, 3, x_4); -lean_ctor_set(x_25, 4, x_19); -lean_ctor_set(x_25, 5, x_23); -lean_ctor_set(x_25, 6, x_24); -lean_ctor_set(x_25, 7, x_20); -lean_ctor_set(x_25, 8, x_21); -lean_inc(x_5); -x_26 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__1), 4, 1); -lean_closure_set(x_26, 0, x_5); -lean_inc(x_8); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Command_catchExceptions), 4, 3); -lean_closure_set(x_27, 0, x_26); -lean_closure_set(x_27, 1, x_25); -lean_closure_set(x_27, 2, x_8); -x_28 = lean_ctor_get(x_6, 1); -lean_inc(x_28); -lean_dec(x_6); -x_29 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__1; -x_30 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_28, x_29); -lean_dec(x_28); -x_31 = l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1(x_27, x_30, x_15); -if (lean_obj_tag(x_31) == 0) +lean_inc(x_16); +x_27 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_27, 0, x_16); +lean_ctor_set(x_27, 1, x_17); +lean_ctor_set(x_27, 2, x_23); +lean_ctor_set(x_27, 3, x_4); +lean_ctor_set(x_27, 4, x_18); +lean_ctor_set(x_27, 5, x_24); +lean_ctor_set(x_27, 6, x_25); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_22); +lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_26); +x_28 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__1), 4, 1); +lean_closure_set(x_28, 0, x_5); +lean_inc(x_7); +x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Command_withLoggingExceptions), 4, 3); +lean_closure_set(x_29, 0, x_28); +lean_closure_set(x_29, 1, x_27); +lean_closure_set(x_29, 2, x_7); +x_30 = lean_ctor_get(x_6, 1); +x_31 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__1; +x_32 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_30, x_31); +x_33 = l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1(x_29, x_32, x_14); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_32; lean_object* x_33; uint8_t 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_is_exclusive(x_32); -if (x_34 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_32, 0); -x_36 = lean_ctor_get(x_32, 1); -lean_dec(x_36); -x_37 = lean_st_ref_get(x_14, x_33); -lean_dec(x_14); -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 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_34, 0); +x_38 = lean_ctor_get(x_34, 1); lean_dec(x_38); -x_41 = lean_st_ref_take(x_1, x_39); -if (lean_obj_tag(x_41) == 0) +x_39 = lean_st_ref_get(x_13, x_35); +lean_dec(x_13); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); -lean_dec(x_41); -x_43 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__4; -lean_ctor_set(x_32, 1, x_43); -lean_ctor_set(x_32, 0, x_40); -x_44 = lean_st_ref_set(x_1, x_32, x_42); -lean_dec(x_1); -if (lean_obj_tag(x_44) == 0) +lean_dec(x_40); +x_43 = lean_st_ref_take(x_1, x_41); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -x_46 = lean_st_ref_get(x_8, x_45); -lean_dec(x_8); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__4; +lean_ctor_set(x_34, 1, x_45); +lean_ctor_set(x_34, 0, x_42); +x_46 = lean_st_ref_set(x_1, x_34, x_44); +lean_dec(x_1); 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; uint8_t x_52; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); lean_dec(x_46); -x_49 = lean_ctor_get(x_47, 1); +x_48 = lean_st_ref_get(x_7, x_47); +lean_dec(x_7); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); -x_50 = lean_ctor_get(x_47, 2); +x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); -x_51 = l_List_lengthTRAux___rarg(x_50, x_22); -x_52 = lean_nat_dec_lt(x_22, x_51); -lean_dec(x_51); +lean_dec(x_48); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +x_52 = l_String_isEmpty(x_37); if (x_52 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_50); -x_53 = l_Lean_Elab_Command_instInhabitedScope; -x_54 = l___private_Init_GetElem_0__outOfBounds___rarg(x_53); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__8; -x_57 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_55, x_56); -lean_dec(x_55); -if (x_57 == 0) -{ -if (x_7 == 0) -{ -lean_object* x_58; lean_object* x_59; -lean_dec(x_5); -x_58 = lean_box(0); -x_59 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_58, x_48); +lean_object* x_53; lean_object* x_54; 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_53 = l_Lean_FileMap_toPosition(x_17, x_4); +lean_dec(x_4); +x_54 = lean_box(0); +x_55 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_55, 0, x_37); +x_56 = l_Lean_MessageData_ofFormat(x_55); +x_57 = 0; +x_58 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__5; +x_59 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_59, 0, x_16); +lean_ctor_set(x_59, 1, x_53); +lean_ctor_set(x_59, 2, x_54); +lean_ctor_set(x_59, 3, x_58); +lean_ctor_set(x_59, 4, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*5, x_26); +lean_ctor_set_uint8(x_59, sizeof(void*)*5 + 1, x_57); +x_60 = l_Lean_MessageLog_add(x_59, x_51); +x_61 = lean_box(0); +x_62 = l_Lean_Language_Lean_process_doElab___lambda__2(x_49, x_3, x_60, x_61, x_50); lean_dec(x_3); -return x_59; +return x_62; } else { -lean_object* x_60; uint8_t x_61; -x_60 = l_Lean_Syntax_hasMissing(x_5); -x_61 = lean_unbox(x_60); -lean_dec(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_box(0); -x_63 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_62, x_48); -lean_dec(x_3); -return x_63; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__7; -x_65 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_49, x_64, x_22); -x_66 = lean_box(0); -x_67 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_65, x_66, x_48); -lean_dec(x_3); -return x_67; -} -} -} -else -{ -lean_object* x_68; lean_object* x_69; -lean_dec(x_5); -x_68 = lean_box(0); -x_69 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_68, x_48); -lean_dec(x_3); -return x_69; -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_70 = l_List_get___rarg(x_50, x_22); -lean_dec(x_50); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__8; -x_73 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_71, x_72); -lean_dec(x_71); -if (x_73 == 0) -{ -if (x_7 == 0) -{ -lean_object* x_74; lean_object* x_75; -lean_dec(x_5); -x_74 = lean_box(0); -x_75 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_74, x_48); -lean_dec(x_3); -return x_75; -} -else -{ -lean_object* x_76; uint8_t x_77; -x_76 = l_Lean_Syntax_hasMissing(x_5); -x_77 = lean_unbox(x_76); -lean_dec(x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; -x_78 = lean_box(0); -x_79 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_78, x_48); -lean_dec(x_3); -return x_79; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__7; -x_81 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_49, x_80, x_22); -x_82 = lean_box(0); -x_83 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_81, x_82, x_48); -lean_dec(x_3); -return x_83; -} -} -} -else -{ -lean_object* x_84; lean_object* x_85; -lean_dec(x_5); -x_84 = lean_box(0); -x_85 = l_Lean_Language_Lean_process_doElab___lambda__3(x_47, x_3, x_35, x_18, x_4, x_17, x_49, x_84, x_48); -lean_dec(x_3); -return x_85; -} -} -} -else -{ -uint8_t x_86; -lean_dec(x_35); -lean_dec(x_18); +lean_object* x_63; lean_object* x_64; +lean_dec(x_37); lean_dec(x_17); -lean_dec(x_5); +lean_dec(x_16); +lean_dec(x_4); +x_63 = lean_box(0); +x_64 = l_Lean_Language_Lean_process_doElab___lambda__2(x_49, x_3, x_51, x_63, x_50); +lean_dec(x_3); +return x_64; +} +} +else +{ +uint8_t x_65; +lean_dec(x_37); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_4); lean_dec(x_3); -x_86 = !lean_is_exclusive(x_46); -if (x_86 == 0) +x_65 = !lean_is_exclusive(x_48); +if (x_65 == 0) +{ +return x_48; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_48, 0); +x_67 = lean_ctor_get(x_48, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_48); +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 +{ +uint8_t x_69; +lean_dec(x_37); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_69 = !lean_is_exclusive(x_46); +if (x_69 == 0) { return x_46; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_46, 0); -x_88 = lean_ctor_get(x_46, 1); -lean_inc(x_88); -lean_inc(x_87); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_46, 0); +x_71 = lean_ctor_get(x_46, 1); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_46); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; +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 { -uint8_t x_90; -lean_dec(x_35); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_90 = !lean_is_exclusive(x_44); -if (x_90 == 0) -{ -return x_44; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_44, 0); -x_92 = lean_ctor_get(x_44, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_44); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -else -{ -uint8_t x_94; -lean_dec(x_40); -lean_free_object(x_32); -lean_dec(x_35); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_94 = !lean_is_exclusive(x_41); -if (x_94 == 0) -{ -return x_41; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_41, 0); -x_96 = lean_ctor_get(x_41, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_41); -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 -{ -uint8_t x_98; -lean_free_object(x_32); -lean_dec(x_35); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_98 = !lean_is_exclusive(x_37); -if (x_98 == 0) -{ -return x_37; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_37, 0); -x_100 = lean_ctor_get(x_37, 1); -lean_inc(x_100); -lean_inc(x_99); +uint8_t x_73; +lean_dec(x_42); +lean_free_object(x_34); lean_dec(x_37); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; -} -} -} -else -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_32, 0); -lean_inc(x_102); -lean_dec(x_32); -x_103 = lean_st_ref_get(x_14, x_33); -lean_dec(x_14); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_st_ref_take(x_1, x_105); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__4; -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_106); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_st_ref_set(x_1, x_110, x_108); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -if (lean_obj_tag(x_111) == 0) +x_73 = !lean_is_exclusive(x_43); +if (x_73 == 0) { -lean_object* x_112; lean_object* x_113; -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -lean_dec(x_111); -x_113 = lean_st_ref_get(x_8, x_112); -lean_dec(x_8); -if (lean_obj_tag(x_113) == 0) +return x_43; +} +else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_114 = lean_ctor_get(x_113, 0); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_43, 0); +x_75 = lean_ctor_get(x_43, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_43); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_free_object(x_34); +lean_dec(x_37); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_39); +if (x_77 == 0) +{ +return x_39; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_39, 0); +x_79 = lean_ctor_get(x_39, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_39); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_34, 0); +lean_inc(x_81); +lean_dec(x_34); +x_82 = lean_st_ref_get(x_13, x_35); +lean_dec(x_13); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +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, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_st_ref_take(x_1, x_84); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +x_88 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__4; +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_85); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_st_ref_set(x_1, x_89, x_87); +lean_dec(x_1); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_st_ref_get(x_7, x_91); +lean_dec(x_7); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +x_96 = l_String_isEmpty(x_81); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_97 = l_Lean_FileMap_toPosition(x_17, x_4); +lean_dec(x_4); +x_98 = lean_box(0); +x_99 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_99, 0, x_81); +x_100 = l_Lean_MessageData_ofFormat(x_99); +x_101 = 0; +x_102 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__5; +x_103 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_103, 0, x_16); +lean_ctor_set(x_103, 1, x_97); +lean_ctor_set(x_103, 2, x_98); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_100); +lean_ctor_set_uint8(x_103, sizeof(void*)*5, x_26); +lean_ctor_set_uint8(x_103, sizeof(void*)*5 + 1, x_101); +x_104 = l_Lean_MessageLog_add(x_103, x_95); +x_105 = lean_box(0); +x_106 = l_Lean_Language_Lean_process_doElab___lambda__2(x_93, x_3, x_104, x_105, x_94); +lean_dec(x_3); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_81); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_4); +x_107 = lean_box(0); +x_108 = l_Lean_Language_Lean_process_doElab___lambda__2(x_93, x_3, x_95, x_107, x_94); +lean_dec(x_3); +return x_108; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_81); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_4); +lean_dec(x_3); +x_109 = lean_ctor_get(x_92, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_92, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_111 = x_92; +} else { + lean_dec_ref(x_92); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_110); +return x_112; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_81); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_113 = lean_ctor_get(x_90, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_90, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -x_117 = lean_ctor_get(x_114, 2); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_115 = x_90; +} else { + lean_dec_ref(x_90); + x_115 = lean_box(0); +} +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(1, 2, 0); +} else { + x_116 = x_115; +} +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_114); +return x_116; +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_85); +lean_dec(x_81); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_117 = lean_ctor_get(x_86, 0); lean_inc(x_117); -x_118 = l_List_lengthTRAux___rarg(x_117, x_22); -x_119 = lean_nat_dec_lt(x_22, x_118); -lean_dec(x_118); -if (x_119 == 0) +x_118 = lean_ctor_get(x_86, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_119 = x_86; +} else { + lean_dec_ref(x_86); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +} +else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; -lean_dec(x_117); -x_120 = l_Lean_Elab_Command_instInhabitedScope; -x_121 = l___private_Init_GetElem_0__outOfBounds___rarg(x_120); -x_122 = lean_ctor_get(x_121, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_81); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_121 = lean_ctor_get(x_82, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_82, 1); lean_inc(x_122); -lean_dec(x_121); -x_123 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__8; -x_124 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_122, x_123); -lean_dec(x_122); -if (x_124 == 0) +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_123 = x_82; +} else { + lean_dec_ref(x_82); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; +} +lean_ctor_set(x_124, 0, x_121); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else { -if (x_7 == 0) +uint8_t x_125; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_125 = !lean_is_exclusive(x_33); +if (x_125 == 0) { -lean_object* x_125; lean_object* x_126; +return x_33; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_33, 0); +x_127 = lean_ctor_get(x_33, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_33); +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; +} +} +} +else +{ +uint8_t x_129; +lean_dec(x_7); lean_dec(x_5); -x_125 = lean_box(0); -x_126 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_125, x_115); +lean_dec(x_4); lean_dec(x_3); -return x_126; +lean_dec(x_2); +lean_dec(x_1); +x_129 = !lean_is_exclusive(x_12); +if (x_129 == 0) +{ +return x_12; } else { -lean_object* x_127; uint8_t x_128; -x_127 = l_Lean_Syntax_hasMissing(x_5); -x_128 = lean_unbox(x_127); -lean_dec(x_127); -if (x_128 == 0) -{ -lean_object* x_129; lean_object* x_130; -x_129 = lean_box(0); -x_130 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_129, x_115); -lean_dec(x_3); -return x_130; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_131 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__7; -x_132 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_116, x_131, x_22); -x_133 = lean_box(0); -x_134 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_132, x_133, x_115); -lean_dec(x_3); -return x_134; +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_12, 0); +x_131 = lean_ctor_get(x_12, 1); +lean_inc(x_131); +lean_inc(x_130); +lean_dec(x_12); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } } else { -lean_object* x_135; lean_object* x_136; +uint8_t x_133; +lean_dec(x_7); lean_dec(x_5); -x_135 = lean_box(0); -x_136 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_135, x_115); +lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_133 = !lean_is_exclusive(x_9); +if (x_133 == 0) +{ +return x_9; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_9, 0); +x_135 = lean_ctor_get(x_9, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_9); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); return x_136; } } -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = l_List_get___rarg(x_117, x_22); -lean_dec(x_117); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec(x_137); -x_139 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__8; -x_140 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_138, x_139); -lean_dec(x_138); -if (x_140 == 0) -{ -if (x_7 == 0) -{ -lean_object* x_141; lean_object* x_142; -lean_dec(x_5); -x_141 = lean_box(0); -x_142 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_141, x_115); -lean_dec(x_3); -return x_142; -} -else -{ -lean_object* x_143; uint8_t x_144; -x_143 = l_Lean_Syntax_hasMissing(x_5); -x_144 = lean_unbox(x_143); -lean_dec(x_143); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; -x_145 = lean_box(0); -x_146 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_145, x_115); -lean_dec(x_3); -return x_146; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_147 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__7; -x_148 = l_Lean_PersistentArray_foldlM___at_Lean_Language_Lean_process_doElab___spec__6(x_116, x_147, x_22); -x_149 = lean_box(0); -x_150 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_148, x_149, x_115); -lean_dec(x_3); -return x_150; } } -} -else -{ -lean_object* x_151; lean_object* x_152; -lean_dec(x_5); -x_151 = lean_box(0); -x_152 = l_Lean_Language_Lean_process_doElab___lambda__3(x_114, x_3, x_102, x_18, x_4, x_17, x_116, x_151, x_115); -lean_dec(x_3); -return x_152; -} -} -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_102); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_153 = lean_ctor_get(x_113, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_113, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_155 = x_113; -} else { - lean_dec_ref(x_113); - x_155 = lean_box(0); -} -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); -} else { - x_156 = x_155; -} -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return x_156; -} -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_102); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_157 = lean_ctor_get(x_111, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_111, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_159 = x_111; -} else { - lean_dec_ref(x_111); - x_159 = lean_box(0); -} -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); -} else { - x_160 = x_159; -} -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; -} -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_106); -lean_dec(x_102); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_161 = lean_ctor_get(x_107, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_107, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_163 = x_107; -} else { - lean_dec_ref(x_107); - x_163 = lean_box(0); -} -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; -} -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_102); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_165 = lean_ctor_get(x_103, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_103, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_167 = x_103; -} else { - lean_dec_ref(x_103); - x_167 = lean_box(0); -} -if (lean_is_scalar(x_167)) { - x_168 = lean_alloc_ctor(1, 2, 0); -} else { - x_168 = x_167; -} -lean_ctor_set(x_168, 0, x_165); -lean_ctor_set(x_168, 1, x_166); -return x_168; -} -} -} -else -{ -uint8_t x_169; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_169 = !lean_is_exclusive(x_31); -if (x_169 == 0) -{ -return x_31; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_31, 0); -x_171 = lean_ctor_get(x_31, 1); -lean_inc(x_171); -lean_inc(x_170); -lean_dec(x_31); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_171); -return x_172; -} -} -} -else -{ -uint8_t x_173; -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_173 = !lean_is_exclusive(x_13); -if (x_173 == 0) -{ -return x_13; -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_13, 0); -x_175 = lean_ctor_get(x_13, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_13); -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 -{ -uint8_t x_177; -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_177 = !lean_is_exclusive(x_10); -if (x_177 == 0) -{ -return x_10; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_10, 0); -x_179 = lean_ctor_get(x_10, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_10); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -return x_180; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab(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_EXPORT lean_object* l_Lean_Language_Lean_process_doElab(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_9; lean_object* x_10; uint8_t x_11; -x_9 = 0; +uint8_t x_8; lean_object* x_9; uint8_t x_10; +x_8 = 0; lean_inc(x_1); -x_10 = l_Lean_Syntax_getRange_x3f(x_1, x_9); -x_11 = !lean_is_exclusive(x_2); -if (x_11 == 0) +x_9 = l_Lean_Syntax_getTailPos_x3f(x_1, x_8); +x_10 = !lean_is_exclusive(x_2); +if (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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_12 = lean_ctor_get(x_2, 2); -x_13 = lean_ctor_get(x_2, 1); -lean_dec(x_13); -x_14 = l_Lean_Elab_Command_instInhabitedScope; -x_15 = l_List_head_x21___rarg(x_14, x_12); -x_16 = l_Lean_MessageLog_empty; -lean_ctor_set(x_2, 1, x_16); -x_17 = lean_alloc_closure((void*)(l_IO_mkRef___rarg), 2, 1); -lean_closure_set(x_17, 0, x_2); -x_18 = lean_box(x_3); -lean_inc(x_4); -x_19 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__4___boxed), 9, 7); -lean_closure_set(x_19, 0, x_6); -lean_closure_set(x_19, 1, x_7); -lean_closure_set(x_19, 2, x_5); -lean_closure_set(x_19, 3, x_4); -lean_closure_set(x_19, 4, x_1); -lean_closure_set(x_19, 5, x_15); -lean_closure_set(x_19, 6, x_18); -x_20 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); -lean_closure_set(x_20, 0, x_17); -lean_closure_set(x_20, 1, x_19); -if (lean_obj_tag(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; lean_object* x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_2, 2); +x_12 = lean_ctor_get(x_2, 1); +lean_dec(x_12); +x_13 = l_Lean_Elab_Command_instInhabitedScope; +x_14 = l_List_head_x21___rarg(x_13, x_11); +x_15 = l_Lean_MessageLog_empty; +lean_ctor_set(x_2, 1, x_15); +x_16 = lean_alloc_closure((void*)(l_IO_mkRef___rarg), 2, 1); +lean_closure_set(x_16, 0, x_2); +lean_inc(x_3); +x_17 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__3___boxed), 8, 6); +lean_closure_set(x_17, 0, x_5); +lean_closure_set(x_17, 1, x_6); +lean_closure_set(x_17, 2, x_4); +lean_closure_set(x_17, 3, x_3); +lean_closure_set(x_17, 4, x_1); +lean_closure_set(x_17, 5, x_14); +x_18 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_17); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_inc(x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_4); -lean_ctor_set(x_21, 1, x_4); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_22, x_20, x_8); -return x_23; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_inc(x_3); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_3); +lean_ctor_set(x_19, 1, x_3); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_20, x_18, x_7); +return x_21; } else { -uint8_t x_24; -lean_dec(x_4); -x_24 = !lean_is_exclusive(x_10); -if (x_24 == 0) +uint8_t x_22; +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_9); +if (x_22 == 0) { -lean_object* x_25; -x_25 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_10, x_20, x_8); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_9, 0); +lean_inc(x_23); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_9, 0, x_24); +x_25 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_9, x_18, x_7); return x_25; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_10, 0); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_9, 0); lean_inc(x_26); -lean_dec(x_10); -x_27 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_9); +lean_inc(x_26); +x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_27, x_20, x_8); -return x_28; +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_28, x_18, x_7); +return x_29; } } } else { -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; -x_29 = lean_ctor_get(x_2, 0); -x_30 = lean_ctor_get(x_2, 2); -x_31 = lean_ctor_get(x_2, 3); -x_32 = lean_ctor_get(x_2, 4); -x_33 = lean_ctor_get(x_2, 5); -x_34 = lean_ctor_get(x_2, 6); -x_35 = lean_ctor_get(x_2, 7); +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; +x_30 = lean_ctor_get(x_2, 0); +x_31 = lean_ctor_get(x_2, 2); +x_32 = lean_ctor_get(x_2, 3); +x_33 = lean_ctor_get(x_2, 4); +x_34 = lean_ctor_get(x_2, 5); +x_35 = lean_ctor_get(x_2, 6); +x_36 = lean_ctor_get(x_2, 7); +lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); -lean_inc(x_29); lean_dec(x_2); -x_36 = l_Lean_Elab_Command_instInhabitedScope; -x_37 = l_List_head_x21___rarg(x_36, x_30); -x_38 = l_Lean_MessageLog_empty; -x_39 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_30); -lean_ctor_set(x_39, 3, x_31); -lean_ctor_set(x_39, 4, x_32); -lean_ctor_set(x_39, 5, x_33); -lean_ctor_set(x_39, 6, x_34); -lean_ctor_set(x_39, 7, x_35); -x_40 = lean_alloc_closure((void*)(l_IO_mkRef___rarg), 2, 1); -lean_closure_set(x_40, 0, x_39); -x_41 = lean_box(x_3); -lean_inc(x_4); -x_42 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__4___boxed), 9, 7); -lean_closure_set(x_42, 0, x_6); -lean_closure_set(x_42, 1, x_7); -lean_closure_set(x_42, 2, x_5); -lean_closure_set(x_42, 3, x_4); +x_37 = l_Lean_Elab_Command_instInhabitedScope; +x_38 = l_List_head_x21___rarg(x_37, x_31); +x_39 = l_Lean_MessageLog_empty; +x_40 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_40, 2, x_31); +lean_ctor_set(x_40, 3, x_32); +lean_ctor_set(x_40, 4, x_33); +lean_ctor_set(x_40, 5, x_34); +lean_ctor_set(x_40, 6, x_35); +lean_ctor_set(x_40, 7, x_36); +x_41 = lean_alloc_closure((void*)(l_IO_mkRef___rarg), 2, 1); +lean_closure_set(x_41, 0, x_40); +lean_inc(x_3); +x_42 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_doElab___lambda__3___boxed), 8, 6); +lean_closure_set(x_42, 0, x_5); +lean_closure_set(x_42, 1, x_6); +lean_closure_set(x_42, 2, x_4); +lean_closure_set(x_42, 3, x_3); lean_closure_set(x_42, 4, x_1); -lean_closure_set(x_42, 5, x_37); -lean_closure_set(x_42, 6, x_41); +lean_closure_set(x_42, 5, x_38); x_43 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); -lean_closure_set(x_43, 0, x_40); +lean_closure_set(x_43, 0, x_41); lean_closure_set(x_43, 1, x_42); -if (lean_obj_tag(x_10) == 0) +if (lean_obj_tag(x_9) == 0) { lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_inc(x_4); +lean_inc(x_3); x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_4); -lean_ctor_set(x_44, 1, x_4); +lean_ctor_set(x_44, 0, x_3); +lean_ctor_set(x_44, 1, x_3); x_45 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_45, x_43, x_8); +x_46 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_45, x_43, x_7); return x_46; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_4); -x_47 = lean_ctor_get(x_10, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_3); +x_47 = lean_ctor_get(x_9, 0); lean_inc(x_47); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - x_48 = x_10; +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + x_48 = x_9; } else { - lean_dec_ref(x_10); + lean_dec_ref(x_9); x_48 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 1, 0); -} else { - x_49 = x_48; -} +lean_inc(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_49, 0, x_47); -x_50 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_49, x_43, x_8); -return x_50; +lean_ctor_set(x_49, 1, x_47); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(1, 1, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_49); +x_51 = l_Lean_Language_SnapshotTask_ofIO___rarg(x_50, x_43, x_7); +return x_51; } } } @@ -4273,55 +3386,6 @@ x_5 = l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec_ return x_5; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___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_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___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_Lean_Language_Lean_process_doElab___spec__10___lambda__1___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___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_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10(x_1, x_5, x_6, x_4); -lean_dec(x_1); -return x_7; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___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___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7(x_1, x_5, x_6, x_4); -lean_dec(x_1); -return x_7; -} -} LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -4332,34 +3396,13 @@ lean_dec(x_2); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___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_10; -x_10 = l_Lean_Language_Lean_process_doElab___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_2); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_7); -lean_dec(x_7); -x_11 = l_Lean_Language_Lean_process_doElab___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___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_3); -lean_dec(x_3); -x_10 = l_Lean_Language_Lean_process_doElab(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -return x_10; +lean_object* x_9; +x_9 = l_Lean_Language_Lean_process_doElab___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___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) { @@ -4381,18 +3424,18 @@ x_14 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_14, 0, x_11); lean_ctor_set(x_14, 1, x_12); lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_13); -x_15 = lean_ctor_get(x_2, 0); -lean_inc(x_15); +lean_inc(x_2); +x_15 = l_Lean_Syntax_getRange_x3f(x_2, x_13); x_16 = lean_io_promise_result(x_3); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); x_18 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_18, 0, x_14); -lean_ctor_set(x_18, 1, x_4); -lean_ctor_set(x_18, 2, x_5); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_4); lean_ctor_set(x_18, 3, x_17); -lean_ctor_set(x_18, 4, x_2); +lean_ctor_set(x_18, 4, x_5); lean_ctor_set(x_18, 5, x_6); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); @@ -4414,18 +3457,18 @@ x_24 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_24, 0, x_20); lean_ctor_set(x_24, 1, x_22); lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_23); -x_25 = lean_ctor_get(x_2, 0); -lean_inc(x_25); +lean_inc(x_2); +x_25 = l_Lean_Syntax_getRange_x3f(x_2, x_23); x_26 = lean_io_promise_result(x_3); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_4); -lean_ctor_set(x_28, 2, x_5); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_4); lean_ctor_set(x_28, 3, x_27); -lean_ctor_set(x_28, 4, x_2); +lean_ctor_set(x_28, 4, x_5); lean_ctor_set(x_28, 5, x_6); x_29 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_29, 0, x_28); @@ -4482,7 +3525,7 @@ static lean_object* _init_l_Lean_Language_Lean_process_parseCmd___lambda__3___cl _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__4; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__4; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -4505,24 +3548,24 @@ lean_inc(x_12); lean_dec(x_10); if (lean_obj_tag(x_7) == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1; -x_62 = lean_st_mk_ref(x_61, x_12); -if (lean_obj_tag(x_62) == 0) +lean_object* x_60; lean_object* x_61; +x_60 = l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1; +x_61 = lean_st_mk_ref(x_60, x_12); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_62, 0); +lean_object* x_62; lean_object* x_63; +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); -lean_dec(x_62); -x_13 = x_63; -x_14 = x_64; -goto block_60; +lean_dec(x_61); +x_13 = x_62; +x_14 = x_63; +goto block_59; } else { -uint8_t x_65; +uint8_t x_64; lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); @@ -4530,241 +3573,239 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_62); -if (x_65 == 0) +x_64 = !lean_is_exclusive(x_61); +if (x_64 == 0) { -return x_62; +return x_61; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); -lean_inc(x_67); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_61, 0); +x_66 = lean_ctor_get(x_61, 1); lean_inc(x_66); -lean_dec(x_62); -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; +lean_inc(x_65); +lean_dec(x_61); +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; } } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_7, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_7, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -x_70 = lean_ctor_get(x_69, 0); +lean_dec(x_68); +x_70 = lean_ctor_get(x_69, 5); lean_inc(x_70); lean_dec(x_69); -x_71 = lean_ctor_get(x_70, 5); -lean_inc(x_71); -lean_dec(x_70); -x_13 = x_71; +x_13 = x_70; x_14 = x_12; -goto block_60; +goto block_59; } -block_60: +block_59: { -uint8_t x_15; lean_object* x_16; -lean_inc(x_1); -x_15 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_1); +lean_object* x_15; if (lean_obj_tag(x_7) == 0) { -lean_object* x_41; -x_41 = lean_box(0); -x_16 = x_41; -goto block_40; +lean_object* x_40; +x_40 = lean_box(0); +x_15 = x_40; +goto block_39; } else { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_7); -if (x_42 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_7); +if (x_41 == 0) { -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_7, 0); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_7, 0); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_dec(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -x_48 = lean_ctor_get(x_45, 3); -lean_inc(x_48); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); lean_dec(x_45); -lean_ctor_set(x_43, 1, x_48); -lean_ctor_set(x_43, 0, x_47); -x_16 = x_7; -goto block_40; +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 3); +lean_inc(x_47); +lean_dec(x_44); +lean_ctor_set(x_42, 1, x_47); +lean_ctor_set(x_42, 0, x_46); +x_15 = x_7; +goto block_39; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_43, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_42, 0); +lean_inc(x_48); +lean_dec(x_42); +x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); -lean_dec(x_43); -x_50 = lean_ctor_get(x_49, 1); +x_50 = lean_ctor_get(x_48, 3); lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 3); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_7, 0, x_52); -x_16 = x_7; -goto block_40; +lean_dec(x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_7, 0, x_51); +x_15 = x_7; +goto block_39; } } else { -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; -x_53 = lean_ctor_get(x_7, 0); -lean_inc(x_53); +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_7, 0); +lean_inc(x_52); lean_dec(x_7); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; } else { - lean_dec_ref(x_53); - x_55 = lean_box(0); + lean_dec_ref(x_52); + x_54 = lean_box(0); } -x_56 = lean_ctor_get(x_54, 1); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +x_56 = lean_ctor_get(x_53, 3); lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 3); -lean_inc(x_57); -lean_dec(x_54); -if (lean_is_scalar(x_55)) { - x_58 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_53); +if (lean_is_scalar(x_54)) { + x_57 = lean_alloc_ctor(0, 2, 0); } else { - x_58 = x_55; + x_57 = x_54; } -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_16 = x_59; -goto block_40; +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_15 = x_58; +goto block_39; } } -block_40: +block_39: { -lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; lean_inc(x_11); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_11); -lean_inc(x_5); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +lean_inc(x_4); lean_inc(x_13); -lean_inc(x_2); -x_18 = l_Lean_Language_Lean_process_doElab(x_2, x_3, x_15, x_4, x_17, x_13, x_5, x_14); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_1); +x_17 = l_Lean_Language_Lean_process_doElab(x_1, x_2, x_3, x_16, x_13, x_4, x_14); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_2); -x_21 = l_Lean_Parser_isTerminalCommand(x_2); -if (x_21 == 0) +lean_dec(x_17); +lean_inc(x_1); +x_20 = l_Lean_Parser_isTerminalCommand(x_1); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_inc(x_6); -x_22 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__2), 4, 2); -lean_closure_set(x_22, 0, x_6); -lean_closure_set(x_22, 1, x_5); -x_23 = lean_ctor_get(x_19, 0); -lean_inc(x_23); -x_24 = 0; -lean_inc(x_19); -x_25 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_19, x_22, x_23, x_24, x_20); -if (lean_obj_tag(x_25) == 0) +x_21 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__2), 4, 2); +lean_closure_set(x_21, 0, x_6); +lean_closure_set(x_21, 1, x_4); +x_22 = lean_ctor_get(x_18, 0); +lean_inc(x_22); +x_23 = 0; +lean_inc(x_18); +x_24 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_18, x_21, x_22, x_23, x_19); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_25, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_26); -x_29 = l_Lean_Language_Lean_process_parseCmd___lambda__1(x_1, x_19, x_11, x_2, x_6, x_13, x_28, x_27); -return x_29; +lean_dec(x_24); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_25); +x_28 = l_Lean_Language_Lean_process_parseCmd___lambda__1(x_5, x_1, x_11, x_6, x_18, x_13, x_27, x_26); +return x_28; } else { -uint8_t x_30; -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_30 = !lean_is_exclusive(x_25); -if (x_30 == 0) -{ -return x_25; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_25); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -lean_object* x_34; lean_object* x_35; -lean_dec(x_5); -x_34 = lean_box(0); -x_35 = l_Lean_Language_Lean_process_parseCmd___lambda__1(x_1, x_19, x_11, x_2, x_6, x_13, x_34, x_20); -return x_35; -} -} -else -{ -uint8_t x_36; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_18); -if (x_36 == 0) -{ -return x_18; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_18, 0); -x_38 = lean_ctor_get(x_18, 1); -lean_inc(x_38); -lean_inc(x_37); +uint8_t x_29; lean_dec(x_18); -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_dec(x_13); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +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); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +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_dec(x_4); +x_33 = lean_box(0); +x_34 = l_Lean_Language_Lean_process_parseCmd___lambda__1(x_5, x_1, x_11, x_6, x_18, x_13, x_33, x_19); +return x_34; +} +} +else +{ +uint8_t x_35; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_17); +if (x_35 == 0) +{ +return x_17; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +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_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } @@ -4772,7 +3813,7 @@ return x_39; } else { -uint8_t x_72; +uint8_t x_71; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -4780,23 +3821,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_10); -if (x_72 == 0) +x_71 = !lean_is_exclusive(x_10); +if (x_71 == 0) { return x_10; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_10, 0); -x_74 = lean_ctor_get(x_10, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_10, 0); +x_73 = lean_ctor_get(x_10, 1); lean_inc(x_73); +lean_inc(x_72); lean_dec(x_10); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +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; } } } @@ -4805,39 +3846,54 @@ LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__4(lean_ _start: { lean_object* x_5; -x_5 = l_Lean_Language_Lean_CommandParsedSnapshot_cancel(x_1, x_4); +x_5 = lean_ctor_get(x_1, 2); if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_apply_2(x_2, x_6, x_7); -return x_8; +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = lean_apply_2(x_2, x_6, x_4); +return x_7; } else { -uint8_t x_9; +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_5, 0); +x_9 = 1; +x_10 = lean_box(x_9); +x_11 = lean_st_ref_set(x_8, x_10, x_4); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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_apply_2(x_2, x_12, x_13); +return x_14; +} +else +{ +uint8_t x_15; lean_dec(x_2); -x_9 = !lean_is_exclusive(x_5); -if (x_9 == 0) +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) { -return x_5; +return x_11; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_5, 0); -x_11 = lean_ctor_get(x_5, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_5); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_11); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} } } } @@ -4845,17 +3901,14 @@ return x_12; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__5(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); -lean_dec(x_2); -x_9 = l_Lean_Language_Lean_process_parseCmd(x_6, x_7, x_8, x_3, x_5); -return x_9; +x_8 = l_Lean_Language_Lean_process_parseCmd(x_6, x_2, x_7, x_3, x_5); +return x_8; } } LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -4863,8 +3916,8 @@ _start: { lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__5), 5, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_4); +lean_closure_set(x_6, 0, x_4); +lean_closure_set(x_6, 1, x_1); lean_closure_set(x_6, 2, x_2); x_7 = lean_ctor_get(x_3, 0); lean_inc(x_7); @@ -4873,285 +3926,287 @@ x_9 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_3, x_6, x_7, x_8, x_5); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7) { _start: { -if (x_5 == 0) +if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_7 = lean_box(0); -x_8 = l_Lean_Language_Lean_process_parseCmd___lambda__4(x_1, x_2, x_7, x_6); -return x_8; +x_8 = lean_box(0); +x_9 = l_Lean_Language_Lean_process_parseCmd___lambda__4(x_1, x_2, x_8, x_7); +lean_dec(x_1); +return x_9; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_3, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_11 = lean_ctor_get(x_3, 1); lean_inc(x_11); -x_12 = l_Lean_Syntax_structEq(x_11, x_3); -if (x_12 == 0) +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_13 = l_Lean_Syntax_structEq(x_12, x_4); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; +lean_object* x_14; lean_object* x_15; +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_13 = lean_box(0); -x_14 = l_Lean_Language_Lean_process_parseCmd___lambda__4(x_1, x_2, x_13, x_6); -return x_14; -} -else -{ -lean_dec(x_2); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_15; -lean_dec(x_9); -lean_dec(x_4); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_6); +lean_dec(x_5); +lean_dec(x_3); +x_14 = lean_box(0); +x_15 = l_Lean_Language_Lean_process_parseCmd___lambda__4(x_1, x_2, x_14, x_7); +lean_dec(x_1); return x_15; } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_1); -if (x_16 == 0) +lean_dec(x_2); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_1, 1); -lean_dec(x_17); -x_18 = lean_ctor_get(x_1, 0); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 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; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_9, 4); -lean_inc(x_21); -lean_inc(x_9); -x_22 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_22, 0, x_9); -lean_closure_set(x_22, 1, x_4); -lean_closure_set(x_22, 2, x_20); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = 1; -x_25 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_21, x_22, x_23, x_24, x_6); -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; -x_27 = lean_ctor_get(x_25, 0); -lean_ctor_set(x_10, 0, x_27); -lean_ctor_set(x_25, 0, x_1); -return x_25; -} -else -{ -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_10, 0, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_free_object(x_10); -lean_free_object(x_1); -lean_dec(x_9); -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) -{ -return x_25; -} -else -{ -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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_10, 0); -lean_inc(x_35); +lean_object* x_16; lean_dec(x_10); -x_36 = lean_ctor_get(x_9, 4); -lean_inc(x_36); -lean_inc(x_9); -x_37 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_37, 0, x_9); -lean_closure_set(x_37, 1, x_4); -lean_closure_set(x_37, 2, x_35); -x_38 = lean_ctor_get(x_36, 0); -lean_inc(x_38); -x_39 = 1; -x_40 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_36, x_37, x_38, x_39, x_6); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; -} else { - lean_dec_ref(x_40); - x_43 = lean_box(0); -} -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_1, 1, x_44); -if (lean_is_scalar(x_43)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_43; -} -lean_ctor_set(x_45, 0, x_1); -lean_ctor_set(x_45, 1, x_42); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_free_object(x_1); -lean_dec(x_9); -x_46 = lean_ctor_get(x_40, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_48 = x_40; -} else { - lean_dec_ref(x_40); - x_48 = lean_box(0); -} -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -} -else -{ -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_dec(x_5); lean_dec(x_1); -x_50 = lean_ctor_get(x_10, 0); -lean_inc(x_50); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - x_51 = x_10; -} else { - lean_dec_ref(x_10); - x_51 = lean_box(0); -} -x_52 = lean_ctor_get(x_9, 4); -lean_inc(x_52); -lean_inc(x_9); -x_53 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_53, 0, x_9); -lean_closure_set(x_53, 1, x_4); -lean_closure_set(x_53, 2, x_50); -x_54 = lean_ctor_get(x_52, 0); -lean_inc(x_54); -x_55 = 1; -x_56 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_52, x_53, x_54, x_55, x_6); -if (lean_obj_tag(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 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_59 = x_56; -} else { - lean_dec_ref(x_56); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_60 = lean_alloc_ctor(1, 1, 0); -} else { - x_60 = x_51; -} -lean_ctor_set(x_60, 0, x_57); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_9); -lean_ctor_set(x_61, 1, x_60); -if (lean_is_scalar(x_59)) { - x_62 = lean_alloc_ctor(0, 2, 0); -} else { - x_62 = x_59; -} -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_58); -return x_62; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_7); +return x_16; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_51); -lean_dec(x_9); -x_63 = lean_ctor_get(x_56, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_56, 1); +uint8_t x_17; +x_17 = !lean_is_exclusive(x_3); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_3, 1); +lean_dec(x_18); +x_19 = lean_ctor_get(x_3, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_11); +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; +x_21 = lean_ctor_get(x_11, 0); +x_22 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); +lean_closure_set(x_22, 0, x_5); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_21); +x_23 = lean_ctor_get(x_10, 4); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = 1; +x_26 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_23, x_22, x_24, x_25, x_7); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_11, 0, x_28); +lean_ctor_set(x_26, 0, x_3); +return x_26; +} +else +{ +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_11, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_3); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_free_object(x_11); +lean_free_object(x_3); +lean_dec(x_10); +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_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 +{ +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_36 = lean_ctor_get(x_11, 0); +lean_inc(x_36); +lean_dec(x_11); +x_37 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); +lean_closure_set(x_37, 0, x_5); +lean_closure_set(x_37, 1, x_1); +lean_closure_set(x_37, 2, x_36); +x_38 = lean_ctor_get(x_10, 4); +lean_inc(x_38); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = 1; +x_41 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_38, x_37, x_39, x_40, x_7); +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(1, 1, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_3, 1, x_45); +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_3); +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_free_object(x_3); +lean_dec(x_10); +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; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; +lean_dec(x_3); +x_51 = lean_ctor_get(x_11, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + x_52 = x_11; +} else { + lean_dec_ref(x_11); + x_52 = lean_box(0); +} +x_53 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); +lean_closure_set(x_53, 0, x_5); +lean_closure_set(x_53, 1, x_1); +lean_closure_set(x_53, 2, x_51); +x_54 = lean_ctor_get(x_10, 4); +lean_inc(x_54); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = 1; +x_57 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_54, x_53, x_55, x_56, x_7); +if (lean_obj_tag(x_57) == 0) +{ +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_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; +} else { + lean_dec_ref(x_57); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_61 = lean_alloc_ctor(1, 1, 0); +} else { + x_61 = x_52; +} +lean_ctor_set(x_61, 0, x_58); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_10); +lean_ctor_set(x_62, 1, x_61); +if (lean_is_scalar(x_60)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_60; +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_52); +lean_dec(x_10); +x_64 = lean_ctor_get(x_57, 0); lean_inc(x_64); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_65 = x_56; +x_65 = lean_ctor_get(x_57, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_66 = x_57; } else { - lean_dec_ref(x_56); - x_65 = lean_box(0); + lean_dec_ref(x_57); + x_66 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_67 = x_66; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } @@ -5223,11 +4278,11 @@ lean_inc(x_26); lean_inc(x_2); lean_inc(x_25); x_28 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__3), 9, 7); -lean_closure_set(x_28, 0, x_27); -lean_closure_set(x_28, 1, x_25); -lean_closure_set(x_28, 2, x_3); -lean_closure_set(x_28, 3, x_8); -lean_closure_set(x_28, 4, x_2); +lean_closure_set(x_28, 0, x_25); +lean_closure_set(x_28, 1, x_3); +lean_closure_set(x_28, 2, x_8); +lean_closure_set(x_28, 3, x_2); +lean_closure_set(x_28, 4, x_27); lean_closure_set(x_28, 5, x_26); lean_closure_set(x_28, 6, x_4); if (lean_obj_tag(x_4) == 0) @@ -5251,16 +4306,16 @@ lean_inc(x_32); lean_dec(x_4); x_33 = lean_ctor_get(x_26, 0); lean_inc(x_33); -lean_dec(x_26); lean_inc(x_2); x_34 = lean_alloc_closure((void*)(l_Lean_Language_Lean_isBeforeEditPos___boxed), 3, 2); lean_closure_set(x_34, 0, x_33); lean_closure_set(x_34, 1, x_2); -x_35 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__7___boxed), 6, 4); -lean_closure_set(x_35, 0, x_32); +x_35 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__7___boxed), 7, 5); +lean_closure_set(x_35, 0, x_2); lean_closure_set(x_35, 1, x_28); -lean_closure_set(x_35, 2, x_25); -lean_closure_set(x_35, 3, x_2); +lean_closure_set(x_35, 2, x_32); +lean_closure_set(x_35, 3, x_25); +lean_closure_set(x_35, 4, x_26); x_36 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); lean_closure_set(x_36, 0, x_34); lean_closure_set(x_36, 1, x_35); @@ -5369,316 +4424,319 @@ return x_34; } else { -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_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; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); -x_36 = lean_ctor_get(x_14, 4); +x_36 = lean_ctor_get(x_14, 2); lean_inc(x_36); -lean_inc(x_14); x_37 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_37, 0, x_14); +lean_closure_set(x_37, 0, x_36); lean_closure_set(x_37, 1, x_2); lean_closure_set(x_37, 2, x_15); -x_38 = lean_ctor_get(x_36, 0); +x_38 = lean_ctor_get(x_14, 4); lean_inc(x_38); -x_39 = 1; -x_40 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_36, x_37, x_38, x_39, x_35); -if (lean_obj_tag(x_40) == 0) +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = 1; +x_41 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_38, x_37, x_39, x_40, x_35); +if (lean_obj_tag(x_41) == 0) { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +uint8_t x_42; +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_ctor_set(x_17, 0, x_42); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_41, 0); +lean_ctor_set(x_17, 0, x_43); lean_ctor_set(x_22, 1, x_17); lean_ctor_set(x_22, 0, x_14); -x_43 = l_Lean_Language_SnapshotTask_pure___rarg(x_22); -lean_ctor_set(x_40, 0, x_43); -return x_40; +x_44 = l_Lean_Language_SnapshotTask_pure___rarg(x_22); +lean_ctor_set(x_41, 0, x_44); +return x_41; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_40, 0); -x_45 = lean_ctor_get(x_40, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_41, 0); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_40); -lean_ctor_set(x_17, 0, x_44); +lean_dec(x_41); +lean_ctor_set(x_17, 0, x_45); lean_ctor_set(x_22, 1, x_17); lean_ctor_set(x_22, 0, x_14); -x_46 = l_Lean_Language_SnapshotTask_pure___rarg(x_22); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; +x_47 = l_Lean_Language_SnapshotTask_pure___rarg(x_22); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } else { -uint8_t x_48; +uint8_t x_49; lean_free_object(x_22); lean_free_object(x_17); lean_dec(x_14); -x_48 = !lean_is_exclusive(x_40); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_41); +if (x_49 == 0) { -return x_40; +return x_41; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_40, 0); -x_50 = lean_ctor_get(x_40, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_41, 0); +x_51 = lean_ctor_get(x_41, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_40); -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; +lean_dec(x_41); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } } else { -lean_object* x_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_22, 0); -lean_inc(x_52); -lean_dec(x_22); -x_53 = lean_ctor_get(x_52, 2); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_53 = lean_ctor_get(x_22, 0); lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_ctor_get(x_53, 0); +lean_dec(x_22); +x_54 = lean_ctor_get(x_53, 2); lean_inc(x_54); lean_dec(x_53); -x_55 = l_Lean_Language_Lean_isBeforeEditPos(x_54, x_6, x_23); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); lean_dec(x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_unbox(x_56); -lean_dec(x_56); -if (x_57 == 0) +x_56 = l_Lean_Language_Lean_isBeforeEditPos(x_55, x_6, x_23); +lean_dec(x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_unbox(x_57); +lean_dec(x_57); +if (x_58 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_free_object(x_17); lean_dec(x_15); lean_dec(x_14); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_dec(x_55); -x_59 = lean_box(0); -x_60 = l_Lean_Language_Lean_process_parseCmd___lambda__8(x_1, x_2, x_3, x_4, x_59, x_6, x_58); -return x_60; +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_box(0); +x_61 = l_Lean_Language_Lean_process_parseCmd___lambda__8(x_1, x_2, x_3, x_4, x_60, x_6, x_59); +return x_61; } 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_62; 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_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_61 = lean_ctor_get(x_55, 1); -lean_inc(x_61); -lean_dec(x_55); -x_62 = lean_ctor_get(x_14, 4); +x_62 = lean_ctor_get(x_56, 1); lean_inc(x_62); -lean_inc(x_14); -x_63 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_63, 0, x_14); -lean_closure_set(x_63, 1, x_2); -lean_closure_set(x_63, 2, x_15); -x_64 = lean_ctor_get(x_62, 0); -lean_inc(x_64); -x_65 = 1; -x_66 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_62, x_63, x_64, x_65, x_61); -if (lean_obj_tag(x_66) == 0) +lean_dec(x_56); +x_63 = lean_ctor_get(x_14, 2); +lean_inc(x_63); +x_64 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); +lean_closure_set(x_64, 0, x_63); +lean_closure_set(x_64, 1, x_2); +lean_closure_set(x_64, 2, x_15); +x_65 = lean_ctor_get(x_14, 4); +lean_inc(x_65); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = 1; +x_68 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_65, x_64, x_66, x_67, x_62); +if (lean_obj_tag(x_68) == 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; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_69 = x_66; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_71 = x_68; } else { - lean_dec_ref(x_66); - x_69 = lean_box(0); + lean_dec_ref(x_68); + x_71 = lean_box(0); } -lean_ctor_set(x_17, 0, x_67); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_14); -lean_ctor_set(x_70, 1, x_17); -x_71 = l_Lean_Language_SnapshotTask_pure___rarg(x_70); -if (lean_is_scalar(x_69)) { - x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_69); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_14); +lean_ctor_set(x_72, 1, x_17); +x_73 = l_Lean_Language_SnapshotTask_pure___rarg(x_72); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_69; + x_74 = x_71; } -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_68); -return x_72; +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_70); +return x_74; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_free_object(x_17); lean_dec(x_14); -x_73 = lean_ctor_get(x_66, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_66, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_75 = x_66; +x_75 = lean_ctor_get(x_68, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_68, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_77 = x_68; } else { - lean_dec_ref(x_66); - x_75 = lean_box(0); + lean_dec_ref(x_68); + x_77 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_78 = x_77; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; } } } } 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; uint8_t x_85; -x_77 = lean_ctor_get(x_17, 0); -lean_inc(x_77); -lean_dec(x_17); -x_78 = lean_ctor_get(x_16, 1); -lean_inc(x_78); -lean_dec(x_16); -x_79 = lean_ctor_get(x_77, 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; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_79 = lean_ctor_get(x_17, 0); lean_inc(x_79); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_80 = x_77; -} else { - lean_dec_ref(x_77); - x_80 = lean_box(0); -} -x_81 = lean_ctor_get(x_79, 2); +lean_dec(x_17); +x_80 = lean_ctor_get(x_16, 1); +lean_inc(x_80); +lean_dec(x_16); +x_81 = lean_ctor_get(x_79, 0); lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); +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_79); + x_82 = lean_box(0); +} +x_83 = lean_ctor_get(x_81, 2); +lean_inc(x_83); lean_dec(x_81); -x_83 = l_Lean_Language_Lean_isBeforeEditPos(x_82, x_6, x_78); -lean_dec(x_82); x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); -x_85 = lean_unbox(x_84); +lean_dec(x_83); +x_85 = l_Lean_Language_Lean_isBeforeEditPos(x_84, x_6, x_80); lean_dec(x_84); -if (x_85 == 0) +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_80); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_82); lean_dec(x_15); lean_dec(x_14); -x_86 = lean_ctor_get(x_83, 1); -lean_inc(x_86); -lean_dec(x_83); -x_87 = lean_box(0); -x_88 = l_Lean_Language_Lean_process_parseCmd___lambda__8(x_1, x_2, x_3, x_4, x_87, x_6, x_86); -return x_88; +x_88 = lean_ctor_get(x_85, 1); +lean_inc(x_88); +lean_dec(x_85); +x_89 = lean_box(0); +x_90 = l_Lean_Language_Lean_process_parseCmd___lambda__8(x_1, x_2, x_3, x_4, x_89, x_6, x_88); +return x_90; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; +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_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_89 = lean_ctor_get(x_83, 1); -lean_inc(x_89); -lean_dec(x_83); -x_90 = lean_ctor_get(x_14, 4); -lean_inc(x_90); -lean_inc(x_14); -x_91 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); -lean_closure_set(x_91, 0, x_14); -lean_closure_set(x_91, 1, x_2); -lean_closure_set(x_91, 2, x_15); -x_92 = lean_ctor_get(x_90, 0); +x_91 = lean_ctor_get(x_85, 1); +lean_inc(x_91); +lean_dec(x_85); +x_92 = lean_ctor_get(x_14, 2); lean_inc(x_92); -x_93 = 1; -x_94 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_90, x_91, x_92, x_93, x_89); -if (lean_obj_tag(x_94) == 0) -{ -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_93 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd___lambda__6), 5, 3); +lean_closure_set(x_93, 0, x_92); +lean_closure_set(x_93, 1, x_2); +lean_closure_set(x_93, 2, x_15); +x_94 = lean_ctor_get(x_14, 4); +lean_inc(x_94); x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; +x_96 = 1; +x_97 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_94, x_93, x_95, x_96, x_91); +if (lean_obj_tag(x_97) == 0) +{ +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_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; } else { - lean_dec_ref(x_94); - x_97 = lean_box(0); + lean_dec_ref(x_97); + x_100 = lean_box(0); } -x_98 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_98, 0, x_95); -if (lean_is_scalar(x_80)) { - x_99 = lean_alloc_ctor(0, 2, 0); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_98); +if (lean_is_scalar(x_82)) { + x_102 = lean_alloc_ctor(0, 2, 0); } else { - x_99 = x_80; + x_102 = x_82; } -lean_ctor_set(x_99, 0, x_14); -lean_ctor_set(x_99, 1, x_98); -x_100 = l_Lean_Language_SnapshotTask_pure___rarg(x_99); -if (lean_is_scalar(x_97)) { - x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_14); +lean_ctor_set(x_102, 1, x_101); +x_103 = l_Lean_Language_SnapshotTask_pure___rarg(x_102); +if (lean_is_scalar(x_100)) { + x_104 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_97; + x_104 = x_100; } -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_96); -return x_101; +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_99); +return x_104; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_80); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_82); lean_dec(x_14); -x_102 = lean_ctor_get(x_94, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_94, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_104 = x_94; +x_105 = lean_ctor_get(x_97, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_97, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_107 = x_97; } else { - lean_dec_ref(x_94); - x_104 = lean_box(0); + lean_dec_ref(x_97); + x_107 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_104; + x_108 = x_107; } -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; } } } @@ -5686,30 +4744,30 @@ return x_105; } else { -uint8_t x_106; +uint8_t x_109; lean_dec(x_15); lean_dec(x_14); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_16); -if (x_106 == 0) +x_109 = !lean_is_exclusive(x_16); +if (x_109 == 0) { return x_16; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_16, 0); -x_108 = lean_ctor_get(x_16, 1); -lean_inc(x_108); -lean_inc(x_107); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_16, 0); +x_111 = lean_ctor_get(x_16, 1); +lean_inc(x_111); +lean_inc(x_110); lean_dec(x_16); -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; +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; } } } @@ -5738,150 +4796,153 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd(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 = lean_io_check_canceled(x_5); -if (lean_obj_tag(x_6) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 3); +lean_inc(x_6); +x_7 = lean_st_ref_get(x_6, x_5); +lean_dec(x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_7; uint8_t x_8; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_unbox(x_7); +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_unbox(x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_box(0); +x_11 = lean_box(0); lean_inc(x_4); -x_11 = l_Lean_Language_Lean_process_parseCmd___lambda__9(x_2, x_4, x_3, x_1, x_10, x_4, x_9); +x_12 = l_Lean_Language_Lean_process_parseCmd___lambda__9(x_2, x_4, x_3, x_1, x_11, x_4, x_10); lean_dec(x_4); -return x_11; +return x_12; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_dec(x_4); lean_dec(x_1); -x_12 = lean_ctor_get(x_6, 1); -lean_inc(x_12); -lean_dec(x_6); -x_13 = l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1; -x_14 = lean_st_mk_ref(x_13, x_12); -if (lean_obj_tag(x_14) == 0) +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_dec(x_7); +x_14 = l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1; +x_15 = lean_st_mk_ref(x_14, x_13); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 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; lean_object* x_24; lean_object* x_25; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_box(0); -x_18 = l_Lean_Language_Lean_process_doElab___lambda__2___closed__1; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_3); -x_20 = l_Lean_Language_SnapshotTask_pure___rarg(x_19); -x_21 = lean_box(0); -x_22 = l_Lean_Language_Lean_process_parseCmd___closed__2; -x_23 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_23, 0, x_18); -lean_ctor_set(x_23, 1, x_21); -lean_ctor_set(x_23, 2, x_2); -lean_ctor_set(x_23, 3, x_22); -lean_ctor_set(x_23, 4, x_20); -lean_ctor_set(x_23, 5, x_16); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_17); -x_25 = l_Lean_Language_SnapshotTask_pure___rarg(x_24); -lean_ctor_set(x_14, 0, x_25); -return x_14; +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; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_box(0); +x_19 = l_Lean_Language_Lean_process_doElab___lambda__2___closed__1; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +x_21 = l_Lean_Language_SnapshotTask_pure___rarg(x_20); +x_22 = lean_box(0); +x_23 = l_Lean_Language_Lean_process_parseCmd___closed__2; +x_24 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set(x_24, 2, x_2); +lean_ctor_set(x_24, 3, x_23); +lean_ctor_set(x_24, 4, x_21); +lean_ctor_set(x_24, 5, x_17); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_18); +x_26 = l_Lean_Language_SnapshotTask_pure___rarg(x_25); +lean_ctor_set(x_15, 0, x_26); +return x_15; } 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_object* x_36; lean_object* x_37; -x_26 = lean_ctor_get(x_14, 0); -x_27 = lean_ctor_get(x_14, 1); +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; +x_27 = lean_ctor_get(x_15, 0); +x_28 = lean_ctor_get(x_15, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_14); -x_28 = lean_box(0); -x_29 = l_Lean_Language_Lean_process_doElab___lambda__2___closed__1; -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_3); -x_31 = l_Lean_Language_SnapshotTask_pure___rarg(x_30); -x_32 = lean_box(0); -x_33 = l_Lean_Language_Lean_process_parseCmd___closed__2; -x_34 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_32); -lean_ctor_set(x_34, 2, x_2); -lean_ctor_set(x_34, 3, x_33); -lean_ctor_set(x_34, 4, x_31); -lean_ctor_set(x_34, 5, x_26); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_28); -x_36 = l_Lean_Language_SnapshotTask_pure___rarg(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_27); -return x_37; +lean_dec(x_15); +x_29 = lean_box(0); +x_30 = l_Lean_Language_Lean_process_doElab___lambda__2___closed__1; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_3); +x_32 = l_Lean_Language_SnapshotTask_pure___rarg(x_31); +x_33 = lean_box(0); +x_34 = l_Lean_Language_Lean_process_parseCmd___closed__2; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_30); +lean_ctor_set(x_35, 1, x_33); +lean_ctor_set(x_35, 2, x_2); +lean_ctor_set(x_35, 3, x_34); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set(x_35, 5, x_27); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_29); +x_37 = l_Lean_Language_SnapshotTask_pure___rarg(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_28); +return x_38; } } else { -uint8_t x_38; +uint8_t x_39; lean_dec(x_3); lean_dec(x_2); -x_38 = !lean_is_exclusive(x_14); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_15); +if (x_39 == 0) { -return x_14; +return x_15; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_14, 0); -x_40 = lean_ctor_get(x_14, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_15, 0); +x_41 = lean_ctor_get(x_15, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_14); -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; +lean_dec(x_15); +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; } } } } else { -uint8_t x_42; +uint8_t x_43; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_6); -if (x_42 == 0) +x_43 = !lean_is_exclusive(x_7); +if (x_43 == 0) { -return x_6; +return x_7; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_6, 0); -x_44 = lean_ctor_get(x_6, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_7, 0); +x_45 = lean_ctor_get(x_7, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_6); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_dec(x_7); +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; } } } @@ -5892,17 +4953,18 @@ _start: lean_object* x_5; x_5 = l_Lean_Language_Lean_process_parseCmd___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); +lean_dec(x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___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_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___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) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_5); -lean_dec(x_5); -x_8 = l_Lean_Language_Lean_process_parseCmd___lambda__7(x_1, x_2, x_3, x_4, x_7, x_6); -return x_8; +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_6); +lean_dec(x_6); +x_9 = l_Lean_Language_Lean_process_parseCmd___lambda__7(x_1, x_2, x_3, x_4, x_5, x_8, x_7); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___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) { @@ -6112,7 +5174,7 @@ static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__3 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__3; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__3; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6124,7 +5186,7 @@ static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__3 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__3; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__3; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6136,7 +5198,7 @@ static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__3 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Language_Lean_process_doElab___lambda__4___closed__3; +x_1 = l_Lean_Language_Lean_process_doElab___lambda__3___closed__3; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6607,7 +5669,7 @@ lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_16); -x_21 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_16); +x_21 = l_Lean_MessageLog_hasErrors(x_16); if (x_21 == 0) { lean_object* x_22; lean_object* x_23; @@ -6649,7 +5711,7 @@ lean_inc(x_27); lean_inc(x_26); lean_dec(x_17); lean_inc(x_16); -x_28 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_16); +x_28 = l_Lean_MessageLog_hasErrors(x_16); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; @@ -6707,7 +5769,7 @@ if (lean_is_exclusive(x_36)) { x_39 = lean_box(0); } lean_inc(x_35); -x_40 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_35); +x_40 = l_Lean_MessageLog_hasErrors(x_35); if (x_40 == 0) { lean_object* x_41; lean_object* x_42; @@ -6866,11 +5928,12 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_box(0); x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 4, 0); +x_5 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_1); lean_ctor_set(x_5, 2, x_4); lean_ctor_set(x_5, 3, x_3); +lean_ctor_set(x_5, 4, x_3); return x_5; } } @@ -6882,228 +5945,142 @@ x_4 = l_Lean_Parser_parseHeader(x_1, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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_Lean_Language_Lean_process_parseHeader___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) { _start: { -lean_object* x_9; uint8_t x_10; -x_9 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_1, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_9, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); lean_inc(x_4); lean_inc(x_3); -x_13 = l_Lean_Language_Lean_process_processHeader(x_2, x_3, x_4, x_7, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +x_14 = l_Lean_Language_Lean_process_processHeader(x_2, x_3, x_4, x_8, x_13); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_box(0); -lean_ctor_set(x_9, 1, x_15); -lean_ctor_set(x_9, 0, x_4); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_9); -x_18 = 0; -x_19 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2, x_18); -x_20 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_5); -lean_ctor_set(x_20, 2, x_3); -lean_ctor_set(x_20, 3, x_17); -lean_ctor_set(x_13, 0, x_20); -return x_13; -} -else -{ -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; lean_object* x_28; -x_21 = lean_ctor_get(x_13, 0); -x_22 = lean_ctor_get(x_13, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_13); -x_23 = lean_box(0); -lean_ctor_set(x_9, 1, x_21); -lean_ctor_set(x_9, 0, x_4); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_9); -x_25 = 0; -x_26 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_26, 0, x_11); -lean_ctor_set(x_26, 1, x_23); -lean_ctor_set_uint8(x_26, sizeof(void*)*2, x_25); -x_27 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_5); -lean_ctor_set(x_27, 2, x_3); -lean_ctor_set(x_27, 3, x_24); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_22); -return x_28; -} -} -else -{ -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; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_29 = lean_ctor_get(x_9, 0); -x_30 = lean_ctor_get(x_9, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_3); -x_31 = l_Lean_Language_Lean_process_processHeader(x_2, x_3, x_4, x_7, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_34 = x_31; -} else { - lean_dec_ref(x_31); - x_34 = lean_box(0); -} -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_4); -lean_ctor_set(x_36, 1, x_32); -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_36); -x_38 = 0; -x_39 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_35); -lean_ctor_set_uint8(x_39, sizeof(void*)*2, x_38); -x_40 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_5); -lean_ctor_set(x_40, 2, x_3); -lean_ctor_set(x_40, 3, x_37); -if (lean_is_scalar(x_34)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_34; -} -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_33); -return x_41; -} -} -} -static lean_object* _init_l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_CommandParsedSnapshot_cancel), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_2); -return x_5; -} -else -{ -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; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -lean_dec(x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -x_9 = l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1; -x_10 = l_Task_Priority_default; -x_11 = 0; -x_12 = lean_io_map_task(x_9, x_8, x_10, x_11, x_2); -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -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); -lean_dec(x_14); -x_15 = lean_box(0); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_12, 1); -lean_inc(x_16); -lean_dec(x_12); +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; +x_16 = lean_ctor_get(x_14, 0); x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_12); -if (x_19 == 0) -{ -return x_12; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_12, 0); -x_21 = lean_ctor_get(x_12, 1); +lean_ctor_set(x_10, 1, x_16); +lean_ctor_set(x_10, 0, x_4); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_10); +x_19 = 0; +x_20 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_20, 0, x_12); +lean_ctor_set(x_20, 1, x_17); +lean_ctor_set_uint8(x_20, sizeof(void*)*2, x_19); +x_21 = lean_ctor_get(x_5, 3); lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_12); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_6); +lean_ctor_set(x_23, 2, x_3); +lean_ctor_set(x_23, 3, x_18); +lean_ctor_set(x_23, 4, x_22); +lean_ctor_set(x_14, 0, x_23); +return x_14; } -} -} -} -} -static lean_object* _init_l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1() { -_start: +else { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__4), 2, 0); -return x_1; +lean_object* x_24; lean_object* x_25; 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; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_14); +x_26 = lean_box(0); +lean_ctor_set(x_10, 1, x_24); +lean_ctor_set(x_10, 0, x_4); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_10); +x_28 = 0; +x_29 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_29, 0, x_12); +lean_ctor_set(x_29, 1, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*2, x_28); +x_30 = lean_ctor_get(x_5, 3); +lean_inc(x_30); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_6); +lean_ctor_set(x_32, 2, x_3); +lean_ctor_set(x_32, 3, x_27); +lean_ctor_set(x_32, 4, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +return x_33; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +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; 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_34 = lean_ctor_get(x_10, 0); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_10); +lean_inc(x_4); +lean_inc(x_3); +x_36 = l_Lean_Language_Lean_process_processHeader(x_2, x_3, x_4, x_8, x_35); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_4); +lean_ctor_set(x_41, 1, x_37); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = 0; +x_44 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_44, 0, x_34); +lean_ctor_set(x_44, 1, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_43); +x_45 = lean_ctor_get(x_5, 3); +lean_inc(x_45); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_6); +lean_ctor_set(x_47, 2, x_3); +lean_ctor_set(x_47, 3, x_42); +lean_ctor_set(x_47, 4, x_46); +if (lean_is_scalar(x_39)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_39; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_38); +return x_48; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__4(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 = lean_ctor_get(x_1, 3); -lean_inc(x_6); -lean_dec(x_1); +x_6 = lean_ctor_get(x_1, 2); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; @@ -7113,117 +6090,102 @@ return x_8; } else { -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; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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; x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = l_Lean_Language_SnapshotTask_cancel___rarg(x_10, x_5); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_10, 1); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_st_ref_set(x_9, x_11, x_5); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_10); -x_14 = l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1; -x_15 = l_Task_Priority_default; -x_16 = 0; -x_17 = lean_io_map_task(x_14, x_13, x_15, x_16, x_12); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_box(0); -x_20 = lean_apply_3(x_2, x_19, x_4, x_18); -return x_20; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_apply_3(x_2, x_13, x_4, x_14); +return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_7, 0, x_5); x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -lean_dec(x_2); -lean_inc(x_9); -x_10 = l_Lean_Language_Lean_process_parseCmd(x_7, x_8, x_9, x_3, x_6); -if (lean_obj_tag(x_10) == 0) +lean_inc(x_8); +x_9 = l_Lean_Language_Lean_process_parseCmd(x_7, x_2, x_8, x_3, x_6); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 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_10, 0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_4); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_Language_SnapshotTask_pure___rarg(x_15); -lean_ctor_set(x_10, 0, x_16); -return x_10; +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_9, 0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Lean_Language_SnapshotTask_pure___rarg(x_14); +lean_ctor_set(x_9, 0, x_15); +return x_9; } else { -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_17 = lean_ctor_get(x_10, 0); -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); +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; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); -lean_dec(x_10); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_4); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_Language_SnapshotTask_pure___rarg(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_18); -return x_23; -} -} -else -{ -uint8_t x_24; +lean_inc(x_16); lean_dec(x_9); -lean_dec(x_4); -x_24 = !lean_is_exclusive(x_10); -if (x_24 == 0) -{ -return x_10; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_18, 1, x_16); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_Language_SnapshotTask_pure___rarg(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_17); +return x_22; +} } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_10, 0); -x_26 = lean_ctor_get(x_10, 1); -lean_inc(x_26); +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_4); +x_23 = !lean_is_exclusive(x_9); +if (x_23 == 0) +{ +return x_9; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_9, 0); +x_25 = lean_ctor_get(x_9, 1); lean_inc(x_25); -lean_dec(x_10); -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; +lean_inc(x_24); +lean_dec(x_9); +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -7269,9 +6231,9 @@ lean_inc(x_12); lean_dec(x_3); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 6, 4); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_11); +x_14 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__5), 6, 4); +lean_closure_set(x_14, 0, x_11); +lean_closure_set(x_14, 1, x_1); lean_closure_set(x_14, 2, x_2); lean_closure_set(x_14, 3, x_12); x_15 = lean_ctor_get(x_13, 0); @@ -7282,461 +6244,863 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__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_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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) { _start: { lean_dec(x_8); -if (lean_obj_tag(x_6) == 0) +if (lean_obj_tag(x_7) == 0) { lean_object* x_11; lean_object* x_12; -lean_dec(x_7); x_11 = lean_box(0); -x_12 = l_Lean_Language_Lean_process_parseHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_11, x_9, x_10); +x_12 = l_Lean_Language_Lean_process_parseHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_9, x_10); +lean_dec(x_5); return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_13 = lean_ctor_get(x_6, 0); -lean_inc(x_13); -lean_dec(x_6); +uint8_t x_13; +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_14 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed), 8, 5); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_2); -lean_closure_set(x_14, 2, x_3); -lean_closure_set(x_14, 3, x_4); -lean_closure_set(x_14, 4, x_5); -x_15 = lean_ctor_get(x_4, 0); -lean_inc(x_15); -lean_dec(x_4); -x_16 = l_Lean_Language_Lean_isBeforeEditPos(x_15, x_9, x_10); -lean_dec(x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); +x_15 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed), 9, 6); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_4); +lean_closure_set(x_15, 4, x_5); +lean_closure_set(x_15, 5, x_6); +x_16 = lean_ctor_get(x_4, 0); +lean_inc(x_16); +x_17 = l_Lean_Language_Lean_isBeforeEditPos(x_16, x_9, x_10); lean_dec(x_16); -x_20 = lean_box(0); -x_21 = l_Lean_Language_Lean_process_parseHeader___lambda__5(x_13, x_14, x_20, x_9, x_19); -return x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_free_object(x_7); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = l_Lean_Language_Lean_process_parseHeader___lambda__4(x_5, x_15, x_21, x_9, x_20); +lean_dec(x_5); +return x_22; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) { -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_23 = lean_ctor_get(x_16, 1); -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_13, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_13, 2); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_24 = lean_ctor_get(x_17, 1); +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); -x_27 = lean_ctor_get(x_13, 3); +x_27 = lean_ctor_get(x_14, 2); lean_inc(x_27); -lean_inc(x_26); -x_28 = l_Lean_Syntax_structEq(x_26, x_3); -if (x_28 == 0) +x_28 = lean_ctor_get(x_14, 3); +lean_inc(x_28); +lean_inc(x_27); +x_29 = l_Lean_Syntax_structEq(x_27, x_3); +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; +lean_object* x_30; lean_object* x_31; +lean_dec(x_28); lean_dec(x_27); lean_dec(x_26); -lean_dec(x_25); -lean_free_object(x_16); -lean_dec(x_7); -lean_dec(x_5); -x_29 = lean_box(0); -x_30 = l_Lean_Language_Lean_process_parseHeader___lambda__5(x_13, x_14, x_29, x_9, x_23); -return x_30; -} -else -{ +lean_free_object(x_17); +lean_free_object(x_7); lean_dec(x_14); -lean_dec(x_9); -if (lean_obj_tag(x_27) == 0) -{ -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_30 = lean_box(0); +x_31 = l_Lean_Language_Lean_process_parseHeader___lambda__4(x_5, x_15, x_30, x_9, x_24); lean_dec(x_5); -lean_ctor_set(x_16, 0, x_13); -return x_16; +return x_31; } else { -uint8_t x_31; -lean_free_object(x_16); -x_31 = !lean_is_exclusive(x_13); -if (x_31 == 0) +lean_dec(x_15); +lean_dec(x_9); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_13, 3); -lean_dec(x_32); -x_33 = lean_ctor_get(x_13, 2); +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_ctor_set(x_17, 0, x_14); +return x_17; +} +else +{ +uint8_t x_32; +lean_free_object(x_17); +x_32 = !lean_is_exclusive(x_14); +if (x_32 == 0) +{ +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_33 = lean_ctor_get(x_14, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_13, 1); +x_34 = lean_ctor_get(x_14, 3); lean_dec(x_34); -x_35 = lean_ctor_get(x_13, 0); +x_35 = lean_ctor_get(x_14, 2); lean_dec(x_35); -x_36 = !lean_is_exclusive(x_27); -if (x_36 == 0) +x_36 = lean_ctor_get(x_14, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_14, 0); +lean_dec(x_37); +x_38 = !lean_is_exclusive(x_28); +if (x_38 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_37 = lean_ctor_get(x_27, 0); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_inc(x_37); -x_40 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_40, 0, x_37); -lean_closure_set(x_40, 1, x_7); -x_41 = !lean_is_exclusive(x_37); -if (x_41 == 0) +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_28, 0); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; uint8_t x_47; -x_42 = lean_ctor_get(x_37, 1); -lean_dec(x_42); -x_43 = lean_ctor_get(x_37, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_39, 0); -lean_inc(x_44); -x_45 = 1; -x_46 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_39, x_40, x_44, x_45, x_23); -x_47 = !lean_is_exclusive(x_46); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; uint8_t x_46; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_5); +x_42 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_42, 0, x_4); +lean_closure_set(x_42, 1, x_5); +x_43 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +x_44 = 1; +x_45 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_41, x_42, x_43, x_44, x_24); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_26); if (x_47 == 0) { -lean_object* x_48; -x_48 = lean_ctor_get(x_46, 0); -lean_ctor_set(x_37, 1, x_48); -lean_ctor_set(x_13, 1, x_5); -lean_ctor_set(x_46, 0, x_13); -return x_46; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_46, 0); -x_50 = lean_ctor_get(x_46, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_46); -lean_ctor_set(x_37, 1, x_49); -lean_ctor_set(x_13, 1, x_5); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_13); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -else -{ -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; lean_object* x_59; -lean_dec(x_37); -x_52 = lean_ctor_get(x_39, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_45, 0); +x_49 = lean_ctor_get(x_26, 1); +lean_dec(x_49); +x_50 = lean_box(0); +lean_ctor_set(x_39, 1, x_48); +x_51 = 0; +lean_ctor_set(x_26, 1, x_50); +lean_ctor_set_uint8(x_26, sizeof(void*)*2, x_51); +x_52 = lean_ctor_get(x_5, 3); lean_inc(x_52); -x_53 = 1; -x_54 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_39, x_40, x_52, x_53, x_23); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_57 = x_54; -} else { - lean_dec_ref(x_54); - x_57 = lean_box(0); +lean_dec(x_5); +lean_ctor_set(x_7, 0, x_52); +lean_ctor_set(x_14, 4, x_7); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set(x_45, 0, x_14); +return x_45; } -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_38); -lean_ctor_set(x_58, 1, x_55); -lean_ctor_set(x_27, 0, x_58); -lean_ctor_set(x_13, 1, x_5); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 2, 0); -} else { - x_59 = x_57; -} -lean_ctor_set(x_59, 0, x_13); -lean_ctor_set(x_59, 1, x_56); -return x_59; +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_53 = lean_ctor_get(x_45, 0); +x_54 = lean_ctor_get(x_26, 0); +lean_inc(x_54); +lean_dec(x_26); +x_55 = lean_box(0); +lean_ctor_set(x_39, 1, x_53); +x_56 = 0; +x_57 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_56); +x_58 = lean_ctor_get(x_5, 3); +lean_inc(x_58); +lean_dec(x_5); +lean_ctor_set(x_7, 0, x_58); +lean_ctor_set(x_14, 4, x_7); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set(x_14, 0, x_57); +lean_ctor_set(x_45, 0, x_14); +return x_45; } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t 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_60 = lean_ctor_get(x_27, 0); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_59 = lean_ctor_get(x_45, 0); +x_60 = lean_ctor_get(x_45, 1); lean_inc(x_60); -lean_dec(x_27); -x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_59); +lean_dec(x_45); +x_61 = lean_ctor_get(x_26, 0); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_inc(x_60); -x_63 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_63, 0, x_60); -lean_closure_set(x_63, 1, x_7); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_64 = x_60; +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_62 = x_26; } else { - lean_dec_ref(x_60); - x_64 = lean_box(0); + lean_dec_ref(x_26); + x_62 = lean_box(0); } -x_65 = lean_ctor_get(x_62, 0); -lean_inc(x_65); -x_66 = 1; -x_67 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_62, x_63, x_65, x_66, x_23); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +x_63 = lean_box(0); +lean_ctor_set(x_39, 1, x_59); +x_64 = 0; +if (lean_is_scalar(x_62)) { + x_65 = lean_alloc_ctor(0, 2, 1); +} else { + x_65 = x_62; +} +lean_ctor_set(x_65, 0, x_61); +lean_ctor_set(x_65, 1, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_64); +x_66 = lean_ctor_get(x_5, 3); +lean_inc(x_66); +lean_dec(x_5); +lean_ctor_set(x_7, 0, x_66); +lean_ctor_set(x_14, 4, x_7); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set(x_14, 0, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_14); +lean_ctor_set(x_67, 1, x_60); +return x_67; +} +} +else +{ +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; 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; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_68 = lean_ctor_get(x_39, 0); +x_69 = lean_ctor_get(x_39, 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_67); - x_70 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_71 = lean_alloc_ctor(0, 2, 0); -} else { - x_71 = x_64; -} -lean_ctor_set(x_71, 0, x_61); -lean_ctor_set(x_71, 1, x_68); -x_72 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_13, 3, x_72); -lean_ctor_set(x_13, 1, x_5); -if (lean_is_scalar(x_70)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_70; -} -lean_ctor_set(x_73, 0, x_13); -lean_ctor_set(x_73, 1, x_69); -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; 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_dec(x_13); -x_74 = lean_ctor_get(x_27, 0); +lean_inc(x_68); +lean_dec(x_39); +lean_inc(x_5); +x_70 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_70, 0, x_4); +lean_closure_set(x_70, 1, x_5); +x_71 = lean_ctor_get(x_69, 0); +lean_inc(x_71); +x_72 = 1; +x_73 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_69, x_70, x_71, x_72, x_24); +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - x_75 = x_27; +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_27); - x_75 = lean_box(0); + lean_dec_ref(x_73); + x_76 = lean_box(0); } -x_76 = lean_ctor_get(x_74, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 1); +x_77 = lean_ctor_get(x_26, 0); lean_inc(x_77); -lean_inc(x_74); -x_78 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_78, 0, x_74); -lean_closure_set(x_78, 1, x_7); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_79 = x_74; +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_78 = x_26; } else { - lean_dec_ref(x_74); - x_79 = lean_box(0); + lean_dec_ref(x_26); + x_78 = lean_box(0); } -x_80 = lean_ctor_get(x_77, 0); -lean_inc(x_80); -x_81 = 1; -x_82 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_77, x_78, x_80, x_81, x_23); -x_83 = lean_ctor_get(x_82, 0); +x_79 = lean_box(0); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_68); +lean_ctor_set(x_80, 1, x_74); +lean_ctor_set(x_28, 0, x_80); +x_81 = 0; +if (lean_is_scalar(x_78)) { + x_82 = lean_alloc_ctor(0, 2, 1); +} else { + x_82 = x_78; +} +lean_ctor_set(x_82, 0, x_77); +lean_ctor_set(x_82, 1, x_79); +lean_ctor_set_uint8(x_82, sizeof(void*)*2, x_81); +x_83 = lean_ctor_get(x_5, 3); lean_inc(x_83); -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; +lean_dec(x_5); +lean_ctor_set(x_7, 0, x_83); +lean_ctor_set(x_14, 4, x_7); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set(x_14, 0, x_82); +if (lean_is_scalar(x_76)) { + x_84 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_82); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_79)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_79; -} -lean_ctor_set(x_86, 0, x_76); -lean_ctor_set(x_86, 1, x_83); -if (lean_is_scalar(x_75)) { - x_87 = lean_alloc_ctor(1, 1, 0); -} else { - x_87 = x_75; -} -lean_ctor_set(x_87, 0, x_86); -x_88 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_88, 0, x_25); -lean_ctor_set(x_88, 1, x_5); -lean_ctor_set(x_88, 2, x_26); -lean_ctor_set(x_88, 3, x_87); -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; -} + x_84 = x_76; } +lean_ctor_set(x_84, 0, x_14); +lean_ctor_set(x_84, 1, x_75); +return x_84; } } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_90 = lean_ctor_get(x_16, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t 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; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_85 = lean_ctor_get(x_28, 0); +lean_inc(x_85); +lean_dec(x_28); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +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_85); + x_88 = lean_box(0); +} +lean_inc(x_5); +x_89 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_89, 0, x_4); +lean_closure_set(x_89, 1, x_5); +x_90 = lean_ctor_get(x_87, 0); lean_inc(x_90); -lean_dec(x_16); -x_91 = lean_ctor_get(x_13, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_13, 2); -lean_inc(x_92); -x_93 = lean_ctor_get(x_13, 3); +x_91 = 1; +x_92 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_87, x_89, x_90, x_91, x_24); +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_inc(x_92); -x_94 = l_Lean_Syntax_structEq(x_92, x_3); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -lean_dec(x_93); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_7); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; +} else { + lean_dec_ref(x_92); + x_95 = lean_box(0); +} +x_96 = lean_ctor_get(x_26, 0); +lean_inc(x_96); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_97 = x_26; +} else { + lean_dec_ref(x_26); + x_97 = lean_box(0); +} +x_98 = lean_box(0); +if (lean_is_scalar(x_88)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_88; +} +lean_ctor_set(x_99, 0, x_86); +lean_ctor_set(x_99, 1, x_93); +x_100 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_100, 0, x_99); +x_101 = 0; +if (lean_is_scalar(x_97)) { + x_102 = lean_alloc_ctor(0, 2, 1); +} else { + x_102 = x_97; +} +lean_ctor_set(x_102, 0, x_96); +lean_ctor_set(x_102, 1, x_98); +lean_ctor_set_uint8(x_102, sizeof(void*)*2, x_101); +x_103 = lean_ctor_get(x_5, 3); +lean_inc(x_103); lean_dec(x_5); -x_95 = lean_box(0); -x_96 = l_Lean_Language_Lean_process_parseHeader___lambda__5(x_13, x_14, x_95, x_9, x_90); -return x_96; +lean_ctor_set(x_7, 0, x_103); +lean_ctor_set(x_14, 4, x_7); +lean_ctor_set(x_14, 3, x_100); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set(x_14, 0, x_102); +if (lean_is_scalar(x_95)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_95; +} +lean_ctor_set(x_104, 0, x_14); +lean_ctor_set(x_104, 1, x_94); +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; lean_object* x_111; uint8_t 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; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_dec(x_14); -lean_dec(x_9); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_97; -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_7); +x_105 = lean_ctor_get(x_28, 0); +lean_inc(x_105); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + x_106 = x_28; +} else { + lean_dec_ref(x_28); + x_106 = lean_box(0); +} +x_107 = lean_ctor_get(x_105, 0); +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; +} else { + lean_dec_ref(x_105); + x_109 = lean_box(0); +} +lean_inc(x_5); +x_110 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_110, 0, x_4); +lean_closure_set(x_110, 1, x_5); +x_111 = lean_ctor_get(x_108, 0); +lean_inc(x_111); +x_112 = 1; +x_113 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_108, x_110, x_111, x_112, x_24); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_26, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_118 = x_26; +} else { + lean_dec_ref(x_26); + x_118 = lean_box(0); +} +x_119 = lean_box(0); +if (lean_is_scalar(x_109)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_109; +} +lean_ctor_set(x_120, 0, x_107); +lean_ctor_set(x_120, 1, x_114); +if (lean_is_scalar(x_106)) { + x_121 = lean_alloc_ctor(1, 1, 0); +} else { + x_121 = x_106; +} +lean_ctor_set(x_121, 0, x_120); +x_122 = 0; +if (lean_is_scalar(x_118)) { + x_123 = lean_alloc_ctor(0, 2, 1); +} else { + x_123 = x_118; +} +lean_ctor_set(x_123, 0, x_117); +lean_ctor_set(x_123, 1, x_119); +lean_ctor_set_uint8(x_123, sizeof(void*)*2, x_122); +x_124 = lean_ctor_get(x_5, 3); +lean_inc(x_124); lean_dec(x_5); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_13); -lean_ctor_set(x_97, 1, x_90); -return x_97; +lean_ctor_set(x_7, 0, x_124); +x_125 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_6); +lean_ctor_set(x_125, 2, x_27); +lean_ctor_set(x_125, 3, x_121); +lean_ctor_set(x_125, 4, x_7); +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_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; uint8_t 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; -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - lean_ctor_release(x_13, 2); - lean_ctor_release(x_13, 3); - x_98 = x_13; +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_127 = lean_ctor_get(x_17, 1); +lean_inc(x_127); +lean_dec(x_17); +x_128 = lean_ctor_get(x_14, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_14, 2); +lean_inc(x_129); +x_130 = lean_ctor_get(x_14, 3); +lean_inc(x_130); +lean_inc(x_129); +x_131 = l_Lean_Syntax_structEq(x_129, x_3); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +lean_dec(x_130); +lean_dec(x_129); +lean_dec(x_128); +lean_free_object(x_7); +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_4); +x_132 = lean_box(0); +x_133 = l_Lean_Language_Lean_process_parseHeader___lambda__4(x_5, x_15, x_132, x_9, x_127); +lean_dec(x_5); +return x_133; +} +else +{ +lean_dec(x_15); +lean_dec(x_9); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_134; +lean_dec(x_129); +lean_dec(x_128); +lean_free_object(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_14); +lean_ctor_set(x_134, 1, x_127); +return x_134; +} +else +{ +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; uint8_t 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; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + lean_ctor_release(x_14, 2); + lean_ctor_release(x_14, 3); + lean_ctor_release(x_14, 4); + x_135 = x_14; } else { - lean_dec_ref(x_13); - x_98 = lean_box(0); + lean_dec_ref(x_14); + x_135 = lean_box(0); } -x_99 = lean_ctor_get(x_93, 0); -lean_inc(x_99); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - x_100 = x_93; +x_136 = lean_ctor_get(x_130, 0); +lean_inc(x_136); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + x_137 = x_130; } else { - lean_dec_ref(x_93); - x_100 = lean_box(0); + lean_dec_ref(x_130); + x_137 = lean_box(0); } -x_101 = lean_ctor_get(x_99, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_99, 1); -lean_inc(x_102); -lean_inc(x_99); -x_103 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_103, 0, x_99); -lean_closure_set(x_103, 1, x_7); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_104 = x_99; +x_138 = lean_ctor_get(x_136, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_136, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_140 = x_136; } else { - lean_dec_ref(x_99); - x_104 = lean_box(0); + lean_dec_ref(x_136); + x_140 = lean_box(0); } -x_105 = lean_ctor_get(x_102, 0); -lean_inc(x_105); -x_106 = 1; -x_107 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_102, x_103, x_105, x_106, x_90); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; +lean_inc(x_5); +x_141 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_141, 0, x_4); +lean_closure_set(x_141, 1, x_5); +x_142 = lean_ctor_get(x_139, 0); +lean_inc(x_142); +x_143 = 1; +x_144 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_139, x_141, x_142, x_143, x_127); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; } else { - lean_dec_ref(x_107); - x_110 = lean_box(0); + lean_dec_ref(x_144); + x_147 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_111 = lean_alloc_ctor(0, 2, 0); +x_148 = lean_ctor_get(x_128, 0); +lean_inc(x_148); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_149 = x_128; } else { - x_111 = x_104; + lean_dec_ref(x_128); + x_149 = lean_box(0); } -lean_ctor_set(x_111, 0, x_101); -lean_ctor_set(x_111, 1, x_108); -if (lean_is_scalar(x_100)) { - x_112 = lean_alloc_ctor(1, 1, 0); +x_150 = lean_box(0); +if (lean_is_scalar(x_140)) { + x_151 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_100; + x_151 = x_140; } -lean_ctor_set(x_112, 0, x_111); -if (lean_is_scalar(x_98)) { - x_113 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_151, 0, x_138); +lean_ctor_set(x_151, 1, x_145); +if (lean_is_scalar(x_137)) { + x_152 = lean_alloc_ctor(1, 1, 0); } else { - x_113 = x_98; + x_152 = x_137; } -lean_ctor_set(x_113, 0, x_91); -lean_ctor_set(x_113, 1, x_5); -lean_ctor_set(x_113, 2, x_92); -lean_ctor_set(x_113, 3, x_112); -if (lean_is_scalar(x_110)) { - x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +x_153 = 0; +if (lean_is_scalar(x_149)) { + x_154 = lean_alloc_ctor(0, 2, 1); } else { - x_114 = x_110; + x_154 = x_149; } -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_109); -return x_114; +lean_ctor_set(x_154, 0, x_148); +lean_ctor_set(x_154, 1, x_150); +lean_ctor_set_uint8(x_154, sizeof(void*)*2, x_153); +x_155 = lean_ctor_get(x_5, 3); +lean_inc(x_155); +lean_dec(x_5); +lean_ctor_set(x_7, 0, x_155); +if (lean_is_scalar(x_135)) { + x_156 = lean_alloc_ctor(0, 5, 0); +} else { + x_156 = x_135; +} +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_6); +lean_ctor_set(x_156, 2, x_129); +lean_ctor_set(x_156, 3, x_152); +lean_ctor_set(x_156, 4, x_7); +if (lean_is_scalar(x_147)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_147; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_146); +return x_157; +} +} +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; +x_158 = lean_ctor_get(x_7, 0); +lean_inc(x_158); +lean_dec(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_159 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed), 9, 6); +lean_closure_set(x_159, 0, x_1); +lean_closure_set(x_159, 1, x_2); +lean_closure_set(x_159, 2, x_3); +lean_closure_set(x_159, 3, x_4); +lean_closure_set(x_159, 4, x_5); +lean_closure_set(x_159, 5, x_6); +x_160 = lean_ctor_get(x_4, 0); +lean_inc(x_160); +x_161 = l_Lean_Language_Lean_isBeforeEditPos(x_160, x_9, x_10); +lean_dec(x_160); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_unbox(x_162); +lean_dec(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_158); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); +lean_dec(x_161); +x_165 = lean_box(0); +x_166 = l_Lean_Language_Lean_process_parseHeader___lambda__4(x_5, x_159, x_165, x_9, x_164); +lean_dec(x_5); +return x_166; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; +x_167 = lean_ctor_get(x_161, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_168 = x_161; +} else { + lean_dec_ref(x_161); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_158, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_158, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_158, 3); +lean_inc(x_171); +lean_inc(x_170); +x_172 = l_Lean_Syntax_structEq(x_170, x_3); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_171); +lean_dec(x_170); +lean_dec(x_169); +lean_dec(x_168); +lean_dec(x_158); +lean_dec(x_6); +lean_dec(x_4); +x_173 = lean_box(0); +x_174 = l_Lean_Language_Lean_process_parseHeader___lambda__4(x_5, x_159, x_173, x_9, x_167); +lean_dec(x_5); +return x_174; +} +else +{ +lean_dec(x_159); +lean_dec(x_9); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_175; +lean_dec(x_170); +lean_dec(x_169); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_168)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { + x_175 = x_168; +} +lean_ctor_set(x_175, 0, x_158); +lean_ctor_set(x_175, 1, x_167); +return x_175; +} +else +{ +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; 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; uint8_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_168); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + lean_ctor_release(x_158, 2); + lean_ctor_release(x_158, 3); + lean_ctor_release(x_158, 4); + x_176 = x_158; +} else { + lean_dec_ref(x_158); + x_176 = lean_box(0); +} +x_177 = lean_ctor_get(x_171, 0); +lean_inc(x_177); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + x_178 = x_171; +} else { + lean_dec_ref(x_171); + x_178 = lean_box(0); +} +x_179 = lean_ctor_get(x_177, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_181 = x_177; +} else { + lean_dec_ref(x_177); + x_181 = lean_box(0); +} +lean_inc(x_5); +x_182 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_182, 0, x_4); +lean_closure_set(x_182, 1, x_5); +x_183 = lean_ctor_get(x_180, 0); +lean_inc(x_183); +x_184 = 1; +x_185 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_180, x_182, x_183, x_184, x_167); +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_188 = x_185; +} else { + lean_dec_ref(x_185); + x_188 = lean_box(0); +} +x_189 = lean_ctor_get(x_169, 0); +lean_inc(x_189); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_190 = x_169; +} else { + lean_dec_ref(x_169); + x_190 = lean_box(0); +} +x_191 = lean_box(0); +if (lean_is_scalar(x_181)) { + x_192 = lean_alloc_ctor(0, 2, 0); +} else { + x_192 = x_181; +} +lean_ctor_set(x_192, 0, x_179); +lean_ctor_set(x_192, 1, x_186); +if (lean_is_scalar(x_178)) { + x_193 = lean_alloc_ctor(1, 1, 0); +} else { + x_193 = x_178; +} +lean_ctor_set(x_193, 0, x_192); +x_194 = 0; +if (lean_is_scalar(x_190)) { + x_195 = lean_alloc_ctor(0, 2, 1); +} else { + x_195 = x_190; +} +lean_ctor_set(x_195, 0, x_189); +lean_ctor_set(x_195, 1, x_191); +lean_ctor_set_uint8(x_195, sizeof(void*)*2, x_194); +x_196 = lean_ctor_get(x_5, 3); +lean_inc(x_196); +lean_dec(x_5); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_196); +if (lean_is_scalar(x_176)) { + x_198 = lean_alloc_ctor(0, 5, 0); +} else { + x_198 = x_176; +} +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_6); +lean_ctor_set(x_198, 2, x_170); +lean_ctor_set(x_198, 3, x_193); +lean_ctor_set(x_198, 4, x_197); +if (lean_is_scalar(x_188)) { + x_199 = lean_alloc_ctor(0, 2, 0); +} else { + x_199 = x_188; +} +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_187); +return x_199; } } } @@ -7744,7 +7108,7 @@ return x_114; } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__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) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -7759,12 +7123,12 @@ x_11 = lean_ctor_get(x_8, 1); lean_inc(x_11); lean_dec(x_8); lean_inc(x_11); -x_12 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_11); +x_12 = l_Lean_MessageLog_hasErrors(x_11); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Lean_Language_Lean_process_parseHeader___lambda__8(x_11, x_1, x_9, x_10, x_2, x_3, x_4, x_13, x_6, x_7); +x_14 = l_Lean_Language_Lean_process_parseHeader___lambda__7(x_11, x_1, x_9, x_10, x_2, x_3, x_4, x_13, x_6, x_7); return x_14; } else @@ -7773,7 +7137,7 @@ lean_object* x_15; uint8_t x_16; lean_dec(x_10); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_15 = l_Lean_Language_Snapshot_Diagnostics_ofMessageLog(x_11, x_7); x_16 = !lean_is_exclusive(x_15); @@ -7787,11 +7151,12 @@ x_20 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_18); lean_ctor_set_uint8(x_20, sizeof(void*)*2, x_19); -x_21 = lean_alloc_ctor(0, 4, 0); +x_21 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_2); +lean_ctor_set(x_21, 1, x_3); lean_ctor_set(x_21, 2, x_9); lean_ctor_set(x_21, 3, x_18); +lean_ctor_set(x_21, 4, x_18); lean_ctor_set(x_15, 0, x_21); return x_15; } @@ -7809,11 +7174,12 @@ x_26 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_26, 0, x_22); lean_ctor_set(x_26, 1, x_24); lean_ctor_set_uint8(x_26, sizeof(void*)*2, x_25); -x_27 = lean_alloc_ctor(0, 4, 0); +x_27 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_2); +lean_ctor_set(x_27, 1, x_3); lean_ctor_set(x_27, 2, x_9); lean_ctor_set(x_27, 3, x_24); +lean_ctor_set(x_27, 4, x_24); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_23); @@ -7822,7 +7188,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -7832,10 +7198,10 @@ lean_closure_set(x_8, 0, x_1); lean_inc(x_1); x_9 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__2___boxed), 3, 1); lean_closure_set(x_9, 0, x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__9), 7, 4); +x_10 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__8), 7, 4); lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_1); -lean_closure_set(x_10, 2, x_3); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_1); lean_closure_set(x_10, 3, x_4); x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Language_Lean_process_processHeader___spec__2___rarg), 4, 2); lean_closure_set(x_11, 0, x_9); @@ -7854,564 +7220,601 @@ x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); x_6 = lean_box(0); lean_inc(x_3); -x_7 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_5, x_1, x_2, x_3, x_6, x_3, x_4); +x_7 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_5, x_1, x_3, x_2, x_6, x_3, x_4); return x_7; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_3, 0); +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_2, 0); lean_inc(x_8); -x_9 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_8, 3); lean_inc(x_9); -lean_inc(x_9); -x_10 = l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult(x_9); -x_11 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_10, x_4); -if (lean_obj_tag(x_11) == 0) +if (lean_obj_tag(x_9) == 0) { -lean_object* x_12; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -if (lean_obj_tag(x_12) == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_8); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +x_11 = lean_box(0); +lean_inc(x_3); +x_12 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_10, x_1, x_3, x_2, x_11, x_3, x_4); +return x_12; +} +else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_9); -x_13 = lean_ctor_get(x_11, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_3, 0); lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_box(0); -lean_inc(x_3); -x_15 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_8, x_1, x_2, x_3, x_14, x_3, x_13); -return x_15; -} -else -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_12, 0); +x_14 = lean_ctor_get(x_8, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_8, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_9, 0); lean_inc(x_16); -lean_dec(x_12); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_9); -x_17 = lean_ctor_get(x_11, 1); -lean_inc(x_17); -lean_dec(x_11); -x_18 = lean_box(0); -lean_inc(x_3); -x_19 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_8, x_1, x_2, x_3, x_18, x_3, x_17); -return x_19; -} -else +lean_inc(x_8); +x_17 = l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult(x_8); +x_18 = !lean_is_exclusive(x_8); +if (x_18 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_dec(x_11); -x_21 = lean_ctor_get(x_16, 0); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); +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_8, 4); +lean_dec(x_19); +x_20 = lean_ctor_get(x_8, 3); +lean_dec(x_20); +x_21 = lean_ctor_get(x_8, 2); lean_dec(x_21); -x_23 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_22, x_20); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); +x_22 = lean_ctor_get(x_8, 1); +lean_dec(x_22); +x_23 = lean_ctor_get(x_8, 0); +lean_dec(x_23); +x_24 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_17, x_4); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_9); -x_25 = lean_ctor_get(x_23, 1); +lean_object* x_25; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_box(0); -lean_inc(x_3); -x_27 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_8, x_1, x_2, x_3, x_26, x_3, x_25); -return x_27; -} -else +if (lean_obj_tag(x_25) == 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; uint8_t x_35; -x_28 = lean_ctor_get(x_24, 0); -lean_inc(x_28); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); lean_dec(x_24); -x_29 = lean_ctor_get(x_23, 1); -lean_inc(x_29); -lean_dec(x_23); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_ctor_get(x_30, 2); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -lean_dec(x_31); -x_33 = l_Lean_Language_Lean_isBeforeEditPos(x_32, x_3, x_29); -lean_dec(x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_9); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_box(0); +x_27 = lean_box(0); lean_inc(x_3); -x_38 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_8, x_1, x_2, x_3, x_37, x_3, x_36); -return x_38; +x_28 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_27, x_3, x_26); +return x_28; } else { -lean_object* x_39; +lean_object* x_29; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +lean_dec(x_25); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +x_31 = lean_box(0); +lean_inc(x_3); +x_32 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_31, x_3, x_30); +return x_32; +} +else +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_dec(x_24); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_36, x_33); +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_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_box(0); +lean_inc(x_3); +x_41 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_40, x_3, x_39); +return x_41; +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_38); +if (x_42 == 0) +{ +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; uint8_t x_50; +x_43 = lean_ctor_get(x_38, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_dec(x_37); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_ctor_get(x_45, 2); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l_Lean_Language_Lean_isBeforeEditPos(x_47, x_3, x_44); +lean_dec(x_47); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_unbox(x_49); +lean_dec(x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_free_object(x_38); +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_box(0); +lean_inc(x_3); +x_53 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_52, x_3, x_51); +return x_53; +} +else +{ +lean_object* x_54; uint8_t x_55; lean_dec(x_2); lean_dec(x_1); -x_39 = lean_ctor_get(x_9, 3); -lean_inc(x_39); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -lean_dec(x_8); -lean_dec(x_3); -x_40 = !lean_is_exclusive(x_33); -if (x_40 == 0) -{ -lean_object* x_41; -x_41 = lean_ctor_get(x_33, 0); -lean_dec(x_41); -lean_ctor_set(x_33, 0, x_9); -return x_33; -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_dec(x_33); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_9); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_39); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_39, 0); -x_46 = lean_ctor_get(x_33, 1); -lean_inc(x_46); -lean_dec(x_33); -x_47 = !lean_is_exclusive(x_9); -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; uint8_t x_55; -x_48 = lean_ctor_get(x_9, 0); -x_49 = lean_ctor_get(x_9, 2); -x_50 = lean_ctor_get(x_9, 3); -lean_dec(x_50); -x_51 = lean_ctor_get(x_9, 1); -lean_dec(x_51); -x_52 = lean_ctor_get(x_45, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_45, 1); -lean_inc(x_53); -lean_inc(x_45); -x_54 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_54, 0, x_45); -lean_closure_set(x_54, 1, x_3); -x_55 = !lean_is_exclusive(x_45); +x_54 = lean_ctor_get(x_48, 1); +lean_inc(x_54); +lean_dec(x_48); +x_55 = !lean_is_exclusive(x_16); if (x_55 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_45, 1); -lean_dec(x_56); -x_57 = lean_ctor_get(x_45, 0); -lean_dec(x_57); -x_58 = lean_ctor_get(x_53, 0); -lean_inc(x_58); -x_59 = 1; -x_60 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_53, x_54, x_58, x_59, x_46); -if (lean_obj_tag(x_60) == 0) +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_16, 0); +x_57 = lean_ctor_get(x_16, 1); +lean_inc(x_3); +lean_inc(x_56); +x_58 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_58, 0, x_56); +lean_closure_set(x_58, 1, x_3); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +x_60 = 1; +x_61 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_57, x_58, x_59, x_60, x_54); +if (lean_obj_tag(x_61) == 0) { -uint8_t x_61; -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +uint8_t x_62; +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) { -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); -lean_ctor_set(x_45, 1, x_62); -lean_ctor_set(x_9, 1, x_8); -lean_ctor_set(x_60, 0, x_9); -return x_60; -} -else +uint8_t x_63; +x_63 = !lean_is_exclusive(x_14); +if (x_63 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_60, 0); -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_60); -lean_ctor_set(x_45, 1, x_63); -lean_ctor_set(x_9, 1, x_8); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_9); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -else -{ -uint8_t x_66; -lean_free_object(x_45); -lean_dec(x_52); -lean_free_object(x_9); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_39); -lean_dec(x_8); -x_66 = !lean_is_exclusive(x_60); -if (x_66 == 0) -{ -return x_60; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_60, 0); -x_68 = lean_ctor_get(x_60, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_61, 0); +x_65 = lean_ctor_get(x_14, 1); +lean_dec(x_65); +x_66 = lean_box(0); +lean_ctor_set(x_16, 1, x_64); +lean_ctor_set(x_38, 0, x_16); +x_67 = 0; +lean_ctor_set(x_14, 1, x_66); +lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_67); +x_68 = lean_ctor_get(x_3, 3); lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_60); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} +lean_dec(x_3); +lean_ctor_set(x_29, 0, x_68); +lean_ctor_set(x_8, 4, x_29); +lean_ctor_set(x_8, 3, x_38); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_61, 0, x_8); +return x_61; } else { -lean_object* x_70; uint8_t x_71; lean_object* x_72; -lean_dec(x_45); -x_70 = lean_ctor_get(x_53, 0); +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_69 = lean_ctor_get(x_61, 0); +x_70 = lean_ctor_get(x_14, 0); lean_inc(x_70); -x_71 = 1; -x_72 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_53, x_54, x_70, x_71, x_46); -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, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); +lean_dec(x_14); +x_71 = lean_box(0); +lean_ctor_set(x_16, 1, x_69); +lean_ctor_set(x_38, 0, x_16); +x_72 = 0; +x_73 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +lean_ctor_set_uint8(x_73, sizeof(void*)*2, x_72); +x_74 = lean_ctor_get(x_3, 3); lean_inc(x_74); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_75 = x_72; -} else { - lean_dec_ref(x_72); - x_75 = lean_box(0); +lean_dec(x_3); +lean_ctor_set(x_29, 0, x_74); +lean_ctor_set(x_8, 4, x_29); +lean_ctor_set(x_8, 3, x_38); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_8, 0, x_73); +lean_ctor_set(x_61, 0, x_8); +return x_61; } -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_52); -lean_ctor_set(x_76, 1, x_73); -lean_ctor_set(x_39, 0, x_76); -lean_ctor_set(x_9, 1, x_8); -if (lean_is_scalar(x_75)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_75; -} -lean_ctor_set(x_77, 0, x_9); -lean_ctor_set(x_77, 1, x_74); -return x_77; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_52); -lean_free_object(x_9); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_39); -lean_dec(x_8); -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; +lean_object* 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; lean_object* x_83; +x_75 = lean_ctor_get(x_61, 0); +x_76 = lean_ctor_get(x_61, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_61); +x_77 = lean_ctor_get(x_14, 0); +lean_inc(x_77); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_78 = x_14; } else { - lean_dec_ref(x_72); - x_80 = lean_box(0); + lean_dec_ref(x_14); + x_78 = lean_box(0); } -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); +x_79 = lean_box(0); +lean_ctor_set(x_16, 1, x_75); +lean_ctor_set(x_38, 0, x_16); +x_80 = 0; +if (lean_is_scalar(x_78)) { + x_81 = lean_alloc_ctor(0, 2, 1); } else { - x_81 = x_80; + x_81 = x_78; } -lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 0, x_77); lean_ctor_set(x_81, 1, x_79); -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; lean_object* x_88; uint8_t x_89; lean_object* x_90; -x_82 = lean_ctor_get(x_9, 0); -x_83 = lean_ctor_get(x_9, 2); -lean_inc(x_83); +lean_ctor_set_uint8(x_81, sizeof(void*)*2, x_80); +x_82 = lean_ctor_get(x_3, 3); lean_inc(x_82); -lean_dec(x_9); -x_84 = lean_ctor_get(x_45, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_45, 1); +lean_dec(x_3); +lean_ctor_set(x_29, 0, x_82); +lean_ctor_set(x_8, 4, x_29); +lean_ctor_set(x_8, 3, x_38); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_8, 0, x_81); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_8); +lean_ctor_set(x_83, 1, x_76); +return x_83; +} +} +else +{ +uint8_t x_84; +lean_free_object(x_16); +lean_dec(x_56); +lean_free_object(x_38); +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +x_84 = !lean_is_exclusive(x_61); +if (x_84 == 0) +{ +return x_61; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_61, 0); +x_86 = lean_ctor_get(x_61, 1); +lean_inc(x_86); lean_inc(x_85); -lean_inc(x_45); -x_86 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_86, 0, x_45); -lean_closure_set(x_86, 1, x_3); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_87 = x_45; -} else { - lean_dec_ref(x_45); - x_87 = lean_box(0); +lean_dec(x_61); +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; } -x_88 = lean_ctor_get(x_85, 0); +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; +x_88 = lean_ctor_get(x_16, 0); +x_89 = lean_ctor_get(x_16, 1); +lean_inc(x_89); lean_inc(x_88); -x_89 = 1; -x_90 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_85, x_86, x_88, x_89, x_46); -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; lean_object* x_96; -x_91 = lean_ctor_get(x_90, 0); +lean_dec(x_16); +lean_inc(x_3); +lean_inc(x_88); +x_90 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_90, 0, x_88); +lean_closure_set(x_90, 1, x_3); +x_91 = lean_ctor_get(x_89, 0); lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_93 = x_90; -} else { - lean_dec_ref(x_90); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_87)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_87; -} -lean_ctor_set(x_94, 0, x_84); -lean_ctor_set(x_94, 1, x_91); -lean_ctor_set(x_39, 0, x_94); -x_95 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_95, 0, x_82); -lean_ctor_set(x_95, 1, x_8); -lean_ctor_set(x_95, 2, x_83); -lean_ctor_set(x_95, 3, x_39); -if (lean_is_scalar(x_93)) { - x_96 = lean_alloc_ctor(0, 2, 0); -} else { +x_92 = 1; +x_93 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_89, x_90, x_91, x_92, x_54); +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; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); x_96 = x_93; +} else { + lean_dec_ref(x_93); + x_96 = lean_box(0); } -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_92); -return x_96; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_87); -lean_dec(x_84); -lean_dec(x_83); -lean_dec(x_82); -lean_free_object(x_39); -lean_dec(x_8); -x_97 = lean_ctor_get(x_90, 0); +x_97 = lean_ctor_get(x_14, 0); lean_inc(x_97); -x_98 = lean_ctor_get(x_90, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_99 = x_90; +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_98 = x_14; } else { - lean_dec_ref(x_90); - x_99 = lean_box(0); + lean_dec_ref(x_14); + x_98 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); +x_99 = lean_box(0); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_88); +lean_ctor_set(x_100, 1, x_94); +lean_ctor_set(x_38, 0, x_100); +x_101 = 0; +if (lean_is_scalar(x_98)) { + x_102 = lean_alloc_ctor(0, 2, 1); } else { - x_100 = x_99; + x_102 = x_98; +} +lean_ctor_set(x_102, 0, x_97); +lean_ctor_set(x_102, 1, x_99); +lean_ctor_set_uint8(x_102, sizeof(void*)*2, x_101); +x_103 = lean_ctor_get(x_3, 3); +lean_inc(x_103); +lean_dec(x_3); +lean_ctor_set(x_29, 0, x_103); +lean_ctor_set(x_8, 4, x_29); +lean_ctor_set(x_8, 3, x_38); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_8, 0, x_102); +if (lean_is_scalar(x_96)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_96; +} +lean_ctor_set(x_104, 0, x_8); +lean_ctor_set(x_104, 1, x_95); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_88); +lean_free_object(x_38); +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +x_105 = lean_ctor_get(x_93, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_93, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_107 = x_93; +} else { + lean_dec_ref(x_93); + 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_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; } -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_98); -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_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; -x_101 = lean_ctor_get(x_39, 0); -lean_inc(x_101); -lean_dec(x_39); -x_102 = lean_ctor_get(x_33, 1); -lean_inc(x_102); -lean_dec(x_33); -x_103 = lean_ctor_get(x_9, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_9, 2); -lean_inc(x_104); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - lean_ctor_release(x_9, 2); - lean_ctor_release(x_9, 3); - x_105 = x_9; -} else { - lean_dec_ref(x_9); - x_105 = lean_box(0); -} -x_106 = lean_ctor_get(x_101, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -lean_inc(x_101); -x_108 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__7), 4, 2); -lean_closure_set(x_108, 0, x_101); -lean_closure_set(x_108, 1, x_3); -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_107, 0); +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; uint8_t x_116; +x_109 = lean_ctor_get(x_38, 0); +lean_inc(x_109); +lean_dec(x_38); +x_110 = lean_ctor_get(x_37, 1); lean_inc(x_110); -x_111 = 1; -x_112 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_107, x_108, x_110, x_111, x_102); -if (lean_obj_tag(x_112) == 0) -{ -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_dec(x_37); +x_111 = lean_ctor_get(x_109, 0); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_ctor_get(x_111, 2); +lean_inc(x_112); +lean_dec(x_111); x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; -} else { - lean_dec_ref(x_112); - x_115 = lean_box(0); -} -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_106); -lean_ctor_set(x_116, 1, x_113); -x_117 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_117, 0, x_116); -if (lean_is_scalar(x_105)) { - x_118 = lean_alloc_ctor(0, 4, 0); -} else { - x_118 = x_105; -} -lean_ctor_set(x_118, 0, x_103); -lean_ctor_set(x_118, 1, x_8); -lean_ctor_set(x_118, 2, x_104); -lean_ctor_set(x_118, 3, x_117); -if (lean_is_scalar(x_115)) { - x_119 = lean_alloc_ctor(0, 2, 0); -} else { - x_119 = x_115; -} -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_114); +lean_dec(x_112); +x_114 = l_Lean_Language_Lean_isBeforeEditPos(x_113, x_3, x_110); +lean_dec(x_113); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_unbox(x_115); +lean_dec(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_dec(x_114); +x_118 = lean_box(0); +lean_inc(x_3); +x_119 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_118, x_3, x_117); return x_119; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_109); -lean_dec(x_106); -lean_dec(x_105); -lean_dec(x_104); -lean_dec(x_103); -lean_dec(x_8); -x_120 = lean_ctor_get(x_112, 0); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; +lean_dec(x_2); +lean_dec(x_1); +x_120 = lean_ctor_get(x_114, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_112, 1); +lean_dec(x_114); +x_121 = lean_ctor_get(x_16, 0); lean_inc(x_121); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_122 = x_112; +x_122 = lean_ctor_get(x_16, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_123 = x_16; } else { - lean_dec_ref(x_112); - x_122 = lean_box(0); + lean_dec_ref(x_16); + x_123 = 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); -return x_123; -} -} -} -} -} -} -else -{ -uint8_t x_124; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_124 = !lean_is_exclusive(x_23); -if (x_124 == 0) -{ -return x_23; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_23, 0); -x_126 = lean_ctor_get(x_23, 1); -lean_inc(x_126); +lean_inc(x_3); +lean_inc(x_121); +x_124 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_124, 0, x_121); +lean_closure_set(x_124, 1, x_3); +x_125 = lean_ctor_get(x_122, 0); lean_inc(x_125); -lean_dec(x_23); -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; +x_126 = 1; +x_127 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_122, x_124, x_125, x_126, x_120); +if (lean_obj_tag(x_127) == 0) +{ +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; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; +} else { + lean_dec_ref(x_127); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_14, 0); +lean_inc(x_131); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_132 = x_14; +} else { + lean_dec_ref(x_14); + x_132 = lean_box(0); +} +x_133 = lean_box(0); +if (lean_is_scalar(x_123)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_123; +} +lean_ctor_set(x_134, 0, x_121); +lean_ctor_set(x_134, 1, x_128); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_134); +x_136 = 0; +if (lean_is_scalar(x_132)) { + x_137 = lean_alloc_ctor(0, 2, 1); +} else { + x_137 = x_132; +} +lean_ctor_set(x_137, 0, x_131); +lean_ctor_set(x_137, 1, x_133); +lean_ctor_set_uint8(x_137, sizeof(void*)*2, x_136); +x_138 = lean_ctor_get(x_3, 3); +lean_inc(x_138); +lean_dec(x_3); +lean_ctor_set(x_29, 0, x_138); +lean_ctor_set(x_8, 4, x_29); +lean_ctor_set(x_8, 3, x_135); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_8, 0, x_137); +if (lean_is_scalar(x_130)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_130; +} +lean_ctor_set(x_139, 0, x_8); +lean_ctor_set(x_139, 1, x_129); +return x_139; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_123); +lean_dec(x_121); +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +x_140 = lean_ctor_get(x_127, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_127, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_142 = x_127; +} else { + lean_dec_ref(x_127); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; } } } @@ -8419,29 +7822,640 @@ return x_127; } else { -uint8_t x_128; -lean_dec(x_9); -lean_dec(x_8); +uint8_t x_144; +lean_free_object(x_29); +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_128 = !lean_is_exclusive(x_11); -if (x_128 == 0) +x_144 = !lean_is_exclusive(x_37); +if (x_144 == 0) { -return x_11; +return x_37; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_11, 0); -x_130 = lean_ctor_get(x_11, 1); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_11); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_37, 0); +x_146 = lean_ctor_get(x_37, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_37); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_29, 0); +lean_inc(x_148); +lean_dec(x_29); +x_149 = lean_ctor_get(x_148, 1); +lean_inc(x_149); +lean_dec(x_148); +x_150 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_149, x_33); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; +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_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = lean_box(0); +lean_inc(x_3); +x_154 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_153, x_3, x_152); +return x_154; +} +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; uint8_t x_163; +x_155 = lean_ctor_get(x_151, 0); +lean_inc(x_155); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + x_156 = x_151; +} else { + lean_dec_ref(x_151); + x_156 = lean_box(0); +} +x_157 = lean_ctor_get(x_150, 1); +lean_inc(x_157); +lean_dec(x_150); +x_158 = lean_ctor_get(x_155, 0); +lean_inc(x_158); +lean_dec(x_155); +x_159 = lean_ctor_get(x_158, 2); +lean_inc(x_159); +lean_dec(x_158); +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +lean_dec(x_159); +x_161 = l_Lean_Language_Lean_isBeforeEditPos(x_160, x_3, x_157); +lean_dec(x_160); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_unbox(x_162); +lean_dec(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_156); +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); +lean_dec(x_161); +x_165 = lean_box(0); +lean_inc(x_3); +x_166 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_165, x_3, x_164); +return x_166; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; +lean_dec(x_2); +lean_dec(x_1); +x_167 = lean_ctor_get(x_161, 1); +lean_inc(x_167); +lean_dec(x_161); +x_168 = lean_ctor_get(x_16, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_16, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_170 = x_16; +} else { + lean_dec_ref(x_16); + x_170 = lean_box(0); +} +lean_inc(x_3); +lean_inc(x_168); +x_171 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_171, 0, x_168); +lean_closure_set(x_171, 1, x_3); +x_172 = lean_ctor_get(x_169, 0); +lean_inc(x_172); +x_173 = 1; +x_174 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_169, x_171, x_172, x_173, 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; lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +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; +} else { + lean_dec_ref(x_174); + x_177 = lean_box(0); +} +x_178 = lean_ctor_get(x_14, 0); +lean_inc(x_178); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_179 = x_14; +} else { + lean_dec_ref(x_14); + x_179 = lean_box(0); +} +x_180 = lean_box(0); +if (lean_is_scalar(x_170)) { + x_181 = lean_alloc_ctor(0, 2, 0); +} else { + x_181 = x_170; +} +lean_ctor_set(x_181, 0, x_168); +lean_ctor_set(x_181, 1, x_175); +if (lean_is_scalar(x_156)) { + x_182 = lean_alloc_ctor(1, 1, 0); +} else { + x_182 = x_156; +} +lean_ctor_set(x_182, 0, x_181); +x_183 = 0; +if (lean_is_scalar(x_179)) { + x_184 = lean_alloc_ctor(0, 2, 1); +} else { + x_184 = x_179; +} +lean_ctor_set(x_184, 0, x_178); +lean_ctor_set(x_184, 1, x_180); +lean_ctor_set_uint8(x_184, sizeof(void*)*2, x_183); +x_185 = lean_ctor_get(x_3, 3); +lean_inc(x_185); +lean_dec(x_3); +x_186 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_8, 4, x_186); +lean_ctor_set(x_8, 3, x_182); +lean_ctor_set(x_8, 1, x_13); +lean_ctor_set(x_8, 0, x_184); +if (lean_is_scalar(x_177)) { + x_187 = lean_alloc_ctor(0, 2, 0); +} else { + x_187 = x_177; +} +lean_ctor_set(x_187, 0, x_8); +lean_ctor_set(x_187, 1, x_176); +return x_187; +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_170); +lean_dec(x_168); +lean_dec(x_156); +lean_free_object(x_8); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +x_188 = lean_ctor_get(x_174, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_174, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_190 = x_174; +} else { + lean_dec_ref(x_174); + x_190 = lean_box(0); +} +if (lean_is_scalar(x_190)) { + x_191 = lean_alloc_ctor(1, 2, 0); +} else { + x_191 = x_190; +} +lean_ctor_set(x_191, 0, x_188); +lean_ctor_set(x_191, 1, x_189); +return x_191; +} +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_192 = lean_ctor_get(x_150, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_150, 1); +lean_inc(x_193); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_194 = x_150; +} else { + lean_dec_ref(x_150); + x_194 = lean_box(0); +} +if (lean_is_scalar(x_194)) { + x_195 = lean_alloc_ctor(1, 2, 0); +} else { + x_195 = x_194; +} +lean_ctor_set(x_195, 0, x_192); +lean_ctor_set(x_195, 1, x_193); +return x_195; +} +} +} +} +} +else +{ +uint8_t x_196; +lean_free_object(x_8); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_196 = !lean_is_exclusive(x_24); +if (x_196 == 0) +{ +return x_24; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_24, 0); +x_198 = lean_ctor_get(x_24, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_24); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +return x_199; +} +} +} +else +{ +lean_object* x_200; +lean_dec(x_8); +x_200 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_17, x_4); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; +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_16); +lean_dec(x_15); +lean_dec(x_14); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_box(0); +lean_inc(x_3); +x_204 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_203, x_3, x_202); +return x_204; +} +else +{ +lean_object* x_205; +x_205 = lean_ctor_get(x_201, 0); +lean_inc(x_205); +lean_dec(x_201); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_206 = lean_ctor_get(x_200, 1); +lean_inc(x_206); +lean_dec(x_200); +x_207 = lean_box(0); +lean_inc(x_3); +x_208 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_207, x_3, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_209 = lean_ctor_get(x_200, 1); +lean_inc(x_209); +lean_dec(x_200); +x_210 = lean_ctor_get(x_205, 0); +lean_inc(x_210); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + x_211 = x_205; +} else { + lean_dec_ref(x_205); + x_211 = lean_box(0); +} +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_213 = l_Lean_Language_SnapshotTask_get_x3f___rarg(x_212, x_209); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_211); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +lean_dec(x_213); +x_216 = lean_box(0); +lean_inc(x_3); +x_217 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_216, x_3, x_215); +return x_217; +} +else +{ +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; uint8_t x_226; +x_218 = lean_ctor_get(x_214, 0); +lean_inc(x_218); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + x_219 = x_214; +} else { + lean_dec_ref(x_214); + x_219 = lean_box(0); +} +x_220 = lean_ctor_get(x_213, 1); +lean_inc(x_220); +lean_dec(x_213); +x_221 = lean_ctor_get(x_218, 0); +lean_inc(x_221); +lean_dec(x_218); +x_222 = lean_ctor_get(x_221, 2); +lean_inc(x_222); +lean_dec(x_221); +x_223 = lean_ctor_get(x_222, 0); +lean_inc(x_223); +lean_dec(x_222); +x_224 = l_Lean_Language_Lean_isBeforeEditPos(x_223, x_3, x_220); +lean_dec(x_223); +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_unbox(x_225); +lean_dec(x_225); +if (x_226 == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_219); +lean_dec(x_211); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_227 = lean_ctor_get(x_224, 1); +lean_inc(x_227); +lean_dec(x_224); +x_228 = lean_box(0); +lean_inc(x_3); +x_229 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_13, x_1, x_3, x_2, x_228, x_3, x_227); +return x_229; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; uint8_t x_236; lean_object* x_237; +lean_dec(x_2); +lean_dec(x_1); +x_230 = lean_ctor_get(x_224, 1); +lean_inc(x_230); +lean_dec(x_224); +x_231 = lean_ctor_get(x_16, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_16, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_233 = x_16; +} else { + lean_dec_ref(x_16); + x_233 = lean_box(0); +} +lean_inc(x_3); +lean_inc(x_231); +x_234 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader___lambda__6), 4, 2); +lean_closure_set(x_234, 0, x_231); +lean_closure_set(x_234, 1, x_3); +x_235 = lean_ctor_get(x_232, 0); +lean_inc(x_235); +x_236 = 1; +x_237 = l_Lean_Language_SnapshotTask_bindIO___rarg(x_232, x_234, x_235, x_236, x_230); +if (lean_obj_tag(x_237) == 0) +{ +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; uint8_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_240 = x_237; +} else { + lean_dec_ref(x_237); + x_240 = lean_box(0); +} +x_241 = lean_ctor_get(x_14, 0); +lean_inc(x_241); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_242 = x_14; +} else { + lean_dec_ref(x_14); + x_242 = lean_box(0); +} +x_243 = lean_box(0); +if (lean_is_scalar(x_233)) { + x_244 = lean_alloc_ctor(0, 2, 0); +} else { + x_244 = x_233; +} +lean_ctor_set(x_244, 0, x_231); +lean_ctor_set(x_244, 1, x_238); +if (lean_is_scalar(x_219)) { + x_245 = lean_alloc_ctor(1, 1, 0); +} else { + x_245 = x_219; +} +lean_ctor_set(x_245, 0, x_244); +x_246 = 0; +if (lean_is_scalar(x_242)) { + x_247 = lean_alloc_ctor(0, 2, 1); +} else { + x_247 = x_242; +} +lean_ctor_set(x_247, 0, x_241); +lean_ctor_set(x_247, 1, x_243); +lean_ctor_set_uint8(x_247, sizeof(void*)*2, x_246); +x_248 = lean_ctor_get(x_3, 3); +lean_inc(x_248); +lean_dec(x_3); +if (lean_is_scalar(x_211)) { + x_249 = lean_alloc_ctor(1, 1, 0); +} else { + x_249 = x_211; +} +lean_ctor_set(x_249, 0, x_248); +x_250 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_250, 0, x_247); +lean_ctor_set(x_250, 1, x_13); +lean_ctor_set(x_250, 2, x_15); +lean_ctor_set(x_250, 3, x_245); +lean_ctor_set(x_250, 4, x_249); +if (lean_is_scalar(x_240)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_240; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_239); +return x_251; +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_233); +lean_dec(x_231); +lean_dec(x_219); +lean_dec(x_211); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +x_252 = lean_ctor_get(x_237, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_237, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_254 = x_237; +} else { + lean_dec_ref(x_237); + x_254 = lean_box(0); +} +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); +} else { + x_255 = x_254; +} +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +return x_255; +} +} +} +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +lean_dec(x_211); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_256 = lean_ctor_get(x_213, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_213, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_258 = x_213; +} else { + lean_dec_ref(x_213); + x_258 = lean_box(0); +} +if (lean_is_scalar(x_258)) { + x_259 = lean_alloc_ctor(1, 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_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_260 = lean_ctor_get(x_200, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_200, 1); +lean_inc(x_261); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_262 = x_200; +} else { + lean_dec_ref(x_200); + x_262 = lean_box(0); +} +if (lean_is_scalar(x_262)) { + x_263 = lean_alloc_ctor(1, 2, 0); +} else { + x_263 = x_262; +} +lean_ctor_set(x_263, 0, x_260); +lean_ctor_set(x_263, 1, x_261); +return x_263; +} } } } @@ -8456,29 +8470,31 @@ lean_dec(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; -x_9 = l_Lean_Language_Lean_process_parseHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -return x_9; +lean_object* x_10; +x_10 = l_Lean_Language_Lean_process_parseHeader___lambda__3(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_5); +return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5___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_Lean_Language_Lean_process_parseHeader___lambda__4___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_Lean_Language_Lean_process_parseHeader___lambda__5(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Language_Lean_process_parseHeader___lambda__4(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_Lean_Language_Lean_process_parseHeader___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_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___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) { _start: { lean_object* x_8; -x_8 = l_Lean_Language_Lean_process_parseHeader___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Language_Lean_process_parseHeader___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_5); return x_8; } @@ -8486,40 +8502,115 @@ return x_8; LEAN_EXPORT lean_object* l_Lean_Language_Lean_process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { +lean_object* x_5; +lean_inc(x_2); +x_5 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseHeader), 4, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); if (lean_obj_tag(x_2) == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_5); -x_7 = l_Lean_Language_Lean_process_parseHeader(x_1, x_2, x_6, x_4); +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_5, x_6, x_6, x_3, x_4); return x_7; } 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; -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_ctor_get(x_9, 0); +uint8_t x_8; +x_8 = !lean_is_exclusive(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_2, 0); +x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_ctor_get(x_3, 0); +lean_ctor_set(x_2, 0, x_10); +x_11 = lean_ctor_get(x_9, 4); lean_inc(x_11); -x_12 = l_String_firstDiffPos(x_10, x_11); -lean_dec(x_11); +lean_dec(x_9); +x_12 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_5, x_2, x_11, x_3, x_4); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +lean_dec(x_2); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_ctor_get(x_13, 4); +lean_inc(x_16); +lean_dec(x_13); +x_17 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_5, x_15, x_16, x_3, x_4); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Language_Lean_processCommands(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 = lean_box(0); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd), 5, 3); +lean_closure_set(x_7, 0, x_6); +lean_closure_set(x_7, 1, x_2); +lean_closure_set(x_7, 2, x_3); +x_8 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_7, x_6, x_6, x_1, x_5); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +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; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_ctor_set(x_4, 0, x_11); +x_12 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd), 5, 3); +lean_closure_set(x_12, 0, x_4); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); lean_dec(x_10); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Language_Lean_process_parseHeader(x_1, x_2, x_14, x_4); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_12, x_14, x_6, x_1, x_5); return x_15; } +else +{ +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; +x_16 = lean_ctor_get(x_4, 0); +lean_inc(x_16); +lean_dec(x_4); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_parseCmd), 5, 3); +lean_closure_set(x_19, 0, x_18); +lean_closure_set(x_19, 1, x_2); +lean_closure_set(x_19, 2, x_3); +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_Language_Lean_LeanProcessingM_run___rarg(x_19, x_21, x_6, x_1, x_5); +return x_22; +} +} } } LEAN_EXPORT lean_object* l_Lean_Language_Lean_waitForFinalEnv_x3f_goCmd(lean_object* x_1) { @@ -8651,23 +8742,6 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Language_Lean_stderrAsMessages = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Language_Lean_stderrAsMessages); lean_dec_ref(res); -}l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__1); -l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__2); -l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__3); -l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__4); -l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__5); -l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6 = _init_l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6(); -lean_mark_persistent(l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71____closed__6); -if (builtin) {res = l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_71_(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -l_Lean_Language_Lean_showPartialSyntaxErrors = lean_io_result_get_value(res); -lean_mark_persistent(l_Lean_Language_Lean_showPartialSyntaxErrors); -lean_dec_ref(res); }l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot___closed__1 = _init_l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot___closed__1(); lean_mark_persistent(l_Lean_Language_Lean_instToSnapshotTreeCommandFinishedSnapshot___closed__1); l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__1 = _init_l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__1(); @@ -8680,8 +8754,6 @@ l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__4 = _i lean_mark_persistent(l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go___closed__4); l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot = _init_l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot(); lean_mark_persistent(l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot); -l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1 = _init_l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1(); -lean_mark_persistent(l_Lean_Language_Lean_CommandParsedSnapshot_cancel___closed__1); l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot___closed__1 = _init_l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot___closed__1(); lean_mark_persistent(l_Lean_Language_Lean_instToSnapshotTreeHeaderProcessedSnapshot___closed__1); l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___closed__1 = _init_l_Lean_Language_Lean_HeaderParsedSnapshot_processedResult___closed__1(); @@ -8699,44 +8771,18 @@ l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___c lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__4); l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__5 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__5(); lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_doElab___spec__1___closed__5); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__1); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__2); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__3); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__4); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__5); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__6); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__7); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___lambda__1___closed__8); -l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Language_Lean_process_doElab___spec__10___closed__1); -l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1 = _init_l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1(); -lean_mark_persistent(l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_Language_Lean_process_doElab___spec__7___closed__1); l_Lean_Language_Lean_process_doElab___lambda__2___closed__1 = _init_l_Lean_Language_Lean_process_doElab___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__2___closed__1); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__1 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__1); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__2 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__2); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__3 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__3(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__3); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__4 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__4(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__4); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__5 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__5(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__5); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__6 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__6(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__6); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__7 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__7(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__7); -l_Lean_Language_Lean_process_doElab___lambda__4___closed__8 = _init_l_Lean_Language_Lean_process_doElab___lambda__4___closed__8(); -lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__4___closed__8); +l_Lean_Language_Lean_process_doElab___lambda__3___closed__1 = _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__3___closed__1); +l_Lean_Language_Lean_process_doElab___lambda__3___closed__2 = _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__3___closed__2); +l_Lean_Language_Lean_process_doElab___lambda__3___closed__3 = _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__3___closed__3); +l_Lean_Language_Lean_process_doElab___lambda__3___closed__4 = _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__3___closed__4); +l_Lean_Language_Lean_process_doElab___lambda__3___closed__5 = _init_l_Lean_Language_Lean_process_doElab___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Language_Lean_process_doElab___lambda__3___closed__5); l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1 = _init_l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1); l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__1 = _init_l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__1(); @@ -8777,10 +8823,6 @@ l_Lean_Language_Lean_process_processHeader___lambda__3___closed__12 = _init_l_Le lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__3___closed__12); l_Lean_Language_Lean_process_processHeader___closed__1 = _init_l_Lean_Language_Lean_process_processHeader___closed__1(); lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___closed__1); -l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1 = _init_l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Language_Lean_process_parseHeader___lambda__4___closed__1); -l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1 = _init_l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Language_Lean_process_parseHeader___lambda__5___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Linter/UnusedVariables.c b/stage0/stdlib/Lean/Linter/UnusedVariables.c index c9bac7d732..52b9b842db 100644 --- a/stage0/stdlib/Lean/Linter/UnusedVariables.c +++ b/stage0/stdlib/Lean/Linter/UnusedVariables.c @@ -389,7 +389,6 @@ static lean_object* l_Array_qsort_sort___at_Lean_Linter_UnusedVariables_unusedVa static lean_object* l_Lean_Elab_InfoTree_visitM_go___at_Lean_Linter_UnusedVariables_collectReferences___spec__23___closed__4; static lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_1273____lambda__1___closed__5; LEAN_EXPORT uint8_t l_Lean_MessageData_isUnusedVariableWarning(lean_object*); -uint8_t l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_visitAssignments_visitNode___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_2420____lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_1009_(lean_object*); @@ -516,7 +515,6 @@ lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Linter_UnusedVariables_References_constDecls___default; LEAN_EXPORT lean_object* l_Lean_Linter_mkIgnoreFnImpl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_collectReferences___spec__26___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Linter_logLint___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_1009____lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); @@ -668,6 +666,7 @@ static lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hy LEAN_EXPORT lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_378____lambda__2(lean_object*, lean_object*); static lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_975____closed__1; static lean_object* l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_2688____lambda__1___closed__2; +uint8_t l_Lean_MessageLog_hasErrors(lean_object*); static lean_object* _init_l_Lean_Linter_initFn____x40_Lean_Linter_UnusedVariables___hyg_9____closed__1() { _start: { @@ -15346,6 +15345,7 @@ x_8 = lean_usize_dec_lt(x_3, x_2); if (x_8 == 0) { lean_object* x_9; +lean_dec(x_6); lean_dec(x_5); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_4); @@ -15373,9 +15373,9 @@ x_17 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_17, 0, x_10); lean_ctor_set(x_17, 1, x_16); x_18 = l_Lean_Linter_getLinterUnusedVariables___closed__1; +lean_inc(x_6); lean_inc(x_5); x_19 = l_Lean_Linter_logLint___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__20(x_18, x_12, x_17, x_5, x_6, x_7); -lean_dec(x_12); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); @@ -15405,9 +15405,9 @@ x_31 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); x_32 = l_Lean_Linter_getLinterUnusedVariables___closed__1; +lean_inc(x_6); lean_inc(x_5); x_33 = l_Lean_Linter_logLint___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__20(x_32, x_25, x_31, x_5, x_6, x_7); -lean_dec(x_25); x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); @@ -15800,7 +15800,6 @@ x_38 = lean_usize_of_nat(x_37); lean_dec(x_37); x_39 = lean_box(0); x_40 = l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__21(x_36, x_38, x_27, x_39, x_9, x_10, x_30); -lean_dec(x_10); lean_dec(x_36); x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) @@ -15895,7 +15894,6 @@ x_69 = lean_usize_of_nat(x_68); lean_dec(x_68); x_70 = lean_box(0); x_71 = l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__21(x_67, x_69, x_58, x_70, x_9, x_10, x_61); -lean_dec(x_10); lean_dec(x_67); x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); @@ -16378,7 +16376,7 @@ x_9 = lean_ctor_get(x_6, 1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_10); +x_11 = l_Lean_MessageLog_hasErrors(x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; @@ -16409,7 +16407,7 @@ lean_dec(x_6); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_17); +x_18 = l_Lean_MessageLog_hasErrors(x_17); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; @@ -16899,16 +16897,6 @@ lean_dec(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Linter_logLint___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Linter_logLint___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__20(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_2); -return x_7; -} -} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__21___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: { @@ -16918,7 +16906,6 @@ lean_dec(x_2); x_9 = lean_unbox_usize(x_3); lean_dec(x_3); x_10 = l_Array_forInUnsafe_loop___at_Lean_Linter_UnusedVariables_unusedVariables___elambda__1___spec__21(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); lean_dec(x_1); return x_10; } diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index bc965ec2a3..f030005f9d 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -19,7 +19,6 @@ LEAN_EXPORT uint8_t l_Lean_instInhabitedMessageSeverity; static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__25; LEAN_EXPORT lean_object* l_Lean_instToMessageDataOptionExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs___default; static lean_object* l_Lean_MessageData_instCoeExpr___closed__1; LEAN_EXPORT lean_object* l_Lean_Message_toString___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MessageData_lazy___elambda__1___closed__2; @@ -61,6 +60,7 @@ LEAN_EXPORT lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*) lean_object* l___private_Lean_Data_Position_0__Lean_fromJsonPosition____x40_Lean_Data_Position___hyg_279_(lean_object*); LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_indentD(lean_object*); +LEAN_EXPORT uint8_t l_Lean_MessageLog_hadErrors___default; static lean_object* l_Lean_termM_x21_____closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____spec__1___boxed(lean_object*, lean_object*); lean_object* l_EStateM_instInhabited___rarg(lean_object*, lean_object*); @@ -68,13 +68,13 @@ static lean_object* l_Lean_MessageData_lazy___elambda__1___closed__1; static lean_object* l_Lean_instImpl____x40_Lean_Message___hyg_562____closed__3; static lean_object* l_Lean_KernelException_toMessageData___closed__19; LEAN_EXPORT lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); +static lean_object* l_Lean_MessageLog_unreported___default___closed__2; static lean_object* l_Lean_MessageData_formatAux___closed__1; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_instInhabitedMessageLog___closed__3; static lean_object* l_Lean_MessageData_ofList___closed__4; LEAN_EXPORT lean_object* l_Lean_MessageData_ofList(lean_object*); static lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__3; -static lean_object* l_Lean_MessageLog_msgs___default___closed__3; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12; @@ -87,10 +87,10 @@ uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_KernelException_toMessageData___closed__37; static lean_object* l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____spec__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_MessageData_ofArray(lean_object*); static lean_object* l_Lean_MessageData_hasSyntheticSorry_visit___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); -static lean_object* l_Lean_MessageLog_msgs___default___closed__2; static lean_object* l_Lean_MessageData_hasSyntheticSorry_visit___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_KernelException_toMessageData___closed__16; @@ -114,7 +114,6 @@ LEAN_EXPORT lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*); static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__6; LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedBaseMessage___rarg___closed__1; -LEAN_EXPORT uint8_t l_Lean_MessageLog_isEmpty(lean_object*); LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__27; LEAN_EXPORT lean_object* l_Lean_mkErrorStringWithPos(lean_object*, lean_object*, lean_object*, lean_object*); @@ -139,6 +138,7 @@ static lean_object* l_Lean_MessageData_formatAux___lambda__1___closed__6; lean_object* l_Lean_PersistentArray_toList___rarg(lean_object*); static lean_object* l_Lean_KernelException_toMessageData___closed__32; static lean_object* l_Lean_MessageData_formatAux___closed__3; +static lean_object* l_Lean_MessageLog_empty___closed__1; static lean_object* l_Lean_instImpl____x40_Lean_Message___hyg_562____closed__2; uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Message_toJson(lean_object*, lean_object*); @@ -270,6 +270,7 @@ LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_MessageLog_hasError static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__30; LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_fromJsonMessageSeverity____x40_Lean_Message___hyg_152____lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MessageLog_unreported___default; LEAN_EXPORT uint8_t l_Lean_BaseMessage_keepFullRange___default; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__9; @@ -282,10 +283,10 @@ static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21 lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageData_formatAux___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_toJsonBaseMessage____x40_Lean_Message___hyg_2213_(lean_object*); +LEAN_EXPORT uint8_t l_Lean_MessageLog_hasUnreported(lean_object*); static lean_object* l_Lean_termM_x21_____closed__11; LEAN_EXPORT lean_object* l_Lean_MessageLog_empty; static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__5; -static lean_object* l_Lean_MessageLog_msgs___default___closed__1; static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__26; LEAN_EXPORT lean_object* l_Lean_instImpl____x40_Lean_Message___hyg_562_; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -399,6 +400,7 @@ static lean_object* l_Lean_KernelException_toMessageData___closed__28; lean_object* l_Std_Format_joinSep___at_Prod_repr___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_SerialMessage_toString___closed__1; static lean_object* l_Lean_KernelException_toMessageData___closed__39; +static lean_object* l_Lean_MessageLog_unreported___default___closed__3; uint8_t lean_float_beq(double, double); LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_MessageLog_getInfoMessages___spec__3(lean_object*, lean_object*); @@ -437,6 +439,8 @@ size_t lean_usize_sub(size_t, size_t); static lean_object* l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; static lean_object* l___private_Lean_Message_0__Lean_fromJsonMessageSeverity____x40_Lean_Message___hyg_152____lambda__2___closed__3; static lean_object* l_Lean_MessageData_ofList___closed__1; +static lean_object* l_Lean_instInhabitedMessageLog___closed__4; +LEAN_EXPORT lean_object* l_Lean_MessageLog_hasUnreported___boxed(lean_object*); static lean_object* l_Lean_KernelException_toMessageData___closed__26; lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*); static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__12; @@ -473,6 +477,7 @@ static lean_object* l_Lean_KernelException_toMessageData___closed__20; static lean_object* l_Lean_KernelException_toMessageData___closed__17; static lean_object* l_Lean_instToMessageDataString___closed__1; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_stringToMessageData___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs___boxed(lean_object*); static lean_object* l_Lean_KernelException_toMessageData___closed__21; LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); @@ -541,6 +546,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); static lean_object* l_Lean_MessageData_paren___closed__2; static lean_object* l_Lean_KernelException_toMessageData___closed__52; +static lean_object* l_Lean_MessageLog_unreported___default___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageLog_errorsToWarnings___spec__4___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Message_0__Lean_fromJsonBaseMessage____x40_Lean_Message___hyg_2341____rarg___closed__13; LEAN_EXPORT lean_object* l_Lean_MessageData_format(lean_object*, lean_object*); @@ -562,7 +568,6 @@ LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___rarg___lambda__2(lean_ob LEAN_EXPORT lean_object* l_Lean_Message_toString(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_instToMessageDataTSyntax___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lean_MessageLog_hasErrors(lean_object*); -LEAN_EXPORT lean_object* l_Lean_MessageLog_isEmpty___boxed(lean_object*); static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__1() { _start: { @@ -7079,7 +7084,15 @@ return x_110; } } } -static lean_object* _init_l_Lean_MessageLog_msgs___default___closed__1() { +static uint8_t _init_l_Lean_MessageLog_hadErrors___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l_Lean_MessageLog_unreported___default___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -7088,23 +7101,23 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_MessageLog_msgs___default___closed__2() { +static lean_object* _init_l_Lean_MessageLog_unreported___default___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_MessageLog_msgs___default___closed__1; +x_1 = l_Lean_MessageLog_unreported___default___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_MessageLog_msgs___default___closed__3() { +static lean_object* _init_l_Lean_MessageLog_unreported___default___closed__3() { _start: { size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 5; -x_2 = l_Lean_MessageLog_msgs___default___closed__2; -x_3 = l_Lean_MessageLog_msgs___default___closed__1; +x_2 = l_Lean_MessageLog_unreported___default___closed__2; +x_3 = l_Lean_MessageLog_unreported___default___closed__1; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); lean_ctor_set(x_5, 0, x_2); @@ -7115,11 +7128,11 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } -static lean_object* _init_l_Lean_MessageLog_msgs___default() { +static lean_object* _init_l_Lean_MessageLog_unreported___default() { _start: { lean_object* x_1; -x_1 = l_Lean_MessageLog_msgs___default___closed__3; +x_1 = l_Lean_MessageLog_unreported___default___closed__3; return x_1; } } @@ -7159,35 +7172,89 @@ lean_ctor_set_usize(x_5, 4, x_4); return x_5; } } +static lean_object* _init_l_Lean_instInhabitedMessageLog___closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_instInhabitedMessageLog___closed__3; +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_Lean_instInhabitedMessageLog() { _start: { lean_object* x_1; -x_1 = l_Lean_instInhabitedMessageLog___closed__3; +x_1 = l_Lean_instInhabitedMessageLog___closed__4; return x_1; } } +static lean_object* _init_l_Lean_MessageLog_empty___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_MessageLog_unreported___default___closed__3; +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_Lean_MessageLog_empty() { _start: { lean_object* x_1; -x_1 = l_Lean_MessageLog_msgs___default___closed__3; +x_1 = l_Lean_MessageLog_empty___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l_Lean_MessageLog_isEmpty(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs(lean_object* x_1) { _start: { -uint8_t x_2; -x_2 = l_Lean_PersistentArray_isEmpty___rarg(x_1); +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_MessageLog_isEmpty___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_MessageLog_msgs(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT uint8_t l_Lean_MessageLog_hasUnreported(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = lean_ctor_get(x_1, 0); +x_3 = l_Lean_PersistentArray_isEmpty___rarg(x_2); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lean_MessageLog_hasUnreported___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_MessageLog_isEmpty(x_1); +x_2 = l_Lean_MessageLog_hasUnreported(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; @@ -7196,17 +7263,85 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_MessageLog_add(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_PersistentArray_push___rarg(x_2, x_1); -return x_3; +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_Lean_PersistentArray_push___rarg(x_4, x_1); +lean_ctor_set(x_2, 0, x_5); +return x_2; +} +else +{ +uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = l_Lean_PersistentArray_push___rarg(x_7, x_1); +x_9 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_6); +return x_9; +} } } LEAN_EXPORT lean_object* l_Lean_MessageLog_append(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_PersistentArray_append___rarg(x_1, x_2); -return x_3; +uint8_t x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_2, 0); +x_7 = l_Lean_PersistentArray_append___rarg(x_4, x_6); +if (x_3 == 0) +{ +lean_ctor_set(x_2, 0, x_7); +return x_2; +} +else +{ +uint8_t x_8; +x_8 = 1; +lean_ctor_set(x_2, 0, x_7); +lean_ctor_set_uint8(x_2, sizeof(void*)*1, x_8); +return x_2; +} +} +else +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +lean_dec(x_2); +x_11 = l_Lean_PersistentArray_append___rarg(x_4, x_10); +if (x_3 == 0) +{ +lean_object* x_12; +x_12 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_9); +return x_12; +} +else +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +x_14 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13); +return x_14; +} +} } } static lean_object* _init_l_Lean_MessageLog_instAppend___closed__1() { @@ -7401,8 +7536,23 @@ LEAN_EXPORT uint8_t l_Lean_MessageLog_hasErrors(lean_object* x_1) { _start: { uint8_t x_2; -x_2 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_1); -return x_2; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1); +if (x_2 == 0) +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_3); +return x_4; +} +else +{ +uint8_t x_5; +lean_dec(x_1); +x_5 = 1; +return x_5; +} } } LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MessageLog_hasErrors___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -7696,9 +7846,16 @@ return x_20; LEAN_EXPORT lean_object* l_Lean_MessageLog_errorsToWarnings(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_1); -return x_2; +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_2); +x_4 = 0; +x_5 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*1, x_4); +return x_5; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageLog_errorsToWarnings___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -8102,11 +8259,18 @@ return x_35; LEAN_EXPORT lean_object* l_Lean_MessageLog_getInfoMessages(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_MessageLog_msgs___default___closed__3; -x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_1, x_2, x_3); -return x_4; +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_MessageLog_unreported___default___closed__3; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_PersistentArray_foldlM___at_Lean_MessageLog_getInfoMessages___spec__1(x_2, x_3, x_4); +x_6 = 0; +x_7 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set_uint8(x_7, sizeof(void*)*1, x_6); +return x_7; } } LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MessageLog_getInfoMessages___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -8151,9 +8315,12 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l_Lean_PersistentArray_forM___rarg(x_1, x_2, x_3); -return x_4; +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_Lean_PersistentArray_forM___rarg(x_1, x_4, x_3); +return x_5; } } LEAN_EXPORT lean_object* l_Lean_MessageLog_forM(lean_object* x_1) { @@ -8167,17 +8334,23 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_MessageLog_toList(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = l_Lean_PersistentArray_toList___rarg(x_1); -return x_2; +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_PersistentArray_toList___rarg(x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_MessageLog_toArray(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = l_Lean_PersistentArray_toArray___rarg(x_1); -return x_2; +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_PersistentArray_toArray___rarg(x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_MessageData_nestD(lean_object* x_1) { @@ -8249,7 +8422,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__1; -x_2 = l_Lean_MessageLog_msgs___default___closed__3; +x_2 = l_Lean_MessageLog_unreported___default___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -10719,21 +10892,26 @@ l_Lean_SerialMessage_toString___lambda__3___closed__3 = _init_l_Lean_SerialMessa lean_mark_persistent(l_Lean_SerialMessage_toString___lambda__3___closed__3); l_Lean_SerialMessage_toString___closed__1 = _init_l_Lean_SerialMessage_toString___closed__1(); lean_mark_persistent(l_Lean_SerialMessage_toString___closed__1); -l_Lean_MessageLog_msgs___default___closed__1 = _init_l_Lean_MessageLog_msgs___default___closed__1(); -lean_mark_persistent(l_Lean_MessageLog_msgs___default___closed__1); -l_Lean_MessageLog_msgs___default___closed__2 = _init_l_Lean_MessageLog_msgs___default___closed__2(); -lean_mark_persistent(l_Lean_MessageLog_msgs___default___closed__2); -l_Lean_MessageLog_msgs___default___closed__3 = _init_l_Lean_MessageLog_msgs___default___closed__3(); -lean_mark_persistent(l_Lean_MessageLog_msgs___default___closed__3); -l_Lean_MessageLog_msgs___default = _init_l_Lean_MessageLog_msgs___default(); -lean_mark_persistent(l_Lean_MessageLog_msgs___default); +l_Lean_MessageLog_hadErrors___default = _init_l_Lean_MessageLog_hadErrors___default(); +l_Lean_MessageLog_unreported___default___closed__1 = _init_l_Lean_MessageLog_unreported___default___closed__1(); +lean_mark_persistent(l_Lean_MessageLog_unreported___default___closed__1); +l_Lean_MessageLog_unreported___default___closed__2 = _init_l_Lean_MessageLog_unreported___default___closed__2(); +lean_mark_persistent(l_Lean_MessageLog_unreported___default___closed__2); +l_Lean_MessageLog_unreported___default___closed__3 = _init_l_Lean_MessageLog_unreported___default___closed__3(); +lean_mark_persistent(l_Lean_MessageLog_unreported___default___closed__3); +l_Lean_MessageLog_unreported___default = _init_l_Lean_MessageLog_unreported___default(); +lean_mark_persistent(l_Lean_MessageLog_unreported___default); l_Lean_instInhabitedMessageLog___closed__1 = _init_l_Lean_instInhabitedMessageLog___closed__1(); lean_mark_persistent(l_Lean_instInhabitedMessageLog___closed__1); l_Lean_instInhabitedMessageLog___closed__2 = _init_l_Lean_instInhabitedMessageLog___closed__2(); l_Lean_instInhabitedMessageLog___closed__3 = _init_l_Lean_instInhabitedMessageLog___closed__3(); lean_mark_persistent(l_Lean_instInhabitedMessageLog___closed__3); +l_Lean_instInhabitedMessageLog___closed__4 = _init_l_Lean_instInhabitedMessageLog___closed__4(); +lean_mark_persistent(l_Lean_instInhabitedMessageLog___closed__4); l_Lean_instInhabitedMessageLog = _init_l_Lean_instInhabitedMessageLog(); lean_mark_persistent(l_Lean_instInhabitedMessageLog); +l_Lean_MessageLog_empty___closed__1 = _init_l_Lean_MessageLog_empty___closed__1(); +lean_mark_persistent(l_Lean_MessageLog_empty___closed__1); l_Lean_MessageLog_empty = _init_l_Lean_MessageLog_empty(); lean_mark_persistent(l_Lean_MessageLog_empty); l_Lean_MessageLog_instAppend___closed__1 = _init_l_Lean_MessageLog_instAppend___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 110f277f2a..5db480cc7e 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -74,6 +74,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_indentD(lean_object*); static lean_object* l_Lean_Meta_mkCongrFun___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkBinaryOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_congrArg_x3f___closed__2; @@ -10435,193 +10436,210 @@ return x_4; LEAN_EXPORT lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___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) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_27; +lean_object* x_7; lean_object* x_8; lean_object* x_29; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_27 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_27) == 0) +x_29 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -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 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___lambda__3___closed__6; -x_31 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_30, x_2, x_3, x_4, x_5, x_29); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) +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_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 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___lambda__3___closed__6; +x_33 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_32, x_2, x_3, x_4, x_5, x_31); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_unbox(x_34); +lean_dec(x_34); +if (x_35 == 0) { -uint8_t x_34; +uint8_t x_36; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_31, 0); -lean_dec(x_35); -lean_ctor_set(x_31, 0, x_28); -return x_31; +lean_object* x_37; +x_37 = lean_ctor_get(x_33, 0); +lean_dec(x_37); +lean_ctor_set(x_33, 0, x_30); +return x_33; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_28); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_31, 1); +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_33, 1); lean_inc(x_38); -lean_dec(x_31); -lean_inc(x_28); -x_39 = l_Lean_MessageData_ofExpr(x_28); -x_40 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_30, x_39, x_2, x_3, x_4, x_5, x_38); +lean_dec(x_33); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_dec(x_33); +lean_inc(x_30); +x_41 = l_Lean_MessageData_ofExpr(x_30); +x_42 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_32, x_41, x_2, x_3, x_4, x_5, x_40); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_42; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -lean_ctor_set(x_40, 0, x_28); -return x_40; -} -else -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_28); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} +lean_object* x_44; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +lean_ctor_set(x_42, 0, x_30); +return x_42; } else { lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_27, 0); +x_45 = lean_ctor_get(x_42, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_27, 1); -lean_inc(x_46); -lean_dec(x_27); -x_7 = x_45; -x_8 = x_46; -goto block_26; +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_30); +lean_ctor_set(x_46, 1, x_45); +return x_46; } -block_26: +} +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_29, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_29, 1); +lean_inc(x_48); +lean_dec(x_29); +x_7 = x_47; +x_8 = x_48; +goto block_28; +} +block_28: { uint8_t x_9; -x_9 = l_Lean_Exception_isRuntime(x_7); +x_9 = l_Lean_Exception_isInterrupt(x_7); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___lambda__3___closed__4; -x_11 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_10, x_2, x_3, x_4, x_5, x_8); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_unbox(x_12); -lean_dec(x_12); -if (x_13 == 0) +uint8_t x_10; +x_10 = l_Lean_Exception_isRuntime(x_7); +if (x_10 == 0) { -uint8_t x_14; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_14 = !lean_is_exclusive(x_11); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___lambda__3___closed__4; +x_12 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_11, x_2, x_3, x_4, x_5, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); if (x_14 == 0) { -lean_object* x_15; -x_15 = lean_ctor_get(x_11, 0); -lean_dec(x_15); -lean_ctor_set_tag(x_11, 1); -lean_ctor_set(x_11, 0, x_7); -return x_11; +uint8_t x_15; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_7); +return x_12; } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_7); -lean_ctor_set(x_17, 1, x_16); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_dec(x_12); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_dec(x_11); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_dec(x_12); lean_inc(x_7); -x_19 = l_Lean_Exception_toMessageData(x_7); -x_20 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_10, x_19, x_2, x_3, x_4, x_5, x_18); +x_20 = l_Lean_Exception_toMessageData(x_7); +x_21 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_11, x_20, x_2, x_3, x_4, x_5, x_19); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_22; -x_22 = lean_ctor_get(x_20, 0); -lean_dec(x_22); -lean_ctor_set_tag(x_20, 1); -lean_ctor_set(x_20, 0, x_7); -return x_20; +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set_tag(x_21, 1); +lean_ctor_set(x_21, 0, x_7); +return x_21; } else { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_7); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -lean_object* x_25; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_7); -lean_ctor_set(x_25, 1, x_8); +lean_ctor_set(x_25, 1, x_24); return x_25; } } } +else +{ +lean_object* x_26; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_8); +return x_26; +} +} +else +{ +lean_object* x_27; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_7); +lean_ctor_set(x_27, 1, x_8); +return x_27; +} +} +} } static lean_object* _init_l___private_Lean_Meta_AppBuilder_0__Lean_Meta_withAppBuilderTrace___rarg___closed__1() { _start: @@ -13480,20 +13498,24 @@ if (x_55 == 0) lean_object* x_56; lean_object* x_57; uint8_t x_58; x_56 = lean_ctor_get(x_52, 0); x_57 = lean_ctor_get(x_52, 1); -x_58 = l_Lean_Exception_isRuntime(x_56); +x_58 = l_Lean_Exception_isInterrupt(x_56); if (x_58 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; +uint8_t x_59; +x_59 = l_Lean_Exception_isRuntime(x_56); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_free_object(x_52); lean_dec(x_56); -x_59 = l_Lean_Meta_SavedState_restore(x_50, x_10, x_11, x_12, x_13, x_57); +x_60 = l_Lean_Meta_SavedState_restore(x_50, x_10, x_11, x_12, x_13, x_57); lean_dec(x_50); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_box(0); -x_27 = x_61; -x_28 = x_60; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_box(0); +x_27 = x_62; +x_28 = x_61; goto block_41; } else @@ -13513,30 +13535,6 @@ return x_52; } else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_52, 0); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_52); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -x_65 = l_Lean_Meta_SavedState_restore(x_50, x_10, x_11, x_12, x_13, x_63); -lean_dec(x_50); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = lean_box(0); -x_27 = x_67; -x_28 = x_66; -goto block_41; -} -else -{ -lean_object* x_68; lean_dec(x_50); lean_dec(x_13); lean_dec(x_12); @@ -13547,17 +13545,79 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_62); -lean_ctor_set(x_68, 1, x_63); -return x_68; +return x_52; +} +} +else +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_52, 0); +x_64 = lean_ctor_get(x_52, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_52); +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_63); +x_67 = l_Lean_Meta_SavedState_restore(x_50, x_10, x_11, x_12, x_13, x_64); +lean_dec(x_50); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_box(0); +x_27 = x_69; +x_28 = x_68; +goto block_41; +} +else +{ +lean_object* x_70; +lean_dec(x_50); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_63); +lean_ctor_set(x_70, 1, x_64); +return x_70; +} +} +else +{ +lean_object* x_71; +lean_dec(x_50); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_63); +lean_ctor_set(x_71, 1, x_64); +return x_71; } } } } else { -uint8_t x_69; +uint8_t x_72; lean_free_object(x_42); lean_dec(x_13); lean_dec(x_12); @@ -13568,129 +13628,110 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_46); -if (x_69 == 0) +x_72 = !lean_is_exclusive(x_46); +if (x_72 == 0) { return x_46; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_46, 0); -x_71 = lean_ctor_get(x_46, 1); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_46, 0); +x_74 = lean_ctor_get(x_46, 1); +lean_inc(x_74); +lean_inc(x_73); lean_dec(x_46); -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; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -lean_object* x_73; +lean_object* x_76; lean_dec(x_42); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_1); -x_73 = l_Lean_Meta_mkProjection(x_1, x_17, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_73) == 0) +x_76 = l_Lean_Meta_mkProjection(x_1, x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_76) == 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); -lean_dec(x_73); -x_76 = l_Lean_Meta_saveState___rarg(x_11, x_12, x_13, x_75); +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_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_2); -x_79 = l_Lean_Meta_mkProjection(x_74, x_2, x_10, x_11, x_12, x_13, x_78); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_77); +x_79 = l_Lean_Meta_saveState___rarg(x_11, x_12, x_13, x_78); x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); lean_dec(x_79); -x_82 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_82, 0, x_80); -x_27 = x_82; -x_28 = x_81; -goto block_41; -} -else +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_2); +x_82 = l_Lean_Meta_mkProjection(x_77, x_2, x_10, x_11, x_12, x_13, x_81); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = lean_ctor_get(x_79, 0); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_80); +x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); -x_84 = lean_ctor_get(x_79, 1); +x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_85 = x_79; -} else { - lean_dec_ref(x_79); - x_85 = lean_box(0); -} -x_86 = l_Lean_Exception_isRuntime(x_83); -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_85); -lean_dec(x_83); -x_87 = l_Lean_Meta_SavedState_restore(x_77, x_10, x_11, x_12, x_13, x_84); -lean_dec(x_77); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_box(0); -x_27 = x_89; -x_28 = x_88; +lean_dec(x_82); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_83); +x_27 = x_85; +x_28 = x_84; goto block_41; } else { -lean_object* x_90; -lean_dec(x_77); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_is_scalar(x_85)) { - x_90 = lean_alloc_ctor(1, 2, 0); +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_ctor_get(x_82, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_82, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_88 = x_82; } else { - x_90 = x_85; -} -lean_ctor_set(x_90, 0, x_83); -lean_ctor_set(x_90, 1, x_84); -return x_90; -} + lean_dec_ref(x_82); + x_88 = lean_box(0); } +x_89 = l_Lean_Exception_isInterrupt(x_86); +if (x_89 == 0) +{ +uint8_t x_90; +x_90 = l_Lean_Exception_isRuntime(x_86); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_88); +lean_dec(x_86); +x_91 = l_Lean_Meta_SavedState_restore(x_80, x_10, x_11, x_12, x_13, x_87); +lean_dec(x_80); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_box(0); +x_27 = x_93; +x_28 = x_92; +goto block_41; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_object* x_94; +lean_dec(x_80); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -13700,28 +13741,74 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_91 = lean_ctor_get(x_73, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_73, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_93 = x_73; -} else { - lean_dec_ref(x_73); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { +if (lean_is_scalar(x_88)) { x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_94 = x_93; + x_94 = x_88; } -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); +lean_ctor_set(x_94, 0, x_86); +lean_ctor_set(x_94, 1, x_87); return x_94; } } +else +{ +lean_object* x_95; +lean_dec(x_80); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_88)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_88; +} +lean_ctor_set(x_95, 0, x_86); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_96 = lean_ctor_get(x_76, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_76, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_98 = x_76; +} else { + lean_dec_ref(x_76); + 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); +return x_99; +} +} } block_26: { @@ -15731,214 +15818,173 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_isMonad_x3f(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; -x_7 = l_Lean_Meta_mkLetFun___closed__1; -x_8 = lean_array_push(x_7, x_1); -x_9 = l_Lean_Meta_isMonad_x3f___closed__2; +lean_object* x_7; lean_object* x_8; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = l_Lean_Meta_mkLetFun___closed__1; +x_17 = lean_array_push(x_16, x_1); +x_18 = l_Lean_Meta_isMonad_x3f___closed__2; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_10 = l_Lean_Meta_mkAppM(x_9, x_8, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_10) == 0) +x_19 = l_Lean_Meta_mkAppM(x_18, x_17, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -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_box(0); -x_14 = l_Lean_Meta_trySynthInstance(x_11, x_13, x_2, x_3, x_4, x_5, x_12); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 1) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_14, 0); -lean_dec(x_17); -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -return x_14; -} -else -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_15, 0); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_14, 0, x_20); -return x_14; -} -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_14, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +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_14); -x_22 = lean_ctor_get(x_15, 0); -lean_inc(x_22); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - x_23 = x_15; -} else { - lean_dec_ref(x_15); - x_23 = lean_box(0); -} -if (lean_is_scalar(x_23)) { - x_24 = lean_alloc_ctor(1, 1, 0); -} else { - x_24 = x_23; -} -lean_ctor_set(x_24, 0, x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_21); -return x_25; -} -} -else +lean_dec(x_19); +x_22 = lean_box(0); +x_23 = l_Lean_Meta_trySynthInstance(x_20, x_22, x_2, x_3, x_4, x_5, x_21); +if (lean_obj_tag(x_23) == 0) { -uint8_t x_26; -lean_dec(x_15); -x_26 = !lean_is_exclusive(x_14); -if (x_26 == 0) +lean_object* x_24; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 1) { -lean_object* x_27; -x_27 = lean_ctor_get(x_14, 0); -lean_dec(x_27); -lean_ctor_set(x_14, 0, x_13); -return x_14; +uint8_t x_25; +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) +{ +return x_23; } else { lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_14, 1); +x_28 = lean_ctor_get(x_24, 0); lean_inc(x_28); -lean_dec(x_14); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_13); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -else -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_14); -if (x_30 == 0) -{ -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_14, 0); -x_32 = l_Lean_Exception_isRuntime(x_31); -if (x_32 == 0) -{ -lean_dec(x_31); -lean_ctor_set_tag(x_14, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -else -{ -return x_14; +lean_dec(x_24); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_23, 0, x_29); +return x_23; } } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -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_Lean_Exception_isRuntime(x_33); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_dec(x_23); +x_31 = lean_ctor_get(x_24, 0); +lean_inc(x_31); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_32 = x_24; +} else { + lean_dec_ref(x_24); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(1, 1, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +return x_34; +} +} +else +{ +uint8_t x_35; +lean_dec(x_24); +x_35 = !lean_is_exclusive(x_23); if (x_35 == 0) { lean_object* x_36; -lean_dec(x_33); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_13); -lean_ctor_set(x_36, 1, x_34); -return x_36; +x_36 = lean_ctor_get(x_23, 0); +lean_dec(x_36); +lean_ctor_set(x_23, 0, x_22); +return x_23; } else { -lean_object* x_37; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_34); -return x_37; -} +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +lean_dec(x_23); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_22); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -uint8_t x_38; +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_23, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_23, 1); +lean_inc(x_40); +lean_dec(x_23); +x_7 = x_39; +x_8 = x_40; +goto block_15; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_38 = !lean_is_exclusive(x_10); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_10, 0); -x_40 = l_Lean_Exception_isRuntime(x_39); -if (x_40 == 0) -{ -lean_object* x_41; -lean_dec(x_39); -x_41 = lean_box(0); -lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_41); -return x_10; -} -else -{ -return x_10; -} -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_10, 0); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); +x_41 = lean_ctor_get(x_19, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_19, 1); lean_inc(x_42); -lean_dec(x_10); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) +lean_dec(x_19); +x_7 = x_41; +x_8 = x_42; +goto block_15; +} +block_15: { -lean_object* x_45; lean_object* x_46; -lean_dec(x_42); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; +uint8_t x_9; +x_9 = l_Lean_Exception_isInterrupt(x_7); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = l_Lean_Exception_isRuntime(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_7); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; } else { -lean_object* x_47; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_43); -return x_47; +lean_object* x_13; +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_7); +lean_ctor_set(x_13, 1, x_8); +return x_13; } } +else +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_8); +return x_14; +} } } } diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 1bc94f2601..796ccb509f 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -148,6 +148,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__27___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_getLocalDeclFromUserName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instBEqInfoCacheKey; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); @@ -155,7 +156,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1___boxe static lean_object* l_Lean_Meta_recordSynthPendingFailure___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_collectForwardDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__3; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_MetaM_toIO___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Context_canUnfold_x3f___default; @@ -168,14 +168,17 @@ size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_withAtLeastTransparency___rarg___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_withLocalDecls_loop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallMetaTelescope(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getPostponed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_processPostponed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getLocalDeclFromUserName___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_approxDefEq(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Diagnostics_unfoldCounter___default; lean_object* l_Lean_Level_succ___override(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8; LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__46___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_Meta_normalizeLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_ParamInfo_isProp___default; @@ -193,6 +196,7 @@ lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__30___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Config_transparency___default; LEAN_EXPORT lean_object* l_Lean_Meta_withAssignableSyntheticOpaque___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_recordSynthPendingFailure___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -204,13 +208,13 @@ static lean_object* l_Lean_Meta_instAlternativeMetaM___closed__1; LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Meta_mkFreshLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__43(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuickConst_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateLambdaAux___closed__2; static lean_object* l_Lean_Meta_liftMkBindingM___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_FVarId_throwUnknown(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__15(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_recordUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_FVarId_hasForwardDeps___spec__55___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_Lean_FVarId_hasForwardDeps___spec__54(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +229,7 @@ static lean_object* l_Lean_Meta_instAlternativeMetaM___lambda__1___closed__2; static lean_object* l_Lean_Meta_instInhabitedMetaM___rarg___closed__1; lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_FVarId_hasForwardDeps___spec__37___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11; LEAN_EXPORT lean_object* l_Lean_MVarId_isReadOnly(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LMVarId_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_processPostponed_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -256,6 +261,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEq; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_DefEqCache_instances___default; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMonadEnvMetaM___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withNewBinderInfos___at_Lean_Meta_withInstImplicitAsImplict___spec__3(lean_object*); @@ -289,6 +295,7 @@ lean_object* lean_environment_find(lean_object*, lean_object*); uint8_t lean_float_decLt(double, double); static lean_object* l_Lean_Meta_instInhabitedPostponedEntry___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstanceImp(lean_object*); static lean_object* l_Lean_Meta_instInhabitedCache___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -299,6 +306,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withConfig___rarg___lambda__1(lean_object*, LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9; static lean_object* l_Lean_MVarId_getDecl___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_MetaM_toIO___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp(lean_object*); @@ -312,6 +320,7 @@ static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__3; LEAN_EXPORT uint8_t l_Lean_Meta_Config_proofIrrelevance___default; LEAN_EXPORT uint8_t l_Lean_Meta_Config_ctxApprox___default; +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146_(lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMonadBacktrackSavedStateMetaM___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__35(lean_object*, lean_object*, lean_object*); @@ -319,7 +328,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_resetDefEqPermCaches___rarg___boxed(lean_ob lean_object* l_Lean_Expr_setPPUniverses(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_FVarId_hasForwardDeps___spec__56___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_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6; uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_FVarId_hasForwardDeps___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,6 +350,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_ParamInfo_backDeps___default; uint8_t l___private_Lean_Util_Trace_0__Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instantiateForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_getFVarFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMonadEnvMetaM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedPersistentArrayNode(lean_object*); @@ -356,12 +365,12 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spe LEAN_EXPORT lean_object* l_Lean_Meta_normalizeLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__4; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__5___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_approxDefEqImp(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__40(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_isSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getReducibilityStatus___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -380,11 +389,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getNumPostponed___rarg(lean_object*, lean_o LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__48(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_recordSynthPendingFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Kernel_enableDiag(lean_object*, uint8_t); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3; LEAN_EXPORT uint8_t l_Lean_Meta_ParamInfo_higherOrderOutParam___default; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_State_cache___default; lean_object* l_Lean_LocalDecl_index(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_processPostponed___spec__2(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973_(lean_object*); uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Meta_withLocalInstancesImp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_State_postponed___default; @@ -394,6 +404,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_MVarId_getDecl___spec__1___ LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__22___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_5____closed__1; static lean_object* l_Lean_Meta_mkLevelStuckErrorMessage___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___spec__1___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getZetaDeltaFVarIds(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getLocalInstances___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -420,6 +431,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isExprDefEq_ static lean_object* l_Lean_Meta_processPostponed___lambda__1___closed__1; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_isReadOnlyOrSyntheticOpaque___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1; uint8_t lean_get_reducibility_status(lean_object*, lean_object*); uint64_t l_Lean_Meta_TransparencyMode_hash(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_orelseMergeErrors___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -430,6 +442,7 @@ lean_object* l_Lean_MetavarContext_elimMVarDeps(lean_object*, lean_object*, uint LEAN_EXPORT lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_findDecl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__11___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_recordDefEqHeuristic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeImp___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -444,6 +457,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_resetZetaDeltaFVarIds___rarg(lean_object*, LEAN_EXPORT lean_object* l_Lean_Meta_getFVarFromUserName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_FVarId_hasForwardDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -453,6 +467,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_beqSynthInstan LEAN_EXPORT lean_object* l_Lean_Meta_Diagnostics_synthPendingFailures___default; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_processPostponed___spec__2___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_FVarId_getUserName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedInfoCacheKey; @@ -472,6 +487,7 @@ uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Config_univApprox___default; LEAN_EXPORT lean_object* l_Lean_Expr_abstractRangeM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1; static lean_object* l_Lean_Meta_Cache_funInfo___default___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_withNewBinderInfos___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -487,6 +503,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___rarg___lambda__1(lean_obj LEAN_EXPORT lean_object* l_Lean_Meta_withLocalInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Diagnostics_synthPendingFailures___default___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4; LEAN_EXPORT uint8_t l_Lean_Meta_ParamInfo_isImplicit(lean_object*); static lean_object* l_Lean_Meta_instMonadMCtxMetaM___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_FVarId_hasForwardDeps___spec__21___boxed(lean_object*, lean_object*); @@ -509,6 +526,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_orElse___rarg(lean_object*, lean_object*, l LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Meta_processPostponed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_registerInternalExceptionId(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13; LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaMetaTelescope_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -523,7 +541,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_FVarId_hasForwardDe LEAN_EXPORT lean_object* l_Lean_Expr_abstractM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Context_lctx___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9; LEAN_EXPORT uint8_t l_Lean_Meta_Config_isDefEqStuckEx___default; LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at_Lean_FVarId_hasForwardDeps___spec__51___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_withTraceNode___at_Lean_Meta_processPostponed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -540,7 +557,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_liftMkBindingM___rarg___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lean_Meta_getTransparency___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedPostponedEntry; @@ -562,6 +578,7 @@ lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_setMVarUserName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_FVarId_hasForwardDeps___spec__50(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___rarg___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___private_Lean_Meta_Basic_0__Lean_Meta_isClassExpensive_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__41(lean_object*, lean_object*, size_t, size_t); @@ -578,7 +595,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_lambdaLetTelescope___rarg(lean_object*, lea lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_FVarId_hasForwardDeps___spec__52___closed__1; LEAN_EXPORT lean_object* l_Lean_mkFreshMVarId___at_Lean_Meta_mkFreshExprMVarAt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getNumPostponed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_FVarId_hasForwardDeps___spec__44(lean_object*, lean_object*, lean_object*); @@ -596,7 +612,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_elimMVarDeps___boxed(lean_object*, lean_obj lean_object* l_ReaderT_instApplicativeOfMonad___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_setMVarKind(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withNewBinderInfos___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_FVarId_hasForwardDeps___spec__34(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1___closed__4; @@ -644,7 +659,6 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_setType___boxed(lean_object*, lean_object uint8_t l_Lean_Level_hasMVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_FVarId_hasForwardDeps___spec__12___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225_(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11; lean_object* l_Lean_LocalInstances_erase(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___at_Lean_Meta_normalizeLevel___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -667,6 +681,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescop LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__22(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_FVarId_getValue_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_shouldReduceAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5; LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Meta_Basic_0__Lean_Meta_beqInfoCacheKey____x40_Lean_Meta_Basic___hyg_350____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mapError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMonadBacktrackSavedStateMetaM___closed__3; @@ -762,6 +777,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l_Lean_Meta_liftMkBindingM(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mapError(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__19(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_recordSynthPendingFailure___spec__6(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -770,7 +786,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instMonadBacktrackSavedStateMetaM; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_DefEqCache_reducible___default___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_FVarId_hasForwardDeps___spec__10(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_getZetaDeltaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_approxDefEq___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -782,7 +797,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mapForallTelescope(lean_object*, lean_objec LEAN_EXPORT lean_object* l_Lean_Meta_getParamNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_mod(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___spec__1___lambda__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_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8; lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_LMVarId_getLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__38(lean_object*, lean_object*); @@ -804,11 +818,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescop lean_object* l_Lean_Level_collectMVars(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_withInstImplicitAsImplict___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mapForallTelescope___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isImplementationDetail(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13; static lean_object* l_Lean_Meta_Cache_funInfo___default___closed__1; +static lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_recordSynthPendingFailure___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_abstractRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -816,14 +831,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instAlternativeMetaM___lambda__2(lean_objec static lean_object* l_Lean_MVarId_getDecl___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_FVarId_hasForwardDeps___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instantiateLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedMetaM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___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_Meta_withAtLeastTransparency___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_MetaM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); @@ -841,8 +854,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_modifyInferTypeCache___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lean_Meta_forallMetaTelescope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarAtCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_SavedState_restoreFull___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_resetDefEqPermCaches(lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_withLocalDecls_loop___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withReducibleAndInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___closed__1; @@ -858,7 +871,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_resetZetaDeltaFVarIds(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp_process___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Cache_inferType___default___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_mapForallTelescope___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_maxSynthPendingDepth; @@ -872,9 +884,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescop LEAN_EXPORT lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Config_etaStruct___default; static lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___spec__1___lambda__3___closed__1; +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16; LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at_Lean_FVarId_hasForwardDeps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_setInlineAttribute___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_FVarId_hasForwardDeps___spec__19___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMonadEnvMetaM; LEAN_EXPORT lean_object* l_Lean_Meta_withMCtx(lean_object*); @@ -883,12 +895,12 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps_ LEAN_EXPORT lean_object* l_Lean_Meta_FunInfo_paramInfo___default; static lean_object* l_Lean_Meta_instAlternativeMetaM___lambda__1___closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_ParamInfo_isStrictImplicit(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Basic_0__Lean_Meta_fvarsSizeLtMaxFVars(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_Cache_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_mapForallTelescope_x27___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_modifyDefEqPermCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_recordInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4; LEAN_EXPORT uint8_t l_Lean_Meta_ParamInfo_isDecInst___default; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_FVarId_hasForwardDeps___spec__52(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -921,14 +933,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescop lean_object* lean_environment_main_module(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__31(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshExprMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_mapForallTelescope_x27___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_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instOrElseMetaM(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofLevel(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Context_localInstances___default; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_FVarId_hasForwardDeps___spec__53___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_abstractRangeM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -938,6 +948,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForw LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_FVarId_hasForwardDeps___spec__29(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10; LEAN_EXPORT uint8_t l_Lean_Meta_Context_univApprox___default; LEAN_EXPORT lean_object* l_Lean_Meta_savingCache(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp(lean_object*); @@ -949,7 +960,6 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedCache___closed__1; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_FVarId_hasForwardDeps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_orElse(lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_FVarId_hasForwardDeps___spec__14(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withTransparency___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -965,6 +975,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_liftMetaM___rarg(lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_Meta_map1MetaM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMonadEnvMetaM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__7; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_FVarId_hasForwardDeps___spec__28___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_resetDefEqPermCaches___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_setType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -995,6 +1006,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withNewBinderInfos___rarg(lean_object*, lea LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_assignLevelMVar___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedDefEqCache___closed__1; +lean_object* l_Lean_Core_withRestoreOrSaveFull___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__5; extern lean_object* l_Lean_Expr_instHashable; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDeclsD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1044,15 +1056,17 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lea LEAN_EXPORT lean_object* l_Lean_Meta_withAtLeastTransparency___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshLMVarId___at_Lean_Meta_mkFreshLevelMVar___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_recordSynthPendingFailure___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_getParamNames___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); static lean_object* l_Lean_Meta_getLocalDeclFromUserName___closed__1; extern lean_object* l_Lean_Core_instMonadCoreM; static lean_object* l_Lean_Meta_instHashableSynthInstanceCacheKey___closed__1; -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_FVarId_hasForwardDeps___spec__63(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_saveState___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9; static lean_object* l_Lean_Meta_instOrElseMetaM___closed__1; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__2___rarg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withTransparency___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1083,7 +1097,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___rarg___lambda__1(lean_obj LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_FVarId_hasForwardDeps___spec__56(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getParamNames___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedParamInfo; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5; uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); static lean_object* l_Lean_Meta_MetaM_toIO___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_LMVarId_isReadOnly___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1159,7 +1172,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withMCtx___rarg___lambda__1(lean_object*, l LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_withInstImplicitAsImplict___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___spec__1___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_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_SavedState_restoreFull(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getPostponed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing(lean_object*); @@ -1169,7 +1181,6 @@ lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Context_lctx___default; -lean_object* l_Lean_Core_restore(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___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_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_useEtaStruct___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1215,7 +1226,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instantiateLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_FVarId_throwUnknown___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Basic_0__Lean_Meta_hashSynthInstanceCacheKey____x40_Lean_Meta_Basic___hyg_515____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___rarg___lambda__1___boxed(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*); @@ -1231,7 +1241,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_fullApproxDefE LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux_process___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withReducibleAndInstances___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isDiagnosticsEnabled(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Core_restoreFull(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_normalize(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__1; LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at_Lean_FVarId_hasForwardDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1245,7 +1254,6 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_processPostponed___ LEAN_EXPORT lean_object* l_Lean_Meta_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withoutProofIrrelevance(lean_object*); -static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Config_quasiPatternApprox___default; LEAN_EXPORT lean_object* l_Lean_Meta_recordDefEqHeuristic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3702,7 +3710,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_saveState___rarg(lean_object* x_1, lean_obj _start: { lean_object* x_5; uint8_t x_6; -x_5 = lean_st_ref_get(x_3, x_4); +x_5 = l_Lean_Core_saveState___rarg(x_3, x_4); x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { @@ -3801,7 +3809,7 @@ _start: { 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; x_7 = lean_ctor_get(x_1, 0); -x_8 = l_Lean_Core_restore(x_7, x_4, x_5, x_6); +x_8 = l_Lean_Core_SavedState_restore(x_7, x_4, x_5, x_6); x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); @@ -3911,20 +3919,98 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Meta_SavedState_restoreFull(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_Lean_Meta_withRestoreOrSaveFull___rarg___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; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -x_8 = l_Lean_Core_restoreFull(x_7, x_4, x_5, x_6); -x_9 = lean_ctor_get(x_8, 1); +lean_object* x_7; +x_7 = lean_apply_3(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +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_8); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_st_ref_set(x_3, x_10, x_9); +lean_dec(x_7); +x_10 = lean_st_ref_get(x_3, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_8); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_8); +lean_ctor_set(x_16, 1, x_14); +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_7); +if (x_18 == 0) +{ +return x_7; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_7, 0); +x_20 = lean_ctor_get(x_7, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_7); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___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; +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__1___boxed), 6, 1); +lean_closure_set(x_8, 0, x_4); +x_9 = lean_apply_6(x_1, x_8, x_2, x_3, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___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; +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__2), 7, 3); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_4); +lean_closure_set(x_9, 2, x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_Lean_Core_withRestoreOrSaveFull___rarg(x_10, x_9, x_6, x_7, x_8); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { @@ -3944,19 +4030,301 @@ lean_ctor_set(x_15, 1, x_14); return x_15; } } +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; } -LEAN_EXPORT lean_object* l_Lean_Meta_SavedState_restoreFull___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) { +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_2); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_2, 0); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 1); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +lean_ctor_set(x_21, 1, x_24); +x_25 = l_Lean_Core_withRestoreOrSaveFull___rarg(x_2, x_9, x_6, x_7, x_8); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) +{ +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_21, 0); +x_35 = lean_ctor_get(x_21, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_21); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_2, 0, x_37); +x_38 = l_Lean_Core_withRestoreOrSaveFull___rarg(x_2, x_9, x_6, x_7, x_8); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; +} else { + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(0, 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; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_38, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_38, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_45 = x_38; +} else { + lean_dec_ref(x_38); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +else +{ +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_2, 0); +lean_inc(x_47); +lean_dec(x_2); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_50 = x_47; +} else { + lean_dec_ref(x_47); + x_50 = lean_box(0); +} +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +if (lean_is_scalar(x_50)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_50; +} +lean_ctor_set(x_52, 0, x_48); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_54 = l_Lean_Core_withRestoreOrSaveFull___rarg(x_53, x_9, x_6, x_7, x_8); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; +} else { + lean_dec_ref(x_54); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 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; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + 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); +return x_62; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_box(0); +x_9 = l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_8, x_3, x_4, x_5, x_6, x_7); +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; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_set(x_4, x_12, x_7); +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_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__3(x_2, x_1, x_14, x_3, x_4, x_5, x_6, x_15); +lean_dec(x_14); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withRestoreOrSaveFull___rarg), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Meta_SavedState_restoreFull(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); +x_7 = l_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Meta_withRestoreOrSaveFull___rarg___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_Lean_Meta_withRestoreOrSaveFull___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} static lean_object* _init_l_Lean_Meta_instMonadBacktrackSavedStateMetaM___closed__1() { _start: { @@ -4247,7 +4615,7 @@ x_13 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = lean_st_mk_ref(x_3, x_9); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) @@ -4391,7 +4759,7 @@ return x_46; } else { -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_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; uint8_t 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; x_47 = lean_ctor_get(x_7, 0); x_48 = lean_ctor_get(x_7, 1); x_49 = lean_ctor_get(x_7, 3); @@ -4401,6 +4769,9 @@ x_52 = lean_ctor_get(x_7, 7); x_53 = lean_ctor_get(x_7, 8); x_54 = lean_ctor_get(x_7, 9); x_55 = lean_ctor_get(x_7, 10); +x_56 = lean_ctor_get(x_7, 11); +x_57 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); @@ -4411,99 +4782,101 @@ lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); lean_dec(x_7); -x_56 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1___closed__1; -x_57 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_56); -x_58 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_58, 0, x_47); -lean_ctor_set(x_58, 1, x_48); -lean_ctor_set(x_58, 2, x_1); -lean_ctor_set(x_58, 3, x_49); -lean_ctor_set(x_58, 4, x_57); -lean_ctor_set(x_58, 5, x_50); -lean_ctor_set(x_58, 6, x_51); -lean_ctor_set(x_58, 7, x_52); -lean_ctor_set(x_58, 8, x_53); -lean_ctor_set(x_58, 9, x_54); -lean_ctor_set(x_58, 10, x_55); -lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_2); -x_59 = lean_st_mk_ref(x_3, x_9); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_62 = x_59; +x_58 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1___closed__1; +x_59 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_58); +x_60 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_60, 0, x_47); +lean_ctor_set(x_60, 1, x_48); +lean_ctor_set(x_60, 2, x_1); +lean_ctor_set(x_60, 3, x_49); +lean_ctor_set(x_60, 4, x_59); +lean_ctor_set(x_60, 5, x_50); +lean_ctor_set(x_60, 6, x_51); +lean_ctor_set(x_60, 7, x_52); +lean_ctor_set(x_60, 8, x_53); +lean_ctor_set(x_60, 9, x_54); +lean_ctor_set(x_60, 10, x_55); +lean_ctor_set(x_60, 11, x_56); +lean_ctor_set_uint8(x_60, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_60, sizeof(void*)*12 + 1, x_57); +x_61 = lean_st_mk_ref(x_3, x_9); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +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_59); - x_62 = lean_box(0); + lean_dec_ref(x_61); + x_64 = lean_box(0); } -lean_inc(x_60); -x_63 = lean_apply_5(x_4, x_5, x_60, x_58, x_8, x_61); -if (lean_obj_tag(x_63) == 0) +lean_inc(x_62); +x_65 = lean_apply_5(x_4, x_5, x_62, x_60, x_8, x_63); +if (lean_obj_tag(x_65) == 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 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_st_ref_get(x_60, x_65); -lean_dec(x_60); -x_67 = lean_ctor_get(x_66, 0); +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_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_69 = x_66; +lean_dec(x_65); +x_68 = lean_st_ref_get(x_62, x_67); +lean_dec(x_62); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_71 = x_68; } else { - lean_dec_ref(x_66); - x_69 = lean_box(0); + lean_dec_ref(x_68); + x_71 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_70 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_64)) { + x_72 = lean_alloc_ctor(0, 2, 0); } else { - x_70 = x_62; + x_72 = x_64; } -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_67); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_69); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_69; + x_73 = x_71; } -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_68); -return x_71; +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_70); +return x_73; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_64); lean_dec(x_62); -lean_dec(x_60); -x_72 = lean_ctor_get(x_63, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_63, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_74 = x_63; +x_74 = lean_ctor_get(x_65, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_65, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_76 = x_65; } else { - lean_dec_ref(x_63); - x_74 = lean_box(0); + lean_dec_ref(x_65); + x_76 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; + x_77 = x_76; } -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } @@ -4901,7 +5274,7 @@ goto block_68; } 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_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; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; uint8_t x_187; +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; uint8_t x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 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; uint8_t x_188; uint8_t x_189; x_165 = lean_ctor_get(x_2, 0); x_166 = lean_ctor_get(x_2, 1); x_167 = lean_ctor_get(x_2, 2); @@ -4912,7 +5285,10 @@ x_171 = lean_ctor_get(x_2, 6); x_172 = lean_ctor_get(x_2, 7); x_173 = lean_ctor_get(x_2, 9); x_174 = lean_ctor_get(x_2, 10); -x_175 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_175 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_176 = lean_ctor_get(x_2, 11); +x_177 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_176); lean_inc(x_174); lean_inc(x_173); lean_inc(x_172); @@ -4925,252 +5301,254 @@ lean_inc(x_166); lean_inc(x_165); lean_dec(x_2); lean_inc(x_167); -x_176 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_176, 0, x_165); -lean_ctor_set(x_176, 1, x_166); -lean_ctor_set(x_176, 2, x_167); -lean_ctor_set(x_176, 3, x_168); -lean_ctor_set(x_176, 4, x_169); -lean_ctor_set(x_176, 5, x_170); -lean_ctor_set(x_176, 6, x_171); -lean_ctor_set(x_176, 7, x_172); -lean_ctor_set(x_176, 8, x_70); -lean_ctor_set(x_176, 9, x_173); -lean_ctor_set(x_176, 10, x_174); -lean_ctor_set_uint8(x_176, sizeof(void*)*11, x_175); -x_177 = lean_st_mk_ref(x_3, x_71); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -lean_dec(x_177); -x_180 = l_Lean_Meta_MetaM_toIO___rarg___closed__2; -x_181 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_167, x_180); -x_182 = lean_st_ref_get(x_178, x_179); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_185 = lean_ctor_get(x_183, 0); +x_178 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_178, 0, x_165); +lean_ctor_set(x_178, 1, x_166); +lean_ctor_set(x_178, 2, x_167); +lean_ctor_set(x_178, 3, x_168); +lean_ctor_set(x_178, 4, x_169); +lean_ctor_set(x_178, 5, x_170); +lean_ctor_set(x_178, 6, x_171); +lean_ctor_set(x_178, 7, x_172); +lean_ctor_set(x_178, 8, x_70); +lean_ctor_set(x_178, 9, x_173); +lean_ctor_set(x_178, 10, x_174); +lean_ctor_set(x_178, 11, x_176); +lean_ctor_set_uint8(x_178, sizeof(void*)*12, x_175); +lean_ctor_set_uint8(x_178, sizeof(void*)*12 + 1, x_177); +x_179 = lean_st_mk_ref(x_3, x_71); +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = l_Lean_Meta_MetaM_toIO___rarg___closed__2; +x_183 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_167, x_182); +x_184 = lean_st_ref_get(x_180, x_181); +x_185 = lean_ctor_get(x_184, 0); lean_inc(x_185); -lean_dec(x_183); -x_186 = l_Lean_Kernel_isDiagnosticsEnabled(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +x_187 = lean_ctor_get(x_185, 0); +lean_inc(x_187); lean_dec(x_185); -if (x_186 == 0) +x_188 = l_Lean_Kernel_isDiagnosticsEnabled(x_187); +lean_dec(x_187); +if (x_188 == 0) { -if (x_181 == 0) -{ -uint8_t x_230; -x_230 = 1; -x_187 = x_230; -goto block_229; -} -else -{ -uint8_t x_231; -x_231 = 0; -x_187 = x_231; -goto block_229; -} -} -else -{ -if (x_181 == 0) +if (x_183 == 0) { uint8_t x_232; -x_232 = 0; -x_187 = x_232; -goto block_229; +x_232 = 1; +x_189 = x_232; +goto block_231; } else { uint8_t x_233; -x_233 = 1; -x_187 = x_233; -goto block_229; +x_233 = 0; +x_189 = x_233; +goto block_231; } } -block_229: +else { -if (x_187 == 0) +if (x_183 == 0) { -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; -x_188 = lean_st_ref_take(x_178, x_184); -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); +uint8_t x_234; +x_234 = 0; +x_189 = x_234; +goto block_231; +} +else +{ +uint8_t x_235; +x_235 = 1; +x_189 = x_235; +goto block_231; +} +} +block_231: +{ +if (x_189 == 0) +{ +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; +x_190 = lean_st_ref_take(x_180, x_186); +x_191 = lean_ctor_get(x_190, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_189, 1); +x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_189, 2); +lean_dec(x_190); +x_193 = lean_ctor_get(x_191, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_189, 3); +x_194 = lean_ctor_get(x_191, 1); lean_inc(x_194); -x_195 = lean_ctor_get(x_189, 5); +x_195 = lean_ctor_get(x_191, 2); lean_inc(x_195); -x_196 = lean_ctor_get(x_189, 6); +x_196 = lean_ctor_get(x_191, 3); lean_inc(x_196); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - lean_ctor_release(x_189, 2); - lean_ctor_release(x_189, 3); - lean_ctor_release(x_189, 4); - lean_ctor_release(x_189, 5); - lean_ctor_release(x_189, 6); - x_197 = x_189; +x_197 = lean_ctor_get(x_191, 5); +lean_inc(x_197); +x_198 = lean_ctor_get(x_191, 6); +lean_inc(x_198); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + lean_ctor_release(x_191, 2); + lean_ctor_release(x_191, 3); + lean_ctor_release(x_191, 4); + lean_ctor_release(x_191, 5); + lean_ctor_release(x_191, 6); + x_199 = x_191; } else { - lean_dec_ref(x_189); - x_197 = lean_box(0); + lean_dec_ref(x_191); + x_199 = lean_box(0); } -x_198 = l_Lean_Kernel_enableDiag(x_191, x_181); -x_199 = l_Lean_Meta_instMonadEnvMetaM___lambda__2___closed__1; -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 7, 0); +x_200 = l_Lean_Kernel_enableDiag(x_193, x_183); +x_201 = l_Lean_Meta_instMonadEnvMetaM___lambda__2___closed__1; +if (lean_is_scalar(x_199)) { + x_202 = lean_alloc_ctor(0, 7, 0); } else { - x_200 = x_197; + x_202 = x_199; } -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_192); -lean_ctor_set(x_200, 2, x_193); -lean_ctor_set(x_200, 3, x_194); -lean_ctor_set(x_200, 4, x_199); -lean_ctor_set(x_200, 5, x_195); -lean_ctor_set(x_200, 6, x_196); -x_201 = lean_st_ref_set(x_178, x_200, x_190); -x_202 = lean_ctor_get(x_201, 1); -lean_inc(x_202); -lean_dec(x_201); -x_203 = lean_box(0); -lean_inc(x_178); -x_204 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1(x_167, x_181, x_5, x_1, x_4, x_203, x_176, x_178, x_202); -if (lean_obj_tag(x_204) == 0) +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_194); +lean_ctor_set(x_202, 2, x_195); +lean_ctor_set(x_202, 3, x_196); +lean_ctor_set(x_202, 4, x_201); +lean_ctor_set(x_202, 5, x_197); +lean_ctor_set(x_202, 6, x_198); +x_203 = lean_st_ref_set(x_180, x_202, x_192); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +lean_dec(x_203); +x_205 = lean_box(0); +lean_inc(x_180); +x_206 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1(x_167, x_183, x_5, x_1, x_4, x_205, x_178, x_180, x_204); +if (lean_obj_tag(x_206) == 0) { -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_204, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_204)) { - lean_ctor_release(x_204, 0); - lean_ctor_release(x_204, 1); - x_207 = x_204; +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_209 = x_206; } else { - lean_dec_ref(x_204); - x_207 = lean_box(0); + lean_dec_ref(x_206); + x_209 = lean_box(0); } -x_208 = lean_st_ref_get(x_178, x_206); -lean_dec(x_178); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_211 = x_208; +x_210 = lean_st_ref_get(x_180, x_208); +lean_dec(x_180); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_213 = x_210; } else { - lean_dec_ref(x_208); - x_211 = lean_box(0); + lean_dec_ref(x_210); + x_213 = lean_box(0); } -if (lean_is_scalar(x_207)) { - x_212 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_209)) { + x_214 = lean_alloc_ctor(0, 2, 0); } else { - x_212 = x_207; + x_214 = x_209; } -lean_ctor_set(x_212, 0, x_205); -lean_ctor_set(x_212, 1, x_209); -if (lean_is_scalar(x_211)) { - x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_207); +lean_ctor_set(x_214, 1, x_211); +if (lean_is_scalar(x_213)) { + x_215 = lean_alloc_ctor(0, 2, 0); } else { - x_213 = x_211; + x_215 = x_213; } -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_210); -x_7 = x_213; +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_212); +x_7 = x_215; goto block_39; } else { -lean_object* x_214; lean_object* x_215; -lean_dec(x_178); -x_214 = lean_ctor_get(x_204, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_204, 1); -lean_inc(x_215); -lean_dec(x_204); -x_40 = x_214; -x_41 = x_215; +lean_object* x_216; lean_object* x_217; +lean_dec(x_180); +x_216 = lean_ctor_get(x_206, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_206, 1); +lean_inc(x_217); +lean_dec(x_206); +x_40 = x_216; +x_41 = x_217; goto block_68; } } else { -lean_object* x_216; lean_object* x_217; -x_216 = lean_box(0); -lean_inc(x_178); -x_217 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1(x_167, x_181, x_5, x_1, x_4, x_216, x_176, x_178, x_184); -if (lean_obj_tag(x_217) == 0) +lean_object* x_218; lean_object* x_219; +x_218 = lean_box(0); +lean_inc(x_180); +x_219 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1(x_167, x_183, x_5, x_1, x_4, x_218, x_178, x_180, x_186); +if (lean_obj_tag(x_219) == 0) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_220 = x_217; +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +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_217); - x_220 = lean_box(0); + lean_dec_ref(x_219); + x_222 = lean_box(0); } -x_221 = lean_st_ref_get(x_178, x_219); -lean_dec(x_178); -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_224 = x_221; +x_223 = lean_st_ref_get(x_180, x_221); +lean_dec(x_180); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_226 = x_223; } else { - lean_dec_ref(x_221); - x_224 = lean_box(0); + lean_dec_ref(x_223); + x_226 = lean_box(0); } -if (lean_is_scalar(x_220)) { - x_225 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_222)) { + x_227 = lean_alloc_ctor(0, 2, 0); } else { - x_225 = x_220; + x_227 = x_222; } -lean_ctor_set(x_225, 0, x_218); -lean_ctor_set(x_225, 1, x_222); -if (lean_is_scalar(x_224)) { - x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_220); +lean_ctor_set(x_227, 1, x_224); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); } else { - x_226 = x_224; + x_228 = x_226; } -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_223); -x_7 = x_226; +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +x_7 = x_228; goto block_39; } else { -lean_object* x_227; lean_object* x_228; -lean_dec(x_178); -x_227 = lean_ctor_get(x_217, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_217, 1); -lean_inc(x_228); -lean_dec(x_217); -x_40 = x_227; -x_41 = x_228; +lean_object* x_229; lean_object* x_230; +lean_dec(x_180); +x_229 = lean_ctor_get(x_219, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_219, 1); +lean_inc(x_230); +lean_dec(x_219); +x_40 = x_229; +x_41 = x_230; goto block_68; } } @@ -5469,7 +5847,7 @@ x_13 = lean_ctor_get(x_8, 2); lean_dec(x_13); lean_ctor_set(x_8, 4, x_2); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_3); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_3); x_14 = lean_st_mk_ref(x_4, x_10); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -5604,7 +5982,7 @@ return x_41; } else { -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_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; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_42 = lean_ctor_get(x_8, 0); x_43 = lean_ctor_get(x_8, 1); x_44 = lean_ctor_get(x_8, 3); @@ -5614,6 +5992,9 @@ x_47 = lean_ctor_get(x_8, 7); x_48 = lean_ctor_get(x_8, 8); x_49 = lean_ctor_get(x_8, 9); x_50 = lean_ctor_get(x_8, 10); +x_51 = lean_ctor_get(x_8, 11); +x_52 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); @@ -5624,148 +6005,150 @@ lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_dec(x_8); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_42); -lean_ctor_set(x_51, 1, x_43); -lean_ctor_set(x_51, 2, x_1); -lean_ctor_set(x_51, 3, x_44); -lean_ctor_set(x_51, 4, x_2); -lean_ctor_set(x_51, 5, x_45); -lean_ctor_set(x_51, 6, x_46); -lean_ctor_set(x_51, 7, x_47); -lean_ctor_set(x_51, 8, x_48); -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_3); -x_52 = lean_st_mk_ref(x_4, x_10); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -lean_inc(x_9); -lean_inc(x_51); -lean_inc(x_53); -x_55 = lean_apply_5(x_5, x_6, x_53, x_51, x_9, x_54); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_55, 0); +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_1); +lean_ctor_set(x_53, 3, x_44); +lean_ctor_set(x_53, 4, x_2); +lean_ctor_set(x_53, 5, x_45); +lean_ctor_set(x_53, 6, x_46); +lean_ctor_set(x_53, 7, x_47); +lean_ctor_set(x_53, 8, x_48); +lean_ctor_set(x_53, 9, x_49); +lean_ctor_set(x_53, 10, x_50); +lean_ctor_set(x_53, 11, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_3); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_52); +x_54 = lean_st_mk_ref(x_4, x_10); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_st_ref_get(x_53, x_57); -lean_dec(x_53); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_51, x_9, x_59); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_54); +lean_inc(x_9); +lean_inc(x_53); +lean_inc(x_55); +x_57 = lean_apply_5(x_5, x_6, x_55, x_53, x_9, x_56); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_st_ref_get(x_55, x_59); +lean_dec(x_55); x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; +lean_dec(x_60); +x_62 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_53, x_9, x_61); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_64 = x_62; } else { - lean_dec_ref(x_60); - x_62 = lean_box(0); + lean_dec_ref(x_62); + x_64 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - x_63 = x_62; + x_65 = x_64; } -lean_ctor_set(x_63, 0, x_56); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_ctor_set(x_65, 0, x_58); +lean_ctor_set(x_65, 1, x_63); +return x_65; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_56); -x_64 = lean_ctor_get(x_60, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_66 = x_60; +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_58); +x_66 = lean_ctor_get(x_62, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_62, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_68 = x_62; } else { - lean_dec_ref(x_60); - x_66 = lean_box(0); + lean_dec_ref(x_62); + x_68 = lean_box(0); } -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_67 = x_66; + x_69 = x_68; } -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_65); -return x_67; +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +return x_69; } } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_53); -x_68 = lean_ctor_get(x_55, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_55, 1); -lean_inc(x_69); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_dec(x_55); -x_70 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_51, x_9, x_69); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_70, 1); +x_70 = lean_ctor_get(x_57, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_57, 1); lean_inc(x_71); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_72 = x_70; +lean_dec(x_57); +x_72 = l_Lean_printTraces___at_Lean_Core_instMetaEvalCoreM___spec__1(x_53, x_9, x_71); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; } else { - lean_dec_ref(x_70); - x_72 = lean_box(0); + lean_dec_ref(x_72); + x_74 = lean_box(0); } -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_73 = x_72; - lean_ctor_set_tag(x_73, 1); + x_75 = x_74; + lean_ctor_set_tag(x_75, 1); } -lean_ctor_set(x_73, 0, x_68); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_ctor_set(x_75, 0, x_70); +lean_ctor_set(x_75, 1, x_73); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_68); -x_74 = lean_ctor_get(x_70, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_76 = x_70; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_70); +x_76 = lean_ctor_get(x_72, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_78 = x_72; } else { - lean_dec_ref(x_70); - x_76 = lean_box(0); + lean_dec_ref(x_72); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } } @@ -5790,7 +6173,7 @@ lean_inc(x_15); lean_inc(x_1); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); x_16 = lean_st_ref_get(x_9, x_10); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); @@ -5911,7 +6294,7 @@ return x_46; } else { -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; uint8_t x_68; uint8_t x_69; +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; 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; uint8_t x_70; uint8_t x_71; x_52 = lean_ctor_get(x_8, 0); x_53 = lean_ctor_get(x_8, 1); x_54 = lean_ctor_get(x_8, 3); @@ -5921,6 +6304,9 @@ x_57 = lean_ctor_get(x_8, 7); x_58 = lean_ctor_get(x_8, 8); x_59 = lean_ctor_get(x_8, 9); x_60 = lean_ctor_get(x_8, 10); +x_61 = lean_ctor_get(x_8, 11); +x_62 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); lean_inc(x_58); @@ -5931,133 +6317,135 @@ lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_dec(x_8); -x_61 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1___closed__1; -x_62 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_61); -lean_inc(x_62); +x_63 = l_Lean_Meta_MetaM_toIO___rarg___lambda__1___closed__1; +x_64 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_63); +lean_inc(x_64); lean_inc(x_1); -x_63 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_63, 0, x_52); -lean_ctor_set(x_63, 1, x_53); -lean_ctor_set(x_63, 2, x_1); -lean_ctor_set(x_63, 3, x_54); -lean_ctor_set(x_63, 4, x_62); -lean_ctor_set(x_63, 5, x_55); -lean_ctor_set(x_63, 6, x_56); -lean_ctor_set(x_63, 7, x_57); -lean_ctor_set(x_63, 8, x_58); -lean_ctor_set(x_63, 9, x_59); -lean_ctor_set(x_63, 10, x_60); -lean_ctor_set_uint8(x_63, sizeof(void*)*11, x_2); -x_64 = lean_st_ref_get(x_9, x_10); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); +x_65 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_65, 0, x_52); +lean_ctor_set(x_65, 1, x_53); +lean_ctor_set(x_65, 2, x_1); +lean_ctor_set(x_65, 3, x_54); +lean_ctor_set(x_65, 4, x_64); +lean_ctor_set(x_65, 5, x_55); +lean_ctor_set(x_65, 6, x_56); +lean_ctor_set(x_65, 7, x_57); +lean_ctor_set(x_65, 8, x_58); +lean_ctor_set(x_65, 9, x_59); +lean_ctor_set(x_65, 10, x_60); +lean_ctor_set(x_65, 11, x_61); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_62); +x_66 = lean_st_ref_get(x_9, x_10); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = l_Lean_Kernel_isDiagnosticsEnabled(x_67); +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); lean_dec(x_67); -if (x_68 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_89; -x_89 = 1; -x_69 = x_89; -goto block_88; -} -else -{ -uint8_t x_90; -x_90 = 0; -x_69 = x_90; -goto block_88; -} -} -else +x_70 = l_Lean_Kernel_isDiagnosticsEnabled(x_69); +lean_dec(x_69); +if (x_70 == 0) { if (x_2 == 0) { uint8_t x_91; -x_91 = 0; -x_69 = x_91; -goto block_88; +x_91 = 1; +x_71 = x_91; +goto block_90; } else { uint8_t x_92; -x_92 = 1; -x_69 = x_92; -goto block_88; +x_92 = 0; +x_71 = x_92; +goto block_90; } } -block_88: -{ -if (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; 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_70 = lean_st_ref_take(x_9, x_66); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -x_75 = lean_ctor_get(x_71, 2); -lean_inc(x_75); -x_76 = lean_ctor_get(x_71, 3); -lean_inc(x_76); -x_77 = lean_ctor_get(x_71, 5); -lean_inc(x_77); -x_78 = lean_ctor_get(x_71, 6); -lean_inc(x_78); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - lean_ctor_release(x_71, 2); - lean_ctor_release(x_71, 3); - lean_ctor_release(x_71, 4); - lean_ctor_release(x_71, 5); - lean_ctor_release(x_71, 6); - x_79 = x_71; -} else { - lean_dec_ref(x_71); - x_79 = lean_box(0); -} -x_80 = l_Lean_Kernel_enableDiag(x_73, x_2); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 7, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_74); -lean_ctor_set(x_81, 2, x_75); -lean_ctor_set(x_81, 3, x_76); -lean_ctor_set(x_81, 4, x_6); -lean_ctor_set(x_81, 5, x_77); -lean_ctor_set(x_81, 6, x_78); -x_82 = lean_st_ref_set(x_9, x_81, x_72); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = lean_box(0); -x_85 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1(x_1, x_62, x_2, x_3, x_4, x_5, x_84, x_63, x_9, x_83); -return x_85; -} else { -lean_object* x_86; lean_object* x_87; -lean_dec(x_6); +if (x_2 == 0) +{ +uint8_t x_93; +x_93 = 0; +x_71 = x_93; +goto block_90; +} +else +{ +uint8_t x_94; +x_94 = 1; +x_71 = x_94; +goto block_90; +} +} +block_90: +{ +if (x_71 == 0) +{ +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; lean_object* x_86; lean_object* x_87; +x_72 = lean_st_ref_take(x_9, x_68); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_73, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +x_77 = lean_ctor_get(x_73, 2); +lean_inc(x_77); +x_78 = lean_ctor_get(x_73, 3); +lean_inc(x_78); +x_79 = lean_ctor_get(x_73, 5); +lean_inc(x_79); +x_80 = lean_ctor_get(x_73, 6); +lean_inc(x_80); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + lean_ctor_release(x_73, 2); + lean_ctor_release(x_73, 3); + lean_ctor_release(x_73, 4); + lean_ctor_release(x_73, 5); + lean_ctor_release(x_73, 6); + x_81 = x_73; +} else { + lean_dec_ref(x_73); + x_81 = lean_box(0); +} +x_82 = l_Lean_Kernel_enableDiag(x_75, x_2); +if (lean_is_scalar(x_81)) { + x_83 = lean_alloc_ctor(0, 7, 0); +} else { + x_83 = x_81; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_76); +lean_ctor_set(x_83, 2, x_77); +lean_ctor_set(x_83, 3, x_78); +lean_ctor_set(x_83, 4, x_6); +lean_ctor_set(x_83, 5, x_79); +lean_ctor_set(x_83, 6, x_80); +x_84 = lean_st_ref_set(x_9, x_83, x_74); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); x_86 = lean_box(0); -x_87 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1(x_1, x_62, x_2, x_3, x_4, x_5, x_86, x_63, x_9, x_66); +x_87 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1(x_1, x_64, x_2, x_3, x_4, x_5, x_86, x_65, x_9, x_85); return x_87; } +else +{ +lean_object* x_88; lean_object* x_89; +lean_dec(x_6); +x_88 = lean_box(0); +x_89 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__1(x_1, x_64, x_2, x_3, x_4, x_5, x_88, x_65, x_9, x_68); +return x_89; +} } } } @@ -6157,6 +6545,18 @@ return x_3; static lean_object* _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Meta_State_postponed___default___closed__3; +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_Lean_Meta_instMetaEvalMetaM___rarg___closed__9() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l_Lean_Meta_State_mctx___default___closed__2; @@ -6168,7 +6568,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9() { +static lean_object* _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10() { _start: { lean_object* x_1; @@ -6179,560 +6579,564 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_21; lean_object* x_22; 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; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; -x_50 = lean_box(0); -x_51 = l_Lean_Core_getMaxHeartbeats(x_3); -x_52 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__4; -x_53 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__7; -x_54 = l_Lean_Meta_State_postponed___default___closed__3; -x_55 = l_Lean_Meta_instMonadEnvMetaM___lambda__2___closed__1; -x_56 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8; -x_57 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_57, 0, x_2); -lean_ctor_set(x_57, 1, x_52); -lean_ctor_set(x_57, 2, x_53); -lean_ctor_set(x_57, 3, x_54); -lean_ctor_set(x_57, 4, x_55); -lean_ctor_set(x_57, 5, x_54); -lean_ctor_set(x_57, 6, x_56); -x_58 = lean_io_get_num_heartbeats(x_6); -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_61 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9; -x_62 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__3; -x_63 = lean_unsigned_to_nat(0u); -x_64 = lean_unsigned_to_nat(1000u); -x_65 = lean_box(0); -x_66 = lean_box(0); -x_67 = l_Lean_firstFrontendMacroScope; -x_68 = 0; +lean_object* x_7; lean_object* x_8; lean_object* x_22; lean_object* x_23; 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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; uint8_t x_82; +x_7 = lean_box(0); +x_51 = lean_box(0); +x_52 = l_Lean_Core_getMaxHeartbeats(x_3); +x_53 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__4; +x_54 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__7; +x_55 = l_Lean_Meta_State_postponed___default___closed__3; +x_56 = l_Lean_Meta_instMonadEnvMetaM___lambda__2___closed__1; +x_57 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8; +x_58 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9; +x_59 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_59, 0, x_2); +lean_ctor_set(x_59, 1, x_53); +lean_ctor_set(x_59, 2, x_54); +lean_ctor_set(x_59, 3, x_55); +lean_ctor_set(x_59, 4, x_56); +lean_ctor_set(x_59, 5, x_57); +lean_ctor_set(x_59, 6, x_58); +x_60 = lean_io_get_num_heartbeats(x_6); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10; +x_64 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__3; +x_65 = lean_unsigned_to_nat(0u); +x_66 = lean_unsigned_to_nat(1000u); +x_67 = lean_box(0); +x_68 = lean_box(0); +x_69 = l_Lean_firstFrontendMacroScope; +x_70 = 0; lean_inc(x_3); -x_69 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_69, 0, x_61); -lean_ctor_set(x_69, 1, x_62); -lean_ctor_set(x_69, 2, x_3); -lean_ctor_set(x_69, 3, x_63); -lean_ctor_set(x_69, 4, x_64); -lean_ctor_set(x_69, 5, x_65); -lean_ctor_set(x_69, 6, x_66); -lean_ctor_set(x_69, 7, x_50); -lean_ctor_set(x_69, 8, x_59); -lean_ctor_set(x_69, 9, x_51); -lean_ctor_set(x_69, 10, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*11, x_68); -x_70 = lean_st_mk_ref(x_57, x_60); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l_Lean_Meta_MetaM_toIO___rarg___closed__2; -x_74 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_73); -x_75 = lean_st_ref_get(x_71, x_72); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_76, 0); +x_71 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_71, 0, x_63); +lean_ctor_set(x_71, 1, x_64); +lean_ctor_set(x_71, 2, x_3); +lean_ctor_set(x_71, 3, x_65); +lean_ctor_set(x_71, 4, x_66); +lean_ctor_set(x_71, 5, x_67); +lean_ctor_set(x_71, 6, x_68); +lean_ctor_set(x_71, 7, x_51); +lean_ctor_set(x_71, 8, x_61); +lean_ctor_set(x_71, 9, x_52); +lean_ctor_set(x_71, 10, x_69); +lean_ctor_set(x_71, 11, x_7); +lean_ctor_set_uint8(x_71, sizeof(void*)*12, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*12 + 1, x_70); +x_72 = lean_st_mk_ref(x_59, x_62); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = l_Lean_Meta_MetaM_toIO___rarg___closed__2; +x_76 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_75); +x_77 = lean_st_ref_get(x_73, x_74); +x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Lean_Kernel_isDiagnosticsEnabled(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); lean_dec(x_78); -if (x_79 == 0) +x_81 = l_Lean_Kernel_isDiagnosticsEnabled(x_80); +lean_dec(x_80); +if (x_81 == 0) { -if (x_74 == 0) +if (x_76 == 0) { -uint8_t x_160; -x_160 = 1; -x_80 = x_160; -goto block_159; +uint8_t x_162; +x_162 = 1; +x_82 = x_162; +goto block_161; } else { -x_80 = x_68; -goto block_159; +x_82 = x_70; +goto block_161; } } else { -if (x_74 == 0) +if (x_76 == 0) { -x_80 = x_68; -goto block_159; +x_82 = x_70; +goto block_161; } else { -uint8_t x_161; -x_161 = 1; -x_80 = x_161; -goto block_159; +uint8_t x_163; +x_163 = 1; +x_82 = x_163; +goto block_161; } } -block_20: +block_21: { -if (lean_obj_tag(x_7) == 0) +if (lean_obj_tag(x_8) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +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; lean_object* x_16; +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); lean_dec(x_8); -x_12 = lean_ctor_get(x_11, 0); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); -lean_dec(x_11); -x_13 = 1; -x_14 = lean_box(x_13); -x_15 = lean_apply_5(x_1, x_12, x_3, x_10, x_14, x_9); -return x_15; +lean_dec(x_9); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = 1; +x_15 = lean_box(x_14); +x_16 = lean_apply_5(x_1, x_13, x_3, x_11, x_15, x_10); +return x_16; } else { -uint8_t x_16; +uint8_t x_17; lean_dec(x_3); lean_dec(x_1); -x_16 = !lean_is_exclusive(x_7); -if (x_16 == 0) +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) { -return x_7; +return x_8; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_7, 0); -x_18 = lean_ctor_get(x_7, 1); +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_inc(x_17); -lean_dec(x_7); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +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; } } } -block_49: +block_50: { -if (lean_obj_tag(x_21) == 0) +if (lean_obj_tag(x_22) == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_MessageData_toString(x_23, x_22); -if (lean_obj_tag(x_24) == 0) +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_MessageData_toString(x_24, x_23); +if (lean_obj_tag(x_25) == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set_tag(x_24, 1); -lean_ctor_set(x_24, 0, x_27); -x_7 = x_24; -goto block_20; +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_28); +x_8 = x_25; +goto block_21; } 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_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_inc(x_28); -lean_dec(x_24); -x_30 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_30, 0, x_28); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_7 = x_31; -goto block_20; +lean_dec(x_25); +x_31 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_31, 0, x_29); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_8 = x_32; +goto block_21; } } else { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) +uint8_t x_33; +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) { -x_7 = x_24; -goto block_20; +x_8 = x_25; +goto block_21; } 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_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_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); -x_7 = x_35; -goto block_20; +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); +x_8 = x_36; +goto block_21; } } } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_21); -if (x_36 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_22); +if (x_37 == 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; -x_37 = lean_ctor_get(x_21, 0); -x_38 = lean_ctor_get(x_21, 1); -lean_dec(x_38); -x_39 = l___private_Init_Data_Repr_0__Nat_reprFast(x_37); -x_40 = l_Lean_Meta_MetaM_toIO___rarg___closed__1; -x_41 = lean_string_append(x_40, x_39); +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_38 = lean_ctor_get(x_22, 0); +x_39 = lean_ctor_get(x_22, 1); lean_dec(x_39); -x_42 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_21, 1, x_22); -lean_ctor_set(x_21, 0, x_42); -x_7 = x_21; -goto block_20; +x_40 = l___private_Init_Data_Repr_0__Nat_reprFast(x_38); +x_41 = l_Lean_Meta_MetaM_toIO___rarg___closed__1; +x_42 = lean_string_append(x_41, x_40); +lean_dec(x_40); +x_43 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_22, 1, x_23); +lean_ctor_set(x_22, 0, x_43); +x_8 = x_22; +goto block_21; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_43 = lean_ctor_get(x_21, 0); -lean_inc(x_43); -lean_dec(x_21); -x_44 = l___private_Init_Data_Repr_0__Nat_reprFast(x_43); -x_45 = l_Lean_Meta_MetaM_toIO___rarg___closed__1; -x_46 = lean_string_append(x_45, x_44); -lean_dec(x_44); -x_47 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_alloc_ctor(1, 2, 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 = lean_ctor_get(x_22, 0); +lean_inc(x_44); +lean_dec(x_22); +x_45 = l___private_Init_Data_Repr_0__Nat_reprFast(x_44); +x_46 = l_Lean_Meta_MetaM_toIO___rarg___closed__1; +x_47 = lean_string_append(x_46, x_45); +lean_dec(x_45); +x_48 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_22); -x_7 = x_48; -goto block_20; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_23); +x_8 = x_49; +goto block_21; } } } -block_159: +block_161: { -if (x_80 == 0) +if (x_82 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_st_ref_take(x_71, x_77); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = !lean_is_exclusive(x_82); -if (x_84 == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_st_ref_take(x_73, x_79); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = !lean_is_exclusive(x_84); +if (x_86 == 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; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_85 = lean_ctor_get(x_82, 0); -x_86 = lean_ctor_get(x_82, 4); -lean_dec(x_86); -x_87 = l_Lean_Kernel_enableDiag(x_85, x_74); -lean_ctor_set(x_82, 4, x_55); -lean_ctor_set(x_82, 0, x_87); -x_88 = lean_st_ref_set(x_71, x_82, x_83); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); +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_87 = lean_ctor_get(x_84, 0); +x_88 = lean_ctor_get(x_84, 4); lean_dec(x_88); -x_90 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; -x_91 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; -x_92 = lean_box(0); -lean_inc(x_71); +x_89 = l_Lean_Kernel_enableDiag(x_87, x_76); +lean_ctor_set(x_84, 4, x_56); +lean_ctor_set(x_84, 0, x_89); +x_90 = lean_st_ref_set(x_73, x_84, x_85); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; +x_93 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; +x_94 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_93 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_74, x_90, x_4, x_91, x_55, x_92, x_69, x_71, x_89); -if (lean_obj_tag(x_93) == 0) +x_95 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_76, x_92, x_4, x_93, x_56, x_94, x_71, x_73, x_91); +if (lean_obj_tag(x_95) == 0) { -uint8_t x_94; -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -lean_object* x_95; lean_object* x_96; uint8_t x_97; -x_95 = lean_ctor_get(x_93, 1); -x_96 = lean_st_ref_get(x_71, x_95); -lean_dec(x_71); -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) +lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_97 = lean_ctor_get(x_95, 1); +x_98 = lean_st_ref_get(x_73, x_97); +lean_dec(x_73); +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) { -lean_object* x_98; -x_98 = lean_ctor_get(x_96, 0); -lean_ctor_set(x_93, 1, x_98); -lean_ctor_set(x_96, 0, x_93); -x_7 = x_96; -goto block_20; +lean_object* x_100; +x_100 = lean_ctor_get(x_98, 0); +lean_ctor_set(x_95, 1, x_100); +lean_ctor_set(x_98, 0, x_95); +x_8 = x_98; +goto block_21; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_96, 0); -x_100 = lean_ctor_get(x_96, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_96); -lean_ctor_set(x_93, 1, x_99); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_93); -lean_ctor_set(x_101, 1, x_100); -x_7 = x_101; -goto block_20; -} -} -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; lean_object* x_108; lean_object* x_109; -x_102 = lean_ctor_get(x_93, 0); -x_103 = lean_ctor_get(x_93, 1); -lean_inc(x_103); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_98, 0); +x_102 = lean_ctor_get(x_98, 1); lean_inc(x_102); -lean_dec(x_93); -x_104 = lean_st_ref_get(x_71, x_103); -lean_dec(x_71); -x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_101); +lean_dec(x_98); +lean_ctor_set(x_95, 1, x_101); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_95); +lean_ctor_set(x_103, 1, x_102); +x_8 = x_103; +goto block_21; +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_104 = lean_ctor_get(x_95, 0); +x_105 = lean_ctor_get(x_95, 1); 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_inc(x_104); +lean_dec(x_95); +x_106 = lean_st_ref_get(x_73, x_105); +lean_dec(x_73); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_109 = x_106; } else { - lean_dec_ref(x_104); - x_107 = lean_box(0); + lean_dec_ref(x_106); + x_109 = lean_box(0); } -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_102); -lean_ctor_set(x_108, 1, x_105); -if (lean_is_scalar(x_107)) { - x_109 = lean_alloc_ctor(0, 2, 0); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_104); +lean_ctor_set(x_110, 1, x_107); +if (lean_is_scalar(x_109)) { + x_111 = lean_alloc_ctor(0, 2, 0); } else { - x_109 = x_107; + x_111 = x_109; } -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_106); -x_7 = x_109; -goto block_20; +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_108); +x_8 = x_111; +goto block_21; } } else { -lean_object* x_110; lean_object* x_111; -lean_dec(x_71); -x_110 = lean_ctor_get(x_93, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_93, 1); -lean_inc(x_111); -lean_dec(x_93); -x_21 = x_110; -x_22 = x_111; -goto block_49; +lean_object* x_112; lean_object* x_113; +lean_dec(x_73); +x_112 = lean_ctor_get(x_95, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_95, 1); +lean_inc(x_113); +lean_dec(x_95); +x_22 = x_112; +x_23 = x_113; +goto block_50; } } 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_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_112 = lean_ctor_get(x_82, 0); -x_113 = lean_ctor_get(x_82, 1); -x_114 = lean_ctor_get(x_82, 2); -x_115 = lean_ctor_get(x_82, 3); -x_116 = lean_ctor_get(x_82, 5); -x_117 = lean_ctor_get(x_82, 6); +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; lean_object* x_127; +x_114 = lean_ctor_get(x_84, 0); +x_115 = lean_ctor_get(x_84, 1); +x_116 = lean_ctor_get(x_84, 2); +x_117 = lean_ctor_get(x_84, 3); +x_118 = lean_ctor_get(x_84, 5); +x_119 = lean_ctor_get(x_84, 6); +lean_inc(x_119); +lean_inc(x_118); lean_inc(x_117); lean_inc(x_116); lean_inc(x_115); lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_82); -x_118 = l_Lean_Kernel_enableDiag(x_112, x_74); -x_119 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_113); -lean_ctor_set(x_119, 2, x_114); -lean_ctor_set(x_119, 3, x_115); -lean_ctor_set(x_119, 4, x_55); -lean_ctor_set(x_119, 5, x_116); -lean_ctor_set(x_119, 6, x_117); -x_120 = lean_st_ref_set(x_71, x_119, x_83); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_122 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; -x_123 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; -x_124 = lean_box(0); -lean_inc(x_71); +lean_dec(x_84); +x_120 = l_Lean_Kernel_enableDiag(x_114, x_76); +x_121 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_115); +lean_ctor_set(x_121, 2, x_116); +lean_ctor_set(x_121, 3, x_117); +lean_ctor_set(x_121, 4, x_56); +lean_ctor_set(x_121, 5, x_118); +lean_ctor_set(x_121, 6, x_119); +x_122 = lean_st_ref_set(x_73, x_121, x_85); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +lean_dec(x_122); +x_124 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; +x_125 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; +x_126 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_125 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_74, x_122, x_4, x_123, x_55, x_124, x_69, x_71, x_121); -if (lean_obj_tag(x_125) == 0) +x_127 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_76, x_124, x_4, x_125, x_56, x_126, x_71, x_73, x_123); +if (lean_obj_tag(x_127) == 0) { -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; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +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; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_130 = x_127; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -x_129 = lean_st_ref_get(x_71, x_127); -lean_dec(x_71); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -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; +x_131 = lean_st_ref_get(x_73, x_129); +lean_dec(x_73); +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_129); - x_132 = lean_box(0); + lean_dec_ref(x_131); + x_134 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_133 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_130)) { + x_135 = lean_alloc_ctor(0, 2, 0); } else { - x_133 = x_128; + x_135 = x_130; } -lean_ctor_set(x_133, 0, x_126); -lean_ctor_set(x_133, 1, x_130); -if (lean_is_scalar(x_132)) { - x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_128); +lean_ctor_set(x_135, 1, x_132); +if (lean_is_scalar(x_134)) { + x_136 = lean_alloc_ctor(0, 2, 0); } else { - x_134 = x_132; + x_136 = x_134; } -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_131); -x_7 = x_134; -goto block_20; +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_133); +x_8 = x_136; +goto block_21; } else { -lean_object* x_135; lean_object* x_136; -lean_dec(x_71); -x_135 = lean_ctor_get(x_125, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_125, 1); -lean_inc(x_136); -lean_dec(x_125); -x_21 = x_135; -x_22 = x_136; -goto block_49; +lean_object* x_137; lean_object* x_138; +lean_dec(x_73); +x_137 = lean_ctor_get(x_127, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_127, 1); +lean_inc(x_138); +lean_dec(x_127); +x_22 = x_137; +x_23 = x_138; +goto block_50; } } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_137 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; -x_138 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; -x_139 = lean_box(0); -lean_inc(x_71); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; +x_140 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1; +x_141 = lean_box(0); +lean_inc(x_73); lean_inc(x_3); -x_140 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_74, x_137, x_4, x_138, x_55, x_139, x_69, x_71, x_77); -if (lean_obj_tag(x_140) == 0) +x_142 = l_Lean_Meta_instMetaEvalMetaM___rarg___lambda__2(x_3, x_76, x_139, x_4, x_140, x_56, x_141, x_71, x_73, x_79); +if (lean_obj_tag(x_142) == 0) { -uint8_t x_141; -x_141 = !lean_is_exclusive(x_140); -if (x_141 == 0) +uint8_t x_143; +x_143 = !lean_is_exclusive(x_142); +if (x_143 == 0) { -lean_object* x_142; lean_object* x_143; uint8_t x_144; -x_142 = lean_ctor_get(x_140, 1); -x_143 = lean_st_ref_get(x_71, x_142); -lean_dec(x_71); -x_144 = !lean_is_exclusive(x_143); -if (x_144 == 0) +lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_144 = lean_ctor_get(x_142, 1); +x_145 = lean_st_ref_get(x_73, x_144); +lean_dec(x_73); +x_146 = !lean_is_exclusive(x_145); +if (x_146 == 0) { -lean_object* x_145; -x_145 = lean_ctor_get(x_143, 0); -lean_ctor_set(x_140, 1, x_145); -lean_ctor_set(x_143, 0, x_140); -x_7 = x_143; -goto block_20; +lean_object* x_147; +x_147 = lean_ctor_get(x_145, 0); +lean_ctor_set(x_142, 1, x_147); +lean_ctor_set(x_145, 0, x_142); +x_8 = x_145; +goto block_21; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_143, 0); -x_147 = lean_ctor_get(x_143, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_143); -lean_ctor_set(x_140, 1, x_146); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_140); -lean_ctor_set(x_148, 1, x_147); -x_7 = x_148; -goto block_20; -} -} -else -{ -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; -x_149 = lean_ctor_get(x_140, 0); -x_150 = lean_ctor_get(x_140, 1); -lean_inc(x_150); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_145, 0); +x_149 = lean_ctor_get(x_145, 1); lean_inc(x_149); -lean_dec(x_140); -x_151 = lean_st_ref_get(x_71, x_150); -lean_dec(x_71); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_154 = x_151; -} else { - lean_dec_ref(x_151); - x_154 = lean_box(0); -} -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_149); -lean_ctor_set(x_155, 1, x_152); -if (lean_is_scalar(x_154)) { - x_156 = lean_alloc_ctor(0, 2, 0); -} else { - x_156 = x_154; -} -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_153); -x_7 = x_156; -goto block_20; +lean_inc(x_148); +lean_dec(x_145); +lean_ctor_set(x_142, 1, x_148); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_142); +lean_ctor_set(x_150, 1, x_149); +x_8 = x_150; +goto block_21; } } else { -lean_object* x_157; lean_object* x_158; -lean_dec(x_71); -x_157 = lean_ctor_get(x_140, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_140, 1); -lean_inc(x_158); -lean_dec(x_140); -x_21 = x_157; -x_22 = x_158; -goto block_49; +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; +x_151 = lean_ctor_get(x_142, 0); +x_152 = lean_ctor_get(x_142, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_142); +x_153 = lean_st_ref_get(x_73, x_152); +lean_dec(x_73); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_156 = x_153; +} else { + lean_dec_ref(x_153); + x_156 = lean_box(0); +} +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_151); +lean_ctor_set(x_157, 1, x_154); +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_156; +} +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_155); +x_8 = x_158; +goto block_21; +} +} +else +{ +lean_object* x_159; lean_object* x_160; +lean_dec(x_73); +x_159 = lean_ctor_get(x_142, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_142, 1); +lean_inc(x_160); +lean_dec(x_142); +x_22 = x_159; +x_23 = x_160; +goto block_50; } } } @@ -6828,7 +7232,7 @@ lean_dec(x_2); return x_6; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -6838,7 +7242,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -6848,17 +7252,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4() { _start: { lean_object* x_1; @@ -6866,17 +7270,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6() { _start: { lean_object* x_1; @@ -6884,37 +7288,37 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10() { _start: { lean_object* x_1; @@ -6922,17 +7326,17 @@ x_1 = lean_mk_string_from_bytes("Basic", 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12() { _start: { lean_object* x_1; @@ -6940,27 +7344,27 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13; -x_2 = lean_unsigned_to_nat(1973u); +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13; +x_2 = lean_unsigned_to_nat(2146u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15() { _start: { lean_object* x_1; @@ -6968,23 +7372,23 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__7; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1; x_3 = 0; -x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14; +x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -6992,7 +7396,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); -x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16; +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16; x_8 = l_Lean_registerTraceClass(x_7, x_3, x_4, x_6); return x_8; } @@ -11239,7 +11643,7 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___rarg___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_dec(x_2); x_9 = lean_ctor_get(x_6, 0); lean_inc(x_9); @@ -11263,71 +11667,79 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); -lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); -x_36 = lean_apply_7(x_3, lean_box(0), x_1, x_4, x_5, x_6, x_7, x_8); -return x_36; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_6); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); +lean_dec(x_36); x_37 = lean_unsigned_to_nat(1u); x_38 = lean_nat_add(x_12, x_37); lean_dec(x_12); -x_39 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_39, 0, x_9); -lean_ctor_set(x_39, 1, x_10); -lean_ctor_set(x_39, 2, x_11); -lean_ctor_set(x_39, 3, x_38); -lean_ctor_set(x_39, 4, x_13); -lean_ctor_set(x_39, 5, x_14); -lean_ctor_set(x_39, 6, x_15); -lean_ctor_set(x_39, 7, x_16); -lean_ctor_set(x_39, 8, x_17); -lean_ctor_set(x_39, 9, x_18); -lean_ctor_set(x_39, 10, x_19); -lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_20); -x_40 = lean_apply_7(x_3, lean_box(0), x_1, x_4, x_5, x_39, x_7, x_8); -return x_40; +lean_ctor_set(x_6, 3, x_38); +x_39 = lean_apply_7(x_3, lean_box(0), x_1, x_4, x_5, x_6, x_7, x_8); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_6); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_12, x_40); +lean_dec(x_12); +x_42 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_42, 0, x_9); +lean_ctor_set(x_42, 1, x_10); +lean_ctor_set(x_42, 2, x_11); +lean_ctor_set(x_42, 3, x_41); +lean_ctor_set(x_42, 4, x_13); +lean_ctor_set(x_42, 5, x_14); +lean_ctor_set(x_42, 6, x_15); +lean_ctor_set(x_42, 7, x_16); +lean_ctor_set(x_42, 8, x_17); +lean_ctor_set(x_42, 9, x_18); +lean_ctor_set(x_42, 10, x_19); +lean_ctor_set(x_42, 11, x_21); +lean_ctor_set_uint8(x_42, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_42, sizeof(void*)*12 + 1, x_22); +x_43 = lean_apply_7(x_3, lean_box(0), x_1, x_4, x_5, x_42, x_7, x_8); +return x_43; } } else { -lean_object* x_41; +lean_object* x_44; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -11340,12 +11752,12 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_3); lean_dec(x_1); -x_41 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___rarg(x_14, x_4, x_5, x_6, x_7, x_8); +x_44 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___rarg(x_14, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_41; +return x_44; } } } @@ -31764,14 +32176,18 @@ if (x_12 == 0) { lean_object* x_13; uint8_t x_14; x_13 = lean_ctor_get(x_7, 0); -x_14 = l_Lean_Exception_isRuntime(x_13); +x_14 = l_Lean_Exception_isInterrupt(x_13); if (x_14 == 0) { -lean_object* x_15; +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_dec(x_13); -x_15 = lean_box(0); +x_16 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_15); +lean_ctor_set(x_7, 0, x_16); return x_7; } else @@ -31781,30 +32197,48 @@ return x_7; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_7, 0); -x_17 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_7); -x_18 = l_Lean_Exception_isRuntime(x_16); -if (x_18 == 0) +x_19 = l_Lean_Exception_isInterrupt(x_17); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -lean_dec(x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } else { -lean_object* x_21; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_16); -lean_ctor_set(x_21, 1, x_17); -return x_21; +lean_object* x_23; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_17); +lean_ctor_set(x_23, 1, x_18); +return x_23; +} +} +else +{ +lean_object* x_24; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_17); +lean_ctor_set(x_24, 1, x_18); +return x_24; } } } @@ -40326,20 +40760,24 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(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_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_free_object(x_11); lean_dec(x_13); -x_16 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_14); +x_17 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_14); lean_dec(x_9); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_box(0); -x_19 = lean_apply_6(x_2, x_18, x_3, x_4, x_5, x_6, x_17); -return x_19; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_box(0); +x_20 = lean_apply_6(x_2, x_19, x_3, x_4, x_5, x_6, x_18); +return x_20; } else { @@ -40354,39 +40792,69 @@ return x_11; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -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 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_20); -x_23 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_21); -lean_dec(x_9); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_box(0); -x_26 = lean_apply_6(x_2, x_25, x_3, x_4, x_5, x_6, x_24); -return x_26; -} -else -{ -lean_object* x_27; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_21); -return x_27; +return x_11; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_11, 0); +x_22 = lean_ctor_get(x_11, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_11); +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) +{ +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_21); +x_25 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_22); +lean_dec(x_9); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_box(0); +x_28 = lean_apply_6(x_2, x_27, x_3, x_4, x_5, x_6, x_26); +return x_28; +} +else +{ +lean_object* x_29; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_22); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_21); +lean_ctor_set(x_30, 1, x_22); +return x_30; } } } @@ -40522,20 +40990,24 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; uint8_t x_16; x_14 = lean_ctor_get(x_12, 0); x_15 = lean_ctor_get(x_12, 1); -x_16 = l_Lean_Exception_isRuntime(x_14); +x_16 = l_Lean_Exception_isInterrupt(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_17; +x_17 = l_Lean_Exception_isRuntime(x_14); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_free_object(x_12); lean_dec(x_14); -x_17 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_15); +x_18 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_15); lean_dec(x_10); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_box(0); -x_20 = lean_apply_6(x_3, x_19, x_4, x_5, x_6, x_7, x_18); -return x_20; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_box(0); +x_21 = lean_apply_6(x_3, x_20, x_4, x_5, x_6, x_7, x_19); +return x_21; } else { @@ -40550,39 +41022,69 @@ return x_12; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_22); -lean_dec(x_10); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_box(0); -x_27 = lean_apply_6(x_3, x_26, x_4, x_5, x_6, x_7, x_25); -return x_27; -} -else -{ -lean_object* x_28; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_22); -return x_28; +return x_12; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) +{ +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_22); +x_26 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_10); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_box(0); +x_29 = lean_apply_6(x_3, x_28, x_4, x_5, x_6, x_7, x_27); +return x_29; +} +else +{ +lean_object* x_30; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_23); +return x_31; } } } @@ -40699,339 +41201,215 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; uint8_t x_22; x_20 = lean_ctor_get(x_18, 0); x_21 = lean_ctor_get(x_18, 1); -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -lean_free_object(x_18); -x_23 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_13, x_5, x_6, x_7, x_8, x_21); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_st_ref_take(x_6, x_24); -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) +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 0); -lean_dec(x_29); -lean_ctor_set(x_26, 0, x_17); -x_30 = lean_st_ref_set(x_6, x_26, x_27); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_free_object(x_18); +x_24 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_13, x_5, x_6, x_7, x_8, x_21); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_take(x_6, x_25); +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_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +lean_ctor_set(x_27, 0, x_17); +x_31 = lean_st_ref_set(x_6, x_27, x_28); if (lean_obj_tag(x_20) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = lean_ctor_get(x_20, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_20, 1); +lean_dec(x_31); +x_33 = lean_ctor_get(x_20, 0); lean_inc(x_33); +x_34 = lean_ctor_get(x_20, 1); +lean_inc(x_34); lean_dec(x_20); -x_34 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_31); -if (lean_obj_tag(x_34) == 0) +x_35 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_32); +if (lean_obj_tag(x_35) == 0) { +lean_dec(x_34); lean_dec(x_33); -lean_dec(x_32); lean_dec(x_4); lean_dec(x_3); -return x_34; +return x_35; } else { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_34, 0); -x_37 = l_Lean_Exception_isRuntime(x_36); -if (x_37 == 0) -{ -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_36); +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_35, 0); +x_38 = l_Lean_Exception_isInterrupt(x_37); if (x_38 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_36, 0); -x_40 = lean_ctor_get(x_36, 1); -x_41 = lean_apply_2(x_3, x_32, x_39); -x_42 = lean_apply_2(x_4, x_33, x_40); -lean_ctor_set(x_36, 1, x_42); -lean_ctor_set(x_36, 0, x_41); -return x_34; +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_37); +if (x_39 == 0) +{ +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_37); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_37, 0); +x_42 = lean_ctor_get(x_37, 1); +x_43 = lean_apply_2(x_3, x_33, x_41); +x_44 = lean_apply_2(x_4, x_34, x_42); +lean_ctor_set(x_37, 1, x_44); +lean_ctor_set(x_37, 0, x_43); +return x_35; } else { -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_36, 0); -x_44 = lean_ctor_get(x_36, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_36); -x_45 = lean_apply_2(x_3, x_32, x_43); -x_46 = lean_apply_2(x_4, x_33, x_44); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set(x_34, 0, x_47); -return x_34; +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_37, 0); +x_46 = lean_ctor_get(x_37, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_37); +x_47 = lean_apply_2(x_3, x_33, x_45); +x_48 = lean_apply_2(x_4, x_34, x_46); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_35, 0, x_49); +return x_35; } } else { -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_4); -lean_dec(x_3); -return x_34; -} -} -else -{ -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_4); -lean_dec(x_3); -return x_34; -} -} -else -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_34, 0); -x_49 = lean_ctor_get(x_34, 1); -lean_inc(x_49); -lean_inc(x_48); lean_dec(x_34); -x_50 = l_Lean_Exception_isRuntime(x_48); -if (x_50 == 0) +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); +return x_35; +} +} +else { -if (lean_obj_tag(x_48) == 0) +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); +return x_35; +} +} +else { -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; -x_51 = lean_ctor_get(x_48, 0); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); +return x_35; +} +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = lean_ctor_get(x_35, 0); +x_51 = lean_ctor_get(x_35, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_48, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_53 = x_48; +lean_inc(x_50); +lean_dec(x_35); +x_52 = l_Lean_Exception_isInterrupt(x_50); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = l_Lean_Exception_isRuntime(x_50); +if (x_53 == 0) +{ +if (lean_obj_tag(x_50) == 0) +{ +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; +x_54 = lean_ctor_get(x_50, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_56 = x_50; } else { - lean_dec_ref(x_48); - x_53 = lean_box(0); + lean_dec_ref(x_50); + x_56 = lean_box(0); } -x_54 = lean_apply_2(x_3, x_32, x_51); -x_55 = lean_apply_2(x_4, x_33, x_52); -if (lean_is_scalar(x_53)) { - x_56 = lean_alloc_ctor(0, 2, 0); +x_57 = lean_apply_2(x_3, x_33, x_54); +x_58 = lean_apply_2(x_4, x_34, x_55); +if (lean_is_scalar(x_56)) { + x_59 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_53; + x_59 = x_56; } -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_49); -return x_57; +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_51); +return x_60; } else { -lean_object* x_58; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_4); -lean_dec(x_3); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_48); -lean_ctor_set(x_58, 1, x_49); -return x_58; -} -} -else -{ -lean_object* x_59; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_4); -lean_dec(x_3); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_48); -lean_ctor_set(x_59, 1, x_49); -return x_59; -} -} -} -} -else -{ -uint8_t x_60; -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_60 = !lean_is_exclusive(x_30); -if (x_60 == 0) -{ lean_object* x_61; -x_61 = lean_ctor_get(x_30, 0); -lean_dec(x_61); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_20); -return x_30; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_50); +lean_ctor_set(x_61, 1, x_51); +return x_61; +} } else { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_30, 1); -lean_inc(x_62); -lean_dec(x_30); +lean_object* x_62; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_50); +lean_ctor_set(x_62, 1, x_51); +return x_62; +} +} +else +{ +lean_object* x_63; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_4); +lean_dec(x_3); x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_20); -lean_ctor_set(x_63, 1, x_62); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_51); 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_26, 1); -x_65 = lean_ctor_get(x_26, 2); -x_66 = lean_ctor_get(x_26, 3); -x_67 = lean_ctor_get(x_26, 4); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_26); -x_68 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_68, 0, x_17); -lean_ctor_set(x_68, 1, x_64); -lean_ctor_set(x_68, 2, x_65); -lean_ctor_set(x_68, 3, x_66); -lean_ctor_set(x_68, 4, x_67); -x_69 = lean_st_ref_set(x_6, x_68, x_27); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = lean_ctor_get(x_20, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_20, 1); -lean_inc(x_72); -lean_dec(x_20); -x_73 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_70); -if (lean_obj_tag(x_73) == 0) -{ -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_4); -lean_dec(x_3); -return x_73; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -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; -} else { - lean_dec_ref(x_73); - x_76 = lean_box(0); -} -x_77 = l_Lean_Exception_isRuntime(x_74); -if (x_77 == 0) -{ -if (lean_obj_tag(x_74) == 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; -x_78 = lean_ctor_get(x_74, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_74, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_80 = x_74; -} else { - lean_dec_ref(x_74); - x_80 = lean_box(0); -} -x_81 = lean_apply_2(x_3, x_71, x_78); -x_82 = lean_apply_2(x_4, x_72, x_79); -if (lean_is_scalar(x_80)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_80; -} -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -if (lean_is_scalar(x_76)) { - x_84 = lean_alloc_ctor(1, 2, 0); -} else { - x_84 = x_76; -} -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_75); -return x_84; -} -else -{ -lean_object* x_85; -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_76)) { - x_85 = lean_alloc_ctor(1, 2, 0); -} else { - x_85 = x_76; -} -lean_ctor_set(x_85, 0, x_74); -lean_ctor_set(x_85, 1, x_75); -return x_85; -} -} -else -{ -lean_object* x_86; -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_76)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_76; -} -lean_ctor_set(x_86, 0, x_74); -lean_ctor_set(x_86, 1, x_75); -return x_86; -} -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; +uint8_t x_64; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -41039,26 +41417,205 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_87 = lean_ctor_get(x_69, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_88 = x_69; -} else { - lean_dec_ref(x_69); - x_88 = lean_box(0); +x_64 = !lean_is_exclusive(x_31); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_31, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_20); +return x_31; } -if (lean_is_scalar(x_88)) { +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_31, 1); +lean_inc(x_66); +lean_dec(x_31); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_20); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +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_68 = lean_ctor_get(x_27, 1); +x_69 = lean_ctor_get(x_27, 2); +x_70 = lean_ctor_get(x_27, 3); +x_71 = lean_ctor_get(x_27, 4); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_27); +x_72 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_72, 0, x_17); +lean_ctor_set(x_72, 1, x_68); +lean_ctor_set(x_72, 2, x_69); +lean_ctor_set(x_72, 3, x_70); +lean_ctor_set(x_72, 4, x_71); +x_73 = lean_st_ref_set(x_6, x_72, x_28); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = lean_ctor_get(x_20, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_20, 1); +lean_inc(x_76); +lean_dec(x_20); +x_77 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_74); +if (lean_obj_tag(x_77) == 0) +{ +lean_dec(x_76); +lean_dec(x_75); +lean_dec(x_4); +lean_dec(x_3); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +x_81 = l_Lean_Exception_isInterrupt(x_78); +if (x_81 == 0) +{ +uint8_t x_82; +x_82 = l_Lean_Exception_isRuntime(x_78); +if (x_82 == 0) +{ +if (lean_obj_tag(x_78) == 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_78, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_85 = x_78; +} else { + lean_dec_ref(x_78); + x_85 = lean_box(0); +} +x_86 = lean_apply_2(x_3, x_75, x_83); +x_87 = lean_apply_2(x_4, x_76, x_84); +if (lean_is_scalar(x_85)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_85; +} +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +if (lean_is_scalar(x_80)) { x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; - lean_ctor_set_tag(x_89, 1); + x_89 = x_80; } -lean_ctor_set(x_89, 0, x_20); -lean_ctor_set(x_89, 1, x_87); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_79); return x_89; } +else +{ +lean_object* x_90; +lean_dec(x_76); +lean_dec(x_75); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_80)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_80; +} +lean_ctor_set(x_90, 0, x_78); +lean_ctor_set(x_90, 1, x_79); +return x_90; +} +} +else +{ +lean_object* x_91; +lean_dec(x_76); +lean_dec(x_75); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_80)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_80; +} +lean_ctor_set(x_91, 0, x_78); +lean_ctor_set(x_91, 1, x_79); +return x_91; +} +} +else +{ +lean_object* x_92; +lean_dec(x_76); +lean_dec(x_75); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_80)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_80; +} +lean_ctor_set(x_92, 0, x_78); +lean_ctor_set(x_92, 1, x_79); +return x_92; +} +} +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +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_93 = lean_ctor_get(x_73, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_94 = x_73; +} else { + lean_dec_ref(x_73); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; + lean_ctor_set_tag(x_95, 1); +} +lean_ctor_set(x_95, 0, x_20); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} } } else @@ -41077,196 +41634,6 @@ return x_18; } else { -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_18, 0); -x_91 = lean_ctor_get(x_18, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_18); -x_92 = l_Lean_Exception_isRuntime(x_90); -if (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; 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_93 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_13, x_5, x_6, x_7, x_8, x_91); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -lean_dec(x_93); -x_95 = lean_st_ref_take(x_6, x_94); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -x_99 = lean_ctor_get(x_96, 2); -lean_inc(x_99); -x_100 = lean_ctor_get(x_96, 3); -lean_inc(x_100); -x_101 = lean_ctor_get(x_96, 4); -lean_inc(x_101); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - lean_ctor_release(x_96, 2); - lean_ctor_release(x_96, 3); - lean_ctor_release(x_96, 4); - x_102 = x_96; -} else { - lean_dec_ref(x_96); - x_102 = lean_box(0); -} -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(0, 5, 0); -} else { - x_103 = x_102; -} -lean_ctor_set(x_103, 0, x_17); -lean_ctor_set(x_103, 1, x_98); -lean_ctor_set(x_103, 2, x_99); -lean_ctor_set(x_103, 3, x_100); -lean_ctor_set(x_103, 4, x_101); -x_104 = lean_st_ref_set(x_6, x_103, x_97); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_ctor_get(x_90, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_90, 1); -lean_inc(x_107); -lean_dec(x_90); -x_108 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_105); -if (lean_obj_tag(x_108) == 0) -{ -lean_dec(x_107); -lean_dec(x_106); -lean_dec(x_4); -lean_dec(x_3); -return x_108; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; -} else { - lean_dec_ref(x_108); - x_111 = lean_box(0); -} -x_112 = l_Lean_Exception_isRuntime(x_109); -if (x_112 == 0) -{ -if (lean_obj_tag(x_109) == 0) -{ -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; -x_113 = lean_ctor_get(x_109, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_109, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_115 = x_109; -} else { - lean_dec_ref(x_109); - x_115 = lean_box(0); -} -x_116 = lean_apply_2(x_3, x_106, x_113); -x_117 = lean_apply_2(x_4, x_107, x_114); -if (lean_is_scalar(x_115)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { - x_118 = x_115; -} -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -if (lean_is_scalar(x_111)) { - x_119 = lean_alloc_ctor(1, 2, 0); -} else { - x_119 = x_111; -} -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_110); -return x_119; -} -else -{ -lean_object* x_120; -lean_dec(x_107); -lean_dec(x_106); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_111)) { - x_120 = lean_alloc_ctor(1, 2, 0); -} else { - x_120 = x_111; -} -lean_ctor_set(x_120, 0, x_109); -lean_ctor_set(x_120, 1, x_110); -return x_120; -} -} -else -{ -lean_object* x_121; -lean_dec(x_107); -lean_dec(x_106); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_111)) { - x_121 = lean_alloc_ctor(1, 2, 0); -} else { - x_121 = x_111; -} -lean_ctor_set(x_121, 0, x_109); -lean_ctor_set(x_121, 1, x_110); -return x_121; -} -} -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -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_122 = lean_ctor_get(x_104, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_123 = x_104; -} else { - lean_dec_ref(x_104); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; - lean_ctor_set_tag(x_124, 1); -} -lean_ctor_set(x_124, 0, x_90); -lean_ctor_set(x_124, 1, x_122); -return x_124; -} -} -else -{ -lean_object* x_125; lean_dec(x_17); lean_dec(x_13); lean_dec(x_8); @@ -41276,10 +41643,257 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_90); -lean_ctor_set(x_125, 1, x_91); -return x_125; +return x_18; +} +} +else +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_18, 0); +x_97 = lean_ctor_get(x_18, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_18); +x_98 = l_Lean_Exception_isInterrupt(x_96); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_96); +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_100 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_13, x_5, x_6, x_7, x_8, x_97); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_st_ref_take(x_6, x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +x_106 = lean_ctor_get(x_103, 2); +lean_inc(x_106); +x_107 = lean_ctor_get(x_103, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_103, 4); +lean_inc(x_108); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + lean_ctor_release(x_103, 2); + lean_ctor_release(x_103, 3); + lean_ctor_release(x_103, 4); + x_109 = x_103; +} else { + lean_dec_ref(x_103); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(0, 5, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_17); +lean_ctor_set(x_110, 1, x_105); +lean_ctor_set(x_110, 2, x_106); +lean_ctor_set(x_110, 3, x_107); +lean_ctor_set(x_110, 4, x_108); +x_111 = lean_st_ref_set(x_6, x_110, x_104); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = lean_ctor_get(x_96, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_96, 1); +lean_inc(x_114); +lean_dec(x_96); +x_115 = lean_apply_5(x_2, x_5, x_6, x_7, x_8, x_112); +if (lean_obj_tag(x_115) == 0) +{ +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_4); +lean_dec(x_3); +return x_115; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; +} else { + lean_dec_ref(x_115); + x_118 = lean_box(0); +} +x_119 = l_Lean_Exception_isInterrupt(x_116); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = l_Lean_Exception_isRuntime(x_116); +if (x_120 == 0) +{ +if (lean_obj_tag(x_116) == 0) +{ +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; +x_121 = lean_ctor_get(x_116, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_116, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_123 = x_116; +} else { + lean_dec_ref(x_116); + x_123 = lean_box(0); +} +x_124 = lean_apply_2(x_3, x_113, x_121); +x_125 = lean_apply_2(x_4, x_114, x_122); +if (lean_is_scalar(x_123)) { + x_126 = lean_alloc_ctor(0, 2, 0); +} else { + x_126 = x_123; +} +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +if (lean_is_scalar(x_118)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_118; +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_117); +return x_127; +} +else +{ +lean_object* x_128; +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_118)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_118; +} +lean_ctor_set(x_128, 0, x_116); +lean_ctor_set(x_128, 1, x_117); +return x_128; +} +} +else +{ +lean_object* x_129; +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_118)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_118; +} +lean_ctor_set(x_129, 0, x_116); +lean_ctor_set(x_129, 1, x_117); +return x_129; +} +} +else +{ +lean_object* x_130; +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_118)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_118; +} +lean_ctor_set(x_130, 0, x_116); +lean_ctor_set(x_130, 1, x_117); +return x_130; +} +} +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +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_131 = lean_ctor_get(x_111, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_132 = x_111; +} else { + lean_dec_ref(x_111); + x_132 = lean_box(0); +} +if (lean_is_scalar(x_132)) { + x_133 = lean_alloc_ctor(1, 2, 0); +} else { + x_133 = x_132; + lean_ctor_set_tag(x_133, 1); +} +lean_ctor_set(x_133, 0, x_96); +lean_ctor_set(x_133, 1, x_131); +return x_133; +} +} +else +{ +lean_object* x_134; +lean_dec(x_17); +lean_dec(x_13); +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_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_96); +lean_ctor_set(x_134, 1, x_97); +return x_134; +} +} +else +{ +lean_object* x_135; +lean_dec(x_17); +lean_dec(x_13); +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_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_96); +lean_ctor_set(x_135, 1, x_97); +return x_135; } } } @@ -41344,340 +41958,215 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 0); x_22 = lean_ctor_get(x_19, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -lean_free_object(x_19); -x_24 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_14, x_6, x_7, x_8, x_9, x_22); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_ref_take(x_7, x_25); -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_is_exclusive(x_27); -if (x_29 == 0) +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -lean_ctor_set(x_27, 0, x_18); -x_31 = lean_st_ref_set(x_7, x_27, x_28); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_free_object(x_19); +x_25 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_14, x_6, x_7, x_8, x_9, x_22); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_st_ref_take(x_7, x_26); +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_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +lean_ctor_set(x_28, 0, x_18); +x_32 = lean_st_ref_set(x_7, x_28, x_29); if (lean_obj_tag(x_21) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_ctor_get(x_21, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_21, 1); +lean_dec(x_32); +x_34 = lean_ctor_get(x_21, 0); lean_inc(x_34); +x_35 = lean_ctor_get(x_21, 1); +lean_inc(x_35); lean_dec(x_21); -x_35 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_32); -if (lean_obj_tag(x_35) == 0) +x_36 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_33); +if (lean_obj_tag(x_36) == 0) { +lean_dec(x_35); lean_dec(x_34); -lean_dec(x_33); lean_dec(x_4); lean_dec(x_3); -return x_35; +return x_36; } else { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_35, 0); -x_38 = l_Lean_Exception_isRuntime(x_37); -if (x_38 == 0) -{ -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_39; -x_39 = !lean_is_exclusive(x_37); +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_36, 0); +x_39 = l_Lean_Exception_isInterrupt(x_38); if (x_39 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_37, 0); -x_41 = lean_ctor_get(x_37, 1); -x_42 = lean_apply_2(x_3, x_33, x_40); -x_43 = lean_apply_2(x_4, x_34, x_41); -lean_ctor_set(x_37, 1, x_43); -lean_ctor_set(x_37, 0, x_42); -return x_35; +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_38); +if (x_40 == 0) +{ +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_38); +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_38, 0); +x_43 = lean_ctor_get(x_38, 1); +x_44 = lean_apply_2(x_3, x_34, x_42); +x_45 = lean_apply_2(x_4, x_35, x_43); +lean_ctor_set(x_38, 1, x_45); +lean_ctor_set(x_38, 0, x_44); +return x_36; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_37, 0); -x_45 = lean_ctor_get(x_37, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_37); -x_46 = lean_apply_2(x_3, x_33, x_44); -x_47 = lean_apply_2(x_4, x_34, x_45); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set(x_35, 0, x_48); -return x_35; +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_38, 0); +x_47 = lean_ctor_get(x_38, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_38); +x_48 = lean_apply_2(x_3, x_34, x_46); +x_49 = lean_apply_2(x_4, x_35, x_47); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_36, 0, x_50); +return x_36; } } else { -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_4); -lean_dec(x_3); -return x_35; -} -} -else -{ -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_4); -lean_dec(x_3); -return x_35; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_35, 0); -x_50 = lean_ctor_get(x_35, 1); -lean_inc(x_50); -lean_inc(x_49); lean_dec(x_35); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); +return x_36; +} +} +else { -if (lean_obj_tag(x_49) == 0) +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); +return x_36; +} +} +else { -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); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); +return x_36; +} +} +else +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_36, 0); +x_52 = lean_ctor_get(x_36, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_49, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_54 = x_49; +lean_inc(x_51); +lean_dec(x_36); +x_53 = l_Lean_Exception_isInterrupt(x_51); +if (x_53 == 0) +{ +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_51); +if (x_54 == 0) +{ +if (lean_obj_tag(x_51) == 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; lean_object* x_61; +x_55 = lean_ctor_get(x_51, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_51, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_57 = x_51; } else { - lean_dec_ref(x_49); - x_54 = lean_box(0); + lean_dec_ref(x_51); + x_57 = lean_box(0); } -x_55 = lean_apply_2(x_3, x_33, x_52); -x_56 = lean_apply_2(x_4, x_34, x_53); -if (lean_is_scalar(x_54)) { - x_57 = lean_alloc_ctor(0, 2, 0); +x_58 = lean_apply_2(x_3, x_34, x_55); +x_59 = lean_apply_2(x_4, x_35, x_56); +if (lean_is_scalar(x_57)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_54; + x_60 = x_57; } -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_50); -return x_58; +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_52); +return x_61; } else { -lean_object* x_59; -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_4); -lean_dec(x_3); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_49); -lean_ctor_set(x_59, 1, x_50); -return x_59; -} -} -else -{ -lean_object* x_60; -lean_dec(x_34); -lean_dec(x_33); -lean_dec(x_4); -lean_dec(x_3); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_50); -return x_60; -} -} -} -} -else -{ -uint8_t x_61; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_61 = !lean_is_exclusive(x_31); -if (x_61 == 0) -{ lean_object* x_62; -x_62 = lean_ctor_get(x_31, 0); -lean_dec(x_62); -lean_ctor_set_tag(x_31, 1); -lean_ctor_set(x_31, 0, x_21); -return x_31; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_51); +lean_ctor_set(x_62, 1, x_52); +return x_62; +} } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_31, 1); -lean_inc(x_63); -lean_dec(x_31); +lean_object* x_63; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_51); +lean_ctor_set(x_63, 1, x_52); +return x_63; +} +} +else +{ +lean_object* x_64; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_3); x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_21); -lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 0, x_51); +lean_ctor_set(x_64, 1, x_52); return x_64; } } } -else -{ -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_65 = lean_ctor_get(x_27, 1); -x_66 = lean_ctor_get(x_27, 2); -x_67 = lean_ctor_get(x_27, 3); -x_68 = lean_ctor_get(x_27, 4); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_27); -x_69 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_69, 0, x_18); -lean_ctor_set(x_69, 1, x_65); -lean_ctor_set(x_69, 2, x_66); -lean_ctor_set(x_69, 3, x_67); -lean_ctor_set(x_69, 4, x_68); -x_70 = lean_st_ref_set(x_7, x_69, x_28); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = lean_ctor_get(x_21, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_21, 1); -lean_inc(x_73); -lean_dec(x_21); -x_74 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_71); -if (lean_obj_tag(x_74) == 0) -{ -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_4); -lean_dec(x_3); -return x_74; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -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 = l_Lean_Exception_isRuntime(x_75); -if (x_78 == 0) -{ -if (lean_obj_tag(x_75) == 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; lean_object* x_85; -x_79 = lean_ctor_get(x_75, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_75, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_81 = x_75; -} else { - lean_dec_ref(x_75); - x_81 = lean_box(0); -} -x_82 = lean_apply_2(x_3, x_72, x_79); -x_83 = lean_apply_2(x_4, x_73, x_80); -if (lean_is_scalar(x_81)) { - x_84 = lean_alloc_ctor(0, 2, 0); -} else { - x_84 = x_81; -} -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -if (lean_is_scalar(x_77)) { - x_85 = lean_alloc_ctor(1, 2, 0); -} else { - x_85 = x_77; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_76); -return x_85; -} -else -{ -lean_object* x_86; -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_77)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_77; -} -lean_ctor_set(x_86, 0, x_75); -lean_ctor_set(x_86, 1, x_76); -return x_86; -} -} -else -{ -lean_object* x_87; -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_77)) { - x_87 = lean_alloc_ctor(1, 2, 0); -} else { - x_87 = x_77; -} -lean_ctor_set(x_87, 0, x_75); -lean_ctor_set(x_87, 1, x_76); -return x_87; -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; +uint8_t x_65; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -41686,26 +42175,206 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_88 = lean_ctor_get(x_70, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_89 = x_70; -} else { - lean_dec_ref(x_70); - x_89 = lean_box(0); +x_65 = !lean_is_exclusive(x_32); +if (x_65 == 0) +{ +lean_object* x_66; +x_66 = lean_ctor_get(x_32, 0); +lean_dec(x_66); +lean_ctor_set_tag(x_32, 1); +lean_ctor_set(x_32, 0, x_21); +return x_32; } -if (lean_is_scalar(x_89)) { +else +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_32, 1); +lean_inc(x_67); +lean_dec(x_32); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_21); +lean_ctor_set(x_68, 1, x_67); +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; +x_69 = lean_ctor_get(x_28, 1); +x_70 = lean_ctor_get(x_28, 2); +x_71 = lean_ctor_get(x_28, 3); +x_72 = lean_ctor_get(x_28, 4); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_28); +x_73 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_73, 0, x_18); +lean_ctor_set(x_73, 1, x_69); +lean_ctor_set(x_73, 2, x_70); +lean_ctor_set(x_73, 3, x_71); +lean_ctor_set(x_73, 4, x_72); +x_74 = lean_st_ref_set(x_7, x_73, x_29); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +x_76 = lean_ctor_get(x_21, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_21, 1); +lean_inc(x_77); +lean_dec(x_21); +x_78 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_75); +if (lean_obj_tag(x_78) == 0) +{ +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_4); +lean_dec(x_3); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = l_Lean_Exception_isInterrupt(x_79); +if (x_82 == 0) +{ +uint8_t x_83; +x_83 = l_Lean_Exception_isRuntime(x_79); +if (x_83 == 0) +{ +if (lean_obj_tag(x_79) == 0) +{ +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_84 = lean_ctor_get(x_79, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_79, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_86 = x_79; +} else { + lean_dec_ref(x_79); + x_86 = lean_box(0); +} +x_87 = lean_apply_2(x_3, x_76, x_84); +x_88 = lean_apply_2(x_4, x_77, x_85); +if (lean_is_scalar(x_86)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_86; +} +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +if (lean_is_scalar(x_81)) { x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_90 = x_89; - lean_ctor_set_tag(x_90, 1); + x_90 = x_81; } -lean_ctor_set(x_90, 0, x_21); -lean_ctor_set(x_90, 1, x_88); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_80); return x_90; } +else +{ +lean_object* x_91; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_81)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_81; +} +lean_ctor_set(x_91, 0, x_79); +lean_ctor_set(x_91, 1, x_80); +return x_91; +} +} +else +{ +lean_object* x_92; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_81)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_81; +} +lean_ctor_set(x_92, 0, x_79); +lean_ctor_set(x_92, 1, x_80); +return x_92; +} +} +else +{ +lean_object* x_93; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_81)) { + x_93 = lean_alloc_ctor(1, 2, 0); +} else { + x_93 = x_81; +} +lean_ctor_set(x_93, 0, x_79); +lean_ctor_set(x_93, 1, x_80); +return x_93; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_94 = lean_ctor_get(x_74, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_95 = x_74; +} else { + lean_dec_ref(x_74); + 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_tag(x_96, 1); +} +lean_ctor_set(x_96, 0, x_21); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} } } else @@ -41725,197 +42394,6 @@ return x_19; } else { -lean_object* x_91; lean_object* x_92; uint8_t x_93; -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 = l_Lean_Exception_isRuntime(x_91); -if (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; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_94 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_14, x_6, x_7, x_8, x_9, x_92); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = lean_st_ref_take(x_7, x_95); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_97, 2); -lean_inc(x_100); -x_101 = lean_ctor_get(x_97, 3); -lean_inc(x_101); -x_102 = lean_ctor_get(x_97, 4); -lean_inc(x_102); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - lean_ctor_release(x_97, 2); - lean_ctor_release(x_97, 3); - lean_ctor_release(x_97, 4); - x_103 = x_97; -} else { - lean_dec_ref(x_97); - x_103 = lean_box(0); -} -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 5, 0); -} else { - x_104 = x_103; -} -lean_ctor_set(x_104, 0, x_18); -lean_ctor_set(x_104, 1, x_99); -lean_ctor_set(x_104, 2, x_100); -lean_ctor_set(x_104, 3, x_101); -lean_ctor_set(x_104, 4, x_102); -x_105 = lean_st_ref_set(x_7, x_104, x_98); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); -x_107 = lean_ctor_get(x_91, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_91, 1); -lean_inc(x_108); -lean_dec(x_91); -x_109 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_106); -if (lean_obj_tag(x_109) == 0) -{ -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_4); -lean_dec(x_3); -return x_109; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_112 = x_109; -} else { - lean_dec_ref(x_109); - x_112 = lean_box(0); -} -x_113 = l_Lean_Exception_isRuntime(x_110); -if (x_113 == 0) -{ -if (lean_obj_tag(x_110) == 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; lean_object* x_120; -x_114 = lean_ctor_get(x_110, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_110, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_116 = x_110; -} else { - lean_dec_ref(x_110); - x_116 = lean_box(0); -} -x_117 = lean_apply_2(x_3, x_107, x_114); -x_118 = lean_apply_2(x_4, x_108, x_115); -if (lean_is_scalar(x_116)) { - x_119 = lean_alloc_ctor(0, 2, 0); -} else { - x_119 = x_116; -} -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -if (lean_is_scalar(x_112)) { - x_120 = lean_alloc_ctor(1, 2, 0); -} else { - x_120 = x_112; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_111); -return x_120; -} -else -{ -lean_object* x_121; -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_112)) { - x_121 = lean_alloc_ctor(1, 2, 0); -} else { - x_121 = x_112; -} -lean_ctor_set(x_121, 0, x_110); -lean_ctor_set(x_121, 1, x_111); -return x_121; -} -} -else -{ -lean_object* x_122; -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_4); -lean_dec(x_3); -if (lean_is_scalar(x_112)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_112; -} -lean_ctor_set(x_122, 0, x_110); -lean_ctor_set(x_122, 1, x_111); -return x_122; -} -} -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_123 = lean_ctor_get(x_105, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_124 = x_105; -} else { - lean_dec_ref(x_105); - x_124 = lean_box(0); -} -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(1, 2, 0); -} else { - x_125 = x_124; - lean_ctor_set_tag(x_125, 1); -} -lean_ctor_set(x_125, 0, x_91); -lean_ctor_set(x_125, 1, x_123); -return x_125; -} -} -else -{ -lean_object* x_126; lean_dec(x_18); lean_dec(x_14); lean_dec(x_9); @@ -41926,10 +42404,260 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_91); -lean_ctor_set(x_126, 1, x_92); -return x_126; +return x_19; +} +} +else +{ +lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_97 = lean_ctor_get(x_19, 0); +x_98 = lean_ctor_get(x_19, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_19); +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (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; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_101 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_14, x_6, x_7, x_8, x_9, x_98); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = lean_st_ref_take(x_7, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +x_107 = lean_ctor_get(x_104, 2); +lean_inc(x_107); +x_108 = lean_ctor_get(x_104, 3); +lean_inc(x_108); +x_109 = lean_ctor_get(x_104, 4); +lean_inc(x_109); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + lean_ctor_release(x_104, 2); + lean_ctor_release(x_104, 3); + lean_ctor_release(x_104, 4); + x_110 = x_104; +} else { + lean_dec_ref(x_104); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(0, 5, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_18); +lean_ctor_set(x_111, 1, x_106); +lean_ctor_set(x_111, 2, x_107); +lean_ctor_set(x_111, 3, x_108); +lean_ctor_set(x_111, 4, x_109); +x_112 = lean_st_ref_set(x_7, x_111, x_105); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +lean_dec(x_112); +x_114 = lean_ctor_get(x_97, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_97, 1); +lean_inc(x_115); +lean_dec(x_97); +x_116 = lean_apply_7(x_5, lean_box(0), x_2, x_6, x_7, x_8, x_9, x_113); +if (lean_obj_tag(x_116) == 0) +{ +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_4); +lean_dec(x_3); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; +} else { + lean_dec_ref(x_116); + x_119 = lean_box(0); +} +x_120 = l_Lean_Exception_isInterrupt(x_117); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = l_Lean_Exception_isRuntime(x_117); +if (x_121 == 0) +{ +if (lean_obj_tag(x_117) == 0) +{ +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; +x_122 = lean_ctor_get(x_117, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_117, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_124 = x_117; +} else { + lean_dec_ref(x_117); + x_124 = lean_box(0); +} +x_125 = lean_apply_2(x_3, x_114, x_122); +x_126 = lean_apply_2(x_4, x_115, x_123); +if (lean_is_scalar(x_124)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_124; +} +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +if (lean_is_scalar(x_119)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_119; +} +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_118); +return x_128; +} +else +{ +lean_object* x_129; +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_119)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_119; +} +lean_ctor_set(x_129, 0, x_117); +lean_ctor_set(x_129, 1, x_118); +return x_129; +} +} +else +{ +lean_object* x_130; +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_119)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_119; +} +lean_ctor_set(x_130, 0, x_117); +lean_ctor_set(x_130, 1, x_118); +return x_130; +} +} +else +{ +lean_object* x_131; +lean_dec(x_115); +lean_dec(x_114); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_119)) { + x_131 = lean_alloc_ctor(1, 2, 0); +} else { + x_131 = x_119; +} +lean_ctor_set(x_131, 0, x_117); +lean_ctor_set(x_131, 1, x_118); +return x_131; +} +} +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_132 = lean_ctor_get(x_112, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_133 = x_112; +} else { + lean_dec_ref(x_112); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; + lean_ctor_set_tag(x_134, 1); +} +lean_ctor_set(x_134, 0, x_97); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +else +{ +lean_object* x_135; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_97); +lean_ctor_set(x_135, 1, x_98); +return x_135; +} +} +else +{ +lean_object* x_136; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_97); +lean_ctor_set(x_136, 1, x_98); +return x_136; } } } @@ -41984,34 +42712,38 @@ if (x_9 == 0) { lean_object* x_10; uint8_t x_11; x_10 = lean_ctor_get(x_8, 0); -x_11 = l_Lean_Exception_isRuntime(x_10); +x_11 = l_Lean_Exception_isInterrupt(x_10); if (x_11 == 0) { +uint8_t x_12; +x_12 = l_Lean_Exception_isRuntime(x_10); +if (x_12 == 0) +{ if (lean_obj_tag(x_10) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 1); -x_14 = lean_apply_1(x_2, x_13); -lean_ctor_set(x_10, 1, x_14); +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 1); +x_15 = lean_apply_1(x_2, x_14); +lean_ctor_set(x_10, 1, x_15); return x_8; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); +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_inc(x_15); lean_dec(x_10); -x_17 = lean_apply_1(x_2, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set(x_8, 0, x_18); +x_18 = lean_apply_1(x_2, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_8, 0, x_19); return x_8; } } @@ -42029,62 +42761,82 @@ return x_8; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_8, 0); -x_20 = lean_ctor_get(x_8, 1); +lean_dec(x_2); +return x_8; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); lean_dec(x_8); -x_21 = l_Lean_Exception_isRuntime(x_19); -if (x_21 == 0) +x_22 = l_Lean_Exception_isInterrupt(x_20); +if (x_22 == 0) { -if (lean_obj_tag(x_19) == 0) +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) { -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_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_24 = x_19; +if (lean_obj_tag(x_20) == 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; +x_24 = lean_ctor_get(x_20, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_26 = x_20; } else { - lean_dec_ref(x_19); - x_24 = lean_box(0); + lean_dec_ref(x_20); + x_26 = lean_box(0); } -x_25 = lean_apply_1(x_2, x_23); -if (lean_is_scalar(x_24)) { - x_26 = lean_alloc_ctor(0, 2, 0); +x_27 = lean_apply_1(x_2, x_25); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); } else { - x_26 = x_24; + x_28 = x_26; } -lean_ctor_set(x_26, 0, x_22); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_20); -return x_27; -} -else -{ -lean_object* x_28; -lean_dec(x_2); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_19); -lean_ctor_set(x_28, 1, x_20); -return x_28; -} -} -else -{ -lean_object* x_29; -lean_dec(x_2); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_19); -lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_21); return x_29; } +else +{ +lean_object* x_30; +lean_dec(x_2); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_20); +lean_ctor_set(x_30, 1, x_21); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_2); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_21); +return x_31; +} +} +else +{ +lean_object* x_32; +lean_dec(x_2); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_20); +lean_ctor_set(x_32, 1, x_21); +return x_32; +} } } } @@ -43998,7 +44750,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___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; 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_53; +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_55; x_12 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_1, x_7, x_8, x_9, x_10, x_11); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -44036,438 +44788,442 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_16); -x_53 = lean_infer_type(x_16, x_7, x_8, x_9, x_10, x_20); -if (lean_obj_tag(x_53) == 0) +x_55 = lean_infer_type(x_16, x_7, x_8, x_9, x_10, x_20); +if (lean_obj_tag(x_55) == 0) { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) +uint8_t x_56; +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_ctor_get(x_53, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_55, 1); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_22); -x_57 = lean_infer_type(x_22, x_7, x_8, x_9, x_10, x_56); -if (lean_obj_tag(x_57) == 0) +x_59 = lean_infer_type(x_22, x_7, x_8, x_9, x_10, x_58); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_58; +uint8_t x_60; lean_dec(x_21); lean_dec(x_15); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); -x_61 = l_Lean_stringToMessageData(x_4); -x_62 = l_Lean_Meta_recordSynthPendingFailure___closed__1; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_61); -lean_ctor_set(x_57, 0, x_62); -lean_ctor_set_tag(x_53, 6); -lean_ctor_set(x_53, 1, x_62); -lean_ctor_set(x_53, 0, x_57); -x_63 = l_Lean_MessageData_ofLevel(x_5); -x_64 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +x_63 = l_Lean_stringToMessageData(x_4); +x_64 = l_Lean_Meta_recordSynthPendingFailure___closed__1; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_63); +lean_ctor_set(x_59, 0, x_64); +lean_ctor_set_tag(x_55, 6); +lean_ctor_set(x_55, 1, x_64); +lean_ctor_set(x_55, 0, x_59); +x_65 = l_Lean_MessageData_ofLevel(x_5); x_66 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); -x_67 = l_Lean_MessageData_ofLevel(x_6); +x_67 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; x_68 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); -x_69 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_62); -x_70 = l_Lean_indentD(x_69); +x_69 = l_Lean_MessageData_ofLevel(x_6); +x_70 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); x_71 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_71, 0, x_53); -lean_ctor_set(x_71, 1, x_70); -x_72 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_64); +x_72 = l_Lean_indentD(x_71); x_73 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 0, x_55); lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_MessageData_ofExpr(x_16); +x_74 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; x_75 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_75, 0, x_62); +lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); -x_76 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; +x_76 = l_Lean_MessageData_ofExpr(x_16); x_77 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 0, x_64); lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_MessageData_ofExpr(x_55); +x_78 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; x_79 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_79, 0, x_77); lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_62); -x_81 = l_Lean_indentD(x_80); +x_80 = l_Lean_MessageData_ofExpr(x_57); +x_81 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); x_82 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_82, 0, x_73); -lean_ctor_set(x_82, 1, x_81); -x_83 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_64); +x_83 = l_Lean_indentD(x_82); x_84 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 0, x_75); lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_MessageData_ofExpr(x_22); +x_85 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; x_86 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_86, 0, x_62); +lean_ctor_set(x_86, 0, x_84); lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_76); -x_88 = l_Lean_MessageData_ofExpr(x_59); +x_87 = l_Lean_MessageData_ofExpr(x_22); +x_88 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_88, 0, x_64); +lean_ctor_set(x_88, 1, x_87); x_89 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_62); -x_91 = l_Lean_indentD(x_90); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +x_90 = l_Lean_MessageData_ofExpr(x_61); +x_91 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); x_92 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_92, 0, x_84); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_62); -x_94 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_93, x_7, x_8, x_9, x_10, x_60); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_64); +x_93 = l_Lean_indentD(x_92); +x_94 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_94, 0, x_86); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_64); +x_96 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_95, x_7, x_8, x_9, x_10, x_62); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_94; +return x_96; } 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; 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; 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_95 = lean_ctor_get(x_57, 0); -x_96 = lean_ctor_get(x_57, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_57); -x_97 = l_Lean_stringToMessageData(x_4); -x_98 = l_Lean_Meta_recordSynthPendingFailure___closed__1; -x_99 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -lean_ctor_set_tag(x_53, 6); -lean_ctor_set(x_53, 1, x_98); -lean_ctor_set(x_53, 0, x_99); -x_100 = l_Lean_MessageData_ofLevel(x_5); +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; 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; 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; +x_97 = lean_ctor_get(x_59, 0); +x_98 = lean_ctor_get(x_59, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_59); +x_99 = l_Lean_stringToMessageData(x_4); +x_100 = l_Lean_Meta_recordSynthPendingFailure___closed__1; x_101 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_100); -x_102 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +lean_ctor_set_tag(x_55, 6); +lean_ctor_set(x_55, 1, x_100); +lean_ctor_set(x_55, 0, x_101); +x_102 = l_Lean_MessageData_ofLevel(x_5); x_103 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 0, x_100); lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_MessageData_ofLevel(x_6); +x_104 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; x_105 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); -x_106 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_98); -x_107 = l_Lean_indentD(x_106); +x_106 = l_Lean_MessageData_ofLevel(x_6); +x_107 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); x_108 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_108, 0, x_53); -lean_ctor_set(x_108, 1, x_107); -x_109 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_100); +x_109 = l_Lean_indentD(x_108); x_110 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 0, x_55); lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_MessageData_ofExpr(x_16); +x_111 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; x_112 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_112, 0, x_98); +lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_111); -x_113 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; +x_113 = l_Lean_MessageData_ofExpr(x_16); x_114 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 0, x_100); lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_MessageData_ofExpr(x_55); +x_115 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; x_116 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_116, 0, x_114); lean_ctor_set(x_116, 1, x_115); -x_117 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_98); -x_118 = l_Lean_indentD(x_117); +x_117 = l_Lean_MessageData_ofExpr(x_57); +x_118 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); x_119 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_119, 0, x_110); -lean_ctor_set(x_119, 1, x_118); -x_120 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_100); +x_120 = l_Lean_indentD(x_119); x_121 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 0, x_112); lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_MessageData_ofExpr(x_22); +x_122 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; x_123 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_123, 0, x_98); +lean_ctor_set(x_123, 0, x_121); lean_ctor_set(x_123, 1, x_122); -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_113); -x_125 = l_Lean_MessageData_ofExpr(x_95); +x_124 = l_Lean_MessageData_ofExpr(x_22); +x_125 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_125, 0, x_100); +lean_ctor_set(x_125, 1, x_124); x_126 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -x_127 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_98); -x_128 = l_Lean_indentD(x_127); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_115); +x_127 = l_Lean_MessageData_ofExpr(x_97); +x_128 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); x_129 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_129, 0, x_121); -lean_ctor_set(x_129, 1, x_128); -x_130 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_98); -x_131 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_130, x_7, x_8, x_9, x_10, x_96); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_100); +x_130 = l_Lean_indentD(x_129); +x_131 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_131, 0, x_123); +lean_ctor_set(x_131, 1, x_130); +x_132 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_100); +x_133 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_132, x_7, x_8, x_9, x_10, x_98); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_131; +return x_133; } } else { -lean_object* x_132; lean_object* x_133; -lean_free_object(x_53); -lean_dec(x_55); -x_132 = lean_ctor_get(x_57, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_57, 1); -lean_inc(x_133); +lean_object* x_134; lean_object* x_135; +lean_free_object(x_55); lean_dec(x_57); -x_23 = x_132; -x_24 = x_133; -goto block_52; +x_134 = lean_ctor_get(x_59, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_59, 1); +lean_inc(x_135); +lean_dec(x_59); +x_23 = x_134; +x_24 = x_135; +goto block_54; } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_53, 0); -x_135 = lean_ctor_get(x_53, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_53); +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_55, 0); +x_137 = lean_ctor_get(x_55, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_55); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_22); -x_136 = lean_infer_type(x_22, x_7, x_8, x_9, x_10, x_135); -if (lean_obj_tag(x_136) == 0) +x_138 = lean_infer_type(x_22, x_7, x_8, x_9, x_10, x_137); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_dec(x_21); lean_dec(x_15); -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_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_136); - x_139 = lean_box(0); + lean_dec_ref(x_138); + x_141 = lean_box(0); } -x_140 = l_Lean_stringToMessageData(x_4); -x_141 = l_Lean_Meta_recordSynthPendingFailure___closed__1; -if (lean_is_scalar(x_139)) { - x_142 = lean_alloc_ctor(6, 2, 0); +x_142 = l_Lean_stringToMessageData(x_4); +x_143 = l_Lean_Meta_recordSynthPendingFailure___closed__1; +if (lean_is_scalar(x_141)) { + x_144 = lean_alloc_ctor(6, 2, 0); } else { - x_142 = x_139; - lean_ctor_set_tag(x_142, 6); + x_144 = x_141; + lean_ctor_set_tag(x_144, 6); } -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -x_143 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = l_Lean_MessageData_ofLevel(x_5); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); x_145 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_145, 0, x_141); -lean_ctor_set(x_145, 1, x_144); -x_146 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = l_Lean_MessageData_ofLevel(x_5); x_147 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 0, x_143); lean_ctor_set(x_147, 1, x_146); -x_148 = l_Lean_MessageData_ofLevel(x_6); +x_148 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; x_149 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_149, 0, x_147); lean_ctor_set(x_149, 1, x_148); -x_150 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_141); -x_151 = l_Lean_indentD(x_150); +x_150 = l_Lean_MessageData_ofLevel(x_6); +x_151 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); x_152 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_152, 0, x_143); -lean_ctor_set(x_152, 1, x_151); -x_153 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_143); +x_153 = l_Lean_indentD(x_152); x_154 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 0, x_145); lean_ctor_set(x_154, 1, x_153); -x_155 = l_Lean_MessageData_ofExpr(x_16); +x_155 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; x_156 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_156, 0, x_141); +lean_ctor_set(x_156, 0, x_154); lean_ctor_set(x_156, 1, x_155); -x_157 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; +x_157 = l_Lean_MessageData_ofExpr(x_16); x_158 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 0, x_143); lean_ctor_set(x_158, 1, x_157); -x_159 = l_Lean_MessageData_ofExpr(x_134); +x_159 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__8; x_160 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_160, 0, x_158); lean_ctor_set(x_160, 1, x_159); -x_161 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_141); -x_162 = l_Lean_indentD(x_161); +x_161 = l_Lean_MessageData_ofExpr(x_136); +x_162 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); x_163 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_163, 0, x_154); -lean_ctor_set(x_163, 1, x_162); -x_164 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_143); +x_164 = l_Lean_indentD(x_163); x_165 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 0, x_156); lean_ctor_set(x_165, 1, x_164); -x_166 = l_Lean_MessageData_ofExpr(x_22); +x_166 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; x_167 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_167, 0, x_141); +lean_ctor_set(x_167, 0, x_165); lean_ctor_set(x_167, 1, x_166); -x_168 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_157); -x_169 = l_Lean_MessageData_ofExpr(x_137); +x_168 = l_Lean_MessageData_ofExpr(x_22); +x_169 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_169, 0, x_143); +lean_ctor_set(x_169, 1, x_168); x_170 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -x_171 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_141); -x_172 = l_Lean_indentD(x_171); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_159); +x_171 = l_Lean_MessageData_ofExpr(x_139); +x_172 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); x_173 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_173, 0, x_165); -lean_ctor_set(x_173, 1, x_172); -x_174 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_141); -x_175 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_174, x_7, x_8, x_9, x_10, x_138); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_143); +x_174 = l_Lean_indentD(x_173); +x_175 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_175, 0, x_167); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_143); +x_177 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_176, x_7, x_8, x_9, x_10, x_140); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_175; -} -else -{ -lean_object* x_176; lean_object* x_177; -lean_dec(x_134); -x_176 = lean_ctor_get(x_136, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_136, 1); -lean_inc(x_177); -lean_dec(x_136); -x_23 = x_176; -x_24 = x_177; -goto block_52; -} -} +return x_177; } else { lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_53, 0); +lean_dec(x_136); +x_178 = lean_ctor_get(x_138, 0); lean_inc(x_178); -x_179 = lean_ctor_get(x_53, 1); +x_179 = lean_ctor_get(x_138, 1); lean_inc(x_179); -lean_dec(x_53); +lean_dec(x_138); x_23 = x_178; x_24 = x_179; -goto block_52; +goto block_54; } -block_52: +} +} +else +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_55, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_55, 1); +lean_inc(x_181); +lean_dec(x_55); +x_23 = x_180; +x_24 = x_181; +goto block_54; +} +block_54: { uint8_t x_25; -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); 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; 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; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 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; 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_dec(x_23); lean_dec(x_21); -x_26 = l_Lean_stringToMessageData(x_4); -x_27 = l_Lean_Meta_recordSynthPendingFailure___closed__1; +x_27 = l_Lean_stringToMessageData(x_4); +x_28 = l_Lean_Meta_recordSynthPendingFailure___closed__1; if (lean_is_scalar(x_15)) { - x_28 = lean_alloc_ctor(6, 2, 0); + x_29 = lean_alloc_ctor(6, 2, 0); } else { - x_28 = x_15; - lean_ctor_set_tag(x_28, 6); + x_29 = x_15; + lean_ctor_set_tag(x_29, 6); } -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_MessageData_ofLevel(x_5); -x_31 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_31, 0, x_27); -lean_ctor_set(x_31, 1, x_30); -x_32 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; -x_33 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_MessageData_ofLevel(x_6); -x_35 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); +x_30 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_MessageData_ofLevel(x_5); +x_32 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_31); +x_33 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__2; +x_34 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_MessageData_ofLevel(x_6); x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_27); -x_37 = l_Lean_indentD(x_36); -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_29); -lean_ctor_set(x_38, 1, x_37); -x_39 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_MessageData_ofExpr(x_16); -x_42 = l_Lean_indentD(x_41); -x_43 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_42); -x_44 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; -x_45 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_MessageData_ofExpr(x_22); -x_47 = l_Lean_indentD(x_46); -x_48 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_28); +x_38 = l_Lean_indentD(x_37); +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_38); +x_40 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__4; +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_MessageData_ofExpr(x_16); +x_43 = l_Lean_indentD(x_42); +x_44 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_43); +x_45 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; +x_46 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_MessageData_ofExpr(x_22); +x_48 = l_Lean_indentD(x_47); x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_27); -x_50 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_49, x_7, x_8, x_9, x_10, x_24); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_28); +x_51 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_50, x_7, x_8, x_9, x_10, x_24); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -return x_50; +return x_51; } else { -lean_object* x_51; +lean_object* x_52; lean_dec(x_22); lean_dec(x_16); lean_dec(x_15); @@ -44478,14 +45234,37 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); if (lean_is_scalar(x_21)) { - x_51 = lean_alloc_ctor(1, 2, 0); + x_52 = lean_alloc_ctor(1, 2, 0); } else { - x_51 = x_21; - lean_ctor_set_tag(x_51, 1); + x_52 = x_21; + lean_ctor_set_tag(x_52, 1); } -lean_ctor_set(x_51, 0, x_23); -lean_ctor_set(x_51, 1, x_24); -return x_51; +lean_ctor_set(x_52, 0, x_23); +lean_ctor_set(x_52, 1, x_24); +return x_52; +} +} +else +{ +lean_object* x_53; +lean_dec(x_22); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_21)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_21; + lean_ctor_set_tag(x_53, 1); +} +lean_ctor_set(x_53, 0, x_23); +lean_ctor_set(x_53, 1, x_24); +return x_53; } } } @@ -45142,7 +45921,7 @@ return x_62; } else { -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; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +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; uint8_t x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; x_63 = lean_ctor_get(x_10, 0); x_64 = lean_ctor_get(x_10, 1); x_65 = lean_ctor_get(x_10, 2); @@ -45154,7 +45933,10 @@ x_70 = lean_ctor_get(x_10, 7); x_71 = lean_ctor_get(x_10, 8); x_72 = lean_ctor_get(x_10, 9); x_73 = lean_ctor_get(x_10, 10); -x_74 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_74 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_75 = lean_ctor_get(x_10, 11); +x_76 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_75); lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); @@ -45167,112 +45949,114 @@ lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); lean_dec(x_10); -x_75 = l_Lean_replaceRef(x_29, x_68); +x_77 = l_Lean_replaceRef(x_29, x_68); lean_dec(x_68); lean_dec(x_29); -x_76 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_76, 0, x_63); -lean_ctor_set(x_76, 1, x_64); -lean_ctor_set(x_76, 2, x_65); -lean_ctor_set(x_76, 3, x_66); -lean_ctor_set(x_76, 4, x_67); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_69); -lean_ctor_set(x_76, 7, x_70); -lean_ctor_set(x_76, 8, x_71); -lean_ctor_set(x_76, 9, x_72); -lean_ctor_set(x_76, 10, x_73); -lean_ctor_set_uint8(x_76, sizeof(void*)*11, x_74); -x_77 = l_Lean_Meta_mkLevelErrorMessage___closed__1; +x_78 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_78, 0, x_63); +lean_ctor_set(x_78, 1, x_64); +lean_ctor_set(x_78, 2, x_65); +lean_ctor_set(x_78, 3, x_66); +lean_ctor_set(x_78, 4, x_67); +lean_ctor_set(x_78, 5, x_77); +lean_ctor_set(x_78, 6, x_69); +lean_ctor_set(x_78, 7, x_70); +lean_ctor_set(x_78, 8, x_71); +lean_ctor_set(x_78, 9, x_72); +lean_ctor_set(x_78, 10, x_73); +lean_ctor_set(x_78, 11, x_75); +lean_ctor_set_uint8(x_78, sizeof(void*)*12, x_74); +lean_ctor_set_uint8(x_78, sizeof(void*)*12 + 1, x_76); +x_79 = l_Lean_Meta_mkLevelErrorMessage___closed__1; lean_inc(x_11); -lean_inc(x_76); +lean_inc(x_78); lean_inc(x_9); lean_inc(x_8); -x_78 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore(x_77, x_15, x_8, x_9, x_76, x_11, x_46); -if (lean_obj_tag(x_78) == 0) +x_80 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore(x_79, x_15, x_8, x_9, x_78, x_11, x_46); +if (lean_obj_tag(x_80) == 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; lean_object* x_85; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_79, x_8, x_9, x_76, x_11, x_80); -lean_dec(x_11); -lean_dec(x_76); -lean_dec(x_9); -lean_dec(x_8); -x_82 = lean_ctor_get(x_81, 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; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); 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; +lean_dec(x_80); +x_83 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_81, x_8, x_9, x_78, x_11, x_82); +lean_dec(x_11); +lean_dec(x_78); +lean_dec(x_9); +lean_dec(x_8); +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_81); - x_84 = lean_box(0); + lean_dec_ref(x_83); + x_86 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; + x_87 = x_86; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); -return x_85; +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_76); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_78); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); -x_86 = lean_ctor_get(x_78, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_78, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_88 = x_78; +x_88 = lean_ctor_get(x_80, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_90 = x_80; } else { - lean_dec_ref(x_78); - x_88 = lean_box(0); + lean_dec_ref(x_80); + x_90 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_91 = x_90; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } } } else { -lean_object* x_90; lean_object* x_91; +lean_object* x_92; lean_object* x_93; lean_dec(x_29); lean_dec(x_15); -x_90 = lean_ctor_get(x_41, 1); -lean_inc(x_90); +x_92 = lean_ctor_get(x_41, 1); +lean_inc(x_92); lean_dec(x_41); lean_inc(x_2); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_2); -x_18 = x_91; -x_19 = x_90; +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_2); +x_18 = x_93; +x_19 = x_92; goto block_28; } } else { -uint8_t x_92; +uint8_t x_94; lean_dec(x_29); lean_dec(x_17); lean_dec(x_16); @@ -45283,23 +46067,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_92 = !lean_is_exclusive(x_41); -if (x_92 == 0) +x_94 = !lean_is_exclusive(x_41); +if (x_94 == 0) { return x_41; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_41, 0); -x_94 = lean_ctor_get(x_41, 1); -lean_inc(x_94); -lean_inc(x_93); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_41, 0); +x_96 = lean_ctor_get(x_41, 1); +lean_inc(x_96); +lean_inc(x_95); lean_dec(x_41); -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; +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; } } block_28: @@ -45759,7 +46543,7 @@ return x_66; } else { -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; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +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; uint8_t x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; x_67 = lean_ctor_get(x_10, 0); x_68 = lean_ctor_get(x_10, 1); x_69 = lean_ctor_get(x_10, 2); @@ -45771,7 +46555,10 @@ x_74 = lean_ctor_get(x_10, 7); x_75 = lean_ctor_get(x_10, 8); x_76 = lean_ctor_get(x_10, 9); x_77 = lean_ctor_get(x_10, 10); -x_78 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_78 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_79 = lean_ctor_get(x_10, 11); +x_80 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_79); lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); @@ -45784,112 +46571,114 @@ lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_dec(x_10); -x_79 = l_Lean_replaceRef(x_33, x_72); +x_81 = l_Lean_replaceRef(x_33, x_72); lean_dec(x_72); lean_dec(x_33); -x_80 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_80, 0, x_67); -lean_ctor_set(x_80, 1, x_68); -lean_ctor_set(x_80, 2, x_69); -lean_ctor_set(x_80, 3, x_70); -lean_ctor_set(x_80, 4, x_71); -lean_ctor_set(x_80, 5, x_79); -lean_ctor_set(x_80, 6, x_73); -lean_ctor_set(x_80, 7, x_74); -lean_ctor_set(x_80, 8, x_75); -lean_ctor_set(x_80, 9, x_76); -lean_ctor_set(x_80, 10, x_77); -lean_ctor_set_uint8(x_80, sizeof(void*)*11, x_78); -x_81 = l_Lean_Meta_mkLevelErrorMessage___closed__1; +x_82 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_82, 0, x_67); +lean_ctor_set(x_82, 1, x_68); +lean_ctor_set(x_82, 2, x_69); +lean_ctor_set(x_82, 3, x_70); +lean_ctor_set(x_82, 4, x_71); +lean_ctor_set(x_82, 5, x_81); +lean_ctor_set(x_82, 6, x_73); +lean_ctor_set(x_82, 7, x_74); +lean_ctor_set(x_82, 8, x_75); +lean_ctor_set(x_82, 9, x_76); +lean_ctor_set(x_82, 10, x_77); +lean_ctor_set(x_82, 11, x_79); +lean_ctor_set_uint8(x_82, sizeof(void*)*12, x_78); +lean_ctor_set_uint8(x_82, sizeof(void*)*12 + 1, x_80); +x_83 = l_Lean_Meta_mkLevelErrorMessage___closed__1; lean_inc(x_11); -lean_inc(x_80); +lean_inc(x_82); lean_inc(x_9); lean_inc(x_8); -x_82 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore(x_81, x_15, x_8, x_9, x_80, x_11, x_50); -if (lean_obj_tag(x_82) == 0) +x_84 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore(x_83, x_15, x_8, x_9, x_82, x_11, x_50); +if (lean_obj_tag(x_84) == 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); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_83, x_8, x_9, x_80, x_11, x_84); -lean_dec(x_11); -lean_dec(x_80); -lean_dec(x_9); -lean_dec(x_8); -x_86 = lean_ctor_get(x_85, 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; lean_object* x_91; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); -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; +lean_dec(x_84); +x_87 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_85, x_8, x_9, x_82, x_11, x_86); +lean_dec(x_11); +lean_dec(x_82); +lean_dec(x_9); +lean_dec(x_8); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; } else { - lean_dec_ref(x_85); - x_88 = lean_box(0); + lean_dec_ref(x_87); + x_90 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_91 = x_90; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_80); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_82); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); -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; +x_92 = lean_ctor_get(x_84, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_84, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_94 = x_84; } else { - lean_dec_ref(x_82); - x_92 = lean_box(0); + lean_dec_ref(x_84); + x_94 = lean_box(0); } -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_93 = x_92; + x_95 = x_94; } -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } } else { -lean_object* x_94; lean_object* x_95; +lean_object* x_96; lean_object* x_97; lean_dec(x_33); lean_dec(x_15); -x_94 = lean_ctor_get(x_45, 1); -lean_inc(x_94); +x_96 = lean_ctor_get(x_45, 1); +lean_inc(x_96); lean_dec(x_45); lean_inc(x_2); -x_95 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_95, 0, x_2); -x_18 = x_95; -x_19 = x_94; +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_2); +x_18 = x_97; +x_19 = x_96; goto block_32; } } else { -uint8_t x_96; +uint8_t x_98; lean_dec(x_33); lean_dec(x_17); lean_dec(x_16); @@ -45900,23 +46689,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_96 = !lean_is_exclusive(x_45); -if (x_96 == 0) +x_98 = !lean_is_exclusive(x_45); +if (x_98 == 0) { return x_45; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_45, 0); -x_98 = lean_ctor_get(x_45, 1); -lean_inc(x_98); -lean_inc(x_97); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_45, 0); +x_100 = lean_ctor_get(x_45, 1); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_45); -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; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } block_32: @@ -47972,7 +48761,7 @@ return x_70; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 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; lean_object* x_89; lean_object* x_90; size_t x_91; size_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; 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_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t 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; lean_object* x_91; lean_object* x_92; size_t x_93; size_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_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; x_71 = lean_ctor_get(x_7, 0); x_72 = lean_ctor_get(x_7, 1); x_73 = lean_ctor_get(x_7, 2); @@ -47984,7 +48773,10 @@ x_78 = lean_ctor_get(x_7, 7); x_79 = lean_ctor_get(x_7, 8); x_80 = lean_ctor_get(x_7, 9); x_81 = lean_ctor_get(x_7, 10); -x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_83 = lean_ctor_get(x_7, 11); +x_84 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_83); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); @@ -47997,125 +48789,127 @@ lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); lean_dec(x_7); -x_83 = l_Lean_replaceRef(x_3, x_76); +x_85 = l_Lean_replaceRef(x_3, x_76); lean_dec(x_76); -x_84 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_84, 0, x_71); -lean_ctor_set(x_84, 1, x_72); -lean_ctor_set(x_84, 2, x_73); -lean_ctor_set(x_84, 3, x_74); -lean_ctor_set(x_84, 4, x_75); -lean_ctor_set(x_84, 5, x_83); -lean_ctor_set(x_84, 6, x_77); -lean_ctor_set(x_84, 7, x_78); -lean_ctor_set(x_84, 8, x_79); -lean_ctor_set(x_84, 9, x_80); -lean_ctor_set(x_84, 10, x_81); -lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_82); -x_85 = lean_st_ref_get(x_8, x_9); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 3); +x_86 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_86, 0, x_71); +lean_ctor_set(x_86, 1, x_72); +lean_ctor_set(x_86, 2, x_73); +lean_ctor_set(x_86, 3, x_74); +lean_ctor_set(x_86, 4, x_75); +lean_ctor_set(x_86, 5, x_85); +lean_ctor_set(x_86, 6, x_77); +lean_ctor_set(x_86, 7, x_78); +lean_ctor_set(x_86, 8, x_79); +lean_ctor_set(x_86, 9, x_80); +lean_ctor_set(x_86, 10, x_81); +lean_ctor_set(x_86, 11, x_83); +lean_ctor_set_uint8(x_86, sizeof(void*)*12, x_82); +lean_ctor_set_uint8(x_86, sizeof(void*)*12 + 1, x_84); +x_87 = lean_st_ref_get(x_8, x_9); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = lean_ctor_get(x_88, 3); +lean_inc(x_90); +lean_dec(x_88); +x_91 = l_Lean_PersistentArray_toArray___rarg(x_90); +x_92 = lean_array_get_size(x_91); +x_93 = lean_usize_of_nat(x_92); +lean_dec(x_92); +x_94 = 0; +x_95 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_93, x_94, x_91); +x_96 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_96, 0, x_2); +lean_ctor_set(x_96, 1, x_4); +lean_ctor_set(x_96, 2, x_95); +x_97 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_96, x_5, x_6, x_86, x_8, x_89); lean_dec(x_86); -x_89 = l_Lean_PersistentArray_toArray___rarg(x_88); -x_90 = lean_array_get_size(x_89); -x_91 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_92 = 0; -x_93 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_91, x_92, x_89); -x_94 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_94, 0, x_2); -lean_ctor_set(x_94, 1, x_4); -lean_ctor_set(x_94, 2, x_93); -x_95 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_94, x_5, x_6, x_84, x_8, x_87); -lean_dec(x_84); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_st_ref_take(x_8, x_97); -x_99 = lean_ctor_get(x_98, 0); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_101 = x_98; -} else { - lean_dec_ref(x_98); - x_101 = lean_box(0); -} -x_102 = lean_ctor_get(x_99, 0); +lean_dec(x_97); +x_100 = lean_st_ref_take(x_8, x_99); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_103 = lean_ctor_get(x_99, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_99, 2); +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_100); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_101, 0); lean_inc(x_104); -x_105 = lean_ctor_get(x_99, 4); +x_105 = lean_ctor_get(x_101, 1); lean_inc(x_105); -x_106 = lean_ctor_get(x_99, 5); +x_106 = lean_ctor_get(x_101, 2); lean_inc(x_106); -x_107 = lean_ctor_get(x_99, 6); +x_107 = lean_ctor_get(x_101, 4); lean_inc(x_107); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - lean_ctor_release(x_99, 2); - lean_ctor_release(x_99, 3); - lean_ctor_release(x_99, 4); - lean_ctor_release(x_99, 5); - lean_ctor_release(x_99, 6); - x_108 = x_99; +x_108 = lean_ctor_get(x_101, 5); +lean_inc(x_108); +x_109 = lean_ctor_get(x_101, 6); +lean_inc(x_109); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + lean_ctor_release(x_101, 2); + lean_ctor_release(x_101, 3); + lean_ctor_release(x_101, 4); + lean_ctor_release(x_101, 5); + lean_ctor_release(x_101, 6); + x_110 = x_101; } else { - lean_dec_ref(x_99); - x_108 = lean_box(0); + lean_dec_ref(x_101); + x_110 = lean_box(0); } -if (lean_is_scalar(x_101)) { - x_109 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_103)) { + x_111 = lean_alloc_ctor(0, 2, 0); } else { - x_109 = x_101; + x_111 = x_103; } -lean_ctor_set(x_109, 0, x_3); -lean_ctor_set(x_109, 1, x_96); -x_110 = l_Lean_PersistentArray_push___rarg(x_1, x_109); -if (lean_is_scalar(x_108)) { - x_111 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_111, 0, x_3); +lean_ctor_set(x_111, 1, x_98); +x_112 = l_Lean_PersistentArray_push___rarg(x_1, x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 7, 0); } else { - x_111 = x_108; + x_113 = x_110; } -lean_ctor_set(x_111, 0, x_102); -lean_ctor_set(x_111, 1, x_103); -lean_ctor_set(x_111, 2, x_104); -lean_ctor_set(x_111, 3, x_110); -lean_ctor_set(x_111, 4, x_105); -lean_ctor_set(x_111, 5, x_106); -lean_ctor_set(x_111, 6, x_107); -x_112 = lean_st_ref_set(x_8, x_111, x_100); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_114 = x_112; -} else { - lean_dec_ref(x_112); - x_114 = lean_box(0); -} -x_115 = lean_box(0); -if (lean_is_scalar(x_114)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_113, 0, x_104); +lean_ctor_set(x_113, 1, x_105); +lean_ctor_set(x_113, 2, x_106); +lean_ctor_set(x_113, 3, x_112); +lean_ctor_set(x_113, 4, x_107); +lean_ctor_set(x_113, 5, x_108); +lean_ctor_set(x_113, 6, x_109); +x_114 = lean_st_ref_set(x_8, x_113, x_102); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); x_116 = x_114; +} else { + lean_dec_ref(x_114); + x_116 = lean_box(0); } -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_113); -return x_116; +x_117 = lean_box(0); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_116; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_115); +return x_118; } } } @@ -49705,7 +50499,7 @@ lean_dec(x_16); x_17 = !lean_is_exclusive(x_13); if (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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_36; +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_38; x_18 = lean_ctor_get(x_13, 5); lean_dec(x_18); x_19 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; @@ -49731,166 +50525,151 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_36 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_24); -if (lean_obj_tag(x_36) == 0) +x_38 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_24); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -lean_dec(x_37); -if (x_38 == 0) +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_unbox(x_39); +lean_dec(x_39); +if (x_40 == 0) { -lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_dec(x_25); lean_dec(x_23); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_39); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_42; uint8_t x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); +lean_object* x_44; uint8_t x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = 0; +x_46 = lean_box(x_45); +lean_ctor_set(x_42, 0, x_46); +return x_42; +} +else +{ +lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); lean_dec(x_42); -x_43 = 0; -x_44 = lean_box(x_43); -lean_ctor_set(x_40, 0, x_44); -return x_40; -} -else -{ -lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_40, 1); -lean_inc(x_45); -lean_dec(x_40); -x_46 = 0; -x_47 = lean_box(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_45); -return x_48; +x_48 = 0; +x_49 = lean_box(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_47); +return x_50; } } else { -lean_object* x_49; uint8_t x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_36, 1); -lean_inc(x_49); -lean_dec(x_36); -x_50 = 0; +lean_object* x_51; uint8_t x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_38, 1); +lean_inc(x_51); +lean_dec(x_38); +x_52 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_51 = l_Lean_Meta_processPostponed(x_2, x_50, x_3, x_4, x_5, x_6, x_49); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Meta_processPostponed(x_2, x_52, x_3, x_4, x_5, x_6, x_51); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_25); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_23); -x_54 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_54); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_9); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_box(x_50); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_box(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_59); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_9); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec(x_51); -x_63 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_append___rarg(x_23, x_64); -x_67 = l_Lean_Meta_setPostponed(x_66, x_3, x_4, x_5, x_6, x_65); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 1; -x_74 = lean_box(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_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_dec(x_23); -x_76 = lean_ctor_get(x_51, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_51, 1); -lean_inc(x_77); -lean_dec(x_51); -x_26 = x_76; -x_27 = x_77; -goto block_35; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_56); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_9); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(x_52); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +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; uint8_t x_70; +lean_dec(x_9); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_PersistentArray_append___rarg(x_23, x_66); +x_69 = l_Lean_Meta_setPostponed(x_68, x_3, x_4, x_5, x_6, x_67); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = lean_box(x_72); +lean_ctor_set(x_69, 0, x_73); +return x_69; +} +else +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = 1; +x_76 = lean_box(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); +return x_77; } } } @@ -49898,362 +50677,423 @@ else { lean_object* x_78; lean_object* x_79; lean_dec(x_23); -x_78 = lean_ctor_get(x_36, 0); +x_78 = lean_ctor_get(x_53, 0); lean_inc(x_78); -x_79 = lean_ctor_get(x_36, 1); +x_79 = lean_ctor_get(x_53, 1); lean_inc(x_79); -lean_dec(x_36); +lean_dec(x_53); x_26 = x_78; x_27 = x_79; -goto block_35; +goto block_37; } -block_35: +} +} +else +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_23); +x_80 = lean_ctor_get(x_38, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_38, 1); +lean_inc(x_81); +lean_dec(x_38); +x_26 = x_80; +x_27 = x_81; +goto block_37; +} +block_37: { uint8_t x_28; -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; uint8_t x_30; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; uint8_t x_31; lean_dec(x_25); -x_29 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_27); +x_30 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_27); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -lean_ctor_set_tag(x_29, 1); -lean_ctor_set(x_29, 0, x_26); -return x_29; +lean_object* x_32; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +lean_ctor_set_tag(x_30, 1); +lean_ctor_set(x_30, 0, x_26); +return x_30; } else { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_26); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } else { -lean_object* x_34; +lean_object* x_35; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); if (lean_is_scalar(x_25)) { - x_34 = lean_alloc_ctor(1, 2, 0); + x_35 = lean_alloc_ctor(1, 2, 0); } else { - x_34 = x_25; - lean_ctor_set_tag(x_34, 1); + x_35 = x_25; + lean_ctor_set_tag(x_35, 1); } -lean_ctor_set(x_34, 0, x_26); -lean_ctor_set(x_34, 1, x_27); -return x_34; +lean_ctor_set(x_35, 0, x_26); +lean_ctor_set(x_35, 1, x_27); +return x_35; +} +} +else +{ +lean_object* x_36; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_25)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_25; + lean_ctor_set_tag(x_36, 1); +} +lean_ctor_set(x_36, 0, x_26); +lean_ctor_set(x_36, 1, x_27); +return x_36; } } } 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; 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_103; -x_80 = lean_ctor_get(x_13, 0); -x_81 = lean_ctor_get(x_13, 1); -x_82 = lean_ctor_get(x_13, 2); -x_83 = lean_ctor_get(x_13, 3); -x_84 = lean_ctor_get(x_13, 4); -x_85 = lean_ctor_get(x_13, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_107; +x_82 = lean_ctor_get(x_13, 0); +x_83 = lean_ctor_get(x_13, 1); +x_84 = lean_ctor_get(x_13, 2); +x_85 = lean_ctor_get(x_13, 3); +x_86 = lean_ctor_get(x_13, 4); +x_87 = lean_ctor_get(x_13, 6); +lean_inc(x_87); +lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); lean_dec(x_13); -x_86 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -x_87 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_87, 0, x_80); -lean_ctor_set(x_87, 1, x_81); -lean_ctor_set(x_87, 2, x_82); -lean_ctor_set(x_87, 3, x_83); -lean_ctor_set(x_87, 4, x_84); -lean_ctor_set(x_87, 5, x_86); -lean_ctor_set(x_87, 6, x_85); -lean_ctor_set(x_12, 1, x_87); -x_88 = lean_st_ref_set(x_4, x_12, x_14); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec(x_88); -x_90 = l_Lean_Meta_getResetPostponed(x_3, x_4, x_5, x_6, x_89); -x_91 = lean_ctor_get(x_90, 0); +x_88 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +x_89 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_89, 0, x_82); +lean_ctor_set(x_89, 1, x_83); +lean_ctor_set(x_89, 2, x_84); +lean_ctor_set(x_89, 3, x_85); +lean_ctor_set(x_89, 4, x_86); +lean_ctor_set(x_89, 5, x_88); +lean_ctor_set(x_89, 6, x_87); +lean_ctor_set(x_12, 1, x_89); +x_90 = lean_st_ref_set(x_4, x_12, x_14); +x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_93 = x_90; +lean_dec(x_90); +x_92 = l_Lean_Meta_getResetPostponed(x_3, x_4, x_5, x_6, x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; } else { - lean_dec_ref(x_90); - x_93 = lean_box(0); + lean_dec_ref(x_92); + x_95 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_103 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_92); -if (lean_obj_tag(x_103) == 0) +x_107 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_94); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_104; uint8_t x_105; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_unbox(x_104); -lean_dec(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_93); -lean_dec(x_91); -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -lean_dec(x_103); -x_107 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_106); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_9); -x_108 = lean_ctor_get(x_107, 1); +lean_object* x_108; uint8_t x_109; +x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_109 = x_107; +x_109 = lean_unbox(x_108); +lean_dec(x_108); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_95); +lean_dec(x_93); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +lean_dec(x_107); +x_111 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_110); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_9); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_113 = x_111; } else { - lean_dec_ref(x_107); - x_109 = lean_box(0); + lean_dec_ref(x_111); + x_113 = lean_box(0); } -x_110 = 0; -x_111 = lean_box(x_110); -if (lean_is_scalar(x_109)) { - x_112 = lean_alloc_ctor(0, 2, 0); +x_114 = 0; +x_115 = lean_box(x_114); +if (lean_is_scalar(x_113)) { + x_116 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_109; + x_116 = x_113; } -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_108); -return x_112; +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_112); +return x_116; } else { -lean_object* x_113; uint8_t x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_103, 1); -lean_inc(x_113); -lean_dec(x_103); -x_114 = 0; +lean_object* x_117; uint8_t x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_107, 1); +lean_inc(x_117); +lean_dec(x_107); +x_118 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_115 = l_Lean_Meta_processPostponed(x_2, x_114, x_3, x_4, x_5, x_6, x_113); -if (lean_obj_tag(x_115) == 0) +x_119 = l_Lean_Meta_processPostponed(x_2, x_118, x_3, x_4, x_5, x_6, x_117); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_116; uint8_t x_117; -lean_dec(x_93); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_unbox(x_116); -lean_dec(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; -lean_dec(x_91); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec(x_115); -x_119 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_118); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_9); -x_120 = lean_ctor_get(x_119, 1); +lean_object* x_120; uint8_t x_121; +lean_dec(x_95); +x_120 = lean_ctor_get(x_119, 0); lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); -} -x_122 = lean_box(x_114); -if (lean_is_scalar(x_121)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { - x_123 = x_121; -} -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_120); -return x_123; -} -else +x_121 = lean_unbox(x_120); +lean_dec(x_120); +if (x_121 == 0) { -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; uint8_t x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_9); -x_124 = lean_ctor_get(x_115, 1); -lean_inc(x_124); -lean_dec(x_115); -x_125 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_124); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = l_Lean_PersistentArray_append___rarg(x_91, x_126); -x_129 = l_Lean_Meta_setPostponed(x_128, x_3, x_4, x_5, x_6, x_127); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_131 = x_129; -} else { - lean_dec_ref(x_129); - x_131 = lean_box(0); -} -x_132 = 1; -x_133 = lean_box(x_132); -if (lean_is_scalar(x_131)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_131; -} -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_130); -return x_134; -} -} -else -{ -lean_object* x_135; lean_object* x_136; -lean_dec(x_91); -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_94 = x_135; -x_95 = x_136; -goto block_102; -} -} -} -else -{ -lean_object* x_137; lean_object* x_138; -lean_dec(x_91); -x_137 = lean_ctor_get(x_103, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_103, 1); -lean_inc(x_138); -lean_dec(x_103); -x_94 = x_137; -x_95 = x_138; -goto block_102; -} -block_102: -{ -uint8_t x_96; -x_96 = l_Lean_Exception_isRuntime(x_94); -if (x_96 == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +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_dec(x_93); -x_97 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_95); +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); +lean_dec(x_119); +x_123 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_122); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -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_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_97); - x_99 = lean_box(0); + lean_dec_ref(x_123); + x_125 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); +x_126 = lean_box(x_118); +if (lean_is_scalar(x_125)) { + x_127 = lean_alloc_ctor(0, 2, 0); } else { - x_100 = x_99; - lean_ctor_set_tag(x_100, 1); + x_127 = x_125; } -lean_ctor_set(x_100, 0, x_94); -lean_ctor_set(x_100, 1, x_98); -return x_100; +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_124); +return x_127; } else { -lean_object* x_101; +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; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_9); +x_128 = lean_ctor_get(x_119, 1); +lean_inc(x_128); +lean_dec(x_119); +x_129 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_128); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = l_Lean_PersistentArray_append___rarg(x_93, x_130); +x_133 = l_Lean_Meta_setPostponed(x_132, x_3, x_4, x_5, x_6, x_131); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_93)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_135 = x_133; } else { - x_101 = x_93; - lean_ctor_set_tag(x_101, 1); -} -lean_ctor_set(x_101, 0, x_94); -lean_ctor_set(x_101, 1, x_95); -return x_101; + lean_dec_ref(x_133); + x_135 = lean_box(0); } +x_136 = 1; +x_137 = lean_box(x_136); +if (lean_is_scalar(x_135)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_135; } +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_134); +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_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_168; -x_139 = lean_ctor_get(x_12, 0); -x_140 = lean_ctor_get(x_12, 2); -x_141 = lean_ctor_get(x_12, 3); -x_142 = lean_ctor_get(x_12, 4); -lean_inc(x_142); -lean_inc(x_141); -lean_inc(x_140); +lean_object* x_139; lean_object* x_140; +lean_dec(x_93); +x_139 = lean_ctor_get(x_119, 0); lean_inc(x_139); -lean_dec(x_12); -x_143 = lean_ctor_get(x_13, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_13, 1); -lean_inc(x_144); -x_145 = lean_ctor_get(x_13, 2); -lean_inc(x_145); -x_146 = lean_ctor_get(x_13, 3); +x_140 = lean_ctor_get(x_119, 1); +lean_inc(x_140); +lean_dec(x_119); +x_96 = x_139; +x_97 = x_140; +goto block_106; +} +} +} +else +{ +lean_object* x_141; lean_object* x_142; +lean_dec(x_93); +x_141 = lean_ctor_get(x_107, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_107, 1); +lean_inc(x_142); +lean_dec(x_107); +x_96 = x_141; +x_97 = x_142; +goto block_106; +} +block_106: +{ +uint8_t x_98; +x_98 = l_Lean_Exception_isInterrupt(x_96); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_96); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_95); +x_100 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_97); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_9); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; +} else { + lean_dec_ref(x_100); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; + lean_ctor_set_tag(x_103, 1); +} +lean_ctor_set(x_103, 0, x_96); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +else +{ +lean_object* x_104; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_95)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_95; + lean_ctor_set_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_96); +lean_ctor_set(x_104, 1, x_97); +return x_104; +} +} +else +{ +lean_object* x_105; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_95)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_95; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_96); +lean_ctor_set(x_105, 1, x_97); +return x_105; +} +} +} +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_174; +x_143 = lean_ctor_get(x_12, 0); +x_144 = lean_ctor_get(x_12, 2); +x_145 = lean_ctor_get(x_12, 3); +x_146 = lean_ctor_get(x_12, 4); lean_inc(x_146); -x_147 = lean_ctor_get(x_13, 4); +lean_inc(x_145); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_12); +x_147 = lean_ctor_get(x_13, 0); lean_inc(x_147); -x_148 = lean_ctor_get(x_13, 6); +x_148 = lean_ctor_get(x_13, 1); lean_inc(x_148); +x_149 = lean_ctor_get(x_13, 2); +lean_inc(x_149); +x_150 = lean_ctor_get(x_13, 3); +lean_inc(x_150); +x_151 = lean_ctor_get(x_13, 4); +lean_inc(x_151); +x_152 = lean_ctor_get(x_13, 6); +lean_inc(x_152); if (lean_is_exclusive(x_13)) { lean_ctor_release(x_13, 0); lean_ctor_release(x_13, 1); @@ -50262,267 +51102,290 @@ if (lean_is_exclusive(x_13)) { lean_ctor_release(x_13, 4); lean_ctor_release(x_13, 5); lean_ctor_release(x_13, 6); - x_149 = x_13; + x_153 = x_13; } else { lean_dec_ref(x_13); - x_149 = lean_box(0); + x_153 = lean_box(0); } -x_150 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -if (lean_is_scalar(x_149)) { - x_151 = lean_alloc_ctor(0, 7, 0); +x_154 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +if (lean_is_scalar(x_153)) { + x_155 = lean_alloc_ctor(0, 7, 0); } else { - x_151 = x_149; + x_155 = x_153; } -lean_ctor_set(x_151, 0, x_143); -lean_ctor_set(x_151, 1, x_144); -lean_ctor_set(x_151, 2, x_145); -lean_ctor_set(x_151, 3, x_146); -lean_ctor_set(x_151, 4, x_147); -lean_ctor_set(x_151, 5, x_150); -lean_ctor_set(x_151, 6, x_148); -x_152 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_152, 0, x_139); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_152, 2, x_140); -lean_ctor_set(x_152, 3, x_141); -lean_ctor_set(x_152, 4, x_142); -x_153 = lean_st_ref_set(x_4, x_152, x_14); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -lean_dec(x_153); -x_155 = l_Lean_Meta_getResetPostponed(x_3, x_4, x_5, x_6, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_158 = x_155; +lean_ctor_set(x_155, 0, x_147); +lean_ctor_set(x_155, 1, x_148); +lean_ctor_set(x_155, 2, x_149); +lean_ctor_set(x_155, 3, x_150); +lean_ctor_set(x_155, 4, x_151); +lean_ctor_set(x_155, 5, x_154); +lean_ctor_set(x_155, 6, x_152); +x_156 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_156, 0, x_143); +lean_ctor_set(x_156, 1, x_155); +lean_ctor_set(x_156, 2, x_144); +lean_ctor_set(x_156, 3, x_145); +lean_ctor_set(x_156, 4, x_146); +x_157 = lean_st_ref_set(x_4, x_156, x_14); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_159 = l_Lean_Meta_getResetPostponed(x_3, x_4, x_5, x_6, x_158); +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_155); - x_158 = lean_box(0); + lean_dec_ref(x_159); + x_162 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_168 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_157); -if (lean_obj_tag(x_168) == 0) +x_174 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_161); +if (lean_obj_tag(x_174) == 0) { -lean_object* x_169; uint8_t x_170; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_unbox(x_169); -lean_dec(x_169); -if (x_170 == 0) +lean_object* x_175; uint8_t x_176; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_unbox(x_175); +lean_dec(x_175); +if (x_176 == 0) { -lean_object* x_171; 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_dec(x_158); -lean_dec(x_156); -x_171 = lean_ctor_get(x_168, 1); -lean_inc(x_171); -lean_dec(x_168); -x_172 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_171); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_162); +lean_dec(x_160); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +lean_dec(x_174); +x_178 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_177); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_174 = x_172; +x_179 = lean_ctor_get(x_178, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_180 = x_178; } else { - lean_dec_ref(x_172); - x_174 = lean_box(0); + lean_dec_ref(x_178); + x_180 = lean_box(0); } -x_175 = 0; -x_176 = lean_box(x_175); -if (lean_is_scalar(x_174)) { - x_177 = lean_alloc_ctor(0, 2, 0); +x_181 = 0; +x_182 = lean_box(x_181); +if (lean_is_scalar(x_180)) { + x_183 = lean_alloc_ctor(0, 2, 0); } else { - x_177 = x_174; + x_183 = x_180; } -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_173); -return x_177; +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_179); +return x_183; } else { -lean_object* x_178; uint8_t x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_168, 1); -lean_inc(x_178); -lean_dec(x_168); -x_179 = 0; +lean_object* x_184; uint8_t x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_174, 1); +lean_inc(x_184); +lean_dec(x_174); +x_185 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_180 = l_Lean_Meta_processPostponed(x_2, x_179, x_3, x_4, x_5, x_6, x_178); -if (lean_obj_tag(x_180) == 0) +x_186 = l_Lean_Meta_processPostponed(x_2, x_185, x_3, x_4, x_5, x_6, x_184); +if (lean_obj_tag(x_186) == 0) { -lean_object* x_181; uint8_t x_182; -lean_dec(x_158); -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_unbox(x_181); -lean_dec(x_181); -if (x_182 == 0) +lean_object* x_187; uint8_t x_188; +lean_dec(x_162); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_unbox(x_187); +lean_dec(x_187); +if (x_188 == 0) { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_156); -x_183 = lean_ctor_get(x_180, 1); -lean_inc(x_183); -lean_dec(x_180); -x_184 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_183); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_9); -x_185 = lean_ctor_get(x_184, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_186 = x_184; -} else { - lean_dec_ref(x_184); - x_186 = lean_box(0); -} -x_187 = lean_box(x_179); -if (lean_is_scalar(x_186)) { - x_188 = lean_alloc_ctor(0, 2, 0); -} else { - x_188 = x_186; -} -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_185); -return x_188; -} -else -{ -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; uint8_t x_197; lean_object* x_198; lean_object* x_199; -lean_dec(x_9); -x_189 = lean_ctor_get(x_180, 1); +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_dec(x_160); +x_189 = lean_ctor_get(x_186, 1); lean_inc(x_189); -lean_dec(x_180); -x_190 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_189); -x_191 = lean_ctor_get(x_190, 0); +lean_dec(x_186); +x_190 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_189); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_9); +x_191 = lean_ctor_get(x_190, 1); lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec(x_190); -x_193 = l_Lean_PersistentArray_append___rarg(x_156, x_191); -x_194 = l_Lean_Meta_setPostponed(x_193, x_3, x_4, x_5, x_6, x_192); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_195 = lean_ctor_get(x_194, 1); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_192 = x_190; +} else { + lean_dec_ref(x_190); + x_192 = lean_box(0); +} +x_193 = lean_box(x_185); +if (lean_is_scalar(x_192)) { + x_194 = lean_alloc_ctor(0, 2, 0); +} else { + x_194 = x_192; +} +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_191); +return x_194; +} +else +{ +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; uint8_t x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_9); +x_195 = lean_ctor_get(x_186, 1); lean_inc(x_195); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - lean_ctor_release(x_194, 1); - x_196 = x_194; -} else { - lean_dec_ref(x_194); - x_196 = lean_box(0); -} -x_197 = 1; -x_198 = lean_box(x_197); -if (lean_is_scalar(x_196)) { - x_199 = lean_alloc_ctor(0, 2, 0); -} else { - x_199 = x_196; -} -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_195); -return x_199; -} -} -else -{ -lean_object* x_200; lean_object* x_201; -lean_dec(x_156); -x_200 = lean_ctor_get(x_180, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_180, 1); +lean_dec(x_186); +x_196 = l_Lean_Meta_getPostponed___rarg(x_4, x_5, x_6, x_195); +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +x_199 = l_Lean_PersistentArray_append___rarg(x_160, x_197); +x_200 = l_Lean_Meta_setPostponed(x_199, x_3, x_4, x_5, x_6, x_198); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_201 = lean_ctor_get(x_200, 1); lean_inc(x_201); -lean_dec(x_180); -x_159 = x_200; -x_160 = x_201; -goto block_167; +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_202 = x_200; +} else { + lean_dec_ref(x_200); + x_202 = lean_box(0); +} +x_203 = 1; +x_204 = lean_box(x_203); +if (lean_is_scalar(x_202)) { + x_205 = lean_alloc_ctor(0, 2, 0); +} else { + x_205 = x_202; +} +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_201); +return x_205; +} +} +else +{ +lean_object* x_206; lean_object* x_207; +lean_dec(x_160); +x_206 = lean_ctor_get(x_186, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_186, 1); +lean_inc(x_207); +lean_dec(x_186); +x_163 = x_206; +x_164 = x_207; +goto block_173; } } } else { -lean_object* x_202; lean_object* x_203; -lean_dec(x_156); -x_202 = lean_ctor_get(x_168, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_168, 1); -lean_inc(x_203); -lean_dec(x_168); -x_159 = x_202; -x_160 = x_203; -goto block_167; +lean_object* x_208; lean_object* x_209; +lean_dec(x_160); +x_208 = lean_ctor_get(x_174, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_174, 1); +lean_inc(x_209); +lean_dec(x_174); +x_163 = x_208; +x_164 = x_209; +goto block_173; } -block_167: +block_173: { -uint8_t x_161; -x_161 = l_Lean_Exception_isRuntime(x_159); -if (x_161 == 0) +uint8_t x_165; +x_165 = l_Lean_Exception_isInterrupt(x_163); +if (x_165 == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_158); -x_162 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_160); +uint8_t x_166; +x_166 = l_Lean_Exception_isRuntime(x_163); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_162); +x_167 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_164); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_164 = x_162; +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_169 = x_167; } else { - lean_dec_ref(x_162); - x_164 = lean_box(0); + lean_dec_ref(x_167); + x_169 = lean_box(0); } -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); } else { - x_165 = x_164; - lean_ctor_set_tag(x_165, 1); + x_170 = x_169; + lean_ctor_set_tag(x_170, 1); } -lean_ctor_set(x_165, 0, x_159); -lean_ctor_set(x_165, 1, x_163); -return x_165; +lean_ctor_set(x_170, 0, x_163); +lean_ctor_set(x_170, 1, x_168); +return x_170; } else { -lean_object* x_166; +lean_object* x_171; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -if (lean_is_scalar(x_158)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_158; - lean_ctor_set_tag(x_166, 1); + x_171 = x_162; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_159); -lean_ctor_set(x_166, 1, x_160); -return x_166; +lean_ctor_set(x_171, 0, x_163); +lean_ctor_set(x_171, 1, x_164); +return x_171; +} +} +else +{ +lean_object* x_172; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(1, 2, 0); +} else { + x_172 = x_162; + lean_ctor_set_tag(x_172, 1); +} +lean_ctor_set(x_172, 0, x_163); +lean_ctor_set(x_172, 1, x_164); +return x_172; } } } @@ -50565,7 +51428,7 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; +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_39; x_19 = lean_ctor_get(x_14, 5); lean_dec(x_19); x_20 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; @@ -50591,166 +51454,151 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_37) == 0) +x_39 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_dec(x_26); lean_dec(x_24); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_42); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = 0; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_processPostponed(x_3, x_51, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_processPostponed(x_3, x_53, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_55; uint8_t x_56; lean_dec(x_26); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_24); -x_55 = lean_ctor_get(x_52, 1); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_55); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(x_51); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); -x_61 = lean_box(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -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; -lean_dec(x_10); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_PersistentArray_append___rarg(x_24, x_65); -x_68 = l_Lean_Meta_setPostponed(x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = 1; -x_72 = lean_box(x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = 1; -x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -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_57; lean_object* x_58; uint8_t x_59; lean_dec(x_24); -x_77 = lean_ctor_get(x_52, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); -lean_dec(x_52); -x_27 = x_77; -x_28 = x_78; -goto block_36; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(x_53); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(x_53); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_10); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_dec(x_54); +x_66 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_PersistentArray_append___rarg(x_24, x_67); +x_70 = l_Lean_Meta_setPostponed(x_69, x_4, x_5, x_6, x_7, x_68); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = 1; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } } @@ -50758,362 +51606,423 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_24); -x_79 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_54, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_37, 1); +x_80 = lean_ctor_get(x_54, 1); lean_inc(x_80); -lean_dec(x_37); +lean_dec(x_54); x_27 = x_79; x_28 = x_80; -goto block_36; +goto block_38; } -block_36: +} +} +else +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_24); +x_81 = lean_ctor_get(x_39, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_39, 1); +lean_inc(x_82); +lean_dec(x_39); +x_27 = x_81; +x_28 = x_82; +goto block_38; +} +block_38: { uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; uint8_t x_31; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_26); -x_30 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_27); -return x_30; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_27); +return x_31; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; +lean_object* x_36; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_26)) { - x_35 = lean_alloc_ctor(1, 2, 0); + x_36 = lean_alloc_ctor(1, 2, 0); } else { - x_35 = x_26; - lean_ctor_set_tag(x_35, 1); + x_36 = x_26; + lean_ctor_set_tag(x_36, 1); } -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -return x_35; +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_26)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_26; + lean_ctor_set_tag(x_37, 1); +} +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } else { -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; lean_object* x_96; lean_object* x_104; -x_81 = lean_ctor_get(x_14, 0); -x_82 = lean_ctor_get(x_14, 1); -x_83 = lean_ctor_get(x_14, 2); -x_84 = lean_ctor_get(x_14, 3); -x_85 = lean_ctor_get(x_14, 4); -x_86 = lean_ctor_get(x_14, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_108; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +x_85 = lean_ctor_get(x_14, 2); +x_86 = lean_ctor_get(x_14, 3); +x_87 = lean_ctor_get(x_14, 4); +x_88 = lean_ctor_get(x_14, 6); +lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_14); -x_87 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -x_88 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_82); -lean_ctor_set(x_88, 2, x_83); -lean_ctor_set(x_88, 3, x_84); -lean_ctor_set(x_88, 4, x_85); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_86); -lean_ctor_set(x_13, 1, x_88); -x_89 = lean_st_ref_set(x_5, x_13, x_15); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_90); -x_92 = lean_ctor_get(x_91, 0); +x_89 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +lean_ctor_set(x_90, 2, x_85); +lean_ctor_set(x_90, 3, x_86); +lean_ctor_set(x_90, 4, x_87); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +lean_ctor_set(x_13, 1, x_90); +x_91 = lean_st_ref_set(x_5, x_13, x_15); +x_92 = lean_ctor_get(x_91, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_94 = x_91; +lean_dec(x_91); +x_93 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_92); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; } else { - lean_dec_ref(x_91); - x_94 = lean_box(0); + lean_dec_ref(x_93); + x_96 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_104 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_104) == 0) +x_108 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; uint8_t x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -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_dec(x_94); -lean_dec(x_92); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_dec(x_104); -x_108 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_107); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_109 = lean_ctor_get(x_108, 1); +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +x_110 = lean_unbox(x_109); +lean_dec(x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_96); +lean_dec(x_94); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_111); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_111 = 0; -x_112 = lean_box(x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_115 = 0; +x_116 = lean_box(x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_110; + x_117 = x_114; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); -return x_113; +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_104, 1); -lean_inc(x_114); -lean_dec(x_104); -x_115 = 0; +lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +lean_dec(x_108); +x_119 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_Meta_processPostponed(x_3, x_115, x_4, x_5, x_6, x_7, x_114); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Meta_processPostponed(x_3, x_119, x_4, x_5, x_6, x_7, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; uint8_t x_118; -lean_dec(x_94); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -lean_dec(x_117); -if (x_118 == 0) -{ -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_92); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_dec(x_116); -x_120 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_119); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_121; uint8_t x_122; +lean_dec(x_96); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(x_115); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; -} -else +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -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; uint8_t x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_10); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -lean_dec(x_116); -x_126 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_PersistentArray_append___rarg(x_92, x_127); -x_130 = l_Lean_Meta_setPostponed(x_129, x_4, x_5, x_6, x_7, x_128); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = 1; -x_134 = lean_box(x_133); -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_134); -lean_ctor_set(x_135, 1, x_131); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_92); -x_136 = lean_ctor_get(x_116, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_116, 1); -lean_inc(x_137); -lean_dec(x_116); -x_95 = x_136; -x_96 = x_137; -goto block_103; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_92); -x_138 = lean_ctor_get(x_104, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_104, 1); -lean_inc(x_139); -lean_dec(x_104); -x_95 = x_138; -x_96 = x_139; -goto block_103; -} -block_103: -{ -uint8_t x_97; -x_97 = l_Lean_Exception_isRuntime(x_95); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +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_94); -x_98 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_96); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_123); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_98); - x_100 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_box(x_119); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_100; - lean_ctor_set_tag(x_101, 1); + x_128 = x_126; } -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; } else { -lean_object* x_102; +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; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_10); +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +lean_dec(x_120); +x_130 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_129); +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 = l_Lean_PersistentArray_append___rarg(x_94, x_131); +x_134 = l_Lean_Meta_setPostponed(x_133, x_4, x_5, x_6, x_7, x_132); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_94)) { - x_102 = lean_alloc_ctor(1, 2, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; } else { - x_102 = x_94; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -return x_102; + lean_dec_ref(x_134); + x_136 = lean_box(0); } +x_137 = 1; +x_138 = lean_box(x_137); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_136; } +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_135); +return x_139; } } else { -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_169; -x_140 = lean_ctor_get(x_13, 0); -x_141 = lean_ctor_get(x_13, 2); -x_142 = lean_ctor_get(x_13, 3); -x_143 = lean_ctor_get(x_13, 4); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_140; lean_object* x_141; +lean_dec(x_94); +x_140 = lean_ctor_get(x_120, 0); lean_inc(x_140); -lean_dec(x_13); -x_144 = lean_ctor_get(x_14, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_14, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_14, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 3); +x_141 = lean_ctor_get(x_120, 1); +lean_inc(x_141); +lean_dec(x_120); +x_97 = x_140; +x_98 = x_141; +goto block_107; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_94); +x_142 = lean_ctor_get(x_108, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_108, 1); +lean_inc(x_143); +lean_dec(x_108); +x_97 = x_142; +x_98 = x_143; +goto block_107; +} +block_107: +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_96); +x_101 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_98); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + 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_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_96; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_96; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_175; +x_144 = lean_ctor_get(x_13, 0); +x_145 = lean_ctor_get(x_13, 2); +x_146 = lean_ctor_get(x_13, 3); +x_147 = lean_ctor_get(x_13, 4); lean_inc(x_147); -x_148 = lean_ctor_get(x_14, 4); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_13); +x_148 = lean_ctor_get(x_14, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_14, 6); +x_149 = lean_ctor_get(x_14, 1); lean_inc(x_149); +x_150 = lean_ctor_get(x_14, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_14, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_14, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_14, 6); +lean_inc(x_153); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -51122,267 +52031,290 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 4); lean_ctor_release(x_14, 5); lean_ctor_release(x_14, 6); - x_150 = x_14; + x_154 = x_14; } else { lean_dec_ref(x_14); - x_150 = lean_box(0); + x_154 = lean_box(0); } -x_151 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 7, 0); +x_155 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 7, 0); } else { - x_152 = x_150; + x_156 = x_154; } -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_151); -lean_ctor_set(x_152, 6, x_149); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_140); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_141); -lean_ctor_set(x_153, 3, x_142); -lean_ctor_set(x_153, 4, x_143); -x_154 = lean_st_ref_set(x_5, x_153, x_15); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_155); -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; +lean_ctor_set(x_156, 0, x_148); +lean_ctor_set(x_156, 1, x_149); +lean_ctor_set(x_156, 2, x_150); +lean_ctor_set(x_156, 3, x_151); +lean_ctor_set(x_156, 4, x_152); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_153); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_145); +lean_ctor_set(x_157, 3, x_146); +lean_ctor_set(x_157, 4, x_147); +x_158 = lean_st_ref_set(x_5, x_157, x_15); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_156); - x_159 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_169 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_158); -if (lean_obj_tag(x_169) == 0) +x_175 = lean_is_level_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_162); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -lean_dec(x_170); -if (x_171 == 0) +lean_object* x_176; uint8_t x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_unbox(x_176); +lean_dec(x_176); +if (x_177 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_159); -lean_dec(x_157); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_172); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_163); +lean_dec(x_161); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_179 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_178); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_179); + x_181 = lean_box(0); } -x_176 = 0; -x_177 = lean_box(x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 0); +x_182 = 0; +x_183 = lean_box(x_182); +if (lean_is_scalar(x_181)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_175; + x_184 = x_181; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_174); -return x_178; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_180); +return x_184; } else { -lean_object* x_179; uint8_t x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 1); -lean_inc(x_179); -lean_dec(x_169); -x_180 = 0; +lean_object* x_185; uint8_t x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_dec(x_175); +x_186 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lean_Meta_processPostponed(x_3, x_180, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_181) == 0) +x_187 = l_Lean_Meta_processPostponed(x_3, x_186, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_188; uint8_t x_189; +lean_dec(x_163); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) { -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_dec(x_157); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_187 = x_185; -} else { - lean_dec_ref(x_185); - x_187 = lean_box(0); -} -x_188 = lean_box(x_180); -if (lean_is_scalar(x_187)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_187; -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_190 = lean_ctor_get(x_181, 1); +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_dec(x_161); +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -lean_dec(x_181); -x_191 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_191 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_190); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_PersistentArray_append___rarg(x_157, x_192); -x_195 = l_Lean_Meta_setPostponed(x_194, x_4, x_5, x_6, x_7, x_193); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_196 = lean_ctor_get(x_195, 1); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_193 = x_191; +} else { + lean_dec_ref(x_191); + x_193 = lean_box(0); +} +x_194 = lean_box(x_186); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +return x_195; +} +else +{ +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; uint8_t x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_196 = lean_ctor_get(x_187, 1); lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_197; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_157); -x_201 = lean_ctor_get(x_181, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_181, 1); +lean_dec(x_187); +x_197 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_PersistentArray_append___rarg(x_161, x_198); +x_201 = l_Lean_Meta_setPostponed(x_200, x_4, x_5, x_6, x_7, x_199); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); -lean_dec(x_181); -x_160 = x_201; -x_161 = x_202; -goto block_168; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = 1; +x_205 = lean_box(x_204); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +lean_dec(x_161); +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_187, 1); +lean_inc(x_208); +lean_dec(x_187); +x_164 = x_207; +x_165 = x_208; +goto block_174; } } } else { -lean_object* x_203; lean_object* x_204; -lean_dec(x_157); -x_203 = lean_ctor_get(x_169, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_169, 1); -lean_inc(x_204); -lean_dec(x_169); -x_160 = x_203; -x_161 = x_204; -goto block_168; +lean_object* x_209; lean_object* x_210; +lean_dec(x_161); +x_209 = lean_ctor_get(x_175, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_175, 1); +lean_inc(x_210); +lean_dec(x_175); +x_164 = x_209; +x_165 = x_210; +goto block_174; } -block_168: +block_174: { -uint8_t x_162; -x_162 = l_Lean_Exception_isRuntime(x_160); -if (x_162 == 0) +uint8_t x_166; +x_166 = l_Lean_Exception_isInterrupt(x_164); +if (x_166 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_163 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_161); +uint8_t x_167; +x_167 = l_Lean_Exception_isRuntime(x_164); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_163); +x_168 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_165); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_168); + x_170 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_171 = x_170; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_167; +lean_object* x_172; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_159)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_159; - lean_ctor_set_tag(x_167, 1); + x_172 = x_163; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -return x_167; +lean_ctor_set(x_172, 0, x_164); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_163; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_164); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } @@ -51434,7 +52366,7 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; +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_39; x_19 = lean_ctor_get(x_14, 5); lean_dec(x_19); x_20 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; @@ -51460,166 +52392,151 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_37) == 0) +x_39 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_dec(x_26); lean_dec(x_24); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_42); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = 0; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_processPostponed(x_3, x_51, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_processPostponed(x_3, x_53, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_55; uint8_t x_56; lean_dec(x_26); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_24); -x_55 = lean_ctor_get(x_52, 1); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_55); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(x_51); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); -x_61 = lean_box(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -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; -lean_dec(x_10); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_PersistentArray_append___rarg(x_24, x_65); -x_68 = l_Lean_Meta_setPostponed(x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = 1; -x_72 = lean_box(x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = 1; -x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -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_57; lean_object* x_58; uint8_t x_59; lean_dec(x_24); -x_77 = lean_ctor_get(x_52, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); -lean_dec(x_52); -x_27 = x_77; -x_28 = x_78; -goto block_36; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(x_53); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(x_53); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_10); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_dec(x_54); +x_66 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_PersistentArray_append___rarg(x_24, x_67); +x_70 = l_Lean_Meta_setPostponed(x_69, x_4, x_5, x_6, x_7, x_68); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = 1; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } } @@ -51627,362 +52544,423 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_24); -x_79 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_54, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_37, 1); +x_80 = lean_ctor_get(x_54, 1); lean_inc(x_80); -lean_dec(x_37); +lean_dec(x_54); x_27 = x_79; x_28 = x_80; -goto block_36; +goto block_38; } -block_36: +} +} +else +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_24); +x_81 = lean_ctor_get(x_39, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_39, 1); +lean_inc(x_82); +lean_dec(x_39); +x_27 = x_81; +x_28 = x_82; +goto block_38; +} +block_38: { uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; uint8_t x_31; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_26); -x_30 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_27); -return x_30; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_27); +return x_31; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; +lean_object* x_36; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_26)) { - x_35 = lean_alloc_ctor(1, 2, 0); + x_36 = lean_alloc_ctor(1, 2, 0); } else { - x_35 = x_26; - lean_ctor_set_tag(x_35, 1); + x_36 = x_26; + lean_ctor_set_tag(x_36, 1); } -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -return x_35; +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_26)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_26; + lean_ctor_set_tag(x_37, 1); +} +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } else { -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; lean_object* x_96; lean_object* x_104; -x_81 = lean_ctor_get(x_14, 0); -x_82 = lean_ctor_get(x_14, 1); -x_83 = lean_ctor_get(x_14, 2); -x_84 = lean_ctor_get(x_14, 3); -x_85 = lean_ctor_get(x_14, 4); -x_86 = lean_ctor_get(x_14, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_108; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +x_85 = lean_ctor_get(x_14, 2); +x_86 = lean_ctor_get(x_14, 3); +x_87 = lean_ctor_get(x_14, 4); +x_88 = lean_ctor_get(x_14, 6); +lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_14); -x_87 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -x_88 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_82); -lean_ctor_set(x_88, 2, x_83); -lean_ctor_set(x_88, 3, x_84); -lean_ctor_set(x_88, 4, x_85); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_86); -lean_ctor_set(x_13, 1, x_88); -x_89 = lean_st_ref_set(x_5, x_13, x_15); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_90); -x_92 = lean_ctor_get(x_91, 0); +x_89 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +lean_ctor_set(x_90, 2, x_85); +lean_ctor_set(x_90, 3, x_86); +lean_ctor_set(x_90, 4, x_87); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +lean_ctor_set(x_13, 1, x_90); +x_91 = lean_st_ref_set(x_5, x_13, x_15); +x_92 = lean_ctor_get(x_91, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_94 = x_91; +lean_dec(x_91); +x_93 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_92); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; } else { - lean_dec_ref(x_91); - x_94 = lean_box(0); + lean_dec_ref(x_93); + x_96 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_104 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_104) == 0) +x_108 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; uint8_t x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -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_dec(x_94); -lean_dec(x_92); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_dec(x_104); -x_108 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_107); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_109 = lean_ctor_get(x_108, 1); +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +x_110 = lean_unbox(x_109); +lean_dec(x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_96); +lean_dec(x_94); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_111); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_111 = 0; -x_112 = lean_box(x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_115 = 0; +x_116 = lean_box(x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_110; + x_117 = x_114; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); -return x_113; +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_104, 1); -lean_inc(x_114); -lean_dec(x_104); -x_115 = 0; +lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +lean_dec(x_108); +x_119 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_Meta_processPostponed(x_3, x_115, x_4, x_5, x_6, x_7, x_114); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Meta_processPostponed(x_3, x_119, x_4, x_5, x_6, x_7, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; uint8_t x_118; -lean_dec(x_94); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -lean_dec(x_117); -if (x_118 == 0) -{ -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_92); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_dec(x_116); -x_120 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_119); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_121; uint8_t x_122; +lean_dec(x_96); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(x_115); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; -} -else +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -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; uint8_t x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_10); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -lean_dec(x_116); -x_126 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_PersistentArray_append___rarg(x_92, x_127); -x_130 = l_Lean_Meta_setPostponed(x_129, x_4, x_5, x_6, x_7, x_128); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = 1; -x_134 = lean_box(x_133); -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_134); -lean_ctor_set(x_135, 1, x_131); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_92); -x_136 = lean_ctor_get(x_116, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_116, 1); -lean_inc(x_137); -lean_dec(x_116); -x_95 = x_136; -x_96 = x_137; -goto block_103; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_92); -x_138 = lean_ctor_get(x_104, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_104, 1); -lean_inc(x_139); -lean_dec(x_104); -x_95 = x_138; -x_96 = x_139; -goto block_103; -} -block_103: -{ -uint8_t x_97; -x_97 = l_Lean_Exception_isRuntime(x_95); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +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_94); -x_98 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_96); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_123); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_98); - x_100 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_box(x_119); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_100; - lean_ctor_set_tag(x_101, 1); + x_128 = x_126; } -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; } else { -lean_object* x_102; +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; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_10); +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +lean_dec(x_120); +x_130 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_129); +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 = l_Lean_PersistentArray_append___rarg(x_94, x_131); +x_134 = l_Lean_Meta_setPostponed(x_133, x_4, x_5, x_6, x_7, x_132); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_94)) { - x_102 = lean_alloc_ctor(1, 2, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; } else { - x_102 = x_94; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -return x_102; + lean_dec_ref(x_134); + x_136 = lean_box(0); } +x_137 = 1; +x_138 = lean_box(x_137); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_136; } +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_135); +return x_139; } } else { -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_169; -x_140 = lean_ctor_get(x_13, 0); -x_141 = lean_ctor_get(x_13, 2); -x_142 = lean_ctor_get(x_13, 3); -x_143 = lean_ctor_get(x_13, 4); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_140; lean_object* x_141; +lean_dec(x_94); +x_140 = lean_ctor_get(x_120, 0); lean_inc(x_140); -lean_dec(x_13); -x_144 = lean_ctor_get(x_14, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_14, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_14, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 3); +x_141 = lean_ctor_get(x_120, 1); +lean_inc(x_141); +lean_dec(x_120); +x_97 = x_140; +x_98 = x_141; +goto block_107; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_94); +x_142 = lean_ctor_get(x_108, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_108, 1); +lean_inc(x_143); +lean_dec(x_108); +x_97 = x_142; +x_98 = x_143; +goto block_107; +} +block_107: +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_96); +x_101 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_98); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + 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_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_96; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_96; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_175; +x_144 = lean_ctor_get(x_13, 0); +x_145 = lean_ctor_get(x_13, 2); +x_146 = lean_ctor_get(x_13, 3); +x_147 = lean_ctor_get(x_13, 4); lean_inc(x_147); -x_148 = lean_ctor_get(x_14, 4); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_13); +x_148 = lean_ctor_get(x_14, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_14, 6); +x_149 = lean_ctor_get(x_14, 1); lean_inc(x_149); +x_150 = lean_ctor_get(x_14, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_14, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_14, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_14, 6); +lean_inc(x_153); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -51991,267 +52969,290 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 4); lean_ctor_release(x_14, 5); lean_ctor_release(x_14, 6); - x_150 = x_14; + x_154 = x_14; } else { lean_dec_ref(x_14); - x_150 = lean_box(0); + x_154 = lean_box(0); } -x_151 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 7, 0); +x_155 = l_Lean_Meta_instInhabitedDefEqCache___closed__1; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 7, 0); } else { - x_152 = x_150; + x_156 = x_154; } -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_151); -lean_ctor_set(x_152, 6, x_149); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_140); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_141); -lean_ctor_set(x_153, 3, x_142); -lean_ctor_set(x_153, 4, x_143); -x_154 = lean_st_ref_set(x_5, x_153, x_15); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_155); -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; +lean_ctor_set(x_156, 0, x_148); +lean_ctor_set(x_156, 1, x_149); +lean_ctor_set(x_156, 2, x_150); +lean_ctor_set(x_156, 3, x_151); +lean_ctor_set(x_156, 4, x_152); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_153); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_145); +lean_ctor_set(x_157, 3, x_146); +lean_ctor_set(x_157, 4, x_147); +x_158 = lean_st_ref_set(x_5, x_157, x_15); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_156); - x_159 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_169 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_158); -if (lean_obj_tag(x_169) == 0) +x_175 = lean_is_expr_def_eq(x_1, x_2, x_4, x_5, x_6, x_7, x_162); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -lean_dec(x_170); -if (x_171 == 0) +lean_object* x_176; uint8_t x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_unbox(x_176); +lean_dec(x_176); +if (x_177 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_159); -lean_dec(x_157); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_172); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_163); +lean_dec(x_161); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_179 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_178); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_179); + x_181 = lean_box(0); } -x_176 = 0; -x_177 = lean_box(x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 0); +x_182 = 0; +x_183 = lean_box(x_182); +if (lean_is_scalar(x_181)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_175; + x_184 = x_181; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_174); -return x_178; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_180); +return x_184; } else { -lean_object* x_179; uint8_t x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 1); -lean_inc(x_179); -lean_dec(x_169); -x_180 = 0; +lean_object* x_185; uint8_t x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_dec(x_175); +x_186 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lean_Meta_processPostponed(x_3, x_180, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_181) == 0) +x_187 = l_Lean_Meta_processPostponed(x_3, x_186, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_188; uint8_t x_189; +lean_dec(x_163); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) { -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_dec(x_157); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_187 = x_185; -} else { - lean_dec_ref(x_185); - x_187 = lean_box(0); -} -x_188 = lean_box(x_180); -if (lean_is_scalar(x_187)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_187; -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_190 = lean_ctor_get(x_181, 1); +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_dec(x_161); +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -lean_dec(x_181); -x_191 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_191 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_190); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_PersistentArray_append___rarg(x_157, x_192); -x_195 = l_Lean_Meta_setPostponed(x_194, x_4, x_5, x_6, x_7, x_193); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_196 = lean_ctor_get(x_195, 1); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_193 = x_191; +} else { + lean_dec_ref(x_191); + x_193 = lean_box(0); +} +x_194 = lean_box(x_186); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +return x_195; +} +else +{ +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; uint8_t x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_196 = lean_ctor_get(x_187, 1); lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_197; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_157); -x_201 = lean_ctor_get(x_181, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_181, 1); +lean_dec(x_187); +x_197 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_PersistentArray_append___rarg(x_161, x_198); +x_201 = l_Lean_Meta_setPostponed(x_200, x_4, x_5, x_6, x_7, x_199); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); -lean_dec(x_181); -x_160 = x_201; -x_161 = x_202; -goto block_168; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = 1; +x_205 = lean_box(x_204); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +lean_dec(x_161); +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_187, 1); +lean_inc(x_208); +lean_dec(x_187); +x_164 = x_207; +x_165 = x_208; +goto block_174; } } } else { -lean_object* x_203; lean_object* x_204; -lean_dec(x_157); -x_203 = lean_ctor_get(x_169, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_169, 1); -lean_inc(x_204); -lean_dec(x_169); -x_160 = x_203; -x_161 = x_204; -goto block_168; +lean_object* x_209; lean_object* x_210; +lean_dec(x_161); +x_209 = lean_ctor_get(x_175, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_175, 1); +lean_inc(x_210); +lean_dec(x_175); +x_164 = x_209; +x_165 = x_210; +goto block_174; } -block_168: +block_174: { -uint8_t x_162; -x_162 = l_Lean_Exception_isRuntime(x_160); -if (x_162 == 0) +uint8_t x_166; +x_166 = l_Lean_Exception_isInterrupt(x_164); +if (x_166 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_163 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_161); +uint8_t x_167; +x_167 = l_Lean_Exception_isRuntime(x_164); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_163); +x_168 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_165); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_168); + x_170 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_171 = x_170; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_167; +lean_object* x_172; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_159)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_159; - lean_ctor_set_tag(x_167, 1); + x_172 = x_163; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -return x_167; +lean_ctor_set(x_172, 0, x_164); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_163; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_164); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } @@ -52585,15 +53586,19 @@ if (x_13 == 0) { lean_object* x_14; uint8_t x_15; x_14 = lean_ctor_get(x_8, 0); -x_15 = l_Lean_Exception_isRuntime(x_14); +x_15 = l_Lean_Exception_isInterrupt(x_14); if (x_15 == 0) { -uint8_t x_16; lean_object* x_17; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_14); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_dec(x_14); -x_16 = 0; -x_17 = lean_box(x_16); +x_17 = 0; +x_18 = lean_box(x_17); lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_17); +lean_ctor_set(x_8, 0, x_18); return x_8; } else @@ -52603,31 +53608,49 @@ return x_8; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_8, 0); -x_19 = lean_ctor_get(x_8, 1); +return x_8; +} +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_8, 0); +x_20 = lean_ctor_get(x_8, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); lean_dec(x_8); -x_20 = l_Lean_Exception_isRuntime(x_18); -if (x_20 == 0) +x_21 = l_Lean_Exception_isInterrupt(x_19); +if (x_21 == 0) { -uint8_t x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_18); -x_21 = 0; -x_22 = lean_box(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_19); -return x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_19); +x_23 = 0; +x_24 = lean_box(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_20); +return x_25; } else { -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_18); -lean_ctor_set(x_24, 1, x_19); -return x_24; +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_20); +return x_26; +} +} +else +{ +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_19); +lean_ctor_set(x_27, 1, x_20); +return x_27; } } } @@ -53359,83 +54382,83 @@ lean_dec(x_2); return x_7; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6; +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2; +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3; +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1225____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10; +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12; +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6; -x_2 = lean_unsigned_to_nat(16395u); +x_1 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6; +x_2 = lean_unsigned_to_nat(16568u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568_(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Meta_processPostponed_loop___closed__3; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7; +x_4 = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -53752,43 +54775,45 @@ l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8 = _init_l_Lean_Meta_instMetaEva lean_mark_persistent(l_Lean_Meta_instMetaEvalMetaM___rarg___closed__8); l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9 = _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9(); lean_mark_persistent(l_Lean_Meta_instMetaEvalMetaM___rarg___closed__9); +l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10 = _init_l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10(); +lean_mark_persistent(l_Lean_Meta_instMetaEvalMetaM___rarg___closed__10); l_Lean_Meta_throwIsDefEqStuck___rarg___closed__1 = _init_l_Lean_Meta_throwIsDefEqStuck___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_throwIsDefEqStuck___rarg___closed__1); l_Lean_Meta_throwIsDefEqStuck___rarg___closed__2 = _init_l_Lean_Meta_throwIsDefEqStuck___rarg___closed__2(); lean_mark_persistent(l_Lean_Meta_throwIsDefEqStuck___rarg___closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__4); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__5); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__6); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__7); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__8); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__9); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__10); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__11); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__12); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__13); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__14); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__15); -l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973____closed__16); -if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1973_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__8); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__9); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__10); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__11); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__12); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__13); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__14); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__15); +l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146____closed__16); +if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_2146_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_recordSynthPendingFailure___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_recordSynthPendingFailure___spec__2___closed__1(); @@ -53940,21 +54965,21 @@ l_Lean_Meta_processPostponed___lambda__1___closed__3 = _init_l_Lean_Meta_process lean_mark_persistent(l_Lean_Meta_processPostponed___lambda__1___closed__3); l_Lean_Meta_processPostponed___lambda__1___closed__4 = _init_l_Lean_Meta_processPostponed___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Meta_processPostponed___lambda__1___closed__4); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__1); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__2); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__3); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__4); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__5); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__6); -l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395____closed__7); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16395_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__1); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__2); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__3); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__4); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__5); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__6); +l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7 = _init_l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568____closed__7); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_16568_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Check.c b/stage0/stdlib/Lean/Meta/Check.c index 8e36901512..0dfbdd5d07 100644 --- a/stage0/stdlib/Lean/Meta/Check.c +++ b/stage0/stdlib/Lean/Meta/Check.c @@ -37,6 +37,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_indentD(lean_object*); double lean_float_div(double, double); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit___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_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; @@ -2433,54 +2434,11 @@ return x_84; LEAN_EXPORT lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit(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; -x_8 = l_Lean_Expr_isApp(x_1); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_1); -lean_ctor_set(x_9, 1, x_2); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = l_Lean_Expr_isApp(x_2); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_12, 1, x_2); -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 -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_unsigned_to_nat(0u); -x_15 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_14); -x_16 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_14); -x_17 = lean_nat_dec_eq(x_15, x_16); +lean_object* x_8; lean_object* x_9; uint8_t x_17; +x_17 = l_Lean_Expr_isApp(x_1); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; -lean_dec(x_16); -lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -2495,319 +2453,260 @@ return x_19; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = l_Lean_Expr_getAppFn(x_1); -x_21 = l_Lean_Expr_getAppFn(x_2); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_21); -lean_inc(x_20); -x_22 = l_Lean_Meta_isExprDefEq(x_20, x_21, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_22) == 0) +uint8_t x_20; +x_20 = l_Lean_Expr_isApp(x_2); +if (x_20 == 0) { -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) -{ -uint8_t x_25; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); +lean_object* x_21; lean_object* x_22; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_25 = !lean_is_exclusive(x_22); -if (x_25 == 0) +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_2); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_7); +return x_22; +} +else { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_22, 0); -lean_dec(x_26); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_unsigned_to_nat(0u); +x_24 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_23); +x_25 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_23); +x_26 = lean_nat_dec_eq(x_24, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_1); lean_ctor_set(x_27, 1, x_2); -lean_ctor_set(x_22, 0, x_27); -return x_22; +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_7); +return x_28; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_22, 1); -lean_inc(x_28); -lean_dec(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_2); -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 -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_22, 1); -lean_inc(x_31); -lean_dec(x_22); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_Expr_getAppFn(x_1); +x_30 = l_Lean_Expr_getAppFn(x_2); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_20); -x_32 = lean_infer_type(x_20, x_3, x_4, x_5, x_6, x_31); -if (lean_obj_tag(x_32) == 0) +lean_inc(x_30); +lean_inc(x_29); +x_31 = l_Lean_Meta_isExprDefEq(x_29, x_30, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_31) == 0) { -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_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); lean_dec(x_32); -lean_inc(x_15); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_15); +if (x_33 == 0) +{ +uint8_t x_34; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_31, 0); +lean_dec(x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_2); +lean_ctor_set(x_31, 0, x_36); +return x_31; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +lean_dec(x_31); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_1); +lean_ctor_set(x_38, 1, x_2); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); +lean_dec(x_31); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_29); +x_41 = lean_infer_type(x_29, x_3, x_4, x_5, x_6, x_40); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +lean_inc(x_24); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_24); lean_inc(x_2); lean_inc(x_1); -x_36 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__1___boxed), 13, 6); -lean_closure_set(x_36, 0, x_15); -lean_closure_set(x_36, 1, x_1); -lean_closure_set(x_36, 2, x_16); -lean_closure_set(x_36, 3, x_2); -lean_closure_set(x_36, 4, x_20); -lean_closure_set(x_36, 5, x_21); -x_37 = 0; -x_38 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(x_33, x_35, x_36, x_37, x_3, x_4, x_5, x_6, x_34); -if (lean_obj_tag(x_38) == 0) +x_45 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_visit___lambda__1___boxed), 13, 6); +lean_closure_set(x_45, 0, x_24); +lean_closure_set(x_45, 1, x_1); +lean_closure_set(x_45, 2, x_25); +lean_closure_set(x_45, 3, x_2); +lean_closure_set(x_45, 4, x_29); +lean_closure_set(x_45, 5, x_30); +x_46 = 0; +x_47 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(x_42, x_44, x_45, x_46, x_3, x_4, x_5, x_6, x_43); +if (lean_obj_tag(x_47) == 0) { -uint8_t x_39; +uint8_t x_48; lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -return x_38; +return x_47; } else { -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_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -uint8_t x_43; -x_43 = !lean_is_exclusive(x_38); -if (x_43 == 0) -{ -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_38, 0); -x_45 = l_Lean_Exception_isRuntime(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -lean_dec(x_44); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_1); -lean_ctor_set(x_46, 1, x_2); -lean_ctor_set_tag(x_38, 0); -lean_ctor_set(x_38, 0, x_46); -return x_38; -} -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_38; -} -} -else -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = lean_ctor_get(x_38, 0); -x_48 = lean_ctor_get(x_38, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_38); -x_49 = l_Lean_Exception_isRuntime(x_47); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_47); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_1); -lean_ctor_set(x_50, 1, x_2); x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_48); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); return x_51; } +} else { -lean_object* x_52; -lean_dec(x_2); -lean_dec(x_1); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_47); -lean_ctor_set(x_52, 1, x_48); -return x_52; -} -} +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_dec(x_47); +x_8 = x_52; +x_9 = x_53; +goto block_16; } } else { -uint8_t x_53; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); +lean_object* x_54; lean_object* x_55; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_24); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_53 = !lean_is_exclusive(x_32); -if (x_53 == 0) -{ -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_32, 0); -x_55 = l_Lean_Exception_isRuntime(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_1); -lean_ctor_set(x_56, 1, x_2); -lean_ctor_set_tag(x_32, 0); -lean_ctor_set(x_32, 0, x_56); -return x_32; +x_54 = lean_ctor_get(x_41, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_41, 1); +lean_inc(x_55); +lean_dec(x_41); +x_8 = x_54; +x_9 = x_55; +goto block_16; } -else -{ -lean_dec(x_2); -lean_dec(x_1); -return x_32; } } else { -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_32, 0); -x_58 = lean_ctor_get(x_32, 1); -lean_inc(x_58); +lean_object* x_56; lean_object* x_57; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_56 = lean_ctor_get(x_31, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_31, 1); lean_inc(x_57); -lean_dec(x_32); -x_59 = l_Lean_Exception_isRuntime(x_57); -if (x_59 == 0) +lean_dec(x_31); +x_8 = x_56; +x_9 = x_57; +goto block_16; +} +} +} +} +block_16: { -lean_object* x_60; lean_object* x_61; -lean_dec(x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_1); -lean_ctor_set(x_60, 1, x_2); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_58); -return x_61; +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_2); +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_62; +lean_object* x_14; lean_dec(x_2); lean_dec(x_1); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_57); -lean_ctor_set(x_62, 1, x_58); -return x_62; -} -} -} +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_8); +lean_ctor_set(x_14, 1, x_9); +return x_14; } } else { -uint8_t x_63; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_63 = !lean_is_exclusive(x_22); -if (x_63 == 0) -{ -lean_object* x_64; uint8_t x_65; -x_64 = lean_ctor_get(x_22, 0); -x_65 = l_Lean_Exception_isRuntime(x_64); -if (x_65 == 0) -{ -lean_object* x_66; -lean_dec(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_1); -lean_ctor_set(x_66, 1, x_2); -lean_ctor_set_tag(x_22, 0); -lean_ctor_set(x_22, 0, x_66); -return x_22; -} -else -{ +lean_object* x_15; lean_dec(x_2); lean_dec(x_1); -return x_22; -} -} -else -{ -lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_67 = lean_ctor_get(x_22, 0); -x_68 = lean_ctor_get(x_22, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_22); -x_69 = l_Lean_Exception_isRuntime(x_67); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; -lean_dec(x_67); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_1); -lean_ctor_set(x_70, 1, x_2); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_68); -return x_71; -} -else -{ -lean_object* x_72; -lean_dec(x_2); -lean_dec(x_1); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_67); -lean_ctor_set(x_72, 1, x_68); -return x_72; -} -} -} -} +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; } } } @@ -3872,797 +3771,797 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(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_57; +lean_object* x_8; lean_object* x_9; lean_object* x_59; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_57 = lean_infer_type(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_57) == 0) +x_59 = lean_infer_type(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_58; -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_61 = lean_infer_type(x_2, x_3, x_4, x_5, x_6, x_60); -if (lean_obj_tag(x_61) == 0) +x_63 = lean_infer_type(x_2, x_3, x_4, x_5, x_6, x_62); +if (lean_obj_tag(x_63) == 0) { -uint8_t x_62; -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_ctor_get(x_61, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_65 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_64); -if (lean_obj_tag(x_65) == 0) +x_67 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_66); +if (lean_obj_tag(x_67) == 0) { -uint8_t x_66; -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) -{ -lean_object* x_67; uint8_t x_68; -x_67 = lean_ctor_get(x_65, 0); +uint8_t x_68; x_68 = !lean_is_exclusive(x_67); if (x_68 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_65, 1); -x_70 = lean_ctor_get(x_67, 0); +lean_object* x_69; uint8_t x_70; +x_69 = lean_ctor_get(x_67, 0); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; x_71 = lean_ctor_get(x_67, 1); +x_72 = lean_ctor_get(x_69, 0); +x_73 = lean_ctor_get(x_69, 1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_72 = l_Lean_Meta_addPPExplicitToExposeDiff(x_59, x_63, x_3, x_4, x_5, x_6, x_69); -if (lean_obj_tag(x_72) == 0) +x_74 = l_Lean_Meta_addPPExplicitToExposeDiff(x_61, x_65, x_3, x_4, x_5, x_6, x_71); +if (lean_obj_tag(x_74) == 0) { -uint8_t x_73; +uint8_t x_75; 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_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_72, 0); x_75 = !lean_is_exclusive(x_74); if (x_75 == 0) { -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; 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_76; uint8_t x_77; x_76 = lean_ctor_get(x_74, 0); -x_77 = lean_ctor_get(x_74, 1); -x_78 = l_Lean_MessageData_ofExpr(x_70); -x_79 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -lean_ctor_set_tag(x_74, 6); -lean_ctor_set(x_74, 1, x_78); -lean_ctor_set(x_74, 0, x_79); -x_80 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +x_77 = !lean_is_exclusive(x_76); +if (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; 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; +x_78 = lean_ctor_get(x_76, 0); +x_79 = lean_ctor_get(x_76, 1); +x_80 = l_Lean_MessageData_ofExpr(x_72); +x_81 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +lean_ctor_set_tag(x_76, 6); +lean_ctor_set(x_76, 1, x_80); +lean_ctor_set(x_76, 0, x_81); +x_82 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +lean_ctor_set_tag(x_69, 6); +lean_ctor_set(x_69, 1, x_82); +lean_ctor_set(x_69, 0, x_76); +x_83 = l_Lean_MessageData_ofExpr(x_78); lean_ctor_set_tag(x_67, 6); -lean_ctor_set(x_67, 1, x_80); -lean_ctor_set(x_67, 0, x_74); -x_81 = l_Lean_MessageData_ofExpr(x_76); -lean_ctor_set_tag(x_65, 6); -lean_ctor_set(x_65, 1, x_81); -lean_ctor_set_tag(x_61, 6); -lean_ctor_set(x_61, 1, x_79); -lean_ctor_set(x_61, 0, x_65); -x_82 = l_Lean_indentD(x_61); -x_83 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_82); -lean_ctor_set(x_57, 0, x_83); -x_84 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_57); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_MessageData_ofExpr(x_71); +lean_ctor_set(x_67, 1, x_83); +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_81); +lean_ctor_set(x_63, 0, x_67); +x_84 = l_Lean_indentD(x_63); +x_85 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_84); +lean_ctor_set(x_59, 0, x_85); +x_86 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; x_87 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_87, 0, x_79); +lean_ctor_set(x_87, 0, x_59); lean_ctor_set(x_87, 1, x_86); -x_88 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_80); -x_89 = l_Lean_MessageData_ofExpr(x_77); +x_88 = l_Lean_MessageData_ofExpr(x_73); +x_89 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_89, 0, x_81); +lean_ctor_set(x_89, 1, x_88); x_90 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_79); -x_92 = l_Lean_indentD(x_91); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_82); +x_91 = l_Lean_MessageData_ofExpr(x_79); +x_92 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); x_93 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_93, 0, x_85); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_79); -lean_ctor_set(x_72, 0, x_94); -return x_72; +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_81); +x_94 = l_Lean_indentD(x_93); +x_95 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_95, 0, x_87); +lean_ctor_set(x_95, 1, x_94); +x_96 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_81); +lean_ctor_set(x_74, 0, x_96); +return x_74; } 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; 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; -x_95 = lean_ctor_get(x_74, 0); -x_96 = lean_ctor_get(x_74, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_74); -x_97 = l_Lean_MessageData_ofExpr(x_70); -x_98 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -x_99 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +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; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_97 = lean_ctor_get(x_76, 0); +x_98 = lean_ctor_get(x_76, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_76); +x_99 = l_Lean_MessageData_ofExpr(x_72); +x_100 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +x_101 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +lean_ctor_set_tag(x_69, 6); +lean_ctor_set(x_69, 1, x_102); +lean_ctor_set(x_69, 0, x_101); +x_103 = l_Lean_MessageData_ofExpr(x_97); lean_ctor_set_tag(x_67, 6); -lean_ctor_set(x_67, 1, x_100); -lean_ctor_set(x_67, 0, x_99); -x_101 = l_Lean_MessageData_ofExpr(x_95); -lean_ctor_set_tag(x_65, 6); -lean_ctor_set(x_65, 1, x_101); -lean_ctor_set_tag(x_61, 6); -lean_ctor_set(x_61, 1, x_98); -lean_ctor_set(x_61, 0, x_65); -x_102 = l_Lean_indentD(x_61); -x_103 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_102); -lean_ctor_set(x_57, 0, x_103); -x_104 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_105 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_105, 0, x_57); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_MessageData_ofExpr(x_71); +lean_ctor_set(x_67, 1, x_103); +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_100); +lean_ctor_set(x_63, 0, x_67); +x_104 = l_Lean_indentD(x_63); +x_105 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_104); +lean_ctor_set(x_59, 0, x_105); +x_106 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; x_107 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_107, 0, x_98); +lean_ctor_set(x_107, 0, x_59); lean_ctor_set(x_107, 1, x_106); -x_108 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_100); -x_109 = l_Lean_MessageData_ofExpr(x_96); +x_108 = l_Lean_MessageData_ofExpr(x_73); +x_109 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_109, 0, x_100); +lean_ctor_set(x_109, 1, x_108); x_110 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_98); -x_112 = l_Lean_indentD(x_111); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_102); +x_111 = l_Lean_MessageData_ofExpr(x_98); +x_112 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); x_113 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_113, 0, x_105); -lean_ctor_set(x_113, 1, x_112); -x_114 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_98); -lean_ctor_set(x_72, 0, x_114); -return x_72; +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_100); +x_114 = l_Lean_indentD(x_113); +x_115 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_115, 0, x_107); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_100); +lean_ctor_set(x_74, 0, x_116); +return x_74; } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_115 = lean_ctor_get(x_72, 0); -x_116 = lean_ctor_get(x_72, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_72); -x_117 = lean_ctor_get(x_115, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_115, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_117 = lean_ctor_get(x_74, 0); +x_118 = lean_ctor_get(x_74, 1); lean_inc(x_118); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_119 = x_115; +lean_inc(x_117); +lean_dec(x_74); +x_119 = lean_ctor_get(x_117, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_117, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_121 = x_117; } else { - lean_dec_ref(x_115); - x_119 = lean_box(0); + lean_dec_ref(x_117); + x_121 = lean_box(0); } -x_120 = l_Lean_MessageData_ofExpr(x_70); -x_121 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(6, 2, 0); +x_122 = l_Lean_MessageData_ofExpr(x_72); +x_123 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +if (lean_is_scalar(x_121)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_119; - lean_ctor_set_tag(x_122, 6); + x_124 = x_121; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +lean_ctor_set_tag(x_69, 6); +lean_ctor_set(x_69, 1, x_125); +lean_ctor_set(x_69, 0, x_124); +x_126 = l_Lean_MessageData_ofExpr(x_119); lean_ctor_set_tag(x_67, 6); -lean_ctor_set(x_67, 1, x_123); -lean_ctor_set(x_67, 0, x_122); -x_124 = l_Lean_MessageData_ofExpr(x_117); -lean_ctor_set_tag(x_65, 6); -lean_ctor_set(x_65, 1, x_124); -lean_ctor_set_tag(x_61, 6); -lean_ctor_set(x_61, 1, x_121); -lean_ctor_set(x_61, 0, x_65); -x_125 = l_Lean_indentD(x_61); -x_126 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_125); -lean_ctor_set(x_57, 0, x_126); -x_127 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_128 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_128, 0, x_57); -lean_ctor_set(x_128, 1, x_127); -x_129 = l_Lean_MessageData_ofExpr(x_71); +lean_ctor_set(x_67, 1, x_126); +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_123); +lean_ctor_set(x_63, 0, x_67); +x_127 = l_Lean_indentD(x_63); +x_128 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_127); +lean_ctor_set(x_59, 0, x_128); +x_129 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; x_130 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_130, 0, x_121); +lean_ctor_set(x_130, 0, x_59); lean_ctor_set(x_130, 1, x_129); -x_131 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_123); -x_132 = l_Lean_MessageData_ofExpr(x_118); +x_131 = l_Lean_MessageData_ofExpr(x_73); +x_132 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_132, 0, x_123); +lean_ctor_set(x_132, 1, x_131); x_133 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_121); -x_135 = l_Lean_indentD(x_134); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_125); +x_134 = l_Lean_MessageData_ofExpr(x_120); +x_135 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); x_136 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_136, 0, x_128); -lean_ctor_set(x_136, 1, x_135); -x_137 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_121); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_116); -return x_138; +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_123); +x_137 = l_Lean_indentD(x_136); +x_138 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_138, 0, x_130); +lean_ctor_set(x_138, 1, x_137); +x_139 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_123); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_118); +return x_140; } } else { -lean_object* x_139; lean_object* x_140; -lean_free_object(x_67); -lean_dec(x_71); -lean_dec(x_70); -lean_free_object(x_65); -lean_free_object(x_61); -lean_free_object(x_57); -x_139 = lean_ctor_get(x_72, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_72, 1); -lean_inc(x_140); +lean_object* x_141; lean_object* x_142; +lean_free_object(x_69); +lean_dec(x_73); lean_dec(x_72); -x_8 = x_139; -x_9 = x_140; -goto block_56; -} -} -else -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_141 = lean_ctor_get(x_65, 1); -x_142 = lean_ctor_get(x_67, 0); -x_143 = lean_ctor_get(x_67, 1); -lean_inc(x_143); +lean_free_object(x_67); +lean_free_object(x_63); +lean_free_object(x_59); +x_141 = lean_ctor_get(x_74, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_74, 1); lean_inc(x_142); -lean_dec(x_67); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_144 = l_Lean_Meta_addPPExplicitToExposeDiff(x_59, x_63, x_3, x_4, x_5, x_6, x_141); -if (lean_obj_tag(x_144) == 0) +lean_dec(x_74); +x_8 = x_141; +x_9 = x_142; +goto block_58; +} +} +else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_145 = lean_ctor_get(x_144, 0); +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_143 = lean_ctor_get(x_67, 1); +x_144 = lean_ctor_get(x_69, 0); +x_145 = lean_ctor_get(x_69, 1); lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; -} else { - lean_dec_ref(x_144); - x_147 = lean_box(0); -} -x_148 = lean_ctor_get(x_145, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_145, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_150 = x_145; -} else { - lean_dec_ref(x_145); - x_150 = lean_box(0); -} -x_151 = l_Lean_MessageData_ofExpr(x_142); -x_152 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -if (lean_is_scalar(x_150)) { - x_153 = lean_alloc_ctor(6, 2, 0); -} else { - x_153 = x_150; - lean_ctor_set_tag(x_153, 6); -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_151); -x_154 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; -x_155 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -x_156 = l_Lean_MessageData_ofExpr(x_148); -lean_ctor_set_tag(x_65, 6); -lean_ctor_set(x_65, 1, x_156); -lean_ctor_set(x_65, 0, x_155); -lean_ctor_set_tag(x_61, 6); -lean_ctor_set(x_61, 1, x_152); -lean_ctor_set(x_61, 0, x_65); -x_157 = l_Lean_indentD(x_61); -x_158 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_157); -lean_ctor_set(x_57, 0, x_158); -x_159 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_160 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_160, 0, x_57); -lean_ctor_set(x_160, 1, x_159); -x_161 = l_Lean_MessageData_ofExpr(x_143); -x_162 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_162, 0, x_152); -lean_ctor_set(x_162, 1, x_161); -x_163 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_154); -x_164 = l_Lean_MessageData_ofExpr(x_149); -x_165 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -x_166 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_152); -x_167 = l_Lean_indentD(x_166); -x_168 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_168, 0, x_160); -lean_ctor_set(x_168, 1, x_167); -x_169 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_152); -if (lean_is_scalar(x_147)) { - x_170 = lean_alloc_ctor(0, 2, 0); -} else { - x_170 = x_147; -} -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_146); -return x_170; -} -else -{ -lean_object* x_171; lean_object* x_172; -lean_dec(x_143); -lean_dec(x_142); -lean_free_object(x_65); -lean_free_object(x_61); -lean_free_object(x_57); -x_171 = lean_ctor_get(x_144, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_144, 1); -lean_inc(x_172); -lean_dec(x_144); -x_8 = x_171; -x_9 = x_172; -goto block_56; -} -} -} -else -{ -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 = lean_ctor_get(x_65, 0); -x_174 = lean_ctor_get(x_65, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_65); -x_175 = lean_ctor_get(x_173, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_173, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_177 = x_173; -} else { - lean_dec_ref(x_173); - x_177 = lean_box(0); -} +lean_inc(x_144); +lean_dec(x_69); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_178 = l_Lean_Meta_addPPExplicitToExposeDiff(x_59, x_63, x_3, x_4, x_5, x_6, x_174); -if (lean_obj_tag(x_178) == 0) +x_146 = l_Lean_Meta_addPPExplicitToExposeDiff(x_61, x_65, x_3, x_4, x_5, x_6, x_143); +if (lean_obj_tag(x_146) == 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; 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_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_181 = x_178; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_149 = x_146; } else { - lean_dec_ref(x_178); - x_181 = lean_box(0); + lean_dec_ref(x_146); + x_149 = lean_box(0); } -x_182 = lean_ctor_get(x_179, 0); +x_150 = lean_ctor_get(x_147, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_147, 1); +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 = l_Lean_MessageData_ofExpr(x_144); +x_154 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +if (lean_is_scalar(x_152)) { + x_155 = lean_alloc_ctor(6, 2, 0); +} else { + x_155 = x_152; + lean_ctor_set_tag(x_155, 6); +} +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +x_156 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +x_157 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +x_158 = l_Lean_MessageData_ofExpr(x_150); +lean_ctor_set_tag(x_67, 6); +lean_ctor_set(x_67, 1, x_158); +lean_ctor_set(x_67, 0, x_157); +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_154); +lean_ctor_set(x_63, 0, x_67); +x_159 = l_Lean_indentD(x_63); +x_160 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_159); +lean_ctor_set(x_59, 0, x_160); +x_161 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_162 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_162, 0, x_59); +lean_ctor_set(x_162, 1, x_161); +x_163 = l_Lean_MessageData_ofExpr(x_145); +x_164 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_164, 0, x_154); +lean_ctor_set(x_164, 1, x_163); +x_165 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_156); +x_166 = l_Lean_MessageData_ofExpr(x_151); +x_167 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_154); +x_169 = l_Lean_indentD(x_168); +x_170 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_170, 0, x_162); +lean_ctor_set(x_170, 1, x_169); +x_171 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_154); +if (lean_is_scalar(x_149)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_149; +} +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_148); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_145); +lean_dec(x_144); +lean_free_object(x_67); +lean_free_object(x_63); +lean_free_object(x_59); +x_173 = lean_ctor_get(x_146, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_146, 1); +lean_inc(x_174); +lean_dec(x_146); +x_8 = x_173; +x_9 = x_174; +goto block_58; +} +} +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_175 = lean_ctor_get(x_67, 0); +x_176 = lean_ctor_get(x_67, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_67); +x_177 = lean_ctor_get(x_175, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_179 = x_175; +} else { + lean_dec_ref(x_175); + x_179 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_180 = l_Lean_Meta_addPPExplicitToExposeDiff(x_61, x_65, x_3, x_4, x_5, x_6, x_176); +if (lean_obj_tag(x_180) == 0) +{ +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; 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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); lean_inc(x_182); -x_183 = lean_ctor_get(x_179, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_184 = x_179; +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_183 = x_180; } else { - lean_dec_ref(x_179); - x_184 = lean_box(0); + lean_dec_ref(x_180); + x_183 = lean_box(0); } -x_185 = l_Lean_MessageData_ofExpr(x_175); -x_186 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -if (lean_is_scalar(x_184)) { - x_187 = lean_alloc_ctor(6, 2, 0); +x_184 = lean_ctor_get(x_181, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_181, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_186 = x_181; } else { - x_187 = x_184; - lean_ctor_set_tag(x_187, 6); + lean_dec_ref(x_181); + x_186 = lean_box(0); } -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_185); -x_188 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; -if (lean_is_scalar(x_177)) { +x_187 = l_Lean_MessageData_ofExpr(x_177); +x_188 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +if (lean_is_scalar(x_186)) { x_189 = lean_alloc_ctor(6, 2, 0); } else { - x_189 = x_177; + x_189 = x_186; lean_ctor_set_tag(x_189, 6); } -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -x_190 = l_Lean_MessageData_ofExpr(x_182); -x_191 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +if (lean_is_scalar(x_179)) { + x_191 = lean_alloc_ctor(6, 2, 0); +} else { + x_191 = x_179; + lean_ctor_set_tag(x_191, 6); +} lean_ctor_set(x_191, 0, x_189); lean_ctor_set(x_191, 1, x_190); -lean_ctor_set_tag(x_61, 6); -lean_ctor_set(x_61, 1, x_186); -lean_ctor_set(x_61, 0, x_191); -x_192 = l_Lean_indentD(x_61); -x_193 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_192); -lean_ctor_set(x_57, 0, x_193); -x_194 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_195 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_195, 0, x_57); -lean_ctor_set(x_195, 1, x_194); -x_196 = l_Lean_MessageData_ofExpr(x_176); +x_192 = l_Lean_MessageData_ofExpr(x_184); +x_193 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_188); +lean_ctor_set(x_63, 0, x_193); +x_194 = l_Lean_indentD(x_63); +x_195 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_194); +lean_ctor_set(x_59, 0, x_195); +x_196 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; x_197 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_197, 0, x_186); +lean_ctor_set(x_197, 0, x_59); lean_ctor_set(x_197, 1, x_196); -x_198 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_188); -x_199 = l_Lean_MessageData_ofExpr(x_183); +x_198 = l_Lean_MessageData_ofExpr(x_178); +x_199 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_199, 0, x_188); +lean_ctor_set(x_199, 1, x_198); x_200 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -x_201 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_186); -x_202 = l_Lean_indentD(x_201); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_190); +x_201 = l_Lean_MessageData_ofExpr(x_185); +x_202 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_201); x_203 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_203, 0, x_195); -lean_ctor_set(x_203, 1, x_202); -x_204 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_186); -if (lean_is_scalar(x_181)) { - x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_188); +x_204 = l_Lean_indentD(x_203); +x_205 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_205, 0, x_197); +lean_ctor_set(x_205, 1, x_204); +x_206 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_188); +if (lean_is_scalar(x_183)) { + x_207 = lean_alloc_ctor(0, 2, 0); } else { - x_205 = x_181; -} -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_180); -return x_205; -} -else -{ -lean_object* x_206; lean_object* x_207; -lean_dec(x_177); -lean_dec(x_176); -lean_dec(x_175); -lean_free_object(x_61); -lean_free_object(x_57); -x_206 = lean_ctor_get(x_178, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_178, 1); -lean_inc(x_207); -lean_dec(x_178); -x_8 = x_206; -x_9 = x_207; -goto block_56; -} + x_207 = x_183; } +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_182); +return x_207; } else { lean_object* x_208; lean_object* x_209; -lean_free_object(x_61); -lean_dec(x_63); -lean_free_object(x_57); -lean_dec(x_59); -x_208 = lean_ctor_get(x_65, 0); +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_free_object(x_63); +lean_free_object(x_59); +x_208 = lean_ctor_get(x_180, 0); lean_inc(x_208); -x_209 = lean_ctor_get(x_65, 1); +x_209 = lean_ctor_get(x_180, 1); lean_inc(x_209); -lean_dec(x_65); +lean_dec(x_180); x_8 = x_208; x_9 = x_209; -goto block_56; +goto block_58; +} } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_61, 0); -x_211 = lean_ctor_get(x_61, 1); -lean_inc(x_211); -lean_inc(x_210); +lean_object* x_210; lean_object* x_211; +lean_free_object(x_63); +lean_dec(x_65); +lean_free_object(x_59); lean_dec(x_61); +x_210 = lean_ctor_get(x_67, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_67, 1); +lean_inc(x_211); +lean_dec(x_67); +x_8 = x_210; +x_9 = x_211; +goto block_58; +} +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_63, 0); +x_213 = lean_ctor_get(x_63, 1); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_63); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_212 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_211); -if (lean_obj_tag(x_212) == 0) +x_214 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_213); +if (lean_obj_tag(x_214) == 0) { -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; -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_215 = x_212; -} else { - lean_dec_ref(x_212); - x_215 = lean_box(0); -} -x_216 = lean_ctor_get(x_213, 0); +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_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); lean_inc(x_216); -x_217 = lean_ctor_get(x_213, 1); -lean_inc(x_217); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_218 = x_213; +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_217 = x_214; } else { - lean_dec_ref(x_213); - x_218 = lean_box(0); + lean_dec_ref(x_214); + x_217 = lean_box(0); +} +x_218 = lean_ctor_get(x_215, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_215, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_220 = x_215; +} else { + lean_dec_ref(x_215); + x_220 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_219 = l_Lean_Meta_addPPExplicitToExposeDiff(x_59, x_210, x_3, x_4, x_5, x_6, x_214); -if (lean_obj_tag(x_219) == 0) +x_221 = l_Lean_Meta_addPPExplicitToExposeDiff(x_61, x_212, x_3, x_4, x_5, x_6, x_216); +if (lean_obj_tag(x_221) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 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_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -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_223 = lean_ctor_get(x_220, 0); +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); lean_inc(x_223); -x_224 = lean_ctor_get(x_220, 1); -lean_inc(x_224); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_225 = x_220; +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_224 = x_221; } else { - lean_dec_ref(x_220); - x_225 = lean_box(0); + lean_dec_ref(x_221); + x_224 = lean_box(0); } -x_226 = l_Lean_MessageData_ofExpr(x_216); -x_227 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -if (lean_is_scalar(x_225)) { - x_228 = lean_alloc_ctor(6, 2, 0); +x_225 = lean_ctor_get(x_222, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_222, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_227 = x_222; } else { - x_228 = x_225; - lean_ctor_set_tag(x_228, 6); + lean_dec_ref(x_222); + x_227 = lean_box(0); } -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -x_229 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; -if (lean_is_scalar(x_218)) { +x_228 = l_Lean_MessageData_ofExpr(x_218); +x_229 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +if (lean_is_scalar(x_227)) { x_230 = lean_alloc_ctor(6, 2, 0); } else { - x_230 = x_218; + x_230 = x_227; lean_ctor_set_tag(x_230, 6); } -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -x_231 = l_Lean_MessageData_ofExpr(x_223); -if (lean_is_scalar(x_215)) { +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +x_231 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +if (lean_is_scalar(x_220)) { x_232 = lean_alloc_ctor(6, 2, 0); } else { - x_232 = x_215; + x_232 = x_220; lean_ctor_set_tag(x_232, 6); } lean_ctor_set(x_232, 0, x_230); lean_ctor_set(x_232, 1, x_231); -x_233 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_227); -x_234 = l_Lean_indentD(x_233); -x_235 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_57, 6); -lean_ctor_set(x_57, 1, x_234); -lean_ctor_set(x_57, 0, x_235); -x_236 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_237 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_237, 0, x_57); -lean_ctor_set(x_237, 1, x_236); -x_238 = l_Lean_MessageData_ofExpr(x_217); -x_239 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_239, 0, x_227); -lean_ctor_set(x_239, 1, x_238); -x_240 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_229); -x_241 = l_Lean_MessageData_ofExpr(x_224); -x_242 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_242, 0, x_240); -lean_ctor_set(x_242, 1, x_241); -x_243 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_227); -x_244 = l_Lean_indentD(x_243); -x_245 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_245, 0, x_237); -lean_ctor_set(x_245, 1, x_244); -x_246 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_227); -if (lean_is_scalar(x_222)) { - x_247 = lean_alloc_ctor(0, 2, 0); +x_233 = l_Lean_MessageData_ofExpr(x_225); +if (lean_is_scalar(x_217)) { + x_234 = lean_alloc_ctor(6, 2, 0); } else { - x_247 = x_222; + x_234 = x_217; + lean_ctor_set_tag(x_234, 6); } -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_221); -return x_247; -} -else -{ -lean_object* x_248; lean_object* x_249; -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_free_object(x_57); -x_248 = lean_ctor_get(x_219, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_219, 1); -lean_inc(x_249); -lean_dec(x_219); -x_8 = x_248; -x_9 = x_249; -goto block_56; +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +x_235 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_229); +x_236 = l_Lean_indentD(x_235); +x_237 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_59, 6); +lean_ctor_set(x_59, 1, x_236); +lean_ctor_set(x_59, 0, x_237); +x_238 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_239 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_239, 0, x_59); +lean_ctor_set(x_239, 1, x_238); +x_240 = l_Lean_MessageData_ofExpr(x_219); +x_241 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_241, 0, x_229); +lean_ctor_set(x_241, 1, x_240); +x_242 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_231); +x_243 = l_Lean_MessageData_ofExpr(x_226); +x_244 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +x_245 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_229); +x_246 = l_Lean_indentD(x_245); +x_247 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_247, 0, x_239); +lean_ctor_set(x_247, 1, x_246); +x_248 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_229); +if (lean_is_scalar(x_224)) { + x_249 = lean_alloc_ctor(0, 2, 0); +} else { + x_249 = x_224; } +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_223); +return x_249; } else { lean_object* x_250; lean_object* x_251; -lean_dec(x_210); -lean_free_object(x_57); -lean_dec(x_59); -x_250 = lean_ctor_get(x_212, 0); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_218); +lean_dec(x_217); +lean_free_object(x_59); +x_250 = lean_ctor_get(x_221, 0); lean_inc(x_250); -x_251 = lean_ctor_get(x_212, 1); +x_251 = lean_ctor_get(x_221, 1); lean_inc(x_251); -lean_dec(x_212); +lean_dec(x_221); x_8 = x_250; x_9 = x_251; -goto block_56; -} +goto block_58; } } else { lean_object* x_252; lean_object* x_253; -lean_free_object(x_57); -lean_dec(x_59); -x_252 = lean_ctor_get(x_61, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_61, 1); -lean_inc(x_253); +lean_dec(x_212); +lean_free_object(x_59); lean_dec(x_61); +x_252 = lean_ctor_get(x_214, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_214, 1); +lean_inc(x_253); +lean_dec(x_214); x_8 = x_252; x_9 = x_253; -goto block_56; +goto block_58; +} } } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_57, 0); -x_255 = lean_ctor_get(x_57, 1); -lean_inc(x_255); +lean_object* x_254; lean_object* x_255; +lean_free_object(x_59); +lean_dec(x_61); +x_254 = lean_ctor_get(x_63, 0); lean_inc(x_254); -lean_dec(x_57); +x_255 = lean_ctor_get(x_63, 1); +lean_inc(x_255); +lean_dec(x_63); +x_8 = x_254; +x_9 = x_255; +goto block_58; +} +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_59, 0); +x_257 = lean_ctor_get(x_59, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_59); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_256 = lean_infer_type(x_2, x_3, x_4, x_5, x_6, x_255); -if (lean_obj_tag(x_256) == 0) +x_258 = lean_infer_type(x_2, x_3, x_4, x_5, x_6, x_257); +if (lean_obj_tag(x_258) == 0) { -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - lean_ctor_release(x_256, 1); - x_259 = x_256; +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_261 = x_258; } else { - lean_dec_ref(x_256); - x_259 = lean_box(0); + lean_dec_ref(x_258); + x_261 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); @@ -4670,364 +4569,383 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_260 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_258); -if (lean_obj_tag(x_260) == 0) +x_262 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_260); +if (lean_obj_tag(x_262) == 0) { -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; -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - lean_ctor_release(x_260, 1); - x_263 = x_260; -} else { - lean_dec_ref(x_260); - x_263 = lean_box(0); -} -x_264 = lean_ctor_get(x_261, 0); +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; +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); lean_inc(x_264); -x_265 = lean_ctor_get(x_261, 1); -lean_inc(x_265); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_266 = x_261; +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_265 = x_262; } else { - lean_dec_ref(x_261); - x_266 = lean_box(0); + lean_dec_ref(x_262); + x_265 = lean_box(0); +} +x_266 = lean_ctor_get(x_263, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_263, 1); +lean_inc(x_267); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_268 = x_263; +} else { + lean_dec_ref(x_263); + x_268 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_267 = l_Lean_Meta_addPPExplicitToExposeDiff(x_254, x_257, x_3, x_4, x_5, x_6, x_262); -if (lean_obj_tag(x_267) == 0) +x_269 = l_Lean_Meta_addPPExplicitToExposeDiff(x_256, x_259, x_3, x_4, x_5, x_6, x_264); +if (lean_obj_tag(x_269) == 0) { -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_268 = lean_ctor_get(x_267, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_267)) { - lean_ctor_release(x_267, 0); - lean_ctor_release(x_267, 1); - x_270 = x_267; -} else { - lean_dec_ref(x_267); - x_270 = lean_box(0); -} -x_271 = lean_ctor_get(x_268, 0); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); lean_inc(x_271); -x_272 = lean_ctor_get(x_268, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_273 = x_268; +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_272 = x_269; } else { - lean_dec_ref(x_268); - x_273 = lean_box(0); + lean_dec_ref(x_269); + x_272 = lean_box(0); } -x_274 = l_Lean_MessageData_ofExpr(x_264); -x_275 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -if (lean_is_scalar(x_273)) { - x_276 = lean_alloc_ctor(6, 2, 0); +x_273 = lean_ctor_get(x_270, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_270, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_275 = x_270; } else { - x_276 = x_273; - lean_ctor_set_tag(x_276, 6); + lean_dec_ref(x_270); + x_275 = lean_box(0); } -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_274); -x_277 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; -if (lean_is_scalar(x_266)) { +x_276 = l_Lean_MessageData_ofExpr(x_266); +x_277 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +if (lean_is_scalar(x_275)) { x_278 = lean_alloc_ctor(6, 2, 0); } else { - x_278 = x_266; + x_278 = x_275; lean_ctor_set_tag(x_278, 6); } -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -x_279 = l_Lean_MessageData_ofExpr(x_271); -if (lean_is_scalar(x_263)) { +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_276); +x_279 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__4; +if (lean_is_scalar(x_268)) { x_280 = lean_alloc_ctor(6, 2, 0); } else { - x_280 = x_263; + x_280 = x_268; lean_ctor_set_tag(x_280, 6); } lean_ctor_set(x_280, 0, x_278); lean_ctor_set(x_280, 1, x_279); -if (lean_is_scalar(x_259)) { - x_281 = lean_alloc_ctor(6, 2, 0); +x_281 = l_Lean_MessageData_ofExpr(x_273); +if (lean_is_scalar(x_265)) { + x_282 = lean_alloc_ctor(6, 2, 0); } else { - x_281 = x_259; - lean_ctor_set_tag(x_281, 6); + x_282 = x_265; + lean_ctor_set_tag(x_282, 6); } -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_275); -x_282 = l_Lean_indentD(x_281); -x_283 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -x_284 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_282); -x_285 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +lean_ctor_set(x_282, 0, x_280); +lean_ctor_set(x_282, 1, x_281); +if (lean_is_scalar(x_261)) { + x_283 = lean_alloc_ctor(6, 2, 0); +} else { + x_283 = x_261; + lean_ctor_set_tag(x_283, 6); +} +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_277); +x_284 = l_Lean_indentD(x_283); +x_285 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; x_286 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_286, 0, x_284); -lean_ctor_set(x_286, 1, x_285); -x_287 = l_Lean_MessageData_ofExpr(x_265); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_284); +x_287 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; x_288 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_288, 0, x_275); +lean_ctor_set(x_288, 0, x_286); lean_ctor_set(x_288, 1, x_287); -x_289 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_277); -x_290 = l_Lean_MessageData_ofExpr(x_272); +x_289 = l_Lean_MessageData_ofExpr(x_267); +x_290 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_290, 0, x_277); +lean_ctor_set(x_290, 1, x_289); x_291 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_291, 0, x_289); -lean_ctor_set(x_291, 1, x_290); -x_292 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_292, 0, x_291); -lean_ctor_set(x_292, 1, x_275); -x_293 = l_Lean_indentD(x_292); +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_279); +x_292 = l_Lean_MessageData_ofExpr(x_274); +x_293 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_293, 0, x_291); +lean_ctor_set(x_293, 1, x_292); x_294 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_294, 0, x_286); -lean_ctor_set(x_294, 1, x_293); -x_295 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_275); -if (lean_is_scalar(x_270)) { - x_296 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_294, 0, x_293); +lean_ctor_set(x_294, 1, x_277); +x_295 = l_Lean_indentD(x_294); +x_296 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_296, 0, x_288); +lean_ctor_set(x_296, 1, x_295); +x_297 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_277); +if (lean_is_scalar(x_272)) { + x_298 = lean_alloc_ctor(0, 2, 0); } else { - x_296 = x_270; -} -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_269); -return x_296; -} -else -{ -lean_object* x_297; lean_object* x_298; -lean_dec(x_266); -lean_dec(x_265); -lean_dec(x_264); -lean_dec(x_263); -lean_dec(x_259); -x_297 = lean_ctor_get(x_267, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_267, 1); -lean_inc(x_298); -lean_dec(x_267); -x_8 = x_297; -x_9 = x_298; -goto block_56; + x_298 = x_272; } +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_271); +return x_298; } else { lean_object* x_299; lean_object* x_300; -lean_dec(x_259); -lean_dec(x_257); -lean_dec(x_254); -x_299 = lean_ctor_get(x_260, 0); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_261); +x_299 = lean_ctor_get(x_269, 0); lean_inc(x_299); -x_300 = lean_ctor_get(x_260, 1); +x_300 = lean_ctor_get(x_269, 1); lean_inc(x_300); -lean_dec(x_260); +lean_dec(x_269); x_8 = x_299; x_9 = x_300; -goto block_56; +goto block_58; } } else { lean_object* x_301; lean_object* x_302; -lean_dec(x_254); -x_301 = lean_ctor_get(x_256, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_256, 1); -lean_inc(x_302); +lean_dec(x_261); +lean_dec(x_259); lean_dec(x_256); +x_301 = lean_ctor_get(x_262, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_262, 1); +lean_inc(x_302); +lean_dec(x_262); x_8 = x_301; x_9 = x_302; -goto block_56; -} +goto block_58; } } else { lean_object* x_303; lean_object* x_304; -x_303 = lean_ctor_get(x_57, 0); +lean_dec(x_256); +x_303 = lean_ctor_get(x_258, 0); lean_inc(x_303); -x_304 = lean_ctor_get(x_57, 1); +x_304 = lean_ctor_get(x_258, 1); lean_inc(x_304); -lean_dec(x_57); +lean_dec(x_258); x_8 = x_303; x_9 = x_304; -goto block_56; +goto block_58; } -block_56: +} +} +else +{ +lean_object* x_305; lean_object* x_306; +x_305 = lean_ctor_get(x_59, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_59, 1); +lean_inc(x_306); +lean_dec(x_59); +x_8 = x_305; +x_9 = x_306; +goto block_58; +} +block_58: { uint8_t x_10; -x_10 = l_Lean_Exception_isRuntime(x_8); +x_10 = l_Lean_Exception_isInterrupt(x_8); if (x_10 == 0) { -lean_object* x_11; +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_dec(x_8); -x_11 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_9); -if (lean_obj_tag(x_11) == 0) +x_12 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_9); +if (lean_obj_tag(x_12) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_11, 0); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 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_23; lean_object* x_24; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Lean_indentExpr(x_15); -x_18 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -lean_ctor_set_tag(x_13, 6); -lean_ctor_set(x_13, 1, x_17); -lean_ctor_set(x_13, 0, x_18); -x_19 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_20 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_20, 0, x_13); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_indentExpr(x_16); -x_22 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -x_24 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_11, 0, x_24); -return x_11; +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_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = l_Lean_indentExpr(x_16); +x_19 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +lean_ctor_set_tag(x_14, 6); +lean_ctor_set(x_14, 1, x_18); +lean_ctor_set(x_14, 0, x_19); +x_20 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_21 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Lean_indentExpr(x_17); +x_23 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +x_25 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_12, 0, x_25); +return x_12; } 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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_25 = lean_ctor_get(x_13, 0); -x_26 = lean_ctor_get(x_13, 1); +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; +x_26 = lean_ctor_get(x_14, 0); +x_27 = lean_ctor_get(x_14, 1); +lean_inc(x_27); lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_13); -x_27 = l_Lean_indentExpr(x_25); -x_28 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -x_29 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_31 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_indentExpr(x_26); -x_33 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -x_35 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_11, 0, x_35); -return x_11; +lean_dec(x_14); +x_28 = l_Lean_indentExpr(x_26); +x_29 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +x_30 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_32 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_indentExpr(x_27); +x_34 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +x_36 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_12, 0, x_36); +return x_12; } } 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; 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_36 = lean_ctor_get(x_11, 0); -x_37 = lean_ctor_get(x_11, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_11); -x_38 = lean_ctor_get(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; 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_37 = lean_ctor_get(x_12, 0); +x_38 = lean_ctor_get(x_12, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_12); +x_39 = lean_ctor_get(x_37, 0); lean_inc(x_39); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_40 = x_36; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_41 = x_37; } else { - lean_dec_ref(x_36); - x_40 = lean_box(0); + lean_dec_ref(x_37); + x_41 = lean_box(0); } -x_41 = l_Lean_indentExpr(x_38); -x_42 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; -if (lean_is_scalar(x_40)) { - x_43 = lean_alloc_ctor(6, 2, 0); +x_42 = l_Lean_indentExpr(x_39); +x_43 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2; +if (lean_is_scalar(x_41)) { + x_44 = lean_alloc_ctor(6, 2, 0); } else { - x_43 = x_40; - lean_ctor_set_tag(x_43, 6); + x_44 = x_41; + lean_ctor_set_tag(x_44, 6); } -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; -x_45 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_indentExpr(x_39); -x_47 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; -x_49 = lean_alloc_ctor(6, 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_37); -return x_50; +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__10; +x_46 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_indentExpr(x_40); +x_48 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__12; +x_50 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_38); +return x_51; } } else { -uint8_t x_51; -x_51 = !lean_is_exclusive(x_11); -if (x_51 == 0) +uint8_t x_52; +x_52 = !lean_is_exclusive(x_12); +if (x_52 == 0) { -return x_11; +return x_12; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_11, 0); -x_53 = lean_ctor_get(x_11, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_12, 0); +x_54 = lean_ctor_get(x_12, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_11); -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; +lean_dec(x_12); +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_55; +lean_object* x_56; 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_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_8); -lean_ctor_set(x_55, 1, x_9); -return x_55; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_8); +lean_ctor_set(x_56, 1, x_9); +return x_56; +} +} +else +{ +lean_object* x_57; +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_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_8); +lean_ctor_set(x_57, 1, x_9); +return x_57; } } } @@ -10037,80 +9955,84 @@ if (x_24 == 0) lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_19, 0); x_26 = lean_ctor_get(x_19, 1); -x_27 = l_Lean_Exception_isRuntime(x_25); +x_27 = l_Lean_Exception_isInterrupt(x_25); if (x_27 == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_free_object(x_19); lean_inc(x_2); -x_28 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_26); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_unbox(x_29); -lean_dec(x_29); -if (x_30 == 0) +x_29 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_26); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_unbox(x_30); +lean_dec(x_30); +if (x_31 == 0) { -uint8_t x_31; +uint8_t x_32; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_28); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_28, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_28, 1); -lean_ctor_set(x_28, 0, x_25); -return x_28; +lean_object* x_33; +x_33 = lean_ctor_get(x_29, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_29, 1); +lean_ctor_set(x_29, 0, x_25); +return x_29; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_25); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_25); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); -lean_dec(x_28); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_dec(x_29); lean_inc(x_25); -x_36 = l_Lean_Exception_toMessageData(x_25); -x_37 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_36, x_3, x_4, x_5, x_6, x_35); +x_37 = l_Lean_Exception_toMessageData(x_25); +x_38 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_37, x_3, x_4, x_5, x_6, x_36); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set_tag(x_37, 1); -lean_ctor_set(x_37, 0, x_25); -return x_37; +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +lean_ctor_set_tag(x_38, 1); +lean_ctor_set(x_38, 0, x_25); +return x_38; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_25); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_25); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } @@ -10126,279 +10048,329 @@ return x_19; } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_19, 0); -x_43 = lean_ctor_get(x_19, 1); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_19; +} +} +else +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_19, 0); +x_44 = lean_ctor_get(x_19, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_19); -x_44 = l_Lean_Exception_isRuntime(x_42); -if (x_44 == 0) +x_45 = l_Lean_Exception_isInterrupt(x_43); +if (x_45 == 0) { -lean_object* x_45; lean_object* x_46; uint8_t x_47; +uint8_t x_46; +x_46 = l_Lean_Exception_isRuntime(x_43); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_inc(x_2); -x_45 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_43); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -lean_dec(x_46); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_48 = lean_ctor_get(x_45, 1); +x_47 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_44); +x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_49 = x_45; -} else { - lean_dec_ref(x_45); - 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_tag(x_50, 1); -} -lean_ctor_set(x_50, 0, x_42); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -else +x_49 = lean_unbox(x_48); +lean_dec(x_48); +if (x_49 == 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; -x_51 = lean_ctor_get(x_45, 1); -lean_inc(x_51); -lean_dec(x_45); -lean_inc(x_42); -x_52 = l_Lean_Exception_toMessageData(x_42); -x_53 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_52, x_3, x_4, x_5, x_6, x_51); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(1, 2, 0); -} else { - x_56 = x_55; - lean_ctor_set_tag(x_56, 1); -} -lean_ctor_set(x_56, 0, x_42); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -else -{ -lean_object* x_57; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_42); -lean_ctor_set(x_57, 1, x_43); -return x_57; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_51 = x_47; +} else { + lean_dec_ref(x_47); + 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_tag(x_52, 1); +} +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +else +{ +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_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +lean_dec(x_47); +lean_inc(x_43); +x_54 = l_Lean_Exception_toMessageData(x_43); +x_55 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_54, x_3, x_4, x_5, x_6, x_53); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + 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_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_43); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_43); +lean_ctor_set(x_59, 1, x_44); +return x_59; +} +} +else +{ +lean_object* x_60; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_43); +lean_ctor_set(x_60, 1, x_44); +return x_60; } } } } else { -uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); -x_59 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); -x_60 = lean_ctor_get_uint8(x_8, 0); -x_61 = lean_ctor_get_uint8(x_8, 1); -x_62 = lean_ctor_get_uint8(x_8, 2); -x_63 = lean_ctor_get_uint8(x_8, 3); -x_64 = lean_ctor_get_uint8(x_8, 4); -x_65 = lean_ctor_get_uint8(x_8, 5); -x_66 = lean_ctor_get_uint8(x_8, 6); -x_67 = lean_ctor_get_uint8(x_8, 7); -x_68 = lean_ctor_get_uint8(x_8, 8); -x_69 = lean_ctor_get_uint8(x_8, 10); -x_70 = lean_ctor_get_uint8(x_8, 11); -x_71 = lean_ctor_get_uint8(x_8, 12); +uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_61 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_62 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); +x_63 = lean_ctor_get_uint8(x_8, 0); +x_64 = lean_ctor_get_uint8(x_8, 1); +x_65 = lean_ctor_get_uint8(x_8, 2); +x_66 = lean_ctor_get_uint8(x_8, 3); +x_67 = lean_ctor_get_uint8(x_8, 4); +x_68 = lean_ctor_get_uint8(x_8, 5); +x_69 = lean_ctor_get_uint8(x_8, 6); +x_70 = lean_ctor_get_uint8(x_8, 7); +x_71 = lean_ctor_get_uint8(x_8, 8); +x_72 = lean_ctor_get_uint8(x_8, 10); +x_73 = lean_ctor_get_uint8(x_8, 11); +x_74 = lean_ctor_get_uint8(x_8, 12); lean_dec(x_8); -x_72 = 0; -x_73 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_73, 0, x_60); -lean_ctor_set_uint8(x_73, 1, x_61); -lean_ctor_set_uint8(x_73, 2, x_62); -lean_ctor_set_uint8(x_73, 3, x_63); -lean_ctor_set_uint8(x_73, 4, x_64); -lean_ctor_set_uint8(x_73, 5, x_65); -lean_ctor_set_uint8(x_73, 6, x_66); -lean_ctor_set_uint8(x_73, 7, x_67); -lean_ctor_set_uint8(x_73, 8, x_68); -lean_ctor_set_uint8(x_73, 9, x_72); -lean_ctor_set_uint8(x_73, 10, x_69); -lean_ctor_set_uint8(x_73, 11, x_70); -lean_ctor_set_uint8(x_73, 12, x_71); -x_74 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_9); -lean_ctor_set(x_74, 2, x_10); -lean_ctor_set(x_74, 3, x_11); -lean_ctor_set(x_74, 4, x_12); -lean_ctor_set(x_74, 5, x_13); -lean_ctor_set_uint8(x_74, sizeof(void*)*6, x_58); -lean_ctor_set_uint8(x_74, sizeof(void*)*6 + 1, x_59); +x_75 = 0; +x_76 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_76, 0, x_63); +lean_ctor_set_uint8(x_76, 1, x_64); +lean_ctor_set_uint8(x_76, 2, x_65); +lean_ctor_set_uint8(x_76, 3, x_66); +lean_ctor_set_uint8(x_76, 4, x_67); +lean_ctor_set_uint8(x_76, 5, x_68); +lean_ctor_set_uint8(x_76, 6, x_69); +lean_ctor_set_uint8(x_76, 7, x_70); +lean_ctor_set_uint8(x_76, 8, x_71); +lean_ctor_set_uint8(x_76, 9, x_75); +lean_ctor_set_uint8(x_76, 10, x_72); +lean_ctor_set_uint8(x_76, 11, x_73); +lean_ctor_set_uint8(x_76, 12, x_74); +x_77 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_9); +lean_ctor_set(x_77, 2, x_10); +lean_ctor_set(x_77, 3, x_11); +lean_ctor_set(x_77, 4, x_12); +lean_ctor_set(x_77, 5, x_13); +lean_ctor_set_uint8(x_77, sizeof(void*)*6, x_61); +lean_ctor_set_uint8(x_77, sizeof(void*)*6 + 1, x_62); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_75 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_74, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_75) == 0) +x_78 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_77, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_78 = x_75; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; } else { - lean_dec_ref(x_75); - x_78 = lean_box(0); + lean_dec_ref(x_78); + x_81 = lean_box(0); } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_78; + x_82 = x_81; } -lean_ctor_set(x_79, 0, x_76); -lean_ctor_set(x_79, 1, x_77); -return x_79; +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = lean_ctor_get(x_75, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_75, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_82 = x_75; +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_ctor_get(x_78, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_85 = x_78; } else { - lean_dec_ref(x_75); - x_82 = lean_box(0); + lean_dec_ref(x_78); + x_85 = lean_box(0); } -x_83 = l_Lean_Exception_isRuntime(x_80); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; uint8_t x_86; -lean_dec(x_82); -lean_inc(x_2); -x_84 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_81); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_unbox(x_85); -lean_dec(x_85); +x_86 = l_Lean_Exception_isInterrupt(x_83); if (x_86 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; +uint8_t x_87; +x_87 = l_Lean_Exception_isRuntime(x_83); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; +lean_dec(x_85); +lean_inc(x_2); +x_88 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_3, x_4, x_5, x_6, x_84); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_unbox(x_89); +lean_dec(x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_88 = x_84; +x_91 = lean_ctor_get(x_88, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_92 = x_88; } else { - lean_dec_ref(x_84); - x_88 = lean_box(0); + lean_dec_ref(x_88); + x_92 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; - lean_ctor_set_tag(x_89, 1); + x_93 = x_92; + lean_ctor_set_tag(x_93, 1); } -lean_ctor_set(x_89, 0, x_80); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_93, 0, x_83); +lean_ctor_set(x_93, 1, x_91); +return x_93; } 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_84, 1); -lean_inc(x_90); -lean_dec(x_84); -lean_inc(x_80); -x_91 = l_Lean_Exception_toMessageData(x_80); -x_92 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_91, x_3, x_4, x_5, x_6, x_90); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_94 = lean_ctor_get(x_88, 1); +lean_inc(x_94); +lean_dec(x_88); +lean_inc(x_83); +x_95 = l_Lean_Exception_toMessageData(x_83); +x_96 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_2, x_95, x_3, x_4, x_5, x_6, x_94); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_94 = x_92; +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_98 = x_96; } else { - lean_dec_ref(x_92); - x_94 = lean_box(0); + lean_dec_ref(x_96); + x_98 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_94; - lean_ctor_set_tag(x_95, 1); + x_99 = x_98; + lean_ctor_set_tag(x_99, 1); } -lean_ctor_set(x_95, 0, x_80); -lean_ctor_set(x_95, 1, x_93); -return x_95; +lean_ctor_set(x_99, 0, x_83); +lean_ctor_set(x_99, 1, x_97); +return x_99; } } else { -lean_object* x_96; +lean_object* x_100; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_82)) { - x_96 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_85)) { + x_100 = lean_alloc_ctor(1, 2, 0); } else { - x_96 = x_82; + x_100 = x_85; } -lean_ctor_set(x_96, 0, x_80); -lean_ctor_set(x_96, 1, x_81); -return x_96; +lean_ctor_set(x_100, 0, x_83); +lean_ctor_set(x_100, 1, x_84); +return x_100; +} +} +else +{ +lean_object* x_101; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_85)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_85; +} +lean_ctor_set(x_101, 0, x_83); +lean_ctor_set(x_101, 1, x_84); +return x_101; } } } @@ -10596,15 +10568,19 @@ if (x_16 == 0) { lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_7, 0); -x_18 = l_Lean_Exception_isRuntime(x_17); +x_18 = l_Lean_Exception_isInterrupt(x_17); if (x_18 == 0) { -uint8_t x_19; lean_object* x_20; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_17); +if (x_19 == 0) +{ +uint8_t x_20; lean_object* x_21; lean_dec(x_17); -x_19 = 0; -x_20 = lean_box(x_19); +x_20 = 0; +x_21 = lean_box(x_20); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_20); +lean_ctor_set(x_7, 0, x_21); return x_7; } else @@ -10614,31 +10590,49 @@ return x_7; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_7, 0); +x_23 = lean_ctor_get(x_7, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); lean_dec(x_7); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) { -uint8_t x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -x_24 = 0; -x_25 = lean_box(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_22); -return x_26; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_22); +x_26 = 0; +x_27 = lean_box(x_26); +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 { -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_22); -return x_27; +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_23); +return x_29; +} +} +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); +return x_30; } } } diff --git a/stage0/stdlib/Lean/Meta/CheckTactic.c b/stage0/stdlib/Lean/Meta/CheckTactic.c index 1343ac4dd3..124f39b6af 100644 --- a/stage0/stdlib/Lean/Meta/CheckTactic.c +++ b/stage0/stdlib/Lean/Meta/CheckTactic.c @@ -205,7 +205,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -217,7 +217,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -230,28 +233,30 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Meta_CheckTactic_matchCheckGoalType___spec__2(x_2, x_3, x_4, x_25, x_6, x_7); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Meta_CheckTactic_matchCheckGoalType___spec__2(x_2, x_3, x_4, x_27, x_6, x_7); lean_dec(x_6); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } } diff --git a/stage0/stdlib/Lean/Meta/Coe.c b/stage0/stdlib/Lean/Meta/Coe.c index a2dcc0f7d9..52168441cd 100644 --- a/stage0/stdlib/Lean/Meta/Coe.c +++ b/stage0/stdlib/Lean/Meta/Coe.c @@ -27,6 +27,7 @@ static lean_object* l_Lean_Meta_coerceToFunction_x3f___closed__3; static lean_object* l_Lean_Meta_coerceMonadLift_x3f___closed__6; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_coerceSimple_x3f___closed__9; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_coerceSimple_x3f___closed__11; lean_object* l_Lean_mkAppB(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*); @@ -144,6 +145,7 @@ lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(l uint8_t l_Lean_Expr_isForall(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Coe___hyg_216____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_expandCoe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_coerceMonadLift_x3f___closed__18; static lean_object* l_Lean_Meta_coerceSimple_x3f___closed__2; static lean_object* l_Lean_Meta_expandCoe___closed__2; static lean_object* l_Lean_Meta_coerceMonadLift_x3f___closed__13; @@ -4866,9350 +4868,9360 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_coerceMonadLift_x3f___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +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; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_coerceMonadLift_x3f(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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); +lean_object* x_8; lean_object* x_9; lean_object* x_17; lean_object* x_18; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); +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); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_18 = lean_infer_type(x_1, x_3, x_4, x_5, x_6, x_17); -if (lean_obj_tag(x_18) == 0) +x_34 = lean_infer_type(x_1, x_3, x_4, x_5, x_6, x_33); +if (lean_obj_tag(x_34) == 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); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_19, x_3, x_4, x_5, x_6, x_20); -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); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_24 = l_Lean_Meta_isTypeApp_x3f(x_16, x_3, x_4, x_5, x_6, x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 0); -lean_dec(x_27); -x_28 = lean_box(0); -lean_ctor_set(x_24, 0, x_28); -return x_24; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = lean_box(0); -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; -x_32 = !lean_is_exclusive(x_25); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_25, 0); -x_34 = lean_ctor_get(x_24, 1); -lean_inc(x_34); -lean_dec(x_24); -x_35 = lean_ctor_get(x_33, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_33, 1); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -lean_dec(x_33); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_22); -x_37 = l_Lean_Meta_isTypeApp_x3f(x_22, x_3, x_4, x_5, x_6, x_34); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; +lean_dec(x_34); +x_37 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_35, x_3, x_4, x_5, x_6, x_36); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_40 = l_Lean_Meta_isTypeApp_x3f(x_32, x_3, x_4, x_5, x_6, x_39); +if (lean_obj_tag(x_40) == 0) { -uint8_t x_39; -lean_dec(x_36); -lean_dec(x_35); -lean_free_object(x_25); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) +x_42 = !lean_is_exclusive(x_40); +if (x_42 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 0); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 0); +lean_dec(x_43); +x_44 = lean_box(0); +lean_ctor_set(x_40, 0, x_44); +return x_40; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 1); +lean_inc(x_45); lean_dec(x_40); -x_41 = lean_box(0); -lean_ctor_set(x_37, 0, x_41); -return x_37; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -lean_dec(x_37); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } else { -uint8_t x_45; -x_45 = !lean_is_exclusive(x_38); -if (x_45 == 0) +uint8_t x_48; +x_48 = !lean_is_exclusive(x_41); +if (x_48 == 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_38, 0); -x_47 = lean_ctor_get(x_37, 1); -lean_inc(x_47); -lean_dec(x_37); -x_48 = lean_ctor_get(x_46, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); +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_41, 0); +x_50 = lean_ctor_get(x_40, 1); +lean_inc(x_50); +lean_dec(x_40); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_35); -lean_inc(x_48); -x_50 = l_Lean_Meta_isExprDefEq(x_48, x_35, x_3, x_4, x_5, x_6, x_47); -if (lean_obj_tag(x_50) == 0) +lean_inc(x_38); +x_53 = l_Lean_Meta_isTypeApp_x3f(x_38, x_3, x_4, x_5, x_6, x_50); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_51; uint8_t x_52; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_unbox(x_51); +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_55; +lean_dec(x_52); lean_dec(x_51); -if (x_52 == 0) -{ -uint8_t x_53; -lean_free_object(x_25); -x_53 = !lean_is_exclusive(x_50); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_54 = lean_ctor_get(x_50, 1); -x_55 = lean_ctor_get(x_50, 0); -lean_dec(x_55); -x_56 = lean_ctor_get(x_5, 2); -lean_inc(x_56); -x_57 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; -x_58 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_56, x_57); -lean_dec(x_56); -if (x_58 == 0) -{ -lean_object* x_59; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_free_object(x_41); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_59 = lean_box(0); -lean_ctor_set(x_50, 0, x_59); -return x_50; +x_55 = !lean_is_exclusive(x_53); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 0); +lean_dec(x_56); +x_57 = lean_box(0); +lean_ctor_set(x_53, 0, x_57); +return x_53; } else { -lean_object* x_60; -lean_free_object(x_50); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_53, 1); +lean_inc(x_58); +lean_dec(x_53); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +else +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_54); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_54, 0); +x_63 = lean_ctor_get(x_53, 1); +lean_inc(x_63); +lean_dec(x_53); +x_64 = !lean_is_exclusive(x_62); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_62, 0); +x_66 = lean_ctor_get(x_62, 1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_48); -x_60 = lean_infer_type(x_48, x_3, x_4, x_5, x_6, x_54); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_63 = lean_whnf(x_61, x_3, x_4, x_5, x_6, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -if (lean_obj_tag(x_64) == 7) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_51); lean_inc(x_65); -if (lean_obj_tag(x_65) == 3) +x_67 = l_Lean_Meta_isExprDefEq(x_65, x_51, x_3, x_4, x_5, x_6, x_63); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_66; -x_66 = lean_ctor_get(x_64, 2); -lean_inc(x_66); -lean_dec(x_64); -if (lean_obj_tag(x_66) == 3) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_63, 1); -lean_inc(x_67); -lean_dec(x_63); -x_68 = lean_ctor_get(x_65, 0); +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_65); -x_69 = lean_ctor_get(x_66, 0); -lean_inc(x_69); -lean_dec(x_66); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_70 = lean_infer_type(x_35, x_3, x_4, x_5, x_6, x_67); -if (lean_obj_tag(x_70) == 0) +x_69 = lean_unbox(x_68); +lean_dec(x_68); +if (x_69 == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_73 = lean_whnf(x_71, x_3, x_4, x_5, x_6, x_72); -if (lean_obj_tag(x_73) == 0) +uint8_t x_70; +lean_free_object(x_62); +lean_free_object(x_41); +x_70 = !lean_is_exclusive(x_67); +if (x_70 == 0) { -lean_object* x_74; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -if (lean_obj_tag(x_74) == 7) -{ -lean_object* x_75; -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -if (lean_obj_tag(x_75) == 3) +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = lean_ctor_get(x_67, 1); +x_72 = lean_ctor_get(x_67, 0); +lean_dec(x_72); +x_73 = lean_ctor_get(x_5, 2); +lean_inc(x_73); +x_74 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; +x_75 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_73, x_74); +lean_dec(x_73); +if (x_75 == 0) { lean_object* x_76; -x_76 = lean_ctor_get(x_74, 2); -lean_inc(x_76); -lean_dec(x_74); -if (lean_obj_tag(x_76) == 3) +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_76 = lean_box(0); +lean_ctor_set(x_67, 0, x_76); +return x_67; +} +else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_73, 1); -lean_inc(x_77); -lean_dec(x_73); -x_78 = lean_ctor_get(x_75, 0); -lean_inc(x_78); -lean_dec(x_75); -x_79 = lean_ctor_get(x_76, 0); -lean_inc(x_79); -lean_dec(x_76); +lean_object* x_77; +lean_free_object(x_67); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_80 = l_Lean_Meta_decLevel(x_68, x_3, x_4, x_5, x_6, x_77); +lean_inc(x_65); +x_77 = lean_infer_type(x_65, x_3, x_4, x_5, x_6, x_71); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_80 = lean_whnf(x_78, x_3, x_4, x_5, x_6, x_79); if (lean_obj_tag(x_80) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_object* x_81; x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); +if (lean_obj_tag(x_81) == 7) +{ +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 1); lean_inc(x_82); -lean_dec(x_80); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_83 = l_Lean_Meta_decLevel(x_78, x_3, x_4, x_5, x_6, x_82); -if (lean_obj_tag(x_83) == 0) +if (lean_obj_tag(x_82) == 3) { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_83); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_83, 0); -x_86 = lean_ctor_get(x_83, 1); -x_87 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_81); -x_88 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_81, x_85, x_87, x_3, x_4, x_5, x_6, x_86); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_unbox(x_89); -lean_dec(x_89); -if (x_90 == 0) -{ -uint8_t x_91; -lean_free_object(x_83); +lean_object* x_83; +x_83 = lean_ctor_get(x_81, 2); +lean_inc(x_83); lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_88); -if (x_91 == 0) +if (lean_obj_tag(x_83) == 3) { -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_88, 0); -lean_dec(x_92); -x_93 = lean_box(0); -lean_ctor_set(x_88, 0, x_93); -return x_88; -} -else +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_80, 1); +lean_inc(x_84); +lean_dec(x_80); +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +lean_dec(x_82); +x_86 = lean_ctor_get(x_83, 0); +lean_inc(x_86); +lean_dec(x_83); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_87 = lean_infer_type(x_51, x_3, x_4, x_5, x_6, x_84); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_88, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_90 = lean_whnf(x_88, x_3, x_4, x_5, x_6, x_89); +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) == 7) +{ +lean_object* x_92; +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_obj_tag(x_92) == 3) +{ +lean_object* x_93; +x_93 = lean_ctor_get(x_91, 2); +lean_inc(x_93); +lean_dec(x_91); +if (lean_obj_tag(x_93) == 3) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_94 = lean_ctor_get(x_90, 1); lean_inc(x_94); -lean_dec(x_88); -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_88, 1); -lean_inc(x_97); -lean_dec(x_88); +lean_dec(x_90); +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); +lean_dec(x_92); +x_96 = lean_ctor_get(x_93, 0); +lean_inc(x_96); +lean_dec(x_93); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_98 = l_Lean_Meta_decLevel(x_69, x_3, x_4, x_5, x_6, x_97); -if (lean_obj_tag(x_98) == 0) +x_97 = l_Lean_Meta_decLevel(x_85, x_3, x_4, x_5, x_6, x_94); +if (lean_obj_tag(x_97) == 0) { -uint8_t x_99; -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_102 = l_Lean_Meta_decLevel(x_79, x_3, x_4, x_5, x_6, x_101); -if (lean_obj_tag(x_102) == 0) +x_100 = l_Lean_Meta_decLevel(x_95, x_3, x_4, x_5, x_6, x_99); +if (lean_obj_tag(x_100) == 0) { -uint8_t x_103; -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +uint8_t x_101; +x_101 = !lean_is_exclusive(x_100); +if (x_101 == 0) { -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; -x_104 = lean_ctor_get(x_102, 1); -x_105 = lean_box(0); -lean_ctor_set_tag(x_102, 1); -lean_ctor_set(x_102, 1, x_105); -lean_ctor_set_tag(x_98, 1); -lean_ctor_set(x_98, 1, x_102); -lean_ctor_set_tag(x_83, 1); -lean_ctor_set(x_83, 1, x_98); -lean_ctor_set(x_83, 0, x_81); -x_106 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_107 = l_Lean_Expr_const___override(x_106, x_83); -x_108 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_48); -x_109 = lean_array_push(x_108, x_48); -lean_inc(x_35); -x_110 = lean_array_push(x_109, x_35); -x_111 = l_Lean_mkAppN(x_107, x_110); -x_112 = lean_box(0); +lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_100, 0); +x_103 = lean_ctor_get(x_100, 1); +x_104 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_113 = l_Lean_Meta_trySynthInstance(x_111, x_112, x_3, x_4, x_5, x_6, x_104); -if (lean_obj_tag(x_113) == 0) +lean_inc(x_98); +x_105 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_98, x_102, x_104, x_3, x_4, x_5, x_6, x_103); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_114; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -if (lean_obj_tag(x_114) == 1) +lean_object* x_106; uint8_t x_107; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_unbox(x_106); +lean_dec(x_106); +if (x_107 == 0) { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_ctor_get(x_114, 0); -lean_inc(x_116); -lean_dec(x_114); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_49); -x_117 = l_Lean_Meta_getDecLevel(x_49, x_3, x_4, x_5, x_6, x_115); -if (lean_obj_tag(x_117) == 0) -{ -uint8_t x_118; -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_121 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_120); -if (lean_obj_tag(x_121) == 0) -{ -uint8_t x_122; -x_122 = !lean_is_exclusive(x_121); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_121, 0); -x_124 = lean_ctor_get(x_121, 1); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_125 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_124); -if (lean_obj_tag(x_125) == 0) -{ -uint8_t x_126; -x_126 = !lean_is_exclusive(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; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_127 = lean_ctor_get(x_125, 1); -lean_ctor_set_tag(x_125, 1); -lean_ctor_set(x_125, 1, x_105); -lean_ctor_set_tag(x_121, 1); -lean_ctor_set(x_121, 1, x_125); -lean_ctor_set_tag(x_117, 1); -lean_ctor_set(x_117, 1, x_121); -x_128 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_117); -x_129 = l_Lean_Expr_const___override(x_128, x_117); -x_130 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_131 = lean_array_push(x_130, x_48); -lean_inc(x_35); -x_132 = lean_array_push(x_131, x_35); -lean_inc(x_116); -x_133 = lean_array_push(x_132, x_116); -lean_inc(x_49); -x_134 = lean_array_push(x_133, x_49); -lean_inc(x_1); -x_135 = lean_array_push(x_134, x_1); -x_136 = l_Lean_mkAppN(x_129, x_135); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_136); -x_137 = lean_infer_type(x_136, x_3, x_4, x_5, x_6, x_127); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec(x_137); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_140 = l_Lean_Meta_isExprDefEq(x_16, x_138, x_3, x_4, x_5, x_6, x_139); -if (lean_obj_tag(x_140) == 0) -{ -lean_object* x_141; uint8_t x_142; -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_unbox(x_141); -lean_dec(x_141); -if (x_142 == 0) -{ -lean_object* x_143; lean_object* x_144; -lean_dec(x_136); -lean_free_object(x_38); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec(x_140); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_144 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_143); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -if (lean_obj_tag(x_145) == 0) -{ -uint8_t x_146; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +uint8_t x_108; +lean_free_object(x_100); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_146 = !lean_is_exclusive(x_144); -if (x_146 == 0) +x_108 = !lean_is_exclusive(x_105); +if (x_108 == 0) { -lean_object* x_147; -x_147 = lean_ctor_get(x_144, 0); -lean_dec(x_147); -lean_ctor_set(x_144, 0, x_112); -return x_144; +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_105, 0); +lean_dec(x_109); +x_110 = lean_box(0); +lean_ctor_set(x_105, 0, x_110); +return x_105; } else { -lean_object* x_148; lean_object* x_149; -x_148 = lean_ctor_get(x_144, 1); -lean_inc(x_148); -lean_dec(x_144); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_112); -lean_ctor_set(x_149, 1, x_148); -return x_149; +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_105, 1); +lean_inc(x_111); +lean_dec(x_105); +x_112 = lean_box(0); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +return x_113; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_144, 1); -lean_inc(x_150); -lean_dec(x_144); -x_151 = lean_ctor_get(x_145, 0); -lean_inc(x_151); -lean_dec(x_145); +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_105, 1); +lean_inc(x_114); +lean_dec(x_105); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_152 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_150); -if (lean_obj_tag(x_152) == 0) +x_115 = l_Lean_Meta_decLevel(x_86, x_3, x_4, x_5, x_6, x_114); +if (lean_obj_tag(x_115) == 0) { -uint8_t x_153; -x_153 = !lean_is_exclusive(x_152); -if (x_153 == 0) +uint8_t x_116; +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) { -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_152, 0); -x_155 = lean_ctor_get(x_152, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_115, 0); +x_118 = lean_ctor_get(x_115, 1); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_36); -x_156 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_155); -if (lean_obj_tag(x_156) == 0) +x_119 = l_Lean_Meta_decLevel(x_96, x_3, x_4, x_5, x_6, x_118); +if (lean_obj_tag(x_119) == 0) { -uint8_t x_157; -x_157 = !lean_is_exclusive(x_156); -if (x_157 == 0) +uint8_t x_120; +x_120 = !lean_is_exclusive(x_119); +if (x_120 == 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_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; -x_158 = lean_ctor_get(x_156, 1); -lean_ctor_set_tag(x_156, 1); -lean_ctor_set(x_156, 1, x_105); -lean_ctor_set_tag(x_152, 1); -lean_ctor_set(x_152, 1, x_156); -x_159 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_160 = l_Lean_Expr_const___override(x_159, x_152); -x_161 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_162 = lean_array_push(x_161, x_49); -x_163 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_164 = lean_array_push(x_162, x_163); -lean_inc(x_36); -x_165 = lean_array_push(x_164, x_36); -x_166 = l_Lean_mkAppN(x_160, x_165); -x_167 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_168 = 0; -lean_inc(x_49); -x_169 = l_Lean_Expr_forallE___override(x_167, x_49, x_166, x_168); +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; +x_121 = lean_ctor_get(x_119, 1); +x_122 = lean_box(0); +lean_ctor_set_tag(x_119, 1); +lean_ctor_set(x_119, 1, x_122); +lean_ctor_set_tag(x_115, 1); +lean_ctor_set(x_115, 1, x_119); +lean_ctor_set_tag(x_100, 1); +lean_ctor_set(x_100, 1, x_115); +lean_ctor_set(x_100, 0, x_98); +x_123 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_124 = l_Lean_Expr_const___override(x_123, x_100); +x_125 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_65); +x_126 = lean_array_push(x_125, x_65); +lean_inc(x_51); +x_127 = lean_array_push(x_126, x_51); +x_128 = l_Lean_mkAppN(x_124, x_127); +x_129 = lean_box(0); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_170 = l_Lean_Meta_trySynthInstance(x_169, x_112, x_3, x_4, x_5, x_6, x_158); -if (lean_obj_tag(x_170) == 0) +x_130 = l_Lean_Meta_trySynthInstance(x_128, x_129, x_3, x_4, x_5, x_6, x_121); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_171; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -if (lean_obj_tag(x_171) == 1) +lean_object* x_131; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +if (lean_obj_tag(x_131) == 1) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_ctor_get(x_171, 0); -lean_inc(x_173); -lean_dec(x_171); -x_174 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_175 = l_Lean_Expr_const___override(x_174, x_117); -x_176 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_177 = lean_array_push(x_176, x_48); -x_178 = lean_array_push(x_177, x_35); -x_179 = lean_array_push(x_178, x_49); -x_180 = lean_array_push(x_179, x_36); -x_181 = lean_array_push(x_180, x_116); -x_182 = lean_array_push(x_181, x_173); -x_183 = lean_array_push(x_182, x_151); -x_184 = lean_array_push(x_183, x_1); -x_185 = l_Lean_mkAppN(x_175, x_184); +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +lean_dec(x_131); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_186 = l_Lean_Meta_expandCoe(x_185, x_3, x_4, x_5, x_6, x_172); -if (lean_obj_tag(x_186) == 0) +lean_inc(x_66); +x_134 = l_Lean_Meta_getDecLevel(x_66, x_3, x_4, x_5, x_6, x_132); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); +uint8_t x_135; +x_135 = !lean_is_exclusive(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_134, 0); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_138 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_137); +if (lean_obj_tag(x_138) == 0) +{ +uint8_t x_139; +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) +{ +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_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_142 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, 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; 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_144 = lean_ctor_get(x_142, 1); +lean_ctor_set_tag(x_142, 1); +lean_ctor_set(x_142, 1, x_122); +lean_ctor_set_tag(x_138, 1); +lean_ctor_set(x_138, 1, x_142); +lean_ctor_set_tag(x_134, 1); +lean_ctor_set(x_134, 1, x_138); +x_145 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_134); +x_146 = l_Lean_Expr_const___override(x_145, x_134); +x_147 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_148 = lean_array_push(x_147, x_65); +lean_inc(x_51); +x_149 = lean_array_push(x_148, x_51); +lean_inc(x_133); +x_150 = lean_array_push(x_149, x_133); +lean_inc(x_66); +x_151 = lean_array_push(x_150, x_66); +lean_inc(x_1); +x_152 = lean_array_push(x_151, x_1); +x_153 = l_Lean_mkAppN(x_146, x_152); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_153); +x_154 = lean_infer_type(x_153, x_3, x_4, x_5, x_6, x_144); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_157 = l_Lean_Meta_isExprDefEq(x_32, x_155, x_3, x_4, x_5, x_6, x_156); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; uint8_t x_159; +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_unbox(x_158); +lean_dec(x_158); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_153); +lean_free_object(x_54); +x_160 = lean_ctor_get(x_157, 1); +lean_inc(x_160); +lean_dec(x_157); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_161 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_160); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +if (lean_obj_tag(x_162) == 0) +{ +uint8_t x_163; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_163 = !lean_is_exclusive(x_161); +if (x_163 == 0) +{ +lean_object* x_164; +x_164 = lean_ctor_get(x_161, 0); +lean_dec(x_164); +lean_ctor_set(x_161, 0, x_129); +return x_161; +} +else +{ +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_161, 1); +lean_inc(x_165); +lean_dec(x_161); +x_166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_166, 0, x_129); +lean_ctor_set(x_166, 1, x_165); +return x_166; +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_161, 1); +lean_inc(x_167); +lean_dec(x_161); +x_168 = lean_ctor_get(x_162, 0); +lean_inc(x_168); +lean_dec(x_162); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_169 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_167); +if (lean_obj_tag(x_169) == 0) +{ +uint8_t x_170; +x_170 = !lean_is_exclusive(x_169); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_169, 0); +x_172 = lean_ctor_get(x_169, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_173 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_172); +if (lean_obj_tag(x_173) == 0) +{ +uint8_t x_174; +x_174 = !lean_is_exclusive(x_173); +if (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; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; +x_175 = lean_ctor_get(x_173, 1); +lean_ctor_set_tag(x_173, 1); +lean_ctor_set(x_173, 1, x_122); +lean_ctor_set_tag(x_169, 1); +lean_ctor_set(x_169, 1, x_173); +x_176 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_177 = l_Lean_Expr_const___override(x_176, x_169); +x_178 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_179 = lean_array_push(x_178, x_66); +x_180 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_181 = lean_array_push(x_179, x_180); +lean_inc(x_52); +x_182 = lean_array_push(x_181, x_52); +x_183 = l_Lean_mkAppN(x_177, x_182); +x_184 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_185 = 0; +lean_inc(x_66); +x_186 = l_Lean_Expr_forallE___override(x_184, x_66, x_183, x_185); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_187 = l_Lean_Meta_trySynthInstance(x_186, x_129, x_3, x_4, x_5, x_6, x_175); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; +x_188 = lean_ctor_get(x_187, 0); lean_inc(x_188); -lean_dec(x_186); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_187); -x_189 = lean_infer_type(x_187, x_3, x_4, x_5, x_6, x_188); -if (lean_obj_tag(x_189) == 0) +if (lean_obj_tag(x_188) == 1) { -lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_190 = lean_ctor_get(x_189, 0); +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; +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_190 = lean_ctor_get(x_188, 0); lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); +lean_dec(x_188); +x_191 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_192 = l_Lean_Expr_const___override(x_191, x_134); +x_193 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_194 = lean_array_push(x_193, x_65); +x_195 = lean_array_push(x_194, x_51); +x_196 = lean_array_push(x_195, x_66); +x_197 = lean_array_push(x_196, x_52); +x_198 = lean_array_push(x_197, x_133); +x_199 = lean_array_push(x_198, x_190); +x_200 = lean_array_push(x_199, x_168); +x_201 = lean_array_push(x_200, x_1); +x_202 = l_Lean_mkAppN(x_192, x_201); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_192 = l_Lean_Meta_isExprDefEq(x_16, x_190, x_3, x_4, x_5, x_6, x_191); -if (lean_obj_tag(x_192) == 0) +x_203 = l_Lean_Meta_expandCoe(x_202, x_3, x_4, x_5, x_6, x_189); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_193; uint8_t x_194; -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_unbox(x_193); -lean_dec(x_193); -if (x_194 == 0) -{ -uint8_t x_195; -lean_dec(x_187); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_195 = !lean_is_exclusive(x_192); -if (x_195 == 0) -{ -lean_object* x_196; -x_196 = lean_ctor_get(x_192, 0); -lean_dec(x_196); -lean_ctor_set(x_192, 0, x_112); -return x_192; -} -else -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_192, 1); -lean_inc(x_197); -lean_dec(x_192); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_112); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_199 = lean_ctor_get(x_192, 1); -lean_inc(x_199); -lean_dec(x_192); -x_200 = lean_box(0); -x_201 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_187, x_200, x_3, x_4, x_5, x_6, x_199); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_202 = !lean_is_exclusive(x_201); -if (x_202 == 0) -{ -return x_201; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_201, 0); -x_204 = lean_ctor_get(x_201, 1); +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_203, 0); lean_inc(x_204); -lean_inc(x_203); -lean_dec(x_201); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_203); -lean_ctor_set(x_205, 1, x_204); -return x_205; -} -} -} -else +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_204); +x_206 = lean_infer_type(x_204, x_3, x_4, x_5, x_6, x_205); +if (lean_obj_tag(x_206) == 0) { -lean_object* x_206; lean_object* x_207; -lean_dec(x_187); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_206 = lean_ctor_get(x_192, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_192, 1); +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_206, 0); lean_inc(x_207); -lean_dec(x_192); -x_8 = x_206; -x_9 = x_207; -goto block_14; -} -} -else -{ -lean_object* x_208; lean_object* x_209; -lean_dec(x_187); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_208 = lean_ctor_get(x_189, 0); +x_208 = lean_ctor_get(x_206, 1); lean_inc(x_208); -x_209 = lean_ctor_get(x_189, 1); -lean_inc(x_209); -lean_dec(x_189); -x_8 = x_208; -x_9 = x_209; -goto block_14; -} -} -else +lean_dec(x_206); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_209 = l_Lean_Meta_isExprDefEq(x_32, x_207, x_3, x_4, x_5, x_6, x_208); +if (lean_obj_tag(x_209) == 0) { -lean_object* x_210; lean_object* x_211; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_210 = lean_ctor_get(x_186, 0); +lean_object* x_210; uint8_t x_211; +x_210 = lean_ctor_get(x_209, 0); lean_inc(x_210); -x_211 = lean_ctor_get(x_186, 1); -lean_inc(x_211); -lean_dec(x_186); -x_8 = x_210; -x_9 = x_211; -goto block_14; -} -} -else +x_211 = lean_unbox(x_210); +lean_dec(x_210); +if (x_211 == 0) { uint8_t x_212; -lean_dec(x_171); -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_204); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_212 = !lean_is_exclusive(x_170); +x_212 = !lean_is_exclusive(x_209); if (x_212 == 0) { lean_object* x_213; -x_213 = lean_ctor_get(x_170, 0); +x_213 = lean_ctor_get(x_209, 0); lean_dec(x_213); -lean_ctor_set(x_170, 0, x_112); -return x_170; +lean_ctor_set(x_209, 0, x_129); +return x_209; } else { lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_170, 1); +x_214 = lean_ctor_get(x_209, 1); lean_inc(x_214); -lean_dec(x_170); +lean_dec(x_209); x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_112); +lean_ctor_set(x_215, 0, x_129); lean_ctor_set(x_215, 1, x_214); return x_215; } } -} else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_216 = lean_ctor_get(x_170, 0); +lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; +x_216 = lean_ctor_get(x_209, 1); lean_inc(x_216); -x_217 = lean_ctor_get(x_170, 1); -lean_inc(x_217); -lean_dec(x_170); -x_8 = x_216; -x_9 = x_217; -goto block_14; +lean_dec(x_209); +x_217 = lean_box(0); +x_218 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_204, x_217, x_3, x_4, x_5, x_6, x_216); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_219 = !lean_is_exclusive(x_218); +if (x_219 == 0) +{ +return x_218; +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_220 = lean_ctor_get(x_218, 0); +x_221 = lean_ctor_get(x_218, 1); +lean_inc(x_221); +lean_inc(x_220); +lean_dec(x_218); +x_222 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_222, 0, x_220); +lean_ctor_set(x_222, 1, x_221); +return x_222; +} } } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; lean_object* x_231; lean_object* x_232; -x_218 = lean_ctor_get(x_156, 0); -x_219 = lean_ctor_get(x_156, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_156); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_105); -lean_ctor_set_tag(x_152, 1); -lean_ctor_set(x_152, 1, x_220); -x_221 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_222 = l_Lean_Expr_const___override(x_221, x_152); -x_223 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_224 = lean_array_push(x_223, x_49); -x_225 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_226 = lean_array_push(x_224, x_225); -lean_inc(x_36); -x_227 = lean_array_push(x_226, x_36); -x_228 = l_Lean_mkAppN(x_222, x_227); -x_229 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_230 = 0; -lean_inc(x_49); -x_231 = l_Lean_Expr_forallE___override(x_229, x_49, x_228, x_230); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_232 = l_Lean_Meta_trySynthInstance(x_231, x_112, x_3, x_4, x_5, x_6, x_219); -if (lean_obj_tag(x_232) == 0) +lean_object* x_223; lean_object* x_224; +lean_dec(x_204); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = lean_ctor_get(x_209, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_209, 1); +lean_inc(x_224); +lean_dec(x_209); +x_8 = x_223; +x_9 = x_224; +goto block_16; +} +} +else { -lean_object* x_233; -x_233 = lean_ctor_get(x_232, 0); +lean_object* x_225; lean_object* x_226; +lean_dec(x_204); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_225 = lean_ctor_get(x_206, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_206, 1); +lean_inc(x_226); +lean_dec(x_206); +x_8 = x_225; +x_9 = x_226; +goto block_16; +} +} +else +{ +lean_object* x_227; lean_object* x_228; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_227 = lean_ctor_get(x_203, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_203, 1); +lean_inc(x_228); +lean_dec(x_203); +x_8 = x_227; +x_9 = x_228; +goto block_16; +} +} +else +{ +uint8_t x_229; +lean_dec(x_188); +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_229 = !lean_is_exclusive(x_187); +if (x_229 == 0) +{ +lean_object* x_230; +x_230 = lean_ctor_get(x_187, 0); +lean_dec(x_230); +lean_ctor_set(x_187, 0, x_129); +return x_187; +} +else +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_ctor_get(x_187, 1); +lean_inc(x_231); +lean_dec(x_187); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_129); +lean_ctor_set(x_232, 1, x_231); +return x_232; +} +} +} +else +{ +lean_object* x_233; lean_object* x_234; +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_233 = lean_ctor_get(x_187, 0); lean_inc(x_233); -if (lean_obj_tag(x_233) == 1) -{ -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; -x_234 = lean_ctor_get(x_232, 1); +x_234 = lean_ctor_get(x_187, 1); lean_inc(x_234); -lean_dec(x_232); -x_235 = lean_ctor_get(x_233, 0); +lean_dec(x_187); +x_8 = x_233; +x_9 = x_234; +goto block_16; +} +} +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; lean_object* x_241; 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; +x_235 = lean_ctor_get(x_173, 0); +x_236 = lean_ctor_get(x_173, 1); +lean_inc(x_236); lean_inc(x_235); -lean_dec(x_233); -x_236 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_237 = l_Lean_Expr_const___override(x_236, x_117); -x_238 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_239 = lean_array_push(x_238, x_48); -x_240 = lean_array_push(x_239, x_35); -x_241 = lean_array_push(x_240, x_49); -x_242 = lean_array_push(x_241, x_36); -x_243 = lean_array_push(x_242, x_116); -x_244 = lean_array_push(x_243, x_235); -x_245 = lean_array_push(x_244, x_151); -x_246 = lean_array_push(x_245, x_1); -x_247 = l_Lean_mkAppN(x_237, x_246); +lean_dec(x_173); +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_122); +lean_ctor_set_tag(x_169, 1); +lean_ctor_set(x_169, 1, x_237); +x_238 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_239 = l_Lean_Expr_const___override(x_238, x_169); +x_240 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_241 = lean_array_push(x_240, x_66); +x_242 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_243 = lean_array_push(x_241, x_242); +lean_inc(x_52); +x_244 = lean_array_push(x_243, x_52); +x_245 = l_Lean_mkAppN(x_239, x_244); +x_246 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_247 = 0; +lean_inc(x_66); +x_248 = l_Lean_Expr_forallE___override(x_246, x_66, x_245, x_247); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_248 = l_Lean_Meta_expandCoe(x_247, x_3, x_4, x_5, x_6, x_234); -if (lean_obj_tag(x_248) == 0) +x_249 = l_Lean_Meta_trySynthInstance(x_248, x_129, x_3, x_4, x_5, x_6, x_236); +if (lean_obj_tag(x_249) == 0) { -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); +lean_object* x_250; +x_250 = lean_ctor_get(x_249, 0); lean_inc(x_250); -lean_dec(x_248); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_249); -x_251 = lean_infer_type(x_249, x_3, x_4, x_5, x_6, x_250); -if (lean_obj_tag(x_251) == 0) +if (lean_obj_tag(x_250) == 1) { -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_251, 0); +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +lean_dec(x_249); +x_252 = lean_ctor_get(x_250, 0); lean_inc(x_252); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); +lean_dec(x_250); +x_253 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_254 = l_Lean_Expr_const___override(x_253, x_134); +x_255 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_256 = lean_array_push(x_255, x_65); +x_257 = lean_array_push(x_256, x_51); +x_258 = lean_array_push(x_257, x_66); +x_259 = lean_array_push(x_258, x_52); +x_260 = lean_array_push(x_259, x_133); +x_261 = lean_array_push(x_260, x_252); +x_262 = lean_array_push(x_261, x_168); +x_263 = lean_array_push(x_262, x_1); +x_264 = l_Lean_mkAppN(x_254, x_263); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_254 = l_Lean_Meta_isExprDefEq(x_16, x_252, x_3, x_4, x_5, x_6, x_253); -if (lean_obj_tag(x_254) == 0) +x_265 = l_Lean_Meta_expandCoe(x_264, x_3, x_4, x_5, x_6, x_251); +if (lean_obj_tag(x_265) == 0) { -lean_object* x_255; uint8_t x_256; -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_unbox(x_255); -lean_dec(x_255); -if (x_256 == 0) -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_249); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_257 = lean_ctor_get(x_254, 1); -lean_inc(x_257); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_258 = x_254; -} else { - lean_dec_ref(x_254); - 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_112); -lean_ctor_set(x_259, 1, x_257); -return x_259; -} -else -{ -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; -x_260 = lean_ctor_get(x_254, 1); -lean_inc(x_260); -lean_dec(x_254); -x_261 = lean_box(0); -x_262 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_249, x_261, x_3, x_4, x_5, x_6, x_260); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_265 = x_262; -} else { - lean_dec_ref(x_262); - x_265 = lean_box(0); -} -if (lean_is_scalar(x_265)) { - x_266 = lean_alloc_ctor(0, 2, 0); -} else { - x_266 = x_265; -} -lean_ctor_set(x_266, 0, x_263); -lean_ctor_set(x_266, 1, x_264); -return x_266; -} -} -else -{ -lean_object* x_267; lean_object* x_268; -lean_dec(x_249); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_267 = lean_ctor_get(x_254, 0); +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 1); lean_inc(x_267); -x_268 = lean_ctor_get(x_254, 1); -lean_inc(x_268); -lean_dec(x_254); -x_8 = x_267; -x_9 = x_268; -goto block_14; -} -} -else +lean_dec(x_265); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_266); +x_268 = lean_infer_type(x_266, x_3, x_4, x_5, x_6, x_267); +if (lean_obj_tag(x_268) == 0) { -lean_object* x_269; lean_object* x_270; -lean_dec(x_249); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_269 = lean_ctor_get(x_251, 0); +lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_269 = lean_ctor_get(x_268, 0); lean_inc(x_269); -x_270 = lean_ctor_get(x_251, 1); +x_270 = lean_ctor_get(x_268, 1); lean_inc(x_270); -lean_dec(x_251); -x_8 = x_269; -x_9 = x_270; -goto block_14; -} -} -else +lean_dec(x_268); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_271 = l_Lean_Meta_isExprDefEq(x_32, x_269, x_3, x_4, x_5, x_6, x_270); +if (lean_obj_tag(x_271) == 0) { -lean_object* x_271; lean_object* x_272; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_271 = lean_ctor_get(x_248, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_248, 1); +lean_object* x_272; uint8_t x_273; +x_272 = lean_ctor_get(x_271, 0); lean_inc(x_272); -lean_dec(x_248); -x_8 = x_271; -x_9 = x_272; -goto block_14; -} -} -else +x_273 = lean_unbox(x_272); +lean_dec(x_272); +if (x_273 == 0) { -lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec(x_233); -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec(x_266); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_273 = lean_ctor_get(x_232, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_274 = x_232; +x_274 = lean_ctor_get(x_271, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_275 = x_271; } else { - lean_dec_ref(x_232); - x_274 = lean_box(0); + lean_dec_ref(x_271); + x_275 = lean_box(0); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(0, 2, 0); } else { - x_275 = x_274; -} -lean_ctor_set(x_275, 0, x_112); -lean_ctor_set(x_275, 1, x_273); -return x_275; + x_276 = x_275; } +lean_ctor_set(x_276, 0, x_129); +lean_ctor_set(x_276, 1, x_274); +return x_276; } else { -lean_object* x_276; lean_object* x_277; -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_276 = lean_ctor_get(x_232, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_232, 1); +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_277 = lean_ctor_get(x_271, 1); lean_inc(x_277); -lean_dec(x_232); -x_8 = x_276; -x_9 = x_277; -goto block_14; +lean_dec(x_271); +x_278 = lean_box(0); +x_279 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_266, x_278, x_3, x_4, x_5, x_6, x_277); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +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(0, 2, 0); +} else { + x_283 = x_282; +} +lean_ctor_set(x_283, 0, x_280); +lean_ctor_set(x_283, 1, x_281); +return x_283; } } else { -lean_object* x_278; lean_object* x_279; -lean_free_object(x_152); -lean_dec(x_154); -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_284; lean_object* x_285; +lean_dec(x_266); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_284 = lean_ctor_get(x_271, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_271, 1); +lean_inc(x_285); +lean_dec(x_271); +x_8 = x_284; +x_9 = x_285; +goto block_16; +} +} +else +{ +lean_object* x_286; lean_object* x_287; +lean_dec(x_266); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_286 = lean_ctor_get(x_268, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_268, 1); +lean_inc(x_287); +lean_dec(x_268); +x_8 = x_286; +x_9 = x_287; +goto block_16; +} +} +else +{ +lean_object* x_288; lean_object* x_289; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_288 = lean_ctor_get(x_265, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_265, 1); +lean_inc(x_289); +lean_dec(x_265); +x_8 = x_288; +x_9 = x_289; +goto block_16; +} +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; +lean_dec(x_250); +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_278 = lean_ctor_get(x_156, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_156, 1); -lean_inc(x_279); -lean_dec(x_156); -x_8 = x_278; -x_9 = x_279; -goto block_14; +x_290 = lean_ctor_get(x_249, 1); +lean_inc(x_290); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_291 = x_249; +} else { + lean_dec_ref(x_249); + 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_129); +lean_ctor_set(x_292, 1, x_290); +return x_292; } } else { -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_152, 0); -x_281 = lean_ctor_get(x_152, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_152); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_282 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_281); -if (lean_obj_tag(x_282) == 0) +lean_object* x_293; lean_object* x_294; +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_293 = lean_ctor_get(x_249, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_249, 1); +lean_inc(x_294); +lean_dec(x_249); +x_8 = x_293; +x_9 = x_294; +goto block_16; +} +} +} +else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; lean_object* x_298; lean_object* x_299; -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_285 = x_282; -} else { - lean_dec_ref(x_282); - x_285 = lean_box(0); +lean_object* x_295; lean_object* x_296; +lean_free_object(x_169); +lean_dec(x_171); +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_295 = lean_ctor_get(x_173, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_173, 1); +lean_inc(x_296); +lean_dec(x_173); +x_8 = x_295; +x_9 = x_296; +goto block_16; } -if (lean_is_scalar(x_285)) { - x_286 = lean_alloc_ctor(1, 2, 0); -} else { - x_286 = x_285; - lean_ctor_set_tag(x_286, 1); } -lean_ctor_set(x_286, 0, x_283); -lean_ctor_set(x_286, 1, x_105); -x_287 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_287, 0, x_280); -lean_ctor_set(x_287, 1, x_286); -x_288 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_289 = l_Lean_Expr_const___override(x_288, x_287); -x_290 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_291 = lean_array_push(x_290, x_49); -x_292 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_293 = lean_array_push(x_291, x_292); -lean_inc(x_36); -x_294 = lean_array_push(x_293, x_36); -x_295 = l_Lean_mkAppN(x_289, x_294); -x_296 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_297 = 0; -lean_inc(x_49); -x_298 = l_Lean_Expr_forallE___override(x_296, x_49, x_295, x_297); +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_297 = lean_ctor_get(x_169, 0); +x_298 = lean_ctor_get(x_169, 1); +lean_inc(x_298); +lean_inc(x_297); +lean_dec(x_169); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_299 = l_Lean_Meta_trySynthInstance(x_298, x_112, x_3, x_4, x_5, x_6, x_284); +lean_inc(x_52); +x_299 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_298); if (lean_obj_tag(x_299) == 0) { -lean_object* x_300; +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; lean_object* x_312; lean_object* x_313; uint8_t x_314; lean_object* x_315; lean_object* x_316; x_300 = lean_ctor_get(x_299, 0); lean_inc(x_300); -if (lean_obj_tag(x_300) == 1) -{ -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; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; x_301 = lean_ctor_get(x_299, 1); lean_inc(x_301); -lean_dec(x_299); -x_302 = lean_ctor_get(x_300, 0); -lean_inc(x_302); -lean_dec(x_300); -x_303 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_304 = l_Lean_Expr_const___override(x_303, x_117); -x_305 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_306 = lean_array_push(x_305, x_48); -x_307 = lean_array_push(x_306, x_35); -x_308 = lean_array_push(x_307, x_49); -x_309 = lean_array_push(x_308, x_36); -x_310 = lean_array_push(x_309, x_116); -x_311 = lean_array_push(x_310, x_302); -x_312 = lean_array_push(x_311, x_151); -x_313 = lean_array_push(x_312, x_1); -x_314 = l_Lean_mkAppN(x_304, x_313); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_315 = l_Lean_Meta_expandCoe(x_314, x_3, x_4, x_5, x_6, x_301); -if (lean_obj_tag(x_315) == 0) -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_315, 0); -lean_inc(x_316); -x_317 = lean_ctor_get(x_315, 1); -lean_inc(x_317); -lean_dec(x_315); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_316); -x_318 = lean_infer_type(x_316, x_3, x_4, x_5, x_6, x_317); -if (lean_obj_tag(x_318) == 0) -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_ctor_get(x_318, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_318, 1); -lean_inc(x_320); -lean_dec(x_318); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_321 = l_Lean_Meta_isExprDefEq(x_16, x_319, x_3, x_4, x_5, x_6, x_320); -if (lean_obj_tag(x_321) == 0) -{ -lean_object* x_322; uint8_t x_323; -x_322 = lean_ctor_get(x_321, 0); -lean_inc(x_322); -x_323 = lean_unbox(x_322); -lean_dec(x_322); -if (x_323 == 0) -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; -lean_dec(x_316); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_324 = lean_ctor_get(x_321, 1); -lean_inc(x_324); -if (lean_is_exclusive(x_321)) { - lean_ctor_release(x_321, 0); - lean_ctor_release(x_321, 1); - x_325 = x_321; -} else { - lean_dec_ref(x_321); - x_325 = lean_box(0); -} -if (lean_is_scalar(x_325)) { - x_326 = lean_alloc_ctor(0, 2, 0); -} else { - x_326 = x_325; -} -lean_ctor_set(x_326, 0, x_112); -lean_ctor_set(x_326, 1, x_324); -return x_326; -} -else -{ -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; -x_327 = lean_ctor_get(x_321, 1); -lean_inc(x_327); -lean_dec(x_321); -x_328 = lean_box(0); -x_329 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_316, x_328, x_3, x_4, x_5, x_6, x_327); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_330 = lean_ctor_get(x_329, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_329, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_329)) { - lean_ctor_release(x_329, 0); - lean_ctor_release(x_329, 1); - x_332 = x_329; -} else { - lean_dec_ref(x_329); - x_332 = lean_box(0); -} -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 2, 0); -} else { - x_333 = x_332; -} -lean_ctor_set(x_333, 0, x_330); -lean_ctor_set(x_333, 1, x_331); -return x_333; -} -} -else -{ -lean_object* x_334; lean_object* x_335; -lean_dec(x_316); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_334 = lean_ctor_get(x_321, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_321, 1); -lean_inc(x_335); -lean_dec(x_321); -x_8 = x_334; -x_9 = x_335; -goto block_14; -} -} -else -{ -lean_object* x_336; lean_object* x_337; -lean_dec(x_316); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_336 = lean_ctor_get(x_318, 0); -lean_inc(x_336); -x_337 = lean_ctor_get(x_318, 1); -lean_inc(x_337); -lean_dec(x_318); -x_8 = x_336; -x_9 = x_337; -goto block_14; -} -} -else -{ -lean_object* x_338; lean_object* x_339; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_338 = lean_ctor_get(x_315, 0); -lean_inc(x_338); -x_339 = lean_ctor_get(x_315, 1); -lean_inc(x_339); -lean_dec(x_315); -x_8 = x_338; -x_9 = x_339; -goto block_14; -} -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_300); -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_340 = lean_ctor_get(x_299, 1); -lean_inc(x_340); if (lean_is_exclusive(x_299)) { lean_ctor_release(x_299, 0); lean_ctor_release(x_299, 1); - x_341 = x_299; + x_302 = x_299; } else { lean_dec_ref(x_299); - x_341 = lean_box(0); + x_302 = lean_box(0); } -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(1, 2, 0); } else { - x_342 = x_341; + x_303 = x_302; + lean_ctor_set_tag(x_303, 1); } -lean_ctor_set(x_342, 0, x_112); -lean_ctor_set(x_342, 1, x_340); -return x_342; -} -} -else +lean_ctor_set(x_303, 0, x_300); +lean_ctor_set(x_303, 1, x_122); +x_304 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_304, 0, x_297); +lean_ctor_set(x_304, 1, x_303); +x_305 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_306 = l_Lean_Expr_const___override(x_305, x_304); +x_307 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_308 = lean_array_push(x_307, x_66); +x_309 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_310 = lean_array_push(x_308, x_309); +lean_inc(x_52); +x_311 = lean_array_push(x_310, x_52); +x_312 = l_Lean_mkAppN(x_306, x_311); +x_313 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_314 = 0; +lean_inc(x_66); +x_315 = l_Lean_Expr_forallE___override(x_313, x_66, x_312, x_314); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_316 = l_Lean_Meta_trySynthInstance(x_315, x_129, x_3, x_4, x_5, x_6, x_301); +if (lean_obj_tag(x_316) == 0) { -lean_object* x_343; lean_object* x_344; -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_317; +x_317 = lean_ctor_get(x_316, 0); +lean_inc(x_317); +if (lean_obj_tag(x_317) == 1) +{ +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; 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; +x_318 = lean_ctor_get(x_316, 1); +lean_inc(x_318); +lean_dec(x_316); +x_319 = lean_ctor_get(x_317, 0); +lean_inc(x_319); +lean_dec(x_317); +x_320 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_321 = l_Lean_Expr_const___override(x_320, x_134); +x_322 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_323 = lean_array_push(x_322, x_65); +x_324 = lean_array_push(x_323, x_51); +x_325 = lean_array_push(x_324, x_66); +x_326 = lean_array_push(x_325, x_52); +x_327 = lean_array_push(x_326, x_133); +x_328 = lean_array_push(x_327, x_319); +x_329 = lean_array_push(x_328, x_168); +x_330 = lean_array_push(x_329, x_1); +x_331 = l_Lean_mkAppN(x_321, x_330); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_332 = l_Lean_Meta_expandCoe(x_331, x_3, x_4, x_5, x_6, x_318); +if (lean_obj_tag(x_332) == 0) +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_332, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_332, 1); +lean_inc(x_334); +lean_dec(x_332); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_333); +x_335 = lean_infer_type(x_333, x_3, x_4, x_5, x_6, x_334); +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); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_338 = l_Lean_Meta_isExprDefEq(x_32, x_336, x_3, x_4, x_5, x_6, x_337); +if (lean_obj_tag(x_338) == 0) +{ +lean_object* x_339; uint8_t x_340; +x_339 = lean_ctor_get(x_338, 0); +lean_inc(x_339); +x_340 = lean_unbox(x_339); +lean_dec(x_339); +if (x_340 == 0) +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; +lean_dec(x_333); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_343 = lean_ctor_get(x_299, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_299, 1); +x_341 = lean_ctor_get(x_338, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_338)) { + lean_ctor_release(x_338, 0); + lean_ctor_release(x_338, 1); + x_342 = x_338; +} else { + lean_dec_ref(x_338); + x_342 = lean_box(0); +} +if (lean_is_scalar(x_342)) { + x_343 = lean_alloc_ctor(0, 2, 0); +} else { + x_343 = x_342; +} +lean_ctor_set(x_343, 0, x_129); +lean_ctor_set(x_343, 1, x_341); +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; +x_344 = lean_ctor_get(x_338, 1); lean_inc(x_344); -lean_dec(x_299); -x_8 = x_343; -x_9 = x_344; -goto block_14; -} -} -else -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_280); -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_338); +x_345 = lean_box(0); +x_346 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_333, x_345, x_3, x_4, x_5, x_6, x_344); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_345 = lean_ctor_get(x_282, 0); -lean_inc(x_345); -x_346 = lean_ctor_get(x_282, 1); -lean_inc(x_346); -lean_dec(x_282); -x_8 = x_345; -x_9 = x_346; -goto block_14; -} -} -} -else -{ -lean_object* x_347; lean_object* x_348; -lean_dec(x_151); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_347 = lean_ctor_get(x_152, 0); +x_347 = lean_ctor_get(x_346, 0); lean_inc(x_347); -x_348 = lean_ctor_get(x_152, 1); +x_348 = lean_ctor_get(x_346, 1); lean_inc(x_348); -lean_dec(x_152); -x_8 = x_347; -x_9 = x_348; -goto block_14; +if (lean_is_exclusive(x_346)) { + lean_ctor_release(x_346, 0); + lean_ctor_release(x_346, 1); + x_349 = x_346; +} else { + lean_dec_ref(x_346); + x_349 = lean_box(0); } +if (lean_is_scalar(x_349)) { + x_350 = lean_alloc_ctor(0, 2, 0); +} else { + x_350 = x_349; } -} -else -{ -lean_object* x_349; lean_object* x_350; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_349 = lean_ctor_get(x_144, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_144, 1); -lean_inc(x_350); -lean_dec(x_144); -x_8 = x_349; -x_9 = x_350; -goto block_14; +lean_ctor_set(x_350, 0, x_347); +lean_ctor_set(x_350, 1, x_348); +return x_350; } } else { -uint8_t x_351; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_351; lean_object* x_352; +lean_dec(x_333); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_351 = !lean_is_exclusive(x_140); -if (x_351 == 0) -{ -lean_object* x_352; -x_352 = lean_ctor_get(x_140, 0); -lean_dec(x_352); -lean_ctor_set(x_38, 0, x_136); -lean_ctor_set(x_140, 0, x_38); -return x_140; +x_351 = lean_ctor_get(x_338, 0); +lean_inc(x_351); +x_352 = lean_ctor_get(x_338, 1); +lean_inc(x_352); +lean_dec(x_338); +x_8 = x_351; +x_9 = x_352; +goto block_16; +} } else { lean_object* x_353; lean_object* x_354; -x_353 = lean_ctor_get(x_140, 1); +lean_dec(x_333); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_353 = lean_ctor_get(x_335, 0); lean_inc(x_353); -lean_dec(x_140); -lean_ctor_set(x_38, 0, x_136); -x_354 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_354, 0, x_38); -lean_ctor_set(x_354, 1, x_353); -return x_354; -} +x_354 = lean_ctor_get(x_335, 1); +lean_inc(x_354); +lean_dec(x_335); +x_8 = x_353; +x_9 = x_354; +goto block_16; } } else { lean_object* x_355; lean_object* x_356; -lean_dec(x_136); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_355 = lean_ctor_get(x_140, 0); +x_355 = lean_ctor_get(x_332, 0); lean_inc(x_355); -x_356 = lean_ctor_get(x_140, 1); +x_356 = lean_ctor_get(x_332, 1); lean_inc(x_356); -lean_dec(x_140); +lean_dec(x_332); x_8 = x_355; x_9 = x_356; -goto block_14; +goto block_16; } } else { -lean_object* x_357; lean_object* x_358; -lean_dec(x_136); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_317); +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_357 = lean_ctor_get(x_137, 0); +x_357 = lean_ctor_get(x_316, 1); lean_inc(x_357); -x_358 = lean_ctor_get(x_137, 1); -lean_inc(x_358); -lean_dec(x_137); -x_8 = x_357; -x_9 = x_358; -goto block_14; +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + x_358 = x_316; +} else { + lean_dec_ref(x_316); + x_358 = lean_box(0); +} +if (lean_is_scalar(x_358)) { + x_359 = lean_alloc_ctor(0, 2, 0); +} else { + x_359 = x_358; +} +lean_ctor_set(x_359, 0, x_129); +lean_ctor_set(x_359, 1, x_357); +return x_359; } } else { -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; -x_359 = lean_ctor_get(x_125, 0); -x_360 = lean_ctor_get(x_125, 1); -lean_inc(x_360); -lean_inc(x_359); -lean_dec(x_125); -x_361 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_361, 0, x_359); -lean_ctor_set(x_361, 1, x_105); -lean_ctor_set_tag(x_121, 1); -lean_ctor_set(x_121, 1, x_361); -lean_ctor_set_tag(x_117, 1); -lean_ctor_set(x_117, 1, x_121); -x_362 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_117); -x_363 = l_Lean_Expr_const___override(x_362, x_117); -x_364 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_365 = lean_array_push(x_364, x_48); -lean_inc(x_35); -x_366 = lean_array_push(x_365, x_35); -lean_inc(x_116); -x_367 = lean_array_push(x_366, x_116); -lean_inc(x_49); -x_368 = lean_array_push(x_367, x_49); -lean_inc(x_1); -x_369 = lean_array_push(x_368, x_1); -x_370 = l_Lean_mkAppN(x_363, x_369); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_370); -x_371 = lean_infer_type(x_370, x_3, x_4, x_5, x_6, x_360); -if (lean_obj_tag(x_371) == 0) -{ -lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 1); -lean_inc(x_373); -lean_dec(x_371); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_374 = l_Lean_Meta_isExprDefEq(x_16, x_372, x_3, x_4, x_5, x_6, x_373); -if (lean_obj_tag(x_374) == 0) -{ -lean_object* x_375; uint8_t x_376; -x_375 = lean_ctor_get(x_374, 0); -lean_inc(x_375); -x_376 = lean_unbox(x_375); -lean_dec(x_375); -if (x_376 == 0) -{ -lean_object* x_377; lean_object* x_378; -lean_dec(x_370); -lean_free_object(x_38); -x_377 = lean_ctor_get(x_374, 1); -lean_inc(x_377); -lean_dec(x_374); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_378 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_377); -if (lean_obj_tag(x_378) == 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_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_360; lean_object* x_361; +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_381 = x_378; -} else { - lean_dec_ref(x_378); - x_381 = lean_box(0); +x_360 = lean_ctor_get(x_316, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_316, 1); +lean_inc(x_361); +lean_dec(x_316); +x_8 = x_360; +x_9 = x_361; +goto block_16; } -if (lean_is_scalar(x_381)) { - x_382 = lean_alloc_ctor(0, 2, 0); -} else { - x_382 = x_381; -} -lean_ctor_set(x_382, 0, x_112); -lean_ctor_set(x_382, 1, x_380); -return x_382; } else { -lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_383 = lean_ctor_get(x_378, 1); -lean_inc(x_383); -lean_dec(x_378); -x_384 = lean_ctor_get(x_379, 0); -lean_inc(x_384); -lean_dec(x_379); +lean_object* x_362; lean_object* x_363; +lean_dec(x_297); +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_362 = lean_ctor_get(x_299, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_299, 1); +lean_inc(x_363); +lean_dec(x_299); +x_8 = x_362; +x_9 = x_363; +goto block_16; +} +} +} +else +{ +lean_object* x_364; lean_object* x_365; +lean_dec(x_168); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_364 = lean_ctor_get(x_169, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_169, 1); +lean_inc(x_365); +lean_dec(x_169); +x_8 = x_364; +x_9 = x_365; +goto block_16; +} +} +} +else +{ +lean_object* x_366; lean_object* x_367; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_366 = lean_ctor_get(x_161, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_161, 1); +lean_inc(x_367); +lean_dec(x_161); +x_8 = x_366; +x_9 = x_367; +goto block_16; +} +} +else +{ +uint8_t x_368; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_368 = !lean_is_exclusive(x_157); +if (x_368 == 0) +{ +lean_object* x_369; +x_369 = lean_ctor_get(x_157, 0); +lean_dec(x_369); +lean_ctor_set(x_54, 0, x_153); +lean_ctor_set(x_157, 0, x_54); +return x_157; +} +else +{ +lean_object* x_370; lean_object* x_371; +x_370 = lean_ctor_get(x_157, 1); +lean_inc(x_370); +lean_dec(x_157); +lean_ctor_set(x_54, 0, x_153); +x_371 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_371, 0, x_54); +lean_ctor_set(x_371, 1, x_370); +return x_371; +} +} +} +else +{ +lean_object* x_372; lean_object* x_373; +lean_dec(x_153); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_372 = lean_ctor_get(x_157, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_157, 1); +lean_inc(x_373); +lean_dec(x_157); +x_8 = x_372; +x_9 = x_373; +goto block_16; +} +} +else +{ +lean_object* x_374; lean_object* x_375; +lean_dec(x_153); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_374 = lean_ctor_get(x_154, 0); +lean_inc(x_374); +x_375 = lean_ctor_get(x_154, 1); +lean_inc(x_375); +lean_dec(x_154); +x_8 = x_374; +x_9 = x_375; +goto block_16; +} +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 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_object* x_388; +x_376 = lean_ctor_get(x_142, 0); +x_377 = lean_ctor_get(x_142, 1); +lean_inc(x_377); +lean_inc(x_376); +lean_dec(x_142); +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_376); +lean_ctor_set(x_378, 1, x_122); +lean_ctor_set_tag(x_138, 1); +lean_ctor_set(x_138, 1, x_378); +lean_ctor_set_tag(x_134, 1); +lean_ctor_set(x_134, 1, x_138); +x_379 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_134); +x_380 = l_Lean_Expr_const___override(x_379, x_134); +x_381 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_382 = lean_array_push(x_381, x_65); +lean_inc(x_51); +x_383 = lean_array_push(x_382, x_51); +lean_inc(x_133); +x_384 = lean_array_push(x_383, x_133); +lean_inc(x_66); +x_385 = lean_array_push(x_384, x_66); +lean_inc(x_1); +x_386 = lean_array_push(x_385, x_1); +x_387 = l_Lean_mkAppN(x_380, x_386); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_385 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_383); -if (lean_obj_tag(x_385) == 0) -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_386 = lean_ctor_get(x_385, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_385, 1); lean_inc(x_387); -if (lean_is_exclusive(x_385)) { - lean_ctor_release(x_385, 0); - lean_ctor_release(x_385, 1); - x_388 = x_385; -} else { - lean_dec_ref(x_385); - x_388 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_389 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_387); -if (lean_obj_tag(x_389) == 0) +x_388 = lean_infer_type(x_387, x_3, x_4, x_5, x_6, x_377); +if (lean_obj_tag(x_388) == 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; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; uint8_t x_404; lean_object* x_405; lean_object* x_406; -x_390 = lean_ctor_get(x_389, 0); +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_388, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_388, 1); 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_392)) { - x_393 = lean_alloc_ctor(1, 2, 0); -} else { - x_393 = x_392; - lean_ctor_set_tag(x_393, 1); -} -lean_ctor_set(x_393, 0, x_390); -lean_ctor_set(x_393, 1, x_105); -if (lean_is_scalar(x_388)) { - x_394 = lean_alloc_ctor(1, 2, 0); -} else { - x_394 = x_388; - lean_ctor_set_tag(x_394, 1); -} -lean_ctor_set(x_394, 0, x_386); -lean_ctor_set(x_394, 1, x_393); -x_395 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_396 = l_Lean_Expr_const___override(x_395, x_394); -x_397 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_398 = lean_array_push(x_397, x_49); -x_399 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_400 = lean_array_push(x_398, x_399); -lean_inc(x_36); -x_401 = lean_array_push(x_400, x_36); -x_402 = l_Lean_mkAppN(x_396, x_401); -x_403 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_404 = 0; -lean_inc(x_49); -x_405 = l_Lean_Expr_forallE___override(x_403, x_49, x_402, x_404); +lean_dec(x_388); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_406 = l_Lean_Meta_trySynthInstance(x_405, x_112, x_3, x_4, x_5, x_6, x_391); +lean_inc(x_32); +x_391 = l_Lean_Meta_isExprDefEq(x_32, x_389, x_3, x_4, x_5, x_6, x_390); +if (lean_obj_tag(x_391) == 0) +{ +lean_object* x_392; uint8_t x_393; +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_unbox(x_392); +lean_dec(x_392); +if (x_393 == 0) +{ +lean_object* x_394; lean_object* x_395; +lean_dec(x_387); +lean_free_object(x_54); +x_394 = lean_ctor_get(x_391, 1); +lean_inc(x_394); +lean_dec(x_391); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_395 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_394); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +if (lean_obj_tag(x_396) == 0) +{ +lean_object* x_397; lean_object* x_398; lean_object* x_399; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_397 = lean_ctor_get(x_395, 1); +lean_inc(x_397); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_398 = x_395; +} else { + lean_dec_ref(x_395); + x_398 = lean_box(0); +} +if (lean_is_scalar(x_398)) { + x_399 = lean_alloc_ctor(0, 2, 0); +} else { + x_399 = x_398; +} +lean_ctor_set(x_399, 0, x_129); +lean_ctor_set(x_399, 1, x_397); +return x_399; +} +else +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_395, 1); +lean_inc(x_400); +lean_dec(x_395); +x_401 = lean_ctor_get(x_396, 0); +lean_inc(x_401); +lean_dec(x_396); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_402 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_400); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_403 = lean_ctor_get(x_402, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_402, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + x_405 = x_402; +} else { + lean_dec_ref(x_402); + x_405 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_406 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_404); if (lean_obj_tag(x_406) == 0) { -lean_object* x_407; +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; lean_object* 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; uint8_t x_421; lean_object* x_422; lean_object* x_423; x_407 = lean_ctor_get(x_406, 0); lean_inc(x_407); -if (lean_obj_tag(x_407) == 1) -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* 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_object* x_421; lean_object* x_422; x_408 = lean_ctor_get(x_406, 1); lean_inc(x_408); -lean_dec(x_406); -x_409 = lean_ctor_get(x_407, 0); -lean_inc(x_409); -lean_dec(x_407); -x_410 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_411 = l_Lean_Expr_const___override(x_410, x_117); -x_412 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_413 = lean_array_push(x_412, x_48); -x_414 = lean_array_push(x_413, x_35); -x_415 = lean_array_push(x_414, x_49); -x_416 = lean_array_push(x_415, x_36); -x_417 = lean_array_push(x_416, x_116); -x_418 = lean_array_push(x_417, x_409); -x_419 = lean_array_push(x_418, x_384); -x_420 = lean_array_push(x_419, x_1); -x_421 = l_Lean_mkAppN(x_411, x_420); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_422 = l_Lean_Meta_expandCoe(x_421, x_3, x_4, x_5, x_6, x_408); -if (lean_obj_tag(x_422) == 0) -{ -lean_object* x_423; lean_object* x_424; lean_object* x_425; -x_423 = lean_ctor_get(x_422, 0); -lean_inc(x_423); -x_424 = lean_ctor_get(x_422, 1); -lean_inc(x_424); -lean_dec(x_422); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_423); -x_425 = lean_infer_type(x_423, x_3, x_4, x_5, x_6, x_424); -if (lean_obj_tag(x_425) == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_428 = l_Lean_Meta_isExprDefEq(x_16, x_426, x_3, x_4, x_5, x_6, x_427); -if (lean_obj_tag(x_428) == 0) -{ -lean_object* x_429; uint8_t x_430; -x_429 = lean_ctor_get(x_428, 0); -lean_inc(x_429); -x_430 = lean_unbox(x_429); -lean_dec(x_429); -if (x_430 == 0) -{ -lean_object* x_431; lean_object* x_432; lean_object* x_433; -lean_dec(x_423); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_431 = lean_ctor_get(x_428, 1); -lean_inc(x_431); -if (lean_is_exclusive(x_428)) { - lean_ctor_release(x_428, 0); - lean_ctor_release(x_428, 1); - x_432 = x_428; -} else { - lean_dec_ref(x_428); - x_432 = lean_box(0); -} -if (lean_is_scalar(x_432)) { - x_433 = lean_alloc_ctor(0, 2, 0); -} else { - x_433 = x_432; -} -lean_ctor_set(x_433, 0, x_112); -lean_ctor_set(x_433, 1, x_431); -return x_433; -} -else -{ -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_434 = lean_ctor_get(x_428, 1); -lean_inc(x_434); -lean_dec(x_428); -x_435 = lean_box(0); -x_436 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_423, x_435, x_3, x_4, x_5, x_6, x_434); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_437 = lean_ctor_get(x_436, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_436, 1); -lean_inc(x_438); -if (lean_is_exclusive(x_436)) { - lean_ctor_release(x_436, 0); - lean_ctor_release(x_436, 1); - x_439 = x_436; -} else { - lean_dec_ref(x_436); - x_439 = lean_box(0); -} -if (lean_is_scalar(x_439)) { - x_440 = lean_alloc_ctor(0, 2, 0); -} else { - x_440 = x_439; -} -lean_ctor_set(x_440, 0, x_437); -lean_ctor_set(x_440, 1, x_438); -return x_440; -} -} -else -{ -lean_object* x_441; lean_object* x_442; -lean_dec(x_423); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_441 = lean_ctor_get(x_428, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_428, 1); -lean_inc(x_442); -lean_dec(x_428); -x_8 = x_441; -x_9 = x_442; -goto block_14; -} -} -else -{ -lean_object* x_443; lean_object* x_444; -lean_dec(x_423); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_443 = lean_ctor_get(x_425, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_425, 1); -lean_inc(x_444); -lean_dec(x_425); -x_8 = x_443; -x_9 = x_444; -goto block_14; -} -} -else -{ -lean_object* x_445; lean_object* x_446; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_445 = lean_ctor_get(x_422, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_422, 1); -lean_inc(x_446); -lean_dec(x_422); -x_8 = x_445; -x_9 = x_446; -goto block_14; -} -} -else -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; -lean_dec(x_407); -lean_dec(x_384); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_447 = lean_ctor_get(x_406, 1); -lean_inc(x_447); if (lean_is_exclusive(x_406)) { lean_ctor_release(x_406, 0); lean_ctor_release(x_406, 1); - x_448 = x_406; + x_409 = x_406; } else { lean_dec_ref(x_406); - x_448 = lean_box(0); + x_409 = lean_box(0); } -if (lean_is_scalar(x_448)) { - x_449 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_409)) { + x_410 = lean_alloc_ctor(1, 2, 0); } else { - x_449 = x_448; + x_410 = x_409; + lean_ctor_set_tag(x_410, 1); } -lean_ctor_set(x_449, 0, x_112); -lean_ctor_set(x_449, 1, x_447); -return x_449; +lean_ctor_set(x_410, 0, x_407); +lean_ctor_set(x_410, 1, x_122); +if (lean_is_scalar(x_405)) { + x_411 = lean_alloc_ctor(1, 2, 0); +} else { + x_411 = x_405; + lean_ctor_set_tag(x_411, 1); } -} -else +lean_ctor_set(x_411, 0, x_403); +lean_ctor_set(x_411, 1, x_410); +x_412 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_413 = l_Lean_Expr_const___override(x_412, x_411); +x_414 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_415 = lean_array_push(x_414, x_66); +x_416 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_417 = lean_array_push(x_415, x_416); +lean_inc(x_52); +x_418 = lean_array_push(x_417, x_52); +x_419 = l_Lean_mkAppN(x_413, x_418); +x_420 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_421 = 0; +lean_inc(x_66); +x_422 = l_Lean_Expr_forallE___override(x_420, x_66, x_419, x_421); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_423 = l_Lean_Meta_trySynthInstance(x_422, x_129, x_3, x_4, x_5, x_6, x_408); +if (lean_obj_tag(x_423) == 0) { -lean_object* x_450; lean_object* x_451; -lean_dec(x_384); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_424; +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +if (lean_obj_tag(x_424) == 1) +{ +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; lean_object* x_437; lean_object* x_438; lean_object* x_439; +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +lean_dec(x_423); +x_426 = lean_ctor_get(x_424, 0); +lean_inc(x_426); +lean_dec(x_424); +x_427 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_428 = l_Lean_Expr_const___override(x_427, x_134); +x_429 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_430 = lean_array_push(x_429, x_65); +x_431 = lean_array_push(x_430, x_51); +x_432 = lean_array_push(x_431, x_66); +x_433 = lean_array_push(x_432, x_52); +x_434 = lean_array_push(x_433, x_133); +x_435 = lean_array_push(x_434, x_426); +x_436 = lean_array_push(x_435, x_401); +x_437 = lean_array_push(x_436, x_1); +x_438 = l_Lean_mkAppN(x_428, x_437); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_439 = l_Lean_Meta_expandCoe(x_438, x_3, x_4, x_5, x_6, x_425); +if (lean_obj_tag(x_439) == 0) +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; +x_440 = lean_ctor_get(x_439, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_439, 1); +lean_inc(x_441); +lean_dec(x_439); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_440); +x_442 = lean_infer_type(x_440, x_3, x_4, x_5, x_6, x_441); +if (lean_obj_tag(x_442) == 0) +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_443 = lean_ctor_get(x_442, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_442, 1); +lean_inc(x_444); +lean_dec(x_442); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_445 = l_Lean_Meta_isExprDefEq(x_32, x_443, x_3, x_4, x_5, x_6, x_444); +if (lean_obj_tag(x_445) == 0) +{ +lean_object* x_446; uint8_t x_447; +x_446 = lean_ctor_get(x_445, 0); +lean_inc(x_446); +x_447 = lean_unbox(x_446); +lean_dec(x_446); +if (x_447 == 0) +{ +lean_object* x_448; lean_object* x_449; lean_object* x_450; +lean_dec(x_440); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_450 = lean_ctor_get(x_406, 0); -lean_inc(x_450); -x_451 = lean_ctor_get(x_406, 1); +x_448 = lean_ctor_get(x_445, 1); +lean_inc(x_448); +if (lean_is_exclusive(x_445)) { + lean_ctor_release(x_445, 0); + lean_ctor_release(x_445, 1); + x_449 = x_445; +} else { + lean_dec_ref(x_445); + x_449 = lean_box(0); +} +if (lean_is_scalar(x_449)) { + x_450 = lean_alloc_ctor(0, 2, 0); +} else { + x_450 = x_449; +} +lean_ctor_set(x_450, 0, x_129); +lean_ctor_set(x_450, 1, x_448); +return x_450; +} +else +{ +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; +x_451 = lean_ctor_get(x_445, 1); lean_inc(x_451); -lean_dec(x_406); -x_8 = x_450; -x_9 = x_451; -goto block_14; -} -} -else -{ -lean_object* x_452; lean_object* x_453; -lean_dec(x_388); -lean_dec(x_386); -lean_dec(x_384); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_445); +x_452 = lean_box(0); +x_453 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_440, x_452, x_3, x_4, x_5, x_6, x_451); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_452 = lean_ctor_get(x_389, 0); -lean_inc(x_452); -x_453 = lean_ctor_get(x_389, 1); -lean_inc(x_453); -lean_dec(x_389); -x_8 = x_452; -x_9 = x_453; -goto block_14; -} -} -else -{ -lean_object* x_454; lean_object* x_455; -lean_dec(x_384); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_454 = lean_ctor_get(x_385, 0); +x_454 = lean_ctor_get(x_453, 0); lean_inc(x_454); -x_455 = lean_ctor_get(x_385, 1); +x_455 = lean_ctor_get(x_453, 1); lean_inc(x_455); -lean_dec(x_385); -x_8 = x_454; -x_9 = x_455; -goto block_14; +if (lean_is_exclusive(x_453)) { + lean_ctor_release(x_453, 0); + lean_ctor_release(x_453, 1); + x_456 = x_453; +} else { + lean_dec_ref(x_453); + x_456 = lean_box(0); } +if (lean_is_scalar(x_456)) { + x_457 = lean_alloc_ctor(0, 2, 0); +} else { + x_457 = x_456; } -} -else -{ -lean_object* x_456; lean_object* x_457; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_456 = lean_ctor_get(x_378, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_378, 1); -lean_inc(x_457); -lean_dec(x_378); -x_8 = x_456; -x_9 = x_457; -goto block_14; +lean_ctor_set(x_457, 0, x_454); +lean_ctor_set(x_457, 1, x_455); +return x_457; } } else { -lean_object* x_458; lean_object* x_459; lean_object* x_460; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_458; lean_object* x_459; +lean_dec(x_440); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_458 = lean_ctor_get(x_374, 1); +x_458 = lean_ctor_get(x_445, 0); lean_inc(x_458); -if (lean_is_exclusive(x_374)) { - lean_ctor_release(x_374, 0); - lean_ctor_release(x_374, 1); - x_459 = x_374; -} else { - lean_dec_ref(x_374); - x_459 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_370); -if (lean_is_scalar(x_459)) { - x_460 = lean_alloc_ctor(0, 2, 0); -} else { - x_460 = x_459; -} -lean_ctor_set(x_460, 0, x_38); -lean_ctor_set(x_460, 1, x_458); -return x_460; +x_459 = lean_ctor_get(x_445, 1); +lean_inc(x_459); +lean_dec(x_445); +x_8 = x_458; +x_9 = x_459; +goto block_16; } } else { -lean_object* x_461; lean_object* x_462; -lean_dec(x_370); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_460; lean_object* x_461; +lean_dec(x_440); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_461 = lean_ctor_get(x_374, 0); +x_460 = lean_ctor_get(x_442, 0); +lean_inc(x_460); +x_461 = lean_ctor_get(x_442, 1); lean_inc(x_461); -x_462 = lean_ctor_get(x_374, 1); +lean_dec(x_442); +x_8 = x_460; +x_9 = x_461; +goto block_16; +} +} +else +{ +lean_object* x_462; lean_object* x_463; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_462 = lean_ctor_get(x_439, 0); lean_inc(x_462); -lean_dec(x_374); -x_8 = x_461; -x_9 = x_462; -goto block_14; -} -} -else -{ -lean_object* x_463; lean_object* x_464; -lean_dec(x_370); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_463 = lean_ctor_get(x_371, 0); +x_463 = lean_ctor_get(x_439, 1); lean_inc(x_463); -x_464 = lean_ctor_get(x_371, 1); +lean_dec(x_439); +x_8 = x_462; +x_9 = x_463; +goto block_16; +} +} +else +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; +lean_dec(x_424); +lean_dec(x_401); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_464 = lean_ctor_get(x_423, 1); lean_inc(x_464); -lean_dec(x_371); -x_8 = x_463; -x_9 = x_464; -goto block_14; +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_465 = x_423; +} else { + lean_dec_ref(x_423); + x_465 = lean_box(0); } +if (lean_is_scalar(x_465)) { + x_466 = lean_alloc_ctor(0, 2, 0); +} else { + x_466 = x_465; +} +lean_ctor_set(x_466, 0, x_129); +lean_ctor_set(x_466, 1, x_464); +return x_466; } } else { -lean_object* x_465; lean_object* x_466; -lean_free_object(x_121); -lean_dec(x_123); -lean_free_object(x_117); -lean_dec(x_119); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_467; lean_object* x_468; +lean_dec(x_401); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_465 = lean_ctor_get(x_125, 0); -lean_inc(x_465); -x_466 = lean_ctor_get(x_125, 1); -lean_inc(x_466); -lean_dec(x_125); -x_8 = x_465; -x_9 = x_466; -goto block_14; -} -} -else -{ -lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_467 = lean_ctor_get(x_121, 0); -x_468 = lean_ctor_get(x_121, 1); -lean_inc(x_468); +x_467 = lean_ctor_get(x_423, 0); lean_inc(x_467); -lean_dec(x_121); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_469 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_468); -if (lean_obj_tag(x_469) == 0) -{ -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; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; -x_470 = lean_ctor_get(x_469, 0); -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; -} else { - lean_dec_ref(x_469); - x_472 = lean_box(0); +x_468 = lean_ctor_get(x_423, 1); +lean_inc(x_468); +lean_dec(x_423); +x_8 = x_467; +x_9 = x_468; +goto block_16; } -if (lean_is_scalar(x_472)) { - x_473 = lean_alloc_ctor(1, 2, 0); -} else { - x_473 = x_472; - lean_ctor_set_tag(x_473, 1); } -lean_ctor_set(x_473, 0, x_470); -lean_ctor_set(x_473, 1, x_105); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_467); -lean_ctor_set(x_474, 1, x_473); -lean_ctor_set_tag(x_117, 1); -lean_ctor_set(x_117, 1, x_474); -x_475 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_117); -x_476 = l_Lean_Expr_const___override(x_475, x_117); -x_477 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_478 = lean_array_push(x_477, x_48); -lean_inc(x_35); -x_479 = lean_array_push(x_478, x_35); -lean_inc(x_116); -x_480 = lean_array_push(x_479, x_116); -lean_inc(x_49); -x_481 = lean_array_push(x_480, x_49); -lean_inc(x_1); -x_482 = lean_array_push(x_481, x_1); -x_483 = l_Lean_mkAppN(x_476, x_482); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_483); -x_484 = lean_infer_type(x_483, x_3, x_4, x_5, x_6, x_471); -if (lean_obj_tag(x_484) == 0) +else { -lean_object* x_485; lean_object* x_486; lean_object* x_487; -x_485 = lean_ctor_get(x_484, 0); -lean_inc(x_485); -x_486 = lean_ctor_get(x_484, 1); -lean_inc(x_486); -lean_dec(x_484); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_487 = l_Lean_Meta_isExprDefEq(x_16, x_485, x_3, x_4, x_5, x_6, x_486); -if (lean_obj_tag(x_487) == 0) -{ -lean_object* x_488; uint8_t x_489; -x_488 = lean_ctor_get(x_487, 0); -lean_inc(x_488); -x_489 = lean_unbox(x_488); -lean_dec(x_488); -if (x_489 == 0) -{ -lean_object* x_490; lean_object* x_491; -lean_dec(x_483); -lean_free_object(x_38); -x_490 = lean_ctor_get(x_487, 1); -lean_inc(x_490); -lean_dec(x_487); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_491 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_490); -if (lean_obj_tag(x_491) == 0) -{ -lean_object* x_492; -x_492 = lean_ctor_get(x_491, 0); -lean_inc(x_492); -if (lean_obj_tag(x_492) == 0) -{ -lean_object* x_493; lean_object* x_494; lean_object* x_495; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_469; lean_object* x_470; +lean_dec(x_405); +lean_dec(x_403); +lean_dec(x_401); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_493 = lean_ctor_get(x_491, 1); -lean_inc(x_493); -if (lean_is_exclusive(x_491)) { - lean_ctor_release(x_491, 0); - lean_ctor_release(x_491, 1); - x_494 = x_491; -} else { - lean_dec_ref(x_491); - x_494 = lean_box(0); +x_469 = lean_ctor_get(x_406, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_406, 1); +lean_inc(x_470); +lean_dec(x_406); +x_8 = x_469; +x_9 = x_470; +goto block_16; } -if (lean_is_scalar(x_494)) { - x_495 = lean_alloc_ctor(0, 2, 0); -} else { - x_495 = x_494; -} -lean_ctor_set(x_495, 0, x_112); -lean_ctor_set(x_495, 1, x_493); -return x_495; } else { -lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_496 = lean_ctor_get(x_491, 1); -lean_inc(x_496); -lean_dec(x_491); -x_497 = lean_ctor_get(x_492, 0); -lean_inc(x_497); -lean_dec(x_492); +lean_object* x_471; lean_object* x_472; +lean_dec(x_401); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_471 = lean_ctor_get(x_402, 0); +lean_inc(x_471); +x_472 = lean_ctor_get(x_402, 1); +lean_inc(x_472); +lean_dec(x_402); +x_8 = x_471; +x_9 = x_472; +goto block_16; +} +} +} +else +{ +lean_object* x_473; lean_object* x_474; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_473 = lean_ctor_get(x_395, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_395, 1); +lean_inc(x_474); +lean_dec(x_395); +x_8 = x_473; +x_9 = x_474; +goto block_16; +} +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_475 = lean_ctor_get(x_391, 1); +lean_inc(x_475); +if (lean_is_exclusive(x_391)) { + lean_ctor_release(x_391, 0); + lean_ctor_release(x_391, 1); + x_476 = x_391; +} else { + lean_dec_ref(x_391); + x_476 = lean_box(0); +} +lean_ctor_set(x_54, 0, x_387); +if (lean_is_scalar(x_476)) { + x_477 = lean_alloc_ctor(0, 2, 0); +} else { + x_477 = x_476; +} +lean_ctor_set(x_477, 0, x_54); +lean_ctor_set(x_477, 1, x_475); +return x_477; +} +} +else +{ +lean_object* x_478; lean_object* x_479; +lean_dec(x_387); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_478 = lean_ctor_get(x_391, 0); +lean_inc(x_478); +x_479 = lean_ctor_get(x_391, 1); +lean_inc(x_479); +lean_dec(x_391); +x_8 = x_478; +x_9 = x_479; +goto block_16; +} +} +else +{ +lean_object* x_480; lean_object* x_481; +lean_dec(x_387); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_480 = lean_ctor_get(x_388, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_388, 1); +lean_inc(x_481); +lean_dec(x_388); +x_8 = x_480; +x_9 = x_481; +goto block_16; +} +} +} +else +{ +lean_object* x_482; lean_object* x_483; +lean_free_object(x_138); +lean_dec(x_140); +lean_free_object(x_134); +lean_dec(x_136); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_482 = lean_ctor_get(x_142, 0); +lean_inc(x_482); +x_483 = lean_ctor_get(x_142, 1); +lean_inc(x_483); +lean_dec(x_142); +x_8 = x_482; +x_9 = x_483; +goto block_16; +} +} +else +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; +x_484 = lean_ctor_get(x_138, 0); +x_485 = lean_ctor_get(x_138, 1); +lean_inc(x_485); +lean_inc(x_484); +lean_dec(x_138); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_498 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_496); -if (lean_obj_tag(x_498) == 0) +lean_inc(x_32); +x_486 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_485); +if (lean_obj_tag(x_486) == 0) { -lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; -x_499 = lean_ctor_get(x_498, 0); -lean_inc(x_499); -x_500 = lean_ctor_get(x_498, 1); +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_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_487 = lean_ctor_get(x_486, 0); +lean_inc(x_487); +x_488 = lean_ctor_get(x_486, 1); +lean_inc(x_488); +if (lean_is_exclusive(x_486)) { + lean_ctor_release(x_486, 0); + lean_ctor_release(x_486, 1); + x_489 = x_486; +} else { + lean_dec_ref(x_486); + x_489 = lean_box(0); +} +if (lean_is_scalar(x_489)) { + x_490 = lean_alloc_ctor(1, 2, 0); +} else { + x_490 = x_489; + lean_ctor_set_tag(x_490, 1); +} +lean_ctor_set(x_490, 0, x_487); +lean_ctor_set(x_490, 1, x_122); +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_484); +lean_ctor_set(x_491, 1, x_490); +lean_ctor_set_tag(x_134, 1); +lean_ctor_set(x_134, 1, x_491); +x_492 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_134); +x_493 = l_Lean_Expr_const___override(x_492, x_134); +x_494 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_495 = lean_array_push(x_494, x_65); +lean_inc(x_51); +x_496 = lean_array_push(x_495, x_51); +lean_inc(x_133); +x_497 = lean_array_push(x_496, x_133); +lean_inc(x_66); +x_498 = lean_array_push(x_497, x_66); +lean_inc(x_1); +x_499 = lean_array_push(x_498, x_1); +x_500 = l_Lean_mkAppN(x_493, x_499); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_500); -if (lean_is_exclusive(x_498)) { - lean_ctor_release(x_498, 0); - lean_ctor_release(x_498, 1); - x_501 = x_498; -} else { - lean_dec_ref(x_498); - x_501 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_502 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_500); -if (lean_obj_tag(x_502) == 0) +x_501 = lean_infer_type(x_500, x_3, x_4, x_5, x_6, x_488); +if (lean_obj_tag(x_501) == 0) { -lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 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; uint8_t x_517; lean_object* x_518; lean_object* x_519; -x_503 = lean_ctor_get(x_502, 0); +lean_object* x_502; lean_object* x_503; lean_object* x_504; +x_502 = lean_ctor_get(x_501, 0); +lean_inc(x_502); +x_503 = lean_ctor_get(x_501, 1); lean_inc(x_503); -x_504 = lean_ctor_get(x_502, 1); -lean_inc(x_504); -if (lean_is_exclusive(x_502)) { - lean_ctor_release(x_502, 0); - lean_ctor_release(x_502, 1); - x_505 = x_502; -} else { - lean_dec_ref(x_502); - x_505 = lean_box(0); -} -if (lean_is_scalar(x_505)) { - x_506 = lean_alloc_ctor(1, 2, 0); -} else { - x_506 = x_505; - lean_ctor_set_tag(x_506, 1); -} -lean_ctor_set(x_506, 0, x_503); -lean_ctor_set(x_506, 1, x_105); -if (lean_is_scalar(x_501)) { - x_507 = lean_alloc_ctor(1, 2, 0); -} else { - x_507 = x_501; - lean_ctor_set_tag(x_507, 1); -} -lean_ctor_set(x_507, 0, x_499); -lean_ctor_set(x_507, 1, x_506); -x_508 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_509 = l_Lean_Expr_const___override(x_508, x_507); -x_510 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_511 = lean_array_push(x_510, x_49); -x_512 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_513 = lean_array_push(x_511, x_512); -lean_inc(x_36); -x_514 = lean_array_push(x_513, x_36); -x_515 = l_Lean_mkAppN(x_509, x_514); -x_516 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_517 = 0; -lean_inc(x_49); -x_518 = l_Lean_Expr_forallE___override(x_516, x_49, x_515, x_517); +lean_dec(x_501); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_519 = l_Lean_Meta_trySynthInstance(x_518, x_112, x_3, x_4, x_5, x_6, x_504); +lean_inc(x_32); +x_504 = l_Lean_Meta_isExprDefEq(x_32, x_502, x_3, x_4, x_5, x_6, x_503); +if (lean_obj_tag(x_504) == 0) +{ +lean_object* x_505; uint8_t x_506; +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +x_506 = lean_unbox(x_505); +lean_dec(x_505); +if (x_506 == 0) +{ +lean_object* x_507; lean_object* x_508; +lean_dec(x_500); +lean_free_object(x_54); +x_507 = lean_ctor_get(x_504, 1); +lean_inc(x_507); +lean_dec(x_504); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_508 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_507); +if (lean_obj_tag(x_508) == 0) +{ +lean_object* x_509; +x_509 = lean_ctor_get(x_508, 0); +lean_inc(x_509); +if (lean_obj_tag(x_509) == 0) +{ +lean_object* x_510; lean_object* x_511; lean_object* x_512; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_510 = lean_ctor_get(x_508, 1); +lean_inc(x_510); +if (lean_is_exclusive(x_508)) { + lean_ctor_release(x_508, 0); + lean_ctor_release(x_508, 1); + x_511 = x_508; +} else { + lean_dec_ref(x_508); + x_511 = lean_box(0); +} +if (lean_is_scalar(x_511)) { + x_512 = lean_alloc_ctor(0, 2, 0); +} else { + x_512 = x_511; +} +lean_ctor_set(x_512, 0, x_129); +lean_ctor_set(x_512, 1, x_510); +return x_512; +} +else +{ +lean_object* x_513; lean_object* x_514; lean_object* x_515; +x_513 = lean_ctor_get(x_508, 1); +lean_inc(x_513); +lean_dec(x_508); +x_514 = lean_ctor_get(x_509, 0); +lean_inc(x_514); +lean_dec(x_509); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_515 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_513); +if (lean_obj_tag(x_515) == 0) +{ +lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; +x_516 = lean_ctor_get(x_515, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_515, 1); +lean_inc(x_517); +if (lean_is_exclusive(x_515)) { + lean_ctor_release(x_515, 0); + lean_ctor_release(x_515, 1); + x_518 = x_515; +} else { + lean_dec_ref(x_515); + x_518 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_519 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_517); if (lean_obj_tag(x_519) == 0) { -lean_object* x_520; +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; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; uint8_t x_534; lean_object* x_535; lean_object* x_536; x_520 = lean_ctor_get(x_519, 0); lean_inc(x_520); -if (lean_obj_tag(x_520) == 1) -{ -lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; x_521 = lean_ctor_get(x_519, 1); lean_inc(x_521); -lean_dec(x_519); -x_522 = lean_ctor_get(x_520, 0); -lean_inc(x_522); -lean_dec(x_520); -x_523 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_524 = l_Lean_Expr_const___override(x_523, x_117); -x_525 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_526 = lean_array_push(x_525, x_48); -x_527 = lean_array_push(x_526, x_35); -x_528 = lean_array_push(x_527, x_49); -x_529 = lean_array_push(x_528, x_36); -x_530 = lean_array_push(x_529, x_116); -x_531 = lean_array_push(x_530, x_522); -x_532 = lean_array_push(x_531, x_497); -x_533 = lean_array_push(x_532, x_1); -x_534 = l_Lean_mkAppN(x_524, x_533); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_535 = l_Lean_Meta_expandCoe(x_534, x_3, x_4, x_5, x_6, x_521); -if (lean_obj_tag(x_535) == 0) -{ -lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_536 = lean_ctor_get(x_535, 0); -lean_inc(x_536); -x_537 = lean_ctor_get(x_535, 1); -lean_inc(x_537); -lean_dec(x_535); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_536); -x_538 = lean_infer_type(x_536, x_3, x_4, x_5, x_6, x_537); -if (lean_obj_tag(x_538) == 0) -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_539 = lean_ctor_get(x_538, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_538, 1); -lean_inc(x_540); -lean_dec(x_538); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_541 = l_Lean_Meta_isExprDefEq(x_16, x_539, x_3, x_4, x_5, x_6, x_540); -if (lean_obj_tag(x_541) == 0) -{ -lean_object* x_542; uint8_t x_543; -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_unbox(x_542); -lean_dec(x_542); -if (x_543 == 0) -{ -lean_object* x_544; lean_object* x_545; lean_object* x_546; -lean_dec(x_536); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_544 = lean_ctor_get(x_541, 1); -lean_inc(x_544); -if (lean_is_exclusive(x_541)) { - lean_ctor_release(x_541, 0); - lean_ctor_release(x_541, 1); - x_545 = x_541; -} else { - lean_dec_ref(x_541); - x_545 = lean_box(0); -} -if (lean_is_scalar(x_545)) { - x_546 = lean_alloc_ctor(0, 2, 0); -} else { - x_546 = x_545; -} -lean_ctor_set(x_546, 0, x_112); -lean_ctor_set(x_546, 1, x_544); -return x_546; -} -else -{ -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; -x_547 = lean_ctor_get(x_541, 1); -lean_inc(x_547); -lean_dec(x_541); -x_548 = lean_box(0); -x_549 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_536, x_548, x_3, x_4, x_5, x_6, x_547); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_550 = lean_ctor_get(x_549, 0); -lean_inc(x_550); -x_551 = lean_ctor_get(x_549, 1); -lean_inc(x_551); -if (lean_is_exclusive(x_549)) { - lean_ctor_release(x_549, 0); - lean_ctor_release(x_549, 1); - x_552 = x_549; -} else { - lean_dec_ref(x_549); - x_552 = lean_box(0); -} -if (lean_is_scalar(x_552)) { - x_553 = lean_alloc_ctor(0, 2, 0); -} else { - x_553 = x_552; -} -lean_ctor_set(x_553, 0, x_550); -lean_ctor_set(x_553, 1, x_551); -return x_553; -} -} -else -{ -lean_object* x_554; lean_object* x_555; -lean_dec(x_536); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_554 = lean_ctor_get(x_541, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_541, 1); -lean_inc(x_555); -lean_dec(x_541); -x_8 = x_554; -x_9 = x_555; -goto block_14; -} -} -else -{ -lean_object* x_556; lean_object* x_557; -lean_dec(x_536); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_556 = lean_ctor_get(x_538, 0); -lean_inc(x_556); -x_557 = lean_ctor_get(x_538, 1); -lean_inc(x_557); -lean_dec(x_538); -x_8 = x_556; -x_9 = x_557; -goto block_14; -} -} -else -{ -lean_object* x_558; lean_object* x_559; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_558 = lean_ctor_get(x_535, 0); -lean_inc(x_558); -x_559 = lean_ctor_get(x_535, 1); -lean_inc(x_559); -lean_dec(x_535); -x_8 = x_558; -x_9 = x_559; -goto block_14; -} -} -else -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; -lean_dec(x_520); -lean_dec(x_497); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_560 = lean_ctor_get(x_519, 1); -lean_inc(x_560); if (lean_is_exclusive(x_519)) { lean_ctor_release(x_519, 0); lean_ctor_release(x_519, 1); - x_561 = x_519; + x_522 = x_519; } else { lean_dec_ref(x_519); - x_561 = lean_box(0); + x_522 = lean_box(0); } -if (lean_is_scalar(x_561)) { - x_562 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_522)) { + x_523 = lean_alloc_ctor(1, 2, 0); } else { - x_562 = x_561; + x_523 = x_522; + lean_ctor_set_tag(x_523, 1); } -lean_ctor_set(x_562, 0, x_112); -lean_ctor_set(x_562, 1, x_560); -return x_562; +lean_ctor_set(x_523, 0, x_520); +lean_ctor_set(x_523, 1, x_122); +if (lean_is_scalar(x_518)) { + x_524 = lean_alloc_ctor(1, 2, 0); +} else { + x_524 = x_518; + lean_ctor_set_tag(x_524, 1); } -} -else +lean_ctor_set(x_524, 0, x_516); +lean_ctor_set(x_524, 1, x_523); +x_525 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_526 = l_Lean_Expr_const___override(x_525, x_524); +x_527 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_528 = lean_array_push(x_527, x_66); +x_529 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_530 = lean_array_push(x_528, x_529); +lean_inc(x_52); +x_531 = lean_array_push(x_530, x_52); +x_532 = l_Lean_mkAppN(x_526, x_531); +x_533 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_534 = 0; +lean_inc(x_66); +x_535 = l_Lean_Expr_forallE___override(x_533, x_66, x_532, x_534); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_536 = l_Lean_Meta_trySynthInstance(x_535, x_129, x_3, x_4, x_5, x_6, x_521); +if (lean_obj_tag(x_536) == 0) { -lean_object* x_563; lean_object* x_564; -lean_dec(x_497); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_537; +x_537 = lean_ctor_get(x_536, 0); +lean_inc(x_537); +if (lean_obj_tag(x_537) == 1) +{ +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; 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; lean_object* x_551; lean_object* x_552; +x_538 = lean_ctor_get(x_536, 1); +lean_inc(x_538); +lean_dec(x_536); +x_539 = lean_ctor_get(x_537, 0); +lean_inc(x_539); +lean_dec(x_537); +x_540 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_541 = l_Lean_Expr_const___override(x_540, x_134); +x_542 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_543 = lean_array_push(x_542, x_65); +x_544 = lean_array_push(x_543, x_51); +x_545 = lean_array_push(x_544, x_66); +x_546 = lean_array_push(x_545, x_52); +x_547 = lean_array_push(x_546, x_133); +x_548 = lean_array_push(x_547, x_539); +x_549 = lean_array_push(x_548, x_514); +x_550 = lean_array_push(x_549, x_1); +x_551 = l_Lean_mkAppN(x_541, x_550); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_552 = l_Lean_Meta_expandCoe(x_551, x_3, x_4, x_5, x_6, x_538); +if (lean_obj_tag(x_552) == 0) +{ +lean_object* x_553; lean_object* x_554; lean_object* x_555; +x_553 = lean_ctor_get(x_552, 0); +lean_inc(x_553); +x_554 = lean_ctor_get(x_552, 1); +lean_inc(x_554); +lean_dec(x_552); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_553); +x_555 = lean_infer_type(x_553, x_3, x_4, x_5, x_6, x_554); +if (lean_obj_tag(x_555) == 0) +{ +lean_object* x_556; lean_object* x_557; lean_object* x_558; +x_556 = lean_ctor_get(x_555, 0); +lean_inc(x_556); +x_557 = lean_ctor_get(x_555, 1); +lean_inc(x_557); +lean_dec(x_555); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_558 = l_Lean_Meta_isExprDefEq(x_32, x_556, x_3, x_4, x_5, x_6, x_557); +if (lean_obj_tag(x_558) == 0) +{ +lean_object* x_559; uint8_t x_560; +x_559 = lean_ctor_get(x_558, 0); +lean_inc(x_559); +x_560 = lean_unbox(x_559); +lean_dec(x_559); +if (x_560 == 0) +{ +lean_object* x_561; lean_object* x_562; lean_object* x_563; +lean_dec(x_553); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_563 = lean_ctor_get(x_519, 0); -lean_inc(x_563); -x_564 = lean_ctor_get(x_519, 1); +x_561 = lean_ctor_get(x_558, 1); +lean_inc(x_561); +if (lean_is_exclusive(x_558)) { + lean_ctor_release(x_558, 0); + lean_ctor_release(x_558, 1); + x_562 = x_558; +} else { + lean_dec_ref(x_558); + x_562 = lean_box(0); +} +if (lean_is_scalar(x_562)) { + x_563 = lean_alloc_ctor(0, 2, 0); +} else { + x_563 = x_562; +} +lean_ctor_set(x_563, 0, x_129); +lean_ctor_set(x_563, 1, x_561); +return x_563; +} +else +{ +lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; +x_564 = lean_ctor_get(x_558, 1); lean_inc(x_564); -lean_dec(x_519); -x_8 = x_563; -x_9 = x_564; -goto block_14; -} -} -else -{ -lean_object* x_565; lean_object* x_566; -lean_dec(x_501); -lean_dec(x_499); -lean_dec(x_497); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_558); +x_565 = lean_box(0); +x_566 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_553, x_565, x_3, x_4, x_5, x_6, x_564); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_565 = lean_ctor_get(x_502, 0); -lean_inc(x_565); -x_566 = lean_ctor_get(x_502, 1); -lean_inc(x_566); -lean_dec(x_502); -x_8 = x_565; -x_9 = x_566; -goto block_14; -} -} -else -{ -lean_object* x_567; lean_object* x_568; -lean_dec(x_497); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_567 = lean_ctor_get(x_498, 0); +x_567 = lean_ctor_get(x_566, 0); lean_inc(x_567); -x_568 = lean_ctor_get(x_498, 1); +x_568 = lean_ctor_get(x_566, 1); lean_inc(x_568); -lean_dec(x_498); -x_8 = x_567; -x_9 = x_568; -goto block_14; +if (lean_is_exclusive(x_566)) { + lean_ctor_release(x_566, 0); + lean_ctor_release(x_566, 1); + x_569 = x_566; +} else { + lean_dec_ref(x_566); + x_569 = lean_box(0); } +if (lean_is_scalar(x_569)) { + x_570 = lean_alloc_ctor(0, 2, 0); +} else { + x_570 = x_569; } -} -else -{ -lean_object* x_569; lean_object* x_570; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_569 = lean_ctor_get(x_491, 0); -lean_inc(x_569); -x_570 = lean_ctor_get(x_491, 1); -lean_inc(x_570); -lean_dec(x_491); -x_8 = x_569; -x_9 = x_570; -goto block_14; +lean_ctor_set(x_570, 0, x_567); +lean_ctor_set(x_570, 1, x_568); +return x_570; } } else { -lean_object* x_571; lean_object* x_572; lean_object* x_573; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_571; lean_object* x_572; +lean_dec(x_553); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_571 = lean_ctor_get(x_487, 1); +x_571 = lean_ctor_get(x_558, 0); lean_inc(x_571); -if (lean_is_exclusive(x_487)) { - lean_ctor_release(x_487, 0); - lean_ctor_release(x_487, 1); - x_572 = x_487; -} else { - lean_dec_ref(x_487); - x_572 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_483); -if (lean_is_scalar(x_572)) { - x_573 = lean_alloc_ctor(0, 2, 0); -} else { - x_573 = x_572; -} -lean_ctor_set(x_573, 0, x_38); -lean_ctor_set(x_573, 1, x_571); -return x_573; +x_572 = lean_ctor_get(x_558, 1); +lean_inc(x_572); +lean_dec(x_558); +x_8 = x_571; +x_9 = x_572; +goto block_16; } } else { -lean_object* x_574; lean_object* x_575; -lean_dec(x_483); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_573; lean_object* x_574; +lean_dec(x_553); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_574 = lean_ctor_get(x_487, 0); +x_573 = lean_ctor_get(x_555, 0); +lean_inc(x_573); +x_574 = lean_ctor_get(x_555, 1); lean_inc(x_574); -x_575 = lean_ctor_get(x_487, 1); +lean_dec(x_555); +x_8 = x_573; +x_9 = x_574; +goto block_16; +} +} +else +{ +lean_object* x_575; lean_object* x_576; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_575 = lean_ctor_get(x_552, 0); lean_inc(x_575); -lean_dec(x_487); -x_8 = x_574; -x_9 = x_575; -goto block_14; -} -} -else -{ -lean_object* x_576; lean_object* x_577; -lean_dec(x_483); -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_576 = lean_ctor_get(x_484, 0); +x_576 = lean_ctor_get(x_552, 1); lean_inc(x_576); -x_577 = lean_ctor_get(x_484, 1); -lean_inc(x_577); -lean_dec(x_484); -x_8 = x_576; -x_9 = x_577; -goto block_14; +lean_dec(x_552); +x_8 = x_575; +x_9 = x_576; +goto block_16; } } else { -lean_object* x_578; lean_object* x_579; -lean_dec(x_467); -lean_free_object(x_117); -lean_dec(x_119); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_577; lean_object* x_578; lean_object* x_579; +lean_dec(x_537); +lean_dec(x_514); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_578 = lean_ctor_get(x_469, 0); -lean_inc(x_578); -x_579 = lean_ctor_get(x_469, 1); -lean_inc(x_579); -lean_dec(x_469); -x_8 = x_578; -x_9 = x_579; -goto block_14; +x_577 = lean_ctor_get(x_536, 1); +lean_inc(x_577); +if (lean_is_exclusive(x_536)) { + lean_ctor_release(x_536, 0); + lean_ctor_release(x_536, 1); + x_578 = x_536; +} else { + lean_dec_ref(x_536); + x_578 = lean_box(0); } +if (lean_is_scalar(x_578)) { + x_579 = lean_alloc_ctor(0, 2, 0); +} else { + x_579 = x_578; +} +lean_ctor_set(x_579, 0, x_129); +lean_ctor_set(x_579, 1, x_577); +return x_579; } } else { lean_object* x_580; lean_object* x_581; -lean_free_object(x_117); -lean_dec(x_119); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_514); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_580 = lean_ctor_get(x_121, 0); +x_580 = lean_ctor_get(x_536, 0); lean_inc(x_580); -x_581 = lean_ctor_get(x_121, 1); +x_581 = lean_ctor_get(x_536, 1); lean_inc(x_581); -lean_dec(x_121); +lean_dec(x_536); x_8 = x_580; x_9 = x_581; -goto block_14; +goto block_16; } } else { -lean_object* x_582; lean_object* x_583; lean_object* x_584; -x_582 = lean_ctor_get(x_117, 0); -x_583 = lean_ctor_get(x_117, 1); -lean_inc(x_583); -lean_inc(x_582); -lean_dec(x_117); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_584 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_583); -if (lean_obj_tag(x_584) == 0) -{ -lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; -x_585 = lean_ctor_get(x_584, 0); -lean_inc(x_585); -x_586 = lean_ctor_get(x_584, 1); -lean_inc(x_586); -if (lean_is_exclusive(x_584)) { - lean_ctor_release(x_584, 0); - lean_ctor_release(x_584, 1); - x_587 = x_584; -} else { - lean_dec_ref(x_584); - x_587 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_588 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_586); -if (lean_obj_tag(x_588) == 0) -{ -lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* 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; -x_589 = lean_ctor_get(x_588, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_588, 1); -lean_inc(x_590); -if (lean_is_exclusive(x_588)) { - lean_ctor_release(x_588, 0); - lean_ctor_release(x_588, 1); - x_591 = x_588; -} else { - lean_dec_ref(x_588); - x_591 = lean_box(0); -} -if (lean_is_scalar(x_591)) { - x_592 = lean_alloc_ctor(1, 2, 0); -} else { - x_592 = x_591; - lean_ctor_set_tag(x_592, 1); -} -lean_ctor_set(x_592, 0, x_589); -lean_ctor_set(x_592, 1, x_105); -if (lean_is_scalar(x_587)) { - x_593 = lean_alloc_ctor(1, 2, 0); -} else { - x_593 = x_587; - lean_ctor_set_tag(x_593, 1); -} -lean_ctor_set(x_593, 0, x_585); -lean_ctor_set(x_593, 1, x_592); -x_594 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_594, 0, x_582); -lean_ctor_set(x_594, 1, x_593); -x_595 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_594); -x_596 = l_Lean_Expr_const___override(x_595, x_594); -x_597 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_598 = lean_array_push(x_597, x_48); -lean_inc(x_35); -x_599 = lean_array_push(x_598, x_35); -lean_inc(x_116); -x_600 = lean_array_push(x_599, x_116); -lean_inc(x_49); -x_601 = lean_array_push(x_600, x_49); -lean_inc(x_1); -x_602 = lean_array_push(x_601, x_1); -x_603 = l_Lean_mkAppN(x_596, x_602); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_603); -x_604 = lean_infer_type(x_603, x_3, x_4, x_5, x_6, x_590); -if (lean_obj_tag(x_604) == 0) -{ -lean_object* x_605; lean_object* x_606; lean_object* x_607; -x_605 = lean_ctor_get(x_604, 0); -lean_inc(x_605); -x_606 = lean_ctor_get(x_604, 1); -lean_inc(x_606); -lean_dec(x_604); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_607 = l_Lean_Meta_isExprDefEq(x_16, x_605, x_3, x_4, x_5, x_6, x_606); -if (lean_obj_tag(x_607) == 0) -{ -lean_object* x_608; uint8_t x_609; -x_608 = lean_ctor_get(x_607, 0); -lean_inc(x_608); -x_609 = lean_unbox(x_608); -lean_dec(x_608); -if (x_609 == 0) -{ -lean_object* x_610; lean_object* x_611; -lean_dec(x_603); -lean_free_object(x_38); -x_610 = lean_ctor_get(x_607, 1); -lean_inc(x_610); -lean_dec(x_607); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_611 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_610); -if (lean_obj_tag(x_611) == 0) -{ -lean_object* x_612; -x_612 = lean_ctor_get(x_611, 0); -lean_inc(x_612); -if (lean_obj_tag(x_612) == 0) -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_582; lean_object* x_583; +lean_dec(x_518); +lean_dec(x_516); +lean_dec(x_514); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_613 = lean_ctor_get(x_611, 1); -lean_inc(x_613); -if (lean_is_exclusive(x_611)) { - lean_ctor_release(x_611, 0); - lean_ctor_release(x_611, 1); - x_614 = x_611; -} else { - lean_dec_ref(x_611); - x_614 = lean_box(0); +x_582 = lean_ctor_get(x_519, 0); +lean_inc(x_582); +x_583 = lean_ctor_get(x_519, 1); +lean_inc(x_583); +lean_dec(x_519); +x_8 = x_582; +x_9 = x_583; +goto block_16; } -if (lean_is_scalar(x_614)) { - x_615 = lean_alloc_ctor(0, 2, 0); -} else { - x_615 = x_614; -} -lean_ctor_set(x_615, 0, x_112); -lean_ctor_set(x_615, 1, x_613); -return x_615; } else { -lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_616 = lean_ctor_get(x_611, 1); -lean_inc(x_616); -lean_dec(x_611); -x_617 = lean_ctor_get(x_612, 0); -lean_inc(x_617); -lean_dec(x_612); +lean_object* x_584; lean_object* x_585; +lean_dec(x_514); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_584 = lean_ctor_get(x_515, 0); +lean_inc(x_584); +x_585 = lean_ctor_get(x_515, 1); +lean_inc(x_585); +lean_dec(x_515); +x_8 = x_584; +x_9 = x_585; +goto block_16; +} +} +} +else +{ +lean_object* x_586; lean_object* x_587; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_586 = lean_ctor_get(x_508, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_508, 1); +lean_inc(x_587); +lean_dec(x_508); +x_8 = x_586; +x_9 = x_587; +goto block_16; +} +} +else +{ +lean_object* x_588; lean_object* x_589; lean_object* x_590; +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_588 = lean_ctor_get(x_504, 1); +lean_inc(x_588); +if (lean_is_exclusive(x_504)) { + lean_ctor_release(x_504, 0); + lean_ctor_release(x_504, 1); + x_589 = x_504; +} else { + lean_dec_ref(x_504); + x_589 = lean_box(0); +} +lean_ctor_set(x_54, 0, x_500); +if (lean_is_scalar(x_589)) { + x_590 = lean_alloc_ctor(0, 2, 0); +} else { + x_590 = x_589; +} +lean_ctor_set(x_590, 0, x_54); +lean_ctor_set(x_590, 1, x_588); +return x_590; +} +} +else +{ +lean_object* x_591; lean_object* x_592; +lean_dec(x_500); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_591 = lean_ctor_get(x_504, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_504, 1); +lean_inc(x_592); +lean_dec(x_504); +x_8 = x_591; +x_9 = x_592; +goto block_16; +} +} +else +{ +lean_object* x_593; lean_object* x_594; +lean_dec(x_500); +lean_dec(x_134); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_593 = lean_ctor_get(x_501, 0); +lean_inc(x_593); +x_594 = lean_ctor_get(x_501, 1); +lean_inc(x_594); +lean_dec(x_501); +x_8 = x_593; +x_9 = x_594; +goto block_16; +} +} +else +{ +lean_object* x_595; lean_object* x_596; +lean_dec(x_484); +lean_free_object(x_134); +lean_dec(x_136); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_595 = lean_ctor_get(x_486, 0); +lean_inc(x_595); +x_596 = lean_ctor_get(x_486, 1); +lean_inc(x_596); +lean_dec(x_486); +x_8 = x_595; +x_9 = x_596; +goto block_16; +} +} +} +else +{ +lean_object* x_597; lean_object* x_598; +lean_free_object(x_134); +lean_dec(x_136); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_597 = lean_ctor_get(x_138, 0); +lean_inc(x_597); +x_598 = lean_ctor_get(x_138, 1); +lean_inc(x_598); +lean_dec(x_138); +x_8 = x_597; +x_9 = x_598; +goto block_16; +} +} +else +{ +lean_object* x_599; lean_object* x_600; lean_object* x_601; +x_599 = lean_ctor_get(x_134, 0); +x_600 = lean_ctor_get(x_134, 1); +lean_inc(x_600); +lean_inc(x_599); +lean_dec(x_134); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_618 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_616); -if (lean_obj_tag(x_618) == 0) +x_601 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_600); +if (lean_obj_tag(x_601) == 0) { -lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; -x_619 = lean_ctor_get(x_618, 0); -lean_inc(x_619); -x_620 = lean_ctor_get(x_618, 1); +lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; +x_602 = lean_ctor_get(x_601, 0); +lean_inc(x_602); +x_603 = lean_ctor_get(x_601, 1); +lean_inc(x_603); +if (lean_is_exclusive(x_601)) { + lean_ctor_release(x_601, 0); + lean_ctor_release(x_601, 1); + x_604 = x_601; +} else { + lean_dec_ref(x_601); + x_604 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_605 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_603); +if (lean_obj_tag(x_605) == 0) +{ +lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; 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; lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_606 = lean_ctor_get(x_605, 0); +lean_inc(x_606); +x_607 = lean_ctor_get(x_605, 1); +lean_inc(x_607); +if (lean_is_exclusive(x_605)) { + lean_ctor_release(x_605, 0); + lean_ctor_release(x_605, 1); + x_608 = x_605; +} else { + lean_dec_ref(x_605); + x_608 = lean_box(0); +} +if (lean_is_scalar(x_608)) { + x_609 = lean_alloc_ctor(1, 2, 0); +} else { + x_609 = x_608; + lean_ctor_set_tag(x_609, 1); +} +lean_ctor_set(x_609, 0, x_606); +lean_ctor_set(x_609, 1, x_122); +if (lean_is_scalar(x_604)) { + x_610 = lean_alloc_ctor(1, 2, 0); +} else { + x_610 = x_604; + lean_ctor_set_tag(x_610, 1); +} +lean_ctor_set(x_610, 0, x_602); +lean_ctor_set(x_610, 1, x_609); +x_611 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_611, 0, x_599); +lean_ctor_set(x_611, 1, x_610); +x_612 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_611); +x_613 = l_Lean_Expr_const___override(x_612, x_611); +x_614 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_615 = lean_array_push(x_614, x_65); +lean_inc(x_51); +x_616 = lean_array_push(x_615, x_51); +lean_inc(x_133); +x_617 = lean_array_push(x_616, x_133); +lean_inc(x_66); +x_618 = lean_array_push(x_617, x_66); +lean_inc(x_1); +x_619 = lean_array_push(x_618, x_1); +x_620 = l_Lean_mkAppN(x_613, x_619); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); 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); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_622 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_620); -if (lean_obj_tag(x_622) == 0) +x_621 = lean_infer_type(x_620, x_3, x_4, x_5, x_6, x_607); +if (lean_obj_tag(x_621) == 0) { -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; uint8_t x_637; lean_object* x_638; lean_object* x_639; -x_623 = lean_ctor_get(x_622, 0); +lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_622 = lean_ctor_get(x_621, 0); +lean_inc(x_622); +x_623 = lean_ctor_get(x_621, 1); lean_inc(x_623); -x_624 = lean_ctor_get(x_622, 1); -lean_inc(x_624); -if (lean_is_exclusive(x_622)) { - lean_ctor_release(x_622, 0); - lean_ctor_release(x_622, 1); - x_625 = x_622; -} else { - lean_dec_ref(x_622); - x_625 = lean_box(0); -} -if (lean_is_scalar(x_625)) { - x_626 = lean_alloc_ctor(1, 2, 0); -} else { - x_626 = x_625; - lean_ctor_set_tag(x_626, 1); -} -lean_ctor_set(x_626, 0, x_623); -lean_ctor_set(x_626, 1, x_105); -if (lean_is_scalar(x_621)) { - x_627 = lean_alloc_ctor(1, 2, 0); -} else { - x_627 = x_621; - lean_ctor_set_tag(x_627, 1); -} -lean_ctor_set(x_627, 0, x_619); -lean_ctor_set(x_627, 1, x_626); -x_628 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_629 = l_Lean_Expr_const___override(x_628, x_627); -x_630 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_631 = lean_array_push(x_630, x_49); -x_632 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_633 = lean_array_push(x_631, x_632); -lean_inc(x_36); -x_634 = lean_array_push(x_633, x_36); -x_635 = l_Lean_mkAppN(x_629, x_634); -x_636 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_637 = 0; -lean_inc(x_49); -x_638 = l_Lean_Expr_forallE___override(x_636, x_49, x_635, x_637); +lean_dec(x_621); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_639 = l_Lean_Meta_trySynthInstance(x_638, x_112, x_3, x_4, x_5, x_6, x_624); +lean_inc(x_32); +x_624 = l_Lean_Meta_isExprDefEq(x_32, x_622, x_3, x_4, x_5, x_6, x_623); +if (lean_obj_tag(x_624) == 0) +{ +lean_object* x_625; uint8_t x_626; +x_625 = lean_ctor_get(x_624, 0); +lean_inc(x_625); +x_626 = lean_unbox(x_625); +lean_dec(x_625); +if (x_626 == 0) +{ +lean_object* x_627; lean_object* x_628; +lean_dec(x_620); +lean_free_object(x_54); +x_627 = lean_ctor_get(x_624, 1); +lean_inc(x_627); +lean_dec(x_624); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_628 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_627); +if (lean_obj_tag(x_628) == 0) +{ +lean_object* x_629; +x_629 = lean_ctor_get(x_628, 0); +lean_inc(x_629); +if (lean_obj_tag(x_629) == 0) +{ +lean_object* x_630; lean_object* x_631; lean_object* x_632; +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_630 = lean_ctor_get(x_628, 1); +lean_inc(x_630); +if (lean_is_exclusive(x_628)) { + lean_ctor_release(x_628, 0); + lean_ctor_release(x_628, 1); + x_631 = x_628; +} else { + lean_dec_ref(x_628); + x_631 = lean_box(0); +} +if (lean_is_scalar(x_631)) { + x_632 = lean_alloc_ctor(0, 2, 0); +} else { + x_632 = x_631; +} +lean_ctor_set(x_632, 0, x_129); +lean_ctor_set(x_632, 1, x_630); +return x_632; +} +else +{ +lean_object* x_633; lean_object* x_634; lean_object* x_635; +x_633 = lean_ctor_get(x_628, 1); +lean_inc(x_633); +lean_dec(x_628); +x_634 = lean_ctor_get(x_629, 0); +lean_inc(x_634); +lean_dec(x_629); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_635 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_633); +if (lean_obj_tag(x_635) == 0) +{ +lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; +x_636 = lean_ctor_get(x_635, 0); +lean_inc(x_636); +x_637 = lean_ctor_get(x_635, 1); +lean_inc(x_637); +if (lean_is_exclusive(x_635)) { + lean_ctor_release(x_635, 0); + lean_ctor_release(x_635, 1); + x_638 = x_635; +} else { + lean_dec_ref(x_635); + x_638 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_639 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_637); if (lean_obj_tag(x_639) == 0) { -lean_object* x_640; +lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* 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; uint8_t x_654; lean_object* x_655; lean_object* x_656; x_640 = lean_ctor_get(x_639, 0); lean_inc(x_640); -if (lean_obj_tag(x_640) == 1) -{ -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* 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; x_641 = lean_ctor_get(x_639, 1); lean_inc(x_641); -lean_dec(x_639); -x_642 = lean_ctor_get(x_640, 0); -lean_inc(x_642); -lean_dec(x_640); -x_643 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_644 = l_Lean_Expr_const___override(x_643, x_594); -x_645 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_646 = lean_array_push(x_645, x_48); -x_647 = lean_array_push(x_646, x_35); -x_648 = lean_array_push(x_647, x_49); -x_649 = lean_array_push(x_648, x_36); -x_650 = lean_array_push(x_649, x_116); -x_651 = lean_array_push(x_650, x_642); -x_652 = lean_array_push(x_651, x_617); -x_653 = lean_array_push(x_652, x_1); -x_654 = l_Lean_mkAppN(x_644, x_653); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_655 = l_Lean_Meta_expandCoe(x_654, x_3, x_4, x_5, x_6, x_641); -if (lean_obj_tag(x_655) == 0) -{ -lean_object* x_656; lean_object* x_657; lean_object* x_658; -x_656 = lean_ctor_get(x_655, 0); -lean_inc(x_656); -x_657 = lean_ctor_get(x_655, 1); -lean_inc(x_657); -lean_dec(x_655); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_656); -x_658 = lean_infer_type(x_656, x_3, x_4, x_5, x_6, x_657); -if (lean_obj_tag(x_658) == 0) -{ -lean_object* x_659; lean_object* x_660; lean_object* x_661; -x_659 = lean_ctor_get(x_658, 0); -lean_inc(x_659); -x_660 = lean_ctor_get(x_658, 1); -lean_inc(x_660); -lean_dec(x_658); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_661 = l_Lean_Meta_isExprDefEq(x_16, x_659, x_3, x_4, x_5, x_6, x_660); -if (lean_obj_tag(x_661) == 0) -{ -lean_object* x_662; uint8_t x_663; -x_662 = lean_ctor_get(x_661, 0); -lean_inc(x_662); -x_663 = lean_unbox(x_662); -lean_dec(x_662); -if (x_663 == 0) -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; -lean_dec(x_656); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_664 = lean_ctor_get(x_661, 1); -lean_inc(x_664); -if (lean_is_exclusive(x_661)) { - lean_ctor_release(x_661, 0); - lean_ctor_release(x_661, 1); - x_665 = x_661; -} else { - lean_dec_ref(x_661); - x_665 = lean_box(0); -} -if (lean_is_scalar(x_665)) { - x_666 = lean_alloc_ctor(0, 2, 0); -} else { - x_666 = x_665; -} -lean_ctor_set(x_666, 0, x_112); -lean_ctor_set(x_666, 1, x_664); -return x_666; -} -else -{ -lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; -x_667 = lean_ctor_get(x_661, 1); -lean_inc(x_667); -lean_dec(x_661); -x_668 = lean_box(0); -x_669 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_656, x_668, x_3, x_4, x_5, x_6, x_667); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_670 = lean_ctor_get(x_669, 0); -lean_inc(x_670); -x_671 = lean_ctor_get(x_669, 1); -lean_inc(x_671); -if (lean_is_exclusive(x_669)) { - lean_ctor_release(x_669, 0); - lean_ctor_release(x_669, 1); - x_672 = x_669; -} else { - lean_dec_ref(x_669); - x_672 = lean_box(0); -} -if (lean_is_scalar(x_672)) { - x_673 = lean_alloc_ctor(0, 2, 0); -} else { - x_673 = x_672; -} -lean_ctor_set(x_673, 0, x_670); -lean_ctor_set(x_673, 1, x_671); -return x_673; -} -} -else -{ -lean_object* x_674; lean_object* x_675; -lean_dec(x_656); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_674 = lean_ctor_get(x_661, 0); -lean_inc(x_674); -x_675 = lean_ctor_get(x_661, 1); -lean_inc(x_675); -lean_dec(x_661); -x_8 = x_674; -x_9 = x_675; -goto block_14; -} -} -else -{ -lean_object* x_676; lean_object* x_677; -lean_dec(x_656); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_676 = lean_ctor_get(x_658, 0); -lean_inc(x_676); -x_677 = lean_ctor_get(x_658, 1); -lean_inc(x_677); -lean_dec(x_658); -x_8 = x_676; -x_9 = x_677; -goto block_14; -} -} -else -{ -lean_object* x_678; lean_object* x_679; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_678 = lean_ctor_get(x_655, 0); -lean_inc(x_678); -x_679 = lean_ctor_get(x_655, 1); -lean_inc(x_679); -lean_dec(x_655); -x_8 = x_678; -x_9 = x_679; -goto block_14; -} -} -else -{ -lean_object* x_680; lean_object* x_681; lean_object* x_682; -lean_dec(x_640); -lean_dec(x_617); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_680 = lean_ctor_get(x_639, 1); -lean_inc(x_680); if (lean_is_exclusive(x_639)) { lean_ctor_release(x_639, 0); lean_ctor_release(x_639, 1); - x_681 = x_639; + x_642 = x_639; } else { lean_dec_ref(x_639); - x_681 = lean_box(0); + x_642 = lean_box(0); } -if (lean_is_scalar(x_681)) { - x_682 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_642)) { + x_643 = lean_alloc_ctor(1, 2, 0); } else { - x_682 = x_681; + x_643 = x_642; + lean_ctor_set_tag(x_643, 1); } -lean_ctor_set(x_682, 0, x_112); -lean_ctor_set(x_682, 1, x_680); -return x_682; +lean_ctor_set(x_643, 0, x_640); +lean_ctor_set(x_643, 1, x_122); +if (lean_is_scalar(x_638)) { + x_644 = lean_alloc_ctor(1, 2, 0); +} else { + x_644 = x_638; + lean_ctor_set_tag(x_644, 1); } -} -else +lean_ctor_set(x_644, 0, x_636); +lean_ctor_set(x_644, 1, x_643); +x_645 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_646 = l_Lean_Expr_const___override(x_645, x_644); +x_647 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_648 = lean_array_push(x_647, x_66); +x_649 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_650 = lean_array_push(x_648, x_649); +lean_inc(x_52); +x_651 = lean_array_push(x_650, x_52); +x_652 = l_Lean_mkAppN(x_646, x_651); +x_653 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_654 = 0; +lean_inc(x_66); +x_655 = l_Lean_Expr_forallE___override(x_653, x_66, x_652, x_654); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_656 = l_Lean_Meta_trySynthInstance(x_655, x_129, x_3, x_4, x_5, x_6, x_641); +if (lean_obj_tag(x_656) == 0) { -lean_object* x_683; lean_object* x_684; -lean_dec(x_617); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_657; +x_657 = lean_ctor_get(x_656, 0); +lean_inc(x_657); +if (lean_obj_tag(x_657) == 1) +{ +lean_object* x_658; lean_object* x_659; lean_object* x_660; 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; lean_object* x_670; lean_object* x_671; lean_object* x_672; +x_658 = lean_ctor_get(x_656, 1); +lean_inc(x_658); +lean_dec(x_656); +x_659 = lean_ctor_get(x_657, 0); +lean_inc(x_659); +lean_dec(x_657); +x_660 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_661 = l_Lean_Expr_const___override(x_660, x_611); +x_662 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_663 = lean_array_push(x_662, x_65); +x_664 = lean_array_push(x_663, x_51); +x_665 = lean_array_push(x_664, x_66); +x_666 = lean_array_push(x_665, x_52); +x_667 = lean_array_push(x_666, x_133); +x_668 = lean_array_push(x_667, x_659); +x_669 = lean_array_push(x_668, x_634); +x_670 = lean_array_push(x_669, x_1); +x_671 = l_Lean_mkAppN(x_661, x_670); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_672 = l_Lean_Meta_expandCoe(x_671, x_3, x_4, x_5, x_6, x_658); +if (lean_obj_tag(x_672) == 0) +{ +lean_object* x_673; lean_object* x_674; lean_object* x_675; +x_673 = lean_ctor_get(x_672, 0); +lean_inc(x_673); +x_674 = lean_ctor_get(x_672, 1); +lean_inc(x_674); +lean_dec(x_672); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_673); +x_675 = lean_infer_type(x_673, x_3, x_4, x_5, x_6, x_674); +if (lean_obj_tag(x_675) == 0) +{ +lean_object* x_676; lean_object* x_677; lean_object* x_678; +x_676 = lean_ctor_get(x_675, 0); +lean_inc(x_676); +x_677 = lean_ctor_get(x_675, 1); +lean_inc(x_677); +lean_dec(x_675); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_678 = l_Lean_Meta_isExprDefEq(x_32, x_676, x_3, x_4, x_5, x_6, x_677); +if (lean_obj_tag(x_678) == 0) +{ +lean_object* x_679; uint8_t x_680; +x_679 = lean_ctor_get(x_678, 0); +lean_inc(x_679); +x_680 = lean_unbox(x_679); +lean_dec(x_679); +if (x_680 == 0) +{ +lean_object* x_681; lean_object* x_682; lean_object* x_683; +lean_dec(x_673); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_683 = lean_ctor_get(x_639, 0); -lean_inc(x_683); -x_684 = lean_ctor_get(x_639, 1); +x_681 = lean_ctor_get(x_678, 1); +lean_inc(x_681); +if (lean_is_exclusive(x_678)) { + lean_ctor_release(x_678, 0); + lean_ctor_release(x_678, 1); + x_682 = x_678; +} else { + lean_dec_ref(x_678); + x_682 = lean_box(0); +} +if (lean_is_scalar(x_682)) { + x_683 = lean_alloc_ctor(0, 2, 0); +} else { + x_683 = x_682; +} +lean_ctor_set(x_683, 0, x_129); +lean_ctor_set(x_683, 1, x_681); +return x_683; +} +else +{ +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; +x_684 = lean_ctor_get(x_678, 1); lean_inc(x_684); -lean_dec(x_639); -x_8 = x_683; -x_9 = x_684; -goto block_14; -} -} -else -{ -lean_object* x_685; lean_object* x_686; -lean_dec(x_621); -lean_dec(x_619); -lean_dec(x_617); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_678); +x_685 = lean_box(0); +x_686 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_673, x_685, x_3, x_4, x_5, x_6, x_684); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_685 = lean_ctor_get(x_622, 0); -lean_inc(x_685); -x_686 = lean_ctor_get(x_622, 1); -lean_inc(x_686); -lean_dec(x_622); -x_8 = x_685; -x_9 = x_686; -goto block_14; -} -} -else -{ -lean_object* x_687; lean_object* x_688; -lean_dec(x_617); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_687 = lean_ctor_get(x_618, 0); +x_687 = lean_ctor_get(x_686, 0); lean_inc(x_687); -x_688 = lean_ctor_get(x_618, 1); +x_688 = lean_ctor_get(x_686, 1); lean_inc(x_688); -lean_dec(x_618); -x_8 = x_687; -x_9 = x_688; -goto block_14; +if (lean_is_exclusive(x_686)) { + lean_ctor_release(x_686, 0); + lean_ctor_release(x_686, 1); + x_689 = x_686; +} else { + lean_dec_ref(x_686); + x_689 = lean_box(0); } +if (lean_is_scalar(x_689)) { + x_690 = lean_alloc_ctor(0, 2, 0); +} else { + x_690 = x_689; } -} -else -{ -lean_object* x_689; lean_object* x_690; -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_689 = lean_ctor_get(x_611, 0); -lean_inc(x_689); -x_690 = lean_ctor_get(x_611, 1); -lean_inc(x_690); -lean_dec(x_611); -x_8 = x_689; -x_9 = x_690; -goto block_14; +lean_ctor_set(x_690, 0, x_687); +lean_ctor_set(x_690, 1, x_688); +return x_690; } } else { -lean_object* x_691; lean_object* x_692; lean_object* x_693; -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_691; lean_object* x_692; +lean_dec(x_673); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_691 = lean_ctor_get(x_607, 1); +x_691 = lean_ctor_get(x_678, 0); lean_inc(x_691); -if (lean_is_exclusive(x_607)) { - lean_ctor_release(x_607, 0); - lean_ctor_release(x_607, 1); - x_692 = x_607; -} else { - lean_dec_ref(x_607); - x_692 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_603); -if (lean_is_scalar(x_692)) { - x_693 = lean_alloc_ctor(0, 2, 0); -} else { - x_693 = x_692; -} -lean_ctor_set(x_693, 0, x_38); -lean_ctor_set(x_693, 1, x_691); -return x_693; +x_692 = lean_ctor_get(x_678, 1); +lean_inc(x_692); +lean_dec(x_678); +x_8 = x_691; +x_9 = x_692; +goto block_16; } } else { -lean_object* x_694; lean_object* x_695; -lean_dec(x_603); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_693; lean_object* x_694; +lean_dec(x_673); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_694 = lean_ctor_get(x_607, 0); +x_693 = lean_ctor_get(x_675, 0); +lean_inc(x_693); +x_694 = lean_ctor_get(x_675, 1); lean_inc(x_694); -x_695 = lean_ctor_get(x_607, 1); +lean_dec(x_675); +x_8 = x_693; +x_9 = x_694; +goto block_16; +} +} +else +{ +lean_object* x_695; lean_object* x_696; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_695 = lean_ctor_get(x_672, 0); lean_inc(x_695); -lean_dec(x_607); -x_8 = x_694; -x_9 = x_695; -goto block_14; -} -} -else -{ -lean_object* x_696; lean_object* x_697; -lean_dec(x_603); -lean_dec(x_594); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_696 = lean_ctor_get(x_604, 0); +x_696 = lean_ctor_get(x_672, 1); lean_inc(x_696); -x_697 = lean_ctor_get(x_604, 1); -lean_inc(x_697); -lean_dec(x_604); -x_8 = x_696; -x_9 = x_697; -goto block_14; +lean_dec(x_672); +x_8 = x_695; +x_9 = x_696; +goto block_16; } } else { -lean_object* x_698; lean_object* x_699; -lean_dec(x_587); -lean_dec(x_585); -lean_dec(x_582); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_697; lean_object* x_698; lean_object* x_699; +lean_dec(x_657); +lean_dec(x_634); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_698 = lean_ctor_get(x_588, 0); -lean_inc(x_698); -x_699 = lean_ctor_get(x_588, 1); -lean_inc(x_699); -lean_dec(x_588); -x_8 = x_698; -x_9 = x_699; -goto block_14; +x_697 = lean_ctor_get(x_656, 1); +lean_inc(x_697); +if (lean_is_exclusive(x_656)) { + lean_ctor_release(x_656, 0); + lean_ctor_release(x_656, 1); + x_698 = x_656; +} else { + lean_dec_ref(x_656); + x_698 = lean_box(0); +} +if (lean_is_scalar(x_698)) { + x_699 = lean_alloc_ctor(0, 2, 0); +} else { + x_699 = x_698; +} +lean_ctor_set(x_699, 0, x_129); +lean_ctor_set(x_699, 1, x_697); +return x_699; } } else { lean_object* x_700; lean_object* x_701; -lean_dec(x_582); -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_634); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_700 = lean_ctor_get(x_584, 0); +x_700 = lean_ctor_get(x_656, 0); lean_inc(x_700); -x_701 = lean_ctor_get(x_584, 1); +x_701 = lean_ctor_get(x_656, 1); lean_inc(x_701); -lean_dec(x_584); +lean_dec(x_656); x_8 = x_700; x_9 = x_701; -goto block_14; -} +goto block_16; } } else { lean_object* x_702; lean_object* x_703; -lean_dec(x_116); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_638); +lean_dec(x_636); +lean_dec(x_634); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_702 = lean_ctor_get(x_117, 0); +x_702 = lean_ctor_get(x_639, 0); lean_inc(x_702); -x_703 = lean_ctor_get(x_117, 1); +x_703 = lean_ctor_get(x_639, 1); lean_inc(x_703); -lean_dec(x_117); +lean_dec(x_639); x_8 = x_702; x_9 = x_703; -goto block_14; +goto block_16; } } else { -uint8_t x_704; -lean_dec(x_114); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_704; lean_object* x_705; +lean_dec(x_634); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_704 = !lean_is_exclusive(x_113); -if (x_704 == 0) -{ -lean_object* x_705; -x_705 = lean_ctor_get(x_113, 0); -lean_dec(x_705); -lean_ctor_set(x_113, 0, x_112); -return x_113; +x_704 = lean_ctor_get(x_635, 0); +lean_inc(x_704); +x_705 = lean_ctor_get(x_635, 1); +lean_inc(x_705); +lean_dec(x_635); +x_8 = x_704; +x_9 = x_705; +goto block_16; +} +} } else { lean_object* x_706; lean_object* x_707; -x_706 = lean_ctor_get(x_113, 1); -lean_inc(x_706); -lean_dec(x_113); -x_707 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_707, 0, x_112); -lean_ctor_set(x_707, 1, x_706); -return x_707; -} -} -} -else -{ -lean_object* x_708; lean_object* x_709; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_708 = lean_ctor_get(x_113, 0); -lean_inc(x_708); -x_709 = lean_ctor_get(x_113, 1); -lean_inc(x_709); -lean_dec(x_113); -x_8 = x_708; -x_9 = x_709; -goto block_14; +x_706 = lean_ctor_get(x_628, 0); +lean_inc(x_706); +x_707 = lean_ctor_get(x_628, 1); +lean_inc(x_707); +lean_dec(x_628); +x_8 = x_706; +x_9 = x_707; +goto block_16; } } else { -lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_710 = lean_ctor_get(x_102, 0); -x_711 = lean_ctor_get(x_102, 1); +lean_object* x_708; lean_object* x_709; lean_object* x_710; +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_708 = lean_ctor_get(x_624, 1); +lean_inc(x_708); +if (lean_is_exclusive(x_624)) { + lean_ctor_release(x_624, 0); + lean_ctor_release(x_624, 1); + x_709 = x_624; +} else { + lean_dec_ref(x_624); + x_709 = lean_box(0); +} +lean_ctor_set(x_54, 0, x_620); +if (lean_is_scalar(x_709)) { + x_710 = lean_alloc_ctor(0, 2, 0); +} else { + x_710 = x_709; +} +lean_ctor_set(x_710, 0, x_54); +lean_ctor_set(x_710, 1, x_708); +return x_710; +} +} +else +{ +lean_object* x_711; lean_object* x_712; +lean_dec(x_620); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_711 = lean_ctor_get(x_624, 0); lean_inc(x_711); -lean_inc(x_710); -lean_dec(x_102); -x_712 = lean_box(0); -x_713 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_713, 0, x_710); -lean_ctor_set(x_713, 1, x_712); -lean_ctor_set_tag(x_98, 1); -lean_ctor_set(x_98, 1, x_713); -lean_ctor_set_tag(x_83, 1); -lean_ctor_set(x_83, 1, x_98); -lean_ctor_set(x_83, 0, x_81); -x_714 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_715 = l_Lean_Expr_const___override(x_714, x_83); -x_716 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_48); -x_717 = lean_array_push(x_716, x_48); -lean_inc(x_35); -x_718 = lean_array_push(x_717, x_35); -x_719 = l_Lean_mkAppN(x_715, x_718); -x_720 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_721 = l_Lean_Meta_trySynthInstance(x_719, x_720, x_3, x_4, x_5, x_6, x_711); -if (lean_obj_tag(x_721) == 0) +x_712 = lean_ctor_get(x_624, 1); +lean_inc(x_712); +lean_dec(x_624); +x_8 = x_711; +x_9 = x_712; +goto block_16; +} +} +else +{ +lean_object* x_713; lean_object* x_714; +lean_dec(x_620); +lean_dec(x_611); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_713 = lean_ctor_get(x_621, 0); +lean_inc(x_713); +x_714 = lean_ctor_get(x_621, 1); +lean_inc(x_714); +lean_dec(x_621); +x_8 = x_713; +x_9 = x_714; +goto block_16; +} +} +else +{ +lean_object* x_715; lean_object* x_716; +lean_dec(x_604); +lean_dec(x_602); +lean_dec(x_599); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_715 = lean_ctor_get(x_605, 0); +lean_inc(x_715); +x_716 = lean_ctor_get(x_605, 1); +lean_inc(x_716); +lean_dec(x_605); +x_8 = x_715; +x_9 = x_716; +goto block_16; +} +} +else +{ +lean_object* x_717; lean_object* x_718; +lean_dec(x_599); +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_717 = lean_ctor_get(x_601, 0); +lean_inc(x_717); +x_718 = lean_ctor_get(x_601, 1); +lean_inc(x_718); +lean_dec(x_601); +x_8 = x_717; +x_9 = x_718; +goto block_16; +} +} +} +else +{ +lean_object* x_719; lean_object* x_720; +lean_dec(x_133); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_719 = lean_ctor_get(x_134, 0); +lean_inc(x_719); +x_720 = lean_ctor_get(x_134, 1); +lean_inc(x_720); +lean_dec(x_134); +x_8 = x_719; +x_9 = x_720; +goto block_16; +} +} +else +{ +uint8_t x_721; +lean_dec(x_131); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_721 = !lean_is_exclusive(x_130); +if (x_721 == 0) { lean_object* x_722; -x_722 = lean_ctor_get(x_721, 0); -lean_inc(x_722); -if (lean_obj_tag(x_722) == 1) -{ -lean_object* x_723; lean_object* x_724; lean_object* x_725; -x_723 = lean_ctor_get(x_721, 1); -lean_inc(x_723); -lean_dec(x_721); -x_724 = lean_ctor_get(x_722, 0); -lean_inc(x_724); +x_722 = lean_ctor_get(x_130, 0); lean_dec(x_722); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_49); -x_725 = l_Lean_Meta_getDecLevel(x_49, x_3, x_4, x_5, x_6, x_723); -if (lean_obj_tag(x_725) == 0) -{ -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; -x_726 = lean_ctor_get(x_725, 0); -lean_inc(x_726); -x_727 = lean_ctor_get(x_725, 1); -lean_inc(x_727); -if (lean_is_exclusive(x_725)) { - lean_ctor_release(x_725, 0); - lean_ctor_release(x_725, 1); - x_728 = x_725; -} else { - lean_dec_ref(x_725); - x_728 = lean_box(0); +lean_ctor_set(x_130, 0, x_129); +return x_130; } -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_729 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_727); -if (lean_obj_tag(x_729) == 0) +else { -lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; -x_730 = lean_ctor_get(x_729, 0); -lean_inc(x_730); -x_731 = lean_ctor_get(x_729, 1); -lean_inc(x_731); -if (lean_is_exclusive(x_729)) { - lean_ctor_release(x_729, 0); - lean_ctor_release(x_729, 1); - x_732 = x_729; -} else { - lean_dec_ref(x_729); - x_732 = lean_box(0); +lean_object* x_723; lean_object* x_724; +x_723 = lean_ctor_get(x_130, 1); +lean_inc(x_723); +lean_dec(x_130); +x_724 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_724, 0, x_129); +lean_ctor_set(x_724, 1, x_723); +return x_724; } -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_733 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_731); -if (lean_obj_tag(x_733) == 0) -{ -lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; -x_734 = lean_ctor_get(x_733, 0); -lean_inc(x_734); -x_735 = lean_ctor_get(x_733, 1); -lean_inc(x_735); -if (lean_is_exclusive(x_733)) { - lean_ctor_release(x_733, 0); - lean_ctor_release(x_733, 1); - x_736 = x_733; -} else { - lean_dec_ref(x_733); - x_736 = lean_box(0); } -if (lean_is_scalar(x_736)) { - x_737 = lean_alloc_ctor(1, 2, 0); -} else { - x_737 = x_736; - lean_ctor_set_tag(x_737, 1); } -lean_ctor_set(x_737, 0, x_734); -lean_ctor_set(x_737, 1, x_712); -if (lean_is_scalar(x_732)) { - x_738 = lean_alloc_ctor(1, 2, 0); -} else { - x_738 = x_732; - lean_ctor_set_tag(x_738, 1); -} -lean_ctor_set(x_738, 0, x_730); -lean_ctor_set(x_738, 1, x_737); -if (lean_is_scalar(x_728)) { - x_739 = lean_alloc_ctor(1, 2, 0); -} else { - x_739 = x_728; - lean_ctor_set_tag(x_739, 1); -} -lean_ctor_set(x_739, 0, x_726); -lean_ctor_set(x_739, 1, x_738); -x_740 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_739); -x_741 = l_Lean_Expr_const___override(x_740, x_739); -x_742 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_743 = lean_array_push(x_742, x_48); -lean_inc(x_35); -x_744 = lean_array_push(x_743, x_35); -lean_inc(x_724); -x_745 = lean_array_push(x_744, x_724); -lean_inc(x_49); -x_746 = lean_array_push(x_745, x_49); -lean_inc(x_1); -x_747 = lean_array_push(x_746, x_1); -x_748 = l_Lean_mkAppN(x_741, x_747); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_748); -x_749 = lean_infer_type(x_748, x_3, x_4, x_5, x_6, x_735); -if (lean_obj_tag(x_749) == 0) +else { -lean_object* x_750; lean_object* x_751; lean_object* x_752; -x_750 = lean_ctor_get(x_749, 0); -lean_inc(x_750); -x_751 = lean_ctor_get(x_749, 1); -lean_inc(x_751); -lean_dec(x_749); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_752 = l_Lean_Meta_isExprDefEq(x_16, x_750, x_3, x_4, x_5, x_6, x_751); -if (lean_obj_tag(x_752) == 0) -{ -lean_object* x_753; uint8_t x_754; -x_753 = lean_ctor_get(x_752, 0); -lean_inc(x_753); -x_754 = lean_unbox(x_753); -lean_dec(x_753); -if (x_754 == 0) -{ -lean_object* x_755; lean_object* x_756; -lean_dec(x_748); -lean_free_object(x_38); -x_755 = lean_ctor_get(x_752, 1); -lean_inc(x_755); -lean_dec(x_752); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_756 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_755); -if (lean_obj_tag(x_756) == 0) -{ -lean_object* x_757; -x_757 = lean_ctor_get(x_756, 0); -lean_inc(x_757); -if (lean_obj_tag(x_757) == 0) -{ -lean_object* x_758; lean_object* x_759; lean_object* x_760; -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_725; lean_object* x_726; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_758 = lean_ctor_get(x_756, 1); -lean_inc(x_758); -if (lean_is_exclusive(x_756)) { - lean_ctor_release(x_756, 0); - lean_ctor_release(x_756, 1); - x_759 = x_756; -} else { - lean_dec_ref(x_756); - x_759 = lean_box(0); +x_725 = lean_ctor_get(x_130, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_130, 1); +lean_inc(x_726); +lean_dec(x_130); +x_8 = x_725; +x_9 = x_726; +goto block_16; } -if (lean_is_scalar(x_759)) { - x_760 = lean_alloc_ctor(0, 2, 0); -} else { - x_760 = x_759; -} -lean_ctor_set(x_760, 0, x_720); -lean_ctor_set(x_760, 1, x_758); -return x_760; } else { -lean_object* x_761; lean_object* x_762; lean_object* x_763; -x_761 = lean_ctor_get(x_756, 1); -lean_inc(x_761); -lean_dec(x_756); -x_762 = lean_ctor_get(x_757, 0); -lean_inc(x_762); -lean_dec(x_757); +lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; +x_727 = lean_ctor_get(x_119, 0); +x_728 = lean_ctor_get(x_119, 1); +lean_inc(x_728); +lean_inc(x_727); +lean_dec(x_119); +x_729 = lean_box(0); +x_730 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_730, 0, x_727); +lean_ctor_set(x_730, 1, x_729); +lean_ctor_set_tag(x_115, 1); +lean_ctor_set(x_115, 1, x_730); +lean_ctor_set_tag(x_100, 1); +lean_ctor_set(x_100, 1, x_115); +lean_ctor_set(x_100, 0, x_98); +x_731 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_732 = l_Lean_Expr_const___override(x_731, x_100); +x_733 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_65); +x_734 = lean_array_push(x_733, x_65); +lean_inc(x_51); +x_735 = lean_array_push(x_734, x_51); +x_736 = l_Lean_mkAppN(x_732, x_735); +x_737 = lean_box(0); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_763 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_761); -if (lean_obj_tag(x_763) == 0) +x_738 = l_Lean_Meta_trySynthInstance(x_736, x_737, x_3, x_4, x_5, x_6, x_728); +if (lean_obj_tag(x_738) == 0) { -lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; -x_764 = lean_ctor_get(x_763, 0); -lean_inc(x_764); -x_765 = lean_ctor_get(x_763, 1); +lean_object* x_739; +x_739 = lean_ctor_get(x_738, 0); +lean_inc(x_739); +if (lean_obj_tag(x_739) == 1) +{ +lean_object* x_740; lean_object* x_741; lean_object* x_742; +x_740 = lean_ctor_get(x_738, 1); +lean_inc(x_740); +lean_dec(x_738); +x_741 = lean_ctor_get(x_739, 0); +lean_inc(x_741); +lean_dec(x_739); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_742 = l_Lean_Meta_getDecLevel(x_66, x_3, x_4, x_5, x_6, x_740); +if (lean_obj_tag(x_742) == 0) +{ +lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_743 = lean_ctor_get(x_742, 0); +lean_inc(x_743); +x_744 = lean_ctor_get(x_742, 1); +lean_inc(x_744); +if (lean_is_exclusive(x_742)) { + lean_ctor_release(x_742, 0); + lean_ctor_release(x_742, 1); + x_745 = x_742; +} else { + lean_dec_ref(x_742); + x_745 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_746 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_744); +if (lean_obj_tag(x_746) == 0) +{ +lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; +x_747 = lean_ctor_get(x_746, 0); +lean_inc(x_747); +x_748 = lean_ctor_get(x_746, 1); +lean_inc(x_748); +if (lean_is_exclusive(x_746)) { + lean_ctor_release(x_746, 0); + lean_ctor_release(x_746, 1); + x_749 = x_746; +} else { + lean_dec_ref(x_746); + x_749 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_750 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_748); +if (lean_obj_tag(x_750) == 0) +{ +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_object* x_766; +x_751 = lean_ctor_get(x_750, 0); +lean_inc(x_751); +x_752 = lean_ctor_get(x_750, 1); +lean_inc(x_752); +if (lean_is_exclusive(x_750)) { + lean_ctor_release(x_750, 0); + lean_ctor_release(x_750, 1); + x_753 = x_750; +} else { + lean_dec_ref(x_750); + x_753 = lean_box(0); +} +if (lean_is_scalar(x_753)) { + x_754 = lean_alloc_ctor(1, 2, 0); +} else { + x_754 = x_753; + lean_ctor_set_tag(x_754, 1); +} +lean_ctor_set(x_754, 0, x_751); +lean_ctor_set(x_754, 1, x_729); +if (lean_is_scalar(x_749)) { + x_755 = lean_alloc_ctor(1, 2, 0); +} else { + x_755 = x_749; + lean_ctor_set_tag(x_755, 1); +} +lean_ctor_set(x_755, 0, x_747); +lean_ctor_set(x_755, 1, x_754); +if (lean_is_scalar(x_745)) { + x_756 = lean_alloc_ctor(1, 2, 0); +} else { + x_756 = x_745; + lean_ctor_set_tag(x_756, 1); +} +lean_ctor_set(x_756, 0, x_743); +lean_ctor_set(x_756, 1, x_755); +x_757 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_756); +x_758 = l_Lean_Expr_const___override(x_757, x_756); +x_759 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_760 = lean_array_push(x_759, x_65); +lean_inc(x_51); +x_761 = lean_array_push(x_760, x_51); +lean_inc(x_741); +x_762 = lean_array_push(x_761, x_741); +lean_inc(x_66); +x_763 = lean_array_push(x_762, x_66); +lean_inc(x_1); +x_764 = lean_array_push(x_763, x_1); +x_765 = l_Lean_mkAppN(x_758, x_764); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_765); -if (lean_is_exclusive(x_763)) { - lean_ctor_release(x_763, 0); - lean_ctor_release(x_763, 1); - x_766 = x_763; -} else { - lean_dec_ref(x_763); - x_766 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_767 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_765); -if (lean_obj_tag(x_767) == 0) +x_766 = lean_infer_type(x_765, x_3, x_4, x_5, x_6, x_752); +if (lean_obj_tag(x_766) == 0) { -lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; uint8_t x_782; lean_object* x_783; lean_object* x_784; -x_768 = lean_ctor_get(x_767, 0); +lean_object* x_767; lean_object* x_768; lean_object* x_769; +x_767 = lean_ctor_get(x_766, 0); +lean_inc(x_767); +x_768 = lean_ctor_get(x_766, 1); lean_inc(x_768); -x_769 = lean_ctor_get(x_767, 1); -lean_inc(x_769); -if (lean_is_exclusive(x_767)) { - lean_ctor_release(x_767, 0); - lean_ctor_release(x_767, 1); - x_770 = x_767; -} else { - lean_dec_ref(x_767); - x_770 = lean_box(0); -} -if (lean_is_scalar(x_770)) { - x_771 = lean_alloc_ctor(1, 2, 0); -} else { - x_771 = x_770; - lean_ctor_set_tag(x_771, 1); -} -lean_ctor_set(x_771, 0, x_768); -lean_ctor_set(x_771, 1, x_712); -if (lean_is_scalar(x_766)) { - x_772 = lean_alloc_ctor(1, 2, 0); -} else { - x_772 = x_766; - lean_ctor_set_tag(x_772, 1); -} -lean_ctor_set(x_772, 0, x_764); -lean_ctor_set(x_772, 1, x_771); -x_773 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_774 = l_Lean_Expr_const___override(x_773, x_772); -x_775 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_776 = lean_array_push(x_775, x_49); -x_777 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_778 = lean_array_push(x_776, x_777); -lean_inc(x_36); -x_779 = lean_array_push(x_778, x_36); -x_780 = l_Lean_mkAppN(x_774, x_779); -x_781 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_782 = 0; -lean_inc(x_49); -x_783 = l_Lean_Expr_forallE___override(x_781, x_49, x_780, x_782); +lean_dec(x_766); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_784 = l_Lean_Meta_trySynthInstance(x_783, x_720, x_3, x_4, x_5, x_6, x_769); +lean_inc(x_32); +x_769 = l_Lean_Meta_isExprDefEq(x_32, x_767, x_3, x_4, x_5, x_6, x_768); +if (lean_obj_tag(x_769) == 0) +{ +lean_object* x_770; uint8_t x_771; +x_770 = lean_ctor_get(x_769, 0); +lean_inc(x_770); +x_771 = lean_unbox(x_770); +lean_dec(x_770); +if (x_771 == 0) +{ +lean_object* x_772; lean_object* x_773; +lean_dec(x_765); +lean_free_object(x_54); +x_772 = lean_ctor_get(x_769, 1); +lean_inc(x_772); +lean_dec(x_769); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_773 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_772); +if (lean_obj_tag(x_773) == 0) +{ +lean_object* x_774; +x_774 = lean_ctor_get(x_773, 0); +lean_inc(x_774); +if (lean_obj_tag(x_774) == 0) +{ +lean_object* x_775; lean_object* x_776; lean_object* x_777; +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_775 = lean_ctor_get(x_773, 1); +lean_inc(x_775); +if (lean_is_exclusive(x_773)) { + lean_ctor_release(x_773, 0); + lean_ctor_release(x_773, 1); + x_776 = x_773; +} else { + lean_dec_ref(x_773); + x_776 = lean_box(0); +} +if (lean_is_scalar(x_776)) { + x_777 = lean_alloc_ctor(0, 2, 0); +} else { + x_777 = x_776; +} +lean_ctor_set(x_777, 0, x_737); +lean_ctor_set(x_777, 1, x_775); +return x_777; +} +else +{ +lean_object* x_778; lean_object* x_779; lean_object* x_780; +x_778 = lean_ctor_get(x_773, 1); +lean_inc(x_778); +lean_dec(x_773); +x_779 = lean_ctor_get(x_774, 0); +lean_inc(x_779); +lean_dec(x_774); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_780 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_778); +if (lean_obj_tag(x_780) == 0) +{ +lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; +x_781 = lean_ctor_get(x_780, 0); +lean_inc(x_781); +x_782 = lean_ctor_get(x_780, 1); +lean_inc(x_782); +if (lean_is_exclusive(x_780)) { + lean_ctor_release(x_780, 0); + lean_ctor_release(x_780, 1); + x_783 = x_780; +} else { + lean_dec_ref(x_780); + x_783 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_784 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_782); if (lean_obj_tag(x_784) == 0) { -lean_object* x_785; +lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; uint8_t x_799; lean_object* x_800; lean_object* x_801; x_785 = lean_ctor_get(x_784, 0); lean_inc(x_785); -if (lean_obj_tag(x_785) == 1) -{ -lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; x_786 = lean_ctor_get(x_784, 1); lean_inc(x_786); -lean_dec(x_784); -x_787 = lean_ctor_get(x_785, 0); -lean_inc(x_787); -lean_dec(x_785); -x_788 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_789 = l_Lean_Expr_const___override(x_788, x_739); -x_790 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_791 = lean_array_push(x_790, x_48); -x_792 = lean_array_push(x_791, x_35); -x_793 = lean_array_push(x_792, x_49); -x_794 = lean_array_push(x_793, x_36); -x_795 = lean_array_push(x_794, x_724); -x_796 = lean_array_push(x_795, x_787); -x_797 = lean_array_push(x_796, x_762); -x_798 = lean_array_push(x_797, x_1); -x_799 = l_Lean_mkAppN(x_789, x_798); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_800 = l_Lean_Meta_expandCoe(x_799, x_3, x_4, x_5, x_6, x_786); -if (lean_obj_tag(x_800) == 0) -{ -lean_object* x_801; lean_object* x_802; lean_object* x_803; -x_801 = lean_ctor_get(x_800, 0); -lean_inc(x_801); -x_802 = lean_ctor_get(x_800, 1); -lean_inc(x_802); -lean_dec(x_800); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_801); -x_803 = lean_infer_type(x_801, x_3, x_4, x_5, x_6, x_802); -if (lean_obj_tag(x_803) == 0) -{ -lean_object* x_804; lean_object* x_805; lean_object* x_806; -x_804 = lean_ctor_get(x_803, 0); -lean_inc(x_804); -x_805 = lean_ctor_get(x_803, 1); -lean_inc(x_805); -lean_dec(x_803); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_806 = l_Lean_Meta_isExprDefEq(x_16, x_804, x_3, x_4, x_5, x_6, x_805); -if (lean_obj_tag(x_806) == 0) -{ -lean_object* x_807; uint8_t x_808; -x_807 = lean_ctor_get(x_806, 0); -lean_inc(x_807); -x_808 = lean_unbox(x_807); -lean_dec(x_807); -if (x_808 == 0) -{ -lean_object* x_809; lean_object* x_810; lean_object* x_811; -lean_dec(x_801); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_809 = lean_ctor_get(x_806, 1); -lean_inc(x_809); -if (lean_is_exclusive(x_806)) { - lean_ctor_release(x_806, 0); - lean_ctor_release(x_806, 1); - x_810 = x_806; -} else { - lean_dec_ref(x_806); - x_810 = lean_box(0); -} -if (lean_is_scalar(x_810)) { - x_811 = lean_alloc_ctor(0, 2, 0); -} else { - x_811 = x_810; -} -lean_ctor_set(x_811, 0, x_720); -lean_ctor_set(x_811, 1, x_809); -return x_811; -} -else -{ -lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; -x_812 = lean_ctor_get(x_806, 1); -lean_inc(x_812); -lean_dec(x_806); -x_813 = lean_box(0); -x_814 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_801, x_813, x_3, x_4, x_5, x_6, x_812); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_815 = lean_ctor_get(x_814, 0); -lean_inc(x_815); -x_816 = lean_ctor_get(x_814, 1); -lean_inc(x_816); -if (lean_is_exclusive(x_814)) { - lean_ctor_release(x_814, 0); - lean_ctor_release(x_814, 1); - x_817 = x_814; -} else { - lean_dec_ref(x_814); - x_817 = lean_box(0); -} -if (lean_is_scalar(x_817)) { - x_818 = lean_alloc_ctor(0, 2, 0); -} else { - x_818 = x_817; -} -lean_ctor_set(x_818, 0, x_815); -lean_ctor_set(x_818, 1, x_816); -return x_818; -} -} -else -{ -lean_object* x_819; lean_object* x_820; -lean_dec(x_801); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_819 = lean_ctor_get(x_806, 0); -lean_inc(x_819); -x_820 = lean_ctor_get(x_806, 1); -lean_inc(x_820); -lean_dec(x_806); -x_8 = x_819; -x_9 = x_820; -goto block_14; -} -} -else -{ -lean_object* x_821; lean_object* x_822; -lean_dec(x_801); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_821 = lean_ctor_get(x_803, 0); -lean_inc(x_821); -x_822 = lean_ctor_get(x_803, 1); -lean_inc(x_822); -lean_dec(x_803); -x_8 = x_821; -x_9 = x_822; -goto block_14; -} -} -else -{ -lean_object* x_823; lean_object* x_824; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_823 = lean_ctor_get(x_800, 0); -lean_inc(x_823); -x_824 = lean_ctor_get(x_800, 1); -lean_inc(x_824); -lean_dec(x_800); -x_8 = x_823; -x_9 = x_824; -goto block_14; -} -} -else -{ -lean_object* x_825; lean_object* x_826; lean_object* x_827; -lean_dec(x_785); -lean_dec(x_762); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_825 = lean_ctor_get(x_784, 1); -lean_inc(x_825); if (lean_is_exclusive(x_784)) { lean_ctor_release(x_784, 0); lean_ctor_release(x_784, 1); - x_826 = x_784; + x_787 = x_784; } else { lean_dec_ref(x_784); - x_826 = lean_box(0); + x_787 = lean_box(0); } -if (lean_is_scalar(x_826)) { - x_827 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_787)) { + x_788 = lean_alloc_ctor(1, 2, 0); } else { - x_827 = x_826; + x_788 = x_787; + lean_ctor_set_tag(x_788, 1); } -lean_ctor_set(x_827, 0, x_720); -lean_ctor_set(x_827, 1, x_825); -return x_827; +lean_ctor_set(x_788, 0, x_785); +lean_ctor_set(x_788, 1, x_729); +if (lean_is_scalar(x_783)) { + x_789 = lean_alloc_ctor(1, 2, 0); +} else { + x_789 = x_783; + lean_ctor_set_tag(x_789, 1); } -} -else +lean_ctor_set(x_789, 0, x_781); +lean_ctor_set(x_789, 1, x_788); +x_790 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_791 = l_Lean_Expr_const___override(x_790, x_789); +x_792 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_793 = lean_array_push(x_792, x_66); +x_794 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_795 = lean_array_push(x_793, x_794); +lean_inc(x_52); +x_796 = lean_array_push(x_795, x_52); +x_797 = l_Lean_mkAppN(x_791, x_796); +x_798 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_799 = 0; +lean_inc(x_66); +x_800 = l_Lean_Expr_forallE___override(x_798, x_66, x_797, x_799); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_801 = l_Lean_Meta_trySynthInstance(x_800, x_737, x_3, x_4, x_5, x_6, x_786); +if (lean_obj_tag(x_801) == 0) { -lean_object* x_828; lean_object* x_829; -lean_dec(x_762); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_802; +x_802 = lean_ctor_get(x_801, 0); +lean_inc(x_802); +if (lean_obj_tag(x_802) == 1) +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; +x_803 = lean_ctor_get(x_801, 1); +lean_inc(x_803); +lean_dec(x_801); +x_804 = lean_ctor_get(x_802, 0); +lean_inc(x_804); +lean_dec(x_802); +x_805 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_806 = l_Lean_Expr_const___override(x_805, x_756); +x_807 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_808 = lean_array_push(x_807, x_65); +x_809 = lean_array_push(x_808, x_51); +x_810 = lean_array_push(x_809, x_66); +x_811 = lean_array_push(x_810, x_52); +x_812 = lean_array_push(x_811, x_741); +x_813 = lean_array_push(x_812, x_804); +x_814 = lean_array_push(x_813, x_779); +x_815 = lean_array_push(x_814, x_1); +x_816 = l_Lean_mkAppN(x_806, x_815); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_817 = l_Lean_Meta_expandCoe(x_816, x_3, x_4, x_5, x_6, x_803); +if (lean_obj_tag(x_817) == 0) +{ +lean_object* x_818; lean_object* x_819; lean_object* x_820; +x_818 = lean_ctor_get(x_817, 0); +lean_inc(x_818); +x_819 = lean_ctor_get(x_817, 1); +lean_inc(x_819); +lean_dec(x_817); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_818); +x_820 = lean_infer_type(x_818, x_3, x_4, x_5, x_6, x_819); +if (lean_obj_tag(x_820) == 0) +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; +x_821 = lean_ctor_get(x_820, 0); +lean_inc(x_821); +x_822 = lean_ctor_get(x_820, 1); +lean_inc(x_822); +lean_dec(x_820); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_823 = l_Lean_Meta_isExprDefEq(x_32, x_821, x_3, x_4, x_5, x_6, x_822); +if (lean_obj_tag(x_823) == 0) +{ +lean_object* x_824; uint8_t x_825; +x_824 = lean_ctor_get(x_823, 0); +lean_inc(x_824); +x_825 = lean_unbox(x_824); +lean_dec(x_824); +if (x_825 == 0) +{ +lean_object* x_826; lean_object* x_827; lean_object* x_828; +lean_dec(x_818); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_828 = lean_ctor_get(x_784, 0); -lean_inc(x_828); -x_829 = lean_ctor_get(x_784, 1); +x_826 = lean_ctor_get(x_823, 1); +lean_inc(x_826); +if (lean_is_exclusive(x_823)) { + lean_ctor_release(x_823, 0); + lean_ctor_release(x_823, 1); + x_827 = x_823; +} else { + lean_dec_ref(x_823); + x_827 = lean_box(0); +} +if (lean_is_scalar(x_827)) { + x_828 = lean_alloc_ctor(0, 2, 0); +} else { + x_828 = x_827; +} +lean_ctor_set(x_828, 0, x_737); +lean_ctor_set(x_828, 1, x_826); +return x_828; +} +else +{ +lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; +x_829 = lean_ctor_get(x_823, 1); lean_inc(x_829); -lean_dec(x_784); -x_8 = x_828; -x_9 = x_829; -goto block_14; -} -} -else -{ -lean_object* x_830; lean_object* x_831; -lean_dec(x_766); -lean_dec(x_764); -lean_dec(x_762); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_823); +x_830 = lean_box(0); +x_831 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_818, x_830, x_3, x_4, x_5, x_6, x_829); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_830 = lean_ctor_get(x_767, 0); -lean_inc(x_830); -x_831 = lean_ctor_get(x_767, 1); -lean_inc(x_831); -lean_dec(x_767); -x_8 = x_830; -x_9 = x_831; -goto block_14; -} -} -else -{ -lean_object* x_832; lean_object* x_833; -lean_dec(x_762); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_832 = lean_ctor_get(x_763, 0); +x_832 = lean_ctor_get(x_831, 0); lean_inc(x_832); -x_833 = lean_ctor_get(x_763, 1); +x_833 = lean_ctor_get(x_831, 1); lean_inc(x_833); -lean_dec(x_763); -x_8 = x_832; -x_9 = x_833; -goto block_14; +if (lean_is_exclusive(x_831)) { + lean_ctor_release(x_831, 0); + lean_ctor_release(x_831, 1); + x_834 = x_831; +} else { + lean_dec_ref(x_831); + x_834 = lean_box(0); } +if (lean_is_scalar(x_834)) { + x_835 = lean_alloc_ctor(0, 2, 0); +} else { + x_835 = x_834; } -} -else -{ -lean_object* x_834; lean_object* x_835; -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_834 = lean_ctor_get(x_756, 0); -lean_inc(x_834); -x_835 = lean_ctor_get(x_756, 1); -lean_inc(x_835); -lean_dec(x_756); -x_8 = x_834; -x_9 = x_835; -goto block_14; +lean_ctor_set(x_835, 0, x_832); +lean_ctor_set(x_835, 1, x_833); +return x_835; } } else { -lean_object* x_836; lean_object* x_837; lean_object* x_838; -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_836; lean_object* x_837; +lean_dec(x_818); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_836 = lean_ctor_get(x_752, 1); +x_836 = lean_ctor_get(x_823, 0); lean_inc(x_836); -if (lean_is_exclusive(x_752)) { - lean_ctor_release(x_752, 0); - lean_ctor_release(x_752, 1); - x_837 = x_752; -} else { - lean_dec_ref(x_752); - x_837 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_748); -if (lean_is_scalar(x_837)) { - x_838 = lean_alloc_ctor(0, 2, 0); -} else { - x_838 = x_837; -} -lean_ctor_set(x_838, 0, x_38); -lean_ctor_set(x_838, 1, x_836); -return x_838; +x_837 = lean_ctor_get(x_823, 1); +lean_inc(x_837); +lean_dec(x_823); +x_8 = x_836; +x_9 = x_837; +goto block_16; } } else { -lean_object* x_839; lean_object* x_840; -lean_dec(x_748); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_838; lean_object* x_839; +lean_dec(x_818); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_839 = lean_ctor_get(x_752, 0); +x_838 = lean_ctor_get(x_820, 0); +lean_inc(x_838); +x_839 = lean_ctor_get(x_820, 1); lean_inc(x_839); -x_840 = lean_ctor_get(x_752, 1); +lean_dec(x_820); +x_8 = x_838; +x_9 = x_839; +goto block_16; +} +} +else +{ +lean_object* x_840; lean_object* x_841; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_840 = lean_ctor_get(x_817, 0); lean_inc(x_840); -lean_dec(x_752); -x_8 = x_839; -x_9 = x_840; -goto block_14; -} -} -else -{ -lean_object* x_841; lean_object* x_842; -lean_dec(x_748); -lean_dec(x_739); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_841 = lean_ctor_get(x_749, 0); +x_841 = lean_ctor_get(x_817, 1); lean_inc(x_841); -x_842 = lean_ctor_get(x_749, 1); -lean_inc(x_842); -lean_dec(x_749); -x_8 = x_841; -x_9 = x_842; -goto block_14; +lean_dec(x_817); +x_8 = x_840; +x_9 = x_841; +goto block_16; } } else { -lean_object* x_843; lean_object* x_844; -lean_dec(x_732); -lean_dec(x_730); -lean_dec(x_728); -lean_dec(x_726); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_842; lean_object* x_843; lean_object* x_844; +lean_dec(x_802); +lean_dec(x_779); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_843 = lean_ctor_get(x_733, 0); -lean_inc(x_843); -x_844 = lean_ctor_get(x_733, 1); -lean_inc(x_844); -lean_dec(x_733); -x_8 = x_843; -x_9 = x_844; -goto block_14; +x_842 = lean_ctor_get(x_801, 1); +lean_inc(x_842); +if (lean_is_exclusive(x_801)) { + lean_ctor_release(x_801, 0); + lean_ctor_release(x_801, 1); + x_843 = x_801; +} else { + lean_dec_ref(x_801); + x_843 = lean_box(0); +} +if (lean_is_scalar(x_843)) { + x_844 = lean_alloc_ctor(0, 2, 0); +} else { + x_844 = x_843; +} +lean_ctor_set(x_844, 0, x_737); +lean_ctor_set(x_844, 1, x_842); +return x_844; } } else { lean_object* x_845; lean_object* x_846; -lean_dec(x_728); -lean_dec(x_726); -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_779); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_845 = lean_ctor_get(x_729, 0); +x_845 = lean_ctor_get(x_801, 0); lean_inc(x_845); -x_846 = lean_ctor_get(x_729, 1); +x_846 = lean_ctor_get(x_801, 1); lean_inc(x_846); -lean_dec(x_729); +lean_dec(x_801); x_8 = x_845; x_9 = x_846; -goto block_14; +goto block_16; } } else { lean_object* x_847; lean_object* x_848; -lean_dec(x_724); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_783); +lean_dec(x_781); +lean_dec(x_779); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_847 = lean_ctor_get(x_725, 0); +x_847 = lean_ctor_get(x_784, 0); lean_inc(x_847); -x_848 = lean_ctor_get(x_725, 1); +x_848 = lean_ctor_get(x_784, 1); lean_inc(x_848); -lean_dec(x_725); +lean_dec(x_784); x_8 = x_847; x_9 = x_848; -goto block_14; +goto block_16; } } else { -lean_object* x_849; lean_object* x_850; lean_object* x_851; -lean_dec(x_722); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_849; lean_object* x_850; +lean_dec(x_779); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_849 = lean_ctor_get(x_721, 1); +x_849 = lean_ctor_get(x_780, 0); lean_inc(x_849); -if (lean_is_exclusive(x_721)) { - lean_ctor_release(x_721, 0); - lean_ctor_release(x_721, 1); - x_850 = x_721; -} else { - lean_dec_ref(x_721); - x_850 = lean_box(0); +x_850 = lean_ctor_get(x_780, 1); +lean_inc(x_850); +lean_dec(x_780); +x_8 = x_849; +x_9 = x_850; +goto block_16; } -if (lean_is_scalar(x_850)) { - x_851 = lean_alloc_ctor(0, 2, 0); -} else { - x_851 = x_850; -} -lean_ctor_set(x_851, 0, x_720); -lean_ctor_set(x_851, 1, x_849); -return x_851; } } else { -lean_object* x_852; lean_object* x_853; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_851; lean_object* x_852; +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_852 = lean_ctor_get(x_721, 0); +x_851 = lean_ctor_get(x_773, 0); +lean_inc(x_851); +x_852 = lean_ctor_get(x_773, 1); lean_inc(x_852); -x_853 = lean_ctor_get(x_721, 1); +lean_dec(x_773); +x_8 = x_851; +x_9 = x_852; +goto block_16; +} +} +else +{ +lean_object* x_853; lean_object* x_854; lean_object* x_855; +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_853 = lean_ctor_get(x_769, 1); lean_inc(x_853); -lean_dec(x_721); -x_8 = x_852; -x_9 = x_853; -goto block_14; +if (lean_is_exclusive(x_769)) { + lean_ctor_release(x_769, 0); + lean_ctor_release(x_769, 1); + x_854 = x_769; +} else { + lean_dec_ref(x_769); + x_854 = lean_box(0); } +lean_ctor_set(x_54, 0, x_765); +if (lean_is_scalar(x_854)) { + x_855 = lean_alloc_ctor(0, 2, 0); +} else { + x_855 = x_854; +} +lean_ctor_set(x_855, 0, x_54); +lean_ctor_set(x_855, 1, x_853); +return x_855; } } else { -lean_object* x_854; lean_object* x_855; -lean_free_object(x_98); -lean_dec(x_100); -lean_free_object(x_83); -lean_dec(x_81); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_856; lean_object* x_857; +lean_dec(x_765); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_854 = lean_ctor_get(x_102, 0); -lean_inc(x_854); -x_855 = lean_ctor_get(x_102, 1); -lean_inc(x_855); -lean_dec(x_102); -x_8 = x_854; -x_9 = x_855; -goto block_14; -} -} -else -{ -lean_object* x_856; lean_object* x_857; lean_object* x_858; -x_856 = lean_ctor_get(x_98, 0); -x_857 = lean_ctor_get(x_98, 1); -lean_inc(x_857); +x_856 = lean_ctor_get(x_769, 0); lean_inc(x_856); -lean_dec(x_98); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_858 = l_Lean_Meta_decLevel(x_79, x_3, x_4, x_5, x_6, x_857); -if (lean_obj_tag(x_858) == 0) -{ -lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; -x_859 = lean_ctor_get(x_858, 0); -lean_inc(x_859); -x_860 = lean_ctor_get(x_858, 1); -lean_inc(x_860); -if (lean_is_exclusive(x_858)) { - lean_ctor_release(x_858, 0); - lean_ctor_release(x_858, 1); - x_861 = x_858; -} else { - lean_dec_ref(x_858); - x_861 = lean_box(0); +x_857 = lean_ctor_get(x_769, 1); +lean_inc(x_857); +lean_dec(x_769); +x_8 = x_856; +x_9 = x_857; +goto block_16; } -x_862 = lean_box(0); -if (lean_is_scalar(x_861)) { - x_863 = lean_alloc_ctor(1, 2, 0); -} else { - x_863 = x_861; - lean_ctor_set_tag(x_863, 1); } -lean_ctor_set(x_863, 0, x_859); -lean_ctor_set(x_863, 1, x_862); -x_864 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_864, 0, x_856); -lean_ctor_set(x_864, 1, x_863); -lean_ctor_set_tag(x_83, 1); -lean_ctor_set(x_83, 1, x_864); -lean_ctor_set(x_83, 0, x_81); -x_865 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_866 = l_Lean_Expr_const___override(x_865, x_83); -x_867 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_48); -x_868 = lean_array_push(x_867, x_48); -lean_inc(x_35); -x_869 = lean_array_push(x_868, x_35); -x_870 = l_Lean_mkAppN(x_866, x_869); -x_871 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_872 = l_Lean_Meta_trySynthInstance(x_870, x_871, x_3, x_4, x_5, x_6, x_860); -if (lean_obj_tag(x_872) == 0) +else { -lean_object* x_873; -x_873 = lean_ctor_get(x_872, 0); -lean_inc(x_873); -if (lean_obj_tag(x_873) == 1) -{ -lean_object* x_874; lean_object* x_875; lean_object* x_876; -x_874 = lean_ctor_get(x_872, 1); -lean_inc(x_874); -lean_dec(x_872); -x_875 = lean_ctor_get(x_873, 0); -lean_inc(x_875); -lean_dec(x_873); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_49); -x_876 = l_Lean_Meta_getDecLevel(x_49, x_3, x_4, x_5, x_6, x_874); -if (lean_obj_tag(x_876) == 0) -{ -lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; -x_877 = lean_ctor_get(x_876, 0); -lean_inc(x_877); -x_878 = lean_ctor_get(x_876, 1); -lean_inc(x_878); -if (lean_is_exclusive(x_876)) { - lean_ctor_release(x_876, 0); - lean_ctor_release(x_876, 1); - x_879 = x_876; -} else { - lean_dec_ref(x_876); - x_879 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_880 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_878); -if (lean_obj_tag(x_880) == 0) -{ -lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; -x_881 = lean_ctor_get(x_880, 0); -lean_inc(x_881); -x_882 = lean_ctor_get(x_880, 1); -lean_inc(x_882); -if (lean_is_exclusive(x_880)) { - lean_ctor_release(x_880, 0); - lean_ctor_release(x_880, 1); - x_883 = x_880; -} else { - lean_dec_ref(x_880); - x_883 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_884 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_882); -if (lean_obj_tag(x_884) == 0) -{ -lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; -x_885 = lean_ctor_get(x_884, 0); -lean_inc(x_885); -x_886 = lean_ctor_get(x_884, 1); -lean_inc(x_886); -if (lean_is_exclusive(x_884)) { - lean_ctor_release(x_884, 0); - lean_ctor_release(x_884, 1); - x_887 = x_884; -} else { - lean_dec_ref(x_884); - x_887 = lean_box(0); -} -if (lean_is_scalar(x_887)) { - x_888 = lean_alloc_ctor(1, 2, 0); -} else { - x_888 = x_887; - lean_ctor_set_tag(x_888, 1); -} -lean_ctor_set(x_888, 0, x_885); -lean_ctor_set(x_888, 1, x_862); -if (lean_is_scalar(x_883)) { - x_889 = lean_alloc_ctor(1, 2, 0); -} else { - x_889 = x_883; - lean_ctor_set_tag(x_889, 1); -} -lean_ctor_set(x_889, 0, x_881); -lean_ctor_set(x_889, 1, x_888); -if (lean_is_scalar(x_879)) { - x_890 = lean_alloc_ctor(1, 2, 0); -} else { - x_890 = x_879; - lean_ctor_set_tag(x_890, 1); -} -lean_ctor_set(x_890, 0, x_877); -lean_ctor_set(x_890, 1, x_889); -x_891 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_890); -x_892 = l_Lean_Expr_const___override(x_891, x_890); -x_893 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_894 = lean_array_push(x_893, x_48); -lean_inc(x_35); -x_895 = lean_array_push(x_894, x_35); -lean_inc(x_875); -x_896 = lean_array_push(x_895, x_875); -lean_inc(x_49); -x_897 = lean_array_push(x_896, x_49); -lean_inc(x_1); -x_898 = lean_array_push(x_897, x_1); -x_899 = l_Lean_mkAppN(x_892, x_898); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_899); -x_900 = lean_infer_type(x_899, x_3, x_4, x_5, x_6, x_886); -if (lean_obj_tag(x_900) == 0) -{ -lean_object* x_901; lean_object* x_902; lean_object* x_903; -x_901 = lean_ctor_get(x_900, 0); -lean_inc(x_901); -x_902 = lean_ctor_get(x_900, 1); -lean_inc(x_902); -lean_dec(x_900); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_903 = l_Lean_Meta_isExprDefEq(x_16, x_901, x_3, x_4, x_5, x_6, x_902); -if (lean_obj_tag(x_903) == 0) -{ -lean_object* x_904; uint8_t x_905; -x_904 = lean_ctor_get(x_903, 0); -lean_inc(x_904); -x_905 = lean_unbox(x_904); -lean_dec(x_904); -if (x_905 == 0) -{ -lean_object* x_906; lean_object* x_907; -lean_dec(x_899); -lean_free_object(x_38); -x_906 = lean_ctor_get(x_903, 1); -lean_inc(x_906); -lean_dec(x_903); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_907 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_906); -if (lean_obj_tag(x_907) == 0) -{ -lean_object* x_908; -x_908 = lean_ctor_get(x_907, 0); -lean_inc(x_908); -if (lean_obj_tag(x_908) == 0) -{ -lean_object* x_909; lean_object* x_910; lean_object* x_911; -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_858; lean_object* x_859; +lean_dec(x_765); +lean_dec(x_756); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_909 = lean_ctor_get(x_907, 1); -lean_inc(x_909); -if (lean_is_exclusive(x_907)) { - lean_ctor_release(x_907, 0); - lean_ctor_release(x_907, 1); - x_910 = x_907; -} else { - lean_dec_ref(x_907); - x_910 = lean_box(0); +x_858 = lean_ctor_get(x_766, 0); +lean_inc(x_858); +x_859 = lean_ctor_get(x_766, 1); +lean_inc(x_859); +lean_dec(x_766); +x_8 = x_858; +x_9 = x_859; +goto block_16; } -if (lean_is_scalar(x_910)) { - x_911 = lean_alloc_ctor(0, 2, 0); -} else { - x_911 = x_910; -} -lean_ctor_set(x_911, 0, x_871); -lean_ctor_set(x_911, 1, x_909); -return x_911; } else { -lean_object* x_912; lean_object* x_913; lean_object* x_914; -x_912 = lean_ctor_get(x_907, 1); -lean_inc(x_912); -lean_dec(x_907); -x_913 = lean_ctor_get(x_908, 0); -lean_inc(x_913); -lean_dec(x_908); +lean_object* x_860; lean_object* x_861; +lean_dec(x_749); +lean_dec(x_747); +lean_dec(x_745); +lean_dec(x_743); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_860 = lean_ctor_get(x_750, 0); +lean_inc(x_860); +x_861 = lean_ctor_get(x_750, 1); +lean_inc(x_861); +lean_dec(x_750); +x_8 = x_860; +x_9 = x_861; +goto block_16; +} +} +else +{ +lean_object* x_862; lean_object* x_863; +lean_dec(x_745); +lean_dec(x_743); +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_862 = lean_ctor_get(x_746, 0); +lean_inc(x_862); +x_863 = lean_ctor_get(x_746, 1); +lean_inc(x_863); +lean_dec(x_746); +x_8 = x_862; +x_9 = x_863; +goto block_16; +} +} +else +{ +lean_object* x_864; lean_object* x_865; +lean_dec(x_741); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_864 = lean_ctor_get(x_742, 0); +lean_inc(x_864); +x_865 = lean_ctor_get(x_742, 1); +lean_inc(x_865); +lean_dec(x_742); +x_8 = x_864; +x_9 = x_865; +goto block_16; +} +} +else +{ +lean_object* x_866; lean_object* x_867; lean_object* x_868; +lean_dec(x_739); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_866 = lean_ctor_get(x_738, 1); +lean_inc(x_866); +if (lean_is_exclusive(x_738)) { + lean_ctor_release(x_738, 0); + lean_ctor_release(x_738, 1); + x_867 = x_738; +} else { + lean_dec_ref(x_738); + x_867 = lean_box(0); +} +if (lean_is_scalar(x_867)) { + x_868 = lean_alloc_ctor(0, 2, 0); +} else { + x_868 = x_867; +} +lean_ctor_set(x_868, 0, x_737); +lean_ctor_set(x_868, 1, x_866); +return x_868; +} +} +else +{ +lean_object* x_869; lean_object* x_870; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_869 = lean_ctor_get(x_738, 0); +lean_inc(x_869); +x_870 = lean_ctor_get(x_738, 1); +lean_inc(x_870); +lean_dec(x_738); +x_8 = x_869; +x_9 = x_870; +goto block_16; +} +} +} +else +{ +lean_object* x_871; lean_object* x_872; +lean_free_object(x_115); +lean_dec(x_117); +lean_free_object(x_100); +lean_dec(x_98); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_871 = lean_ctor_get(x_119, 0); +lean_inc(x_871); +x_872 = lean_ctor_get(x_119, 1); +lean_inc(x_872); +lean_dec(x_119); +x_8 = x_871; +x_9 = x_872; +goto block_16; +} +} +else +{ +lean_object* x_873; lean_object* x_874; lean_object* x_875; +x_873 = lean_ctor_get(x_115, 0); +x_874 = lean_ctor_get(x_115, 1); +lean_inc(x_874); +lean_inc(x_873); +lean_dec(x_115); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_914 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_912); -if (lean_obj_tag(x_914) == 0) +x_875 = l_Lean_Meta_decLevel(x_96, x_3, x_4, x_5, x_6, x_874); +if (lean_obj_tag(x_875) == 0) { -lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; -x_915 = lean_ctor_get(x_914, 0); -lean_inc(x_915); -x_916 = lean_ctor_get(x_914, 1); +lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; +x_876 = lean_ctor_get(x_875, 0); +lean_inc(x_876); +x_877 = lean_ctor_get(x_875, 1); +lean_inc(x_877); +if (lean_is_exclusive(x_875)) { + lean_ctor_release(x_875, 0); + lean_ctor_release(x_875, 1); + x_878 = x_875; +} else { + lean_dec_ref(x_875); + x_878 = lean_box(0); +} +x_879 = lean_box(0); +if (lean_is_scalar(x_878)) { + x_880 = lean_alloc_ctor(1, 2, 0); +} else { + x_880 = x_878; + lean_ctor_set_tag(x_880, 1); +} +lean_ctor_set(x_880, 0, x_876); +lean_ctor_set(x_880, 1, x_879); +x_881 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_881, 0, x_873); +lean_ctor_set(x_881, 1, x_880); +lean_ctor_set_tag(x_100, 1); +lean_ctor_set(x_100, 1, x_881); +lean_ctor_set(x_100, 0, x_98); +x_882 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_883 = l_Lean_Expr_const___override(x_882, x_100); +x_884 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_65); +x_885 = lean_array_push(x_884, x_65); +lean_inc(x_51); +x_886 = lean_array_push(x_885, x_51); +x_887 = l_Lean_mkAppN(x_883, x_886); +x_888 = lean_box(0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_889 = l_Lean_Meta_trySynthInstance(x_887, x_888, x_3, x_4, x_5, x_6, x_877); +if (lean_obj_tag(x_889) == 0) +{ +lean_object* x_890; +x_890 = lean_ctor_get(x_889, 0); +lean_inc(x_890); +if (lean_obj_tag(x_890) == 1) +{ +lean_object* x_891; lean_object* x_892; lean_object* x_893; +x_891 = lean_ctor_get(x_889, 1); +lean_inc(x_891); +lean_dec(x_889); +x_892 = lean_ctor_get(x_890, 0); +lean_inc(x_892); +lean_dec(x_890); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_893 = l_Lean_Meta_getDecLevel(x_66, x_3, x_4, x_5, x_6, x_891); +if (lean_obj_tag(x_893) == 0) +{ +lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +x_894 = lean_ctor_get(x_893, 0); +lean_inc(x_894); +x_895 = lean_ctor_get(x_893, 1); +lean_inc(x_895); +if (lean_is_exclusive(x_893)) { + lean_ctor_release(x_893, 0); + lean_ctor_release(x_893, 1); + x_896 = x_893; +} else { + lean_dec_ref(x_893); + x_896 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_897 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_895); +if (lean_obj_tag(x_897) == 0) +{ +lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; +x_898 = lean_ctor_get(x_897, 0); +lean_inc(x_898); +x_899 = lean_ctor_get(x_897, 1); +lean_inc(x_899); +if (lean_is_exclusive(x_897)) { + lean_ctor_release(x_897, 0); + lean_ctor_release(x_897, 1); + x_900 = x_897; +} else { + lean_dec_ref(x_897); + x_900 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_901 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_899); +if (lean_obj_tag(x_901) == 0) +{ +lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; +x_902 = lean_ctor_get(x_901, 0); +lean_inc(x_902); +x_903 = lean_ctor_get(x_901, 1); +lean_inc(x_903); +if (lean_is_exclusive(x_901)) { + lean_ctor_release(x_901, 0); + lean_ctor_release(x_901, 1); + x_904 = x_901; +} else { + lean_dec_ref(x_901); + x_904 = lean_box(0); +} +if (lean_is_scalar(x_904)) { + x_905 = lean_alloc_ctor(1, 2, 0); +} else { + x_905 = x_904; + lean_ctor_set_tag(x_905, 1); +} +lean_ctor_set(x_905, 0, x_902); +lean_ctor_set(x_905, 1, x_879); +if (lean_is_scalar(x_900)) { + x_906 = lean_alloc_ctor(1, 2, 0); +} else { + x_906 = x_900; + lean_ctor_set_tag(x_906, 1); +} +lean_ctor_set(x_906, 0, x_898); +lean_ctor_set(x_906, 1, x_905); +if (lean_is_scalar(x_896)) { + x_907 = lean_alloc_ctor(1, 2, 0); +} else { + x_907 = x_896; + lean_ctor_set_tag(x_907, 1); +} +lean_ctor_set(x_907, 0, x_894); +lean_ctor_set(x_907, 1, x_906); +x_908 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_907); +x_909 = l_Lean_Expr_const___override(x_908, x_907); +x_910 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_911 = lean_array_push(x_910, x_65); +lean_inc(x_51); +x_912 = lean_array_push(x_911, x_51); +lean_inc(x_892); +x_913 = lean_array_push(x_912, x_892); +lean_inc(x_66); +x_914 = lean_array_push(x_913, x_66); +lean_inc(x_1); +x_915 = lean_array_push(x_914, x_1); +x_916 = l_Lean_mkAppN(x_909, x_915); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_916); -if (lean_is_exclusive(x_914)) { - lean_ctor_release(x_914, 0); - lean_ctor_release(x_914, 1); - x_917 = x_914; -} else { - lean_dec_ref(x_914); - x_917 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_918 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_916); -if (lean_obj_tag(x_918) == 0) +x_917 = lean_infer_type(x_916, x_3, x_4, x_5, x_6, x_903); +if (lean_obj_tag(x_917) == 0) { -lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; uint8_t x_933; lean_object* x_934; lean_object* x_935; -x_919 = lean_ctor_get(x_918, 0); +lean_object* x_918; lean_object* x_919; lean_object* x_920; +x_918 = lean_ctor_get(x_917, 0); +lean_inc(x_918); +x_919 = lean_ctor_get(x_917, 1); lean_inc(x_919); -x_920 = lean_ctor_get(x_918, 1); -lean_inc(x_920); -if (lean_is_exclusive(x_918)) { - lean_ctor_release(x_918, 0); - lean_ctor_release(x_918, 1); - x_921 = x_918; -} else { - lean_dec_ref(x_918); - x_921 = lean_box(0); -} -if (lean_is_scalar(x_921)) { - x_922 = lean_alloc_ctor(1, 2, 0); -} else { - x_922 = x_921; - lean_ctor_set_tag(x_922, 1); -} -lean_ctor_set(x_922, 0, x_919); -lean_ctor_set(x_922, 1, x_862); -if (lean_is_scalar(x_917)) { - x_923 = lean_alloc_ctor(1, 2, 0); -} else { - x_923 = x_917; - lean_ctor_set_tag(x_923, 1); -} -lean_ctor_set(x_923, 0, x_915); -lean_ctor_set(x_923, 1, x_922); -x_924 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_925 = l_Lean_Expr_const___override(x_924, x_923); -x_926 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_927 = lean_array_push(x_926, x_49); -x_928 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_929 = lean_array_push(x_927, x_928); -lean_inc(x_36); -x_930 = lean_array_push(x_929, x_36); -x_931 = l_Lean_mkAppN(x_925, x_930); -x_932 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_933 = 0; -lean_inc(x_49); -x_934 = l_Lean_Expr_forallE___override(x_932, x_49, x_931, x_933); +lean_dec(x_917); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_935 = l_Lean_Meta_trySynthInstance(x_934, x_871, x_3, x_4, x_5, x_6, x_920); +lean_inc(x_32); +x_920 = l_Lean_Meta_isExprDefEq(x_32, x_918, x_3, x_4, x_5, x_6, x_919); +if (lean_obj_tag(x_920) == 0) +{ +lean_object* x_921; uint8_t x_922; +x_921 = lean_ctor_get(x_920, 0); +lean_inc(x_921); +x_922 = lean_unbox(x_921); +lean_dec(x_921); +if (x_922 == 0) +{ +lean_object* x_923; lean_object* x_924; +lean_dec(x_916); +lean_free_object(x_54); +x_923 = lean_ctor_get(x_920, 1); +lean_inc(x_923); +lean_dec(x_920); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_924 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_923); +if (lean_obj_tag(x_924) == 0) +{ +lean_object* x_925; +x_925 = lean_ctor_get(x_924, 0); +lean_inc(x_925); +if (lean_obj_tag(x_925) == 0) +{ +lean_object* x_926; lean_object* x_927; lean_object* x_928; +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_926 = lean_ctor_get(x_924, 1); +lean_inc(x_926); +if (lean_is_exclusive(x_924)) { + lean_ctor_release(x_924, 0); + lean_ctor_release(x_924, 1); + x_927 = x_924; +} else { + lean_dec_ref(x_924); + x_927 = lean_box(0); +} +if (lean_is_scalar(x_927)) { + x_928 = lean_alloc_ctor(0, 2, 0); +} else { + x_928 = x_927; +} +lean_ctor_set(x_928, 0, x_888); +lean_ctor_set(x_928, 1, x_926); +return x_928; +} +else +{ +lean_object* x_929; lean_object* x_930; lean_object* x_931; +x_929 = lean_ctor_get(x_924, 1); +lean_inc(x_929); +lean_dec(x_924); +x_930 = lean_ctor_get(x_925, 0); +lean_inc(x_930); +lean_dec(x_925); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_931 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_929); +if (lean_obj_tag(x_931) == 0) +{ +lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_932 = lean_ctor_get(x_931, 0); +lean_inc(x_932); +x_933 = lean_ctor_get(x_931, 1); +lean_inc(x_933); +if (lean_is_exclusive(x_931)) { + lean_ctor_release(x_931, 0); + lean_ctor_release(x_931, 1); + x_934 = x_931; +} else { + lean_dec_ref(x_931); + x_934 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_935 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_933); if (lean_obj_tag(x_935) == 0) { -lean_object* x_936; +lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; uint8_t x_950; lean_object* x_951; lean_object* x_952; x_936 = lean_ctor_get(x_935, 0); lean_inc(x_936); -if (lean_obj_tag(x_936) == 1) -{ -lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; x_937 = lean_ctor_get(x_935, 1); lean_inc(x_937); -lean_dec(x_935); -x_938 = lean_ctor_get(x_936, 0); -lean_inc(x_938); -lean_dec(x_936); -x_939 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_940 = l_Lean_Expr_const___override(x_939, x_890); -x_941 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_942 = lean_array_push(x_941, x_48); -x_943 = lean_array_push(x_942, x_35); -x_944 = lean_array_push(x_943, x_49); -x_945 = lean_array_push(x_944, x_36); -x_946 = lean_array_push(x_945, x_875); -x_947 = lean_array_push(x_946, x_938); -x_948 = lean_array_push(x_947, x_913); -x_949 = lean_array_push(x_948, x_1); -x_950 = l_Lean_mkAppN(x_940, x_949); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_951 = l_Lean_Meta_expandCoe(x_950, x_3, x_4, x_5, x_6, x_937); -if (lean_obj_tag(x_951) == 0) -{ -lean_object* x_952; lean_object* x_953; lean_object* x_954; -x_952 = lean_ctor_get(x_951, 0); -lean_inc(x_952); -x_953 = lean_ctor_get(x_951, 1); -lean_inc(x_953); -lean_dec(x_951); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_952); -x_954 = lean_infer_type(x_952, x_3, x_4, x_5, x_6, x_953); -if (lean_obj_tag(x_954) == 0) -{ -lean_object* x_955; lean_object* x_956; lean_object* x_957; -x_955 = lean_ctor_get(x_954, 0); -lean_inc(x_955); -x_956 = lean_ctor_get(x_954, 1); -lean_inc(x_956); -lean_dec(x_954); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_957 = l_Lean_Meta_isExprDefEq(x_16, x_955, x_3, x_4, x_5, x_6, x_956); -if (lean_obj_tag(x_957) == 0) -{ -lean_object* x_958; uint8_t x_959; -x_958 = lean_ctor_get(x_957, 0); -lean_inc(x_958); -x_959 = lean_unbox(x_958); -lean_dec(x_958); -if (x_959 == 0) -{ -lean_object* x_960; lean_object* x_961; lean_object* x_962; -lean_dec(x_952); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_960 = lean_ctor_get(x_957, 1); -lean_inc(x_960); -if (lean_is_exclusive(x_957)) { - lean_ctor_release(x_957, 0); - lean_ctor_release(x_957, 1); - x_961 = x_957; -} else { - lean_dec_ref(x_957); - x_961 = lean_box(0); -} -if (lean_is_scalar(x_961)) { - x_962 = lean_alloc_ctor(0, 2, 0); -} else { - x_962 = x_961; -} -lean_ctor_set(x_962, 0, x_871); -lean_ctor_set(x_962, 1, x_960); -return x_962; -} -else -{ -lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; -x_963 = lean_ctor_get(x_957, 1); -lean_inc(x_963); -lean_dec(x_957); -x_964 = lean_box(0); -x_965 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_952, x_964, x_3, x_4, x_5, x_6, x_963); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_966 = lean_ctor_get(x_965, 0); -lean_inc(x_966); -x_967 = lean_ctor_get(x_965, 1); -lean_inc(x_967); -if (lean_is_exclusive(x_965)) { - lean_ctor_release(x_965, 0); - lean_ctor_release(x_965, 1); - x_968 = x_965; -} else { - lean_dec_ref(x_965); - x_968 = lean_box(0); -} -if (lean_is_scalar(x_968)) { - x_969 = lean_alloc_ctor(0, 2, 0); -} else { - x_969 = x_968; -} -lean_ctor_set(x_969, 0, x_966); -lean_ctor_set(x_969, 1, x_967); -return x_969; -} -} -else -{ -lean_object* x_970; lean_object* x_971; -lean_dec(x_952); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_970 = lean_ctor_get(x_957, 0); -lean_inc(x_970); -x_971 = lean_ctor_get(x_957, 1); -lean_inc(x_971); -lean_dec(x_957); -x_8 = x_970; -x_9 = x_971; -goto block_14; -} -} -else -{ -lean_object* x_972; lean_object* x_973; -lean_dec(x_952); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_972 = lean_ctor_get(x_954, 0); -lean_inc(x_972); -x_973 = lean_ctor_get(x_954, 1); -lean_inc(x_973); -lean_dec(x_954); -x_8 = x_972; -x_9 = x_973; -goto block_14; -} -} -else -{ -lean_object* x_974; lean_object* x_975; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_974 = lean_ctor_get(x_951, 0); -lean_inc(x_974); -x_975 = lean_ctor_get(x_951, 1); -lean_inc(x_975); -lean_dec(x_951); -x_8 = x_974; -x_9 = x_975; -goto block_14; -} -} -else -{ -lean_object* x_976; lean_object* x_977; lean_object* x_978; -lean_dec(x_936); -lean_dec(x_913); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_976 = lean_ctor_get(x_935, 1); -lean_inc(x_976); if (lean_is_exclusive(x_935)) { lean_ctor_release(x_935, 0); lean_ctor_release(x_935, 1); - x_977 = x_935; + x_938 = x_935; } else { lean_dec_ref(x_935); - x_977 = lean_box(0); + x_938 = lean_box(0); } -if (lean_is_scalar(x_977)) { - x_978 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_938)) { + x_939 = lean_alloc_ctor(1, 2, 0); } else { - x_978 = x_977; + x_939 = x_938; + lean_ctor_set_tag(x_939, 1); } -lean_ctor_set(x_978, 0, x_871); -lean_ctor_set(x_978, 1, x_976); -return x_978; +lean_ctor_set(x_939, 0, x_936); +lean_ctor_set(x_939, 1, x_879); +if (lean_is_scalar(x_934)) { + x_940 = lean_alloc_ctor(1, 2, 0); +} else { + x_940 = x_934; + lean_ctor_set_tag(x_940, 1); } -} -else +lean_ctor_set(x_940, 0, x_932); +lean_ctor_set(x_940, 1, x_939); +x_941 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_942 = l_Lean_Expr_const___override(x_941, x_940); +x_943 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_944 = lean_array_push(x_943, x_66); +x_945 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_946 = lean_array_push(x_944, x_945); +lean_inc(x_52); +x_947 = lean_array_push(x_946, x_52); +x_948 = l_Lean_mkAppN(x_942, x_947); +x_949 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_950 = 0; +lean_inc(x_66); +x_951 = l_Lean_Expr_forallE___override(x_949, x_66, x_948, x_950); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_952 = l_Lean_Meta_trySynthInstance(x_951, x_888, x_3, x_4, x_5, x_6, x_937); +if (lean_obj_tag(x_952) == 0) { -lean_object* x_979; lean_object* x_980; -lean_dec(x_913); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_953; +x_953 = lean_ctor_get(x_952, 0); +lean_inc(x_953); +if (lean_obj_tag(x_953) == 1) +{ +lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; +x_954 = lean_ctor_get(x_952, 1); +lean_inc(x_954); +lean_dec(x_952); +x_955 = lean_ctor_get(x_953, 0); +lean_inc(x_955); +lean_dec(x_953); +x_956 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_957 = l_Lean_Expr_const___override(x_956, x_907); +x_958 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_959 = lean_array_push(x_958, x_65); +x_960 = lean_array_push(x_959, x_51); +x_961 = lean_array_push(x_960, x_66); +x_962 = lean_array_push(x_961, x_52); +x_963 = lean_array_push(x_962, x_892); +x_964 = lean_array_push(x_963, x_955); +x_965 = lean_array_push(x_964, x_930); +x_966 = lean_array_push(x_965, x_1); +x_967 = l_Lean_mkAppN(x_957, x_966); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_968 = l_Lean_Meta_expandCoe(x_967, x_3, x_4, x_5, x_6, x_954); +if (lean_obj_tag(x_968) == 0) +{ +lean_object* x_969; lean_object* x_970; lean_object* x_971; +x_969 = lean_ctor_get(x_968, 0); +lean_inc(x_969); +x_970 = lean_ctor_get(x_968, 1); +lean_inc(x_970); +lean_dec(x_968); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_969); +x_971 = lean_infer_type(x_969, x_3, x_4, x_5, x_6, x_970); +if (lean_obj_tag(x_971) == 0) +{ +lean_object* x_972; lean_object* x_973; lean_object* x_974; +x_972 = lean_ctor_get(x_971, 0); +lean_inc(x_972); +x_973 = lean_ctor_get(x_971, 1); +lean_inc(x_973); +lean_dec(x_971); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_974 = l_Lean_Meta_isExprDefEq(x_32, x_972, x_3, x_4, x_5, x_6, x_973); +if (lean_obj_tag(x_974) == 0) +{ +lean_object* x_975; uint8_t x_976; +x_975 = lean_ctor_get(x_974, 0); +lean_inc(x_975); +x_976 = lean_unbox(x_975); +lean_dec(x_975); +if (x_976 == 0) +{ +lean_object* x_977; lean_object* x_978; lean_object* x_979; +lean_dec(x_969); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_979 = lean_ctor_get(x_935, 0); -lean_inc(x_979); -x_980 = lean_ctor_get(x_935, 1); +x_977 = lean_ctor_get(x_974, 1); +lean_inc(x_977); +if (lean_is_exclusive(x_974)) { + lean_ctor_release(x_974, 0); + lean_ctor_release(x_974, 1); + x_978 = x_974; +} else { + lean_dec_ref(x_974); + x_978 = lean_box(0); +} +if (lean_is_scalar(x_978)) { + x_979 = lean_alloc_ctor(0, 2, 0); +} else { + x_979 = x_978; +} +lean_ctor_set(x_979, 0, x_888); +lean_ctor_set(x_979, 1, x_977); +return x_979; +} +else +{ +lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; +x_980 = lean_ctor_get(x_974, 1); lean_inc(x_980); -lean_dec(x_935); -x_8 = x_979; -x_9 = x_980; -goto block_14; -} -} -else -{ -lean_object* x_981; lean_object* x_982; -lean_dec(x_917); -lean_dec(x_915); -lean_dec(x_913); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_974); +x_981 = lean_box(0); +x_982 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_969, x_981, x_3, x_4, x_5, x_6, x_980); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_981 = lean_ctor_get(x_918, 0); -lean_inc(x_981); -x_982 = lean_ctor_get(x_918, 1); -lean_inc(x_982); -lean_dec(x_918); -x_8 = x_981; -x_9 = x_982; -goto block_14; -} -} -else -{ -lean_object* x_983; lean_object* x_984; -lean_dec(x_913); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_983 = lean_ctor_get(x_914, 0); +x_983 = lean_ctor_get(x_982, 0); lean_inc(x_983); -x_984 = lean_ctor_get(x_914, 1); +x_984 = lean_ctor_get(x_982, 1); lean_inc(x_984); -lean_dec(x_914); -x_8 = x_983; -x_9 = x_984; -goto block_14; +if (lean_is_exclusive(x_982)) { + lean_ctor_release(x_982, 0); + lean_ctor_release(x_982, 1); + x_985 = x_982; +} else { + lean_dec_ref(x_982); + x_985 = lean_box(0); } +if (lean_is_scalar(x_985)) { + x_986 = lean_alloc_ctor(0, 2, 0); +} else { + x_986 = x_985; } -} -else -{ -lean_object* x_985; lean_object* x_986; -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_985 = lean_ctor_get(x_907, 0); -lean_inc(x_985); -x_986 = lean_ctor_get(x_907, 1); -lean_inc(x_986); -lean_dec(x_907); -x_8 = x_985; -x_9 = x_986; -goto block_14; +lean_ctor_set(x_986, 0, x_983); +lean_ctor_set(x_986, 1, x_984); +return x_986; } } else { -lean_object* x_987; lean_object* x_988; lean_object* x_989; -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_987; lean_object* x_988; +lean_dec(x_969); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_987 = lean_ctor_get(x_903, 1); +x_987 = lean_ctor_get(x_974, 0); lean_inc(x_987); -if (lean_is_exclusive(x_903)) { - lean_ctor_release(x_903, 0); - lean_ctor_release(x_903, 1); - x_988 = x_903; -} else { - lean_dec_ref(x_903); - x_988 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_899); -if (lean_is_scalar(x_988)) { - x_989 = lean_alloc_ctor(0, 2, 0); -} else { - x_989 = x_988; -} -lean_ctor_set(x_989, 0, x_38); -lean_ctor_set(x_989, 1, x_987); -return x_989; +x_988 = lean_ctor_get(x_974, 1); +lean_inc(x_988); +lean_dec(x_974); +x_8 = x_987; +x_9 = x_988; +goto block_16; } } else { -lean_object* x_990; lean_object* x_991; -lean_dec(x_899); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_989; lean_object* x_990; +lean_dec(x_969); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_990 = lean_ctor_get(x_903, 0); +x_989 = lean_ctor_get(x_971, 0); +lean_inc(x_989); +x_990 = lean_ctor_get(x_971, 1); lean_inc(x_990); -x_991 = lean_ctor_get(x_903, 1); +lean_dec(x_971); +x_8 = x_989; +x_9 = x_990; +goto block_16; +} +} +else +{ +lean_object* x_991; lean_object* x_992; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_991 = lean_ctor_get(x_968, 0); lean_inc(x_991); -lean_dec(x_903); -x_8 = x_990; -x_9 = x_991; -goto block_14; -} -} -else -{ -lean_object* x_992; lean_object* x_993; -lean_dec(x_899); -lean_dec(x_890); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_992 = lean_ctor_get(x_900, 0); +x_992 = lean_ctor_get(x_968, 1); lean_inc(x_992); -x_993 = lean_ctor_get(x_900, 1); -lean_inc(x_993); -lean_dec(x_900); -x_8 = x_992; -x_9 = x_993; -goto block_14; +lean_dec(x_968); +x_8 = x_991; +x_9 = x_992; +goto block_16; } } else { -lean_object* x_994; lean_object* x_995; -lean_dec(x_883); -lean_dec(x_881); -lean_dec(x_879); -lean_dec(x_877); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_993; lean_object* x_994; lean_object* x_995; +lean_dec(x_953); +lean_dec(x_930); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_994 = lean_ctor_get(x_884, 0); -lean_inc(x_994); -x_995 = lean_ctor_get(x_884, 1); -lean_inc(x_995); -lean_dec(x_884); -x_8 = x_994; -x_9 = x_995; -goto block_14; +x_993 = lean_ctor_get(x_952, 1); +lean_inc(x_993); +if (lean_is_exclusive(x_952)) { + lean_ctor_release(x_952, 0); + lean_ctor_release(x_952, 1); + x_994 = x_952; +} else { + lean_dec_ref(x_952); + x_994 = lean_box(0); +} +if (lean_is_scalar(x_994)) { + x_995 = lean_alloc_ctor(0, 2, 0); +} else { + x_995 = x_994; +} +lean_ctor_set(x_995, 0, x_888); +lean_ctor_set(x_995, 1, x_993); +return x_995; } } else { lean_object* x_996; lean_object* x_997; -lean_dec(x_879); -lean_dec(x_877); -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_930); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_996 = lean_ctor_get(x_880, 0); +x_996 = lean_ctor_get(x_952, 0); lean_inc(x_996); -x_997 = lean_ctor_get(x_880, 1); +x_997 = lean_ctor_get(x_952, 1); lean_inc(x_997); -lean_dec(x_880); +lean_dec(x_952); x_8 = x_996; x_9 = x_997; -goto block_14; +goto block_16; } } else { lean_object* x_998; lean_object* x_999; -lean_dec(x_875); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_934); +lean_dec(x_932); +lean_dec(x_930); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_998 = lean_ctor_get(x_876, 0); +x_998 = lean_ctor_get(x_935, 0); lean_inc(x_998); -x_999 = lean_ctor_get(x_876, 1); +x_999 = lean_ctor_get(x_935, 1); lean_inc(x_999); -lean_dec(x_876); +lean_dec(x_935); x_8 = x_998; x_9 = x_999; -goto block_14; +goto block_16; } } else { -lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; -lean_dec(x_873); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1000; lean_object* x_1001; +lean_dec(x_930); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1000 = lean_ctor_get(x_872, 1); +x_1000 = lean_ctor_get(x_931, 0); lean_inc(x_1000); -if (lean_is_exclusive(x_872)) { - lean_ctor_release(x_872, 0); - lean_ctor_release(x_872, 1); - x_1001 = x_872; -} else { - lean_dec_ref(x_872); - x_1001 = lean_box(0); +x_1001 = lean_ctor_get(x_931, 1); +lean_inc(x_1001); +lean_dec(x_931); +x_8 = x_1000; +x_9 = x_1001; +goto block_16; } -if (lean_is_scalar(x_1001)) { - x_1002 = lean_alloc_ctor(0, 2, 0); -} else { - x_1002 = x_1001; -} -lean_ctor_set(x_1002, 0, x_871); -lean_ctor_set(x_1002, 1, x_1000); -return x_1002; } } else { -lean_object* x_1003; lean_object* x_1004; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1002; lean_object* x_1003; +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1003 = lean_ctor_get(x_872, 0); +x_1002 = lean_ctor_get(x_924, 0); +lean_inc(x_1002); +x_1003 = lean_ctor_get(x_924, 1); lean_inc(x_1003); -x_1004 = lean_ctor_get(x_872, 1); -lean_inc(x_1004); -lean_dec(x_872); -x_8 = x_1003; -x_9 = x_1004; -goto block_14; +lean_dec(x_924); +x_8 = x_1002; +x_9 = x_1003; +goto block_16; } } else { -lean_object* x_1005; lean_object* x_1006; -lean_dec(x_856); -lean_free_object(x_83); -lean_dec(x_81); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1005 = lean_ctor_get(x_858, 0); -lean_inc(x_1005); -x_1006 = lean_ctor_get(x_858, 1); -lean_inc(x_1006); -lean_dec(x_858); -x_8 = x_1005; -x_9 = x_1006; -goto block_14; +x_1004 = lean_ctor_get(x_920, 1); +lean_inc(x_1004); +if (lean_is_exclusive(x_920)) { + lean_ctor_release(x_920, 0); + lean_ctor_release(x_920, 1); + x_1005 = x_920; +} else { + lean_dec_ref(x_920); + x_1005 = lean_box(0); } +lean_ctor_set(x_54, 0, x_916); +if (lean_is_scalar(x_1005)) { + x_1006 = lean_alloc_ctor(0, 2, 0); +} else { + x_1006 = x_1005; +} +lean_ctor_set(x_1006, 0, x_54); +lean_ctor_set(x_1006, 1, x_1004); +return x_1006; } } else { lean_object* x_1007; lean_object* x_1008; -lean_free_object(x_83); -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_916); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1007 = lean_ctor_get(x_98, 0); +x_1007 = lean_ctor_get(x_920, 0); lean_inc(x_1007); -x_1008 = lean_ctor_get(x_98, 1); +x_1008 = lean_ctor_get(x_920, 1); lean_inc(x_1008); -lean_dec(x_98); +lean_dec(x_920); x_8 = x_1007; x_9 = x_1008; -goto block_14; -} +goto block_16; } } else { lean_object* x_1009; lean_object* x_1010; -lean_free_object(x_83); -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_916); +lean_dec(x_907); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1009 = lean_ctor_get(x_88, 0); +x_1009 = lean_ctor_get(x_917, 0); lean_inc(x_1009); -x_1010 = lean_ctor_get(x_88, 1); +x_1010 = lean_ctor_get(x_917, 1); lean_inc(x_1010); -lean_dec(x_88); +lean_dec(x_917); x_8 = x_1009; x_9 = x_1010; -goto block_14; +goto block_16; } } else { -lean_object* x_1011; lean_object* x_1012; uint8_t x_1013; lean_object* x_1014; -x_1011 = lean_ctor_get(x_83, 0); -x_1012 = lean_ctor_get(x_83, 1); -lean_inc(x_1012); -lean_inc(x_1011); -lean_dec(x_83); -x_1013 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_81); -x_1014 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_81, x_1011, x_1013, x_3, x_4, x_5, x_6, x_1012); -if (lean_obj_tag(x_1014) == 0) -{ -lean_object* x_1015; uint8_t x_1016; -x_1015 = lean_ctor_get(x_1014, 0); -lean_inc(x_1015); -x_1016 = lean_unbox(x_1015); -lean_dec(x_1015); -if (x_1016 == 0) -{ -lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1011; lean_object* x_1012; +lean_dec(x_900); +lean_dec(x_898); +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1017 = lean_ctor_get(x_1014, 1); +x_1011 = lean_ctor_get(x_901, 0); +lean_inc(x_1011); +x_1012 = lean_ctor_get(x_901, 1); +lean_inc(x_1012); +lean_dec(x_901); +x_8 = x_1011; +x_9 = x_1012; +goto block_16; +} +} +else +{ +lean_object* x_1013; lean_object* x_1014; +lean_dec(x_896); +lean_dec(x_894); +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1013 = lean_ctor_get(x_897, 0); +lean_inc(x_1013); +x_1014 = lean_ctor_get(x_897, 1); +lean_inc(x_1014); +lean_dec(x_897); +x_8 = x_1013; +x_9 = x_1014; +goto block_16; +} +} +else +{ +lean_object* x_1015; lean_object* x_1016; +lean_dec(x_892); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1015 = lean_ctor_get(x_893, 0); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_893, 1); +lean_inc(x_1016); +lean_dec(x_893); +x_8 = x_1015; +x_9 = x_1016; +goto block_16; +} +} +else +{ +lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; +lean_dec(x_890); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1017 = lean_ctor_get(x_889, 1); lean_inc(x_1017); -if (lean_is_exclusive(x_1014)) { - lean_ctor_release(x_1014, 0); - lean_ctor_release(x_1014, 1); - x_1018 = x_1014; +if (lean_is_exclusive(x_889)) { + lean_ctor_release(x_889, 0); + lean_ctor_release(x_889, 1); + x_1018 = x_889; } else { - lean_dec_ref(x_1014); + lean_dec_ref(x_889); x_1018 = lean_box(0); } -x_1019 = lean_box(0); if (lean_is_scalar(x_1018)) { - x_1020 = lean_alloc_ctor(0, 2, 0); + x_1019 = lean_alloc_ctor(0, 2, 0); } else { - x_1020 = x_1018; + x_1019 = x_1018; +} +lean_ctor_set(x_1019, 0, x_888); +lean_ctor_set(x_1019, 1, x_1017); +return x_1019; } -lean_ctor_set(x_1020, 0, x_1019); -lean_ctor_set(x_1020, 1, x_1017); -return x_1020; } else { -lean_object* x_1021; lean_object* x_1022; -x_1021 = lean_ctor_get(x_1014, 1); -lean_inc(x_1021); -lean_dec(x_1014); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1022 = l_Lean_Meta_decLevel(x_69, x_3, x_4, x_5, x_6, x_1021); -if (lean_obj_tag(x_1022) == 0) -{ -lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; -x_1023 = lean_ctor_get(x_1022, 0); -lean_inc(x_1023); -x_1024 = lean_ctor_get(x_1022, 1); -lean_inc(x_1024); -if (lean_is_exclusive(x_1022)) { - lean_ctor_release(x_1022, 0); - lean_ctor_release(x_1022, 1); - x_1025 = x_1022; -} else { - lean_dec_ref(x_1022); - x_1025 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1026 = l_Lean_Meta_decLevel(x_79, x_3, x_4, x_5, x_6, x_1024); -if (lean_obj_tag(x_1026) == 0) -{ -lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -x_1027 = lean_ctor_get(x_1026, 0); -lean_inc(x_1027); -x_1028 = lean_ctor_get(x_1026, 1); -lean_inc(x_1028); -if (lean_is_exclusive(x_1026)) { - lean_ctor_release(x_1026, 0); - lean_ctor_release(x_1026, 1); - x_1029 = x_1026; -} else { - lean_dec_ref(x_1026); - x_1029 = lean_box(0); -} -x_1030 = lean_box(0); -if (lean_is_scalar(x_1029)) { - x_1031 = lean_alloc_ctor(1, 2, 0); -} else { - x_1031 = x_1029; - lean_ctor_set_tag(x_1031, 1); -} -lean_ctor_set(x_1031, 0, x_1027); -lean_ctor_set(x_1031, 1, x_1030); -if (lean_is_scalar(x_1025)) { - x_1032 = lean_alloc_ctor(1, 2, 0); -} else { - x_1032 = x_1025; - lean_ctor_set_tag(x_1032, 1); -} -lean_ctor_set(x_1032, 0, x_1023); -lean_ctor_set(x_1032, 1, x_1031); -x_1033 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1033, 0, x_81); -lean_ctor_set(x_1033, 1, x_1032); -x_1034 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_1035 = l_Lean_Expr_const___override(x_1034, x_1033); -x_1036 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_48); -x_1037 = lean_array_push(x_1036, x_48); -lean_inc(x_35); -x_1038 = lean_array_push(x_1037, x_35); -x_1039 = l_Lean_mkAppN(x_1035, x_1038); -x_1040 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1041 = l_Lean_Meta_trySynthInstance(x_1039, x_1040, x_3, x_4, x_5, x_6, x_1028); -if (lean_obj_tag(x_1041) == 0) -{ -lean_object* x_1042; -x_1042 = lean_ctor_get(x_1041, 0); -lean_inc(x_1042); -if (lean_obj_tag(x_1042) == 1) -{ -lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; -x_1043 = lean_ctor_get(x_1041, 1); -lean_inc(x_1043); -lean_dec(x_1041); -x_1044 = lean_ctor_get(x_1042, 0); -lean_inc(x_1044); -lean_dec(x_1042); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_49); -x_1045 = l_Lean_Meta_getDecLevel(x_49, x_3, x_4, x_5, x_6, x_1043); -if (lean_obj_tag(x_1045) == 0) -{ -lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; -x_1046 = lean_ctor_get(x_1045, 0); -lean_inc(x_1046); -x_1047 = lean_ctor_get(x_1045, 1); -lean_inc(x_1047); -if (lean_is_exclusive(x_1045)) { - lean_ctor_release(x_1045, 0); - lean_ctor_release(x_1045, 1); - x_1048 = x_1045; -} else { - lean_dec_ref(x_1045); - x_1048 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1049 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_1047); -if (lean_obj_tag(x_1049) == 0) -{ -lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; -x_1050 = lean_ctor_get(x_1049, 0); -lean_inc(x_1050); -x_1051 = lean_ctor_get(x_1049, 1); -lean_inc(x_1051); -if (lean_is_exclusive(x_1049)) { - lean_ctor_release(x_1049, 0); - lean_ctor_release(x_1049, 1); - x_1052 = x_1049; -} else { - lean_dec_ref(x_1049); - x_1052 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_1053 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_1051); -if (lean_obj_tag(x_1053) == 0) -{ -lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; -x_1054 = lean_ctor_get(x_1053, 0); -lean_inc(x_1054); -x_1055 = lean_ctor_get(x_1053, 1); -lean_inc(x_1055); -if (lean_is_exclusive(x_1053)) { - lean_ctor_release(x_1053, 0); - lean_ctor_release(x_1053, 1); - x_1056 = x_1053; -} else { - lean_dec_ref(x_1053); - x_1056 = lean_box(0); -} -if (lean_is_scalar(x_1056)) { - x_1057 = lean_alloc_ctor(1, 2, 0); -} else { - x_1057 = x_1056; - lean_ctor_set_tag(x_1057, 1); -} -lean_ctor_set(x_1057, 0, x_1054); -lean_ctor_set(x_1057, 1, x_1030); -if (lean_is_scalar(x_1052)) { - x_1058 = lean_alloc_ctor(1, 2, 0); -} else { - x_1058 = x_1052; - lean_ctor_set_tag(x_1058, 1); -} -lean_ctor_set(x_1058, 0, x_1050); -lean_ctor_set(x_1058, 1, x_1057); -if (lean_is_scalar(x_1048)) { - x_1059 = lean_alloc_ctor(1, 2, 0); -} else { - x_1059 = x_1048; - lean_ctor_set_tag(x_1059, 1); -} -lean_ctor_set(x_1059, 0, x_1046); -lean_ctor_set(x_1059, 1, x_1058); -x_1060 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_1059); -x_1061 = l_Lean_Expr_const___override(x_1060, x_1059); -x_1062 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_1063 = lean_array_push(x_1062, x_48); -lean_inc(x_35); -x_1064 = lean_array_push(x_1063, x_35); -lean_inc(x_1044); -x_1065 = lean_array_push(x_1064, x_1044); -lean_inc(x_49); -x_1066 = lean_array_push(x_1065, x_49); -lean_inc(x_1); -x_1067 = lean_array_push(x_1066, x_1); -x_1068 = l_Lean_mkAppN(x_1061, x_1067); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1068); -x_1069 = lean_infer_type(x_1068, x_3, x_4, x_5, x_6, x_1055); -if (lean_obj_tag(x_1069) == 0) -{ -lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; -x_1070 = lean_ctor_get(x_1069, 0); -lean_inc(x_1070); -x_1071 = lean_ctor_get(x_1069, 1); -lean_inc(x_1071); -lean_dec(x_1069); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_1072 = l_Lean_Meta_isExprDefEq(x_16, x_1070, x_3, x_4, x_5, x_6, x_1071); -if (lean_obj_tag(x_1072) == 0) -{ -lean_object* x_1073; uint8_t x_1074; -x_1073 = lean_ctor_get(x_1072, 0); -lean_inc(x_1073); -x_1074 = lean_unbox(x_1073); -lean_dec(x_1073); -if (x_1074 == 0) -{ -lean_object* x_1075; lean_object* x_1076; -lean_dec(x_1068); -lean_free_object(x_38); -x_1075 = lean_ctor_get(x_1072, 1); -lean_inc(x_1075); -lean_dec(x_1072); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_1076 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_1075); -if (lean_obj_tag(x_1076) == 0) -{ -lean_object* x_1077; -x_1077 = lean_ctor_get(x_1076, 0); -lean_inc(x_1077); -if (lean_obj_tag(x_1077) == 0) -{ -lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1020; lean_object* x_1021; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1078 = lean_ctor_get(x_1076, 1); -lean_inc(x_1078); -if (lean_is_exclusive(x_1076)) { - lean_ctor_release(x_1076, 0); - lean_ctor_release(x_1076, 1); - x_1079 = x_1076; -} else { - lean_dec_ref(x_1076); - x_1079 = lean_box(0); +x_1020 = lean_ctor_get(x_889, 0); +lean_inc(x_1020); +x_1021 = lean_ctor_get(x_889, 1); +lean_inc(x_1021); +lean_dec(x_889); +x_8 = x_1020; +x_9 = x_1021; +goto block_16; } -if (lean_is_scalar(x_1079)) { - x_1080 = lean_alloc_ctor(0, 2, 0); -} else { - x_1080 = x_1079; -} -lean_ctor_set(x_1080, 0, x_1040); -lean_ctor_set(x_1080, 1, x_1078); -return x_1080; } else { -lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; -x_1081 = lean_ctor_get(x_1076, 1); -lean_inc(x_1081); -lean_dec(x_1076); -x_1082 = lean_ctor_get(x_1077, 0); -lean_inc(x_1082); -lean_dec(x_1077); +lean_object* x_1022; lean_object* x_1023; +lean_dec(x_873); +lean_free_object(x_100); +lean_dec(x_98); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1022 = lean_ctor_get(x_875, 0); +lean_inc(x_1022); +x_1023 = lean_ctor_get(x_875, 1); +lean_inc(x_1023); +lean_dec(x_875); +x_8 = x_1022; +x_9 = x_1023; +goto block_16; +} +} +} +else +{ +lean_object* x_1024; lean_object* x_1025; +lean_free_object(x_100); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1024 = lean_ctor_get(x_115, 0); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_115, 1); +lean_inc(x_1025); +lean_dec(x_115); +x_8 = x_1024; +x_9 = x_1025; +goto block_16; +} +} +} +else +{ +lean_object* x_1026; lean_object* x_1027; +lean_free_object(x_100); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1026 = lean_ctor_get(x_105, 0); +lean_inc(x_1026); +x_1027 = lean_ctor_get(x_105, 1); +lean_inc(x_1027); +lean_dec(x_105); +x_8 = x_1026; +x_9 = x_1027; +goto block_16; +} +} +else +{ +lean_object* x_1028; lean_object* x_1029; uint8_t x_1030; lean_object* x_1031; +x_1028 = lean_ctor_get(x_100, 0); +x_1029 = lean_ctor_get(x_100, 1); +lean_inc(x_1029); +lean_inc(x_1028); +lean_dec(x_100); +x_1030 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_1083 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_1081); -if (lean_obj_tag(x_1083) == 0) +lean_inc(x_98); +x_1031 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_98, x_1028, x_1030, x_3, x_4, x_5, x_6, x_1029); +if (lean_obj_tag(x_1031) == 0) { -lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; -x_1084 = lean_ctor_get(x_1083, 0); -lean_inc(x_1084); -x_1085 = lean_ctor_get(x_1083, 1); +lean_object* x_1032; uint8_t x_1033; +x_1032 = lean_ctor_get(x_1031, 0); +lean_inc(x_1032); +x_1033 = lean_unbox(x_1032); +lean_dec(x_1032); +if (x_1033 == 0) +{ +lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1034 = lean_ctor_get(x_1031, 1); +lean_inc(x_1034); +if (lean_is_exclusive(x_1031)) { + lean_ctor_release(x_1031, 0); + lean_ctor_release(x_1031, 1); + x_1035 = x_1031; +} else { + lean_dec_ref(x_1031); + x_1035 = lean_box(0); +} +x_1036 = lean_box(0); +if (lean_is_scalar(x_1035)) { + x_1037 = lean_alloc_ctor(0, 2, 0); +} else { + x_1037 = x_1035; +} +lean_ctor_set(x_1037, 0, x_1036); +lean_ctor_set(x_1037, 1, x_1034); +return x_1037; +} +else +{ +lean_object* x_1038; lean_object* x_1039; +x_1038 = lean_ctor_get(x_1031, 1); +lean_inc(x_1038); +lean_dec(x_1031); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1039 = l_Lean_Meta_decLevel(x_86, x_3, x_4, x_5, x_6, x_1038); +if (lean_obj_tag(x_1039) == 0) +{ +lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; +x_1040 = lean_ctor_get(x_1039, 0); +lean_inc(x_1040); +x_1041 = lean_ctor_get(x_1039, 1); +lean_inc(x_1041); +if (lean_is_exclusive(x_1039)) { + lean_ctor_release(x_1039, 0); + lean_ctor_release(x_1039, 1); + x_1042 = x_1039; +} else { + lean_dec_ref(x_1039); + x_1042 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1043 = l_Lean_Meta_decLevel(x_96, x_3, x_4, x_5, x_6, x_1041); +if (lean_obj_tag(x_1043) == 0) +{ +lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; +x_1044 = lean_ctor_get(x_1043, 0); +lean_inc(x_1044); +x_1045 = lean_ctor_get(x_1043, 1); +lean_inc(x_1045); +if (lean_is_exclusive(x_1043)) { + lean_ctor_release(x_1043, 0); + lean_ctor_release(x_1043, 1); + x_1046 = x_1043; +} else { + lean_dec_ref(x_1043); + x_1046 = lean_box(0); +} +x_1047 = lean_box(0); +if (lean_is_scalar(x_1046)) { + x_1048 = lean_alloc_ctor(1, 2, 0); +} else { + x_1048 = x_1046; + lean_ctor_set_tag(x_1048, 1); +} +lean_ctor_set(x_1048, 0, x_1044); +lean_ctor_set(x_1048, 1, x_1047); +if (lean_is_scalar(x_1042)) { + x_1049 = lean_alloc_ctor(1, 2, 0); +} else { + x_1049 = x_1042; + lean_ctor_set_tag(x_1049, 1); +} +lean_ctor_set(x_1049, 0, x_1040); +lean_ctor_set(x_1049, 1, x_1048); +x_1050 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1050, 0, x_98); +lean_ctor_set(x_1050, 1, x_1049); +x_1051 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_1052 = l_Lean_Expr_const___override(x_1051, x_1050); +x_1053 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_65); +x_1054 = lean_array_push(x_1053, x_65); +lean_inc(x_51); +x_1055 = lean_array_push(x_1054, x_51); +x_1056 = l_Lean_mkAppN(x_1052, x_1055); +x_1057 = lean_box(0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1058 = l_Lean_Meta_trySynthInstance(x_1056, x_1057, x_3, x_4, x_5, x_6, x_1045); +if (lean_obj_tag(x_1058) == 0) +{ +lean_object* x_1059; +x_1059 = lean_ctor_get(x_1058, 0); +lean_inc(x_1059); +if (lean_obj_tag(x_1059) == 1) +{ +lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; +x_1060 = lean_ctor_get(x_1058, 1); +lean_inc(x_1060); +lean_dec(x_1058); +x_1061 = lean_ctor_get(x_1059, 0); +lean_inc(x_1061); +lean_dec(x_1059); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_1062 = l_Lean_Meta_getDecLevel(x_66, x_3, x_4, x_5, x_6, x_1060); +if (lean_obj_tag(x_1062) == 0) +{ +lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; +x_1063 = lean_ctor_get(x_1062, 0); +lean_inc(x_1063); +x_1064 = lean_ctor_get(x_1062, 1); +lean_inc(x_1064); +if (lean_is_exclusive(x_1062)) { + lean_ctor_release(x_1062, 0); + lean_ctor_release(x_1062, 1); + x_1065 = x_1062; +} else { + lean_dec_ref(x_1062); + x_1065 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1066 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_1064); +if (lean_obj_tag(x_1066) == 0) +{ +lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; +x_1067 = lean_ctor_get(x_1066, 0); +lean_inc(x_1067); +x_1068 = lean_ctor_get(x_1066, 1); +lean_inc(x_1068); +if (lean_is_exclusive(x_1066)) { + lean_ctor_release(x_1066, 0); + lean_ctor_release(x_1066, 1); + x_1069 = x_1066; +} else { + lean_dec_ref(x_1066); + x_1069 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_1070 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_1068); +if (lean_obj_tag(x_1070) == 0) +{ +lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; +x_1071 = lean_ctor_get(x_1070, 0); +lean_inc(x_1071); +x_1072 = lean_ctor_get(x_1070, 1); +lean_inc(x_1072); +if (lean_is_exclusive(x_1070)) { + lean_ctor_release(x_1070, 0); + lean_ctor_release(x_1070, 1); + x_1073 = x_1070; +} else { + lean_dec_ref(x_1070); + x_1073 = lean_box(0); +} +if (lean_is_scalar(x_1073)) { + x_1074 = lean_alloc_ctor(1, 2, 0); +} else { + x_1074 = x_1073; + lean_ctor_set_tag(x_1074, 1); +} +lean_ctor_set(x_1074, 0, x_1071); +lean_ctor_set(x_1074, 1, x_1047); +if (lean_is_scalar(x_1069)) { + x_1075 = lean_alloc_ctor(1, 2, 0); +} else { + x_1075 = x_1069; + lean_ctor_set_tag(x_1075, 1); +} +lean_ctor_set(x_1075, 0, x_1067); +lean_ctor_set(x_1075, 1, x_1074); +if (lean_is_scalar(x_1065)) { + x_1076 = lean_alloc_ctor(1, 2, 0); +} else { + x_1076 = x_1065; + lean_ctor_set_tag(x_1076, 1); +} +lean_ctor_set(x_1076, 0, x_1063); +lean_ctor_set(x_1076, 1, x_1075); +x_1077 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_1076); +x_1078 = l_Lean_Expr_const___override(x_1077, x_1076); +x_1079 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_1080 = lean_array_push(x_1079, x_65); +lean_inc(x_51); +x_1081 = lean_array_push(x_1080, x_51); +lean_inc(x_1061); +x_1082 = lean_array_push(x_1081, x_1061); +lean_inc(x_66); +x_1083 = lean_array_push(x_1082, x_66); +lean_inc(x_1); +x_1084 = lean_array_push(x_1083, x_1); +x_1085 = l_Lean_mkAppN(x_1078, x_1084); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_1085); -if (lean_is_exclusive(x_1083)) { - lean_ctor_release(x_1083, 0); - lean_ctor_release(x_1083, 1); - x_1086 = x_1083; -} else { - lean_dec_ref(x_1083); - x_1086 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_1087 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_1085); -if (lean_obj_tag(x_1087) == 0) +x_1086 = lean_infer_type(x_1085, x_3, x_4, x_5, x_6, x_1072); +if (lean_obj_tag(x_1086) == 0) { -lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; uint8_t x_1102; lean_object* x_1103; lean_object* x_1104; -x_1088 = lean_ctor_get(x_1087, 0); +lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; +x_1087 = lean_ctor_get(x_1086, 0); +lean_inc(x_1087); +x_1088 = lean_ctor_get(x_1086, 1); lean_inc(x_1088); -x_1089 = lean_ctor_get(x_1087, 1); -lean_inc(x_1089); -if (lean_is_exclusive(x_1087)) { - lean_ctor_release(x_1087, 0); - lean_ctor_release(x_1087, 1); - x_1090 = x_1087; -} else { - lean_dec_ref(x_1087); - x_1090 = lean_box(0); -} -if (lean_is_scalar(x_1090)) { - x_1091 = lean_alloc_ctor(1, 2, 0); -} else { - x_1091 = x_1090; - lean_ctor_set_tag(x_1091, 1); -} -lean_ctor_set(x_1091, 0, x_1088); -lean_ctor_set(x_1091, 1, x_1030); -if (lean_is_scalar(x_1086)) { - x_1092 = lean_alloc_ctor(1, 2, 0); -} else { - x_1092 = x_1086; - lean_ctor_set_tag(x_1092, 1); -} -lean_ctor_set(x_1092, 0, x_1084); -lean_ctor_set(x_1092, 1, x_1091); -x_1093 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_1094 = l_Lean_Expr_const___override(x_1093, x_1092); -x_1095 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_1096 = lean_array_push(x_1095, x_49); -x_1097 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_1098 = lean_array_push(x_1096, x_1097); -lean_inc(x_36); -x_1099 = lean_array_push(x_1098, x_36); -x_1100 = l_Lean_mkAppN(x_1094, x_1099); -x_1101 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_1102 = 0; -lean_inc(x_49); -x_1103 = l_Lean_Expr_forallE___override(x_1101, x_49, x_1100, x_1102); +lean_dec(x_1086); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1104 = l_Lean_Meta_trySynthInstance(x_1103, x_1040, x_3, x_4, x_5, x_6, x_1089); +lean_inc(x_32); +x_1089 = l_Lean_Meta_isExprDefEq(x_32, x_1087, x_3, x_4, x_5, x_6, x_1088); +if (lean_obj_tag(x_1089) == 0) +{ +lean_object* x_1090; uint8_t x_1091; +x_1090 = lean_ctor_get(x_1089, 0); +lean_inc(x_1090); +x_1091 = lean_unbox(x_1090); +lean_dec(x_1090); +if (x_1091 == 0) +{ +lean_object* x_1092; lean_object* x_1093; +lean_dec(x_1085); +lean_free_object(x_54); +x_1092 = lean_ctor_get(x_1089, 1); +lean_inc(x_1092); +lean_dec(x_1089); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_1093 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_1092); +if (lean_obj_tag(x_1093) == 0) +{ +lean_object* x_1094; +x_1094 = lean_ctor_get(x_1093, 0); +lean_inc(x_1094); +if (lean_obj_tag(x_1094) == 0) +{ +lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1095 = lean_ctor_get(x_1093, 1); +lean_inc(x_1095); +if (lean_is_exclusive(x_1093)) { + lean_ctor_release(x_1093, 0); + lean_ctor_release(x_1093, 1); + x_1096 = x_1093; +} else { + lean_dec_ref(x_1093); + x_1096 = lean_box(0); +} +if (lean_is_scalar(x_1096)) { + x_1097 = lean_alloc_ctor(0, 2, 0); +} else { + x_1097 = x_1096; +} +lean_ctor_set(x_1097, 0, x_1057); +lean_ctor_set(x_1097, 1, x_1095); +return x_1097; +} +else +{ +lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; +x_1098 = lean_ctor_get(x_1093, 1); +lean_inc(x_1098); +lean_dec(x_1093); +x_1099 = lean_ctor_get(x_1094, 0); +lean_inc(x_1099); +lean_dec(x_1094); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_1100 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_1098); +if (lean_obj_tag(x_1100) == 0) +{ +lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; +x_1101 = lean_ctor_get(x_1100, 0); +lean_inc(x_1101); +x_1102 = lean_ctor_get(x_1100, 1); +lean_inc(x_1102); +if (lean_is_exclusive(x_1100)) { + lean_ctor_release(x_1100, 0); + lean_ctor_release(x_1100, 1); + x_1103 = x_1100; +} else { + lean_dec_ref(x_1100); + x_1103 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_1104 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_1102); if (lean_obj_tag(x_1104) == 0) { -lean_object* x_1105; +lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; uint8_t x_1119; lean_object* x_1120; lean_object* x_1121; x_1105 = lean_ctor_get(x_1104, 0); lean_inc(x_1105); -if (lean_obj_tag(x_1105) == 1) -{ -lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; x_1106 = lean_ctor_get(x_1104, 1); lean_inc(x_1106); -lean_dec(x_1104); -x_1107 = lean_ctor_get(x_1105, 0); -lean_inc(x_1107); -lean_dec(x_1105); -x_1108 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_1109 = l_Lean_Expr_const___override(x_1108, x_1059); -x_1110 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_1111 = lean_array_push(x_1110, x_48); -x_1112 = lean_array_push(x_1111, x_35); -x_1113 = lean_array_push(x_1112, x_49); -x_1114 = lean_array_push(x_1113, x_36); -x_1115 = lean_array_push(x_1114, x_1044); -x_1116 = lean_array_push(x_1115, x_1107); -x_1117 = lean_array_push(x_1116, x_1082); -x_1118 = lean_array_push(x_1117, x_1); -x_1119 = l_Lean_mkAppN(x_1109, x_1118); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1120 = l_Lean_Meta_expandCoe(x_1119, x_3, x_4, x_5, x_6, x_1106); -if (lean_obj_tag(x_1120) == 0) -{ -lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; -x_1121 = lean_ctor_get(x_1120, 0); -lean_inc(x_1121); -x_1122 = lean_ctor_get(x_1120, 1); -lean_inc(x_1122); -lean_dec(x_1120); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1121); -x_1123 = lean_infer_type(x_1121, x_3, x_4, x_5, x_6, x_1122); -if (lean_obj_tag(x_1123) == 0) -{ -lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; -x_1124 = lean_ctor_get(x_1123, 0); -lean_inc(x_1124); -x_1125 = lean_ctor_get(x_1123, 1); -lean_inc(x_1125); -lean_dec(x_1123); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1126 = l_Lean_Meta_isExprDefEq(x_16, x_1124, x_3, x_4, x_5, x_6, x_1125); -if (lean_obj_tag(x_1126) == 0) -{ -lean_object* x_1127; uint8_t x_1128; -x_1127 = lean_ctor_get(x_1126, 0); -lean_inc(x_1127); -x_1128 = lean_unbox(x_1127); -lean_dec(x_1127); -if (x_1128 == 0) -{ -lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; -lean_dec(x_1121); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1129 = lean_ctor_get(x_1126, 1); -lean_inc(x_1129); -if (lean_is_exclusive(x_1126)) { - lean_ctor_release(x_1126, 0); - lean_ctor_release(x_1126, 1); - x_1130 = x_1126; -} else { - lean_dec_ref(x_1126); - x_1130 = lean_box(0); -} -if (lean_is_scalar(x_1130)) { - x_1131 = lean_alloc_ctor(0, 2, 0); -} else { - x_1131 = x_1130; -} -lean_ctor_set(x_1131, 0, x_1040); -lean_ctor_set(x_1131, 1, x_1129); -return x_1131; -} -else -{ -lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; -x_1132 = lean_ctor_get(x_1126, 1); -lean_inc(x_1132); -lean_dec(x_1126); -x_1133 = lean_box(0); -x_1134 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1121, x_1133, x_3, x_4, x_5, x_6, x_1132); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1135 = lean_ctor_get(x_1134, 0); -lean_inc(x_1135); -x_1136 = lean_ctor_get(x_1134, 1); -lean_inc(x_1136); -if (lean_is_exclusive(x_1134)) { - lean_ctor_release(x_1134, 0); - lean_ctor_release(x_1134, 1); - x_1137 = x_1134; -} else { - lean_dec_ref(x_1134); - x_1137 = lean_box(0); -} -if (lean_is_scalar(x_1137)) { - x_1138 = lean_alloc_ctor(0, 2, 0); -} else { - x_1138 = x_1137; -} -lean_ctor_set(x_1138, 0, x_1135); -lean_ctor_set(x_1138, 1, x_1136); -return x_1138; -} -} -else -{ -lean_object* x_1139; lean_object* x_1140; -lean_dec(x_1121); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1139 = lean_ctor_get(x_1126, 0); -lean_inc(x_1139); -x_1140 = lean_ctor_get(x_1126, 1); -lean_inc(x_1140); -lean_dec(x_1126); -x_8 = x_1139; -x_9 = x_1140; -goto block_14; -} -} -else -{ -lean_object* x_1141; lean_object* x_1142; -lean_dec(x_1121); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1141 = lean_ctor_get(x_1123, 0); -lean_inc(x_1141); -x_1142 = lean_ctor_get(x_1123, 1); -lean_inc(x_1142); -lean_dec(x_1123); -x_8 = x_1141; -x_9 = x_1142; -goto block_14; -} -} -else -{ -lean_object* x_1143; lean_object* x_1144; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1143 = lean_ctor_get(x_1120, 0); -lean_inc(x_1143); -x_1144 = lean_ctor_get(x_1120, 1); -lean_inc(x_1144); -lean_dec(x_1120); -x_8 = x_1143; -x_9 = x_1144; -goto block_14; -} -} -else -{ -lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; -lean_dec(x_1105); -lean_dec(x_1082); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1145 = lean_ctor_get(x_1104, 1); -lean_inc(x_1145); if (lean_is_exclusive(x_1104)) { lean_ctor_release(x_1104, 0); lean_ctor_release(x_1104, 1); - x_1146 = x_1104; + x_1107 = x_1104; } else { lean_dec_ref(x_1104); - x_1146 = lean_box(0); + x_1107 = lean_box(0); } -if (lean_is_scalar(x_1146)) { - x_1147 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1107)) { + x_1108 = lean_alloc_ctor(1, 2, 0); } else { - x_1147 = x_1146; + x_1108 = x_1107; + lean_ctor_set_tag(x_1108, 1); } -lean_ctor_set(x_1147, 0, x_1040); -lean_ctor_set(x_1147, 1, x_1145); -return x_1147; +lean_ctor_set(x_1108, 0, x_1105); +lean_ctor_set(x_1108, 1, x_1047); +if (lean_is_scalar(x_1103)) { + x_1109 = lean_alloc_ctor(1, 2, 0); +} else { + x_1109 = x_1103; + lean_ctor_set_tag(x_1109, 1); } -} -else +lean_ctor_set(x_1109, 0, x_1101); +lean_ctor_set(x_1109, 1, x_1108); +x_1110 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_1111 = l_Lean_Expr_const___override(x_1110, x_1109); +x_1112 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_1113 = lean_array_push(x_1112, x_66); +x_1114 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_1115 = lean_array_push(x_1113, x_1114); +lean_inc(x_52); +x_1116 = lean_array_push(x_1115, x_52); +x_1117 = l_Lean_mkAppN(x_1111, x_1116); +x_1118 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_1119 = 0; +lean_inc(x_66); +x_1120 = l_Lean_Expr_forallE___override(x_1118, x_66, x_1117, x_1119); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1121 = l_Lean_Meta_trySynthInstance(x_1120, x_1057, x_3, x_4, x_5, x_6, x_1106); +if (lean_obj_tag(x_1121) == 0) { -lean_object* x_1148; lean_object* x_1149; -lean_dec(x_1082); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1122; +x_1122 = lean_ctor_get(x_1121, 0); +lean_inc(x_1122); +if (lean_obj_tag(x_1122) == 1) +{ +lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; +x_1123 = lean_ctor_get(x_1121, 1); +lean_inc(x_1123); +lean_dec(x_1121); +x_1124 = lean_ctor_get(x_1122, 0); +lean_inc(x_1124); +lean_dec(x_1122); +x_1125 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_1126 = l_Lean_Expr_const___override(x_1125, x_1076); +x_1127 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_1128 = lean_array_push(x_1127, x_65); +x_1129 = lean_array_push(x_1128, x_51); +x_1130 = lean_array_push(x_1129, x_66); +x_1131 = lean_array_push(x_1130, x_52); +x_1132 = lean_array_push(x_1131, x_1061); +x_1133 = lean_array_push(x_1132, x_1124); +x_1134 = lean_array_push(x_1133, x_1099); +x_1135 = lean_array_push(x_1134, x_1); +x_1136 = l_Lean_mkAppN(x_1126, x_1135); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1137 = l_Lean_Meta_expandCoe(x_1136, x_3, x_4, x_5, x_6, x_1123); +if (lean_obj_tag(x_1137) == 0) +{ +lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; +x_1138 = lean_ctor_get(x_1137, 0); +lean_inc(x_1138); +x_1139 = lean_ctor_get(x_1137, 1); +lean_inc(x_1139); +lean_dec(x_1137); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1138); +x_1140 = lean_infer_type(x_1138, x_3, x_4, x_5, x_6, x_1139); +if (lean_obj_tag(x_1140) == 0) +{ +lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; +x_1141 = lean_ctor_get(x_1140, 0); +lean_inc(x_1141); +x_1142 = lean_ctor_get(x_1140, 1); +lean_inc(x_1142); +lean_dec(x_1140); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1143 = l_Lean_Meta_isExprDefEq(x_32, x_1141, x_3, x_4, x_5, x_6, x_1142); +if (lean_obj_tag(x_1143) == 0) +{ +lean_object* x_1144; uint8_t x_1145; +x_1144 = lean_ctor_get(x_1143, 0); +lean_inc(x_1144); +x_1145 = lean_unbox(x_1144); +lean_dec(x_1144); +if (x_1145 == 0) +{ +lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; +lean_dec(x_1138); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1148 = lean_ctor_get(x_1104, 0); -lean_inc(x_1148); -x_1149 = lean_ctor_get(x_1104, 1); +x_1146 = lean_ctor_get(x_1143, 1); +lean_inc(x_1146); +if (lean_is_exclusive(x_1143)) { + lean_ctor_release(x_1143, 0); + lean_ctor_release(x_1143, 1); + x_1147 = x_1143; +} else { + lean_dec_ref(x_1143); + x_1147 = lean_box(0); +} +if (lean_is_scalar(x_1147)) { + x_1148 = lean_alloc_ctor(0, 2, 0); +} else { + x_1148 = x_1147; +} +lean_ctor_set(x_1148, 0, x_1057); +lean_ctor_set(x_1148, 1, x_1146); +return x_1148; +} +else +{ +lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; +x_1149 = lean_ctor_get(x_1143, 1); lean_inc(x_1149); -lean_dec(x_1104); -x_8 = x_1148; -x_9 = x_1149; -goto block_14; -} -} -else -{ -lean_object* x_1150; lean_object* x_1151; -lean_dec(x_1086); -lean_dec(x_1084); -lean_dec(x_1082); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_1143); +x_1150 = lean_box(0); +x_1151 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1138, x_1150, x_3, x_4, x_5, x_6, x_1149); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1150 = lean_ctor_get(x_1087, 0); -lean_inc(x_1150); -x_1151 = lean_ctor_get(x_1087, 1); -lean_inc(x_1151); -lean_dec(x_1087); -x_8 = x_1150; -x_9 = x_1151; -goto block_14; -} -} -else -{ -lean_object* x_1152; lean_object* x_1153; -lean_dec(x_1082); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1152 = lean_ctor_get(x_1083, 0); +x_1152 = lean_ctor_get(x_1151, 0); lean_inc(x_1152); -x_1153 = lean_ctor_get(x_1083, 1); +x_1153 = lean_ctor_get(x_1151, 1); lean_inc(x_1153); -lean_dec(x_1083); -x_8 = x_1152; -x_9 = x_1153; -goto block_14; +if (lean_is_exclusive(x_1151)) { + lean_ctor_release(x_1151, 0); + lean_ctor_release(x_1151, 1); + x_1154 = x_1151; +} else { + lean_dec_ref(x_1151); + x_1154 = lean_box(0); } +if (lean_is_scalar(x_1154)) { + x_1155 = lean_alloc_ctor(0, 2, 0); +} else { + x_1155 = x_1154; } -} -else -{ -lean_object* x_1154; lean_object* x_1155; -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1154 = lean_ctor_get(x_1076, 0); -lean_inc(x_1154); -x_1155 = lean_ctor_get(x_1076, 1); -lean_inc(x_1155); -lean_dec(x_1076); -x_8 = x_1154; -x_9 = x_1155; -goto block_14; +lean_ctor_set(x_1155, 0, x_1152); +lean_ctor_set(x_1155, 1, x_1153); +return x_1155; } } else { -lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1156; lean_object* x_1157; +lean_dec(x_1138); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1156 = lean_ctor_get(x_1072, 1); +x_1156 = lean_ctor_get(x_1143, 0); lean_inc(x_1156); -if (lean_is_exclusive(x_1072)) { - lean_ctor_release(x_1072, 0); - lean_ctor_release(x_1072, 1); - x_1157 = x_1072; -} else { - lean_dec_ref(x_1072); - x_1157 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_1068); -if (lean_is_scalar(x_1157)) { - x_1158 = lean_alloc_ctor(0, 2, 0); -} else { - x_1158 = x_1157; -} -lean_ctor_set(x_1158, 0, x_38); -lean_ctor_set(x_1158, 1, x_1156); -return x_1158; +x_1157 = lean_ctor_get(x_1143, 1); +lean_inc(x_1157); +lean_dec(x_1143); +x_8 = x_1156; +x_9 = x_1157; +goto block_16; } } else { -lean_object* x_1159; lean_object* x_1160; -lean_dec(x_1068); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1158; lean_object* x_1159; +lean_dec(x_1138); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1159 = lean_ctor_get(x_1072, 0); +x_1158 = lean_ctor_get(x_1140, 0); +lean_inc(x_1158); +x_1159 = lean_ctor_get(x_1140, 1); lean_inc(x_1159); -x_1160 = lean_ctor_get(x_1072, 1); +lean_dec(x_1140); +x_8 = x_1158; +x_9 = x_1159; +goto block_16; +} +} +else +{ +lean_object* x_1160; lean_object* x_1161; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1160 = lean_ctor_get(x_1137, 0); lean_inc(x_1160); -lean_dec(x_1072); -x_8 = x_1159; -x_9 = x_1160; -goto block_14; -} -} -else -{ -lean_object* x_1161; lean_object* x_1162; -lean_dec(x_1068); -lean_dec(x_1059); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1161 = lean_ctor_get(x_1069, 0); +x_1161 = lean_ctor_get(x_1137, 1); lean_inc(x_1161); -x_1162 = lean_ctor_get(x_1069, 1); -lean_inc(x_1162); -lean_dec(x_1069); -x_8 = x_1161; -x_9 = x_1162; -goto block_14; +lean_dec(x_1137); +x_8 = x_1160; +x_9 = x_1161; +goto block_16; } } else { -lean_object* x_1163; lean_object* x_1164; -lean_dec(x_1052); -lean_dec(x_1050); -lean_dec(x_1048); -lean_dec(x_1046); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; +lean_dec(x_1122); +lean_dec(x_1099); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1163 = lean_ctor_get(x_1053, 0); -lean_inc(x_1163); -x_1164 = lean_ctor_get(x_1053, 1); -lean_inc(x_1164); -lean_dec(x_1053); -x_8 = x_1163; -x_9 = x_1164; -goto block_14; +x_1162 = lean_ctor_get(x_1121, 1); +lean_inc(x_1162); +if (lean_is_exclusive(x_1121)) { + lean_ctor_release(x_1121, 0); + lean_ctor_release(x_1121, 1); + x_1163 = x_1121; +} else { + lean_dec_ref(x_1121); + x_1163 = lean_box(0); +} +if (lean_is_scalar(x_1163)) { + x_1164 = lean_alloc_ctor(0, 2, 0); +} else { + x_1164 = x_1163; +} +lean_ctor_set(x_1164, 0, x_1057); +lean_ctor_set(x_1164, 1, x_1162); +return x_1164; } } else { lean_object* x_1165; lean_object* x_1166; -lean_dec(x_1048); -lean_dec(x_1046); -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_1099); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1165 = lean_ctor_get(x_1049, 0); +x_1165 = lean_ctor_get(x_1121, 0); lean_inc(x_1165); -x_1166 = lean_ctor_get(x_1049, 1); +x_1166 = lean_ctor_get(x_1121, 1); lean_inc(x_1166); -lean_dec(x_1049); +lean_dec(x_1121); x_8 = x_1165; x_9 = x_1166; -goto block_14; +goto block_16; } } else { lean_object* x_1167; lean_object* x_1168; -lean_dec(x_1044); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1103); +lean_dec(x_1101); +lean_dec(x_1099); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1167 = lean_ctor_get(x_1045, 0); +x_1167 = lean_ctor_get(x_1104, 0); lean_inc(x_1167); -x_1168 = lean_ctor_get(x_1045, 1); +x_1168 = lean_ctor_get(x_1104, 1); lean_inc(x_1168); -lean_dec(x_1045); +lean_dec(x_1104); x_8 = x_1167; x_9 = x_1168; -goto block_14; +goto block_16; } } else { -lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; -lean_dec(x_1042); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1169; lean_object* x_1170; +lean_dec(x_1099); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1169 = lean_ctor_get(x_1041, 1); +x_1169 = lean_ctor_get(x_1100, 0); lean_inc(x_1169); -if (lean_is_exclusive(x_1041)) { - lean_ctor_release(x_1041, 0); - lean_ctor_release(x_1041, 1); - x_1170 = x_1041; -} else { - lean_dec_ref(x_1041); - x_1170 = lean_box(0); +x_1170 = lean_ctor_get(x_1100, 1); +lean_inc(x_1170); +lean_dec(x_1100); +x_8 = x_1169; +x_9 = x_1170; +goto block_16; } -if (lean_is_scalar(x_1170)) { - x_1171 = lean_alloc_ctor(0, 2, 0); -} else { - x_1171 = x_1170; -} -lean_ctor_set(x_1171, 0, x_1040); -lean_ctor_set(x_1171, 1, x_1169); -return x_1171; } } else { -lean_object* x_1172; lean_object* x_1173; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1171; lean_object* x_1172; +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1172 = lean_ctor_get(x_1041, 0); +x_1171 = lean_ctor_get(x_1093, 0); +lean_inc(x_1171); +x_1172 = lean_ctor_get(x_1093, 1); lean_inc(x_1172); -x_1173 = lean_ctor_get(x_1041, 1); -lean_inc(x_1173); -lean_dec(x_1041); -x_8 = x_1172; -x_9 = x_1173; -goto block_14; +lean_dec(x_1093); +x_8 = x_1171; +x_9 = x_1172; +goto block_16; } } else { -lean_object* x_1174; lean_object* x_1175; -lean_dec(x_1025); -lean_dec(x_1023); -lean_dec(x_81); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1174 = lean_ctor_get(x_1026, 0); -lean_inc(x_1174); -x_1175 = lean_ctor_get(x_1026, 1); -lean_inc(x_1175); -lean_dec(x_1026); -x_8 = x_1174; -x_9 = x_1175; -goto block_14; +x_1173 = lean_ctor_get(x_1089, 1); +lean_inc(x_1173); +if (lean_is_exclusive(x_1089)) { + lean_ctor_release(x_1089, 0); + lean_ctor_release(x_1089, 1); + x_1174 = x_1089; +} else { + lean_dec_ref(x_1089); + x_1174 = lean_box(0); +} +lean_ctor_set(x_54, 0, x_1085); +if (lean_is_scalar(x_1174)) { + x_1175 = lean_alloc_ctor(0, 2, 0); +} else { + x_1175 = x_1174; +} +lean_ctor_set(x_1175, 0, x_54); +lean_ctor_set(x_1175, 1, x_1173); +return x_1175; } } else { lean_object* x_1176; lean_object* x_1177; -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1085); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1176 = lean_ctor_get(x_1022, 0); +x_1176 = lean_ctor_get(x_1089, 0); lean_inc(x_1176); -x_1177 = lean_ctor_get(x_1022, 1); +x_1177 = lean_ctor_get(x_1089, 1); lean_inc(x_1177); -lean_dec(x_1022); +lean_dec(x_1089); x_8 = x_1176; x_9 = x_1177; -goto block_14; -} +goto block_16; } } else { lean_object* x_1178; lean_object* x_1179; -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1085); +lean_dec(x_1076); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1178 = lean_ctor_get(x_1014, 0); +x_1178 = lean_ctor_get(x_1086, 0); lean_inc(x_1178); -x_1179 = lean_ctor_get(x_1014, 1); +x_1179 = lean_ctor_get(x_1086, 1); lean_inc(x_1179); -lean_dec(x_1014); +lean_dec(x_1086); x_8 = x_1178; x_9 = x_1179; -goto block_14; -} +goto block_16; } } else { lean_object* x_1180; lean_object* x_1181; -lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1069); +lean_dec(x_1067); +lean_dec(x_1065); +lean_dec(x_1063); +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1180 = lean_ctor_get(x_83, 0); +x_1180 = lean_ctor_get(x_1070, 0); lean_inc(x_1180); -x_1181 = lean_ctor_get(x_83, 1); +x_1181 = lean_ctor_get(x_1070, 1); lean_inc(x_1181); -lean_dec(x_83); +lean_dec(x_1070); x_8 = x_1180; x_9 = x_1181; -goto block_14; +goto block_16; } } else { lean_object* x_1182; lean_object* x_1183; -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_69); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1182 = lean_ctor_get(x_80, 0); -lean_inc(x_1182); -x_1183 = lean_ctor_get(x_80, 1); -lean_inc(x_1183); -lean_dec(x_80); -x_8 = x_1182; -x_9 = x_1183; -goto block_14; -} -} -else -{ -uint8_t x_1184; -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1184 = !lean_is_exclusive(x_73); -if (x_1184 == 0) -{ -lean_object* x_1185; lean_object* x_1186; -x_1185 = lean_ctor_get(x_73, 0); -lean_dec(x_1185); -x_1186 = lean_box(0); -lean_ctor_set(x_73, 0, x_1186); -return x_73; -} -else -{ -lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; -x_1187 = lean_ctor_get(x_73, 1); -lean_inc(x_1187); -lean_dec(x_73); -x_1188 = lean_box(0); -x_1189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1189, 0, x_1188); -lean_ctor_set(x_1189, 1, x_1187); -return x_1189; -} -} -} -else -{ -uint8_t x_1190; -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1190 = !lean_is_exclusive(x_73); -if (x_1190 == 0) -{ -lean_object* x_1191; lean_object* x_1192; -x_1191 = lean_ctor_get(x_73, 0); -lean_dec(x_1191); -x_1192 = lean_box(0); -lean_ctor_set(x_73, 0, x_1192); -return x_73; -} -else -{ -lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; -x_1193 = lean_ctor_get(x_73, 1); -lean_inc(x_1193); -lean_dec(x_73); -x_1194 = lean_box(0); -x_1195 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1195, 0, x_1194); -lean_ctor_set(x_1195, 1, x_1193); -return x_1195; -} -} -} -else -{ -uint8_t x_1196; -lean_dec(x_74); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1196 = !lean_is_exclusive(x_73); -if (x_1196 == 0) -{ -lean_object* x_1197; lean_object* x_1198; -x_1197 = lean_ctor_get(x_73, 0); -lean_dec(x_1197); -x_1198 = lean_box(0); -lean_ctor_set(x_73, 0, x_1198); -return x_73; -} -else -{ -lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; -x_1199 = lean_ctor_get(x_73, 1); -lean_inc(x_1199); -lean_dec(x_73); -x_1200 = lean_box(0); -x_1201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1201, 0, x_1200); -lean_ctor_set(x_1201, 1, x_1199); -return x_1201; -} -} -} -else -{ -uint8_t x_1202; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1202 = !lean_is_exclusive(x_73); -if (x_1202 == 0) -{ -lean_object* x_1203; uint8_t x_1204; -x_1203 = lean_ctor_get(x_73, 0); -x_1204 = l_Lean_Exception_isRuntime(x_1203); -if (x_1204 == 0) -{ -lean_object* x_1205; -lean_dec(x_1203); -x_1205 = lean_box(0); -lean_ctor_set_tag(x_73, 0); -lean_ctor_set(x_73, 0, x_1205); -return x_73; -} -else -{ -return x_73; -} -} -else -{ -lean_object* x_1206; lean_object* x_1207; uint8_t x_1208; -x_1206 = lean_ctor_get(x_73, 0); -x_1207 = lean_ctor_get(x_73, 1); -lean_inc(x_1207); -lean_inc(x_1206); -lean_dec(x_73); -x_1208 = l_Lean_Exception_isRuntime(x_1206); -if (x_1208 == 0) -{ -lean_object* x_1209; lean_object* x_1210; -lean_dec(x_1206); -x_1209 = lean_box(0); -x_1210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1210, 0, x_1209); -lean_ctor_set(x_1210, 1, x_1207); -return x_1210; -} -else -{ -lean_object* x_1211; -x_1211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1211, 0, x_1206); -lean_ctor_set(x_1211, 1, x_1207); -return x_1211; -} -} -} -} -else -{ -uint8_t x_1212; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1212 = !lean_is_exclusive(x_70); -if (x_1212 == 0) -{ -lean_object* x_1213; uint8_t x_1214; -x_1213 = lean_ctor_get(x_70, 0); -x_1214 = l_Lean_Exception_isRuntime(x_1213); -if (x_1214 == 0) -{ -lean_object* x_1215; -lean_dec(x_1213); -x_1215 = lean_box(0); -lean_ctor_set_tag(x_70, 0); -lean_ctor_set(x_70, 0, x_1215); -return x_70; -} -else -{ -return x_70; -} -} -else -{ -lean_object* x_1216; lean_object* x_1217; uint8_t x_1218; -x_1216 = lean_ctor_get(x_70, 0); -x_1217 = lean_ctor_get(x_70, 1); -lean_inc(x_1217); -lean_inc(x_1216); -lean_dec(x_70); -x_1218 = l_Lean_Exception_isRuntime(x_1216); -if (x_1218 == 0) -{ -lean_object* x_1219; lean_object* x_1220; -lean_dec(x_1216); -x_1219 = lean_box(0); -x_1220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1220, 0, x_1219); -lean_ctor_set(x_1220, 1, x_1217); -return x_1220; -} -else -{ -lean_object* x_1221; -x_1221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1221, 0, x_1216); -lean_ctor_set(x_1221, 1, x_1217); -return x_1221; -} -} -} -} -else -{ -uint8_t x_1222; +lean_dec(x_1065); +lean_dec(x_1063); +lean_dec(x_1061); lean_dec(x_66); lean_dec(x_65); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1222 = !lean_is_exclusive(x_63); +x_1182 = lean_ctor_get(x_1066, 0); +lean_inc(x_1182); +x_1183 = lean_ctor_get(x_1066, 1); +lean_inc(x_1183); +lean_dec(x_1066); +x_8 = x_1182; +x_9 = x_1183; +goto block_16; +} +} +else +{ +lean_object* x_1184; lean_object* x_1185; +lean_dec(x_1061); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1184 = lean_ctor_get(x_1062, 0); +lean_inc(x_1184); +x_1185 = lean_ctor_get(x_1062, 1); +lean_inc(x_1185); +lean_dec(x_1062); +x_8 = x_1184; +x_9 = x_1185; +goto block_16; +} +} +else +{ +lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; +lean_dec(x_1059); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1186 = lean_ctor_get(x_1058, 1); +lean_inc(x_1186); +if (lean_is_exclusive(x_1058)) { + lean_ctor_release(x_1058, 0); + lean_ctor_release(x_1058, 1); + x_1187 = x_1058; +} else { + lean_dec_ref(x_1058); + x_1187 = lean_box(0); +} +if (lean_is_scalar(x_1187)) { + x_1188 = lean_alloc_ctor(0, 2, 0); +} else { + x_1188 = x_1187; +} +lean_ctor_set(x_1188, 0, x_1057); +lean_ctor_set(x_1188, 1, x_1186); +return x_1188; +} +} +else +{ +lean_object* x_1189; lean_object* x_1190; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1189 = lean_ctor_get(x_1058, 0); +lean_inc(x_1189); +x_1190 = lean_ctor_get(x_1058, 1); +lean_inc(x_1190); +lean_dec(x_1058); +x_8 = x_1189; +x_9 = x_1190; +goto block_16; +} +} +else +{ +lean_object* x_1191; lean_object* x_1192; +lean_dec(x_1042); +lean_dec(x_1040); +lean_dec(x_98); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1191 = lean_ctor_get(x_1043, 0); +lean_inc(x_1191); +x_1192 = lean_ctor_get(x_1043, 1); +lean_inc(x_1192); +lean_dec(x_1043); +x_8 = x_1191; +x_9 = x_1192; +goto block_16; +} +} +else +{ +lean_object* x_1193; lean_object* x_1194; +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1193 = lean_ctor_get(x_1039, 0); +lean_inc(x_1193); +x_1194 = lean_ctor_get(x_1039, 1); +lean_inc(x_1194); +lean_dec(x_1039); +x_8 = x_1193; +x_9 = x_1194; +goto block_16; +} +} +} +else +{ +lean_object* x_1195; lean_object* x_1196; +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1195 = lean_ctor_get(x_1031, 0); +lean_inc(x_1195); +x_1196 = lean_ctor_get(x_1031, 1); +lean_inc(x_1196); +lean_dec(x_1031); +x_8 = x_1195; +x_9 = x_1196; +goto block_16; +} +} +} +else +{ +lean_object* x_1197; lean_object* x_1198; +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1197 = lean_ctor_get(x_100, 0); +lean_inc(x_1197); +x_1198 = lean_ctor_get(x_100, 1); +lean_inc(x_1198); +lean_dec(x_100); +x_8 = x_1197; +x_9 = x_1198; +goto block_16; +} +} +else +{ +lean_object* x_1199; lean_object* x_1200; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_86); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1199 = lean_ctor_get(x_97, 0); +lean_inc(x_1199); +x_1200 = lean_ctor_get(x_97, 1); +lean_inc(x_1200); +lean_dec(x_97); +x_8 = x_1199; +x_9 = x_1200; +goto block_16; +} +} +else +{ +uint8_t x_1201; +lean_dec(x_93); +lean_dec(x_92); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1201 = !lean_is_exclusive(x_90); +if (x_1201 == 0) +{ +lean_object* x_1202; lean_object* x_1203; +x_1202 = lean_ctor_get(x_90, 0); +lean_dec(x_1202); +x_1203 = lean_box(0); +lean_ctor_set(x_90, 0, x_1203); +return x_90; +} +else +{ +lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; +x_1204 = lean_ctor_get(x_90, 1); +lean_inc(x_1204); +lean_dec(x_90); +x_1205 = lean_box(0); +x_1206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1206, 0, x_1205); +lean_ctor_set(x_1206, 1, x_1204); +return x_1206; +} +} +} +else +{ +uint8_t x_1207; +lean_dec(x_92); +lean_dec(x_91); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1207 = !lean_is_exclusive(x_90); +if (x_1207 == 0) +{ +lean_object* x_1208; lean_object* x_1209; +x_1208 = lean_ctor_get(x_90, 0); +lean_dec(x_1208); +x_1209 = lean_box(0); +lean_ctor_set(x_90, 0, x_1209); +return x_90; +} +else +{ +lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; +x_1210 = lean_ctor_get(x_90, 1); +lean_inc(x_1210); +lean_dec(x_90); +x_1211 = lean_box(0); +x_1212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1212, 0, x_1211); +lean_ctor_set(x_1212, 1, x_1210); +return x_1212; +} +} +} +else +{ +uint8_t x_1213; +lean_dec(x_91); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1213 = !lean_is_exclusive(x_90); +if (x_1213 == 0) +{ +lean_object* x_1214; lean_object* x_1215; +x_1214 = lean_ctor_get(x_90, 0); +lean_dec(x_1214); +x_1215 = lean_box(0); +lean_ctor_set(x_90, 0, x_1215); +return x_90; +} +else +{ +lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; +x_1216 = lean_ctor_get(x_90, 1); +lean_inc(x_1216); +lean_dec(x_90); +x_1217 = lean_box(0); +x_1218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1218, 0, x_1217); +lean_ctor_set(x_1218, 1, x_1216); +return x_1218; +} +} +} +else +{ +uint8_t x_1219; +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1219 = !lean_is_exclusive(x_90); +if (x_1219 == 0) +{ +lean_object* x_1220; uint8_t x_1221; +x_1220 = lean_ctor_get(x_90, 0); +x_1221 = l_Lean_Exception_isInterrupt(x_1220); +if (x_1221 == 0) +{ +uint8_t x_1222; +x_1222 = l_Lean_Exception_isRuntime(x_1220); if (x_1222 == 0) { -lean_object* x_1223; lean_object* x_1224; -x_1223 = lean_ctor_get(x_63, 0); -lean_dec(x_1223); -x_1224 = lean_box(0); -lean_ctor_set(x_63, 0, x_1224); -return x_63; +lean_object* x_1223; +lean_dec(x_1220); +x_1223 = lean_box(0); +lean_ctor_set_tag(x_90, 0); +lean_ctor_set(x_90, 0, x_1223); +return x_90; } else { -lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; -x_1225 = lean_ctor_get(x_63, 1); +return x_90; +} +} +else +{ +return x_90; +} +} +else +{ +lean_object* x_1224; lean_object* x_1225; uint8_t x_1226; +x_1224 = lean_ctor_get(x_90, 0); +x_1225 = lean_ctor_get(x_90, 1); lean_inc(x_1225); -lean_dec(x_63); -x_1226 = lean_box(0); -x_1227 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1227, 0, x_1226); -lean_ctor_set(x_1227, 1, x_1225); -return x_1227; +lean_inc(x_1224); +lean_dec(x_90); +x_1226 = l_Lean_Exception_isInterrupt(x_1224); +if (x_1226 == 0) +{ +uint8_t x_1227; +x_1227 = l_Lean_Exception_isRuntime(x_1224); +if (x_1227 == 0) +{ +lean_object* x_1228; lean_object* x_1229; +lean_dec(x_1224); +x_1228 = lean_box(0); +x_1229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1229, 0, x_1228); +lean_ctor_set(x_1229, 1, x_1225); +return x_1229; +} +else +{ +lean_object* x_1230; +x_1230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1230, 0, x_1224); +lean_ctor_set(x_1230, 1, x_1225); +return x_1230; +} +} +else +{ +lean_object* x_1231; +x_1231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1231, 0, x_1224); +lean_ctor_set(x_1231, 1, x_1225); +return x_1231; +} } } } else { -uint8_t x_1228; +uint8_t x_1232; +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_66); lean_dec(x_65); -lean_dec(x_64); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1228 = !lean_is_exclusive(x_63); -if (x_1228 == 0) +x_1232 = !lean_is_exclusive(x_87); +if (x_1232 == 0) { -lean_object* x_1229; lean_object* x_1230; -x_1229 = lean_ctor_get(x_63, 0); -lean_dec(x_1229); -x_1230 = lean_box(0); -lean_ctor_set(x_63, 0, x_1230); -return x_63; -} -else -{ -lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; -x_1231 = lean_ctor_get(x_63, 1); -lean_inc(x_1231); -lean_dec(x_63); -x_1232 = lean_box(0); -x_1233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1233, 0, x_1232); -lean_ctor_set(x_1233, 1, x_1231); -return x_1233; -} -} -} -else -{ -uint8_t x_1234; -lean_dec(x_64); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1234 = !lean_is_exclusive(x_63); +lean_object* x_1233; uint8_t x_1234; +x_1233 = lean_ctor_get(x_87, 0); +x_1234 = l_Lean_Exception_isInterrupt(x_1233); if (x_1234 == 0) { -lean_object* x_1235; lean_object* x_1236; -x_1235 = lean_ctor_get(x_63, 0); -lean_dec(x_1235); +uint8_t x_1235; +x_1235 = l_Lean_Exception_isRuntime(x_1233); +if (x_1235 == 0) +{ +lean_object* x_1236; +lean_dec(x_1233); x_1236 = lean_box(0); -lean_ctor_set(x_63, 0, x_1236); -return x_63; +lean_ctor_set_tag(x_87, 0); +lean_ctor_set(x_87, 0, x_1236); +return x_87; } else { -lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; -x_1237 = lean_ctor_get(x_63, 1); -lean_inc(x_1237); -lean_dec(x_63); -x_1238 = lean_box(0); -x_1239 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1239, 0, x_1238); -lean_ctor_set(x_1239, 1, x_1237); -return x_1239; -} +return x_87; } } else { +return x_87; +} +} +else +{ +lean_object* x_1237; lean_object* x_1238; uint8_t x_1239; +x_1237 = lean_ctor_get(x_87, 0); +x_1238 = lean_ctor_get(x_87, 1); +lean_inc(x_1238); +lean_inc(x_1237); +lean_dec(x_87); +x_1239 = l_Lean_Exception_isInterrupt(x_1237); +if (x_1239 == 0) +{ uint8_t x_1240; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1240 = !lean_is_exclusive(x_63); +x_1240 = l_Lean_Exception_isRuntime(x_1237); if (x_1240 == 0) { -lean_object* x_1241; uint8_t x_1242; -x_1241 = lean_ctor_get(x_63, 0); -x_1242 = l_Lean_Exception_isRuntime(x_1241); -if (x_1242 == 0) +lean_object* x_1241; lean_object* x_1242; +lean_dec(x_1237); +x_1241 = lean_box(0); +x_1242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1242, 0, x_1241); +lean_ctor_set(x_1242, 1, x_1238); +return x_1242; +} +else { lean_object* x_1243; -lean_dec(x_1241); -x_1243 = lean_box(0); -lean_ctor_set_tag(x_63, 0); -lean_ctor_set(x_63, 0, x_1243); -return x_63; -} -else -{ -return x_63; +x_1243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1243, 0, x_1237); +lean_ctor_set(x_1243, 1, x_1238); +return x_1243; } } else { -lean_object* x_1244; lean_object* x_1245; uint8_t x_1246; -x_1244 = lean_ctor_get(x_63, 0); -x_1245 = lean_ctor_get(x_63, 1); -lean_inc(x_1245); -lean_inc(x_1244); -lean_dec(x_63); -x_1246 = l_Lean_Exception_isRuntime(x_1244); -if (x_1246 == 0) -{ -lean_object* x_1247; lean_object* x_1248; -lean_dec(x_1244); -x_1247 = lean_box(0); -x_1248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1248, 0, x_1247); -lean_ctor_set(x_1248, 1, x_1245); -return x_1248; -} -else -{ -lean_object* x_1249; -x_1249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1249, 0, x_1244); -lean_ctor_set(x_1249, 1, x_1245); -return x_1249; +lean_object* x_1244; +x_1244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1244, 0, x_1237); +lean_ctor_set(x_1244, 1, x_1238); +return x_1244; } } } } else { -uint8_t x_1250; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +uint8_t x_1245; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1250 = !lean_is_exclusive(x_60); -if (x_1250 == 0) +x_1245 = !lean_is_exclusive(x_80); +if (x_1245 == 0) { -lean_object* x_1251; uint8_t x_1252; -x_1251 = lean_ctor_get(x_60, 0); -x_1252 = l_Lean_Exception_isRuntime(x_1251); -if (x_1252 == 0) +lean_object* x_1246; lean_object* x_1247; +x_1246 = lean_ctor_get(x_80, 0); +lean_dec(x_1246); +x_1247 = lean_box(0); +lean_ctor_set(x_80, 0, x_1247); +return x_80; +} +else { -lean_object* x_1253; -lean_dec(x_1251); +lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; +x_1248 = lean_ctor_get(x_80, 1); +lean_inc(x_1248); +lean_dec(x_80); +x_1249 = lean_box(0); +x_1250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1250, 0, x_1249); +lean_ctor_set(x_1250, 1, x_1248); +return x_1250; +} +} +} +else +{ +uint8_t x_1251; +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1251 = !lean_is_exclusive(x_80); +if (x_1251 == 0) +{ +lean_object* x_1252; lean_object* x_1253; +x_1252 = lean_ctor_get(x_80, 0); +lean_dec(x_1252); x_1253 = lean_box(0); -lean_ctor_set_tag(x_60, 0); -lean_ctor_set(x_60, 0, x_1253); -return x_60; +lean_ctor_set(x_80, 0, x_1253); +return x_80; } else { -return x_60; -} -} -else -{ -lean_object* x_1254; lean_object* x_1255; uint8_t x_1256; -x_1254 = lean_ctor_get(x_60, 0); -x_1255 = lean_ctor_get(x_60, 1); -lean_inc(x_1255); +lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; +x_1254 = lean_ctor_get(x_80, 1); lean_inc(x_1254); -lean_dec(x_60); -x_1256 = l_Lean_Exception_isRuntime(x_1254); -if (x_1256 == 0) -{ -lean_object* x_1257; lean_object* x_1258; -lean_dec(x_1254); -x_1257 = lean_box(0); -x_1258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1258, 0, x_1257); -lean_ctor_set(x_1258, 1, x_1255); -return x_1258; -} -else -{ -lean_object* x_1259; -x_1259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1259, 0, x_1254); -lean_ctor_set(x_1259, 1, x_1255); -return x_1259; -} -} +lean_dec(x_80); +x_1255 = lean_box(0); +x_1256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1256, 0, x_1255); +lean_ctor_set(x_1256, 1, x_1254); +return x_1256; } } } else { -lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; uint8_t x_1263; -x_1260 = lean_ctor_get(x_50, 1); +uint8_t x_1257; +lean_dec(x_81); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1257 = !lean_is_exclusive(x_80); +if (x_1257 == 0) +{ +lean_object* x_1258; lean_object* x_1259; +x_1258 = lean_ctor_get(x_80, 0); +lean_dec(x_1258); +x_1259 = lean_box(0); +lean_ctor_set(x_80, 0, x_1259); +return x_80; +} +else +{ +lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; +x_1260 = lean_ctor_get(x_80, 1); lean_inc(x_1260); -lean_dec(x_50); -x_1261 = lean_ctor_get(x_5, 2); -lean_inc(x_1261); -x_1262 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; -x_1263 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1261, x_1262); -lean_dec(x_1261); +lean_dec(x_80); +x_1261 = lean_box(0); +x_1262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1262, 0, x_1261); +lean_ctor_set(x_1262, 1, x_1260); +return x_1262; +} +} +} +else +{ +uint8_t x_1263; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1263 = !lean_is_exclusive(x_80); if (x_1263 == 0) { -lean_object* x_1264; lean_object* x_1265; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1264; uint8_t x_1265; +x_1264 = lean_ctor_get(x_80, 0); +x_1265 = l_Lean_Exception_isInterrupt(x_1264); +if (x_1265 == 0) +{ +uint8_t x_1266; +x_1266 = l_Lean_Exception_isRuntime(x_1264); +if (x_1266 == 0) +{ +lean_object* x_1267; +lean_dec(x_1264); +x_1267 = lean_box(0); +lean_ctor_set_tag(x_80, 0); +lean_ctor_set(x_80, 0, x_1267); +return x_80; +} +else +{ +return x_80; +} +} +else +{ +return x_80; +} +} +else +{ +lean_object* x_1268; lean_object* x_1269; uint8_t x_1270; +x_1268 = lean_ctor_get(x_80, 0); +x_1269 = lean_ctor_get(x_80, 1); +lean_inc(x_1269); +lean_inc(x_1268); +lean_dec(x_80); +x_1270 = l_Lean_Exception_isInterrupt(x_1268); +if (x_1270 == 0) +{ +uint8_t x_1271; +x_1271 = l_Lean_Exception_isRuntime(x_1268); +if (x_1271 == 0) +{ +lean_object* x_1272; lean_object* x_1273; +lean_dec(x_1268); +x_1272 = lean_box(0); +x_1273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1273, 0, x_1272); +lean_ctor_set(x_1273, 1, x_1269); +return x_1273; +} +else +{ +lean_object* x_1274; +x_1274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1274, 0, x_1268); +lean_ctor_set(x_1274, 1, x_1269); +return x_1274; +} +} +else +{ +lean_object* x_1275; +x_1275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1275, 0, x_1268); +lean_ctor_set(x_1275, 1, x_1269); +return x_1275; +} +} +} +} +else +{ +uint8_t x_1276; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1264 = lean_box(0); -x_1265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1265, 0, x_1264); -lean_ctor_set(x_1265, 1, x_1260); -return x_1265; -} -else +x_1276 = !lean_is_exclusive(x_77); +if (x_1276 == 0) { -lean_object* x_1266; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_48); -x_1266 = lean_infer_type(x_48, x_3, x_4, x_5, x_6, x_1260); -if (lean_obj_tag(x_1266) == 0) +lean_object* x_1277; uint8_t x_1278; +x_1277 = lean_ctor_get(x_77, 0); +x_1278 = l_Lean_Exception_isInterrupt(x_1277); +if (x_1278 == 0) { -lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; -x_1267 = lean_ctor_get(x_1266, 0); -lean_inc(x_1267); -x_1268 = lean_ctor_get(x_1266, 1); -lean_inc(x_1268); -lean_dec(x_1266); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1269 = lean_whnf(x_1267, x_3, x_4, x_5, x_6, x_1268); -if (lean_obj_tag(x_1269) == 0) -{ -lean_object* x_1270; -x_1270 = lean_ctor_get(x_1269, 0); -lean_inc(x_1270); -if (lean_obj_tag(x_1270) == 7) -{ -lean_object* x_1271; -x_1271 = lean_ctor_get(x_1270, 1); -lean_inc(x_1271); -if (lean_obj_tag(x_1271) == 3) -{ -lean_object* x_1272; -x_1272 = lean_ctor_get(x_1270, 2); -lean_inc(x_1272); -lean_dec(x_1270); -if (lean_obj_tag(x_1272) == 3) -{ -lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; -x_1273 = lean_ctor_get(x_1269, 1); -lean_inc(x_1273); -lean_dec(x_1269); -x_1274 = lean_ctor_get(x_1271, 0); -lean_inc(x_1274); -lean_dec(x_1271); -x_1275 = lean_ctor_get(x_1272, 0); -lean_inc(x_1275); -lean_dec(x_1272); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_1276 = lean_infer_type(x_35, x_3, x_4, x_5, x_6, x_1273); -if (lean_obj_tag(x_1276) == 0) -{ -lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; -x_1277 = lean_ctor_get(x_1276, 0); -lean_inc(x_1277); -x_1278 = lean_ctor_get(x_1276, 1); -lean_inc(x_1278); -lean_dec(x_1276); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1279 = lean_whnf(x_1277, x_3, x_4, x_5, x_6, x_1278); -if (lean_obj_tag(x_1279) == 0) +uint8_t x_1279; +x_1279 = l_Lean_Exception_isRuntime(x_1277); +if (x_1279 == 0) { lean_object* x_1280; -x_1280 = lean_ctor_get(x_1279, 0); -lean_inc(x_1280); -if (lean_obj_tag(x_1280) == 7) -{ -lean_object* x_1281; -x_1281 = lean_ctor_get(x_1280, 1); -lean_inc(x_1281); -if (lean_obj_tag(x_1281) == 3) -{ -lean_object* x_1282; -x_1282 = lean_ctor_get(x_1280, 2); -lean_inc(x_1282); -lean_dec(x_1280); -if (lean_obj_tag(x_1282) == 3) -{ -lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; -x_1283 = lean_ctor_get(x_1279, 1); -lean_inc(x_1283); -lean_dec(x_1279); -x_1284 = lean_ctor_get(x_1281, 0); -lean_inc(x_1284); -lean_dec(x_1281); -x_1285 = lean_ctor_get(x_1282, 0); -lean_inc(x_1285); -lean_dec(x_1282); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1286 = l_Lean_Meta_decLevel(x_1274, x_3, x_4, x_5, x_6, x_1283); -if (lean_obj_tag(x_1286) == 0) -{ -lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; -x_1287 = lean_ctor_get(x_1286, 0); -lean_inc(x_1287); -x_1288 = lean_ctor_get(x_1286, 1); -lean_inc(x_1288); -lean_dec(x_1286); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1289 = l_Lean_Meta_decLevel(x_1284, x_3, x_4, x_5, x_6, x_1288); -if (lean_obj_tag(x_1289) == 0) -{ -lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; uint8_t x_1293; lean_object* x_1294; -x_1290 = lean_ctor_get(x_1289, 0); -lean_inc(x_1290); -x_1291 = lean_ctor_get(x_1289, 1); -lean_inc(x_1291); -if (lean_is_exclusive(x_1289)) { - lean_ctor_release(x_1289, 0); - lean_ctor_release(x_1289, 1); - x_1292 = x_1289; -} else { - lean_dec_ref(x_1289); - x_1292 = lean_box(0); +lean_dec(x_1277); +x_1280 = lean_box(0); +lean_ctor_set_tag(x_77, 0); +lean_ctor_set(x_77, 0, x_1280); +return x_77; } -x_1293 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1287); -x_1294 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_1287, x_1290, x_1293, x_3, x_4, x_5, x_6, x_1291); -if (lean_obj_tag(x_1294) == 0) +else { -lean_object* x_1295; uint8_t x_1296; -x_1295 = lean_ctor_get(x_1294, 0); -lean_inc(x_1295); -x_1296 = lean_unbox(x_1295); -lean_dec(x_1295); -if (x_1296 == 0) +return x_77; +} +} +else { -lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; -lean_dec(x_1292); -lean_dec(x_1287); -lean_dec(x_1285); -lean_dec(x_1275); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +return x_77; +} +} +else +{ +lean_object* x_1281; lean_object* x_1282; uint8_t x_1283; +x_1281 = lean_ctor_get(x_77, 0); +x_1282 = lean_ctor_get(x_77, 1); +lean_inc(x_1282); +lean_inc(x_1281); +lean_dec(x_77); +x_1283 = l_Lean_Exception_isInterrupt(x_1281); +if (x_1283 == 0) +{ +uint8_t x_1284; +x_1284 = l_Lean_Exception_isRuntime(x_1281); +if (x_1284 == 0) +{ +lean_object* x_1285; lean_object* x_1286; +lean_dec(x_1281); +x_1285 = lean_box(0); +x_1286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1286, 0, x_1285); +lean_ctor_set(x_1286, 1, x_1282); +return x_1286; +} +else +{ +lean_object* x_1287; +x_1287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1287, 0, x_1281); +lean_ctor_set(x_1287, 1, x_1282); +return x_1287; +} +} +else +{ +lean_object* x_1288; +x_1288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1288, 0, x_1281); +lean_ctor_set(x_1288, 1, x_1282); +return x_1288; +} +} +} +} +} +else +{ +lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; uint8_t x_1292; +x_1289 = lean_ctor_get(x_67, 1); +lean_inc(x_1289); +lean_dec(x_67); +x_1290 = lean_ctor_get(x_5, 2); +lean_inc(x_1290); +x_1291 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; +x_1292 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1290, x_1291); +lean_dec(x_1290); +if (x_1292 == 0) +{ +lean_object* x_1293; lean_object* x_1294; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1297 = lean_ctor_get(x_1294, 1); -lean_inc(x_1297); -if (lean_is_exclusive(x_1294)) { - lean_ctor_release(x_1294, 0); - lean_ctor_release(x_1294, 1); - x_1298 = x_1294; -} else { - lean_dec_ref(x_1294); - x_1298 = lean_box(0); -} -x_1299 = lean_box(0); -if (lean_is_scalar(x_1298)) { - x_1300 = lean_alloc_ctor(0, 2, 0); -} else { - x_1300 = x_1298; -} -lean_ctor_set(x_1300, 0, x_1299); -lean_ctor_set(x_1300, 1, x_1297); -return x_1300; +x_1293 = lean_box(0); +x_1294 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1294, 0, x_1293); +lean_ctor_set(x_1294, 1, x_1289); +return x_1294; } else { -lean_object* x_1301; lean_object* x_1302; -x_1301 = lean_ctor_get(x_1294, 1); +lean_object* x_1295; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_65); +x_1295 = lean_infer_type(x_65, x_3, x_4, x_5, x_6, x_1289); +if (lean_obj_tag(x_1295) == 0) +{ +lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; +x_1296 = lean_ctor_get(x_1295, 0); +lean_inc(x_1296); +x_1297 = lean_ctor_get(x_1295, 1); +lean_inc(x_1297); +lean_dec(x_1295); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1298 = lean_whnf(x_1296, x_3, x_4, x_5, x_6, x_1297); +if (lean_obj_tag(x_1298) == 0) +{ +lean_object* x_1299; +x_1299 = lean_ctor_get(x_1298, 0); +lean_inc(x_1299); +if (lean_obj_tag(x_1299) == 7) +{ +lean_object* x_1300; +x_1300 = lean_ctor_get(x_1299, 1); +lean_inc(x_1300); +if (lean_obj_tag(x_1300) == 3) +{ +lean_object* x_1301; +x_1301 = lean_ctor_get(x_1299, 2); lean_inc(x_1301); -lean_dec(x_1294); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1302 = l_Lean_Meta_decLevel(x_1275, x_3, x_4, x_5, x_6, x_1301); -if (lean_obj_tag(x_1302) == 0) +lean_dec(x_1299); +if (lean_obj_tag(x_1301) == 3) { -lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; -x_1303 = lean_ctor_get(x_1302, 0); +lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; +x_1302 = lean_ctor_get(x_1298, 1); +lean_inc(x_1302); +lean_dec(x_1298); +x_1303 = lean_ctor_get(x_1300, 0); lean_inc(x_1303); -x_1304 = lean_ctor_get(x_1302, 1); +lean_dec(x_1300); +x_1304 = lean_ctor_get(x_1301, 0); lean_inc(x_1304); -if (lean_is_exclusive(x_1302)) { - lean_ctor_release(x_1302, 0); - lean_ctor_release(x_1302, 1); - x_1305 = x_1302; -} else { - lean_dec_ref(x_1302); - x_1305 = lean_box(0); -} +lean_dec(x_1301); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1306 = l_Lean_Meta_decLevel(x_1285, x_3, x_4, x_5, x_6, x_1304); -if (lean_obj_tag(x_1306) == 0) +lean_inc(x_51); +x_1305 = lean_infer_type(x_51, x_3, x_4, x_5, x_6, x_1302); +if (lean_obj_tag(x_1305) == 0) { -lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; -x_1307 = lean_ctor_get(x_1306, 0); +lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; +x_1306 = lean_ctor_get(x_1305, 0); +lean_inc(x_1306); +x_1307 = lean_ctor_get(x_1305, 1); lean_inc(x_1307); -x_1308 = lean_ctor_get(x_1306, 1); -lean_inc(x_1308); -if (lean_is_exclusive(x_1306)) { - lean_ctor_release(x_1306, 0); - lean_ctor_release(x_1306, 1); - x_1309 = x_1306; -} else { - lean_dec_ref(x_1306); - x_1309 = lean_box(0); -} -x_1310 = lean_box(0); -if (lean_is_scalar(x_1309)) { - x_1311 = lean_alloc_ctor(1, 2, 0); -} else { - x_1311 = x_1309; - lean_ctor_set_tag(x_1311, 1); -} -lean_ctor_set(x_1311, 0, x_1307); -lean_ctor_set(x_1311, 1, x_1310); -if (lean_is_scalar(x_1305)) { - x_1312 = lean_alloc_ctor(1, 2, 0); -} else { - x_1312 = x_1305; - lean_ctor_set_tag(x_1312, 1); -} -lean_ctor_set(x_1312, 0, x_1303); -lean_ctor_set(x_1312, 1, x_1311); -if (lean_is_scalar(x_1292)) { - x_1313 = lean_alloc_ctor(1, 2, 0); -} else { - x_1313 = x_1292; - lean_ctor_set_tag(x_1313, 1); -} -lean_ctor_set(x_1313, 0, x_1287); -lean_ctor_set(x_1313, 1, x_1312); -x_1314 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_1315 = l_Lean_Expr_const___override(x_1314, x_1313); -x_1316 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_48); -x_1317 = lean_array_push(x_1316, x_48); -lean_inc(x_35); -x_1318 = lean_array_push(x_1317, x_35); -x_1319 = l_Lean_mkAppN(x_1315, x_1318); -x_1320 = lean_box(0); +lean_dec(x_1305); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1321 = l_Lean_Meta_trySynthInstance(x_1319, x_1320, x_3, x_4, x_5, x_6, x_1308); -if (lean_obj_tag(x_1321) == 0) +x_1308 = lean_whnf(x_1306, x_3, x_4, x_5, x_6, x_1307); +if (lean_obj_tag(x_1308) == 0) { -lean_object* x_1322; -x_1322 = lean_ctor_get(x_1321, 0); -lean_inc(x_1322); -if (lean_obj_tag(x_1322) == 1) +lean_object* x_1309; +x_1309 = lean_ctor_get(x_1308, 0); +lean_inc(x_1309); +if (lean_obj_tag(x_1309) == 7) { -lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; -x_1323 = lean_ctor_get(x_1321, 1); -lean_inc(x_1323); -lean_dec(x_1321); -x_1324 = lean_ctor_get(x_1322, 0); +lean_object* x_1310; +x_1310 = lean_ctor_get(x_1309, 1); +lean_inc(x_1310); +if (lean_obj_tag(x_1310) == 3) +{ +lean_object* x_1311; +x_1311 = lean_ctor_get(x_1309, 2); +lean_inc(x_1311); +lean_dec(x_1309); +if (lean_obj_tag(x_1311) == 3) +{ +lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; +x_1312 = lean_ctor_get(x_1308, 1); +lean_inc(x_1312); +lean_dec(x_1308); +x_1313 = lean_ctor_get(x_1310, 0); +lean_inc(x_1313); +lean_dec(x_1310); +x_1314 = lean_ctor_get(x_1311, 0); +lean_inc(x_1314); +lean_dec(x_1311); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1315 = l_Lean_Meta_decLevel(x_1303, x_3, x_4, x_5, x_6, x_1312); +if (lean_obj_tag(x_1315) == 0) +{ +lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; +x_1316 = lean_ctor_get(x_1315, 0); +lean_inc(x_1316); +x_1317 = lean_ctor_get(x_1315, 1); +lean_inc(x_1317); +lean_dec(x_1315); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1318 = l_Lean_Meta_decLevel(x_1313, x_3, x_4, x_5, x_6, x_1317); +if (lean_obj_tag(x_1318) == 0) +{ +lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; uint8_t x_1322; lean_object* x_1323; +x_1319 = lean_ctor_get(x_1318, 0); +lean_inc(x_1319); +x_1320 = lean_ctor_get(x_1318, 1); +lean_inc(x_1320); +if (lean_is_exclusive(x_1318)) { + lean_ctor_release(x_1318, 0); + lean_ctor_release(x_1318, 1); + x_1321 = x_1318; +} else { + lean_dec_ref(x_1318); + x_1321 = lean_box(0); +} +x_1322 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1316); +x_1323 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_1316, x_1319, x_1322, x_3, x_4, x_5, x_6, x_1320); +if (lean_obj_tag(x_1323) == 0) +{ +lean_object* x_1324; uint8_t x_1325; +x_1324 = lean_ctor_get(x_1323, 0); lean_inc(x_1324); -lean_dec(x_1322); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_49); -x_1325 = l_Lean_Meta_getDecLevel(x_49, x_3, x_4, x_5, x_6, x_1323); -if (lean_obj_tag(x_1325) == 0) +x_1325 = lean_unbox(x_1324); +lean_dec(x_1324); +if (x_1325 == 0) { lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; -x_1326 = lean_ctor_get(x_1325, 0); +lean_dec(x_1321); +lean_dec(x_1316); +lean_dec(x_1314); +lean_dec(x_1304); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1326 = lean_ctor_get(x_1323, 1); lean_inc(x_1326); -x_1327 = lean_ctor_get(x_1325, 1); -lean_inc(x_1327); -if (lean_is_exclusive(x_1325)) { - lean_ctor_release(x_1325, 0); - lean_ctor_release(x_1325, 1); - x_1328 = x_1325; +if (lean_is_exclusive(x_1323)) { + lean_ctor_release(x_1323, 0); + lean_ctor_release(x_1323, 1); + x_1327 = x_1323; } else { - lean_dec_ref(x_1325); - x_1328 = lean_box(0); + lean_dec_ref(x_1323); + x_1327 = lean_box(0); } -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1329 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_1327); -if (lean_obj_tag(x_1329) == 0) +x_1328 = lean_box(0); +if (lean_is_scalar(x_1327)) { + x_1329 = lean_alloc_ctor(0, 2, 0); +} else { + x_1329 = x_1327; +} +lean_ctor_set(x_1329, 0, x_1328); +lean_ctor_set(x_1329, 1, x_1326); +return x_1329; +} +else { -lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; -x_1330 = lean_ctor_get(x_1329, 0); +lean_object* x_1330; lean_object* x_1331; +x_1330 = lean_ctor_get(x_1323, 1); lean_inc(x_1330); -x_1331 = lean_ctor_get(x_1329, 1); -lean_inc(x_1331); -if (lean_is_exclusive(x_1329)) { - lean_ctor_release(x_1329, 0); - lean_ctor_release(x_1329, 1); - x_1332 = x_1329; +lean_dec(x_1323); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1331 = l_Lean_Meta_decLevel(x_1304, x_3, x_4, x_5, x_6, x_1330); +if (lean_obj_tag(x_1331) == 0) +{ +lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; +x_1332 = lean_ctor_get(x_1331, 0); +lean_inc(x_1332); +x_1333 = lean_ctor_get(x_1331, 1); +lean_inc(x_1333); +if (lean_is_exclusive(x_1331)) { + lean_ctor_release(x_1331, 0); + lean_ctor_release(x_1331, 1); + x_1334 = x_1331; } else { - lean_dec_ref(x_1329); - x_1332 = lean_box(0); + lean_dec_ref(x_1331); + x_1334 = lean_box(0); } lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_16); -x_1333 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_1331); -if (lean_obj_tag(x_1333) == 0) +x_1335 = l_Lean_Meta_decLevel(x_1314, x_3, x_4, x_5, x_6, x_1333); +if (lean_obj_tag(x_1335) == 0) { -lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; -x_1334 = lean_ctor_get(x_1333, 0); -lean_inc(x_1334); -x_1335 = lean_ctor_get(x_1333, 1); -lean_inc(x_1335); -if (lean_is_exclusive(x_1333)) { - lean_ctor_release(x_1333, 0); - lean_ctor_release(x_1333, 1); - x_1336 = x_1333; +lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; +x_1336 = lean_ctor_get(x_1335, 0); +lean_inc(x_1336); +x_1337 = lean_ctor_get(x_1335, 1); +lean_inc(x_1337); +if (lean_is_exclusive(x_1335)) { + lean_ctor_release(x_1335, 0); + lean_ctor_release(x_1335, 1); + x_1338 = x_1335; } else { - lean_dec_ref(x_1333); - x_1336 = lean_box(0); + lean_dec_ref(x_1335); + x_1338 = lean_box(0); } -if (lean_is_scalar(x_1336)) { - x_1337 = lean_alloc_ctor(1, 2, 0); +x_1339 = lean_box(0); +if (lean_is_scalar(x_1338)) { + x_1340 = lean_alloc_ctor(1, 2, 0); } else { - x_1337 = x_1336; - lean_ctor_set_tag(x_1337, 1); + x_1340 = x_1338; + lean_ctor_set_tag(x_1340, 1); } -lean_ctor_set(x_1337, 0, x_1334); -lean_ctor_set(x_1337, 1, x_1310); -if (lean_is_scalar(x_1332)) { - x_1338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1340, 0, x_1336); +lean_ctor_set(x_1340, 1, x_1339); +if (lean_is_scalar(x_1334)) { + x_1341 = lean_alloc_ctor(1, 2, 0); } else { - x_1338 = x_1332; - lean_ctor_set_tag(x_1338, 1); + x_1341 = x_1334; + lean_ctor_set_tag(x_1341, 1); } -lean_ctor_set(x_1338, 0, x_1330); -lean_ctor_set(x_1338, 1, x_1337); -if (lean_is_scalar(x_1328)) { - x_1339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1341, 0, x_1332); +lean_ctor_set(x_1341, 1, x_1340); +if (lean_is_scalar(x_1321)) { + x_1342 = lean_alloc_ctor(1, 2, 0); } else { - x_1339 = x_1328; - lean_ctor_set_tag(x_1339, 1); + x_1342 = x_1321; + lean_ctor_set_tag(x_1342, 1); } -lean_ctor_set(x_1339, 0, x_1326); -lean_ctor_set(x_1339, 1, x_1338); -x_1340 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_1339); -x_1341 = l_Lean_Expr_const___override(x_1340, x_1339); -x_1342 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_48); -x_1343 = lean_array_push(x_1342, x_48); -lean_inc(x_35); -x_1344 = lean_array_push(x_1343, x_35); -lean_inc(x_1324); -x_1345 = lean_array_push(x_1344, x_1324); -lean_inc(x_49); -x_1346 = lean_array_push(x_1345, x_49); -lean_inc(x_1); -x_1347 = lean_array_push(x_1346, x_1); -x_1348 = l_Lean_mkAppN(x_1341, x_1347); +lean_ctor_set(x_1342, 0, x_1316); +lean_ctor_set(x_1342, 1, x_1341); +x_1343 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_1344 = l_Lean_Expr_const___override(x_1343, x_1342); +x_1345 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_65); +x_1346 = lean_array_push(x_1345, x_65); +lean_inc(x_51); +x_1347 = lean_array_push(x_1346, x_51); +x_1348 = l_Lean_mkAppN(x_1344, x_1347); +x_1349 = lean_box(0); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1348); -x_1349 = lean_infer_type(x_1348, x_3, x_4, x_5, x_6, x_1335); -if (lean_obj_tag(x_1349) == 0) +x_1350 = l_Lean_Meta_trySynthInstance(x_1348, x_1349, x_3, x_4, x_5, x_6, x_1337); +if (lean_obj_tag(x_1350) == 0) { -lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; -x_1350 = lean_ctor_get(x_1349, 0); -lean_inc(x_1350); -x_1351 = lean_ctor_get(x_1349, 1); +lean_object* x_1351; +x_1351 = lean_ctor_get(x_1350, 0); lean_inc(x_1351); -lean_dec(x_1349); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_1352 = l_Lean_Meta_isExprDefEq(x_16, x_1350, x_3, x_4, x_5, x_6, x_1351); -if (lean_obj_tag(x_1352) == 0) +if (lean_obj_tag(x_1351) == 1) { -lean_object* x_1353; uint8_t x_1354; -x_1353 = lean_ctor_get(x_1352, 0); +lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; +x_1352 = lean_ctor_get(x_1350, 1); +lean_inc(x_1352); +lean_dec(x_1350); +x_1353 = lean_ctor_get(x_1351, 0); lean_inc(x_1353); -x_1354 = lean_unbox(x_1353); -lean_dec(x_1353); -if (x_1354 == 0) +lean_dec(x_1351); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_1354 = l_Lean_Meta_getDecLevel(x_66, x_3, x_4, x_5, x_6, x_1352); +if (lean_obj_tag(x_1354) == 0) { -lean_object* x_1355; lean_object* x_1356; -lean_dec(x_1348); -lean_free_object(x_38); -x_1355 = lean_ctor_get(x_1352, 1); +lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; +x_1355 = lean_ctor_get(x_1354, 0); lean_inc(x_1355); -lean_dec(x_1352); +x_1356 = lean_ctor_get(x_1354, 1); +lean_inc(x_1356); +if (lean_is_exclusive(x_1354)) { + lean_ctor_release(x_1354, 0); + lean_ctor_release(x_1354, 1); + x_1357 = x_1354; +} else { + lean_dec_ref(x_1354); + x_1357 = lean_box(0); +} lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_35); -x_1356 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_1355); -if (lean_obj_tag(x_1356) == 0) +x_1358 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_1356); +if (lean_obj_tag(x_1358) == 0) { -lean_object* x_1357; -x_1357 = lean_ctor_get(x_1356, 0); -lean_inc(x_1357); -if (lean_obj_tag(x_1357) == 0) -{ -lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1358 = lean_ctor_get(x_1356, 1); -lean_inc(x_1358); -if (lean_is_exclusive(x_1356)) { - lean_ctor_release(x_1356, 0); - lean_ctor_release(x_1356, 1); - x_1359 = x_1356; +lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; +x_1359 = lean_ctor_get(x_1358, 0); +lean_inc(x_1359); +x_1360 = lean_ctor_get(x_1358, 1); +lean_inc(x_1360); +if (lean_is_exclusive(x_1358)) { + lean_ctor_release(x_1358, 0); + lean_ctor_release(x_1358, 1); + x_1361 = x_1358; } else { - lean_dec_ref(x_1356); - x_1359 = lean_box(0); + lean_dec_ref(x_1358); + x_1361 = lean_box(0); } -if (lean_is_scalar(x_1359)) { - x_1360 = lean_alloc_ctor(0, 2, 0); -} else { - x_1360 = x_1359; -} -lean_ctor_set(x_1360, 0, x_1320); -lean_ctor_set(x_1360, 1, x_1358); -return x_1360; -} -else -{ -lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; -x_1361 = lean_ctor_get(x_1356, 1); -lean_inc(x_1361); -lean_dec(x_1356); -x_1362 = lean_ctor_get(x_1357, 0); -lean_inc(x_1362); -lean_dec(x_1357); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_49); -x_1363 = l_Lean_Meta_getLevel(x_49, x_3, x_4, x_5, x_6, x_1361); -if (lean_obj_tag(x_1363) == 0) +lean_inc(x_32); +x_1362 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_1360); +if (lean_obj_tag(x_1362) == 0) { -lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; -x_1364 = lean_ctor_get(x_1363, 0); +lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; +x_1363 = lean_ctor_get(x_1362, 0); +lean_inc(x_1363); +x_1364 = lean_ctor_get(x_1362, 1); lean_inc(x_1364); -x_1365 = lean_ctor_get(x_1363, 1); -lean_inc(x_1365); -if (lean_is_exclusive(x_1363)) { - lean_ctor_release(x_1363, 0); - lean_ctor_release(x_1363, 1); - x_1366 = x_1363; +if (lean_is_exclusive(x_1362)) { + lean_ctor_release(x_1362, 0); + lean_ctor_release(x_1362, 1); + x_1365 = x_1362; } else { - lean_dec_ref(x_1363); - x_1366 = lean_box(0); + lean_dec_ref(x_1362); + x_1365 = lean_box(0); } -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_36); -x_1367 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_1365); -if (lean_obj_tag(x_1367) == 0) -{ -lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; uint8_t x_1382; lean_object* x_1383; lean_object* x_1384; -x_1368 = lean_ctor_get(x_1367, 0); +if (lean_is_scalar(x_1365)) { + x_1366 = lean_alloc_ctor(1, 2, 0); +} else { + x_1366 = x_1365; + lean_ctor_set_tag(x_1366, 1); +} +lean_ctor_set(x_1366, 0, x_1363); +lean_ctor_set(x_1366, 1, x_1339); +if (lean_is_scalar(x_1361)) { + x_1367 = lean_alloc_ctor(1, 2, 0); +} else { + x_1367 = x_1361; + lean_ctor_set_tag(x_1367, 1); +} +lean_ctor_set(x_1367, 0, x_1359); +lean_ctor_set(x_1367, 1, x_1366); +if (lean_is_scalar(x_1357)) { + x_1368 = lean_alloc_ctor(1, 2, 0); +} else { + x_1368 = x_1357; + lean_ctor_set_tag(x_1368, 1); +} +lean_ctor_set(x_1368, 0, x_1355); +lean_ctor_set(x_1368, 1, x_1367); +x_1369 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1367, 1); -lean_inc(x_1369); -if (lean_is_exclusive(x_1367)) { - lean_ctor_release(x_1367, 0); - lean_ctor_release(x_1367, 1); - x_1370 = x_1367; -} else { - lean_dec_ref(x_1367); - x_1370 = lean_box(0); -} -if (lean_is_scalar(x_1370)) { - x_1371 = lean_alloc_ctor(1, 2, 0); -} else { - x_1371 = x_1370; - lean_ctor_set_tag(x_1371, 1); -} -lean_ctor_set(x_1371, 0, x_1368); -lean_ctor_set(x_1371, 1, x_1310); -if (lean_is_scalar(x_1366)) { - x_1372 = lean_alloc_ctor(1, 2, 0); -} else { - x_1372 = x_1366; - lean_ctor_set_tag(x_1372, 1); -} -lean_ctor_set(x_1372, 0, x_1364); -lean_ctor_set(x_1372, 1, x_1371); -x_1373 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_1374 = l_Lean_Expr_const___override(x_1373, x_1372); -x_1375 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_49); -x_1376 = lean_array_push(x_1375, x_49); -x_1377 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_1378 = lean_array_push(x_1376, x_1377); -lean_inc(x_36); -x_1379 = lean_array_push(x_1378, x_36); -x_1380 = l_Lean_mkAppN(x_1374, x_1379); -x_1381 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_1382 = 0; -lean_inc(x_49); -x_1383 = l_Lean_Expr_forallE___override(x_1381, x_49, x_1380, x_1382); +x_1370 = l_Lean_Expr_const___override(x_1369, x_1368); +x_1371 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_65); +x_1372 = lean_array_push(x_1371, x_65); +lean_inc(x_51); +x_1373 = lean_array_push(x_1372, x_51); +lean_inc(x_1353); +x_1374 = lean_array_push(x_1373, x_1353); +lean_inc(x_66); +x_1375 = lean_array_push(x_1374, x_66); +lean_inc(x_1); +x_1376 = lean_array_push(x_1375, x_1); +x_1377 = l_Lean_mkAppN(x_1370, x_1376); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1384 = l_Lean_Meta_trySynthInstance(x_1383, x_1320, x_3, x_4, x_5, x_6, x_1369); -if (lean_obj_tag(x_1384) == 0) +lean_inc(x_1377); +x_1378 = lean_infer_type(x_1377, x_3, x_4, x_5, x_6, x_1364); +if (lean_obj_tag(x_1378) == 0) { -lean_object* x_1385; -x_1385 = lean_ctor_get(x_1384, 0); -lean_inc(x_1385); -if (lean_obj_tag(x_1385) == 1) +lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; +x_1379 = lean_ctor_get(x_1378, 0); +lean_inc(x_1379); +x_1380 = lean_ctor_get(x_1378, 1); +lean_inc(x_1380); +lean_dec(x_1378); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_1381 = l_Lean_Meta_isExprDefEq(x_32, x_1379, x_3, x_4, x_5, x_6, x_1380); +if (lean_obj_tag(x_1381) == 0) { -lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; -x_1386 = lean_ctor_get(x_1384, 1); +lean_object* x_1382; uint8_t x_1383; +x_1382 = lean_ctor_get(x_1381, 0); +lean_inc(x_1382); +x_1383 = lean_unbox(x_1382); +lean_dec(x_1382); +if (x_1383 == 0) +{ +lean_object* x_1384; lean_object* x_1385; +lean_dec(x_1377); +lean_free_object(x_54); +x_1384 = lean_ctor_get(x_1381, 1); +lean_inc(x_1384); +lean_dec(x_1381); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_1385 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_1384); +if (lean_obj_tag(x_1385) == 0) +{ +lean_object* x_1386; +x_1386 = lean_ctor_get(x_1385, 0); lean_inc(x_1386); -lean_dec(x_1384); -x_1387 = lean_ctor_get(x_1385, 0); +if (lean_obj_tag(x_1386) == 0) +{ +lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1387 = lean_ctor_get(x_1385, 1); lean_inc(x_1387); -lean_dec(x_1385); -x_1388 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_1389 = l_Lean_Expr_const___override(x_1388, x_1339); -x_1390 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_1391 = lean_array_push(x_1390, x_48); -x_1392 = lean_array_push(x_1391, x_35); -x_1393 = lean_array_push(x_1392, x_49); -x_1394 = lean_array_push(x_1393, x_36); -x_1395 = lean_array_push(x_1394, x_1324); -x_1396 = lean_array_push(x_1395, x_1387); -x_1397 = lean_array_push(x_1396, x_1362); -x_1398 = lean_array_push(x_1397, x_1); -x_1399 = l_Lean_mkAppN(x_1389, x_1398); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1400 = l_Lean_Meta_expandCoe(x_1399, x_3, x_4, x_5, x_6, x_1386); -if (lean_obj_tag(x_1400) == 0) -{ -lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; -x_1401 = lean_ctor_get(x_1400, 0); -lean_inc(x_1401); -x_1402 = lean_ctor_get(x_1400, 1); -lean_inc(x_1402); -lean_dec(x_1400); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1401); -x_1403 = lean_infer_type(x_1401, x_3, x_4, x_5, x_6, x_1402); -if (lean_obj_tag(x_1403) == 0) -{ -lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; -x_1404 = lean_ctor_get(x_1403, 0); -lean_inc(x_1404); -x_1405 = lean_ctor_get(x_1403, 1); -lean_inc(x_1405); -lean_dec(x_1403); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1406 = l_Lean_Meta_isExprDefEq(x_16, x_1404, x_3, x_4, x_5, x_6, x_1405); -if (lean_obj_tag(x_1406) == 0) -{ -lean_object* x_1407; uint8_t x_1408; -x_1407 = lean_ctor_get(x_1406, 0); -lean_inc(x_1407); -x_1408 = lean_unbox(x_1407); -lean_dec(x_1407); -if (x_1408 == 0) -{ -lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; -lean_dec(x_1401); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1409 = lean_ctor_get(x_1406, 1); -lean_inc(x_1409); -if (lean_is_exclusive(x_1406)) { - lean_ctor_release(x_1406, 0); - lean_ctor_release(x_1406, 1); - x_1410 = x_1406; +if (lean_is_exclusive(x_1385)) { + lean_ctor_release(x_1385, 0); + lean_ctor_release(x_1385, 1); + x_1388 = x_1385; } else { - lean_dec_ref(x_1406); - x_1410 = lean_box(0); + lean_dec_ref(x_1385); + x_1388 = lean_box(0); } -if (lean_is_scalar(x_1410)) { - x_1411 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1388)) { + x_1389 = lean_alloc_ctor(0, 2, 0); } else { - x_1411 = x_1410; + x_1389 = x_1388; } -lean_ctor_set(x_1411, 0, x_1320); -lean_ctor_set(x_1411, 1, x_1409); -return x_1411; +lean_ctor_set(x_1389, 0, x_1349); +lean_ctor_set(x_1389, 1, x_1387); +return x_1389; } else { -lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; -x_1412 = lean_ctor_get(x_1406, 1); -lean_inc(x_1412); -lean_dec(x_1406); -x_1413 = lean_box(0); -x_1414 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1401, x_1413, x_3, x_4, x_5, x_6, x_1412); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1415 = lean_ctor_get(x_1414, 0); +lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; +x_1390 = lean_ctor_get(x_1385, 1); +lean_inc(x_1390); +lean_dec(x_1385); +x_1391 = lean_ctor_get(x_1386, 0); +lean_inc(x_1391); +lean_dec(x_1386); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_66); +x_1392 = l_Lean_Meta_getLevel(x_66, x_3, x_4, x_5, x_6, x_1390); +if (lean_obj_tag(x_1392) == 0) +{ +lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; +x_1393 = lean_ctor_get(x_1392, 0); +lean_inc(x_1393); +x_1394 = lean_ctor_get(x_1392, 1); +lean_inc(x_1394); +if (lean_is_exclusive(x_1392)) { + lean_ctor_release(x_1392, 0); + lean_ctor_release(x_1392, 1); + x_1395 = x_1392; +} else { + lean_dec_ref(x_1392); + x_1395 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_1396 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_1394); +if (lean_obj_tag(x_1396) == 0) +{ +lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; uint8_t x_1411; lean_object* x_1412; lean_object* x_1413; +x_1397 = lean_ctor_get(x_1396, 0); +lean_inc(x_1397); +x_1398 = lean_ctor_get(x_1396, 1); +lean_inc(x_1398); +if (lean_is_exclusive(x_1396)) { + lean_ctor_release(x_1396, 0); + lean_ctor_release(x_1396, 1); + x_1399 = x_1396; +} else { + lean_dec_ref(x_1396); + x_1399 = lean_box(0); +} +if (lean_is_scalar(x_1399)) { + x_1400 = lean_alloc_ctor(1, 2, 0); +} else { + x_1400 = x_1399; + lean_ctor_set_tag(x_1400, 1); +} +lean_ctor_set(x_1400, 0, x_1397); +lean_ctor_set(x_1400, 1, x_1339); +if (lean_is_scalar(x_1395)) { + x_1401 = lean_alloc_ctor(1, 2, 0); +} else { + x_1401 = x_1395; + lean_ctor_set_tag(x_1401, 1); +} +lean_ctor_set(x_1401, 0, x_1393); +lean_ctor_set(x_1401, 1, x_1400); +x_1402 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_1403 = l_Lean_Expr_const___override(x_1402, x_1401); +x_1404 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_66); +x_1405 = lean_array_push(x_1404, x_66); +x_1406 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_1407 = lean_array_push(x_1405, x_1406); +lean_inc(x_52); +x_1408 = lean_array_push(x_1407, x_52); +x_1409 = l_Lean_mkAppN(x_1403, x_1408); +x_1410 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_1411 = 0; +lean_inc(x_66); +x_1412 = l_Lean_Expr_forallE___override(x_1410, x_66, x_1409, x_1411); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1413 = l_Lean_Meta_trySynthInstance(x_1412, x_1349, x_3, x_4, x_5, x_6, x_1398); +if (lean_obj_tag(x_1413) == 0) +{ +lean_object* x_1414; +x_1414 = lean_ctor_get(x_1413, 0); +lean_inc(x_1414); +if (lean_obj_tag(x_1414) == 1) +{ +lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; +x_1415 = lean_ctor_get(x_1413, 1); lean_inc(x_1415); -x_1416 = lean_ctor_get(x_1414, 1); +lean_dec(x_1413); +x_1416 = lean_ctor_get(x_1414, 0); lean_inc(x_1416); -if (lean_is_exclusive(x_1414)) { - lean_ctor_release(x_1414, 0); - lean_ctor_release(x_1414, 1); - x_1417 = x_1414; -} else { - lean_dec_ref(x_1414); - x_1417 = lean_box(0); -} -if (lean_is_scalar(x_1417)) { - x_1418 = lean_alloc_ctor(0, 2, 0); -} else { - x_1418 = x_1417; -} -lean_ctor_set(x_1418, 0, x_1415); -lean_ctor_set(x_1418, 1, x_1416); -return x_1418; -} -} -else +lean_dec(x_1414); +x_1417 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_1418 = l_Lean_Expr_const___override(x_1417, x_1368); +x_1419 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_1420 = lean_array_push(x_1419, x_65); +x_1421 = lean_array_push(x_1420, x_51); +x_1422 = lean_array_push(x_1421, x_66); +x_1423 = lean_array_push(x_1422, x_52); +x_1424 = lean_array_push(x_1423, x_1353); +x_1425 = lean_array_push(x_1424, x_1416); +x_1426 = lean_array_push(x_1425, x_1391); +x_1427 = lean_array_push(x_1426, x_1); +x_1428 = l_Lean_mkAppN(x_1418, x_1427); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1429 = l_Lean_Meta_expandCoe(x_1428, x_3, x_4, x_5, x_6, x_1415); +if (lean_obj_tag(x_1429) == 0) { -lean_object* x_1419; lean_object* x_1420; -lean_dec(x_1401); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1419 = lean_ctor_get(x_1406, 0); -lean_inc(x_1419); -x_1420 = lean_ctor_get(x_1406, 1); -lean_inc(x_1420); -lean_dec(x_1406); -x_8 = x_1419; -x_9 = x_1420; -goto block_14; -} -} -else -{ -lean_object* x_1421; lean_object* x_1422; -lean_dec(x_1401); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1421 = lean_ctor_get(x_1403, 0); -lean_inc(x_1421); -x_1422 = lean_ctor_get(x_1403, 1); -lean_inc(x_1422); -lean_dec(x_1403); -x_8 = x_1421; -x_9 = x_1422; -goto block_14; -} -} -else -{ -lean_object* x_1423; lean_object* x_1424; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1423 = lean_ctor_get(x_1400, 0); -lean_inc(x_1423); -x_1424 = lean_ctor_get(x_1400, 1); -lean_inc(x_1424); -lean_dec(x_1400); -x_8 = x_1423; -x_9 = x_1424; -goto block_14; -} -} -else -{ -lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; -lean_dec(x_1385); -lean_dec(x_1362); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1425 = lean_ctor_get(x_1384, 1); -lean_inc(x_1425); -if (lean_is_exclusive(x_1384)) { - lean_ctor_release(x_1384, 0); - lean_ctor_release(x_1384, 1); - x_1426 = x_1384; -} else { - lean_dec_ref(x_1384); - x_1426 = lean_box(0); -} -if (lean_is_scalar(x_1426)) { - x_1427 = lean_alloc_ctor(0, 2, 0); -} else { - x_1427 = x_1426; -} -lean_ctor_set(x_1427, 0, x_1320); -lean_ctor_set(x_1427, 1, x_1425); -return x_1427; -} -} -else -{ -lean_object* x_1428; lean_object* x_1429; -lean_dec(x_1362); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1428 = lean_ctor_get(x_1384, 0); -lean_inc(x_1428); -x_1429 = lean_ctor_get(x_1384, 1); -lean_inc(x_1429); -lean_dec(x_1384); -x_8 = x_1428; -x_9 = x_1429; -goto block_14; -} -} -else -{ -lean_object* x_1430; lean_object* x_1431; -lean_dec(x_1366); -lean_dec(x_1364); -lean_dec(x_1362); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1430 = lean_ctor_get(x_1367, 0); +lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; +x_1430 = lean_ctor_get(x_1429, 0); lean_inc(x_1430); -x_1431 = lean_ctor_get(x_1367, 1); +x_1431 = lean_ctor_get(x_1429, 1); lean_inc(x_1431); -lean_dec(x_1367); -x_8 = x_1430; -x_9 = x_1431; -goto block_14; -} -} -else +lean_dec(x_1429); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1430); +x_1432 = lean_infer_type(x_1430, x_3, x_4, x_5, x_6, x_1431); +if (lean_obj_tag(x_1432) == 0) { -lean_object* x_1432; lean_object* x_1433; -lean_dec(x_1362); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1432 = lean_ctor_get(x_1363, 0); -lean_inc(x_1432); -x_1433 = lean_ctor_get(x_1363, 1); +lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; +x_1433 = lean_ctor_get(x_1432, 0); lean_inc(x_1433); -lean_dec(x_1363); -x_8 = x_1432; -x_9 = x_1433; -goto block_14; -} -} -} -else -{ -lean_object* x_1434; lean_object* x_1435; -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1434 = lean_ctor_get(x_1356, 0); +x_1434 = lean_ctor_get(x_1432, 1); lean_inc(x_1434); -x_1435 = lean_ctor_get(x_1356, 1); -lean_inc(x_1435); -lean_dec(x_1356); -x_8 = x_1434; -x_9 = x_1435; -goto block_14; -} -} -else +lean_dec(x_1432); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1435 = l_Lean_Meta_isExprDefEq(x_32, x_1433, x_3, x_4, x_5, x_6, x_1434); +if (lean_obj_tag(x_1435) == 0) { -lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1436 = lean_ctor_get(x_1352, 1); +lean_object* x_1436; uint8_t x_1437; +x_1436 = lean_ctor_get(x_1435, 0); lean_inc(x_1436); -if (lean_is_exclusive(x_1352)) { - lean_ctor_release(x_1352, 0); - lean_ctor_release(x_1352, 1); - x_1437 = x_1352; -} else { - lean_dec_ref(x_1352); - x_1437 = lean_box(0); -} -lean_ctor_set(x_38, 0, x_1348); -if (lean_is_scalar(x_1437)) { - x_1438 = lean_alloc_ctor(0, 2, 0); -} else { - x_1438 = x_1437; -} -lean_ctor_set(x_1438, 0, x_38); -lean_ctor_set(x_1438, 1, x_1436); -return x_1438; -} -} -else +x_1437 = lean_unbox(x_1436); +lean_dec(x_1436); +if (x_1437 == 0) { -lean_object* x_1439; lean_object* x_1440; -lean_dec(x_1348); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; +lean_dec(x_1430); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1439 = lean_ctor_get(x_1352, 0); -lean_inc(x_1439); -x_1440 = lean_ctor_get(x_1352, 1); -lean_inc(x_1440); -lean_dec(x_1352); -x_8 = x_1439; -x_9 = x_1440; -goto block_14; +x_1438 = lean_ctor_get(x_1435, 1); +lean_inc(x_1438); +if (lean_is_exclusive(x_1435)) { + lean_ctor_release(x_1435, 0); + lean_ctor_release(x_1435, 1); + x_1439 = x_1435; +} else { + lean_dec_ref(x_1435); + x_1439 = lean_box(0); } +if (lean_is_scalar(x_1439)) { + x_1440 = lean_alloc_ctor(0, 2, 0); +} else { + x_1440 = x_1439; +} +lean_ctor_set(x_1440, 0, x_1349); +lean_ctor_set(x_1440, 1, x_1438); +return x_1440; } else { -lean_object* x_1441; lean_object* x_1442; -lean_dec(x_1348); -lean_dec(x_1339); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1441 = lean_ctor_get(x_1349, 0); +lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; +x_1441 = lean_ctor_get(x_1435, 1); lean_inc(x_1441); -x_1442 = lean_ctor_get(x_1349, 1); -lean_inc(x_1442); -lean_dec(x_1349); -x_8 = x_1441; -x_9 = x_1442; -goto block_14; -} -} -else -{ -lean_object* x_1443; lean_object* x_1444; -lean_dec(x_1332); -lean_dec(x_1330); -lean_dec(x_1328); -lean_dec(x_1326); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); +lean_dec(x_1435); +x_1442 = lean_box(0); +x_1443 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1430, x_1442, x_3, x_4, x_5, x_6, x_1441); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1443 = lean_ctor_get(x_1333, 0); -lean_inc(x_1443); -x_1444 = lean_ctor_get(x_1333, 1); +x_1444 = lean_ctor_get(x_1443, 0); lean_inc(x_1444); -lean_dec(x_1333); -x_8 = x_1443; -x_9 = x_1444; -goto block_14; -} -} -else -{ -lean_object* x_1445; lean_object* x_1446; -lean_dec(x_1328); -lean_dec(x_1326); -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1445 = lean_ctor_get(x_1329, 0); +x_1445 = lean_ctor_get(x_1443, 1); lean_inc(x_1445); -x_1446 = lean_ctor_get(x_1329, 1); -lean_inc(x_1446); -lean_dec(x_1329); -x_8 = x_1445; -x_9 = x_1446; -goto block_14; +if (lean_is_exclusive(x_1443)) { + lean_ctor_release(x_1443, 0); + lean_ctor_release(x_1443, 1); + x_1446 = x_1443; +} else { + lean_dec_ref(x_1443); + x_1446 = lean_box(0); +} +if (lean_is_scalar(x_1446)) { + x_1447 = lean_alloc_ctor(0, 2, 0); +} else { + x_1447 = x_1446; +} +lean_ctor_set(x_1447, 0, x_1444); +lean_ctor_set(x_1447, 1, x_1445); +return x_1447; } } else { -lean_object* x_1447; lean_object* x_1448; -lean_dec(x_1324); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1448; lean_object* x_1449; +lean_dec(x_1430); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1447 = lean_ctor_get(x_1325, 0); -lean_inc(x_1447); -x_1448 = lean_ctor_get(x_1325, 1); +x_1448 = lean_ctor_get(x_1435, 0); lean_inc(x_1448); -lean_dec(x_1325); -x_8 = x_1447; -x_9 = x_1448; -goto block_14; +x_1449 = lean_ctor_get(x_1435, 1); +lean_inc(x_1449); +lean_dec(x_1435); +x_8 = x_1448; +x_9 = x_1449; +goto block_16; } } else { -lean_object* x_1449; lean_object* x_1450; lean_object* x_1451; -lean_dec(x_1322); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1450; lean_object* x_1451; +lean_dec(x_1430); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1449 = lean_ctor_get(x_1321, 1); -lean_inc(x_1449); -if (lean_is_exclusive(x_1321)) { - lean_ctor_release(x_1321, 0); - lean_ctor_release(x_1321, 1); - x_1450 = x_1321; -} else { - lean_dec_ref(x_1321); - x_1450 = lean_box(0); -} -if (lean_is_scalar(x_1450)) { - x_1451 = lean_alloc_ctor(0, 2, 0); -} else { - x_1451 = x_1450; -} -lean_ctor_set(x_1451, 0, x_1320); -lean_ctor_set(x_1451, 1, x_1449); -return x_1451; +x_1450 = lean_ctor_get(x_1432, 0); +lean_inc(x_1450); +x_1451 = lean_ctor_get(x_1432, 1); +lean_inc(x_1451); +lean_dec(x_1432); +x_8 = x_1450; +x_9 = x_1451; +goto block_16; } } else { lean_object* x_1452; lean_object* x_1453; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1452 = lean_ctor_get(x_1321, 0); +x_1452 = lean_ctor_get(x_1429, 0); lean_inc(x_1452); -x_1453 = lean_ctor_get(x_1321, 1); +x_1453 = lean_ctor_get(x_1429, 1); lean_inc(x_1453); -lean_dec(x_1321); +lean_dec(x_1429); x_8 = x_1452; x_9 = x_1453; -goto block_14; +goto block_16; } } else { -lean_object* x_1454; lean_object* x_1455; -lean_dec(x_1305); -lean_dec(x_1303); -lean_dec(x_1292); -lean_dec(x_1287); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; +lean_dec(x_1414); +lean_dec(x_1391); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1454 = lean_ctor_get(x_1306, 0); +x_1454 = lean_ctor_get(x_1413, 1); lean_inc(x_1454); -x_1455 = lean_ctor_get(x_1306, 1); -lean_inc(x_1455); -lean_dec(x_1306); -x_8 = x_1454; -x_9 = x_1455; -goto block_14; -} -} -else -{ -lean_object* x_1456; lean_object* x_1457; -lean_dec(x_1292); -lean_dec(x_1287); -lean_dec(x_1285); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1456 = lean_ctor_get(x_1302, 0); -lean_inc(x_1456); -x_1457 = lean_ctor_get(x_1302, 1); -lean_inc(x_1457); -lean_dec(x_1302); -x_8 = x_1456; -x_9 = x_1457; -goto block_14; -} -} -} -else -{ -lean_object* x_1458; lean_object* x_1459; -lean_dec(x_1292); -lean_dec(x_1287); -lean_dec(x_1285); -lean_dec(x_1275); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1458 = lean_ctor_get(x_1294, 0); -lean_inc(x_1458); -x_1459 = lean_ctor_get(x_1294, 1); -lean_inc(x_1459); -lean_dec(x_1294); -x_8 = x_1458; -x_9 = x_1459; -goto block_14; -} -} -else -{ -lean_object* x_1460; lean_object* x_1461; -lean_dec(x_1287); -lean_dec(x_1285); -lean_dec(x_1275); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1460 = lean_ctor_get(x_1289, 0); -lean_inc(x_1460); -x_1461 = lean_ctor_get(x_1289, 1); -lean_inc(x_1461); -lean_dec(x_1289); -x_8 = x_1460; -x_9 = x_1461; -goto block_14; -} -} -else -{ -lean_object* x_1462; lean_object* x_1463; -lean_dec(x_1285); -lean_dec(x_1284); -lean_dec(x_1275); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1462 = lean_ctor_get(x_1286, 0); -lean_inc(x_1462); -x_1463 = lean_ctor_get(x_1286, 1); -lean_inc(x_1463); -lean_dec(x_1286); -x_8 = x_1462; -x_9 = x_1463; -goto block_14; -} -} -else -{ -lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; -lean_dec(x_1282); -lean_dec(x_1281); -lean_dec(x_1275); -lean_dec(x_1274); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1464 = lean_ctor_get(x_1279, 1); -lean_inc(x_1464); -if (lean_is_exclusive(x_1279)) { - lean_ctor_release(x_1279, 0); - lean_ctor_release(x_1279, 1); - x_1465 = x_1279; +if (lean_is_exclusive(x_1413)) { + lean_ctor_release(x_1413, 0); + lean_ctor_release(x_1413, 1); + x_1455 = x_1413; } else { - lean_dec_ref(x_1279); - x_1465 = lean_box(0); + lean_dec_ref(x_1413); + x_1455 = lean_box(0); } -x_1466 = lean_box(0); -if (lean_is_scalar(x_1465)) { +if (lean_is_scalar(x_1455)) { + x_1456 = lean_alloc_ctor(0, 2, 0); +} else { + x_1456 = x_1455; +} +lean_ctor_set(x_1456, 0, x_1349); +lean_ctor_set(x_1456, 1, x_1454); +return x_1456; +} +} +else +{ +lean_object* x_1457; lean_object* x_1458; +lean_dec(x_1391); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1457 = lean_ctor_get(x_1413, 0); +lean_inc(x_1457); +x_1458 = lean_ctor_get(x_1413, 1); +lean_inc(x_1458); +lean_dec(x_1413); +x_8 = x_1457; +x_9 = x_1458; +goto block_16; +} +} +else +{ +lean_object* x_1459; lean_object* x_1460; +lean_dec(x_1395); +lean_dec(x_1393); +lean_dec(x_1391); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1459 = lean_ctor_get(x_1396, 0); +lean_inc(x_1459); +x_1460 = lean_ctor_get(x_1396, 1); +lean_inc(x_1460); +lean_dec(x_1396); +x_8 = x_1459; +x_9 = x_1460; +goto block_16; +} +} +else +{ +lean_object* x_1461; lean_object* x_1462; +lean_dec(x_1391); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1461 = lean_ctor_get(x_1392, 0); +lean_inc(x_1461); +x_1462 = lean_ctor_get(x_1392, 1); +lean_inc(x_1462); +lean_dec(x_1392); +x_8 = x_1461; +x_9 = x_1462; +goto block_16; +} +} +} +else +{ +lean_object* x_1463; lean_object* x_1464; +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1463 = lean_ctor_get(x_1385, 0); +lean_inc(x_1463); +x_1464 = lean_ctor_get(x_1385, 1); +lean_inc(x_1464); +lean_dec(x_1385); +x_8 = x_1463; +x_9 = x_1464; +goto block_16; +} +} +else +{ +lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1465 = lean_ctor_get(x_1381, 1); +lean_inc(x_1465); +if (lean_is_exclusive(x_1381)) { + lean_ctor_release(x_1381, 0); + lean_ctor_release(x_1381, 1); + x_1466 = x_1381; +} else { + lean_dec_ref(x_1381); + x_1466 = lean_box(0); +} +lean_ctor_set(x_54, 0, x_1377); +if (lean_is_scalar(x_1466)) { x_1467 = lean_alloc_ctor(0, 2, 0); } else { - x_1467 = x_1465; + x_1467 = x_1466; } -lean_ctor_set(x_1467, 0, x_1466); -lean_ctor_set(x_1467, 1, x_1464); +lean_ctor_set(x_1467, 0, x_54); +lean_ctor_set(x_1467, 1, x_1465); return x_1467; } } else { -lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; -lean_dec(x_1281); -lean_dec(x_1280); -lean_dec(x_1275); -lean_dec(x_1274); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1468; lean_object* x_1469; +lean_dec(x_1377); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1468 = lean_ctor_get(x_1279, 1); +x_1468 = lean_ctor_get(x_1381, 0); lean_inc(x_1468); -if (lean_is_exclusive(x_1279)) { - lean_ctor_release(x_1279, 0); - lean_ctor_release(x_1279, 1); - x_1469 = x_1279; -} else { - lean_dec_ref(x_1279); - x_1469 = lean_box(0); -} -x_1470 = lean_box(0); -if (lean_is_scalar(x_1469)) { - x_1471 = lean_alloc_ctor(0, 2, 0); -} else { - x_1471 = x_1469; -} -lean_ctor_set(x_1471, 0, x_1470); -lean_ctor_set(x_1471, 1, x_1468); -return x_1471; +x_1469 = lean_ctor_get(x_1381, 1); +lean_inc(x_1469); +lean_dec(x_1381); +x_8 = x_1468; +x_9 = x_1469; +goto block_16; } } else { -lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; -lean_dec(x_1280); -lean_dec(x_1275); -lean_dec(x_1274); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1470; lean_object* x_1471; +lean_dec(x_1377); +lean_dec(x_1368); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1472 = lean_ctor_get(x_1279, 1); +x_1470 = lean_ctor_get(x_1378, 0); +lean_inc(x_1470); +x_1471 = lean_ctor_get(x_1378, 1); +lean_inc(x_1471); +lean_dec(x_1378); +x_8 = x_1470; +x_9 = x_1471; +goto block_16; +} +} +else +{ +lean_object* x_1472; lean_object* x_1473; +lean_dec(x_1361); +lean_dec(x_1359); +lean_dec(x_1357); +lean_dec(x_1355); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1472 = lean_ctor_get(x_1362, 0); lean_inc(x_1472); -if (lean_is_exclusive(x_1279)) { - lean_ctor_release(x_1279, 0); - lean_ctor_release(x_1279, 1); - x_1473 = x_1279; -} else { - lean_dec_ref(x_1279); - x_1473 = lean_box(0); -} -x_1474 = lean_box(0); -if (lean_is_scalar(x_1473)) { - x_1475 = lean_alloc_ctor(0, 2, 0); -} else { - x_1475 = x_1473; -} -lean_ctor_set(x_1475, 0, x_1474); -lean_ctor_set(x_1475, 1, x_1472); -return x_1475; +x_1473 = lean_ctor_get(x_1362, 1); +lean_inc(x_1473); +lean_dec(x_1362); +x_8 = x_1472; +x_9 = x_1473; +goto block_16; } } else { -lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; uint8_t x_1479; -lean_dec(x_1275); -lean_dec(x_1274); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1474; lean_object* x_1475; +lean_dec(x_1357); +lean_dec(x_1355); +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1476 = lean_ctor_get(x_1279, 0); +x_1474 = lean_ctor_get(x_1358, 0); +lean_inc(x_1474); +x_1475 = lean_ctor_get(x_1358, 1); +lean_inc(x_1475); +lean_dec(x_1358); +x_8 = x_1474; +x_9 = x_1475; +goto block_16; +} +} +else +{ +lean_object* x_1476; lean_object* x_1477; +lean_dec(x_1353); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1476 = lean_ctor_get(x_1354, 0); lean_inc(x_1476); -x_1477 = lean_ctor_get(x_1279, 1); +x_1477 = lean_ctor_get(x_1354, 1); lean_inc(x_1477); -if (lean_is_exclusive(x_1279)) { - lean_ctor_release(x_1279, 0); - lean_ctor_release(x_1279, 1); - x_1478 = x_1279; -} else { - lean_dec_ref(x_1279); - x_1478 = lean_box(0); -} -x_1479 = l_Lean_Exception_isRuntime(x_1476); -if (x_1479 == 0) -{ -lean_object* x_1480; lean_object* x_1481; -lean_dec(x_1476); -x_1480 = lean_box(0); -if (lean_is_scalar(x_1478)) { - x_1481 = lean_alloc_ctor(0, 2, 0); -} else { - x_1481 = x_1478; - lean_ctor_set_tag(x_1481, 0); -} -lean_ctor_set(x_1481, 0, x_1480); -lean_ctor_set(x_1481, 1, x_1477); -return x_1481; -} -else -{ -lean_object* x_1482; -if (lean_is_scalar(x_1478)) { - x_1482 = lean_alloc_ctor(1, 2, 0); -} else { - x_1482 = x_1478; -} -lean_ctor_set(x_1482, 0, x_1476); -lean_ctor_set(x_1482, 1, x_1477); -return x_1482; -} +lean_dec(x_1354); +x_8 = x_1476; +x_9 = x_1477; +goto block_16; } } else { -lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; uint8_t x_1486; -lean_dec(x_1275); -lean_dec(x_1274); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; +lean_dec(x_1351); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1483 = lean_ctor_get(x_1276, 0); -lean_inc(x_1483); -x_1484 = lean_ctor_get(x_1276, 1); -lean_inc(x_1484); -if (lean_is_exclusive(x_1276)) { - lean_ctor_release(x_1276, 0); - lean_ctor_release(x_1276, 1); - x_1485 = x_1276; +x_1478 = lean_ctor_get(x_1350, 1); +lean_inc(x_1478); +if (lean_is_exclusive(x_1350)) { + lean_ctor_release(x_1350, 0); + lean_ctor_release(x_1350, 1); + x_1479 = x_1350; } else { - lean_dec_ref(x_1276); - x_1485 = lean_box(0); + lean_dec_ref(x_1350); + x_1479 = lean_box(0); } -x_1486 = l_Lean_Exception_isRuntime(x_1483); -if (x_1486 == 0) +if (lean_is_scalar(x_1479)) { + x_1480 = lean_alloc_ctor(0, 2, 0); +} else { + x_1480 = x_1479; +} +lean_ctor_set(x_1480, 0, x_1349); +lean_ctor_set(x_1480, 1, x_1478); +return x_1480; +} +} +else +{ +lean_object* x_1481; lean_object* x_1482; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1481 = lean_ctor_get(x_1350, 0); +lean_inc(x_1481); +x_1482 = lean_ctor_get(x_1350, 1); +lean_inc(x_1482); +lean_dec(x_1350); +x_8 = x_1481; +x_9 = x_1482; +goto block_16; +} +} +else +{ +lean_object* x_1483; lean_object* x_1484; +lean_dec(x_1334); +lean_dec(x_1332); +lean_dec(x_1321); +lean_dec(x_1316); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1483 = lean_ctor_get(x_1335, 0); +lean_inc(x_1483); +x_1484 = lean_ctor_get(x_1335, 1); +lean_inc(x_1484); +lean_dec(x_1335); +x_8 = x_1483; +x_9 = x_1484; +goto block_16; +} +} +else +{ +lean_object* x_1485; lean_object* x_1486; +lean_dec(x_1321); +lean_dec(x_1316); +lean_dec(x_1314); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1485 = lean_ctor_get(x_1331, 0); +lean_inc(x_1485); +x_1486 = lean_ctor_get(x_1331, 1); +lean_inc(x_1486); +lean_dec(x_1331); +x_8 = x_1485; +x_9 = x_1486; +goto block_16; +} +} +} +else { lean_object* x_1487; lean_object* x_1488; -lean_dec(x_1483); -x_1487 = lean_box(0); -if (lean_is_scalar(x_1485)) { - x_1488 = lean_alloc_ctor(0, 2, 0); -} else { - x_1488 = x_1485; - lean_ctor_set_tag(x_1488, 0); -} -lean_ctor_set(x_1488, 0, x_1487); -lean_ctor_set(x_1488, 1, x_1484); -return x_1488; -} -else -{ -lean_object* x_1489; -if (lean_is_scalar(x_1485)) { - x_1489 = lean_alloc_ctor(1, 2, 0); -} else { - x_1489 = x_1485; -} -lean_ctor_set(x_1489, 0, x_1483); -lean_ctor_set(x_1489, 1, x_1484); -return x_1489; -} -} -} -else -{ -lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; -lean_dec(x_1272); -lean_dec(x_1271); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1321); +lean_dec(x_1316); +lean_dec(x_1314); +lean_dec(x_1304); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1490 = lean_ctor_get(x_1269, 1); +x_1487 = lean_ctor_get(x_1323, 0); +lean_inc(x_1487); +x_1488 = lean_ctor_get(x_1323, 1); +lean_inc(x_1488); +lean_dec(x_1323); +x_8 = x_1487; +x_9 = x_1488; +goto block_16; +} +} +else +{ +lean_object* x_1489; lean_object* x_1490; +lean_dec(x_1316); +lean_dec(x_1314); +lean_dec(x_1304); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1489 = lean_ctor_get(x_1318, 0); +lean_inc(x_1489); +x_1490 = lean_ctor_get(x_1318, 1); lean_inc(x_1490); -if (lean_is_exclusive(x_1269)) { - lean_ctor_release(x_1269, 0); - lean_ctor_release(x_1269, 1); - x_1491 = x_1269; -} else { - lean_dec_ref(x_1269); - x_1491 = lean_box(0); -} -x_1492 = lean_box(0); -if (lean_is_scalar(x_1491)) { - x_1493 = lean_alloc_ctor(0, 2, 0); -} else { - x_1493 = x_1491; -} -lean_ctor_set(x_1493, 0, x_1492); -lean_ctor_set(x_1493, 1, x_1490); -return x_1493; +lean_dec(x_1318); +x_8 = x_1489; +x_9 = x_1490; +goto block_16; } } else { -lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; -lean_dec(x_1271); -lean_dec(x_1270); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1491; lean_object* x_1492; +lean_dec(x_1314); +lean_dec(x_1313); +lean_dec(x_1304); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1494 = lean_ctor_get(x_1269, 1); -lean_inc(x_1494); -if (lean_is_exclusive(x_1269)) { - lean_ctor_release(x_1269, 0); - lean_ctor_release(x_1269, 1); - x_1495 = x_1269; -} else { - lean_dec_ref(x_1269); - x_1495 = lean_box(0); -} -x_1496 = lean_box(0); -if (lean_is_scalar(x_1495)) { - x_1497 = lean_alloc_ctor(0, 2, 0); -} else { - x_1497 = x_1495; -} -lean_ctor_set(x_1497, 0, x_1496); -lean_ctor_set(x_1497, 1, x_1494); -return x_1497; +x_1491 = lean_ctor_get(x_1315, 0); +lean_inc(x_1491); +x_1492 = lean_ctor_get(x_1315, 1); +lean_inc(x_1492); +lean_dec(x_1315); +x_8 = x_1491; +x_9 = x_1492; +goto block_16; } } else { -lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; -lean_dec(x_1270); -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; +lean_dec(x_1311); +lean_dec(x_1310); +lean_dec(x_1304); +lean_dec(x_1303); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1498 = lean_ctor_get(x_1269, 1); -lean_inc(x_1498); -if (lean_is_exclusive(x_1269)) { - lean_ctor_release(x_1269, 0); - lean_ctor_release(x_1269, 1); - x_1499 = x_1269; +x_1493 = lean_ctor_get(x_1308, 1); +lean_inc(x_1493); +if (lean_is_exclusive(x_1308)) { + lean_ctor_release(x_1308, 0); + lean_ctor_release(x_1308, 1); + x_1494 = x_1308; } else { - lean_dec_ref(x_1269); - x_1499 = lean_box(0); + lean_dec_ref(x_1308); + x_1494 = lean_box(0); } -x_1500 = lean_box(0); -if (lean_is_scalar(x_1499)) { - x_1501 = lean_alloc_ctor(0, 2, 0); +x_1495 = lean_box(0); +if (lean_is_scalar(x_1494)) { + x_1496 = lean_alloc_ctor(0, 2, 0); } else { - x_1501 = x_1499; + x_1496 = x_1494; } -lean_ctor_set(x_1501, 0, x_1500); -lean_ctor_set(x_1501, 1, x_1498); -return x_1501; +lean_ctor_set(x_1496, 0, x_1495); +lean_ctor_set(x_1496, 1, x_1493); +return x_1496; } } else { -lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; uint8_t x_1505; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; +lean_dec(x_1310); +lean_dec(x_1309); +lean_dec(x_1304); +lean_dec(x_1303); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1502 = lean_ctor_get(x_1269, 0); -lean_inc(x_1502); -x_1503 = lean_ctor_get(x_1269, 1); -lean_inc(x_1503); -if (lean_is_exclusive(x_1269)) { - lean_ctor_release(x_1269, 0); - lean_ctor_release(x_1269, 1); - x_1504 = x_1269; +x_1497 = lean_ctor_get(x_1308, 1); +lean_inc(x_1497); +if (lean_is_exclusive(x_1308)) { + lean_ctor_release(x_1308, 0); + lean_ctor_release(x_1308, 1); + x_1498 = x_1308; } else { - lean_dec_ref(x_1269); - x_1504 = lean_box(0); + lean_dec_ref(x_1308); + x_1498 = lean_box(0); } -x_1505 = l_Lean_Exception_isRuntime(x_1502); -if (x_1505 == 0) -{ -lean_object* x_1506; lean_object* x_1507; -lean_dec(x_1502); -x_1506 = lean_box(0); -if (lean_is_scalar(x_1504)) { - x_1507 = lean_alloc_ctor(0, 2, 0); +x_1499 = lean_box(0); +if (lean_is_scalar(x_1498)) { + x_1500 = lean_alloc_ctor(0, 2, 0); } else { - x_1507 = x_1504; - lean_ctor_set_tag(x_1507, 0); -} -lean_ctor_set(x_1507, 0, x_1506); -lean_ctor_set(x_1507, 1, x_1503); -return x_1507; -} -else -{ -lean_object* x_1508; -if (lean_is_scalar(x_1504)) { - x_1508 = lean_alloc_ctor(1, 2, 0); -} else { - x_1508 = x_1504; -} -lean_ctor_set(x_1508, 0, x_1502); -lean_ctor_set(x_1508, 1, x_1503); -return x_1508; + x_1500 = x_1498; } +lean_ctor_set(x_1500, 0, x_1499); +lean_ctor_set(x_1500, 1, x_1497); +return x_1500; } } else { -lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; uint8_t x_1512; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; +lean_dec(x_1309); +lean_dec(x_1304); +lean_dec(x_1303); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1509 = lean_ctor_get(x_1266, 0); -lean_inc(x_1509); -x_1510 = lean_ctor_get(x_1266, 1); -lean_inc(x_1510); -if (lean_is_exclusive(x_1266)) { - lean_ctor_release(x_1266, 0); - lean_ctor_release(x_1266, 1); - x_1511 = x_1266; +x_1501 = lean_ctor_get(x_1308, 1); +lean_inc(x_1501); +if (lean_is_exclusive(x_1308)) { + lean_ctor_release(x_1308, 0); + lean_ctor_release(x_1308, 1); + x_1502 = x_1308; } else { - lean_dec_ref(x_1266); - x_1511 = lean_box(0); + lean_dec_ref(x_1308); + x_1502 = lean_box(0); } -x_1512 = l_Lean_Exception_isRuntime(x_1509); -if (x_1512 == 0) -{ -lean_object* x_1513; lean_object* x_1514; -lean_dec(x_1509); -x_1513 = lean_box(0); -if (lean_is_scalar(x_1511)) { - x_1514 = lean_alloc_ctor(0, 2, 0); +x_1503 = lean_box(0); +if (lean_is_scalar(x_1502)) { + x_1504 = lean_alloc_ctor(0, 2, 0); } else { - x_1514 = x_1511; - lean_ctor_set_tag(x_1514, 0); -} -lean_ctor_set(x_1514, 0, x_1513); -lean_ctor_set(x_1514, 1, x_1510); -return x_1514; -} -else -{ -lean_object* x_1515; -if (lean_is_scalar(x_1511)) { - x_1515 = lean_alloc_ctor(1, 2, 0); -} else { - x_1515 = x_1511; -} -lean_ctor_set(x_1515, 0, x_1509); -lean_ctor_set(x_1515, 1, x_1510); -return x_1515; -} -} + x_1504 = x_1502; } +lean_ctor_set(x_1504, 0, x_1503); +lean_ctor_set(x_1504, 1, x_1501); +return x_1504; } } else { -lean_object* x_1516; lean_object* x_1517; -lean_dec(x_22); -lean_dec(x_16); -x_1516 = lean_ctor_get(x_50, 1); -lean_inc(x_1516); -lean_dec(x_50); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1517 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_1516); -if (lean_obj_tag(x_1517) == 0) -{ -lean_object* x_1518; -x_1518 = lean_ctor_get(x_1517, 0); -lean_inc(x_1518); -if (lean_obj_tag(x_1518) == 0) -{ -uint8_t x_1519; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_free_object(x_25); +lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; uint8_t x_1508; +lean_dec(x_1304); +lean_dec(x_1303); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1519 = !lean_is_exclusive(x_1517); -if (x_1519 == 0) +x_1505 = lean_ctor_get(x_1308, 0); +lean_inc(x_1505); +x_1506 = lean_ctor_get(x_1308, 1); +lean_inc(x_1506); +if (lean_is_exclusive(x_1308)) { + lean_ctor_release(x_1308, 0); + lean_ctor_release(x_1308, 1); + x_1507 = x_1308; +} else { + lean_dec_ref(x_1308); + x_1507 = lean_box(0); +} +x_1508 = l_Lean_Exception_isInterrupt(x_1505); +if (x_1508 == 0) { -lean_object* x_1520; lean_object* x_1521; -x_1520 = lean_ctor_get(x_1517, 0); -lean_dec(x_1520); -x_1521 = lean_box(0); -lean_ctor_set(x_1517, 0, x_1521); -return x_1517; +uint8_t x_1509; +x_1509 = l_Lean_Exception_isRuntime(x_1505); +if (x_1509 == 0) +{ +lean_object* x_1510; lean_object* x_1511; +lean_dec(x_1505); +x_1510 = lean_box(0); +if (lean_is_scalar(x_1507)) { + x_1511 = lean_alloc_ctor(0, 2, 0); +} else { + x_1511 = x_1507; + lean_ctor_set_tag(x_1511, 0); +} +lean_ctor_set(x_1511, 0, x_1510); +lean_ctor_set(x_1511, 1, x_1506); +return x_1511; } else { -lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; -x_1522 = lean_ctor_get(x_1517, 1); -lean_inc(x_1522); -lean_dec(x_1517); -x_1523 = lean_box(0); -x_1524 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1524, 0, x_1523); -lean_ctor_set(x_1524, 1, x_1522); -return x_1524; +lean_object* x_1512; +if (lean_is_scalar(x_1507)) { + x_1512 = lean_alloc_ctor(1, 2, 0); +} else { + x_1512 = x_1507; +} +lean_ctor_set(x_1512, 0, x_1505); +lean_ctor_set(x_1512, 1, x_1506); +return x_1512; } } else { -lean_object* x_1525; uint8_t x_1526; -x_1525 = lean_ctor_get(x_1517, 1); -lean_inc(x_1525); -lean_dec(x_1517); -x_1526 = !lean_is_exclusive(x_1518); -if (x_1526 == 0) -{ -lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; -x_1527 = lean_ctor_get(x_1518, 0); -lean_ctor_set(x_1518, 0, x_48); -lean_ctor_set(x_38, 0, x_49); -lean_ctor_set(x_25, 0, x_36); -x_1528 = lean_box(0); -x_1529 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1529, 0, x_1527); -x_1530 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1530, 0, x_1); -x_1531 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; -x_1532 = lean_array_push(x_1531, x_1518); -x_1533 = lean_array_push(x_1532, x_38); -x_1534 = lean_array_push(x_1533, x_25); -x_1535 = lean_array_push(x_1534, x_1528); -x_1536 = lean_array_push(x_1535, x_1529); -x_1537 = lean_array_push(x_1536, x_1530); -x_1538 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1539 = l_Lean_Meta_mkAppOptM(x_1538, x_1537, x_3, x_4, x_5, x_6, x_1525); -if (lean_obj_tag(x_1539) == 0) -{ -lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; -x_1540 = lean_ctor_get(x_1539, 0); -lean_inc(x_1540); -x_1541 = lean_ctor_get(x_1539, 1); -lean_inc(x_1541); -lean_dec(x_1539); -x_1542 = l_Lean_Meta_expandCoe(x_1540, x_3, x_4, x_5, x_6, x_1541); -if (lean_obj_tag(x_1542) == 0) -{ -uint8_t x_1543; -x_1543 = !lean_is_exclusive(x_1542); -if (x_1543 == 0) -{ -lean_object* x_1544; lean_object* x_1545; -x_1544 = lean_ctor_get(x_1542, 0); -x_1545 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1545, 0, x_1544); -lean_ctor_set(x_1542, 0, x_1545); -return x_1542; +lean_object* x_1513; +if (lean_is_scalar(x_1507)) { + x_1513 = lean_alloc_ctor(1, 2, 0); +} else { + x_1513 = x_1507; +} +lean_ctor_set(x_1513, 0, x_1505); +lean_ctor_set(x_1513, 1, x_1506); +return x_1513; } -else -{ -lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; -x_1546 = lean_ctor_get(x_1542, 0); -x_1547 = lean_ctor_get(x_1542, 1); -lean_inc(x_1547); -lean_inc(x_1546); -lean_dec(x_1542); -x_1548 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1548, 0, x_1546); -x_1549 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1549, 0, x_1548); -lean_ctor_set(x_1549, 1, x_1547); -return x_1549; } } else { -uint8_t x_1550; -x_1550 = !lean_is_exclusive(x_1542); -if (x_1550 == 0) +lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; uint8_t x_1517; +lean_dec(x_1304); +lean_dec(x_1303); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1514 = lean_ctor_get(x_1305, 0); +lean_inc(x_1514); +x_1515 = lean_ctor_get(x_1305, 1); +lean_inc(x_1515); +if (lean_is_exclusive(x_1305)) { + lean_ctor_release(x_1305, 0); + lean_ctor_release(x_1305, 1); + x_1516 = x_1305; +} else { + lean_dec_ref(x_1305); + x_1516 = lean_box(0); +} +x_1517 = l_Lean_Exception_isInterrupt(x_1514); +if (x_1517 == 0) { -lean_object* x_1551; uint8_t x_1552; -x_1551 = lean_ctor_get(x_1542, 0); -x_1552 = l_Lean_Exception_isRuntime(x_1551); -if (x_1552 == 0) +uint8_t x_1518; +x_1518 = l_Lean_Exception_isRuntime(x_1514); +if (x_1518 == 0) { -lean_dec(x_1551); -lean_ctor_set_tag(x_1542, 0); -lean_ctor_set(x_1542, 0, x_1528); -return x_1542; +lean_object* x_1519; lean_object* x_1520; +lean_dec(x_1514); +x_1519 = lean_box(0); +if (lean_is_scalar(x_1516)) { + x_1520 = lean_alloc_ctor(0, 2, 0); +} else { + x_1520 = x_1516; + lean_ctor_set_tag(x_1520, 0); +} +lean_ctor_set(x_1520, 0, x_1519); +lean_ctor_set(x_1520, 1, x_1515); +return x_1520; } else { +lean_object* x_1521; +if (lean_is_scalar(x_1516)) { + x_1521 = lean_alloc_ctor(1, 2, 0); +} else { + x_1521 = x_1516; +} +lean_ctor_set(x_1521, 0, x_1514); +lean_ctor_set(x_1521, 1, x_1515); +return x_1521; +} +} +else +{ +lean_object* x_1522; +if (lean_is_scalar(x_1516)) { + x_1522 = lean_alloc_ctor(1, 2, 0); +} else { + x_1522 = x_1516; +} +lean_ctor_set(x_1522, 0, x_1514); +lean_ctor_set(x_1522, 1, x_1515); +return x_1522; +} +} +} +else +{ +lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; +lean_dec(x_1301); +lean_dec(x_1300); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1523 = lean_ctor_get(x_1298, 1); +lean_inc(x_1523); +if (lean_is_exclusive(x_1298)) { + lean_ctor_release(x_1298, 0); + lean_ctor_release(x_1298, 1); + x_1524 = x_1298; +} else { + lean_dec_ref(x_1298); + x_1524 = lean_box(0); +} +x_1525 = lean_box(0); +if (lean_is_scalar(x_1524)) { + x_1526 = lean_alloc_ctor(0, 2, 0); +} else { + x_1526 = x_1524; +} +lean_ctor_set(x_1526, 0, x_1525); +lean_ctor_set(x_1526, 1, x_1523); +return x_1526; +} +} +else +{ +lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; +lean_dec(x_1300); +lean_dec(x_1299); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1527 = lean_ctor_get(x_1298, 1); +lean_inc(x_1527); +if (lean_is_exclusive(x_1298)) { + lean_ctor_release(x_1298, 0); + lean_ctor_release(x_1298, 1); + x_1528 = x_1298; +} else { + lean_dec_ref(x_1298); + x_1528 = lean_box(0); +} +x_1529 = lean_box(0); +if (lean_is_scalar(x_1528)) { + x_1530 = lean_alloc_ctor(0, 2, 0); +} else { + x_1530 = x_1528; +} +lean_ctor_set(x_1530, 0, x_1529); +lean_ctor_set(x_1530, 1, x_1527); +return x_1530; +} +} +else +{ +lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; +lean_dec(x_1299); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1531 = lean_ctor_get(x_1298, 1); +lean_inc(x_1531); +if (lean_is_exclusive(x_1298)) { + lean_ctor_release(x_1298, 0); + lean_ctor_release(x_1298, 1); + x_1532 = x_1298; +} else { + lean_dec_ref(x_1298); + x_1532 = lean_box(0); +} +x_1533 = lean_box(0); +if (lean_is_scalar(x_1532)) { + x_1534 = lean_alloc_ctor(0, 2, 0); +} else { + x_1534 = x_1532; +} +lean_ctor_set(x_1534, 0, x_1533); +lean_ctor_set(x_1534, 1, x_1531); +return x_1534; +} +} +else +{ +lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; uint8_t x_1538; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1535 = lean_ctor_get(x_1298, 0); +lean_inc(x_1535); +x_1536 = lean_ctor_get(x_1298, 1); +lean_inc(x_1536); +if (lean_is_exclusive(x_1298)) { + lean_ctor_release(x_1298, 0); + lean_ctor_release(x_1298, 1); + x_1537 = x_1298; +} else { + lean_dec_ref(x_1298); + x_1537 = lean_box(0); +} +x_1538 = l_Lean_Exception_isInterrupt(x_1535); +if (x_1538 == 0) +{ +uint8_t x_1539; +x_1539 = l_Lean_Exception_isRuntime(x_1535); +if (x_1539 == 0) +{ +lean_object* x_1540; lean_object* x_1541; +lean_dec(x_1535); +x_1540 = lean_box(0); +if (lean_is_scalar(x_1537)) { + x_1541 = lean_alloc_ctor(0, 2, 0); +} else { + x_1541 = x_1537; + lean_ctor_set_tag(x_1541, 0); +} +lean_ctor_set(x_1541, 0, x_1540); +lean_ctor_set(x_1541, 1, x_1536); +return x_1541; +} +else +{ +lean_object* x_1542; +if (lean_is_scalar(x_1537)) { + x_1542 = lean_alloc_ctor(1, 2, 0); +} else { + x_1542 = x_1537; +} +lean_ctor_set(x_1542, 0, x_1535); +lean_ctor_set(x_1542, 1, x_1536); return x_1542; } } else { -lean_object* x_1553; lean_object* x_1554; uint8_t x_1555; -x_1553 = lean_ctor_get(x_1542, 0); -x_1554 = lean_ctor_get(x_1542, 1); -lean_inc(x_1554); +lean_object* x_1543; +if (lean_is_scalar(x_1537)) { + x_1543 = lean_alloc_ctor(1, 2, 0); +} else { + x_1543 = x_1537; +} +lean_ctor_set(x_1543, 0, x_1535); +lean_ctor_set(x_1543, 1, x_1536); +return x_1543; +} +} +} +else +{ +lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; uint8_t x_1547; +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1544 = lean_ctor_get(x_1295, 0); +lean_inc(x_1544); +x_1545 = lean_ctor_get(x_1295, 1); +lean_inc(x_1545); +if (lean_is_exclusive(x_1295)) { + lean_ctor_release(x_1295, 0); + lean_ctor_release(x_1295, 1); + x_1546 = x_1295; +} else { + lean_dec_ref(x_1295); + x_1546 = lean_box(0); +} +x_1547 = l_Lean_Exception_isInterrupt(x_1544); +if (x_1547 == 0) +{ +uint8_t x_1548; +x_1548 = l_Lean_Exception_isRuntime(x_1544); +if (x_1548 == 0) +{ +lean_object* x_1549; lean_object* x_1550; +lean_dec(x_1544); +x_1549 = lean_box(0); +if (lean_is_scalar(x_1546)) { + x_1550 = lean_alloc_ctor(0, 2, 0); +} else { + x_1550 = x_1546; + lean_ctor_set_tag(x_1550, 0); +} +lean_ctor_set(x_1550, 0, x_1549); +lean_ctor_set(x_1550, 1, x_1545); +return x_1550; +} +else +{ +lean_object* x_1551; +if (lean_is_scalar(x_1546)) { + x_1551 = lean_alloc_ctor(1, 2, 0); +} else { + x_1551 = x_1546; +} +lean_ctor_set(x_1551, 0, x_1544); +lean_ctor_set(x_1551, 1, x_1545); +return x_1551; +} +} +else +{ +lean_object* x_1552; +if (lean_is_scalar(x_1546)) { + x_1552 = lean_alloc_ctor(1, 2, 0); +} else { + x_1552 = x_1546; +} +lean_ctor_set(x_1552, 0, x_1544); +lean_ctor_set(x_1552, 1, x_1545); +return x_1552; +} +} +} +} +} +else +{ +lean_object* x_1553; lean_object* x_1554; +lean_dec(x_38); +lean_dec(x_32); +x_1553 = lean_ctor_get(x_67, 1); lean_inc(x_1553); -lean_dec(x_1542); -x_1555 = l_Lean_Exception_isRuntime(x_1553); -if (x_1555 == 0) +lean_dec(x_67); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1554 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_1553); +if (lean_obj_tag(x_1554) == 0) { -lean_object* x_1556; -lean_dec(x_1553); -x_1556 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1556, 0, x_1528); -lean_ctor_set(x_1556, 1, x_1554); -return x_1556; -} -else +lean_object* x_1555; +x_1555 = lean_ctor_get(x_1554, 0); +lean_inc(x_1555); +if (lean_obj_tag(x_1555) == 0) { -lean_object* x_1557; -x_1557 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1557, 0, x_1553); -lean_ctor_set(x_1557, 1, x_1554); -return x_1557; -} -} -} -} -else -{ -uint8_t x_1558; +uint8_t x_1556; +lean_free_object(x_62); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_free_object(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1558 = !lean_is_exclusive(x_1539); -if (x_1558 == 0) +lean_dec(x_1); +x_1556 = !lean_is_exclusive(x_1554); +if (x_1556 == 0) { -lean_object* x_1559; uint8_t x_1560; -x_1559 = lean_ctor_get(x_1539, 0); -x_1560 = l_Lean_Exception_isRuntime(x_1559); -if (x_1560 == 0) -{ -lean_dec(x_1559); -lean_ctor_set_tag(x_1539, 0); -lean_ctor_set(x_1539, 0, x_1528); -return x_1539; +lean_object* x_1557; lean_object* x_1558; +x_1557 = lean_ctor_get(x_1554, 0); +lean_dec(x_1557); +x_1558 = lean_box(0); +lean_ctor_set(x_1554, 0, x_1558); +return x_1554; } else { -return x_1539; +lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; +x_1559 = lean_ctor_get(x_1554, 1); +lean_inc(x_1559); +lean_dec(x_1554); +x_1560 = lean_box(0); +x_1561 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1561, 0, x_1560); +lean_ctor_set(x_1561, 1, x_1559); +return x_1561; } } else { -lean_object* x_1561; lean_object* x_1562; uint8_t x_1563; -x_1561 = lean_ctor_get(x_1539, 0); -x_1562 = lean_ctor_get(x_1539, 1); +lean_object* x_1562; uint8_t x_1563; +x_1562 = lean_ctor_get(x_1554, 1); lean_inc(x_1562); -lean_inc(x_1561); -lean_dec(x_1539); -x_1563 = l_Lean_Exception_isRuntime(x_1561); +lean_dec(x_1554); +x_1563 = !lean_is_exclusive(x_1555); if (x_1563 == 0) { -lean_object* x_1564; -lean_dec(x_1561); -x_1564 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1564, 0, x_1528); -lean_ctor_set(x_1564, 1, x_1562); -return x_1564; -} -else -{ -lean_object* x_1565; -x_1565 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1565, 0, x_1561); -lean_ctor_set(x_1565, 1, x_1562); -return x_1565; -} -} -} -} -else -{ -lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; -x_1566 = lean_ctor_get(x_1518, 0); -lean_inc(x_1566); -lean_dec(x_1518); +lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; +x_1564 = lean_ctor_get(x_1555, 0); +lean_ctor_set(x_1555, 0, x_65); +lean_ctor_set(x_54, 0, x_66); +lean_ctor_set(x_41, 0, x_52); +x_1565 = lean_box(0); +x_1566 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1566, 0, x_1564); x_1567 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1567, 0, x_48); -lean_ctor_set(x_38, 0, x_49); -lean_ctor_set(x_25, 0, x_36); -x_1568 = lean_box(0); -x_1569 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1569, 0, x_1566); -x_1570 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1570, 0, x_1); -x_1571 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; -x_1572 = lean_array_push(x_1571, x_1567); -x_1573 = lean_array_push(x_1572, x_38); -x_1574 = lean_array_push(x_1573, x_25); -x_1575 = lean_array_push(x_1574, x_1568); -x_1576 = lean_array_push(x_1575, x_1569); -x_1577 = lean_array_push(x_1576, x_1570); -x_1578 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; +lean_ctor_set(x_1567, 0, x_1); +x_1568 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; +x_1569 = lean_array_push(x_1568, x_1555); +x_1570 = lean_array_push(x_1569, x_54); +x_1571 = lean_array_push(x_1570, x_41); +x_1572 = lean_array_push(x_1571, x_1565); +x_1573 = lean_array_push(x_1572, x_1566); +x_1574 = lean_array_push(x_1573, x_1567); +x_1575 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1579 = l_Lean_Meta_mkAppOptM(x_1578, x_1577, x_3, x_4, x_5, x_6, x_1525); +x_1576 = l_Lean_Meta_mkAppOptM(x_1575, x_1574, x_3, x_4, x_5, x_6, x_1562); +if (lean_obj_tag(x_1576) == 0) +{ +lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; +x_1577 = lean_ctor_get(x_1576, 0); +lean_inc(x_1577); +x_1578 = lean_ctor_get(x_1576, 1); +lean_inc(x_1578); +lean_dec(x_1576); +x_1579 = l_Lean_Meta_expandCoe(x_1577, x_3, x_4, x_5, x_6, x_1578); if (lean_obj_tag(x_1579) == 0) { lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; @@ -14218,278 +14230,199 @@ lean_inc(x_1580); x_1581 = lean_ctor_get(x_1579, 1); lean_inc(x_1581); lean_dec(x_1579); -x_1582 = l_Lean_Meta_expandCoe(x_1580, x_3, x_4, x_5, x_6, x_1581); -if (lean_obj_tag(x_1582) == 0) -{ -lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; -x_1583 = lean_ctor_get(x_1582, 0); -lean_inc(x_1583); -x_1584 = lean_ctor_get(x_1582, 1); -lean_inc(x_1584); -if (lean_is_exclusive(x_1582)) { - lean_ctor_release(x_1582, 0); - lean_ctor_release(x_1582, 1); - x_1585 = x_1582; -} else { - lean_dec_ref(x_1582); - x_1585 = lean_box(0); -} -x_1586 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1586, 0, x_1583); -if (lean_is_scalar(x_1585)) { - x_1587 = lean_alloc_ctor(0, 2, 0); -} else { - x_1587 = x_1585; -} -lean_ctor_set(x_1587, 0, x_1586); -lean_ctor_set(x_1587, 1, x_1584); -return x_1587; +x_1582 = lean_box(0); +lean_ctor_set(x_62, 1, x_1582); +lean_ctor_set(x_62, 0, x_1580); +x_17 = x_62; +x_18 = x_1581; +goto block_30; } else { -lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; uint8_t x_1591; -x_1588 = lean_ctor_get(x_1582, 0); -lean_inc(x_1588); -x_1589 = lean_ctor_get(x_1582, 1); -lean_inc(x_1589); -if (lean_is_exclusive(x_1582)) { - lean_ctor_release(x_1582, 0); - lean_ctor_release(x_1582, 1); - x_1590 = x_1582; -} else { - lean_dec_ref(x_1582); - x_1590 = lean_box(0); +uint8_t x_1583; +lean_free_object(x_62); +x_1583 = !lean_is_exclusive(x_1579); +if (x_1583 == 0) +{ +lean_object* x_1584; lean_object* x_1585; uint8_t x_1586; +x_1584 = lean_ctor_get(x_1579, 0); +x_1585 = lean_ctor_get(x_1579, 1); +x_1586 = l_Lean_Exception_isInterrupt(x_1584); +if (x_1586 == 0) +{ +uint8_t x_1587; +x_1587 = l_Lean_Exception_isRuntime(x_1584); +if (x_1587 == 0) +{ +lean_object* x_1588; +lean_free_object(x_1579); +lean_dec(x_1584); +x_1588 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1588; +x_18 = x_1585; +goto block_30; } -x_1591 = l_Lean_Exception_isRuntime(x_1588); +else +{ +return x_1579; +} +} +else +{ +return x_1579; +} +} +else +{ +lean_object* x_1589; lean_object* x_1590; uint8_t x_1591; +x_1589 = lean_ctor_get(x_1579, 0); +x_1590 = lean_ctor_get(x_1579, 1); +lean_inc(x_1590); +lean_inc(x_1589); +lean_dec(x_1579); +x_1591 = l_Lean_Exception_isInterrupt(x_1589); if (x_1591 == 0) { -lean_object* x_1592; -lean_dec(x_1588); -if (lean_is_scalar(x_1590)) { - x_1592 = lean_alloc_ctor(0, 2, 0); -} else { - x_1592 = x_1590; - lean_ctor_set_tag(x_1592, 0); -} -lean_ctor_set(x_1592, 0, x_1568); -lean_ctor_set(x_1592, 1, x_1589); -return x_1592; -} -else +uint8_t x_1592; +x_1592 = l_Lean_Exception_isRuntime(x_1589); +if (x_1592 == 0) { lean_object* x_1593; -if (lean_is_scalar(x_1590)) { - x_1593 = lean_alloc_ctor(1, 2, 0); -} else { - x_1593 = x_1590; +lean_dec(x_1589); +x_1593 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1593; +x_18 = x_1590; +goto block_30; +} +else +{ +lean_object* x_1594; +x_1594 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1594, 0, x_1589); +lean_ctor_set(x_1594, 1, x_1590); +return x_1594; +} +} +else +{ +lean_object* x_1595; +x_1595 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1595, 0, x_1589); +lean_ctor_set(x_1595, 1, x_1590); +return x_1595; } -lean_ctor_set(x_1593, 0, x_1588); -lean_ctor_set(x_1593, 1, x_1589); -return x_1593; } } } else { -lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; uint8_t x_1597; +uint8_t x_1596; +lean_free_object(x_62); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1594 = lean_ctor_get(x_1579, 0); -lean_inc(x_1594); -x_1595 = lean_ctor_get(x_1579, 1); -lean_inc(x_1595); -if (lean_is_exclusive(x_1579)) { - lean_ctor_release(x_1579, 0); - lean_ctor_release(x_1579, 1); - x_1596 = x_1579; -} else { - lean_dec_ref(x_1579); - x_1596 = lean_box(0); -} -x_1597 = l_Lean_Exception_isRuntime(x_1594); -if (x_1597 == 0) +x_1596 = !lean_is_exclusive(x_1576); +if (x_1596 == 0) { -lean_object* x_1598; -lean_dec(x_1594); -if (lean_is_scalar(x_1596)) { - x_1598 = lean_alloc_ctor(0, 2, 0); -} else { - x_1598 = x_1596; - lean_ctor_set_tag(x_1598, 0); -} -lean_ctor_set(x_1598, 0, x_1568); -lean_ctor_set(x_1598, 1, x_1595); -return x_1598; -} -else -{ -lean_object* x_1599; -if (lean_is_scalar(x_1596)) { - x_1599 = lean_alloc_ctor(1, 2, 0); -} else { - x_1599 = x_1596; -} -lean_ctor_set(x_1599, 0, x_1594); -lean_ctor_set(x_1599, 1, x_1595); -return x_1599; -} -} -} -} -} -else +lean_object* x_1597; lean_object* x_1598; uint8_t x_1599; +x_1597 = lean_ctor_get(x_1576, 0); +x_1598 = lean_ctor_get(x_1576, 1); +x_1599 = l_Lean_Exception_isInterrupt(x_1597); +if (x_1599 == 0) { uint8_t x_1600; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_free_object(x_25); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1600 = !lean_is_exclusive(x_1517); +x_1600 = l_Lean_Exception_isRuntime(x_1597); if (x_1600 == 0) { -return x_1517; +lean_object* x_1601; +lean_free_object(x_1576); +lean_dec(x_1597); +x_1601 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1601; +x_18 = x_1598; +goto block_30; } else { -lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; -x_1601 = lean_ctor_get(x_1517, 0); -x_1602 = lean_ctor_get(x_1517, 1); +return x_1576; +} +} +else +{ +return x_1576; +} +} +else +{ +lean_object* x_1602; lean_object* x_1603; uint8_t x_1604; +x_1602 = lean_ctor_get(x_1576, 0); +x_1603 = lean_ctor_get(x_1576, 1); +lean_inc(x_1603); lean_inc(x_1602); -lean_inc(x_1601); -lean_dec(x_1517); -x_1603 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1603, 0, x_1601); -lean_ctor_set(x_1603, 1, x_1602); -return x_1603; -} -} -} -} -else -{ -uint8_t x_1604; -lean_dec(x_49); -lean_dec(x_48); -lean_free_object(x_38); -lean_dec(x_36); -lean_dec(x_35); -lean_free_object(x_25); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1604 = !lean_is_exclusive(x_50); +lean_dec(x_1576); +x_1604 = l_Lean_Exception_isInterrupt(x_1602); if (x_1604 == 0) { -return x_50; +uint8_t x_1605; +x_1605 = l_Lean_Exception_isRuntime(x_1602); +if (x_1605 == 0) +{ +lean_object* x_1606; +lean_dec(x_1602); +x_1606 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1606; +x_18 = x_1603; +goto block_30; } else { -lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; -x_1605 = lean_ctor_get(x_50, 0); -x_1606 = lean_ctor_get(x_50, 1); -lean_inc(x_1606); -lean_inc(x_1605); -lean_dec(x_50); +lean_object* x_1607; x_1607 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1607, 0, x_1605); -lean_ctor_set(x_1607, 1, x_1606); +lean_ctor_set(x_1607, 0, x_1602); +lean_ctor_set(x_1607, 1, x_1603); return x_1607; } } +else +{ +lean_object* x_1608; +x_1608 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1608, 0, x_1602); +lean_ctor_set(x_1608, 1, x_1603); +return x_1608; +} +} +} } else { -lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; -x_1608 = lean_ctor_get(x_38, 0); -lean_inc(x_1608); -lean_dec(x_38); -x_1609 = lean_ctor_get(x_37, 1); +lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; +x_1609 = lean_ctor_get(x_1555, 0); lean_inc(x_1609); -lean_dec(x_37); -x_1610 = lean_ctor_get(x_1608, 0); -lean_inc(x_1610); -x_1611 = lean_ctor_get(x_1608, 1); -lean_inc(x_1611); -lean_dec(x_1608); +lean_dec(x_1555); +x_1610 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1610, 0, x_65); +lean_ctor_set(x_54, 0, x_66); +lean_ctor_set(x_41, 0, x_52); +x_1611 = lean_box(0); +x_1612 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1612, 0, x_1609); +x_1613 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1613, 0, x_1); +x_1614 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; +x_1615 = lean_array_push(x_1614, x_1610); +x_1616 = lean_array_push(x_1615, x_54); +x_1617 = lean_array_push(x_1616, x_41); +x_1618 = lean_array_push(x_1617, x_1611); +x_1619 = lean_array_push(x_1618, x_1612); +x_1620 = lean_array_push(x_1619, x_1613); +x_1621 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_35); -lean_inc(x_1610); -x_1612 = l_Lean_Meta_isExprDefEq(x_1610, x_35, x_3, x_4, x_5, x_6, x_1609); -if (lean_obj_tag(x_1612) == 0) -{ -lean_object* x_1613; uint8_t x_1614; -x_1613 = lean_ctor_get(x_1612, 0); -lean_inc(x_1613); -x_1614 = lean_unbox(x_1613); -lean_dec(x_1613); -if (x_1614 == 0) -{ -lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; uint8_t x_1619; -lean_free_object(x_25); -x_1615 = lean_ctor_get(x_1612, 1); -lean_inc(x_1615); -if (lean_is_exclusive(x_1612)) { - lean_ctor_release(x_1612, 0); - lean_ctor_release(x_1612, 1); - x_1616 = x_1612; -} else { - lean_dec_ref(x_1612); - x_1616 = lean_box(0); -} -x_1617 = lean_ctor_get(x_5, 2); -lean_inc(x_1617); -x_1618 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; -x_1619 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1617, x_1618); -lean_dec(x_1617); -if (x_1619 == 0) -{ -lean_object* x_1620; lean_object* x_1621; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1620 = lean_box(0); -if (lean_is_scalar(x_1616)) { - x_1621 = lean_alloc_ctor(0, 2, 0); -} else { - x_1621 = x_1616; -} -lean_ctor_set(x_1621, 0, x_1620); -lean_ctor_set(x_1621, 1, x_1615); -return x_1621; -} -else -{ -lean_object* x_1622; -lean_dec(x_1616); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1610); -x_1622 = lean_infer_type(x_1610, x_3, x_4, x_5, x_6, x_1615); +x_1622 = l_Lean_Meta_mkAppOptM(x_1621, x_1620, x_3, x_4, x_5, x_6, x_1562); if (lean_obj_tag(x_1622) == 0) { lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; @@ -14498,1798 +14431,1906 @@ lean_inc(x_1623); x_1624 = lean_ctor_get(x_1622, 1); lean_inc(x_1624); lean_dec(x_1622); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1625 = lean_whnf(x_1623, x_3, x_4, x_5, x_6, x_1624); +x_1625 = l_Lean_Meta_expandCoe(x_1623, x_3, x_4, x_5, x_6, x_1624); if (lean_obj_tag(x_1625) == 0) { -lean_object* x_1626; +lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; x_1626 = lean_ctor_get(x_1625, 0); lean_inc(x_1626); -if (lean_obj_tag(x_1626) == 7) -{ -lean_object* x_1627; -x_1627 = lean_ctor_get(x_1626, 1); +x_1627 = lean_ctor_get(x_1625, 1); lean_inc(x_1627); -if (lean_obj_tag(x_1627) == 3) -{ -lean_object* x_1628; -x_1628 = lean_ctor_get(x_1626, 2); -lean_inc(x_1628); -lean_dec(x_1626); -if (lean_obj_tag(x_1628) == 3) -{ -lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; -x_1629 = lean_ctor_get(x_1625, 1); -lean_inc(x_1629); lean_dec(x_1625); -x_1630 = lean_ctor_get(x_1627, 0); -lean_inc(x_1630); -lean_dec(x_1627); -x_1631 = lean_ctor_get(x_1628, 0); -lean_inc(x_1631); -lean_dec(x_1628); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_1632 = lean_infer_type(x_35, x_3, x_4, x_5, x_6, x_1629); -if (lean_obj_tag(x_1632) == 0) +x_1628 = lean_box(0); +lean_ctor_set(x_62, 1, x_1628); +lean_ctor_set(x_62, 0, x_1626); +x_17 = x_62; +x_18 = x_1627; +goto block_30; +} +else { -lean_object* x_1633; lean_object* x_1634; lean_object* x_1635; -x_1633 = lean_ctor_get(x_1632, 0); -lean_inc(x_1633); -x_1634 = lean_ctor_get(x_1632, 1); -lean_inc(x_1634); -lean_dec(x_1632); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1635 = lean_whnf(x_1633, x_3, x_4, x_5, x_6, x_1634); -if (lean_obj_tag(x_1635) == 0) +lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; uint8_t x_1632; +lean_free_object(x_62); +x_1629 = lean_ctor_get(x_1625, 0); +lean_inc(x_1629); +x_1630 = lean_ctor_get(x_1625, 1); +lean_inc(x_1630); +if (lean_is_exclusive(x_1625)) { + lean_ctor_release(x_1625, 0); + lean_ctor_release(x_1625, 1); + x_1631 = x_1625; +} else { + lean_dec_ref(x_1625); + x_1631 = lean_box(0); +} +x_1632 = l_Lean_Exception_isInterrupt(x_1629); +if (x_1632 == 0) +{ +uint8_t x_1633; +x_1633 = l_Lean_Exception_isRuntime(x_1629); +if (x_1633 == 0) +{ +lean_object* x_1634; +lean_dec(x_1631); +lean_dec(x_1629); +x_1634 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1634; +x_18 = x_1630; +goto block_30; +} +else +{ +lean_object* x_1635; +if (lean_is_scalar(x_1631)) { + x_1635 = lean_alloc_ctor(1, 2, 0); +} else { + x_1635 = x_1631; +} +lean_ctor_set(x_1635, 0, x_1629); +lean_ctor_set(x_1635, 1, x_1630); +return x_1635; +} +} +else { lean_object* x_1636; -x_1636 = lean_ctor_get(x_1635, 0); -lean_inc(x_1636); -if (lean_obj_tag(x_1636) == 7) -{ -lean_object* x_1637; -x_1637 = lean_ctor_get(x_1636, 1); -lean_inc(x_1637); -if (lean_obj_tag(x_1637) == 3) -{ -lean_object* x_1638; -x_1638 = lean_ctor_get(x_1636, 2); -lean_inc(x_1638); -lean_dec(x_1636); -if (lean_obj_tag(x_1638) == 3) -{ -lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; -x_1639 = lean_ctor_get(x_1635, 1); -lean_inc(x_1639); -lean_dec(x_1635); -x_1640 = lean_ctor_get(x_1637, 0); -lean_inc(x_1640); -lean_dec(x_1637); -x_1641 = lean_ctor_get(x_1638, 0); -lean_inc(x_1641); -lean_dec(x_1638); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1642 = l_Lean_Meta_decLevel(x_1630, x_3, x_4, x_5, x_6, x_1639); -if (lean_obj_tag(x_1642) == 0) -{ -lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; -x_1643 = lean_ctor_get(x_1642, 0); -lean_inc(x_1643); -x_1644 = lean_ctor_get(x_1642, 1); -lean_inc(x_1644); -lean_dec(x_1642); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1645 = l_Lean_Meta_decLevel(x_1640, x_3, x_4, x_5, x_6, x_1644); -if (lean_obj_tag(x_1645) == 0) -{ -lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; uint8_t x_1649; lean_object* x_1650; -x_1646 = lean_ctor_get(x_1645, 0); -lean_inc(x_1646); -x_1647 = lean_ctor_get(x_1645, 1); -lean_inc(x_1647); -if (lean_is_exclusive(x_1645)) { - lean_ctor_release(x_1645, 0); - lean_ctor_release(x_1645, 1); - x_1648 = x_1645; +if (lean_is_scalar(x_1631)) { + x_1636 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_1645); - x_1648 = lean_box(0); + x_1636 = x_1631; } -x_1649 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1643); -x_1650 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_1643, x_1646, x_1649, x_3, x_4, x_5, x_6, x_1647); -if (lean_obj_tag(x_1650) == 0) +lean_ctor_set(x_1636, 0, x_1629); +lean_ctor_set(x_1636, 1, x_1630); +return x_1636; +} +} +} +else { -lean_object* x_1651; uint8_t x_1652; -x_1651 = lean_ctor_get(x_1650, 0); -lean_inc(x_1651); -x_1652 = lean_unbox(x_1651); -lean_dec(x_1651); -if (x_1652 == 0) +lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; uint8_t x_1640; +lean_free_object(x_62); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1637 = lean_ctor_get(x_1622, 0); +lean_inc(x_1637); +x_1638 = lean_ctor_get(x_1622, 1); +lean_inc(x_1638); +if (lean_is_exclusive(x_1622)) { + lean_ctor_release(x_1622, 0); + lean_ctor_release(x_1622, 1); + x_1639 = x_1622; +} else { + lean_dec_ref(x_1622); + x_1639 = lean_box(0); +} +x_1640 = l_Lean_Exception_isInterrupt(x_1637); +if (x_1640 == 0) { -lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; -lean_dec(x_1648); -lean_dec(x_1643); -lean_dec(x_1641); -lean_dec(x_1631); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +uint8_t x_1641; +x_1641 = l_Lean_Exception_isRuntime(x_1637); +if (x_1641 == 0) +{ +lean_object* x_1642; +lean_dec(x_1639); +lean_dec(x_1637); +x_1642 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1642; +x_18 = x_1638; +goto block_30; +} +else +{ +lean_object* x_1643; +if (lean_is_scalar(x_1639)) { + x_1643 = lean_alloc_ctor(1, 2, 0); +} else { + x_1643 = x_1639; +} +lean_ctor_set(x_1643, 0, x_1637); +lean_ctor_set(x_1643, 1, x_1638); +return x_1643; +} +} +else +{ +lean_object* x_1644; +if (lean_is_scalar(x_1639)) { + x_1644 = lean_alloc_ctor(1, 2, 0); +} else { + x_1644 = x_1639; +} +lean_ctor_set(x_1644, 0, x_1637); +lean_ctor_set(x_1644, 1, x_1638); +return x_1644; +} +} +} +} +} +else +{ +uint8_t x_1645; +lean_free_object(x_62); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_free_object(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1653 = lean_ctor_get(x_1650, 1); -lean_inc(x_1653); -if (lean_is_exclusive(x_1650)) { - lean_ctor_release(x_1650, 0); - lean_ctor_release(x_1650, 1); - x_1654 = x_1650; -} else { - lean_dec_ref(x_1650); - x_1654 = lean_box(0); -} -x_1655 = lean_box(0); -if (lean_is_scalar(x_1654)) { - x_1656 = lean_alloc_ctor(0, 2, 0); -} else { - x_1656 = x_1654; -} -lean_ctor_set(x_1656, 0, x_1655); -lean_ctor_set(x_1656, 1, x_1653); -return x_1656; +x_1645 = !lean_is_exclusive(x_1554); +if (x_1645 == 0) +{ +return x_1554; } else { -lean_object* x_1657; lean_object* x_1658; -x_1657 = lean_ctor_get(x_1650, 1); -lean_inc(x_1657); -lean_dec(x_1650); +lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; +x_1646 = lean_ctor_get(x_1554, 0); +x_1647 = lean_ctor_get(x_1554, 1); +lean_inc(x_1647); +lean_inc(x_1646); +lean_dec(x_1554); +x_1648 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1648, 0, x_1646); +lean_ctor_set(x_1648, 1, x_1647); +return x_1648; +} +} +} +} +else +{ +uint8_t x_1649; +lean_free_object(x_62); +lean_dec(x_66); +lean_dec(x_65); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_free_object(x_41); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1649 = !lean_is_exclusive(x_67); +if (x_1649 == 0) +{ +return x_67; +} +else +{ +lean_object* x_1650; lean_object* x_1651; lean_object* x_1652; +x_1650 = lean_ctor_get(x_67, 0); +x_1651 = lean_ctor_get(x_67, 1); +lean_inc(x_1651); +lean_inc(x_1650); +lean_dec(x_67); +x_1652 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1652, 0, x_1650); +lean_ctor_set(x_1652, 1, x_1651); +return x_1652; +} +} +} +else +{ +lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; +x_1653 = lean_ctor_get(x_62, 0); +x_1654 = lean_ctor_get(x_62, 1); +lean_inc(x_1654); +lean_inc(x_1653); +lean_dec(x_62); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1658 = l_Lean_Meta_decLevel(x_1631, x_3, x_4, x_5, x_6, x_1657); -if (lean_obj_tag(x_1658) == 0) +lean_inc(x_51); +lean_inc(x_1653); +x_1655 = l_Lean_Meta_isExprDefEq(x_1653, x_51, x_3, x_4, x_5, x_6, x_63); +if (lean_obj_tag(x_1655) == 0) { -lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; -x_1659 = lean_ctor_get(x_1658, 0); -lean_inc(x_1659); -x_1660 = lean_ctor_get(x_1658, 1); +lean_object* x_1656; uint8_t x_1657; +x_1656 = lean_ctor_get(x_1655, 0); +lean_inc(x_1656); +x_1657 = lean_unbox(x_1656); +lean_dec(x_1656); +if (x_1657 == 0) +{ +lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; uint8_t x_1662; +lean_free_object(x_41); +x_1658 = lean_ctor_get(x_1655, 1); +lean_inc(x_1658); +if (lean_is_exclusive(x_1655)) { + lean_ctor_release(x_1655, 0); + lean_ctor_release(x_1655, 1); + x_1659 = x_1655; +} else { + lean_dec_ref(x_1655); + x_1659 = lean_box(0); +} +x_1660 = lean_ctor_get(x_5, 2); lean_inc(x_1660); -if (lean_is_exclusive(x_1658)) { - lean_ctor_release(x_1658, 0); - lean_ctor_release(x_1658, 1); - x_1661 = x_1658; +x_1661 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; +x_1662 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1660, x_1661); +lean_dec(x_1660); +if (x_1662 == 0) +{ +lean_object* x_1663; lean_object* x_1664; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1663 = lean_box(0); +if (lean_is_scalar(x_1659)) { + x_1664 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1658); - x_1661 = lean_box(0); + x_1664 = x_1659; } +lean_ctor_set(x_1664, 0, x_1663); +lean_ctor_set(x_1664, 1, x_1658); +return x_1664; +} +else +{ +lean_object* x_1665; +lean_dec(x_1659); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1662 = l_Lean_Meta_decLevel(x_1641, x_3, x_4, x_5, x_6, x_1660); -if (lean_obj_tag(x_1662) == 0) +lean_inc(x_1653); +x_1665 = lean_infer_type(x_1653, x_3, x_4, x_5, x_6, x_1658); +if (lean_obj_tag(x_1665) == 0) { -lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; -x_1663 = lean_ctor_get(x_1662, 0); -lean_inc(x_1663); -x_1664 = lean_ctor_get(x_1662, 1); -lean_inc(x_1664); -if (lean_is_exclusive(x_1662)) { - lean_ctor_release(x_1662, 0); - lean_ctor_release(x_1662, 1); - x_1665 = x_1662; -} else { - lean_dec_ref(x_1662); - x_1665 = lean_box(0); -} -x_1666 = lean_box(0); -if (lean_is_scalar(x_1665)) { - x_1667 = lean_alloc_ctor(1, 2, 0); -} else { - x_1667 = x_1665; - lean_ctor_set_tag(x_1667, 1); -} -lean_ctor_set(x_1667, 0, x_1663); -lean_ctor_set(x_1667, 1, x_1666); -if (lean_is_scalar(x_1661)) { - x_1668 = lean_alloc_ctor(1, 2, 0); -} else { - x_1668 = x_1661; - lean_ctor_set_tag(x_1668, 1); -} -lean_ctor_set(x_1668, 0, x_1659); -lean_ctor_set(x_1668, 1, x_1667); -if (lean_is_scalar(x_1648)) { - x_1669 = lean_alloc_ctor(1, 2, 0); -} else { - x_1669 = x_1648; - lean_ctor_set_tag(x_1669, 1); -} -lean_ctor_set(x_1669, 0, x_1643); -lean_ctor_set(x_1669, 1, x_1668); -x_1670 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_1671 = l_Lean_Expr_const___override(x_1670, x_1669); -x_1672 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_1610); -x_1673 = lean_array_push(x_1672, x_1610); -lean_inc(x_35); -x_1674 = lean_array_push(x_1673, x_35); -x_1675 = l_Lean_mkAppN(x_1671, x_1674); -x_1676 = lean_box(0); +lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; +x_1666 = lean_ctor_get(x_1665, 0); +lean_inc(x_1666); +x_1667 = lean_ctor_get(x_1665, 1); +lean_inc(x_1667); +lean_dec(x_1665); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1677 = l_Lean_Meta_trySynthInstance(x_1675, x_1676, x_3, x_4, x_5, x_6, x_1664); -if (lean_obj_tag(x_1677) == 0) +x_1668 = lean_whnf(x_1666, x_3, x_4, x_5, x_6, x_1667); +if (lean_obj_tag(x_1668) == 0) { -lean_object* x_1678; -x_1678 = lean_ctor_get(x_1677, 0); -lean_inc(x_1678); -if (lean_obj_tag(x_1678) == 1) +lean_object* x_1669; +x_1669 = lean_ctor_get(x_1668, 0); +lean_inc(x_1669); +if (lean_obj_tag(x_1669) == 7) { -lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; -x_1679 = lean_ctor_get(x_1677, 1); +lean_object* x_1670; +x_1670 = lean_ctor_get(x_1669, 1); +lean_inc(x_1670); +if (lean_obj_tag(x_1670) == 3) +{ +lean_object* x_1671; +x_1671 = lean_ctor_get(x_1669, 2); +lean_inc(x_1671); +lean_dec(x_1669); +if (lean_obj_tag(x_1671) == 3) +{ +lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; +x_1672 = lean_ctor_get(x_1668, 1); +lean_inc(x_1672); +lean_dec(x_1668); +x_1673 = lean_ctor_get(x_1670, 0); +lean_inc(x_1673); +lean_dec(x_1670); +x_1674 = lean_ctor_get(x_1671, 0); +lean_inc(x_1674); +lean_dec(x_1671); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_1675 = lean_infer_type(x_51, x_3, x_4, x_5, x_6, x_1672); +if (lean_obj_tag(x_1675) == 0) +{ +lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; +x_1676 = lean_ctor_get(x_1675, 0); +lean_inc(x_1676); +x_1677 = lean_ctor_get(x_1675, 1); +lean_inc(x_1677); +lean_dec(x_1675); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1678 = lean_whnf(x_1676, x_3, x_4, x_5, x_6, x_1677); +if (lean_obj_tag(x_1678) == 0) +{ +lean_object* x_1679; +x_1679 = lean_ctor_get(x_1678, 0); lean_inc(x_1679); -lean_dec(x_1677); -x_1680 = lean_ctor_get(x_1678, 0); +if (lean_obj_tag(x_1679) == 7) +{ +lean_object* x_1680; +x_1680 = lean_ctor_get(x_1679, 1); lean_inc(x_1680); -lean_dec(x_1678); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1611); -x_1681 = l_Lean_Meta_getDecLevel(x_1611, x_3, x_4, x_5, x_6, x_1679); -if (lean_obj_tag(x_1681) == 0) +if (lean_obj_tag(x_1680) == 3) +{ +lean_object* x_1681; +x_1681 = lean_ctor_get(x_1679, 2); +lean_inc(x_1681); +lean_dec(x_1679); +if (lean_obj_tag(x_1681) == 3) { lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; -x_1682 = lean_ctor_get(x_1681, 0); +x_1682 = lean_ctor_get(x_1678, 1); lean_inc(x_1682); -x_1683 = lean_ctor_get(x_1681, 1); +lean_dec(x_1678); +x_1683 = lean_ctor_get(x_1680, 0); lean_inc(x_1683); -if (lean_is_exclusive(x_1681)) { - lean_ctor_release(x_1681, 0); - lean_ctor_release(x_1681, 1); - x_1684 = x_1681; -} else { - lean_dec_ref(x_1681); - x_1684 = lean_box(0); -} +lean_dec(x_1680); +x_1684 = lean_ctor_get(x_1681, 0); +lean_inc(x_1684); +lean_dec(x_1681); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1685 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_1683); +x_1685 = l_Lean_Meta_decLevel(x_1673, x_3, x_4, x_5, x_6, x_1682); if (lean_obj_tag(x_1685) == 0) { -lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; +lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; x_1686 = lean_ctor_get(x_1685, 0); lean_inc(x_1686); x_1687 = lean_ctor_get(x_1685, 1); lean_inc(x_1687); -if (lean_is_exclusive(x_1685)) { - lean_ctor_release(x_1685, 0); - lean_ctor_release(x_1685, 1); - x_1688 = x_1685; -} else { - lean_dec_ref(x_1685); - x_1688 = lean_box(0); -} +lean_dec(x_1685); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_16); -x_1689 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_1687); -if (lean_obj_tag(x_1689) == 0) +x_1688 = l_Lean_Meta_decLevel(x_1683, x_3, x_4, x_5, x_6, x_1687); +if (lean_obj_tag(x_1688) == 0) { -lean_object* x_1690; lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; -x_1690 = lean_ctor_get(x_1689, 0); +lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; uint8_t x_1692; lean_object* x_1693; +x_1689 = lean_ctor_get(x_1688, 0); +lean_inc(x_1689); +x_1690 = lean_ctor_get(x_1688, 1); lean_inc(x_1690); -x_1691 = lean_ctor_get(x_1689, 1); -lean_inc(x_1691); -if (lean_is_exclusive(x_1689)) { - lean_ctor_release(x_1689, 0); - lean_ctor_release(x_1689, 1); - x_1692 = x_1689; +if (lean_is_exclusive(x_1688)) { + lean_ctor_release(x_1688, 0); + lean_ctor_release(x_1688, 1); + x_1691 = x_1688; } else { - lean_dec_ref(x_1689); - x_1692 = lean_box(0); + lean_dec_ref(x_1688); + x_1691 = lean_box(0); } -if (lean_is_scalar(x_1692)) { - x_1693 = lean_alloc_ctor(1, 2, 0); -} else { - x_1693 = x_1692; - lean_ctor_set_tag(x_1693, 1); -} -lean_ctor_set(x_1693, 0, x_1690); -lean_ctor_set(x_1693, 1, x_1666); -if (lean_is_scalar(x_1688)) { - x_1694 = lean_alloc_ctor(1, 2, 0); -} else { - x_1694 = x_1688; - lean_ctor_set_tag(x_1694, 1); -} -lean_ctor_set(x_1694, 0, x_1686); -lean_ctor_set(x_1694, 1, x_1693); -if (lean_is_scalar(x_1684)) { - x_1695 = lean_alloc_ctor(1, 2, 0); -} else { - x_1695 = x_1684; - lean_ctor_set_tag(x_1695, 1); -} -lean_ctor_set(x_1695, 0, x_1682); -lean_ctor_set(x_1695, 1, x_1694); -x_1696 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_1695); -x_1697 = l_Lean_Expr_const___override(x_1696, x_1695); -x_1698 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_1610); -x_1699 = lean_array_push(x_1698, x_1610); -lean_inc(x_35); -x_1700 = lean_array_push(x_1699, x_35); -lean_inc(x_1680); -x_1701 = lean_array_push(x_1700, x_1680); -lean_inc(x_1611); -x_1702 = lean_array_push(x_1701, x_1611); -lean_inc(x_1); -x_1703 = lean_array_push(x_1702, x_1); -x_1704 = l_Lean_mkAppN(x_1697, x_1703); +x_1692 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1704); -x_1705 = lean_infer_type(x_1704, x_3, x_4, x_5, x_6, x_1691); +lean_inc(x_1686); +x_1693 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_1686, x_1689, x_1692, x_3, x_4, x_5, x_6, x_1690); +if (lean_obj_tag(x_1693) == 0) +{ +lean_object* x_1694; uint8_t x_1695; +x_1694 = lean_ctor_get(x_1693, 0); +lean_inc(x_1694); +x_1695 = lean_unbox(x_1694); +lean_dec(x_1694); +if (x_1695 == 0) +{ +lean_object* x_1696; lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; +lean_dec(x_1691); +lean_dec(x_1686); +lean_dec(x_1684); +lean_dec(x_1674); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1696 = lean_ctor_get(x_1693, 1); +lean_inc(x_1696); +if (lean_is_exclusive(x_1693)) { + lean_ctor_release(x_1693, 0); + lean_ctor_release(x_1693, 1); + x_1697 = x_1693; +} else { + lean_dec_ref(x_1693); + x_1697 = lean_box(0); +} +x_1698 = lean_box(0); +if (lean_is_scalar(x_1697)) { + x_1699 = lean_alloc_ctor(0, 2, 0); +} else { + x_1699 = x_1697; +} +lean_ctor_set(x_1699, 0, x_1698); +lean_ctor_set(x_1699, 1, x_1696); +return x_1699; +} +else +{ +lean_object* x_1700; lean_object* x_1701; +x_1700 = lean_ctor_get(x_1693, 1); +lean_inc(x_1700); +lean_dec(x_1693); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1701 = l_Lean_Meta_decLevel(x_1674, x_3, x_4, x_5, x_6, x_1700); +if (lean_obj_tag(x_1701) == 0) +{ +lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; +x_1702 = lean_ctor_get(x_1701, 0); +lean_inc(x_1702); +x_1703 = lean_ctor_get(x_1701, 1); +lean_inc(x_1703); +if (lean_is_exclusive(x_1701)) { + lean_ctor_release(x_1701, 0); + lean_ctor_release(x_1701, 1); + x_1704 = x_1701; +} else { + lean_dec_ref(x_1701); + x_1704 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1705 = l_Lean_Meta_decLevel(x_1684, x_3, x_4, x_5, x_6, x_1703); if (lean_obj_tag(x_1705) == 0) { -lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; +lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; x_1706 = lean_ctor_get(x_1705, 0); lean_inc(x_1706); x_1707 = lean_ctor_get(x_1705, 1); lean_inc(x_1707); -lean_dec(x_1705); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_1708 = l_Lean_Meta_isExprDefEq(x_16, x_1706, x_3, x_4, x_5, x_6, x_1707); -if (lean_obj_tag(x_1708) == 0) -{ -lean_object* x_1709; uint8_t x_1710; -x_1709 = lean_ctor_get(x_1708, 0); -lean_inc(x_1709); -x_1710 = lean_unbox(x_1709); -lean_dec(x_1709); -if (x_1710 == 0) -{ -lean_object* x_1711; lean_object* x_1712; -lean_dec(x_1704); -x_1711 = lean_ctor_get(x_1708, 1); -lean_inc(x_1711); -lean_dec(x_1708); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_35); -x_1712 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_1711); -if (lean_obj_tag(x_1712) == 0) -{ -lean_object* x_1713; -x_1713 = lean_ctor_get(x_1712, 0); -lean_inc(x_1713); -if (lean_obj_tag(x_1713) == 0) -{ -lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1714 = lean_ctor_get(x_1712, 1); -lean_inc(x_1714); -if (lean_is_exclusive(x_1712)) { - lean_ctor_release(x_1712, 0); - lean_ctor_release(x_1712, 1); - x_1715 = x_1712; +if (lean_is_exclusive(x_1705)) { + lean_ctor_release(x_1705, 0); + lean_ctor_release(x_1705, 1); + x_1708 = x_1705; } else { - lean_dec_ref(x_1712); - x_1715 = lean_box(0); + lean_dec_ref(x_1705); + x_1708 = lean_box(0); } -if (lean_is_scalar(x_1715)) { - x_1716 = lean_alloc_ctor(0, 2, 0); +x_1709 = lean_box(0); +if (lean_is_scalar(x_1708)) { + x_1710 = lean_alloc_ctor(1, 2, 0); } else { - x_1716 = x_1715; + x_1710 = x_1708; + lean_ctor_set_tag(x_1710, 1); } -lean_ctor_set(x_1716, 0, x_1676); -lean_ctor_set(x_1716, 1, x_1714); -return x_1716; +lean_ctor_set(x_1710, 0, x_1706); +lean_ctor_set(x_1710, 1, x_1709); +if (lean_is_scalar(x_1704)) { + x_1711 = lean_alloc_ctor(1, 2, 0); +} else { + x_1711 = x_1704; + lean_ctor_set_tag(x_1711, 1); } -else -{ -lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; -x_1717 = lean_ctor_get(x_1712, 1); -lean_inc(x_1717); -lean_dec(x_1712); -x_1718 = lean_ctor_get(x_1713, 0); -lean_inc(x_1718); -lean_dec(x_1713); +lean_ctor_set(x_1711, 0, x_1702); +lean_ctor_set(x_1711, 1, x_1710); +if (lean_is_scalar(x_1691)) { + x_1712 = lean_alloc_ctor(1, 2, 0); +} else { + x_1712 = x_1691; + lean_ctor_set_tag(x_1712, 1); +} +lean_ctor_set(x_1712, 0, x_1686); +lean_ctor_set(x_1712, 1, x_1711); +x_1713 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_1714 = l_Lean_Expr_const___override(x_1713, x_1712); +x_1715 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_1653); +x_1716 = lean_array_push(x_1715, x_1653); +lean_inc(x_51); +x_1717 = lean_array_push(x_1716, x_51); +x_1718 = l_Lean_mkAppN(x_1714, x_1717); +x_1719 = lean_box(0); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1611); -x_1719 = l_Lean_Meta_getLevel(x_1611, x_3, x_4, x_5, x_6, x_1717); -if (lean_obj_tag(x_1719) == 0) +x_1720 = l_Lean_Meta_trySynthInstance(x_1718, x_1719, x_3, x_4, x_5, x_6, x_1707); +if (lean_obj_tag(x_1720) == 0) { -lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; -x_1720 = lean_ctor_get(x_1719, 0); -lean_inc(x_1720); -x_1721 = lean_ctor_get(x_1719, 1); +lean_object* x_1721; +x_1721 = lean_ctor_get(x_1720, 0); lean_inc(x_1721); -if (lean_is_exclusive(x_1719)) { - lean_ctor_release(x_1719, 0); - lean_ctor_release(x_1719, 1); - x_1722 = x_1719; -} else { - lean_dec_ref(x_1719); - x_1722 = lean_box(0); -} +if (lean_obj_tag(x_1721) == 1) +{ +lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; +x_1722 = lean_ctor_get(x_1720, 1); +lean_inc(x_1722); +lean_dec(x_1720); +x_1723 = lean_ctor_get(x_1721, 0); +lean_inc(x_1723); +lean_dec(x_1721); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_36); -x_1723 = l_Lean_Meta_getLevel(x_36, x_3, x_4, x_5, x_6, x_1721); -if (lean_obj_tag(x_1723) == 0) +lean_inc(x_1654); +x_1724 = l_Lean_Meta_getDecLevel(x_1654, x_3, x_4, x_5, x_6, x_1722); +if (lean_obj_tag(x_1724) == 0) { -lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; uint8_t x_1738; lean_object* x_1739; lean_object* x_1740; -x_1724 = lean_ctor_get(x_1723, 0); -lean_inc(x_1724); -x_1725 = lean_ctor_get(x_1723, 1); +lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; +x_1725 = lean_ctor_get(x_1724, 0); lean_inc(x_1725); -if (lean_is_exclusive(x_1723)) { - lean_ctor_release(x_1723, 0); - lean_ctor_release(x_1723, 1); - x_1726 = x_1723; +x_1726 = lean_ctor_get(x_1724, 1); +lean_inc(x_1726); +if (lean_is_exclusive(x_1724)) { + lean_ctor_release(x_1724, 0); + lean_ctor_release(x_1724, 1); + x_1727 = x_1724; } else { - lean_dec_ref(x_1723); - x_1726 = lean_box(0); + lean_dec_ref(x_1724); + x_1727 = lean_box(0); } -if (lean_is_scalar(x_1726)) { - x_1727 = lean_alloc_ctor(1, 2, 0); -} else { - x_1727 = x_1726; - lean_ctor_set_tag(x_1727, 1); -} -lean_ctor_set(x_1727, 0, x_1724); -lean_ctor_set(x_1727, 1, x_1666); -if (lean_is_scalar(x_1722)) { - x_1728 = lean_alloc_ctor(1, 2, 0); -} else { - x_1728 = x_1722; - lean_ctor_set_tag(x_1728, 1); -} -lean_ctor_set(x_1728, 0, x_1720); -lean_ctor_set(x_1728, 1, x_1727); -x_1729 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_1730 = l_Lean_Expr_const___override(x_1729, x_1728); -x_1731 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_1611); -x_1732 = lean_array_push(x_1731, x_1611); -x_1733 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_1734 = lean_array_push(x_1732, x_1733); -lean_inc(x_36); -x_1735 = lean_array_push(x_1734, x_36); -x_1736 = l_Lean_mkAppN(x_1730, x_1735); -x_1737 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_1738 = 0; -lean_inc(x_1611); -x_1739 = l_Lean_Expr_forallE___override(x_1737, x_1611, x_1736, x_1738); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1740 = l_Lean_Meta_trySynthInstance(x_1739, x_1676, x_3, x_4, x_5, x_6, x_1725); -if (lean_obj_tag(x_1740) == 0) +x_1728 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_1726); +if (lean_obj_tag(x_1728) == 0) { -lean_object* x_1741; -x_1741 = lean_ctor_get(x_1740, 0); -lean_inc(x_1741); -if (lean_obj_tag(x_1741) == 1) -{ -lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; -x_1742 = lean_ctor_get(x_1740, 1); -lean_inc(x_1742); -lean_dec(x_1740); -x_1743 = lean_ctor_get(x_1741, 0); -lean_inc(x_1743); -lean_dec(x_1741); -x_1744 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_1745 = l_Lean_Expr_const___override(x_1744, x_1695); -x_1746 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_1747 = lean_array_push(x_1746, x_1610); -x_1748 = lean_array_push(x_1747, x_35); -x_1749 = lean_array_push(x_1748, x_1611); -x_1750 = lean_array_push(x_1749, x_36); -x_1751 = lean_array_push(x_1750, x_1680); -x_1752 = lean_array_push(x_1751, x_1743); -x_1753 = lean_array_push(x_1752, x_1718); -x_1754 = lean_array_push(x_1753, x_1); -x_1755 = l_Lean_mkAppN(x_1745, x_1754); +lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; +x_1729 = lean_ctor_get(x_1728, 0); +lean_inc(x_1729); +x_1730 = lean_ctor_get(x_1728, 1); +lean_inc(x_1730); +if (lean_is_exclusive(x_1728)) { + lean_ctor_release(x_1728, 0); + lean_ctor_release(x_1728, 1); + x_1731 = x_1728; +} else { + lean_dec_ref(x_1728); + x_1731 = lean_box(0); +} lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1756 = l_Lean_Meta_expandCoe(x_1755, x_3, x_4, x_5, x_6, x_1742); +lean_inc(x_32); +x_1732 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_1730); +if (lean_obj_tag(x_1732) == 0) +{ +lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; +x_1733 = lean_ctor_get(x_1732, 0); +lean_inc(x_1733); +x_1734 = lean_ctor_get(x_1732, 1); +lean_inc(x_1734); +if (lean_is_exclusive(x_1732)) { + lean_ctor_release(x_1732, 0); + lean_ctor_release(x_1732, 1); + x_1735 = x_1732; +} else { + lean_dec_ref(x_1732); + x_1735 = lean_box(0); +} +if (lean_is_scalar(x_1735)) { + x_1736 = lean_alloc_ctor(1, 2, 0); +} else { + x_1736 = x_1735; + lean_ctor_set_tag(x_1736, 1); +} +lean_ctor_set(x_1736, 0, x_1733); +lean_ctor_set(x_1736, 1, x_1709); +if (lean_is_scalar(x_1731)) { + x_1737 = lean_alloc_ctor(1, 2, 0); +} else { + x_1737 = x_1731; + lean_ctor_set_tag(x_1737, 1); +} +lean_ctor_set(x_1737, 0, x_1729); +lean_ctor_set(x_1737, 1, x_1736); +if (lean_is_scalar(x_1727)) { + x_1738 = lean_alloc_ctor(1, 2, 0); +} else { + x_1738 = x_1727; + lean_ctor_set_tag(x_1738, 1); +} +lean_ctor_set(x_1738, 0, x_1725); +lean_ctor_set(x_1738, 1, x_1737); +x_1739 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_1738); +x_1740 = l_Lean_Expr_const___override(x_1739, x_1738); +x_1741 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_1653); +x_1742 = lean_array_push(x_1741, x_1653); +lean_inc(x_51); +x_1743 = lean_array_push(x_1742, x_51); +lean_inc(x_1723); +x_1744 = lean_array_push(x_1743, x_1723); +lean_inc(x_1654); +x_1745 = lean_array_push(x_1744, x_1654); +lean_inc(x_1); +x_1746 = lean_array_push(x_1745, x_1); +x_1747 = l_Lean_mkAppN(x_1740, x_1746); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1747); +x_1748 = lean_infer_type(x_1747, x_3, x_4, x_5, x_6, x_1734); +if (lean_obj_tag(x_1748) == 0) +{ +lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; +x_1749 = lean_ctor_get(x_1748, 0); +lean_inc(x_1749); +x_1750 = lean_ctor_get(x_1748, 1); +lean_inc(x_1750); +lean_dec(x_1748); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_1751 = l_Lean_Meta_isExprDefEq(x_32, x_1749, x_3, x_4, x_5, x_6, x_1750); +if (lean_obj_tag(x_1751) == 0) +{ +lean_object* x_1752; uint8_t x_1753; +x_1752 = lean_ctor_get(x_1751, 0); +lean_inc(x_1752); +x_1753 = lean_unbox(x_1752); +lean_dec(x_1752); +if (x_1753 == 0) +{ +lean_object* x_1754; lean_object* x_1755; +lean_dec(x_1747); +lean_free_object(x_54); +x_1754 = lean_ctor_get(x_1751, 1); +lean_inc(x_1754); +lean_dec(x_1751); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_1755 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_1754); +if (lean_obj_tag(x_1755) == 0) +{ +lean_object* x_1756; +x_1756 = lean_ctor_get(x_1755, 0); +lean_inc(x_1756); if (lean_obj_tag(x_1756) == 0) { lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; -x_1757 = lean_ctor_get(x_1756, 0); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1757 = lean_ctor_get(x_1755, 1); lean_inc(x_1757); -x_1758 = lean_ctor_get(x_1756, 1); -lean_inc(x_1758); +if (lean_is_exclusive(x_1755)) { + lean_ctor_release(x_1755, 0); + lean_ctor_release(x_1755, 1); + x_1758 = x_1755; +} else { + lean_dec_ref(x_1755); + x_1758 = lean_box(0); +} +if (lean_is_scalar(x_1758)) { + x_1759 = lean_alloc_ctor(0, 2, 0); +} else { + x_1759 = x_1758; +} +lean_ctor_set(x_1759, 0, x_1719); +lean_ctor_set(x_1759, 1, x_1757); +return x_1759; +} +else +{ +lean_object* x_1760; lean_object* x_1761; lean_object* x_1762; +x_1760 = lean_ctor_get(x_1755, 1); +lean_inc(x_1760); +lean_dec(x_1755); +x_1761 = lean_ctor_get(x_1756, 0); +lean_inc(x_1761); lean_dec(x_1756); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1757); -x_1759 = lean_infer_type(x_1757, x_3, x_4, x_5, x_6, x_1758); -if (lean_obj_tag(x_1759) == 0) -{ -lean_object* x_1760; lean_object* x_1761; lean_object* x_1762; -x_1760 = lean_ctor_get(x_1759, 0); -lean_inc(x_1760); -x_1761 = lean_ctor_get(x_1759, 1); -lean_inc(x_1761); -lean_dec(x_1759); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1762 = l_Lean_Meta_isExprDefEq(x_16, x_1760, x_3, x_4, x_5, x_6, x_1761); +lean_inc(x_1654); +x_1762 = l_Lean_Meta_getLevel(x_1654, x_3, x_4, x_5, x_6, x_1760); if (lean_obj_tag(x_1762) == 0) { -lean_object* x_1763; uint8_t x_1764; +lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; x_1763 = lean_ctor_get(x_1762, 0); lean_inc(x_1763); -x_1764 = lean_unbox(x_1763); -lean_dec(x_1763); -if (x_1764 == 0) -{ -lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; -lean_dec(x_1757); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1765 = lean_ctor_get(x_1762, 1); -lean_inc(x_1765); +x_1764 = lean_ctor_get(x_1762, 1); +lean_inc(x_1764); if (lean_is_exclusive(x_1762)) { lean_ctor_release(x_1762, 0); lean_ctor_release(x_1762, 1); - x_1766 = x_1762; + x_1765 = x_1762; } else { lean_dec_ref(x_1762); - x_1766 = lean_box(0); + x_1765 = lean_box(0); } -if (lean_is_scalar(x_1766)) { - x_1767 = lean_alloc_ctor(0, 2, 0); -} else { - x_1767 = x_1766; -} -lean_ctor_set(x_1767, 0, x_1676); -lean_ctor_set(x_1767, 1, x_1765); -return x_1767; -} -else +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_1766 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_1764); +if (lean_obj_tag(x_1766) == 0) { -lean_object* x_1768; lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; -x_1768 = lean_ctor_get(x_1762, 1); +lean_object* x_1767; lean_object* x_1768; lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; uint8_t x_1781; lean_object* x_1782; lean_object* x_1783; +x_1767 = lean_ctor_get(x_1766, 0); +lean_inc(x_1767); +x_1768 = lean_ctor_get(x_1766, 1); lean_inc(x_1768); -lean_dec(x_1762); -x_1769 = lean_box(0); -x_1770 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1757, x_1769, x_3, x_4, x_5, x_6, x_1768); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1771 = lean_ctor_get(x_1770, 0); -lean_inc(x_1771); -x_1772 = lean_ctor_get(x_1770, 1); -lean_inc(x_1772); -if (lean_is_exclusive(x_1770)) { - lean_ctor_release(x_1770, 0); - lean_ctor_release(x_1770, 1); - x_1773 = x_1770; +if (lean_is_exclusive(x_1766)) { + lean_ctor_release(x_1766, 0); + lean_ctor_release(x_1766, 1); + x_1769 = x_1766; } else { - lean_dec_ref(x_1770); - x_1773 = lean_box(0); + lean_dec_ref(x_1766); + x_1769 = lean_box(0); } -if (lean_is_scalar(x_1773)) { - x_1774 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1769)) { + x_1770 = lean_alloc_ctor(1, 2, 0); } else { - x_1774 = x_1773; + x_1770 = x_1769; + lean_ctor_set_tag(x_1770, 1); } -lean_ctor_set(x_1774, 0, x_1771); -lean_ctor_set(x_1774, 1, x_1772); -return x_1774; -} -} -else -{ -lean_object* x_1775; lean_object* x_1776; -lean_dec(x_1757); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1775 = lean_ctor_get(x_1762, 0); -lean_inc(x_1775); -x_1776 = lean_ctor_get(x_1762, 1); -lean_inc(x_1776); -lean_dec(x_1762); -x_8 = x_1775; -x_9 = x_1776; -goto block_14; -} -} -else -{ -lean_object* x_1777; lean_object* x_1778; -lean_dec(x_1757); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1777 = lean_ctor_get(x_1759, 0); -lean_inc(x_1777); -x_1778 = lean_ctor_get(x_1759, 1); -lean_inc(x_1778); -lean_dec(x_1759); -x_8 = x_1777; -x_9 = x_1778; -goto block_14; -} -} -else -{ -lean_object* x_1779; lean_object* x_1780; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1779 = lean_ctor_get(x_1756, 0); -lean_inc(x_1779); -x_1780 = lean_ctor_get(x_1756, 1); -lean_inc(x_1780); -lean_dec(x_1756); -x_8 = x_1779; -x_9 = x_1780; -goto block_14; -} -} -else -{ -lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; -lean_dec(x_1741); -lean_dec(x_1718); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1781 = lean_ctor_get(x_1740, 1); -lean_inc(x_1781); -if (lean_is_exclusive(x_1740)) { - lean_ctor_release(x_1740, 0); - lean_ctor_release(x_1740, 1); - x_1782 = x_1740; +lean_ctor_set(x_1770, 0, x_1767); +lean_ctor_set(x_1770, 1, x_1709); +if (lean_is_scalar(x_1765)) { + x_1771 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_1740); - x_1782 = lean_box(0); + x_1771 = x_1765; + lean_ctor_set_tag(x_1771, 1); } -if (lean_is_scalar(x_1782)) { - x_1783 = lean_alloc_ctor(0, 2, 0); -} else { - x_1783 = x_1782; -} -lean_ctor_set(x_1783, 0, x_1676); -lean_ctor_set(x_1783, 1, x_1781); -return x_1783; -} -} -else +lean_ctor_set(x_1771, 0, x_1763); +lean_ctor_set(x_1771, 1, x_1770); +x_1772 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_1773 = l_Lean_Expr_const___override(x_1772, x_1771); +x_1774 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_1654); +x_1775 = lean_array_push(x_1774, x_1654); +x_1776 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_1777 = lean_array_push(x_1775, x_1776); +lean_inc(x_52); +x_1778 = lean_array_push(x_1777, x_52); +x_1779 = l_Lean_mkAppN(x_1773, x_1778); +x_1780 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_1781 = 0; +lean_inc(x_1654); +x_1782 = l_Lean_Expr_forallE___override(x_1780, x_1654, x_1779, x_1781); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1783 = l_Lean_Meta_trySynthInstance(x_1782, x_1719, x_3, x_4, x_5, x_6, x_1768); +if (lean_obj_tag(x_1783) == 0) { -lean_object* x_1784; lean_object* x_1785; -lean_dec(x_1718); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1784 = lean_ctor_get(x_1740, 0); +lean_object* x_1784; +x_1784 = lean_ctor_get(x_1783, 0); lean_inc(x_1784); -x_1785 = lean_ctor_get(x_1740, 1); +if (lean_obj_tag(x_1784) == 1) +{ +lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; +x_1785 = lean_ctor_get(x_1783, 1); lean_inc(x_1785); -lean_dec(x_1740); -x_8 = x_1784; -x_9 = x_1785; -goto block_14; -} -} -else -{ -lean_object* x_1786; lean_object* x_1787; -lean_dec(x_1722); -lean_dec(x_1720); -lean_dec(x_1718); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1786 = lean_ctor_get(x_1723, 0); +lean_dec(x_1783); +x_1786 = lean_ctor_get(x_1784, 0); lean_inc(x_1786); -x_1787 = lean_ctor_get(x_1723, 1); -lean_inc(x_1787); -lean_dec(x_1723); -x_8 = x_1786; -x_9 = x_1787; -goto block_14; -} -} -else +lean_dec(x_1784); +x_1787 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_1788 = l_Lean_Expr_const___override(x_1787, x_1738); +x_1789 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_1790 = lean_array_push(x_1789, x_1653); +x_1791 = lean_array_push(x_1790, x_51); +x_1792 = lean_array_push(x_1791, x_1654); +x_1793 = lean_array_push(x_1792, x_52); +x_1794 = lean_array_push(x_1793, x_1723); +x_1795 = lean_array_push(x_1794, x_1786); +x_1796 = lean_array_push(x_1795, x_1761); +x_1797 = lean_array_push(x_1796, x_1); +x_1798 = l_Lean_mkAppN(x_1788, x_1797); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1799 = l_Lean_Meta_expandCoe(x_1798, x_3, x_4, x_5, x_6, x_1785); +if (lean_obj_tag(x_1799) == 0) { -lean_object* x_1788; lean_object* x_1789; -lean_dec(x_1718); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1788 = lean_ctor_get(x_1719, 0); -lean_inc(x_1788); -x_1789 = lean_ctor_get(x_1719, 1); -lean_inc(x_1789); -lean_dec(x_1719); -x_8 = x_1788; -x_9 = x_1789; -goto block_14; -} -} -} -else -{ -lean_object* x_1790; lean_object* x_1791; -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1790 = lean_ctor_get(x_1712, 0); -lean_inc(x_1790); -x_1791 = lean_ctor_get(x_1712, 1); -lean_inc(x_1791); -lean_dec(x_1712); -x_8 = x_1790; -x_9 = x_1791; -goto block_14; -} -} -else -{ -lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1792 = lean_ctor_get(x_1708, 1); -lean_inc(x_1792); -if (lean_is_exclusive(x_1708)) { - lean_ctor_release(x_1708, 0); - lean_ctor_release(x_1708, 1); - x_1793 = x_1708; -} else { - lean_dec_ref(x_1708); - x_1793 = lean_box(0); -} -x_1794 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1794, 0, x_1704); -if (lean_is_scalar(x_1793)) { - x_1795 = lean_alloc_ctor(0, 2, 0); -} else { - x_1795 = x_1793; -} -lean_ctor_set(x_1795, 0, x_1794); -lean_ctor_set(x_1795, 1, x_1792); -return x_1795; -} -} -else -{ -lean_object* x_1796; lean_object* x_1797; -lean_dec(x_1704); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1796 = lean_ctor_get(x_1708, 0); -lean_inc(x_1796); -x_1797 = lean_ctor_get(x_1708, 1); -lean_inc(x_1797); -lean_dec(x_1708); -x_8 = x_1796; -x_9 = x_1797; -goto block_14; -} -} -else -{ -lean_object* x_1798; lean_object* x_1799; -lean_dec(x_1704); -lean_dec(x_1695); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1798 = lean_ctor_get(x_1705, 0); -lean_inc(x_1798); -x_1799 = lean_ctor_get(x_1705, 1); -lean_inc(x_1799); -lean_dec(x_1705); -x_8 = x_1798; -x_9 = x_1799; -goto block_14; -} -} -else -{ -lean_object* x_1800; lean_object* x_1801; -lean_dec(x_1688); -lean_dec(x_1686); -lean_dec(x_1684); -lean_dec(x_1682); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1800 = lean_ctor_get(x_1689, 0); +lean_object* x_1800; lean_object* x_1801; lean_object* x_1802; +x_1800 = lean_ctor_get(x_1799, 0); lean_inc(x_1800); -x_1801 = lean_ctor_get(x_1689, 1); +x_1801 = lean_ctor_get(x_1799, 1); lean_inc(x_1801); -lean_dec(x_1689); -x_8 = x_1800; -x_9 = x_1801; -goto block_14; -} -} -else +lean_dec(x_1799); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1800); +x_1802 = lean_infer_type(x_1800, x_3, x_4, x_5, x_6, x_1801); +if (lean_obj_tag(x_1802) == 0) { -lean_object* x_1802; lean_object* x_1803; -lean_dec(x_1684); -lean_dec(x_1682); -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1802 = lean_ctor_get(x_1685, 0); -lean_inc(x_1802); -x_1803 = lean_ctor_get(x_1685, 1); +lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; +x_1803 = lean_ctor_get(x_1802, 0); lean_inc(x_1803); -lean_dec(x_1685); -x_8 = x_1802; -x_9 = x_1803; -goto block_14; -} -} -else -{ -lean_object* x_1804; lean_object* x_1805; -lean_dec(x_1680); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1804 = lean_ctor_get(x_1681, 0); +x_1804 = lean_ctor_get(x_1802, 1); lean_inc(x_1804); -x_1805 = lean_ctor_get(x_1681, 1); -lean_inc(x_1805); -lean_dec(x_1681); -x_8 = x_1804; -x_9 = x_1805; -goto block_14; -} -} -else +lean_dec(x_1802); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1805 = l_Lean_Meta_isExprDefEq(x_32, x_1803, x_3, x_4, x_5, x_6, x_1804); +if (lean_obj_tag(x_1805) == 0) { -lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; -lean_dec(x_1678); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1806 = lean_ctor_get(x_1677, 1); +lean_object* x_1806; uint8_t x_1807; +x_1806 = lean_ctor_get(x_1805, 0); lean_inc(x_1806); -if (lean_is_exclusive(x_1677)) { - lean_ctor_release(x_1677, 0); - lean_ctor_release(x_1677, 1); - x_1807 = x_1677; -} else { - lean_dec_ref(x_1677); - x_1807 = lean_box(0); -} -if (lean_is_scalar(x_1807)) { - x_1808 = lean_alloc_ctor(0, 2, 0); -} else { - x_1808 = x_1807; -} -lean_ctor_set(x_1808, 0, x_1676); -lean_ctor_set(x_1808, 1, x_1806); -return x_1808; -} -} -else +x_1807 = lean_unbox(x_1806); +lean_dec(x_1806); +if (x_1807 == 0) { -lean_object* x_1809; lean_object* x_1810; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1808; lean_object* x_1809; lean_object* x_1810; +lean_dec(x_1800); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1809 = lean_ctor_get(x_1677, 0); -lean_inc(x_1809); -x_1810 = lean_ctor_get(x_1677, 1); -lean_inc(x_1810); -lean_dec(x_1677); -x_8 = x_1809; -x_9 = x_1810; -goto block_14; +x_1808 = lean_ctor_get(x_1805, 1); +lean_inc(x_1808); +if (lean_is_exclusive(x_1805)) { + lean_ctor_release(x_1805, 0); + lean_ctor_release(x_1805, 1); + x_1809 = x_1805; +} else { + lean_dec_ref(x_1805); + x_1809 = lean_box(0); } +if (lean_is_scalar(x_1809)) { + x_1810 = lean_alloc_ctor(0, 2, 0); +} else { + x_1810 = x_1809; +} +lean_ctor_set(x_1810, 0, x_1719); +lean_ctor_set(x_1810, 1, x_1808); +return x_1810; } else { -lean_object* x_1811; lean_object* x_1812; -lean_dec(x_1661); -lean_dec(x_1659); -lean_dec(x_1648); -lean_dec(x_1643); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1811 = lean_ctor_get(x_1662, 0); +lean_object* x_1811; lean_object* x_1812; lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; lean_object* x_1817; +x_1811 = lean_ctor_get(x_1805, 1); lean_inc(x_1811); -x_1812 = lean_ctor_get(x_1662, 1); -lean_inc(x_1812); -lean_dec(x_1662); -x_8 = x_1811; -x_9 = x_1812; -goto block_14; -} -} -else -{ -lean_object* x_1813; lean_object* x_1814; -lean_dec(x_1648); -lean_dec(x_1643); -lean_dec(x_1641); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1805); +x_1812 = lean_box(0); +x_1813 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_1800, x_1812, x_3, x_4, x_5, x_6, x_1811); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1813 = lean_ctor_get(x_1658, 0); -lean_inc(x_1813); -x_1814 = lean_ctor_get(x_1658, 1); +x_1814 = lean_ctor_get(x_1813, 0); lean_inc(x_1814); -lean_dec(x_1658); -x_8 = x_1813; -x_9 = x_1814; -goto block_14; -} -} -} -else -{ -lean_object* x_1815; lean_object* x_1816; -lean_dec(x_1648); -lean_dec(x_1643); -lean_dec(x_1641); -lean_dec(x_1631); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1815 = lean_ctor_get(x_1650, 0); +x_1815 = lean_ctor_get(x_1813, 1); lean_inc(x_1815); -x_1816 = lean_ctor_get(x_1650, 1); -lean_inc(x_1816); -lean_dec(x_1650); -x_8 = x_1815; -x_9 = x_1816; -goto block_14; +if (lean_is_exclusive(x_1813)) { + lean_ctor_release(x_1813, 0); + lean_ctor_release(x_1813, 1); + x_1816 = x_1813; +} else { + lean_dec_ref(x_1813); + x_1816 = lean_box(0); +} +if (lean_is_scalar(x_1816)) { + x_1817 = lean_alloc_ctor(0, 2, 0); +} else { + x_1817 = x_1816; +} +lean_ctor_set(x_1817, 0, x_1814); +lean_ctor_set(x_1817, 1, x_1815); +return x_1817; } } else { -lean_object* x_1817; lean_object* x_1818; -lean_dec(x_1643); -lean_dec(x_1641); -lean_dec(x_1631); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1818; lean_object* x_1819; +lean_dec(x_1800); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_1817 = lean_ctor_get(x_1645, 0); -lean_inc(x_1817); -x_1818 = lean_ctor_get(x_1645, 1); +x_1818 = lean_ctor_get(x_1805, 0); lean_inc(x_1818); -lean_dec(x_1645); -x_8 = x_1817; -x_9 = x_1818; -goto block_14; -} -} -else -{ -lean_object* x_1819; lean_object* x_1820; -lean_dec(x_1641); -lean_dec(x_1640); -lean_dec(x_1631); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1819 = lean_ctor_get(x_1642, 0); +x_1819 = lean_ctor_get(x_1805, 1); lean_inc(x_1819); -x_1820 = lean_ctor_get(x_1642, 1); +lean_dec(x_1805); +x_8 = x_1818; +x_9 = x_1819; +goto block_16; +} +} +else +{ +lean_object* x_1820; lean_object* x_1821; +lean_dec(x_1800); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1820 = lean_ctor_get(x_1802, 0); lean_inc(x_1820); -lean_dec(x_1642); -x_8 = x_1819; -x_9 = x_1820; -goto block_14; -} -} -else -{ -lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; -lean_dec(x_1638); -lean_dec(x_1637); -lean_dec(x_1631); -lean_dec(x_1630); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1821 = lean_ctor_get(x_1635, 1); +x_1821 = lean_ctor_get(x_1802, 1); lean_inc(x_1821); -if (lean_is_exclusive(x_1635)) { - lean_ctor_release(x_1635, 0); - lean_ctor_release(x_1635, 1); - x_1822 = x_1635; -} else { - lean_dec_ref(x_1635); - x_1822 = lean_box(0); -} -x_1823 = lean_box(0); -if (lean_is_scalar(x_1822)) { - x_1824 = lean_alloc_ctor(0, 2, 0); -} else { - x_1824 = x_1822; -} -lean_ctor_set(x_1824, 0, x_1823); -lean_ctor_set(x_1824, 1, x_1821); -return x_1824; +lean_dec(x_1802); +x_8 = x_1820; +x_9 = x_1821; +goto block_16; } } else { -lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; -lean_dec(x_1637); -lean_dec(x_1636); -lean_dec(x_1631); -lean_dec(x_1630); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1822; lean_object* x_1823; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1822 = lean_ctor_get(x_1799, 0); +lean_inc(x_1822); +x_1823 = lean_ctor_get(x_1799, 1); +lean_inc(x_1823); +lean_dec(x_1799); +x_8 = x_1822; +x_9 = x_1823; +goto block_16; +} +} +else +{ +lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; +lean_dec(x_1784); +lean_dec(x_1761); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1825 = lean_ctor_get(x_1635, 1); -lean_inc(x_1825); -if (lean_is_exclusive(x_1635)) { - lean_ctor_release(x_1635, 0); - lean_ctor_release(x_1635, 1); - x_1826 = x_1635; +x_1824 = lean_ctor_get(x_1783, 1); +lean_inc(x_1824); +if (lean_is_exclusive(x_1783)) { + lean_ctor_release(x_1783, 0); + lean_ctor_release(x_1783, 1); + x_1825 = x_1783; } else { - lean_dec_ref(x_1635); - x_1826 = lean_box(0); + lean_dec_ref(x_1783); + x_1825 = lean_box(0); } -x_1827 = lean_box(0); -if (lean_is_scalar(x_1826)) { - x_1828 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1825)) { + x_1826 = lean_alloc_ctor(0, 2, 0); } else { - x_1828 = x_1826; + x_1826 = x_1825; } -lean_ctor_set(x_1828, 0, x_1827); -lean_ctor_set(x_1828, 1, x_1825); -return x_1828; +lean_ctor_set(x_1826, 0, x_1719); +lean_ctor_set(x_1826, 1, x_1824); +return x_1826; } } else { -lean_object* x_1829; lean_object* x_1830; lean_object* x_1831; lean_object* x_1832; -lean_dec(x_1636); -lean_dec(x_1631); -lean_dec(x_1630); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1827; lean_object* x_1828; +lean_dec(x_1761); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1829 = lean_ctor_get(x_1635, 1); +x_1827 = lean_ctor_get(x_1783, 0); +lean_inc(x_1827); +x_1828 = lean_ctor_get(x_1783, 1); +lean_inc(x_1828); +lean_dec(x_1783); +x_8 = x_1827; +x_9 = x_1828; +goto block_16; +} +} +else +{ +lean_object* x_1829; lean_object* x_1830; +lean_dec(x_1765); +lean_dec(x_1763); +lean_dec(x_1761); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1829 = lean_ctor_get(x_1766, 0); lean_inc(x_1829); -if (lean_is_exclusive(x_1635)) { - lean_ctor_release(x_1635, 0); - lean_ctor_release(x_1635, 1); - x_1830 = x_1635; -} else { - lean_dec_ref(x_1635); - x_1830 = lean_box(0); -} -x_1831 = lean_box(0); -if (lean_is_scalar(x_1830)) { - x_1832 = lean_alloc_ctor(0, 2, 0); -} else { - x_1832 = x_1830; -} -lean_ctor_set(x_1832, 0, x_1831); -lean_ctor_set(x_1832, 1, x_1829); -return x_1832; +x_1830 = lean_ctor_get(x_1766, 1); +lean_inc(x_1830); +lean_dec(x_1766); +x_8 = x_1829; +x_9 = x_1830; +goto block_16; } } else { -lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; uint8_t x_1836; -lean_dec(x_1631); -lean_dec(x_1630); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1831; lean_object* x_1832; +lean_dec(x_1761); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1833 = lean_ctor_get(x_1635, 0); +x_1831 = lean_ctor_get(x_1762, 0); +lean_inc(x_1831); +x_1832 = lean_ctor_get(x_1762, 1); +lean_inc(x_1832); +lean_dec(x_1762); +x_8 = x_1831; +x_9 = x_1832; +goto block_16; +} +} +} +else +{ +lean_object* x_1833; lean_object* x_1834; +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1833 = lean_ctor_get(x_1755, 0); lean_inc(x_1833); -x_1834 = lean_ctor_get(x_1635, 1); +x_1834 = lean_ctor_get(x_1755, 1); lean_inc(x_1834); -if (lean_is_exclusive(x_1635)) { - lean_ctor_release(x_1635, 0); - lean_ctor_release(x_1635, 1); - x_1835 = x_1635; -} else { - lean_dec_ref(x_1635); - x_1835 = lean_box(0); -} -x_1836 = l_Lean_Exception_isRuntime(x_1833); -if (x_1836 == 0) -{ -lean_object* x_1837; lean_object* x_1838; -lean_dec(x_1833); -x_1837 = lean_box(0); -if (lean_is_scalar(x_1835)) { - x_1838 = lean_alloc_ctor(0, 2, 0); -} else { - x_1838 = x_1835; - lean_ctor_set_tag(x_1838, 0); -} -lean_ctor_set(x_1838, 0, x_1837); -lean_ctor_set(x_1838, 1, x_1834); -return x_1838; -} -else -{ -lean_object* x_1839; -if (lean_is_scalar(x_1835)) { - x_1839 = lean_alloc_ctor(1, 2, 0); -} else { - x_1839 = x_1835; -} -lean_ctor_set(x_1839, 0, x_1833); -lean_ctor_set(x_1839, 1, x_1834); -return x_1839; -} +lean_dec(x_1755); +x_8 = x_1833; +x_9 = x_1834; +goto block_16; } } else { -lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; uint8_t x_1843; -lean_dec(x_1631); -lean_dec(x_1630); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1840 = lean_ctor_get(x_1632, 0); -lean_inc(x_1840); -x_1841 = lean_ctor_get(x_1632, 1); -lean_inc(x_1841); -if (lean_is_exclusive(x_1632)) { - lean_ctor_release(x_1632, 0); - lean_ctor_release(x_1632, 1); - x_1842 = x_1632; +x_1835 = lean_ctor_get(x_1751, 1); +lean_inc(x_1835); +if (lean_is_exclusive(x_1751)) { + lean_ctor_release(x_1751, 0); + lean_ctor_release(x_1751, 1); + x_1836 = x_1751; } else { - lean_dec_ref(x_1632); - x_1842 = lean_box(0); + lean_dec_ref(x_1751); + x_1836 = lean_box(0); } -x_1843 = l_Lean_Exception_isRuntime(x_1840); -if (x_1843 == 0) +lean_ctor_set(x_54, 0, x_1747); +if (lean_is_scalar(x_1836)) { + x_1837 = lean_alloc_ctor(0, 2, 0); +} else { + x_1837 = x_1836; +} +lean_ctor_set(x_1837, 0, x_54); +lean_ctor_set(x_1837, 1, x_1835); +return x_1837; +} +} +else +{ +lean_object* x_1838; lean_object* x_1839; +lean_dec(x_1747); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1838 = lean_ctor_get(x_1751, 0); +lean_inc(x_1838); +x_1839 = lean_ctor_get(x_1751, 1); +lean_inc(x_1839); +lean_dec(x_1751); +x_8 = x_1838; +x_9 = x_1839; +goto block_16; +} +} +else +{ +lean_object* x_1840; lean_object* x_1841; +lean_dec(x_1747); +lean_dec(x_1738); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1840 = lean_ctor_get(x_1748, 0); +lean_inc(x_1840); +x_1841 = lean_ctor_get(x_1748, 1); +lean_inc(x_1841); +lean_dec(x_1748); +x_8 = x_1840; +x_9 = x_1841; +goto block_16; +} +} +else +{ +lean_object* x_1842; lean_object* x_1843; +lean_dec(x_1731); +lean_dec(x_1729); +lean_dec(x_1727); +lean_dec(x_1725); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1842 = lean_ctor_get(x_1732, 0); +lean_inc(x_1842); +x_1843 = lean_ctor_get(x_1732, 1); +lean_inc(x_1843); +lean_dec(x_1732); +x_8 = x_1842; +x_9 = x_1843; +goto block_16; +} +} +else { lean_object* x_1844; lean_object* x_1845; -lean_dec(x_1840); -x_1844 = lean_box(0); -if (lean_is_scalar(x_1842)) { - x_1845 = lean_alloc_ctor(0, 2, 0); -} else { - x_1845 = x_1842; - lean_ctor_set_tag(x_1845, 0); -} -lean_ctor_set(x_1845, 0, x_1844); -lean_ctor_set(x_1845, 1, x_1841); -return x_1845; -} -else -{ -lean_object* x_1846; -if (lean_is_scalar(x_1842)) { - x_1846 = lean_alloc_ctor(1, 2, 0); -} else { - x_1846 = x_1842; -} -lean_ctor_set(x_1846, 0, x_1840); -lean_ctor_set(x_1846, 1, x_1841); -return x_1846; -} -} -} -else -{ -lean_object* x_1847; lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; -lean_dec(x_1628); -lean_dec(x_1627); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1727); +lean_dec(x_1725); +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1847 = lean_ctor_get(x_1625, 1); -lean_inc(x_1847); -if (lean_is_exclusive(x_1625)) { - lean_ctor_release(x_1625, 0); - lean_ctor_release(x_1625, 1); - x_1848 = x_1625; -} else { - lean_dec_ref(x_1625); - x_1848 = lean_box(0); +x_1844 = lean_ctor_get(x_1728, 0); +lean_inc(x_1844); +x_1845 = lean_ctor_get(x_1728, 1); +lean_inc(x_1845); +lean_dec(x_1728); +x_8 = x_1844; +x_9 = x_1845; +goto block_16; } -x_1849 = lean_box(0); -if (lean_is_scalar(x_1848)) { +} +else +{ +lean_object* x_1846; lean_object* x_1847; +lean_dec(x_1723); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1846 = lean_ctor_get(x_1724, 0); +lean_inc(x_1846); +x_1847 = lean_ctor_get(x_1724, 1); +lean_inc(x_1847); +lean_dec(x_1724); +x_8 = x_1846; +x_9 = x_1847; +goto block_16; +} +} +else +{ +lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; +lean_dec(x_1721); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1848 = lean_ctor_get(x_1720, 1); +lean_inc(x_1848); +if (lean_is_exclusive(x_1720)) { + lean_ctor_release(x_1720, 0); + lean_ctor_release(x_1720, 1); + x_1849 = x_1720; +} else { + lean_dec_ref(x_1720); + x_1849 = lean_box(0); +} +if (lean_is_scalar(x_1849)) { x_1850 = lean_alloc_ctor(0, 2, 0); } else { - x_1850 = x_1848; + x_1850 = x_1849; } -lean_ctor_set(x_1850, 0, x_1849); -lean_ctor_set(x_1850, 1, x_1847); +lean_ctor_set(x_1850, 0, x_1719); +lean_ctor_set(x_1850, 1, x_1848); return x_1850; } } else { -lean_object* x_1851; lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; -lean_dec(x_1627); -lean_dec(x_1626); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1851; lean_object* x_1852; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1851 = lean_ctor_get(x_1625, 1); +x_1851 = lean_ctor_get(x_1720, 0); lean_inc(x_1851); -if (lean_is_exclusive(x_1625)) { - lean_ctor_release(x_1625, 0); - lean_ctor_release(x_1625, 1); - x_1852 = x_1625; -} else { - lean_dec_ref(x_1625); - x_1852 = lean_box(0); -} -x_1853 = lean_box(0); -if (lean_is_scalar(x_1852)) { - x_1854 = lean_alloc_ctor(0, 2, 0); -} else { - x_1854 = x_1852; -} -lean_ctor_set(x_1854, 0, x_1853); -lean_ctor_set(x_1854, 1, x_1851); -return x_1854; +x_1852 = lean_ctor_get(x_1720, 1); +lean_inc(x_1852); +lean_dec(x_1720); +x_8 = x_1851; +x_9 = x_1852; +goto block_16; } } else { -lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; -lean_dec(x_1626); -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1853; lean_object* x_1854; +lean_dec(x_1704); +lean_dec(x_1702); +lean_dec(x_1691); +lean_dec(x_1686); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1855 = lean_ctor_get(x_1625, 1); +x_1853 = lean_ctor_get(x_1705, 0); +lean_inc(x_1853); +x_1854 = lean_ctor_get(x_1705, 1); +lean_inc(x_1854); +lean_dec(x_1705); +x_8 = x_1853; +x_9 = x_1854; +goto block_16; +} +} +else +{ +lean_object* x_1855; lean_object* x_1856; +lean_dec(x_1691); +lean_dec(x_1686); +lean_dec(x_1684); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1855 = lean_ctor_get(x_1701, 0); lean_inc(x_1855); -if (lean_is_exclusive(x_1625)) { - lean_ctor_release(x_1625, 0); - lean_ctor_release(x_1625, 1); - x_1856 = x_1625; -} else { - lean_dec_ref(x_1625); - x_1856 = lean_box(0); +x_1856 = lean_ctor_get(x_1701, 1); +lean_inc(x_1856); +lean_dec(x_1701); +x_8 = x_1855; +x_9 = x_1856; +goto block_16; } -x_1857 = lean_box(0); -if (lean_is_scalar(x_1856)) { - x_1858 = lean_alloc_ctor(0, 2, 0); -} else { - x_1858 = x_1856; -} -lean_ctor_set(x_1858, 0, x_1857); -lean_ctor_set(x_1858, 1, x_1855); -return x_1858; } } else { -lean_object* x_1859; lean_object* x_1860; lean_object* x_1861; uint8_t x_1862; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1857; lean_object* x_1858; +lean_dec(x_1691); +lean_dec(x_1686); +lean_dec(x_1684); +lean_dec(x_1674); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1859 = lean_ctor_get(x_1625, 0); +x_1857 = lean_ctor_get(x_1693, 0); +lean_inc(x_1857); +x_1858 = lean_ctor_get(x_1693, 1); +lean_inc(x_1858); +lean_dec(x_1693); +x_8 = x_1857; +x_9 = x_1858; +goto block_16; +} +} +else +{ +lean_object* x_1859; lean_object* x_1860; +lean_dec(x_1686); +lean_dec(x_1684); +lean_dec(x_1674); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1859 = lean_ctor_get(x_1688, 0); lean_inc(x_1859); -x_1860 = lean_ctor_get(x_1625, 1); +x_1860 = lean_ctor_get(x_1688, 1); lean_inc(x_1860); -if (lean_is_exclusive(x_1625)) { - lean_ctor_release(x_1625, 0); - lean_ctor_release(x_1625, 1); - x_1861 = x_1625; -} else { - lean_dec_ref(x_1625); - x_1861 = lean_box(0); -} -x_1862 = l_Lean_Exception_isRuntime(x_1859); -if (x_1862 == 0) -{ -lean_object* x_1863; lean_object* x_1864; -lean_dec(x_1859); -x_1863 = lean_box(0); -if (lean_is_scalar(x_1861)) { - x_1864 = lean_alloc_ctor(0, 2, 0); -} else { - x_1864 = x_1861; - lean_ctor_set_tag(x_1864, 0); -} -lean_ctor_set(x_1864, 0, x_1863); -lean_ctor_set(x_1864, 1, x_1860); -return x_1864; -} -else -{ -lean_object* x_1865; -if (lean_is_scalar(x_1861)) { - x_1865 = lean_alloc_ctor(1, 2, 0); -} else { - x_1865 = x_1861; -} -lean_ctor_set(x_1865, 0, x_1859); -lean_ctor_set(x_1865, 1, x_1860); -return x_1865; -} +lean_dec(x_1688); +x_8 = x_1859; +x_9 = x_1860; +goto block_16; } } else { -lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; uint8_t x_1869; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1861; lean_object* x_1862; +lean_dec(x_1684); +lean_dec(x_1683); +lean_dec(x_1674); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1866 = lean_ctor_get(x_1622, 0); -lean_inc(x_1866); -x_1867 = lean_ctor_get(x_1622, 1); -lean_inc(x_1867); -if (lean_is_exclusive(x_1622)) { - lean_ctor_release(x_1622, 0); - lean_ctor_release(x_1622, 1); - x_1868 = x_1622; +x_1861 = lean_ctor_get(x_1685, 0); +lean_inc(x_1861); +x_1862 = lean_ctor_get(x_1685, 1); +lean_inc(x_1862); +lean_dec(x_1685); +x_8 = x_1861; +x_9 = x_1862; +goto block_16; +} +} +else +{ +lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; +lean_dec(x_1681); +lean_dec(x_1680); +lean_dec(x_1674); +lean_dec(x_1673); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1863 = lean_ctor_get(x_1678, 1); +lean_inc(x_1863); +if (lean_is_exclusive(x_1678)) { + lean_ctor_release(x_1678, 0); + lean_ctor_release(x_1678, 1); + x_1864 = x_1678; } else { - lean_dec_ref(x_1622); + lean_dec_ref(x_1678); + x_1864 = lean_box(0); +} +x_1865 = lean_box(0); +if (lean_is_scalar(x_1864)) { + x_1866 = lean_alloc_ctor(0, 2, 0); +} else { + x_1866 = x_1864; +} +lean_ctor_set(x_1866, 0, x_1865); +lean_ctor_set(x_1866, 1, x_1863); +return x_1866; +} +} +else +{ +lean_object* x_1867; lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; +lean_dec(x_1680); +lean_dec(x_1679); +lean_dec(x_1674); +lean_dec(x_1673); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1867 = lean_ctor_get(x_1678, 1); +lean_inc(x_1867); +if (lean_is_exclusive(x_1678)) { + lean_ctor_release(x_1678, 0); + lean_ctor_release(x_1678, 1); + x_1868 = x_1678; +} else { + lean_dec_ref(x_1678); x_1868 = lean_box(0); } -x_1869 = l_Lean_Exception_isRuntime(x_1866); -if (x_1869 == 0) -{ -lean_object* x_1870; lean_object* x_1871; -lean_dec(x_1866); -x_1870 = lean_box(0); +x_1869 = lean_box(0); if (lean_is_scalar(x_1868)) { - x_1871 = lean_alloc_ctor(0, 2, 0); + x_1870 = lean_alloc_ctor(0, 2, 0); } else { - x_1871 = x_1868; - lean_ctor_set_tag(x_1871, 0); -} -lean_ctor_set(x_1871, 0, x_1870); -lean_ctor_set(x_1871, 1, x_1867); -return x_1871; -} -else -{ -lean_object* x_1872; -if (lean_is_scalar(x_1868)) { - x_1872 = lean_alloc_ctor(1, 2, 0); -} else { - x_1872 = x_1868; -} -lean_ctor_set(x_1872, 0, x_1866); -lean_ctor_set(x_1872, 1, x_1867); -return x_1872; -} + x_1870 = x_1868; } +lean_ctor_set(x_1870, 0, x_1869); +lean_ctor_set(x_1870, 1, x_1867); +return x_1870; } } else { -lean_object* x_1873; lean_object* x_1874; -lean_dec(x_22); -lean_dec(x_16); -x_1873 = lean_ctor_get(x_1612, 1); -lean_inc(x_1873); -lean_dec(x_1612); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1874 = l_Lean_Meta_isMonad_x3f(x_35, x_3, x_4, x_5, x_6, x_1873); -if (lean_obj_tag(x_1874) == 0) -{ -lean_object* x_1875; -x_1875 = lean_ctor_get(x_1874, 0); -lean_inc(x_1875); -if (lean_obj_tag(x_1875) == 0) -{ -lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_free_object(x_25); +lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; +lean_dec(x_1679); +lean_dec(x_1674); +lean_dec(x_1673); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1876 = lean_ctor_get(x_1874, 1); -lean_inc(x_1876); -if (lean_is_exclusive(x_1874)) { - lean_ctor_release(x_1874, 0); - lean_ctor_release(x_1874, 1); - x_1877 = x_1874; +x_1871 = lean_ctor_get(x_1678, 1); +lean_inc(x_1871); +if (lean_is_exclusive(x_1678)) { + lean_ctor_release(x_1678, 0); + lean_ctor_release(x_1678, 1); + x_1872 = x_1678; } else { - lean_dec_ref(x_1874); - x_1877 = lean_box(0); + lean_dec_ref(x_1678); + x_1872 = lean_box(0); } -x_1878 = lean_box(0); -if (lean_is_scalar(x_1877)) { - x_1879 = lean_alloc_ctor(0, 2, 0); +x_1873 = lean_box(0); +if (lean_is_scalar(x_1872)) { + x_1874 = lean_alloc_ctor(0, 2, 0); } else { - x_1879 = x_1877; + x_1874 = x_1872; +} +lean_ctor_set(x_1874, 0, x_1873); +lean_ctor_set(x_1874, 1, x_1871); +return x_1874; } -lean_ctor_set(x_1879, 0, x_1878); -lean_ctor_set(x_1879, 1, x_1876); -return x_1879; } else { -lean_object* x_1880; lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; -x_1880 = lean_ctor_get(x_1874, 1); -lean_inc(x_1880); -lean_dec(x_1874); -x_1881 = lean_ctor_get(x_1875, 0); -lean_inc(x_1881); -if (lean_is_exclusive(x_1875)) { - lean_ctor_release(x_1875, 0); - x_1882 = x_1875; +lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; uint8_t x_1878; +lean_dec(x_1674); +lean_dec(x_1673); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1875 = lean_ctor_get(x_1678, 0); +lean_inc(x_1875); +x_1876 = lean_ctor_get(x_1678, 1); +lean_inc(x_1876); +if (lean_is_exclusive(x_1678)) { + lean_ctor_release(x_1678, 0); + lean_ctor_release(x_1678, 1); + x_1877 = x_1678; } else { - lean_dec_ref(x_1875); - x_1882 = lean_box(0); + lean_dec_ref(x_1678); + x_1877 = lean_box(0); } -if (lean_is_scalar(x_1882)) { - x_1883 = lean_alloc_ctor(1, 1, 0); -} else { - x_1883 = x_1882; -} -lean_ctor_set(x_1883, 0, x_1610); -x_1884 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1884, 0, x_1611); -lean_ctor_set(x_25, 0, x_36); -x_1885 = lean_box(0); -x_1886 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1886, 0, x_1881); -x_1887 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1887, 0, x_1); -x_1888 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; -x_1889 = lean_array_push(x_1888, x_1883); -x_1890 = lean_array_push(x_1889, x_1884); -x_1891 = lean_array_push(x_1890, x_25); -x_1892 = lean_array_push(x_1891, x_1885); -x_1893 = lean_array_push(x_1892, x_1886); -x_1894 = lean_array_push(x_1893, x_1887); -x_1895 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1896 = l_Lean_Meta_mkAppOptM(x_1895, x_1894, x_3, x_4, x_5, x_6, x_1880); -if (lean_obj_tag(x_1896) == 0) +x_1878 = l_Lean_Exception_isInterrupt(x_1875); +if (x_1878 == 0) { -lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; -x_1897 = lean_ctor_get(x_1896, 0); +uint8_t x_1879; +x_1879 = l_Lean_Exception_isRuntime(x_1875); +if (x_1879 == 0) +{ +lean_object* x_1880; lean_object* x_1881; +lean_dec(x_1875); +x_1880 = lean_box(0); +if (lean_is_scalar(x_1877)) { + x_1881 = lean_alloc_ctor(0, 2, 0); +} else { + x_1881 = x_1877; + lean_ctor_set_tag(x_1881, 0); +} +lean_ctor_set(x_1881, 0, x_1880); +lean_ctor_set(x_1881, 1, x_1876); +return x_1881; +} +else +{ +lean_object* x_1882; +if (lean_is_scalar(x_1877)) { + x_1882 = lean_alloc_ctor(1, 2, 0); +} else { + x_1882 = x_1877; +} +lean_ctor_set(x_1882, 0, x_1875); +lean_ctor_set(x_1882, 1, x_1876); +return x_1882; +} +} +else +{ +lean_object* x_1883; +if (lean_is_scalar(x_1877)) { + x_1883 = lean_alloc_ctor(1, 2, 0); +} else { + x_1883 = x_1877; +} +lean_ctor_set(x_1883, 0, x_1875); +lean_ctor_set(x_1883, 1, x_1876); +return x_1883; +} +} +} +else +{ +lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; uint8_t x_1887; +lean_dec(x_1674); +lean_dec(x_1673); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1884 = lean_ctor_get(x_1675, 0); +lean_inc(x_1884); +x_1885 = lean_ctor_get(x_1675, 1); +lean_inc(x_1885); +if (lean_is_exclusive(x_1675)) { + lean_ctor_release(x_1675, 0); + lean_ctor_release(x_1675, 1); + x_1886 = x_1675; +} else { + lean_dec_ref(x_1675); + x_1886 = lean_box(0); +} +x_1887 = l_Lean_Exception_isInterrupt(x_1884); +if (x_1887 == 0) +{ +uint8_t x_1888; +x_1888 = l_Lean_Exception_isRuntime(x_1884); +if (x_1888 == 0) +{ +lean_object* x_1889; lean_object* x_1890; +lean_dec(x_1884); +x_1889 = lean_box(0); +if (lean_is_scalar(x_1886)) { + x_1890 = lean_alloc_ctor(0, 2, 0); +} else { + x_1890 = x_1886; + lean_ctor_set_tag(x_1890, 0); +} +lean_ctor_set(x_1890, 0, x_1889); +lean_ctor_set(x_1890, 1, x_1885); +return x_1890; +} +else +{ +lean_object* x_1891; +if (lean_is_scalar(x_1886)) { + x_1891 = lean_alloc_ctor(1, 2, 0); +} else { + x_1891 = x_1886; +} +lean_ctor_set(x_1891, 0, x_1884); +lean_ctor_set(x_1891, 1, x_1885); +return x_1891; +} +} +else +{ +lean_object* x_1892; +if (lean_is_scalar(x_1886)) { + x_1892 = lean_alloc_ctor(1, 2, 0); +} else { + x_1892 = x_1886; +} +lean_ctor_set(x_1892, 0, x_1884); +lean_ctor_set(x_1892, 1, x_1885); +return x_1892; +} +} +} +else +{ +lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; +lean_dec(x_1671); +lean_dec(x_1670); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1893 = lean_ctor_get(x_1668, 1); +lean_inc(x_1893); +if (lean_is_exclusive(x_1668)) { + lean_ctor_release(x_1668, 0); + lean_ctor_release(x_1668, 1); + x_1894 = x_1668; +} else { + lean_dec_ref(x_1668); + x_1894 = lean_box(0); +} +x_1895 = lean_box(0); +if (lean_is_scalar(x_1894)) { + x_1896 = lean_alloc_ctor(0, 2, 0); +} else { + x_1896 = x_1894; +} +lean_ctor_set(x_1896, 0, x_1895); +lean_ctor_set(x_1896, 1, x_1893); +return x_1896; +} +} +else +{ +lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1900; +lean_dec(x_1670); +lean_dec(x_1669); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1897 = lean_ctor_get(x_1668, 1); lean_inc(x_1897); -x_1898 = lean_ctor_get(x_1896, 1); -lean_inc(x_1898); -lean_dec(x_1896); -x_1899 = l_Lean_Meta_expandCoe(x_1897, x_3, x_4, x_5, x_6, x_1898); -if (lean_obj_tag(x_1899) == 0) -{ -lean_object* x_1900; lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; -x_1900 = lean_ctor_get(x_1899, 0); -lean_inc(x_1900); -x_1901 = lean_ctor_get(x_1899, 1); -lean_inc(x_1901); -if (lean_is_exclusive(x_1899)) { - lean_ctor_release(x_1899, 0); - lean_ctor_release(x_1899, 1); - x_1902 = x_1899; +if (lean_is_exclusive(x_1668)) { + lean_ctor_release(x_1668, 0); + lean_ctor_release(x_1668, 1); + x_1898 = x_1668; } else { - lean_dec_ref(x_1899); + lean_dec_ref(x_1668); + x_1898 = lean_box(0); +} +x_1899 = lean_box(0); +if (lean_is_scalar(x_1898)) { + x_1900 = lean_alloc_ctor(0, 2, 0); +} else { + x_1900 = x_1898; +} +lean_ctor_set(x_1900, 0, x_1899); +lean_ctor_set(x_1900, 1, x_1897); +return x_1900; +} +} +else +{ +lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; +lean_dec(x_1669); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1901 = lean_ctor_get(x_1668, 1); +lean_inc(x_1901); +if (lean_is_exclusive(x_1668)) { + lean_ctor_release(x_1668, 0); + lean_ctor_release(x_1668, 1); + x_1902 = x_1668; +} else { + lean_dec_ref(x_1668); x_1902 = lean_box(0); } -x_1903 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1903, 0, x_1900); +x_1903 = lean_box(0); if (lean_is_scalar(x_1902)) { x_1904 = lean_alloc_ctor(0, 2, 0); } else { @@ -16299,478 +16340,495 @@ lean_ctor_set(x_1904, 0, x_1903); lean_ctor_set(x_1904, 1, x_1901); return x_1904; } +} else { lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; uint8_t x_1908; -x_1905 = lean_ctor_get(x_1899, 0); +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1905 = lean_ctor_get(x_1668, 0); lean_inc(x_1905); -x_1906 = lean_ctor_get(x_1899, 1); +x_1906 = lean_ctor_get(x_1668, 1); lean_inc(x_1906); -if (lean_is_exclusive(x_1899)) { - lean_ctor_release(x_1899, 0); - lean_ctor_release(x_1899, 1); - x_1907 = x_1899; +if (lean_is_exclusive(x_1668)) { + lean_ctor_release(x_1668, 0); + lean_ctor_release(x_1668, 1); + x_1907 = x_1668; } else { - lean_dec_ref(x_1899); + lean_dec_ref(x_1668); x_1907 = lean_box(0); } -x_1908 = l_Lean_Exception_isRuntime(x_1905); +x_1908 = l_Lean_Exception_isInterrupt(x_1905); if (x_1908 == 0) { -lean_object* x_1909; +uint8_t x_1909; +x_1909 = l_Lean_Exception_isRuntime(x_1905); +if (x_1909 == 0) +{ +lean_object* x_1910; lean_object* x_1911; lean_dec(x_1905); +x_1910 = lean_box(0); if (lean_is_scalar(x_1907)) { - x_1909 = lean_alloc_ctor(0, 2, 0); + x_1911 = lean_alloc_ctor(0, 2, 0); } else { - x_1909 = x_1907; - lean_ctor_set_tag(x_1909, 0); + x_1911 = x_1907; + lean_ctor_set_tag(x_1911, 0); } -lean_ctor_set(x_1909, 0, x_1885); -lean_ctor_set(x_1909, 1, x_1906); -return x_1909; +lean_ctor_set(x_1911, 0, x_1910); +lean_ctor_set(x_1911, 1, x_1906); +return x_1911; } else { -lean_object* x_1910; +lean_object* x_1912; if (lean_is_scalar(x_1907)) { - x_1910 = lean_alloc_ctor(1, 2, 0); + x_1912 = lean_alloc_ctor(1, 2, 0); } else { - x_1910 = x_1907; + x_1912 = x_1907; } -lean_ctor_set(x_1910, 0, x_1905); -lean_ctor_set(x_1910, 1, x_1906); -return x_1910; +lean_ctor_set(x_1912, 0, x_1905); +lean_ctor_set(x_1912, 1, x_1906); +return x_1912; +} +} +else +{ +lean_object* x_1913; +if (lean_is_scalar(x_1907)) { + x_1913 = lean_alloc_ctor(1, 2, 0); +} else { + x_1913 = x_1907; +} +lean_ctor_set(x_1913, 0, x_1905); +lean_ctor_set(x_1913, 1, x_1906); +return x_1913; } } } else { -lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; uint8_t x_1914; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1911 = lean_ctor_get(x_1896, 0); -lean_inc(x_1911); -x_1912 = lean_ctor_get(x_1896, 1); -lean_inc(x_1912); -if (lean_is_exclusive(x_1896)) { - lean_ctor_release(x_1896, 0); - lean_ctor_release(x_1896, 1); - x_1913 = x_1896; -} else { - lean_dec_ref(x_1896); - x_1913 = lean_box(0); -} -x_1914 = l_Lean_Exception_isRuntime(x_1911); -if (x_1914 == 0) -{ -lean_object* x_1915; -lean_dec(x_1911); -if (lean_is_scalar(x_1913)) { - x_1915 = lean_alloc_ctor(0, 2, 0); -} else { - x_1915 = x_1913; - lean_ctor_set_tag(x_1915, 0); -} -lean_ctor_set(x_1915, 0, x_1885); -lean_ctor_set(x_1915, 1, x_1912); -return x_1915; -} -else -{ -lean_object* x_1916; -if (lean_is_scalar(x_1913)) { - x_1916 = lean_alloc_ctor(1, 2, 0); -} else { - x_1916 = x_1913; -} -lean_ctor_set(x_1916, 0, x_1911); -lean_ctor_set(x_1916, 1, x_1912); -return x_1916; -} -} -} -} -else -{ -lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_free_object(x_25); +lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; uint8_t x_1917; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1917 = lean_ctor_get(x_1874, 0); -lean_inc(x_1917); -x_1918 = lean_ctor_get(x_1874, 1); -lean_inc(x_1918); -if (lean_is_exclusive(x_1874)) { - lean_ctor_release(x_1874, 0); - lean_ctor_release(x_1874, 1); - x_1919 = x_1874; +x_1914 = lean_ctor_get(x_1665, 0); +lean_inc(x_1914); +x_1915 = lean_ctor_get(x_1665, 1); +lean_inc(x_1915); +if (lean_is_exclusive(x_1665)) { + lean_ctor_release(x_1665, 0); + lean_ctor_release(x_1665, 1); + x_1916 = x_1665; } else { - lean_dec_ref(x_1874); - x_1919 = lean_box(0); + lean_dec_ref(x_1665); + x_1916 = lean_box(0); } -if (lean_is_scalar(x_1919)) { - x_1920 = lean_alloc_ctor(1, 2, 0); +x_1917 = l_Lean_Exception_isInterrupt(x_1914); +if (x_1917 == 0) +{ +uint8_t x_1918; +x_1918 = l_Lean_Exception_isRuntime(x_1914); +if (x_1918 == 0) +{ +lean_object* x_1919; lean_object* x_1920; +lean_dec(x_1914); +x_1919 = lean_box(0); +if (lean_is_scalar(x_1916)) { + x_1920 = lean_alloc_ctor(0, 2, 0); } else { - x_1920 = x_1919; + x_1920 = x_1916; + lean_ctor_set_tag(x_1920, 0); } -lean_ctor_set(x_1920, 0, x_1917); -lean_ctor_set(x_1920, 1, x_1918); +lean_ctor_set(x_1920, 0, x_1919); +lean_ctor_set(x_1920, 1, x_1915); return x_1920; } +else +{ +lean_object* x_1921; +if (lean_is_scalar(x_1916)) { + x_1921 = lean_alloc_ctor(1, 2, 0); +} else { + x_1921 = x_1916; +} +lean_ctor_set(x_1921, 0, x_1914); +lean_ctor_set(x_1921, 1, x_1915); +return x_1921; } } else { -lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; lean_object* x_1924; -lean_dec(x_1611); -lean_dec(x_1610); -lean_dec(x_36); -lean_dec(x_35); -lean_free_object(x_25); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_1922; +if (lean_is_scalar(x_1916)) { + x_1922 = lean_alloc_ctor(1, 2, 0); +} else { + x_1922 = x_1916; +} +lean_ctor_set(x_1922, 0, x_1914); +lean_ctor_set(x_1922, 1, x_1915); +return x_1922; +} +} +} +} +else +{ +lean_object* x_1923; lean_object* x_1924; +lean_dec(x_38); +lean_dec(x_32); +x_1923 = lean_ctor_get(x_1655, 1); +lean_inc(x_1923); +lean_dec(x_1655); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1924 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_1923); +if (lean_obj_tag(x_1924) == 0) +{ +lean_object* x_1925; +x_1925 = lean_ctor_get(x_1924, 0); +lean_inc(x_1925); +if (lean_obj_tag(x_1925) == 0) +{ +lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_free_object(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_1921 = lean_ctor_get(x_1612, 0); -lean_inc(x_1921); -x_1922 = lean_ctor_get(x_1612, 1); -lean_inc(x_1922); -if (lean_is_exclusive(x_1612)) { - lean_ctor_release(x_1612, 0); - lean_ctor_release(x_1612, 1); - x_1923 = x_1612; -} else { - lean_dec_ref(x_1612); - x_1923 = lean_box(0); -} -if (lean_is_scalar(x_1923)) { - x_1924 = lean_alloc_ctor(1, 2, 0); -} else { - x_1924 = x_1923; -} -lean_ctor_set(x_1924, 0, x_1921); -lean_ctor_set(x_1924, 1, x_1922); -return x_1924; -} -} -} -} -else -{ -uint8_t x_1925; -lean_dec(x_36); -lean_dec(x_35); -lean_free_object(x_25); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1925 = !lean_is_exclusive(x_37); -if (x_1925 == 0) -{ -return x_37; -} -else -{ -lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; -x_1926 = lean_ctor_get(x_37, 0); -x_1927 = lean_ctor_get(x_37, 1); -lean_inc(x_1927); +x_1926 = lean_ctor_get(x_1924, 1); lean_inc(x_1926); -lean_dec(x_37); -x_1928 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1928, 0, x_1926); -lean_ctor_set(x_1928, 1, x_1927); -return x_1928; +if (lean_is_exclusive(x_1924)) { + lean_ctor_release(x_1924, 0); + lean_ctor_release(x_1924, 1); + x_1927 = x_1924; +} else { + lean_dec_ref(x_1924); + x_1927 = lean_box(0); } +x_1928 = lean_box(0); +if (lean_is_scalar(x_1927)) { + x_1929 = lean_alloc_ctor(0, 2, 0); +} else { + x_1929 = x_1927; } +lean_ctor_set(x_1929, 0, x_1928); +lean_ctor_set(x_1929, 1, x_1926); +return x_1929; } else { -lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; -x_1929 = lean_ctor_get(x_25, 0); -lean_inc(x_1929); -lean_dec(x_25); -x_1930 = lean_ctor_get(x_24, 1); +lean_object* x_1930; lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; +x_1930 = lean_ctor_get(x_1924, 1); lean_inc(x_1930); -lean_dec(x_24); -x_1931 = lean_ctor_get(x_1929, 0); +lean_dec(x_1924); +x_1931 = lean_ctor_get(x_1925, 0); lean_inc(x_1931); -x_1932 = lean_ctor_get(x_1929, 1); -lean_inc(x_1932); -lean_dec(x_1929); +if (lean_is_exclusive(x_1925)) { + lean_ctor_release(x_1925, 0); + x_1932 = x_1925; +} else { + lean_dec_ref(x_1925); + x_1932 = lean_box(0); +} +if (lean_is_scalar(x_1932)) { + x_1933 = lean_alloc_ctor(1, 1, 0); +} else { + x_1933 = x_1932; +} +lean_ctor_set(x_1933, 0, x_1653); +lean_ctor_set(x_54, 0, x_1654); +lean_ctor_set(x_41, 0, x_52); +x_1934 = lean_box(0); +x_1935 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1935, 0, x_1931); +x_1936 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1936, 0, x_1); +x_1937 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; +x_1938 = lean_array_push(x_1937, x_1933); +x_1939 = lean_array_push(x_1938, x_54); +x_1940 = lean_array_push(x_1939, x_41); +x_1941 = lean_array_push(x_1940, x_1934); +x_1942 = lean_array_push(x_1941, x_1935); +x_1943 = lean_array_push(x_1942, x_1936); +x_1944 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_22); -x_1933 = l_Lean_Meta_isTypeApp_x3f(x_22, x_3, x_4, x_5, x_6, x_1930); -if (lean_obj_tag(x_1933) == 0) +x_1945 = l_Lean_Meta_mkAppOptM(x_1944, x_1943, x_3, x_4, x_5, x_6, x_1930); +if (lean_obj_tag(x_1945) == 0) { -lean_object* x_1934; -x_1934 = lean_ctor_get(x_1933, 0); -lean_inc(x_1934); -if (lean_obj_tag(x_1934) == 0) -{ -lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1935 = lean_ctor_get(x_1933, 1); -lean_inc(x_1935); -if (lean_is_exclusive(x_1933)) { - lean_ctor_release(x_1933, 0); - lean_ctor_release(x_1933, 1); - x_1936 = x_1933; -} else { - lean_dec_ref(x_1933); - x_1936 = lean_box(0); -} -x_1937 = lean_box(0); -if (lean_is_scalar(x_1936)) { - x_1938 = lean_alloc_ctor(0, 2, 0); -} else { - x_1938 = x_1936; -} -lean_ctor_set(x_1938, 0, x_1937); -lean_ctor_set(x_1938, 1, x_1935); -return x_1938; -} -else -{ -lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; -x_1939 = lean_ctor_get(x_1934, 0); -lean_inc(x_1939); -if (lean_is_exclusive(x_1934)) { - lean_ctor_release(x_1934, 0); - x_1940 = x_1934; -} else { - lean_dec_ref(x_1934); - x_1940 = lean_box(0); -} -x_1941 = lean_ctor_get(x_1933, 1); -lean_inc(x_1941); -lean_dec(x_1933); -x_1942 = lean_ctor_get(x_1939, 0); -lean_inc(x_1942); -x_1943 = lean_ctor_get(x_1939, 1); -lean_inc(x_1943); -lean_dec(x_1939); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1931); -lean_inc(x_1942); -x_1944 = l_Lean_Meta_isExprDefEq(x_1942, x_1931, x_3, x_4, x_5, x_6, x_1941); -if (lean_obj_tag(x_1944) == 0) -{ -lean_object* x_1945; uint8_t x_1946; -x_1945 = lean_ctor_get(x_1944, 0); -lean_inc(x_1945); -x_1946 = lean_unbox(x_1945); -lean_dec(x_1945); -if (x_1946 == 0) -{ -lean_object* x_1947; lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; uint8_t x_1951; -x_1947 = lean_ctor_get(x_1944, 1); +lean_object* x_1946; lean_object* x_1947; lean_object* x_1948; +x_1946 = lean_ctor_get(x_1945, 0); +lean_inc(x_1946); +x_1947 = lean_ctor_get(x_1945, 1); lean_inc(x_1947); -if (lean_is_exclusive(x_1944)) { - lean_ctor_release(x_1944, 0); - lean_ctor_release(x_1944, 1); - x_1948 = x_1944; -} else { - lean_dec_ref(x_1944); - x_1948 = lean_box(0); -} -x_1949 = lean_ctor_get(x_5, 2); -lean_inc(x_1949); -x_1950 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; -x_1951 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1949, x_1950); -lean_dec(x_1949); -if (x_1951 == 0) +lean_dec(x_1945); +x_1948 = l_Lean_Meta_expandCoe(x_1946, x_3, x_4, x_5, x_6, x_1947); +if (lean_obj_tag(x_1948) == 0) { -lean_object* x_1952; lean_object* x_1953; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_1952 = lean_box(0); -if (lean_is_scalar(x_1948)) { - x_1953 = lean_alloc_ctor(0, 2, 0); -} else { - x_1953 = x_1948; -} -lean_ctor_set(x_1953, 0, x_1952); -lean_ctor_set(x_1953, 1, x_1947); -return x_1953; +lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; +x_1949 = lean_ctor_get(x_1948, 0); +lean_inc(x_1949); +x_1950 = lean_ctor_get(x_1948, 1); +lean_inc(x_1950); +lean_dec(x_1948); +x_1951 = lean_box(0); +x_1952 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1952, 0, x_1949); +lean_ctor_set(x_1952, 1, x_1951); +x_17 = x_1952; +x_18 = x_1950; +goto block_30; } else { -lean_object* x_1954; -lean_dec(x_1948); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1942); -x_1954 = lean_infer_type(x_1942, x_3, x_4, x_5, x_6, x_1947); -if (lean_obj_tag(x_1954) == 0) +lean_object* x_1953; lean_object* x_1954; lean_object* x_1955; uint8_t x_1956; +x_1953 = lean_ctor_get(x_1948, 0); +lean_inc(x_1953); +x_1954 = lean_ctor_get(x_1948, 1); +lean_inc(x_1954); +if (lean_is_exclusive(x_1948)) { + lean_ctor_release(x_1948, 0); + lean_ctor_release(x_1948, 1); + x_1955 = x_1948; +} else { + lean_dec_ref(x_1948); + x_1955 = lean_box(0); +} +x_1956 = l_Lean_Exception_isInterrupt(x_1953); +if (x_1956 == 0) { -lean_object* x_1955; lean_object* x_1956; lean_object* x_1957; -x_1955 = lean_ctor_get(x_1954, 0); -lean_inc(x_1955); -x_1956 = lean_ctor_get(x_1954, 1); -lean_inc(x_1956); -lean_dec(x_1954); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1957 = lean_whnf(x_1955, x_3, x_4, x_5, x_6, x_1956); -if (lean_obj_tag(x_1957) == 0) +uint8_t x_1957; +x_1957 = l_Lean_Exception_isRuntime(x_1953); +if (x_1957 == 0) { lean_object* x_1958; -x_1958 = lean_ctor_get(x_1957, 0); -lean_inc(x_1958); -if (lean_obj_tag(x_1958) == 7) +lean_dec(x_1955); +lean_dec(x_1953); +x_1958 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1958; +x_18 = x_1954; +goto block_30; +} +else { lean_object* x_1959; -x_1959 = lean_ctor_get(x_1958, 1); -lean_inc(x_1959); -if (lean_obj_tag(x_1959) == 3) +if (lean_is_scalar(x_1955)) { + x_1959 = lean_alloc_ctor(1, 2, 0); +} else { + x_1959 = x_1955; +} +lean_ctor_set(x_1959, 0, x_1953); +lean_ctor_set(x_1959, 1, x_1954); +return x_1959; +} +} +else { lean_object* x_1960; -x_1960 = lean_ctor_get(x_1958, 2); -lean_inc(x_1960); -lean_dec(x_1958); -if (lean_obj_tag(x_1960) == 3) +if (lean_is_scalar(x_1955)) { + x_1960 = lean_alloc_ctor(1, 2, 0); +} else { + x_1960 = x_1955; +} +lean_ctor_set(x_1960, 0, x_1953); +lean_ctor_set(x_1960, 1, x_1954); +return x_1960; +} +} +} +else { -lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; lean_object* x_1964; -x_1961 = lean_ctor_get(x_1957, 1); +lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; uint8_t x_1964; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1961 = lean_ctor_get(x_1945, 0); lean_inc(x_1961); -lean_dec(x_1957); -x_1962 = lean_ctor_get(x_1959, 0); +x_1962 = lean_ctor_get(x_1945, 1); lean_inc(x_1962); -lean_dec(x_1959); -x_1963 = lean_ctor_get(x_1960, 0); -lean_inc(x_1963); -lean_dec(x_1960); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1931); -x_1964 = lean_infer_type(x_1931, x_3, x_4, x_5, x_6, x_1961); -if (lean_obj_tag(x_1964) == 0) +if (lean_is_exclusive(x_1945)) { + lean_ctor_release(x_1945, 0); + lean_ctor_release(x_1945, 1); + x_1963 = x_1945; +} else { + lean_dec_ref(x_1945); + x_1963 = lean_box(0); +} +x_1964 = l_Lean_Exception_isInterrupt(x_1961); +if (x_1964 == 0) { -lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; -x_1965 = lean_ctor_get(x_1964, 0); -lean_inc(x_1965); -x_1966 = lean_ctor_get(x_1964, 1); -lean_inc(x_1966); -lean_dec(x_1964); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1967 = lean_whnf(x_1965, x_3, x_4, x_5, x_6, x_1966); -if (lean_obj_tag(x_1967) == 0) +uint8_t x_1965; +x_1965 = l_Lean_Exception_isRuntime(x_1961); +if (x_1965 == 0) +{ +lean_object* x_1966; +lean_dec(x_1963); +lean_dec(x_1961); +x_1966 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_1966; +x_18 = x_1962; +goto block_30; +} +else +{ +lean_object* x_1967; +if (lean_is_scalar(x_1963)) { + x_1967 = lean_alloc_ctor(1, 2, 0); +} else { + x_1967 = x_1963; +} +lean_ctor_set(x_1967, 0, x_1961); +lean_ctor_set(x_1967, 1, x_1962); +return x_1967; +} +} +else { lean_object* x_1968; -x_1968 = lean_ctor_get(x_1967, 0); -lean_inc(x_1968); -if (lean_obj_tag(x_1968) == 7) +if (lean_is_scalar(x_1963)) { + x_1968 = lean_alloc_ctor(1, 2, 0); +} else { + x_1968 = x_1963; +} +lean_ctor_set(x_1968, 0, x_1961); +lean_ctor_set(x_1968, 1, x_1962); +return x_1968; +} +} +} +} +else { -lean_object* x_1969; -x_1969 = lean_ctor_get(x_1968, 1); +lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_free_object(x_41); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1969 = lean_ctor_get(x_1924, 0); lean_inc(x_1969); -if (lean_obj_tag(x_1969) == 3) -{ -lean_object* x_1970; -x_1970 = lean_ctor_get(x_1968, 2); +x_1970 = lean_ctor_get(x_1924, 1); lean_inc(x_1970); -lean_dec(x_1968); -if (lean_obj_tag(x_1970) == 3) +if (lean_is_exclusive(x_1924)) { + lean_ctor_release(x_1924, 0); + lean_ctor_release(x_1924, 1); + x_1971 = x_1924; +} else { + lean_dec_ref(x_1924); + x_1971 = lean_box(0); +} +if (lean_is_scalar(x_1971)) { + x_1972 = lean_alloc_ctor(1, 2, 0); +} else { + x_1972 = x_1971; +} +lean_ctor_set(x_1972, 0, x_1969); +lean_ctor_set(x_1972, 1, x_1970); +return x_1972; +} +} +} +else { -lean_object* x_1971; lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; -x_1971 = lean_ctor_get(x_1967, 1); -lean_inc(x_1971); -lean_dec(x_1967); -x_1972 = lean_ctor_get(x_1969, 0); -lean_inc(x_1972); -lean_dec(x_1969); -x_1973 = lean_ctor_get(x_1970, 0); +lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; lean_object* x_1976; +lean_dec(x_1654); +lean_dec(x_1653); +lean_free_object(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_free_object(x_41); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_1973 = lean_ctor_get(x_1655, 0); lean_inc(x_1973); -lean_dec(x_1970); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1974 = l_Lean_Meta_decLevel(x_1962, x_3, x_4, x_5, x_6, x_1971); -if (lean_obj_tag(x_1974) == 0) +x_1974 = lean_ctor_get(x_1655, 1); +lean_inc(x_1974); +if (lean_is_exclusive(x_1655)) { + lean_ctor_release(x_1655, 0); + lean_ctor_release(x_1655, 1); + x_1975 = x_1655; +} else { + lean_dec_ref(x_1655); + x_1975 = lean_box(0); +} +if (lean_is_scalar(x_1975)) { + x_1976 = lean_alloc_ctor(1, 2, 0); +} else { + x_1976 = x_1975; +} +lean_ctor_set(x_1976, 0, x_1973); +lean_ctor_set(x_1976, 1, x_1974); +return x_1976; +} +} +} +else { -lean_object* x_1975; lean_object* x_1976; lean_object* x_1977; -x_1975 = lean_ctor_get(x_1974, 0); -lean_inc(x_1975); -x_1976 = lean_ctor_get(x_1974, 1); -lean_inc(x_1976); -lean_dec(x_1974); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1977 = l_Lean_Meta_decLevel(x_1972, x_3, x_4, x_5, x_6, x_1976); -if (lean_obj_tag(x_1977) == 0) -{ -lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; uint8_t x_1981; lean_object* x_1982; -x_1978 = lean_ctor_get(x_1977, 0); +lean_object* x_1977; lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; +x_1977 = lean_ctor_get(x_54, 0); +lean_inc(x_1977); +lean_dec(x_54); +x_1978 = lean_ctor_get(x_53, 1); lean_inc(x_1978); -x_1979 = lean_ctor_get(x_1977, 1); +lean_dec(x_53); +x_1979 = lean_ctor_get(x_1977, 0); lean_inc(x_1979); +x_1980 = lean_ctor_get(x_1977, 1); +lean_inc(x_1980); if (lean_is_exclusive(x_1977)) { lean_ctor_release(x_1977, 0); lean_ctor_release(x_1977, 1); - x_1980 = x_1977; + x_1981 = x_1977; } else { lean_dec_ref(x_1977); - x_1980 = lean_box(0); + x_1981 = lean_box(0); } -x_1981 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1975); -x_1982 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_1975, x_1978, x_1981, x_3, x_4, x_5, x_6, x_1979); +lean_inc(x_51); +lean_inc(x_1979); +x_1982 = l_Lean_Meta_isExprDefEq(x_1979, x_51, x_3, x_4, x_5, x_6, x_1978); if (lean_obj_tag(x_1982) == 0) { lean_object* x_1983; uint8_t x_1984; @@ -16780,23 +16838,9 @@ x_1984 = lean_unbox(x_1983); lean_dec(x_1983); if (x_1984 == 0) { -lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; lean_object* x_1988; -lean_dec(x_1980); -lean_dec(x_1975); -lean_dec(x_1973); -lean_dec(x_1963); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); +lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; lean_object* x_1988; uint8_t x_1989; +lean_dec(x_1981); +lean_free_object(x_41); x_1985 = lean_ctor_get(x_1982, 1); lean_inc(x_1985); if (lean_is_exclusive(x_1982)) { @@ -16807,311 +16851,323 @@ if (lean_is_exclusive(x_1982)) { lean_dec_ref(x_1982); x_1986 = lean_box(0); } -x_1987 = lean_box(0); -if (lean_is_scalar(x_1986)) { - x_1988 = lean_alloc_ctor(0, 2, 0); -} else { - x_1988 = x_1986; -} -lean_ctor_set(x_1988, 0, x_1987); -lean_ctor_set(x_1988, 1, x_1985); -return x_1988; -} -else +x_1987 = lean_ctor_get(x_5, 2); +lean_inc(x_1987); +x_1988 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; +x_1989 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1987, x_1988); +lean_dec(x_1987); +if (x_1989 == 0) { -lean_object* x_1989; lean_object* x_1990; -x_1989 = lean_ctor_get(x_1982, 1); -lean_inc(x_1989); -lean_dec(x_1982); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1990 = l_Lean_Meta_decLevel(x_1963, x_3, x_4, x_5, x_6, x_1989); -if (lean_obj_tag(x_1990) == 0) -{ -lean_object* x_1991; lean_object* x_1992; lean_object* x_1993; lean_object* x_1994; -x_1991 = lean_ctor_get(x_1990, 0); -lean_inc(x_1991); -x_1992 = lean_ctor_get(x_1990, 1); -lean_inc(x_1992); -if (lean_is_exclusive(x_1990)) { - lean_ctor_release(x_1990, 0); - lean_ctor_release(x_1990, 1); - x_1993 = x_1990; -} else { - lean_dec_ref(x_1990); - x_1993 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1994 = l_Lean_Meta_decLevel(x_1973, x_3, x_4, x_5, x_6, x_1992); -if (lean_obj_tag(x_1994) == 0) -{ -lean_object* x_1995; lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; lean_object* x_2009; -x_1995 = lean_ctor_get(x_1994, 0); -lean_inc(x_1995); -x_1996 = lean_ctor_get(x_1994, 1); -lean_inc(x_1996); -if (lean_is_exclusive(x_1994)) { - lean_ctor_release(x_1994, 0); - lean_ctor_release(x_1994, 1); - x_1997 = x_1994; -} else { - lean_dec_ref(x_1994); - x_1997 = lean_box(0); -} -x_1998 = lean_box(0); -if (lean_is_scalar(x_1997)) { - x_1999 = lean_alloc_ctor(1, 2, 0); -} else { - x_1999 = x_1997; - lean_ctor_set_tag(x_1999, 1); -} -lean_ctor_set(x_1999, 0, x_1995); -lean_ctor_set(x_1999, 1, x_1998); -if (lean_is_scalar(x_1993)) { - x_2000 = lean_alloc_ctor(1, 2, 0); -} else { - x_2000 = x_1993; - lean_ctor_set_tag(x_2000, 1); -} -lean_ctor_set(x_2000, 0, x_1991); -lean_ctor_set(x_2000, 1, x_1999); -if (lean_is_scalar(x_1980)) { - x_2001 = lean_alloc_ctor(1, 2, 0); -} else { - x_2001 = x_1980; - lean_ctor_set_tag(x_2001, 1); -} -lean_ctor_set(x_2001, 0, x_1975); -lean_ctor_set(x_2001, 1, x_2000); -x_2002 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; -x_2003 = l_Lean_Expr_const___override(x_2002, x_2001); -x_2004 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; -lean_inc(x_1942); -x_2005 = lean_array_push(x_2004, x_1942); -lean_inc(x_1931); -x_2006 = lean_array_push(x_2005, x_1931); -x_2007 = l_Lean_mkAppN(x_2003, x_2006); -x_2008 = lean_box(0); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_2009 = l_Lean_Meta_trySynthInstance(x_2007, x_2008, x_3, x_4, x_5, x_6, x_1996); -if (lean_obj_tag(x_2009) == 0) -{ -lean_object* x_2010; -x_2010 = lean_ctor_get(x_2009, 0); -lean_inc(x_2010); -if (lean_obj_tag(x_2010) == 1) -{ -lean_object* x_2011; lean_object* x_2012; lean_object* x_2013; -x_2011 = lean_ctor_get(x_2009, 1); -lean_inc(x_2011); -lean_dec(x_2009); -x_2012 = lean_ctor_get(x_2010, 0); -lean_inc(x_2012); -lean_dec(x_2010); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1943); -x_2013 = l_Lean_Meta_getDecLevel(x_1943, x_3, x_4, x_5, x_6, x_2011); -if (lean_obj_tag(x_2013) == 0) -{ -lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; -x_2014 = lean_ctor_get(x_2013, 0); -lean_inc(x_2014); -x_2015 = lean_ctor_get(x_2013, 1); -lean_inc(x_2015); -if (lean_is_exclusive(x_2013)) { - lean_ctor_release(x_2013, 0); - lean_ctor_release(x_2013, 1); - x_2016 = x_2013; -} else { - lean_dec_ref(x_2013); - x_2016 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_2017 = l_Lean_Meta_getDecLevel(x_22, x_3, x_4, x_5, x_6, x_2015); -if (lean_obj_tag(x_2017) == 0) -{ -lean_object* x_2018; lean_object* x_2019; lean_object* x_2020; lean_object* x_2021; -x_2018 = lean_ctor_get(x_2017, 0); -lean_inc(x_2018); -x_2019 = lean_ctor_get(x_2017, 1); -lean_inc(x_2019); -if (lean_is_exclusive(x_2017)) { - lean_ctor_release(x_2017, 0); - lean_ctor_release(x_2017, 1); - x_2020 = x_2017; -} else { - lean_dec_ref(x_2017); - x_2020 = lean_box(0); -} -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_2021 = l_Lean_Meta_getDecLevel(x_16, x_3, x_4, x_5, x_6, x_2019); -if (lean_obj_tag(x_2021) == 0) -{ -lean_object* x_2022; lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; -x_2022 = lean_ctor_get(x_2021, 0); -lean_inc(x_2022); -x_2023 = lean_ctor_get(x_2021, 1); -lean_inc(x_2023); -if (lean_is_exclusive(x_2021)) { - lean_ctor_release(x_2021, 0); - lean_ctor_release(x_2021, 1); - x_2024 = x_2021; -} else { - lean_dec_ref(x_2021); - x_2024 = lean_box(0); -} -if (lean_is_scalar(x_2024)) { - x_2025 = lean_alloc_ctor(1, 2, 0); -} else { - x_2025 = x_2024; - lean_ctor_set_tag(x_2025, 1); -} -lean_ctor_set(x_2025, 0, x_2022); -lean_ctor_set(x_2025, 1, x_1998); -if (lean_is_scalar(x_2020)) { - x_2026 = lean_alloc_ctor(1, 2, 0); -} else { - x_2026 = x_2020; - lean_ctor_set_tag(x_2026, 1); -} -lean_ctor_set(x_2026, 0, x_2018); -lean_ctor_set(x_2026, 1, x_2025); -if (lean_is_scalar(x_2016)) { - x_2027 = lean_alloc_ctor(1, 2, 0); -} else { - x_2027 = x_2016; - lean_ctor_set_tag(x_2027, 1); -} -lean_ctor_set(x_2027, 0, x_2014); -lean_ctor_set(x_2027, 1, x_2026); -x_2028 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; -lean_inc(x_2027); -x_2029 = l_Lean_Expr_const___override(x_2028, x_2027); -x_2030 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; -lean_inc(x_1942); -x_2031 = lean_array_push(x_2030, x_1942); -lean_inc(x_1931); -x_2032 = lean_array_push(x_2031, x_1931); -lean_inc(x_2012); -x_2033 = lean_array_push(x_2032, x_2012); -lean_inc(x_1943); -x_2034 = lean_array_push(x_2033, x_1943); -lean_inc(x_1); -x_2035 = lean_array_push(x_2034, x_1); -x_2036 = l_Lean_mkAppN(x_2029, x_2035); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2036); -x_2037 = lean_infer_type(x_2036, x_3, x_4, x_5, x_6, x_2023); -if (lean_obj_tag(x_2037) == 0) -{ -lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; -x_2038 = lean_ctor_get(x_2037, 0); -lean_inc(x_2038); -x_2039 = lean_ctor_get(x_2037, 1); -lean_inc(x_2039); -lean_dec(x_2037); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_16); -x_2040 = l_Lean_Meta_isExprDefEq(x_16, x_2038, x_3, x_4, x_5, x_6, x_2039); -if (lean_obj_tag(x_2040) == 0) -{ -lean_object* x_2041; uint8_t x_2042; -x_2041 = lean_ctor_get(x_2040, 0); -lean_inc(x_2041); -x_2042 = lean_unbox(x_2041); -lean_dec(x_2041); -if (x_2042 == 0) -{ -lean_object* x_2043; lean_object* x_2044; -lean_dec(x_2036); -lean_dec(x_1940); -x_2043 = lean_ctor_get(x_2040, 1); -lean_inc(x_2043); -lean_dec(x_2040); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1931); -x_2044 = l_Lean_Meta_isMonad_x3f(x_1931, x_3, x_4, x_5, x_6, x_2043); -if (lean_obj_tag(x_2044) == 0) -{ -lean_object* x_2045; -x_2045 = lean_ctor_get(x_2044, 0); -lean_inc(x_2045); -if (lean_obj_tag(x_2045) == 0) -{ -lean_object* x_2046; lean_object* x_2047; lean_object* x_2048; -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); +lean_object* x_1990; lean_object* x_1991; +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2046 = lean_ctor_get(x_2044, 1); -lean_inc(x_2046); -if (lean_is_exclusive(x_2044)) { - lean_ctor_release(x_2044, 0); - lean_ctor_release(x_2044, 1); - x_2047 = x_2044; +x_1990 = lean_box(0); +if (lean_is_scalar(x_1986)) { + x_1991 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_2044); - x_2047 = lean_box(0); + x_1991 = x_1986; } -if (lean_is_scalar(x_2047)) { - x_2048 = lean_alloc_ctor(0, 2, 0); -} else { - x_2048 = x_2047; -} -lean_ctor_set(x_2048, 0, x_2008); -lean_ctor_set(x_2048, 1, x_2046); -return x_2048; +lean_ctor_set(x_1991, 0, x_1990); +lean_ctor_set(x_1991, 1, x_1985); +return x_1991; } else { -lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; -x_2049 = lean_ctor_get(x_2044, 1); -lean_inc(x_2049); -lean_dec(x_2044); -x_2050 = lean_ctor_get(x_2045, 0); -lean_inc(x_2050); -lean_dec(x_2045); +lean_object* x_1992; +lean_dec(x_1986); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1943); -x_2051 = l_Lean_Meta_getLevel(x_1943, x_3, x_4, x_5, x_6, x_2049); +lean_inc(x_1979); +x_1992 = lean_infer_type(x_1979, x_3, x_4, x_5, x_6, x_1985); +if (lean_obj_tag(x_1992) == 0) +{ +lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; +x_1993 = lean_ctor_get(x_1992, 0); +lean_inc(x_1993); +x_1994 = lean_ctor_get(x_1992, 1); +lean_inc(x_1994); +lean_dec(x_1992); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1995 = lean_whnf(x_1993, x_3, x_4, x_5, x_6, x_1994); +if (lean_obj_tag(x_1995) == 0) +{ +lean_object* x_1996; +x_1996 = lean_ctor_get(x_1995, 0); +lean_inc(x_1996); +if (lean_obj_tag(x_1996) == 7) +{ +lean_object* x_1997; +x_1997 = lean_ctor_get(x_1996, 1); +lean_inc(x_1997); +if (lean_obj_tag(x_1997) == 3) +{ +lean_object* x_1998; +x_1998 = lean_ctor_get(x_1996, 2); +lean_inc(x_1998); +lean_dec(x_1996); +if (lean_obj_tag(x_1998) == 3) +{ +lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; +x_1999 = lean_ctor_get(x_1995, 1); +lean_inc(x_1999); +lean_dec(x_1995); +x_2000 = lean_ctor_get(x_1997, 0); +lean_inc(x_2000); +lean_dec(x_1997); +x_2001 = lean_ctor_get(x_1998, 0); +lean_inc(x_2001); +lean_dec(x_1998); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_51); +x_2002 = lean_infer_type(x_51, x_3, x_4, x_5, x_6, x_1999); +if (lean_obj_tag(x_2002) == 0) +{ +lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; +x_2003 = lean_ctor_get(x_2002, 0); +lean_inc(x_2003); +x_2004 = lean_ctor_get(x_2002, 1); +lean_inc(x_2004); +lean_dec(x_2002); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2005 = lean_whnf(x_2003, x_3, x_4, x_5, x_6, x_2004); +if (lean_obj_tag(x_2005) == 0) +{ +lean_object* x_2006; +x_2006 = lean_ctor_get(x_2005, 0); +lean_inc(x_2006); +if (lean_obj_tag(x_2006) == 7) +{ +lean_object* x_2007; +x_2007 = lean_ctor_get(x_2006, 1); +lean_inc(x_2007); +if (lean_obj_tag(x_2007) == 3) +{ +lean_object* x_2008; +x_2008 = lean_ctor_get(x_2006, 2); +lean_inc(x_2008); +lean_dec(x_2006); +if (lean_obj_tag(x_2008) == 3) +{ +lean_object* x_2009; lean_object* x_2010; lean_object* x_2011; lean_object* x_2012; +x_2009 = lean_ctor_get(x_2005, 1); +lean_inc(x_2009); +lean_dec(x_2005); +x_2010 = lean_ctor_get(x_2007, 0); +lean_inc(x_2010); +lean_dec(x_2007); +x_2011 = lean_ctor_get(x_2008, 0); +lean_inc(x_2011); +lean_dec(x_2008); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2012 = l_Lean_Meta_decLevel(x_2000, x_3, x_4, x_5, x_6, x_2009); +if (lean_obj_tag(x_2012) == 0) +{ +lean_object* x_2013; lean_object* x_2014; lean_object* x_2015; +x_2013 = lean_ctor_get(x_2012, 0); +lean_inc(x_2013); +x_2014 = lean_ctor_get(x_2012, 1); +lean_inc(x_2014); +lean_dec(x_2012); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2015 = l_Lean_Meta_decLevel(x_2010, x_3, x_4, x_5, x_6, x_2014); +if (lean_obj_tag(x_2015) == 0) +{ +lean_object* x_2016; lean_object* x_2017; lean_object* x_2018; uint8_t x_2019; lean_object* x_2020; +x_2016 = lean_ctor_get(x_2015, 0); +lean_inc(x_2016); +x_2017 = lean_ctor_get(x_2015, 1); +lean_inc(x_2017); +if (lean_is_exclusive(x_2015)) { + lean_ctor_release(x_2015, 0); + lean_ctor_release(x_2015, 1); + x_2018 = x_2015; +} else { + lean_dec_ref(x_2015); + x_2018 = lean_box(0); +} +x_2019 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2013); +x_2020 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_2013, x_2016, x_2019, x_3, x_4, x_5, x_6, x_2017); +if (lean_obj_tag(x_2020) == 0) +{ +lean_object* x_2021; uint8_t x_2022; +x_2021 = lean_ctor_get(x_2020, 0); +lean_inc(x_2021); +x_2022 = lean_unbox(x_2021); +lean_dec(x_2021); +if (x_2022 == 0) +{ +lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; +lean_dec(x_2018); +lean_dec(x_2013); +lean_dec(x_2011); +lean_dec(x_2001); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2023 = lean_ctor_get(x_2020, 1); +lean_inc(x_2023); +if (lean_is_exclusive(x_2020)) { + lean_ctor_release(x_2020, 0); + lean_ctor_release(x_2020, 1); + x_2024 = x_2020; +} else { + lean_dec_ref(x_2020); + x_2024 = lean_box(0); +} +x_2025 = lean_box(0); +if (lean_is_scalar(x_2024)) { + x_2026 = lean_alloc_ctor(0, 2, 0); +} else { + x_2026 = x_2024; +} +lean_ctor_set(x_2026, 0, x_2025); +lean_ctor_set(x_2026, 1, x_2023); +return x_2026; +} +else +{ +lean_object* x_2027; lean_object* x_2028; +x_2027 = lean_ctor_get(x_2020, 1); +lean_inc(x_2027); +lean_dec(x_2020); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2028 = l_Lean_Meta_decLevel(x_2001, x_3, x_4, x_5, x_6, x_2027); +if (lean_obj_tag(x_2028) == 0) +{ +lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; +x_2029 = lean_ctor_get(x_2028, 0); +lean_inc(x_2029); +x_2030 = lean_ctor_get(x_2028, 1); +lean_inc(x_2030); +if (lean_is_exclusive(x_2028)) { + lean_ctor_release(x_2028, 0); + lean_ctor_release(x_2028, 1); + x_2031 = x_2028; +} else { + lean_dec_ref(x_2028); + x_2031 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2032 = l_Lean_Meta_decLevel(x_2011, x_3, x_4, x_5, x_6, x_2030); +if (lean_obj_tag(x_2032) == 0) +{ +lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; lean_object* x_2045; lean_object* x_2046; lean_object* x_2047; +x_2033 = lean_ctor_get(x_2032, 0); +lean_inc(x_2033); +x_2034 = lean_ctor_get(x_2032, 1); +lean_inc(x_2034); +if (lean_is_exclusive(x_2032)) { + lean_ctor_release(x_2032, 0); + lean_ctor_release(x_2032, 1); + x_2035 = x_2032; +} else { + lean_dec_ref(x_2032); + x_2035 = lean_box(0); +} +x_2036 = lean_box(0); +if (lean_is_scalar(x_2035)) { + x_2037 = lean_alloc_ctor(1, 2, 0); +} else { + x_2037 = x_2035; + lean_ctor_set_tag(x_2037, 1); +} +lean_ctor_set(x_2037, 0, x_2033); +lean_ctor_set(x_2037, 1, x_2036); +if (lean_is_scalar(x_2031)) { + x_2038 = lean_alloc_ctor(1, 2, 0); +} else { + x_2038 = x_2031; + lean_ctor_set_tag(x_2038, 1); +} +lean_ctor_set(x_2038, 0, x_2029); +lean_ctor_set(x_2038, 1, x_2037); +if (lean_is_scalar(x_2018)) { + x_2039 = lean_alloc_ctor(1, 2, 0); +} else { + x_2039 = x_2018; + lean_ctor_set_tag(x_2039, 1); +} +lean_ctor_set(x_2039, 0, x_2013); +lean_ctor_set(x_2039, 1, x_2038); +x_2040 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_2041 = l_Lean_Expr_const___override(x_2040, x_2039); +x_2042 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_1979); +x_2043 = lean_array_push(x_2042, x_1979); +lean_inc(x_51); +x_2044 = lean_array_push(x_2043, x_51); +x_2045 = l_Lean_mkAppN(x_2041, x_2044); +x_2046 = lean_box(0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2047 = l_Lean_Meta_trySynthInstance(x_2045, x_2046, x_3, x_4, x_5, x_6, x_2034); +if (lean_obj_tag(x_2047) == 0) +{ +lean_object* x_2048; +x_2048 = lean_ctor_get(x_2047, 0); +lean_inc(x_2048); +if (lean_obj_tag(x_2048) == 1) +{ +lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; +x_2049 = lean_ctor_get(x_2047, 1); +lean_inc(x_2049); +lean_dec(x_2047); +x_2050 = lean_ctor_get(x_2048, 0); +lean_inc(x_2050); +lean_dec(x_2048); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1980); +x_2051 = l_Lean_Meta_getDecLevel(x_1980, x_3, x_4, x_5, x_6, x_2049); if (lean_obj_tag(x_2051) == 0) { lean_object* x_2052; lean_object* x_2053; lean_object* x_2054; lean_object* x_2055; @@ -17131,11 +17187,10 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1932); -x_2055 = l_Lean_Meta_getLevel(x_1932, x_3, x_4, x_5, x_6, x_2053); +x_2055 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_2053); if (lean_obj_tag(x_2055) == 0) { -lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; uint8_t x_2070; lean_object* x_2071; lean_object* x_2072; +lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; x_2056 = lean_ctor_get(x_2055, 0); lean_inc(x_2056); x_2057 = lean_ctor_get(x_2055, 1); @@ -17148,1624 +17203,4234 @@ if (lean_is_exclusive(x_2055)) { lean_dec_ref(x_2055); x_2058 = lean_box(0); } +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_2059 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_2057); +if (lean_obj_tag(x_2059) == 0) +{ +lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; +x_2060 = lean_ctor_get(x_2059, 0); +lean_inc(x_2060); +x_2061 = lean_ctor_get(x_2059, 1); +lean_inc(x_2061); +if (lean_is_exclusive(x_2059)) { + lean_ctor_release(x_2059, 0); + lean_ctor_release(x_2059, 1); + x_2062 = x_2059; +} else { + lean_dec_ref(x_2059); + x_2062 = lean_box(0); +} +if (lean_is_scalar(x_2062)) { + x_2063 = lean_alloc_ctor(1, 2, 0); +} else { + x_2063 = x_2062; + lean_ctor_set_tag(x_2063, 1); +} +lean_ctor_set(x_2063, 0, x_2060); +lean_ctor_set(x_2063, 1, x_2036); if (lean_is_scalar(x_2058)) { - x_2059 = lean_alloc_ctor(1, 2, 0); + x_2064 = lean_alloc_ctor(1, 2, 0); } else { - x_2059 = x_2058; - lean_ctor_set_tag(x_2059, 1); + x_2064 = x_2058; + lean_ctor_set_tag(x_2064, 1); } -lean_ctor_set(x_2059, 0, x_2056); -lean_ctor_set(x_2059, 1, x_1998); +lean_ctor_set(x_2064, 0, x_2056); +lean_ctor_set(x_2064, 1, x_2063); if (lean_is_scalar(x_2054)) { - x_2060 = lean_alloc_ctor(1, 2, 0); + x_2065 = lean_alloc_ctor(1, 2, 0); } else { - x_2060 = x_2054; - lean_ctor_set_tag(x_2060, 1); + x_2065 = x_2054; + lean_ctor_set_tag(x_2065, 1); } -lean_ctor_set(x_2060, 0, x_2052); -lean_ctor_set(x_2060, 1, x_2059); -x_2061 = l_Lean_Meta_coerceSimple_x3f___closed__2; -x_2062 = l_Lean_Expr_const___override(x_2061, x_2060); -x_2063 = l_Lean_Meta_coerceSimple_x3f___closed__3; -lean_inc(x_1943); -x_2064 = lean_array_push(x_2063, x_1943); -x_2065 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; -x_2066 = lean_array_push(x_2064, x_2065); -lean_inc(x_1932); -x_2067 = lean_array_push(x_2066, x_1932); -x_2068 = l_Lean_mkAppN(x_2062, x_2067); -x_2069 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; -x_2070 = 0; -lean_inc(x_1943); -x_2071 = l_Lean_Expr_forallE___override(x_2069, x_1943, x_2068, x_2070); +lean_ctor_set(x_2065, 0, x_2052); +lean_ctor_set(x_2065, 1, x_2064); +x_2066 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_2065); +x_2067 = l_Lean_Expr_const___override(x_2066, x_2065); +x_2068 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_1979); +x_2069 = lean_array_push(x_2068, x_1979); +lean_inc(x_51); +x_2070 = lean_array_push(x_2069, x_51); +lean_inc(x_2050); +x_2071 = lean_array_push(x_2070, x_2050); +lean_inc(x_1980); +x_2072 = lean_array_push(x_2071, x_1980); +lean_inc(x_1); +x_2073 = lean_array_push(x_2072, x_1); +x_2074 = l_Lean_mkAppN(x_2067, x_2073); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_2072 = l_Lean_Meta_trySynthInstance(x_2071, x_2008, x_3, x_4, x_5, x_6, x_2057); -if (lean_obj_tag(x_2072) == 0) -{ -lean_object* x_2073; -x_2073 = lean_ctor_get(x_2072, 0); -lean_inc(x_2073); -if (lean_obj_tag(x_2073) == 1) -{ -lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; -x_2074 = lean_ctor_get(x_2072, 1); lean_inc(x_2074); -lean_dec(x_2072); -x_2075 = lean_ctor_get(x_2073, 0); -lean_inc(x_2075); -lean_dec(x_2073); -x_2076 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; -x_2077 = l_Lean_Expr_const___override(x_2076, x_2027); -x_2078 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; -x_2079 = lean_array_push(x_2078, x_1942); -x_2080 = lean_array_push(x_2079, x_1931); -x_2081 = lean_array_push(x_2080, x_1943); -x_2082 = lean_array_push(x_2081, x_1932); -x_2083 = lean_array_push(x_2082, x_2012); -x_2084 = lean_array_push(x_2083, x_2075); -x_2085 = lean_array_push(x_2084, x_2050); -x_2086 = lean_array_push(x_2085, x_1); -x_2087 = l_Lean_mkAppN(x_2077, x_2086); +x_2075 = lean_infer_type(x_2074, x_3, x_4, x_5, x_6, x_2061); +if (lean_obj_tag(x_2075) == 0) +{ +lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; +x_2076 = lean_ctor_get(x_2075, 0); +lean_inc(x_2076); +x_2077 = lean_ctor_get(x_2075, 1); +lean_inc(x_2077); +lean_dec(x_2075); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_2088 = l_Lean_Meta_expandCoe(x_2087, x_3, x_4, x_5, x_6, x_2074); -if (lean_obj_tag(x_2088) == 0) +lean_inc(x_32); +x_2078 = l_Lean_Meta_isExprDefEq(x_32, x_2076, x_3, x_4, x_5, x_6, x_2077); +if (lean_obj_tag(x_2078) == 0) { -lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; -x_2089 = lean_ctor_get(x_2088, 0); -lean_inc(x_2089); -x_2090 = lean_ctor_get(x_2088, 1); -lean_inc(x_2090); -lean_dec(x_2088); +lean_object* x_2079; uint8_t x_2080; +x_2079 = lean_ctor_get(x_2078, 0); +lean_inc(x_2079); +x_2080 = lean_unbox(x_2079); +lean_dec(x_2079); +if (x_2080 == 0) +{ +lean_object* x_2081; lean_object* x_2082; +lean_dec(x_2074); +x_2081 = lean_ctor_get(x_2078, 1); +lean_inc(x_2081); +lean_dec(x_2078); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2089); -x_2091 = lean_infer_type(x_2089, x_3, x_4, x_5, x_6, x_2090); -if (lean_obj_tag(x_2091) == 0) +lean_inc(x_51); +x_2082 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_2081); +if (lean_obj_tag(x_2082) == 0) { -lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; -x_2092 = lean_ctor_get(x_2091, 0); -lean_inc(x_2092); -x_2093 = lean_ctor_get(x_2091, 1); -lean_inc(x_2093); -lean_dec(x_2091); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_2094 = l_Lean_Meta_isExprDefEq(x_16, x_2092, x_3, x_4, x_5, x_6, x_2093); -if (lean_obj_tag(x_2094) == 0) +lean_object* x_2083; +x_2083 = lean_ctor_get(x_2082, 0); +lean_inc(x_2083); +if (lean_obj_tag(x_2083) == 0) { -lean_object* x_2095; uint8_t x_2096; -x_2095 = lean_ctor_get(x_2094, 0); -lean_inc(x_2095); -x_2096 = lean_unbox(x_2095); -lean_dec(x_2095); -if (x_2096 == 0) -{ -lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; -lean_dec(x_2089); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_2097 = lean_ctor_get(x_2094, 1); -lean_inc(x_2097); -if (lean_is_exclusive(x_2094)) { - lean_ctor_release(x_2094, 0); - lean_ctor_release(x_2094, 1); - x_2098 = x_2094; -} else { - lean_dec_ref(x_2094); - x_2098 = lean_box(0); -} -if (lean_is_scalar(x_2098)) { - x_2099 = lean_alloc_ctor(0, 2, 0); -} else { - x_2099 = x_2098; -} -lean_ctor_set(x_2099, 0, x_2008); -lean_ctor_set(x_2099, 1, x_2097); -return x_2099; -} -else -{ -lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; -x_2100 = lean_ctor_get(x_2094, 1); -lean_inc(x_2100); -lean_dec(x_2094); -x_2101 = lean_box(0); -x_2102 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_2089, x_2101, x_3, x_4, x_5, x_6, x_2100); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_2103 = lean_ctor_get(x_2102, 0); -lean_inc(x_2103); -x_2104 = lean_ctor_get(x_2102, 1); -lean_inc(x_2104); -if (lean_is_exclusive(x_2102)) { - lean_ctor_release(x_2102, 0); - lean_ctor_release(x_2102, 1); - x_2105 = x_2102; -} else { - lean_dec_ref(x_2102); - x_2105 = lean_box(0); -} -if (lean_is_scalar(x_2105)) { - x_2106 = lean_alloc_ctor(0, 2, 0); -} else { - x_2106 = x_2105; -} -lean_ctor_set(x_2106, 0, x_2103); -lean_ctor_set(x_2106, 1, x_2104); -return x_2106; -} -} -else -{ -lean_object* x_2107; lean_object* x_2108; -lean_dec(x_2089); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_2107 = lean_ctor_get(x_2094, 0); -lean_inc(x_2107); -x_2108 = lean_ctor_get(x_2094, 1); -lean_inc(x_2108); -lean_dec(x_2094); -x_8 = x_2107; -x_9 = x_2108; -goto block_14; -} -} -else -{ -lean_object* x_2109; lean_object* x_2110; -lean_dec(x_2089); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_2109 = lean_ctor_get(x_2091, 0); -lean_inc(x_2109); -x_2110 = lean_ctor_get(x_2091, 1); -lean_inc(x_2110); -lean_dec(x_2091); -x_8 = x_2109; -x_9 = x_2110; -goto block_14; -} -} -else -{ -lean_object* x_2111; lean_object* x_2112; -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_2111 = lean_ctor_get(x_2088, 0); -lean_inc(x_2111); -x_2112 = lean_ctor_get(x_2088, 1); -lean_inc(x_2112); -lean_dec(x_2088); -x_8 = x_2111; -x_9 = x_2112; -goto block_14; -} -} -else -{ -lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; -lean_dec(x_2073); +lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; +lean_dec(x_2065); lean_dec(x_2050); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2113 = lean_ctor_get(x_2072, 1); -lean_inc(x_2113); -if (lean_is_exclusive(x_2072)) { - lean_ctor_release(x_2072, 0); - lean_ctor_release(x_2072, 1); - x_2114 = x_2072; -} else { - lean_dec_ref(x_2072); - x_2114 = lean_box(0); -} -if (lean_is_scalar(x_2114)) { - x_2115 = lean_alloc_ctor(0, 2, 0); -} else { - x_2115 = x_2114; -} -lean_ctor_set(x_2115, 0, x_2008); -lean_ctor_set(x_2115, 1, x_2113); -return x_2115; -} -} -else -{ -lean_object* x_2116; lean_object* x_2117; -lean_dec(x_2050); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2116 = lean_ctor_get(x_2072, 0); -lean_inc(x_2116); -x_2117 = lean_ctor_get(x_2072, 1); -lean_inc(x_2117); -lean_dec(x_2072); -x_8 = x_2116; -x_9 = x_2117; -goto block_14; -} -} -else -{ -lean_object* x_2118; lean_object* x_2119; -lean_dec(x_2054); -lean_dec(x_2052); -lean_dec(x_2050); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2118 = lean_ctor_get(x_2055, 0); -lean_inc(x_2118); -x_2119 = lean_ctor_get(x_2055, 1); -lean_inc(x_2119); -lean_dec(x_2055); -x_8 = x_2118; -x_9 = x_2119; -goto block_14; -} -} -else -{ -lean_object* x_2120; lean_object* x_2121; -lean_dec(x_2050); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2120 = lean_ctor_get(x_2051, 0); -lean_inc(x_2120); -x_2121 = lean_ctor_get(x_2051, 1); -lean_inc(x_2121); -lean_dec(x_2051); -x_8 = x_2120; -x_9 = x_2121; -goto block_14; -} -} -} -else -{ -lean_object* x_2122; lean_object* x_2123; -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2122 = lean_ctor_get(x_2044, 0); -lean_inc(x_2122); -x_2123 = lean_ctor_get(x_2044, 1); -lean_inc(x_2123); -lean_dec(x_2044); -x_8 = x_2122; -x_9 = x_2123; -goto block_14; -} -} -else -{ -lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2124 = lean_ctor_get(x_2040, 1); -lean_inc(x_2124); -if (lean_is_exclusive(x_2040)) { - lean_ctor_release(x_2040, 0); - lean_ctor_release(x_2040, 1); - x_2125 = x_2040; -} else { - lean_dec_ref(x_2040); - x_2125 = lean_box(0); -} -if (lean_is_scalar(x_1940)) { - x_2126 = lean_alloc_ctor(1, 1, 0); -} else { - x_2126 = x_1940; -} -lean_ctor_set(x_2126, 0, x_2036); -if (lean_is_scalar(x_2125)) { - x_2127 = lean_alloc_ctor(0, 2, 0); -} else { - x_2127 = x_2125; -} -lean_ctor_set(x_2127, 0, x_2126); -lean_ctor_set(x_2127, 1, x_2124); -return x_2127; -} -} -else -{ -lean_object* x_2128; lean_object* x_2129; -lean_dec(x_2036); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2128 = lean_ctor_get(x_2040, 0); -lean_inc(x_2128); -x_2129 = lean_ctor_get(x_2040, 1); -lean_inc(x_2129); -lean_dec(x_2040); -x_8 = x_2128; -x_9 = x_2129; -goto block_14; -} -} -else -{ -lean_object* x_2130; lean_object* x_2131; -lean_dec(x_2036); -lean_dec(x_2027); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2130 = lean_ctor_get(x_2037, 0); -lean_inc(x_2130); -x_2131 = lean_ctor_get(x_2037, 1); -lean_inc(x_2131); -lean_dec(x_2037); -x_8 = x_2130; -x_9 = x_2131; -goto block_14; -} -} -else -{ -lean_object* x_2132; lean_object* x_2133; -lean_dec(x_2020); -lean_dec(x_2018); -lean_dec(x_2016); -lean_dec(x_2014); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2132 = lean_ctor_get(x_2021, 0); -lean_inc(x_2132); -x_2133 = lean_ctor_get(x_2021, 1); -lean_inc(x_2133); -lean_dec(x_2021); -x_8 = x_2132; -x_9 = x_2133; -goto block_14; -} -} -else -{ -lean_object* x_2134; lean_object* x_2135; -lean_dec(x_2016); -lean_dec(x_2014); -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2134 = lean_ctor_get(x_2017, 0); -lean_inc(x_2134); -x_2135 = lean_ctor_get(x_2017, 1); -lean_inc(x_2135); -lean_dec(x_2017); -x_8 = x_2134; -x_9 = x_2135; -goto block_14; -} -} -else -{ -lean_object* x_2136; lean_object* x_2137; -lean_dec(x_2012); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2136 = lean_ctor_get(x_2013, 0); -lean_inc(x_2136); -x_2137 = lean_ctor_get(x_2013, 1); -lean_inc(x_2137); -lean_dec(x_2013); -x_8 = x_2136; -x_9 = x_2137; -goto block_14; -} -} -else -{ -lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; -lean_dec(x_2010); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2138 = lean_ctor_get(x_2009, 1); -lean_inc(x_2138); -if (lean_is_exclusive(x_2009)) { - lean_ctor_release(x_2009, 0); - lean_ctor_release(x_2009, 1); - x_2139 = x_2009; -} else { - lean_dec_ref(x_2009); - x_2139 = lean_box(0); -} -if (lean_is_scalar(x_2139)) { - x_2140 = lean_alloc_ctor(0, 2, 0); -} else { - x_2140 = x_2139; -} -lean_ctor_set(x_2140, 0, x_2008); -lean_ctor_set(x_2140, 1, x_2138); -return x_2140; -} -} -else -{ -lean_object* x_2141; lean_object* x_2142; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2141 = lean_ctor_get(x_2009, 0); -lean_inc(x_2141); -x_2142 = lean_ctor_get(x_2009, 1); -lean_inc(x_2142); -lean_dec(x_2009); -x_8 = x_2141; -x_9 = x_2142; -goto block_14; -} -} -else -{ -lean_object* x_2143; lean_object* x_2144; -lean_dec(x_1993); -lean_dec(x_1991); lean_dec(x_1980); -lean_dec(x_1975); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2143 = lean_ctor_get(x_1994, 0); -lean_inc(x_2143); -x_2144 = lean_ctor_get(x_1994, 1); -lean_inc(x_2144); -lean_dec(x_1994); -x_8 = x_2143; -x_9 = x_2144; -goto block_14; +x_2084 = lean_ctor_get(x_2082, 1); +lean_inc(x_2084); +if (lean_is_exclusive(x_2082)) { + lean_ctor_release(x_2082, 0); + lean_ctor_release(x_2082, 1); + x_2085 = x_2082; +} else { + lean_dec_ref(x_2082); + x_2085 = lean_box(0); +} +if (lean_is_scalar(x_2085)) { + x_2086 = lean_alloc_ctor(0, 2, 0); +} else { + x_2086 = x_2085; +} +lean_ctor_set(x_2086, 0, x_2046); +lean_ctor_set(x_2086, 1, x_2084); +return x_2086; +} +else +{ +lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; +x_2087 = lean_ctor_get(x_2082, 1); +lean_inc(x_2087); +lean_dec(x_2082); +x_2088 = lean_ctor_get(x_2083, 0); +lean_inc(x_2088); +lean_dec(x_2083); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1980); +x_2089 = l_Lean_Meta_getLevel(x_1980, x_3, x_4, x_5, x_6, x_2087); +if (lean_obj_tag(x_2089) == 0) +{ +lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; +x_2090 = lean_ctor_get(x_2089, 0); +lean_inc(x_2090); +x_2091 = lean_ctor_get(x_2089, 1); +lean_inc(x_2091); +if (lean_is_exclusive(x_2089)) { + lean_ctor_release(x_2089, 0); + lean_ctor_release(x_2089, 1); + x_2092 = x_2089; +} else { + lean_dec_ref(x_2089); + x_2092 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_52); +x_2093 = l_Lean_Meta_getLevel(x_52, x_3, x_4, x_5, x_6, x_2091); +if (lean_obj_tag(x_2093) == 0) +{ +lean_object* x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; uint8_t x_2108; lean_object* x_2109; lean_object* x_2110; +x_2094 = lean_ctor_get(x_2093, 0); +lean_inc(x_2094); +x_2095 = lean_ctor_get(x_2093, 1); +lean_inc(x_2095); +if (lean_is_exclusive(x_2093)) { + lean_ctor_release(x_2093, 0); + lean_ctor_release(x_2093, 1); + x_2096 = x_2093; +} else { + lean_dec_ref(x_2093); + x_2096 = lean_box(0); +} +if (lean_is_scalar(x_2096)) { + x_2097 = lean_alloc_ctor(1, 2, 0); +} else { + x_2097 = x_2096; + lean_ctor_set_tag(x_2097, 1); +} +lean_ctor_set(x_2097, 0, x_2094); +lean_ctor_set(x_2097, 1, x_2036); +if (lean_is_scalar(x_2092)) { + x_2098 = lean_alloc_ctor(1, 2, 0); +} else { + x_2098 = x_2092; + lean_ctor_set_tag(x_2098, 1); +} +lean_ctor_set(x_2098, 0, x_2090); +lean_ctor_set(x_2098, 1, x_2097); +x_2099 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_2100 = l_Lean_Expr_const___override(x_2099, x_2098); +x_2101 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_1980); +x_2102 = lean_array_push(x_2101, x_1980); +x_2103 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_2104 = lean_array_push(x_2102, x_2103); +lean_inc(x_52); +x_2105 = lean_array_push(x_2104, x_52); +x_2106 = l_Lean_mkAppN(x_2100, x_2105); +x_2107 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_2108 = 0; +lean_inc(x_1980); +x_2109 = l_Lean_Expr_forallE___override(x_2107, x_1980, x_2106, x_2108); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2110 = l_Lean_Meta_trySynthInstance(x_2109, x_2046, x_3, x_4, x_5, x_6, x_2095); +if (lean_obj_tag(x_2110) == 0) +{ +lean_object* x_2111; +x_2111 = lean_ctor_get(x_2110, 0); +lean_inc(x_2111); +if (lean_obj_tag(x_2111) == 1) +{ +lean_object* x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; +x_2112 = lean_ctor_get(x_2110, 1); +lean_inc(x_2112); +lean_dec(x_2110); +x_2113 = lean_ctor_get(x_2111, 0); +lean_inc(x_2113); +lean_dec(x_2111); +x_2114 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_2115 = l_Lean_Expr_const___override(x_2114, x_2065); +x_2116 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_2117 = lean_array_push(x_2116, x_1979); +x_2118 = lean_array_push(x_2117, x_51); +x_2119 = lean_array_push(x_2118, x_1980); +x_2120 = lean_array_push(x_2119, x_52); +x_2121 = lean_array_push(x_2120, x_2050); +x_2122 = lean_array_push(x_2121, x_2113); +x_2123 = lean_array_push(x_2122, x_2088); +x_2124 = lean_array_push(x_2123, x_1); +x_2125 = l_Lean_mkAppN(x_2115, x_2124); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2126 = l_Lean_Meta_expandCoe(x_2125, x_3, x_4, x_5, x_6, x_2112); +if (lean_obj_tag(x_2126) == 0) +{ +lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; +x_2127 = lean_ctor_get(x_2126, 0); +lean_inc(x_2127); +x_2128 = lean_ctor_get(x_2126, 1); +lean_inc(x_2128); +lean_dec(x_2126); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2127); +x_2129 = lean_infer_type(x_2127, x_3, x_4, x_5, x_6, x_2128); +if (lean_obj_tag(x_2129) == 0) +{ +lean_object* x_2130; lean_object* x_2131; lean_object* x_2132; +x_2130 = lean_ctor_get(x_2129, 0); +lean_inc(x_2130); +x_2131 = lean_ctor_get(x_2129, 1); +lean_inc(x_2131); +lean_dec(x_2129); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2132 = l_Lean_Meta_isExprDefEq(x_32, x_2130, x_3, x_4, x_5, x_6, x_2131); +if (lean_obj_tag(x_2132) == 0) +{ +lean_object* x_2133; uint8_t x_2134; +x_2133 = lean_ctor_get(x_2132, 0); +lean_inc(x_2133); +x_2134 = lean_unbox(x_2133); +lean_dec(x_2133); +if (x_2134 == 0) +{ +lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; +lean_dec(x_2127); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2135 = lean_ctor_get(x_2132, 1); +lean_inc(x_2135); +if (lean_is_exclusive(x_2132)) { + lean_ctor_release(x_2132, 0); + lean_ctor_release(x_2132, 1); + x_2136 = x_2132; +} else { + lean_dec_ref(x_2132); + x_2136 = lean_box(0); +} +if (lean_is_scalar(x_2136)) { + x_2137 = lean_alloc_ctor(0, 2, 0); +} else { + x_2137 = x_2136; +} +lean_ctor_set(x_2137, 0, x_2046); +lean_ctor_set(x_2137, 1, x_2135); +return x_2137; +} +else +{ +lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; +x_2138 = lean_ctor_get(x_2132, 1); +lean_inc(x_2138); +lean_dec(x_2132); +x_2139 = lean_box(0); +x_2140 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_2127, x_2139, x_3, x_4, x_5, x_6, x_2138); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2141 = lean_ctor_get(x_2140, 0); +lean_inc(x_2141); +x_2142 = lean_ctor_get(x_2140, 1); +lean_inc(x_2142); +if (lean_is_exclusive(x_2140)) { + lean_ctor_release(x_2140, 0); + lean_ctor_release(x_2140, 1); + x_2143 = x_2140; +} else { + lean_dec_ref(x_2140); + x_2143 = lean_box(0); +} +if (lean_is_scalar(x_2143)) { + x_2144 = lean_alloc_ctor(0, 2, 0); +} else { + x_2144 = x_2143; +} +lean_ctor_set(x_2144, 0, x_2141); +lean_ctor_set(x_2144, 1, x_2142); +return x_2144; } } else { lean_object* x_2145; lean_object* x_2146; -lean_dec(x_1980); -lean_dec(x_1975); -lean_dec(x_1973); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_2127); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_2145 = lean_ctor_get(x_1990, 0); +x_2145 = lean_ctor_get(x_2132, 0); lean_inc(x_2145); -x_2146 = lean_ctor_get(x_1990, 1); +x_2146 = lean_ctor_get(x_2132, 1); lean_inc(x_2146); -lean_dec(x_1990); +lean_dec(x_2132); x_8 = x_2145; x_9 = x_2146; -goto block_14; -} +goto block_16; } } else { lean_object* x_2147; lean_object* x_2148; -lean_dec(x_1980); -lean_dec(x_1975); -lean_dec(x_1973); -lean_dec(x_1963); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_2127); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_2147 = lean_ctor_get(x_1982, 0); +x_2147 = lean_ctor_get(x_2129, 0); lean_inc(x_2147); -x_2148 = lean_ctor_get(x_1982, 1); +x_2148 = lean_ctor_get(x_2129, 1); lean_inc(x_2148); -lean_dec(x_1982); +lean_dec(x_2129); x_8 = x_2147; x_9 = x_2148; -goto block_14; +goto block_16; } } else { lean_object* x_2149; lean_object* x_2150; -lean_dec(x_1975); -lean_dec(x_1973); -lean_dec(x_1963); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_2149 = lean_ctor_get(x_1977, 0); +x_2149 = lean_ctor_get(x_2126, 0); lean_inc(x_2149); -x_2150 = lean_ctor_get(x_1977, 1); +x_2150 = lean_ctor_get(x_2126, 1); lean_inc(x_2150); -lean_dec(x_1977); +lean_dec(x_2126); x_8 = x_2149; x_9 = x_2150; -goto block_14; +goto block_16; } } else { -lean_object* x_2151; lean_object* x_2152; -lean_dec(x_1973); -lean_dec(x_1972); -lean_dec(x_1963); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; +lean_dec(x_2111); +lean_dec(x_2088); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2151 = lean_ctor_get(x_1974, 0); +x_2151 = lean_ctor_get(x_2110, 1); lean_inc(x_2151); -x_2152 = lean_ctor_get(x_1974, 1); -lean_inc(x_2152); -lean_dec(x_1974); -x_8 = x_2151; -x_9 = x_2152; -goto block_14; +if (lean_is_exclusive(x_2110)) { + lean_ctor_release(x_2110, 0); + lean_ctor_release(x_2110, 1); + x_2152 = x_2110; +} else { + lean_dec_ref(x_2110); + x_2152 = lean_box(0); +} +if (lean_is_scalar(x_2152)) { + x_2153 = lean_alloc_ctor(0, 2, 0); +} else { + x_2153 = x_2152; +} +lean_ctor_set(x_2153, 0, x_2046); +lean_ctor_set(x_2153, 1, x_2151); +return x_2153; } } else { -lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; -lean_dec(x_1970); -lean_dec(x_1969); -lean_dec(x_1963); -lean_dec(x_1962); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2154; lean_object* x_2155; +lean_dec(x_2088); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2153 = lean_ctor_get(x_1967, 1); -lean_inc(x_2153); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_2154 = x_1967; -} else { - lean_dec_ref(x_1967); - x_2154 = lean_box(0); -} -x_2155 = lean_box(0); -if (lean_is_scalar(x_2154)) { - x_2156 = lean_alloc_ctor(0, 2, 0); -} else { - x_2156 = x_2154; -} -lean_ctor_set(x_2156, 0, x_2155); -lean_ctor_set(x_2156, 1, x_2153); -return x_2156; +x_2154 = lean_ctor_get(x_2110, 0); +lean_inc(x_2154); +x_2155 = lean_ctor_get(x_2110, 1); +lean_inc(x_2155); +lean_dec(x_2110); +x_8 = x_2154; +x_9 = x_2155; +goto block_16; } } else { -lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; -lean_dec(x_1969); -lean_dec(x_1968); -lean_dec(x_1963); -lean_dec(x_1962); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2156; lean_object* x_2157; +lean_dec(x_2092); +lean_dec(x_2090); +lean_dec(x_2088); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2157 = lean_ctor_get(x_1967, 1); +x_2156 = lean_ctor_get(x_2093, 0); +lean_inc(x_2156); +x_2157 = lean_ctor_get(x_2093, 1); lean_inc(x_2157); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_2158 = x_1967; -} else { - lean_dec_ref(x_1967); - x_2158 = lean_box(0); -} -x_2159 = lean_box(0); -if (lean_is_scalar(x_2158)) { - x_2160 = lean_alloc_ctor(0, 2, 0); -} else { - x_2160 = x_2158; -} -lean_ctor_set(x_2160, 0, x_2159); -lean_ctor_set(x_2160, 1, x_2157); -return x_2160; +lean_dec(x_2093); +x_8 = x_2156; +x_9 = x_2157; +goto block_16; } } else { -lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; -lean_dec(x_1968); -lean_dec(x_1963); -lean_dec(x_1962); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2158; lean_object* x_2159; +lean_dec(x_2088); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2161 = lean_ctor_get(x_1967, 1); +x_2158 = lean_ctor_get(x_2089, 0); +lean_inc(x_2158); +x_2159 = lean_ctor_get(x_2089, 1); +lean_inc(x_2159); +lean_dec(x_2089); +x_8 = x_2158; +x_9 = x_2159; +goto block_16; +} +} +} +else +{ +lean_object* x_2160; lean_object* x_2161; +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2160 = lean_ctor_get(x_2082, 0); +lean_inc(x_2160); +x_2161 = lean_ctor_get(x_2082, 1); lean_inc(x_2161); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_2162 = x_1967; -} else { - lean_dec_ref(x_1967); - x_2162 = lean_box(0); -} -x_2163 = lean_box(0); -if (lean_is_scalar(x_2162)) { - x_2164 = lean_alloc_ctor(0, 2, 0); -} else { - x_2164 = x_2162; -} -lean_ctor_set(x_2164, 0, x_2163); -lean_ctor_set(x_2164, 1, x_2161); -return x_2164; +lean_dec(x_2082); +x_8 = x_2160; +x_9 = x_2161; +goto block_16; } } else { -lean_object* x_2165; lean_object* x_2166; lean_object* x_2167; uint8_t x_2168; -lean_dec(x_1963); -lean_dec(x_1962); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2165 = lean_ctor_get(x_1967, 0); -lean_inc(x_2165); -x_2166 = lean_ctor_get(x_1967, 1); +x_2162 = lean_ctor_get(x_2078, 1); +lean_inc(x_2162); +if (lean_is_exclusive(x_2078)) { + lean_ctor_release(x_2078, 0); + lean_ctor_release(x_2078, 1); + x_2163 = x_2078; +} else { + lean_dec_ref(x_2078); + x_2163 = lean_box(0); +} +x_2164 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2164, 0, x_2074); +if (lean_is_scalar(x_2163)) { + x_2165 = lean_alloc_ctor(0, 2, 0); +} else { + x_2165 = x_2163; +} +lean_ctor_set(x_2165, 0, x_2164); +lean_ctor_set(x_2165, 1, x_2162); +return x_2165; +} +} +else +{ +lean_object* x_2166; lean_object* x_2167; +lean_dec(x_2074); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2166 = lean_ctor_get(x_2078, 0); lean_inc(x_2166); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_2167 = x_1967; -} else { - lean_dec_ref(x_1967); - x_2167 = lean_box(0); -} -x_2168 = l_Lean_Exception_isRuntime(x_2165); -if (x_2168 == 0) -{ -lean_object* x_2169; lean_object* x_2170; -lean_dec(x_2165); -x_2169 = lean_box(0); -if (lean_is_scalar(x_2167)) { - x_2170 = lean_alloc_ctor(0, 2, 0); -} else { - x_2170 = x_2167; - lean_ctor_set_tag(x_2170, 0); -} -lean_ctor_set(x_2170, 0, x_2169); -lean_ctor_set(x_2170, 1, x_2166); -return x_2170; -} -else -{ -lean_object* x_2171; -if (lean_is_scalar(x_2167)) { - x_2171 = lean_alloc_ctor(1, 2, 0); -} else { - x_2171 = x_2167; -} -lean_ctor_set(x_2171, 0, x_2165); -lean_ctor_set(x_2171, 1, x_2166); -return x_2171; -} +x_2167 = lean_ctor_get(x_2078, 1); +lean_inc(x_2167); +lean_dec(x_2078); +x_8 = x_2166; +x_9 = x_2167; +goto block_16; } } else { -lean_object* x_2172; lean_object* x_2173; lean_object* x_2174; uint8_t x_2175; -lean_dec(x_1963); -lean_dec(x_1962); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2168; lean_object* x_2169; +lean_dec(x_2074); +lean_dec(x_2065); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2172 = lean_ctor_get(x_1964, 0); -lean_inc(x_2172); -x_2173 = lean_ctor_get(x_1964, 1); -lean_inc(x_2173); -if (lean_is_exclusive(x_1964)) { - lean_ctor_release(x_1964, 0); - lean_ctor_release(x_1964, 1); - x_2174 = x_1964; -} else { - lean_dec_ref(x_1964); - x_2174 = lean_box(0); +x_2168 = lean_ctor_get(x_2075, 0); +lean_inc(x_2168); +x_2169 = lean_ctor_get(x_2075, 1); +lean_inc(x_2169); +lean_dec(x_2075); +x_8 = x_2168; +x_9 = x_2169; +goto block_16; } -x_2175 = l_Lean_Exception_isRuntime(x_2172); -if (x_2175 == 0) -{ -lean_object* x_2176; lean_object* x_2177; -lean_dec(x_2172); -x_2176 = lean_box(0); -if (lean_is_scalar(x_2174)) { - x_2177 = lean_alloc_ctor(0, 2, 0); -} else { - x_2177 = x_2174; - lean_ctor_set_tag(x_2177, 0); -} -lean_ctor_set(x_2177, 0, x_2176); -lean_ctor_set(x_2177, 1, x_2173); -return x_2177; } else { -lean_object* x_2178; -if (lean_is_scalar(x_2174)) { - x_2178 = lean_alloc_ctor(1, 2, 0); -} else { - x_2178 = x_2174; +lean_object* x_2170; lean_object* x_2171; +lean_dec(x_2058); +lean_dec(x_2056); +lean_dec(x_2054); +lean_dec(x_2052); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2170 = lean_ctor_get(x_2059, 0); +lean_inc(x_2170); +x_2171 = lean_ctor_get(x_2059, 1); +lean_inc(x_2171); +lean_dec(x_2059); +x_8 = x_2170; +x_9 = x_2171; +goto block_16; } -lean_ctor_set(x_2178, 0, x_2172); -lean_ctor_set(x_2178, 1, x_2173); +} +else +{ +lean_object* x_2172; lean_object* x_2173; +lean_dec(x_2054); +lean_dec(x_2052); +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2172 = lean_ctor_get(x_2055, 0); +lean_inc(x_2172); +x_2173 = lean_ctor_get(x_2055, 1); +lean_inc(x_2173); +lean_dec(x_2055); +x_8 = x_2172; +x_9 = x_2173; +goto block_16; +} +} +else +{ +lean_object* x_2174; lean_object* x_2175; +lean_dec(x_2050); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2174 = lean_ctor_get(x_2051, 0); +lean_inc(x_2174); +x_2175 = lean_ctor_get(x_2051, 1); +lean_inc(x_2175); +lean_dec(x_2051); +x_8 = x_2174; +x_9 = x_2175; +goto block_16; +} +} +else +{ +lean_object* x_2176; lean_object* x_2177; lean_object* x_2178; +lean_dec(x_2048); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2176 = lean_ctor_get(x_2047, 1); +lean_inc(x_2176); +if (lean_is_exclusive(x_2047)) { + lean_ctor_release(x_2047, 0); + lean_ctor_release(x_2047, 1); + x_2177 = x_2047; +} else { + lean_dec_ref(x_2047); + x_2177 = lean_box(0); +} +if (lean_is_scalar(x_2177)) { + x_2178 = lean_alloc_ctor(0, 2, 0); +} else { + x_2178 = x_2177; +} +lean_ctor_set(x_2178, 0, x_2046); +lean_ctor_set(x_2178, 1, x_2176); return x_2178; } } -} else { -lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; -lean_dec(x_1960); -lean_dec(x_1959); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2179; lean_object* x_2180; +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2179 = lean_ctor_get(x_1957, 1); +x_2179 = lean_ctor_get(x_2047, 0); lean_inc(x_2179); -if (lean_is_exclusive(x_1957)) { - lean_ctor_release(x_1957, 0); - lean_ctor_release(x_1957, 1); - x_2180 = x_1957; -} else { - lean_dec_ref(x_1957); - x_2180 = lean_box(0); -} -x_2181 = lean_box(0); -if (lean_is_scalar(x_2180)) { - x_2182 = lean_alloc_ctor(0, 2, 0); -} else { - x_2182 = x_2180; -} -lean_ctor_set(x_2182, 0, x_2181); -lean_ctor_set(x_2182, 1, x_2179); -return x_2182; +x_2180 = lean_ctor_get(x_2047, 1); +lean_inc(x_2180); +lean_dec(x_2047); +x_8 = x_2179; +x_9 = x_2180; +goto block_16; } } else { -lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; -lean_dec(x_1959); -lean_dec(x_1958); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2181; lean_object* x_2182; +lean_dec(x_2031); +lean_dec(x_2029); +lean_dec(x_2018); +lean_dec(x_2013); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2183 = lean_ctor_get(x_1957, 1); +x_2181 = lean_ctor_get(x_2032, 0); +lean_inc(x_2181); +x_2182 = lean_ctor_get(x_2032, 1); +lean_inc(x_2182); +lean_dec(x_2032); +x_8 = x_2181; +x_9 = x_2182; +goto block_16; +} +} +else +{ +lean_object* x_2183; lean_object* x_2184; +lean_dec(x_2018); +lean_dec(x_2013); +lean_dec(x_2011); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2183 = lean_ctor_get(x_2028, 0); lean_inc(x_2183); -if (lean_is_exclusive(x_1957)) { - lean_ctor_release(x_1957, 0); - lean_ctor_release(x_1957, 1); - x_2184 = x_1957; -} else { - lean_dec_ref(x_1957); - x_2184 = lean_box(0); +x_2184 = lean_ctor_get(x_2028, 1); +lean_inc(x_2184); +lean_dec(x_2028); +x_8 = x_2183; +x_9 = x_2184; +goto block_16; } -x_2185 = lean_box(0); -if (lean_is_scalar(x_2184)) { - x_2186 = lean_alloc_ctor(0, 2, 0); -} else { - x_2186 = x_2184; -} -lean_ctor_set(x_2186, 0, x_2185); -lean_ctor_set(x_2186, 1, x_2183); -return x_2186; } } else { -lean_object* x_2187; lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; -lean_dec(x_1958); -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2185; lean_object* x_2186; +lean_dec(x_2018); +lean_dec(x_2013); +lean_dec(x_2011); +lean_dec(x_2001); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2187 = lean_ctor_get(x_1957, 1); +x_2185 = lean_ctor_get(x_2020, 0); +lean_inc(x_2185); +x_2186 = lean_ctor_get(x_2020, 1); +lean_inc(x_2186); +lean_dec(x_2020); +x_8 = x_2185; +x_9 = x_2186; +goto block_16; +} +} +else +{ +lean_object* x_2187; lean_object* x_2188; +lean_dec(x_2013); +lean_dec(x_2011); +lean_dec(x_2001); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2187 = lean_ctor_get(x_2015, 0); lean_inc(x_2187); -if (lean_is_exclusive(x_1957)) { - lean_ctor_release(x_1957, 0); - lean_ctor_release(x_1957, 1); - x_2188 = x_1957; -} else { - lean_dec_ref(x_1957); - x_2188 = lean_box(0); -} -x_2189 = lean_box(0); -if (lean_is_scalar(x_2188)) { - x_2190 = lean_alloc_ctor(0, 2, 0); -} else { - x_2190 = x_2188; -} -lean_ctor_set(x_2190, 0, x_2189); -lean_ctor_set(x_2190, 1, x_2187); -return x_2190; +x_2188 = lean_ctor_get(x_2015, 1); +lean_inc(x_2188); +lean_dec(x_2015); +x_8 = x_2187; +x_9 = x_2188; +goto block_16; } } else { -lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; uint8_t x_2194; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2189; lean_object* x_2190; +lean_dec(x_2011); +lean_dec(x_2010); +lean_dec(x_2001); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2191 = lean_ctor_get(x_1957, 0); +x_2189 = lean_ctor_get(x_2012, 0); +lean_inc(x_2189); +x_2190 = lean_ctor_get(x_2012, 1); +lean_inc(x_2190); +lean_dec(x_2012); +x_8 = x_2189; +x_9 = x_2190; +goto block_16; +} +} +else +{ +lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; +lean_dec(x_2008); +lean_dec(x_2007); +lean_dec(x_2001); +lean_dec(x_2000); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2191 = lean_ctor_get(x_2005, 1); lean_inc(x_2191); -x_2192 = lean_ctor_get(x_1957, 1); -lean_inc(x_2192); -if (lean_is_exclusive(x_1957)) { - lean_ctor_release(x_1957, 0); - lean_ctor_release(x_1957, 1); - x_2193 = x_1957; +if (lean_is_exclusive(x_2005)) { + lean_ctor_release(x_2005, 0); + lean_ctor_release(x_2005, 1); + x_2192 = x_2005; } else { - lean_dec_ref(x_1957); - x_2193 = lean_box(0); + lean_dec_ref(x_2005); + x_2192 = lean_box(0); } -x_2194 = l_Lean_Exception_isRuntime(x_2191); -if (x_2194 == 0) -{ -lean_object* x_2195; lean_object* x_2196; -lean_dec(x_2191); -x_2195 = lean_box(0); -if (lean_is_scalar(x_2193)) { - x_2196 = lean_alloc_ctor(0, 2, 0); +x_2193 = lean_box(0); +if (lean_is_scalar(x_2192)) { + x_2194 = lean_alloc_ctor(0, 2, 0); } else { - x_2196 = x_2193; - lean_ctor_set_tag(x_2196, 0); -} -lean_ctor_set(x_2196, 0, x_2195); -lean_ctor_set(x_2196, 1, x_2192); -return x_2196; -} -else -{ -lean_object* x_2197; -if (lean_is_scalar(x_2193)) { - x_2197 = lean_alloc_ctor(1, 2, 0); -} else { - x_2197 = x_2193; -} -lean_ctor_set(x_2197, 0, x_2191); -lean_ctor_set(x_2197, 1, x_2192); -return x_2197; + x_2194 = x_2192; } +lean_ctor_set(x_2194, 0, x_2193); +lean_ctor_set(x_2194, 1, x_2191); +return x_2194; } } else { -lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; uint8_t x_2201; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; +lean_dec(x_2007); +lean_dec(x_2006); +lean_dec(x_2001); +lean_dec(x_2000); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2198 = lean_ctor_get(x_1954, 0); -lean_inc(x_2198); -x_2199 = lean_ctor_get(x_1954, 1); -lean_inc(x_2199); -if (lean_is_exclusive(x_1954)) { - lean_ctor_release(x_1954, 0); - lean_ctor_release(x_1954, 1); - x_2200 = x_1954; +x_2195 = lean_ctor_get(x_2005, 1); +lean_inc(x_2195); +if (lean_is_exclusive(x_2005)) { + lean_ctor_release(x_2005, 0); + lean_ctor_release(x_2005, 1); + x_2196 = x_2005; } else { - lean_dec_ref(x_1954); + lean_dec_ref(x_2005); + x_2196 = lean_box(0); +} +x_2197 = lean_box(0); +if (lean_is_scalar(x_2196)) { + x_2198 = lean_alloc_ctor(0, 2, 0); +} else { + x_2198 = x_2196; +} +lean_ctor_set(x_2198, 0, x_2197); +lean_ctor_set(x_2198, 1, x_2195); +return x_2198; +} +} +else +{ +lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; +lean_dec(x_2006); +lean_dec(x_2001); +lean_dec(x_2000); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2199 = lean_ctor_get(x_2005, 1); +lean_inc(x_2199); +if (lean_is_exclusive(x_2005)) { + lean_ctor_release(x_2005, 0); + lean_ctor_release(x_2005, 1); + x_2200 = x_2005; +} else { + lean_dec_ref(x_2005); x_2200 = lean_box(0); } -x_2201 = l_Lean_Exception_isRuntime(x_2198); -if (x_2201 == 0) -{ -lean_object* x_2202; lean_object* x_2203; -lean_dec(x_2198); -x_2202 = lean_box(0); +x_2201 = lean_box(0); if (lean_is_scalar(x_2200)) { - x_2203 = lean_alloc_ctor(0, 2, 0); + x_2202 = lean_alloc_ctor(0, 2, 0); } else { - x_2203 = x_2200; - lean_ctor_set_tag(x_2203, 0); -} -lean_ctor_set(x_2203, 0, x_2202); -lean_ctor_set(x_2203, 1, x_2199); -return x_2203; -} -else -{ -lean_object* x_2204; -if (lean_is_scalar(x_2200)) { - x_2204 = lean_alloc_ctor(1, 2, 0); -} else { - x_2204 = x_2200; -} -lean_ctor_set(x_2204, 0, x_2198); -lean_ctor_set(x_2204, 1, x_2199); -return x_2204; -} + x_2202 = x_2200; } +lean_ctor_set(x_2202, 0, x_2201); +lean_ctor_set(x_2202, 1, x_2199); +return x_2202; } } else { -lean_object* x_2205; lean_object* x_2206; -lean_dec(x_22); -lean_dec(x_16); -x_2205 = lean_ctor_get(x_1944, 1); -lean_inc(x_2205); -lean_dec(x_1944); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_2206 = l_Lean_Meta_isMonad_x3f(x_1931, x_3, x_4, x_5, x_6, x_2205); -if (lean_obj_tag(x_2206) == 0) -{ -lean_object* x_2207; -x_2207 = lean_ctor_get(x_2206, 0); -lean_inc(x_2207); -if (lean_obj_tag(x_2207) == 0) -{ -lean_object* x_2208; lean_object* x_2209; lean_object* x_2210; lean_object* x_2211; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); +lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; uint8_t x_2206; +lean_dec(x_2001); +lean_dec(x_2000); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2208 = lean_ctor_get(x_2206, 1); -lean_inc(x_2208); -if (lean_is_exclusive(x_2206)) { - lean_ctor_release(x_2206, 0); - lean_ctor_release(x_2206, 1); - x_2209 = x_2206; +x_2203 = lean_ctor_get(x_2005, 0); +lean_inc(x_2203); +x_2204 = lean_ctor_get(x_2005, 1); +lean_inc(x_2204); +if (lean_is_exclusive(x_2005)) { + lean_ctor_release(x_2005, 0); + lean_ctor_release(x_2005, 1); + x_2205 = x_2005; } else { - lean_dec_ref(x_2206); - x_2209 = lean_box(0); + lean_dec_ref(x_2005); + x_2205 = lean_box(0); } -x_2210 = lean_box(0); -if (lean_is_scalar(x_2209)) { - x_2211 = lean_alloc_ctor(0, 2, 0); +x_2206 = l_Lean_Exception_isInterrupt(x_2203); +if (x_2206 == 0) +{ +uint8_t x_2207; +x_2207 = l_Lean_Exception_isRuntime(x_2203); +if (x_2207 == 0) +{ +lean_object* x_2208; lean_object* x_2209; +lean_dec(x_2203); +x_2208 = lean_box(0); +if (lean_is_scalar(x_2205)) { + x_2209 = lean_alloc_ctor(0, 2, 0); } else { - x_2211 = x_2209; + x_2209 = x_2205; + lean_ctor_set_tag(x_2209, 0); } -lean_ctor_set(x_2211, 0, x_2210); -lean_ctor_set(x_2211, 1, x_2208); +lean_ctor_set(x_2209, 0, x_2208); +lean_ctor_set(x_2209, 1, x_2204); +return x_2209; +} +else +{ +lean_object* x_2210; +if (lean_is_scalar(x_2205)) { + x_2210 = lean_alloc_ctor(1, 2, 0); +} else { + x_2210 = x_2205; +} +lean_ctor_set(x_2210, 0, x_2203); +lean_ctor_set(x_2210, 1, x_2204); +return x_2210; +} +} +else +{ +lean_object* x_2211; +if (lean_is_scalar(x_2205)) { + x_2211 = lean_alloc_ctor(1, 2, 0); +} else { + x_2211 = x_2205; +} +lean_ctor_set(x_2211, 0, x_2203); +lean_ctor_set(x_2211, 1, x_2204); return x_2211; } -else -{ -lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; lean_object* x_2220; lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; -x_2212 = lean_ctor_get(x_2206, 1); -lean_inc(x_2212); -lean_dec(x_2206); -x_2213 = lean_ctor_get(x_2207, 0); -lean_inc(x_2213); -if (lean_is_exclusive(x_2207)) { - lean_ctor_release(x_2207, 0); - x_2214 = x_2207; -} else { - lean_dec_ref(x_2207); - x_2214 = lean_box(0); -} -if (lean_is_scalar(x_2214)) { - x_2215 = lean_alloc_ctor(1, 1, 0); -} else { - x_2215 = x_2214; -} -lean_ctor_set(x_2215, 0, x_1942); -if (lean_is_scalar(x_1940)) { - x_2216 = lean_alloc_ctor(1, 1, 0); -} else { - x_2216 = x_1940; -} -lean_ctor_set(x_2216, 0, x_1943); -x_2217 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2217, 0, x_1932); -x_2218 = lean_box(0); -x_2219 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2219, 0, x_2213); -x_2220 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2220, 0, x_1); -x_2221 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; -x_2222 = lean_array_push(x_2221, x_2215); -x_2223 = lean_array_push(x_2222, x_2216); -x_2224 = lean_array_push(x_2223, x_2217); -x_2225 = lean_array_push(x_2224, x_2218); -x_2226 = lean_array_push(x_2225, x_2219); -x_2227 = lean_array_push(x_2226, x_2220); -x_2228 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_2229 = l_Lean_Meta_mkAppOptM(x_2228, x_2227, x_3, x_4, x_5, x_6, x_2212); -if (lean_obj_tag(x_2229) == 0) -{ -lean_object* x_2230; lean_object* x_2231; lean_object* x_2232; -x_2230 = lean_ctor_get(x_2229, 0); -lean_inc(x_2230); -x_2231 = lean_ctor_get(x_2229, 1); -lean_inc(x_2231); -lean_dec(x_2229); -x_2232 = l_Lean_Meta_expandCoe(x_2230, x_3, x_4, x_5, x_6, x_2231); -if (lean_obj_tag(x_2232) == 0) -{ -lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; -x_2233 = lean_ctor_get(x_2232, 0); -lean_inc(x_2233); -x_2234 = lean_ctor_get(x_2232, 1); -lean_inc(x_2234); -if (lean_is_exclusive(x_2232)) { - lean_ctor_release(x_2232, 0); - lean_ctor_release(x_2232, 1); - x_2235 = x_2232; -} else { - lean_dec_ref(x_2232); - x_2235 = lean_box(0); -} -x_2236 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2236, 0, x_2233); -if (lean_is_scalar(x_2235)) { - x_2237 = lean_alloc_ctor(0, 2, 0); -} else { - x_2237 = x_2235; -} -lean_ctor_set(x_2237, 0, x_2236); -lean_ctor_set(x_2237, 1, x_2234); -return x_2237; -} -else -{ -lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; uint8_t x_2241; -x_2238 = lean_ctor_get(x_2232, 0); -lean_inc(x_2238); -x_2239 = lean_ctor_get(x_2232, 1); -lean_inc(x_2239); -if (lean_is_exclusive(x_2232)) { - lean_ctor_release(x_2232, 0); - lean_ctor_release(x_2232, 1); - x_2240 = x_2232; -} else { - lean_dec_ref(x_2232); - x_2240 = lean_box(0); -} -x_2241 = l_Lean_Exception_isRuntime(x_2238); -if (x_2241 == 0) -{ -lean_object* x_2242; -lean_dec(x_2238); -if (lean_is_scalar(x_2240)) { - x_2242 = lean_alloc_ctor(0, 2, 0); -} else { - x_2242 = x_2240; - lean_ctor_set_tag(x_2242, 0); -} -lean_ctor_set(x_2242, 0, x_2218); -lean_ctor_set(x_2242, 1, x_2239); -return x_2242; -} -else -{ -lean_object* x_2243; -if (lean_is_scalar(x_2240)) { - x_2243 = lean_alloc_ctor(1, 2, 0); -} else { - x_2243 = x_2240; -} -lean_ctor_set(x_2243, 0, x_2238); -lean_ctor_set(x_2243, 1, x_2239); -return x_2243; -} } } else { -lean_object* x_2244; lean_object* x_2245; lean_object* x_2246; uint8_t x_2247; +lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; uint8_t x_2215; +lean_dec(x_2001); +lean_dec(x_2000); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_2244 = lean_ctor_get(x_2229, 0); -lean_inc(x_2244); -x_2245 = lean_ctor_get(x_2229, 1); -lean_inc(x_2245); -if (lean_is_exclusive(x_2229)) { - lean_ctor_release(x_2229, 0); - lean_ctor_release(x_2229, 1); - x_2246 = x_2229; +lean_dec(x_1); +x_2212 = lean_ctor_get(x_2002, 0); +lean_inc(x_2212); +x_2213 = lean_ctor_get(x_2002, 1); +lean_inc(x_2213); +if (lean_is_exclusive(x_2002)) { + lean_ctor_release(x_2002, 0); + lean_ctor_release(x_2002, 1); + x_2214 = x_2002; } else { - lean_dec_ref(x_2229); - x_2246 = lean_box(0); + lean_dec_ref(x_2002); + x_2214 = lean_box(0); } -x_2247 = l_Lean_Exception_isRuntime(x_2244); -if (x_2247 == 0) +x_2215 = l_Lean_Exception_isInterrupt(x_2212); +if (x_2215 == 0) { -lean_object* x_2248; -lean_dec(x_2244); -if (lean_is_scalar(x_2246)) { +uint8_t x_2216; +x_2216 = l_Lean_Exception_isRuntime(x_2212); +if (x_2216 == 0) +{ +lean_object* x_2217; lean_object* x_2218; +lean_dec(x_2212); +x_2217 = lean_box(0); +if (lean_is_scalar(x_2214)) { + x_2218 = lean_alloc_ctor(0, 2, 0); +} else { + x_2218 = x_2214; + lean_ctor_set_tag(x_2218, 0); +} +lean_ctor_set(x_2218, 0, x_2217); +lean_ctor_set(x_2218, 1, x_2213); +return x_2218; +} +else +{ +lean_object* x_2219; +if (lean_is_scalar(x_2214)) { + x_2219 = lean_alloc_ctor(1, 2, 0); +} else { + x_2219 = x_2214; +} +lean_ctor_set(x_2219, 0, x_2212); +lean_ctor_set(x_2219, 1, x_2213); +return x_2219; +} +} +else +{ +lean_object* x_2220; +if (lean_is_scalar(x_2214)) { + x_2220 = lean_alloc_ctor(1, 2, 0); +} else { + x_2220 = x_2214; +} +lean_ctor_set(x_2220, 0, x_2212); +lean_ctor_set(x_2220, 1, x_2213); +return x_2220; +} +} +} +else +{ +lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; +lean_dec(x_1998); +lean_dec(x_1997); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2221 = lean_ctor_get(x_1995, 1); +lean_inc(x_2221); +if (lean_is_exclusive(x_1995)) { + lean_ctor_release(x_1995, 0); + lean_ctor_release(x_1995, 1); + x_2222 = x_1995; +} else { + lean_dec_ref(x_1995); + x_2222 = lean_box(0); +} +x_2223 = lean_box(0); +if (lean_is_scalar(x_2222)) { + x_2224 = lean_alloc_ctor(0, 2, 0); +} else { + x_2224 = x_2222; +} +lean_ctor_set(x_2224, 0, x_2223); +lean_ctor_set(x_2224, 1, x_2221); +return x_2224; +} +} +else +{ +lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; +lean_dec(x_1997); +lean_dec(x_1996); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2225 = lean_ctor_get(x_1995, 1); +lean_inc(x_2225); +if (lean_is_exclusive(x_1995)) { + lean_ctor_release(x_1995, 0); + lean_ctor_release(x_1995, 1); + x_2226 = x_1995; +} else { + lean_dec_ref(x_1995); + x_2226 = lean_box(0); +} +x_2227 = lean_box(0); +if (lean_is_scalar(x_2226)) { + x_2228 = lean_alloc_ctor(0, 2, 0); +} else { + x_2228 = x_2226; +} +lean_ctor_set(x_2228, 0, x_2227); +lean_ctor_set(x_2228, 1, x_2225); +return x_2228; +} +} +else +{ +lean_object* x_2229; lean_object* x_2230; lean_object* x_2231; lean_object* x_2232; +lean_dec(x_1996); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2229 = lean_ctor_get(x_1995, 1); +lean_inc(x_2229); +if (lean_is_exclusive(x_1995)) { + lean_ctor_release(x_1995, 0); + lean_ctor_release(x_1995, 1); + x_2230 = x_1995; +} else { + lean_dec_ref(x_1995); + x_2230 = lean_box(0); +} +x_2231 = lean_box(0); +if (lean_is_scalar(x_2230)) { + x_2232 = lean_alloc_ctor(0, 2, 0); +} else { + x_2232 = x_2230; +} +lean_ctor_set(x_2232, 0, x_2231); +lean_ctor_set(x_2232, 1, x_2229); +return x_2232; +} +} +else +{ +lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; uint8_t x_2236; +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2233 = lean_ctor_get(x_1995, 0); +lean_inc(x_2233); +x_2234 = lean_ctor_get(x_1995, 1); +lean_inc(x_2234); +if (lean_is_exclusive(x_1995)) { + lean_ctor_release(x_1995, 0); + lean_ctor_release(x_1995, 1); + x_2235 = x_1995; +} else { + lean_dec_ref(x_1995); + x_2235 = lean_box(0); +} +x_2236 = l_Lean_Exception_isInterrupt(x_2233); +if (x_2236 == 0) +{ +uint8_t x_2237; +x_2237 = l_Lean_Exception_isRuntime(x_2233); +if (x_2237 == 0) +{ +lean_object* x_2238; lean_object* x_2239; +lean_dec(x_2233); +x_2238 = lean_box(0); +if (lean_is_scalar(x_2235)) { + x_2239 = lean_alloc_ctor(0, 2, 0); +} else { + x_2239 = x_2235; + lean_ctor_set_tag(x_2239, 0); +} +lean_ctor_set(x_2239, 0, x_2238); +lean_ctor_set(x_2239, 1, x_2234); +return x_2239; +} +else +{ +lean_object* x_2240; +if (lean_is_scalar(x_2235)) { + x_2240 = lean_alloc_ctor(1, 2, 0); +} else { + x_2240 = x_2235; +} +lean_ctor_set(x_2240, 0, x_2233); +lean_ctor_set(x_2240, 1, x_2234); +return x_2240; +} +} +else +{ +lean_object* x_2241; +if (lean_is_scalar(x_2235)) { + x_2241 = lean_alloc_ctor(1, 2, 0); +} else { + x_2241 = x_2235; +} +lean_ctor_set(x_2241, 0, x_2233); +lean_ctor_set(x_2241, 1, x_2234); +return x_2241; +} +} +} +else +{ +lean_object* x_2242; lean_object* x_2243; lean_object* x_2244; uint8_t x_2245; +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2242 = lean_ctor_get(x_1992, 0); +lean_inc(x_2242); +x_2243 = lean_ctor_get(x_1992, 1); +lean_inc(x_2243); +if (lean_is_exclusive(x_1992)) { + lean_ctor_release(x_1992, 0); + lean_ctor_release(x_1992, 1); + x_2244 = x_1992; +} else { + lean_dec_ref(x_1992); + x_2244 = lean_box(0); +} +x_2245 = l_Lean_Exception_isInterrupt(x_2242); +if (x_2245 == 0) +{ +uint8_t x_2246; +x_2246 = l_Lean_Exception_isRuntime(x_2242); +if (x_2246 == 0) +{ +lean_object* x_2247; lean_object* x_2248; +lean_dec(x_2242); +x_2247 = lean_box(0); +if (lean_is_scalar(x_2244)) { x_2248 = lean_alloc_ctor(0, 2, 0); } else { - x_2248 = x_2246; + x_2248 = x_2244; lean_ctor_set_tag(x_2248, 0); } -lean_ctor_set(x_2248, 0, x_2218); -lean_ctor_set(x_2248, 1, x_2245); +lean_ctor_set(x_2248, 0, x_2247); +lean_ctor_set(x_2248, 1, x_2243); return x_2248; } else { lean_object* x_2249; -if (lean_is_scalar(x_2246)) { +if (lean_is_scalar(x_2244)) { x_2249 = lean_alloc_ctor(1, 2, 0); } else { - x_2249 = x_2246; + x_2249 = x_2244; } -lean_ctor_set(x_2249, 0, x_2244); -lean_ctor_set(x_2249, 1, x_2245); +lean_ctor_set(x_2249, 0, x_2242); +lean_ctor_set(x_2249, 1, x_2243); return x_2249; } } +else +{ +lean_object* x_2250; +if (lean_is_scalar(x_2244)) { + x_2250 = lean_alloc_ctor(1, 2, 0); +} else { + x_2250 = x_2244; +} +lean_ctor_set(x_2250, 0, x_2242); +lean_ctor_set(x_2250, 1, x_2243); +return x_2250; +} +} } } else { -lean_object* x_2250; lean_object* x_2251; lean_object* x_2252; lean_object* x_2253; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2250 = lean_ctor_get(x_2206, 0); -lean_inc(x_2250); -x_2251 = lean_ctor_get(x_2206, 1); +lean_object* x_2251; lean_object* x_2252; +lean_dec(x_38); +lean_dec(x_32); +x_2251 = lean_ctor_get(x_1982, 1); lean_inc(x_2251); -if (lean_is_exclusive(x_2206)) { - lean_ctor_release(x_2206, 0); - lean_ctor_release(x_2206, 1); - x_2252 = x_2206; -} else { - lean_dec_ref(x_2206); - x_2252 = lean_box(0); -} -if (lean_is_scalar(x_2252)) { - x_2253 = lean_alloc_ctor(1, 2, 0); -} else { - x_2253 = x_2252; -} -lean_ctor_set(x_2253, 0, x_2250); -lean_ctor_set(x_2253, 1, x_2251); -return x_2253; -} -} -} -else +lean_dec(x_1982); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2252 = l_Lean_Meta_isMonad_x3f(x_51, x_3, x_4, x_5, x_6, x_2251); +if (lean_obj_tag(x_2252) == 0) +{ +lean_object* x_2253; +x_2253 = lean_ctor_get(x_2252, 0); +lean_inc(x_2253); +if (lean_obj_tag(x_2253) == 0) { lean_object* x_2254; lean_object* x_2255; lean_object* x_2256; lean_object* x_2257; -lean_dec(x_1943); -lean_dec(x_1942); -lean_dec(x_1940); -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); +lean_dec(x_1981); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_free_object(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2254 = lean_ctor_get(x_1944, 0); +x_2254 = lean_ctor_get(x_2252, 1); lean_inc(x_2254); -x_2255 = lean_ctor_get(x_1944, 1); -lean_inc(x_2255); -if (lean_is_exclusive(x_1944)) { - lean_ctor_release(x_1944, 0); - lean_ctor_release(x_1944, 1); - x_2256 = x_1944; +if (lean_is_exclusive(x_2252)) { + lean_ctor_release(x_2252, 0); + lean_ctor_release(x_2252, 1); + x_2255 = x_2252; } else { - lean_dec_ref(x_1944); - x_2256 = lean_box(0); + lean_dec_ref(x_2252); + x_2255 = lean_box(0); } -if (lean_is_scalar(x_2256)) { - x_2257 = lean_alloc_ctor(1, 2, 0); +x_2256 = lean_box(0); +if (lean_is_scalar(x_2255)) { + x_2257 = lean_alloc_ctor(0, 2, 0); } else { - x_2257 = x_2256; + x_2257 = x_2255; } -lean_ctor_set(x_2257, 0, x_2254); -lean_ctor_set(x_2257, 1, x_2255); +lean_ctor_set(x_2257, 0, x_2256); +lean_ctor_set(x_2257, 1, x_2254); return x_2257; } -} -} else { -lean_object* x_2258; lean_object* x_2259; lean_object* x_2260; lean_object* x_2261; -lean_dec(x_1932); -lean_dec(x_1931); -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_2258 = lean_ctor_get(x_1933, 0); +lean_object* x_2258; lean_object* x_2259; lean_object* x_2260; lean_object* x_2261; lean_object* x_2262; lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; lean_object* x_2273; lean_object* x_2274; +x_2258 = lean_ctor_get(x_2252, 1); lean_inc(x_2258); -x_2259 = lean_ctor_get(x_1933, 1); +lean_dec(x_2252); +x_2259 = lean_ctor_get(x_2253, 0); lean_inc(x_2259); -if (lean_is_exclusive(x_1933)) { - lean_ctor_release(x_1933, 0); - lean_ctor_release(x_1933, 1); - x_2260 = x_1933; +if (lean_is_exclusive(x_2253)) { + lean_ctor_release(x_2253, 0); + x_2260 = x_2253; } else { - lean_dec_ref(x_1933); + lean_dec_ref(x_2253); x_2260 = lean_box(0); } if (lean_is_scalar(x_2260)) { - x_2261 = lean_alloc_ctor(1, 2, 0); + x_2261 = lean_alloc_ctor(1, 1, 0); } else { x_2261 = x_2260; } -lean_ctor_set(x_2261, 0, x_2258); -lean_ctor_set(x_2261, 1, x_2259); -return x_2261; +lean_ctor_set(x_2261, 0, x_1979); +x_2262 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2262, 0, x_1980); +lean_ctor_set(x_41, 0, x_52); +x_2263 = lean_box(0); +x_2264 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2264, 0, x_2259); +x_2265 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2265, 0, x_1); +x_2266 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; +x_2267 = lean_array_push(x_2266, x_2261); +x_2268 = lean_array_push(x_2267, x_2262); +x_2269 = lean_array_push(x_2268, x_41); +x_2270 = lean_array_push(x_2269, x_2263); +x_2271 = lean_array_push(x_2270, x_2264); +x_2272 = lean_array_push(x_2271, x_2265); +x_2273 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2274 = l_Lean_Meta_mkAppOptM(x_2273, x_2272, x_3, x_4, x_5, x_6, x_2258); +if (lean_obj_tag(x_2274) == 0) +{ +lean_object* x_2275; lean_object* x_2276; lean_object* x_2277; +x_2275 = lean_ctor_get(x_2274, 0); +lean_inc(x_2275); +x_2276 = lean_ctor_get(x_2274, 1); +lean_inc(x_2276); +lean_dec(x_2274); +x_2277 = l_Lean_Meta_expandCoe(x_2275, x_3, x_4, x_5, x_6, x_2276); +if (lean_obj_tag(x_2277) == 0) +{ +lean_object* x_2278; lean_object* x_2279; lean_object* x_2280; lean_object* x_2281; +x_2278 = lean_ctor_get(x_2277, 0); +lean_inc(x_2278); +x_2279 = lean_ctor_get(x_2277, 1); +lean_inc(x_2279); +lean_dec(x_2277); +x_2280 = lean_box(0); +if (lean_is_scalar(x_1981)) { + x_2281 = lean_alloc_ctor(0, 2, 0); +} else { + x_2281 = x_1981; +} +lean_ctor_set(x_2281, 0, x_2278); +lean_ctor_set(x_2281, 1, x_2280); +x_17 = x_2281; +x_18 = x_2279; +goto block_30; +} +else +{ +lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; uint8_t x_2285; +lean_dec(x_1981); +x_2282 = lean_ctor_get(x_2277, 0); +lean_inc(x_2282); +x_2283 = lean_ctor_get(x_2277, 1); +lean_inc(x_2283); +if (lean_is_exclusive(x_2277)) { + lean_ctor_release(x_2277, 0); + lean_ctor_release(x_2277, 1); + x_2284 = x_2277; +} else { + lean_dec_ref(x_2277); + x_2284 = lean_box(0); +} +x_2285 = l_Lean_Exception_isInterrupt(x_2282); +if (x_2285 == 0) +{ +uint8_t x_2286; +x_2286 = l_Lean_Exception_isRuntime(x_2282); +if (x_2286 == 0) +{ +lean_object* x_2287; +lean_dec(x_2284); +lean_dec(x_2282); +x_2287 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_2287; +x_18 = x_2283; +goto block_30; +} +else +{ +lean_object* x_2288; +if (lean_is_scalar(x_2284)) { + x_2288 = lean_alloc_ctor(1, 2, 0); +} else { + x_2288 = x_2284; +} +lean_ctor_set(x_2288, 0, x_2282); +lean_ctor_set(x_2288, 1, x_2283); +return x_2288; +} +} +else +{ +lean_object* x_2289; +if (lean_is_scalar(x_2284)) { + x_2289 = lean_alloc_ctor(1, 2, 0); +} else { + x_2289 = x_2284; +} +lean_ctor_set(x_2289, 0, x_2282); +lean_ctor_set(x_2289, 1, x_2283); +return x_2289; +} +} +} +else +{ +lean_object* x_2290; lean_object* x_2291; lean_object* x_2292; uint8_t x_2293; +lean_dec(x_1981); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2290 = lean_ctor_get(x_2274, 0); +lean_inc(x_2290); +x_2291 = lean_ctor_get(x_2274, 1); +lean_inc(x_2291); +if (lean_is_exclusive(x_2274)) { + lean_ctor_release(x_2274, 0); + lean_ctor_release(x_2274, 1); + x_2292 = x_2274; +} else { + lean_dec_ref(x_2274); + x_2292 = lean_box(0); +} +x_2293 = l_Lean_Exception_isInterrupt(x_2290); +if (x_2293 == 0) +{ +uint8_t x_2294; +x_2294 = l_Lean_Exception_isRuntime(x_2290); +if (x_2294 == 0) +{ +lean_object* x_2295; +lean_dec(x_2292); +lean_dec(x_2290); +x_2295 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_2295; +x_18 = x_2291; +goto block_30; +} +else +{ +lean_object* x_2296; +if (lean_is_scalar(x_2292)) { + x_2296 = lean_alloc_ctor(1, 2, 0); +} else { + x_2296 = x_2292; +} +lean_ctor_set(x_2296, 0, x_2290); +lean_ctor_set(x_2296, 1, x_2291); +return x_2296; +} +} +else +{ +lean_object* x_2297; +if (lean_is_scalar(x_2292)) { + x_2297 = lean_alloc_ctor(1, 2, 0); +} else { + x_2297 = x_2292; +} +lean_ctor_set(x_2297, 0, x_2290); +lean_ctor_set(x_2297, 1, x_2291); +return x_2297; } } } } else { -uint8_t x_2262; -lean_dec(x_22); -lean_dec(x_16); +lean_object* x_2298; lean_object* x_2299; lean_object* x_2300; lean_object* x_2301; +lean_dec(x_1981); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_free_object(x_41); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2262 = !lean_is_exclusive(x_24); -if (x_2262 == 0) -{ -return x_24; +x_2298 = lean_ctor_get(x_2252, 0); +lean_inc(x_2298); +x_2299 = lean_ctor_get(x_2252, 1); +lean_inc(x_2299); +if (lean_is_exclusive(x_2252)) { + lean_ctor_release(x_2252, 0); + lean_ctor_release(x_2252, 1); + x_2300 = x_2252; +} else { + lean_dec_ref(x_2252); + x_2300 = lean_box(0); } -else -{ -lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; -x_2263 = lean_ctor_get(x_24, 0); -x_2264 = lean_ctor_get(x_24, 1); -lean_inc(x_2264); -lean_inc(x_2263); -lean_dec(x_24); -x_2265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2265, 0, x_2263); -lean_ctor_set(x_2265, 1, x_2264); -return x_2265; +if (lean_is_scalar(x_2300)) { + x_2301 = lean_alloc_ctor(1, 2, 0); +} else { + x_2301 = x_2300; +} +lean_ctor_set(x_2301, 0, x_2298); +lean_ctor_set(x_2301, 1, x_2299); +return x_2301; } } } else { -uint8_t x_2266; -lean_dec(x_16); +lean_object* x_2302; lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; +lean_dec(x_1981); +lean_dec(x_1980); +lean_dec(x_1979); +lean_dec(x_52); +lean_dec(x_51); +lean_free_object(x_41); +lean_dec(x_38); +lean_dec(x_32); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_2266 = !lean_is_exclusive(x_18); -if (x_2266 == 0) -{ -return x_18; +x_2302 = lean_ctor_get(x_1982, 0); +lean_inc(x_2302); +x_2303 = lean_ctor_get(x_1982, 1); +lean_inc(x_2303); +if (lean_is_exclusive(x_1982)) { + lean_ctor_release(x_1982, 0); + lean_ctor_release(x_1982, 1); + x_2304 = x_1982; +} else { + lean_dec_ref(x_1982); + x_2304 = lean_box(0); +} +if (lean_is_scalar(x_2304)) { + x_2305 = lean_alloc_ctor(1, 2, 0); +} else { + x_2305 = x_2304; +} +lean_ctor_set(x_2305, 0, x_2302); +lean_ctor_set(x_2305, 1, x_2303); +return x_2305; +} +} +} } else { -lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; -x_2267 = lean_ctor_get(x_18, 0); -x_2268 = lean_ctor_get(x_18, 1); -lean_inc(x_2268); -lean_inc(x_2267); -lean_dec(x_18); -x_2269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2269, 0, x_2267); -lean_ctor_set(x_2269, 1, x_2268); -return x_2269; +uint8_t x_2306; +lean_dec(x_52); +lean_dec(x_51); +lean_free_object(x_41); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2306 = !lean_is_exclusive(x_53); +if (x_2306 == 0) +{ +return x_53; +} +else +{ +lean_object* x_2307; lean_object* x_2308; lean_object* x_2309; +x_2307 = lean_ctor_get(x_53, 0); +x_2308 = lean_ctor_get(x_53, 1); +lean_inc(x_2308); +lean_inc(x_2307); +lean_dec(x_53); +x_2309 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2309, 0, x_2307); +lean_ctor_set(x_2309, 1, x_2308); +return x_2309; } } -block_14: +} +else +{ +lean_object* x_2310; lean_object* x_2311; lean_object* x_2312; lean_object* x_2313; lean_object* x_2314; +x_2310 = lean_ctor_get(x_41, 0); +lean_inc(x_2310); +lean_dec(x_41); +x_2311 = lean_ctor_get(x_40, 1); +lean_inc(x_2311); +lean_dec(x_40); +x_2312 = lean_ctor_get(x_2310, 0); +lean_inc(x_2312); +x_2313 = lean_ctor_get(x_2310, 1); +lean_inc(x_2313); +lean_dec(x_2310); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_38); +x_2314 = l_Lean_Meta_isTypeApp_x3f(x_38, x_3, x_4, x_5, x_6, x_2311); +if (lean_obj_tag(x_2314) == 0) +{ +lean_object* x_2315; +x_2315 = lean_ctor_get(x_2314, 0); +lean_inc(x_2315); +if (lean_obj_tag(x_2315) == 0) +{ +lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; lean_object* x_2319; +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2316 = lean_ctor_get(x_2314, 1); +lean_inc(x_2316); +if (lean_is_exclusive(x_2314)) { + lean_ctor_release(x_2314, 0); + lean_ctor_release(x_2314, 1); + x_2317 = x_2314; +} else { + lean_dec_ref(x_2314); + x_2317 = lean_box(0); +} +x_2318 = lean_box(0); +if (lean_is_scalar(x_2317)) { + x_2319 = lean_alloc_ctor(0, 2, 0); +} else { + x_2319 = x_2317; +} +lean_ctor_set(x_2319, 0, x_2318); +lean_ctor_set(x_2319, 1, x_2316); +return x_2319; +} +else +{ +lean_object* x_2320; lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; lean_object* x_2326; +x_2320 = lean_ctor_get(x_2315, 0); +lean_inc(x_2320); +if (lean_is_exclusive(x_2315)) { + lean_ctor_release(x_2315, 0); + x_2321 = x_2315; +} else { + lean_dec_ref(x_2315); + x_2321 = lean_box(0); +} +x_2322 = lean_ctor_get(x_2314, 1); +lean_inc(x_2322); +lean_dec(x_2314); +x_2323 = lean_ctor_get(x_2320, 0); +lean_inc(x_2323); +x_2324 = lean_ctor_get(x_2320, 1); +lean_inc(x_2324); +if (lean_is_exclusive(x_2320)) { + lean_ctor_release(x_2320, 0); + lean_ctor_release(x_2320, 1); + x_2325 = x_2320; +} else { + lean_dec_ref(x_2320); + x_2325 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2312); +lean_inc(x_2323); +x_2326 = l_Lean_Meta_isExprDefEq(x_2323, x_2312, x_3, x_4, x_5, x_6, x_2322); +if (lean_obj_tag(x_2326) == 0) +{ +lean_object* x_2327; uint8_t x_2328; +x_2327 = lean_ctor_get(x_2326, 0); +lean_inc(x_2327); +x_2328 = lean_unbox(x_2327); +lean_dec(x_2327); +if (x_2328 == 0) +{ +lean_object* x_2329; lean_object* x_2330; lean_object* x_2331; lean_object* x_2332; uint8_t x_2333; +lean_dec(x_2325); +x_2329 = lean_ctor_get(x_2326, 1); +lean_inc(x_2329); +if (lean_is_exclusive(x_2326)) { + lean_ctor_release(x_2326, 0); + lean_ctor_release(x_2326, 1); + x_2330 = x_2326; +} else { + lean_dec_ref(x_2326); + x_2330 = lean_box(0); +} +x_2331 = lean_ctor_get(x_5, 2); +lean_inc(x_2331); +x_2332 = l_Lean_Meta_coerceMonadLift_x3f___closed__1; +x_2333 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2331, x_2332); +lean_dec(x_2331); +if (x_2333 == 0) +{ +lean_object* x_2334; lean_object* x_2335; +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2334 = lean_box(0); +if (lean_is_scalar(x_2330)) { + x_2335 = lean_alloc_ctor(0, 2, 0); +} else { + x_2335 = x_2330; +} +lean_ctor_set(x_2335, 0, x_2334); +lean_ctor_set(x_2335, 1, x_2329); +return x_2335; +} +else +{ +lean_object* x_2336; +lean_dec(x_2330); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2323); +x_2336 = lean_infer_type(x_2323, x_3, x_4, x_5, x_6, x_2329); +if (lean_obj_tag(x_2336) == 0) +{ +lean_object* x_2337; lean_object* x_2338; lean_object* x_2339; +x_2337 = lean_ctor_get(x_2336, 0); +lean_inc(x_2337); +x_2338 = lean_ctor_get(x_2336, 1); +lean_inc(x_2338); +lean_dec(x_2336); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2339 = lean_whnf(x_2337, x_3, x_4, x_5, x_6, x_2338); +if (lean_obj_tag(x_2339) == 0) +{ +lean_object* x_2340; +x_2340 = lean_ctor_get(x_2339, 0); +lean_inc(x_2340); +if (lean_obj_tag(x_2340) == 7) +{ +lean_object* x_2341; +x_2341 = lean_ctor_get(x_2340, 1); +lean_inc(x_2341); +if (lean_obj_tag(x_2341) == 3) +{ +lean_object* x_2342; +x_2342 = lean_ctor_get(x_2340, 2); +lean_inc(x_2342); +lean_dec(x_2340); +if (lean_obj_tag(x_2342) == 3) +{ +lean_object* x_2343; lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; +x_2343 = lean_ctor_get(x_2339, 1); +lean_inc(x_2343); +lean_dec(x_2339); +x_2344 = lean_ctor_get(x_2341, 0); +lean_inc(x_2344); +lean_dec(x_2341); +x_2345 = lean_ctor_get(x_2342, 0); +lean_inc(x_2345); +lean_dec(x_2342); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2312); +x_2346 = lean_infer_type(x_2312, x_3, x_4, x_5, x_6, x_2343); +if (lean_obj_tag(x_2346) == 0) +{ +lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; +x_2347 = lean_ctor_get(x_2346, 0); +lean_inc(x_2347); +x_2348 = lean_ctor_get(x_2346, 1); +lean_inc(x_2348); +lean_dec(x_2346); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2349 = lean_whnf(x_2347, x_3, x_4, x_5, x_6, x_2348); +if (lean_obj_tag(x_2349) == 0) +{ +lean_object* x_2350; +x_2350 = lean_ctor_get(x_2349, 0); +lean_inc(x_2350); +if (lean_obj_tag(x_2350) == 7) +{ +lean_object* x_2351; +x_2351 = lean_ctor_get(x_2350, 1); +lean_inc(x_2351); +if (lean_obj_tag(x_2351) == 3) +{ +lean_object* x_2352; +x_2352 = lean_ctor_get(x_2350, 2); +lean_inc(x_2352); +lean_dec(x_2350); +if (lean_obj_tag(x_2352) == 3) +{ +lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; lean_object* x_2356; +x_2353 = lean_ctor_get(x_2349, 1); +lean_inc(x_2353); +lean_dec(x_2349); +x_2354 = lean_ctor_get(x_2351, 0); +lean_inc(x_2354); +lean_dec(x_2351); +x_2355 = lean_ctor_get(x_2352, 0); +lean_inc(x_2355); +lean_dec(x_2352); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2356 = l_Lean_Meta_decLevel(x_2344, x_3, x_4, x_5, x_6, x_2353); +if (lean_obj_tag(x_2356) == 0) +{ +lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; +x_2357 = lean_ctor_get(x_2356, 0); +lean_inc(x_2357); +x_2358 = lean_ctor_get(x_2356, 1); +lean_inc(x_2358); +lean_dec(x_2356); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2359 = l_Lean_Meta_decLevel(x_2354, x_3, x_4, x_5, x_6, x_2358); +if (lean_obj_tag(x_2359) == 0) +{ +lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; uint8_t x_2363; lean_object* x_2364; +x_2360 = lean_ctor_get(x_2359, 0); +lean_inc(x_2360); +x_2361 = lean_ctor_get(x_2359, 1); +lean_inc(x_2361); +if (lean_is_exclusive(x_2359)) { + lean_ctor_release(x_2359, 0); + lean_ctor_release(x_2359, 1); + x_2362 = x_2359; +} else { + lean_dec_ref(x_2359); + x_2362 = lean_box(0); +} +x_2363 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2357); +x_2364 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(x_2357, x_2360, x_2363, x_3, x_4, x_5, x_6, x_2361); +if (lean_obj_tag(x_2364) == 0) +{ +lean_object* x_2365; uint8_t x_2366; +x_2365 = lean_ctor_get(x_2364, 0); +lean_inc(x_2365); +x_2366 = lean_unbox(x_2365); +lean_dec(x_2365); +if (x_2366 == 0) +{ +lean_object* x_2367; lean_object* x_2368; lean_object* x_2369; lean_object* x_2370; +lean_dec(x_2362); +lean_dec(x_2357); +lean_dec(x_2355); +lean_dec(x_2345); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2367 = lean_ctor_get(x_2364, 1); +lean_inc(x_2367); +if (lean_is_exclusive(x_2364)) { + lean_ctor_release(x_2364, 0); + lean_ctor_release(x_2364, 1); + x_2368 = x_2364; +} else { + lean_dec_ref(x_2364); + x_2368 = lean_box(0); +} +x_2369 = lean_box(0); +if (lean_is_scalar(x_2368)) { + x_2370 = lean_alloc_ctor(0, 2, 0); +} else { + x_2370 = x_2368; +} +lean_ctor_set(x_2370, 0, x_2369); +lean_ctor_set(x_2370, 1, x_2367); +return x_2370; +} +else +{ +lean_object* x_2371; lean_object* x_2372; +x_2371 = lean_ctor_get(x_2364, 1); +lean_inc(x_2371); +lean_dec(x_2364); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2372 = l_Lean_Meta_decLevel(x_2345, x_3, x_4, x_5, x_6, x_2371); +if (lean_obj_tag(x_2372) == 0) +{ +lean_object* x_2373; lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; +x_2373 = lean_ctor_get(x_2372, 0); +lean_inc(x_2373); +x_2374 = lean_ctor_get(x_2372, 1); +lean_inc(x_2374); +if (lean_is_exclusive(x_2372)) { + lean_ctor_release(x_2372, 0); + lean_ctor_release(x_2372, 1); + x_2375 = x_2372; +} else { + lean_dec_ref(x_2372); + x_2375 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2376 = l_Lean_Meta_decLevel(x_2355, x_3, x_4, x_5, x_6, x_2374); +if (lean_obj_tag(x_2376) == 0) +{ +lean_object* x_2377; lean_object* x_2378; lean_object* x_2379; lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; +x_2377 = lean_ctor_get(x_2376, 0); +lean_inc(x_2377); +x_2378 = lean_ctor_get(x_2376, 1); +lean_inc(x_2378); +if (lean_is_exclusive(x_2376)) { + lean_ctor_release(x_2376, 0); + lean_ctor_release(x_2376, 1); + x_2379 = x_2376; +} else { + lean_dec_ref(x_2376); + x_2379 = lean_box(0); +} +x_2380 = lean_box(0); +if (lean_is_scalar(x_2379)) { + x_2381 = lean_alloc_ctor(1, 2, 0); +} else { + x_2381 = x_2379; + lean_ctor_set_tag(x_2381, 1); +} +lean_ctor_set(x_2381, 0, x_2377); +lean_ctor_set(x_2381, 1, x_2380); +if (lean_is_scalar(x_2375)) { + x_2382 = lean_alloc_ctor(1, 2, 0); +} else { + x_2382 = x_2375; + lean_ctor_set_tag(x_2382, 1); +} +lean_ctor_set(x_2382, 0, x_2373); +lean_ctor_set(x_2382, 1, x_2381); +if (lean_is_scalar(x_2362)) { + x_2383 = lean_alloc_ctor(1, 2, 0); +} else { + x_2383 = x_2362; + lean_ctor_set_tag(x_2383, 1); +} +lean_ctor_set(x_2383, 0, x_2357); +lean_ctor_set(x_2383, 1, x_2382); +x_2384 = l_Lean_Meta_coerceMonadLift_x3f___closed__3; +x_2385 = l_Lean_Expr_const___override(x_2384, x_2383); +x_2386 = l_Lean_Meta_coerceMonadLift_x3f___closed__4; +lean_inc(x_2323); +x_2387 = lean_array_push(x_2386, x_2323); +lean_inc(x_2312); +x_2388 = lean_array_push(x_2387, x_2312); +x_2389 = l_Lean_mkAppN(x_2385, x_2388); +x_2390 = lean_box(0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2391 = l_Lean_Meta_trySynthInstance(x_2389, x_2390, x_3, x_4, x_5, x_6, x_2378); +if (lean_obj_tag(x_2391) == 0) +{ +lean_object* x_2392; +x_2392 = lean_ctor_get(x_2391, 0); +lean_inc(x_2392); +if (lean_obj_tag(x_2392) == 1) +{ +lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; +x_2393 = lean_ctor_get(x_2391, 1); +lean_inc(x_2393); +lean_dec(x_2391); +x_2394 = lean_ctor_get(x_2392, 0); +lean_inc(x_2394); +lean_dec(x_2392); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2324); +x_2395 = l_Lean_Meta_getDecLevel(x_2324, x_3, x_4, x_5, x_6, x_2393); +if (lean_obj_tag(x_2395) == 0) +{ +lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; lean_object* x_2399; +x_2396 = lean_ctor_get(x_2395, 0); +lean_inc(x_2396); +x_2397 = lean_ctor_get(x_2395, 1); +lean_inc(x_2397); +if (lean_is_exclusive(x_2395)) { + lean_ctor_release(x_2395, 0); + lean_ctor_release(x_2395, 1); + x_2398 = x_2395; +} else { + lean_dec_ref(x_2395); + x_2398 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2399 = l_Lean_Meta_getDecLevel(x_38, x_3, x_4, x_5, x_6, x_2397); +if (lean_obj_tag(x_2399) == 0) +{ +lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; +x_2400 = lean_ctor_get(x_2399, 0); +lean_inc(x_2400); +x_2401 = lean_ctor_get(x_2399, 1); +lean_inc(x_2401); +if (lean_is_exclusive(x_2399)) { + lean_ctor_release(x_2399, 0); + lean_ctor_release(x_2399, 1); + x_2402 = x_2399; +} else { + lean_dec_ref(x_2399); + x_2402 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_2403 = l_Lean_Meta_getDecLevel(x_32, x_3, x_4, x_5, x_6, x_2401); +if (lean_obj_tag(x_2403) == 0) +{ +lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; lean_object* x_2418; lean_object* x_2419; +x_2404 = lean_ctor_get(x_2403, 0); +lean_inc(x_2404); +x_2405 = lean_ctor_get(x_2403, 1); +lean_inc(x_2405); +if (lean_is_exclusive(x_2403)) { + lean_ctor_release(x_2403, 0); + lean_ctor_release(x_2403, 1); + x_2406 = x_2403; +} else { + lean_dec_ref(x_2403); + x_2406 = lean_box(0); +} +if (lean_is_scalar(x_2406)) { + x_2407 = lean_alloc_ctor(1, 2, 0); +} else { + x_2407 = x_2406; + lean_ctor_set_tag(x_2407, 1); +} +lean_ctor_set(x_2407, 0, x_2404); +lean_ctor_set(x_2407, 1, x_2380); +if (lean_is_scalar(x_2402)) { + x_2408 = lean_alloc_ctor(1, 2, 0); +} else { + x_2408 = x_2402; + lean_ctor_set_tag(x_2408, 1); +} +lean_ctor_set(x_2408, 0, x_2400); +lean_ctor_set(x_2408, 1, x_2407); +if (lean_is_scalar(x_2398)) { + x_2409 = lean_alloc_ctor(1, 2, 0); +} else { + x_2409 = x_2398; + lean_ctor_set_tag(x_2409, 1); +} +lean_ctor_set(x_2409, 0, x_2396); +lean_ctor_set(x_2409, 1, x_2408); +x_2410 = l_Lean_Meta_coerceMonadLift_x3f___closed__6; +lean_inc(x_2409); +x_2411 = l_Lean_Expr_const___override(x_2410, x_2409); +x_2412 = l_Lean_Meta_coerceMonadLift_x3f___closed__7; +lean_inc(x_2323); +x_2413 = lean_array_push(x_2412, x_2323); +lean_inc(x_2312); +x_2414 = lean_array_push(x_2413, x_2312); +lean_inc(x_2394); +x_2415 = lean_array_push(x_2414, x_2394); +lean_inc(x_2324); +x_2416 = lean_array_push(x_2415, x_2324); +lean_inc(x_1); +x_2417 = lean_array_push(x_2416, x_1); +x_2418 = l_Lean_mkAppN(x_2411, x_2417); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2418); +x_2419 = lean_infer_type(x_2418, x_3, x_4, x_5, x_6, x_2405); +if (lean_obj_tag(x_2419) == 0) +{ +lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; +x_2420 = lean_ctor_get(x_2419, 0); +lean_inc(x_2420); +x_2421 = lean_ctor_get(x_2419, 1); +lean_inc(x_2421); +lean_dec(x_2419); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_32); +x_2422 = l_Lean_Meta_isExprDefEq(x_32, x_2420, x_3, x_4, x_5, x_6, x_2421); +if (lean_obj_tag(x_2422) == 0) +{ +lean_object* x_2423; uint8_t x_2424; +x_2423 = lean_ctor_get(x_2422, 0); +lean_inc(x_2423); +x_2424 = lean_unbox(x_2423); +lean_dec(x_2423); +if (x_2424 == 0) +{ +lean_object* x_2425; lean_object* x_2426; +lean_dec(x_2418); +lean_dec(x_2321); +x_2425 = lean_ctor_get(x_2422, 1); +lean_inc(x_2425); +lean_dec(x_2422); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2312); +x_2426 = l_Lean_Meta_isMonad_x3f(x_2312, x_3, x_4, x_5, x_6, x_2425); +if (lean_obj_tag(x_2426) == 0) +{ +lean_object* x_2427; +x_2427 = lean_ctor_get(x_2426, 0); +lean_inc(x_2427); +if (lean_obj_tag(x_2427) == 0) +{ +lean_object* x_2428; lean_object* x_2429; lean_object* x_2430; +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2428 = lean_ctor_get(x_2426, 1); +lean_inc(x_2428); +if (lean_is_exclusive(x_2426)) { + lean_ctor_release(x_2426, 0); + lean_ctor_release(x_2426, 1); + x_2429 = x_2426; +} else { + lean_dec_ref(x_2426); + x_2429 = lean_box(0); +} +if (lean_is_scalar(x_2429)) { + x_2430 = lean_alloc_ctor(0, 2, 0); +} else { + x_2430 = x_2429; +} +lean_ctor_set(x_2430, 0, x_2390); +lean_ctor_set(x_2430, 1, x_2428); +return x_2430; +} +else +{ +lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; +x_2431 = lean_ctor_get(x_2426, 1); +lean_inc(x_2431); +lean_dec(x_2426); +x_2432 = lean_ctor_get(x_2427, 0); +lean_inc(x_2432); +lean_dec(x_2427); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2324); +x_2433 = l_Lean_Meta_getLevel(x_2324, x_3, x_4, x_5, x_6, x_2431); +if (lean_obj_tag(x_2433) == 0) +{ +lean_object* x_2434; lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; +x_2434 = lean_ctor_get(x_2433, 0); +lean_inc(x_2434); +x_2435 = lean_ctor_get(x_2433, 1); +lean_inc(x_2435); +if (lean_is_exclusive(x_2433)) { + lean_ctor_release(x_2433, 0); + lean_ctor_release(x_2433, 1); + x_2436 = x_2433; +} else { + lean_dec_ref(x_2433); + x_2436 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2313); +x_2437 = l_Lean_Meta_getLevel(x_2313, x_3, x_4, x_5, x_6, x_2435); +if (lean_obj_tag(x_2437) == 0) +{ +lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; uint8_t x_2452; lean_object* x_2453; lean_object* x_2454; +x_2438 = lean_ctor_get(x_2437, 0); +lean_inc(x_2438); +x_2439 = lean_ctor_get(x_2437, 1); +lean_inc(x_2439); +if (lean_is_exclusive(x_2437)) { + lean_ctor_release(x_2437, 0); + lean_ctor_release(x_2437, 1); + x_2440 = x_2437; +} else { + lean_dec_ref(x_2437); + x_2440 = lean_box(0); +} +if (lean_is_scalar(x_2440)) { + x_2441 = lean_alloc_ctor(1, 2, 0); +} else { + x_2441 = x_2440; + lean_ctor_set_tag(x_2441, 1); +} +lean_ctor_set(x_2441, 0, x_2438); +lean_ctor_set(x_2441, 1, x_2380); +if (lean_is_scalar(x_2436)) { + x_2442 = lean_alloc_ctor(1, 2, 0); +} else { + x_2442 = x_2436; + lean_ctor_set_tag(x_2442, 1); +} +lean_ctor_set(x_2442, 0, x_2434); +lean_ctor_set(x_2442, 1, x_2441); +x_2443 = l_Lean_Meta_coerceSimple_x3f___closed__2; +x_2444 = l_Lean_Expr_const___override(x_2443, x_2442); +x_2445 = l_Lean_Meta_coerceSimple_x3f___closed__3; +lean_inc(x_2324); +x_2446 = lean_array_push(x_2445, x_2324); +x_2447 = l_Lean_Meta_coerceMonadLift_x3f___closed__10; +x_2448 = lean_array_push(x_2446, x_2447); +lean_inc(x_2313); +x_2449 = lean_array_push(x_2448, x_2313); +x_2450 = l_Lean_mkAppN(x_2444, x_2449); +x_2451 = l_Lean_Meta_coerceMonadLift_x3f___closed__9; +x_2452 = 0; +lean_inc(x_2324); +x_2453 = l_Lean_Expr_forallE___override(x_2451, x_2324, x_2450, x_2452); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2454 = l_Lean_Meta_trySynthInstance(x_2453, x_2390, x_3, x_4, x_5, x_6, x_2439); +if (lean_obj_tag(x_2454) == 0) +{ +lean_object* x_2455; +x_2455 = lean_ctor_get(x_2454, 0); +lean_inc(x_2455); +if (lean_obj_tag(x_2455) == 1) +{ +lean_object* x_2456; lean_object* x_2457; lean_object* x_2458; lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; lean_object* x_2463; lean_object* x_2464; lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; +x_2456 = lean_ctor_get(x_2454, 1); +lean_inc(x_2456); +lean_dec(x_2454); +x_2457 = lean_ctor_get(x_2455, 0); +lean_inc(x_2457); +lean_dec(x_2455); +x_2458 = l_Lean_Meta_coerceMonadLift_x3f___closed__13; +x_2459 = l_Lean_Expr_const___override(x_2458, x_2409); +x_2460 = l_Lean_Meta_coerceMonadLift_x3f___closed__14; +x_2461 = lean_array_push(x_2460, x_2323); +x_2462 = lean_array_push(x_2461, x_2312); +x_2463 = lean_array_push(x_2462, x_2324); +x_2464 = lean_array_push(x_2463, x_2313); +x_2465 = lean_array_push(x_2464, x_2394); +x_2466 = lean_array_push(x_2465, x_2457); +x_2467 = lean_array_push(x_2466, x_2432); +x_2468 = lean_array_push(x_2467, x_1); +x_2469 = l_Lean_mkAppN(x_2459, x_2468); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2470 = l_Lean_Meta_expandCoe(x_2469, x_3, x_4, x_5, x_6, x_2456); +if (lean_obj_tag(x_2470) == 0) +{ +lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; +x_2471 = lean_ctor_get(x_2470, 0); +lean_inc(x_2471); +x_2472 = lean_ctor_get(x_2470, 1); +lean_inc(x_2472); +lean_dec(x_2470); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2471); +x_2473 = lean_infer_type(x_2471, x_3, x_4, x_5, x_6, x_2472); +if (lean_obj_tag(x_2473) == 0) +{ +lean_object* x_2474; lean_object* x_2475; lean_object* x_2476; +x_2474 = lean_ctor_get(x_2473, 0); +lean_inc(x_2474); +x_2475 = lean_ctor_get(x_2473, 1); +lean_inc(x_2475); +lean_dec(x_2473); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2476 = l_Lean_Meta_isExprDefEq(x_32, x_2474, x_3, x_4, x_5, x_6, x_2475); +if (lean_obj_tag(x_2476) == 0) +{ +lean_object* x_2477; uint8_t x_2478; +x_2477 = lean_ctor_get(x_2476, 0); +lean_inc(x_2477); +x_2478 = lean_unbox(x_2477); +lean_dec(x_2477); +if (x_2478 == 0) +{ +lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; +lean_dec(x_2471); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2479 = lean_ctor_get(x_2476, 1); +lean_inc(x_2479); +if (lean_is_exclusive(x_2476)) { + lean_ctor_release(x_2476, 0); + lean_ctor_release(x_2476, 1); + x_2480 = x_2476; +} else { + lean_dec_ref(x_2476); + x_2480 = lean_box(0); +} +if (lean_is_scalar(x_2480)) { + x_2481 = lean_alloc_ctor(0, 2, 0); +} else { + x_2481 = x_2480; +} +lean_ctor_set(x_2481, 0, x_2390); +lean_ctor_set(x_2481, 1, x_2479); +return x_2481; +} +else +{ +lean_object* x_2482; lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; +x_2482 = lean_ctor_get(x_2476, 1); +lean_inc(x_2482); +lean_dec(x_2476); +x_2483 = lean_box(0); +x_2484 = l_Lean_Meta_coerceToFunction_x3f___lambda__1(x_2471, x_2483, x_3, x_4, x_5, x_6, x_2482); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2485 = lean_ctor_get(x_2484, 0); +lean_inc(x_2485); +x_2486 = lean_ctor_get(x_2484, 1); +lean_inc(x_2486); +if (lean_is_exclusive(x_2484)) { + lean_ctor_release(x_2484, 0); + lean_ctor_release(x_2484, 1); + x_2487 = x_2484; +} else { + lean_dec_ref(x_2484); + x_2487 = lean_box(0); +} +if (lean_is_scalar(x_2487)) { + x_2488 = lean_alloc_ctor(0, 2, 0); +} else { + x_2488 = x_2487; +} +lean_ctor_set(x_2488, 0, x_2485); +lean_ctor_set(x_2488, 1, x_2486); +return x_2488; +} +} +else +{ +lean_object* x_2489; lean_object* x_2490; +lean_dec(x_2471); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2489 = lean_ctor_get(x_2476, 0); +lean_inc(x_2489); +x_2490 = lean_ctor_get(x_2476, 1); +lean_inc(x_2490); +lean_dec(x_2476); +x_8 = x_2489; +x_9 = x_2490; +goto block_16; +} +} +else +{ +lean_object* x_2491; lean_object* x_2492; +lean_dec(x_2471); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2491 = lean_ctor_get(x_2473, 0); +lean_inc(x_2491); +x_2492 = lean_ctor_get(x_2473, 1); +lean_inc(x_2492); +lean_dec(x_2473); +x_8 = x_2491; +x_9 = x_2492; +goto block_16; +} +} +else +{ +lean_object* x_2493; lean_object* x_2494; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2493 = lean_ctor_get(x_2470, 0); +lean_inc(x_2493); +x_2494 = lean_ctor_get(x_2470, 1); +lean_inc(x_2494); +lean_dec(x_2470); +x_8 = x_2493; +x_9 = x_2494; +goto block_16; +} +} +else +{ +lean_object* x_2495; lean_object* x_2496; lean_object* x_2497; +lean_dec(x_2455); +lean_dec(x_2432); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2495 = lean_ctor_get(x_2454, 1); +lean_inc(x_2495); +if (lean_is_exclusive(x_2454)) { + lean_ctor_release(x_2454, 0); + lean_ctor_release(x_2454, 1); + x_2496 = x_2454; +} else { + lean_dec_ref(x_2454); + x_2496 = lean_box(0); +} +if (lean_is_scalar(x_2496)) { + x_2497 = lean_alloc_ctor(0, 2, 0); +} else { + x_2497 = x_2496; +} +lean_ctor_set(x_2497, 0, x_2390); +lean_ctor_set(x_2497, 1, x_2495); +return x_2497; +} +} +else +{ +lean_object* x_2498; lean_object* x_2499; +lean_dec(x_2432); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2498 = lean_ctor_get(x_2454, 0); +lean_inc(x_2498); +x_2499 = lean_ctor_get(x_2454, 1); +lean_inc(x_2499); +lean_dec(x_2454); +x_8 = x_2498; +x_9 = x_2499; +goto block_16; +} +} +else +{ +lean_object* x_2500; lean_object* x_2501; +lean_dec(x_2436); +lean_dec(x_2434); +lean_dec(x_2432); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2500 = lean_ctor_get(x_2437, 0); +lean_inc(x_2500); +x_2501 = lean_ctor_get(x_2437, 1); +lean_inc(x_2501); +lean_dec(x_2437); +x_8 = x_2500; +x_9 = x_2501; +goto block_16; +} +} +else +{ +lean_object* x_2502; lean_object* x_2503; +lean_dec(x_2432); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2502 = lean_ctor_get(x_2433, 0); +lean_inc(x_2502); +x_2503 = lean_ctor_get(x_2433, 1); +lean_inc(x_2503); +lean_dec(x_2433); +x_8 = x_2502; +x_9 = x_2503; +goto block_16; +} +} +} +else +{ +lean_object* x_2504; lean_object* x_2505; +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2504 = lean_ctor_get(x_2426, 0); +lean_inc(x_2504); +x_2505 = lean_ctor_get(x_2426, 1); +lean_inc(x_2505); +lean_dec(x_2426); +x_8 = x_2504; +x_9 = x_2505; +goto block_16; +} +} +else +{ +lean_object* x_2506; lean_object* x_2507; lean_object* x_2508; lean_object* x_2509; +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2506 = lean_ctor_get(x_2422, 1); +lean_inc(x_2506); +if (lean_is_exclusive(x_2422)) { + lean_ctor_release(x_2422, 0); + lean_ctor_release(x_2422, 1); + x_2507 = x_2422; +} else { + lean_dec_ref(x_2422); + x_2507 = lean_box(0); +} +if (lean_is_scalar(x_2321)) { + x_2508 = lean_alloc_ctor(1, 1, 0); +} else { + x_2508 = x_2321; +} +lean_ctor_set(x_2508, 0, x_2418); +if (lean_is_scalar(x_2507)) { + x_2509 = lean_alloc_ctor(0, 2, 0); +} else { + x_2509 = x_2507; +} +lean_ctor_set(x_2509, 0, x_2508); +lean_ctor_set(x_2509, 1, x_2506); +return x_2509; +} +} +else +{ +lean_object* x_2510; lean_object* x_2511; +lean_dec(x_2418); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2510 = lean_ctor_get(x_2422, 0); +lean_inc(x_2510); +x_2511 = lean_ctor_get(x_2422, 1); +lean_inc(x_2511); +lean_dec(x_2422); +x_8 = x_2510; +x_9 = x_2511; +goto block_16; +} +} +else +{ +lean_object* x_2512; lean_object* x_2513; +lean_dec(x_2418); +lean_dec(x_2409); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2512 = lean_ctor_get(x_2419, 0); +lean_inc(x_2512); +x_2513 = lean_ctor_get(x_2419, 1); +lean_inc(x_2513); +lean_dec(x_2419); +x_8 = x_2512; +x_9 = x_2513; +goto block_16; +} +} +else +{ +lean_object* x_2514; lean_object* x_2515; +lean_dec(x_2402); +lean_dec(x_2400); +lean_dec(x_2398); +lean_dec(x_2396); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2514 = lean_ctor_get(x_2403, 0); +lean_inc(x_2514); +x_2515 = lean_ctor_get(x_2403, 1); +lean_inc(x_2515); +lean_dec(x_2403); +x_8 = x_2514; +x_9 = x_2515; +goto block_16; +} +} +else +{ +lean_object* x_2516; lean_object* x_2517; +lean_dec(x_2398); +lean_dec(x_2396); +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2516 = lean_ctor_get(x_2399, 0); +lean_inc(x_2516); +x_2517 = lean_ctor_get(x_2399, 1); +lean_inc(x_2517); +lean_dec(x_2399); +x_8 = x_2516; +x_9 = x_2517; +goto block_16; +} +} +else +{ +lean_object* x_2518; lean_object* x_2519; +lean_dec(x_2394); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2518 = lean_ctor_get(x_2395, 0); +lean_inc(x_2518); +x_2519 = lean_ctor_get(x_2395, 1); +lean_inc(x_2519); +lean_dec(x_2395); +x_8 = x_2518; +x_9 = x_2519; +goto block_16; +} +} +else +{ +lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; +lean_dec(x_2392); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2520 = lean_ctor_get(x_2391, 1); +lean_inc(x_2520); +if (lean_is_exclusive(x_2391)) { + lean_ctor_release(x_2391, 0); + lean_ctor_release(x_2391, 1); + x_2521 = x_2391; +} else { + lean_dec_ref(x_2391); + x_2521 = lean_box(0); +} +if (lean_is_scalar(x_2521)) { + x_2522 = lean_alloc_ctor(0, 2, 0); +} else { + x_2522 = x_2521; +} +lean_ctor_set(x_2522, 0, x_2390); +lean_ctor_set(x_2522, 1, x_2520); +return x_2522; +} +} +else +{ +lean_object* x_2523; lean_object* x_2524; +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2523 = lean_ctor_get(x_2391, 0); +lean_inc(x_2523); +x_2524 = lean_ctor_get(x_2391, 1); +lean_inc(x_2524); +lean_dec(x_2391); +x_8 = x_2523; +x_9 = x_2524; +goto block_16; +} +} +else +{ +lean_object* x_2525; lean_object* x_2526; +lean_dec(x_2375); +lean_dec(x_2373); +lean_dec(x_2362); +lean_dec(x_2357); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2525 = lean_ctor_get(x_2376, 0); +lean_inc(x_2525); +x_2526 = lean_ctor_get(x_2376, 1); +lean_inc(x_2526); +lean_dec(x_2376); +x_8 = x_2525; +x_9 = x_2526; +goto block_16; +} +} +else +{ +lean_object* x_2527; lean_object* x_2528; +lean_dec(x_2362); +lean_dec(x_2357); +lean_dec(x_2355); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2527 = lean_ctor_get(x_2372, 0); +lean_inc(x_2527); +x_2528 = lean_ctor_get(x_2372, 1); +lean_inc(x_2528); +lean_dec(x_2372); +x_8 = x_2527; +x_9 = x_2528; +goto block_16; +} +} +} +else +{ +lean_object* x_2529; lean_object* x_2530; +lean_dec(x_2362); +lean_dec(x_2357); +lean_dec(x_2355); +lean_dec(x_2345); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2529 = lean_ctor_get(x_2364, 0); +lean_inc(x_2529); +x_2530 = lean_ctor_get(x_2364, 1); +lean_inc(x_2530); +lean_dec(x_2364); +x_8 = x_2529; +x_9 = x_2530; +goto block_16; +} +} +else +{ +lean_object* x_2531; lean_object* x_2532; +lean_dec(x_2357); +lean_dec(x_2355); +lean_dec(x_2345); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2531 = lean_ctor_get(x_2359, 0); +lean_inc(x_2531); +x_2532 = lean_ctor_get(x_2359, 1); +lean_inc(x_2532); +lean_dec(x_2359); +x_8 = x_2531; +x_9 = x_2532; +goto block_16; +} +} +else +{ +lean_object* x_2533; lean_object* x_2534; +lean_dec(x_2355); +lean_dec(x_2354); +lean_dec(x_2345); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2533 = lean_ctor_get(x_2356, 0); +lean_inc(x_2533); +x_2534 = lean_ctor_get(x_2356, 1); +lean_inc(x_2534); +lean_dec(x_2356); +x_8 = x_2533; +x_9 = x_2534; +goto block_16; +} +} +else +{ +lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; +lean_dec(x_2352); +lean_dec(x_2351); +lean_dec(x_2345); +lean_dec(x_2344); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2535 = lean_ctor_get(x_2349, 1); +lean_inc(x_2535); +if (lean_is_exclusive(x_2349)) { + lean_ctor_release(x_2349, 0); + lean_ctor_release(x_2349, 1); + x_2536 = x_2349; +} else { + lean_dec_ref(x_2349); + x_2536 = lean_box(0); +} +x_2537 = lean_box(0); +if (lean_is_scalar(x_2536)) { + x_2538 = lean_alloc_ctor(0, 2, 0); +} else { + x_2538 = x_2536; +} +lean_ctor_set(x_2538, 0, x_2537); +lean_ctor_set(x_2538, 1, x_2535); +return x_2538; +} +} +else +{ +lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; +lean_dec(x_2351); +lean_dec(x_2350); +lean_dec(x_2345); +lean_dec(x_2344); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2539 = lean_ctor_get(x_2349, 1); +lean_inc(x_2539); +if (lean_is_exclusive(x_2349)) { + lean_ctor_release(x_2349, 0); + lean_ctor_release(x_2349, 1); + x_2540 = x_2349; +} else { + lean_dec_ref(x_2349); + x_2540 = lean_box(0); +} +x_2541 = lean_box(0); +if (lean_is_scalar(x_2540)) { + x_2542 = lean_alloc_ctor(0, 2, 0); +} else { + x_2542 = x_2540; +} +lean_ctor_set(x_2542, 0, x_2541); +lean_ctor_set(x_2542, 1, x_2539); +return x_2542; +} +} +else +{ +lean_object* x_2543; lean_object* x_2544; lean_object* x_2545; lean_object* x_2546; +lean_dec(x_2350); +lean_dec(x_2345); +lean_dec(x_2344); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2543 = lean_ctor_get(x_2349, 1); +lean_inc(x_2543); +if (lean_is_exclusive(x_2349)) { + lean_ctor_release(x_2349, 0); + lean_ctor_release(x_2349, 1); + x_2544 = x_2349; +} else { + lean_dec_ref(x_2349); + x_2544 = lean_box(0); +} +x_2545 = lean_box(0); +if (lean_is_scalar(x_2544)) { + x_2546 = lean_alloc_ctor(0, 2, 0); +} else { + x_2546 = x_2544; +} +lean_ctor_set(x_2546, 0, x_2545); +lean_ctor_set(x_2546, 1, x_2543); +return x_2546; +} +} +else +{ +lean_object* x_2547; lean_object* x_2548; lean_object* x_2549; uint8_t x_2550; +lean_dec(x_2345); +lean_dec(x_2344); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2547 = lean_ctor_get(x_2349, 0); +lean_inc(x_2547); +x_2548 = lean_ctor_get(x_2349, 1); +lean_inc(x_2548); +if (lean_is_exclusive(x_2349)) { + lean_ctor_release(x_2349, 0); + lean_ctor_release(x_2349, 1); + x_2549 = x_2349; +} else { + lean_dec_ref(x_2349); + x_2549 = lean_box(0); +} +x_2550 = l_Lean_Exception_isInterrupt(x_2547); +if (x_2550 == 0) +{ +uint8_t x_2551; +x_2551 = l_Lean_Exception_isRuntime(x_2547); +if (x_2551 == 0) +{ +lean_object* x_2552; lean_object* x_2553; +lean_dec(x_2547); +x_2552 = lean_box(0); +if (lean_is_scalar(x_2549)) { + x_2553 = lean_alloc_ctor(0, 2, 0); +} else { + x_2553 = x_2549; + lean_ctor_set_tag(x_2553, 0); +} +lean_ctor_set(x_2553, 0, x_2552); +lean_ctor_set(x_2553, 1, x_2548); +return x_2553; +} +else +{ +lean_object* x_2554; +if (lean_is_scalar(x_2549)) { + x_2554 = lean_alloc_ctor(1, 2, 0); +} else { + x_2554 = x_2549; +} +lean_ctor_set(x_2554, 0, x_2547); +lean_ctor_set(x_2554, 1, x_2548); +return x_2554; +} +} +else +{ +lean_object* x_2555; +if (lean_is_scalar(x_2549)) { + x_2555 = lean_alloc_ctor(1, 2, 0); +} else { + x_2555 = x_2549; +} +lean_ctor_set(x_2555, 0, x_2547); +lean_ctor_set(x_2555, 1, x_2548); +return x_2555; +} +} +} +else +{ +lean_object* x_2556; lean_object* x_2557; lean_object* x_2558; uint8_t x_2559; +lean_dec(x_2345); +lean_dec(x_2344); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2556 = lean_ctor_get(x_2346, 0); +lean_inc(x_2556); +x_2557 = lean_ctor_get(x_2346, 1); +lean_inc(x_2557); +if (lean_is_exclusive(x_2346)) { + lean_ctor_release(x_2346, 0); + lean_ctor_release(x_2346, 1); + x_2558 = x_2346; +} else { + lean_dec_ref(x_2346); + x_2558 = lean_box(0); +} +x_2559 = l_Lean_Exception_isInterrupt(x_2556); +if (x_2559 == 0) +{ +uint8_t x_2560; +x_2560 = l_Lean_Exception_isRuntime(x_2556); +if (x_2560 == 0) +{ +lean_object* x_2561; lean_object* x_2562; +lean_dec(x_2556); +x_2561 = lean_box(0); +if (lean_is_scalar(x_2558)) { + x_2562 = lean_alloc_ctor(0, 2, 0); +} else { + x_2562 = x_2558; + lean_ctor_set_tag(x_2562, 0); +} +lean_ctor_set(x_2562, 0, x_2561); +lean_ctor_set(x_2562, 1, x_2557); +return x_2562; +} +else +{ +lean_object* x_2563; +if (lean_is_scalar(x_2558)) { + x_2563 = lean_alloc_ctor(1, 2, 0); +} else { + x_2563 = x_2558; +} +lean_ctor_set(x_2563, 0, x_2556); +lean_ctor_set(x_2563, 1, x_2557); +return x_2563; +} +} +else +{ +lean_object* x_2564; +if (lean_is_scalar(x_2558)) { + x_2564 = lean_alloc_ctor(1, 2, 0); +} else { + x_2564 = x_2558; +} +lean_ctor_set(x_2564, 0, x_2556); +lean_ctor_set(x_2564, 1, x_2557); +return x_2564; +} +} +} +else +{ +lean_object* x_2565; lean_object* x_2566; lean_object* x_2567; lean_object* x_2568; +lean_dec(x_2342); +lean_dec(x_2341); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2565 = lean_ctor_get(x_2339, 1); +lean_inc(x_2565); +if (lean_is_exclusive(x_2339)) { + lean_ctor_release(x_2339, 0); + lean_ctor_release(x_2339, 1); + x_2566 = x_2339; +} else { + lean_dec_ref(x_2339); + x_2566 = lean_box(0); +} +x_2567 = lean_box(0); +if (lean_is_scalar(x_2566)) { + x_2568 = lean_alloc_ctor(0, 2, 0); +} else { + x_2568 = x_2566; +} +lean_ctor_set(x_2568, 0, x_2567); +lean_ctor_set(x_2568, 1, x_2565); +return x_2568; +} +} +else +{ +lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; +lean_dec(x_2341); +lean_dec(x_2340); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2569 = lean_ctor_get(x_2339, 1); +lean_inc(x_2569); +if (lean_is_exclusive(x_2339)) { + lean_ctor_release(x_2339, 0); + lean_ctor_release(x_2339, 1); + x_2570 = x_2339; +} else { + lean_dec_ref(x_2339); + x_2570 = lean_box(0); +} +x_2571 = lean_box(0); +if (lean_is_scalar(x_2570)) { + x_2572 = lean_alloc_ctor(0, 2, 0); +} else { + x_2572 = x_2570; +} +lean_ctor_set(x_2572, 0, x_2571); +lean_ctor_set(x_2572, 1, x_2569); +return x_2572; +} +} +else +{ +lean_object* x_2573; lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; +lean_dec(x_2340); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2573 = lean_ctor_get(x_2339, 1); +lean_inc(x_2573); +if (lean_is_exclusive(x_2339)) { + lean_ctor_release(x_2339, 0); + lean_ctor_release(x_2339, 1); + x_2574 = x_2339; +} else { + lean_dec_ref(x_2339); + x_2574 = lean_box(0); +} +x_2575 = lean_box(0); +if (lean_is_scalar(x_2574)) { + x_2576 = lean_alloc_ctor(0, 2, 0); +} else { + x_2576 = x_2574; +} +lean_ctor_set(x_2576, 0, x_2575); +lean_ctor_set(x_2576, 1, x_2573); +return x_2576; +} +} +else +{ +lean_object* x_2577; lean_object* x_2578; lean_object* x_2579; uint8_t x_2580; +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2577 = lean_ctor_get(x_2339, 0); +lean_inc(x_2577); +x_2578 = lean_ctor_get(x_2339, 1); +lean_inc(x_2578); +if (lean_is_exclusive(x_2339)) { + lean_ctor_release(x_2339, 0); + lean_ctor_release(x_2339, 1); + x_2579 = x_2339; +} else { + lean_dec_ref(x_2339); + x_2579 = lean_box(0); +} +x_2580 = l_Lean_Exception_isInterrupt(x_2577); +if (x_2580 == 0) +{ +uint8_t x_2581; +x_2581 = l_Lean_Exception_isRuntime(x_2577); +if (x_2581 == 0) +{ +lean_object* x_2582; lean_object* x_2583; +lean_dec(x_2577); +x_2582 = lean_box(0); +if (lean_is_scalar(x_2579)) { + x_2583 = lean_alloc_ctor(0, 2, 0); +} else { + x_2583 = x_2579; + lean_ctor_set_tag(x_2583, 0); +} +lean_ctor_set(x_2583, 0, x_2582); +lean_ctor_set(x_2583, 1, x_2578); +return x_2583; +} +else +{ +lean_object* x_2584; +if (lean_is_scalar(x_2579)) { + x_2584 = lean_alloc_ctor(1, 2, 0); +} else { + x_2584 = x_2579; +} +lean_ctor_set(x_2584, 0, x_2577); +lean_ctor_set(x_2584, 1, x_2578); +return x_2584; +} +} +else +{ +lean_object* x_2585; +if (lean_is_scalar(x_2579)) { + x_2585 = lean_alloc_ctor(1, 2, 0); +} else { + x_2585 = x_2579; +} +lean_ctor_set(x_2585, 0, x_2577); +lean_ctor_set(x_2585, 1, x_2578); +return x_2585; +} +} +} +else +{ +lean_object* x_2586; lean_object* x_2587; lean_object* x_2588; uint8_t x_2589; +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2586 = lean_ctor_get(x_2336, 0); +lean_inc(x_2586); +x_2587 = lean_ctor_get(x_2336, 1); +lean_inc(x_2587); +if (lean_is_exclusive(x_2336)) { + lean_ctor_release(x_2336, 0); + lean_ctor_release(x_2336, 1); + x_2588 = x_2336; +} else { + lean_dec_ref(x_2336); + x_2588 = lean_box(0); +} +x_2589 = l_Lean_Exception_isInterrupt(x_2586); +if (x_2589 == 0) +{ +uint8_t x_2590; +x_2590 = l_Lean_Exception_isRuntime(x_2586); +if (x_2590 == 0) +{ +lean_object* x_2591; lean_object* x_2592; +lean_dec(x_2586); +x_2591 = lean_box(0); +if (lean_is_scalar(x_2588)) { + x_2592 = lean_alloc_ctor(0, 2, 0); +} else { + x_2592 = x_2588; + lean_ctor_set_tag(x_2592, 0); +} +lean_ctor_set(x_2592, 0, x_2591); +lean_ctor_set(x_2592, 1, x_2587); +return x_2592; +} +else +{ +lean_object* x_2593; +if (lean_is_scalar(x_2588)) { + x_2593 = lean_alloc_ctor(1, 2, 0); +} else { + x_2593 = x_2588; +} +lean_ctor_set(x_2593, 0, x_2586); +lean_ctor_set(x_2593, 1, x_2587); +return x_2593; +} +} +else +{ +lean_object* x_2594; +if (lean_is_scalar(x_2588)) { + x_2594 = lean_alloc_ctor(1, 2, 0); +} else { + x_2594 = x_2588; +} +lean_ctor_set(x_2594, 0, x_2586); +lean_ctor_set(x_2594, 1, x_2587); +return x_2594; +} +} +} +} +else +{ +lean_object* x_2595; lean_object* x_2596; +lean_dec(x_38); +lean_dec(x_32); +x_2595 = lean_ctor_get(x_2326, 1); +lean_inc(x_2595); +lean_dec(x_2326); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2596 = l_Lean_Meta_isMonad_x3f(x_2312, x_3, x_4, x_5, x_6, x_2595); +if (lean_obj_tag(x_2596) == 0) +{ +lean_object* x_2597; +x_2597 = lean_ctor_get(x_2596, 0); +lean_inc(x_2597); +if (lean_obj_tag(x_2597) == 0) +{ +lean_object* x_2598; lean_object* x_2599; lean_object* x_2600; lean_object* x_2601; +lean_dec(x_2325); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2598 = lean_ctor_get(x_2596, 1); +lean_inc(x_2598); +if (lean_is_exclusive(x_2596)) { + lean_ctor_release(x_2596, 0); + lean_ctor_release(x_2596, 1); + x_2599 = x_2596; +} else { + lean_dec_ref(x_2596); + x_2599 = lean_box(0); +} +x_2600 = lean_box(0); +if (lean_is_scalar(x_2599)) { + x_2601 = lean_alloc_ctor(0, 2, 0); +} else { + x_2601 = x_2599; +} +lean_ctor_set(x_2601, 0, x_2600); +lean_ctor_set(x_2601, 1, x_2598); +return x_2601; +} +else +{ +lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; lean_object* x_2619; +x_2602 = lean_ctor_get(x_2596, 1); +lean_inc(x_2602); +lean_dec(x_2596); +x_2603 = lean_ctor_get(x_2597, 0); +lean_inc(x_2603); +if (lean_is_exclusive(x_2597)) { + lean_ctor_release(x_2597, 0); + x_2604 = x_2597; +} else { + lean_dec_ref(x_2597); + x_2604 = lean_box(0); +} +if (lean_is_scalar(x_2604)) { + x_2605 = lean_alloc_ctor(1, 1, 0); +} else { + x_2605 = x_2604; +} +lean_ctor_set(x_2605, 0, x_2323); +if (lean_is_scalar(x_2321)) { + x_2606 = lean_alloc_ctor(1, 1, 0); +} else { + x_2606 = x_2321; +} +lean_ctor_set(x_2606, 0, x_2324); +x_2607 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2607, 0, x_2313); +x_2608 = lean_box(0); +x_2609 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2609, 0, x_2603); +x_2610 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2610, 0, x_1); +x_2611 = l_Lean_Meta_coerceMonadLift_x3f___closed__17; +x_2612 = lean_array_push(x_2611, x_2605); +x_2613 = lean_array_push(x_2612, x_2606); +x_2614 = lean_array_push(x_2613, x_2607); +x_2615 = lean_array_push(x_2614, x_2608); +x_2616 = lean_array_push(x_2615, x_2609); +x_2617 = lean_array_push(x_2616, x_2610); +x_2618 = l_Lean_Meta_coerceMonadLift_x3f___closed__16; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_2619 = l_Lean_Meta_mkAppOptM(x_2618, x_2617, x_3, x_4, x_5, x_6, x_2602); +if (lean_obj_tag(x_2619) == 0) +{ +lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; +x_2620 = lean_ctor_get(x_2619, 0); +lean_inc(x_2620); +x_2621 = lean_ctor_get(x_2619, 1); +lean_inc(x_2621); +lean_dec(x_2619); +x_2622 = l_Lean_Meta_expandCoe(x_2620, x_3, x_4, x_5, x_6, x_2621); +if (lean_obj_tag(x_2622) == 0) +{ +lean_object* x_2623; lean_object* x_2624; lean_object* x_2625; lean_object* x_2626; +x_2623 = lean_ctor_get(x_2622, 0); +lean_inc(x_2623); +x_2624 = lean_ctor_get(x_2622, 1); +lean_inc(x_2624); +lean_dec(x_2622); +x_2625 = lean_box(0); +if (lean_is_scalar(x_2325)) { + x_2626 = lean_alloc_ctor(0, 2, 0); +} else { + x_2626 = x_2325; +} +lean_ctor_set(x_2626, 0, x_2623); +lean_ctor_set(x_2626, 1, x_2625); +x_17 = x_2626; +x_18 = x_2624; +goto block_30; +} +else +{ +lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; uint8_t x_2630; +lean_dec(x_2325); +x_2627 = lean_ctor_get(x_2622, 0); +lean_inc(x_2627); +x_2628 = lean_ctor_get(x_2622, 1); +lean_inc(x_2628); +if (lean_is_exclusive(x_2622)) { + lean_ctor_release(x_2622, 0); + lean_ctor_release(x_2622, 1); + x_2629 = x_2622; +} else { + lean_dec_ref(x_2622); + x_2629 = lean_box(0); +} +x_2630 = l_Lean_Exception_isInterrupt(x_2627); +if (x_2630 == 0) +{ +uint8_t x_2631; +x_2631 = l_Lean_Exception_isRuntime(x_2627); +if (x_2631 == 0) +{ +lean_object* x_2632; +lean_dec(x_2629); +lean_dec(x_2627); +x_2632 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_2632; +x_18 = x_2628; +goto block_30; +} +else +{ +lean_object* x_2633; +if (lean_is_scalar(x_2629)) { + x_2633 = lean_alloc_ctor(1, 2, 0); +} else { + x_2633 = x_2629; +} +lean_ctor_set(x_2633, 0, x_2627); +lean_ctor_set(x_2633, 1, x_2628); +return x_2633; +} +} +else +{ +lean_object* x_2634; +if (lean_is_scalar(x_2629)) { + x_2634 = lean_alloc_ctor(1, 2, 0); +} else { + x_2634 = x_2629; +} +lean_ctor_set(x_2634, 0, x_2627); +lean_ctor_set(x_2634, 1, x_2628); +return x_2634; +} +} +} +else +{ +lean_object* x_2635; lean_object* x_2636; lean_object* x_2637; uint8_t x_2638; +lean_dec(x_2325); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_2635 = lean_ctor_get(x_2619, 0); +lean_inc(x_2635); +x_2636 = lean_ctor_get(x_2619, 1); +lean_inc(x_2636); +if (lean_is_exclusive(x_2619)) { + lean_ctor_release(x_2619, 0); + lean_ctor_release(x_2619, 1); + x_2637 = x_2619; +} else { + lean_dec_ref(x_2619); + x_2637 = lean_box(0); +} +x_2638 = l_Lean_Exception_isInterrupt(x_2635); +if (x_2638 == 0) +{ +uint8_t x_2639; +x_2639 = l_Lean_Exception_isRuntime(x_2635); +if (x_2639 == 0) +{ +lean_object* x_2640; +lean_dec(x_2637); +lean_dec(x_2635); +x_2640 = l_Lean_Meta_coerceMonadLift_x3f___closed__18; +x_17 = x_2640; +x_18 = x_2636; +goto block_30; +} +else +{ +lean_object* x_2641; +if (lean_is_scalar(x_2637)) { + x_2641 = lean_alloc_ctor(1, 2, 0); +} else { + x_2641 = x_2637; +} +lean_ctor_set(x_2641, 0, x_2635); +lean_ctor_set(x_2641, 1, x_2636); +return x_2641; +} +} +else +{ +lean_object* x_2642; +if (lean_is_scalar(x_2637)) { + x_2642 = lean_alloc_ctor(1, 2, 0); +} else { + x_2642 = x_2637; +} +lean_ctor_set(x_2642, 0, x_2635); +lean_ctor_set(x_2642, 1, x_2636); +return x_2642; +} +} +} +} +else +{ +lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; +lean_dec(x_2325); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2643 = lean_ctor_get(x_2596, 0); +lean_inc(x_2643); +x_2644 = lean_ctor_get(x_2596, 1); +lean_inc(x_2644); +if (lean_is_exclusive(x_2596)) { + lean_ctor_release(x_2596, 0); + lean_ctor_release(x_2596, 1); + x_2645 = x_2596; +} else { + lean_dec_ref(x_2596); + x_2645 = lean_box(0); +} +if (lean_is_scalar(x_2645)) { + x_2646 = lean_alloc_ctor(1, 2, 0); +} else { + x_2646 = x_2645; +} +lean_ctor_set(x_2646, 0, x_2643); +lean_ctor_set(x_2646, 1, x_2644); +return x_2646; +} +} +} +else +{ +lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; +lean_dec(x_2325); +lean_dec(x_2324); +lean_dec(x_2323); +lean_dec(x_2321); +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2647 = lean_ctor_get(x_2326, 0); +lean_inc(x_2647); +x_2648 = lean_ctor_get(x_2326, 1); +lean_inc(x_2648); +if (lean_is_exclusive(x_2326)) { + lean_ctor_release(x_2326, 0); + lean_ctor_release(x_2326, 1); + x_2649 = x_2326; +} else { + lean_dec_ref(x_2326); + x_2649 = lean_box(0); +} +if (lean_is_scalar(x_2649)) { + x_2650 = lean_alloc_ctor(1, 2, 0); +} else { + x_2650 = x_2649; +} +lean_ctor_set(x_2650, 0, x_2647); +lean_ctor_set(x_2650, 1, x_2648); +return x_2650; +} +} +} +else +{ +lean_object* x_2651; lean_object* x_2652; lean_object* x_2653; lean_object* x_2654; +lean_dec(x_2313); +lean_dec(x_2312); +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2651 = lean_ctor_get(x_2314, 0); +lean_inc(x_2651); +x_2652 = lean_ctor_get(x_2314, 1); +lean_inc(x_2652); +if (lean_is_exclusive(x_2314)) { + lean_ctor_release(x_2314, 0); + lean_ctor_release(x_2314, 1); + x_2653 = x_2314; +} else { + lean_dec_ref(x_2314); + x_2653 = lean_box(0); +} +if (lean_is_scalar(x_2653)) { + x_2654 = lean_alloc_ctor(1, 2, 0); +} else { + x_2654 = x_2653; +} +lean_ctor_set(x_2654, 0, x_2651); +lean_ctor_set(x_2654, 1, x_2652); +return x_2654; +} +} +} +} +else +{ +uint8_t x_2655; +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2655 = !lean_is_exclusive(x_40); +if (x_2655 == 0) +{ +return x_40; +} +else +{ +lean_object* x_2656; lean_object* x_2657; lean_object* x_2658; +x_2656 = lean_ctor_get(x_40, 0); +x_2657 = lean_ctor_get(x_40, 1); +lean_inc(x_2657); +lean_inc(x_2656); +lean_dec(x_40); +x_2658 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2658, 0, x_2656); +lean_ctor_set(x_2658, 1, x_2657); +return x_2658; +} +} +} +else +{ +uint8_t x_2659; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_2659 = !lean_is_exclusive(x_34); +if (x_2659 == 0) +{ +return x_34; +} +else +{ +lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; +x_2660 = lean_ctor_get(x_34, 0); +x_2661 = lean_ctor_get(x_34, 1); +lean_inc(x_2661); +lean_inc(x_2660); +lean_dec(x_34); +x_2662 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2662, 0, x_2660); +lean_ctor_set(x_2662, 1, x_2661); +return x_2662; +} +} +block_16: { uint8_t x_10; -x_10 = l_Lean_Exception_isRuntime(x_8); +x_10 = l_Lean_Exception_isInterrupt(x_8); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_dec(x_8); -x_11 = lean_box(0); -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; +x_12 = lean_box(0); +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_13; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_8); -lean_ctor_set(x_13, 1, x_9); -return x_13; +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_8); +lean_ctor_set(x_14, 1, x_9); +return x_14; +} +} +else +{ +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +block_30: +{ +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; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +lean_dec(x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_17, 1, x_18); +lean_ctor_set(x_17, 0, x_22); +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); +lean_dec(x_17); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, 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_18); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_17, 1); +lean_dec(x_27); +lean_ctor_set_tag(x_17, 0); +lean_ctor_set(x_17, 1, x_18); +return x_17; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_17, 0); +lean_inc(x_28); +lean_dec(x_17); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_18); +return x_29; +} } } } @@ -19460,6 +22125,8 @@ l_Lean_Meta_coerceMonadLift_x3f___closed__16 = _init_l_Lean_Meta_coerceMonadLift lean_mark_persistent(l_Lean_Meta_coerceMonadLift_x3f___closed__16); l_Lean_Meta_coerceMonadLift_x3f___closed__17 = _init_l_Lean_Meta_coerceMonadLift_x3f___closed__17(); lean_mark_persistent(l_Lean_Meta_coerceMonadLift_x3f___closed__17); +l_Lean_Meta_coerceMonadLift_x3f___closed__18 = _init_l_Lean_Meta_coerceMonadLift_x3f___closed__18(); +lean_mark_persistent(l_Lean_Meta_coerceMonadLift_x3f___closed__18); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/CollectMVars.c b/stage0/stdlib/Lean/Meta/CollectMVars.c index 9a1aeaca90..0bd1df28a4 100644 --- a/stage0/stdlib/Lean/Meta/CollectMVars.c +++ b/stage0/stdlib/Lean/Meta/CollectMVars.c @@ -2994,7 +2994,7 @@ return x_10; LEAN_EXPORT lean_object* l_Lean_MVarId_getMVarDependencies_go(uint8_t 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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_9 = lean_ctor_get(x_6, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_6, 1); @@ -3017,537 +3017,545 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); -lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); -lean_inc(x_2); -x_36 = l_Lean_MVarId_getDecl(x_2, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); lean_dec(x_36); -x_39 = lean_ctor_get(x_37, 2); -lean_inc(x_39); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_40 = l_Lean_MVarId_getMVarDependencies_addMVars(x_1, x_39, x_3, x_4, x_5, x_6, x_7, x_38); -if (lean_obj_tag(x_40) == 0) +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); +lean_dec(x_12); +lean_ctor_set(x_6, 3, x_38); +lean_inc(x_2); +x_39 = l_Lean_MVarId_getDecl(x_2, x_4, x_5, x_6, x_7, x_8); +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; -x_41 = lean_ctor_get(x_40, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_ctor_get(x_37, 1); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 2); lean_inc(x_42); -lean_dec(x_37); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_box(0); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_45 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_getMVarDependencies_go___spec__1(x_1, x_43, x_44, x_3, x_4, x_5, x_6, x_7, x_41); -if (lean_obj_tag(x_45) == 0) +x_43 = l_Lean_MVarId_getMVarDependencies_addMVars(x_1, x_42, x_3, x_4, x_5, x_6, x_7, x_41); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_40, 1); +lean_inc(x_45); +lean_dec(x_40); x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); lean_dec(x_45); -x_47 = l_Lean_getDelayedMVarAssignment_x3f___at_Lean_MVarId_getMVarDependencies_go___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); +x_47 = lean_box(0); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_48 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_getMVarDependencies_go___spec__1(x_1, x_46, x_47, x_3, x_4, x_5, x_6, x_7, x_44); if (lean_obj_tag(x_48) == 0) { -uint8_t x_49; -lean_dec(x_6); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_49 = !lean_is_exclusive(x_47); -if (x_49 == 0) -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_47, 0); -lean_dec(x_50); -lean_ctor_set(x_47, 0, x_44); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_44); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_dec(x_47); -x_54 = lean_ctor_get(x_48, 0); -lean_inc(x_54); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); lean_dec(x_48); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -lean_inc(x_55); -x_67 = l_Lean_MVarId_isAssignedOrDelayedAssigned___at_Lean_MVarId_getMVarDependencies_go___spec__7(x_55, x_3, x_4, x_5, x_6, x_7, x_53); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_unbox(x_68); -lean_dec(x_68); -if (x_69 == 0) +x_50 = l_Lean_getDelayedMVarAssignment_x3f___at_Lean_MVarId_getMVarDependencies_go___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_49); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_70; uint8_t x_71; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = 1; -x_56 = x_71; -x_57 = x_70; -goto block_66; -} -else -{ -lean_object* x_72; uint8_t x_73; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 0; -x_56 = x_73; -x_57 = x_72; -goto block_66; -} -block_66: -{ -if (x_56 == 0) -{ -x_2 = x_55; -x_8 = x_57; -goto _start; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_st_ref_take(x_3, x_57); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -lean_inc(x_55); -x_62 = l_Lean_HashSetImp_insert___at_Lean_MVarId_getMVarDependencies_addMVars___spec__2(x_60, x_55); -x_63 = lean_st_ref_set(x_3, x_62, x_61); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_2 = x_55; -x_8 = x_64; -goto _start; -} -} -} -} -else -{ -uint8_t x_74; +uint8_t x_52; lean_dec(x_6); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_74 = !lean_is_exclusive(x_45); -if (x_74 == 0) +x_52 = !lean_is_exclusive(x_50); +if (x_52 == 0) { -return x_45; +lean_object* x_53; +x_53 = lean_ctor_get(x_50, 0); +lean_dec(x_53); +lean_ctor_set(x_50, 0, x_47); +return x_50; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_45, 0); -x_76 = lean_ctor_get(x_45, 1); -lean_inc(x_76); +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); +lean_dec(x_50); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_47); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +lean_dec(x_50); +x_57 = lean_ctor_get(x_51, 0); +lean_inc(x_57); +lean_dec(x_51); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +lean_inc(x_58); +x_70 = l_Lean_MVarId_isAssignedOrDelayedAssigned___at_Lean_MVarId_getMVarDependencies_go___spec__7(x_58, x_3, x_4, x_5, x_6, x_7, x_56); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_unbox(x_71); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; uint8_t x_74; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = 1; +x_59 = x_74; +x_60 = x_73; +goto block_69; +} +else +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_70, 1); lean_inc(x_75); -lean_dec(x_45); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_dec(x_70); +x_76 = 0; +x_59 = x_76; +x_60 = x_75; +goto block_69; +} +block_69: +{ +if (x_59 == 0) +{ +x_2 = x_58; +x_8 = x_60; +goto _start; +} +else +{ +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_62 = lean_st_ref_take(x_3, x_60); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +lean_inc(x_58); +x_65 = l_Lean_HashSetImp_insert___at_Lean_MVarId_getMVarDependencies_addMVars___spec__2(x_63, x_58); +x_66 = lean_st_ref_set(x_3, x_65, x_64); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_2 = x_58; +x_8 = x_67; +goto _start; +} } } } else { -uint8_t x_78; -lean_dec(x_37); +uint8_t x_77; lean_dec(x_6); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_78 = !lean_is_exclusive(x_40); -if (x_78 == 0) +x_77 = !lean_is_exclusive(x_48); +if (x_77 == 0) { -return x_40; +return x_48; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_40, 0); -x_80 = lean_ctor_get(x_40, 1); -lean_inc(x_80); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_48, 0); +x_79 = lean_ctor_get(x_48, 1); lean_inc(x_79); -lean_dec(x_40); -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; +lean_inc(x_78); +lean_dec(x_48); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } else { -uint8_t x_82; +uint8_t x_81; +lean_dec(x_40); lean_dec(x_6); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_82 = !lean_is_exclusive(x_36); -if (x_82 == 0) +x_81 = !lean_is_exclusive(x_43); +if (x_81 == 0) { -return x_36; +return x_43; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_36, 0); -x_84 = lean_ctor_get(x_36, 1); -lean_inc(x_84); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_43, 0); +x_83 = lean_ctor_get(x_43, 1); lean_inc(x_83); -lean_dec(x_36); -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; +lean_inc(x_82); +lean_dec(x_43); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +uint8_t x_85; lean_dec(x_6); -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_add(x_12, x_86); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_85 = !lean_is_exclusive(x_39); +if (x_85 == 0) +{ +return x_39; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_39, 0); +x_87 = lean_ctor_get(x_39, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_39); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_6); +x_89 = lean_unsigned_to_nat(1u); +x_90 = lean_nat_add(x_12, x_89); lean_dec(x_12); -x_88 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_88, 0, x_9); -lean_ctor_set(x_88, 1, x_10); -lean_ctor_set(x_88, 2, x_11); -lean_ctor_set(x_88, 3, x_87); -lean_ctor_set(x_88, 4, x_13); -lean_ctor_set(x_88, 5, x_14); -lean_ctor_set(x_88, 6, x_15); -lean_ctor_set(x_88, 7, x_16); -lean_ctor_set(x_88, 8, x_17); -lean_ctor_set(x_88, 9, x_18); -lean_ctor_set(x_88, 10, x_19); -lean_ctor_set_uint8(x_88, sizeof(void*)*11, x_20); +x_91 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_91, 0, x_9); +lean_ctor_set(x_91, 1, x_10); +lean_ctor_set(x_91, 2, x_11); +lean_ctor_set(x_91, 3, x_90); +lean_ctor_set(x_91, 4, x_13); +lean_ctor_set(x_91, 5, x_14); +lean_ctor_set(x_91, 6, x_15); +lean_ctor_set(x_91, 7, x_16); +lean_ctor_set(x_91, 8, x_17); +lean_ctor_set(x_91, 9, x_18); +lean_ctor_set(x_91, 10, x_19); +lean_ctor_set(x_91, 11, x_21); +lean_ctor_set_uint8(x_91, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_91, sizeof(void*)*12 + 1, x_22); lean_inc(x_2); -x_89 = l_Lean_MVarId_getDecl(x_2, x_4, x_5, x_88, x_7, x_8); -if (lean_obj_tag(x_89) == 0) +x_92 = l_Lean_MVarId_getDecl(x_2, x_4, x_5, x_91, x_7, x_8); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_ctor_get(x_90, 2); -lean_inc(x_92); -lean_inc(x_7); -lean_inc(x_88); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_93 = l_Lean_MVarId_getMVarDependencies_addMVars(x_1, x_92, x_3, x_4, x_5, x_88, x_7, x_91); -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; -x_94 = lean_ctor_get(x_93, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); -lean_dec(x_93); -x_95 = lean_ctor_get(x_90, 1); +lean_dec(x_92); +x_95 = lean_ctor_get(x_93, 2); lean_inc(x_95); -lean_dec(x_90); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -x_97 = lean_box(0); lean_inc(x_7); -lean_inc(x_88); +lean_inc(x_91); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_98 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_getMVarDependencies_go___spec__1(x_1, x_96, x_97, x_3, x_4, x_5, x_88, x_7, x_94); -if (lean_obj_tag(x_98) == 0) +x_96 = l_Lean_MVarId_getMVarDependencies_addMVars(x_1, x_95, x_3, x_4, x_5, x_91, x_7, x_94); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +lean_dec(x_96); +x_98 = lean_ctor_get(x_93, 1); +lean_inc(x_98); +lean_dec(x_93); x_99 = lean_ctor_get(x_98, 1); lean_inc(x_99); lean_dec(x_98); -x_100 = l_Lean_getDelayedMVarAssignment_x3f___at_Lean_MVarId_getMVarDependencies_go___spec__6(x_2, x_3, x_4, x_5, x_88, x_7, x_99); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); +x_100 = lean_box(0); +lean_inc(x_7); +lean_inc(x_91); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_101 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_getMVarDependencies_go___spec__1(x_1, x_99, x_100, x_3, x_4, x_5, x_91, x_7, x_97); if (lean_obj_tag(x_101) == 0) { lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_88); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_102 = lean_ctor_get(x_100, 1); +x_102 = lean_ctor_get(x_101, 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_100); - x_103 = lean_box(0); -} -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_103; -} -lean_ctor_set(x_104, 0, x_97); -lean_ctor_set(x_104, 1, x_102); -return x_104; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_119; lean_object* x_120; uint8_t x_121; -x_105 = lean_ctor_get(x_100, 1); -lean_inc(x_105); -lean_dec(x_100); -x_106 = lean_ctor_get(x_101, 0); -lean_inc(x_106); lean_dec(x_101); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec(x_106); -lean_inc(x_107); -x_119 = l_Lean_MVarId_isAssignedOrDelayedAssigned___at_Lean_MVarId_getMVarDependencies_go___spec__7(x_107, x_3, x_4, x_5, x_88, x_7, x_105); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -lean_dec(x_120); -if (x_121 == 0) +x_103 = l_Lean_getDelayedMVarAssignment_x3f___at_Lean_MVarId_getMVarDependencies_go___spec__6(x_2, x_3, x_4, x_5, x_91, x_7, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_122; uint8_t x_123; -x_122 = lean_ctor_get(x_119, 1); -lean_inc(x_122); -lean_dec(x_119); -x_123 = 1; -x_108 = x_123; -x_109 = x_122; -goto block_118; -} -else -{ -lean_object* x_124; uint8_t x_125; -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_dec(x_119); -x_125 = 0; -x_108 = x_125; -x_109 = x_124; -goto block_118; -} -block_118: -{ -if (x_108 == 0) -{ -x_2 = x_107; -x_6 = x_88; -x_8 = x_109; -goto _start; -} -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_st_ref_take(x_3, x_109); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -lean_inc(x_107); -x_114 = l_Lean_HashSetImp_insert___at_Lean_MVarId_getMVarDependencies_addMVars___spec__2(x_112, x_107); -x_115 = lean_st_ref_set(x_3, x_114, x_113); -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -lean_dec(x_115); -x_2 = x_107; -x_6 = x_88; -x_8 = x_116; -goto _start; -} -} -} -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_88); +lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_91); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_126 = lean_ctor_get(x_98, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_98, 1); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_106 = x_103; +} else { + lean_dec_ref(x_103); + 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_100); +lean_ctor_set(x_107, 1, x_105); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_108 = lean_ctor_get(x_103, 1); +lean_inc(x_108); +lean_dec(x_103); +x_109 = lean_ctor_get(x_104, 0); +lean_inc(x_109); +lean_dec(x_104); +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +lean_dec(x_109); +lean_inc(x_110); +x_122 = l_Lean_MVarId_isAssignedOrDelayedAssigned___at_Lean_MVarId_getMVarDependencies_go___spec__7(x_110, x_3, x_4, x_5, x_91, x_7, x_108); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_unbox(x_123); +lean_dec(x_123); +if (x_124 == 0) +{ +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 = 1; +x_111 = x_126; +x_112 = x_125; +goto block_121; +} +else +{ +lean_object* x_127; uint8_t x_128; +x_127 = lean_ctor_get(x_122, 1); lean_inc(x_127); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_128 = x_98; -} else { - lean_dec_ref(x_98); - x_128 = lean_box(0); +lean_dec(x_122); +x_128 = 0; +x_111 = x_128; +x_112 = x_127; +goto block_121; +} +block_121: +{ +if (x_111 == 0) +{ +x_2 = x_110; +x_6 = x_91; +x_8 = x_112; +goto _start; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_114 = lean_st_ref_take(x_3, x_112); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_110); +x_117 = l_Lean_HashSetImp_insert___at_Lean_MVarId_getMVarDependencies_addMVars___spec__2(x_115, x_110); +x_118 = lean_st_ref_set(x_3, x_117, x_116); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +lean_dec(x_118); +x_2 = x_110; +x_6 = x_91; +x_8 = x_119; +goto _start; } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); -} else { - x_129 = x_128; } -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_90); -lean_dec(x_88); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_91); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_130 = lean_ctor_get(x_93, 0); +x_129 = lean_ctor_get(x_101, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_101, 1); lean_inc(x_130); -x_131 = lean_ctor_get(x_93, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_132 = x_93; +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_131 = x_101; } else { - lean_dec_ref(x_93); - x_132 = lean_box(0); + lean_dec_ref(x_101); + x_131 = lean_box(0); } -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); } else { - x_133 = x_132; + x_132 = x_131; } -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -return x_133; +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_88); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_93); +lean_dec(x_91); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_134 = lean_ctor_get(x_89, 0); +x_133 = lean_ctor_get(x_96, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_96, 1); lean_inc(x_134); -x_135 = lean_ctor_get(x_89, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_136 = x_89; +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_135 = x_96; } else { - lean_dec_ref(x_89); - x_136 = lean_box(0); + lean_dec_ref(x_96); + x_135 = lean_box(0); } -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_137 = x_136; + x_136 = x_135; } -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -return x_137; +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_91); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_137 = lean_ctor_get(x_92, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_92, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_139 = x_92; +} else { + lean_dec_ref(x_92); + 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 { -lean_object* x_138; +lean_object* x_141; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -3559,13 +3567,13 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -x_138 = l_Lean_throwMaxRecDepthAt___at_Lean_MVarId_getMVarDependencies_go___spec__8(x_14, x_3, x_4, x_5, x_6, x_7, x_8); +x_141 = l_Lean_throwMaxRecDepthAt___at_Lean_MVarId_getMVarDependencies_go___spec__8(x_14, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_138; +return x_141; } } } diff --git a/stage0/stdlib/Lean/Meta/CongrTheorems.c b/stage0/stdlib/Lean/Meta/CongrTheorems.c index 586a5f1a0d..b4442a1208 100644 --- a/stage0/stdlib/Lean/Meta/CongrTheorems.c +++ b/stage0/stdlib/Lean/Meta/CongrTheorems.c @@ -47,6 +47,7 @@ lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2; LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__6(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_reprCongrArgKind____x40_Lean_Meta_CongrTheorems___hyg_15____closed__31; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___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___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames___boxed(lean_object*, lean_object*); @@ -9287,14 +9288,18 @@ if (x_23 == 0) { lean_object* x_24; uint8_t x_25; x_24 = lean_ctor_get(x_18, 0); -x_25 = l_Lean_Exception_isRuntime(x_24); +x_25 = l_Lean_Exception_isInterrupt(x_24); if (x_25 == 0) { -lean_object* x_26; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_dec(x_24); -x_26 = lean_box(0); +x_27 = lean_box(0); lean_ctor_set_tag(x_18, 0); -lean_ctor_set(x_18, 0, x_26); +lean_ctor_set(x_18, 0, x_27); return x_18; } else @@ -9304,37 +9309,55 @@ return x_18; } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_18, 0); -x_28 = lean_ctor_get(x_18, 1); +return x_18; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_18, 0); +x_29 = lean_ctor_get(x_18, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); lean_dec(x_18); -x_29 = l_Lean_Exception_isRuntime(x_27); -if (x_29 == 0) +x_30 = l_Lean_Exception_isInterrupt(x_28); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; -lean_dec(x_27); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_28); -return x_31; +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_28); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +return x_33; } else { -lean_object* x_32; -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_28); -return x_32; +lean_object* x_34; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_28); +lean_ctor_set(x_34, 1, x_29); +return x_34; +} +} +else +{ +lean_object* x_35; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_29); +return x_35; } } } } else { -uint8_t x_33; +uint8_t x_36; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9342,52 +9365,74 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_33 = !lean_is_exclusive(x_10); -if (x_33 == 0) +x_36 = !lean_is_exclusive(x_10); +if (x_36 == 0) { -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_10, 0); -x_35 = l_Lean_Exception_isRuntime(x_34); -if (x_35 == 0) -{ -lean_object* x_36; -lean_dec(x_34); -x_36 = lean_box(0); -lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_36); -return x_10; -} -else -{ -return x_10; -} -} -else -{ -lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_object* x_37; uint8_t x_38; x_37 = lean_ctor_get(x_10, 0); -x_38 = lean_ctor_get(x_10, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_10); +x_38 = l_Lean_Exception_isInterrupt(x_37); +if (x_38 == 0) +{ +uint8_t x_39; x_39 = l_Lean_Exception_isRuntime(x_37); if (x_39 == 0) { -lean_object* x_40; lean_object* x_41; +lean_object* x_40; lean_dec(x_37); x_40 = lean_box(0); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; +lean_ctor_set_tag(x_10, 0); +lean_ctor_set(x_10, 0, x_40); +return x_10; } else { -lean_object* x_42; -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_37); -lean_ctor_set(x_42, 1, x_38); -return x_42; +return x_10; +} +} +else +{ +return x_10; +} +} +else +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_10, 0); +x_42 = lean_ctor_get(x_10, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_10); +x_43 = l_Lean_Exception_isInterrupt(x_41); +if (x_43 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Exception_isRuntime(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; +} +else +{ +lean_object* x_47; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_41); +lean_ctor_set(x_47, 1, x_42); +return x_47; +} +} +else +{ +lean_object* x_48; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_42); +return x_48; } } } diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 57ae148498..cf4bb99e09 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -110,6 +110,7 @@ double lean_float_div(double, double); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_20020____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_addLetDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); @@ -2695,7 +2696,7 @@ lean_dec(x_24); x_25 = !lean_is_exclusive(x_21); 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; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_44; lean_object* x_45; lean_object* x_84; lean_object* x_85; +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_46; lean_object* x_47; lean_object* x_86; lean_object* x_87; x_26 = lean_ctor_get(x_21, 5); lean_dec(x_26); x_27 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -2717,7 +2718,7 @@ if (lean_is_exclusive(x_30)) { lean_dec_ref(x_30); x_33 = lean_box(0); } -x_84 = lean_unsigned_to_nat(1u); +x_86 = lean_unsigned_to_nat(1u); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -2725,338 +2726,361 @@ lean_inc(x_11); lean_inc(x_9); lean_inc_n(x_8, 2); lean_inc(x_5); -x_85 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_84, x_9, x_11, x_12, x_13, x_14, x_32); +x_87 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_86, x_9, x_11, x_12, x_13, x_14, x_32); lean_dec(x_8); lean_dec(x_5); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -lean_dec(x_86); if (lean_obj_tag(x_87) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_85, 1); +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -lean_dec(x_85); -x_89 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; -x_90 = lean_box(0); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +lean_dec(x_88); +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_87, 1); +lean_inc(x_90); +lean_dec(x_87); +x_91 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; +x_92 = lean_box(0); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_91 = lean_apply_6(x_89, x_90, x_11, x_12, x_13, x_14, x_88); -if (lean_obj_tag(x_91) == 0) +x_93 = lean_apply_6(x_91, x_92, x_11, x_12, x_13, x_14, x_90); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_92; lean_object* x_93; uint8_t x_94; -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_unbox(x_92); -lean_dec(x_92); -x_44 = x_94; -x_45 = x_93; -goto block_83; -} -else -{ -lean_object* x_95; lean_object* x_96; -lean_dec(x_31); -x_95 = lean_ctor_get(x_91, 0); +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); -x_96 = lean_ctor_get(x_91, 1); -lean_inc(x_96); -lean_dec(x_91); -x_34 = x_95; -x_35 = x_96; -goto block_43; -} +lean_dec(x_93); +x_96 = lean_unbox(x_94); +lean_dec(x_94); +x_46 = x_96; +x_47 = x_95; +goto block_85; } else { -lean_object* x_97; lean_object* x_98; uint8_t x_99; -x_97 = lean_ctor_get(x_85, 1); -lean_inc(x_97); -lean_dec(x_85); -x_98 = lean_ctor_get(x_87, 0); -lean_inc(x_98); -lean_dec(x_87); -x_99 = lean_unbox(x_98); -lean_dec(x_98); -x_44 = x_99; -x_45 = x_97; -goto block_83; -} -} -else -{ -lean_object* x_100; lean_object* x_101; +lean_object* x_97; lean_object* x_98; lean_dec(x_31); -x_100 = lean_ctor_get(x_85, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_85, 1); -lean_inc(x_101); -lean_dec(x_85); -x_34 = x_100; -x_35 = x_101; -goto block_43; +x_97 = lean_ctor_get(x_93, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_93, 1); +lean_inc(x_98); +lean_dec(x_93); +x_34 = x_97; +x_35 = x_98; +goto block_45; } -block_43: +} +else +{ +lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_99 = lean_ctor_get(x_87, 1); +lean_inc(x_99); +lean_dec(x_87); +x_100 = lean_ctor_get(x_89, 0); +lean_inc(x_100); +lean_dec(x_89); +x_101 = lean_unbox(x_100); +lean_dec(x_100); +x_46 = x_101; +x_47 = x_99; +goto block_85; +} +} +else +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_31); +x_102 = lean_ctor_get(x_87, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_87, 1); +lean_inc(x_103); +lean_dec(x_87); +x_34 = x_102; +x_35 = x_103; +goto block_45; +} +block_45: { uint8_t x_36; -x_36 = l_Lean_Exception_isRuntime(x_34); +x_36 = l_Lean_Exception_isInterrupt(x_34); if (x_36 == 0) { -lean_object* x_37; uint8_t x_38; +uint8_t x_37; +x_37 = l_Lean_Exception_isRuntime(x_34); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; lean_dec(x_33); -x_37 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_35); +x_38 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_35); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_17); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set_tag(x_37, 1); -lean_ctor_set(x_37, 0, x_34); -return x_37; +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +lean_ctor_set_tag(x_38, 1); +lean_ctor_set(x_38, 0, x_34); +return x_38; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_34); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_34); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } else { -lean_object* x_42; +lean_object* x_43; lean_dec(x_17); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); if (lean_is_scalar(x_33)) { - x_42 = lean_alloc_ctor(1, 2, 0); + x_43 = lean_alloc_ctor(1, 2, 0); } else { - x_42 = x_33; - lean_ctor_set_tag(x_42, 1); + x_43 = x_33; + lean_ctor_set_tag(x_43, 1); } -lean_ctor_set(x_42, 0, x_34); -lean_ctor_set(x_42, 1, x_35); -return x_42; +lean_ctor_set(x_43, 0, x_34); +lean_ctor_set(x_43, 1, x_35); +return x_43; } } -block_83: +else { -if (x_44 == 0) +lean_object* x_44; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_is_scalar(x_33)) { + x_44 = lean_alloc_ctor(1, 2, 0); +} else { + x_44 = x_33; + lean_ctor_set_tag(x_44, 1); +} +lean_ctor_set(x_44, 0, x_34); +lean_ctor_set(x_44, 1, x_35); +return x_44; +} +} +block_85: { -lean_object* x_46; uint8_t x_47; +if (x_46 == 0) +{ +lean_object* x_48; uint8_t x_49; lean_dec(x_33); lean_dec(x_31); -x_46 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_45); +x_48 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_47); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_17); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) { -lean_object* x_48; uint8_t x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); +lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +x_51 = 0; +x_52 = lean_box(x_51); +lean_ctor_set(x_48, 0, x_52); +return x_48; +} +else +{ +lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_48, 1); +lean_inc(x_53); lean_dec(x_48); -x_49 = 0; -x_50 = lean_box(x_49); -lean_ctor_set(x_46, 0, x_50); -return x_46; -} -else -{ -lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_46, 1); -lean_inc(x_51); -lean_dec(x_46); -x_52 = 0; -x_53 = lean_box(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_51); -return x_54; +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; } } else { -uint8_t x_55; lean_object* x_56; -x_55 = 0; +uint8_t x_57; lean_object* x_58; +x_57 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_56 = l_Lean_Meta_processPostponed(x_10, x_55, x_11, x_12, x_13, x_14, x_45); -if (lean_obj_tag(x_56) == 0) +x_58 = l_Lean_Meta_processPostponed(x_10, x_57, x_11, x_12, x_13, x_14, x_47); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_57; uint8_t x_58; +lean_object* x_59; uint8_t x_60; lean_dec(x_33); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_unbox(x_57); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_dec(x_31); -x_59 = lean_ctor_get(x_56, 1); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec(x_56); -x_60 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_59); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_60 = lean_unbox(x_59); +lean_dec(x_59); +if (x_60 == 0) { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_60, 0); -lean_dec(x_62); -x_63 = lean_box(x_55); -lean_ctor_set(x_60, 0, x_63); -return x_60; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -lean_dec(x_60); -x_65 = lean_box(x_55); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_17); -x_67 = lean_ctor_get(x_56, 1); -lean_inc(x_67); -lean_dec(x_56); -x_68 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_67); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_PersistentArray_append___rarg(x_31, x_69); -x_72 = l_Lean_Meta_setPostponed(x_71, x_11, x_12, x_13, x_14, x_70); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -x_75 = 1; -x_76 = lean_box(x_75); -lean_ctor_set(x_72, 0, x_76); -return x_72; -} -else -{ -lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = 1; -x_79 = lean_box(x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_77); -return x_80; -} -} -} -else -{ -lean_object* x_81; lean_object* x_82; +lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_dec(x_31); -x_81 = lean_ctor_get(x_56, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_56, 1); -lean_inc(x_82); -lean_dec(x_56); -x_34 = x_81; -x_35 = x_82; -goto block_43; +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); +x_62 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_61); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_17); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_62, 0); +lean_dec(x_64); +x_65 = lean_box(x_57); +lean_ctor_set(x_62, 0, x_65); +return x_62; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_62, 1); +lean_inc(x_66); +lean_dec(x_62); +x_67 = lean_box(x_57); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +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; uint8_t x_75; +lean_dec(x_17); +x_69 = lean_ctor_get(x_58, 1); +lean_inc(x_69); +lean_dec(x_58); +x_70 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_69); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = l_Lean_PersistentArray_append___rarg(x_31, x_71); +x_74 = l_Lean_Meta_setPostponed(x_73, x_11, x_12, x_13, x_14, x_72); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_74, 0); +lean_dec(x_76); +x_77 = 1; +x_78 = lean_box(x_77); +lean_ctor_set(x_74, 0, x_78); +return x_74; +} +else +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +x_79 = lean_ctor_get(x_74, 1); +lean_inc(x_79); +lean_dec(x_74); +x_80 = 1; +x_81 = lean_box(x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_79); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_31); +x_83 = lean_ctor_get(x_58, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_58, 1); +lean_inc(x_84); +lean_dec(x_58); +x_34 = x_83; +x_35 = x_84; +goto block_45; } } } } 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; 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; uint8_t x_125; lean_object* x_126; lean_object* x_157; lean_object* x_158; -x_102 = lean_ctor_get(x_21, 0); -x_103 = lean_ctor_get(x_21, 1); -x_104 = lean_ctor_get(x_21, 2); -x_105 = lean_ctor_get(x_21, 3); -x_106 = lean_ctor_get(x_21, 4); -x_107 = lean_ctor_get(x_21, 6); +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; uint8_t x_129; lean_object* x_130; lean_object* x_161; lean_object* x_162; +x_104 = lean_ctor_get(x_21, 0); +x_105 = lean_ctor_get(x_21, 1); +x_106 = lean_ctor_get(x_21, 2); +x_107 = lean_ctor_get(x_21, 3); +x_108 = lean_ctor_get(x_21, 4); +x_109 = lean_ctor_get(x_21, 6); +lean_inc(x_109); +lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); -lean_inc(x_102); lean_dec(x_21); -x_108 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_109 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_109, 0, x_102); -lean_ctor_set(x_109, 1, x_103); -lean_ctor_set(x_109, 2, x_104); -lean_ctor_set(x_109, 3, x_105); -lean_ctor_set(x_109, 4, x_106); -lean_ctor_set(x_109, 5, x_108); -lean_ctor_set(x_109, 6, x_107); -lean_ctor_set(x_20, 1, x_109); -x_110 = lean_st_ref_set(x_12, x_20, x_22); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); -lean_dec(x_110); -x_112 = l_Lean_Meta_getResetPostponed(x_11, x_12, x_13, x_14, x_111); -x_113 = lean_ctor_get(x_112, 0); +x_110 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_111 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_111, 0, x_104); +lean_ctor_set(x_111, 1, x_105); +lean_ctor_set(x_111, 2, x_106); +lean_ctor_set(x_111, 3, x_107); +lean_ctor_set(x_111, 4, x_108); +lean_ctor_set(x_111, 5, x_110); +lean_ctor_set(x_111, 6, x_109); +lean_ctor_set(x_20, 1, x_111); +x_112 = lean_st_ref_set(x_12, x_20, x_22); +x_113 = lean_ctor_get(x_112, 1); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; +lean_dec(x_112); +x_114 = l_Lean_Meta_getResetPostponed(x_11, x_12, x_13, x_14, x_113); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; } else { - lean_dec_ref(x_112); - x_115 = lean_box(0); + lean_dec_ref(x_114); + x_117 = lean_box(0); } -x_157 = lean_unsigned_to_nat(1u); +x_161 = lean_unsigned_to_nat(1u); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -3064,306 +3088,329 @@ lean_inc(x_11); lean_inc(x_9); lean_inc_n(x_8, 2); lean_inc(x_5); -x_158 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_157, x_9, x_11, x_12, x_13, x_14, x_114); +x_162 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_161, x_9, x_11, x_12, x_13, x_14, x_116); lean_dec(x_8); lean_dec(x_5); -if (lean_obj_tag(x_158) == 0) +if (lean_obj_tag(x_162) == 0) { -lean_object* x_159; lean_object* x_160; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -lean_dec(x_159); -if (lean_obj_tag(x_160) == 0) -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_161 = lean_ctor_get(x_158, 1); -lean_inc(x_161); -lean_dec(x_158); -x_162 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; -x_163 = lean_box(0); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_164 = lean_apply_6(x_162, x_163, x_11, x_12, x_13, x_14, x_161); +lean_object* x_163; lean_object* x_164; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +lean_dec(x_163); if (lean_obj_tag(x_164) == 0) { -lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_165 = lean_ctor_get(x_164, 0); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_165 = lean_ctor_get(x_162, 1); lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_unbox(x_165); -lean_dec(x_165); -x_125 = x_167; -x_126 = x_166; -goto block_156; -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_113); -x_168 = lean_ctor_get(x_164, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_164, 1); -lean_inc(x_169); -lean_dec(x_164); -x_116 = x_168; -x_117 = x_169; -goto block_124; -} -} -else -{ -lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_170 = lean_ctor_get(x_158, 1); -lean_inc(x_170); -lean_dec(x_158); -x_171 = lean_ctor_get(x_160, 0); -lean_inc(x_171); -lean_dec(x_160); -x_172 = lean_unbox(x_171); -lean_dec(x_171); -x_125 = x_172; -x_126 = x_170; -goto block_156; -} -} -else -{ -lean_object* x_173; lean_object* x_174; -lean_dec(x_113); -x_173 = lean_ctor_get(x_158, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_158, 1); -lean_inc(x_174); -lean_dec(x_158); -x_116 = x_173; -x_117 = x_174; -goto block_124; -} -block_124: -{ -uint8_t x_118; -x_118 = l_Lean_Exception_isRuntime(x_116); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_115); -x_119 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_117); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_121; - lean_ctor_set_tag(x_122, 1); -} -lean_ctor_set(x_122, 0, x_116); -lean_ctor_set(x_122, 1, x_120); -return x_122; -} -else -{ -lean_object* x_123; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -if (lean_is_scalar(x_115)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_115; - lean_ctor_set_tag(x_123, 1); -} -lean_ctor_set(x_123, 0, x_116); -lean_ctor_set(x_123, 1, x_117); -return x_123; -} -} -block_156: -{ -if (x_125 == 0) -{ -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_dec(x_115); -lean_dec(x_113); -x_127 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_126); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_128 = lean_ctor_get(x_127, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_129 = x_127; -} else { - lean_dec_ref(x_127); - x_129 = lean_box(0); -} -x_130 = 0; -x_131 = lean_box(x_130); -if (lean_is_scalar(x_129)) { - x_132 = lean_alloc_ctor(0, 2, 0); -} else { - x_132 = x_129; -} -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_128); -return x_132; -} -else -{ -uint8_t x_133; lean_object* x_134; -x_133 = 0; +lean_dec(x_162); +x_166 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; +x_167 = lean_box(0); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_134 = l_Lean_Meta_processPostponed(x_10, x_133, x_11, x_12, x_13, x_14, x_126); -if (lean_obj_tag(x_134) == 0) +x_168 = lean_apply_6(x_166, x_167, x_11, x_12, x_13, x_14, x_165); +if (lean_obj_tag(x_168) == 0) { -lean_object* x_135; uint8_t x_136; +lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec(x_168); +x_171 = lean_unbox(x_169); +lean_dec(x_169); +x_129 = x_171; +x_130 = x_170; +goto block_160; +} +else +{ +lean_object* x_172; lean_object* x_173; lean_dec(x_115); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_unbox(x_135); -lean_dec(x_135); -if (x_136 == 0) -{ -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_dec(x_113); -x_137 = lean_ctor_get(x_134, 1); -lean_inc(x_137); -lean_dec(x_134); -x_138 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_137); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_140 = x_138; -} else { - lean_dec_ref(x_138); - x_140 = lean_box(0); -} -x_141 = lean_box(x_133); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_140; -} -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_139); -return x_142; -} -else -{ -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; uint8_t x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_17); -x_143 = lean_ctor_get(x_134, 1); -lean_inc(x_143); -lean_dec(x_134); -x_144 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_143); -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 = l_Lean_PersistentArray_append___rarg(x_113, x_145); -x_148 = l_Lean_Meta_setPostponed(x_147, x_11, x_12, x_13, x_14, x_146); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -x_149 = lean_ctor_get(x_148, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_150 = x_148; -} else { - lean_dec_ref(x_148); - x_150 = lean_box(0); -} -x_151 = 1; -x_152 = lean_box(x_151); -if (lean_is_scalar(x_150)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_150; -} -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_149); -return x_153; +x_172 = lean_ctor_get(x_168, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 1); +lean_inc(x_173); +lean_dec(x_168); +x_118 = x_172; +x_119 = x_173; +goto block_128; } } else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_113); -x_154 = lean_ctor_get(x_134, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_134, 1); -lean_inc(x_155); -lean_dec(x_134); -x_116 = x_154; -x_117 = x_155; -goto block_124; -} -} -} -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; 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; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_204; lean_object* x_205; lean_object* x_236; lean_object* x_237; -x_175 = lean_ctor_get(x_20, 0); -x_176 = lean_ctor_get(x_20, 2); -x_177 = lean_ctor_get(x_20, 3); -x_178 = lean_ctor_get(x_20, 4); -lean_inc(x_178); -lean_inc(x_177); -lean_inc(x_176); +lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_174 = lean_ctor_get(x_162, 1); +lean_inc(x_174); +lean_dec(x_162); +x_175 = lean_ctor_get(x_164, 0); lean_inc(x_175); -lean_dec(x_20); -x_179 = lean_ctor_get(x_21, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_21, 1); -lean_inc(x_180); -x_181 = lean_ctor_get(x_21, 2); -lean_inc(x_181); -x_182 = lean_ctor_get(x_21, 3); +lean_dec(x_164); +x_176 = lean_unbox(x_175); +lean_dec(x_175); +x_129 = x_176; +x_130 = x_174; +goto block_160; +} +} +else +{ +lean_object* x_177; lean_object* x_178; +lean_dec(x_115); +x_177 = lean_ctor_get(x_162, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_162, 1); +lean_inc(x_178); +lean_dec(x_162); +x_118 = x_177; +x_119 = x_178; +goto block_128; +} +block_128: +{ +uint8_t x_120; +x_120 = l_Lean_Exception_isInterrupt(x_118); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = l_Lean_Exception_isRuntime(x_118); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_117); +x_122 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_119); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_17); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_124 = x_122; +} else { + lean_dec_ref(x_122); + x_124 = lean_box(0); +} +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); +} else { + x_125 = x_124; + lean_ctor_set_tag(x_125, 1); +} +lean_ctor_set(x_125, 0, x_118); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +else +{ +lean_object* x_126; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_is_scalar(x_117)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_117; + lean_ctor_set_tag(x_126, 1); +} +lean_ctor_set(x_126, 0, x_118); +lean_ctor_set(x_126, 1, x_119); +return x_126; +} +} +else +{ +lean_object* x_127; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_is_scalar(x_117)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_117; + lean_ctor_set_tag(x_127, 1); +} +lean_ctor_set(x_127, 0, x_118); +lean_ctor_set(x_127, 1, x_119); +return x_127; +} +} +block_160: +{ +if (x_129 == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_117); +lean_dec(x_115); +x_131 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_130); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_17); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_133 = x_131; +} else { + lean_dec_ref(x_131); + x_133 = lean_box(0); +} +x_134 = 0; +x_135 = lean_box(x_134); +if (lean_is_scalar(x_133)) { + x_136 = lean_alloc_ctor(0, 2, 0); +} else { + x_136 = x_133; +} +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_132); +return x_136; +} +else +{ +uint8_t x_137; lean_object* x_138; +x_137 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_138 = l_Lean_Meta_processPostponed(x_10, x_137, x_11, x_12, x_13, x_14, x_130); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; uint8_t x_140; +lean_dec(x_117); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_unbox(x_139); +lean_dec(x_139); +if (x_140 == 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_dec(x_115); +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); +lean_dec(x_138); +x_142 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_141); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_17); +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_144 = x_142; +} else { + lean_dec_ref(x_142); + x_144 = lean_box(0); +} +x_145 = lean_box(x_137); +if (lean_is_scalar(x_144)) { + x_146 = lean_alloc_ctor(0, 2, 0); +} else { + x_146 = x_144; +} +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_143); +return x_146; +} +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; lean_object* x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_17); +x_147 = lean_ctor_get(x_138, 1); +lean_inc(x_147); +lean_dec(x_138); +x_148 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_147); +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 = l_Lean_PersistentArray_append___rarg(x_115, x_149); +x_152 = l_Lean_Meta_setPostponed(x_151, x_11, x_12, x_13, x_14, x_150); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_154 = x_152; +} else { + lean_dec_ref(x_152); + x_154 = lean_box(0); +} +x_155 = 1; +x_156 = lean_box(x_155); +if (lean_is_scalar(x_154)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_154; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_153); +return x_157; +} +} +else +{ +lean_object* x_158; lean_object* x_159; +lean_dec(x_115); +x_158 = lean_ctor_get(x_138, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_138, 1); +lean_inc(x_159); +lean_dec(x_138); +x_118 = x_158; +x_119 = x_159; +goto block_128; +} +} +} +} +} +else +{ +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; 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; uint8_t x_210; lean_object* x_211; lean_object* x_242; lean_object* x_243; +x_179 = lean_ctor_get(x_20, 0); +x_180 = lean_ctor_get(x_20, 2); +x_181 = lean_ctor_get(x_20, 3); +x_182 = lean_ctor_get(x_20, 4); lean_inc(x_182); -x_183 = lean_ctor_get(x_21, 4); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_20); +x_183 = lean_ctor_get(x_21, 0); lean_inc(x_183); -x_184 = lean_ctor_get(x_21, 6); +x_184 = lean_ctor_get(x_21, 1); lean_inc(x_184); +x_185 = lean_ctor_get(x_21, 2); +lean_inc(x_185); +x_186 = lean_ctor_get(x_21, 3); +lean_inc(x_186); +x_187 = lean_ctor_get(x_21, 4); +lean_inc(x_187); +x_188 = lean_ctor_get(x_21, 6); +lean_inc(x_188); if (lean_is_exclusive(x_21)) { lean_ctor_release(x_21, 0); lean_ctor_release(x_21, 1); @@ -3372,48 +3419,48 @@ if (lean_is_exclusive(x_21)) { lean_ctor_release(x_21, 4); lean_ctor_release(x_21, 5); lean_ctor_release(x_21, 6); - x_185 = x_21; + x_189 = x_21; } else { lean_dec_ref(x_21); - x_185 = lean_box(0); + x_189 = lean_box(0); } -x_186 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_185)) { - x_187 = lean_alloc_ctor(0, 7, 0); +x_190 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_189)) { + x_191 = lean_alloc_ctor(0, 7, 0); } else { - x_187 = x_185; + x_191 = x_189; } -lean_ctor_set(x_187, 0, x_179); -lean_ctor_set(x_187, 1, x_180); -lean_ctor_set(x_187, 2, x_181); -lean_ctor_set(x_187, 3, x_182); -lean_ctor_set(x_187, 4, x_183); -lean_ctor_set(x_187, 5, x_186); -lean_ctor_set(x_187, 6, x_184); -x_188 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_188, 0, x_175); -lean_ctor_set(x_188, 1, x_187); -lean_ctor_set(x_188, 2, x_176); -lean_ctor_set(x_188, 3, x_177); -lean_ctor_set(x_188, 4, x_178); -x_189 = lean_st_ref_set(x_12, x_188, x_22); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -lean_dec(x_189); -x_191 = l_Lean_Meta_getResetPostponed(x_11, x_12, x_13, x_14, x_190); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_194 = x_191; +lean_ctor_set(x_191, 0, x_183); +lean_ctor_set(x_191, 1, x_184); +lean_ctor_set(x_191, 2, x_185); +lean_ctor_set(x_191, 3, x_186); +lean_ctor_set(x_191, 4, x_187); +lean_ctor_set(x_191, 5, x_190); +lean_ctor_set(x_191, 6, x_188); +x_192 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_192, 0, x_179); +lean_ctor_set(x_192, 1, x_191); +lean_ctor_set(x_192, 2, x_180); +lean_ctor_set(x_192, 3, x_181); +lean_ctor_set(x_192, 4, x_182); +x_193 = lean_st_ref_set(x_12, x_192, x_22); +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +lean_dec(x_193); +x_195 = l_Lean_Meta_getResetPostponed(x_11, x_12, x_13, x_14, x_194); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_198 = x_195; } else { - lean_dec_ref(x_191); - x_194 = lean_box(0); + lean_dec_ref(x_195); + x_198 = lean_box(0); } -x_236 = lean_unsigned_to_nat(1u); +x_242 = lean_unsigned_to_nat(1u); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -3421,277 +3468,300 @@ lean_inc(x_11); lean_inc(x_9); lean_inc_n(x_8, 2); lean_inc(x_5); -x_237 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_236, x_9, x_11, x_12, x_13, x_14, x_193); +x_243 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_8, x_5, x_8, x_242, x_9, x_11, x_12, x_13, x_14, x_197); lean_dec(x_8); lean_dec(x_5); -if (lean_obj_tag(x_237) == 0) -{ -lean_object* x_238; lean_object* x_239; -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_238, 0); -lean_inc(x_239); -lean_dec(x_238); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_240 = lean_ctor_get(x_237, 1); -lean_inc(x_240); -lean_dec(x_237); -x_241 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; -x_242 = lean_box(0); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_243 = lean_apply_6(x_241, x_242, x_11, x_12, x_13, x_14, x_240); if (lean_obj_tag(x_243) == 0) { -lean_object* x_244; lean_object* x_245; uint8_t x_246; +lean_object* x_244; lean_object* x_245; x_244 = lean_ctor_get(x_243, 0); lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); +x_245 = lean_ctor_get(x_244, 0); lean_inc(x_245); -lean_dec(x_243); -x_246 = lean_unbox(x_244); lean_dec(x_244); -x_204 = x_246; -x_205 = x_245; -goto block_235; -} -else +if (lean_obj_tag(x_245) == 0) { -lean_object* x_247; lean_object* x_248; -lean_dec(x_192); -x_247 = lean_ctor_get(x_243, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_243, 1); -lean_inc(x_248); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_243, 1); +lean_inc(x_246); lean_dec(x_243); -x_195 = x_247; -x_196 = x_248; -goto block_203; -} -} -else -{ -lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_249 = lean_ctor_get(x_237, 1); -lean_inc(x_249); -lean_dec(x_237); -x_250 = lean_ctor_get(x_239, 0); -lean_inc(x_250); -lean_dec(x_239); -x_251 = lean_unbox(x_250); -lean_dec(x_250); -x_204 = x_251; -x_205 = x_249; -goto block_235; -} -} -else -{ -lean_object* x_252; lean_object* x_253; -lean_dec(x_192); -x_252 = lean_ctor_get(x_237, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_237, 1); -lean_inc(x_253); -lean_dec(x_237); -x_195 = x_252; -x_196 = x_253; -goto block_203; -} -block_203: -{ -uint8_t x_197; -x_197 = l_Lean_Exception_isRuntime(x_195); -if (x_197 == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_194); -x_198 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_196); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_199 = lean_ctor_get(x_198, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_200 = x_198; -} else { - lean_dec_ref(x_198); - 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_tag(x_201, 1); -} -lean_ctor_set(x_201, 0, x_195); -lean_ctor_set(x_201, 1, x_199); -return x_201; -} -else -{ -lean_object* x_202; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -if (lean_is_scalar(x_194)) { - x_202 = lean_alloc_ctor(1, 2, 0); -} else { - x_202 = x_194; - lean_ctor_set_tag(x_202, 1); -} -lean_ctor_set(x_202, 0, x_195); -lean_ctor_set(x_202, 1, x_196); -return x_202; -} -} -block_235: -{ -if (x_204 == 0) -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_194); -lean_dec(x_192); -x_206 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_205); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_17); -x_207 = lean_ctor_get(x_206, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_206)) { - lean_ctor_release(x_206, 0); - lean_ctor_release(x_206, 1); - x_208 = x_206; -} else { - lean_dec_ref(x_206); - x_208 = lean_box(0); -} -x_209 = 0; -x_210 = lean_box(x_209); -if (lean_is_scalar(x_208)) { - x_211 = lean_alloc_ctor(0, 2, 0); -} else { - x_211 = x_208; -} -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_207); -return x_211; -} -else -{ -uint8_t x_212; lean_object* x_213; -x_212 = 0; +x_247 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__7; +x_248 = lean_box(0); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_213 = l_Lean_Meta_processPostponed(x_10, x_212, x_11, x_12, x_13, x_14, x_205); -if (lean_obj_tag(x_213) == 0) +x_249 = lean_apply_6(x_247, x_248, x_11, x_12, x_13, x_14, x_246); +if (lean_obj_tag(x_249) == 0) { -lean_object* x_214; uint8_t x_215; -lean_dec(x_194); -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_unbox(x_214); -lean_dec(x_214); -if (x_215 == 0) +lean_object* x_250; lean_object* x_251; uint8_t x_252; +x_250 = lean_ctor_get(x_249, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +lean_dec(x_249); +x_252 = lean_unbox(x_250); +lean_dec(x_250); +x_210 = x_252; +x_211 = x_251; +goto block_241; +} +else { -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_dec(x_192); -x_216 = lean_ctor_get(x_213, 1); -lean_inc(x_216); -lean_dec(x_213); -x_217 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_216); +lean_object* x_253; lean_object* x_254; +lean_dec(x_196); +x_253 = lean_ctor_get(x_249, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_249, 1); +lean_inc(x_254); +lean_dec(x_249); +x_199 = x_253; +x_200 = x_254; +goto block_209; +} +} +else +{ +lean_object* x_255; lean_object* x_256; uint8_t x_257; +x_255 = lean_ctor_get(x_243, 1); +lean_inc(x_255); +lean_dec(x_243); +x_256 = lean_ctor_get(x_245, 0); +lean_inc(x_256); +lean_dec(x_245); +x_257 = lean_unbox(x_256); +lean_dec(x_256); +x_210 = x_257; +x_211 = x_255; +goto block_241; +} +} +else +{ +lean_object* x_258; lean_object* x_259; +lean_dec(x_196); +x_258 = lean_ctor_get(x_243, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_243, 1); +lean_inc(x_259); +lean_dec(x_243); +x_199 = x_258; +x_200 = x_259; +goto block_209; +} +block_209: +{ +uint8_t x_201; +x_201 = l_Lean_Exception_isInterrupt(x_199); +if (x_201 == 0) +{ +uint8_t x_202; +x_202 = l_Lean_Exception_isRuntime(x_199); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_198); +x_203 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_200); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_17); -x_218 = lean_ctor_get(x_217, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_219 = x_217; +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_205 = x_203; } else { - lean_dec_ref(x_217); - x_219 = lean_box(0); + lean_dec_ref(x_203); + x_205 = lean_box(0); } -x_220 = lean_box(x_212); -if (lean_is_scalar(x_219)) { - x_221 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(1, 2, 0); } else { - x_221 = x_219; + x_206 = x_205; + lean_ctor_set_tag(x_206, 1); } -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_218); -return x_221; +lean_ctor_set(x_206, 0, x_199); +lean_ctor_set(x_206, 1, x_204); +return x_206; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; lean_object* x_231; lean_object* x_232; +lean_object* x_207; lean_dec(x_17); -x_222 = lean_ctor_get(x_213, 1); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_is_scalar(x_198)) { + x_207 = lean_alloc_ctor(1, 2, 0); +} else { + x_207 = x_198; + lean_ctor_set_tag(x_207, 1); +} +lean_ctor_set(x_207, 0, x_199); +lean_ctor_set(x_207, 1, x_200); +return x_207; +} +} +else +{ +lean_object* x_208; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +if (lean_is_scalar(x_198)) { + x_208 = lean_alloc_ctor(1, 2, 0); +} else { + x_208 = x_198; + lean_ctor_set_tag(x_208, 1); +} +lean_ctor_set(x_208, 0, x_199); +lean_ctor_set(x_208, 1, x_200); +return x_208; +} +} +block_241: +{ +if (x_210 == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_198); +lean_dec(x_196); +x_212 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_211); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_17); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_214 = x_212; +} else { + lean_dec_ref(x_212); + x_214 = lean_box(0); +} +x_215 = 0; +x_216 = lean_box(x_215); +if (lean_is_scalar(x_214)) { + x_217 = lean_alloc_ctor(0, 2, 0); +} else { + x_217 = x_214; +} +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_213); +return x_217; +} +else +{ +uint8_t x_218; lean_object* x_219; +x_218 = 0; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_219 = l_Lean_Meta_processPostponed(x_10, x_218, x_11, x_12, x_13, x_14, x_211); +if (lean_obj_tag(x_219) == 0) +{ +lean_object* x_220; uint8_t x_221; +lean_dec(x_198); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_unbox(x_220); +lean_dec(x_220); +if (x_221 == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_196); +x_222 = lean_ctor_get(x_219, 1); lean_inc(x_222); -lean_dec(x_213); -x_223 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_222); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = l_Lean_PersistentArray_append___rarg(x_192, x_224); -x_227 = l_Lean_Meta_setPostponed(x_226, x_11, x_12, x_13, x_14, x_225); +lean_dec(x_219); +x_223 = l_Lean_Meta_SavedState_restore(x_17, x_11, x_12, x_13, x_14, x_222); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -x_228 = lean_ctor_get(x_227, 1); +lean_dec(x_17); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_225 = x_223; +} else { + lean_dec_ref(x_223); + x_225 = lean_box(0); +} +x_226 = lean_box(x_218); +if (lean_is_scalar(x_225)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_225; +} +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_224); +return x_227; +} +else +{ +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; uint8_t x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_17); +x_228 = lean_ctor_get(x_219, 1); lean_inc(x_228); -if (lean_is_exclusive(x_227)) { - lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_229 = x_227; +lean_dec(x_219); +x_229 = l_Lean_Meta_getPostponed___rarg(x_12, x_13, x_14, x_228); +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +x_232 = l_Lean_PersistentArray_append___rarg(x_196, x_230); +x_233 = l_Lean_Meta_setPostponed(x_232, x_11, x_12, x_13, x_14, x_231); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_234 = lean_ctor_get(x_233, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_235 = x_233; } else { - lean_dec_ref(x_227); - x_229 = lean_box(0); + lean_dec_ref(x_233); + x_235 = lean_box(0); } -x_230 = 1; -x_231 = lean_box(x_230); -if (lean_is_scalar(x_229)) { - x_232 = lean_alloc_ctor(0, 2, 0); +x_236 = 1; +x_237 = lean_box(x_236); +if (lean_is_scalar(x_235)) { + x_238 = lean_alloc_ctor(0, 2, 0); } else { - x_232 = x_229; + x_238 = x_235; } -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_228); -return x_232; +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_234); +return x_238; } } else { -lean_object* x_233; lean_object* x_234; -lean_dec(x_192); -x_233 = lean_ctor_get(x_213, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_213, 1); -lean_inc(x_234); -lean_dec(x_213); -x_195 = x_233; -x_196 = x_234; -goto block_203; +lean_object* x_239; lean_object* x_240; +lean_dec(x_196); +x_239 = lean_ctor_get(x_219, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_219, 1); +lean_inc(x_240); +lean_dec(x_219); +x_199 = x_239; +x_200 = x_240; +goto block_209; } } } @@ -11890,7 +11960,7 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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, lean_object* x_12, lean_object* x_13) { _start: { -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; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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; uint8_t x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_8); x_14 = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_processPostponed___spec__2___rarg(x_12, x_13); x_15 = lean_ctor_get(x_14, 0); @@ -11920,997 +11990,1002 @@ x_26 = lean_ctor_get(x_11, 9); lean_inc(x_26); x_27 = lean_ctor_get(x_11, 10); lean_inc(x_27); -x_28 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); -x_29 = l_Lean_replaceRef(x_22, x_22); -x_30 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_30, 0, x_17); -lean_ctor_set(x_30, 1, x_18); -lean_ctor_set(x_30, 2, x_19); -lean_ctor_set(x_30, 3, x_20); -lean_ctor_set(x_30, 4, x_21); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -lean_ctor_set(x_30, 7, x_24); -lean_ctor_set(x_30, 8, x_25); -lean_ctor_set(x_30, 9, x_26); -lean_ctor_set(x_30, 10, x_27); -lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_28); +x_28 = lean_ctor_get_uint8(x_11, sizeof(void*)*12); +x_29 = lean_ctor_get(x_11, 11); +lean_inc(x_29); +x_30 = lean_ctor_get_uint8(x_11, sizeof(void*)*12 + 1); +x_31 = l_Lean_replaceRef(x_22, x_22); +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_17); +lean_ctor_set(x_32, 1, x_18); +lean_ctor_set(x_32, 2, x_19); +lean_ctor_set(x_32, 3, x_20); +lean_ctor_set(x_32, 4, x_21); +lean_ctor_set(x_32, 5, x_31); +lean_ctor_set(x_32, 6, x_23); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_25); +lean_ctor_set(x_32, 9, x_26); +lean_ctor_set(x_32, 10, x_27); +lean_ctor_set(x_32, 11, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_28); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_30); lean_inc(x_12); -lean_inc(x_30); +lean_inc(x_32); lean_inc(x_10); lean_inc(x_9); -x_31 = lean_apply_5(x_1, x_9, x_10, x_30, x_12, x_16); -if (lean_obj_tag(x_31) == 0) +x_33 = lean_apply_5(x_1, x_9, x_10, x_32, x_12, x_16); +if (lean_obj_tag(x_33) == 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_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_32, x_9, x_10, x_30, x_12, x_33); -lean_dec(x_30); -x_35 = lean_ctor_get(x_34, 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; uint8_t x_40; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__1; -x_38 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_37); -if (x_38 == 0) +lean_dec(x_33); +x_36 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_34, x_9, x_10, x_32, x_12, x_35); +lean_dec(x_32); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__1; +x_40 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_39); +if (x_40 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_io_mono_nanos_now(x_36); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); +lean_object* x_41; lean_object* x_42; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_109 = lean_io_mono_nanos_now(x_38); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_110 = lean_apply_5(x_7, x_9, x_10, x_11, x_12, x_109); -if (lean_obj_tag(x_110) == 0) +x_112 = lean_apply_5(x_7, x_9, x_10, x_11, x_12, x_111); +if (lean_obj_tag(x_112) == 0) { -uint8_t x_111; -x_111 = !lean_is_exclusive(x_110); -if (x_111 == 0) +uint8_t x_113; +x_113 = !lean_is_exclusive(x_112); +if (x_113 == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_112 = lean_ctor_get(x_110, 0); -x_113 = lean_ctor_get(x_110, 1); -x_114 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_114, 0, x_112); -x_115 = lean_io_mono_nanos_now(x_113); -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_114 = lean_ctor_get(x_112, 0); +x_115 = lean_ctor_get(x_112, 1); +x_116 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_116, 0, x_114); +x_117 = lean_io_mono_nanos_now(x_115); +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) { -lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; double x_121; double x_122; double x_123; double x_124; double x_125; lean_object* x_126; lean_object* x_127; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_ctor_get(x_115, 1); -x_119 = 0; -x_120 = lean_unsigned_to_nat(0u); -x_121 = l_Float_ofScientific(x_108, x_119, x_120); -lean_dec(x_108); -x_122 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_123 = lean_float_div(x_121, x_122); -x_124 = l_Float_ofScientific(x_117, x_119, x_120); +lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; double x_123; double x_124; double x_125; double x_126; double x_127; lean_object* x_128; lean_object* x_129; +x_119 = lean_ctor_get(x_117, 0); +x_120 = lean_ctor_get(x_117, 1); +x_121 = 0; +x_122 = lean_unsigned_to_nat(0u); +x_123 = l_Float_ofScientific(x_110, x_121, x_122); +lean_dec(x_110); +x_124 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_125 = lean_float_div(x_123, x_124); +x_126 = l_Float_ofScientific(x_119, x_121, x_122); +lean_dec(x_119); +x_127 = lean_float_div(x_126, x_124); +x_128 = lean_box_float(x_125); +x_129 = lean_box_float(x_127); +lean_ctor_set(x_117, 1, x_129); +lean_ctor_set(x_117, 0, x_128); +lean_ctor_set(x_112, 1, x_117); +lean_ctor_set(x_112, 0, x_116); +x_41 = x_112; +x_42 = x_120; +goto block_108; +} +else +{ +lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; double x_134; double x_135; double x_136; double x_137; double x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_130 = lean_ctor_get(x_117, 0); +x_131 = lean_ctor_get(x_117, 1); +lean_inc(x_131); +lean_inc(x_130); lean_dec(x_117); -x_125 = lean_float_div(x_124, x_122); -x_126 = lean_box_float(x_123); -x_127 = lean_box_float(x_125); -lean_ctor_set(x_115, 1, x_127); -lean_ctor_set(x_115, 0, x_126); -lean_ctor_set(x_110, 1, x_115); -lean_ctor_set(x_110, 0, x_114); -x_39 = x_110; -x_40 = x_118; -goto block_106; -} -else -{ -lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; double x_132; double x_133; double x_134; double x_135; double x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_128 = lean_ctor_get(x_115, 0); -x_129 = lean_ctor_get(x_115, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_115); -x_130 = 0; -x_131 = lean_unsigned_to_nat(0u); -x_132 = l_Float_ofScientific(x_108, x_130, x_131); -lean_dec(x_108); -x_133 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_134 = lean_float_div(x_132, x_133); -x_135 = l_Float_ofScientific(x_128, x_130, x_131); -lean_dec(x_128); -x_136 = lean_float_div(x_135, x_133); -x_137 = lean_box_float(x_134); -x_138 = lean_box_float(x_136); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -lean_ctor_set(x_110, 1, x_139); -lean_ctor_set(x_110, 0, x_114); -x_39 = x_110; -x_40 = x_129; -goto block_106; -} -} -else -{ -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; uint8_t x_147; lean_object* x_148; double x_149; double x_150; double x_151; double x_152; double x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_140 = lean_ctor_get(x_110, 0); -x_141 = lean_ctor_get(x_110, 1); -lean_inc(x_141); -lean_inc(x_140); +x_132 = 0; +x_133 = lean_unsigned_to_nat(0u); +x_134 = l_Float_ofScientific(x_110, x_132, x_133); lean_dec(x_110); -x_142 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_142, 0, x_140); -x_143 = lean_io_mono_nanos_now(x_141); -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_146 = x_143; -} else { - lean_dec_ref(x_143); - x_146 = lean_box(0); -} -x_147 = 0; -x_148 = lean_unsigned_to_nat(0u); -x_149 = l_Float_ofScientific(x_108, x_147, x_148); -lean_dec(x_108); -x_150 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_151 = lean_float_div(x_149, x_150); -x_152 = l_Float_ofScientific(x_144, x_147, x_148); -lean_dec(x_144); -x_153 = lean_float_div(x_152, x_150); -x_154 = lean_box_float(x_151); -x_155 = lean_box_float(x_153); -if (lean_is_scalar(x_146)) { - x_156 = lean_alloc_ctor(0, 2, 0); -} else { - x_156 = x_146; -} -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_142); -lean_ctor_set(x_157, 1, x_156); -x_39 = x_157; -x_40 = x_145; -goto block_106; +x_135 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_136 = lean_float_div(x_134, x_135); +x_137 = l_Float_ofScientific(x_130, x_132, x_133); +lean_dec(x_130); +x_138 = lean_float_div(x_137, x_135); +x_139 = lean_box_float(x_136); +x_140 = lean_box_float(x_138); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +lean_ctor_set(x_112, 1, x_141); +lean_ctor_set(x_112, 0, x_116); +x_41 = x_112; +x_42 = x_131; +goto block_108; } } else { -uint8_t x_158; -x_158 = !lean_is_exclusive(x_110); -if (x_158 == 0) +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; double x_151; double x_152; double x_153; double x_154; double x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_142 = lean_ctor_get(x_112, 0); +x_143 = lean_ctor_get(x_112, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_112); +x_144 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_144, 0, x_142); +x_145 = lean_io_mono_nanos_now(x_143); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = 0; +x_150 = lean_unsigned_to_nat(0u); +x_151 = l_Float_ofScientific(x_110, x_149, x_150); +lean_dec(x_110); +x_152 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_153 = lean_float_div(x_151, x_152); +x_154 = l_Float_ofScientific(x_146, x_149, x_150); +lean_dec(x_146); +x_155 = lean_float_div(x_154, x_152); +x_156 = lean_box_float(x_153); +x_157 = lean_box_float(x_155); +if (lean_is_scalar(x_148)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_148; +} +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_144); +lean_ctor_set(x_159, 1, x_158); +x_41 = x_159; +x_42 = x_147; +goto block_108; +} +} +else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_159 = lean_ctor_get(x_110, 0); -x_160 = lean_ctor_get(x_110, 1); -x_161 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_161, 0, x_159); -x_162 = lean_io_mono_nanos_now(x_160); -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) +uint8_t x_160; +x_160 = !lean_is_exclusive(x_112); +if (x_160 == 0) { -lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; double x_168; double x_169; double x_170; double x_171; double x_172; lean_object* x_173; lean_object* x_174; -x_164 = lean_ctor_get(x_162, 0); -x_165 = lean_ctor_get(x_162, 1); -x_166 = 0; -x_167 = lean_unsigned_to_nat(0u); -x_168 = l_Float_ofScientific(x_108, x_166, x_167); -lean_dec(x_108); -x_169 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_170 = lean_float_div(x_168, x_169); -x_171 = l_Float_ofScientific(x_164, x_166, x_167); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_161 = lean_ctor_get(x_112, 0); +x_162 = lean_ctor_get(x_112, 1); +x_163 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_163, 0, x_161); +x_164 = lean_io_mono_nanos_now(x_162); +x_165 = !lean_is_exclusive(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; double x_170; double x_171; double x_172; double x_173; double x_174; lean_object* x_175; lean_object* x_176; +x_166 = lean_ctor_get(x_164, 0); +x_167 = lean_ctor_get(x_164, 1); +x_168 = 0; +x_169 = lean_unsigned_to_nat(0u); +x_170 = l_Float_ofScientific(x_110, x_168, x_169); +lean_dec(x_110); +x_171 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_172 = lean_float_div(x_170, x_171); +x_173 = l_Float_ofScientific(x_166, x_168, x_169); +lean_dec(x_166); +x_174 = lean_float_div(x_173, x_171); +x_175 = lean_box_float(x_172); +x_176 = lean_box_float(x_174); +lean_ctor_set(x_164, 1, x_176); +lean_ctor_set(x_164, 0, x_175); +lean_ctor_set_tag(x_112, 0); +lean_ctor_set(x_112, 1, x_164); +lean_ctor_set(x_112, 0, x_163); +x_41 = x_112; +x_42 = x_167; +goto block_108; +} +else +{ +lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; double x_181; double x_182; double x_183; double x_184; double x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_177 = lean_ctor_get(x_164, 0); +x_178 = lean_ctor_get(x_164, 1); +lean_inc(x_178); +lean_inc(x_177); lean_dec(x_164); -x_172 = lean_float_div(x_171, x_169); -x_173 = lean_box_float(x_170); -x_174 = lean_box_float(x_172); -lean_ctor_set(x_162, 1, x_174); -lean_ctor_set(x_162, 0, x_173); -lean_ctor_set_tag(x_110, 0); -lean_ctor_set(x_110, 1, x_162); -lean_ctor_set(x_110, 0, x_161); -x_39 = x_110; -x_40 = x_165; -goto block_106; -} -else -{ -lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; double x_179; double x_180; double x_181; double x_182; double x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_175 = lean_ctor_get(x_162, 0); -x_176 = lean_ctor_get(x_162, 1); -lean_inc(x_176); -lean_inc(x_175); -lean_dec(x_162); -x_177 = 0; -x_178 = lean_unsigned_to_nat(0u); -x_179 = l_Float_ofScientific(x_108, x_177, x_178); -lean_dec(x_108); -x_180 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_181 = lean_float_div(x_179, x_180); -x_182 = l_Float_ofScientific(x_175, x_177, x_178); -lean_dec(x_175); -x_183 = lean_float_div(x_182, x_180); -x_184 = lean_box_float(x_181); -x_185 = lean_box_float(x_183); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -lean_ctor_set_tag(x_110, 0); -lean_ctor_set(x_110, 1, x_186); -lean_ctor_set(x_110, 0, x_161); -x_39 = x_110; -x_40 = x_176; -goto block_106; -} -} -else -{ -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; double x_196; double x_197; double x_198; double x_199; double x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_187 = lean_ctor_get(x_110, 0); -x_188 = lean_ctor_get(x_110, 1); -lean_inc(x_188); -lean_inc(x_187); +x_179 = 0; +x_180 = lean_unsigned_to_nat(0u); +x_181 = l_Float_ofScientific(x_110, x_179, x_180); lean_dec(x_110); -x_189 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_189, 0, x_187); -x_190 = lean_io_mono_nanos_now(x_188); -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_193 = x_190; -} else { - lean_dec_ref(x_190); - x_193 = lean_box(0); -} -x_194 = 0; -x_195 = lean_unsigned_to_nat(0u); -x_196 = l_Float_ofScientific(x_108, x_194, x_195); -lean_dec(x_108); -x_197 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; -x_198 = lean_float_div(x_196, x_197); -x_199 = l_Float_ofScientific(x_191, x_194, x_195); -lean_dec(x_191); -x_200 = lean_float_div(x_199, x_197); -x_201 = lean_box_float(x_198); -x_202 = lean_box_float(x_200); -if (lean_is_scalar(x_193)) { - x_203 = lean_alloc_ctor(0, 2, 0); -} else { - x_203 = x_193; -} -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_202); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_189); -lean_ctor_set(x_204, 1, x_203); -x_39 = x_204; -x_40 = x_192; -goto block_106; +x_182 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_183 = lean_float_div(x_181, x_182); +x_184 = l_Float_ofScientific(x_177, x_179, x_180); +lean_dec(x_177); +x_185 = lean_float_div(x_184, x_182); +x_186 = lean_box_float(x_183); +x_187 = lean_box_float(x_185); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +lean_ctor_set_tag(x_112, 0); +lean_ctor_set(x_112, 1, x_188); +lean_ctor_set(x_112, 0, x_163); +x_41 = x_112; +x_42 = x_178; +goto block_108; } } -block_106: +else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_92; uint8_t x_93; -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 0); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_ctor_get(x_41, 0); +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; uint8_t x_196; lean_object* x_197; double x_198; double x_199; double x_200; double x_201; double x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_189 = lean_ctor_get(x_112, 0); +x_190 = lean_ctor_get(x_112, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_112); +x_191 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_191, 0, x_189); +x_192 = lean_io_mono_nanos_now(x_190); +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_192, 1); +lean_inc(x_194); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_195 = x_192; +} else { + lean_dec_ref(x_192); + x_195 = lean_box(0); +} +x_196 = 0; +x_197 = lean_unsigned_to_nat(0u); +x_198 = l_Float_ofScientific(x_110, x_196, x_197); +lean_dec(x_110); +x_199 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__5; +x_200 = lean_float_div(x_198, x_199); +x_201 = l_Float_ofScientific(x_193, x_196, x_197); +lean_dec(x_193); +x_202 = lean_float_div(x_201, x_199); +x_203 = lean_box_float(x_200); +x_204 = lean_box_float(x_202); +if (lean_is_scalar(x_195)) { + x_205 = lean_alloc_ctor(0, 2, 0); +} else { + x_205 = x_195; +} +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_191); +lean_ctor_set(x_206, 1, x_205); +x_41 = x_206; +x_42 = x_194; +goto block_108; +} +} +block_108: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_94; uint8_t x_95; +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_41, 1); +x_44 = lean_ctor_get(x_41, 0); lean_inc(x_44); lean_dec(x_41); -x_92 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__2; -x_93 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_92); -if (x_93 == 0) +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_94 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__2; +x_95 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_94); +if (x_95 == 0) { -uint8_t x_94; -x_94 = 0; -x_45 = x_94; -goto block_91; +uint8_t x_96; +x_96 = 0; +x_47 = x_96; +goto block_93; } else { -double x_95; double x_96; double x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; double x_102; double x_103; double x_104; uint8_t x_105; -x_95 = lean_unbox_float(x_44); -x_96 = lean_unbox_float(x_43); -x_97 = lean_float_sub(x_95, x_96); -x_98 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__3; -x_99 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_98); -x_100 = 0; -x_101 = lean_unsigned_to_nat(0u); -x_102 = l_Float_ofScientific(x_99, x_100, x_101); -lean_dec(x_99); -x_103 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__4; -x_104 = lean_float_div(x_102, x_103); -x_105 = lean_float_decLt(x_104, x_97); -x_45 = x_105; -goto block_91; +double x_97; double x_98; double x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; double x_104; double x_105; double x_106; uint8_t x_107; +x_97 = lean_unbox_float(x_46); +x_98 = lean_unbox_float(x_45); +x_99 = lean_float_sub(x_97, x_98); +x_100 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__3; +x_101 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_100); +x_102 = 0; +x_103 = lean_unsigned_to_nat(0u); +x_104 = l_Float_ofScientific(x_101, x_102, x_103); +lean_dec(x_101); +x_105 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__4; +x_106 = lean_float_div(x_104, x_105); +x_107 = lean_float_decLt(x_106, x_99); +x_47 = x_107; +goto block_93; } -block_91: +block_93: { if (x_6 == 0) { -if (x_45 == 0) +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_35); +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_37); lean_dec(x_22); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_46 = lean_st_ref_take(x_12, x_40); -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_is_exclusive(x_47); -if (x_49 == 0) +x_48 = lean_st_ref_take(x_12, x_42); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = !lean_is_exclusive(x_49); +if (x_51 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_47, 3); -x_51 = l_Lean_PersistentArray_append___rarg(x_15, x_50); -lean_ctor_set(x_47, 3, x_51); -x_52 = lean_st_ref_set(x_12, x_47, x_48); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_42, x_9, x_10, x_11, x_12, x_53); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = lean_ctor_get(x_49, 3); +x_53 = l_Lean_PersistentArray_append___rarg(x_15, x_52); +lean_ctor_set(x_49, 3, x_53); +x_54 = lean_st_ref_set(x_12, x_49, x_50); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_44, x_9, x_10, x_11, x_12, x_55); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_42); -if (lean_obj_tag(x_54) == 0) +lean_dec(x_44); +if (lean_obj_tag(x_56) == 0) { -uint8_t x_55; -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +uint8_t x_57; +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) { -return x_54; +return x_56; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_54); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_56); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } else { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_54); -if (x_59 == 0) +uint8_t x_61; +x_61 = !lean_is_exclusive(x_56); +if (x_61 == 0) { -return x_54; +return x_56; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_54, 0); -x_61 = lean_ctor_get(x_54, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_54); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_56); +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_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_63 = lean_ctor_get(x_47, 0); -x_64 = lean_ctor_get(x_47, 1); -x_65 = lean_ctor_get(x_47, 2); -x_66 = lean_ctor_get(x_47, 3); -x_67 = lean_ctor_get(x_47, 4); -x_68 = lean_ctor_get(x_47, 5); -x_69 = lean_ctor_get(x_47, 6); +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_65 = lean_ctor_get(x_49, 0); +x_66 = lean_ctor_get(x_49, 1); +x_67 = lean_ctor_get(x_49, 2); +x_68 = lean_ctor_get(x_49, 3); +x_69 = lean_ctor_get(x_49, 4); +x_70 = lean_ctor_get(x_49, 5); +x_71 = lean_ctor_get(x_49, 6); +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_inc(x_63); -lean_dec(x_47); -x_70 = l_Lean_PersistentArray_append___rarg(x_15, x_66); -x_71 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_71, 0, x_63); -lean_ctor_set(x_71, 1, x_64); -lean_ctor_set(x_71, 2, x_65); -lean_ctor_set(x_71, 3, x_70); -lean_ctor_set(x_71, 4, x_67); -lean_ctor_set(x_71, 5, x_68); -lean_ctor_set(x_71, 6, x_69); -x_72 = lean_st_ref_set(x_12, x_71, x_48); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_42, x_9, x_10, x_11, x_12, x_73); +lean_dec(x_49); +x_72 = l_Lean_PersistentArray_append___rarg(x_15, x_68); +x_73 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_73, 0, x_65); +lean_ctor_set(x_73, 1, x_66); +lean_ctor_set(x_73, 2, x_67); +lean_ctor_set(x_73, 3, x_72); +lean_ctor_set(x_73, 4, x_69); +lean_ctor_set(x_73, 5, x_70); +lean_ctor_set(x_73, 6, x_71); +x_74 = lean_st_ref_set(x_12, x_73, x_50); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +lean_dec(x_74); +x_76 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_44, x_9, x_10, x_11, x_12, x_75); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_42); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -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); -} -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_77; -} -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -return x_78; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_74, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_81 = x_74; -} else { - lean_dec_ref(x_74); - 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; -} -} -} -else -{ -lean_object* x_83; double x_84; double x_85; lean_object* x_86; -x_83 = lean_box(0); -x_84 = lean_unbox_float(x_43); -lean_dec(x_43); -x_85 = lean_unbox_float(x_44); lean_dec(x_44); -x_86 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_42, x_35, x_3, x_4, x_5, x_15, x_22, x_2, x_45, x_84, x_85, x_83, x_9, x_10, x_11, x_12, x_40); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +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; +} else { + lean_dec_ref(x_76); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(0, 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 +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_76, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_83 = x_76; +} else { + lean_dec_ref(x_76); + 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); +return x_84; +} +} +} +else +{ +lean_object* x_85; double x_86; double x_87; lean_object* x_88; +x_85 = lean_box(0); +x_86 = lean_unbox_float(x_45); +lean_dec(x_45); +x_87 = lean_unbox_float(x_46); +lean_dec(x_46); +x_88 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_44, x_37, x_3, x_4, x_5, x_15, x_22, x_2, x_47, x_86, x_87, x_85, x_9, x_10, x_11, x_12, x_42); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -return x_86; +return x_88; } } else { -lean_object* x_87; double x_88; double x_89; lean_object* x_90; -x_87 = lean_box(0); -x_88 = lean_unbox_float(x_43); -lean_dec(x_43); -x_89 = lean_unbox_float(x_44); -lean_dec(x_44); -x_90 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_42, x_35, x_3, x_4, x_5, x_15, x_22, x_2, x_45, x_88, x_89, x_87, x_9, x_10, x_11, x_12, x_40); +lean_object* x_89; double x_90; double x_91; lean_object* x_92; +x_89 = lean_box(0); +x_90 = lean_unbox_float(x_45); +lean_dec(x_45); +x_91 = lean_unbox_float(x_46); +lean_dec(x_46); +x_92 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_44, x_37, x_3, x_4, x_5, x_15, x_22, x_2, x_47, x_90, x_91, x_89, x_9, x_10, x_11, x_12, x_42); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -return x_90; +return x_92; } } } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_271 = lean_io_get_num_heartbeats(x_36); -x_272 = lean_ctor_get(x_271, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 1); -lean_inc(x_273); -lean_dec(x_271); +lean_object* x_207; lean_object* x_208; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_273 = lean_io_get_num_heartbeats(x_38); +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +lean_dec(x_273); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_274 = lean_apply_5(x_7, x_9, x_10, x_11, x_12, x_273); -if (lean_obj_tag(x_274) == 0) +x_276 = lean_apply_5(x_7, x_9, x_10, x_11, x_12, x_275); +if (lean_obj_tag(x_276) == 0) { -uint8_t x_275; -x_275 = !lean_is_exclusive(x_274); -if (x_275 == 0) +uint8_t x_277; +x_277 = !lean_is_exclusive(x_276); +if (x_277 == 0) { -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; -x_276 = lean_ctor_get(x_274, 0); -x_277 = lean_ctor_get(x_274, 1); -x_278 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_278, 0, x_276); -x_279 = lean_io_get_num_heartbeats(x_277); -x_280 = !lean_is_exclusive(x_279); -if (x_280 == 0) +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; +x_278 = lean_ctor_get(x_276, 0); +x_279 = lean_ctor_get(x_276, 1); +x_280 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_280, 0, x_278); +x_281 = lean_io_get_num_heartbeats(x_279); +x_282 = !lean_is_exclusive(x_281); +if (x_282 == 0) { -lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; double x_285; double x_286; lean_object* x_287; lean_object* x_288; -x_281 = lean_ctor_get(x_279, 0); -x_282 = lean_ctor_get(x_279, 1); -x_283 = 0; -x_284 = lean_unsigned_to_nat(0u); -x_285 = l_Float_ofScientific(x_272, x_283, x_284); -lean_dec(x_272); -x_286 = l_Float_ofScientific(x_281, x_283, x_284); +lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; double x_287; double x_288; lean_object* x_289; lean_object* x_290; +x_283 = lean_ctor_get(x_281, 0); +x_284 = lean_ctor_get(x_281, 1); +x_285 = 0; +x_286 = lean_unsigned_to_nat(0u); +x_287 = l_Float_ofScientific(x_274, x_285, x_286); +lean_dec(x_274); +x_288 = l_Float_ofScientific(x_283, x_285, x_286); +lean_dec(x_283); +x_289 = lean_box_float(x_287); +x_290 = lean_box_float(x_288); +lean_ctor_set(x_281, 1, x_290); +lean_ctor_set(x_281, 0, x_289); +lean_ctor_set(x_276, 1, x_281); +lean_ctor_set(x_276, 0, x_280); +x_207 = x_276; +x_208 = x_284; +goto block_272; +} +else +{ +lean_object* x_291; lean_object* x_292; uint8_t x_293; lean_object* x_294; double x_295; double x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_291 = lean_ctor_get(x_281, 0); +x_292 = lean_ctor_get(x_281, 1); +lean_inc(x_292); +lean_inc(x_291); lean_dec(x_281); -x_287 = lean_box_float(x_285); -x_288 = lean_box_float(x_286); -lean_ctor_set(x_279, 1, x_288); -lean_ctor_set(x_279, 0, x_287); -lean_ctor_set(x_274, 1, x_279); -lean_ctor_set(x_274, 0, x_278); -x_205 = x_274; -x_206 = x_282; -goto block_270; -} -else -{ -lean_object* x_289; lean_object* x_290; uint8_t x_291; lean_object* x_292; double x_293; double x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_289 = lean_ctor_get(x_279, 0); -x_290 = lean_ctor_get(x_279, 1); -lean_inc(x_290); -lean_inc(x_289); -lean_dec(x_279); -x_291 = 0; -x_292 = lean_unsigned_to_nat(0u); -x_293 = l_Float_ofScientific(x_272, x_291, x_292); -lean_dec(x_272); -x_294 = l_Float_ofScientific(x_289, x_291, x_292); -lean_dec(x_289); -x_295 = lean_box_float(x_293); -x_296 = lean_box_float(x_294); -x_297 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_297, 0, x_295); -lean_ctor_set(x_297, 1, x_296); -lean_ctor_set(x_274, 1, x_297); -lean_ctor_set(x_274, 0, x_278); -x_205 = x_274; -x_206 = x_290; -goto block_270; -} -} -else -{ -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; uint8_t x_305; lean_object* x_306; double x_307; double x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_298 = lean_ctor_get(x_274, 0); -x_299 = lean_ctor_get(x_274, 1); -lean_inc(x_299); -lean_inc(x_298); +x_293 = 0; +x_294 = lean_unsigned_to_nat(0u); +x_295 = l_Float_ofScientific(x_274, x_293, x_294); lean_dec(x_274); -x_300 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_300, 0, x_298); -x_301 = lean_io_get_num_heartbeats(x_299); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -if (lean_is_exclusive(x_301)) { - lean_ctor_release(x_301, 0); - lean_ctor_release(x_301, 1); - x_304 = x_301; -} else { - lean_dec_ref(x_301); - x_304 = lean_box(0); -} -x_305 = 0; -x_306 = lean_unsigned_to_nat(0u); -x_307 = l_Float_ofScientific(x_272, x_305, x_306); -lean_dec(x_272); -x_308 = l_Float_ofScientific(x_302, x_305, x_306); -lean_dec(x_302); -x_309 = lean_box_float(x_307); -x_310 = lean_box_float(x_308); -if (lean_is_scalar(x_304)) { - x_311 = lean_alloc_ctor(0, 2, 0); -} else { - x_311 = x_304; -} -lean_ctor_set(x_311, 0, x_309); -lean_ctor_set(x_311, 1, x_310); -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_300); -lean_ctor_set(x_312, 1, x_311); -x_205 = x_312; -x_206 = x_303; -goto block_270; +x_296 = l_Float_ofScientific(x_291, x_293, x_294); +lean_dec(x_291); +x_297 = lean_box_float(x_295); +x_298 = lean_box_float(x_296); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_297); +lean_ctor_set(x_299, 1, x_298); +lean_ctor_set(x_276, 1, x_299); +lean_ctor_set(x_276, 0, x_280); +x_207 = x_276; +x_208 = x_292; +goto block_272; } } else { -uint8_t x_313; -x_313 = !lean_is_exclusive(x_274); -if (x_313 == 0) +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; uint8_t x_307; lean_object* x_308; double x_309; double x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_300 = lean_ctor_get(x_276, 0); +x_301 = lean_ctor_get(x_276, 1); +lean_inc(x_301); +lean_inc(x_300); +lean_dec(x_276); +x_302 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_302, 0, x_300); +x_303 = lean_io_get_num_heartbeats(x_301); +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_306 = x_303; +} else { + lean_dec_ref(x_303); + x_306 = lean_box(0); +} +x_307 = 0; +x_308 = lean_unsigned_to_nat(0u); +x_309 = l_Float_ofScientific(x_274, x_307, x_308); +lean_dec(x_274); +x_310 = l_Float_ofScientific(x_304, x_307, x_308); +lean_dec(x_304); +x_311 = lean_box_float(x_309); +x_312 = lean_box_float(x_310); +if (lean_is_scalar(x_306)) { + x_313 = lean_alloc_ctor(0, 2, 0); +} else { + x_313 = x_306; +} +lean_ctor_set(x_313, 0, x_311); +lean_ctor_set(x_313, 1, x_312); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_302); +lean_ctor_set(x_314, 1, x_313); +x_207 = x_314; +x_208 = x_305; +goto block_272; +} +} +else { -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_274, 0); -x_315 = lean_ctor_get(x_274, 1); -x_316 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_316, 0, x_314); -x_317 = lean_io_get_num_heartbeats(x_315); -x_318 = !lean_is_exclusive(x_317); -if (x_318 == 0) +uint8_t x_315; +x_315 = !lean_is_exclusive(x_276); +if (x_315 == 0) { -lean_object* x_319; lean_object* x_320; uint8_t x_321; lean_object* x_322; double x_323; double x_324; lean_object* x_325; lean_object* x_326; -x_319 = lean_ctor_get(x_317, 0); -x_320 = lean_ctor_get(x_317, 1); -x_321 = 0; -x_322 = lean_unsigned_to_nat(0u); -x_323 = l_Float_ofScientific(x_272, x_321, x_322); -lean_dec(x_272); -x_324 = l_Float_ofScientific(x_319, x_321, x_322); +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; +x_316 = lean_ctor_get(x_276, 0); +x_317 = lean_ctor_get(x_276, 1); +x_318 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_318, 0, x_316); +x_319 = lean_io_get_num_heartbeats(x_317); +x_320 = !lean_is_exclusive(x_319); +if (x_320 == 0) +{ +lean_object* x_321; lean_object* x_322; uint8_t x_323; lean_object* x_324; double x_325; double x_326; lean_object* x_327; lean_object* x_328; +x_321 = lean_ctor_get(x_319, 0); +x_322 = lean_ctor_get(x_319, 1); +x_323 = 0; +x_324 = lean_unsigned_to_nat(0u); +x_325 = l_Float_ofScientific(x_274, x_323, x_324); +lean_dec(x_274); +x_326 = l_Float_ofScientific(x_321, x_323, x_324); +lean_dec(x_321); +x_327 = lean_box_float(x_325); +x_328 = lean_box_float(x_326); +lean_ctor_set(x_319, 1, x_328); +lean_ctor_set(x_319, 0, x_327); +lean_ctor_set_tag(x_276, 0); +lean_ctor_set(x_276, 1, x_319); +lean_ctor_set(x_276, 0, x_318); +x_207 = x_276; +x_208 = x_322; +goto block_272; +} +else +{ +lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; double x_333; double x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_329 = lean_ctor_get(x_319, 0); +x_330 = lean_ctor_get(x_319, 1); +lean_inc(x_330); +lean_inc(x_329); lean_dec(x_319); -x_325 = lean_box_float(x_323); -x_326 = lean_box_float(x_324); -lean_ctor_set(x_317, 1, x_326); -lean_ctor_set(x_317, 0, x_325); -lean_ctor_set_tag(x_274, 0); -lean_ctor_set(x_274, 1, x_317); -lean_ctor_set(x_274, 0, x_316); -x_205 = x_274; -x_206 = x_320; -goto block_270; -} -else -{ -lean_object* x_327; lean_object* x_328; uint8_t x_329; lean_object* x_330; double x_331; double x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -x_327 = lean_ctor_get(x_317, 0); -x_328 = lean_ctor_get(x_317, 1); -lean_inc(x_328); -lean_inc(x_327); -lean_dec(x_317); -x_329 = 0; -x_330 = lean_unsigned_to_nat(0u); -x_331 = l_Float_ofScientific(x_272, x_329, x_330); -lean_dec(x_272); -x_332 = l_Float_ofScientific(x_327, x_329, x_330); -lean_dec(x_327); -x_333 = lean_box_float(x_331); -x_334 = lean_box_float(x_332); -x_335 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_335, 0, x_333); -lean_ctor_set(x_335, 1, x_334); -lean_ctor_set_tag(x_274, 0); -lean_ctor_set(x_274, 1, x_335); -lean_ctor_set(x_274, 0, x_316); -x_205 = x_274; -x_206 = x_328; -goto block_270; -} -} -else -{ -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; uint8_t x_343; lean_object* x_344; double x_345; double x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_336 = lean_ctor_get(x_274, 0); -x_337 = lean_ctor_get(x_274, 1); -lean_inc(x_337); -lean_inc(x_336); +x_331 = 0; +x_332 = lean_unsigned_to_nat(0u); +x_333 = l_Float_ofScientific(x_274, x_331, x_332); lean_dec(x_274); -x_338 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_338, 0, x_336); -x_339 = lean_io_get_num_heartbeats(x_337); -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 = 0; -x_344 = lean_unsigned_to_nat(0u); -x_345 = l_Float_ofScientific(x_272, x_343, x_344); -lean_dec(x_272); -x_346 = l_Float_ofScientific(x_340, x_343, x_344); -lean_dec(x_340); -x_347 = lean_box_float(x_345); -x_348 = lean_box_float(x_346); -if (lean_is_scalar(x_342)) { - x_349 = lean_alloc_ctor(0, 2, 0); -} else { - x_349 = x_342; -} -lean_ctor_set(x_349, 0, x_347); -lean_ctor_set(x_349, 1, x_348); -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_338); -lean_ctor_set(x_350, 1, x_349); -x_205 = x_350; -x_206 = x_341; -goto block_270; +x_334 = l_Float_ofScientific(x_329, x_331, x_332); +lean_dec(x_329); +x_335 = lean_box_float(x_333); +x_336 = lean_box_float(x_334); +x_337 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_337, 0, x_335); +lean_ctor_set(x_337, 1, x_336); +lean_ctor_set_tag(x_276, 0); +lean_ctor_set(x_276, 1, x_337); +lean_ctor_set(x_276, 0, x_318); +x_207 = x_276; +x_208 = x_330; +goto block_272; } } -block_270: +else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_258; uint8_t x_259; -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -x_208 = lean_ctor_get(x_205, 0); -lean_inc(x_208); -lean_dec(x_205); -x_209 = lean_ctor_get(x_207, 0); +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; double x_347; double x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_338 = lean_ctor_get(x_276, 0); +x_339 = lean_ctor_get(x_276, 1); +lean_inc(x_339); +lean_inc(x_338); +lean_dec(x_276); +x_340 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_340, 0, x_338); +x_341 = lean_io_get_num_heartbeats(x_339); +x_342 = lean_ctor_get(x_341, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_341, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + x_344 = x_341; +} else { + lean_dec_ref(x_341); + x_344 = lean_box(0); +} +x_345 = 0; +x_346 = lean_unsigned_to_nat(0u); +x_347 = l_Float_ofScientific(x_274, x_345, x_346); +lean_dec(x_274); +x_348 = l_Float_ofScientific(x_342, x_345, x_346); +lean_dec(x_342); +x_349 = lean_box_float(x_347); +x_350 = lean_box_float(x_348); +if (lean_is_scalar(x_344)) { + x_351 = lean_alloc_ctor(0, 2, 0); +} else { + x_351 = x_344; +} +lean_ctor_set(x_351, 0, x_349); +lean_ctor_set(x_351, 1, x_350); +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_340); +lean_ctor_set(x_352, 1, x_351); +x_207 = x_352; +x_208 = x_343; +goto block_272; +} +} +block_272: +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_260; uint8_t x_261; +x_209 = lean_ctor_get(x_207, 1); lean_inc(x_209); -x_210 = lean_ctor_get(x_207, 1); +x_210 = lean_ctor_get(x_207, 0); lean_inc(x_210); lean_dec(x_207); -x_258 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__2; -x_259 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_258); -if (x_259 == 0) +x_211 = lean_ctor_get(x_209, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_209, 1); +lean_inc(x_212); +lean_dec(x_209); +x_260 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__2; +x_261 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_260); +if (x_261 == 0) { -uint8_t x_260; -x_260 = 0; -x_211 = x_260; -goto block_257; +uint8_t x_262; +x_262 = 0; +x_213 = x_262; +goto block_259; } else { -double x_261; double x_262; double x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; double x_268; uint8_t x_269; -x_261 = lean_unbox_float(x_210); -x_262 = lean_unbox_float(x_209); -x_263 = lean_float_sub(x_261, x_262); -x_264 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__3; -x_265 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_264); -x_266 = 0; -x_267 = lean_unsigned_to_nat(0u); -x_268 = l_Float_ofScientific(x_265, x_266, x_267); -lean_dec(x_265); -x_269 = lean_float_decLt(x_268, x_263); -x_211 = x_269; -goto block_257; +double x_263; double x_264; double x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; double x_270; uint8_t x_271; +x_263 = lean_unbox_float(x_212); +x_264 = lean_unbox_float(x_211); +x_265 = lean_float_sub(x_263, x_264); +x_266 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__3___closed__3; +x_267 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_266); +x_268 = 0; +x_269 = lean_unsigned_to_nat(0u); +x_270 = l_Float_ofScientific(x_267, x_268, x_269); +lean_dec(x_267); +x_271 = lean_float_decLt(x_270, x_265); +x_213 = x_271; +goto block_259; } -block_257: +block_259: { if (x_6 == 0) { -if (x_211 == 0) +if (x_213 == 0) { -lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; -lean_dec(x_210); -lean_dec(x_209); -lean_dec(x_35); +lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +lean_dec(x_212); +lean_dec(x_211); +lean_dec(x_37); lean_dec(x_22); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_212 = lean_st_ref_take(x_12, x_206); -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 = !lean_is_exclusive(x_213); -if (x_215 == 0) +x_214 = lean_st_ref_take(x_12, x_208); +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_is_exclusive(x_215); +if (x_217 == 0) { -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_213, 3); -x_217 = l_Lean_PersistentArray_append___rarg(x_15, x_216); -lean_ctor_set(x_213, 3, x_217); -x_218 = lean_st_ref_set(x_12, x_213, x_214); -x_219 = lean_ctor_get(x_218, 1); -lean_inc(x_219); -lean_dec(x_218); -x_220 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_208, x_9, x_10, x_11, x_12, x_219); +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_218 = lean_ctor_get(x_215, 3); +x_219 = l_Lean_PersistentArray_append___rarg(x_15, x_218); +lean_ctor_set(x_215, 3, x_219); +x_220 = lean_st_ref_set(x_12, x_215, x_216); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_210, x_9, x_10, x_11, x_12, x_221); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_208); -if (lean_obj_tag(x_220) == 0) +lean_dec(x_210); +if (lean_obj_tag(x_222) == 0) { -uint8_t x_221; -x_221 = !lean_is_exclusive(x_220); -if (x_221 == 0) +uint8_t x_223; +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) { -return x_220; +return x_222; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_220, 0); -x_223 = lean_ctor_get(x_220, 1); -lean_inc(x_223); -lean_inc(x_222); -lean_dec(x_220); -x_224 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -return x_224; +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_222, 0); +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_inc(x_224); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); +return x_226; } } else { -uint8_t x_225; -x_225 = !lean_is_exclusive(x_220); -if (x_225 == 0) +uint8_t x_227; +x_227 = !lean_is_exclusive(x_222); +if (x_227 == 0) { -return x_220; +return x_222; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_220, 0); -x_227 = lean_ctor_get(x_220, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_220); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; +lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_228 = lean_ctor_get(x_222, 0); +x_229 = lean_ctor_get(x_222, 1); +lean_inc(x_229); +lean_inc(x_228); +lean_dec(x_222); +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_228); +lean_ctor_set(x_230, 1, x_229); +return x_230; } } } 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; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_229 = lean_ctor_get(x_213, 0); -x_230 = lean_ctor_get(x_213, 1); -x_231 = lean_ctor_get(x_213, 2); -x_232 = lean_ctor_get(x_213, 3); -x_233 = lean_ctor_get(x_213, 4); -x_234 = lean_ctor_get(x_213, 5); -x_235 = lean_ctor_get(x_213, 6); +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_215, 0); +x_232 = lean_ctor_get(x_215, 1); +x_233 = lean_ctor_get(x_215, 2); +x_234 = lean_ctor_get(x_215, 3); +x_235 = lean_ctor_get(x_215, 4); +x_236 = lean_ctor_get(x_215, 5); +x_237 = lean_ctor_get(x_215, 6); +lean_inc(x_237); +lean_inc(x_236); lean_inc(x_235); lean_inc(x_234); lean_inc(x_233); lean_inc(x_232); lean_inc(x_231); -lean_inc(x_230); -lean_inc(x_229); -lean_dec(x_213); -x_236 = l_Lean_PersistentArray_append___rarg(x_15, x_232); -x_237 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_237, 0, x_229); -lean_ctor_set(x_237, 1, x_230); -lean_ctor_set(x_237, 2, x_231); -lean_ctor_set(x_237, 3, x_236); -lean_ctor_set(x_237, 4, x_233); -lean_ctor_set(x_237, 5, x_234); -lean_ctor_set(x_237, 6, x_235); -x_238 = lean_st_ref_set(x_12, x_237, x_214); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -lean_dec(x_238); -x_240 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_208, x_9, x_10, x_11, x_12, x_239); +lean_dec(x_215); +x_238 = l_Lean_PersistentArray_append___rarg(x_15, x_234); +x_239 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_239, 0, x_231); +lean_ctor_set(x_239, 1, x_232); +lean_ctor_set(x_239, 2, x_233); +lean_ctor_set(x_239, 3, x_238); +lean_ctor_set(x_239, 4, x_235); +lean_ctor_set(x_239, 5, x_236); +lean_ctor_set(x_239, 6, x_237); +x_240 = lean_st_ref_set(x_12, x_239, x_216); +x_241 = lean_ctor_get(x_240, 1); +lean_inc(x_241); +lean_dec(x_240); +x_242 = l_MonadExcept_ofExcept___at_Lean_Meta_processPostponed___spec__4(x_210, x_9, x_10, x_11, x_12, x_241); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_208); -if (lean_obj_tag(x_240) == 0) -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_243 = x_240; -} else { - lean_dec_ref(x_240); - x_243 = lean_box(0); -} -if (lean_is_scalar(x_243)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_243; -} -lean_ctor_set(x_244, 0, x_241); -lean_ctor_set(x_244, 1, x_242); -return x_244; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_245 = lean_ctor_get(x_240, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_240, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_247 = x_240; -} else { - lean_dec_ref(x_240); - x_247 = lean_box(0); -} -if (lean_is_scalar(x_247)) { - x_248 = lean_alloc_ctor(1, 2, 0); -} else { - x_248 = x_247; -} -lean_ctor_set(x_248, 0, x_245); -lean_ctor_set(x_248, 1, x_246); -return x_248; -} -} -} -else -{ -lean_object* x_249; double x_250; double x_251; lean_object* x_252; -x_249 = lean_box(0); -x_250 = lean_unbox_float(x_209); -lean_dec(x_209); -x_251 = lean_unbox_float(x_210); lean_dec(x_210); -x_252 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_208, x_35, x_3, x_4, x_5, x_15, x_22, x_2, x_211, x_250, x_251, x_249, x_9, x_10, x_11, x_12, x_206); +if (lean_obj_tag(x_242) == 0) +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_243 = lean_ctor_get(x_242, 0); +lean_inc(x_243); +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_245 = x_242; +} else { + lean_dec_ref(x_242); + x_245 = lean_box(0); +} +if (lean_is_scalar(x_245)) { + x_246 = lean_alloc_ctor(0, 2, 0); +} else { + x_246 = x_245; +} +lean_ctor_set(x_246, 0, x_243); +lean_ctor_set(x_246, 1, x_244); +return x_246; +} +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); +lean_inc(x_247); +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); +} +if (lean_is_scalar(x_249)) { + x_250 = lean_alloc_ctor(1, 2, 0); +} else { + x_250 = x_249; +} +lean_ctor_set(x_250, 0, x_247); +lean_ctor_set(x_250, 1, x_248); +return x_250; +} +} +} +else +{ +lean_object* x_251; double x_252; double x_253; lean_object* x_254; +x_251 = lean_box(0); +x_252 = lean_unbox_float(x_211); +lean_dec(x_211); +x_253 = lean_unbox_float(x_212); +lean_dec(x_212); +x_254 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_210, x_37, x_3, x_4, x_5, x_15, x_22, x_2, x_213, x_252, x_253, x_251, x_9, x_10, x_11, x_12, x_208); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -return x_252; +return x_254; } } else { -lean_object* x_253; double x_254; double x_255; lean_object* x_256; -x_253 = lean_box(0); -x_254 = lean_unbox_float(x_209); -lean_dec(x_209); -x_255 = lean_unbox_float(x_210); -lean_dec(x_210); -x_256 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_208, x_35, x_3, x_4, x_5, x_15, x_22, x_2, x_211, x_254, x_255, x_253, x_9, x_10, x_11, x_12, x_206); +lean_object* x_255; double x_256; double x_257; lean_object* x_258; +x_255 = lean_box(0); +x_256 = lean_unbox_float(x_211); +lean_dec(x_211); +x_257 = lean_unbox_float(x_212); +lean_dec(x_212); +x_258 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1___lambda__2(x_210, x_37, x_3, x_4, x_5, x_15, x_22, x_2, x_213, x_256, x_257, x_255, x_9, x_10, x_11, x_12, x_208); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -return x_256; +return x_258; } } } @@ -12918,8 +12993,8 @@ return x_256; } else { -uint8_t x_351; -lean_dec(x_30); +uint8_t x_353; +lean_dec(x_32); lean_dec(x_22); lean_dec(x_15); lean_dec(x_12); @@ -12930,23 +13005,23 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_351 = !lean_is_exclusive(x_31); -if (x_351 == 0) +x_353 = !lean_is_exclusive(x_33); +if (x_353 == 0) { -return x_31; +return x_33; } else { -lean_object* x_352; lean_object* x_353; lean_object* x_354; -x_352 = lean_ctor_get(x_31, 0); -x_353 = lean_ctor_get(x_31, 1); -lean_inc(x_353); -lean_inc(x_352); -lean_dec(x_31); -x_354 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_354, 0, x_352); -lean_ctor_set(x_354, 1, x_353); -return x_354; +lean_object* x_354; lean_object* x_355; lean_object* x_356; +x_354 = lean_ctor_get(x_33, 0); +x_355 = lean_ctor_get(x_33, 1); +lean_inc(x_355); +lean_inc(x_354); +lean_dec(x_33); +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_354); +lean_ctor_set(x_356, 1, x_355); +return x_356; } } } @@ -18244,7 +18319,7 @@ lean_inc(x_2); x_11 = l_Lean_MVarId_getDecl(x_2, x_6, x_7, x_8, x_9, 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; lean_object* x_18; lean_object* x_19; +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_27; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -18264,131 +18339,107 @@ x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); lean_inc(x_17); -x_19 = lean_apply_7(x_1, x_14, x_17, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_19) == 0) +x_27 = lean_apply_7(x_1, x_14, x_17, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_20); -x_23 = lean_st_ref_get(x_17, x_21); -lean_dec(x_17); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_22); -return x_23; +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); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_28); +x_19 = x_30; +x_20 = x_29; +goto block_26; } else { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_22); -lean_ctor_set(x_27, 1, x_26); +uint8_t x_31; +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +x_34 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +if (lean_obj_tag(x_32) == 0) +{ +lean_dec(x_17); +return x_27; +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_32, 0); +lean_inc(x_36); +x_37 = l_Lean_Meta_CheckAssignment_run___closed__2; +x_38 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_36, x_37); +lean_dec(x_36); +if (x_38 == 0) +{ +lean_dec(x_17); +return x_27; +} +else +{ +lean_object* x_39; +lean_free_object(x_27); +lean_dec(x_32); +x_39 = lean_box(0); +x_19 = x_39; +x_20 = x_33; +goto block_26; +} +} +} +else +{ +lean_dec(x_17); return x_27; } } else { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_19); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_19, 0); -x_30 = lean_ctor_get(x_19, 1); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -if (lean_obj_tag(x_29) == 0) -{ lean_dec(x_17); -return x_19; -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_29, 0); -lean_inc(x_32); -x_33 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_34 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_32, x_33); -lean_dec(x_32); -if (x_34 == 0) -{ -lean_dec(x_17); -return x_19; -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -lean_free_object(x_19); -lean_dec(x_29); -x_35 = lean_box(0); -x_36 = lean_st_ref_get(x_17, x_30); -lean_dec(x_17); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_35); -return x_36; -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} +return x_27; } } else { -lean_dec(x_17); -return x_19; -} -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_19, 0); -x_42 = lean_ctor_get(x_19, 1); -lean_inc(x_42); +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); lean_inc(x_41); -lean_dec(x_19); -x_43 = l_Lean_Exception_isRuntime(x_41); +lean_inc(x_40); +lean_dec(x_27); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) +{ +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); if (x_43 == 0) { -if (lean_obj_tag(x_41) == 0) +if (lean_obj_tag(x_40) == 0) { lean_object* x_44; lean_dec(x_17); x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_41); return x_44; } else { lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_41, 0); +x_45 = lean_ctor_get(x_40, 0); lean_inc(x_45); x_46 = l_Lean_Meta_CheckAssignment_run___closed__2; x_47 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_45, x_46); @@ -18398,53 +18449,72 @@ if (x_47 == 0) lean_object* x_48; lean_dec(x_17); x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_41); -lean_ctor_set(x_48, 1, x_42); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_41); return x_48; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_41); +lean_object* x_49; +lean_dec(x_40); x_49 = lean_box(0); -x_50 = lean_st_ref_get(x_17, x_42); -lean_dec(x_17); -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); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_51); -return x_53; +x_19 = x_49; +x_20 = x_41; +goto block_26; } } } else { -lean_object* x_54; +lean_object* x_50; lean_dec(x_17); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_41); -lean_ctor_set(x_54, 1, x_42); -return x_54; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_40); +lean_ctor_set(x_50, 1, x_41); +return x_50; } } +else +{ +lean_object* x_51; +lean_dec(x_17); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_40); +lean_ctor_set(x_51, 1, x_41); +return x_51; +} +} +} +block_26: +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_st_ref_get(x_17, x_20); +lean_dec(x_17); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_19); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} } } else { -uint8_t x_55; +uint8_t x_52; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -18453,23 +18523,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_11); -if (x_55 == 0) +x_52 = !lean_is_exclusive(x_11); +if (x_52 == 0) { return x_11; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_11, 0); -x_57 = lean_ctor_get(x_11, 1); -lean_inc(x_57); -lean_inc(x_56); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_11, 0); +x_54 = lean_ctor_get(x_11, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_11); -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; +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; } } } @@ -19036,42 +19106,42 @@ return x_51; LEAN_EXPORT lean_object* l_Lean_Meta_CheckAssignment_check(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_296; -x_296 = l_Lean_Expr_hasExprMVar(x_1); -if (x_296 == 0) +lean_object* x_9; uint8_t x_299; +x_299 = l_Lean_Expr_hasExprMVar(x_1); +if (x_299 == 0) { -uint8_t x_297; -x_297 = l_Lean_Expr_hasFVar(x_1); -if (x_297 == 0) +uint8_t x_300; +x_300 = l_Lean_Expr_hasFVar(x_1); +if (x_300 == 0) { -lean_object* x_298; +lean_object* x_301; 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_298 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_298, 0, x_1); -lean_ctor_set(x_298, 1, x_8); -return x_298; +x_301 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_301, 0, x_1); +lean_ctor_set(x_301, 1, x_8); +return x_301; } else { -lean_object* x_299; -x_299 = lean_box(0); -x_9 = x_299; -goto block_295; +lean_object* x_302; +x_302 = lean_box(0); +x_9 = x_302; +goto block_298; } } else { -lean_object* x_300; -x_300 = lean_box(0); -x_9 = x_300; -goto block_295; +lean_object* x_303; +x_303 = lean_box(0); +x_9 = x_303; +goto block_298; } -block_295: +block_298: { lean_object* x_10; lean_object* x_11; lean_dec(x_9); @@ -19279,9 +19349,13 @@ if (x_50 == 0) lean_object* x_51; lean_object* x_52; uint8_t x_53; x_51 = lean_ctor_get(x_47, 0); x_52 = lean_ctor_get(x_47, 1); -x_53 = l_Lean_Exception_isRuntime(x_51); +x_53 = l_Lean_Exception_isInterrupt(x_51); if (x_53 == 0) { +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_51); +if (x_54 == 0) +{ if (lean_obj_tag(x_51) == 0) { lean_dec(x_7); @@ -19295,23 +19369,23 @@ return x_47; } else { -lean_object* x_54; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_51, 0); +lean_object* x_55; +x_55 = lean_ctor_get(x_51, 1); lean_inc(x_55); -x_56 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_57 = lean_nat_dec_eq(x_55, x_56); -if (x_57 == 0) +if (lean_obj_tag(x_55) == 0) { -lean_object* x_58; uint8_t x_59; -x_58 = l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; -x_59 = lean_nat_dec_eq(x_55, x_58); -lean_dec(x_55); -if (x_59 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +x_57 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_58 = lean_nat_dec_eq(x_56, x_57); +if (x_58 == 0) +{ +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; +x_60 = lean_nat_dec_eq(x_56, x_59); +lean_dec(x_56); +if (x_60 == 0) { lean_dec(x_7); lean_dec(x_6); @@ -19324,10 +19398,10 @@ return x_47; } else { -uint8_t x_60; uint8_t x_61; -x_60 = 0; -x_61 = l_Lean_Expr_isHeadBetaTarget(x_1, x_60); -if (x_61 == 0) +uint8_t x_61; uint8_t x_62; +x_61 = 0; +x_62 = l_Lean_Expr_isHeadBetaTarget(x_1, x_61); +if (x_62 == 0) { lean_dec(x_7); lean_dec(x_6); @@ -19340,33 +19414,33 @@ return x_47; } else { -lean_object* x_62; lean_object* x_63; +lean_object* x_63; lean_object* x_64; lean_free_object(x_47); lean_dec(x_51); lean_inc(x_1); -x_62 = l_Lean_Expr_headBeta(x_1); +x_63 = l_Lean_Expr_headBeta(x_1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_63 = l_Lean_Meta_CheckAssignment_checkApp(x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_52); -if (lean_obj_tag(x_63) == 0) +x_64 = l_Lean_Meta_CheckAssignment_checkApp(x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); -lean_dec(x_63); -x_39 = x_64; -x_40 = x_65; +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_39 = x_65; +x_40 = x_66; goto block_46; } else { -uint8_t x_66; +uint8_t x_67; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19374,23 +19448,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_66 = !lean_is_exclusive(x_63); -if (x_66 == 0) +x_67 = !lean_is_exclusive(x_64); +if (x_67 == 0) { -return x_63; +return x_64; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_63, 0); -x_68 = lean_ctor_get(x_63, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_63); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_dec(x_64); +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; } } } @@ -19398,11 +19472,11 @@ return x_69; } else { -uint8_t x_70; uint8_t x_71; -lean_dec(x_55); -x_70 = 0; -x_71 = l_Lean_Expr_isHeadBetaTarget(x_1, x_70); -if (x_71 == 0) +uint8_t x_71; uint8_t x_72; +lean_dec(x_56); +x_71 = 0; +x_72 = l_Lean_Expr_isHeadBetaTarget(x_1, x_71); +if (x_72 == 0) { lean_dec(x_7); lean_dec(x_6); @@ -19415,33 +19489,33 @@ return x_47; } else { -lean_object* x_72; lean_object* x_73; +lean_object* x_73; lean_object* x_74; lean_free_object(x_47); lean_dec(x_51); lean_inc(x_1); -x_72 = l_Lean_Expr_headBeta(x_1); +x_73 = l_Lean_Expr_headBeta(x_1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_73 = l_Lean_Meta_CheckAssignment_checkApp(x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_52); -if (lean_obj_tag(x_73) == 0) +x_74 = l_Lean_Meta_CheckAssignment_checkApp(x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); -lean_dec(x_73); -x_39 = x_74; -x_40 = x_75; +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +lean_dec(x_74); +x_39 = x_75; +x_40 = x_76; goto block_46; } else { -uint8_t x_76; +uint8_t x_77; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19449,23 +19523,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_73); -if (x_76 == 0) +x_77 = !lean_is_exclusive(x_74); +if (x_77 == 0) { -return x_73; +return x_74; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_73, 0); -x_78 = lean_ctor_get(x_73, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_74, 0); +x_79 = lean_ctor_get(x_74, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_73); -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; +lean_dec(x_74); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } @@ -19473,7 +19547,7 @@ return x_79; } else { -lean_dec(x_54); +lean_dec(x_55); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19499,18 +19573,34 @@ return x_47; } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_47, 0); -x_81 = lean_ctor_get(x_47, 1); +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_47; +} +} +else +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = lean_ctor_get(x_47, 0); +x_82 = lean_ctor_get(x_47, 1); +lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); lean_dec(x_47); -x_82 = l_Lean_Exception_isRuntime(x_80); -if (x_82 == 0) +x_83 = l_Lean_Exception_isInterrupt(x_81); +if (x_83 == 0) { -if (lean_obj_tag(x_80) == 0) +uint8_t x_84; +x_84 = l_Lean_Exception_isRuntime(x_81); +if (x_84 == 0) { -lean_object* x_83; +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_85; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19518,32 +19608,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -return x_83; +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_81); +lean_ctor_set(x_85, 1, x_82); +return x_85; } else { -lean_object* x_84; -x_84 = lean_ctor_get(x_80, 1); -lean_inc(x_84); -if (lean_obj_tag(x_84) == 0) +lean_object* x_86; +x_86 = lean_ctor_get(x_81, 1); +lean_inc(x_86); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_80, 0); -lean_inc(x_85); -x_86 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_87 = lean_nat_dec_eq(x_85, x_86); -if (x_87 == 0) -{ -lean_object* x_88; uint8_t x_89; -x_88 = l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; -x_89 = lean_nat_dec_eq(x_85, x_88); -lean_dec(x_85); +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_81, 0); +lean_inc(x_87); +x_88 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_89 = lean_nat_dec_eq(x_87, x_88); if (x_89 == 0) { -lean_object* x_90; +lean_object* x_90; uint8_t x_91; +x_90 = l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; +x_91 = lean_nat_dec_eq(x_87, x_90); +lean_dec(x_87); +if (x_91 == 0) +{ +lean_object* x_92; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19551,19 +19641,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_80); -lean_ctor_set(x_90, 1, x_81); -return x_90; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_81); +lean_ctor_set(x_92, 1, x_82); +return x_92; } else { -uint8_t x_91; uint8_t x_92; -x_91 = 0; -x_92 = l_Lean_Expr_isHeadBetaTarget(x_1, x_91); -if (x_92 == 0) +uint8_t x_93; uint8_t x_94; +x_93 = 0; +x_94 = l_Lean_Expr_isHeadBetaTarget(x_1, x_93); +if (x_94 == 0) { -lean_object* x_93; +lean_object* x_95; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19571,119 +19661,39 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_80); -lean_ctor_set(x_93, 1, x_81); -return x_93; +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_81); +lean_ctor_set(x_95, 1, x_82); +return x_95; } else { -lean_object* x_94; lean_object* x_95; -lean_dec(x_80); -lean_inc(x_1); -x_94 = l_Lean_Expr_headBeta(x_1); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_95 = l_Lean_Meta_CheckAssignment_checkApp(x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_81); -if (lean_obj_tag(x_95) == 0) -{ lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_39 = x_96; -x_40 = x_97; -goto block_46; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -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_98 = lean_ctor_get(x_95, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_95, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_100 = x_95; -} else { - lean_dec_ref(x_95); - x_100 = lean_box(0); -} -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); -} else { - x_101 = x_100; -} -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; -} -} -} -} -else -{ -uint8_t x_102; uint8_t x_103; -lean_dec(x_85); -x_102 = 0; -x_103 = l_Lean_Expr_isHeadBetaTarget(x_1, x_102); -if (x_103 == 0) -{ -lean_object* x_104; -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_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_80); -lean_ctor_set(x_104, 1, x_81); -return x_104; -} -else -{ -lean_object* x_105; lean_object* x_106; -lean_dec(x_80); +lean_dec(x_81); lean_inc(x_1); -x_105 = l_Lean_Expr_headBeta(x_1); +x_96 = l_Lean_Expr_headBeta(x_1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_106 = l_Lean_Meta_CheckAssignment_checkApp(x_105, x_2, x_3, x_4, x_5, x_6, x_7, x_81); -if (lean_obj_tag(x_106) == 0) +x_97 = l_Lean_Meta_CheckAssignment_checkApp(x_96, x_2, x_3, x_4, x_5, x_6, x_7, x_82); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_39 = x_107; -x_40 = x_108; +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_39 = x_98; +x_40 = x_99; goto block_46; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19691,34 +19701,79 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_109 = lean_ctor_get(x_106, 0); +x_100 = lean_ctor_get(x_97, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_97, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_102 = x_97; +} else { + lean_dec_ref(x_97); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +} +} +else +{ +uint8_t x_104; uint8_t x_105; +lean_dec(x_87); +x_104 = 0; +x_105 = l_Lean_Expr_isHeadBetaTarget(x_1, x_104); +if (x_105 == 0) +{ +lean_object* x_106; +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_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_81); +lean_ctor_set(x_106, 1, x_82); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_81); +lean_inc(x_1); +x_107 = l_Lean_Expr_headBeta(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_108 = l_Lean_Meta_CheckAssignment_checkApp(x_107, x_2, x_3, x_4, x_5, x_6, x_7, x_82); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_106, 1); +x_110 = lean_ctor_get(x_108, 1); 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); -} -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); -} else { - x_112 = x_111; -} -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; -} -} -} +lean_dec(x_108); +x_39 = x_109; +x_40 = x_110; +goto block_46; } else { -lean_object* x_113; -lean_dec(x_84); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19726,30 +19781,81 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_80); -lean_ctor_set(x_113, 1, x_81); -return x_113; +x_111 = lean_ctor_get(x_108, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_108, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_113 = x_108; +} else { + lean_dec_ref(x_108); + x_113 = lean_box(0); } +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); +} else { + x_114 = x_113; } -} -else -{ -lean_object* x_114; -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_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_80); -lean_ctor_set(x_114, 1, x_81); +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); return x_114; } } } +} +else +{ +lean_object* x_115; +lean_dec(x_86); +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_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_81); +lean_ctor_set(x_115, 1, x_82); +return x_115; +} +} +} +else +{ +lean_object* x_116; +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_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_81); +lean_ctor_set(x_116, 1, x_82); +return x_116; +} +} +else +{ +lean_object* x_117; +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_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_81); +lean_ctor_set(x_117, 1, x_82); +return x_117; +} +} +} block_46: { lean_object* x_41; uint8_t x_42; @@ -19785,115 +19891,115 @@ return x_45; } case 6: { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_128; -x_115 = lean_ctor_get(x_10, 1); -lean_inc(x_115); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_131; +x_118 = lean_ctor_get(x_10, 1); +lean_inc(x_118); lean_dec(x_10); -x_116 = lean_ctor_get(x_1, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_1, 1); -lean_inc(x_117); -x_118 = lean_ctor_get(x_1, 2); -lean_inc(x_118); -x_119 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +x_119 = lean_ctor_get(x_1, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_1, 1); +lean_inc(x_120); +x_121 = lean_ctor_get(x_1, 2); +lean_inc(x_121); +x_122 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_117); -x_128 = l_Lean_Meta_CheckAssignment_check(x_117, x_2, x_3, x_4, x_5, x_6, x_7, x_115); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -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); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_118); -x_131 = l_Lean_Meta_CheckAssignment_check(x_118, x_2, x_3, x_4, x_5, x_6, x_7, x_130); +lean_inc(x_120); +x_131 = l_Lean_Meta_CheckAssignment_check(x_120, x_2, x_3, x_4, x_5, x_6, x_7, x_118); if (lean_obj_tag(x_131) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; size_t x_135; size_t x_136; uint8_t x_137; +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); -lean_inc(x_118); -lean_inc(x_117); -lean_inc(x_116); -x_134 = l_Lean_Expr_lam___override(x_116, x_117, x_118, x_119); -x_135 = lean_ptr_addr(x_117); -lean_dec(x_117); -x_136 = lean_ptr_addr(x_129); -x_137 = lean_usize_dec_eq(x_135, x_136); -if (x_137 == 0) +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_121); +x_134 = l_Lean_Meta_CheckAssignment_check(x_121, x_2, x_3, x_4, x_5, x_6, x_7, x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_138; +lean_object* x_135; lean_object* x_136; lean_object* x_137; size_t x_138; size_t x_139; uint8_t x_140; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); lean_dec(x_134); -lean_dec(x_118); -x_138 = l_Lean_Expr_lam___override(x_116, x_129, x_132, x_119); -x_120 = x_138; -x_121 = x_133; -goto block_127; +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); +x_137 = l_Lean_Expr_lam___override(x_119, x_120, x_121, x_122); +x_138 = lean_ptr_addr(x_120); +lean_dec(x_120); +x_139 = lean_ptr_addr(x_132); +x_140 = lean_usize_dec_eq(x_138, x_139); +if (x_140 == 0) +{ +lean_object* x_141; +lean_dec(x_137); +lean_dec(x_121); +x_141 = l_Lean_Expr_lam___override(x_119, x_132, x_135, x_122); +x_123 = x_141; +x_124 = x_136; +goto block_130; } else { -size_t x_139; size_t x_140; uint8_t x_141; -x_139 = lean_ptr_addr(x_118); -lean_dec(x_118); -x_140 = lean_ptr_addr(x_132); -x_141 = lean_usize_dec_eq(x_139, x_140); -if (x_141 == 0) +size_t x_142; size_t x_143; uint8_t x_144; +x_142 = lean_ptr_addr(x_121); +lean_dec(x_121); +x_143 = lean_ptr_addr(x_135); +x_144 = lean_usize_dec_eq(x_142, x_143); +if (x_144 == 0) { -lean_object* x_142; -lean_dec(x_134); -x_142 = l_Lean_Expr_lam___override(x_116, x_129, x_132, x_119); -x_120 = x_142; -x_121 = x_133; -goto block_127; +lean_object* x_145; +lean_dec(x_137); +x_145 = l_Lean_Expr_lam___override(x_119, x_132, x_135, x_122); +x_123 = x_145; +x_124 = x_136; +goto block_130; } else { -uint8_t x_143; -x_143 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_119, x_119); -if (x_143 == 0) +uint8_t x_146; +x_146 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_122, x_122); +if (x_146 == 0) { -lean_object* x_144; -lean_dec(x_134); -x_144 = l_Lean_Expr_lam___override(x_116, x_129, x_132, x_119); -x_120 = x_144; -x_121 = x_133; -goto block_127; +lean_object* x_147; +lean_dec(x_137); +x_147 = l_Lean_Expr_lam___override(x_119, x_132, x_135, x_122); +x_123 = x_147; +x_124 = x_136; +goto block_130; } else { +lean_dec(x_135); lean_dec(x_132); -lean_dec(x_129); -lean_dec(x_116); -x_120 = x_134; -x_121 = x_133; -goto block_127; +lean_dec(x_119); +x_123 = x_137; +x_124 = x_136; +goto block_130; } } } } else { -uint8_t x_145; -lean_dec(x_129); -lean_dec(x_118); -lean_dec(x_117); -lean_dec(x_116); +uint8_t x_148; +lean_dec(x_132); +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_119); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -19901,202 +20007,202 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_145 = !lean_is_exclusive(x_131); -if (x_145 == 0) +x_148 = !lean_is_exclusive(x_134); +if (x_148 == 0) +{ +return x_134; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_134, 0); +x_150 = lean_ctor_get(x_134, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_134); +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 +{ +uint8_t x_152; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_119); +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_152 = !lean_is_exclusive(x_131); +if (x_152 == 0) { return x_131; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_131, 0); -x_147 = lean_ctor_get(x_131, 1); -lean_inc(x_147); -lean_inc(x_146); +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_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; +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 +block_130: { -uint8_t x_149; -lean_dec(x_118); -lean_dec(x_117); -lean_dec(x_116); +lean_object* x_125; uint8_t x_126; +lean_inc(x_123); +x_125 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_123, x_2, x_3, x_4, x_5, x_6, x_7, x_124); 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_149 = !lean_is_exclusive(x_128); -if (x_149 == 0) +x_126 = !lean_is_exclusive(x_125); +if (x_126 == 0) { -return x_128; +lean_object* x_127; +x_127 = lean_ctor_get(x_125, 0); +lean_dec(x_127); +lean_ctor_set(x_125, 0, x_123); +return x_125; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_128, 0); -x_151 = lean_ctor_get(x_128, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_128); -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; -} -} -block_127: -{ -lean_object* x_122; uint8_t x_123; -lean_inc(x_120); -x_122 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_120, x_2, x_3, x_4, x_5, x_6, x_7, x_121); -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_123 = !lean_is_exclusive(x_122); -if (x_123 == 0) -{ -lean_object* x_124; -x_124 = lean_ctor_get(x_122, 0); -lean_dec(x_124); -lean_ctor_set(x_122, 0, x_120); -return x_122; -} -else -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_122, 1); -lean_inc(x_125); -lean_dec(x_122); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_120); -lean_ctor_set(x_126, 1, x_125); -return x_126; +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_125, 1); +lean_inc(x_128); +lean_dec(x_125); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_123); +lean_ctor_set(x_129, 1, x_128); +return x_129; } } } case 7: { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; lean_object* x_166; -x_153 = lean_ctor_get(x_10, 1); -lean_inc(x_153); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_169; +x_156 = lean_ctor_get(x_10, 1); +lean_inc(x_156); lean_dec(x_10); -x_154 = lean_ctor_get(x_1, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_1, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_1, 2); -lean_inc(x_156); -x_157 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +x_157 = lean_ctor_get(x_1, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_1, 1); +lean_inc(x_158); +x_159 = lean_ctor_get(x_1, 2); +lean_inc(x_159); +x_160 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_155); -x_166 = l_Lean_Meta_CheckAssignment_check(x_155, x_2, x_3, x_4, x_5, x_6, x_7, x_153); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -lean_dec(x_166); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_156); -x_169 = l_Lean_Meta_CheckAssignment_check(x_156, x_2, x_3, x_4, x_5, x_6, x_7, x_168); +lean_inc(x_158); +x_169 = l_Lean_Meta_CheckAssignment_check(x_158, x_2, x_3, x_4, x_5, x_6, x_7, x_156); if (lean_obj_tag(x_169) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; size_t x_173; size_t x_174; uint8_t x_175; +lean_object* x_170; lean_object* x_171; lean_object* x_172; x_170 = lean_ctor_get(x_169, 0); lean_inc(x_170); x_171 = lean_ctor_get(x_169, 1); lean_inc(x_171); lean_dec(x_169); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); -x_172 = l_Lean_Expr_forallE___override(x_154, x_155, x_156, x_157); -x_173 = lean_ptr_addr(x_155); -lean_dec(x_155); -x_174 = lean_ptr_addr(x_167); -x_175 = lean_usize_dec_eq(x_173, x_174); -if (x_175 == 0) +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_159); +x_172 = l_Lean_Meta_CheckAssignment_check(x_159, x_2, x_3, x_4, x_5, x_6, x_7, x_171); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_176; +lean_object* x_173; lean_object* x_174; lean_object* x_175; size_t x_176; size_t x_177; uint8_t x_178; +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); -lean_dec(x_156); -x_176 = l_Lean_Expr_forallE___override(x_154, x_167, x_170, x_157); -x_158 = x_176; -x_159 = x_171; -goto block_165; +lean_inc(x_159); +lean_inc(x_158); +lean_inc(x_157); +x_175 = l_Lean_Expr_forallE___override(x_157, x_158, x_159, x_160); +x_176 = lean_ptr_addr(x_158); +lean_dec(x_158); +x_177 = lean_ptr_addr(x_170); +x_178 = lean_usize_dec_eq(x_176, x_177); +if (x_178 == 0) +{ +lean_object* x_179; +lean_dec(x_175); +lean_dec(x_159); +x_179 = l_Lean_Expr_forallE___override(x_157, x_170, x_173, x_160); +x_161 = x_179; +x_162 = x_174; +goto block_168; } else { -size_t x_177; size_t x_178; uint8_t x_179; -x_177 = lean_ptr_addr(x_156); -lean_dec(x_156); -x_178 = lean_ptr_addr(x_170); -x_179 = lean_usize_dec_eq(x_177, x_178); -if (x_179 == 0) +size_t x_180; size_t x_181; uint8_t x_182; +x_180 = lean_ptr_addr(x_159); +lean_dec(x_159); +x_181 = lean_ptr_addr(x_173); +x_182 = lean_usize_dec_eq(x_180, x_181); +if (x_182 == 0) { -lean_object* x_180; -lean_dec(x_172); -x_180 = l_Lean_Expr_forallE___override(x_154, x_167, x_170, x_157); -x_158 = x_180; -x_159 = x_171; -goto block_165; +lean_object* x_183; +lean_dec(x_175); +x_183 = l_Lean_Expr_forallE___override(x_157, x_170, x_173, x_160); +x_161 = x_183; +x_162 = x_174; +goto block_168; } else { -uint8_t x_181; -x_181 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_157, x_157); -if (x_181 == 0) +uint8_t x_184; +x_184 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(x_160, x_160); +if (x_184 == 0) { -lean_object* x_182; -lean_dec(x_172); -x_182 = l_Lean_Expr_forallE___override(x_154, x_167, x_170, x_157); -x_158 = x_182; -x_159 = x_171; -goto block_165; +lean_object* x_185; +lean_dec(x_175); +x_185 = l_Lean_Expr_forallE___override(x_157, x_170, x_173, x_160); +x_161 = x_185; +x_162 = x_174; +goto block_168; } else { +lean_dec(x_173); lean_dec(x_170); -lean_dec(x_167); -lean_dec(x_154); -x_158 = x_172; -x_159 = x_171; -goto block_165; +lean_dec(x_157); +x_161 = x_175; +x_162 = x_174; +goto block_168; } } } } else { -uint8_t x_183; -lean_dec(x_167); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_154); +uint8_t x_186; +lean_dec(x_170); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20104,130 +20210,114 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_183 = !lean_is_exclusive(x_169); -if (x_183 == 0) +x_186 = !lean_is_exclusive(x_172); +if (x_186 == 0) +{ +return x_172; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_172, 0); +x_188 = lean_ctor_get(x_172, 1); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_172); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; +} +} +} +else +{ +uint8_t x_190; +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +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_190 = !lean_is_exclusive(x_169); +if (x_190 == 0) { return x_169; } else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_169, 0); -x_185 = lean_ctor_get(x_169, 1); -lean_inc(x_185); -lean_inc(x_184); +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_169, 0); +x_192 = lean_ctor_get(x_169, 1); +lean_inc(x_192); +lean_inc(x_191); lean_dec(x_169); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +return x_193; } } -} -else +block_168: { -uint8_t x_187; -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_154); +lean_object* x_163; uint8_t x_164; +lean_inc(x_161); +x_163 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_161, x_2, x_3, x_4, x_5, x_6, x_7, x_162); 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_187 = !lean_is_exclusive(x_166); -if (x_187 == 0) +x_164 = !lean_is_exclusive(x_163); +if (x_164 == 0) { -return x_166; +lean_object* x_165; +x_165 = lean_ctor_get(x_163, 0); +lean_dec(x_165); +lean_ctor_set(x_163, 0, x_161); +return x_163; } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_166, 0); -x_189 = lean_ctor_get(x_166, 1); -lean_inc(x_189); -lean_inc(x_188); -lean_dec(x_166); -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; -} -} -block_165: -{ -lean_object* x_160; uint8_t x_161; -lean_inc(x_158); -x_160 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_158, x_2, x_3, x_4, x_5, x_6, x_7, x_159); -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_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; -x_162 = lean_ctor_get(x_160, 0); -lean_dec(x_162); -lean_ctor_set(x_160, 0, x_158); -return x_160; -} -else -{ -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_160, 1); -lean_inc(x_163); -lean_dec(x_160); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_158); -lean_ctor_set(x_164, 1, x_163); -return x_164; +lean_object* x_166; lean_object* x_167; +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); +lean_dec(x_163); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_161); +lean_ctor_set(x_167, 1, x_166); +return x_167; } } } case 8: { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_205; -x_191 = lean_ctor_get(x_10, 1); -lean_inc(x_191); +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_208; +x_194 = lean_ctor_get(x_10, 1); +lean_inc(x_194); lean_dec(x_10); -x_192 = lean_ctor_get(x_1, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_1, 1); -lean_inc(x_193); -x_194 = lean_ctor_get(x_1, 2); -lean_inc(x_194); -x_195 = lean_ctor_get(x_1, 3); +x_195 = lean_ctor_get(x_1, 0); lean_inc(x_195); -x_196 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 8); +x_196 = lean_ctor_get(x_1, 1); +lean_inc(x_196); +x_197 = lean_ctor_get(x_1, 2); +lean_inc(x_197); +x_198 = lean_ctor_get(x_1, 3); +lean_inc(x_198); +x_199 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_193); -x_205 = l_Lean_Meta_CheckAssignment_check(x_193, x_2, x_3, x_4, x_5, x_6, x_7, x_191); -if (lean_obj_tag(x_205) == 0) -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_dec(x_205); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_194); -x_208 = l_Lean_Meta_CheckAssignment_check(x_194, x_2, x_3, x_4, x_5, x_6, x_7, x_207); +lean_inc(x_196); +x_208 = l_Lean_Meta_CheckAssignment_check(x_196, x_2, x_3, x_4, x_5, x_6, x_7, x_194); if (lean_obj_tag(x_208) == 0) { lean_object* x_209; lean_object* x_210; lean_object* x_211; @@ -20242,84 +20332,100 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_195); -x_211 = l_Lean_Meta_CheckAssignment_check(x_195, x_2, x_3, x_4, x_5, x_6, x_7, x_210); +lean_inc(x_197); +x_211 = l_Lean_Meta_CheckAssignment_check(x_197, x_2, x_3, x_4, x_5, x_6, x_7, x_210); if (lean_obj_tag(x_211) == 0) { -lean_object* x_212; lean_object* x_213; size_t x_214; size_t x_215; uint8_t x_216; +lean_object* x_212; lean_object* x_213; lean_object* x_214; x_212 = lean_ctor_get(x_211, 0); lean_inc(x_212); x_213 = lean_ctor_get(x_211, 1); lean_inc(x_213); lean_dec(x_211); -x_214 = lean_ptr_addr(x_193); -lean_dec(x_193); -x_215 = lean_ptr_addr(x_206); -x_216 = lean_usize_dec_eq(x_214, x_215); -if (x_216 == 0) +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_198); +x_214 = l_Lean_Meta_CheckAssignment_check(x_198, x_2, x_3, x_4, x_5, x_6, x_7, x_213); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_217; -lean_dec(x_195); -lean_dec(x_194); -x_217 = l_Lean_Expr_letE___override(x_192, x_206, x_209, x_212, x_196); -x_197 = x_217; -x_198 = x_213; -goto block_204; +lean_object* x_215; lean_object* x_216; size_t x_217; size_t x_218; uint8_t 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_ptr_addr(x_196); +lean_dec(x_196); +x_218 = lean_ptr_addr(x_209); +x_219 = lean_usize_dec_eq(x_217, x_218); +if (x_219 == 0) +{ +lean_object* x_220; +lean_dec(x_198); +lean_dec(x_197); +x_220 = l_Lean_Expr_letE___override(x_195, x_209, x_212, x_215, x_199); +x_200 = x_220; +x_201 = x_216; +goto block_207; } else { -size_t x_218; size_t x_219; uint8_t x_220; -x_218 = lean_ptr_addr(x_194); -lean_dec(x_194); -x_219 = lean_ptr_addr(x_209); -x_220 = lean_usize_dec_eq(x_218, x_219); -if (x_220 == 0) +size_t x_221; size_t x_222; uint8_t x_223; +x_221 = lean_ptr_addr(x_197); +lean_dec(x_197); +x_222 = lean_ptr_addr(x_212); +x_223 = lean_usize_dec_eq(x_221, x_222); +if (x_223 == 0) { -lean_object* x_221; -lean_dec(x_195); -x_221 = l_Lean_Expr_letE___override(x_192, x_206, x_209, x_212, x_196); -x_197 = x_221; -x_198 = x_213; -goto block_204; +lean_object* x_224; +lean_dec(x_198); +x_224 = l_Lean_Expr_letE___override(x_195, x_209, x_212, x_215, x_199); +x_200 = x_224; +x_201 = x_216; +goto block_207; } else { -size_t x_222; size_t x_223; uint8_t x_224; -x_222 = lean_ptr_addr(x_195); -lean_dec(x_195); -x_223 = lean_ptr_addr(x_212); -x_224 = lean_usize_dec_eq(x_222, x_223); -if (x_224 == 0) +size_t x_225; size_t x_226; uint8_t x_227; +x_225 = lean_ptr_addr(x_198); +lean_dec(x_198); +x_226 = lean_ptr_addr(x_215); +x_227 = lean_usize_dec_eq(x_225, x_226); +if (x_227 == 0) { -lean_object* x_225; -x_225 = l_Lean_Expr_letE___override(x_192, x_206, x_209, x_212, x_196); -x_197 = x_225; -x_198 = x_213; -goto block_204; +lean_object* x_228; +x_228 = l_Lean_Expr_letE___override(x_195, x_209, x_212, x_215, x_199); +x_200 = x_228; +x_201 = x_216; +goto block_207; } else { +lean_dec(x_215); lean_dec(x_212); lean_dec(x_209); -lean_dec(x_206); -lean_dec(x_192); +lean_dec(x_195); lean_inc(x_1); -x_197 = x_1; -x_198 = x_213; -goto block_204; +x_200 = x_1; +x_201 = x_216; +goto block_207; } } } } else { -uint8_t x_226; +uint8_t x_229; +lean_dec(x_212); lean_dec(x_209); -lean_dec(x_206); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20327,34 +20433,68 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_226 = !lean_is_exclusive(x_211); -if (x_226 == 0) +x_229 = !lean_is_exclusive(x_214); +if (x_229 == 0) +{ +return x_214; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_214, 0); +x_231 = lean_ctor_get(x_214, 1); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_214); +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; +} +} +} +else +{ +uint8_t x_233; +lean_dec(x_209); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +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_233 = !lean_is_exclusive(x_211); +if (x_233 == 0) { return x_211; } else { -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_211, 0); -x_228 = lean_ctor_get(x_211, 1); -lean_inc(x_228); -lean_inc(x_227); +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_211, 0); +x_235 = lean_ctor_get(x_211, 1); +lean_inc(x_235); +lean_inc(x_234); lean_dec(x_211); -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; +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +return x_236; } } } else { -uint8_t x_230; -lean_dec(x_206); +uint8_t x_237; +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20362,145 +20502,111 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_230 = !lean_is_exclusive(x_208); -if (x_230 == 0) +x_237 = !lean_is_exclusive(x_208); +if (x_237 == 0) { return x_208; } else { -lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_231 = lean_ctor_get(x_208, 0); -x_232 = lean_ctor_get(x_208, 1); -lean_inc(x_232); -lean_inc(x_231); +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_208, 0); +x_239 = lean_ctor_get(x_208, 1); +lean_inc(x_239); +lean_inc(x_238); lean_dec(x_208); -x_233 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set(x_233, 1, x_232); -return x_233; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; } } -} -else +block_207: { -uint8_t x_234; -lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_192); +lean_object* x_202; uint8_t x_203; +lean_inc(x_200); +x_202 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_200, x_2, x_3, x_4, x_5, x_6, x_7, x_201); 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_234 = !lean_is_exclusive(x_205); -if (x_234 == 0) +x_203 = !lean_is_exclusive(x_202); +if (x_203 == 0) { -return x_205; +lean_object* x_204; +x_204 = lean_ctor_get(x_202, 0); +lean_dec(x_204); +lean_ctor_set(x_202, 0, x_200); +return x_202; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_235 = lean_ctor_get(x_205, 0); -x_236 = lean_ctor_get(x_205, 1); -lean_inc(x_236); -lean_inc(x_235); -lean_dec(x_205); -x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -return x_237; -} -} -block_204: -{ -lean_object* x_199; uint8_t x_200; -lean_inc(x_197); -x_199 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_197, x_2, x_3, x_4, x_5, x_6, x_7, x_198); -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_200 = !lean_is_exclusive(x_199); -if (x_200 == 0) -{ -lean_object* x_201; -x_201 = lean_ctor_get(x_199, 0); -lean_dec(x_201); -lean_ctor_set(x_199, 0, x_197); -return x_199; -} -else -{ -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -lean_dec(x_199); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_197); -lean_ctor_set(x_203, 1, x_202); -return x_203; +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_202, 1); +lean_inc(x_205); +lean_dec(x_202); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_200); +lean_ctor_set(x_206, 1, x_205); +return x_206; } } } case 10: { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_249; -x_238 = lean_ctor_get(x_10, 1); -lean_inc(x_238); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_252; +x_241 = lean_ctor_get(x_10, 1); +lean_inc(x_241); lean_dec(x_10); -x_239 = lean_ctor_get(x_1, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_1, 1); -lean_inc(x_240); +x_242 = lean_ctor_get(x_1, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_1, 1); +lean_inc(x_243); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_240); -x_249 = l_Lean_Meta_CheckAssignment_check(x_240, x_2, x_3, x_4, x_5, x_6, x_7, x_238); -if (lean_obj_tag(x_249) == 0) +lean_inc(x_243); +x_252 = l_Lean_Meta_CheckAssignment_check(x_243, x_2, x_3, x_4, x_5, x_6, x_7, x_241); +if (lean_obj_tag(x_252) == 0) { -lean_object* x_250; lean_object* x_251; size_t x_252; size_t x_253; uint8_t x_254; -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); -x_252 = lean_ptr_addr(x_240); -lean_dec(x_240); -x_253 = lean_ptr_addr(x_250); -x_254 = lean_usize_dec_eq(x_252, x_253); -if (x_254 == 0) +lean_object* x_253; lean_object* x_254; size_t x_255; size_t x_256; uint8_t x_257; +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +lean_dec(x_252); +x_255 = lean_ptr_addr(x_243); +lean_dec(x_243); +x_256 = lean_ptr_addr(x_253); +x_257 = lean_usize_dec_eq(x_255, x_256); +if (x_257 == 0) { -lean_object* x_255; -x_255 = l_Lean_Expr_mdata___override(x_239, x_250); -x_241 = x_255; -x_242 = x_251; -goto block_248; +lean_object* x_258; +x_258 = l_Lean_Expr_mdata___override(x_242, x_253); +x_244 = x_258; +x_245 = x_254; +goto block_251; } else { -lean_dec(x_250); -lean_dec(x_239); +lean_dec(x_253); +lean_dec(x_242); lean_inc(x_1); -x_241 = x_1; -x_242 = x_251; -goto block_248; +x_244 = x_1; +x_245 = x_254; +goto block_251; } } else { -uint8_t x_256; -lean_dec(x_240); -lean_dec(x_239); +uint8_t x_259; +lean_dec(x_243); +lean_dec(x_242); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20508,115 +20614,115 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_256 = !lean_is_exclusive(x_249); -if (x_256 == 0) +x_259 = !lean_is_exclusive(x_252); +if (x_259 == 0) { -return x_249; +return x_252; } else { -lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_257 = lean_ctor_get(x_249, 0); -x_258 = lean_ctor_get(x_249, 1); -lean_inc(x_258); -lean_inc(x_257); -lean_dec(x_249); -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -return x_259; +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = lean_ctor_get(x_252, 0); +x_261 = lean_ctor_get(x_252, 1); +lean_inc(x_261); +lean_inc(x_260); +lean_dec(x_252); +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +return x_262; } } -block_248: +block_251: { -lean_object* x_243; uint8_t x_244; -lean_inc(x_241); -x_243 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_241, x_2, x_3, x_4, x_5, x_6, x_7, x_242); +lean_object* x_246; uint8_t x_247; +lean_inc(x_244); +x_246 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_244, x_2, x_3, x_4, x_5, x_6, x_7, x_245); 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_244 = !lean_is_exclusive(x_243); -if (x_244 == 0) +x_247 = !lean_is_exclusive(x_246); +if (x_247 == 0) { -lean_object* x_245; -x_245 = lean_ctor_get(x_243, 0); -lean_dec(x_245); -lean_ctor_set(x_243, 0, x_241); -return x_243; +lean_object* x_248; +x_248 = lean_ctor_get(x_246, 0); +lean_dec(x_248); +lean_ctor_set(x_246, 0, x_244); +return x_246; } else { -lean_object* x_246; lean_object* x_247; -x_246 = lean_ctor_get(x_243, 1); -lean_inc(x_246); -lean_dec(x_243); -x_247 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_247, 0, x_241); -lean_ctor_set(x_247, 1, x_246); -return x_247; +lean_object* x_249; lean_object* x_250; +x_249 = lean_ctor_get(x_246, 1); +lean_inc(x_249); +lean_dec(x_246); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_244); +lean_ctor_set(x_250, 1, x_249); +return x_250; } } } case 11: { -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_272; -x_260 = lean_ctor_get(x_10, 1); -lean_inc(x_260); -lean_dec(x_10); -x_261 = lean_ctor_get(x_1, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_1, 1); -lean_inc(x_262); -x_263 = lean_ctor_get(x_1, 2); +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_275; +x_263 = lean_ctor_get(x_10, 1); lean_inc(x_263); +lean_dec(x_10); +x_264 = lean_ctor_get(x_1, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_1, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_1, 2); +lean_inc(x_266); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_263); -x_272 = l_Lean_Meta_CheckAssignment_check(x_263, x_2, x_3, x_4, x_5, x_6, x_7, x_260); -if (lean_obj_tag(x_272) == 0) +lean_inc(x_266); +x_275 = l_Lean_Meta_CheckAssignment_check(x_266, x_2, x_3, x_4, x_5, x_6, x_7, x_263); +if (lean_obj_tag(x_275) == 0) { -lean_object* x_273; lean_object* x_274; size_t x_275; size_t x_276; uint8_t x_277; -x_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -lean_dec(x_272); -x_275 = lean_ptr_addr(x_263); -lean_dec(x_263); -x_276 = lean_ptr_addr(x_273); -x_277 = lean_usize_dec_eq(x_275, x_276); -if (x_277 == 0) +lean_object* x_276; lean_object* x_277; size_t x_278; size_t x_279; uint8_t x_280; +x_276 = lean_ctor_get(x_275, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_275, 1); +lean_inc(x_277); +lean_dec(x_275); +x_278 = lean_ptr_addr(x_266); +lean_dec(x_266); +x_279 = lean_ptr_addr(x_276); +x_280 = lean_usize_dec_eq(x_278, x_279); +if (x_280 == 0) { -lean_object* x_278; -x_278 = l_Lean_Expr_proj___override(x_261, x_262, x_273); -x_264 = x_278; -x_265 = x_274; -goto block_271; +lean_object* x_281; +x_281 = l_Lean_Expr_proj___override(x_264, x_265, x_276); +x_267 = x_281; +x_268 = x_277; +goto block_274; } else { -lean_dec(x_273); -lean_dec(x_262); -lean_dec(x_261); +lean_dec(x_276); +lean_dec(x_265); +lean_dec(x_264); lean_inc(x_1); -x_264 = x_1; -x_265 = x_274; -goto block_271; +x_267 = x_1; +x_268 = x_277; +goto block_274; } } else { -uint8_t x_279; -lean_dec(x_263); -lean_dec(x_262); -lean_dec(x_261); +uint8_t x_282; +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_264); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20624,98 +20730,98 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_279 = !lean_is_exclusive(x_272); -if (x_279 == 0) +x_282 = !lean_is_exclusive(x_275); +if (x_282 == 0) { -return x_272; +return x_275; } else { -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_272, 0); -x_281 = lean_ctor_get(x_272, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_272); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_280); -lean_ctor_set(x_282, 1, x_281); -return x_282; +lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_283 = lean_ctor_get(x_275, 0); +x_284 = lean_ctor_get(x_275, 1); +lean_inc(x_284); +lean_inc(x_283); +lean_dec(x_275); +x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_285, 0, x_283); +lean_ctor_set(x_285, 1, x_284); +return x_285; } } -block_271: +block_274: { -lean_object* x_266; uint8_t x_267; -lean_inc(x_264); -x_266 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_264, x_2, x_3, x_4, x_5, x_6, x_7, x_265); +lean_object* x_269; uint8_t x_270; +lean_inc(x_267); +x_269 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_267, x_2, x_3, x_4, x_5, x_6, x_7, x_268); 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_267 = !lean_is_exclusive(x_266); -if (x_267 == 0) +x_270 = !lean_is_exclusive(x_269); +if (x_270 == 0) { -lean_object* x_268; -x_268 = lean_ctor_get(x_266, 0); -lean_dec(x_268); -lean_ctor_set(x_266, 0, x_264); -return x_266; +lean_object* x_271; +x_271 = lean_ctor_get(x_269, 0); +lean_dec(x_271); +lean_ctor_set(x_269, 0, x_267); +return x_269; } else { -lean_object* x_269; lean_object* x_270; -x_269 = lean_ctor_get(x_266, 1); -lean_inc(x_269); -lean_dec(x_266); -x_270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_270, 0, x_264); -lean_ctor_set(x_270, 1, x_269); -return x_270; +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_269, 1); +lean_inc(x_272); +lean_dec(x_269); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_267); +lean_ctor_set(x_273, 1, x_272); +return x_273; } } } default: { -lean_object* x_283; lean_object* x_284; uint8_t x_285; -x_283 = lean_ctor_get(x_10, 1); -lean_inc(x_283); +lean_object* x_286; lean_object* x_287; uint8_t x_288; +x_286 = lean_ctor_get(x_10, 1); +lean_inc(x_286); lean_dec(x_10); lean_inc_n(x_1, 2); -x_284 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_283); +x_287 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(x_1, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_286); 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_285 = !lean_is_exclusive(x_284); -if (x_285 == 0) +x_288 = !lean_is_exclusive(x_287); +if (x_288 == 0) { -lean_object* x_286; -x_286 = lean_ctor_get(x_284, 0); -lean_dec(x_286); -lean_ctor_set(x_284, 0, x_1); -return x_284; +lean_object* x_289; +x_289 = lean_ctor_get(x_287, 0); +lean_dec(x_289); +lean_ctor_set(x_287, 0, x_1); +return x_287; } else { -lean_object* x_287; lean_object* x_288; -x_287 = lean_ctor_get(x_284, 1); -lean_inc(x_287); -lean_dec(x_284); -x_288 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_288, 0, x_1); -lean_ctor_set(x_288, 1, x_287); -return x_288; +lean_object* x_290; lean_object* x_291; +x_290 = lean_ctor_get(x_287, 1); +lean_inc(x_290); +lean_dec(x_287); +x_291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_291, 0, x_1); +lean_ctor_set(x_291, 1, x_290); +return x_291; } } } } else { -uint8_t x_289; +uint8_t x_292; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -20723,31 +20829,31 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_289 = !lean_is_exclusive(x_10); -if (x_289 == 0) +x_292 = !lean_is_exclusive(x_10); +if (x_292 == 0) { -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_10, 0); -lean_dec(x_290); -x_291 = lean_ctor_get(x_11, 0); -lean_inc(x_291); +lean_object* x_293; lean_object* x_294; +x_293 = lean_ctor_get(x_10, 0); +lean_dec(x_293); +x_294 = lean_ctor_get(x_11, 0); +lean_inc(x_294); lean_dec(x_11); -lean_ctor_set(x_10, 0, x_291); +lean_ctor_set(x_10, 0, x_294); return x_10; } else { -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_10, 1); -lean_inc(x_292); +lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_295 = lean_ctor_get(x_10, 1); +lean_inc(x_295); lean_dec(x_10); -x_293 = lean_ctor_get(x_11, 0); -lean_inc(x_293); +x_296 = lean_ctor_get(x_11, 0); +lean_inc(x_296); lean_dec(x_11); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; +x_297 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_295); +return x_297; } } } @@ -21173,72 +21279,72 @@ _start: switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_12; lean_object* x_55; uint8_t x_79; +lean_object* x_12; lean_object* x_58; uint8_t x_82; lean_dec(x_4); -x_79 = l_Lean_Expr_isMVar(x_2); -if (x_79 == 0) -{ -lean_object* x_80; -lean_dec(x_1); -x_80 = lean_box(0); -x_55 = x_80; -goto block_78; -} -else -{ -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_7, 0); -lean_inc(x_81); -x_82 = lean_ctor_get_uint8(x_81, 1); -lean_dec(x_81); +x_82 = l_Lean_Expr_isMVar(x_2); if (x_82 == 0) { lean_object* x_83; lean_dec(x_1); x_83 = lean_box(0); -x_55 = x_83; -goto block_78; +x_58 = x_83; +goto block_81; } else { -lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_84 = lean_array_get_size(x_3); -x_85 = lean_unsigned_to_nat(0u); -x_86 = lean_nat_dec_lt(x_85, x_84); -if (x_86 == 0) -{ -lean_object* x_87; +lean_object* x_84; uint8_t x_85; +x_84 = lean_ctor_get(x_7, 0); +lean_inc(x_84); +x_85 = lean_ctor_get_uint8(x_84, 1); lean_dec(x_84); -x_87 = lean_box(0); -x_12 = x_87; -goto block_54; -} -else +if (x_85 == 0) { -size_t x_88; size_t x_89; uint8_t x_90; -x_88 = 0; -x_89 = lean_usize_of_nat(x_84); -lean_dec(x_84); -x_90 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_88, x_89); -if (x_90 == 0) -{ -lean_object* x_91; -x_91 = lean_box(0); -x_12 = x_91; -goto block_54; -} -else -{ -lean_object* x_92; +lean_object* x_86; lean_dec(x_1); -x_92 = lean_box(0); -x_55 = x_92; -goto block_78; +x_86 = lean_box(0); +x_58 = x_86; +goto block_81; +} +else +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_array_get_size(x_3); +x_88 = lean_unsigned_to_nat(0u); +x_89 = lean_nat_dec_lt(x_88, x_87); +if (x_89 == 0) +{ +lean_object* x_90; +lean_dec(x_87); +x_90 = lean_box(0); +x_12 = x_90; +goto block_57; +} +else +{ +size_t x_91; size_t x_92; uint8_t x_93; +x_91 = 0; +x_92 = lean_usize_of_nat(x_87); +lean_dec(x_87); +x_93 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_91, x_92); +if (x_93 == 0) +{ +lean_object* x_94; +x_94 = lean_box(0); +x_12 = x_94; +goto block_57; +} +else +{ +lean_object* x_95; +lean_dec(x_1); +x_95 = lean_box(0); +x_58 = x_95; +goto block_81; } } } } -block_54: +block_57: { lean_object* x_13; lean_dec(x_12); @@ -21311,9 +21417,13 @@ if (x_27 == 0) lean_object* x_28; lean_object* x_29; uint8_t x_30; x_28 = lean_ctor_get(x_19, 0); x_29 = lean_ctor_get(x_19, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); +x_30 = l_Lean_Exception_isInterrupt(x_28); if (x_30 == 0) { +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ if (lean_obj_tag(x_28) == 0) { lean_dec(x_16); @@ -21329,29 +21439,12 @@ return x_19; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_33 = lean_nat_dec_eq(x_32, x_31); -lean_dec(x_31); -if (x_33 == 0) -{ -lean_dec(x_16); -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_5); -lean_dec(x_1); -return x_19; -} -else -{ -uint8_t x_34; -x_34 = l_Lean_Expr_isMVar(x_14); +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +x_33 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_34 = lean_nat_dec_eq(x_33, x_32); +lean_dec(x_32); if (x_34 == 0) { lean_dec(x_16); @@ -21367,11 +21460,28 @@ return x_19; } else { -lean_object* x_35; lean_object* x_36; +uint8_t x_35; +x_35 = l_Lean_Expr_isMVar(x_14); +if (x_35 == 0) +{ +lean_dec(x_16); +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_5); +lean_dec(x_1); +return x_19; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_free_object(x_19); -x_35 = lean_box(0); -x_36 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_14, x_1, x_16, x_28, x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_29); -return x_36; +x_36 = lean_box(0); +x_37 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_14, x_1, x_16, x_28, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +return x_37; } } } @@ -21392,18 +21502,36 @@ return x_19; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_19, 0); -x_38 = lean_ctor_get(x_19, 1); +lean_dec(x_16); +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_5); +lean_dec(x_1); +return x_19; +} +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_19, 0); +x_39 = lean_ctor_get(x_19, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); lean_dec(x_19); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) +x_40 = l_Lean_Exception_isInterrupt(x_38); +if (x_40 == 0) { -if (lean_obj_tag(x_37) == 0) +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +if (x_41 == 0) { -lean_object* x_40; +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_42; lean_dec(x_16); lean_dec(x_14); lean_dec(x_10); @@ -21413,40 +21541,19 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -return x_40; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_39); +return x_42; } else { -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_41); -x_42 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_43 = lean_nat_dec_eq(x_42, x_41); -lean_dec(x_41); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_16); -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_5); -lean_dec(x_1); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_37); -lean_ctor_set(x_44, 1, x_38); -return x_44; -} -else -{ -uint8_t x_45; -x_45 = l_Lean_Expr_isMVar(x_14); +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_38, 0); +lean_inc(x_43); +x_44 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_45 = lean_nat_dec_eq(x_44, x_43); +lean_dec(x_43); if (x_45 == 0) { lean_object* x_46; @@ -21460,23 +21567,17 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_37); -lean_ctor_set(x_46, 1, x_38); +lean_ctor_set(x_46, 0, x_38); +lean_ctor_set(x_46, 1, x_39); return x_46; } else { -lean_object* x_47; lean_object* x_48; -x_47 = lean_box(0); -x_48 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_14, x_1, x_16, x_37, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_38); -return x_48; -} -} -} -} -else +uint8_t x_47; +x_47 = l_Lean_Expr_isMVar(x_14); +if (x_47 == 0) { -lean_object* x_49; +lean_object* x_48; lean_dec(x_16); lean_dec(x_14); lean_dec(x_10); @@ -21486,17 +21587,62 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_37); -lean_ctor_set(x_49, 1, x_38); -return x_49; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_38); +lean_ctor_set(x_48, 1, x_39); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_box(0); +x_50 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_14, x_1, x_16, x_38, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +return x_50; } } } } else { -uint8_t x_50; +lean_object* x_51; +lean_dec(x_16); +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_5); +lean_dec(x_1); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_38); +lean_ctor_set(x_51, 1, x_39); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_16); +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_5); +lean_dec(x_1); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_38); +lean_ctor_set(x_52, 1, x_39); +return x_52; +} +} +} +} +else +{ +uint8_t x_53; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21505,104 +21651,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_13); -if (x_50 == 0) +x_53 = !lean_is_exclusive(x_13); +if (x_53 == 0) { return x_13; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_13, 0); -x_52 = lean_ctor_get(x_13, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_13, 0); +x_55 = lean_ctor_get(x_13, 1); +lean_inc(x_55); +lean_inc(x_54); lean_dec(x_13); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +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; } } } -block_78: +block_81: { -lean_object* x_56; -lean_dec(x_55); +lean_object* x_59; +lean_dec(x_58); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_56 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_56) == 0) +x_59 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; lean_object* x_62; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_array_get_size(x_3); -x_60 = lean_usize_of_nat(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; size_t x_63; size_t x_64; lean_object* x_65; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); lean_dec(x_59); -x_61 = 0; -x_62 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_60, x_61, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_58); -if (lean_obj_tag(x_62) == 0) -{ -uint8_t x_63; -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_62, 0); -x_65 = l_Lean_mkAppN(x_57, x_64); -lean_ctor_set(x_62, 0, x_65); -return x_62; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); -lean_inc(x_67); -lean_inc(x_66); +x_62 = lean_array_get_size(x_3); +x_63 = lean_usize_of_nat(x_62); lean_dec(x_62); -x_68 = l_Lean_mkAppN(x_57, x_66); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -return x_69; +x_64 = 0; +x_65 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_63, x_64, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_61); +if (lean_obj_tag(x_65) == 0) +{ +uint8_t x_66; +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_65, 0); +x_68 = l_Lean_mkAppN(x_60, x_67); +lean_ctor_set(x_65, 0, x_68); +return x_65; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_65, 0); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_65); +x_71 = l_Lean_mkAppN(x_60, x_69); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } else { -uint8_t x_70; -lean_dec(x_57); -x_70 = !lean_is_exclusive(x_62); -if (x_70 == 0) +uint8_t x_73; +lean_dec(x_60); +x_73 = !lean_is_exclusive(x_65); +if (x_73 == 0) { -return x_62; +return x_65; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_62, 0); -x_72 = lean_ctor_get(x_62, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_62); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_65, 0); +x_75 = lean_ctor_get(x_65, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_65); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_74; +uint8_t x_77; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21610,127 +21756,127 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_74 = !lean_is_exclusive(x_56); -if (x_74 == 0) +x_77 = !lean_is_exclusive(x_59); +if (x_77 == 0) { -return x_56; +return x_59; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_56, 0); -x_76 = lean_ctor_get(x_56, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_56); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_59, 0); +x_79 = lean_ctor_get(x_59, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_59); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } } case 1: { -lean_object* x_93; lean_object* x_136; uint8_t x_160; +lean_object* x_96; lean_object* x_142; uint8_t x_166; lean_dec(x_4); -x_160 = l_Lean_Expr_isMVar(x_2); -if (x_160 == 0) +x_166 = l_Lean_Expr_isMVar(x_2); +if (x_166 == 0) { -lean_object* x_161; +lean_object* x_167; lean_dec(x_1); -x_161 = lean_box(0); -x_136 = x_161; -goto block_159; +x_167 = lean_box(0); +x_142 = x_167; +goto block_165; } else { -lean_object* x_162; uint8_t x_163; -x_162 = lean_ctor_get(x_7, 0); -lean_inc(x_162); -x_163 = lean_ctor_get_uint8(x_162, 1); -lean_dec(x_162); -if (x_163 == 0) +lean_object* x_168; uint8_t x_169; +x_168 = lean_ctor_get(x_7, 0); +lean_inc(x_168); +x_169 = lean_ctor_get_uint8(x_168, 1); +lean_dec(x_168); +if (x_169 == 0) { -lean_object* x_164; +lean_object* x_170; lean_dec(x_1); -x_164 = lean_box(0); -x_136 = x_164; -goto block_159; +x_170 = lean_box(0); +x_142 = x_170; +goto block_165; } else { -lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_165 = lean_array_get_size(x_3); -x_166 = lean_unsigned_to_nat(0u); -x_167 = lean_nat_dec_lt(x_166, x_165); -if (x_167 == 0) +lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_171 = lean_array_get_size(x_3); +x_172 = lean_unsigned_to_nat(0u); +x_173 = lean_nat_dec_lt(x_172, x_171); +if (x_173 == 0) { -lean_object* x_168; -lean_dec(x_165); -x_168 = lean_box(0); -x_93 = x_168; -goto block_135; +lean_object* x_174; +lean_dec(x_171); +x_174 = lean_box(0); +x_96 = x_174; +goto block_141; } else { -size_t x_169; size_t x_170; uint8_t x_171; -x_169 = 0; -x_170 = lean_usize_of_nat(x_165); -lean_dec(x_165); -x_171 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_169, x_170); -if (x_171 == 0) +size_t x_175; size_t x_176; uint8_t x_177; +x_175 = 0; +x_176 = lean_usize_of_nat(x_171); +lean_dec(x_171); +x_177 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_175, x_176); +if (x_177 == 0) { -lean_object* x_172; -x_172 = lean_box(0); -x_93 = x_172; -goto block_135; +lean_object* x_178; +x_178 = lean_box(0); +x_96 = x_178; +goto block_141; } else { -lean_object* x_173; +lean_object* x_179; lean_dec(x_1); -x_173 = lean_box(0); -x_136 = x_173; -goto block_159; +x_179 = lean_box(0); +x_142 = x_179; +goto block_165; } } } } -block_135: +block_141: { -lean_object* x_94; -lean_dec(x_93); +lean_object* x_97; +lean_dec(x_96); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_94 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_94) == 0) +x_97 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; size_t x_98; size_t x_99; lean_object* x_100; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_array_get_size(x_3); -x_98 = lean_usize_of_nat(x_97); -x_99 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_100 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_98, x_99, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_96); -if (lean_obj_tag(x_100) == 0) -{ -uint8_t x_101; +lean_object* x_98; lean_object* x_99; lean_object* x_100; size_t x_101; size_t x_102; lean_object* x_103; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); lean_dec(x_97); +x_100 = lean_array_get_size(x_3); +x_101 = lean_usize_of_nat(x_100); +x_102 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_103 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_101, x_102, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_99); +if (lean_obj_tag(x_103) == 0) +{ +uint8_t x_104; +lean_dec(x_100); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21738,134 +21884,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +x_104 = !lean_is_exclusive(x_103); +if (x_104 == 0) { -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -x_103 = l_Lean_mkAppN(x_95, x_102); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_103, 0); +x_106 = l_Lean_mkAppN(x_98, x_105); +lean_ctor_set(x_103, 0, x_106); +return x_103; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_100, 0); -x_105 = lean_ctor_get(x_100, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_100); -x_106 = l_Lean_mkAppN(x_95, 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_105); -return x_107; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_107 = lean_ctor_get(x_103, 0); +x_108 = lean_ctor_get(x_103, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_103); +x_109 = l_Lean_mkAppN(x_98, 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_108); +return x_110; } } else { -uint8_t x_108; -x_108 = !lean_is_exclusive(x_100); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_109 = lean_ctor_get(x_100, 0); -x_110 = lean_ctor_get(x_100, 1); -x_111 = l_Lean_Exception_isRuntime(x_109); +uint8_t x_111; +x_111 = !lean_is_exclusive(x_103); if (x_111 == 0) { -if (lean_obj_tag(x_109) == 0) -{ -lean_dec(x_97); -lean_dec(x_95); -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_1); -return x_100; -} -else -{ lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_112 = lean_ctor_get(x_109, 0); -lean_inc(x_112); -x_113 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_114 = lean_nat_dec_eq(x_113, x_112); -lean_dec(x_112); +x_112 = lean_ctor_get(x_103, 0); +x_113 = lean_ctor_get(x_103, 1); +x_114 = l_Lean_Exception_isInterrupt(x_112); if (x_114 == 0) { -lean_dec(x_97); -lean_dec(x_95); -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_1); -return x_100; -} -else -{ uint8_t x_115; -x_115 = l_Lean_Expr_isMVar(x_95); +x_115 = l_Lean_Exception_isRuntime(x_112); if (x_115 == 0) { -lean_dec(x_97); -lean_dec(x_95); -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_1); -return x_100; -} -else +if (lean_obj_tag(x_112) == 0) { -lean_object* x_116; lean_object* x_117; -lean_free_object(x_100); -x_116 = lean_box(0); -x_117 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_95, x_1, x_97, x_109, x_116, x_5, x_6, x_7, x_8, x_9, x_10, x_110); -return x_117; -} -} -} -} -else -{ -lean_dec(x_97); -lean_dec(x_95); -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_1); -return x_100; -} -} -else -{ -lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_118 = lean_ctor_get(x_100, 0); -x_119 = lean_ctor_get(x_100, 1); -lean_inc(x_119); -lean_inc(x_118); lean_dec(x_100); -x_120 = l_Lean_Exception_isRuntime(x_118); -if (x_120 == 0) -{ -if (lean_obj_tag(x_118) == 0) -{ -lean_object* x_121; -lean_dec(x_97); -lean_dec(x_95); +lean_dec(x_98); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21873,24 +21935,105 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); +return x_103; +} +else +{ +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_112, 0); +lean_inc(x_116); +x_117 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_118 = lean_nat_dec_eq(x_117, x_116); +lean_dec(x_116); +if (x_118 == 0) +{ +lean_dec(x_100); +lean_dec(x_98); +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_1); +return x_103; +} +else +{ +uint8_t x_119; +x_119 = l_Lean_Expr_isMVar(x_98); +if (x_119 == 0) +{ +lean_dec(x_100); +lean_dec(x_98); +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_1); +return x_103; +} +else +{ +lean_object* x_120; lean_object* x_121; +lean_free_object(x_103); +x_120 = lean_box(0); +x_121 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_98, x_1, x_100, x_112, x_120, x_5, x_6, x_7, x_8, x_9, x_10, x_113); return x_121; } +} +} +} +else +{ +lean_dec(x_100); +lean_dec(x_98); +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_1); +return x_103; +} +} +else +{ +lean_dec(x_100); +lean_dec(x_98); +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_1); +return x_103; +} +} else { lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_122 = lean_ctor_get(x_118, 0); +x_122 = lean_ctor_get(x_103, 0); +x_123 = lean_ctor_get(x_103, 1); +lean_inc(x_123); lean_inc(x_122); -x_123 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_124 = lean_nat_dec_eq(x_123, x_122); -lean_dec(x_122); +lean_dec(x_103); +x_124 = l_Lean_Exception_isInterrupt(x_122); if (x_124 == 0) { -lean_object* x_125; -lean_dec(x_97); -lean_dec(x_95); +uint8_t x_125; +x_125 = l_Lean_Exception_isRuntime(x_122); +if (x_125 == 0) +{ +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_126; +lean_dec(x_100); +lean_dec(x_98); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21898,47 +22041,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_118); -lean_ctor_set(x_125, 1, x_119); -return x_125; +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_122); +lean_ctor_set(x_126, 1, x_123); +return x_126; } else { -uint8_t x_126; -x_126 = l_Lean_Expr_isMVar(x_95); -if (x_126 == 0) -{ -lean_object* x_127; -lean_dec(x_97); -lean_dec(x_95); -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_1); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_118); -lean_ctor_set(x_127, 1, x_119); -return x_127; -} -else -{ -lean_object* x_128; lean_object* x_129; -x_128 = lean_box(0); -x_129 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_95, x_1, x_97, x_118, x_128, x_5, x_6, x_7, x_8, x_9, x_10, x_119); -return x_129; -} -} -} -} -else +lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_127 = lean_ctor_get(x_122, 0); +lean_inc(x_127); +x_128 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_129 = lean_nat_dec_eq(x_128, x_127); +lean_dec(x_127); +if (x_129 == 0) { lean_object* x_130; -lean_dec(x_97); -lean_dec(x_95); +lean_dec(x_100); +lean_dec(x_98); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21947,16 +22067,82 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_118); -lean_ctor_set(x_130, 1, x_119); +lean_ctor_set(x_130, 0, x_122); +lean_ctor_set(x_130, 1, x_123); return x_130; } +else +{ +uint8_t x_131; +x_131 = l_Lean_Expr_isMVar(x_98); +if (x_131 == 0) +{ +lean_object* x_132; +lean_dec(x_100); +lean_dec(x_98); +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_1); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_122); +lean_ctor_set(x_132, 1, x_123); +return x_132; +} +else +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_box(0); +x_134 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_98, x_1, x_100, x_122, x_133, x_5, x_6, x_7, x_8, x_9, x_10, x_123); +return x_134; +} } } } else { -uint8_t x_131; +lean_object* x_135; +lean_dec(x_100); +lean_dec(x_98); +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_1); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_122); +lean_ctor_set(x_135, 1, x_123); +return x_135; +} +} +else +{ +lean_object* x_136; +lean_dec(x_100); +lean_dec(x_98); +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_1); +x_136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_136, 0, x_122); +lean_ctor_set(x_136, 1, x_123); +return x_136; +} +} +} +} +else +{ +uint8_t x_137; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -21965,104 +22151,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_131 = !lean_is_exclusive(x_94); -if (x_131 == 0) +x_137 = !lean_is_exclusive(x_97); +if (x_137 == 0) { -return x_94; +return x_97; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_94, 0); -x_133 = lean_ctor_get(x_94, 1); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_94); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -return x_134; +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_97, 0); +x_139 = lean_ctor_get(x_97, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_97); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; } } } -block_159: +block_165: { -lean_object* x_137; -lean_dec(x_136); +lean_object* x_143; +lean_dec(x_142); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_137 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; size_t x_141; size_t x_142; lean_object* x_143; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec(x_137); -x_140 = lean_array_get_size(x_3); -x_141 = lean_usize_of_nat(x_140); -lean_dec(x_140); -x_142 = 0; -x_143 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_141, x_142, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_139); +x_143 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_143) == 0) { -uint8_t x_144; -x_144 = !lean_is_exclusive(x_143); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_143, 0); -x_146 = l_Lean_mkAppN(x_138, x_145); -lean_ctor_set(x_143, 0, x_146); -return x_143; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_147 = lean_ctor_get(x_143, 0); -x_148 = lean_ctor_get(x_143, 1); -lean_inc(x_148); -lean_inc(x_147); +lean_object* x_144; lean_object* x_145; lean_object* x_146; size_t x_147; size_t x_148; lean_object* x_149; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); lean_dec(x_143); -x_149 = l_Lean_mkAppN(x_138, x_147); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_148); -return x_150; -} +x_146 = lean_array_get_size(x_3); +x_147 = lean_usize_of_nat(x_146); +lean_dec(x_146); +x_148 = 0; +x_149 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_147, x_148, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_145); +if (lean_obj_tag(x_149) == 0) +{ +uint8_t x_150; +x_150 = !lean_is_exclusive(x_149); +if (x_150 == 0) +{ +lean_object* x_151; lean_object* x_152; +x_151 = lean_ctor_get(x_149, 0); +x_152 = l_Lean_mkAppN(x_144, x_151); +lean_ctor_set(x_149, 0, x_152); +return x_149; } else { -uint8_t x_151; -lean_dec(x_138); -x_151 = !lean_is_exclusive(x_143); -if (x_151 == 0) -{ -return x_143; -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_143, 0); -x_153 = lean_ctor_get(x_143, 1); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_153 = lean_ctor_get(x_149, 0); +x_154 = lean_ctor_get(x_149, 1); +lean_inc(x_154); lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_143); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; +lean_dec(x_149); +x_155 = l_Lean_mkAppN(x_144, x_153); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +return x_156; +} +} +else +{ +uint8_t x_157; +lean_dec(x_144); +x_157 = !lean_is_exclusive(x_149); +if (x_157 == 0) +{ +return x_149; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_149, 0); +x_159 = lean_ctor_get(x_149, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_149); +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_155; +uint8_t x_161; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22070,459 +22256,393 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_155 = !lean_is_exclusive(x_137); -if (x_155 == 0) +x_161 = !lean_is_exclusive(x_143); +if (x_161 == 0) { -return x_137; +return x_143; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_137, 0); -x_157 = lean_ctor_get(x_137, 1); -lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_137); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_143, 0); +x_163 = lean_ctor_get(x_143, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_143); +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; } } } } case 2: { -lean_object* x_174; lean_object* x_217; uint8_t x_241; +lean_object* x_180; lean_object* x_226; uint8_t x_250; lean_dec(x_4); -x_241 = l_Lean_Expr_isMVar(x_2); -if (x_241 == 0) +x_250 = l_Lean_Expr_isMVar(x_2); +if (x_250 == 0) { -lean_object* x_242; +lean_object* x_251; lean_dec(x_1); -x_242 = lean_box(0); -x_217 = x_242; -goto block_240; +x_251 = lean_box(0); +x_226 = x_251; +goto block_249; } else { -lean_object* x_243; uint8_t x_244; -x_243 = lean_ctor_get(x_7, 0); -lean_inc(x_243); -x_244 = lean_ctor_get_uint8(x_243, 1); -lean_dec(x_243); -if (x_244 == 0) -{ -lean_object* x_245; -lean_dec(x_1); -x_245 = lean_box(0); -x_217 = x_245; -goto block_240; -} -else -{ -lean_object* x_246; lean_object* x_247; uint8_t x_248; -x_246 = lean_array_get_size(x_3); -x_247 = lean_unsigned_to_nat(0u); -x_248 = lean_nat_dec_lt(x_247, x_246); -if (x_248 == 0) -{ -lean_object* x_249; -lean_dec(x_246); -x_249 = lean_box(0); -x_174 = x_249; -goto block_216; -} -else -{ -size_t x_250; size_t x_251; uint8_t x_252; -x_250 = 0; -x_251 = lean_usize_of_nat(x_246); -lean_dec(x_246); -x_252 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_250, x_251); -if (x_252 == 0) -{ -lean_object* x_253; -x_253 = lean_box(0); -x_174 = x_253; -goto block_216; -} -else +lean_object* x_252; uint8_t x_253; +x_252 = lean_ctor_get(x_7, 0); +lean_inc(x_252); +x_253 = lean_ctor_get_uint8(x_252, 1); +lean_dec(x_252); +if (x_253 == 0) { lean_object* x_254; lean_dec(x_1); x_254 = lean_box(0); -x_217 = x_254; -goto block_240; +x_226 = x_254; +goto block_249; } -} -} -} -block_216: +else { -lean_object* x_175; -lean_dec(x_174); +lean_object* x_255; lean_object* x_256; uint8_t x_257; +x_255 = lean_array_get_size(x_3); +x_256 = lean_unsigned_to_nat(0u); +x_257 = lean_nat_dec_lt(x_256, x_255); +if (x_257 == 0) +{ +lean_object* x_258; +lean_dec(x_255); +x_258 = lean_box(0); +x_180 = x_258; +goto block_225; +} +else +{ +size_t x_259; size_t x_260; uint8_t x_261; +x_259 = 0; +x_260 = lean_usize_of_nat(x_255); +lean_dec(x_255); +x_261 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_259, x_260); +if (x_261 == 0) +{ +lean_object* x_262; +x_262 = lean_box(0); +x_180 = x_262; +goto block_225; +} +else +{ +lean_object* x_263; +lean_dec(x_1); +x_263 = lean_box(0); +x_226 = x_263; +goto block_249; +} +} +} +} +block_225: +{ +lean_object* x_181; +lean_dec(x_180); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_175 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; size_t x_179; size_t x_180; lean_object* x_181; -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec(x_175); -x_178 = lean_array_get_size(x_3); -x_179 = lean_usize_of_nat(x_178); -x_180 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_181 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_179, x_180, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_177); +x_181 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_181) == 0) { -uint8_t x_182; -lean_dec(x_178); -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_1); -x_182 = !lean_is_exclusive(x_181); -if (x_182 == 0) -{ -lean_object* x_183; lean_object* x_184; -x_183 = lean_ctor_get(x_181, 0); -x_184 = l_Lean_mkAppN(x_176, x_183); -lean_ctor_set(x_181, 0, x_184); -return x_181; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_185 = lean_ctor_get(x_181, 0); -x_186 = lean_ctor_get(x_181, 1); -lean_inc(x_186); -lean_inc(x_185); +lean_object* x_182; lean_object* x_183; lean_object* x_184; size_t x_185; size_t x_186; lean_object* x_187; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); lean_dec(x_181); -x_187 = l_Lean_mkAppN(x_176, x_185); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -return x_188; -} -} -else -{ -uint8_t x_189; -x_189 = !lean_is_exclusive(x_181); -if (x_189 == 0) -{ -lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_190 = lean_ctor_get(x_181, 0); -x_191 = lean_ctor_get(x_181, 1); -x_192 = l_Lean_Exception_isRuntime(x_190); -if (x_192 == 0) -{ -if (lean_obj_tag(x_190) == 0) -{ -lean_dec(x_178); -lean_dec(x_176); -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_1); -return x_181; -} -else -{ -lean_object* x_193; lean_object* x_194; uint8_t x_195; -x_193 = lean_ctor_get(x_190, 0); -lean_inc(x_193); -x_194 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_195 = lean_nat_dec_eq(x_194, x_193); -lean_dec(x_193); -if (x_195 == 0) -{ -lean_dec(x_178); -lean_dec(x_176); -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_1); -return x_181; -} -else -{ -uint8_t x_196; -x_196 = l_Lean_Expr_isMVar(x_176); -if (x_196 == 0) -{ -lean_dec(x_178); -lean_dec(x_176); -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_1); -return x_181; -} -else -{ -lean_object* x_197; lean_object* x_198; -lean_free_object(x_181); -x_197 = lean_box(0); -x_198 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_176, x_1, x_178, x_190, x_197, x_5, x_6, x_7, x_8, x_9, x_10, x_191); -return x_198; -} -} -} -} -else -{ -lean_dec(x_178); -lean_dec(x_176); -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_1); -return x_181; -} -} -else -{ -lean_object* x_199; lean_object* x_200; uint8_t 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 = l_Lean_Exception_isRuntime(x_199); -if (x_201 == 0) -{ -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_202; -lean_dec(x_178); -lean_dec(x_176); -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_1); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_199); -lean_ctor_set(x_202, 1, x_200); -return x_202; -} -else -{ -lean_object* x_203; lean_object* x_204; uint8_t x_205; -x_203 = lean_ctor_get(x_199, 0); -lean_inc(x_203); -x_204 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_205 = lean_nat_dec_eq(x_204, x_203); -lean_dec(x_203); -if (x_205 == 0) -{ -lean_object* x_206; -lean_dec(x_178); -lean_dec(x_176); -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_1); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_199); -lean_ctor_set(x_206, 1, x_200); -return x_206; -} -else -{ -uint8_t x_207; -x_207 = l_Lean_Expr_isMVar(x_176); -if (x_207 == 0) -{ -lean_object* x_208; -lean_dec(x_178); -lean_dec(x_176); -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_1); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_199); -lean_ctor_set(x_208, 1, x_200); -return x_208; -} -else -{ -lean_object* x_209; lean_object* x_210; -x_209 = lean_box(0); -x_210 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_176, x_1, x_178, x_199, x_209, x_5, x_6, x_7, x_8, x_9, x_10, x_200); -return x_210; -} -} -} -} -else -{ -lean_object* x_211; -lean_dec(x_178); -lean_dec(x_176); -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_1); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_199); -lean_ctor_set(x_211, 1, x_200); -return x_211; -} -} -} -} -else -{ -uint8_t x_212; -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_3); -lean_dec(x_1); -x_212 = !lean_is_exclusive(x_175); -if (x_212 == 0) -{ -return x_175; -} -else -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_175, 0); -x_214 = lean_ctor_get(x_175, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_175); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; -} -} -} -block_240: -{ -lean_object* x_218; -lean_dec(x_217); +x_184 = lean_array_get_size(x_3); +x_185 = lean_usize_of_nat(x_184); +x_186 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_218 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_218) == 0) +x_187 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_185, x_186, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_183); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_219; lean_object* x_220; lean_object* x_221; size_t x_222; size_t x_223; lean_object* x_224; -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_array_get_size(x_3); -x_222 = lean_usize_of_nat(x_221); -lean_dec(x_221); -x_223 = 0; -x_224 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_222, x_223, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_220); -if (lean_obj_tag(x_224) == 0) +uint8_t x_188; +lean_dec(x_184); +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_1); +x_188 = !lean_is_exclusive(x_187); +if (x_188 == 0) { -uint8_t x_225; -x_225 = !lean_is_exclusive(x_224); -if (x_225 == 0) -{ -lean_object* x_226; lean_object* x_227; -x_226 = lean_ctor_get(x_224, 0); -x_227 = l_Lean_mkAppN(x_219, x_226); -lean_ctor_set(x_224, 0, x_227); -return x_224; +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_187, 0); +x_190 = l_Lean_mkAppN(x_182, x_189); +lean_ctor_set(x_187, 0, x_190); +return x_187; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_228 = lean_ctor_get(x_224, 0); -x_229 = lean_ctor_get(x_224, 1); -lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_224); -x_230 = l_Lean_mkAppN(x_219, x_228); -x_231 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_229); -return x_231; +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_191 = lean_ctor_get(x_187, 0); +x_192 = lean_ctor_get(x_187, 1); +lean_inc(x_192); +lean_inc(x_191); +lean_dec(x_187); +x_193 = l_Lean_mkAppN(x_182, x_191); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +return x_194; } } else { -uint8_t x_232; -lean_dec(x_219); -x_232 = !lean_is_exclusive(x_224); -if (x_232 == 0) +uint8_t x_195; +x_195 = !lean_is_exclusive(x_187); +if (x_195 == 0) { -return x_224; +lean_object* x_196; lean_object* x_197; uint8_t x_198; +x_196 = lean_ctor_get(x_187, 0); +x_197 = lean_ctor_get(x_187, 1); +x_198 = l_Lean_Exception_isInterrupt(x_196); +if (x_198 == 0) +{ +uint8_t x_199; +x_199 = l_Lean_Exception_isRuntime(x_196); +if (x_199 == 0) +{ +if (lean_obj_tag(x_196) == 0) +{ +lean_dec(x_184); +lean_dec(x_182); +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_1); +return x_187; } else { -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_224, 0); -x_234 = lean_ctor_get(x_224, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_224); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -return x_235; +lean_object* x_200; lean_object* x_201; uint8_t x_202; +x_200 = lean_ctor_get(x_196, 0); +lean_inc(x_200); +x_201 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_202 = lean_nat_dec_eq(x_201, x_200); +lean_dec(x_200); +if (x_202 == 0) +{ +lean_dec(x_184); +lean_dec(x_182); +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_1); +return x_187; +} +else +{ +uint8_t x_203; +x_203 = l_Lean_Expr_isMVar(x_182); +if (x_203 == 0) +{ +lean_dec(x_184); +lean_dec(x_182); +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_1); +return x_187; +} +else +{ +lean_object* x_204; lean_object* x_205; +lean_free_object(x_187); +x_204 = lean_box(0); +x_205 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_182, x_1, x_184, x_196, x_204, x_5, x_6, x_7, x_8, x_9, x_10, x_197); +return x_205; +} } } } else { -uint8_t x_236; +lean_dec(x_184); +lean_dec(x_182); +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_1); +return x_187; +} +} +else +{ +lean_dec(x_184); +lean_dec(x_182); +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_1); +return x_187; +} +} +else +{ +lean_object* x_206; lean_object* x_207; uint8_t x_208; +x_206 = lean_ctor_get(x_187, 0); +x_207 = lean_ctor_get(x_187, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_187); +x_208 = l_Lean_Exception_isInterrupt(x_206); +if (x_208 == 0) +{ +uint8_t x_209; +x_209 = l_Lean_Exception_isRuntime(x_206); +if (x_209 == 0) +{ +if (lean_obj_tag(x_206) == 0) +{ +lean_object* x_210; +lean_dec(x_184); +lean_dec(x_182); +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_1); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_206); +lean_ctor_set(x_210, 1, x_207); +return x_210; +} +else +{ +lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_211 = lean_ctor_get(x_206, 0); +lean_inc(x_211); +x_212 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_213 = lean_nat_dec_eq(x_212, x_211); +lean_dec(x_211); +if (x_213 == 0) +{ +lean_object* x_214; +lean_dec(x_184); +lean_dec(x_182); +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_1); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_206); +lean_ctor_set(x_214, 1, x_207); +return x_214; +} +else +{ +uint8_t x_215; +x_215 = l_Lean_Expr_isMVar(x_182); +if (x_215 == 0) +{ +lean_object* x_216; +lean_dec(x_184); +lean_dec(x_182); +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_1); +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_206); +lean_ctor_set(x_216, 1, x_207); +return x_216; +} +else +{ +lean_object* x_217; lean_object* x_218; +x_217 = lean_box(0); +x_218 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_182, x_1, x_184, x_206, x_217, x_5, x_6, x_7, x_8, x_9, x_10, x_207); +return x_218; +} +} +} +} +else +{ +lean_object* x_219; +lean_dec(x_184); +lean_dec(x_182); +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_1); +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_206); +lean_ctor_set(x_219, 1, x_207); +return x_219; +} +} +else +{ +lean_object* x_220; +lean_dec(x_184); +lean_dec(x_182); +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_1); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_206); +lean_ctor_set(x_220, 1, x_207); +return x_220; +} +} +} +} +else +{ +uint8_t x_221; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22530,174 +22650,233 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_236 = !lean_is_exclusive(x_218); -if (x_236 == 0) +lean_dec(x_1); +x_221 = !lean_is_exclusive(x_181); +if (x_221 == 0) { -return x_218; +return x_181; } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_237 = lean_ctor_get(x_218, 0); -x_238 = lean_ctor_get(x_218, 1); +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_181, 0); +x_223 = lean_ctor_get(x_181, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_181); +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set(x_224, 1, x_223); +return x_224; +} +} +} +block_249: +{ +lean_object* x_227; +lean_dec(x_226); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_227 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_227) == 0) +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; size_t x_231; size_t x_232; lean_object* x_233; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +lean_dec(x_227); +x_230 = lean_array_get_size(x_3); +x_231 = lean_usize_of_nat(x_230); +lean_dec(x_230); +x_232 = 0; +x_233 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_231, x_232, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_229); +if (lean_obj_tag(x_233) == 0) +{ +uint8_t x_234; +x_234 = !lean_is_exclusive(x_233); +if (x_234 == 0) +{ +lean_object* x_235; lean_object* x_236; +x_235 = lean_ctor_get(x_233, 0); +x_236 = l_Lean_mkAppN(x_228, x_235); +lean_ctor_set(x_233, 0, x_236); +return x_233; +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_237 = lean_ctor_get(x_233, 0); +x_238 = lean_ctor_get(x_233, 1); lean_inc(x_238); lean_inc(x_237); -lean_dec(x_218); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -return x_239; +lean_dec(x_233); +x_239 = l_Lean_mkAppN(x_228, 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_238); +return x_240; +} +} +else +{ +uint8_t x_241; +lean_dec(x_228); +x_241 = !lean_is_exclusive(x_233); +if (x_241 == 0) +{ +return x_233; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_233, 0); +x_243 = lean_ctor_get(x_233, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_233); +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 +{ +uint8_t x_245; +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_3); +x_245 = !lean_is_exclusive(x_227); +if (x_245 == 0) +{ +return x_227; +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_246 = lean_ctor_get(x_227, 0); +x_247 = lean_ctor_get(x_227, 1); +lean_inc(x_247); +lean_inc(x_246); +lean_dec(x_227); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_246); +lean_ctor_set(x_248, 1, x_247); +return x_248; } } } } case 3: { -lean_object* x_255; lean_object* x_298; uint8_t x_322; +lean_object* x_264; lean_object* x_310; uint8_t x_334; lean_dec(x_4); -x_322 = l_Lean_Expr_isMVar(x_2); -if (x_322 == 0) -{ -lean_object* x_323; -lean_dec(x_1); -x_323 = lean_box(0); -x_298 = x_323; -goto block_321; -} -else -{ -lean_object* x_324; uint8_t x_325; -x_324 = lean_ctor_get(x_7, 0); -lean_inc(x_324); -x_325 = lean_ctor_get_uint8(x_324, 1); -lean_dec(x_324); -if (x_325 == 0) -{ -lean_object* x_326; -lean_dec(x_1); -x_326 = lean_box(0); -x_298 = x_326; -goto block_321; -} -else -{ -lean_object* x_327; lean_object* x_328; uint8_t x_329; -x_327 = lean_array_get_size(x_3); -x_328 = lean_unsigned_to_nat(0u); -x_329 = lean_nat_dec_lt(x_328, x_327); -if (x_329 == 0) -{ -lean_object* x_330; -lean_dec(x_327); -x_330 = lean_box(0); -x_255 = x_330; -goto block_297; -} -else -{ -size_t x_331; size_t x_332; uint8_t x_333; -x_331 = 0; -x_332 = lean_usize_of_nat(x_327); -lean_dec(x_327); -x_333 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_331, x_332); -if (x_333 == 0) -{ -lean_object* x_334; -x_334 = lean_box(0); -x_255 = x_334; -goto block_297; -} -else +x_334 = l_Lean_Expr_isMVar(x_2); +if (x_334 == 0) { lean_object* x_335; lean_dec(x_1); x_335 = lean_box(0); -x_298 = x_335; -goto block_321; +x_310 = x_335; +goto block_333; } -} -} -} -block_297: +else { -lean_object* x_256; -lean_dec(x_255); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_256 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_256) == 0) +lean_object* x_336; uint8_t x_337; +x_336 = lean_ctor_get(x_7, 0); +lean_inc(x_336); +x_337 = lean_ctor_get_uint8(x_336, 1); +lean_dec(x_336); +if (x_337 == 0) { -lean_object* x_257; lean_object* x_258; lean_object* x_259; size_t x_260; size_t x_261; lean_object* x_262; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = lean_array_get_size(x_3); -x_260 = lean_usize_of_nat(x_259); -x_261 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_262 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_260, x_261, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_258); -if (lean_obj_tag(x_262) == 0) -{ -uint8_t x_263; -lean_dec(x_259); -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_object* x_338; lean_dec(x_1); -x_263 = !lean_is_exclusive(x_262); -if (x_263 == 0) -{ -lean_object* x_264; lean_object* x_265; -x_264 = lean_ctor_get(x_262, 0); -x_265 = l_Lean_mkAppN(x_257, x_264); -lean_ctor_set(x_262, 0, x_265); -return x_262; +x_338 = lean_box(0); +x_310 = x_338; +goto block_333; } else { -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_266 = lean_ctor_get(x_262, 0); -x_267 = lean_ctor_get(x_262, 1); -lean_inc(x_267); +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_array_get_size(x_3); +x_340 = lean_unsigned_to_nat(0u); +x_341 = lean_nat_dec_lt(x_340, x_339); +if (x_341 == 0) +{ +lean_object* x_342; +lean_dec(x_339); +x_342 = lean_box(0); +x_264 = x_342; +goto block_309; +} +else +{ +size_t x_343; size_t x_344; uint8_t x_345; +x_343 = 0; +x_344 = lean_usize_of_nat(x_339); +lean_dec(x_339); +x_345 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_343, x_344); +if (x_345 == 0) +{ +lean_object* x_346; +x_346 = lean_box(0); +x_264 = x_346; +goto block_309; +} +else +{ +lean_object* x_347; +lean_dec(x_1); +x_347 = lean_box(0); +x_310 = x_347; +goto block_333; +} +} +} +} +block_309: +{ +lean_object* x_265; +lean_dec(x_264); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_265 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; size_t x_269; size_t x_270; lean_object* x_271; +x_266 = lean_ctor_get(x_265, 0); lean_inc(x_266); -lean_dec(x_262); -x_268 = l_Lean_mkAppN(x_257, x_266); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_267); -return x_269; -} -} -else -{ -uint8_t x_270; -x_270 = !lean_is_exclusive(x_262); -if (x_270 == 0) -{ -lean_object* x_271; lean_object* x_272; uint8_t x_273; -x_271 = lean_ctor_get(x_262, 0); -x_272 = lean_ctor_get(x_262, 1); -x_273 = l_Lean_Exception_isRuntime(x_271); -if (x_273 == 0) -{ +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +lean_dec(x_265); +x_268 = lean_array_get_size(x_3); +x_269 = lean_usize_of_nat(x_268); +x_270 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_271 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_269, x_270, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_267); if (lean_obj_tag(x_271) == 0) { -lean_dec(x_259); -lean_dec(x_257); +uint8_t x_272; +lean_dec(x_268); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22705,87 +22884,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_262; +x_272 = !lean_is_exclusive(x_271); +if (x_272 == 0) +{ +lean_object* x_273; lean_object* x_274; +x_273 = lean_ctor_get(x_271, 0); +x_274 = l_Lean_mkAppN(x_266, x_273); +lean_ctor_set(x_271, 0, x_274); +return x_271; } else { -lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_274 = lean_ctor_get(x_271, 0); -lean_inc(x_274); -x_275 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_276 = lean_nat_dec_eq(x_275, x_274); -lean_dec(x_274); -if (x_276 == 0) -{ -lean_dec(x_259); -lean_dec(x_257); -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_1); -return x_262; -} -else -{ -uint8_t x_277; -x_277 = l_Lean_Expr_isMVar(x_257); -if (x_277 == 0) -{ -lean_dec(x_259); -lean_dec(x_257); -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_1); -return x_262; -} -else -{ -lean_object* x_278; lean_object* x_279; -lean_free_object(x_262); -x_278 = lean_box(0); -x_279 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_257, x_1, x_259, x_271, x_278, x_5, x_6, x_7, x_8, x_9, x_10, x_272); -return x_279; -} -} +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_275 = lean_ctor_get(x_271, 0); +x_276 = lean_ctor_get(x_271, 1); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_271); +x_277 = l_Lean_mkAppN(x_266, x_275); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_276); +return x_278; } } else { -lean_dec(x_259); -lean_dec(x_257); -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_1); -return x_262; -} -} -else +uint8_t x_279; +x_279 = !lean_is_exclusive(x_271); +if (x_279 == 0) { lean_object* x_280; lean_object* x_281; uint8_t x_282; -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 = l_Lean_Exception_isRuntime(x_280); +x_280 = lean_ctor_get(x_271, 0); +x_281 = lean_ctor_get(x_271, 1); +x_282 = l_Lean_Exception_isInterrupt(x_280); if (x_282 == 0) { +uint8_t x_283; +x_283 = l_Lean_Exception_isRuntime(x_280); +if (x_283 == 0) +{ if (lean_obj_tag(x_280) == 0) { -lean_object* x_283; -lean_dec(x_259); -lean_dec(x_257); +lean_dec(x_268); +lean_dec(x_266); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22793,10 +22935,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_283 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_283, 0, x_280); -lean_ctor_set(x_283, 1, x_281); -return x_283; +return x_271; } else { @@ -22808,9 +22947,8 @@ x_286 = lean_nat_dec_eq(x_285, x_284); lean_dec(x_284); if (x_286 == 0) { -lean_object* x_287; -lean_dec(x_259); -lean_dec(x_257); +lean_dec(x_268); +lean_dec(x_266); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22818,20 +22956,16 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_287 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_287, 0, x_280); -lean_ctor_set(x_287, 1, x_281); -return x_287; +return x_271; } else { -uint8_t x_288; -x_288 = l_Lean_Expr_isMVar(x_257); -if (x_288 == 0) +uint8_t x_287; +x_287 = l_Lean_Expr_isMVar(x_266); +if (x_287 == 0) { -lean_object* x_289; -lean_dec(x_259); -lean_dec(x_257); +lean_dec(x_268); +lean_dec(x_266); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22839,26 +22973,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_280); -lean_ctor_set(x_289, 1, x_281); +return x_271; +} +else +{ +lean_object* x_288; lean_object* x_289; +lean_free_object(x_271); +x_288 = lean_box(0); +x_289 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_266, x_1, x_268, x_280, x_288, x_5, x_6, x_7, x_8, x_9, x_10, x_281); return x_289; } -else -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_box(0); -x_291 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_257, x_1, x_259, x_280, x_290, x_5, x_6, x_7, x_8, x_9, x_10, x_281); -return x_291; -} } } } else { -lean_object* x_292; -lean_dec(x_259); -lean_dec(x_257); +lean_dec(x_268); +lean_dec(x_266); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22866,17 +22997,152 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_280); -lean_ctor_set(x_292, 1, x_281); -return x_292; +return x_271; +} +} +else +{ +lean_dec(x_268); +lean_dec(x_266); +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_1); +return x_271; +} +} +else +{ +lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_290 = lean_ctor_get(x_271, 0); +x_291 = lean_ctor_get(x_271, 1); +lean_inc(x_291); +lean_inc(x_290); +lean_dec(x_271); +x_292 = l_Lean_Exception_isInterrupt(x_290); +if (x_292 == 0) +{ +uint8_t x_293; +x_293 = l_Lean_Exception_isRuntime(x_290); +if (x_293 == 0) +{ +if (lean_obj_tag(x_290) == 0) +{ +lean_object* x_294; +lean_dec(x_268); +lean_dec(x_266); +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_1); +x_294 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_294, 0, x_290); +lean_ctor_set(x_294, 1, x_291); +return x_294; +} +else +{ +lean_object* x_295; lean_object* x_296; uint8_t x_297; +x_295 = lean_ctor_get(x_290, 0); +lean_inc(x_295); +x_296 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_297 = lean_nat_dec_eq(x_296, x_295); +lean_dec(x_295); +if (x_297 == 0) +{ +lean_object* x_298; +lean_dec(x_268); +lean_dec(x_266); +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_1); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_290); +lean_ctor_set(x_298, 1, x_291); +return x_298; +} +else +{ +uint8_t x_299; +x_299 = l_Lean_Expr_isMVar(x_266); +if (x_299 == 0) +{ +lean_object* x_300; +lean_dec(x_268); +lean_dec(x_266); +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_1); +x_300 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_300, 0, x_290); +lean_ctor_set(x_300, 1, x_291); +return x_300; +} +else +{ +lean_object* x_301; lean_object* x_302; +x_301 = lean_box(0); +x_302 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_266, x_1, x_268, x_290, x_301, x_5, x_6, x_7, x_8, x_9, x_10, x_291); +return x_302; } } } } else { -uint8_t x_293; +lean_object* x_303; +lean_dec(x_268); +lean_dec(x_266); +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_1); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_290); +lean_ctor_set(x_303, 1, x_291); +return x_303; +} +} +else +{ +lean_object* x_304; +lean_dec(x_268); +lean_dec(x_266); +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_1); +x_304 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_304, 0, x_290); +lean_ctor_set(x_304, 1, x_291); +return x_304; +} +} +} +} +else +{ +uint8_t x_305; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22885,104 +23151,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_293 = !lean_is_exclusive(x_256); -if (x_293 == 0) +x_305 = !lean_is_exclusive(x_265); +if (x_305 == 0) { -return x_256; +return x_265; } else { -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_256, 0); -x_295 = lean_ctor_get(x_256, 1); -lean_inc(x_295); -lean_inc(x_294); -lean_dec(x_256); -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_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_265, 0); +x_307 = lean_ctor_get(x_265, 1); +lean_inc(x_307); +lean_inc(x_306); +lean_dec(x_265); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_306); +lean_ctor_set(x_308, 1, x_307); +return x_308; } } } -block_321: +block_333: { -lean_object* x_299; -lean_dec(x_298); +lean_object* x_311; +lean_dec(x_310); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_299 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_299) == 0) +x_311 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_300; lean_object* x_301; lean_object* x_302; size_t x_303; size_t x_304; lean_object* x_305; -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_array_get_size(x_3); -x_303 = lean_usize_of_nat(x_302); -lean_dec(x_302); -x_304 = 0; -x_305 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_303, x_304, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_301); -if (lean_obj_tag(x_305) == 0) +lean_object* x_312; lean_object* x_313; lean_object* x_314; size_t x_315; size_t x_316; lean_object* x_317; +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +lean_dec(x_311); +x_314 = lean_array_get_size(x_3); +x_315 = lean_usize_of_nat(x_314); +lean_dec(x_314); +x_316 = 0; +x_317 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_315, x_316, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_313); +if (lean_obj_tag(x_317) == 0) { -uint8_t x_306; -x_306 = !lean_is_exclusive(x_305); -if (x_306 == 0) +uint8_t x_318; +x_318 = !lean_is_exclusive(x_317); +if (x_318 == 0) { -lean_object* x_307; lean_object* x_308; -x_307 = lean_ctor_get(x_305, 0); -x_308 = l_Lean_mkAppN(x_300, x_307); -lean_ctor_set(x_305, 0, x_308); -return x_305; +lean_object* x_319; lean_object* x_320; +x_319 = lean_ctor_get(x_317, 0); +x_320 = l_Lean_mkAppN(x_312, x_319); +lean_ctor_set(x_317, 0, x_320); +return x_317; } else { -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_309 = lean_ctor_get(x_305, 0); -x_310 = lean_ctor_get(x_305, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_305); -x_311 = l_Lean_mkAppN(x_300, x_309); -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_310); -return x_312; +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_321 = lean_ctor_get(x_317, 0); +x_322 = lean_ctor_get(x_317, 1); +lean_inc(x_322); +lean_inc(x_321); +lean_dec(x_317); +x_323 = l_Lean_mkAppN(x_312, x_321); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_322); +return x_324; } } else { -uint8_t x_313; -lean_dec(x_300); -x_313 = !lean_is_exclusive(x_305); -if (x_313 == 0) +uint8_t x_325; +lean_dec(x_312); +x_325 = !lean_is_exclusive(x_317); +if (x_325 == 0) { -return x_305; +return x_317; } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_314 = lean_ctor_get(x_305, 0); -x_315 = lean_ctor_get(x_305, 1); -lean_inc(x_315); -lean_inc(x_314); -lean_dec(x_305); -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_314); -lean_ctor_set(x_316, 1, x_315); -return x_316; +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_317, 0); +x_327 = lean_ctor_get(x_317, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_317); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; } } } else { -uint8_t x_317; +uint8_t x_329; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -22990,127 +23256,127 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_317 = !lean_is_exclusive(x_299); -if (x_317 == 0) +x_329 = !lean_is_exclusive(x_311); +if (x_329 == 0) { -return x_299; +return x_311; } else { -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_299, 0); -x_319 = lean_ctor_get(x_299, 1); -lean_inc(x_319); -lean_inc(x_318); -lean_dec(x_299); -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_318); -lean_ctor_set(x_320, 1, x_319); -return x_320; +lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_330 = lean_ctor_get(x_311, 0); +x_331 = lean_ctor_get(x_311, 1); +lean_inc(x_331); +lean_inc(x_330); +lean_dec(x_311); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_330); +lean_ctor_set(x_332, 1, x_331); +return x_332; } } } } case 4: { -lean_object* x_336; lean_object* x_379; uint8_t x_403; +lean_object* x_348; lean_object* x_394; uint8_t x_418; lean_dec(x_4); -x_403 = l_Lean_Expr_isMVar(x_2); -if (x_403 == 0) +x_418 = l_Lean_Expr_isMVar(x_2); +if (x_418 == 0) { -lean_object* x_404; +lean_object* x_419; lean_dec(x_1); -x_404 = lean_box(0); -x_379 = x_404; -goto block_402; +x_419 = lean_box(0); +x_394 = x_419; +goto block_417; } else { -lean_object* x_405; uint8_t x_406; -x_405 = lean_ctor_get(x_7, 0); -lean_inc(x_405); -x_406 = lean_ctor_get_uint8(x_405, 1); -lean_dec(x_405); -if (x_406 == 0) +lean_object* x_420; uint8_t x_421; +x_420 = lean_ctor_get(x_7, 0); +lean_inc(x_420); +x_421 = lean_ctor_get_uint8(x_420, 1); +lean_dec(x_420); +if (x_421 == 0) { -lean_object* x_407; +lean_object* x_422; lean_dec(x_1); -x_407 = lean_box(0); -x_379 = x_407; -goto block_402; +x_422 = lean_box(0); +x_394 = x_422; +goto block_417; } else { -lean_object* x_408; lean_object* x_409; uint8_t x_410; -x_408 = lean_array_get_size(x_3); -x_409 = lean_unsigned_to_nat(0u); -x_410 = lean_nat_dec_lt(x_409, x_408); -if (x_410 == 0) +lean_object* x_423; lean_object* x_424; uint8_t x_425; +x_423 = lean_array_get_size(x_3); +x_424 = lean_unsigned_to_nat(0u); +x_425 = lean_nat_dec_lt(x_424, x_423); +if (x_425 == 0) { -lean_object* x_411; -lean_dec(x_408); -x_411 = lean_box(0); -x_336 = x_411; -goto block_378; +lean_object* x_426; +lean_dec(x_423); +x_426 = lean_box(0); +x_348 = x_426; +goto block_393; } else { -size_t x_412; size_t x_413; uint8_t x_414; -x_412 = 0; -x_413 = lean_usize_of_nat(x_408); -lean_dec(x_408); -x_414 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_412, x_413); -if (x_414 == 0) +size_t x_427; size_t x_428; uint8_t x_429; +x_427 = 0; +x_428 = lean_usize_of_nat(x_423); +lean_dec(x_423); +x_429 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_427, x_428); +if (x_429 == 0) { -lean_object* x_415; -x_415 = lean_box(0); -x_336 = x_415; -goto block_378; +lean_object* x_430; +x_430 = lean_box(0); +x_348 = x_430; +goto block_393; } else { -lean_object* x_416; +lean_object* x_431; lean_dec(x_1); -x_416 = lean_box(0); -x_379 = x_416; -goto block_402; +x_431 = lean_box(0); +x_394 = x_431; +goto block_417; } } } } -block_378: +block_393: { -lean_object* x_337; -lean_dec(x_336); +lean_object* x_349; +lean_dec(x_348); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_337 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_337) == 0) +x_349 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_349) == 0) { -lean_object* x_338; lean_object* x_339; lean_object* x_340; size_t x_341; size_t x_342; lean_object* x_343; -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_337); -x_340 = lean_array_get_size(x_3); -x_341 = lean_usize_of_nat(x_340); -x_342 = 0; +lean_object* x_350; lean_object* x_351; lean_object* x_352; size_t x_353; size_t x_354; lean_object* x_355; +x_350 = lean_ctor_get(x_349, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_349, 1); +lean_inc(x_351); +lean_dec(x_349); +x_352 = lean_array_get_size(x_3); +x_353 = lean_usize_of_nat(x_352); +x_354 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_343 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_341, x_342, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_339); -if (lean_obj_tag(x_343) == 0) +x_355 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_353, x_354, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_351); +if (lean_obj_tag(x_355) == 0) { -uint8_t x_344; -lean_dec(x_340); +uint8_t x_356; +lean_dec(x_352); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23118,159 +23384,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_344 = !lean_is_exclusive(x_343); -if (x_344 == 0) +x_356 = !lean_is_exclusive(x_355); +if (x_356 == 0) { -lean_object* x_345; lean_object* x_346; -x_345 = lean_ctor_get(x_343, 0); -x_346 = l_Lean_mkAppN(x_338, x_345); -lean_ctor_set(x_343, 0, x_346); -return x_343; +lean_object* x_357; lean_object* x_358; +x_357 = lean_ctor_get(x_355, 0); +x_358 = l_Lean_mkAppN(x_350, x_357); +lean_ctor_set(x_355, 0, x_358); +return x_355; } else { -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_347 = lean_ctor_get(x_343, 0); -x_348 = lean_ctor_get(x_343, 1); -lean_inc(x_348); -lean_inc(x_347); -lean_dec(x_343); -x_349 = l_Lean_mkAppN(x_338, x_347); -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_348); -return x_350; -} -} -else -{ -uint8_t x_351; -x_351 = !lean_is_exclusive(x_343); -if (x_351 == 0) -{ -lean_object* x_352; lean_object* x_353; uint8_t x_354; -x_352 = lean_ctor_get(x_343, 0); -x_353 = lean_ctor_get(x_343, 1); -x_354 = l_Lean_Exception_isRuntime(x_352); -if (x_354 == 0) -{ -if (lean_obj_tag(x_352) == 0) -{ -lean_dec(x_340); -lean_dec(x_338); -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_1); -return x_343; -} -else -{ -lean_object* x_355; lean_object* x_356; uint8_t x_357; -x_355 = lean_ctor_get(x_352, 0); -lean_inc(x_355); -x_356 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_357 = lean_nat_dec_eq(x_356, x_355); +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +x_359 = lean_ctor_get(x_355, 0); +x_360 = lean_ctor_get(x_355, 1); +lean_inc(x_360); +lean_inc(x_359); lean_dec(x_355); -if (x_357 == 0) -{ -lean_dec(x_340); -lean_dec(x_338); -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_1); -return x_343; -} -else -{ -uint8_t x_358; -x_358 = l_Lean_Expr_isMVar(x_338); -if (x_358 == 0) -{ -lean_dec(x_340); -lean_dec(x_338); -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_1); -return x_343; -} -else -{ -lean_object* x_359; lean_object* x_360; -lean_free_object(x_343); -x_359 = lean_box(0); -x_360 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_338, x_1, x_340, x_352, x_359, x_5, x_6, x_7, x_8, x_9, x_10, x_353); -return x_360; -} -} +x_361 = l_Lean_mkAppN(x_350, x_359); +x_362 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_360); +return x_362; } } else { -lean_dec(x_340); -lean_dec(x_338); -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_1); -return x_343; -} -} -else -{ -lean_object* x_361; lean_object* x_362; uint8_t x_363; -x_361 = lean_ctor_get(x_343, 0); -x_362 = lean_ctor_get(x_343, 1); -lean_inc(x_362); -lean_inc(x_361); -lean_dec(x_343); -x_363 = l_Lean_Exception_isRuntime(x_361); +uint8_t x_363; +x_363 = !lean_is_exclusive(x_355); if (x_363 == 0) { -if (lean_obj_tag(x_361) == 0) +lean_object* x_364; lean_object* x_365; uint8_t x_366; +x_364 = lean_ctor_get(x_355, 0); +x_365 = lean_ctor_get(x_355, 1); +x_366 = l_Lean_Exception_isInterrupt(x_364); +if (x_366 == 0) { -lean_object* x_364; -lean_dec(x_340); -lean_dec(x_338); -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_1); -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_361); -lean_ctor_set(x_364, 1, x_362); -return x_364; -} -else -{ -lean_object* x_365; lean_object* x_366; uint8_t x_367; -x_365 = lean_ctor_get(x_361, 0); -lean_inc(x_365); -x_366 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_367 = lean_nat_dec_eq(x_366, x_365); -lean_dec(x_365); +uint8_t x_367; +x_367 = l_Lean_Exception_isRuntime(x_364); if (x_367 == 0) { -lean_object* x_368; -lean_dec(x_340); -lean_dec(x_338); +if (lean_obj_tag(x_364) == 0) +{ +lean_dec(x_352); +lean_dec(x_350); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23278,20 +23435,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_368, 0, x_361); -lean_ctor_set(x_368, 1, x_362); -return x_368; +return x_355; } else { -uint8_t x_369; -x_369 = l_Lean_Expr_isMVar(x_338); -if (x_369 == 0) +lean_object* x_368; lean_object* x_369; uint8_t x_370; +x_368 = lean_ctor_get(x_364, 0); +lean_inc(x_368); +x_369 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_370 = lean_nat_dec_eq(x_369, x_368); +lean_dec(x_368); +if (x_370 == 0) { -lean_object* x_370; -lean_dec(x_340); -lean_dec(x_338); +lean_dec(x_352); +lean_dec(x_350); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23299,26 +23456,16 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_361); -lean_ctor_set(x_370, 1, x_362); -return x_370; +return x_355; } else { -lean_object* x_371; lean_object* x_372; -x_371 = lean_box(0); -x_372 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_338, x_1, x_340, x_361, x_371, x_5, x_6, x_7, x_8, x_9, x_10, x_362); -return x_372; -} -} -} -} -else +uint8_t x_371; +x_371 = l_Lean_Expr_isMVar(x_350); +if (x_371 == 0) { -lean_object* x_373; -lean_dec(x_340); -lean_dec(x_338); +lean_dec(x_352); +lean_dec(x_350); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23326,9 +23473,14 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_373 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_373, 0, x_361); -lean_ctor_set(x_373, 1, x_362); +return x_355; +} +else +{ +lean_object* x_372; lean_object* x_373; +lean_free_object(x_355); +x_372 = lean_box(0); +x_373 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_350, x_1, x_352, x_364, x_372, x_5, x_6, x_7, x_8, x_9, x_10, x_365); return x_373; } } @@ -23336,7 +23488,161 @@ return x_373; } else { -uint8_t x_374; +lean_dec(x_352); +lean_dec(x_350); +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_1); +return x_355; +} +} +else +{ +lean_dec(x_352); +lean_dec(x_350); +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_1); +return x_355; +} +} +else +{ +lean_object* x_374; lean_object* x_375; uint8_t x_376; +x_374 = lean_ctor_get(x_355, 0); +x_375 = lean_ctor_get(x_355, 1); +lean_inc(x_375); +lean_inc(x_374); +lean_dec(x_355); +x_376 = l_Lean_Exception_isInterrupt(x_374); +if (x_376 == 0) +{ +uint8_t x_377; +x_377 = l_Lean_Exception_isRuntime(x_374); +if (x_377 == 0) +{ +if (lean_obj_tag(x_374) == 0) +{ +lean_object* x_378; +lean_dec(x_352); +lean_dec(x_350); +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_1); +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_374); +lean_ctor_set(x_378, 1, x_375); +return x_378; +} +else +{ +lean_object* x_379; lean_object* x_380; uint8_t x_381; +x_379 = lean_ctor_get(x_374, 0); +lean_inc(x_379); +x_380 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_381 = lean_nat_dec_eq(x_380, x_379); +lean_dec(x_379); +if (x_381 == 0) +{ +lean_object* x_382; +lean_dec(x_352); +lean_dec(x_350); +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_1); +x_382 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_382, 0, x_374); +lean_ctor_set(x_382, 1, x_375); +return x_382; +} +else +{ +uint8_t x_383; +x_383 = l_Lean_Expr_isMVar(x_350); +if (x_383 == 0) +{ +lean_object* x_384; +lean_dec(x_352); +lean_dec(x_350); +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_1); +x_384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_384, 0, x_374); +lean_ctor_set(x_384, 1, x_375); +return x_384; +} +else +{ +lean_object* x_385; lean_object* x_386; +x_385 = lean_box(0); +x_386 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_350, x_1, x_352, x_374, x_385, x_5, x_6, x_7, x_8, x_9, x_10, x_375); +return x_386; +} +} +} +} +else +{ +lean_object* x_387; +lean_dec(x_352); +lean_dec(x_350); +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_1); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_374); +lean_ctor_set(x_387, 1, x_375); +return x_387; +} +} +else +{ +lean_object* x_388; +lean_dec(x_352); +lean_dec(x_350); +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_1); +x_388 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_388, 0, x_374); +lean_ctor_set(x_388, 1, x_375); +return x_388; +} +} +} +} +else +{ +uint8_t x_389; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23345,104 +23651,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_374 = !lean_is_exclusive(x_337); -if (x_374 == 0) +x_389 = !lean_is_exclusive(x_349); +if (x_389 == 0) { -return x_337; +return x_349; } else { -lean_object* x_375; lean_object* x_376; lean_object* x_377; -x_375 = lean_ctor_get(x_337, 0); -x_376 = lean_ctor_get(x_337, 1); -lean_inc(x_376); -lean_inc(x_375); -lean_dec(x_337); -x_377 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_377, 0, x_375); -lean_ctor_set(x_377, 1, x_376); -return x_377; +lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_390 = lean_ctor_get(x_349, 0); +x_391 = lean_ctor_get(x_349, 1); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_349); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +return x_392; } } } -block_402: +block_417: { -lean_object* x_380; -lean_dec(x_379); +lean_object* x_395; +lean_dec(x_394); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_380 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_380) == 0) +x_395 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_395) == 0) { -lean_object* x_381; lean_object* x_382; lean_object* x_383; size_t x_384; size_t x_385; lean_object* x_386; -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); -lean_inc(x_382); -lean_dec(x_380); -x_383 = lean_array_get_size(x_3); -x_384 = lean_usize_of_nat(x_383); -lean_dec(x_383); -x_385 = 0; -x_386 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_384, x_385, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_382); -if (lean_obj_tag(x_386) == 0) -{ -uint8_t x_387; -x_387 = !lean_is_exclusive(x_386); -if (x_387 == 0) -{ -lean_object* x_388; lean_object* x_389; -x_388 = lean_ctor_get(x_386, 0); -x_389 = l_Lean_mkAppN(x_381, x_388); -lean_ctor_set(x_386, 0, x_389); -return x_386; -} -else -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_390 = lean_ctor_get(x_386, 0); -x_391 = lean_ctor_get(x_386, 1); -lean_inc(x_391); -lean_inc(x_390); -lean_dec(x_386); -x_392 = l_Lean_mkAppN(x_381, x_390); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_391); -return x_393; -} -} -else -{ -uint8_t x_394; -lean_dec(x_381); -x_394 = !lean_is_exclusive(x_386); -if (x_394 == 0) -{ -return x_386; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_ctor_get(x_386, 0); -x_396 = lean_ctor_get(x_386, 1); +lean_object* x_396; lean_object* x_397; lean_object* x_398; size_t x_399; size_t x_400; lean_object* x_401; +x_396 = lean_ctor_get(x_395, 0); lean_inc(x_396); -lean_inc(x_395); -lean_dec(x_386); -x_397 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_397, 0, x_395); -lean_ctor_set(x_397, 1, x_396); -return x_397; +x_397 = lean_ctor_get(x_395, 1); +lean_inc(x_397); +lean_dec(x_395); +x_398 = lean_array_get_size(x_3); +x_399 = lean_usize_of_nat(x_398); +lean_dec(x_398); +x_400 = 0; +x_401 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_399, x_400, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_397); +if (lean_obj_tag(x_401) == 0) +{ +uint8_t x_402; +x_402 = !lean_is_exclusive(x_401); +if (x_402 == 0) +{ +lean_object* x_403; lean_object* x_404; +x_403 = lean_ctor_get(x_401, 0); +x_404 = l_Lean_mkAppN(x_396, x_403); +lean_ctor_set(x_401, 0, x_404); +return x_401; +} +else +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_405 = lean_ctor_get(x_401, 0); +x_406 = lean_ctor_get(x_401, 1); +lean_inc(x_406); +lean_inc(x_405); +lean_dec(x_401); +x_407 = l_Lean_mkAppN(x_396, x_405); +x_408 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_408, 0, x_407); +lean_ctor_set(x_408, 1, x_406); +return x_408; +} +} +else +{ +uint8_t x_409; +lean_dec(x_396); +x_409 = !lean_is_exclusive(x_401); +if (x_409 == 0) +{ +return x_401; +} +else +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_410 = lean_ctor_get(x_401, 0); +x_411 = lean_ctor_get(x_401, 1); +lean_inc(x_411); +lean_inc(x_410); +lean_dec(x_401); +x_412 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_412, 0, x_410); +lean_ctor_set(x_412, 1, x_411); +return x_412; } } } else { -uint8_t x_398; +uint8_t x_413; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23450,212 +23756,144 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_398 = !lean_is_exclusive(x_380); -if (x_398 == 0) +x_413 = !lean_is_exclusive(x_395); +if (x_413 == 0) { -return x_380; +return x_395; } else { -lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_399 = lean_ctor_get(x_380, 0); -x_400 = lean_ctor_get(x_380, 1); -lean_inc(x_400); -lean_inc(x_399); -lean_dec(x_380); -x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_400); -return x_401; +lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_414 = lean_ctor_get(x_395, 0); +x_415 = lean_ctor_get(x_395, 1); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_395); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } } case 5: { -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_417 = lean_ctor_get(x_2, 0); -lean_inc(x_417); -x_418 = lean_ctor_get(x_2, 1); -lean_inc(x_418); +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_432 = lean_ctor_get(x_2, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_2, 1); +lean_inc(x_433); lean_dec(x_2); -x_419 = lean_array_set(x_3, x_4, x_418); -x_420 = lean_unsigned_to_nat(1u); -x_421 = lean_nat_sub(x_4, x_420); +x_434 = lean_array_set(x_3, x_4, x_433); +x_435 = lean_unsigned_to_nat(1u); +x_436 = lean_nat_sub(x_4, x_435); lean_dec(x_4); -x_2 = x_417; -x_3 = x_419; -x_4 = x_421; +x_2 = x_432; +x_3 = x_434; +x_4 = x_436; goto _start; } case 6: { -lean_object* x_423; lean_object* x_466; uint8_t x_490; +lean_object* x_438; lean_object* x_484; uint8_t x_508; lean_dec(x_4); -x_490 = l_Lean_Expr_isMVar(x_2); -if (x_490 == 0) +x_508 = l_Lean_Expr_isMVar(x_2); +if (x_508 == 0) { -lean_object* x_491; +lean_object* x_509; lean_dec(x_1); -x_491 = lean_box(0); -x_466 = x_491; -goto block_489; +x_509 = lean_box(0); +x_484 = x_509; +goto block_507; } else { -lean_object* x_492; uint8_t x_493; -x_492 = lean_ctor_get(x_7, 0); -lean_inc(x_492); -x_493 = lean_ctor_get_uint8(x_492, 1); -lean_dec(x_492); -if (x_493 == 0) +lean_object* x_510; uint8_t x_511; +x_510 = lean_ctor_get(x_7, 0); +lean_inc(x_510); +x_511 = lean_ctor_get_uint8(x_510, 1); +lean_dec(x_510); +if (x_511 == 0) { -lean_object* x_494; +lean_object* x_512; lean_dec(x_1); -x_494 = lean_box(0); -x_466 = x_494; -goto block_489; +x_512 = lean_box(0); +x_484 = x_512; +goto block_507; } else { -lean_object* x_495; lean_object* x_496; uint8_t x_497; -x_495 = lean_array_get_size(x_3); -x_496 = lean_unsigned_to_nat(0u); -x_497 = lean_nat_dec_lt(x_496, x_495); -if (x_497 == 0) +lean_object* x_513; lean_object* x_514; uint8_t x_515; +x_513 = lean_array_get_size(x_3); +x_514 = lean_unsigned_to_nat(0u); +x_515 = lean_nat_dec_lt(x_514, x_513); +if (x_515 == 0) { -lean_object* x_498; -lean_dec(x_495); -x_498 = lean_box(0); -x_423 = x_498; -goto block_465; +lean_object* x_516; +lean_dec(x_513); +x_516 = lean_box(0); +x_438 = x_516; +goto block_483; } else { -size_t x_499; size_t x_500; uint8_t x_501; -x_499 = 0; -x_500 = lean_usize_of_nat(x_495); -lean_dec(x_495); -x_501 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_499, x_500); -if (x_501 == 0) +size_t x_517; size_t x_518; uint8_t x_519; +x_517 = 0; +x_518 = lean_usize_of_nat(x_513); +lean_dec(x_513); +x_519 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_517, x_518); +if (x_519 == 0) { -lean_object* x_502; -x_502 = lean_box(0); -x_423 = x_502; -goto block_465; +lean_object* x_520; +x_520 = lean_box(0); +x_438 = x_520; +goto block_483; } else { -lean_object* x_503; +lean_object* x_521; lean_dec(x_1); -x_503 = lean_box(0); -x_466 = x_503; -goto block_489; +x_521 = lean_box(0); +x_484 = x_521; +goto block_507; } } } } -block_465: +block_483: { -lean_object* x_424; -lean_dec(x_423); +lean_object* x_439; +lean_dec(x_438); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_424 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_424) == 0) -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; size_t x_428; size_t x_429; lean_object* x_430; -x_425 = lean_ctor_get(x_424, 0); -lean_inc(x_425); -x_426 = lean_ctor_get(x_424, 1); -lean_inc(x_426); -lean_dec(x_424); -x_427 = lean_array_get_size(x_3); -x_428 = lean_usize_of_nat(x_427); -x_429 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_430 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_428, x_429, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_426); -if (lean_obj_tag(x_430) == 0) -{ -uint8_t x_431; -lean_dec(x_427); -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_1); -x_431 = !lean_is_exclusive(x_430); -if (x_431 == 0) -{ -lean_object* x_432; lean_object* x_433; -x_432 = lean_ctor_get(x_430, 0); -x_433 = l_Lean_mkAppN(x_425, x_432); -lean_ctor_set(x_430, 0, x_433); -return x_430; -} -else -{ -lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_434 = lean_ctor_get(x_430, 0); -x_435 = lean_ctor_get(x_430, 1); -lean_inc(x_435); -lean_inc(x_434); -lean_dec(x_430); -x_436 = l_Lean_mkAppN(x_425, x_434); -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_436); -lean_ctor_set(x_437, 1, x_435); -return x_437; -} -} -else -{ -uint8_t x_438; -x_438 = !lean_is_exclusive(x_430); -if (x_438 == 0) -{ -lean_object* x_439; lean_object* x_440; uint8_t x_441; -x_439 = lean_ctor_get(x_430, 0); -x_440 = lean_ctor_get(x_430, 1); -x_441 = l_Lean_Exception_isRuntime(x_439); -if (x_441 == 0) -{ +x_439 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_439) == 0) { -lean_dec(x_427); -lean_dec(x_425); -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_1); -return x_430; -} -else +lean_object* x_440; lean_object* x_441; lean_object* x_442; size_t x_443; size_t x_444; lean_object* x_445; +x_440 = lean_ctor_get(x_439, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_439, 1); +lean_inc(x_441); +lean_dec(x_439); +x_442 = lean_array_get_size(x_3); +x_443 = lean_usize_of_nat(x_442); +x_444 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_445 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_443, x_444, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_441); +if (lean_obj_tag(x_445) == 0) { -lean_object* x_442; lean_object* x_443; uint8_t x_444; -x_442 = lean_ctor_get(x_439, 0); -lean_inc(x_442); -x_443 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_444 = lean_nat_dec_eq(x_443, x_442); +uint8_t x_446; lean_dec(x_442); -if (x_444 == 0) -{ -lean_dec(x_427); -lean_dec(x_425); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23663,112 +23901,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_430; +x_446 = !lean_is_exclusive(x_445); +if (x_446 == 0) +{ +lean_object* x_447; lean_object* x_448; +x_447 = lean_ctor_get(x_445, 0); +x_448 = l_Lean_mkAppN(x_440, x_447); +lean_ctor_set(x_445, 0, x_448); +return x_445; } else { -uint8_t x_445; -x_445 = l_Lean_Expr_isMVar(x_425); -if (x_445 == 0) -{ -lean_dec(x_427); -lean_dec(x_425); -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_1); -return x_430; -} -else -{ -lean_object* x_446; lean_object* x_447; -lean_free_object(x_430); -x_446 = lean_box(0); -x_447 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_425, x_1, x_427, x_439, x_446, x_5, x_6, x_7, x_8, x_9, x_10, x_440); -return x_447; -} -} -} -} -else -{ -lean_dec(x_427); -lean_dec(x_425); -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_1); -return x_430; -} -} -else -{ -lean_object* x_448; lean_object* x_449; uint8_t x_450; -x_448 = lean_ctor_get(x_430, 0); -x_449 = lean_ctor_get(x_430, 1); +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_449 = lean_ctor_get(x_445, 0); +x_450 = lean_ctor_get(x_445, 1); +lean_inc(x_450); lean_inc(x_449); -lean_inc(x_448); -lean_dec(x_430); -x_450 = l_Lean_Exception_isRuntime(x_448); -if (x_450 == 0) -{ -if (lean_obj_tag(x_448) == 0) -{ -lean_object* x_451; -lean_dec(x_427); -lean_dec(x_425); -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_1); -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_448); -lean_ctor_set(x_451, 1, x_449); -return x_451; +lean_dec(x_445); +x_451 = l_Lean_mkAppN(x_440, x_449); +x_452 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_452, 0, x_451); +lean_ctor_set(x_452, 1, x_450); +return x_452; +} } else { -lean_object* x_452; lean_object* x_453; uint8_t x_454; -x_452 = lean_ctor_get(x_448, 0); -lean_inc(x_452); -x_453 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_454 = lean_nat_dec_eq(x_453, x_452); -lean_dec(x_452); -if (x_454 == 0) +uint8_t x_453; +x_453 = !lean_is_exclusive(x_445); +if (x_453 == 0) { -lean_object* x_455; -lean_dec(x_427); -lean_dec(x_425); -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_1); -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_448); -lean_ctor_set(x_455, 1, x_449); -return x_455; -} -else -{ -uint8_t x_456; -x_456 = l_Lean_Expr_isMVar(x_425); +lean_object* x_454; lean_object* x_455; uint8_t x_456; +x_454 = lean_ctor_get(x_445, 0); +x_455 = lean_ctor_get(x_445, 1); +x_456 = l_Lean_Exception_isInterrupt(x_454); if (x_456 == 0) { -lean_object* x_457; -lean_dec(x_427); -lean_dec(x_425); +uint8_t x_457; +x_457 = l_Lean_Exception_isRuntime(x_454); +if (x_457 == 0) +{ +if (lean_obj_tag(x_454) == 0) +{ +lean_dec(x_442); +lean_dec(x_440); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23776,26 +23952,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_457, 0, x_448); -lean_ctor_set(x_457, 1, x_449); -return x_457; +return x_445; } else { -lean_object* x_458; lean_object* x_459; -x_458 = lean_box(0); -x_459 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_425, x_1, x_427, x_448, x_458, x_5, x_6, x_7, x_8, x_9, x_10, x_449); -return x_459; -} -} -} -} -else +lean_object* x_458; lean_object* x_459; uint8_t x_460; +x_458 = lean_ctor_get(x_454, 0); +lean_inc(x_458); +x_459 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_460 = lean_nat_dec_eq(x_459, x_458); +lean_dec(x_458); +if (x_460 == 0) { -lean_object* x_460; -lean_dec(x_427); -lean_dec(x_425); +lean_dec(x_442); +lean_dec(x_440); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23803,17 +23973,193 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_460 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_460, 0, x_448); -lean_ctor_set(x_460, 1, x_449); -return x_460; -} -} -} +return x_445; } else { uint8_t x_461; +x_461 = l_Lean_Expr_isMVar(x_440); +if (x_461 == 0) +{ +lean_dec(x_442); +lean_dec(x_440); +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_1); +return x_445; +} +else +{ +lean_object* x_462; lean_object* x_463; +lean_free_object(x_445); +x_462 = lean_box(0); +x_463 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_440, x_1, x_442, x_454, x_462, x_5, x_6, x_7, x_8, x_9, x_10, x_455); +return x_463; +} +} +} +} +else +{ +lean_dec(x_442); +lean_dec(x_440); +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_1); +return x_445; +} +} +else +{ +lean_dec(x_442); +lean_dec(x_440); +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_1); +return x_445; +} +} +else +{ +lean_object* x_464; lean_object* x_465; uint8_t x_466; +x_464 = lean_ctor_get(x_445, 0); +x_465 = lean_ctor_get(x_445, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_445); +x_466 = l_Lean_Exception_isInterrupt(x_464); +if (x_466 == 0) +{ +uint8_t x_467; +x_467 = l_Lean_Exception_isRuntime(x_464); +if (x_467 == 0) +{ +if (lean_obj_tag(x_464) == 0) +{ +lean_object* x_468; +lean_dec(x_442); +lean_dec(x_440); +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_1); +x_468 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_468, 0, x_464); +lean_ctor_set(x_468, 1, x_465); +return x_468; +} +else +{ +lean_object* x_469; lean_object* x_470; uint8_t x_471; +x_469 = lean_ctor_get(x_464, 0); +lean_inc(x_469); +x_470 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_471 = lean_nat_dec_eq(x_470, x_469); +lean_dec(x_469); +if (x_471 == 0) +{ +lean_object* x_472; +lean_dec(x_442); +lean_dec(x_440); +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_1); +x_472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_472, 0, x_464); +lean_ctor_set(x_472, 1, x_465); +return x_472; +} +else +{ +uint8_t x_473; +x_473 = l_Lean_Expr_isMVar(x_440); +if (x_473 == 0) +{ +lean_object* x_474; +lean_dec(x_442); +lean_dec(x_440); +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_1); +x_474 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_474, 0, x_464); +lean_ctor_set(x_474, 1, x_465); +return x_474; +} +else +{ +lean_object* x_475; lean_object* x_476; +x_475 = lean_box(0); +x_476 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_440, x_1, x_442, x_464, x_475, x_5, x_6, x_7, x_8, x_9, x_10, x_465); +return x_476; +} +} +} +} +else +{ +lean_object* x_477; +lean_dec(x_442); +lean_dec(x_440); +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_1); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_464); +lean_ctor_set(x_477, 1, x_465); +return x_477; +} +} +else +{ +lean_object* x_478; +lean_dec(x_442); +lean_dec(x_440); +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_1); +x_478 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_478, 0, x_464); +lean_ctor_set(x_478, 1, x_465); +return x_478; +} +} +} +} +else +{ +uint8_t x_479; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23822,104 +24168,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_461 = !lean_is_exclusive(x_424); -if (x_461 == 0) +x_479 = !lean_is_exclusive(x_439); +if (x_479 == 0) { -return x_424; +return x_439; } else { -lean_object* x_462; lean_object* x_463; lean_object* x_464; -x_462 = lean_ctor_get(x_424, 0); -x_463 = lean_ctor_get(x_424, 1); -lean_inc(x_463); -lean_inc(x_462); -lean_dec(x_424); -x_464 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_464, 0, x_462); -lean_ctor_set(x_464, 1, x_463); -return x_464; +lean_object* x_480; lean_object* x_481; lean_object* x_482; +x_480 = lean_ctor_get(x_439, 0); +x_481 = lean_ctor_get(x_439, 1); +lean_inc(x_481); +lean_inc(x_480); +lean_dec(x_439); +x_482 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_482, 0, x_480); +lean_ctor_set(x_482, 1, x_481); +return x_482; } } } -block_489: +block_507: { -lean_object* x_467; -lean_dec(x_466); +lean_object* x_485; +lean_dec(x_484); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_467 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_467) == 0) +x_485 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_485) == 0) { -lean_object* x_468; lean_object* x_469; lean_object* x_470; size_t x_471; size_t x_472; lean_object* x_473; -x_468 = lean_ctor_get(x_467, 0); -lean_inc(x_468); -x_469 = lean_ctor_get(x_467, 1); -lean_inc(x_469); -lean_dec(x_467); -x_470 = lean_array_get_size(x_3); -x_471 = lean_usize_of_nat(x_470); -lean_dec(x_470); -x_472 = 0; -x_473 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_471, x_472, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_469); -if (lean_obj_tag(x_473) == 0) +lean_object* x_486; lean_object* x_487; lean_object* x_488; size_t x_489; size_t x_490; lean_object* x_491; +x_486 = lean_ctor_get(x_485, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_485, 1); +lean_inc(x_487); +lean_dec(x_485); +x_488 = lean_array_get_size(x_3); +x_489 = lean_usize_of_nat(x_488); +lean_dec(x_488); +x_490 = 0; +x_491 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_489, x_490, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_487); +if (lean_obj_tag(x_491) == 0) { -uint8_t x_474; -x_474 = !lean_is_exclusive(x_473); -if (x_474 == 0) +uint8_t x_492; +x_492 = !lean_is_exclusive(x_491); +if (x_492 == 0) { -lean_object* x_475; lean_object* x_476; -x_475 = lean_ctor_get(x_473, 0); -x_476 = l_Lean_mkAppN(x_468, x_475); -lean_ctor_set(x_473, 0, x_476); -return x_473; +lean_object* x_493; lean_object* x_494; +x_493 = lean_ctor_get(x_491, 0); +x_494 = l_Lean_mkAppN(x_486, x_493); +lean_ctor_set(x_491, 0, x_494); +return x_491; } else { -lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_477 = lean_ctor_get(x_473, 0); -x_478 = lean_ctor_get(x_473, 1); -lean_inc(x_478); -lean_inc(x_477); -lean_dec(x_473); -x_479 = l_Lean_mkAppN(x_468, x_477); -x_480 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_480, 0, x_479); -lean_ctor_set(x_480, 1, x_478); -return x_480; +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_495 = lean_ctor_get(x_491, 0); +x_496 = lean_ctor_get(x_491, 1); +lean_inc(x_496); +lean_inc(x_495); +lean_dec(x_491); +x_497 = l_Lean_mkAppN(x_486, x_495); +x_498 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_498, 0, x_497); +lean_ctor_set(x_498, 1, x_496); +return x_498; } } else { -uint8_t x_481; -lean_dec(x_468); -x_481 = !lean_is_exclusive(x_473); -if (x_481 == 0) +uint8_t x_499; +lean_dec(x_486); +x_499 = !lean_is_exclusive(x_491); +if (x_499 == 0) { -return x_473; +return x_491; } else { -lean_object* x_482; lean_object* x_483; lean_object* x_484; -x_482 = lean_ctor_get(x_473, 0); -x_483 = lean_ctor_get(x_473, 1); -lean_inc(x_483); -lean_inc(x_482); -lean_dec(x_473); -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_482); -lean_ctor_set(x_484, 1, x_483); -return x_484; +lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_500 = lean_ctor_get(x_491, 0); +x_501 = lean_ctor_get(x_491, 1); +lean_inc(x_501); +lean_inc(x_500); +lean_dec(x_491); +x_502 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_502, 0, x_500); +lean_ctor_set(x_502, 1, x_501); +return x_502; } } } else { -uint8_t x_485; +uint8_t x_503; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -23927,262 +24273,127 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_485 = !lean_is_exclusive(x_467); -if (x_485 == 0) +x_503 = !lean_is_exclusive(x_485); +if (x_503 == 0) { -return x_467; +return x_485; } else { -lean_object* x_486; lean_object* x_487; lean_object* x_488; -x_486 = lean_ctor_get(x_467, 0); -x_487 = lean_ctor_get(x_467, 1); -lean_inc(x_487); -lean_inc(x_486); -lean_dec(x_467); -x_488 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_488, 0, x_486); -lean_ctor_set(x_488, 1, x_487); -return x_488; +lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_504 = lean_ctor_get(x_485, 0); +x_505 = lean_ctor_get(x_485, 1); +lean_inc(x_505); +lean_inc(x_504); +lean_dec(x_485); +x_506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_506, 0, x_504); +lean_ctor_set(x_506, 1, x_505); +return x_506; } } } } case 7: { -lean_object* x_504; lean_object* x_547; uint8_t x_571; +lean_object* x_522; lean_object* x_568; uint8_t x_592; lean_dec(x_4); -x_571 = l_Lean_Expr_isMVar(x_2); -if (x_571 == 0) +x_592 = l_Lean_Expr_isMVar(x_2); +if (x_592 == 0) { -lean_object* x_572; +lean_object* x_593; lean_dec(x_1); -x_572 = lean_box(0); -x_547 = x_572; -goto block_570; +x_593 = lean_box(0); +x_568 = x_593; +goto block_591; } else { -lean_object* x_573; uint8_t x_574; -x_573 = lean_ctor_get(x_7, 0); -lean_inc(x_573); -x_574 = lean_ctor_get_uint8(x_573, 1); -lean_dec(x_573); -if (x_574 == 0) +lean_object* x_594; uint8_t x_595; +x_594 = lean_ctor_get(x_7, 0); +lean_inc(x_594); +x_595 = lean_ctor_get_uint8(x_594, 1); +lean_dec(x_594); +if (x_595 == 0) { -lean_object* x_575; +lean_object* x_596; lean_dec(x_1); -x_575 = lean_box(0); -x_547 = x_575; -goto block_570; +x_596 = lean_box(0); +x_568 = x_596; +goto block_591; } else { -lean_object* x_576; lean_object* x_577; uint8_t x_578; -x_576 = lean_array_get_size(x_3); -x_577 = lean_unsigned_to_nat(0u); -x_578 = lean_nat_dec_lt(x_577, x_576); -if (x_578 == 0) +lean_object* x_597; lean_object* x_598; uint8_t x_599; +x_597 = lean_array_get_size(x_3); +x_598 = lean_unsigned_to_nat(0u); +x_599 = lean_nat_dec_lt(x_598, x_597); +if (x_599 == 0) { -lean_object* x_579; -lean_dec(x_576); -x_579 = lean_box(0); -x_504 = x_579; -goto block_546; +lean_object* x_600; +lean_dec(x_597); +x_600 = lean_box(0); +x_522 = x_600; +goto block_567; } else { -size_t x_580; size_t x_581; uint8_t x_582; -x_580 = 0; -x_581 = lean_usize_of_nat(x_576); -lean_dec(x_576); -x_582 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_580, x_581); -if (x_582 == 0) +size_t x_601; size_t x_602; uint8_t x_603; +x_601 = 0; +x_602 = lean_usize_of_nat(x_597); +lean_dec(x_597); +x_603 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_601, x_602); +if (x_603 == 0) { -lean_object* x_583; -x_583 = lean_box(0); -x_504 = x_583; -goto block_546; +lean_object* x_604; +x_604 = lean_box(0); +x_522 = x_604; +goto block_567; } else { -lean_object* x_584; +lean_object* x_605; lean_dec(x_1); -x_584 = lean_box(0); -x_547 = x_584; -goto block_570; +x_605 = lean_box(0); +x_568 = x_605; +goto block_591; } } } } -block_546: +block_567: { -lean_object* x_505; -lean_dec(x_504); +lean_object* x_523; +lean_dec(x_522); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_505 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_505) == 0) +x_523 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_523) == 0) { -lean_object* x_506; lean_object* x_507; lean_object* x_508; size_t x_509; size_t x_510; lean_object* x_511; -x_506 = lean_ctor_get(x_505, 0); -lean_inc(x_506); -x_507 = lean_ctor_get(x_505, 1); -lean_inc(x_507); -lean_dec(x_505); -x_508 = lean_array_get_size(x_3); -x_509 = lean_usize_of_nat(x_508); -x_510 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_511 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_509, x_510, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_507); -if (lean_obj_tag(x_511) == 0) -{ -uint8_t x_512; -lean_dec(x_508); -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_1); -x_512 = !lean_is_exclusive(x_511); -if (x_512 == 0) -{ -lean_object* x_513; lean_object* x_514; -x_513 = lean_ctor_get(x_511, 0); -x_514 = l_Lean_mkAppN(x_506, x_513); -lean_ctor_set(x_511, 0, x_514); -return x_511; -} -else -{ -lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; -x_515 = lean_ctor_get(x_511, 0); -x_516 = lean_ctor_get(x_511, 1); -lean_inc(x_516); -lean_inc(x_515); -lean_dec(x_511); -x_517 = l_Lean_mkAppN(x_506, x_515); -x_518 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_518, 0, x_517); -lean_ctor_set(x_518, 1, x_516); -return x_518; -} -} -else -{ -uint8_t x_519; -x_519 = !lean_is_exclusive(x_511); -if (x_519 == 0) -{ -lean_object* x_520; lean_object* x_521; uint8_t x_522; -x_520 = lean_ctor_get(x_511, 0); -x_521 = lean_ctor_get(x_511, 1); -x_522 = l_Lean_Exception_isRuntime(x_520); -if (x_522 == 0) -{ -if (lean_obj_tag(x_520) == 0) -{ -lean_dec(x_508); -lean_dec(x_506); -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_1); -return x_511; -} -else -{ -lean_object* x_523; lean_object* x_524; uint8_t x_525; -x_523 = lean_ctor_get(x_520, 0); -lean_inc(x_523); -x_524 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_525 = lean_nat_dec_eq(x_524, x_523); +lean_object* x_524; lean_object* x_525; lean_object* x_526; size_t x_527; size_t x_528; lean_object* x_529; +x_524 = lean_ctor_get(x_523, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_523, 1); +lean_inc(x_525); lean_dec(x_523); -if (x_525 == 0) -{ -lean_dec(x_508); -lean_dec(x_506); -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_1); -return x_511; -} -else -{ -uint8_t x_526; -x_526 = l_Lean_Expr_isMVar(x_506); -if (x_526 == 0) -{ -lean_dec(x_508); -lean_dec(x_506); -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_1); -return x_511; -} -else -{ -lean_object* x_527; lean_object* x_528; -lean_free_object(x_511); -x_527 = lean_box(0); -x_528 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_506, x_1, x_508, x_520, x_527, x_5, x_6, x_7, x_8, x_9, x_10, x_521); -return x_528; -} -} -} -} -else -{ -lean_dec(x_508); -lean_dec(x_506); -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_1); -return x_511; -} -} -else -{ -lean_object* x_529; lean_object* x_530; uint8_t x_531; -x_529 = lean_ctor_get(x_511, 0); -x_530 = lean_ctor_get(x_511, 1); -lean_inc(x_530); -lean_inc(x_529); -lean_dec(x_511); -x_531 = l_Lean_Exception_isRuntime(x_529); -if (x_531 == 0) -{ +x_526 = lean_array_get_size(x_3); +x_527 = lean_usize_of_nat(x_526); +x_528 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_529 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_527, x_528, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_525); if (lean_obj_tag(x_529) == 0) { -lean_object* x_532; -lean_dec(x_508); -lean_dec(x_506); +uint8_t x_530; +lean_dec(x_526); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -24190,45 +24401,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_532 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_532, 0, x_529); -lean_ctor_set(x_532, 1, x_530); -return x_532; +x_530 = !lean_is_exclusive(x_529); +if (x_530 == 0) +{ +lean_object* x_531; lean_object* x_532; +x_531 = lean_ctor_get(x_529, 0); +x_532 = l_Lean_mkAppN(x_524, x_531); +lean_ctor_set(x_529, 0, x_532); +return x_529; } else { -lean_object* x_533; lean_object* x_534; uint8_t x_535; +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; x_533 = lean_ctor_get(x_529, 0); +x_534 = lean_ctor_get(x_529, 1); +lean_inc(x_534); lean_inc(x_533); -x_534 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_535 = lean_nat_dec_eq(x_534, x_533); -lean_dec(x_533); -if (x_535 == 0) -{ -lean_object* x_536; -lean_dec(x_508); -lean_dec(x_506); -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_1); -x_536 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_536, 0, x_529); -lean_ctor_set(x_536, 1, x_530); +lean_dec(x_529); +x_535 = l_Lean_mkAppN(x_524, x_533); +x_536 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_536, 0, x_535); +lean_ctor_set(x_536, 1, x_534); return x_536; } +} else { uint8_t x_537; -x_537 = l_Lean_Expr_isMVar(x_506); +x_537 = !lean_is_exclusive(x_529); if (x_537 == 0) { -lean_object* x_538; -lean_dec(x_508); -lean_dec(x_506); +lean_object* x_538; lean_object* x_539; uint8_t x_540; +x_538 = lean_ctor_get(x_529, 0); +x_539 = lean_ctor_get(x_529, 1); +x_540 = l_Lean_Exception_isInterrupt(x_538); +if (x_540 == 0) +{ +uint8_t x_541; +x_541 = l_Lean_Exception_isRuntime(x_538); +if (x_541 == 0) +{ +if (lean_obj_tag(x_538) == 0) +{ +lean_dec(x_526); +lean_dec(x_524); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -24236,26 +24452,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_538 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_538, 0, x_529); -lean_ctor_set(x_538, 1, x_530); -return x_538; +return x_529; } else { -lean_object* x_539; lean_object* x_540; -x_539 = lean_box(0); -x_540 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_506, x_1, x_508, x_529, x_539, x_5, x_6, x_7, x_8, x_9, x_10, x_530); -return x_540; -} -} -} -} -else +lean_object* x_542; lean_object* x_543; uint8_t x_544; +x_542 = lean_ctor_get(x_538, 0); +lean_inc(x_542); +x_543 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_544 = lean_nat_dec_eq(x_543, x_542); +lean_dec(x_542); +if (x_544 == 0) { -lean_object* x_541; -lean_dec(x_508); -lean_dec(x_506); +lean_dec(x_526); +lean_dec(x_524); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -24263,123 +24473,193 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_541 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_541, 0, x_529); -lean_ctor_set(x_541, 1, x_530); -return x_541; -} -} -} +return x_529; } else { -uint8_t x_542; +uint8_t x_545; +x_545 = l_Lean_Expr_isMVar(x_524); +if (x_545 == 0) +{ +lean_dec(x_526); +lean_dec(x_524); 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_3); lean_dec(x_1); -x_542 = !lean_is_exclusive(x_505); -if (x_542 == 0) -{ -return x_505; +return x_529; } else { -lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_543 = lean_ctor_get(x_505, 0); -x_544 = lean_ctor_get(x_505, 1); -lean_inc(x_544); -lean_inc(x_543); -lean_dec(x_505); -x_545 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_545, 0, x_543); -lean_ctor_set(x_545, 1, x_544); -return x_545; +lean_object* x_546; lean_object* x_547; +lean_free_object(x_529); +x_546 = lean_box(0); +x_547 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_524, x_1, x_526, x_538, x_546, x_5, x_6, x_7, x_8, x_9, x_10, x_539); +return x_547; } } } -block_570: +} +else +{ +lean_dec(x_526); +lean_dec(x_524); +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_1); +return x_529; +} +} +else +{ +lean_dec(x_526); +lean_dec(x_524); +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_1); +return x_529; +} +} +else +{ +lean_object* x_548; lean_object* x_549; uint8_t x_550; +x_548 = lean_ctor_get(x_529, 0); +x_549 = lean_ctor_get(x_529, 1); +lean_inc(x_549); +lean_inc(x_548); +lean_dec(x_529); +x_550 = l_Lean_Exception_isInterrupt(x_548); +if (x_550 == 0) +{ +uint8_t x_551; +x_551 = l_Lean_Exception_isRuntime(x_548); +if (x_551 == 0) { -lean_object* x_548; -lean_dec(x_547); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_548 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_548) == 0) { -lean_object* x_549; lean_object* x_550; lean_object* x_551; size_t x_552; size_t x_553; lean_object* x_554; -x_549 = lean_ctor_get(x_548, 0); -lean_inc(x_549); -x_550 = lean_ctor_get(x_548, 1); -lean_inc(x_550); -lean_dec(x_548); -x_551 = lean_array_get_size(x_3); -x_552 = lean_usize_of_nat(x_551); -lean_dec(x_551); -x_553 = 0; -x_554 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_552, x_553, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_550); -if (lean_obj_tag(x_554) == 0) -{ -uint8_t x_555; -x_555 = !lean_is_exclusive(x_554); -if (x_555 == 0) -{ -lean_object* x_556; lean_object* x_557; -x_556 = lean_ctor_get(x_554, 0); -x_557 = l_Lean_mkAppN(x_549, x_556); -lean_ctor_set(x_554, 0, x_557); -return x_554; +lean_object* x_552; +lean_dec(x_526); +lean_dec(x_524); +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_1); +x_552 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_552, 0, x_548); +lean_ctor_set(x_552, 1, x_549); +return x_552; } else { -lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; -x_558 = lean_ctor_get(x_554, 0); -x_559 = lean_ctor_get(x_554, 1); -lean_inc(x_559); -lean_inc(x_558); -lean_dec(x_554); -x_560 = l_Lean_mkAppN(x_549, x_558); -x_561 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_561, 0, x_560); -lean_ctor_set(x_561, 1, x_559); +lean_object* x_553; lean_object* x_554; uint8_t x_555; +x_553 = lean_ctor_get(x_548, 0); +lean_inc(x_553); +x_554 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_555 = lean_nat_dec_eq(x_554, x_553); +lean_dec(x_553); +if (x_555 == 0) +{ +lean_object* x_556; +lean_dec(x_526); +lean_dec(x_524); +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_1); +x_556 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_556, 0, x_548); +lean_ctor_set(x_556, 1, x_549); +return x_556; +} +else +{ +uint8_t x_557; +x_557 = l_Lean_Expr_isMVar(x_524); +if (x_557 == 0) +{ +lean_object* x_558; +lean_dec(x_526); +lean_dec(x_524); +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_1); +x_558 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_558, 0, x_548); +lean_ctor_set(x_558, 1, x_549); +return x_558; +} +else +{ +lean_object* x_559; lean_object* x_560; +x_559 = lean_box(0); +x_560 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_524, x_1, x_526, x_548, x_559, x_5, x_6, x_7, x_8, x_9, x_10, x_549); +return x_560; +} +} +} +} +else +{ +lean_object* x_561; +lean_dec(x_526); +lean_dec(x_524); +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_1); +x_561 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_561, 0, x_548); +lean_ctor_set(x_561, 1, x_549); return x_561; } } else { -uint8_t x_562; -lean_dec(x_549); -x_562 = !lean_is_exclusive(x_554); -if (x_562 == 0) -{ -return x_554; +lean_object* x_562; +lean_dec(x_526); +lean_dec(x_524); +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_1); +x_562 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_562, 0, x_548); +lean_ctor_set(x_562, 1, x_549); +return x_562; } -else -{ -lean_object* x_563; lean_object* x_564; lean_object* x_565; -x_563 = lean_ctor_get(x_554, 0); -x_564 = lean_ctor_get(x_554, 1); -lean_inc(x_564); -lean_inc(x_563); -lean_dec(x_554); -x_565 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_565, 0, x_563); -lean_ctor_set(x_565, 1, x_564); -return x_565; } } } else { -uint8_t x_566; +uint8_t x_563; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -24387,456 +24667,496 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_566 = !lean_is_exclusive(x_548); -if (x_566 == 0) +lean_dec(x_1); +x_563 = !lean_is_exclusive(x_523); +if (x_563 == 0) { -return x_548; +return x_523; } else { -lean_object* x_567; lean_object* x_568; lean_object* x_569; -x_567 = lean_ctor_get(x_548, 0); -x_568 = lean_ctor_get(x_548, 1); -lean_inc(x_568); -lean_inc(x_567); -lean_dec(x_548); -x_569 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_569, 0, x_567); -lean_ctor_set(x_569, 1, x_568); +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_523, 0); +x_565 = lean_ctor_get(x_523, 1); +lean_inc(x_565); +lean_inc(x_564); +lean_dec(x_523); +x_566 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_566, 0, x_564); +lean_ctor_set(x_566, 1, x_565); +return x_566; +} +} +} +block_591: +{ +lean_object* x_569; +lean_dec(x_568); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_569 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_569) == 0) +{ +lean_object* x_570; lean_object* x_571; lean_object* x_572; size_t x_573; size_t x_574; lean_object* x_575; +x_570 = lean_ctor_get(x_569, 0); +lean_inc(x_570); +x_571 = lean_ctor_get(x_569, 1); +lean_inc(x_571); +lean_dec(x_569); +x_572 = lean_array_get_size(x_3); +x_573 = lean_usize_of_nat(x_572); +lean_dec(x_572); +x_574 = 0; +x_575 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_573, x_574, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_571); +if (lean_obj_tag(x_575) == 0) +{ +uint8_t x_576; +x_576 = !lean_is_exclusive(x_575); +if (x_576 == 0) +{ +lean_object* x_577; lean_object* x_578; +x_577 = lean_ctor_get(x_575, 0); +x_578 = l_Lean_mkAppN(x_570, x_577); +lean_ctor_set(x_575, 0, x_578); +return x_575; +} +else +{ +lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_579 = lean_ctor_get(x_575, 0); +x_580 = lean_ctor_get(x_575, 1); +lean_inc(x_580); +lean_inc(x_579); +lean_dec(x_575); +x_581 = l_Lean_mkAppN(x_570, x_579); +x_582 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_582, 0, x_581); +lean_ctor_set(x_582, 1, x_580); +return x_582; +} +} +else +{ +uint8_t x_583; +lean_dec(x_570); +x_583 = !lean_is_exclusive(x_575); +if (x_583 == 0) +{ +return x_575; +} +else +{ +lean_object* x_584; lean_object* x_585; lean_object* x_586; +x_584 = lean_ctor_get(x_575, 0); +x_585 = lean_ctor_get(x_575, 1); +lean_inc(x_585); +lean_inc(x_584); +lean_dec(x_575); +x_586 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_586, 0, x_584); +lean_ctor_set(x_586, 1, x_585); +return x_586; +} +} +} +else +{ +uint8_t x_587; +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_3); +x_587 = !lean_is_exclusive(x_569); +if (x_587 == 0) +{ return x_569; } +else +{ +lean_object* x_588; lean_object* x_589; lean_object* x_590; +x_588 = lean_ctor_get(x_569, 0); +x_589 = lean_ctor_get(x_569, 1); +lean_inc(x_589); +lean_inc(x_588); +lean_dec(x_569); +x_590 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_590, 0, x_588); +lean_ctor_set(x_590, 1, x_589); +return x_590; +} } } } case 8: { -lean_object* x_585; lean_object* x_628; uint8_t x_652; +lean_object* x_606; lean_object* x_652; uint8_t x_676; lean_dec(x_4); -x_652 = l_Lean_Expr_isMVar(x_2); -if (x_652 == 0) +x_676 = l_Lean_Expr_isMVar(x_2); +if (x_676 == 0) { -lean_object* x_653; +lean_object* x_677; lean_dec(x_1); -x_653 = lean_box(0); -x_628 = x_653; +x_677 = lean_box(0); +x_652 = x_677; +goto block_675; +} +else +{ +lean_object* x_678; uint8_t x_679; +x_678 = lean_ctor_get(x_7, 0); +lean_inc(x_678); +x_679 = lean_ctor_get_uint8(x_678, 1); +lean_dec(x_678); +if (x_679 == 0) +{ +lean_object* x_680; +lean_dec(x_1); +x_680 = lean_box(0); +x_652 = x_680; +goto block_675; +} +else +{ +lean_object* x_681; lean_object* x_682; uint8_t x_683; +x_681 = lean_array_get_size(x_3); +x_682 = lean_unsigned_to_nat(0u); +x_683 = lean_nat_dec_lt(x_682, x_681); +if (x_683 == 0) +{ +lean_object* x_684; +lean_dec(x_681); +x_684 = lean_box(0); +x_606 = x_684; goto block_651; } else { -lean_object* x_654; uint8_t x_655; -x_654 = lean_ctor_get(x_7, 0); -lean_inc(x_654); -x_655 = lean_ctor_get_uint8(x_654, 1); -lean_dec(x_654); -if (x_655 == 0) +size_t x_685; size_t x_686; uint8_t x_687; +x_685 = 0; +x_686 = lean_usize_of_nat(x_681); +lean_dec(x_681); +x_687 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_685, x_686); +if (x_687 == 0) { -lean_object* x_656; -lean_dec(x_1); -x_656 = lean_box(0); -x_628 = x_656; +lean_object* x_688; +x_688 = lean_box(0); +x_606 = x_688; goto block_651; } else { -lean_object* x_657; lean_object* x_658; uint8_t x_659; -x_657 = lean_array_get_size(x_3); -x_658 = lean_unsigned_to_nat(0u); -x_659 = lean_nat_dec_lt(x_658, x_657); -if (x_659 == 0) -{ -lean_object* x_660; -lean_dec(x_657); -x_660 = lean_box(0); -x_585 = x_660; -goto block_627; -} -else -{ -size_t x_661; size_t x_662; uint8_t x_663; -x_661 = 0; -x_662 = lean_usize_of_nat(x_657); -lean_dec(x_657); -x_663 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_661, x_662); -if (x_663 == 0) -{ -lean_object* x_664; -x_664 = lean_box(0); -x_585 = x_664; -goto block_627; -} -else -{ -lean_object* x_665; +lean_object* x_689; lean_dec(x_1); -x_665 = lean_box(0); -x_628 = x_665; -goto block_651; +x_689 = lean_box(0); +x_652 = x_689; +goto block_675; } } } } -block_627: -{ -lean_object* x_586; -lean_dec(x_585); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_586 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_586) == 0) -{ -lean_object* x_587; lean_object* x_588; lean_object* x_589; size_t x_590; size_t x_591; lean_object* x_592; -x_587 = lean_ctor_get(x_586, 0); -lean_inc(x_587); -x_588 = lean_ctor_get(x_586, 1); -lean_inc(x_588); -lean_dec(x_586); -x_589 = lean_array_get_size(x_3); -x_590 = lean_usize_of_nat(x_589); -x_591 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_592 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_590, x_591, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_588); -if (lean_obj_tag(x_592) == 0) -{ -uint8_t x_593; -lean_dec(x_589); -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_1); -x_593 = !lean_is_exclusive(x_592); -if (x_593 == 0) -{ -lean_object* x_594; lean_object* x_595; -x_594 = lean_ctor_get(x_592, 0); -x_595 = l_Lean_mkAppN(x_587, x_594); -lean_ctor_set(x_592, 0, x_595); -return x_592; -} -else -{ -lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; -x_596 = lean_ctor_get(x_592, 0); -x_597 = lean_ctor_get(x_592, 1); -lean_inc(x_597); -lean_inc(x_596); -lean_dec(x_592); -x_598 = l_Lean_mkAppN(x_587, x_596); -x_599 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_599, 0, x_598); -lean_ctor_set(x_599, 1, x_597); -return x_599; -} -} -else -{ -uint8_t x_600; -x_600 = !lean_is_exclusive(x_592); -if (x_600 == 0) -{ -lean_object* x_601; lean_object* x_602; uint8_t x_603; -x_601 = lean_ctor_get(x_592, 0); -x_602 = lean_ctor_get(x_592, 1); -x_603 = l_Lean_Exception_isRuntime(x_601); -if (x_603 == 0) -{ -if (lean_obj_tag(x_601) == 0) -{ -lean_dec(x_589); -lean_dec(x_587); -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_1); -return x_592; -} -else -{ -lean_object* x_604; lean_object* x_605; uint8_t x_606; -x_604 = lean_ctor_get(x_601, 0); -lean_inc(x_604); -x_605 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_606 = lean_nat_dec_eq(x_605, x_604); -lean_dec(x_604); -if (x_606 == 0) -{ -lean_dec(x_589); -lean_dec(x_587); -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_1); -return x_592; -} -else -{ -uint8_t x_607; -x_607 = l_Lean_Expr_isMVar(x_587); -if (x_607 == 0) -{ -lean_dec(x_589); -lean_dec(x_587); -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_1); -return x_592; -} -else -{ -lean_object* x_608; lean_object* x_609; -lean_free_object(x_592); -x_608 = lean_box(0); -x_609 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_587, x_1, x_589, x_601, x_608, x_5, x_6, x_7, x_8, x_9, x_10, x_602); -return x_609; -} -} -} -} -else -{ -lean_dec(x_589); -lean_dec(x_587); -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_1); -return x_592; -} -} -else -{ -lean_object* x_610; lean_object* x_611; uint8_t x_612; -x_610 = lean_ctor_get(x_592, 0); -x_611 = lean_ctor_get(x_592, 1); -lean_inc(x_611); -lean_inc(x_610); -lean_dec(x_592); -x_612 = l_Lean_Exception_isRuntime(x_610); -if (x_612 == 0) -{ -if (lean_obj_tag(x_610) == 0) -{ -lean_object* x_613; -lean_dec(x_589); -lean_dec(x_587); -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_1); -x_613 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_613, 0, x_610); -lean_ctor_set(x_613, 1, x_611); -return x_613; -} -else -{ -lean_object* x_614; lean_object* x_615; uint8_t x_616; -x_614 = lean_ctor_get(x_610, 0); -lean_inc(x_614); -x_615 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_616 = lean_nat_dec_eq(x_615, x_614); -lean_dec(x_614); -if (x_616 == 0) -{ -lean_object* x_617; -lean_dec(x_589); -lean_dec(x_587); -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_1); -x_617 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_617, 0, x_610); -lean_ctor_set(x_617, 1, x_611); -return x_617; -} -else -{ -uint8_t x_618; -x_618 = l_Lean_Expr_isMVar(x_587); -if (x_618 == 0) -{ -lean_object* x_619; -lean_dec(x_589); -lean_dec(x_587); -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_1); -x_619 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_619, 0, x_610); -lean_ctor_set(x_619, 1, x_611); -return x_619; -} -else -{ -lean_object* x_620; lean_object* x_621; -x_620 = lean_box(0); -x_621 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_587, x_1, x_589, x_610, x_620, x_5, x_6, x_7, x_8, x_9, x_10, x_611); -return x_621; -} -} -} -} -else -{ -lean_object* x_622; -lean_dec(x_589); -lean_dec(x_587); -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_1); -x_622 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_622, 0, x_610); -lean_ctor_set(x_622, 1, x_611); -return x_622; -} -} -} -} -else -{ -uint8_t x_623; -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_3); -lean_dec(x_1); -x_623 = !lean_is_exclusive(x_586); -if (x_623 == 0) -{ -return x_586; -} -else -{ -lean_object* x_624; lean_object* x_625; lean_object* x_626; -x_624 = lean_ctor_get(x_586, 0); -x_625 = lean_ctor_get(x_586, 1); -lean_inc(x_625); -lean_inc(x_624); -lean_dec(x_586); -x_626 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_626, 0, x_624); -lean_ctor_set(x_626, 1, x_625); -return x_626; -} -} -} block_651: { -lean_object* x_629; -lean_dec(x_628); +lean_object* x_607; +lean_dec(x_606); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_629 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_629) == 0) +x_607 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_607) == 0) { -lean_object* x_630; lean_object* x_631; lean_object* x_632; size_t x_633; size_t x_634; lean_object* x_635; -x_630 = lean_ctor_get(x_629, 0); -lean_inc(x_630); -x_631 = lean_ctor_get(x_629, 1); -lean_inc(x_631); -lean_dec(x_629); -x_632 = lean_array_get_size(x_3); -x_633 = lean_usize_of_nat(x_632); -lean_dec(x_632); -x_634 = 0; -x_635 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_633, x_634, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_631); -if (lean_obj_tag(x_635) == 0) +lean_object* x_608; lean_object* x_609; lean_object* x_610; size_t x_611; size_t x_612; lean_object* x_613; +x_608 = lean_ctor_get(x_607, 0); +lean_inc(x_608); +x_609 = lean_ctor_get(x_607, 1); +lean_inc(x_609); +lean_dec(x_607); +x_610 = lean_array_get_size(x_3); +x_611 = lean_usize_of_nat(x_610); +x_612 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_613 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_611, x_612, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_609); +if (lean_obj_tag(x_613) == 0) { -uint8_t x_636; -x_636 = !lean_is_exclusive(x_635); -if (x_636 == 0) +uint8_t x_614; +lean_dec(x_610); +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_1); +x_614 = !lean_is_exclusive(x_613); +if (x_614 == 0) { -lean_object* x_637; lean_object* x_638; -x_637 = lean_ctor_get(x_635, 0); -x_638 = l_Lean_mkAppN(x_630, x_637); -lean_ctor_set(x_635, 0, x_638); -return x_635; +lean_object* x_615; lean_object* x_616; +x_615 = lean_ctor_get(x_613, 0); +x_616 = l_Lean_mkAppN(x_608, x_615); +lean_ctor_set(x_613, 0, x_616); +return x_613; } else { -lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_639 = lean_ctor_get(x_635, 0); -x_640 = lean_ctor_get(x_635, 1); -lean_inc(x_640); -lean_inc(x_639); -lean_dec(x_635); -x_641 = l_Lean_mkAppN(x_630, x_639); -x_642 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_642, 0, x_641); -lean_ctor_set(x_642, 1, x_640); +lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_617 = lean_ctor_get(x_613, 0); +x_618 = lean_ctor_get(x_613, 1); +lean_inc(x_618); +lean_inc(x_617); +lean_dec(x_613); +x_619 = l_Lean_mkAppN(x_608, x_617); +x_620 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_620, 0, x_619); +lean_ctor_set(x_620, 1, x_618); +return x_620; +} +} +else +{ +uint8_t x_621; +x_621 = !lean_is_exclusive(x_613); +if (x_621 == 0) +{ +lean_object* x_622; lean_object* x_623; uint8_t x_624; +x_622 = lean_ctor_get(x_613, 0); +x_623 = lean_ctor_get(x_613, 1); +x_624 = l_Lean_Exception_isInterrupt(x_622); +if (x_624 == 0) +{ +uint8_t x_625; +x_625 = l_Lean_Exception_isRuntime(x_622); +if (x_625 == 0) +{ +if (lean_obj_tag(x_622) == 0) +{ +lean_dec(x_610); +lean_dec(x_608); +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_1); +return x_613; +} +else +{ +lean_object* x_626; lean_object* x_627; uint8_t x_628; +x_626 = lean_ctor_get(x_622, 0); +lean_inc(x_626); +x_627 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_628 = lean_nat_dec_eq(x_627, x_626); +lean_dec(x_626); +if (x_628 == 0) +{ +lean_dec(x_610); +lean_dec(x_608); +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_1); +return x_613; +} +else +{ +uint8_t x_629; +x_629 = l_Lean_Expr_isMVar(x_608); +if (x_629 == 0) +{ +lean_dec(x_610); +lean_dec(x_608); +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_1); +return x_613; +} +else +{ +lean_object* x_630; lean_object* x_631; +lean_free_object(x_613); +x_630 = lean_box(0); +x_631 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_608, x_1, x_610, x_622, x_630, x_5, x_6, x_7, x_8, x_9, x_10, x_623); +return x_631; +} +} +} +} +else +{ +lean_dec(x_610); +lean_dec(x_608); +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_1); +return x_613; +} +} +else +{ +lean_dec(x_610); +lean_dec(x_608); +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_1); +return x_613; +} +} +else +{ +lean_object* x_632; lean_object* x_633; uint8_t x_634; +x_632 = lean_ctor_get(x_613, 0); +x_633 = lean_ctor_get(x_613, 1); +lean_inc(x_633); +lean_inc(x_632); +lean_dec(x_613); +x_634 = l_Lean_Exception_isInterrupt(x_632); +if (x_634 == 0) +{ +uint8_t x_635; +x_635 = l_Lean_Exception_isRuntime(x_632); +if (x_635 == 0) +{ +if (lean_obj_tag(x_632) == 0) +{ +lean_object* x_636; +lean_dec(x_610); +lean_dec(x_608); +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_1); +x_636 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_636, 0, x_632); +lean_ctor_set(x_636, 1, x_633); +return x_636; +} +else +{ +lean_object* x_637; lean_object* x_638; uint8_t x_639; +x_637 = lean_ctor_get(x_632, 0); +lean_inc(x_637); +x_638 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_639 = lean_nat_dec_eq(x_638, x_637); +lean_dec(x_637); +if (x_639 == 0) +{ +lean_object* x_640; +lean_dec(x_610); +lean_dec(x_608); +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_1); +x_640 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_640, 0, x_632); +lean_ctor_set(x_640, 1, x_633); +return x_640; +} +else +{ +uint8_t x_641; +x_641 = l_Lean_Expr_isMVar(x_608); +if (x_641 == 0) +{ +lean_object* x_642; +lean_dec(x_610); +lean_dec(x_608); +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_1); +x_642 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_642, 0, x_632); +lean_ctor_set(x_642, 1, x_633); return x_642; } +else +{ +lean_object* x_643; lean_object* x_644; +x_643 = lean_box(0); +x_644 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_608, x_1, x_610, x_632, x_643, x_5, x_6, x_7, x_8, x_9, x_10, x_633); +return x_644; +} +} +} } else { -uint8_t x_643; -lean_dec(x_630); -x_643 = !lean_is_exclusive(x_635); -if (x_643 == 0) -{ -return x_635; +lean_object* x_645; +lean_dec(x_610); +lean_dec(x_608); +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_1); +x_645 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_645, 0, x_632); +lean_ctor_set(x_645, 1, x_633); +return x_645; +} } else { -lean_object* x_644; lean_object* x_645; lean_object* x_646; -x_644 = lean_ctor_get(x_635, 0); -x_645 = lean_ctor_get(x_635, 1); -lean_inc(x_645); -lean_inc(x_644); -lean_dec(x_635); +lean_object* x_646; +lean_dec(x_610); +lean_dec(x_608); +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_1); x_646 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_646, 0, x_644); -lean_ctor_set(x_646, 1, x_645); +lean_ctor_set(x_646, 0, x_632); +lean_ctor_set(x_646, 1, x_633); return x_646; } } } +} else { uint8_t x_647; @@ -24847,19 +25167,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_647 = !lean_is_exclusive(x_629); +lean_dec(x_1); +x_647 = !lean_is_exclusive(x_607); if (x_647 == 0) { -return x_629; +return x_607; } else { lean_object* x_648; lean_object* x_649; lean_object* x_650; -x_648 = lean_ctor_get(x_629, 0); -x_649 = lean_ctor_get(x_629, 1); +x_648 = lean_ctor_get(x_607, 0); +x_649 = lean_ctor_get(x_607, 1); lean_inc(x_649); lean_inc(x_648); -lean_dec(x_629); +lean_dec(x_607); x_650 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_650, 0, x_648); lean_ctor_set(x_650, 1, x_649); @@ -24867,439 +25188,478 @@ return x_650; } } } +block_675: +{ +lean_object* x_653; +lean_dec(x_652); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_653 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_653) == 0) +{ +lean_object* x_654; lean_object* x_655; lean_object* x_656; size_t x_657; size_t x_658; lean_object* x_659; +x_654 = lean_ctor_get(x_653, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_653, 1); +lean_inc(x_655); +lean_dec(x_653); +x_656 = lean_array_get_size(x_3); +x_657 = lean_usize_of_nat(x_656); +lean_dec(x_656); +x_658 = 0; +x_659 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_657, x_658, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_655); +if (lean_obj_tag(x_659) == 0) +{ +uint8_t x_660; +x_660 = !lean_is_exclusive(x_659); +if (x_660 == 0) +{ +lean_object* x_661; lean_object* x_662; +x_661 = lean_ctor_get(x_659, 0); +x_662 = l_Lean_mkAppN(x_654, x_661); +lean_ctor_set(x_659, 0, x_662); +return x_659; +} +else +{ +lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; +x_663 = lean_ctor_get(x_659, 0); +x_664 = lean_ctor_get(x_659, 1); +lean_inc(x_664); +lean_inc(x_663); +lean_dec(x_659); +x_665 = l_Lean_mkAppN(x_654, x_663); +x_666 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_664); +return x_666; +} +} +else +{ +uint8_t x_667; +lean_dec(x_654); +x_667 = !lean_is_exclusive(x_659); +if (x_667 == 0) +{ +return x_659; +} +else +{ +lean_object* x_668; lean_object* x_669; lean_object* x_670; +x_668 = lean_ctor_get(x_659, 0); +x_669 = lean_ctor_get(x_659, 1); +lean_inc(x_669); +lean_inc(x_668); +lean_dec(x_659); +x_670 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_670, 0, x_668); +lean_ctor_set(x_670, 1, x_669); +return x_670; +} +} +} +else +{ +uint8_t x_671; +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_3); +x_671 = !lean_is_exclusive(x_653); +if (x_671 == 0) +{ +return x_653; +} +else +{ +lean_object* x_672; lean_object* x_673; lean_object* x_674; +x_672 = lean_ctor_get(x_653, 0); +x_673 = lean_ctor_get(x_653, 1); +lean_inc(x_673); +lean_inc(x_672); +lean_dec(x_653); +x_674 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_674, 0, x_672); +lean_ctor_set(x_674, 1, x_673); +return x_674; +} +} +} } case 9: { -lean_object* x_666; lean_object* x_709; uint8_t x_733; +lean_object* x_690; lean_object* x_736; uint8_t x_760; lean_dec(x_4); -x_733 = l_Lean_Expr_isMVar(x_2); -if (x_733 == 0) +x_760 = l_Lean_Expr_isMVar(x_2); +if (x_760 == 0) { -lean_object* x_734; +lean_object* x_761; lean_dec(x_1); -x_734 = lean_box(0); -x_709 = x_734; -goto block_732; +x_761 = lean_box(0); +x_736 = x_761; +goto block_759; } else { -lean_object* x_735; uint8_t x_736; -x_735 = lean_ctor_get(x_7, 0); -lean_inc(x_735); -x_736 = lean_ctor_get_uint8(x_735, 1); -lean_dec(x_735); -if (x_736 == 0) +lean_object* x_762; uint8_t x_763; +x_762 = lean_ctor_get(x_7, 0); +lean_inc(x_762); +x_763 = lean_ctor_get_uint8(x_762, 1); +lean_dec(x_762); +if (x_763 == 0) { -lean_object* x_737; +lean_object* x_764; lean_dec(x_1); -x_737 = lean_box(0); -x_709 = x_737; -goto block_732; +x_764 = lean_box(0); +x_736 = x_764; +goto block_759; } else { -lean_object* x_738; lean_object* x_739; uint8_t x_740; -x_738 = lean_array_get_size(x_3); -x_739 = lean_unsigned_to_nat(0u); -x_740 = lean_nat_dec_lt(x_739, x_738); -if (x_740 == 0) +lean_object* x_765; lean_object* x_766; uint8_t x_767; +x_765 = lean_array_get_size(x_3); +x_766 = lean_unsigned_to_nat(0u); +x_767 = lean_nat_dec_lt(x_766, x_765); +if (x_767 == 0) { -lean_object* x_741; -lean_dec(x_738); -x_741 = lean_box(0); -x_666 = x_741; -goto block_708; +lean_object* x_768; +lean_dec(x_765); +x_768 = lean_box(0); +x_690 = x_768; +goto block_735; } else { -size_t x_742; size_t x_743; uint8_t x_744; -x_742 = 0; -x_743 = lean_usize_of_nat(x_738); -lean_dec(x_738); -x_744 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_742, x_743); -if (x_744 == 0) +size_t x_769; size_t x_770; uint8_t x_771; +x_769 = 0; +x_770 = lean_usize_of_nat(x_765); +lean_dec(x_765); +x_771 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_769, x_770); +if (x_771 == 0) { -lean_object* x_745; -x_745 = lean_box(0); -x_666 = x_745; -goto block_708; +lean_object* x_772; +x_772 = lean_box(0); +x_690 = x_772; +goto block_735; } else { -lean_object* x_746; +lean_object* x_773; lean_dec(x_1); -x_746 = lean_box(0); -x_709 = x_746; -goto block_732; +x_773 = lean_box(0); +x_736 = x_773; +goto block_759; } } } } -block_708: +block_735: { -lean_object* x_667; -lean_dec(x_666); +lean_object* x_691; +lean_dec(x_690); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_667 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_667) == 0) -{ -lean_object* x_668; lean_object* x_669; lean_object* x_670; size_t x_671; size_t x_672; lean_object* x_673; -x_668 = lean_ctor_get(x_667, 0); -lean_inc(x_668); -x_669 = lean_ctor_get(x_667, 1); -lean_inc(x_669); -lean_dec(x_667); -x_670 = lean_array_get_size(x_3); -x_671 = lean_usize_of_nat(x_670); -x_672 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_673 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_671, x_672, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_669); -if (lean_obj_tag(x_673) == 0) -{ -uint8_t x_674; -lean_dec(x_670); -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_1); -x_674 = !lean_is_exclusive(x_673); -if (x_674 == 0) -{ -lean_object* x_675; lean_object* x_676; -x_675 = lean_ctor_get(x_673, 0); -x_676 = l_Lean_mkAppN(x_668, x_675); -lean_ctor_set(x_673, 0, x_676); -return x_673; -} -else -{ -lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_677 = lean_ctor_get(x_673, 0); -x_678 = lean_ctor_get(x_673, 1); -lean_inc(x_678); -lean_inc(x_677); -lean_dec(x_673); -x_679 = l_Lean_mkAppN(x_668, x_677); -x_680 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_678); -return x_680; -} -} -else -{ -uint8_t x_681; -x_681 = !lean_is_exclusive(x_673); -if (x_681 == 0) -{ -lean_object* x_682; lean_object* x_683; uint8_t x_684; -x_682 = lean_ctor_get(x_673, 0); -x_683 = lean_ctor_get(x_673, 1); -x_684 = l_Lean_Exception_isRuntime(x_682); -if (x_684 == 0) -{ -if (lean_obj_tag(x_682) == 0) -{ -lean_dec(x_670); -lean_dec(x_668); -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_1); -return x_673; -} -else -{ -lean_object* x_685; lean_object* x_686; uint8_t x_687; -x_685 = lean_ctor_get(x_682, 0); -lean_inc(x_685); -x_686 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_687 = lean_nat_dec_eq(x_686, x_685); -lean_dec(x_685); -if (x_687 == 0) -{ -lean_dec(x_670); -lean_dec(x_668); -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_1); -return x_673; -} -else -{ -uint8_t x_688; -x_688 = l_Lean_Expr_isMVar(x_668); -if (x_688 == 0) -{ -lean_dec(x_670); -lean_dec(x_668); -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_1); -return x_673; -} -else -{ -lean_object* x_689; lean_object* x_690; -lean_free_object(x_673); -x_689 = lean_box(0); -x_690 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_668, x_1, x_670, x_682, x_689, x_5, x_6, x_7, x_8, x_9, x_10, x_683); -return x_690; -} -} -} -} -else -{ -lean_dec(x_670); -lean_dec(x_668); -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_1); -return x_673; -} -} -else -{ -lean_object* x_691; lean_object* x_692; uint8_t x_693; -x_691 = lean_ctor_get(x_673, 0); -x_692 = lean_ctor_get(x_673, 1); -lean_inc(x_692); -lean_inc(x_691); -lean_dec(x_673); -x_693 = l_Lean_Exception_isRuntime(x_691); -if (x_693 == 0) -{ +x_691 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_691) == 0) { -lean_object* x_694; -lean_dec(x_670); -lean_dec(x_668); -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_1); -x_694 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_694, 0, x_691); -lean_ctor_set(x_694, 1, x_692); -return x_694; -} -else -{ -lean_object* x_695; lean_object* x_696; uint8_t x_697; -x_695 = lean_ctor_get(x_691, 0); -lean_inc(x_695); -x_696 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_697 = lean_nat_dec_eq(x_696, x_695); -lean_dec(x_695); -if (x_697 == 0) -{ -lean_object* x_698; -lean_dec(x_670); -lean_dec(x_668); -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_1); -x_698 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_698, 0, x_691); -lean_ctor_set(x_698, 1, x_692); -return x_698; -} -else -{ -uint8_t x_699; -x_699 = l_Lean_Expr_isMVar(x_668); -if (x_699 == 0) -{ -lean_object* x_700; -lean_dec(x_670); -lean_dec(x_668); -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_1); -x_700 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_700, 0, x_691); -lean_ctor_set(x_700, 1, x_692); -return x_700; -} -else -{ -lean_object* x_701; lean_object* x_702; -x_701 = lean_box(0); -x_702 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_668, x_1, x_670, x_691, x_701, x_5, x_6, x_7, x_8, x_9, x_10, x_692); -return x_702; -} -} -} -} -else -{ -lean_object* x_703; -lean_dec(x_670); -lean_dec(x_668); -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_1); -x_703 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_703, 0, x_691); -lean_ctor_set(x_703, 1, x_692); -return x_703; -} -} -} -} -else -{ -uint8_t x_704; -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_3); -lean_dec(x_1); -x_704 = !lean_is_exclusive(x_667); -if (x_704 == 0) -{ -return x_667; -} -else -{ -lean_object* x_705; lean_object* x_706; lean_object* x_707; -x_705 = lean_ctor_get(x_667, 0); -x_706 = lean_ctor_get(x_667, 1); -lean_inc(x_706); -lean_inc(x_705); -lean_dec(x_667); -x_707 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_707, 0, x_705); -lean_ctor_set(x_707, 1, x_706); -return x_707; -} -} -} -block_732: -{ -lean_object* x_710; -lean_dec(x_709); +lean_object* x_692; lean_object* x_693; lean_object* x_694; size_t x_695; size_t x_696; lean_object* x_697; +x_692 = lean_ctor_get(x_691, 0); +lean_inc(x_692); +x_693 = lean_ctor_get(x_691, 1); +lean_inc(x_693); +lean_dec(x_691); +x_694 = lean_array_get_size(x_3); +x_695 = lean_usize_of_nat(x_694); +x_696 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_710 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_710) == 0) +x_697 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_695, x_696, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_693); +if (lean_obj_tag(x_697) == 0) { -lean_object* x_711; lean_object* x_712; lean_object* x_713; size_t x_714; size_t x_715; lean_object* x_716; -x_711 = lean_ctor_get(x_710, 0); -lean_inc(x_711); -x_712 = lean_ctor_get(x_710, 1); -lean_inc(x_712); +uint8_t x_698; +lean_dec(x_694); +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_1); +x_698 = !lean_is_exclusive(x_697); +if (x_698 == 0) +{ +lean_object* x_699; lean_object* x_700; +x_699 = lean_ctor_get(x_697, 0); +x_700 = l_Lean_mkAppN(x_692, x_699); +lean_ctor_set(x_697, 0, x_700); +return x_697; +} +else +{ +lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; +x_701 = lean_ctor_get(x_697, 0); +x_702 = lean_ctor_get(x_697, 1); +lean_inc(x_702); +lean_inc(x_701); +lean_dec(x_697); +x_703 = l_Lean_mkAppN(x_692, x_701); +x_704 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_704, 0, x_703); +lean_ctor_set(x_704, 1, x_702); +return x_704; +} +} +else +{ +uint8_t x_705; +x_705 = !lean_is_exclusive(x_697); +if (x_705 == 0) +{ +lean_object* x_706; lean_object* x_707; uint8_t x_708; +x_706 = lean_ctor_get(x_697, 0); +x_707 = lean_ctor_get(x_697, 1); +x_708 = l_Lean_Exception_isInterrupt(x_706); +if (x_708 == 0) +{ +uint8_t x_709; +x_709 = l_Lean_Exception_isRuntime(x_706); +if (x_709 == 0) +{ +if (lean_obj_tag(x_706) == 0) +{ +lean_dec(x_694); +lean_dec(x_692); +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_1); +return x_697; +} +else +{ +lean_object* x_710; lean_object* x_711; uint8_t x_712; +x_710 = lean_ctor_get(x_706, 0); +lean_inc(x_710); +x_711 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_712 = lean_nat_dec_eq(x_711, x_710); lean_dec(x_710); -x_713 = lean_array_get_size(x_3); -x_714 = lean_usize_of_nat(x_713); -lean_dec(x_713); -x_715 = 0; -x_716 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_714, x_715, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_712); +if (x_712 == 0) +{ +lean_dec(x_694); +lean_dec(x_692); +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_1); +return x_697; +} +else +{ +uint8_t x_713; +x_713 = l_Lean_Expr_isMVar(x_692); +if (x_713 == 0) +{ +lean_dec(x_694); +lean_dec(x_692); +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_1); +return x_697; +} +else +{ +lean_object* x_714; lean_object* x_715; +lean_free_object(x_697); +x_714 = lean_box(0); +x_715 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_692, x_1, x_694, x_706, x_714, x_5, x_6, x_7, x_8, x_9, x_10, x_707); +return x_715; +} +} +} +} +else +{ +lean_dec(x_694); +lean_dec(x_692); +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_1); +return x_697; +} +} +else +{ +lean_dec(x_694); +lean_dec(x_692); +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_1); +return x_697; +} +} +else +{ +lean_object* x_716; lean_object* x_717; uint8_t x_718; +x_716 = lean_ctor_get(x_697, 0); +x_717 = lean_ctor_get(x_697, 1); +lean_inc(x_717); +lean_inc(x_716); +lean_dec(x_697); +x_718 = l_Lean_Exception_isInterrupt(x_716); +if (x_718 == 0) +{ +uint8_t x_719; +x_719 = l_Lean_Exception_isRuntime(x_716); +if (x_719 == 0) +{ if (lean_obj_tag(x_716) == 0) { -uint8_t x_717; -x_717 = !lean_is_exclusive(x_716); -if (x_717 == 0) -{ -lean_object* x_718; lean_object* x_719; -x_718 = lean_ctor_get(x_716, 0); -x_719 = l_Lean_mkAppN(x_711, x_718); -lean_ctor_set(x_716, 0, x_719); -return x_716; +lean_object* x_720; +lean_dec(x_694); +lean_dec(x_692); +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_1); +x_720 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_720, 0, x_716); +lean_ctor_set(x_720, 1, x_717); +return x_720; } else { -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; -x_720 = lean_ctor_get(x_716, 0); -x_721 = lean_ctor_get(x_716, 1); +lean_object* x_721; lean_object* x_722; uint8_t x_723; +x_721 = lean_ctor_get(x_716, 0); lean_inc(x_721); -lean_inc(x_720); -lean_dec(x_716); -x_722 = l_Lean_mkAppN(x_711, x_720); -x_723 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_723, 0, x_722); -lean_ctor_set(x_723, 1, x_721); -return x_723; -} +x_722 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_723 = lean_nat_dec_eq(x_722, x_721); +lean_dec(x_721); +if (x_723 == 0) +{ +lean_object* x_724; +lean_dec(x_694); +lean_dec(x_692); +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_1); +x_724 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_724, 0, x_716); +lean_ctor_set(x_724, 1, x_717); +return x_724; } else { -uint8_t x_724; -lean_dec(x_711); -x_724 = !lean_is_exclusive(x_716); -if (x_724 == 0) +uint8_t x_725; +x_725 = l_Lean_Expr_isMVar(x_692); +if (x_725 == 0) { -return x_716; +lean_object* x_726; +lean_dec(x_694); +lean_dec(x_692); +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_1); +x_726 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_726, 0, x_716); +lean_ctor_set(x_726, 1, x_717); +return x_726; } else { -lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_725 = lean_ctor_get(x_716, 0); -x_726 = lean_ctor_get(x_716, 1); -lean_inc(x_726); -lean_inc(x_725); -lean_dec(x_716); -x_727 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_727, 0, x_725); -lean_ctor_set(x_727, 1, x_726); -return x_727; +lean_object* x_727; lean_object* x_728; +x_727 = lean_box(0); +x_728 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_692, x_1, x_694, x_716, x_727, x_5, x_6, x_7, x_8, x_9, x_10, x_717); +return x_728; +} } } } else { -uint8_t x_728; +lean_object* x_729; +lean_dec(x_694); +lean_dec(x_692); +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_1); +x_729 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_729, 0, x_716); +lean_ctor_set(x_729, 1, x_717); +return x_729; +} +} +else +{ +lean_object* x_730; +lean_dec(x_694); +lean_dec(x_692); +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_1); +x_730 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_730, 0, x_716); +lean_ctor_set(x_730, 1, x_717); +return x_730; +} +} +} +} +else +{ +uint8_t x_731; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25307,287 +25667,233 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_728 = !lean_is_exclusive(x_710); -if (x_728 == 0) +lean_dec(x_1); +x_731 = !lean_is_exclusive(x_691); +if (x_731 == 0) { -return x_710; +return x_691; } else { -lean_object* x_729; lean_object* x_730; lean_object* x_731; -x_729 = lean_ctor_get(x_710, 0); -x_730 = lean_ctor_get(x_710, 1); -lean_inc(x_730); -lean_inc(x_729); -lean_dec(x_710); -x_731 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_731, 0, x_729); -lean_ctor_set(x_731, 1, x_730); -return x_731; +lean_object* x_732; lean_object* x_733; lean_object* x_734; +x_732 = lean_ctor_get(x_691, 0); +x_733 = lean_ctor_get(x_691, 1); +lean_inc(x_733); +lean_inc(x_732); +lean_dec(x_691); +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_732); +lean_ctor_set(x_734, 1, x_733); +return x_734; +} +} +} +block_759: +{ +lean_object* x_737; +lean_dec(x_736); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_737 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_737) == 0) +{ +lean_object* x_738; lean_object* x_739; lean_object* x_740; size_t x_741; size_t x_742; lean_object* x_743; +x_738 = lean_ctor_get(x_737, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_737, 1); +lean_inc(x_739); +lean_dec(x_737); +x_740 = lean_array_get_size(x_3); +x_741 = lean_usize_of_nat(x_740); +lean_dec(x_740); +x_742 = 0; +x_743 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_741, x_742, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_739); +if (lean_obj_tag(x_743) == 0) +{ +uint8_t x_744; +x_744 = !lean_is_exclusive(x_743); +if (x_744 == 0) +{ +lean_object* x_745; lean_object* x_746; +x_745 = lean_ctor_get(x_743, 0); +x_746 = l_Lean_mkAppN(x_738, x_745); +lean_ctor_set(x_743, 0, x_746); +return x_743; +} +else +{ +lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; +x_747 = lean_ctor_get(x_743, 0); +x_748 = lean_ctor_get(x_743, 1); +lean_inc(x_748); +lean_inc(x_747); +lean_dec(x_743); +x_749 = l_Lean_mkAppN(x_738, x_747); +x_750 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_750, 0, x_749); +lean_ctor_set(x_750, 1, x_748); +return x_750; +} +} +else +{ +uint8_t x_751; +lean_dec(x_738); +x_751 = !lean_is_exclusive(x_743); +if (x_751 == 0) +{ +return x_743; +} +else +{ +lean_object* x_752; lean_object* x_753; lean_object* x_754; +x_752 = lean_ctor_get(x_743, 0); +x_753 = lean_ctor_get(x_743, 1); +lean_inc(x_753); +lean_inc(x_752); +lean_dec(x_743); +x_754 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_754, 0, x_752); +lean_ctor_set(x_754, 1, x_753); +return x_754; +} +} +} +else +{ +uint8_t x_755; +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_3); +x_755 = !lean_is_exclusive(x_737); +if (x_755 == 0) +{ +return x_737; +} +else +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; +x_756 = lean_ctor_get(x_737, 0); +x_757 = lean_ctor_get(x_737, 1); +lean_inc(x_757); +lean_inc(x_756); +lean_dec(x_737); +x_758 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_758, 0, x_756); +lean_ctor_set(x_758, 1, x_757); +return x_758; } } } } case 10: { -lean_object* x_747; lean_object* x_790; uint8_t x_814; +lean_object* x_774; lean_object* x_820; uint8_t x_844; lean_dec(x_4); -x_814 = l_Lean_Expr_isMVar(x_2); -if (x_814 == 0) +x_844 = l_Lean_Expr_isMVar(x_2); +if (x_844 == 0) { -lean_object* x_815; +lean_object* x_845; lean_dec(x_1); -x_815 = lean_box(0); -x_790 = x_815; -goto block_813; +x_845 = lean_box(0); +x_820 = x_845; +goto block_843; } else { -lean_object* x_816; uint8_t x_817; -x_816 = lean_ctor_get(x_7, 0); -lean_inc(x_816); -x_817 = lean_ctor_get_uint8(x_816, 1); -lean_dec(x_816); -if (x_817 == 0) +lean_object* x_846; uint8_t x_847; +x_846 = lean_ctor_get(x_7, 0); +lean_inc(x_846); +x_847 = lean_ctor_get_uint8(x_846, 1); +lean_dec(x_846); +if (x_847 == 0) { -lean_object* x_818; +lean_object* x_848; lean_dec(x_1); -x_818 = lean_box(0); -x_790 = x_818; -goto block_813; +x_848 = lean_box(0); +x_820 = x_848; +goto block_843; } else { -lean_object* x_819; lean_object* x_820; uint8_t x_821; -x_819 = lean_array_get_size(x_3); -x_820 = lean_unsigned_to_nat(0u); -x_821 = lean_nat_dec_lt(x_820, x_819); -if (x_821 == 0) +lean_object* x_849; lean_object* x_850; uint8_t x_851; +x_849 = lean_array_get_size(x_3); +x_850 = lean_unsigned_to_nat(0u); +x_851 = lean_nat_dec_lt(x_850, x_849); +if (x_851 == 0) { -lean_object* x_822; -lean_dec(x_819); -x_822 = lean_box(0); -x_747 = x_822; -goto block_789; +lean_object* x_852; +lean_dec(x_849); +x_852 = lean_box(0); +x_774 = x_852; +goto block_819; } else { -size_t x_823; size_t x_824; uint8_t x_825; -x_823 = 0; -x_824 = lean_usize_of_nat(x_819); -lean_dec(x_819); -x_825 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_823, x_824); -if (x_825 == 0) +size_t x_853; size_t x_854; uint8_t x_855; +x_853 = 0; +x_854 = lean_usize_of_nat(x_849); +lean_dec(x_849); +x_855 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_853, x_854); +if (x_855 == 0) { -lean_object* x_826; -x_826 = lean_box(0); -x_747 = x_826; -goto block_789; +lean_object* x_856; +x_856 = lean_box(0); +x_774 = x_856; +goto block_819; } else { -lean_object* x_827; +lean_object* x_857; lean_dec(x_1); -x_827 = lean_box(0); -x_790 = x_827; -goto block_813; +x_857 = lean_box(0); +x_820 = x_857; +goto block_843; } } } } -block_789: -{ -lean_object* x_748; -lean_dec(x_747); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_748 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_748) == 0) -{ -lean_object* x_749; lean_object* x_750; lean_object* x_751; size_t x_752; size_t x_753; lean_object* x_754; -x_749 = lean_ctor_get(x_748, 0); -lean_inc(x_749); -x_750 = lean_ctor_get(x_748, 1); -lean_inc(x_750); -lean_dec(x_748); -x_751 = lean_array_get_size(x_3); -x_752 = lean_usize_of_nat(x_751); -x_753 = 0; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_754 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_752, x_753, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_750); -if (lean_obj_tag(x_754) == 0) -{ -uint8_t x_755; -lean_dec(x_751); -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_1); -x_755 = !lean_is_exclusive(x_754); -if (x_755 == 0) -{ -lean_object* x_756; lean_object* x_757; -x_756 = lean_ctor_get(x_754, 0); -x_757 = l_Lean_mkAppN(x_749, x_756); -lean_ctor_set(x_754, 0, x_757); -return x_754; -} -else -{ -lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; -x_758 = lean_ctor_get(x_754, 0); -x_759 = lean_ctor_get(x_754, 1); -lean_inc(x_759); -lean_inc(x_758); -lean_dec(x_754); -x_760 = l_Lean_mkAppN(x_749, x_758); -x_761 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_761, 0, x_760); -lean_ctor_set(x_761, 1, x_759); -return x_761; -} -} -else -{ -uint8_t x_762; -x_762 = !lean_is_exclusive(x_754); -if (x_762 == 0) -{ -lean_object* x_763; lean_object* x_764; uint8_t x_765; -x_763 = lean_ctor_get(x_754, 0); -x_764 = lean_ctor_get(x_754, 1); -x_765 = l_Lean_Exception_isRuntime(x_763); -if (x_765 == 0) -{ -if (lean_obj_tag(x_763) == 0) -{ -lean_dec(x_751); -lean_dec(x_749); -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_1); -return x_754; -} -else -{ -lean_object* x_766; lean_object* x_767; uint8_t x_768; -x_766 = lean_ctor_get(x_763, 0); -lean_inc(x_766); -x_767 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_768 = lean_nat_dec_eq(x_767, x_766); -lean_dec(x_766); -if (x_768 == 0) -{ -lean_dec(x_751); -lean_dec(x_749); -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_1); -return x_754; -} -else -{ -uint8_t x_769; -x_769 = l_Lean_Expr_isMVar(x_749); -if (x_769 == 0) -{ -lean_dec(x_751); -lean_dec(x_749); -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_1); -return x_754; -} -else -{ -lean_object* x_770; lean_object* x_771; -lean_free_object(x_754); -x_770 = lean_box(0); -x_771 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_749, x_1, x_751, x_763, x_770, x_5, x_6, x_7, x_8, x_9, x_10, x_764); -return x_771; -} -} -} -} -else -{ -lean_dec(x_751); -lean_dec(x_749); -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_1); -return x_754; -} -} -else -{ -lean_object* x_772; lean_object* x_773; uint8_t x_774; -x_772 = lean_ctor_get(x_754, 0); -x_773 = lean_ctor_get(x_754, 1); -lean_inc(x_773); -lean_inc(x_772); -lean_dec(x_754); -x_774 = l_Lean_Exception_isRuntime(x_772); -if (x_774 == 0) -{ -if (lean_obj_tag(x_772) == 0) +block_819: { lean_object* x_775; -lean_dec(x_751); -lean_dec(x_749); -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_1); -x_775 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_775, 0, x_772); -lean_ctor_set(x_775, 1, x_773); -return x_775; -} -else +lean_dec(x_774); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_775 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_775) == 0) { -lean_object* x_776; lean_object* x_777; uint8_t x_778; -x_776 = lean_ctor_get(x_772, 0); +lean_object* x_776; lean_object* x_777; lean_object* x_778; size_t x_779; size_t x_780; lean_object* x_781; +x_776 = lean_ctor_get(x_775, 0); lean_inc(x_776); -x_777 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_778 = lean_nat_dec_eq(x_777, x_776); -lean_dec(x_776); -if (x_778 == 0) +x_777 = lean_ctor_get(x_775, 1); +lean_inc(x_777); +lean_dec(x_775); +x_778 = lean_array_get_size(x_3); +x_779 = lean_usize_of_nat(x_778); +x_780 = 0; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_781 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_779, x_780, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_777); +if (lean_obj_tag(x_781) == 0) { -lean_object* x_779; -lean_dec(x_751); -lean_dec(x_749); +uint8_t x_782; +lean_dec(x_778); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25595,47 +25901,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_779 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_779, 0, x_772); -lean_ctor_set(x_779, 1, x_773); -return x_779; -} -else +x_782 = !lean_is_exclusive(x_781); +if (x_782 == 0) { -uint8_t x_780; -x_780 = l_Lean_Expr_isMVar(x_749); -if (x_780 == 0) -{ -lean_object* x_781; -lean_dec(x_751); -lean_dec(x_749); -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_1); -x_781 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_781, 0, x_772); -lean_ctor_set(x_781, 1, x_773); +lean_object* x_783; lean_object* x_784; +x_783 = lean_ctor_get(x_781, 0); +x_784 = l_Lean_mkAppN(x_776, x_783); +lean_ctor_set(x_781, 0, x_784); return x_781; } else { -lean_object* x_782; lean_object* x_783; -x_782 = lean_box(0); -x_783 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_749, x_1, x_751, x_772, x_782, x_5, x_6, x_7, x_8, x_9, x_10, x_773); -return x_783; -} -} +lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; +x_785 = lean_ctor_get(x_781, 0); +x_786 = lean_ctor_get(x_781, 1); +lean_inc(x_786); +lean_inc(x_785); +lean_dec(x_781); +x_787 = l_Lean_mkAppN(x_776, x_785); +x_788 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_788, 0, x_787); +lean_ctor_set(x_788, 1, x_786); +return x_788; } } else { -lean_object* x_784; -lean_dec(x_751); -lean_dec(x_749); +uint8_t x_789; +x_789 = !lean_is_exclusive(x_781); +if (x_789 == 0) +{ +lean_object* x_790; lean_object* x_791; uint8_t x_792; +x_790 = lean_ctor_get(x_781, 0); +x_791 = lean_ctor_get(x_781, 1); +x_792 = l_Lean_Exception_isInterrupt(x_790); +if (x_792 == 0) +{ +uint8_t x_793; +x_793 = l_Lean_Exception_isRuntime(x_790); +if (x_793 == 0) +{ +if (lean_obj_tag(x_790) == 0) +{ +lean_dec(x_778); +lean_dec(x_776); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25643,17 +25952,214 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_784 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_784, 0, x_772); -lean_ctor_set(x_784, 1, x_773); -return x_784; +return x_781; +} +else +{ +lean_object* x_794; lean_object* x_795; uint8_t x_796; +x_794 = lean_ctor_get(x_790, 0); +lean_inc(x_794); +x_795 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_796 = lean_nat_dec_eq(x_795, x_794); +lean_dec(x_794); +if (x_796 == 0) +{ +lean_dec(x_778); +lean_dec(x_776); +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_1); +return x_781; +} +else +{ +uint8_t x_797; +x_797 = l_Lean_Expr_isMVar(x_776); +if (x_797 == 0) +{ +lean_dec(x_778); +lean_dec(x_776); +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_1); +return x_781; +} +else +{ +lean_object* x_798; lean_object* x_799; +lean_free_object(x_781); +x_798 = lean_box(0); +x_799 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_776, x_1, x_778, x_790, x_798, x_5, x_6, x_7, x_8, x_9, x_10, x_791); +return x_799; } } } } else { -uint8_t x_785; +lean_dec(x_778); +lean_dec(x_776); +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_1); +return x_781; +} +} +else +{ +lean_dec(x_778); +lean_dec(x_776); +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_1); +return x_781; +} +} +else +{ +lean_object* x_800; lean_object* x_801; uint8_t x_802; +x_800 = lean_ctor_get(x_781, 0); +x_801 = lean_ctor_get(x_781, 1); +lean_inc(x_801); +lean_inc(x_800); +lean_dec(x_781); +x_802 = l_Lean_Exception_isInterrupt(x_800); +if (x_802 == 0) +{ +uint8_t x_803; +x_803 = l_Lean_Exception_isRuntime(x_800); +if (x_803 == 0) +{ +if (lean_obj_tag(x_800) == 0) +{ +lean_object* x_804; +lean_dec(x_778); +lean_dec(x_776); +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_1); +x_804 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_804, 0, x_800); +lean_ctor_set(x_804, 1, x_801); +return x_804; +} +else +{ +lean_object* x_805; lean_object* x_806; uint8_t x_807; +x_805 = lean_ctor_get(x_800, 0); +lean_inc(x_805); +x_806 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_807 = lean_nat_dec_eq(x_806, x_805); +lean_dec(x_805); +if (x_807 == 0) +{ +lean_object* x_808; +lean_dec(x_778); +lean_dec(x_776); +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_1); +x_808 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_808, 0, x_800); +lean_ctor_set(x_808, 1, x_801); +return x_808; +} +else +{ +uint8_t x_809; +x_809 = l_Lean_Expr_isMVar(x_776); +if (x_809 == 0) +{ +lean_object* x_810; +lean_dec(x_778); +lean_dec(x_776); +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_1); +x_810 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_810, 0, x_800); +lean_ctor_set(x_810, 1, x_801); +return x_810; +} +else +{ +lean_object* x_811; lean_object* x_812; +x_811 = lean_box(0); +x_812 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_776, x_1, x_778, x_800, x_811, x_5, x_6, x_7, x_8, x_9, x_10, x_801); +return x_812; +} +} +} +} +else +{ +lean_object* x_813; +lean_dec(x_778); +lean_dec(x_776); +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_1); +x_813 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_813, 0, x_800); +lean_ctor_set(x_813, 1, x_801); +return x_813; +} +} +else +{ +lean_object* x_814; +lean_dec(x_778); +lean_dec(x_776); +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_1); +x_814 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_814, 0, x_800); +lean_ctor_set(x_814, 1, x_801); +return x_814; +} +} +} +} +else +{ +uint8_t x_815; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25662,104 +26168,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_785 = !lean_is_exclusive(x_748); -if (x_785 == 0) +x_815 = !lean_is_exclusive(x_775); +if (x_815 == 0) { -return x_748; +return x_775; } else { -lean_object* x_786; lean_object* x_787; lean_object* x_788; -x_786 = lean_ctor_get(x_748, 0); -x_787 = lean_ctor_get(x_748, 1); -lean_inc(x_787); -lean_inc(x_786); -lean_dec(x_748); -x_788 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_788, 0, x_786); -lean_ctor_set(x_788, 1, x_787); -return x_788; +lean_object* x_816; lean_object* x_817; lean_object* x_818; +x_816 = lean_ctor_get(x_775, 0); +x_817 = lean_ctor_get(x_775, 1); +lean_inc(x_817); +lean_inc(x_816); +lean_dec(x_775); +x_818 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_818, 0, x_816); +lean_ctor_set(x_818, 1, x_817); +return x_818; } } } -block_813: +block_843: { -lean_object* x_791; -lean_dec(x_790); +lean_object* x_821; +lean_dec(x_820); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_791 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_791) == 0) +x_821 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_821) == 0) { -lean_object* x_792; lean_object* x_793; lean_object* x_794; size_t x_795; size_t x_796; lean_object* x_797; -x_792 = lean_ctor_get(x_791, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_791, 1); -lean_inc(x_793); -lean_dec(x_791); -x_794 = lean_array_get_size(x_3); -x_795 = lean_usize_of_nat(x_794); -lean_dec(x_794); -x_796 = 0; -x_797 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_795, x_796, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_793); -if (lean_obj_tag(x_797) == 0) +lean_object* x_822; lean_object* x_823; lean_object* x_824; size_t x_825; size_t x_826; lean_object* x_827; +x_822 = lean_ctor_get(x_821, 0); +lean_inc(x_822); +x_823 = lean_ctor_get(x_821, 1); +lean_inc(x_823); +lean_dec(x_821); +x_824 = lean_array_get_size(x_3); +x_825 = lean_usize_of_nat(x_824); +lean_dec(x_824); +x_826 = 0; +x_827 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_825, x_826, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_823); +if (lean_obj_tag(x_827) == 0) { -uint8_t x_798; -x_798 = !lean_is_exclusive(x_797); -if (x_798 == 0) +uint8_t x_828; +x_828 = !lean_is_exclusive(x_827); +if (x_828 == 0) { -lean_object* x_799; lean_object* x_800; -x_799 = lean_ctor_get(x_797, 0); -x_800 = l_Lean_mkAppN(x_792, x_799); -lean_ctor_set(x_797, 0, x_800); -return x_797; +lean_object* x_829; lean_object* x_830; +x_829 = lean_ctor_get(x_827, 0); +x_830 = l_Lean_mkAppN(x_822, x_829); +lean_ctor_set(x_827, 0, x_830); +return x_827; } else { -lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; -x_801 = lean_ctor_get(x_797, 0); -x_802 = lean_ctor_get(x_797, 1); -lean_inc(x_802); -lean_inc(x_801); -lean_dec(x_797); -x_803 = l_Lean_mkAppN(x_792, x_801); -x_804 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_804, 0, x_803); -lean_ctor_set(x_804, 1, x_802); -return x_804; +lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; +x_831 = lean_ctor_get(x_827, 0); +x_832 = lean_ctor_get(x_827, 1); +lean_inc(x_832); +lean_inc(x_831); +lean_dec(x_827); +x_833 = l_Lean_mkAppN(x_822, x_831); +x_834 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_834, 0, x_833); +lean_ctor_set(x_834, 1, x_832); +return x_834; } } else { -uint8_t x_805; -lean_dec(x_792); -x_805 = !lean_is_exclusive(x_797); -if (x_805 == 0) +uint8_t x_835; +lean_dec(x_822); +x_835 = !lean_is_exclusive(x_827); +if (x_835 == 0) { -return x_797; +return x_827; } else { -lean_object* x_806; lean_object* x_807; lean_object* x_808; -x_806 = lean_ctor_get(x_797, 0); -x_807 = lean_ctor_get(x_797, 1); -lean_inc(x_807); -lean_inc(x_806); -lean_dec(x_797); -x_808 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_808, 0, x_806); -lean_ctor_set(x_808, 1, x_807); -return x_808; +lean_object* x_836; lean_object* x_837; lean_object* x_838; +x_836 = lean_ctor_get(x_827, 0); +x_837 = lean_ctor_get(x_827, 1); +lean_inc(x_837); +lean_inc(x_836); +lean_dec(x_827); +x_838 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_838, 0, x_836); +lean_ctor_set(x_838, 1, x_837); +return x_838; } } } else { -uint8_t x_809; +uint8_t x_839; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25767,127 +26273,127 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_809 = !lean_is_exclusive(x_791); -if (x_809 == 0) +x_839 = !lean_is_exclusive(x_821); +if (x_839 == 0) { -return x_791; +return x_821; } else { -lean_object* x_810; lean_object* x_811; lean_object* x_812; -x_810 = lean_ctor_get(x_791, 0); -x_811 = lean_ctor_get(x_791, 1); -lean_inc(x_811); -lean_inc(x_810); -lean_dec(x_791); -x_812 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_812, 0, x_810); -lean_ctor_set(x_812, 1, x_811); -return x_812; +lean_object* x_840; lean_object* x_841; lean_object* x_842; +x_840 = lean_ctor_get(x_821, 0); +x_841 = lean_ctor_get(x_821, 1); +lean_inc(x_841); +lean_inc(x_840); +lean_dec(x_821); +x_842 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_842, 0, x_840); +lean_ctor_set(x_842, 1, x_841); +return x_842; } } } } default: { -lean_object* x_828; lean_object* x_871; uint8_t x_895; +lean_object* x_858; lean_object* x_904; uint8_t x_928; lean_dec(x_4); -x_895 = l_Lean_Expr_isMVar(x_2); -if (x_895 == 0) +x_928 = l_Lean_Expr_isMVar(x_2); +if (x_928 == 0) { -lean_object* x_896; +lean_object* x_929; lean_dec(x_1); -x_896 = lean_box(0); -x_871 = x_896; -goto block_894; +x_929 = lean_box(0); +x_904 = x_929; +goto block_927; } else { -lean_object* x_897; uint8_t x_898; -x_897 = lean_ctor_get(x_7, 0); -lean_inc(x_897); -x_898 = lean_ctor_get_uint8(x_897, 1); -lean_dec(x_897); -if (x_898 == 0) +lean_object* x_930; uint8_t x_931; +x_930 = lean_ctor_get(x_7, 0); +lean_inc(x_930); +x_931 = lean_ctor_get_uint8(x_930, 1); +lean_dec(x_930); +if (x_931 == 0) { -lean_object* x_899; +lean_object* x_932; lean_dec(x_1); -x_899 = lean_box(0); -x_871 = x_899; -goto block_894; +x_932 = lean_box(0); +x_904 = x_932; +goto block_927; } else { -lean_object* x_900; lean_object* x_901; uint8_t x_902; -x_900 = lean_array_get_size(x_3); -x_901 = lean_unsigned_to_nat(0u); -x_902 = lean_nat_dec_lt(x_901, x_900); -if (x_902 == 0) +lean_object* x_933; lean_object* x_934; uint8_t x_935; +x_933 = lean_array_get_size(x_3); +x_934 = lean_unsigned_to_nat(0u); +x_935 = lean_nat_dec_lt(x_934, x_933); +if (x_935 == 0) { -lean_object* x_903; -lean_dec(x_900); -x_903 = lean_box(0); -x_828 = x_903; -goto block_870; +lean_object* x_936; +lean_dec(x_933); +x_936 = lean_box(0); +x_858 = x_936; +goto block_903; } else { -size_t x_904; size_t x_905; uint8_t x_906; -x_904 = 0; -x_905 = lean_usize_of_nat(x_900); -lean_dec(x_900); -x_906 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_904, x_905); -if (x_906 == 0) +size_t x_937; size_t x_938; uint8_t x_939; +x_937 = 0; +x_938 = lean_usize_of_nat(x_933); +lean_dec(x_933); +x_939 = l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__3(x_3, x_937, x_938); +if (x_939 == 0) { -lean_object* x_907; -x_907 = lean_box(0); -x_828 = x_907; -goto block_870; +lean_object* x_940; +x_940 = lean_box(0); +x_858 = x_940; +goto block_903; } else { -lean_object* x_908; +lean_object* x_941; lean_dec(x_1); -x_908 = lean_box(0); -x_871 = x_908; -goto block_894; +x_941 = lean_box(0); +x_904 = x_941; +goto block_927; } } } } -block_870: +block_903: { -lean_object* x_829; -lean_dec(x_828); +lean_object* x_859; +lean_dec(x_858); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_829 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_829) == 0) +x_859 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_859) == 0) { -lean_object* x_830; lean_object* x_831; lean_object* x_832; size_t x_833; size_t x_834; lean_object* x_835; -x_830 = lean_ctor_get(x_829, 0); -lean_inc(x_830); -x_831 = lean_ctor_get(x_829, 1); -lean_inc(x_831); -lean_dec(x_829); -x_832 = lean_array_get_size(x_3); -x_833 = lean_usize_of_nat(x_832); -x_834 = 0; +lean_object* x_860; lean_object* x_861; lean_object* x_862; size_t x_863; size_t x_864; lean_object* x_865; +x_860 = lean_ctor_get(x_859, 0); +lean_inc(x_860); +x_861 = lean_ctor_get(x_859, 1); +lean_inc(x_861); +lean_dec(x_859); +x_862 = lean_array_get_size(x_3); +x_863 = lean_usize_of_nat(x_862); +x_864 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_835 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_833, x_834, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_831); -if (lean_obj_tag(x_835) == 0) +x_865 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_863, x_864, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_861); +if (lean_obj_tag(x_865) == 0) { -uint8_t x_836; -lean_dec(x_832); +uint8_t x_866; +lean_dec(x_862); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25895,46 +26401,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_836 = !lean_is_exclusive(x_835); -if (x_836 == 0) +x_866 = !lean_is_exclusive(x_865); +if (x_866 == 0) { -lean_object* x_837; lean_object* x_838; -x_837 = lean_ctor_get(x_835, 0); -x_838 = l_Lean_mkAppN(x_830, x_837); -lean_ctor_set(x_835, 0, x_838); -return x_835; +lean_object* x_867; lean_object* x_868; +x_867 = lean_ctor_get(x_865, 0); +x_868 = l_Lean_mkAppN(x_860, x_867); +lean_ctor_set(x_865, 0, x_868); +return x_865; } else { -lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; -x_839 = lean_ctor_get(x_835, 0); -x_840 = lean_ctor_get(x_835, 1); -lean_inc(x_840); -lean_inc(x_839); -lean_dec(x_835); -x_841 = l_Lean_mkAppN(x_830, x_839); -x_842 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_842, 0, x_841); -lean_ctor_set(x_842, 1, x_840); -return x_842; +lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_869 = lean_ctor_get(x_865, 0); +x_870 = lean_ctor_get(x_865, 1); +lean_inc(x_870); +lean_inc(x_869); +lean_dec(x_865); +x_871 = l_Lean_mkAppN(x_860, x_869); +x_872 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_872, 0, x_871); +lean_ctor_set(x_872, 1, x_870); +return x_872; } } else { -uint8_t x_843; -x_843 = !lean_is_exclusive(x_835); -if (x_843 == 0) +uint8_t x_873; +x_873 = !lean_is_exclusive(x_865); +if (x_873 == 0) { -lean_object* x_844; lean_object* x_845; uint8_t x_846; -x_844 = lean_ctor_get(x_835, 0); -x_845 = lean_ctor_get(x_835, 1); -x_846 = l_Lean_Exception_isRuntime(x_844); -if (x_846 == 0) +lean_object* x_874; lean_object* x_875; uint8_t x_876; +x_874 = lean_ctor_get(x_865, 0); +x_875 = lean_ctor_get(x_865, 1); +x_876 = l_Lean_Exception_isInterrupt(x_874); +if (x_876 == 0) { -if (lean_obj_tag(x_844) == 0) +uint8_t x_877; +x_877 = l_Lean_Exception_isRuntime(x_874); +if (x_877 == 0) { -lean_dec(x_832); -lean_dec(x_830); +if (lean_obj_tag(x_874) == 0) +{ +lean_dec(x_862); +lean_dec(x_860); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25942,20 +26452,20 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_835; +return x_865; } else { -lean_object* x_847; lean_object* x_848; uint8_t x_849; -x_847 = lean_ctor_get(x_844, 0); -lean_inc(x_847); -x_848 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_849 = lean_nat_dec_eq(x_848, x_847); -lean_dec(x_847); -if (x_849 == 0) +lean_object* x_878; lean_object* x_879; uint8_t x_880; +x_878 = lean_ctor_get(x_874, 0); +lean_inc(x_878); +x_879 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_880 = lean_nat_dec_eq(x_879, x_878); +lean_dec(x_878); +if (x_880 == 0) { -lean_dec(x_832); -lean_dec(x_830); +lean_dec(x_862); +lean_dec(x_860); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25963,16 +26473,16 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_835; +return x_865; } else { -uint8_t x_850; -x_850 = l_Lean_Expr_isMVar(x_830); -if (x_850 == 0) +uint8_t x_881; +x_881 = l_Lean_Expr_isMVar(x_860); +if (x_881 == 0) { -lean_dec(x_832); -lean_dec(x_830); +lean_dec(x_862); +lean_dec(x_860); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -25980,23 +26490,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_835; +return x_865; } else { -lean_object* x_851; lean_object* x_852; -lean_free_object(x_835); -x_851 = lean_box(0); -x_852 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_830, x_1, x_832, x_844, x_851, x_5, x_6, x_7, x_8, x_9, x_10, x_845); -return x_852; +lean_object* x_882; lean_object* x_883; +lean_free_object(x_865); +x_882 = lean_box(0); +x_883 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_860, x_1, x_862, x_874, x_882, x_5, x_6, x_7, x_8, x_9, x_10, x_875); +return x_883; } } } } else { -lean_dec(x_832); -lean_dec(x_830); +lean_dec(x_862); +lean_dec(x_860); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -26004,116 +26514,152 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -return x_835; -} -} -else -{ -lean_object* x_853; lean_object* x_854; uint8_t x_855; -x_853 = lean_ctor_get(x_835, 0); -x_854 = lean_ctor_get(x_835, 1); -lean_inc(x_854); -lean_inc(x_853); -lean_dec(x_835); -x_855 = l_Lean_Exception_isRuntime(x_853); -if (x_855 == 0) -{ -if (lean_obj_tag(x_853) == 0) -{ -lean_object* x_856; -lean_dec(x_832); -lean_dec(x_830); -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_1); -x_856 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_856, 0, x_853); -lean_ctor_set(x_856, 1, x_854); -return x_856; -} -else -{ -lean_object* x_857; lean_object* x_858; uint8_t x_859; -x_857 = lean_ctor_get(x_853, 0); -lean_inc(x_857); -x_858 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; -x_859 = lean_nat_dec_eq(x_858, x_857); -lean_dec(x_857); -if (x_859 == 0) -{ -lean_object* x_860; -lean_dec(x_832); -lean_dec(x_830); -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_1); -x_860 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_860, 0, x_853); -lean_ctor_set(x_860, 1, x_854); -return x_860; -} -else -{ -uint8_t x_861; -x_861 = l_Lean_Expr_isMVar(x_830); -if (x_861 == 0) -{ -lean_object* x_862; -lean_dec(x_832); -lean_dec(x_830); -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_1); -x_862 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_862, 0, x_853); -lean_ctor_set(x_862, 1, x_854); -return x_862; -} -else -{ -lean_object* x_863; lean_object* x_864; -x_863 = lean_box(0); -x_864 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_830, x_1, x_832, x_853, x_863, x_5, x_6, x_7, x_8, x_9, x_10, x_854); -return x_864; -} -} -} -} -else -{ -lean_object* x_865; -lean_dec(x_832); -lean_dec(x_830); -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_1); -x_865 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_865, 0, x_853); -lean_ctor_set(x_865, 1, x_854); return x_865; } } +else +{ +lean_dec(x_862); +lean_dec(x_860); +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_1); +return x_865; } } else { -uint8_t x_866; +lean_object* x_884; lean_object* x_885; uint8_t x_886; +x_884 = lean_ctor_get(x_865, 0); +x_885 = lean_ctor_get(x_865, 1); +lean_inc(x_885); +lean_inc(x_884); +lean_dec(x_865); +x_886 = l_Lean_Exception_isInterrupt(x_884); +if (x_886 == 0) +{ +uint8_t x_887; +x_887 = l_Lean_Exception_isRuntime(x_884); +if (x_887 == 0) +{ +if (lean_obj_tag(x_884) == 0) +{ +lean_object* x_888; +lean_dec(x_862); +lean_dec(x_860); +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_1); +x_888 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_888, 0, x_884); +lean_ctor_set(x_888, 1, x_885); +return x_888; +} +else +{ +lean_object* x_889; lean_object* x_890; uint8_t x_891; +x_889 = lean_ctor_get(x_884, 0); +lean_inc(x_889); +x_890 = l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg___closed__1; +x_891 = lean_nat_dec_eq(x_890, x_889); +lean_dec(x_889); +if (x_891 == 0) +{ +lean_object* x_892; +lean_dec(x_862); +lean_dec(x_860); +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_1); +x_892 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_892, 0, x_884); +lean_ctor_set(x_892, 1, x_885); +return x_892; +} +else +{ +uint8_t x_893; +x_893 = l_Lean_Expr_isMVar(x_860); +if (x_893 == 0) +{ +lean_object* x_894; +lean_dec(x_862); +lean_dec(x_860); +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_1); +x_894 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_894, 0, x_884); +lean_ctor_set(x_894, 1, x_885); +return x_894; +} +else +{ +lean_object* x_895; lean_object* x_896; +x_895 = lean_box(0); +x_896 = l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__4___lambda__2(x_860, x_1, x_862, x_884, x_895, x_5, x_6, x_7, x_8, x_9, x_10, x_885); +return x_896; +} +} +} +} +else +{ +lean_object* x_897; +lean_dec(x_862); +lean_dec(x_860); +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_1); +x_897 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_897, 0, x_884); +lean_ctor_set(x_897, 1, x_885); +return x_897; +} +} +else +{ +lean_object* x_898; +lean_dec(x_862); +lean_dec(x_860); +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_1); +x_898 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_898, 0, x_884); +lean_ctor_set(x_898, 1, x_885); +return x_898; +} +} +} +} +else +{ +uint8_t x_899; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -26122,104 +26668,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_866 = !lean_is_exclusive(x_829); -if (x_866 == 0) +x_899 = !lean_is_exclusive(x_859); +if (x_899 == 0) { -return x_829; +return x_859; } else { -lean_object* x_867; lean_object* x_868; lean_object* x_869; -x_867 = lean_ctor_get(x_829, 0); -x_868 = lean_ctor_get(x_829, 1); -lean_inc(x_868); -lean_inc(x_867); -lean_dec(x_829); -x_869 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_869, 0, x_867); -lean_ctor_set(x_869, 1, x_868); -return x_869; +lean_object* x_900; lean_object* x_901; lean_object* x_902; +x_900 = lean_ctor_get(x_859, 0); +x_901 = lean_ctor_get(x_859, 1); +lean_inc(x_901); +lean_inc(x_900); +lean_dec(x_859); +x_902 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_902, 0, x_900); +lean_ctor_set(x_902, 1, x_901); +return x_902; } } } -block_894: +block_927: { -lean_object* x_872; -lean_dec(x_871); +lean_object* x_905; +lean_dec(x_904); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_872 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_872) == 0) +x_905 = l_Lean_Meta_CheckAssignment_check(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_905) == 0) { -lean_object* x_873; lean_object* x_874; lean_object* x_875; size_t x_876; size_t x_877; lean_object* x_878; -x_873 = lean_ctor_get(x_872, 0); -lean_inc(x_873); -x_874 = lean_ctor_get(x_872, 1); -lean_inc(x_874); -lean_dec(x_872); -x_875 = lean_array_get_size(x_3); -x_876 = lean_usize_of_nat(x_875); -lean_dec(x_875); -x_877 = 0; -x_878 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_876, x_877, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_874); -if (lean_obj_tag(x_878) == 0) +lean_object* x_906; lean_object* x_907; lean_object* x_908; size_t x_909; size_t x_910; lean_object* x_911; +x_906 = lean_ctor_get(x_905, 0); +lean_inc(x_906); +x_907 = lean_ctor_get(x_905, 1); +lean_inc(x_907); +lean_dec(x_905); +x_908 = lean_array_get_size(x_3); +x_909 = lean_usize_of_nat(x_908); +lean_dec(x_908); +x_910 = 0; +x_911 = l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1(x_909, x_910, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_907); +if (lean_obj_tag(x_911) == 0) { -uint8_t x_879; -x_879 = !lean_is_exclusive(x_878); -if (x_879 == 0) +uint8_t x_912; +x_912 = !lean_is_exclusive(x_911); +if (x_912 == 0) { -lean_object* x_880; lean_object* x_881; -x_880 = lean_ctor_get(x_878, 0); -x_881 = l_Lean_mkAppN(x_873, x_880); -lean_ctor_set(x_878, 0, x_881); -return x_878; +lean_object* x_913; lean_object* x_914; +x_913 = lean_ctor_get(x_911, 0); +x_914 = l_Lean_mkAppN(x_906, x_913); +lean_ctor_set(x_911, 0, x_914); +return x_911; } else { -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; -x_882 = lean_ctor_get(x_878, 0); -x_883 = lean_ctor_get(x_878, 1); -lean_inc(x_883); -lean_inc(x_882); -lean_dec(x_878); -x_884 = l_Lean_mkAppN(x_873, x_882); -x_885 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_885, 0, x_884); -lean_ctor_set(x_885, 1, x_883); -return x_885; +lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; +x_915 = lean_ctor_get(x_911, 0); +x_916 = lean_ctor_get(x_911, 1); +lean_inc(x_916); +lean_inc(x_915); +lean_dec(x_911); +x_917 = l_Lean_mkAppN(x_906, x_915); +x_918 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_918, 0, x_917); +lean_ctor_set(x_918, 1, x_916); +return x_918; } } else { -uint8_t x_886; -lean_dec(x_873); -x_886 = !lean_is_exclusive(x_878); -if (x_886 == 0) +uint8_t x_919; +lean_dec(x_906); +x_919 = !lean_is_exclusive(x_911); +if (x_919 == 0) { -return x_878; +return x_911; } else { -lean_object* x_887; lean_object* x_888; lean_object* x_889; -x_887 = lean_ctor_get(x_878, 0); -x_888 = lean_ctor_get(x_878, 1); -lean_inc(x_888); -lean_inc(x_887); -lean_dec(x_878); -x_889 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_889, 0, x_887); -lean_ctor_set(x_889, 1, x_888); -return x_889; +lean_object* x_920; lean_object* x_921; lean_object* x_922; +x_920 = lean_ctor_get(x_911, 0); +x_921 = lean_ctor_get(x_911, 1); +lean_inc(x_921); +lean_inc(x_920); +lean_dec(x_911); +x_922 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_922, 0, x_920); +lean_ctor_set(x_922, 1, x_921); +return x_922; } } } else { -uint8_t x_890; +uint8_t x_923; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -26227,23 +26773,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_890 = !lean_is_exclusive(x_872); -if (x_890 == 0) +x_923 = !lean_is_exclusive(x_905); +if (x_923 == 0) { -return x_872; +return x_905; } else { -lean_object* x_891; lean_object* x_892; lean_object* x_893; -x_891 = lean_ctor_get(x_872, 0); -x_892 = lean_ctor_get(x_872, 1); -lean_inc(x_892); -lean_inc(x_891); -lean_dec(x_872); -x_893 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_893, 0, x_891); -lean_ctor_set(x_893, 1, x_892); -return x_893; +lean_object* x_924; lean_object* x_925; lean_object* x_926; +x_924 = lean_ctor_get(x_905, 0); +x_925 = lean_ctor_get(x_905, 1); +lean_inc(x_925); +lean_inc(x_924); +lean_dec(x_905); +x_926 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_926, 0, x_924); +lean_ctor_set(x_926, 1, x_925); +return x_926; } } } @@ -26540,7 +27086,7 @@ lean_inc(x_1); x_10 = l_Lean_MVarId_getDecl(x_1, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(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; lean_object* x_17; lean_object* x_18; +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_26; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -26561,131 +27107,107 @@ x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); lean_inc(x_16); -x_18 = l_Lean_Meta_CheckAssignment_check(x_4, x_13, x_16, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_18) == 0) +x_26 = l_Lean_Meta_CheckAssignment_check(x_4, x_13, x_16, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_19); -x_22 = lean_st_ref_get(x_16, x_20); -lean_dec(x_16); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set(x_22, 0, x_21); -return x_22; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_27); +x_18 = x_29; +x_19 = x_28; +goto block_25; } else { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_21); -lean_ctor_set(x_26, 1, x_25); +uint8_t x_30; +x_30 = !lean_is_exclusive(x_26); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_26, 0); +x_32 = lean_ctor_get(x_26, 1); +x_33 = l_Lean_Exception_isInterrupt(x_31); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = l_Lean_Exception_isRuntime(x_31); +if (x_34 == 0) +{ +if (lean_obj_tag(x_31) == 0) +{ +lean_dec(x_16); +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_31, 0); +lean_inc(x_35); +x_36 = l_Lean_Meta_CheckAssignment_run___closed__2; +x_37 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_dec(x_16); +return x_26; +} +else +{ +lean_object* x_38; +lean_free_object(x_26); +lean_dec(x_31); +x_38 = lean_box(0); +x_18 = x_38; +x_19 = x_32; +goto block_25; +} +} +} +else +{ +lean_dec(x_16); return x_26; } } else { -uint8_t x_27; -x_27 = !lean_is_exclusive(x_18); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_18, 0); -x_29 = lean_ctor_get(x_18, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); -if (x_30 == 0) -{ -if (lean_obj_tag(x_28) == 0) -{ lean_dec(x_16); -return x_18; -} -else -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = l_Lean_Meta_CheckAssignment_run___closed__2; -x_33 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_31, x_32); -lean_dec(x_31); -if (x_33 == 0) -{ -lean_dec(x_16); -return x_18; -} -else -{ -lean_object* x_34; lean_object* x_35; uint8_t x_36; -lean_free_object(x_18); -lean_dec(x_28); -x_34 = lean_box(0); -x_35 = lean_st_ref_get(x_16, x_29); -lean_dec(x_16); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_34); -return x_35; -} -else -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_34); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} +return x_26; } } else { -lean_dec(x_16); -return x_18; -} -} -else -{ -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_18, 0); -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_26, 0); +x_40 = lean_ctor_get(x_26, 1); lean_inc(x_40); -lean_dec(x_18); -x_42 = l_Lean_Exception_isRuntime(x_40); +lean_inc(x_39); +lean_dec(x_26); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); if (x_42 == 0) { -if (lean_obj_tag(x_40) == 0) +if (lean_obj_tag(x_39) == 0) { lean_object* x_43; lean_dec(x_16); x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_41); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_40); return x_43; } else { lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_39, 0); lean_inc(x_44); x_45 = l_Lean_Meta_CheckAssignment_run___closed__2; x_46 = l_List_elem___at_Lean_catchInternalIds___spec__1(x_44, x_45); @@ -26695,53 +27217,72 @@ if (x_46 == 0) lean_object* x_47; lean_dec(x_16); x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_40); -lean_ctor_set(x_47, 1, x_41); +lean_ctor_set(x_47, 0, x_39); +lean_ctor_set(x_47, 1, x_40); 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_dec(x_40); +lean_object* x_48; +lean_dec(x_39); x_48 = lean_box(0); -x_49 = lean_st_ref_get(x_16, x_41); -lean_dec(x_16); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_51 = x_49; -} else { - lean_dec_ref(x_49); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(0, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_48); -lean_ctor_set(x_52, 1, x_50); -return x_52; +x_18 = x_48; +x_19 = x_40; +goto block_25; } } } else { -lean_object* x_53; +lean_object* x_49; lean_dec(x_16); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_40); -lean_ctor_set(x_53, 1, x_41); -return x_53; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_39); +lean_ctor_set(x_49, 1, x_40); +return x_49; } } +else +{ +lean_object* x_50; +lean_dec(x_16); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_39); +lean_ctor_set(x_50, 1, x_40); +return x_50; +} +} +} +block_25: +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_st_ref_get(x_16, x_19); +lean_dec(x_16); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_18); +return x_20; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_18); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} } } else { -uint8_t x_54; +uint8_t x_51; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -26749,23 +27290,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_10); -if (x_54 == 0) +x_51 = !lean_is_exclusive(x_10); +if (x_51 == 0) { return x_10; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_10, 0); -x_56 = lean_ctor_get(x_10, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_10, 0); +x_53 = lean_ctor_get(x_10, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_10); -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; +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; } } } @@ -45229,7 +45770,7 @@ lean_dec(x_19); x_20 = !lean_is_exclusive(x_16); 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_39; +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_41; x_21 = lean_ctor_get(x_16, 5); lean_dec(x_21); x_22 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -45255,166 +45796,151 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_39 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_39) == 0) +x_41 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; uint8_t x_41; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_unbox(x_40); -lean_dec(x_40); -if (x_41 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) { -lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_dec(x_28); lean_dec(x_26); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_42); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_44); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_12); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -lean_object* x_45; uint8_t x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); +lean_object* x_47; uint8_t x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +x_48 = 0; +x_49 = lean_box(x_48); +lean_ctor_set(x_45, 0, x_49); +return x_45; +} +else +{ +lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); lean_dec(x_45); -x_46 = 0; -x_47 = lean_box(x_46); -lean_ctor_set(x_43, 0, x_47); -return x_43; -} -else -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_43, 1); -lean_inc(x_48); -lean_dec(x_43); -x_49 = 0; -x_50 = lean_box(x_49); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_48); -return x_51; +x_51 = 0; +x_52 = lean_box(x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_50); +return x_53; } } else { -lean_object* x_52; uint8_t x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_39, 1); -lean_inc(x_52); -lean_dec(x_39); -x_53 = 0; +lean_object* x_54; uint8_t x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_41, 1); +lean_inc(x_54); +lean_dec(x_41); +x_55 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_54 = l_Lean_Meta_processPostponed(x_4, x_53, x_5, x_6, x_7, x_8, x_52); -if (lean_obj_tag(x_54) == 0) +x_56 = l_Lean_Meta_processPostponed(x_4, x_55, x_5, x_6, x_7, x_8, x_54); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_55; uint8_t x_56; +lean_object* x_57; uint8_t x_58; lean_dec(x_28); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_unbox(x_55); -lean_dec(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_26); -x_57 = lean_ctor_get(x_54, 1); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_54); -x_58 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_57); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_12); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_58 = lean_unbox(x_57); +lean_dec(x_57); +if (x_58 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -x_61 = lean_box(x_53); -lean_ctor_set(x_58, 0, x_61); -return x_58; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_58, 1); -lean_inc(x_62); -lean_dec(x_58); -x_63 = lean_box(x_53); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -return x_64; -} -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -lean_dec(x_12); -x_65 = lean_ctor_get(x_54, 1); -lean_inc(x_65); -lean_dec(x_54); -x_66 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_65); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_PersistentArray_append___rarg(x_26, x_67); -x_70 = l_Lean_Meta_setPostponed(x_69, x_5, x_6, x_7, x_8, x_68); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -x_73 = 1; -x_74 = lean_box(x_73); -lean_ctor_set(x_70, 0, x_74); -return x_70; -} -else -{ -lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -lean_dec(x_70); -x_76 = 1; -x_77 = lean_box(x_76); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_75); -return x_78; -} -} -} -else -{ -lean_object* x_79; lean_object* x_80; +lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_dec(x_26); -x_79 = lean_ctor_get(x_54, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_54, 1); -lean_inc(x_80); -lean_dec(x_54); -x_29 = x_79; -x_30 = x_80; -goto block_38; +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_59); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_12); +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +x_63 = lean_box(x_55); +lean_ctor_set(x_60, 0, x_63); +return x_60; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_65 = lean_box(x_55); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +lean_dec(x_12); +x_67 = lean_ctor_get(x_56, 1); +lean_inc(x_67); +lean_dec(x_56); +x_68 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l_Lean_PersistentArray_append___rarg(x_26, x_69); +x_72 = l_Lean_Meta_setPostponed(x_71, x_5, x_6, x_7, x_8, x_70); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_72, 0); +lean_dec(x_74); +x_75 = 1; +x_76 = lean_box(x_75); +lean_ctor_set(x_72, 0, x_76); +return x_72; +} +else +{ +lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +lean_dec(x_72); +x_78 = 1; +x_79 = lean_box(x_78); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_77); +return x_80; } } } @@ -45422,362 +45948,423 @@ else { lean_object* x_81; lean_object* x_82; lean_dec(x_26); -x_81 = lean_ctor_get(x_39, 0); +x_81 = lean_ctor_get(x_56, 0); lean_inc(x_81); -x_82 = lean_ctor_get(x_39, 1); +x_82 = lean_ctor_get(x_56, 1); lean_inc(x_82); -lean_dec(x_39); +lean_dec(x_56); x_29 = x_81; x_30 = x_82; -goto block_38; +goto block_40; } -block_38: +} +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_26); +x_83 = lean_ctor_get(x_41, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_41, 1); +lean_inc(x_84); +lean_dec(x_41); +x_29 = x_83; +x_30 = x_84; +goto block_40; +} +block_40: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_dec(x_28); -x_32 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_30); +x_33 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_12); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -lean_object* x_37; +lean_object* x_38; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); if (lean_is_scalar(x_28)) { - x_37 = lean_alloc_ctor(1, 2, 0); + x_38 = lean_alloc_ctor(1, 2, 0); } else { - x_37 = x_28; - lean_ctor_set_tag(x_37, 1); + x_38 = x_28; + lean_ctor_set_tag(x_38, 1); } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_30); +return x_38; +} +} +else +{ +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_28)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_28; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +return x_39; } } } 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; 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_106; -x_83 = lean_ctor_get(x_16, 0); -x_84 = lean_ctor_get(x_16, 1); -x_85 = lean_ctor_get(x_16, 2); -x_86 = lean_ctor_get(x_16, 3); -x_87 = lean_ctor_get(x_16, 4); -x_88 = lean_ctor_get(x_16, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_110; +x_85 = lean_ctor_get(x_16, 0); +x_86 = lean_ctor_get(x_16, 1); +x_87 = lean_ctor_get(x_16, 2); +x_88 = lean_ctor_get(x_16, 3); +x_89 = lean_ctor_get(x_16, 4); +x_90 = lean_ctor_get(x_16, 6); +lean_inc(x_90); +lean_inc(x_89); lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); -lean_inc(x_84); -lean_inc(x_83); lean_dec(x_16); -x_89 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_90 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_90, 0, x_83); -lean_ctor_set(x_90, 1, x_84); -lean_ctor_set(x_90, 2, x_85); -lean_ctor_set(x_90, 3, x_86); -lean_ctor_set(x_90, 4, x_87); -lean_ctor_set(x_90, 5, x_89); -lean_ctor_set(x_90, 6, x_88); -lean_ctor_set(x_15, 1, x_90); -x_91 = lean_st_ref_set(x_6, x_15, x_17); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -lean_dec(x_91); -x_93 = l_Lean_Meta_getResetPostponed(x_5, x_6, x_7, x_8, x_92); -x_94 = lean_ctor_get(x_93, 0); +x_91 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_92 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_92, 0, x_85); +lean_ctor_set(x_92, 1, x_86); +lean_ctor_set(x_92, 2, x_87); +lean_ctor_set(x_92, 3, x_88); +lean_ctor_set(x_92, 4, x_89); +lean_ctor_set(x_92, 5, x_91); +lean_ctor_set(x_92, 6, x_90); +lean_ctor_set(x_15, 1, x_92); +x_93 = lean_st_ref_set(x_6, x_15, x_17); +x_94 = lean_ctor_get(x_93, 1); lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; +lean_dec(x_93); +x_95 = l_Lean_Meta_getResetPostponed(x_5, x_6, x_7, x_8, x_94); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_98 = x_95; } else { - lean_dec_ref(x_93); - x_96 = lean_box(0); + lean_dec_ref(x_95); + x_98 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_106 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_95); -if (lean_obj_tag(x_106) == 0) +x_110 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_97); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_107; uint8_t x_108; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_unbox(x_107); -lean_dec(x_107); -if (x_108 == 0) -{ -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_dec(x_96); -lean_dec(x_94); -x_109 = lean_ctor_get(x_106, 1); -lean_inc(x_109); -lean_dec(x_106); -x_110 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_109); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_12); -x_111 = lean_ctor_get(x_110, 1); +lean_object* x_111; uint8_t x_112; +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_112 = x_110; +x_112 = lean_unbox(x_111); +lean_dec(x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_98); +lean_dec(x_96); +x_113 = lean_ctor_get(x_110, 1); +lean_inc(x_113); +lean_dec(x_110); +x_114 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_113); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_12); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_116 = x_114; } else { - lean_dec_ref(x_110); - x_112 = lean_box(0); + lean_dec_ref(x_114); + x_116 = lean_box(0); } -x_113 = 0; -x_114 = lean_box(x_113); -if (lean_is_scalar(x_112)) { - x_115 = lean_alloc_ctor(0, 2, 0); +x_117 = 0; +x_118 = lean_box(x_117); +if (lean_is_scalar(x_116)) { + x_119 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_112; + x_119 = x_116; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_111); -return x_115; +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_115); +return x_119; } else { -lean_object* x_116; uint8_t x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_106, 1); -lean_inc(x_116); -lean_dec(x_106); -x_117 = 0; +lean_object* x_120; uint8_t x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_110, 1); +lean_inc(x_120); +lean_dec(x_110); +x_121 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_118 = l_Lean_Meta_processPostponed(x_4, x_117, x_5, x_6, x_7, x_8, x_116); -if (lean_obj_tag(x_118) == 0) +x_122 = l_Lean_Meta_processPostponed(x_4, x_121, x_5, x_6, x_7, x_8, x_120); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_119; uint8_t x_120; -lean_dec(x_96); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_unbox(x_119); -lean_dec(x_119); -if (x_120 == 0) -{ -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_dec(x_94); -x_121 = lean_ctor_get(x_118, 1); -lean_inc(x_121); -lean_dec(x_118); -x_122 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_121); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_12); -x_123 = lean_ctor_get(x_122, 1); +lean_object* x_123; uint8_t x_124; +lean_dec(x_98); +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_124 = x_122; -} else { - lean_dec_ref(x_122); - x_124 = lean_box(0); -} -x_125 = lean_box(x_117); -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -return x_126; -} -else +x_124 = lean_unbox(x_123); +lean_dec(x_123); +if (x_124 == 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; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_12); -x_127 = lean_ctor_get(x_118, 1); -lean_inc(x_127); -lean_dec(x_118); -x_128 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_127); -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_Lean_PersistentArray_append___rarg(x_94, x_129); -x_132 = l_Lean_Meta_setPostponed(x_131, x_5, x_6, x_7, x_8, x_130); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_134 = x_132; -} else { - lean_dec_ref(x_132); - x_134 = lean_box(0); -} -x_135 = 1; -x_136 = lean_box(x_135); -if (lean_is_scalar(x_134)) { - x_137 = lean_alloc_ctor(0, 2, 0); -} else { - x_137 = x_134; -} -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_133); -return x_137; -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_94); -x_138 = lean_ctor_get(x_118, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_118, 1); -lean_inc(x_139); -lean_dec(x_118); -x_97 = x_138; -x_98 = x_139; -goto block_105; -} -} -} -else -{ -lean_object* x_140; lean_object* x_141; -lean_dec(x_94); -x_140 = lean_ctor_get(x_106, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_106, 1); -lean_inc(x_141); -lean_dec(x_106); -x_97 = x_140; -x_98 = x_141; -goto block_105; -} -block_105: -{ -uint8_t x_99; -x_99 = l_Lean_Exception_isRuntime(x_97); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +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_dec(x_96); -x_100 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_98); +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +lean_dec(x_122); +x_126 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_125); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_12); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_128 = x_126; } else { - lean_dec_ref(x_100); - x_102 = lean_box(0); + lean_dec_ref(x_126); + x_128 = lean_box(0); } -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(1, 2, 0); +x_129 = lean_box(x_121); +if (lean_is_scalar(x_128)) { + x_130 = lean_alloc_ctor(0, 2, 0); } else { - x_103 = x_102; - lean_ctor_set_tag(x_103, 1); + x_130 = x_128; } -lean_ctor_set(x_103, 0, x_97); -lean_ctor_set(x_103, 1, x_101); -return x_103; +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_127); +return x_130; } else { -lean_object* x_104; +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; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_dec(x_12); +x_131 = lean_ctor_get(x_122, 1); +lean_inc(x_131); +lean_dec(x_122); +x_132 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_131); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = l_Lean_PersistentArray_append___rarg(x_96, x_133); +x_136 = l_Lean_Meta_setPostponed(x_135, x_5, x_6, x_7, x_8, x_134); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_96)) { - x_104 = lean_alloc_ctor(1, 2, 0); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_138 = x_136; } else { - x_104 = x_96; - lean_ctor_set_tag(x_104, 1); -} -lean_ctor_set(x_104, 0, x_97); -lean_ctor_set(x_104, 1, x_98); -return x_104; + lean_dec_ref(x_136); + 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); +return x_141; } } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_171; -x_142 = lean_ctor_get(x_15, 0); -x_143 = lean_ctor_get(x_15, 2); -x_144 = lean_ctor_get(x_15, 3); -x_145 = lean_ctor_get(x_15, 4); -lean_inc(x_145); -lean_inc(x_144); -lean_inc(x_143); +lean_object* x_142; lean_object* x_143; +lean_dec(x_96); +x_142 = lean_ctor_get(x_122, 0); lean_inc(x_142); -lean_dec(x_15); -x_146 = lean_ctor_get(x_16, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_16, 1); -lean_inc(x_147); -x_148 = lean_ctor_get(x_16, 2); -lean_inc(x_148); -x_149 = lean_ctor_get(x_16, 3); +x_143 = lean_ctor_get(x_122, 1); +lean_inc(x_143); +lean_dec(x_122); +x_99 = x_142; +x_100 = x_143; +goto block_109; +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; +lean_dec(x_96); +x_144 = lean_ctor_get(x_110, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_110, 1); +lean_inc(x_145); +lean_dec(x_110); +x_99 = x_144; +x_100 = x_145; +goto block_109; +} +block_109: +{ +uint8_t x_101; +x_101 = l_Lean_Exception_isInterrupt(x_99); +if (x_101 == 0) +{ +uint8_t x_102; +x_102 = l_Lean_Exception_isRuntime(x_99); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_98); +x_103 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_100); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_12); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + 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_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_99); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +else +{ +lean_object* x_107; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_98)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_98; + lean_ctor_set_tag(x_107, 1); +} +lean_ctor_set(x_107, 0, x_99); +lean_ctor_set(x_107, 1, x_100); +return x_107; +} +} +else +{ +lean_object* x_108; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_98)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_98; + lean_ctor_set_tag(x_108, 1); +} +lean_ctor_set(x_108, 0, x_99); +lean_ctor_set(x_108, 1, x_100); +return x_108; +} +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_177; +x_146 = lean_ctor_get(x_15, 0); +x_147 = lean_ctor_get(x_15, 2); +x_148 = lean_ctor_get(x_15, 3); +x_149 = lean_ctor_get(x_15, 4); lean_inc(x_149); -x_150 = lean_ctor_get(x_16, 4); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_15); +x_150 = lean_ctor_get(x_16, 0); lean_inc(x_150); -x_151 = lean_ctor_get(x_16, 6); +x_151 = lean_ctor_get(x_16, 1); lean_inc(x_151); +x_152 = lean_ctor_get(x_16, 2); +lean_inc(x_152); +x_153 = lean_ctor_get(x_16, 3); +lean_inc(x_153); +x_154 = lean_ctor_get(x_16, 4); +lean_inc(x_154); +x_155 = lean_ctor_get(x_16, 6); +lean_inc(x_155); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); @@ -45786,267 +46373,290 @@ if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 4); lean_ctor_release(x_16, 5); lean_ctor_release(x_16, 6); - x_152 = x_16; + x_156 = x_16; } else { lean_dec_ref(x_16); - x_152 = lean_box(0); + x_156 = lean_box(0); } -x_153 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_152)) { - x_154 = lean_alloc_ctor(0, 7, 0); +x_157 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(0, 7, 0); } else { - x_154 = x_152; + x_158 = x_156; } -lean_ctor_set(x_154, 0, x_146); -lean_ctor_set(x_154, 1, x_147); -lean_ctor_set(x_154, 2, x_148); -lean_ctor_set(x_154, 3, x_149); -lean_ctor_set(x_154, 4, x_150); -lean_ctor_set(x_154, 5, x_153); -lean_ctor_set(x_154, 6, x_151); -x_155 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_155, 0, x_142); -lean_ctor_set(x_155, 1, x_154); -lean_ctor_set(x_155, 2, x_143); -lean_ctor_set(x_155, 3, x_144); -lean_ctor_set(x_155, 4, x_145); -x_156 = lean_st_ref_set(x_6, x_155, x_17); -x_157 = lean_ctor_get(x_156, 1); -lean_inc(x_157); -lean_dec(x_156); -x_158 = l_Lean_Meta_getResetPostponed(x_5, x_6, x_7, x_8, x_157); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_161 = x_158; +lean_ctor_set(x_158, 0, x_150); +lean_ctor_set(x_158, 1, x_151); +lean_ctor_set(x_158, 2, x_152); +lean_ctor_set(x_158, 3, x_153); +lean_ctor_set(x_158, 4, x_154); +lean_ctor_set(x_158, 5, x_157); +lean_ctor_set(x_158, 6, x_155); +x_159 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_159, 0, x_146); +lean_ctor_set(x_159, 1, x_158); +lean_ctor_set(x_159, 2, x_147); +lean_ctor_set(x_159, 3, x_148); +lean_ctor_set(x_159, 4, x_149); +x_160 = lean_st_ref_set(x_6, x_159, x_17); +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +lean_dec(x_160); +x_162 = l_Lean_Meta_getResetPostponed(x_5, x_6, x_7, x_8, x_161); +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_165 = x_162; } else { - lean_dec_ref(x_158); - x_161 = lean_box(0); + lean_dec_ref(x_162); + x_165 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_171 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_160); -if (lean_obj_tag(x_171) == 0) +x_177 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_164); +if (lean_obj_tag(x_177) == 0) { -lean_object* x_172; uint8_t x_173; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_unbox(x_172); -lean_dec(x_172); -if (x_173 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_unbox(x_178); +lean_dec(x_178); +if (x_179 == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_161); -lean_dec(x_159); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_dec(x_171); -x_175 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_174); +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_165); +lean_dec(x_163); +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +lean_dec(x_177); +x_181 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_180); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_12); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_177 = x_175; +x_182 = lean_ctor_get(x_181, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_183 = x_181; } else { - lean_dec_ref(x_175); - x_177 = lean_box(0); + lean_dec_ref(x_181); + x_183 = lean_box(0); } -x_178 = 0; -x_179 = lean_box(x_178); -if (lean_is_scalar(x_177)) { - x_180 = lean_alloc_ctor(0, 2, 0); +x_184 = 0; +x_185 = lean_box(x_184); +if (lean_is_scalar(x_183)) { + x_186 = lean_alloc_ctor(0, 2, 0); } else { - x_180 = x_177; + x_186 = x_183; } -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_176); -return x_180; +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_182); +return x_186; } else { -lean_object* x_181; uint8_t x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_171, 1); -lean_inc(x_181); -lean_dec(x_171); -x_182 = 0; +lean_object* x_187; uint8_t x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_177, 1); +lean_inc(x_187); +lean_dec(x_177); +x_188 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_183 = l_Lean_Meta_processPostponed(x_4, x_182, x_5, x_6, x_7, x_8, x_181); -if (lean_obj_tag(x_183) == 0) +x_189 = l_Lean_Meta_processPostponed(x_4, x_188, x_5, x_6, x_7, x_8, x_187); +if (lean_obj_tag(x_189) == 0) { -lean_object* x_184; uint8_t x_185; -lean_dec(x_161); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_unbox(x_184); -lean_dec(x_184); -if (x_185 == 0) +lean_object* x_190; uint8_t x_191; +lean_dec(x_165); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_unbox(x_190); +lean_dec(x_190); +if (x_191 == 0) { -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_159); -x_186 = lean_ctor_get(x_183, 1); -lean_inc(x_186); -lean_dec(x_183); -x_187 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_186); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_12); -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_189 = x_187; -} else { - lean_dec_ref(x_187); - x_189 = lean_box(0); -} -x_190 = lean_box(x_182); -if (lean_is_scalar(x_189)) { - x_191 = lean_alloc_ctor(0, 2, 0); -} else { - x_191 = x_189; -} -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_188); -return x_191; -} -else -{ -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; uint8_t x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_12); -x_192 = lean_ctor_get(x_183, 1); +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_163); +x_192 = lean_ctor_get(x_189, 1); lean_inc(x_192); -lean_dec(x_183); -x_193 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_192); -x_194 = lean_ctor_get(x_193, 0); +lean_dec(x_189); +x_193 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_192); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_12); +x_194 = lean_ctor_get(x_193, 1); lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -lean_dec(x_193); -x_196 = l_Lean_PersistentArray_append___rarg(x_159, x_194); -x_197 = l_Lean_Meta_setPostponed(x_196, x_5, x_6, x_7, x_8, x_195); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_198 = lean_ctor_get(x_197, 1); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + x_195 = x_193; +} else { + lean_dec_ref(x_193); + x_195 = lean_box(0); +} +x_196 = lean_box(x_188); +if (lean_is_scalar(x_195)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_195; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_194); +return x_197; +} +else +{ +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; uint8_t x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_12); +x_198 = lean_ctor_get(x_189, 1); lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; -} else { - lean_dec_ref(x_197); - x_199 = lean_box(0); -} -x_200 = 1; -x_201 = lean_box(x_200); -if (lean_is_scalar(x_199)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_199; -} -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_198); -return x_202; -} -} -else -{ -lean_object* x_203; lean_object* x_204; -lean_dec(x_159); -x_203 = lean_ctor_get(x_183, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_183, 1); +lean_dec(x_189); +x_199 = l_Lean_Meta_getPostponed___rarg(x_6, x_7, x_8, x_198); +x_200 = lean_ctor_get(x_199, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +lean_dec(x_199); +x_202 = l_Lean_PersistentArray_append___rarg(x_163, x_200); +x_203 = l_Lean_Meta_setPostponed(x_202, x_5, x_6, x_7, x_8, x_201); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_204 = lean_ctor_get(x_203, 1); lean_inc(x_204); -lean_dec(x_183); -x_162 = x_203; -x_163 = x_204; -goto block_170; +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_205 = x_203; +} else { + lean_dec_ref(x_203); + x_205 = lean_box(0); +} +x_206 = 1; +x_207 = lean_box(x_206); +if (lean_is_scalar(x_205)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_205; +} +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_204); +return x_208; +} +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_163); +x_209 = lean_ctor_get(x_189, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_189, 1); +lean_inc(x_210); +lean_dec(x_189); +x_166 = x_209; +x_167 = x_210; +goto block_176; } } } else { -lean_object* x_205; lean_object* x_206; -lean_dec(x_159); -x_205 = lean_ctor_get(x_171, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_171, 1); -lean_inc(x_206); -lean_dec(x_171); -x_162 = x_205; -x_163 = x_206; -goto block_170; +lean_object* x_211; lean_object* x_212; +lean_dec(x_163); +x_211 = lean_ctor_get(x_177, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_177, 1); +lean_inc(x_212); +lean_dec(x_177); +x_166 = x_211; +x_167 = x_212; +goto block_176; } -block_170: +block_176: { -uint8_t x_164; -x_164 = l_Lean_Exception_isRuntime(x_162); -if (x_164 == 0) +uint8_t x_168; +x_168 = l_Lean_Exception_isInterrupt(x_166); +if (x_168 == 0) { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_161); -x_165 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_163); +uint8_t x_169; +x_169 = l_Lean_Exception_isRuntime(x_166); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_165); +x_170 = l_Lean_Meta_SavedState_restore(x_12, x_5, x_6, x_7, x_8, x_167); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_12); -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - x_167 = x_165; +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_172 = x_170; } else { - lean_dec_ref(x_165); - x_167 = lean_box(0); + lean_dec_ref(x_170); + x_172 = lean_box(0); } -if (lean_is_scalar(x_167)) { - x_168 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); } else { - x_168 = x_167; - lean_ctor_set_tag(x_168, 1); + x_173 = x_172; + lean_ctor_set_tag(x_173, 1); } -lean_ctor_set(x_168, 0, x_162); -lean_ctor_set(x_168, 1, x_166); -return x_168; +lean_ctor_set(x_173, 0, x_166); +lean_ctor_set(x_173, 1, x_171); +return x_173; } else { -lean_object* x_169; +lean_object* x_174; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -if (lean_is_scalar(x_161)) { - x_169 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_174 = lean_alloc_ctor(1, 2, 0); } else { - x_169 = x_161; - lean_ctor_set_tag(x_169, 1); + x_174 = x_165; + lean_ctor_set_tag(x_174, 1); } -lean_ctor_set(x_169, 0, x_162); -lean_ctor_set(x_169, 1, x_163); -return x_169; +lean_ctor_set(x_174, 0, x_166); +lean_ctor_set(x_174, 1, x_167); +return x_174; +} +} +else +{ +lean_object* x_175; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_165)) { + x_175 = lean_alloc_ctor(1, 2, 0); +} else { + x_175 = x_165; + lean_ctor_set_tag(x_175, 1); +} +lean_ctor_set(x_175, 0, x_166); +lean_ctor_set(x_175, 1, x_167); +return x_175; } } } @@ -52312,7 +52922,7 @@ lean_dec(x_19); x_20 = !lean_is_exclusive(x_16); 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; uint8_t x_39; lean_object* x_40; lean_object* x_79; +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; uint8_t x_41; lean_object* x_42; lean_object* x_81; x_21 = lean_ctor_get(x_16, 5); lean_dec(x_21); x_22 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -52339,638 +52949,684 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_79 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_27); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_unbox(x_80); -if (x_81 == 0) +x_81 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_81) == 0) { lean_object* x_82; uint8_t x_83; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_unbox(x_82); +if (x_83 == 0) +{ +lean_object* x_84; uint8_t x_85; lean_dec(x_2); lean_dec(x_1); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_unbox(x_80); -lean_dec(x_80); -x_39 = x_83; -x_40 = x_82; -goto block_78; +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_dec(x_81); +x_85 = lean_unbox(x_82); +lean_dec(x_82); +x_41 = x_85; +x_42 = x_84; +goto block_80; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_80); -x_84 = lean_ctor_get(x_79, 1); -lean_inc(x_84); -lean_dec(x_79); -x_85 = l_Lean_Expr_constLevels_x21(x_1); -x_86 = l_Lean_Expr_constLevels_x21(x_2); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_82); +x_86 = lean_ctor_get(x_81, 1); +lean_inc(x_86); +lean_dec(x_81); +x_87 = l_Lean_Expr_constLevels_x21(x_1); +x_88 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_87 = l_Lean_Meta_isListLevelDefEqAux(x_85, x_86, x_6, x_7, x_8, x_9, x_84); -if (lean_obj_tag(x_87) == 0) +x_89 = l_Lean_Meta_isListLevelDefEqAux(x_87, x_88, x_6, x_7, x_8, x_9, x_86); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_unbox(x_88); -lean_dec(x_88); -x_39 = x_90; -x_40 = x_89; -goto block_78; -} -else -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_26); -x_91 = lean_ctor_get(x_87, 0); +lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -lean_dec(x_87); -x_29 = x_91; -x_30 = x_92; -goto block_38; -} -} +lean_dec(x_89); +x_92 = lean_unbox(x_90); +lean_dec(x_90); +x_41 = x_92; +x_42 = x_91; +goto block_80; } else { lean_object* x_93; lean_object* x_94; lean_dec(x_26); -lean_dec(x_2); -lean_dec(x_1); -x_93 = lean_ctor_get(x_79, 0); +x_93 = lean_ctor_get(x_89, 0); lean_inc(x_93); -x_94 = lean_ctor_get(x_79, 1); +x_94 = lean_ctor_get(x_89, 1); lean_inc(x_94); -lean_dec(x_79); +lean_dec(x_89); x_29 = x_93; x_30 = x_94; -goto block_38; +goto block_40; } -block_38: +} +} +else +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_26); +lean_dec(x_2); +lean_dec(x_1); +x_95 = lean_ctor_get(x_81, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_81, 1); +lean_inc(x_96); +lean_dec(x_81); +x_29 = x_95; +x_30 = x_96; +goto block_40; +} +block_40: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_dec(x_28); -x_32 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); +x_33 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -lean_object* x_37; +lean_object* x_38; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); if (lean_is_scalar(x_28)) { - x_37 = lean_alloc_ctor(1, 2, 0); + x_38 = lean_alloc_ctor(1, 2, 0); } else { - x_37 = x_28; - lean_ctor_set_tag(x_37, 1); + x_38 = x_28; + lean_ctor_set_tag(x_38, 1); } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_30); +return x_38; } } -block_78: +else { -if (x_39 == 0) +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_28)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_28; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +return x_39; +} +} +block_80: { -lean_object* x_41; uint8_t x_42; +if (x_41 == 0) +{ +lean_object* x_43; uint8_t x_44; lean_dec(x_28); lean_dec(x_26); -x_41 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_40); +x_43 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_42); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -uint8_t x_50; lean_object* x_51; -x_50 = 0; +uint8_t x_52; lean_object* x_53; +x_52 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_51 = l_Lean_Meta_processPostponed(x_5, x_50, x_6, x_7, x_8, x_9, x_40); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Meta_processPostponed(x_5, x_52, x_6, x_7, x_8, x_9, x_42); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_28); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_26); -x_54 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_54); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_box(x_50); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_box(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_59); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_12); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec(x_51); -x_63 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_append___rarg(x_26, x_64); -x_67 = l_Lean_Meta_setPostponed(x_66, x_6, x_7, x_8, x_9, x_65); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 1; -x_74 = lean_box(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_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_dec(x_26); -x_76 = lean_ctor_get(x_51, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_51, 1); -lean_inc(x_77); -lean_dec(x_51); -x_29 = x_76; -x_30 = x_77; -goto block_38; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_56); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(x_52); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +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; uint8_t x_70; +lean_dec(x_12); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_PersistentArray_append___rarg(x_26, x_66); +x_69 = l_Lean_Meta_setPostponed(x_68, x_6, x_7, x_8, x_9, x_67); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = lean_box(x_72); +lean_ctor_set(x_69, 0, x_73); +return x_69; +} +else +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = 1; +x_76 = lean_box(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); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_26); +x_78 = lean_ctor_get(x_53, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_53, 1); +lean_inc(x_79); +lean_dec(x_53); +x_29 = x_78; +x_30 = x_79; +goto block_40; } } } } 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; 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_118; lean_object* x_119; lean_object* x_150; -x_95 = lean_ctor_get(x_16, 0); -x_96 = lean_ctor_get(x_16, 1); -x_97 = lean_ctor_get(x_16, 2); -x_98 = lean_ctor_get(x_16, 3); -x_99 = lean_ctor_get(x_16, 4); -x_100 = lean_ctor_get(x_16, 6); +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; lean_object* x_112; uint8_t x_122; lean_object* x_123; lean_object* x_154; +x_97 = lean_ctor_get(x_16, 0); +x_98 = lean_ctor_get(x_16, 1); +x_99 = lean_ctor_get(x_16, 2); +x_100 = lean_ctor_get(x_16, 3); +x_101 = lean_ctor_get(x_16, 4); +x_102 = lean_ctor_get(x_16, 6); +lean_inc(x_102); +lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); lean_dec(x_16); -x_101 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_102 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -lean_ctor_set(x_102, 2, x_97); -lean_ctor_set(x_102, 3, x_98); -lean_ctor_set(x_102, 4, x_99); -lean_ctor_set(x_102, 5, x_101); -lean_ctor_set(x_102, 6, x_100); -lean_ctor_set(x_15, 1, x_102); -x_103 = lean_st_ref_set(x_7, x_15, x_17); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_105 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_104); -x_106 = lean_ctor_get(x_105, 0); +x_103 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_104 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_98); +lean_ctor_set(x_104, 2, x_99); +lean_ctor_set(x_104, 3, x_100); +lean_ctor_set(x_104, 4, x_101); +lean_ctor_set(x_104, 5, x_103); +lean_ctor_set(x_104, 6, x_102); +lean_ctor_set(x_15, 1, x_104); +x_105 = lean_st_ref_set(x_7, x_15, x_17); +x_106 = lean_ctor_get(x_105, 1); lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_108 = x_105; +lean_dec(x_105); +x_107 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_106); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_110 = x_107; } else { - lean_dec_ref(x_105); - x_108 = lean_box(0); + lean_dec_ref(x_107); + x_110 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_150 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_107); -if (lean_obj_tag(x_150) == 0) +x_154 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_109); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_unbox(x_151); -if (x_152 == 0) -{ -lean_object* x_153; uint8_t x_154; -lean_dec(x_2); -lean_dec(x_1); -x_153 = lean_ctor_get(x_150, 1); -lean_inc(x_153); -lean_dec(x_150); -x_154 = lean_unbox(x_151); -lean_dec(x_151); -x_118 = x_154; -x_119 = x_153; -goto block_149; -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_151); -x_155 = lean_ctor_get(x_150, 1); +lean_object* x_155; uint8_t x_156; +x_155 = lean_ctor_get(x_154, 0); lean_inc(x_155); -lean_dec(x_150); -x_156 = l_Lean_Expr_constLevels_x21(x_1); -x_157 = l_Lean_Expr_constLevels_x21(x_2); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_158 = l_Lean_Meta_isListLevelDefEqAux(x_156, x_157, x_6, x_7, x_8, x_9, x_155); -if (lean_obj_tag(x_158) == 0) +x_156 = lean_unbox(x_155); +if (x_156 == 0) { -lean_object* x_159; lean_object* x_160; uint8_t x_161; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_unbox(x_159); -lean_dec(x_159); -x_118 = x_161; -x_119 = x_160; -goto block_149; -} -else -{ -lean_object* x_162; lean_object* x_163; -lean_dec(x_106); -x_162 = lean_ctor_get(x_158, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_158, 1); -lean_inc(x_163); -lean_dec(x_158); -x_109 = x_162; -x_110 = x_163; -goto block_117; -} -} -} -else -{ -lean_object* x_164; lean_object* x_165; -lean_dec(x_106); +lean_object* x_157; uint8_t x_158; lean_dec(x_2); lean_dec(x_1); -x_164 = lean_ctor_get(x_150, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_150, 1); -lean_inc(x_165); -lean_dec(x_150); -x_109 = x_164; -x_110 = x_165; -goto block_117; -} -block_117: -{ -uint8_t x_111; -x_111 = l_Lean_Exception_isRuntime(x_109); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_108); -x_112 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_110); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_114 = x_112; -} else { - lean_dec_ref(x_112); - 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_tag(x_115, 1); -} -lean_ctor_set(x_115, 0, x_109); -lean_ctor_set(x_115, 1, x_113); -return x_115; +x_157 = lean_ctor_get(x_154, 1); +lean_inc(x_157); +lean_dec(x_154); +x_158 = lean_unbox(x_155); +lean_dec(x_155); +x_122 = x_158; +x_123 = x_157; +goto block_153; } else { -lean_object* x_116; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_108)) { - x_116 = lean_alloc_ctor(1, 2, 0); -} else { - x_116 = x_108; - lean_ctor_set_tag(x_116, 1); -} -lean_ctor_set(x_116, 0, x_109); -lean_ctor_set(x_116, 1, x_110); -return x_116; -} -} -block_149: -{ -if (x_118 == 0) -{ -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_dec(x_108); -lean_dec(x_106); -x_120 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_119); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = 0; -x_124 = lean_box(x_123); -if (lean_is_scalar(x_122)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_122; -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_121); -return x_125; -} -else -{ -uint8_t x_126; lean_object* x_127; -x_126 = 0; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_155); +x_159 = lean_ctor_get(x_154, 1); +lean_inc(x_159); +lean_dec(x_154); +x_160 = l_Lean_Expr_constLevels_x21(x_1); +x_161 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_127 = l_Lean_Meta_processPostponed(x_5, x_126, x_6, x_7, x_8, x_9, x_119); -if (lean_obj_tag(x_127) == 0) +x_162 = l_Lean_Meta_isListLevelDefEqAux(x_160, x_161, x_6, x_7, x_8, x_9, x_159); +if (lean_obj_tag(x_162) == 0) { -lean_object* x_128; uint8_t x_129; +lean_object* x_163; lean_object* x_164; uint8_t x_165; +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_unbox(x_163); +lean_dec(x_163); +x_122 = x_165; +x_123 = x_164; +goto block_153; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_dec(x_108); -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_unbox(x_128); -lean_dec(x_128); -if (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_135; -lean_dec(x_106); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_130); -lean_dec(x_127); -x_131 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_130); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; -} else { - lean_dec_ref(x_131); - x_133 = lean_box(0); -} -x_134 = lean_box(x_126); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_133; -} -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -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; uint8_t x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_12); -x_136 = lean_ctor_get(x_127, 1); -lean_inc(x_136); -lean_dec(x_127); -x_137 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec(x_137); -x_140 = l_Lean_PersistentArray_append___rarg(x_106, x_138); -x_141 = l_Lean_Meta_setPostponed(x_140, x_6, x_7, x_8, x_9, x_139); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_143 = x_141; -} else { - lean_dec_ref(x_141); - x_143 = lean_box(0); -} -x_144 = 1; -x_145 = lean_box(x_144); -if (lean_is_scalar(x_143)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_143; -} -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_142); -return x_146; -} -} -else -{ -lean_object* x_147; lean_object* x_148; -lean_dec(x_106); -x_147 = lean_ctor_get(x_127, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_127, 1); -lean_inc(x_148); -lean_dec(x_127); -x_109 = x_147; -x_110 = x_148; -goto block_117; -} -} -} -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_195; lean_object* x_196; lean_object* x_227; -x_166 = lean_ctor_get(x_15, 0); -x_167 = lean_ctor_get(x_15, 2); -x_168 = lean_ctor_get(x_15, 3); -x_169 = lean_ctor_get(x_15, 4); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); +x_166 = lean_ctor_get(x_162, 0); lean_inc(x_166); -lean_dec(x_15); -x_170 = lean_ctor_get(x_16, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_16, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_16, 2); -lean_inc(x_172); -x_173 = lean_ctor_get(x_16, 3); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +lean_dec(x_162); +x_111 = x_166; +x_112 = x_167; +goto block_121; +} +} +} +else +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_108); +lean_dec(x_2); +lean_dec(x_1); +x_168 = lean_ctor_get(x_154, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_154, 1); +lean_inc(x_169); +lean_dec(x_154); +x_111 = x_168; +x_112 = x_169; +goto block_121; +} +block_121: +{ +uint8_t x_113; +x_113 = l_Lean_Exception_isInterrupt(x_111); +if (x_113 == 0) +{ +uint8_t x_114; +x_114 = l_Lean_Exception_isRuntime(x_111); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +x_115 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_112); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_117 = x_115; +} else { + lean_dec_ref(x_115); + 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_tag(x_118, 1); +} +lean_ctor_set(x_118, 0, x_111); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_110)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_110; + lean_ctor_set_tag(x_119, 1); +} +lean_ctor_set(x_119, 0, x_111); +lean_ctor_set(x_119, 1, x_112); +return x_119; +} +} +else +{ +lean_object* x_120; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_110; + lean_ctor_set_tag(x_120, 1); +} +lean_ctor_set(x_120, 0, x_111); +lean_ctor_set(x_120, 1, x_112); +return x_120; +} +} +block_153: +{ +if (x_122 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_110); +lean_dec(x_108); +x_124 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_123); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; +} else { + lean_dec_ref(x_124); + x_126 = lean_box(0); +} +x_127 = 0; +x_128 = lean_box(x_127); +if (lean_is_scalar(x_126)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_126; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +return x_129; +} +else +{ +uint8_t x_130; lean_object* x_131; +x_130 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_131 = l_Lean_Meta_processPostponed(x_5, x_130, x_6, x_7, x_8, x_9, x_123); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; uint8_t x_133; +lean_dec(x_110); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_unbox(x_132); +lean_dec(x_132); +if (x_133 == 0) +{ +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_dec(x_108); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec(x_131); +x_135 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_134); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_137 = x_135; +} else { + lean_dec_ref(x_135); + x_137 = lean_box(0); +} +x_138 = lean_box(x_130); +if (lean_is_scalar(x_137)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_137; +} +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_136); +return x_139; +} +else +{ +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_dec(x_12); +x_140 = lean_ctor_get(x_131, 1); +lean_inc(x_140); +lean_dec(x_131); +x_141 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_140); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = l_Lean_PersistentArray_append___rarg(x_108, x_142); +x_145 = l_Lean_Meta_setPostponed(x_144, x_6, x_7, x_8, x_9, x_143); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; +} else { + lean_dec_ref(x_145); + x_147 = lean_box(0); +} +x_148 = 1; +x_149 = lean_box(x_148); +if (lean_is_scalar(x_147)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_147; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_146); +return x_150; +} +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_108); +x_151 = lean_ctor_get(x_131, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_131, 1); +lean_inc(x_152); +lean_dec(x_131); +x_111 = x_151; +x_112 = x_152; +goto block_121; +} +} +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_201; lean_object* x_202; lean_object* x_233; +x_170 = lean_ctor_get(x_15, 0); +x_171 = lean_ctor_get(x_15, 2); +x_172 = lean_ctor_get(x_15, 3); +x_173 = lean_ctor_get(x_15, 4); lean_inc(x_173); -x_174 = lean_ctor_get(x_16, 4); +lean_inc(x_172); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_15); +x_174 = lean_ctor_get(x_16, 0); lean_inc(x_174); -x_175 = lean_ctor_get(x_16, 6); +x_175 = lean_ctor_get(x_16, 1); lean_inc(x_175); +x_176 = lean_ctor_get(x_16, 2); +lean_inc(x_176); +x_177 = lean_ctor_get(x_16, 3); +lean_inc(x_177); +x_178 = lean_ctor_get(x_16, 4); +lean_inc(x_178); +x_179 = lean_ctor_get(x_16, 6); +lean_inc(x_179); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); @@ -52979,321 +53635,344 @@ if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 4); lean_ctor_release(x_16, 5); lean_ctor_release(x_16, 6); - x_176 = x_16; + x_180 = x_16; } else { lean_dec_ref(x_16); - x_176 = lean_box(0); + x_180 = lean_box(0); } -x_177 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 7, 0); +x_181 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_180)) { + x_182 = lean_alloc_ctor(0, 7, 0); } else { - x_178 = x_176; + x_182 = x_180; } -lean_ctor_set(x_178, 0, x_170); -lean_ctor_set(x_178, 1, x_171); -lean_ctor_set(x_178, 2, x_172); -lean_ctor_set(x_178, 3, x_173); -lean_ctor_set(x_178, 4, x_174); -lean_ctor_set(x_178, 5, x_177); -lean_ctor_set(x_178, 6, x_175); -x_179 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_179, 0, x_166); -lean_ctor_set(x_179, 1, x_178); -lean_ctor_set(x_179, 2, x_167); -lean_ctor_set(x_179, 3, x_168); -lean_ctor_set(x_179, 4, x_169); -x_180 = lean_st_ref_set(x_7, x_179, x_17); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec(x_180); -x_182 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_181); -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; +lean_ctor_set(x_182, 0, x_174); +lean_ctor_set(x_182, 1, x_175); +lean_ctor_set(x_182, 2, x_176); +lean_ctor_set(x_182, 3, x_177); +lean_ctor_set(x_182, 4, x_178); +lean_ctor_set(x_182, 5, x_181); +lean_ctor_set(x_182, 6, x_179); +x_183 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_183, 0, x_170); +lean_ctor_set(x_183, 1, x_182); +lean_ctor_set(x_183, 2, x_171); +lean_ctor_set(x_183, 3, x_172); +lean_ctor_set(x_183, 4, x_173); +x_184 = lean_st_ref_set(x_7, x_183, x_17); +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +lean_dec(x_184); +x_186 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_185); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_189 = x_186; } else { - lean_dec_ref(x_182); - x_185 = lean_box(0); + lean_dec_ref(x_186); + x_189 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_227 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_184); -if (lean_obj_tag(x_227) == 0) +x_233 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_188); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_228; uint8_t x_229; -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_unbox(x_228); -if (x_229 == 0) +lean_object* x_234; uint8_t x_235; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_unbox(x_234); +if (x_235 == 0) { -lean_object* x_230; uint8_t x_231; +lean_object* x_236; uint8_t x_237; lean_dec(x_2); lean_dec(x_1); -x_230 = lean_ctor_get(x_227, 1); -lean_inc(x_230); -lean_dec(x_227); -x_231 = lean_unbox(x_228); -lean_dec(x_228); -x_195 = x_231; -x_196 = x_230; -goto block_226; -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_228); -x_232 = lean_ctor_get(x_227, 1); -lean_inc(x_232); -lean_dec(x_227); -x_233 = l_Lean_Expr_constLevels_x21(x_1); -x_234 = l_Lean_Expr_constLevels_x21(x_2); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_235 = l_Lean_Meta_isListLevelDefEqAux(x_233, x_234, x_6, x_7, x_8, x_9, x_232); -if (lean_obj_tag(x_235) == 0) -{ -lean_object* x_236; lean_object* x_237; uint8_t x_238; -x_236 = lean_ctor_get(x_235, 0); +x_236 = lean_ctor_get(x_233, 1); lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_238 = lean_unbox(x_236); -lean_dec(x_236); -x_195 = x_238; -x_196 = x_237; -goto block_226; +lean_dec(x_233); +x_237 = lean_unbox(x_234); +lean_dec(x_234); +x_201 = x_237; +x_202 = x_236; +goto block_232; } else { -lean_object* x_239; lean_object* x_240; -lean_dec(x_183); -x_239 = lean_ctor_get(x_235, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_235, 1); -lean_inc(x_240); -lean_dec(x_235); -x_186 = x_239; -x_187 = x_240; -goto block_194; -} -} -} -else -{ -lean_object* x_241; lean_object* x_242; -lean_dec(x_183); -lean_dec(x_2); -lean_dec(x_1); -x_241 = lean_ctor_get(x_227, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_227, 1); -lean_inc(x_242); -lean_dec(x_227); -x_186 = x_241; -x_187 = x_242; -goto block_194; -} -block_194: -{ -uint8_t x_188; -x_188 = l_Lean_Exception_isRuntime(x_186); -if (x_188 == 0) -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_185); -x_189 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_187); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_191 = x_189; -} else { - lean_dec_ref(x_189); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; - lean_ctor_set_tag(x_192, 1); -} -lean_ctor_set(x_192, 0, x_186); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -else -{ -lean_object* x_193; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_185)) { - x_193 = lean_alloc_ctor(1, 2, 0); -} else { - x_193 = x_185; - lean_ctor_set_tag(x_193, 1); -} -lean_ctor_set(x_193, 0, x_186); -lean_ctor_set(x_193, 1, x_187); -return x_193; -} -} -block_226: -{ -if (x_195 == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_185); -lean_dec(x_183); -x_197 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_196); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; -} else { - lean_dec_ref(x_197); - x_199 = lean_box(0); -} -x_200 = 0; -x_201 = lean_box(x_200); -if (lean_is_scalar(x_199)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_199; -} -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_198); -return x_202; -} -else -{ -uint8_t x_203; lean_object* x_204; -x_203 = 0; +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_234); +x_238 = lean_ctor_get(x_233, 1); +lean_inc(x_238); +lean_dec(x_233); +x_239 = l_Lean_Expr_constLevels_x21(x_1); +x_240 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_204 = l_Lean_Meta_processPostponed(x_5, x_203, x_6, x_7, x_8, x_9, x_196); -if (lean_obj_tag(x_204) == 0) +x_241 = l_Lean_Meta_isListLevelDefEqAux(x_239, x_240, x_6, x_7, x_8, x_9, x_238); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_205; uint8_t x_206; -lean_dec(x_185); -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_unbox(x_205); -lean_dec(x_205); -if (x_206 == 0) +lean_object* x_242; lean_object* x_243; uint8_t x_244; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = lean_unbox(x_242); +lean_dec(x_242); +x_201 = x_244; +x_202 = x_243; +goto block_232; +} +else { -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_dec(x_183); -x_207 = lean_ctor_get(x_204, 1); -lean_inc(x_207); -lean_dec(x_204); -x_208 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_207); +lean_object* x_245; lean_object* x_246; +lean_dec(x_187); +x_245 = lean_ctor_get(x_241, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_241, 1); +lean_inc(x_246); +lean_dec(x_241); +x_190 = x_245; +x_191 = x_246; +goto block_200; +} +} +} +else +{ +lean_object* x_247; lean_object* x_248; +lean_dec(x_187); +lean_dec(x_2); +lean_dec(x_1); +x_247 = lean_ctor_get(x_233, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_233, 1); +lean_inc(x_248); +lean_dec(x_233); +x_190 = x_247; +x_191 = x_248; +goto block_200; +} +block_200: +{ +uint8_t x_192; +x_192 = l_Lean_Exception_isInterrupt(x_190); +if (x_192 == 0) +{ +uint8_t x_193; +x_193 = l_Lean_Exception_isRuntime(x_190); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_189); +x_194 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_191); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_210 = x_208; +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_196 = x_194; } else { - lean_dec_ref(x_208); - x_210 = lean_box(0); + lean_dec_ref(x_194); + x_196 = lean_box(0); } -x_211 = lean_box(x_203); -if (lean_is_scalar(x_210)) { - x_212 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); } else { - x_212 = x_210; + x_197 = x_196; + lean_ctor_set_tag(x_197, 1); } -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_209); -return x_212; +lean_ctor_set(x_197, 0, x_190); +lean_ctor_set(x_197, 1, x_195); +return x_197; } else { -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; uint8_t x_221; lean_object* x_222; lean_object* x_223; +lean_object* x_198; lean_dec(x_12); -x_213 = lean_ctor_get(x_204, 1); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_189)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_189; + lean_ctor_set_tag(x_198, 1); +} +lean_ctor_set(x_198, 0, x_190); +lean_ctor_set(x_198, 1, x_191); +return x_198; +} +} +else +{ +lean_object* x_199; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_189)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_189; + lean_ctor_set_tag(x_199, 1); +} +lean_ctor_set(x_199, 0, x_190); +lean_ctor_set(x_199, 1, x_191); +return x_199; +} +} +block_232: +{ +if (x_201 == 0) +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_189); +lean_dec(x_187); +x_203 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_202); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_205 = x_203; +} else { + lean_dec_ref(x_203); + x_205 = lean_box(0); +} +x_206 = 0; +x_207 = lean_box(x_206); +if (lean_is_scalar(x_205)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_205; +} +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_204); +return x_208; +} +else +{ +uint8_t x_209; lean_object* x_210; +x_209 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_210 = l_Lean_Meta_processPostponed(x_5, x_209, x_6, x_7, x_8, x_9, x_202); +if (lean_obj_tag(x_210) == 0) +{ +lean_object* x_211; uint8_t x_212; +lean_dec(x_189); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_unbox(x_211); +lean_dec(x_211); +if (x_212 == 0) +{ +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_187); +x_213 = lean_ctor_get(x_210, 1); lean_inc(x_213); -lean_dec(x_204); -x_214 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_213); -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 = l_Lean_PersistentArray_append___rarg(x_183, x_215); -x_218 = l_Lean_Meta_setPostponed(x_217, x_6, x_7, x_8, x_9, x_216); +lean_dec(x_210); +x_214 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_213); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_219 = lean_ctor_get(x_218, 1); +lean_dec(x_12); +x_215 = lean_ctor_get(x_214, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_216 = x_214; +} else { + lean_dec_ref(x_214); + x_216 = lean_box(0); +} +x_217 = lean_box(x_209); +if (lean_is_scalar(x_216)) { + x_218 = lean_alloc_ctor(0, 2, 0); +} else { + x_218 = x_216; +} +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_215); +return x_218; +} +else +{ +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; uint8_t x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_12); +x_219 = lean_ctor_get(x_210, 1); lean_inc(x_219); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_220 = x_218; +lean_dec(x_210); +x_220 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_219); +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_Lean_PersistentArray_append___rarg(x_187, x_221); +x_224 = l_Lean_Meta_setPostponed(x_223, x_6, x_7, x_8, x_9, x_222); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_226 = x_224; } else { - lean_dec_ref(x_218); - x_220 = lean_box(0); + lean_dec_ref(x_224); + x_226 = lean_box(0); } -x_221 = 1; -x_222 = lean_box(x_221); -if (lean_is_scalar(x_220)) { - x_223 = lean_alloc_ctor(0, 2, 0); +x_227 = 1; +x_228 = lean_box(x_227); +if (lean_is_scalar(x_226)) { + x_229 = lean_alloc_ctor(0, 2, 0); } else { - x_223 = x_220; + x_229 = x_226; } -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_219); -return x_223; +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_225); +return x_229; } } else { -lean_object* x_224; lean_object* x_225; -lean_dec(x_183); -x_224 = lean_ctor_get(x_204, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_204, 1); -lean_inc(x_225); -lean_dec(x_204); -x_186 = x_224; -x_187 = x_225; -goto block_194; +lean_object* x_230; lean_object* x_231; +lean_dec(x_187); +x_230 = lean_ctor_get(x_210, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_210, 1); +lean_inc(x_231); +lean_dec(x_210); +x_190 = x_230; +x_191 = x_231; +goto block_200; } } } @@ -58113,7 +58792,7 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; +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_39; x_19 = lean_ctor_get(x_14, 5); lean_dec(x_19); x_20 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -58139,166 +58818,151 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_37) == 0) +x_39 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_dec(x_26); lean_dec(x_24); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_42); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = 0; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_processPostponed(x_3, x_51, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_processPostponed(x_3, x_53, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_55; uint8_t x_56; lean_dec(x_26); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_24); -x_55 = lean_ctor_get(x_52, 1); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_55); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(x_51); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); -x_61 = lean_box(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -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; -lean_dec(x_10); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_PersistentArray_append___rarg(x_24, x_65); -x_68 = l_Lean_Meta_setPostponed(x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = 1; -x_72 = lean_box(x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = 1; -x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -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_57; lean_object* x_58; uint8_t x_59; lean_dec(x_24); -x_77 = lean_ctor_get(x_52, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); -lean_dec(x_52); -x_27 = x_77; -x_28 = x_78; -goto block_36; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(x_53); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(x_53); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_10); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_dec(x_54); +x_66 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_PersistentArray_append___rarg(x_24, x_67); +x_70 = l_Lean_Meta_setPostponed(x_69, x_4, x_5, x_6, x_7, x_68); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = 1; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } } @@ -58306,362 +58970,423 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_24); -x_79 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_54, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_37, 1); +x_80 = lean_ctor_get(x_54, 1); lean_inc(x_80); -lean_dec(x_37); +lean_dec(x_54); x_27 = x_79; x_28 = x_80; -goto block_36; +goto block_38; } -block_36: +} +} +else +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_24); +x_81 = lean_ctor_get(x_39, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_39, 1); +lean_inc(x_82); +lean_dec(x_39); +x_27 = x_81; +x_28 = x_82; +goto block_38; +} +block_38: { uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; uint8_t x_31; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_26); -x_30 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_27); -return x_30; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_27); +return x_31; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; +lean_object* x_36; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_26)) { - x_35 = lean_alloc_ctor(1, 2, 0); + x_36 = lean_alloc_ctor(1, 2, 0); } else { - x_35 = x_26; - lean_ctor_set_tag(x_35, 1); + x_36 = x_26; + lean_ctor_set_tag(x_36, 1); } -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -return x_35; +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_26)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_26; + lean_ctor_set_tag(x_37, 1); +} +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } else { -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; lean_object* x_96; lean_object* x_104; -x_81 = lean_ctor_get(x_14, 0); -x_82 = lean_ctor_get(x_14, 1); -x_83 = lean_ctor_get(x_14, 2); -x_84 = lean_ctor_get(x_14, 3); -x_85 = lean_ctor_get(x_14, 4); -x_86 = lean_ctor_get(x_14, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_108; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +x_85 = lean_ctor_get(x_14, 2); +x_86 = lean_ctor_get(x_14, 3); +x_87 = lean_ctor_get(x_14, 4); +x_88 = lean_ctor_get(x_14, 6); +lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_14); -x_87 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_88 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_82); -lean_ctor_set(x_88, 2, x_83); -lean_ctor_set(x_88, 3, x_84); -lean_ctor_set(x_88, 4, x_85); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_86); -lean_ctor_set(x_13, 1, x_88); -x_89 = lean_st_ref_set(x_5, x_13, x_15); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_90); -x_92 = lean_ctor_get(x_91, 0); +x_89 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +lean_ctor_set(x_90, 2, x_85); +lean_ctor_set(x_90, 3, x_86); +lean_ctor_set(x_90, 4, x_87); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +lean_ctor_set(x_13, 1, x_90); +x_91 = lean_st_ref_set(x_5, x_13, x_15); +x_92 = lean_ctor_get(x_91, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_94 = x_91; +lean_dec(x_91); +x_93 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_92); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; } else { - lean_dec_ref(x_91); - x_94 = lean_box(0); + lean_dec_ref(x_93); + x_96 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_104 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_104) == 0) +x_108 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; uint8_t x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -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_dec(x_94); -lean_dec(x_92); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_dec(x_104); -x_108 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_107); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_109 = lean_ctor_get(x_108, 1); +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +x_110 = lean_unbox(x_109); +lean_dec(x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_96); +lean_dec(x_94); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_111); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_111 = 0; -x_112 = lean_box(x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_115 = 0; +x_116 = lean_box(x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_110; + x_117 = x_114; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); -return x_113; +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_104, 1); -lean_inc(x_114); -lean_dec(x_104); -x_115 = 0; +lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +lean_dec(x_108); +x_119 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_Meta_processPostponed(x_3, x_115, x_4, x_5, x_6, x_7, x_114); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Meta_processPostponed(x_3, x_119, x_4, x_5, x_6, x_7, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; uint8_t x_118; -lean_dec(x_94); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -lean_dec(x_117); -if (x_118 == 0) -{ -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_92); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_dec(x_116); -x_120 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_119); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_121; uint8_t x_122; +lean_dec(x_96); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(x_115); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; -} -else +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -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; uint8_t x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_10); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -lean_dec(x_116); -x_126 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_PersistentArray_append___rarg(x_92, x_127); -x_130 = l_Lean_Meta_setPostponed(x_129, x_4, x_5, x_6, x_7, x_128); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = 1; -x_134 = lean_box(x_133); -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_134); -lean_ctor_set(x_135, 1, x_131); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_92); -x_136 = lean_ctor_get(x_116, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_116, 1); -lean_inc(x_137); -lean_dec(x_116); -x_95 = x_136; -x_96 = x_137; -goto block_103; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_92); -x_138 = lean_ctor_get(x_104, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_104, 1); -lean_inc(x_139); -lean_dec(x_104); -x_95 = x_138; -x_96 = x_139; -goto block_103; -} -block_103: -{ -uint8_t x_97; -x_97 = l_Lean_Exception_isRuntime(x_95); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +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_94); -x_98 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_96); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_123); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_98); - x_100 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_box(x_119); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_100; - lean_ctor_set_tag(x_101, 1); + x_128 = x_126; } -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; } else { -lean_object* x_102; +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; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_10); +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +lean_dec(x_120); +x_130 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_129); +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 = l_Lean_PersistentArray_append___rarg(x_94, x_131); +x_134 = l_Lean_Meta_setPostponed(x_133, x_4, x_5, x_6, x_7, x_132); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_94)) { - x_102 = lean_alloc_ctor(1, 2, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; } else { - x_102 = x_94; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -return x_102; + lean_dec_ref(x_134); + x_136 = lean_box(0); } +x_137 = 1; +x_138 = lean_box(x_137); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_136; } +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_135); +return x_139; } } else { -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_169; -x_140 = lean_ctor_get(x_13, 0); -x_141 = lean_ctor_get(x_13, 2); -x_142 = lean_ctor_get(x_13, 3); -x_143 = lean_ctor_get(x_13, 4); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_140; lean_object* x_141; +lean_dec(x_94); +x_140 = lean_ctor_get(x_120, 0); lean_inc(x_140); -lean_dec(x_13); -x_144 = lean_ctor_get(x_14, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_14, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_14, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 3); +x_141 = lean_ctor_get(x_120, 1); +lean_inc(x_141); +lean_dec(x_120); +x_97 = x_140; +x_98 = x_141; +goto block_107; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_94); +x_142 = lean_ctor_get(x_108, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_108, 1); +lean_inc(x_143); +lean_dec(x_108); +x_97 = x_142; +x_98 = x_143; +goto block_107; +} +block_107: +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_96); +x_101 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_98); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + 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_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_96; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_96; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_175; +x_144 = lean_ctor_get(x_13, 0); +x_145 = lean_ctor_get(x_13, 2); +x_146 = lean_ctor_get(x_13, 3); +x_147 = lean_ctor_get(x_13, 4); lean_inc(x_147); -x_148 = lean_ctor_get(x_14, 4); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_13); +x_148 = lean_ctor_get(x_14, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_14, 6); +x_149 = lean_ctor_get(x_14, 1); lean_inc(x_149); +x_150 = lean_ctor_get(x_14, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_14, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_14, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_14, 6); +lean_inc(x_153); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -58670,267 +59395,290 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 4); lean_ctor_release(x_14, 5); lean_ctor_release(x_14, 6); - x_150 = x_14; + x_154 = x_14; } else { lean_dec_ref(x_14); - x_150 = lean_box(0); + x_154 = lean_box(0); } -x_151 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 7, 0); +x_155 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 7, 0); } else { - x_152 = x_150; + x_156 = x_154; } -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_151); -lean_ctor_set(x_152, 6, x_149); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_140); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_141); -lean_ctor_set(x_153, 3, x_142); -lean_ctor_set(x_153, 4, x_143); -x_154 = lean_st_ref_set(x_5, x_153, x_15); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_155); -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; +lean_ctor_set(x_156, 0, x_148); +lean_ctor_set(x_156, 1, x_149); +lean_ctor_set(x_156, 2, x_150); +lean_ctor_set(x_156, 3, x_151); +lean_ctor_set(x_156, 4, x_152); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_153); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_145); +lean_ctor_set(x_157, 3, x_146); +lean_ctor_set(x_157, 4, x_147); +x_158 = lean_st_ref_set(x_5, x_157, x_15); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_156); - x_159 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_169 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_158); -if (lean_obj_tag(x_169) == 0) +x_175 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_1, x_2, x_4, x_5, x_6, x_7, x_162); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -lean_dec(x_170); -if (x_171 == 0) +lean_object* x_176; uint8_t x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_unbox(x_176); +lean_dec(x_176); +if (x_177 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_159); -lean_dec(x_157); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_172); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_163); +lean_dec(x_161); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_179 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_178); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_179); + x_181 = lean_box(0); } -x_176 = 0; -x_177 = lean_box(x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 0); +x_182 = 0; +x_183 = lean_box(x_182); +if (lean_is_scalar(x_181)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_175; + x_184 = x_181; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_174); -return x_178; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_180); +return x_184; } else { -lean_object* x_179; uint8_t x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 1); -lean_inc(x_179); -lean_dec(x_169); -x_180 = 0; +lean_object* x_185; uint8_t x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_dec(x_175); +x_186 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lean_Meta_processPostponed(x_3, x_180, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_181) == 0) +x_187 = l_Lean_Meta_processPostponed(x_3, x_186, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_188; uint8_t x_189; +lean_dec(x_163); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) { -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_dec(x_157); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_187 = x_185; -} else { - lean_dec_ref(x_185); - x_187 = lean_box(0); -} -x_188 = lean_box(x_180); -if (lean_is_scalar(x_187)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_187; -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_190 = lean_ctor_get(x_181, 1); +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_dec(x_161); +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -lean_dec(x_181); -x_191 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_191 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_190); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_PersistentArray_append___rarg(x_157, x_192); -x_195 = l_Lean_Meta_setPostponed(x_194, x_4, x_5, x_6, x_7, x_193); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_196 = lean_ctor_get(x_195, 1); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_193 = x_191; +} else { + lean_dec_ref(x_191); + x_193 = lean_box(0); +} +x_194 = lean_box(x_186); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +return x_195; +} +else +{ +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; uint8_t x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_196 = lean_ctor_get(x_187, 1); lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_197; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_157); -x_201 = lean_ctor_get(x_181, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_181, 1); +lean_dec(x_187); +x_197 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_PersistentArray_append___rarg(x_161, x_198); +x_201 = l_Lean_Meta_setPostponed(x_200, x_4, x_5, x_6, x_7, x_199); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); -lean_dec(x_181); -x_160 = x_201; -x_161 = x_202; -goto block_168; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = 1; +x_205 = lean_box(x_204); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +lean_dec(x_161); +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_187, 1); +lean_inc(x_208); +lean_dec(x_187); +x_164 = x_207; +x_165 = x_208; +goto block_174; } } } else { -lean_object* x_203; lean_object* x_204; -lean_dec(x_157); -x_203 = lean_ctor_get(x_169, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_169, 1); -lean_inc(x_204); -lean_dec(x_169); -x_160 = x_203; -x_161 = x_204; -goto block_168; +lean_object* x_209; lean_object* x_210; +lean_dec(x_161); +x_209 = lean_ctor_get(x_175, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_175, 1); +lean_inc(x_210); +lean_dec(x_175); +x_164 = x_209; +x_165 = x_210; +goto block_174; } -block_168: +block_174: { -uint8_t x_162; -x_162 = l_Lean_Exception_isRuntime(x_160); -if (x_162 == 0) +uint8_t x_166; +x_166 = l_Lean_Exception_isInterrupt(x_164); +if (x_166 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_163 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_161); +uint8_t x_167; +x_167 = l_Lean_Exception_isRuntime(x_164); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_163); +x_168 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_165); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_168); + x_170 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_171 = x_170; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_167; +lean_object* x_172; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_159)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_159; - lean_ctor_set_tag(x_167, 1); + x_172 = x_163; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -return x_167; +lean_ctor_set(x_172, 0, x_164); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_163; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_164); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } @@ -58963,7 +59711,7 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; +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_39; x_19 = lean_ctor_get(x_14, 5); lean_dec(x_19); x_20 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -58989,166 +59737,151 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_37) == 0) +x_39 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_dec(x_26); lean_dec(x_24); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_42); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = 0; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_processPostponed(x_3, x_51, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_processPostponed(x_3, x_53, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_55; uint8_t x_56; lean_dec(x_26); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_24); -x_55 = lean_ctor_get(x_52, 1); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_55); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(x_51); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); -x_61 = lean_box(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -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; -lean_dec(x_10); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_PersistentArray_append___rarg(x_24, x_65); -x_68 = l_Lean_Meta_setPostponed(x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = 1; -x_72 = lean_box(x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = 1; -x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -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_57; lean_object* x_58; uint8_t x_59; lean_dec(x_24); -x_77 = lean_ctor_get(x_52, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); -lean_dec(x_52); -x_27 = x_77; -x_28 = x_78; -goto block_36; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(x_53); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(x_53); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_10); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_dec(x_54); +x_66 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_PersistentArray_append___rarg(x_24, x_67); +x_70 = l_Lean_Meta_setPostponed(x_69, x_4, x_5, x_6, x_7, x_68); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = 1; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } } @@ -59156,362 +59889,423 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_24); -x_79 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_54, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_37, 1); +x_80 = lean_ctor_get(x_54, 1); lean_inc(x_80); -lean_dec(x_37); +lean_dec(x_54); x_27 = x_79; x_28 = x_80; -goto block_36; +goto block_38; } -block_36: +} +} +else +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_24); +x_81 = lean_ctor_get(x_39, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_39, 1); +lean_inc(x_82); +lean_dec(x_39); +x_27 = x_81; +x_28 = x_82; +goto block_38; +} +block_38: { uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; uint8_t x_31; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_26); -x_30 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_27); -return x_30; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_27); +return x_31; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; +lean_object* x_36; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_26)) { - x_35 = lean_alloc_ctor(1, 2, 0); + x_36 = lean_alloc_ctor(1, 2, 0); } else { - x_35 = x_26; - lean_ctor_set_tag(x_35, 1); + x_36 = x_26; + lean_ctor_set_tag(x_36, 1); } -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -return x_35; +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_26)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_26; + lean_ctor_set_tag(x_37, 1); +} +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } else { -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; lean_object* x_96; lean_object* x_104; -x_81 = lean_ctor_get(x_14, 0); -x_82 = lean_ctor_get(x_14, 1); -x_83 = lean_ctor_get(x_14, 2); -x_84 = lean_ctor_get(x_14, 3); -x_85 = lean_ctor_get(x_14, 4); -x_86 = lean_ctor_get(x_14, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_108; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +x_85 = lean_ctor_get(x_14, 2); +x_86 = lean_ctor_get(x_14, 3); +x_87 = lean_ctor_get(x_14, 4); +x_88 = lean_ctor_get(x_14, 6); +lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_14); -x_87 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_88 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_82); -lean_ctor_set(x_88, 2, x_83); -lean_ctor_set(x_88, 3, x_84); -lean_ctor_set(x_88, 4, x_85); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_86); -lean_ctor_set(x_13, 1, x_88); -x_89 = lean_st_ref_set(x_5, x_13, x_15); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_90); -x_92 = lean_ctor_get(x_91, 0); +x_89 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +lean_ctor_set(x_90, 2, x_85); +lean_ctor_set(x_90, 3, x_86); +lean_ctor_set(x_90, 4, x_87); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +lean_ctor_set(x_13, 1, x_90); +x_91 = lean_st_ref_set(x_5, x_13, x_15); +x_92 = lean_ctor_get(x_91, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_94 = x_91; +lean_dec(x_91); +x_93 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_92); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; } else { - lean_dec_ref(x_91); - x_94 = lean_box(0); + lean_dec_ref(x_93); + x_96 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_104 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_104) == 0) +x_108 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; uint8_t x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -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_dec(x_94); -lean_dec(x_92); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_dec(x_104); -x_108 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_107); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_109 = lean_ctor_get(x_108, 1); +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +x_110 = lean_unbox(x_109); +lean_dec(x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_96); +lean_dec(x_94); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_111); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_111 = 0; -x_112 = lean_box(x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_115 = 0; +x_116 = lean_box(x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_110; + x_117 = x_114; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); -return x_113; +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_104, 1); -lean_inc(x_114); -lean_dec(x_104); -x_115 = 0; +lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +lean_dec(x_108); +x_119 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_Meta_processPostponed(x_3, x_115, x_4, x_5, x_6, x_7, x_114); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Meta_processPostponed(x_3, x_119, x_4, x_5, x_6, x_7, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; uint8_t x_118; -lean_dec(x_94); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -lean_dec(x_117); -if (x_118 == 0) -{ -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_92); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_dec(x_116); -x_120 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_119); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_121; uint8_t x_122; +lean_dec(x_96); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(x_115); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; -} -else +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -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; uint8_t x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_10); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -lean_dec(x_116); -x_126 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_PersistentArray_append___rarg(x_92, x_127); -x_130 = l_Lean_Meta_setPostponed(x_129, x_4, x_5, x_6, x_7, x_128); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = 1; -x_134 = lean_box(x_133); -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_134); -lean_ctor_set(x_135, 1, x_131); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_92); -x_136 = lean_ctor_get(x_116, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_116, 1); -lean_inc(x_137); -lean_dec(x_116); -x_95 = x_136; -x_96 = x_137; -goto block_103; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_92); -x_138 = lean_ctor_get(x_104, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_104, 1); -lean_inc(x_139); -lean_dec(x_104); -x_95 = x_138; -x_96 = x_139; -goto block_103; -} -block_103: -{ -uint8_t x_97; -x_97 = l_Lean_Exception_isRuntime(x_95); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +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_94); -x_98 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_96); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_123); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_98); - x_100 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_box(x_119); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_100; - lean_ctor_set_tag(x_101, 1); + x_128 = x_126; } -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; } else { -lean_object* x_102; +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; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_10); +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +lean_dec(x_120); +x_130 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_129); +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 = l_Lean_PersistentArray_append___rarg(x_94, x_131); +x_134 = l_Lean_Meta_setPostponed(x_133, x_4, x_5, x_6, x_7, x_132); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_94)) { - x_102 = lean_alloc_ctor(1, 2, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; } else { - x_102 = x_94; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -return x_102; + lean_dec_ref(x_134); + x_136 = lean_box(0); } +x_137 = 1; +x_138 = lean_box(x_137); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_136; } +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_135); +return x_139; } } else { -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_169; -x_140 = lean_ctor_get(x_13, 0); -x_141 = lean_ctor_get(x_13, 2); -x_142 = lean_ctor_get(x_13, 3); -x_143 = lean_ctor_get(x_13, 4); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_140; lean_object* x_141; +lean_dec(x_94); +x_140 = lean_ctor_get(x_120, 0); lean_inc(x_140); -lean_dec(x_13); -x_144 = lean_ctor_get(x_14, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_14, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_14, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 3); +x_141 = lean_ctor_get(x_120, 1); +lean_inc(x_141); +lean_dec(x_120); +x_97 = x_140; +x_98 = x_141; +goto block_107; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_94); +x_142 = lean_ctor_get(x_108, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_108, 1); +lean_inc(x_143); +lean_dec(x_108); +x_97 = x_142; +x_98 = x_143; +goto block_107; +} +block_107: +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_96); +x_101 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_98); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + 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_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_96; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_96; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_175; +x_144 = lean_ctor_get(x_13, 0); +x_145 = lean_ctor_get(x_13, 2); +x_146 = lean_ctor_get(x_13, 3); +x_147 = lean_ctor_get(x_13, 4); lean_inc(x_147); -x_148 = lean_ctor_get(x_14, 4); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_13); +x_148 = lean_ctor_get(x_14, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_14, 6); +x_149 = lean_ctor_get(x_14, 1); lean_inc(x_149); +x_150 = lean_ctor_get(x_14, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_14, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_14, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_14, 6); +lean_inc(x_153); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -59520,267 +60314,290 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 4); lean_ctor_release(x_14, 5); lean_ctor_release(x_14, 6); - x_150 = x_14; + x_154 = x_14; } else { lean_dec_ref(x_14); - x_150 = lean_box(0); + x_154 = lean_box(0); } -x_151 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 7, 0); +x_155 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 7, 0); } else { - x_152 = x_150; + x_156 = x_154; } -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_151); -lean_ctor_set(x_152, 6, x_149); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_140); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_141); -lean_ctor_set(x_153, 3, x_142); -lean_ctor_set(x_153, 4, x_143); -x_154 = lean_st_ref_set(x_5, x_153, x_15); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_155); -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; +lean_ctor_set(x_156, 0, x_148); +lean_ctor_set(x_156, 1, x_149); +lean_ctor_set(x_156, 2, x_150); +lean_ctor_set(x_156, 3, x_151); +lean_ctor_set(x_156, 4, x_152); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_153); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_145); +lean_ctor_set(x_157, 3, x_146); +lean_ctor_set(x_157, 4, x_147); +x_158 = lean_st_ref_set(x_5, x_157, x_15); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_156); - x_159 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_169 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_158); -if (lean_obj_tag(x_169) == 0) +x_175 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment(x_2, x_1, x_4, x_5, x_6, x_7, x_162); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -lean_dec(x_170); -if (x_171 == 0) +lean_object* x_176; uint8_t x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_unbox(x_176); +lean_dec(x_176); +if (x_177 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_159); -lean_dec(x_157); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_172); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_163); +lean_dec(x_161); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_179 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_178); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_179); + x_181 = lean_box(0); } -x_176 = 0; -x_177 = lean_box(x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 0); +x_182 = 0; +x_183 = lean_box(x_182); +if (lean_is_scalar(x_181)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_175; + x_184 = x_181; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_174); -return x_178; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_180); +return x_184; } else { -lean_object* x_179; uint8_t x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 1); -lean_inc(x_179); -lean_dec(x_169); -x_180 = 0; +lean_object* x_185; uint8_t x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_dec(x_175); +x_186 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lean_Meta_processPostponed(x_3, x_180, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_181) == 0) +x_187 = l_Lean_Meta_processPostponed(x_3, x_186, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_188; uint8_t x_189; +lean_dec(x_163); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) { -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_dec(x_157); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_187 = x_185; -} else { - lean_dec_ref(x_185); - x_187 = lean_box(0); -} -x_188 = lean_box(x_180); -if (lean_is_scalar(x_187)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_187; -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_190 = lean_ctor_get(x_181, 1); +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_dec(x_161); +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -lean_dec(x_181); -x_191 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_191 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_190); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_PersistentArray_append___rarg(x_157, x_192); -x_195 = l_Lean_Meta_setPostponed(x_194, x_4, x_5, x_6, x_7, x_193); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_196 = lean_ctor_get(x_195, 1); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_193 = x_191; +} else { + lean_dec_ref(x_191); + x_193 = lean_box(0); +} +x_194 = lean_box(x_186); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +return x_195; +} +else +{ +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; uint8_t x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_196 = lean_ctor_get(x_187, 1); lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_197; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_157); -x_201 = lean_ctor_get(x_181, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_181, 1); +lean_dec(x_187); +x_197 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_PersistentArray_append___rarg(x_161, x_198); +x_201 = l_Lean_Meta_setPostponed(x_200, x_4, x_5, x_6, x_7, x_199); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); -lean_dec(x_181); -x_160 = x_201; -x_161 = x_202; -goto block_168; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = 1; +x_205 = lean_box(x_204); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +lean_dec(x_161); +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_187, 1); +lean_inc(x_208); +lean_dec(x_187); +x_164 = x_207; +x_165 = x_208; +goto block_174; } } } else { -lean_object* x_203; lean_object* x_204; -lean_dec(x_157); -x_203 = lean_ctor_get(x_169, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_169, 1); -lean_inc(x_204); -lean_dec(x_169); -x_160 = x_203; -x_161 = x_204; -goto block_168; +lean_object* x_209; lean_object* x_210; +lean_dec(x_161); +x_209 = lean_ctor_get(x_175, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_175, 1); +lean_inc(x_210); +lean_dec(x_175); +x_164 = x_209; +x_165 = x_210; +goto block_174; } -block_168: +block_174: { -uint8_t x_162; -x_162 = l_Lean_Exception_isRuntime(x_160); -if (x_162 == 0) +uint8_t x_166; +x_166 = l_Lean_Exception_isInterrupt(x_164); +if (x_166 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_163 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_161); +uint8_t x_167; +x_167 = l_Lean_Exception_isRuntime(x_164); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_163); +x_168 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_165); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_168); + x_170 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_171 = x_170; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_167; +lean_object* x_172; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_159)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_159; - lean_ctor_set_tag(x_167, 1); + x_172 = x_163; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -return x_167; +lean_ctor_set(x_172, 0, x_164); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_163; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_164); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } @@ -66494,7 +67311,7 @@ lean_dec(x_19); x_20 = !lean_is_exclusive(x_16); 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; uint8_t x_39; lean_object* x_40; lean_object* x_79; +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; uint8_t x_41; lean_object* x_42; lean_object* x_81; x_21 = lean_ctor_get(x_16, 5); lean_dec(x_21); x_22 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -66521,668 +67338,714 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_79 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_27); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_unbox(x_80); -if (x_81 == 0) +x_81 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_81) == 0) { lean_object* x_82; uint8_t x_83; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_unbox(x_82); +if (x_83 == 0) +{ +lean_object* x_84; uint8_t x_85; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_unbox(x_80); -lean_dec(x_80); -x_39 = x_83; -x_40 = x_82; -goto block_78; +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_dec(x_81); +x_85 = lean_unbox(x_82); +lean_dec(x_82); +x_41 = x_85; +x_42 = x_84; +goto block_80; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_80); -x_84 = lean_ctor_get(x_79, 1); -lean_inc(x_84); -lean_dec(x_79); -x_85 = lean_unsigned_to_nat(0u); -x_86 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_85); -x_87 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +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_dec(x_82); +x_86 = lean_ctor_get(x_81, 1); lean_inc(x_86); -x_88 = lean_mk_array(x_86, x_87); -x_89 = lean_unsigned_to_nat(1u); -x_90 = lean_nat_sub(x_86, x_89); -lean_dec(x_86); -x_91 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_88, x_90); -x_92 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_85); -lean_inc(x_92); -x_93 = lean_mk_array(x_92, x_87); -x_94 = lean_nat_sub(x_92, x_89); -lean_dec(x_92); -x_95 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_93, x_94); +lean_dec(x_81); +x_87 = lean_unsigned_to_nat(0u); +x_88 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_87); +x_89 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_inc(x_88); +x_90 = lean_mk_array(x_88, x_89); +x_91 = lean_unsigned_to_nat(1u); +x_92 = lean_nat_sub(x_88, x_91); +lean_dec(x_88); +x_93 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_90, x_92); +x_94 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_87); +lean_inc(x_94); +x_95 = lean_mk_array(x_94, x_89); +x_96 = lean_nat_sub(x_94, x_91); +lean_dec(x_94); +x_97 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_95, x_96); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_96 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_91, x_95, x_6, x_7, x_8, x_9, x_84); -if (lean_obj_tag(x_96) == 0) +x_98 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_93, x_97, x_6, x_7, x_8, x_9, x_86); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_97; lean_object* x_98; uint8_t x_99; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_unbox(x_97); -lean_dec(x_97); -x_39 = x_99; -x_40 = x_98; -goto block_78; -} -else -{ -lean_object* x_100; lean_object* x_101; -lean_dec(x_26); -x_100 = lean_ctor_get(x_96, 0); +lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_96, 1); -lean_inc(x_101); -lean_dec(x_96); -x_29 = x_100; -x_30 = x_101; -goto block_38; -} -} +lean_dec(x_98); +x_101 = lean_unbox(x_99); +lean_dec(x_99); +x_41 = x_101; +x_42 = x_100; +goto block_80; } else { lean_object* x_102; lean_object* x_103; lean_dec(x_26); +x_102 = lean_ctor_get(x_98, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_dec(x_98); +x_29 = x_102; +x_30 = x_103; +goto block_40; +} +} +} +else +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_26); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_102 = lean_ctor_get(x_79, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_79, 1); -lean_inc(x_103); -lean_dec(x_79); -x_29 = x_102; -x_30 = x_103; -goto block_38; +x_104 = lean_ctor_get(x_81, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_81, 1); +lean_inc(x_105); +lean_dec(x_81); +x_29 = x_104; +x_30 = x_105; +goto block_40; } -block_38: +block_40: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_dec(x_28); -x_32 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); +x_33 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -lean_object* x_37; +lean_object* x_38; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); if (lean_is_scalar(x_28)) { - x_37 = lean_alloc_ctor(1, 2, 0); + x_38 = lean_alloc_ctor(1, 2, 0); } else { - x_37 = x_28; - lean_ctor_set_tag(x_37, 1); + x_38 = x_28; + lean_ctor_set_tag(x_38, 1); } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_30); +return x_38; } } -block_78: +else { -if (x_39 == 0) +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_28)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_28; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +return x_39; +} +} +block_80: { -lean_object* x_41; uint8_t x_42; +if (x_41 == 0) +{ +lean_object* x_43; uint8_t x_44; lean_dec(x_28); lean_dec(x_26); -x_41 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_40); +x_43 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_42); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -uint8_t x_50; lean_object* x_51; -x_50 = 0; +uint8_t x_52; lean_object* x_53; +x_52 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_51 = l_Lean_Meta_processPostponed(x_5, x_50, x_6, x_7, x_8, x_9, x_40); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Meta_processPostponed(x_5, x_52, x_6, x_7, x_8, x_9, x_42); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_28); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_26); -x_54 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_54); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_box(x_50); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_box(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_59); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_12); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec(x_51); -x_63 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_append___rarg(x_26, x_64); -x_67 = l_Lean_Meta_setPostponed(x_66, x_6, x_7, x_8, x_9, x_65); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 1; -x_74 = lean_box(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_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_dec(x_26); -x_76 = lean_ctor_get(x_51, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_51, 1); -lean_inc(x_77); -lean_dec(x_51); -x_29 = x_76; -x_30 = x_77; -goto block_38; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_56); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(x_52); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +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; uint8_t x_70; +lean_dec(x_12); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_PersistentArray_append___rarg(x_26, x_66); +x_69 = l_Lean_Meta_setPostponed(x_68, x_6, x_7, x_8, x_9, x_67); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = lean_box(x_72); +lean_ctor_set(x_69, 0, x_73); +return x_69; +} +else +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = 1; +x_76 = lean_box(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); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_26); +x_78 = lean_ctor_get(x_53, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_53, 1); +lean_inc(x_79); +lean_dec(x_53); +x_29 = x_78; +x_30 = x_79; +goto block_40; } } } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 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; uint8_t x_127; lean_object* x_128; lean_object* x_159; -x_104 = lean_ctor_get(x_16, 0); -x_105 = lean_ctor_get(x_16, 1); -x_106 = lean_ctor_get(x_16, 2); -x_107 = lean_ctor_get(x_16, 3); -x_108 = lean_ctor_get(x_16, 4); -x_109 = lean_ctor_get(x_16, 6); +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; uint8_t x_131; lean_object* x_132; lean_object* x_163; +x_106 = lean_ctor_get(x_16, 0); +x_107 = lean_ctor_get(x_16, 1); +x_108 = lean_ctor_get(x_16, 2); +x_109 = lean_ctor_get(x_16, 3); +x_110 = lean_ctor_get(x_16, 4); +x_111 = lean_ctor_get(x_16, 6); +lean_inc(x_111); +lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); -lean_inc(x_105); -lean_inc(x_104); lean_dec(x_16); -x_110 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_111 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_111, 0, x_104); -lean_ctor_set(x_111, 1, x_105); -lean_ctor_set(x_111, 2, x_106); -lean_ctor_set(x_111, 3, x_107); -lean_ctor_set(x_111, 4, x_108); -lean_ctor_set(x_111, 5, x_110); -lean_ctor_set(x_111, 6, x_109); -lean_ctor_set(x_15, 1, x_111); -x_112 = lean_st_ref_set(x_7, x_15, x_17); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -lean_dec(x_112); -x_114 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_113); -x_115 = lean_ctor_get(x_114, 0); +x_112 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_113 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_113, 0, x_106); +lean_ctor_set(x_113, 1, x_107); +lean_ctor_set(x_113, 2, x_108); +lean_ctor_set(x_113, 3, x_109); +lean_ctor_set(x_113, 4, x_110); +lean_ctor_set(x_113, 5, x_112); +lean_ctor_set(x_113, 6, x_111); +lean_ctor_set(x_15, 1, x_113); +x_114 = lean_st_ref_set(x_7, x_15, x_17); +x_115 = lean_ctor_get(x_114, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_117 = x_114; +lean_dec(x_114); +x_116 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_115); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; } else { - lean_dec_ref(x_114); - x_117 = lean_box(0); + lean_dec_ref(x_116); + x_119 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_159 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_116); -if (lean_obj_tag(x_159) == 0) +x_163 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_118); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_160; uint8_t x_161; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_unbox(x_160); -if (x_161 == 0) -{ -lean_object* x_162; uint8_t x_163; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_162 = lean_ctor_get(x_159, 1); -lean_inc(x_162); -lean_dec(x_159); -x_163 = lean_unbox(x_160); -lean_dec(x_160); -x_127 = x_163; -x_128 = x_162; -goto block_158; -} -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; lean_object* x_175; lean_object* x_176; -lean_dec(x_160); -x_164 = lean_ctor_get(x_159, 1); +lean_object* x_164; uint8_t x_165; +x_164 = lean_ctor_get(x_163, 0); lean_inc(x_164); -lean_dec(x_159); -x_165 = lean_unsigned_to_nat(0u); -x_166 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_165); -x_167 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; -lean_inc(x_166); -x_168 = lean_mk_array(x_166, x_167); -x_169 = lean_unsigned_to_nat(1u); -x_170 = lean_nat_sub(x_166, x_169); -lean_dec(x_166); -x_171 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_168, x_170); -x_172 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_165); -lean_inc(x_172); -x_173 = lean_mk_array(x_172, x_167); -x_174 = lean_nat_sub(x_172, x_169); -lean_dec(x_172); -x_175 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_173, x_174); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_176 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_171, x_175, x_6, x_7, x_8, x_9, x_164); -if (lean_obj_tag(x_176) == 0) +x_165 = lean_unbox(x_164); +if (x_165 == 0) { -lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_179 = lean_unbox(x_177); -lean_dec(x_177); -x_127 = x_179; -x_128 = x_178; -goto block_158; -} -else -{ -lean_object* x_180; lean_object* x_181; -lean_dec(x_115); -x_180 = lean_ctor_get(x_176, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_176, 1); -lean_inc(x_181); -lean_dec(x_176); -x_118 = x_180; -x_119 = x_181; -goto block_126; -} -} -} -else -{ -lean_object* x_182; lean_object* x_183; -lean_dec(x_115); +lean_object* x_166; uint8_t x_167; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_182 = lean_ctor_get(x_159, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_159, 1); -lean_inc(x_183); -lean_dec(x_159); -x_118 = x_182; -x_119 = x_183; -goto block_126; -} -block_126: -{ -uint8_t x_120; -x_120 = l_Lean_Exception_isRuntime(x_118); -if (x_120 == 0) -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_117); -x_121 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_119); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_123 = x_121; -} else { - lean_dec_ref(x_121); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; - lean_ctor_set_tag(x_124, 1); -} -lean_ctor_set(x_124, 0, x_118); -lean_ctor_set(x_124, 1, x_122); -return x_124; +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); +lean_dec(x_163); +x_167 = lean_unbox(x_164); +lean_dec(x_164); +x_131 = x_167; +x_132 = x_166; +goto block_162; } else { -lean_object* x_125; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_117)) { - x_125 = lean_alloc_ctor(1, 2, 0); -} else { - x_125 = x_117; - lean_ctor_set_tag(x_125, 1); -} -lean_ctor_set(x_125, 0, x_118); -lean_ctor_set(x_125, 1, x_119); -return x_125; -} -} -block_158: -{ -if (x_127 == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_117); -lean_dec(x_115); -x_129 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_128); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_131 = x_129; -} else { - lean_dec_ref(x_129); - x_131 = lean_box(0); -} -x_132 = 0; -x_133 = lean_box(x_132); -if (lean_is_scalar(x_131)) { - x_134 = lean_alloc_ctor(0, 2, 0); -} else { - x_134 = x_131; -} -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_130); -return x_134; -} -else -{ -uint8_t x_135; lean_object* x_136; -x_135 = 0; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_164); +x_168 = lean_ctor_get(x_163, 1); +lean_inc(x_168); +lean_dec(x_163); +x_169 = lean_unsigned_to_nat(0u); +x_170 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_169); +x_171 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_inc(x_170); +x_172 = lean_mk_array(x_170, x_171); +x_173 = lean_unsigned_to_nat(1u); +x_174 = lean_nat_sub(x_170, x_173); +lean_dec(x_170); +x_175 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_172, x_174); +x_176 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_169); +lean_inc(x_176); +x_177 = lean_mk_array(x_176, x_171); +x_178 = lean_nat_sub(x_176, x_173); +lean_dec(x_176); +x_179 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_177, x_178); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_136 = l_Lean_Meta_processPostponed(x_5, x_135, x_6, x_7, x_8, x_9, x_128); -if (lean_obj_tag(x_136) == 0) +x_180 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_175, x_179, x_6, x_7, x_8, x_9, x_168); +if (lean_obj_tag(x_180) == 0) { -lean_object* x_137; uint8_t x_138; +lean_object* x_181; lean_object* x_182; uint8_t x_183; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = lean_unbox(x_181); +lean_dec(x_181); +x_131 = x_183; +x_132 = x_182; +goto block_162; +} +else +{ +lean_object* x_184; lean_object* x_185; lean_dec(x_117); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_unbox(x_137); -lean_dec(x_137); -if (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; -lean_dec(x_115); -x_139 = lean_ctor_get(x_136, 1); -lean_inc(x_139); -lean_dec(x_136); -x_140 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_139); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; -} else { - lean_dec_ref(x_140); - x_142 = lean_box(0); -} -x_143 = lean_box(x_135); -if (lean_is_scalar(x_142)) { - x_144 = lean_alloc_ctor(0, 2, 0); -} else { - x_144 = x_142; -} -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_141); -return x_144; -} -else -{ -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; uint8_t x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_12); -x_145 = lean_ctor_get(x_136, 1); -lean_inc(x_145); -lean_dec(x_136); -x_146 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_145); -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec(x_146); -x_149 = l_Lean_PersistentArray_append___rarg(x_115, x_147); -x_150 = l_Lean_Meta_setPostponed(x_149, x_6, x_7, x_8, x_9, x_148); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; -} else { - lean_dec_ref(x_150); - x_152 = lean_box(0); -} -x_153 = 1; -x_154 = lean_box(x_153); -if (lean_is_scalar(x_152)) { - x_155 = lean_alloc_ctor(0, 2, 0); -} else { - x_155 = x_152; -} -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_151); -return x_155; -} -} -else -{ -lean_object* x_156; lean_object* x_157; -lean_dec(x_115); -x_156 = lean_ctor_get(x_136, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_136, 1); -lean_inc(x_157); -lean_dec(x_136); -x_118 = x_156; -x_119 = x_157; -goto block_126; -} -} -} -} -} -else -{ -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; 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; uint8_t x_213; lean_object* x_214; lean_object* x_245; -x_184 = lean_ctor_get(x_15, 0); -x_185 = lean_ctor_get(x_15, 2); -x_186 = lean_ctor_get(x_15, 3); -x_187 = lean_ctor_get(x_15, 4); -lean_inc(x_187); -lean_inc(x_186); -lean_inc(x_185); +x_184 = lean_ctor_get(x_180, 0); lean_inc(x_184); -lean_dec(x_15); -x_188 = lean_ctor_get(x_16, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_16, 1); -lean_inc(x_189); -x_190 = lean_ctor_get(x_16, 2); -lean_inc(x_190); -x_191 = lean_ctor_get(x_16, 3); +x_185 = lean_ctor_get(x_180, 1); +lean_inc(x_185); +lean_dec(x_180); +x_120 = x_184; +x_121 = x_185; +goto block_130; +} +} +} +else +{ +lean_object* x_186; lean_object* x_187; +lean_dec(x_117); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_186 = lean_ctor_get(x_163, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_163, 1); +lean_inc(x_187); +lean_dec(x_163); +x_120 = x_186; +x_121 = x_187; +goto block_130; +} +block_130: +{ +uint8_t x_122; +x_122 = l_Lean_Exception_isInterrupt(x_120); +if (x_122 == 0) +{ +uint8_t x_123; +x_123 = l_Lean_Exception_isRuntime(x_120); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_119); +x_124 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_121); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; +} else { + lean_dec_ref(x_124); + 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_tag(x_127, 1); +} +lean_ctor_set(x_127, 0, x_120); +lean_ctor_set(x_127, 1, x_125); +return x_127; +} +else +{ +lean_object* x_128; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_119)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_119; + lean_ctor_set_tag(x_128, 1); +} +lean_ctor_set(x_128, 0, x_120); +lean_ctor_set(x_128, 1, x_121); +return x_128; +} +} +else +{ +lean_object* x_129; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_119)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_119; + lean_ctor_set_tag(x_129, 1); +} +lean_ctor_set(x_129, 0, x_120); +lean_ctor_set(x_129, 1, x_121); +return x_129; +} +} +block_162: +{ +if (x_131 == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_119); +lean_dec(x_117); +x_133 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_132); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_135 = x_133; +} else { + lean_dec_ref(x_133); + x_135 = lean_box(0); +} +x_136 = 0; +x_137 = lean_box(x_136); +if (lean_is_scalar(x_135)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_135; +} +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_134); +return x_138; +} +else +{ +uint8_t x_139; lean_object* x_140; +x_139 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_140 = l_Lean_Meta_processPostponed(x_5, x_139, x_6, x_7, x_8, x_9, x_132); +if (lean_obj_tag(x_140) == 0) +{ +lean_object* x_141; uint8_t x_142; +lean_dec(x_119); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_unbox(x_141); +lean_dec(x_141); +if (x_142 == 0) +{ +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_dec(x_117); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +lean_dec(x_140); +x_144 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_143); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +x_147 = lean_box(x_139); +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_146; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_145); +return x_148; +} +else +{ +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; uint8_t x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_12); +x_149 = lean_ctor_get(x_140, 1); +lean_inc(x_149); +lean_dec(x_140); +x_150 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_149); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = l_Lean_PersistentArray_append___rarg(x_117, x_151); +x_154 = l_Lean_Meta_setPostponed(x_153, x_6, x_7, x_8, x_9, x_152); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_156 = x_154; +} else { + lean_dec_ref(x_154); + x_156 = lean_box(0); +} +x_157 = 1; +x_158 = lean_box(x_157); +if (lean_is_scalar(x_156)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_156; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_155); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_117); +x_160 = lean_ctor_get(x_140, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_140, 1); +lean_inc(x_161); +lean_dec(x_140); +x_120 = x_160; +x_121 = x_161; +goto block_130; +} +} +} +} +} +else +{ +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; uint8_t x_219; lean_object* x_220; lean_object* x_251; +x_188 = lean_ctor_get(x_15, 0); +x_189 = lean_ctor_get(x_15, 2); +x_190 = lean_ctor_get(x_15, 3); +x_191 = lean_ctor_get(x_15, 4); lean_inc(x_191); -x_192 = lean_ctor_get(x_16, 4); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_15); +x_192 = lean_ctor_get(x_16, 0); lean_inc(x_192); -x_193 = lean_ctor_get(x_16, 6); +x_193 = lean_ctor_get(x_16, 1); lean_inc(x_193); +x_194 = lean_ctor_get(x_16, 2); +lean_inc(x_194); +x_195 = lean_ctor_get(x_16, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_16, 4); +lean_inc(x_196); +x_197 = lean_ctor_get(x_16, 6); +lean_inc(x_197); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); @@ -67191,336 +68054,359 @@ if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 4); lean_ctor_release(x_16, 5); lean_ctor_release(x_16, 6); - x_194 = x_16; + x_198 = x_16; } else { lean_dec_ref(x_16); - x_194 = lean_box(0); + x_198 = lean_box(0); } -x_195 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_194)) { - x_196 = lean_alloc_ctor(0, 7, 0); +x_199 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_198)) { + x_200 = lean_alloc_ctor(0, 7, 0); } else { - x_196 = x_194; + x_200 = x_198; } -lean_ctor_set(x_196, 0, x_188); -lean_ctor_set(x_196, 1, x_189); -lean_ctor_set(x_196, 2, x_190); -lean_ctor_set(x_196, 3, x_191); -lean_ctor_set(x_196, 4, x_192); -lean_ctor_set(x_196, 5, x_195); -lean_ctor_set(x_196, 6, x_193); -x_197 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_197, 0, x_184); -lean_ctor_set(x_197, 1, x_196); -lean_ctor_set(x_197, 2, x_185); -lean_ctor_set(x_197, 3, x_186); -lean_ctor_set(x_197, 4, x_187); -x_198 = lean_st_ref_set(x_7, x_197, x_17); -x_199 = lean_ctor_get(x_198, 1); -lean_inc(x_199); -lean_dec(x_198); -x_200 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_199); -x_201 = lean_ctor_get(x_200, 0); -lean_inc(x_201); -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; +lean_ctor_set(x_200, 0, x_192); +lean_ctor_set(x_200, 1, x_193); +lean_ctor_set(x_200, 2, x_194); +lean_ctor_set(x_200, 3, x_195); +lean_ctor_set(x_200, 4, x_196); +lean_ctor_set(x_200, 5, x_199); +lean_ctor_set(x_200, 6, x_197); +x_201 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_201, 0, x_188); +lean_ctor_set(x_201, 1, x_200); +lean_ctor_set(x_201, 2, x_189); +lean_ctor_set(x_201, 3, x_190); +lean_ctor_set(x_201, 4, x_191); +x_202 = lean_st_ref_set(x_7, x_201, x_17); +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); +lean_dec(x_202); +x_204 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_203); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; } else { - lean_dec_ref(x_200); - x_203 = lean_box(0); + lean_dec_ref(x_204); + x_207 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); -x_245 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_202); -if (lean_obj_tag(x_245) == 0) +x_251 = lean_is_expr_def_eq(x_3, x_4, x_6, x_7, x_8, x_9, x_206); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_246; uint8_t x_247; -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -x_247 = lean_unbox(x_246); -if (x_247 == 0) -{ -lean_object* x_248; uint8_t x_249; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_248 = lean_ctor_get(x_245, 1); -lean_inc(x_248); -lean_dec(x_245); -x_249 = lean_unbox(x_246); -lean_dec(x_246); -x_213 = x_249; -x_214 = x_248; -goto block_244; -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_246); -x_250 = lean_ctor_get(x_245, 1); -lean_inc(x_250); -lean_dec(x_245); -x_251 = lean_unsigned_to_nat(0u); -x_252 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_251); -x_253 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_object* x_252; uint8_t x_253; +x_252 = lean_ctor_get(x_251, 0); lean_inc(x_252); -x_254 = lean_mk_array(x_252, x_253); -x_255 = lean_unsigned_to_nat(1u); -x_256 = lean_nat_sub(x_252, x_255); -lean_dec(x_252); -x_257 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_254, x_256); -x_258 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_251); -lean_inc(x_258); -x_259 = lean_mk_array(x_258, x_253); -x_260 = lean_nat_sub(x_258, x_255); -lean_dec(x_258); -x_261 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_259, x_260); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_262 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_257, x_261, x_6, x_7, x_8, x_9, x_250); -if (lean_obj_tag(x_262) == 0) +x_253 = lean_unbox(x_252); +if (x_253 == 0) { -lean_object* x_263; lean_object* x_264; uint8_t x_265; -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_unbox(x_263); -lean_dec(x_263); -x_213 = x_265; -x_214 = x_264; -goto block_244; -} -else -{ -lean_object* x_266; lean_object* x_267; -lean_dec(x_201); -x_266 = lean_ctor_get(x_262, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_262, 1); -lean_inc(x_267); -lean_dec(x_262); -x_204 = x_266; -x_205 = x_267; -goto block_212; -} -} -} -else -{ -lean_object* x_268; lean_object* x_269; -lean_dec(x_201); +lean_object* x_254; uint8_t x_255; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_268 = lean_ctor_get(x_245, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_245, 1); -lean_inc(x_269); -lean_dec(x_245); -x_204 = x_268; -x_205 = x_269; -goto block_212; -} -block_212: -{ -uint8_t x_206; -x_206 = l_Lean_Exception_isRuntime(x_204); -if (x_206 == 0) -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_203); -x_207 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_205); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_208 = lean_ctor_get(x_207, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_209 = x_207; -} else { - lean_dec_ref(x_207); - x_209 = lean_box(0); -} -if (lean_is_scalar(x_209)) { - x_210 = lean_alloc_ctor(1, 2, 0); -} else { - x_210 = x_209; - lean_ctor_set_tag(x_210, 1); -} -lean_ctor_set(x_210, 0, x_204); -lean_ctor_set(x_210, 1, x_208); -return x_210; +x_254 = lean_ctor_get(x_251, 1); +lean_inc(x_254); +lean_dec(x_251); +x_255 = lean_unbox(x_252); +lean_dec(x_252); +x_219 = x_255; +x_220 = x_254; +goto block_250; } else { -lean_object* x_211; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_203)) { - x_211 = lean_alloc_ctor(1, 2, 0); -} else { - x_211 = x_203; - lean_ctor_set_tag(x_211, 1); -} -lean_ctor_set(x_211, 0, x_204); -lean_ctor_set(x_211, 1, x_205); -return x_211; -} -} -block_244: -{ -if (x_213 == 0) -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_219; lean_object* x_220; -lean_dec(x_203); -lean_dec(x_201); -x_215 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_214); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_216 = lean_ctor_get(x_215, 1); -lean_inc(x_216); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_217 = x_215; -} else { - lean_dec_ref(x_215); - x_217 = lean_box(0); -} -x_218 = 0; -x_219 = lean_box(x_218); -if (lean_is_scalar(x_217)) { - x_220 = lean_alloc_ctor(0, 2, 0); -} else { - x_220 = x_217; -} -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -return x_220; -} -else -{ -uint8_t x_221; lean_object* x_222; -x_221 = 0; +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_252); +x_256 = lean_ctor_get(x_251, 1); +lean_inc(x_256); +lean_dec(x_251); +x_257 = lean_unsigned_to_nat(0u); +x_258 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_257); +x_259 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_inc(x_258); +x_260 = lean_mk_array(x_258, x_259); +x_261 = lean_unsigned_to_nat(1u); +x_262 = lean_nat_sub(x_258, x_261); +lean_dec(x_258); +x_263 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_260, x_262); +x_264 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_2, x_257); +lean_inc(x_264); +x_265 = lean_mk_array(x_264, x_259); +x_266 = lean_nat_sub(x_264, x_261); +lean_dec(x_264); +x_267 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_265, x_266); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_222 = l_Lean_Meta_processPostponed(x_5, x_221, x_6, x_7, x_8, x_9, x_214); -if (lean_obj_tag(x_222) == 0) +x_268 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_3, x_263, x_267, x_6, x_7, x_8, x_9, x_256); +if (lean_obj_tag(x_268) == 0) { -lean_object* x_223; uint8_t x_224; -lean_dec(x_203); -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_unbox(x_223); -lean_dec(x_223); -if (x_224 == 0) +lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_268, 1); +lean_inc(x_270); +lean_dec(x_268); +x_271 = lean_unbox(x_269); +lean_dec(x_269); +x_219 = x_271; +x_220 = x_270; +goto block_250; +} +else { -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_dec(x_201); -x_225 = lean_ctor_get(x_222, 1); -lean_inc(x_225); -lean_dec(x_222); -x_226 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_225); +lean_object* x_272; lean_object* x_273; +lean_dec(x_205); +x_272 = lean_ctor_get(x_268, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_268, 1); +lean_inc(x_273); +lean_dec(x_268); +x_208 = x_272; +x_209 = x_273; +goto block_218; +} +} +} +else +{ +lean_object* x_274; lean_object* x_275; +lean_dec(x_205); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_274 = lean_ctor_get(x_251, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_251, 1); +lean_inc(x_275); +lean_dec(x_251); +x_208 = x_274; +x_209 = x_275; +goto block_218; +} +block_218: +{ +uint8_t x_210; +x_210 = l_Lean_Exception_isInterrupt(x_208); +if (x_210 == 0) +{ +uint8_t x_211; +x_211 = l_Lean_Exception_isRuntime(x_208); +if (x_211 == 0) +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_207); +x_212 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_209); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_227 = lean_ctor_get(x_226, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_228 = x_226; +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_214 = x_212; } else { - lean_dec_ref(x_226); - x_228 = lean_box(0); + lean_dec_ref(x_212); + x_214 = lean_box(0); } -x_229 = lean_box(x_221); -if (lean_is_scalar(x_228)) { - x_230 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_230 = x_228; + x_215 = x_214; + lean_ctor_set_tag(x_215, 1); } -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_227); -return x_230; +lean_ctor_set(x_215, 0, x_208); +lean_ctor_set(x_215, 1, x_213); +return x_215; } else { -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; uint8_t x_239; lean_object* x_240; lean_object* x_241; +lean_object* x_216; lean_dec(x_12); -x_231 = lean_ctor_get(x_222, 1); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_207)) { + x_216 = lean_alloc_ctor(1, 2, 0); +} else { + x_216 = x_207; + lean_ctor_set_tag(x_216, 1); +} +lean_ctor_set(x_216, 0, x_208); +lean_ctor_set(x_216, 1, x_209); +return x_216; +} +} +else +{ +lean_object* x_217; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_207)) { + x_217 = lean_alloc_ctor(1, 2, 0); +} else { + x_217 = x_207; + lean_ctor_set_tag(x_217, 1); +} +lean_ctor_set(x_217, 0, x_208); +lean_ctor_set(x_217, 1, x_209); +return x_217; +} +} +block_250: +{ +if (x_219 == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_207); +lean_dec(x_205); +x_221 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_220); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_222 = lean_ctor_get(x_221, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_223 = x_221; +} else { + lean_dec_ref(x_221); + x_223 = lean_box(0); +} +x_224 = 0; +x_225 = lean_box(x_224); +if (lean_is_scalar(x_223)) { + x_226 = lean_alloc_ctor(0, 2, 0); +} else { + x_226 = x_223; +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_222); +return x_226; +} +else +{ +uint8_t x_227; lean_object* x_228; +x_227 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_228 = l_Lean_Meta_processPostponed(x_5, x_227, x_6, x_7, x_8, x_9, x_220); +if (lean_obj_tag(x_228) == 0) +{ +lean_object* x_229; uint8_t x_230; +lean_dec(x_207); +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +x_230 = lean_unbox(x_229); +lean_dec(x_229); +if (x_230 == 0) +{ +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_dec(x_205); +x_231 = lean_ctor_get(x_228, 1); lean_inc(x_231); -lean_dec(x_222); -x_232 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_231); -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -x_235 = l_Lean_PersistentArray_append___rarg(x_201, x_233); -x_236 = l_Lean_Meta_setPostponed(x_235, x_6, x_7, x_8, x_9, x_234); +lean_dec(x_228); +x_232 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_231); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_237 = lean_ctor_get(x_236, 1); +lean_dec(x_12); +x_233 = lean_ctor_get(x_232, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_234 = x_232; +} else { + lean_dec_ref(x_232); + x_234 = lean_box(0); +} +x_235 = lean_box(x_227); +if (lean_is_scalar(x_234)) { + x_236 = lean_alloc_ctor(0, 2, 0); +} else { + x_236 = x_234; +} +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_233); +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; lean_object* x_246; lean_object* x_247; +lean_dec(x_12); +x_237 = lean_ctor_get(x_228, 1); lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; +lean_dec(x_228); +x_238 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_237); +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +x_241 = l_Lean_PersistentArray_append___rarg(x_205, x_239); +x_242 = l_Lean_Meta_setPostponed(x_241, x_6, x_7, x_8, x_9, x_240); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_243 = lean_ctor_get(x_242, 1); +lean_inc(x_243); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_244 = x_242; } else { - lean_dec_ref(x_236); - x_238 = lean_box(0); + lean_dec_ref(x_242); + x_244 = lean_box(0); } -x_239 = 1; -x_240 = lean_box(x_239); -if (lean_is_scalar(x_238)) { - x_241 = lean_alloc_ctor(0, 2, 0); +x_245 = 1; +x_246 = lean_box(x_245); +if (lean_is_scalar(x_244)) { + x_247 = lean_alloc_ctor(0, 2, 0); } else { - x_241 = x_238; + x_247 = x_244; } -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_237); -return x_241; +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_243); +return x_247; } } else { -lean_object* x_242; lean_object* x_243; -lean_dec(x_201); -x_242 = lean_ctor_get(x_222, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_222, 1); -lean_inc(x_243); -lean_dec(x_222); -x_204 = x_242; -x_205 = x_243; -goto block_212; +lean_object* x_248; lean_object* x_249; +lean_dec(x_205); +x_248 = lean_ctor_get(x_228, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_228, 1); +lean_inc(x_249); +lean_dec(x_228); +x_208 = x_248; +x_209 = x_249; +goto block_218; } } } @@ -67554,7 +68440,7 @@ lean_dec(x_19); x_20 = !lean_is_exclusive(x_16); 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; uint8_t x_39; lean_object* x_40; lean_object* x_79; +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; uint8_t x_41; lean_object* x_42; lean_object* x_81; x_21 = lean_ctor_get(x_16, 5); lean_dec(x_21); x_22 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; @@ -67581,638 +68467,684 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_79 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_27); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_unbox(x_80); -if (x_81 == 0) +x_81 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_81) == 0) { lean_object* x_82; uint8_t x_83; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_unbox(x_82); +if (x_83 == 0) +{ +lean_object* x_84; uint8_t x_85; lean_dec(x_2); lean_dec(x_1); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_unbox(x_80); -lean_dec(x_80); -x_39 = x_83; -x_40 = x_82; -goto block_78; +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_dec(x_81); +x_85 = lean_unbox(x_82); +lean_dec(x_82); +x_41 = x_85; +x_42 = x_84; +goto block_80; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_80); -x_84 = lean_ctor_get(x_79, 1); -lean_inc(x_84); -lean_dec(x_79); -x_85 = l_Lean_Expr_constLevels_x21(x_1); -x_86 = l_Lean_Expr_constLevels_x21(x_2); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_82); +x_86 = lean_ctor_get(x_81, 1); +lean_inc(x_86); +lean_dec(x_81); +x_87 = l_Lean_Expr_constLevels_x21(x_1); +x_88 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_87 = l_Lean_Meta_isListLevelDefEqAux(x_85, x_86, x_6, x_7, x_8, x_9, x_84); -if (lean_obj_tag(x_87) == 0) +x_89 = l_Lean_Meta_isListLevelDefEqAux(x_87, x_88, x_6, x_7, x_8, x_9, x_86); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_unbox(x_88); -lean_dec(x_88); -x_39 = x_90; -x_40 = x_89; -goto block_78; -} -else -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_26); -x_91 = lean_ctor_get(x_87, 0); +lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -lean_dec(x_87); -x_29 = x_91; -x_30 = x_92; -goto block_38; -} -} +lean_dec(x_89); +x_92 = lean_unbox(x_90); +lean_dec(x_90); +x_41 = x_92; +x_42 = x_91; +goto block_80; } else { lean_object* x_93; lean_object* x_94; lean_dec(x_26); -lean_dec(x_2); -lean_dec(x_1); -x_93 = lean_ctor_get(x_79, 0); +x_93 = lean_ctor_get(x_89, 0); lean_inc(x_93); -x_94 = lean_ctor_get(x_79, 1); +x_94 = lean_ctor_get(x_89, 1); lean_inc(x_94); -lean_dec(x_79); +lean_dec(x_89); x_29 = x_93; x_30 = x_94; -goto block_38; +goto block_40; } -block_38: +} +} +else +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_26); +lean_dec(x_2); +lean_dec(x_1); +x_95 = lean_ctor_get(x_81, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_81, 1); +lean_inc(x_96); +lean_dec(x_81); +x_29 = x_95; +x_30 = x_96; +goto block_40; +} +block_40: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_dec(x_28); -x_32 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); +x_33 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -lean_object* x_37; +lean_object* x_38; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); if (lean_is_scalar(x_28)) { - x_37 = lean_alloc_ctor(1, 2, 0); + x_38 = lean_alloc_ctor(1, 2, 0); } else { - x_37 = x_28; - lean_ctor_set_tag(x_37, 1); + x_38 = x_28; + lean_ctor_set_tag(x_38, 1); } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_30); +return x_38; } } -block_78: +else { -if (x_39 == 0) +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_28)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_28; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +return x_39; +} +} +block_80: { -lean_object* x_41; uint8_t x_42; +if (x_41 == 0) +{ +lean_object* x_43; uint8_t x_44; lean_dec(x_28); lean_dec(x_26); -x_41 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_40); +x_43 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_42); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -uint8_t x_50; lean_object* x_51; -x_50 = 0; +uint8_t x_52; lean_object* x_53; +x_52 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_51 = l_Lean_Meta_processPostponed(x_5, x_50, x_6, x_7, x_8, x_9, x_40); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Meta_processPostponed(x_5, x_52, x_6, x_7, x_8, x_9, x_42); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_28); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_26); -x_54 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_54); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_box(x_50); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_box(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_59); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_12); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec(x_51); -x_63 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_append___rarg(x_26, x_64); -x_67 = l_Lean_Meta_setPostponed(x_66, x_6, x_7, x_8, x_9, x_65); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 1; -x_74 = lean_box(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_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_dec(x_26); -x_76 = lean_ctor_get(x_51, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_51, 1); -lean_inc(x_77); -lean_dec(x_51); -x_29 = x_76; -x_30 = x_77; -goto block_38; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_56); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(x_52); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +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; uint8_t x_70; +lean_dec(x_12); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_PersistentArray_append___rarg(x_26, x_66); +x_69 = l_Lean_Meta_setPostponed(x_68, x_6, x_7, x_8, x_9, x_67); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = lean_box(x_72); +lean_ctor_set(x_69, 0, x_73); +return x_69; +} +else +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = 1; +x_76 = lean_box(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); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_26); +x_78 = lean_ctor_get(x_53, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_53, 1); +lean_inc(x_79); +lean_dec(x_53); +x_29 = x_78; +x_30 = x_79; +goto block_40; } } } } 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; 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_118; lean_object* x_119; lean_object* x_150; -x_95 = lean_ctor_get(x_16, 0); -x_96 = lean_ctor_get(x_16, 1); -x_97 = lean_ctor_get(x_16, 2); -x_98 = lean_ctor_get(x_16, 3); -x_99 = lean_ctor_get(x_16, 4); -x_100 = lean_ctor_get(x_16, 6); +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; lean_object* x_112; uint8_t x_122; lean_object* x_123; lean_object* x_154; +x_97 = lean_ctor_get(x_16, 0); +x_98 = lean_ctor_get(x_16, 1); +x_99 = lean_ctor_get(x_16, 2); +x_100 = lean_ctor_get(x_16, 3); +x_101 = lean_ctor_get(x_16, 4); +x_102 = lean_ctor_get(x_16, 6); +lean_inc(x_102); +lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); lean_dec(x_16); -x_101 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -x_102 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -lean_ctor_set(x_102, 2, x_97); -lean_ctor_set(x_102, 3, x_98); -lean_ctor_set(x_102, 4, x_99); -lean_ctor_set(x_102, 5, x_101); -lean_ctor_set(x_102, 6, x_100); -lean_ctor_set(x_15, 1, x_102); -x_103 = lean_st_ref_set(x_7, x_15, x_17); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_105 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_104); -x_106 = lean_ctor_get(x_105, 0); +x_103 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +x_104 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_98); +lean_ctor_set(x_104, 2, x_99); +lean_ctor_set(x_104, 3, x_100); +lean_ctor_set(x_104, 4, x_101); +lean_ctor_set(x_104, 5, x_103); +lean_ctor_set(x_104, 6, x_102); +lean_ctor_set(x_15, 1, x_104); +x_105 = lean_st_ref_set(x_7, x_15, x_17); +x_106 = lean_ctor_get(x_105, 1); lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_108 = x_105; +lean_dec(x_105); +x_107 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_106); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_110 = x_107; } else { - lean_dec_ref(x_105); - x_108 = lean_box(0); + lean_dec_ref(x_107); + x_110 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_150 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_107); -if (lean_obj_tag(x_150) == 0) +x_154 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_109); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_unbox(x_151); -if (x_152 == 0) -{ -lean_object* x_153; uint8_t x_154; -lean_dec(x_2); -lean_dec(x_1); -x_153 = lean_ctor_get(x_150, 1); -lean_inc(x_153); -lean_dec(x_150); -x_154 = lean_unbox(x_151); -lean_dec(x_151); -x_118 = x_154; -x_119 = x_153; -goto block_149; -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_151); -x_155 = lean_ctor_get(x_150, 1); +lean_object* x_155; uint8_t x_156; +x_155 = lean_ctor_get(x_154, 0); lean_inc(x_155); -lean_dec(x_150); -x_156 = l_Lean_Expr_constLevels_x21(x_1); -x_157 = l_Lean_Expr_constLevels_x21(x_2); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_158 = l_Lean_Meta_isListLevelDefEqAux(x_156, x_157, x_6, x_7, x_8, x_9, x_155); -if (lean_obj_tag(x_158) == 0) +x_156 = lean_unbox(x_155); +if (x_156 == 0) { -lean_object* x_159; lean_object* x_160; uint8_t x_161; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_unbox(x_159); -lean_dec(x_159); -x_118 = x_161; -x_119 = x_160; -goto block_149; -} -else -{ -lean_object* x_162; lean_object* x_163; -lean_dec(x_106); -x_162 = lean_ctor_get(x_158, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_158, 1); -lean_inc(x_163); -lean_dec(x_158); -x_109 = x_162; -x_110 = x_163; -goto block_117; -} -} -} -else -{ -lean_object* x_164; lean_object* x_165; -lean_dec(x_106); +lean_object* x_157; uint8_t x_158; lean_dec(x_2); lean_dec(x_1); -x_164 = lean_ctor_get(x_150, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_150, 1); -lean_inc(x_165); -lean_dec(x_150); -x_109 = x_164; -x_110 = x_165; -goto block_117; -} -block_117: -{ -uint8_t x_111; -x_111 = l_Lean_Exception_isRuntime(x_109); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_108); -x_112 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_110); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_114 = x_112; -} else { - lean_dec_ref(x_112); - 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_tag(x_115, 1); -} -lean_ctor_set(x_115, 0, x_109); -lean_ctor_set(x_115, 1, x_113); -return x_115; +x_157 = lean_ctor_get(x_154, 1); +lean_inc(x_157); +lean_dec(x_154); +x_158 = lean_unbox(x_155); +lean_dec(x_155); +x_122 = x_158; +x_123 = x_157; +goto block_153; } else { -lean_object* x_116; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_108)) { - x_116 = lean_alloc_ctor(1, 2, 0); -} else { - x_116 = x_108; - lean_ctor_set_tag(x_116, 1); -} -lean_ctor_set(x_116, 0, x_109); -lean_ctor_set(x_116, 1, x_110); -return x_116; -} -} -block_149: -{ -if (x_118 == 0) -{ -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_dec(x_108); -lean_dec(x_106); -x_120 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_119); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = 0; -x_124 = lean_box(x_123); -if (lean_is_scalar(x_122)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_122; -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_121); -return x_125; -} -else -{ -uint8_t x_126; lean_object* x_127; -x_126 = 0; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_155); +x_159 = lean_ctor_get(x_154, 1); +lean_inc(x_159); +lean_dec(x_154); +x_160 = l_Lean_Expr_constLevels_x21(x_1); +x_161 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_127 = l_Lean_Meta_processPostponed(x_5, x_126, x_6, x_7, x_8, x_9, x_119); -if (lean_obj_tag(x_127) == 0) +x_162 = l_Lean_Meta_isListLevelDefEqAux(x_160, x_161, x_6, x_7, x_8, x_9, x_159); +if (lean_obj_tag(x_162) == 0) { -lean_object* x_128; uint8_t x_129; +lean_object* x_163; lean_object* x_164; uint8_t x_165; +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_unbox(x_163); +lean_dec(x_163); +x_122 = x_165; +x_123 = x_164; +goto block_153; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_dec(x_108); -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_unbox(x_128); -lean_dec(x_128); -if (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_135; -lean_dec(x_106); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_130); -lean_dec(x_127); -x_131 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_130); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; -} else { - lean_dec_ref(x_131); - x_133 = lean_box(0); -} -x_134 = lean_box(x_126); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_133; -} -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -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; uint8_t x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_12); -x_136 = lean_ctor_get(x_127, 1); -lean_inc(x_136); -lean_dec(x_127); -x_137 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec(x_137); -x_140 = l_Lean_PersistentArray_append___rarg(x_106, x_138); -x_141 = l_Lean_Meta_setPostponed(x_140, x_6, x_7, x_8, x_9, x_139); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_143 = x_141; -} else { - lean_dec_ref(x_141); - x_143 = lean_box(0); -} -x_144 = 1; -x_145 = lean_box(x_144); -if (lean_is_scalar(x_143)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_143; -} -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_142); -return x_146; -} -} -else -{ -lean_object* x_147; lean_object* x_148; -lean_dec(x_106); -x_147 = lean_ctor_get(x_127, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_127, 1); -lean_inc(x_148); -lean_dec(x_127); -x_109 = x_147; -x_110 = x_148; -goto block_117; -} -} -} -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_195; lean_object* x_196; lean_object* x_227; -x_166 = lean_ctor_get(x_15, 0); -x_167 = lean_ctor_get(x_15, 2); -x_168 = lean_ctor_get(x_15, 3); -x_169 = lean_ctor_get(x_15, 4); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); +x_166 = lean_ctor_get(x_162, 0); lean_inc(x_166); -lean_dec(x_15); -x_170 = lean_ctor_get(x_16, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_16, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_16, 2); -lean_inc(x_172); -x_173 = lean_ctor_get(x_16, 3); +x_167 = lean_ctor_get(x_162, 1); +lean_inc(x_167); +lean_dec(x_162); +x_111 = x_166; +x_112 = x_167; +goto block_121; +} +} +} +else +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_108); +lean_dec(x_2); +lean_dec(x_1); +x_168 = lean_ctor_get(x_154, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_154, 1); +lean_inc(x_169); +lean_dec(x_154); +x_111 = x_168; +x_112 = x_169; +goto block_121; +} +block_121: +{ +uint8_t x_113; +x_113 = l_Lean_Exception_isInterrupt(x_111); +if (x_113 == 0) +{ +uint8_t x_114; +x_114 = l_Lean_Exception_isRuntime(x_111); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_110); +x_115 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_112); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_117 = x_115; +} else { + lean_dec_ref(x_115); + 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_tag(x_118, 1); +} +lean_ctor_set(x_118, 0, x_111); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_110)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_110; + lean_ctor_set_tag(x_119, 1); +} +lean_ctor_set(x_119, 0, x_111); +lean_ctor_set(x_119, 1, x_112); +return x_119; +} +} +else +{ +lean_object* x_120; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_110)) { + x_120 = lean_alloc_ctor(1, 2, 0); +} else { + x_120 = x_110; + lean_ctor_set_tag(x_120, 1); +} +lean_ctor_set(x_120, 0, x_111); +lean_ctor_set(x_120, 1, x_112); +return x_120; +} +} +block_153: +{ +if (x_122 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_110); +lean_dec(x_108); +x_124 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_123); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; +} else { + lean_dec_ref(x_124); + x_126 = lean_box(0); +} +x_127 = 0; +x_128 = lean_box(x_127); +if (lean_is_scalar(x_126)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_126; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +return x_129; +} +else +{ +uint8_t x_130; lean_object* x_131; +x_130 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_131 = l_Lean_Meta_processPostponed(x_5, x_130, x_6, x_7, x_8, x_9, x_123); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; uint8_t x_133; +lean_dec(x_110); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_unbox(x_132); +lean_dec(x_132); +if (x_133 == 0) +{ +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_dec(x_108); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec(x_131); +x_135 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_134); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_137 = x_135; +} else { + lean_dec_ref(x_135); + x_137 = lean_box(0); +} +x_138 = lean_box(x_130); +if (lean_is_scalar(x_137)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_137; +} +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_136); +return x_139; +} +else +{ +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_dec(x_12); +x_140 = lean_ctor_get(x_131, 1); +lean_inc(x_140); +lean_dec(x_131); +x_141 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_140); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = l_Lean_PersistentArray_append___rarg(x_108, x_142); +x_145 = l_Lean_Meta_setPostponed(x_144, x_6, x_7, x_8, x_9, x_143); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; +} else { + lean_dec_ref(x_145); + x_147 = lean_box(0); +} +x_148 = 1; +x_149 = lean_box(x_148); +if (lean_is_scalar(x_147)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_147; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_146); +return x_150; +} +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_108); +x_151 = lean_ctor_get(x_131, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_131, 1); +lean_inc(x_152); +lean_dec(x_131); +x_111 = x_151; +x_112 = x_152; +goto block_121; +} +} +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_201; lean_object* x_202; lean_object* x_233; +x_170 = lean_ctor_get(x_15, 0); +x_171 = lean_ctor_get(x_15, 2); +x_172 = lean_ctor_get(x_15, 3); +x_173 = lean_ctor_get(x_15, 4); lean_inc(x_173); -x_174 = lean_ctor_get(x_16, 4); +lean_inc(x_172); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_15); +x_174 = lean_ctor_get(x_16, 0); lean_inc(x_174); -x_175 = lean_ctor_get(x_16, 6); +x_175 = lean_ctor_get(x_16, 1); lean_inc(x_175); +x_176 = lean_ctor_get(x_16, 2); +lean_inc(x_176); +x_177 = lean_ctor_get(x_16, 3); +lean_inc(x_177); +x_178 = lean_ctor_get(x_16, 4); +lean_inc(x_178); +x_179 = lean_ctor_get(x_16, 6); +lean_inc(x_179); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); @@ -68221,321 +69153,344 @@ if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 4); lean_ctor_release(x_16, 5); lean_ctor_release(x_16, 6); - x_176 = x_16; + x_180 = x_16; } else { lean_dec_ref(x_16); - x_176 = lean_box(0); + x_180 = lean_box(0); } -x_177 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 7, 0); +x_181 = l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__2___closed__6; +if (lean_is_scalar(x_180)) { + x_182 = lean_alloc_ctor(0, 7, 0); } else { - x_178 = x_176; + x_182 = x_180; } -lean_ctor_set(x_178, 0, x_170); -lean_ctor_set(x_178, 1, x_171); -lean_ctor_set(x_178, 2, x_172); -lean_ctor_set(x_178, 3, x_173); -lean_ctor_set(x_178, 4, x_174); -lean_ctor_set(x_178, 5, x_177); -lean_ctor_set(x_178, 6, x_175); -x_179 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_179, 0, x_166); -lean_ctor_set(x_179, 1, x_178); -lean_ctor_set(x_179, 2, x_167); -lean_ctor_set(x_179, 3, x_168); -lean_ctor_set(x_179, 4, x_169); -x_180 = lean_st_ref_set(x_7, x_179, x_17); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec(x_180); -x_182 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_181); -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; +lean_ctor_set(x_182, 0, x_174); +lean_ctor_set(x_182, 1, x_175); +lean_ctor_set(x_182, 2, x_176); +lean_ctor_set(x_182, 3, x_177); +lean_ctor_set(x_182, 4, x_178); +lean_ctor_set(x_182, 5, x_181); +lean_ctor_set(x_182, 6, x_179); +x_183 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_183, 0, x_170); +lean_ctor_set(x_183, 1, x_182); +lean_ctor_set(x_183, 2, x_171); +lean_ctor_set(x_183, 3, x_172); +lean_ctor_set(x_183, 4, x_173); +x_184 = lean_st_ref_set(x_7, x_183, x_17); +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +lean_dec(x_184); +x_186 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_185); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_189 = x_186; } else { - lean_dec_ref(x_182); - x_185 = lean_box(0); + lean_dec_ref(x_186); + x_189 = lean_box(0); } lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_227 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_184); -if (lean_obj_tag(x_227) == 0) +x_233 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs(x_1, x_3, x_4, x_6, x_7, x_8, x_9, x_188); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_228; uint8_t x_229; -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_unbox(x_228); -if (x_229 == 0) +lean_object* x_234; uint8_t x_235; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_unbox(x_234); +if (x_235 == 0) { -lean_object* x_230; uint8_t x_231; +lean_object* x_236; uint8_t x_237; lean_dec(x_2); lean_dec(x_1); -x_230 = lean_ctor_get(x_227, 1); -lean_inc(x_230); -lean_dec(x_227); -x_231 = lean_unbox(x_228); -lean_dec(x_228); -x_195 = x_231; -x_196 = x_230; -goto block_226; -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_228); -x_232 = lean_ctor_get(x_227, 1); -lean_inc(x_232); -lean_dec(x_227); -x_233 = l_Lean_Expr_constLevels_x21(x_1); -x_234 = l_Lean_Expr_constLevels_x21(x_2); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_235 = l_Lean_Meta_isListLevelDefEqAux(x_233, x_234, x_6, x_7, x_8, x_9, x_232); -if (lean_obj_tag(x_235) == 0) -{ -lean_object* x_236; lean_object* x_237; uint8_t x_238; -x_236 = lean_ctor_get(x_235, 0); +x_236 = lean_ctor_get(x_233, 1); lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_238 = lean_unbox(x_236); -lean_dec(x_236); -x_195 = x_238; -x_196 = x_237; -goto block_226; +lean_dec(x_233); +x_237 = lean_unbox(x_234); +lean_dec(x_234); +x_201 = x_237; +x_202 = x_236; +goto block_232; } else { -lean_object* x_239; lean_object* x_240; -lean_dec(x_183); -x_239 = lean_ctor_get(x_235, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_235, 1); -lean_inc(x_240); -lean_dec(x_235); -x_186 = x_239; -x_187 = x_240; -goto block_194; -} -} -} -else -{ -lean_object* x_241; lean_object* x_242; -lean_dec(x_183); -lean_dec(x_2); -lean_dec(x_1); -x_241 = lean_ctor_get(x_227, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_227, 1); -lean_inc(x_242); -lean_dec(x_227); -x_186 = x_241; -x_187 = x_242; -goto block_194; -} -block_194: -{ -uint8_t x_188; -x_188 = l_Lean_Exception_isRuntime(x_186); -if (x_188 == 0) -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_185); -x_189 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_187); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_191 = x_189; -} else { - lean_dec_ref(x_189); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; - lean_ctor_set_tag(x_192, 1); -} -lean_ctor_set(x_192, 0, x_186); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -else -{ -lean_object* x_193; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_185)) { - x_193 = lean_alloc_ctor(1, 2, 0); -} else { - x_193 = x_185; - lean_ctor_set_tag(x_193, 1); -} -lean_ctor_set(x_193, 0, x_186); -lean_ctor_set(x_193, 1, x_187); -return x_193; -} -} -block_226: -{ -if (x_195 == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_185); -lean_dec(x_183); -x_197 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_196); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; -} else { - lean_dec_ref(x_197); - x_199 = lean_box(0); -} -x_200 = 0; -x_201 = lean_box(x_200); -if (lean_is_scalar(x_199)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_199; -} -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_198); -return x_202; -} -else -{ -uint8_t x_203; lean_object* x_204; -x_203 = 0; +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_234); +x_238 = lean_ctor_get(x_233, 1); +lean_inc(x_238); +lean_dec(x_233); +x_239 = l_Lean_Expr_constLevels_x21(x_1); +x_240 = l_Lean_Expr_constLevels_x21(x_2); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_204 = l_Lean_Meta_processPostponed(x_5, x_203, x_6, x_7, x_8, x_9, x_196); -if (lean_obj_tag(x_204) == 0) +x_241 = l_Lean_Meta_isListLevelDefEqAux(x_239, x_240, x_6, x_7, x_8, x_9, x_238); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_205; uint8_t x_206; -lean_dec(x_185); -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_unbox(x_205); -lean_dec(x_205); -if (x_206 == 0) +lean_object* x_242; lean_object* x_243; uint8_t x_244; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = lean_unbox(x_242); +lean_dec(x_242); +x_201 = x_244; +x_202 = x_243; +goto block_232; +} +else { -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_dec(x_183); -x_207 = lean_ctor_get(x_204, 1); -lean_inc(x_207); -lean_dec(x_204); -x_208 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_207); +lean_object* x_245; lean_object* x_246; +lean_dec(x_187); +x_245 = lean_ctor_get(x_241, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_241, 1); +lean_inc(x_246); +lean_dec(x_241); +x_190 = x_245; +x_191 = x_246; +goto block_200; +} +} +} +else +{ +lean_object* x_247; lean_object* x_248; +lean_dec(x_187); +lean_dec(x_2); +lean_dec(x_1); +x_247 = lean_ctor_get(x_233, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_233, 1); +lean_inc(x_248); +lean_dec(x_233); +x_190 = x_247; +x_191 = x_248; +goto block_200; +} +block_200: +{ +uint8_t x_192; +x_192 = l_Lean_Exception_isInterrupt(x_190); +if (x_192 == 0) +{ +uint8_t x_193; +x_193 = l_Lean_Exception_isRuntime(x_190); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_189); +x_194 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_191); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_210 = x_208; +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_196 = x_194; } else { - lean_dec_ref(x_208); - x_210 = lean_box(0); + lean_dec_ref(x_194); + x_196 = lean_box(0); } -x_211 = lean_box(x_203); -if (lean_is_scalar(x_210)) { - x_212 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); } else { - x_212 = x_210; + x_197 = x_196; + lean_ctor_set_tag(x_197, 1); } -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_209); -return x_212; +lean_ctor_set(x_197, 0, x_190); +lean_ctor_set(x_197, 1, x_195); +return x_197; } else { -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; uint8_t x_221; lean_object* x_222; lean_object* x_223; +lean_object* x_198; lean_dec(x_12); -x_213 = lean_ctor_get(x_204, 1); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_189)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_189; + lean_ctor_set_tag(x_198, 1); +} +lean_ctor_set(x_198, 0, x_190); +lean_ctor_set(x_198, 1, x_191); +return x_198; +} +} +else +{ +lean_object* x_199; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_189)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_189; + lean_ctor_set_tag(x_199, 1); +} +lean_ctor_set(x_199, 0, x_190); +lean_ctor_set(x_199, 1, x_191); +return x_199; +} +} +block_232: +{ +if (x_201 == 0) +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_189); +lean_dec(x_187); +x_203 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_202); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_205 = x_203; +} else { + lean_dec_ref(x_203); + x_205 = lean_box(0); +} +x_206 = 0; +x_207 = lean_box(x_206); +if (lean_is_scalar(x_205)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_205; +} +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_204); +return x_208; +} +else +{ +uint8_t x_209; lean_object* x_210; +x_209 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_210 = l_Lean_Meta_processPostponed(x_5, x_209, x_6, x_7, x_8, x_9, x_202); +if (lean_obj_tag(x_210) == 0) +{ +lean_object* x_211; uint8_t x_212; +lean_dec(x_189); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_unbox(x_211); +lean_dec(x_211); +if (x_212 == 0) +{ +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_187); +x_213 = lean_ctor_get(x_210, 1); lean_inc(x_213); -lean_dec(x_204); -x_214 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_213); -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 = l_Lean_PersistentArray_append___rarg(x_183, x_215); -x_218 = l_Lean_Meta_setPostponed(x_217, x_6, x_7, x_8, x_9, x_216); +lean_dec(x_210); +x_214 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_213); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_219 = lean_ctor_get(x_218, 1); +lean_dec(x_12); +x_215 = lean_ctor_get(x_214, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_216 = x_214; +} else { + lean_dec_ref(x_214); + x_216 = lean_box(0); +} +x_217 = lean_box(x_209); +if (lean_is_scalar(x_216)) { + x_218 = lean_alloc_ctor(0, 2, 0); +} else { + x_218 = x_216; +} +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_215); +return x_218; +} +else +{ +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; uint8_t x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_12); +x_219 = lean_ctor_get(x_210, 1); lean_inc(x_219); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_220 = x_218; +lean_dec(x_210); +x_220 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_219); +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_Lean_PersistentArray_append___rarg(x_187, x_221); +x_224 = l_Lean_Meta_setPostponed(x_223, x_6, x_7, x_8, x_9, x_222); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_226 = x_224; } else { - lean_dec_ref(x_218); - x_220 = lean_box(0); + lean_dec_ref(x_224); + x_226 = lean_box(0); } -x_221 = 1; -x_222 = lean_box(x_221); -if (lean_is_scalar(x_220)) { - x_223 = lean_alloc_ctor(0, 2, 0); +x_227 = 1; +x_228 = lean_box(x_227); +if (lean_is_scalar(x_226)) { + x_229 = lean_alloc_ctor(0, 2, 0); } else { - x_223 = x_220; + x_229 = x_226; } -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_219); -return x_223; +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_225); +return x_229; } } else { -lean_object* x_224; lean_object* x_225; -lean_dec(x_183); -x_224 = lean_ctor_get(x_204, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_204, 1); -lean_inc(x_225); -lean_dec(x_204); -x_186 = x_224; -x_187 = x_225; -goto block_194; +lean_object* x_230; lean_object* x_231; +lean_dec(x_187); +x_230 = lean_ctor_get(x_210, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_210, 1); +lean_inc(x_231); +lean_dec(x_210); +x_190 = x_230; +x_191 = x_231; +goto block_200; } } } @@ -78201,7 +79156,7 @@ return x_650; LEAN_EXPORT lean_object* lean_is_expr_def_eq(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; uint8_t x_29; uint8_t x_30; +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; uint8_t x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; lean_inc(x_1); x_8 = l_Lean_MessageData_ofExpr(x_1); x_9 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__9; @@ -78249,77 +79204,85 @@ x_27 = lean_ctor_get(x_5, 9); lean_inc(x_27); x_28 = lean_ctor_get(x_5, 10); lean_inc(x_28); -x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -x_30 = lean_nat_dec_eq(x_21, x_22); -if (x_30 == 0) +x_29 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_30 = lean_ctor_get(x_5, 11); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +x_32 = lean_nat_dec_eq(x_21, x_22); +if (x_32 == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_5); -if (x_31 == 0) +uint8_t x_33; +x_33 = !lean_is_exclusive(x_5); +if (x_33 == 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; 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; uint8_t x_46; lean_object* x_47; lean_object* x_48; -x_32 = lean_ctor_get(x_5, 10); -lean_dec(x_32); -x_33 = lean_ctor_get(x_5, 9); -lean_dec(x_33); -x_34 = lean_ctor_get(x_5, 8); +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; +x_34 = lean_ctor_get(x_5, 11); lean_dec(x_34); -x_35 = lean_ctor_get(x_5, 7); +x_35 = lean_ctor_get(x_5, 10); lean_dec(x_35); -x_36 = lean_ctor_get(x_5, 6); +x_36 = lean_ctor_get(x_5, 9); lean_dec(x_36); -x_37 = lean_ctor_get(x_5, 5); +x_37 = lean_ctor_get(x_5, 8); lean_dec(x_37); -x_38 = lean_ctor_get(x_5, 4); +x_38 = lean_ctor_get(x_5, 7); lean_dec(x_38); -x_39 = lean_ctor_get(x_5, 3); +x_39 = lean_ctor_get(x_5, 6); lean_dec(x_39); -x_40 = lean_ctor_get(x_5, 2); +x_40 = lean_ctor_get(x_5, 5); lean_dec(x_40); -x_41 = lean_ctor_get(x_5, 1); +x_41 = lean_ctor_get(x_5, 4); lean_dec(x_41); -x_42 = lean_ctor_get(x_5, 0); +x_42 = lean_ctor_get(x_5, 3); lean_dec(x_42); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_add(x_21, x_43); +x_43 = lean_ctor_get(x_5, 2); +lean_dec(x_43); +x_44 = lean_ctor_get(x_5, 1); +lean_dec(x_44); +x_45 = lean_ctor_get(x_5, 0); +lean_dec(x_45); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_21, x_46); lean_dec(x_21); -lean_ctor_set(x_5, 3, x_44); -x_45 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___spec__1___closed__1; -x_46 = 1; -x_47 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__8; -x_48 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1(x_45, x_16, x_17, x_46, x_47, x_3, x_4, x_5, x_6, x_7); -return x_48; +lean_ctor_set(x_5, 3, x_47); +x_48 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___spec__1___closed__1; +x_49 = 1; +x_50 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__8; +x_51 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1(x_48, x_16, x_17, x_49, x_50, x_3, x_4, x_5, x_6, x_7); +return x_51; } else { -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; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_5); -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_add(x_21, x_49); +x_52 = lean_unsigned_to_nat(1u); +x_53 = lean_nat_add(x_21, x_52); lean_dec(x_21); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_18); -lean_ctor_set(x_51, 1, x_19); -lean_ctor_set(x_51, 2, x_20); -lean_ctor_set(x_51, 3, x_50); -lean_ctor_set(x_51, 4, x_22); -lean_ctor_set(x_51, 5, x_23); -lean_ctor_set(x_51, 6, x_24); -lean_ctor_set(x_51, 7, x_25); -lean_ctor_set(x_51, 8, x_26); -lean_ctor_set(x_51, 9, x_27); -lean_ctor_set(x_51, 10, x_28); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_29); -x_52 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___spec__1___closed__1; -x_53 = 1; -x_54 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__8; -x_55 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1(x_52, x_16, x_17, x_53, x_54, x_3, x_4, x_51, x_6, x_7); -return x_55; +x_54 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_54, 0, x_18); +lean_ctor_set(x_54, 1, x_19); +lean_ctor_set(x_54, 2, x_20); +lean_ctor_set(x_54, 3, x_53); +lean_ctor_set(x_54, 4, x_22); +lean_ctor_set(x_54, 5, x_23); +lean_ctor_set(x_54, 6, x_24); +lean_ctor_set(x_54, 7, x_25); +lean_ctor_set(x_54, 8, x_26); +lean_ctor_set(x_54, 9, x_27); +lean_ctor_set(x_54, 10, x_28); +lean_ctor_set(x_54, 11, x_30); +lean_ctor_set_uint8(x_54, sizeof(void*)*12, x_29); +lean_ctor_set_uint8(x_54, sizeof(void*)*12 + 1, x_31); +x_55 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___spec__1___closed__1; +x_56 = 1; +x_57 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__8; +x_58 = l_Lean_withTraceNodeBefore___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___spec__1(x_55, x_16, x_17, x_56, x_57, x_3, x_4, x_54, x_6, x_7); +return x_58; } } else { -lean_object* x_56; +lean_object* x_59; +lean_dec(x_30); lean_dec(x_28); lean_dec(x_27); lean_dec(x_26); @@ -78332,12 +79295,12 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -x_56 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__3(x_23, x_3, x_4, x_5, x_6, x_7); +x_59 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__3(x_23, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_56; +return x_59; } } } diff --git a/stage0/stdlib/Lean/Meta/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index 7388d3d4b2..0c81236984 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -64,6 +64,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_ static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn___closed__3; extern lean_object* l_Lean_maxRecDepthErrorMessage; static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__6; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___closed__2; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7162,7 +7163,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___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, 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; 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; uint8_t x_22; uint8_t x_23; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_8, 1); @@ -7185,161 +7186,169 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_23 = lean_nat_dec_eq(x_14, x_15); -if (x_23 == 0) +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_25 = lean_nat_dec_eq(x_14, x_15); +if (x_25 == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_8); +if (x_26 == 0) { -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; -x_25 = lean_ctor_get(x_8, 10); -lean_dec(x_25); -x_26 = lean_ctor_get(x_8, 9); -lean_dec(x_26); -x_27 = lean_ctor_get(x_8, 8); +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; +x_27 = lean_ctor_get(x_8, 11); lean_dec(x_27); -x_28 = lean_ctor_get(x_8, 7); +x_28 = lean_ctor_get(x_8, 10); lean_dec(x_28); -x_29 = lean_ctor_get(x_8, 6); +x_29 = lean_ctor_get(x_8, 9); lean_dec(x_29); -x_30 = lean_ctor_get(x_8, 5); +x_30 = lean_ctor_get(x_8, 8); lean_dec(x_30); -x_31 = lean_ctor_get(x_8, 4); +x_31 = lean_ctor_get(x_8, 7); lean_dec(x_31); -x_32 = lean_ctor_get(x_8, 3); +x_32 = lean_ctor_get(x_8, 6); lean_dec(x_32); -x_33 = lean_ctor_get(x_8, 2); +x_33 = lean_ctor_get(x_8, 5); lean_dec(x_33); -x_34 = lean_ctor_get(x_8, 1); +x_34 = lean_ctor_get(x_8, 4); lean_dec(x_34); -x_35 = lean_ctor_get(x_8, 0); +x_35 = lean_ctor_get(x_8, 3); lean_dec(x_35); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_14, x_36); -lean_dec(x_14); -lean_ctor_set(x_8, 3, x_37); -x_38 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_38) == 0) -{ -uint8_t x_39; -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -return x_38; -} -else -{ -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_inc(x_41); -lean_inc(x_40); +x_36 = lean_ctor_get(x_8, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_8, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_8, 0); lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_14, x_39); +lean_dec(x_14); +lean_ctor_set(x_8, 3, x_40); +x_41 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +return x_41; } else { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_38); -if (x_43 == 0) -{ -return x_38; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_38, 0); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); -lean_dec(x_38); -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; +lean_inc(x_43); +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) +{ +return x_41; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_41, 0); +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_41); +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_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_8); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_add(x_14, x_47); +x_50 = lean_unsigned_to_nat(1u); +x_51 = lean_nat_add(x_14, x_50); lean_dec(x_14); -x_49 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_49, 0, x_11); -lean_ctor_set(x_49, 1, x_12); -lean_ctor_set(x_49, 2, x_13); -lean_ctor_set(x_49, 3, x_48); -lean_ctor_set(x_49, 4, x_15); -lean_ctor_set(x_49, 5, x_16); -lean_ctor_set(x_49, 6, x_17); -lean_ctor_set(x_49, 7, x_18); -lean_ctor_set(x_49, 8, x_19); -lean_ctor_set(x_49, 9, x_20); -lean_ctor_set(x_49, 10, x_21); -lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_22); -x_50 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_49, x_9, x_10); -if (lean_obj_tag(x_50) == 0) +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_11); +lean_ctor_set(x_52, 1, x_12); +lean_ctor_set(x_52, 2, x_13); +lean_ctor_set(x_52, 3, x_51); +lean_ctor_set(x_52, 4, x_15); +lean_ctor_set(x_52, 5, x_16); +lean_ctor_set(x_52, 6, x_17); +lean_ctor_set(x_52, 7, x_18); +lean_ctor_set(x_52, 8, x_19); +lean_ctor_set(x_52, 9, x_20); +lean_ctor_set(x_52, 10, x_21); +lean_ctor_set(x_52, 11, x_23); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_24); +x_53 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_52, x_9, x_10); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -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_50); - x_53 = lean_box(0); -} -if (lean_is_scalar(x_53)) { - x_54 = 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); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_50, 0); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); 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; +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; } else { - lean_dec_ref(x_50); - x_57 = lean_box(0); + lean_dec_ref(x_53); + x_56 = lean_box(0); } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); } else { - x_58 = x_57; + x_57 = x_56; } -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_53, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_60 = x_53; +} else { + lean_dec_ref(x_53); + 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); +return x_61; } } } else { -lean_object* x_59; uint8_t x_60; +lean_object* x_62; uint8_t x_63; +lean_dec(x_23); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); @@ -7353,28 +7362,28 @@ lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_59 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__16___rarg(x_16, x_6, x_7, x_8, x_9, x_10); +x_62 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__16___rarg(x_16, 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_6); -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) { -return x_59; +return x_62; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_59, 0); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_59); -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; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_62, 0); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_62); +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; } } } @@ -12545,52 +12554,180 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_6); x_14 = lean_array_uget(x_3, x_5); -x_15 = l_Lean_Expr_fvar___override(x_14); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___spec__2___closed__1; +x_32 = l_Lean_Expr_fvar___override(x_14); +x_33 = l_Array_forInUnsafe_loop___at_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___spec__2___closed__1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_17 = l_Lean_MVarId_apply(x_1, x_15, x_16, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_17) == 0) +x_34 = l_Lean_MVarId_apply(x_1, x_32, x_33, x_7, x_8, x_9, x_10, x_11); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_15 = x_37; +x_16 = x_36; +goto block_31; +} +else +{ +uint8_t x_38; +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); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +lean_free_object(x_34); +lean_dec(x_39); +x_43 = lean_box(0); +x_15 = x_43; +x_16 = x_40; +goto block_31; +} +else { -uint8_t x_18; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +return x_34; +} +} +else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_34; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_34, 0); +x_45 = lean_ctor_get(x_34, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_34); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +if (x_47 == 0) +{ +lean_object* x_48; +lean_dec(x_44); +x_48 = lean_box(0); +x_15 = x_48; +x_16 = x_45; +goto block_31; +} +else +{ +lean_object* x_49; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_44); +lean_ctor_set(x_49, 1, x_45); +return x_49; +} +} +else +{ +lean_object* x_50; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +} +block_31: +{ +if (lean_obj_tag(x_15) == 0) +{ +size_t x_17; size_t x_18; +x_17 = 1; +x_18 = lean_usize_add(x_5, x_17); +lean_inc(x_2); +{ +size_t _tmp_4 = x_18; +lean_object* _tmp_5 = x_2; +lean_object* _tmp_10 = x_16; +x_5 = _tmp_4; +x_6 = _tmp_5; +x_11 = _tmp_10; +} +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +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; x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 0, x_15); x_22 = lean_box(0); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -lean_ctor_set(x_17, 0, x_23); -return x_17; +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_16); +return x_24; } 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_17, 0); -x_25 = lean_ctor_get(x_17, 1); +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_25 = lean_ctor_get(x_15, 0); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_17); +lean_dec(x_15); x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 0, x_25); x_27 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_27, 0, x_26); x_28 = lean_box(0); @@ -12599,90 +12736,10 @@ lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_25); +lean_ctor_set(x_30, 1, x_16); return x_30; } } -else -{ -uint8_t x_31; -x_31 = !lean_is_exclusive(x_17); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_17, 0); -x_33 = lean_ctor_get(x_17, 1); -x_34 = l_Lean_Exception_isRuntime(x_32); -if (x_34 == 0) -{ -size_t x_35; size_t x_36; -lean_free_object(x_17); -lean_dec(x_32); -x_35 = 1; -x_36 = lean_usize_add(x_5, x_35); -lean_inc(x_2); -{ -size_t _tmp_4 = x_36; -lean_object* _tmp_5 = x_2; -lean_object* _tmp_10 = x_33; -x_5 = _tmp_4; -x_6 = _tmp_5; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -return x_17; -} -} -else -{ -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_17, 0); -x_39 = lean_ctor_get(x_17, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_17); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -size_t x_41; size_t x_42; -lean_dec(x_38); -x_41 = 1; -x_42 = lean_usize_add(x_5, x_41); -lean_inc(x_2); -{ -size_t _tmp_4 = x_42; -lean_object* _tmp_5 = x_2; -lean_object* _tmp_10 = x_39; -x_5 = _tmp_4; -x_6 = _tmp_5; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_object* x_44; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_39); -return x_44; -} -} } } } @@ -21754,237 +21811,196 @@ return x_60; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___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_object* x_10, lean_object* x_11) { _start: { +lean_object* x_12; lean_object* x_13; if (lean_obj_tag(x_4) == 5) { -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_4, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 1); -lean_inc(x_13); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_4, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_4, 1); +lean_inc(x_22); lean_dec(x_4); -x_14 = lean_array_set(x_5, x_6, x_13); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_sub(x_6, x_15); +x_23 = lean_array_set(x_5, x_6, x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_6, x_24); lean_dec(x_6); -x_4 = x_12; -x_5 = x_14; -x_6 = x_16; +x_4 = x_21; +x_5 = x_23; +x_6 = x_25; goto _start; } else { -lean_object* x_18; +lean_object* x_27; lean_dec(x_6); lean_dec(x_5); -x_18 = l_Lean_Expr_constName_x3f(x_4); +x_27 = l_Lean_Expr_constName_x3f(x_4); lean_dec(x_4); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_11); -return x_20; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_18, 0); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Array_indexOfAux___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__1(x_1, x_3, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_21); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_11); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -lean_dec(x_23); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_27 = l_Lean_Meta_isInductivePredicate(x_21, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -lean_dec(x_28); -if (x_29 == 0) -{ -uint8_t x_30; -lean_dec(x_26); +lean_object* x_28; lean_object* x_29; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -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); -lean_dec(x_31); -x_32 = lean_box(0); -lean_ctor_set(x_27, 0, x_32); -return x_27; +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_11); +return x_29; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_27, 1); -lean_inc(x_33); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_27, 0); +lean_inc(x_30); lean_dec(x_27); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; -} +x_31 = lean_unsigned_to_nat(0u); +x_32 = l_Array_indexOfAux___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__1(x_1, x_3, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_30); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_11); +return x_34; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); +lean_dec(x_32); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_26); -lean_inc(x_1); -x_37 = l___private_Lean_Meta_IndPredBelow_0__Lean_Meta_IndPredBelow_belowType(x_2, x_1, x_26, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_37) == 0) +x_36 = l_Lean_Meta_isInductivePredicate(x_30, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_unbox(x_37); lean_dec(x_37); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); +if (x_38 == 0) +{ +uint8_t x_39; +lean_dec(x_35); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_36, 0); +lean_dec(x_40); x_41 = lean_box(0); +lean_ctor_set(x_36, 0, x_41); +return x_36; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_36, 1); +lean_inc(x_42); +lean_dec(x_36); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); +lean_dec(x_36); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); lean_inc(x_7); -x_42 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_40, x_41, x_7, x_8, x_9, x_10, x_39); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +lean_inc(x_35); +lean_inc(x_1); +x_46 = l___private_Lean_Meta_IndPredBelow_0__Lean_Meta_IndPredBelow_belowType(x_2, x_1, x_35, x_7, x_8, x_9, x_10, x_45); +if (lean_obj_tag(x_46) == 0) { -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_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -x_46 = l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__4; -x_47 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_46, x_7, x_8, x_9, x_10, x_45); -x_48 = lean_ctor_get(x_47, 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; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_unbox(x_48); -lean_dec(x_48); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_42); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); +lean_dec(x_46); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); lean_dec(x_47); -x_51 = lean_box(0); -x_52 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_44, x_46, x_1, x_26, x_51, x_7, x_8, x_9, x_10, x_50); -if (lean_obj_tag(x_52) == 0) +x_50 = lean_box(0); +lean_inc(x_7); +x_51 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_49, x_50, x_7, x_8, x_9, x_10, x_48); +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_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__4; +x_55 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_54, x_7, x_8, x_9, x_10, x_53); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_unbox(x_56); +lean_dec(x_56); +if (x_57 == 0) { -return x_52; -} -else -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_52, 0); -x_55 = l_Lean_Exception_isRuntime(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -lean_dec(x_54); -x_56 = lean_box(0); -lean_ctor_set_tag(x_52, 0); -lean_ctor_set(x_52, 0, x_56); -return x_52; -} -else -{ -return x_52; -} -} -else -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_55, 1); lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -x_59 = l_Lean_Exception_isRuntime(x_57); -if (x_59 == 0) +lean_dec(x_55); +x_59 = lean_box(0); +x_60 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_52, x_54, x_1, x_35, x_59, x_7, x_8, x_9, x_10, x_58); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_60; lean_object* x_61; -lean_dec(x_57); -x_60 = lean_box(0); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_58); -return x_61; +return x_60; } else { -lean_object* x_62; -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_57); -lean_ctor_set(x_62, 1, x_58); -return x_62; -} -} +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_12 = x_61; +x_13 = x_62; +goto block_20; } } else { uint8_t x_63; -x_63 = !lean_is_exclusive(x_47); +x_63 = !lean_is_exclusive(x_55); if (x_63 == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_47, 1); -x_65 = lean_ctor_get(x_47, 0); +x_64 = lean_ctor_get(x_55, 1); +x_65 = lean_ctor_get(x_55, 0); lean_dec(x_65); -lean_inc(x_44); -x_66 = l_Lean_Expr_mvarId_x21(x_44); +lean_inc(x_52); +x_66 = l_Lean_Expr_mvarId_x21(x_52); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -21992,571 +22008,292 @@ lean_inc(x_7); x_67 = l_Lean_Meta_ppGoal(x_66, x_7, x_8, x_9, x_10, x_64); if (lean_obj_tag(x_67) == 0) { -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_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_70 = l_Lean_MessageData_ofFormat(x_68); -x_71 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -lean_ctor_set_tag(x_47, 6); -lean_ctor_set(x_47, 1, x_70); -lean_ctor_set(x_47, 0, x_71); -lean_ctor_set_tag(x_42, 6); -lean_ctor_set(x_42, 1, x_71); -lean_ctor_set(x_42, 0, x_47); -x_72 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_42, x_7, x_8, x_9, x_10, x_69); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); +uint8_t x_68; +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +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_69 = lean_ctor_get(x_67, 0); +x_70 = lean_ctor_get(x_67, 1); +x_71 = l_Lean_MessageData_ofFormat(x_69); +x_72 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +lean_ctor_set_tag(x_67, 6); +lean_ctor_set(x_67, 1, x_71); +lean_ctor_set(x_67, 0, x_72); +lean_ctor_set_tag(x_55, 6); +lean_ctor_set(x_55, 1, x_72); +lean_ctor_set(x_55, 0, x_67); +x_73 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_54, x_55, x_7, x_8, x_9, x_10, x_70); +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_44, x_46, x_1, x_26, x_73, x_7, x_8, x_9, x_10, x_74); -if (lean_obj_tag(x_75) == 0) +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_52, x_54, x_1, x_35, x_74, x_7, x_8, x_9, x_10, x_75); +if (lean_obj_tag(x_76) == 0) { -return x_75; +return x_76; } else { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ -lean_object* x_77; uint8_t x_78; -x_77 = lean_ctor_get(x_75, 0); -x_78 = l_Lean_Exception_isRuntime(x_77); -if (x_78 == 0) -{ -lean_object* x_79; -lean_dec(x_77); -x_79 = lean_box(0); -lean_ctor_set_tag(x_75, 0); -lean_ctor_set(x_75, 0, x_79); -return x_75; -} -else -{ -return x_75; +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_12 = x_77; +x_13 = x_78; +goto block_20; } } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_75, 0); -x_81 = lean_ctor_get(x_75, 1); -lean_inc(x_81); +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; +x_79 = lean_ctor_get(x_67, 0); +x_80 = lean_ctor_get(x_67, 1); lean_inc(x_80); -lean_dec(x_75); -x_82 = l_Lean_Exception_isRuntime(x_80); -if (x_82 == 0) +lean_inc(x_79); +lean_dec(x_67); +x_81 = l_Lean_MessageData_ofFormat(x_79); +x_82 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +x_83 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_81); +lean_ctor_set_tag(x_55, 6); +lean_ctor_set(x_55, 1, x_82); +lean_ctor_set(x_55, 0, x_83); +x_84 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_54, x_55, x_7, x_8, x_9, x_10, x_80); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_52, x_54, x_1, x_35, x_85, x_7, x_8, x_9, x_10, x_86); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_83; lean_object* x_84; -lean_dec(x_80); -x_83 = lean_box(0); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_81); -return x_84; +return x_87; } else { -lean_object* x_85; -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_80); -lean_ctor_set(x_85, 1, x_81); -return x_85; -} +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_12 = x_88; +x_13 = x_89; +goto block_20; } } } else { -uint8_t x_86; -lean_free_object(x_47); -lean_free_object(x_42); -lean_dec(x_44); -lean_dec(x_26); +lean_object* x_90; lean_object* x_91; +lean_free_object(x_55); +lean_dec(x_52); +lean_dec(x_35); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_67); -if (x_86 == 0) -{ -lean_object* x_87; uint8_t x_88; -x_87 = lean_ctor_get(x_67, 0); -x_88 = l_Lean_Exception_isRuntime(x_87); -if (x_88 == 0) -{ -lean_object* x_89; -lean_dec(x_87); -x_89 = lean_box(0); -lean_ctor_set_tag(x_67, 0); -lean_ctor_set(x_67, 0, x_89); -return x_67; -} -else -{ -return x_67; -} -} -else -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; x_90 = lean_ctor_get(x_67, 0); +lean_inc(x_90); x_91 = lean_ctor_get(x_67, 1); lean_inc(x_91); -lean_inc(x_90); lean_dec(x_67); -x_92 = l_Lean_Exception_isRuntime(x_90); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -lean_dec(x_90); -x_93 = lean_box(0); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_91); -return x_94; -} -else -{ -lean_object* x_95; -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_90); -lean_ctor_set(x_95, 1, x_91); -return x_95; -} -} +x_12 = x_90; +x_13 = x_91; +goto block_20; } } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_47, 1); -lean_inc(x_96); -lean_dec(x_47); -lean_inc(x_44); -x_97 = l_Lean_Expr_mvarId_x21(x_44); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_55, 1); +lean_inc(x_92); +lean_dec(x_55); +lean_inc(x_52); +x_93 = l_Lean_Expr_mvarId_x21(x_52); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_98 = l_Lean_Meta_ppGoal(x_97, x_7, x_8, x_9, x_10, x_96); -if (lean_obj_tag(x_98) == 0) +x_94 = l_Lean_Meta_ppGoal(x_93, x_7, x_8, x_9, x_10, x_92); +if (lean_obj_tag(x_94) == 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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = l_Lean_MessageData_ofFormat(x_99); -x_102 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -x_103 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -lean_ctor_set_tag(x_42, 6); -lean_ctor_set(x_42, 1, x_102); -lean_ctor_set(x_42, 0, x_103); -x_104 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_42, x_7, x_8, x_9, x_10, x_100); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_44, x_46, x_1, x_26, x_105, x_7, x_8, x_9, x_10, x_106); -if (lean_obj_tag(x_107) == 0) +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; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_97 = x_94; +} else { + lean_dec_ref(x_94); + x_97 = lean_box(0); +} +x_98 = l_Lean_MessageData_ofFormat(x_95); +x_99 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +if (lean_is_scalar(x_97)) { + x_100 = lean_alloc_ctor(6, 2, 0); +} else { + x_100 = x_97; + lean_ctor_set_tag(x_100, 6); +} +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_54, x_101, x_7, x_8, x_9, x_10, x_96); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_52, x_54, x_1, x_35, x_103, x_7, x_8, x_9, x_10, x_104); +if (lean_obj_tag(x_105) == 0) { -return x_107; +return x_105; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_110 = x_107; -} else { - lean_dec_ref(x_107); - x_110 = lean_box(0); +lean_object* x_106; lean_object* x_107; +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_12 = x_106; +x_13 = x_107; +goto block_20; } -x_111 = l_Lean_Exception_isRuntime(x_108); -if (x_111 == 0) +} +else { -lean_object* x_112; lean_object* x_113; -lean_dec(x_108); -x_112 = lean_box(0); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_110; - lean_ctor_set_tag(x_113, 0); +lean_object* x_108; lean_object* x_109; +lean_dec(x_52); +lean_dec(x_35); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_108 = lean_ctor_get(x_94, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_94, 1); +lean_inc(x_109); +lean_dec(x_94); +x_12 = x_108; +x_13 = x_109; +goto block_20; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_35); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_110 = !lean_is_exclusive(x_46); +if (x_110 == 0) +{ +return x_46; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_46, 0); +x_112 = lean_ctor_get(x_46, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_46); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); return x_113; } -else -{ -lean_object* x_114; -if (lean_is_scalar(x_110)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_110; -} -lean_ctor_set(x_114, 0, x_108); -lean_ctor_set(x_114, 1, x_109); -return x_114; } } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; -lean_free_object(x_42); -lean_dec(x_44); -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_115 = lean_ctor_get(x_98, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_98, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_117 = x_98; -} else { - lean_dec_ref(x_98); - x_117 = lean_box(0); -} -x_118 = l_Lean_Exception_isRuntime(x_115); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_115); -x_119 = lean_box(0); -if (lean_is_scalar(x_117)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_117; - lean_ctor_set_tag(x_120, 0); -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_116); -return x_120; -} -else -{ -lean_object* x_121; -if (lean_is_scalar(x_117)) { - x_121 = lean_alloc_ctor(1, 2, 0); -} else { - x_121 = x_117; -} -lean_ctor_set(x_121, 0, x_115); -lean_ctor_set(x_121, 1, x_116); -return x_121; -} -} -} -} -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; -x_122 = lean_ctor_get(x_42, 0); -x_123 = lean_ctor_get(x_42, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_42); -x_124 = l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__4; -x_125 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_124, x_7, x_8, x_9, x_10, x_123); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_unbox(x_126); -lean_dec(x_126); -if (x_127 == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_128); -lean_dec(x_125); -x_129 = lean_box(0); -x_130 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_122, x_124, x_1, x_26, x_129, x_7, x_8, x_9, x_10, x_128); -if (lean_obj_tag(x_130) == 0) -{ -return x_130; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t 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); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_133 = x_130; -} else { - lean_dec_ref(x_130); - x_133 = lean_box(0); -} -x_134 = l_Lean_Exception_isRuntime(x_131); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; -lean_dec(x_131); -x_135 = lean_box(0); -if (lean_is_scalar(x_133)) { - x_136 = lean_alloc_ctor(0, 2, 0); -} else { - x_136 = x_133; - lean_ctor_set_tag(x_136, 0); -} -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_132); -return x_136; -} -else -{ -lean_object* x_137; -if (lean_is_scalar(x_133)) { - x_137 = lean_alloc_ctor(1, 2, 0); -} else { - x_137 = x_133; -} -lean_ctor_set(x_137, 0, x_131); -lean_ctor_set(x_137, 1, x_132); -return x_137; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_138 = lean_ctor_get(x_125, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_139 = x_125; -} else { - lean_dec_ref(x_125); - x_139 = lean_box(0); -} -lean_inc(x_122); -x_140 = l_Lean_Expr_mvarId_x21(x_122); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_141 = l_Lean_Meta_ppGoal(x_140, x_7, x_8, x_9, x_10, x_138); -if (lean_obj_tag(x_141) == 0) -{ -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; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec(x_141); -x_144 = l_Lean_MessageData_ofFormat(x_142); -x_145 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -if (lean_is_scalar(x_139)) { - x_146 = lean_alloc_ctor(6, 2, 0); -} else { - x_146 = x_139; - lean_ctor_set_tag(x_146, 6); -} -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_148 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_124, x_147, x_7, x_8, x_9, x_10, x_143); -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 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__2___lambda__3(x_122, x_124, x_1, x_26, x_149, x_7, x_8, x_9, x_10, x_150); -if (lean_obj_tag(x_151) == 0) -{ -return x_151; -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_154 = x_151; -} else { - lean_dec_ref(x_151); - x_154 = lean_box(0); -} -x_155 = l_Lean_Exception_isRuntime(x_152); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; -lean_dec(x_152); -x_156 = lean_box(0); -if (lean_is_scalar(x_154)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_154; - lean_ctor_set_tag(x_157, 0); -} -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_153); -return x_157; -} -else -{ -lean_object* x_158; -if (lean_is_scalar(x_154)) { - x_158 = lean_alloc_ctor(1, 2, 0); -} else { - x_158 = x_154; -} -lean_ctor_set(x_158, 0, x_152); -lean_ctor_set(x_158, 1, x_153); -return x_158; -} -} -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -lean_dec(x_139); -lean_dec(x_122); -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_159 = lean_ctor_get(x_141, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_141, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_161 = x_141; -} else { - lean_dec_ref(x_141); - x_161 = lean_box(0); -} -x_162 = l_Lean_Exception_isRuntime(x_159); -if (x_162 == 0) -{ -lean_object* x_163; lean_object* x_164; -lean_dec(x_159); -x_163 = lean_box(0); -if (lean_is_scalar(x_161)) { - x_164 = lean_alloc_ctor(0, 2, 0); -} else { - x_164 = x_161; - lean_ctor_set_tag(x_164, 0); -} -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_160); -return x_164; -} -else -{ -lean_object* x_165; -if (lean_is_scalar(x_161)) { - x_165 = lean_alloc_ctor(1, 2, 0); -} else { - x_165 = x_161; -} -lean_ctor_set(x_165, 0, x_159); -lean_ctor_set(x_165, 1, x_160); -return x_165; -} -} -} -} -} -else -{ -uint8_t x_166; -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_166 = !lean_is_exclusive(x_37); -if (x_166 == 0) -{ -return x_37; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_37, 0); -x_168 = lean_ctor_get(x_37, 1); -lean_inc(x_168); -lean_inc(x_167); -lean_dec(x_37); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -return x_169; -} -} -} -} -else -{ -uint8_t x_170; -lean_dec(x_26); +uint8_t x_114; +lean_dec(x_35); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_170 = !lean_is_exclusive(x_27); -if (x_170 == 0) +x_114 = !lean_is_exclusive(x_36); +if (x_114 == 0) { -return x_27; +return x_36; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_171 = lean_ctor_get(x_27, 0); -x_172 = lean_ctor_get(x_27, 1); -lean_inc(x_172); -lean_inc(x_171); -lean_dec(x_27); -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; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_36, 0); +x_116 = lean_ctor_get(x_36, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_36); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } } } } +block_20: +{ +uint8_t x_14; +x_14 = l_Lean_Exception_isInterrupt(x_12); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_12); +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_13); +return x_17; +} +else +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_12); +lean_ctor_set(x_18, 1, x_13); +return x_18; +} +} +else +{ +lean_object* x_19; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_13); +return x_19; +} +} } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3(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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { @@ -23379,7 +23116,7 @@ x_16 = lean_unsigned_to_nat(0u); x_17 = lean_nat_dec_eq(x_5, x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_26; lean_object* x_27; lean_object* x_92; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_26; lean_object* x_27; lean_object* x_94; lean_dec(x_9); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_sub(x_5, x_18); @@ -23390,53 +23127,53 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_6); lean_inc(x_1); -x_92 = l_Lean_Meta_IndPredBelow_mkBrecOnDecl(x_1, x_6, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_92) == 0) +x_94 = l_Lean_Meta_IndPredBelow_mkBrecOnDecl(x_1, x_6, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); lean_inc(x_13); lean_inc(x_12); -x_95 = l_Lean_addDecl(x_93, x_12, x_13, x_94); -if (lean_obj_tag(x_95) == 0) +x_97 = l_Lean_addDecl(x_95, x_12, x_13, x_96); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -x_97 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_97; -x_21 = x_96; +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +x_99 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_99; +x_21 = x_98; goto block_25; } else { -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_95, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_95, 1); -lean_inc(x_99); -lean_dec(x_95); -x_26 = x_98; -x_27 = x_99; -goto block_91; +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_97, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_97, 1); +lean_inc(x_101); +lean_dec(x_97); +x_26 = x_100; +x_27 = x_101; +goto block_93; } } else { -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_92, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_92, 1); -lean_inc(x_101); -lean_dec(x_92); -x_26 = x_100; -x_27 = x_101; -goto block_91; +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_94, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_94, 1); +lean_inc(x_103); +lean_dec(x_94); +x_26 = x_102; +x_27 = x_103; +goto block_93; } block_25: { @@ -23452,172 +23189,176 @@ x_9 = x_22; x_14 = x_21; goto _start; } -block_91: +block_93: { uint8_t x_28; -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_inc(x_2); -x_29 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_10, x_11, x_12, x_13, x_27); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -if (x_31 == 0) +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) { -lean_object* x_32; lean_object* x_33; +lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_inc(x_2); +x_30 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_2, x_10, x_11, x_12, x_13, x_27); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_unbox(x_31); +lean_dec(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_dec(x_26); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_33; -x_21 = x_32; +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_34; +x_21 = x_33; goto block_25; } else { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_29); -if (x_34 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_29, 1); -x_36 = lean_ctor_get(x_29, 0); -lean_dec(x_36); -x_37 = lean_nat_dec_lt(x_6, x_4); -x_38 = l_Lean_Exception_toMessageData(x_26); -if (x_37 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_30, 1); +x_37 = lean_ctor_get(x_30, 0); +lean_dec(x_37); +x_38 = lean_nat_dec_lt(x_6, x_4); +x_39 = l_Lean_Exception_toMessageData(x_26); +if (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; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_39 = l_Lean_instInhabitedName; -x_40 = l___private_Init_GetElem_0__outOfBounds___rarg(x_39); -x_41 = l_Lean_MessageData_ofName(x_40); -x_42 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; -lean_ctor_set_tag(x_29, 6); -lean_ctor_set(x_29, 1, x_41); -lean_ctor_set(x_29, 0, x_42); -x_43 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_29); -lean_ctor_set(x_44, 1, x_43); +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_40 = l_Lean_instInhabitedName; +x_41 = l___private_Init_GetElem_0__outOfBounds___rarg(x_40); +x_42 = l_Lean_MessageData_ofName(x_41); +x_43 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; +lean_ctor_set_tag(x_30, 6); +lean_ctor_set(x_30, 1, x_42); +lean_ctor_set(x_30, 0, x_43); +x_44 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; x_45 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_38); -x_46 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -x_47 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_45, 0, x_30); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_39); +x_47 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +x_48 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); lean_inc(x_2); -x_48 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_47, x_10, x_11, x_12, x_13, x_35); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_50; -x_21 = x_49; +x_49 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_48, x_10, x_11, x_12, x_13, x_36); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_51; +x_21 = x_50; goto block_25; } else { -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; -x_51 = lean_array_fget(x_3, x_6); -x_52 = l_Lean_MessageData_ofName(x_51); -x_53 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; -lean_ctor_set_tag(x_29, 6); -lean_ctor_set(x_29, 1, x_52); -lean_ctor_set(x_29, 0, x_53); -x_54 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; -x_55 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_55, 0, x_29); -lean_ctor_set(x_55, 1, x_54); +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; +x_52 = lean_array_fget(x_3, x_6); +x_53 = l_Lean_MessageData_ofName(x_52); +x_54 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; +lean_ctor_set_tag(x_30, 6); +lean_ctor_set(x_30, 1, x_53); +lean_ctor_set(x_30, 0, x_54); +x_55 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; x_56 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_38); -x_57 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_56, 0, x_30); +lean_ctor_set(x_56, 1, x_55); +x_57 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_39); +x_58 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); lean_inc(x_2); -x_59 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_58, x_10, x_11, x_12, x_13, x_35); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_61; -x_21 = x_60; +x_60 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_59, x_10, x_11, x_12, x_13, x_36); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_62; +x_21 = x_61; goto block_25; } } else { -lean_object* x_62; uint8_t x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_29, 1); -lean_inc(x_62); -lean_dec(x_29); -x_63 = lean_nat_dec_lt(x_6, x_4); -x_64 = l_Lean_Exception_toMessageData(x_26); -if (x_63 == 0) +lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_30, 1); +lean_inc(x_63); +lean_dec(x_30); +x_64 = lean_nat_dec_lt(x_6, x_4); +x_65 = l_Lean_Exception_toMessageData(x_26); +if (x_64 == 0) { -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; -x_65 = l_Lean_instInhabitedName; -x_66 = l___private_Init_GetElem_0__outOfBounds___rarg(x_65); -x_67 = l_Lean_MessageData_ofName(x_66); -x_68 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; -x_69 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; -x_71 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); +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; +x_66 = l_Lean_instInhabitedName; +x_67 = l___private_Init_GetElem_0__outOfBounds___rarg(x_66); +x_68 = l_Lean_MessageData_ofName(x_67); +x_69 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; +x_70 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; x_72 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_64); -x_73 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -x_74 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_65); +x_74 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +x_75 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); lean_inc(x_2); -x_75 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_74, x_10, x_11, x_12, x_13, x_62); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_77; -x_21 = x_76; +x_76 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_75, x_10, x_11, x_12, x_13, x_63); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_78; +x_21 = x_77; goto block_25; } 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; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_78 = lean_array_fget(x_3, x_6); -x_79 = l_Lean_MessageData_ofName(x_78); -x_80 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; -x_81 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; -x_83 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); +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; lean_object* x_89; lean_object* x_90; +x_79 = lean_array_fget(x_3, x_6); +x_80 = l_Lean_MessageData_ofName(x_79); +x_81 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__3; +x_82 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +x_83 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__5; x_84 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_64); -x_85 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; -x_86 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_65); +x_86 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); lean_inc(x_2); -x_87 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_86, x_10, x_11, x_12, x_13, x_62); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; -x_20 = x_89; -x_21 = x_88; +x_88 = l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6(x_2, x_87, x_10, x_11, x_12, x_13, x_63); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); +x_90 = l_Std_Range_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__2___closed__1; +x_20 = x_90; +x_21 = x_89; goto block_25; } } @@ -23625,7 +23366,7 @@ goto block_25; } else { -lean_object* x_90; +lean_object* x_91; lean_dec(x_19); lean_dec(x_13); lean_dec(x_12); @@ -23634,16 +23375,33 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_26); -lean_ctor_set(x_90, 1, x_27); -return x_90; +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_26); +lean_ctor_set(x_91, 1, x_27); +return x_91; +} +} +else +{ +lean_object* x_92; +lean_dec(x_19); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_26); +lean_ctor_set(x_92, 1, x_27); +return x_92; } } } else { -lean_object* x_102; +lean_object* x_104; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -23652,15 +23410,15 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_9); -lean_ctor_set(x_102, 1, x_14); -return x_102; +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_9); +lean_ctor_set(x_104, 1, x_14); +return x_104; } } else { -lean_object* x_103; +lean_object* x_105; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -23669,10 +23427,10 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_9); -lean_ctor_set(x_103, 1, x_14); -return x_103; +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_9); +lean_ctor_set(x_105, 1, x_14); +return x_105; } } } diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index 9c80578205..88ea3f1c90 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -11019,7 +11019,7 @@ return x_9; LEAN_EXPORT lean_object* lean_infer_type(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; 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; uint8_t x_19; +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; uint8_t x_20; uint8_t x_21; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_4, 1); @@ -11042,330 +11042,337 @@ x_16 = lean_ctor_get(x_4, 9); lean_inc(x_16); x_17 = lean_ctor_get(x_4, 10); lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_19 = lean_nat_dec_eq(x_10, x_11); -if (x_19 == 0) +x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_19 = lean_ctor_get(x_4, 11); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_21 = lean_nat_dec_eq(x_10, x_11); +if (x_21 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_4); -if (x_20 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +if (x_22 == 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; uint8_t x_34; -x_21 = lean_ctor_get(x_4, 10); -lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 9); -lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 8); +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; uint8_t x_37; +x_23 = lean_ctor_get(x_4, 11); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 7); +x_24 = lean_ctor_get(x_4, 10); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 6); +x_25 = lean_ctor_get(x_4, 9); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 5); +x_26 = lean_ctor_get(x_4, 8); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 4); +x_27 = lean_ctor_get(x_4, 7); lean_dec(x_27); -x_28 = lean_ctor_get(x_4, 3); +x_28 = lean_ctor_get(x_4, 6); lean_dec(x_28); -x_29 = lean_ctor_get(x_4, 2); +x_29 = lean_ctor_get(x_4, 5); lean_dec(x_29); -x_30 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 4); lean_dec(x_30); -x_31 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 3); lean_dec(x_31); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_10, x_32); +x_32 = lean_ctor_get(x_4, 2); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 1); +lean_dec(x_33); +x_34 = lean_ctor_get(x_4, 0); +lean_dec(x_34); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_10, x_35); lean_dec(x_10); -lean_ctor_set(x_4, 3, x_33); -x_34 = !lean_is_exclusive(x_2); -if (x_34 == 0) +lean_ctor_set(x_4, 3, x_36); +x_37 = !lean_is_exclusive(x_2); +if (x_37 == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_2, 0); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -uint8_t x_37; lean_object* x_38; -x_37 = 1; -lean_ctor_set_uint8(x_35, 9, x_37); -x_38 = l_Lean_Meta_inferTypeImp_infer(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_38) == 0) -{ -uint8_t x_39; +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_2, 0); x_39 = !lean_is_exclusive(x_38); if (x_39 == 0) { -return x_38; +uint8_t x_40; lean_object* x_41; +x_40 = 1; +lean_ctor_set_uint8(x_38, 9, x_40); +x_41 = l_Lean_Meta_inferTypeImp_infer(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +return x_41; } else { -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_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -uint8_t x_43; -x_43 = !lean_is_exclusive(x_38); -if (x_43 == 0) -{ -return x_38; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_38, 0); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) +{ +return x_41; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_41, 0); +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_41); +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 +{ +uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; +x_50 = lean_ctor_get_uint8(x_38, 0); +x_51 = lean_ctor_get_uint8(x_38, 1); +x_52 = lean_ctor_get_uint8(x_38, 2); +x_53 = lean_ctor_get_uint8(x_38, 3); +x_54 = lean_ctor_get_uint8(x_38, 4); +x_55 = lean_ctor_get_uint8(x_38, 5); +x_56 = lean_ctor_get_uint8(x_38, 6); +x_57 = lean_ctor_get_uint8(x_38, 7); +x_58 = lean_ctor_get_uint8(x_38, 8); +x_59 = lean_ctor_get_uint8(x_38, 10); +x_60 = lean_ctor_get_uint8(x_38, 11); +x_61 = lean_ctor_get_uint8(x_38, 12); lean_dec(x_38); -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 +x_62 = 1; +x_63 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_63, 0, x_50); +lean_ctor_set_uint8(x_63, 1, x_51); +lean_ctor_set_uint8(x_63, 2, x_52); +lean_ctor_set_uint8(x_63, 3, x_53); +lean_ctor_set_uint8(x_63, 4, x_54); +lean_ctor_set_uint8(x_63, 5, x_55); +lean_ctor_set_uint8(x_63, 6, x_56); +lean_ctor_set_uint8(x_63, 7, x_57); +lean_ctor_set_uint8(x_63, 8, x_58); +lean_ctor_set_uint8(x_63, 9, x_62); +lean_ctor_set_uint8(x_63, 10, x_59); +lean_ctor_set_uint8(x_63, 11, x_60); +lean_ctor_set_uint8(x_63, 12, x_61); +lean_ctor_set(x_2, 0, x_63); +x_64 = l_Lean_Meta_inferTypeImp_infer(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_64) == 0) { -uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; -x_47 = lean_ctor_get_uint8(x_35, 0); -x_48 = lean_ctor_get_uint8(x_35, 1); -x_49 = lean_ctor_get_uint8(x_35, 2); -x_50 = lean_ctor_get_uint8(x_35, 3); -x_51 = lean_ctor_get_uint8(x_35, 4); -x_52 = lean_ctor_get_uint8(x_35, 5); -x_53 = lean_ctor_get_uint8(x_35, 6); -x_54 = lean_ctor_get_uint8(x_35, 7); -x_55 = lean_ctor_get_uint8(x_35, 8); -x_56 = lean_ctor_get_uint8(x_35, 10); -x_57 = lean_ctor_get_uint8(x_35, 11); -x_58 = lean_ctor_get_uint8(x_35, 12); -lean_dec(x_35); -x_59 = 1; -x_60 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_60, 0, x_47); -lean_ctor_set_uint8(x_60, 1, x_48); -lean_ctor_set_uint8(x_60, 2, x_49); -lean_ctor_set_uint8(x_60, 3, x_50); -lean_ctor_set_uint8(x_60, 4, x_51); -lean_ctor_set_uint8(x_60, 5, x_52); -lean_ctor_set_uint8(x_60, 6, x_53); -lean_ctor_set_uint8(x_60, 7, x_54); -lean_ctor_set_uint8(x_60, 8, x_55); -lean_ctor_set_uint8(x_60, 9, x_59); -lean_ctor_set_uint8(x_60, 10, x_56); -lean_ctor_set_uint8(x_60, 11, x_57); -lean_ctor_set_uint8(x_60, 12, x_58); -lean_ctor_set(x_2, 0, x_60); -x_61 = l_Lean_Meta_inferTypeImp_infer(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -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_61); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(0, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_61, 0); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_61, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_68 = x_61; +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; } else { - lean_dec_ref(x_61); - x_68 = lean_box(0); + lean_dec_ref(x_64); + x_67 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(0, 2, 0); } else { - x_69 = x_68; + x_68 = x_67; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_64, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_64, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_71 = x_64; +} else { + lean_dec_ref(x_64); + 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_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } 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; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_70 = lean_ctor_get(x_2, 0); -x_71 = lean_ctor_get(x_2, 1); -x_72 = lean_ctor_get(x_2, 2); -x_73 = lean_ctor_get(x_2, 3); -x_74 = lean_ctor_get(x_2, 4); -x_75 = lean_ctor_get(x_2, 5); -x_76 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); -x_77 = lean_ctor_get_uint8(x_2, sizeof(void*)*6 + 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_73 = lean_ctor_get(x_2, 0); +x_74 = lean_ctor_get(x_2, 1); +x_75 = lean_ctor_get(x_2, 2); +x_76 = lean_ctor_get(x_2, 3); +x_77 = lean_ctor_get(x_2, 4); +x_78 = lean_ctor_get(x_2, 5); +x_79 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); +x_80 = lean_ctor_get_uint8(x_2, sizeof(void*)*6 + 1); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); lean_dec(x_2); -x_78 = lean_ctor_get_uint8(x_70, 0); -x_79 = lean_ctor_get_uint8(x_70, 1); -x_80 = lean_ctor_get_uint8(x_70, 2); -x_81 = lean_ctor_get_uint8(x_70, 3); -x_82 = lean_ctor_get_uint8(x_70, 4); -x_83 = lean_ctor_get_uint8(x_70, 5); -x_84 = lean_ctor_get_uint8(x_70, 6); -x_85 = lean_ctor_get_uint8(x_70, 7); -x_86 = lean_ctor_get_uint8(x_70, 8); -x_87 = lean_ctor_get_uint8(x_70, 10); -x_88 = lean_ctor_get_uint8(x_70, 11); -x_89 = lean_ctor_get_uint8(x_70, 12); -if (lean_is_exclusive(x_70)) { - x_90 = x_70; +x_81 = lean_ctor_get_uint8(x_73, 0); +x_82 = lean_ctor_get_uint8(x_73, 1); +x_83 = lean_ctor_get_uint8(x_73, 2); +x_84 = lean_ctor_get_uint8(x_73, 3); +x_85 = lean_ctor_get_uint8(x_73, 4); +x_86 = lean_ctor_get_uint8(x_73, 5); +x_87 = lean_ctor_get_uint8(x_73, 6); +x_88 = lean_ctor_get_uint8(x_73, 7); +x_89 = lean_ctor_get_uint8(x_73, 8); +x_90 = lean_ctor_get_uint8(x_73, 10); +x_91 = lean_ctor_get_uint8(x_73, 11); +x_92 = lean_ctor_get_uint8(x_73, 12); +if (lean_is_exclusive(x_73)) { + x_93 = x_73; } else { - lean_dec_ref(x_70); - x_90 = lean_box(0); + lean_dec_ref(x_73); + x_93 = lean_box(0); } -x_91 = 1; -if (lean_is_scalar(x_90)) { - x_92 = lean_alloc_ctor(0, 0, 13); +x_94 = 1; +if (lean_is_scalar(x_93)) { + x_95 = lean_alloc_ctor(0, 0, 13); } else { - x_92 = x_90; + x_95 = x_93; } -lean_ctor_set_uint8(x_92, 0, x_78); -lean_ctor_set_uint8(x_92, 1, x_79); -lean_ctor_set_uint8(x_92, 2, x_80); -lean_ctor_set_uint8(x_92, 3, x_81); -lean_ctor_set_uint8(x_92, 4, x_82); -lean_ctor_set_uint8(x_92, 5, x_83); -lean_ctor_set_uint8(x_92, 6, x_84); -lean_ctor_set_uint8(x_92, 7, x_85); -lean_ctor_set_uint8(x_92, 8, x_86); -lean_ctor_set_uint8(x_92, 9, x_91); -lean_ctor_set_uint8(x_92, 10, x_87); -lean_ctor_set_uint8(x_92, 11, x_88); -lean_ctor_set_uint8(x_92, 12, x_89); -x_93 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_71); -lean_ctor_set(x_93, 2, x_72); -lean_ctor_set(x_93, 3, x_73); -lean_ctor_set(x_93, 4, x_74); -lean_ctor_set(x_93, 5, x_75); -lean_ctor_set_uint8(x_93, sizeof(void*)*6, x_76); -lean_ctor_set_uint8(x_93, sizeof(void*)*6 + 1, x_77); -x_94 = l_Lean_Meta_inferTypeImp_infer(x_1, x_93, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_94) == 0) +lean_ctor_set_uint8(x_95, 0, x_81); +lean_ctor_set_uint8(x_95, 1, x_82); +lean_ctor_set_uint8(x_95, 2, x_83); +lean_ctor_set_uint8(x_95, 3, x_84); +lean_ctor_set_uint8(x_95, 4, x_85); +lean_ctor_set_uint8(x_95, 5, x_86); +lean_ctor_set_uint8(x_95, 6, x_87); +lean_ctor_set_uint8(x_95, 7, x_88); +lean_ctor_set_uint8(x_95, 8, x_89); +lean_ctor_set_uint8(x_95, 9, x_94); +lean_ctor_set_uint8(x_95, 10, x_90); +lean_ctor_set_uint8(x_95, 11, x_91); +lean_ctor_set_uint8(x_95, 12, x_92); +x_96 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_74); +lean_ctor_set(x_96, 2, x_75); +lean_ctor_set(x_96, 3, x_76); +lean_ctor_set(x_96, 4, x_77); +lean_ctor_set(x_96, 5, x_78); +lean_ctor_set_uint8(x_96, sizeof(void*)*6, x_79); +lean_ctor_set_uint8(x_96, sizeof(void*)*6 + 1, x_80); +x_97 = l_Lean_Meta_inferTypeImp_infer(x_1, x_96, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; -} else { - lean_dec_ref(x_94); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(0, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -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_94, 0); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_94, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_101 = x_94; +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; } else { - lean_dec_ref(x_94); - x_101 = lean_box(0); + lean_dec_ref(x_97); + x_100 = lean_box(0); } -if (lean_is_scalar(x_101)) { - x_102 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(0, 2, 0); } else { - x_102 = x_101; + x_101 = x_100; } -lean_ctor_set(x_102, 0, x_99); -lean_ctor_set(x_102, 1, x_100); -return x_102; +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_97, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_97, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_104 = x_97; +} else { + lean_dec_ref(x_97); + 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_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; uint8_t x_112; uint8_t x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_object* x_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; uint8_t x_115; uint8_t x_116; lean_object* x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_dec(x_4); -x_103 = lean_unsigned_to_nat(1u); -x_104 = lean_nat_add(x_10, x_103); +x_106 = lean_unsigned_to_nat(1u); +x_107 = lean_nat_add(x_10, x_106); lean_dec(x_10); -x_105 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_105, 0, x_7); -lean_ctor_set(x_105, 1, x_8); -lean_ctor_set(x_105, 2, x_9); -lean_ctor_set(x_105, 3, x_104); -lean_ctor_set(x_105, 4, x_11); -lean_ctor_set(x_105, 5, x_12); -lean_ctor_set(x_105, 6, x_13); -lean_ctor_set(x_105, 7, x_14); -lean_ctor_set(x_105, 8, x_15); -lean_ctor_set(x_105, 9, x_16); -lean_ctor_set(x_105, 10, x_17); -lean_ctor_set_uint8(x_105, sizeof(void*)*11, x_18); -x_106 = lean_ctor_get(x_2, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_2, 1); -lean_inc(x_107); -x_108 = lean_ctor_get(x_2, 2); -lean_inc(x_108); -x_109 = lean_ctor_get(x_2, 3); +x_108 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_108, 0, x_7); +lean_ctor_set(x_108, 1, x_8); +lean_ctor_set(x_108, 2, x_9); +lean_ctor_set(x_108, 3, x_107); +lean_ctor_set(x_108, 4, x_11); +lean_ctor_set(x_108, 5, x_12); +lean_ctor_set(x_108, 6, x_13); +lean_ctor_set(x_108, 7, x_14); +lean_ctor_set(x_108, 8, x_15); +lean_ctor_set(x_108, 9, x_16); +lean_ctor_set(x_108, 10, x_17); +lean_ctor_set(x_108, 11, x_19); +lean_ctor_set_uint8(x_108, sizeof(void*)*12, x_18); +lean_ctor_set_uint8(x_108, sizeof(void*)*12 + 1, x_20); +x_109 = lean_ctor_get(x_2, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_2, 4); +x_110 = lean_ctor_get(x_2, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_2, 5); +x_111 = lean_ctor_get(x_2, 2); lean_inc(x_111); -x_112 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); -x_113 = lean_ctor_get_uint8(x_2, sizeof(void*)*6 + 1); +x_112 = lean_ctor_get(x_2, 3); +lean_inc(x_112); +x_113 = lean_ctor_get(x_2, 4); +lean_inc(x_113); +x_114 = lean_ctor_get(x_2, 5); +lean_inc(x_114); +x_115 = lean_ctor_get_uint8(x_2, sizeof(void*)*6); +x_116 = lean_ctor_get_uint8(x_2, sizeof(void*)*6 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -11373,115 +11380,116 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 3); lean_ctor_release(x_2, 4); lean_ctor_release(x_2, 5); - x_114 = x_2; + x_117 = x_2; } else { lean_dec_ref(x_2); - x_114 = lean_box(0); + x_117 = lean_box(0); } -x_115 = lean_ctor_get_uint8(x_106, 0); -x_116 = lean_ctor_get_uint8(x_106, 1); -x_117 = lean_ctor_get_uint8(x_106, 2); -x_118 = lean_ctor_get_uint8(x_106, 3); -x_119 = lean_ctor_get_uint8(x_106, 4); -x_120 = lean_ctor_get_uint8(x_106, 5); -x_121 = lean_ctor_get_uint8(x_106, 6); -x_122 = lean_ctor_get_uint8(x_106, 7); -x_123 = lean_ctor_get_uint8(x_106, 8); -x_124 = lean_ctor_get_uint8(x_106, 10); -x_125 = lean_ctor_get_uint8(x_106, 11); -x_126 = lean_ctor_get_uint8(x_106, 12); -if (lean_is_exclusive(x_106)) { - x_127 = x_106; +x_118 = lean_ctor_get_uint8(x_109, 0); +x_119 = lean_ctor_get_uint8(x_109, 1); +x_120 = lean_ctor_get_uint8(x_109, 2); +x_121 = lean_ctor_get_uint8(x_109, 3); +x_122 = lean_ctor_get_uint8(x_109, 4); +x_123 = lean_ctor_get_uint8(x_109, 5); +x_124 = lean_ctor_get_uint8(x_109, 6); +x_125 = lean_ctor_get_uint8(x_109, 7); +x_126 = lean_ctor_get_uint8(x_109, 8); +x_127 = lean_ctor_get_uint8(x_109, 10); +x_128 = lean_ctor_get_uint8(x_109, 11); +x_129 = lean_ctor_get_uint8(x_109, 12); +if (lean_is_exclusive(x_109)) { + x_130 = x_109; } else { - lean_dec_ref(x_106); - x_127 = lean_box(0); + lean_dec_ref(x_109); + x_130 = lean_box(0); } -x_128 = 1; -if (lean_is_scalar(x_127)) { - x_129 = lean_alloc_ctor(0, 0, 13); +x_131 = 1; +if (lean_is_scalar(x_130)) { + x_132 = lean_alloc_ctor(0, 0, 13); } else { - x_129 = x_127; + x_132 = x_130; } -lean_ctor_set_uint8(x_129, 0, x_115); -lean_ctor_set_uint8(x_129, 1, x_116); -lean_ctor_set_uint8(x_129, 2, x_117); -lean_ctor_set_uint8(x_129, 3, x_118); -lean_ctor_set_uint8(x_129, 4, x_119); -lean_ctor_set_uint8(x_129, 5, x_120); -lean_ctor_set_uint8(x_129, 6, x_121); -lean_ctor_set_uint8(x_129, 7, x_122); -lean_ctor_set_uint8(x_129, 8, x_123); -lean_ctor_set_uint8(x_129, 9, x_128); -lean_ctor_set_uint8(x_129, 10, x_124); -lean_ctor_set_uint8(x_129, 11, x_125); -lean_ctor_set_uint8(x_129, 12, x_126); -if (lean_is_scalar(x_114)) { - x_130 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set_uint8(x_132, 0, x_118); +lean_ctor_set_uint8(x_132, 1, x_119); +lean_ctor_set_uint8(x_132, 2, x_120); +lean_ctor_set_uint8(x_132, 3, x_121); +lean_ctor_set_uint8(x_132, 4, x_122); +lean_ctor_set_uint8(x_132, 5, x_123); +lean_ctor_set_uint8(x_132, 6, x_124); +lean_ctor_set_uint8(x_132, 7, x_125); +lean_ctor_set_uint8(x_132, 8, x_126); +lean_ctor_set_uint8(x_132, 9, x_131); +lean_ctor_set_uint8(x_132, 10, x_127); +lean_ctor_set_uint8(x_132, 11, x_128); +lean_ctor_set_uint8(x_132, 12, x_129); +if (lean_is_scalar(x_117)) { + x_133 = lean_alloc_ctor(0, 6, 2); } else { - x_130 = x_114; + x_133 = x_117; } -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_107); -lean_ctor_set(x_130, 2, x_108); -lean_ctor_set(x_130, 3, x_109); -lean_ctor_set(x_130, 4, x_110); -lean_ctor_set(x_130, 5, x_111); -lean_ctor_set_uint8(x_130, sizeof(void*)*6, x_112); -lean_ctor_set_uint8(x_130, sizeof(void*)*6 + 1, x_113); -x_131 = l_Lean_Meta_inferTypeImp_infer(x_1, x_130, x_3, x_105, x_5, x_6); -if (lean_obj_tag(x_131) == 0) +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_110); +lean_ctor_set(x_133, 2, x_111); +lean_ctor_set(x_133, 3, x_112); +lean_ctor_set(x_133, 4, x_113); +lean_ctor_set(x_133, 5, x_114); +lean_ctor_set_uint8(x_133, sizeof(void*)*6, x_115); +lean_ctor_set_uint8(x_133, sizeof(void*)*6 + 1, x_116); +x_134 = l_Lean_Meta_inferTypeImp_infer(x_1, x_133, x_3, x_108, x_5, x_6); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -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); -} -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_134; -} -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_131, 0); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_138 = x_131; +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_137 = x_134; } else { - lean_dec_ref(x_131); - x_138 = lean_box(0); + lean_dec_ref(x_134); + x_137 = lean_box(0); } -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(0, 2, 0); } else { - x_139 = x_138; + x_138 = x_137; } -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_134, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_134, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_141 = x_134; +} else { + lean_dec_ref(x_134); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } } } else { -lean_object* x_140; +lean_object* x_143; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -11493,12 +11501,12 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_140 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_inferTypeImp___spec__1(x_12, x_2, x_3, x_4, x_5, x_6); +x_143 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_inferTypeImp___spec__1(x_12, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_140; +return x_143; } } } diff --git a/stage0/stdlib/Lean/Meta/Injective.c b/stage0/stdlib/Lean/Meta/Injective.c index 1136fb3da0..cebe81ff74 100644 --- a/stage0/stdlib/Lean/Meta/Injective.c +++ b/stage0/stdlib/Lean/Meta/Injective.c @@ -41,6 +41,7 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_indentD(lean_object*); double lean_float_div(double, double); LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1949____closed__5; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_mkInjectiveTheorems___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3685,35 +3686,39 @@ if (x_72 == 0) lean_object* x_73; lean_object* x_74; uint8_t x_75; x_73 = lean_ctor_get(x_67, 0); x_74 = lean_ctor_get(x_67, 1); -x_75 = l_Lean_Exception_isRuntime(x_73); +x_75 = l_Lean_Exception_isInterrupt(x_73); if (x_75 == 0) { -lean_object* x_76; lean_object* x_77; uint8_t x_78; +uint8_t x_76; +x_76 = l_Lean_Exception_isRuntime(x_73); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_free_object(x_67); lean_dec(x_73); -x_76 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); -x_77 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_76, x_4, x_5, x_6, x_7, x_74); +x_77 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); +x_78 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_77, x_4, x_5, x_6, x_7, x_74); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_78 = !lean_is_exclusive(x_77); -if (x_78 == 0) +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) { -return x_77; +return x_78; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_77, 0); -x_80 = lean_ctor_get(x_77, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_78, 0); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_77); -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; +lean_dec(x_78); +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 @@ -3728,56 +3733,84 @@ return x_67; } else { -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_67, 0); -x_83 = lean_ctor_get(x_67, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_67); -x_84 = l_Lean_Exception_isRuntime(x_82); -if (x_84 == 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; -lean_dec(x_82); -x_85 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); -x_86 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_85, x_4, x_5, x_6, x_7, x_83); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_89 = x_86; -} else { - lean_dec_ref(x_86); - 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_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; -} -else -{ -lean_object* x_91; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_82); -lean_ctor_set(x_91, 1, x_83); -return x_91; +return x_67; +} +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_67, 0); +x_84 = lean_ctor_get(x_67, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_67); +x_85 = l_Lean_Exception_isInterrupt(x_83); +if (x_85 == 0) +{ +uint8_t x_86; +x_86 = l_Lean_Exception_isRuntime(x_83); +if (x_86 == 0) +{ +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_dec(x_83); +x_87 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); +x_88 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_87, x_4, x_5, x_6, x_7, x_84); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; +} else { + lean_dec_ref(x_88); + 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); +return x_92; +} +else +{ +lean_object* x_93; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_83); +lean_ctor_set(x_93, 1, x_84); +return x_93; +} +} +else +{ +lean_object* x_94; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_83); +lean_ctor_set(x_94, 1, x_84); +return x_94; } } } @@ -3785,7 +3818,7 @@ return x_91; } else { -uint8_t x_92; +uint8_t x_95; lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); @@ -3793,29 +3826,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_59); -if (x_92 == 0) +x_95 = !lean_is_exclusive(x_59); +if (x_95 == 0) { return x_59; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_59, 0); -x_94 = lean_ctor_get(x_59, 1); -lean_inc(x_94); -lean_inc(x_93); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_59, 0); +x_97 = lean_ctor_get(x_59, 1); +lean_inc(x_97); +lean_inc(x_96); lean_dec(x_59); -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; +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; } } } else { -uint8_t x_96; +uint8_t x_99; lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); @@ -3823,29 +3856,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_96 = !lean_is_exclusive(x_56); -if (x_96 == 0) +x_99 = !lean_is_exclusive(x_56); +if (x_99 == 0) { return x_56; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_56, 0); -x_98 = lean_ctor_get(x_56, 1); -lean_inc(x_98); -lean_inc(x_97); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_56, 0); +x_101 = lean_ctor_get(x_56, 1); +lean_inc(x_101); +lean_inc(x_100); lean_dec(x_56); -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; +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } } else { -uint8_t x_100; +uint8_t x_103; lean_dec(x_53); lean_dec(x_12); lean_dec(x_7); @@ -3854,29 +3887,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_100 = !lean_is_exclusive(x_54); -if (x_100 == 0) +x_103 = !lean_is_exclusive(x_54); +if (x_103 == 0) { return x_54; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_54, 0); -x_102 = lean_ctor_get(x_54, 1); -lean_inc(x_102); -lean_inc(x_101); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_54, 0); +x_105 = lean_ctor_get(x_54, 1); +lean_inc(x_105); +lean_inc(x_104); lean_dec(x_54); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } else { -uint8_t x_104; +uint8_t x_107; lean_dec(x_49); lean_dec(x_48); lean_dec(x_12); @@ -3886,29 +3919,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_104 = !lean_is_exclusive(x_50); -if (x_104 == 0) +x_107 = !lean_is_exclusive(x_50); +if (x_107 == 0) { return x_50; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_50, 0); -x_106 = lean_ctor_get(x_50, 1); -lean_inc(x_106); -lean_inc(x_105); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_50, 0); +x_109 = lean_ctor_get(x_50, 1); +lean_inc(x_109); +lean_inc(x_108); lean_dec(x_50); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } else { -uint8_t x_108; +uint8_t x_111; lean_dec(x_43); lean_dec(x_12); lean_dec(x_7); @@ -3917,126 +3950,126 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_108 = !lean_is_exclusive(x_45); -if (x_108 == 0) +x_111 = !lean_is_exclusive(x_45); +if (x_111 == 0) { return x_45; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_45, 0); -x_110 = lean_ctor_get(x_45, 1); -lean_inc(x_110); -lean_inc(x_109); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_45, 0); +x_113 = lean_ctor_get(x_45, 1); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_45); -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; +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; } } } else { -uint8_t x_112; +uint8_t x_115; lean_dec(x_18); lean_dec(x_12); lean_dec(x_2); -x_112 = !lean_is_exclusive(x_25); -if (x_112 == 0) -{ -lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_113 = lean_ctor_get(x_25, 1); -lean_dec(x_113); -x_114 = lean_ctor_get(x_25, 0); -lean_dec(x_114); -x_115 = !lean_is_exclusive(x_40); +x_115 = !lean_is_exclusive(x_25); 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; lean_object* x_122; -x_116 = lean_ctor_get(x_40, 1); +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_25, 1); lean_dec(x_116); -x_117 = lean_ctor_get(x_40, 0); +x_117 = lean_ctor_get(x_25, 0); lean_dec(x_117); -x_118 = lean_ctor_get(x_17, 1); -lean_inc(x_118); +x_118 = !lean_is_exclusive(x_40); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_119 = lean_ctor_get(x_40, 1); +lean_dec(x_119); +x_120 = lean_ctor_get(x_40, 0); +lean_dec(x_120); +x_121 = lean_ctor_get(x_17, 1); +lean_inc(x_121); lean_dec(x_17); -x_119 = l_Lean_MessageData_ofName(x_1); -x_120 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +x_122 = l_Lean_MessageData_ofName(x_1); +x_123 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; lean_ctor_set_tag(x_40, 6); -lean_ctor_set(x_40, 1, x_119); -lean_ctor_set(x_40, 0, x_120); -x_121 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +lean_ctor_set(x_40, 1, x_122); +lean_ctor_set(x_40, 0, x_123); +x_124 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; lean_ctor_set_tag(x_25, 6); -lean_ctor_set(x_25, 1, x_121); +lean_ctor_set(x_25, 1, x_124); lean_ctor_set(x_25, 0, x_40); -x_122 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_25, x_4, x_5, x_6, x_7, x_118); +x_125 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_25, x_4, x_5, x_6, x_7, x_121); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_122; +return x_125; } else { -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_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_dec(x_40); -x_123 = lean_ctor_get(x_17, 1); -lean_inc(x_123); +x_126 = lean_ctor_get(x_17, 1); +lean_inc(x_126); lean_dec(x_17); -x_124 = l_Lean_MessageData_ofName(x_1); -x_125 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; -x_126 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +x_127 = l_Lean_MessageData_ofName(x_1); +x_128 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +x_129 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +x_130 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; lean_ctor_set_tag(x_25, 6); -lean_ctor_set(x_25, 1, x_127); -lean_ctor_set(x_25, 0, x_126); -x_128 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_25, x_4, x_5, x_6, x_7, x_123); +lean_ctor_set(x_25, 1, x_130); +lean_ctor_set(x_25, 0, x_129); +x_131 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_25, x_4, x_5, x_6, x_7, x_126); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_128; +return x_131; } } else { -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_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_dec(x_25); if (lean_is_exclusive(x_40)) { lean_ctor_release(x_40, 0); lean_ctor_release(x_40, 1); - x_129 = x_40; + x_132 = x_40; } else { lean_dec_ref(x_40); - x_129 = lean_box(0); + x_132 = lean_box(0); } -x_130 = lean_ctor_get(x_17, 1); -lean_inc(x_130); +x_133 = lean_ctor_get(x_17, 1); +lean_inc(x_133); lean_dec(x_17); -x_131 = l_Lean_MessageData_ofName(x_1); -x_132 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; -if (lean_is_scalar(x_129)) { - x_133 = lean_alloc_ctor(6, 2, 0); +x_134 = l_Lean_MessageData_ofName(x_1); +x_135 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +if (lean_is_scalar(x_132)) { + x_136 = lean_alloc_ctor(6, 2, 0); } else { - x_133 = x_129; - lean_ctor_set_tag(x_133, 6); + x_136 = x_132; + lean_ctor_set_tag(x_136, 6); } -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -x_134 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; -x_135 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_135, x_4, x_5, x_6, x_7, x_130); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_134); +x_137 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +x_138 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +x_139 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_138, x_4, x_5, x_6, x_7, x_133); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_136; +return x_139; } } } @@ -4044,7 +4077,7 @@ return x_136; } else { -uint8_t x_137; +uint8_t x_140; lean_free_object(x_10); lean_dec(x_12); lean_dec(x_7); @@ -4053,565 +4086,587 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_17); -if (x_137 == 0) +x_140 = !lean_is_exclusive(x_17); +if (x_140 == 0) { return x_17; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_17, 0); -x_139 = lean_ctor_get(x_17, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_17); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; -} -} -} -else -{ -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_10, 0); -x_142 = lean_ctor_get(x_10, 1); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_17, 0); +x_142 = lean_ctor_get(x_17, 1); lean_inc(x_142); lean_inc(x_141); +lean_dec(x_17); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_144 = lean_ctor_get(x_10, 0); +x_145 = lean_ctor_get(x_10, 1); +lean_inc(x_145); +lean_inc(x_144); lean_dec(x_10); -lean_inc(x_141); -x_143 = l_Lean_Expr_mvarId_x21(x_141); -x_144 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__4; -x_145 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__5; +lean_inc(x_144); +x_146 = l_Lean_Expr_mvarId_x21(x_144); +x_147 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__4; +x_148 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__5; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_146 = l_Lean_MVarId_apply(x_143, x_144, x_145, x_4, x_5, x_6, x_7, x_142); -if (lean_obj_tag(x_146) == 0) +x_149 = l_Lean_MVarId_apply(x_146, x_147, x_148, x_4, x_5, x_6, x_7, x_145); +if (lean_obj_tag(x_149) == 0) { -lean_object* x_147; -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -if (lean_obj_tag(x_147) == 0) +lean_object* x_150; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +if (lean_obj_tag(x_150) == 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; lean_object* x_154; -lean_dec(x_141); +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_dec(x_144); lean_dec(x_2); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec(x_146); -x_149 = l_Lean_MessageData_ofName(x_1); -x_150 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; -x_151 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_149); -x_152 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; -x_153 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -x_154 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_153, x_4, x_5, x_6, x_7, x_148); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = l_Lean_MessageData_ofName(x_1); +x_153 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +x_154 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_152); +x_155 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +x_156 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +x_157 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_156, x_4, x_5, x_6, x_7, x_151); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_154; +return x_157; } else { -lean_object* x_155; -x_155 = lean_ctor_get(x_147, 1); -lean_inc(x_155); -if (lean_obj_tag(x_155) == 0) +lean_object* x_158; +x_158 = lean_ctor_get(x_150, 1); +lean_inc(x_158); +if (lean_obj_tag(x_158) == 0) { -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_dec(x_141); +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_dec(x_144); lean_dec(x_2); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_156 = x_147; +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_159 = x_150; } else { - lean_dec_ref(x_147); - x_156 = lean_box(0); + lean_dec_ref(x_150); + x_159 = lean_box(0); } -x_157 = lean_ctor_get(x_146, 1); -lean_inc(x_157); -lean_dec(x_146); -x_158 = l_Lean_MessageData_ofName(x_1); -x_159 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; -if (lean_is_scalar(x_156)) { - x_160 = lean_alloc_ctor(6, 2, 0); +x_160 = lean_ctor_get(x_149, 1); +lean_inc(x_160); +lean_dec(x_149); +x_161 = l_Lean_MessageData_ofName(x_1); +x_162 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +if (lean_is_scalar(x_159)) { + x_163 = lean_alloc_ctor(6, 2, 0); } else { - x_160 = x_156; - lean_ctor_set_tag(x_160, 6); + x_163 = x_159; + lean_ctor_set_tag(x_163, 6); } -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_158); -x_161 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; -x_162 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -x_163 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_162, x_4, x_5, x_6, x_7, x_157); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_161); +x_164 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +x_165 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +x_166 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_165, x_4, x_5, x_6, x_7, x_160); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_163; +return x_166; } else { -lean_object* x_164; -x_164 = lean_ctor_get(x_155, 1); -lean_inc(x_164); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; -x_165 = lean_ctor_get(x_146, 1); -lean_inc(x_165); -lean_dec(x_146); -x_166 = lean_ctor_get(x_147, 0); -lean_inc(x_166); -lean_dec(x_147); -x_167 = lean_ctor_get(x_155, 0); +lean_object* x_167; +x_167 = lean_ctor_get(x_158, 1); lean_inc(x_167); -lean_dec(x_155); -x_168 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_169 = l_Lean_Meta_intro1Core(x_166, x_168, x_4, x_5, x_6, x_7, x_165); -if (lean_obj_tag(x_169) == 0) +if (lean_obj_tag(x_167) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_170 = lean_ctor_get(x_169, 0); +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; +x_168 = lean_ctor_get(x_149, 1); +lean_inc(x_168); +lean_dec(x_149); +x_169 = lean_ctor_get(x_150, 0); +lean_inc(x_169); +lean_dec(x_150); +x_170 = lean_ctor_get(x_158, 0); lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = lean_ctor_get(x_170, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_170, 1); +lean_dec(x_158); +x_171 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_172 = l_Lean_Meta_intro1Core(x_169, x_171, x_4, x_5, x_6, x_7, x_168); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_173 = lean_ctor_get(x_172, 0); lean_inc(x_173); -lean_dec(x_170); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_174 = l_Lean_Meta_intro1Core(x_167, x_168, x_4, x_5, x_6, x_7, x_171); -if (lean_obj_tag(x_174) == 0) -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_175 = lean_ctor_get(x_174, 0); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +lean_dec(x_172); +x_175 = lean_ctor_get(x_173, 0); lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); +x_176 = lean_ctor_get(x_173, 1); lean_inc(x_176); -lean_dec(x_174); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec(x_175); +lean_dec(x_173); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_1); -x_178 = l___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq(x_1, x_173, x_172, x_4, x_5, x_6, x_7, x_176); -if (lean_obj_tag(x_178) == 0) +x_177 = l_Lean_Meta_intro1Core(x_170, x_171, x_4, x_5, x_6, x_7, x_174); +if (lean_obj_tag(x_177) == 0) { -lean_object* x_179; lean_object* x_180; -x_179 = lean_ctor_get(x_178, 1); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); lean_inc(x_179); +lean_dec(x_177); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); lean_dec(x_178); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_180 = l_Lean_MVarId_casesAnd(x_177, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_180) == 0) +lean_inc(x_1); +x_181 = l___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq(x_1, x_176, x_175, x_4, x_5, x_6, x_7, x_179); +if (lean_obj_tag(x_181) == 0) { -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); +lean_object* x_182; lean_object* x_183; +x_182 = lean_ctor_get(x_181, 1); lean_inc(x_182); -lean_dec(x_180); +lean_dec(x_181); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_183 = l_Lean_MVarId_substEqs(x_181, x_4, x_5, x_6, x_7, x_182); +x_183 = l_Lean_MVarId_casesAnd(x_180, x_4, x_5, x_6, x_7, x_182); if (lean_obj_tag(x_183) == 0) { -lean_object* x_184; +lean_object* x_184; lean_object* x_185; lean_object* x_186; 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; uint8_t x_187; lean_object* x_188; -lean_dec(x_1); x_185 = lean_ctor_get(x_183, 1); lean_inc(x_185); lean_dec(x_183); -x_186 = 1; -x_187 = 1; -x_188 = l_Lean_Meta_mkLambdaFVars(x_2, x_141, x_168, x_186, x_187, x_4, x_5, x_6, x_7, x_185); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_188; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_189 = lean_ctor_get(x_183, 1); -lean_inc(x_189); -lean_dec(x_183); -x_190 = lean_ctor_get(x_184, 0); -lean_inc(x_190); -lean_dec(x_184); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_191 = l_Lean_MVarId_refl(x_190, x_4, x_5, x_6, x_7, x_189); -if (lean_obj_tag(x_191) == 0) +x_186 = l_Lean_MVarId_substEqs(x_184, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_186) == 0) { -lean_object* x_192; uint8_t x_193; uint8_t x_194; lean_object* x_195; +lean_object* x_187; +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; uint8_t x_189; uint8_t x_190; lean_object* x_191; lean_dec(x_1); -x_192 = lean_ctor_get(x_191, 1); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +lean_dec(x_186); +x_189 = 1; +x_190 = 1; +x_191 = l_Lean_Meta_mkLambdaFVars(x_2, x_144, x_171, x_189, x_190, x_4, x_5, x_6, x_7, x_188); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_191; +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_186, 1); lean_inc(x_192); -lean_dec(x_191); -x_193 = 1; -x_194 = 1; -x_195 = l_Lean_Meta_mkLambdaFVars(x_2, x_141, x_168, x_193, x_194, x_4, x_5, x_6, x_7, x_192); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_195; -} -else +lean_dec(x_186); +x_193 = lean_ctor_get(x_187, 0); +lean_inc(x_193); +lean_dec(x_187); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_194 = l_Lean_MVarId_refl(x_193, x_4, x_5, x_6, x_7, x_192); +if (lean_obj_tag(x_194) == 0) { -lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; -lean_dec(x_141); -lean_dec(x_2); -x_196 = lean_ctor_get(x_191, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_191, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_198 = x_191; -} else { - lean_dec_ref(x_191); - x_198 = lean_box(0); -} -x_199 = l_Lean_Exception_isRuntime(x_196); -if (x_199 == 0) -{ -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_dec(x_198); -lean_dec(x_196); -x_200 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); -x_201 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_200, x_4, x_5, x_6, x_7, x_197); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_204 = x_201; -} else { - lean_dec_ref(x_201); - x_204 = lean_box(0); -} -if (lean_is_scalar(x_204)) { - x_205 = lean_alloc_ctor(1, 2, 0); -} else { - x_205 = x_204; -} -lean_ctor_set(x_205, 0, x_202); -lean_ctor_set(x_205, 1, x_203); -return x_205; -} -else -{ -lean_object* x_206; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_195; uint8_t x_196; uint8_t x_197; lean_object* x_198; lean_dec(x_1); -if (lean_is_scalar(x_198)) { - x_206 = lean_alloc_ctor(1, 2, 0); -} else { - x_206 = x_198; -} -lean_ctor_set(x_206, 0, x_196); -lean_ctor_set(x_206, 1, x_197); -return x_206; -} -} -} -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_141); +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +lean_dec(x_194); +x_196 = 1; +x_197 = 1; +x_198 = l_Lean_Meta_mkLambdaFVars(x_2, x_144, x_171, x_196, x_197, x_4, x_5, x_6, x_7, x_195); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +return x_198; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; +lean_dec(x_144); lean_dec(x_2); -lean_dec(x_1); -x_207 = lean_ctor_get(x_183, 0); +x_199 = lean_ctor_get(x_194, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_194, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_201 = x_194; +} else { + lean_dec_ref(x_194); + x_201 = lean_box(0); +} +x_202 = l_Lean_Exception_isInterrupt(x_199); +if (x_202 == 0) +{ +uint8_t x_203; +x_203 = l_Lean_Exception_isRuntime(x_199); +if (x_203 == 0) +{ +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_201); +lean_dec(x_199); +x_204 = l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(x_1); +x_205 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_204, x_4, x_5, x_6, x_7, x_200); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_206 = lean_ctor_get(x_205, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_205, 1); lean_inc(x_207); -x_208 = lean_ctor_get(x_183, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_209 = x_183; +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_208 = x_205; } else { - lean_dec_ref(x_183); - x_209 = lean_box(0); + lean_dec_ref(x_205); + x_208 = lean_box(0); } -if (lean_is_scalar(x_209)) { +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_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +else +{ +lean_object* x_210; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_201)) { x_210 = lean_alloc_ctor(1, 2, 0); } else { - x_210 = x_209; + x_210 = x_201; } -lean_ctor_set(x_210, 0, x_207); -lean_ctor_set(x_210, 1, x_208); +lean_ctor_set(x_210, 0, x_199); +lean_ctor_set(x_210, 1, x_200); return x_210; } } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_141); +lean_object* x_211; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_201)) { + x_211 = lean_alloc_ctor(1, 2, 0); +} else { + x_211 = x_201; +} +lean_ctor_set(x_211, 0, x_199); +lean_ctor_set(x_211, 1, x_200); +return x_211; +} +} +} +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_144); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_211 = lean_ctor_get(x_180, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_180, 1); +x_212 = lean_ctor_get(x_186, 0); lean_inc(x_212); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_213 = x_180; +x_213 = lean_ctor_get(x_186, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_214 = x_186; } else { - lean_dec_ref(x_180); - x_213 = lean_box(0); + lean_dec_ref(x_186); + x_214 = lean_box(0); } -if (lean_is_scalar(x_213)) { - x_214 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_214 = x_213; + x_215 = x_214; } -lean_ctor_set(x_214, 0, x_211); -lean_ctor_set(x_214, 1, x_212); -return x_214; +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +return x_215; } } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec(x_177); -lean_dec(x_141); +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_144); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_215 = lean_ctor_get(x_178, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_178, 1); +x_216 = lean_ctor_get(x_183, 0); lean_inc(x_216); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_217 = x_178; +x_217 = lean_ctor_get(x_183, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_218 = x_183; } else { - lean_dec_ref(x_178); - x_217 = lean_box(0); + lean_dec_ref(x_183); + x_218 = lean_box(0); } -if (lean_is_scalar(x_217)) { - x_218 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_218)) { + x_219 = lean_alloc_ctor(1, 2, 0); } else { - x_218 = x_217; + x_219 = x_218; } -lean_ctor_set(x_218, 0, x_215); -lean_ctor_set(x_218, 1, x_216); -return x_218; +lean_ctor_set(x_219, 0, x_216); +lean_ctor_set(x_219, 1, x_217); +return x_219; } } else { -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -lean_dec(x_173); -lean_dec(x_172); -lean_dec(x_141); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_180); +lean_dec(x_144); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_219 = lean_ctor_get(x_174, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_174, 1); +x_220 = lean_ctor_get(x_181, 0); lean_inc(x_220); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_221 = x_174; +x_221 = lean_ctor_get(x_181, 1); +lean_inc(x_221); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_222 = x_181; } else { - lean_dec_ref(x_174); - x_221 = lean_box(0); + lean_dec_ref(x_181); + x_222 = lean_box(0); } -if (lean_is_scalar(x_221)) { - x_222 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_222)) { + x_223 = lean_alloc_ctor(1, 2, 0); } else { - x_222 = x_221; + x_223 = x_222; } -lean_ctor_set(x_222, 0, x_219); -lean_ctor_set(x_222, 1, x_220); -return x_222; +lean_ctor_set(x_223, 0, x_220); +lean_ctor_set(x_223, 1, x_221); +return x_223; } } else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -lean_dec(x_167); -lean_dec(x_141); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_176); +lean_dec(x_175); +lean_dec(x_144); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_223 = lean_ctor_get(x_169, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_169, 1); +x_224 = lean_ctor_get(x_177, 0); lean_inc(x_224); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_225 = x_169; +x_225 = lean_ctor_get(x_177, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_226 = x_177; } else { - lean_dec_ref(x_169); - x_225 = lean_box(0); + lean_dec_ref(x_177); + x_226 = lean_box(0); } -if (lean_is_scalar(x_225)) { - x_226 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_226)) { + x_227 = lean_alloc_ctor(1, 2, 0); } else { - x_226 = x_225; + x_227 = x_226; } -lean_ctor_set(x_226, 0, x_223); -lean_ctor_set(x_226, 1, x_224); -return x_226; +lean_ctor_set(x_227, 0, x_224); +lean_ctor_set(x_227, 1, x_225); +return x_227; } } else { -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_dec(x_147); -lean_dec(x_141); -lean_dec(x_2); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_227 = x_155; -} else { - lean_dec_ref(x_155); - x_227 = lean_box(0); -} -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_228 = x_164; -} else { - lean_dec_ref(x_164); - x_228 = lean_box(0); -} -x_229 = lean_ctor_get(x_146, 1); -lean_inc(x_229); -lean_dec(x_146); -x_230 = l_Lean_MessageData_ofName(x_1); -x_231 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; -if (lean_is_scalar(x_228)) { - x_232 = lean_alloc_ctor(6, 2, 0); -} else { - x_232 = x_228; - lean_ctor_set_tag(x_232, 6); -} -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_230); -x_233 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; -if (lean_is_scalar(x_227)) { - x_234 = lean_alloc_ctor(6, 2, 0); -} else { - x_234 = x_227; - lean_ctor_set_tag(x_234, 6); -} -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -x_235 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_234, x_4, x_5, x_6, x_7, x_229); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_235; -} -} -} -} -else -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -lean_dec(x_141); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_170); +lean_dec(x_144); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_236 = lean_ctor_get(x_146, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_146, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_238 = x_146; +x_228 = lean_ctor_get(x_172, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_172, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_230 = x_172; } else { - lean_dec_ref(x_146); - x_238 = lean_box(0); + lean_dec_ref(x_172); + x_230 = lean_box(0); } -if (lean_is_scalar(x_238)) { - x_239 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); } else { - x_239 = x_238; + x_231 = x_230; } -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_237); -return x_239; +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +return x_231; +} +} +else +{ +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_dec(x_150); +lean_dec(x_144); +lean_dec(x_2); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_232 = x_158; +} else { + lean_dec_ref(x_158); + x_232 = lean_box(0); +} +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_233 = x_167; +} else { + lean_dec_ref(x_167); + x_233 = lean_box(0); +} +x_234 = lean_ctor_get(x_149, 1); +lean_inc(x_234); +lean_dec(x_149); +x_235 = l_Lean_MessageData_ofName(x_1); +x_236 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7; +if (lean_is_scalar(x_233)) { + x_237 = lean_alloc_ctor(6, 2, 0); +} else { + x_237 = x_233; + lean_ctor_set_tag(x_237, 6); +} +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_235); +x_238 = l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__4; +if (lean_is_scalar(x_232)) { + x_239 = lean_alloc_ctor(6, 2, 0); +} else { + x_239 = x_232; + lean_ctor_set_tag(x_239, 6); +} +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +x_240 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_239, x_4, x_5, x_6, x_7, x_234); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_240; +} +} +} +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_144); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_241 = lean_ctor_get(x_149, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_149, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_243 = x_149; +} else { + lean_dec_ref(x_149); + x_243 = lean_box(0); +} +if (lean_is_scalar(x_243)) { + x_244 = lean_alloc_ctor(1, 2, 0); +} else { + x_244 = x_243; +} +lean_ctor_set(x_244, 0, x_241); +lean_ctor_set(x_244, 1, x_242); +return x_244; } } } @@ -5994,7 +6049,7 @@ return x_70; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 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; lean_object* x_89; lean_object* x_90; size_t x_91; size_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; 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_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t 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; lean_object* x_91; lean_object* x_92; size_t x_93; size_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_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; x_71 = lean_ctor_get(x_7, 0); x_72 = lean_ctor_get(x_7, 1); x_73 = lean_ctor_get(x_7, 2); @@ -6006,7 +6061,10 @@ x_78 = lean_ctor_get(x_7, 7); x_79 = lean_ctor_get(x_7, 8); x_80 = lean_ctor_get(x_7, 9); x_81 = lean_ctor_get(x_7, 10); -x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_82 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_83 = lean_ctor_get(x_7, 11); +x_84 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_83); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); @@ -6019,125 +6077,127 @@ lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); lean_dec(x_7); -x_83 = l_Lean_replaceRef(x_3, x_76); +x_85 = l_Lean_replaceRef(x_3, x_76); lean_dec(x_76); -x_84 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_84, 0, x_71); -lean_ctor_set(x_84, 1, x_72); -lean_ctor_set(x_84, 2, x_73); -lean_ctor_set(x_84, 3, x_74); -lean_ctor_set(x_84, 4, x_75); -lean_ctor_set(x_84, 5, x_83); -lean_ctor_set(x_84, 6, x_77); -lean_ctor_set(x_84, 7, x_78); -lean_ctor_set(x_84, 8, x_79); -lean_ctor_set(x_84, 9, x_80); -lean_ctor_set(x_84, 10, x_81); -lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_82); -x_85 = lean_st_ref_get(x_8, x_9); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 3); +x_86 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_86, 0, x_71); +lean_ctor_set(x_86, 1, x_72); +lean_ctor_set(x_86, 2, x_73); +lean_ctor_set(x_86, 3, x_74); +lean_ctor_set(x_86, 4, x_75); +lean_ctor_set(x_86, 5, x_85); +lean_ctor_set(x_86, 6, x_77); +lean_ctor_set(x_86, 7, x_78); +lean_ctor_set(x_86, 8, x_79); +lean_ctor_set(x_86, 9, x_80); +lean_ctor_set(x_86, 10, x_81); +lean_ctor_set(x_86, 11, x_83); +lean_ctor_set_uint8(x_86, sizeof(void*)*12, x_82); +lean_ctor_set_uint8(x_86, sizeof(void*)*12 + 1, x_84); +x_87 = lean_st_ref_get(x_8, x_9); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = lean_ctor_get(x_88, 3); +lean_inc(x_90); +lean_dec(x_88); +x_91 = l_Lean_PersistentArray_toArray___rarg(x_90); +x_92 = lean_array_get_size(x_91); +x_93 = lean_usize_of_nat(x_92); +lean_dec(x_92); +x_94 = 0; +x_95 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_93, x_94, x_91); +x_96 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_96, 0, x_2); +lean_ctor_set(x_96, 1, x_4); +lean_ctor_set(x_96, 2, x_95); +x_97 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_96, x_5, x_6, x_86, x_8, x_89); lean_dec(x_86); -x_89 = l_Lean_PersistentArray_toArray___rarg(x_88); -x_90 = lean_array_get_size(x_89); -x_91 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_92 = 0; -x_93 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_91, x_92, x_89); -x_94 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_94, 0, x_2); -lean_ctor_set(x_94, 1, x_4); -lean_ctor_set(x_94, 2, x_93); -x_95 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_94, x_5, x_6, x_84, x_8, x_87); -lean_dec(x_84); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_st_ref_take(x_8, x_97); -x_99 = lean_ctor_get(x_98, 0); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_101 = x_98; -} else { - lean_dec_ref(x_98); - x_101 = lean_box(0); -} -x_102 = lean_ctor_get(x_99, 0); +lean_dec(x_97); +x_100 = lean_st_ref_take(x_8, x_99); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_103 = lean_ctor_get(x_99, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_99, 2); +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_100); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_101, 0); lean_inc(x_104); -x_105 = lean_ctor_get(x_99, 4); +x_105 = lean_ctor_get(x_101, 1); lean_inc(x_105); -x_106 = lean_ctor_get(x_99, 5); +x_106 = lean_ctor_get(x_101, 2); lean_inc(x_106); -x_107 = lean_ctor_get(x_99, 6); +x_107 = lean_ctor_get(x_101, 4); lean_inc(x_107); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - lean_ctor_release(x_99, 2); - lean_ctor_release(x_99, 3); - lean_ctor_release(x_99, 4); - lean_ctor_release(x_99, 5); - lean_ctor_release(x_99, 6); - x_108 = x_99; +x_108 = lean_ctor_get(x_101, 5); +lean_inc(x_108); +x_109 = lean_ctor_get(x_101, 6); +lean_inc(x_109); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + lean_ctor_release(x_101, 2); + lean_ctor_release(x_101, 3); + lean_ctor_release(x_101, 4); + lean_ctor_release(x_101, 5); + lean_ctor_release(x_101, 6); + x_110 = x_101; } else { - lean_dec_ref(x_99); - x_108 = lean_box(0); + lean_dec_ref(x_101); + x_110 = lean_box(0); } -if (lean_is_scalar(x_101)) { - x_109 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_103)) { + x_111 = lean_alloc_ctor(0, 2, 0); } else { - x_109 = x_101; + x_111 = x_103; } -lean_ctor_set(x_109, 0, x_3); -lean_ctor_set(x_109, 1, x_96); -x_110 = l_Lean_PersistentArray_push___rarg(x_1, x_109); -if (lean_is_scalar(x_108)) { - x_111 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_111, 0, x_3); +lean_ctor_set(x_111, 1, x_98); +x_112 = l_Lean_PersistentArray_push___rarg(x_1, x_111); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 7, 0); } else { - x_111 = x_108; + x_113 = x_110; } -lean_ctor_set(x_111, 0, x_102); -lean_ctor_set(x_111, 1, x_103); -lean_ctor_set(x_111, 2, x_104); -lean_ctor_set(x_111, 3, x_110); -lean_ctor_set(x_111, 4, x_105); -lean_ctor_set(x_111, 5, x_106); -lean_ctor_set(x_111, 6, x_107); -x_112 = lean_st_ref_set(x_8, x_111, x_100); -x_113 = lean_ctor_get(x_112, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_114 = x_112; -} else { - lean_dec_ref(x_112); - x_114 = lean_box(0); -} -x_115 = lean_box(0); -if (lean_is_scalar(x_114)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_113, 0, x_104); +lean_ctor_set(x_113, 1, x_105); +lean_ctor_set(x_113, 2, x_106); +lean_ctor_set(x_113, 3, x_112); +lean_ctor_set(x_113, 4, x_107); +lean_ctor_set(x_113, 5, x_108); +lean_ctor_set(x_113, 6, x_109); +x_114 = lean_st_ref_set(x_8, x_113, x_102); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); x_116 = x_114; +} else { + lean_dec_ref(x_114); + x_116 = lean_box(0); } -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_113); -return x_116; +x_117 = lean_box(0); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_116; +} +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_115); +return x_118; } } } diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index 8dce5b8e4c..bb387de88c 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -61,6 +61,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getGlobalInstancesIndex___rarg(lean_object* LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binInsertM___at_Lean_Meta_addInstanceEntry___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____lambda__1___closed__10; +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6_(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_getSemiOutParamPositionsOf___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_insert___at_Lean_Meta_addDefaultInstanceEntry___spec__1(lean_object*, lean_object*, lean_object*); @@ -71,7 +72,6 @@ lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -123,6 +123,7 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addDefaultInstance___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_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_addInstanceEntry___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_getSemiOutParamPositionsOf___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -137,6 +138,7 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____clo static lean_object* l_Lean_Meta_addDefaultInstance___closed__1; uint8_t l___private_Lean_Meta_DiscrTreeTypes_0__Lean_Meta_DiscrTree_beqKey____x40_Lean_Meta_DiscrTreeTypes___hyg_99_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____lambda__2(lean_object*, lean_object*); @@ -230,6 +232,7 @@ LEAN_EXPORT lean_object* l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_M lean_object* lean_array_to_list(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Instances_erase___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__7; +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* lean_list_to_array(lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__8; @@ -247,6 +250,7 @@ LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Meta_addDefaultInstanceEntr LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___lambda__1___closed__1; extern lean_object* l_Lean_instInhabitedExpr; +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___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_Meta_defaultInstanceExtension; LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_getSemiOutParamPositionsOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__9___closed__3; @@ -261,6 +265,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__2; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____closed__12; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_3459____closed__5; +static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_3459____lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_addInstanceEntry___spec__13___closed__1; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____lambda__1___closed__2; @@ -346,6 +351,7 @@ static lean_object* l_Lean_Meta_addDefaultInstance___lambda__2___closed__4; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_3117____closed__6; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___lambda__2___closed__2; +static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_addInstanceEntry___spec__9___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____closed__18; @@ -416,6 +422,7 @@ lean_object* l_List_reverse___rarg(lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___lambda__2___closed__3; +static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_addInstanceEntry___spec__14(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_addDefaultInstance___lambda__1___closed__1; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); @@ -468,6 +475,7 @@ lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_377____closed__1; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__3; LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__11___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_3459____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Instances_erased___default___spec__1; LEAN_EXPORT lean_object* l_Lean_Meta_DefaultInstances_priorities___default; @@ -488,14 +496,17 @@ uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_addInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__9___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__8___lambda__2___closed__1; +LEAN_EXPORT uint8_t l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getErasedInstances(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_2534____closed__3; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__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_object* l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); +static lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_getSemiOutParamPositionsOf___spec__1___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_getSemiOutParamPositionsOf___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6922,10 +6933,228 @@ return x_53; } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -6933,1304 +7162,796 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(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) { _start: { -lean_object* x_9; uint8_t x_375; uint8_t x_376; -x_375 = 2; -x_376 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_375); -if (x_376 == 0) +lean_object* x_9; uint8_t x_184; uint8_t x_185; +x_184 = 2; +x_185 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_184); +if (x_185 == 0) { -lean_object* x_377; -x_377 = lean_box(0); -x_9 = x_377; -goto block_374; +lean_object* x_186; +x_186 = lean_box(0); +x_9 = x_186; +goto block_183; } else { -lean_object* x_378; uint8_t x_379; +lean_object* x_187; uint8_t x_188; lean_inc(x_2); -x_378 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_379 = lean_unbox(x_378); -lean_dec(x_378); -if (x_379 == 0) +x_187 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_188 = lean_unbox(x_187); +lean_dec(x_187); +if (x_188 == 0) { -lean_object* x_380; -x_380 = lean_box(0); -x_9 = x_380; -goto block_374; +lean_object* x_189; +x_189 = lean_box(0); +x_9 = x_189; +goto block_183; } else { -lean_object* x_381; lean_object* x_382; +lean_object* x_190; lean_object* x_191; +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -x_381 = lean_box(0); -x_382 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_382, 0, x_381); -lean_ctor_set(x_382, 1, x_8); -return x_382; +lean_dec(x_1); +x_190 = lean_box(0); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_8); +return x_191; } } -block_374: +block_183: { -uint8_t x_10; lean_object* x_368; uint8_t x_369; uint8_t x_370; +uint8_t x_10; lean_object* x_177; uint8_t x_178; uint8_t x_179; lean_dec(x_9); -x_368 = lean_ctor_get(x_6, 2); -lean_inc(x_368); -x_369 = 1; -x_370 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_369); -if (x_370 == 0) +x_177 = lean_ctor_get(x_6, 2); +lean_inc(x_177); +x_178 = 1; +x_179 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_178); +if (x_179 == 0) { -lean_dec(x_368); +lean_dec(x_177); x_10 = x_3; -goto block_367; +goto block_176; } else { -lean_object* x_371; uint8_t x_372; -x_371 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; -x_372 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_368, x_371); -lean_dec(x_368); -if (x_372 == 0) +lean_object* x_180; uint8_t x_181; +x_180 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2; +x_181 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_177, x_180); +lean_dec(x_177); +if (x_181 == 0) { x_10 = x_3; -goto block_367; +goto block_176; } else { -uint8_t x_373; -x_373 = 2; -x_10 = x_373; -goto block_367; +uint8_t x_182; +x_182 = 2; +x_10 = x_182; +goto block_176; } } -block_367: +block_176: { -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; lean_object* x_18; lean_object* x_19; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); x_13 = lean_ctor_get(x_6, 5); lean_inc(x_13); -x_14 = lean_ctor_get(x_6, 6); -lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 7); -lean_inc(x_15); -x_16 = l_Lean_replaceRef(x_1, x_13); +x_14 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_15 = l_Lean_replaceRef(x_1, x_13); lean_dec(x_13); -x_17 = 0; -x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); -x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +lean_dec(x_1); +x_16 = 0; +x_17 = l_Lean_Syntax_getPos_x3f(x_15, x_16); +x_18 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ if (lean_obj_tag(x_18) == 0) { -if (lean_obj_tag(x_19) == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_FileMap_toPosition(x_12, x_23); +lean_inc(x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +if (x_14 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_19); +x_26 = lean_box(0); +x_27 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_21, x_11, x_24, x_25, x_10, x_26, x_6, x_7, x_22); +lean_dec(x_7); lean_dec(x_6); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +return x_27; +} +else { -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; uint8_t x_33; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Lean_FileMap_toPosition(x_12, x_24); -lean_inc(x_25); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_20, 1, x_15); -lean_ctor_set(x_20, 0, x_14); -x_27 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_22); -x_28 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_29 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_28); -lean_ctor_set(x_29, 4, x_27); -lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_10); -x_30 = lean_st_ref_take(x_7, x_23); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_21); +x_29 = l_Lean_MessageData_hasTag(x_28, x_21); +if (x_29 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_31, 5); -x_35 = l_Lean_PersistentArray_push___rarg(x_34, x_29); -lean_ctor_set(x_31, 5, x_35); -x_36 = lean_st_ref_set(x_7, x_31, x_32); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_30; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_30 = lean_box(0); +lean_ctor_set(x_19, 0, x_30); +return x_19; +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_free_object(x_19); +x_31 = lean_box(0); +x_32 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_21, x_11, x_24, x_25, x_10, x_31, x_6, x_7, x_22); +lean_dec(x_7); +lean_dec(x_6); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_FileMap_toPosition(x_12, x_35); +lean_inc(x_36); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +if (x_14 == 0) { lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = lean_box(0); -lean_ctor_set(x_36, 0, x_39); -return x_36; +x_38 = lean_box(0); +x_39 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_33, x_11, x_36, x_37, x_10, x_38, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_33); +x_41 = l_Lean_MessageData_hasTag(x_40, x_33); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_37); lean_dec(x_36); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_33); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +x_45 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_33, x_11, x_36, x_37, x_10, x_44, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_45; +} +} } } else { -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; -x_43 = lean_ctor_get(x_31, 0); -x_44 = lean_ctor_get(x_31, 1); -x_45 = lean_ctor_get(x_31, 2); -x_46 = lean_ctor_get(x_31, 3); -x_47 = lean_ctor_get(x_31, 4); -x_48 = lean_ctor_get(x_31, 5); -x_49 = lean_ctor_get(x_31, 6); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_31); -x_50 = l_Lean_PersistentArray_push___rarg(x_48, x_29); -x_51 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_51, 0, x_43); -lean_ctor_set(x_51, 1, x_44); -lean_ctor_set(x_51, 2, x_45); -lean_ctor_set(x_51, 3, x_46); -lean_ctor_set(x_51, 4, x_47); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_49); -x_52 = lean_st_ref_set(x_7, x_51, x_32); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_54 = x_52; -} else { - lean_dec_ref(x_52); - x_54 = lean_box(0); -} +uint8_t x_46; +x_46 = !lean_is_exclusive(x_18); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_18, 0); +x_48 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +x_52 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_53 = l_Lean_FileMap_toPosition(x_12, x_52); +x_54 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_54); +if (x_14 == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_free_object(x_48); x_55 = lean_box(0); -if (lean_is_scalar(x_54)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_54; -} -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); +x_56 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_50, x_11, x_53, x_18, x_10, x_55, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); return x_56; } -} else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_57 = lean_ctor_get(x_20, 0); -x_58 = lean_ctor_get(x_20, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_20); -x_59 = lean_unsigned_to_nat(0u); -x_60 = l_Lean_FileMap_toPosition(x_12, x_59); -lean_inc(x_60); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_14); -lean_ctor_set(x_62, 1, x_15); -x_63 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_57); -x_64 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_65 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_65, 0, x_11); -lean_ctor_set(x_65, 1, x_60); -lean_ctor_set(x_65, 2, x_61); -lean_ctor_set(x_65, 3, x_64); -lean_ctor_set(x_65, 4, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_65, sizeof(void*)*5 + 1, x_10); -x_66 = lean_st_ref_take(x_7, x_58); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -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); -x_71 = lean_ctor_get(x_67, 2); -lean_inc(x_71); -x_72 = lean_ctor_get(x_67, 3); -lean_inc(x_72); -x_73 = lean_ctor_get(x_67, 4); -lean_inc(x_73); -x_74 = lean_ctor_get(x_67, 5); -lean_inc(x_74); -x_75 = lean_ctor_get(x_67, 6); -lean_inc(x_75); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - lean_ctor_release(x_67, 2); - lean_ctor_release(x_67, 3); - lean_ctor_release(x_67, 4); - lean_ctor_release(x_67, 5); - lean_ctor_release(x_67, 6); - x_76 = x_67; -} else { - lean_dec_ref(x_67); - x_76 = lean_box(0); -} -x_77 = l_Lean_PersistentArray_push___rarg(x_74, x_65); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 7, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_69); -lean_ctor_set(x_78, 1, x_70); -lean_ctor_set(x_78, 2, x_71); -lean_ctor_set(x_78, 3, x_72); -lean_ctor_set(x_78, 4, x_73); -lean_ctor_set(x_78, 5, x_77); -lean_ctor_set(x_78, 6, x_75); -x_79 = lean_st_ref_set(x_7, x_78, x_68); -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_box(0); -if (lean_is_scalar(x_81)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_81; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; -} -} -else +lean_object* x_57; uint8_t x_58; +x_57 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_50); +x_58 = l_Lean_MessageData_hasTag(x_57, x_50); +if (x_58 == 0) { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_19); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_19, 0); -x_86 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_59; +lean_dec(x_18); +lean_dec(x_53); +lean_dec(x_50); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_6); -x_87 = !lean_is_exclusive(x_86); +x_59 = lean_box(0); +lean_ctor_set(x_48, 0, x_59); +return x_48; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_free_object(x_48); +x_60 = lean_box(0); +x_61 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_50, x_11, x_53, x_18, x_10, x_60, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_48, 0); +x_63 = lean_ctor_get(x_48, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_48); +x_64 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_65 = l_Lean_FileMap_toPosition(x_12, x_64); +x_66 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_66); +if (x_14 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_62, x_11, x_65, x_18, x_10, x_67, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_68; +} +else +{ +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_62); +x_70 = l_Lean_MessageData_hasTag(x_69, x_62); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_18); +lean_dec(x_65); +lean_dec(x_62); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_63); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_box(0); +x_74 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_62, x_11, x_65, x_18, x_10, x_73, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_74; +} +} +} +} +else +{ +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; +x_75 = lean_ctor_get(x_18, 0); +lean_inc(x_75); +lean_dec(x_18); +x_76 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +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; +} else { + lean_dec_ref(x_76); + x_79 = lean_box(0); +} +x_80 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_81 = l_Lean_FileMap_toPosition(x_12, x_80); +x_82 = l_Lean_FileMap_toPosition(x_12, x_75); +lean_dec(x_75); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +if (x_14 == 0) +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_77, x_11, x_81, x_83, x_10, x_84, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_85; +} +else +{ +lean_object* x_86; uint8_t x_87; +x_86 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_77); +x_87 = l_Lean_MessageData_hasTag(x_86, x_77); 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; 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_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -x_90 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_91 = l_Lean_FileMap_toPosition(x_12, x_90); -x_92 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_92); -lean_ctor_set(x_86, 1, x_15); -lean_ctor_set(x_86, 0, x_14); -x_93 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_93, 0, x_86); -lean_ctor_set(x_93, 1, x_88); -x_94 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_95 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_95, 0, x_11); -lean_ctor_set(x_95, 1, x_91); -lean_ctor_set(x_95, 2, x_19); -lean_ctor_set(x_95, 3, x_94); -lean_ctor_set(x_95, 4, x_93); -lean_ctor_set_uint8(x_95, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_95, sizeof(void*)*5 + 1, x_10); -x_96 = lean_st_ref_take(x_7, x_89); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = !lean_is_exclusive(x_97); -if (x_99 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_83); +lean_dec(x_81); +lean_dec(x_77); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +return x_89; +} +else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_100 = lean_ctor_get(x_97, 5); -x_101 = l_Lean_PersistentArray_push___rarg(x_100, x_95); -lean_ctor_set(x_97, 5, x_101); -x_102 = lean_st_ref_set(x_7, x_97, x_98); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +lean_object* x_90; lean_object* x_91; +lean_dec(x_79); +x_90 = lean_box(0); +x_91 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_77, x_11, x_81, x_83, x_10, x_90, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_91; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_17); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_17, 0); +x_94 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_95 = !lean_is_exclusive(x_94); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_94, 0); +x_97 = lean_ctor_get(x_94, 1); +x_98 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_98); +lean_ctor_set(x_17, 0, x_98); +if (x_14 == 0) +{ +lean_object* x_99; lean_object* x_100; +lean_free_object(x_94); +x_99 = lean_box(0); +x_100 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_96, x_11, x_98, x_17, x_10, x_99, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_100; +} +else +{ +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_96); +x_102 = l_Lean_MessageData_hasTag(x_101, x_96); +if (x_102 == 0) +{ +lean_object* x_103; +lean_dec(x_17); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_103 = lean_box(0); +lean_ctor_set(x_94, 0, x_103); +return x_94; +} +else { lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_102, 0); -lean_dec(x_104); -x_105 = lean_box(0); -lean_ctor_set(x_102, 0, x_105); -return x_102; +lean_free_object(x_94); +x_104 = lean_box(0); +x_105 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_96, x_11, x_98, x_17, x_10, x_104, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_105; +} +} } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_102, 1); +x_106 = lean_ctor_get(x_94, 0); +x_107 = lean_ctor_get(x_94, 1); +lean_inc(x_107); lean_inc(x_106); -lean_dec(x_102); -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_dec(x_94); +x_108 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_108); +lean_ctor_set(x_17, 0, x_108); +if (x_14 == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_box(0); +x_110 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_106, x_11, x_108, x_17, x_10, x_109, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_110; +} +else +{ +lean_object* x_111; uint8_t x_112; +x_111 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_106); +x_112 = l_Lean_MessageData_hasTag(x_111, x_106); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_17); +lean_dec(x_108); +lean_dec(x_106); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_113 = lean_box(0); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_107); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_box(0); +x_116 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_106, x_11, x_108, x_17, x_10, x_115, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_116; +} +} } } 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_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_109 = lean_ctor_get(x_97, 0); -x_110 = lean_ctor_get(x_97, 1); -x_111 = lean_ctor_get(x_97, 2); -x_112 = lean_ctor_get(x_97, 3); -x_113 = lean_ctor_get(x_97, 4); -x_114 = lean_ctor_get(x_97, 5); -x_115 = lean_ctor_get(x_97, 6); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_97); -x_116 = l_Lean_PersistentArray_push___rarg(x_114, x_95); -x_117 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_117, 0, x_109); -lean_ctor_set(x_117, 1, x_110); -lean_ctor_set(x_117, 2, x_111); -lean_ctor_set(x_117, 3, x_112); -lean_ctor_set(x_117, 4, x_113); -lean_ctor_set(x_117, 5, x_116); -lean_ctor_set(x_117, 6, x_115); -x_118 = lean_st_ref_set(x_7, x_117, x_98); -x_119 = lean_ctor_get(x_118, 1); +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_117 = lean_ctor_get(x_17, 0); +lean_inc(x_117); +lean_dec(x_17); +x_118 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); if (lean_is_exclusive(x_118)) { lean_ctor_release(x_118, 0); lean_ctor_release(x_118, 1); - x_120 = x_118; + x_121 = x_118; } else { lean_dec_ref(x_118); - x_120 = lean_box(0); -} -x_121 = lean_box(0); -if (lean_is_scalar(x_120)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_120; -} -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_119); -return x_122; + x_121 = lean_box(0); } +x_122 = l_Lean_FileMap_toPosition(x_12, x_117); +lean_dec(x_117); +lean_inc(x_122); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +if (x_14 == 0) +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_121); +x_124 = lean_box(0); +x_125 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_119, x_11, x_122, x_123, x_10, x_124, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_125; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_123 = lean_ctor_get(x_86, 0); -x_124 = lean_ctor_get(x_86, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_86); -x_125 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_126 = l_Lean_FileMap_toPosition(x_12, x_125); -x_127 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_127); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_14); -lean_ctor_set(x_128, 1, x_15); -x_129 = lean_alloc_ctor(3, 2, 0); +lean_object* x_126; uint8_t x_127; +x_126 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_119); +x_127 = l_Lean_MessageData_hasTag(x_126, x_119); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_119); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_128 = lean_box(0); +if (lean_is_scalar(x_121)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_121; +} lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_123); -x_130 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_131 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_131, 0, x_11); -lean_ctor_set(x_131, 1, x_126); -lean_ctor_set(x_131, 2, x_19); -lean_ctor_set(x_131, 3, x_130); -lean_ctor_set(x_131, 4, x_129); -lean_ctor_set_uint8(x_131, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_131, sizeof(void*)*5 + 1, x_10); -x_132 = lean_st_ref_take(x_7, x_124); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); +lean_ctor_set(x_129, 1, x_120); +return x_129; +} +else +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_121); +x_130 = lean_box(0); +x_131 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_119, x_11, x_122, x_123, x_10, x_130, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_131; +} +} +} +} +else +{ +lean_object* x_132; uint8_t x_133; +x_132 = lean_ctor_get(x_17, 0); +lean_inc(x_132); +lean_dec(x_17); +x_133 = !lean_is_exclusive(x_18); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_18, 0); +x_135 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_137 = lean_ctor_get(x_135, 0); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_12); +x_139 = l_Lean_FileMap_toPosition(x_12, x_132); lean_dec(x_132); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -x_137 = lean_ctor_get(x_133, 2); +x_140 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_140); +if (x_14 == 0) +{ +lean_object* x_141; lean_object* x_142; +lean_free_object(x_135); +x_141 = lean_box(0); +x_142 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_137, x_11, x_139, x_18, x_10, x_141, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_142; +} +else +{ +lean_object* x_143; uint8_t x_144; +x_143 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 3); -lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 4); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 5); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 6); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - lean_ctor_release(x_133, 6); - x_142 = x_133; -} else { - lean_dec_ref(x_133); - x_142 = lean_box(0); +x_144 = l_Lean_MessageData_hasTag(x_143, x_137); +if (x_144 == 0) +{ +lean_object* x_145; +lean_dec(x_18); +lean_dec(x_139); +lean_dec(x_137); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_145 = lean_box(0); +lean_ctor_set(x_135, 0, x_145); +return x_135; } -x_143 = l_Lean_PersistentArray_push___rarg(x_140, x_131); -if (lean_is_scalar(x_142)) { - x_144 = lean_alloc_ctor(0, 7, 0); -} else { - x_144 = x_142; +else +{ +lean_object* x_146; lean_object* x_147; +lean_free_object(x_135); +x_146 = lean_box(0); +x_147 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_137, x_11, x_139, x_18, x_10, x_146, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_147; } -lean_ctor_set(x_144, 0, x_135); -lean_ctor_set(x_144, 1, x_136); -lean_ctor_set(x_144, 2, x_137); -lean_ctor_set(x_144, 3, x_138); -lean_ctor_set(x_144, 4, x_139); -lean_ctor_set(x_144, 5, x_143); -lean_ctor_set(x_144, 6, x_141); -x_145 = lean_st_ref_set(x_7, x_144, x_134); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; -} else { - lean_dec_ref(x_145); - x_147 = lean_box(0); -} -x_148 = lean_box(0); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -return x_149; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_150 = lean_ctor_get(x_19, 0); -lean_inc(x_150); -lean_dec(x_19); -x_151 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_154 = x_151; -} else { - lean_dec_ref(x_151); - x_154 = lean_box(0); -} -x_155 = lean_unsigned_to_nat(0u); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_135, 0); +x_149 = lean_ctor_get(x_135, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_135); lean_inc(x_12); -x_156 = l_Lean_FileMap_toPosition(x_12, x_155); -x_157 = l_Lean_FileMap_toPosition(x_12, x_150); +x_150 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_151 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_151); +if (x_14 == 0) +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_box(0); +x_153 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_148, x_11, x_150, x_18, x_10, x_152, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_153; +} +else +{ +lean_object* x_154; uint8_t x_155; +x_154 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_148); +x_155 = l_Lean_MessageData_hasTag(x_154, x_148); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec(x_18); lean_dec(x_150); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_157); -if (lean_is_scalar(x_154)) { - x_159 = lean_alloc_ctor(0, 2, 0); -} else { - x_159 = x_154; +lean_dec(x_148); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_149); +return x_157; } -lean_ctor_set(x_159, 0, x_14); -lean_ctor_set(x_159, 1, x_15); -x_160 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_152); -x_161 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_162 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_162, 0, x_11); -lean_ctor_set(x_162, 1, x_156); -lean_ctor_set(x_162, 2, x_158); -lean_ctor_set(x_162, 3, x_161); -lean_ctor_set(x_162, 4, x_160); -lean_ctor_set_uint8(x_162, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_162, sizeof(void*)*5 + 1, x_10); -x_163 = lean_st_ref_take(x_7, x_153); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_167); -x_168 = lean_ctor_get(x_164, 2); -lean_inc(x_168); -x_169 = lean_ctor_get(x_164, 3); -lean_inc(x_169); -x_170 = lean_ctor_get(x_164, 4); -lean_inc(x_170); -x_171 = lean_ctor_get(x_164, 5); -lean_inc(x_171); -x_172 = lean_ctor_get(x_164, 6); -lean_inc(x_172); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - lean_ctor_release(x_164, 3); - lean_ctor_release(x_164, 4); - lean_ctor_release(x_164, 5); - lean_ctor_release(x_164, 6); +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_box(0); +x_159 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_148, x_11, x_150, x_18, x_10, x_158, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_159; +} +} +} +} +else +{ +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; +x_160 = lean_ctor_get(x_18, 0); +lean_inc(x_160); +lean_dec(x_18); +x_161 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_164 = x_161; +} else { + lean_dec_ref(x_161); + x_164 = lean_box(0); +} +lean_inc(x_12); +x_165 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_166 = l_Lean_FileMap_toPosition(x_12, x_160); +lean_dec(x_160); +x_167 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_167, 0, x_166); +if (x_14 == 0) +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_168 = lean_box(0); +x_169 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_162, x_11, x_165, x_167, x_10, x_168, x_6, x_7, x_163); +lean_dec(x_7); +lean_dec(x_6); +return x_169; +} +else +{ +lean_object* x_170; uint8_t x_171; +x_170 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1; +lean_inc(x_162); +x_171 = l_Lean_MessageData_hasTag(x_170, x_162); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +lean_dec(x_167); +lean_dec(x_165); +lean_dec(x_162); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_172 = lean_box(0); +if (lean_is_scalar(x_164)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { x_173 = x_164; -} else { - lean_dec_ref(x_164); - x_173 = lean_box(0); -} -x_174 = l_Lean_PersistentArray_push___rarg(x_171, x_162); -if (lean_is_scalar(x_173)) { - x_175 = lean_alloc_ctor(0, 7, 0); -} else { - x_175 = x_173; -} -lean_ctor_set(x_175, 0, x_166); -lean_ctor_set(x_175, 1, x_167); -lean_ctor_set(x_175, 2, x_168); -lean_ctor_set(x_175, 3, x_169); -lean_ctor_set(x_175, 4, x_170); -lean_ctor_set(x_175, 5, x_174); -lean_ctor_set(x_175, 6, x_172); -x_176 = lean_st_ref_set(x_7, x_175, x_165); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_178 = x_176; -} else { - lean_dec_ref(x_176); - x_178 = lean_box(0); -} -x_179 = lean_box(0); -if (lean_is_scalar(x_178)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_178; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_177); -return x_180; -} } +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_163); +return x_173; } else { -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_18); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_ctor_get(x_18, 0); -x_183 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_174; lean_object* x_175; +lean_dec(x_164); +x_174 = lean_box(0); +x_175 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_162, x_11, x_165, x_167, x_10, x_174, x_6, x_7, x_163); +lean_dec(x_7); lean_dec(x_6); -x_184 = !lean_is_exclusive(x_183); -if (x_184 == 0) -{ -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; -x_185 = lean_ctor_get(x_183, 0); -x_186 = lean_ctor_get(x_183, 1); -x_187 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_187); -lean_ctor_set(x_18, 0, x_187); -lean_ctor_set(x_183, 1, x_15); -lean_ctor_set(x_183, 0, x_14); -x_188 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_185); -x_189 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_190 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_190, 0, x_11); -lean_ctor_set(x_190, 1, x_187); -lean_ctor_set(x_190, 2, x_18); -lean_ctor_set(x_190, 3, x_189); -lean_ctor_set(x_190, 4, x_188); -lean_ctor_set_uint8(x_190, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_190, sizeof(void*)*5 + 1, x_10); -x_191 = lean_st_ref_take(x_7, x_186); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = !lean_is_exclusive(x_192); -if (x_194 == 0) -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_195 = lean_ctor_get(x_192, 5); -x_196 = l_Lean_PersistentArray_push___rarg(x_195, x_190); -lean_ctor_set(x_192, 5, x_196); -x_197 = lean_st_ref_set(x_7, x_192, x_193); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -lean_dec(x_199); -x_200 = lean_box(0); -lean_ctor_set(x_197, 0, x_200); -return x_197; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_197, 1); -lean_inc(x_201); -lean_dec(x_197); -x_202 = lean_box(0); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +return x_175; } } -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_204 = lean_ctor_get(x_192, 0); -x_205 = lean_ctor_get(x_192, 1); -x_206 = lean_ctor_get(x_192, 2); -x_207 = lean_ctor_get(x_192, 3); -x_208 = lean_ctor_get(x_192, 4); -x_209 = lean_ctor_get(x_192, 5); -x_210 = lean_ctor_get(x_192, 6); -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_inc(x_204); -lean_dec(x_192); -x_211 = l_Lean_PersistentArray_push___rarg(x_209, x_190); -x_212 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_212, 0, x_204); -lean_ctor_set(x_212, 1, x_205); -lean_ctor_set(x_212, 2, x_206); -lean_ctor_set(x_212, 3, x_207); -lean_ctor_set(x_212, 4, x_208); -lean_ctor_set(x_212, 5, x_211); -lean_ctor_set(x_212, 6, x_210); -x_213 = lean_st_ref_set(x_7, x_212, x_193); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_215 = x_213; -} else { - lean_dec_ref(x_213); - x_215 = lean_box(0); -} -x_216 = lean_box(0); -if (lean_is_scalar(x_215)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_215; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_214); -return x_217; -} -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_218 = lean_ctor_get(x_183, 0); -x_219 = lean_ctor_get(x_183, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_183); -x_220 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_220); -lean_ctor_set(x_18, 0, x_220); -x_221 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_221, 0, x_14); -lean_ctor_set(x_221, 1, x_15); -x_222 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_218); -x_223 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_224 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_224, 0, x_11); -lean_ctor_set(x_224, 1, x_220); -lean_ctor_set(x_224, 2, x_18); -lean_ctor_set(x_224, 3, x_223); -lean_ctor_set(x_224, 4, x_222); -lean_ctor_set_uint8(x_224, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_224, sizeof(void*)*5 + 1, x_10); -x_225 = lean_st_ref_take(x_7, x_219); -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); -x_228 = lean_ctor_get(x_226, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_226, 1); -lean_inc(x_229); -x_230 = lean_ctor_get(x_226, 2); -lean_inc(x_230); -x_231 = lean_ctor_get(x_226, 3); -lean_inc(x_231); -x_232 = lean_ctor_get(x_226, 4); -lean_inc(x_232); -x_233 = lean_ctor_get(x_226, 5); -lean_inc(x_233); -x_234 = lean_ctor_get(x_226, 6); -lean_inc(x_234); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - lean_ctor_release(x_226, 2); - lean_ctor_release(x_226, 3); - lean_ctor_release(x_226, 4); - lean_ctor_release(x_226, 5); - lean_ctor_release(x_226, 6); - x_235 = x_226; -} else { - lean_dec_ref(x_226); - x_235 = lean_box(0); -} -x_236 = l_Lean_PersistentArray_push___rarg(x_233, x_224); -if (lean_is_scalar(x_235)) { - x_237 = lean_alloc_ctor(0, 7, 0); -} else { - x_237 = x_235; -} -lean_ctor_set(x_237, 0, x_228); -lean_ctor_set(x_237, 1, x_229); -lean_ctor_set(x_237, 2, x_230); -lean_ctor_set(x_237, 3, x_231); -lean_ctor_set(x_237, 4, x_232); -lean_ctor_set(x_237, 5, x_236); -lean_ctor_set(x_237, 6, x_234); -x_238 = lean_st_ref_set(x_7, x_237, x_227); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; -} else { - lean_dec_ref(x_238); - x_240 = lean_box(0); -} -x_241 = lean_box(0); -if (lean_is_scalar(x_240)) { - x_242 = lean_alloc_ctor(0, 2, 0); -} else { - x_242 = x_240; -} -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_239); -return x_242; -} -} -else -{ -lean_object* 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_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_243 = lean_ctor_get(x_18, 0); -lean_inc(x_243); -lean_dec(x_18); -x_244 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_247 = x_244; -} else { - lean_dec_ref(x_244); - x_247 = lean_box(0); -} -x_248 = l_Lean_FileMap_toPosition(x_12, x_243); -lean_dec(x_243); -lean_inc(x_248); -x_249 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_249, 0, x_248); -if (lean_is_scalar(x_247)) { - x_250 = lean_alloc_ctor(0, 2, 0); -} else { - x_250 = x_247; -} -lean_ctor_set(x_250, 0, x_14); -lean_ctor_set(x_250, 1, x_15); -x_251 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_245); -x_252 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_253 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_253, 0, x_11); -lean_ctor_set(x_253, 1, x_248); -lean_ctor_set(x_253, 2, x_249); -lean_ctor_set(x_253, 3, x_252); -lean_ctor_set(x_253, 4, x_251); -lean_ctor_set_uint8(x_253, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_253, sizeof(void*)*5 + 1, x_10); -x_254 = lean_st_ref_take(x_7, x_246); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_ctor_get(x_255, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_255, 1); -lean_inc(x_258); -x_259 = lean_ctor_get(x_255, 2); -lean_inc(x_259); -x_260 = lean_ctor_get(x_255, 3); -lean_inc(x_260); -x_261 = lean_ctor_get(x_255, 4); -lean_inc(x_261); -x_262 = lean_ctor_get(x_255, 5); -lean_inc(x_262); -x_263 = lean_ctor_get(x_255, 6); -lean_inc(x_263); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - lean_ctor_release(x_255, 2); - lean_ctor_release(x_255, 3); - lean_ctor_release(x_255, 4); - lean_ctor_release(x_255, 5); - lean_ctor_release(x_255, 6); - x_264 = x_255; -} else { - lean_dec_ref(x_255); - x_264 = lean_box(0); -} -x_265 = l_Lean_PersistentArray_push___rarg(x_262, x_253); -if (lean_is_scalar(x_264)) { - x_266 = lean_alloc_ctor(0, 7, 0); -} else { - x_266 = x_264; -} -lean_ctor_set(x_266, 0, x_257); -lean_ctor_set(x_266, 1, x_258); -lean_ctor_set(x_266, 2, x_259); -lean_ctor_set(x_266, 3, x_260); -lean_ctor_set(x_266, 4, x_261); -lean_ctor_set(x_266, 5, x_265); -lean_ctor_set(x_266, 6, x_263); -x_267 = lean_st_ref_set(x_7, x_266, x_256); -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(0, 2, 0); -} else { - x_271 = x_269; -} -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_268); -return x_271; -} -} -else -{ -lean_object* x_272; uint8_t x_273; -x_272 = lean_ctor_get(x_18, 0); -lean_inc(x_272); -lean_dec(x_18); -x_273 = !lean_is_exclusive(x_19); -if (x_273 == 0) -{ -lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_274 = lean_ctor_get(x_19, 0); -x_275 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) -{ -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; uint8_t x_287; -x_277 = lean_ctor_get(x_275, 0); -x_278 = lean_ctor_get(x_275, 1); -lean_inc(x_12); -x_279 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_280 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_280); -lean_ctor_set(x_275, 1, x_15); -lean_ctor_set(x_275, 0, x_14); -x_281 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_281, 0, x_275); -lean_ctor_set(x_281, 1, x_277); -x_282 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_283 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_283, 0, x_11); -lean_ctor_set(x_283, 1, x_279); -lean_ctor_set(x_283, 2, x_19); -lean_ctor_set(x_283, 3, x_282); -lean_ctor_set(x_283, 4, x_281); -lean_ctor_set_uint8(x_283, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_283, sizeof(void*)*5 + 1, x_10); -x_284 = lean_st_ref_take(x_7, x_278); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); -x_287 = !lean_is_exclusive(x_285); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; -x_288 = lean_ctor_get(x_285, 5); -x_289 = l_Lean_PersistentArray_push___rarg(x_288, x_283); -lean_ctor_set(x_285, 5, x_289); -x_290 = lean_st_ref_set(x_7, x_285, x_286); -x_291 = !lean_is_exclusive(x_290); -if (x_291 == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_290, 0); -lean_dec(x_292); -x_293 = lean_box(0); -lean_ctor_set(x_290, 0, x_293); -return x_290; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_290, 1); -lean_inc(x_294); -lean_dec(x_290); -x_295 = lean_box(0); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_294); -return x_296; -} -} -else -{ -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; -x_297 = lean_ctor_get(x_285, 0); -x_298 = lean_ctor_get(x_285, 1); -x_299 = lean_ctor_get(x_285, 2); -x_300 = lean_ctor_get(x_285, 3); -x_301 = lean_ctor_get(x_285, 4); -x_302 = lean_ctor_get(x_285, 5); -x_303 = lean_ctor_get(x_285, 6); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_285); -x_304 = l_Lean_PersistentArray_push___rarg(x_302, x_283); -x_305 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_305, 0, x_297); -lean_ctor_set(x_305, 1, x_298); -lean_ctor_set(x_305, 2, x_299); -lean_ctor_set(x_305, 3, x_300); -lean_ctor_set(x_305, 4, x_301); -lean_ctor_set(x_305, 5, x_304); -lean_ctor_set(x_305, 6, x_303); -x_306 = lean_st_ref_set(x_7, x_305, x_286); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; -} else { - lean_dec_ref(x_306); - x_308 = lean_box(0); -} -x_309 = lean_box(0); -if (lean_is_scalar(x_308)) { - x_310 = lean_alloc_ctor(0, 2, 0); -} else { - x_310 = x_308; -} -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_307); -return x_310; -} -} -else -{ -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; 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; -x_311 = lean_ctor_get(x_275, 0); -x_312 = lean_ctor_get(x_275, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_275); -lean_inc(x_12); -x_313 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_314 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_314); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_14); -lean_ctor_set(x_315, 1, x_15); -x_316 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_311); -x_317 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_318 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_318, 0, x_11); -lean_ctor_set(x_318, 1, x_313); -lean_ctor_set(x_318, 2, x_19); -lean_ctor_set(x_318, 3, x_317); -lean_ctor_set(x_318, 4, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_318, sizeof(void*)*5 + 1, x_10); -x_319 = lean_st_ref_take(x_7, x_312); -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, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_323); -x_324 = lean_ctor_get(x_320, 2); -lean_inc(x_324); -x_325 = lean_ctor_get(x_320, 3); -lean_inc(x_325); -x_326 = lean_ctor_get(x_320, 4); -lean_inc(x_326); -x_327 = lean_ctor_get(x_320, 5); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 6); -lean_inc(x_328); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - lean_ctor_release(x_320, 2); - lean_ctor_release(x_320, 3); - lean_ctor_release(x_320, 4); - lean_ctor_release(x_320, 5); - lean_ctor_release(x_320, 6); - x_329 = x_320; -} else { - lean_dec_ref(x_320); - x_329 = lean_box(0); -} -x_330 = l_Lean_PersistentArray_push___rarg(x_327, x_318); -if (lean_is_scalar(x_329)) { - x_331 = lean_alloc_ctor(0, 7, 0); -} else { - x_331 = x_329; -} -lean_ctor_set(x_331, 0, x_322); -lean_ctor_set(x_331, 1, x_323); -lean_ctor_set(x_331, 2, x_324); -lean_ctor_set(x_331, 3, x_325); -lean_ctor_set(x_331, 4, x_326); -lean_ctor_set(x_331, 5, x_330); -lean_ctor_set(x_331, 6, x_328); -x_332 = lean_st_ref_set(x_7, x_331, x_321); -x_333 = lean_ctor_get(x_332, 1); -lean_inc(x_333); -if (lean_is_exclusive(x_332)) { - lean_ctor_release(x_332, 0); - lean_ctor_release(x_332, 1); - x_334 = x_332; -} else { - lean_dec_ref(x_332); - x_334 = lean_box(0); -} -x_335 = lean_box(0); -if (lean_is_scalar(x_334)) { - x_336 = lean_alloc_ctor(0, 2, 0); -} else { - x_336 = x_334; -} -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_333); -return x_336; -} -} -else -{ -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; 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_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; 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; -x_337 = lean_ctor_get(x_19, 0); -lean_inc(x_337); -lean_dec(x_19); -x_338 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_341 = x_338; -} else { - lean_dec_ref(x_338); - x_341 = lean_box(0); -} -lean_inc(x_12); -x_342 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_343 = l_Lean_FileMap_toPosition(x_12, x_337); -lean_dec(x_337); -x_344 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_344, 0, x_343); -if (lean_is_scalar(x_341)) { - x_345 = lean_alloc_ctor(0, 2, 0); -} else { - x_345 = x_341; -} -lean_ctor_set(x_345, 0, x_14); -lean_ctor_set(x_345, 1, x_15); -x_346 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_339); -x_347 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_6____closed__4; -x_348 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_348, 0, x_11); -lean_ctor_set(x_348, 1, x_342); -lean_ctor_set(x_348, 2, x_344); -lean_ctor_set(x_348, 3, x_347); -lean_ctor_set(x_348, 4, x_346); -lean_ctor_set_uint8(x_348, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_348, sizeof(void*)*5 + 1, x_10); -x_349 = lean_st_ref_take(x_7, x_340); -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -x_352 = lean_ctor_get(x_350, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_350, 1); -lean_inc(x_353); -x_354 = lean_ctor_get(x_350, 2); -lean_inc(x_354); -x_355 = lean_ctor_get(x_350, 3); -lean_inc(x_355); -x_356 = lean_ctor_get(x_350, 4); -lean_inc(x_356); -x_357 = lean_ctor_get(x_350, 5); -lean_inc(x_357); -x_358 = lean_ctor_get(x_350, 6); -lean_inc(x_358); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - lean_ctor_release(x_350, 2); - lean_ctor_release(x_350, 3); - lean_ctor_release(x_350, 4); - lean_ctor_release(x_350, 5); - lean_ctor_release(x_350, 6); - x_359 = x_350; -} else { - lean_dec_ref(x_350); - x_359 = lean_box(0); -} -x_360 = l_Lean_PersistentArray_push___rarg(x_357, x_348); -if (lean_is_scalar(x_359)) { - x_361 = lean_alloc_ctor(0, 7, 0); -} else { - x_361 = x_359; -} -lean_ctor_set(x_361, 0, x_352); -lean_ctor_set(x_361, 1, x_353); -lean_ctor_set(x_361, 2, x_354); -lean_ctor_set(x_361, 3, x_355); -lean_ctor_set(x_361, 4, x_356); -lean_ctor_set(x_361, 5, x_360); -lean_ctor_set(x_361, 6, x_358); -x_362 = lean_st_ref_set(x_7, x_361, x_351); -x_363 = lean_ctor_get(x_362, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - x_364 = x_362; -} else { - lean_dec_ref(x_362); - x_364 = lean_box(0); -} -x_365 = lean_box(0); -if (lean_is_scalar(x_364)) { - x_366 = lean_alloc_ctor(0, 2, 0); -} else { - x_366 = x_364; -} -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_363); -return x_366; } } } @@ -8245,10 +7966,6 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_5, 5); lean_inc(x_8); x_9 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_8); return x_9; } } @@ -12092,6 +11809,29 @@ lean_dec(x_1); return x_13; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___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: { @@ -12099,10 +11839,6 @@ uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_3); lean_dec(x_3); x_10 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); return x_10; } } @@ -18078,8 +17814,18 @@ l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_compute lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder_assignMVarsIn___spec__1___lambda__1___closed__1); l_Std_Range_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__3___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__3___closed__1(); lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__3___closed__1); +l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__1); +l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__2); +l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__3); +l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___lambda__2___closed__4); l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1(); lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__1); +l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2 = _init_l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2(); +lean_mark_persistent(l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7___closed__2); l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__8___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__8___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__8___lambda__2___closed__1); l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__9___closed__1 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__9___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/LazyDiscrTree.c b/stage0/stdlib/Lean/Meta/LazyDiscrTree.c index dd753a0d22..563ca119c2 100644 --- a/stage0/stdlib/Lean/Meta/LazyDiscrTree.c +++ b/stage0/stdlib/Lean/Meta/LazyDiscrTree.c @@ -16,6 +16,7 @@ extern "C" { static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__11; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__27; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__7; +static lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_isNumeral___closed__4; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_evalLazyEntry___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_LazyDiscrTree_createModuleDiscrTree___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -30,6 +31,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDi uint8_t l_Lean_Meta_DiscrTree_hasNoindexAnnotation(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_InitResults_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_rootKey(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_MatchResult_appendResultsAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_PreDiscrTree_toLazy___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_getKeyArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,7 +96,6 @@ lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_getMatchKeyArgs(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_logImportFailure___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_LazyDiscrTree_MatchResult_size___spec__1(lean_object*); @@ -170,6 +171,7 @@ lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_11 LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_createLocalPreDiscrTree(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_getChildNgen___at_Lean_Meta_LazyDiscrTree_createModuleDiscrTree___spec__1(lean_object*); +static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16; LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_MatchResult_appendResults___rarg(lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -258,6 +260,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_LazyDis LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_createModuleDiscrTree___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_getKeyArgs(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_ImportData_new(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2; static lean_object* l_Lean_Meta_LazyDiscrTree_blacklistInsertion___closed__3; static lean_object* l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__5; lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -285,10 +288,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_PreDiscrTree_instAppendPreDis LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_findModuleMatches(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_MatchResult_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_config___default; +static lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1; lean_object* lean_array_pop(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchResult_push_loop(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_shouldAddAsStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__6; +static lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__12; uint64_t l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1674_(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_getMatchLoop(lean_object*); @@ -296,6 +301,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDi lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_PreDiscrTree_toLazy___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Meta_LazyDiscrTree_PreDiscrTree_append___spec__1(lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Lean_Meta_LazyDiscrTree_Key_hash(lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_evalLazyEntry___spec__7(lean_object*, lean_object*); @@ -345,8 +351,10 @@ extern lean_object* l_Lean_warningAsError; LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_getKeyArgs___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_LazyDiscrTree_isInternalDetail___closed__3; +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2(lean_object*); static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__28; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__31; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___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___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_mkHashMap___at___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_PreDiscrTree_roots___default___spec__1(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_LazyDiscrTree_blacklistInsertion(lean_object*, lean_object*); @@ -519,6 +527,7 @@ static lean_object* l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree_go___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__2(lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_reprKey____x40_Lean_Meta_LazyDiscrTree___hyg_367____closed__30; +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___boxed(lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_LazyDiscrTree_createLocalPreDiscrTree___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_logImportFailure___at_Lean_Meta_LazyDiscrTree_createModuleDiscrTree___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -614,12 +623,14 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); lean_object* l_String_drop(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree_go(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2; static lean_object* l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__6; static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_tmpMVarId___closed__1; lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_combineGet___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_toNatLit_x3f(lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqLiteral____x40_Lean_Expr___hyg_31_(lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_findMatches___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_LazyDiscrTree_logImportFailure(lean_object*); static lean_object* l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_MatchClone_isNumeral___closed__6; @@ -15221,7 +15232,7 @@ x_15 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstIm x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); x_17 = lean_st_mk_ref(x_3, x_11); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) @@ -15365,7 +15376,7 @@ return x_48; } 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; 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_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; uint8_t 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; x_49 = lean_ctor_get(x_9, 0); x_50 = lean_ctor_get(x_9, 1); x_51 = lean_ctor_get(x_9, 3); @@ -15375,6 +15386,9 @@ x_54 = lean_ctor_get(x_9, 7); x_55 = lean_ctor_get(x_9, 8); x_56 = lean_ctor_get(x_9, 9); x_57 = lean_ctor_get(x_9, 10); +x_58 = lean_ctor_get(x_9, 11); +x_59 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); @@ -15385,99 +15399,101 @@ lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_dec(x_9); -x_58 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1___closed__1; -x_59 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_58); -x_60 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_50); -lean_ctor_set(x_60, 2, x_1); -lean_ctor_set(x_60, 3, x_51); -lean_ctor_set(x_60, 4, x_59); -lean_ctor_set(x_60, 5, x_52); -lean_ctor_set(x_60, 6, x_53); -lean_ctor_set(x_60, 7, x_54); -lean_ctor_set(x_60, 8, x_55); -lean_ctor_set(x_60, 9, x_56); -lean_ctor_set(x_60, 10, x_57); -lean_ctor_set_uint8(x_60, sizeof(void*)*11, x_2); -x_61 = lean_st_mk_ref(x_3, x_11); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_64 = x_61; +x_60 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1___closed__1; +x_61 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_60); +x_62 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_62, 0, x_49); +lean_ctor_set(x_62, 1, x_50); +lean_ctor_set(x_62, 2, x_1); +lean_ctor_set(x_62, 3, x_51); +lean_ctor_set(x_62, 4, x_61); +lean_ctor_set(x_62, 5, x_52); +lean_ctor_set(x_62, 6, x_53); +lean_ctor_set(x_62, 7, x_54); +lean_ctor_set(x_62, 8, x_55); +lean_ctor_set(x_62, 9, x_56); +lean_ctor_set(x_62, 10, x_57); +lean_ctor_set(x_62, 11, x_58); +lean_ctor_set_uint8(x_62, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_62, sizeof(void*)*12 + 1, x_59); +x_63 = lean_st_mk_ref(x_3, x_11); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_61); - x_64 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -lean_inc(x_62); -x_65 = lean_apply_7(x_4, x_5, x_6, x_7, x_62, x_60, x_10, x_63); -if (lean_obj_tag(x_65) == 0) +lean_inc(x_64); +x_67 = lean_apply_7(x_4, x_5, x_6, x_7, x_64, x_62, x_10, x_65); +if (lean_obj_tag(x_67) == 0) { -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_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_st_ref_get(x_62, x_67); -lean_dec(x_62); -x_69 = lean_ctor_get(x_68, 0); +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_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; +lean_dec(x_67); +x_70 = lean_st_ref_get(x_64, x_69); +lean_dec(x_64); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_73 = x_70; } else { - lean_dec_ref(x_68); - x_71 = lean_box(0); + lean_dec_ref(x_70); + x_73 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_72 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_74 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_64; + x_74 = x_66; } -lean_ctor_set(x_72, 0, x_66); -lean_ctor_set(x_72, 1, x_69); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_71); +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_73 = x_71; + x_75 = x_73; } -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_70); -return x_73; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_66); lean_dec(x_64); -lean_dec(x_62); -x_74 = lean_ctor_get(x_65, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_65, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_76 = x_65; +x_76 = lean_ctor_get(x_67, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_67, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_78 = x_67; } else { - lean_dec_ref(x_65); - x_76 = lean_box(0); + lean_dec_ref(x_67); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } } @@ -15673,6 +15689,18 @@ return x_3; static lean_object* _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__14() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__6; +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___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15() { +_start: +{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; x_2 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__2; @@ -15684,7 +15712,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15() { +static lean_object* _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16() { _start: { lean_object* x_1; @@ -15727,314 +15755,315 @@ x_79 = l_Lean_Meta_LazyDiscrTree_Cache_empty(x_71); x_80 = lean_st_ref_set(x_1, x_79, x_70); if (lean_obj_tag(x_80) == 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; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; +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; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); lean_dec(x_80); x_82 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__13; x_83 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__14; -x_84 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_84, 0, x_2); -lean_ctor_set(x_84, 1, x_82); -lean_ctor_set(x_84, 2, x_71); -lean_ctor_set(x_84, 3, x_76); -lean_ctor_set(x_84, 4, x_72); -lean_ctor_set(x_84, 5, x_76); -lean_ctor_set(x_84, 6, x_83); -x_85 = lean_st_mk_ref(x_84, x_81); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); +x_84 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15; +x_85 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_85, 0, x_2); +lean_ctor_set(x_85, 1, x_82); +lean_ctor_set(x_85, 2, x_71); +lean_ctor_set(x_85, 3, x_76); +lean_ctor_set(x_85, 4, x_72); +lean_ctor_set(x_85, 5, x_83); +lean_ctor_set(x_85, 6, x_84); +x_86 = lean_st_mk_ref(x_85, x_81); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_3, 2); +x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); -x_89 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15; -x_90 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_88, x_89); -x_91 = lean_st_ref_get(x_86, x_87); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); +lean_dec(x_86); +x_89 = lean_ctor_get(x_3, 2); +lean_inc(x_89); +x_90 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16; +x_91 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_89, x_90); +x_92 = lean_st_ref_get(x_87, x_88); +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_ctor_get(x_92, 0); +x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); lean_dec(x_92); -x_95 = l_Lean_Kernel_isDiagnosticsEnabled(x_94); -lean_dec(x_94); -if (x_95 == 0) +x_95 = lean_ctor_get(x_93, 0); +lean_inc(x_95); +lean_dec(x_93); +x_96 = l_Lean_Kernel_isDiagnosticsEnabled(x_95); +lean_dec(x_95); +if (x_96 == 0) { -if (x_90 == 0) -{ -uint8_t x_167; -x_167 = 1; -x_96 = x_167; -goto block_166; -} -else +if (x_91 == 0) { uint8_t x_168; -x_168 = 0; -x_96 = x_168; -goto block_166; -} +x_168 = 1; +x_97 = x_168; +goto block_167; } else { -if (x_90 == 0) -{ uint8_t x_169; x_169 = 0; -x_96 = x_169; -goto block_166; +x_97 = x_169; +goto block_167; +} } else { +if (x_91 == 0) +{ uint8_t x_170; -x_170 = 1; -x_96 = x_170; -goto block_166; +x_170 = 0; +x_97 = x_170; +goto block_167; +} +else +{ +uint8_t x_171; +x_171 = 1; +x_97 = x_171; +goto block_167; } } -block_166: +block_167: { -if (x_96 == 0) +if (x_97 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_97 = lean_st_ref_take(x_86, x_93); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = lean_st_ref_take(x_87, x_94); +x_99 = lean_ctor_get(x_98, 0); lean_inc(x_99); -lean_dec(x_97); -x_100 = !lean_is_exclusive(x_98); -if (x_100 == 0) +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = !lean_is_exclusive(x_99); +if (x_101 == 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; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_101 = lean_ctor_get(x_98, 0); -x_102 = lean_ctor_get(x_98, 4); -lean_dec(x_102); -x_103 = l_Lean_Kernel_enableDiag(x_101, x_90); -x_104 = l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__4; -lean_ctor_set(x_98, 4, x_104); -lean_ctor_set(x_98, 0, x_103); -x_105 = lean_st_ref_set(x_86, x_98, x_99); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); -x_107 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; -x_108 = lean_box(0); -lean_inc(x_86); +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_102 = lean_ctor_get(x_99, 0); +x_103 = lean_ctor_get(x_99, 4); +lean_dec(x_103); +x_104 = l_Lean_Kernel_enableDiag(x_102, x_91); +x_105 = l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__4; +lean_ctor_set(x_99, 4, x_105); +lean_ctor_set(x_99, 0, x_104); +x_106 = lean_st_ref_set(x_87, x_99, x_100); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec(x_106); +x_108 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; +x_109 = lean_box(0); +lean_inc(x_87); lean_inc(x_5); -x_109 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_88, x_90, x_78, x_4, x_5, x_6, x_107, x_108, x_3, x_86, x_106); -if (lean_obj_tag(x_109) == 0) +x_110 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_89, x_91, x_78, x_4, x_5, x_6, x_108, x_109, x_3, x_87, x_107); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_st_ref_get(x_86, x_111); -lean_dec(x_86); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_st_ref_get(x_87, x_112); +lean_dec(x_87); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_112, 0); -x_115 = lean_ctor_get(x_112, 1); -lean_ctor_set(x_112, 1, x_114); -lean_ctor_set(x_112, 0, x_110); -x_116 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_116, 0, x_112); -x_12 = x_116; -x_13 = x_115; +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); +lean_ctor_set(x_113, 1, x_115); +lean_ctor_set(x_113, 0, x_111); +x_117 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_117, 0, x_113); +x_12 = x_117; +x_13 = x_116; goto block_67; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_112, 0); -x_118 = lean_ctor_get(x_112, 1); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_113, 0); +x_119 = lean_ctor_get(x_113, 1); +lean_inc(x_119); lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_112); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_110); -lean_ctor_set(x_119, 1, x_117); -x_120 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_120, 0, x_119); -x_12 = x_120; -x_13 = x_118; +lean_dec(x_113); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_111); +lean_ctor_set(x_120, 1, x_118); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +x_12 = x_121; +x_13 = x_119; goto block_67; } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_86); -x_121 = lean_ctor_get(x_109, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_109, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_87); +x_122 = lean_ctor_get(x_110, 0); lean_inc(x_122); -lean_dec(x_109); -x_123 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_123, 0, x_121); -x_12 = x_123; -x_13 = x_122; +x_123 = lean_ctor_get(x_110, 1); +lean_inc(x_123); +lean_dec(x_110); +x_124 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_124, 0, x_122); +x_12 = x_124; +x_13 = x_123; goto block_67; } } 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; -x_124 = lean_ctor_get(x_98, 0); -x_125 = lean_ctor_get(x_98, 1); -x_126 = lean_ctor_get(x_98, 2); -x_127 = lean_ctor_get(x_98, 3); -x_128 = lean_ctor_get(x_98, 5); -x_129 = lean_ctor_get(x_98, 6); +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_125 = lean_ctor_get(x_99, 0); +x_126 = lean_ctor_get(x_99, 1); +x_127 = lean_ctor_get(x_99, 2); +x_128 = lean_ctor_get(x_99, 3); +x_129 = lean_ctor_get(x_99, 5); +x_130 = lean_ctor_get(x_99, 6); +lean_inc(x_130); lean_inc(x_129); lean_inc(x_128); lean_inc(x_127); lean_inc(x_126); lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_98); -x_130 = l_Lean_Kernel_enableDiag(x_124, x_90); -x_131 = l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__4; -x_132 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_125); -lean_ctor_set(x_132, 2, x_126); -lean_ctor_set(x_132, 3, x_127); -lean_ctor_set(x_132, 4, x_131); -lean_ctor_set(x_132, 5, x_128); -lean_ctor_set(x_132, 6, x_129); -x_133 = lean_st_ref_set(x_86, x_132, x_99); -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -lean_dec(x_133); -x_135 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; -x_136 = lean_box(0); -lean_inc(x_86); +lean_dec(x_99); +x_131 = l_Lean_Kernel_enableDiag(x_125, x_91); +x_132 = l_Lean_Meta_LazyDiscrTree_Cache_empty___closed__4; +x_133 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_126); +lean_ctor_set(x_133, 2, x_127); +lean_ctor_set(x_133, 3, x_128); +lean_ctor_set(x_133, 4, x_132); +lean_ctor_set(x_133, 5, x_129); +lean_ctor_set(x_133, 6, x_130); +x_134 = lean_st_ref_set(x_87, x_133, x_100); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +x_136 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; +x_137 = lean_box(0); +lean_inc(x_87); lean_inc(x_5); -x_137 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_88, x_90, x_78, x_4, x_5, x_6, x_135, x_136, x_3, x_86, x_134); -if (lean_obj_tag(x_137) == 0) +x_138 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_89, x_91, x_78, x_4, x_5, x_6, x_136, x_137, x_3, x_87, x_135); +if (lean_obj_tag(x_138) == 0) { -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; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); +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_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -lean_dec(x_137); -x_140 = lean_st_ref_get(x_86, x_139); -lean_dec(x_86); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = lean_st_ref_get(x_87, x_140); +lean_dec(x_87); +x_142 = lean_ctor_get(x_141, 0); lean_inc(x_142); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_143 = x_140; +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_144 = x_141; } else { - lean_dec_ref(x_140); - x_143 = lean_box(0); + lean_dec_ref(x_141); + x_144 = lean_box(0); } -if (lean_is_scalar(x_143)) { - x_144 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 2, 0); } else { - x_144 = x_143; + x_145 = x_144; } -lean_ctor_set(x_144, 0, x_138); -lean_ctor_set(x_144, 1, x_141); -x_145 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_145, 0, x_144); -x_12 = x_145; -x_13 = x_142; +lean_ctor_set(x_145, 0, x_139); +lean_ctor_set(x_145, 1, x_142); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_145); +x_12 = x_146; +x_13 = x_143; goto block_67; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_dec(x_86); -x_146 = lean_ctor_get(x_137, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_137, 1); +lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_87); +x_147 = lean_ctor_get(x_138, 0); lean_inc(x_147); -lean_dec(x_137); -x_148 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_148, 0, x_146); -x_12 = x_148; -x_13 = x_147; +x_148 = lean_ctor_get(x_138, 1); +lean_inc(x_148); +lean_dec(x_138); +x_149 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_149, 0, x_147); +x_12 = x_149; +x_13 = x_148; goto block_67; } } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; -x_150 = lean_box(0); -lean_inc(x_86); +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__12; +x_151 = lean_box(0); +lean_inc(x_87); lean_inc(x_5); -x_151 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_88, x_90, x_78, x_4, x_5, x_6, x_149, x_150, x_3, x_86, x_93); -if (lean_obj_tag(x_151) == 0) +x_152 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__1(x_89, x_91, x_78, x_4, x_5, x_6, x_150, x_151, x_3, x_87, x_94); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); +lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; +x_153 = lean_ctor_get(x_152, 0); lean_inc(x_153); -lean_dec(x_151); -x_154 = lean_st_ref_get(x_86, x_153); -lean_dec(x_86); -x_155 = !lean_is_exclusive(x_154); -if (x_155 == 0) +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = lean_st_ref_get(x_87, x_154); +lean_dec(x_87); +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_154, 0); -x_157 = lean_ctor_get(x_154, 1); -lean_ctor_set(x_154, 1, x_156); -lean_ctor_set(x_154, 0, x_152); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_154); -x_12 = x_158; -x_13 = x_157; +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_155, 0); +x_158 = lean_ctor_get(x_155, 1); +lean_ctor_set(x_155, 1, x_157); +lean_ctor_set(x_155, 0, x_153); +x_159 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_159, 0, x_155); +x_12 = x_159; +x_13 = x_158; goto block_67; } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_159 = lean_ctor_get(x_154, 0); -x_160 = lean_ctor_get(x_154, 1); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_160 = lean_ctor_get(x_155, 0); +x_161 = lean_ctor_get(x_155, 1); +lean_inc(x_161); lean_inc(x_160); -lean_inc(x_159); -lean_dec(x_154); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_152); -lean_ctor_set(x_161, 1, x_159); -x_162 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_162, 0, x_161); -x_12 = x_162; -x_13 = x_160; +lean_dec(x_155); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_153); +lean_ctor_set(x_162, 1, x_160); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_162); +x_12 = x_163; +x_13 = x_161; goto block_67; } } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_86); -x_163 = lean_ctor_get(x_151, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_151, 1); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_87); +x_164 = lean_ctor_get(x_152, 0); lean_inc(x_164); -lean_dec(x_151); -x_165 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_165, 0, x_163); -x_12 = x_165; -x_13 = x_164; +x_165 = lean_ctor_get(x_152, 1); +lean_inc(x_165); +lean_dec(x_152); +x_166 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_166, 0, x_164); +x_12 = x_166; +x_13 = x_165; goto block_67; } } @@ -16042,7 +16071,7 @@ goto block_67; } else { -uint8_t x_171; +uint8_t x_172; lean_dec(x_78); lean_dec(x_72); lean_dec(x_71); @@ -16053,29 +16082,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_171 = !lean_is_exclusive(x_80); -if (x_171 == 0) +x_172 = !lean_is_exclusive(x_80); +if (x_172 == 0) { return x_80; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_80, 0); -x_173 = lean_ctor_get(x_80, 1); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_80, 0); +x_174 = lean_ctor_get(x_80, 1); +lean_inc(x_174); lean_inc(x_173); -lean_inc(x_172); lean_dec(x_80); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_172); -lean_ctor_set(x_174, 1, x_173); -return x_174; +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } } else { -uint8_t x_175; +uint8_t x_176; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -16083,23 +16112,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_175 = !lean_is_exclusive(x_68); -if (x_175 == 0) +x_176 = !lean_is_exclusive(x_68); +if (x_176 == 0) { return x_68; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_176 = lean_ctor_get(x_68, 0); -x_177 = lean_ctor_get(x_68, 1); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_68, 0); +x_178 = lean_ctor_get(x_68, 1); +lean_inc(x_178); lean_inc(x_177); -lean_inc(x_176); lean_dec(x_68); -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; +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +return x_179; } } block_67: @@ -18652,69 +18681,79 @@ uint8_t x_2; x_2 = !lean_is_exclusive(x_1); if (x_2 == 0) { -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_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; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_3 = lean_ctor_get(x_1, 2); -x_4 = lean_ctor_get(x_1, 10); +x_4 = lean_ctor_get(x_1, 11); lean_dec(x_4); -x_5 = lean_ctor_get(x_1, 9); +x_5 = lean_ctor_get(x_1, 10); lean_dec(x_5); -x_6 = lean_ctor_get(x_1, 8); +x_6 = lean_ctor_get(x_1, 9); lean_dec(x_6); -x_7 = lean_ctor_get(x_1, 7); +x_7 = lean_ctor_get(x_1, 8); lean_dec(x_7); -x_8 = lean_ctor_get(x_1, 6); +x_8 = lean_ctor_get(x_1, 7); lean_dec(x_8); -x_9 = lean_ctor_get(x_1, 3); +x_9 = lean_ctor_get(x_1, 6); lean_dec(x_9); -x_10 = lean_box(0); -x_11 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15; -x_12 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_11); -x_13 = lean_unsigned_to_nat(0u); +x_10 = lean_ctor_get(x_1, 3); +lean_dec(x_10); +x_11 = lean_box(0); +x_12 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16; +x_13 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_3, x_12); x_14 = lean_box(0); -x_15 = l_Lean_firstFrontendMacroScope; -lean_ctor_set(x_1, 10, x_15); -lean_ctor_set(x_1, 9, x_13); -lean_ctor_set(x_1, 8, x_13); -lean_ctor_set(x_1, 7, x_10); -lean_ctor_set(x_1, 6, x_14); -lean_ctor_set(x_1, 3, x_13); -lean_ctor_set_uint8(x_1, sizeof(void*)*11, x_12); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_box(0); +x_17 = l_Lean_firstFrontendMacroScope; +x_18 = 0; +lean_ctor_set(x_1, 11, x_14); +lean_ctor_set(x_1, 10, x_17); +lean_ctor_set(x_1, 9, x_15); +lean_ctor_set(x_1, 8, x_15); +lean_ctor_set(x_1, 7, x_11); +lean_ctor_set(x_1, 6, x_16); +lean_ctor_set(x_1, 3, x_15); +lean_ctor_set_uint8(x_1, sizeof(void*)*12, x_13); +lean_ctor_set_uint8(x_1, sizeof(void*)*12 + 1, x_18); return x_1; } else { -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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_16 = lean_ctor_get(x_1, 0); -x_17 = lean_ctor_get(x_1, 1); -x_18 = lean_ctor_get(x_1, 2); -x_19 = lean_ctor_get(x_1, 4); -x_20 = lean_ctor_get(x_1, 5); +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; uint8_t 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; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 4); +x_23 = lean_ctor_get(x_1, 5); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); lean_dec(x_1); -x_21 = lean_box(0); -x_22 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15; -x_23 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_18, x_22); -x_24 = lean_unsigned_to_nat(0u); -x_25 = lean_box(0); -x_26 = l_Lean_firstFrontendMacroScope; -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_16); -lean_ctor_set(x_27, 1, x_17); -lean_ctor_set(x_27, 2, x_18); -lean_ctor_set(x_27, 3, x_24); -lean_ctor_set(x_27, 4, x_19); -lean_ctor_set(x_27, 5, x_20); -lean_ctor_set(x_27, 6, x_25); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_24); -lean_ctor_set(x_27, 9, x_24); -lean_ctor_set(x_27, 10, x_26); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_23); -return x_27; +x_24 = lean_box(0); +x_25 = l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16; +x_26 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_21, x_25); +x_27 = lean_box(0); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_box(0); +x_30 = l_Lean_firstFrontendMacroScope; +x_31 = 0; +x_32 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_20); +lean_ctor_set(x_32, 2, x_21); +lean_ctor_set(x_32, 3, x_28); +lean_ctor_set(x_32, 4, x_22); +lean_ctor_set(x_32, 5, x_23); +lean_ctor_set(x_32, 6, x_29); +lean_ctor_set(x_32, 7, x_24); +lean_ctor_set(x_32, 8, x_28); +lean_ctor_set(x_32, 9, x_28); +lean_ctor_set(x_32, 10, x_30); +lean_ctor_set(x_32, 11, x_27); +lean_ctor_set_uint8(x_32, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*12 + 1, x_31); +return x_32; } } } @@ -19012,10 +19051,228 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_LazyDiscrTree_0__Lean_Met return x_2; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -19023,1304 +19280,796 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7(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) { _start: { -lean_object* x_9; uint8_t x_375; uint8_t x_376; -x_375 = 2; -x_376 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_375); -if (x_376 == 0) +lean_object* x_9; uint8_t x_184; uint8_t x_185; +x_184 = 2; +x_185 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_184); +if (x_185 == 0) { -lean_object* x_377; -x_377 = lean_box(0); -x_9 = x_377; -goto block_374; +lean_object* x_186; +x_186 = lean_box(0); +x_9 = x_186; +goto block_183; } else { -lean_object* x_378; uint8_t x_379; +lean_object* x_187; uint8_t x_188; lean_inc(x_2); -x_378 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_379 = lean_unbox(x_378); -lean_dec(x_378); -if (x_379 == 0) +x_187 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_188 = lean_unbox(x_187); +lean_dec(x_187); +if (x_188 == 0) { -lean_object* x_380; -x_380 = lean_box(0); -x_9 = x_380; -goto block_374; +lean_object* x_189; +x_189 = lean_box(0); +x_9 = x_189; +goto block_183; } else { -lean_object* x_381; lean_object* x_382; +lean_object* x_190; lean_object* x_191; +lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -x_381 = lean_box(0); -x_382 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_382, 0, x_381); -lean_ctor_set(x_382, 1, x_8); -return x_382; +lean_dec(x_1); +x_190 = lean_box(0); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_8); +return x_191; } } -block_374: +block_183: { -uint8_t x_10; lean_object* x_368; uint8_t x_369; uint8_t x_370; +uint8_t x_10; lean_object* x_177; uint8_t x_178; uint8_t x_179; lean_dec(x_9); -x_368 = lean_ctor_get(x_6, 2); -lean_inc(x_368); -x_369 = 1; -x_370 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_369); -if (x_370 == 0) +x_177 = lean_ctor_get(x_6, 2); +lean_inc(x_177); +x_178 = 1; +x_179 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_178); +if (x_179 == 0) { -lean_dec(x_368); +lean_dec(x_177); x_10 = x_3; -goto block_367; +goto block_176; } else { -lean_object* x_371; uint8_t x_372; -x_371 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; -x_372 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_368, x_371); -lean_dec(x_368); -if (x_372 == 0) +lean_object* x_180; uint8_t x_181; +x_180 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2; +x_181 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_177, x_180); +lean_dec(x_177); +if (x_181 == 0) { x_10 = x_3; -goto block_367; +goto block_176; } else { -uint8_t x_373; -x_373 = 2; -x_10 = x_373; -goto block_367; +uint8_t x_182; +x_182 = 2; +x_10 = x_182; +goto block_176; } } -block_367: +block_176: { -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; lean_object* x_18; lean_object* x_19; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); x_13 = lean_ctor_get(x_6, 5); lean_inc(x_13); -x_14 = lean_ctor_get(x_6, 6); -lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 7); -lean_inc(x_15); -x_16 = l_Lean_replaceRef(x_1, x_13); +x_14 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_15 = l_Lean_replaceRef(x_1, x_13); lean_dec(x_13); -x_17 = 0; -x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); -x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +lean_dec(x_1); +x_16 = 0; +x_17 = l_Lean_Syntax_getPos_x3f(x_15, x_16); +x_18 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ if (lean_obj_tag(x_18) == 0) { -if (lean_obj_tag(x_19) == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_FileMap_toPosition(x_12, x_23); +lean_inc(x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +if (x_14 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_19); +x_26 = lean_box(0); +x_27 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_21, x_11, x_24, x_25, x_10, x_26, x_6, x_7, x_22); +lean_dec(x_7); lean_dec(x_6); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +return x_27; +} +else { -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; uint8_t x_33; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Lean_FileMap_toPosition(x_12, x_24); -lean_inc(x_25); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_20, 1, x_15); -lean_ctor_set(x_20, 0, x_14); -x_27 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_22); -x_28 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_29 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_28); -lean_ctor_set(x_29, 4, x_27); -lean_ctor_set_uint8(x_29, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_29, sizeof(void*)*5 + 1, x_10); -x_30 = lean_st_ref_take(x_7, x_23); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_21); +x_29 = l_Lean_MessageData_hasTag(x_28, x_21); +if (x_29 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = lean_ctor_get(x_31, 5); -x_35 = l_Lean_PersistentArray_push___rarg(x_34, x_29); -lean_ctor_set(x_31, 5, x_35); -x_36 = lean_st_ref_set(x_7, x_31, x_32); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_30; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_30 = lean_box(0); +lean_ctor_set(x_19, 0, x_30); +return x_19; +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_free_object(x_19); +x_31 = lean_box(0); +x_32 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_21, x_11, x_24, x_25, x_10, x_31, x_6, x_7, x_22); +lean_dec(x_7); +lean_dec(x_6); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_FileMap_toPosition(x_12, x_35); +lean_inc(x_36); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +if (x_14 == 0) { lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = lean_box(0); -lean_ctor_set(x_36, 0, x_39); -return x_36; +x_38 = lean_box(0); +x_39 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_33, x_11, x_36, x_37, x_10, x_38, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_33); +x_41 = l_Lean_MessageData_hasTag(x_40, x_33); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_37); lean_dec(x_36); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_33); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_34); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +x_45 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_33, x_11, x_36, x_37, x_10, x_44, x_6, x_7, x_34); +lean_dec(x_7); +lean_dec(x_6); +return x_45; +} +} } } else { -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; -x_43 = lean_ctor_get(x_31, 0); -x_44 = lean_ctor_get(x_31, 1); -x_45 = lean_ctor_get(x_31, 2); -x_46 = lean_ctor_get(x_31, 3); -x_47 = lean_ctor_get(x_31, 4); -x_48 = lean_ctor_get(x_31, 5); -x_49 = lean_ctor_get(x_31, 6); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_31); -x_50 = l_Lean_PersistentArray_push___rarg(x_48, x_29); -x_51 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_51, 0, x_43); -lean_ctor_set(x_51, 1, x_44); -lean_ctor_set(x_51, 2, x_45); -lean_ctor_set(x_51, 3, x_46); -lean_ctor_set(x_51, 4, x_47); -lean_ctor_set(x_51, 5, x_50); -lean_ctor_set(x_51, 6, x_49); -x_52 = lean_st_ref_set(x_7, x_51, x_32); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_54 = x_52; -} else { - lean_dec_ref(x_52); - x_54 = lean_box(0); -} +uint8_t x_46; +x_46 = !lean_is_exclusive(x_18); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_18, 0); +x_48 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_48, 1); +x_52 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_53 = l_Lean_FileMap_toPosition(x_12, x_52); +x_54 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_54); +if (x_14 == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_free_object(x_48); x_55 = lean_box(0); -if (lean_is_scalar(x_54)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_54; -} -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); +x_56 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_50, x_11, x_53, x_18, x_10, x_55, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); return x_56; } -} else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_57 = lean_ctor_get(x_20, 0); -x_58 = lean_ctor_get(x_20, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_20); -x_59 = lean_unsigned_to_nat(0u); -x_60 = l_Lean_FileMap_toPosition(x_12, x_59); -lean_inc(x_60); -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_14); -lean_ctor_set(x_62, 1, x_15); -x_63 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_57); -x_64 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_65 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_65, 0, x_11); -lean_ctor_set(x_65, 1, x_60); -lean_ctor_set(x_65, 2, x_61); -lean_ctor_set(x_65, 3, x_64); -lean_ctor_set(x_65, 4, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_65, sizeof(void*)*5 + 1, x_10); -x_66 = lean_st_ref_take(x_7, x_58); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -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); -x_71 = lean_ctor_get(x_67, 2); -lean_inc(x_71); -x_72 = lean_ctor_get(x_67, 3); -lean_inc(x_72); -x_73 = lean_ctor_get(x_67, 4); -lean_inc(x_73); -x_74 = lean_ctor_get(x_67, 5); -lean_inc(x_74); -x_75 = lean_ctor_get(x_67, 6); -lean_inc(x_75); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - lean_ctor_release(x_67, 2); - lean_ctor_release(x_67, 3); - lean_ctor_release(x_67, 4); - lean_ctor_release(x_67, 5); - lean_ctor_release(x_67, 6); - x_76 = x_67; -} else { - lean_dec_ref(x_67); - x_76 = lean_box(0); -} -x_77 = l_Lean_PersistentArray_push___rarg(x_74, x_65); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 7, 0); -} else { - x_78 = x_76; -} -lean_ctor_set(x_78, 0, x_69); -lean_ctor_set(x_78, 1, x_70); -lean_ctor_set(x_78, 2, x_71); -lean_ctor_set(x_78, 3, x_72); -lean_ctor_set(x_78, 4, x_73); -lean_ctor_set(x_78, 5, x_77); -lean_ctor_set(x_78, 6, x_75); -x_79 = lean_st_ref_set(x_7, x_78, x_68); -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_box(0); -if (lean_is_scalar(x_81)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_81; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; -} -} -else +lean_object* x_57; uint8_t x_58; +x_57 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_50); +x_58 = l_Lean_MessageData_hasTag(x_57, x_50); +if (x_58 == 0) { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_19); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_19, 0); -x_86 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_59; +lean_dec(x_18); +lean_dec(x_53); +lean_dec(x_50); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_6); -x_87 = !lean_is_exclusive(x_86); +x_59 = lean_box(0); +lean_ctor_set(x_48, 0, x_59); +return x_48; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_free_object(x_48); +x_60 = lean_box(0); +x_61 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_50, x_11, x_53, x_18, x_10, x_60, x_6, x_7, x_51); +lean_dec(x_7); +lean_dec(x_6); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_48, 0); +x_63 = lean_ctor_get(x_48, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_48); +x_64 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_65 = l_Lean_FileMap_toPosition(x_12, x_64); +x_66 = l_Lean_FileMap_toPosition(x_12, x_47); +lean_dec(x_47); +lean_ctor_set(x_18, 0, x_66); +if (x_14 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_62, x_11, x_65, x_18, x_10, x_67, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_68; +} +else +{ +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_62); +x_70 = l_Lean_MessageData_hasTag(x_69, x_62); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_18); +lean_dec(x_65); +lean_dec(x_62); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_63); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_box(0); +x_74 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_62, x_11, x_65, x_18, x_10, x_73, x_6, x_7, x_63); +lean_dec(x_7); +lean_dec(x_6); +return x_74; +} +} +} +} +else +{ +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; +x_75 = lean_ctor_get(x_18, 0); +lean_inc(x_75); +lean_dec(x_18); +x_76 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +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; +} else { + lean_dec_ref(x_76); + x_79 = lean_box(0); +} +x_80 = lean_unsigned_to_nat(0u); +lean_inc(x_12); +x_81 = l_Lean_FileMap_toPosition(x_12, x_80); +x_82 = l_Lean_FileMap_toPosition(x_12, x_75); +lean_dec(x_75); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +if (x_14 == 0) +{ +lean_object* x_84; lean_object* x_85; +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_77, x_11, x_81, x_83, x_10, x_84, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_85; +} +else +{ +lean_object* x_86; uint8_t x_87; +x_86 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_77); +x_87 = l_Lean_MessageData_hasTag(x_86, x_77); 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; 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_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -x_90 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_91 = l_Lean_FileMap_toPosition(x_12, x_90); -x_92 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_92); -lean_ctor_set(x_86, 1, x_15); -lean_ctor_set(x_86, 0, x_14); -x_93 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_93, 0, x_86); -lean_ctor_set(x_93, 1, x_88); -x_94 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_95 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_95, 0, x_11); -lean_ctor_set(x_95, 1, x_91); -lean_ctor_set(x_95, 2, x_19); -lean_ctor_set(x_95, 3, x_94); -lean_ctor_set(x_95, 4, x_93); -lean_ctor_set_uint8(x_95, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_95, sizeof(void*)*5 + 1, x_10); -x_96 = lean_st_ref_take(x_7, x_89); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = !lean_is_exclusive(x_97); -if (x_99 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_83); +lean_dec(x_81); +lean_dec(x_77); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_88 = lean_box(0); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_78); +return x_89; +} +else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_100 = lean_ctor_get(x_97, 5); -x_101 = l_Lean_PersistentArray_push___rarg(x_100, x_95); -lean_ctor_set(x_97, 5, x_101); -x_102 = lean_st_ref_set(x_7, x_97, x_98); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +lean_object* x_90; lean_object* x_91; +lean_dec(x_79); +x_90 = lean_box(0); +x_91 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_77, x_11, x_81, x_83, x_10, x_90, x_6, x_7, x_78); +lean_dec(x_7); +lean_dec(x_6); +return x_91; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_17); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_17, 0); +x_94 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_95 = !lean_is_exclusive(x_94); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_94, 0); +x_97 = lean_ctor_get(x_94, 1); +x_98 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_98); +lean_ctor_set(x_17, 0, x_98); +if (x_14 == 0) +{ +lean_object* x_99; lean_object* x_100; +lean_free_object(x_94); +x_99 = lean_box(0); +x_100 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_96, x_11, x_98, x_17, x_10, x_99, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_100; +} +else +{ +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_96); +x_102 = l_Lean_MessageData_hasTag(x_101, x_96); +if (x_102 == 0) +{ +lean_object* x_103; +lean_dec(x_17); +lean_dec(x_98); +lean_dec(x_96); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_103 = lean_box(0); +lean_ctor_set(x_94, 0, x_103); +return x_94; +} +else { lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_102, 0); -lean_dec(x_104); -x_105 = lean_box(0); -lean_ctor_set(x_102, 0, x_105); -return x_102; +lean_free_object(x_94); +x_104 = lean_box(0); +x_105 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_96, x_11, x_98, x_17, x_10, x_104, x_6, x_7, x_97); +lean_dec(x_7); +lean_dec(x_6); +return x_105; +} +} } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_102, 1); +x_106 = lean_ctor_get(x_94, 0); +x_107 = lean_ctor_get(x_94, 1); +lean_inc(x_107); lean_inc(x_106); -lean_dec(x_102); -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_dec(x_94); +x_108 = l_Lean_FileMap_toPosition(x_12, x_93); +lean_dec(x_93); +lean_inc(x_108); +lean_ctor_set(x_17, 0, x_108); +if (x_14 == 0) +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_box(0); +x_110 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_106, x_11, x_108, x_17, x_10, x_109, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_110; +} +else +{ +lean_object* x_111; uint8_t x_112; +x_111 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_106); +x_112 = l_Lean_MessageData_hasTag(x_111, x_106); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_17); +lean_dec(x_108); +lean_dec(x_106); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_113 = lean_box(0); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_107); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_box(0); +x_116 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_106, x_11, x_108, x_17, x_10, x_115, x_6, x_7, x_107); +lean_dec(x_7); +lean_dec(x_6); +return x_116; +} +} } } 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_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_109 = lean_ctor_get(x_97, 0); -x_110 = lean_ctor_get(x_97, 1); -x_111 = lean_ctor_get(x_97, 2); -x_112 = lean_ctor_get(x_97, 3); -x_113 = lean_ctor_get(x_97, 4); -x_114 = lean_ctor_get(x_97, 5); -x_115 = lean_ctor_get(x_97, 6); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_97); -x_116 = l_Lean_PersistentArray_push___rarg(x_114, x_95); -x_117 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_117, 0, x_109); -lean_ctor_set(x_117, 1, x_110); -lean_ctor_set(x_117, 2, x_111); -lean_ctor_set(x_117, 3, x_112); -lean_ctor_set(x_117, 4, x_113); -lean_ctor_set(x_117, 5, x_116); -lean_ctor_set(x_117, 6, x_115); -x_118 = lean_st_ref_set(x_7, x_117, x_98); -x_119 = lean_ctor_get(x_118, 1); +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_117 = lean_ctor_get(x_17, 0); +lean_inc(x_117); +lean_dec(x_17); +x_118 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); if (lean_is_exclusive(x_118)) { lean_ctor_release(x_118, 0); lean_ctor_release(x_118, 1); - x_120 = x_118; + x_121 = x_118; } else { lean_dec_ref(x_118); - x_120 = lean_box(0); -} -x_121 = lean_box(0); -if (lean_is_scalar(x_120)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_120; -} -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_119); -return x_122; + x_121 = lean_box(0); } +x_122 = l_Lean_FileMap_toPosition(x_12, x_117); +lean_dec(x_117); +lean_inc(x_122); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_122); +if (x_14 == 0) +{ +lean_object* x_124; lean_object* x_125; +lean_dec(x_121); +x_124 = lean_box(0); +x_125 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_119, x_11, x_122, x_123, x_10, x_124, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_125; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_123 = lean_ctor_get(x_86, 0); -x_124 = lean_ctor_get(x_86, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_86); -x_125 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_126 = l_Lean_FileMap_toPosition(x_12, x_125); -x_127 = l_Lean_FileMap_toPosition(x_12, x_85); -lean_dec(x_85); -lean_ctor_set(x_19, 0, x_127); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_14); -lean_ctor_set(x_128, 1, x_15); -x_129 = lean_alloc_ctor(3, 2, 0); +lean_object* x_126; uint8_t x_127; +x_126 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_119); +x_127 = l_Lean_MessageData_hasTag(x_126, x_119); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_119); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_128 = lean_box(0); +if (lean_is_scalar(x_121)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_121; +} lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_123); -x_130 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_131 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_131, 0, x_11); -lean_ctor_set(x_131, 1, x_126); -lean_ctor_set(x_131, 2, x_19); -lean_ctor_set(x_131, 3, x_130); -lean_ctor_set(x_131, 4, x_129); -lean_ctor_set_uint8(x_131, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_131, sizeof(void*)*5 + 1, x_10); -x_132 = lean_st_ref_take(x_7, x_124); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); +lean_ctor_set(x_129, 1, x_120); +return x_129; +} +else +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_121); +x_130 = lean_box(0); +x_131 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_119, x_11, x_122, x_123, x_10, x_130, x_6, x_7, x_120); +lean_dec(x_7); +lean_dec(x_6); +return x_131; +} +} +} +} +else +{ +lean_object* x_132; uint8_t x_133; +x_132 = lean_ctor_get(x_17, 0); +lean_inc(x_132); +lean_dec(x_17); +x_133 = !lean_is_exclusive(x_18); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_18, 0); +x_135 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_137 = lean_ctor_get(x_135, 0); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_12); +x_139 = l_Lean_FileMap_toPosition(x_12, x_132); lean_dec(x_132); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -x_137 = lean_ctor_get(x_133, 2); +x_140 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_140); +if (x_14 == 0) +{ +lean_object* x_141; lean_object* x_142; +lean_free_object(x_135); +x_141 = lean_box(0); +x_142 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_137, x_11, x_139, x_18, x_10, x_141, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_142; +} +else +{ +lean_object* x_143; uint8_t x_144; +x_143 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 3); -lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 4); -lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 5); -lean_inc(x_140); -x_141 = lean_ctor_get(x_133, 6); -lean_inc(x_141); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - lean_ctor_release(x_133, 6); - x_142 = x_133; -} else { - lean_dec_ref(x_133); - x_142 = lean_box(0); +x_144 = l_Lean_MessageData_hasTag(x_143, x_137); +if (x_144 == 0) +{ +lean_object* x_145; +lean_dec(x_18); +lean_dec(x_139); +lean_dec(x_137); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_145 = lean_box(0); +lean_ctor_set(x_135, 0, x_145); +return x_135; } -x_143 = l_Lean_PersistentArray_push___rarg(x_140, x_131); -if (lean_is_scalar(x_142)) { - x_144 = lean_alloc_ctor(0, 7, 0); -} else { - x_144 = x_142; +else +{ +lean_object* x_146; lean_object* x_147; +lean_free_object(x_135); +x_146 = lean_box(0); +x_147 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_137, x_11, x_139, x_18, x_10, x_146, x_6, x_7, x_138); +lean_dec(x_7); +lean_dec(x_6); +return x_147; } -lean_ctor_set(x_144, 0, x_135); -lean_ctor_set(x_144, 1, x_136); -lean_ctor_set(x_144, 2, x_137); -lean_ctor_set(x_144, 3, x_138); -lean_ctor_set(x_144, 4, x_139); -lean_ctor_set(x_144, 5, x_143); -lean_ctor_set(x_144, 6, x_141); -x_145 = lean_st_ref_set(x_7, x_144, x_134); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; -} else { - lean_dec_ref(x_145); - x_147 = lean_box(0); -} -x_148 = lean_box(0); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -return x_149; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_150 = lean_ctor_get(x_19, 0); -lean_inc(x_150); -lean_dec(x_19); -x_151 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_154 = x_151; -} else { - lean_dec_ref(x_151); - x_154 = lean_box(0); -} -x_155 = lean_unsigned_to_nat(0u); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_135, 0); +x_149 = lean_ctor_get(x_135, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_135); lean_inc(x_12); -x_156 = l_Lean_FileMap_toPosition(x_12, x_155); -x_157 = l_Lean_FileMap_toPosition(x_12, x_150); +x_150 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_151 = l_Lean_FileMap_toPosition(x_12, x_134); +lean_dec(x_134); +lean_ctor_set(x_18, 0, x_151); +if (x_14 == 0) +{ +lean_object* x_152; lean_object* x_153; +x_152 = lean_box(0); +x_153 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_148, x_11, x_150, x_18, x_10, x_152, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_153; +} +else +{ +lean_object* x_154; uint8_t x_155; +x_154 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_148); +x_155 = l_Lean_MessageData_hasTag(x_154, x_148); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +lean_dec(x_18); lean_dec(x_150); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_157); -if (lean_is_scalar(x_154)) { - x_159 = lean_alloc_ctor(0, 2, 0); -} else { - x_159 = x_154; +lean_dec(x_148); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_156 = lean_box(0); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_149); +return x_157; } -lean_ctor_set(x_159, 0, x_14); -lean_ctor_set(x_159, 1, x_15); -x_160 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_152); -x_161 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_162 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_162, 0, x_11); -lean_ctor_set(x_162, 1, x_156); -lean_ctor_set(x_162, 2, x_158); -lean_ctor_set(x_162, 3, x_161); -lean_ctor_set(x_162, 4, x_160); -lean_ctor_set_uint8(x_162, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_162, sizeof(void*)*5 + 1, x_10); -x_163 = lean_st_ref_take(x_7, x_153); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_167); -x_168 = lean_ctor_get(x_164, 2); -lean_inc(x_168); -x_169 = lean_ctor_get(x_164, 3); -lean_inc(x_169); -x_170 = lean_ctor_get(x_164, 4); -lean_inc(x_170); -x_171 = lean_ctor_get(x_164, 5); -lean_inc(x_171); -x_172 = lean_ctor_get(x_164, 6); -lean_inc(x_172); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - lean_ctor_release(x_164, 3); - lean_ctor_release(x_164, 4); - lean_ctor_release(x_164, 5); - lean_ctor_release(x_164, 6); +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_box(0); +x_159 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_148, x_11, x_150, x_18, x_10, x_158, x_6, x_7, x_149); +lean_dec(x_7); +lean_dec(x_6); +return x_159; +} +} +} +} +else +{ +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; +x_160 = lean_ctor_get(x_18, 0); +lean_inc(x_160); +lean_dec(x_18); +x_161 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_164 = x_161; +} else { + lean_dec_ref(x_161); + x_164 = lean_box(0); +} +lean_inc(x_12); +x_165 = l_Lean_FileMap_toPosition(x_12, x_132); +lean_dec(x_132); +x_166 = l_Lean_FileMap_toPosition(x_12, x_160); +lean_dec(x_160); +x_167 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_167, 0, x_166); +if (x_14 == 0) +{ +lean_object* x_168; lean_object* x_169; +lean_dec(x_164); +x_168 = lean_box(0); +x_169 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_162, x_11, x_165, x_167, x_10, x_168, x_6, x_7, x_163); +lean_dec(x_7); +lean_dec(x_6); +return x_169; +} +else +{ +lean_object* x_170; uint8_t x_171; +x_170 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_162); +x_171 = l_Lean_MessageData_hasTag(x_170, x_162); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +lean_dec(x_167); +lean_dec(x_165); +lean_dec(x_162); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +x_172 = lean_box(0); +if (lean_is_scalar(x_164)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { x_173 = x_164; -} else { - lean_dec_ref(x_164); - x_173 = lean_box(0); -} -x_174 = l_Lean_PersistentArray_push___rarg(x_171, x_162); -if (lean_is_scalar(x_173)) { - x_175 = lean_alloc_ctor(0, 7, 0); -} else { - x_175 = x_173; -} -lean_ctor_set(x_175, 0, x_166); -lean_ctor_set(x_175, 1, x_167); -lean_ctor_set(x_175, 2, x_168); -lean_ctor_set(x_175, 3, x_169); -lean_ctor_set(x_175, 4, x_170); -lean_ctor_set(x_175, 5, x_174); -lean_ctor_set(x_175, 6, x_172); -x_176 = lean_st_ref_set(x_7, x_175, x_165); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_178 = x_176; -} else { - lean_dec_ref(x_176); - x_178 = lean_box(0); -} -x_179 = lean_box(0); -if (lean_is_scalar(x_178)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_178; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_177); -return x_180; -} } +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_163); +return x_173; } else { -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_18); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_ctor_get(x_18, 0); -x_183 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +lean_object* x_174; lean_object* x_175; +lean_dec(x_164); +x_174 = lean_box(0); +x_175 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_162, x_11, x_165, x_167, x_10, x_174, x_6, x_7, x_163); +lean_dec(x_7); lean_dec(x_6); -x_184 = !lean_is_exclusive(x_183); -if (x_184 == 0) -{ -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; -x_185 = lean_ctor_get(x_183, 0); -x_186 = lean_ctor_get(x_183, 1); -x_187 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_187); -lean_ctor_set(x_18, 0, x_187); -lean_ctor_set(x_183, 1, x_15); -lean_ctor_set(x_183, 0, x_14); -x_188 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_185); -x_189 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_190 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_190, 0, x_11); -lean_ctor_set(x_190, 1, x_187); -lean_ctor_set(x_190, 2, x_18); -lean_ctor_set(x_190, 3, x_189); -lean_ctor_set(x_190, 4, x_188); -lean_ctor_set_uint8(x_190, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_190, sizeof(void*)*5 + 1, x_10); -x_191 = lean_st_ref_take(x_7, x_186); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = !lean_is_exclusive(x_192); -if (x_194 == 0) -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_195 = lean_ctor_get(x_192, 5); -x_196 = l_Lean_PersistentArray_push___rarg(x_195, x_190); -lean_ctor_set(x_192, 5, x_196); -x_197 = lean_st_ref_set(x_7, x_192, x_193); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -lean_dec(x_199); -x_200 = lean_box(0); -lean_ctor_set(x_197, 0, x_200); -return x_197; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_197, 1); -lean_inc(x_201); -lean_dec(x_197); -x_202 = lean_box(0); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +return x_175; } } -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_204 = lean_ctor_get(x_192, 0); -x_205 = lean_ctor_get(x_192, 1); -x_206 = lean_ctor_get(x_192, 2); -x_207 = lean_ctor_get(x_192, 3); -x_208 = lean_ctor_get(x_192, 4); -x_209 = lean_ctor_get(x_192, 5); -x_210 = lean_ctor_get(x_192, 6); -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_inc(x_204); -lean_dec(x_192); -x_211 = l_Lean_PersistentArray_push___rarg(x_209, x_190); -x_212 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_212, 0, x_204); -lean_ctor_set(x_212, 1, x_205); -lean_ctor_set(x_212, 2, x_206); -lean_ctor_set(x_212, 3, x_207); -lean_ctor_set(x_212, 4, x_208); -lean_ctor_set(x_212, 5, x_211); -lean_ctor_set(x_212, 6, x_210); -x_213 = lean_st_ref_set(x_7, x_212, x_193); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_215 = x_213; -} else { - lean_dec_ref(x_213); - x_215 = lean_box(0); -} -x_216 = lean_box(0); -if (lean_is_scalar(x_215)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_215; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_214); -return x_217; -} -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_218 = lean_ctor_get(x_183, 0); -x_219 = lean_ctor_get(x_183, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_183); -x_220 = l_Lean_FileMap_toPosition(x_12, x_182); -lean_dec(x_182); -lean_inc(x_220); -lean_ctor_set(x_18, 0, x_220); -x_221 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_221, 0, x_14); -lean_ctor_set(x_221, 1, x_15); -x_222 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_218); -x_223 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_224 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_224, 0, x_11); -lean_ctor_set(x_224, 1, x_220); -lean_ctor_set(x_224, 2, x_18); -lean_ctor_set(x_224, 3, x_223); -lean_ctor_set(x_224, 4, x_222); -lean_ctor_set_uint8(x_224, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_224, sizeof(void*)*5 + 1, x_10); -x_225 = lean_st_ref_take(x_7, x_219); -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); -x_228 = lean_ctor_get(x_226, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_226, 1); -lean_inc(x_229); -x_230 = lean_ctor_get(x_226, 2); -lean_inc(x_230); -x_231 = lean_ctor_get(x_226, 3); -lean_inc(x_231); -x_232 = lean_ctor_get(x_226, 4); -lean_inc(x_232); -x_233 = lean_ctor_get(x_226, 5); -lean_inc(x_233); -x_234 = lean_ctor_get(x_226, 6); -lean_inc(x_234); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - lean_ctor_release(x_226, 2); - lean_ctor_release(x_226, 3); - lean_ctor_release(x_226, 4); - lean_ctor_release(x_226, 5); - lean_ctor_release(x_226, 6); - x_235 = x_226; -} else { - lean_dec_ref(x_226); - x_235 = lean_box(0); -} -x_236 = l_Lean_PersistentArray_push___rarg(x_233, x_224); -if (lean_is_scalar(x_235)) { - x_237 = lean_alloc_ctor(0, 7, 0); -} else { - x_237 = x_235; -} -lean_ctor_set(x_237, 0, x_228); -lean_ctor_set(x_237, 1, x_229); -lean_ctor_set(x_237, 2, x_230); -lean_ctor_set(x_237, 3, x_231); -lean_ctor_set(x_237, 4, x_232); -lean_ctor_set(x_237, 5, x_236); -lean_ctor_set(x_237, 6, x_234); -x_238 = lean_st_ref_set(x_7, x_237, x_227); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; -} else { - lean_dec_ref(x_238); - x_240 = lean_box(0); -} -x_241 = lean_box(0); -if (lean_is_scalar(x_240)) { - x_242 = lean_alloc_ctor(0, 2, 0); -} else { - x_242 = x_240; -} -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_239); -return x_242; -} -} -else -{ -lean_object* 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_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_243 = lean_ctor_get(x_18, 0); -lean_inc(x_243); -lean_dec(x_18); -x_244 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_247 = x_244; -} else { - lean_dec_ref(x_244); - x_247 = lean_box(0); -} -x_248 = l_Lean_FileMap_toPosition(x_12, x_243); -lean_dec(x_243); -lean_inc(x_248); -x_249 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_249, 0, x_248); -if (lean_is_scalar(x_247)) { - x_250 = lean_alloc_ctor(0, 2, 0); -} else { - x_250 = x_247; -} -lean_ctor_set(x_250, 0, x_14); -lean_ctor_set(x_250, 1, x_15); -x_251 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_245); -x_252 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_253 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_253, 0, x_11); -lean_ctor_set(x_253, 1, x_248); -lean_ctor_set(x_253, 2, x_249); -lean_ctor_set(x_253, 3, x_252); -lean_ctor_set(x_253, 4, x_251); -lean_ctor_set_uint8(x_253, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_253, sizeof(void*)*5 + 1, x_10); -x_254 = lean_st_ref_take(x_7, x_246); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_ctor_get(x_255, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_255, 1); -lean_inc(x_258); -x_259 = lean_ctor_get(x_255, 2); -lean_inc(x_259); -x_260 = lean_ctor_get(x_255, 3); -lean_inc(x_260); -x_261 = lean_ctor_get(x_255, 4); -lean_inc(x_261); -x_262 = lean_ctor_get(x_255, 5); -lean_inc(x_262); -x_263 = lean_ctor_get(x_255, 6); -lean_inc(x_263); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - lean_ctor_release(x_255, 2); - lean_ctor_release(x_255, 3); - lean_ctor_release(x_255, 4); - lean_ctor_release(x_255, 5); - lean_ctor_release(x_255, 6); - x_264 = x_255; -} else { - lean_dec_ref(x_255); - x_264 = lean_box(0); -} -x_265 = l_Lean_PersistentArray_push___rarg(x_262, x_253); -if (lean_is_scalar(x_264)) { - x_266 = lean_alloc_ctor(0, 7, 0); -} else { - x_266 = x_264; -} -lean_ctor_set(x_266, 0, x_257); -lean_ctor_set(x_266, 1, x_258); -lean_ctor_set(x_266, 2, x_259); -lean_ctor_set(x_266, 3, x_260); -lean_ctor_set(x_266, 4, x_261); -lean_ctor_set(x_266, 5, x_265); -lean_ctor_set(x_266, 6, x_263); -x_267 = lean_st_ref_set(x_7, x_266, x_256); -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(0, 2, 0); -} else { - x_271 = x_269; -} -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_268); -return x_271; -} -} -else -{ -lean_object* x_272; uint8_t x_273; -x_272 = lean_ctor_get(x_18, 0); -lean_inc(x_272); -lean_dec(x_18); -x_273 = !lean_is_exclusive(x_19); -if (x_273 == 0) -{ -lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_274 = lean_ctor_get(x_19, 0); -x_275 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) -{ -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; uint8_t x_287; -x_277 = lean_ctor_get(x_275, 0); -x_278 = lean_ctor_get(x_275, 1); -lean_inc(x_12); -x_279 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_280 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_280); -lean_ctor_set(x_275, 1, x_15); -lean_ctor_set(x_275, 0, x_14); -x_281 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_281, 0, x_275); -lean_ctor_set(x_281, 1, x_277); -x_282 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_283 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_283, 0, x_11); -lean_ctor_set(x_283, 1, x_279); -lean_ctor_set(x_283, 2, x_19); -lean_ctor_set(x_283, 3, x_282); -lean_ctor_set(x_283, 4, x_281); -lean_ctor_set_uint8(x_283, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_283, sizeof(void*)*5 + 1, x_10); -x_284 = lean_st_ref_take(x_7, x_278); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); -x_287 = !lean_is_exclusive(x_285); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; -x_288 = lean_ctor_get(x_285, 5); -x_289 = l_Lean_PersistentArray_push___rarg(x_288, x_283); -lean_ctor_set(x_285, 5, x_289); -x_290 = lean_st_ref_set(x_7, x_285, x_286); -x_291 = !lean_is_exclusive(x_290); -if (x_291 == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_290, 0); -lean_dec(x_292); -x_293 = lean_box(0); -lean_ctor_set(x_290, 0, x_293); -return x_290; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_290, 1); -lean_inc(x_294); -lean_dec(x_290); -x_295 = lean_box(0); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_294); -return x_296; -} -} -else -{ -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; -x_297 = lean_ctor_get(x_285, 0); -x_298 = lean_ctor_get(x_285, 1); -x_299 = lean_ctor_get(x_285, 2); -x_300 = lean_ctor_get(x_285, 3); -x_301 = lean_ctor_get(x_285, 4); -x_302 = lean_ctor_get(x_285, 5); -x_303 = lean_ctor_get(x_285, 6); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_285); -x_304 = l_Lean_PersistentArray_push___rarg(x_302, x_283); -x_305 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_305, 0, x_297); -lean_ctor_set(x_305, 1, x_298); -lean_ctor_set(x_305, 2, x_299); -lean_ctor_set(x_305, 3, x_300); -lean_ctor_set(x_305, 4, x_301); -lean_ctor_set(x_305, 5, x_304); -lean_ctor_set(x_305, 6, x_303); -x_306 = lean_st_ref_set(x_7, x_305, x_286); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; -} else { - lean_dec_ref(x_306); - x_308 = lean_box(0); -} -x_309 = lean_box(0); -if (lean_is_scalar(x_308)) { - x_310 = lean_alloc_ctor(0, 2, 0); -} else { - x_310 = x_308; -} -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_307); -return x_310; -} -} -else -{ -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; 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; -x_311 = lean_ctor_get(x_275, 0); -x_312 = lean_ctor_get(x_275, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_275); -lean_inc(x_12); -x_313 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_314 = l_Lean_FileMap_toPosition(x_12, x_274); -lean_dec(x_274); -lean_ctor_set(x_19, 0, x_314); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_14); -lean_ctor_set(x_315, 1, x_15); -x_316 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_311); -x_317 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_318 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_318, 0, x_11); -lean_ctor_set(x_318, 1, x_313); -lean_ctor_set(x_318, 2, x_19); -lean_ctor_set(x_318, 3, x_317); -lean_ctor_set(x_318, 4, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_318, sizeof(void*)*5 + 1, x_10); -x_319 = lean_st_ref_take(x_7, x_312); -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, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_323); -x_324 = lean_ctor_get(x_320, 2); -lean_inc(x_324); -x_325 = lean_ctor_get(x_320, 3); -lean_inc(x_325); -x_326 = lean_ctor_get(x_320, 4); -lean_inc(x_326); -x_327 = lean_ctor_get(x_320, 5); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 6); -lean_inc(x_328); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - lean_ctor_release(x_320, 2); - lean_ctor_release(x_320, 3); - lean_ctor_release(x_320, 4); - lean_ctor_release(x_320, 5); - lean_ctor_release(x_320, 6); - x_329 = x_320; -} else { - lean_dec_ref(x_320); - x_329 = lean_box(0); -} -x_330 = l_Lean_PersistentArray_push___rarg(x_327, x_318); -if (lean_is_scalar(x_329)) { - x_331 = lean_alloc_ctor(0, 7, 0); -} else { - x_331 = x_329; -} -lean_ctor_set(x_331, 0, x_322); -lean_ctor_set(x_331, 1, x_323); -lean_ctor_set(x_331, 2, x_324); -lean_ctor_set(x_331, 3, x_325); -lean_ctor_set(x_331, 4, x_326); -lean_ctor_set(x_331, 5, x_330); -lean_ctor_set(x_331, 6, x_328); -x_332 = lean_st_ref_set(x_7, x_331, x_321); -x_333 = lean_ctor_get(x_332, 1); -lean_inc(x_333); -if (lean_is_exclusive(x_332)) { - lean_ctor_release(x_332, 0); - lean_ctor_release(x_332, 1); - x_334 = x_332; -} else { - lean_dec_ref(x_332); - x_334 = lean_box(0); -} -x_335 = lean_box(0); -if (lean_is_scalar(x_334)) { - x_336 = lean_alloc_ctor(0, 2, 0); -} else { - x_336 = x_334; -} -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_333); -return x_336; -} -} -else -{ -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; 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_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; 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; -x_337 = lean_ctor_get(x_19, 0); -lean_inc(x_337); -lean_dec(x_19); -x_338 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_338)) { - lean_ctor_release(x_338, 0); - lean_ctor_release(x_338, 1); - x_341 = x_338; -} else { - lean_dec_ref(x_338); - x_341 = lean_box(0); -} -lean_inc(x_12); -x_342 = l_Lean_FileMap_toPosition(x_12, x_272); -lean_dec(x_272); -x_343 = l_Lean_FileMap_toPosition(x_12, x_337); -lean_dec(x_337); -x_344 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_344, 0, x_343); -if (lean_is_scalar(x_341)) { - x_345 = lean_alloc_ctor(0, 2, 0); -} else { - x_345 = x_341; -} -lean_ctor_set(x_345, 0, x_14); -lean_ctor_set(x_345, 1, x_15); -x_346 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_339); -x_347 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_348 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_348, 0, x_11); -lean_ctor_set(x_348, 1, x_342); -lean_ctor_set(x_348, 2, x_344); -lean_ctor_set(x_348, 3, x_347); -lean_ctor_set(x_348, 4, x_346); -lean_ctor_set_uint8(x_348, sizeof(void*)*5, x_17); -lean_ctor_set_uint8(x_348, sizeof(void*)*5 + 1, x_10); -x_349 = lean_st_ref_take(x_7, x_340); -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -x_352 = lean_ctor_get(x_350, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_350, 1); -lean_inc(x_353); -x_354 = lean_ctor_get(x_350, 2); -lean_inc(x_354); -x_355 = lean_ctor_get(x_350, 3); -lean_inc(x_355); -x_356 = lean_ctor_get(x_350, 4); -lean_inc(x_356); -x_357 = lean_ctor_get(x_350, 5); -lean_inc(x_357); -x_358 = lean_ctor_get(x_350, 6); -lean_inc(x_358); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - lean_ctor_release(x_350, 2); - lean_ctor_release(x_350, 3); - lean_ctor_release(x_350, 4); - lean_ctor_release(x_350, 5); - lean_ctor_release(x_350, 6); - x_359 = x_350; -} else { - lean_dec_ref(x_350); - x_359 = lean_box(0); -} -x_360 = l_Lean_PersistentArray_push___rarg(x_357, x_348); -if (lean_is_scalar(x_359)) { - x_361 = lean_alloc_ctor(0, 7, 0); -} else { - x_361 = x_359; -} -lean_ctor_set(x_361, 0, x_352); -lean_ctor_set(x_361, 1, x_353); -lean_ctor_set(x_361, 2, x_354); -lean_ctor_set(x_361, 3, x_355); -lean_ctor_set(x_361, 4, x_356); -lean_ctor_set(x_361, 5, x_360); -lean_ctor_set(x_361, 6, x_358); -x_362 = lean_st_ref_set(x_7, x_361, x_351); -x_363 = lean_ctor_get(x_362, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_362)) { - lean_ctor_release(x_362, 0); - lean_ctor_release(x_362, 1); - x_364 = x_362; -} else { - lean_dec_ref(x_362); - x_364 = lean_box(0); -} -x_365 = lean_box(0); -if (lean_is_scalar(x_364)) { - x_366 = lean_alloc_ctor(0, 2, 0); -} else { - x_366 = x_364; -} -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_363); -return x_366; } } } @@ -20335,10 +20084,6 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_5, 5); lean_inc(x_8); x_9 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_8); return x_9; } } @@ -21967,6 +21712,29 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___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: { @@ -21974,10 +21742,6 @@ uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_3); lean_dec(x_3); x_10 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); return x_10; } } @@ -22347,1304 +22111,744 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_createModuleDiscrTree___spec__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_373; uint8_t x_374; -x_373 = 2; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +lean_object* x_7; uint8_t x_182; uint8_t x_183; +x_182 = 2; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_7 = x_375; -goto block_372; +lean_object* x_184; +x_184 = lean_box(0); +x_7 = x_184; +goto block_181; } else { -lean_object* x_376; uint8_t x_377; +lean_object* x_185; uint8_t x_186; lean_inc(x_2); -x_376 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_377 = lean_unbox(x_376); -lean_dec(x_376); -if (x_377 == 0) +x_185 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_186 = lean_unbox(x_185); +lean_dec(x_185); +if (x_186 == 0) { -lean_object* x_378; -x_378 = lean_box(0); -x_7 = x_378; -goto block_372; +lean_object* x_187; +x_187 = lean_box(0); +x_7 = x_187; +goto block_181; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_188; lean_object* x_189; lean_dec(x_4); lean_dec(x_2); -x_379 = lean_box(0); -x_380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_6); -return x_380; +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_6); +return x_189; } } -block_372: +block_181: { -uint8_t x_8; lean_object* x_366; uint8_t x_367; uint8_t x_368; +uint8_t x_8; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_dec(x_7); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = 1; -x_368 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_367); -if (x_368 == 0) +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = 1; +x_177 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_176); +if (x_177 == 0) { -lean_dec(x_366); +lean_dec(x_175); x_8 = x_3; -goto block_365; +goto block_174; } else { -lean_object* x_369; uint8_t x_370; -x_369 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; -x_370 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_366, x_369); -lean_dec(x_366); -if (x_370 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2; +x_179 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_178); +lean_dec(x_175); +if (x_179 == 0) { x_8 = x_3; -goto block_365; +goto block_174; } else { -uint8_t x_371; -x_371 = 2; -x_8 = x_371; -goto block_365; +uint8_t x_180; +x_180 = 2; +x_8 = x_180; +goto block_174; } } -block_365: +block_174: { -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; lean_object* x_17; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 6); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 7); -lean_inc(x_13); -x_14 = l_Lean_replaceRef(x_1, x_11); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_13 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +x_14 = 0; +x_15 = l_Lean_Syntax_getPos_x3f(x_13, x_14); +x_16 = l_Lean_Syntax_getTailPos_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ if (lean_obj_tag(x_16) == 0) { -if (lean_obj_tag(x_17) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_10, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +if (x_12 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_box(0); +x_25 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_19, x_9, x_22, x_23, x_8, x_24, x_4, x_5, x_20); lean_dec(x_4); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +return x_25; +} +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; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_10, x_22); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 0, x_12); -x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_20); -x_26 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_27 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_23); -lean_ctor_set(x_27, 2, x_24); -lean_ctor_set(x_27, 3, x_26); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_8); -x_28 = lean_st_ref_take(x_5, x_21); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +lean_object* x_26; uint8_t x_27; +x_26 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_19); +x_27 = l_Lean_MessageData_hasTag(x_26, x_19); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 5); -x_33 = l_Lean_PersistentArray_push___rarg(x_32, x_27); -lean_ctor_set(x_29, 5, x_33); -x_34 = lean_st_ref_set(x_5, x_29, x_30); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +lean_object* x_28; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_4); +x_28 = lean_box(0); +lean_ctor_set(x_17, 0, x_28); +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_17); +x_29 = lean_box(0); +x_30 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_19, x_9, x_22, x_23, x_8, x_29, x_4, x_5, x_20); +lean_dec(x_4); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_FileMap_toPosition(x_10, x_33); +lean_inc(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +if (x_12 == 0) { 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(x_34, 0, x_37); -return x_34; +x_36 = lean_box(0); +x_37 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_31, x_9, x_34, x_35, x_8, x_36, x_4, x_5, x_32); +lean_dec(x_4); +return x_37; } else { -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_object* x_38; uint8_t x_39; +x_38 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_31); +x_39 = l_Lean_MessageData_hasTag(x_38, x_31); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_35); lean_dec(x_34); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_31); +lean_dec(x_9); +lean_dec(x_4); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_31, x_9, x_34, x_35, x_8, x_42, x_4, x_5, x_32); +lean_dec(x_4); +return x_43; +} +} } } else { -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; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 2); -x_44 = lean_ctor_get(x_29, 3); -x_45 = lean_ctor_get(x_29, 4); -x_46 = lean_ctor_get(x_29, 5); -x_47 = lean_ctor_get(x_29, 6); -lean_inc(x_47); -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_dec(x_29); -x_48 = l_Lean_PersistentArray_push___rarg(x_46, x_27); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_43); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_47); -x_50 = lean_st_ref_set(x_5, x_49, x_30); -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); -} +uint8_t x_44; +x_44 = !lean_is_exclusive(x_16); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +x_50 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_51 = l_Lean_FileMap_toPosition(x_10, x_50); +x_52 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_52); +if (x_12 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_free_object(x_46); x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); +x_54 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_48, x_9, x_51, x_16, x_8, x_53, x_4, x_5, x_49); +lean_dec(x_4); return x_54; } -} 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_55 = lean_ctor_get(x_18, 0); -x_56 = lean_ctor_get(x_18, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_18); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Lean_FileMap_toPosition(x_10, x_57); -lean_inc(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_13); -x_61 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -x_62 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_63 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_59); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_63, sizeof(void*)*5 + 1, x_8); -x_64 = lean_st_ref_take(x_5, x_56); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_65, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_65, 4); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 6); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - lean_ctor_release(x_65, 2); - lean_ctor_release(x_65, 3); - lean_ctor_release(x_65, 4); - lean_ctor_release(x_65, 5); - lean_ctor_release(x_65, 6); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -x_75 = l_Lean_PersistentArray_push___rarg(x_72, x_63); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 7, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set(x_76, 1, x_68); -lean_ctor_set(x_76, 2, x_69); -lean_ctor_set(x_76, 3, x_70); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_73); -x_77 = lean_st_ref_set(x_5, x_76, x_66); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; -} else { - lean_dec_ref(x_77); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -} -else +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_48); +x_56 = l_Lean_MessageData_hasTag(x_55, x_48); +if (x_56 == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_17); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_17, 0); -x_84 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_57; +lean_dec(x_16); +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_9); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_84); +x_57 = lean_box(0); +lean_ctor_set(x_46, 0, x_57); +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_free_object(x_46); +x_58 = lean_box(0); +x_59 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_48, x_9, x_51, x_16, x_8, x_58, x_4, x_5, x_49); +lean_dec(x_4); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_63 = l_Lean_FileMap_toPosition(x_10, x_62); +x_64 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_64); +if (x_12 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_60, x_9, x_63, x_16, x_8, x_65, x_4, x_5, x_61); +lean_dec(x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_60); +x_68 = l_Lean_MessageData_hasTag(x_67, x_60); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_9); +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_61); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_60, x_9, x_63, x_16, x_8, x_71, x_4, x_5, x_61); +lean_dec(x_4); +return x_72; +} +} +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_16, 0); +lean_inc(x_73); +lean_dec(x_16); +x_74 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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_unsigned_to_nat(0u); +lean_inc(x_10); +x_79 = l_Lean_FileMap_toPosition(x_10, x_78); +x_80 = l_Lean_FileMap_toPosition(x_10, x_73); +lean_dec(x_73); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (x_12 == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_75, x_9, x_79, x_81, x_8, x_82, x_4, x_5, x_76); +lean_dec(x_4); +return x_83; +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_75); +x_85 = l_Lean_MessageData_hasTag(x_84, x_75); if (x_85 == 0) { -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; uint8_t x_97; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -x_88 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_89 = l_Lean_FileMap_toPosition(x_10, x_88); -x_90 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_90); -lean_ctor_set(x_84, 1, x_13); -lean_ctor_set(x_84, 0, x_12); -x_91 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_86); -x_92 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_9); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_17); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_8); -x_94 = lean_st_ref_take(x_5, x_87); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_9); +lean_dec(x_4); +x_86 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_77; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_76); +return x_87; +} +else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_98 = lean_ctor_get(x_95, 5); -x_99 = l_Lean_PersistentArray_push___rarg(x_98, x_93); -lean_ctor_set(x_95, 5, x_99); -x_100 = lean_st_ref_set(x_5, x_95, x_96); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_77); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_75, x_9, x_79, x_81, x_8, x_88, x_4, x_5, x_76); +lean_dec(x_4); +return x_89; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_15); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_15, 0); +x_92 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_96); +lean_ctor_set(x_15, 0, x_96); +if (x_12 == 0) +{ +lean_object* x_97; lean_object* x_98; +lean_free_object(x_92); +x_97 = lean_box(0); +x_98 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_94, x_9, x_96, x_15, x_8, x_97, x_4, x_5, x_95); +lean_dec(x_4); +return x_98; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_94); +x_100 = l_Lean_MessageData_hasTag(x_99, x_94); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_15); +lean_dec(x_96); +lean_dec(x_94); +lean_dec(x_9); +lean_dec(x_4); +x_101 = lean_box(0); +lean_ctor_set(x_92, 0, x_101); +return x_92; +} +else { lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = lean_box(0); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_free_object(x_92); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_94, x_9, x_96, x_15, x_8, x_102, x_4, x_5, x_95); +lean_dec(x_4); +return x_103; +} +} } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 1); +x_104 = lean_ctor_get(x_92, 0); +x_105 = lean_ctor_get(x_92, 1); +lean_inc(x_105); lean_inc(x_104); -lean_dec(x_100); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_dec(x_92); +x_106 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_106); +lean_ctor_set(x_15, 0, x_106); +if (x_12 == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_104, x_9, x_106, x_15, x_8, x_107, x_4, x_5, x_105); +lean_dec(x_4); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_104); +x_110 = l_Lean_MessageData_hasTag(x_109, x_104); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_15); +lean_dec(x_106); +lean_dec(x_104); +lean_dec(x_9); +lean_dec(x_4); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_104, x_9, x_106, x_15, x_8, x_113, x_4, x_5, x_105); +lean_dec(x_4); +return x_114; +} +} } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -x_109 = lean_ctor_get(x_95, 2); -x_110 = lean_ctor_get(x_95, 3); -x_111 = lean_ctor_get(x_95, 4); -x_112 = lean_ctor_get(x_95, 5); -x_113 = lean_ctor_get(x_95, 6); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_114 = l_Lean_PersistentArray_push___rarg(x_112, x_93); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_107); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_111); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_113); -x_116 = lean_st_ref_set(x_5, x_115, x_96); -x_117 = lean_ctor_get(x_116, 1); +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_115 = lean_ctor_get(x_15, 0); +lean_inc(x_115); +lean_dec(x_15); +x_116 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); if (lean_is_exclusive(x_116)) { lean_ctor_release(x_116, 0); lean_ctor_release(x_116, 1); - x_118 = x_116; + x_119 = x_116; } else { lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; + x_119 = lean_box(0); } +x_120 = l_Lean_FileMap_toPosition(x_10, x_115); +lean_dec(x_115); +lean_inc(x_120); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (x_12 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_117, x_9, x_120, x_121, x_8, x_122, x_4, x_5, x_118); +lean_dec(x_4); +return x_123; } 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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_121 = lean_ctor_get(x_84, 0); -x_122 = lean_ctor_get(x_84, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_84); -x_123 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_124 = l_Lean_FileMap_toPosition(x_10, x_123); -x_125 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_12); -lean_ctor_set(x_126, 1, x_13); -x_127 = lean_alloc_ctor(3, 2, 0); +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_117); +x_125 = l_Lean_MessageData_hasTag(x_124, x_117); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_117); +lean_dec(x_9); +lean_dec(x_4); +x_126 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_119; +} lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_129 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_129, 0, x_9); -lean_ctor_set(x_129, 1, x_124); -lean_ctor_set(x_129, 2, x_17); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_8); -x_130 = lean_st_ref_take(x_5, x_122); -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_ctor_set(x_127, 1, x_118); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_119); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_117, x_9, x_120, x_121, x_8, x_128, x_4, x_5, x_118); +lean_dec(x_4); +return x_129; +} +} +} +} +else +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_15, 0); +lean_inc(x_130); +lean_dec(x_15); +x_131 = !lean_is_exclusive(x_16); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_16, 0); +x_133 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_10); +x_137 = l_Lean_FileMap_toPosition(x_10, x_130); lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_138 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_138); +if (x_12 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_free_object(x_133); +x_139 = lean_box(0); +x_140 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_135, x_9, x_137, x_16, x_8, x_139, x_4, x_5, x_136); +lean_dec(x_4); +return x_140; +} +else +{ +lean_object* x_141; uint8_t x_142; +x_141 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 4); -lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 5); -lean_inc(x_138); -x_139 = lean_ctor_get(x_131, 6); -lean_inc(x_139); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - lean_ctor_release(x_131, 4); - lean_ctor_release(x_131, 5); - lean_ctor_release(x_131, 6); - x_140 = x_131; -} else { - lean_dec_ref(x_131); - x_140 = lean_box(0); +x_142 = l_Lean_MessageData_hasTag(x_141, x_135); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_16); +lean_dec(x_137); +lean_dec(x_135); +lean_dec(x_9); +lean_dec(x_4); +x_143 = lean_box(0); +lean_ctor_set(x_133, 0, x_143); +return x_133; } -x_141 = l_Lean_PersistentArray_push___rarg(x_138, x_129); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 7, 0); -} else { - x_142 = x_140; +else +{ +lean_object* x_144; lean_object* x_145; +lean_free_object(x_133); +x_144 = lean_box(0); +x_145 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_135, x_9, x_137, x_16, x_8, x_144, x_4, x_5, x_136); +lean_dec(x_4); +return x_145; } -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_134); -lean_ctor_set(x_142, 2, x_135); -lean_ctor_set(x_142, 3, x_136); -lean_ctor_set(x_142, 4, x_137); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_139); -x_143 = lean_st_ref_set(x_5, x_142, x_132); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; -} else { - lean_dec_ref(x_143); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_148 = lean_ctor_get(x_17, 0); -lean_inc(x_148); -lean_dec(x_17); -x_149 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = lean_unsigned_to_nat(0u); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); lean_inc(x_10); -x_154 = l_Lean_FileMap_toPosition(x_10, x_153); -x_155 = l_Lean_FileMap_toPosition(x_10, x_148); +x_148 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_149 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_149); +if (x_12 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_146, x_9, x_148, x_16, x_8, x_150, x_4, x_5, x_147); +lean_dec(x_4); +return x_151; +} +else +{ +lean_object* x_152; uint8_t x_153; +x_152 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_146); +x_153 = l_Lean_MessageData_hasTag(x_152, x_146); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_16); lean_dec(x_148); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_155); -if (lean_is_scalar(x_152)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_152; +lean_dec(x_146); +lean_dec(x_9); +lean_dec(x_4); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_147); +return x_155; } -lean_ctor_set(x_157, 0, x_12); -lean_ctor_set(x_157, 1, x_13); -x_158 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_150); -x_159 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_160 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_160, 0, x_9); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_159); -lean_ctor_set(x_160, 4, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_160, sizeof(void*)*5 + 1, x_8); -x_161 = lean_st_ref_take(x_5, x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -x_166 = lean_ctor_get(x_162, 2); -lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); -lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 6); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - lean_ctor_release(x_162, 6); +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_146, x_9, x_148, x_16, x_8, x_156, x_4, x_5, x_147); +lean_dec(x_4); +return x_157; +} +} +} +} +else +{ +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; +x_158 = lean_ctor_get(x_16, 0); +lean_inc(x_158); +lean_dec(x_16); +x_159 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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); +} +lean_inc(x_10); +x_163 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_164 = l_Lean_FileMap_toPosition(x_10, x_158); +lean_dec(x_158); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +if (x_12 == 0) +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_162); +x_166 = lean_box(0); +x_167 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_160, x_9, x_163, x_165, x_8, x_166, x_4, x_5, x_161); +lean_dec(x_4); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1; +lean_inc(x_160); +x_169 = l_Lean_MessageData_hasTag(x_168, x_160); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_165); +lean_dec(x_163); +lean_dec(x_160); +lean_dec(x_9); +lean_dec(x_4); +x_170 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_push___rarg(x_169, x_160); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 7, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_164); -lean_ctor_set(x_173, 1, x_165); -lean_ctor_set(x_173, 2, x_166); -lean_ctor_set(x_173, 3, x_167); -lean_ctor_set(x_173, 4, x_168); -lean_ctor_set(x_173, 5, x_172); -lean_ctor_set(x_173, 6, x_170); -x_174 = lean_st_ref_set(x_5, x_173, x_163); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -x_177 = lean_box(0); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} } +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_161); +return x_171; } else { -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_179; -x_179 = !lean_is_exclusive(x_16); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = lean_ctor_get(x_16, 0); -x_181 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__1(x_160, x_9, x_163, x_165, x_8, x_172, x_4, x_5, x_161); lean_dec(x_4); -x_182 = !lean_is_exclusive(x_181); -if (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_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -x_185 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_185); -lean_ctor_set(x_16, 0, x_185); -lean_ctor_set(x_181, 1, x_13); -lean_ctor_set(x_181, 0, x_12); -x_186 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_183); -x_187 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_188 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_188, 0, x_9); -lean_ctor_set(x_188, 1, x_185); -lean_ctor_set(x_188, 2, x_16); -lean_ctor_set(x_188, 3, x_187); -lean_ctor_set(x_188, 4, x_186); -lean_ctor_set_uint8(x_188, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_188, sizeof(void*)*5 + 1, x_8); -x_189 = lean_st_ref_take(x_5, x_184); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_193 = lean_ctor_get(x_190, 5); -x_194 = l_Lean_PersistentArray_push___rarg(x_193, x_188); -lean_ctor_set(x_190, 5, x_194); -x_195 = lean_st_ref_set(x_5, x_190, x_191); -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -lean_dec(x_197); -x_198 = lean_box(0); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -lean_dec(x_195); -x_200 = lean_box(0); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -return x_201; +return x_173; } } -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_202 = lean_ctor_get(x_190, 0); -x_203 = lean_ctor_get(x_190, 1); -x_204 = lean_ctor_get(x_190, 2); -x_205 = lean_ctor_get(x_190, 3); -x_206 = lean_ctor_get(x_190, 4); -x_207 = lean_ctor_get(x_190, 5); -x_208 = lean_ctor_get(x_190, 6); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_190); -x_209 = l_Lean_PersistentArray_push___rarg(x_207, x_188); -x_210 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_205); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_209); -lean_ctor_set(x_210, 6, x_208); -x_211 = lean_st_ref_set(x_5, x_210, x_191); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_216 = lean_ctor_get(x_181, 0); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_181); -x_218 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_218); -lean_ctor_set(x_16, 0, x_218); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_12); -lean_ctor_set(x_219, 1, x_13); -x_220 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -x_221 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_222 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_222, 0, x_9); -lean_ctor_set(x_222, 1, x_218); -lean_ctor_set(x_222, 2, x_16); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set(x_222, 4, x_220); -lean_ctor_set_uint8(x_222, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_222, sizeof(void*)*5 + 1, x_8); -x_223 = lean_st_ref_take(x_5, x_217); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_224, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_224, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_224, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_224, 6); -lean_inc(x_232); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - lean_ctor_release(x_224, 5); - lean_ctor_release(x_224, 6); - x_233 = x_224; -} else { - lean_dec_ref(x_224); - x_233 = lean_box(0); -} -x_234 = l_Lean_PersistentArray_push___rarg(x_231, x_222); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(0, 7, 0); -} else { - x_235 = x_233; -} -lean_ctor_set(x_235, 0, x_226); -lean_ctor_set(x_235, 1, x_227); -lean_ctor_set(x_235, 2, x_228); -lean_ctor_set(x_235, 3, x_229); -lean_ctor_set(x_235, 4, x_230); -lean_ctor_set(x_235, 5, x_234); -lean_ctor_set(x_235, 6, x_232); -x_236 = lean_st_ref_set(x_5, x_235, x_225); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; -} else { - lean_dec_ref(x_236); - x_238 = lean_box(0); -} -x_239 = lean_box(0); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_238; -} -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_237); -return x_240; -} -} -else -{ -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_241 = lean_ctor_get(x_16, 0); -lean_inc(x_241); -lean_dec(x_16); -x_242 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_245 = x_242; -} else { - lean_dec_ref(x_242); - x_245 = lean_box(0); -} -x_246 = l_Lean_FileMap_toPosition(x_10, x_241); -lean_dec(x_241); -lean_inc(x_246); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -if (lean_is_scalar(x_245)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_245; -} -lean_ctor_set(x_248, 0, x_12); -lean_ctor_set(x_248, 1, x_13); -x_249 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_243); -x_250 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_251 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_251, 0, x_9); -lean_ctor_set(x_251, 1, x_246); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_250); -lean_ctor_set(x_251, 4, x_249); -lean_ctor_set_uint8(x_251, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_251, sizeof(void*)*5 + 1, x_8); -x_252 = lean_st_ref_take(x_5, x_244); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = lean_ctor_get(x_253, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_253, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_253, 2); -lean_inc(x_257); -x_258 = lean_ctor_get(x_253, 3); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 4); -lean_inc(x_259); -x_260 = lean_ctor_get(x_253, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_253, 6); -lean_inc(x_261); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - lean_ctor_release(x_253, 5); - lean_ctor_release(x_253, 6); - x_262 = x_253; -} else { - lean_dec_ref(x_253); - x_262 = lean_box(0); -} -x_263 = l_Lean_PersistentArray_push___rarg(x_260, x_251); -if (lean_is_scalar(x_262)) { - x_264 = lean_alloc_ctor(0, 7, 0); -} else { - x_264 = x_262; -} -lean_ctor_set(x_264, 0, x_255); -lean_ctor_set(x_264, 1, x_256); -lean_ctor_set(x_264, 2, x_257); -lean_ctor_set(x_264, 3, x_258); -lean_ctor_set(x_264, 4, x_259); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_261); -x_265 = lean_st_ref_set(x_5, x_264, x_254); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -} -else -{ -lean_object* x_270; uint8_t x_271; -x_270 = lean_ctor_get(x_16, 0); -lean_inc(x_270); -lean_dec(x_16); -x_271 = !lean_is_exclusive(x_17); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_17, 0); -x_273 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_274 = !lean_is_exclusive(x_273); -if (x_274 == 0) -{ -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; uint8_t x_285; -x_275 = lean_ctor_get(x_273, 0); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_10); -x_277 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_278 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_278); -lean_ctor_set(x_273, 1, x_13); -lean_ctor_set(x_273, 0, x_12); -x_279 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_279, 0, x_273); -lean_ctor_set(x_279, 1, x_275); -x_280 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_281 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_281, 0, x_9); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_17); -lean_ctor_set(x_281, 3, x_280); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set_uint8(x_281, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_281, sizeof(void*)*5 + 1, x_8); -x_282 = lean_st_ref_take(x_5, x_276); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = !lean_is_exclusive(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_286 = lean_ctor_get(x_283, 5); -x_287 = l_Lean_PersistentArray_push___rarg(x_286, x_281); -lean_ctor_set(x_283, 5, x_287); -x_288 = lean_st_ref_set(x_5, x_283, x_284); -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -lean_dec(x_290); -x_291 = lean_box(0); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 1); -lean_inc(x_292); -lean_dec(x_288); -x_293 = lean_box(0); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_295 = lean_ctor_get(x_283, 0); -x_296 = lean_ctor_get(x_283, 1); -x_297 = lean_ctor_get(x_283, 2); -x_298 = lean_ctor_get(x_283, 3); -x_299 = lean_ctor_get(x_283, 4); -x_300 = lean_ctor_get(x_283, 5); -x_301 = lean_ctor_get(x_283, 6); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_283); -x_302 = l_Lean_PersistentArray_push___rarg(x_300, x_281); -x_303 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_303, 0, x_295); -lean_ctor_set(x_303, 1, x_296); -lean_ctor_set(x_303, 2, x_297); -lean_ctor_set(x_303, 3, x_298); -lean_ctor_set(x_303, 4, x_299); -lean_ctor_set(x_303, 5, x_302); -lean_ctor_set(x_303, 6, x_301); -x_304 = lean_st_ref_set(x_5, x_303, x_284); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_306 = x_304; -} else { - lean_dec_ref(x_304); - x_306 = lean_box(0); -} -x_307 = lean_box(0); -if (lean_is_scalar(x_306)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_306; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -else -{ -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; 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; -x_309 = lean_ctor_get(x_273, 0); -x_310 = lean_ctor_get(x_273, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_273); -lean_inc(x_10); -x_311 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_312 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_312); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_12); -lean_ctor_set(x_313, 1, x_13); -x_314 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_309); -x_315 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_316 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_316, 0, x_9); -lean_ctor_set(x_316, 1, x_311); -lean_ctor_set(x_316, 2, x_17); -lean_ctor_set(x_316, 3, x_315); -lean_ctor_set(x_316, 4, x_314); -lean_ctor_set_uint8(x_316, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_316, sizeof(void*)*5 + 1, x_8); -x_317 = lean_st_ref_take(x_5, x_310); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = lean_ctor_get(x_318, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_318, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_318, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_318, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_318, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_318, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_318, 6); -lean_inc(x_326); -if (lean_is_exclusive(x_318)) { - lean_ctor_release(x_318, 0); - lean_ctor_release(x_318, 1); - lean_ctor_release(x_318, 2); - lean_ctor_release(x_318, 3); - lean_ctor_release(x_318, 4); - lean_ctor_release(x_318, 5); - lean_ctor_release(x_318, 6); - x_327 = x_318; -} else { - lean_dec_ref(x_318); - x_327 = lean_box(0); -} -x_328 = l_Lean_PersistentArray_push___rarg(x_325, x_316); -if (lean_is_scalar(x_327)) { - x_329 = lean_alloc_ctor(0, 7, 0); -} else { - x_329 = x_327; -} -lean_ctor_set(x_329, 0, x_320); -lean_ctor_set(x_329, 1, x_321); -lean_ctor_set(x_329, 2, x_322); -lean_ctor_set(x_329, 3, x_323); -lean_ctor_set(x_329, 4, x_324); -lean_ctor_set(x_329, 5, x_328); -lean_ctor_set(x_329, 6, x_326); -x_330 = lean_st_ref_set(x_5, x_329, x_319); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_332 = x_330; -} else { - lean_dec_ref(x_330); - x_332 = lean_box(0); -} -x_333 = lean_box(0); -if (lean_is_scalar(x_332)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_332; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_331); -return x_334; -} -} -else -{ -lean_object* x_335; 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; 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_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; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_335 = lean_ctor_get(x_17, 0); -lean_inc(x_335); -lean_dec(x_17); -x_336 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; -} else { - lean_dec_ref(x_336); - x_339 = lean_box(0); -} -lean_inc(x_10); -x_340 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_341 = l_Lean_FileMap_toPosition(x_10, x_335); -lean_dec(x_335); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_12); -lean_ctor_set(x_343, 1, x_13); -x_344 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_337); -x_345 = l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7; -x_346 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_346, 0, x_9); -lean_ctor_set(x_346, 1, x_340); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_345); -lean_ctor_set(x_346, 4, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_346, sizeof(void*)*5 + 1, x_8); -x_347 = lean_st_ref_take(x_5, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get(x_348, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_348, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 2); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -x_355 = lean_ctor_get(x_348, 5); -lean_inc(x_355); -x_356 = lean_ctor_get(x_348, 6); -lean_inc(x_356); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - x_357 = x_348; -} else { - lean_dec_ref(x_348); - x_357 = lean_box(0); -} -x_358 = l_Lean_PersistentArray_push___rarg(x_355, x_346); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 7, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_350); -lean_ctor_set(x_359, 1, x_351); -lean_ctor_set(x_359, 2, x_352); -lean_ctor_set(x_359, 3, x_353); -lean_ctor_set(x_359, 4, x_354); -lean_ctor_set(x_359, 5, x_358); -lean_ctor_set(x_359, 6, x_356); -x_360 = lean_st_ref_set(x_5, x_359, x_349); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_362 = x_360; -} else { - lean_dec_ref(x_360); - x_362 = lean_box(0); -} -x_363 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -return x_364; } } } @@ -24700,6 +23904,8 @@ l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportDat lean_mark_persistent(l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__14); l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15 = _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15(); lean_mark_persistent(l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__15); +l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16 = _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16(); +lean_mark_persistent(l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_addConstImportData___rarg___lambda__2___closed__16); l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_InitResults_errors___default = _init_l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_InitResults_errors___default(); lean_mark_persistent(l___private_Lean_Meta_LazyDiscrTree_0__Lean_Meta_LazyDiscrTree_InitResults_errors___default); l_Lean_Meta_LazyDiscrTree_instInhabitedInitResults___closed__1 = _init_l_Lean_Meta_LazyDiscrTree_instInhabitedInitResults___closed__1(); @@ -24722,8 +23928,18 @@ l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7 = _init_l_Lean_Met lean_mark_persistent(l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__7); l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__8 = _init_l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__8(); lean_mark_persistent(l_Lean_Meta_LazyDiscrTree_logImportFailure___rarg___closed__8); +l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__1); +l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__2); +l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__3); +l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___lambda__2___closed__4); l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__1); +l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2 = _init_l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__7___closed__2); l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__1___rarg___closed__1 = _init_l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__1___rarg___closed__1); l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__1___rarg___closed__2 = _init_l_Lean_Meta_LazyDiscrTree_createImportedDiscrTree___at_Lean_Meta_LazyDiscrTree_findImportMatches___spec__1___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/LitValues.c b/stage0/stdlib/Lean/Meta/LitValues.c index b40a718140..e541e7ef6e 100644 --- a/stage0/stdlib/Lean/Meta/LitValues.c +++ b/stage0/stdlib/Lean/Meta/LitValues.c @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__26; lean_object* l_Lean_mkNatLit(lean_object*); @@ -37,11 +38,13 @@ LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__4(lean_object*, lean LEAN_EXPORT lean_object* l_Lean_Meta_getOfNatValue_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__27; uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getUInt64Value_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getBitVecValue_x3f___closed__1; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__29; LEAN_EXPORT lean_object* l_Lean_Meta_getIntValue_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_normLitValue___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getUInt32Value_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,11 +66,14 @@ lean_object* l_Lean_Expr_appArg_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getCharValue_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Fin_ofNat(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getFinValue_x3f___closed__2; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__20; uint8_t l_Lean_Expr_isAppOfArity_x27(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getStringValue_x3f(lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); +static lean_object* l_Lean_Meta_isLitValue___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getUInt16Value_x3f___closed__2; static lean_object* l_Lean_Meta_normLitValue___lambda__4___closed__3; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__28; @@ -109,6 +115,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__3(lean_object*, lean lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_normLitValue___lambda__10___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_litToCtor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_normLitValue___lambda__4___closed__1; @@ -141,9 +148,11 @@ static lean_object* l_Lean_Meta_normLitValue___lambda__10___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_getOfNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getRawNatValue_x3f___boxed(lean_object*); static lean_object* l_Lean_Meta_normLitValue___lambda__9___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__17; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l_Lean_Meta_normLitValue___lambda__9___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getUInt64Value_x3f___closed__1; @@ -166,6 +175,7 @@ static lean_object* l_Lean_Meta_getBitVecValue_x3f___lambda__1___closed__1; uint8_t lean_int_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_normLitValue___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__11; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__22; @@ -177,6 +187,7 @@ static lean_object* l_Lean_Meta_getUInt16Value_x3f___closed__1; static lean_object* l_Lean_Meta_getOfNatValue_x3f___closed__2; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__23; LEAN_EXPORT lean_object* l_Lean_Meta_getRawNatValue_x3f(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getUInt8Value_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getBitVecValue_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instToExprInt_mkNat(lean_object*); @@ -192,11 +203,14 @@ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getBitVecValue_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData(lean_object*); lean_object* lean_uint32_to_nat(uint32_t); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_litToCtor___lambda__2___closed__2; lean_object* l_Char_ofNat(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21_x27(lean_object*, lean_object*); static lean_object* l_Lean_Meta_getIntValue_x3f___closed__1; static lean_object* l_Lean_Meta_litToCtor___lambda__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_uint8_to_nat(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_getRawNatValue_x3f(lean_object* x_1) { _start: @@ -4676,6 +4690,892 @@ lean_dec(x_2); return x_8; } } +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_isLitValue___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_isLitValue___lambda__1___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = l_Lean_Meta_getUInt64Value_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(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_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Meta_isLitValue___lambda__2___closed__1; +x_12 = lean_box(0); +x_13 = lean_apply_6(x_11, x_12, x_3, x_4, x_5, x_6, x_10); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +lean_dec(x_15); +x_16 = 1; +x_17 = lean_box(x_16); +lean_ctor_set(x_8, 0, x_17); +return x_8; +} +else +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_dec(x_8); +x_19 = 1; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_8); +if (x_22 == 0) +{ +return x_8; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_8, 0); +x_24 = lean_ctor_get(x_8, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_8); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getUInt32Value_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__2(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getUInt16Value_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__3(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getUInt8Value_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__4(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getCharValue_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__5(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_1); +x_8 = l_Lean_Meta_getStringValue_x3f(x_1); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = l_Lean_Meta_isLitValue___lambda__6(x_1, x_9, x_3, x_4, x_5, x_6, x_7); +return x_10; +} +else +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_11 = 1; +x_12 = lean_box(x_11); +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; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___lambda__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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getBitVecValue_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__7(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getFinValue_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__8(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l_Lean_Meta_getIntValue_x3f(x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Meta_isLitValue___lambda__9(x_1, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +lean_dec(x_8); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +else +{ +uint8_t x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_8); +if (x_21 == 0) +{ +return x_8; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue(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; +x_7 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +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); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_8); +x_10 = l_Lean_Meta_getNatValue_x3f(x_8, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_Lean_Meta_isLitValue___lambda__10(x_8, x_13, x_2, x_3, x_4, x_5, x_12); +return x_14; +} +else +{ +uint8_t x_15; +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +lean_dec(x_16); +x_17 = 1; +x_18 = lean_box(x_17); +lean_ctor_set(x_10, 0, x_18); +return x_10; +} +else +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) +{ +return x_10; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_10); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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_Lean_Meta_isLitValue___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isLitValue___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_isLitValue___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} static lean_object* _init_l_Lean_Meta_litToCtor___lambda__1___closed__1() { _start: { @@ -5617,6 +6517,8 @@ l_Lean_Meta_normLitValue___lambda__10___closed__5 = _init_l_Lean_Meta_normLitVal lean_mark_persistent(l_Lean_Meta_normLitValue___lambda__10___closed__5); l_Lean_Meta_normLitValue___lambda__10___closed__6 = _init_l_Lean_Meta_normLitValue___lambda__10___closed__6(); lean_mark_persistent(l_Lean_Meta_normLitValue___lambda__10___closed__6); +l_Lean_Meta_isLitValue___lambda__2___closed__1 = _init_l_Lean_Meta_isLitValue___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_isLitValue___lambda__2___closed__1); l_Lean_Meta_litToCtor___lambda__1___closed__1 = _init_l_Lean_Meta_litToCtor___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_litToCtor___lambda__1___closed__1); l_Lean_Meta_litToCtor___lambda__1___closed__2 = _init_l_Lean_Meta_litToCtor___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Match/Basic.c b/stage0/stdlib/Lean/Meta/Match/Basic.c index 0eeded7926..d3ebfd4b0d 100644 --- a/stage0/stdlib/Lean/Meta/Match/Basic.c +++ b/stage0/stdlib/Lean/Meta/Match/Basic.c @@ -4605,7 +4605,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -4617,7 +4617,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -4630,28 +4633,30 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__2(x_2, x_3, x_4, x_25, x_6, x_7); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__2(x_2, x_3, x_4, x_27, x_6, x_7); lean_dec(x_6); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } } @@ -4673,7 +4678,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -4685,7 +4690,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -4698,24 +4706,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index b247255f27..f667c7b06f 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -111,6 +111,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_is LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_solveCnstrs_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunkType(lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_inLocalDecls___lambda__1(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___closed__7; LEAN_EXPORT lean_object* l_List_mapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable___spec__2___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*); uint64_t lean_uint64_of_nat(lean_object*); @@ -12930,7 +12931,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -12942,7 +12943,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -12955,28 +12959,30 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); lean_dec(x_1); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__3(x_2, x_3, x_4, x_25, x_6, x_7); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__3(x_2, x_3, x_4, x_27, x_6, x_7); lean_dec(x_6); -lean_dec(x_25); +lean_dec(x_27); lean_dec(x_4); lean_dec(x_3); -return x_26; +return x_28; } } } @@ -14147,7 +14153,7 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___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) { _start: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -14165,172 +14171,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } @@ -15632,51 +15661,55 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_13, 0); x_19 = lean_ctor_get(x_13, 1); -x_20 = l_Lean_Exception_isRuntime(x_18); +x_20 = l_Lean_Exception_isInterrupt(x_18); if (x_20 == 0) { uint8_t x_21; -x_21 = l_List_isEmpty___rarg(x_5); +x_21 = l_Lean_Exception_isRuntime(x_18); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_List_isEmpty___rarg(x_5); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_13); -x_22 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg(x_6, x_18, x_7, x_8, x_9, x_10, x_19); +x_23 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg(x_6, x_18, x_7, x_8, x_9, x_10, x_19); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -return x_22; +return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_22); -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; +lean_dec(x_23); +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_27; +lean_object* x_28; lean_dec(x_18); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_27 = lean_box(0); +x_28 = lean_box(0); lean_ctor_set_tag(x_13, 0); -lean_ctor_set(x_13, 0, x_27); +lean_ctor_set(x_13, 0, x_28); return x_13; } } @@ -15692,74 +15725,102 @@ return x_13; } else { -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_13, 0); -x_29 = lean_ctor_get(x_13, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_13); -x_30 = l_Lean_Exception_isRuntime(x_28); -if (x_30 == 0) +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_13; +} +} +else { -uint8_t x_31; -x_31 = l_List_isEmpty___rarg(x_5); +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_13); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg(x_6, x_28, x_7, x_8, x_9, x_10, x_29); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -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); -} -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); -return x_36; -} -else +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) { -lean_object* x_37; lean_object* x_38; -lean_dec(x_28); +uint8_t x_33; +x_33 = l_List_isEmpty___rarg(x_5); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg(x_6, x_29, x_7, x_8, x_9, x_10, x_30); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_29); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); return x_38; } -} else { -lean_object* x_39; +lean_object* x_39; lean_object* x_40; +lean_dec(x_29); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_29); -return x_39; +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_30); +return x_40; +} +} +else +{ +lean_object* x_41; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_30); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_29); +lean_ctor_set(x_42, 1, x_30); +return x_42; } } } @@ -28379,7 +28440,7 @@ uint8_t x_20; x_20 = !lean_is_exclusive(x_18); 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; uint8_t x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +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; uint8_t x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; x_21 = lean_ctor_get(x_18, 0); x_22 = lean_ctor_get(x_18, 1); lean_dec(x_22); @@ -28397,9 +28458,12 @@ x_31 = lean_ctor_get(x_6, 7); x_32 = lean_ctor_get(x_6, 8); x_33 = lean_ctor_get(x_6, 9); x_34 = lean_ctor_get(x_6, 10); -x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_36 = l_Lean_replaceRef(x_23, x_29); +x_35 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_36 = lean_ctor_get(x_6, 11); +x_37 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_38 = l_Lean_replaceRef(x_23, x_29); lean_dec(x_23); +lean_inc(x_36); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); @@ -28410,287 +28474,193 @@ lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); -x_37 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_37, 0, x_24); -lean_ctor_set(x_37, 1, x_25); -lean_ctor_set(x_37, 2, x_26); -lean_ctor_set(x_37, 3, x_27); -lean_ctor_set(x_37, 4, x_28); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_30); -lean_ctor_set(x_37, 7, x_31); -lean_ctor_set(x_37, 8, x_32); -lean_ctor_set(x_37, 9, x_33); -lean_ctor_set(x_37, 10, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*11, x_35); -x_38 = 0; +x_39 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_39, 0, x_24); +lean_ctor_set(x_39, 1, x_25); +lean_ctor_set(x_39, 2, x_26); +lean_ctor_set(x_39, 3, x_27); +lean_ctor_set(x_39, 4, x_28); +lean_ctor_set(x_39, 5, x_38); +lean_ctor_set(x_39, 6, x_30); +lean_ctor_set(x_39, 7, x_31); +lean_ctor_set(x_39, 8, x_32); +lean_ctor_set(x_39, 9, x_33); +lean_ctor_set(x_39, 10, x_34); +lean_ctor_set(x_39, 11, x_36); +lean_ctor_set_uint8(x_39, sizeof(void*)*12, x_35); +lean_ctor_set_uint8(x_39, sizeof(void*)*12 + 1, x_37); +x_40 = 0; lean_inc(x_7); -lean_inc(x_37); +lean_inc(x_39); lean_inc(x_5); lean_inc(x_4); -x_39 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_38, x_21, x_4, x_5, x_37, x_7, x_8); -if (lean_obj_tag(x_39) == 0) +x_41 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_40, x_21, x_4, x_5, x_39, x_7, x_8); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); lean_inc(x_7); -lean_inc(x_37); +lean_inc(x_39); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_42 = lean_infer_type(x_1, x_4, x_5, x_37, x_7, x_41); -if (lean_obj_tag(x_42) == 0) +x_44 = lean_infer_type(x_1, x_4, x_5, x_39, x_7, x_43); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); lean_inc(x_7); -lean_inc(x_37); +lean_inc(x_39); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_40); -x_45 = lean_infer_type(x_40, x_4, x_5, x_37, x_7, x_44); -if (lean_obj_tag(x_45) == 0) +lean_inc(x_42); +x_47 = lean_infer_type(x_42, x_4, x_5, x_39, x_7, x_46); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -lean_inc(x_7); -lean_inc(x_37); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_46); -lean_inc(x_43); -x_48 = l_Lean_Meta_isExprDefEq(x_43, x_46, x_4, x_5, x_37, x_7, x_47); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_48, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_50 = lean_unbox(x_49); -lean_dec(x_49); -if (x_50 == 0) +lean_dec(x_47); +lean_inc(x_7); +lean_inc(x_39); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_48); +lean_inc(x_45); +x_50 = l_Lean_Meta_isExprDefEq(x_45, x_48, x_4, x_5, x_39, x_7, x_49); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_51; lean_object* x_52; +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_dec(x_12); lean_dec(x_1); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_dec(x_48); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); lean_inc(x_7); -lean_inc(x_37); +lean_inc(x_39); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_46, x_43, x_4, x_5, x_37, x_7, x_51); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_48, x_45, x_4, x_5, x_39, x_7, x_53); +if (lean_obj_tag(x_54) == 0) { -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; uint8_t x_62; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_indentExpr(x_40); -x_56 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; +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_64; +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 = l_Lean_indentExpr(x_42); +x_58 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; lean_ctor_set_tag(x_18, 6); -lean_ctor_set(x_18, 1, x_55); -lean_ctor_set(x_18, 0, x_56); -x_57 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; +lean_ctor_set(x_18, 1, x_57); +lean_ctor_set(x_18, 0, x_58); +x_59 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; lean_ctor_set_tag(x_2, 6); -lean_ctor_set(x_2, 1, x_57); +lean_ctor_set(x_2, 1, x_59); lean_ctor_set(x_2, 0, x_18); -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_2); -lean_ctor_set(x_58, 1, x_53); -x_59 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_60, x_4, x_5, x_37, x_7, x_54); +lean_ctor_set(x_60, 0, x_2); +lean_ctor_set(x_60, 1, x_55); +x_61 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; +x_62 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_62, x_4, x_5, x_39, x_7, x_56); lean_dec(x_7); -lean_dec(x_37); +lean_dec(x_39); lean_dec(x_5); lean_dec(x_4); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -return x_61; +return x_63; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_61); -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_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; } } else { -uint8_t x_66; -lean_dec(x_40); -lean_dec(x_37); +uint8_t x_68; +lean_dec(x_42); +lean_dec(x_39); lean_free_object(x_18); lean_free_object(x_2); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); -x_66 = !lean_is_exclusive(x_52); -if (x_66 == 0) +x_68 = !lean_is_exclusive(x_54); +if (x_68 == 0) { -return x_52; +return x_54; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_52, 0); -x_68 = lean_ctor_get(x_52, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_52); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -else -{ -lean_object* x_70; lean_object* x_71; -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_40); -lean_dec(x_37); -lean_free_object(x_18); -lean_free_object(x_2); -x_70 = lean_ctor_get(x_48, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_54, 0); +x_70 = lean_ctor_get(x_54, 1); lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_54); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_dec(x_48); -x_71 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; -x_13 = x_71; -x_14 = x_70; +lean_dec(x_45); +lean_dec(x_42); +lean_dec(x_39); +lean_free_object(x_18); +lean_free_object(x_2); +x_72 = lean_ctor_get(x_50, 1); +lean_inc(x_72); +lean_dec(x_50); +x_73 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; +x_13 = x_73; +x_14 = x_72; goto block_17; } } else { -uint8_t x_72; -lean_dec(x_46); -lean_dec(x_43); -lean_dec(x_40); -lean_dec(x_37); -lean_free_object(x_18); -lean_free_object(x_2); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_72 = !lean_is_exclusive(x_48); -if (x_72 == 0) -{ -return x_48; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_48, 0); -x_74 = lean_ctor_get(x_48, 1); -lean_inc(x_74); -lean_inc(x_73); +uint8_t x_74; lean_dec(x_48); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_43); -lean_dec(x_40); -lean_dec(x_37); -lean_free_object(x_18); -lean_free_object(x_2); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_76 = !lean_is_exclusive(x_45); -if (x_76 == 0) -{ -return x_45; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_45, 0); -x_78 = lean_ctor_get(x_45, 1); -lean_inc(x_78); -lean_inc(x_77); lean_dec(x_45); -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; -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_40); -lean_dec(x_37); -lean_free_object(x_18); -lean_free_object(x_2); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_80 = !lean_is_exclusive(x_42); -if (x_80 == 0) -{ -return x_42; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_42, 0); -x_82 = lean_ctor_get(x_42, 1); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_42); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; -} -} -} -else -{ -uint8_t x_84; -lean_dec(x_37); +lean_dec(x_39); lean_free_object(x_18); lean_free_object(x_2); lean_dec(x_12); @@ -28698,210 +28668,281 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_39); -if (x_84 == 0) +x_74 = !lean_is_exclusive(x_50); +if (x_74 == 0) { -return x_39; +return x_50; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_39, 0); -x_86 = lean_ctor_get(x_39, 1); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_50, 0); +x_76 = lean_ctor_get(x_50, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_50); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_45); +lean_dec(x_42); lean_dec(x_39); -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; +lean_free_object(x_18); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_78 = !lean_is_exclusive(x_47); +if (x_78 == 0) +{ +return x_47; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_47, 0); +x_80 = lean_ctor_get(x_47, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_47); +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 { -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; uint8_t x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; -x_88 = lean_ctor_get(x_18, 0); +uint8_t x_82; +lean_dec(x_42); +lean_dec(x_39); +lean_free_object(x_18); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_82 = !lean_is_exclusive(x_44); +if (x_82 == 0) +{ +return x_44; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_44, 0); +x_84 = lean_ctor_get(x_44, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_44); +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; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_39); +lean_free_object(x_18); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_86 = !lean_is_exclusive(x_41); +if (x_86 == 0) +{ +return x_41; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_41, 0); +x_88 = lean_ctor_get(x_41, 1); lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_41); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +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; 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; uint8_t x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; +x_90 = lean_ctor_get(x_18, 0); +lean_inc(x_90); lean_dec(x_18); -x_89 = lean_ctor_get(x_11, 0); -lean_inc(x_89); +x_91 = lean_ctor_get(x_11, 0); +lean_inc(x_91); lean_dec(x_11); -x_90 = lean_ctor_get(x_6, 0); -x_91 = lean_ctor_get(x_6, 1); -x_92 = lean_ctor_get(x_6, 2); -x_93 = lean_ctor_get(x_6, 3); -x_94 = lean_ctor_get(x_6, 4); -x_95 = lean_ctor_get(x_6, 5); -x_96 = lean_ctor_get(x_6, 6); -x_97 = lean_ctor_get(x_6, 7); -x_98 = lean_ctor_get(x_6, 8); -x_99 = lean_ctor_get(x_6, 9); -x_100 = lean_ctor_get(x_6, 10); -x_101 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_102 = l_Lean_replaceRef(x_89, x_95); -lean_dec(x_89); +x_92 = lean_ctor_get(x_6, 0); +x_93 = lean_ctor_get(x_6, 1); +x_94 = lean_ctor_get(x_6, 2); +x_95 = lean_ctor_get(x_6, 3); +x_96 = lean_ctor_get(x_6, 4); +x_97 = lean_ctor_get(x_6, 5); +x_98 = lean_ctor_get(x_6, 6); +x_99 = lean_ctor_get(x_6, 7); +x_100 = lean_ctor_get(x_6, 8); +x_101 = lean_ctor_get(x_6, 9); +x_102 = lean_ctor_get(x_6, 10); +x_103 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_104 = lean_ctor_get(x_6, 11); +x_105 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_106 = l_Lean_replaceRef(x_91, x_97); +lean_dec(x_91); +lean_inc(x_104); +lean_inc(x_102); +lean_inc(x_101); lean_inc(x_100); lean_inc(x_99); lean_inc(x_98); -lean_inc(x_97); lean_inc(x_96); +lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); -lean_inc(x_91); -lean_inc(x_90); -x_103 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_103, 0, x_90); -lean_ctor_set(x_103, 1, x_91); -lean_ctor_set(x_103, 2, x_92); -lean_ctor_set(x_103, 3, x_93); -lean_ctor_set(x_103, 4, x_94); -lean_ctor_set(x_103, 5, x_102); -lean_ctor_set(x_103, 6, x_96); -lean_ctor_set(x_103, 7, x_97); -lean_ctor_set(x_103, 8, x_98); -lean_ctor_set(x_103, 9, x_99); -lean_ctor_set(x_103, 10, x_100); -lean_ctor_set_uint8(x_103, sizeof(void*)*11, x_101); -x_104 = 0; +x_107 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_107, 0, x_92); +lean_ctor_set(x_107, 1, x_93); +lean_ctor_set(x_107, 2, x_94); +lean_ctor_set(x_107, 3, x_95); +lean_ctor_set(x_107, 4, x_96); +lean_ctor_set(x_107, 5, x_106); +lean_ctor_set(x_107, 6, x_98); +lean_ctor_set(x_107, 7, x_99); +lean_ctor_set(x_107, 8, x_100); +lean_ctor_set(x_107, 9, x_101); +lean_ctor_set(x_107, 10, x_102); +lean_ctor_set(x_107, 11, x_104); +lean_ctor_set_uint8(x_107, sizeof(void*)*12, x_103); +lean_ctor_set_uint8(x_107, sizeof(void*)*12 + 1, x_105); +x_108 = 0; lean_inc(x_7); -lean_inc(x_103); +lean_inc(x_107); lean_inc(x_5); lean_inc(x_4); -x_105 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_104, x_88, x_4, x_5, x_103, x_7, x_8); -if (lean_obj_tag(x_105) == 0) +x_109 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_108, x_90, x_4, x_5, x_107, x_7, x_8); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -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); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); lean_inc(x_7); -lean_inc(x_103); +lean_inc(x_107); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_108 = lean_infer_type(x_1, x_4, x_5, x_103, x_7, x_107); -if (lean_obj_tag(x_108) == 0) +x_112 = lean_infer_type(x_1, x_4, x_5, x_107, x_7, x_111); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -lean_inc(x_7); -lean_inc(x_103); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_106); -x_111 = lean_infer_type(x_106, x_4, x_5, x_103, x_7, x_110); -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, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec(x_111); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); lean_inc(x_7); -lean_inc(x_103); +lean_inc(x_107); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_112); -lean_inc(x_109); -x_114 = l_Lean_Meta_isExprDefEq(x_109, x_112, x_4, x_5, x_103, x_7, x_113); -if (lean_obj_tag(x_114) == 0) +lean_inc(x_110); +x_115 = lean_infer_type(x_110, x_4, x_5, x_107, x_7, x_114); +if (lean_obj_tag(x_115) == 0) { -lean_object* x_115; uint8_t x_116; -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_unbox(x_115); -lean_dec(x_115); -if (x_116 == 0) -{ -lean_object* x_117; lean_object* x_118; -lean_dec(x_12); -lean_dec(x_1); -x_117 = lean_ctor_get(x_114, 1); +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); lean_inc(x_117); -lean_dec(x_114); +lean_dec(x_115); lean_inc(x_7); -lean_inc(x_103); +lean_inc(x_107); lean_inc(x_5); lean_inc(x_4); -x_118 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_112, x_109, x_4, x_5, x_103, x_7, x_117); +lean_inc(x_116); +lean_inc(x_113); +x_118 = l_Lean_Meta_isExprDefEq(x_113, x_116, x_4, x_5, x_107, x_7, x_117); if (lean_obj_tag(x_118) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_object* x_119; uint8_t x_120; x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = l_Lean_indentExpr(x_106); -x_122 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; -x_123 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_121); -x_124 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; -lean_ctor_set_tag(x_2, 6); -lean_ctor_set(x_2, 1, x_124); -lean_ctor_set(x_2, 0, x_123); -x_125 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_125, 0, x_2); -lean_ctor_set(x_125, 1, x_119); -x_126 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; -x_127 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_127, x_4, x_5, x_103, x_7, x_120); -lean_dec(x_7); -lean_dec(x_103); -lean_dec(x_5); -lean_dec(x_4); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; -} else { - lean_dec_ref(x_128); - 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); -return x_132; -} -else +x_120 = lean_unbox(x_119); +lean_dec(x_119); +if (x_120 == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_106); -lean_dec(x_103); -lean_free_object(x_2); +lean_object* x_121; lean_object* x_122; +lean_dec(x_12); +lean_dec(x_1); +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_dec(x_118); +lean_inc(x_7); +lean_inc(x_107); +lean_inc(x_5); +lean_inc(x_4); +x_122 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_116, x_113, x_4, x_5, x_107, x_7, x_121); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = l_Lean_indentExpr(x_110); +x_126 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; +x_127 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +x_128 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; +lean_ctor_set_tag(x_2, 6); +lean_ctor_set(x_2, 1, x_128); +lean_ctor_set(x_2, 0, x_127); +x_129 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_129, 0, x_2); +lean_ctor_set(x_129, 1, x_123); +x_130 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; +x_131 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +x_132 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_131, x_4, x_5, x_107, x_7, x_124); lean_dec(x_7); +lean_dec(x_107); lean_dec(x_5); lean_dec(x_4); -x_133 = lean_ctor_get(x_118, 0); +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -x_134 = lean_ctor_get(x_118, 1); +x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_135 = x_118; +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_118); + lean_dec_ref(x_132); x_135 = lean_box(0); } if (lean_is_scalar(x_135)) { @@ -28913,81 +28954,77 @@ lean_ctor_set(x_136, 0, x_133); lean_ctor_set(x_136, 1, x_134); return x_136; } +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_110); +lean_dec(x_107); +lean_free_object(x_2); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +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 { -lean_object* x_137; lean_object* x_138; -lean_dec(x_112); -lean_dec(x_109); -lean_dec(x_106); -lean_dec(x_103); +lean_object* x_141; lean_object* x_142; +lean_dec(x_116); +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_107); lean_free_object(x_2); -x_137 = lean_ctor_get(x_114, 1); -lean_inc(x_137); -lean_dec(x_114); -x_138 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; -x_13 = x_138; -x_14 = x_137; +x_141 = lean_ctor_get(x_118, 1); +lean_inc(x_141); +lean_dec(x_118); +x_142 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; +x_13 = x_142; +x_14 = x_141; goto block_17; } } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_112); -lean_dec(x_109); -lean_dec(x_106); -lean_dec(x_103); -lean_free_object(x_2); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_139 = lean_ctor_get(x_114, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_114, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_141 = x_114; -} else { - lean_dec_ref(x_114); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -} -else -{ lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_109); -lean_dec(x_106); -lean_dec(x_103); +lean_dec(x_116); +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_107); lean_free_object(x_2); lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_143 = lean_ctor_get(x_111, 0); +x_143 = lean_ctor_get(x_118, 0); lean_inc(x_143); -x_144 = lean_ctor_get(x_111, 1); +x_144 = lean_ctor_get(x_118, 1); lean_inc(x_144); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_145 = x_111; +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_145 = x_118; } else { - lean_dec_ref(x_111); + lean_dec_ref(x_118); x_145 = lean_box(0); } if (lean_is_scalar(x_145)) { @@ -29003,24 +29040,25 @@ return x_146; else { lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_106); -lean_dec(x_103); +lean_dec(x_113); +lean_dec(x_110); +lean_dec(x_107); lean_free_object(x_2); lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_147 = lean_ctor_get(x_108, 0); +x_147 = lean_ctor_get(x_115, 0); lean_inc(x_147); -x_148 = lean_ctor_get(x_108, 1); +x_148 = lean_ctor_get(x_115, 1); lean_inc(x_148); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_149 = x_108; +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_149 = x_115; } else { - lean_dec_ref(x_108); + lean_dec_ref(x_115); x_149 = lean_box(0); } if (lean_is_scalar(x_149)) { @@ -29036,23 +29074,24 @@ return x_150; else { lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_103); +lean_dec(x_110); +lean_dec(x_107); lean_free_object(x_2); lean_dec(x_12); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_151 = lean_ctor_get(x_105, 0); +x_151 = lean_ctor_get(x_112, 0); lean_inc(x_151); -x_152 = lean_ctor_get(x_105, 1); +x_152 = lean_ctor_get(x_112, 1); lean_inc(x_152); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_153 = x_105; +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_153 = x_112; } else { - lean_dec_ref(x_105); + lean_dec_ref(x_112); x_153 = lean_box(0); } if (lean_is_scalar(x_153)) { @@ -29065,6 +29104,38 @@ lean_ctor_set(x_154, 1, x_152); return x_154; } } +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_107); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_155 = lean_ctor_get(x_109, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_109, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_157 = x_109; +} else { + lean_dec_ref(x_109); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; +} +} } block_17: { @@ -29080,110 +29151,87 @@ goto _start; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_162; -x_155 = lean_ctor_get(x_2, 0); -x_156 = lean_ctor_get(x_2, 1); -lean_inc(x_156); -lean_inc(x_155); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_166; +x_159 = lean_ctor_get(x_2, 0); +x_160 = lean_ctor_get(x_2, 1); +lean_inc(x_160); +lean_inc(x_159); lean_dec(x_2); -x_162 = lean_ctor_get(x_155, 4); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) +x_166 = lean_ctor_get(x_159, 4); +lean_inc(x_166); +if (lean_obj_tag(x_166) == 0) { -lean_object* x_163; -lean_dec(x_155); -x_163 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; -x_157 = x_163; -x_158 = x_8; -goto block_161; +lean_object* x_167; +lean_dec(x_159); +x_167 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; +x_161 = x_167; +x_162 = x_8; +goto block_165; } 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; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_165 = x_162; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; +x_168 = lean_ctor_get(x_166, 0); +lean_inc(x_168); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + x_169 = x_166; } else { - lean_dec_ref(x_162); - x_165 = lean_box(0); + lean_dec_ref(x_166); + x_169 = lean_box(0); } -x_166 = lean_ctor_get(x_155, 0); -lean_inc(x_166); -lean_dec(x_155); -x_167 = lean_ctor_get(x_6, 0); -x_168 = lean_ctor_get(x_6, 1); -x_169 = lean_ctor_get(x_6, 2); -x_170 = lean_ctor_get(x_6, 3); -x_171 = lean_ctor_get(x_6, 4); -x_172 = lean_ctor_get(x_6, 5); -x_173 = lean_ctor_get(x_6, 6); -x_174 = lean_ctor_get(x_6, 7); -x_175 = lean_ctor_get(x_6, 8); -x_176 = lean_ctor_get(x_6, 9); -x_177 = lean_ctor_get(x_6, 10); -x_178 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_179 = l_Lean_replaceRef(x_166, x_172); -lean_dec(x_166); +x_170 = lean_ctor_get(x_159, 0); +lean_inc(x_170); +lean_dec(x_159); +x_171 = lean_ctor_get(x_6, 0); +x_172 = lean_ctor_get(x_6, 1); +x_173 = lean_ctor_get(x_6, 2); +x_174 = lean_ctor_get(x_6, 3); +x_175 = lean_ctor_get(x_6, 4); +x_176 = lean_ctor_get(x_6, 5); +x_177 = lean_ctor_get(x_6, 6); +x_178 = lean_ctor_get(x_6, 7); +x_179 = lean_ctor_get(x_6, 8); +x_180 = lean_ctor_get(x_6, 9); +x_181 = lean_ctor_get(x_6, 10); +x_182 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_183 = lean_ctor_get(x_6, 11); +x_184 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_185 = l_Lean_replaceRef(x_170, x_176); +lean_dec(x_170); +lean_inc(x_183); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); lean_inc(x_177); -lean_inc(x_176); lean_inc(x_175); lean_inc(x_174); lean_inc(x_173); +lean_inc(x_172); lean_inc(x_171); -lean_inc(x_170); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); -x_180 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_180, 0, x_167); -lean_ctor_set(x_180, 1, x_168); -lean_ctor_set(x_180, 2, x_169); -lean_ctor_set(x_180, 3, x_170); -lean_ctor_set(x_180, 4, x_171); -lean_ctor_set(x_180, 5, x_179); -lean_ctor_set(x_180, 6, x_173); -lean_ctor_set(x_180, 7, x_174); -lean_ctor_set(x_180, 8, x_175); -lean_ctor_set(x_180, 9, x_176); -lean_ctor_set(x_180, 10, x_177); -lean_ctor_set_uint8(x_180, sizeof(void*)*11, x_178); -x_181 = 0; +x_186 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_186, 0, x_171); +lean_ctor_set(x_186, 1, x_172); +lean_ctor_set(x_186, 2, x_173); +lean_ctor_set(x_186, 3, x_174); +lean_ctor_set(x_186, 4, x_175); +lean_ctor_set(x_186, 5, x_185); +lean_ctor_set(x_186, 6, x_177); +lean_ctor_set(x_186, 7, x_178); +lean_ctor_set(x_186, 8, x_179); +lean_ctor_set(x_186, 9, x_180); +lean_ctor_set(x_186, 10, x_181); +lean_ctor_set(x_186, 11, x_183); +lean_ctor_set_uint8(x_186, sizeof(void*)*12, x_182); +lean_ctor_set_uint8(x_186, sizeof(void*)*12 + 1, x_184); +x_187 = 0; lean_inc(x_7); -lean_inc(x_180); -lean_inc(x_5); -lean_inc(x_4); -x_182 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_181, x_164, x_4, x_5, x_180, x_7, x_8); -if (lean_obj_tag(x_182) == 0) -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -lean_inc(x_7); -lean_inc(x_180); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_185 = lean_infer_type(x_1, x_4, x_5, x_180, x_7, x_184); -if (lean_obj_tag(x_185) == 0) -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_185, 0); lean_inc(x_186); -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); -lean_dec(x_185); -lean_inc(x_7); -lean_inc(x_180); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_183); -x_188 = lean_infer_type(x_183, x_4, x_5, x_180, x_7, x_187); +x_188 = l_Lean_Meta_Match_Pattern_toExpr_visit(x_187, x_168, x_4, x_5, x_186, x_7, x_8); if (lean_obj_tag(x_188) == 0) { lean_object* x_189; lean_object* x_190; lean_object* x_191; @@ -29193,158 +29241,134 @@ x_190 = lean_ctor_get(x_188, 1); lean_inc(x_190); lean_dec(x_188); lean_inc(x_7); -lean_inc(x_180); +lean_inc(x_186); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_191 = lean_infer_type(x_1, x_4, x_5, x_186, x_7, x_190); +if (lean_obj_tag(x_191) == 0) +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +lean_dec(x_191); +lean_inc(x_7); +lean_inc(x_186); lean_inc(x_5); lean_inc(x_4); lean_inc(x_189); -lean_inc(x_186); -x_191 = l_Lean_Meta_isExprDefEq(x_186, x_189, x_4, x_5, x_180, x_7, x_190); -if (lean_obj_tag(x_191) == 0) +x_194 = lean_infer_type(x_189, x_4, x_5, x_186, x_7, x_193); +if (lean_obj_tag(x_194) == 0) { -lean_object* x_192; uint8_t x_193; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_unbox(x_192); -lean_dec(x_192); -if (x_193 == 0) -{ -lean_object* x_194; lean_object* x_195; -lean_dec(x_156); -lean_dec(x_1); -x_194 = lean_ctor_get(x_191, 1); -lean_inc(x_194); -lean_dec(x_191); +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); lean_inc(x_7); -lean_inc(x_180); +lean_inc(x_186); lean_inc(x_5); lean_inc(x_4); -x_195 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_189, x_186, x_4, x_5, x_180, x_7, x_194); -if (lean_obj_tag(x_195) == 0) +lean_inc(x_195); +lean_inc(x_192); +x_197 = l_Lean_Meta_isExprDefEq(x_192, x_195, x_4, x_5, x_186, x_7, x_196); +if (lean_obj_tag(x_197) == 0) { -lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_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_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_Lean_indentExpr(x_183); -x_199 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; -if (lean_is_scalar(x_165)) { - x_200 = lean_alloc_ctor(6, 2, 0); +lean_object* x_198; uint8_t x_199; +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_unbox(x_198); +lean_dec(x_198); +if (x_199 == 0) +{ +lean_object* x_200; lean_object* x_201; +lean_dec(x_160); +lean_dec(x_1); +x_200 = lean_ctor_get(x_197, 1); +lean_inc(x_200); +lean_dec(x_197); +lean_inc(x_7); +lean_inc(x_186); +lean_inc(x_5); +lean_inc(x_4); +x_201 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_195, x_192, x_4, x_5, x_186, x_7, x_200); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = l_Lean_indentExpr(x_189); +x_205 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__3; +if (lean_is_scalar(x_169)) { + x_206 = lean_alloc_ctor(6, 2, 0); } else { - x_200 = x_165; - lean_ctor_set_tag(x_200, 6); + x_206 = x_169; + lean_ctor_set_tag(x_206, 6); } -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_198); -x_201 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; -x_202 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -x_203 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_196); -x_204 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; -x_205 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_205, 0, x_203); -lean_ctor_set(x_205, 1, x_204); -x_206 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_205, x_4, x_5, x_180, x_7, x_197); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_204); +x_207 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__2; +x_208 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +x_209 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_202); +x_210 = l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__12; +x_211 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +x_212 = l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(x_211, x_4, x_5, x_186, x_7, x_203); lean_dec(x_7); -lean_dec(x_180); -lean_dec(x_5); -lean_dec(x_4); -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_206)) { - lean_ctor_release(x_206, 0); - lean_ctor_release(x_206, 1); - x_209 = x_206; -} else { - lean_dec_ref(x_206); - x_209 = lean_box(0); -} -if (lean_is_scalar(x_209)) { - x_210 = lean_alloc_ctor(1, 2, 0); -} else { - x_210 = x_209; -} -lean_ctor_set(x_210, 0, x_207); -lean_ctor_set(x_210, 1, x_208); -return x_210; -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -lean_dec(x_183); -lean_dec(x_180); -lean_dec(x_165); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -x_211 = lean_ctor_get(x_195, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_195, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_213 = x_195; -} else { - lean_dec_ref(x_195); - x_213 = lean_box(0); -} -if (lean_is_scalar(x_213)) { - x_214 = lean_alloc_ctor(1, 2, 0); -} else { - x_214 = x_213; -} -lean_ctor_set(x_214, 0, x_211); -lean_ctor_set(x_214, 1, x_212); -return x_214; -} -} -else -{ -lean_object* x_215; lean_object* x_216; -lean_dec(x_189); lean_dec(x_186); -lean_dec(x_183); -lean_dec(x_180); -lean_dec(x_165); -x_215 = lean_ctor_get(x_191, 1); -lean_inc(x_215); -lean_dec(x_191); -x_216 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; -x_157 = x_216; -x_158 = x_215; -goto block_161; +lean_dec(x_5); +lean_dec(x_4); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_215 = x_212; +} else { + lean_dec_ref(x_212); + x_215 = lean_box(0); } +if (lean_is_scalar(x_215)) { + x_216 = lean_alloc_ctor(1, 2, 0); +} else { + x_216 = x_215; +} +lean_ctor_set(x_216, 0, x_213); +lean_ctor_set(x_216, 1, x_214); +return x_216; } else { lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_dec(x_189); lean_dec(x_186); -lean_dec(x_183); -lean_dec(x_180); -lean_dec(x_165); -lean_dec(x_156); +lean_dec(x_169); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1); -x_217 = lean_ctor_get(x_191, 0); +x_217 = lean_ctor_get(x_201, 0); lean_inc(x_217); -x_218 = lean_ctor_get(x_191, 1); +x_218 = lean_ctor_get(x_201, 1); lean_inc(x_218); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_219 = x_191; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_219 = x_201; } else { - lean_dec_ref(x_191); + lean_dec_ref(x_201); x_219 = lean_box(0); } if (lean_is_scalar(x_219)) { @@ -29359,112 +29383,164 @@ return x_220; } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_object* x_221; lean_object* x_222; +lean_dec(x_195); +lean_dec(x_192); +lean_dec(x_189); lean_dec(x_186); -lean_dec(x_183); -lean_dec(x_180); -lean_dec(x_165); -lean_dec(x_156); +lean_dec(x_169); +x_221 = lean_ctor_get(x_197, 1); +lean_inc(x_221); +lean_dec(x_197); +x_222 = l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__2___closed__1; +x_161 = x_222; +x_162 = x_221; +goto block_165; +} +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_195); +lean_dec(x_192); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_169); +lean_dec(x_160); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_221 = lean_ctor_get(x_188, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_188, 1); -lean_inc(x_222); +x_223 = lean_ctor_get(x_197, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_197, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_225 = x_197; +} else { + lean_dec_ref(x_197); + x_225 = lean_box(0); +} +if (lean_is_scalar(x_225)) { + x_226 = lean_alloc_ctor(1, 2, 0); +} else { + x_226 = x_225; +} +lean_ctor_set(x_226, 0, x_223); +lean_ctor_set(x_226, 1, x_224); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_dec(x_192); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_169); +lean_dec(x_160); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_227 = lean_ctor_get(x_194, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_194, 1); +lean_inc(x_228); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_229 = x_194; +} else { + lean_dec_ref(x_194); + x_229 = lean_box(0); +} +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(1, 2, 0); +} else { + x_230 = x_229; +} +lean_ctor_set(x_230, 0, x_227); +lean_ctor_set(x_230, 1, x_228); +return x_230; +} +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_169); +lean_dec(x_160); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_231 = lean_ctor_get(x_191, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_191, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_233 = x_191; +} else { + lean_dec_ref(x_191); + x_233 = lean_box(0); +} +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_233; +} +lean_ctor_set(x_234, 0, x_231); +lean_ctor_set(x_234, 1, x_232); +return x_234; +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_186); +lean_dec(x_169); +lean_dec(x_160); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_235 = lean_ctor_get(x_188, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_188, 1); +lean_inc(x_236); if (lean_is_exclusive(x_188)) { lean_ctor_release(x_188, 0); lean_ctor_release(x_188, 1); - x_223 = x_188; + x_237 = x_188; } else { lean_dec_ref(x_188); - x_223 = lean_box(0); + x_237 = lean_box(0); } -if (lean_is_scalar(x_223)) { - x_224 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); } else { - x_224 = x_223; + x_238 = x_237; } -lean_ctor_set(x_224, 0, x_221); -lean_ctor_set(x_224, 1, x_222); -return x_224; +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; } } -else +block_165: { -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec(x_183); -lean_dec(x_180); -lean_dec(x_165); -lean_dec(x_156); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_225 = lean_ctor_get(x_185, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_185, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_227 = x_185; -} else { - lean_dec_ref(x_185); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(1, 2, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -return x_228; -} -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_180); -lean_dec(x_165); -lean_dec(x_156); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_229 = lean_ctor_get(x_182, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_182, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - x_231 = x_182; -} else { - lean_dec_ref(x_182); - x_231 = lean_box(0); -} -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(1, 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; -} -} -block_161: -{ -lean_object* x_159; -x_159 = lean_ctor_get(x_157, 0); -lean_inc(x_159); -lean_dec(x_157); -x_2 = x_156; -x_3 = x_159; -x_8 = x_158; +lean_object* x_163; +x_163 = lean_ctor_get(x_161, 0); +lean_inc(x_163); +lean_dec(x_161); +x_2 = x_160; +x_3 = x_163; +x_8 = x_162; goto _start; } } diff --git a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c index f905e74848..18a4857b8d 100644 --- a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c +++ b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c @@ -106,6 +106,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Match_getEquationsForImpl___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_forallAltTelescope_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar___lambda__1___closed__2; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___lambda__4___closed__3; static lean_object* l_Lean_Meta_Match_proveCondEqThm___closed__1; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec___spec__1___closed__4; @@ -5652,14 +5653,18 @@ if (x_15 == 0) { lean_object* x_16; uint8_t x_17; x_16 = lean_ctor_get(x_7, 0); -x_17 = l_Lean_Exception_isRuntime(x_16); +x_17 = l_Lean_Exception_isInterrupt(x_16); if (x_17 == 0) { -lean_object* x_18; +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_dec(x_16); -x_18 = lean_box(0); +x_19 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_18); +lean_ctor_set(x_7, 0, x_19); return x_7; } else @@ -5669,30 +5674,48 @@ return x_7; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_7, 0); -x_20 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_7, 0); +x_21 = lean_ctor_get(x_7, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); lean_dec(x_7); -x_21 = l_Lean_Exception_isRuntime(x_19); -if (x_21 == 0) +x_22 = l_Lean_Exception_isInterrupt(x_20); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; -lean_dec(x_19); -x_22 = lean_box(0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -return x_23; +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_20); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; } else { -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_19); -lean_ctor_set(x_24, 1, x_20); -return x_24; +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +} +else +{ +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_20); +lean_ctor_set(x_27, 1, x_21); +return x_27; } } } @@ -9586,113 +9609,117 @@ if (x_48 == 0) lean_object* x_49; lean_object* x_50; uint8_t x_51; x_49 = lean_ctor_get(x_21, 0); x_50 = lean_ctor_get(x_21, 1); -x_51 = l_Lean_Exception_isRuntime(x_49); +x_51 = l_Lean_Exception_isInterrupt(x_49); if (x_51 == 0) { -lean_object* x_52; uint8_t x_53; +uint8_t x_52; +x_52 = l_Lean_Exception_isRuntime(x_49); +if (x_52 == 0) +{ +lean_object* x_53; uint8_t x_54; lean_free_object(x_21); lean_dec(x_49); -x_52 = lean_st_ref_take(x_5, x_50); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_53 = lean_st_ref_take(x_5, x_50); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_52, 0); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_53, 0); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_52, 1); -x_57 = lean_ctor_get(x_54, 3); -lean_ctor_set_tag(x_52, 1); -lean_ctor_set(x_52, 1, x_57); -lean_ctor_set(x_52, 0, x_3); -lean_ctor_set(x_54, 3, x_52); -x_58 = lean_st_ref_set(x_5, x_54, x_56); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; -x_12 = x_60; -x_13 = x_59; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_53, 1); +x_58 = lean_ctor_get(x_55, 3); +lean_ctor_set_tag(x_53, 1); +lean_ctor_set(x_53, 1, x_58); +lean_ctor_set(x_53, 0, x_3); +lean_ctor_set(x_55, 3, x_53); +x_59 = lean_st_ref_set(x_5, x_55, x_57); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; +x_12 = x_61; +x_13 = x_60; goto block_20; } else { -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_61 = lean_ctor_get(x_52, 1); -x_62 = lean_ctor_get(x_54, 0); -x_63 = lean_ctor_get(x_54, 1); -x_64 = lean_ctor_get(x_54, 2); -x_65 = lean_ctor_get(x_54, 3); +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_62 = lean_ctor_get(x_53, 1); +x_63 = lean_ctor_get(x_55, 0); +x_64 = lean_ctor_get(x_55, 1); +x_65 = lean_ctor_get(x_55, 2); +x_66 = lean_ctor_get(x_55, 3); +lean_inc(x_66); lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_54); -lean_ctor_set_tag(x_52, 1); -lean_ctor_set(x_52, 1, x_65); -lean_ctor_set(x_52, 0, x_3); -x_66 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_66, 0, x_62); -lean_ctor_set(x_66, 1, x_63); -lean_ctor_set(x_66, 2, x_64); -lean_ctor_set(x_66, 3, x_52); -x_67 = lean_st_ref_set(x_5, x_66, x_61); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_69 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; -x_12 = x_69; -x_13 = x_68; +lean_dec(x_55); +lean_ctor_set_tag(x_53, 1); +lean_ctor_set(x_53, 1, x_66); +lean_ctor_set(x_53, 0, x_3); +x_67 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_67, 0, x_63); +lean_ctor_set(x_67, 1, x_64); +lean_ctor_set(x_67, 2, x_65); +lean_ctor_set(x_67, 3, x_53); +x_68 = lean_st_ref_set(x_5, x_67, x_62); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; +x_12 = x_70; +x_13 = x_69; goto block_20; } } 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; 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_70 = lean_ctor_get(x_52, 0); -x_71 = lean_ctor_get(x_52, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_52); -x_72 = lean_ctor_get(x_70, 0); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_71 = lean_ctor_get(x_53, 0); +x_72 = lean_ctor_get(x_53, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_53); +x_73 = lean_ctor_get(x_71, 0); lean_inc(x_73); -x_74 = lean_ctor_get(x_70, 2); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_70, 3); +x_75 = lean_ctor_get(x_71, 2); lean_inc(x_75); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - lean_ctor_release(x_70, 2); - lean_ctor_release(x_70, 3); - x_76 = x_70; +x_76 = lean_ctor_get(x_71, 3); +lean_inc(x_76); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + lean_ctor_release(x_71, 2); + lean_ctor_release(x_71, 3); + x_77 = x_71; } else { - lean_dec_ref(x_70); - x_76 = lean_box(0); + lean_dec_ref(x_71); + x_77 = lean_box(0); } -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_3); -lean_ctor_set(x_77, 1, x_75); -if (lean_is_scalar(x_76)) { - x_78 = lean_alloc_ctor(0, 4, 0); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_3); +lean_ctor_set(x_78, 1, x_76); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 4, 0); } else { - x_78 = x_76; + x_79 = x_77; } -lean_ctor_set(x_78, 0, x_72); -lean_ctor_set(x_78, 1, x_73); -lean_ctor_set(x_78, 2, x_74); -lean_ctor_set(x_78, 3, x_77); -x_79 = lean_st_ref_set(x_5, x_78, x_71); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; -x_12 = x_81; -x_13 = x_80; +lean_ctor_set(x_79, 0, x_73); +lean_ctor_set(x_79, 1, x_74); +lean_ctor_set(x_79, 2, x_75); +lean_ctor_set(x_79, 3, x_78); +x_80 = lean_st_ref_set(x_5, x_79, x_72); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; +x_12 = x_82; +x_13 = x_81; goto block_20; } } @@ -9710,77 +9737,6 @@ return x_21; } else { -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_21, 0); -x_83 = lean_ctor_get(x_21, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_21); -x_84 = l_Lean_Exception_isRuntime(x_82); -if (x_84 == 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; 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_dec(x_82); -x_85 = lean_st_ref_take(x_5, x_83); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -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_85); - x_88 = lean_box(0); -} -x_89 = lean_ctor_get(x_86, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -x_91 = lean_ctor_get(x_86, 2); -lean_inc(x_91); -x_92 = lean_ctor_get(x_86, 3); -lean_inc(x_92); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - lean_ctor_release(x_86, 2); - lean_ctor_release(x_86, 3); - x_93 = x_86; -} else { - lean_dec_ref(x_86); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_88)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_88; - lean_ctor_set_tag(x_94, 1); -} -lean_ctor_set(x_94, 0, x_3); -lean_ctor_set(x_94, 1, x_92); -if (lean_is_scalar(x_93)) { - x_95 = lean_alloc_ctor(0, 4, 0); -} else { - x_95 = x_93; -} -lean_ctor_set(x_95, 0, x_89); -lean_ctor_set(x_95, 1, x_90); -lean_ctor_set(x_95, 2, x_91); -lean_ctor_set(x_95, 3, x_94); -x_96 = lean_st_ref_set(x_5, x_95, x_87); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec(x_96); -x_98 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; -x_12 = x_98; -x_13 = x_97; -goto block_20; -} -else -{ -lean_object* x_99; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9788,10 +9744,113 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_82); -lean_ctor_set(x_99, 1, x_83); -return x_99; +return x_21; +} +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_21, 0); +x_84 = lean_ctor_get(x_21, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_21); +x_85 = l_Lean_Exception_isInterrupt(x_83); +if (x_85 == 0) +{ +uint8_t x_86; +x_86 = l_Lean_Exception_isRuntime(x_83); +if (x_86 == 0) +{ +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_dec(x_83); +x_87 = lean_st_ref_take(x_5, x_84); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +x_91 = lean_ctor_get(x_88, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +x_93 = lean_ctor_get(x_88, 2); +lean_inc(x_93); +x_94 = lean_ctor_get(x_88, 3); +lean_inc(x_94); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + lean_ctor_release(x_88, 2); + lean_ctor_release(x_88, 3); + x_95 = x_88; +} else { + lean_dec_ref(x_88); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_90)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_90; + lean_ctor_set_tag(x_96, 1); +} +lean_ctor_set(x_96, 0, x_3); +lean_ctor_set(x_96, 1, x_94); +if (lean_is_scalar(x_95)) { + x_97 = lean_alloc_ctor(0, 4, 0); +} else { + x_97 = x_95; +} +lean_ctor_set(x_97, 0, x_91); +lean_ctor_set(x_97, 1, x_92); +lean_ctor_set(x_97, 2, x_93); +lean_ctor_set(x_97, 3, x_96); +x_98 = lean_st_ref_set(x_5, x_97, x_89); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___lambda__2___closed__2; +x_12 = x_100; +x_13 = x_99; +goto block_20; +} +else +{ +lean_object* x_101; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_83); +lean_ctor_set(x_101, 1, x_84); +return x_101; +} +} +else +{ +lean_object* x_102; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_83); +lean_ctor_set(x_102, 1, x_84); +return x_102; } } } @@ -15980,662 +16039,738 @@ if (x_44 == 0) lean_object* x_45; lean_object* x_46; uint8_t x_47; x_45 = lean_ctor_get(x_41, 0); x_46 = lean_ctor_get(x_41, 1); -x_47 = l_Lean_Exception_isRuntime(x_45); +x_47 = l_Lean_Exception_isInterrupt(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; +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +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_free_object(x_41); lean_dec(x_45); -x_48 = l_Lean_Meta_SavedState_restore(x_39, x_5, x_6, x_7, x_8, x_46); +x_49 = l_Lean_Meta_SavedState_restore(x_39, x_5, x_6, x_7, x_8, x_46); lean_dec(x_39); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_49); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_50); +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); -x_53 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__2; +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__2; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_54 = l_Lean_MVarId_contradiction(x_12, x_53, x_5, x_6, x_7, x_8, x_52); -if (lean_obj_tag(x_54) == 0) +x_55 = l_Lean_MVarId_contradiction(x_12, x_54, x_5, x_6, x_7, x_8, x_53); +if (lean_obj_tag(x_55) == 0) { -uint8_t x_55; -lean_dec(x_51); +uint8_t x_56; +lean_dec(x_52); lean_dec(x_12); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) { -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -x_57 = l_Lean_Meta_casesOnStuckLHS___closed__2; -lean_ctor_set(x_54, 0, x_57); -x_30 = x_54; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_57); +x_58 = l_Lean_Meta_casesOnStuckLHS___closed__2; +lean_ctor_set(x_55, 0, x_58); +x_30 = x_55; goto block_37; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = l_Lean_Meta_casesOnStuckLHS___closed__2; -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_30 = x_60; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_55, 1); +lean_inc(x_59); +lean_dec(x_55); +x_60 = l_Lean_Meta_casesOnStuckLHS___closed__2; +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_30 = x_61; goto block_37; } } else { -uint8_t x_61; -x_61 = !lean_is_exclusive(x_54); -if (x_61 == 0) +uint8_t x_62; +x_62 = !lean_is_exclusive(x_55); +if (x_62 == 0) { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_54, 0); -x_63 = lean_ctor_get(x_54, 1); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_55, 0); +x_64 = lean_ctor_get(x_55, 1); +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) { -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_free_object(x_54); -lean_dec(x_62); -x_65 = l_Lean_Meta_SavedState_restore(x_51, x_5, x_6, x_7, x_8, x_63); -lean_dec(x_51); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_66); -x_68 = lean_ctor_get(x_67, 0); +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +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_free_object(x_55); +lean_dec(x_63); +x_67 = l_Lean_Meta_SavedState_restore(x_52, x_5, x_6, x_7, x_8, x_64); +lean_dec(x_52); +x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); lean_dec(x_67); +x_69 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_68); +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); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_70 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_69); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_71); +if (lean_obj_tag(x_72) == 0) { -lean_dec(x_68); +lean_dec(x_70); lean_dec(x_12); -x_30 = x_70; +x_30 = x_72; goto block_37; } else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Lean_Exception_isRuntime(x_72); -if (x_74 == 0) +lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Lean_Exception_isInterrupt(x_74); +if (x_76 == 0) { -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; uint8_t x_222; lean_object* x_223; -lean_free_object(x_70); -lean_dec(x_72); -x_75 = l_Lean_Meta_SavedState_restore(x_68, x_5, x_6, x_7, x_8, x_73); -lean_dec(x_68); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_76); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +uint8_t x_77; +x_77 = l_Lean_Exception_isRuntime(x_74); +if (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; uint8_t x_236; lean_object* x_237; +lean_free_object(x_72); +lean_dec(x_74); +x_78 = l_Lean_Meta_SavedState_restore(x_70, x_5, x_6, x_7, x_8, x_75); +lean_dec(x_70); +x_79 = lean_ctor_get(x_78, 1); lean_inc(x_79); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_80 = x_77; +lean_dec(x_78); +x_80 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_79); +x_81 = lean_ctor_get(x_80, 0); +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; } else { - lean_dec_ref(x_77); - x_80 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } -x_222 = 1; +x_236 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_223 = l_Lean_Meta_simpIfTarget(x_12, x_222, x_5, x_6, x_7, x_8, x_79); -if (lean_obj_tag(x_223) == 0) +x_237 = l_Lean_Meta_simpIfTarget(x_12, x_236, x_5, x_6, x_7, x_8, x_82); +if (lean_obj_tag(x_237) == 0) { -lean_object* x_224; lean_object* x_225; uint8_t x_226; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_name_eq(x_224, x_12); -if (x_226 == 0) +lean_object* x_238; lean_object* x_239; uint8_t x_240; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_240 = lean_name_eq(x_238, x_12); +if (x_240 == 0) { -lean_object* x_227; lean_object* x_228; -lean_dec(x_80); -lean_dec(x_78); +lean_object* x_241; lean_object* x_242; +lean_dec(x_83); +lean_dec(x_81); lean_dec(x_12); -x_227 = lean_box(0); -x_228 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_224, x_227, x_5, x_6, x_7, x_8, x_225); -x_30 = x_228; +x_241 = lean_box(0); +x_242 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_238, x_241, x_5, x_6, x_7, x_8, x_239); +x_30 = x_242; goto block_37; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_224); -x_229 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; -x_230 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_229, x_5, x_6, x_7, x_8, x_225); -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_81 = x_231; -x_82 = x_232; -goto block_221; +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_238); +x_243 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; +x_244 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_243, x_5, x_6, x_7, x_8, x_239); +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_84 = x_245; +x_85 = x_246; +goto block_235; } } else { -lean_object* x_233; lean_object* x_234; -x_233 = lean_ctor_get(x_223, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_223, 1); -lean_inc(x_234); -lean_dec(x_223); -x_81 = x_233; -x_82 = x_234; -goto block_221; +lean_object* x_247; lean_object* x_248; +x_247 = lean_ctor_get(x_237, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_237, 1); +lean_inc(x_248); +lean_dec(x_237); +x_84 = x_247; +x_85 = x_248; +goto block_235; } -block_221: +block_235: { -uint8_t x_83; -x_83 = l_Lean_Exception_isRuntime(x_81); -if (x_83 == 0) +uint8_t x_86; +x_86 = l_Lean_Exception_isInterrupt(x_84); +if (x_86 == 0) { -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_189; +uint8_t x_87; +x_87 = l_Lean_Exception_isRuntime(x_84); +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; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_202; +lean_dec(x_84); +lean_dec(x_83); +x_88 = l_Lean_Meta_SavedState_restore(x_81, x_5, x_6, x_7, x_8, x_85); lean_dec(x_81); -lean_dec(x_80); -x_84 = l_Lean_Meta_SavedState_restore(x_78, x_5, x_6, x_7, x_8, x_82); -lean_dec(x_78); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_86 = x_84; -} else { - lean_dec_ref(x_84); - x_86 = lean_box(0); -} -x_87 = lean_box(0); -x_88 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_85); -x_89 = lean_ctor_get(x_88, 0); +x_89 = lean_ctor_get(x_88, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); if (lean_is_exclusive(x_88)) { lean_ctor_release(x_88, 0); lean_ctor_release(x_88, 1); - x_91 = x_88; + x_90 = x_88; } else { lean_dec_ref(x_88); - x_91 = lean_box(0); + x_90 = lean_box(0); +} +x_91 = lean_box(0); +x_92 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_89); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; +} else { + lean_dec_ref(x_92); + x_95 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_189 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_87, x_5, x_6, x_7, x_8, x_90); -if (lean_obj_tag(x_189) == 0) -{ -lean_object* x_190; -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -if (lean_obj_tag(x_190) == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; -x_193 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_192, x_5, x_6, x_7, x_8, x_191); -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_92 = x_194; -x_93 = x_195; -goto block_188; -} -else -{ -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; -x_196 = lean_ctor_get(x_190, 0); -lean_inc(x_196); -lean_dec(x_190); -x_197 = lean_ctor_get(x_189, 1); -lean_inc(x_197); -lean_dec(x_189); -x_198 = lean_ctor_get(x_196, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_196, 1); -lean_inc(x_199); -lean_dec(x_196); -x_200 = lean_ctor_get(x_198, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -lean_dec(x_198); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_202 = l_Lean_Meta_trySubst(x_200, x_201, x_5, x_6, x_7, x_8, x_197); +x_202 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_91, x_5, x_6, x_7, x_8, x_94); if (lean_obj_tag(x_202) == 0) { -uint8_t x_203; -lean_dec(x_91); -lean_dec(x_89); -lean_dec(x_86); -lean_dec(x_12); -x_203 = !lean_is_exclusive(x_202); -if (x_203 == 0) +lean_object* x_203; +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +if (lean_obj_tag(x_203) == 0) { lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_204 = lean_ctor_get(x_202, 0); -x_205 = lean_ctor_get(x_199, 0); -lean_inc(x_205); -lean_dec(x_199); -x_206 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; -x_207 = lean_array_push(x_206, x_204); -x_208 = lean_array_push(x_207, x_205); -lean_ctor_set(x_202, 0, x_208); -x_30 = x_202; -goto block_37; +x_204 = lean_ctor_get(x_202, 1); +lean_inc(x_204); +lean_dec(x_202); +x_205 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; +x_206 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_205, x_5, x_6, x_7, x_8, x_204); +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +lean_dec(x_206); +x_96 = x_207; +x_97 = x_208; +goto block_201; } else { 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; -x_209 = lean_ctor_get(x_202, 0); +x_209 = lean_ctor_get(x_203, 0); +lean_inc(x_209); +lean_dec(x_203); x_210 = lean_ctor_get(x_202, 1); lean_inc(x_210); -lean_inc(x_209); lean_dec(x_202); -x_211 = lean_ctor_get(x_199, 0); +x_211 = lean_ctor_get(x_209, 0); lean_inc(x_211); -lean_dec(x_199); -x_212 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; -x_213 = lean_array_push(x_212, x_209); -x_214 = lean_array_push(x_213, x_211); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_210); +x_212 = lean_ctor_get(x_209, 1); +lean_inc(x_212); +lean_dec(x_209); +x_213 = lean_ctor_get(x_211, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 1); +lean_inc(x_214); +lean_dec(x_211); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_215 = l_Lean_Meta_trySubst(x_213, x_214, x_5, x_6, x_7, x_8, x_210); +if (lean_obj_tag(x_215) == 0) +{ +uint8_t x_216; +lean_dec(x_95); +lean_dec(x_93); +lean_dec(x_90); +lean_dec(x_12); +x_216 = !lean_is_exclusive(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; +x_217 = lean_ctor_get(x_215, 0); +x_218 = lean_ctor_get(x_212, 0); +lean_inc(x_218); +lean_dec(x_212); +x_219 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; +x_220 = lean_array_push(x_219, x_217); +x_221 = lean_array_push(x_220, x_218); +lean_ctor_set(x_215, 0, x_221); x_30 = x_215; goto block_37; } +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_222 = lean_ctor_get(x_215, 0); +x_223 = lean_ctor_get(x_215, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_215); +x_224 = lean_ctor_get(x_212, 0); +lean_inc(x_224); +lean_dec(x_212); +x_225 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; +x_226 = lean_array_push(x_225, x_222); +x_227 = lean_array_push(x_226, x_224); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_223); +x_30 = x_228; +goto block_37; +} } else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_199); -x_216 = lean_ctor_get(x_202, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_202, 1); -lean_inc(x_217); +lean_object* x_229; lean_object* x_230; +lean_dec(x_212); +x_229 = lean_ctor_get(x_215, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_215, 1); +lean_inc(x_230); +lean_dec(x_215); +x_96 = x_229; +x_97 = x_230; +goto block_201; +} +} +} +else +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_ctor_get(x_202, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_202, 1); +lean_inc(x_232); lean_dec(x_202); -x_92 = x_216; -x_93 = x_217; -goto block_188; +x_96 = x_231; +x_97 = x_232; +goto block_201; } -} -} -else +block_201: { -lean_object* x_218; lean_object* x_219; -x_218 = lean_ctor_get(x_189, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_189, 1); -lean_inc(x_219); -lean_dec(x_189); -x_92 = x_218; -x_93 = x_219; -goto block_188; -} -block_188: +uint8_t x_98; +x_98 = l_Lean_Exception_isInterrupt(x_96); +if (x_98 == 0) { -uint8_t x_94; -x_94 = l_Lean_Exception_isRuntime(x_92); -if (x_94 == 0) +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_96); +if (x_99 == 0) { -lean_object* x_95; uint8_t x_96; -lean_dec(x_92); -lean_dec(x_91); -x_95 = l_Lean_Meta_SavedState_restore(x_89, x_5, x_6, x_7, x_8, x_93); -lean_dec(x_89); -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) +lean_object* x_100; uint8_t x_101; +lean_dec(x_96); +lean_dec(x_95); +x_100 = l_Lean_Meta_SavedState_restore(x_93, x_5, x_6, x_7, x_8, x_97); +lean_dec(x_93); +x_101 = !lean_is_exclusive(x_100); +if (x_101 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_97 = lean_ctor_get(x_95, 1); -x_98 = lean_ctor_get(x_95, 0); -lean_dec(x_98); -x_99 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_97); -x_100 = !lean_is_exclusive(x_99); -if (x_100 == 0) +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_102 = lean_ctor_get(x_100, 1); +x_103 = lean_ctor_get(x_100, 0); +lean_dec(x_103); +x_104 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_102); +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_99, 0); -x_102 = lean_ctor_get(x_99, 1); +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_104, 0); +x_107 = lean_ctor_get(x_104, 1); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_103 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_102); -if (lean_obj_tag(x_103) == 0) +x_108 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_107); +if (lean_obj_tag(x_108) == 0) { -lean_free_object(x_99); -lean_dec(x_101); -lean_free_object(x_95); -lean_dec(x_86); +lean_free_object(x_104); +lean_dec(x_106); +lean_free_object(x_100); +lean_dec(x_90); lean_dec(x_12); -x_30 = x_103; +x_30 = x_108; goto block_37; } else { -uint8_t x_104; -x_104 = !lean_is_exclusive(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_105 = lean_ctor_get(x_103, 0); -x_106 = lean_ctor_get(x_103, 1); -x_107 = l_Lean_Exception_isRuntime(x_105); -if (x_107 == 0) -{ -lean_object* x_108; uint8_t x_109; -lean_free_object(x_103); -lean_dec(x_105); -x_108 = l_Lean_Meta_SavedState_restore(x_101, x_5, x_6, x_7, x_8, x_106); -lean_dec(x_101); +uint8_t x_109; x_109 = !lean_is_exclusive(x_108); if (x_109 == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_110 = lean_ctor_get(x_108, 1); -x_111 = lean_ctor_get(x_108, 0); -lean_dec(x_111); +lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_110 = lean_ctor_get(x_108, 0); +x_111 = lean_ctor_get(x_108, 1); +x_112 = l_Lean_Exception_isInterrupt(x_110); +if (x_112 == 0) +{ +uint8_t x_113; +x_113 = l_Lean_Exception_isRuntime(x_110); +if (x_113 == 0) +{ +lean_object* x_114; uint8_t x_115; +lean_free_object(x_108); +lean_dec(x_110); +x_114 = l_Lean_Meta_SavedState_restore(x_106, x_5, x_6, x_7, x_8, x_111); +lean_dec(x_106); +x_115 = !lean_is_exclusive(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; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_116 = lean_ctor_get(x_114, 1); +x_117 = lean_ctor_get(x_114, 0); +lean_dec(x_117); lean_inc(x_2); -x_112 = l_Lean_MessageData_ofName(x_2); -x_113 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -lean_ctor_set_tag(x_108, 6); -lean_ctor_set(x_108, 1, x_112); -lean_ctor_set(x_108, 0, x_113); -x_114 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -lean_ctor_set_tag(x_99, 6); -lean_ctor_set(x_99, 1, x_114); -lean_ctor_set(x_99, 0, x_108); -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_12); -lean_ctor_set_tag(x_95, 6); -lean_ctor_set(x_95, 1, x_115); -lean_ctor_set(x_95, 0, x_99); -x_116 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_86)) { - x_117 = lean_alloc_ctor(6, 2, 0); +x_118 = l_Lean_MessageData_ofName(x_2); +x_119 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +lean_ctor_set_tag(x_114, 6); +lean_ctor_set(x_114, 1, x_118); +lean_ctor_set(x_114, 0, x_119); +x_120 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +lean_ctor_set_tag(x_104, 6); +lean_ctor_set(x_104, 1, x_120); +lean_ctor_set(x_104, 0, x_114); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_12); +lean_ctor_set_tag(x_100, 6); +lean_ctor_set(x_100, 1, x_121); +lean_ctor_set(x_100, 0, x_104); +x_122 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_90)) { + x_123 = lean_alloc_ctor(6, 2, 0); } else { - x_117 = x_86; - lean_ctor_set_tag(x_117, 6); + x_123 = x_90; + lean_ctor_set_tag(x_123, 6); } -lean_ctor_set(x_117, 0, x_95); -lean_ctor_set(x_117, 1, x_116); -x_118 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_117, x_5, x_6, x_7, x_8, x_110); -x_30 = x_118; +lean_ctor_set(x_123, 0, x_100); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_123, x_5, x_6, x_7, x_8, x_116); +x_30 = x_124; goto block_37; } else { -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; -x_119 = lean_ctor_get(x_108, 1); -lean_inc(x_119); +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; +x_125 = lean_ctor_get(x_114, 1); +lean_inc(x_125); +lean_dec(x_114); +lean_inc(x_2); +x_126 = l_Lean_MessageData_ofName(x_2); +x_127 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +x_128 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +lean_ctor_set_tag(x_104, 6); +lean_ctor_set(x_104, 1, x_129); +lean_ctor_set(x_104, 0, x_128); +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_12); +lean_ctor_set_tag(x_100, 6); +lean_ctor_set(x_100, 1, x_130); +lean_ctor_set(x_100, 0, x_104); +x_131 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_90)) { + x_132 = lean_alloc_ctor(6, 2, 0); +} else { + x_132 = x_90; + lean_ctor_set_tag(x_132, 6); +} +lean_ctor_set(x_132, 0, x_100); +lean_ctor_set(x_132, 1, x_131); +x_133 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_132, x_5, x_6, x_7, x_8, x_125); +x_30 = x_133; +goto block_37; +} +} +else +{ +lean_free_object(x_104); +lean_dec(x_106); +lean_free_object(x_100); +lean_dec(x_90); +lean_dec(x_12); +x_30 = x_108; +goto block_37; +} +} +else +{ +lean_free_object(x_104); +lean_dec(x_106); +lean_free_object(x_100); +lean_dec(x_90); +lean_dec(x_12); +x_30 = x_108; +goto block_37; +} +} +else +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_108, 0); +x_135 = lean_ctor_get(x_108, 1); +lean_inc(x_135); +lean_inc(x_134); lean_dec(x_108); -lean_inc(x_2); -x_120 = l_Lean_MessageData_ofName(x_2); -x_121 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -x_122 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -lean_ctor_set_tag(x_99, 6); -lean_ctor_set(x_99, 1, x_123); -lean_ctor_set(x_99, 0, x_122); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_12); -lean_ctor_set_tag(x_95, 6); -lean_ctor_set(x_95, 1, x_124); -lean_ctor_set(x_95, 0, x_99); -x_125 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_86)) { - x_126 = lean_alloc_ctor(6, 2, 0); +x_136 = l_Lean_Exception_isInterrupt(x_134); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = l_Lean_Exception_isRuntime(x_134); +if (x_137 == 0) +{ +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_dec(x_134); +x_138 = l_Lean_Meta_SavedState_restore(x_106, x_5, x_6, x_7, x_8, x_135); +lean_dec(x_106); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; } else { - x_126 = x_86; - lean_ctor_set_tag(x_126, 6); -} -lean_ctor_set(x_126, 0, x_95); -lean_ctor_set(x_126, 1, x_125); -x_127 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_126, x_5, x_6, x_7, x_8, x_119); -x_30 = x_127; -goto block_37; -} -} -else -{ -lean_free_object(x_99); -lean_dec(x_101); -lean_free_object(x_95); -lean_dec(x_86); -lean_dec(x_12); -x_30 = x_103; -goto block_37; -} -} -else -{ -lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_128 = lean_ctor_get(x_103, 0); -x_129 = lean_ctor_get(x_103, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_103); -x_130 = l_Lean_Exception_isRuntime(x_128); -if (x_130 == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_128); -x_131 = l_Lean_Meta_SavedState_restore(x_101, x_5, x_6, x_7, x_8, x_129); -lean_dec(x_101); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; -} else { - lean_dec_ref(x_131); - x_133 = lean_box(0); + lean_dec_ref(x_138); + x_140 = lean_box(0); } lean_inc(x_2); -x_134 = l_Lean_MessageData_ofName(x_2); -x_135 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_133)) { - x_136 = lean_alloc_ctor(6, 2, 0); +x_141 = l_Lean_MessageData_ofName(x_2); +x_142 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_140)) { + x_143 = lean_alloc_ctor(6, 2, 0); } else { - x_136 = x_133; - lean_ctor_set_tag(x_136, 6); + x_143 = x_140; + lean_ctor_set_tag(x_143, 6); } -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -x_137 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -lean_ctor_set_tag(x_99, 6); -lean_ctor_set(x_99, 1, x_137); -lean_ctor_set(x_99, 0, x_136); -x_138 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_138, 0, x_12); -lean_ctor_set_tag(x_95, 6); -lean_ctor_set(x_95, 1, x_138); -lean_ctor_set(x_95, 0, x_99); -x_139 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_86)) { - x_140 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +lean_ctor_set_tag(x_104, 6); +lean_ctor_set(x_104, 1, x_144); +lean_ctor_set(x_104, 0, x_143); +x_145 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_145, 0, x_12); +lean_ctor_set_tag(x_100, 6); +lean_ctor_set(x_100, 1, x_145); +lean_ctor_set(x_100, 0, x_104); +x_146 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_90)) { + x_147 = lean_alloc_ctor(6, 2, 0); } else { - x_140 = x_86; - lean_ctor_set_tag(x_140, 6); + x_147 = x_90; + lean_ctor_set_tag(x_147, 6); } -lean_ctor_set(x_140, 0, x_95); -lean_ctor_set(x_140, 1, x_139); -x_141 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_140, x_5, x_6, x_7, x_8, x_132); -x_30 = x_141; +lean_ctor_set(x_147, 0, x_100); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_147, x_5, x_6, x_7, x_8, x_139); +x_30 = x_148; goto block_37; } else { -lean_object* x_142; -lean_free_object(x_99); -lean_dec(x_101); -lean_free_object(x_95); -lean_dec(x_86); +lean_object* x_149; +lean_free_object(x_104); +lean_dec(x_106); +lean_free_object(x_100); +lean_dec(x_90); lean_dec(x_12); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_128); -lean_ctor_set(x_142, 1, x_129); -x_30 = x_142; +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_134); +lean_ctor_set(x_149, 1, x_135); +x_30 = x_149; goto block_37; } } -} -} else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_99, 0); -x_144 = lean_ctor_get(x_99, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_99); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_145 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_144); -if (lean_obj_tag(x_145) == 0) -{ -lean_dec(x_143); -lean_free_object(x_95); -lean_dec(x_86); +lean_object* x_150; +lean_free_object(x_104); +lean_dec(x_106); +lean_free_object(x_100); +lean_dec(x_90); lean_dec(x_12); -x_30 = x_145; +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_134); +lean_ctor_set(x_150, 1, x_135); +x_30 = x_150; goto block_37; } +} +} +} else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_148 = x_145; -} else { - lean_dec_ref(x_145); - x_148 = lean_box(0); -} -x_149 = l_Lean_Exception_isRuntime(x_146); -if (x_149 == 0) -{ -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_dec(x_148); -lean_dec(x_146); -x_150 = l_Lean_Meta_SavedState_restore(x_143, x_5, x_6, x_7, x_8, x_147); -lean_dec(x_143); -x_151 = lean_ctor_get(x_150, 1); +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_104, 0); +x_152 = lean_ctor_get(x_104, 1); +lean_inc(x_152); lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; +lean_dec(x_104); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_153 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_152); +if (lean_obj_tag(x_153) == 0) +{ +lean_dec(x_151); +lean_free_object(x_100); +lean_dec(x_90); +lean_dec(x_12); +x_30 = x_153; +goto block_37; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_156 = x_153; } else { - lean_dec_ref(x_150); - x_152 = lean_box(0); + lean_dec_ref(x_153); + x_156 = lean_box(0); +} +x_157 = l_Lean_Exception_isInterrupt(x_154); +if (x_157 == 0) +{ +uint8_t x_158; +x_158 = l_Lean_Exception_isRuntime(x_154); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_156); +lean_dec(x_154); +x_159 = l_Lean_Meta_SavedState_restore(x_151, x_5, x_6, x_7, x_8, x_155); +lean_dec(x_151); +x_160 = lean_ctor_get(x_159, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + x_161 = x_159; +} else { + lean_dec_ref(x_159); + x_161 = lean_box(0); } lean_inc(x_2); -x_153 = l_Lean_MessageData_ofName(x_2); -x_154 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_152)) { - x_155 = lean_alloc_ctor(6, 2, 0); +x_162 = l_Lean_MessageData_ofName(x_2); +x_163 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_161)) { + x_164 = lean_alloc_ctor(6, 2, 0); } else { - x_155 = x_152; - lean_ctor_set_tag(x_155, 6); + x_164 = x_161; + lean_ctor_set_tag(x_164, 6); } -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -x_157 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_157, 0, x_155); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_12); -lean_ctor_set_tag(x_95, 6); -lean_ctor_set(x_95, 1, x_158); -lean_ctor_set(x_95, 0, x_157); -x_159 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_86)) { - x_160 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_162); +x_165 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +x_166 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +x_167 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_167, 0, x_12); +lean_ctor_set_tag(x_100, 6); +lean_ctor_set(x_100, 1, x_167); +lean_ctor_set(x_100, 0, x_166); +x_168 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_90)) { + x_169 = lean_alloc_ctor(6, 2, 0); } else { - x_160 = x_86; - lean_ctor_set_tag(x_160, 6); + x_169 = x_90; + lean_ctor_set_tag(x_169, 6); } -lean_ctor_set(x_160, 0, x_95); -lean_ctor_set(x_160, 1, x_159); -x_161 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_160, x_5, x_6, x_7, x_8, x_151); -x_30 = x_161; +lean_ctor_set(x_169, 0, x_100); +lean_ctor_set(x_169, 1, x_168); +x_170 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_169, x_5, x_6, x_7, x_8, x_160); +x_30 = x_170; goto block_37; } else { -lean_object* x_162; -lean_dec(x_143); -lean_free_object(x_95); -lean_dec(x_86); +lean_object* x_171; +lean_dec(x_151); +lean_free_object(x_100); +lean_dec(x_90); lean_dec(x_12); -if (lean_is_scalar(x_148)) { - x_162 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_156)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_162 = x_148; + x_171 = x_156; } -lean_ctor_set(x_162, 0, x_146); -lean_ctor_set(x_162, 1, x_147); -x_30 = x_162; +lean_ctor_set(x_171, 0, x_154); +lean_ctor_set(x_171, 1, x_155); +x_30 = x_171; +goto block_37; +} +} +else +{ +lean_object* x_172; +lean_dec(x_151); +lean_free_object(x_100); +lean_dec(x_90); +lean_dec(x_12); +if (lean_is_scalar(x_156)) { + x_172 = lean_alloc_ctor(1, 2, 0); +} else { + x_172 = x_156; +} +lean_ctor_set(x_172, 0, x_154); +lean_ctor_set(x_172, 1, x_155); +x_30 = x_172; goto block_37; } } @@ -16643,1055 +16778,1230 @@ goto block_37; } else { -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_95, 1); -lean_inc(x_163); -lean_dec(x_95); -x_164 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_163); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_167 = x_164; +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 = lean_ctor_get(x_100, 1); +lean_inc(x_173); +lean_dec(x_100); +x_174 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_173); +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; } else { - lean_dec_ref(x_164); - x_167 = lean_box(0); + lean_dec_ref(x_174); + x_177 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_168 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_166); -if (lean_obj_tag(x_168) == 0) +x_178 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_176); +if (lean_obj_tag(x_178) == 0) { -lean_dec(x_167); -lean_dec(x_165); -lean_dec(x_86); +lean_dec(x_177); +lean_dec(x_175); +lean_dec(x_90); lean_dec(x_12); -x_30 = x_168; +x_30 = x_178; goto block_37; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_171 = x_168; +lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_181 = x_178; } else { - lean_dec_ref(x_168); - x_171 = lean_box(0); + lean_dec_ref(x_178); + x_181 = lean_box(0); } -x_172 = l_Lean_Exception_isRuntime(x_169); -if (x_172 == 0) +x_182 = l_Lean_Exception_isInterrupt(x_179); +if (x_182 == 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; 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_dec(x_171); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_165, x_5, x_6, x_7, x_8, x_170); -lean_dec(x_165); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +uint8_t x_183; +x_183 = l_Lean_Exception_isRuntime(x_179); +if (x_183 == 0) +{ +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; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_dec(x_181); +lean_dec(x_179); +x_184 = l_Lean_Meta_SavedState_restore(x_175, x_5, x_6, x_7, x_8, x_180); +lean_dec(x_175); +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + x_186 = x_184; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_184); + x_186 = lean_box(0); } lean_inc(x_2); -x_176 = l_Lean_MessageData_ofName(x_2); -x_177 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(6, 2, 0); +x_187 = l_Lean_MessageData_ofName(x_2); +x_188 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_186)) { + x_189 = lean_alloc_ctor(6, 2, 0); } else { - x_178 = x_175; - lean_ctor_set_tag(x_178, 6); + x_189 = x_186; + lean_ctor_set_tag(x_189, 6); } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_176); -x_179 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -if (lean_is_scalar(x_167)) { - x_180 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +if (lean_is_scalar(x_177)) { + x_191 = lean_alloc_ctor(6, 2, 0); } else { - x_180 = x_167; - lean_ctor_set_tag(x_180, 6); + x_191 = x_177; + lean_ctor_set_tag(x_191, 6); } -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -x_181 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_181, 0, x_12); -x_182 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -x_183 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_86)) { - x_184 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +x_192 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_192, 0, x_12); +x_193 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +x_194 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_90)) { + x_195 = lean_alloc_ctor(6, 2, 0); } else { - x_184 = x_86; - lean_ctor_set_tag(x_184, 6); + x_195 = x_90; + lean_ctor_set_tag(x_195, 6); } -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_183); -x_185 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_184, x_5, x_6, x_7, x_8, x_174); -x_30 = x_185; +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +x_196 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_195, x_5, x_6, x_7, x_8, x_185); +x_30 = x_196; goto block_37; } else { -lean_object* x_186; -lean_dec(x_167); -lean_dec(x_165); -lean_dec(x_86); +lean_object* x_197; +lean_dec(x_177); +lean_dec(x_175); +lean_dec(x_90); lean_dec(x_12); -if (lean_is_scalar(x_171)) { - x_186 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_181)) { + x_197 = lean_alloc_ctor(1, 2, 0); } else { - x_186 = x_171; + x_197 = x_181; } -lean_ctor_set(x_186, 0, x_169); -lean_ctor_set(x_186, 1, x_170); -x_30 = x_186; +lean_ctor_set(x_197, 0, x_179); +lean_ctor_set(x_197, 1, x_180); +x_30 = x_197; goto block_37; } } -} -} else { -lean_object* x_187; -lean_dec(x_89); -lean_dec(x_86); +lean_object* x_198; +lean_dec(x_177); +lean_dec(x_175); +lean_dec(x_90); lean_dec(x_12); -if (lean_is_scalar(x_91)) { - x_187 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_181)) { + x_198 = lean_alloc_ctor(1, 2, 0); } else { - x_187 = x_91; - lean_ctor_set_tag(x_187, 1); + x_198 = x_181; } -lean_ctor_set(x_187, 0, x_92); -lean_ctor_set(x_187, 1, x_93); -x_30 = x_187; +lean_ctor_set(x_198, 0, x_179); +lean_ctor_set(x_198, 1, x_180); +x_30 = x_198; goto block_37; } } } +} else { -lean_object* x_220; -lean_dec(x_78); +lean_object* x_199; +lean_dec(x_93); +lean_dec(x_90); lean_dec(x_12); -if (lean_is_scalar(x_80)) { - x_220 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_199 = lean_alloc_ctor(1, 2, 0); } else { - x_220 = x_80; - lean_ctor_set_tag(x_220, 1); + x_199 = x_95; + lean_ctor_set_tag(x_199, 1); } -lean_ctor_set(x_220, 0, x_81); -lean_ctor_set(x_220, 1, x_82); -x_30 = x_220; +lean_ctor_set(x_199, 0, x_96); +lean_ctor_set(x_199, 1, x_97); +x_30 = x_199; goto block_37; } } -} else { -lean_dec(x_68); +lean_object* x_200; +lean_dec(x_93); +lean_dec(x_90); lean_dec(x_12); -x_30 = x_70; +if (lean_is_scalar(x_95)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_95; + lean_ctor_set_tag(x_200, 1); +} +lean_ctor_set(x_200, 0, x_96); +lean_ctor_set(x_200, 1, x_97); +x_30 = x_200; +goto block_37; +} +} +} +else +{ +lean_object* x_233; +lean_dec(x_81); +lean_dec(x_12); +if (lean_is_scalar(x_83)) { + x_233 = lean_alloc_ctor(1, 2, 0); +} else { + x_233 = x_83; + lean_ctor_set_tag(x_233, 1); +} +lean_ctor_set(x_233, 0, x_84); +lean_ctor_set(x_233, 1, x_85); +x_30 = x_233; goto block_37; } } else { -lean_object* x_235; lean_object* x_236; uint8_t x_237; -x_235 = lean_ctor_get(x_70, 0); -x_236 = lean_ctor_get(x_70, 1); -lean_inc(x_236); -lean_inc(x_235); +lean_object* x_234; +lean_dec(x_81); +lean_dec(x_12); +if (lean_is_scalar(x_83)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_83; + lean_ctor_set_tag(x_234, 1); +} +lean_ctor_set(x_234, 0, x_84); +lean_ctor_set(x_234, 1, x_85); +x_30 = x_234; +goto block_37; +} +} +} +else +{ lean_dec(x_70); -x_237 = l_Lean_Exception_isRuntime(x_235); -if (x_237 == 0) -{ -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; uint8_t x_314; lean_object* x_315; -lean_dec(x_235); -x_238 = l_Lean_Meta_SavedState_restore(x_68, x_5, x_6, x_7, x_8, x_236); -lean_dec(x_68); -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -lean_dec(x_238); -x_240 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_239); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_243 = x_240; -} else { - lean_dec_ref(x_240); - x_243 = lean_box(0); -} -x_314 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_315 = l_Lean_Meta_simpIfTarget(x_12, x_314, x_5, x_6, x_7, x_8, x_242); -if (lean_obj_tag(x_315) == 0) -{ -lean_object* x_316; lean_object* x_317; uint8_t x_318; -x_316 = lean_ctor_get(x_315, 0); -lean_inc(x_316); -x_317 = lean_ctor_get(x_315, 1); -lean_inc(x_317); -lean_dec(x_315); -x_318 = lean_name_eq(x_316, x_12); -if (x_318 == 0) -{ -lean_object* x_319; lean_object* x_320; -lean_dec(x_243); -lean_dec(x_241); lean_dec(x_12); -x_319 = lean_box(0); -x_320 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_316, x_319, x_5, x_6, x_7, x_8, x_317); -x_30 = x_320; +x_30 = x_72; goto block_37; } +} else { -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; -lean_dec(x_316); -x_321 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; -x_322 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_321, x_5, x_6, x_7, x_8, x_317); -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_244 = x_323; -x_245 = x_324; -goto block_313; +lean_dec(x_70); +lean_dec(x_12); +x_30 = x_72; +goto block_37; } } else { -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_315, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_315, 1); -lean_inc(x_326); -lean_dec(x_315); -x_244 = x_325; -x_245 = x_326; -goto block_313; -} -block_313: +lean_object* x_249; lean_object* x_250; uint8_t x_251; +x_249 = lean_ctor_get(x_72, 0); +x_250 = lean_ctor_get(x_72, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_72); +x_251 = l_Lean_Exception_isInterrupt(x_249); +if (x_251 == 0) { -uint8_t x_246; -x_246 = l_Lean_Exception_isRuntime(x_244); -if (x_246 == 0) +uint8_t x_252; +x_252 = l_Lean_Exception_isRuntime(x_249); +if (x_252 == 0) { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_286; -lean_dec(x_244); -lean_dec(x_243); -x_247 = l_Lean_Meta_SavedState_restore(x_241, x_5, x_6, x_7, x_8, x_245); -lean_dec(x_241); -x_248 = lean_ctor_get(x_247, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_249 = x_247; -} else { - lean_dec_ref(x_247); - x_249 = lean_box(0); -} -x_250 = lean_box(0); -x_251 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_248); -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -if (lean_is_exclusive(x_251)) { - lean_ctor_release(x_251, 0); - lean_ctor_release(x_251, 1); - x_254 = x_251; -} else { - lean_dec_ref(x_251); - x_254 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_286 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_250, x_5, x_6, x_7, x_8, x_253); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -if (lean_obj_tag(x_287) == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec(x_286); -x_289 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; -x_290 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_289, x_5, x_6, x_7, x_8, x_288); -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_290, 1); -lean_inc(x_292); -lean_dec(x_290); -x_255 = x_291; -x_256 = x_292; -goto block_285; -} -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; lean_object* x_299; -x_293 = lean_ctor_get(x_287, 0); -lean_inc(x_293); -lean_dec(x_287); -x_294 = lean_ctor_get(x_286, 1); -lean_inc(x_294); -lean_dec(x_286); -x_295 = lean_ctor_get(x_293, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_293, 1); -lean_inc(x_296); -lean_dec(x_293); -x_297 = lean_ctor_get(x_295, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_295, 1); -lean_inc(x_298); -lean_dec(x_295); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_299 = l_Lean_Meta_trySubst(x_297, x_298, x_5, x_6, x_7, x_8, x_294); -if (lean_obj_tag(x_299) == 0) -{ -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_dec(x_254); -lean_dec(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; uint8_t x_335; lean_object* x_336; lean_dec(x_249); +x_253 = l_Lean_Meta_SavedState_restore(x_70, x_5, x_6, x_7, x_8, x_250); +lean_dec(x_70); +x_254 = lean_ctor_get(x_253, 1); +lean_inc(x_254); +lean_dec(x_253); +x_255 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_254); +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); +} +x_335 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_336 = l_Lean_Meta_simpIfTarget(x_12, x_335, x_5, x_6, x_7, x_8, x_257); +if (lean_obj_tag(x_336) == 0) +{ +lean_object* x_337; lean_object* x_338; uint8_t 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_name_eq(x_337, x_12); +if (x_339 == 0) +{ +lean_object* x_340; lean_object* x_341; +lean_dec(x_258); +lean_dec(x_256); lean_dec(x_12); -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -if (lean_is_exclusive(x_299)) { - lean_ctor_release(x_299, 0); - lean_ctor_release(x_299, 1); - x_302 = x_299; -} else { - lean_dec_ref(x_299); - x_302 = lean_box(0); -} -x_303 = lean_ctor_get(x_296, 0); -lean_inc(x_303); -lean_dec(x_296); -x_304 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; -x_305 = lean_array_push(x_304, x_300); -x_306 = lean_array_push(x_305, x_303); -if (lean_is_scalar(x_302)) { - x_307 = lean_alloc_ctor(0, 2, 0); -} else { - x_307 = x_302; -} -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_301); -x_30 = x_307; +x_340 = lean_box(0); +x_341 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_337, x_340, x_5, x_6, x_7, x_8, x_338); +x_30 = x_341; goto block_37; } else { -lean_object* x_308; lean_object* x_309; -lean_dec(x_296); -x_308 = lean_ctor_get(x_299, 0); +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_dec(x_337); +x_342 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; +x_343 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_342, x_5, x_6, x_7, x_8, x_338); +x_344 = lean_ctor_get(x_343, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_343, 1); +lean_inc(x_345); +lean_dec(x_343); +x_259 = x_344; +x_260 = x_345; +goto block_334; +} +} +else +{ +lean_object* x_346; lean_object* x_347; +x_346 = lean_ctor_get(x_336, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_336, 1); +lean_inc(x_347); +lean_dec(x_336); +x_259 = x_346; +x_260 = x_347; +goto block_334; +} +block_334: +{ +uint8_t x_261; +x_261 = l_Lean_Exception_isInterrupt(x_259); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = l_Lean_Exception_isRuntime(x_259); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_306; +lean_dec(x_259); +lean_dec(x_258); +x_263 = l_Lean_Meta_SavedState_restore(x_256, x_5, x_6, x_7, x_8, x_260); +lean_dec(x_256); +x_264 = lean_ctor_get(x_263, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + x_265 = x_263; +} else { + lean_dec_ref(x_263); + x_265 = lean_box(0); +} +x_266 = lean_box(0); +x_267 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_264); +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_270 = x_267; +} else { + lean_dec_ref(x_267); + x_270 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_306 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_266, x_5, x_6, x_7, x_8, x_269); +if (lean_obj_tag(x_306) == 0) +{ +lean_object* x_307; +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +if (lean_obj_tag(x_307) == 0) +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_308 = lean_ctor_get(x_306, 1); lean_inc(x_308); -x_309 = lean_ctor_get(x_299, 1); -lean_inc(x_309); -lean_dec(x_299); -x_255 = x_308; -x_256 = x_309; -goto block_285; +lean_dec(x_306); +x_309 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; +x_310 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_309, x_5, x_6, x_7, x_8, x_308); +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_310, 1); +lean_inc(x_312); +lean_dec(x_310); +x_271 = x_311; +x_272 = x_312; +goto block_305; +} +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; +x_313 = lean_ctor_get(x_307, 0); +lean_inc(x_313); +lean_dec(x_307); +x_314 = lean_ctor_get(x_306, 1); +lean_inc(x_314); +lean_dec(x_306); +x_315 = lean_ctor_get(x_313, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_313, 1); +lean_inc(x_316); +lean_dec(x_313); +x_317 = lean_ctor_get(x_315, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_315, 1); +lean_inc(x_318); +lean_dec(x_315); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_319 = l_Lean_Meta_trySubst(x_317, x_318, x_5, x_6, x_7, x_8, x_314); +if (lean_obj_tag(x_319) == 0) +{ +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_dec(x_270); +lean_dec(x_268); +lean_dec(x_265); +lean_dec(x_12); +x_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_319)) { + lean_ctor_release(x_319, 0); + lean_ctor_release(x_319, 1); + x_322 = x_319; +} else { + lean_dec_ref(x_319); + x_322 = lean_box(0); +} +x_323 = lean_ctor_get(x_316, 0); +lean_inc(x_323); +lean_dec(x_316); +x_324 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; +x_325 = lean_array_push(x_324, x_320); +x_326 = lean_array_push(x_325, x_323); +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); +x_30 = x_327; +goto block_37; +} +else +{ +lean_object* x_328; lean_object* x_329; +lean_dec(x_316); +x_328 = lean_ctor_get(x_319, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_319, 1); +lean_inc(x_329); +lean_dec(x_319); +x_271 = x_328; +x_272 = x_329; +goto block_305; } } } else { -lean_object* x_310; lean_object* x_311; -x_310 = lean_ctor_get(x_286, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_286, 1); -lean_inc(x_311); -lean_dec(x_286); -x_255 = x_310; -x_256 = x_311; -goto block_285; +lean_object* x_330; lean_object* x_331; +x_330 = lean_ctor_get(x_306, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_306, 1); +lean_inc(x_331); +lean_dec(x_306); +x_271 = x_330; +x_272 = x_331; +goto block_305; } -block_285: +block_305: { -uint8_t x_257; -x_257 = l_Lean_Exception_isRuntime(x_255); -if (x_257 == 0) +uint8_t x_273; +x_273 = l_Lean_Exception_isInterrupt(x_271); +if (x_273 == 0) { -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_dec(x_255); -lean_dec(x_254); -x_258 = l_Lean_Meta_SavedState_restore(x_252, x_5, x_6, x_7, x_8, x_256); -lean_dec(x_252); -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_260 = x_258; +uint8_t x_274; +x_274 = l_Lean_Exception_isRuntime(x_271); +if (x_274 == 0) +{ +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_dec(x_271); +lean_dec(x_270); +x_275 = l_Lean_Meta_SavedState_restore(x_268, x_5, x_6, x_7, x_8, x_272); +lean_dec(x_268); +x_276 = lean_ctor_get(x_275, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_277 = x_275; } else { - lean_dec_ref(x_258); - x_260 = lean_box(0); + lean_dec_ref(x_275); + x_277 = lean_box(0); } -x_261 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_259); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_264 = x_261; +x_278 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_276); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_281 = x_278; } else { - lean_dec_ref(x_261); - x_264 = lean_box(0); + lean_dec_ref(x_278); + x_281 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_265 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_263); -if (lean_obj_tag(x_265) == 0) +x_282 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_280); +if (lean_obj_tag(x_282) == 0) { -lean_dec(x_264); -lean_dec(x_262); -lean_dec(x_260); -lean_dec(x_249); +lean_dec(x_281); +lean_dec(x_279); +lean_dec(x_277); +lean_dec(x_265); lean_dec(x_12); -x_30 = x_265; -goto block_37; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_268 = x_265; -} else { - lean_dec_ref(x_265); - x_268 = lean_box(0); -} -x_269 = l_Lean_Exception_isRuntime(x_266); -if (x_269 == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -lean_dec(x_268); -lean_dec(x_266); -x_270 = l_Lean_Meta_SavedState_restore(x_262, x_5, x_6, x_7, x_8, x_267); -lean_dec(x_262); -x_271 = lean_ctor_get(x_270, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - x_272 = x_270; -} else { - lean_dec_ref(x_270); - x_272 = lean_box(0); -} -lean_inc(x_2); -x_273 = l_Lean_MessageData_ofName(x_2); -x_274 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_272)) { - x_275 = lean_alloc_ctor(6, 2, 0); -} else { - x_275 = x_272; - lean_ctor_set_tag(x_275, 6); -} -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_273); -x_276 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -if (lean_is_scalar(x_264)) { - x_277 = lean_alloc_ctor(6, 2, 0); -} else { - x_277 = x_264; - lean_ctor_set_tag(x_277, 6); -} -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_276); -x_278 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_278, 0, x_12); -if (lean_is_scalar(x_260)) { - x_279 = lean_alloc_ctor(6, 2, 0); -} else { - x_279 = x_260; - lean_ctor_set_tag(x_279, 6); -} -lean_ctor_set(x_279, 0, x_277); -lean_ctor_set(x_279, 1, x_278); -x_280 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_249)) { - x_281 = lean_alloc_ctor(6, 2, 0); -} else { - x_281 = x_249; - lean_ctor_set_tag(x_281, 6); -} -lean_ctor_set(x_281, 0, x_279); -lean_ctor_set(x_281, 1, x_280); -x_282 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_281, x_5, x_6, x_7, x_8, x_271); x_30 = x_282; goto block_37; } else { -lean_object* x_283; -lean_dec(x_264); -lean_dec(x_262); -lean_dec(x_260); -lean_dec(x_249); -lean_dec(x_12); -if (lean_is_scalar(x_268)) { - x_283 = lean_alloc_ctor(1, 2, 0); +lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + x_285 = x_282; } else { - x_283 = x_268; + lean_dec_ref(x_282); + x_285 = lean_box(0); } -lean_ctor_set(x_283, 0, x_266); -lean_ctor_set(x_283, 1, x_267); -x_30 = x_283; -goto block_37; -} -} -} -else +x_286 = l_Lean_Exception_isInterrupt(x_283); +if (x_286 == 0) { -lean_object* x_284; -lean_dec(x_252); -lean_dec(x_249); -lean_dec(x_12); -if (lean_is_scalar(x_254)) { - x_284 = lean_alloc_ctor(1, 2, 0); +uint8_t x_287; +x_287 = l_Lean_Exception_isRuntime(x_283); +if (x_287 == 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_dec(x_285); +lean_dec(x_283); +x_288 = l_Lean_Meta_SavedState_restore(x_279, x_5, x_6, x_7, x_8, x_284); +lean_dec(x_279); +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +if (lean_is_exclusive(x_288)) { + lean_ctor_release(x_288, 0); + lean_ctor_release(x_288, 1); + x_290 = x_288; } else { - x_284 = x_254; - lean_ctor_set_tag(x_284, 1); + lean_dec_ref(x_288); + x_290 = lean_box(0); } -lean_ctor_set(x_284, 0, x_255); -lean_ctor_set(x_284, 1, x_256); -x_30 = x_284; -goto block_37; -} -} -} -else -{ -lean_object* x_312; -lean_dec(x_241); -lean_dec(x_12); -if (lean_is_scalar(x_243)) { - x_312 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2); +x_291 = l_Lean_MessageData_ofName(x_2); +x_292 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_290)) { + x_293 = lean_alloc_ctor(6, 2, 0); } else { - x_312 = x_243; - lean_ctor_set_tag(x_312, 1); + x_293 = x_290; + lean_ctor_set_tag(x_293, 6); } -lean_ctor_set(x_312, 0, x_244); -lean_ctor_set(x_312, 1, x_245); -x_30 = x_312; +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_291); +x_294 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +if (lean_is_scalar(x_281)) { + x_295 = lean_alloc_ctor(6, 2, 0); +} else { + x_295 = x_281; + lean_ctor_set_tag(x_295, 6); +} +lean_ctor_set(x_295, 0, x_293); +lean_ctor_set(x_295, 1, x_294); +x_296 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_296, 0, x_12); +if (lean_is_scalar(x_277)) { + x_297 = lean_alloc_ctor(6, 2, 0); +} else { + x_297 = x_277; + lean_ctor_set_tag(x_297, 6); +} +lean_ctor_set(x_297, 0, x_295); +lean_ctor_set(x_297, 1, x_296); +x_298 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_265)) { + x_299 = lean_alloc_ctor(6, 2, 0); +} else { + x_299 = x_265; + lean_ctor_set_tag(x_299, 6); +} +lean_ctor_set(x_299, 0, x_297); +lean_ctor_set(x_299, 1, x_298); +x_300 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_299, x_5, x_6, x_7, x_8, x_289); +x_30 = x_300; goto block_37; } -} -} else { -lean_object* x_327; -lean_dec(x_68); +lean_object* x_301; +lean_dec(x_281); +lean_dec(x_279); +lean_dec(x_277); +lean_dec(x_265); lean_dec(x_12); -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_235); -lean_ctor_set(x_327, 1, x_236); -x_30 = x_327; +if (lean_is_scalar(x_285)) { + x_301 = lean_alloc_ctor(1, 2, 0); +} else { + x_301 = x_285; +} +lean_ctor_set(x_301, 0, x_283); +lean_ctor_set(x_301, 1, x_284); +x_30 = x_301; goto block_37; } } -} -} else { -lean_dec(x_51); +lean_object* x_302; +lean_dec(x_281); +lean_dec(x_279); +lean_dec(x_277); +lean_dec(x_265); lean_dec(x_12); -x_30 = x_54; +if (lean_is_scalar(x_285)) { + x_302 = lean_alloc_ctor(1, 2, 0); +} else { + x_302 = x_285; +} +lean_ctor_set(x_302, 0, x_283); +lean_ctor_set(x_302, 1, x_284); +x_30 = x_302; +goto block_37; +} +} +} +else +{ +lean_object* x_303; +lean_dec(x_268); +lean_dec(x_265); +lean_dec(x_12); +if (lean_is_scalar(x_270)) { + x_303 = lean_alloc_ctor(1, 2, 0); +} else { + x_303 = x_270; + lean_ctor_set_tag(x_303, 1); +} +lean_ctor_set(x_303, 0, x_271); +lean_ctor_set(x_303, 1, x_272); +x_30 = x_303; goto block_37; } } else { -lean_object* x_328; lean_object* x_329; uint8_t x_330; -x_328 = lean_ctor_get(x_54, 0); -x_329 = lean_ctor_get(x_54, 1); -lean_inc(x_329); -lean_inc(x_328); -lean_dec(x_54); -x_330 = l_Lean_Exception_isRuntime(x_328); -if (x_330 == 0) +lean_object* x_304; +lean_dec(x_268); +lean_dec(x_265); +lean_dec(x_12); +if (lean_is_scalar(x_270)) { + x_304 = lean_alloc_ctor(1, 2, 0); +} else { + x_304 = x_270; + lean_ctor_set_tag(x_304, 1); +} +lean_ctor_set(x_304, 0, x_271); +lean_ctor_set(x_304, 1, x_272); +x_30 = x_304; +goto block_37; +} +} +} +else { -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_dec(x_328); -x_331 = l_Lean_Meta_SavedState_restore(x_51, x_5, x_6, x_7, x_8, x_329); -lean_dec(x_51); -x_332 = lean_ctor_get(x_331, 1); -lean_inc(x_332); -lean_dec(x_331); -x_333 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_332); -x_334 = lean_ctor_get(x_333, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_333, 1); -lean_inc(x_335); -lean_dec(x_333); +lean_object* x_332; +lean_dec(x_256); +lean_dec(x_12); +if (lean_is_scalar(x_258)) { + x_332 = lean_alloc_ctor(1, 2, 0); +} else { + x_332 = x_258; + lean_ctor_set_tag(x_332, 1); +} +lean_ctor_set(x_332, 0, x_259); +lean_ctor_set(x_332, 1, x_260); +x_30 = x_332; +goto block_37; +} +} +else +{ +lean_object* x_333; +lean_dec(x_256); +lean_dec(x_12); +if (lean_is_scalar(x_258)) { + x_333 = lean_alloc_ctor(1, 2, 0); +} else { + x_333 = x_258; + lean_ctor_set_tag(x_333, 1); +} +lean_ctor_set(x_333, 0, x_259); +lean_ctor_set(x_333, 1, x_260); +x_30 = x_333; +goto block_37; +} +} +} +else +{ +lean_object* x_348; +lean_dec(x_70); +lean_dec(x_12); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_249); +lean_ctor_set(x_348, 1, x_250); +x_30 = x_348; +goto block_37; +} +} +else +{ +lean_object* x_349; +lean_dec(x_70); +lean_dec(x_12); +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_249); +lean_ctor_set(x_349, 1, x_250); +x_30 = x_349; +goto block_37; +} +} +} +} +else +{ +lean_dec(x_52); +lean_dec(x_12); +x_30 = x_55; +goto block_37; +} +} +else +{ +lean_dec(x_52); +lean_dec(x_12); +x_30 = x_55; +goto block_37; +} +} +else +{ +lean_object* x_350; lean_object* x_351; uint8_t x_352; +x_350 = lean_ctor_get(x_55, 0); +x_351 = lean_ctor_get(x_55, 1); +lean_inc(x_351); +lean_inc(x_350); +lean_dec(x_55); +x_352 = l_Lean_Exception_isInterrupt(x_350); +if (x_352 == 0) +{ +uint8_t x_353; +x_353 = l_Lean_Exception_isRuntime(x_350); +if (x_353 == 0) +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_350); +x_354 = l_Lean_Meta_SavedState_restore(x_52, x_5, x_6, x_7, x_8, x_351); +lean_dec(x_52); +x_355 = lean_ctor_get(x_354, 1); +lean_inc(x_355); +lean_dec(x_354); +x_356 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_355); +x_357 = lean_ctor_get(x_356, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_356, 1); +lean_inc(x_358); +lean_dec(x_356); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_336 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_335); -if (lean_obj_tag(x_336) == 0) +x_359 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_358); +if (lean_obj_tag(x_359) == 0) { -lean_dec(x_334); +lean_dec(x_357); lean_dec(x_12); -x_30 = x_336; +x_30 = x_359; goto block_37; } else { -lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; +lean_object* x_360; lean_object* x_361; lean_object* x_362; uint8_t x_363; +x_360 = lean_ctor_get(x_359, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_359, 1); +lean_inc(x_361); +if (lean_is_exclusive(x_359)) { + lean_ctor_release(x_359, 0); + lean_ctor_release(x_359, 1); + x_362 = x_359; } else { - lean_dec_ref(x_336); - x_339 = lean_box(0); + lean_dec_ref(x_359); + x_362 = lean_box(0); } -x_340 = l_Lean_Exception_isRuntime(x_337); -if (x_340 == 0) +x_363 = l_Lean_Exception_isInterrupt(x_360); +if (x_363 == 0) { -lean_object* x_341; 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; uint8_t x_417; lean_object* x_418; -lean_dec(x_339); -lean_dec(x_337); -x_341 = l_Lean_Meta_SavedState_restore(x_334, x_5, x_6, x_7, x_8, x_338); -lean_dec(x_334); -x_342 = lean_ctor_get(x_341, 1); -lean_inc(x_342); -lean_dec(x_341); -x_343 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_342); -x_344 = lean_ctor_get(x_343, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_343, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_343)) { - lean_ctor_release(x_343, 0); - lean_ctor_release(x_343, 1); - x_346 = x_343; +uint8_t x_364; +x_364 = l_Lean_Exception_isRuntime(x_360); +if (x_364 == 0) +{ +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; uint8_t x_447; lean_object* x_448; +lean_dec(x_362); +lean_dec(x_360); +x_365 = l_Lean_Meta_SavedState_restore(x_357, x_5, x_6, x_7, x_8, x_361); +lean_dec(x_357); +x_366 = lean_ctor_get(x_365, 1); +lean_inc(x_366); +lean_dec(x_365); +x_367 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_366); +x_368 = lean_ctor_get(x_367, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_367, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_370 = x_367; } else { - lean_dec_ref(x_343); - x_346 = lean_box(0); + lean_dec_ref(x_367); + x_370 = lean_box(0); } -x_417 = 1; +x_447 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_418 = l_Lean_Meta_simpIfTarget(x_12, x_417, x_5, x_6, x_7, x_8, x_345); +x_448 = l_Lean_Meta_simpIfTarget(x_12, x_447, x_5, x_6, x_7, x_8, x_369); +if (lean_obj_tag(x_448) == 0) +{ +lean_object* x_449; lean_object* x_450; uint8_t x_451; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_448, 1); +lean_inc(x_450); +lean_dec(x_448); +x_451 = lean_name_eq(x_449, x_12); +if (x_451 == 0) +{ +lean_object* x_452; lean_object* x_453; +lean_dec(x_370); +lean_dec(x_368); +lean_dec(x_12); +x_452 = lean_box(0); +x_453 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_449, x_452, x_5, x_6, x_7, x_8, x_450); +x_30 = x_453; +goto block_37; +} +else +{ +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +lean_dec(x_449); +x_454 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; +x_455 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_454, x_5, x_6, x_7, x_8, x_450); +x_456 = lean_ctor_get(x_455, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_455, 1); +lean_inc(x_457); +lean_dec(x_455); +x_371 = x_456; +x_372 = x_457; +goto block_446; +} +} +else +{ +lean_object* x_458; lean_object* x_459; +x_458 = lean_ctor_get(x_448, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_448, 1); +lean_inc(x_459); +lean_dec(x_448); +x_371 = x_458; +x_372 = x_459; +goto block_446; +} +block_446: +{ +uint8_t x_373; +x_373 = l_Lean_Exception_isInterrupt(x_371); +if (x_373 == 0) +{ +uint8_t x_374; +x_374 = l_Lean_Exception_isRuntime(x_371); +if (x_374 == 0) +{ +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_418; +lean_dec(x_371); +lean_dec(x_370); +x_375 = l_Lean_Meta_SavedState_restore(x_368, x_5, x_6, x_7, x_8, x_372); +lean_dec(x_368); +x_376 = lean_ctor_get(x_375, 1); +lean_inc(x_376); +if (lean_is_exclusive(x_375)) { + lean_ctor_release(x_375, 0); + lean_ctor_release(x_375, 1); + x_377 = x_375; +} else { + lean_dec_ref(x_375); + x_377 = lean_box(0); +} +x_378 = lean_box(0); +x_379 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_376); +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_379, 1); +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); +} +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_418 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_378, x_5, x_6, x_7, x_8, x_381); if (lean_obj_tag(x_418) == 0) { -lean_object* x_419; lean_object* x_420; uint8_t x_421; +lean_object* x_419; x_419 = lean_ctor_get(x_418, 0); lean_inc(x_419); +if (lean_obj_tag(x_419) == 0) +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; x_420 = lean_ctor_get(x_418, 1); lean_inc(x_420); lean_dec(x_418); -x_421 = lean_name_eq(x_419, x_12); -if (x_421 == 0) -{ -lean_object* x_422; lean_object* x_423; -lean_dec(x_346); -lean_dec(x_344); -lean_dec(x_12); -x_422 = lean_box(0); -x_423 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_419, x_422, x_5, x_6, x_7, x_8, x_420); -x_30 = x_423; -goto block_37; +x_421 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; +x_422 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_421, x_5, x_6, x_7, x_8, x_420); +x_423 = lean_ctor_get(x_422, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_422, 1); +lean_inc(x_424); +lean_dec(x_422); +x_383 = x_423; +x_384 = x_424; +goto block_417; } else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +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; +x_425 = lean_ctor_get(x_419, 0); +lean_inc(x_425); lean_dec(x_419); -x_424 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; -x_425 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_424, x_5, x_6, x_7, x_8, x_420); -x_426 = lean_ctor_get(x_425, 0); +x_426 = lean_ctor_get(x_418, 1); lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); -x_347 = x_426; -x_348 = x_427; -goto block_416; -} -} -else -{ -lean_object* x_428; lean_object* x_429; -x_428 = lean_ctor_get(x_418, 0); -lean_inc(x_428); -x_429 = lean_ctor_get(x_418, 1); -lean_inc(x_429); lean_dec(x_418); -x_347 = x_428; -x_348 = x_429; -goto block_416; -} -block_416: -{ -uint8_t x_349; -x_349 = l_Lean_Exception_isRuntime(x_347); -if (x_349 == 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; lean_object* x_359; lean_object* x_389; -lean_dec(x_347); -lean_dec(x_346); -x_350 = l_Lean_Meta_SavedState_restore(x_344, x_5, x_6, x_7, x_8, x_348); -lean_dec(x_344); -x_351 = lean_ctor_get(x_350, 1); -lean_inc(x_351); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - x_352 = x_350; -} else { - lean_dec_ref(x_350); - x_352 = lean_box(0); -} -x_353 = lean_box(0); -x_354 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_351); -x_355 = lean_ctor_get(x_354, 0); -lean_inc(x_355); -x_356 = lean_ctor_get(x_354, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - lean_ctor_release(x_354, 1); - x_357 = x_354; -} else { - lean_dec_ref(x_354); - x_357 = lean_box(0); -} +x_427 = lean_ctor_get(x_425, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_425, 1); +lean_inc(x_428); +lean_dec(x_425); +x_429 = lean_ctor_get(x_427, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_427, 1); +lean_inc(x_430); +lean_dec(x_427); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_389 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_353, x_5, x_6, x_7, x_8, x_356); -if (lean_obj_tag(x_389) == 0) +x_431 = l_Lean_Meta_trySubst(x_429, x_430, x_5, x_6, x_7, x_8, x_426); +if (lean_obj_tag(x_431) == 0) { -lean_object* x_390; -x_390 = lean_ctor_get(x_389, 0); -lean_inc(x_390); -if (lean_obj_tag(x_390) == 0) +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_dec(x_382); +lean_dec(x_380); +lean_dec(x_377); +lean_dec(x_12); +x_432 = lean_ctor_get(x_431, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_431, 1); +lean_inc(x_433); +if (lean_is_exclusive(x_431)) { + lean_ctor_release(x_431, 0); + lean_ctor_release(x_431, 1); + x_434 = x_431; +} else { + lean_dec_ref(x_431); + x_434 = lean_box(0); +} +x_435 = lean_ctor_get(x_428, 0); +lean_inc(x_435); +lean_dec(x_428); +x_436 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; +x_437 = lean_array_push(x_436, x_432); +x_438 = lean_array_push(x_437, x_435); +if (lean_is_scalar(x_434)) { + x_439 = lean_alloc_ctor(0, 2, 0); +} else { + x_439 = x_434; +} +lean_ctor_set(x_439, 0, x_438); +lean_ctor_set(x_439, 1, x_433); +x_30 = x_439; +goto block_37; +} +else { -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; -x_391 = lean_ctor_get(x_389, 1); +lean_object* x_440; lean_object* x_441; +lean_dec(x_428); +x_440 = lean_ctor_get(x_431, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_431, 1); +lean_inc(x_441); +lean_dec(x_431); +x_383 = x_440; +x_384 = x_441; +goto block_417; +} +} +} +else +{ +lean_object* x_442; lean_object* x_443; +x_442 = lean_ctor_get(x_418, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_418, 1); +lean_inc(x_443); +lean_dec(x_418); +x_383 = x_442; +x_384 = x_443; +goto block_417; +} +block_417: +{ +uint8_t x_385; +x_385 = l_Lean_Exception_isInterrupt(x_383); +if (x_385 == 0) +{ +uint8_t x_386; +x_386 = l_Lean_Exception_isRuntime(x_383); +if (x_386 == 0) +{ +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_dec(x_383); +lean_dec(x_382); +x_387 = l_Lean_Meta_SavedState_restore(x_380, x_5, x_6, x_7, x_8, x_384); +lean_dec(x_380); +x_388 = lean_ctor_get(x_387, 1); +lean_inc(x_388); +if (lean_is_exclusive(x_387)) { + lean_ctor_release(x_387, 0); + lean_ctor_release(x_387, 1); + x_389 = x_387; +} else { + lean_dec_ref(x_387); + x_389 = lean_box(0); +} +x_390 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_388); +x_391 = lean_ctor_get(x_390, 0); lean_inc(x_391); -lean_dec(x_389); -x_392 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; -x_393 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_392, x_5, x_6, x_7, x_8, x_391); -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 1); -lean_inc(x_395); -lean_dec(x_393); -x_358 = x_394; -x_359 = x_395; -goto block_388; -} -else -{ -lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_396 = lean_ctor_get(x_390, 0); -lean_inc(x_396); -lean_dec(x_390); -x_397 = lean_ctor_get(x_389, 1); -lean_inc(x_397); -lean_dec(x_389); -x_398 = lean_ctor_get(x_396, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_396, 1); -lean_inc(x_399); -lean_dec(x_396); -x_400 = lean_ctor_get(x_398, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_398, 1); -lean_inc(x_401); -lean_dec(x_398); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_402 = l_Lean_Meta_trySubst(x_400, x_401, x_5, x_6, x_7, x_8, x_397); -if (lean_obj_tag(x_402) == 0) -{ -lean_object* 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_dec(x_357); -lean_dec(x_355); -lean_dec(x_352); -lean_dec(x_12); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - lean_ctor_release(x_402, 1); - x_405 = x_402; +x_392 = lean_ctor_get(x_390, 1); +lean_inc(x_392); +if (lean_is_exclusive(x_390)) { + lean_ctor_release(x_390, 0); + lean_ctor_release(x_390, 1); + x_393 = x_390; } else { - lean_dec_ref(x_402); - x_405 = lean_box(0); -} -x_406 = lean_ctor_get(x_399, 0); -lean_inc(x_406); -lean_dec(x_399); -x_407 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; -x_408 = lean_array_push(x_407, x_403); -x_409 = lean_array_push(x_408, x_406); -if (lean_is_scalar(x_405)) { - x_410 = lean_alloc_ctor(0, 2, 0); -} else { - x_410 = x_405; -} -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_404); -x_30 = x_410; -goto block_37; -} -else -{ -lean_object* x_411; lean_object* x_412; -lean_dec(x_399); -x_411 = lean_ctor_get(x_402, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_402, 1); -lean_inc(x_412); -lean_dec(x_402); -x_358 = x_411; -x_359 = x_412; -goto block_388; -} -} -} -else -{ -lean_object* x_413; lean_object* x_414; -x_413 = lean_ctor_get(x_389, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_389, 1); -lean_inc(x_414); -lean_dec(x_389); -x_358 = x_413; -x_359 = x_414; -goto block_388; -} -block_388: -{ -uint8_t x_360; -x_360 = l_Lean_Exception_isRuntime(x_358); -if (x_360 == 0) -{ -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_dec(x_358); -lean_dec(x_357); -x_361 = l_Lean_Meta_SavedState_restore(x_355, x_5, x_6, x_7, x_8, x_359); -lean_dec(x_355); -x_362 = lean_ctor_get(x_361, 1); -lean_inc(x_362); -if (lean_is_exclusive(x_361)) { - lean_ctor_release(x_361, 0); - lean_ctor_release(x_361, 1); - x_363 = x_361; -} else { - lean_dec_ref(x_361); - x_363 = lean_box(0); -} -x_364 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_362); -x_365 = lean_ctor_get(x_364, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 1); -lean_inc(x_366); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_367 = x_364; -} else { - lean_dec_ref(x_364); - x_367 = lean_box(0); + lean_dec_ref(x_390); + x_393 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_12); -x_368 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_366); -if (lean_obj_tag(x_368) == 0) +x_394 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_392); +if (lean_obj_tag(x_394) == 0) { -lean_dec(x_367); -lean_dec(x_365); -lean_dec(x_363); -lean_dec(x_352); +lean_dec(x_393); +lean_dec(x_391); +lean_dec(x_389); +lean_dec(x_377); lean_dec(x_12); -x_30 = x_368; +x_30 = x_394; goto block_37; } else { -lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t 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); -if (lean_is_exclusive(x_368)) { - lean_ctor_release(x_368, 0); - lean_ctor_release(x_368, 1); - x_371 = x_368; +lean_object* x_395; lean_object* x_396; lean_object* x_397; uint8_t x_398; +x_395 = lean_ctor_get(x_394, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_394, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_397 = x_394; } else { - lean_dec_ref(x_368); - x_371 = lean_box(0); + lean_dec_ref(x_394); + x_397 = lean_box(0); } -x_372 = l_Lean_Exception_isRuntime(x_369); -if (x_372 == 0) +x_398 = l_Lean_Exception_isInterrupt(x_395); +if (x_398 == 0) { -lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 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_dec(x_371); -lean_dec(x_369); -x_373 = l_Lean_Meta_SavedState_restore(x_365, x_5, x_6, x_7, x_8, x_370); -lean_dec(x_365); -x_374 = lean_ctor_get(x_373, 1); -lean_inc(x_374); -if (lean_is_exclusive(x_373)) { - lean_ctor_release(x_373, 0); - lean_ctor_release(x_373, 1); - x_375 = x_373; +uint8_t x_399; +x_399 = l_Lean_Exception_isRuntime(x_395); +if (x_399 == 0) +{ +lean_object* 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; 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_dec(x_397); +lean_dec(x_395); +x_400 = l_Lean_Meta_SavedState_restore(x_391, x_5, x_6, x_7, x_8, x_396); +lean_dec(x_391); +x_401 = lean_ctor_get(x_400, 1); +lean_inc(x_401); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + x_402 = x_400; } else { - lean_dec_ref(x_373); - x_375 = lean_box(0); + lean_dec_ref(x_400); + x_402 = lean_box(0); } lean_inc(x_2); -x_376 = l_Lean_MessageData_ofName(x_2); -x_377 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_375)) { - x_378 = lean_alloc_ctor(6, 2, 0); +x_403 = l_Lean_MessageData_ofName(x_2); +x_404 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_402)) { + x_405 = lean_alloc_ctor(6, 2, 0); } else { - x_378 = x_375; - lean_ctor_set_tag(x_378, 6); + x_405 = x_402; + lean_ctor_set_tag(x_405, 6); } -lean_ctor_set(x_378, 0, x_377); -lean_ctor_set(x_378, 1, x_376); -x_379 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -if (lean_is_scalar(x_367)) { - x_380 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_405, 0, x_404); +lean_ctor_set(x_405, 1, x_403); +x_406 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +if (lean_is_scalar(x_393)) { + x_407 = lean_alloc_ctor(6, 2, 0); } else { - x_380 = x_367; - lean_ctor_set_tag(x_380, 6); + x_407 = x_393; + lean_ctor_set_tag(x_407, 6); } -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_379); -x_381 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_381, 0, x_12); -if (lean_is_scalar(x_363)) { - x_382 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_407, 0, x_405); +lean_ctor_set(x_407, 1, x_406); +x_408 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_408, 0, x_12); +if (lean_is_scalar(x_389)) { + x_409 = lean_alloc_ctor(6, 2, 0); } else { - x_382 = x_363; - lean_ctor_set_tag(x_382, 6); + x_409 = x_389; + lean_ctor_set_tag(x_409, 6); } -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -x_383 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_352)) { - x_384 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_409, 0, x_407); +lean_ctor_set(x_409, 1, x_408); +x_410 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_377)) { + x_411 = lean_alloc_ctor(6, 2, 0); } else { - x_384 = x_352; - lean_ctor_set_tag(x_384, 6); + x_411 = x_377; + lean_ctor_set_tag(x_411, 6); } -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -x_385 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_384, x_5, x_6, x_7, x_8, x_374); -x_30 = x_385; +lean_ctor_set(x_411, 0, x_409); +lean_ctor_set(x_411, 1, x_410); +x_412 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_411, x_5, x_6, x_7, x_8, x_401); +x_30 = x_412; goto block_37; } else { -lean_object* x_386; -lean_dec(x_367); -lean_dec(x_365); -lean_dec(x_363); -lean_dec(x_352); +lean_object* x_413; +lean_dec(x_393); +lean_dec(x_391); +lean_dec(x_389); +lean_dec(x_377); lean_dec(x_12); -if (lean_is_scalar(x_371)) { - x_386 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_397)) { + x_413 = lean_alloc_ctor(1, 2, 0); } else { - x_386 = x_371; + x_413 = x_397; } -lean_ctor_set(x_386, 0, x_369); -lean_ctor_set(x_386, 1, x_370); -x_30 = x_386; +lean_ctor_set(x_413, 0, x_395); +lean_ctor_set(x_413, 1, x_396); +x_30 = x_413; goto block_37; } } -} else { -lean_object* x_387; -lean_dec(x_355); -lean_dec(x_352); +lean_object* x_414; +lean_dec(x_393); +lean_dec(x_391); +lean_dec(x_389); +lean_dec(x_377); lean_dec(x_12); -if (lean_is_scalar(x_357)) { - x_387 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_397)) { + x_414 = lean_alloc_ctor(1, 2, 0); } else { - x_387 = x_357; - lean_ctor_set_tag(x_387, 1); + x_414 = x_397; } -lean_ctor_set(x_387, 0, x_358); -lean_ctor_set(x_387, 1, x_359); -x_30 = x_387; +lean_ctor_set(x_414, 0, x_395); +lean_ctor_set(x_414, 1, x_396); +x_30 = x_414; goto block_37; } } @@ -17699,47 +18009,129 @@ goto block_37; else { lean_object* x_415; -lean_dec(x_344); +lean_dec(x_380); +lean_dec(x_377); lean_dec(x_12); -if (lean_is_scalar(x_346)) { +if (lean_is_scalar(x_382)) { x_415 = lean_alloc_ctor(1, 2, 0); } else { - x_415 = x_346; + x_415 = x_382; lean_ctor_set_tag(x_415, 1); } -lean_ctor_set(x_415, 0, x_347); -lean_ctor_set(x_415, 1, x_348); +lean_ctor_set(x_415, 0, x_383); +lean_ctor_set(x_415, 1, x_384); x_30 = x_415; goto block_37; } } -} else { -lean_object* x_430; -lean_dec(x_334); +lean_object* x_416; +lean_dec(x_380); +lean_dec(x_377); lean_dec(x_12); -if (lean_is_scalar(x_339)) { - x_430 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_382)) { + x_416 = lean_alloc_ctor(1, 2, 0); } else { - x_430 = x_339; + x_416 = x_382; + lean_ctor_set_tag(x_416, 1); } -lean_ctor_set(x_430, 0, x_337); -lean_ctor_set(x_430, 1, x_338); -x_30 = x_430; +lean_ctor_set(x_416, 0, x_383); +lean_ctor_set(x_416, 1, x_384); +x_30 = x_416; goto block_37; } } } else { -lean_object* x_431; -lean_dec(x_51); +lean_object* x_444; +lean_dec(x_368); lean_dec(x_12); -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_328); -lean_ctor_set(x_431, 1, x_329); -x_30 = x_431; +if (lean_is_scalar(x_370)) { + x_444 = lean_alloc_ctor(1, 2, 0); +} else { + x_444 = x_370; + lean_ctor_set_tag(x_444, 1); +} +lean_ctor_set(x_444, 0, x_371); +lean_ctor_set(x_444, 1, x_372); +x_30 = x_444; +goto block_37; +} +} +else +{ +lean_object* x_445; +lean_dec(x_368); +lean_dec(x_12); +if (lean_is_scalar(x_370)) { + x_445 = lean_alloc_ctor(1, 2, 0); +} else { + x_445 = x_370; + lean_ctor_set_tag(x_445, 1); +} +lean_ctor_set(x_445, 0, x_371); +lean_ctor_set(x_445, 1, x_372); +x_30 = x_445; +goto block_37; +} +} +} +else +{ +lean_object* x_460; +lean_dec(x_357); +lean_dec(x_12); +if (lean_is_scalar(x_362)) { + x_460 = lean_alloc_ctor(1, 2, 0); +} else { + x_460 = x_362; +} +lean_ctor_set(x_460, 0, x_360); +lean_ctor_set(x_460, 1, x_361); +x_30 = x_460; +goto block_37; +} +} +else +{ +lean_object* x_461; +lean_dec(x_357); +lean_dec(x_12); +if (lean_is_scalar(x_362)) { + x_461 = lean_alloc_ctor(1, 2, 0); +} else { + x_461 = x_362; +} +lean_ctor_set(x_461, 0, x_360); +lean_ctor_set(x_461, 1, x_361); +x_30 = x_461; +goto block_37; +} +} +} +else +{ +lean_object* x_462; +lean_dec(x_52); +lean_dec(x_12); +x_462 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_462, 0, x_350); +lean_ctor_set(x_462, 1, x_351); +x_30 = x_462; +goto block_37; +} +} +else +{ +lean_object* x_463; +lean_dec(x_52); +lean_dec(x_12); +x_463 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_463, 0, x_350); +lean_ctor_set(x_463, 1, x_351); +x_30 = x_463; goto block_37; } } @@ -17761,569 +18153,6 @@ return x_41; } else { -lean_object* x_432; lean_object* x_433; uint8_t x_434; -x_432 = lean_ctor_get(x_41, 0); -x_433 = lean_ctor_get(x_41, 1); -lean_inc(x_433); -lean_inc(x_432); -lean_dec(x_41); -x_434 = l_Lean_Exception_isRuntime(x_432); -if (x_434 == 0) -{ -lean_object* 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_432); -x_435 = l_Lean_Meta_SavedState_restore(x_39, x_5, x_6, x_7, x_8, x_433); -lean_dec(x_39); -x_436 = lean_ctor_get(x_435, 1); -lean_inc(x_436); -lean_dec(x_435); -x_437 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_436); -x_438 = lean_ctor_get(x_437, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_437, 1); -lean_inc(x_439); -lean_dec(x_437); -x_440 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__2; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_441 = l_Lean_MVarId_contradiction(x_12, x_440, x_5, x_6, x_7, x_8, x_439); -if (lean_obj_tag(x_441) == 0) -{ -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -lean_dec(x_438); -lean_dec(x_12); -x_442 = lean_ctor_get(x_441, 1); -lean_inc(x_442); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - x_443 = x_441; -} else { - lean_dec_ref(x_441); - x_443 = lean_box(0); -} -x_444 = l_Lean_Meta_casesOnStuckLHS___closed__2; -if (lean_is_scalar(x_443)) { - x_445 = lean_alloc_ctor(0, 2, 0); -} else { - x_445 = x_443; -} -lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_442); -x_30 = x_445; -goto block_37; -} -else -{ -lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; -x_446 = lean_ctor_get(x_441, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_441, 1); -lean_inc(x_447); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - x_448 = x_441; -} else { - lean_dec_ref(x_441); - x_448 = lean_box(0); -} -x_449 = l_Lean_Exception_isRuntime(x_446); -if (x_449 == 0) -{ -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_dec(x_448); -lean_dec(x_446); -x_450 = l_Lean_Meta_SavedState_restore(x_438, x_5, x_6, x_7, x_8, x_447); -lean_dec(x_438); -x_451 = lean_ctor_get(x_450, 1); -lean_inc(x_451); -lean_dec(x_450); -x_452 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_451); -x_453 = lean_ctor_get(x_452, 0); -lean_inc(x_453); -x_454 = lean_ctor_get(x_452, 1); -lean_inc(x_454); -lean_dec(x_452); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_455 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_454); -if (lean_obj_tag(x_455) == 0) -{ -lean_dec(x_453); -lean_dec(x_12); -x_30 = x_455; -goto block_37; -} -else -{ -lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; -x_456 = lean_ctor_get(x_455, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_455, 1); -lean_inc(x_457); -if (lean_is_exclusive(x_455)) { - lean_ctor_release(x_455, 0); - lean_ctor_release(x_455, 1); - x_458 = x_455; -} else { - lean_dec_ref(x_455); - x_458 = lean_box(0); -} -x_459 = l_Lean_Exception_isRuntime(x_456); -if (x_459 == 0) -{ -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; uint8_t x_536; lean_object* x_537; -lean_dec(x_458); -lean_dec(x_456); -x_460 = l_Lean_Meta_SavedState_restore(x_453, x_5, x_6, x_7, x_8, x_457); -lean_dec(x_453); -x_461 = lean_ctor_get(x_460, 1); -lean_inc(x_461); -lean_dec(x_460); -x_462 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_461); -x_463 = lean_ctor_get(x_462, 0); -lean_inc(x_463); -x_464 = lean_ctor_get(x_462, 1); -lean_inc(x_464); -if (lean_is_exclusive(x_462)) { - lean_ctor_release(x_462, 0); - lean_ctor_release(x_462, 1); - x_465 = x_462; -} else { - lean_dec_ref(x_462); - x_465 = lean_box(0); -} -x_536 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_537 = l_Lean_Meta_simpIfTarget(x_12, x_536, x_5, x_6, x_7, x_8, x_464); -if (lean_obj_tag(x_537) == 0) -{ -lean_object* x_538; lean_object* x_539; uint8_t x_540; -x_538 = lean_ctor_get(x_537, 0); -lean_inc(x_538); -x_539 = lean_ctor_get(x_537, 1); -lean_inc(x_539); -lean_dec(x_537); -x_540 = lean_name_eq(x_538, x_12); -if (x_540 == 0) -{ -lean_object* x_541; lean_object* x_542; -lean_dec(x_465); -lean_dec(x_463); -lean_dec(x_12); -x_541 = lean_box(0); -x_542 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_538, x_541, x_5, x_6, x_7, x_8, x_539); -x_30 = x_542; -goto block_37; -} -else -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; -lean_dec(x_538); -x_543 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; -x_544 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_543, x_5, x_6, x_7, x_8, x_539); -x_545 = lean_ctor_get(x_544, 0); -lean_inc(x_545); -x_546 = lean_ctor_get(x_544, 1); -lean_inc(x_546); -lean_dec(x_544); -x_466 = x_545; -x_467 = x_546; -goto block_535; -} -} -else -{ -lean_object* x_547; lean_object* x_548; -x_547 = lean_ctor_get(x_537, 0); -lean_inc(x_547); -x_548 = lean_ctor_get(x_537, 1); -lean_inc(x_548); -lean_dec(x_537); -x_466 = x_547; -x_467 = x_548; -goto block_535; -} -block_535: -{ -uint8_t x_468; -x_468 = l_Lean_Exception_isRuntime(x_466); -if (x_468 == 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_508; -lean_dec(x_466); -lean_dec(x_465); -x_469 = l_Lean_Meta_SavedState_restore(x_463, x_5, x_6, x_7, x_8, x_467); -lean_dec(x_463); -x_470 = lean_ctor_get(x_469, 1); -lean_inc(x_470); -if (lean_is_exclusive(x_469)) { - lean_ctor_release(x_469, 0); - lean_ctor_release(x_469, 1); - x_471 = x_469; -} else { - lean_dec_ref(x_469); - x_471 = lean_box(0); -} -x_472 = lean_box(0); -x_473 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_470); -x_474 = lean_ctor_get(x_473, 0); -lean_inc(x_474); -x_475 = lean_ctor_get(x_473, 1); -lean_inc(x_475); -if (lean_is_exclusive(x_473)) { - lean_ctor_release(x_473, 0); - lean_ctor_release(x_473, 1); - x_476 = x_473; -} else { - lean_dec_ref(x_473); - x_476 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_508 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_472, x_5, x_6, x_7, x_8, x_475); -if (lean_obj_tag(x_508) == 0) -{ -lean_object* x_509; -x_509 = lean_ctor_get(x_508, 0); -lean_inc(x_509); -if (lean_obj_tag(x_509) == 0) -{ -lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; -x_510 = lean_ctor_get(x_508, 1); -lean_inc(x_510); -lean_dec(x_508); -x_511 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; -x_512 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_511, x_5, x_6, x_7, x_8, x_510); -x_513 = lean_ctor_get(x_512, 0); -lean_inc(x_513); -x_514 = lean_ctor_get(x_512, 1); -lean_inc(x_514); -lean_dec(x_512); -x_477 = x_513; -x_478 = x_514; -goto block_507; -} -else -{ -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_515 = lean_ctor_get(x_509, 0); -lean_inc(x_515); -lean_dec(x_509); -x_516 = lean_ctor_get(x_508, 1); -lean_inc(x_516); -lean_dec(x_508); -x_517 = lean_ctor_get(x_515, 0); -lean_inc(x_517); -x_518 = lean_ctor_get(x_515, 1); -lean_inc(x_518); -lean_dec(x_515); -x_519 = lean_ctor_get(x_517, 0); -lean_inc(x_519); -x_520 = lean_ctor_get(x_517, 1); -lean_inc(x_520); -lean_dec(x_517); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_521 = l_Lean_Meta_trySubst(x_519, x_520, x_5, x_6, x_7, x_8, x_516); -if (lean_obj_tag(x_521) == 0) -{ -lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; -lean_dec(x_476); -lean_dec(x_474); -lean_dec(x_471); -lean_dec(x_12); -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); -} -x_525 = lean_ctor_get(x_518, 0); -lean_inc(x_525); -lean_dec(x_518); -x_526 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; -x_527 = lean_array_push(x_526, x_522); -x_528 = lean_array_push(x_527, x_525); -if (lean_is_scalar(x_524)) { - x_529 = lean_alloc_ctor(0, 2, 0); -} else { - x_529 = x_524; -} -lean_ctor_set(x_529, 0, x_528); -lean_ctor_set(x_529, 1, x_523); -x_30 = x_529; -goto block_37; -} -else -{ -lean_object* x_530; lean_object* x_531; -lean_dec(x_518); -x_530 = lean_ctor_get(x_521, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_521, 1); -lean_inc(x_531); -lean_dec(x_521); -x_477 = x_530; -x_478 = x_531; -goto block_507; -} -} -} -else -{ -lean_object* x_532; lean_object* x_533; -x_532 = lean_ctor_get(x_508, 0); -lean_inc(x_532); -x_533 = lean_ctor_get(x_508, 1); -lean_inc(x_533); -lean_dec(x_508); -x_477 = x_532; -x_478 = x_533; -goto block_507; -} -block_507: -{ -uint8_t x_479; -x_479 = l_Lean_Exception_isRuntime(x_477); -if (x_479 == 0) -{ -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_dec(x_477); -lean_dec(x_476); -x_480 = l_Lean_Meta_SavedState_restore(x_474, x_5, x_6, x_7, x_8, x_478); -lean_dec(x_474); -x_481 = lean_ctor_get(x_480, 1); -lean_inc(x_481); -if (lean_is_exclusive(x_480)) { - lean_ctor_release(x_480, 0); - lean_ctor_release(x_480, 1); - x_482 = x_480; -} else { - lean_dec_ref(x_480); - x_482 = lean_box(0); -} -x_483 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_481); -x_484 = lean_ctor_get(x_483, 0); -lean_inc(x_484); -x_485 = lean_ctor_get(x_483, 1); -lean_inc(x_485); -if (lean_is_exclusive(x_483)) { - lean_ctor_release(x_483, 0); - lean_ctor_release(x_483, 1); - x_486 = x_483; -} else { - lean_dec_ref(x_483); - x_486 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_487 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_485); -if (lean_obj_tag(x_487) == 0) -{ -lean_dec(x_486); -lean_dec(x_484); -lean_dec(x_482); -lean_dec(x_471); -lean_dec(x_12); -x_30 = x_487; -goto block_37; -} -else -{ -lean_object* x_488; lean_object* x_489; lean_object* x_490; uint8_t x_491; -x_488 = lean_ctor_get(x_487, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_487, 1); -lean_inc(x_489); -if (lean_is_exclusive(x_487)) { - lean_ctor_release(x_487, 0); - lean_ctor_release(x_487, 1); - x_490 = x_487; -} else { - lean_dec_ref(x_487); - x_490 = lean_box(0); -} -x_491 = l_Lean_Exception_isRuntime(x_488); -if (x_491 == 0) -{ -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; lean_object* x_502; lean_object* x_503; lean_object* x_504; -lean_dec(x_490); -lean_dec(x_488); -x_492 = l_Lean_Meta_SavedState_restore(x_484, x_5, x_6, x_7, x_8, x_489); -lean_dec(x_484); -x_493 = lean_ctor_get(x_492, 1); -lean_inc(x_493); -if (lean_is_exclusive(x_492)) { - lean_ctor_release(x_492, 0); - lean_ctor_release(x_492, 1); - x_494 = x_492; -} else { - lean_dec_ref(x_492); - x_494 = lean_box(0); -} -lean_inc(x_2); -x_495 = l_Lean_MessageData_ofName(x_2); -x_496 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; -if (lean_is_scalar(x_494)) { - x_497 = lean_alloc_ctor(6, 2, 0); -} else { - x_497 = x_494; - lean_ctor_set_tag(x_497, 6); -} -lean_ctor_set(x_497, 0, x_496); -lean_ctor_set(x_497, 1, x_495); -x_498 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; -if (lean_is_scalar(x_486)) { - x_499 = lean_alloc_ctor(6, 2, 0); -} else { - x_499 = x_486; - lean_ctor_set_tag(x_499, 6); -} -lean_ctor_set(x_499, 0, x_497); -lean_ctor_set(x_499, 1, x_498); -x_500 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_500, 0, x_12); -if (lean_is_scalar(x_482)) { - x_501 = lean_alloc_ctor(6, 2, 0); -} else { - x_501 = x_482; - lean_ctor_set_tag(x_501, 6); -} -lean_ctor_set(x_501, 0, x_499); -lean_ctor_set(x_501, 1, x_500); -x_502 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -if (lean_is_scalar(x_471)) { - x_503 = lean_alloc_ctor(6, 2, 0); -} else { - x_503 = x_471; - lean_ctor_set_tag(x_503, 6); -} -lean_ctor_set(x_503, 0, x_501); -lean_ctor_set(x_503, 1, x_502); -x_504 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_503, x_5, x_6, x_7, x_8, x_493); -x_30 = x_504; -goto block_37; -} -else -{ -lean_object* x_505; -lean_dec(x_486); -lean_dec(x_484); -lean_dec(x_482); -lean_dec(x_471); -lean_dec(x_12); -if (lean_is_scalar(x_490)) { - x_505 = lean_alloc_ctor(1, 2, 0); -} else { - x_505 = x_490; -} -lean_ctor_set(x_505, 0, x_488); -lean_ctor_set(x_505, 1, x_489); -x_30 = x_505; -goto block_37; -} -} -} -else -{ -lean_object* x_506; -lean_dec(x_474); -lean_dec(x_471); -lean_dec(x_12); -if (lean_is_scalar(x_476)) { - x_506 = lean_alloc_ctor(1, 2, 0); -} else { - x_506 = x_476; - lean_ctor_set_tag(x_506, 1); -} -lean_ctor_set(x_506, 0, x_477); -lean_ctor_set(x_506, 1, x_478); -x_30 = x_506; -goto block_37; -} -} -} -else -{ -lean_object* x_534; -lean_dec(x_463); -lean_dec(x_12); -if (lean_is_scalar(x_465)) { - x_534 = lean_alloc_ctor(1, 2, 0); -} else { - x_534 = x_465; - lean_ctor_set_tag(x_534, 1); -} -lean_ctor_set(x_534, 0, x_466); -lean_ctor_set(x_534, 1, x_467); -x_30 = x_534; -goto block_37; -} -} -} -else -{ -lean_object* x_549; -lean_dec(x_453); -lean_dec(x_12); -if (lean_is_scalar(x_458)) { - x_549 = lean_alloc_ctor(1, 2, 0); -} else { - x_549 = x_458; -} -lean_ctor_set(x_549, 0, x_456); -lean_ctor_set(x_549, 1, x_457); -x_30 = x_549; -goto block_37; -} -} -} -else -{ -lean_object* x_550; -lean_dec(x_438); -lean_dec(x_12); -if (lean_is_scalar(x_448)) { - x_550 = lean_alloc_ctor(1, 2, 0); -} else { - x_550 = x_448; -} -lean_ctor_set(x_550, 0, x_446); -lean_ctor_set(x_550, 1, x_447); -x_30 = x_550; -goto block_37; -} -} -} -else -{ -lean_object* x_551; lean_dec(x_39); lean_dec(x_14); lean_dec(x_12); @@ -18333,10 +18162,715 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_432); -lean_ctor_set(x_551, 1, x_433); -return x_551; +return x_41; +} +} +else +{ +lean_object* x_464; lean_object* x_465; uint8_t x_466; +x_464 = lean_ctor_get(x_41, 0); +x_465 = lean_ctor_get(x_41, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_41); +x_466 = l_Lean_Exception_isInterrupt(x_464); +if (x_466 == 0) +{ +uint8_t x_467; +x_467 = l_Lean_Exception_isRuntime(x_464); +if (x_467 == 0) +{ +lean_object* x_468; 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_dec(x_464); +x_468 = l_Lean_Meta_SavedState_restore(x_39, x_5, x_6, x_7, x_8, x_465); +lean_dec(x_39); +x_469 = lean_ctor_get(x_468, 1); +lean_inc(x_469); +lean_dec(x_468); +x_470 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_469); +x_471 = lean_ctor_get(x_470, 0); +lean_inc(x_471); +x_472 = lean_ctor_get(x_470, 1); +lean_inc(x_472); +lean_dec(x_470); +x_473 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__2; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_474 = l_Lean_MVarId_contradiction(x_12, x_473, x_5, x_6, x_7, x_8, x_472); +if (lean_obj_tag(x_474) == 0) +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; +lean_dec(x_471); +lean_dec(x_12); +x_475 = lean_ctor_get(x_474, 1); +lean_inc(x_475); +if (lean_is_exclusive(x_474)) { + lean_ctor_release(x_474, 0); + lean_ctor_release(x_474, 1); + x_476 = x_474; +} else { + lean_dec_ref(x_474); + x_476 = lean_box(0); +} +x_477 = l_Lean_Meta_casesOnStuckLHS___closed__2; +if (lean_is_scalar(x_476)) { + x_478 = lean_alloc_ctor(0, 2, 0); +} else { + x_478 = x_476; +} +lean_ctor_set(x_478, 0, x_477); +lean_ctor_set(x_478, 1, x_475); +x_30 = x_478; +goto block_37; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; +x_479 = lean_ctor_get(x_474, 0); +lean_inc(x_479); +x_480 = lean_ctor_get(x_474, 1); +lean_inc(x_480); +if (lean_is_exclusive(x_474)) { + lean_ctor_release(x_474, 0); + lean_ctor_release(x_474, 1); + x_481 = x_474; +} else { + lean_dec_ref(x_474); + x_481 = lean_box(0); +} +x_482 = l_Lean_Exception_isInterrupt(x_479); +if (x_482 == 0) +{ +uint8_t x_483; +x_483 = l_Lean_Exception_isRuntime(x_479); +if (x_483 == 0) +{ +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_dec(x_481); +lean_dec(x_479); +x_484 = l_Lean_Meta_SavedState_restore(x_471, x_5, x_6, x_7, x_8, x_480); +lean_dec(x_471); +x_485 = lean_ctor_get(x_484, 1); +lean_inc(x_485); +lean_dec(x_484); +x_486 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_485); +x_487 = lean_ctor_get(x_486, 0); +lean_inc(x_487); +x_488 = lean_ctor_get(x_486, 1); +lean_inc(x_488); +lean_dec(x_486); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_489 = l_Lean_Meta_casesOnStuckLHS(x_12, x_5, x_6, x_7, x_8, x_488); +if (lean_obj_tag(x_489) == 0) +{ +lean_dec(x_487); +lean_dec(x_12); +x_30 = x_489; +goto block_37; +} +else +{ +lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; +x_490 = lean_ctor_get(x_489, 0); +lean_inc(x_490); +x_491 = lean_ctor_get(x_489, 1); +lean_inc(x_491); +if (lean_is_exclusive(x_489)) { + lean_ctor_release(x_489, 0); + lean_ctor_release(x_489, 1); + x_492 = x_489; +} else { + lean_dec_ref(x_489); + x_492 = lean_box(0); +} +x_493 = l_Lean_Exception_isInterrupt(x_490); +if (x_493 == 0) +{ +uint8_t x_494; +x_494 = l_Lean_Exception_isRuntime(x_490); +if (x_494 == 0) +{ +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; lean_object* x_502; uint8_t x_577; lean_object* x_578; +lean_dec(x_492); +lean_dec(x_490); +x_495 = l_Lean_Meta_SavedState_restore(x_487, x_5, x_6, x_7, x_8, x_491); +lean_dec(x_487); +x_496 = lean_ctor_get(x_495, 1); +lean_inc(x_496); +lean_dec(x_495); +x_497 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_496); +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_497, 1); +lean_inc(x_499); +if (lean_is_exclusive(x_497)) { + lean_ctor_release(x_497, 0); + lean_ctor_release(x_497, 1); + x_500 = x_497; +} else { + lean_dec_ref(x_497); + x_500 = lean_box(0); +} +x_577 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_578 = l_Lean_Meta_simpIfTarget(x_12, x_577, x_5, x_6, x_7, x_8, x_499); +if (lean_obj_tag(x_578) == 0) +{ +lean_object* x_579; lean_object* x_580; uint8_t x_581; +x_579 = lean_ctor_get(x_578, 0); +lean_inc(x_579); +x_580 = lean_ctor_get(x_578, 1); +lean_inc(x_580); +lean_dec(x_578); +x_581 = lean_name_eq(x_579, x_12); +if (x_581 == 0) +{ +lean_object* x_582; lean_object* x_583; +lean_dec(x_500); +lean_dec(x_498); +lean_dec(x_12); +x_582 = lean_box(0); +x_583 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(x_579, x_582, x_5, x_6, x_7, x_8, x_580); +x_30 = x_583; +goto block_37; +} +else +{ +lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; +lean_dec(x_579); +x_584 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__11; +x_585 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_584, x_5, x_6, x_7, x_8, x_580); +x_586 = lean_ctor_get(x_585, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_585, 1); +lean_inc(x_587); +lean_dec(x_585); +x_501 = x_586; +x_502 = x_587; +goto block_576; +} +} +else +{ +lean_object* x_588; lean_object* x_589; +x_588 = lean_ctor_get(x_578, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_578, 1); +lean_inc(x_589); +lean_dec(x_578); +x_501 = x_588; +x_502 = x_589; +goto block_576; +} +block_576: +{ +uint8_t x_503; +x_503 = l_Lean_Exception_isInterrupt(x_501); +if (x_503 == 0) +{ +uint8_t x_504; +x_504 = l_Lean_Exception_isRuntime(x_501); +if (x_504 == 0) +{ +lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 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_548; +lean_dec(x_501); +lean_dec(x_500); +x_505 = l_Lean_Meta_SavedState_restore(x_498, x_5, x_6, x_7, x_8, x_502); +lean_dec(x_498); +x_506 = lean_ctor_get(x_505, 1); +lean_inc(x_506); +if (lean_is_exclusive(x_505)) { + lean_ctor_release(x_505, 0); + lean_ctor_release(x_505, 1); + x_507 = x_505; +} else { + lean_dec_ref(x_505); + x_507 = lean_box(0); +} +x_508 = lean_box(0); +x_509 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_506); +x_510 = lean_ctor_get(x_509, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_509, 1); +lean_inc(x_511); +if (lean_is_exclusive(x_509)) { + lean_ctor_release(x_509, 0); + lean_ctor_release(x_509, 1); + x_512 = x_509; +} else { + lean_dec_ref(x_509); + x_512 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_548 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_508, x_5, x_6, x_7, x_8, x_511); +if (lean_obj_tag(x_548) == 0) +{ +lean_object* x_549; +x_549 = lean_ctor_get(x_548, 0); +lean_inc(x_549); +if (lean_obj_tag(x_549) == 0) +{ +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +x_550 = lean_ctor_get(x_548, 1); +lean_inc(x_550); +lean_dec(x_548); +x_551 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__8; +x_552 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_551, x_5, x_6, x_7, x_8, x_550); +x_553 = lean_ctor_get(x_552, 0); +lean_inc(x_553); +x_554 = lean_ctor_get(x_552, 1); +lean_inc(x_554); +lean_dec(x_552); +x_513 = x_553; +x_514 = x_554; +goto block_547; +} +else +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_555 = lean_ctor_get(x_549, 0); +lean_inc(x_555); +lean_dec(x_549); +x_556 = lean_ctor_get(x_548, 1); +lean_inc(x_556); +lean_dec(x_548); +x_557 = lean_ctor_get(x_555, 0); +lean_inc(x_557); +x_558 = lean_ctor_get(x_555, 1); +lean_inc(x_558); +lean_dec(x_555); +x_559 = lean_ctor_get(x_557, 0); +lean_inc(x_559); +x_560 = lean_ctor_get(x_557, 1); +lean_inc(x_560); +lean_dec(x_557); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_561 = l_Lean_Meta_trySubst(x_559, x_560, x_5, x_6, x_7, x_8, x_556); +if (lean_obj_tag(x_561) == 0) +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; +lean_dec(x_512); +lean_dec(x_510); +lean_dec(x_507); +lean_dec(x_12); +x_562 = lean_ctor_get(x_561, 0); +lean_inc(x_562); +x_563 = lean_ctor_get(x_561, 1); +lean_inc(x_563); +if (lean_is_exclusive(x_561)) { + lean_ctor_release(x_561, 0); + lean_ctor_release(x_561, 1); + x_564 = x_561; +} else { + lean_dec_ref(x_561); + x_564 = lean_box(0); +} +x_565 = lean_ctor_get(x_558, 0); +lean_inc(x_565); +lean_dec(x_558); +x_566 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__9; +x_567 = lean_array_push(x_566, x_562); +x_568 = lean_array_push(x_567, x_565); +if (lean_is_scalar(x_564)) { + x_569 = lean_alloc_ctor(0, 2, 0); +} else { + x_569 = x_564; +} +lean_ctor_set(x_569, 0, x_568); +lean_ctor_set(x_569, 1, x_563); +x_30 = x_569; +goto block_37; +} +else +{ +lean_object* x_570; lean_object* x_571; +lean_dec(x_558); +x_570 = lean_ctor_get(x_561, 0); +lean_inc(x_570); +x_571 = lean_ctor_get(x_561, 1); +lean_inc(x_571); +lean_dec(x_561); +x_513 = x_570; +x_514 = x_571; +goto block_547; +} +} +} +else +{ +lean_object* x_572; lean_object* x_573; +x_572 = lean_ctor_get(x_548, 0); +lean_inc(x_572); +x_573 = lean_ctor_get(x_548, 1); +lean_inc(x_573); +lean_dec(x_548); +x_513 = x_572; +x_514 = x_573; +goto block_547; +} +block_547: +{ +uint8_t x_515; +x_515 = l_Lean_Exception_isInterrupt(x_513); +if (x_515 == 0) +{ +uint8_t x_516; +x_516 = l_Lean_Exception_isRuntime(x_513); +if (x_516 == 0) +{ +lean_object* x_517; 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_dec(x_513); +lean_dec(x_512); +x_517 = l_Lean_Meta_SavedState_restore(x_510, x_5, x_6, x_7, x_8, x_514); +lean_dec(x_510); +x_518 = lean_ctor_get(x_517, 1); +lean_inc(x_518); +if (lean_is_exclusive(x_517)) { + lean_ctor_release(x_517, 0); + lean_ctor_release(x_517, 1); + x_519 = x_517; +} else { + lean_dec_ref(x_517); + x_519 = lean_box(0); +} +x_520 = l_Lean_Meta_saveState___rarg(x_6, x_7, x_8, x_518); +x_521 = lean_ctor_get(x_520, 0); +lean_inc(x_521); +x_522 = lean_ctor_get(x_520, 1); +lean_inc(x_522); +if (lean_is_exclusive(x_520)) { + lean_ctor_release(x_520, 0); + lean_ctor_release(x_520, 1); + x_523 = x_520; +} else { + lean_dec_ref(x_520); + x_523 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_12); +x_524 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar(x_12, x_5, x_6, x_7, x_8, x_522); +if (lean_obj_tag(x_524) == 0) +{ +lean_dec(x_523); +lean_dec(x_521); +lean_dec(x_519); +lean_dec(x_507); +lean_dec(x_12); +x_30 = x_524; +goto block_37; +} +else +{ +lean_object* x_525; lean_object* x_526; lean_object* x_527; uint8_t x_528; +x_525 = lean_ctor_get(x_524, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_524, 1); +lean_inc(x_526); +if (lean_is_exclusive(x_524)) { + lean_ctor_release(x_524, 0); + lean_ctor_release(x_524, 1); + x_527 = x_524; +} else { + lean_dec_ref(x_524); + x_527 = lean_box(0); +} +x_528 = l_Lean_Exception_isInterrupt(x_525); +if (x_528 == 0) +{ +uint8_t x_529; +x_529 = l_Lean_Exception_isRuntime(x_525); +if (x_529 == 0) +{ +lean_object* x_530; lean_object* x_531; 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; lean_object* x_542; +lean_dec(x_527); +lean_dec(x_525); +x_530 = l_Lean_Meta_SavedState_restore(x_521, x_5, x_6, x_7, x_8, x_526); +lean_dec(x_521); +x_531 = lean_ctor_get(x_530, 1); +lean_inc(x_531); +if (lean_is_exclusive(x_530)) { + lean_ctor_release(x_530, 0); + lean_ctor_release(x_530, 1); + x_532 = x_530; +} else { + lean_dec_ref(x_530); + x_532 = lean_box(0); +} +lean_inc(x_2); +x_533 = l_Lean_MessageData_ofName(x_2); +x_534 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__4; +if (lean_is_scalar(x_532)) { + x_535 = lean_alloc_ctor(6, 2, 0); +} else { + x_535 = x_532; + lean_ctor_set_tag(x_535, 6); +} +lean_ctor_set(x_535, 0, x_534); +lean_ctor_set(x_535, 1, x_533); +x_536 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3___closed__6; +if (lean_is_scalar(x_523)) { + x_537 = lean_alloc_ctor(6, 2, 0); +} else { + x_537 = x_523; + lean_ctor_set_tag(x_537, 6); +} +lean_ctor_set(x_537, 0, x_535); +lean_ctor_set(x_537, 1, x_536); +x_538 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_538, 0, x_12); +if (lean_is_scalar(x_519)) { + x_539 = lean_alloc_ctor(6, 2, 0); +} else { + x_539 = x_519; + lean_ctor_set_tag(x_539, 6); +} +lean_ctor_set(x_539, 0, x_537); +lean_ctor_set(x_539, 1, x_538); +x_540 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +if (lean_is_scalar(x_507)) { + x_541 = lean_alloc_ctor(6, 2, 0); +} else { + x_541 = x_507; + lean_ctor_set_tag(x_541, 6); +} +lean_ctor_set(x_541, 0, x_539); +lean_ctor_set(x_541, 1, x_540); +x_542 = l_Lean_throwError___at_Lean_Meta_casesOnStuckLHS___spec__1(x_541, x_5, x_6, x_7, x_8, x_531); +x_30 = x_542; +goto block_37; +} +else +{ +lean_object* x_543; +lean_dec(x_523); +lean_dec(x_521); +lean_dec(x_519); +lean_dec(x_507); +lean_dec(x_12); +if (lean_is_scalar(x_527)) { + x_543 = lean_alloc_ctor(1, 2, 0); +} else { + x_543 = x_527; +} +lean_ctor_set(x_543, 0, x_525); +lean_ctor_set(x_543, 1, x_526); +x_30 = x_543; +goto block_37; +} +} +else +{ +lean_object* x_544; +lean_dec(x_523); +lean_dec(x_521); +lean_dec(x_519); +lean_dec(x_507); +lean_dec(x_12); +if (lean_is_scalar(x_527)) { + x_544 = lean_alloc_ctor(1, 2, 0); +} else { + x_544 = x_527; +} +lean_ctor_set(x_544, 0, x_525); +lean_ctor_set(x_544, 1, x_526); +x_30 = x_544; +goto block_37; +} +} +} +else +{ +lean_object* x_545; +lean_dec(x_510); +lean_dec(x_507); +lean_dec(x_12); +if (lean_is_scalar(x_512)) { + x_545 = lean_alloc_ctor(1, 2, 0); +} else { + x_545 = x_512; + lean_ctor_set_tag(x_545, 1); +} +lean_ctor_set(x_545, 0, x_513); +lean_ctor_set(x_545, 1, x_514); +x_30 = x_545; +goto block_37; +} +} +else +{ +lean_object* x_546; +lean_dec(x_510); +lean_dec(x_507); +lean_dec(x_12); +if (lean_is_scalar(x_512)) { + x_546 = lean_alloc_ctor(1, 2, 0); +} else { + x_546 = x_512; + lean_ctor_set_tag(x_546, 1); +} +lean_ctor_set(x_546, 0, x_513); +lean_ctor_set(x_546, 1, x_514); +x_30 = x_546; +goto block_37; +} +} +} +else +{ +lean_object* x_574; +lean_dec(x_498); +lean_dec(x_12); +if (lean_is_scalar(x_500)) { + x_574 = lean_alloc_ctor(1, 2, 0); +} else { + x_574 = x_500; + lean_ctor_set_tag(x_574, 1); +} +lean_ctor_set(x_574, 0, x_501); +lean_ctor_set(x_574, 1, x_502); +x_30 = x_574; +goto block_37; +} +} +else +{ +lean_object* x_575; +lean_dec(x_498); +lean_dec(x_12); +if (lean_is_scalar(x_500)) { + x_575 = lean_alloc_ctor(1, 2, 0); +} else { + x_575 = x_500; + lean_ctor_set_tag(x_575, 1); +} +lean_ctor_set(x_575, 0, x_501); +lean_ctor_set(x_575, 1, x_502); +x_30 = x_575; +goto block_37; +} +} +} +else +{ +lean_object* x_590; +lean_dec(x_487); +lean_dec(x_12); +if (lean_is_scalar(x_492)) { + x_590 = lean_alloc_ctor(1, 2, 0); +} else { + x_590 = x_492; +} +lean_ctor_set(x_590, 0, x_490); +lean_ctor_set(x_590, 1, x_491); +x_30 = x_590; +goto block_37; +} +} +else +{ +lean_object* x_591; +lean_dec(x_487); +lean_dec(x_12); +if (lean_is_scalar(x_492)) { + x_591 = lean_alloc_ctor(1, 2, 0); +} else { + x_591 = x_492; +} +lean_ctor_set(x_591, 0, x_490); +lean_ctor_set(x_591, 1, x_491); +x_30 = x_591; +goto block_37; +} +} +} +else +{ +lean_object* x_592; +lean_dec(x_471); +lean_dec(x_12); +if (lean_is_scalar(x_481)) { + x_592 = lean_alloc_ctor(1, 2, 0); +} else { + x_592 = x_481; +} +lean_ctor_set(x_592, 0, x_479); +lean_ctor_set(x_592, 1, x_480); +x_30 = x_592; +goto block_37; +} +} +else +{ +lean_object* x_593; +lean_dec(x_471); +lean_dec(x_12); +if (lean_is_scalar(x_481)) { + x_593 = lean_alloc_ctor(1, 2, 0); +} else { + x_593 = x_481; +} +lean_ctor_set(x_593, 0, x_479); +lean_ctor_set(x_593, 1, x_480); +x_30 = x_593; +goto block_37; +} +} +} +else +{ +lean_object* x_594; +lean_dec(x_39); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_594 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_594, 0, x_464); +lean_ctor_set(x_594, 1, x_465); +return x_594; +} +} +else +{ +lean_object* x_595; +lean_dec(x_39); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_595 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_595, 0, x_464); +lean_ctor_set(x_595, 1, x_465); +return x_595; } } } @@ -18454,30 +18988,30 @@ return x_36; } else { -uint8_t x_552; +uint8_t x_596; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_552 = !lean_is_exclusive(x_11); -if (x_552 == 0) +x_596 = !lean_is_exclusive(x_11); +if (x_596 == 0) { return x_11; } else { -lean_object* x_553; lean_object* x_554; lean_object* x_555; -x_553 = lean_ctor_get(x_11, 0); -x_554 = lean_ctor_get(x_11, 1); -lean_inc(x_554); -lean_inc(x_553); +lean_object* x_597; lean_object* x_598; lean_object* x_599; +x_597 = lean_ctor_get(x_11, 0); +x_598 = lean_ctor_get(x_11, 1); +lean_inc(x_598); +lean_inc(x_597); lean_dec(x_11); -x_555 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_555, 0, x_553); -lean_ctor_set(x_555, 1, x_554); -return x_555; +x_599 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_599, 0, x_597); +lean_ctor_set(x_599, 1, x_598); +return x_599; } } } @@ -18502,7 +19036,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_Match_proveCondEqThm_go(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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_9 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; x_10 = lean_ctor_get(x_6, 0); lean_inc(x_10); @@ -18526,192 +19060,200 @@ x_19 = lean_ctor_get(x_6, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_6, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_22 = lean_ctor_get(x_6, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_6); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_6); +if (x_25 == 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; 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; uint8_t x_39; -x_24 = lean_ctor_get(x_6, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 8); +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; uint8_t x_42; +x_26 = lean_ctor_get(x_6, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 7); +x_27 = lean_ctor_get(x_6, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 6); +x_28 = lean_ctor_get(x_6, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 5); +x_29 = lean_ctor_get(x_6, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 4); +x_30 = lean_ctor_get(x_6, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 3); +x_31 = lean_ctor_get(x_6, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 2); +x_32 = lean_ctor_get(x_6, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 1); +x_33 = lean_ctor_get(x_6, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_6, 0); +x_34 = lean_ctor_get(x_6, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); -lean_dec(x_13); -lean_ctor_set(x_6, 3, x_36); -x_37 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_9, x_4, x_5, x_6, x_7, x_8); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); +x_35 = lean_ctor_get(x_6, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_6, 0); lean_dec(x_37); -x_41 = lean_box(0); -x_42 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_41, x_4, x_5, x_6, x_7, x_40); -return x_42; +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); +lean_dec(x_13); +lean_ctor_set(x_6, 3, x_39); +x_40 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_9, x_4, x_5, x_6, x_7, x_8); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_unbox(x_41); +lean_dec(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_box(0); +x_45 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_44, x_4, x_5, x_6, x_7, x_43); +return x_45; } else { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_37); -if (x_43 == 0) +uint8_t x_46; +x_46 = !lean_is_exclusive(x_40); +if (x_46 == 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; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_44 = lean_ctor_get(x_37, 1); -x_45 = lean_ctor_get(x_37, 0); -lean_dec(x_45); +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; +x_47 = lean_ctor_get(x_40, 1); +x_48 = lean_ctor_get(x_40, 0); +lean_dec(x_48); lean_inc(x_2); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_2); -x_47 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; -lean_ctor_set_tag(x_37, 6); -lean_ctor_set(x_37, 1, x_46); -lean_ctor_set(x_37, 0, x_47); -x_48 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_37); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_49, x_4, x_5, x_6, x_7, x_44); -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 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_51, x_4, x_5, x_6, x_7, x_52); -return x_53; -} -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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_54 = lean_ctor_get(x_37, 1); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_2); +x_50 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; +lean_ctor_set_tag(x_40, 6); +lean_ctor_set(x_40, 1, x_49); +lean_ctor_set(x_40, 0, x_50); +x_51 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_52 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_52, 0, x_40); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_52, x_4, x_5, x_6, x_7, x_47); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_37); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_54, x_4, x_5, x_6, x_7, x_55); +return x_56; +} +else +{ +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; +x_57 = lean_ctor_get(x_40, 1); +lean_inc(x_57); +lean_dec(x_40); lean_inc(x_2); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_2); -x_56 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; -x_57 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_59 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_59, x_4, x_5, x_6, x_7, x_54); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_61, x_4, x_5, x_6, x_7, x_62); -return x_63; +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_2); +x_59 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; +x_60 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_62 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_62, x_4, x_5, x_6, x_7, x_57); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_64, x_4, x_5, x_6, x_7, x_65); +return x_66; } } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +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_dec(x_6); -x_64 = lean_unsigned_to_nat(1u); -x_65 = lean_nat_add(x_13, x_64); +x_67 = lean_unsigned_to_nat(1u); +x_68 = lean_nat_add(x_13, x_67); lean_dec(x_13); -x_66 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_66, 0, x_10); -lean_ctor_set(x_66, 1, x_11); -lean_ctor_set(x_66, 2, x_12); -lean_ctor_set(x_66, 3, x_65); -lean_ctor_set(x_66, 4, x_14); -lean_ctor_set(x_66, 5, x_15); -lean_ctor_set(x_66, 6, x_16); -lean_ctor_set(x_66, 7, x_17); -lean_ctor_set(x_66, 8, x_18); -lean_ctor_set(x_66, 9, x_19); -lean_ctor_set(x_66, 10, x_20); -lean_ctor_set_uint8(x_66, sizeof(void*)*11, x_21); -x_67 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_9, x_4, x_5, x_66, x_7, x_8); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_unbox(x_68); -lean_dec(x_68); -if (x_69 == 0) +x_69 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_69, 0, x_10); +lean_ctor_set(x_69, 1, x_11); +lean_ctor_set(x_69, 2, x_12); +lean_ctor_set(x_69, 3, x_68); +lean_ctor_set(x_69, 4, x_14); +lean_ctor_set(x_69, 5, x_15); +lean_ctor_set(x_69, 6, x_16); +lean_ctor_set(x_69, 7, x_17); +lean_ctor_set(x_69, 8, x_18); +lean_ctor_set(x_69, 9, x_19); +lean_ctor_set(x_69, 10, x_20); +lean_ctor_set(x_69, 11, x_22); +lean_ctor_set_uint8(x_69, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_69, sizeof(void*)*12 + 1, x_23); +x_70 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_9, x_4, x_5, x_69, x_7, x_8); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_unbox(x_71); +lean_dec(x_71); +if (x_72 == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_box(0); -x_72 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_71, x_4, x_5, x_66, x_7, x_70); -return x_72; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = lean_box(0); +x_75 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_74, x_4, x_5, x_69, x_7, x_73); +return x_75; } 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; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_73 = lean_ctor_get(x_67, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_74 = x_67; +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; lean_object* x_86; +x_76 = lean_ctor_get(x_70, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_77 = x_70; } else { - lean_dec_ref(x_67); - x_74 = lean_box(0); + lean_dec_ref(x_70); + x_77 = lean_box(0); } lean_inc(x_2); -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_2); -x_76 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; -if (lean_is_scalar(x_74)) { - x_77 = lean_alloc_ctor(6, 2, 0); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_2); +x_79 = l_Lean_Meta_Match_proveCondEqThm_go___closed__2; +if (lean_is_scalar(x_77)) { + x_80 = lean_alloc_ctor(6, 2, 0); } else { - x_77 = x_74; - lean_ctor_set_tag(x_77, 6); + x_80 = x_77; + lean_ctor_set_tag(x_80, 6); } -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_79 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_79, x_4, x_5, x_66, x_7, x_73); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_81, x_4, x_5, x_66, x_7, x_82); -return x_83; +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_82 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_9, x_82, x_4, x_5, x_69, x_7, x_76); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Meta_Match_proveCondEqThm_go___lambda__3(x_2, x_1, x_3, x_84, x_4, x_5, x_69, x_7, x_85); +return x_86; } } } else { -lean_object* x_84; +lean_object* x_87; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -18725,12 +19267,12 @@ lean_dec(x_10); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_84 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Match_proveCondEqThm_go___spec__2(x_15, x_4, x_5, x_6, x_7, x_8); +x_87 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Match_proveCondEqThm_go___spec__2(x_15, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_84; +return x_87; } } } @@ -20472,35 +21014,35 @@ lean_inc(x_8); x_74 = lean_whnf(x_65, x_8, x_9, x_10, x_11, x_73); if (lean_obj_tag(x_74) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_199; +lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_202; x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); x_76 = lean_ctor_get(x_74, 1); lean_inc(x_76); lean_dec(x_74); -x_199 = l_Lean_Expr_isRawNatLit(x_72); +x_202 = l_Lean_Expr_isRawNatLit(x_72); lean_dec(x_72); -if (x_199 == 0) +if (x_202 == 0) { -lean_object* x_200; +lean_object* x_203; lean_dec(x_75); lean_free_object(x_15); -x_200 = lean_box(0); -x_77 = x_200; -goto block_198; +x_203 = lean_box(0); +x_77 = x_203; +goto block_201; } else { -uint8_t x_201; -x_201 = l_Lean_Expr_isRawNatLit(x_75); +uint8_t x_204; +x_204 = l_Lean_Expr_isRawNatLit(x_75); lean_dec(x_75); -if (x_201 == 0) +if (x_204 == 0) { -lean_object* x_202; +lean_object* x_205; lean_free_object(x_15); -x_202 = lean_box(0); -x_77 = x_202; -goto block_198; +x_205 = lean_box(0); +x_77 = x_205; +goto block_201; } else { @@ -20514,7 +21056,7 @@ x_28 = x_76; goto block_38; } } -block_198: +block_201: { lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_77); @@ -20585,50 +21127,54 @@ if (x_89 == 0) lean_object* x_90; lean_object* x_91; uint8_t x_92; x_90 = lean_ctor_get(x_80, 0); x_91 = lean_ctor_get(x_80, 1); -x_92 = l_Lean_Exception_isRuntime(x_90); +x_92 = l_Lean_Exception_isInterrupt(x_90); if (x_92 == 0) { -lean_object* x_93; lean_object* x_94; uint8_t x_95; +uint8_t x_93; +x_93 = l_Lean_Exception_isRuntime(x_90); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_free_object(x_80); -x_93 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_94 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_93, x_8, x_9, x_10, x_11, x_91); -x_95 = !lean_is_exclusive(x_94); -if (x_95 == 0) +x_94 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_95 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_94, x_8, x_9, x_10, x_11, x_91); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; -x_96 = lean_ctor_get(x_94, 0); -x_97 = lean_ctor_get(x_94, 1); -x_98 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_99 = lean_unbox(x_96); -lean_dec(x_96); -if (x_99 == 0) +lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_97 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_95, 1); +x_99 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_100 = lean_unbox(x_97); +lean_dec(x_97); +if (x_100 == 0) { -lean_object* x_100; lean_object* x_101; -lean_free_object(x_94); +lean_object* x_101; lean_object* x_102; +lean_free_object(x_95); lean_dec(x_90); lean_dec(x_66); lean_dec(x_56); -x_100 = lean_box(0); +x_101 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_101 = lean_apply_6(x_98, x_100, x_8, x_9, x_10, x_11, x_97); -if (lean_obj_tag(x_101) == 0) +x_102 = lean_apply_6(x_99, x_101, x_8, x_9, x_10, x_11, x_98); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -lean_dec(x_101); -x_39 = x_102; -x_40 = x_103; +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_39 = x_103; +x_40 = x_104; goto block_53; } else { -uint8_t x_104; +uint8_t x_105; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -20638,79 +21184,79 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_104 = !lean_is_exclusive(x_101); -if (x_104 == 0) +x_105 = !lean_is_exclusive(x_102); +if (x_105 == 0) { -return x_101; +return x_102; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_101, 0); -x_106 = lean_ctor_get(x_101, 1); +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_102, 0); +x_107 = lean_ctor_get(x_102, 1); +lean_inc(x_107); lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_101); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +lean_dec(x_102); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; } } } 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; -x_108 = l_Lean_LocalDecl_userName(x_56); +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; +x_109 = l_Lean_LocalDecl_userName(x_56); lean_dec(x_56); -x_109 = l_Lean_MessageData_ofName(x_108); -x_110 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -lean_ctor_set_tag(x_94, 6); -lean_ctor_set(x_94, 1, x_109); -lean_ctor_set(x_94, 0, x_110); -x_111 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +x_110 = l_Lean_MessageData_ofName(x_109); +x_111 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +lean_ctor_set_tag(x_95, 6); +lean_ctor_set(x_95, 1, x_110); +lean_ctor_set(x_95, 0, x_111); +x_112 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; if (lean_is_scalar(x_66)) { - x_112 = lean_alloc_ctor(6, 2, 0); + x_113 = lean_alloc_ctor(6, 2, 0); } else { - x_112 = x_66; - lean_ctor_set_tag(x_112, 6); + x_113 = x_66; + lean_ctor_set_tag(x_113, 6); } -lean_ctor_set(x_112, 0, x_94); -lean_ctor_set(x_112, 1, x_111); -x_113 = l_Lean_Exception_toMessageData(x_90); -x_114 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_116 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -x_117 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_93, x_116, x_8, x_9, x_10, x_11, x_97); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); +lean_ctor_set(x_113, 0, x_95); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_Exception_toMessageData(x_90); +x_115 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +x_116 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_117 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_94, x_117, x_8, x_9, x_10, x_11, x_98); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); -lean_dec(x_117); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_120 = lean_apply_6(x_98, x_118, x_8, x_9, x_10, x_11, x_119); -if (lean_obj_tag(x_120) == 0) +x_121 = lean_apply_6(x_99, x_119, x_8, x_9, x_10, x_11, x_120); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_121, 0); lean_inc(x_122); -lean_dec(x_120); -x_39 = x_121; -x_40 = x_122; +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_39 = x_122; +x_40 = x_123; goto block_53; } else { -uint8_t x_123; +uint8_t x_124; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -20720,65 +21266,65 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_123 = !lean_is_exclusive(x_120); -if (x_123 == 0) +x_124 = !lean_is_exclusive(x_121); +if (x_124 == 0) { -return x_120; +return x_121; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_120, 0); -x_125 = lean_ctor_get(x_120, 1); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_121, 0); +x_126 = lean_ctor_get(x_121, 1); +lean_inc(x_126); lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_120); -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; +lean_dec(x_121); +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 { -lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_127 = lean_ctor_get(x_94, 0); -x_128 = lean_ctor_get(x_94, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_128 = lean_ctor_get(x_95, 0); +x_129 = lean_ctor_get(x_95, 1); +lean_inc(x_129); lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_94); -x_129 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_130 = lean_unbox(x_127); -lean_dec(x_127); -if (x_130 == 0) +lean_dec(x_95); +x_130 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_131 = lean_unbox(x_128); +lean_dec(x_128); +if (x_131 == 0) { -lean_object* x_131; lean_object* x_132; +lean_object* x_132; lean_object* x_133; lean_dec(x_90); lean_dec(x_66); lean_dec(x_56); -x_131 = lean_box(0); +x_132 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_132 = lean_apply_6(x_129, x_131, x_8, x_9, x_10, x_11, x_128); -if (lean_obj_tag(x_132) == 0) +x_133 = lean_apply_6(x_130, x_132, x_8, x_9, x_10, x_11, x_129); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); -lean_dec(x_132); -x_39 = x_133; -x_40 = x_134; +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_39 = x_134; +x_40 = x_135; goto block_53; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -20788,81 +21334,81 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_135 = lean_ctor_get(x_132, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_132, 1); +x_136 = lean_ctor_get(x_133, 0); lean_inc(x_136); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_137 = x_132; +x_137 = lean_ctor_get(x_133, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_138 = x_133; } else { - lean_dec_ref(x_132); - x_137 = lean_box(0); + lean_dec_ref(x_133); + x_138 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_138 = x_137; + x_139 = x_138; } -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; } } 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_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_139 = l_Lean_LocalDecl_userName(x_56); +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; +x_140 = l_Lean_LocalDecl_userName(x_56); lean_dec(x_56); -x_140 = l_Lean_MessageData_ofName(x_139); -x_141 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -x_142 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -x_143 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +x_141 = l_Lean_MessageData_ofName(x_140); +x_142 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +x_143 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; if (lean_is_scalar(x_66)) { - x_144 = lean_alloc_ctor(6, 2, 0); + x_145 = lean_alloc_ctor(6, 2, 0); } else { - x_144 = x_66; - lean_ctor_set_tag(x_144, 6); + x_145 = x_66; + lean_ctor_set_tag(x_145, 6); } -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -x_145 = l_Lean_Exception_toMessageData(x_90); -x_146 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -x_147 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_148 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -x_149 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_93, x_148, x_8, x_9, x_10, x_11, x_128); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +x_146 = l_Lean_Exception_toMessageData(x_90); +x_147 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_149 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_94, x_149, x_8, x_9, x_10, x_11, x_129); +x_151 = lean_ctor_get(x_150, 0); lean_inc(x_151); -lean_dec(x_149); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_152 = lean_apply_6(x_129, x_150, x_8, x_9, x_10, x_11, x_151); -if (lean_obj_tag(x_152) == 0) +x_153 = lean_apply_6(x_130, x_151, x_8, x_9, x_10, x_11, x_152); +if (lean_obj_tag(x_153) == 0) { -lean_object* x_153; lean_object* x_154; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_153, 0); lean_inc(x_154); -lean_dec(x_152); -x_39 = x_153; -x_40 = x_154; +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_39 = x_154; +x_40 = x_155; goto block_53; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -20872,26 +21418,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_155 = lean_ctor_get(x_152, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_152, 1); +x_156 = lean_ctor_get(x_153, 0); lean_inc(x_156); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_157 = x_152; +x_157 = lean_ctor_get(x_153, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_158 = x_153; } else { - lean_dec_ref(x_152); - x_157 = lean_box(0); + lean_dec_ref(x_153); + x_158 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_158 = x_157; + x_159 = x_158; } -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } } @@ -20914,61 +21460,8 @@ return x_80; } else { -lean_object* x_159; lean_object* x_160; uint8_t x_161; -x_159 = lean_ctor_get(x_80, 0); -x_160 = lean_ctor_get(x_80, 1); -lean_inc(x_160); -lean_inc(x_159); -lean_dec(x_80); -x_161 = l_Lean_Exception_isRuntime(x_159); -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; uint8_t x_168; -x_162 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_163 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_162, x_8, x_9, x_10, x_11, x_160); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_166 = x_163; -} else { - lean_dec_ref(x_163); - x_166 = lean_box(0); -} -x_167 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_168 = lean_unbox(x_164); -lean_dec(x_164); -if (x_168 == 0) -{ -lean_object* x_169; lean_object* x_170; -lean_dec(x_166); -lean_dec(x_159); lean_dec(x_66); lean_dec(x_56); -x_169 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_170 = lean_apply_6(x_167, x_169, x_8, x_9, x_10, x_11, x_165); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; lean_object* x_172; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_39 = x_171; -x_40 = x_172; -goto block_53; -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -20978,86 +21471,159 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_173 = lean_ctor_get(x_170, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_170, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_175 = x_170; -} else { - lean_dec_ref(x_170); - 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; +return x_80; } } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_177 = l_Lean_LocalDecl_userName(x_56); -lean_dec(x_56); -x_178 = l_Lean_MessageData_ofName(x_177); -x_179 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -if (lean_is_scalar(x_166)) { - x_180 = lean_alloc_ctor(6, 2, 0); +lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_160 = lean_ctor_get(x_80, 0); +x_161 = lean_ctor_get(x_80, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_80); +x_162 = l_Lean_Exception_isInterrupt(x_160); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = l_Lean_Exception_isRuntime(x_160); +if (x_163 == 0) +{ +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; +x_164 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_165 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_164, x_8, x_9, x_10, x_11, x_161); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_168 = x_165; } else { - x_180 = x_166; - lean_ctor_set_tag(x_180, 6); + lean_dec_ref(x_165); + x_168 = lean_box(0); } -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_178); -x_181 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; -if (lean_is_scalar(x_66)) { +x_169 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_170 = lean_unbox(x_166); +lean_dec(x_166); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; +lean_dec(x_168); +lean_dec(x_160); +lean_dec(x_66); +lean_dec(x_56); +x_171 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_172 = lean_apply_6(x_169, x_171, x_8, x_9, x_10, x_11, x_167); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; +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_39 = x_173; +x_40 = x_174; +goto block_53; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_175 = lean_ctor_get(x_172, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_172, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_177 = x_172; +} else { + lean_dec_ref(x_172); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(1, 2, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +return x_178; +} +} +else +{ +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; +x_179 = l_Lean_LocalDecl_userName(x_56); +lean_dec(x_56); +x_180 = l_Lean_MessageData_ofName(x_179); +x_181 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +if (lean_is_scalar(x_168)) { x_182 = lean_alloc_ctor(6, 2, 0); } else { - x_182 = x_66; + x_182 = x_168; lean_ctor_set_tag(x_182, 6); } -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -x_183 = l_Lean_Exception_toMessageData(x_159); -x_184 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_180); +x_183 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +if (lean_is_scalar(x_66)) { + x_184 = lean_alloc_ctor(6, 2, 0); +} else { + x_184 = x_66; + lean_ctor_set_tag(x_184, 6); +} lean_ctor_set(x_184, 0, x_182); lean_ctor_set(x_184, 1, x_183); -x_185 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_185 = l_Lean_Exception_toMessageData(x_160); x_186 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_186, 0, x_184); lean_ctor_set(x_186, 1, x_185); -x_187 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_162, x_186, x_8, x_9, x_10, x_11, x_165); -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); +x_187 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_188 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +x_189 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_164, x_188, x_8, x_9, x_10, x_11, x_167); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_190 = lean_apply_6(x_167, x_188, x_8, x_9, x_10, x_11, x_189); -if (lean_obj_tag(x_190) == 0) +x_192 = lean_apply_6(x_169, x_190, x_8, x_9, x_10, x_11, x_191); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec(x_190); -x_39 = x_191; -x_40 = x_192; +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_39 = x_193; +x_40 = x_194; goto block_53; } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21067,32 +21633,32 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_193 = lean_ctor_get(x_190, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_190, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_195 = x_190; +x_195 = lean_ctor_get(x_192, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_192, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_197 = x_192; } else { - lean_dec_ref(x_190); - x_195 = lean_box(0); + lean_dec_ref(x_192); + x_197 = lean_box(0); } -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); } else { - x_196 = x_195; + x_198 = x_197; } -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; } } } else { -lean_object* x_197; +lean_object* x_199; lean_dec(x_66); lean_dec(x_56); lean_dec(x_26); @@ -21104,10 +21670,30 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_159); -lean_ctor_set(x_197, 1, x_160); -return x_197; +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_160); +lean_ctor_set(x_199, 1, x_161); +return x_199; +} +} +else +{ +lean_object* x_200; +lean_dec(x_66); +lean_dec(x_56); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_160); +lean_ctor_set(x_200, 1, x_161); +return x_200; } } } @@ -21115,7 +21701,7 @@ return x_197; } else { -uint8_t x_203; +uint8_t x_206; lean_dec(x_72); lean_dec(x_66); lean_dec(x_62); @@ -21130,29 +21716,29 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_203 = !lean_is_exclusive(x_74); -if (x_203 == 0) +x_206 = !lean_is_exclusive(x_74); +if (x_206 == 0) { return x_74; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_74, 0); -x_205 = lean_ctor_get(x_74, 1); -lean_inc(x_205); -lean_inc(x_204); +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_74, 0); +x_208 = lean_ctor_get(x_74, 1); +lean_inc(x_208); +lean_inc(x_207); lean_dec(x_74); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +return x_209; } } } else { -uint8_t x_207; +uint8_t x_210; lean_dec(x_66); lean_dec(x_65); lean_dec(x_62); @@ -21167,52 +21753,52 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_207 = !lean_is_exclusive(x_71); -if (x_207 == 0) +x_210 = !lean_is_exclusive(x_71); +if (x_210 == 0) { return x_71; } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_71, 0); -x_209 = lean_ctor_get(x_71, 1); -lean_inc(x_209); -lean_inc(x_208); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_71, 0); +x_212 = lean_ctor_get(x_71, 1); +lean_inc(x_212); +lean_inc(x_211); lean_dec(x_71); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_208); -lean_ctor_set(x_210, 1, x_209); -return x_210; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } else { -lean_object* x_211; lean_object* x_212; +lean_object* x_214; lean_object* x_215; lean_dec(x_66); lean_dec(x_65); lean_dec(x_64); lean_free_object(x_15); lean_dec(x_56); -x_211 = lean_ctor_get(x_67, 1); -lean_inc(x_211); +x_214 = lean_ctor_get(x_67, 1); +lean_inc(x_214); lean_dec(x_67); lean_inc(x_2); if (lean_is_scalar(x_62)) { - x_212 = lean_alloc_ctor(1, 1, 0); + x_215 = lean_alloc_ctor(1, 1, 0); } else { - x_212 = x_62; + x_215 = x_62; } -lean_ctor_set(x_212, 0, x_2); -x_27 = x_212; -x_28 = x_211; +lean_ctor_set(x_215, 0, x_2); +x_27 = x_215; +x_28 = x_214; goto block_38; } } else { -uint8_t x_213; +uint8_t x_216; lean_dec(x_66); lean_dec(x_65); lean_dec(x_64); @@ -21228,30 +21814,30 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_213 = !lean_is_exclusive(x_67); -if (x_213 == 0) +x_216 = !lean_is_exclusive(x_67); +if (x_216 == 0) { return x_67; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_67, 0); -x_215 = lean_ctor_get(x_67, 1); -lean_inc(x_215); -lean_inc(x_214); +lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_217 = lean_ctor_get(x_67, 0); +x_218 = lean_ctor_get(x_67, 1); +lean_inc(x_218); +lean_inc(x_217); lean_dec(x_67); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_214); -lean_ctor_set(x_216, 1, x_215); -return x_216; +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +return x_219; } } } } else { -uint8_t x_217; +uint8_t x_220; lean_free_object(x_15); lean_dec(x_56); lean_dec(x_26); @@ -21263,293 +21849,297 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_217 = !lean_is_exclusive(x_58); -if (x_217 == 0) +x_220 = !lean_is_exclusive(x_58); +if (x_220 == 0) { return x_58; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_58, 0); -x_219 = lean_ctor_get(x_58, 1); -lean_inc(x_219); -lean_inc(x_218); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_58, 0); +x_222 = lean_ctor_get(x_58, 1); +lean_inc(x_222); +lean_inc(x_221); lean_dec(x_58); -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; +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_221); +lean_ctor_set(x_223, 1, x_222); +return x_223; } } } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_221 = lean_ctor_get(x_15, 0); -lean_inc(x_221); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_15, 0); +lean_inc(x_224); lean_dec(x_15); -x_222 = l_Lean_LocalDecl_type(x_221); +x_225 = l_Lean_LocalDecl_type(x_224); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_223 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAnyCandidate_x3f(x_222, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_223) == 0) +x_226 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAnyCandidate_x3f(x_225, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_226) == 0) { -lean_object* x_224; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -if (lean_obj_tag(x_224) == 0) +lean_object* x_227; +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_225; lean_object* x_226; -lean_dec(x_221); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); +lean_object* x_228; lean_object* x_229; +lean_dec(x_224); +x_228 = lean_ctor_get(x_226, 1); +lean_inc(x_228); +lean_dec(x_226); lean_inc(x_2); -x_226 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_226, 0, x_2); -x_27 = x_226; -x_28 = x_225; +x_229 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_229, 0, x_2); +x_27 = x_229; +x_28 = x_228; goto block_38; } else { -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; -x_227 = lean_ctor_get(x_224, 0); -lean_inc(x_227); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - x_228 = x_224; -} else { - lean_dec_ref(x_224); - x_228 = lean_box(0); -} -x_229 = lean_ctor_get(x_223, 1); -lean_inc(x_229); -lean_dec(x_223); +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 = lean_ctor_get(x_227, 0); lean_inc(x_230); -x_231 = lean_ctor_get(x_227, 1); -lean_inc(x_231); if (lean_is_exclusive(x_227)) { lean_ctor_release(x_227, 0); - lean_ctor_release(x_227, 1); - x_232 = x_227; + x_231 = x_227; } else { lean_dec_ref(x_227); - x_232 = lean_box(0); + x_231 = lean_box(0); +} +x_232 = lean_ctor_get(x_226, 1); +lean_inc(x_232); +lean_dec(x_226); +x_233 = lean_ctor_get(x_230, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_230, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_235 = x_230; +} else { + lean_dec_ref(x_230); + x_235 = lean_box(0); } lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_231); -lean_inc(x_230); -x_233 = l_Lean_Meta_isExprDefEq(x_230, x_231, x_8, x_9, x_10, x_11, x_229); -if (lean_obj_tag(x_233) == 0) -{ -lean_object* x_234; uint8_t x_235; -x_234 = lean_ctor_get(x_233, 0); lean_inc(x_234); -x_235 = lean_unbox(x_234); -lean_dec(x_234); -if (x_235 == 0) +lean_inc(x_233); +x_236 = l_Lean_Meta_isExprDefEq(x_233, x_234, x_8, x_9, x_10, x_11, x_232); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_236; lean_object* x_237; -x_236 = lean_ctor_get(x_233, 1); -lean_inc(x_236); -lean_dec(x_233); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_237 = lean_whnf(x_230, x_8, x_9, x_10, x_11, x_236); -if (lean_obj_tag(x_237) == 0) -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); +lean_object* x_237; uint8_t x_238; +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_unbox(x_237); lean_dec(x_237); +if (x_238 == 0) +{ +lean_object* x_239; lean_object* x_240; +x_239 = lean_ctor_get(x_236, 1); +lean_inc(x_239); +lean_dec(x_236); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_240 = lean_whnf(x_231, x_8, x_9, x_10, x_11, x_239); +x_240 = lean_whnf(x_233, x_8, x_9, x_10, x_11, x_239); if (lean_obj_tag(x_240) == 0) { -lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_296; +lean_object* x_241; lean_object* x_242; lean_object* x_243; x_241 = lean_ctor_get(x_240, 0); lean_inc(x_241); x_242 = lean_ctor_get(x_240, 1); lean_inc(x_242); lean_dec(x_240); -x_296 = l_Lean_Expr_isRawNatLit(x_238); -lean_dec(x_238); -if (x_296 == 0) +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_243 = lean_whnf(x_234, x_8, x_9, x_10, x_11, x_242); +if (lean_obj_tag(x_243) == 0) { -lean_object* x_297; +lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_301; +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_301 = l_Lean_Expr_isRawNatLit(x_241); lean_dec(x_241); -x_297 = lean_box(0); -x_243 = x_297; -goto block_295; +if (x_301 == 0) +{ +lean_object* x_302; +lean_dec(x_244); +x_302 = lean_box(0); +x_246 = x_302; +goto block_300; } else { -uint8_t x_298; -x_298 = l_Lean_Expr_isRawNatLit(x_241); -lean_dec(x_241); -if (x_298 == 0) +uint8_t x_303; +x_303 = l_Lean_Expr_isRawNatLit(x_244); +lean_dec(x_244); +if (x_303 == 0) { -lean_object* x_299; -x_299 = lean_box(0); -x_243 = x_299; -goto block_295; +lean_object* x_304; +x_304 = lean_box(0); +x_246 = x_304; +goto block_300; } else { -lean_object* x_300; -lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_221); +lean_object* x_305; +lean_dec(x_235); +lean_dec(x_231); +lean_dec(x_224); lean_inc(x_2); -x_300 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_300, 0, x_2); -x_27 = x_300; -x_28 = x_242; +x_305 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_305, 0, x_2); +x_27 = x_305; +x_28 = x_245; goto block_38; } } -block_295: +block_300: { -lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_dec(x_243); -x_244 = l_Lean_LocalDecl_fvarId(x_221); -x_245 = lean_box(0); +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_246); +x_247 = l_Lean_LocalDecl_fvarId(x_224); +x_248 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_246 = l_Lean_Meta_injection(x_1, x_244, x_245, x_8, x_9, x_10, x_11, x_242); -if (lean_obj_tag(x_246) == 0) +x_249 = l_Lean_Meta_injection(x_1, x_247, x_248, x_8, x_9, x_10, x_11, x_245); +if (lean_obj_tag(x_249) == 0) { -lean_object* x_247; -lean_dec(x_221); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; lean_object* x_249; -lean_dec(x_232); -lean_dec(x_228); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -x_249 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__1; -x_39 = x_249; -x_40 = x_248; -goto block_53; -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_250 = lean_ctor_get(x_246, 1); +lean_object* x_250; +lean_dec(x_224); +x_250 = lean_ctor_get(x_249, 0); lean_inc(x_250); -lean_dec(x_246); -x_251 = lean_ctor_get(x_247, 0); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; +lean_dec(x_235); +lean_dec(x_231); +x_251 = lean_ctor_get(x_249, 1); lean_inc(x_251); -lean_dec(x_247); -if (lean_is_scalar(x_228)) { - x_252 = lean_alloc_ctor(2, 1, 0); -} else { - x_252 = x_228; - lean_ctor_set_tag(x_252, 2); +lean_dec(x_249); +x_252 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__1; +x_39 = x_252; +x_40 = x_251; +goto block_53; } -lean_ctor_set(x_252, 0, x_251); -x_253 = lean_box(0); -if (lean_is_scalar(x_232)) { - x_254 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_253 = lean_ctor_get(x_249, 1); +lean_inc(x_253); +lean_dec(x_249); +x_254 = lean_ctor_get(x_250, 0); +lean_inc(x_254); +lean_dec(x_250); +if (lean_is_scalar(x_231)) { + x_255 = lean_alloc_ctor(2, 1, 0); } else { - x_254 = x_232; - lean_ctor_set_tag(x_254, 1); + x_255 = x_231; + lean_ctor_set_tag(x_255, 2); } -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -x_39 = x_254; -x_40 = x_250; +lean_ctor_set(x_255, 0, x_254); +x_256 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_257 = lean_alloc_ctor(1, 2, 0); +} else { + x_257 = x_235; + lean_ctor_set_tag(x_257, 1); +} +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +x_39 = x_257; +x_40 = x_253; goto block_53; } } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; -lean_dec(x_228); -x_255 = lean_ctor_get(x_246, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_246, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_257 = x_246; +lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; +lean_dec(x_231); +x_258 = lean_ctor_get(x_249, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_249, 1); +lean_inc(x_259); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_260 = x_249; } else { - lean_dec_ref(x_246); - x_257 = lean_box(0); + lean_dec_ref(x_249); + x_260 = lean_box(0); } -x_258 = l_Lean_Exception_isRuntime(x_255); -if (x_258 == 0) +x_261 = l_Lean_Exception_isInterrupt(x_258); +if (x_261 == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; -lean_dec(x_257); -x_259 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_260 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_259, x_8, x_9, x_10, x_11, x_256); -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - lean_ctor_release(x_260, 1); - x_263 = x_260; +uint8_t x_262; +x_262 = l_Lean_Exception_isRuntime(x_258); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; +lean_dec(x_260); +x_263 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_264 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_263, x_8, x_9, x_10, x_11, x_259); +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_264)) { + lean_ctor_release(x_264, 0); + lean_ctor_release(x_264, 1); + x_267 = x_264; } else { - lean_dec_ref(x_260); - x_263 = lean_box(0); + lean_dec_ref(x_264); + x_267 = lean_box(0); } -x_264 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_265 = lean_unbox(x_261); -lean_dec(x_261); -if (x_265 == 0) +x_268 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_269 = lean_unbox(x_265); +lean_dec(x_265); +if (x_269 == 0) { -lean_object* x_266; lean_object* x_267; -lean_dec(x_263); -lean_dec(x_255); -lean_dec(x_232); -lean_dec(x_221); -x_266 = lean_box(0); +lean_object* x_270; lean_object* x_271; +lean_dec(x_267); +lean_dec(x_258); +lean_dec(x_235); +lean_dec(x_224); +x_270 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_267 = lean_apply_6(x_264, x_266, x_8, x_9, x_10, x_11, x_262); -if (lean_obj_tag(x_267) == 0) +x_271 = lean_apply_6(x_268, x_270, x_8, x_9, x_10, x_11, x_266); +if (lean_obj_tag(x_271) == 0) { -lean_object* x_268; lean_object* x_269; -x_268 = lean_ctor_get(x_267, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); -lean_dec(x_267); -x_39 = x_268; -x_40 = x_269; +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +lean_dec(x_271); +x_39 = x_272; +x_40 = x_273; goto block_53; } 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_object* x_277; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21559,86 +22149,86 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_270 = lean_ctor_get(x_267, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_267, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_267)) { - lean_ctor_release(x_267, 0); - lean_ctor_release(x_267, 1); - x_272 = x_267; +x_274 = lean_ctor_get(x_271, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_271, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_276 = x_271; } else { - lean_dec_ref(x_267); - x_272 = lean_box(0); + lean_dec_ref(x_271); + x_276 = lean_box(0); } -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); } else { - x_273 = x_272; + x_277 = x_276; } -lean_ctor_set(x_273, 0, x_270); -lean_ctor_set(x_273, 1, x_271); -return x_273; +lean_ctor_set(x_277, 0, x_274); +lean_ctor_set(x_277, 1, x_275); +return x_277; } } else { -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_274 = l_Lean_LocalDecl_userName(x_221); -lean_dec(x_221); -x_275 = l_Lean_MessageData_ofName(x_274); -x_276 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -if (lean_is_scalar(x_263)) { - x_277 = lean_alloc_ctor(6, 2, 0); +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_278 = l_Lean_LocalDecl_userName(x_224); +lean_dec(x_224); +x_279 = l_Lean_MessageData_ofName(x_278); +x_280 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +if (lean_is_scalar(x_267)) { + x_281 = lean_alloc_ctor(6, 2, 0); } else { - x_277 = x_263; - lean_ctor_set_tag(x_277, 6); + x_281 = x_267; + lean_ctor_set_tag(x_281, 6); } -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -x_278 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; -if (lean_is_scalar(x_232)) { - x_279 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_279); +x_282 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +if (lean_is_scalar(x_235)) { + x_283 = lean_alloc_ctor(6, 2, 0); } else { - x_279 = x_232; - lean_ctor_set_tag(x_279, 6); + x_283 = x_235; + lean_ctor_set_tag(x_283, 6); } -lean_ctor_set(x_279, 0, x_277); -lean_ctor_set(x_279, 1, x_278); -x_280 = l_Lean_Exception_toMessageData(x_255); -x_281 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_281, 0, x_279); -lean_ctor_set(x_281, 1, x_280); -x_282 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_283 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_283, 0, x_281); lean_ctor_set(x_283, 1, x_282); -x_284 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_259, x_283, x_8, x_9, x_10, x_11, x_262); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); +x_284 = l_Lean_Exception_toMessageData(x_258); +x_285 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_285, 0, x_283); +lean_ctor_set(x_285, 1, x_284); +x_286 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_287 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_287, 0, x_285); +lean_ctor_set(x_287, 1, x_286); +x_288 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_263, x_287, x_8, x_9, x_10, x_11, x_266); +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); +lean_inc(x_290); +lean_dec(x_288); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_287 = lean_apply_6(x_264, x_285, x_8, x_9, x_10, x_11, x_286); -if (lean_obj_tag(x_287) == 0) +x_291 = lean_apply_6(x_268, x_289, x_8, x_9, x_10, x_11, x_290); +if (lean_obj_tag(x_291) == 0) { -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_287, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_287, 1); -lean_inc(x_289); -lean_dec(x_287); -x_39 = x_288; -x_40 = x_289; +lean_object* x_292; lean_object* x_293; +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_39 = x_292; +x_40 = x_293; goto block_53; } else { -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_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21648,34 +22238,34 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_290 = lean_ctor_get(x_287, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_287, 1); -lean_inc(x_291); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_292 = x_287; +x_294 = lean_ctor_get(x_291, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_291, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_296 = x_291; } else { - lean_dec_ref(x_287); - x_292 = lean_box(0); + lean_dec_ref(x_291); + x_296 = lean_box(0); } -if (lean_is_scalar(x_292)) { - x_293 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(1, 2, 0); } else { - x_293 = x_292; + x_297 = x_296; } -lean_ctor_set(x_293, 0, x_290); -lean_ctor_set(x_293, 1, x_291); -return x_293; +lean_ctor_set(x_297, 0, x_294); +lean_ctor_set(x_297, 1, x_295); +return x_297; } } } else { -lean_object* x_294; -lean_dec(x_232); -lean_dec(x_221); +lean_object* x_298; +lean_dec(x_235); +lean_dec(x_224); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21685,25 +22275,49 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_257)) { - x_294 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_260)) { + x_298 = lean_alloc_ctor(1, 2, 0); } else { - x_294 = x_257; + x_298 = x_260; } -lean_ctor_set(x_294, 0, x_255); -lean_ctor_set(x_294, 1, x_256); -return x_294; +lean_ctor_set(x_298, 0, x_258); +lean_ctor_set(x_298, 1, x_259); +return x_298; +} +} +else +{ +lean_object* x_299; +lean_dec(x_235); +lean_dec(x_224); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +if (lean_is_scalar(x_260)) { + x_299 = lean_alloc_ctor(1, 2, 0); +} else { + x_299 = x_260; +} +lean_ctor_set(x_299, 0, x_258); +lean_ctor_set(x_299, 1, x_259); +return x_299; } } } } else { -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_238); -lean_dec(x_232); -lean_dec(x_228); -lean_dec(x_221); +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +lean_dec(x_241); +lean_dec(x_235); +lean_dec(x_231); +lean_dec(x_224); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21713,96 +22327,96 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_301 = lean_ctor_get(x_240, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_240, 1); -lean_inc(x_302); +x_306 = lean_ctor_get(x_243, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_243, 1); +lean_inc(x_307); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_308 = x_243; +} else { + lean_dec_ref(x_243); + 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_306); +lean_ctor_set(x_309, 1, x_307); +return x_309; +} +} +else +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_231); +lean_dec(x_224); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_310 = lean_ctor_get(x_240, 0); +lean_inc(x_310); +x_311 = lean_ctor_get(x_240, 1); +lean_inc(x_311); if (lean_is_exclusive(x_240)) { lean_ctor_release(x_240, 0); lean_ctor_release(x_240, 1); - x_303 = x_240; + x_312 = x_240; } else { lean_dec_ref(x_240); - x_303 = lean_box(0); + x_312 = lean_box(0); } -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_312)) { + x_313 = lean_alloc_ctor(1, 2, 0); } else { - x_304 = x_303; + x_313 = x_312; } -lean_ctor_set(x_304, 0, x_301); -lean_ctor_set(x_304, 1, x_302); -return x_304; +lean_ctor_set(x_313, 0, x_310); +lean_ctor_set(x_313, 1, x_311); +return x_313; } } else { -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_232); -lean_dec(x_231); -lean_dec(x_228); -lean_dec(x_221); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(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); -x_305 = lean_ctor_get(x_237, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_237, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_307 = x_237; -} else { - lean_dec_ref(x_237); - x_307 = lean_box(0); -} -if (lean_is_scalar(x_307)) { - x_308 = lean_alloc_ctor(1, 2, 0); -} else { - x_308 = x_307; -} -lean_ctor_set(x_308, 0, x_305); -lean_ctor_set(x_308, 1, x_306); -return x_308; -} -} -else -{ -lean_object* x_309; lean_object* x_310; -lean_dec(x_232); -lean_dec(x_231); -lean_dec(x_230); -lean_dec(x_221); -x_309 = lean_ctor_get(x_233, 1); -lean_inc(x_309); +lean_object* x_314; lean_object* x_315; +lean_dec(x_235); +lean_dec(x_234); lean_dec(x_233); +lean_dec(x_224); +x_314 = lean_ctor_get(x_236, 1); +lean_inc(x_314); +lean_dec(x_236); lean_inc(x_2); -if (lean_is_scalar(x_228)) { - x_310 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_231)) { + x_315 = lean_alloc_ctor(1, 1, 0); } else { - x_310 = x_228; + x_315 = x_231; } -lean_ctor_set(x_310, 0, x_2); -x_27 = x_310; -x_28 = x_309; +lean_ctor_set(x_315, 0, x_2); +x_27 = x_315; +x_28 = x_314; goto block_38; } } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -lean_dec(x_232); +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_233); lean_dec(x_231); -lean_dec(x_230); -lean_dec(x_228); -lean_dec(x_221); +lean_dec(x_224); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21812,33 +22426,33 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_311 = lean_ctor_get(x_233, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_233, 1); -lean_inc(x_312); -if (lean_is_exclusive(x_233)) { - lean_ctor_release(x_233, 0); - lean_ctor_release(x_233, 1); - x_313 = x_233; +x_316 = lean_ctor_get(x_236, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_236, 1); +lean_inc(x_317); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_318 = x_236; } else { - lean_dec_ref(x_233); - x_313 = lean_box(0); + lean_dec_ref(x_236); + x_318 = lean_box(0); } -if (lean_is_scalar(x_313)) { - x_314 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_318)) { + x_319 = lean_alloc_ctor(1, 2, 0); } else { - x_314 = x_313; + x_319 = x_318; } -lean_ctor_set(x_314, 0, x_311); -lean_ctor_set(x_314, 1, x_312); -return x_314; +lean_ctor_set(x_319, 0, x_316); +lean_ctor_set(x_319, 1, x_317); +return x_319; } } } else { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; -lean_dec(x_221); +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_dec(x_224); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -21848,26 +22462,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_315 = lean_ctor_get(x_223, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_223, 1); -lean_inc(x_316); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_317 = x_223; +x_320 = lean_ctor_get(x_226, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_226, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_322 = x_226; } else { - lean_dec_ref(x_223); - x_317 = lean_box(0); + lean_dec_ref(x_226); + x_322 = lean_box(0); } -if (lean_is_scalar(x_317)) { - x_318 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); } else { - x_318 = x_317; + x_323 = x_322; } -lean_ctor_set(x_318, 0, x_315); -lean_ctor_set(x_318, 1, x_316); -return x_318; +lean_ctor_set(x_323, 0, x_320); +lean_ctor_set(x_323, 1, x_321); +return x_323; } } } @@ -22383,35 +22997,35 @@ lean_inc(x_8); x_79 = lean_whnf(x_70, x_8, x_9, x_10, x_11, x_78); if (lean_obj_tag(x_79) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_204; +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_207; x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); lean_dec(x_79); -x_204 = l_Lean_Expr_isRawNatLit(x_77); +x_207 = l_Lean_Expr_isRawNatLit(x_77); lean_dec(x_77); -if (x_204 == 0) +if (x_207 == 0) { -lean_object* x_205; +lean_object* x_208; lean_dec(x_80); lean_free_object(x_15); -x_205 = lean_box(0); -x_82 = x_205; -goto block_203; +x_208 = lean_box(0); +x_82 = x_208; +goto block_206; } else { -uint8_t x_206; -x_206 = l_Lean_Expr_isRawNatLit(x_80); +uint8_t x_209; +x_209 = l_Lean_Expr_isRawNatLit(x_80); lean_dec(x_80); -if (x_206 == 0) +if (x_209 == 0) { -lean_object* x_207; +lean_object* x_210; lean_free_object(x_15); -x_207 = lean_box(0); -x_82 = x_207; -goto block_203; +x_210 = lean_box(0); +x_82 = x_210; +goto block_206; } else { @@ -22425,7 +23039,7 @@ x_28 = x_81; goto block_43; } } -block_203: +block_206: { lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_dec(x_82); @@ -22496,50 +23110,54 @@ if (x_94 == 0) lean_object* x_95; lean_object* x_96; uint8_t x_97; x_95 = lean_ctor_get(x_85, 0); x_96 = lean_ctor_get(x_85, 1); -x_97 = l_Lean_Exception_isRuntime(x_95); +x_97 = l_Lean_Exception_isInterrupt(x_95); if (x_97 == 0) { -lean_object* x_98; lean_object* x_99; uint8_t x_100; +uint8_t x_98; +x_98 = l_Lean_Exception_isRuntime(x_95); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_free_object(x_85); -x_98 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_99 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_98, x_8, x_9, x_10, x_11, x_96); -x_100 = !lean_is_exclusive(x_99); -if (x_100 == 0) +x_99 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_100 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_99, x_8, x_9, x_10, x_11, x_96); +x_101 = !lean_is_exclusive(x_100); +if (x_101 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_101 = lean_ctor_get(x_99, 0); -x_102 = lean_ctor_get(x_99, 1); -x_103 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_104 = lean_unbox(x_101); -lean_dec(x_101); -if (x_104 == 0) +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_102 = lean_ctor_get(x_100, 0); +x_103 = lean_ctor_get(x_100, 1); +x_104 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_105 = lean_unbox(x_102); +lean_dec(x_102); +if (x_105 == 0) { -lean_object* x_105; lean_object* x_106; -lean_free_object(x_99); +lean_object* x_106; lean_object* x_107; +lean_free_object(x_100); lean_dec(x_95); lean_dec(x_71); lean_dec(x_61); -x_105 = lean_box(0); +x_106 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_106 = lean_apply_6(x_103, x_105, x_8, x_9, x_10, x_11, x_102); -if (lean_obj_tag(x_106) == 0) +x_107 = lean_apply_6(x_104, x_106, x_8, x_9, x_10, x_11, x_103); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); +lean_object* x_108; lean_object* x_109; +x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); -lean_dec(x_106); -x_44 = x_107; -x_45 = x_108; +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_44 = x_108; +x_45 = x_109; goto block_58; } else { -uint8_t x_109; +uint8_t x_110; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22549,79 +23167,79 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_106); -if (x_109 == 0) +x_110 = !lean_is_exclusive(x_107); +if (x_110 == 0) { -return x_106; +return x_107; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_106, 0); -x_111 = lean_ctor_get(x_106, 1); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_107, 0); +x_112 = lean_ctor_get(x_107, 1); +lean_inc(x_112); lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_106); -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; +lean_dec(x_107); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } } else { -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; -x_113 = l_Lean_LocalDecl_userName(x_61); +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_114 = l_Lean_LocalDecl_userName(x_61); lean_dec(x_61); -x_114 = l_Lean_MessageData_ofName(x_113); -x_115 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -lean_ctor_set_tag(x_99, 6); -lean_ctor_set(x_99, 1, x_114); -lean_ctor_set(x_99, 0, x_115); -x_116 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +x_115 = l_Lean_MessageData_ofName(x_114); +x_116 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +lean_ctor_set_tag(x_100, 6); +lean_ctor_set(x_100, 1, x_115); +lean_ctor_set(x_100, 0, x_116); +x_117 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; if (lean_is_scalar(x_71)) { - x_117 = lean_alloc_ctor(6, 2, 0); + x_118 = lean_alloc_ctor(6, 2, 0); } else { - x_117 = x_71; - lean_ctor_set_tag(x_117, 6); + x_118 = x_71; + lean_ctor_set_tag(x_118, 6); } -lean_ctor_set(x_117, 0, x_99); -lean_ctor_set(x_117, 1, x_116); -x_118 = l_Lean_Exception_toMessageData(x_95); -x_119 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_121 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_98, x_121, x_8, x_9, x_10, x_11, x_102); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); +lean_ctor_set(x_118, 0, x_100); +lean_ctor_set(x_118, 1, x_117); +x_119 = l_Lean_Exception_toMessageData(x_95); +x_120 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_122 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_99, x_122, x_8, x_9, x_10, x_11, x_103); +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -lean_dec(x_122); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_125 = lean_apply_6(x_103, x_123, x_8, x_9, x_10, x_11, x_124); -if (lean_obj_tag(x_125) == 0) +x_126 = lean_apply_6(x_104, x_124, x_8, x_9, x_10, x_11, x_125); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_44 = x_126; -x_45 = x_127; +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_44 = x_127; +x_45 = x_128; goto block_58; } else { -uint8_t x_128; +uint8_t x_129; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22631,65 +23249,65 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_128 = !lean_is_exclusive(x_125); -if (x_128 == 0) +x_129 = !lean_is_exclusive(x_126); +if (x_129 == 0) { -return x_125; +return x_126; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_125, 0); -x_130 = lean_ctor_get(x_125, 1); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_126, 0); +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_125); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; +lean_dec(x_126); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +return x_132; } } } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_132 = lean_ctor_get(x_99, 0); -x_133 = lean_ctor_get(x_99, 1); +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = lean_ctor_get(x_100, 0); +x_134 = lean_ctor_get(x_100, 1); +lean_inc(x_134); lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_99); -x_134 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_135 = lean_unbox(x_132); -lean_dec(x_132); -if (x_135 == 0) +lean_dec(x_100); +x_135 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_136 = lean_unbox(x_133); +lean_dec(x_133); +if (x_136 == 0) { -lean_object* x_136; lean_object* x_137; +lean_object* x_137; lean_object* x_138; lean_dec(x_95); lean_dec(x_71); lean_dec(x_61); -x_136 = lean_box(0); +x_137 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_137 = lean_apply_6(x_134, x_136, x_8, x_9, x_10, x_11, x_133); -if (lean_obj_tag(x_137) == 0) +x_138 = lean_apply_6(x_135, x_137, x_8, x_9, x_10, x_11, x_134); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -lean_dec(x_137); -x_44 = x_138; -x_45 = x_139; +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_44 = x_139; +x_45 = x_140; goto block_58; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22699,81 +23317,81 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_140 = lean_ctor_get(x_137, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_137, 1); +x_141 = lean_ctor_get(x_138, 0); lean_inc(x_141); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_142 = x_137; +x_142 = lean_ctor_get(x_138, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_143 = x_138; } else { - lean_dec_ref(x_137); - x_142 = lean_box(0); + lean_dec_ref(x_138); + x_143 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); } else { - x_143 = x_142; + x_144 = x_143; } -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; } } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_144 = l_Lean_LocalDecl_userName(x_61); +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; +x_145 = l_Lean_LocalDecl_userName(x_61); lean_dec(x_61); -x_145 = l_Lean_MessageData_ofName(x_144); -x_146 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -x_147 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_148 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +x_146 = l_Lean_MessageData_ofName(x_145); +x_147 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +x_148 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_146); +x_149 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; if (lean_is_scalar(x_71)) { - x_149 = lean_alloc_ctor(6, 2, 0); + x_150 = lean_alloc_ctor(6, 2, 0); } else { - x_149 = x_71; - lean_ctor_set_tag(x_149, 6); + x_150 = x_71; + lean_ctor_set_tag(x_150, 6); } -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -x_150 = l_Lean_Exception_toMessageData(x_95); -x_151 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -x_152 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_153 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_153, 0, x_151); -lean_ctor_set(x_153, 1, x_152); -x_154 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_98, x_153, x_8, x_9, x_10, x_11, x_133); -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +x_151 = l_Lean_Exception_toMessageData(x_95); +x_152 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_153 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_154 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +x_155 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_99, x_154, x_8, x_9, x_10, x_11, x_134); +x_156 = lean_ctor_get(x_155, 0); lean_inc(x_156); -lean_dec(x_154); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_157 = lean_apply_6(x_134, x_155, x_8, x_9, x_10, x_11, x_156); -if (lean_obj_tag(x_157) == 0) +x_158 = lean_apply_6(x_135, x_156, x_8, x_9, x_10, x_11, x_157); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_158; lean_object* x_159; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); +lean_object* x_159; lean_object* x_160; +x_159 = lean_ctor_get(x_158, 0); lean_inc(x_159); -lean_dec(x_157); -x_44 = x_158; -x_45 = x_159; +x_160 = lean_ctor_get(x_158, 1); +lean_inc(x_160); +lean_dec(x_158); +x_44 = x_159; +x_45 = x_160; goto block_58; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22783,26 +23401,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_160 = lean_ctor_get(x_157, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_157, 1); +x_161 = lean_ctor_get(x_158, 0); lean_inc(x_161); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_162 = x_157; +x_162 = lean_ctor_get(x_158, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + x_163 = x_158; } else { - lean_dec_ref(x_157); - x_162 = lean_box(0); + lean_dec_ref(x_158); + x_163 = lean_box(0); } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); } else { - x_163 = x_162; + x_164 = x_163; } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; } } } @@ -22825,61 +23443,8 @@ return x_85; } else { -lean_object* x_164; lean_object* x_165; uint8_t x_166; -x_164 = lean_ctor_get(x_85, 0); -x_165 = lean_ctor_get(x_85, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_85); -x_166 = l_Lean_Exception_isRuntime(x_164); -if (x_166 == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_167 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_168 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_167, x_8, x_9, x_10, x_11, x_165); -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_171 = x_168; -} else { - lean_dec_ref(x_168); - x_171 = lean_box(0); -} -x_172 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_173 = lean_unbox(x_169); -lean_dec(x_169); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; -lean_dec(x_171); -lean_dec(x_164); lean_dec(x_71); lean_dec(x_61); -x_174 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_175 = lean_apply_6(x_172, x_174, x_8, x_9, x_10, x_11, x_170); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec(x_175); -x_44 = x_176; -x_45 = x_177; -goto block_58; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22889,86 +23454,159 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_178 = lean_ctor_get(x_175, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_175, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_180 = x_175; -} else { - lean_dec_ref(x_175); - x_180 = lean_box(0); -} -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); -} else { - x_181 = x_180; -} -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -return x_181; +return x_85; } } else { -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; lean_object* x_194; lean_object* x_195; -x_182 = l_Lean_LocalDecl_userName(x_61); -lean_dec(x_61); -x_183 = l_Lean_MessageData_ofName(x_182); -x_184 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -if (lean_is_scalar(x_171)) { - x_185 = lean_alloc_ctor(6, 2, 0); +lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_165 = lean_ctor_get(x_85, 0); +x_166 = lean_ctor_get(x_85, 1); +lean_inc(x_166); +lean_inc(x_165); +lean_dec(x_85); +x_167 = l_Lean_Exception_isInterrupt(x_165); +if (x_167 == 0) +{ +uint8_t x_168; +x_168 = l_Lean_Exception_isRuntime(x_165); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_169 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_170 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_169, x_8, x_9, x_10, x_11, x_166); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_173 = x_170; } else { - x_185 = x_171; - lean_ctor_set_tag(x_185, 6); + lean_dec_ref(x_170); + x_173 = lean_box(0); } -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_183); -x_186 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; -if (lean_is_scalar(x_71)) { +x_174 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_175 = lean_unbox(x_171); +lean_dec(x_171); +if (x_175 == 0) +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_173); +lean_dec(x_165); +lean_dec(x_71); +lean_dec(x_61); +x_176 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_177 = lean_apply_6(x_174, x_176, x_8, x_9, x_10, x_11, x_172); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_44 = x_178; +x_45 = x_179; +goto block_58; +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_180 = lean_ctor_get(x_177, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_177, 1); +lean_inc(x_181); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_182 = x_177; +} else { + lean_dec_ref(x_177); + x_182 = lean_box(0); +} +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_182; +} +lean_ctor_set(x_183, 0, x_180); +lean_ctor_set(x_183, 1, x_181); +return x_183; +} +} +else +{ +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; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_184 = l_Lean_LocalDecl_userName(x_61); +lean_dec(x_61); +x_185 = l_Lean_MessageData_ofName(x_184); +x_186 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +if (lean_is_scalar(x_173)) { x_187 = lean_alloc_ctor(6, 2, 0); } else { - x_187 = x_71; + x_187 = x_173; lean_ctor_set_tag(x_187, 6); } -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -x_188 = l_Lean_Exception_toMessageData(x_164); -x_189 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_185); +x_188 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +if (lean_is_scalar(x_71)) { + x_189 = lean_alloc_ctor(6, 2, 0); +} else { + x_189 = x_71; + lean_ctor_set_tag(x_189, 6); +} lean_ctor_set(x_189, 0, x_187); lean_ctor_set(x_189, 1, x_188); -x_190 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_190 = l_Lean_Exception_toMessageData(x_165); x_191 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_191, 0, x_189); lean_ctor_set(x_191, 1, x_190); -x_192 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_167, x_191, x_8, x_9, x_10, x_11, x_170); -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_192 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_193 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +x_194 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_169, x_193, x_8, x_9, x_10, x_11, x_172); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_195 = lean_apply_6(x_172, x_193, x_8, x_9, x_10, x_11, x_194); -if (lean_obj_tag(x_195) == 0) +x_197 = lean_apply_6(x_174, x_195, x_8, x_9, x_10, x_11, x_196); +if (lean_obj_tag(x_197) == 0) { -lean_object* x_196; lean_object* x_197; -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_44 = x_196; -x_45 = x_197; +lean_object* x_198; lean_object* x_199; +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_44 = x_198; +x_45 = x_199; goto block_58; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -22978,32 +23616,32 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_198 = lean_ctor_get(x_195, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_200 = x_195; +x_200 = lean_ctor_get(x_197, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_197, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_202 = x_197; } else { - lean_dec_ref(x_195); - x_200 = lean_box(0); + lean_dec_ref(x_197); + x_202 = lean_box(0); } -if (lean_is_scalar(x_200)) { - x_201 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); } else { - x_201 = x_200; + x_203 = x_202; } -lean_ctor_set(x_201, 0, x_198); -lean_ctor_set(x_201, 1, x_199); -return x_201; +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; } } } else { -lean_object* x_202; +lean_object* x_204; lean_dec(x_71); lean_dec(x_61); lean_dec(x_26); @@ -23015,10 +23653,30 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_164); -lean_ctor_set(x_202, 1, x_165); -return x_202; +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_165); +lean_ctor_set(x_204, 1, x_166); +return x_204; +} +} +else +{ +lean_object* x_205; +lean_dec(x_71); +lean_dec(x_61); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_165); +lean_ctor_set(x_205, 1, x_166); +return x_205; } } } @@ -23026,7 +23684,7 @@ return x_202; } else { -uint8_t x_208; +uint8_t x_211; lean_dec(x_77); lean_dec(x_71); lean_dec(x_67); @@ -23041,29 +23699,29 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_208 = !lean_is_exclusive(x_79); -if (x_208 == 0) +x_211 = !lean_is_exclusive(x_79); +if (x_211 == 0) { return x_79; } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_79, 0); -x_210 = lean_ctor_get(x_79, 1); -lean_inc(x_210); -lean_inc(x_209); +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_79, 0); +x_213 = lean_ctor_get(x_79, 1); +lean_inc(x_213); +lean_inc(x_212); lean_dec(x_79); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -return x_211; +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 { -uint8_t x_212; +uint8_t x_215; lean_dec(x_71); lean_dec(x_70); lean_dec(x_67); @@ -23078,52 +23736,52 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_212 = !lean_is_exclusive(x_76); -if (x_212 == 0) +x_215 = !lean_is_exclusive(x_76); +if (x_215 == 0) { return x_76; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_76, 0); -x_214 = lean_ctor_get(x_76, 1); -lean_inc(x_214); -lean_inc(x_213); +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_76, 0); +x_217 = lean_ctor_get(x_76, 1); +lean_inc(x_217); +lean_inc(x_216); lean_dec(x_76); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +return x_218; } } } else { -lean_object* x_216; lean_object* x_217; +lean_object* x_219; lean_object* x_220; lean_dec(x_71); lean_dec(x_70); lean_dec(x_69); lean_free_object(x_15); lean_dec(x_61); -x_216 = lean_ctor_get(x_72, 1); -lean_inc(x_216); +x_219 = lean_ctor_get(x_72, 1); +lean_inc(x_219); lean_dec(x_72); lean_inc(x_2); if (lean_is_scalar(x_67)) { - x_217 = lean_alloc_ctor(1, 1, 0); + x_220 = lean_alloc_ctor(1, 1, 0); } else { - x_217 = x_67; + x_220 = x_67; } -lean_ctor_set(x_217, 0, x_2); -x_27 = x_217; -x_28 = x_216; +lean_ctor_set(x_220, 0, x_2); +x_27 = x_220; +x_28 = x_219; goto block_43; } } else { -uint8_t x_218; +uint8_t x_221; lean_dec(x_71); lean_dec(x_70); lean_dec(x_69); @@ -23139,30 +23797,30 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_218 = !lean_is_exclusive(x_72); -if (x_218 == 0) +x_221 = !lean_is_exclusive(x_72); +if (x_221 == 0) { return x_72; } else { -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_72, 0); -x_220 = lean_ctor_get(x_72, 1); -lean_inc(x_220); -lean_inc(x_219); +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_72, 0); +x_223 = lean_ctor_get(x_72, 1); +lean_inc(x_223); +lean_inc(x_222); lean_dec(x_72); -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; +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set(x_224, 1, x_223); +return x_224; } } } } else { -uint8_t x_222; +uint8_t x_225; lean_free_object(x_15); lean_dec(x_61); lean_dec(x_26); @@ -23174,293 +23832,297 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_222 = !lean_is_exclusive(x_63); -if (x_222 == 0) +x_225 = !lean_is_exclusive(x_63); +if (x_225 == 0) { return x_63; } else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_63, 0); -x_224 = lean_ctor_get(x_63, 1); -lean_inc(x_224); -lean_inc(x_223); +lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_63, 0); +x_227 = lean_ctor_get(x_63, 1); +lean_inc(x_227); +lean_inc(x_226); lean_dec(x_63); -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; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_226); +lean_ctor_set(x_228, 1, x_227); +return x_228; } } } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_15, 0); -lean_inc(x_226); +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_15, 0); +lean_inc(x_229); lean_dec(x_15); -x_227 = l_Lean_LocalDecl_type(x_226); +x_230 = l_Lean_LocalDecl_type(x_229); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_228 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAnyCandidate_x3f(x_227, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_228) == 0) +x_231 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAnyCandidate_x3f(x_230, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_231) == 0) { -lean_object* x_229; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -if (lean_obj_tag(x_229) == 0) +lean_object* x_232; +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_230; lean_object* x_231; -lean_dec(x_226); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); +lean_object* x_233; lean_object* x_234; +lean_dec(x_229); +x_233 = lean_ctor_get(x_231, 1); +lean_inc(x_233); +lean_dec(x_231); lean_inc(x_2); -x_231 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_231, 0, x_2); -x_27 = x_231; -x_28 = x_230; +x_234 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_234, 0, x_2); +x_27 = x_234; +x_28 = x_233; goto block_43; } else { -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 = lean_ctor_get(x_229, 0); -lean_inc(x_232); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - x_233 = x_229; -} else { - lean_dec_ref(x_229); - x_233 = lean_box(0); -} -x_234 = lean_ctor_get(x_228, 1); -lean_inc(x_234); -lean_dec(x_228); +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; 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; + x_236 = x_232; } else { lean_dec_ref(x_232); - x_237 = lean_box(0); + x_236 = lean_box(0); +} +x_237 = lean_ctor_get(x_231, 1); +lean_inc(x_237); +lean_dec(x_231); +x_238 = lean_ctor_get(x_235, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_235, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_235)) { + lean_ctor_release(x_235, 0); + lean_ctor_release(x_235, 1); + x_240 = x_235; +} else { + lean_dec_ref(x_235); + x_240 = lean_box(0); } lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_236); -lean_inc(x_235); -x_238 = l_Lean_Meta_isExprDefEq(x_235, x_236, x_8, x_9, x_10, x_11, x_234); -if (lean_obj_tag(x_238) == 0) -{ -lean_object* x_239; uint8_t x_240; -x_239 = lean_ctor_get(x_238, 0); lean_inc(x_239); -x_240 = lean_unbox(x_239); -lean_dec(x_239); -if (x_240 == 0) +lean_inc(x_238); +x_241 = l_Lean_Meta_isExprDefEq(x_238, x_239, x_8, x_9, x_10, x_11, x_237); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_241; lean_object* x_242; -x_241 = lean_ctor_get(x_238, 1); -lean_inc(x_241); -lean_dec(x_238); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_242 = lean_whnf(x_235, x_8, x_9, x_10, x_11, x_241); -if (lean_obj_tag(x_242) == 0) -{ -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); +lean_object* x_242; uint8_t x_243; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_unbox(x_242); lean_dec(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_241, 1); +lean_inc(x_244); +lean_dec(x_241); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_245 = lean_whnf(x_236, x_8, x_9, x_10, x_11, x_244); +x_245 = lean_whnf(x_238, x_8, x_9, x_10, x_11, x_244); if (lean_obj_tag(x_245) == 0) { -lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_301; +lean_object* x_246; lean_object* x_247; lean_object* x_248; x_246 = lean_ctor_get(x_245, 0); lean_inc(x_246); x_247 = lean_ctor_get(x_245, 1); lean_inc(x_247); lean_dec(x_245); -x_301 = l_Lean_Expr_isRawNatLit(x_243); -lean_dec(x_243); -if (x_301 == 0) +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_248 = lean_whnf(x_239, x_8, x_9, x_10, x_11, x_247); +if (lean_obj_tag(x_248) == 0) { -lean_object* x_302; +lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_306; +x_249 = lean_ctor_get(x_248, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_248, 1); +lean_inc(x_250); +lean_dec(x_248); +x_306 = l_Lean_Expr_isRawNatLit(x_246); lean_dec(x_246); -x_302 = lean_box(0); -x_248 = x_302; -goto block_300; +if (x_306 == 0) +{ +lean_object* x_307; +lean_dec(x_249); +x_307 = lean_box(0); +x_251 = x_307; +goto block_305; } else { -uint8_t x_303; -x_303 = l_Lean_Expr_isRawNatLit(x_246); -lean_dec(x_246); -if (x_303 == 0) +uint8_t x_308; +x_308 = l_Lean_Expr_isRawNatLit(x_249); +lean_dec(x_249); +if (x_308 == 0) { -lean_object* x_304; -x_304 = lean_box(0); -x_248 = x_304; -goto block_300; +lean_object* x_309; +x_309 = lean_box(0); +x_251 = x_309; +goto block_305; } else { -lean_object* x_305; -lean_dec(x_237); -lean_dec(x_233); -lean_dec(x_226); +lean_object* x_310; +lean_dec(x_240); +lean_dec(x_236); +lean_dec(x_229); lean_inc(x_2); -x_305 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_305, 0, x_2); -x_27 = x_305; -x_28 = x_247; +x_310 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_310, 0, x_2); +x_27 = x_310; +x_28 = x_250; goto block_43; } } -block_300: +block_305: { -lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_248); -x_249 = l_Lean_LocalDecl_fvarId(x_226); -x_250 = lean_box(0); +lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_251); +x_252 = l_Lean_LocalDecl_fvarId(x_229); +x_253 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_251 = l_Lean_Meta_injection(x_1, x_249, x_250, x_8, x_9, x_10, x_11, x_247); -if (lean_obj_tag(x_251) == 0) +x_254 = l_Lean_Meta_injection(x_1, x_252, x_253, x_8, x_9, x_10, x_11, x_250); +if (lean_obj_tag(x_254) == 0) { -lean_object* x_252; -lean_dec(x_226); -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -if (lean_obj_tag(x_252) == 0) -{ -lean_object* x_253; lean_object* x_254; -lean_dec(x_237); -lean_dec(x_233); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); -x_254 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__1; -x_44 = x_254; -x_45 = x_253; -goto block_58; -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_255 = lean_ctor_get(x_251, 1); +lean_object* x_255; +lean_dec(x_229); +x_255 = lean_ctor_get(x_254, 0); lean_inc(x_255); -lean_dec(x_251); -x_256 = lean_ctor_get(x_252, 0); +if (lean_obj_tag(x_255) == 0) +{ +lean_object* x_256; lean_object* x_257; +lean_dec(x_240); +lean_dec(x_236); +x_256 = lean_ctor_get(x_254, 1); lean_inc(x_256); -lean_dec(x_252); -if (lean_is_scalar(x_233)) { - x_257 = lean_alloc_ctor(2, 1, 0); -} else { - x_257 = x_233; - lean_ctor_set_tag(x_257, 2); +lean_dec(x_254); +x_257 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__1; +x_44 = x_257; +x_45 = x_256; +goto block_58; } -lean_ctor_set(x_257, 0, x_256); -x_258 = lean_box(0); -if (lean_is_scalar(x_237)) { - x_259 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_258 = lean_ctor_get(x_254, 1); +lean_inc(x_258); +lean_dec(x_254); +x_259 = lean_ctor_get(x_255, 0); +lean_inc(x_259); +lean_dec(x_255); +if (lean_is_scalar(x_236)) { + x_260 = lean_alloc_ctor(2, 1, 0); } else { - x_259 = x_237; - lean_ctor_set_tag(x_259, 1); + x_260 = x_236; + lean_ctor_set_tag(x_260, 2); } -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -x_44 = x_259; -x_45 = x_255; +lean_ctor_set(x_260, 0, x_259); +x_261 = lean_box(0); +if (lean_is_scalar(x_240)) { + x_262 = lean_alloc_ctor(1, 2, 0); +} else { + x_262 = x_240; + lean_ctor_set_tag(x_262, 1); +} +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +x_44 = x_262; +x_45 = x_258; goto block_58; } } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; -lean_dec(x_233); -x_260 = lean_ctor_get(x_251, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_251, 1); -lean_inc(x_261); -if (lean_is_exclusive(x_251)) { - lean_ctor_release(x_251, 0); - lean_ctor_release(x_251, 1); - x_262 = x_251; +lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; +lean_dec(x_236); +x_263 = lean_ctor_get(x_254, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_254, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_265 = x_254; } else { - lean_dec_ref(x_251); - x_262 = lean_box(0); + lean_dec_ref(x_254); + x_265 = lean_box(0); } -x_263 = l_Lean_Exception_isRuntime(x_260); -if (x_263 == 0) +x_266 = l_Lean_Exception_isInterrupt(x_263); +if (x_266 == 0) { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; -lean_dec(x_262); -x_264 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; -x_265 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_264, x_8, x_9, x_10, x_11, x_261); -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_268 = x_265; +uint8_t x_267; +x_267 = l_Lean_Exception_isRuntime(x_263); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_274; +lean_dec(x_265); +x_268 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__4; +x_269 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_268, x_8, x_9, x_10, x_11, x_264); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_272 = x_269; } else { - lean_dec_ref(x_265); - x_268 = lean_box(0); + lean_dec_ref(x_269); + x_272 = lean_box(0); } -x_269 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; -x_270 = lean_unbox(x_266); -lean_dec(x_266); -if (x_270 == 0) +x_273 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__2; +x_274 = lean_unbox(x_270); +lean_dec(x_270); +if (x_274 == 0) { -lean_object* x_271; lean_object* x_272; -lean_dec(x_268); -lean_dec(x_260); -lean_dec(x_237); -lean_dec(x_226); -x_271 = lean_box(0); +lean_object* x_275; lean_object* x_276; +lean_dec(x_272); +lean_dec(x_263); +lean_dec(x_240); +lean_dec(x_229); +x_275 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_272 = lean_apply_6(x_269, x_271, x_8, x_9, x_10, x_11, x_267); -if (lean_obj_tag(x_272) == 0) +x_276 = lean_apply_6(x_273, x_275, x_8, x_9, x_10, x_11, x_271); +if (lean_obj_tag(x_276) == 0) { -lean_object* x_273; lean_object* x_274; -x_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -lean_dec(x_272); -x_44 = x_273; -x_45 = x_274; +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); +x_44 = x_277; +x_45 = x_278; goto block_58; } else { -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_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23470,86 +24132,86 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_275 = lean_ctor_get(x_272, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_272, 1); -lean_inc(x_276); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_277 = x_272; +x_279 = lean_ctor_get(x_276, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_276, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_281 = x_276; } else { - lean_dec_ref(x_272); - x_277 = lean_box(0); + lean_dec_ref(x_276); + x_281 = lean_box(0); } -if (lean_is_scalar(x_277)) { - x_278 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_281)) { + x_282 = lean_alloc_ctor(1, 2, 0); } else { - x_278 = x_277; + x_282 = x_281; } -lean_ctor_set(x_278, 0, x_275); -lean_ctor_set(x_278, 1, x_276); -return x_278; +lean_ctor_set(x_282, 0, x_279); +lean_ctor_set(x_282, 1, x_280); +return x_282; } } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_279 = l_Lean_LocalDecl_userName(x_226); -lean_dec(x_226); -x_280 = l_Lean_MessageData_ofName(x_279); -x_281 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; -if (lean_is_scalar(x_268)) { - x_282 = lean_alloc_ctor(6, 2, 0); +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_283 = l_Lean_LocalDecl_userName(x_229); +lean_dec(x_229); +x_284 = l_Lean_MessageData_ofName(x_283); +x_285 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__4; +if (lean_is_scalar(x_272)) { + x_286 = lean_alloc_ctor(6, 2, 0); } else { - x_282 = x_268; - lean_ctor_set_tag(x_282, 6); + x_286 = x_272; + lean_ctor_set_tag(x_286, 6); } -lean_ctor_set(x_282, 0, x_281); -lean_ctor_set(x_282, 1, x_280); -x_283 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; -if (lean_is_scalar(x_237)) { - x_284 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_284); +x_287 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAny___spec__4___closed__6; +if (lean_is_scalar(x_240)) { + x_288 = lean_alloc_ctor(6, 2, 0); } else { - x_284 = x_237; - lean_ctor_set_tag(x_284, 6); + x_288 = x_240; + lean_ctor_set_tag(x_288, 6); } -lean_ctor_set(x_284, 0, x_282); -lean_ctor_set(x_284, 1, x_283); -x_285 = l_Lean_Exception_toMessageData(x_260); -x_286 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_286, 0, x_284); -lean_ctor_set(x_286, 1, x_285); -x_287 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; -x_288 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_288, 0, x_286); lean_ctor_set(x_288, 1, x_287); -x_289 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_264, x_288, x_8, x_9, x_10, x_11, x_267); -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_289 = l_Lean_Exception_toMessageData(x_263); +x_290 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_290, 0, x_288); +lean_ctor_set(x_290, 1, x_289); +x_291 = l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__16; +x_292 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_292, 0, x_290); +lean_ctor_set(x_292, 1, x_291); +x_293 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_268, x_292, x_8, x_9, x_10, x_11, x_271); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_292 = lean_apply_6(x_269, x_290, x_8, x_9, x_10, x_11, x_291); -if (lean_obj_tag(x_292) == 0) +x_296 = lean_apply_6(x_273, x_294, x_8, x_9, x_10, x_11, x_295); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_293; lean_object* x_294; -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -lean_dec(x_292); -x_44 = x_293; -x_45 = x_294; +lean_object* x_297; lean_object* x_298; +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +lean_dec(x_296); +x_44 = x_297; +x_45 = x_298; goto block_58; } else { -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_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23559,34 +24221,34 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_295 = lean_ctor_get(x_292, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_292, 1); -lean_inc(x_296); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_297 = x_292; +x_299 = lean_ctor_get(x_296, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_296, 1); +lean_inc(x_300); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_301 = x_296; } else { - lean_dec_ref(x_292); - x_297 = lean_box(0); + lean_dec_ref(x_296); + x_301 = lean_box(0); } -if (lean_is_scalar(x_297)) { - x_298 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_301)) { + x_302 = lean_alloc_ctor(1, 2, 0); } else { - x_298 = x_297; + x_302 = x_301; } -lean_ctor_set(x_298, 0, x_295); -lean_ctor_set(x_298, 1, x_296); -return x_298; +lean_ctor_set(x_302, 0, x_299); +lean_ctor_set(x_302, 1, x_300); +return x_302; } } } else { -lean_object* x_299; -lean_dec(x_237); -lean_dec(x_226); +lean_object* x_303; +lean_dec(x_240); +lean_dec(x_229); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23596,25 +24258,49 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_262)) { - x_299 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_265)) { + x_303 = lean_alloc_ctor(1, 2, 0); } else { - x_299 = x_262; + x_303 = x_265; } -lean_ctor_set(x_299, 0, x_260); -lean_ctor_set(x_299, 1, x_261); -return x_299; +lean_ctor_set(x_303, 0, x_263); +lean_ctor_set(x_303, 1, x_264); +return x_303; +} +} +else +{ +lean_object* x_304; +lean_dec(x_240); +lean_dec(x_229); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +if (lean_is_scalar(x_265)) { + x_304 = lean_alloc_ctor(1, 2, 0); +} else { + x_304 = x_265; +} +lean_ctor_set(x_304, 0, x_263); +lean_ctor_set(x_304, 1, x_264); +return x_304; } } } } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -lean_dec(x_243); -lean_dec(x_237); -lean_dec(x_233); -lean_dec(x_226); +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +lean_dec(x_246); +lean_dec(x_240); +lean_dec(x_236); +lean_dec(x_229); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23624,96 +24310,96 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_306 = lean_ctor_get(x_245, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_245, 1); -lean_inc(x_307); +x_311 = lean_ctor_get(x_248, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_248, 1); +lean_inc(x_312); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + x_313 = x_248; +} else { + lean_dec_ref(x_248); + x_313 = lean_box(0); +} +if (lean_is_scalar(x_313)) { + x_314 = lean_alloc_ctor(1, 2, 0); +} else { + x_314 = x_313; +} +lean_ctor_set(x_314, 0, x_311); +lean_ctor_set(x_314, 1, x_312); +return x_314; +} +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +lean_dec(x_240); +lean_dec(x_239); +lean_dec(x_236); +lean_dec(x_229); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(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); +x_315 = lean_ctor_get(x_245, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_245, 1); +lean_inc(x_316); if (lean_is_exclusive(x_245)) { lean_ctor_release(x_245, 0); lean_ctor_release(x_245, 1); - x_308 = x_245; + x_317 = x_245; } else { lean_dec_ref(x_245); - x_308 = lean_box(0); + x_317 = lean_box(0); } -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); } else { - x_309 = x_308; + x_318 = x_317; } -lean_ctor_set(x_309, 0, x_306); -lean_ctor_set(x_309, 1, x_307); -return x_309; +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +return x_318; } } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -lean_dec(x_237); -lean_dec(x_236); -lean_dec(x_233); -lean_dec(x_226); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(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); -x_310 = lean_ctor_get(x_242, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_242, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_312 = x_242; -} else { - lean_dec_ref(x_242); - 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_310); -lean_ctor_set(x_313, 1, x_311); -return x_313; -} -} -else -{ -lean_object* x_314; lean_object* x_315; -lean_dec(x_237); -lean_dec(x_236); -lean_dec(x_235); -lean_dec(x_226); -x_314 = lean_ctor_get(x_238, 1); -lean_inc(x_314); +lean_object* x_319; lean_object* x_320; +lean_dec(x_240); +lean_dec(x_239); lean_dec(x_238); +lean_dec(x_229); +x_319 = lean_ctor_get(x_241, 1); +lean_inc(x_319); +lean_dec(x_241); lean_inc(x_2); -if (lean_is_scalar(x_233)) { - x_315 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_236)) { + x_320 = lean_alloc_ctor(1, 1, 0); } else { - x_315 = x_233; + x_320 = x_236; } -lean_ctor_set(x_315, 0, x_2); -x_27 = x_315; -x_28 = x_314; +lean_ctor_set(x_320, 0, x_2); +x_27 = x_320; +x_28 = x_319; goto block_43; } } else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; -lean_dec(x_237); +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_240); +lean_dec(x_239); +lean_dec(x_238); lean_dec(x_236); -lean_dec(x_235); -lean_dec(x_233); -lean_dec(x_226); +lean_dec(x_229); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23723,33 +24409,33 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_316 = lean_ctor_get(x_238, 0); -lean_inc(x_316); -x_317 = lean_ctor_get(x_238, 1); -lean_inc(x_317); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_318 = x_238; +x_321 = lean_ctor_get(x_241, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_241, 1); +lean_inc(x_322); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_323 = x_241; } else { - lean_dec_ref(x_238); - x_318 = lean_box(0); + lean_dec_ref(x_241); + x_323 = lean_box(0); } -if (lean_is_scalar(x_318)) { - x_319 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_323)) { + x_324 = lean_alloc_ctor(1, 2, 0); } else { - x_319 = x_318; + x_324 = x_323; } -lean_ctor_set(x_319, 0, x_316); -lean_ctor_set(x_319, 1, x_317); -return x_319; +lean_ctor_set(x_324, 0, x_321); +lean_ctor_set(x_324, 1, x_322); +return x_324; } } } else { -lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_226); +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +lean_dec(x_229); lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -23759,26 +24445,26 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_320 = lean_ctor_get(x_228, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_228, 1); -lean_inc(x_321); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_322 = x_228; +x_325 = lean_ctor_get(x_231, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_231, 1); +lean_inc(x_326); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_327 = x_231; } else { - lean_dec_ref(x_228); - x_322 = lean_box(0); + lean_dec_ref(x_231); + x_327 = lean_box(0); } -if (lean_is_scalar(x_322)) { - x_323 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_327)) { + x_328 = lean_alloc_ctor(1, 2, 0); } else { - x_323 = x_322; + x_328 = x_327; } -lean_ctor_set(x_323, 0, x_320); -lean_ctor_set(x_323, 1, x_321); -return x_323; +lean_ctor_set(x_328, 0, x_325); +lean_ctor_set(x_328, 1, x_326); +return x_328; } } } @@ -36339,7 +37025,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___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_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; 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_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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -36362,161 +37048,169 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = lean_nat_dec_eq(x_15, x_16); -if (x_24 == 0) +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = lean_nat_dec_eq(x_15, x_16); +if (x_26 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 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; 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_26 = lean_ctor_get(x_9, 10); -lean_dec(x_26); -x_27 = lean_ctor_get(x_9, 9); -lean_dec(x_27); -x_28 = lean_ctor_get(x_9, 8); +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; +x_28 = lean_ctor_get(x_9, 11); lean_dec(x_28); -x_29 = lean_ctor_get(x_9, 7); +x_29 = lean_ctor_get(x_9, 10); lean_dec(x_29); -x_30 = lean_ctor_get(x_9, 6); +x_30 = lean_ctor_get(x_9, 9); lean_dec(x_30); -x_31 = lean_ctor_get(x_9, 5); +x_31 = lean_ctor_get(x_9, 8); lean_dec(x_31); -x_32 = lean_ctor_get(x_9, 4); +x_32 = lean_ctor_get(x_9, 7); lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 3); +x_33 = lean_ctor_get(x_9, 6); lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 2); +x_34 = lean_ctor_get(x_9, 5); lean_dec(x_34); -x_35 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_9, 0); +x_36 = lean_ctor_get(x_9, 3); lean_dec(x_36); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_15, x_37); -lean_dec(x_15); -lean_ctor_set(x_9, 3, x_38); -x_39 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -return x_39; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_inc(x_41); +x_37 = lean_ctor_get(x_9, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_9, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_9, 0); lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_15, x_40); +lean_dec(x_15); +lean_ctor_set(x_9, 3, x_41); +x_42 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; } else { -uint8_t x_44; -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_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); 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; +lean_inc(x_44); +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 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; +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) +{ +return x_42; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_42, 0); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_42); +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 { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_dec(x_9); -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_add(x_15, x_48); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_15, x_51); lean_dec(x_15); -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_12); -lean_ctor_set(x_50, 1, x_13); -lean_ctor_set(x_50, 2, x_14); -lean_ctor_set(x_50, 3, x_49); -lean_ctor_set(x_50, 4, x_16); -lean_ctor_set(x_50, 5, x_17); -lean_ctor_set(x_50, 6, x_18); -lean_ctor_set(x_50, 7, x_19); -lean_ctor_set(x_50, 8, x_20); -lean_ctor_set(x_50, 9, x_21); -lean_ctor_set(x_50, 10, x_22); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_23); -x_51 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_50, x_10, x_11); -if (lean_obj_tag(x_51) == 0) +x_53 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_13); +lean_ctor_set(x_53, 2, x_14); +lean_ctor_set(x_53, 3, x_52); +lean_ctor_set(x_53, 4, x_16); +lean_ctor_set(x_53, 5, x_17); +lean_ctor_set(x_53, 6, x_18); +lean_ctor_set(x_53, 7, x_19); +lean_ctor_set(x_53, 8, x_20); +lean_ctor_set(x_53, 9, x_21); +lean_ctor_set(x_53, 10, x_22); +lean_ctor_set(x_53, 11, x_24); +lean_ctor_set_uint8(x_53, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_53, sizeof(void*)*12 + 1, x_25); +x_54 = lean_apply_8(x_3, x_4, x_5, x_6, x_7, x_8, x_53, x_10, x_11); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -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_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_51, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_58 = x_51; +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; } else { - lean_dec_ref(x_51); - x_58 = lean_box(0); + lean_dec_ref(x_54); + x_57 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_58; + x_58 = x_57; } -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + 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); +return x_62; } } } else { -lean_object* x_60; uint8_t x_61; +lean_object* x_63; uint8_t x_64; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -36531,28 +37225,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_60 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__21___rarg(x_17, x_7, x_8, x_9, x_10, x_11); +x_63 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__21___rarg(x_17, 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_7); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -return x_60; +return x_63; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_60); -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_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; } } } diff --git a/stage0/stdlib/Lean/Meta/Match/MatcherApp/Transform.c b/stage0/stdlib/Lean/Meta/Match/MatcherApp/Transform.c index 8900f2a030..cc4c732196 100644 --- a/stage0/stdlib/Lean/Meta/Match/MatcherApp/Transform.c +++ b/stage0/stdlib/Lean/Meta/Match/MatcherApp/Transform.c @@ -52,6 +52,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lea LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_MatcherApp_transform___spec__7___rarg___lambda__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_Lean_Meta_MatcherApp_transform___at_Lean_Meta_MatcherApp_inferMatchType___spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__4; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_withUserNamesImpl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_withUserNames___at_Lean_Meta_MatcherApp_inferMatchType___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_MatcherApp_inferMatchType___spec__11___lambda__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -939,35 +940,39 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_12, 0); x_18 = lean_ctor_get(x_12, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; uint8_t x_22; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_free_object(x_12); lean_dec(x_17); -x_20 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; -x_21 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_6, x_7, x_8, x_9, x_18); +x_21 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; +x_22 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_21, x_6, x_7, x_8, x_9, x_18); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -return x_21; +return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_21); -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; +lean_dec(x_22); +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 @@ -981,55 +986,81 @@ return x_12; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_12, 0); -x_27 = lean_ctor_get(x_12, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_12); -x_28 = l_Lean_Exception_isRuntime(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; -lean_dec(x_26); -x_29 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; -x_30 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_29, x_6, x_7, x_8, x_9, x_27); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_33 = x_30; -} else { - lean_dec_ref(x_30); - x_33 = lean_box(0); +return x_12; } -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(1, 2, 0); -} else { - x_34 = x_33; -} -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_32); -return x_34; } else { -lean_object* x_35; +lean_object* x_27; lean_object* x_28; uint8_t 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_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +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_dec(x_27); +x_31 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; +x_32 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_31, x_6, x_7, x_8, x_9, x_28); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_27); -return x_35; +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); +} +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); +return x_36; +} +else +{ +lean_object* x_37; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; +} +} +else +{ +lean_object* x_38; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_28); +return x_38; } } } @@ -2377,14 +2408,18 @@ if (x_16 == 0) { lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_8, 0); -x_18 = l_Lean_Exception_isRuntime(x_17); +x_18 = l_Lean_Exception_isInterrupt(x_17); if (x_18 == 0) { -lean_object* x_19; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_dec(x_17); -x_19 = lean_box(0); +x_20 = lean_box(0); lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_19); +lean_ctor_set(x_8, 0, x_20); return x_8; } else @@ -2394,30 +2429,48 @@ return x_8; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); +return x_8; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_8, 0); +x_22 = lean_ctor_get(x_8, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_8); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; -lean_dec(x_20); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_21); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; } else { -lean_object* x_25; -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_21); -return x_25; +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +else +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +return x_28; } } } @@ -3547,14 +3600,18 @@ if (x_16 == 0) { lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_8, 0); -x_18 = l_Lean_Exception_isRuntime(x_17); +x_18 = l_Lean_Exception_isInterrupt(x_17); if (x_18 == 0) { -lean_object* x_19; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_dec(x_17); -x_19 = lean_box(0); +x_20 = lean_box(0); lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_19); +lean_ctor_set(x_8, 0, x_20); return x_8; } else @@ -3564,30 +3621,48 @@ return x_8; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); +return x_8; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_8, 0); +x_22 = lean_ctor_get(x_8, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_8); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; -lean_dec(x_20); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_21); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; } else { -lean_object* x_25; -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_21); -return x_25; +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +else +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +return x_28; } } } @@ -16036,35 +16111,39 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_16, 0); x_22 = lean_ctor_get(x_16, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; uint8_t x_26; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_free_object(x_16); lean_dec(x_21); -x_24 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; -x_25 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_24, x_9, x_10, x_11, x_12, x_22); +x_25 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; +x_26 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_25, x_9, x_10, x_11, x_12, x_22); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -return x_25; +return x_26; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_25, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_25); -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; +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } else @@ -16078,55 +16157,81 @@ return x_16; } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_16); -x_32 = l_Lean_Exception_isRuntime(x_30); -if (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; -lean_dec(x_30); -x_33 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; -x_34 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_33, x_9, x_10, x_11, x_12, x_31); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_37 = x_34; -} else { - lean_dec_ref(x_34); - x_37 = lean_box(0); +return x_16; } -if (lean_is_scalar(x_37)) { - x_38 = lean_alloc_ctor(1, 2, 0); -} else { - x_38 = x_37; -} -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_36); -return x_38; } else { -lean_object* x_39; +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_16); +x_33 = l_Lean_Exception_isInterrupt(x_31); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = l_Lean_Exception_isRuntime(x_31); +if (x_34 == 0) +{ +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_dec(x_31); +x_35 = l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_updateAlts___lambda__4___closed__2; +x_36 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_35, x_9, x_10, x_11, x_12, x_32); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_31); -return x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 2, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +else +{ +lean_object* x_41; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_31); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_31); +lean_ctor_set(x_42, 1, x_32); +return x_42; } } } @@ -21344,73 +21449,77 @@ 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); -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_free_object(x_23); lean_dec(x_27); lean_inc(x_21); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_21); -x_31 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_21); +x_32 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; lean_ctor_set_tag(x_15, 6); -lean_ctor_set(x_15, 1, x_30); -lean_ctor_set(x_15, 0, x_31); -x_32 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; -x_33 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_33, 0, x_15); -lean_ctor_set(x_33, 1, x_32); -x_34 = 0; +lean_ctor_set(x_15, 1, x_31); +lean_ctor_set(x_15, 0, x_32); +x_33 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; +x_34 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_34, 0, x_15); +lean_ctor_set(x_34, 1, x_33); +x_35 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_35 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_33, x_34, x_3, x_4, x_5, x_6, x_28); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = 1; +x_36 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_34, x_35, x_3, x_4, x_5, x_6, x_28); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_38 = l_Lean_MVarId_admit(x_21, x_37, x_3, x_4, x_5, x_6, x_36); -if (lean_obj_tag(x_38) == 0) +x_39 = l_Lean_MVarId_admit(x_21, x_38, x_3, x_4, x_5, x_6, x_37); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l_Lean_Meta_mkEqMPR(x_17, x_2, x_3, x_4, x_5, x_6, x_39); -return x_40; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = l_Lean_Meta_mkEqMPR(x_17, x_2, x_3, x_4, x_5, x_6, x_40); +return x_41; } else { -uint8_t x_41; +uint8_t x_42; lean_dec(x_17); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_38); -if (x_41 == 0) +x_42 = !lean_is_exclusive(x_39); +if (x_42 == 0) { -return x_38; +return x_39; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_38, 0); -x_43 = lean_ctor_get(x_38, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_39, 0); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_38); -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; +lean_dec(x_39); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -21429,86 +21538,6 @@ return x_23; } else { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_23, 0); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_23); -x_47 = l_Lean_Exception_isRuntime(x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; -lean_dec(x_45); -lean_inc(x_21); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_21); -x_49 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; -lean_ctor_set_tag(x_15, 6); -lean_ctor_set(x_15, 1, x_48); -lean_ctor_set(x_15, 0, x_49); -x_50 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; -x_51 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_51, 0, x_15); -lean_ctor_set(x_51, 1, x_50); -x_52 = 0; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_53 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_51, x_52, x_3, x_4, x_5, x_6, x_46); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_56 = l_Lean_MVarId_admit(x_21, x_55, x_3, x_4, x_5, x_6, x_54); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = l_Lean_Meta_mkEqMPR(x_17, x_2, x_3, x_4, x_5, x_6, x_57); -return x_58; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_17); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_59 = lean_ctor_get(x_56, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_61 = x_56; -} else { - lean_dec_ref(x_56); - 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); -return x_62; -} -} -else -{ -lean_object* x_63; lean_dec(x_21); lean_free_object(x_15); lean_dec(x_17); @@ -21517,17 +21546,96 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_45); -lean_ctor_set(x_63, 1, x_46); -return x_63; -} -} +return x_23; } } else { -uint8_t x_64; +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_23, 0); +x_47 = lean_ctor_get(x_23, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_23); +x_48 = l_Lean_Exception_isInterrupt(x_46); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = l_Lean_Exception_isRuntime(x_46); +if (x_49 == 0) +{ +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; uint8_t x_57; lean_object* x_58; +lean_dec(x_46); +lean_inc(x_21); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_21); +x_51 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; +lean_ctor_set_tag(x_15, 6); +lean_ctor_set(x_15, 1, x_50); +lean_ctor_set(x_15, 0, x_51); +x_52 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_15); +lean_ctor_set(x_53, 1, x_52); +x_54 = 0; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_55 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_53, x_54, x_3, x_4, x_5, x_6, x_47); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_58 = l_Lean_MVarId_admit(x_21, x_57, x_3, x_4, x_5, x_6, x_56); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = l_Lean_Meta_mkEqMPR(x_17, x_2, x_3, x_4, x_5, x_6, x_59); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_63 = x_58; +} else { + lean_dec_ref(x_58); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; +lean_dec(x_21); lean_free_object(x_15); lean_dec(x_17); lean_dec(x_6); @@ -21535,259 +21643,318 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_64 = !lean_is_exclusive(x_20); -if (x_64 == 0) +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_46); +lean_ctor_set(x_65, 1, x_47); +return x_65; +} +} +else +{ +lean_object* x_66; +lean_dec(x_21); +lean_free_object(x_15); +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_46); +lean_ctor_set(x_66, 1, x_47); +return x_66; +} +} +} +} +else +{ +uint8_t x_67; +lean_free_object(x_15); +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_20); +if (x_67 == 0) { return x_20; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_20, 0); -x_66 = lean_ctor_get(x_20, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_20); -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; -} -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_15, 0); -x_69 = lean_ctor_get(x_15, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_20, 0); +x_69 = lean_ctor_get(x_20, 1); lean_inc(x_69); lean_inc(x_68); -lean_dec(x_15); -lean_inc(x_68); -x_70 = l_Lean_Expr_mvarId_x21(x_68); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_71 = l_Lean_Meta_Split_simpMatchTarget(x_70, x_3, x_4, x_5, x_6, x_69); -if (lean_obj_tag(x_71) == 0) +lean_dec(x_20); +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 { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 0); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_15, 0); +x_72 = lean_ctor_get(x_15, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); +lean_inc(x_71); +lean_dec(x_15); +lean_inc(x_71); +x_73 = l_Lean_Expr_mvarId_x21(x_71); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_72); -x_74 = l_Lean_MVarId_refl(x_72, x_3, x_4, x_5, x_6, x_73); +x_74 = l_Lean_Meta_Split_simpMatchTarget(x_73, x_3, x_4, x_5, x_6, x_72); if (lean_obj_tag(x_74) == 0) { -lean_object* x_75; lean_object* x_76; -lean_dec(x_72); -x_75 = lean_ctor_get(x_74, 1); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); lean_dec(x_74); -x_76 = l_Lean_Meta_mkEqMPR(x_68, x_2, x_3, x_4, x_5, x_6, x_75); -return x_76; -} -else +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_75); +x_77 = l_Lean_MVarId_refl(x_75, x_3, x_4, x_5, x_6, x_76); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_77 = lean_ctor_get(x_74, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_74, 1); +lean_object* x_78; lean_object* x_79; +lean_dec(x_75); +x_78 = lean_ctor_get(x_77, 1); lean_inc(x_78); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_79 = x_74; -} else { - lean_dec_ref(x_74); - x_79 = lean_box(0); -} -x_80 = l_Lean_Exception_isRuntime(x_77); -if (x_80 == 0) -{ -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; uint8_t x_89; lean_object* x_90; -lean_dec(x_79); lean_dec(x_77); -lean_inc(x_72); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_72); -x_82 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; -x_83 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; -x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = 0; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_87 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_85, x_86, x_3, x_4, x_5, x_6, x_78); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = 1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_90 = l_Lean_MVarId_admit(x_72, x_89, x_3, x_4, x_5, x_6, x_88); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_92 = l_Lean_Meta_mkEqMPR(x_68, x_2, x_3, x_4, x_5, x_6, x_91); -return x_92; +x_79 = l_Lean_Meta_mkEqMPR(x_71, x_2, x_3, x_4, x_5, x_6, x_78); +return x_79; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_68); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_93 = lean_ctor_get(x_90, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_90, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_95 = x_90; +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +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_90); - x_95 = lean_box(0); + lean_dec_ref(x_77); + x_82 = 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); +x_83 = l_Lean_Exception_isInterrupt(x_80); +if (x_83 == 0) +{ +uint8_t x_84; +x_84 = l_Lean_Exception_isRuntime(x_80); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; +lean_dec(x_82); +lean_dec(x_80); +lean_inc(x_75); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_75); +x_86 = l_Lean_Meta_MatcherApp_inferMatchType___lambda__4___closed__2; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_85); +x_88 = l_Std_Range_forIn_loop___at_Lean_Meta_MatcherApp_arrowDomainsN___spec__1___closed__6; +x_89 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +x_90 = 0; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_91 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_89, x_90, x_3, x_4, x_5, x_6, x_81); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = 1; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_94 = l_Lean_MVarId_admit(x_75, x_93, x_3, x_4, x_5, x_6, x_92); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +lean_dec(x_94); +x_96 = l_Lean_Meta_mkEqMPR(x_71, x_2, x_3, x_4, x_5, x_6, x_95); return x_96; } -} else { -lean_object* x_97; -lean_dec(x_72); -lean_dec(x_68); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_71); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_79)) { - x_97 = lean_alloc_ctor(1, 2, 0); -} else { - x_97 = x_79; -} -lean_ctor_set(x_97, 0, x_77); -lean_ctor_set(x_97, 1, x_78); -return x_97; -} -} -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_68); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_98 = lean_ctor_get(x_71, 0); +x_97 = lean_ctor_get(x_94, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_94, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_71, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_100 = x_71; +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_99 = x_94; } else { - lean_dec_ref(x_71); - x_100 = lean_box(0); + lean_dec_ref(x_94); + x_99 = lean_box(0); } -if (lean_is_scalar(x_100)) { +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +return x_100; +} +} +else +{ +lean_object* x_101; +lean_dec(x_75); +lean_dec(x_71); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_82)) { x_101 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_100; + x_101 = x_82; } -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); +lean_ctor_set(x_101, 0, x_80); +lean_ctor_set(x_101, 1, x_81); return x_101; } } -} else { -uint8_t x_102; +lean_object* x_102; +lean_dec(x_75); +lean_dec(x_71); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_102 = !lean_is_exclusive(x_11); -if (x_102 == 0) +if (lean_is_scalar(x_82)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_82; +} +lean_ctor_set(x_102, 0, x_80); +lean_ctor_set(x_102, 1, x_81); +return x_102; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_71); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_103 = lean_ctor_get(x_74, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_74, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_105 = x_74; +} else { + lean_dec_ref(x_74); + 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); +return x_106; +} +} +} +else +{ +uint8_t x_107; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_107 = !lean_is_exclusive(x_11); +if (x_107 == 0) { return x_11; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_11, 0); -x_104 = lean_ctor_get(x_11, 1); -lean_inc(x_104); -lean_inc(x_103); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_11, 0); +x_109 = lean_ctor_get(x_11, 1); +lean_inc(x_109); +lean_inc(x_108); lean_dec(x_11); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } else { -uint8_t x_106; +uint8_t x_111; 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_106 = !lean_is_exclusive(x_8); -if (x_106 == 0) +x_111 = !lean_is_exclusive(x_8); +if (x_111 == 0) { return x_8; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_8, 0); -x_108 = lean_ctor_get(x_8, 1); -lean_inc(x_108); -lean_inc(x_107); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_8, 0); +x_113 = lean_ctor_get(x_8, 1); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_8); -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; +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; } } } diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index cd38d49a9e..ab97de682e 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -9417,7 +9417,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -9429,7 +9429,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -9442,24 +9445,26 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_2, x_23, x_4, x_5); -lean_dec(x_23); -return x_24; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_2, x_25, x_4, x_5); +lean_dec(x_25); +return x_26; } } } diff --git a/stage0/stdlib/Lean/Meta/Reduce.c b/stage0/stdlib/Lean/Meta/Reduce.c index a374c34c90..3e580f65d4 100644 --- a/stage0/stdlib/Lean/Meta/Reduce.c +++ b/stage0/stdlib/Lean/Meta/Reduce.c @@ -721,7 +721,7 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Meta_reduce_visit___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) { _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; uint8_t x_19; uint8_t x_20; +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; uint8_t x_21; uint8_t x_22; x_8 = lean_ctor_get(x_5, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_5, 1); @@ -744,161 +744,169 @@ x_17 = lean_ctor_get(x_5, 9); lean_inc(x_17); x_18 = lean_ctor_get(x_5, 10); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); -x_20 = lean_nat_dec_eq(x_11, x_12); -if (x_20 == 0) +x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_20 = lean_ctor_get(x_5, 11); +lean_inc(x_20); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +x_22 = lean_nat_dec_eq(x_11, x_12); +if (x_22 == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_5); -if (x_21 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_5); +if (x_23 == 0) { -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; -x_22 = lean_ctor_get(x_5, 10); -lean_dec(x_22); -x_23 = lean_ctor_get(x_5, 9); -lean_dec(x_23); -x_24 = lean_ctor_get(x_5, 8); +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; +x_24 = lean_ctor_get(x_5, 11); lean_dec(x_24); -x_25 = lean_ctor_get(x_5, 7); +x_25 = lean_ctor_get(x_5, 10); lean_dec(x_25); -x_26 = lean_ctor_get(x_5, 6); +x_26 = lean_ctor_get(x_5, 9); lean_dec(x_26); -x_27 = lean_ctor_get(x_5, 5); +x_27 = lean_ctor_get(x_5, 8); lean_dec(x_27); -x_28 = lean_ctor_get(x_5, 4); +x_28 = lean_ctor_get(x_5, 7); lean_dec(x_28); -x_29 = lean_ctor_get(x_5, 3); +x_29 = lean_ctor_get(x_5, 6); lean_dec(x_29); -x_30 = lean_ctor_get(x_5, 2); +x_30 = lean_ctor_get(x_5, 5); lean_dec(x_30); -x_31 = lean_ctor_get(x_5, 1); +x_31 = lean_ctor_get(x_5, 4); lean_dec(x_31); -x_32 = lean_ctor_get(x_5, 0); +x_32 = lean_ctor_get(x_5, 3); lean_dec(x_32); -x_33 = lean_unsigned_to_nat(1u); -x_34 = lean_nat_add(x_11, x_33); -lean_dec(x_11); -lean_ctor_set(x_5, 3, x_34); -x_35 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_35) == 0) -{ -uint8_t x_36; -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); +x_33 = lean_ctor_get(x_5, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_5, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_5, 0); lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_11, x_36); +lean_dec(x_11); +lean_ctor_set(x_5, 3, x_37); +x_38 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; } else { -uint8_t x_40; -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_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_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; +lean_inc(x_40); +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +uint8_t x_43; +x_43 = !lean_is_exclusive(x_38); +if (x_43 == 0) +{ +return x_38; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_38, 0); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_38); +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 { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_dec(x_5); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_add(x_11, x_44); +x_47 = lean_unsigned_to_nat(1u); +x_48 = lean_nat_add(x_11, x_47); lean_dec(x_11); -x_46 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_46, 0, x_8); -lean_ctor_set(x_46, 1, x_9); -lean_ctor_set(x_46, 2, x_10); -lean_ctor_set(x_46, 3, x_45); -lean_ctor_set(x_46, 4, x_12); -lean_ctor_set(x_46, 5, x_13); -lean_ctor_set(x_46, 6, x_14); -lean_ctor_set(x_46, 7, x_15); -lean_ctor_set(x_46, 8, x_16); -lean_ctor_set(x_46, 9, x_17); -lean_ctor_set(x_46, 10, x_18); -lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_19); -x_47 = lean_apply_6(x_1, x_2, x_3, x_4, x_46, x_6, x_7); -if (lean_obj_tag(x_47) == 0) +x_49 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_49, 0, x_8); +lean_ctor_set(x_49, 1, x_9); +lean_ctor_set(x_49, 2, x_10); +lean_ctor_set(x_49, 3, x_48); +lean_ctor_set(x_49, 4, x_12); +lean_ctor_set(x_49, 5, x_13); +lean_ctor_set(x_49, 6, x_14); +lean_ctor_set(x_49, 7, x_15); +lean_ctor_set(x_49, 8, x_16); +lean_ctor_set(x_49, 9, x_17); +lean_ctor_set(x_49, 10, x_18); +lean_ctor_set(x_49, 11, x_20); +lean_ctor_set_uint8(x_49, sizeof(void*)*12, x_19); +lean_ctor_set_uint8(x_49, sizeof(void*)*12 + 1, x_21); +x_50 = lean_apply_6(x_1, x_2, x_3, x_4, x_49, x_6, x_7); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_50 = x_47; -} else { - lean_dec_ref(x_47); - 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_48); -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; -x_52 = lean_ctor_get(x_47, 0); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_54 = x_47; +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_47); - x_54 = lean_box(0); + lean_dec_ref(x_50); + x_53 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_55 = x_54; + x_54 = x_53; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +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_56; uint8_t x_57; +lean_object* x_59; uint8_t x_60; +lean_dec(x_20); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -913,26 +921,26 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_56 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_reduce_visit___spec__9(x_13, x_5, x_6, x_7); +x_59 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_reduce_visit___spec__9(x_13, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -return x_56; +return x_59; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_59); +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; } } } diff --git a/stage0/stdlib/Lean/Meta/SizeOf.c b/stage0/stdlib/Lean/Meta/SizeOf.c index 3b55ce9b6d..430b1ede95 100644 --- a/stage0/stdlib/Lean/Meta/SizeOf.c +++ b/stage0/stdlib/Lean/Meta/SizeOf.c @@ -62,6 +62,7 @@ static lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2 static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_8156____closed__3; static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemmaProof_mkSizeOf___closed__1; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_SizeOfSpecNested_throwFailed___spec__1(lean_object*); static lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_SizeOfSpecNested_main_step(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -576,14 +577,18 @@ if (x_27 == 0) { lean_object* x_28; uint8_t x_29; x_28 = lean_ctor_get(x_19, 0); -x_29 = l_Lean_Exception_isRuntime(x_28); +x_29 = l_Lean_Exception_isInterrupt(x_28); if (x_29 == 0) { -lean_object* x_30; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_dec(x_28); -x_30 = lean_box(0); +x_31 = lean_box(0); lean_ctor_set_tag(x_19, 0); -lean_ctor_set(x_19, 0, x_30); +lean_ctor_set(x_19, 0, x_31); return x_19; } else @@ -593,88 +598,128 @@ return x_19; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_19, 0); -x_32 = lean_ctor_get(x_19, 1); +return x_19; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_19, 0); +x_33 = lean_ctor_get(x_19, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); lean_dec(x_19); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) +x_34 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) { -lean_object* x_34; lean_object* x_35; -lean_dec(x_31); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -return x_35; +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_32); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +return x_37; } else { -lean_object* x_36; -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_31); -lean_ctor_set(x_36, 1, x_32); -return x_36; +lean_object* x_38; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_33); +return x_38; +} +} +else +{ +lean_object* x_39; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_33); +return x_39; } } } } else { -uint8_t x_37; +uint8_t x_40; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_13); -if (x_37 == 0) +x_40 = !lean_is_exclusive(x_13); +if (x_40 == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_13, 0); -x_39 = l_Lean_Exception_isRuntime(x_38); -if (x_39 == 0) -{ -lean_object* x_40; -lean_dec(x_38); -x_40 = lean_box(0); -lean_ctor_set_tag(x_13, 0); -lean_ctor_set(x_13, 0, x_40); -return x_13; -} -else -{ -return x_13; -} -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_object* x_41; uint8_t x_42; x_41 = lean_ctor_get(x_13, 0); -x_42 = lean_ctor_get(x_13, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_13); +x_42 = l_Lean_Exception_isInterrupt(x_41); +if (x_42 == 0) +{ +uint8_t x_43; x_43 = l_Lean_Exception_isRuntime(x_41); if (x_43 == 0) { -lean_object* x_44; lean_object* x_45; +lean_object* x_44; lean_dec(x_41); x_44 = lean_box(0); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_42); -return x_45; +lean_ctor_set_tag(x_13, 0); +lean_ctor_set(x_13, 0, x_44); +return x_13; } else { -lean_object* x_46; -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_41); -lean_ctor_set(x_46, 1, x_42); -return x_46; +return x_13; +} +} +else +{ +return x_13; +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_13, 0); +x_46 = lean_ctor_get(x_13, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_13); +x_47 = l_Lean_Exception_isInterrupt(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_45); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_46); +return x_50; +} +else +{ +lean_object* x_51; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_45); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +} +else +{ +lean_object* x_52; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_46); +return x_52; } } } diff --git a/stage0/stdlib/Lean/Meta/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 313a9aa855..c419862688 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -77,7 +77,6 @@ static lean_object* l_Lean_Meta_SynthInstance_checkSystem___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_resume___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_SynthInstance_getInstances___spec__7___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_synthInstance_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_io_check_canceled(lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_SynthInstance_newSubgoal___spec__9___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_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_Meta_SynthInstance_getInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -90,6 +89,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M double lean_float_div(double, double); LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_synth(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_resume___lambda__1___closed__2; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_StateT_bind___at_Lean_Meta_SynthInstance_MkTableKey_instMonadMCtxM___spec__2___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default; static lean_object* l_Lean_Meta_synthInstance_x3f___lambda__6___closed__3; @@ -494,6 +494,7 @@ extern lean_object* l_Lean_crossEmoji; LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_instInhabitedGeneratorNode; static lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_SynthInstance_generate___spec__3___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Core_interruptExceptionId; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_SynthInstance_generate___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Meta_SynthInstance_newSubgoal___spec__9___lambda__2___closed__2; lean_object* l_Lean_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(lean_object*, lean_object*); @@ -514,7 +515,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_SynthInstance_g LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_getNextToResume___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_9746____closed__4; static lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___lambda__2___closed__2; -static lean_object* l_Lean_Meta_SynthInstance_checkSystem___closed__4; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_SynthInstance_wakeUp___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_Lean_Meta_synthInstance_x3f_assignOutParams___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -686,7 +686,6 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_SynthInstance_gener static lean_object* l_Lean_Meta_SynthInstance_addAnswer___lambda__4___closed__4; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_synthInstance_x3f___spec__8___lambda__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_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_SynthInstance_newSubgoal___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_SynthInstance_checkSystem___closed__5; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_getTop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_addAnswer___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3133,87 +3132,83 @@ static lean_object* _init_l_Lean_Meta_SynthInstance_checkSystem___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("elaboration interrupted", 23); +x_1 = l_Lean_Core_interruptExceptionId; return x_1; } } static lean_object* _init_l_Lean_Meta_SynthInstance_checkSystem___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_SynthInstance_checkSystem___closed__2; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_SynthInstance_checkSystem___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_SynthInstance_checkSystem___closed__3; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_SynthInstance_checkSystem___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_SynthInstance_checkSystem___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); +x_2 = l_Lean_Meta_SynthInstance_checkSystem___closed__2; +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; } } LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_checkSystem(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_io_check_canceled(x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_unbox(x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_8; +x_8 = lean_ctor_get(x_5, 11); +if (lean_obj_tag(x_8) == 0) { -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_8, 1); -lean_inc(x_11); -lean_dec(x_8); -x_12 = lean_ctor_get(x_1, 1); -x_13 = l_Lean_Meta_SynthInstance_checkSystem___closed__1; -x_14 = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_6____closed__3; -x_15 = l_Lean_Core_checkMaxHeartbeatsCore(x_13, x_14, x_12, x_5, x_6, x_11); -return x_15; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 1); +x_10 = l_Lean_Meta_SynthInstance_checkSystem___closed__1; +x_11 = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_6____closed__3; +x_12 = l_Lean_Core_checkMaxHeartbeatsCore(x_10, x_11, x_9, x_5, x_6, x_7); +return x_12; } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_8); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_8, 0); +x_14 = lean_st_ref_get(x_13, x_7); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_8, 0); -lean_dec(x_17); -x_18 = l_Lean_Meta_SynthInstance_checkSystem___closed__5; -lean_ctor_set_tag(x_8, 1); -lean_ctor_set(x_8, 0, x_18); -return x_8; +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_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_1, 1); +x_19 = l_Lean_Meta_SynthInstance_checkSystem___closed__1; +x_20 = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_6____closed__3; +x_21 = l_Lean_Core_checkMaxHeartbeatsCore(x_19, x_20, x_18, x_5, x_6, x_17); +return x_21; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); -lean_dec(x_8); -x_20 = l_Lean_Meta_SynthInstance_checkSystem___closed__5; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_14, 0); +lean_dec(x_23); +x_24 = l_Lean_Meta_SynthInstance_checkSystem___closed__3; +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 0, x_24); +return x_14; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_dec(x_14); +x_26 = l_Lean_Meta_SynthInstance_checkSystem___closed__3; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} } } } @@ -5986,7 +5981,7 @@ return x_72; } 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; lean_object* x_79; 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; lean_object* x_91; lean_object* x_92; size_t x_93; size_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_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_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; uint8_t 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; size_t x_95; size_t 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; 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; x_73 = lean_ctor_get(x_9, 0); x_74 = lean_ctor_get(x_9, 1); x_75 = lean_ctor_get(x_9, 2); @@ -5998,7 +5993,10 @@ x_80 = lean_ctor_get(x_9, 7); x_81 = lean_ctor_get(x_9, 8); x_82 = lean_ctor_get(x_9, 9); x_83 = lean_ctor_get(x_9, 10); -x_84 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_84 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_85 = lean_ctor_get(x_9, 11); +x_86 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_85); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); @@ -6011,125 +6009,127 @@ lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); lean_dec(x_9); -x_85 = l_Lean_replaceRef(x_3, x_78); +x_87 = l_Lean_replaceRef(x_3, x_78); lean_dec(x_78); -x_86 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_86, 0, x_73); -lean_ctor_set(x_86, 1, x_74); -lean_ctor_set(x_86, 2, x_75); -lean_ctor_set(x_86, 3, x_76); -lean_ctor_set(x_86, 4, x_77); -lean_ctor_set(x_86, 5, x_85); -lean_ctor_set(x_86, 6, x_79); -lean_ctor_set(x_86, 7, x_80); -lean_ctor_set(x_86, 8, x_81); -lean_ctor_set(x_86, 9, x_82); -lean_ctor_set(x_86, 10, x_83); -lean_ctor_set_uint8(x_86, sizeof(void*)*11, x_84); -x_87 = lean_st_ref_get(x_10, x_11); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_ctor_get(x_88, 3); +x_88 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_88, 0, x_73); +lean_ctor_set(x_88, 1, x_74); +lean_ctor_set(x_88, 2, x_75); +lean_ctor_set(x_88, 3, x_76); +lean_ctor_set(x_88, 4, x_77); +lean_ctor_set(x_88, 5, x_87); +lean_ctor_set(x_88, 6, x_79); +lean_ctor_set(x_88, 7, x_80); +lean_ctor_set(x_88, 8, x_81); +lean_ctor_set(x_88, 9, x_82); +lean_ctor_set(x_88, 10, x_83); +lean_ctor_set(x_88, 11, x_85); +lean_ctor_set_uint8(x_88, sizeof(void*)*12, x_84); +lean_ctor_set_uint8(x_88, sizeof(void*)*12 + 1, x_86); +x_89 = lean_st_ref_get(x_10, x_11); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_ctor_get(x_90, 3); +lean_inc(x_92); +lean_dec(x_90); +x_93 = l_Lean_PersistentArray_toArray___rarg(x_92); +x_94 = lean_array_get_size(x_93); +x_95 = lean_usize_of_nat(x_94); +lean_dec(x_94); +x_96 = 0; +x_97 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_95, x_96, x_93); +x_98 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_98, 0, x_2); +lean_ctor_set(x_98, 1, x_4); +lean_ctor_set(x_98, 2, x_97); +x_99 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_98, x_7, x_8, x_88, x_10, x_91); lean_dec(x_88); -x_91 = l_Lean_PersistentArray_toArray___rarg(x_90); -x_92 = lean_array_get_size(x_91); -x_93 = lean_usize_of_nat(x_92); -lean_dec(x_92); -x_94 = 0; -x_95 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_93, x_94, x_91); -x_96 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_96, 0, x_2); -lean_ctor_set(x_96, 1, x_4); -lean_ctor_set(x_96, 2, x_95); -x_97 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_96, x_7, x_8, x_86, x_10, x_89); -lean_dec(x_86); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = lean_st_ref_take(x_10, x_99); -x_101 = lean_ctor_get(x_100, 0); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); 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_100); - x_103 = lean_box(0); -} -x_104 = lean_ctor_get(x_101, 0); +lean_dec(x_99); +x_102 = lean_st_ref_take(x_10, x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_101, 1); -lean_inc(x_105); -x_106 = lean_ctor_get(x_101, 2); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; +} else { + lean_dec_ref(x_102); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_103, 0); lean_inc(x_106); -x_107 = lean_ctor_get(x_101, 4); +x_107 = lean_ctor_get(x_103, 1); lean_inc(x_107); -x_108 = lean_ctor_get(x_101, 5); +x_108 = lean_ctor_get(x_103, 2); lean_inc(x_108); -x_109 = lean_ctor_get(x_101, 6); +x_109 = lean_ctor_get(x_103, 4); lean_inc(x_109); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - lean_ctor_release(x_101, 2); - lean_ctor_release(x_101, 3); - lean_ctor_release(x_101, 4); - lean_ctor_release(x_101, 5); - lean_ctor_release(x_101, 6); - x_110 = x_101; +x_110 = lean_ctor_get(x_103, 5); +lean_inc(x_110); +x_111 = lean_ctor_get(x_103, 6); +lean_inc(x_111); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + lean_ctor_release(x_103, 2); + lean_ctor_release(x_103, 3); + lean_ctor_release(x_103, 4); + lean_ctor_release(x_103, 5); + lean_ctor_release(x_103, 6); + x_112 = x_103; } else { - lean_dec_ref(x_101); - x_110 = lean_box(0); + lean_dec_ref(x_103); + x_112 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_111 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_105)) { + x_113 = lean_alloc_ctor(0, 2, 0); } else { - x_111 = x_103; + x_113 = x_105; } -lean_ctor_set(x_111, 0, x_3); -lean_ctor_set(x_111, 1, x_98); -x_112 = l_Lean_PersistentArray_push___rarg(x_1, x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_113, 0, x_3); +lean_ctor_set(x_113, 1, x_100); +x_114 = l_Lean_PersistentArray_push___rarg(x_1, x_113); +if (lean_is_scalar(x_112)) { + x_115 = lean_alloc_ctor(0, 7, 0); } else { - x_113 = x_110; + x_115 = x_112; } -lean_ctor_set(x_113, 0, x_104); -lean_ctor_set(x_113, 1, x_105); -lean_ctor_set(x_113, 2, x_106); -lean_ctor_set(x_113, 3, x_112); -lean_ctor_set(x_113, 4, x_107); -lean_ctor_set(x_113, 5, x_108); -lean_ctor_set(x_113, 6, x_109); -x_114 = lean_st_ref_set(x_10, x_113, x_102); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_116 = x_114; -} else { - lean_dec_ref(x_114); - x_116 = lean_box(0); -} -x_117 = lean_box(0); -if (lean_is_scalar(x_116)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_115, 0, x_106); +lean_ctor_set(x_115, 1, x_107); +lean_ctor_set(x_115, 2, x_108); +lean_ctor_set(x_115, 3, x_114); +lean_ctor_set(x_115, 4, x_109); +lean_ctor_set(x_115, 5, x_110); +lean_ctor_set(x_115, 6, x_111); +x_116 = lean_st_ref_set(x_10, x_115, x_104); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); x_118 = x_116; +} else { + lean_dec_ref(x_116); + x_118 = lean_box(0); } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_115); -return x_118; +x_119 = lean_box(0); +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_117); +return x_120; } } } @@ -29948,32 +29948,36 @@ if (x_16 == 0) { lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_8, 0); -x_18 = l_Lean_Exception_isRuntime(x_17); +x_18 = l_Lean_Exception_isInterrupt(x_17); if (x_18 == 0) { +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_17); +if (x_19 == 0) +{ if (lean_obj_tag(x_17) == 0) { return x_8; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = l_Lean_Meta_trySynthInstance___closed__1; -x_21 = lean_nat_dec_eq(x_20, x_19); -lean_dec(x_19); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +x_21 = l_Lean_Meta_trySynthInstance___closed__1; +x_22 = lean_nat_dec_eq(x_21, x_20); +lean_dec(x_20); +if (x_22 == 0) { return x_8; } else { -lean_object* x_22; +lean_object* x_23; lean_dec(x_17); -x_22 = lean_box(2); +x_23 = lean_box(2); lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_22); +lean_ctor_set(x_8, 0, x_23); return x_8; } } @@ -29985,58 +29989,76 @@ return x_8; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_8, 0); -x_24 = lean_ctor_get(x_8, 1); +return x_8; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_8, 0); +x_25 = lean_ctor_get(x_8, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_8); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) { -if (lean_obj_tag(x_23) == 0) +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) { -lean_object* x_26; -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_24); -return x_26; +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_25); +return x_28; } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_23, 0); -lean_inc(x_27); -x_28 = l_Lean_Meta_trySynthInstance___closed__1; -x_29 = lean_nat_dec_eq(x_28, x_27); -lean_dec(x_27); -if (x_29 == 0) +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = l_Lean_Meta_trySynthInstance___closed__1; +x_31 = lean_nat_dec_eq(x_30, x_29); +lean_dec(x_29); +if (x_31 == 0) { -lean_object* x_30; -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_23); -x_31 = lean_box(2); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_24); +lean_object* x_32; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_25); return x_32; } +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_24); +x_33 = lean_box(2); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_25); +return x_34; +} } } else { -lean_object* x_33; -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_23); -lean_ctor_set(x_33, 1, x_24); -return x_33; +lean_object* x_35; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_24); +lean_ctor_set(x_35, 1, x_25); +return x_35; +} +} +else +{ +lean_object* x_36; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_24); +lean_ctor_set(x_36, 1, x_25); +return x_36; } } } @@ -30082,217 +30104,166 @@ return x_7; LEAN_EXPORT lean_object* l_Lean_Meta_synthInstance(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_8; lean_object* x_9; lean_object* x_21; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_8 = l_Lean_Meta_synthInstance_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +x_21 = l_Lean_Meta_synthInstance_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Meta_throwFailedToSynthesize(x_1, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -return x_11; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_1); +x_24 = l_Lean_Meta_throwFailedToSynthesize(x_1, x_3, x_4, x_5, x_6, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_8 = x_25; +x_9 = x_26; +goto block_20; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; +uint8_t x_27; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_16 = !lean_is_exclusive(x_8); -if (x_16 == 0) +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_8, 0); -lean_dec(x_17); -x_18 = lean_ctor_get(x_9, 0); -lean_inc(x_18); -lean_dec(x_9); -lean_ctor_set(x_8, 0, x_18); -return x_8; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); -lean_dec(x_8); -x_20 = lean_ctor_get(x_9, 0); -lean_inc(x_20); -lean_dec(x_9); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_21, 0); +lean_dec(x_28); +x_29 = lean_ctor_get(x_22, 0); +lean_inc(x_29); +lean_dec(x_22); +lean_ctor_set(x_21, 0, x_29); return x_21; } -} -} else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_8); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_8, 0); -x_24 = lean_ctor_get(x_8, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) -{ -if (lean_obj_tag(x_23) == 0) -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_8; -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -x_27 = l_Lean_Meta_trySynthInstance___closed__1; -x_28 = lean_nat_dec_eq(x_27, x_26); -lean_dec(x_26); -if (x_28 == 0) -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_8; -} -else -{ -lean_object* x_29; -lean_free_object(x_8); -lean_dec(x_23); -x_29 = l_Lean_Meta_throwFailedToSynthesize(x_1, x_3, x_4, x_5, x_6, x_24); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_29; -} -} -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_8; -} -} -else -{ -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_8, 0); -x_31 = lean_ctor_get(x_8, 1); -lean_inc(x_31); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_21, 1); lean_inc(x_30); -lean_dec(x_8); -x_32 = l_Lean_Exception_isRuntime(x_30); -if (x_32 == 0) -{ -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_33; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -return x_33; +lean_dec(x_21); +x_31 = lean_ctor_get(x_22, 0); +lean_inc(x_31); +lean_dec(x_22); +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 { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_30, 0); +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_21, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_21, 1); lean_inc(x_34); -x_35 = l_Lean_Meta_trySynthInstance___closed__1; -x_36 = lean_nat_dec_eq(x_35, x_34); -lean_dec(x_34); -if (x_36 == 0) +lean_dec(x_21); +x_8 = x_33; +x_9 = x_34; +goto block_20; +} +block_20: { -lean_object* x_37; +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_12; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_30); -lean_ctor_set(x_37, 1, x_31); -return x_37; +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_9); +return x_12; } else { -lean_object* x_38; -lean_dec(x_30); -x_38 = l_Lean_Meta_throwFailedToSynthesize(x_1, x_3, x_4, x_5, x_6, x_31); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_38; -} -} -} -else +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_8, 0); +lean_inc(x_13); +x_14 = l_Lean_Meta_trySynthInstance___closed__1; +x_15 = lean_nat_dec_eq(x_14, x_13); +lean_dec(x_13); +if (x_15 == 0) { -lean_object* x_39; +lean_object* x_16; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_31); -return x_39; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_8); +lean_ctor_set(x_16, 1, x_9); +return x_16; } +else +{ +lean_object* x_17; +lean_dec(x_8); +x_17 = l_Lean_Meta_throwFailedToSynthesize(x_1, x_3, x_4, x_5, x_6, x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_17; +} +} +} +else +{ +lean_object* x_18; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_18, 1, x_9); +return x_18; +} +} +else +{ +lean_object* x_19; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_8); +lean_ctor_set(x_19, 1, x_9); +return x_19; } } } @@ -30464,9 +30435,13 @@ 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); -x_44 = l_Lean_Exception_isRuntime(x_42); +x_44 = l_Lean_Exception_isInterrupt(x_42); if (x_44 == 0) { +uint8_t x_45; +x_45 = l_Lean_Exception_isRuntime(x_42); +if (x_45 == 0) +{ if (lean_obj_tag(x_42) == 0) { lean_dec(x_7); @@ -30478,13 +30453,13 @@ return x_38; } else { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_42, 0); -lean_inc(x_45); -x_46 = l_Lean_Meta_trySynthInstance___closed__1; -x_47 = lean_nat_dec_eq(x_46, x_45); -lean_dec(x_45); -if (x_47 == 0) +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_42, 0); +lean_inc(x_46); +x_47 = l_Lean_Meta_trySynthInstance___closed__1; +x_48 = lean_nat_dec_eq(x_47, x_46); +lean_dec(x_46); +if (x_48 == 0) { lean_dec(x_7); lean_dec(x_6); @@ -30515,70 +30490,98 @@ return x_38; } else { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_38, 0); -x_49 = lean_ctor_get(x_38, 1); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_38; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +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_inc(x_48); lean_dec(x_38); -x_50 = l_Lean_Exception_isRuntime(x_48); -if (x_50 == 0) +x_51 = l_Lean_Exception_isInterrupt(x_49); +if (x_51 == 0) { -if (lean_obj_tag(x_48) == 0) +uint8_t x_52; +x_52 = l_Lean_Exception_isRuntime(x_49); +if (x_52 == 0) { -lean_object* x_51; +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_53; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_49); -return x_51; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_50); +return x_53; } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_48, 0); -lean_inc(x_52); -x_53 = l_Lean_Meta_trySynthInstance___closed__1; -x_54 = lean_nat_dec_eq(x_53, x_52); -lean_dec(x_52); -if (x_54 == 0) +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_49, 0); +lean_inc(x_54); +x_55 = l_Lean_Meta_trySynthInstance___closed__1; +x_56 = lean_nat_dec_eq(x_55, x_54); +lean_dec(x_54); +if (x_56 == 0) { -lean_object* x_55; +lean_object* x_57; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_48); -lean_ctor_set(x_55, 1, x_49); -return x_55; +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_49); +lean_ctor_set(x_57, 1, x_50); +return x_57; } else { -lean_dec(x_48); +lean_dec(x_49); x_10 = x_9; -x_11 = x_49; +x_11 = x_50; goto block_37; } } } else { -lean_object* x_56; +lean_object* x_58; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_48); -lean_ctor_set(x_56, 1, x_49); -return x_56; +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_49); +lean_ctor_set(x_58, 1, x_50); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_50); +return x_59; } } } @@ -31194,7 +31197,7 @@ return x_125; LEAN_EXPORT lean_object* lean_synth_pending(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; 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; uint8_t x_20; +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; uint8_t x_21; uint8_t x_22; lean_inc(x_1); x_7 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__3), 6, 1); lean_closure_set(x_7, 0, x_1); @@ -31220,71 +31223,79 @@ x_17 = lean_ctor_get(x_4, 9); lean_inc(x_17); x_18 = lean_ctor_get(x_4, 10); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_20 = lean_nat_dec_eq(x_11, x_12); -if (x_20 == 0) +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_20 = lean_ctor_get(x_4, 11); +lean_inc(x_20); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_22 = lean_nat_dec_eq(x_11, x_12); +if (x_22 == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_4); -if (x_21 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_4); +if (x_23 == 0) { -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; -x_22 = lean_ctor_get(x_4, 10); -lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 9); -lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 8); +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; +x_24 = lean_ctor_get(x_4, 11); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 7); +x_25 = lean_ctor_get(x_4, 10); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 6); +x_26 = lean_ctor_get(x_4, 9); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 5); +x_27 = lean_ctor_get(x_4, 8); lean_dec(x_27); -x_28 = lean_ctor_get(x_4, 4); +x_28 = lean_ctor_get(x_4, 7); lean_dec(x_28); -x_29 = lean_ctor_get(x_4, 3); +x_29 = lean_ctor_get(x_4, 6); lean_dec(x_29); -x_30 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 5); lean_dec(x_30); -x_31 = lean_ctor_get(x_4, 1); +x_31 = lean_ctor_get(x_4, 4); lean_dec(x_31); -x_32 = lean_ctor_get(x_4, 0); +x_32 = lean_ctor_get(x_4, 3); lean_dec(x_32); -x_33 = lean_unsigned_to_nat(1u); -x_34 = lean_nat_add(x_11, x_33); -lean_dec(x_11); -lean_ctor_set(x_4, 3, x_34); -x_35 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6); -return x_35; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_4); +x_33 = lean_ctor_get(x_4, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_4, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_4, 0); +lean_dec(x_35); x_36 = lean_unsigned_to_nat(1u); x_37 = lean_nat_add(x_11, x_36); lean_dec(x_11); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_8); -lean_ctor_set(x_38, 1, x_9); -lean_ctor_set(x_38, 2, x_10); -lean_ctor_set(x_38, 3, x_37); -lean_ctor_set(x_38, 4, x_12); -lean_ctor_set(x_38, 5, x_13); -lean_ctor_set(x_38, 6, x_14); -lean_ctor_set(x_38, 7, x_15); -lean_ctor_set(x_38, 8, x_16); -lean_ctor_set(x_38, 9, x_17); -lean_ctor_set(x_38, 10, x_18); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_19); -x_39 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_7, x_2, x_3, x_38, x_5, x_6); -return x_39; +lean_ctor_set(x_4, 3, x_37); +x_38 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_4); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_11, x_39); +lean_dec(x_11); +x_41 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_41, 0, x_8); +lean_ctor_set(x_41, 1, x_9); +lean_ctor_set(x_41, 2, x_10); +lean_ctor_set(x_41, 3, x_40); +lean_ctor_set(x_41, 4, x_12); +lean_ctor_set(x_41, 5, x_13); +lean_ctor_set(x_41, 6, x_14); +lean_ctor_set(x_41, 7, x_15); +lean_ctor_set(x_41, 8, x_16); +lean_ctor_set(x_41, 9, x_17); +lean_ctor_set(x_41, 10, x_18); +lean_ctor_set(x_41, 11, x_20); +lean_ctor_set_uint8(x_41, sizeof(void*)*12, x_19); +lean_ctor_set_uint8(x_41, sizeof(void*)*12 + 1, x_21); +x_42 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_7, x_2, x_3, x_41, x_5, x_6); +return x_42; } } else { -lean_object* x_40; +lean_object* x_43; +lean_dec(x_20); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -31297,12 +31308,12 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_40 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__3(x_13, x_2, x_3, x_4, x_5, x_6); +x_43 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__3(x_13, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_40; +return x_43; } } } @@ -31861,10 +31872,6 @@ l_Lean_Meta_SynthInstance_checkSystem___closed__2 = _init_l_Lean_Meta_SynthInsta lean_mark_persistent(l_Lean_Meta_SynthInstance_checkSystem___closed__2); l_Lean_Meta_SynthInstance_checkSystem___closed__3 = _init_l_Lean_Meta_SynthInstance_checkSystem___closed__3(); lean_mark_persistent(l_Lean_Meta_SynthInstance_checkSystem___closed__3); -l_Lean_Meta_SynthInstance_checkSystem___closed__4 = _init_l_Lean_Meta_SynthInstance_checkSystem___closed__4(); -lean_mark_persistent(l_Lean_Meta_SynthInstance_checkSystem___closed__4); -l_Lean_Meta_SynthInstance_checkSystem___closed__5 = _init_l_Lean_Meta_SynthInstance_checkSystem___closed__5(); -lean_mark_persistent(l_Lean_Meta_SynthInstance_checkSystem___closed__5); l_Lean_Meta_SynthInstance_instInhabitedSynthM___rarg___closed__1 = _init_l_Lean_Meta_SynthInstance_instInhabitedSynthM___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_SynthInstance_instInhabitedSynthM___rarg___closed__1); l_Lean_Meta_SynthInstance_instInhabitedSynthM___rarg___closed__2 = _init_l_Lean_Meta_SynthInstance_instInhabitedSynthM___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c b/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c index 82f289bd07..02cbc1b3e1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/AC/Main.c @@ -39,6 +39,7 @@ static lean_object* l___regBuiltin_Lean_Meta_AC_acRflTactic_declRange___closed__ lean_object* l_Lean_mkApp7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_Meta_AC_toACExpr___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_AC_acRflTactic(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_HashMap_find_x21___at_Lean_Meta_AC_toACExpr___spec__13___closed__3; lean_object* l_Lean_mkAppB(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*); @@ -764,360 +765,379 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_AC_getInstance(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_8; lean_object* x_9; lean_object* x_17; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_8 = l_Lean_Meta_mkAppM(x_1, x_2, 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; uint8_t x_14; -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 = l_Lean_Meta_AC_getInstance___closed__3; -x_12 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_11, x_3, x_4, x_5, x_6, x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_box(0); -x_17 = l_Lean_Meta_AC_getInstance___lambda__2(x_9, x_11, x_16, x_3, x_4, x_5, x_6, x_15); +x_17 = l_Lean_Meta_mkAppM(x_1, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { -return x_17; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_17, 0); -x_24 = l_Lean_Exception_isRuntime(x_23); +x_21 = l_Lean_Meta_AC_getInstance___closed__3; +x_22 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_21, x_3, x_4, x_5, x_6, x_20); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_unbox(x_23); +lean_dec(x_23); if (x_24 == 0) { -lean_object* x_25; -lean_dec(x_23); -x_25 = lean_box(0); -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_25); -return x_17; -} -else +lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_free_object(x_17); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_AC_getInstance___lambda__2(x_19, x_21, x_26, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_27) == 0) { -return x_17; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_17, 0); -x_27 = lean_ctor_get(x_17, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_17); -x_28 = l_Lean_Exception_isRuntime(x_26); +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; -lean_dec(x_26); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; +return x_27; } else { -lean_object* x_31; -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_26); -lean_ctor_set(x_31, 1, x_27); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); return x_31; } } +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_27, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); +x_8 = x_32; +x_9 = x_33; +goto block_16; } } else { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_12); -if (x_32 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_22); +if (x_34 == 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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_33 = lean_ctor_get(x_12, 1); -x_34 = lean_ctor_get(x_12, 0); -lean_dec(x_34); -lean_inc(x_9); -x_35 = l_Lean_indentExpr(x_9); -x_36 = l_Lean_Meta_AC_getInstance___closed__5; -lean_ctor_set_tag(x_12, 6); -lean_ctor_set(x_12, 1, x_35); -lean_ctor_set(x_12, 0, x_36); -x_37 = l_Lean_Meta_AC_getInstance___closed__7; -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_12); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_11, x_38, x_3, x_4, x_5, x_6, x_33); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); +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; +x_35 = lean_ctor_get(x_22, 1); +x_36 = lean_ctor_get(x_22, 0); +lean_dec(x_36); +lean_inc(x_19); +x_37 = l_Lean_indentExpr(x_19); +x_38 = l_Lean_Meta_AC_getInstance___closed__5; +lean_ctor_set_tag(x_22, 6); +lean_ctor_set(x_22, 1, x_37); +lean_ctor_set(x_22, 0, x_38); +x_39 = l_Lean_Meta_AC_getInstance___closed__7; +lean_ctor_set_tag(x_17, 6); +lean_ctor_set(x_17, 1, x_39); +lean_ctor_set(x_17, 0, x_22); +x_40 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_21, x_17, x_3, x_4, x_5, x_6, x_35); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_Meta_AC_getInstance___lambda__2(x_9, x_11, x_40, x_3, x_4, x_5, x_6, x_41); -if (lean_obj_tag(x_42) == 0) +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Meta_AC_getInstance___lambda__2(x_19, x_21, x_41, x_3, x_4, x_5, x_6, x_42); +if (lean_obj_tag(x_43) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -return x_42; +return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_42); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 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_47; -x_47 = !lean_is_exclusive(x_42); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_42, 0); -x_49 = l_Lean_Exception_isRuntime(x_48); -if (x_49 == 0) -{ -lean_object* x_50; -lean_dec(x_48); -x_50 = lean_box(0); -lean_ctor_set_tag(x_42, 0); -lean_ctor_set(x_42, 0, x_50); -return x_42; -} -else -{ -return x_42; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_43, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +lean_dec(x_43); +x_8 = x_48; +x_9 = x_49; +goto block_16; } } else { -lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_51 = lean_ctor_get(x_42, 0); -x_52 = lean_ctor_get(x_42, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_42); -x_53 = l_Lean_Exception_isRuntime(x_51); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -lean_dec(x_51); -x_54 = lean_box(0); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -return x_55; -} -else -{ -lean_object* x_56; -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_51); -lean_ctor_set(x_56, 1, x_52); -return x_56; -} -} -} -} -else -{ -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; -x_57 = lean_ctor_get(x_12, 1); +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; +x_50 = lean_ctor_get(x_22, 1); +lean_inc(x_50); +lean_dec(x_22); +lean_inc(x_19); +x_51 = l_Lean_indentExpr(x_19); +x_52 = l_Lean_Meta_AC_getInstance___closed__5; +x_53 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Lean_Meta_AC_getInstance___closed__7; +lean_ctor_set_tag(x_17, 6); +lean_ctor_set(x_17, 1, x_54); +lean_ctor_set(x_17, 0, x_53); +x_55 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_21, x_17, x_3, x_4, x_5, x_6, x_50); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -lean_dec(x_12); -lean_inc(x_9); -x_58 = l_Lean_indentExpr(x_9); -x_59 = l_Lean_Meta_AC_getInstance___closed__5; -x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = l_Lean_Meta_AC_getInstance___closed__7; -x_62 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_11, x_62, x_3, x_4, x_5, x_6, x_57); -x_64 = lean_ctor_get(x_63, 0); +lean_dec(x_55); +x_58 = l_Lean_Meta_AC_getInstance___lambda__2(x_19, x_21, x_56, x_3, x_4, x_5, x_6, x_57); +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, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); +lean_dec(x_58); +x_8 = x_63; +x_9 = x_64; +goto block_16; +} +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_65 = lean_ctor_get(x_17, 0); +x_66 = lean_ctor_get(x_17, 1); +lean_inc(x_66); lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_Meta_AC_getInstance___lambda__2(x_9, x_11, x_64, x_3, x_4, x_5, x_6, x_65); -if (lean_obj_tag(x_66) == 0) +lean_dec(x_17); +x_67 = l_Lean_Meta_AC_getInstance___closed__3; +x_68 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_67, x_3, x_4, x_5, x_6, x_66); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_unbox(x_69); +lean_dec(x_69); +if (x_70 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_69 = x_66; -} else { - lean_dec_ref(x_66); - x_69 = lean_box(0); -} -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(0, 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 -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_71 = lean_ctor_get(x_66, 0); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_68, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_66, 1); -lean_inc(x_72); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_73 = x_66; -} else { - lean_dec_ref(x_66); - x_73 = lean_box(0); -} -x_74 = l_Lean_Exception_isRuntime(x_71); -if (x_74 == 0) +lean_dec(x_68); +x_72 = lean_box(0); +x_73 = l_Lean_Meta_AC_getInstance___lambda__2(x_65, x_67, x_72, x_3, x_4, x_5, x_6, x_71); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_75; lean_object* x_76; -lean_dec(x_71); -x_75 = lean_box(0); -if (lean_is_scalar(x_73)) { - x_76 = lean_alloc_ctor(0, 2, 0); -} else { +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +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_ctor_set_tag(x_76, 0); -} -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_72); -return x_76; -} -else -{ -lean_object* x_77; -if (lean_is_scalar(x_73)) { - x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_73; + lean_dec_ref(x_73); + x_76 = lean_box(0); } -lean_ctor_set(x_77, 0, x_71); -lean_ctor_set(x_77, 1, x_72); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(0, 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; +x_78 = lean_ctor_get(x_73, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); +lean_dec(x_73); +x_8 = x_78; +x_9 = x_79; +goto block_16; +} +} +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; 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_68, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_81 = x_68; +} else { + lean_dec_ref(x_68); + x_81 = lean_box(0); +} +lean_inc(x_65); +x_82 = l_Lean_indentExpr(x_65); +x_83 = l_Lean_Meta_AC_getInstance___closed__5; +if (lean_is_scalar(x_81)) { + x_84 = lean_alloc_ctor(6, 2, 0); +} else { + x_84 = x_81; + lean_ctor_set_tag(x_84, 6); +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +x_85 = l_Lean_Meta_AC_getInstance___closed__7; +x_86 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +x_87 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_67, x_86, x_3, x_4, x_5, x_6, x_80); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = l_Lean_Meta_AC_getInstance___lambda__2(x_65, x_67, x_88, x_3, x_4, x_5, x_6, x_89); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_93 = x_90; +} else { + lean_dec_ref(x_90); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_90, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_90, 1); +lean_inc(x_96); +lean_dec(x_90); +x_8 = x_95; +x_9 = x_96; +goto block_16; } } } } else { -uint8_t x_78; +lean_object* x_97; lean_object* x_98; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_78 = !lean_is_exclusive(x_8); -if (x_78 == 0) -{ -lean_object* x_79; uint8_t x_80; -x_79 = lean_ctor_get(x_8, 0); -x_80 = l_Lean_Exception_isRuntime(x_79); -if (x_80 == 0) -{ -lean_object* x_81; -lean_dec(x_79); -x_81 = lean_box(0); -lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_81); -return x_8; +x_97 = lean_ctor_get(x_17, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_17, 1); +lean_inc(x_98); +lean_dec(x_17); +x_8 = x_97; +x_9 = x_98; +goto block_16; } -else +block_16: { -return x_8; -} -} -else +uint8_t x_10; +x_10 = l_Lean_Exception_isInterrupt(x_8); +if (x_10 == 0) { -lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_82 = lean_ctor_get(x_8, 0); -x_83 = lean_ctor_get(x_8, 1); -lean_inc(x_83); -lean_inc(x_82); +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_dec(x_8); -x_84 = l_Lean_Exception_isRuntime(x_82); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; -lean_dec(x_82); -x_85 = lean_box(0); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -return x_86; +x_12 = lean_box(0); +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_87; -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_82); -lean_ctor_set(x_87, 1, x_83); -return x_87; +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_8); +lean_ctor_set(x_14, 1, x_9); +return x_14; } } +else +{ +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c b/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c index ce0d3ad988..ce2893137e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Acyclic.c @@ -25,6 +25,7 @@ static lean_object* l_Lean_MVarId_acyclic_go___closed__25; uint32_t l_UInt32_ofNatTruncate(lean_object*); static lean_object* l_Lean_MVarId_initFn____x40_Lean_Meta_Tactic_Acyclic___hyg_842____closed__6; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__20; lean_object* l_Lean_Meta_isConstructorApp_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_acyclic_go___closed__10; @@ -594,782 +595,799 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_MVarId_acyclic_go(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_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_79 = l_Lean_MVarId_acyclic_go___closed__13; -x_80 = lean_array_push(x_79, x_3); -x_81 = l_Lean_MVarId_acyclic_go___closed__12; +lean_object* x_10; lean_object* x_11; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = l_Lean_MVarId_acyclic_go___closed__13; +x_82 = lean_array_push(x_81, x_3); +x_83 = l_Lean_MVarId_acyclic_go___closed__12; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_82 = l_Lean_Meta_mkAppM(x_81, x_80, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_82) == 0) +x_84 = l_Lean_Meta_mkAppM(x_83, x_82, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -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_array_push(x_79, x_4); +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_inc(x_86); +lean_dec(x_84); +x_87 = lean_array_push(x_81, x_4); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_86 = l_Lean_Meta_mkAppM(x_81, x_85, x_5, x_6, x_7, x_8, x_84); -if (lean_obj_tag(x_86) == 0) +x_88 = l_Lean_Meta_mkAppM(x_83, x_87, x_5, x_6, x_7, x_8, x_86); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_83); -x_89 = l_Lean_Meta_mkLT(x_83, x_87, x_5, x_6, x_7, x_8, x_88); -if (lean_obj_tag(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; 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; uint32_t x_103; lean_object* x_104; uint32_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; -x_90 = lean_ctor_get(x_89, 0); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_box(0); -lean_inc(x_5); -x_93 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_90, x_92, x_5, x_6, x_7, x_8, x_91); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = l_Lean_MVarId_acyclic_go___closed__14; -x_97 = l_Lean_Meta_SimpExtension_getTheorems(x_96, x_7, x_8, x_95); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -lean_inc(x_94); -x_100 = l_Lean_Expr_mvarId_x21(x_94); -x_101 = lean_array_push(x_79, x_98); -x_102 = lean_box(0); -x_103 = 0; -x_104 = l_Lean_MVarId_acyclic_go___closed__15; -x_105 = l_Lean_MVarId_acyclic_go___closed__16; -x_106 = l_Lean_MVarId_acyclic_go___closed__21; -x_107 = lean_unsigned_to_nat(0u); -x_108 = lean_alloc_ctor(0, 5, 8); -lean_ctor_set(x_108, 0, x_104); -lean_ctor_set(x_108, 1, x_101); -lean_ctor_set(x_108, 2, x_106); -lean_ctor_set(x_108, 3, x_102); -lean_ctor_set(x_108, 4, x_107); -lean_ctor_set_uint32(x_108, sizeof(void*)*5, x_105); -lean_ctor_set_uint32(x_108, sizeof(void*)*5 + 4, x_103); -x_109 = l_Lean_MVarId_acyclic_go___closed__22; -x_110 = 1; -x_111 = l_Lean_MVarId_acyclic_go___closed__30; +lean_dec(x_88); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_112 = l_Lean_Meta_simpTarget(x_100, x_108, x_109, x_102, x_110, x_111, x_5, x_6, x_7, x_8, x_99); -if (lean_obj_tag(x_112) == 0) +lean_inc(x_85); +x_91 = l_Lean_Meta_mkLT(x_85, x_89, x_5, x_6, x_7, x_8, x_90); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_113; lean_object* x_114; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -lean_dec(x_113); +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; uint32_t x_105; lean_object* x_106; uint32_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; +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_box(0); +lean_inc(x_5); +x_95 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_92, x_94, x_5, x_6, x_7, x_8, x_93); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = l_Lean_MVarId_acyclic_go___closed__14; +x_99 = l_Lean_Meta_SimpExtension_getTheorems(x_98, x_7, x_8, x_97); +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +lean_inc(x_96); +x_102 = l_Lean_Expr_mvarId_x21(x_96); +x_103 = lean_array_push(x_81, x_100); +x_104 = lean_box(0); +x_105 = 0; +x_106 = l_Lean_MVarId_acyclic_go___closed__15; +x_107 = l_Lean_MVarId_acyclic_go___closed__16; +x_108 = l_Lean_MVarId_acyclic_go___closed__21; +x_109 = lean_unsigned_to_nat(0u); +x_110 = lean_alloc_ctor(0, 5, 8); +lean_ctor_set(x_110, 0, x_106); +lean_ctor_set(x_110, 1, x_103); +lean_ctor_set(x_110, 2, x_108); +lean_ctor_set(x_110, 3, x_104); +lean_ctor_set(x_110, 4, x_109); +lean_ctor_set_uint32(x_110, sizeof(void*)*5, x_107); +lean_ctor_set_uint32(x_110, sizeof(void*)*5 + 4, x_105); +x_111 = l_Lean_MVarId_acyclic_go___closed__22; +x_112 = 1; +x_113 = l_Lean_MVarId_acyclic_go___closed__30; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_114 = l_Lean_Meta_simpTarget(x_102, x_110, x_111, x_104, x_112, x_113, x_5, x_6, x_7, x_8, x_101); if (lean_obj_tag(x_114) == 0) { lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_112, 1); +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_112); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_116 = l_Lean_Meta_mkEqSymm(x_2, x_5, x_6, x_7, x_8, x_115); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +lean_dec(x_115); if (lean_obj_tag(x_116) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 0); +lean_object* x_117; lean_object* x_118; +x_117 = lean_ctor_get(x_114, 1); lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -lean_inc(x_83); -x_119 = l_Lean_Expr_appFn_x21(x_83); +lean_dec(x_114); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_120 = l_Lean_Meta_mkCongrArg(x_119, x_117, x_5, x_6, x_7, x_8, x_118); -if (lean_obj_tag(x_120) == 0) +x_118 = l_Lean_Meta_mkEqSymm(x_2, x_5, x_6, x_7, x_8, x_117); +if (lean_obj_tag(x_118) == 0) { -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; -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_123 = l_Lean_MVarId_acyclic_go___closed__34; -x_124 = lean_array_push(x_123, x_94); -x_125 = lean_array_push(x_124, x_121); -x_126 = l_Lean_MVarId_acyclic_go___closed__33; +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +lean_inc(x_85); +x_121 = l_Lean_Expr_appFn_x21(x_85); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_127 = l_Lean_Meta_mkAppM(x_126, x_125, x_5, x_6, x_7, x_8, x_122); -if (lean_obj_tag(x_127) == 0) +x_122 = l_Lean_Meta_mkCongrArg(x_121, x_119, x_5, x_6, x_7, x_8, x_120); +if (lean_obj_tag(x_122) == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -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); -x_130 = lean_array_push(x_79, x_83); -x_131 = l_Lean_MVarId_acyclic_go___closed__36; +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; +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = l_Lean_MVarId_acyclic_go___closed__34; +x_126 = lean_array_push(x_125, x_96); +x_127 = lean_array_push(x_126, x_123); +x_128 = l_Lean_MVarId_acyclic_go___closed__33; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_132 = l_Lean_Meta_mkAppM(x_131, x_130, x_5, x_6, x_7, x_8, x_129); -if (lean_obj_tag(x_132) == 0) +x_129 = l_Lean_Meta_mkAppM(x_128, x_127, x_5, x_6, x_7, x_8, x_124); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); -lean_inc(x_1); -x_135 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_134); -if (lean_obj_tag(x_135) == 0) +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = lean_array_push(x_81, x_85); +x_133 = l_Lean_MVarId_acyclic_go___closed__36; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_134 = l_Lean_Meta_mkAppM(x_133, x_132, x_5, x_6, x_7, x_8, x_131); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_135, 0); +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_138 = l_Lean_Expr_app___override(x_133, x_128); +lean_dec(x_134); +lean_inc(x_1); +x_137 = l_Lean_MVarId_getType(x_1, x_5, x_6, x_7, x_8, x_136); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_140 = l_Lean_Expr_app___override(x_135, x_130); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_139 = l_Lean_Meta_mkFalseElim(x_136, x_138, x_5, x_6, x_7, x_8, x_137); -if (lean_obj_tag(x_139) == 0) +x_141 = l_Lean_Meta_mkFalseElim(x_138, x_140, x_5, x_6, x_7, x_8, x_139); +if (lean_obj_tag(x_141) == 0) { -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; -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_140, x_5, x_6, x_7, x_8, x_141); -x_143 = lean_ctor_get(x_142, 1); +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; uint8_t x_151; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -lean_dec(x_142); -x_144 = l_Lean_MVarId_acyclic_go___closed__4; -x_145 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_144, x_5, x_6, x_7, x_8, x_143); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); -x_148 = l_Lean_MVarId_acyclic_go___closed__37; -x_149 = lean_unbox(x_146); -lean_dec(x_146); -if (x_149 == 0) +lean_dec(x_141); +x_144 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_142, x_5, x_6, x_7, x_8, x_143); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +x_146 = l_Lean_MVarId_acyclic_go___closed__4; +x_147 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_146, x_5, x_6, x_7, x_8, x_145); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +x_150 = l_Lean_MVarId_acyclic_go___closed__37; +x_151 = lean_unbox(x_148); +lean_dec(x_148); +if (x_151 == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_box(0); +lean_object* x_152; lean_object* x_153; +x_152 = lean_box(0); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_151 = lean_apply_6(x_148, x_150, x_5, x_6, x_7, x_8, x_147); -if (lean_obj_tag(x_151) == 0) +x_153 = lean_apply_6(x_150, x_152, x_5, x_6, x_7, x_8, x_149); +if (lean_obj_tag(x_153) == 0) { -uint8_t x_152; +uint8_t x_154; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) { -return x_151; +return x_153; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_151, 0); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_151); -x_155 = lean_alloc_ctor(0, 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; lean_object* x_157; -x_156 = lean_ctor_get(x_151, 0); +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_153, 0); +x_156 = lean_ctor_get(x_153, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_151, 1); -lean_inc(x_157); -lean_dec(x_151); -x_10 = x_156; -x_11 = x_157; -goto block_78; +lean_inc(x_155); +lean_dec(x_153); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_158 = l_Lean_MVarId_acyclic_go___closed__39; -x_159 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_144, x_158, x_5, x_6, x_7, x_8, x_147); -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_153, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_153, 1); +lean_inc(x_159); +lean_dec(x_153); +x_10 = x_158; +x_11 = x_159; +goto block_80; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_160 = l_Lean_MVarId_acyclic_go___closed__39; +x_161 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_146, x_160, x_5, x_6, x_7, x_8, x_149); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_162 = lean_apply_6(x_148, x_160, x_5, x_6, x_7, x_8, x_161); -if (lean_obj_tag(x_162) == 0) +x_164 = lean_apply_6(x_150, x_162, x_5, x_6, x_7, x_8, x_163); +if (lean_obj_tag(x_164) == 0) { -uint8_t x_163; +uint8_t x_165; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) +x_165 = !lean_is_exclusive(x_164); +if (x_165 == 0) { -return x_162; +return x_164; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_162, 0); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_162); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; -} -} -else -{ -lean_object* x_167; lean_object* x_168; -x_167 = lean_ctor_get(x_162, 0); +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_164, 0); +x_167 = lean_ctor_get(x_164, 1); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 1); -lean_inc(x_168); -lean_dec(x_162); -x_10 = x_167; -x_11 = x_168; -goto block_78; -} +lean_inc(x_166); +lean_dec(x_164); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } else { lean_object* x_169; lean_object* x_170; -lean_dec(x_1); -x_169 = lean_ctor_get(x_139, 0); +x_169 = lean_ctor_get(x_164, 0); lean_inc(x_169); -x_170 = lean_ctor_get(x_139, 1); +x_170 = lean_ctor_get(x_164, 1); lean_inc(x_170); -lean_dec(x_139); +lean_dec(x_164); x_10 = x_169; x_11 = x_170; -goto block_78; +goto block_80; +} } } else { lean_object* x_171; lean_object* x_172; -lean_dec(x_133); -lean_dec(x_128); lean_dec(x_1); -x_171 = lean_ctor_get(x_135, 0); +x_171 = lean_ctor_get(x_141, 0); lean_inc(x_171); -x_172 = lean_ctor_get(x_135, 1); +x_172 = lean_ctor_get(x_141, 1); lean_inc(x_172); -lean_dec(x_135); +lean_dec(x_141); x_10 = x_171; x_11 = x_172; -goto block_78; +goto block_80; } } else { lean_object* x_173; lean_object* x_174; -lean_dec(x_128); +lean_dec(x_135); +lean_dec(x_130); lean_dec(x_1); -x_173 = lean_ctor_get(x_132, 0); +x_173 = lean_ctor_get(x_137, 0); lean_inc(x_173); -x_174 = lean_ctor_get(x_132, 1); +x_174 = lean_ctor_get(x_137, 1); lean_inc(x_174); -lean_dec(x_132); +lean_dec(x_137); x_10 = x_173; x_11 = x_174; -goto block_78; +goto block_80; } } else { lean_object* x_175; lean_object* x_176; -lean_dec(x_83); +lean_dec(x_130); lean_dec(x_1); -x_175 = lean_ctor_get(x_127, 0); +x_175 = lean_ctor_get(x_134, 0); lean_inc(x_175); -x_176 = lean_ctor_get(x_127, 1); +x_176 = lean_ctor_get(x_134, 1); lean_inc(x_176); -lean_dec(x_127); +lean_dec(x_134); x_10 = x_175; x_11 = x_176; -goto block_78; +goto block_80; } } else { lean_object* x_177; lean_object* x_178; -lean_dec(x_94); -lean_dec(x_83); +lean_dec(x_85); lean_dec(x_1); -x_177 = lean_ctor_get(x_120, 0); +x_177 = lean_ctor_get(x_129, 0); lean_inc(x_177); -x_178 = lean_ctor_get(x_120, 1); +x_178 = lean_ctor_get(x_129, 1); lean_inc(x_178); -lean_dec(x_120); +lean_dec(x_129); x_10 = x_177; x_11 = x_178; -goto block_78; +goto block_80; } } else { lean_object* x_179; lean_object* x_180; -lean_dec(x_94); -lean_dec(x_83); +lean_dec(x_96); +lean_dec(x_85); lean_dec(x_1); -x_179 = lean_ctor_get(x_116, 0); +x_179 = lean_ctor_get(x_122, 0); lean_inc(x_179); -x_180 = lean_ctor_get(x_116, 1); +x_180 = lean_ctor_get(x_122, 1); lean_inc(x_180); -lean_dec(x_116); +lean_dec(x_122); x_10 = x_179; x_11 = x_180; -goto block_78; +goto block_80; } } else { -uint8_t x_181; -lean_dec(x_114); -lean_dec(x_94); -lean_dec(x_83); +lean_object* x_181; lean_object* x_182; +lean_dec(x_96); +lean_dec(x_85); +lean_dec(x_1); +x_181 = lean_ctor_get(x_118, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_118, 1); +lean_inc(x_182); +lean_dec(x_118); +x_10 = x_181; +x_11 = x_182; +goto block_80; +} +} +else +{ +uint8_t x_183; +lean_dec(x_116); +lean_dec(x_96); +lean_dec(x_85); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_181 = !lean_is_exclusive(x_112); -if (x_181 == 0) +x_183 = !lean_is_exclusive(x_114); +if (x_183 == 0) { -lean_object* x_182; uint8_t x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_112, 0); -lean_dec(x_182); -x_183 = 0; -x_184 = lean_box(x_183); -lean_ctor_set(x_112, 0, x_184); -return x_112; +lean_object* x_184; uint8_t x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_114, 0); +lean_dec(x_184); +x_185 = 0; +x_186 = lean_box(x_185); +lean_ctor_set(x_114, 0, x_186); +return x_114; } else { -lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; -x_185 = lean_ctor_get(x_112, 1); -lean_inc(x_185); -lean_dec(x_112); -x_186 = 0; -x_187 = lean_box(x_186); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_185); -return x_188; +lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +x_187 = lean_ctor_get(x_114, 1); +lean_inc(x_187); +lean_dec(x_114); +x_188 = 0; +x_189 = lean_box(x_188); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_187); +return x_190; } } } else { -lean_object* x_189; lean_object* x_190; -lean_dec(x_94); -lean_dec(x_83); -lean_dec(x_2); -lean_dec(x_1); -x_189 = lean_ctor_get(x_112, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_112, 1); -lean_inc(x_190); -lean_dec(x_112); -x_10 = x_189; -x_11 = x_190; -goto block_78; -} -} -else -{ lean_object* x_191; lean_object* x_192; -lean_dec(x_83); +lean_dec(x_96); +lean_dec(x_85); lean_dec(x_2); lean_dec(x_1); -x_191 = lean_ctor_get(x_89, 0); +x_191 = lean_ctor_get(x_114, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_89, 1); +x_192 = lean_ctor_get(x_114, 1); lean_inc(x_192); -lean_dec(x_89); +lean_dec(x_114); x_10 = x_191; x_11 = x_192; -goto block_78; +goto block_80; } } else { lean_object* x_193; lean_object* x_194; -lean_dec(x_83); +lean_dec(x_85); lean_dec(x_2); lean_dec(x_1); -x_193 = lean_ctor_get(x_86, 0); +x_193 = lean_ctor_get(x_91, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_86, 1); +x_194 = lean_ctor_get(x_91, 1); lean_inc(x_194); -lean_dec(x_86); +lean_dec(x_91); x_10 = x_193; x_11 = x_194; -goto block_78; +goto block_80; } } else { lean_object* x_195; lean_object* x_196; +lean_dec(x_85); +lean_dec(x_2); +lean_dec(x_1); +x_195 = lean_ctor_get(x_88, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_88, 1); +lean_inc(x_196); +lean_dec(x_88); +x_10 = x_195; +x_11 = x_196; +goto block_80; +} +} +else +{ +lean_object* x_197; lean_object* x_198; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_195 = lean_ctor_get(x_82, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_82, 1); -lean_inc(x_196); -lean_dec(x_82); -x_10 = x_195; -x_11 = x_196; -goto block_78; +x_197 = lean_ctor_get(x_84, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_84, 1); +lean_inc(x_198); +lean_dec(x_84); +x_10 = x_197; +x_11 = x_198; +goto block_80; } -block_78: +block_80: { uint8_t x_12; -x_12 = l_Lean_Exception_isRuntime(x_10); +x_12 = l_Lean_Exception_isInterrupt(x_10); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = l_Lean_MVarId_acyclic_go___closed__4; -x_14 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_13, x_5, x_6, x_7, x_8, x_11); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_13; +x_13 = l_Lean_Exception_isRuntime(x_10); +if (x_13 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Lean_MVarId_acyclic_go___closed__5; -x_19 = lean_unbox(x_16); -lean_dec(x_16); -if (x_19 == 0) +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l_Lean_MVarId_acyclic_go___closed__4; +x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_14, x_5, x_6, x_7, x_8, x_11); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_20; lean_object* x_21; -lean_free_object(x_14); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = l_Lean_MVarId_acyclic_go___closed__5; +x_20 = lean_unbox(x_17); +lean_dec(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_free_object(x_15); lean_dec(x_10); -x_20 = lean_box(0); -x_21 = lean_apply_6(x_18, x_20, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_21) == 0) +x_21 = lean_box(0); +x_22 = lean_apply_6(x_19, x_21, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_22) == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -return x_21; +return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 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_26; -x_26 = !lean_is_exclusive(x_21); -if (x_26 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) { -return x_21; +return x_22; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_21); -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; +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } else { -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_30 = l_Lean_Exception_toMessageData(x_10); -x_31 = l_Lean_MVarId_acyclic_go___closed__7; -lean_ctor_set_tag(x_14, 6); -lean_ctor_set(x_14, 1, x_30); -lean_ctor_set(x_14, 0, x_31); -x_32 = l_Lean_MVarId_acyclic_go___closed__9; -x_33 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_33, 0, x_14); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_13, x_33, x_5, x_6, x_7, x_8, x_17); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); +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; +x_31 = l_Lean_Exception_toMessageData(x_10); +x_32 = l_Lean_MVarId_acyclic_go___closed__7; +lean_ctor_set_tag(x_15, 6); +lean_ctor_set(x_15, 1, x_31); +lean_ctor_set(x_15, 0, x_32); +x_33 = l_Lean_MVarId_acyclic_go___closed__9; +x_34 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_34, 0, x_15); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_14, x_34, x_5, x_6, x_7, x_8, x_18); +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_apply_6(x_18, x_35, x_5, x_6, x_7, x_8, x_36); -if (lean_obj_tag(x_37) == 0) +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_apply_6(x_19, x_36, x_5, x_6, x_7, x_8, x_37); +if (lean_obj_tag(x_38) == 0) { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -return x_37; +return x_38; } else { -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_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_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } else { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_37); -if (x_42 == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_38); +if (x_43 == 0) { -return x_37; +return x_38; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_38, 0); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_37); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_dec(x_38); +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 { -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_14, 0); -x_47 = lean_ctor_get(x_14, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_47 = lean_ctor_get(x_15, 0); +x_48 = lean_ctor_get(x_15, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_14); -x_48 = l_Lean_MVarId_acyclic_go___closed__5; -x_49 = lean_unbox(x_46); -lean_dec(x_46); -if (x_49 == 0) +lean_dec(x_15); +x_49 = l_Lean_MVarId_acyclic_go___closed__5; +x_50 = lean_unbox(x_47); +lean_dec(x_47); +if (x_50 == 0) { -lean_object* x_50; lean_object* x_51; +lean_object* x_51; lean_object* x_52; lean_dec(x_10); -x_50 = lean_box(0); -x_51 = lean_apply_6(x_48, x_50, x_5, x_6, x_7, x_8, x_47); -if (lean_obj_tag(x_51) == 0) +x_51 = lean_box(0); +x_52 = lean_apply_6(x_49, x_51, x_5, x_6, x_7, x_8, x_48); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); 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; +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_51); - x_54 = lean_box(0); + lean_dec_ref(x_52); + x_55 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 2, 0); } else { - x_55 = x_54; + x_56 = x_55; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_51, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_51, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_52, 0); lean_inc(x_57); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_58 = x_51; +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_59 = x_52; } else { - lean_dec_ref(x_51); - x_58 = lean_box(0); + lean_dec_ref(x_52); + x_59 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); } else { - x_59 = x_58; + x_60 = x_59; } -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; } } else { -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; -x_60 = l_Lean_Exception_toMessageData(x_10); -x_61 = l_Lean_MVarId_acyclic_go___closed__7; -x_62 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_MVarId_acyclic_go___closed__9; -x_64 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_13, x_64, x_5, x_6, x_7, x_8, x_47); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +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_61 = l_Lean_Exception_toMessageData(x_10); +x_62 = l_Lean_MVarId_acyclic_go___closed__7; +x_63 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +x_64 = l_Lean_MVarId_acyclic_go___closed__9; +x_65 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_14, x_65, x_5, x_6, x_7, x_8, x_48); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_apply_6(x_48, x_66, x_5, x_6, x_7, x_8, x_67); -if (lean_obj_tag(x_68) == 0) +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_apply_6(x_49, x_67, x_5, x_6, x_7, x_8, x_68); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; +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; } else { - lean_dec_ref(x_68); - x_71 = lean_box(0); + lean_dec_ref(x_69); + x_72 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_71; + x_73 = x_72; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +return x_73; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_68, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 0); lean_inc(x_74); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_75 = x_68; +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_76 = x_69; } else { - lean_dec_ref(x_68); - x_75 = lean_box(0); + lean_dec_ref(x_69); + x_76 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_77 = x_76; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return 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_77; +lean_object* x_78; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_10); -lean_ctor_set(x_77, 1, x_11); -return x_77; +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_10); +lean_ctor_set(x_78, 1, x_11); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_10); +lean_ctor_set(x_79, 1, x_11); +return x_79; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Apply.c b/stage0/stdlib/Lean/Meta/Tactic/Apply.c index b64ba0e57a..06625de03d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Apply.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Apply.c @@ -38,6 +38,7 @@ static lean_object* l_Lean_MVarId_nthConstructor___lambda__2___closed__4; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_apply_go(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___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1082,26 +1083,26 @@ x_15 = lean_unsigned_to_nat(0u); x_16 = lean_nat_dec_eq(x_9, x_15); 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_85; uint8_t x_86; +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_30; lean_object* x_67; uint8_t x_68; x_17 = lean_unsigned_to_nat(1u); x_18 = lean_nat_sub(x_9, x_17); lean_dec(x_9); x_19 = lean_nat_sub(x_8, x_18); x_20 = lean_nat_sub(x_19, x_17); lean_dec(x_19); -x_85 = lean_array_get_size(x_4); -x_86 = lean_nat_dec_lt(x_20, x_85); -lean_dec(x_85); -if (x_86 == 0) +x_67 = lean_array_get_size(x_4); +x_68 = lean_nat_dec_lt(x_20, x_67); +lean_dec(x_67); +if (x_68 == 0) { -uint8_t x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; -x_87 = l_Lean_instInhabitedBinderInfo; -x_88 = lean_box(x_87); -x_89 = l___private_Init_GetElem_0__outOfBounds___rarg(x_88); -x_90 = lean_unbox(x_89); -lean_dec(x_89); -x_91 = l_Lean_BinderInfo_isInstImplicit(x_90); -if (x_91 == 0) +uint8_t x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; uint8_t x_73; +x_69 = l_Lean_instInhabitedBinderInfo; +x_70 = lean_box(x_69); +x_71 = l___private_Init_GetElem_0__outOfBounds___rarg(x_70); +x_72 = lean_unbox(x_71); +lean_dec(x_71); +x_73 = l_Lean_BinderInfo_isInstImplicit(x_72); +if (x_73 == 0) { lean_dec(x_20); x_9 = x_18; @@ -1109,35 +1110,35 @@ goto _start; } else { -uint8_t x_93; -x_93 = lean_nat_dec_lt(x_20, x_7); -if (x_93 == 0) +uint8_t x_75; +x_75 = lean_nat_dec_lt(x_20, x_7); +if (x_75 == 0) { -lean_object* x_94; lean_object* x_95; +lean_object* x_76; lean_object* x_77; lean_dec(x_20); -x_94 = l_Lean_instInhabitedExpr; -x_95 = l___private_Init_GetElem_0__outOfBounds___rarg(x_94); -x_21 = x_95; -goto block_84; +x_76 = l_Lean_instInhabitedExpr; +x_77 = l___private_Init_GetElem_0__outOfBounds___rarg(x_76); +x_30 = x_77; +goto block_66; } else { -lean_object* x_96; -x_96 = lean_array_fget(x_3, x_20); +lean_object* x_78; +x_78 = lean_array_fget(x_3, x_20); lean_dec(x_20); -x_21 = x_96; -goto block_84; +x_30 = x_78; +goto block_66; } } } else { -lean_object* x_97; uint8_t x_98; uint8_t x_99; -x_97 = lean_array_fget(x_4, x_20); -x_98 = lean_unbox(x_97); -lean_dec(x_97); -x_99 = l_Lean_BinderInfo_isInstImplicit(x_98); -if (x_99 == 0) +lean_object* x_79; uint8_t x_80; uint8_t x_81; +x_79 = lean_array_fget(x_4, x_20); +x_80 = lean_unbox(x_79); +lean_dec(x_79); +x_81 = l_Lean_BinderInfo_isInstImplicit(x_80); +if (x_81 == 0) { lean_dec(x_20); x_9 = x_18; @@ -1145,220 +1146,202 @@ goto _start; } else { -uint8_t x_101; -x_101 = lean_nat_dec_lt(x_20, x_7); -if (x_101 == 0) +uint8_t x_83; +x_83 = lean_nat_dec_lt(x_20, x_7); +if (x_83 == 0) { -lean_object* x_102; lean_object* x_103; +lean_object* x_84; lean_object* x_85; lean_dec(x_20); -x_102 = l_Lean_instInhabitedExpr; -x_103 = l___private_Init_GetElem_0__outOfBounds___rarg(x_102); -x_21 = x_103; -goto block_84; +x_84 = l_Lean_instInhabitedExpr; +x_85 = l___private_Init_GetElem_0__outOfBounds___rarg(x_84); +x_30 = x_85; +goto block_66; } else { -lean_object* x_104; -x_104 = lean_array_fget(x_3, x_20); +lean_object* x_86; +x_86 = lean_array_fget(x_3, x_20); lean_dec(x_20); -x_21 = x_104; -goto block_84; +x_30 = x_86; +goto block_66; } } } -block_84: +block_29: { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_inc(x_21); -x_22 = l_Lean_Expr_mvarId_x21(x_21); -x_23 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1(x_22, x_10, x_11, x_12, x_13, x_14); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -if (x_5 == 0) +uint8_t x_23; +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -uint8_t x_80; -x_80 = lean_unbox(x_24); -lean_dec(x_24); -if (x_80 == 0) +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) { -lean_object* x_81; -x_81 = lean_box(0); -x_26 = x_81; -goto block_79; +if (x_6 == 0) +{ +lean_object* x_25; +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_2); +lean_dec(x_1); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_22); +return x_25; } else { lean_dec(x_21); x_9 = x_18; -x_14 = x_25; +x_14 = x_22; goto _start; } } else { -lean_object* x_83; -lean_dec(x_24); -x_83 = lean_box(0); -x_26 = x_83; -goto block_79; -} -block_79: -{ lean_object* x_27; -lean_dec(x_26); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_21); -x_27 = lean_infer_type(x_21, x_10, x_11, x_12, x_13, x_25); -if (lean_obj_tag(x_27) == 0) +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_2); +lean_dec(x_1); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +else { -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_box(0); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_31 = l_Lean_Meta_synthInstance(x_28, x_30, x_10, x_11, x_12, x_13, x_29); -if (lean_obj_tag(x_31) == 0) +lean_object* x_28; +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_21); +lean_ctor_set(x_28, 1, x_22); +return x_28; +} +} +block_66: { -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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_inc(x_30); +x_31 = l_Lean_Expr_mvarId_x21(x_30); +x_32 = l_Lean_MVarId_isAssigned___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1(x_31, x_10, x_11, x_12, x_13, x_14); +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_dec(x_31); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +if (x_5 == 0) +{ +uint8_t x_62; +x_62 = lean_unbox(x_33); +lean_dec(x_33); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_box(0); +x_35 = x_63; +goto block_61; +} +else +{ +lean_dec(x_30); +x_9 = x_18; +x_14 = x_34; +goto _start; +} +} +else +{ +lean_object* x_65; +lean_dec(x_33); +x_65 = lean_box(0); +x_35 = x_65; +goto block_61; +} +block_61: +{ +lean_object* x_36; +lean_dec(x_35); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_34 = l_Lean_Meta_isExprDefEq(x_21, x_32, x_10, x_11, x_12, x_13, x_33); -if (lean_obj_tag(x_34) == 0) +lean_inc(x_30); +x_36 = lean_infer_type(x_30, x_10, x_11, x_12, x_13, x_34); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_34, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -lean_dec(x_34); -x_38 = l_Nat_forM_loop___at_Lean_Meta_synthAppInstances___spec__1___closed__4; +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_40 = l_Lean_Meta_synthInstance(x_37, x_39, x_10, x_11, x_12, x_13, x_38); +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, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_43 = l_Lean_Meta_isExprDefEq(x_30, x_41, x_10, x_11, x_12, x_13, x_42); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_unbox(x_44); +lean_dec(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; +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = l_Nat_forM_loop___at_Lean_Meta_synthAppInstances___spec__1___closed__4; lean_inc(x_12); lean_inc(x_10); lean_inc(x_2); lean_inc(x_1); -x_39 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_38, x_10, x_11, x_12, x_13, x_37); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -x_43 = l_Lean_Exception_isRuntime(x_41); -if (x_43 == 0) -{ -if (x_6 == 0) -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_39; -} -else -{ -lean_free_object(x_39); -lean_dec(x_41); -x_9 = x_18; -x_14 = x_42; -goto _start; -} -} -else -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_39; -} -} -else -{ -lean_object* x_45; lean_object* x_46; uint8_t 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 = l_Lean_Exception_isRuntime(x_45); -if (x_47 == 0) -{ -if (x_6 == 0) -{ -lean_object* x_48; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -else -{ -lean_dec(x_45); -x_9 = x_18; -x_14 = x_46; -goto _start; -} -} -else -{ -lean_object* x_50; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_45); -lean_ctor_set(x_50, 1, x_46); -return x_50; -} -} +x_48 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_47, x_10, x_11, x_12, x_13, x_46); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_21 = x_49; +x_22 = x_50; +goto block_29; } else { lean_object* x_51; -x_51 = lean_ctor_get(x_34, 1); +x_51 = lean_ctor_get(x_43, 1); lean_inc(x_51); -lean_dec(x_34); +lean_dec(x_43); x_9 = x_18; x_14 = x_51; goto _start; @@ -1366,18 +1349,35 @@ goto _start; } else { -uint8_t x_53; -x_53 = !lean_is_exclusive(x_34); -if (x_53 == 0) +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_43, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_43, 1); +lean_inc(x_54); +lean_dec(x_43); +x_21 = x_53; +x_22 = x_54; +goto block_29; +} +} +else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_34, 0); -x_55 = lean_ctor_get(x_34, 1); -x_56 = l_Lean_Exception_isRuntime(x_54); -if (x_56 == 0) -{ -if (x_6 == 0) +lean_object* x_55; lean_object* x_56; +lean_dec(x_30); +x_55 = lean_ctor_get(x_40, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_40, 1); +lean_inc(x_56); +lean_dec(x_40); +x_21 = x_55; +x_22 = x_56; +goto block_29; +} +} +else { +uint8_t x_57; +lean_dec(x_30); lean_dec(x_18); lean_dec(x_13); lean_dec(x_12); @@ -1385,206 +1385,23 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); lean_dec(x_1); -return x_34; +x_57 = !lean_is_exclusive(x_36); +if (x_57 == 0) +{ +return x_36; } else { -lean_free_object(x_34); -lean_dec(x_54); -x_9 = x_18; -x_14 = x_55; -goto _start; -} -} -else -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_34; -} -} -else -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_34, 0); -x_59 = lean_ctor_get(x_34, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_36, 0); +x_59 = lean_ctor_get(x_36, 1); lean_inc(x_59); lean_inc(x_58); -lean_dec(x_34); -x_60 = l_Lean_Exception_isRuntime(x_58); -if (x_60 == 0) -{ -if (x_6 == 0) -{ -lean_object* x_61; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -else -{ -lean_dec(x_58); -x_9 = x_18; -x_14 = x_59; -goto _start; -} -} -else -{ -lean_object* x_63; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_58); -lean_ctor_set(x_63, 1, x_59); -return x_63; -} -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_21); -x_64 = !lean_is_exclusive(x_31); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_31, 0); -x_66 = lean_ctor_get(x_31, 1); -x_67 = l_Lean_Exception_isRuntime(x_65); -if (x_67 == 0) -{ -if (x_6 == 0) -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_31; -} -else -{ -lean_free_object(x_31); -lean_dec(x_65); -x_9 = x_18; -x_14 = x_66; -goto _start; -} -} -else -{ -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_31; -} -} -else -{ -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_31, 0); -x_70 = lean_ctor_get(x_31, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_31); -x_71 = l_Lean_Exception_isRuntime(x_69); -if (x_71 == 0) -{ -if (x_6 == 0) -{ -lean_object* x_72; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -else -{ -lean_dec(x_69); -x_9 = x_18; -x_14 = x_70; -goto _start; -} -} -else -{ -lean_object* x_74; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_69); -lean_ctor_set(x_74, 1, x_70); -return x_74; -} -} -} -} -else -{ -uint8_t x_75; -lean_dec(x_21); -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_2); -lean_dec(x_1); -x_75 = !lean_is_exclusive(x_27); -if (x_75 == 0) -{ -return x_27; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_27, 0); -x_77 = lean_ctor_get(x_27, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_27); -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_dec(x_36); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } @@ -1592,7 +1409,7 @@ return x_78; } else { -lean_object* x_105; lean_object* x_106; +lean_object* x_87; lean_object* x_88; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -1600,11 +1417,11 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_14); -return x_106; +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_14); +return x_88; } } } @@ -6161,39 +5978,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -6208,55 +6029,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } @@ -7344,39 +7193,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -7391,55 +7244,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assert.c b/stage0/stdlib/Lean/Meta/Tactic/Assert.c index 9ba3a4bde9..2a979e34f3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assert.c @@ -18,6 +18,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_obj lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_assert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_MVarId_assertHypotheses___closed__2; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_revertAfter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3606,37 +3607,41 @@ if (x_47 == 0) lean_object* x_48; lean_object* x_49; uint8_t x_50; x_48 = lean_ctor_get(x_32, 0); x_49 = lean_ctor_get(x_32, 1); -x_50 = l_Lean_Exception_isRuntime(x_48); +x_50 = l_Lean_Exception_isInterrupt(x_48); if (x_50 == 0) { -lean_object* x_51; uint8_t x_52; +uint8_t x_51; +x_51 = l_Lean_Exception_isRuntime(x_48); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; lean_free_object(x_32); lean_dec(x_48); -x_51 = l_Lean_Meta_SavedState_restore(x_30, x_5, x_6, x_7, x_8, x_49); +x_52 = l_Lean_Meta_SavedState_restore(x_30, x_5, x_6, x_7, x_8, x_49); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_30); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) { -lean_object* x_53; -x_53 = lean_ctor_get(x_51, 0); -lean_dec(x_53); -lean_ctor_set(x_51, 0, x_24); -return x_51; +lean_object* x_54; +x_54 = lean_ctor_get(x_52, 0); +lean_dec(x_54); +lean_ctor_set(x_52, 0, x_24); +return x_52; } else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_24); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_24); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } else @@ -3652,90 +3657,120 @@ return x_32; } else { -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_32, 0); -x_57 = lean_ctor_get(x_32, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_32); -x_58 = l_Lean_Exception_isRuntime(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_56); -x_59 = l_Lean_Meta_SavedState_restore(x_30, x_5, x_6, x_7, x_8, x_57); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_30); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_61 = x_59; -} else { - lean_dec_ref(x_59); - x_61 = lean_box(0); -} -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 2, 0); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_24); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -else -{ -lean_object* x_63; lean_dec(x_30); lean_dec(x_24); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_56); -lean_ctor_set(x_63, 1, x_57); -return x_63; +return x_32; +} +} +else +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = lean_ctor_get(x_32, 0); +x_58 = lean_ctor_get(x_32, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_32); +x_59 = l_Lean_Exception_isInterrupt(x_57); +if (x_59 == 0) +{ +uint8_t x_60; +x_60 = l_Lean_Exception_isRuntime(x_57); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_57); +x_61 = l_Lean_Meta_SavedState_restore(x_30, x_5, x_6, x_7, x_8, x_58); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_30); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_63 = x_61; +} else { + lean_dec_ref(x_61); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_24); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +else +{ +lean_object* x_65; +lean_dec(x_30); +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_57); +lean_ctor_set(x_65, 1, x_58); +return x_65; +} +} +else +{ +lean_object* x_66; +lean_dec(x_30); +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_57); +lean_ctor_set(x_66, 1, x_58); +return x_66; } } } } else { -uint8_t x_64; +uint8_t x_67; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_23); -if (x_64 == 0) +x_67 = !lean_is_exclusive(x_23); +if (x_67 == 0) { return x_23; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_23, 0); -x_66 = lean_ctor_get(x_23, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_23, 0); +x_69 = lean_ctor_get(x_23, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_23); -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; +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_68; +uint8_t x_71; lean_dec(x_14); lean_dec(x_11); lean_dec(x_8); @@ -3746,29 +3781,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_16); -if (x_68 == 0) +x_71 = !lean_is_exclusive(x_16); +if (x_71 == 0) { return x_16; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_16, 0); -x_70 = lean_ctor_get(x_16, 1); -lean_inc(x_70); -lean_inc(x_69); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_16, 0); +x_73 = lean_ctor_get(x_16, 1); +lean_inc(x_73); +lean_inc(x_72); lean_dec(x_16); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +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_72; +uint8_t x_75; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3777,23 +3812,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_10); -if (x_72 == 0) +x_75 = !lean_is_exclusive(x_10); +if (x_75 == 0) { return x_10; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_10, 0); -x_74 = lean_ctor_get(x_10, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_10, 0); +x_77 = lean_ctor_get(x_10, 1); +lean_inc(x_77); +lean_inc(x_76); lean_dec(x_10); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +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; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Backtrack.c b/stage0/stdlib/Lean/Meta/Tactic/Backtrack.c index 564490c30c..537f3fadef 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Backtrack.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Backtrack.c @@ -34,6 +34,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_B static lean_object* l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__10___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_processIndependentGoals___lambda__1___closed__6; double lean_float_div(double, double); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Tactic_Backtrack_Backtrack_tryAllM(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__6___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_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2283,39 +2284,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -2330,55 +2335,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } @@ -3909,82 +3942,86 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; uint8_t x_24; x_22 = lean_ctor_get(x_20, 0); x_23 = lean_ctor_get(x_20, 1); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_free_object(x_20); lean_dec(x_22); -x_25 = lean_ctor_get(x_4, 3); -lean_inc(x_25); +x_26 = lean_ctor_get(x_4, 3); +lean_inc(x_26); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_2); -x_26 = lean_apply_6(x_25, x_2, x_10, x_11, x_12, x_13, x_23); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); +x_27 = lean_apply_6(x_26, x_2, x_10, x_11, x_12, x_13, x_23); if (lean_obj_tag(x_27) == 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; uint8_t x_34; lean_object* x_35; lean_object* x_36; -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_8, x_29); +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; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_8, x_30); lean_dec(x_8); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_2); -lean_ctor_set(x_31, 1, x_9); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_2); +lean_ctor_set(x_32, 1, x_9); lean_inc(x_5); -x_32 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); -lean_closure_set(x_32, 0, x_4); -lean_closure_set(x_32, 1, x_5); -lean_closure_set(x_32, 2, x_6); -lean_closure_set(x_32, 3, x_7); -lean_closure_set(x_32, 4, x_30); -lean_closure_set(x_32, 5, x_3); -lean_closure_set(x_32, 6, x_31); -x_33 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__1; -x_34 = 1; -x_35 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; -x_36 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_33, x_32, x_34, x_35, x_10, x_11, x_12, x_13, x_28); -return x_36; +x_33 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); +lean_closure_set(x_33, 0, x_4); +lean_closure_set(x_33, 1, x_5); +lean_closure_set(x_33, 2, x_6); +lean_closure_set(x_33, 3, x_7); +lean_closure_set(x_33, 4, x_31); +lean_closure_set(x_33, 5, x_3); +lean_closure_set(x_33, 6, x_32); +x_34 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__1; +x_35 = 1; +x_36 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_37 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_34, x_33, x_35, x_36, x_10, x_11, x_12, x_13, x_29); +return x_37; } else { -lean_object* x_37; lean_object* x_38; 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_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; lean_object* x_45; lean_dec(x_2); -x_37 = lean_ctor_get(x_26, 1); -lean_inc(x_37); -lean_dec(x_26); -x_38 = lean_ctor_get(x_27, 0); +x_38 = lean_ctor_get(x_27, 1); lean_inc(x_38); lean_dec(x_27); -x_39 = l_List_appendTR___rarg(x_38, x_3); +x_39 = lean_ctor_get(x_28, 0); +lean_inc(x_39); +lean_dec(x_28); +x_40 = l_List_appendTR___rarg(x_39, x_3); lean_inc(x_5); -x_40 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); -lean_closure_set(x_40, 0, x_4); -lean_closure_set(x_40, 1, x_5); -lean_closure_set(x_40, 2, x_6); -lean_closure_set(x_40, 3, x_7); -lean_closure_set(x_40, 4, x_8); -lean_closure_set(x_40, 5, x_39); -lean_closure_set(x_40, 6, x_9); -x_41 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__2; -x_42 = 1; -x_43 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; -x_44 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_41, x_40, x_42, x_43, x_10, x_11, x_12, x_13, x_37); -return x_44; +x_41 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); +lean_closure_set(x_41, 0, x_4); +lean_closure_set(x_41, 1, x_5); +lean_closure_set(x_41, 2, x_6); +lean_closure_set(x_41, 3, x_7); +lean_closure_set(x_41, 4, x_8); +lean_closure_set(x_41, 5, x_40); +lean_closure_set(x_41, 6, x_9); +x_42 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__2; +x_43 = 1; +x_44 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_45 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_42, x_41, x_43, x_44, x_10, x_11, x_12, x_13, x_38); +return x_45; } } else { -uint8_t x_45; +uint8_t x_46; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -3997,23 +4034,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_45 = !lean_is_exclusive(x_26); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_27); +if (x_46 == 0) { -return x_26; +return x_27; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_26, 0); -x_47 = lean_ctor_get(x_26, 1); +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_inc(x_46); -lean_dec(x_26); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +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); +return x_49; } } } @@ -4036,87 +4073,108 @@ return x_20; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_20, 0); -x_50 = lean_ctor_get(x_20, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_20); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_20; +} +} +else { -lean_object* x_52; lean_object* x_53; -lean_dec(x_49); -x_52 = lean_ctor_get(x_4, 3); -lean_inc(x_52); +lean_object* x_50; lean_object* x_51; uint8_t 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 = l_Lean_Exception_isInterrupt(x_50); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = l_Lean_Exception_isRuntime(x_50); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_50); +x_54 = lean_ctor_get(x_4, 3); +lean_inc(x_54); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_2); -x_53 = lean_apply_6(x_52, x_2, x_10, x_11, x_12, x_13, x_50); -if (lean_obj_tag(x_53) == 0) +x_55 = lean_apply_6(x_54, x_2, x_10, x_11, x_12, x_13, x_51); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) +lean_object* x_56; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +if (lean_obj_tag(x_56) == 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; uint8_t x_61; lean_object* x_62; lean_object* x_63; -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_unsigned_to_nat(1u); -x_57 = lean_nat_add(x_8, 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; uint8_t x_63; lean_object* x_64; lean_object* x_65; +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_unsigned_to_nat(1u); +x_59 = lean_nat_add(x_8, x_58); lean_dec(x_8); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_2); -lean_ctor_set(x_58, 1, x_9); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_2); +lean_ctor_set(x_60, 1, x_9); lean_inc(x_5); -x_59 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); -lean_closure_set(x_59, 0, x_4); -lean_closure_set(x_59, 1, x_5); -lean_closure_set(x_59, 2, x_6); -lean_closure_set(x_59, 3, x_7); -lean_closure_set(x_59, 4, x_57); -lean_closure_set(x_59, 5, x_3); -lean_closure_set(x_59, 6, x_58); -x_60 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__1; -x_61 = 1; -x_62 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; -x_63 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_60, x_59, x_61, x_62, x_10, x_11, x_12, x_13, x_55); -return x_63; +x_61 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); +lean_closure_set(x_61, 0, x_4); +lean_closure_set(x_61, 1, x_5); +lean_closure_set(x_61, 2, x_6); +lean_closure_set(x_61, 3, x_7); +lean_closure_set(x_61, 4, x_59); +lean_closure_set(x_61, 5, x_3); +lean_closure_set(x_61, 6, x_60); +x_62 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__1; +x_63 = 1; +x_64 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_65 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_62, x_61, x_63, x_64, x_10, x_11, x_12, x_13, x_57); +return x_65; } else { -lean_object* x_64; 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; +lean_object* 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; lean_object* x_73; lean_dec(x_2); -x_64 = lean_ctor_get(x_53, 1); -lean_inc(x_64); -lean_dec(x_53); -x_65 = lean_ctor_get(x_54, 0); -lean_inc(x_65); -lean_dec(x_54); -x_66 = l_List_appendTR___rarg(x_65, x_3); +x_66 = lean_ctor_get(x_55, 1); +lean_inc(x_66); +lean_dec(x_55); +x_67 = lean_ctor_get(x_56, 0); +lean_inc(x_67); +lean_dec(x_56); +x_68 = l_List_appendTR___rarg(x_67, x_3); lean_inc(x_5); -x_67 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); -lean_closure_set(x_67, 0, x_4); -lean_closure_set(x_67, 1, x_5); -lean_closure_set(x_67, 2, x_6); -lean_closure_set(x_67, 3, x_7); -lean_closure_set(x_67, 4, x_8); -lean_closure_set(x_67, 5, x_66); -lean_closure_set(x_67, 6, x_9); -x_68 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__2; -x_69 = 1; -x_70 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; -x_71 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_68, x_67, x_69, x_70, x_10, x_11, x_12, x_13, x_64); -return x_71; +x_69 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); +lean_closure_set(x_69, 0, x_4); +lean_closure_set(x_69, 1, x_5); +lean_closure_set(x_69, 2, x_6); +lean_closure_set(x_69, 3, x_7); +lean_closure_set(x_69, 4, x_8); +lean_closure_set(x_69, 5, x_68); +lean_closure_set(x_69, 6, x_9); +x_70 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__2; +x_71 = 1; +x_72 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_73 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_70, x_69, x_71, x_72, x_10, x_11, x_12, x_13, x_66); +return x_73; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4129,31 +4187,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_72 = lean_ctor_get(x_53, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_53, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_74 = x_53; +x_74 = lean_ctor_get(x_55, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_55, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_76 = x_55; } else { - lean_dec_ref(x_53); - x_74 = lean_box(0); + lean_dec_ref(x_55); + x_76 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_74; + x_77 = x_76; } -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_73); -return x_75; +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } else { -lean_object* x_76; +lean_object* x_78; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4166,45 +4224,66 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_49); -lean_ctor_set(x_76, 1, x_50); -return x_76; +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_50); +lean_ctor_set(x_78, 1, x_51); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_50); +lean_ctor_set(x_79, 1, x_51); +return x_79; } } } } 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; uint8_t x_83; lean_object* x_84; lean_object* x_85; -x_77 = lean_ctor_get(x_15, 1); -lean_inc(x_77); +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; +x_80 = lean_ctor_get(x_15, 1); +lean_inc(x_80); lean_dec(x_15); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_8, x_78); +x_81 = lean_unsigned_to_nat(1u); +x_82 = lean_nat_add(x_8, x_81); lean_dec(x_8); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_2); -lean_ctor_set(x_80, 1, x_9); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_2); +lean_ctor_set(x_83, 1, x_9); lean_inc(x_5); -x_81 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); -lean_closure_set(x_81, 0, x_4); -lean_closure_set(x_81, 1, x_5); -lean_closure_set(x_81, 2, x_6); -lean_closure_set(x_81, 3, x_7); -lean_closure_set(x_81, 4, x_79); -lean_closure_set(x_81, 5, x_3); -lean_closure_set(x_81, 6, x_80); -x_82 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__3; -x_83 = 1; -x_84 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; -x_85 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_82, x_81, x_83, x_84, x_10, x_11, x_12, x_13, x_77); -return x_85; +x_84 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run), 12, 7); +lean_closure_set(x_84, 0, x_4); +lean_closure_set(x_84, 1, x_5); +lean_closure_set(x_84, 2, x_6); +lean_closure_set(x_84, 3, x_7); +lean_closure_set(x_84, 4, x_82); +lean_closure_set(x_84, 5, x_3); +lean_closure_set(x_84, 6, x_83); +x_85 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__7___closed__3; +x_86 = 1; +x_87 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_88 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_5, x_85, x_84, x_86, x_87, x_10, x_11, x_12, x_13, x_80); +return x_88; } } else { -uint8_t x_86; +uint8_t x_89; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4217,23 +4296,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_86 = !lean_is_exclusive(x_15); -if (x_86 == 0) +x_89 = !lean_is_exclusive(x_15); +if (x_89 == 0) { return x_15; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_15, 0); -x_88 = lean_ctor_get(x_15, 1); -lean_inc(x_88); -lean_inc(x_87); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_15, 0); +x_91 = lean_ctor_get(x_15, 1); +lean_inc(x_91); +lean_inc(x_90); lean_dec(x_15); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } @@ -4506,38 +4585,42 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; uint8_t x_25; x_23 = lean_ctor_get(x_18, 0); x_24 = lean_ctor_get(x_18, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_free_object(x_18); lean_inc(x_23); -x_26 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__10___boxed), 7, 1); -lean_closure_set(x_26, 0, x_23); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__11___boxed), 6, 1); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__10___boxed), 7, 1); lean_closure_set(x_27, 0, x_23); -x_28 = 1; -x_29 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +x_28 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__11___boxed), 6, 1); +lean_closure_set(x_28, 0, x_23); +x_29 = 1; +x_30 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_30 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__6(x_2, x_26, x_27, x_28, x_29, x_8, x_9, x_10, x_11, x_24); -if (lean_obj_tag(x_30) == 0) +x_31 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__6(x_2, x_27, x_28, x_29, x_30, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_30); -x_33 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__9(x_6, x_7, x_2, x_1, x_3, x_4, x_16, x_31, x_8, x_9, x_10, x_11, x_32); -return x_33; +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__9(x_6, x_7, x_2, x_1, x_3, x_4, x_16, x_32, x_8, x_9, x_10, x_11, x_33); +return x_34; } else { -uint8_t x_34; +uint8_t x_35; lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); @@ -4549,23 +4632,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) { -return x_30; +return x_31; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_30, 0); -x_36 = lean_ctor_get(x_30, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_30); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_dec(x_31); +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; } } } @@ -4587,79 +4670,63 @@ return x_18; } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_18, 0); -x_39 = lean_ctor_get(x_18, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_18); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) +lean_dec(x_16); +lean_dec(x_11); +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); +return x_18; +} +} +else { -lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; -lean_inc(x_38); -x_41 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__10___boxed), 7, 1); -lean_closure_set(x_41, 0, x_38); -x_42 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__11___boxed), 6, 1); -lean_closure_set(x_42, 0, x_38); -x_43 = 1; -x_44 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; +lean_object* x_39; lean_object* x_40; uint8_t 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 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +lean_inc(x_39); +x_43 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__10___boxed), 7, 1); +lean_closure_set(x_43, 0, x_39); +x_44 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__11___boxed), 6, 1); +lean_closure_set(x_44, 0, x_39); +x_45 = 1; +x_46 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_45 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__6(x_2, x_41, x_42, x_43, x_44, x_8, x_9, x_10, x_11, x_39); -if (lean_obj_tag(x_45) == 0) +x_47 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__6(x_2, x_43, x_44, x_45, x_46, x_8, x_9, x_10, x_11, x_40); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__9(x_6, x_7, x_2, x_1, x_3, x_4, x_16, x_46, x_8, x_9, x_10, x_11, x_47); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_16); -lean_dec(x_11); -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_49 = lean_ctor_get(x_45, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_45, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_51 = x_45; -} else { - lean_dec_ref(x_45); - 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); -return x_52; -} +lean_dec(x_47); +x_50 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___lambda__9(x_6, x_7, x_2, x_1, x_3, x_4, x_16, x_48, x_8, x_9, x_10, x_11, x_49); +return x_50; } else { -lean_object* x_53; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); @@ -4671,17 +4738,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_38); -lean_ctor_set(x_53, 1, x_39); -return x_53; +x_51 = lean_ctor_get(x_47, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_53 = x_47; +} else { + lean_dec_ref(x_47); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; +} +} +else +{ +lean_object* x_55; +lean_dec(x_16); +lean_dec(x_11); +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_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_39); +lean_ctor_set(x_55, 1, x_40); +return x_55; +} +} +else +{ +lean_object* x_56; +lean_dec(x_16); +lean_dec(x_11); +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_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_39); +lean_ctor_set(x_56, 1, x_40); +return x_56; } } } } else { -lean_object* x_54; lean_object* x_55; +lean_object* x_57; lean_object* x_58; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -4689,13 +4812,13 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_54 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___closed__2; -x_55 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_54, x_8, x_9, x_10, x_11, x_12); +x_57 = l___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___closed__2; +x_58 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_57, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -return x_55; +return x_58; } } } @@ -5212,25 +5335,29 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; uint8_t x_25; x_23 = lean_ctor_get(x_17, 0); x_24 = lean_ctor_get(x_17, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); +x_25 = l_Lean_Exception_isInterrupt(x_23); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_free_object(x_17); lean_dec(x_23); -x_26 = l_Lean_Meta_SavedState_restore(x_15, x_4, x_5, x_6, x_7, x_24); +x_27 = l_Lean_Meta_SavedState_restore(x_15, x_4, x_5, x_6, x_7, x_24); lean_dec(x_15); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_28, 0, x_12); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_29, 0, x_12); lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_28); +lean_ctor_set(x_2, 0, x_29); { lean_object* _tmp_1 = x_13; lean_object* _tmp_2 = x_2; -lean_object* _tmp_7 = x_27; +lean_object* _tmp_7 = x_28; x_2 = _tmp_1; x_3 = _tmp_2; x_8 = _tmp_7; @@ -5254,39 +5381,6 @@ return x_17; } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_17, 0); -x_31 = lean_ctor_get(x_17, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_17); -x_32 = l_Lean_Exception_isRuntime(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_dec(x_30); -x_33 = l_Lean_Meta_SavedState_restore(x_15, x_4, x_5, x_6, x_7, x_31); -lean_dec(x_15); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_35, 0, x_12); -lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_35); -{ -lean_object* _tmp_1 = x_13; -lean_object* _tmp_2 = x_2; -lean_object* _tmp_7 = x_34; -x_2 = _tmp_1; -x_3 = _tmp_2; -x_8 = _tmp_7; -} -goto _start; -} -else -{ -lean_object* x_37; lean_dec(x_15); lean_free_object(x_2); lean_dec(x_13); @@ -5297,111 +5391,208 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_30); -lean_ctor_set(x_37, 1, x_31); -return x_37; -} -} +return x_17; } } else { -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_38 = lean_ctor_get(x_2, 0); -x_39 = lean_ctor_get(x_2, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_2); -x_40 = l_Lean_Meta_saveState___rarg(x_5, x_6, x_7, x_8); -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); -lean_inc(x_1); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_38); -x_43 = lean_apply_6(x_1, x_38, x_4, x_5, x_6, x_7, x_42); -if (lean_obj_tag(x_43) == 0) +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = l_Lean_Exception_isInterrupt(x_31); +if (x_33 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_41); -lean_dec(x_38); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_44); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_3); -x_2 = x_39; -x_3 = x_47; -x_8 = x_45; +uint8_t x_34; +x_34 = l_Lean_Exception_isRuntime(x_31); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_31); +x_35 = l_Lean_Meta_SavedState_restore(x_15, x_4, x_5, x_6, x_7, x_32); +lean_dec(x_15); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_37, 0, x_12); +lean_ctor_set(x_2, 1, x_3); +lean_ctor_set(x_2, 0, x_37); +{ +lean_object* _tmp_1 = x_13; +lean_object* _tmp_2 = x_2; +lean_object* _tmp_7 = x_36; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_8 = _tmp_7; +} goto _start; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_49 = lean_ctor_get(x_43, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_43, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_51 = x_43; -} else { - lean_dec_ref(x_43); - x_51 = lean_box(0); -} -x_52 = l_Lean_Exception_isRuntime(x_49); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_51); -lean_dec(x_49); -x_53 = l_Lean_Meta_SavedState_restore(x_41, x_4, x_5, x_6, x_7, x_50); -lean_dec(x_41); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_55, 0, x_38); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_3); -x_2 = x_39; -x_3 = x_56; -x_8 = x_54; -goto _start; -} -else -{ -lean_object* x_58; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_38); +lean_object* x_39; +lean_dec(x_15); +lean_free_object(x_2); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_51)) { - x_58 = lean_alloc_ctor(1, 2, 0); -} else { - x_58 = x_51; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_31); +lean_ctor_set(x_39, 1, x_32); +return x_39; } -lean_ctor_set(x_58, 0, x_49); -lean_ctor_set(x_58, 1, x_50); -return x_58; +} +else +{ +lean_object* x_40; +lean_dec(x_15); +lean_free_object(x_2); +lean_dec(x_13); +lean_dec(x_12); +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_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_31); +lean_ctor_set(x_40, 1, x_32); +return x_40; +} +} +} +} +else +{ +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_41 = lean_ctor_get(x_2, 0); +x_42 = lean_ctor_get(x_2, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_2); +x_43 = l_Lean_Meta_saveState___rarg(x_5, x_6, x_7, x_8); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_41); +x_46 = lean_apply_6(x_1, x_41, x_4, x_5, x_6, x_7, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_44); +lean_dec(x_41); +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(1, 1, 0); +lean_ctor_set(x_49, 0, x_47); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_3); +x_2 = x_42; +x_3 = x_50; +x_8 = x_48; +goto _start; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_46, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_46, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_54 = x_46; +} else { + lean_dec_ref(x_46); + x_54 = lean_box(0); +} +x_55 = l_Lean_Exception_isInterrupt(x_52); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = l_Lean_Exception_isRuntime(x_52); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_54); +lean_dec(x_52); +x_57 = l_Lean_Meta_SavedState_restore(x_44, x_4, x_5, x_6, x_7, x_53); +lean_dec(x_44); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_59, 0, x_41); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_3); +x_2 = x_42; +x_3 = x_60; +x_8 = x_58; +goto _start; +} +else +{ +lean_object* x_62; +lean_dec(x_44); +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_54)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_54; +} +lean_ctor_set(x_62, 0, x_52); +lean_ctor_set(x_62, 1, x_53); +return x_62; +} +} +else +{ +lean_object* x_63; +lean_dec(x_44); +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_54)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_54; +} +lean_ctor_set(x_63, 0, x_52); +lean_ctor_set(x_63, 1, x_53); +return x_63; } } } @@ -6159,41 +6350,45 @@ if (x_53 == 0) lean_object* x_54; lean_object* x_55; uint8_t x_56; x_54 = lean_ctor_get(x_43, 0); x_55 = lean_ctor_get(x_43, 1); -x_56 = l_Lean_Exception_isRuntime(x_54); +x_56 = l_Lean_Exception_isInterrupt(x_54); if (x_56 == 0) { -lean_object* x_57; uint8_t x_58; +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_54); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; lean_free_object(x_43); lean_dec(x_54); -x_57 = l_Lean_Meta_SavedState_restore(x_41, x_10, x_11, x_12, x_13, x_55); +x_58 = l_Lean_Meta_SavedState_restore(x_41, x_10, x_11, x_12, x_13, x_55); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_41); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -lean_dec(x_59); -x_60 = l_List_appendTR___rarg(x_3, x_4); -x_61 = l_List_appendTR___rarg(x_60, x_9); -lean_ctor_set(x_57, 0, x_61); -return x_57; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = l_List_appendTR___rarg(x_3, x_4); +x_62 = l_List_appendTR___rarg(x_61, x_9); +lean_ctor_set(x_58, 0, x_62); +return x_58; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_57, 1); -lean_inc(x_62); -lean_dec(x_57); -x_63 = l_List_appendTR___rarg(x_3, x_4); -x_64 = l_List_appendTR___rarg(x_63, x_9); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); -return x_65; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_dec(x_58); +x_64 = l_List_appendTR___rarg(x_3, x_4); +x_65 = l_List_appendTR___rarg(x_64, x_9); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; } } else @@ -6211,47 +6406,6 @@ return x_43; } else { -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_ctor_get(x_43, 0); -x_67 = lean_ctor_get(x_43, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_43); -x_68 = l_Lean_Exception_isRuntime(x_66); -if (x_68 == 0) -{ -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_dec(x_66); -x_69 = l_Lean_Meta_SavedState_restore(x_41, x_10, x_11, x_12, x_13, x_67); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_41); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; -} else { - lean_dec_ref(x_69); - x_71 = lean_box(0); -} -x_72 = l_List_appendTR___rarg(x_3, x_4); -x_73 = l_List_appendTR___rarg(x_72, x_9); -if (lean_is_scalar(x_71)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_71; -} -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_70); -return x_74; -} -else -{ -lean_object* x_75; lean_dec(x_41); lean_dec(x_13); lean_dec(x_12); @@ -6260,19 +6414,94 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_3); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_66); -lean_ctor_set(x_75, 1, x_67); -return x_75; +return x_43; +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_69 = l_Lean_Exception_isInterrupt(x_67); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = l_Lean_Exception_isRuntime(x_67); +if (x_70 == 0) +{ +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_dec(x_67); +x_71 = l_Lean_Meta_SavedState_restore(x_41, x_10, x_11, x_12, x_13, x_68); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_41); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; +} else { + lean_dec_ref(x_71); + x_73 = lean_box(0); +} +x_74 = l_List_appendTR___rarg(x_3, x_4); +x_75 = l_List_appendTR___rarg(x_74, x_9); +if (lean_is_scalar(x_73)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_73; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_72); +return x_76; +} +else +{ +lean_object* x_77; +lean_dec(x_41); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_67); +lean_ctor_set(x_77, 1, x_68); +return x_77; +} +} +else +{ +lean_object* x_78; +lean_dec(x_41); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_67); +lean_ctor_set(x_78, 1, x_68); +return x_78; } } } } else { -lean_object* x_76; -x_76 = lean_box(0); -x_20 = x_76; +lean_object* x_79; +x_79 = lean_box(0); +x_20 = x_79; goto block_36; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index 58dac670f0..e9625881d1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -50,6 +50,7 @@ lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__54(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -12282,19 +12283,23 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; uint8_t x_37; x_35 = lean_ctor_get(x_27, 0); x_36 = lean_ctor_get(x_27, 1); -x_37 = l_Lean_Exception_isRuntime(x_35); +x_37 = l_Lean_Exception_isInterrupt(x_35); if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_free_object(x_27); lean_dec(x_35); -x_38 = l_Lean_Meta_SavedState_restore(x_25, x_5, x_6, x_7, x_8, x_36); +x_39 = l_Lean_Meta_SavedState_restore(x_25, x_5, x_6, x_7, x_8, x_36); lean_dec(x_25); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); x_12 = x_4; -x_13 = x_39; +x_13 = x_40; goto block_17; } else @@ -12310,134 +12315,187 @@ return x_27; } else { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_27, 0); -x_41 = lean_ctor_get(x_27, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_27); -x_42 = l_Lean_Exception_isRuntime(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_40); -x_43 = l_Lean_Meta_SavedState_restore(x_25, x_5, x_6, x_7, x_8, x_41); -lean_dec(x_25); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_12 = x_4; -x_13 = x_44; -goto block_17; -} -else -{ -lean_object* x_45; lean_dec(x_25); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_40); -lean_ctor_set(x_45, 1, x_41); -return x_45; +return x_27; +} +} +else +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_27, 0); +x_42 = lean_ctor_get(x_27, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_27); +x_43 = l_Lean_Exception_isInterrupt(x_41); +if (x_43 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Exception_isRuntime(x_41); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_41); +x_45 = l_Lean_Meta_SavedState_restore(x_25, x_5, x_6, x_7, x_8, x_42); +lean_dec(x_25); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_12 = x_4; +x_13 = x_46; +goto block_17; +} +else +{ +lean_object* x_47; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_41); +lean_ctor_set(x_47, 1, x_42); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec(x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_48, 1, x_42); +return x_48; } } } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_23, 0); -x_47 = lean_ctor_get(x_23, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_23, 0); +x_50 = lean_ctor_get(x_23, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_23); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_48 = l_Lean_MVarId_clear(x_22, x_21, x_5, x_6, x_7, x_8, x_47); -if (lean_obj_tag(x_48) == 0) +x_51 = l_Lean_MVarId_clear(x_22, x_21, x_5, x_6, x_7, x_8, x_50); +if (lean_obj_tag(x_51) == 0) { -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_dec(x_46); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = lean_ctor_get(x_18, 1); -lean_inc(x_51); -lean_dec(x_18); -x_52 = l_Lean_AssocList_erase___at_Lean_Meta_FVarSubst_erase___spec__1(x_11, x_19); -lean_dec(x_11); -x_53 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set(x_53, 2, x_52); -x_54 = lean_ctor_get(x_4, 1); +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_49); +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 = lean_ctor_get(x_18, 1); lean_inc(x_54); +lean_dec(x_18); +x_55 = l_Lean_AssocList_erase___at_Lean_Meta_FVarSubst_erase___spec__1(x_11, x_19); +lean_dec(x_11); +x_56 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_56, 0, x_52); +lean_ctor_set(x_56, 1, x_54); +lean_ctor_set(x_56, 2, x_55); +x_57 = lean_ctor_get(x_4, 1); +lean_inc(x_57); lean_dec(x_4); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -x_12 = x_55; -x_13 = x_50; +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_12 = x_58; +x_13 = x_53; goto block_17; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_dec(x_19); lean_dec(x_18); lean_dec(x_11); -x_56 = lean_ctor_get(x_48, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_48, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_58 = x_48; +x_59 = lean_ctor_get(x_51, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_51, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_61 = x_51; } else { - lean_dec_ref(x_48); - x_58 = lean_box(0); + lean_dec_ref(x_51); + x_61 = lean_box(0); } -x_59 = l_Lean_Exception_isRuntime(x_56); -if (x_59 == 0) +x_62 = l_Lean_Exception_isInterrupt(x_59); +if (x_62 == 0) { -lean_object* x_60; lean_object* x_61; -lean_dec(x_58); -lean_dec(x_56); -x_60 = l_Lean_Meta_SavedState_restore(x_46, x_5, x_6, x_7, x_8, x_57); -lean_dec(x_46); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); +uint8_t x_63; +x_63 = l_Lean_Exception_isRuntime(x_59); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_61); +lean_dec(x_59); +x_64 = l_Lean_Meta_SavedState_restore(x_49, x_5, x_6, x_7, x_8, x_60); +lean_dec(x_49); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); x_12 = x_4; -x_13 = x_61; +x_13 = x_65; goto block_17; } else { -lean_object* x_62; -lean_dec(x_46); +lean_object* x_66; +lean_dec(x_49); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_58)) { - x_62 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_61)) { + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_62 = x_58; + x_66 = x_61; } -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_57); -return x_62; +lean_ctor_set(x_66, 0, x_59); +lean_ctor_set(x_66, 1, x_60); +return x_66; +} +} +else +{ +lean_object* x_67; +lean_dec(x_49); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_61)) { + x_67 = lean_alloc_ctor(1, 2, 0); +} else { + x_67 = x_61; +} +lean_ctor_set(x_67, 0, x_59); +lean_ctor_set(x_67, 1, x_60); +return x_67; } } } @@ -12465,15 +12523,15 @@ goto _start; } else { -lean_object* x_63; +lean_object* x_68; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_4); -lean_ctor_set(x_63, 1, x_9); -return x_63; +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_4); +lean_ctor_set(x_68, 1, x_9); +return x_68; } } } @@ -12875,38 +12933,11 @@ if (x_11 == 0) { if (x_15 == 0) { -uint8_t x_97; -lean_dec(x_14); -x_97 = 0; -x_16 = x_97; -goto block_96; -} -else -{ -lean_object* x_98; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_98 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Cases_unifyEqs_x3f___spec__1(x_14, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_98; -} -} -else -{ -if (x_15 == 0) -{ uint8_t x_99; lean_dec(x_14); -x_99 = 1; +x_99 = 0; x_16 = x_99; -goto block_96; +goto block_98; } else { @@ -12925,7 +12956,34 @@ lean_dec(x_5); return x_100; } } -block_96: +else +{ +if (x_15 == 0) +{ +uint8_t x_101; +lean_dec(x_14); +x_101 = 1; +x_16 = x_101; +goto block_98; +} +else +{ +lean_object* x_102; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_102 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Cases_unifyEqs_x3f___spec__1(x_14, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_102; +} +} +block_98: { if (x_16 == 0) { @@ -13094,7 +13152,7 @@ return x_52; } else { -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; uint8_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +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; uint8_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; x_53 = lean_ctor_get(x_7, 0); x_54 = lean_ctor_get(x_7, 1); x_55 = lean_ctor_get(x_7, 2); @@ -13104,7 +13162,10 @@ x_58 = lean_ctor_get(x_7, 7); x_59 = lean_ctor_get(x_7, 8); x_60 = lean_ctor_get(x_7, 9); x_61 = lean_ctor_get(x_7, 10); -x_62 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_62 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_63 = lean_ctor_get(x_7, 11); +x_64 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_63); lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); @@ -13115,175 +13176,177 @@ lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); lean_dec(x_7); -x_63 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_63, 0, x_53); -lean_ctor_set(x_63, 1, x_54); -lean_ctor_set(x_63, 2, x_55); -lean_ctor_set(x_63, 3, x_18); -lean_ctor_set(x_63, 4, x_13); -lean_ctor_set(x_63, 5, x_56); -lean_ctor_set(x_63, 6, x_57); -lean_ctor_set(x_63, 7, x_58); -lean_ctor_set(x_63, 8, x_59); -lean_ctor_set(x_63, 9, x_60); -lean_ctor_set(x_63, 10, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*11, x_62); -x_64 = 0; +x_65 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_65, 0, x_53); +lean_ctor_set(x_65, 1, x_54); +lean_ctor_set(x_65, 2, x_55); +lean_ctor_set(x_65, 3, x_18); +lean_ctor_set(x_65, 4, x_13); +lean_ctor_set(x_65, 5, x_56); +lean_ctor_set(x_65, 6, x_57); +lean_ctor_set(x_65, 7, x_58); +lean_ctor_set(x_65, 8, x_59); +lean_ctor_set(x_65, 9, x_60); +lean_ctor_set(x_65, 10, x_61); +lean_ctor_set(x_65, 11, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*12, x_62); +lean_ctor_set_uint8(x_65, sizeof(void*)*12 + 1, x_64); +x_66 = 0; lean_inc(x_8); -lean_inc(x_63); +lean_inc(x_65); lean_inc(x_6); lean_inc(x_5); -x_65 = l_Lean_Meta_intro1Core(x_2, x_64, x_5, x_6, x_63, x_8, x_9); -if (lean_obj_tag(x_65) == 0) +x_67 = l_Lean_Meta_intro1Core(x_2, x_66, x_5, x_6, x_65, x_8, x_9); +if (lean_obj_tag(x_67) == 0) { -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_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_ctor_get(x_66, 0); +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_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -x_69 = lean_ctor_get(x_66, 1); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -lean_dec(x_66); -x_70 = l_Lean_Meta_Cases_unifyEqs_x3f___closed__1; +lean_dec(x_67); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_dec(x_68); +x_72 = l_Lean_Meta_Cases_unifyEqs_x3f___closed__1; lean_inc(x_8); -lean_inc(x_63); +lean_inc(x_65); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_71 = l_Lean_Meta_unifyEq_x3f(x_69, x_68, x_3, x_70, x_4, x_5, x_6, x_63, x_8, x_67); -if (lean_obj_tag(x_71) == 0) +x_73 = l_Lean_Meta_unifyEq_x3f(x_71, x_70, x_3, x_72, x_4, x_5, x_6, x_65, x_8, x_69); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_72; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -if (lean_obj_tag(x_72) == 0) +lean_object* x_74; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_63); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_65); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -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; +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_71); - x_74 = lean_box(0); + lean_dec_ref(x_73); + x_76 = lean_box(0); } -x_75 = lean_box(0); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 2, 0); +x_77 = lean_box(0); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); } else { - x_76 = x_74; + x_78 = x_76; } -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } 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; -x_77 = lean_ctor_get(x_72, 0); -lean_inc(x_77); -lean_dec(x_72); -x_78 = lean_ctor_get(x_71, 1); -lean_inc(x_78); -lean_dec(x_71); -x_79 = lean_ctor_get(x_77, 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; lean_object* x_85; +x_79 = lean_ctor_get(x_74, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_77, 1); +lean_dec(x_74); +x_80 = lean_ctor_get(x_73, 1); lean_inc(x_80); -x_81 = lean_ctor_get(x_77, 2); +lean_dec(x_73); +x_81 = lean_ctor_get(x_79, 0); lean_inc(x_81); -lean_dec(x_77); -x_82 = lean_nat_sub(x_1, x_17); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_79, 2); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_nat_sub(x_1, x_17); lean_dec(x_1); -x_83 = lean_nat_add(x_82, x_81); -lean_dec(x_81); -lean_dec(x_82); -x_1 = x_83; -x_2 = x_79; -x_3 = x_80; -x_7 = x_63; -x_9 = x_78; +x_85 = lean_nat_add(x_84, x_83); +lean_dec(x_83); +lean_dec(x_84); +x_1 = x_85; +x_2 = x_81; +x_3 = x_82; +x_7 = x_65; +x_9 = x_80; goto _start; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_63); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_65); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_85 = lean_ctor_get(x_71, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_71, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_87 = x_71; +x_87 = lean_ctor_get(x_73, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_73, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_89 = x_73; } else { - lean_dec_ref(x_71); - x_87 = lean_box(0); + lean_dec_ref(x_73); + x_89 = lean_box(0); } -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_88 = x_87; + x_90 = x_89; } -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_86); -return x_88; +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_63); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_65); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_89 = lean_ctor_get(x_65, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_65, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_91 = x_65; +x_91 = lean_ctor_get(x_67, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_67, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_93 = x_67; } else { - lean_dec_ref(x_65); - x_91 = lean_box(0); + lean_dec_ref(x_67); + x_93 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_92 = x_91; + x_94 = x_93; } -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); +return x_94; } } } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_13); lean_dec(x_12); lean_dec(x_8); @@ -13292,15 +13355,15 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_2); -lean_ctor_set(x_93, 1, x_3); -x_94 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_94, 0, x_93); x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_9); -return x_95; +lean_ctor_set(x_95, 0, x_2); +lean_ctor_set(x_95, 1, x_3); +x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_95); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_9); +return x_97; } } } @@ -14611,13 +14674,17 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; uint8_t x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Lean_Exception_isRuntime(x_15); +x_17 = l_Lean_Exception_isInterrupt(x_15); if (x_17 == 0) { -lean_object* x_18; +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_free_object(x_13); -x_18 = l_Lean_Meta_throwNestedTacticEx___rarg(x_10, x_15, x_5, x_6, x_7, x_8, x_16); -return x_18; +x_19 = l_Lean_Meta_throwNestedTacticEx___rarg(x_10, x_15, x_5, x_6, x_7, x_8, x_16); +return x_19; } else { @@ -14630,30 +14697,56 @@ return x_13; } else { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = l_Lean_Exception_isRuntime(x_19); -if (x_21 == 0) -{ -lean_object* x_22; -x_22 = l_Lean_Meta_throwNestedTacticEx___rarg(x_10, x_19, x_5, x_6, x_7, x_8, x_20); -return x_22; -} -else -{ -lean_object* x_23; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_19); -lean_ctor_set(x_23, 1, x_20); -return x_23; +return x_13; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = l_Lean_Exception_isInterrupt(x_20); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = l_Lean_Meta_throwNestedTacticEx___rarg(x_10, x_20, x_5, x_6, x_7, x_8, x_21); +return x_24; +} +else +{ +lean_object* x_25; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +} +else +{ +lean_object* x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_21); +return x_26; } } } @@ -14829,39 +14922,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -14876,55 +14973,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Clear.c b/stage0/stdlib/Lean/Meta/Tactic/Clear.c index 0e40b0b335..9aa7f0c60b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Clear.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Clear.c @@ -26,6 +26,7 @@ lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_PersistentArray_forMAux___at_Lean_MVarId_clear___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MVarId_clear___spec__21(lean_object*, lean_object*, size_t, size_t); @@ -3895,37 +3896,41 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { -lean_object* x_16; uint8_t x_17; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; lean_free_object(x_11); lean_dec(x_13); -x_16 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_14); +x_17 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_14); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_1); -return x_16; +lean_object* x_19; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_1); +return x_17; } else { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_19); -return x_20; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } else @@ -3941,55 +3946,85 @@ return x_11; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_11); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_22); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_9); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_26 = x_24; -} else { - lean_dec_ref(x_24); - x_26 = lean_box(0); -} -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_1); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -else -{ -lean_object* x_28; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_22); -return x_28; +return x_11; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_11); +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) +{ +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_22); +x_26 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_23); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_9); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +if (lean_is_scalar(x_28)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_28; +} +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +else +{ +lean_object* x_30; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_23); +return x_31; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Congr.c b/stage0/stdlib/Lean/Meta/Tactic/Congr.c index 9b734dd9ef..2e961384ab 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Congr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Congr.c @@ -22,6 +22,7 @@ static lean_object* l_Lean_MVarId_congrPre___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_congrImplies_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Congr_0__Lean_applyCongrThm_x3f___closed__1; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -268,14 +269,18 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_17, 0); x_22 = lean_ctor_get(x_17, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_free_object(x_17); lean_dec(x_21); -x_24 = l_Lean_MVarId_congrPre___lambda__3___closed__2; -x_8 = x_24; +x_25 = l_Lean_MVarId_congrPre___lambda__3___closed__2; +x_8 = x_25; x_9 = x_22; goto block_16; } @@ -291,34 +296,62 @@ return x_17; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_17, 0); -x_26 = lean_ctor_get(x_17, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_17); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -lean_object* x_28; -lean_dec(x_25); -x_28 = l_Lean_MVarId_congrPre___lambda__3___closed__2; -x_8 = x_28; -x_9 = x_26; -goto block_16; -} -else -{ -lean_object* x_29; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_26); -return x_29; +return x_17; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_17, 0); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_26); +x_30 = l_Lean_MVarId_congrPre___lambda__3___closed__2; +x_8 = x_30; +x_9 = x_27; +goto block_16; +} +else +{ +lean_object* x_31; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_26); +lean_ctor_set(x_31, 1, x_27); +return x_31; +} +} +else +{ +lean_object* x_32; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_27); +return x_32; } } } @@ -416,14 +449,18 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; uint8_t x_24; x_22 = lean_ctor_get(x_18, 0); x_23 = lean_ctor_get(x_18, 1); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_free_object(x_18); lean_dec(x_22); -x_25 = l_Lean_MVarId_congrPre___lambda__3___closed__2; -x_11 = x_25; +x_26 = l_Lean_MVarId_congrPre___lambda__3___closed__2; +x_11 = x_26; x_12 = x_23; goto block_17; } @@ -440,35 +477,65 @@ return x_18; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_18, 0); -x_27 = lean_ctor_get(x_18, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_18); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) -{ -lean_object* x_29; -lean_dec(x_26); -x_29 = l_Lean_MVarId_congrPre___lambda__3___closed__2; -x_11 = x_29; -x_12 = x_27; -goto block_17; -} -else -{ -lean_object* x_30; lean_dec(x_10); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_26); -lean_ctor_set(x_30, 1, x_27); -return x_30; +return x_18; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_18); +x_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; +lean_dec(x_27); +x_31 = l_Lean_MVarId_congrPre___lambda__3___closed__2; +x_11 = x_31; +x_12 = x_28; +goto block_17; +} +else +{ +lean_object* x_32; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_27); +lean_ctor_set(x_32, 1, x_28); +return x_32; +} +} +else +{ +lean_object* x_33; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_28); +return x_33; } } } @@ -508,28 +575,28 @@ return x_16; } else { -uint8_t x_31; +uint8_t x_34; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_7); -if (x_31 == 0) +x_34 = !lean_is_exclusive(x_7); +if (x_34 == 0) { return x_7; } 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); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_7, 0); +x_36 = lean_ctor_get(x_7, 1); +lean_inc(x_36); +lean_inc(x_35); lean_dec(x_7); -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; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } @@ -882,7 +949,7 @@ return x_41; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_MVarId_congr_x3f___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) { _start: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -900,172 +967,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } @@ -1105,14 +1195,18 @@ if (x_12 == 0) { lean_object* x_13; uint8_t x_14; x_13 = lean_ctor_get(x_7, 0); -x_14 = l_Lean_Exception_isRuntime(x_13); +x_14 = l_Lean_Exception_isInterrupt(x_13); if (x_14 == 0) { -lean_object* x_15; +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_dec(x_13); -x_15 = lean_box(0); +x_16 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_15); +lean_ctor_set(x_7, 0, x_16); return x_7; } else @@ -1122,30 +1216,48 @@ return x_7; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_7, 0); -x_17 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_7); -x_18 = l_Lean_Exception_isRuntime(x_16); -if (x_18 == 0) +x_19 = l_Lean_Exception_isInterrupt(x_17); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; -lean_dec(x_16); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_18); +return x_22; } else { -lean_object* x_21; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_16); -lean_ctor_set(x_21, 1, x_17); -return x_21; +lean_object* x_23; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_17); +lean_ctor_set(x_23, 1, x_18); +return x_23; +} +} +else +{ +lean_object* x_24; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_17); +lean_ctor_set(x_24, 1, x_18); +return x_24; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Constructor.c b/stage0/stdlib/Lean/Meta/Tactic/Constructor.c index a955eabb42..005bf911df 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Constructor.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Constructor.c @@ -21,6 +21,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, l static lean_object* l_Lean_MVarId_existsIntro___lambda__1___closed__4; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_existsIntro___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*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -41,6 +42,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducin static lean_object* l_Lean_MVarId_constructor___lambda__2___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_constructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_constructor___lambda__1___closed__3; @@ -79,6 +81,17 @@ static lean_object* l_Lean_MVarId_existsIntro___lambda__1___closed__2; static lean_object* l_Lean_MVarId_constructor___lambda__2___closed__5; static lean_object* l_Lean_MVarId_constructor___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_MVarId_constructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_MVarId_constructor___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) { _start: { @@ -100,173 +113,73 @@ return x_12; } else { -uint8_t x_13; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_31; lean_object* x_32; lean_dec(x_6); -x_13 = !lean_is_exclusive(x_5); -if (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_5, 0); -x_15 = lean_ctor_get(x_5, 1); +x_13 = lean_ctor_get(x_5, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_15 = x_5; +} else { + lean_dec_ref(x_5); + x_15 = lean_box(0); +} lean_inc(x_3); -x_16 = l_Lean_Expr_const___override(x_14, x_3); +x_31 = l_Lean_Expr_const___override(x_13, x_3); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_1); -x_17 = l_Lean_MVarId_apply(x_1, x_16, x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_17) == 0) +x_32 = l_Lean_MVarId_apply(x_1, x_31, x_2, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_32) == 0) { -uint8_t x_18; -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_box(0); -lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 1, x_21); -lean_ctor_set(x_5, 0, x_20); -lean_ctor_set(x_17, 0, x_5); -return x_17; -} -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_17, 0); -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_17); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_22); -x_25 = lean_box(0); -lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 1, x_25); -lean_ctor_set(x_5, 0, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_5); -lean_ctor_set(x_26, 1, x_23); -return x_26; -} -} -else -{ -uint8_t x_27; -lean_free_object(x_5); -x_27 = !lean_is_exclusive(x_17); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_17, 0); -x_29 = lean_ctor_get(x_17, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); -if (x_30 == 0) -{ -lean_free_object(x_17); -lean_dec(x_28); -lean_inc(x_4); -{ -lean_object* _tmp_4 = x_15; -lean_object* _tmp_5 = x_4; -lean_object* _tmp_10 = x_29; -x_5 = _tmp_4; -x_6 = _tmp_5; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_17; -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_17, 0); -x_33 = lean_ctor_get(x_17, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_17); -x_34 = l_Lean_Exception_isRuntime(x_32); -if (x_34 == 0) -{ +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); lean_dec(x_32); -lean_inc(x_4); -{ -lean_object* _tmp_4 = x_15; -lean_object* _tmp_5 = x_4; -lean_object* _tmp_10 = x_33; -x_5 = _tmp_4; -x_6 = _tmp_5; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_object* x_36; -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); +x_35 = lean_box(0); x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_32); -lean_ctor_set(x_36, 1, x_33); -return x_36; -} -} -} +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_35); +x_16 = x_36; +x_17 = x_34; +goto block_30; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_5, 0); -x_38 = lean_ctor_get(x_5, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_5); -lean_inc(x_3); -x_39 = l_Lean_Expr_const___override(x_37, x_3); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -lean_inc(x_1); -x_40 = l_Lean_MVarId_apply(x_1, x_39, x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_40) == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 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_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_32, 0); +x_39 = lean_ctor_get(x_32, 1); +x_40 = l_Lean_Exception_isInterrupt(x_38); +if (x_40 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +if (x_41 == 0) +{ +lean_object* x_42; +lean_free_object(x_32); lean_dec(x_38); +x_42 = l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1; +x_16 = x_42; +x_17 = x_39; +goto block_30; +} +else +{ +lean_dec(x_15); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -275,58 +188,96 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; -} else { - lean_dec_ref(x_40); - x_43 = lean_box(0); +return x_32; } -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_41); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -if (lean_is_scalar(x_43)) { - x_47 = lean_alloc_ctor(0, 2, 0); -} else { - x_47 = x_43; -} -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_42); -return x_47; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_48 = lean_ctor_get(x_40, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_40, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_50 = x_40; -} else { - lean_dec_ref(x_40); - x_50 = lean_box(0); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_32; } -x_51 = l_Lean_Exception_isRuntime(x_48); -if (x_51 == 0) +} +else { -lean_dec(x_50); -lean_dec(x_48); +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_32, 0); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_32); +x_45 = l_Lean_Exception_isInterrupt(x_43); +if (x_45 == 0) +{ +uint8_t x_46; +x_46 = l_Lean_Exception_isRuntime(x_43); +if (x_46 == 0) +{ +lean_object* x_47; +lean_dec(x_43); +x_47 = l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1; +x_16 = x_47; +x_17 = x_44; +goto block_30; +} +else +{ +lean_object* x_48; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_44); +return x_48; +} +} +else +{ +lean_object* x_49; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_43); +lean_ctor_set(x_49, 1, x_44); +return x_49; +} +} +} +block_30: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_dec(x_16); +lean_dec(x_15); lean_inc(x_4); { -lean_object* _tmp_4 = x_38; +lean_object* _tmp_4 = x_14; lean_object* _tmp_5 = x_4; -lean_object* _tmp_10 = x_49; +lean_object* _tmp_10 = x_17; x_5 = _tmp_4; x_6 = _tmp_5; x_11 = _tmp_10; @@ -335,8 +286,8 @@ goto _start; } else { -lean_object* x_53; -lean_dec(x_38); +uint8_t x_19; +lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -345,14 +296,50 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_50)) { - x_53 = lean_alloc_ctor(1, 2, 0); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_dec(x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_box(0); +lean_ctor_set_tag(x_16, 0); +lean_ctor_set(x_16, 1, x_23); +lean_ctor_set(x_16, 0, x_22); +if (lean_is_scalar(x_15)) { + x_24 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_50; + x_24 = x_15; + lean_ctor_set_tag(x_24, 0); } -lean_ctor_set(x_53, 0, x_48); -lean_ctor_set(x_53, 1, x_49); -return x_53; +lean_ctor_set(x_24, 0, x_16); +lean_ctor_set(x_24, 1, x_17); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_16, 0); +lean_inc(x_25); +lean_dec(x_16); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +if (lean_is_scalar(x_15)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_15; + lean_ctor_set_tag(x_29, 0); +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_17); +return x_29; } } } @@ -1596,6 +1583,8 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Apply(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1 = _init_l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_MVarId_constructor___spec__1___closed__1); l_Lean_MVarId_constructor___lambda__1___closed__1 = _init_l_Lean_MVarId_constructor___lambda__1___closed__1(); lean_mark_persistent(l_Lean_MVarId_constructor___lambda__1___closed__1); l_Lean_MVarId_constructor___lambda__1___closed__2 = _init_l_Lean_MVarId_constructor___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c b/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c index cabe93a956..c4342aad22 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c @@ -41,6 +41,7 @@ static lean_object* l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_contradictionCore___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_4436____closed__9; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, 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*); @@ -2058,7 +2059,7 @@ return x_77; LEAN_EXPORT lean_object* l_Lean_commitWhen___at_Lean_Meta_ElimEmptyInductive_elim___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) { _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_22; +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_24; x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); @@ -2076,151 +2077,174 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_22 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_10); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; uint8_t x_24; +lean_object* x_25; uint8_t x_26; lean_dec(x_11); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_22); -x_26 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_27); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_28; uint8_t x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); +lean_object* x_30; uint8_t x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = 0; +x_32 = lean_box(x_31); +lean_ctor_set(x_28, 0, x_32); +return x_28; +} +else +{ +lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); lean_dec(x_28); -x_29 = 0; -x_30 = lean_box(x_29); -lean_ctor_set(x_26, 0, x_30); -return x_26; -} -else -{ -lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = 0; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -return x_34; +x_34 = 0; +x_35 = lean_box(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_33); +return x_36; } } else { -uint8_t x_35; +uint8_t x_37; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_35 = !lean_is_exclusive(x_22); -if (x_35 == 0) +x_37 = !lean_is_exclusive(x_24); +if (x_37 == 0) { -lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_22, 0); -lean_dec(x_36); -x_37 = 1; -x_38 = lean_box(x_37); -lean_ctor_set(x_22, 0, x_38); -return x_22; +lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_24, 0); +lean_dec(x_38); +x_39 = 1; +x_40 = lean_box(x_39); +lean_ctor_set(x_24, 0, x_40); +return x_24; } else { -lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_22, 1); -lean_inc(x_39); -lean_dec(x_22); -x_40 = 1; -x_41 = lean_box(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_39); -return x_42; +lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_24, 1); +lean_inc(x_41); +lean_dec(x_24); +x_42 = 1; +x_43 = lean_box(x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +return x_44; } } } else { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_22, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_22, 1); -lean_inc(x_44); -lean_dec(x_22); -x_12 = x_43; -x_13 = x_44; -goto block_21; +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_24, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_24, 1); +lean_inc(x_46); +lean_dec(x_24); +x_12 = x_45; +x_13 = x_46; +goto block_23; } -block_21: +block_23: { uint8_t x_14; -x_14 = l_Lean_Exception_isRuntime(x_12); +x_14 = l_Lean_Exception_isInterrupt(x_12); if (x_14 == 0) { -lean_object* x_15; uint8_t x_16; +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_12); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_dec(x_11); -x_15 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_13); +x_16 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_13); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_9); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_17; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_12); -return x_15; +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_12); +return x_16; } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_12); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } else { -lean_object* x_20; +lean_object* x_21; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); if (lean_is_scalar(x_11)) { - x_20 = lean_alloc_ctor(1, 2, 0); + x_21 = lean_alloc_ctor(1, 2, 0); } else { - x_20 = x_11; - lean_ctor_set_tag(x_20, 1); + x_21 = x_11; + lean_ctor_set_tag(x_21, 1); } -lean_ctor_set(x_20, 0, x_12); -lean_ctor_set(x_20, 1, x_13); -return x_20; +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_13); +return x_21; +} +} +else +{ +lean_object* x_22; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_is_scalar(x_11)) { + x_22 = lean_alloc_ctor(1, 2, 0); +} else { + x_22 = x_11; + lean_ctor_set_tag(x_22, 1); +} +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_13); +return x_22; } } } @@ -2591,90 +2615,94 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; uint8_t x_24; x_22 = lean_ctor_get(x_11, 0); x_23 = lean_ctor_get(x_11, 1); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_free_object(x_11); -x_25 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__4; -x_26 = l_Lean_isTracingEnabledFor___at_Lean_Meta_ElimEmptyInductive_elim___spec__1(x_25, x_4, x_5, x_6, x_7, x_8, x_23); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_26 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__4; +x_27 = l_Lean_isTracingEnabledFor___at_Lean_Meta_ElimEmptyInductive_elim___spec__1(x_26, x_4, x_5, x_6, x_7, x_8, x_23); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -x_30 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; -x_31 = lean_unbox(x_28); -lean_dec(x_28); -if (x_31 == 0) +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +x_31 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; +x_32 = lean_unbox(x_29); +lean_dec(x_29); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -lean_free_object(x_26); +lean_object* x_33; lean_object* x_34; +lean_free_object(x_27); lean_dec(x_22); -x_32 = lean_box(0); -x_33 = lean_apply_7(x_30, x_32, x_4, x_5, x_6, x_7, x_8, x_29); -return x_33; +x_33 = lean_box(0); +x_34 = lean_apply_7(x_31, x_33, x_4, x_5, x_6, x_7, x_8, x_30); +return x_34; } 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; -x_34 = l_Lean_Exception_toMessageData(x_22); -x_35 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; -lean_ctor_set_tag(x_26, 6); -lean_ctor_set(x_26, 1, x_34); -lean_ctor_set(x_26, 0, x_35); -x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_26); -lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_25, x_36, x_4, x_5, x_6, x_7, x_8, x_29); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +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_35 = l_Lean_Exception_toMessageData(x_22); +x_36 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; +lean_ctor_set_tag(x_27, 6); +lean_ctor_set(x_27, 1, x_35); +lean_ctor_set(x_27, 0, x_36); +x_37 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_26, x_37, x_4, x_5, x_6, x_7, x_8, x_30); +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_apply_7(x_30, x_38, x_4, x_5, x_6, x_7, x_8, x_39); -return x_40; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_apply_7(x_31, x_39, x_4, x_5, x_6, x_7, x_8, x_40); +return x_41; } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_41 = lean_ctor_get(x_26, 0); -x_42 = lean_ctor_get(x_26, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_27, 0); +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_26); -x_43 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; -x_44 = lean_unbox(x_41); -lean_dec(x_41); -if (x_44 == 0) +lean_dec(x_27); +x_44 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; +x_45 = lean_unbox(x_42); +lean_dec(x_42); +if (x_45 == 0) { -lean_object* x_45; lean_object* x_46; +lean_object* x_46; lean_object* x_47; lean_dec(x_22); -x_45 = lean_box(0); -x_46 = lean_apply_7(x_43, x_45, x_4, x_5, x_6, x_7, x_8, x_42); -return x_46; +x_46 = lean_box(0); +x_47 = lean_apply_7(x_44, x_46, x_4, x_5, x_6, x_7, x_8, x_43); +return x_47; } else { -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 = l_Lean_Exception_toMessageData(x_22); -x_48 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; -x_49 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, 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; +x_48 = l_Lean_Exception_toMessageData(x_22); +x_49 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; x_50 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_25, x_50, x_4, x_5, x_6, x_7, x_8, x_42); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +x_51 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_26, x_51, x_4, x_5, x_6, x_7, x_8, x_43); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_apply_7(x_43, x_52, x_4, x_5, x_6, x_7, x_8, x_53); -return x_54; +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_apply_7(x_44, x_53, x_4, x_5, x_6, x_7, x_8, x_54); +return x_55; } } } @@ -2690,80 +2718,108 @@ return x_11; } else { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_11, 0); -x_56 = lean_ctor_get(x_11, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_11); -x_57 = l_Lean_Exception_isRuntime(x_55); -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_object* x_63; uint8_t x_64; -x_58 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__4; -x_59 = l_Lean_isTracingEnabledFor___at_Lean_Meta_ElimEmptyInductive_elim___spec__1(x_58, x_4, x_5, x_6, x_7, x_8, x_56); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_62 = x_59; -} else { - lean_dec_ref(x_59); - x_62 = lean_box(0); -} -x_63 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; -x_64 = lean_unbox(x_60); -lean_dec(x_60); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; -lean_dec(x_62); -lean_dec(x_55); -x_65 = lean_box(0); -x_66 = lean_apply_7(x_63, x_65, x_4, x_5, x_6, x_7, x_8, x_61); -return x_66; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_67 = l_Lean_Exception_toMessageData(x_55); -x_68 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; -if (lean_is_scalar(x_62)) { - x_69 = lean_alloc_ctor(6, 2, 0); -} else { - x_69 = x_62; - lean_ctor_set_tag(x_69, 6); -} -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_58, x_70, x_4, x_5, x_6, x_7, x_8, x_61); -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_74 = lean_apply_7(x_63, x_72, x_4, x_5, x_6, x_7, x_8, x_73); -return x_74; -} -} -else -{ -lean_object* x_75; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_55); -lean_ctor_set(x_75, 1, x_56); -return x_75; +return x_11; +} +} +else +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_11, 0); +x_57 = lean_ctor_get(x_11, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_11); +x_58 = l_Lean_Exception_isInterrupt(x_56); +if (x_58 == 0) +{ +uint8_t x_59; +x_59 = l_Lean_Exception_isRuntime(x_56); +if (x_59 == 0) +{ +lean_object* x_60; 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_60 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__4; +x_61 = l_Lean_isTracingEnabledFor___at_Lean_Meta_ElimEmptyInductive_elim___spec__1(x_60, x_4, x_5, x_6, x_7, x_8, x_57); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +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_61); + x_64 = lean_box(0); +} +x_65 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__5___closed__1; +x_66 = lean_unbox(x_62); +lean_dec(x_62); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_64); +lean_dec(x_56); +x_67 = lean_box(0); +x_68 = lean_apply_7(x_65, x_67, x_4, x_5, x_6, x_7, x_8, x_63); +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; +x_69 = l_Lean_Exception_toMessageData(x_56); +x_70 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__7; +if (lean_is_scalar(x_64)) { + x_71 = lean_alloc_ctor(6, 2, 0); +} else { + x_71 = x_64; + lean_ctor_set_tag(x_71, 6); +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(x_60, x_72, x_4, x_5, x_6, x_7, x_8, x_63); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_apply_7(x_65, x_74, x_4, x_5, x_6, x_7, x_8, x_75); +return x_76; +} +} +else +{ +lean_object* x_77; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_56); +lean_ctor_set(x_77, 1, x_57); +return x_77; +} +} +else +{ +lean_object* x_78; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_56); +lean_ctor_set(x_78, 1, x_57); +return x_78; } } } @@ -3056,7 +3112,7 @@ return x_8; LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___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: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -3074,151 +3130,174 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; uint8_t x_23; +lean_object* x_24; uint8_t x_25; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -lean_dec(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_21, 1); +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_24); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_26); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_25, 0); +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +x_30 = 0; +x_31 = lean_box(x_30); +lean_ctor_set(x_27, 0, x_31); +return x_27; +} +else +{ +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); lean_dec(x_27); -x_28 = 0; -x_29 = lean_box(x_28); -lean_ctor_set(x_25, 0, x_29); -return x_25; -} -else -{ -lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = 0; -x_32 = lean_box(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -return x_33; +x_33 = 0; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +return x_35; } } else { -uint8_t x_34; +uint8_t x_36; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_21); -if (x_34 == 0) +x_36 = !lean_is_exclusive(x_23); +if (x_36 == 0) { -lean_object* x_35; uint8_t x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_21, 0); -lean_dec(x_35); -x_36 = 1; -x_37 = lean_box(x_36); -lean_ctor_set(x_21, 0, x_37); -return x_21; +lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_23, 0); +lean_dec(x_37); +x_38 = 1; +x_39 = lean_box(x_38); +lean_ctor_set(x_23, 0, x_39); +return x_23; } else { -lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_21, 1); -lean_inc(x_38); -lean_dec(x_21); -x_39 = 1; -x_40 = lean_box(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_38); -return x_41; +lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_23, 1); +lean_inc(x_40); +lean_dec(x_23); +x_41 = 1; +x_42 = lean_box(x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; } } } else { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_21, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_21, 1); -lean_inc(x_43); -lean_dec(x_21); -x_11 = x_42; -x_12 = x_43; -goto block_20; +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_23, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_23, 1); +lean_inc(x_45); +lean_dec(x_23); +x_11 = x_44; +x_12 = x_45; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } @@ -6800,12 +6879,23 @@ return x_35; static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__2() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_from_bytes("Bool", 4); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__3() { _start: { lean_object* x_1; @@ -6813,25 +6903,14 @@ x_1 = lean_mk_string_from_bytes("false", 5); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; -x_2 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__2; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__2; +x_2 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__3; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; } } static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__5() { @@ -6926,231 +7005,188 @@ x_23 = l_Lean_Expr_hasFVar(x_19); lean_dec(x_19); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_42; +lean_object* x_24; lean_object* x_25; lean_object* x_42; lean_object* x_43; lean_object* x_50; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_6); -x_42 = l_Lean_Meta_mkDecide(x_6, x_9, x_10, x_11, x_12, x_20); -if (lean_obj_tag(x_42) == 0) +x_50 = l_Lean_Meta_mkDecide(x_6, x_9, x_10, x_11, x_12, x_20); +if (lean_obj_tag(x_50) == 0) { -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; uint8_t x_51; -x_43 = lean_ctor_get(x_9, 0); -lean_inc(x_43); -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_9, 1); -lean_inc(x_46); -x_47 = lean_ctor_get(x_9, 2); -lean_inc(x_47); -x_48 = lean_ctor_get(x_9, 3); -lean_inc(x_48); -x_49 = lean_ctor_get(x_9, 4); -lean_inc(x_49); -x_50 = lean_ctor_get(x_9, 5); -lean_inc(x_50); -x_51 = !lean_is_exclusive(x_43); -if (x_51 == 0) -{ -uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; -x_52 = lean_ctor_get_uint8(x_9, sizeof(void*)*6); -x_53 = lean_ctor_get_uint8(x_9, sizeof(void*)*6 + 1); -x_54 = 1; -lean_ctor_set_uint8(x_43, 9, x_54); -x_55 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_55, 0, x_43); -lean_ctor_set(x_55, 1, x_46); -lean_ctor_set(x_55, 2, x_47); -lean_ctor_set(x_55, 3, x_48); -lean_ctor_set(x_55, 4, x_49); -lean_ctor_set(x_55, 5, x_50); -lean_ctor_set_uint8(x_55, sizeof(void*)*6, x_52); -lean_ctor_set_uint8(x_55, sizeof(void*)*6 + 1, x_53); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_44); -x_56 = lean_whnf(x_44, x_55, x_10, x_11, x_12, x_45); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_57 = lean_ctor_get(x_56, 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; uint8_t x_59; +x_51 = lean_ctor_get(x_9, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_ctor_get(x_9, 1); +lean_inc(x_54); +x_55 = lean_ctor_get(x_9, 2); +lean_inc(x_55); +x_56 = lean_ctor_get(x_9, 3); +lean_inc(x_56); +x_57 = lean_ctor_get(x_9, 4); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_58 = lean_ctor_get(x_9, 5); lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__3; -x_60 = l_Lean_Expr_isConstOf(x_57, x_59); -lean_dec(x_57); -if (x_60 == 0) +x_59 = !lean_is_exclusive(x_51); +if (x_59 == 0) { -lean_object* x_61; -lean_dec(x_44); -x_61 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_61; -x_25 = x_58; -goto block_41; -} -else -{ -lean_object* x_62; +uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get_uint8(x_9, sizeof(void*)*6); +x_61 = lean_ctor_get_uint8(x_9, sizeof(void*)*6 + 1); +x_62 = 1; +lean_ctor_set_uint8(x_51, 9, x_62); +x_63 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_63, 0, x_51); +lean_ctor_set(x_63, 1, x_54); +lean_ctor_set(x_63, 2, x_55); +lean_ctor_set(x_63, 3, x_56); +lean_ctor_set(x_63, 4, x_57); +lean_ctor_set(x_63, 5, x_58); +lean_ctor_set_uint8(x_63, sizeof(void*)*6, x_60); +lean_ctor_set_uint8(x_63, sizeof(void*)*6 + 1, x_61); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_44); -x_62 = l_Lean_Meta_mkEqRefl(x_44, x_9, x_10, x_11, x_12, x_58); -if (lean_obj_tag(x_62) == 0) +lean_inc(x_52); +x_64 = lean_whnf(x_52, x_63, x_10, x_11, x_12, x_53); +if (lean_obj_tag(x_64) == 0) { -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; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_unsigned_to_nat(0u); -x_66 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_44, x_65); -x_67 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__8; +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); -x_68 = lean_mk_array(x_66, x_67); -x_69 = lean_unsigned_to_nat(1u); -x_70 = lean_nat_sub(x_66, x_69); -lean_dec(x_66); -x_71 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_44, x_68, x_70); -x_72 = lean_array_push(x_71, x_63); -x_73 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__7; -x_74 = l_Lean_mkAppN(x_73, x_72); -lean_inc(x_5); -x_75 = l_Lean_MVarId_getType(x_5, x_9, x_10, x_11, x_12, x_64); -if (lean_obj_tag(x_75) == 0) +lean_dec(x_64); +x_67 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; +x_68 = l_Lean_Expr_isConstOf(x_65, x_67); +lean_dec(x_65); +if (x_68 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_LocalDecl_toExpr(x_4); +lean_object* x_69; +lean_dec(x_52); +x_69 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_69; +x_25 = x_66; +goto block_41; +} +else +{ +lean_object* x_70; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_79 = l_Lean_Meta_mkAbsurd(x_76, x_78, x_74, x_9, x_10, x_11, x_12, x_77); -if (lean_obj_tag(x_79) == 0) +lean_inc(x_52); +x_70 = l_Lean_Meta_mkEqRefl(x_52, x_9, x_10, x_11, x_12, x_66); +if (lean_obj_tag(x_70) == 0) { -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); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_unsigned_to_nat(0u); +x_74 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_52, x_73); +x_75 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__8; +lean_inc(x_74); +x_76 = lean_mk_array(x_74, x_75); +x_77 = lean_unsigned_to_nat(1u); +x_78 = lean_nat_sub(x_74, x_77); +lean_dec(x_74); +x_79 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_52, x_76, x_78); +x_80 = lean_array_push(x_79, x_71); +x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__7; +x_82 = l_Lean_mkAppN(x_81, x_80); lean_inc(x_5); -x_82 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_80, x_9, x_10, x_11, x_12, x_81); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__9; -x_24 = x_84; -x_25 = x_83; -goto block_41; -} -else +x_83 = l_Lean_MVarId_getType(x_5, x_9, x_10, x_11, x_12, x_72); +if (lean_obj_tag(x_83) == 0) { -uint8_t x_85; -x_85 = !lean_is_exclusive(x_79); -if (x_85 == 0) +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_LocalDecl_toExpr(x_4); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_87 = l_Lean_Meta_mkAbsurd(x_84, x_86, x_82, x_9, x_10, x_11, x_12, x_85); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = lean_ctor_get(x_79, 0); -x_87 = lean_ctor_get(x_79, 1); -x_88 = l_Lean_Exception_isRuntime(x_86); -if (x_88 == 0) -{ -lean_object* x_89; -lean_free_object(x_79); -lean_dec(x_86); -x_89 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_89; -x_25 = x_87; -goto block_41; -} -else -{ -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_79; -} -} -else -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_79, 0); -x_91 = lean_ctor_get(x_79, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +lean_inc(x_5); +x_90 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_88, x_9, x_10, x_11, x_12, x_89); +x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_79); -x_92 = l_Lean_Exception_isRuntime(x_90); -if (x_92 == 0) -{ -lean_object* x_93; lean_dec(x_90); -x_93 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_93; +x_92 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__9; +x_24 = x_92; x_25 = x_91; goto block_41; } else { -lean_object* x_94; -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_90); -lean_ctor_set(x_94, 1, x_91); -return x_94; -} -} +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_87, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +lean_dec(x_87); +x_42 = x_93; +x_43 = x_94; +goto block_49; } } else { -uint8_t x_95; -lean_dec(x_74); -x_95 = !lean_is_exclusive(x_75); -if (x_95 == 0) +lean_object* x_95; lean_object* x_96; +lean_dec(x_82); +x_95 = lean_ctor_get(x_83, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_83, 1); +lean_inc(x_96); +lean_dec(x_83); +x_42 = x_95; +x_43 = x_96; +goto block_49; +} +} +else { -lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_96 = lean_ctor_get(x_75, 0); -x_97 = lean_ctor_get(x_75, 1); -x_98 = l_Lean_Exception_isRuntime(x_96); -if (x_98 == 0) +uint8_t x_97; +lean_dec(x_52); +x_97 = !lean_is_exclusive(x_70); +if (x_97 == 0) { -lean_object* x_99; -lean_free_object(x_75); -lean_dec(x_96); -x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_99; -x_25 = x_97; +lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_98 = lean_ctor_get(x_70, 0); +x_99 = lean_ctor_get(x_70, 1); +x_100 = l_Lean_Exception_isInterrupt(x_98); +if (x_100 == 0) +{ +uint8_t x_101; +x_101 = l_Lean_Exception_isRuntime(x_98); +if (x_101 == 0) +{ +lean_object* x_102; +lean_free_object(x_70); +lean_dec(x_98); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_102; +x_25 = x_99; goto block_41; } else @@ -7165,30 +7201,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_75; +return x_70; } } else { -lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_100 = lean_ctor_get(x_75, 0); -x_101 = lean_ctor_get(x_75, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_75); -x_102 = l_Lean_Exception_isRuntime(x_100); -if (x_102 == 0) -{ -lean_object* x_103; -lean_dec(x_100); -x_103 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_103; -x_25 = x_101; -goto block_41; -} -else -{ -lean_object* x_104; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7199,33 +7216,95 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_101); -return x_104; -} -} +return x_70; } } else { -uint8_t x_105; -lean_dec(x_44); -x_105 = !lean_is_exclusive(x_62); +lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_103 = lean_ctor_get(x_70, 0); +x_104 = lean_ctor_get(x_70, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_70); +x_105 = l_Lean_Exception_isInterrupt(x_103); if (x_105 == 0) { -lean_object* x_106; lean_object* x_107; uint8_t x_108; -x_106 = lean_ctor_get(x_62, 0); -x_107 = lean_ctor_get(x_62, 1); -x_108 = l_Lean_Exception_isRuntime(x_106); -if (x_108 == 0) +uint8_t x_106; +x_106 = l_Lean_Exception_isRuntime(x_103); +if (x_106 == 0) +{ +lean_object* x_107; +lean_dec(x_103); +x_107 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_107; +x_25 = x_104; +goto block_41; +} +else +{ +lean_object* x_108; +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_103); +lean_ctor_set(x_108, 1, x_104); +return x_108; +} +} +else { lean_object* x_109; -lean_free_object(x_62); -lean_dec(x_106); -x_109 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_109; -x_25 = x_107; +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_103); +lean_ctor_set(x_109, 1, x_104); +return x_109; +} +} +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_52); +x_110 = !lean_is_exclusive(x_64); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_111 = lean_ctor_get(x_64, 0); +x_112 = lean_ctor_get(x_64, 1); +x_113 = l_Lean_Exception_isInterrupt(x_111); +if (x_113 == 0) +{ +uint8_t x_114; +x_114 = l_Lean_Exception_isRuntime(x_111); +if (x_114 == 0) +{ +lean_object* x_115; +lean_free_object(x_64); +lean_dec(x_111); +x_115 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_115; +x_25 = x_112; goto block_41; } else @@ -7240,30 +7319,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_62; +return x_64; } } else { -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = lean_ctor_get(x_62, 0); -x_111 = lean_ctor_get(x_62, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_62); -x_112 = l_Lean_Exception_isRuntime(x_110); -if (x_112 == 0) -{ -lean_object* x_113; -lean_dec(x_110); -x_113 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_113; -x_25 = x_111; -goto block_41; -} -else -{ -lean_object* x_114; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7274,38 +7334,34 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_110); -lean_ctor_set(x_114, 1, x_111); -return x_114; -} -} -} +return x_64; } } else { -uint8_t x_115; -lean_dec(x_44); -x_115 = !lean_is_exclusive(x_56); -if (x_115 == 0) -{ lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_116 = lean_ctor_get(x_56, 0); -x_117 = lean_ctor_get(x_56, 1); -x_118 = l_Lean_Exception_isRuntime(x_116); +x_116 = lean_ctor_get(x_64, 0); +x_117 = lean_ctor_get(x_64, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_64); +x_118 = l_Lean_Exception_isInterrupt(x_116); if (x_118 == 0) { -lean_object* x_119; -lean_free_object(x_56); +uint8_t x_119; +x_119 = l_Lean_Exception_isRuntime(x_116); +if (x_119 == 0) +{ +lean_object* x_120; lean_dec(x_116); -x_119 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_119; +x_120 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_120; x_25 = x_117; goto block_41; } else { +lean_object* x_121; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7316,30 +7372,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_56; +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_116); +lean_ctor_set(x_121, 1, x_117); +return x_121; } } else { -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_56, 0); -x_121 = lean_ctor_get(x_56, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_56); -x_122 = l_Lean_Exception_isRuntime(x_120); -if (x_122 == 0) -{ -lean_object* x_123; -lean_dec(x_120); -x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_123; -x_25 = x_121; -goto block_41; -} -else -{ -lean_object* x_124; +lean_object* x_122; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7350,173 +7391,205 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_120); -lean_ctor_set(x_124, 1, x_121); -return x_124; +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_116); +lean_ctor_set(x_122, 1, x_117); +return x_122; } } } } else { -uint8_t x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_125 = lean_ctor_get_uint8(x_9, sizeof(void*)*6); -x_126 = lean_ctor_get_uint8(x_9, sizeof(void*)*6 + 1); -x_127 = lean_ctor_get_uint8(x_43, 0); -x_128 = lean_ctor_get_uint8(x_43, 1); -x_129 = lean_ctor_get_uint8(x_43, 2); -x_130 = lean_ctor_get_uint8(x_43, 3); -x_131 = lean_ctor_get_uint8(x_43, 4); -x_132 = lean_ctor_get_uint8(x_43, 5); -x_133 = lean_ctor_get_uint8(x_43, 6); -x_134 = lean_ctor_get_uint8(x_43, 7); -x_135 = lean_ctor_get_uint8(x_43, 8); -x_136 = lean_ctor_get_uint8(x_43, 10); -x_137 = lean_ctor_get_uint8(x_43, 11); -x_138 = lean_ctor_get_uint8(x_43, 12); -lean_dec(x_43); -x_139 = 1; -x_140 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_140, 0, x_127); -lean_ctor_set_uint8(x_140, 1, x_128); -lean_ctor_set_uint8(x_140, 2, x_129); -lean_ctor_set_uint8(x_140, 3, x_130); -lean_ctor_set_uint8(x_140, 4, x_131); -lean_ctor_set_uint8(x_140, 5, x_132); -lean_ctor_set_uint8(x_140, 6, x_133); -lean_ctor_set_uint8(x_140, 7, x_134); -lean_ctor_set_uint8(x_140, 8, x_135); -lean_ctor_set_uint8(x_140, 9, x_139); -lean_ctor_set_uint8(x_140, 10, x_136); -lean_ctor_set_uint8(x_140, 11, x_137); -lean_ctor_set_uint8(x_140, 12, x_138); -x_141 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_46); -lean_ctor_set(x_141, 2, x_47); -lean_ctor_set(x_141, 3, x_48); -lean_ctor_set(x_141, 4, x_49); -lean_ctor_set(x_141, 5, x_50); -lean_ctor_set_uint8(x_141, sizeof(void*)*6, x_125); -lean_ctor_set_uint8(x_141, sizeof(void*)*6 + 1, x_126); +uint8_t x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_123 = lean_ctor_get_uint8(x_9, sizeof(void*)*6); +x_124 = lean_ctor_get_uint8(x_9, sizeof(void*)*6 + 1); +x_125 = lean_ctor_get_uint8(x_51, 0); +x_126 = lean_ctor_get_uint8(x_51, 1); +x_127 = lean_ctor_get_uint8(x_51, 2); +x_128 = lean_ctor_get_uint8(x_51, 3); +x_129 = lean_ctor_get_uint8(x_51, 4); +x_130 = lean_ctor_get_uint8(x_51, 5); +x_131 = lean_ctor_get_uint8(x_51, 6); +x_132 = lean_ctor_get_uint8(x_51, 7); +x_133 = lean_ctor_get_uint8(x_51, 8); +x_134 = lean_ctor_get_uint8(x_51, 10); +x_135 = lean_ctor_get_uint8(x_51, 11); +x_136 = lean_ctor_get_uint8(x_51, 12); +lean_dec(x_51); +x_137 = 1; +x_138 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_138, 0, x_125); +lean_ctor_set_uint8(x_138, 1, x_126); +lean_ctor_set_uint8(x_138, 2, x_127); +lean_ctor_set_uint8(x_138, 3, x_128); +lean_ctor_set_uint8(x_138, 4, x_129); +lean_ctor_set_uint8(x_138, 5, x_130); +lean_ctor_set_uint8(x_138, 6, x_131); +lean_ctor_set_uint8(x_138, 7, x_132); +lean_ctor_set_uint8(x_138, 8, x_133); +lean_ctor_set_uint8(x_138, 9, x_137); +lean_ctor_set_uint8(x_138, 10, x_134); +lean_ctor_set_uint8(x_138, 11, x_135); +lean_ctor_set_uint8(x_138, 12, x_136); +x_139 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_54); +lean_ctor_set(x_139, 2, x_55); +lean_ctor_set(x_139, 3, x_56); +lean_ctor_set(x_139, 4, x_57); +lean_ctor_set(x_139, 5, x_58); +lean_ctor_set_uint8(x_139, sizeof(void*)*6, x_123); +lean_ctor_set_uint8(x_139, sizeof(void*)*6 + 1, x_124); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_44); -x_142 = lean_whnf(x_44, x_141, x_10, x_11, x_12, x_45); -if (lean_obj_tag(x_142) == 0) +lean_inc(x_52); +x_140 = lean_whnf(x_52, x_139, x_10, x_11, x_12, x_53); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_145 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__3; -x_146 = l_Lean_Expr_isConstOf(x_143, x_145); -lean_dec(x_143); -if (x_146 == 0) +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; +x_144 = l_Lean_Expr_isConstOf(x_141, x_143); +lean_dec(x_141); +if (x_144 == 0) { -lean_object* x_147; -lean_dec(x_44); -x_147 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_147; -x_25 = x_144; +lean_object* x_145; +lean_dec(x_52); +x_145 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_145; +x_25 = x_142; goto block_41; } else { -lean_object* x_148; +lean_object* x_146; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_44); -x_148 = l_Lean_Meta_mkEqRefl(x_44, x_9, x_10, x_11, x_12, x_144); -if (lean_obj_tag(x_148) == 0) +lean_inc(x_52); +x_146 = l_Lean_Meta_mkEqRefl(x_52, x_9, x_10, x_11, x_12, x_142); +if (lean_obj_tag(x_146) == 0) { -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; -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); +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; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_unsigned_to_nat(0u); +x_150 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_52, x_149); +x_151 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__8; lean_inc(x_150); -lean_dec(x_148); -x_151 = lean_unsigned_to_nat(0u); -x_152 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_44, x_151); -x_153 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__8; -lean_inc(x_152); -x_154 = lean_mk_array(x_152, x_153); -x_155 = lean_unsigned_to_nat(1u); -x_156 = lean_nat_sub(x_152, x_155); -lean_dec(x_152); -x_157 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_44, x_154, x_156); -x_158 = lean_array_push(x_157, x_149); -x_159 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__7; -x_160 = l_Lean_mkAppN(x_159, x_158); +x_152 = lean_mk_array(x_150, x_151); +x_153 = lean_unsigned_to_nat(1u); +x_154 = lean_nat_sub(x_150, x_153); +lean_dec(x_150); +x_155 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_52, x_152, x_154); +x_156 = lean_array_push(x_155, x_147); +x_157 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__7; +x_158 = l_Lean_mkAppN(x_157, x_156); lean_inc(x_5); -x_161 = l_Lean_MVarId_getType(x_5, x_9, x_10, x_11, x_12, x_150); -if (lean_obj_tag(x_161) == 0) +x_159 = l_Lean_MVarId_getType(x_5, x_9, x_10, x_11, x_12, x_148); +if (lean_obj_tag(x_159) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = l_Lean_LocalDecl_toExpr(x_4); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = l_Lean_LocalDecl_toExpr(x_4); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_165 = l_Lean_Meta_mkAbsurd(x_162, x_164, x_160, x_9, x_10, x_11, x_12, x_163); -if (lean_obj_tag(x_165) == 0) +x_163 = l_Lean_Meta_mkAbsurd(x_160, x_162, x_158, x_9, x_10, x_11, x_12, x_161); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); lean_inc(x_5); -x_168 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_166, x_9, x_10, x_11, x_12, x_167); -x_169 = lean_ctor_get(x_168, 1); +x_166 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_5, x_164, x_9, x_10, x_11, x_12, x_165); +x_167 = lean_ctor_get(x_166, 1); +lean_inc(x_167); +lean_dec(x_166); +x_168 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__9; +x_24 = x_168; +x_25 = x_167; +goto block_41; +} +else +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_163, 0); lean_inc(x_169); -lean_dec(x_168); -x_170 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__9; -x_24 = x_170; -x_25 = x_169; -goto block_41; +x_170 = lean_ctor_get(x_163, 1); +lean_inc(x_170); +lean_dec(x_163); +x_42 = x_169; +x_43 = x_170; +goto block_49; +} } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; -x_171 = lean_ctor_get(x_165, 0); +lean_object* x_171; lean_object* x_172; +lean_dec(x_158); +x_171 = lean_ctor_get(x_159, 0); lean_inc(x_171); -x_172 = lean_ctor_get(x_165, 1); +x_172 = lean_ctor_get(x_159, 1); lean_inc(x_172); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - x_173 = x_165; -} else { - lean_dec_ref(x_165); - x_173 = lean_box(0); +lean_dec(x_159); +x_42 = x_171; +x_43 = x_172; +goto block_49; } -x_174 = l_Lean_Exception_isRuntime(x_171); -if (x_174 == 0) +} +else { -lean_object* x_175; +lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +lean_dec(x_52); +x_173 = lean_ctor_get(x_146, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_146, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_175 = x_146; +} else { + lean_dec_ref(x_146); + x_175 = lean_box(0); +} +x_176 = l_Lean_Exception_isInterrupt(x_173); +if (x_176 == 0) +{ +uint8_t x_177; +x_177 = l_Lean_Exception_isRuntime(x_173); +if (x_177 == 0) +{ +lean_object* x_178; +lean_dec(x_175); lean_dec(x_173); -lean_dec(x_171); -x_175 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_175; -x_25 = x_172; +x_178 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_178; +x_25 = x_174; goto block_41; } else { -lean_object* x_176; +lean_object* x_179; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7527,47 +7600,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_173)) { - x_176 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_175)) { + x_179 = lean_alloc_ctor(1, 2, 0); } else { - x_176 = x_173; -} -lean_ctor_set(x_176, 0, x_171); -lean_ctor_set(x_176, 1, x_172); -return x_176; + x_179 = x_175; } +lean_ctor_set(x_179, 0, x_173); +lean_ctor_set(x_179, 1, x_174); +return x_179; } } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -lean_dec(x_160); -x_177 = lean_ctor_get(x_161, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_161, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_179 = x_161; -} else { - lean_dec_ref(x_161); - x_179 = lean_box(0); -} -x_180 = l_Lean_Exception_isRuntime(x_177); -if (x_180 == 0) -{ -lean_object* x_181; -lean_dec(x_179); -lean_dec(x_177); -x_181 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_181; -x_25 = x_178; -goto block_41; -} -else -{ -lean_object* x_182; +lean_object* x_180; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7578,43 +7623,71 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_179)) { - x_182 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_175)) { + x_180 = lean_alloc_ctor(1, 2, 0); } else { - x_182 = x_179; + x_180 = x_175; +} +lean_ctor_set(x_180, 0, x_173); +lean_ctor_set(x_180, 1, x_174); +return x_180; } -lean_ctor_set(x_182, 0, x_177); -lean_ctor_set(x_182, 1, x_178); -return x_182; } } } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; -lean_dec(x_44); -x_183 = lean_ctor_get(x_148, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_148, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_185 = x_148; +lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; +lean_dec(x_52); +x_181 = lean_ctor_get(x_140, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_140, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_183 = x_140; } else { - lean_dec_ref(x_148); - x_185 = lean_box(0); + lean_dec_ref(x_140); + x_183 = lean_box(0); } -x_186 = l_Lean_Exception_isRuntime(x_183); -if (x_186 == 0) +x_184 = l_Lean_Exception_isInterrupt(x_181); +if (x_184 == 0) +{ +uint8_t x_185; +x_185 = l_Lean_Exception_isRuntime(x_181); +if (x_185 == 0) +{ +lean_object* x_186; +lean_dec(x_183); +lean_dec(x_181); +x_186 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_186; +x_25 = x_182; +goto block_41; +} +else { lean_object* x_187; -lean_dec(x_185); -lean_dec(x_183); -x_187 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_187; -x_25 = x_184; -goto block_41; +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_183)) { + x_187 = lean_alloc_ctor(1, 2, 0); +} else { + x_187 = x_183; +} +lean_ctor_set(x_187, 0, x_181); +lean_ctor_set(x_187, 1, x_182); +return x_187; +} } else { @@ -7629,13 +7702,13 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_185)) { +if (lean_is_scalar(x_183)) { x_188 = lean_alloc_ctor(1, 2, 0); } else { - x_188 = x_185; + x_188 = x_183; } -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_184); +lean_ctor_set(x_188, 0, x_181); +lean_ctor_set(x_188, 1, x_182); return x_188; } } @@ -7643,34 +7716,30 @@ return x_188; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -lean_dec(x_44); -x_189 = lean_ctor_get(x_142, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_142, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_191 = x_142; -} else { - lean_dec_ref(x_142); - x_191 = lean_box(0); -} -x_192 = l_Lean_Exception_isRuntime(x_189); +uint8_t x_189; +x_189 = !lean_is_exclusive(x_50); +if (x_189 == 0) +{ +lean_object* x_190; lean_object* x_191; uint8_t x_192; +x_190 = lean_ctor_get(x_50, 0); +x_191 = lean_ctor_get(x_50, 1); +x_192 = l_Lean_Exception_isInterrupt(x_190); if (x_192 == 0) { -lean_object* x_193; -lean_dec(x_191); -lean_dec(x_189); -x_193 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_193; -x_25 = x_190; +uint8_t x_193; +x_193 = l_Lean_Exception_isRuntime(x_190); +if (x_193 == 0) +{ +lean_object* x_194; +lean_free_object(x_50); +lean_dec(x_190); +x_194 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_194; +x_25 = x_191; goto block_41; } else { -lean_object* x_194; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7681,40 +7750,49 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_191)) { - x_194 = lean_alloc_ctor(1, 2, 0); -} else { - x_194 = x_191; -} -lean_ctor_set(x_194, 0, x_189); -lean_ctor_set(x_194, 1, x_190); -return x_194; -} -} +return x_50; } } else { -uint8_t x_195; -x_195 = !lean_is_exclusive(x_42); -if (x_195 == 0) +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_50; +} +} +else { -lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_196 = lean_ctor_get(x_42, 0); -x_197 = lean_ctor_get(x_42, 1); -x_198 = l_Lean_Exception_isRuntime(x_196); +lean_object* x_195; lean_object* x_196; uint8_t x_197; +x_195 = lean_ctor_get(x_50, 0); +x_196 = lean_ctor_get(x_50, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_50); +x_197 = l_Lean_Exception_isInterrupt(x_195); +if (x_197 == 0) +{ +uint8_t x_198; +x_198 = l_Lean_Exception_isRuntime(x_195); if (x_198 == 0) { lean_object* x_199; -lean_free_object(x_42); -lean_dec(x_196); -x_199 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; +lean_dec(x_195); +x_199 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; x_24 = x_199; -x_25 = x_197; +x_25 = x_196; goto block_41; } else { +lean_object* x_200; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7725,30 +7803,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_42; +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_195); +lean_ctor_set(x_200, 1, x_196); +return x_200; } } else { -lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_200 = lean_ctor_get(x_42, 0); -x_201 = lean_ctor_get(x_42, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_42); -x_202 = l_Lean_Exception_isRuntime(x_200); -if (x_202 == 0) -{ -lean_object* x_203; -lean_dec(x_200); -x_203 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__4; -x_24 = x_203; -x_25 = x_201; -goto block_41; -} -else -{ -lean_object* x_204; +lean_object* x_201; lean_dec(x_21); lean_dec(x_12); lean_dec(x_11); @@ -7759,10 +7822,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_200); -lean_ctor_set(x_204, 1, x_201); -return x_204; +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_195); +lean_ctor_set(x_201, 1, x_196); +return x_201; } } } @@ -7839,32 +7902,87 @@ return x_40; } } } +block_49: +{ +uint8_t x_44; +x_44 = l_Lean_Exception_isInterrupt(x_42); +if (x_44 == 0) +{ +uint8_t x_45; +x_45 = l_Lean_Exception_isRuntime(x_42); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_42); +x_46 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__3___closed__1; +x_24 = x_46; +x_25 = x_43; +goto block_41; } else { -lean_object* x_205; lean_object* x_206; +lean_object* x_47; lean_dec(x_21); -x_205 = lean_box(0); -x_206 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_205, x_9, x_10, x_11, x_12, x_20); -return x_206; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_42); +lean_ctor_set(x_47, 1, x_43); +return x_47; } } else { -lean_object* x_207; lean_object* x_208; +lean_object* x_48; +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_43); +return x_48; +} +} +} +else +{ +lean_object* x_202; lean_object* x_203; +lean_dec(x_21); +x_202 = lean_box(0); +x_203 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_202, x_9, x_10, x_11, x_12, x_20); +return x_203; +} +} +else +{ +lean_object* x_204; lean_object* x_205; lean_dec(x_21); lean_dec(x_19); -x_207 = lean_box(0); -x_208 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_207, x_9, x_10, x_11, x_12, x_20); -return x_208; +x_204 = lean_box(0); +x_205 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_204, x_9, x_10, x_11, x_12, x_20); +return x_205; } } else { -lean_object* x_209; lean_object* x_210; -x_209 = lean_box(0); -x_210 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_209, x_9, x_10, x_11, x_12, x_13); -return x_210; +lean_object* x_206; lean_object* x_207; +x_206 = lean_box(0); +x_207 = l_Array_forInUnsafe_loop___at_Lean_MVarId_contradictionCore___spec__4___lambda__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6, x_206, x_9, x_10, x_11, x_12, x_13); +return x_207; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/FunInd.c b/stage0/stdlib/Lean/Meta/Tactic/FunInd.c index 7a1472fd76..468890f55a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/FunInd.c +++ b/stage0/stdlib/Lean/Meta/Tactic/FunInd.c @@ -17,6 +17,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionCase(uint8_t, lean_o LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldCalls___lambda__7___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_collectForwardDeps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Tactic_FunInd_buildInductionBody___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_findRecursor_err___rarg___closed__12; @@ -66,6 +67,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, l LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_removeLamda___at_Lean_Tactic_FunInd_deriveUnaryInduction___spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__17(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldCalls___lambda__6(uint8_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_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Tactic_FunInd_buildInductionBody___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -103,6 +105,7 @@ static lean_object* l_Lean_Tactic_FunInd_collectIHs___lambda__8___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_findRecursor___spec__6___rarg___lambda__5___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_Tactic_FunInd_deduplicateIHs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldCalls___lambda__8(uint8_t, 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_isInterrupt(lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_findRecursor___spec__6___rarg___lambda__13___closed__9; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_maskArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -135,7 +138,6 @@ lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_collectIHs___lambda__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___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* l_Lean_MessageData_ofList(lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldCalls(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_foldCalls___lambda__3___closed__4; lean_object* lean_array_push(lean_object*, lean_object*); @@ -225,6 +227,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction___lambda__1( LEAN_EXPORT lean_object* l_StateT_lift___at_Lean_Tactic_FunInd_buildInductionBody___spec__34___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_stripArgsN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_assertIHs___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_elimOptParam___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_get___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); @@ -274,6 +277,7 @@ LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction___lambda__1__ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_deriveUnaryInduction___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__26___lambda__8___closed__4; lean_object* l_Lean_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__37___lambda__3(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_Lean_Tactic_FunInd_isFunInductName___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_collectIHs___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,6 +411,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_foldCall lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Tactic_FunInd_abstractIndependentMVars___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_Tactic_FunInd_collectIHs___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2(lean_object*); lean_object* l_Lean_Meta_mkProjAndN(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_buildInductionBody___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -415,6 +420,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductio static lean_object* l_Lean_Tactic_FunInd_collectIHs___lambda__4___closed__2; static lean_object* l_Lean_Tactic_FunInd_isPProdProj___closed__6; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Tactic_FunInd_buildInductionBody___spec__39(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_isPProdProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_deriveUnaryInduction___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(lean_object*, lean_object*); @@ -473,6 +479,7 @@ lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_obj static lean_object* l_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__26___lambda__2___closed__2; static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction___lambda__6___closed__11; lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction___lambda__5___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_Lean_Tactic_FunInd_foldCalls___lambda__14___closed__2; @@ -637,6 +644,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lea LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_findRecursor___spec__6___rarg___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_Lean_Meta_MatcherApp_transform___at_Lean_Tactic_FunInd_buildInductionBody___spec__26___lambda__6___closed__3; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_findRecursor___spec__6___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction___lambda__7___closed__3; @@ -862,6 +870,7 @@ extern lean_object* l_Lean_instInhabitedName; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction___lambda__5(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_Tactic_FunInd_collectIHs___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Tactic_FunInd_findRecursor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___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_Lean_Tactic_FunInd_foldCalls___lambda__3___closed__6; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Tactic_FunInd_buildInductionBody___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -886,6 +895,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_foldCalls___s lean_object* l___private_Lean_Meta_Match_MatcherApp_Transform_0__Lean_Meta_MatcherApp_withUserNamesImpl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_foldCalls___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Tactic_FunInd_unpackMutualInduction___spec__1___closed__2; +static lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_foldCalls___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Tactic_FunInd_collectIHs___lambda__7___closed__1; lean_object* l_List_redLength___rarg(lean_object*); @@ -1008,6 +1018,7 @@ static lean_object* l_Lean_Tactic_FunInd_findRecursor_err___rarg___closed__14; LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_buildInductionBody___lambda__4___boxed(lean_object**); static lean_object* l_Lean_Tactic_FunInd_unpackMutualInduction___lambda__6___closed__9; lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_deriveUnaryInduction___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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Tactic_FunInd_deriveUnaryInduction___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Tactic_FunInd_foldCalls___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*); @@ -22013,10 +22024,228 @@ goto _start; } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1() { _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2() { +_start: +{ +lean_object* x_1; x_1 = l_Lean_warningAsError; return x_1; } @@ -22024,766 +22253,854 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40(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; uint8_t x_470; uint8_t x_471; -x_470 = 2; -x_471 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_470); -if (x_471 == 0) +lean_object* x_10; uint8_t x_322; uint8_t x_323; +x_322 = 2; +x_323 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_322); +if (x_323 == 0) { -lean_object* x_472; -x_472 = lean_box(0); -x_10 = x_472; -goto block_469; +lean_object* x_324; +x_324 = lean_box(0); +x_10 = x_324; +goto block_321; } else { -lean_object* x_473; uint8_t x_474; +lean_object* x_325; uint8_t x_326; lean_inc(x_2); -x_473 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_474 = lean_unbox(x_473); -lean_dec(x_473); -if (x_474 == 0) +x_325 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_326 = lean_unbox(x_325); +lean_dec(x_325); +if (x_326 == 0) { -lean_object* x_475; -x_475 = lean_box(0); -x_10 = x_475; -goto block_469; +lean_object* x_327; +x_327 = lean_box(0); +x_10 = x_327; +goto block_321; } else { -lean_object* x_476; lean_object* x_477; lean_object* x_478; +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_dec(x_7); lean_dec(x_2); -x_476 = lean_box(0); -x_477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_477, 0, x_476); -lean_ctor_set(x_477, 1, x_4); -x_478 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_478, 0, x_477); -lean_ctor_set(x_478, 1, x_9); -return x_478; +x_328 = lean_box(0); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_4); +x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_9); +return x_330; } } -block_469: +block_321: { -uint8_t x_11; lean_object* x_463; uint8_t x_464; uint8_t x_465; +uint8_t x_11; lean_object* x_315; uint8_t x_316; uint8_t x_317; lean_dec(x_10); -x_463 = lean_ctor_get(x_7, 2); -lean_inc(x_463); -x_464 = 1; -x_465 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_464); -if (x_465 == 0) +x_315 = lean_ctor_get(x_7, 2); +lean_inc(x_315); +x_316 = 1; +x_317 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_316); +if (x_317 == 0) { -lean_dec(x_463); +lean_dec(x_315); x_11 = x_3; -goto block_462; +goto block_314; } else { -lean_object* x_466; uint8_t x_467; -x_466 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; -x_467 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_463, x_466); -lean_dec(x_463); -if (x_467 == 0) +lean_object* x_318; uint8_t x_319; +x_318 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2; +x_319 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_315, x_318); +lean_dec(x_315); +if (x_319 == 0) { x_11 = x_3; -goto block_462; +goto block_314; } else { -uint8_t x_468; -x_468 = 2; -x_11 = x_468; -goto block_462; +uint8_t x_320; +x_320 = 2; +x_11 = x_320; +goto block_314; } } -block_462: +block_314: { -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_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; x_12 = lean_ctor_get(x_7, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_7, 1); lean_inc(x_13); x_14 = lean_ctor_get(x_7, 5); lean_inc(x_14); -x_15 = lean_ctor_get(x_7, 6); -lean_inc(x_15); -x_16 = lean_ctor_get(x_7, 7); -lean_inc(x_16); -x_17 = l_Lean_replaceRef(x_1, x_14); +x_15 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_16 = l_Lean_replaceRef(x_1, x_14); lean_dec(x_14); -x_18 = 0; -x_19 = l_Lean_Syntax_getPos_x3f(x_17, x_18); -x_20 = l_Lean_Syntax_getTailPos_x3f(x_17, x_18); +x_17 = 0; +x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); +x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +if (lean_obj_tag(x_18) == 0) +{ if (lean_obj_tag(x_19) == 0) { -if (lean_obj_tag(x_20) == 0) +lean_object* x_20; uint8_t x_21; +x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +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_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Lean_FileMap_toPosition(x_13, x_24); +lean_inc(x_25); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +if (x_15 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_free_object(x_20); +x_27 = lean_box(0); +x_28 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_22, x_12, x_25, x_26, x_11, x_27, x_7, x_8, x_23); lean_dec(x_7); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 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; uint8_t x_32; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Lean_FileMap_toPosition(x_13, x_25); -lean_inc(x_26); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_21, 1, x_16); -lean_ctor_set(x_21, 0, x_15); -x_28 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_23); -x_29 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_30 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_26); -lean_ctor_set(x_30, 2, x_27); -lean_ctor_set(x_30, 3, x_29); -lean_ctor_set(x_30, 4, x_28); -lean_ctor_set_uint8(x_30, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 1, x_11); -x_31 = lean_st_ref_take(x_8, x_24); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_31, 0); -x_34 = !lean_is_exclusive(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; -x_35 = lean_ctor_get(x_31, 1); -x_36 = lean_ctor_get(x_33, 5); -x_37 = l_Lean_PersistentArray_push___rarg(x_36, x_30); -lean_ctor_set(x_33, 5, x_37); -x_38 = lean_st_ref_set(x_8, x_33, x_35); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 0); -lean_dec(x_40); -x_41 = lean_box(0); +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_4); -lean_ctor_set(x_31, 0, x_41); -lean_ctor_set(x_38, 0, x_31); -return x_38; +lean_ctor_set(x_28, 0, x_31); +return x_28; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_38, 1); -lean_inc(x_42); -lean_dec(x_38); -x_43 = lean_box(0); -lean_ctor_set(x_31, 1, x_4); -lean_ctor_set(x_31, 0, x_43); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_28); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_4); +x_35 = lean_alloc_ctor(0, 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 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_22); +x_37 = l_Lean_MessageData_hasTag(x_36, x_22); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_22); +lean_dec(x_12); +lean_dec(x_7); +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_4); +lean_ctor_set(x_20, 0, x_39); +return x_20; +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_free_object(x_20); +x_40 = lean_box(0); +x_41 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_22, x_12, x_25, x_26, x_11, x_40, x_7, x_8, x_23); +lean_dec(x_7); +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); x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_31); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_4); +lean_ctor_set(x_41, 0, x_44); +return x_41; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_41, 0); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_41); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_4); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} } } else { -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; -x_45 = lean_ctor_get(x_31, 1); -x_46 = lean_ctor_get(x_33, 0); -x_47 = lean_ctor_get(x_33, 1); -x_48 = lean_ctor_get(x_33, 2); -x_49 = lean_ctor_get(x_33, 3); -x_50 = lean_ctor_get(x_33, 4); -x_51 = lean_ctor_get(x_33, 5); -x_52 = lean_ctor_get(x_33, 6); -lean_inc(x_52); -lean_inc(x_51); +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_20, 0); +x_50 = lean_ctor_get(x_20, 1); lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_33); -x_53 = l_Lean_PersistentArray_push___rarg(x_51, x_30); -x_54 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_54, 0, x_46); -lean_ctor_set(x_54, 1, x_47); -lean_ctor_set(x_54, 2, x_48); -lean_ctor_set(x_54, 3, x_49); -lean_ctor_set(x_54, 4, x_50); -lean_ctor_set(x_54, 5, x_53); -lean_ctor_set(x_54, 6, x_52); -x_55 = lean_st_ref_set(x_8, x_54, x_45); -x_56 = lean_ctor_get(x_55, 1); +lean_dec(x_20); +x_51 = lean_unsigned_to_nat(0u); +x_52 = l_Lean_FileMap_toPosition(x_13, x_51); +lean_inc(x_52); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +if (x_15 == 0) +{ +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; +x_54 = lean_box(0); +x_55 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_49, x_12, x_52, x_53, x_11, x_54, x_7, x_8, x_50); +lean_dec(x_7); +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); if (lean_is_exclusive(x_55)) { lean_ctor_release(x_55, 0); lean_ctor_release(x_55, 1); - x_57 = x_55; + x_58 = x_55; } else { lean_dec_ref(x_55); - x_57 = lean_box(0); + x_58 = lean_box(0); } -x_58 = lean_box(0); -lean_ctor_set(x_31, 1, x_4); -lean_ctor_set(x_31, 0, x_58); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 2, 0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_4); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_59 = x_57; -} -lean_ctor_set(x_59, 0, x_31); -lean_ctor_set(x_59, 1, x_56); -return x_59; + x_60 = x_58; } +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +return x_60; } else { -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; -x_60 = lean_ctor_get(x_31, 0); -x_61 = lean_ctor_get(x_31, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_31); -x_62 = lean_ctor_get(x_60, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -x_64 = lean_ctor_get(x_60, 2); -lean_inc(x_64); -x_65 = lean_ctor_get(x_60, 3); -lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 4); -lean_inc(x_66); -x_67 = lean_ctor_get(x_60, 5); -lean_inc(x_67); -x_68 = lean_ctor_get(x_60, 6); -lean_inc(x_68); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - lean_ctor_release(x_60, 2); - lean_ctor_release(x_60, 3); - lean_ctor_release(x_60, 4); - lean_ctor_release(x_60, 5); - lean_ctor_release(x_60, 6); - x_69 = x_60; -} else { - lean_dec_ref(x_60); - x_69 = lean_box(0); -} -x_70 = l_Lean_PersistentArray_push___rarg(x_67, x_30); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 7, 0); -} else { - x_71 = x_69; -} -lean_ctor_set(x_71, 0, x_62); -lean_ctor_set(x_71, 1, x_63); -lean_ctor_set(x_71, 2, x_64); -lean_ctor_set(x_71, 3, x_65); -lean_ctor_set(x_71, 4, x_66); -lean_ctor_set(x_71, 5, x_70); -lean_ctor_set(x_71, 6, x_68); -x_72 = lean_st_ref_set(x_8, x_71, x_61); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; -} else { - lean_dec_ref(x_72); - x_74 = lean_box(0); -} -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_4); -if (lean_is_scalar(x_74)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_74; -} -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_73); -return x_77; -} -} -else +lean_object* x_61; uint8_t x_62; +x_61 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_49); +x_62 = l_Lean_MessageData_hasTag(x_61, x_49); +if (x_62 == 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; 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; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_78 = lean_ctor_get(x_21, 0); -x_79 = lean_ctor_get(x_21, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_21); -x_80 = lean_unsigned_to_nat(0u); -x_81 = l_Lean_FileMap_toPosition(x_13, x_80); -lean_inc(x_81); -x_82 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_82, 0, x_81); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_15); -lean_ctor_set(x_83, 1, x_16); -x_84 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_78); -x_85 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_86 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_86, 0, x_12); -lean_ctor_set(x_86, 1, x_81); -lean_ctor_set(x_86, 2, x_82); -lean_ctor_set(x_86, 3, x_85); -lean_ctor_set(x_86, 4, x_84); -lean_ctor_set_uint8(x_86, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_86, sizeof(void*)*5 + 1, x_11); -x_87 = lean_st_ref_take(x_8, x_79); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_90 = x_87; -} else { - lean_dec_ref(x_87); - x_90 = lean_box(0); -} -x_91 = lean_ctor_get(x_88, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_88, 1); -lean_inc(x_92); -x_93 = lean_ctor_get(x_88, 2); -lean_inc(x_93); -x_94 = lean_ctor_get(x_88, 3); -lean_inc(x_94); -x_95 = lean_ctor_get(x_88, 4); -lean_inc(x_95); -x_96 = lean_ctor_get(x_88, 5); -lean_inc(x_96); -x_97 = lean_ctor_get(x_88, 6); -lean_inc(x_97); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - lean_ctor_release(x_88, 2); - lean_ctor_release(x_88, 3); - lean_ctor_release(x_88, 4); - lean_ctor_release(x_88, 5); - lean_ctor_release(x_88, 6); - x_98 = x_88; -} else { - lean_dec_ref(x_88); - x_98 = lean_box(0); -} -x_99 = l_Lean_PersistentArray_push___rarg(x_96, x_86); -if (lean_is_scalar(x_98)) { - x_100 = lean_alloc_ctor(0, 7, 0); -} else { - x_100 = x_98; -} -lean_ctor_set(x_100, 0, x_91); -lean_ctor_set(x_100, 1, x_92); -lean_ctor_set(x_100, 2, x_93); -lean_ctor_set(x_100, 3, x_94); -lean_ctor_set(x_100, 4, x_95); -lean_ctor_set(x_100, 5, x_99); -lean_ctor_set(x_100, 6, x_97); -x_101 = lean_st_ref_set(x_8, x_100, x_89); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; -} else { - lean_dec_ref(x_101); - x_103 = lean_box(0); -} -x_104 = lean_box(0); -if (lean_is_scalar(x_90)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_90; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_4); -if (lean_is_scalar(x_103)) { - x_106 = lean_alloc_ctor(0, 2, 0); -} else { - x_106 = x_103; -} -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_102); -return x_106; -} -} -else -{ -uint8_t x_107; -x_107 = !lean_is_exclusive(x_20); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_108 = lean_ctor_get(x_20, 0); -x_109 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_53); +lean_dec(x_52); +lean_dec(x_49); +lean_dec(x_12); lean_dec(x_7); -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 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; uint8_t x_120; -x_111 = lean_ctor_get(x_109, 0); -x_112 = lean_ctor_get(x_109, 1); -x_113 = lean_unsigned_to_nat(0u); -lean_inc(x_13); -x_114 = l_Lean_FileMap_toPosition(x_13, x_113); -x_115 = l_Lean_FileMap_toPosition(x_13, x_108); -lean_dec(x_108); -lean_ctor_set(x_20, 0, x_115); -lean_ctor_set(x_109, 1, x_16); -lean_ctor_set(x_109, 0, x_15); -x_116 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_116, 0, x_109); -lean_ctor_set(x_116, 1, x_111); -x_117 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_118 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_118, 0, x_12); -lean_ctor_set(x_118, 1, x_114); -lean_ctor_set(x_118, 2, x_20); -lean_ctor_set(x_118, 3, x_117); -lean_ctor_set(x_118, 4, x_116); -lean_ctor_set_uint8(x_118, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_118, sizeof(void*)*5 + 1, x_11); -x_119 = lean_st_ref_take(x_8, x_112); -x_120 = !lean_is_exclusive(x_119); -if (x_120 == 0) -{ -lean_object* x_121; uint8_t x_122; -x_121 = lean_ctor_get(x_119, 0); -x_122 = !lean_is_exclusive(x_121); -if (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_119, 1); -x_124 = lean_ctor_get(x_121, 5); -x_125 = l_Lean_PersistentArray_push___rarg(x_124, x_118); -lean_ctor_set(x_121, 5, x_125); -x_126 = lean_st_ref_set(x_8, x_121, x_123); -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 = lean_box(0); -lean_ctor_set(x_119, 1, x_4); -lean_ctor_set(x_119, 0, x_129); -lean_ctor_set(x_126, 0, x_119); -return x_126; +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_4); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_50); +return x_65; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_126, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_66 = lean_box(0); +x_67 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_49, x_12, x_52, x_53, x_11, x_66, x_7, x_8, x_50); +lean_dec(x_7); +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_67); + x_70 = lean_box(0); +} +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_4); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_70; +} +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_69); +return x_72; +} +} +} +} +else +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_19); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_74 = lean_ctor_get(x_19, 0); +x_75 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_76 = !lean_is_exclusive(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; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +x_79 = lean_unsigned_to_nat(0u); +lean_inc(x_13); +x_80 = l_Lean_FileMap_toPosition(x_13, x_79); +x_81 = l_Lean_FileMap_toPosition(x_13, x_74); +lean_dec(x_74); +lean_ctor_set(x_19, 0, x_81); +if (x_15 == 0) +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_free_object(x_75); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_77, x_12, x_80, x_19, x_11, x_82, x_7, x_8, x_78); +lean_dec(x_7); +x_84 = !lean_is_exclusive(x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_83, 0); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_4); +lean_ctor_set(x_83, 0, x_86); +return x_83; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_83, 0); +x_88 = lean_ctor_get(x_83, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_83); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_4); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_88); +return x_90; +} +} +else +{ +lean_object* x_91; uint8_t x_92; +x_91 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_77); +x_92 = l_Lean_MessageData_hasTag(x_91, x_77); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; +lean_dec(x_19); +lean_dec(x_80); +lean_dec(x_77); +lean_dec(x_12); +lean_dec(x_7); +x_93 = lean_box(0); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_4); +lean_ctor_set(x_75, 0, x_94); +return x_75; +} +else +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +lean_free_object(x_75); +x_95 = lean_box(0); +x_96 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_77, x_12, x_80, x_19, x_11, x_95, x_7, x_8, x_78); +lean_dec(x_7); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_4); +lean_ctor_set(x_96, 0, x_99); +return x_96; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_96, 0); +x_101 = lean_ctor_get(x_96, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_96); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_4); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_104 = lean_ctor_get(x_75, 0); +x_105 = lean_ctor_get(x_75, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_75); +x_106 = lean_unsigned_to_nat(0u); +lean_inc(x_13); +x_107 = l_Lean_FileMap_toPosition(x_13, x_106); +x_108 = l_Lean_FileMap_toPosition(x_13, x_74); +lean_dec(x_74); +lean_ctor_set(x_19, 0, x_108); +if (x_15 == 0) +{ +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_109 = lean_box(0); +x_110 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_104, x_12, x_107, x_19, x_11, x_109, x_7, x_8, x_105); +lean_dec(x_7); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_113 = x_110; +} else { + lean_dec_ref(x_110); + x_113 = lean_box(0); +} +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_4); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_113; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; +} +else +{ +lean_object* x_116; uint8_t x_117; +x_116 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_104); +x_117 = l_Lean_MessageData_hasTag(x_116, x_104); +if (x_117 == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_19); +lean_dec(x_107); +lean_dec(x_104); +lean_dec(x_12); +lean_dec(x_7); +x_118 = lean_box(0); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_4); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_105); +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; lean_object* x_127; +x_121 = lean_box(0); +x_122 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_104, x_12, x_107, x_19, x_11, x_121, x_7, x_8, x_105); +lean_dec(x_7); +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_4); +if (lean_is_scalar(x_125)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_125; +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_124); +return x_127; +} +} +} +} +else +{ +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; +x_128 = lean_ctor_get(x_19, 0); +lean_inc(x_128); +lean_dec(x_19); +x_129 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_130 = lean_ctor_get(x_129, 0); lean_inc(x_130); -lean_dec(x_126); -x_131 = lean_box(0); -lean_ctor_set(x_119, 1, x_4); -lean_ctor_set(x_119, 0, x_131); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_130); -return x_132; -} -} -else -{ -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; -x_133 = lean_ctor_get(x_119, 1); -x_134 = lean_ctor_get(x_121, 0); -x_135 = lean_ctor_get(x_121, 1); -x_136 = lean_ctor_get(x_121, 2); -x_137 = lean_ctor_get(x_121, 3); -x_138 = lean_ctor_get(x_121, 4); -x_139 = lean_ctor_get(x_121, 5); -x_140 = lean_ctor_get(x_121, 6); -lean_inc(x_140); -lean_inc(x_139); -lean_inc(x_138); -lean_inc(x_137); -lean_inc(x_136); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_121); -x_141 = l_Lean_PersistentArray_push___rarg(x_139, x_118); -x_142 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_142, 0, x_134); -lean_ctor_set(x_142, 1, x_135); -lean_ctor_set(x_142, 2, x_136); -lean_ctor_set(x_142, 3, x_137); -lean_ctor_set(x_142, 4, x_138); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_140); -x_143 = lean_st_ref_set(x_8, x_142, x_133); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; +x_131 = lean_ctor_get(x_129, 1); +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_143); - x_145 = lean_box(0); + lean_dec_ref(x_129); + x_132 = lean_box(0); } -x_146 = lean_box(0); -lean_ctor_set(x_119, 1, x_4); -lean_ctor_set(x_119, 0, x_146); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_119); -lean_ctor_set(x_147, 1, x_144); -return x_147; -} -} -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; 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; -x_148 = lean_ctor_get(x_119, 0); -x_149 = lean_ctor_get(x_119, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_119); -x_150 = lean_ctor_get(x_148, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_148, 1); -lean_inc(x_151); -x_152 = lean_ctor_get(x_148, 2); -lean_inc(x_152); -x_153 = lean_ctor_get(x_148, 3); -lean_inc(x_153); -x_154 = lean_ctor_get(x_148, 4); -lean_inc(x_154); -x_155 = lean_ctor_get(x_148, 5); -lean_inc(x_155); -x_156 = lean_ctor_get(x_148, 6); -lean_inc(x_156); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - lean_ctor_release(x_148, 2); - lean_ctor_release(x_148, 3); - lean_ctor_release(x_148, 4); - lean_ctor_release(x_148, 5); - lean_ctor_release(x_148, 6); - x_157 = x_148; -} else { - lean_dec_ref(x_148); - x_157 = lean_box(0); -} -x_158 = l_Lean_PersistentArray_push___rarg(x_155, x_118); -if (lean_is_scalar(x_157)) { - x_159 = lean_alloc_ctor(0, 7, 0); -} else { - x_159 = x_157; -} -lean_ctor_set(x_159, 0, x_150); -lean_ctor_set(x_159, 1, x_151); -lean_ctor_set(x_159, 2, x_152); -lean_ctor_set(x_159, 3, x_153); -lean_ctor_set(x_159, 4, x_154); -lean_ctor_set(x_159, 5, x_158); -lean_ctor_set(x_159, 6, x_156); -x_160 = lean_st_ref_set(x_8, x_159, x_149); -x_161 = lean_ctor_get(x_160, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_162 = x_160; -} else { - lean_dec_ref(x_160); - x_162 = lean_box(0); -} -x_163 = lean_box(0); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_4); -if (lean_is_scalar(x_162)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_162; -} -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_161); -return x_165; -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_166 = lean_ctor_get(x_109, 0); -x_167 = lean_ctor_get(x_109, 1); -lean_inc(x_167); -lean_inc(x_166); -lean_dec(x_109); -x_168 = lean_unsigned_to_nat(0u); +x_133 = lean_unsigned_to_nat(0u); lean_inc(x_13); -x_169 = l_Lean_FileMap_toPosition(x_13, x_168); -x_170 = l_Lean_FileMap_toPosition(x_13, x_108); -lean_dec(x_108); -lean_ctor_set(x_20, 0, x_170); +x_134 = l_Lean_FileMap_toPosition(x_13, x_133); +x_135 = l_Lean_FileMap_toPosition(x_13, x_128); +lean_dec(x_128); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_135); +if (x_15 == 0) +{ +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_dec(x_132); +x_137 = lean_box(0); +x_138 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_130, x_12, x_134, x_136, x_11, x_137, x_7, x_8, x_131); +lean_dec(x_7); +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_138); + x_141 = lean_box(0); +} +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_4); +if (lean_is_scalar(x_141)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_141; +} +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_140); +return x_143; +} +else +{ +lean_object* x_144; uint8_t x_145; +x_144 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_130); +x_145 = l_Lean_MessageData_hasTag(x_144, x_130); +if (x_145 == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_136); +lean_dec(x_134); +lean_dec(x_130); +lean_dec(x_12); +lean_dec(x_7); +x_146 = lean_box(0); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_4); +if (lean_is_scalar(x_132)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_132; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_131); +return x_148; +} +else +{ +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_dec(x_132); +x_149 = lean_box(0); +x_150 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_130, x_12, x_134, x_136, x_11, x_149, x_7, x_8, x_131); +lean_dec(x_7); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_153 = x_150; +} else { + lean_dec_ref(x_150); + x_153 = lean_box(0); +} +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_4); +if (lean_is_scalar(x_153)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_153; +} +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_152); +return x_155; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_156; +x_156 = !lean_is_exclusive(x_18); +if (x_156 == 0) +{ +lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_157 = lean_ctor_get(x_18, 0); +x_158 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_159 = !lean_is_exclusive(x_158); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_158, 0); +x_161 = lean_ctor_get(x_158, 1); +x_162 = l_Lean_FileMap_toPosition(x_13, x_157); +lean_dec(x_157); +lean_inc(x_162); +lean_ctor_set(x_18, 0, x_162); +if (x_15 == 0) +{ +lean_object* x_163; lean_object* x_164; uint8_t x_165; +lean_free_object(x_158); +x_163 = lean_box(0); +x_164 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_160, x_12, x_162, x_18, x_11, x_163, x_7, x_8, x_161); +lean_dec(x_7); +x_165 = !lean_is_exclusive(x_164); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; +x_166 = lean_ctor_get(x_164, 0); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_4); +lean_ctor_set(x_164, 0, x_167); +return x_164; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_168 = lean_ctor_get(x_164, 0); +x_169 = lean_ctor_get(x_164, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_164); +x_170 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_4); x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_15); -lean_ctor_set(x_171, 1, x_16); -x_172 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_166); -x_173 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_174 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_174, 0, x_12); -lean_ctor_set(x_174, 1, x_169); -lean_ctor_set(x_174, 2, x_20); -lean_ctor_set(x_174, 3, x_173); -lean_ctor_set(x_174, 4, x_172); -lean_ctor_set_uint8(x_174, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_174, sizeof(void*)*5 + 1, x_11); -x_175 = lean_st_ref_take(x_8, x_167); -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_178 = x_175; -} else { - lean_dec_ref(x_175); - x_178 = lean_box(0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_169); +return x_171; } -x_179 = lean_ctor_get(x_176, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_176, 1); -lean_inc(x_180); -x_181 = lean_ctor_get(x_176, 2); -lean_inc(x_181); -x_182 = lean_ctor_get(x_176, 3); +} +else +{ +lean_object* x_172; uint8_t x_173; +x_172 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_160); +x_173 = l_Lean_MessageData_hasTag(x_172, x_160); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; +lean_dec(x_18); +lean_dec(x_162); +lean_dec(x_160); +lean_dec(x_12); +lean_dec(x_7); +x_174 = lean_box(0); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_4); +lean_ctor_set(x_158, 0, x_175); +return x_158; +} +else +{ +lean_object* x_176; lean_object* x_177; uint8_t x_178; +lean_free_object(x_158); +x_176 = lean_box(0); +x_177 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_160, x_12, x_162, x_18, x_11, x_176, x_7, x_8, x_161); +lean_dec(x_7); +x_178 = !lean_is_exclusive(x_177); +if (x_178 == 0) +{ +lean_object* x_179; lean_object* x_180; +x_179 = lean_ctor_get(x_177, 0); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_4); +lean_ctor_set(x_177, 0, x_180); +return x_177; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_181 = lean_ctor_get(x_177, 0); +x_182 = lean_ctor_get(x_177, 1); lean_inc(x_182); -x_183 = lean_ctor_get(x_176, 4); -lean_inc(x_183); -x_184 = lean_ctor_get(x_176, 5); -lean_inc(x_184); -x_185 = lean_ctor_get(x_176, 6); +lean_inc(x_181); +lean_dec(x_177); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_4); +x_184 = lean_alloc_ctor(0, 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_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_158, 0); +x_186 = lean_ctor_get(x_158, 1); +lean_inc(x_186); lean_inc(x_185); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - lean_ctor_release(x_176, 2); - lean_ctor_release(x_176, 3); - lean_ctor_release(x_176, 4); - lean_ctor_release(x_176, 5); - lean_ctor_release(x_176, 6); - x_186 = x_176; -} else { - lean_dec_ref(x_176); - x_186 = lean_box(0); -} -x_187 = l_Lean_PersistentArray_push___rarg(x_184, x_174); -if (lean_is_scalar(x_186)) { - x_188 = lean_alloc_ctor(0, 7, 0); -} else { - x_188 = x_186; -} -lean_ctor_set(x_188, 0, x_179); -lean_ctor_set(x_188, 1, x_180); -lean_ctor_set(x_188, 2, x_181); -lean_ctor_set(x_188, 3, x_182); -lean_ctor_set(x_188, 4, x_183); -lean_ctor_set(x_188, 5, x_187); -lean_ctor_set(x_188, 6, x_185); -x_189 = lean_st_ref_set(x_8, x_188, x_177); -x_190 = lean_ctor_get(x_189, 1); +lean_dec(x_158); +x_187 = l_Lean_FileMap_toPosition(x_13, x_157); +lean_dec(x_157); +lean_inc(x_187); +lean_ctor_set(x_18, 0, x_187); +if (x_15 == 0) +{ +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; +x_188 = lean_box(0); +x_189 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_185, x_12, x_187, x_18, x_11, x_188, x_7, x_8, x_186); +lean_dec(x_7); +x_190 = lean_ctor_get(x_189, 0); lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); if (lean_is_exclusive(x_189)) { lean_ctor_release(x_189, 0); lean_ctor_release(x_189, 1); - x_191 = x_189; + x_192 = x_189; } else { lean_dec_ref(x_189); - x_191 = lean_box(0); + x_192 = lean_box(0); } -x_192 = lean_box(0); -if (lean_is_scalar(x_178)) { - x_193 = lean_alloc_ctor(0, 2, 0); -} else { - x_193 = x_178; -} -lean_ctor_set(x_193, 0, x_192); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_190); lean_ctor_set(x_193, 1, x_4); -if (lean_is_scalar(x_191)) { +if (lean_is_scalar(x_192)) { x_194 = lean_alloc_ctor(0, 2, 0); } else { - x_194 = x_191; + x_194 = x_192; } lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_190); +lean_ctor_set(x_194, 1, x_191); return x_194; } +else +{ +lean_object* x_195; uint8_t x_196; +x_195 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_185); +x_196 = l_Lean_MessageData_hasTag(x_195, x_185); +if (x_196 == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_18); +lean_dec(x_187); +lean_dec(x_185); +lean_dec(x_12); +lean_dec(x_7); +x_197 = lean_box(0); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_4); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_186); +return x_199; +} +else +{ +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; +x_200 = lean_box(0); +x_201 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_185, x_12, x_187, x_18, x_11, x_200, x_7, x_8, x_186); +lean_dec(x_7); +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_204 = x_201; +} else { + lean_dec_ref(x_201); + x_204 = lean_box(0); +} +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_202); +lean_ctor_set(x_205, 1, x_4); +if (lean_is_scalar(x_204)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_204; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_203); +return x_206; +} +} +} } else { -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; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_195 = lean_ctor_get(x_20, 0); -lean_inc(x_195); -lean_dec(x_20); -x_196 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_199 = x_196; -} else { - lean_dec_ref(x_196); - x_199 = lean_box(0); -} -x_200 = lean_unsigned_to_nat(0u); -lean_inc(x_13); -x_201 = l_Lean_FileMap_toPosition(x_13, x_200); -x_202 = l_Lean_FileMap_toPosition(x_13, x_195); -lean_dec(x_195); -x_203 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_203, 0, x_202); -if (lean_is_scalar(x_199)) { - x_204 = lean_alloc_ctor(0, 2, 0); -} else { - x_204 = x_199; -} -lean_ctor_set(x_204, 0, x_15); -lean_ctor_set(x_204, 1, x_16); -x_205 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_197); -x_206 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_207 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_207, 0, x_12); -lean_ctor_set(x_207, 1, x_201); -lean_ctor_set(x_207, 2, x_203); -lean_ctor_set(x_207, 3, x_206); -lean_ctor_set(x_207, 4, x_205); -lean_ctor_set_uint8(x_207, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_207, sizeof(void*)*5 + 1, x_11); -x_208 = lean_st_ref_take(x_8, x_198); +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_207 = lean_ctor_get(x_18, 0); +lean_inc(x_207); +lean_dec(x_18); +x_208 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); x_209 = lean_ctor_get(x_208, 0); lean_inc(x_209); x_210 = lean_ctor_get(x_208, 1); @@ -22796,957 +23113,436 @@ if (lean_is_exclusive(x_208)) { lean_dec_ref(x_208); x_211 = lean_box(0); } -x_212 = lean_ctor_get(x_209, 0); +x_212 = l_Lean_FileMap_toPosition(x_13, x_207); +lean_dec(x_207); lean_inc(x_212); -x_213 = lean_ctor_get(x_209, 1); -lean_inc(x_213); -x_214 = lean_ctor_get(x_209, 2); -lean_inc(x_214); -x_215 = lean_ctor_get(x_209, 3); -lean_inc(x_215); -x_216 = lean_ctor_get(x_209, 4); +x_213 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_213, 0, x_212); +if (x_15 == 0) +{ +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_dec(x_211); +x_214 = lean_box(0); +x_215 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_209, x_12, x_212, x_213, x_11, x_214, x_7, x_8, x_210); +lean_dec(x_7); +x_216 = lean_ctor_get(x_215, 0); lean_inc(x_216); -x_217 = lean_ctor_get(x_209, 5); +x_217 = lean_ctor_get(x_215, 1); lean_inc(x_217); -x_218 = lean_ctor_get(x_209, 6); -lean_inc(x_218); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - lean_ctor_release(x_209, 2); - lean_ctor_release(x_209, 3); - lean_ctor_release(x_209, 4); - lean_ctor_release(x_209, 5); - lean_ctor_release(x_209, 6); - x_219 = x_209; +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_218 = x_215; } else { - lean_dec_ref(x_209); - x_219 = lean_box(0); + lean_dec_ref(x_215); + x_218 = lean_box(0); } -x_220 = l_Lean_PersistentArray_push___rarg(x_217, x_207); -if (lean_is_scalar(x_219)) { - x_221 = lean_alloc_ctor(0, 7, 0); +x_219 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_219, 0, x_216); +lean_ctor_set(x_219, 1, x_4); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 0); } else { - x_221 = x_219; + x_220 = x_218; } -lean_ctor_set(x_221, 0, x_212); -lean_ctor_set(x_221, 1, x_213); -lean_ctor_set(x_221, 2, x_214); -lean_ctor_set(x_221, 3, x_215); -lean_ctor_set(x_221, 4, x_216); -lean_ctor_set(x_221, 5, x_220); -lean_ctor_set(x_221, 6, x_218); -x_222 = lean_st_ref_set(x_8, x_221, x_210); -x_223 = lean_ctor_get(x_222, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_224 = x_222; -} else { - lean_dec_ref(x_222); - x_224 = lean_box(0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_217); +return x_220; } -x_225 = lean_box(0); +else +{ +lean_object* x_221; uint8_t x_222; +x_221 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_209); +x_222 = l_Lean_MessageData_hasTag(x_221, x_209); +if (x_222 == 0) +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_dec(x_213); +lean_dec(x_212); +lean_dec(x_209); +lean_dec(x_12); +lean_dec(x_7); +x_223 = lean_box(0); +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_4); if (lean_is_scalar(x_211)) { - x_226 = lean_alloc_ctor(0, 2, 0); + x_225 = lean_alloc_ctor(0, 2, 0); } else { - x_226 = x_211; -} -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_4); -if (lean_is_scalar(x_224)) { - x_227 = lean_alloc_ctor(0, 2, 0); -} else { - x_227 = x_224; -} -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_223); -return x_227; -} + x_225 = x_211; } +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_210); +return x_225; } else { -if (lean_obj_tag(x_20) == 0) -{ -uint8_t x_228; -x_228 = !lean_is_exclusive(x_19); -if (x_228 == 0) -{ -lean_object* x_229; lean_object* x_230; uint8_t x_231; -x_229 = lean_ctor_get(x_19, 0); -x_230 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +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_dec(x_211); +x_226 = lean_box(0); +x_227 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_209, x_12, x_212, x_213, x_11, x_226, x_7, x_8, x_210); lean_dec(x_7); -x_231 = !lean_is_exclusive(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; uint8_t x_239; -x_232 = lean_ctor_get(x_230, 0); -x_233 = lean_ctor_get(x_230, 1); -x_234 = l_Lean_FileMap_toPosition(x_13, x_229); -lean_dec(x_229); -lean_inc(x_234); -lean_ctor_set(x_19, 0, x_234); -lean_ctor_set(x_230, 1, x_16); -lean_ctor_set(x_230, 0, x_15); -x_235 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_235, 0, x_230); -lean_ctor_set(x_235, 1, x_232); -x_236 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_237 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_237, 0, x_12); -lean_ctor_set(x_237, 1, x_234); -lean_ctor_set(x_237, 2, x_19); -lean_ctor_set(x_237, 3, x_236); -lean_ctor_set(x_237, 4, x_235); -lean_ctor_set_uint8(x_237, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_237, sizeof(void*)*5 + 1, x_11); -x_238 = lean_st_ref_take(x_8, x_233); -x_239 = !lean_is_exclusive(x_238); -if (x_239 == 0) -{ -lean_object* x_240; uint8_t x_241; -x_240 = lean_ctor_get(x_238, 0); -x_241 = !lean_is_exclusive(x_240); -if (x_241 == 0) -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; -x_242 = lean_ctor_get(x_238, 1); -x_243 = lean_ctor_get(x_240, 5); -x_244 = l_Lean_PersistentArray_push___rarg(x_243, x_237); -lean_ctor_set(x_240, 5, x_244); -x_245 = lean_st_ref_set(x_8, x_240, x_242); -x_246 = !lean_is_exclusive(x_245); -if (x_246 == 0) -{ -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_245, 0); -lean_dec(x_247); -x_248 = lean_box(0); -lean_ctor_set(x_238, 1, x_4); -lean_ctor_set(x_238, 0, x_248); -lean_ctor_set(x_245, 0, x_238); -return x_245; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_230 = x_227; +} else { + lean_dec_ref(x_227); + x_230 = lean_box(0); +} +x_231 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_4); +if (lean_is_scalar(x_230)) { + x_232 = lean_alloc_ctor(0, 2, 0); +} else { + x_232 = x_230; +} +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_229); +return x_232; +} } -else -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_245, 1); -lean_inc(x_249); -lean_dec(x_245); -x_250 = lean_box(0); -lean_ctor_set(x_238, 1, x_4); -lean_ctor_set(x_238, 0, x_250); -x_251 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_251, 0, x_238); -lean_ctor_set(x_251, 1, x_249); -return x_251; } } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_252 = lean_ctor_get(x_238, 1); -x_253 = lean_ctor_get(x_240, 0); -x_254 = lean_ctor_get(x_240, 1); -x_255 = lean_ctor_get(x_240, 2); -x_256 = lean_ctor_get(x_240, 3); -x_257 = lean_ctor_get(x_240, 4); -x_258 = lean_ctor_get(x_240, 5); -x_259 = lean_ctor_get(x_240, 6); -lean_inc(x_259); -lean_inc(x_258); -lean_inc(x_257); -lean_inc(x_256); -lean_inc(x_255); -lean_inc(x_254); -lean_inc(x_253); +lean_object* x_233; uint8_t x_234; +x_233 = lean_ctor_get(x_18, 0); +lean_inc(x_233); +lean_dec(x_18); +x_234 = !lean_is_exclusive(x_19); +if (x_234 == 0) +{ +lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_235 = lean_ctor_get(x_19, 0); +x_236 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_237 = !lean_is_exclusive(x_236); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_238 = lean_ctor_get(x_236, 0); +x_239 = lean_ctor_get(x_236, 1); +lean_inc(x_13); +x_240 = l_Lean_FileMap_toPosition(x_13, x_233); +lean_dec(x_233); +x_241 = l_Lean_FileMap_toPosition(x_13, x_235); +lean_dec(x_235); +lean_ctor_set(x_19, 0, x_241); +if (x_15 == 0) +{ +lean_object* x_242; lean_object* x_243; uint8_t x_244; +lean_free_object(x_236); +x_242 = lean_box(0); +x_243 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_238, x_12, x_240, x_19, x_11, x_242, x_7, x_8, x_239); +lean_dec(x_7); +x_244 = !lean_is_exclusive(x_243); +if (x_244 == 0) +{ +lean_object* x_245; lean_object* x_246; +x_245 = lean_ctor_get(x_243, 0); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_4); +lean_ctor_set(x_243, 0, x_246); +return x_243; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_247 = lean_ctor_get(x_243, 0); +x_248 = lean_ctor_get(x_243, 1); +lean_inc(x_248); +lean_inc(x_247); +lean_dec(x_243); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_4); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_248); +return x_250; +} +} +else +{ +lean_object* x_251; uint8_t x_252; +x_251 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_238); +x_252 = l_Lean_MessageData_hasTag(x_251, x_238); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +lean_dec(x_19); lean_dec(x_240); -x_260 = l_Lean_PersistentArray_push___rarg(x_258, x_237); -x_261 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_261, 0, x_253); -lean_ctor_set(x_261, 1, x_254); -lean_ctor_set(x_261, 2, x_255); -lean_ctor_set(x_261, 3, x_256); -lean_ctor_set(x_261, 4, x_257); -lean_ctor_set(x_261, 5, x_260); -lean_ctor_set(x_261, 6, x_259); -x_262 = lean_st_ref_set(x_8, x_261, x_252); -x_263 = lean_ctor_get(x_262, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_264 = x_262; -} else { - lean_dec_ref(x_262); - x_264 = lean_box(0); -} -x_265 = lean_box(0); -lean_ctor_set(x_238, 1, x_4); -lean_ctor_set(x_238, 0, x_265); -if (lean_is_scalar(x_264)) { - x_266 = lean_alloc_ctor(0, 2, 0); -} else { - x_266 = x_264; -} -lean_ctor_set(x_266, 0, x_238); -lean_ctor_set(x_266, 1, x_263); -return x_266; -} -} -else -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_267 = lean_ctor_get(x_238, 0); -x_268 = lean_ctor_get(x_238, 1); -lean_inc(x_268); -lean_inc(x_267); lean_dec(x_238); -x_269 = lean_ctor_get(x_267, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_267, 1); +lean_dec(x_12); +lean_dec(x_7); +x_253 = lean_box(0); +x_254 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_4); +lean_ctor_set(x_236, 0, x_254); +return x_236; +} +else +{ +lean_object* x_255; lean_object* x_256; uint8_t x_257; +lean_free_object(x_236); +x_255 = lean_box(0); +x_256 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_238, x_12, x_240, x_19, x_11, x_255, x_7, x_8, x_239); +lean_dec(x_7); +x_257 = !lean_is_exclusive(x_256); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_256, 0); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_4); +lean_ctor_set(x_256, 0, x_259); +return x_256; +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_260 = lean_ctor_get(x_256, 0); +x_261 = lean_ctor_get(x_256, 1); +lean_inc(x_261); +lean_inc(x_260); +lean_dec(x_256); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_4); +x_263 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_261); +return x_263; +} +} +} +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_264 = lean_ctor_get(x_236, 0); +x_265 = lean_ctor_get(x_236, 1); +lean_inc(x_265); +lean_inc(x_264); +lean_dec(x_236); +lean_inc(x_13); +x_266 = l_Lean_FileMap_toPosition(x_13, x_233); +lean_dec(x_233); +x_267 = l_Lean_FileMap_toPosition(x_13, x_235); +lean_dec(x_235); +lean_ctor_set(x_19, 0, x_267); +if (x_15 == 0) +{ +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; +x_268 = lean_box(0); +x_269 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_264, x_12, x_266, x_19, x_11, x_268, x_7, x_8, x_265); +lean_dec(x_7); +x_270 = lean_ctor_get(x_269, 0); lean_inc(x_270); -x_271 = lean_ctor_get(x_267, 2); +x_271 = lean_ctor_get(x_269, 1); lean_inc(x_271); -x_272 = lean_ctor_get(x_267, 3); -lean_inc(x_272); -x_273 = lean_ctor_get(x_267, 4); -lean_inc(x_273); -x_274 = lean_ctor_get(x_267, 5); -lean_inc(x_274); -x_275 = lean_ctor_get(x_267, 6); -lean_inc(x_275); -if (lean_is_exclusive(x_267)) { - lean_ctor_release(x_267, 0); - lean_ctor_release(x_267, 1); - lean_ctor_release(x_267, 2); - lean_ctor_release(x_267, 3); - lean_ctor_release(x_267, 4); - lean_ctor_release(x_267, 5); - lean_ctor_release(x_267, 6); - x_276 = x_267; +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_272 = x_269; } else { - lean_dec_ref(x_267); - x_276 = lean_box(0); + lean_dec_ref(x_269); + x_272 = lean_box(0); } -x_277 = l_Lean_PersistentArray_push___rarg(x_274, x_237); -if (lean_is_scalar(x_276)) { - x_278 = lean_alloc_ctor(0, 7, 0); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_270); +lean_ctor_set(x_273, 1, x_4); +if (lean_is_scalar(x_272)) { + x_274 = lean_alloc_ctor(0, 2, 0); } else { - x_278 = x_276; + x_274 = x_272; } -lean_ctor_set(x_278, 0, x_269); -lean_ctor_set(x_278, 1, x_270); -lean_ctor_set(x_278, 2, x_271); -lean_ctor_set(x_278, 3, x_272); -lean_ctor_set(x_278, 4, x_273); -lean_ctor_set(x_278, 5, x_277); -lean_ctor_set(x_278, 6, x_275); -x_279 = lean_st_ref_set(x_8, x_278, x_268); -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -if (lean_is_exclusive(x_279)) { - lean_ctor_release(x_279, 0); - lean_ctor_release(x_279, 1); - x_281 = x_279; -} else { - lean_dec_ref(x_279); - x_281 = lean_box(0); +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_271); +return x_274; } -x_282 = lean_box(0); -x_283 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_4); -if (lean_is_scalar(x_281)) { - x_284 = lean_alloc_ctor(0, 2, 0); -} else { +else +{ +lean_object* x_275; uint8_t x_276; +x_275 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_264); +x_276 = l_Lean_MessageData_hasTag(x_275, x_264); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_19); +lean_dec(x_266); +lean_dec(x_264); +lean_dec(x_12); +lean_dec(x_7); +x_277 = lean_box(0); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_4); +x_279 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_265); +return x_279; +} +else +{ +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; +x_280 = lean_box(0); +x_281 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_264, x_12, x_266, x_19, x_11, x_280, x_7, x_8, x_265); +lean_dec(x_7); +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +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; +} else { + lean_dec_ref(x_281); + x_284 = lean_box(0); +} +x_285 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_285, 0, x_282); +lean_ctor_set(x_285, 1, x_4); +if (lean_is_scalar(x_284)) { + x_286 = lean_alloc_ctor(0, 2, 0); +} else { + x_286 = x_284; +} +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_283); +return x_286; +} } -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_280); -return x_284; } } else { -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_285 = lean_ctor_get(x_230, 0); -x_286 = lean_ctor_get(x_230, 1); -lean_inc(x_286); -lean_inc(x_285); -lean_dec(x_230); -x_287 = l_Lean_FileMap_toPosition(x_13, x_229); -lean_dec(x_229); +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_287 = lean_ctor_get(x_19, 0); lean_inc(x_287); -lean_ctor_set(x_19, 0, x_287); -x_288 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_288, 0, x_15); -lean_ctor_set(x_288, 1, x_16); -x_289 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_285); -x_290 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_291 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_291, 0, x_12); -lean_ctor_set(x_291, 1, x_287); -lean_ctor_set(x_291, 2, x_19); -lean_ctor_set(x_291, 3, x_290); -lean_ctor_set(x_291, 4, x_289); -lean_ctor_set_uint8(x_291, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_291, sizeof(void*)*5 + 1, x_11); -x_292 = lean_st_ref_take(x_8, x_286); -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -if (lean_is_exclusive(x_292)) { - lean_ctor_release(x_292, 0); - lean_ctor_release(x_292, 1); - x_295 = x_292; +lean_dec(x_19); +x_288 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +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_292); - x_295 = lean_box(0); + lean_dec_ref(x_288); + x_291 = lean_box(0); } -x_296 = lean_ctor_get(x_293, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_293, 1); +lean_inc(x_13); +x_292 = l_Lean_FileMap_toPosition(x_13, x_233); +lean_dec(x_233); +x_293 = l_Lean_FileMap_toPosition(x_13, x_287); +lean_dec(x_287); +x_294 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_294, 0, x_293); +if (x_15 == 0) +{ +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_dec(x_291); +x_295 = lean_box(0); +x_296 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_289, x_12, x_292, x_294, x_11, x_295, x_7, x_8, x_290); +lean_dec(x_7); +x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); -x_298 = lean_ctor_get(x_293, 2); +x_298 = lean_ctor_get(x_296, 1); lean_inc(x_298); -x_299 = lean_ctor_get(x_293, 3); -lean_inc(x_299); -x_300 = lean_ctor_get(x_293, 4); -lean_inc(x_300); -x_301 = lean_ctor_get(x_293, 5); -lean_inc(x_301); -x_302 = lean_ctor_get(x_293, 6); -lean_inc(x_302); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - lean_ctor_release(x_293, 2); - lean_ctor_release(x_293, 3); - lean_ctor_release(x_293, 4); - lean_ctor_release(x_293, 5); - lean_ctor_release(x_293, 6); - x_303 = x_293; +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_299 = x_296; } else { - lean_dec_ref(x_293); - x_303 = lean_box(0); + lean_dec_ref(x_296); + x_299 = lean_box(0); } -x_304 = l_Lean_PersistentArray_push___rarg(x_301, x_291); -if (lean_is_scalar(x_303)) { - x_305 = lean_alloc_ctor(0, 7, 0); +x_300 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_4); +if (lean_is_scalar(x_299)) { + x_301 = lean_alloc_ctor(0, 2, 0); } else { - x_305 = x_303; + x_301 = x_299; } -lean_ctor_set(x_305, 0, x_296); -lean_ctor_set(x_305, 1, x_297); -lean_ctor_set(x_305, 2, x_298); -lean_ctor_set(x_305, 3, x_299); -lean_ctor_set(x_305, 4, x_300); -lean_ctor_set(x_305, 5, x_304); -lean_ctor_set(x_305, 6, x_302); -x_306 = lean_st_ref_set(x_8, x_305, x_294); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; -} else { - lean_dec_ref(x_306); - x_308 = lean_box(0); +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_298); +return x_301; } -x_309 = lean_box(0); -if (lean_is_scalar(x_295)) { - x_310 = lean_alloc_ctor(0, 2, 0); +else +{ +lean_object* x_302; uint8_t x_303; +x_302 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1; +lean_inc(x_289); +x_303 = l_Lean_MessageData_hasTag(x_302, x_289); +if (x_303 == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +lean_dec(x_294); +lean_dec(x_292); +lean_dec(x_289); +lean_dec(x_12); +lean_dec(x_7); +x_304 = lean_box(0); +x_305 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_304); +lean_ctor_set(x_305, 1, x_4); +if (lean_is_scalar(x_291)) { + x_306 = lean_alloc_ctor(0, 2, 0); } else { - x_310 = x_295; + x_306 = x_291; } -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_4); -if (lean_is_scalar(x_308)) { - x_311 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_290); +return x_306; +} +else +{ +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_dec(x_291); +x_307 = lean_box(0); +x_308 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_289, x_12, x_292, x_294, x_11, x_307, x_7, x_8, x_290); +lean_dec(x_7); +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_308)) { + lean_ctor_release(x_308, 0); + lean_ctor_release(x_308, 1); x_311 = x_308; -} -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_307); -return x_311; -} -} -else -{ -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; 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; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -x_312 = lean_ctor_get(x_19, 0); -lean_inc(x_312); -lean_dec(x_19); -x_313 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -x_314 = lean_ctor_get(x_313, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_313, 1); -lean_inc(x_315); -if (lean_is_exclusive(x_313)) { - lean_ctor_release(x_313, 0); - lean_ctor_release(x_313, 1); - x_316 = x_313; } else { - lean_dec_ref(x_313); - x_316 = lean_box(0); + lean_dec_ref(x_308); + x_311 = lean_box(0); } -x_317 = l_Lean_FileMap_toPosition(x_13, x_312); -lean_dec(x_312); -lean_inc(x_317); -x_318 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_318, 0, x_317); -if (lean_is_scalar(x_316)) { - x_319 = lean_alloc_ctor(0, 2, 0); +x_312 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_4); +if (lean_is_scalar(x_311)) { + x_313 = lean_alloc_ctor(0, 2, 0); } else { - x_319 = x_316; + x_313 = x_311; } -lean_ctor_set(x_319, 0, x_15); -lean_ctor_set(x_319, 1, x_16); -x_320 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_314); -x_321 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_322 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_322, 0, x_12); -lean_ctor_set(x_322, 1, x_317); -lean_ctor_set(x_322, 2, x_318); -lean_ctor_set(x_322, 3, x_321); -lean_ctor_set(x_322, 4, x_320); -lean_ctor_set_uint8(x_322, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_322, sizeof(void*)*5 + 1, x_11); -x_323 = lean_st_ref_take(x_8, x_315); -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - lean_ctor_release(x_323, 1); - x_326 = x_323; -} else { - lean_dec_ref(x_323); - x_326 = lean_box(0); -} -x_327 = lean_ctor_get(x_324, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_324, 1); -lean_inc(x_328); -x_329 = lean_ctor_get(x_324, 2); -lean_inc(x_329); -x_330 = lean_ctor_get(x_324, 3); -lean_inc(x_330); -x_331 = lean_ctor_get(x_324, 4); -lean_inc(x_331); -x_332 = lean_ctor_get(x_324, 5); -lean_inc(x_332); -x_333 = lean_ctor_get(x_324, 6); -lean_inc(x_333); -if (lean_is_exclusive(x_324)) { - lean_ctor_release(x_324, 0); - lean_ctor_release(x_324, 1); - lean_ctor_release(x_324, 2); - lean_ctor_release(x_324, 3); - lean_ctor_release(x_324, 4); - lean_ctor_release(x_324, 5); - lean_ctor_release(x_324, 6); - x_334 = x_324; -} else { - lean_dec_ref(x_324); - x_334 = lean_box(0); -} -x_335 = l_Lean_PersistentArray_push___rarg(x_332, x_322); -if (lean_is_scalar(x_334)) { - x_336 = lean_alloc_ctor(0, 7, 0); -} else { - x_336 = x_334; -} -lean_ctor_set(x_336, 0, x_327); -lean_ctor_set(x_336, 1, x_328); -lean_ctor_set(x_336, 2, x_329); -lean_ctor_set(x_336, 3, x_330); -lean_ctor_set(x_336, 4, x_331); -lean_ctor_set(x_336, 5, x_335); -lean_ctor_set(x_336, 6, x_333); -x_337 = lean_st_ref_set(x_8, x_336, x_325); -x_338 = lean_ctor_get(x_337, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - lean_ctor_release(x_337, 1); - x_339 = x_337; -} else { - lean_dec_ref(x_337); - x_339 = lean_box(0); -} -x_340 = lean_box(0); -if (lean_is_scalar(x_326)) { - x_341 = lean_alloc_ctor(0, 2, 0); -} else { - x_341 = x_326; -} -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_4); -if (lean_is_scalar(x_339)) { - x_342 = lean_alloc_ctor(0, 2, 0); -} else { - x_342 = x_339; -} -lean_ctor_set(x_342, 0, x_341); -lean_ctor_set(x_342, 1, x_338); -return x_342; +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_310); +return x_313; } } -else -{ -lean_object* x_343; uint8_t x_344; -x_343 = lean_ctor_get(x_19, 0); -lean_inc(x_343); -lean_dec(x_19); -x_344 = !lean_is_exclusive(x_20); -if (x_344 == 0) -{ -lean_object* x_345; lean_object* x_346; uint8_t x_347; -x_345 = lean_ctor_get(x_20, 0); -x_346 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -x_347 = !lean_is_exclusive(x_346); -if (x_347 == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; -x_348 = lean_ctor_get(x_346, 0); -x_349 = lean_ctor_get(x_346, 1); -lean_inc(x_13); -x_350 = l_Lean_FileMap_toPosition(x_13, x_343); -lean_dec(x_343); -x_351 = l_Lean_FileMap_toPosition(x_13, x_345); -lean_dec(x_345); -lean_ctor_set(x_20, 0, x_351); -lean_ctor_set(x_346, 1, x_16); -lean_ctor_set(x_346, 0, x_15); -x_352 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_352, 0, x_346); -lean_ctor_set(x_352, 1, x_348); -x_353 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_354 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_354, 0, x_12); -lean_ctor_set(x_354, 1, x_350); -lean_ctor_set(x_354, 2, x_20); -lean_ctor_set(x_354, 3, x_353); -lean_ctor_set(x_354, 4, x_352); -lean_ctor_set_uint8(x_354, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_354, sizeof(void*)*5 + 1, x_11); -x_355 = lean_st_ref_take(x_8, x_349); -x_356 = !lean_is_exclusive(x_355); -if (x_356 == 0) -{ -lean_object* x_357; uint8_t x_358; -x_357 = lean_ctor_get(x_355, 0); -x_358 = !lean_is_exclusive(x_357); -if (x_358 == 0) -{ -lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; uint8_t x_363; -x_359 = lean_ctor_get(x_355, 1); -x_360 = lean_ctor_get(x_357, 5); -x_361 = l_Lean_PersistentArray_push___rarg(x_360, x_354); -lean_ctor_set(x_357, 5, x_361); -x_362 = lean_st_ref_set(x_8, x_357, x_359); -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 = lean_box(0); -lean_ctor_set(x_355, 1, x_4); -lean_ctor_set(x_355, 0, x_365); -lean_ctor_set(x_362, 0, x_355); -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); -x_367 = lean_box(0); -lean_ctor_set(x_355, 1, x_4); -lean_ctor_set(x_355, 0, x_367); -x_368 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_368, 0, x_355); -lean_ctor_set(x_368, 1, x_366); -return x_368; -} -} -else -{ -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; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; -x_369 = lean_ctor_get(x_355, 1); -x_370 = lean_ctor_get(x_357, 0); -x_371 = lean_ctor_get(x_357, 1); -x_372 = lean_ctor_get(x_357, 2); -x_373 = lean_ctor_get(x_357, 3); -x_374 = lean_ctor_get(x_357, 4); -x_375 = lean_ctor_get(x_357, 5); -x_376 = lean_ctor_get(x_357, 6); -lean_inc(x_376); -lean_inc(x_375); -lean_inc(x_374); -lean_inc(x_373); -lean_inc(x_372); -lean_inc(x_371); -lean_inc(x_370); -lean_dec(x_357); -x_377 = l_Lean_PersistentArray_push___rarg(x_375, x_354); -x_378 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_378, 0, x_370); -lean_ctor_set(x_378, 1, x_371); -lean_ctor_set(x_378, 2, x_372); -lean_ctor_set(x_378, 3, x_373); -lean_ctor_set(x_378, 4, x_374); -lean_ctor_set(x_378, 5, x_377); -lean_ctor_set(x_378, 6, x_376); -x_379 = lean_st_ref_set(x_8, x_378, x_369); -x_380 = lean_ctor_get(x_379, 1); -lean_inc(x_380); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_381 = x_379; -} else { - lean_dec_ref(x_379); - x_381 = lean_box(0); -} -x_382 = lean_box(0); -lean_ctor_set(x_355, 1, x_4); -lean_ctor_set(x_355, 0, x_382); -if (lean_is_scalar(x_381)) { - x_383 = lean_alloc_ctor(0, 2, 0); -} else { - x_383 = x_381; -} -lean_ctor_set(x_383, 0, x_355); -lean_ctor_set(x_383, 1, x_380); -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_object* x_399; lean_object* x_400; lean_object* x_401; -x_384 = lean_ctor_get(x_355, 0); -x_385 = lean_ctor_get(x_355, 1); -lean_inc(x_385); -lean_inc(x_384); -lean_dec(x_355); -x_386 = lean_ctor_get(x_384, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_384, 1); -lean_inc(x_387); -x_388 = lean_ctor_get(x_384, 2); -lean_inc(x_388); -x_389 = lean_ctor_get(x_384, 3); -lean_inc(x_389); -x_390 = lean_ctor_get(x_384, 4); -lean_inc(x_390); -x_391 = lean_ctor_get(x_384, 5); -lean_inc(x_391); -x_392 = lean_ctor_get(x_384, 6); -lean_inc(x_392); -if (lean_is_exclusive(x_384)) { - lean_ctor_release(x_384, 0); - lean_ctor_release(x_384, 1); - lean_ctor_release(x_384, 2); - lean_ctor_release(x_384, 3); - lean_ctor_release(x_384, 4); - lean_ctor_release(x_384, 5); - lean_ctor_release(x_384, 6); - x_393 = x_384; -} else { - lean_dec_ref(x_384); - x_393 = lean_box(0); -} -x_394 = l_Lean_PersistentArray_push___rarg(x_391, x_354); -if (lean_is_scalar(x_393)) { - x_395 = lean_alloc_ctor(0, 7, 0); -} else { - x_395 = x_393; -} -lean_ctor_set(x_395, 0, x_386); -lean_ctor_set(x_395, 1, x_387); -lean_ctor_set(x_395, 2, x_388); -lean_ctor_set(x_395, 3, x_389); -lean_ctor_set(x_395, 4, x_390); -lean_ctor_set(x_395, 5, x_394); -lean_ctor_set(x_395, 6, x_392); -x_396 = lean_st_ref_set(x_8, x_395, x_385); -x_397 = lean_ctor_get(x_396, 1); -lean_inc(x_397); -if (lean_is_exclusive(x_396)) { - lean_ctor_release(x_396, 0); - lean_ctor_release(x_396, 1); - x_398 = x_396; -} else { - lean_dec_ref(x_396); - x_398 = lean_box(0); -} -x_399 = lean_box(0); -x_400 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_4); -if (lean_is_scalar(x_398)) { - x_401 = lean_alloc_ctor(0, 2, 0); -} else { - x_401 = x_398; -} -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_397); -return x_401; -} -} -else -{ -lean_object* x_402; lean_object* 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; lean_object* 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_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_402 = lean_ctor_get(x_346, 0); -x_403 = lean_ctor_get(x_346, 1); -lean_inc(x_403); -lean_inc(x_402); -lean_dec(x_346); -lean_inc(x_13); -x_404 = l_Lean_FileMap_toPosition(x_13, x_343); -lean_dec(x_343); -x_405 = l_Lean_FileMap_toPosition(x_13, x_345); -lean_dec(x_345); -lean_ctor_set(x_20, 0, x_405); -x_406 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_406, 0, x_15); -lean_ctor_set(x_406, 1, x_16); -x_407 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_407, 0, x_406); -lean_ctor_set(x_407, 1, x_402); -x_408 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_409 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_409, 0, x_12); -lean_ctor_set(x_409, 1, x_404); -lean_ctor_set(x_409, 2, x_20); -lean_ctor_set(x_409, 3, x_408); -lean_ctor_set(x_409, 4, x_407); -lean_ctor_set_uint8(x_409, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_409, sizeof(void*)*5 + 1, x_11); -x_410 = lean_st_ref_take(x_8, x_403); -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -if (lean_is_exclusive(x_410)) { - lean_ctor_release(x_410, 0); - lean_ctor_release(x_410, 1); - x_413 = x_410; -} else { - lean_dec_ref(x_410); - x_413 = lean_box(0); -} -x_414 = lean_ctor_get(x_411, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_411, 1); -lean_inc(x_415); -x_416 = lean_ctor_get(x_411, 2); -lean_inc(x_416); -x_417 = lean_ctor_get(x_411, 3); -lean_inc(x_417); -x_418 = lean_ctor_get(x_411, 4); -lean_inc(x_418); -x_419 = lean_ctor_get(x_411, 5); -lean_inc(x_419); -x_420 = lean_ctor_get(x_411, 6); -lean_inc(x_420); -if (lean_is_exclusive(x_411)) { - lean_ctor_release(x_411, 0); - lean_ctor_release(x_411, 1); - lean_ctor_release(x_411, 2); - lean_ctor_release(x_411, 3); - lean_ctor_release(x_411, 4); - lean_ctor_release(x_411, 5); - lean_ctor_release(x_411, 6); - x_421 = x_411; -} else { - lean_dec_ref(x_411); - x_421 = lean_box(0); -} -x_422 = l_Lean_PersistentArray_push___rarg(x_419, x_409); -if (lean_is_scalar(x_421)) { - x_423 = lean_alloc_ctor(0, 7, 0); -} else { - x_423 = x_421; -} -lean_ctor_set(x_423, 0, x_414); -lean_ctor_set(x_423, 1, x_415); -lean_ctor_set(x_423, 2, x_416); -lean_ctor_set(x_423, 3, x_417); -lean_ctor_set(x_423, 4, x_418); -lean_ctor_set(x_423, 5, x_422); -lean_ctor_set(x_423, 6, x_420); -x_424 = lean_st_ref_set(x_8, x_423, x_412); -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 = lean_box(0); -if (lean_is_scalar(x_413)) { - x_428 = lean_alloc_ctor(0, 2, 0); -} else { - x_428 = x_413; -} -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_4); -if (lean_is_scalar(x_426)) { - x_429 = lean_alloc_ctor(0, 2, 0); -} else { - x_429 = x_426; -} -lean_ctor_set(x_429, 0, x_428); -lean_ctor_set(x_429, 1, x_425); -return x_429; -} -} -else -{ -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; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; 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_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; lean_object* x_461; -x_430 = lean_ctor_get(x_20, 0); -lean_inc(x_430); -lean_dec(x_20); -x_431 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_431, 1); -lean_inc(x_433); -if (lean_is_exclusive(x_431)) { - lean_ctor_release(x_431, 0); - lean_ctor_release(x_431, 1); - x_434 = x_431; -} else { - lean_dec_ref(x_431); - x_434 = lean_box(0); -} -lean_inc(x_13); -x_435 = l_Lean_FileMap_toPosition(x_13, x_343); -lean_dec(x_343); -x_436 = l_Lean_FileMap_toPosition(x_13, x_430); -lean_dec(x_430); -x_437 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_437, 0, x_436); -if (lean_is_scalar(x_434)) { - x_438 = lean_alloc_ctor(0, 2, 0); -} else { - x_438 = x_434; -} -lean_ctor_set(x_438, 0, x_15); -lean_ctor_set(x_438, 1, x_16); -x_439 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_439, 0, x_438); -lean_ctor_set(x_439, 1, x_432); -x_440 = l_Lean_Tactic_FunInd_removeLamda___rarg___lambda__2___closed__3; -x_441 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_441, 0, x_12); -lean_ctor_set(x_441, 1, x_435); -lean_ctor_set(x_441, 2, x_437); -lean_ctor_set(x_441, 3, x_440); -lean_ctor_set(x_441, 4, x_439); -lean_ctor_set_uint8(x_441, sizeof(void*)*5, x_18); -lean_ctor_set_uint8(x_441, sizeof(void*)*5 + 1, x_11); -x_442 = lean_st_ref_take(x_8, x_433); -x_443 = lean_ctor_get(x_442, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_442, 1); -lean_inc(x_444); -if (lean_is_exclusive(x_442)) { - lean_ctor_release(x_442, 0); - lean_ctor_release(x_442, 1); - x_445 = x_442; -} else { - lean_dec_ref(x_442); - x_445 = lean_box(0); -} -x_446 = lean_ctor_get(x_443, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_443, 1); -lean_inc(x_447); -x_448 = lean_ctor_get(x_443, 2); -lean_inc(x_448); -x_449 = lean_ctor_get(x_443, 3); -lean_inc(x_449); -x_450 = lean_ctor_get(x_443, 4); -lean_inc(x_450); -x_451 = lean_ctor_get(x_443, 5); -lean_inc(x_451); -x_452 = lean_ctor_get(x_443, 6); -lean_inc(x_452); -if (lean_is_exclusive(x_443)) { - lean_ctor_release(x_443, 0); - lean_ctor_release(x_443, 1); - lean_ctor_release(x_443, 2); - lean_ctor_release(x_443, 3); - lean_ctor_release(x_443, 4); - lean_ctor_release(x_443, 5); - lean_ctor_release(x_443, 6); - x_453 = x_443; -} else { - lean_dec_ref(x_443); - x_453 = lean_box(0); -} -x_454 = l_Lean_PersistentArray_push___rarg(x_451, x_441); -if (lean_is_scalar(x_453)) { - x_455 = lean_alloc_ctor(0, 7, 0); -} else { - x_455 = x_453; -} -lean_ctor_set(x_455, 0, x_446); -lean_ctor_set(x_455, 1, x_447); -lean_ctor_set(x_455, 2, x_448); -lean_ctor_set(x_455, 3, x_449); -lean_ctor_set(x_455, 4, x_450); -lean_ctor_set(x_455, 5, x_454); -lean_ctor_set(x_455, 6, x_452); -x_456 = lean_st_ref_set(x_8, x_455, x_444); -x_457 = lean_ctor_get(x_456, 1); -lean_inc(x_457); -if (lean_is_exclusive(x_456)) { - lean_ctor_release(x_456, 0); - lean_ctor_release(x_456, 1); - x_458 = x_456; -} else { - lean_dec_ref(x_456); - x_458 = lean_box(0); -} -x_459 = lean_box(0); -if (lean_is_scalar(x_445)) { - x_460 = lean_alloc_ctor(0, 2, 0); -} else { - x_460 = x_445; -} -lean_ctor_set(x_460, 0, x_459); -lean_ctor_set(x_460, 1, x_4); -if (lean_is_scalar(x_458)) { - x_461 = lean_alloc_ctor(0, 2, 0); -} else { - x_461 = x_458; -} -lean_ctor_set(x_461, 0, x_460); -lean_ctor_set(x_461, 1, x_457); -return x_461; } } } @@ -24164,36 +23960,40 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; uint8_t x_24; x_22 = lean_ctor_get(x_17, 0); x_23 = lean_ctor_get(x_17, 1); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_free_object(x_17); lean_dec(x_22); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2; -x_26 = l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__41(x_25, x_9, x_10, x_11, x_12, x_13, x_23); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2; +x_27 = l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__41(x_26, x_9, x_10, x_11, x_12, x_13, x_23); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -return x_26; +return x_27; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_26); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_dec(x_27); +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; } } else @@ -24208,57 +24008,85 @@ return x_17; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_17, 0); -x_32 = lean_ctor_get(x_17, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_17); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (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_dec(x_31); -x_34 = l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2; -x_35 = l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__41(x_34, x_9, x_10, x_11, x_12, x_13, x_32); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_38 = x_35; -} else { - lean_dec_ref(x_35); - x_38 = lean_box(0); +return x_17; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 2, 0); -} else { - x_39 = x_38; -} -lean_ctor_set(x_39, 0, x_36); -lean_ctor_set(x_39, 1, x_37); -return x_39; } else { -lean_object* x_40; +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_17, 0); +x_33 = lean_ctor_get(x_17, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_17); +x_34 = l_Lean_Exception_isInterrupt(x_32); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +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_dec(x_32); +x_36 = l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2; +x_37 = l_Lean_throwError___at_Lean_Tactic_FunInd_buildInductionBody___spec__41(x_36, x_9, x_10, x_11, x_12, x_13, x_33); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_31); -lean_ctor_set(x_40, 1, x_32); -return x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + 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); +return x_41; +} +else +{ +lean_object* x_42; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_32); +lean_ctor_set(x_42, 1, x_33); +return x_42; +} +} +else +{ +lean_object* x_43; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_32); +lean_ctor_set(x_43, 1, x_33); +return x_43; } } } @@ -35732,6 +35560,29 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___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: { @@ -48504,8 +48355,18 @@ l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_buildInductionBody___spe lean_mark_persistent(l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Tactic_FunInd_buildInductionBody___spec__2___closed__1); l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__10___closed__1 = _init_l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__10___closed__1(); lean_mark_persistent(l_panic___at_Lean_Tactic_FunInd_buildInductionBody___spec__10___closed__1); +l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__1); +l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__2); +l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__3); +l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___lambda__2___closed__4); l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__1); +l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2 = _init_l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Tactic_FunInd_buildInductionBody___spec__40___closed__2); l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__1); l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Tactic_FunInd_buildInductionBody___spec__43___lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind.c b/stage0/stdlib/Lean/Meta/Tactic/Grind.c index 6732a1d04e..f45db5cf27 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind -// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Preprocessor Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection +// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Preprocessor Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -20,6 +20,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Preprocessor(uint8_t builtin, lea lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Injection(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Core(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind(uint8_t builtin, lean_object* w) { lean_object * res; @@ -46,6 +47,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Injection(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Core(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c index 05a242cdf0..7d58ac3d72 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c @@ -23,6 +23,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_ static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_58____closed__2; lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Meta_Eqns_0__Lean_Meta_mkSimpleEqThm___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__19; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__31; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_421____closed__5; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_58____closed__3; @@ -994,16 +995,20 @@ if (x_31 == 0) lean_object* x_32; lean_object* x_33; uint8_t x_34; x_32 = lean_ctor_get(x_30, 0); x_33 = lean_ctor_get(x_30, 1); -x_34 = l_Lean_Exception_isRuntime(x_32); +x_34 = l_Lean_Exception_isInterrupt(x_32); if (x_34 == 0) { -lean_object* x_35; +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_free_object(x_30); lean_dec(x_32); -x_35 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_13, x_2, x_3, x_33); +x_36 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_13, x_2, x_3, x_33); lean_dec(x_3); lean_dec(x_2); -return x_35; +return x_36; } else { @@ -1015,32 +1020,56 @@ return x_30; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_30); -x_38 = l_Lean_Exception_isRuntime(x_36); -if (x_38 == 0) -{ -lean_object* x_39; -lean_dec(x_36); -x_39 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_13, x_2, x_3, x_37); -lean_dec(x_3); -lean_dec(x_2); -return x_39; -} -else -{ -lean_object* x_40; lean_dec(x_13); lean_dec(x_3); lean_dec(x_2); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_36); -lean_ctor_set(x_40, 1, x_37); -return x_40; +return x_30; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_30, 0); +x_38 = lean_ctor_get(x_30, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_30); +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) +{ +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) +{ +lean_object* x_41; +lean_dec(x_37); +x_41 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_13, x_2, x_3, x_38); +lean_dec(x_3); +lean_dec(x_2); +return x_41; +} +else +{ +lean_object* x_42; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_37); +lean_ctor_set(x_42, 1, x_38); +return x_42; +} +} +else +{ +lean_object* x_43; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_37); +lean_ctor_set(x_43, 1, x_38); +return x_43; } } } @@ -1048,135 +1077,135 @@ return x_40; } else { -uint8_t x_41; +uint8_t x_44; lean_dec(x_17); lean_dec(x_13); lean_dec(x_3); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_22); -if (x_41 == 0) +x_44 = !lean_is_exclusive(x_22); +if (x_44 == 0) { return x_22; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_22, 0); -x_43 = lean_ctor_get(x_22, 1); -lean_inc(x_43); -lean_inc(x_42); +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_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; +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; } } } case 5: { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_6, 0); -lean_inc(x_45); +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_6, 0); +lean_inc(x_48); lean_dec(x_6); -x_46 = lean_ctor_get_uint8(x_45, sizeof(void*)*5); -lean_dec(x_45); -if (x_46 == 0) +x_49 = lean_ctor_get_uint8(x_48, sizeof(void*)*5); +lean_dec(x_48); +if (x_49 == 0) { -uint8_t x_47; +uint8_t x_50; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_5); -if (x_47 == 0) +x_50 = !lean_is_exclusive(x_5); +if (x_50 == 0) { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_5, 0); -lean_dec(x_48); -x_49 = lean_box(0); -lean_ctor_set(x_5, 0, x_49); +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_5, 0); +lean_dec(x_51); +x_52 = lean_box(0); +lean_ctor_set(x_5, 0, x_52); return x_5; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_5, 1); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_5, 1); +lean_inc(x_53); lean_dec(x_5); -x_51 = lean_box(0); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -return x_52; +x_54 = lean_box(0); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +return x_55; } } else { -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; -x_53 = lean_ctor_get(x_5, 1); -lean_inc(x_53); +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_56 = lean_ctor_get(x_5, 1); +lean_inc(x_56); lean_dec(x_5); -x_54 = l_Lean_MessageData_ofName(x_1); -x_55 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; -x_56 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -x_57 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__34; -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -x_59 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_58, x_2, x_3, x_53); +x_57 = l_Lean_MessageData_ofName(x_1); +x_58 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__34; +x_61 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_61, x_2, x_3, x_56); lean_dec(x_3); lean_dec(x_2); -return x_59; +return x_62; } } default: { -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_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_dec(x_6); -x_60 = lean_ctor_get(x_5, 1); -lean_inc(x_60); +x_63 = lean_ctor_get(x_5, 1); +lean_inc(x_63); lean_dec(x_5); -x_61 = l_Lean_MessageData_ofName(x_1); -x_62 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; -x_63 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -x_64 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__4; -x_65 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_65, x_2, x_3, x_60); +x_64 = l_Lean_MessageData_ofName(x_1); +x_65 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; +x_66 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +x_67 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__4; +x_68 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_throwError___at_Lean_addDecl___spec__2(x_68, x_2, x_3, x_63); lean_dec(x_3); lean_dec(x_2); -return x_66; +return x_69; } } } else { -uint8_t x_67; +uint8_t x_70; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_5); -if (x_67 == 0) +x_70 = !lean_is_exclusive(x_5); +if (x_70 == 0) { return x_5; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_5, 0); -x_69 = lean_ctor_get(x_5, 1); -lean_inc(x_69); -lean_inc(x_68); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_5, 0); +x_72 = lean_ctor_get(x_5, 1); +lean_inc(x_72); +lean_inc(x_71); lean_dec(x_5); -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; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c new file mode 100644 index 0000000000..194824029c --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c @@ -0,0 +1,3782 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Core +// Imports: Lean.Meta.Tactic.Grind.Types Lean.Meta.LitValues +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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_EXPORT lean_object* l_Lean_Meta_Grind_addHEq(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewHEq___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_Meta_Grind_mkENode(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_Meta_Grind_isInterpreted(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___boxed(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_usize_dec_eq(size_t, size_t); +static lean_object* l_Lean_Meta_Grind_addEqCore_processTodo___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr_unsafe__1___boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_setENode(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_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___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_Lean_Meta_Grind_addEq(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(lean_object*, uint8_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4; +extern lean_object* l_instInhabitedPUnit; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_ptr_addr(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, 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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewHEq(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_Meta_Grind_addEqCore_processTodo___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans(lean_object*, 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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(lean_object*, lean_object*, lean_object*, uint8_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1; +lean_object* l_Array_back_x3f___rarg(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(lean_object*, uint8_t, 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_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEq___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 uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNext___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_instMonadMetaM; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEq(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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(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_Meta_Grind_addEqCore_processTodo___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_Lean_Meta_Grind_getNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isFalse(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isConstructorAppCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isSameExpr(lean_object*, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2; +lean_object* l_Lean_Meta_Grind_getENode_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___boxed(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_isTrue(lean_object*); +lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___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_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore_processTodo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore(lean_object*, lean_object*, lean_object*, uint8_t, 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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___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* l_ReaderT_instMonad___rarg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___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; +x_8 = l_Lean_Meta_isLitValue(x_1, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted(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; +lean_inc(x_1); +x_7 = l_Lean_Expr_isTrue(x_1); +if (x_7 == 0) +{ +uint8_t x_8; +lean_inc(x_1); +x_8 = l_Lean_Expr_isFalse(x_1); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_Lean_Meta_isLitValue(x_1, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +else +{ +uint8_t x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_10 = 1; +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_6); +return x_12; +} +} +else +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_6); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isInterpreted___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_Lean_Meta_Grind_isInterpreted___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_Meta_isConstructorAppCore_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_15 = l_Lean_Meta_Grind_isInterpreted(x_1, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_13) == 0) +{ +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 0; +x_19 = lean_unbox(x_16); +lean_dec(x_16); +x_20 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_19, x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_20; +} +else +{ +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +return x_15; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_15); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +lean_dec(x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_15, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_dec(x_15); +x_27 = 1; +x_28 = lean_unbox(x_25); +lean_dec(x_25); +x_29 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_28, x_27, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_29; +} +else +{ +uint8_t x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_15); +if (x_30 == 0) +{ +return x_15; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode(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; +x_11 = l_Lean_Meta_Grind_getENode_x3f(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_box(0); +x_15 = l_Lean_Meta_Grind_mkENode___lambda__1(x_1, x_2, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_12); +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_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_11, 0, x_18); +return x_11; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mkENode___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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot(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; +x_10 = l_Lean_Meta_Grind_getENode_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +lean_ctor_set(x_10, 0, x_1); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_10); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_10, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +lean_ctor_set(x_10, 0, x_19); +return x_10; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); +lean_dec(x_10); +x_21 = lean_ctor_get(x_11, 0); +lean_inc(x_21); +lean_dec(x_11); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(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_20); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot___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_Meta_Grind_getRoot(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNext(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; +x_10 = l_Lean_Meta_Grind_getENode_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +lean_ctor_set(x_10, 0, x_1); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +lean_object* x_16; uint8_t x_17; +lean_dec(x_1); +x_16 = lean_ctor_get(x_11, 0); +lean_inc(x_16); +lean_dec(x_11); +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_10, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_10, 0, x_19); +return x_10; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); +lean_dec(x_10); +x_21 = lean_ctor_get(x_16, 0); +lean_inc(x_21); +lean_dec(x_16); +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_EXPORT lean_object* l_Lean_Meta_Grind_getNext___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_Meta_Grind_getNext(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; size_t x_4; uint8_t x_5; +x_3 = lean_ptr_addr(x_1); +x_4 = lean_ptr_addr(x_2); +x_5 = lean_usize_dec_eq(x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr_unsafe__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isSameExpr(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isSameExpr___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Meta_Grind_isSameExpr(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore(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_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_st_ref_take(x_5, x_12); +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_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; +x_17 = lean_ctor_get(x_14, 3); +x_18 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_3); +lean_ctor_set_uint8(x_18, sizeof(void*)*3, x_4); +x_19 = lean_array_push(x_17, x_18); +lean_ctor_set(x_14, 3, x_19); +x_20 = lean_st_ref_set(x_5, x_14, x_15); +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); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +else +{ +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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +x_29 = lean_ctor_get(x_14, 2); +x_30 = lean_ctor_get(x_14, 3); +x_31 = lean_ctor_get_uint8(x_14, sizeof(void*)*5); +x_32 = lean_ctor_get(x_14, 4); +lean_inc(x_32); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +x_33 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_33, 0, x_1); +lean_ctor_set(x_33, 1, x_2); +lean_ctor_set(x_33, 2, x_3); +lean_ctor_set_uint8(x_33, sizeof(void*)*3, x_4); +x_34 = lean_array_push(x_30, x_33); +x_35 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_34); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_31); +x_36 = lean_st_ref_set(x_5, x_35, x_15); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +x_39 = lean_box(0); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEq(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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = 0; +x_13 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEq___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEq(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_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); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewHEq(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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = 1; +x_13 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewEqCore(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewHEq___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_pushNewHEq(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_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); +return x_12; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_instMonadMetaM; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3; +x_2 = l_instInhabitedPUnit; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4; +x_11 = lean_panic_fn(x_10, x_1); +x_12 = lean_apply_8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__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_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_1); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_1, 4); +lean_dec(x_16); +x_17 = lean_ctor_get(x_1, 3); +lean_dec(x_17); +lean_ctor_set(x_1, 4, x_3); +lean_ctor_set(x_1, 3, x_2); +lean_ctor_set_uint8(x_1, sizeof(void*)*8, x_4); +x_18 = l_Lean_Meta_Grind_setENode(x_5, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 1); +x_21 = lean_ctor_get(x_1, 2); +x_22 = lean_ctor_get(x_1, 5); +x_23 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 1); +x_24 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 2); +x_25 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 3); +x_26 = lean_ctor_get_uint8(x_1, sizeof(void*)*8 + 4); +x_27 = lean_ctor_get(x_1, 6); +x_28 = lean_ctor_get(x_1, 7); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_1); +x_29 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +lean_ctor_set(x_29, 2, x_21); +lean_ctor_set(x_29, 3, x_2); +lean_ctor_set(x_29, 4, x_3); +lean_ctor_set(x_29, 5, x_22); +lean_ctor_set(x_29, 6, x_27); +lean_ctor_set(x_29, 7, x_28); +lean_ctor_set_uint8(x_29, sizeof(void*)*8, x_4); +lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 1, x_23); +lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 2, x_24); +lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 3, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*8 + 4, x_26); +x_30 = l_Lean_Meta_Grind_setENode(x_5, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_30; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.Meta.Tactic.Grind.Core", 27); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_private.Lean.Meta.Tactic.Grind.Core.0.Lean.Meta.Grind.invertTrans.go", 69); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unreachable code has been reached", 33); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4() { +_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2; +x_3 = lean_unsigned_to_nat(68u); +x_4 = lean_unsigned_to_nat(34u); +x_5 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_Meta_Grind_getENode_x3f(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4; +x_17 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_14, 0); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_ctor_get(x_18, 3); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_dec(x_13); +x_21 = lean_box(0); +x_22 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_18, x_3, x_4, x_2, x_1, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_11); +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_1); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_dec(x_13); +x_24 = lean_ctor_get(x_18, 4); +lean_inc(x_24); +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; +x_26 = lean_ctor_get_uint8(x_18, sizeof(void*)*8); +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_1); +lean_ctor_set(x_19, 0, x_1); +if (x_26 == 0) +{ +uint8_t x_28; lean_object* x_29; +x_28 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_29 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_27, x_28, x_19, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_18, x_3, x_4, x_2, x_1, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_31); +lean_dec(x_11); +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_30); +lean_dec(x_1); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_29); +if (x_33 == 0) +{ +return x_29; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_29, 0); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_29); +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 +{ +uint8_t x_37; lean_object* x_38; +x_37 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_27, x_37, x_19, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_18, x_3, x_4, x_2, x_1, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +lean_dec(x_11); +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_39); +lean_dec(x_1); +return x_41; +} +else +{ +uint8_t x_42; +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_38); +if (x_42 == 0) +{ +return x_38; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_38, 0); +x_44 = lean_ctor_get(x_38, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_38); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} +else +{ +uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get_uint8(x_18, sizeof(void*)*8); +x_47 = lean_ctor_get(x_19, 0); +lean_inc(x_47); +lean_dec(x_19); +lean_inc(x_1); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_1); +if (x_46 == 0) +{ +uint8_t x_49; lean_object* x_50; +x_49 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_50 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_47, x_49, x_48, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +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 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_18, x_3, x_4, x_2, x_1, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_52); +lean_dec(x_11); +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_51); +lean_dec(x_1); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_54 = lean_ctor_get(x_50, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_56 = x_50; +} else { + lean_dec_ref(x_50); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +uint8_t x_58; lean_object* x_59; +x_58 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_59 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_47, x_58, x_48, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_18, x_3, x_4, x_2, x_1, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_61); +lean_dec(x_11); +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_60); +lean_dec(x_1); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_63 = lean_ctor_get(x_59, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_59, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_65 = x_59; +} else { + lean_dec_ref(x_59); + 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; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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) { +_start: +{ +uint8_t x_15; lean_object* x_16; +x_15 = lean_unbox(x_4); +lean_dec(x_4); +x_16 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___lambda__1(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, 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_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_16; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans(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; uint8_t x_11; lean_object* x_12; +x_10 = lean_box(0); +x_11 = 0; +x_12 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go(x_1, x_11, x_10, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent(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; uint8_t x_12; +x_9 = lean_st_ref_take(x_1, x_8); +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_is_exclusive(x_10); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; uint8_t x_15; +x_13 = 1; +lean_ctor_set_uint8(x_10, sizeof(void*)*5, x_13); +x_14 = lean_st_ref_set(x_1, x_10, x_11); +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 = lean_box(0); +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 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; 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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 1); +x_23 = lean_ctor_get(x_10, 2); +x_24 = lean_ctor_get(x_10, 3); +x_25 = lean_ctor_get(x_10, 4); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_10); +x_26 = 1; +x_27 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +lean_ctor_set(x_27, 2, x_23); +lean_ctor_set(x_27, 3, x_24); +lean_ctor_set(x_27, 4, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_26); +x_28 = lean_st_ref_set(x_1, x_27, x_11); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_30 = x_28; +} else { + lean_dec_ref(x_28); + x_30 = lean_box(0); +} +x_31 = lean_box(0); +if (lean_is_scalar(x_30)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { + x_32 = x_30; +} +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_29); +return x_32; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_dec(x_4); +x_13 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_private.Lean.Meta.Tactic.Grind.Core.0.Lean.Meta.Grind.addEqStep.updateRoots.loop", 81); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2() { +_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1; +x_3 = lean_unsigned_to_nat(133u); +x_4 = lean_unsigned_to_nat(33u); +x_5 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(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; +x_12 = l_Lean_Meta_Grind_getENode_x3f(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_3); +lean_dec(x_2); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2; +x_16 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +lean_dec(x_21); +lean_inc(x_2); +lean_inc(x_20); +lean_ctor_set(x_17, 1, x_2); +x_22 = l_Lean_Meta_Grind_setENode(x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +lean_dec(x_3); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_20); +if (x_26 == 0) +{ +lean_free_object(x_22); +x_3 = x_20; +x_11 = x_24; +goto _start; +} +else +{ +lean_object* x_28; +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_28 = lean_box(0); +lean_ctor_set(x_22, 0, x_28); +return x_22; +} +} +else +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_dec(x_22); +x_30 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_20); +if (x_30 == 0) +{ +x_3 = x_20; +x_11 = x_29; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +return x_33; +} +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; uint8_t 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; lean_object* x_49; uint8_t x_50; +x_34 = lean_ctor_get(x_17, 0); +x_35 = lean_ctor_get(x_17, 2); +x_36 = lean_ctor_get(x_17, 3); +x_37 = lean_ctor_get(x_17, 4); +x_38 = lean_ctor_get_uint8(x_17, sizeof(void*)*8); +x_39 = lean_ctor_get(x_17, 5); +x_40 = lean_ctor_get_uint8(x_17, sizeof(void*)*8 + 1); +x_41 = lean_ctor_get_uint8(x_17, sizeof(void*)*8 + 2); +x_42 = lean_ctor_get_uint8(x_17, sizeof(void*)*8 + 3); +x_43 = lean_ctor_get_uint8(x_17, sizeof(void*)*8 + 4); +x_44 = lean_ctor_get(x_17, 6); +x_45 = lean_ctor_get(x_17, 7); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_39); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_17); +lean_inc(x_2); +lean_inc(x_34); +x_46 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_46, 0, x_34); +lean_ctor_set(x_46, 1, x_2); +lean_ctor_set(x_46, 2, x_35); +lean_ctor_set(x_46, 3, x_36); +lean_ctor_set(x_46, 4, x_37); +lean_ctor_set(x_46, 5, x_39); +lean_ctor_set(x_46, 6, x_44); +lean_ctor_set(x_46, 7, x_45); +lean_ctor_set_uint8(x_46, sizeof(void*)*8, x_38); +lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 1, x_40); +lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 2, x_41); +lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 3, x_42); +lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 4, x_43); +x_47 = l_Lean_Meta_Grind_setENode(x_3, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +lean_dec(x_3); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_34); +if (x_50 == 0) +{ +lean_dec(x_49); +x_3 = x_34; +x_11 = x_48; +goto _start; +} +else +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_34); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_52 = lean_box(0); +if (lean_is_scalar(x_49)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_49; +} +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_48); +return x_53; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___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_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___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_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(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_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(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_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_1); +x_12 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(x_1, x_2, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_3); +lean_dec(x_3); +x_13 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* 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_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +lean_object* x_20; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_1); +x_20 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = !lean_is_exclusive(x_2); +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; +x_23 = lean_ctor_get(x_2, 1); +x_24 = lean_ctor_get(x_2, 4); +lean_dec(x_24); +x_25 = lean_ctor_get(x_2, 3); +lean_dec(x_25); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_3); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_4); +lean_inc(x_23); +lean_ctor_set(x_2, 4, x_27); +lean_ctor_set(x_2, 3, x_26); +lean_ctor_set_uint8(x_2, sizeof(void*)*8, x_5); +x_28 = l_Lean_Meta_Grind_setENode(x_1, x_2, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_21); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_ctor_get(x_6, 1); +lean_inc(x_30); +lean_dec(x_6); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_30); +lean_inc(x_1); +x_31 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(x_1, x_30, x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_29); +lean_dec(x_1); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = !lean_is_exclusive(x_7); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_8); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_35 = lean_ctor_get(x_7, 0); +x_36 = lean_ctor_get(x_7, 5); +x_37 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4); +x_39 = lean_ctor_get(x_8, 0); +x_40 = lean_ctor_get(x_8, 5); +x_41 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 3); +x_42 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 4); +lean_inc(x_40); +lean_ctor_set(x_8, 0, x_35); +x_43 = l_Lean_Meta_Grind_setENode(x_23, x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_32); +lean_dec(x_23); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_nat_add(x_36, x_40); +lean_dec(x_40); +lean_dec(x_36); +if (x_37 == 0) +{ +if (x_9 == 0) +{ +if (x_38 == 0) +{ +lean_object* x_46; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_41); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_42); +x_46 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_46; +} +else +{ +uint8_t x_47; lean_object* x_48; +x_47 = 1; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_41); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_47); +x_48 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_48; +} +} +else +{ +uint8_t x_49; lean_object* x_50; +x_49 = 1; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_41); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_49); +x_50 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_50; +} +} +else +{ +if (x_9 == 0) +{ +if (x_38 == 0) +{ +uint8_t x_51; lean_object* x_52; +x_51 = 1; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_51); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_42); +x_52 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_52; +} +else +{ +uint8_t x_53; lean_object* x_54; +x_53 = 1; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_53); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_53); +x_54 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_54; +} +} +else +{ +uint8_t x_55; lean_object* x_56; +x_55 = 1; +lean_ctor_set(x_7, 5, x_45); +lean_ctor_set(x_7, 0, x_39); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_55); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_55); +x_56 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_44); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_56; +} +} +} +else +{ +lean_object* x_57; lean_object* x_58; uint8_t 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; uint8_t x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t 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_57 = lean_ctor_get(x_7, 0); +x_58 = lean_ctor_get(x_7, 5); +x_59 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +x_60 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4); +x_61 = lean_ctor_get(x_8, 0); +x_62 = lean_ctor_get(x_8, 1); +x_63 = lean_ctor_get(x_8, 2); +x_64 = lean_ctor_get(x_8, 3); +x_65 = lean_ctor_get(x_8, 4); +x_66 = lean_ctor_get_uint8(x_8, sizeof(void*)*8); +x_67 = lean_ctor_get(x_8, 5); +x_68 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 1); +x_69 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 2); +x_70 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 3); +x_71 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 4); +x_72 = lean_ctor_get(x_8, 6); +x_73 = lean_ctor_get(x_8, 7); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_67); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_8); +lean_inc(x_67); +x_74 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_74, 0, x_57); +lean_ctor_set(x_74, 1, x_62); +lean_ctor_set(x_74, 2, x_63); +lean_ctor_set(x_74, 3, x_64); +lean_ctor_set(x_74, 4, x_65); +lean_ctor_set(x_74, 5, x_67); +lean_ctor_set(x_74, 6, x_72); +lean_ctor_set(x_74, 7, x_73); +lean_ctor_set_uint8(x_74, sizeof(void*)*8, x_66); +lean_ctor_set_uint8(x_74, sizeof(void*)*8 + 1, x_68); +lean_ctor_set_uint8(x_74, sizeof(void*)*8 + 2, x_69); +lean_ctor_set_uint8(x_74, sizeof(void*)*8 + 3, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*8 + 4, x_71); +x_75 = l_Lean_Meta_Grind_setENode(x_23, x_74, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_32); +lean_dec(x_23); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = lean_nat_add(x_58, x_67); +lean_dec(x_67); +lean_dec(x_58); +if (x_59 == 0) +{ +if (x_9 == 0) +{ +if (x_60 == 0) +{ +lean_object* x_78; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_70); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_71); +x_78 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_78; +} +else +{ +uint8_t x_79; lean_object* x_80; +x_79 = 1; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_70); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_79); +x_80 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_80; +} +} +else +{ +uint8_t x_81; lean_object* x_82; +x_81 = 1; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_70); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_81); +x_82 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_82; +} +} +else +{ +if (x_9 == 0) +{ +if (x_60 == 0) +{ +uint8_t x_83; lean_object* x_84; +x_83 = 1; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_83); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_71); +x_84 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_84; +} +else +{ +uint8_t x_85; lean_object* x_86; +x_85 = 1; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_85); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_85); +x_86 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_86; +} +} +else +{ +uint8_t x_87; lean_object* x_88; +x_87 = 1; +lean_ctor_set(x_7, 5, x_77); +lean_ctor_set(x_7, 0, x_61); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 3, x_87); +lean_ctor_set_uint8(x_7, sizeof(void*)*8 + 4, x_87); +x_88 = l_Lean_Meta_Grind_setENode(x_30, x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_76); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_88; +} +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; uint8_t 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; lean_object* x_106; uint8_t x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; uint8_t 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; +x_89 = lean_ctor_get(x_7, 0); +x_90 = lean_ctor_get(x_7, 1); +x_91 = lean_ctor_get(x_7, 2); +x_92 = lean_ctor_get(x_7, 3); +x_93 = lean_ctor_get(x_7, 4); +x_94 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); +x_95 = lean_ctor_get(x_7, 5); +x_96 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); +x_97 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); +x_98 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +x_99 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4); +x_100 = lean_ctor_get(x_7, 6); +x_101 = lean_ctor_get(x_7, 7); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_95); +lean_inc(x_93); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_7); +x_102 = lean_ctor_get(x_8, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_8, 1); +lean_inc(x_103); +x_104 = lean_ctor_get(x_8, 2); +lean_inc(x_104); +x_105 = lean_ctor_get(x_8, 3); +lean_inc(x_105); +x_106 = lean_ctor_get(x_8, 4); +lean_inc(x_106); +x_107 = lean_ctor_get_uint8(x_8, sizeof(void*)*8); +x_108 = lean_ctor_get(x_8, 5); +lean_inc(x_108); +x_109 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 1); +x_110 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 2); +x_111 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 3); +x_112 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 4); +x_113 = lean_ctor_get(x_8, 6); +lean_inc(x_113); +x_114 = lean_ctor_get(x_8, 7); +lean_inc(x_114); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + lean_ctor_release(x_8, 5); + lean_ctor_release(x_8, 6); + lean_ctor_release(x_8, 7); + x_115 = x_8; +} else { + lean_dec_ref(x_8); + x_115 = lean_box(0); +} +lean_inc(x_108); +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(0, 8, 5); +} else { + x_116 = x_115; +} +lean_ctor_set(x_116, 0, x_89); +lean_ctor_set(x_116, 1, x_103); +lean_ctor_set(x_116, 2, x_104); +lean_ctor_set(x_116, 3, x_105); +lean_ctor_set(x_116, 4, x_106); +lean_ctor_set(x_116, 5, x_108); +lean_ctor_set(x_116, 6, x_113); +lean_ctor_set(x_116, 7, x_114); +lean_ctor_set_uint8(x_116, sizeof(void*)*8, x_107); +lean_ctor_set_uint8(x_116, sizeof(void*)*8 + 1, x_109); +lean_ctor_set_uint8(x_116, sizeof(void*)*8 + 2, x_110); +lean_ctor_set_uint8(x_116, sizeof(void*)*8 + 3, x_111); +lean_ctor_set_uint8(x_116, sizeof(void*)*8 + 4, x_112); +x_117 = l_Lean_Meta_Grind_setENode(x_23, x_116, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_32); +lean_dec(x_23); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_119 = lean_nat_add(x_95, x_108); +lean_dec(x_108); +lean_dec(x_95); +if (x_98 == 0) +{ +if (x_9 == 0) +{ +if (x_99 == 0) +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_120, 0, x_102); +lean_ctor_set(x_120, 1, x_90); +lean_ctor_set(x_120, 2, x_91); +lean_ctor_set(x_120, 3, x_92); +lean_ctor_set(x_120, 4, x_93); +lean_ctor_set(x_120, 5, x_119); +lean_ctor_set(x_120, 6, x_100); +lean_ctor_set(x_120, 7, x_101); +lean_ctor_set_uint8(x_120, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_120, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_120, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_120, sizeof(void*)*8 + 3, x_111); +lean_ctor_set_uint8(x_120, sizeof(void*)*8 + 4, x_112); +x_121 = l_Lean_Meta_Grind_setENode(x_30, x_120, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_121; +} +else +{ +uint8_t x_122; lean_object* x_123; lean_object* x_124; +x_122 = 1; +x_123 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_123, 0, x_102); +lean_ctor_set(x_123, 1, x_90); +lean_ctor_set(x_123, 2, x_91); +lean_ctor_set(x_123, 3, x_92); +lean_ctor_set(x_123, 4, x_93); +lean_ctor_set(x_123, 5, x_119); +lean_ctor_set(x_123, 6, x_100); +lean_ctor_set(x_123, 7, x_101); +lean_ctor_set_uint8(x_123, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_123, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_123, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_123, sizeof(void*)*8 + 3, x_111); +lean_ctor_set_uint8(x_123, sizeof(void*)*8 + 4, x_122); +x_124 = l_Lean_Meta_Grind_setENode(x_30, x_123, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_124; +} +} +else +{ +uint8_t x_125; lean_object* x_126; lean_object* x_127; +x_125 = 1; +x_126 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_126, 0, x_102); +lean_ctor_set(x_126, 1, x_90); +lean_ctor_set(x_126, 2, x_91); +lean_ctor_set(x_126, 3, x_92); +lean_ctor_set(x_126, 4, x_93); +lean_ctor_set(x_126, 5, x_119); +lean_ctor_set(x_126, 6, x_100); +lean_ctor_set(x_126, 7, x_101); +lean_ctor_set_uint8(x_126, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_126, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_126, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_126, sizeof(void*)*8 + 3, x_111); +lean_ctor_set_uint8(x_126, sizeof(void*)*8 + 4, x_125); +x_127 = l_Lean_Meta_Grind_setENode(x_30, x_126, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_127; +} +} +else +{ +if (x_9 == 0) +{ +if (x_99 == 0) +{ +uint8_t x_128; lean_object* x_129; lean_object* x_130; +x_128 = 1; +x_129 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_129, 0, x_102); +lean_ctor_set(x_129, 1, x_90); +lean_ctor_set(x_129, 2, x_91); +lean_ctor_set(x_129, 3, x_92); +lean_ctor_set(x_129, 4, x_93); +lean_ctor_set(x_129, 5, x_119); +lean_ctor_set(x_129, 6, x_100); +lean_ctor_set(x_129, 7, x_101); +lean_ctor_set_uint8(x_129, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_129, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_129, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_129, sizeof(void*)*8 + 3, x_128); +lean_ctor_set_uint8(x_129, sizeof(void*)*8 + 4, x_112); +x_130 = l_Lean_Meta_Grind_setENode(x_30, x_129, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_130; +} +else +{ +uint8_t x_131; lean_object* x_132; lean_object* x_133; +x_131 = 1; +x_132 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_132, 0, x_102); +lean_ctor_set(x_132, 1, x_90); +lean_ctor_set(x_132, 2, x_91); +lean_ctor_set(x_132, 3, x_92); +lean_ctor_set(x_132, 4, x_93); +lean_ctor_set(x_132, 5, x_119); +lean_ctor_set(x_132, 6, x_100); +lean_ctor_set(x_132, 7, x_101); +lean_ctor_set_uint8(x_132, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_132, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_132, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_132, sizeof(void*)*8 + 3, x_131); +lean_ctor_set_uint8(x_132, sizeof(void*)*8 + 4, x_131); +x_133 = l_Lean_Meta_Grind_setENode(x_30, x_132, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_133; +} +} +else +{ +uint8_t x_134; lean_object* x_135; lean_object* x_136; +x_134 = 1; +x_135 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_135, 0, x_102); +lean_ctor_set(x_135, 1, x_90); +lean_ctor_set(x_135, 2, x_91); +lean_ctor_set(x_135, 3, x_92); +lean_ctor_set(x_135, 4, x_93); +lean_ctor_set(x_135, 5, x_119); +lean_ctor_set(x_135, 6, x_100); +lean_ctor_set(x_135, 7, x_101); +lean_ctor_set_uint8(x_135, sizeof(void*)*8, x_94); +lean_ctor_set_uint8(x_135, sizeof(void*)*8 + 1, x_96); +lean_ctor_set_uint8(x_135, sizeof(void*)*8 + 2, x_97); +lean_ctor_set_uint8(x_135, sizeof(void*)*8 + 3, x_134); +lean_ctor_set_uint8(x_135, sizeof(void*)*8 + 4, x_134); +x_136 = l_Lean_Meta_Grind_setENode(x_30, x_135, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_118); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_30); +return x_136; +} +} +} +} +else +{ +uint8_t x_137; +lean_dec(x_30); +lean_dec(x_23); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +x_137 = !lean_is_exclusive(x_31); +if (x_137 == 0) +{ +return x_31; +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_31, 0); +x_139 = lean_ctor_get(x_31, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_31); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; +} +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; uint8_t x_147; uint8_t 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_141 = lean_ctor_get(x_2, 0); +x_142 = lean_ctor_get(x_2, 1); +x_143 = lean_ctor_get(x_2, 2); +x_144 = lean_ctor_get(x_2, 5); +x_145 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 1); +x_146 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 2); +x_147 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 3); +x_148 = lean_ctor_get_uint8(x_2, sizeof(void*)*8 + 4); +x_149 = lean_ctor_get(x_2, 6); +x_150 = lean_ctor_get(x_2, 7); +lean_inc(x_150); +lean_inc(x_149); +lean_inc(x_144); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_2); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_3); +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_4); +lean_inc(x_142); +x_153 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_153, 0, x_141); +lean_ctor_set(x_153, 1, x_142); +lean_ctor_set(x_153, 2, x_143); +lean_ctor_set(x_153, 3, x_151); +lean_ctor_set(x_153, 4, x_152); +lean_ctor_set(x_153, 5, x_144); +lean_ctor_set(x_153, 6, x_149); +lean_ctor_set(x_153, 7, x_150); +lean_ctor_set_uint8(x_153, sizeof(void*)*8, x_5); +lean_ctor_set_uint8(x_153, sizeof(void*)*8 + 1, x_145); +lean_ctor_set_uint8(x_153, sizeof(void*)*8 + 2, x_146); +lean_ctor_set_uint8(x_153, sizeof(void*)*8 + 3, x_147); +lean_ctor_set_uint8(x_153, sizeof(void*)*8 + 4, x_148); +x_154 = l_Lean_Meta_Grind_setENode(x_1, x_153, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_21); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_156 = lean_ctor_get(x_6, 1); +lean_inc(x_156); +lean_dec(x_6); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_156); +lean_inc(x_1); +x_157 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop(x_1, x_156, x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_155); +lean_dec(x_1); +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; uint8_t x_164; lean_object* x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t 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; uint8_t x_178; lean_object* x_179; uint8_t x_180; uint8_t x_181; uint8_t 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; lean_object* x_190; +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_159 = lean_ctor_get(x_7, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_7, 1); +lean_inc(x_160); +x_161 = lean_ctor_get(x_7, 2); +lean_inc(x_161); +x_162 = lean_ctor_get(x_7, 3); +lean_inc(x_162); +x_163 = lean_ctor_get(x_7, 4); +lean_inc(x_163); +x_164 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); +x_165 = lean_ctor_get(x_7, 5); +lean_inc(x_165); +x_166 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); +x_167 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); +x_168 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +x_169 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 4); +x_170 = lean_ctor_get(x_7, 6); +lean_inc(x_170); +x_171 = lean_ctor_get(x_7, 7); +lean_inc(x_171); +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); + lean_ctor_release(x_7, 4); + lean_ctor_release(x_7, 5); + lean_ctor_release(x_7, 6); + lean_ctor_release(x_7, 7); + x_172 = x_7; +} else { + lean_dec_ref(x_7); + x_172 = lean_box(0); +} +x_173 = lean_ctor_get(x_8, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_8, 1); +lean_inc(x_174); +x_175 = lean_ctor_get(x_8, 2); +lean_inc(x_175); +x_176 = lean_ctor_get(x_8, 3); +lean_inc(x_176); +x_177 = lean_ctor_get(x_8, 4); +lean_inc(x_177); +x_178 = lean_ctor_get_uint8(x_8, sizeof(void*)*8); +x_179 = lean_ctor_get(x_8, 5); +lean_inc(x_179); +x_180 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 1); +x_181 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 2); +x_182 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 3); +x_183 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 4); +x_184 = lean_ctor_get(x_8, 6); +lean_inc(x_184); +x_185 = lean_ctor_get(x_8, 7); +lean_inc(x_185); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + lean_ctor_release(x_8, 5); + lean_ctor_release(x_8, 6); + lean_ctor_release(x_8, 7); + x_186 = x_8; +} else { + lean_dec_ref(x_8); + x_186 = lean_box(0); +} +lean_inc(x_179); +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(0, 8, 5); +} else { + x_187 = x_186; +} +lean_ctor_set(x_187, 0, x_159); +lean_ctor_set(x_187, 1, x_174); +lean_ctor_set(x_187, 2, x_175); +lean_ctor_set(x_187, 3, x_176); +lean_ctor_set(x_187, 4, x_177); +lean_ctor_set(x_187, 5, x_179); +lean_ctor_set(x_187, 6, x_184); +lean_ctor_set(x_187, 7, x_185); +lean_ctor_set_uint8(x_187, sizeof(void*)*8, x_178); +lean_ctor_set_uint8(x_187, sizeof(void*)*8 + 1, x_180); +lean_ctor_set_uint8(x_187, sizeof(void*)*8 + 2, x_181); +lean_ctor_set_uint8(x_187, sizeof(void*)*8 + 3, x_182); +lean_ctor_set_uint8(x_187, sizeof(void*)*8 + 4, x_183); +x_188 = l_Lean_Meta_Grind_setENode(x_142, x_187, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_158); +lean_dec(x_142); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +lean_dec(x_188); +x_190 = lean_nat_add(x_165, x_179); +lean_dec(x_179); +lean_dec(x_165); +if (x_168 == 0) +{ +if (x_9 == 0) +{ +if (x_169 == 0) +{ +lean_object* x_191; lean_object* x_192; +if (lean_is_scalar(x_172)) { + x_191 = lean_alloc_ctor(0, 8, 5); +} else { + x_191 = x_172; +} +lean_ctor_set(x_191, 0, x_173); +lean_ctor_set(x_191, 1, x_160); +lean_ctor_set(x_191, 2, x_161); +lean_ctor_set(x_191, 3, x_162); +lean_ctor_set(x_191, 4, x_163); +lean_ctor_set(x_191, 5, x_190); +lean_ctor_set(x_191, 6, x_170); +lean_ctor_set(x_191, 7, x_171); +lean_ctor_set_uint8(x_191, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_191, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_191, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_191, sizeof(void*)*8 + 3, x_182); +lean_ctor_set_uint8(x_191, sizeof(void*)*8 + 4, x_183); +x_192 = l_Lean_Meta_Grind_setENode(x_156, x_191, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_192; +} +else +{ +uint8_t x_193; lean_object* x_194; lean_object* x_195; +x_193 = 1; +if (lean_is_scalar(x_172)) { + x_194 = lean_alloc_ctor(0, 8, 5); +} else { + x_194 = x_172; +} +lean_ctor_set(x_194, 0, x_173); +lean_ctor_set(x_194, 1, x_160); +lean_ctor_set(x_194, 2, x_161); +lean_ctor_set(x_194, 3, x_162); +lean_ctor_set(x_194, 4, x_163); +lean_ctor_set(x_194, 5, x_190); +lean_ctor_set(x_194, 6, x_170); +lean_ctor_set(x_194, 7, x_171); +lean_ctor_set_uint8(x_194, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_194, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_194, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_194, sizeof(void*)*8 + 3, x_182); +lean_ctor_set_uint8(x_194, sizeof(void*)*8 + 4, x_193); +x_195 = l_Lean_Meta_Grind_setENode(x_156, x_194, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_195; +} +} +else +{ +uint8_t x_196; lean_object* x_197; lean_object* x_198; +x_196 = 1; +if (lean_is_scalar(x_172)) { + x_197 = lean_alloc_ctor(0, 8, 5); +} else { + x_197 = x_172; +} +lean_ctor_set(x_197, 0, x_173); +lean_ctor_set(x_197, 1, x_160); +lean_ctor_set(x_197, 2, x_161); +lean_ctor_set(x_197, 3, x_162); +lean_ctor_set(x_197, 4, x_163); +lean_ctor_set(x_197, 5, x_190); +lean_ctor_set(x_197, 6, x_170); +lean_ctor_set(x_197, 7, x_171); +lean_ctor_set_uint8(x_197, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_197, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_197, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_197, sizeof(void*)*8 + 3, x_182); +lean_ctor_set_uint8(x_197, sizeof(void*)*8 + 4, x_196); +x_198 = l_Lean_Meta_Grind_setENode(x_156, x_197, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_198; +} +} +else +{ +if (x_9 == 0) +{ +if (x_169 == 0) +{ +uint8_t x_199; lean_object* x_200; lean_object* x_201; +x_199 = 1; +if (lean_is_scalar(x_172)) { + x_200 = lean_alloc_ctor(0, 8, 5); +} else { + x_200 = x_172; +} +lean_ctor_set(x_200, 0, x_173); +lean_ctor_set(x_200, 1, x_160); +lean_ctor_set(x_200, 2, x_161); +lean_ctor_set(x_200, 3, x_162); +lean_ctor_set(x_200, 4, x_163); +lean_ctor_set(x_200, 5, x_190); +lean_ctor_set(x_200, 6, x_170); +lean_ctor_set(x_200, 7, x_171); +lean_ctor_set_uint8(x_200, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_200, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_200, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_200, sizeof(void*)*8 + 3, x_199); +lean_ctor_set_uint8(x_200, sizeof(void*)*8 + 4, x_183); +x_201 = l_Lean_Meta_Grind_setENode(x_156, x_200, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_201; +} +else +{ +uint8_t x_202; lean_object* x_203; lean_object* x_204; +x_202 = 1; +if (lean_is_scalar(x_172)) { + x_203 = lean_alloc_ctor(0, 8, 5); +} else { + x_203 = x_172; +} +lean_ctor_set(x_203, 0, x_173); +lean_ctor_set(x_203, 1, x_160); +lean_ctor_set(x_203, 2, x_161); +lean_ctor_set(x_203, 3, x_162); +lean_ctor_set(x_203, 4, x_163); +lean_ctor_set(x_203, 5, x_190); +lean_ctor_set(x_203, 6, x_170); +lean_ctor_set(x_203, 7, x_171); +lean_ctor_set_uint8(x_203, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_203, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_203, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_203, sizeof(void*)*8 + 3, x_202); +lean_ctor_set_uint8(x_203, sizeof(void*)*8 + 4, x_202); +x_204 = l_Lean_Meta_Grind_setENode(x_156, x_203, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_204; +} +} +else +{ +uint8_t x_205; lean_object* x_206; lean_object* x_207; +x_205 = 1; +if (lean_is_scalar(x_172)) { + x_206 = lean_alloc_ctor(0, 8, 5); +} else { + x_206 = x_172; +} +lean_ctor_set(x_206, 0, x_173); +lean_ctor_set(x_206, 1, x_160); +lean_ctor_set(x_206, 2, x_161); +lean_ctor_set(x_206, 3, x_162); +lean_ctor_set(x_206, 4, x_163); +lean_ctor_set(x_206, 5, x_190); +lean_ctor_set(x_206, 6, x_170); +lean_ctor_set(x_206, 7, x_171); +lean_ctor_set_uint8(x_206, sizeof(void*)*8, x_164); +lean_ctor_set_uint8(x_206, sizeof(void*)*8 + 1, x_166); +lean_ctor_set_uint8(x_206, sizeof(void*)*8 + 2, x_167); +lean_ctor_set_uint8(x_206, sizeof(void*)*8 + 3, x_205); +lean_ctor_set_uint8(x_206, sizeof(void*)*8 + 4, x_205); +x_207 = l_Lean_Meta_Grind_setENode(x_156, x_206, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_189); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_156); +return x_207; +} +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_156); +lean_dec(x_142); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +x_208 = lean_ctor_get(x_157, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_157, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_210 = x_157; +} else { + lean_dec_ref(x_157); + 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 +{ +uint8_t x_212; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +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_212 = !lean_is_exclusive(x_20); +if (x_212 == 0) +{ +return x_20; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_20, 0); +x_214 = lean_ctor_get(x_20, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_20); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(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, 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) { +_start: +{ +uint8_t x_18; +x_18 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_19 = 0; +x_20 = lean_box(0); +x_21 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_3, x_5, x_4, x_1, x_9, x_6, x_8, x_7, x_2, x_19, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_21; +} +else +{ +uint8_t x_22; +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*8 + 1); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_23 = 0; +x_24 = lean_box(0); +x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_3, x_5, x_4, x_1, x_9, x_6, x_8, x_7, x_2, x_23, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_25; +} +else +{ +lean_object* x_26; uint8_t x_27; +x_26 = lean_ctor_get(x_5, 1); +lean_inc(x_26); +x_27 = l_Lean_Expr_isTrue(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_6, 1); +lean_inc(x_28); +x_29 = l_Lean_Expr_isTrue(x_28); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_30 = 1; +x_31 = lean_box(0); +x_32 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_3, x_5, x_4, x_1, x_9, x_6, x_8, x_7, x_2, x_30, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; +x_33 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = 0; +x_37 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_3, x_5, x_4, x_1, x_9, x_6, x_8, x_7, x_2, x_36, x_34, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_35); +lean_dec(x_34); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; +x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_markAsInconsistent(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +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 = 0; +x_42 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_3, x_5, x_4, x_1, x_9, x_6, x_8, x_7, x_2, x_41, x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_40); +lean_dec(x_39); +return x_42; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1___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]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; +x_20 = lean_unbox(x_5); +lean_dec(x_5); +x_21 = lean_unbox(x_9); +lean_dec(x_9); +x_22 = lean_unbox(x_10); +lean_dec(x_10); +x_23 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_1, x_2, x_3, x_4, x_20, x_6, x_7, x_8, x_21, x_22, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_11); +return x_23; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___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: +{ +uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_unbox(x_2); +lean_dec(x_2); +x_19 = lean_unbox(x_9); +lean_dec(x_9); +x_20 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +return x_20; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_private.Lean.Meta.Tactic.Grind.Core.0.Lean.Meta.Grind.addEqStep", 64); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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; lean_object* x_6; +x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(84u); +x_4 = lean_unsigned_to_nat(46u); +x_5 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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; lean_object* x_6; +x_1 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(85u); +x_4 = lean_unsigned_to_nat(46u); +x_5 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__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_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; +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +x_17 = l_Lean_Meta_Grind_getENode_x3f(x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_16); +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_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__2; +x_21 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1(x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_19); +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_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_ctor_get(x_2, 1); +lean_inc(x_24); +x_25 = l_Lean_Meta_Grind_getENode_x3f(x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_23); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__3; +x_29 = l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1(x_28, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_27); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_47; +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_dec(x_25); +x_31 = lean_ctor_get(x_26, 0); +lean_inc(x_31); +lean_dec(x_26); +x_47 = lean_ctor_get_uint8(x_23, sizeof(void*)*8 + 1); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = lean_ctor_get_uint8(x_23, sizeof(void*)*8 + 2); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = lean_box(0); +x_32 = x_49; +goto block_46; +} +else +{ +uint8_t x_50; +x_50 = lean_ctor_get_uint8(x_31, sizeof(void*)*8 + 2); +if (x_50 == 0) +{ +uint8_t x_51; lean_object* x_52; +x_51 = 1; +x_52 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_6, x_5, x_2, x_1, x_31, x_23, x_51, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_52; +} +else +{ +lean_object* x_53; +x_53 = lean_box(0); +x_32 = x_53; +goto block_46; +} +} +} +else +{ +uint8_t x_54; +x_54 = lean_ctor_get_uint8(x_31, sizeof(void*)*8 + 1); +if (x_54 == 0) +{ +uint8_t x_55; lean_object* x_56; +x_55 = 1; +x_56 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_6, x_5, x_2, x_1, x_31, x_23, x_55, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_56; +} +else +{ +uint8_t x_57; +x_57 = lean_ctor_get_uint8(x_23, sizeof(void*)*8 + 2); +if (x_57 == 0) +{ +lean_object* x_58; +x_58 = lean_box(0); +x_32 = x_58; +goto block_46; +} +else +{ +uint8_t x_59; +x_59 = lean_ctor_get_uint8(x_31, sizeof(void*)*8 + 2); +if (x_59 == 0) +{ +uint8_t x_60; lean_object* x_61; +x_60 = 1; +x_61 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_6, x_5, x_2, x_1, x_31, x_23, x_60, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_61; +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_32 = x_62; +goto block_46; +} +} +} +} +block_46: +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_dec(x_32); +x_33 = lean_ctor_get(x_31, 5); +lean_inc(x_33); +x_34 = lean_ctor_get(x_23, 5); +lean_inc(x_34); +x_35 = lean_nat_dec_lt(x_33, x_34); +lean_dec(x_34); +lean_dec(x_33); +if (x_35 == 0) +{ +uint8_t x_36; lean_object* x_37; +x_36 = 0; +x_37 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_5, x_6, x_1, x_2, x_23, x_31, x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_37; +} +else +{ +uint8_t x_38; +x_38 = lean_ctor_get_uint8(x_31, sizeof(void*)*8 + 1); +if (x_38 == 0) +{ +uint8_t x_39; +x_39 = lean_ctor_get_uint8(x_31, sizeof(void*)*8 + 2); +if (x_39 == 0) +{ +uint8_t x_40; lean_object* x_41; +x_40 = 1; +x_41 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_6, x_5, x_2, x_1, x_31, x_23, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_41; +} +else +{ +uint8_t x_42; lean_object* x_43; +x_42 = 0; +x_43 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_5, x_6, x_1, x_2, x_23, x_31, x_42, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_43; +} +} +else +{ +uint8_t x_44; lean_object* x_45; +x_44 = 0; +x_45 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(x_3, x_4, x_5, x_6, x_1, x_2, x_23, x_31, x_44, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +return x_45; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(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_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_Meta_Grind_getENode_x3f(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_13, 0, x_17); +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_dec(x_13); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_dec(x_13); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +x_23 = l_Lean_Meta_Grind_getENode_x3f(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +lean_dec(x_22); +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_23, 0, x_27); +return x_23; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = lean_box(0); +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; +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_32 = lean_ctor_get(x_23, 1); +x_33 = lean_ctor_get(x_23, 0); +lean_dec(x_33); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec(x_24); +x_35 = lean_ctor_get(x_22, 1); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +x_37 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_35, x_36); +lean_dec(x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_free_object(x_23); +x_38 = lean_box(0); +x_39 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1(x_22, x_34, x_3, x_4, x_1, x_2, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +return x_39; +} +else +{ +lean_object* x_40; +lean_dec(x_34); +lean_dec(x_22); +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = lean_box(0); +lean_ctor_set(x_23, 0, x_40); +return x_23; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_41 = lean_ctor_get(x_23, 1); +lean_inc(x_41); +lean_dec(x_23); +x_42 = lean_ctor_get(x_24, 0); +lean_inc(x_42); +lean_dec(x_24); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +x_45 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_43, x_44); +lean_dec(x_44); +lean_dec(x_43); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_box(0); +x_47 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1(x_22, x_42, x_3, x_4, x_1, x_2, x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_41); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_42); +lean_dec(x_22); +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_41); +return x_49; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_4); +lean_dec(x_4); +x_17 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1(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_7); +return x_17; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore_processTodo___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; uint8_t x_11; +lean_dec(x_1); +x_10 = lean_st_ref_get(x_2, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_12, 3); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Array_back_x3f___rarg(x_14); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +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_16 = lean_box(0); +lean_ctor_set(x_10, 0, x_16); +return x_10; +} +else +{ +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_free_object(x_10); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 2); +lean_inc(x_20); +x_21 = lean_ctor_get_uint8(x_17, sizeof(void*)*3); +lean_dec(x_17); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_22 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_18, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Meta_Grind_addEqCore_processTodo(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +return x_24; +} +else +{ +uint8_t x_25; +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_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_22); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_10, 0); +x_30 = lean_ctor_get(x_10, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_10); +x_31 = lean_ctor_get(x_29, 3); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Array_back_x3f___rarg(x_31); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +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_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 2); +lean_inc(x_38); +x_39 = lean_ctor_get_uint8(x_35, sizeof(void*)*3); +lean_dec(x_35); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_40 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_36, x_37, x_38, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = l_Lean_Meta_Grind_addEqCore_processTodo(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_41); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +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_43 = lean_ctor_get(x_40, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_45 = x_40; +} else { + lean_dec_ref(x_40); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEqCore_processTodo___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_addEqCore_processTodo___lambda__1), 9, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addEqCore_processTodo___closed__2() { +_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_Lean_Meta_Grind_addEqCore_processTodo(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_11; +x_9 = lean_st_ref_get(x_1, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get_uint8(x_10, sizeof(void*)*5); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_Lean_Meta_Grind_addEqCore_processTodo___closed__1; +x_14 = lean_box(0); +x_15 = lean_apply_9(x_13, x_14, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +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_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_dec(x_9); +x_17 = lean_st_ref_take(x_1, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 3); +lean_dec(x_21); +x_22 = l_Lean_Meta_Grind_addEqCore_processTodo___closed__2; +lean_ctor_set(x_18, 3, x_22); +x_23 = lean_st_ref_set(x_1, x_18, x_19); +lean_dec(x_1); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +lean_object* 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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get_uint8(x_18, sizeof(void*)*5); +x_34 = lean_ctor_get(x_18, 4); +lean_inc(x_34); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_35 = l_Lean_Meta_Grind_addEqCore_processTodo___closed__2; +x_36 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_31); +lean_ctor_set(x_36, 2, x_32); +lean_ctor_set(x_36, 3, x_35); +lean_ctor_set(x_36, 4, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*5, x_33); +x_37 = lean_st_ref_set(x_1, x_36, x_19); +lean_dec(x_1); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore(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_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_13 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Meta_Grind_addEqCore_processTodo(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEqCore___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = l_Lean_Meta_Grind_addEqCore(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEq(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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = 0; +x_13 = l_Lean_Meta_Grind_addEqCore(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addHEq(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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = 1; +x_13 = l_Lean_Meta_Grind_addEqCore(x_1, x_2, x_3, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_LitValues(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Core(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Meta_Tactic_Grind_Types(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_LitValues(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__2); +l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__3); +l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___spec__1___closed__4); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__1); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__2); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__3); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___closed__4); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__1); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots_loop___closed__2); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__1___closed__3); +l_Lean_Meta_Grind_addEqCore_processTodo___closed__1 = _init_l_Lean_Meta_Grind_addEqCore_processTodo___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addEqCore_processTodo___closed__1); +l_Lean_Meta_Grind_addEqCore_processTodo___closed__2 = _init_l_Lean_Meta_Grind_addEqCore_processTodo___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_addEqCore_processTodo___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c index 6326641413..c1f80ed7cb 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Preprocessor.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Preprocessor -// Imports: Init.Grind.Lemmas Lean.Meta.Canonicalizer Lean.Meta.Tactic.Util Lean.Meta.Tactic.Intro Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection +// Imports: Init.Grind.Lemmas Lean.Meta.Canonicalizer Lean.Meta.Tactic.Util Lean.Meta.Tactic.Intro Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,13 +15,12 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_injection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_instBEqOfDecidableEq___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__5; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_State_goals___default; static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2; lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__4; @@ -29,10 +28,7 @@ uint32_t l_UInt32_ofNatTruncate(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simpHyp_x3f(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_Meta_Grind_Preprocessor_preprocess___lambda__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_Expr_isLet(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simpHyp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__5; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -44,11 +40,14 @@ static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__6; static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3; size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_PersistentArray_toList___rarg(lean_object*); +static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6; lean_object* l_Lean_MVarId_revertAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__7; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp___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_Meta_Grind_Preprocessor_simp___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4(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_Meta_Grind_Preprocessor_PreM_run___rarg___closed__4; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); @@ -56,14 +55,17 @@ static size_t l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg(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_Meta_Grind_Preprocessor_introNext(lean_object*, lean_object*, 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_Lean_Meta_Grind_Preprocessor_simp___rarg___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_Meta_Grind_Preprocessor_loop(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_Meta_Grind_Preprocessor_State_simpStats___default___closed__1; lean_object* l_Lean_Meta_Simp_SimprocExtension_getSimprocs(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_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* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1; static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__6; static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__3; static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp___rarg(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_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_main___closed__2; @@ -71,21 +73,23 @@ static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___close static lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult___boxed(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_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isGrindCasesTarget(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___lambda__1(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_Meta_Grind_Preprocessor_instInhabitedContext___closed__3; +lean_object* l_ShareCommon_mkStateImpl(lean_object*); lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__4___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__6; static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8; -lean_object* l_Lean_Meta_Grind_GrindM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___spec__1(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_isArrow(lean_object*); +lean_object* l_Lean_MVarId_clearAuxDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default; lean_object* l_Lean_MVarId_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -96,11 +100,10 @@ lean_object* l_Lean_LocalContext_mkLocalDecl(lean_object*, lean_object*, lean_ob extern lean_object* l_Lean_Meta_Grind_grindNormSimprocExt; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_main___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp(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_Meta_Grind_Preprocessor_simp(lean_object*); lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext; -static lean_object* l_Lean_Meta_Grind_main___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_isCasesCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -112,9 +115,8 @@ static lean_object* l_Lean_Meta_Grind_main___closed__4; lean_object* l_Lean_Meta_Grind_shareCommon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_instHashableUInt64___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_main___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__4; LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Grind_grindNormExt; @@ -125,7 +127,6 @@ static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___c LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyInjection_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_transformTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(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_Meta_Grind_main___closed__5; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); @@ -142,19 +143,21 @@ static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed lean_object* l_Lean_Expr_fvar___override(lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_Preprocessor_applyCases_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__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* l_Lean_Meta_simpLocalDecl(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_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed(lean_object**); lean_object* l_Lean_Meta_Grind_unfoldReducible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_Lean_Meta_Grind_Preprocessor_introNext___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_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(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_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_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_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2(lean_object*); static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_Lean_Meta_Grind_Preprocessor_loop___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* l_Lean_Meta_Grind_canon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedState; +lean_object* l_Lean_Meta_Grind_mkGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ShareCommon_objectFactory; static lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1; static lean_object* l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__1; lean_object* l_Lean_Meta_Grind_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -165,13 +168,13 @@ static lean_object* l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___c lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_isCasesCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_instDecidableEqUInt64___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_MVarId_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___lambda__1(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_Meta_Grind_Preprocessor_State_simpStats___default___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_applyCases_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__1() { _start: @@ -406,6 +409,14 @@ x_1 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8; return x_1; } } +static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_State_goals___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__6; +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1() { _start: { @@ -469,11 +480,23 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__5; +x_2 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__3; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__5; +x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6; return x_1; } } @@ -544,6 +567,18 @@ x_2 = l_UInt32_ofNatTruncate(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8; +x_2 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__6; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_PreM_run___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: { @@ -587,7 +622,7 @@ lean_ctor_set_uint32(x_29, sizeof(void*)*5, x_27); lean_ctor_set_uint32(x_29, sizeof(void*)*5 + 4, x_25); lean_ctor_set(x_19, 1, x_18); lean_ctor_set(x_19, 0, x_29); -x_30 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8; +x_30 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6; x_31 = lean_st_mk_ref(x_30, x_22); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); @@ -676,7 +711,7 @@ lean_ctor_set_uint32(x_54, sizeof(void*)*5 + 4, x_50); x_55 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_18); -x_56 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8; +x_56 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6; x_57 = lean_st_mk_ref(x_56, x_47); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); @@ -750,187 +785,154 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg) return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp(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_Lean_Meta_Grind_Preprocessor_simp___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_object* x_9, lean_object* x_10) { _start: { -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_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_11 = lean_st_ref_get(x_3, x_10); 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_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_2, 1); +lean_dec(x_12); +x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); lean_dec(x_2); -x_16 = lean_box(0); -x_17 = l_Lean_Meta_simp(x_1, x_14, x_15, x_16, x_12, x_6, x_7, x_8, x_9, x_13); -if (lean_obj_tag(x_17) == 0) +x_17 = lean_box(0); +x_18 = l_Lean_Meta_simp(x_1, x_15, x_16, x_17, x_14, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_18) == 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_17, 1); +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; uint8_t x_26; +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 0); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); lean_dec(x_18); -x_22 = lean_st_ref_take(x_3, x_19); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_st_ref_set(x_3, x_21, x_23); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +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_st_ref_take(x_3, x_20); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = !lean_is_exclusive(x_24); +if (x_26 == 0) { -lean_object* x_26; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -lean_ctor_set(x_24, 0, x_20); -return x_24; -} -else -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_20); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -else -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_17); +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_24, 0); +lean_dec(x_27); +lean_ctor_set(x_24, 0, x_22); +x_28 = lean_st_ref_set(x_3, x_24, x_25); +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { -return x_17; +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +lean_ctor_set(x_28, 0, x_21); +return x_28; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_17, 0); -x_31 = lean_ctor_get(x_17, 1); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 1); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_17); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); +lean_dec(x_28); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_21); 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; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_dec(x_24); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_22); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_st_ref_set(x_3, x_34, x_25); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_21); +lean_ctor_set(x_38, 1, x_36); +return x_38; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp___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) { +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_18); +if (x_39 == 0) +{ +return x_18; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_18, 0); +x_41 = lean_ctor_get(x_18, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_18); +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_Lean_Meta_Grind_Preprocessor_simp(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_simp___rarg___boxed), 10, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simp___rarg___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_Lean_Meta_Grind_Preprocessor_simp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Preprocessor_simp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_simpHyp_x3f(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_Meta_Grind_Preprocessor_simp___boxed(lean_object* x_1) { _start: { -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; -x_12 = lean_st_ref_get(x_4, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 1); -lean_inc(x_16); -lean_dec(x_3); -x_17 = lean_box(0); -x_18 = 1; -x_19 = l_Lean_Meta_simpLocalDecl(x_1, x_2, x_15, x_16, x_17, x_18, x_13, x_7, x_8, x_9, x_10, x_14); -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_26; uint8_t x_27; -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_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 = lean_st_ref_take(x_4, x_21); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_ref_set(x_4, x_23, x_25); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_22); -return x_26; -} -else -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_22); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -x_31 = !lean_is_exclusive(x_19); -if (x_31 == 0) -{ -return x_19; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_19, 0); -x_33 = lean_ctor_get(x_19, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_19); -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_Lean_Meta_Grind_Preprocessor_simpHyp_x3f___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_Lean_Meta_Grind_Preprocessor_simpHyp_x3f(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_6); -lean_dec(x_5); -lean_dec(x_4); -return x_12; +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_Preprocessor_simp(x_1); +lean_dec(x_1); +return x_2; } } LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___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_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -1481,168 +1483,184 @@ x_11 = l_Lean_FVarId_getDecl(x_1, x_6, x_7, x_8, x_9, x_10); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_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_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_15; lean_object* x_16; -x_15 = l_Lean_LocalDecl_type(x_5); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); +lean_object* x_18; lean_object* x_19; +x_18 = l_Lean_LocalDecl_type(x_8); +lean_inc(x_16); lean_inc(x_15); -x_16 = l_Lean_Meta_isProp(x_15, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_16) == 0) +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_18); +x_19 = l_Lean_Meta_isProp(x_18, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 0); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); lean_dec(x_20); -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_21, 1, x_2); -lean_ctor_set(x_21, 2, x_3); -x_22 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_22, 0, x_4); -lean_ctor_set(x_22, 1, x_21); -lean_ctor_set(x_16, 0, x_22); -return x_16; -} -else +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); +uint8_t x_22; +lean_dec(x_18); lean_dec(x_16); -x_24 = lean_alloc_ctor(0, 3, 0); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +x_24 = lean_alloc_ctor(0, 5, 1); lean_ctor_set(x_24, 0, x_1); lean_ctor_set(x_24, 1, x_2); lean_ctor_set(x_24, 2, x_3); +lean_ctor_set(x_24, 3, x_4); +lean_ctor_set(x_24, 4, x_6); +lean_ctor_set_uint8(x_24, sizeof(void*)*5, x_5); x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_4); +lean_ctor_set(x_25, 0, x_7); lean_ctor_set(x_25, 1, 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_23); -return x_26; +lean_ctor_set(x_19, 0, x_25); +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_dec(x_19); +x_27 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_2); +lean_ctor_set(x_27, 2, x_3); +lean_ctor_set(x_27, 3, x_4); +lean_ctor_set(x_27, 4, x_6); +lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_5); +x_28 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_28, 0, x_7); +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_26); +return x_29; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_16, 1); -lean_inc(x_27); -lean_dec(x_16); -x_28 = l_Lean_LocalDecl_userName(x_5); -x_29 = l_Lean_Expr_fvar___override(x_4); -x_30 = l_Lean_MVarId_assert(x_1, x_28, x_15, x_29, x_10, x_11, x_12, x_13, x_27); -if (lean_obj_tag(x_30) == 0) +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_19, 1); +lean_inc(x_30); +lean_dec(x_19); +x_31 = l_Lean_LocalDecl_userName(x_8); +x_32 = l_Lean_Expr_fvar___override(x_7); +x_33 = l_Lean_MVarId_assert(x_1, x_31, x_18, x_32, x_13, x_14, x_15, x_16, x_30); +if (lean_obj_tag(x_33) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_2); -lean_ctor_set(x_33, 2, x_3); -x_34 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_30, 0, x_34); -return x_30; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_2); +lean_ctor_set(x_36, 2, x_3); +lean_ctor_set(x_36, 3, x_4); +lean_ctor_set(x_36, 4, x_6); +lean_ctor_set_uint8(x_36, sizeof(void*)*5, x_5); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_33, 0, x_37); +return x_33; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_30, 0); -x_36 = lean_ctor_get(x_30, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_30); -x_37 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_2); -lean_ctor_set(x_37, 2, x_3); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, 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_36); -return x_39; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_2); +lean_ctor_set(x_40, 2, x_3); +lean_ctor_set(x_40, 3, x_4); +lean_ctor_set(x_40, 4, x_6); +lean_ctor_set_uint8(x_40, sizeof(void*)*5, x_5); +x_41 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_41, 0, 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_39); +return x_42; } } else { -uint8_t x_40; +uint8_t x_43; +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_40 = !lean_is_exclusive(x_30); -if (x_40 == 0) +x_43 = !lean_is_exclusive(x_33); +if (x_43 == 0) { -return x_30; +return x_33; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_30, 0); -x_42 = lean_ctor_get(x_30, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_30); -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; +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_33, 0); +x_45 = lean_ctor_get(x_33, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_33); +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_44; +uint8_t x_47; +lean_dec(x_18); +lean_dec(x_16); lean_dec(x_15); +lean_dec(x_14); lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); +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_44 = !lean_is_exclusive(x_16); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_19); +if (x_47 == 0) { -return x_16; +return x_19; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_16, 0); -x_46 = lean_ctor_get(x_16, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_16); -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; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_19, 0); +x_49 = lean_ctor_get(x_19, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_19); +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; } } } @@ -1720,401 +1738,392 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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, uint8_t 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) { _start: { -lean_object* x_20; -x_20 = lean_ctor_get(x_1, 1); -lean_inc(x_20); +lean_object* x_23; +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); lean_dec(x_1); -if (lean_obj_tag(x_20) == 0) +if (lean_obj_tag(x_23) == 0) { -lean_object* x_21; uint8_t x_22; -lean_dec(x_9); +lean_object* x_24; uint8_t x_25; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_24 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +x_27 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_27, 0, x_3); +lean_ctor_set(x_27, 1, x_4); +lean_ctor_set(x_27, 2, x_5); +lean_ctor_set(x_27, 3, x_6); +lean_ctor_set(x_27, 4, x_8); +lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_7); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_9); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_24, 0, x_28); +return x_24; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_dec(x_24); +x_30 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_30, 0, x_3); +lean_ctor_set(x_30, 1, x_4); +lean_ctor_set(x_30, 2, x_5); +lean_ctor_set(x_30, 3, x_6); +lean_ctor_set(x_30, 4, x_8); +lean_ctor_set_uint8(x_30, sizeof(void*)*5, x_7); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_9); +lean_ctor_set(x_31, 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_29); +return x_32; +} +} +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; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_33 = lean_ctor_get(x_23, 0); +lean_inc(x_33); +lean_dec(x_23); +x_34 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__6; +x_35 = lean_array_push(x_34, x_10); +x_36 = lean_array_push(x_35, x_11); +x_37 = lean_array_push(x_36, x_12); +x_38 = lean_array_push(x_37, x_33); +x_39 = lean_array_push(x_38, x_13); +x_40 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__5; +x_41 = l_Lean_mkAppN(x_40, x_39); +x_42 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_41, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_45, 0, x_3); +lean_ctor_set(x_45, 1, x_4); +lean_ctor_set(x_45, 2, x_5); +lean_ctor_set(x_45, 3, x_6); +lean_ctor_set(x_45, 4, x_8); +lean_ctor_set_uint8(x_45, sizeof(void*)*5, x_7); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_9); +lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_42, 0, x_46); +return x_42; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_dec(x_42); +x_48 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_48, 0, x_3); +lean_ctor_set(x_48, 1, x_4); +lean_ctor_set(x_48, 2, x_5); +lean_ctor_set(x_48, 3, x_6); +lean_ctor_set(x_48, 4, x_8); +lean_ctor_set_uint8(x_48, sizeof(void*)*5, x_7); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_9); +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_47); +return x_50; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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) { +_start: +{ +if (x_9 == 0) +{ +uint8_t x_19; lean_object* x_20; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); -x_21 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +x_19 = 1; +x_20 = l_Lean_Meta_intro1Core(x_1, x_19, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -x_24 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_24, 0, x_3); -lean_ctor_set(x_24, 1, x_4); -lean_ctor_set(x_24, 2, x_5); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_6); -lean_ctor_set(x_25, 1, x_24); -lean_ctor_set(x_21, 0, x_25); -return x_21; +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_20, 0); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_2); +lean_ctor_set(x_25, 2, x_3); +lean_ctor_set(x_25, 3, x_4); +lean_ctor_set(x_25, 4, x_6); +lean_ctor_set_uint8(x_25, sizeof(void*)*5, x_5); +lean_ctor_set_tag(x_22, 3); +lean_ctor_set(x_22, 1, x_25); +return x_20; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_21, 1); +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); lean_inc(x_26); -lean_dec(x_21); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_3); -lean_ctor_set(x_27, 1, x_4); -lean_ctor_set(x_27, 2, x_5); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_6); -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_26); -return x_29; +lean_dec(x_22); +x_28 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_2); +lean_ctor_set(x_28, 2, x_3); +lean_ctor_set(x_28, 3, x_4); +lean_ctor_set(x_28, 4, x_6); +lean_ctor_set_uint8(x_28, sizeof(void*)*5, x_5); +x_29 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_29, 0, x_26); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_20, 0, x_29); +return x_20; } } else { -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; uint8_t x_40; +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_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); lean_inc(x_30); lean_dec(x_20); -x_31 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__6; -x_32 = lean_array_push(x_31, x_7); -x_33 = lean_array_push(x_32, x_8); -x_34 = lean_array_push(x_33, x_9); -x_35 = lean_array_push(x_34, x_30); -x_36 = lean_array_push(x_35, x_10); -x_37 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__5; -x_38 = l_Lean_mkAppN(x_37, x_36); -x_39 = l_Lean_MVarId_assign___at_Lean_Meta_Grind_Preprocessor_introNext___spec__5(x_2, x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -x_42 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_4); -lean_ctor_set(x_42, 2, x_5); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_6); -lean_ctor_set(x_43, 1, x_42); -lean_ctor_set(x_39, 0, x_43); -return x_39; +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_34 = x_30; +} else { + lean_dec_ref(x_30); + x_34 = lean_box(0); +} +x_35 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_2); +lean_ctor_set(x_35, 2, x_3); +lean_ctor_set(x_35, 3, x_4); +lean_ctor_set(x_35, 4, x_6); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_5); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(3, 2, 0); +} else { + x_36 = x_34; + lean_ctor_set_tag(x_36, 3); +} +lean_ctor_set(x_36, 0, x_32); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_31); +return x_37; +} } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_dec(x_39); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_3); -lean_ctor_set(x_45, 1, x_4); -lean_ctor_set(x_45, 2, x_5); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_6); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -return x_47; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(lean_object* x_1, 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, 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: -{ -if (x_6 == 0) -{ -uint8_t x_16; lean_object* x_17; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); +uint8_t x_38; +lean_dec(x_6); lean_dec(x_4); -x_16 = 1; -x_17 = l_Lean_Meta_intro1Core(x_1, x_16, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_17, 0); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 1); -x_22 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_2); -lean_ctor_set(x_22, 2, x_3); -lean_ctor_set_tag(x_19, 3); -lean_ctor_set(x_19, 1, x_22); -return x_17; -} -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_dec(x_19); -x_25 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_2); -lean_ctor_set(x_25, 2, x_3); -x_26 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_17, 0, x_26); -return x_17; -} -} -else -{ -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; -x_27 = lean_ctor_get(x_17, 0); -x_28 = lean_ctor_get(x_17, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_17); -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_31 = x_27; -} else { - lean_dec_ref(x_27); - x_31 = lean_box(0); -} -x_32 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_2); -lean_ctor_set(x_32, 2, x_3); -if (lean_is_scalar(x_31)) { - x_33 = lean_alloc_ctor(3, 2, 0); -} else { - x_33 = x_31; - lean_ctor_set_tag(x_33, 3); -} -lean_ctor_set(x_33, 0, x_29); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_28); -return x_34; -} -} -else -{ -uint8_t x_35; lean_dec(x_3); lean_dec(x_2); -x_35 = !lean_is_exclusive(x_17); -if (x_35 == 0) +x_38 = !lean_is_exclusive(x_20); +if (x_38 == 0) { -return x_17; +return x_20; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -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_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -lean_object* x_39; -lean_inc(x_1); -x_39 = l_Lean_MVarId_getTag(x_1, x_11, x_12, x_13, x_14, 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; -x_40 = lean_ctor_get(x_39, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_20, 0); +x_40 = lean_ctor_get(x_20, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_Expr_bindingBody_x21(x_4); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_7); -lean_inc(x_5); -x_43 = l_Lean_Meta_Grind_Preprocessor_simp(x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_41); -if (lean_obj_tag(x_43) == 0) +lean_inc(x_39); +lean_dec(x_20); +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_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_43, 0); +lean_object* x_42; +lean_inc(x_1); +x_42 = l_Lean_MVarId_getTag(x_1, x_14, x_15, x_16, x_17, 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; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); lean_inc(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); +lean_dec(x_42); +x_45 = l_Lean_Expr_bindingBody_x21(x_7); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_47 = l_Lean_Meta_Grind_canon(x_46, x_9, x_10, x_11, x_12, x_13, x_14, x_45); -if (lean_obj_tag(x_47) == 0) +lean_inc(x_10); +lean_inc(x_8); +x_46 = l_Lean_Meta_Grind_Preprocessor_simp___rarg(x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_44); +if (lean_obj_tag(x_46) == 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; 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; 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_48 = lean_ctor_get(x_47, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +lean_dec(x_46); +x_49 = lean_ctor_get(x_47, 0); lean_inc(x_49); -lean_dec(x_47); -x_50 = l_Lean_Meta_Grind_shareCommon(x_48, x_9, x_10, x_11, x_12, x_13, x_14, x_49); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_50 = l_Lean_Meta_Grind_canon(x_49, x_12, x_13, x_14, x_15, x_16, x_17, x_48); +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_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; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 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 = l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_52); +x_53 = l_Lean_Meta_Grind_shareCommon(x_51, x_12, x_13, x_14, x_15, x_16, x_17, x_52); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -x_56 = lean_ctor_get(x_11, 1); -lean_inc(x_56); -x_57 = l_Lean_Expr_bindingName_x21(x_4); -x_58 = l_Lean_Expr_bindingInfo_x21(x_4); -x_59 = lean_unbox(x_58); -lean_dec(x_58); -x_60 = 0; -lean_inc(x_51); +x_56 = l_Lean_mkFreshFVarId___at_Lean_Meta_Grind_Preprocessor_introNext___spec__3(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_ctor_get(x_14, 1); +lean_inc(x_59); +x_60 = l_Lean_Expr_bindingName_x21(x_7); +x_61 = l_Lean_Expr_bindingInfo_x21(x_7); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +x_63 = 0; lean_inc(x_54); -x_61 = l_Lean_LocalContext_mkLocalDecl(x_56, x_54, x_57, x_51, x_59, x_60); -x_62 = l_Lean_Meta_getLocalInstances(x_11, x_12, x_13, x_14, x_55); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = 2; -x_66 = lean_unsigned_to_nat(0u); -lean_inc(x_42); -x_67 = l_Lean_Meta_mkFreshExprMVarAt(x_61, x_63, x_42, x_65, x_40, x_66, x_11, x_12, x_13, x_14, x_64); -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); -lean_inc(x_68); -x_70 = l_Lean_Expr_mvarId_x21(x_68); -lean_inc(x_54); -x_71 = l_Lean_Expr_fvar___override(x_54); -x_72 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3; -x_73 = lean_array_push(x_72, x_71); -x_74 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___boxed), 11, 2); -lean_closure_set(x_74, 0, x_73); -lean_closure_set(x_74, 1, x_68); -lean_inc(x_70); -x_75 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed), 19, 9); -lean_closure_set(x_75, 0, x_44); -lean_closure_set(x_75, 1, x_1); -lean_closure_set(x_75, 2, x_70); -lean_closure_set(x_75, 3, x_2); -lean_closure_set(x_75, 4, x_3); -lean_closure_set(x_75, 5, x_54); -lean_closure_set(x_75, 6, x_5); -lean_closure_set(x_75, 7, x_51); -lean_closure_set(x_75, 8, x_42); -x_76 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_76, 0, x_74); -lean_closure_set(x_76, 1, x_75); -x_77 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_70, x_76, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_69); -return x_77; -} -else -{ -uint8_t x_78; -lean_dec(x_44); -lean_dec(x_42); -lean_dec(x_40); -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_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_78 = !lean_is_exclusive(x_47); -if (x_78 == 0) -{ -return x_47; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_47, 0); -x_80 = lean_ctor_get(x_47, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_47); -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_inc(x_57); +x_64 = l_Lean_LocalContext_mkLocalDecl(x_59, x_57, x_60, x_54, x_62, x_63); +x_65 = l_Lean_Meta_getLocalInstances(x_14, x_15, x_16, x_17, x_58); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = 2; +x_69 = lean_unsigned_to_nat(0u); +lean_inc(x_45); +x_70 = l_Lean_Meta_mkFreshExprMVarAt(x_64, x_66, x_45, x_68, x_43, x_69, x_14, x_15, x_16, x_17, x_67); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +lean_inc(x_71); +x_73 = l_Lean_Expr_mvarId_x21(x_71); +lean_inc(x_57); +x_74 = l_Lean_Expr_fvar___override(x_57); +x_75 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3; +x_76 = lean_array_push(x_75, x_74); +x_77 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__4___boxed), 11, 2); +lean_closure_set(x_77, 0, x_76); +lean_closure_set(x_77, 1, x_71); +x_78 = lean_box(x_5); +lean_inc(x_73); +x_79 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___boxed), 22, 12); +lean_closure_set(x_79, 0, x_47); +lean_closure_set(x_79, 1, x_1); +lean_closure_set(x_79, 2, x_73); +lean_closure_set(x_79, 3, x_2); +lean_closure_set(x_79, 4, x_3); +lean_closure_set(x_79, 5, x_4); +lean_closure_set(x_79, 6, x_78); +lean_closure_set(x_79, 7, x_6); +lean_closure_set(x_79, 8, x_57); +lean_closure_set(x_79, 9, x_8); +lean_closure_set(x_79, 10, x_54); +lean_closure_set(x_79, 11, x_45); +x_80 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); +lean_closure_set(x_80, 0, x_77); +lean_closure_set(x_80, 1, x_79); +x_81 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_73, x_80, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_72); return x_81; } -} -} else { uint8_t x_82; -lean_dec(x_42); -lean_dec(x_40); +lean_dec(x_47); +lean_dec(x_45); +lean_dec(x_43); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_82 = !lean_is_exclusive(x_43); +x_82 = !lean_is_exclusive(x_50); if (x_82 == 0) { -return x_43; +return x_50; } else { lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_43, 0); -x_84 = lean_ctor_get(x_43, 1); +x_83 = lean_ctor_get(x_50, 0); +x_84 = lean_ctor_get(x_50, 1); lean_inc(x_84); lean_inc(x_83); -lean_dec(x_43); +lean_dec(x_50); x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); @@ -2125,32 +2134,36 @@ return x_85; else { uint8_t x_86; +lean_dec(x_45); +lean_dec(x_43); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_39); +x_86 = !lean_is_exclusive(x_46); if (x_86 == 0) { -return x_39; +return x_46; } else { lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_39, 0); -x_88 = lean_ctor_get(x_39, 1); +x_87 = lean_ctor_get(x_46, 0); +x_88 = lean_ctor_get(x_46, 1); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_39); +lean_dec(x_46); x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); @@ -2158,43 +2171,88 @@ return x_89; } } } +else +{ +uint8_t x_90; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +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_90 = !lean_is_exclusive(x_42); +if (x_90 == 0) +{ +return x_42; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_42, 0); +x_92 = lean_ctor_get(x_42, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_42); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext(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; +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; x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_1, 1); lean_inc(x_12); x_13 = lean_ctor_get(x_1, 2); lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_16 = lean_ctor_get(x_1, 4); +lean_inc(x_16); lean_dec(x_1); lean_inc(x_11); -x_14 = l_Lean_MVarId_getType(x_11, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_14) == 0) +x_17 = l_Lean_MVarId_getType(x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_17) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_34; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_34 = l_Lean_Expr_isArrow(x_16); -if (x_34 == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_38; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_38 = l_Lean_Expr_isArrow(x_19); +if (x_38 == 0) { -uint8_t x_35; -x_35 = l_Lean_Expr_isLet(x_16); -if (x_35 == 0) +uint8_t x_39; +x_39 = l_Lean_Expr_isLet(x_19); +if (x_39 == 0) { -uint8_t x_36; -x_36 = l_Lean_Expr_isForall(x_16); +uint8_t x_40; +x_40 = l_Lean_Expr_isForall(x_19); +lean_dec(x_19); +if (x_40 == 0) +{ +lean_object* x_41; lean_dec(x_16); -if (x_36 == 0) -{ -lean_object* x_37; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -2206,143 +2264,155 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_box(0); -lean_ctor_set(x_14, 0, x_37); -return x_14; +x_41 = lean_box(0); +lean_ctor_set(x_17, 0, x_41); +return x_17; } else { -lean_object* x_38; -lean_free_object(x_14); -x_38 = lean_box(0); -x_18 = x_38; -goto block_33; +lean_object* x_42; +lean_free_object(x_17); +x_42 = lean_box(0); +x_21 = x_42; +goto block_37; } } else { -lean_object* x_39; -lean_free_object(x_14); -lean_dec(x_16); -x_39 = lean_box(0); -x_18 = x_39; -goto block_33; +lean_object* x_43; +lean_free_object(x_17); +lean_dec(x_19); +x_43 = lean_box(0); +x_21 = x_43; +goto block_37; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_free_object(x_14); -x_40 = l_Lean_Expr_bindingDomain_x21(x_16); -lean_inc(x_40); -x_41 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 10, 1); -lean_closure_set(x_41, 0, x_40); +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_free_object(x_17); +x_44 = l_Lean_Expr_bindingDomain_x21(x_19); +lean_inc(x_44); +x_45 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 10, 1); +lean_closure_set(x_45, 0, x_44); +x_46 = lean_box(x_15); lean_inc(x_11); -x_42 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 15, 5); -lean_closure_set(x_42, 0, x_11); -lean_closure_set(x_42, 1, x_12); -lean_closure_set(x_42, 2, x_13); -lean_closure_set(x_42, 3, x_16); -lean_closure_set(x_42, 4, x_40); -x_43 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_43, 0, x_41); -lean_closure_set(x_43, 1, x_42); -x_44 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); -return x_44; +x_47 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 18, 8); +lean_closure_set(x_47, 0, x_11); +lean_closure_set(x_47, 1, x_12); +lean_closure_set(x_47, 2, x_13); +lean_closure_set(x_47, 3, x_14); +lean_closure_set(x_47, 4, x_46); +lean_closure_set(x_47, 5, x_16); +lean_closure_set(x_47, 6, x_19); +lean_closure_set(x_47, 7, x_44); +x_48 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); +lean_closure_set(x_48, 0, x_45); +lean_closure_set(x_48, 1, x_47); +x_49 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_49; } -block_33: +block_37: { -uint8_t x_19; lean_object* x_20; -lean_dec(x_18); -x_19 = 1; +uint8_t x_22; lean_object* x_23; +lean_dec(x_21); +x_22 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_20 = l_Lean_Meta_intro1Core(x_11, x_19, x_6, x_7, x_8, x_9, x_17); -if (lean_obj_tag(x_20) == 0) +x_23 = l_Lean_Meta_intro1Core(x_11, x_22, x_6, x_7, x_8, x_9, x_20); +if (lean_obj_tag(x_23) == 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; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 1); +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; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_21); -lean_inc(x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 10, 1); -lean_closure_set(x_25, 0, x_23); -lean_inc(x_24); -x_26 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 14, 4); -lean_closure_set(x_26, 0, x_24); -lean_closure_set(x_26, 1, x_12); -lean_closure_set(x_26, 2, x_13); -lean_closure_set(x_26, 3, x_23); -x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_27, 0, x_25); -lean_closure_set(x_27, 1, x_26); -x_28 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_24, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -return x_28; -} -else -{ -uint8_t x_29; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_20); -if (x_29 == 0) -{ -return x_20; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_20, 0); -x_31 = lean_ctor_get(x_20, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_20); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +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); +lean_inc(x_26); +x_28 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 10, 1); +lean_closure_set(x_28, 0, x_26); +x_29 = lean_box(x_15); +lean_inc(x_27); +x_30 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 17, 7); +lean_closure_set(x_30, 0, x_27); +lean_closure_set(x_30, 1, x_12); +lean_closure_set(x_30, 2, x_13); +lean_closure_set(x_30, 3, x_14); +lean_closure_set(x_30, 4, x_29); +lean_closure_set(x_30, 5, x_16); +lean_closure_set(x_30, 6, x_26); +x_31 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); +lean_closure_set(x_31, 0, x_28); +lean_closure_set(x_31, 1, x_30); +x_32 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_27, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); return x_32; } +else +{ +uint8_t x_33; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_33 = !lean_is_exclusive(x_23); +if (x_33 == 0) +{ +return x_23; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_23, 0); +x_35 = lean_ctor_get(x_23, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_23); +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_45; lean_object* x_46; lean_object* x_47; uint8_t x_63; -x_45 = lean_ctor_get(x_14, 0); -x_46 = lean_ctor_get(x_14, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_69; +x_50 = lean_ctor_get(x_17, 0); +x_51 = lean_ctor_get(x_17, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_17); +x_69 = l_Lean_Expr_isArrow(x_50); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = l_Lean_Expr_isLet(x_50); +if (x_70 == 0) +{ +uint8_t x_71; +x_71 = l_Lean_Expr_isForall(x_50); +lean_dec(x_50); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_16); lean_dec(x_14); -x_63 = l_Lean_Expr_isArrow(x_45); -if (x_63 == 0) -{ -uint8_t x_64; -x_64 = l_Lean_Expr_isLet(x_45); -if (x_64 == 0) -{ -uint8_t x_65; -x_65 = l_Lean_Expr_isForall(x_45); -lean_dec(x_45); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -2354,90 +2424,100 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_46); -return x_67; +x_72 = lean_box(0); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_51); +return x_73; } else { -lean_object* x_68; -x_68 = lean_box(0); -x_47 = x_68; -goto block_62; +lean_object* x_74; +x_74 = lean_box(0); +x_52 = x_74; +goto block_68; } } else { -lean_object* x_69; -lean_dec(x_45); -x_69 = lean_box(0); -x_47 = x_69; -goto block_62; +lean_object* x_75; +lean_dec(x_50); +x_75 = lean_box(0); +x_52 = x_75; +goto block_68; } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_70 = l_Lean_Expr_bindingDomain_x21(x_45); -lean_inc(x_70); -x_71 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 10, 1); -lean_closure_set(x_71, 0, x_70); +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_76 = l_Lean_Expr_bindingDomain_x21(x_50); +lean_inc(x_76); +x_77 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed), 10, 1); +lean_closure_set(x_77, 0, x_76); +x_78 = lean_box(x_15); lean_inc(x_11); -x_72 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 15, 5); -lean_closure_set(x_72, 0, x_11); -lean_closure_set(x_72, 1, x_12); -lean_closure_set(x_72, 2, x_13); -lean_closure_set(x_72, 3, x_45); -lean_closure_set(x_72, 4, x_70); -x_73 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_73, 0, x_71); -lean_closure_set(x_73, 1, x_72); -x_74 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_73, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_46); -return x_74; +x_79 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6___boxed), 18, 8); +lean_closure_set(x_79, 0, x_11); +lean_closure_set(x_79, 1, x_12); +lean_closure_set(x_79, 2, x_13); +lean_closure_set(x_79, 3, x_14); +lean_closure_set(x_79, 4, x_78); +lean_closure_set(x_79, 5, x_16); +lean_closure_set(x_79, 6, x_50); +lean_closure_set(x_79, 7, x_76); +x_80 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); +lean_closure_set(x_80, 0, x_77); +lean_closure_set(x_80, 1, x_79); +x_81 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_11, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); +return x_81; } -block_62: +block_68: { -uint8_t x_48; lean_object* x_49; -lean_dec(x_47); -x_48 = 1; +uint8_t x_53; lean_object* x_54; +lean_dec(x_52); +x_53 = 1; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_49 = l_Lean_Meta_intro1Core(x_11, x_48, x_6, x_7, x_8, x_9, x_46); -if (lean_obj_tag(x_49) == 0) +x_54 = l_Lean_Meta_intro1Core(x_11, x_53, x_6, x_7, x_8, x_9, x_51); +if (lean_obj_tag(x_54) == 0) { -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; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -lean_inc(x_52); -x_54 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 10, 1); -lean_closure_set(x_54, 0, x_52); -lean_inc(x_53); -x_55 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 14, 4); -lean_closure_set(x_55, 0, x_53); -lean_closure_set(x_55, 1, x_12); -lean_closure_set(x_55, 2, x_13); -lean_closure_set(x_55, 3, x_52); -x_56 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); -lean_closure_set(x_56, 0, x_54); -lean_closure_set(x_56, 1, x_55); -x_57 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_53, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); -return x_57; +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; +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_ctor_get(x_55, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +lean_inc(x_57); +x_59 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__1___boxed), 10, 1); +lean_closure_set(x_59, 0, x_57); +x_60 = lean_box(x_15); +lean_inc(x_58); +x_61 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2___boxed), 17, 7); +lean_closure_set(x_61, 0, x_58); +lean_closure_set(x_61, 1, x_12); +lean_closure_set(x_61, 2, x_13); +lean_closure_set(x_61, 3, x_14); +lean_closure_set(x_61, 4, x_60); +lean_closure_set(x_61, 5, x_16); +lean_closure_set(x_61, 6, x_57); +x_62 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Grind_Preprocessor_introNext___spec__1___rarg), 11, 2); +lean_closure_set(x_62, 0, x_59); +lean_closure_set(x_62, 1, x_61); +x_63 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_58, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_56); +return x_63; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_16); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_9); @@ -2448,33 +2528,35 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_58 = lean_ctor_get(x_49, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_49, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_60 = x_49; +x_64 = lean_ctor_get(x_54, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_66 = x_54; } else { - lean_dec_ref(x_49); - x_60 = lean_box(0); + lean_dec_ref(x_54); + x_66 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; + x_67 = x_66; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } } else { -uint8_t x_75; +uint8_t x_82; +lean_dec(x_16); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -2486,23 +2568,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_75 = !lean_is_exclusive(x_14); -if (x_75 == 0) +x_82 = !lean_is_exclusive(x_17); +if (x_82 == 0) { -return x_14; +return x_17; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_14, 0); -x_77 = lean_ctor_get(x_14, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_14); -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_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_17, 0); +x_84 = lean_ctor_get(x_17, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_17); +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; } } } @@ -2578,17 +2660,36 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_Lean_Meta_Grind_Preprocessor_introNext___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); +uint8_t x_18; lean_object* x_19; +x_18 = lean_unbox(x_5); +lean_dec(x_5); +x_19 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__2(x_1, x_2, x_3, x_4, x_18, 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_12); +lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_15; +return x_19; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { @@ -2639,36 +2740,61 @@ 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]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; _start: { -lean_object* x_20; -x_20 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(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); +uint8_t x_23; lean_object* x_24; +x_23 = lean_unbox(x_7); +lean_dec(x_7); +x_24 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_23, 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, x_21, x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -return x_20; +return x_24; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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_object* x_15) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_introNext___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]; +lean_object* x_18 = _args[17]; _start: { -uint8_t x_16; lean_object* x_17; -x_16 = lean_unbox(x_6); -lean_dec(x_6); -x_17 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(x_1, x_2, x_3, x_4, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_17; +uint8_t x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_unbox(x_5); +lean_dec(x_5); +x_20 = lean_unbox(x_9); +lean_dec(x_9); +x_21 = l_Lean_Meta_Grind_Preprocessor_introNext___lambda__6(x_1, x_2, x_3, x_4, x_19, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_21; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_pushResult(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; uint8_t x_14; -x_11 = lean_st_ref_take(x_5, x_10); +x_11 = lean_st_ref_take(x_3, x_10); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -2678,10 +2804,10 @@ x_14 = !lean_is_exclusive(x_12); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_12, 3); +x_15 = lean_ctor_get(x_12, 1); x_16 = l_Lean_PersistentArray_push___rarg(x_15, x_1); -lean_ctor_set(x_12, 3, x_16); -x_17 = lean_st_ref_set(x_5, x_12, x_13); +lean_ctor_set(x_12, 1, x_16); +x_17 = lean_st_ref_set(x_3, x_12, x_13); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { @@ -2707,42 +2833,36 @@ return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +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; x_24 = lean_ctor_get(x_12, 0); x_25 = lean_ctor_get(x_12, 1); -x_26 = lean_ctor_get(x_12, 2); -x_27 = lean_ctor_get(x_12, 3); -lean_inc(x_27); -lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_dec(x_12); -x_28 = l_Lean_PersistentArray_push___rarg(x_27, x_1); -x_29 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_29, 0, x_24); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_26); -lean_ctor_set(x_29, 3, x_28); -x_30 = lean_st_ref_set(x_5, x_29, x_13); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); +x_26 = l_Lean_PersistentArray_push___rarg(x_25, x_1); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_st_ref_set(x_3, x_27, x_13); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_30 = x_28; +} else { + lean_dec_ref(x_28); + x_30 = lean_box(0); +} +x_31 = lean_box(0); +if (lean_is_scalar(x_30)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { x_32 = x_30; -} else { - lean_dec_ref(x_30); - x_32 = lean_box(0); } -x_33 = lean_box(0); -if (lean_is_scalar(x_32)) { - x_34 = lean_alloc_ctor(0, 2, 0); -} else { - x_34 = x_32; -} -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -return x_34; +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_29); +return x_32; } } } @@ -2882,19 +3002,27 @@ uint8_t x_5; x_5 = !lean_is_exclusive(x_2); if (x_5 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +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; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_1, 1); x_9 = lean_ctor_get(x_1, 2); +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_12 = lean_ctor_get(x_1, 4); +lean_inc(x_12); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_10 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_10, 0, x_6); -lean_ctor_set(x_10, 1, x_8); -lean_ctor_set(x_10, 2, x_9); +x_13 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_8); +lean_ctor_set(x_13, 2, x_9); +lean_ctor_set(x_13, 3, x_10); +lean_ctor_set(x_13, 4, x_12); +lean_ctor_set_uint8(x_13, sizeof(void*)*5, x_11); lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_10); +lean_ctor_set(x_2, 0, x_13); { lean_object* _tmp_1 = x_7; lean_object* _tmp_2 = x_2; @@ -2905,25 +3033,33 @@ goto _start; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_ctor_get(x_2, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_2); -x_14 = lean_ctor_get(x_1, 1); -x_15 = lean_ctor_get(x_1, 2); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_15 = lean_ctor_get(x_2, 0); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); -x_16 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_14); -lean_ctor_set(x_16, 2, x_15); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_3); -x_2 = x_13; -x_3 = x_17; +lean_dec(x_2); +x_17 = lean_ctor_get(x_1, 1); +x_18 = lean_ctor_get(x_1, 2); +x_19 = lean_ctor_get(x_1, 3); +x_20 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_21 = lean_ctor_get(x_1, 4); +lean_inc(x_21); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_22 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_17); +lean_ctor_set(x_22, 2, x_18); +lean_ctor_set(x_22, 3, x_19); +lean_ctor_set(x_22, 4, x_21); +lean_ctor_set_uint8(x_22, sizeof(void*)*5, 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_3); +x_2 = x_16; +x_3 = x_23; goto _start; } } @@ -3109,244 +3245,262 @@ uint8_t x_8; x_8 = !lean_is_exclusive(x_1); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +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_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 2); -x_12 = l_Lean_Meta_Grind_injection_x3f(x_9, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_12) == 0) +x_12 = lean_ctor_get(x_1, 3); +x_13 = lean_ctor_get(x_1, 4); +x_14 = l_Lean_Meta_Grind_injection_x3f(x_9, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) { -uint8_t x_14; +uint8_t x_16; lean_free_object(x_1); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_14 = !lean_is_exclusive(x_12); -if (x_14 == 0) +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_12, 0); -lean_dec(x_15); -x_16 = lean_box(0); -lean_ctor_set(x_12, 0, x_16); -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_dec(x_12); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; +lean_ctor_set(x_14, 0, x_18); +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; } } else { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_12, 0); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_13); +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); if (x_22 == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_13, 0); -lean_ctor_set(x_1, 0, x_23); -lean_ctor_set(x_13, 0, x_1); -return x_12; +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_14, 0); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_15); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_15, 0); +lean_ctor_set(x_1, 0, x_25); +lean_ctor_set(x_15, 0, x_1); +return x_14; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_13, 0); -lean_inc(x_24); -lean_dec(x_13); -lean_ctor_set(x_1, 0, x_24); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_1); -lean_ctor_set(x_12, 0, x_25); -return x_12; -} -} -else -{ -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_12, 1); +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_15, 0); lean_inc(x_26); -lean_dec(x_12); -x_27 = lean_ctor_get(x_13, 0); -lean_inc(x_27); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - x_28 = x_13; -} else { - lean_dec_ref(x_13); - x_28 = lean_box(0); +lean_dec(x_15); +lean_ctor_set(x_1, 0, x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_14, 0, x_27); +return x_14; } -lean_ctor_set(x_1, 0, x_27); -if (lean_is_scalar(x_28)) { - x_29 = lean_alloc_ctor(1, 1, 0); -} else { - x_29 = x_28; } -lean_ctor_set(x_29, 0, x_1); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_26); -return x_30; +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_dec(x_14); +x_29 = lean_ctor_get(x_15, 0); +lean_inc(x_29); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + x_30 = x_15; +} else { + lean_dec_ref(x_15); + x_30 = lean_box(0); +} +lean_ctor_set(x_1, 0, x_29); +if (lean_is_scalar(x_30)) { + x_31 = lean_alloc_ctor(1, 1, 0); +} else { + x_31 = x_30; +} +lean_ctor_set(x_31, 0, x_1); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_28); +return x_32; } } } else { -uint8_t x_31; +uint8_t x_33; lean_free_object(x_1); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_12); -if (x_31 == 0) +x_33 = !lean_is_exclusive(x_14); +if (x_33 == 0) { -return x_12; +return x_14; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_12, 0); -x_33 = lean_ctor_get(x_12, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_12); -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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_1, 0); -x_36 = lean_ctor_get(x_1, 1); -x_37 = lean_ctor_get(x_1, 2); -lean_inc(x_37); -lean_inc(x_36); +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_dec(x_1); -x_38 = l_Lean_Meta_Grind_injection_x3f(x_35, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_38) == 0) +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); +return x_36; +} +} +} +else { -lean_object* x_39; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_37); -lean_dec(x_36); -x_40 = lean_ctor_get(x_38, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_37 = lean_ctor_get(x_1, 0); +x_38 = lean_ctor_get(x_1, 1); +x_39 = lean_ctor_get(x_1, 2); +x_40 = lean_ctor_get(x_1, 3); +x_41 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_42 = lean_ctor_get(x_1, 4); +lean_inc(x_42); lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = lean_box(0); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; -} -else +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_1); +x_43 = l_Lean_Meta_Grind_injection_x3f(x_37, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(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; lean_object* x_50; -x_44 = lean_ctor_get(x_38, 1); +lean_object* x_44; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_45 = x_38; +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_42); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; } else { - lean_dec_ref(x_38); - x_45 = lean_box(0); + lean_dec_ref(x_43); + x_46 = lean_box(0); } -x_46 = lean_ctor_get(x_39, 0); -lean_inc(x_46); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - x_47 = x_39; +x_47 = lean_box(0); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_39); - x_47 = lean_box(0); + x_48 = x_46; } -x_48 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_36); -lean_ctor_set(x_48, 2, x_37); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; +} +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; lean_object* x_55; +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_50 = x_43; } else { - x_49 = x_47; + lean_dec_ref(x_43); + x_50 = lean_box(0); } -lean_ctor_set(x_49, 0, x_48); -if (lean_is_scalar(x_45)) { - x_50 = lean_alloc_ctor(0, 2, 0); +x_51 = lean_ctor_get(x_44, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + x_52 = x_44; } else { - x_50 = x_45; + lean_dec_ref(x_44); + x_52 = lean_box(0); } -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_44); -return x_50; +x_53 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_38); +lean_ctor_set(x_53, 2, x_39); +lean_ctor_set(x_53, 3, x_40); +lean_ctor_set(x_53, 4, x_42); +lean_ctor_set_uint8(x_53, sizeof(void*)*5, x_41); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(1, 1, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_53); +if (lean_is_scalar(x_50)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_50; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_49); +return x_55; } } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_37); -lean_dec(x_36); -x_51 = lean_ctor_get(x_38, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_38, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_53 = x_38; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_42); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +x_56 = lean_ctor_get(x_43, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_43, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_58 = x_43; } else { - lean_dec_ref(x_38); - x_53 = lean_box(0); + lean_dec_ref(x_43); + x_58 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_53; + x_59 = x_58; } -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } } } -LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_preprocess___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_EXPORT lean_object* l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___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) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3382,7 +3536,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_15 = l_Lean_Meta_Grind_Preprocessor_preprocess(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_Grind_Preprocessor_loop(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; @@ -3427,7 +3581,7 @@ return x_21; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_loop___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; @@ -3435,7 +3589,7 @@ x_11 = l_Lean_Meta_Grind_mkInputClause(x_1, x_6, x_7, x_8, x_9, x_10); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess(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_Lean_Meta_Grind_Preprocessor_loop(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; @@ -3457,7 +3611,7 @@ lean_inc(x_12); switch (lean_obj_tag(x_12)) { case 0: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +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; x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); @@ -3467,25 +3621,32 @@ x_15 = lean_ctor_get(x_1, 1); lean_inc(x_15); x_16 = lean_ctor_get(x_1, 2); lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 3); +lean_inc(x_17); +x_18 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_19 = lean_ctor_get(x_1, 4); +lean_inc(x_19); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_17 = l_Lean_MVarId_byContra_x3f(x_14, x_6, x_7, x_8, x_9, x_13); -if (lean_obj_tag(x_17) == 0) +x_20 = l_Lean_MVarId_byContra_x3f(x_14, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 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_19; lean_object* x_20; +lean_object* x_22; lean_object* x_23; +lean_dec(x_19); +lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_Meta_Grind_Preprocessor_pushResult(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Meta_Grind_Preprocessor_pushResult(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3494,213 +3655,153 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_20; +return x_23; } else { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_1); -if (x_21 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_1); +if (x_24 == 0) { -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_1, 2); -lean_dec(x_22); -x_23 = lean_ctor_get(x_1, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_1, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); -lean_dec(x_17); -x_26 = lean_ctor_get(x_18, 0); -lean_inc(x_26); -lean_dec(x_18); -lean_ctor_set(x_1, 0, x_26); -x_10 = x_25; +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_25 = lean_ctor_get(x_1, 4); +lean_dec(x_25); +x_26 = lean_ctor_get(x_1, 3); +lean_dec(x_26); +x_27 = lean_ctor_get(x_1, 2); +lean_dec(x_27); +x_28 = lean_ctor_get(x_1, 1); +lean_dec(x_28); +x_29 = lean_ctor_get(x_1, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +x_31 = lean_ctor_get(x_21, 0); +lean_inc(x_31); +lean_dec(x_21); +lean_ctor_set(x_1, 0, x_31); +x_10 = x_30; goto _start; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_1); -x_28 = lean_ctor_get(x_17, 1); -lean_inc(x_28); -lean_dec(x_17); -x_29 = lean_ctor_get(x_18, 0); -lean_inc(x_29); -lean_dec(x_18); -x_30 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_15); -lean_ctor_set(x_30, 2, x_16); -x_1 = x_30; -x_10 = x_28; -goto _start; -} -} -} -else -{ -uint8_t x_32; -lean_dec(x_16); -lean_dec(x_15); -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_32 = !lean_is_exclusive(x_17); -if (x_32 == 0) -{ -return x_17; -} -else -{ lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_17, 0); -x_34 = lean_ctor_get(x_17, 1); -lean_inc(x_34); +lean_dec(x_1); +x_33 = lean_ctor_get(x_20, 1); lean_inc(x_33); +lean_dec(x_20); +x_34 = lean_ctor_get(x_21, 0); +lean_inc(x_34); +lean_dec(x_21); +x_35 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_15); +lean_ctor_set(x_35, 2, x_16); +lean_ctor_set(x_35, 3, x_17); +lean_ctor_set(x_35, 4, x_19); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_18); +x_1 = x_35; +x_10 = x_33; +goto _start; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_19); lean_dec(x_17); -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_dec(x_16); +lean_dec(x_15); +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_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } case 1: { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_1); -x_36 = lean_ctor_get(x_11, 1); -lean_inc(x_36); +x_41 = lean_ctor_get(x_11, 1); +lean_inc(x_41); lean_dec(x_11); -x_37 = lean_ctor_get(x_12, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_12, 1); -lean_inc(x_38); +x_42 = lean_ctor_get(x_12, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_12, 1); +lean_inc(x_43); lean_dec(x_12); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_37); -lean_inc(x_38); -x_39 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_38, x_37, x_6, x_7, x_8, x_9, x_36); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_37); -lean_inc(x_38); -x_42 = l_Lean_Meta_Grind_Preprocessor_applyInjection_x3f(x_38, x_37, x_6, x_7, x_8, x_9, x_41); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_42); lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) +x_44 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_43, x_42, x_6, x_7, x_8, x_9, x_41); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = !lean_is_exclusive(x_38); -if (x_45 == 0) +lean_object* x_45; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +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_38, 0); -x_47 = lean_ctor_get(x_38, 1); -x_48 = lean_ctor_get(x_38, 2); -x_49 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1___boxed), 10, 1); -lean_closure_set(x_49, 0, x_37); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); -x_50 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_46, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); -if (lean_obj_tag(x_50) == 0) +lean_dec(x_44); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_42); +lean_inc(x_43); +x_47 = l_Lean_Meta_Grind_Preprocessor_applyInjection_x3f(x_43, x_42, x_6, x_7, x_8, x_9, x_46); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -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 = l_Lean_PersistentArray_push___rarg(x_47, x_51); -lean_ctor_set(x_38, 1, x_53); -x_1 = x_38; -x_10 = x_52; -goto _start; -} -else +lean_object* x_48; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +if (lean_obj_tag(x_48) == 0) { -uint8_t x_55; -lean_free_object(x_38); -lean_dec(x_48); +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_50); -if (x_55 == 0) +x_50 = !lean_is_exclusive(x_43); +if (x_50 == 0) { -return x_50; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_50, 0); -x_57 = lean_ctor_get(x_50, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_50); -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; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_38, 0); -x_60 = lean_ctor_get(x_38, 1); -x_61 = lean_ctor_get(x_38, 2); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_38); -x_62 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1___boxed), 10, 1); -lean_closure_set(x_62, 0, x_37); +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; +x_51 = lean_ctor_get(x_43, 0); +x_52 = lean_ctor_get(x_43, 1); +x_53 = lean_ctor_get(x_43, 2); +x_54 = lean_ctor_get(x_43, 3); +x_55 = lean_ctor_get(x_43, 4); +x_56 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 10, 1); +lean_closure_set(x_56, 0, x_42); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -3709,83 +3810,114 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); +lean_inc(x_51); +x_57 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_51, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_49); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_63 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_59, x_62, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); -if (lean_obj_tag(x_63) == 0) +lean_dec(x_57); +x_60 = l_Lean_PersistentArray_push___rarg(x_52, x_58); +lean_ctor_set(x_43, 1, x_60); +x_1 = x_43; +x_10 = x_59; +goto _start; +} +else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_63, 0); +uint8_t x_62; +lean_free_object(x_43); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_52); +lean_dec(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); +x_62 = !lean_is_exclusive(x_57); +if (x_62 == 0) +{ +return x_57; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_57, 0); +x_64 = lean_ctor_get(x_57, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_push___rarg(x_60, x_64); -x_67 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_67, 0, x_59); -lean_ctor_set(x_67, 1, x_66); -lean_ctor_set(x_67, 2, x_61); -x_1 = x_67; -x_10 = x_65; -goto _start; +lean_inc(x_63); +lean_dec(x_57); +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; +} +} } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_69 = lean_ctor_get(x_63, 0); +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_66 = lean_ctor_get(x_43, 0); +x_67 = lean_ctor_get(x_43, 1); +x_68 = lean_ctor_get(x_43, 2); +x_69 = lean_ctor_get(x_43, 3); +x_70 = lean_ctor_get_uint8(x_43, sizeof(void*)*5); +x_71 = lean_ctor_get(x_43, 4); +lean_inc(x_71); lean_inc(x_69); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_71 = x_63; -} else { - lean_dec_ref(x_63); - 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_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -} -} -else -{ -lean_object* x_73; lean_object* x_74; -lean_dec(x_38); -lean_dec(x_37); -x_73 = lean_ctor_get(x_42, 1); -lean_inc(x_73); -lean_dec(x_42); -x_74 = lean_ctor_get(x_43, 0); -lean_inc(x_74); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_43); -x_1 = x_74; -x_10 = x_73; +x_72 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_loop___lambda__1___boxed), 10, 1); +lean_closure_set(x_72, 0, x_42); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_66); +x_73 = l_Lean_MVarId_withContext___at_Lean_Meta_Grind_Preprocessor_introNext___spec__2___rarg(x_66, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_49); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_PersistentArray_push___rarg(x_67, x_74); +x_77 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_77, 0, x_66); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_77, 2, x_68); +lean_ctor_set(x_77, 3, x_69); +lean_ctor_set(x_77, 4, x_71); +lean_ctor_set_uint8(x_77, sizeof(void*)*5, x_70); +x_1 = x_77; +x_10 = x_75; goto _start; } -} else { -uint8_t x_76; -lean_dec(x_38); -lean_dec(x_37); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_71); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3794,46 +3926,50 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_42); -if (x_76 == 0) -{ -return x_42; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_42, 0); -x_78 = lean_ctor_get(x_42, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_42); -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; -} -} -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_38); -lean_dec(x_37); -x_80 = lean_ctor_get(x_39, 1); +x_79 = lean_ctor_get(x_73, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_73, 1); lean_inc(x_80); -lean_dec(x_39); -x_81 = lean_ctor_get(x_40, 0); -lean_inc(x_81); -lean_dec(x_40); -x_82 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(x_81, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_80); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_81 = x_73; +} else { + lean_dec_ref(x_73); + 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; } } +} else { -uint8_t x_83; -lean_dec(x_38); -lean_dec(x_37); +lean_object* x_83; lean_object* x_84; +lean_dec(x_43); +lean_dec(x_42); +x_83 = lean_ctor_get(x_47, 1); +lean_inc(x_83); +lean_dec(x_47); +x_84 = lean_ctor_get(x_48, 0); +lean_inc(x_84); +lean_dec(x_48); +x_1 = x_84; +x_10 = x_83; +goto _start; +} +} +else +{ +uint8_t x_86; +lean_dec(x_43); +lean_dec(x_42); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3842,91 +3978,139 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_83 = !lean_is_exclusive(x_39); -if (x_83 == 0) +x_86 = !lean_is_exclusive(x_47); +if (x_86 == 0) { -return x_39; +return x_47; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_39, 0); -x_85 = lean_ctor_get(x_39, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_39); -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; +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); +return x_89; +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_43); +lean_dec(x_42); +x_90 = lean_ctor_get(x_44, 1); +lean_inc(x_90); +lean_dec(x_44); +x_91 = lean_ctor_get(x_45, 0); +lean_inc(x_91); +lean_dec(x_45); +x_92 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___spec__1(x_91, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_90); +return x_92; +} +} +else +{ +uint8_t x_93; +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_93 = !lean_is_exclusive(x_44); +if (x_93 == 0) +{ +return x_44; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_44, 0); +x_95 = lean_ctor_get(x_44, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_44); +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; } } } case 2: { -lean_object* x_87; lean_object* x_88; +lean_object* x_97; lean_object* x_98; lean_dec(x_1); -x_87 = lean_ctor_get(x_11, 1); -lean_inc(x_87); +x_97 = lean_ctor_get(x_11, 1); +lean_inc(x_97); lean_dec(x_11); -x_88 = lean_ctor_get(x_12, 0); -lean_inc(x_88); +x_98 = lean_ctor_get(x_12, 0); +lean_inc(x_98); lean_dec(x_12); -x_1 = x_88; -x_10 = x_87; +x_1 = x_98; +x_10 = x_97; goto _start; } default: { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_1); -x_90 = lean_ctor_get(x_11, 1); -lean_inc(x_90); +x_100 = lean_ctor_get(x_11, 1); +lean_inc(x_100); lean_dec(x_11); -x_91 = lean_ctor_get(x_12, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_12, 1); -lean_inc(x_92); +x_101 = lean_ctor_get(x_12, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_12, 1); +lean_inc(x_102); lean_dec(x_12); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_92); -x_93 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_92, x_91, x_6, x_7, x_8, x_9, x_90); -if (lean_obj_tag(x_93) == 0) +lean_inc(x_102); +x_103 = l_Lean_Meta_Grind_Preprocessor_applyCases_x3f(x_102, x_101, x_6, x_7, x_8, x_9, x_100); +if (lean_obj_tag(x_103) == 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_104; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_95; -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_1 = x_92; -x_10 = x_95; +lean_object* x_105; +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_1 = x_102; +x_10 = x_105; goto _start; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_92); -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -lean_dec(x_93); -x_98 = lean_ctor_get(x_94, 0); -lean_inc(x_98); -lean_dec(x_94); -x_99 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_preprocess___spec__1(x_98, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_97); -return x_99; +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_102); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +lean_dec(x_103); +x_108 = lean_ctor_get(x_104, 0); +lean_inc(x_108); +lean_dec(x_104); +x_109 = l_List_forM___at_Lean_Meta_Grind_Preprocessor_loop___spec__1(x_108, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_107); +return x_109; } } else { -uint8_t x_100; -lean_dec(x_92); +uint8_t x_110; +lean_dec(x_102); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3935,31 +4119,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_100 = !lean_is_exclusive(x_93); -if (x_100 == 0) +x_110 = !lean_is_exclusive(x_103); +if (x_110 == 0) { -return x_93; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_93, 0); -x_102 = lean_ctor_get(x_93, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_93); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); return x_103; } +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_103, 0); +x_112 = lean_ctor_get(x_103, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_103); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} } } } } else { -uint8_t x_104; +uint8_t x_114; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3969,32 +4153,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_104 = !lean_is_exclusive(x_11); -if (x_104 == 0) +x_114 = !lean_is_exclusive(x_11); +if (x_114 == 0) { return x_11; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_11, 0); -x_106 = lean_ctor_get(x_11, 1); -lean_inc(x_106); -lean_inc(x_105); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_11, 0); +x_116 = lean_ctor_get(x_11, 1); +lean_inc(x_116); +lean_inc(x_115); lean_dec(x_11); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess___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_Lean_Meta_Grind_Preprocessor_loop___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: { lean_object* x_11; -x_11 = l_Lean_Meta_Grind_Preprocessor_preprocess___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_Preprocessor_loop___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_9); lean_dec(x_8); lean_dec(x_7); @@ -4005,60 +4189,118 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main___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_EXPORT lean_object* l_Lean_Meta_Grind_Preprocessor_preprocess(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_inc(x_5); -x_11 = l_Lean_Meta_Grind_Preprocessor_preprocess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_Meta_Grind_mkGoal(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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_13 = lean_st_ref_get(x_5, x_12); -lean_dec(x_5); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +lean_inc(x_3); +x_14 = l_Lean_Meta_Grind_Preprocessor_loop(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_14) == 0) { -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} +lean_dec(x_14); +x_16 = lean_st_ref_get(x_3, x_15); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +return x_16; } else { -uint8_t x_18; -lean_dec(x_5); -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_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); -lean_dec(x_11); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_inc(x_18); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_3); +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +return x_14; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_14, 0); +x_23 = lean_ctor_get(x_14, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_14); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_3; +x_3 = l_List_reverse___rarg(x_2); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +lean_ctor_set(x_1, 1, x_2); +lean_ctor_set(x_1, 0, x_7); +{ +lean_object* _tmp_0 = x_6; +lean_object* _tmp_1 = x_1; +x_1 = _tmp_0; +x_2 = _tmp_1; +} +goto _start; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_1 = x_10; +x_2 = x_12; +goto _start; } } } @@ -4082,39 +4324,35 @@ return x_1; static lean_object* _init_l_Lean_Meta_Grind_main___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instDecidableEqUInt64___boxed), 2, 0); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__3; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; } } static lean_object* _init_l_Lean_Meta_Grind_main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_main___closed__3; -x_2 = lean_alloc_closure((void*)(l_instBEqOfDecidableEq___rarg), 3, 1); -lean_closure_set(x_2, 0, x_1); +x_1 = l_Lean_ShareCommon_objectFactory; +x_2 = l_ShareCommon_mkStateImpl(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_Grind_main___closed__5() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instHashableUInt64___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_main___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__5; -x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_main___closed__3; +x_2 = l_Lean_Meta_Grind_main___closed__4; +x_3 = lean_unsigned_to_nat(1u); +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_main(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) { @@ -4147,7 +4385,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_12 = l_Lean_MVarId_revertAll(x_1, x_3, x_4, x_5, x_6, x_11); +x_12 = l_Lean_MVarId_clearAuxDecls(x_1, x_3, x_4, x_5, x_6, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -4156,310 +4394,373 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); +lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); lean_inc(x_3); -lean_inc(x_13); -x_15 = l_Lean_MVarId_ensureNoMVar(x_13, x_3, x_4, x_5, x_6, x_14); +x_15 = l_Lean_MVarId_revertAll(x_13, x_3, x_4, x_5, x_6, x_14); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); lean_dec(x_15); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_16); +x_18 = l_Lean_MVarId_ensureNoMVar(x_16, x_3, x_4, x_5, x_6, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_17 = l_Lean_MVarId_abstractNestedProofs(x_13, x_2, x_3, x_4, x_5, x_6, x_16); -if (lean_obj_tag(x_17) == 0) +x_20 = l_Lean_MVarId_abstractNestedProofs(x_16, x_2, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_Meta_Grind_main___closed__1; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_21 = l_Lean_MVarId_transformTarget(x_18, x_20, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_Grind_main___closed__2; +lean_dec(x_20); +x_23 = l_Lean_Meta_Grind_main___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_25 = l_Lean_MVarId_transformTarget(x_22, x_24, x_3, x_4, x_5, x_6, x_23); -if (lean_obj_tag(x_25) == 0) +x_24 = l_Lean_MVarId_transformTarget(x_21, x_23, x_3, x_4, x_5, x_6, x_22); +if (lean_obj_tag(x_24) == 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, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__6; -x_29 = l_Lean_Meta_Grind_main___closed__6; -x_30 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_30, 0, x_26); -lean_ctor_set(x_30, 1, x_28); -lean_ctor_set(x_30, 2, x_29); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_main___lambda__1), 10, 1); -lean_closure_set(x_31, 0, x_30); -x_32 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg), 8, 1); -lean_closure_set(x_32, 0, x_31); -x_33 = l_Lean_Meta_Grind_GrindM_run___rarg(x_32, x_2, x_3, x_4, x_5, x_6, x_27); -if (lean_obj_tag(x_33) == 0) +lean_dec(x_24); +x_27 = l_Lean_Meta_Grind_main___closed__2; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_28 = l_Lean_MVarId_transformTarget(x_25, x_27, x_3, x_4, x_5, x_6, x_26); +if (lean_obj_tag(x_28) == 0) { -uint8_t x_34; -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -return x_33; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); +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_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Preprocessor_preprocess), 10, 1); +lean_closure_set(x_31, 0, x_29); +x_32 = l_Lean_Meta_Grind_main___closed__5; +x_33 = lean_st_mk_ref(x_32, x_30); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} +lean_inc(x_34); +x_36 = l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg(x_31, x_2, x_34, x_3, x_4, x_5, x_6, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = lean_st_ref_get(x_34, x_38); +lean_dec(x_34); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_37, 1); +lean_inc(x_42); +lean_dec(x_37); +x_43 = l_Lean_PersistentArray_toList___rarg(x_42); +x_44 = lean_box(0); +x_45 = l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(x_43, x_44); +lean_ctor_set(x_39, 0, x_45); +return x_39; } else { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -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 -{ -uint8_t x_42; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_42 = !lean_is_exclusive(x_25); -if (x_42 == 0) -{ -return x_25; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_25, 0); -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_25); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_46 = !lean_is_exclusive(x_21); -if (x_46 == 0) -{ -return x_21; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_21, 0); -x_48 = lean_ctor_get(x_21, 1); -lean_inc(x_48); +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_39, 1); +lean_inc(x_46); +lean_dec(x_39); +x_47 = lean_ctor_get(x_37, 1); lean_inc(x_47); -lean_dec(x_21); -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; +lean_dec(x_37); +x_48 = l_Lean_PersistentArray_toList___rarg(x_47); +x_49 = lean_box(0); +x_50 = l_List_mapTR_loop___at_Lean_Meta_Grind_main___spec__1(x_48, x_49); +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_34); +x_52 = !lean_is_exclusive(x_36); +if (x_52 == 0) +{ +return x_36; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_36, 0); +x_54 = lean_ctor_get(x_36, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_36); +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_50; +uint8_t x_56; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_50 = !lean_is_exclusive(x_17); -if (x_50 == 0) +x_56 = !lean_is_exclusive(x_28); +if (x_56 == 0) { -return x_17; +return x_28; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_17, 0); -x_52 = lean_ctor_get(x_17, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_17); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_28, 0); +x_58 = lean_ctor_get(x_28, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_28); +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; } } } else { -uint8_t x_54; -lean_dec(x_13); +uint8_t x_60; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = !lean_is_exclusive(x_15); -if (x_54 == 0) +x_60 = !lean_is_exclusive(x_24); +if (x_60 == 0) +{ +return x_24; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_24, 0); +x_62 = lean_ctor_get(x_24, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_24); +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 +{ +uint8_t x_64; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_64 = !lean_is_exclusive(x_20); +if (x_64 == 0) +{ +return x_20; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_20, 0); +x_66 = lean_ctor_get(x_20, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_20); +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; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_16); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_68 = !lean_is_exclusive(x_18); +if (x_68 == 0) +{ +return x_18; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_18, 0); +x_70 = lean_ctor_get(x_18, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_18); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +uint8_t x_72; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_72 = !lean_is_exclusive(x_15); +if (x_72 == 0) { return x_15; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_15, 0); -x_56 = lean_ctor_get(x_15, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_15, 0); +x_74 = lean_ctor_get(x_15, 1); +lean_inc(x_74); +lean_inc(x_73); lean_dec(x_15); -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; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -uint8_t x_58; +uint8_t x_76; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_58 = !lean_is_exclusive(x_12); -if (x_58 == 0) +x_76 = !lean_is_exclusive(x_12); +if (x_76 == 0) { return x_12; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_12, 0); -x_60 = lean_ctor_get(x_12, 1); -lean_inc(x_60); -lean_inc(x_59); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_12, 0); +x_78 = lean_ctor_get(x_12, 1); +lean_inc(x_78); +lean_inc(x_77); lean_dec(x_12); -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; +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; } } } else { -uint8_t x_62; +uint8_t x_80; 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_62 = !lean_is_exclusive(x_10); -if (x_62 == 0) +x_80 = !lean_is_exclusive(x_10); +if (x_80 == 0) { return x_10; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_10, 0); -x_64 = lean_ctor_get(x_10, 1); -lean_inc(x_64); -lean_inc(x_63); +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_10, 0); +x_82 = lean_ctor_get(x_10, 1); +lean_inc(x_82); +lean_inc(x_81); lean_dec(x_10); -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; +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } else { -uint8_t x_66; +uint8_t x_84; 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_66 = !lean_is_exclusive(x_8); -if (x_66 == 0) +x_84 = !lean_is_exclusive(x_8); +if (x_84 == 0) { return x_8; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_8, 0); -x_68 = lean_ctor_get(x_8, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_8, 0); +x_86 = lean_ctor_get(x_8, 1); +lean_inc(x_86); +lean_inc(x_85); lean_dec(x_8); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +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; } } } @@ -4475,6 +4776,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_objec lean_object* initialize_Lean_Meta_Tactic_Grind_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Injection(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Core(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Preprocessor(uint8_t builtin, lean_object* w) { lean_object * res; @@ -4513,6 +4815,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Injection(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Core(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__1); l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedContext___closed__2(); @@ -4551,6 +4856,8 @@ l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8 = _init_l_L lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_State_simpStats___default___closed__8); l_Lean_Meta_Grind_Preprocessor_State_simpStats___default = _init_l_Lean_Meta_Grind_Preprocessor_State_simpStats___default(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_State_simpStats___default); +l_Lean_Meta_Grind_Preprocessor_State_goals___default = _init_l_Lean_Meta_Grind_Preprocessor_State_goals___default(); +lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_State_goals___default); l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__1); l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__2(); @@ -4560,6 +4867,8 @@ l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4 = _init_l_Lean_Met lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__4); l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__5 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__5(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__5); +l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6 = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState___closed__6); l_Lean_Meta_Grind_Preprocessor_instInhabitedState = _init_l_Lean_Meta_Grind_Preprocessor_instInhabitedState(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_instInhabitedState); l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__1(); @@ -4571,6 +4880,8 @@ lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__3) l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__4 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__4(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__4); l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__5 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__5(); +l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6 = _init_l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_PreM_run___rarg___closed__6); l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__1); l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2 = _init_l_Lean_Meta_Grind_Preprocessor_introNext___lambda__5___closed__2(); @@ -4593,8 +4904,6 @@ l_Lean_Meta_Grind_main___closed__4 = _init_l_Lean_Meta_Grind_main___closed__4(); lean_mark_persistent(l_Lean_Meta_Grind_main___closed__4); l_Lean_Meta_Grind_main___closed__5 = _init_l_Lean_Meta_Grind_main___closed__5(); lean_mark_persistent(l_Lean_Meta_Grind_main___closed__5); -l_Lean_Meta_Grind_main___closed__6 = _init_l_Lean_Meta_Grind_main___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_main___closed__6); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c index af8e618509..79f2ddc701 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c @@ -13,29 +13,39 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqOfDecidableEq___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7___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_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); static lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1; +size_t lean_usize_shift_right(size_t, size_t); static lean_object* l_Lean_Meta_Grind_State_scState___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_Grind_canon_canonRec___spec__5___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l_Lean_Meta_Grind_instInhabitedGoal___closed__3; +static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_Grind_canon_canonRec___spec__6(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; -static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__5; +uint8_t lean_usize_dec_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object*); +size_t lean_uint64_to_usize(uint64_t); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_newEqs___default; LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___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_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_canon_canonRec___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_canon_canonRec___spec__13___boxed(lean_object**); +size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_canon_canonRec___spec__14___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); @@ -46,56 +56,79 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonR lean_object* l_Lean_Meta_Canonicalizer_CanonM_run___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bvar___override(lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_Grind_canon_canonRec___spec__9___rarg___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_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ENode_proof_x3f___default; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__8___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_Grind_canon_canonRec___spec__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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon_canonRec___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_x3f_unsafe__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore___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_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_AbstractNestedProofs_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_Grind_canon_canonRec___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*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__3; static lean_object* l_Lean_Meta_Grind_Goal_clauses___default___closed__1; +uint8_t l_Lean_Expr_isLambda(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ENode_generation___default; size_t lean_ptr_addr(lean_object*); static lean_object* l_Lean_Meta_Grind_GrindM_run___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_canon_canonRec___spec__14(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_State_canon___default___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run(lean_object*); static lean_object* l_Lean_Meta_Grind_State_canon___default___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_State_goals___default; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Goal_inconsistent___default; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___boxed(lean_object*, lean_object*); +uint64_t lean_usize_to_uint64(size_t); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ENode_target_x3f___default; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_State_canon___default; lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); +lean_object* l_instDecidableEqUSize___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_canon_canonRec___spec__14___rarg___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_HashMapImp_find_x3f___at_Lean_instantiateExprMVars___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_Grind_canon_canonRec___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ENode_mt___default; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_Grind_canon_canonRec___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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_object* l_Lean_MessageData_ofFormat(lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__6; lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; static lean_object* l_Lean_Meta_Grind_instInhabitedClause___closed__1; +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon_canonRec___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ShareCommon_mkStateImpl(lean_object*); lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_canon_canonRec___spec__12___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon_canonRec___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_mapMUnsafe_map___at_Lean_Meta_Grind_canon_canonRec___spec__10(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, uint8_t, 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_Lean_Meta_Grind_canon_canonRec(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7___rarg___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_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_Grind_canon_canonRec___spec__4(lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_Grind_canon_canonRec___spec__9(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ENode_size___default; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_canon_canonRec___spec__11(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,28 +137,37 @@ lean_object* l_Lean_HashMap_insert___at_Lean_instantiateExprMVars___spec__3(lean LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon_canonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Meta_Grind_canon_canonRec___spec__9___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_State_scState___default; +lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_canon_canonRec___spec__12(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16(lean_object*, lean_object*); +lean_object* l_instHashableUSize___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_shareCommon___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_admit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +LEAN_EXPORT size_t l_Lean_Meta_Grind_setENode_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1(lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_ENode_ctor___default; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_enodes___default; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_Grind_canon_canonRec___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_Meta_Grind_Goal_gmt___default; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_abstractNestedProofs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_ENode_flipped___default; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_shareCommon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_clauses___default___closed__2; +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon_canonRec___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_State_nextThmIdx___default; -lean_object* l_instHashableUInt64___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_Grind_canon_canonRec___spec__5(lean_object*, lean_object*, uint8_t, uint8_t, 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_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_Grind_canon_canonRec___spec__6___lambda__1___boxed(lean_object**); static lean_object* l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1; -static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__2; +static size_t l_Lean_Meta_Grind_instInhabitedGoal___closed__2; lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_clauses___default___closed__3; @@ -135,20 +177,27 @@ LEAN_EXPORT uint8_t l_Lean_Meta_Grind_ENode_interpreted___default; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_Grind_canon_canonRec___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Grind_canon_canonRec___spec__3(lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_Meta_Grind_setENode___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_Meta_Grind_instInhabitedClause; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_canon_canonRec___spec__13(lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_Meta_Grind_getENode_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_Grind_canon_canonRec___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_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*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_ENode_heqProofs___default; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__5; lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__3; +size_t lean_usize_sub(size_t, size_t); lean_object* l_Lean_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkInputClause(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___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*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_Grind_canon_canonRec___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2(lean_object*, size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Expr_fvar___override(lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__4; @@ -156,399 +205,43 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Gr static lean_object* l_Lean_Meta_Grind_canon_canonRec___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7(lean_object*, lean_object*); +size_t lean_usize_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkInputClause___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2(lean_object*, lean_object*, uint8_t, uint8_t, 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_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__8___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__7___rarg___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_canon_canonRec___spec__11___boxed(lean_object**); +static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_canon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_enodes___default___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Grind_canon_canonRec___spec__8___rarg___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*); extern lean_object* l_Lean_ShareCommon_objectFactory; lean_object* lean_state_sharecommon(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1; uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_ENode_hasLambdas___default; uint8_t l_Lean_Expr_isConst(lean_object*); +static lean_object* l_Lean_Meta_Grind_mkGoal___closed__1; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1; -lean_object* l_instDecidableEqUInt64___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f_unsafe__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__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_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_Grind_canon_canonRec___spec__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*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedGoal; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(lean_object*, size_t, size_t, size_t, lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_Grind_canon_canonRec___spec__4___lambda__1___boxed(lean_object**); lean_object* l_Lean_Meta_Canonicalizer_canon(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* _init_l_Lean_Meta_Grind_ENode_target_x3f___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ENode_proof_x3f___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -static uint8_t _init_l_Lean_Meta_Grind_ENode_flipped___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_ENode_size___default() { -_start: -{ -lean_object* x_1; -x_1 = lean_unsigned_to_nat(1u); -return x_1; -} -} -static uint8_t _init_l_Lean_Meta_Grind_ENode_interpreted___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} -static uint8_t _init_l_Lean_Meta_Grind_ENode_ctor___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} -static uint8_t _init_l_Lean_Meta_Grind_ENode_hasLambdas___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} -static uint8_t _init_l_Lean_Meta_Grind_ENode_heqProofs___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Expr_bvar___override(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_instInhabitedClause___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instInhabitedClause___closed__2; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkInputClause(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_inc(x_1); -x_7 = l_Lean_FVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = l_Lean_Expr_fvar___override(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_7, 0, x_11); -return x_7; -} -else -{ -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_7, 0); -x_13 = lean_ctor_get(x_7, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_7); -x_14 = l_Lean_Expr_fvar___override(x_1); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_13); -return x_16; -} -} -else -{ -uint8_t x_17; -lean_dec(x_1); -x_17 = !lean_is_exclusive(x_7); -if (x_17 == 0) -{ -return x_7; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_7, 0); -x_19 = lean_ctor_get(x_7, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_7); -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_Meta_Grind_mkInputClause___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_Lean_Meta_Grind_mkInputClause(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(32u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Goal_clauses___default___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__3() { -_start: -{ -size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = 5; -x_2 = l_Lean_Meta_Grind_Goal_clauses___default___closed__2; -x_3 = l_Lean_Meta_Grind_Goal_clauses___default___closed__1; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_3); -lean_ctor_set(x_5, 2, x_4); -lean_ctor_set(x_5, 3, x_4); -lean_ctor_set_usize(x_5, 4, x_1); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instDecidableEqUInt64___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__1; -x_2 = lean_alloc_closure((void*)(l_instBEqOfDecidableEq___rarg), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__3; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_instHashableUInt64___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__4; -x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___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; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static size_t _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__3() { -_start: -{ -lean_object* x_1; size_t x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_usize_of_nat(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; -x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__2; -x_2 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; -x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Lean_Meta_Grind_instInhabitedGoal___closed__3; -x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_2); -lean_ctor_set(x_5, 2, x_3); -lean_ctor_set(x_5, 3, x_3); -lean_ctor_set_usize(x_5, 4, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_instInhabitedGoal___closed__4; -x_3 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__5; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; -x_3 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_admit(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; lean_object* x_9; -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -lean_dec(x_1); -x_8 = 1; -x_9 = l_Lean_MVarId_admit(x_7, x_8, x_2, x_3, x_4, x_5, x_6); -return x_9; -} -} static lean_object* _init_l_Lean_Meta_Grind_State_canon___default___closed__1() { _start: { @@ -602,28 +295,18 @@ x_1 = lean_unsigned_to_nat(1u); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_State_goals___default() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; -return x_1; -} -} static lean_object* _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Meta_Grind_State_canon___default___closed__2; x_2 = l_Lean_Meta_Grind_State_scState___default___closed__1; x_3 = lean_unsigned_to_nat(1u); -x_4 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; -x_5 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_2); -lean_ctor_set(x_5, 2, x_3); -lean_ctor_set(x_5, 3, x_4); -return x_5; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GrindM_run___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) { @@ -789,62 +472,59 @@ return x_37; } else { -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_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_38 = lean_ctor_get(x_29, 0); x_39 = lean_ctor_get(x_29, 1); -x_40 = lean_ctor_get(x_29, 3); -lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_29); -x_41 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_41, 0, x_38); -lean_ctor_set(x_41, 1, x_39); -lean_ctor_set(x_41, 2, x_26); -lean_ctor_set(x_41, 3, x_40); -x_42 = lean_st_ref_set(x_3, x_41, x_30); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_44 = x_42; +x_40 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_40, 2, x_26); +x_41 = lean_st_ref_set(x_3, x_40, x_30); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; } else { - lean_dec_ref(x_42); - x_44 = lean_box(0); + lean_dec_ref(x_41); + x_43 = lean_box(0); } -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 2, 0); } else { - x_45 = x_44; + x_44 = x_43; } -lean_ctor_set(x_45, 0, x_21); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_ctor_set(x_44, 0, x_21); +lean_ctor_set(x_44, 1, x_42); +return x_44; } } else { -uint8_t x_46; +uint8_t x_45; lean_dec(x_18); lean_dec(x_14); -x_46 = !lean_is_exclusive(x_20); -if (x_46 == 0) +x_45 = !lean_is_exclusive(x_20); +if (x_45 == 0) { return x_20; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_20, 0); -x_48 = lean_ctor_get(x_20, 1); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_20, 0); +x_47 = lean_ctor_get(x_20, 1); lean_inc(x_47); +lean_inc(x_46); lean_dec(x_20); -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; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -905,47 +585,44 @@ return x_22; } else { -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_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; x_23 = lean_ctor_get(x_10, 0); x_24 = lean_ctor_get(x_10, 1); x_25 = lean_ctor_get(x_10, 2); -x_26 = lean_ctor_get(x_10, 3); -lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_10); -x_27 = l_Lean_ShareCommon_objectFactory; -x_28 = lean_state_sharecommon(x_27, x_24, x_1); -x_29 = lean_ctor_get(x_28, 0); +x_26 = l_Lean_ShareCommon_objectFactory; +x_27 = lean_state_sharecommon(x_26, x_24, x_1); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_30); -lean_ctor_set(x_31, 2, x_25); -lean_ctor_set(x_31, 3, x_26); -x_32 = lean_st_ref_set(x_3, x_31, x_11); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; +lean_dec(x_27); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_29); +lean_ctor_set(x_30, 2, x_25); +x_31 = lean_st_ref_set(x_3, x_30, x_11); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_33 = x_31; } else { - lean_dec_ref(x_32); - x_34 = lean_box(0); + lean_dec_ref(x_31); + x_33 = lean_box(0); } -if (lean_is_scalar(x_34)) { - x_35 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_33)) { + x_34 = lean_alloc_ctor(0, 2, 0); } else { - x_35 = x_34; + x_34 = x_33; } -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_ctor_set(x_34, 0, x_28); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } } @@ -2727,7 +2404,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_Grind_canon_canonRec___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_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: { -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; uint8_t x_23; uint8_t x_24; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; x_12 = lean_ctor_get(x_9, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_9, 1); @@ -2750,163 +2427,171 @@ x_21 = lean_ctor_get(x_9, 9); lean_inc(x_21); x_22 = lean_ctor_get(x_9, 10); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); -x_24 = lean_nat_dec_eq(x_15, x_16); -if (x_24 == 0) +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*12); +x_24 = lean_ctor_get(x_9, 11); +lean_inc(x_24); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +x_26 = lean_nat_dec_eq(x_15, x_16); +if (x_26 == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 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; 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; -x_26 = lean_ctor_get(x_9, 10); -lean_dec(x_26); -x_27 = lean_ctor_get(x_9, 9); -lean_dec(x_27); -x_28 = lean_ctor_get(x_9, 8); +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; +x_28 = lean_ctor_get(x_9, 11); lean_dec(x_28); -x_29 = lean_ctor_get(x_9, 7); +x_29 = lean_ctor_get(x_9, 10); lean_dec(x_29); -x_30 = lean_ctor_get(x_9, 6); +x_30 = lean_ctor_get(x_9, 9); lean_dec(x_30); -x_31 = lean_ctor_get(x_9, 5); +x_31 = lean_ctor_get(x_9, 8); lean_dec(x_31); -x_32 = lean_ctor_get(x_9, 4); +x_32 = lean_ctor_get(x_9, 7); lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 3); +x_33 = lean_ctor_get(x_9, 6); lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 2); +x_34 = lean_ctor_get(x_9, 5); lean_dec(x_34); -x_35 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_9, 0); +x_36 = lean_ctor_get(x_9, 3); lean_dec(x_36); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_15, x_37); +x_37 = lean_ctor_get(x_9, 2); +lean_dec(x_37); +x_38 = lean_ctor_get(x_9, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_9, 0); +lean_dec(x_39); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_15, x_40); lean_dec(x_15); -lean_ctor_set(x_9, 3, x_38); -x_39 = lean_box(x_5); -x_40 = lean_apply_8(x_3, x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_40) == 0) +lean_ctor_set(x_9, 3, x_41); +x_42 = lean_box(x_5); +x_43 = lean_apply_8(x_3, x_4, x_42, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_43) == 0) { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -return x_40; +return x_43; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -else -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -return x_40; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 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; +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +return x_43; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_43); +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 { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_dec(x_9); -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_add(x_15, x_49); +x_52 = lean_unsigned_to_nat(1u); +x_53 = lean_nat_add(x_15, x_52); lean_dec(x_15); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_12); -lean_ctor_set(x_51, 1, x_13); -lean_ctor_set(x_51, 2, x_14); -lean_ctor_set(x_51, 3, x_50); -lean_ctor_set(x_51, 4, x_16); -lean_ctor_set(x_51, 5, x_17); -lean_ctor_set(x_51, 6, x_18); -lean_ctor_set(x_51, 7, x_19); -lean_ctor_set(x_51, 8, x_20); -lean_ctor_set(x_51, 9, x_21); -lean_ctor_set(x_51, 10, x_22); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_23); -x_52 = lean_box(x_5); -x_53 = lean_apply_8(x_3, x_4, x_52, x_6, x_7, x_8, x_51, x_10, x_11); -if (lean_obj_tag(x_53) == 0) +x_54 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_54, 0, x_12); +lean_ctor_set(x_54, 1, x_13); +lean_ctor_set(x_54, 2, x_14); +lean_ctor_set(x_54, 3, x_53); +lean_ctor_set(x_54, 4, x_16); +lean_ctor_set(x_54, 5, x_17); +lean_ctor_set(x_54, 6, x_18); +lean_ctor_set(x_54, 7, x_19); +lean_ctor_set(x_54, 8, x_20); +lean_ctor_set(x_54, 9, x_21); +lean_ctor_set(x_54, 10, x_22); +lean_ctor_set(x_54, 11, x_24); +lean_ctor_set_uint8(x_54, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_54, sizeof(void*)*12 + 1, x_25); +x_55 = lean_box(x_5); +x_56 = lean_apply_8(x_3, x_4, x_55, x_6, x_7, x_8, x_54, x_10, x_11); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_56 = x_53; -} else { - lean_dec_ref(x_53); - x_56 = lean_box(0); -} -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(0, 2, 0); -} else { - x_57 = x_56; -} -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_58 = lean_ctor_get(x_53, 0); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_53, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_60 = x_53; +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; } else { - lean_dec_ref(x_53); - x_60 = lean_box(0); + lean_dec_ref(x_56); + x_59 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); } else { - x_61 = x_60; + x_60 = x_59; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; +} else { + lean_dec_ref(x_56); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; } } } else { -lean_object* x_62; uint8_t x_63; +lean_object* x_65; uint8_t x_66; +lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); lean_dec(x_20); @@ -2920,28 +2605,28 @@ lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_62 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg(x_17, x_7, x_8, x_9, x_10, x_11); +x_65 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg(x_17, 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_7); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -return x_62; +return x_65; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_62, 0); -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_62); -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; +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_65); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } @@ -2955,6 +2640,15 @@ x_2 = l_Lean_Expr_sort___override(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2() { +_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_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t 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, 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) { _start: { @@ -3035,21 +2729,21 @@ return x_24; case 6: { lean_object* x_25; lean_object* x_26; -x_25 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_25 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; x_26 = l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_Grind_canon_canonRec___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_25, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_26; } case 7: { lean_object* x_27; lean_object* x_28; -x_27 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_27 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; x_28 = l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_Grind_canon_canonRec___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_27, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_28; } case 8: { lean_object* x_29; lean_object* x_30; -x_29 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_29 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; x_30 = l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_Grind_canon_canonRec___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_29, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_30; } @@ -4416,176 +4110,166 @@ return x_33; } 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; +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; x_34 = lean_ctor_get(x_25, 1); x_35 = lean_ctor_get(x_25, 2); -x_36 = lean_ctor_get(x_25, 3); -lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_dec(x_25); -x_37 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_37, 0, x_23); -lean_ctor_set(x_37, 1, x_34); -lean_ctor_set(x_37, 2, x_35); -lean_ctor_set(x_37, 3, x_36); -x_38 = lean_st_ref_set(x_3, x_37, x_26); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; +x_36 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_36, 0, x_23); +lean_ctor_set(x_36, 1, x_34); +lean_ctor_set(x_36, 2, x_35); +x_37 = lean_st_ref_set(x_3, x_36, x_26); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_37); + x_39 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_40; + x_40 = x_39; } -lean_ctor_set(x_41, 0, x_22); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_ctor_set(x_40, 0, x_22); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } else { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_19); -if (x_42 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_19); +if (x_41 == 0) { return x_19; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_19, 0); -x_44 = lean_ctor_get(x_19, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_19, 0); +x_43 = lean_ctor_get(x_19, 1); lean_inc(x_43); +lean_inc(x_42); lean_dec(x_19); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +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_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; uint8_t x_55; lean_object* x_56; -x_46 = lean_ctor_get(x_10, 0); -x_47 = lean_ctor_get(x_10, 1); -x_48 = lean_ctor_get(x_10, 2); -x_49 = lean_ctor_get(x_10, 3); -lean_inc(x_49); -lean_inc(x_48); +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; uint8_t x_53; lean_object* x_54; +x_45 = lean_ctor_get(x_10, 0); +x_46 = lean_ctor_get(x_10, 1); +x_47 = lean_ctor_get(x_10, 2); lean_inc(x_47); lean_inc(x_46); +lean_inc(x_45); lean_dec(x_10); -x_50 = l_Lean_Meta_Grind_State_canon___default___closed__2; -x_51 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_47); -lean_ctor_set(x_51, 2, x_48); -lean_ctor_set(x_51, 3, x_49); -x_52 = lean_st_ref_set(x_3, x_51, x_11); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_canon_canonRec___boxed), 8, 1); -lean_closure_set(x_54, 0, x_1); -x_55 = 3; -x_56 = l_Lean_Meta_Canonicalizer_CanonM_run___rarg(x_54, x_55, x_46, x_4, x_5, x_6, x_7, x_53); -if (lean_obj_tag(x_56) == 0) +x_48 = l_Lean_Meta_Grind_State_canon___default___closed__2; +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +lean_ctor_set(x_49, 2, x_47); +x_50 = lean_st_ref_set(x_3, x_49, x_11); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_canon_canonRec___boxed), 8, 1); +lean_closure_set(x_52, 0, x_1); +x_53 = 3; +x_54 = l_Lean_Meta_Canonicalizer_CanonM_run___rarg(x_52, x_53, x_45, x_4, x_5, x_6, x_7, x_51); +if (lean_obj_tag(x_54) == 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; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_57 = lean_ctor_get(x_56, 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; 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_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_ctor_get(x_55, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_58 = lean_ctor_get(x_55, 1); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_57, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_57, 1); +lean_dec(x_55); +x_59 = lean_st_ref_take(x_3, x_56); +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_57); -x_61 = lean_st_ref_take(x_3, x_58); -x_62 = lean_ctor_get(x_61, 0); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +x_63 = lean_ctor_get(x_60, 2); lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -x_65 = lean_ctor_get(x_62, 2); -lean_inc(x_65); -x_66 = lean_ctor_get(x_62, 3); -lean_inc(x_66); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - lean_ctor_release(x_62, 2); - lean_ctor_release(x_62, 3); - x_67 = x_62; +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + lean_ctor_release(x_60, 2); + x_64 = x_60; } else { - lean_dec_ref(x_62); - x_67 = lean_box(0); + lean_dec_ref(x_60); + x_64 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 4, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(0, 3, 0); } else { - x_68 = x_67; + x_65 = x_64; } -lean_ctor_set(x_68, 0, x_60); -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_st_ref_set(x_3, x_68, x_63); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; +lean_ctor_set(x_65, 0, x_58); +lean_ctor_set(x_65, 1, x_62); +lean_ctor_set(x_65, 2, x_63); +x_66 = lean_st_ref_set(x_3, x_65, x_61); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_68 = x_66; } else { - lean_dec_ref(x_69); - x_71 = lean_box(0); + lean_dec_ref(x_66); + x_68 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_71; + x_69 = x_68; } -lean_ctor_set(x_72, 0, x_59); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_69, 0, x_57); +lean_ctor_set(x_69, 1, x_67); +return x_69; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_56, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_56, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_75 = x_56; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_54, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_54, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_72 = x_54; } else { - lean_dec_ref(x_56); - x_75 = lean_box(0); + lean_dec_ref(x_54); + x_72 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_73 = x_72; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_73, 0, x_70); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } } @@ -4600,6 +4284,1877 @@ lean_dec(x_2); return x_9; } } +static lean_object* _init_l_Lean_Meta_Grind_ENode_target_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ENode_proof_x3f___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_ENode_flipped___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ENode_size___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(1u); +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_ENode_interpreted___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_ENode_ctor___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_ENode_hasLambdas___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_ENode_heqProofs___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ENode_generation___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_ENode_mt___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedClause___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedClause() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedClause___closed__2; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkInputClause(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_inc(x_1); +x_7 = l_Lean_FVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = l_Lean_Expr_fvar___override(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +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_7, 0); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_7); +x_14 = l_Lean_Expr_fvar___override(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +uint8_t x_17; +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_7); +if (x_17 == 0) +{ +return x_7; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_7, 0); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_7); +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_Meta_Grind_mkInputClause___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_Lean_Meta_Grind_mkInputClause(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Goal_clauses___default___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default___closed__3() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Meta_Grind_Goal_clauses___default___closed__2; +x_3 = l_Lean_Meta_Grind_Goal_clauses___default___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_clauses___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_instDecidableEqUSize___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__1; +x_2 = lean_alloc_closure((void*)(l_instBEqOfDecidableEq___rarg), 3, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_instHashableUSize___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_enodes___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_newEqs___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +return x_1; +} +} +static uint8_t _init_l_Lean_Meta_Grind_Goal_inconsistent___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_Goal_gmt___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_unsigned_to_nat(0u); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static size_t _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__2() { +_start: +{ +lean_object* x_1; size_t x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_usize_of_nat(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; size_t x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__1; +x_2 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Meta_Grind_instInhabitedGoal___closed__2; +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set_usize(x_5, 4, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_instInhabitedGoal___closed__3; +x_3 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; +x_4 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +x_5 = 0; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_2); +lean_ctor_set(x_7, 2, x_3); +lean_ctor_set(x_7, 3, x_4); +lean_ctor_set(x_7, 4, x_6); +lean_ctor_set_uint8(x_7, sizeof(void*)*5, x_5); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedGoal() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedGoal___closed__4; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_admit(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; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = 1; +x_9 = l_Lean_MVarId_admit(x_7, x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run___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_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_mk_ref(x_1, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_14 = lean_apply_8(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +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_st_ref_get(x_12, x_16); +lean_dec(x_12); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_17, 0); +lean_ctor_set(x_10, 1, x_19); +lean_ctor_set(x_10, 0, x_15); +lean_ctor_set(x_17, 0, x_10); +return x_17; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_17, 0); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_17); +lean_ctor_set(x_10, 1, x_20); +lean_ctor_set(x_10, 0, x_15); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_free_object(x_10); +lean_dec(x_12); +x_23 = !lean_is_exclusive(x_14); +if (x_23 == 0) +{ +return x_14; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_14); +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 +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_10, 0); +x_28 = lean_ctor_get(x_10, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_10); +lean_inc(x_27); +x_29 = lean_apply_8(x_2, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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_st_ref_get(x_27, x_31); +lean_dec(x_27); +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_33); +if (lean_is_scalar(x_35)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_35; +} +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_27); +x_38 = lean_ctor_get(x_29, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_29, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_40 = x_29; +} else { + lean_dec_ref(x_29); + 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); +return x_41; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_GoalM_run___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run_x27(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; +x_10 = lean_st_mk_ref(x_1, 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); +lean_inc(x_11); +x_13 = lean_apply_8(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, 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; lean_object* x_18; uint8_t x_19; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_get(x_11, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_st_ref_get(x_11, x_17); +lean_dec(x_11); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_dec(x_11); +x_23 = !lean_is_exclusive(x_13); +if (x_23 == 0) +{ +return x_13; +} +else +{ +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_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +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; +} +} +} +} +LEAN_EXPORT size_t l_Lean_Meta_Grind_getENode_x3f_unsafe__1(lean_object* x_1) { +_start: +{ +size_t x_2; +x_2 = lean_ptr_addr(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f_unsafe__1___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_getENode_x3f_unsafe__1(x_1); +lean_dec(x_1); +x_3 = lean_box_usize(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; size_t x_10; uint8_t x_11; +x_9 = lean_array_fget(x_1, x_4); +x_10 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_11 = lean_usize_dec_eq(x_5, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_2, x_4); +lean_dec(x_4); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +} +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__1() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = 5; +x_3 = lean_usize_shift_left(x_1, x_2); +return x_3; +} +} +static size_t _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__1; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = 5; +x_7 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2; +x_8 = lean_usize_land(x_2, x_7); +x_9 = lean_usize_to_nat(x_8); +x_10 = lean_box(2); +x_11 = lean_array_get(x_10, x_5, x_9); +lean_dec(x_9); +lean_dec(x_5); +switch (lean_obj_tag(x_11)) { +case 0: +{ +lean_object* x_12; lean_object* x_13; size_t x_14; uint8_t 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_unbox_usize(x_12); +lean_dec(x_12); +x_15 = lean_usize_dec_eq(x_3, x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_13); +lean_free_object(x_1); +x_16 = lean_box(0); +return x_16; +} +else +{ +lean_ctor_set_tag(x_1, 1); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +case 1: +{ +lean_object* x_17; size_t x_18; +lean_free_object(x_1); +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_usize_shift_right(x_2, x_6); +x_1 = x_17; +x_2 = x_18; +goto _start; +} +default: +{ +lean_object* x_20; +lean_free_object(x_1); +x_20 = lean_box(0); +return x_20; +} +} +} +else +{ +lean_object* x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +lean_dec(x_1); +x_22 = 5; +x_23 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2; +x_24 = lean_usize_land(x_2, x_23); +x_25 = lean_usize_to_nat(x_24); +x_26 = lean_box(2); +x_27 = lean_array_get(x_26, x_21, x_25); +lean_dec(x_25); +lean_dec(x_21); +switch (lean_obj_tag(x_27)) { +case 0: +{ +lean_object* x_28; lean_object* x_29; size_t x_30; uint8_t 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_unbox_usize(x_28); +lean_dec(x_28); +x_31 = lean_usize_dec_eq(x_3, x_30); +if (x_31 == 0) +{ +lean_object* x_32; +lean_dec(x_29); +x_32 = lean_box(0); +return x_32; +} +else +{ +lean_object* x_33; +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_29); +return x_33; +} +} +case 1: +{ +lean_object* x_34; size_t x_35; +x_34 = lean_ctor_get(x_27, 0); +lean_inc(x_34); +lean_dec(x_27); +x_35 = lean_usize_shift_right(x_2, x_22); +x_1 = x_34; +x_2 = x_35; +goto _start; +} +default: +{ +lean_object* x_37; +x_37 = lean_box(0); +return x_37; +} +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_1, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_1, 1); +lean_inc(x_39); +lean_dec(x_1); +x_40 = lean_unsigned_to_nat(0u); +x_41 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3(x_38, x_39, lean_box(0), x_40, x_3); +lean_dec(x_39); +lean_dec(x_38); +return x_41; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1(lean_object* x_1, size_t x_2) { +_start: +{ +lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_usize_to_uint64(x_2); +x_5 = lean_uint64_to_usize(x_4); +x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2(x_3, x_5, x_2); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f(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; uint8_t x_11; +x_10 = lean_st_ref_get(x_2, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_12, 2); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ptr_addr(x_1); +x_15 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1(x_13, x_14); +lean_ctor_set(x_10, 0, x_15); +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; lean_object* x_20; lean_object* x_21; +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_ctor_get(x_16, 2); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ptr_addr(x_1); +x_20 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1(x_18, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3___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; lean_object* x_7; +x_6 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_7 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getENode_x3f___spec__3(x_1, x_2, x_3, x_4, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___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_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2(x_1, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; lean_object* x_4; +x_3 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_4 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getENode_x3f___spec__1(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode_x3f___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_Meta_Grind_getENode_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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); +return x_10; +} +} +LEAN_EXPORT size_t l_Lean_Meta_Grind_setENode_unsafe__1(lean_object* x_1) { +_start: +{ +size_t x_2; +x_2 = lean_ptr_addr(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_setENode_unsafe__1(x_1); +lean_dec(x_1); +x_3 = lean_box_usize(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(size_t 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; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_dec(x_5); +return x_6; +} +else +{ +lean_object* x_9; size_t x_10; lean_object* x_11; uint64_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_11 = lean_array_fget(x_3, x_5); +x_12 = lean_usize_to_uint64(x_10); +x_13 = lean_uint64_to_usize(x_12); +x_14 = 1; +x_15 = lean_usize_sub(x_1, x_14); +x_16 = 5; +x_17 = lean_usize_mul(x_16, x_15); +x_18 = lean_usize_shift_right(x_13, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_5, x_19); +lean_dec(x_5); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_6, x_18, x_1, x_10, x_11); +x_4 = lean_box(0); +x_5 = x_20; +x_6 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_array_get_size(x_5); +x_8 = lean_nat_dec_lt(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_1); +if (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_1, 1); +lean_dec(x_10); +x_11 = lean_ctor_get(x_1, 0); +lean_dec(x_11); +x_12 = lean_box_usize(x_3); +x_13 = lean_array_push(x_5, x_12); +x_14 = lean_array_push(x_6, x_4); +lean_ctor_set(x_1, 1, x_14); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_1); +x_15 = lean_box_usize(x_3); +x_16 = lean_array_push(x_5, x_15); +x_17 = lean_array_push(x_6, x_4); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +lean_object* x_19; size_t x_20; uint8_t x_21; +x_19 = lean_array_fget(x_5, x_2); +x_20 = lean_unbox_usize(x_19); +lean_dec(x_19); +x_21 = lean_usize_dec_eq(x_3, x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_6); +lean_dec(x_5); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_2, x_22); +lean_dec(x_2); +x_2 = x_23; +goto _start; +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_1); +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_1, 1); +lean_dec(x_26); +x_27 = lean_ctor_get(x_1, 0); +lean_dec(x_27); +x_28 = lean_box_usize(x_3); +x_29 = lean_array_fset(x_5, x_2, x_28); +x_30 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_30); +lean_ctor_set(x_1, 0, x_29); +return x_1; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_dec(x_1); +x_31 = lean_box_usize(x_3); +x_32 = lean_array_fset(x_5, x_2, x_31); +x_33 = lean_array_fset(x_6, x_2, x_4); +lean_dec(x_2); +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; +} +} +} +} +} +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(lean_object* x_1, size_t x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 0); +x_8 = 1; +x_9 = 5; +x_10 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2; +x_11 = lean_usize_land(x_2, x_10); +x_12 = lean_usize_to_nat(x_11); +x_13 = lean_array_get_size(x_7); +x_14 = lean_nat_dec_lt(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_dec(x_12); +lean_dec(x_5); +return x_1; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_array_fget(x_7, x_12); +x_16 = lean_box(0); +x_17 = lean_array_fset(x_7, x_12, x_16); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +x_21 = lean_unbox_usize(x_19); +x_22 = lean_usize_dec_eq(x_4, x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_free_object(x_15); +x_23 = lean_box_usize(x_4); +x_24 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_23, x_5); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_array_fset(x_17, x_12, x_25); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_26); +return x_1; +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_20); +lean_dec(x_19); +x_27 = lean_box_usize(x_4); +lean_ctor_set(x_15, 1, x_5); +lean_ctor_set(x_15, 0, x_27); +x_28 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_28); +return x_1; +} +} +else +{ +lean_object* x_29; lean_object* x_30; size_t x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +x_31 = lean_unbox_usize(x_29); +x_32 = lean_usize_dec_eq(x_4, x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_box_usize(x_4); +x_34 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_29, x_30, x_33, x_5); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_array_fset(x_17, x_12, x_35); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_36); +return x_1; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_30); +lean_dec(x_29); +x_37 = lean_box_usize(x_4); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_5); +x_39 = lean_array_fset(x_17, x_12, x_38); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_39); +return x_1; +} +} +} +case 1: +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_15); +if (x_40 == 0) +{ +lean_object* x_41; size_t x_42; size_t x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_15, 0); +x_42 = lean_usize_shift_right(x_2, x_9); +x_43 = lean_usize_add(x_3, x_8); +x_44 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_41, x_42, x_43, x_4, x_5); +lean_ctor_set(x_15, 0, x_44); +x_45 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_45); +return x_1; +} +else +{ +lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_15, 0); +lean_inc(x_46); +lean_dec(x_15); +x_47 = lean_usize_shift_right(x_2, x_9); +x_48 = lean_usize_add(x_3, x_8); +x_49 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_46, x_47, x_48, x_4, x_5); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_array_fset(x_17, x_12, x_50); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_51); +return x_1; +} +} +default: +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_box_usize(x_4); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_5); +x_54 = lean_array_fset(x_17, x_12, x_53); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_54); +return x_1; +} +} +} +} +else +{ +lean_object* x_55; size_t x_56; size_t x_57; size_t x_58; size_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_55 = lean_ctor_get(x_1, 0); +lean_inc(x_55); +lean_dec(x_1); +x_56 = 1; +x_57 = 5; +x_58 = l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2; +x_59 = lean_usize_land(x_2, x_58); +x_60 = lean_usize_to_nat(x_59); +x_61 = lean_array_get_size(x_55); +x_62 = lean_nat_dec_lt(x_60, x_61); +lean_dec(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +lean_dec(x_60); +lean_dec(x_5); +x_63 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_63, 0, x_55); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_array_fget(x_55, x_60); +x_65 = lean_box(0); +x_66 = lean_array_fset(x_55, x_60, x_65); +switch (lean_obj_tag(x_64)) { +case 0: +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; size_t x_70; uint8_t x_71; +x_67 = lean_ctor_get(x_64, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_64, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_69 = x_64; +} else { + lean_dec_ref(x_64); + x_69 = lean_box(0); +} +x_70 = lean_unbox_usize(x_67); +x_71 = lean_usize_dec_eq(x_4, x_70); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_69); +x_72 = lean_box_usize(x_4); +x_73 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_67, x_68, x_72, x_5); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = lean_array_fset(x_66, x_60, x_74); +lean_dec(x_60); +x_76 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_76, 0, x_75); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_68); +lean_dec(x_67); +x_77 = lean_box_usize(x_4); +if (lean_is_scalar(x_69)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_69; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_5); +x_79 = lean_array_fset(x_66, x_60, x_78); +lean_dec(x_60); +x_80 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_80, 0, x_79); +return x_80; +} +} +case 1: +{ +lean_object* x_81; lean_object* x_82; size_t x_83; size_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_81 = lean_ctor_get(x_64, 0); +lean_inc(x_81); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + x_82 = x_64; +} else { + lean_dec_ref(x_64); + x_82 = lean_box(0); +} +x_83 = lean_usize_shift_right(x_2, x_57); +x_84 = lean_usize_add(x_3, x_56); +x_85 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_81, x_83, x_84, x_4, x_5); +if (lean_is_scalar(x_82)) { + x_86 = lean_alloc_ctor(1, 1, 0); +} else { + x_86 = x_82; +} +lean_ctor_set(x_86, 0, x_85); +x_87 = lean_array_fset(x_66, x_60, x_86); +lean_dec(x_60); +x_88 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_88, 0, x_87); +return x_88; +} +default: +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_89 = lean_box_usize(x_4); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_5); +x_91 = lean_array_fset(x_66, x_60, x_90); +lean_dec(x_60); +x_92 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_92, 0, x_91); +return x_92; +} +} +} +} +} +else +{ +uint8_t x_93; +x_93 = !lean_is_exclusive(x_1); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; size_t x_96; uint8_t x_97; +x_94 = lean_unsigned_to_nat(0u); +x_95 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_1, x_94, x_4, x_5); +x_96 = 7; +x_97 = lean_usize_dec_le(x_96, x_3); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_98 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_95); +x_99 = lean_unsigned_to_nat(4u); +x_100 = lean_nat_dec_lt(x_98, x_99); +lean_dec(x_98); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_101 = lean_ctor_get(x_95, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_95, 1); +lean_inc(x_102); +lean_dec(x_95); +x_103 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1; +x_104 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_101, x_102, lean_box(0), x_94, x_103); +lean_dec(x_102); +lean_dec(x_101); +return x_104; +} +else +{ +return x_95; +} +} +else +{ +return x_95; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; uint8_t x_111; +x_105 = lean_ctor_get(x_1, 0); +x_106 = lean_ctor_get(x_1, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_1); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_unsigned_to_nat(0u); +x_109 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_107, x_108, x_4, x_5); +x_110 = 7; +x_111 = lean_usize_dec_le(x_110, x_3); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_112 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_109); +x_113 = lean_unsigned_to_nat(4u); +x_114 = lean_nat_dec_lt(x_112, x_113); +lean_dec(x_112); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = lean_ctor_get(x_109, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_109, 1); +lean_inc(x_116); +lean_dec(x_109); +x_117 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1; +x_118 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_3, x_115, x_116, lean_box(0), x_108, x_117); +lean_dec(x_116); +lean_dec(x_115); +return x_118; +} +else +{ +return x_109; +} +} +else +{ +return x_109; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_usize_to_uint64(x_2); +x_8 = lean_uint64_to_usize(x_7); +x_9 = 1; +x_10 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_5, x_8, x_9, x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_6, x_11); +lean_dec(x_6); +lean_ctor_set(x_1, 1, x_12); +lean_ctor_set(x_1, 0, x_10); +return x_1; +} +else +{ +lean_object* x_13; lean_object* x_14; uint64_t x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_13 = lean_ctor_get(x_1, 0); +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_1); +x_15 = lean_usize_to_uint64(x_2); +x_16 = lean_uint64_to_usize(x_15); +x_17 = 1; +x_18 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_13, x_16, x_17, x_2, x_3); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_14, x_19); +lean_dec(x_14); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode(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; uint8_t x_14; +x_11 = lean_st_ref_take(x_3, x_10); +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_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_12, 2); +x_16 = lean_ptr_addr(x_1); +x_17 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_15, x_16, x_2); +lean_ctor_set(x_12, 2, x_17); +x_18 = lean_st_ref_set(x_3, x_12, x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_18, 0, x_21); +return x_18; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t 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; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_12, 1); +x_27 = lean_ctor_get(x_12, 2); +x_28 = lean_ctor_get(x_12, 3); +x_29 = lean_ctor_get_uint8(x_12, sizeof(void*)*5); +x_30 = lean_ctor_get(x_12, 4); +lean_inc(x_30); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_12); +x_31 = lean_ptr_addr(x_1); +x_32 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_27, x_31, x_2); +x_33 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_26); +lean_ctor_set(x_33, 2, x_32); +lean_ctor_set(x_33, 3, x_28); +lean_ctor_set(x_33, 4, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_29); +x_34 = lean_st_ref_set(x_3, x_33, x_13); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___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) { +_start: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_setENode___spec__3(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; lean_object* x_6; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_setENode___spec__4(x_1, x_2, x_5, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___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; size_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_9 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2(x_1, x_6, x_7, x_8, x_5); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; lean_object* x_5; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_setENode___spec__1(x_1, x_4, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode___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_Lean_Meta_Grind_setENode(x_1, x_2, x_3, x_4, 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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object* x_1, uint8_t 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_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_13 = lean_st_ref_get(x_5, x_12); +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_box(0); +x_17 = l_Lean_Expr_isLambda(x_1); +x_18 = lean_ctor_get(x_14, 4); +lean_inc(x_18); +lean_dec(x_14); +x_19 = 0; +x_20 = lean_unsigned_to_nat(1u); +lean_inc_n(x_1, 3); +x_21 = lean_alloc_ctor(0, 8, 5); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_1); +lean_ctor_set(x_21, 2, x_1); +lean_ctor_set(x_21, 3, x_16); +lean_ctor_set(x_21, 4, x_16); +lean_ctor_set(x_21, 5, x_20); +lean_ctor_set(x_21, 6, x_4); +lean_ctor_set(x_21, 7, x_18); +lean_ctor_set_uint8(x_21, sizeof(void*)*8, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*8 + 1, x_2); +lean_ctor_set_uint8(x_21, sizeof(void*)*8 + 2, x_3); +lean_ctor_set_uint8(x_21, sizeof(void*)*8 + 3, x_17); +lean_ctor_set_uint8(x_21, sizeof(void*)*8 + 4, x_19); +x_22 = l_Lean_Meta_Grind_setENode(x_1, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +lean_dec(x_1); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore___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: +{ +uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = lean_unbox(x_3); +lean_dec(x_3); +x_15 = l_Lean_Meta_Grind_mkENodeCore(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_15; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("True", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_mkGoal___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_mkGoal___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("False", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_mkGoal___closed__4; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkGoal___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_mkGoal___closed__5; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal(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; 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; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_9 = l_Lean_Meta_Grind_Goal_clauses___default___closed__3; +x_10 = l_Lean_Meta_Grind_Goal_enodes___default___closed__6; +x_11 = l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2; +x_12 = 0; +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_9); +lean_ctor_set(x_14, 2, x_10); +lean_ctor_set(x_14, 3, x_11); +lean_ctor_set(x_14, 4, x_13); +lean_ctor_set_uint8(x_14, sizeof(void*)*5, x_12); +x_15 = lean_st_mk_ref(x_14, x_8); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Meta_Grind_mkGoal___closed__3; +x_19 = l_Lean_Meta_Grind_shareCommon(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +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 = 1; +x_23 = l_Lean_Meta_Grind_mkENodeCore(x_20, x_22, x_12, x_13, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_21); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Meta_Grind_mkGoal___closed__6; +x_26 = l_Lean_Meta_Grind_shareCommon(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_24); +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 = l_Lean_Meta_Grind_mkENodeCore(x_27, x_22, x_12, x_13, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_st_ref_get(x_16, x_30); +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_st_ref_get(x_16, x_33); +lean_dec(x_16); +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_32); +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_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGoal___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_Lean_Meta_Grind_mkGoal(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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); +return x_9; +} +} lean_object* initialize_Lean_Util_ShareCommon(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AbstractNestedProofs(uint8_t builtin, lean_object*); @@ -4625,6 +6180,34 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Meta_Grind_State_canon___default___closed__1 = _init_l_Lean_Meta_Grind_State_canon___default___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default___closed__1); +l_Lean_Meta_Grind_State_canon___default___closed__2 = _init_l_Lean_Meta_Grind_State_canon___default___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default___closed__2); +l_Lean_Meta_Grind_State_canon___default = _init_l_Lean_Meta_Grind_State_canon___default(); +lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default); +l_Lean_Meta_Grind_State_scState___default___closed__1 = _init_l_Lean_Meta_Grind_State_scState___default___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_State_scState___default___closed__1); +l_Lean_Meta_Grind_State_scState___default = _init_l_Lean_Meta_Grind_State_scState___default(); +lean_mark_persistent(l_Lean_Meta_Grind_State_scState___default); +l_Lean_Meta_Grind_State_nextThmIdx___default = _init_l_Lean_Meta_Grind_State_nextThmIdx___default(); +lean_mark_persistent(l_Lean_Meta_Grind_State_nextThmIdx___default); +l_Lean_Meta_Grind_GrindM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__1); +l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1(); +lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1); +l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2(); +lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2); +l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1 = _init_l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1); +l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2 = _init_l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__2); +l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1 = _init_l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1); +l_Lean_Meta_Grind_canon_canonRec___closed__1 = _init_l_Lean_Meta_Grind_canon_canonRec___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_canon_canonRec___closed__1); +l_Lean_Meta_Grind_canon_canonRec___closed__2 = _init_l_Lean_Meta_Grind_canon_canonRec___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_canon_canonRec___closed__2); l_Lean_Meta_Grind_ENode_target_x3f___default = _init_l_Lean_Meta_Grind_ENode_target_x3f___default(); lean_mark_persistent(l_Lean_Meta_Grind_ENode_target_x3f___default); l_Lean_Meta_Grind_ENode_proof_x3f___default = _init_l_Lean_Meta_Grind_ENode_proof_x3f___default(); @@ -4636,6 +6219,10 @@ l_Lean_Meta_Grind_ENode_interpreted___default = _init_l_Lean_Meta_Grind_ENode_in l_Lean_Meta_Grind_ENode_ctor___default = _init_l_Lean_Meta_Grind_ENode_ctor___default(); l_Lean_Meta_Grind_ENode_hasLambdas___default = _init_l_Lean_Meta_Grind_ENode_hasLambdas___default(); l_Lean_Meta_Grind_ENode_heqProofs___default = _init_l_Lean_Meta_Grind_ENode_heqProofs___default(); +l_Lean_Meta_Grind_ENode_generation___default = _init_l_Lean_Meta_Grind_ENode_generation___default(); +lean_mark_persistent(l_Lean_Meta_Grind_ENode_generation___default); +l_Lean_Meta_Grind_ENode_mt___default = _init_l_Lean_Meta_Grind_ENode_mt___default(); +lean_mark_persistent(l_Lean_Meta_Grind_ENode_mt___default); l_Lean_Meta_Grind_instInhabitedClause___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedClause___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedClause___closed__1); l_Lean_Meta_Grind_instInhabitedClause___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedClause___closed__2(); @@ -4664,45 +6251,36 @@ l_Lean_Meta_Grind_Goal_enodes___default___closed__6 = _init_l_Lean_Meta_Grind_Go lean_mark_persistent(l_Lean_Meta_Grind_Goal_enodes___default___closed__6); l_Lean_Meta_Grind_Goal_enodes___default = _init_l_Lean_Meta_Grind_Goal_enodes___default(); lean_mark_persistent(l_Lean_Meta_Grind_Goal_enodes___default); +l_Lean_Meta_Grind_Goal_newEqs___default = _init_l_Lean_Meta_Grind_Goal_newEqs___default(); +lean_mark_persistent(l_Lean_Meta_Grind_Goal_newEqs___default); +l_Lean_Meta_Grind_Goal_inconsistent___default = _init_l_Lean_Meta_Grind_Goal_inconsistent___default(); +l_Lean_Meta_Grind_Goal_gmt___default = _init_l_Lean_Meta_Grind_Goal_gmt___default(); +lean_mark_persistent(l_Lean_Meta_Grind_Goal_gmt___default); l_Lean_Meta_Grind_instInhabitedGoal___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__1); l_Lean_Meta_Grind_instInhabitedGoal___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__2); l_Lean_Meta_Grind_instInhabitedGoal___closed__3 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__3); l_Lean_Meta_Grind_instInhabitedGoal___closed__4 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__4(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__4); -l_Lean_Meta_Grind_instInhabitedGoal___closed__5 = _init_l_Lean_Meta_Grind_instInhabitedGoal___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal___closed__5); l_Lean_Meta_Grind_instInhabitedGoal = _init_l_Lean_Meta_Grind_instInhabitedGoal(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedGoal); -l_Lean_Meta_Grind_State_canon___default___closed__1 = _init_l_Lean_Meta_Grind_State_canon___default___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default___closed__1); -l_Lean_Meta_Grind_State_canon___default___closed__2 = _init_l_Lean_Meta_Grind_State_canon___default___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default___closed__2); -l_Lean_Meta_Grind_State_canon___default = _init_l_Lean_Meta_Grind_State_canon___default(); -lean_mark_persistent(l_Lean_Meta_Grind_State_canon___default); -l_Lean_Meta_Grind_State_scState___default___closed__1 = _init_l_Lean_Meta_Grind_State_scState___default___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_State_scState___default___closed__1); -l_Lean_Meta_Grind_State_scState___default = _init_l_Lean_Meta_Grind_State_scState___default(); -lean_mark_persistent(l_Lean_Meta_Grind_State_scState___default); -l_Lean_Meta_Grind_State_nextThmIdx___default = _init_l_Lean_Meta_Grind_State_nextThmIdx___default(); -lean_mark_persistent(l_Lean_Meta_Grind_State_nextThmIdx___default); -l_Lean_Meta_Grind_State_goals___default = _init_l_Lean_Meta_Grind_State_goals___default(); -lean_mark_persistent(l_Lean_Meta_Grind_State_goals___default); -l_Lean_Meta_Grind_GrindM_run___rarg___closed__1 = _init_l_Lean_Meta_Grind_GrindM_run___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_GrindM_run___rarg___closed__1); -l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1(); -lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__1); -l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2(); -lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_canon_canonRec___spec__16___rarg___closed__2); -l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1 = _init_l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_transform_visit___at_Lean_Meta_Grind_canon_canonRec___spec__2___lambda__1___closed__1); -l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1 = _init_l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_transform___at_Lean_Meta_Grind_canon_canonRec___spec__1___closed__1); -l_Lean_Meta_Grind_canon_canonRec___closed__1 = _init_l_Lean_Meta_Grind_canon_canonRec___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_canon_canonRec___closed__1); -l_Lean_Meta_Grind_canon_canonRec___closed__2 = _init_l_Lean_Meta_Grind_canon_canonRec___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_canon_canonRec___closed__2); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__1(); +l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2 = _init_l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_getENode_x3f___spec__2___closed__2(); +l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_setENode___spec__2___closed__1); +l_Lean_Meta_Grind_mkGoal___closed__1 = _init_l_Lean_Meta_Grind_mkGoal___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__1); +l_Lean_Meta_Grind_mkGoal___closed__2 = _init_l_Lean_Meta_Grind_mkGoal___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__2); +l_Lean_Meta_Grind_mkGoal___closed__3 = _init_l_Lean_Meta_Grind_mkGoal___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__3); +l_Lean_Meta_Grind_mkGoal___closed__4 = _init_l_Lean_Meta_Grind_mkGoal___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__4); +l_Lean_Meta_Grind_mkGoal___closed__5 = _init_l_Lean_Meta_Grind_mkGoal___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__5); +l_Lean_Meta_Grind_mkGoal___closed__6 = _init_l_Lean_Meta_Grind_mkGoal___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_mkGoal___closed__6); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c index 15bf2d21dd..993d3e42c9 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Util -// Imports: Lean.Meta.AbstractNestedProofs Lean.Meta.Tactic.Util +// Imports: Lean.Meta.AbstractNestedProofs Lean.Meta.Tactic.Util Lean.Meta.Tactic.Clear #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -19,7 +19,10 @@ static lean_object* l_Lean_MVarId_betaReduce___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___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_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__4___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_Lean_MVarId_byContra_x3f___lambda__1___closed__1; extern lean_object* l_Lean_maxRecDepthErrorMessage; LEAN_EXPORT lean_object* l_Lean_MVarId_ensureNoMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,6 +30,7 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o static lean_object* l_Lean_Core_transform_visit___at_Lean_Meta_Grind_unfoldReducible___spec__2___lambda__1___closed__1; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_unfoldReducible___spec__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*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -41,6 +45,7 @@ lean_object* l_Lean_Expr_mdata___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_Core_transform_visit___at_Lean_Meta_Grind_unfoldReducible___spec__2(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_Meta_Grind_unfoldReducible___lambda__1___closed__1; static lean_object* l_Lean_MVarId_ensureNoMVar___closed__1; @@ -50,80 +55,106 @@ static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__5; static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__4; lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___boxed(lean_object*); +static lean_object* l_Lean_MVarId_clearAuxDecls___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___rarg___closed__2; lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_betaReduce___closed__1; lean_object* l_Lean_HashMapImp_find_x3f___at_Lean_instantiateExprMVars___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_MVarId_byContra_x3f___closed__1; static lean_object* l_Lean_MVarId_ensureProp___closed__1; lean_object* l_Lean_MessageData_ofFormat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_betaReduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureNoMVar___closed__4; static lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1___closed__1; lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; +static lean_object* l_Lean_MVarId_byContra_x3f___closed__2; static lean_object* l_Lean_MVarId_ensureNoMVar___closed__3; LEAN_EXPORT lean_object* l_Lean_MVarId_betaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Core_betaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +lean_object* l_Lean_MVarId_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_transformTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkNot(lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_MVarId_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_fvarId(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_unfoldReducible___spec__4(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*); lean_object* l_Lean_HashMap_insert___at_Lean_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Core_transform_visit___at_Lean_Meta_Grind_unfoldReducible___spec__2___lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___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*); static lean_object* l_Lean_MVarId_ensureProp___closed__2; static lean_object* l_Lean_MVarId_ensureNoMVar___closed__6; static lean_object* l_Lean_MVarId_betaReduce___lambda__1___closed__2; +static lean_object* l_Lean_MVarId_clearAuxDecls___closed__2; lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureNoMVar___closed__2; uint8_t l_Lean_Expr_isFalse(lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_ensureNoMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(uint8_t, uint8_t); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; LEAN_EXPORT lean_object* l_Lean_Core_transform_visit_visitPost___at_Lean_Meta_Grind_unfoldReducible___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* lean_array_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_unfoldReducible___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_object*, lean_object*); static lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__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_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureNoMVar___closed__5; LEAN_EXPORT lean_object* l_Lean_MVarId_transformTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___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_mkHashMapImp___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__5(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_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_ensureProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureProp___closed__3; static lean_object* l_Lean_Meta_Grind_unfoldReducible___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7(lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_zetaReduce___spec__14___rarg(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); lean_object* lean_nat_add(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Core_transform___at_Lean_Meta_Grind_unfoldReducible___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__7; @@ -1130,7 +1161,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Meta_Grind_unfoldReducible___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; 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; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_9 = lean_ctor_get(x_6, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_6, 1); @@ -1153,161 +1184,169 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); -lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); -x_36 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -return x_36; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); +lean_dec(x_12); +lean_ctor_set(x_6, 3, x_38); +x_39 = lean_apply_6(x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +return x_39; } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_36); -if (x_41 == 0) -{ -return x_36; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); -lean_dec(x_36); -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; +lean_inc(x_41); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 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_44; +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_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_6); -x_45 = lean_unsigned_to_nat(1u); -x_46 = lean_nat_add(x_12, x_45); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_add(x_12, x_48); lean_dec(x_12); -x_47 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_47, 0, x_9); -lean_ctor_set(x_47, 1, x_10); -lean_ctor_set(x_47, 2, x_11); -lean_ctor_set(x_47, 3, x_46); -lean_ctor_set(x_47, 4, x_13); -lean_ctor_set(x_47, 5, x_14); -lean_ctor_set(x_47, 6, x_15); -lean_ctor_set(x_47, 7, x_16); -lean_ctor_set(x_47, 8, x_17); -lean_ctor_set(x_47, 9, x_18); -lean_ctor_set(x_47, 10, x_19); -lean_ctor_set_uint8(x_47, sizeof(void*)*11, x_20); -x_48 = lean_apply_6(x_2, x_3, x_4, x_5, x_47, x_7, x_8); -if (lean_obj_tag(x_48) == 0) +x_50 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_50, 0, x_9); +lean_ctor_set(x_50, 1, x_10); +lean_ctor_set(x_50, 2, x_11); +lean_ctor_set(x_50, 3, x_49); +lean_ctor_set(x_50, 4, x_13); +lean_ctor_set(x_50, 5, x_14); +lean_ctor_set(x_50, 6, x_15); +lean_ctor_set(x_50, 7, x_16); +lean_ctor_set(x_50, 8, x_17); +lean_ctor_set(x_50, 9, x_18); +lean_ctor_set(x_50, 10, x_19); +lean_ctor_set(x_50, 11, x_21); +lean_ctor_set_uint8(x_50, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_50, sizeof(void*)*12 + 1, x_22); +x_51 = lean_apply_6(x_2, x_3, x_4, x_5, x_50, x_7, x_8); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; -} else { - lean_dec_ref(x_48); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(0, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_48, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_48, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_55 = x_48; +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_48); - x_55 = lean_box(0); + lean_dec_ref(x_51); + x_54 = lean_box(0); } -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_55; + x_55 = x_54; } -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_58 = x_51; +} else { + lean_dec_ref(x_51); + 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_57; uint8_t x_58; +lean_object* x_60; uint8_t x_61; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -1322,26 +1361,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_57 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___rarg(x_14, x_6, x_7, x_8); +x_60 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Grind_unfoldReducible___spec__7___rarg(x_14, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) { -return x_57; +return x_60; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_57); -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_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 0); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_60); +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; } } } @@ -3425,11 +3464,29 @@ return x_32; } } } +static lean_object* _init_l_Lean_MVarId_byContra_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("by_contra", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_MVarId_byContra_x3f___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_MVarId_ensureNoMVar___closed__1; +x_2 = l_Lean_MVarId_byContra_x3f___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f(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_Lean_MVarId_ensureNoMVar___closed__2; +x_7 = l_Lean_MVarId_byContra_x3f___closed__2; lean_inc(x_1); x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_byContra_x3f___lambda__2), 7, 2); lean_closure_set(x_8, 0, x_1); @@ -3450,8 +3507,1279 @@ lean_dec(x_3); return x_9; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__3(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_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +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; uint8_t x_15; +x_14 = lean_array_uget(x_3, x_5); +x_15 = !lean_is_exclusive(x_6); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_6, 1); +x_17 = lean_ctor_get(x_6, 0); +lean_dec(x_17); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_16); +lean_inc(x_1); +x_18 = l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2(x_1, x_14, x_16, x_7, x_8, x_9, x_10, x_11); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_6, 0, x_22); +lean_ctor_set(x_18, 0, x_6); +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_6, 0, x_24); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_6); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; +lean_dec(x_16); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +lean_dec(x_19); +lean_inc(x_2); +lean_ctor_set(x_6, 1, x_27); +lean_ctor_set(x_6, 0, x_2); +x_28 = 1; +x_29 = lean_usize_add(x_5, x_28); +x_5 = x_29; +x_11 = x_26; +goto _start; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_6, 1); +lean_inc(x_31); +lean_dec(x_6); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_31); +lean_inc(x_1); +x_32 = l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2(x_1, x_14, x_31, x_7, x_8, x_9, x_10, x_11); +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_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_31); +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; size_t x_42; size_t x_43; +lean_dec(x_31); +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +lean_dec(x_32); +x_40 = lean_ctor_get(x_33, 0); +lean_inc(x_40); +lean_dec(x_33); +lean_inc(x_2); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_2); +lean_ctor_set(x_41, 1, x_40); +x_42 = 1; +x_43 = lean_usize_add(x_5, x_42); +x_5 = x_43; +x_6 = x_41; +x_11 = x_39; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__4(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: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_4, x_3); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; +x_13 = lean_array_uget(x_2, x_4); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_5); +if (x_14 == 0) +{ +lean_object* x_15; size_t x_16; size_t x_17; +x_15 = lean_ctor_get(x_5, 0); +lean_dec(x_15); +lean_inc(x_1); +lean_ctor_set(x_5, 0, x_1); +x_16 = 1; +x_17 = lean_usize_add(x_4, x_16); +x_4 = 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_5, 1); +lean_inc(x_19); +lean_dec(x_5); +lean_inc(x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +x_21 = 1; +x_22 = lean_usize_add(x_4, x_21); +x_4 = x_22; +x_5 = x_20; +goto _start; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_5); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_5, 1); +x_26 = lean_ctor_get(x_5, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_13, 0); +lean_inc(x_27); +lean_dec(x_13); +x_28 = l_Lean_LocalDecl_isAuxDecl(x_27); +if (x_28 == 0) +{ +size_t x_29; size_t x_30; +lean_dec(x_27); +lean_inc(x_1); +lean_ctor_set(x_5, 0, x_1); +x_29 = 1; +x_30 = lean_usize_add(x_4, x_29); +x_4 = x_30; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; +x_32 = l_Lean_LocalDecl_fvarId(x_27); +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +lean_inc(x_1); +lean_ctor_set(x_5, 1, x_33); +lean_ctor_set(x_5, 0, x_1); +x_34 = 1; +x_35 = lean_usize_add(x_4, x_34); +x_4 = x_35; +goto _start; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_5, 1); +lean_inc(x_37); +lean_dec(x_5); +x_38 = lean_ctor_get(x_13, 0); +lean_inc(x_38); +lean_dec(x_13); +x_39 = l_Lean_LocalDecl_isAuxDecl(x_38); +if (x_39 == 0) +{ +lean_object* x_40; size_t x_41; size_t x_42; +lean_dec(x_38); +lean_inc(x_1); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_1); +lean_ctor_set(x_40, 1, x_37); +x_41 = 1; +x_42 = lean_usize_add(x_4, x_41); +x_4 = x_42; +x_5 = x_40; +goto _start; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; +x_44 = l_Lean_LocalDecl_fvarId(x_38); +lean_dec(x_38); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_37); +lean_inc(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_45); +x_47 = 1; +x_48 = lean_usize_add(x_4, x_47); +x_4 = x_48; +x_5 = x_46; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___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; +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___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: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_3); +x_12 = lean_array_get_size(x_9); +x_13 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_14 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__3(x_1, x_10, x_9, x_13, x_14, x_11, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_9); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +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; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_box(0); +x_21 = l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1(x_19, x_20, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_17, 0); +lean_inc(x_24); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_24); +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_dec(x_15); +x_26 = lean_ctor_get(x_17, 0); +lean_inc(x_26); +lean_dec(x_17); +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 +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_1); +x_28 = lean_ctor_get(x_2, 0); +lean_inc(x_28); +lean_dec(x_2); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_3); +x_31 = lean_array_get_size(x_28); +x_32 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_33 = 0; +x_34 = l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__4(x_29, x_28, x_32, x_33, x_30, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_28); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +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; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_box(0); +x_40 = l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1(x_38, x_39, x_4, x_5, x_6, x_7, x_37); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_40; +} +else +{ +uint8_t x_41; +lean_dec(x_35); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_34); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_34, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_36, 0); +lean_inc(x_43); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_43); +return x_34; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_34, 1); +lean_inc(x_44); +lean_dec(x_34); +x_45 = lean_ctor_get(x_36, 0); +lean_inc(x_45); +lean_dec(x_36); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__5(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: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_4, x_3); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; +x_13 = lean_array_uget(x_2, x_4); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_5); +if (x_14 == 0) +{ +lean_object* x_15; size_t x_16; size_t x_17; +x_15 = lean_ctor_get(x_5, 0); +lean_dec(x_15); +lean_inc(x_1); +lean_ctor_set(x_5, 0, x_1); +x_16 = 1; +x_17 = lean_usize_add(x_4, x_16); +x_4 = 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_5, 1); +lean_inc(x_19); +lean_dec(x_5); +lean_inc(x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_19); +x_21 = 1; +x_22 = lean_usize_add(x_4, x_21); +x_4 = x_22; +x_5 = x_20; +goto _start; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_5); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_5, 1); +x_26 = lean_ctor_get(x_5, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_13, 0); +lean_inc(x_27); +lean_dec(x_13); +x_28 = l_Lean_LocalDecl_isAuxDecl(x_27); +if (x_28 == 0) +{ +size_t x_29; size_t x_30; +lean_dec(x_27); +lean_inc(x_1); +lean_ctor_set(x_5, 0, x_1); +x_29 = 1; +x_30 = lean_usize_add(x_4, x_29); +x_4 = x_30; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; +x_32 = l_Lean_LocalDecl_fvarId(x_27); +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +lean_inc(x_1); +lean_ctor_set(x_5, 1, x_33); +lean_ctor_set(x_5, 0, x_1); +x_34 = 1; +x_35 = lean_usize_add(x_4, x_34); +x_4 = x_35; +goto _start; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_5, 1); +lean_inc(x_37); +lean_dec(x_5); +x_38 = lean_ctor_get(x_13, 0); +lean_inc(x_38); +lean_dec(x_13); +x_39 = l_Lean_LocalDecl_isAuxDecl(x_38); +if (x_39 == 0) +{ +lean_object* x_40; size_t x_41; size_t x_42; +lean_dec(x_38); +lean_inc(x_1); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_1); +lean_ctor_set(x_40, 1, x_37); +x_41 = 1; +x_42 = lean_usize_add(x_4, x_41); +x_4 = x_42; +x_5 = x_40; +goto _start; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; +x_44 = l_Lean_LocalDecl_fvarId(x_38); +lean_dec(x_38); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_37); +lean_inc(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_45); +x_47 = 1; +x_48 = lean_usize_add(x_4, x_47); +x_4 = x_48; +x_5 = x_46; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___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) { +_start: +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_9 = l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2(x_2, x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +lean_dec(x_1); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +x_22 = lean_array_get_size(x_19); +x_23 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_24 = 0; +x_25 = l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__5(x_20, x_19, x_23, x_24, x_21, x_3, x_4, x_5, x_6, x_17); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_19); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_25, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +lean_ctor_set(x_25, 0, x_30); +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_dec(x_26); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_26); +x_34 = !lean_is_exclusive(x_25); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_25, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_27, 0); +lean_inc(x_36); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_36); +return x_25; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_25, 1); +lean_inc(x_37); +lean_dec(x_25); +x_38 = lean_ctor_get(x_27, 0); +lean_inc(x_38); +lean_dec(x_27); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +} +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("failed to clear local auxiliary declaration", 43); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___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_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; +x_2 = l_Lean_MessageData_ofFormat(x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___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: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_12 = l_Lean_MVarId_clear(x_3, x_10, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_2 = x_11; +x_3 = x_13; +x_8 = x_14; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_11); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +x_19 = l_Lean_Exception_isInterrupt(x_17); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_free_object(x_12); +lean_dec(x_17); +x_21 = l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; +x_22 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_3, x_21, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_5); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +return x_22; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_22); +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 +{ +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +else +{ +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_12; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t 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_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +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_dec(x_27); +x_31 = l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; +x_32 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_3, x_31, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_7); +lean_dec(x_5); +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); +} +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); +return x_36; +} +else +{ +lean_object* x_37; +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_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; +} +} +else +{ +lean_object* x_38; +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_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_28); +return x_38; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___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_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___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_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, 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; uint8_t x_14; +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_box(0); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_13 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1(x_12, x_10, x_3, x_4, x_5, x_6, x_9); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = l_List_isEmpty___rarg(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_free_object(x_13); +x_18 = lean_box(0); +x_19 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_2, x_15, x_1, x_18, x_3, x_4, x_5, x_6, x_16); +return x_19; +} +else +{ +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_13, 0, x_1); +return x_13; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_13); +x_22 = l_List_isEmpty___rarg(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_box(0); +x_24 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_2, x_20, x_1, x_23, x_3, x_4, x_5, x_6, x_21); +return x_24; +} +else +{ +lean_object* x_25; +lean_dec(x_20); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_8); +if (x_26 == 0) +{ +return x_8; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_8, 0); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_8); +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; +} +} +} +} +static lean_object* _init_l_Lean_MVarId_clearAuxDecls___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("clear_aux_decls", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_MVarId_clearAuxDecls___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_MVarId_ensureNoMVar___closed__1; +x_2 = l_Lean_MVarId_clearAuxDecls___closed__1; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls(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_Lean_MVarId_clearAuxDecls___closed__2; +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_clearAuxDecls___lambda__2), 7, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_7); +x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___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, 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_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__3(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_3); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___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; +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_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__4(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_6); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___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_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___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_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_Array_forInUnsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__5(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_6); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___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_MVarId_clearAuxDecls___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} lean_object* initialize_Lean_Meta_AbstractNestedProofs(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); +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_Grind_Util(uint8_t builtin, lean_object* w) { lean_object * res; @@ -3463,6 +4791,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Clear(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_MVarId_ensureNoMVar___closed__1 = _init_l_Lean_MVarId_ensureNoMVar___closed__1(); lean_mark_persistent(l_Lean_MVarId_ensureNoMVar___closed__1); l_Lean_MVarId_ensureNoMVar___closed__2 = _init_l_Lean_MVarId_ensureNoMVar___closed__2(); @@ -3521,6 +4852,22 @@ l_Lean_MVarId_byContra_x3f___lambda__1___closed__6 = _init_l_Lean_MVarId_byContr lean_mark_persistent(l_Lean_MVarId_byContra_x3f___lambda__1___closed__6); l_Lean_MVarId_byContra_x3f___lambda__1___closed__7 = _init_l_Lean_MVarId_byContra_x3f___lambda__1___closed__7(); lean_mark_persistent(l_Lean_MVarId_byContra_x3f___lambda__1___closed__7); +l_Lean_MVarId_byContra_x3f___closed__1 = _init_l_Lean_MVarId_byContra_x3f___closed__1(); +lean_mark_persistent(l_Lean_MVarId_byContra_x3f___closed__1); +l_Lean_MVarId_byContra_x3f___closed__2 = _init_l_Lean_MVarId_byContra_x3f___closed__2(); +lean_mark_persistent(l_Lean_MVarId_byContra_x3f___closed__2); +l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1 = _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1); +l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2 = _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2); +l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3 = _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3); +l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4 = _init_l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4); +l_Lean_MVarId_clearAuxDecls___closed__1 = _init_l_Lean_MVarId_clearAuxDecls___closed__1(); +lean_mark_persistent(l_Lean_MVarId_clearAuxDecls___closed__1); +l_Lean_MVarId_clearAuxDecls___closed__2 = _init_l_Lean_MVarId_clearAuxDecls___closed__2(); +lean_mark_persistent(l_Lean_MVarId_clearAuxDecls___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 462d9cad7f..6cb77df5ff 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -26,6 +26,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, l static lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; static lean_object* l_Nat_forM_loop___at_Lean_Meta_getMajorTypeIndices___spec__1___closed__2; lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); @@ -483,34 +484,38 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_21, 0); x_27 = lean_ctor_get(x_21, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_free_object(x_21); lean_dec(x_26); -x_29 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; -x_30 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__10; -x_31 = l_Lean_Meta_throwTacticEx___rarg(x_29, x_1, x_30, x_5, x_6, x_7, x_8, x_27); +x_30 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_31 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__10; +x_32 = l_Lean_Meta_throwTacticEx___rarg(x_30, x_1, x_31, x_5, x_6, x_7, x_8, x_27); lean_dec(x_8); lean_dec(x_6); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -return x_31; +return x_32; } 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_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_31); -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_dec(x_32); +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 @@ -525,80 +530,108 @@ return x_21; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_21, 0); -x_37 = lean_ctor_get(x_21, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_21); -x_38 = l_Lean_Exception_isRuntime(x_36); -if (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_dec(x_36); -x_39 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; -x_40 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__10; -x_41 = l_Lean_Meta_throwTacticEx___rarg(x_39, x_1, x_40, x_5, x_6, x_7, x_8, x_37); -lean_dec(x_8); -lean_dec(x_6); -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); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_36); -lean_ctor_set(x_46, 1, x_37); -return x_46; +return x_21; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_21, 0); +x_38 = lean_ctor_get(x_21, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_21); +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) +{ +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +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_dec(x_37); +x_41 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_42 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__10; +x_43 = l_Lean_Meta_throwTacticEx___rarg(x_41, x_1, x_42, x_5, x_6, x_7, x_8, x_38); +lean_dec(x_8); +lean_dec(x_6); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +else +{ +lean_object* x_48; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_37); +lean_ctor_set(x_48, 1, x_38); +return x_48; +} +} +else +{ +lean_object* x_49; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_37); +lean_ctor_set(x_49, 1, x_38); +return x_49; } } } } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_17); lean_dec(x_12); lean_dec(x_4); lean_dec(x_2); -x_47 = lean_ctor_get(x_16, 1); -lean_inc(x_47); +x_50 = lean_ctor_get(x_16, 1); +lean_inc(x_50); lean_dec(x_16); -x_48 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; -x_49 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; -x_50 = l_Lean_Meta_throwTacticEx___rarg(x_48, x_1, x_49, x_5, x_6, x_7, x_8, x_47); +x_51 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_52 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; +x_53 = l_Lean_Meta_throwTacticEx___rarg(x_51, x_1, x_52, x_5, x_6, x_7, x_8, x_50); lean_dec(x_8); lean_dec(x_6); -return x_50; +return x_53; } } else { -uint8_t x_51; +uint8_t x_54; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -607,29 +640,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_16); -if (x_51 == 0) +x_54 = !lean_is_exclusive(x_16); +if (x_54 == 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_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_16, 0); +x_56 = lean_ctor_get(x_16, 1); +lean_inc(x_56); +lean_inc(x_55); 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_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_55; +uint8_t x_58; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -638,60 +671,60 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_13); -if (x_55 == 0) +x_58 = !lean_is_exclusive(x_13); +if (x_58 == 0) { return x_13; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_13, 0); -x_57 = lean_ctor_get(x_13, 1); -lean_inc(x_57); -lean_inc(x_56); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_13, 0); +x_60 = lean_ctor_get(x_13, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_13); -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; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_3, 1); -lean_inc(x_59); +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_62 = lean_ctor_get(x_3, 1); +lean_inc(x_62); lean_dec(x_3); -x_60 = lean_ctor_get(x_11, 0); -lean_inc(x_60); +x_63 = lean_ctor_get(x_11, 0); +lean_inc(x_63); lean_dec(x_11); -x_61 = lean_array_get_size(x_2); -x_62 = lean_nat_dec_lt(x_60, x_61); -lean_dec(x_61); -if (x_62 == 0) +x_64 = lean_array_get_size(x_2); +x_65 = lean_nat_dec_lt(x_63, x_64); +lean_dec(x_64); +if (x_65 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_60); -lean_dec(x_59); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_63); +lean_dec(x_62); lean_dec(x_4); lean_dec(x_2); -x_63 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; -x_64 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; -x_65 = l_Lean_Meta_throwTacticEx___rarg(x_63, x_1, x_64, x_5, x_6, x_7, x_8, x_9); +x_66 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_67 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; +x_68 = l_Lean_Meta_throwTacticEx___rarg(x_66, x_1, x_67, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_6); -return x_65; +return x_68; } else { -lean_object* x_66; lean_object* x_67; -x_66 = lean_array_fget(x_2, x_60); -lean_dec(x_60); -x_67 = l_Lean_Expr_app___override(x_4, x_66); -x_3 = x_59; -x_4 = x_67; +lean_object* x_69; lean_object* x_70; +x_69 = lean_array_fget(x_2, x_63); +lean_dec(x_63); +x_70 = l_Lean_Expr_app___override(x_4, x_69); +x_3 = x_62; +x_4 = x_70; goto _start; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Injection.c b/stage0/stdlib/Lean/Meta/Tactic/Injection.c index 826e6027c2..7c7437702f 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Injection.c @@ -22,6 +22,7 @@ lean_object* l_Lean_Meta_isConstructorApp_x27_x3f(lean_object*, lean_object*, le lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchEqHEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5026,7 +5027,7 @@ lean_inc(x_6); x_35 = lean_whnf(x_31, x_6, x_7, x_8, x_9, x_34); if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_79; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_81; x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); @@ -5039,27 +5040,27 @@ if (lean_is_exclusive(x_35)) { lean_dec_ref(x_35); x_38 = lean_box(0); } -x_79 = l_Lean_Expr_isRawNatLit(x_33); +x_81 = l_Lean_Expr_isRawNatLit(x_33); lean_dec(x_33); -if (x_79 == 0) -{ -lean_object* x_80; -lean_dec(x_36); -x_80 = lean_box(0); -x_39 = x_80; -goto block_78; -} -else -{ -uint8_t x_81; -x_81 = l_Lean_Expr_isRawNatLit(x_36); -lean_dec(x_36); if (x_81 == 0) { lean_object* x_82; +lean_dec(x_36); x_82 = lean_box(0); x_39 = x_82; -goto block_78; +goto block_80; +} +else +{ +uint8_t x_83; +x_83 = l_Lean_Expr_isRawNatLit(x_36); +lean_dec(x_36); +if (x_83 == 0) +{ +lean_object* x_84; +x_84 = lean_box(0); +x_39 = x_84; +goto block_80; } else { @@ -5072,9 +5073,9 @@ x_10 = x_37; goto _start; } } -block_78: +block_80: { -lean_object* x_40; lean_object* x_41; lean_object* x_54; +lean_object* x_40; lean_object* x_41; lean_object* x_56; lean_dec(x_39); lean_inc(x_9); lean_inc(x_8); @@ -5082,15 +5083,15 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_54 = l_Lean_Meta_injection(x_4, x_15, x_5, x_6, x_7, x_8, x_9, x_37); -if (lean_obj_tag(x_54) == 0) +x_56 = l_Lean_Meta_injection(x_4, x_15, x_5, x_6, x_7, x_8, x_9, x_37); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_55; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -if (lean_obj_tag(x_55) == 0) +lean_object* x_57; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +if (lean_obj_tag(x_57) == 0) { -uint8_t x_56; +uint8_t x_58; lean_dec(x_38); lean_dec(x_19); lean_dec(x_18); @@ -5102,61 +5103,61 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_54); -if (x_56 == 0) +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_54, 0); -lean_dec(x_57); -x_58 = lean_box(0); -lean_ctor_set(x_54, 0, x_58); -return x_54; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_54, 1); -lean_inc(x_59); -lean_dec(x_54); +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_56, 0); +lean_dec(x_59); x_60 = lean_box(0); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_56, 0, x_60); +return x_56; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_56, 1); +lean_inc(x_61); +lean_dec(x_56); +x_62 = lean_box(0); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } else { -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_62 = lean_ctor_get(x_54, 1); -lean_inc(x_62); -lean_dec(x_54); -x_63 = lean_ctor_get(x_55, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_55, 1); +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 = lean_ctor_get(x_56, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_55, 2); +lean_dec(x_56); +x_65 = lean_ctor_get(x_57, 0); lean_inc(x_65); -lean_dec(x_55); -x_66 = lean_array_to_list(lean_box(0), x_64); +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +x_67 = lean_ctor_get(x_57, 2); +lean_inc(x_67); +lean_dec(x_57); +x_68 = lean_array_to_list(lean_box(0), x_66); lean_inc(x_16); -x_67 = l_List_appendTR___rarg(x_66, x_16); -lean_inc(x_63); +x_69 = l_List_appendTR___rarg(x_68, x_16); +lean_inc(x_65); lean_inc(x_1); -x_68 = lean_alloc_closure((void*)(l_Lean_Meta_injections_go), 10, 5); -lean_closure_set(x_68, 0, x_1); -lean_closure_set(x_68, 1, x_18); -lean_closure_set(x_68, 2, x_67); -lean_closure_set(x_68, 3, x_63); -lean_closure_set(x_68, 4, x_65); +x_70 = lean_alloc_closure((void*)(l_Lean_Meta_injections_go), 10, 5); +lean_closure_set(x_70, 0, x_1); +lean_closure_set(x_70, 1, x_18); +lean_closure_set(x_70, 2, x_69); +lean_closure_set(x_70, 3, x_65); +lean_closure_set(x_70, 4, x_67); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_69 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_63, x_68, x_6, x_7, x_8, x_9, x_62); -if (lean_obj_tag(x_69) == 0) +x_71 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_65, x_70, x_6, x_7, x_8, x_9, x_64); +if (lean_obj_tag(x_71) == 0) { -uint8_t x_70; +uint8_t x_72; lean_dec(x_38); lean_dec(x_19); lean_dec(x_16); @@ -5167,110 +5168,114 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_69); -if (x_70 == 0) +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -return x_69; +return x_71; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_69, 0); -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_69); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -else -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_69, 0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 0); +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_69, 1); -lean_inc(x_75); -lean_dec(x_69); -x_40 = x_74; -x_41 = x_75; -goto block_53; -} +lean_inc(x_73); +lean_dec(x_71); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } else { lean_object* x_76; lean_object* x_77; -lean_dec(x_18); -x_76 = lean_ctor_get(x_54, 0); +x_76 = lean_ctor_get(x_71, 0); lean_inc(x_76); -x_77 = lean_ctor_get(x_54, 1); +x_77 = lean_ctor_get(x_71, 1); lean_inc(x_77); -lean_dec(x_54); +lean_dec(x_71); x_40 = x_76; x_41 = x_77; -goto block_53; +goto block_55; } -block_53: +} +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_18); +x_78 = lean_ctor_get(x_56, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_56, 1); +lean_inc(x_79); +lean_dec(x_56); +x_40 = x_78; +x_41 = x_79; +goto block_55; +} +block_55: { uint8_t x_42; -x_42 = l_Lean_Exception_isRuntime(x_40); +x_42 = l_Lean_Exception_isInterrupt(x_40); if (x_42 == 0) { -lean_object* x_43; +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; lean_dec(x_40); lean_dec(x_38); -x_43 = l_Lean_Meta_injections_go(x_1, x_19, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_41); -if (lean_obj_tag(x_43) == 0) +x_44 = l_Lean_Meta_injections_go(x_1, x_19, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_41); +if (lean_obj_tag(x_44) == 0) { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -return x_43; +return x_44; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_dec(x_44); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } else { -uint8_t x_48; -x_48 = !lean_is_exclusive(x_43); -if (x_48 == 0) +uint8_t x_49; +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) { -return x_43; +return x_44; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_43, 0); -x_50 = lean_ctor_get(x_43, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_44, 0); +x_51 = lean_ctor_get(x_44, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_43); -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; +lean_dec(x_44); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -lean_object* x_52; +lean_object* x_53; lean_dec(x_19); lean_dec(x_16); lean_dec(x_9); @@ -5281,21 +5286,44 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_52 = lean_alloc_ctor(1, 2, 0); + x_53 = lean_alloc_ctor(1, 2, 0); } else { - x_52 = x_38; - lean_ctor_set_tag(x_52, 1); + x_53 = x_38; + lean_ctor_set_tag(x_53, 1); } -lean_ctor_set(x_52, 0, x_40); -lean_ctor_set(x_52, 1, x_41); -return x_52; +lean_ctor_set(x_53, 0, x_40); +lean_ctor_set(x_53, 1, x_41); +return x_53; +} +} +else +{ +lean_object* x_54; +lean_dec(x_19); +lean_dec(x_16); +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_1); +if (lean_is_scalar(x_38)) { + x_54 = lean_alloc_ctor(1, 2, 0); +} else { + x_54 = x_38; + lean_ctor_set_tag(x_54, 1); +} +lean_ctor_set(x_54, 0, x_40); +lean_ctor_set(x_54, 1, x_41); +return x_54; } } } } else { -uint8_t x_84; +uint8_t x_86; lean_dec(x_33); lean_dec(x_19); lean_dec(x_18); @@ -5308,29 +5336,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_35); -if (x_84 == 0) +x_86 = !lean_is_exclusive(x_35); +if (x_86 == 0) { return x_35; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_35, 0); -x_86 = lean_ctor_get(x_35, 1); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_35, 0); +x_88 = lean_ctor_get(x_35, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_35); -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; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -uint8_t x_88; +uint8_t x_90; lean_dec(x_31); lean_dec(x_19); lean_dec(x_18); @@ -5343,30 +5371,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_32); -if (x_88 == 0) +x_90 = !lean_is_exclusive(x_32); +if (x_90 == 0) { return x_32; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_32, 0); -x_90 = lean_ctor_get(x_32, 1); -lean_inc(x_90); -lean_inc(x_89); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_32, 0); +x_92 = lean_ctor_get(x_32, 1); +lean_inc(x_92); +lean_inc(x_91); lean_dec(x_32); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } } } else { -uint8_t x_92; +uint8_t x_94; lean_dec(x_19); lean_dec(x_18); lean_dec(x_16); @@ -5378,29 +5406,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_23); -if (x_92 == 0) +x_94 = !lean_is_exclusive(x_23); +if (x_94 == 0) { return x_23; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_23, 0); -x_94 = lean_ctor_get(x_23, 1); -lean_inc(x_94); -lean_inc(x_93); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_23, 0); +x_96 = lean_ctor_get(x_23, 1); +lean_inc(x_96); +lean_inc(x_95); lean_dec(x_23); -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; +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 { -uint8_t x_96; +uint8_t x_98; lean_dec(x_19); lean_dec(x_18); lean_dec(x_16); @@ -5412,40 +5440,40 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_96 = !lean_is_exclusive(x_20); -if (x_96 == 0) +x_98 = !lean_is_exclusive(x_20); +if (x_98 == 0) { return x_20; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_20, 0); -x_98 = lean_ctor_get(x_20, 1); -lean_inc(x_98); -lean_inc(x_97); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_20, 0); +x_100 = lean_ctor_get(x_20, 1); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_20); -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; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } } } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_100 = l_Lean_Meta_injections_go___closed__2; -x_101 = l_Lean_Meta_injections_go___closed__6; -x_102 = l_Lean_Meta_throwTacticEx___rarg(x_100, x_1, x_101, x_6, x_7, x_8, x_9, x_10); +x_102 = l_Lean_Meta_injections_go___closed__2; +x_103 = l_Lean_Meta_injections_go___closed__6; +x_104 = l_Lean_Meta_throwTacticEx___rarg(x_102, x_1, x_103, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_7); -return x_102; +return x_104; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c b/stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c index 584cfab832..300253824e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c +++ b/stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c @@ -39,6 +39,7 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Li LEAN_EXPORT lean_object* l_Lean_Meta_LibrarySearch_librarySearch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double lean_float_div(double, double); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_addImport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_LibrarySearch_mkLibrarySearchLemma___lambda__1___closed__2; static lean_object* l_Lean_Meta_LibrarySearch_tryOnEach___closed__1; static lean_object* l_Lean_Meta_LibrarySearch_mkLibrarySearchLemma___lambda__1___closed__1; @@ -3585,93 +3586,97 @@ if (x_27 == 0) lean_object* x_28; lean_object* x_29; uint8_t x_30; x_28 = lean_ctor_get(x_26, 0); x_29 = lean_ctor_get(x_26, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); +x_30 = l_Lean_Exception_isInterrupt(x_28); if (x_30 == 0) { -lean_object* x_31; +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_free_object(x_26); lean_dec(x_28); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_31 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_29); -if (lean_obj_tag(x_31) == 0) +x_32 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_29); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_24); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_24); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; -x_36 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_35, x_8, x_9, x_10, x_11, x_34); +x_36 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; +x_37 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_36, x_8, x_9, x_10, x_11, x_35); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -return x_36; +return x_37; } else { -uint8_t x_37; +uint8_t x_38; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_37 = !lean_is_exclusive(x_31); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_32); +if (x_38 == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_31, 0); -lean_dec(x_38); -lean_ctor_set(x_31, 0, x_24); -return x_31; +lean_object* x_39; +x_39 = lean_ctor_get(x_32, 0); +lean_dec(x_39); +lean_ctor_set(x_32, 0, x_24); +return x_32; } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_dec(x_31); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_24); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +lean_dec(x_32); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_24); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_41; +uint8_t x_42; lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_41 = !lean_is_exclusive(x_31); -if (x_41 == 0) +x_42 = !lean_is_exclusive(x_32); +if (x_42 == 0) { -return x_31; +return x_32; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_31, 0); -x_43 = lean_ctor_get(x_31, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_32, 0); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_31); -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; +lean_dec(x_32); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -3689,104 +3694,6 @@ return x_26; } else { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_26, 0); -x_46 = lean_ctor_get(x_26, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_26); -x_47 = l_Lean_Exception_isRuntime(x_45); -if (x_47 == 0) -{ -lean_object* x_48; -lean_dec(x_45); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_48 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_46); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_unbox(x_49); -lean_dec(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_24); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_dec(x_48); -x_52 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; -x_53 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_52, x_8, x_9, x_10, x_11, x_51); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_54 = lean_ctor_get(x_48, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_55 = x_48; -} else { - lean_dec_ref(x_48); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_24); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_24); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_57 = lean_ctor_get(x_48, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_48, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_59 = x_48; -} else { - lean_dec_ref(x_48); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); -} else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -else -{ -lean_object* x_61; lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); @@ -3794,17 +3701,147 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_45); -lean_ctor_set(x_61, 1, x_46); -return x_61; +return x_26; +} +} +else +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_26, 0); +x_47 = lean_ctor_get(x_26, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_26); +x_48 = l_Lean_Exception_isInterrupt(x_46); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = l_Lean_Exception_isRuntime(x_46); +if (x_49 == 0) +{ +lean_object* x_50; +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_50 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_47); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_24); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; +x_55 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_54, x_8, x_9, x_10, x_11, x_53); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +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(0, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_24); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_59 = lean_ctor_get(x_50, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_50, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_61 = x_50; +} else { + lean_dec_ref(x_50); + 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); +return x_62; +} +} +else +{ +lean_object* x_63; +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_46); +lean_ctor_set(x_63, 1, x_47); +return x_63; +} +} +else +{ +lean_object* x_64; +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_46); +lean_ctor_set(x_64, 1, x_47); +return x_64; } } } } else { -uint8_t x_62; +uint8_t x_65; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3812,29 +3849,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_62 = !lean_is_exclusive(x_23); -if (x_62 == 0) +x_65 = !lean_is_exclusive(x_23); +if (x_65 == 0) { return x_23; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_23, 0); -x_64 = lean_ctor_get(x_23, 1); -lean_inc(x_64); -lean_inc(x_63); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_23, 0); +x_67 = lean_ctor_get(x_23, 1); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_23); -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; +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 { -uint8_t x_66; +uint8_t x_69; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3843,67 +3880,53 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_66 = !lean_is_exclusive(x_20); -if (x_66 == 0) +x_69 = !lean_is_exclusive(x_20); +if (x_69 == 0) { return x_20; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_20, 0); -x_68 = lean_ctor_get(x_20, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_20, 0); +x_71 = lean_ctor_get(x_20, 1); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_20); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +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_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_70 = lean_ctor_get(x_14, 1); -x_71 = lean_ctor_get(x_14, 2); -x_72 = lean_ctor_get(x_14, 3); -x_73 = lean_ctor_get(x_14, 4); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_14); -x_74 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_74, 0, x_1); -lean_ctor_set(x_74, 1, x_70); -lean_ctor_set(x_74, 2, x_71); -lean_ctor_set(x_74, 3, x_72); -lean_ctor_set(x_74, 4, x_73); -x_75 = lean_st_ref_set(x_9, x_74, x_15); -x_76 = lean_ctor_get(x_75, 1); +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; +x_73 = lean_ctor_get(x_14, 1); +x_74 = lean_ctor_get(x_14, 2); +x_75 = lean_ctor_get(x_14, 3); +x_76 = lean_ctor_get(x_14, 4); lean_inc(x_76); -lean_dec(x_75); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_77 = l_Lean_Meta_LibrarySearch_mkLibrarySearchLemma(x_2, x_3, x_8, x_9, x_10, x_11, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_14); +x_77 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_73); +lean_ctor_set(x_77, 2, x_74); +lean_ctor_set(x_77, 3, x_75); +lean_ctor_set(x_77, 4, x_76); +x_78 = lean_st_ref_set(x_9, x_77, x_15); +x_79 = lean_ctor_get(x_78, 1); lean_inc(x_79); -lean_dec(x_77); +lean_dec(x_78); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_4); -x_80 = l_Lean_MVarId_apply(x_4, x_78, x_5, x_8, x_9, x_10, x_11, x_79); +x_80 = l_Lean_Meta_LibrarySearch_mkLibrarySearchLemma(x_2, x_3, x_8, x_9, x_10, x_11, x_79); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; lean_object* x_83; @@ -3916,148 +3939,186 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_81); -x_83 = lean_apply_6(x_6, x_81, x_8, x_9, x_10, x_11, x_82); +lean_inc(x_4); +x_83 = l_Lean_MVarId_apply(x_4, x_81, x_5, x_8, x_9, x_10, x_11, x_82); if (lean_obj_tag(x_83) == 0) { -lean_dec(x_81); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_84); +x_86 = lean_apply_6(x_6, x_84, x_8, x_9, x_10, x_11, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_dec(x_84); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -return x_83; +return x_86; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -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; +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_89 = x_86; } else { - lean_dec_ref(x_83); - x_86 = lean_box(0); + lean_dec_ref(x_86); + x_89 = lean_box(0); } -x_87 = l_Lean_Exception_isRuntime(x_84); -if (x_87 == 0) +x_90 = l_Lean_Exception_isInterrupt(x_87); +if (x_90 == 0) { -lean_object* x_88; -lean_dec(x_86); -lean_dec(x_84); +uint8_t x_91; +x_91 = l_Lean_Exception_isRuntime(x_87); +if (x_91 == 0) +{ +lean_object* x_92; +lean_dec(x_89); +lean_dec(x_87); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_88 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_85); -if (lean_obj_tag(x_88) == 0) +x_92 = lean_apply_6(x_7, x_4, x_8, x_9, x_10, x_11, x_88); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_unbox(x_89); -lean_dec(x_89); -if (x_90 == 0) +lean_object* x_93; uint8_t x_94; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_unbox(x_93); +lean_dec(x_93); +if (x_94 == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_81); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -lean_dec(x_88); -x_92 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; -x_93 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_92, x_8, x_9, x_10, x_11, x_91); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_84); +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec(x_92); +x_96 = l_Lean_Meta_LibrarySearch_solveByElim___lambda__3___closed__2; +x_97 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(x_96, x_8, x_9, x_10, x_11, x_95); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -return x_93; +return x_97; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_94 = lean_ctor_get(x_88, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_95 = x_88; -} else { - lean_dec_ref(x_88); - x_95 = lean_box(0); -} -if (lean_is_scalar(x_95)) { - x_96 = lean_alloc_ctor(0, 2, 0); -} else { - x_96 = x_95; -} -lean_ctor_set(x_96, 0, x_81); -lean_ctor_set(x_96, 1, x_94); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_81); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_97 = lean_ctor_get(x_88, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_88, 1); +x_98 = lean_ctor_get(x_92, 1); lean_inc(x_98); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_99 = x_88; +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_99 = x_92; } else { - lean_dec_ref(x_88); + lean_dec_ref(x_92); x_99 = lean_box(0); } if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); + x_100 = lean_alloc_ctor(0, 2, 0); } else { x_100 = x_99; } -lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 0, x_84); lean_ctor_set(x_100, 1, x_98); return x_100; } } else { -lean_object* x_101; -lean_dec(x_81); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_84); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_101 = lean_ctor_get(x_92, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_92, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_103 = x_92; +} else { + lean_dec_ref(x_92); + 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); +return x_104; +} +} +else +{ +lean_object* x_105; +lean_dec(x_84); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_86)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_89)) { + x_105 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_86; + x_105 = x_89; } -lean_ctor_set(x_101, 0, x_84); -lean_ctor_set(x_101, 1, x_85); -return x_101; +lean_ctor_set(x_105, 0, x_87); +lean_ctor_set(x_105, 1, x_88); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_84); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +if (lean_is_scalar(x_89)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_89; +} +lean_ctor_set(x_106, 0, x_87); +lean_ctor_set(x_106, 1, x_88); +return x_106; } } } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4065,31 +4126,31 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_102 = lean_ctor_get(x_80, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_80, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_104 = x_80; +x_107 = lean_ctor_get(x_83, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_83, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_109 = x_83; } else { - lean_dec_ref(x_80); - x_104 = lean_box(0); + lean_dec_ref(x_83); + x_109 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); } else { - x_105 = x_104; + x_110 = x_109; } -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4098,26 +4159,26 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_106 = lean_ctor_get(x_77, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_77, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_108 = x_77; +x_111 = lean_ctor_get(x_80, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_80, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_113 = x_80; } else { - lean_dec_ref(x_77); - x_108 = lean_box(0); + lean_dec_ref(x_80); + x_113 = lean_box(0); } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_108; + x_114 = x_113; } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +return x_114; } } } @@ -4352,14 +4413,18 @@ if (x_67 == 0) lean_object* x_68; lean_object* x_69; uint8_t x_70; x_68 = lean_ctor_get(x_63, 0); x_69 = lean_ctor_get(x_63, 1); -x_70 = l_Lean_Exception_isRuntime(x_68); +x_70 = l_Lean_Exception_isInterrupt(x_68); if (x_70 == 0) { -lean_object* x_71; +uint8_t x_71; +x_71 = l_Lean_Exception_isRuntime(x_68); +if (x_71 == 0) +{ +lean_object* x_72; lean_free_object(x_63); -x_71 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_71, 0, x_68); -x_27 = x_71; +x_72 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_72, 0, x_68); +x_27 = x_72; x_28 = x_69; goto block_62; } @@ -4378,25 +4443,6 @@ return x_63; } else { -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_63, 0); -x_73 = lean_ctor_get(x_63, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_63); -x_74 = l_Lean_Exception_isRuntime(x_72); -if (x_74 == 0) -{ -lean_object* x_75; -x_75 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_75, 0, x_72); -x_27 = x_75; -x_28 = x_73; -goto block_62; -} -else -{ -lean_object* x_76; lean_dec(x_26); lean_dec(x_25); lean_dec(x_11); @@ -4405,10 +4451,63 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_72); -lean_ctor_set(x_76, 1, x_73); -return x_76; +return x_63; +} +} +else +{ +lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_73 = lean_ctor_get(x_63, 0); +x_74 = lean_ctor_get(x_63, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_63); +x_75 = l_Lean_Exception_isInterrupt(x_73); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = l_Lean_Exception_isRuntime(x_73); +if (x_76 == 0) +{ +lean_object* x_77; +x_77 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_77, 0, x_73); +x_27 = x_77; +x_28 = x_74; +goto block_62; +} +else +{ +lean_object* x_78; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_73); +lean_ctor_set(x_78, 1, x_74); +return x_78; +} +} +else +{ +lean_object* x_79; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_73); +lean_ctor_set(x_79, 1, x_74); +return x_79; } } } @@ -6609,22 +6708,26 @@ if (x_24 == 0) lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_17, 0); x_26 = lean_ctor_get(x_17, 1); -x_27 = l_Lean_Exception_isRuntime(x_25); +x_27 = l_Lean_Exception_isInterrupt(x_25); if (x_27 == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) +{ +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_free_object(x_17); lean_dec(x_25); -x_28 = l_Lean_Meta_SavedState_restore(x_13, x_5, x_6, x_7, x_8, x_26); +x_29 = l_Lean_Meta_SavedState_restore(x_13, x_5, x_6, x_7, x_8, x_26); lean_dec(x_13); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = 0; -x_31 = lean_box(x_30); -x_32 = lean_apply_1(x_2, x_31); -x_33 = l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_librarySearch_x27(x_1, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -return x_33; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_apply_1(x_2, x_32); +x_34 = l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_librarySearch_x27(x_1, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +return x_34; } else { @@ -6642,31 +6745,6 @@ return x_17; } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_17, 0); -x_35 = lean_ctor_get(x_17, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_17); -x_36 = l_Lean_Exception_isRuntime(x_34); -if (x_36 == 0) -{ -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_dec(x_34); -x_37 = l_Lean_Meta_SavedState_restore(x_13, x_5, x_6, x_7, x_8, x_35); -lean_dec(x_13); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = 0; -x_40 = lean_box(x_39); -x_41 = lean_apply_1(x_2, x_40); -x_42 = l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_librarySearch_x27(x_1, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_38); -return x_42; -} -else -{ -lean_object* x_43; lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); @@ -6676,10 +6754,71 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_34); -lean_ctor_set(x_43, 1, x_35); -return x_43; +return x_17; +} +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_17, 0); +x_36 = lean_ctor_get(x_17, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_17); +x_37 = l_Lean_Exception_isInterrupt(x_35); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Exception_isRuntime(x_35); +if (x_38 == 0) +{ +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_dec(x_35); +x_39 = l_Lean_Meta_SavedState_restore(x_13, x_5, x_6, x_7, x_8, x_36); +lean_dec(x_13); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = 0; +x_42 = lean_box(x_41); +x_43 = lean_apply_1(x_2, x_42); +x_44 = l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_librarySearch_x27(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +return x_44; +} +else +{ +lean_object* x_45; +lean_dec(x_13); +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_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_36); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_13); +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_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_35); +lean_ctor_set(x_46, 1, x_36); +return x_46; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Refl.c b/stage0/stdlib/Lean/Meta/Tactic/Refl.c index 3dd5f87a3f..3fee6e8600 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Refl.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Refl.c @@ -22,6 +22,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_refl___lambda__2___closed__1; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_refl___lambda__1___closed__2; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -980,18 +981,22 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = lean_ctor_get(x_8, 0); x_11 = lean_ctor_get(x_8, 1); -x_12 = l_Lean_Exception_isRuntime(x_10); +x_12 = l_Lean_Exception_isInterrupt(x_10); if (x_12 == 0) { -lean_object* x_13; +uint8_t x_13; +x_13 = l_Lean_Exception_isRuntime(x_10); +if (x_13 == 0) +{ +lean_object* x_14; lean_free_object(x_8); lean_dec(x_10); -x_13 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_5, x_6, x_11); +x_14 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_5, x_6, x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_13; +return x_14; } else { @@ -1005,36 +1010,64 @@ return x_8; } else { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -x_16 = l_Lean_Exception_isRuntime(x_14); -if (x_16 == 0) -{ -lean_object* x_17; -lean_dec(x_14); -x_17 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_5, x_6, x_15); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_17; -} -else -{ -lean_object* x_18; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_14); -lean_ctor_set(x_18, 1, x_15); -return x_18; +return x_8; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_8); +x_17 = l_Lean_Exception_isInterrupt(x_15); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = l_Lean_Exception_isRuntime(x_15); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_15); +x_19 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_2, x_3, x_4, x_5, x_6, x_16); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_19; +} +else +{ +lean_object* x_20; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_16); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_16); +return x_21; } } } @@ -1098,39 +1131,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -1145,55 +1182,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Replace.c b/stage0/stdlib/Lean/Meta/Tactic/Replace.c index 3f7ee5948f..c3e84fce41 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Replace.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Replace.c @@ -28,6 +28,7 @@ static lean_object* l_Lean_MVarId_replaceTargetEq___closed__1; lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_replaceLocalDeclDefEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(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; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); @@ -1607,37 +1608,41 @@ if (x_54 == 0) lean_object* x_55; lean_object* x_56; uint8_t x_57; x_55 = lean_ctor_get(x_39, 0); x_56 = lean_ctor_get(x_39, 1); -x_57 = l_Lean_Exception_isRuntime(x_55); +x_57 = l_Lean_Exception_isInterrupt(x_55); if (x_57 == 0) { -lean_object* x_58; uint8_t x_59; +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_55); +if (x_58 == 0) +{ +lean_object* x_59; uint8_t x_60; lean_free_object(x_39); lean_dec(x_55); -x_58 = l_Lean_Meta_SavedState_restore(x_37, x_5, x_6, x_7, x_8, x_56); +x_59 = l_Lean_Meta_SavedState_restore(x_37, x_5, x_6, x_7, x_8, x_56); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_37); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_60; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -lean_ctor_set(x_58, 0, x_31); -return x_58; +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_dec(x_61); +lean_ctor_set(x_59, 0, x_31); +return x_59; } else { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_31); -lean_ctor_set(x_62, 1, x_61); -return x_62; +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(0, 2, 0); +lean_ctor_set(x_63, 0, x_31); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } else @@ -1653,90 +1658,120 @@ return x_39; } else { -lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_63 = lean_ctor_get(x_39, 0); -x_64 = lean_ctor_get(x_39, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_39); -x_65 = l_Lean_Exception_isRuntime(x_63); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_63); -x_66 = l_Lean_Meta_SavedState_restore(x_37, x_5, x_6, x_7, x_8, x_64); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_37); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_31); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -else -{ -lean_object* x_70; lean_dec(x_37); lean_dec(x_31); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_63); -lean_ctor_set(x_70, 1, x_64); -return x_70; +return x_39; +} +} +else +{ +lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_64 = lean_ctor_get(x_39, 0); +x_65 = lean_ctor_get(x_39, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_39); +x_66 = l_Lean_Exception_isInterrupt(x_64); +if (x_66 == 0) +{ +uint8_t x_67; +x_67 = l_Lean_Exception_isRuntime(x_64); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_64); +x_68 = l_Lean_Meta_SavedState_restore(x_37, x_5, x_6, x_7, x_8, x_65); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_37); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_31); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +else +{ +lean_object* x_72; +lean_dec(x_37); +lean_dec(x_31); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_64); +lean_ctor_set(x_72, 1, x_65); +return x_72; +} +} +else +{ +lean_object* x_73; +lean_dec(x_37); +lean_dec(x_31); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_64); +lean_ctor_set(x_73, 1, x_65); +return x_73; } } } } else { -uint8_t x_71; +uint8_t x_74; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_30); -if (x_71 == 0) +x_74 = !lean_is_exclusive(x_30); +if (x_74 == 0) { return x_30; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_30, 0); -x_73 = lean_ctor_get(x_30, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_30, 0); +x_76 = lean_ctor_get(x_30, 1); +lean_inc(x_76); +lean_inc(x_75); lean_dec(x_30); -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; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } else { -uint8_t x_75; +uint8_t x_78; lean_dec(x_21); lean_dec(x_15); lean_dec(x_11); @@ -1747,29 +1782,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_75 = !lean_is_exclusive(x_23); -if (x_75 == 0) +x_78 = !lean_is_exclusive(x_23); +if (x_78 == 0) { return x_23; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_23, 0); -x_77 = lean_ctor_get(x_23, 1); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_23, 0); +x_80 = lean_ctor_get(x_23, 1); +lean_inc(x_80); +lean_inc(x_79); lean_dec(x_23); -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; +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_79; +uint8_t x_82; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -1778,29 +1813,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_14); -if (x_79 == 0) +x_82 = !lean_is_exclusive(x_14); +if (x_82 == 0) { return x_14; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_14, 0); -x_81 = lean_ctor_get(x_14, 1); -lean_inc(x_81); -lean_inc(x_80); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +lean_inc(x_84); +lean_inc(x_83); lean_dec(x_14); -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; +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; } } } else { -uint8_t x_83; +uint8_t x_86; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1809,23 +1844,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_83 = !lean_is_exclusive(x_10); -if (x_83 == 0) +x_86 = !lean_is_exclusive(x_10); +if (x_86 == 0) { return x_10; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_10, 0); -x_85 = lean_ctor_get(x_10, 1); -lean_inc(x_85); -lean_inc(x_84); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_10, 0); +x_88 = lean_ctor_get(x_10, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_10); -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; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rewrites.c b/stage0/stdlib/Lean/Meta/Tactic/Rewrites.c index f771294b67..df72946133 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rewrites.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rewrites.c @@ -43,6 +43,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_foldlM___at_Lean_Meta_Rewrites_getSubexpres LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Rewrites_rewriteCandidates___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___private_Lean_Meta_Tactic_Rewrites_0__Lean_Meta_Rewrites_ext; static lean_object* l_Lean_Meta_Rewrites_solveByElim___closed__4; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Rewrites_0__Lean_Meta_Rewrites_addImport___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Rewrites_solveByElim___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Rewrites_initFn____x40_Lean_Meta_Tactic_Rewrites___hyg_6____closed__7; @@ -3912,15 +3913,19 @@ if (x_12 == 0) { lean_object* x_13; uint8_t x_14; x_13 = lean_ctor_get(x_11, 0); -x_14 = l_Lean_Exception_isRuntime(x_13); +x_14 = l_Lean_Exception_isInterrupt(x_13); if (x_14 == 0) { -uint8_t x_15; lean_object* x_16; +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_13); +if (x_15 == 0) +{ +uint8_t x_16; lean_object* x_17; lean_dec(x_13); -x_15 = 0; -x_16 = lean_box(x_15); +x_16 = 0; +x_17 = lean_box(x_16); lean_ctor_set_tag(x_11, 0); -lean_ctor_set(x_11, 0, x_16); +lean_ctor_set(x_11, 0, x_17); return x_11; } else @@ -3930,31 +3935,49 @@ return x_11; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); +return x_11; +} +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); lean_dec(x_11); -x_19 = l_Lean_Exception_isRuntime(x_17); -if (x_19 == 0) +x_20 = l_Lean_Exception_isInterrupt(x_18); +if (x_20 == 0) { -uint8_t x_20; lean_object* x_21; lean_object* x_22; -lean_dec(x_17); -x_20 = 0; -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_18); -return x_22; +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_18); +x_22 = 0; +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_19); +return x_24; } else { -lean_object* x_23; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_17); -lean_ctor_set(x_23, 1, x_18); -return x_23; +lean_object* x_25; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_19); +return x_25; +} +} +else +{ +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_19); +return x_26; } } } @@ -5007,114 +5030,150 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Meta_Rewrites_rwLemma___lambda__2(lean_object* x_1, uint8_t 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_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_object* x_13; lean_object* x_14; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_dec(x_7); -x_147 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_12); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = l_Lean_Meta_Rewrites_rwLemma___lambda__2___closed__1; +x_157 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_12); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = l_Lean_Meta_Rewrites_rwLemma___lambda__2___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_3); -x_151 = l_Lean_MVarId_rewrite(x_5, x_6, x_3, x_4, x_150, x_8, x_9, x_10, x_11, x_149); -if (lean_obj_tag(x_151) == 0) +x_161 = l_Lean_MVarId_rewrite(x_5, x_6, x_3, x_4, x_160, x_8, x_9, x_10, x_11, x_159); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_148); -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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_154, 0, x_152); -x_13 = x_154; -x_14 = x_153; -goto block_146; -} -else -{ -uint8_t x_155; -x_155 = !lean_is_exclusive(x_151); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; uint8_t x_158; -x_156 = lean_ctor_get(x_151, 0); -x_157 = lean_ctor_get(x_151, 1); -x_158 = l_Lean_Exception_isRuntime(x_156); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; -lean_free_object(x_151); -lean_dec(x_156); -x_159 = l_Lean_Meta_SavedState_restore(x_148, x_8, x_9, x_10, x_11, x_157); -lean_dec(x_148); -x_160 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -lean_dec(x_159); -x_161 = lean_box(0); -x_13 = x_161; -x_14 = x_160; -goto block_146; -} -else -{ -lean_dec(x_148); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); -return x_151; -} -} -else -{ -lean_object* x_162; lean_object* x_163; uint8_t x_164; -x_162 = lean_ctor_get(x_151, 0); -x_163 = lean_ctor_get(x_151, 1); -lean_inc(x_163); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_158); +x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); -lean_dec(x_151); -x_164 = l_Lean_Exception_isRuntime(x_162); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_162); -x_165 = l_Lean_Meta_SavedState_restore(x_148, x_8, x_9, x_10, x_11, x_163); -lean_dec(x_148); -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec(x_165); -x_167 = lean_box(0); -x_13 = x_167; -x_14 = x_166; -goto block_146; +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_164, 0, x_162); +x_13 = x_164; +x_14 = x_163; +goto block_156; } else { -lean_object* x_168; -lean_dec(x_148); +uint8_t x_165; +x_165 = !lean_is_exclusive(x_161); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_166 = lean_ctor_get(x_161, 0); +x_167 = lean_ctor_get(x_161, 1); +x_168 = l_Lean_Exception_isInterrupt(x_166); +if (x_168 == 0) +{ +uint8_t x_169; +x_169 = l_Lean_Exception_isRuntime(x_166); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_free_object(x_161); +lean_dec(x_166); +x_170 = l_Lean_Meta_SavedState_restore(x_158, x_8, x_9, x_10, x_11, x_167); +lean_dec(x_158); +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +lean_dec(x_170); +x_172 = lean_box(0); +x_13 = x_172; +x_14 = x_171; +goto block_156; +} +else +{ +lean_dec(x_158); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_162); -lean_ctor_set(x_168, 1, x_163); -return x_168; +return x_161; +} +} +else +{ +lean_dec(x_158); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +return x_161; +} +} +else +{ +lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_173 = lean_ctor_get(x_161, 0); +x_174 = lean_ctor_get(x_161, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_161); +x_175 = l_Lean_Exception_isInterrupt(x_173); +if (x_175 == 0) +{ +uint8_t x_176; +x_176 = l_Lean_Exception_isRuntime(x_173); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_173); +x_177 = l_Lean_Meta_SavedState_restore(x_158, x_8, x_9, x_10, x_11, x_174); +lean_dec(x_158); +x_178 = lean_ctor_get(x_177, 1); +lean_inc(x_178); +lean_dec(x_177); +x_179 = lean_box(0); +x_13 = x_179; +x_14 = x_178; +goto block_156; +} +else +{ +lean_object* x_180; +lean_dec(x_158); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_173); +lean_ctor_set(x_180, 1, x_174); +return x_180; +} +} +else +{ +lean_object* x_181; +lean_dec(x_158); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_173); +lean_ctor_set(x_181, 1, x_174); +return x_181; } } } -block_146: +block_156: { if (lean_obj_tag(x_13) == 0) { @@ -5190,20 +5249,24 @@ if (x_31 == 0) lean_object* x_32; lean_object* x_33; uint8_t x_34; x_32 = lean_ctor_get(x_27, 0); x_33 = lean_ctor_get(x_27, 1); -x_34 = l_Lean_Exception_isRuntime(x_32); +x_34 = l_Lean_Exception_isInterrupt(x_32); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; +uint8_t x_35; +x_35 = l_Lean_Exception_isRuntime(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_free_object(x_27); lean_dec(x_32); -x_35 = l_Lean_Meta_SavedState_restore(x_25, x_8, x_9, x_10, x_11, x_33); +x_36 = l_Lean_Meta_SavedState_restore(x_25, x_8, x_9, x_10, x_11, x_33); lean_dec(x_25); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = 0; -x_38 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_37, x_8, x_9, x_10, x_11, x_36); -return x_38; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = 0; +x_39 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_38, x_8, x_9, x_10, x_11, x_37); +return x_39; } else { @@ -5219,29 +5282,6 @@ return x_27; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_27, 0); -x_40 = lean_ctor_get(x_27, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_27); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; -lean_dec(x_39); -x_42 = l_Lean_Meta_SavedState_restore(x_25, x_8, x_9, x_10, x_11, x_40); -lean_dec(x_25); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = 0; -x_45 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_44, x_8, x_9, x_10, x_11, x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_dec(x_25); lean_dec(x_18); lean_dec(x_11); @@ -5249,381 +5289,520 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_39); -lean_ctor_set(x_46, 1, x_40); -return x_46; +return x_27; +} +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_27); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) +{ +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +lean_dec(x_40); +x_44 = l_Lean_Meta_SavedState_restore(x_25, x_8, x_9, x_10, x_11, x_41); +lean_dec(x_25); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = 0; +x_47 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_46, x_8, x_9, x_10, x_11, x_45); +return x_47; +} +else +{ +lean_object* x_48; +lean_dec(x_25); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_41); +return x_48; +} +} +else +{ +lean_object* x_49; +lean_dec(x_25); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_40); +lean_ctor_set(x_49, 1, x_41); +return x_49; } } } } default: { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_47 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_unsigned_to_nat(6u); +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_50 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); +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_unsigned_to_nat(6u); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_51 = l_Lean_Meta_Rewrites_solveByElim(x_19, x_50, x_8, x_9, x_10, x_11, x_49); -if (lean_obj_tag(x_51) == 0) +x_54 = l_Lean_Meta_Rewrites_solveByElim(x_19, x_53, x_8, x_9, x_10, x_11, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_52; uint8_t x_53; lean_object* x_54; -lean_dec(x_48); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_dec(x_51); -x_53 = 1; -x_54 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_53, x_8, x_9, x_10, x_11, x_52); -return x_54; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = 1; +x_57 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_56, x_8, x_9, x_10, x_11, x_55); +return x_57; } else { -uint8_t x_55; -x_55 = !lean_is_exclusive(x_51); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_51, 0); -x_57 = lean_ctor_get(x_51, 1); -x_58 = l_Lean_Exception_isRuntime(x_56); +uint8_t x_58; +x_58 = !lean_is_exclusive(x_54); if (x_58 == 0) { -lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; -lean_free_object(x_51); -lean_dec(x_56); -x_59 = l_Lean_Meta_SavedState_restore(x_48, x_8, x_9, x_10, x_11, x_57); -lean_dec(x_48); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_54, 0); +x_60 = lean_ctor_get(x_54, 1); +x_61 = l_Lean_Exception_isInterrupt(x_59); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = l_Lean_Exception_isRuntime(x_59); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; +lean_free_object(x_54); lean_dec(x_59); -x_61 = 0; -x_62 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_61, x_8, x_9, x_10, x_11, x_60); -return x_62; -} -else -{ -lean_dec(x_48); -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -return x_51; -} -} -else -{ -lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_63 = lean_ctor_get(x_51, 0); -x_64 = lean_ctor_get(x_51, 1); -lean_inc(x_64); -lean_inc(x_63); +x_63 = l_Lean_Meta_SavedState_restore(x_51, x_8, x_9, x_10, x_11, x_60); lean_dec(x_51); -x_65 = l_Lean_Exception_isRuntime(x_63); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); lean_dec(x_63); -x_66 = l_Lean_Meta_SavedState_restore(x_48, x_8, x_9, x_10, x_11, x_64); -lean_dec(x_48); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = 0; -x_69 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_68, x_8, x_9, x_10, x_11, x_67); -return x_69; +x_65 = 0; +x_66 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_65, x_8, x_9, x_10, x_11, x_64); +return x_66; } else { -lean_object* x_70; -lean_dec(x_48); +lean_dec(x_51); lean_dec(x_18); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_63); -lean_ctor_set(x_70, 1, x_64); -return x_70; -} -} -} -} +return x_54; } } else { -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_dec(x_19); -x_71 = lean_st_ref_get(x_9, x_14); -x_72 = lean_ctor_get(x_71, 0); +lean_dec(x_51); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +return x_54; +} +} +else +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_ctor_get(x_54, 0); +x_68 = lean_ctor_get(x_54, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_54); +x_69 = l_Lean_Exception_isInterrupt(x_67); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = l_Lean_Exception_isRuntime(x_67); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; +lean_dec(x_67); +x_71 = l_Lean_Meta_SavedState_restore(x_51, x_8, x_9, x_10, x_11, x_68); +lean_dec(x_51); +x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); lean_dec(x_71); -x_74 = lean_ctor_get(x_72, 0); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_ctor_get(x_18, 0); -lean_inc(x_75); -lean_inc(x_74); -x_76 = l_Lean_Meta_Rewrites_dischargableWithRfl_x3f(x_74, x_75, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_76) == 0) +x_73 = 0; +x_74 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_18, x_1, x_73, x_8, x_9, x_10, x_11, x_72); +return x_74; +} +else { -uint8_t x_77; -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) +lean_object* x_75; +lean_dec(x_51); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_67); +lean_ctor_set(x_75, 1, x_68); +return x_75; +} +} +else { -lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_78 = lean_ctor_get(x_76, 0); -x_79 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_79, 0, x_3); -lean_ctor_set(x_79, 1, x_1); -lean_ctor_set(x_79, 2, x_18); -lean_ctor_set(x_79, 3, x_74); -lean_ctor_set_uint8(x_79, sizeof(void*)*4, x_4); -x_80 = lean_unbox(x_78); -lean_dec(x_78); -lean_ctor_set_uint8(x_79, sizeof(void*)*4 + 1, x_80); -lean_ctor_set(x_13, 0, x_79); -lean_ctor_set(x_76, 0, x_13); +lean_object* x_76; +lean_dec(x_51); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_68); return x_76; } +} +} +} +} +} else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; -x_81 = lean_ctor_get(x_76, 0); -x_82 = lean_ctor_get(x_76, 1); -lean_inc(x_82); +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_dec(x_19); +x_77 = lean_st_ref_get(x_9, x_14); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_ctor_get(x_18, 0); lean_inc(x_81); -lean_dec(x_76); -x_83 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_83, 0, x_3); -lean_ctor_set(x_83, 1, x_1); -lean_ctor_set(x_83, 2, x_18); -lean_ctor_set(x_83, 3, x_74); -lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_4); -x_84 = lean_unbox(x_81); -lean_dec(x_81); -lean_ctor_set_uint8(x_83, sizeof(void*)*4 + 1, x_84); -lean_ctor_set(x_13, 0, x_83); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_13); -lean_ctor_set(x_85, 1, x_82); -return x_85; +lean_inc(x_80); +x_82 = l_Lean_Meta_Rewrites_dischargableWithRfl_x3f(x_80, x_81, x_8, x_9, x_10, x_11, x_79); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_85, 0, x_3); +lean_ctor_set(x_85, 1, x_1); +lean_ctor_set(x_85, 2, x_18); +lean_ctor_set(x_85, 3, x_80); +lean_ctor_set_uint8(x_85, sizeof(void*)*4, x_4); +x_86 = lean_unbox(x_84); +lean_dec(x_84); +lean_ctor_set_uint8(x_85, sizeof(void*)*4 + 1, x_86); +lean_ctor_set(x_13, 0, x_85); +lean_ctor_set(x_82, 0, x_13); +return x_82; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; +x_87 = lean_ctor_get(x_82, 0); +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_82); +x_89 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_89, 0, x_3); +lean_ctor_set(x_89, 1, x_1); +lean_ctor_set(x_89, 2, x_18); +lean_ctor_set(x_89, 3, x_80); +lean_ctor_set_uint8(x_89, sizeof(void*)*4, x_4); +x_90 = lean_unbox(x_87); +lean_dec(x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*4 + 1, x_90); +lean_ctor_set(x_13, 0, x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_13); +lean_ctor_set(x_91, 1, x_88); +return x_91; } } else { -uint8_t x_86; -lean_dec(x_74); +uint8_t x_92; +lean_dec(x_80); lean_free_object(x_13); lean_dec(x_18); lean_dec(x_3); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_76); -if (x_86 == 0) -{ -return x_76; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_76, 0); -x_88 = lean_ctor_get(x_76, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_76); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; -} -} -} -} -else -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_13, 0); -lean_inc(x_90); -lean_dec(x_13); -x_91 = lean_ctor_get(x_90, 2); -lean_inc(x_91); -x_92 = l_List_isEmpty___rarg(x_91); +x_92 = !lean_is_exclusive(x_82); if (x_92 == 0) { +return x_82; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_82, 0); +x_94 = lean_ctor_get(x_82, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_82); +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; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_13, 0); +lean_inc(x_96); +lean_dec(x_13); +x_97 = lean_ctor_get(x_96, 2); +lean_inc(x_97); +x_98 = l_List_isEmpty___rarg(x_97); +if (x_98 == 0) +{ lean_dec(x_3); switch (x_2) { case 0: { -uint8_t x_93; lean_object* x_94; -lean_dec(x_91); -x_93 = 0; -x_94 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_90, x_1, x_93, x_8, x_9, x_10, x_11, x_14); -return x_94; +uint8_t x_99; lean_object* x_100; +lean_dec(x_97); +x_99 = 0; +x_100 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_96, x_1, x_99, x_8, x_9, x_10, x_11, x_14); +return x_100; } case 1: { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_box(0); -x_96 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_101 = lean_box(0); +x_102 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_99 = l_List_mapM_loop___at_Lean_Meta_Rewrites_rwLemma___spec__1(x_91, x_95, x_8, x_9, x_10, x_11, x_98); -if (lean_obj_tag(x_99) == 0) +x_105 = l_List_mapM_loop___at_Lean_Meta_Rewrites_rwLemma___spec__1(x_97, x_101, x_8, x_9, x_10, x_11, x_104); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_100; uint8_t x_101; lean_object* x_102; -lean_dec(x_97); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = 1; -x_102 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_90, x_1, x_101, x_8, x_9, x_10, x_11, x_100); -return x_102; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_103 = lean_ctor_get(x_99, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_99, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_105 = x_99; -} else { - lean_dec_ref(x_99); - x_105 = lean_box(0); -} -x_106 = l_Lean_Exception_isRuntime(x_103); -if (x_106 == 0) -{ -lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; -lean_dec(x_105); +lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_dec(x_103); -x_107 = l_Lean_Meta_SavedState_restore(x_97, x_8, x_9, x_10, x_11, x_104); -lean_dec(x_97); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = 0; -x_110 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_90, x_1, x_109, x_8, x_9, x_10, x_11, x_108); -return x_110; +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +x_107 = 1; +x_108 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_96, x_1, x_107, x_8, x_9, x_10, x_11, x_106); +return x_108; } else { -lean_object* x_111; -lean_dec(x_97); -lean_dec(x_90); +lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_109 = lean_ctor_get(x_105, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_105, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_111 = x_105; +} else { + lean_dec_ref(x_105); + x_111 = lean_box(0); +} +x_112 = l_Lean_Exception_isInterrupt(x_109); +if (x_112 == 0) +{ +uint8_t x_113; +x_113 = l_Lean_Exception_isRuntime(x_109); +if (x_113 == 0) +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; +lean_dec(x_111); +lean_dec(x_109); +x_114 = l_Lean_Meta_SavedState_restore(x_103, x_8, x_9, x_10, x_11, x_110); +lean_dec(x_103); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +lean_dec(x_114); +x_116 = 0; +x_117 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_96, x_1, x_116, x_8, x_9, x_10, x_11, x_115); +return x_117; +} +else +{ +lean_object* x_118; +lean_dec(x_103); +lean_dec(x_96); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -if (lean_is_scalar(x_105)) { - x_111 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_111)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - x_111 = x_105; + x_118 = x_111; } -lean_ctor_set(x_111, 0, x_103); -lean_ctor_set(x_111, 1, x_104); -return x_111; +lean_ctor_set(x_118, 0, x_109); +lean_ctor_set(x_118, 1, x_110); +return x_118; +} +} +else +{ +lean_object* x_119; +lean_dec(x_103); +lean_dec(x_96); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +if (lean_is_scalar(x_111)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_111; +} +lean_ctor_set(x_119, 0, x_109); +lean_ctor_set(x_119, 1, x_110); +return x_119; } } } default: { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_112 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = lean_unsigned_to_nat(6u); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_120 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_14); +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_123 = lean_unsigned_to_nat(6u); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_116 = l_Lean_Meta_Rewrites_solveByElim(x_91, x_115, x_8, x_9, x_10, x_11, x_114); -if (lean_obj_tag(x_116) == 0) +x_124 = l_Lean_Meta_Rewrites_solveByElim(x_97, x_123, x_8, x_9, x_10, x_11, x_122); +if (lean_obj_tag(x_124) == 0) { -lean_object* x_117; uint8_t x_118; lean_object* x_119; -lean_dec(x_113); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = 1; -x_119 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_90, x_1, x_118, x_8, x_9, x_10, x_11, x_117); -return x_119; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; -x_120 = lean_ctor_get(x_116, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_116, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_122 = x_116; -} else { - lean_dec_ref(x_116); - x_122 = lean_box(0); -} -x_123 = l_Lean_Exception_isRuntime(x_120); -if (x_123 == 0) -{ -lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; -lean_dec(x_122); -lean_dec(x_120); -x_124 = l_Lean_Meta_SavedState_restore(x_113, x_8, x_9, x_10, x_11, x_121); -lean_dec(x_113); +lean_object* x_125; uint8_t x_126; lean_object* x_127; +lean_dec(x_121); x_125 = lean_ctor_get(x_124, 1); lean_inc(x_125); lean_dec(x_124); -x_126 = 0; -x_127 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_90, x_1, x_126, x_8, x_9, x_10, x_11, x_125); +x_126 = 1; +x_127 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_96, x_1, x_126, x_8, x_9, x_10, x_11, x_125); return x_127; } else { -lean_object* x_128; -lean_dec(x_113); -lean_dec(x_90); +lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_128 = lean_ctor_get(x_124, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_124, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_130 = x_124; +} else { + lean_dec_ref(x_124); + x_130 = lean_box(0); +} +x_131 = l_Lean_Exception_isInterrupt(x_128); +if (x_131 == 0) +{ +uint8_t x_132; +x_132 = l_Lean_Exception_isRuntime(x_128); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; +lean_dec(x_130); +lean_dec(x_128); +x_133 = l_Lean_Meta_SavedState_restore(x_121, x_8, x_9, x_10, x_11, x_129); +lean_dec(x_121); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = 0; +x_136 = l_Lean_Meta_Rewrites_rwLemma___lambda__1(x_96, x_1, x_135, x_8, x_9, x_10, x_11, x_134); +return x_136; +} +else +{ +lean_object* x_137; +lean_dec(x_121); +lean_dec(x_96); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); -if (lean_is_scalar(x_122)) { - x_128 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_130)) { + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_128 = x_122; + x_137 = x_130; } -lean_ctor_set(x_128, 0, x_120); -lean_ctor_set(x_128, 1, x_121); -return x_128; +lean_ctor_set(x_137, 0, x_128); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +else +{ +lean_object* x_138; +lean_dec(x_121); +lean_dec(x_96); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +if (lean_is_scalar(x_130)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_130; +} +lean_ctor_set(x_138, 0, x_128); +lean_ctor_set(x_138, 1, x_129); +return x_138; } } } @@ -5631,83 +5810,83 @@ return x_128; } else { -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_dec(x_91); -x_129 = lean_st_ref_get(x_9, x_14); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_ctor_get(x_130, 0); -lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_ctor_get(x_90, 0); -lean_inc(x_133); -lean_inc(x_132); -x_134 = l_Lean_Meta_Rewrites_dischargableWithRfl_x3f(x_132, x_133, x_8, x_9, x_10, x_11, x_131); -if (lean_obj_tag(x_134) == 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; +lean_dec(x_97); +x_139 = lean_st_ref_get(x_9, x_14); +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +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); +lean_dec(x_140); +x_143 = lean_ctor_get(x_96, 0); +lean_inc(x_143); +lean_inc(x_142); +x_144 = l_Lean_Meta_Rewrites_dischargableWithRfl_x3f(x_142, x_143, x_8, x_9, x_10, x_11, x_141); +if (lean_obj_tag(x_144) == 0) { -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; -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_137 = x_134; +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_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; } else { - lean_dec_ref(x_134); - x_137 = lean_box(0); + lean_dec_ref(x_144); + x_147 = lean_box(0); } -x_138 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_138, 0, x_3); -lean_ctor_set(x_138, 1, x_1); -lean_ctor_set(x_138, 2, x_90); -lean_ctor_set(x_138, 3, x_132); -lean_ctor_set_uint8(x_138, sizeof(void*)*4, x_4); -x_139 = lean_unbox(x_135); -lean_dec(x_135); -lean_ctor_set_uint8(x_138, sizeof(void*)*4 + 1, x_139); -x_140 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_140, 0, x_138); -if (lean_is_scalar(x_137)) { - x_141 = lean_alloc_ctor(0, 2, 0); +x_148 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_148, 0, x_3); +lean_ctor_set(x_148, 1, x_1); +lean_ctor_set(x_148, 2, x_96); +lean_ctor_set(x_148, 3, x_142); +lean_ctor_set_uint8(x_148, sizeof(void*)*4, x_4); +x_149 = lean_unbox(x_145); +lean_dec(x_145); +lean_ctor_set_uint8(x_148, sizeof(void*)*4 + 1, x_149); +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_148); +if (lean_is_scalar(x_147)) { + x_151 = lean_alloc_ctor(0, 2, 0); } else { - x_141 = x_137; + x_151 = x_147; } -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_136); -return x_141; +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_146); +return x_151; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_132); -lean_dec(x_90); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_142); +lean_dec(x_96); lean_dec(x_3); lean_dec(x_1); -x_142 = lean_ctor_get(x_134, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_134, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_144 = x_134; +x_152 = lean_ctor_get(x_144, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_144, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_154 = x_144; } else { - lean_dec_ref(x_134); - x_144 = lean_box(0); + lean_dec_ref(x_144); + x_154 = lean_box(0); } -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); } else { - x_145 = x_144; + x_155 = x_154; } -lean_ctor_set(x_145, 0, x_142); -lean_ctor_set(x_145, 1, x_143); -return x_145; +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } } @@ -5885,20 +6064,24 @@ if (x_72 == 0) lean_object* x_73; lean_object* x_74; uint8_t x_75; x_73 = lean_ctor_get(x_69, 0); x_74 = lean_ctor_get(x_69, 1); -x_75 = l_Lean_Exception_isRuntime(x_73); +x_75 = l_Lean_Exception_isInterrupt(x_73); if (x_75 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; +uint8_t x_76; +x_76 = l_Lean_Exception_isRuntime(x_73); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_free_object(x_69); lean_dec(x_73); -x_76 = l_Lean_Meta_SavedState_restore(x_67, x_7, x_8, x_9, x_10, x_74); +x_77 = l_Lean_Meta_SavedState_restore(x_67, x_7, x_8, x_9, x_10, x_74); lean_dec(x_67); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_box(0); -x_12 = x_78; -x_13 = x_77; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_box(0); +x_12 = x_79; +x_13 = x_78; goto block_60; } else @@ -5916,30 +6099,6 @@ return x_69; } else { -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_69, 0); -x_80 = lean_ctor_get(x_69, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_69); -x_81 = l_Lean_Exception_isRuntime(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_79); -x_82 = l_Lean_Meta_SavedState_restore(x_67, x_7, x_8, x_9, x_10, x_80); -lean_dec(x_67); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = lean_box(0); -x_12 = x_84; -x_13 = x_83; -goto block_60; -} -else -{ -lean_object* x_85; lean_dec(x_67); lean_dec(x_10); lean_dec(x_9); @@ -5948,81 +6107,143 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_79); -lean_ctor_set(x_85, 1, x_80); -return x_85; +return x_69; +} +} +else +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_80 = lean_ctor_get(x_69, 0); +x_81 = lean_ctor_get(x_69, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_69); +x_82 = l_Lean_Exception_isInterrupt(x_80); +if (x_82 == 0) +{ +uint8_t x_83; +x_83 = l_Lean_Exception_isRuntime(x_80); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_80); +x_84 = l_Lean_Meta_SavedState_restore(x_67, x_7, x_8, x_9, x_10, x_81); +lean_dec(x_67); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +x_86 = lean_box(0); +x_12 = x_86; +x_13 = x_85; +goto block_60; +} +else +{ +lean_object* x_87; +lean_dec(x_67); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_80); +lean_ctor_set(x_87, 1, x_81); +return x_87; +} +} +else +{ +lean_object* x_88; +lean_dec(x_67); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_80); +lean_ctor_set(x_88, 1, x_81); +return x_88; } } } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_86 = lean_ctor_get(x_6, 0); -lean_inc(x_86); -lean_dec(x_6); -x_87 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_11); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_89 = lean_ctor_get(x_6, 0); lean_inc(x_89); -lean_dec(x_87); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_90 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_86, x_7, x_8, x_9, x_10, x_89); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_88); +lean_dec(x_6); +x_90 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_11); 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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_91); -x_12 = x_93; -x_13 = x_92; -goto block_60; -} -else +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_93 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_89, x_7, x_8, x_9, x_10, x_92); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; -x_94 = lean_ctor_get(x_90, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_91); +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -x_95 = lean_ctor_get(x_90, 1); +x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_96 = x_90; -} else { - lean_dec_ref(x_90); - x_96 = lean_box(0); -} -x_97 = l_Lean_Exception_isRuntime(x_94); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_96); -lean_dec(x_94); -x_98 = l_Lean_Meta_SavedState_restore(x_88, x_7, x_8, x_9, x_10, x_95); -lean_dec(x_88); -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -lean_dec(x_98); -x_100 = lean_box(0); -x_12 = x_100; -x_13 = x_99; +lean_dec(x_93); +x_96 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_96, 0, x_94); +x_12 = x_96; +x_13 = x_95; goto block_60; } else { -lean_object* x_101; -lean_dec(x_88); +lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +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 = l_Lean_Exception_isInterrupt(x_97); +if (x_100 == 0) +{ +uint8_t x_101; +x_101 = l_Lean_Exception_isRuntime(x_97); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_99); +lean_dec(x_97); +x_102 = l_Lean_Meta_SavedState_restore(x_91, x_7, x_8, x_9, x_10, x_98); +lean_dec(x_91); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); +x_104 = lean_box(0); +x_12 = x_104; +x_13 = x_103; +goto block_60; +} +else +{ +lean_object* x_105; +lean_dec(x_91); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -6030,14 +6251,35 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -if (lean_is_scalar(x_96)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_99)) { + x_105 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_96; + x_105 = x_99; } -lean_ctor_set(x_101, 0, x_94); -lean_ctor_set(x_101, 1, x_95); -return x_101; +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_91); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_99)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_99; +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rfl.c b/stage0/stdlib/Lean/Meta/Tactic/Rfl.c index f0664441c9..72f8941987 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rfl.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rfl.c @@ -43,6 +43,7 @@ uint8_t lean_usize_dec_le(size_t, size_t); static lean_object* l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____closed__18; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____closed__1; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_19____spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__15; static lean_object* l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_19____closed__4; @@ -3973,7 +3974,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -3989,304 +3990,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -4359,136 +4360,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -4497,14 +4502,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -4531,7 +4557,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -4547,304 +4573,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -4917,136 +4943,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -5055,14 +5085,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -5089,7 +5140,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -5105,304 +5156,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -5475,136 +5526,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -5613,14 +5668,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -5647,7 +5723,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -5663,304 +5739,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -6033,136 +6109,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -6171,14 +6251,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -6205,7 +6306,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -6221,304 +6322,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -6591,136 +6692,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -6729,14 +6834,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -6763,7 +6889,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -6779,304 +6905,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -7149,136 +7275,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -7287,14 +7417,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -7321,7 +7472,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -7337,304 +7488,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -7707,136 +7858,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -7845,14 +8000,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -7879,7 +8055,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -7895,304 +8071,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -8265,136 +8441,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -8403,14 +8583,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -8437,7 +8638,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -8453,304 +8654,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -8823,136 +9024,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -8961,14 +9166,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -8995,7 +9221,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -9011,304 +9237,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -9381,136 +9607,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -9519,14 +9749,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -9553,7 +9804,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -9569,304 +9820,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -9939,136 +10190,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -10077,14 +10332,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -10111,7 +10387,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -10127,304 +10403,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -10497,136 +10773,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -10635,14 +10915,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -10669,7 +10970,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -10685,304 +10986,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -11055,136 +11356,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -11193,14 +11498,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -11227,7 +11553,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -11243,304 +11569,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -11613,136 +11939,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -11751,14 +12081,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -11785,7 +12136,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -11801,304 +12152,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -12171,136 +12522,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -12309,14 +12664,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -12343,7 +12719,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -12359,304 +12735,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -12729,136 +13105,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -12867,14 +13247,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -12901,7 +13302,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -12917,304 +13318,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -13287,136 +13688,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -13425,14 +13830,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -13459,7 +13885,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -13475,304 +13901,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -13845,136 +14271,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -13983,14 +14413,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -14017,7 +14468,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -14033,304 +14484,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -14403,136 +14854,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -14541,14 +14996,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -14575,7 +15051,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -14591,304 +15067,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -14961,136 +15437,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -15099,14 +15579,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -15133,7 +15634,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -15149,304 +15650,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -15519,136 +16020,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -15657,14 +16162,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -15691,7 +16217,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -15707,304 +16233,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -16077,136 +16603,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -16215,14 +16745,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -16249,7 +16800,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -16265,304 +16816,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -16635,136 +17186,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -16773,14 +17328,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -16807,7 +17383,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -16823,304 +17399,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -17193,136 +17769,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -17331,14 +17911,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -17365,7 +17966,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -17381,304 +17982,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -17751,136 +18352,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -17889,14 +18494,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -17923,7 +18549,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -17939,304 +18565,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -18309,136 +18935,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -18447,14 +19077,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -18481,7 +19132,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -18497,304 +19148,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -18867,136 +19518,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -19005,14 +19660,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -19039,7 +19715,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -19055,304 +19731,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -19425,136 +20101,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -19563,14 +20243,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } @@ -19597,7 +20298,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_70; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_72; x_15 = lean_array_uget(x_4, x_6); x_37 = lean_ctor_get(x_7, 1); lean_inc(x_37); @@ -19613,304 +20314,304 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_70) == 0) +x_72 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_74 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_72, 1); +x_76 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_75 = l_Lean_MVarId_apply(x_1, x_72, x_74, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_75) == 0) +x_77 = l_Lean_MVarId_apply(x_1, x_74, x_76, x_8, x_9, x_10, x_11, x_75); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; +uint8_t x_78; lean_dec(x_38); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); -x_79 = l_List_isEmpty___rarg(x_77); -if (x_79 == 0) +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); +x_81 = l_List_isEmpty___rarg(x_79); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; uint8_t x_87; -x_80 = l_Lean_Elab_goalsToMessageData(x_77); -x_81 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -lean_ctor_set_tag(x_75, 6); -lean_ctor_set(x_75, 1, x_80); -lean_ctor_set(x_75, 0, x_81); -x_82 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_82); -lean_ctor_set(x_70, 0, x_75); -x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = 2; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; +x_82 = l_Lean_Elab_goalsToMessageData(x_79); +x_83 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +lean_ctor_set_tag(x_77, 6); +lean_ctor_set(x_77, 1, x_82); +lean_ctor_set(x_77, 0, x_83); +x_84 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_84); +lean_ctor_set(x_72, 0, x_77); +x_85 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_72); +x_87 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_84, x_85, x_8, x_9, x_10, x_11, x_78); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) +x_88 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_86, x_87, x_8, x_9, x_10, x_11, x_80); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_88; -x_88 = lean_ctor_get(x_86, 1); -lean_ctor_set(x_86, 1, x_37); -x_16 = x_86; -x_17 = x_88; -goto block_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_86, 0); -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_86); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_37); -x_16 = x_91; +lean_object* x_90; +x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_88, 1, x_37); +x_16 = x_88; x_17 = x_90; goto block_36; } -} else { -lean_object* x_92; -lean_dec(x_77); -lean_free_object(x_70); -x_92 = lean_box(0); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 1, x_37); -lean_ctor_set(x_75, 0, x_92); -x_16 = x_75; -x_17 = x_78; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_88); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_37); +x_16 = x_93; +x_17 = x_92; goto block_36; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_75, 0); -x_94 = lean_ctor_get(x_75, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_75); -x_95 = l_List_isEmpty___rarg(x_93); -if (x_95 == 0) +lean_object* x_94; +lean_dec(x_79); +lean_free_object(x_72); +x_94 = lean_box(0); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 1, x_37); +lean_ctor_set(x_77, 0, x_94); +x_16 = x_77; +x_17 = x_80; +goto block_36; +} +} +else { -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; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = l_Lean_Elab_goalsToMessageData(x_93); -x_97 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -x_98 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -lean_ctor_set_tag(x_70, 6); -lean_ctor_set(x_70, 1, x_99); -lean_ctor_set(x_70, 0, x_98); -x_100 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_70); -x_102 = 2; +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_77, 0); +x_96 = lean_ctor_get(x_77, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_77); +x_97 = l_List_isEmpty___rarg(x_95); +if (x_97 == 0) +{ +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; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_98 = l_Lean_Elab_goalsToMessageData(x_95); +x_99 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +x_100 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_98); +x_101 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +lean_ctor_set_tag(x_72, 6); +lean_ctor_set(x_72, 1, x_101); +lean_ctor_set(x_72, 0, x_100); +x_102 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_72); +x_104 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_103 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_101, x_102, x_8, x_9, x_10, x_11, x_94); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_106 = x_103; +x_105 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_103, x_104, x_8, x_9, x_10, x_11, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_108 = x_105; } else { - lean_dec_ref(x_103); - x_106 = lean_box(0); + lean_dec_ref(x_105); + x_108 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_106; + x_109 = x_108; } -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_37); -x_16 = x_107; -x_17 = x_105; -goto block_36; -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_93); -lean_free_object(x_70); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 0, x_106); lean_ctor_set(x_109, 1, x_37); x_16 = x_109; -x_17 = x_94; +x_17 = x_107; goto block_36; } -} -} else { lean_object* x_110; lean_object* x_111; -lean_free_object(x_70); -x_110 = lean_ctor_get(x_75, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_75, 1); -lean_inc(x_111); -lean_dec(x_75); -x_39 = x_110; -x_40 = x_111; -goto block_69; +lean_dec(x_95); +lean_free_object(x_72); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_37); +x_16 = x_111; +x_17 = x_96; +goto block_36; +} } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_70, 0); -x_113 = lean_ctor_get(x_70, 1); -lean_inc(x_113); +lean_object* x_112; lean_object* x_113; +lean_free_object(x_72); +x_112 = lean_ctor_get(x_77, 0); lean_inc(x_112); -lean_dec(x_70); -x_114 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; +x_113 = lean_ctor_get(x_77, 1); +lean_inc(x_113); +lean_dec(x_77); +x_39 = x_112; +x_40 = x_113; +goto block_71; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_72, 0); +x_115 = lean_ctor_get(x_72, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_72); +x_116 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_115 = l_Lean_MVarId_apply(x_1, x_112, x_114, x_8, x_9, x_10, x_11, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_MVarId_apply(x_1, x_114, x_116, x_8, x_9, x_10, x_11, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_dec(x_38); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_118 = x_115; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_115); - x_118 = lean_box(0); + lean_dec_ref(x_117); + x_120 = lean_box(0); } -x_119 = l_List_isEmpty___rarg(x_116); -if (x_119 == 0) +x_121 = l_List_isEmpty___rarg(x_118); +if (x_121 == 0) { -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; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_120 = l_Lean_Elab_goalsToMessageData(x_116); -x_121 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(6, 2, 0); +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; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_122 = l_Lean_Elab_goalsToMessageData(x_118); +x_123 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__5; +if (lean_is_scalar(x_120)) { + x_124 = lean_alloc_ctor(6, 2, 0); } else { - x_122 = x_118; - lean_ctor_set_tag(x_122, 6); + x_124 = x_120; + lean_ctor_set_tag(x_124, 6); } -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; -x_124 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; -x_126 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = 2; +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Meta_Rfl_initFn____x40_Lean_Meta_Tactic_Rfl___hyg_102____lambda__3___closed__19; +x_126 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Array_forInUnsafe_loop___at_Lean_MVarId_applyRfl___spec__1___closed__3; +x_128 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = 2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_126, x_127, x_8, x_9, x_10, x_11, x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_130 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__6(x_128, x_129, x_8, x_9, x_10, x_11, x_119); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; } else { - lean_dec_ref(x_128); - x_131 = lean_box(0); + lean_dec_ref(x_130); + x_133 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_132 = x_131; + x_134 = x_133; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_37); -x_16 = x_132; -x_17 = x_130; -goto block_36; -} -else -{ -lean_object* x_133; lean_object* x_134; -lean_dec(x_116); -x_133 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_118; - lean_ctor_set_tag(x_134, 1); -} -lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 0, x_131); lean_ctor_set(x_134, 1, x_37); x_16 = x_134; -x_17 = x_117; +x_17 = x_132; goto block_36; } -} else { lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_115, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_115, 1); -lean_inc(x_136); -lean_dec(x_115); -x_39 = x_135; -x_40 = x_136; -goto block_69; +lean_dec(x_118); +x_135 = lean_box(0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_120; + lean_ctor_set_tag(x_136, 1); } +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_37); +x_16 = x_136; +x_17 = x_119; +goto block_36; } } else { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_70, 0); +x_137 = lean_ctor_get(x_117, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_70, 1); +x_138 = lean_ctor_get(x_117, 1); lean_inc(x_138); -lean_dec(x_70); +lean_dec(x_117); x_39 = x_137; x_40 = x_138; -goto block_69; +goto block_71; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_72, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_72, 1); +lean_inc(x_140); +lean_dec(x_72); +x_39 = x_139; +x_40 = x_140; +goto block_71; } block_36: { @@ -19983,136 +20684,140 @@ return x_35; } } } -block_69: +block_71: { uint8_t x_41; -x_41 = l_Lean_Exception_isRuntime(x_39); +x_41 = l_Lean_Exception_isInterrupt(x_39); if (x_41 == 0) { -lean_object* x_42; -x_42 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = l_Lean_Meta_saveState___rarg(x_9, x_10, x_11, x_40); if (lean_obj_tag(x_37) == 0) { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 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_ctor_set(x_42, 1, x_39); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_42); -x_46 = lean_box(0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_43, 1); +lean_ctor_set(x_43, 1, x_39); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_43); +x_47 = lean_box(0); if (lean_is_scalar(x_38)) { - x_47 = lean_alloc_ctor(0, 2, 0); + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_38; + x_48 = x_38; } -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_16 = x_47; -x_17 = x_44; +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_16 = x_48; +x_17 = x_45; goto block_36; } 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_42, 0); -x_49 = lean_ctor_get(x_42, 1); +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_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_39); -x_51 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_box(0); +lean_dec(x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_39); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_box(0); if (lean_is_scalar(x_38)) { - x_53 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_38; + x_54 = x_38; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_16 = x_53; -x_17 = x_49; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_16 = x_54; +x_17 = x_50; goto block_36; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_39); lean_dec(x_38); -x_54 = !lean_is_exclusive(x_42); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_43); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_42, 1); -x_56 = lean_ctor_get(x_42, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_37); -if (x_57 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_43, 1); +x_57 = lean_ctor_get(x_43, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) { -lean_object* x_58; -x_58 = lean_box(0); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 0, x_58); -x_16 = x_42; -x_17 = x_55; +lean_object* x_59; +x_59 = lean_box(0); +lean_ctor_set(x_43, 1, x_37); +lean_ctor_set(x_43, 0, x_59); +x_16 = x_43; +x_17 = x_56; goto block_36; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_37, 0); -lean_inc(x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_37, 0); +lean_inc(x_60); lean_dec(x_37); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = lean_box(0); -lean_ctor_set(x_42, 1, x_60); -lean_ctor_set(x_42, 0, x_61); -x_16 = x_42; -x_17 = x_55; +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_box(0); +lean_ctor_set(x_43, 1, x_61); +lean_ctor_set(x_43, 0, x_62); +x_16 = x_43; +x_17 = x_56; goto block_36; } } else { -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_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_dec(x_42); -x_63 = lean_ctor_get(x_37, 0); +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_63 = lean_ctor_get(x_43, 1); lean_inc(x_63); +lean_dec(x_43); +x_64 = lean_ctor_get(x_37, 0); +lean_inc(x_64); if (lean_is_exclusive(x_37)) { lean_ctor_release(x_37, 0); - x_64 = x_37; + x_65 = x_37; } else { lean_dec_ref(x_37); - x_64 = lean_box(0); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 1, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_63); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_16 = x_67; -x_17 = x_62; +lean_ctor_set(x_66, 0, x_64); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_16 = x_68; +x_17 = x_63; goto block_36; } } } else { -lean_object* x_68; +lean_object* x_69; lean_dec(x_37); lean_dec(x_11); lean_dec(x_10); @@ -20121,14 +20826,35 @@ lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_38)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_38; - lean_ctor_set_tag(x_68, 1); + x_69 = x_38; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_40); -return x_68; +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_40); +return x_69; +} +} +else +{ +lean_object* x_70; +lean_dec(x_37); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_38)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_38; + lean_ctor_set_tag(x_70, 1); +} +lean_ctor_set(x_70, 0, x_39); +lean_ctor_set(x_70, 1, x_40); +return x_70; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 72a0b00947..8698b5cca9 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -102,6 +102,7 @@ lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_obj static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl___spec__2(lean_object*, lean_object*, uint8_t, uint8_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*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_Simp_main_simpMain___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7088,7 +7089,7 @@ return x_12; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce(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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -7111,41 +7112,46 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); +lean_dec(x_37); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); +lean_ctor_set(x_7, 3, x_39); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -7154,23 +7160,23 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_37 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_37) == 0) +x_40 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_40) == 0) { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -x_41 = lean_expr_eqv(x_39, x_1); -lean_dec(x_1); +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) { -lean_free_object(x_37); -x_1 = x_39; -x_9 = x_40; +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +x_44 = lean_expr_eqv(x_42, x_1); +lean_dec(x_1); +if (x_44 == 0) +{ +lean_free_object(x_40); +x_1 = x_42; +x_9 = x_43; goto _start; } else @@ -7182,151 +7188,153 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_37; +return x_40; } } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_37); -x_45 = lean_expr_eqv(x_43, x_1); +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_40); +x_48 = lean_expr_eqv(x_46, x_1); lean_dec(x_1); -if (x_45 == 0) -{ -x_1 = x_43; -x_9 = x_44; -goto _start; -} -else -{ -lean_object* x_47; -lean_dec(x_7); -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_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_43); -lean_ctor_set(x_47, 1, x_44); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_7); -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_48 = !lean_is_exclusive(x_37); if (x_48 == 0) { -return x_37; +x_1 = x_46; +x_9 = x_47; +goto _start; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -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 -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_object* x_50; lean_dec(x_7); -x_52 = lean_unsigned_to_nat(1u); -x_53 = lean_nat_add(x_13, x_52); +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_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_46); +lean_ctor_set(x_50, 1, x_47); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_7); +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_51 = !lean_is_exclusive(x_40); +if (x_51 == 0) +{ +return x_40; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_40, 0); +x_53 = lean_ctor_get(x_40, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_40); +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; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_7); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_add(x_13, x_55); lean_dec(x_13); -x_54 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_54, 0, x_10); -lean_ctor_set(x_54, 1, x_11); -lean_ctor_set(x_54, 2, x_12); -lean_ctor_set(x_54, 3, x_53); -lean_ctor_set(x_54, 4, x_14); -lean_ctor_set(x_54, 5, x_15); -lean_ctor_set(x_54, 6, x_16); -lean_ctor_set(x_54, 7, x_17); -lean_ctor_set(x_54, 8, x_18); -lean_ctor_set(x_54, 9, x_19); -lean_ctor_set(x_54, 10, x_20); -lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_21); +x_57 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_57, 0, x_10); +lean_ctor_set(x_57, 1, x_11); +lean_ctor_set(x_57, 2, x_12); +lean_ctor_set(x_57, 3, x_56); +lean_ctor_set(x_57, 4, x_14); +lean_ctor_set(x_57, 5, x_15); +lean_ctor_set(x_57, 6, x_16); +lean_ctor_set(x_57, 7, x_17); +lean_ctor_set(x_57, 8, x_18); +lean_ctor_set(x_57, 9, x_19); +lean_ctor_set(x_57, 10, x_20); +lean_ctor_set(x_57, 11, x_22); +lean_ctor_set_uint8(x_57, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_57, sizeof(void*)*12 + 1, x_23); lean_inc(x_8); -lean_inc(x_54); +lean_inc(x_57); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_55 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep(x_1, x_2, x_3, x_4, x_5, x_6, x_54, x_8, x_9); -if (lean_obj_tag(x_55) == 0) +x_58 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep(x_1, x_2, x_3, x_4, x_5, x_6, x_57, x_8, x_9); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_58 = x_55; +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; } else { - lean_dec_ref(x_55); - x_58 = lean_box(0); + lean_dec_ref(x_58); + x_61 = lean_box(0); } -x_59 = lean_expr_eqv(x_56, x_1); +x_62 = lean_expr_eqv(x_59, x_1); lean_dec(x_1); -if (x_59 == 0) +if (x_62 == 0) { -lean_dec(x_58); -x_1 = x_56; -x_7 = x_54; -x_9 = x_57; +lean_dec(x_61); +x_1 = x_59; +x_7 = x_57; +x_9 = x_60; goto _start; } else { -lean_object* x_61; -lean_dec(x_54); +lean_object* x_64; +lean_dec(x_57); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_58)) { - x_61 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_61)) { + x_64 = lean_alloc_ctor(0, 2, 0); } else { - x_61 = x_58; + x_64 = x_61; } -lean_ctor_set(x_61, 0, x_56); -lean_ctor_set(x_61, 1, x_57); -return x_61; +lean_ctor_set(x_64, 0, x_59); +lean_ctor_set(x_64, 1, x_60); +return x_64; } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_54); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_57); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -7334,32 +7342,33 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_62 = lean_ctor_get(x_55, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_55, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_64 = x_55; +x_65 = lean_ctor_get(x_58, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_58, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_67 = x_58; } else { - lean_dec_ref(x_55); - x_64 = lean_box(0); + lean_dec_ref(x_58); + x_67 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_65 = x_64; + x_68 = x_67; } -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; } } } else { -lean_object* x_66; +lean_object* x_69; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -7371,7 +7380,7 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_66 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_69 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7379,7 +7388,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_66; +return x_69; } } } @@ -21763,7 +21772,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; 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; uint8_t x_25; +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; uint8_t x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_10, 1); @@ -21786,161 +21795,169 @@ x_22 = lean_ctor_get(x_10, 9); lean_inc(x_22); x_23 = lean_ctor_get(x_10, 10); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); -x_25 = lean_nat_dec_eq(x_16, x_17); -if (x_25 == 0) +x_24 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_25 = lean_ctor_get(x_10, 11); +lean_inc(x_25); +x_26 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +x_27 = lean_nat_dec_eq(x_16, x_17); +if (x_27 == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_10); -if (x_26 == 0) +uint8_t x_28; +x_28 = !lean_is_exclusive(x_10); +if (x_28 == 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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_27 = lean_ctor_get(x_10, 10); -lean_dec(x_27); -x_28 = lean_ctor_get(x_10, 9); -lean_dec(x_28); -x_29 = lean_ctor_get(x_10, 8); +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; +x_29 = lean_ctor_get(x_10, 11); lean_dec(x_29); -x_30 = lean_ctor_get(x_10, 7); +x_30 = lean_ctor_get(x_10, 10); lean_dec(x_30); -x_31 = lean_ctor_get(x_10, 6); +x_31 = lean_ctor_get(x_10, 9); lean_dec(x_31); -x_32 = lean_ctor_get(x_10, 5); +x_32 = lean_ctor_get(x_10, 8); lean_dec(x_32); -x_33 = lean_ctor_get(x_10, 4); +x_33 = lean_ctor_get(x_10, 7); lean_dec(x_33); -x_34 = lean_ctor_get(x_10, 3); +x_34 = lean_ctor_get(x_10, 6); lean_dec(x_34); -x_35 = lean_ctor_get(x_10, 2); +x_35 = lean_ctor_get(x_10, 5); lean_dec(x_35); -x_36 = lean_ctor_get(x_10, 1); +x_36 = lean_ctor_get(x_10, 4); lean_dec(x_36); -x_37 = lean_ctor_get(x_10, 0); +x_37 = lean_ctor_get(x_10, 3); lean_dec(x_37); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_16, x_38); -lean_dec(x_16); -lean_ctor_set(x_10, 3, x_39); -x_40 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_40) == 0) -{ -uint8_t x_41; -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); +x_38 = lean_ctor_get(x_10, 2); +lean_dec(x_38); +x_39 = lean_ctor_get(x_10, 1); +lean_dec(x_39); +x_40 = lean_ctor_get(x_10, 0); lean_dec(x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_16, x_41); +lean_dec(x_16); +lean_ctor_set(x_10, 3, x_42); +x_43 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; } else { -uint8_t x_45; -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) -{ -return x_40; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); lean_inc(x_46); -lean_dec(x_40); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 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; +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +return x_43; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_43, 0); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_43); +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 { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_dec(x_10); -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_add(x_16, x_49); +x_52 = lean_unsigned_to_nat(1u); +x_53 = lean_nat_add(x_16, x_52); lean_dec(x_16); -x_51 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_51, 0, x_13); -lean_ctor_set(x_51, 1, x_14); -lean_ctor_set(x_51, 2, x_15); -lean_ctor_set(x_51, 3, x_50); -lean_ctor_set(x_51, 4, x_17); -lean_ctor_set(x_51, 5, x_18); -lean_ctor_set(x_51, 6, x_19); -lean_ctor_set(x_51, 7, x_20); -lean_ctor_set(x_51, 8, x_21); -lean_ctor_set(x_51, 9, x_22); -lean_ctor_set(x_51, 10, x_23); -lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_24); -x_52 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51, x_11, x_12); -if (lean_obj_tag(x_52) == 0) +x_54 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_54, 0, x_13); +lean_ctor_set(x_54, 1, x_14); +lean_ctor_set(x_54, 2, x_15); +lean_ctor_set(x_54, 3, x_53); +lean_ctor_set(x_54, 4, x_17); +lean_ctor_set(x_54, 5, x_18); +lean_ctor_set(x_54, 6, x_19); +lean_ctor_set(x_54, 7, x_20); +lean_ctor_set(x_54, 8, x_21); +lean_ctor_set(x_54, 9, x_22); +lean_ctor_set(x_54, 10, x_23); +lean_ctor_set(x_54, 11, x_25); +lean_ctor_set_uint8(x_54, sizeof(void*)*12, x_24); +lean_ctor_set_uint8(x_54, sizeof(void*)*12 + 1, x_26); +x_55 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_54, x_11, x_12); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -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); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_52, 0); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_59 = x_52; +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_58 = x_55; } else { - lean_dec_ref(x_52); - x_59 = lean_box(0); + lean_dec_ref(x_55); + x_58 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(0, 2, 0); } else { - x_60 = x_59; + x_59 = x_58; } -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; +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; +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } } else { -lean_object* x_61; uint8_t x_62; +lean_object* x_64; uint8_t x_65; +lean_dec(x_25); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); @@ -21956,28 +21973,28 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_61 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl___spec__16___rarg(x_18, x_8, x_9, x_10, x_11, x_12); +x_64 = l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl___spec__16___rarg(x_18, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) { -return x_61; +return x_64; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_61); -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_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_64); +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; } } } @@ -24385,30 +24402,34 @@ if (x_28 == 0) lean_object* x_29; lean_object* x_30; uint8_t x_31; x_29 = lean_ctor_get(x_23, 0); x_30 = lean_ctor_get(x_23, 1); -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_free_object(x_23); lean_dec(x_29); -x_32 = l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(x_30); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_33 = l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(x_30); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -return x_32; +return x_33; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_32); -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; +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else @@ -24418,46 +24439,64 @@ return x_23; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_23, 0); -x_38 = lean_ctor_get(x_23, 1); +return x_23; +} +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_23, 0); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); lean_dec(x_23); -x_39 = l_Lean_Exception_isRuntime(x_37); -if (x_39 == 0) +x_40 = l_Lean_Exception_isInterrupt(x_38); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_37); -x_40 = l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(x_38); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +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_dec(x_38); +x_42 = l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(x_39); +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_40); - x_43 = lean_box(0); + lean_dec_ref(x_42); + x_45 = lean_box(0); } -if (lean_is_scalar(x_43)) { - x_44 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); } else { - x_44 = x_43; + x_46 = x_45; } -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; } else { -lean_object* x_45; -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_37); -lean_ctor_set(x_45, 1, x_38); -return x_45; +lean_object* x_47; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_38); +lean_ctor_set(x_47, 1, x_39); +return x_47; +} +} +else +{ +lean_object* x_48; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_38); +lean_ctor_set(x_48, 1, x_39); +return x_48; } } } @@ -24465,7 +24504,7 @@ return x_45; } else { -uint8_t x_46; +uint8_t x_49; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -24479,23 +24518,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_16); -if (x_46 == 0) +x_49 = !lean_is_exclusive(x_16); +if (x_49 == 0) { return x_16; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_16, 0); -x_48 = lean_ctor_get(x_16, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_16, 0); +x_51 = lean_ctor_get(x_16, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_16); -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; +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; } } } @@ -25031,7 +25070,7 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_28; lean_object* x_29; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_160; uint8_t x_161; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_28; lean_object* x_29; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_163; uint8_t x_164; x_18 = lean_array_uget(x_4, x_6); x_46 = lean_ctor_get(x_7, 1); lean_inc(x_46); @@ -25043,25 +25082,25 @@ if (lean_is_exclusive(x_7)) { lean_dec_ref(x_7); x_47 = lean_box(0); } -x_160 = lean_array_get_size(x_2); -x_161 = lean_nat_dec_lt(x_18, x_160); -lean_dec(x_160); -if (x_161 == 0) +x_163 = lean_array_get_size(x_2); +x_164 = lean_nat_dec_lt(x_18, x_163); +lean_dec(x_163); +if (x_164 == 0) { -lean_object* x_162; lean_object* x_163; +lean_object* x_165; lean_object* x_166; lean_dec(x_18); -x_162 = l_Lean_instInhabitedExpr; -x_163 = l___private_Init_GetElem_0__outOfBounds___rarg(x_162); -x_48 = x_163; -goto block_159; +x_165 = l_Lean_instInhabitedExpr; +x_166 = l___private_Init_GetElem_0__outOfBounds___rarg(x_165); +x_48 = x_166; +goto block_162; } else { -lean_object* x_164; -x_164 = lean_array_fget(x_2, x_18); +lean_object* x_167; +x_167 = lean_array_fget(x_2, x_18); lean_dec(x_18); -x_48 = x_164; -goto block_159; +x_48 = x_167; +goto block_162; } block_27: { @@ -25174,7 +25213,7 @@ goto block_27; } } } -block_159: +block_162: { lean_object* x_49; lean_inc(x_14); @@ -25235,108 +25274,112 @@ if (x_57 == 0) lean_object* x_58; lean_object* x_59; uint8_t x_60; x_58 = lean_ctor_get(x_49, 0); x_59 = lean_ctor_get(x_49, 1); -x_60 = l_Lean_Exception_isRuntime(x_58); +x_60 = l_Lean_Exception_isInterrupt(x_58); if (x_60 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +uint8_t x_61; +x_61 = l_Lean_Exception_isRuntime(x_58); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_free_object(x_49); lean_dec(x_58); -x_61 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__3; -x_62 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_61, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_59); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_unbox(x_63); -lean_dec(x_63); -if (x_64 == 0) +x_62 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__3; +x_63 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_59); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +if (x_65 == 0) { -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_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_dec(x_48); lean_dec(x_47); -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_dec(x_62); -x_66 = lean_box(0); -x_67 = lean_unbox(x_46); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +x_67 = lean_box(0); +x_68 = lean_unbox(x_46); lean_dec(x_46); -x_68 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_67, x_66, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_65); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +x_69 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_68, x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_66); +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_68); -x_28 = x_69; -x_29 = x_70; +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_28 = x_70; +x_29 = x_71; goto block_45; } else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_62); -if (x_71 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_63); +if (x_72 == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_62, 1); -x_73 = lean_ctor_get(x_62, 0); -lean_dec(x_73); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_63, 1); +x_74 = lean_ctor_get(x_63, 0); +lean_dec(x_74); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_74 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_72); -if (lean_obj_tag(x_74) == 0) +x_75 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_73); +if (lean_obj_tag(x_75) == 0) { -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; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); +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; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_74); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); lean_inc(x_1); -x_77 = l_Lean_MessageData_ofName(x_1); -x_78 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; -lean_ctor_set_tag(x_62, 6); -lean_ctor_set(x_62, 1, x_77); -lean_ctor_set(x_62, 0, x_78); -x_79 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; +x_78 = l_Lean_MessageData_ofName(x_1); +x_79 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; +lean_ctor_set_tag(x_63, 6); +lean_ctor_set(x_63, 1, x_78); +lean_ctor_set(x_63, 0, x_79); +x_80 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; if (lean_is_scalar(x_47)) { - x_80 = lean_alloc_ctor(6, 2, 0); + x_81 = lean_alloc_ctor(6, 2, 0); } else { - x_80 = x_47; - lean_ctor_set_tag(x_80, 6); + x_81 = x_47; + lean_ctor_set_tag(x_81, 6); } -lean_ctor_set(x_80, 0, x_62); -lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_MessageData_ofExpr(x_75); -x_82 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; -x_84 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_61, x_84, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_76); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); +lean_ctor_set(x_81, 0, x_63); +lean_ctor_set(x_81, 1, x_80); +x_82 = l_Lean_MessageData_ofExpr(x_76); +x_83 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; +x_85 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_86 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_62, x_85, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_77); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_unbox(x_46); -lean_dec(x_46); -x_89 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_88, x_86, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); lean_dec(x_86); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); +x_89 = lean_unbox(x_46); +lean_dec(x_46); +x_90 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_89, x_87, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_88); +lean_dec(x_87); +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -lean_dec(x_89); -x_28 = x_90; -x_29 = x_91; +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_28 = x_91; +x_29 = x_92; goto block_45; } else { -uint8_t x_92; -lean_free_object(x_62); +uint8_t x_93; +lean_free_object(x_63); lean_dec(x_47); lean_dec(x_46); lean_dec(x_14); @@ -25348,90 +25391,90 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_74); -if (x_92 == 0) +x_93 = !lean_is_exclusive(x_75); +if (x_93 == 0) { -return x_74; +return x_75; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_74, 0); -x_94 = lean_ctor_get(x_74, 1); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_75, 0); +x_95 = lean_ctor_get(x_75, 1); +lean_inc(x_95); lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_74); -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; +lean_dec(x_75); +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 { -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_62, 1); -lean_inc(x_96); -lean_dec(x_62); +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_63, 1); +lean_inc(x_97); +lean_dec(x_63); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_97 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_96); -if (lean_obj_tag(x_97) == 0) +x_98 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_97); +if (lean_obj_tag(x_98) == 0) { -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; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); +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; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_99 = lean_ctor_get(x_98, 0); lean_inc(x_99); -lean_dec(x_97); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); lean_inc(x_1); -x_100 = l_Lean_MessageData_ofName(x_1); -x_101 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; -x_102 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -x_103 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; +x_101 = l_Lean_MessageData_ofName(x_1); +x_102 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; +x_103 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +x_104 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; if (lean_is_scalar(x_47)) { - x_104 = lean_alloc_ctor(6, 2, 0); + x_105 = lean_alloc_ctor(6, 2, 0); } else { - x_104 = x_47; - lean_ctor_set_tag(x_104, 6); + x_105 = x_47; + lean_ctor_set_tag(x_105, 6); } -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_MessageData_ofExpr(x_98); -x_106 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; -x_108 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_61, x_108, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_MessageData_ofExpr(x_99); +x_107 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; +x_109 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_62, x_109, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_100); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_unbox(x_46); -lean_dec(x_46); -x_113 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_112, x_110, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); lean_dec(x_110); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); +x_113 = lean_unbox(x_46); +lean_dec(x_46); +x_114 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_113, x_111, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_112); +lean_dec(x_111); +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_113); -x_28 = x_114; -x_29 = x_115; +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_28 = x_115; +x_29 = x_116; goto block_45; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_dec(x_47); lean_dec(x_46); lean_dec(x_14); @@ -25443,26 +25486,26 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_116 = lean_ctor_get(x_97, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_97, 1); +x_117 = lean_ctor_get(x_98, 0); lean_inc(x_117); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_118 = x_97; +x_118 = lean_ctor_get(x_98, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_119 = x_98; } else { - lean_dec_ref(x_97); - x_118 = lean_box(0); + lean_dec_ref(x_98); + x_119 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_120 = x_119; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } } @@ -25486,121 +25529,142 @@ return x_49; } else { -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_49, 0); -x_121 = lean_ctor_get(x_49, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_49); -x_122 = l_Lean_Exception_isRuntime(x_120); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; -lean_dec(x_120); -x_123 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__3; -x_124 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_123, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_121); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_unbox(x_125); -lean_dec(x_125); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_48); lean_dec(x_47); -x_127 = lean_ctor_get(x_124, 1); -lean_inc(x_127); -lean_dec(x_124); -x_128 = lean_box(0); -x_129 = lean_unbox(x_46); lean_dec(x_46); -x_130 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_129, x_128, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_127); -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_28 = x_131; -x_29 = x_132; +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_8); +lean_dec(x_3); +lean_dec(x_1); +return x_49; +} +} +else +{ +lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_121 = lean_ctor_get(x_49, 0); +x_122 = lean_ctor_get(x_49, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_49); +x_123 = l_Lean_Exception_isInterrupt(x_121); +if (x_123 == 0) +{ +uint8_t x_124; +x_124 = l_Lean_Exception_isRuntime(x_121); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +lean_dec(x_121); +x_125 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__3; +x_126 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_125, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_122); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_unbox(x_127); +lean_dec(x_127); +if (x_128 == 0) +{ +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_dec(x_48); +lean_dec(x_47); +x_129 = lean_ctor_get(x_126, 1); +lean_inc(x_129); +lean_dec(x_126); +x_130 = lean_box(0); +x_131 = lean_unbox(x_46); +lean_dec(x_46); +x_132 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_131, x_130, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_129); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_28 = x_133; +x_29 = x_134; goto block_45; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_124, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_134 = x_124; +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_126, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_136 = x_126; } else { - lean_dec_ref(x_124); - x_134 = lean_box(0); + lean_dec_ref(x_126); + x_136 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_135 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_133); -if (lean_obj_tag(x_135) == 0) +x_137 = lean_infer_type(x_48, x_11, x_12, x_13, x_14, x_135); +if (lean_obj_tag(x_137) == 0) { -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; uint8_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); +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; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); lean_inc(x_1); -x_138 = l_Lean_MessageData_ofName(x_1); -x_139 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; -if (lean_is_scalar(x_134)) { - x_140 = lean_alloc_ctor(6, 2, 0); -} else { - x_140 = x_134; - lean_ctor_set_tag(x_140, 6); -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_138); -x_141 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; -if (lean_is_scalar(x_47)) { +x_140 = l_Lean_MessageData_ofName(x_1); +x_141 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__5; +if (lean_is_scalar(x_136)) { x_142 = lean_alloc_ctor(6, 2, 0); } else { - x_142 = x_47; + x_142 = x_136; lean_ctor_set_tag(x_142, 6); } -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -x_143 = l_Lean_MessageData_ofExpr(x_136); -x_144 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_140); +x_143 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___closed__7; +if (lean_is_scalar(x_47)) { + x_144 = lean_alloc_ctor(6, 2, 0); +} else { + x_144 = x_47; + lean_ctor_set_tag(x_144, 6); +} lean_ctor_set(x_144, 0, x_142); lean_ctor_set(x_144, 1, x_143); -x_145 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; +x_145 = l_Lean_MessageData_ofExpr(x_138); x_146 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_146, 0, x_144); lean_ctor_set(x_146, 1, x_145); -x_147 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_123, x_146, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_137); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_unbox(x_46); +x_147 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__13; +x_148 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +x_149 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_125, x_148, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_139); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_unbox(x_46); lean_dec(x_46); -x_151 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_150, x_148, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_149); -lean_dec(x_148); -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_28 = x_152; -x_29 = x_153; +x_153 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(x_152, x_150, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_151); +lean_dec(x_150); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_28 = x_154; +x_29 = x_155; goto block_45; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_134); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_136); lean_dec(x_47); lean_dec(x_46); lean_dec(x_14); @@ -25612,32 +25676,32 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_154 = lean_ctor_get(x_135, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_135, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_156 = x_135; +x_156 = lean_ctor_get(x_137, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_137, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_158 = x_137; } else { - lean_dec_ref(x_135); - x_156 = lean_box(0); + lean_dec_ref(x_137); + x_158 = lean_box(0); } -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_157 = x_156; + x_159 = x_158; } -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_155); -return x_157; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } } else { -lean_object* x_158; +lean_object* x_160; lean_dec(x_48); lean_dec(x_47); lean_dec(x_46); @@ -25650,10 +25714,31 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_1); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_120); -lean_ctor_set(x_158, 1, x_121); -return x_158; +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_121); +lean_ctor_set(x_160, 1, x_122); +return x_160; +} +} +else +{ +lean_object* x_161; +lean_dec(x_48); +lean_dec(x_47); +lean_dec(x_46); +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_8); +lean_dec(x_3); +lean_dec(x_1); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_121); +lean_ctor_set(x_161, 1, x_122); +return x_161; } } } @@ -26104,9 +26189,13 @@ if (x_36 == 0) { lean_object* x_37; uint8_t x_38; x_37 = lean_ctor_get(x_31, 0); -x_38 = l_Lean_Exception_isRuntime(x_37); +x_38 = l_Lean_Exception_isInterrupt(x_37); if (x_38 == 0) { +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_37); +if (x_39 == 0) +{ lean_dec(x_37); lean_ctor_set_tag(x_31, 0); lean_ctor_set(x_31, 0, x_5); @@ -26120,30 +26209,50 @@ return x_31; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_31, 0); -x_40 = lean_ctor_get(x_31, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_31); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) -{ -lean_object* x_42; -lean_dec(x_39); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_5); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_5); +return x_31; +} } else { -lean_object* x_43; +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_31, 0); +x_41 = lean_ctor_get(x_31, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_31); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) +{ +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_5); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +else +{ +lean_object* x_45; lean_dec(x_5); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_40); -return x_43; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_40); +lean_ctor_set(x_45, 1, x_41); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_5); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_41); +return x_46; } } } @@ -30146,7 +30255,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpLoop(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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -30169,90 +30278,95 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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; -x_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; uint8_t x_48; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); -lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = l_Lean_Meta_Simp_getConfig___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); lean_dec(x_37); -x_40 = lean_st_ref_get(x_4, x_39); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); +lean_dec(x_13); +lean_ctor_set(x_7, 3, x_39); +x_40 = l_Lean_Meta_Simp_getConfig___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9); 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_41, 3); +x_43 = lean_st_ref_get(x_4, x_42); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_41); -x_45 = lean_nat_dec_lt(x_43, x_44); -lean_dec(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); lean_dec(x_43); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -x_46 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; -x_47 = l_Lean_Core_checkSystem(x_46, x_7, x_8, x_42); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); +x_46 = lean_ctor_get(x_41, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 3); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_nat_dec_lt(x_46, x_47); lean_dec(x_47); -x_49 = lean_st_ref_take(x_4, x_48); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = !lean_is_exclusive(x_50); -if (x_52 == 0) +lean_dec(x_46); +if (x_48 == 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_50, 3); -x_54 = lean_nat_add(x_53, x_35); -lean_dec(x_53); -lean_ctor_set(x_50, 3, x_54); -x_55 = lean_st_ref_set(x_4, x_50, x_51); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); +lean_object* x_49; lean_object* x_50; +x_49 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; +x_50 = l_Lean_Core_checkSystem(x_49, x_7, x_8, x_45); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_st_ref_take(x_4, x_51); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = !lean_is_exclusive(x_53); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_56 = lean_ctor_get(x_53, 3); +x_57 = lean_nat_add(x_56, x_38); +lean_dec(x_56); +lean_ctor_set(x_53, 3, x_57); +x_58 = lean_st_ref_set(x_4, x_53, x_54); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -30261,23 +30375,23 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_57 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_56); -if (lean_obj_tag(x_57) == 0) +x_60 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -switch (lean_obj_tag(x_58)) { +lean_object* x_61; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +switch (lean_obj_tag(x_61)) { case 0: { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -lean_dec(x_58); -x_61 = l_Lean_Meta_Simp_cacheResult(x_1, x_38, x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_Meta_Simp_cacheResult(x_1, x_41, x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_62); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30285,20 +30399,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_38); -return x_61; +lean_dec(x_41); +return x_64; } case 1: { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_57, 1); -lean_inc(x_62); -lean_dec(x_57); -x_63 = lean_ctor_get(x_58, 0); -lean_inc(x_63); -lean_dec(x_58); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_65 = lean_ctor_get(x_60, 1); +lean_inc(x_65); +lean_dec(x_60); +x_66 = lean_ctor_get(x_61, 0); +lean_inc(x_66); +lean_dec(x_61); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -30306,20 +30420,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_65 = l_Lean_Meta_Simp_simpLoop(x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_62); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_68 = l_Lean_Meta_Simp_Result_mkEqTrans(x_63, x_66, x_5, x_6, x_7, x_8, x_67); +x_68 = l_Lean_Meta_Simp_simpLoop(x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_65); if (lean_obj_tag(x_68) == 0) { lean_object* x_69; lean_object* x_70; lean_object* x_71; @@ -30328,7 +30429,20 @@ lean_inc(x_69); x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); lean_dec(x_68); -x_71 = l_Lean_Meta_Simp_cacheResult(x_1, x_38, x_69, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_70); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_71 = l_Lean_Meta_Simp_Result_mkEqTrans(x_66, x_69, x_5, x_6, x_7, x_8, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +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_74 = l_Lean_Meta_Simp_cacheResult(x_1, x_41, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_73); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30336,13 +30450,13 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_38); -return x_71; +lean_dec(x_41); +return x_74; } else { -uint8_t x_72; -lean_dec(x_38); +uint8_t x_75; +lean_dec(x_41); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -30351,102 +30465,102 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_68); -if (x_72 == 0) +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +return x_71; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_71, 0); +x_77 = lean_ctor_get(x_71, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_71); +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; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_66); +lean_dec(x_41); +lean_dec(x_7); +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_79 = !lean_is_exclusive(x_68); +if (x_79 == 0) { return x_68; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_68, 0); -x_74 = lean_ctor_get(x_68, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_68, 0); +x_81 = lean_ctor_get(x_68, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_68); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_63); -lean_dec(x_38); -lean_dec(x_7); -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_76 = !lean_is_exclusive(x_65); -if (x_76 == 0) -{ -return x_65; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_65, 0); -x_78 = lean_ctor_get(x_65, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_65); -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; +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; } } } default: { -lean_object* x_80; -x_80 = lean_ctor_get(x_58, 0); -lean_inc(x_80); -lean_dec(x_58); -if (lean_obj_tag(x_80) == 0) +lean_object* x_83; +x_83 = lean_ctor_get(x_61, 0); +lean_inc(x_83); +lean_dec(x_61); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; -x_81 = lean_ctor_get(x_57, 1); -lean_inc(x_81); -lean_dec(x_57); -x_82 = lean_box(0); -x_83 = 1; +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; +x_84 = lean_ctor_get(x_60, 1); +lean_inc(x_84); +lean_dec(x_60); +x_85 = lean_box(0); +x_86 = 1; lean_inc(x_1); -x_84 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_84, 0, x_1); -lean_ctor_set(x_84, 1, x_82); -lean_ctor_set_uint8(x_84, sizeof(void*)*2, x_83); -x_85 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_38, x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_81); -lean_dec(x_38); -return x_85; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_57, 1); -lean_inc(x_86); -lean_dec(x_57); -x_87 = lean_ctor_get(x_80, 0); -lean_inc(x_87); -lean_dec(x_80); -x_88 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_38, x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_86); -lean_dec(x_38); +x_87 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_87, 0, x_1); +lean_ctor_set(x_87, 1, x_85); +lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_86); +x_88 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_41, x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_84); +lean_dec(x_41); return x_88; } +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_60, 1); +lean_inc(x_89); +lean_dec(x_60); +x_90 = lean_ctor_get(x_83, 0); +lean_inc(x_90); +lean_dec(x_83); +x_91 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_41, x_90, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_89); +lean_dec(x_41); +return x_91; +} } } } else { -uint8_t x_89; -lean_dec(x_38); +uint8_t x_92; +lean_dec(x_41); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -30455,52 +30569,52 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_89 = !lean_is_exclusive(x_57); -if (x_89 == 0) +x_92 = !lean_is_exclusive(x_60); +if (x_92 == 0) { -return x_57; +return x_60; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_57, 0); -x_91 = lean_ctor_get(x_57, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_57); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -else -{ -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; -x_93 = lean_ctor_get(x_50, 0); -x_94 = lean_ctor_get(x_50, 1); -x_95 = lean_ctor_get(x_50, 2); -x_96 = lean_ctor_get(x_50, 3); -x_97 = lean_ctor_get(x_50, 4); -lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_60, 0); +x_94 = lean_ctor_get(x_60, 1); lean_inc(x_94); lean_inc(x_93); -lean_dec(x_50); -x_98 = lean_nat_add(x_96, x_35); -lean_dec(x_96); -x_99 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_99, 0, x_93); -lean_ctor_set(x_99, 1, x_94); -lean_ctor_set(x_99, 2, x_95); -lean_ctor_set(x_99, 3, x_98); -lean_ctor_set(x_99, 4, x_97); -x_100 = lean_st_ref_set(x_4, x_99, x_51); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); +lean_dec(x_60); +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; 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; +x_96 = lean_ctor_get(x_53, 0); +x_97 = lean_ctor_get(x_53, 1); +x_98 = lean_ctor_get(x_53, 2); +x_99 = lean_ctor_get(x_53, 3); +x_100 = lean_ctor_get(x_53, 4); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_53); +x_101 = lean_nat_add(x_99, x_38); +lean_dec(x_99); +x_102 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_102, 0, x_96); +lean_ctor_set(x_102, 1, x_97); +lean_ctor_set(x_102, 2, x_98); +lean_ctor_set(x_102, 3, x_101); +lean_ctor_set(x_102, 4, x_100); +x_103 = lean_st_ref_set(x_4, x_102, x_54); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -30509,23 +30623,23 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_102 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_101); -if (lean_obj_tag(x_102) == 0) +x_105 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_104); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_103; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -switch (lean_obj_tag(x_103)) { +lean_object* x_106; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +switch (lean_obj_tag(x_106)) { case 0: { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = lean_ctor_get(x_103, 0); -lean_inc(x_105); -lean_dec(x_103); -x_106 = l_Lean_Meta_Simp_cacheResult(x_1, x_38, x_105, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_104); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +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 = l_Lean_Meta_Simp_cacheResult(x_1, x_41, x_108, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_107); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30533,20 +30647,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_38); -return x_106; +lean_dec(x_41); +return x_109; } case 1: { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_ctor_get(x_102, 1); -lean_inc(x_107); -lean_dec(x_102); -x_108 = lean_ctor_get(x_103, 0); -lean_inc(x_108); -lean_dec(x_103); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_110 = lean_ctor_get(x_105, 1); +lean_inc(x_110); +lean_dec(x_105); +x_111 = lean_ctor_get(x_106, 0); +lean_inc(x_111); +lean_dec(x_106); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -30554,20 +30668,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_110 = l_Lean_Meta_Simp_simpLoop(x_109, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_107); -if (lean_obj_tag(x_110) == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -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); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_113 = l_Lean_Meta_Simp_Result_mkEqTrans(x_108, x_111, x_5, x_6, x_7, x_8, x_112); +x_113 = l_Lean_Meta_Simp_simpLoop(x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_110); if (lean_obj_tag(x_113) == 0) { lean_object* x_114; lean_object* x_115; lean_object* x_116; @@ -30576,7 +30677,20 @@ lean_inc(x_114); x_115 = lean_ctor_get(x_113, 1); lean_inc(x_115); lean_dec(x_113); -x_116 = l_Lean_Meta_Simp_cacheResult(x_1, x_38, x_114, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_115); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_116 = l_Lean_Meta_Simp_Result_mkEqTrans(x_111, x_114, x_5, x_6, x_7, x_8, x_115); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +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_119 = l_Lean_Meta_Simp_cacheResult(x_1, x_41, x_117, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_118); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30584,13 +30698,13 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_38); -return x_116; +lean_dec(x_41); +return x_119; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_38); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_41); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -30599,141 +30713,106 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_117 = lean_ctor_get(x_113, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_113, 1); -lean_inc(x_118); +x_120 = lean_ctor_get(x_116, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_116, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_122 = x_116; +} else { + lean_dec_ref(x_116); + 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); +return x_123; +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_111); +lean_dec(x_41); +lean_dec(x_7); +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_124 = lean_ctor_get(x_113, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_113, 1); +lean_inc(x_125); if (lean_is_exclusive(x_113)) { lean_ctor_release(x_113, 0); lean_ctor_release(x_113, 1); - x_119 = x_113; + x_126 = x_113; } else { lean_dec_ref(x_113); - x_119 = lean_box(0); + x_126 = lean_box(0); } -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_120 = x_119; + x_127 = x_126; } -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -return x_120; -} -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_108); -lean_dec(x_38); -lean_dec(x_7); -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_121 = lean_ctor_get(x_110, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_110, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_123 = x_110; -} else { - lean_dec_ref(x_110); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } default: { -lean_object* x_125; -x_125 = lean_ctor_get(x_103, 0); -lean_inc(x_125); -lean_dec(x_103); -if (lean_obj_tag(x_125) == 0) +lean_object* x_128; +x_128 = lean_ctor_get(x_106, 0); +lean_inc(x_128); +lean_dec(x_106); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; -x_126 = lean_ctor_get(x_102, 1); -lean_inc(x_126); -lean_dec(x_102); -x_127 = lean_box(0); -x_128 = 1; +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; +x_129 = lean_ctor_get(x_105, 1); +lean_inc(x_129); +lean_dec(x_105); +x_130 = lean_box(0); +x_131 = 1; lean_inc(x_1); -x_129 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_129, 0, x_1); -lean_ctor_set(x_129, 1, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*2, x_128); -x_130 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_38, x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_126); -lean_dec(x_38); -return x_130; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_102, 1); -lean_inc(x_131); -lean_dec(x_102); -x_132 = lean_ctor_get(x_125, 0); -lean_inc(x_132); -lean_dec(x_125); -x_133 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_38, x_132, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_131); -lean_dec(x_38); +x_132 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_132, 0, x_1); +lean_ctor_set(x_132, 1, x_130); +lean_ctor_set_uint8(x_132, sizeof(void*)*2, x_131); +x_133 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_41, x_132, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_129); +lean_dec(x_41); return x_133; } -} -} -} else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_38); -lean_dec(x_7); -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_134 = lean_ctor_get(x_102, 0); +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_105, 1); lean_inc(x_134); -x_135 = lean_ctor_get(x_102, 1); +lean_dec(x_105); +x_135 = lean_ctor_get(x_128, 0); lean_inc(x_135); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_136 = x_102; -} else { - lean_dec_ref(x_102); - x_136 = lean_box(0); +lean_dec(x_128); +x_136 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_41, x_135, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_134); +lean_dec(x_41); +return x_136; } -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(1, 2, 0); -} else { - x_137 = x_136; -} -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); -return x_137; } } } else { -uint8_t x_138; -lean_dec(x_38); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_41); lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -30742,33 +30821,68 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_138 = !lean_is_exclusive(x_47); -if (x_138 == 0) -{ -return x_47; +x_137 = lean_ctor_get(x_105, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_105, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_139 = x_105; +} else { + lean_dec_ref(x_105); + x_139 = lean_box(0); } -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_47, 0); -x_140 = lean_ctor_get(x_47, 1); -lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_47); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -return x_141; +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 { -lean_object* x_142; lean_object* x_143; -lean_dec(x_38); +uint8_t x_141; +lean_dec(x_41); +lean_dec(x_7); +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_142 = l_Lean_Meta_Simp_simpLoop___closed__2; -x_143 = l_Lean_throwError___at_Lean_Meta_Simp_simpLoop___spec__1(x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +x_141 = !lean_is_exclusive(x_50); +if (x_141 == 0) +{ +return x_50; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_50, 0); +x_143 = lean_ctor_get(x_50, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_50); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_41); +lean_dec(x_1); +x_145 = l_Lean_Meta_Simp_simpLoop___closed__2; +x_146 = l_Lean_throwError___at_Lean_Meta_Simp_simpLoop___spec__1(x_145, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30776,170 +30890,159 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_143; +return x_146; } } else { -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; uint8_t x_155; +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; uint8_t x_158; lean_dec(x_7); -x_144 = lean_unsigned_to_nat(1u); -x_145 = lean_nat_add(x_13, x_144); +x_147 = lean_unsigned_to_nat(1u); +x_148 = lean_nat_add(x_13, x_147); lean_dec(x_13); -x_146 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_146, 0, x_10); -lean_ctor_set(x_146, 1, x_11); -lean_ctor_set(x_146, 2, x_12); -lean_ctor_set(x_146, 3, x_145); -lean_ctor_set(x_146, 4, x_14); -lean_ctor_set(x_146, 5, x_15); -lean_ctor_set(x_146, 6, x_16); -lean_ctor_set(x_146, 7, x_17); -lean_ctor_set(x_146, 8, x_18); -lean_ctor_set(x_146, 9, x_19); -lean_ctor_set(x_146, 10, x_20); -lean_ctor_set_uint8(x_146, sizeof(void*)*11, x_21); -x_147 = l_Lean_Meta_Simp_getConfig___rarg(x_3, x_4, x_5, x_6, x_146, x_8, x_9); -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_st_ref_get(x_4, x_149); +x_149 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_149, 0, x_10); +lean_ctor_set(x_149, 1, x_11); +lean_ctor_set(x_149, 2, x_12); +lean_ctor_set(x_149, 3, x_148); +lean_ctor_set(x_149, 4, x_14); +lean_ctor_set(x_149, 5, x_15); +lean_ctor_set(x_149, 6, x_16); +lean_ctor_set(x_149, 7, x_17); +lean_ctor_set(x_149, 8, x_18); +lean_ctor_set(x_149, 9, x_19); +lean_ctor_set(x_149, 10, x_20); +lean_ctor_set(x_149, 11, x_22); +lean_ctor_set_uint8(x_149, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_149, sizeof(void*)*12 + 1, x_23); +x_150 = l_Lean_Meta_Simp_getConfig___rarg(x_3, x_4, x_5, x_6, x_149, x_8, x_9); x_151 = lean_ctor_get(x_150, 0); lean_inc(x_151); x_152 = lean_ctor_get(x_150, 1); lean_inc(x_152); lean_dec(x_150); -x_153 = lean_ctor_get(x_148, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_151, 3); +x_153 = lean_st_ref_get(x_4, x_152); +x_154 = lean_ctor_get(x_153, 0); lean_inc(x_154); -lean_dec(x_151); -x_155 = lean_nat_dec_lt(x_153, x_154); -lean_dec(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); lean_dec(x_153); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; -x_156 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; -x_157 = l_Lean_Core_checkSystem(x_156, x_146, x_8, x_152); -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_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; -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); +x_156 = lean_ctor_get(x_151, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_154, 3); +lean_inc(x_157); +lean_dec(x_154); +x_158 = lean_nat_dec_lt(x_156, x_157); lean_dec(x_157); -x_159 = lean_st_ref_take(x_4, x_158); -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); +lean_dec(x_156); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; +x_159 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; +x_160 = l_Lean_Core_checkSystem(x_159, x_149, x_8, x_155); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_161 = lean_ctor_get(x_160, 1); lean_inc(x_161); -lean_dec(x_159); -x_162 = lean_ctor_get(x_160, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_160, 1); +lean_dec(x_160); +x_162 = lean_st_ref_take(x_4, x_161); +x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -x_164 = lean_ctor_get(x_160, 2); +x_164 = lean_ctor_get(x_162, 1); lean_inc(x_164); -x_165 = lean_ctor_get(x_160, 3); +lean_dec(x_162); +x_165 = lean_ctor_get(x_163, 0); lean_inc(x_165); -x_166 = lean_ctor_get(x_160, 4); +x_166 = lean_ctor_get(x_163, 1); lean_inc(x_166); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - lean_ctor_release(x_160, 2); - lean_ctor_release(x_160, 3); - lean_ctor_release(x_160, 4); - x_167 = x_160; +x_167 = lean_ctor_get(x_163, 2); +lean_inc(x_167); +x_168 = lean_ctor_get(x_163, 3); +lean_inc(x_168); +x_169 = lean_ctor_get(x_163, 4); +lean_inc(x_169); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + lean_ctor_release(x_163, 2); + lean_ctor_release(x_163, 3); + lean_ctor_release(x_163, 4); + x_170 = x_163; } else { - lean_dec_ref(x_160); - x_167 = lean_box(0); + lean_dec_ref(x_163); + x_170 = lean_box(0); } -x_168 = lean_nat_add(x_165, x_144); -lean_dec(x_165); -if (lean_is_scalar(x_167)) { - x_169 = lean_alloc_ctor(0, 5, 0); +x_171 = lean_nat_add(x_168, x_147); +lean_dec(x_168); +if (lean_is_scalar(x_170)) { + x_172 = lean_alloc_ctor(0, 5, 0); } else { - x_169 = x_167; + x_172 = x_170; } -lean_ctor_set(x_169, 0, x_162); -lean_ctor_set(x_169, 1, x_163); -lean_ctor_set(x_169, 2, x_164); -lean_ctor_set(x_169, 3, x_168); -lean_ctor_set(x_169, 4, x_166); -x_170 = lean_st_ref_set(x_4, x_169, x_161); -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -lean_dec(x_170); +lean_ctor_set(x_172, 0, x_165); +lean_ctor_set(x_172, 1, x_166); +lean_ctor_set(x_172, 2, x_167); +lean_ctor_set(x_172, 3, x_171); +lean_ctor_set(x_172, 4, x_169); +x_173 = lean_st_ref_set(x_4, x_172, x_164); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +lean_dec(x_173); lean_inc(x_8); -lean_inc(x_146); +lean_inc(x_149); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_172 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_171); -if (lean_obj_tag(x_172) == 0) +x_175 = l_Lean_Meta_Simp_pre(x_1, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_174); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_173; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -switch (lean_obj_tag(x_173)) { +lean_object* x_176; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +switch (lean_obj_tag(x_176)) { case 0: { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_175 = lean_ctor_get(x_173, 0); -lean_inc(x_175); -lean_dec(x_173); -x_176 = l_Lean_Meta_Simp_cacheResult(x_1, x_148, x_175, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_174); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +lean_dec(x_175); +x_178 = lean_ctor_get(x_176, 0); +lean_inc(x_178); +lean_dec(x_176); +x_179 = l_Lean_Meta_Simp_cacheResult(x_1, x_151, x_178, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_177); lean_dec(x_8); -lean_dec(x_146); +lean_dec(x_149); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_148); -return x_176; +lean_dec(x_151); +return x_179; } case 1: { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_177 = lean_ctor_get(x_172, 1); -lean_inc(x_177); -lean_dec(x_172); -x_178 = lean_ctor_get(x_173, 0); -lean_inc(x_178); -lean_dec(x_173); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +lean_dec(x_175); +x_181 = lean_ctor_get(x_176, 0); +lean_inc(x_181); +lean_dec(x_176); +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); lean_inc(x_8); -lean_inc(x_146); +lean_inc(x_149); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_180 = l_Lean_Meta_Simp_simpLoop(x_179, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_177); -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -lean_dec(x_180); -lean_inc(x_8); -lean_inc(x_146); -lean_inc(x_6); -lean_inc(x_5); -x_183 = l_Lean_Meta_Simp_Result_mkEqTrans(x_178, x_181, x_5, x_6, x_146, x_8, x_182); +x_183 = l_Lean_Meta_Simp_simpLoop(x_182, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_180); if (lean_obj_tag(x_183) == 0) { lean_object* x_184; lean_object* x_185; lean_object* x_186; @@ -30948,22 +31051,35 @@ lean_inc(x_184); x_185 = lean_ctor_get(x_183, 1); lean_inc(x_185); lean_dec(x_183); -x_186 = l_Lean_Meta_Simp_cacheResult(x_1, x_148, x_184, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_185); +lean_inc(x_8); +lean_inc(x_149); +lean_inc(x_6); +lean_inc(x_5); +x_186 = l_Lean_Meta_Simp_Result_mkEqTrans(x_181, x_184, x_5, x_6, x_149, x_8, x_185); +if (lean_obj_tag(x_186) == 0) +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +lean_dec(x_186); +x_189 = l_Lean_Meta_Simp_cacheResult(x_1, x_151, x_187, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_188); lean_dec(x_8); -lean_dec(x_146); +lean_dec(x_149); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_148); -return x_186; +lean_dec(x_151); +return x_189; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_148); -lean_dec(x_146); +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_dec(x_151); +lean_dec(x_149); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -30971,141 +31087,107 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_187 = lean_ctor_get(x_183, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_183, 1); -lean_inc(x_188); +x_190 = lean_ctor_get(x_186, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_186, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_192 = x_186; +} else { + lean_dec_ref(x_186); + x_192 = lean_box(0); +} +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(1, 2, 0); +} else { + x_193 = x_192; +} +lean_ctor_set(x_193, 0, x_190); +lean_ctor_set(x_193, 1, x_191); +return x_193; +} +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_181); +lean_dec(x_151); +lean_dec(x_149); +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_194 = lean_ctor_get(x_183, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_183, 1); +lean_inc(x_195); if (lean_is_exclusive(x_183)) { lean_ctor_release(x_183, 0); lean_ctor_release(x_183, 1); - x_189 = x_183; + x_196 = x_183; } else { lean_dec_ref(x_183); - x_189 = lean_box(0); + x_196 = lean_box(0); } -if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); } else { - x_190 = x_189; + x_197 = x_196; } -lean_ctor_set(x_190, 0, x_187); -lean_ctor_set(x_190, 1, x_188); -return x_190; -} -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_178); -lean_dec(x_148); -lean_dec(x_146); -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_191 = lean_ctor_get(x_180, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_180, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_193 = x_180; -} else { - lean_dec_ref(x_180); - x_193 = lean_box(0); -} -if (lean_is_scalar(x_193)) { - x_194 = lean_alloc_ctor(1, 2, 0); -} else { - x_194 = x_193; -} -lean_ctor_set(x_194, 0, x_191); -lean_ctor_set(x_194, 1, x_192); -return x_194; +lean_ctor_set(x_197, 0, x_194); +lean_ctor_set(x_197, 1, x_195); +return x_197; } } default: { -lean_object* x_195; -x_195 = lean_ctor_get(x_173, 0); -lean_inc(x_195); -lean_dec(x_173); -if (lean_obj_tag(x_195) == 0) +lean_object* x_198; +x_198 = lean_ctor_get(x_176, 0); +lean_inc(x_198); +lean_dec(x_176); +if (lean_obj_tag(x_198) == 0) { -lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -x_196 = lean_ctor_get(x_172, 1); -lean_inc(x_196); -lean_dec(x_172); -x_197 = lean_box(0); -x_198 = 1; +lean_object* x_199; lean_object* x_200; uint8_t x_201; lean_object* x_202; lean_object* x_203; +x_199 = lean_ctor_get(x_175, 1); +lean_inc(x_199); +lean_dec(x_175); +x_200 = lean_box(0); +x_201 = 1; lean_inc(x_1); -x_199 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_199, 0, x_1); -lean_ctor_set(x_199, 1, x_197); -lean_ctor_set_uint8(x_199, sizeof(void*)*2, x_198); -x_200 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_148, x_199, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_196); -lean_dec(x_148); -return x_200; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_172, 1); -lean_inc(x_201); -lean_dec(x_172); -x_202 = lean_ctor_get(x_195, 0); -lean_inc(x_202); -lean_dec(x_195); -x_203 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_148, x_202, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_201); -lean_dec(x_148); +x_202 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_202, 0, x_1); +lean_ctor_set(x_202, 1, x_200); +lean_ctor_set_uint8(x_202, sizeof(void*)*2, x_201); +x_203 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_151, x_202, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_199); +lean_dec(x_151); return x_203; } -} -} -} else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_148); -lean_dec(x_146); -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_204 = lean_ctor_get(x_172, 0); +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_175, 1); lean_inc(x_204); -x_205 = lean_ctor_get(x_172, 1); +lean_dec(x_175); +x_205 = lean_ctor_get(x_198, 0); lean_inc(x_205); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_206 = x_172; -} else { - lean_dec_ref(x_172); - x_206 = lean_box(0); +lean_dec(x_198); +x_206 = l_Lean_Meta_Simp_simpLoop_visitPreContinue(x_1, x_151, x_205, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_204); +lean_dec(x_151); +return x_206; } -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); -} else { - x_207 = x_206; } -lean_ctor_set(x_207, 0, x_204); -lean_ctor_set(x_207, 1, x_205); -return x_207; } } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_148); -lean_dec(x_146); +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +lean_dec(x_151); +lean_dec(x_149); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -31113,49 +31195,84 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_208 = lean_ctor_get(x_157, 0); +x_207 = lean_ctor_get(x_175, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_175, 1); lean_inc(x_208); -x_209 = lean_ctor_get(x_157, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_210 = x_157; +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_209 = x_175; } else { - lean_dec_ref(x_157); - x_210 = lean_box(0); + lean_dec_ref(x_175); + x_209 = lean_box(0); } -if (lean_is_scalar(x_210)) { - x_211 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_209)) { + x_210 = lean_alloc_ctor(1, 2, 0); } else { - x_211 = x_210; + x_210 = x_209; } -lean_ctor_set(x_211, 0, x_208); -lean_ctor_set(x_211, 1, x_209); -return x_211; +lean_ctor_set(x_210, 0, x_207); +lean_ctor_set(x_210, 1, x_208); +return x_210; } } else { -lean_object* x_212; lean_object* x_213; -lean_dec(x_148); -lean_dec(x_1); -x_212 = l_Lean_Meta_Simp_simpLoop___closed__2; -x_213 = l_Lean_throwError___at_Lean_Meta_Simp_simpLoop___spec__1(x_212, x_2, x_3, x_4, x_5, x_6, x_146, x_8, x_152); +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_151); +lean_dec(x_149); lean_dec(x_8); -lean_dec(x_146); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_213; +lean_dec(x_1); +x_211 = lean_ctor_get(x_160, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_160, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_213 = x_160; +} else { + lean_dec_ref(x_160); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_212); +return x_214; +} +} +else +{ +lean_object* x_215; lean_object* x_216; +lean_dec(x_151); +lean_dec(x_1); +x_215 = l_Lean_Meta_Simp_simpLoop___closed__2; +x_216 = l_Lean_throwError___at_Lean_Meta_Simp_simpLoop___spec__1(x_215, x_2, x_3, x_4, x_5, x_6, x_149, x_8, x_155); +lean_dec(x_8); +lean_dec(x_149); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_216; } } } else { -lean_object* x_214; +lean_object* x_217; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -31167,7 +31284,7 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_214 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simpLoop___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_217 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simpLoop___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -31175,7 +31292,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_214; +return x_217; } } } @@ -31826,7 +31943,7 @@ return x_11; LEAN_EXPORT lean_object* lean_simp(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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -31849,118 +31966,123 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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; -x_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); +lean_dec(x_37); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; -x_38 = l_Lean_Core_checkSystem(x_37, x_7, x_8, x_9); -if (lean_obj_tag(x_38) == 0) +lean_ctor_set(x_7, 3, x_39); +x_40 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; +x_41 = l_Lean_Core_checkSystem(x_40, x_7, x_8, x_9); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_40 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_40) == 0) +x_43 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_7, x_8, x_42); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_unbox(x_41); -lean_dec(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = l_Lean_Meta_Simp_simpImpl_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -return x_44; -} -else -{ -uint8_t x_45; -lean_dec(x_7); -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_45 = !lean_is_exclusive(x_40); +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_unbox(x_44); +lean_dec(x_44); if (x_45 == 0) { -lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_40, 0); -lean_dec(x_46); -x_47 = lean_box(0); -x_48 = 1; -x_49 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_49, 0, x_1); -lean_ctor_set(x_49, 1, x_47); -lean_ctor_set_uint8(x_49, sizeof(void*)*2, x_48); -lean_ctor_set(x_40, 0, x_49); -return x_40; +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = l_Lean_Meta_Simp_simpImpl_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +return x_47; } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_40, 1); -lean_inc(x_50); -lean_dec(x_40); -x_51 = lean_box(0); -x_52 = 1; -x_53 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_53, 0, x_1); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set_uint8(x_53, sizeof(void*)*2, 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_50); -return x_54; +uint8_t x_48; +lean_dec(x_7); +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_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_43, 0); +lean_dec(x_49); +x_50 = lean_box(0); +x_51 = 1; +x_52 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_52, 1, x_50); +lean_ctor_set_uint8(x_52, sizeof(void*)*2, x_51); +lean_ctor_set(x_43, 0, x_52); +return x_43; +} +else +{ +lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; +x_53 = lean_ctor_get(x_43, 1); +lean_inc(x_53); +lean_dec(x_43); +x_54 = lean_box(0); +x_55 = 1; +x_56 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_56, 0, x_1); +lean_ctor_set(x_56, 1, x_54); +lean_ctor_set_uint8(x_56, sizeof(void*)*2, x_55); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_53); +return x_57; } } } else { -uint8_t x_55; +uint8_t x_58; lean_dec(x_7); lean_dec(x_8); lean_dec(x_6); @@ -31969,147 +32091,149 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_40); -if (x_55 == 0) +x_58 = !lean_is_exclusive(x_43); +if (x_58 == 0) { -return x_40; +return x_43; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_40, 0); -x_57 = lean_ctor_get(x_40, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_40); -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 -{ -uint8_t x_59; -lean_dec(x_7); -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_59 = !lean_is_exclusive(x_38); -if (x_59 == 0) -{ -return x_38; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_38, 0); -x_61 = lean_ctor_get(x_38, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_43, 0); +x_60 = lean_ctor_get(x_43, 1); lean_inc(x_60); -lean_dec(x_38); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_inc(x_59); +lean_dec(x_43); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +uint8_t x_62; lean_dec(x_7); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_add(x_13, x_63); -lean_dec(x_13); -x_65 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_65, 0, x_10); -lean_ctor_set(x_65, 1, x_11); -lean_ctor_set(x_65, 2, x_12); -lean_ctor_set(x_65, 3, x_64); -lean_ctor_set(x_65, 4, x_14); -lean_ctor_set(x_65, 5, x_15); -lean_ctor_set(x_65, 6, x_16); -lean_ctor_set(x_65, 7, x_17); -lean_ctor_set(x_65, 8, x_18); -lean_ctor_set(x_65, 9, x_19); -lean_ctor_set(x_65, 10, x_20); -lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_21); -x_66 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; -x_67 = l_Lean_Core_checkSystem(x_66, x_65, x_8, x_9); -if (lean_obj_tag(x_67) == 0) +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_62 = !lean_is_exclusive(x_41); +if (x_62 == 0) { -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); +return x_41; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_41, 0); +x_64 = lean_ctor_get(x_41, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_41); +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; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_7); +x_66 = lean_unsigned_to_nat(1u); +x_67 = lean_nat_add(x_13, x_66); +lean_dec(x_13); +x_68 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_68, 0, x_10); +lean_ctor_set(x_68, 1, x_11); +lean_ctor_set(x_68, 2, x_12); +lean_ctor_set(x_68, 3, x_67); +lean_ctor_set(x_68, 4, x_14); +lean_ctor_set(x_68, 5, x_15); +lean_ctor_set(x_68, 6, x_16); +lean_ctor_set(x_68, 7, x_17); +lean_ctor_set(x_68, 8, x_18); +lean_ctor_set(x_68, 9, x_19); +lean_ctor_set(x_68, 10, x_20); +lean_ctor_set(x_68, 11, x_22); +lean_ctor_set_uint8(x_68, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_68, sizeof(void*)*12 + 1, x_23); +x_69 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceStep___lambda__2___closed__3; +x_70 = l_Lean_Core_checkSystem(x_69, x_68, x_8, x_9); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); lean_inc(x_8); -lean_inc(x_65); +lean_inc(x_68); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_69 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_65, x_8, x_68); -if (lean_obj_tag(x_69) == 0) +x_72 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_68, x_8, x_71); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_70; uint8_t x_71; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_unbox(x_70); -lean_dec(x_70); -if (x_71 == 0) +lean_object* x_73; uint8_t x_74; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_unbox(x_73); +lean_dec(x_73); +if (x_74 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -lean_dec(x_69); -x_73 = l_Lean_Meta_Simp_simpImpl_go(x_1, x_2, x_3, x_4, x_5, x_6, x_65, x_8, x_72); -return x_73; +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +lean_dec(x_72); +x_76 = l_Lean_Meta_Simp_simpImpl_go(x_1, x_2, x_3, x_4, x_5, x_6, x_68, x_8, x_75); +return x_76; } else { -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_dec(x_65); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_68); 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_74 = lean_ctor_get(x_69, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_75 = x_69; +x_77 = lean_ctor_get(x_72, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_78 = x_72; } else { - lean_dec_ref(x_69); - x_75 = lean_box(0); + lean_dec_ref(x_72); + x_78 = lean_box(0); } -x_76 = lean_box(0); -x_77 = 1; -x_78 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_78, 0, x_1); -lean_ctor_set(x_78, 1, x_76); -lean_ctor_set_uint8(x_78, sizeof(void*)*2, x_77); -if (lean_is_scalar(x_75)) { - x_79 = lean_alloc_ctor(0, 2, 0); +x_79 = lean_box(0); +x_80 = 1; +x_81 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_81, 0, x_1); +lean_ctor_set(x_81, 1, x_79); +lean_ctor_set_uint8(x_81, sizeof(void*)*2, x_80); +if (lean_is_scalar(x_78)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_75; + x_82 = x_78; } -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_74); -return x_79; +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_77); +return x_82; } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_65); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_68); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -32117,65 +32241,66 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_80 = lean_ctor_get(x_69, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_69, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_82 = x_69; -} else { - lean_dec_ref(x_69); - 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 -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_65); -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_84 = lean_ctor_get(x_67, 0); +x_83 = lean_ctor_get(x_72, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_72, 1); lean_inc(x_84); -x_85 = lean_ctor_get(x_67, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_86 = x_67; +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_85 = x_72; } else { - lean_dec_ref(x_67); - x_86 = lean_box(0); + lean_dec_ref(x_72); + x_85 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); } else { - x_87 = x_86; + x_86 = x_85; } -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_68); +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_87 = lean_ctor_get(x_70, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_70, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_89 = x_70; +} else { + lean_dec_ref(x_70); + 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_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; } } } else { -lean_object* x_88; +lean_object* x_91; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -32187,7 +32312,7 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_88 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simpLoop___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_91 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simpLoop___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -32195,7 +32320,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_88; +return x_91; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index afdc41c769..909f67b5e1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -84,6 +84,7 @@ lean_object* l_Lean_indentD(lean_object*); double lean_float_div(double, double); static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteNoIndex_x3f___spec__3___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*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__4; @@ -1796,7 +1797,7 @@ 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_object* x_82; lean_object* x_83; 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; size_t x_94; size_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_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_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; uint8_t 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; lean_object* x_94; lean_object* x_95; size_t x_96; size_t 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; 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; x_74 = lean_ctor_get(x_10, 0); x_75 = lean_ctor_get(x_10, 1); x_76 = lean_ctor_get(x_10, 2); @@ -1808,7 +1809,10 @@ x_81 = lean_ctor_get(x_10, 7); x_82 = lean_ctor_get(x_10, 8); x_83 = lean_ctor_get(x_10, 9); x_84 = lean_ctor_get(x_10, 10); -x_85 = lean_ctor_get_uint8(x_10, sizeof(void*)*11); +x_85 = lean_ctor_get_uint8(x_10, sizeof(void*)*12); +x_86 = lean_ctor_get(x_10, 11); +x_87 = lean_ctor_get_uint8(x_10, sizeof(void*)*12 + 1); +lean_inc(x_86); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); @@ -1821,125 +1825,127 @@ lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); lean_dec(x_10); -x_86 = l_Lean_replaceRef(x_3, x_79); +x_88 = l_Lean_replaceRef(x_3, x_79); lean_dec(x_79); -x_87 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_87, 0, x_74); -lean_ctor_set(x_87, 1, x_75); -lean_ctor_set(x_87, 2, x_76); -lean_ctor_set(x_87, 3, x_77); -lean_ctor_set(x_87, 4, x_78); -lean_ctor_set(x_87, 5, x_86); -lean_ctor_set(x_87, 6, x_80); -lean_ctor_set(x_87, 7, x_81); -lean_ctor_set(x_87, 8, x_82); -lean_ctor_set(x_87, 9, x_83); -lean_ctor_set(x_87, 10, x_84); -lean_ctor_set_uint8(x_87, sizeof(void*)*11, x_85); -x_88 = lean_st_ref_get(x_11, x_12); -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_ctor_get(x_89, 3); +x_89 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_89, 0, x_74); +lean_ctor_set(x_89, 1, x_75); +lean_ctor_set(x_89, 2, x_76); +lean_ctor_set(x_89, 3, x_77); +lean_ctor_set(x_89, 4, x_78); +lean_ctor_set(x_89, 5, x_88); +lean_ctor_set(x_89, 6, x_80); +lean_ctor_set(x_89, 7, x_81); +lean_ctor_set(x_89, 8, x_82); +lean_ctor_set(x_89, 9, x_83); +lean_ctor_set(x_89, 10, x_84); +lean_ctor_set(x_89, 11, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*12, x_85); +lean_ctor_set_uint8(x_89, sizeof(void*)*12 + 1, x_87); +x_90 = lean_st_ref_get(x_11, x_12); +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, 3); +lean_inc(x_93); +lean_dec(x_91); +x_94 = l_Lean_PersistentArray_toArray___rarg(x_93); +x_95 = lean_array_get_size(x_94); +x_96 = lean_usize_of_nat(x_95); +lean_dec(x_95); +x_97 = 0; +x_98 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_96, x_97, x_94); +x_99 = lean_alloc_ctor(8, 3, 0); +lean_ctor_set(x_99, 0, x_2); +lean_ctor_set(x_99, 1, x_4); +lean_ctor_set(x_99, 2, x_98); +x_100 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_99, x_8, x_9, x_89, x_11, x_92); lean_dec(x_89); -x_92 = l_Lean_PersistentArray_toArray___rarg(x_91); -x_93 = lean_array_get_size(x_92); -x_94 = lean_usize_of_nat(x_93); -lean_dec(x_93); -x_95 = 0; -x_96 = l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(x_94, x_95, x_92); -x_97 = lean_alloc_ctor(8, 3, 0); -lean_ctor_set(x_97, 0, x_2); -lean_ctor_set(x_97, 1, x_4); -lean_ctor_set(x_97, 2, x_96); -x_98 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_97, x_8, x_9, x_87, x_11, x_90); -lean_dec(x_87); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_st_ref_take(x_11, x_100); -x_102 = lean_ctor_get(x_101, 0); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_104 = x_101; -} else { - lean_dec_ref(x_101); - x_104 = lean_box(0); -} -x_105 = lean_ctor_get(x_102, 0); +lean_dec(x_100); +x_103 = lean_st_ref_take(x_11, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); lean_inc(x_105); -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -x_107 = lean_ctor_get(x_102, 2); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_106 = x_103; +} else { + lean_dec_ref(x_103); + x_106 = lean_box(0); +} +x_107 = lean_ctor_get(x_104, 0); lean_inc(x_107); -x_108 = lean_ctor_get(x_102, 4); +x_108 = lean_ctor_get(x_104, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_102, 5); +x_109 = lean_ctor_get(x_104, 2); lean_inc(x_109); -x_110 = lean_ctor_get(x_102, 6); +x_110 = lean_ctor_get(x_104, 4); lean_inc(x_110); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - lean_ctor_release(x_102, 2); - lean_ctor_release(x_102, 3); - lean_ctor_release(x_102, 4); - lean_ctor_release(x_102, 5); - lean_ctor_release(x_102, 6); - x_111 = x_102; +x_111 = lean_ctor_get(x_104, 5); +lean_inc(x_111); +x_112 = lean_ctor_get(x_104, 6); +lean_inc(x_112); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + lean_ctor_release(x_104, 2); + lean_ctor_release(x_104, 3); + lean_ctor_release(x_104, 4); + lean_ctor_release(x_104, 5); + lean_ctor_release(x_104, 6); + x_113 = x_104; } else { - lean_dec_ref(x_102); - x_111 = lean_box(0); + lean_dec_ref(x_104); + x_113 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_112 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_106)) { + x_114 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_104; + x_114 = x_106; } -lean_ctor_set(x_112, 0, x_3); -lean_ctor_set(x_112, 1, x_99); -x_113 = l_Lean_PersistentArray_push___rarg(x_1, x_112); -if (lean_is_scalar(x_111)) { - x_114 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_114, 0, x_3); +lean_ctor_set(x_114, 1, x_101); +x_115 = l_Lean_PersistentArray_push___rarg(x_1, x_114); +if (lean_is_scalar(x_113)) { + x_116 = lean_alloc_ctor(0, 7, 0); } else { - x_114 = x_111; + x_116 = x_113; } -lean_ctor_set(x_114, 0, x_105); -lean_ctor_set(x_114, 1, x_106); -lean_ctor_set(x_114, 2, x_107); -lean_ctor_set(x_114, 3, x_113); -lean_ctor_set(x_114, 4, x_108); -lean_ctor_set(x_114, 5, x_109); -lean_ctor_set(x_114, 6, x_110); -x_115 = lean_st_ref_set(x_11, x_114, x_103); -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_117 = x_115; -} else { - lean_dec_ref(x_115); - x_117 = lean_box(0); -} -x_118 = lean_box(0); -if (lean_is_scalar(x_117)) { - x_119 = lean_alloc_ctor(0, 2, 0); -} else { +lean_ctor_set(x_116, 0, x_107); +lean_ctor_set(x_116, 1, x_108); +lean_ctor_set(x_116, 2, x_109); +lean_ctor_set(x_116, 3, x_115); +lean_ctor_set(x_116, 4, x_110); +lean_ctor_set(x_116, 5, x_111); +lean_ctor_set(x_116, 6, x_112); +x_117 = lean_st_ref_set(x_11, x_116, x_105); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); x_119 = x_117; +} else { + lean_dec_ref(x_117); + x_119 = lean_box(0); } -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_116); -return x_119; +x_120 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_121 = lean_alloc_ctor(0, 2, 0); +} else { + x_121 = x_119; +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_118); +return x_121; } } } @@ -19969,1004 +19975,782 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpUsingDecide___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_11; lean_object* x_12; lean_object* x_20; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_11 = l_Lean_Meta_mkDecide(x_1, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +x_20 = l_Lean_Meta_mkDecide(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_20) == 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; uint8_t x_20; -x_12 = lean_ctor_get(x_6, 0); -lean_inc(x_12); -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 = lean_ctor_get(x_6, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_6, 2); -lean_inc(x_16); -x_17 = lean_ctor_get(x_6, 3); -lean_inc(x_17); -x_18 = lean_ctor_get(x_6, 4); -lean_inc(x_18); -x_19 = lean_ctor_get(x_6, 5); -lean_inc(x_19); -x_20 = !lean_is_exclusive(x_12); -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; uint8_t x_29; +x_21 = lean_ctor_get(x_6, 0); +lean_inc(x_21); +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 = lean_ctor_get(x_6, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_6, 2); +lean_inc(x_25); +x_26 = lean_ctor_get(x_6, 3); +lean_inc(x_26); +x_27 = lean_ctor_get(x_6, 4); +lean_inc(x_27); +x_28 = lean_ctor_get(x_6, 5); +lean_inc(x_28); +x_29 = !lean_is_exclusive(x_21); +if (x_29 == 0) { -uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_23 = 1; -lean_ctor_set_uint8(x_12, 9, x_23); -x_24 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_24, 0, x_12); -lean_ctor_set(x_24, 1, x_15); -lean_ctor_set(x_24, 2, x_16); -lean_ctor_set(x_24, 3, x_17); -lean_ctor_set(x_24, 4, x_18); -lean_ctor_set(x_24, 5, x_19); -lean_ctor_set_uint8(x_24, sizeof(void*)*6, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*6 + 1, x_22); +uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_32 = 1; +lean_ctor_set_uint8(x_21, 9, x_32); +x_33 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_33, 0, x_21); +lean_ctor_set(x_33, 1, x_24); +lean_ctor_set(x_33, 2, x_25); +lean_ctor_set(x_33, 3, x_26); +lean_ctor_set(x_33, 4, x_27); +lean_ctor_set(x_33, 5, x_28); +lean_ctor_set_uint8(x_33, sizeof(void*)*6, x_30); +lean_ctor_set_uint8(x_33, sizeof(void*)*6 + 1, x_31); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_13); -x_25 = lean_whnf(x_13, x_24, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_25) == 0) +lean_inc(x_22); +x_34 = lean_whnf(x_22, x_33, x_7, x_8, x_9, x_23); +if (lean_obj_tag(x_34) == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_25, 1); -x_29 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; -x_30 = l_Lean_Expr_isConstOf(x_27, x_29); -if (x_30 == 0) +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +x_38 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; +x_39 = l_Lean_Expr_isConstOf(x_36, x_38); +if (x_39 == 0) { -lean_object* x_31; uint8_t x_32; -x_31 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; -x_32 = l_Lean_Expr_isConstOf(x_27, x_31); -lean_dec(x_27); -if (x_32 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; +x_41 = l_Lean_Expr_isConstOf(x_36, x_40); +lean_dec(x_36); +if (x_41 == 0) { -lean_object* x_33; -lean_dec(x_13); +lean_object* x_42; +lean_dec(x_22); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_33 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -lean_ctor_set(x_25, 0, x_33); -return x_25; +x_42 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +lean_ctor_set(x_34, 0, x_42); +return x_34; } else { -lean_object* x_34; lean_object* x_35; -lean_free_object(x_25); -x_34 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; -x_35 = l_Lean_Meta_mkEqRefl(x_34, x_6, x_7, x_8, x_9, x_28); -if (lean_obj_tag(x_35) == 0) +lean_object* x_43; lean_object* x_44; +lean_free_object(x_34); +x_43 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; +x_44 = l_Lean_Meta_mkEqRefl(x_43, x_6, x_7, x_8, x_9, x_37); +if (lean_obj_tag(x_44) == 0) { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 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; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_37 = lean_ctor_get(x_35, 0); -x_38 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_39 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_40 = lean_array_push(x_39, x_1); -x_41 = lean_array_push(x_40, x_38); -x_42 = lean_array_push(x_41, x_37); -x_43 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; -x_44 = l_Lean_mkAppN(x_43, x_42); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; -x_47 = 1; -x_48 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_45); -lean_ctor_set_uint8(x_48, sizeof(void*)*2, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_35, 0, x_49); -return x_35; +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; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_46 = lean_ctor_get(x_44, 0); +x_47 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_48 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_49 = lean_array_push(x_48, x_1); +x_50 = lean_array_push(x_49, x_47); +x_51 = lean_array_push(x_50, x_46); +x_52 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; +x_53 = l_Lean_mkAppN(x_52, x_51); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; +x_56 = 1; +x_57 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_54); +lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_56); +x_58 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_44, 0, x_58); +return x_44; } 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; lean_object* x_56; 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; -x_50 = lean_ctor_get(x_35, 0); -x_51 = lean_ctor_get(x_35, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_35); -x_52 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_53 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_54 = lean_array_push(x_53, x_1); -x_55 = lean_array_push(x_54, x_52); -x_56 = lean_array_push(x_55, x_50); -x_57 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; -x_58 = l_Lean_mkAppN(x_57, x_56); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; -x_61 = 1; -x_62 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*2, x_61); -x_63 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_51); -return x_64; -} -} -else -{ -uint8_t x_65; -lean_dec(x_13); -lean_dec(x_1); -x_65 = !lean_is_exclusive(x_35); -if (x_65 == 0) -{ -lean_object* x_66; uint8_t x_67; -x_66 = lean_ctor_get(x_35, 0); -x_67 = l_Lean_Exception_isRuntime(x_66); -if (x_67 == 0) -{ -lean_object* x_68; -lean_dec(x_66); -x_68 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -lean_ctor_set_tag(x_35, 0); -lean_ctor_set(x_35, 0, x_68); -return x_35; -} -else -{ -return x_35; -} -} -else -{ -lean_object* x_69; lean_object* x_70; uint8_t 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 = l_Lean_Exception_isRuntime(x_69); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; -lean_dec(x_69); -x_72 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_59 = lean_ctor_get(x_44, 0); +x_60 = lean_ctor_get(x_44, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_44); +x_61 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_62 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_63 = lean_array_push(x_62, x_1); +x_64 = lean_array_push(x_63, x_61); +x_65 = lean_array_push(x_64, x_59); +x_66 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; +x_67 = l_Lean_mkAppN(x_66, x_65); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; +x_70 = 1; +x_71 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_68); +lean_ctor_set_uint8(x_71, sizeof(void*)*2, x_70); +x_72 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_72, 0, 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_70); +lean_ctor_set(x_73, 1, x_60); return x_73; } -else -{ -lean_object* x_74; -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_69); -lean_ctor_set(x_74, 1, x_70); -return x_74; -} -} -} -} } else { -lean_object* x_75; lean_object* x_76; -lean_free_object(x_25); -lean_dec(x_27); -x_75 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; -x_76 = l_Lean_Meta_mkEqRefl(x_75, x_6, x_7, x_8, x_9, x_28); -if (lean_obj_tag(x_76) == 0) -{ -uint8_t x_77; -x_77 = !lean_is_exclusive(x_76); -if (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; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; -x_78 = lean_ctor_get(x_76, 0); -x_79 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_80 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_81 = lean_array_push(x_80, x_1); -x_82 = lean_array_push(x_81, x_79); -x_83 = lean_array_push(x_82, x_78); -x_84 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; -x_85 = l_Lean_mkAppN(x_84, x_83); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; -x_88 = 1; -x_89 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_86); -lean_ctor_set_uint8(x_89, sizeof(void*)*2, x_88); -x_90 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_76, 0, x_90); -return x_76; -} -else -{ -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; lean_object* x_105; -x_91 = lean_ctor_get(x_76, 0); -x_92 = lean_ctor_get(x_76, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_76); -x_93 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_94 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_95 = lean_array_push(x_94, x_1); -x_96 = lean_array_push(x_95, x_93); -x_97 = lean_array_push(x_96, x_91); -x_98 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; -x_99 = l_Lean_mkAppN(x_98, x_97); -x_100 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_100, 0, x_99); -x_101 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; -x_102 = 1; -x_103 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_100); -lean_ctor_set_uint8(x_103, sizeof(void*)*2, x_102); -x_104 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_104, 0, x_103); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_92); -return x_105; -} -} -else -{ -uint8_t x_106; -lean_dec(x_13); +lean_object* x_74; lean_object* x_75; +lean_dec(x_22); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_76); -if (x_106 == 0) -{ -lean_object* x_107; uint8_t x_108; -x_107 = lean_ctor_get(x_76, 0); -x_108 = l_Lean_Exception_isRuntime(x_107); -if (x_108 == 0) -{ -lean_object* x_109; -lean_dec(x_107); -x_109 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -lean_ctor_set_tag(x_76, 0); -lean_ctor_set(x_76, 0, x_109); -return x_76; +x_74 = lean_ctor_get(x_44, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_44, 1); +lean_inc(x_75); +lean_dec(x_44); +x_11 = x_74; +x_12 = x_75; +goto block_19; } -else -{ -return x_76; } } else { -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = lean_ctor_get(x_76, 0); -x_111 = lean_ctor_get(x_76, 1); -lean_inc(x_111); +lean_object* x_76; lean_object* x_77; +lean_free_object(x_34); +lean_dec(x_36); +x_76 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; +x_77 = l_Lean_Meta_mkEqRefl(x_76, x_6, x_7, x_8, x_9, x_37); +if (lean_obj_tag(x_77) == 0) +{ +uint8_t x_78; +x_78 = !lean_is_exclusive(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; 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; +x_79 = lean_ctor_get(x_77, 0); +x_80 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_81 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_82 = lean_array_push(x_81, x_1); +x_83 = lean_array_push(x_82, x_80); +x_84 = lean_array_push(x_83, x_79); +x_85 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; +x_86 = l_Lean_mkAppN(x_85, x_84); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_86); +x_88 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; +x_89 = 1; +x_90 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_87); +lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_89); +x_91 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_77, 0, x_91); +return x_77; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 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; +x_92 = lean_ctor_get(x_77, 0); +x_93 = lean_ctor_get(x_77, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_77); +x_94 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_95 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_96 = lean_array_push(x_95, x_1); +x_97 = lean_array_push(x_96, x_94); +x_98 = lean_array_push(x_97, x_92); +x_99 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; +x_100 = l_Lean_mkAppN(x_99, x_98); +x_101 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; +x_103 = 1; +x_104 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_101); +lean_ctor_set_uint8(x_104, sizeof(void*)*2, x_103); +x_105 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_105, 0, 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_93); +return x_106; +} +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_22); +lean_dec(x_1); +x_107 = lean_ctor_get(x_77, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_77, 1); +lean_inc(x_108); +lean_dec(x_77); +x_11 = x_107; +x_12 = x_108; +goto block_19; +} +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_109 = lean_ctor_get(x_34, 0); +x_110 = lean_ctor_get(x_34, 1); lean_inc(x_110); -lean_dec(x_76); -x_112 = l_Lean_Exception_isRuntime(x_110); +lean_inc(x_109); +lean_dec(x_34); +x_111 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; +x_112 = l_Lean_Expr_isConstOf(x_109, x_111); if (x_112 == 0) { -lean_object* x_113; lean_object* x_114; -lean_dec(x_110); -x_113 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -return x_114; -} -else +lean_object* x_113; uint8_t x_114; +x_113 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; +x_114 = l_Lean_Expr_isConstOf(x_109, x_113); +lean_dec(x_109); +if (x_114 == 0) { -lean_object* x_115; -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_111); -return x_115; -} -} -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_116 = lean_ctor_get(x_25, 0); -x_117 = lean_ctor_get(x_25, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_25); -x_118 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; -x_119 = l_Lean_Expr_isConstOf(x_116, x_118); -if (x_119 == 0) -{ -lean_object* x_120; uint8_t x_121; -x_120 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; -x_121 = l_Lean_Expr_isConstOf(x_116, x_120); -lean_dec(x_116); -if (x_121 == 0) -{ -lean_object* x_122; lean_object* x_123; -lean_dec(x_13); +lean_object* x_115; lean_object* x_116; +lean_dec(x_22); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_122 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_117); -return x_123; +x_115 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_110); +return x_116; } else { -lean_object* x_124; lean_object* x_125; -x_124 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; -x_125 = l_Lean_Meta_mkEqRefl(x_124, x_6, x_7, x_8, x_9, x_117); -if (lean_obj_tag(x_125) == 0) +lean_object* x_117; lean_object* x_118; +x_117 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; +x_118 = l_Lean_Meta_mkEqRefl(x_117, x_6, x_7, x_8, x_9, x_110); +if (lean_obj_tag(x_118) == 0) { -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; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_128 = x_125; +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; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_121 = x_118; } else { - lean_dec_ref(x_125); - x_128 = lean_box(0); + lean_dec_ref(x_118); + x_121 = lean_box(0); } -x_129 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_130 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_131 = lean_array_push(x_130, x_1); -x_132 = lean_array_push(x_131, x_129); -x_133 = lean_array_push(x_132, x_126); -x_134 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; -x_135 = l_Lean_mkAppN(x_134, x_133); -x_136 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_136, 0, x_135); -x_137 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; -x_138 = 1; -x_139 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_136); -lean_ctor_set_uint8(x_139, sizeof(void*)*2, x_138); -x_140 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_140, 0, x_139); -if (lean_is_scalar(x_128)) { - x_141 = lean_alloc_ctor(0, 2, 0); +x_122 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_123 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_124 = lean_array_push(x_123, x_1); +x_125 = lean_array_push(x_124, x_122); +x_126 = lean_array_push(x_125, x_119); +x_127 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; +x_128 = l_Lean_mkAppN(x_127, x_126); +x_129 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_129, 0, x_128); +x_130 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; +x_131 = 1; +x_132 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_129); +lean_ctor_set_uint8(x_132, sizeof(void*)*2, x_131); +x_133 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_133, 0, x_132); +if (lean_is_scalar(x_121)) { + x_134 = lean_alloc_ctor(0, 2, 0); } else { - x_141 = x_128; + x_134 = x_121; } -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_127); -return x_141; +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_120); +return x_134; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; -lean_dec(x_13); +lean_object* x_135; lean_object* x_136; +lean_dec(x_22); lean_dec(x_1); -x_142 = lean_ctor_get(x_125, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_125, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_144 = x_125; -} else { - lean_dec_ref(x_125); - x_144 = lean_box(0); -} -x_145 = l_Lean_Exception_isRuntime(x_142); -if (x_145 == 0) -{ -lean_object* x_146; lean_object* x_147; -lean_dec(x_142); -x_146 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_144)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_144; - lean_ctor_set_tag(x_147, 0); -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_143); -return x_147; -} -else -{ -lean_object* x_148; -if (lean_is_scalar(x_144)) { - x_148 = lean_alloc_ctor(1, 2, 0); -} else { - x_148 = x_144; -} -lean_ctor_set(x_148, 0, x_142); -lean_ctor_set(x_148, 1, x_143); -return x_148; -} +x_135 = lean_ctor_get(x_118, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_118, 1); +lean_inc(x_136); +lean_dec(x_118); +x_11 = x_135; +x_12 = x_136; +goto block_19; } } } else { -lean_object* x_149; lean_object* x_150; -lean_dec(x_116); -x_149 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; -x_150 = l_Lean_Meta_mkEqRefl(x_149, x_6, x_7, x_8, x_9, x_117); -if (lean_obj_tag(x_150) == 0) +lean_object* x_137; lean_object* x_138; +lean_dec(x_109); +x_137 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; +x_138 = l_Lean_Meta_mkEqRefl(x_137, x_6, x_7, x_8, x_9, x_110); +if (lean_obj_tag(x_138) == 0) { -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; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; +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; uint8_t x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +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_150); - x_153 = lean_box(0); + lean_dec_ref(x_138); + x_141 = lean_box(0); } -x_154 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_155 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_156 = lean_array_push(x_155, x_1); -x_157 = lean_array_push(x_156, x_154); -x_158 = lean_array_push(x_157, x_151); -x_159 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; -x_160 = l_Lean_mkAppN(x_159, x_158); -x_161 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_161, 0, x_160); -x_162 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; -x_163 = 1; -x_164 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_161); -lean_ctor_set_uint8(x_164, sizeof(void*)*2, x_163); -x_165 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_165, 0, x_164); -if (lean_is_scalar(x_153)) { - x_166 = lean_alloc_ctor(0, 2, 0); +x_142 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_143 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_144 = lean_array_push(x_143, x_1); +x_145 = lean_array_push(x_144, x_142); +x_146 = lean_array_push(x_145, x_139); +x_147 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; +x_148 = l_Lean_mkAppN(x_147, x_146); +x_149 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_149, 0, x_148); +x_150 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; +x_151 = 1; +x_152 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_149); +lean_ctor_set_uint8(x_152, sizeof(void*)*2, x_151); +x_153 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_153, 0, x_152); +if (lean_is_scalar(x_141)) { + x_154 = lean_alloc_ctor(0, 2, 0); } else { - x_166 = x_153; + x_154 = x_141; } -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_152); -return x_166; +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_140); +return x_154; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; -lean_dec(x_13); +lean_object* x_155; lean_object* x_156; +lean_dec(x_22); lean_dec(x_1); -x_167 = lean_ctor_get(x_150, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_150, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_169 = x_150; -} else { - lean_dec_ref(x_150); - x_169 = lean_box(0); -} -x_170 = l_Lean_Exception_isRuntime(x_167); -if (x_170 == 0) -{ -lean_object* x_171; lean_object* x_172; -lean_dec(x_167); -x_171 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_169)) { - x_172 = lean_alloc_ctor(0, 2, 0); -} else { - x_172 = x_169; - lean_ctor_set_tag(x_172, 0); -} -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_168); -return x_172; -} -else -{ -lean_object* x_173; -if (lean_is_scalar(x_169)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_169; -} -lean_ctor_set(x_173, 0, x_167); -lean_ctor_set(x_173, 1, x_168); -return x_173; -} +x_155 = lean_ctor_get(x_138, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_138, 1); +lean_inc(x_156); +lean_dec(x_138); +x_11 = x_155; +x_12 = x_156; +goto block_19; } } } } else { -uint8_t x_174; -lean_dec(x_13); +lean_object* x_157; lean_object* x_158; +lean_dec(x_22); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_174 = !lean_is_exclusive(x_25); -if (x_174 == 0) -{ -lean_object* x_175; uint8_t x_176; -x_175 = lean_ctor_get(x_25, 0); -x_176 = l_Lean_Exception_isRuntime(x_175); -if (x_176 == 0) -{ -lean_object* x_177; -lean_dec(x_175); -x_177 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -lean_ctor_set_tag(x_25, 0); -lean_ctor_set(x_25, 0, x_177); -return x_25; -} -else -{ -return x_25; +x_157 = lean_ctor_get(x_34, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_34, 1); +lean_inc(x_158); +lean_dec(x_34); +x_11 = x_157; +x_12 = x_158; +goto block_19; } } else { -lean_object* x_178; lean_object* x_179; uint8_t x_180; -x_178 = lean_ctor_get(x_25, 0); -x_179 = lean_ctor_get(x_25, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_25); -x_180 = l_Lean_Exception_isRuntime(x_178); -if (x_180 == 0) -{ -lean_object* x_181; lean_object* x_182; -lean_dec(x_178); -x_181 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_179); -return x_182; -} -else -{ -lean_object* x_183; -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_178); -lean_ctor_set(x_183, 1, x_179); -return x_183; -} -} -} -} -else -{ -uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; uint8_t x_192; uint8_t x_193; uint8_t x_194; uint8_t x_195; uint8_t x_196; uint8_t x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_184 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_185 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_186 = lean_ctor_get_uint8(x_12, 0); -x_187 = lean_ctor_get_uint8(x_12, 1); -x_188 = lean_ctor_get_uint8(x_12, 2); -x_189 = lean_ctor_get_uint8(x_12, 3); -x_190 = lean_ctor_get_uint8(x_12, 4); -x_191 = lean_ctor_get_uint8(x_12, 5); -x_192 = lean_ctor_get_uint8(x_12, 6); -x_193 = lean_ctor_get_uint8(x_12, 7); -x_194 = lean_ctor_get_uint8(x_12, 8); -x_195 = lean_ctor_get_uint8(x_12, 10); -x_196 = lean_ctor_get_uint8(x_12, 11); -x_197 = lean_ctor_get_uint8(x_12, 12); -lean_dec(x_12); -x_198 = 1; -x_199 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_199, 0, x_186); -lean_ctor_set_uint8(x_199, 1, x_187); -lean_ctor_set_uint8(x_199, 2, x_188); -lean_ctor_set_uint8(x_199, 3, x_189); -lean_ctor_set_uint8(x_199, 4, x_190); -lean_ctor_set_uint8(x_199, 5, x_191); -lean_ctor_set_uint8(x_199, 6, x_192); -lean_ctor_set_uint8(x_199, 7, x_193); -lean_ctor_set_uint8(x_199, 8, x_194); -lean_ctor_set_uint8(x_199, 9, x_198); -lean_ctor_set_uint8(x_199, 10, x_195); -lean_ctor_set_uint8(x_199, 11, x_196); -lean_ctor_set_uint8(x_199, 12, x_197); -x_200 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_15); -lean_ctor_set(x_200, 2, x_16); -lean_ctor_set(x_200, 3, x_17); -lean_ctor_set(x_200, 4, x_18); -lean_ctor_set(x_200, 5, x_19); -lean_ctor_set_uint8(x_200, sizeof(void*)*6, x_184); -lean_ctor_set_uint8(x_200, sizeof(void*)*6 + 1, x_185); +uint8_t x_159; uint8_t x_160; uint8_t x_161; uint8_t x_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; uint8_t x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_159 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_160 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_161 = lean_ctor_get_uint8(x_21, 0); +x_162 = lean_ctor_get_uint8(x_21, 1); +x_163 = lean_ctor_get_uint8(x_21, 2); +x_164 = lean_ctor_get_uint8(x_21, 3); +x_165 = lean_ctor_get_uint8(x_21, 4); +x_166 = lean_ctor_get_uint8(x_21, 5); +x_167 = lean_ctor_get_uint8(x_21, 6); +x_168 = lean_ctor_get_uint8(x_21, 7); +x_169 = lean_ctor_get_uint8(x_21, 8); +x_170 = lean_ctor_get_uint8(x_21, 10); +x_171 = lean_ctor_get_uint8(x_21, 11); +x_172 = lean_ctor_get_uint8(x_21, 12); +lean_dec(x_21); +x_173 = 1; +x_174 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_174, 0, x_161); +lean_ctor_set_uint8(x_174, 1, x_162); +lean_ctor_set_uint8(x_174, 2, x_163); +lean_ctor_set_uint8(x_174, 3, x_164); +lean_ctor_set_uint8(x_174, 4, x_165); +lean_ctor_set_uint8(x_174, 5, x_166); +lean_ctor_set_uint8(x_174, 6, x_167); +lean_ctor_set_uint8(x_174, 7, x_168); +lean_ctor_set_uint8(x_174, 8, x_169); +lean_ctor_set_uint8(x_174, 9, x_173); +lean_ctor_set_uint8(x_174, 10, x_170); +lean_ctor_set_uint8(x_174, 11, x_171); +lean_ctor_set_uint8(x_174, 12, x_172); +x_175 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_24); +lean_ctor_set(x_175, 2, x_25); +lean_ctor_set(x_175, 3, x_26); +lean_ctor_set(x_175, 4, x_27); +lean_ctor_set(x_175, 5, x_28); +lean_ctor_set_uint8(x_175, sizeof(void*)*6, x_159); +lean_ctor_set_uint8(x_175, sizeof(void*)*6 + 1, x_160); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_13); -x_201 = lean_whnf(x_13, x_200, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_201) == 0) +lean_inc(x_22); +x_176 = lean_whnf(x_22, x_175, x_7, x_8, x_9, x_23); +if (lean_obj_tag(x_176) == 0) { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; uint8_t x_206; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_204 = x_201; +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +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_201); - x_204 = lean_box(0); + lean_dec_ref(x_176); + x_179 = lean_box(0); } -x_205 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; -x_206 = l_Lean_Expr_isConstOf(x_202, x_205); -if (x_206 == 0) +x_180 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__3; +x_181 = l_Lean_Expr_isConstOf(x_177, x_180); +if (x_181 == 0) { -lean_object* x_207; uint8_t x_208; -x_207 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; -x_208 = l_Lean_Expr_isConstOf(x_202, x_207); -lean_dec(x_202); -if (x_208 == 0) +lean_object* x_182; uint8_t x_183; +x_182 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; +x_183 = l_Lean_Expr_isConstOf(x_177, x_182); +lean_dec(x_177); +if (x_183 == 0) { -lean_object* x_209; lean_object* x_210; -lean_dec(x_13); +lean_object* x_184; lean_object* x_185; +lean_dec(x_22); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_209 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_204)) { - x_210 = lean_alloc_ctor(0, 2, 0); +x_184 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +if (lean_is_scalar(x_179)) { + x_185 = lean_alloc_ctor(0, 2, 0); } else { - x_210 = x_204; + x_185 = x_179; } -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_203); -return x_210; +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_178); +return x_185; } else { -lean_object* x_211; lean_object* x_212; -lean_dec(x_204); -x_211 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; -x_212 = l_Lean_Meta_mkEqRefl(x_211, x_6, x_7, x_8, x_9, x_203); -if (lean_obj_tag(x_212) == 0) +lean_object* x_186; lean_object* x_187; +lean_dec(x_179); +x_186 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__6; +x_187 = l_Lean_Meta_mkEqRefl(x_186, x_6, x_7, x_8, x_9, x_178); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_215 = x_212; +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; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_190 = x_187; } else { - lean_dec_ref(x_212); - x_215 = lean_box(0); + lean_dec_ref(x_187); + x_190 = lean_box(0); +} +x_191 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_192 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_193 = lean_array_push(x_192, x_1); +x_194 = lean_array_push(x_193, x_191); +x_195 = lean_array_push(x_194, x_188); +x_196 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; +x_197 = l_Lean_mkAppN(x_196, x_195); +x_198 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_198, 0, x_197); +x_199 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; +x_200 = 1; +x_201 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_198); +lean_ctor_set_uint8(x_201, sizeof(void*)*2, x_200); +x_202 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_202, 0, x_201); +if (lean_is_scalar(x_190)) { + x_203 = lean_alloc_ctor(0, 2, 0); +} else { + x_203 = x_190; +} +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_189); +return x_203; +} +else +{ +lean_object* x_204; lean_object* x_205; +lean_dec(x_22); +lean_dec(x_1); +x_204 = lean_ctor_get(x_187, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_187, 1); +lean_inc(x_205); +lean_dec(x_187); +x_11 = x_204; +x_12 = x_205; +goto block_19; +} +} +} +else +{ +lean_object* x_206; lean_object* x_207; +lean_dec(x_179); +lean_dec(x_177); +x_206 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; +x_207 = l_Lean_Meta_mkEqRefl(x_206, x_6, x_7, x_8, x_9, x_178); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_210 = x_207; +} else { + lean_dec_ref(x_207); + x_210 = lean_box(0); +} +x_211 = l_Lean_Expr_appArg_x21(x_22); +lean_dec(x_22); +x_212 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; +x_213 = lean_array_push(x_212, x_1); +x_214 = lean_array_push(x_213, x_211); +x_215 = lean_array_push(x_214, x_208); +x_216 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; +x_217 = l_Lean_mkAppN(x_216, x_215); +x_218 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_218, 0, x_217); +x_219 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; +x_220 = 1; +x_221 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_218); +lean_ctor_set_uint8(x_221, sizeof(void*)*2, x_220); +x_222 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_222, 0, x_221); +if (lean_is_scalar(x_210)) { + x_223 = lean_alloc_ctor(0, 2, 0); +} else { + x_223 = x_210; } -x_216 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_217 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_218 = lean_array_push(x_217, x_1); -x_219 = lean_array_push(x_218, x_216); -x_220 = lean_array_push(x_219, x_213); -x_221 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; -x_222 = l_Lean_mkAppN(x_221, x_220); -x_223 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_223, 0, x_222); -x_224 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__7; -x_225 = 1; -x_226 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_223); -lean_ctor_set_uint8(x_226, sizeof(void*)*2, x_225); -x_227 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_227, 0, x_226); -if (lean_is_scalar(x_215)) { - x_228 = lean_alloc_ctor(0, 2, 0); -} else { - x_228 = x_215; -} -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_214); -return x_228; +lean_ctor_set(x_223, 1, x_209); +return x_223; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; -lean_dec(x_13); +lean_object* x_224; lean_object* x_225; +lean_dec(x_22); lean_dec(x_1); -x_229 = lean_ctor_get(x_212, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_212, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_231 = x_212; -} else { - lean_dec_ref(x_212); - x_231 = lean_box(0); +x_224 = lean_ctor_get(x_207, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_207, 1); +lean_inc(x_225); +lean_dec(x_207); +x_11 = x_224; +x_12 = x_225; +goto block_19; } -x_232 = l_Lean_Exception_isRuntime(x_229); -if (x_232 == 0) +} +} +else { -lean_object* x_233; lean_object* x_234; +lean_object* x_226; lean_object* x_227; +lean_dec(x_22); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_226 = lean_ctor_get(x_176, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_176, 1); +lean_inc(x_227); +lean_dec(x_176); +x_11 = x_226; +x_12 = x_227; +goto block_19; +} +} +} +else +{ +uint8_t x_228; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_228 = !lean_is_exclusive(x_20); +if (x_228 == 0) +{ +lean_object* x_229; uint8_t x_230; +x_229 = lean_ctor_get(x_20, 0); +x_230 = l_Lean_Exception_isInterrupt(x_229); +if (x_230 == 0) +{ +uint8_t x_231; +x_231 = l_Lean_Exception_isRuntime(x_229); +if (x_231 == 0) +{ +lean_object* x_232; lean_dec(x_229); -x_233 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_231)) { - x_234 = lean_alloc_ctor(0, 2, 0); -} else { - x_234 = x_231; - lean_ctor_set_tag(x_234, 0); -} -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_230); -return x_234; +x_232 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +lean_ctor_set_tag(x_20, 0); +lean_ctor_set(x_20, 0, x_232); +return x_20; } else { -lean_object* x_235; -if (lean_is_scalar(x_231)) { - x_235 = lean_alloc_ctor(1, 2, 0); -} else { - x_235 = x_231; -} -lean_ctor_set(x_235, 0, x_229); -lean_ctor_set(x_235, 1, x_230); -return x_235; -} -} +return x_20; } } else { -lean_object* x_236; lean_object* x_237; -lean_dec(x_204); -lean_dec(x_202); -x_236 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__12; -x_237 = l_Lean_Meta_mkEqRefl(x_236, x_6, x_7, x_8, x_9, x_203); -if (lean_obj_tag(x_237) == 0) -{ -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; lean_object* x_249; uint8_t x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_240 = x_237; -} else { - lean_dec_ref(x_237); - x_240 = lean_box(0); -} -x_241 = l_Lean_Expr_appArg_x21(x_13); -lean_dec(x_13); -x_242 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__11; -x_243 = lean_array_push(x_242, x_1); -x_244 = lean_array_push(x_243, x_241); -x_245 = lean_array_push(x_244, x_238); -x_246 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__18; -x_247 = l_Lean_mkAppN(x_246, x_245); -x_248 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_248, 0, x_247); -x_249 = l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__15; -x_250 = 1; -x_251 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_248); -lean_ctor_set_uint8(x_251, sizeof(void*)*2, x_250); -x_252 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_252, 0, x_251); -if (lean_is_scalar(x_240)) { - x_253 = lean_alloc_ctor(0, 2, 0); -} else { - x_253 = x_240; -} -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_239); -return x_253; -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; -lean_dec(x_13); -lean_dec(x_1); -x_254 = lean_ctor_get(x_237, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_237, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_256 = x_237; -} else { - lean_dec_ref(x_237); - x_256 = lean_box(0); -} -x_257 = l_Lean_Exception_isRuntime(x_254); -if (x_257 == 0) -{ -lean_object* x_258; lean_object* x_259; -lean_dec(x_254); -x_258 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_256)) { - x_259 = lean_alloc_ctor(0, 2, 0); -} else { - x_259 = x_256; - lean_ctor_set_tag(x_259, 0); -} -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_255); -return x_259; -} -else -{ -lean_object* x_260; -if (lean_is_scalar(x_256)) { - x_260 = lean_alloc_ctor(1, 2, 0); -} else { - x_260 = x_256; -} -lean_ctor_set(x_260, 0, x_254); -lean_ctor_set(x_260, 1, x_255); -return x_260; -} -} +return x_20; } } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_261 = lean_ctor_get(x_201, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_201, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_263 = x_201; -} else { - lean_dec_ref(x_201); - x_263 = lean_box(0); -} -x_264 = l_Lean_Exception_isRuntime(x_261); -if (x_264 == 0) +lean_object* x_233; lean_object* x_234; uint8_t x_235; +x_233 = lean_ctor_get(x_20, 0); +x_234 = lean_ctor_get(x_20, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_20); +x_235 = l_Lean_Exception_isInterrupt(x_233); +if (x_235 == 0) { -lean_object* x_265; lean_object* x_266; -lean_dec(x_261); -x_265 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -if (lean_is_scalar(x_263)) { - x_266 = lean_alloc_ctor(0, 2, 0); -} else { - x_266 = x_263; - lean_ctor_set_tag(x_266, 0); -} -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_262); -return x_266; +uint8_t x_236; +x_236 = l_Lean_Exception_isRuntime(x_233); +if (x_236 == 0) +{ +lean_object* x_237; lean_object* x_238; +lean_dec(x_233); +x_237 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_234); +return x_238; } else { -lean_object* x_267; -if (lean_is_scalar(x_263)) { - x_267 = lean_alloc_ctor(1, 2, 0); -} else { - x_267 = x_263; -} -lean_ctor_set(x_267, 0, x_261); -lean_ctor_set(x_267, 1, x_262); -return x_267; -} -} +lean_object* x_239; +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_233); +lean_ctor_set(x_239, 1, x_234); +return x_239; } } else { -uint8_t x_268; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_268 = !lean_is_exclusive(x_11); -if (x_268 == 0) -{ -lean_object* x_269; uint8_t x_270; -x_269 = lean_ctor_get(x_11, 0); -x_270 = l_Lean_Exception_isRuntime(x_269); -if (x_270 == 0) -{ -lean_object* x_271; -lean_dec(x_269); -x_271 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -lean_ctor_set_tag(x_11, 0); -lean_ctor_set(x_11, 0, x_271); -return x_11; -} -else -{ -return x_11; +lean_object* x_240; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_233); +lean_ctor_set(x_240, 1, x_234); +return x_240; } } -else +} +block_19: { -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_11, 0); -x_273 = lean_ctor_get(x_11, 1); -lean_inc(x_273); -lean_inc(x_272); +uint8_t x_13; +x_13 = l_Lean_Exception_isInterrupt(x_11); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_dec(x_11); -x_274 = l_Lean_Exception_isRuntime(x_272); -if (x_274 == 0) -{ -lean_object* x_275; lean_object* x_276; -lean_dec(x_272); -x_275 = l_Lean_Meta_Simp_simpCtorEq___closed__3; -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_273); -return x_276; +x_15 = l_Lean_Meta_Simp_simpCtorEq___closed__3; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +return x_16; } else { -lean_object* x_277; -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_272); -lean_ctor_set(x_277, 1, x_273); -return x_277; +lean_object* x_17; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_11); +lean_ctor_set(x_17, 1, x_12); +return x_17; } } +else +{ +lean_object* x_18; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_12); +return x_18; +} } } } @@ -26018,14 +25802,18 @@ if (x_28 == 0) { lean_object* x_29; uint8_t x_30; x_29 = lean_ctor_get(x_20, 0); -x_30 = l_Lean_Exception_isRuntime(x_29); +x_30 = l_Lean_Exception_isInterrupt(x_29); if (x_30 == 0) { -lean_object* x_31; +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_dec(x_29); -x_31 = lean_box(0); +x_32 = lean_box(0); lean_ctor_set_tag(x_20, 0); -lean_ctor_set(x_20, 0, x_31); +lean_ctor_set(x_20, 0, x_32); return x_20; } else @@ -26035,87 +25823,127 @@ return x_20; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_20, 0); -x_33 = lean_ctor_get(x_20, 1); +return x_20; +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_20, 0); +x_34 = lean_ctor_get(x_20, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); lean_dec(x_20); -x_34 = l_Lean_Exception_isRuntime(x_32); -if (x_34 == 0) +x_35 = l_Lean_Exception_isInterrupt(x_33); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; -lean_dec(x_32); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; +uint8_t x_36; +x_36 = l_Lean_Exception_isRuntime(x_33); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_33); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; } else { -lean_object* x_37; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_32); -lean_ctor_set(x_37, 1, x_33); -return x_37; +lean_object* x_39; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_33); +lean_ctor_set(x_39, 1, x_34); +return x_39; +} +} +else +{ +lean_object* x_40; +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_33); +lean_ctor_set(x_40, 1, x_34); +return x_40; } } } } else { -uint8_t x_38; +uint8_t x_41; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_38 = !lean_is_exclusive(x_17); -if (x_38 == 0) +x_41 = !lean_is_exclusive(x_17); +if (x_41 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_17, 0); -x_40 = l_Lean_Exception_isRuntime(x_39); -if (x_40 == 0) -{ -lean_object* x_41; -lean_dec(x_39); -x_41 = lean_box(0); -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_41); -return x_17; -} -else -{ -return x_17; -} -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_object* x_42; uint8_t x_43; x_42 = lean_ctor_get(x_17, 0); -x_43 = lean_ctor_get(x_17, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_17); +x_43 = l_Lean_Exception_isInterrupt(x_42); +if (x_43 == 0) +{ +uint8_t x_44; x_44 = l_Lean_Exception_isRuntime(x_42); if (x_44 == 0) { -lean_object* x_45; lean_object* x_46; +lean_object* x_45; lean_dec(x_42); x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; +lean_ctor_set_tag(x_17, 0); +lean_ctor_set(x_17, 0, x_45); +return x_17; } else { -lean_object* x_47; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_43); -return x_47; +return x_17; +} +} +else +{ +return x_17; +} +} +else +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_17, 0); +x_47 = lean_ctor_get(x_17, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_17); +x_48 = l_Lean_Exception_isInterrupt(x_46); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = l_Lean_Exception_isRuntime(x_46); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_46); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_47); +return x_51; +} +else +{ +lean_object* x_52; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_46); +lean_ctor_set(x_52, 1, x_47); +return x_52; +} +} +else +{ +lean_object* x_53; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_46); +lean_ctor_set(x_53, 1, x_47); +return x_53; } } } @@ -26123,192 +25951,226 @@ return x_47; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_48 = lean_ctor_get(x_10, 0); -x_49 = lean_ctor_get(x_10, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_54 = lean_ctor_get(x_10, 0); +x_55 = lean_ctor_get(x_10, 1); +lean_inc(x_55); +lean_inc(x_54); lean_dec(x_10); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); -x_51 = l_Lean_Expr_isTrue(x_50); -if (x_51 == 0) +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +x_57 = l_Lean_Expr_isTrue(x_56); +if (x_57 == 0) { -lean_object* x_52; lean_object* x_53; -lean_dec(x_48); +lean_object* x_58; lean_object* x_59; +lean_dec(x_54); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_49); -return x_53; +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_55); +return x_59; } else { -lean_object* x_54; +lean_object* x_60; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_54 = l_Lean_Meta_Simp_Result_getProof(x_48, x_5, x_6, x_7, x_8, x_49); -if (lean_obj_tag(x_54) == 0) +x_60 = l_Lean_Meta_Simp_Result_getProof(x_54, x_5, x_6, x_7, x_8, x_55); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -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 = l_Lean_Meta_mkOfEqTrue(x_55, x_5, x_6, x_7, x_8, x_56); -if (lean_obj_tag(x_57) == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_Lean_Meta_mkOfEqTrue(x_61, x_5, x_6, x_7, x_8, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; -} else { - lean_dec_ref(x_57); - x_60 = lean_box(0); -} -x_61 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_61, 0, x_58); -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; uint8_t x_66; -x_63 = lean_ctor_get(x_57, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_57, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_65 = x_57; +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_57); - x_65 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -x_66 = l_Lean_Exception_isRuntime(x_63); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -lean_dec(x_63); -x_67 = lean_box(0); -if (lean_is_scalar(x_65)) { +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_64); +if (lean_is_scalar(x_66)) { x_68 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_65; - lean_ctor_set_tag(x_68, 0); + x_68 = x_66; } lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_64); +lean_ctor_set(x_68, 1, x_65); return x_68; } else { -lean_object* x_69; -if (lean_is_scalar(x_65)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_65; -} -lean_ctor_set(x_69, 0, x_63); -lean_ctor_set(x_69, 1, x_64); -return x_69; -} -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_70 = lean_ctor_get(x_54, 0); +lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_69 = lean_ctor_get(x_63, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_63, 1); lean_inc(x_70); -x_71 = lean_ctor_get(x_54, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_72 = x_54; +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_71 = x_63; } else { - lean_dec_ref(x_54); - x_72 = lean_box(0); + lean_dec_ref(x_63); + x_71 = lean_box(0); } -x_73 = l_Lean_Exception_isRuntime(x_70); +x_72 = l_Lean_Exception_isInterrupt(x_69); +if (x_72 == 0) +{ +uint8_t x_73; +x_73 = l_Lean_Exception_isRuntime(x_69); if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -lean_dec(x_70); +lean_dec(x_69); x_74 = lean_box(0); -if (lean_is_scalar(x_72)) { +if (lean_is_scalar(x_71)) { x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_75 = x_72; + x_75 = x_71; lean_ctor_set_tag(x_75, 0); } lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_71); +lean_ctor_set(x_75, 1, x_70); return x_75; } else { lean_object* x_76; -if (lean_is_scalar(x_72)) { +if (lean_is_scalar(x_71)) { x_76 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_72; + x_76 = x_71; } -lean_ctor_set(x_76, 0, x_70); -lean_ctor_set(x_76, 1, x_71); +lean_ctor_set(x_76, 0, x_69); +lean_ctor_set(x_76, 1, x_70); return x_76; } } +else +{ +lean_object* x_77; +if (lean_is_scalar(x_71)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_71; +} +lean_ctor_set(x_77, 0, x_69); +lean_ctor_set(x_77, 1, x_70); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_78 = lean_ctor_get(x_60, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_60, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_80 = x_60; +} else { + lean_dec_ref(x_60); + x_80 = lean_box(0); +} +x_81 = l_Lean_Exception_isInterrupt(x_78); +if (x_81 == 0) +{ +uint8_t x_82; +x_82 = l_Lean_Exception_isRuntime(x_78); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_78); +x_83 = lean_box(0); +if (lean_is_scalar(x_80)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_80; + lean_ctor_set_tag(x_84, 0); +} +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_79); +return x_84; +} +else +{ +lean_object* x_85; +if (lean_is_scalar(x_80)) { + x_85 = lean_alloc_ctor(1, 2, 0); +} else { + x_85 = x_80; +} +lean_ctor_set(x_85, 0, x_78); +lean_ctor_set(x_85, 1, x_79); +return x_85; +} +} +else +{ +lean_object* x_86; +if (lean_is_scalar(x_80)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_80; +} +lean_ctor_set(x_86, 0, x_78); +lean_ctor_set(x_86, 1, x_79); +return x_86; +} +} } } } else { -uint8_t x_77; +uint8_t x_87; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_77 = !lean_is_exclusive(x_10); -if (x_77 == 0) +x_87 = !lean_is_exclusive(x_10); +if (x_87 == 0) { return x_10; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_10, 0); -x_79 = lean_ctor_get(x_10, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_10, 0); +x_89 = lean_ctor_get(x_10, 1); +lean_inc(x_89); +lean_inc(x_88); lean_dec(x_10); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } @@ -32069,15 +31931,19 @@ if (x_19 == 0) { lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_14, 0); -x_21 = l_Lean_Exception_isRuntime(x_20); +x_21 = l_Lean_Exception_isInterrupt(x_20); if (x_21 == 0) { -lean_object* x_22; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_dec(x_20); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_1); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_1); lean_ctor_set_tag(x_14, 0); -lean_ctor_set(x_14, 0, x_22); +lean_ctor_set(x_14, 0, x_23); return x_14; } else @@ -32088,93 +31954,137 @@ return x_14; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); +lean_dec(x_1); +return x_14; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_14); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; -lean_dec(x_23); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_1); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_24); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_1); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_25); +return x_29; } else { -lean_object* x_28; +lean_object* x_30; lean_dec(x_1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_23); -lean_ctor_set(x_28, 1, x_24); -return x_28; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_25); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_24); +lean_ctor_set(x_31, 1, x_25); +return x_31; } } } } else { -uint8_t x_29; +uint8_t x_32; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_29 = !lean_is_exclusive(x_8); -if (x_29 == 0) +x_32 = !lean_is_exclusive(x_8); +if (x_32 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_8, 0); -x_31 = l_Lean_Exception_isRuntime(x_30); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_30); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set_tag(x_8, 0); -lean_ctor_set(x_8, 0, x_32); -return x_8; -} -else -{ -lean_dec(x_1); -return x_8; -} -} -else -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_object* x_33; uint8_t x_34; x_33 = lean_ctor_get(x_8, 0); -x_34 = lean_ctor_get(x_8, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_8); +x_34 = l_Lean_Exception_isInterrupt(x_33); +if (x_34 == 0) +{ +uint8_t x_35; x_35 = l_Lean_Exception_isRuntime(x_33); if (x_35 == 0) { -lean_object* x_36; lean_object* x_37; +lean_object* x_36; lean_dec(x_33); x_36 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_36, 0, x_1); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -return x_37; +lean_ctor_set_tag(x_8, 0); +lean_ctor_set(x_8, 0, x_36); +return x_8; } else { -lean_object* x_38; lean_dec(x_1); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_34); -return x_38; +return x_8; +} +} +else +{ +lean_dec(x_1); +return x_8; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_8, 0); +x_38 = lean_ctor_get(x_8, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_8); +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) +{ +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_1); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_38); +return x_42; +} +else +{ +lean_object* x_43; +lean_dec(x_1); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_37); +lean_ctor_set(x_43, 1, x_38); +return x_43; +} +} +else +{ +lean_object* x_44; +lean_dec(x_1); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_37); +lean_ctor_set(x_44, 1, x_38); +return x_44; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Simproc.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Simproc.c index 4b385e045b..e27e68db5a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Simproc.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Simproc.c @@ -66,6 +66,7 @@ uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_Simp_Simprocs_addCore___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_5705____closed__21; static lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_6541____closed__12; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simprocArrayCore(uint8_t, 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_Meta_Simp_dsimprocCore___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_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Simp_Simprocs_addCore___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7901,170 +7902,174 @@ x_23 = l_Lean_MessageData_ofFormat(x_22); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_13); lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_Exception_isRuntime(x_24); +x_25 = l_Lean_Exception_isInterrupt(x_24); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_free_object(x_14); lean_inc(x_2); -x_26 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_20); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_unbox(x_27); -lean_dec(x_27); -if (x_28 == 0) +x_27 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_20); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) { -uint8_t x_29; +uint8_t x_30; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_26); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) { -lean_object* x_30; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -lean_ctor_set_tag(x_26, 1); -lean_ctor_set(x_26, 0, x_24); -return x_26; +lean_object* x_31; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +lean_ctor_set_tag(x_27, 1); +lean_ctor_set(x_27, 0, x_24); +return x_27; } else { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_24); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_24); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_dec(x_24); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); -lean_dec(x_26); -x_34 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; -x_35 = lean_st_ref_get(x_34, x_33); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_dec(x_27); +x_35 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; +x_36 = lean_st_ref_get(x_35, x_34); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); lean_inc(x_2); -x_40 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_39, x_2); -if (lean_obj_tag(x_40) == 0) +x_41 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_40, x_2); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +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_1); -x_41 = l_Lean_MessageData_ofName(x_2); -x_42 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; -lean_ctor_set_tag(x_35, 6); -lean_ctor_set(x_35, 1, x_41); -lean_ctor_set(x_35, 0, x_42); -x_43 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; -x_44 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_44, 0, x_35); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_44, x_4, x_5, x_38); +x_42 = l_Lean_MessageData_ofName(x_2); +x_43 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; +lean_ctor_set_tag(x_36, 6); +lean_ctor_set(x_36, 1, x_42); +lean_ctor_set(x_36, 0, x_43); +x_44 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; +x_45 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_45, x_4, x_5, x_39); lean_dec(x_5); lean_dec(x_4); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -return x_45; +return x_46; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_45, 0); -x_48 = lean_ctor_get(x_45, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_45); -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; +lean_dec(x_46); +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 { -lean_object* x_50; lean_object* x_51; -lean_free_object(x_35); -x_50 = lean_ctor_get(x_40, 0); -lean_inc(x_50); -lean_dec(x_40); -x_51 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_50, x_4, x_5, x_38); -return x_51; +lean_object* x_51; lean_object* x_52; +lean_free_object(x_36); +x_51 = lean_ctor_get(x_41, 0); +lean_inc(x_51); +lean_dec(x_41); +x_52 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_51, x_4, x_5, x_39); +return x_52; } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_35, 0); -x_53 = lean_ctor_get(x_35, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_35); -x_54 = lean_ctor_get(x_52, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_36, 0); +x_54 = lean_ctor_get(x_36, 1); lean_inc(x_54); -lean_dec(x_52); +lean_inc(x_53); +lean_dec(x_36); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); lean_inc(x_2); -x_55 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_54, x_2); -if (lean_obj_tag(x_55) == 0) +x_56 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_55, x_2); +if (lean_obj_tag(x_56) == 0) { -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_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_dec(x_1); -x_56 = l_Lean_MessageData_ofName(x_2); -x_57 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; -x_58 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; -x_60 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_60, x_4, x_5, x_53); +x_57 = l_Lean_MessageData_ofName(x_2); +x_58 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; +x_61 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_61, x_4, x_5, x_54); lean_dec(x_5); lean_dec(x_4); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_64 = x_61; +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; } else { - lean_dec_ref(x_61); - x_64 = lean_box(0); + lean_dec_ref(x_62); + x_65 = lean_box(0); } -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); } else { - x_65 = x_64; + x_66 = x_65; } -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return 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_66; lean_object* x_67; -x_66 = lean_ctor_get(x_55, 0); -lean_inc(x_66); -lean_dec(x_55); -x_67 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_66, x_4, x_5, x_53); -return x_67; +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_56, 0); +lean_inc(x_67); +lean_dec(x_56); +x_68 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_67, x_4, x_5, x_54); +return x_68; } } } @@ -8081,338 +8086,386 @@ return x_14; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_68 = lean_ctor_get(x_14, 0); -x_69 = lean_ctor_get(x_14, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_14); -x_70 = lean_io_error_to_string(x_68); -x_71 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_71, 0, x_70); -x_72 = l_Lean_MessageData_ofFormat(x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_13); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_Exception_isRuntime(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; uint8_t x_77; -lean_inc(x_2); -x_75 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_69); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_unbox(x_76); -lean_dec(x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_79 = x_75; -} else { - lean_dec_ref(x_75); - x_79 = lean_box(0); +lean_ctor_set(x_14, 0, x_24); +return x_14; } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); -} else { - x_80 = x_79; - lean_ctor_set_tag(x_80, 1); -} -lean_ctor_set(x_80, 0, x_73); -lean_ctor_set(x_80, 1, x_78); -return x_80; } else { -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_dec(x_73); -x_81 = lean_ctor_get(x_75, 1); -lean_inc(x_81); -lean_dec(x_75); -x_82 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; -x_83 = lean_st_ref_get(x_82, x_81); -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); -} -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -lean_dec(x_84); -lean_inc(x_2); -x_88 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_87, x_2); -if (lean_obj_tag(x_88) == 0) +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_69 = lean_ctor_get(x_14, 0); +x_70 = lean_ctor_get(x_14, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_14); +x_71 = lean_io_error_to_string(x_69); +x_72 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_72, 0, x_71); +x_73 = l_Lean_MessageData_ofFormat(x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_13); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_Exception_isInterrupt(x_74); +if (x_75 == 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_dec(x_1); -x_89 = l_Lean_MessageData_ofName(x_2); -x_90 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; -if (lean_is_scalar(x_86)) { - x_91 = lean_alloc_ctor(6, 2, 0); -} else { - x_91 = x_86; - lean_ctor_set_tag(x_91, 6); -} -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; -x_93 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_94 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_93, x_4, x_5, x_85); +uint8_t x_76; +x_76 = l_Lean_Exception_isRuntime(x_74); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; uint8_t x_79; +lean_inc(x_2); +x_77 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_70); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_dec(x_5); lean_dec(x_4); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; +lean_dec(x_2); +lean_dec(x_1); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_81 = x_77; } else { - lean_dec_ref(x_94); - x_97 = lean_box(0); + lean_dec_ref(x_77); + x_81 = lean_box(0); } -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); } else { - x_98 = x_97; + x_82 = x_81; + lean_ctor_set_tag(x_82, 1); } -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -return x_98; +lean_ctor_set(x_82, 0, x_74); +lean_ctor_set(x_82, 1, x_80); +return x_82; } else { -lean_object* x_99; lean_object* x_100; +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_dec(x_74); +x_83 = lean_ctor_get(x_77, 1); +lean_inc(x_83); +lean_dec(x_77); +x_84 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; +x_85 = lean_st_ref_get(x_84, x_83); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +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_85); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); lean_dec(x_86); -x_99 = lean_ctor_get(x_88, 0); -lean_inc(x_99); -lean_dec(x_88); -x_100 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_99, x_4, x_5, x_85); +lean_inc(x_2); +x_90 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_89, x_2); +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; 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_91 = l_Lean_MessageData_ofName(x_2); +x_92 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; +if (lean_is_scalar(x_88)) { + x_93 = lean_alloc_ctor(6, 2, 0); +} else { + x_93 = x_88; + lean_ctor_set_tag(x_93, 6); +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; +x_95 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_95, x_4, x_5, x_87); +lean_dec(x_5); +lean_dec(x_4); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_99 = x_96; +} else { + lean_dec_ref(x_96); + x_99 = lean_box(0); +} +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); return x_100; } +else +{ +lean_object* x_101; lean_object* x_102; +lean_dec(x_88); +x_101 = lean_ctor_get(x_90, 0); +lean_inc(x_101); +lean_dec(x_90); +x_102 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_101, x_4, x_5, x_87); +return x_102; +} } } else { -lean_object* x_101; +lean_object* x_103; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_73); -lean_ctor_set(x_101, 1, x_69); -return x_101; +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_74); +lean_ctor_set(x_103, 1, x_70); +return x_103; +} +} +else +{ +lean_object* x_104; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_74); +lean_ctor_set(x_104, 1, x_70); +return x_104; } } } } 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; lean_object* x_108; -x_102 = lean_ctor_get(x_7, 0); -x_103 = lean_ctor_get(x_7, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_7); -x_104 = lean_ctor_get(x_102, 0); -lean_inc(x_104); -lean_dec(x_102); -x_105 = lean_ctor_get(x_4, 2); +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_7, 0); +x_106 = lean_ctor_get(x_7, 1); +lean_inc(x_106); lean_inc(x_105); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = lean_ctor_get(x_4, 5); +lean_dec(x_7); +x_107 = lean_ctor_get(x_105, 0); lean_inc(x_107); -lean_inc(x_2); -x_108 = l_Lean_Meta_Simp_getSimprocFromDeclImpl(x_2, x_106, x_103); -if (lean_obj_tag(x_108) == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_107); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); +lean_dec(x_105); +x_108 = lean_ctor_get(x_4, 2); +lean_inc(x_108); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = lean_ctor_get(x_4, 5); lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_109, x_4, x_5, x_110); -return x_111; +lean_inc(x_2); +x_111 = l_Lean_Meta_Simp_getSimprocFromDeclImpl(x_2, x_109, x_106); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_110); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_112, x_4, x_5, x_113); +return x_114; } 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; uint8_t x_119; -x_112 = lean_ctor_get(x_108, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_114 = x_108; +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; uint8_t x_122; +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_108); - x_114 = lean_box(0); + lean_dec_ref(x_111); + x_117 = lean_box(0); } -x_115 = lean_io_error_to_string(x_112); -x_116 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_116, 0, x_115); -x_117 = l_Lean_MessageData_ofFormat(x_116); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_107); -lean_ctor_set(x_118, 1, x_117); -x_119 = l_Lean_Exception_isRuntime(x_118); -if (x_119 == 0) -{ -lean_object* x_120; lean_object* x_121; uint8_t x_122; -lean_dec(x_114); -lean_inc(x_2); -x_120 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_113); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_unbox(x_121); -lean_dec(x_121); +x_118 = lean_io_error_to_string(x_115); +x_119 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_119, 0, x_118); +x_120 = l_Lean_MessageData_ofFormat(x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_110); +lean_ctor_set(x_121, 1, x_120); +x_122 = l_Lean_Exception_isInterrupt(x_121); if (x_122 == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_124 = x_120; -} else { - lean_dec_ref(x_120); - x_124 = lean_box(0); -} -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(1, 2, 0); -} else { - x_125 = x_124; - lean_ctor_set_tag(x_125, 1); -} -lean_ctor_set(x_125, 0, x_118); -lean_ctor_set(x_125, 1, x_123); -return x_125; -} -else +uint8_t x_123; +x_123 = l_Lean_Exception_isRuntime(x_121); +if (x_123 == 0) { -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_dec(x_118); -x_126 = lean_ctor_get(x_120, 1); -lean_inc(x_126); -lean_dec(x_120); -x_127 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; -x_128 = lean_st_ref_get(x_127, x_126); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; -} else { - lean_dec_ref(x_128); - x_131 = lean_box(0); -} -x_132 = lean_ctor_get(x_129, 1); -lean_inc(x_132); -lean_dec(x_129); +lean_object* x_124; lean_object* x_125; uint8_t x_126; +lean_dec(x_117); lean_inc(x_2); -x_133 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_132, x_2); -if (lean_obj_tag(x_133) == 0) +x_124 = l_Lean_Meta_Simp_isBuiltinSimproc(x_2, x_4, x_5, x_116); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_unbox(x_125); +lean_dec(x_125); +if (x_126 == 0) { -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_dec(x_1); -x_134 = l_Lean_MessageData_ofName(x_2); -x_135 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; -if (lean_is_scalar(x_131)) { - x_136 = lean_alloc_ctor(6, 2, 0); -} else { - x_136 = x_131; - lean_ctor_set_tag(x_136, 6); -} -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -x_137 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; -x_138 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -x_139 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_138, x_4, x_5, x_130); -lean_dec(x_5); -lean_dec(x_4); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_142 = x_139; -} else { - lean_dec_ref(x_139); - x_142 = lean_box(0); -} -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); -} else { - x_143 = x_142; -} -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; -} -else -{ -lean_object* x_144; lean_object* x_145; -lean_dec(x_131); -x_144 = lean_ctor_get(x_133, 0); -lean_inc(x_144); -lean_dec(x_133); -x_145 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_144, x_4, x_5, x_130); -return x_145; -} -} -} -else -{ -lean_object* x_146; +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_114)) { - x_146 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_ctor_get(x_124, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_128 = x_124; } else { - x_146 = x_114; + lean_dec_ref(x_124); + x_128 = lean_box(0); } -lean_ctor_set(x_146, 0, x_118); -lean_ctor_set(x_146, 1, x_113); -return x_146; +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_128; + lean_ctor_set_tag(x_129, 1); +} +lean_ctor_set(x_129, 0, x_121); +lean_ctor_set(x_129, 1, x_127); +return x_129; +} +else +{ +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_dec(x_121); +x_130 = lean_ctor_get(x_124, 1); +lean_inc(x_130); +lean_dec(x_124); +x_131 = l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Simproc___hyg_179____lambda__1___closed__1; +x_132 = lean_st_ref_get(x_131, x_130); +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_132); + x_135 = lean_box(0); +} +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_136); +lean_dec(x_133); +lean_inc(x_2); +x_137 = l_Lean_HashMapImp_find_x3f___at_Lean_Meta_Simp_Simprocs_add___spec__2(x_136, x_2); +if (lean_obj_tag(x_137) == 0) +{ +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_dec(x_1); +x_138 = l_Lean_MessageData_ofName(x_2); +x_139 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__2; +if (lean_is_scalar(x_135)) { + x_140 = lean_alloc_ctor(6, 2, 0); +} else { + x_140 = x_135; + lean_ctor_set_tag(x_140, 6); +} +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_138); +x_141 = l_Lean_Meta_Simp_addSimprocAttrCore___closed__4; +x_142 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +x_143 = l_Lean_throwError___at_Lean_Meta_Simp_Simprocs_add___spec__4(x_142, x_4, x_5, x_134); +lean_dec(x_5); +lean_dec(x_4); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_146 = x_143; +} else { + lean_dec_ref(x_143); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(1, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_135); +x_148 = lean_ctor_get(x_137, 0); +lean_inc(x_148); +lean_dec(x_137); +x_149 = l_Lean_Meta_Simp_Simprocs_add___lambda__1(x_2, x_1, x_3, x_148, x_4, x_5, x_134); +return x_149; +} +} +} +else +{ +lean_object* x_150; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_117)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_117; +} +lean_ctor_set(x_150, 0, x_121); +lean_ctor_set(x_150, 1, x_116); +return x_150; +} +} +else +{ +lean_object* x_151; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_117)) { + x_151 = lean_alloc_ctor(1, 2, 0); +} else { + x_151 = x_117; +} +lean_ctor_set(x_151, 0, x_121); +lean_ctor_set(x_151, 1, x_116); +return x_151; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c b/stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c index 298afa76f0..67e960c61e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c +++ b/stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c @@ -26,6 +26,7 @@ static lean_object* l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_Solve LEAN_EXPORT lean_object* l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_SolveByElim___hyg_6_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SolveByElim_SolveByElimConfig_introsAfter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SolveByElim_SolveByElimConfig_withDischarge___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_SolveByElim_mkAssumptionSet___spec__3(lean_object*, lean_object*); static lean_object* l_Lean_Meta_SolveByElim_mkAssumptionSet___lambda__3___closed__14; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_applyRules___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -507,9 +508,13 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; uint8_t x_18; x_16 = lean_ctor_get(x_12, 0); x_17 = lean_ctor_get(x_12, 1); -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ lean_free_object(x_12); lean_dec(x_16); lean_ctor_set(x_1, 1, x_2); @@ -538,30 +543,6 @@ return x_12; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_12, 0); -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_12); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) -{ -lean_dec(x_20); -lean_ctor_set(x_1, 1, x_2); -{ -lean_object* _tmp_0 = x_11; -lean_object* _tmp_1 = x_1; -lean_object* _tmp_6 = x_21; -x_1 = _tmp_0; -x_2 = _tmp_1; -x_7 = _tmp_6; -} -goto _start; -} -else -{ -lean_object* x_24; lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); @@ -570,86 +551,168 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -} +return x_12; } } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_1, 0); -x_26 = lean_ctor_get(x_1, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_1); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_25); -x_27 = l_Lean_MVarId_inferInstance(x_25, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_27) == 0) +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_12); +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -lean_object* x_28; -lean_dec(x_25); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_1 = x_26; -x_7 = x_28; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_dec(x_21); +lean_ctor_set(x_1, 1, x_2); +{ +lean_object* _tmp_0 = x_11; +lean_object* _tmp_1 = x_1; +lean_object* _tmp_6 = x_22; +x_1 = _tmp_0; +x_2 = _tmp_1; +x_7 = _tmp_6; +} goto _start; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_32 = x_27; -} else { - lean_dec_ref(x_27); - x_32 = lean_box(0); -} -x_33 = l_Lean_Exception_isRuntime(x_30); -if (x_33 == 0) -{ -lean_object* x_34; -lean_dec(x_32); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_25); -lean_ctor_set(x_34, 1, x_2); -x_1 = x_26; -x_2 = x_34; -x_7 = x_31; -goto _start; -} -else -{ -lean_object* x_36; -lean_dec(x_26); -lean_dec(x_25); +lean_object* x_26; +lean_free_object(x_1); +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_2); -if (lean_is_scalar(x_32)) { - x_36 = lean_alloc_ctor(1, 2, 0); -} else { - x_36 = x_32; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_22); +return x_26; } -lean_ctor_set(x_36, 0, x_30); -lean_ctor_set(x_36, 1, x_31); -return x_36; +} +else +{ +lean_object* x_27; +lean_free_object(x_1); +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_2); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_1, 0); +x_29 = lean_ctor_get(x_1, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_28); +x_30 = l_Lean_MVarId_inferInstance(x_28, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +lean_dec(x_28); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_1 = x_29; +x_7 = x_31; +goto _start; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_30, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_35 = x_30; +} else { + lean_dec_ref(x_30); + x_35 = lean_box(0); +} +x_36 = l_Lean_Exception_isInterrupt(x_33); +if (x_36 == 0) +{ +uint8_t x_37; +x_37 = l_Lean_Exception_isRuntime(x_33); +if (x_37 == 0) +{ +lean_object* x_38; +lean_dec(x_35); +lean_dec(x_33); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_28); +lean_ctor_set(x_38, 1, x_2); +x_1 = x_29; +x_2 = x_38; +x_7 = x_34; +goto _start; +} +else +{ +lean_object* x_40; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_35)) { + x_40 = lean_alloc_ctor(1, 2, 0); +} else { + x_40 = x_35; +} +lean_ctor_set(x_40, 0, x_33); +lean_ctor_set(x_40, 1, x_34); +return x_40; +} +} +else +{ +lean_object* x_41; +lean_dec(x_29); +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_35)) { + x_41 = lean_alloc_ctor(1, 2, 0); +} else { + x_41 = x_35; +} +lean_ctor_set(x_41, 0, x_33); +lean_ctor_set(x_41, 1, x_34); +return x_41; } } } @@ -1548,58 +1611,62 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_15, 0); x_27 = lean_ctor_get(x_15, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_free_object(x_15); lean_dec(x_26); -x_29 = lean_ctor_get(x_1, 1); -lean_inc(x_29); +x_30 = lean_ctor_get(x_1, 1); +lean_inc(x_30); lean_dec(x_1); -x_30 = lean_apply_7(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_30) == 0) +x_31 = lean_apply_7(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_31) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -return x_30; +return x_31; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); +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_inc(x_32); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +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 { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) +uint8_t x_36; +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) { -return x_30; +return x_31; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_31, 0); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_30); -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_dec(x_31); +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; } } } @@ -1617,73 +1684,6 @@ return x_15; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_15, 0); -x_40 = lean_ctor_get(x_15, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_15); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_39); -x_42 = lean_ctor_get(x_1, 1); -lean_inc(x_42); -lean_dec(x_1); -x_43 = lean_apply_7(x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_40); -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_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_46 = x_43; -} else { - lean_dec_ref(x_43); - x_46 = lean_box(0); -} -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(0, 2, 0); -} else { - x_47 = x_46; -} -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_43, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_43, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_50 = x_43; -} else { - lean_dec_ref(x_43); - 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 -{ -lean_object* x_52; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1691,10 +1691,109 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_39); -lean_ctor_set(x_52, 1, x_40); -return x_52; +return x_15; +} +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_15, 0); +x_41 = lean_ctor_get(x_15, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_15); +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) +{ +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_40); +x_44 = lean_ctor_get(x_1, 1); +lean_inc(x_44); +lean_dec(x_1); +x_45 = lean_apply_7(x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_41); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_48 = x_45; +} else { + lean_dec_ref(x_45); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_45, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_52 = x_45; +} else { + lean_dec_ref(x_45); + 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; +} +} +else +{ +lean_object* x_54; +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_1); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_40); +lean_ctor_set(x_54, 1, x_41); +return x_54; +} +} +else +{ +lean_object* x_55; +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_1); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_40); +lean_ctor_set(x_55, 1, x_41); +return x_55; } } } @@ -2126,17 +2225,21 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_9, 0); x_12 = lean_ctor_get(x_9, 1); -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_free_object(x_9); lean_dec(x_11); -x_14 = lean_ctor_get(x_2, 3); -lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 3); +lean_inc(x_15); lean_dec(x_2); -x_15 = lean_apply_6(x_14, x_3, x_4, x_5, x_6, x_7, x_12); -return x_15; +x_16 = lean_apply_6(x_15, x_3, x_4, x_5, x_6, x_7, x_12); +return x_16; } else { @@ -2151,36 +2254,66 @@ return x_9; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_9); -x_18 = l_Lean_Exception_isRuntime(x_16); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_16); -x_19 = lean_ctor_get(x_2, 3); -lean_inc(x_19); -lean_dec(x_2); -x_20 = lean_apply_6(x_19, x_3, x_4, x_5, x_6, x_7, x_17); -return x_20; -} -else -{ -lean_object* x_21; 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_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_16); -lean_ctor_set(x_21, 1, x_17); -return x_21; +return x_9; +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_9, 0); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_9); +x_19 = l_Lean_Exception_isInterrupt(x_17); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_17); +x_21 = lean_ctor_get(x_2, 3); +lean_inc(x_21); +lean_dec(x_2); +x_22 = lean_apply_6(x_21, x_3, x_4, x_5, x_6, x_7, x_18); +return x_22; +} +else +{ +lean_object* x_23; +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_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_17); +lean_ctor_set(x_23, 1, x_18); +return x_23; +} +} +else +{ +lean_object* x_24; +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_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_17); +lean_ctor_set(x_24, 1, x_18); +return x_24; } } } @@ -3742,7 +3875,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Lean_Meta_SolveByElim_elabContextLemmas___closed__3; x_7 = l_Lean_Meta_SolveByElim_elabContextLemmas___closed__4; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_2); lean_ctor_set(x_8, 2, x_3); @@ -3751,16 +3884,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_2); lean_ctor_set(x_8, 6, x_2); lean_ctor_set(x_8, 7, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_1); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } @@ -5123,9 +5257,13 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ if (lean_obj_tag(x_4) == 0) { lean_dec(x_10); @@ -5139,17 +5277,17 @@ return x_11; } else { -lean_object* x_16; -x_16 = lean_ctor_get(x_4, 1); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_10, 0); +lean_object* x_17; +x_17 = lean_ctor_get(x_4, 1); lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*2 + 2); -lean_dec(x_17); -if (x_18 == 0) +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +x_19 = lean_ctor_get_uint8(x_18, sizeof(void*)*2 + 2); +lean_dec(x_18); +if (x_19 == 0) { lean_dec(x_10); lean_dec(x_8); @@ -5163,28 +5301,28 @@ return x_11; } else { -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; +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; lean_free_object(x_11); lean_dec(x_13); -x_19 = lean_ctor_get(x_4, 0); -lean_inc(x_19); +x_20 = lean_ctor_get(x_4, 0); +lean_inc(x_20); lean_dec(x_4); -x_20 = lean_alloc_closure((void*)(l_Lean_Meta_SolveByElim_solveByElim___lambda__2), 9, 4); -lean_closure_set(x_20, 0, x_19); -lean_closure_set(x_20, 1, x_2); -lean_closure_set(x_20, 2, x_3); -lean_closure_set(x_20, 3, x_10); -x_21 = l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_SolveByElim___hyg_6____closed__4; -x_22 = l_Lean_Meta_SolveByElim_solveByElim___closed__1; -x_23 = 1; -x_24 = l_Lean_Meta_SolveByElim_applyTactics___lambda__1___closed__1; -x_25 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_21, x_22, x_20, x_23, x_24, x_5, x_6, x_7, x_8, x_14); -return x_25; +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_SolveByElim_solveByElim___lambda__2), 9, 4); +lean_closure_set(x_21, 0, x_20); +lean_closure_set(x_21, 1, x_2); +lean_closure_set(x_21, 2, x_3); +lean_closure_set(x_21, 3, x_10); +x_22 = l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_SolveByElim___hyg_6____closed__4; +x_23 = l_Lean_Meta_SolveByElim_solveByElim___closed__1; +x_24 = 1; +x_25 = l_Lean_Meta_SolveByElim_applyTactics___lambda__1___closed__1; +x_26 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_22, x_23, x_21, x_24, x_25, x_5, x_6, x_7, x_8, x_14); +return x_26; } } else { -lean_dec(x_16); +lean_dec(x_17); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -5212,18 +5350,35 @@ return x_11; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_11, 0); -x_27 = lean_ctor_get(x_11, 1); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); lean_dec(x_11); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) +x_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) { if (lean_obj_tag(x_4) == 0) { -lean_object* x_29; +lean_object* x_31; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -5231,26 +5386,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_27); -return x_29; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_27); +lean_ctor_set(x_31, 1, x_28); +return x_31; } else { -lean_object* x_30; -x_30 = lean_ctor_get(x_4, 1); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) +lean_object* x_32; +x_32 = lean_ctor_get(x_4, 1); +lean_inc(x_32); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_10, 0); -lean_inc(x_31); -x_32 = lean_ctor_get_uint8(x_31, sizeof(void*)*2 + 2); -lean_dec(x_31); -if (x_32 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_10, 0); +lean_inc(x_33); +x_34 = lean_ctor_get_uint8(x_33, sizeof(void*)*2 + 2); +lean_dec(x_33); +if (x_34 == 0) { -lean_object* x_33; +lean_object* x_35; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -5259,67 +5414,84 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_26); -lean_ctor_set(x_33, 1, x_27); -return x_33; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +return x_35; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_26); -x_34 = lean_ctor_get(x_4, 0); -lean_inc(x_34); +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; +lean_dec(x_27); +x_36 = lean_ctor_get(x_4, 0); +lean_inc(x_36); lean_dec(x_4); -x_35 = lean_alloc_closure((void*)(l_Lean_Meta_SolveByElim_solveByElim___lambda__2), 9, 4); -lean_closure_set(x_35, 0, x_34); -lean_closure_set(x_35, 1, x_2); -lean_closure_set(x_35, 2, x_3); -lean_closure_set(x_35, 3, x_10); -x_36 = l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_SolveByElim___hyg_6____closed__4; -x_37 = l_Lean_Meta_SolveByElim_solveByElim___closed__1; -x_38 = 1; -x_39 = l_Lean_Meta_SolveByElim_applyTactics___lambda__1___closed__1; -x_40 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_36, x_37, x_35, x_38, x_39, x_5, x_6, x_7, x_8, x_27); -return x_40; -} -} -else -{ -lean_object* x_41; -lean_dec(x_30); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_26); -lean_ctor_set(x_41, 1, x_27); -return x_41; -} -} -} -else -{ -lean_object* x_42; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_26); -lean_ctor_set(x_42, 1, x_27); +x_37 = lean_alloc_closure((void*)(l_Lean_Meta_SolveByElim_solveByElim___lambda__2), 9, 4); +lean_closure_set(x_37, 0, x_36); +lean_closure_set(x_37, 1, x_2); +lean_closure_set(x_37, 2, x_3); +lean_closure_set(x_37, 3, x_10); +x_38 = l_Lean_Meta_SolveByElim_initFn____x40_Lean_Meta_Tactic_SolveByElim___hyg_6____closed__4; +x_39 = l_Lean_Meta_SolveByElim_solveByElim___closed__1; +x_40 = 1; +x_41 = l_Lean_Meta_SolveByElim_applyTactics___lambda__1___closed__1; +x_42 = l_Lean_withTraceNode___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__3(x_38, x_39, x_37, x_40, x_41, x_5, x_6, x_7, x_8, x_28); return x_42; } } +else +{ +lean_object* x_43; +lean_dec(x_32); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_27); +lean_ctor_set(x_43, 1, x_28); +return x_43; +} +} +} +else +{ +lean_object* x_44; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_27); +lean_ctor_set(x_44, 1, x_28); +return x_44; +} +} +else +{ +lean_object* x_45; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_27); +lean_ctor_set(x_45, 1, x_28); +return x_45; +} +} } } } @@ -5395,9 +5567,13 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_12, 0); x_18 = lean_ctor_get(x_12, 1); -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ lean_free_object(x_12); lean_dec(x_17); x_1 = x_11; @@ -5417,107 +5593,160 @@ return x_12; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) -{ -lean_dec(x_21); -x_1 = x_11; -x_7 = x_22; -goto _start; -} -else -{ -lean_object* x_25; lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_21); -lean_ctor_set(x_25, 1, x_22); -return x_25; -} -} +return x_12; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_1, 0); -x_27 = lean_ctor_get(x_1, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_1); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_28 = l_Lean_Expr_applySymm(x_26, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_28) == 0) +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(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_2); -x_1 = x_27; -x_2 = x_31; -x_7 = x_30; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_dec(x_22); +x_1 = x_11; +x_7 = x_23; goto _start; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = lean_ctor_get(x_28, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_28, 1); -lean_inc(x_34); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_35 = x_28; -} else { - lean_dec_ref(x_28); - x_35 = lean_box(0); -} -x_36 = l_Lean_Exception_isRuntime(x_33); -if (x_36 == 0) -{ -lean_dec(x_35); -lean_dec(x_33); -x_1 = x_27; -x_7 = x_34; -goto _start; -} -else -{ -lean_object* x_38; -lean_dec(x_27); +lean_object* x_27; +lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_35)) { - x_38 = lean_alloc_ctor(1, 2, 0); -} else { - x_38 = x_35; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_23); +return x_27; } -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_34); -return x_38; +} +else +{ +lean_object* x_28; +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_23); +return x_28; +} +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_1, 0); +x_30 = lean_ctor_get(x_1, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_31 = l_Lean_Expr_applySymm(x_29, x_3, x_4, x_5, x_6, x_7); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_2); +x_1 = x_30; +x_2 = x_34; +x_7 = x_33; +goto _start; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_38 = x_31; +} else { + lean_dec_ref(x_31); + x_38 = lean_box(0); +} +x_39 = l_Lean_Exception_isInterrupt(x_36); +if (x_39 == 0) +{ +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_36); +if (x_40 == 0) +{ +lean_dec(x_38); +lean_dec(x_36); +x_1 = x_30; +x_7 = x_37; +goto _start; +} +else +{ +lean_object* x_42; +lean_dec(x_30); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_38)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_38; +} +lean_ctor_set(x_42, 0, x_36); +lean_ctor_set(x_42, 1, x_37); +return x_42; +} +} +else +{ +lean_object* x_43; +lean_dec(x_30); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_38)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_38; +} +lean_ctor_set(x_43, 0, x_36); +lean_ctor_set(x_43, 1, x_37); +return x_43; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Split.c index aa6f1a0038..9298060d97 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Split.c @@ -56,6 +56,7 @@ static uint32_t l_Lean_Meta_Split_getSimpMatchContext___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__5___lambda__1(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_Meta_Split_applyMatchSplitter___closed__5; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6460____closed__9; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_6460____closed__15; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___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*); @@ -12671,223 +12672,240 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_Split_splitMatch(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_19; lean_object* x_20; -x_19 = 0; +lean_object* x_8; lean_object* x_9; uint8_t x_21; lean_object* x_22; +x_21 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_20 = l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1(x_2, x_19, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_20) == 0) +x_22 = l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1(x_2, x_21, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_22) == 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; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_1); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Meta_Split_splitMatch___closed__4; -x_24 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_23, x_3, x_4, x_5, x_6, x_22); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_8 = x_25; -x_9 = x_26; -goto block_18; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Meta_Split_splitMatch___closed__4; +x_26 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_25, x_3, x_4, x_5, x_6, x_24); +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_8 = x_27; +x_9 = x_28; +goto block_20; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); -lean_dec(x_20); -x_28 = lean_ctor_get(x_21, 0); -lean_inc(x_28); -lean_dec(x_21); -x_29 = lean_ctor_get(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_22, 1); lean_inc(x_29); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_29); -x_30 = lean_get_match_equations_for(x_29, x_3, x_4, x_5, x_6, x_27); -if (lean_obj_tag(x_30) == 0) -{ -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_dec(x_22); +x_30 = lean_ctor_get(x_23, 0); +lean_inc(x_30); +lean_dec(x_23); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_31); +x_32 = lean_get_match_equations_for(x_31, x_3, x_4, x_5, x_6, x_29); +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_28, 4); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_28, 6); +lean_dec(x_32); +x_35 = lean_ctor_get(x_30, 1); lean_inc(x_35); -lean_dec(x_28); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_29); -x_36 = l_Lean_Meta_Split_applyMatchSplitter(x_1, x_29, x_33, x_34, x_35, x_3, x_4, x_5, x_6, x_32); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_36, 0); +x_36 = lean_ctor_get(x_30, 4); +lean_inc(x_36); +x_37 = lean_ctor_get(x_30, 6); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_Meta_Split_splitMatch___closed__5; +lean_dec(x_30); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_40 = l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__1(x_29, x_31, x_39, x_37, x_3, x_4, x_5, x_6, x_38); -lean_dec(x_31); -if (lean_obj_tag(x_40) == 0) +lean_inc(x_31); +x_38 = l_Lean_Meta_Split_applyMatchSplitter(x_1, x_31, x_35, x_36, x_37, x_3, x_4, x_5, x_6, x_34); +if (lean_obj_tag(x_38) == 0) { -uint8_t x_41; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Meta_Split_splitMatch___closed__5; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_42 = l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__1(x_31, x_33, x_41, x_39, x_3, x_4, x_5, x_6, x_40); +lean_dec(x_33); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_List_reverse___rarg(x_43); -lean_ctor_set(x_40, 0, x_44); -return x_40; -} -else -{ -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_40, 0); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); -lean_dec(x_40); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_List_reverse___rarg(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; -} +lean_dec(x_44); +x_46 = l_List_reverse___rarg(x_45); +lean_ctor_set(x_42, 0, x_46); +return x_42; } else { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_40, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_40, 1); -lean_inc(x_51); -lean_dec(x_40); -x_8 = x_50; -x_9 = x_51; -goto block_18; +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_42, 0); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_42); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_List_reverse___rarg(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { lean_object* x_52; lean_object* x_53; -lean_dec(x_31); -lean_dec(x_29); -x_52 = lean_ctor_get(x_36, 0); +x_52 = lean_ctor_get(x_42, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_36, 1); +x_53 = lean_ctor_get(x_42, 1); lean_inc(x_53); -lean_dec(x_36); +lean_dec(x_42); x_8 = x_52; x_9 = x_53; -goto block_18; +goto block_20; } } else { lean_object* x_54; lean_object* x_55; -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_1); -x_54 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +lean_dec(x_31); +x_54 = lean_ctor_get(x_38, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_30, 1); +x_55 = lean_ctor_get(x_38, 1); lean_inc(x_55); -lean_dec(x_30); +lean_dec(x_38); x_8 = x_54; x_9 = x_55; -goto block_18; -} +goto block_20; } } else { lean_object* x_56; lean_object* x_57; +lean_dec(x_31); +lean_dec(x_30); lean_dec(x_1); -x_56 = lean_ctor_get(x_20, 0); +x_56 = lean_ctor_get(x_32, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_20, 1); +x_57 = lean_ctor_get(x_32, 1); lean_inc(x_57); -lean_dec(x_20); +lean_dec(x_32); x_8 = x_56; x_9 = x_57; -goto block_18; +goto block_20; } -block_18: +} +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_1); +x_58 = lean_ctor_get(x_22, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_22, 1); +lean_inc(x_59); +lean_dec(x_22); +x_8 = x_58; +x_9 = x_59; +goto block_20; +} +block_20: { uint8_t x_10; -x_10 = l_Lean_Exception_isRuntime(x_8); +x_10 = l_Lean_Exception_isInterrupt(x_8); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = l_Lean_Meta_Split_splitMatch___closed__2; -x_12 = l_Lean_Meta_throwNestedTacticEx___rarg(x_11, x_8, x_3, x_4, x_5, x_6, x_9); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_8); +if (x_11 == 0) { -return x_12; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = l_Lean_Meta_Split_splitMatch___closed__2; +x_13 = l_Lean_Meta_throwNestedTacticEx___rarg(x_12, x_8, x_3, x_4, x_5, x_6, x_9); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_17; +lean_object* x_18; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_8); -lean_ctor_set(x_17, 1, x_9); -return x_17; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_18, 1, x_9); +return x_18; +} +} +else +{ +lean_object* x_19; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_8); +lean_ctor_set(x_19, 1, x_9); +return x_19; } } } @@ -13693,14 +13711,18 @@ if (x_56 == 0) lean_object* x_57; lean_object* x_58; uint8_t x_59; x_57 = lean_ctor_get(x_50, 0); x_58 = lean_ctor_get(x_50, 1); -x_59 = l_Lean_Exception_isRuntime(x_57); +x_59 = l_Lean_Exception_isInterrupt(x_57); if (x_59 == 0) { -lean_object* x_60; +uint8_t x_60; +x_60 = l_Lean_Exception_isRuntime(x_57); +if (x_60 == 0) +{ +lean_object* x_61; lean_free_object(x_50); lean_dec(x_57); -x_60 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); -x_4 = x_60; +x_61 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); +x_4 = x_61; x_9 = x_58; goto _start; } @@ -13719,25 +13741,42 @@ return x_50; } else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_50, 0); -x_63 = lean_ctor_get(x_50, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_50); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) -{ -lean_object* x_65; -lean_dec(x_62); -x_65 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); -x_4 = x_65; -x_9 = x_63; -goto _start; +lean_dec(x_47); +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_1); +return x_50; +} } else { +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_50, 0); +x_64 = lean_ctor_get(x_50, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_50); +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +if (x_66 == 0) +{ lean_object* x_67; +lean_dec(x_63); +x_67 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_47); +x_4 = x_67; +x_9 = x_64; +goto _start; +} +else +{ +lean_object* x_69; lean_dec(x_47); lean_dec(x_8); lean_dec(x_7); @@ -13746,579 +13785,596 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_62); -lean_ctor_set(x_67, 1, x_63); -return x_67; -} -} +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_63); +lean_ctor_set(x_69, 1, x_64); +return x_69; } } else { -lean_object* x_68; lean_object* x_69; -lean_free_object(x_15); -lean_dec(x_47); -lean_dec(x_4); -lean_dec(x_3); -x_68 = lean_box(0); -x_69 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_68, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_69) == 0) -{ lean_object* x_70; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -if (lean_obj_tag(x_70) == 0) -{ -uint8_t x_71; -x_71 = !lean_is_exclusive(x_69); -if (x_71 == 0) -{ -lean_object* x_72; -x_72 = lean_ctor_get(x_69, 0); -lean_dec(x_72); -lean_ctor_set(x_69, 0, x_68); -return x_69; -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_69, 1); -lean_inc(x_73); -lean_dec(x_69); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -else -{ -uint8_t x_75; -x_75 = !lean_is_exclusive(x_70); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_76 = lean_ctor_get(x_70, 0); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = !lean_is_exclusive(x_69); -if (x_79 == 0) -{ -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_69, 0); -lean_dec(x_80); -x_81 = !lean_is_exclusive(x_77); -if (x_81 == 0) -{ -lean_object* x_82; uint8_t x_83; -x_82 = lean_ctor_get(x_77, 1); -lean_dec(x_82); -x_83 = !lean_is_exclusive(x_78); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_78, 1); -lean_dec(x_84); -x_85 = lean_box(0); -lean_ctor_set_tag(x_78, 1); -lean_ctor_set(x_78, 1, x_85); -lean_ctor_set_tag(x_77, 1); -lean_ctor_set(x_77, 1, x_78); -lean_ctor_set(x_70, 0, x_77); -return x_69; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_78, 0); -lean_inc(x_86); -lean_dec(x_78); -x_87 = lean_box(0); -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_tag(x_77, 1); -lean_ctor_set(x_77, 1, x_88); -lean_ctor_set(x_70, 0, x_77); -return x_69; -} -} -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_77, 0); -lean_inc(x_89); -lean_dec(x_77); -x_90 = lean_ctor_get(x_78, 0); -lean_inc(x_90); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_91 = x_78; -} else { - lean_dec_ref(x_78); - x_91 = lean_box(0); -} -x_92 = lean_box(0); -if (lean_is_scalar(x_91)) { - x_93 = lean_alloc_ctor(1, 2, 0); -} else { - x_93 = x_91; - lean_ctor_set_tag(x_93, 1); -} -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_89); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_70, 0, x_94); -return x_69; -} -} -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; -x_95 = lean_ctor_get(x_69, 1); -lean_inc(x_95); -lean_dec(x_69); -x_96 = lean_ctor_get(x_77, 0); -lean_inc(x_96); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_97 = x_77; -} else { - lean_dec_ref(x_77); - x_97 = lean_box(0); -} -x_98 = lean_ctor_get(x_78, 0); -lean_inc(x_98); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_99 = x_78; -} else { - lean_dec_ref(x_78); - 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_98); -lean_ctor_set(x_101, 1, x_100); -if (lean_is_scalar(x_97)) { - x_102 = lean_alloc_ctor(1, 2, 0); -} else { - x_102 = x_97; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_96); -lean_ctor_set(x_102, 1, x_101); -lean_ctor_set(x_70, 0, x_102); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_70); -lean_ctor_set(x_103, 1, x_95); -return x_103; -} -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 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; -x_104 = lean_ctor_get(x_70, 0); -lean_inc(x_104); -lean_dec(x_70); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_ctor_get(x_69, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_108 = x_69; -} else { - lean_dec_ref(x_69); - x_108 = lean_box(0); -} -x_109 = lean_ctor_get(x_105, 0); -lean_inc(x_109); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_110 = x_105; -} else { - lean_dec_ref(x_105); - x_110 = lean_box(0); -} -x_111 = lean_ctor_get(x_106, 0); -lean_inc(x_111); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_112 = x_106; -} else { - lean_dec_ref(x_106); - x_112 = lean_box(0); -} -x_113 = lean_box(0); -if (lean_is_scalar(x_112)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_112; - lean_ctor_set_tag(x_114, 1); -} -lean_ctor_set(x_114, 0, x_111); -lean_ctor_set(x_114, 1, x_113); -if (lean_is_scalar(x_110)) { - x_115 = lean_alloc_ctor(1, 2, 0); -} else { - x_115 = x_110; - lean_ctor_set_tag(x_115, 1); -} -lean_ctor_set(x_115, 0, x_109); -lean_ctor_set(x_115, 1, x_114); -x_116 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_116, 0, x_115); -if (lean_is_scalar(x_108)) { - x_117 = lean_alloc_ctor(0, 2, 0); -} else { - x_117 = x_108; -} -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_107); -return x_117; -} -} -} -else -{ -uint8_t x_118; -x_118 = !lean_is_exclusive(x_69); -if (x_118 == 0) -{ -return x_69; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_69, 0); -x_120 = lean_ctor_get(x_69, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_69); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; +lean_dec(x_47); +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_1); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_63); +lean_ctor_set(x_70, 1, x_64); +return x_70; } } } } else { -lean_object* x_122; lean_object* x_123; +lean_object* x_71; lean_object* x_72; lean_free_object(x_15); lean_dec(x_47); lean_dec(x_4); lean_dec(x_3); -x_122 = lean_box(0); -x_123 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_122, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_123) == 0) +x_71 = lean_box(0); +x_72 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_71, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_124; -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -if (lean_obj_tag(x_124) == 0) +lean_object* x_73; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +if (lean_obj_tag(x_73) == 0) { -uint8_t x_125; -x_125 = !lean_is_exclusive(x_123); -if (x_125 == 0) +uint8_t x_74; +x_74 = !lean_is_exclusive(x_72); +if (x_74 == 0) { -lean_object* x_126; -x_126 = lean_ctor_get(x_123, 0); -lean_dec(x_126); -lean_ctor_set(x_123, 0, x_122); -return x_123; +lean_object* x_75; +x_75 = lean_ctor_get(x_72, 0); +lean_dec(x_75); +lean_ctor_set(x_72, 0, x_71); +return x_72; } else { -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_123, 1); +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_72, 1); +lean_inc(x_76); +lean_dec(x_72); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_71); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +else +{ +uint8_t x_78; +x_78 = !lean_is_exclusive(x_73); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_79 = lean_ctor_get(x_73, 0); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = !lean_is_exclusive(x_72); +if (x_82 == 0) +{ +lean_object* x_83; uint8_t x_84; +x_83 = lean_ctor_get(x_72, 0); +lean_dec(x_83); +x_84 = !lean_is_exclusive(x_80); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_80, 1); +lean_dec(x_85); +x_86 = !lean_is_exclusive(x_81); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_81, 1); +lean_dec(x_87); +x_88 = lean_box(0); +lean_ctor_set_tag(x_81, 1); +lean_ctor_set(x_81, 1, x_88); +lean_ctor_set_tag(x_80, 1); +lean_ctor_set(x_80, 1, x_81); +lean_ctor_set(x_73, 0, x_80); +return x_72; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_81, 0); +lean_inc(x_89); +lean_dec(x_81); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +lean_ctor_set_tag(x_80, 1); +lean_ctor_set(x_80, 1, x_91); +lean_ctor_set(x_73, 0, x_80); +return x_72; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_92 = lean_ctor_get(x_80, 0); +lean_inc(x_92); +lean_dec(x_80); +x_93 = lean_ctor_get(x_81, 0); +lean_inc(x_93); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_94 = x_81; +} else { + lean_dec_ref(x_81); + x_94 = lean_box(0); +} +x_95 = lean_box(0); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_94; + lean_ctor_set_tag(x_96, 1); +} +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_92); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set(x_73, 0, x_97); +return x_72; +} +} +else +{ +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; +x_98 = lean_ctor_get(x_72, 1); +lean_inc(x_98); +lean_dec(x_72); +x_99 = lean_ctor_get(x_80, 0); +lean_inc(x_99); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_100 = x_80; +} else { + lean_dec_ref(x_80); + x_100 = lean_box(0); +} +x_101 = lean_ctor_get(x_81, 0); +lean_inc(x_101); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_102 = x_81; +} else { + lean_dec_ref(x_81); + x_102 = lean_box(0); +} +x_103 = lean_box(0); +if (lean_is_scalar(x_102)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_102; + lean_ctor_set_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_103); +if (lean_is_scalar(x_100)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_100; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_99); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_73, 0, x_105); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_73); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_107 = lean_ctor_get(x_73, 0); +lean_inc(x_107); +lean_dec(x_73); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_ctor_get(x_72, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_111 = x_72; +} else { + lean_dec_ref(x_72); + x_111 = lean_box(0); +} +x_112 = lean_ctor_get(x_108, 0); +lean_inc(x_112); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_113 = x_108; +} else { + lean_dec_ref(x_108); + x_113 = lean_box(0); +} +x_114 = lean_ctor_get(x_109, 0); +lean_inc(x_114); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_115 = x_109; +} else { + lean_dec_ref(x_109); + x_115 = lean_box(0); +} +x_116 = lean_box(0); +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_115; + lean_ctor_set_tag(x_117, 1); +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_116); +if (lean_is_scalar(x_113)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_113; + lean_ctor_set_tag(x_118, 1); +} +lean_ctor_set(x_118, 0, x_112); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_119, 0, x_118); +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_119); +lean_ctor_set(x_120, 1, x_110); +return x_120; +} +} +} +else +{ +uint8_t x_121; +x_121 = !lean_is_exclusive(x_72); +if (x_121 == 0) +{ +return x_72; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_72, 0); +x_123 = lean_ctor_get(x_72, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_72); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} +} +} +} +else +{ +lean_object* x_125; lean_object* x_126; +lean_free_object(x_15); +lean_dec(x_47); +lean_dec(x_4); +lean_dec(x_3); +x_125 = lean_box(0); +x_126 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_125, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_123); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_122); -lean_ctor_set(x_128, 1, x_127); -return x_128; +if (lean_obj_tag(x_127) == 0) +{ +uint8_t x_128; +x_128 = !lean_is_exclusive(x_126); +if (x_128 == 0) +{ +lean_object* x_129; +x_129 = lean_ctor_get(x_126, 0); +lean_dec(x_129); +lean_ctor_set(x_126, 0, x_125); +return x_126; +} +else +{ +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_126, 1); +lean_inc(x_130); +lean_dec(x_126); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_125); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } else { -uint8_t x_129; -x_129 = !lean_is_exclusive(x_124); -if (x_129 == 0) +uint8_t x_132; +x_132 = !lean_is_exclusive(x_127); +if (x_132 == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; -x_130 = lean_ctor_get(x_124, 0); -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_is_exclusive(x_123); -if (x_133 == 0) +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_133 = lean_ctor_get(x_127, 0); +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_136 = !lean_is_exclusive(x_126); +if (x_136 == 0) { -lean_object* x_134; uint8_t x_135; -x_134 = lean_ctor_get(x_123, 0); -lean_dec(x_134); -x_135 = !lean_is_exclusive(x_131); -if (x_135 == 0) +lean_object* x_137; uint8_t x_138; +x_137 = lean_ctor_get(x_126, 0); +lean_dec(x_137); +x_138 = !lean_is_exclusive(x_134); +if (x_138 == 0) { -lean_object* x_136; uint8_t x_137; -x_136 = lean_ctor_get(x_131, 1); -lean_dec(x_136); -x_137 = !lean_is_exclusive(x_132); -if (x_137 == 0) +lean_object* x_139; uint8_t x_140; +x_139 = lean_ctor_get(x_134, 1); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_135); +if (x_140 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_132, 1); -lean_dec(x_138); -x_139 = lean_box(0); -lean_ctor_set_tag(x_132, 1); -lean_ctor_set(x_132, 1, x_139); -lean_ctor_set_tag(x_131, 1); -lean_ctor_set(x_131, 1, x_132); -lean_ctor_set(x_124, 0, x_131); -return x_123; +lean_object* x_141; lean_object* x_142; +x_141 = lean_ctor_get(x_135, 1); +lean_dec(x_141); +x_142 = lean_box(0); +lean_ctor_set_tag(x_135, 1); +lean_ctor_set(x_135, 1, x_142); +lean_ctor_set_tag(x_134, 1); +lean_ctor_set(x_134, 1, x_135); +lean_ctor_set(x_127, 0, x_134); +return x_126; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_132, 0); -lean_inc(x_140); -lean_dec(x_132); -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -lean_ctor_set_tag(x_131, 1); -lean_ctor_set(x_131, 1, x_142); -lean_ctor_set(x_124, 0, x_131); -return x_123; -} -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_143 = lean_ctor_get(x_131, 0); +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_135, 0); lean_inc(x_143); -lean_dec(x_131); -x_144 = lean_ctor_get(x_132, 0); -lean_inc(x_144); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_145 = x_132; -} else { - lean_dec_ref(x_132); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(1, 2, 0); -} else { - x_147 = x_145; - lean_ctor_set_tag(x_147, 1); -} -lean_ctor_set(x_147, 0, x_144); -lean_ctor_set(x_147, 1, x_146); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_143); -lean_ctor_set(x_148, 1, x_147); -lean_ctor_set(x_124, 0, x_148); -return x_123; +lean_dec(x_135); +x_144 = lean_box(0); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +lean_ctor_set_tag(x_134, 1); +lean_ctor_set(x_134, 1, x_145); +lean_ctor_set(x_127, 0, x_134); +return x_126; } } else { -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_149 = lean_ctor_get(x_123, 1); -lean_inc(x_149); -lean_dec(x_123); -x_150 = lean_ctor_get(x_131, 0); -lean_inc(x_150); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_151 = x_131; +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_134, 0); +lean_inc(x_146); +lean_dec(x_134); +x_147 = lean_ctor_get(x_135, 0); +lean_inc(x_147); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_148 = x_135; } else { - lean_dec_ref(x_131); - x_151 = lean_box(0); + lean_dec_ref(x_135); + x_148 = lean_box(0); } -x_152 = lean_ctor_get(x_132, 0); +x_149 = lean_box(0); +if (lean_is_scalar(x_148)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_148; + lean_ctor_set_tag(x_150, 1); +} +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_146); +lean_ctor_set(x_151, 1, x_150); +lean_ctor_set(x_127, 0, x_151); +return x_126; +} +} +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; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_152 = lean_ctor_get(x_126, 1); lean_inc(x_152); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_153 = x_132; +lean_dec(x_126); +x_153 = lean_ctor_get(x_134, 0); +lean_inc(x_153); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_154 = x_134; } else { - lean_dec_ref(x_132); - x_153 = lean_box(0); + lean_dec_ref(x_134); + x_154 = lean_box(0); } -x_154 = lean_box(0); -if (lean_is_scalar(x_153)) { - x_155 = lean_alloc_ctor(1, 2, 0); +x_155 = lean_ctor_get(x_135, 0); +lean_inc(x_155); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_156 = x_135; } else { - x_155 = x_153; - lean_ctor_set_tag(x_155, 1); + lean_dec_ref(x_135); + x_156 = lean_box(0); } -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_154); -if (lean_is_scalar(x_151)) { - x_156 = lean_alloc_ctor(1, 2, 0); +x_157 = lean_box(0); +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_151; - lean_ctor_set_tag(x_156, 1); + x_158 = x_156; + lean_ctor_set_tag(x_158, 1); } -lean_ctor_set(x_156, 0, x_150); -lean_ctor_set(x_156, 1, x_155); -lean_ctor_set(x_124, 0, x_156); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_124); -lean_ctor_set(x_157, 1, x_149); -return x_157; +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_157); +if (lean_is_scalar(x_154)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_154; + lean_ctor_set_tag(x_159, 1); +} +lean_ctor_set(x_159, 0, x_153); +lean_ctor_set(x_159, 1, x_158); +lean_ctor_set(x_127, 0, x_159); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_127); +lean_ctor_set(x_160, 1, x_152); +return x_160; } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_158 = lean_ctor_get(x_124, 0); -lean_inc(x_158); -lean_dec(x_124); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_ctor_get(x_123, 1); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_161 = lean_ctor_get(x_127, 0); lean_inc(x_161); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_162 = x_123; -} else { - lean_dec_ref(x_123); - x_162 = lean_box(0); -} -x_163 = lean_ctor_get(x_159, 0); +lean_dec(x_127); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); lean_inc(x_163); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_164 = x_159; +lean_dec(x_161); +x_164 = lean_ctor_get(x_126, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_165 = x_126; } else { - lean_dec_ref(x_159); - x_164 = lean_box(0); + lean_dec_ref(x_126); + x_165 = lean_box(0); } -x_165 = lean_ctor_get(x_160, 0); -lean_inc(x_165); -if (lean_is_exclusive(x_160)) { - lean_ctor_release(x_160, 0); - lean_ctor_release(x_160, 1); - x_166 = x_160; +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_167 = x_162; } else { - lean_dec_ref(x_160); - x_166 = lean_box(0); + lean_dec_ref(x_162); + x_167 = lean_box(0); } -x_167 = lean_box(0); -if (lean_is_scalar(x_166)) { - x_168 = lean_alloc_ctor(1, 2, 0); +x_168 = lean_ctor_get(x_163, 0); +lean_inc(x_168); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_169 = x_163; } else { - x_168 = x_166; - lean_ctor_set_tag(x_168, 1); + lean_dec_ref(x_163); + x_169 = lean_box(0); } -lean_ctor_set(x_168, 0, x_165); -lean_ctor_set(x_168, 1, x_167); -if (lean_is_scalar(x_164)) { - x_169 = lean_alloc_ctor(1, 2, 0); +x_170 = lean_box(0); +if (lean_is_scalar(x_169)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_169 = x_164; - lean_ctor_set_tag(x_169, 1); + x_171 = x_169; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_169, 0, x_163); -lean_ctor_set(x_169, 1, x_168); -x_170 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_170, 0, x_169); -if (lean_is_scalar(x_162)) { - x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_168); +lean_ctor_set(x_171, 1, x_170); +if (lean_is_scalar(x_167)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_162; + x_172 = x_167; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_161); -return x_171; +lean_ctor_set(x_172, 0, x_166); +lean_ctor_set(x_172, 1, x_171); +x_173 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_173, 0, x_172); +if (lean_is_scalar(x_165)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_165; +} +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_164); +return x_174; } } } else { -uint8_t x_172; -x_172 = !lean_is_exclusive(x_123); -if (x_172 == 0) +uint8_t x_175; +x_175 = !lean_is_exclusive(x_126); +if (x_175 == 0) { -return x_123; +return x_126; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_123, 0); -x_174 = lean_ctor_get(x_123, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_123); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -} -} -else -{ -lean_object* x_176; uint8_t x_177; -x_176 = lean_ctor_get(x_15, 0); +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_126, 0); +x_177 = lean_ctor_get(x_126, 1); +lean_inc(x_177); lean_inc(x_176); +lean_dec(x_126); +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 +{ +lean_object* x_179; uint8_t x_180; +x_179 = lean_ctor_get(x_15, 0); +lean_inc(x_179); lean_dec(x_15); -x_177 = l_Lean_Expr_isIte(x_176); -if (x_177 == 0) +x_180 = l_Lean_Expr_isIte(x_179); +if (x_180 == 0) { -uint8_t x_178; -x_178 = l_Lean_Expr_isDIte(x_176); -if (x_178 == 0) +uint8_t x_181; +x_181 = l_Lean_Expr_isDIte(x_179); +if (x_181 == 0) { -lean_object* x_179; +lean_object* x_182; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_176); +lean_inc(x_179); lean_inc(x_1); -x_179 = l_Lean_Meta_Split_splitMatch(x_1, x_176, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_179) == 0) +x_182 = l_Lean_Meta_Split_splitMatch(x_1, x_179, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_182) == 0) { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_176); +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_179); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14326,59 +14382,63 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_179, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_182 = x_179; +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_179); - x_182 = lean_box(0); + lean_dec_ref(x_182); + x_185 = lean_box(0); } -x_183 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_183, 0, x_180); -if (lean_is_scalar(x_182)) { - x_184 = lean_alloc_ctor(0, 2, 0); +x_186 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_186, 0, x_183); +if (lean_is_scalar(x_185)) { + x_187 = lean_alloc_ctor(0, 2, 0); } else { - x_184 = x_182; + x_187 = x_185; } -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_181); -return x_184; +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_184); +return x_187; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; -x_185 = lean_ctor_get(x_179, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_179, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_187 = x_179; +lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_188 = lean_ctor_get(x_182, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_182, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_190 = x_182; } else { - lean_dec_ref(x_179); - x_187 = lean_box(0); + lean_dec_ref(x_182); + x_190 = lean_box(0); } -x_188 = l_Lean_Exception_isRuntime(x_185); -if (x_188 == 0) +x_191 = l_Lean_Exception_isInterrupt(x_188); +if (x_191 == 0) { -lean_object* x_189; -lean_dec(x_187); -lean_dec(x_185); -x_189 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_176); -x_4 = x_189; -x_9 = x_186; +uint8_t x_192; +x_192 = l_Lean_Exception_isRuntime(x_188); +if (x_192 == 0) +{ +lean_object* x_193; +lean_dec(x_190); +lean_dec(x_188); +x_193 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_179); +x_4 = x_193; +x_9 = x_189; goto _start; } else { -lean_object* x_191; -lean_dec(x_176); +lean_object* x_195; +lean_dec(x_179); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14386,405 +14446,426 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_187)) { - x_191 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_190)) { + x_195 = lean_alloc_ctor(1, 2, 0); } else { - x_191 = x_187; -} -lean_ctor_set(x_191, 0, x_185); -lean_ctor_set(x_191, 1, x_186); -return x_191; + x_195 = x_190; } +lean_ctor_set(x_195, 0, x_188); +lean_ctor_set(x_195, 1, x_189); +return x_195; } } else { -lean_object* x_192; lean_object* x_193; -lean_dec(x_176); +lean_object* x_196; +lean_dec(x_179); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_192 = lean_box(0); -x_193 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_192, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -if (lean_obj_tag(x_194) == 0) -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_196 = x_193; +lean_dec(x_1); +if (lean_is_scalar(x_190)) { + x_196 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_193); - x_196 = lean_box(0); + x_196 = x_190; +} +lean_ctor_set(x_196, 0, x_188); +lean_ctor_set(x_196, 1, x_189); +return x_196; } -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(0, 2, 0); -} else { - x_197 = x_196; } -lean_ctor_set(x_197, 0, x_192); -lean_ctor_set(x_197, 1, x_195); -return x_197; } else { -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; lean_object* x_211; lean_object* x_212; -x_198 = lean_ctor_get(x_194, 0); -lean_inc(x_198); -if (lean_is_exclusive(x_194)) { - lean_ctor_release(x_194, 0); - x_199 = x_194; -} else { - lean_dec_ref(x_194); - x_199 = lean_box(0); -} -x_200 = lean_ctor_get(x_198, 0); +lean_object* x_197; lean_object* x_198; +lean_dec(x_179); +lean_dec(x_4); +lean_dec(x_3); +x_197 = lean_box(0); +x_198 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_197, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +if (lean_obj_tag(x_199) == 0) +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_198, 1); lean_inc(x_200); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -lean_dec(x_198); -x_202 = lean_ctor_get(x_193, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_203 = x_193; +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_201 = x_198; } else { - lean_dec_ref(x_193); - x_203 = lean_box(0); + lean_dec_ref(x_198); + x_201 = lean_box(0); } -x_204 = lean_ctor_get(x_200, 0); -lean_inc(x_204); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_205 = x_200; +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_200); - x_205 = lean_box(0); + x_202 = x_201; } -x_206 = lean_ctor_get(x_201, 0); +lean_ctor_set(x_202, 0, x_197); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_203 = lean_ctor_get(x_199, 0); +lean_inc(x_203); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + x_204 = x_199; +} else { + lean_dec_ref(x_199); + x_204 = lean_box(0); +} +x_205 = lean_ctor_get(x_203, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_203, 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; +lean_dec(x_203); +x_207 = lean_ctor_get(x_198, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_208 = x_198; } else { - lean_dec_ref(x_201); - x_207 = lean_box(0); + lean_dec_ref(x_198); + x_208 = lean_box(0); } -x_208 = lean_box(0); -if (lean_is_scalar(x_207)) { - x_209 = lean_alloc_ctor(1, 2, 0); -} else { - x_209 = x_207; - lean_ctor_set_tag(x_209, 1); -} -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_208); -if (lean_is_scalar(x_205)) { - x_210 = lean_alloc_ctor(1, 2, 0); -} else { +x_209 = lean_ctor_get(x_205, 0); +lean_inc(x_209); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); x_210 = x_205; - lean_ctor_set_tag(x_210, 1); -} -lean_ctor_set(x_210, 0, x_204); -lean_ctor_set(x_210, 1, x_209); -if (lean_is_scalar(x_199)) { - x_211 = lean_alloc_ctor(1, 1, 0); } else { - x_211 = x_199; + lean_dec_ref(x_205); + x_210 = lean_box(0); } -lean_ctor_set(x_211, 0, x_210); -if (lean_is_scalar(x_203)) { - x_212 = lean_alloc_ctor(0, 2, 0); +x_211 = lean_ctor_get(x_206, 0); +lean_inc(x_211); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_212 = x_206; } else { - x_212 = x_203; + lean_dec_ref(x_206); + x_212 = lean_box(0); } -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_202); -return x_212; +x_213 = lean_box(0); +if (lean_is_scalar(x_212)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_212; + lean_ctor_set_tag(x_214, 1); +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_213); +if (lean_is_scalar(x_210)) { + x_215 = lean_alloc_ctor(1, 2, 0); +} else { + x_215 = x_210; + lean_ctor_set_tag(x_215, 1); +} +lean_ctor_set(x_215, 0, x_209); +lean_ctor_set(x_215, 1, x_214); +if (lean_is_scalar(x_204)) { + x_216 = lean_alloc_ctor(1, 1, 0); +} else { + x_216 = x_204; +} +lean_ctor_set(x_216, 0, x_215); +if (lean_is_scalar(x_208)) { + x_217 = lean_alloc_ctor(0, 2, 0); +} else { + x_217 = x_208; +} +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_207); +return x_217; } } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_213 = lean_ctor_get(x_193, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_193, 1); -lean_inc(x_214); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_215 = x_193; +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_218 = lean_ctor_get(x_198, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_198, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_220 = x_198; } else { - lean_dec_ref(x_193); - x_215 = lean_box(0); + lean_dec_ref(x_198); + x_220 = lean_box(0); } -if (lean_is_scalar(x_215)) { - x_216 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_220)) { + x_221 = lean_alloc_ctor(1, 2, 0); } else { - x_216 = x_215; + x_221 = x_220; } -lean_ctor_set(x_216, 0, x_213); -lean_ctor_set(x_216, 1, x_214); -return x_216; +lean_ctor_set(x_221, 0, x_218); +lean_ctor_set(x_221, 1, x_219); +return x_221; } } } else { -lean_object* x_217; lean_object* x_218; -lean_dec(x_176); +lean_object* x_222; lean_object* x_223; +lean_dec(x_179); lean_dec(x_4); lean_dec(x_3); -x_217 = lean_box(0); -x_218 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_217, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_218) == 0) +x_222 = lean_box(0); +x_223 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_222, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_219; -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -if (lean_obj_tag(x_219) == 0) +lean_object* x_224; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_221 = x_218; -} else { - lean_dec_ref(x_218); - x_221 = lean_box(0); -} -if (lean_is_scalar(x_221)) { - x_222 = lean_alloc_ctor(0, 2, 0); -} else { - x_222 = x_221; -} -lean_ctor_set(x_222, 0, x_217); -lean_ctor_set(x_222, 1, x_220); -return x_222; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_223 = lean_ctor_get(x_219, 0); -lean_inc(x_223); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - x_224 = x_219; -} else { - lean_dec_ref(x_219); - x_224 = lean_box(0); -} -x_225 = lean_ctor_get(x_223, 0); +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_223, 1); lean_inc(x_225); -x_226 = lean_ctor_get(x_223, 1); -lean_inc(x_226); -lean_dec(x_223); -x_227 = lean_ctor_get(x_218, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_228 = x_218; +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_226 = x_223; } else { - lean_dec_ref(x_218); - x_228 = lean_box(0); + lean_dec_ref(x_223); + x_226 = lean_box(0); } -x_229 = lean_ctor_get(x_225, 0); -lean_inc(x_229); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_230 = x_225; +if (lean_is_scalar(x_226)) { + x_227 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_225); - x_230 = lean_box(0); + x_227 = x_226; } -x_231 = lean_ctor_get(x_226, 0); +lean_ctor_set(x_227, 0, x_222); +lean_ctor_set(x_227, 1, x_225); +return x_227; +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_228 = lean_ctor_get(x_224, 0); +lean_inc(x_228); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + x_229 = x_224; +} else { + lean_dec_ref(x_224); + x_229 = lean_box(0); +} +x_230 = lean_ctor_get(x_228, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_228, 1); lean_inc(x_231); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_232 = x_226; +lean_dec(x_228); +x_232 = lean_ctor_get(x_223, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_233 = x_223; } else { - lean_dec_ref(x_226); - x_232 = lean_box(0); + lean_dec_ref(x_223); + x_233 = lean_box(0); } -x_233 = lean_box(0); -if (lean_is_scalar(x_232)) { - x_234 = lean_alloc_ctor(1, 2, 0); -} else { - x_234 = x_232; - lean_ctor_set_tag(x_234, 1); -} -lean_ctor_set(x_234, 0, x_231); -lean_ctor_set(x_234, 1, x_233); -if (lean_is_scalar(x_230)) { - x_235 = lean_alloc_ctor(1, 2, 0); -} else { +x_234 = lean_ctor_get(x_230, 0); +lean_inc(x_234); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); x_235 = x_230; - lean_ctor_set_tag(x_235, 1); -} -lean_ctor_set(x_235, 0, x_229); -lean_ctor_set(x_235, 1, x_234); -if (lean_is_scalar(x_224)) { - x_236 = lean_alloc_ctor(1, 1, 0); } else { - x_236 = x_224; + lean_dec_ref(x_230); + x_235 = lean_box(0); } -lean_ctor_set(x_236, 0, x_235); -if (lean_is_scalar(x_228)) { - x_237 = lean_alloc_ctor(0, 2, 0); +x_236 = lean_ctor_get(x_231, 0); +lean_inc(x_236); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_237 = x_231; } else { - x_237 = x_228; + lean_dec_ref(x_231); + x_237 = lean_box(0); } -lean_ctor_set(x_237, 0, x_236); -lean_ctor_set(x_237, 1, x_227); -return x_237; +x_238 = lean_box(0); +if (lean_is_scalar(x_237)) { + x_239 = lean_alloc_ctor(1, 2, 0); +} else { + x_239 = x_237; + lean_ctor_set_tag(x_239, 1); +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_238); +if (lean_is_scalar(x_235)) { + x_240 = lean_alloc_ctor(1, 2, 0); +} else { + x_240 = x_235; + lean_ctor_set_tag(x_240, 1); +} +lean_ctor_set(x_240, 0, x_234); +lean_ctor_set(x_240, 1, x_239); +if (lean_is_scalar(x_229)) { + x_241 = lean_alloc_ctor(1, 1, 0); +} else { + x_241 = x_229; +} +lean_ctor_set(x_241, 0, x_240); +if (lean_is_scalar(x_233)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_233; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_232); +return x_242; } } else { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_238 = lean_ctor_get(x_218, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_218, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_240 = x_218; -} else { - lean_dec_ref(x_218); - x_240 = lean_box(0); -} -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(1, 2, 0); -} else { - x_241 = x_240; -} -lean_ctor_set(x_241, 0, x_238); -lean_ctor_set(x_241, 1, x_239); -return x_241; -} -} -} -} -} -else -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_242 = lean_ctor_get(x_10, 0); -x_243 = lean_ctor_get(x_10, 1); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_243 = lean_ctor_get(x_223, 0); lean_inc(x_243); -lean_inc(x_242); -lean_dec(x_10); -x_244 = lean_ctor_get(x_242, 0); +x_244 = lean_ctor_get(x_223, 1); lean_inc(x_244); -lean_dec(x_242); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_245 = x_223; +} else { + lean_dec_ref(x_223); + x_245 = lean_box(0); +} +if (lean_is_scalar(x_245)) { + x_246 = lean_alloc_ctor(1, 2, 0); +} else { + x_246 = x_245; +} +lean_ctor_set(x_246, 0, x_243); +lean_ctor_set(x_246, 1, x_244); +return x_246; +} +} +} +} +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_247 = lean_ctor_get(x_10, 0); +x_248 = lean_ctor_get(x_10, 1); +lean_inc(x_248); +lean_inc(x_247); +lean_dec(x_10); +x_249 = lean_ctor_get(x_247, 0); +lean_inc(x_249); +lean_dec(x_247); lean_inc(x_3); lean_inc(x_4); -x_245 = l_Lean_Meta_Split_findSplit_x3f_go(x_244, x_2, x_4, x_3); -if (lean_obj_tag(x_245) == 0) +x_250 = l_Lean_Meta_Split_findSplit_x3f_go(x_249, x_2, x_4, x_3); +if (lean_obj_tag(x_250) == 0) { -lean_object* x_246; 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_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; lean_dec(x_4); lean_dec(x_3); -x_246 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__4___closed__4; -x_247 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_246, x_5, x_6, x_7, x_8, x_243); -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_250 = x_247; +x_251 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__4___closed__4; +x_252 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_251, x_5, x_6, x_7, x_8, x_248); +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_252)) { + lean_ctor_release(x_252, 0); + lean_ctor_release(x_252, 1); + x_255 = x_252; } else { - lean_dec_ref(x_247); - x_250 = lean_box(0); + lean_dec_ref(x_252); + x_255 = lean_box(0); } -x_251 = l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1___closed__1; -x_252 = lean_unbox(x_248); -lean_dec(x_248); -if (x_252 == 0) +x_256 = l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1___closed__1; +x_257 = lean_unbox(x_253); +lean_dec(x_253); +if (x_257 == 0) { -lean_object* x_253; lean_object* x_254; -lean_dec(x_250); +lean_object* x_258; lean_object* x_259; +lean_dec(x_255); lean_dec(x_1); -x_253 = lean_box(0); -x_254 = lean_apply_6(x_251, x_253, x_5, x_6, x_7, x_8, x_249); -return x_254; +x_258 = lean_box(0); +x_259 = lean_apply_6(x_256, x_258, x_5, x_6, x_7, x_8, x_254); +return x_259; } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_255 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_255, 0, x_1); -x_256 = l_Lean_Meta_splitTarget_x3f_go___closed__2; -if (lean_is_scalar(x_250)) { - x_257 = lean_alloc_ctor(6, 2, 0); +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_260 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_260, 0, x_1); +x_261 = l_Lean_Meta_splitTarget_x3f_go___closed__2; +if (lean_is_scalar(x_255)) { + x_262 = lean_alloc_ctor(6, 2, 0); } else { - x_257 = x_250; - lean_ctor_set_tag(x_257, 6); + x_262 = x_255; + lean_ctor_set_tag(x_262, 6); } -lean_ctor_set(x_257, 0, x_256); -lean_ctor_set(x_257, 1, x_255); -x_258 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__4___closed__10; -x_259 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -x_260 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_246, x_259, x_5, x_6, x_7, x_8, x_249); -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_apply_6(x_251, x_261, x_5, x_6, x_7, x_8, x_262); -return x_263; +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +x_263 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__4___closed__10; +x_264 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +x_265 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_251, x_264, x_5, x_6, x_7, x_8, x_254); +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +lean_dec(x_265); +x_268 = lean_apply_6(x_256, x_266, x_5, x_6, x_7, x_8, x_267); +return x_268; } } else { -lean_object* x_264; lean_object* x_265; uint8_t x_266; -x_264 = lean_ctor_get(x_245, 0); -lean_inc(x_264); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - x_265 = x_245; +lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_269 = lean_ctor_get(x_250, 0); +lean_inc(x_269); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + x_270 = x_250; } else { - lean_dec_ref(x_245); - x_265 = lean_box(0); + lean_dec_ref(x_250); + x_270 = lean_box(0); } -x_266 = l_Lean_Expr_isIte(x_264); -if (x_266 == 0) +x_271 = l_Lean_Expr_isIte(x_269); +if (x_271 == 0) { -uint8_t x_267; -x_267 = l_Lean_Expr_isDIte(x_264); -if (x_267 == 0) +uint8_t x_272; +x_272 = l_Lean_Expr_isDIte(x_269); +if (x_272 == 0) { -lean_object* x_268; +lean_object* x_273; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_264); +lean_inc(x_269); lean_inc(x_1); -x_268 = l_Lean_Meta_Split_splitMatch(x_1, x_264, x_5, x_6, x_7, x_8, x_243); -if (lean_obj_tag(x_268) == 0) +x_273 = l_Lean_Meta_Split_splitMatch(x_1, x_269, x_5, x_6, x_7, x_8, x_248); +if (lean_obj_tag(x_273) == 0) { -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -lean_dec(x_264); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_269); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14792,64 +14873,68 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_269 = lean_ctor_get(x_268, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_268, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_271 = x_268; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_276 = x_273; } else { - lean_dec_ref(x_268); - x_271 = lean_box(0); + lean_dec_ref(x_273); + x_276 = lean_box(0); } -if (lean_is_scalar(x_265)) { - x_272 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_270)) { + x_277 = lean_alloc_ctor(1, 1, 0); } else { - x_272 = x_265; + x_277 = x_270; } -lean_ctor_set(x_272, 0, x_269); -if (lean_is_scalar(x_271)) { - x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_277, 0, x_274); +if (lean_is_scalar(x_276)) { + x_278 = lean_alloc_ctor(0, 2, 0); } else { - x_273 = x_271; + x_278 = x_276; } -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_270); -return x_273; +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_275); +return x_278; } else { -lean_object* x_274; lean_object* x_275; lean_object* x_276; uint8_t x_277; -lean_dec(x_265); -x_274 = lean_ctor_get(x_268, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_268, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_276 = x_268; +lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; +lean_dec(x_270); +x_279 = lean_ctor_get(x_273, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_273, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_281 = x_273; } else { - lean_dec_ref(x_268); - x_276 = lean_box(0); + lean_dec_ref(x_273); + x_281 = lean_box(0); } -x_277 = l_Lean_Exception_isRuntime(x_274); -if (x_277 == 0) +x_282 = l_Lean_Exception_isInterrupt(x_279); +if (x_282 == 0) { -lean_object* x_278; -lean_dec(x_276); -lean_dec(x_274); -x_278 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_264); -x_4 = x_278; -x_9 = x_275; +uint8_t x_283; +x_283 = l_Lean_Exception_isRuntime(x_279); +if (x_283 == 0) +{ +lean_object* x_284; +lean_dec(x_281); +lean_dec(x_279); +x_284 = l_Lean_HashSetImp_insert___at_Lean_CollectLevelParams_visitExpr___spec__3(x_4, x_269); +x_4 = x_284; +x_9 = x_280; goto _start; } else { -lean_object* x_280; -lean_dec(x_264); +lean_object* x_286; +lean_dec(x_269); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14857,298 +14942,319 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_276)) { - x_280 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_281)) { + x_286 = lean_alloc_ctor(1, 2, 0); } else { - x_280 = x_276; + x_286 = x_281; } -lean_ctor_set(x_280, 0, x_274); -lean_ctor_set(x_280, 1, x_275); -return x_280; -} -} -} -else -{ -lean_object* x_281; lean_object* x_282; -lean_dec(x_265); -lean_dec(x_264); -lean_dec(x_4); -lean_dec(x_3); -x_281 = lean_box(0); -x_282 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_281, x_5, x_6, x_7, x_8, x_243); -if (lean_obj_tag(x_282) == 0) -{ -lean_object* x_283; -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -if (lean_obj_tag(x_283) == 0) -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_285 = x_282; -} else { - lean_dec_ref(x_282); - x_285 = lean_box(0); -} -if (lean_is_scalar(x_285)) { - x_286 = lean_alloc_ctor(0, 2, 0); -} else { - x_286 = x_285; -} -lean_ctor_set(x_286, 0, x_281); -lean_ctor_set(x_286, 1, x_284); +lean_ctor_set(x_286, 0, x_279); +lean_ctor_set(x_286, 1, x_280); return x_286; } +} 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; 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; -x_287 = lean_ctor_get(x_283, 0); -lean_inc(x_287); -if (lean_is_exclusive(x_283)) { - lean_ctor_release(x_283, 0); - x_288 = x_283; +lean_object* x_287; +lean_dec(x_269); +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_1); +if (lean_is_scalar(x_281)) { + x_287 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_283); - x_288 = lean_box(0); + x_287 = x_281; } -x_289 = lean_ctor_get(x_287, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_287, 1); +lean_ctor_set(x_287, 0, x_279); +lean_ctor_set(x_287, 1, x_280); +return x_287; +} +} +} +else +{ +lean_object* x_288; lean_object* x_289; +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_4); +lean_dec(x_3); +x_288 = lean_box(0); +x_289 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_288, x_5, x_6, x_7, x_8, x_248); +if (lean_obj_tag(x_289) == 0) +{ +lean_object* x_290; +x_290 = lean_ctor_get(x_289, 0); lean_inc(x_290); -lean_dec(x_287); -x_291 = lean_ctor_get(x_282, 1); +if (lean_obj_tag(x_290) == 0) +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_291 = lean_ctor_get(x_289, 1); lean_inc(x_291); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_292 = x_282; -} else { - lean_dec_ref(x_282); - x_292 = lean_box(0); -} -x_293 = lean_ctor_get(x_289, 0); -lean_inc(x_293); if (lean_is_exclusive(x_289)) { lean_ctor_release(x_289, 0); lean_ctor_release(x_289, 1); - x_294 = x_289; + x_292 = x_289; } else { lean_dec_ref(x_289); - x_294 = lean_box(0); + x_292 = lean_box(0); } -x_295 = lean_ctor_get(x_290, 0); -lean_inc(x_295); +if (lean_is_scalar(x_292)) { + x_293 = lean_alloc_ctor(0, 2, 0); +} else { + x_293 = x_292; +} +lean_ctor_set(x_293, 0, x_288); +lean_ctor_set(x_293, 1, x_291); +return x_293; +} +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; 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; +x_294 = lean_ctor_get(x_290, 0); +lean_inc(x_294); if (lean_is_exclusive(x_290)) { lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_296 = x_290; + x_295 = x_290; } else { lean_dec_ref(x_290); - x_296 = lean_box(0); + x_295 = lean_box(0); } -x_297 = lean_box(0); -if (lean_is_scalar(x_296)) { - x_298 = lean_alloc_ctor(1, 2, 0); +x_296 = lean_ctor_get(x_294, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_294, 1); +lean_inc(x_297); +lean_dec(x_294); +x_298 = lean_ctor_get(x_289, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_299 = x_289; } else { - x_298 = x_296; - lean_ctor_set_tag(x_298, 1); + lean_dec_ref(x_289); + x_299 = lean_box(0); } -lean_ctor_set(x_298, 0, x_295); -lean_ctor_set(x_298, 1, x_297); -if (lean_is_scalar(x_294)) { - x_299 = lean_alloc_ctor(1, 2, 0); +x_300 = lean_ctor_get(x_296, 0); +lean_inc(x_300); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_301 = x_296; } else { - x_299 = x_294; - lean_ctor_set_tag(x_299, 1); + lean_dec_ref(x_296); + x_301 = lean_box(0); } -lean_ctor_set(x_299, 0, x_293); -lean_ctor_set(x_299, 1, x_298); -if (lean_is_scalar(x_288)) { - x_300 = lean_alloc_ctor(1, 1, 0); -} else { - x_300 = x_288; -} -lean_ctor_set(x_300, 0, x_299); -if (lean_is_scalar(x_292)) { - x_301 = lean_alloc_ctor(0, 2, 0); -} else { - x_301 = x_292; -} -lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_291); -return x_301; -} -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_302 = lean_ctor_get(x_282, 0); +x_302 = lean_ctor_get(x_297, 0); lean_inc(x_302); -x_303 = lean_ctor_get(x_282, 1); -lean_inc(x_303); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_304 = x_282; +if (lean_is_exclusive(x_297)) { + lean_ctor_release(x_297, 0); + lean_ctor_release(x_297, 1); + x_303 = x_297; } else { - lean_dec_ref(x_282); - x_304 = lean_box(0); + lean_dec_ref(x_297); + x_303 = lean_box(0); } -if (lean_is_scalar(x_304)) { +x_304 = lean_box(0); +if (lean_is_scalar(x_303)) { x_305 = lean_alloc_ctor(1, 2, 0); } else { - x_305 = x_304; + x_305 = x_303; + lean_ctor_set_tag(x_305, 1); } lean_ctor_set(x_305, 0, x_302); -lean_ctor_set(x_305, 1, x_303); -return x_305; +lean_ctor_set(x_305, 1, x_304); +if (lean_is_scalar(x_301)) { + x_306 = lean_alloc_ctor(1, 2, 0); +} else { + x_306 = x_301; + lean_ctor_set_tag(x_306, 1); +} +lean_ctor_set(x_306, 0, x_300); +lean_ctor_set(x_306, 1, x_305); +if (lean_is_scalar(x_295)) { + x_307 = lean_alloc_ctor(1, 1, 0); +} else { + x_307 = x_295; +} +lean_ctor_set(x_307, 0, x_306); +if (lean_is_scalar(x_299)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_299; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_298); +return x_308; +} +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_309 = lean_ctor_get(x_289, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_289, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_311 = x_289; +} else { + lean_dec_ref(x_289); + 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_306; lean_object* x_307; -lean_dec(x_265); -lean_dec(x_264); +lean_object* x_313; lean_object* x_314; +lean_dec(x_270); +lean_dec(x_269); lean_dec(x_4); lean_dec(x_3); -x_306 = lean_box(0); -x_307 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_306, x_5, x_6, x_7, x_8, x_243); -if (lean_obj_tag(x_307) == 0) +x_313 = lean_box(0); +x_314 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_313, x_5, x_6, x_7, x_8, x_248); +if (lean_obj_tag(x_314) == 0) { -lean_object* x_308; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -if (lean_obj_tag(x_308) == 0) -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_310 = x_307; -} else { - lean_dec_ref(x_307); - x_310 = lean_box(0); -} -if (lean_is_scalar(x_310)) { - x_311 = lean_alloc_ctor(0, 2, 0); -} else { - x_311 = x_310; -} -lean_ctor_set(x_311, 0, x_306); -lean_ctor_set(x_311, 1, x_309); -return x_311; -} -else -{ -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; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_312 = lean_ctor_get(x_308, 0); -lean_inc(x_312); -if (lean_is_exclusive(x_308)) { - lean_ctor_release(x_308, 0); - x_313 = x_308; -} else { - lean_dec_ref(x_308); - x_313 = lean_box(0); -} -x_314 = lean_ctor_get(x_312, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_312, 1); +lean_object* x_315; +x_315 = lean_ctor_get(x_314, 0); lean_inc(x_315); -lean_dec(x_312); -x_316 = lean_ctor_get(x_307, 1); +if (lean_obj_tag(x_315) == 0) +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_316 = lean_ctor_get(x_314, 1); lean_inc(x_316); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_317 = x_307; -} else { - lean_dec_ref(x_307); - x_317 = lean_box(0); -} -x_318 = lean_ctor_get(x_314, 0); -lean_inc(x_318); if (lean_is_exclusive(x_314)) { lean_ctor_release(x_314, 0); lean_ctor_release(x_314, 1); - x_319 = x_314; + x_317 = x_314; } else { lean_dec_ref(x_314); - x_319 = lean_box(0); + x_317 = lean_box(0); } -x_320 = lean_ctor_get(x_315, 0); -lean_inc(x_320); +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(0, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_313); +lean_ctor_set(x_318, 1, x_316); +return x_318; +} +else +{ +lean_object* x_319; 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_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_319 = lean_ctor_get(x_315, 0); +lean_inc(x_319); if (lean_is_exclusive(x_315)) { lean_ctor_release(x_315, 0); - lean_ctor_release(x_315, 1); - x_321 = x_315; + x_320 = x_315; } else { lean_dec_ref(x_315); - x_321 = lean_box(0); + x_320 = lean_box(0); } -x_322 = lean_box(0); -if (lean_is_scalar(x_321)) { - x_323 = lean_alloc_ctor(1, 2, 0); +x_321 = lean_ctor_get(x_319, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_319, 1); +lean_inc(x_322); +lean_dec(x_319); +x_323 = lean_ctor_get(x_314, 1); +lean_inc(x_323); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_324 = x_314; } else { - x_323 = x_321; - lean_ctor_set_tag(x_323, 1); + lean_dec_ref(x_314); + x_324 = lean_box(0); } -lean_ctor_set(x_323, 0, x_320); -lean_ctor_set(x_323, 1, x_322); -if (lean_is_scalar(x_319)) { - x_324 = lean_alloc_ctor(1, 2, 0); +x_325 = lean_ctor_get(x_321, 0); +lean_inc(x_325); +if (lean_is_exclusive(x_321)) { + lean_ctor_release(x_321, 0); + lean_ctor_release(x_321, 1); + x_326 = x_321; } else { - x_324 = x_319; - lean_ctor_set_tag(x_324, 1); + lean_dec_ref(x_321); + x_326 = lean_box(0); } -lean_ctor_set(x_324, 0, x_318); -lean_ctor_set(x_324, 1, x_323); -if (lean_is_scalar(x_313)) { - x_325 = lean_alloc_ctor(1, 1, 0); +x_327 = lean_ctor_get(x_322, 0); +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 { - x_325 = x_313; + lean_dec_ref(x_322); + x_328 = lean_box(0); } -lean_ctor_set(x_325, 0, x_324); -if (lean_is_scalar(x_317)) { - x_326 = lean_alloc_ctor(0, 2, 0); +x_329 = lean_box(0); +if (lean_is_scalar(x_328)) { + x_330 = lean_alloc_ctor(1, 2, 0); } else { - x_326 = x_317; + x_330 = x_328; + lean_ctor_set_tag(x_330, 1); } -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_316); -return x_326; +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_329); +if (lean_is_scalar(x_326)) { + x_331 = lean_alloc_ctor(1, 2, 0); +} else { + x_331 = x_326; + lean_ctor_set_tag(x_331, 1); +} +lean_ctor_set(x_331, 0, x_325); +lean_ctor_set(x_331, 1, x_330); +if (lean_is_scalar(x_320)) { + x_332 = lean_alloc_ctor(1, 1, 0); +} else { + x_332 = x_320; +} +lean_ctor_set(x_332, 0, x_331); +if (lean_is_scalar(x_324)) { + x_333 = lean_alloc_ctor(0, 2, 0); +} else { + x_333 = x_324; +} +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_323); +return x_333; } } else { -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_327 = lean_ctor_get(x_307, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_307, 1); -lean_inc(x_328); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_329 = x_307; +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_334 = lean_ctor_get(x_314, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_314, 1); +lean_inc(x_335); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + x_336 = x_314; } else { - lean_dec_ref(x_307); - x_329 = lean_box(0); + lean_dec_ref(x_314); + x_336 = lean_box(0); } -if (lean_is_scalar(x_329)) { - x_330 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_336)) { + x_337 = lean_alloc_ctor(1, 2, 0); } else { - x_330 = x_329; + x_337 = x_336; } -lean_ctor_set(x_330, 0, x_327); -lean_ctor_set(x_330, 1, x_328); -return x_330; +lean_ctor_set(x_337, 0, x_334); +lean_ctor_set(x_337, 1, x_335); +return x_337; } } } @@ -15168,7 +15274,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___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: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -15186,172 +15292,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c index 4fd03f9c2c..380b4dedde 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c +++ b/stage0/stdlib/Lean/Meta/Tactic/SplitIf.c @@ -41,6 +41,7 @@ uint32_t l_UInt32_ofNatTruncate(lean_object*); static lean_object* l_Lean_Meta_simpIfLocalDecl___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_splitIfTarget_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SplitIf_initFn____x40_Lean_Meta_Tactic_SplitIf___hyg_5____lambda__1___closed__3; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(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*); static lean_object* l_Lean_Meta_SplitIf_splitIfAt_x3f___lambda__2___closed__2; @@ -4716,7 +4717,7 @@ return x_44; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___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: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -4734,172 +4735,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } @@ -6053,7 +6077,7 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfLocalDecl_x3f___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: { -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_21; +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_23; x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); @@ -6071,172 +6095,195 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_21) == 0) +x_23 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; +lean_object* x_24; lean_dec(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_23); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_25); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); x_29 = lean_box(0); -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; +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +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_31; +uint8_t x_33; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_21, 0); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_22); +x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { -return x_21; +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_23, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_23; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_22, 0); -lean_inc(x_34); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_21, 0, x_35); -return x_21; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_21, 1); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_24, 0); lean_inc(x_36); -lean_dec(x_21); -x_37 = lean_ctor_get(x_22, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_38 = x_22; -} else { - lean_dec_ref(x_22); - x_38 = lean_box(0); +lean_dec(x_24); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_23, 0, x_37); +return x_23; } -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; } -lean_ctor_set(x_39, 0, x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 0); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_40 = x_24; +} else { + lean_dec_ref(x_24); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(1, 1, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, 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_38); +return x_42; } } } else { -lean_object* x_41; lean_object* x_42; -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_11 = x_41; -x_12 = x_42; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_23, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); +lean_dec(x_23); +x_11 = x_43; +x_12 = x_44; +goto block_22; } -block_20: +block_22: { uint8_t x_13; -x_13 = l_Lean_Exception_isRuntime(x_11); +x_13 = l_Lean_Exception_isInterrupt(x_11); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; +uint8_t x_14; +x_14 = l_Lean_Exception_isRuntime(x_11); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_dec(x_10); -x_14 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_11); -return x_14; +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_11); +return x_15; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_11); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } else { -lean_object* x_19; +lean_object* x_20; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); if (lean_is_scalar(x_10)) { - x_19 = lean_alloc_ctor(1, 2, 0); + x_20 = lean_alloc_ctor(1, 2, 0); } else { - x_19 = x_10; - lean_ctor_set_tag(x_19, 1); + x_20 = x_10; + lean_ctor_set_tag(x_20, 1); } -lean_ctor_set(x_19, 0, x_11); -lean_ctor_set(x_19, 1, x_12); -return x_19; +lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 1, x_12); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_10)) { + x_21 = lean_alloc_ctor(1, 2, 0); +} else { + x_21 = x_10; + lean_ctor_set_tag(x_21, 1); +} +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_12); +return x_21; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index e94c54263d..3a0c408bef 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -33,6 +33,7 @@ static lean_object* l_Lean_Meta_substCore___lambda__14___closed__4; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_substCore___lambda__14___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_substCore___lambda__3(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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -13246,39 +13247,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -13293,55 +13298,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } @@ -13427,39 +13460,43 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_10, 0); x_20 = lean_ctor_get(x_10, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t x_23; +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_free_object(x_10); lean_dec(x_19); -x_22 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); +x_23 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_20); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_8); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -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_26); -return x_28; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } else @@ -13474,55 +13511,83 @@ return x_10; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_29); -x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_30); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_8); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +return x_10; } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; } else { -lean_object* x_37; +lean_object* x_30; lean_object* x_31; uint8_t 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 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_30); +x_34 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_8); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +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); +return x_38; +} +else +{ +lean_object* x_39; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Symm.c b/stage0/stdlib/Lean/Meta/Tactic/Symm.c index efe64c9216..230dbefe65 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Symm.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Symm.c @@ -41,6 +41,7 @@ static lean_object* l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_1 LEAN_EXPORT lean_object* l_List_firstM___at_Lean_MVarId_applySymm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____closed__15; uint8_t lean_usize_dec_le(size_t, size_t); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____closed__14; size_t lean_uint64_to_usize(uint64_t); @@ -3976,7 +3977,7 @@ return x_10; } else { -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_25; lean_object* x_26; lean_object* x_27; +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_27; lean_object* x_28; lean_object* x_29; x_11 = lean_ctor_get(x_3, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_3, 1); @@ -3995,143 +3996,143 @@ if (lean_is_exclusive(x_13)) { lean_dec_ref(x_13); x_16 = lean_box(0); } -x_25 = l_Lean_Meta_SavedState_restore(x_2, x_4, x_5, x_6, x_7, x_15); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_27 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_11, x_4, x_5, x_6, x_7, x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_27, 0); +x_27 = l_Lean_Meta_SavedState_restore(x_2, x_4, x_5, x_6, x_7, x_15); +x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); lean_dec(x_27); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_28); -x_30 = lean_infer_type(x_28, x_4, x_5, x_6, x_7, x_29); -if (lean_obj_tag(x_30) == 0) +x_29 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_11, x_4, x_5, x_6, x_7, x_28); +if (lean_obj_tag(x_29) == 0) { -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; uint8_t x_40; -x_31 = lean_ctor_get(x_30, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_box(0); -x_34 = lean_ctor_get(x_4, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_4, 1); -lean_inc(x_35); -x_36 = lean_ctor_get(x_4, 2); -lean_inc(x_36); -x_37 = lean_ctor_get(x_4, 3); -lean_inc(x_37); -x_38 = lean_ctor_get(x_4, 4); -lean_inc(x_38); -x_39 = lean_ctor_get(x_4, 5); -lean_inc(x_39); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) -{ -uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; -x_41 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); -x_42 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); -x_43 = 2; -lean_ctor_set_uint8(x_34, 9, x_43); -x_44 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_44, 0, x_34); -lean_ctor_set(x_44, 1, x_35); -lean_ctor_set(x_44, 2, x_36); -lean_ctor_set(x_44, 3, x_37); -lean_ctor_set(x_44, 4, x_38); -lean_ctor_set(x_44, 5, x_39); -lean_ctor_set_uint8(x_44, sizeof(void*)*6, x_41); -lean_ctor_set_uint8(x_44, sizeof(void*)*6 + 1, x_42); -x_45 = 1; -x_46 = 0; +lean_dec(x_29); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_47 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_31, x_45, x_33, x_46, x_44, x_5, x_6, x_7, x_32); -if (lean_obj_tag(x_47) == 0) +lean_inc(x_4); +lean_inc(x_30); +x_32 = lean_infer_type(x_30, x_4, x_5, x_6, x_7, x_31); +if (lean_obj_tag(x_32) == 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; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_47, 1); +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; uint8_t x_42; +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_box(0); +x_36 = lean_ctor_get(x_4, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_4, 2); +lean_inc(x_38); +x_39 = lean_ctor_get(x_4, 3); +lean_inc(x_39); +x_40 = lean_ctor_get(x_4, 4); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 5); +lean_inc(x_41); +x_42 = !lean_is_exclusive(x_36); +if (x_42 == 0) +{ +uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; +x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); +x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); +x_45 = 2; +lean_ctor_set_uint8(x_36, 9, x_45); +x_46 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_46, 0, x_36); +lean_ctor_set(x_46, 1, x_37); +lean_ctor_set(x_46, 2, x_38); +lean_ctor_set(x_46, 3, x_39); +lean_ctor_set(x_46, 4, x_40); +lean_ctor_set(x_46, 5, x_41); +lean_ctor_set_uint8(x_46, sizeof(void*)*6, x_43); +lean_ctor_set_uint8(x_46, sizeof(void*)*6 + 1, x_44); +x_47 = 1; +x_48 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_49 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_33, x_47, x_35, x_48, x_46, x_5, x_6, x_7, x_34); +if (lean_obj_tag(x_49) == 0) +{ +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; +x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); -lean_dec(x_47); -x_51 = lean_ctor_get(x_48, 0); +x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); -lean_dec(x_48); x_52 = lean_ctor_get(x_49, 1); lean_inc(x_52); lean_dec(x_49); -x_53 = l_Lean_instInhabitedExpr; -x_54 = l_Array_back___rarg(x_53, x_51); +x_53 = lean_ctor_get(x_50, 0); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = l_Lean_instInhabitedExpr; +x_56 = l_Array_back___rarg(x_55, x_53); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_55 = l_Lean_Meta_isExprDefEq(x_54, x_1, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_55) == 0) +x_57 = l_Lean_Meta_isExprDefEq(x_56, x_1, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_56; uint8_t x_57; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_unbox(x_56); -lean_dec(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_52); -lean_dec(x_51); -lean_dec(x_28); -x_58 = lean_ctor_get(x_55, 1); +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_55); -x_59 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; -x_60 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_59, x_4, x_5, x_6, x_7, x_58); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_17 = x_61; -x_18 = x_62; -goto block_24; +x_59 = lean_unbox(x_58); +lean_dec(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_30); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; +x_62 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_61, x_4, x_5, x_6, x_7, x_60); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_17 = x_63; +x_18 = x_64; +goto block_26; } else { -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_63 = lean_ctor_get(x_55, 1); -lean_inc(x_63); -lean_dec(x_55); -x_64 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_52, x_4, x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); +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_65 = lean_ctor_get(x_57, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_mkAppN(x_28, x_51); +lean_dec(x_57); +x_66 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_54, x_4, x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_mkAppN(x_30, x_53); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_68 = l_Lean_Meta_mkExpectedTypeHint(x_67, x_65, x_4, x_5, x_6, x_7, x_66); -if (lean_obj_tag(x_68) == 0) +x_70 = l_Lean_Meta_mkExpectedTypeHint(x_69, x_67, x_4, x_5, x_6, x_7, x_68); +if (lean_obj_tag(x_70) == 0) { lean_dec(x_16); lean_dec(x_14); @@ -4141,170 +4142,170 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_68; -} -else -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_17 = x_69; -x_18 = x_70; -goto block_24; -} -} +return x_70; } else { lean_object* x_71; lean_object* x_72; -lean_dec(x_52); -lean_dec(x_51); -lean_dec(x_28); -x_71 = lean_ctor_get(x_55, 0); +x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); -x_72 = lean_ctor_get(x_55, 1); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -lean_dec(x_55); +lean_dec(x_70); x_17 = x_71; x_18 = x_72; -goto block_24; +goto block_26; +} } } else { lean_object* x_73; lean_object* x_74; -lean_dec(x_28); -x_73 = lean_ctor_get(x_47, 0); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_30); +x_73 = lean_ctor_get(x_57, 0); lean_inc(x_73); -x_74 = lean_ctor_get(x_47, 1); +x_74 = lean_ctor_get(x_57, 1); lean_inc(x_74); -lean_dec(x_47); +lean_dec(x_57); x_17 = x_73; x_18 = x_74; -goto block_24; +goto block_26; } } else { -uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; -x_75 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); -x_76 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); -x_77 = lean_ctor_get_uint8(x_34, 0); -x_78 = lean_ctor_get_uint8(x_34, 1); -x_79 = lean_ctor_get_uint8(x_34, 2); -x_80 = lean_ctor_get_uint8(x_34, 3); -x_81 = lean_ctor_get_uint8(x_34, 4); -x_82 = lean_ctor_get_uint8(x_34, 5); -x_83 = lean_ctor_get_uint8(x_34, 6); -x_84 = lean_ctor_get_uint8(x_34, 7); -x_85 = lean_ctor_get_uint8(x_34, 8); -x_86 = lean_ctor_get_uint8(x_34, 10); -x_87 = lean_ctor_get_uint8(x_34, 11); -x_88 = lean_ctor_get_uint8(x_34, 12); -lean_dec(x_34); -x_89 = 2; -x_90 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_90, 0, x_77); -lean_ctor_set_uint8(x_90, 1, x_78); -lean_ctor_set_uint8(x_90, 2, x_79); -lean_ctor_set_uint8(x_90, 3, x_80); -lean_ctor_set_uint8(x_90, 4, x_81); -lean_ctor_set_uint8(x_90, 5, x_82); -lean_ctor_set_uint8(x_90, 6, x_83); -lean_ctor_set_uint8(x_90, 7, x_84); -lean_ctor_set_uint8(x_90, 8, x_85); -lean_ctor_set_uint8(x_90, 9, x_89); -lean_ctor_set_uint8(x_90, 10, x_86); -lean_ctor_set_uint8(x_90, 11, x_87); -lean_ctor_set_uint8(x_90, 12, x_88); -x_91 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_35); -lean_ctor_set(x_91, 2, x_36); -lean_ctor_set(x_91, 3, x_37); -lean_ctor_set(x_91, 4, x_38); -lean_ctor_set(x_91, 5, x_39); -lean_ctor_set_uint8(x_91, sizeof(void*)*6, x_75); -lean_ctor_set_uint8(x_91, sizeof(void*)*6 + 1, x_76); -x_92 = 1; -x_93 = 0; +lean_object* x_75; lean_object* x_76; +lean_dec(x_30); +x_75 = lean_ctor_get(x_49, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_49, 1); +lean_inc(x_76); +lean_dec(x_49); +x_17 = x_75; +x_18 = x_76; +goto block_26; +} +} +else +{ +uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; uint8_t x_95; lean_object* x_96; +x_77 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); +x_78 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); +x_79 = lean_ctor_get_uint8(x_36, 0); +x_80 = lean_ctor_get_uint8(x_36, 1); +x_81 = lean_ctor_get_uint8(x_36, 2); +x_82 = lean_ctor_get_uint8(x_36, 3); +x_83 = lean_ctor_get_uint8(x_36, 4); +x_84 = lean_ctor_get_uint8(x_36, 5); +x_85 = lean_ctor_get_uint8(x_36, 6); +x_86 = lean_ctor_get_uint8(x_36, 7); +x_87 = lean_ctor_get_uint8(x_36, 8); +x_88 = lean_ctor_get_uint8(x_36, 10); +x_89 = lean_ctor_get_uint8(x_36, 11); +x_90 = lean_ctor_get_uint8(x_36, 12); +lean_dec(x_36); +x_91 = 2; +x_92 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_92, 0, x_79); +lean_ctor_set_uint8(x_92, 1, x_80); +lean_ctor_set_uint8(x_92, 2, x_81); +lean_ctor_set_uint8(x_92, 3, x_82); +lean_ctor_set_uint8(x_92, 4, x_83); +lean_ctor_set_uint8(x_92, 5, x_84); +lean_ctor_set_uint8(x_92, 6, x_85); +lean_ctor_set_uint8(x_92, 7, x_86); +lean_ctor_set_uint8(x_92, 8, x_87); +lean_ctor_set_uint8(x_92, 9, x_91); +lean_ctor_set_uint8(x_92, 10, x_88); +lean_ctor_set_uint8(x_92, 11, x_89); +lean_ctor_set_uint8(x_92, 12, x_90); +x_93 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_37); +lean_ctor_set(x_93, 2, x_38); +lean_ctor_set(x_93, 3, x_39); +lean_ctor_set(x_93, 4, x_40); +lean_ctor_set(x_93, 5, x_41); +lean_ctor_set_uint8(x_93, sizeof(void*)*6, x_77); +lean_ctor_set_uint8(x_93, sizeof(void*)*6 + 1, x_78); +x_94 = 1; +x_95 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_94 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_31, x_92, x_33, x_93, x_91, x_5, x_6, x_7, x_32); -if (lean_obj_tag(x_94) == 0) +x_96 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_33, x_94, x_35, x_95, x_93, x_5, x_6, x_7, x_34); +if (lean_obj_tag(x_96) == 0) { -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; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -x_97 = lean_ctor_get(x_94, 1); +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_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -lean_dec(x_94); -x_98 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -lean_dec(x_95); x_99 = lean_ctor_get(x_96, 1); lean_inc(x_99); lean_dec(x_96); -x_100 = l_Lean_instInhabitedExpr; -x_101 = l_Array_back___rarg(x_100, x_98); +x_100 = lean_ctor_get(x_97, 0); +lean_inc(x_100); +lean_dec(x_97); +x_101 = lean_ctor_get(x_98, 1); +lean_inc(x_101); +lean_dec(x_98); +x_102 = l_Lean_instInhabitedExpr; +x_103 = l_Array_back___rarg(x_102, x_100); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_102 = l_Lean_Meta_isExprDefEq(x_101, x_1, x_4, x_5, x_6, x_7, x_97); -if (lean_obj_tag(x_102) == 0) +x_104 = l_Lean_Meta_isExprDefEq(x_103, x_1, x_4, x_5, x_6, x_7, x_99); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_103; uint8_t x_104; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_unbox(x_103); -lean_dec(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_28); -x_105 = lean_ctor_get(x_102, 1); +lean_object* x_105; uint8_t x_106; +x_105 = lean_ctor_get(x_104, 0); lean_inc(x_105); -lean_dec(x_102); -x_106 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; -x_107 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_106, x_4, x_5, x_6, x_7, x_105); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_17 = x_108; -x_18 = x_109; -goto block_24; +x_106 = lean_unbox(x_105); +lean_dec(x_105); +if (x_106 == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_101); +lean_dec(x_100); +lean_dec(x_30); +x_107 = lean_ctor_get(x_104, 1); +lean_inc(x_107); +lean_dec(x_104); +x_108 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; +x_109 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_108, x_4, x_5, x_6, x_7, x_107); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_17 = x_110; +x_18 = x_111; +goto block_26; } else { -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_110 = lean_ctor_get(x_102, 1); -lean_inc(x_110); -lean_dec(x_102); -x_111 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_99, x_4, x_5, x_6, x_7, x_110); -x_112 = lean_ctor_get(x_111, 0); +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_112 = lean_ctor_get(x_104, 1); lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = l_Lean_mkAppN(x_28, x_98); +lean_dec(x_104); +x_113 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_101, x_4, x_5, x_6, x_7, x_112); +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_116 = l_Lean_mkAppN(x_30, x_100); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_115 = l_Lean_Meta_mkExpectedTypeHint(x_114, x_112, x_4, x_5, x_6, x_7, x_113); -if (lean_obj_tag(x_115) == 0) +x_117 = l_Lean_Meta_mkExpectedTypeHint(x_116, x_114, x_4, x_5, x_6, x_7, x_115); +if (lean_obj_tag(x_117) == 0) { lean_dec(x_16); lean_dec(x_14); @@ -4314,100 +4315,104 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_115; -} -else -{ -lean_object* x_116; lean_object* x_117; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_17 = x_116; -x_18 = x_117; -goto block_24; -} -} +return x_117; } else { lean_object* x_118; lean_object* x_119; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_28); -x_118 = lean_ctor_get(x_102, 0); +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -x_119 = lean_ctor_get(x_102, 1); +x_119 = lean_ctor_get(x_117, 1); lean_inc(x_119); -lean_dec(x_102); +lean_dec(x_117); x_17 = x_118; x_18 = x_119; -goto block_24; +goto block_26; +} } } else { lean_object* x_120; lean_object* x_121; -lean_dec(x_28); -x_120 = lean_ctor_get(x_94, 0); +lean_dec(x_101); +lean_dec(x_100); +lean_dec(x_30); +x_120 = lean_ctor_get(x_104, 0); lean_inc(x_120); -x_121 = lean_ctor_get(x_94, 1); +x_121 = lean_ctor_get(x_104, 1); lean_inc(x_121); -lean_dec(x_94); +lean_dec(x_104); x_17 = x_120; x_18 = x_121; -goto block_24; -} +goto block_26; } } else { lean_object* x_122; lean_object* x_123; -lean_dec(x_28); -x_122 = lean_ctor_get(x_30, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_30, 1); -lean_inc(x_123); lean_dec(x_30); +x_122 = lean_ctor_get(x_96, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_96, 1); +lean_inc(x_123); +lean_dec(x_96); x_17 = x_122; x_18 = x_123; -goto block_24; +goto block_26; +} } } else { lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_124 = lean_ctor_get(x_32, 0); lean_inc(x_124); -x_125 = lean_ctor_get(x_27, 1); +x_125 = lean_ctor_get(x_32, 1); lean_inc(x_125); -lean_dec(x_27); +lean_dec(x_32); x_17 = x_124; x_18 = x_125; -goto block_24; +goto block_26; } -block_24: +} +else +{ +lean_object* x_126; lean_object* x_127; +x_126 = lean_ctor_get(x_29, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_29, 1); +lean_inc(x_127); +lean_dec(x_29); +x_17 = x_126; +x_18 = x_127; +goto block_26; +} +block_26: { uint8_t x_19; -x_19 = l_Lean_Exception_isRuntime(x_17); +x_19 = l_Lean_Exception_isInterrupt(x_17); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_dec(x_17); lean_dec(x_16); -x_20 = l_Lean_Meta_SavedState_restore(x_14, x_4, x_5, x_6, x_7, x_18); +x_21 = l_Lean_Meta_SavedState_restore(x_14, x_4, x_5, x_6, x_7, x_18); lean_dec(x_14); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); x_3 = x_12; -x_8 = x_21; +x_8 = x_22; goto _start; } else { -lean_object* x_23; +lean_object* x_24; lean_dec(x_14); lean_dec(x_12); lean_dec(x_7); @@ -4416,14 +4421,35 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); if (lean_is_scalar(x_16)) { - x_23 = lean_alloc_ctor(1, 2, 0); + x_24 = lean_alloc_ctor(1, 2, 0); } else { - x_23 = x_16; - lean_ctor_set_tag(x_23, 1); + x_24 = x_16; + lean_ctor_set_tag(x_24, 1); } -lean_ctor_set(x_23, 0, x_17); -lean_ctor_set(x_23, 1, x_18); -return x_23; +lean_ctor_set(x_24, 0, x_17); +lean_ctor_set(x_24, 1, x_18); +return x_24; +} +} +else +{ +lean_object* x_25; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_16)) { + x_25 = lean_alloc_ctor(1, 2, 0); +} else { + x_25 = x_16; + lean_ctor_set_tag(x_25, 1); +} +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_18); +return x_25; } } } @@ -4524,58 +4550,62 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_24, 0); x_27 = lean_ctor_get(x_24, 1); -x_28 = l_Lean_Exception_isRuntime(x_26); +x_28 = l_Lean_Exception_isInterrupt(x_26); if (x_28 == 0) { -lean_object* x_29; uint8_t x_30; +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +lean_object* x_30; uint8_t x_31; lean_free_object(x_24); lean_dec(x_26); -x_29 = l_Lean_Meta_SavedState_restore(x_22, x_2, x_3, x_4, x_5, x_27); +x_30 = l_Lean_Meta_SavedState_restore(x_22, x_2, x_3, x_4, x_5, x_27); lean_dec(x_22); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -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_29, 1); -x_32 = lean_ctor_get(x_29, 0); -lean_dec(x_32); -x_33 = l_Lean_indentExpr(x_11); -x_34 = l_Lean_Expr_applySymm___closed__2; -lean_ctor_set_tag(x_29, 6); -lean_ctor_set(x_29, 1, x_33); -lean_ctor_set(x_29, 0, x_34); -x_35 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +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_30, 1); +x_33 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +x_34 = l_Lean_indentExpr(x_11); +x_35 = l_Lean_Expr_applySymm___closed__2; +lean_ctor_set_tag(x_30, 6); +lean_ctor_set(x_30, 1, x_34); +lean_ctor_set(x_30, 0, x_35); +x_36 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; lean_ctor_set_tag(x_20, 6); -lean_ctor_set(x_20, 1, x_35); -lean_ctor_set(x_20, 0, x_29); -x_36 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_31); +lean_ctor_set(x_20, 1, x_36); +lean_ctor_set(x_20, 0, x_30); +x_37 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_32); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_36; +return x_37; } 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_29, 1); -lean_inc(x_37); -lean_dec(x_29); -x_38 = l_Lean_indentExpr(x_11); -x_39 = l_Lean_Expr_applySymm___closed__2; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +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_38 = lean_ctor_get(x_30, 1); +lean_inc(x_38); +lean_dec(x_30); +x_39 = l_Lean_indentExpr(x_11); +x_40 = l_Lean_Expr_applySymm___closed__2; +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; lean_ctor_set_tag(x_20, 6); -lean_ctor_set(x_20, 1, x_41); -lean_ctor_set(x_20, 0, x_40); -x_42 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_37); +lean_ctor_set(x_20, 1, x_42); +lean_ctor_set(x_20, 0, x_41); +x_43 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_38); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_42; +return x_43; } } else @@ -4592,53 +4622,6 @@ return x_24; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_24, 0); -x_44 = lean_ctor_get(x_24, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_24); -x_45 = l_Lean_Exception_isRuntime(x_43); -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; lean_object* x_52; lean_object* x_53; -lean_dec(x_43); -x_46 = l_Lean_Meta_SavedState_restore(x_22, x_2, x_3, x_4, x_5, x_44); -lean_dec(x_22); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_48 = x_46; -} else { - lean_dec_ref(x_46); - x_48 = lean_box(0); -} -x_49 = l_Lean_indentExpr(x_11); -x_50 = l_Lean_Expr_applySymm___closed__2; -if (lean_is_scalar(x_48)) { - x_51 = lean_alloc_ctor(6, 2, 0); -} else { - x_51 = x_48; - lean_ctor_set_tag(x_51, 6); -} -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; -lean_ctor_set_tag(x_20, 6); -lean_ctor_set(x_20, 1, x_52); -lean_ctor_set(x_20, 0, x_51); -x_53 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_47); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_53; -} -else -{ -lean_object* x_54; lean_free_object(x_20); lean_dec(x_22); lean_dec(x_11); @@ -4646,167 +4629,269 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_43); -lean_ctor_set(x_54, 1, x_44); -return x_54; +return x_24; +} +} +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_24, 0); +x_45 = lean_ctor_get(x_24, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_24); +x_46 = l_Lean_Exception_isInterrupt(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +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; +lean_dec(x_44); +x_48 = l_Lean_Meta_SavedState_restore(x_22, x_2, x_3, x_4, x_5, x_45); +lean_dec(x_22); +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); +} +x_51 = l_Lean_indentExpr(x_11); +x_52 = l_Lean_Expr_applySymm___closed__2; +if (lean_is_scalar(x_50)) { + x_53 = lean_alloc_ctor(6, 2, 0); +} else { + x_53 = x_50; + lean_ctor_set_tag(x_53, 6); +} +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +lean_ctor_set_tag(x_20, 6); +lean_ctor_set(x_20, 1, x_54); +lean_ctor_set(x_20, 0, x_53); +x_55 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_20, x_2, x_3, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_55; +} +else +{ +lean_object* x_56; +lean_free_object(x_20); +lean_dec(x_22); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_44); +lean_ctor_set(x_56, 1, x_45); +return x_56; +} +} +else +{ +lean_object* x_57; +lean_free_object(x_20); +lean_dec(x_22); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_44); +lean_ctor_set(x_57, 1, x_45); +return x_57; } } } } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_20, 0); -x_56 = lean_ctor_get(x_20, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_20, 0); +x_59 = lean_ctor_get(x_20, 1); +lean_inc(x_59); +lean_inc(x_58); lean_dec(x_20); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_57 = l_List_firstM___at_Lean_Expr_applySymm___spec__1(x_1, x_17, x_19, x_2, x_3, x_4, x_5, x_56); +x_60 = l_List_firstM___at_Lean_Expr_applySymm___spec__1(x_1, x_17, x_19, x_2, x_3, x_4, x_5, x_59); lean_dec(x_17); -if (lean_obj_tag(x_57) == 0) +if (lean_obj_tag(x_60) == 0) { -lean_dec(x_55); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_57; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; -} else { - lean_dec_ref(x_57); - x_60 = lean_box(0); -} -x_61 = l_Lean_Exception_isRuntime(x_58); -if (x_61 == 0) -{ -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_dec(x_60); lean_dec(x_58); -x_62 = l_Lean_Meta_SavedState_restore(x_55, x_2, x_3, x_4, x_5, x_59); -lean_dec(x_55); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; -} else { - lean_dec_ref(x_62); - x_64 = lean_box(0); -} -x_65 = l_Lean_indentExpr(x_11); -x_66 = l_Lean_Expr_applySymm___closed__2; -if (lean_is_scalar(x_64)) { - x_67 = lean_alloc_ctor(6, 2, 0); -} else { - x_67 = x_64; - lean_ctor_set_tag(x_67, 6); -} -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; -x_69 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_69, x_2, x_3, x_4, x_5, x_63); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_70; -} -else -{ -lean_object* x_71; -lean_dec(x_55); lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_60)) { - x_71 = lean_alloc_ctor(1, 2, 0); -} else { - x_71 = x_60; +return x_60; } -lean_ctor_set(x_71, 0, x_58); -lean_ctor_set(x_71, 1, x_59); -return x_71; +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +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 = l_Lean_Exception_isInterrupt(x_61); +if (x_64 == 0) +{ +uint8_t x_65; +x_65 = l_Lean_Exception_isRuntime(x_61); +if (x_65 == 0) +{ +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_dec(x_63); +lean_dec(x_61); +x_66 = l_Lean_Meta_SavedState_restore(x_58, x_2, x_3, x_4, x_5, x_62); +lean_dec(x_58); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_68 = x_66; +} else { + lean_dec_ref(x_66); + x_68 = lean_box(0); +} +x_69 = l_Lean_indentExpr(x_11); +x_70 = l_Lean_Expr_applySymm___closed__2; +if (lean_is_scalar(x_68)) { + x_71 = lean_alloc_ctor(6, 2, 0); +} else { + x_71 = x_68; + lean_ctor_set_tag(x_71, 6); +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +x_73 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_73, x_2, x_3, x_4, x_5, x_67); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_74; +} +else +{ +lean_object* x_75; +lean_dec(x_58); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_63)) { + x_75 = lean_alloc_ctor(1, 2, 0); +} else { + x_75 = x_63; +} +lean_ctor_set(x_75, 0, x_61); +lean_ctor_set(x_75, 1, x_62); +return x_75; +} +} +else +{ +lean_object* x_76; +lean_dec(x_58); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_63)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_63; +} +lean_ctor_set(x_76, 0, x_61); +lean_ctor_set(x_76, 1, x_62); +return x_76; } } } } else { -uint8_t x_72; +uint8_t x_77; lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_13); -if (x_72 == 0) +x_77 = !lean_is_exclusive(x_13); +if (x_77 == 0) { return x_13; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_13, 0); -x_74 = lean_ctor_get(x_13, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_13, 0); +x_79 = lean_ctor_get(x_13, 1); +lean_inc(x_79); +lean_inc(x_78); lean_dec(x_13); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } else { -uint8_t x_76; +uint8_t x_81; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_7); -if (x_76 == 0) +x_81 = !lean_is_exclusive(x_7); +if (x_81 == 0) { return x_7; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_7, 0); -x_78 = lean_ctor_get(x_7, 1); -lean_inc(x_78); -lean_inc(x_77); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_7, 0); +x_83 = lean_ctor_get(x_7, 1); +lean_inc(x_83); +lean_inc(x_82); lean_dec(x_7); -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; +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } @@ -4837,7 +4922,7 @@ 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_24; +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_26; x_10 = lean_ctor_get(x_2, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_2, 1); @@ -4860,509 +4945,513 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_24 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_10, x_3, x_4, x_5, x_6, x_14); -if (lean_obj_tag(x_24) == 0) +x_26 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_10, x_3, x_4, x_5, x_6, x_14); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +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); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_25); -x_27 = lean_infer_type(x_25, x_3, x_4, x_5, x_6, x_26); -if (lean_obj_tag(x_27) == 0) +lean_inc(x_27); +x_29 = lean_infer_type(x_27, x_3, x_4, x_5, x_6, x_28); +if (lean_obj_tag(x_29) == 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; uint8_t x_37; -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_box(0); -x_31 = lean_ctor_get(x_3, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); +lean_dec(x_29); +x_32 = lean_box(0); +x_33 = lean_ctor_get(x_3, 0); lean_inc(x_33); -x_34 = lean_ctor_get(x_3, 3); +x_34 = lean_ctor_get(x_3, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_3, 4); +x_35 = lean_ctor_get(x_3, 2); lean_inc(x_35); -x_36 = lean_ctor_get(x_3, 5); +x_36 = lean_ctor_get(x_3, 3); lean_inc(x_36); -x_37 = !lean_is_exclusive(x_31); -if (x_37 == 0) +x_37 = lean_ctor_get(x_3, 4); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 5); +lean_inc(x_38); +x_39 = !lean_is_exclusive(x_33); +if (x_39 == 0) { -uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; -x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); -x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); -x_40 = 2; -lean_ctor_set_uint8(x_31, 9, x_40); -x_41 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_41, 0, x_31); -lean_ctor_set(x_41, 1, x_32); -lean_ctor_set(x_41, 2, x_33); -lean_ctor_set(x_41, 3, x_34); -lean_ctor_set(x_41, 4, x_35); -lean_ctor_set(x_41, 5, x_36); -lean_ctor_set_uint8(x_41, sizeof(void*)*6, x_38); -lean_ctor_set_uint8(x_41, sizeof(void*)*6 + 1, x_39); -x_42 = 1; -x_43 = 0; +uint8_t x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; +x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_41 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); +x_42 = 2; +lean_ctor_set_uint8(x_33, 9, x_42); +x_43 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_43, 0, x_33); +lean_ctor_set(x_43, 1, x_34); +lean_ctor_set(x_43, 2, x_35); +lean_ctor_set(x_43, 3, x_36); +lean_ctor_set(x_43, 4, x_37); +lean_ctor_set(x_43, 5, x_38); +lean_ctor_set_uint8(x_43, sizeof(void*)*6, x_40); +lean_ctor_set_uint8(x_43, sizeof(void*)*6 + 1, x_41); +x_44 = 1; +x_45 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_44 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_28, x_42, x_30, x_43, x_41, x_4, x_5, x_6, x_29); -if (lean_obj_tag(x_44) == 0) +x_46 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_30, x_44, x_32, x_45, x_43, x_4, x_5, x_6, x_31); +if (lean_obj_tag(x_46) == 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; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -x_47 = lean_ctor_get(x_44, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); -lean_dec(x_45); x_49 = lean_ctor_get(x_46, 1); lean_inc(x_49); lean_dec(x_46); -lean_inc(x_1); -x_50 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_47); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_50, 0); +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +lean_dec(x_47); +x_51 = lean_ctor_get(x_48, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); +lean_dec(x_48); +lean_inc(x_1); +x_52 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_49); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_53 = l_Lean_Meta_isExprDefEq(x_51, x_49, x_3, x_4, x_5, x_6, x_52); -if (lean_obj_tag(x_53) == 0) +x_55 = l_Lean_Meta_isExprDefEq(x_53, x_51, x_3, x_4, x_5, x_6, x_54); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_unbox(x_54); -lean_dec(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_48); -lean_dec(x_25); -x_56 = lean_ctor_get(x_53, 1); +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -lean_dec(x_53); -x_57 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; -x_58 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_57, x_3, x_4, x_5, x_6, x_56); -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_16 = x_59; -x_17 = x_60; -goto block_23; +x_57 = lean_unbox(x_56); +lean_dec(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_50); +lean_dec(x_27); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec(x_55); +x_59 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; +x_60 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_59, x_3, x_4, x_5, x_6, x_58); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_16 = x_61; +x_17 = x_62; +goto block_25; } else { -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; -x_61 = lean_ctor_get(x_53, 1); -lean_inc(x_61); -lean_dec(x_53); -lean_inc(x_48); -x_62 = l_Lean_mkAppN(x_25, x_48); +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_63 = lean_ctor_get(x_55, 1); +lean_inc(x_63); +lean_dec(x_55); +lean_inc(x_50); +x_64 = l_Lean_mkAppN(x_27, x_50); lean_inc(x_1); -x_63 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_62, x_3, x_4, x_5, x_6, x_61); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_65 = l_Lean_instInhabitedExpr; -x_66 = l_Array_back___rarg(x_65, x_48); -lean_dec(x_48); -x_67 = l_Lean_Expr_mvarId_x21(x_66); +x_65 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_64, x_3, x_4, x_5, x_6, x_63); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = l_Lean_instInhabitedExpr; +x_68 = l_Array_back___rarg(x_67, x_50); +lean_dec(x_50); +x_69 = l_Lean_Expr_mvarId_x21(x_68); lean_inc(x_1); -x_68 = l_Lean_MVarId_getTag(x_1, x_3, x_4, x_5, x_6, x_64); -if (lean_obj_tag(x_68) == 0) +x_70 = l_Lean_MVarId_getTag(x_1, x_3, x_4, x_5, x_6, x_66); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_dec(x_15); lean_dec(x_13); lean_dec(x_11); lean_dec(x_1); -x_69 = lean_ctor_get(x_68, 0); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -lean_inc(x_67); -x_71 = l_Lean_MVarId_setTag(x_67, x_69, x_3, x_4, x_5, x_6, x_70); +x_73 = l_Lean_MVarId_setTag(x_69, x_71, x_3, x_4, x_5, x_6, x_72); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) { -lean_object* x_73; -x_73 = lean_ctor_get(x_71, 0); -lean_dec(x_73); -lean_ctor_set(x_71, 0, x_67); -return x_71; -} -else -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_67); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} +lean_object* x_75; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +lean_ctor_set(x_73, 0, x_69); +return x_73; } else { lean_object* x_76; lean_object* x_77; -lean_dec(x_67); -x_76 = lean_ctor_get(x_68, 0); +x_76 = lean_ctor_get(x_73, 1); lean_inc(x_76); -x_77 = lean_ctor_get(x_68, 1); -lean_inc(x_77); -lean_dec(x_68); -x_16 = x_76; -x_17 = x_77; -goto block_23; -} +lean_dec(x_73); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_69); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } else { lean_object* x_78; lean_object* x_79; -lean_dec(x_48); -lean_dec(x_25); -x_78 = lean_ctor_get(x_53, 0); +lean_dec(x_69); +x_78 = lean_ctor_get(x_70, 0); lean_inc(x_78); -x_79 = lean_ctor_get(x_53, 1); +x_79 = lean_ctor_get(x_70, 1); lean_inc(x_79); -lean_dec(x_53); +lean_dec(x_70); x_16 = x_78; x_17 = x_79; -goto block_23; +goto block_25; +} } } else { lean_object* x_80; lean_object* x_81; -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_25); -x_80 = lean_ctor_get(x_50, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_50, 1); -lean_inc(x_81); lean_dec(x_50); +lean_dec(x_27); +x_80 = lean_ctor_get(x_55, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_55, 1); +lean_inc(x_81); +lean_dec(x_55); x_16 = x_80; x_17 = x_81; -goto block_23; +goto block_25; } } else { lean_object* x_82; lean_object* x_83; -lean_dec(x_25); -x_82 = lean_ctor_get(x_44, 0); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_27); +x_82 = lean_ctor_get(x_52, 0); lean_inc(x_82); -x_83 = lean_ctor_get(x_44, 1); +x_83 = lean_ctor_get(x_52, 1); lean_inc(x_83); -lean_dec(x_44); +lean_dec(x_52); x_16 = x_82; x_17 = x_83; -goto block_23; +goto block_25; } } else { -uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; uint8_t x_102; lean_object* x_103; -x_84 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); -x_85 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); -x_86 = lean_ctor_get_uint8(x_31, 0); -x_87 = lean_ctor_get_uint8(x_31, 1); -x_88 = lean_ctor_get_uint8(x_31, 2); -x_89 = lean_ctor_get_uint8(x_31, 3); -x_90 = lean_ctor_get_uint8(x_31, 4); -x_91 = lean_ctor_get_uint8(x_31, 5); -x_92 = lean_ctor_get_uint8(x_31, 6); -x_93 = lean_ctor_get_uint8(x_31, 7); -x_94 = lean_ctor_get_uint8(x_31, 8); -x_95 = lean_ctor_get_uint8(x_31, 10); -x_96 = lean_ctor_get_uint8(x_31, 11); -x_97 = lean_ctor_get_uint8(x_31, 12); -lean_dec(x_31); -x_98 = 2; -x_99 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_99, 0, x_86); -lean_ctor_set_uint8(x_99, 1, x_87); -lean_ctor_set_uint8(x_99, 2, x_88); -lean_ctor_set_uint8(x_99, 3, x_89); -lean_ctor_set_uint8(x_99, 4, x_90); -lean_ctor_set_uint8(x_99, 5, x_91); -lean_ctor_set_uint8(x_99, 6, x_92); -lean_ctor_set_uint8(x_99, 7, x_93); -lean_ctor_set_uint8(x_99, 8, x_94); -lean_ctor_set_uint8(x_99, 9, x_98); -lean_ctor_set_uint8(x_99, 10, x_95); -lean_ctor_set_uint8(x_99, 11, x_96); -lean_ctor_set_uint8(x_99, 12, x_97); -x_100 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_32); -lean_ctor_set(x_100, 2, x_33); -lean_ctor_set(x_100, 3, x_34); -lean_ctor_set(x_100, 4, x_35); -lean_ctor_set(x_100, 5, x_36); -lean_ctor_set_uint8(x_100, sizeof(void*)*6, x_84); -lean_ctor_set_uint8(x_100, sizeof(void*)*6 + 1, x_85); -x_101 = 1; -x_102 = 0; +lean_object* x_84; lean_object* x_85; +lean_dec(x_27); +x_84 = lean_ctor_get(x_46, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_46, 1); +lean_inc(x_85); +lean_dec(x_46); +x_16 = x_84; +x_17 = x_85; +goto block_25; +} +} +else +{ +uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; lean_object* x_105; +x_86 = lean_ctor_get_uint8(x_3, sizeof(void*)*6); +x_87 = lean_ctor_get_uint8(x_3, sizeof(void*)*6 + 1); +x_88 = lean_ctor_get_uint8(x_33, 0); +x_89 = lean_ctor_get_uint8(x_33, 1); +x_90 = lean_ctor_get_uint8(x_33, 2); +x_91 = lean_ctor_get_uint8(x_33, 3); +x_92 = lean_ctor_get_uint8(x_33, 4); +x_93 = lean_ctor_get_uint8(x_33, 5); +x_94 = lean_ctor_get_uint8(x_33, 6); +x_95 = lean_ctor_get_uint8(x_33, 7); +x_96 = lean_ctor_get_uint8(x_33, 8); +x_97 = lean_ctor_get_uint8(x_33, 10); +x_98 = lean_ctor_get_uint8(x_33, 11); +x_99 = lean_ctor_get_uint8(x_33, 12); +lean_dec(x_33); +x_100 = 2; +x_101 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_101, 0, x_88); +lean_ctor_set_uint8(x_101, 1, x_89); +lean_ctor_set_uint8(x_101, 2, x_90); +lean_ctor_set_uint8(x_101, 3, x_91); +lean_ctor_set_uint8(x_101, 4, x_92); +lean_ctor_set_uint8(x_101, 5, x_93); +lean_ctor_set_uint8(x_101, 6, x_94); +lean_ctor_set_uint8(x_101, 7, x_95); +lean_ctor_set_uint8(x_101, 8, x_96); +lean_ctor_set_uint8(x_101, 9, x_100); +lean_ctor_set_uint8(x_101, 10, x_97); +lean_ctor_set_uint8(x_101, 11, x_98); +lean_ctor_set_uint8(x_101, 12, x_99); +x_102 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_34); +lean_ctor_set(x_102, 2, x_35); +lean_ctor_set(x_102, 3, x_36); +lean_ctor_set(x_102, 4, x_37); +lean_ctor_set(x_102, 5, x_38); +lean_ctor_set_uint8(x_102, sizeof(void*)*6, x_86); +lean_ctor_set_uint8(x_102, sizeof(void*)*6 + 1, x_87); +x_103 = 1; +x_104 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_103 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_28, x_101, x_30, x_102, x_100, x_4, x_5, x_6, x_29); -if (lean_obj_tag(x_103) == 0) +x_105 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_30, x_103, x_32, x_104, x_102, x_4, x_5, x_6, x_31); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_104, 1); -lean_inc(x_105); -x_106 = lean_ctor_get(x_103, 1); +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_105, 0); lean_inc(x_106); -lean_dec(x_103); -x_107 = lean_ctor_get(x_104, 0); +x_107 = lean_ctor_get(x_106, 1); lean_inc(x_107); -lean_dec(x_104); x_108 = lean_ctor_get(x_105, 1); lean_inc(x_108); lean_dec(x_105); -lean_inc(x_1); -x_109 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_106); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_109, 0); +x_109 = lean_ctor_get(x_106, 0); +lean_inc(x_109); +lean_dec(x_106); +x_110 = lean_ctor_get(x_107, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); +lean_dec(x_107); +lean_inc(x_1); +x_111 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_108); +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, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_112 = l_Lean_Meta_isExprDefEq(x_110, x_108, x_3, x_4, x_5, x_6, x_111); -if (lean_obj_tag(x_112) == 0) +x_114 = l_Lean_Meta_isExprDefEq(x_112, x_110, x_3, x_4, x_5, x_6, x_113); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_113; uint8_t x_114; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_unbox(x_113); -lean_dec(x_113); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_107); -lean_dec(x_25); -x_115 = lean_ctor_get(x_112, 1); +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_112); -x_116 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; -x_117 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_116, x_3, x_4, x_5, x_6, x_115); -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_16 = x_118; -x_17 = x_119; -goto block_23; +x_116 = lean_unbox(x_115); +lean_dec(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_109); +lean_dec(x_27); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_dec(x_114); +x_118 = l_List_firstM___at_Lean_Expr_applySymm___spec__1___closed__2; +x_119 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_118, x_3, x_4, x_5, x_6, x_117); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_16 = x_120; +x_17 = x_121; +goto block_25; } else { -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; -x_120 = lean_ctor_get(x_112, 1); -lean_inc(x_120); -lean_dec(x_112); -lean_inc(x_107); -x_121 = l_Lean_mkAppN(x_25, x_107); +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; +x_122 = lean_ctor_get(x_114, 1); +lean_inc(x_122); +lean_dec(x_114); +lean_inc(x_109); +x_123 = l_Lean_mkAppN(x_27, x_109); lean_inc(x_1); -x_122 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_121, x_3, x_4, x_5, x_6, x_120); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec(x_122); -x_124 = l_Lean_instInhabitedExpr; -x_125 = l_Array_back___rarg(x_124, x_107); -lean_dec(x_107); -x_126 = l_Lean_Expr_mvarId_x21(x_125); +x_124 = l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(x_1, x_123, x_3, x_4, x_5, x_6, x_122); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec(x_124); +x_126 = l_Lean_instInhabitedExpr; +x_127 = l_Array_back___rarg(x_126, x_109); +lean_dec(x_109); +x_128 = l_Lean_Expr_mvarId_x21(x_127); lean_inc(x_1); -x_127 = l_Lean_MVarId_getTag(x_1, x_3, x_4, x_5, x_6, x_123); -if (lean_obj_tag(x_127) == 0) +x_129 = l_Lean_MVarId_getTag(x_1, x_3, x_4, x_5, x_6, x_125); +if (lean_obj_tag(x_129) == 0) { -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_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_dec(x_15); lean_dec(x_13); lean_dec(x_11); lean_dec(x_1); -x_128 = lean_ctor_get(x_127, 0); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec(x_127); -lean_inc(x_126); -x_130 = l_Lean_MVarId_setTag(x_126, x_128, x_3, x_4, x_5, x_6, x_129); +x_132 = l_Lean_MVarId_setTag(x_128, x_130, x_3, x_4, x_5, x_6, x_131); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; } else { - lean_dec_ref(x_130); - x_132 = lean_box(0); + lean_dec_ref(x_132); + x_134 = lean_box(0); } -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(0, 2, 0); } else { - x_133 = x_132; -} -lean_ctor_set(x_133, 0, x_126); -lean_ctor_set(x_133, 1, x_131); -return x_133; -} -else -{ -lean_object* x_134; lean_object* x_135; -lean_dec(x_126); -x_134 = lean_ctor_get(x_127, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_127, 1); -lean_inc(x_135); -lean_dec(x_127); -x_16 = x_134; -x_17 = x_135; -goto block_23; -} + x_135 = x_134; } +lean_ctor_set(x_135, 0, x_128); +lean_ctor_set(x_135, 1, x_133); +return x_135; } else { lean_object* x_136; lean_object* x_137; -lean_dec(x_107); -lean_dec(x_25); -x_136 = lean_ctor_get(x_112, 0); +lean_dec(x_128); +x_136 = lean_ctor_get(x_129, 0); lean_inc(x_136); -x_137 = lean_ctor_get(x_112, 1); +x_137 = lean_ctor_get(x_129, 1); lean_inc(x_137); -lean_dec(x_112); +lean_dec(x_129); x_16 = x_136; x_17 = x_137; -goto block_23; +goto block_25; +} } } else { lean_object* x_138; lean_object* x_139; -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_25); -x_138 = lean_ctor_get(x_109, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_109, 1); -lean_inc(x_139); lean_dec(x_109); +lean_dec(x_27); +x_138 = lean_ctor_get(x_114, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_114, 1); +lean_inc(x_139); +lean_dec(x_114); x_16 = x_138; x_17 = x_139; -goto block_23; +goto block_25; } } else { lean_object* x_140; lean_object* x_141; -lean_dec(x_25); -x_140 = lean_ctor_get(x_103, 0); +lean_dec(x_110); +lean_dec(x_109); +lean_dec(x_27); +x_140 = lean_ctor_get(x_111, 0); lean_inc(x_140); -x_141 = lean_ctor_get(x_103, 1); +x_141 = lean_ctor_get(x_111, 1); lean_inc(x_141); -lean_dec(x_103); +lean_dec(x_111); x_16 = x_140; x_17 = x_141; -goto block_23; -} +goto block_25; } } else { lean_object* x_142; lean_object* x_143; -lean_dec(x_25); -x_142 = lean_ctor_get(x_27, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_27, 1); -lean_inc(x_143); lean_dec(x_27); +x_142 = lean_ctor_get(x_105, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_105, 1); +lean_inc(x_143); +lean_dec(x_105); x_16 = x_142; x_17 = x_143; -goto block_23; +goto block_25; +} } } else { lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_24, 0); +lean_dec(x_27); +x_144 = lean_ctor_get(x_29, 0); lean_inc(x_144); -x_145 = lean_ctor_get(x_24, 1); +x_145 = lean_ctor_get(x_29, 1); lean_inc(x_145); -lean_dec(x_24); +lean_dec(x_29); x_16 = x_144; x_17 = x_145; -goto block_23; +goto block_25; } -block_23: +} +else +{ +lean_object* x_146; lean_object* x_147; +x_146 = lean_ctor_get(x_26, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_26, 1); +lean_inc(x_147); +lean_dec(x_26); +x_16 = x_146; +x_17 = x_147; +goto block_25; +} +block_25: { uint8_t x_18; -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_dec(x_16); lean_dec(x_15); -x_19 = l_Lean_Meta_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_17); +x_20 = l_Lean_Meta_SavedState_restore(x_13, x_3, x_4, x_5, x_6, x_17); lean_dec(x_13); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); x_2 = x_11; -x_7 = x_20; +x_7 = x_21; goto _start; } else { -lean_object* x_22; +lean_object* x_23; lean_dec(x_13); lean_dec(x_11); lean_dec(x_6); @@ -5371,14 +5460,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); if (lean_is_scalar(x_15)) { - x_22 = lean_alloc_ctor(1, 2, 0); + x_23 = lean_alloc_ctor(1, 2, 0); } else { - x_22 = x_15; - lean_ctor_set_tag(x_22, 1); + x_23 = x_15; + lean_ctor_set_tag(x_23, 1); } -lean_ctor_set(x_22, 0, x_16); -lean_ctor_set(x_22, 1, x_17); -return x_22; +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +return x_23; +} +} +else +{ +lean_object* x_24; +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +if (lean_is_scalar(x_15)) { + x_24 = lean_alloc_ctor(1, 2, 0); +} else { + x_24 = x_15; + lean_ctor_set_tag(x_24, 1); +} +lean_ctor_set(x_24, 0, x_16); +lean_ctor_set(x_24, 1, x_17); +return x_24; } } } @@ -5452,58 +5562,62 @@ if (x_23 == 0) lean_object* x_24; lean_object* x_25; uint8_t x_26; x_24 = lean_ctor_get(x_22, 0); x_25 = lean_ctor_get(x_22, 1); -x_26 = l_Lean_Exception_isRuntime(x_24); +x_26 = l_Lean_Exception_isInterrupt(x_24); if (x_26 == 0) { -lean_object* x_27; uint8_t x_28; +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; lean_free_object(x_22); lean_dec(x_24); -x_27 = l_Lean_Meta_SavedState_restore(x_20, x_2, x_3, x_4, x_5, x_25); +x_28 = l_Lean_Meta_SavedState_restore(x_20, x_2, x_3, x_4, x_5, x_25); lean_dec(x_20); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 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_27, 1); -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = l_Lean_indentExpr(x_13); -x_32 = l_Lean_Expr_applySymm___closed__2; -lean_ctor_set_tag(x_27, 6); -lean_ctor_set(x_27, 1, x_31); -lean_ctor_set(x_27, 0, x_32); -x_33 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +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_30 = lean_ctor_get(x_28, 1); +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = l_Lean_indentExpr(x_13); +x_33 = l_Lean_Expr_applySymm___closed__2; +lean_ctor_set_tag(x_28, 6); +lean_ctor_set(x_28, 1, x_32); +lean_ctor_set(x_28, 0, x_33); +x_34 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; lean_ctor_set_tag(x_18, 6); -lean_ctor_set(x_18, 1, x_33); -lean_ctor_set(x_18, 0, x_27); -x_34 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_29); +lean_ctor_set(x_18, 1, x_34); +lean_ctor_set(x_18, 0, x_28); +x_35 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_30); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_34; +return x_35; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_27, 1); -lean_inc(x_35); -lean_dec(x_27); -x_36 = l_Lean_indentExpr(x_13); -x_37 = l_Lean_Expr_applySymm___closed__2; -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +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_28, 1); +lean_inc(x_36); +lean_dec(x_28); +x_37 = l_Lean_indentExpr(x_13); +x_38 = l_Lean_Expr_applySymm___closed__2; +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; lean_ctor_set_tag(x_18, 6); -lean_ctor_set(x_18, 1, x_39); -lean_ctor_set(x_18, 0, x_38); -x_40 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_35); +lean_ctor_set(x_18, 1, x_40); +lean_ctor_set(x_18, 0, x_39); +x_41 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_36); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_40; +return x_41; } } else @@ -5520,53 +5634,6 @@ return x_22; } else { -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_22, 0); -x_42 = lean_ctor_get(x_22, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_22); -x_43 = l_Lean_Exception_isRuntime(x_41); -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; lean_object* x_50; lean_object* x_51; -lean_dec(x_41); -x_44 = l_Lean_Meta_SavedState_restore(x_20, x_2, x_3, x_4, x_5, x_42); -lean_dec(x_20); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_44)) { - lean_ctor_release(x_44, 0); - lean_ctor_release(x_44, 1); - x_46 = x_44; -} else { - lean_dec_ref(x_44); - x_46 = lean_box(0); -} -x_47 = l_Lean_indentExpr(x_13); -x_48 = l_Lean_Expr_applySymm___closed__2; -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(6, 2, 0); -} else { - x_49 = x_46; - lean_ctor_set_tag(x_49, 6); -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; -lean_ctor_set_tag(x_18, 6); -lean_ctor_set(x_18, 1, x_50); -lean_ctor_set(x_18, 0, x_49); -x_51 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_45); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_51; -} -else -{ -lean_object* x_52; lean_free_object(x_18); lean_dec(x_20); lean_dec(x_13); @@ -5574,166 +5641,268 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_41); -lean_ctor_set(x_52, 1, x_42); -return x_52; +return x_22; +} +} +else +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_22, 0); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_22); +x_44 = l_Lean_Exception_isInterrupt(x_42); +if (x_44 == 0) +{ +uint8_t x_45; +x_45 = l_Lean_Exception_isRuntime(x_42); +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; lean_object* x_52; lean_object* x_53; +lean_dec(x_42); +x_46 = l_Lean_Meta_SavedState_restore(x_20, x_2, x_3, x_4, x_5, x_43); +lean_dec(x_20); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +x_49 = l_Lean_indentExpr(x_13); +x_50 = l_Lean_Expr_applySymm___closed__2; +if (lean_is_scalar(x_48)) { + x_51 = lean_alloc_ctor(6, 2, 0); +} else { + x_51 = x_48; + lean_ctor_set_tag(x_51, 6); +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +lean_ctor_set_tag(x_18, 6); +lean_ctor_set(x_18, 1, x_52); +lean_ctor_set(x_18, 0, x_51); +x_53 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_18, x_2, x_3, x_4, x_5, x_47); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_53; +} +else +{ +lean_object* x_54; +lean_free_object(x_18); +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_42); +lean_ctor_set(x_54, 1, x_43); +return x_54; +} +} +else +{ +lean_object* x_55; +lean_free_object(x_18); +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_42); +lean_ctor_set(x_55, 1, x_43); +return x_55; } } } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_18, 0); -x_54 = lean_ctor_get(x_18, 1); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_18, 0); +x_57 = lean_ctor_get(x_18, 1); +lean_inc(x_57); +lean_inc(x_56); lean_dec(x_18); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_55 = l_List_firstM___at_Lean_MVarId_applySymm___spec__1(x_1, x_17, x_2, x_3, x_4, x_5, x_54); -if (lean_obj_tag(x_55) == 0) +x_58 = l_List_firstM___at_Lean_MVarId_applySymm___spec__1(x_1, x_17, x_2, x_3, x_4, x_5, x_57); +if (lean_obj_tag(x_58) == 0) { -lean_dec(x_53); -lean_dec(x_13); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_55; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_58 = x_55; -} else { - lean_dec_ref(x_55); - x_58 = lean_box(0); -} -x_59 = l_Lean_Exception_isRuntime(x_56); -if (x_59 == 0) -{ -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_dec(x_58); lean_dec(x_56); -x_60 = l_Lean_Meta_SavedState_restore(x_53, x_2, x_3, x_4, x_5, x_57); -lean_dec(x_53); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; -} else { - lean_dec_ref(x_60); - x_62 = lean_box(0); -} -x_63 = l_Lean_indentExpr(x_13); -x_64 = l_Lean_Expr_applySymm___closed__2; -if (lean_is_scalar(x_62)) { - x_65 = lean_alloc_ctor(6, 2, 0); -} else { - x_65 = x_62; - lean_ctor_set_tag(x_65, 6); -} -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_66 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; -x_67 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -x_68 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_67, x_2, x_3, x_4, x_5, x_61); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_68; -} -else -{ -lean_object* x_69; -lean_dec(x_53); lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (lean_is_scalar(x_58)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_58; +return x_58; } -lean_ctor_set(x_69, 0, x_56); -lean_ctor_set(x_69, 1, x_57); -return x_69; +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +x_62 = l_Lean_Exception_isInterrupt(x_59); +if (x_62 == 0) +{ +uint8_t x_63; +x_63 = l_Lean_Exception_isRuntime(x_59); +if (x_63 == 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; lean_object* x_72; +lean_dec(x_61); +lean_dec(x_59); +x_64 = l_Lean_Meta_SavedState_restore(x_56, x_2, x_3, x_4, x_5, x_60); +lean_dec(x_56); +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 = l_Lean_indentExpr(x_13); +x_68 = l_Lean_Expr_applySymm___closed__2; +if (lean_is_scalar(x_66)) { + x_69 = lean_alloc_ctor(6, 2, 0); +} else { + x_69 = x_66; + lean_ctor_set_tag(x_69, 6); +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l_Lean_Meta_Symm_initFn____x40_Lean_Meta_Tactic_Symm___hyg_102____lambda__1___closed__19; +x_71 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1(x_71, x_2, x_3, x_4, x_5, x_65); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_72; +} +else +{ +lean_object* x_73; +lean_dec(x_56); +lean_dec(x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_61)) { + x_73 = lean_alloc_ctor(1, 2, 0); +} else { + x_73 = x_61; +} +lean_ctor_set(x_73, 0, x_59); +lean_ctor_set(x_73, 1, x_60); +return x_73; +} +} +else +{ +lean_object* x_74; +lean_dec(x_56); +lean_dec(x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_61)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_61; +} +lean_ctor_set(x_74, 0, x_59); +lean_ctor_set(x_74, 1, x_60); +return x_74; } } } } else { -uint8_t x_70; +uint8_t x_75; lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_14); -if (x_70 == 0) +x_75 = !lean_is_exclusive(x_14); +if (x_75 == 0) { return x_14; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_14, 0); -x_72 = lean_ctor_get(x_14, 1); -lean_inc(x_72); -lean_inc(x_71); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_14, 0); +x_77 = lean_ctor_get(x_14, 1); +lean_inc(x_77); +lean_inc(x_76); lean_dec(x_14); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +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; } } } else { -uint8_t x_74; +uint8_t x_79; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_7); -if (x_74 == 0) +x_79 = !lean_is_exclusive(x_7); +if (x_79 == 0) { return x_7; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_7, 0); -x_76 = lean_ctor_get(x_7, 1); -lean_inc(x_76); -lean_inc(x_75); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_7, 0); +x_81 = lean_ctor_get(x_7, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_7); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +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; } } } @@ -6867,270 +7036,270 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_22; lean_object* x_23; lean_object* x_28; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_22; lean_object* x_23; lean_object* x_30; x_14 = lean_array_uget(x_3, x_5); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_14); -x_28 = l_Lean_Expr_applySymm(x_14, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_28) == 0) +x_30 = l_Lean_Expr_applySymm(x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_70; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_72; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_29); -x_70 = lean_infer_type(x_29, x_7, x_8, x_9, x_10, x_30); -if (lean_obj_tag(x_70) == 0) +lean_inc(x_31); +x_72 = lean_infer_type(x_31, x_7, x_8, x_9, x_10, x_32); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_array_get_size(x_2); -x_74 = lean_unsigned_to_nat(0u); -x_75 = lean_nat_dec_lt(x_74, x_73); -if (x_75 == 0) +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_array_get_size(x_2); +x_76 = lean_unsigned_to_nat(0u); +x_77 = lean_nat_dec_lt(x_76, x_75); +if (x_77 == 0) { -uint8_t x_76; +uint8_t x_78; +lean_dec(x_75); lean_dec(x_73); -lean_dec(x_71); -x_76 = 0; -x_31 = x_76; -x_32 = x_72; -goto block_69; +x_78 = 0; +x_33 = x_78; +x_34 = x_74; +goto block_71; } else { -size_t x_77; lean_object* x_78; -x_77 = lean_usize_of_nat(x_73); -lean_dec(x_73); +size_t x_79; lean_object* x_80; +x_79 = lean_usize_of_nat(x_75); +lean_dec(x_75); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_78 = l_Array_anyMUnsafe_any___at_Lean_MVarId_symmSaturate___spec__8(x_71, x_2, x_1, x_77, x_7, x_8, x_9, x_10, x_72); -if (lean_obj_tag(x_78) == 0) +x_80 = l_Array_anyMUnsafe_any___at_Lean_MVarId_symmSaturate___spec__8(x_73, x_2, x_1, x_79, x_7, x_8, x_9, x_10, x_74); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_unbox(x_79); -lean_dec(x_79); -x_31 = x_81; -x_32 = x_80; -goto block_69; -} -else -{ -lean_object* x_82; lean_object* x_83; -lean_dec(x_29); -lean_dec(x_14); -x_82 = lean_ctor_get(x_78, 0); +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_78, 1); -lean_inc(x_83); -lean_dec(x_78); -x_22 = x_82; -x_23 = x_83; -goto block_27; -} -} +lean_dec(x_80); +x_83 = lean_unbox(x_81); +lean_dec(x_81); +x_33 = x_83; +x_34 = x_82; +goto block_71; } else { lean_object* x_84; lean_object* x_85; -lean_dec(x_29); +lean_dec(x_31); lean_dec(x_14); -x_84 = lean_ctor_get(x_70, 0); +x_84 = lean_ctor_get(x_80, 0); lean_inc(x_84); -x_85 = lean_ctor_get(x_70, 1); +x_85 = lean_ctor_get(x_80, 1); lean_inc(x_85); -lean_dec(x_70); +lean_dec(x_80); x_22 = x_84; x_23 = x_85; -goto block_27; +goto block_29; } -block_69: +} +} +else { -if (x_31 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_31); +lean_dec(x_14); +x_86 = lean_ctor_get(x_72, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_72, 1); +lean_inc(x_87); +lean_dec(x_72); +x_22 = x_86; +x_23 = x_87; +goto block_29; +} +block_71: { -uint8_t x_33; -x_33 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__1; if (x_33 == 0) { -lean_object* x_34; -lean_dec(x_29); +uint8_t x_35; +x_35 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__1; +if (x_35 == 0) +{ +lean_object* x_36; +lean_dec(x_31); lean_dec(x_14); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_6); -x_15 = x_34; -x_16 = x_32; +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_6); +x_15 = x_36; +x_16 = x_34; goto block_21; } else { -lean_object* x_35; lean_object* x_36; -x_35 = l_Lean_Expr_fvarId_x21(x_14); +lean_object* x_37; lean_object* x_38; +x_37 = l_Lean_Expr_fvarId_x21(x_14); lean_inc(x_7); -x_36 = l_Lean_FVarId_getUserName(x_35, x_7, x_8, x_9, x_10, x_32); -if (lean_obj_tag(x_36) == 0) +x_38 = l_Lean_FVarId_getUserName(x_37, x_7, x_8, x_9, x_10, x_34); +if (lean_obj_tag(x_38) == 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; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__2; -x_40 = lean_name_append_after(x_37, x_39); -x_41 = lean_box(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; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__2; +x_42 = lean_name_append_after(x_39, x_41); +x_43 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_42 = l_Lean_MVarId_note(x_6, x_40, x_29, x_41, x_7, x_8, x_9, x_10, x_38); -if (lean_obj_tag(x_42) == 0) +x_44 = l_Lean_MVarId_note(x_6, x_42, x_31, x_43, x_7, x_8, x_9, x_10, x_40); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_6); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_43, 1); +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_15 = x_46; -x_16 = x_44; -goto block_21; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_42, 0); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_42, 1); -lean_inc(x_48); -lean_dec(x_42); -x_22 = x_47; -x_23 = x_48; -goto block_27; -} +lean_dec(x_45); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_15 = x_48; +x_16 = x_46; +goto block_21; } else { lean_object* x_49; lean_object* x_50; -lean_dec(x_29); -x_49 = lean_ctor_get(x_36, 0); +x_49 = lean_ctor_get(x_44, 0); lean_inc(x_49); -x_50 = lean_ctor_get(x_36, 1); +x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); -lean_dec(x_36); +lean_dec(x_44); x_22 = x_49; x_23 = x_50; -goto block_27; +goto block_29; +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_31); +x_51 = lean_ctor_get(x_38, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_38, 1); +lean_inc(x_52); +lean_dec(x_38); +x_22 = x_51; +x_23 = x_52; +goto block_29; } } } else { -uint8_t x_51; -x_51 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__3; -if (x_51 == 0) +uint8_t x_53; +x_53 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__3; +if (x_53 == 0) { -lean_object* x_52; -lean_dec(x_29); +lean_object* x_54; +lean_dec(x_31); lean_dec(x_14); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_6); -x_15 = x_52; -x_16 = x_32; +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_6); +x_15 = x_54; +x_16 = x_34; goto block_21; } else { -lean_object* x_53; lean_object* x_54; -x_53 = l_Lean_Expr_fvarId_x21(x_14); +lean_object* x_55; lean_object* x_56; +x_55 = l_Lean_Expr_fvarId_x21(x_14); lean_inc(x_7); -x_54 = l_Lean_FVarId_getUserName(x_53, x_7, x_8, x_9, x_10, x_32); -if (lean_obj_tag(x_54) == 0) +x_56 = l_Lean_FVarId_getUserName(x_55, x_7, x_8, x_9, x_10, x_34); +if (lean_obj_tag(x_56) == 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_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__2; -x_58 = lean_name_append_after(x_55, x_57); -x_59 = lean_box(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 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Array_forInUnsafe_loop___at_Lean_MVarId_symmSaturate___spec__9___closed__2; +x_60 = lean_name_append_after(x_57, x_59); +x_61 = lean_box(0); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_60 = l_Lean_MVarId_note(x_6, x_58, x_29, x_59, x_7, x_8, x_9, x_10, x_56); -if (lean_obj_tag(x_60) == 0) +x_62 = l_Lean_MVarId_note(x_6, x_60, x_31, x_61, x_7, x_8, x_9, x_10, x_58); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_6); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_ctor_get(x_61, 1); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_15 = x_64; -x_16 = x_62; +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_15 = x_66; +x_16 = x_64; goto block_21; } else { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_60, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec(x_60); -x_22 = x_65; -x_23 = x_66; -goto block_27; -} -} -else -{ lean_object* x_67; lean_object* x_68; -lean_dec(x_29); -x_67 = lean_ctor_get(x_54, 0); +x_67 = lean_ctor_get(x_62, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_54, 1); +x_68 = lean_ctor_get(x_62, 1); lean_inc(x_68); -lean_dec(x_54); +lean_dec(x_62); x_22 = x_67; x_23 = x_68; -goto block_27; +goto block_29; +} +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_31); +x_69 = lean_ctor_get(x_56, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_56, 1); +lean_inc(x_70); +lean_dec(x_56); +x_22 = x_69; +x_23 = x_70; +goto block_29; } } } @@ -7138,24 +7307,28 @@ goto block_27; } else { -uint8_t x_86; +uint8_t x_88; lean_dec(x_14); -x_86 = !lean_is_exclusive(x_28); -if (x_86 == 0) +x_88 = !lean_is_exclusive(x_30); +if (x_88 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = lean_ctor_get(x_28, 0); -x_88 = lean_ctor_get(x_28, 1); -x_89 = l_Lean_Exception_isRuntime(x_87); -if (x_89 == 0) +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_30, 0); +x_90 = lean_ctor_get(x_30, 1); +x_91 = l_Lean_Exception_isInterrupt(x_89); +if (x_91 == 0) { -size_t x_90; size_t x_91; -lean_free_object(x_28); -lean_dec(x_87); -x_90 = 1; -x_91 = lean_usize_add(x_5, x_90); -x_5 = x_91; -x_11 = x_88; +uint8_t x_92; +x_92 = l_Lean_Exception_isRuntime(x_89); +if (x_92 == 0) +{ +size_t x_93; size_t x_94; +lean_free_object(x_30); +lean_dec(x_89); +x_93 = 1; +x_94 = lean_usize_add(x_5, x_93); +x_5 = x_94; +x_11 = x_90; goto _start; } else @@ -7165,40 +7338,68 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_28; +return x_30; } } else { -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_28, 0); -x_94 = lean_ctor_get(x_28, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_28); -x_95 = l_Lean_Exception_isRuntime(x_93); -if (x_95 == 0) -{ -size_t x_96; size_t x_97; -lean_dec(x_93); -x_96 = 1; -x_97 = lean_usize_add(x_5, x_96); -x_5 = x_97; -x_11 = x_94; -goto _start; -} -else -{ -lean_object* x_99; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_93); -lean_ctor_set(x_99, 1, x_94); -return x_99; +return x_30; +} +} +else +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = lean_ctor_get(x_30, 0); +x_97 = lean_ctor_get(x_30, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_30); +x_98 = l_Lean_Exception_isInterrupt(x_96); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isRuntime(x_96); +if (x_99 == 0) +{ +size_t x_100; size_t x_101; +lean_dec(x_96); +x_100 = 1; +x_101 = lean_usize_add(x_5, x_100); +x_5 = x_101; +x_11 = x_97; +goto _start; +} +else +{ +lean_object* x_103; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_96); +lean_ctor_set(x_103, 1, x_97); +return x_103; +} +} +else +{ +lean_object* x_104; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_96); +lean_ctor_set(x_104, 1, x_97); +return x_104; } } } @@ -7215,32 +7416,50 @@ x_6 = x_17; x_11 = x_16; goto _start; } -block_27: +block_29: { uint8_t x_24; -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_dec(x_22); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_6); -x_15 = x_25; +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_6); +x_15 = x_26; x_16 = x_23; goto block_21; } else { -lean_object* x_26; +lean_object* x_27; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_22); -lean_ctor_set(x_26, 1, x_23); -return x_26; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +} +else +{ +lean_object* x_28; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_23); +return x_28; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/TryThis.c b/stage0/stdlib/Lean/Meta/Tactic/TryThis.c index 01efad67a8..231b2174fb 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/TryThis.c +++ b/stage0/stdlib/Lean/Meta/Tactic/TryThis.c @@ -426,7 +426,6 @@ static lean_object* l___private_Lean_Meta_Tactic_TryThis_0__Lean_Meta_Tactic_Try lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1561____spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Tactic_TryThis_addSuggestion___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_Meta_Tactic_TryThis_replaceMVarsByUnderscores___at_Lean_Meta_Tactic_TryThis_delabToRefinableSyntax___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___closed__5; lean_object* lean_string_append(lean_object*, lean_object*); @@ -5858,7 +5857,9 @@ x_21 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_21, 0, x_16); lean_ctor_set(x_21, 1, x_12); x_22 = 0; +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_1); x_23 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_21, x_22, x_6, x_7, x_8, x_9, x_10); x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); @@ -5884,7 +5885,9 @@ x_33 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_12); x_34 = 0; +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_1); x_35 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_33, x_34, x_6, x_7, x_8, x_9, x_10); x_36 = lean_ctor_get(x_35, 1); lean_inc(x_36); @@ -5913,7 +5916,9 @@ x_45 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_12); x_46 = 0; +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_1); x_47 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_45, x_46, x_6, x_7, x_8, x_9, x_10); x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); @@ -5941,7 +5946,9 @@ x_58 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_12); x_59 = 0; +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_1); x_60 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_58, x_59, x_6, x_7, x_8, x_9, x_10); x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); @@ -5968,7 +5975,9 @@ x_69 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_12); x_70 = 0; +lean_inc(x_9); lean_inc(x_8); +lean_inc(x_1); x_71 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_1, x_69, x_70, x_6, x_7, x_8, x_9, x_10); x_72 = lean_ctor_get(x_71, 1); lean_inc(x_72); @@ -5982,16 +5991,6 @@ return x_77; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Tactic_TryThis_addSuggestion___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_Lean_Meta_Tactic_TryThis_addSuggestion(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); -return x_11; -} -} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Tactic_TryThis_addSuggestions___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { @@ -6137,7 +6136,7 @@ return x_11; } else { -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +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; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -6149,7 +6148,10 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); +x_24 = lean_ctor_get(x_5, 11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_24); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -6162,24 +6164,26 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_dec(x_5); -x_24 = l_Lean_replaceRef(x_1, x_17); +x_26 = l_Lean_replaceRef(x_1, x_17); lean_dec(x_17); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_15); -lean_ctor_set(x_25, 4, x_16); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_23); -x_26 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_2, x_3, x_4, x_25, x_6, x_7); -lean_dec(x_25); -return x_26; +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_12); +lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 2, x_14); +lean_ctor_set(x_27, 3, x_15); +lean_ctor_set(x_27, 4, x_16); +lean_ctor_set(x_27, 5, x_26); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); +x_28 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); +lean_dec(x_27); +return x_28; } } } @@ -6217,7 +6221,9 @@ x_26 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_21); x_27 = 0; +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_3); x_28 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_3, x_26, x_27, x_8, x_9, x_10, x_11, x_12); x_29 = lean_ctor_get(x_28, 1); lean_inc(x_29); @@ -6243,7 +6249,9 @@ x_35 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_21); x_36 = 0; +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_3); x_37 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_3, x_35, x_36, x_8, x_9, x_10, x_11, x_12); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); @@ -6267,7 +6275,9 @@ x_45 = lean_alloc_ctor(6, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_21); x_46 = 0; +lean_inc(x_11); lean_inc(x_10); +lean_inc(x_3); x_47 = l_Lean_logAt___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__7(x_3, x_45, x_46, x_8, x_9, x_10, x_11, x_12); x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); @@ -6306,8 +6316,6 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); x_14 = l_Lean_Meta_Tactic_TryThis_addSuggestions___lambda__1(x_2, x_4, x_1, x_3, x_5, x_6, x_13, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_8); -lean_dec(x_7); return x_14; } else @@ -6386,8 +6394,6 @@ _start: { lean_object* x_13; x_13 = l_Lean_Meta_Tactic_TryThis_addSuggestions___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); return x_13; @@ -7078,8 +7084,6 @@ lean_inc(x_13); lean_dec(x_11); x_14 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Tactic_TryThis_tryThisProvider___spec__1___closed__3; x_15 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_12, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_7); -lean_dec(x_6); return x_15; } else @@ -7304,8 +7308,6 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); x_14 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_7); -lean_dec(x_6); return x_14; } else @@ -8330,8 +8332,6 @@ x_40 = l_Lean_Syntax_node1(x_25, x_39, x_38); x_41 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_42 = l_Lean_Syntax_node2(x_25, x_41, x_26, x_40); x_43 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_43; @@ -8353,8 +8353,6 @@ x_49 = l_Lean_Syntax_node1(x_25, x_48, x_47); x_50 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_51 = l_Lean_Syntax_node2(x_25, x_50, x_26, x_49); x_52 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_52; @@ -8397,8 +8395,6 @@ x_65 = l_Lean_Syntax_node1(x_25, x_64, x_63); x_66 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_67 = l_Lean_Syntax_node2(x_25, x_66, x_55, x_65); x_68 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_67, x_6, x_7, x_8, x_9, x_10, x_11, x_53); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_68; @@ -8420,8 +8416,6 @@ x_74 = l_Lean_Syntax_node1(x_25, x_73, x_72); x_75 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_76 = l_Lean_Syntax_node2(x_25, x_75, x_55, x_74); x_77 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_76, x_6, x_7, x_8, x_9, x_10, x_11, x_53); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_77; @@ -8493,8 +8487,6 @@ x_105 = l_Lean_Syntax_node1(x_81, x_104, x_103); x_106 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_107 = l_Lean_Syntax_node2(x_81, x_106, x_83, x_105); x_108 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_107, x_6, x_7, x_8, x_9, x_10, x_11, x_86); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_108; @@ -8551,8 +8543,6 @@ x_130 = l_Lean_Syntax_node1(x_81, x_129, x_128); x_131 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_132 = l_Lean_Syntax_node2(x_81, x_131, x_114, x_130); x_133 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_132, x_6, x_7, x_8, x_9, x_10, x_11, x_110); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_133; @@ -8607,8 +8597,6 @@ x_153 = l_Lean_Syntax_node1(x_138, x_152, x_151); x_154 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_155 = l_Lean_Syntax_node2(x_138, x_154, x_139, x_153); x_156 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_155, x_6, x_7, x_8, x_9, x_10, x_11, x_141); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_156; @@ -8647,8 +8635,6 @@ x_169 = l_Lean_Syntax_node1(x_138, x_168, x_167); x_170 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_171 = l_Lean_Syntax_node2(x_138, x_170, x_159, x_169); x_172 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_171, x_6, x_7, x_8, x_9, x_10, x_11, x_157); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_172; @@ -8737,8 +8723,6 @@ x_202 = l_Lean_Syntax_node1(x_182, x_201, x_200); x_203 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_204 = l_Lean_Syntax_node2(x_182, x_203, x_183, x_202); x_205 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_204, x_6, x_7, x_8, x_9, x_10, x_11, x_185); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_205; @@ -8759,8 +8743,6 @@ x_211 = l_Lean_Syntax_node1(x_182, x_210, x_209); x_212 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_213 = l_Lean_Syntax_node2(x_182, x_212, x_183, x_211); x_214 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_213, x_6, x_7, x_8, x_9, x_10, x_11, x_185); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_214; @@ -8812,8 +8794,6 @@ x_232 = l_Lean_Syntax_node1(x_182, x_231, x_230); x_233 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_234 = l_Lean_Syntax_node2(x_182, x_233, x_217, x_232); x_235 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_234, x_6, x_7, x_8, x_9, x_10, x_11, x_215); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_235; @@ -8834,8 +8814,6 @@ x_241 = l_Lean_Syntax_node1(x_182, x_240, x_239); x_242 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__2; x_243 = l_Lean_Syntax_node2(x_182, x_242, x_217, x_241); x_244 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_243, x_6, x_7, x_8, x_9, x_10, x_11, x_215); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_244; @@ -8918,8 +8896,6 @@ x_278 = l_Lean_Syntax_node1(x_249, x_277, x_276); x_279 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_280 = l_Lean_Syntax_node2(x_249, x_279, x_251, x_278); x_281 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_280, x_6, x_7, x_8, x_9, x_10, x_11, x_254); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_281; @@ -8985,8 +8961,6 @@ x_308 = l_Lean_Syntax_node1(x_249, x_307, x_306); x_309 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_310 = l_Lean_Syntax_node2(x_249, x_309, x_287, x_308); x_311 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_310, x_6, x_7, x_8, x_9, x_10, x_11, x_283); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_311; @@ -9052,8 +9026,6 @@ x_337 = l_Lean_Syntax_node1(x_317, x_336, x_335); x_338 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_339 = l_Lean_Syntax_node2(x_317, x_338, x_318, x_337); x_340 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_339, x_6, x_7, x_8, x_9, x_10, x_11, x_320); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_340; @@ -9101,8 +9073,6 @@ x_358 = l_Lean_Syntax_node1(x_317, x_357, x_356); x_359 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___closed__14; x_360 = l_Lean_Syntax_node2(x_317, x_359, x_343, x_358); x_361 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___lambda__1(x_1, x_5, x_360, x_6, x_7, x_8, x_9, x_10, x_11, x_341); -lean_dec(x_9); -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_361; @@ -9253,8 +9223,6 @@ _start: { lean_object* x_11; x_11 = l_Lean_Meta_Tactic_TryThis_addHaveSuggestion___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_7); -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); return x_11; @@ -10002,8 +9970,6 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; x_25 = l_Lean_Meta_Tactic_TryThis_initFn____x40_Lean_Meta_Tactic_TryThis___hyg_761____closed__4; x_26 = lean_box(0); x_27 = l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___lambda__1(x_6, x_2, x_3, x_25, x_24, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_10); -lean_dec(x_9); return x_27; } else @@ -10050,8 +10016,6 @@ x_45 = lean_string_append(x_43, x_44); lean_dec(x_44); x_46 = lean_box(0); x_47 = l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___lambda__1(x_6, x_2, x_3, x_45, x_33, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -lean_dec(x_10); -lean_dec(x_9); return x_47; } else @@ -10114,8 +10078,6 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = l_Lean_Meta_Tactic_TryThis_initFn____x40_Lean_Meta_Tactic_TryThis___hyg_761____closed__4; x_62 = lean_box(0); x_63 = l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___lambda__1(x_6, x_2, x_3, x_61, x_60, x_62, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_10); -lean_dec(x_9); return x_63; } else @@ -10162,8 +10124,6 @@ x_81 = lean_string_append(x_79, x_80); lean_dec(x_80); x_82 = lean_box(0); x_83 = l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___lambda__1(x_6, x_2, x_3, x_81, x_69, x_82, x_7, x_8, x_9, x_10, x_11, x_12, x_73); -lean_dec(x_10); -lean_dec(x_9); return x_83; } else @@ -10686,8 +10646,6 @@ _start: { lean_object* x_14; x_14 = l_Lean_Meta_Tactic_TryThis_addRewriteSuggestion___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); -lean_dec(x_10); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Util.c index 1d6a6472c2..f7ef59e481 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Util.c @@ -38,6 +38,7 @@ extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_admit___closed__2; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__18(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_getNondepPropHyps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_1755____closed__6; @@ -6630,7 +6631,7 @@ return x_10; LEAN_EXPORT lean_object* l_Lean_Meta_saturate_go(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; x_9 = lean_ctor_get(x_6, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_6, 1); @@ -6653,113 +6654,118 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); +lean_dec(x_36); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); +lean_ctor_set(x_6, 3, x_38); lean_inc(x_1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_36 = lean_apply_6(x_1, x_2, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_36) == 0) +x_39 = lean_apply_6(x_1, x_2, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_39) == 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_40; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 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; uint8_t x_44; +lean_object* x_41; 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_6); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_st_ref_take(x_3, x_38); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = lean_array_push(x_40, x_2); -x_43 = lean_st_ref_set(x_3, x_42, x_41); +x_42 = lean_st_ref_take(x_3, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_array_push(x_43, x_2); +x_46 = lean_st_ref_set(x_3, x_45, x_44); lean_dec(x_3); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_43, 0); -lean_dec(x_45); -x_46 = lean_box(0); -lean_ctor_set(x_43, 0, x_46); -return x_43; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_43, 1); -lean_inc(x_47); -lean_dec(x_43); -x_48 = lean_box(0); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} +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(x_46, 0, x_49); +return x_46; } else { lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_2); -x_50 = lean_ctor_get(x_36, 1); +x_50 = lean_ctor_get(x_46, 1); lean_inc(x_50); -lean_dec(x_36); -x_51 = lean_ctor_get(x_37, 0); -lean_inc(x_51); -lean_dec(x_37); -x_52 = l_List_forM___at_Lean_Meta_saturate_go___spec__1(x_1, x_51, x_3, x_4, x_5, x_6, x_7, x_50); +lean_dec(x_46); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); return x_52; } } else { -uint8_t x_53; +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_2); +x_53 = lean_ctor_get(x_39, 1); +lean_inc(x_53); +lean_dec(x_39); +x_54 = lean_ctor_get(x_40, 0); +lean_inc(x_54); +lean_dec(x_40); +x_55 = l_List_forM___at_Lean_Meta_saturate_go___spec__1(x_1, x_54, x_3, x_4, x_5, x_6, x_7, x_53); +return x_55; +} +} +else +{ +uint8_t x_56; lean_dec(x_6); lean_dec(x_7); lean_dec(x_5); @@ -6767,148 +6773,151 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_36); -if (x_53 == 0) +x_56 = !lean_is_exclusive(x_39); +if (x_56 == 0) { -return x_36; +return x_39; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_36, 0); -x_55 = lean_ctor_get(x_36, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_36); -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; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_39, 0); +x_58 = lean_ctor_get(x_39, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_39); +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; } } } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_6); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_add(x_12, x_57); +x_60 = lean_unsigned_to_nat(1u); +x_61 = lean_nat_add(x_12, x_60); lean_dec(x_12); -x_59 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_59, 0, x_9); -lean_ctor_set(x_59, 1, x_10); -lean_ctor_set(x_59, 2, x_11); -lean_ctor_set(x_59, 3, x_58); -lean_ctor_set(x_59, 4, x_13); -lean_ctor_set(x_59, 5, x_14); -lean_ctor_set(x_59, 6, x_15); -lean_ctor_set(x_59, 7, x_16); -lean_ctor_set(x_59, 8, x_17); -lean_ctor_set(x_59, 9, x_18); -lean_ctor_set(x_59, 10, x_19); -lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_20); +x_62 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_62, 0, x_9); +lean_ctor_set(x_62, 1, x_10); +lean_ctor_set(x_62, 2, x_11); +lean_ctor_set(x_62, 3, x_61); +lean_ctor_set(x_62, 4, x_13); +lean_ctor_set(x_62, 5, x_14); +lean_ctor_set(x_62, 6, x_15); +lean_ctor_set(x_62, 7, x_16); +lean_ctor_set(x_62, 8, x_17); +lean_ctor_set(x_62, 9, x_18); +lean_ctor_set(x_62, 10, x_19); +lean_ctor_set(x_62, 11, x_21); +lean_ctor_set_uint8(x_62, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_62, sizeof(void*)*12 + 1, x_22); lean_inc(x_1); lean_inc(x_7); -lean_inc(x_59); +lean_inc(x_62); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_60 = lean_apply_6(x_1, x_2, x_4, x_5, x_59, x_7, x_8); -if (lean_obj_tag(x_60) == 0) +x_63 = lean_apply_6(x_1, x_2, x_4, x_5, x_62, x_7, x_8); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_61; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -if (lean_obj_tag(x_61) == 0) +lean_object* x_64; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +if (lean_obj_tag(x_64) == 0) { -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_dec(x_59); +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_dec(x_62); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_st_ref_take(x_3, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); lean_inc(x_65); lean_dec(x_63); -x_66 = lean_array_push(x_64, x_2); -x_67 = lean_st_ref_set(x_3, x_66, x_65); -lean_dec(x_3); -x_68 = lean_ctor_get(x_67, 1); +x_66 = lean_st_ref_take(x_3, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; +lean_dec(x_66); +x_69 = lean_array_push(x_67, x_2); +x_70 = lean_st_ref_set(x_3, x_69, x_68); +lean_dec(x_3); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; } else { - lean_dec_ref(x_67); - x_69 = lean_box(0); + lean_dec_ref(x_70); + x_72 = lean_box(0); } -x_70 = lean_box(0); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); +x_73 = lean_box(0); +if (lean_is_scalar(x_72)) { + x_74 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_69; + x_74 = x_72; } -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_68); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_2); -x_72 = lean_ctor_get(x_60, 1); -lean_inc(x_72); -lean_dec(x_60); -x_73 = lean_ctor_get(x_61, 0); -lean_inc(x_73); -lean_dec(x_61); -x_74 = l_List_forM___at_Lean_Meta_saturate_go___spec__1(x_1, x_73, x_3, x_4, x_5, x_59, x_7, x_72); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_71); return x_74; } +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_2); +x_75 = lean_ctor_get(x_63, 1); +lean_inc(x_75); +lean_dec(x_63); +x_76 = lean_ctor_get(x_64, 0); +lean_inc(x_76); +lean_dec(x_64); +x_77 = l_List_forM___at_Lean_Meta_saturate_go___spec__1(x_1, x_76, x_3, x_4, x_5, x_62, x_7, x_75); +return x_77; +} } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_59); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_62); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_75 = lean_ctor_get(x_60, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_60, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_77 = x_60; +x_78 = lean_ctor_get(x_63, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_63, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_80 = x_63; } else { - lean_dec_ref(x_60); - x_77 = lean_box(0); + lean_dec_ref(x_63); + x_80 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); } else { - x_78 = x_77; + x_81 = x_80; } -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_76); -return x_78; +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; } } } else { -lean_object* x_79; +lean_object* x_82; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6921,13 +6930,13 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_79 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_saturate_go___spec__2(x_14, x_3, x_4, x_5, x_6, x_7, x_8); +x_82 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_saturate_go___spec__2(x_14, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_79; +return x_82; } } } @@ -8826,233 +8835,144 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_MVarId_isSubsingleton(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_Lean_MVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_7; lean_object* x_8; lean_object* x_17; +x_17 = l_Lean_MVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_17) == 0) { -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_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_MVarId_isSubsingleton___closed__3; -x_11 = lean_array_push(x_10, x_8); -x_12 = l_Lean_MVarId_isSubsingleton___closed__2; +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_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_MVarId_isSubsingleton___closed__3; +x_21 = lean_array_push(x_20, x_18); +x_22 = l_Lean_MVarId_isSubsingleton___closed__2; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_13 = l_Lean_Meta_mkAppM(x_12, x_11, x_2, x_3, x_4, x_5, x_9); -if (lean_obj_tag(x_13) == 0) +x_23 = l_Lean_Meta_mkAppM(x_22, x_21, x_2, x_3, x_4, x_5, x_19); +if (lean_obj_tag(x_23) == 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 = lean_box(0); -x_17 = l_Lean_Meta_synthInstance(x_14, x_16, x_2, x_3, x_4, x_5, x_15); -if (lean_obj_tag(x_17) == 0) +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_synthInstance(x_24, x_26, x_2, x_3, x_4, x_5, x_25); +if (lean_obj_tag(x_27) == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -x_20 = 1; -x_21 = lean_box(x_20); -lean_ctor_set(x_17, 0, x_21); -return x_17; -} -else -{ -lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_17, 1); -lean_inc(x_22); -lean_dec(x_17); -x_23 = 1; -x_24 = lean_box(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_22); -return x_25; -} -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_17); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_17, 0); -x_28 = l_Lean_Exception_isRuntime(x_27); +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); if (x_28 == 0) { -uint8_t x_29; lean_object* x_30; -lean_dec(x_27); -x_29 = 0; -x_30 = lean_box(x_29); -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_30); -return x_17; +lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +x_30 = 1; +x_31 = lean_box(x_30); +lean_ctor_set(x_27, 0, x_31); +return x_27; } else { -return x_17; -} -} -else -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_17, 0); -x_32 = lean_ctor_get(x_17, 1); +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_27, 1); lean_inc(x_32); -lean_inc(x_31); +lean_dec(x_27); +x_33 = 1; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +return x_35; +} +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_27, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_27, 1); +lean_inc(x_37); +lean_dec(x_27); +x_7 = x_36; +x_8 = x_37; +goto block_16; +} +} +else +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_23, 1); +lean_inc(x_39); +lean_dec(x_23); +x_7 = x_38; +x_8 = x_39; +goto block_16; +} +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = lean_ctor_get(x_17, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_17, 1); +lean_inc(x_41); lean_dec(x_17); -x_33 = l_Lean_Exception_isRuntime(x_31); -if (x_33 == 0) +x_7 = x_40; +x_8 = x_41; +goto block_16; +} +block_16: { -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -x_34 = 0; -x_35 = lean_box(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_32); -return x_36; -} -else +uint8_t x_9; +x_9 = l_Lean_Exception_isInterrupt(x_7); +if (x_9 == 0) { -lean_object* x_37; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -return x_37; -} -} -} -} -else +uint8_t x_10; +x_10 = l_Lean_Exception_isRuntime(x_7); +if (x_10 == 0) { -uint8_t x_38; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_13); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_13, 0); -x_40 = l_Lean_Exception_isRuntime(x_39); -if (x_40 == 0) -{ -uint8_t x_41; lean_object* x_42; -lean_dec(x_39); -x_41 = 0; -x_42 = lean_box(x_41); -lean_ctor_set_tag(x_13, 0); -lean_ctor_set(x_13, 0, x_42); -return x_13; -} -else -{ -return x_13; -} -} -else -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_13, 0); -x_44 = lean_ctor_get(x_13, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_13); -x_45 = l_Lean_Exception_isRuntime(x_43); -if (x_45 == 0) -{ -uint8_t x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_43); -x_46 = 0; -x_47 = lean_box(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_44); -return x_48; -} -else -{ -lean_object* x_49; -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_44); -return x_49; -} -} -} -} -else -{ -uint8_t x_50; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_50 = !lean_is_exclusive(x_7); -if (x_50 == 0) -{ -lean_object* x_51; uint8_t x_52; -x_51 = lean_ctor_get(x_7, 0); -x_52 = l_Lean_Exception_isRuntime(x_51); -if (x_52 == 0) -{ -uint8_t x_53; lean_object* x_54; -lean_dec(x_51); -x_53 = 0; -x_54 = lean_box(x_53); -lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_54); -return x_7; -} -else -{ -return x_7; -} -} -else -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_55 = lean_ctor_get(x_7, 0); -x_56 = lean_ctor_get(x_7, 1); -lean_inc(x_56); -lean_inc(x_55); +uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_dec(x_7); -x_57 = l_Lean_Exception_isRuntime(x_55); -if (x_57 == 0) -{ -uint8_t x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_55); -x_58 = 0; -x_59 = lean_box(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_56); -return x_60; +x_11 = 0; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_8); +return x_13; } else { -lean_object* x_61; -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_55); -lean_ctor_set(x_61, 1, x_56); -return x_61; +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_8); +return x_14; } } +else +{ +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_8); +return x_15; +} } } } diff --git a/stage0/stdlib/Lean/Meta/Transform.c b/stage0/stdlib/Lean/Meta/Transform.c index 2d8f97b6b5..bbe855aba5 100644 --- a/stage0/stdlib/Lean/Meta/Transform.c +++ b/stage0/stdlib/Lean/Meta/Transform.c @@ -628,7 +628,7 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4___rarg___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; +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; uint8_t x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_dec(x_4); lean_dec(x_3); x_9 = lean_ctor_get(x_6, 0); @@ -653,73 +653,81 @@ x_18 = lean_ctor_get(x_6, 9); lean_inc(x_18); x_19 = lean_ctor_get(x_6, 10); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); -x_21 = lean_nat_dec_eq(x_12, x_13); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*12); +x_21 = lean_ctor_get(x_6, 11); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*12 + 1); +x_23 = lean_nat_dec_eq(x_12, x_13); +if (x_23 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_6); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_6); +if (x_24 == 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; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_23 = lean_ctor_get(x_6, 10); -lean_dec(x_23); -x_24 = lean_ctor_get(x_6, 9); -lean_dec(x_24); -x_25 = lean_ctor_get(x_6, 8); +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; +x_25 = lean_ctor_get(x_6, 11); lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 7); +x_26 = lean_ctor_get(x_6, 10); lean_dec(x_26); -x_27 = lean_ctor_get(x_6, 6); +x_27 = lean_ctor_get(x_6, 9); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 5); +x_28 = lean_ctor_get(x_6, 8); lean_dec(x_28); -x_29 = lean_ctor_get(x_6, 4); +x_29 = lean_ctor_get(x_6, 7); lean_dec(x_29); -x_30 = lean_ctor_get(x_6, 3); +x_30 = lean_ctor_get(x_6, 6); lean_dec(x_30); -x_31 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 5); lean_dec(x_31); -x_32 = lean_ctor_get(x_6, 1); +x_32 = lean_ctor_get(x_6, 4); lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); +x_33 = lean_ctor_get(x_6, 3); lean_dec(x_33); -x_34 = lean_unsigned_to_nat(1u); -x_35 = lean_nat_add(x_12, x_34); +x_34 = lean_ctor_get(x_6, 2); +lean_dec(x_34); +x_35 = lean_ctor_get(x_6, 1); +lean_dec(x_35); +x_36 = lean_ctor_get(x_6, 0); +lean_dec(x_36); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_12, x_37); lean_dec(x_12); -lean_ctor_set(x_6, 3, x_35); -x_36 = lean_apply_1(x_1, x_2); -x_37 = lean_apply_5(x_5, lean_box(0), x_36, x_6, x_7, x_8); -return x_37; +lean_ctor_set(x_6, 3, x_38); +x_39 = lean_apply_1(x_1, x_2); +x_40 = lean_apply_5(x_5, lean_box(0), x_39, x_6, x_7, x_8); +return x_40; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_dec(x_6); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_add(x_12, x_38); +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_12, x_41); lean_dec(x_12); -x_40 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_40, 0, x_9); -lean_ctor_set(x_40, 1, x_10); -lean_ctor_set(x_40, 2, x_11); -lean_ctor_set(x_40, 3, x_39); -lean_ctor_set(x_40, 4, x_13); -lean_ctor_set(x_40, 5, x_14); -lean_ctor_set(x_40, 6, x_15); -lean_ctor_set(x_40, 7, x_16); -lean_ctor_set(x_40, 8, x_17); -lean_ctor_set(x_40, 9, x_18); -lean_ctor_set(x_40, 10, x_19); -lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_20); -x_41 = lean_apply_1(x_1, x_2); -x_42 = lean_apply_5(x_5, lean_box(0), x_41, x_40, x_7, x_8); -return x_42; +x_43 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_43, 0, x_9); +lean_ctor_set(x_43, 1, x_10); +lean_ctor_set(x_43, 2, x_11); +lean_ctor_set(x_43, 3, x_42); +lean_ctor_set(x_43, 4, x_13); +lean_ctor_set(x_43, 5, x_14); +lean_ctor_set(x_43, 6, x_15); +lean_ctor_set(x_43, 7, x_16); +lean_ctor_set(x_43, 8, x_17); +lean_ctor_set(x_43, 9, x_18); +lean_ctor_set(x_43, 10, x_19); +lean_ctor_set(x_43, 11, x_21); +lean_ctor_set_uint8(x_43, sizeof(void*)*12, x_20); +lean_ctor_set_uint8(x_43, sizeof(void*)*12 + 1, x_22); +x_44 = lean_apply_1(x_1, x_2); +x_45 = lean_apply_5(x_5, lean_box(0), x_44, x_43, x_7, x_8); +return x_45; } } else { -lean_object* x_43; +lean_object* x_46; +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -733,10 +741,10 @@ lean_dec(x_9); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_43 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_transform_visit___spec__5___rarg(x_14, x_6, x_7, x_8); +x_46 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_transform_visit___spec__5___rarg(x_14, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); -return x_43; +return x_46; } } } @@ -2679,7 +2687,7 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_betaReduce___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) { _start: { -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; uint8_t x_19; +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; uint8_t x_20; uint8_t x_21; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_4, 1); @@ -2702,161 +2710,169 @@ x_16 = lean_ctor_get(x_4, 9); lean_inc(x_16); x_17 = lean_ctor_get(x_4, 10); lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_19 = lean_nat_dec_eq(x_10, x_11); -if (x_19 == 0) +x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_19 = lean_ctor_get(x_4, 11); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_21 = lean_nat_dec_eq(x_10, x_11); +if (x_21 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_4); -if (x_20 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +if (x_22 == 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; -x_21 = lean_ctor_get(x_4, 10); -lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 9); -lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 8); +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; +x_23 = lean_ctor_get(x_4, 11); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 7); +x_24 = lean_ctor_get(x_4, 10); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 6); +x_25 = lean_ctor_get(x_4, 9); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 5); +x_26 = lean_ctor_get(x_4, 8); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 4); +x_27 = lean_ctor_get(x_4, 7); lean_dec(x_27); -x_28 = lean_ctor_get(x_4, 3); +x_28 = lean_ctor_get(x_4, 6); lean_dec(x_28); -x_29 = lean_ctor_get(x_4, 2); +x_29 = lean_ctor_get(x_4, 5); lean_dec(x_29); -x_30 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 4); lean_dec(x_30); -x_31 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 3); lean_dec(x_31); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_10, x_32); -lean_dec(x_10); -lean_ctor_set(x_4, 3, x_33); -x_34 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_34) == 0) -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -return x_34; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_34, 0); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_inc(x_36); +x_32 = lean_ctor_get(x_4, 2); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 1); +lean_dec(x_33); +x_34 = lean_ctor_get(x_4, 0); lean_dec(x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_10, x_35); +lean_dec(x_10); +lean_ctor_set(x_4, 3, x_36); +x_37 = lean_apply_4(x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +return x_37; } else { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -return x_34; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_34, 0); -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); +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_inc(x_40); -lean_dec(x_34); -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_inc(x_39); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +return x_37; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_4); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_add(x_10, x_43); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_10, x_46); lean_dec(x_10); -x_45 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_45, 0, x_7); -lean_ctor_set(x_45, 1, x_8); -lean_ctor_set(x_45, 2, x_9); -lean_ctor_set(x_45, 3, x_44); -lean_ctor_set(x_45, 4, x_11); -lean_ctor_set(x_45, 5, x_12); -lean_ctor_set(x_45, 6, x_13); -lean_ctor_set(x_45, 7, x_14); -lean_ctor_set(x_45, 8, x_15); -lean_ctor_set(x_45, 9, x_16); -lean_ctor_set(x_45, 10, x_17); -lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_18); -x_46 = lean_apply_4(x_2, x_3, x_45, x_5, x_6); -if (lean_obj_tag(x_46) == 0) +x_48 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_48, 0, x_7); +lean_ctor_set(x_48, 1, x_8); +lean_ctor_set(x_48, 2, x_9); +lean_ctor_set(x_48, 3, x_47); +lean_ctor_set(x_48, 4, x_11); +lean_ctor_set(x_48, 5, x_12); +lean_ctor_set(x_48, 6, x_13); +lean_ctor_set(x_48, 7, x_14); +lean_ctor_set(x_48, 8, x_15); +lean_ctor_set(x_48, 9, x_16); +lean_ctor_set(x_48, 10, x_17); +lean_ctor_set(x_48, 11, x_19); +lean_ctor_set_uint8(x_48, sizeof(void*)*12, x_18); +lean_ctor_set_uint8(x_48, sizeof(void*)*12 + 1, x_20); +x_49 = lean_apply_4(x_2, x_3, x_48, x_5, x_6); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; -} else { - lean_dec_ref(x_46); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(0, 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; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_46, 0); +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_46, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_53 = x_46; +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; } else { - lean_dec_ref(x_46); - x_53 = lean_box(0); + lean_dec_ref(x_49); + x_52 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 2, 0); } else { - x_54 = x_53; + x_53 = x_52; } -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_49, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_49, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_56 = x_49; +} else { + lean_dec_ref(x_49); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } } else { -lean_object* x_55; uint8_t x_56; +lean_object* x_58; uint8_t x_59; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -2869,26 +2885,26 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); -x_55 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_betaReduce___spec__8___rarg(x_12, x_4, x_5, x_6); +x_58 = l_Lean_throwMaxRecDepthAt___at_Lean_Core_betaReduce___spec__8___rarg(x_12, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) { -return x_55; +return x_58; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_55); -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; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_58); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } @@ -4852,7 +4868,7 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_transform_visit___spec__6___rarg___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; 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; uint8_t x_22; uint8_t x_23; +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; uint8_t x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_dec(x_4); lean_dec(x_3); x_11 = lean_ctor_get(x_8, 0); @@ -4877,73 +4893,81 @@ x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); x_21 = lean_ctor_get(x_8, 10); lean_inc(x_21); -x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); -x_23 = lean_nat_dec_eq(x_14, x_15); -if (x_23 == 0) +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*12); +x_23 = lean_ctor_get(x_8, 11); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +x_25 = lean_nat_dec_eq(x_14, x_15); +if (x_25 == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_8); +if (x_26 == 0) { -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; -x_25 = lean_ctor_get(x_8, 10); -lean_dec(x_25); -x_26 = lean_ctor_get(x_8, 9); -lean_dec(x_26); -x_27 = lean_ctor_get(x_8, 8); +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; +x_27 = lean_ctor_get(x_8, 11); lean_dec(x_27); -x_28 = lean_ctor_get(x_8, 7); +x_28 = lean_ctor_get(x_8, 10); lean_dec(x_28); -x_29 = lean_ctor_get(x_8, 6); +x_29 = lean_ctor_get(x_8, 9); lean_dec(x_29); -x_30 = lean_ctor_get(x_8, 5); +x_30 = lean_ctor_get(x_8, 8); lean_dec(x_30); -x_31 = lean_ctor_get(x_8, 4); +x_31 = lean_ctor_get(x_8, 7); lean_dec(x_31); -x_32 = lean_ctor_get(x_8, 3); +x_32 = lean_ctor_get(x_8, 6); lean_dec(x_32); -x_33 = lean_ctor_get(x_8, 2); +x_33 = lean_ctor_get(x_8, 5); lean_dec(x_33); -x_34 = lean_ctor_get(x_8, 1); +x_34 = lean_ctor_get(x_8, 4); lean_dec(x_34); -x_35 = lean_ctor_get(x_8, 0); +x_35 = lean_ctor_get(x_8, 3); lean_dec(x_35); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_14, x_36); +x_36 = lean_ctor_get(x_8, 2); +lean_dec(x_36); +x_37 = lean_ctor_get(x_8, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_8, 0); +lean_dec(x_38); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_14, x_39); lean_dec(x_14); -lean_ctor_set(x_8, 3, x_37); -x_38 = lean_apply_1(x_1, x_2); -x_39 = lean_apply_7(x_5, lean_box(0), x_38, x_6, x_7, x_8, x_9, x_10); -return x_39; +lean_ctor_set(x_8, 3, x_40); +x_41 = lean_apply_1(x_1, x_2); +x_42 = lean_apply_7(x_5, lean_box(0), x_41, x_6, x_7, x_8, x_9, x_10); +return x_42; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_dec(x_8); -x_40 = lean_unsigned_to_nat(1u); -x_41 = lean_nat_add(x_14, x_40); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_add(x_14, x_43); lean_dec(x_14); -x_42 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_42, 0, x_11); -lean_ctor_set(x_42, 1, x_12); -lean_ctor_set(x_42, 2, x_13); -lean_ctor_set(x_42, 3, x_41); -lean_ctor_set(x_42, 4, x_15); -lean_ctor_set(x_42, 5, x_16); -lean_ctor_set(x_42, 6, x_17); -lean_ctor_set(x_42, 7, x_18); -lean_ctor_set(x_42, 8, x_19); -lean_ctor_set(x_42, 9, x_20); -lean_ctor_set(x_42, 10, x_21); -lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_22); -x_43 = lean_apply_1(x_1, x_2); -x_44 = lean_apply_7(x_5, lean_box(0), x_43, x_6, x_7, x_42, x_9, x_10); -return x_44; +x_45 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_45, 0, x_11); +lean_ctor_set(x_45, 1, x_12); +lean_ctor_set(x_45, 2, x_13); +lean_ctor_set(x_45, 3, x_44); +lean_ctor_set(x_45, 4, x_15); +lean_ctor_set(x_45, 5, x_16); +lean_ctor_set(x_45, 6, x_17); +lean_ctor_set(x_45, 7, x_18); +lean_ctor_set(x_45, 8, x_19); +lean_ctor_set(x_45, 9, x_20); +lean_ctor_set(x_45, 10, x_21); +lean_ctor_set(x_45, 11, x_23); +lean_ctor_set_uint8(x_45, sizeof(void*)*12, x_22); +lean_ctor_set_uint8(x_45, sizeof(void*)*12 + 1, x_24); +x_46 = lean_apply_1(x_1, x_2); +x_47 = lean_apply_7(x_5, lean_box(0), x_46, x_6, x_7, x_45, x_9, x_10); +return x_47; } } else { -lean_object* x_45; +lean_object* x_48; +lean_dec(x_23); lean_dec(x_21); lean_dec(x_20); lean_dec(x_19); @@ -4957,12 +4981,12 @@ lean_dec(x_11); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_45 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_transform_visit___spec__7___rarg(x_16, x_6, x_7, x_8, x_9, x_10); +x_48 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_transform_visit___spec__7___rarg(x_16, 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_6); -return x_45; +return x_48; } } } @@ -8576,7 +8600,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_zetaReduce___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, 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); @@ -8599,161 +8623,169 @@ x_19 = lean_ctor_get(x_7, 9); lean_inc(x_19); x_20 = lean_ctor_get(x_7, 10); lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); -x_22 = lean_nat_dec_eq(x_13, x_14); -if (x_22 == 0) +x_21 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_22 = lean_ctor_get(x_7, 11); +lean_inc(x_22); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +x_24 = lean_nat_dec_eq(x_13, x_14); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 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; 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_24 = lean_ctor_get(x_7, 10); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 9); -lean_dec(x_25); -x_26 = lean_ctor_get(x_7, 8); +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; +x_26 = lean_ctor_get(x_7, 11); lean_dec(x_26); -x_27 = lean_ctor_get(x_7, 7); +x_27 = lean_ctor_get(x_7, 10); lean_dec(x_27); -x_28 = lean_ctor_get(x_7, 6); +x_28 = lean_ctor_get(x_7, 9); lean_dec(x_28); -x_29 = lean_ctor_get(x_7, 5); +x_29 = lean_ctor_get(x_7, 8); lean_dec(x_29); -x_30 = lean_ctor_get(x_7, 4); +x_30 = lean_ctor_get(x_7, 7); lean_dec(x_30); -x_31 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 6); lean_dec(x_31); -x_32 = lean_ctor_get(x_7, 2); +x_32 = lean_ctor_get(x_7, 5); lean_dec(x_32); -x_33 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 4); lean_dec(x_33); -x_34 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 3); lean_dec(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_13, x_35); -lean_dec(x_13); -lean_ctor_set(x_7, 3, x_36); -x_37 = lean_apply_6(x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -return x_37; -} -else -{ -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_inc(x_40); -lean_inc(x_39); +x_35 = lean_ctor_get(x_7, 2); +lean_dec(x_35); +x_36 = lean_ctor_get(x_7, 1); +lean_dec(x_36); +x_37 = lean_ctor_get(x_7, 0); lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_13, x_38); +lean_dec(x_13); +lean_ctor_set(x_7, 3, x_39); +x_40 = lean_apply_6(x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +return x_40; } else { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_37); -if (x_42 == 0) -{ -return x_37; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -lean_dec(x_37); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_inc(x_42); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_dec(x_7); -x_46 = lean_unsigned_to_nat(1u); -x_47 = lean_nat_add(x_13, x_46); +x_49 = lean_unsigned_to_nat(1u); +x_50 = lean_nat_add(x_13, x_49); lean_dec(x_13); -x_48 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_48, 0, x_10); -lean_ctor_set(x_48, 1, x_11); -lean_ctor_set(x_48, 2, x_12); -lean_ctor_set(x_48, 3, x_47); -lean_ctor_set(x_48, 4, x_14); -lean_ctor_set(x_48, 5, x_15); -lean_ctor_set(x_48, 6, x_16); -lean_ctor_set(x_48, 7, x_17); -lean_ctor_set(x_48, 8, x_18); -lean_ctor_set(x_48, 9, x_19); -lean_ctor_set(x_48, 10, x_20); -lean_ctor_set_uint8(x_48, sizeof(void*)*11, x_21); -x_49 = lean_apply_6(x_3, x_4, x_5, x_6, x_48, x_8, x_9); -if (lean_obj_tag(x_49) == 0) +x_51 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_51, 0, x_10); +lean_ctor_set(x_51, 1, x_11); +lean_ctor_set(x_51, 2, x_12); +lean_ctor_set(x_51, 3, x_50); +lean_ctor_set(x_51, 4, x_14); +lean_ctor_set(x_51, 5, x_15); +lean_ctor_set(x_51, 6, x_16); +lean_ctor_set(x_51, 7, x_17); +lean_ctor_set(x_51, 8, x_18); +lean_ctor_set(x_51, 9, x_19); +lean_ctor_set(x_51, 10, x_20); +lean_ctor_set(x_51, 11, x_22); +lean_ctor_set_uint8(x_51, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_51, sizeof(void*)*12 + 1, x_23); +x_52 = lean_apply_6(x_3, x_4, x_5, x_6, x_51, x_8, x_9); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_52 = x_49; -} else { - lean_dec_ref(x_49); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 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; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_49, 0); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_49, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_56 = x_49; +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_49); - x_56 = lean_box(0); + lean_dec_ref(x_52); + x_55 = lean_box(0); } -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_56; + x_56 = x_55; } -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_52, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_59 = x_52; +} else { + lean_dec_ref(x_52); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; } } } else { -lean_object* x_58; uint8_t x_59; +lean_object* x_61; uint8_t x_62; +lean_dec(x_22); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -8766,28 +8798,28 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_4); lean_dec(x_3); -x_58 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_zetaReduce___spec__16___rarg(x_15, x_5, x_6, x_7, x_8, x_9); +x_61 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_zetaReduce___spec__16___rarg(x_15, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) { -return x_58; +return x_61; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_58); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_61); +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; } } } diff --git a/stage0/stdlib/Lean/Meta/UnificationHint.c b/stage0/stdlib/Lean/Meta/UnificationHint.c index 1f22d58299..eb03b43a39 100644 --- a/stage0/stdlib/Lean/Meta/UnificationHint.c +++ b/stage0/stdlib/Lean/Meta/UnificationHint.c @@ -41,6 +41,7 @@ static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addUnificationH uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_tryUnificationHints___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Meta_tryUnificationHints___lambda__2___closed__2; static lean_object* l_Lean_Meta_DiscrTree_insertCore___at_Lean_Meta_UnificationHints_add___spec__1___closed__2; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6613,7 +6614,7 @@ lean_dec(x_19); x_20 = !lean_is_exclusive(x_16); 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; uint8_t x_39; lean_object* x_40; lean_object* x_79; +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; uint8_t x_41; lean_object* x_42; lean_object* x_81; x_21 = lean_ctor_get(x_16, 5); lean_dec(x_21); x_22 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; @@ -6636,786 +6637,768 @@ if (lean_is_exclusive(x_25)) { x_28 = lean_box(0); } lean_inc(x_3); -x_79 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_27); -if (lean_obj_tag(x_79) == 0) +x_81 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_81) == 0) { -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; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = l_Lean_ConstantInfo_levelParams(x_80); -x_83 = lean_box(0); -x_84 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_82, x_83, x_6, x_7, x_8, x_9, x_81); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); +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; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = l_Lean_ConstantInfo_levelParams(x_82); +x_85 = lean_box(0); +x_86 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_84, x_85, x_6, x_7, x_8, x_9, x_83); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); lean_inc(x_9); lean_inc(x_8); -x_87 = l_Lean_Core_instantiateValueLevelParams(x_80, x_85, x_8, x_9, x_86); -lean_dec(x_80); -if (lean_obj_tag(x_87) == 0) +x_89 = l_Lean_Core_instantiateValueLevelParams(x_82, x_87, x_8, x_9, x_88); +lean_dec(x_82); +if (lean_obj_tag(x_89) == 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; 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_146; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_box(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; 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_148; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_box(0); lean_inc(x_6); -x_91 = l_Lean_Meta_lambdaMetaTelescope(x_88, x_90, x_6, x_7, x_8, x_9, x_89); -lean_dec(x_88); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -x_94 = lean_ctor_get(x_91, 1); +x_93 = l_Lean_Meta_lambdaMetaTelescope(x_90, x_92, x_6, x_7, x_8, x_9, x_91); +lean_dec(x_90); +x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); -lean_dec(x_91); -x_95 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_94, 1); lean_inc(x_95); -lean_dec(x_92); -x_96 = lean_ctor_get(x_93, 0); +x_96 = lean_ctor_get(x_93, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_93, 1); +lean_dec(x_93); +x_97 = lean_ctor_get(x_94, 0); lean_inc(x_97); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_98 = x_93; +lean_dec(x_94); +x_98 = lean_ctor_get(x_95, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_100 = x_95; } else { - lean_dec_ref(x_93); - x_98 = lean_box(0); + lean_dec_ref(x_95); + x_100 = lean_box(0); } -x_146 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_97); -if (lean_obj_tag(x_146) == 0) +x_148 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_99); +if (lean_obj_tag(x_148) == 0) { -lean_dec(x_146); +lean_dec(x_148); lean_dec(x_2); lean_dec(x_1); -x_99 = x_90; -x_100 = x_94; -goto block_145; +x_101 = x_92; +x_102 = x_96; +goto block_147; } else { -lean_object* x_147; uint8_t x_148; -x_147 = lean_ctor_get(x_6, 0); -lean_inc(x_147); -x_148 = !lean_is_exclusive(x_146); -if (x_148 == 0) +lean_object* x_149; uint8_t x_150; +x_149 = lean_ctor_get(x_6, 0); +lean_inc(x_149); +x_150 = !lean_is_exclusive(x_148); +if (x_150 == 0) { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_149 = lean_ctor_get(x_146, 0); -x_150 = lean_ctor_get(x_6, 1); -lean_inc(x_150); -x_151 = lean_ctor_get(x_6, 2); -lean_inc(x_151); -x_152 = lean_ctor_get(x_6, 3); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_151 = lean_ctor_get(x_148, 0); +x_152 = lean_ctor_get(x_6, 1); lean_inc(x_152); -x_153 = lean_ctor_get(x_6, 4); +x_153 = lean_ctor_get(x_6, 2); lean_inc(x_153); -x_154 = lean_ctor_get(x_6, 5); +x_154 = lean_ctor_get(x_6, 3); lean_inc(x_154); -x_155 = !lean_is_exclusive(x_147); -if (x_155 == 0) +x_155 = lean_ctor_get(x_6, 4); +lean_inc(x_155); +x_156 = lean_ctor_get(x_6, 5); +lean_inc(x_156); +x_157 = !lean_is_exclusive(x_149); +if (x_157 == 0) { -uint8_t x_156; uint8_t x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_156 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_157 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_158 = 0; -lean_ctor_set_uint8(x_147, 5, x_158); -x_159 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_159, 0, x_147); -lean_ctor_set(x_159, 1, x_150); -lean_ctor_set(x_159, 2, x_151); -lean_ctor_set(x_159, 3, x_152); -lean_ctor_set(x_159, 4, x_153); -lean_ctor_set(x_159, 5, x_154); -lean_ctor_set_uint8(x_159, sizeof(void*)*6, x_156); -lean_ctor_set_uint8(x_159, sizeof(void*)*6 + 1, x_157); -x_160 = lean_ctor_get(x_149, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_159); -x_162 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_161, x_1, x_159, x_7, x_8, x_9, x_94); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; uint8_t x_164; +uint8_t x_158; uint8_t x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_158 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_159 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_160 = 0; +lean_ctor_set_uint8(x_149, 5, x_160); +x_161 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_161, 0, x_149); +lean_ctor_set(x_161, 1, x_152); +lean_ctor_set(x_161, 2, x_153); +lean_ctor_set(x_161, 3, x_154); +lean_ctor_set(x_161, 4, x_155); +lean_ctor_set(x_161, 5, x_156); +lean_ctor_set_uint8(x_161, sizeof(void*)*6, x_158); +lean_ctor_set_uint8(x_161, sizeof(void*)*6 + 1, x_159); +x_162 = lean_ctor_get(x_151, 0); +lean_inc(x_162); x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -x_164 = lean_unbox(x_163); -lean_dec(x_163); -if (x_164 == 0) -{ -lean_object* x_165; -lean_dec(x_160); -lean_dec(x_159); -lean_free_object(x_146); -lean_dec(x_149); -lean_dec(x_2); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_99 = x_90; -x_100 = x_165; -goto block_145; -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_162, 1); -lean_inc(x_166); -lean_dec(x_162); -x_167 = lean_ctor_get(x_160, 1); -lean_inc(x_167); -lean_dec(x_160); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_168 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_167, x_2, x_159, x_7, x_8, x_9, x_166); -if (lean_obj_tag(x_168) == 0) +lean_inc(x_161); +x_164 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_163, x_1, x_161, x_7, x_8, x_9, x_96); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_169; uint8_t x_170; -x_169 = lean_ctor_get(x_168, 0); +lean_object* x_165; uint8_t x_166; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_unbox(x_165); +lean_dec(x_165); +if (x_166 == 0) +{ +lean_object* x_167; +lean_dec(x_162); +lean_dec(x_161); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_2); +x_167 = lean_ctor_get(x_164, 1); +lean_inc(x_167); +lean_dec(x_164); +x_101 = x_92; +x_102 = x_167; +goto block_147; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_164, 1); +lean_inc(x_168); +lean_dec(x_164); +x_169 = lean_ctor_get(x_162, 1); lean_inc(x_169); -x_170 = lean_unbox(x_169); -lean_dec(x_169); -if (x_170 == 0) +lean_dec(x_162); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_170 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_169, x_2, x_161, x_7, x_8, x_9, x_168); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_171; -lean_free_object(x_146); -lean_dec(x_149); -x_171 = lean_ctor_get(x_168, 1); +lean_object* x_171; uint8_t x_172; +x_171 = lean_ctor_get(x_170, 0); lean_inc(x_171); -lean_dec(x_168); -x_99 = x_90; -x_100 = x_171; -goto block_145; -} -else +x_172 = lean_unbox(x_171); +lean_dec(x_171); +if (x_172 == 0) { -lean_object* x_172; -x_172 = lean_ctor_get(x_168, 1); -lean_inc(x_172); -lean_dec(x_168); -x_99 = x_146; -x_100 = x_172; -goto block_145; -} -} -else -{ -lean_object* x_173; lean_object* x_174; -lean_free_object(x_146); -lean_dec(x_149); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); -lean_dec(x_26); -lean_dec(x_4); -lean_dec(x_3); -x_173 = lean_ctor_get(x_168, 0); +lean_object* x_173; +lean_free_object(x_148); +lean_dec(x_151); +x_173 = lean_ctor_get(x_170, 1); lean_inc(x_173); -x_174 = lean_ctor_get(x_168, 1); -lean_inc(x_174); -lean_dec(x_168); -x_29 = x_173; -x_30 = x_174; -goto block_38; +lean_dec(x_170); +x_101 = x_92; +x_102 = x_173; +goto block_147; } +else +{ +lean_object* x_174; +x_174 = lean_ctor_get(x_170, 1); +lean_inc(x_174); +lean_dec(x_170); +x_101 = x_148; +x_102 = x_174; +goto block_147; } } else { lean_object* x_175; lean_object* x_176; -lean_dec(x_160); -lean_dec(x_159); -lean_free_object(x_146); -lean_dec(x_149); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_100); lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); +lean_dec(x_97); lean_dec(x_26); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_175 = lean_ctor_get(x_162, 0); +x_175 = lean_ctor_get(x_170, 0); lean_inc(x_175); -x_176 = lean_ctor_get(x_162, 1); +x_176 = lean_ctor_get(x_170, 1); lean_inc(x_176); -lean_dec(x_162); +lean_dec(x_170); x_29 = x_175; x_30 = x_176; -goto block_38; +goto block_40; +} } } else { -uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_177 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_178 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_179 = lean_ctor_get_uint8(x_147, 0); -x_180 = lean_ctor_get_uint8(x_147, 1); -x_181 = lean_ctor_get_uint8(x_147, 2); -x_182 = lean_ctor_get_uint8(x_147, 3); -x_183 = lean_ctor_get_uint8(x_147, 4); -x_184 = lean_ctor_get_uint8(x_147, 6); -x_185 = lean_ctor_get_uint8(x_147, 7); -x_186 = lean_ctor_get_uint8(x_147, 8); -x_187 = lean_ctor_get_uint8(x_147, 9); -x_188 = lean_ctor_get_uint8(x_147, 10); -x_189 = lean_ctor_get_uint8(x_147, 11); -x_190 = lean_ctor_get_uint8(x_147, 12); -lean_dec(x_147); -x_191 = 0; -x_192 = lean_alloc_ctor(0, 0, 13); -lean_ctor_set_uint8(x_192, 0, x_179); -lean_ctor_set_uint8(x_192, 1, x_180); -lean_ctor_set_uint8(x_192, 2, x_181); -lean_ctor_set_uint8(x_192, 3, x_182); -lean_ctor_set_uint8(x_192, 4, x_183); -lean_ctor_set_uint8(x_192, 5, x_191); -lean_ctor_set_uint8(x_192, 6, x_184); -lean_ctor_set_uint8(x_192, 7, x_185); -lean_ctor_set_uint8(x_192, 8, x_186); -lean_ctor_set_uint8(x_192, 9, x_187); -lean_ctor_set_uint8(x_192, 10, x_188); -lean_ctor_set_uint8(x_192, 11, x_189); -lean_ctor_set_uint8(x_192, 12, x_190); -x_193 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_150); -lean_ctor_set(x_193, 2, x_151); -lean_ctor_set(x_193, 3, x_152); -lean_ctor_set(x_193, 4, x_153); -lean_ctor_set(x_193, 5, x_154); -lean_ctor_set_uint8(x_193, sizeof(void*)*6, x_177); -lean_ctor_set_uint8(x_193, sizeof(void*)*6 + 1, x_178); -x_194 = lean_ctor_get(x_149, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_193); -x_196 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_195, x_1, x_193, x_7, x_8, x_9, x_94); -if (lean_obj_tag(x_196) == 0) -{ -lean_object* x_197; uint8_t x_198; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_unbox(x_197); -lean_dec(x_197); -if (x_198 == 0) -{ -lean_object* x_199; -lean_dec(x_194); -lean_dec(x_193); -lean_free_object(x_146); -lean_dec(x_149); -lean_dec(x_2); -x_199 = lean_ctor_get(x_196, 1); -lean_inc(x_199); -lean_dec(x_196); -x_99 = x_90; -x_100 = x_199; -goto block_145; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_196, 1); -lean_inc(x_200); -lean_dec(x_196); -x_201 = lean_ctor_get(x_194, 1); -lean_inc(x_201); -lean_dec(x_194); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_202 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_201, x_2, x_193, x_7, x_8, x_9, x_200); -if (lean_obj_tag(x_202) == 0) -{ -lean_object* x_203; uint8_t x_204; -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_unbox(x_203); -lean_dec(x_203); -if (x_204 == 0) -{ -lean_object* x_205; -lean_free_object(x_146); -lean_dec(x_149); -x_205 = lean_ctor_get(x_202, 1); -lean_inc(x_205); -lean_dec(x_202); -x_99 = x_90; -x_100 = x_205; -goto block_145; -} -else -{ -lean_object* x_206; -x_206 = lean_ctor_get(x_202, 1); -lean_inc(x_206); -lean_dec(x_202); -x_99 = x_146; -x_100 = x_206; -goto block_145; -} -} -else -{ -lean_object* x_207; lean_object* x_208; -lean_free_object(x_146); -lean_dec(x_149); +lean_object* x_177; lean_object* x_178; +lean_dec(x_162); +lean_dec(x_161); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_100); lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); +lean_dec(x_97); lean_dec(x_26); lean_dec(x_4); lean_dec(x_3); -x_207 = lean_ctor_get(x_202, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_202, 1); -lean_inc(x_208); -lean_dec(x_202); -x_29 = x_207; -x_30 = x_208; -goto block_38; +lean_dec(x_2); +x_177 = lean_ctor_get(x_164, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_164, 1); +lean_inc(x_178); +lean_dec(x_164); +x_29 = x_177; +x_30 = x_178; +goto block_40; } } +else +{ +uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; uint8_t x_192; uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_179 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_180 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_181 = lean_ctor_get_uint8(x_149, 0); +x_182 = lean_ctor_get_uint8(x_149, 1); +x_183 = lean_ctor_get_uint8(x_149, 2); +x_184 = lean_ctor_get_uint8(x_149, 3); +x_185 = lean_ctor_get_uint8(x_149, 4); +x_186 = lean_ctor_get_uint8(x_149, 6); +x_187 = lean_ctor_get_uint8(x_149, 7); +x_188 = lean_ctor_get_uint8(x_149, 8); +x_189 = lean_ctor_get_uint8(x_149, 9); +x_190 = lean_ctor_get_uint8(x_149, 10); +x_191 = lean_ctor_get_uint8(x_149, 11); +x_192 = lean_ctor_get_uint8(x_149, 12); +lean_dec(x_149); +x_193 = 0; +x_194 = lean_alloc_ctor(0, 0, 13); +lean_ctor_set_uint8(x_194, 0, x_181); +lean_ctor_set_uint8(x_194, 1, x_182); +lean_ctor_set_uint8(x_194, 2, x_183); +lean_ctor_set_uint8(x_194, 3, x_184); +lean_ctor_set_uint8(x_194, 4, x_185); +lean_ctor_set_uint8(x_194, 5, x_193); +lean_ctor_set_uint8(x_194, 6, x_186); +lean_ctor_set_uint8(x_194, 7, x_187); +lean_ctor_set_uint8(x_194, 8, x_188); +lean_ctor_set_uint8(x_194, 9, x_189); +lean_ctor_set_uint8(x_194, 10, x_190); +lean_ctor_set_uint8(x_194, 11, x_191); +lean_ctor_set_uint8(x_194, 12, x_192); +x_195 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_152); +lean_ctor_set(x_195, 2, x_153); +lean_ctor_set(x_195, 3, x_154); +lean_ctor_set(x_195, 4, x_155); +lean_ctor_set(x_195, 5, x_156); +lean_ctor_set_uint8(x_195, sizeof(void*)*6, x_179); +lean_ctor_set_uint8(x_195, sizeof(void*)*6 + 1, x_180); +x_196 = lean_ctor_get(x_151, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_195); +x_198 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_197, x_1, x_195, x_7, x_8, x_9, x_96); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; uint8_t x_200; +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_unbox(x_199); +lean_dec(x_199); +if (x_200 == 0) +{ +lean_object* x_201; +lean_dec(x_196); +lean_dec(x_195); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_2); +x_201 = lean_ctor_get(x_198, 1); +lean_inc(x_201); +lean_dec(x_198); +x_101 = x_92; +x_102 = x_201; +goto block_147; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_198, 1); +lean_inc(x_202); +lean_dec(x_198); +x_203 = lean_ctor_get(x_196, 1); +lean_inc(x_203); +lean_dec(x_196); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_204 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_203, x_2, x_195, x_7, x_8, x_9, x_202); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; uint8_t x_206; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_unbox(x_205); +lean_dec(x_205); +if (x_206 == 0) +{ +lean_object* x_207; +lean_free_object(x_148); +lean_dec(x_151); +x_207 = lean_ctor_get(x_204, 1); +lean_inc(x_207); +lean_dec(x_204); +x_101 = x_92; +x_102 = x_207; +goto block_147; +} +else +{ +lean_object* x_208; +x_208 = lean_ctor_get(x_204, 1); +lean_inc(x_208); +lean_dec(x_204); +x_101 = x_148; +x_102 = x_208; +goto block_147; +} } else { lean_object* x_209; lean_object* x_210; -lean_dec(x_194); -lean_dec(x_193); -lean_free_object(x_146); -lean_dec(x_149); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_100); lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); +lean_dec(x_97); +lean_dec(x_26); +lean_dec(x_4); +lean_dec(x_3); +x_209 = lean_ctor_get(x_204, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_204, 1); +lean_inc(x_210); +lean_dec(x_204); +x_29 = x_209; +x_30 = x_210; +goto block_40; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; +lean_dec(x_196); +lean_dec(x_195); +lean_free_object(x_148); +lean_dec(x_151); +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_97); lean_dec(x_26); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_209 = lean_ctor_get(x_196, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_196, 1); -lean_inc(x_210); -lean_dec(x_196); -x_29 = x_209; -x_30 = x_210; -goto block_38; +x_211 = lean_ctor_get(x_198, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_198, 1); +lean_inc(x_212); +lean_dec(x_198); +x_29 = x_211; +x_30 = x_212; +goto block_40; } } } 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; uint8_t x_217; uint8_t x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; uint8_t x_226; uint8_t x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_211 = lean_ctor_get(x_146, 0); -lean_inc(x_211); -lean_dec(x_146); -x_212 = lean_ctor_get(x_6, 1); -lean_inc(x_212); -x_213 = lean_ctor_get(x_6, 2); +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; uint8_t x_226; uint8_t x_227; uint8_t x_228; uint8_t x_229; uint8_t x_230; uint8_t x_231; uint8_t x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_213 = lean_ctor_get(x_148, 0); lean_inc(x_213); -x_214 = lean_ctor_get(x_6, 3); +lean_dec(x_148); +x_214 = lean_ctor_get(x_6, 1); lean_inc(x_214); -x_215 = lean_ctor_get(x_6, 4); +x_215 = lean_ctor_get(x_6, 2); lean_inc(x_215); -x_216 = lean_ctor_get(x_6, 5); +x_216 = lean_ctor_get(x_6, 3); lean_inc(x_216); -x_217 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_218 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_219 = lean_ctor_get_uint8(x_147, 0); -x_220 = lean_ctor_get_uint8(x_147, 1); -x_221 = lean_ctor_get_uint8(x_147, 2); -x_222 = lean_ctor_get_uint8(x_147, 3); -x_223 = lean_ctor_get_uint8(x_147, 4); -x_224 = lean_ctor_get_uint8(x_147, 6); -x_225 = lean_ctor_get_uint8(x_147, 7); -x_226 = lean_ctor_get_uint8(x_147, 8); -x_227 = lean_ctor_get_uint8(x_147, 9); -x_228 = lean_ctor_get_uint8(x_147, 10); -x_229 = lean_ctor_get_uint8(x_147, 11); -x_230 = lean_ctor_get_uint8(x_147, 12); -if (lean_is_exclusive(x_147)) { - x_231 = x_147; +x_217 = lean_ctor_get(x_6, 4); +lean_inc(x_217); +x_218 = lean_ctor_get(x_6, 5); +lean_inc(x_218); +x_219 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_220 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_221 = lean_ctor_get_uint8(x_149, 0); +x_222 = lean_ctor_get_uint8(x_149, 1); +x_223 = lean_ctor_get_uint8(x_149, 2); +x_224 = lean_ctor_get_uint8(x_149, 3); +x_225 = lean_ctor_get_uint8(x_149, 4); +x_226 = lean_ctor_get_uint8(x_149, 6); +x_227 = lean_ctor_get_uint8(x_149, 7); +x_228 = lean_ctor_get_uint8(x_149, 8); +x_229 = lean_ctor_get_uint8(x_149, 9); +x_230 = lean_ctor_get_uint8(x_149, 10); +x_231 = lean_ctor_get_uint8(x_149, 11); +x_232 = lean_ctor_get_uint8(x_149, 12); +if (lean_is_exclusive(x_149)) { + x_233 = x_149; } else { - lean_dec_ref(x_147); - x_231 = lean_box(0); + lean_dec_ref(x_149); + x_233 = lean_box(0); } -x_232 = 0; -if (lean_is_scalar(x_231)) { - x_233 = lean_alloc_ctor(0, 0, 13); +x_234 = 0; +if (lean_is_scalar(x_233)) { + x_235 = lean_alloc_ctor(0, 0, 13); } else { - x_233 = x_231; + x_235 = x_233; } -lean_ctor_set_uint8(x_233, 0, x_219); -lean_ctor_set_uint8(x_233, 1, x_220); -lean_ctor_set_uint8(x_233, 2, x_221); -lean_ctor_set_uint8(x_233, 3, x_222); -lean_ctor_set_uint8(x_233, 4, x_223); -lean_ctor_set_uint8(x_233, 5, x_232); -lean_ctor_set_uint8(x_233, 6, x_224); -lean_ctor_set_uint8(x_233, 7, x_225); -lean_ctor_set_uint8(x_233, 8, x_226); -lean_ctor_set_uint8(x_233, 9, x_227); -lean_ctor_set_uint8(x_233, 10, x_228); -lean_ctor_set_uint8(x_233, 11, x_229); -lean_ctor_set_uint8(x_233, 12, x_230); -x_234 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_212); -lean_ctor_set(x_234, 2, x_213); -lean_ctor_set(x_234, 3, x_214); -lean_ctor_set(x_234, 4, x_215); -lean_ctor_set(x_234, 5, x_216); -lean_ctor_set_uint8(x_234, sizeof(void*)*6, x_217); -lean_ctor_set_uint8(x_234, sizeof(void*)*6 + 1, x_218); -x_235 = lean_ctor_get(x_211, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_234); -x_237 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_236, x_1, x_234, x_7, x_8, x_9, x_94); -if (lean_obj_tag(x_237) == 0) -{ -lean_object* x_238; uint8_t x_239; +lean_ctor_set_uint8(x_235, 0, x_221); +lean_ctor_set_uint8(x_235, 1, x_222); +lean_ctor_set_uint8(x_235, 2, x_223); +lean_ctor_set_uint8(x_235, 3, x_224); +lean_ctor_set_uint8(x_235, 4, x_225); +lean_ctor_set_uint8(x_235, 5, x_234); +lean_ctor_set_uint8(x_235, 6, x_226); +lean_ctor_set_uint8(x_235, 7, x_227); +lean_ctor_set_uint8(x_235, 8, x_228); +lean_ctor_set_uint8(x_235, 9, x_229); +lean_ctor_set_uint8(x_235, 10, x_230); +lean_ctor_set_uint8(x_235, 11, x_231); +lean_ctor_set_uint8(x_235, 12, x_232); +x_236 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_214); +lean_ctor_set(x_236, 2, x_215); +lean_ctor_set(x_236, 3, x_216); +lean_ctor_set(x_236, 4, x_217); +lean_ctor_set(x_236, 5, x_218); +lean_ctor_set_uint8(x_236, sizeof(void*)*6, x_219); +lean_ctor_set_uint8(x_236, sizeof(void*)*6 + 1, x_220); +x_237 = lean_ctor_get(x_213, 0); +lean_inc(x_237); x_238 = lean_ctor_get(x_237, 0); lean_inc(x_238); -x_239 = lean_unbox(x_238); -lean_dec(x_238); -if (x_239 == 0) -{ -lean_object* x_240; -lean_dec(x_235); -lean_dec(x_234); -lean_dec(x_211); -lean_dec(x_2); -x_240 = lean_ctor_get(x_237, 1); -lean_inc(x_240); -lean_dec(x_237); -x_99 = x_90; -x_100 = x_240; -goto block_145; -} -else -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_237, 1); -lean_inc(x_241); -lean_dec(x_237); -x_242 = lean_ctor_get(x_235, 1); -lean_inc(x_242); -lean_dec(x_235); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_243 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_242, x_2, x_234, x_7, x_8, x_9, x_241); -if (lean_obj_tag(x_243) == 0) +lean_inc(x_236); +x_239 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_238, x_1, x_236, x_7, x_8, x_9, x_96); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_244; uint8_t x_245; -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) +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_unbox(x_240); +lean_dec(x_240); +if (x_241 == 0) { -lean_object* x_246; -lean_dec(x_211); -x_246 = lean_ctor_get(x_243, 1); -lean_inc(x_246); -lean_dec(x_243); -x_99 = x_90; -x_100 = x_246; -goto block_145; +lean_object* x_242; +lean_dec(x_237); +lean_dec(x_236); +lean_dec(x_213); +lean_dec(x_2); +x_242 = lean_ctor_get(x_239, 1); +lean_inc(x_242); +lean_dec(x_239); +x_101 = x_92; +x_102 = x_242; +goto block_147; } else { -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_243, 1); -lean_inc(x_247); -lean_dec(x_243); -x_248 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_248, 0, x_211); -x_99 = x_248; -x_100 = x_247; -goto block_145; -} +lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_243 = lean_ctor_get(x_239, 1); +lean_inc(x_243); +lean_dec(x_239); +x_244 = lean_ctor_get(x_237, 1); +lean_inc(x_244); +lean_dec(x_237); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_245 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_244, x_2, x_236, x_7, x_8, x_9, x_243); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; uint8_t x_247; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +x_247 = lean_unbox(x_246); +lean_dec(x_246); +if (x_247 == 0) +{ +lean_object* x_248; +lean_dec(x_213); +x_248 = lean_ctor_get(x_245, 1); +lean_inc(x_248); +lean_dec(x_245); +x_101 = x_92; +x_102 = x_248; +goto block_147; } else { lean_object* x_249; lean_object* x_250; -lean_dec(x_211); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); -lean_dec(x_26); -lean_dec(x_4); -lean_dec(x_3); -x_249 = lean_ctor_get(x_243, 0); +x_249 = lean_ctor_get(x_245, 1); lean_inc(x_249); -x_250 = lean_ctor_get(x_243, 1); -lean_inc(x_250); -lean_dec(x_243); -x_29 = x_249; -x_30 = x_250; -goto block_38; -} +lean_dec(x_245); +x_250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_250, 0, x_213); +x_101 = x_250; +x_102 = x_249; +goto block_147; } } else { lean_object* x_251; lean_object* x_252; -lean_dec(x_235); -lean_dec(x_234); -lean_dec(x_211); +lean_dec(x_213); +lean_dec(x_100); lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); +lean_dec(x_97); lean_dec(x_26); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_251 = lean_ctor_get(x_237, 0); +x_251 = lean_ctor_get(x_245, 0); lean_inc(x_251); -x_252 = lean_ctor_get(x_237, 1); +x_252 = lean_ctor_get(x_245, 1); lean_inc(x_252); -lean_dec(x_237); +lean_dec(x_245); x_29 = x_251; x_30 = x_252; -goto block_38; -} -} -} -block_145: -{ -if (lean_obj_tag(x_99) == 0) -{ -uint8_t x_101; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_95); -lean_dec(x_4); -lean_dec(x_3); -x_101 = 0; -x_39 = x_101; -x_40 = x_100; -goto block_78; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = lean_ctor_get(x_99, 0); -lean_inc(x_102); -lean_dec(x_99); -lean_inc(x_4); -x_103 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_100); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_unbox(x_104); -lean_dec(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_98); -lean_dec(x_4); -lean_dec(x_3); -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -lean_dec(x_103); -x_107 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_108 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_102, x_90, x_96, x_95, x_107, x_6, x_7, x_8, x_9, x_106); -if (lean_obj_tag(x_108) == 0) -{ -lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = lean_unbox(x_109); -lean_dec(x_109); -x_39 = x_111; -x_40 = x_110; -goto block_78; -} -else -{ -lean_object* x_112; lean_object* x_113; -lean_dec(x_26); -x_112 = lean_ctor_get(x_108, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_dec(x_108); -x_29 = x_112; -x_30 = x_113; -goto block_38; -} -} -else -{ -uint8_t x_114; -x_114 = !lean_is_exclusive(x_103); -if (x_114 == 0) -{ -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; -x_115 = lean_ctor_get(x_103, 1); -x_116 = lean_ctor_get(x_103, 0); -lean_dec(x_116); -x_117 = l_Lean_MessageData_ofName(x_3); -x_118 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; -lean_ctor_set_tag(x_103, 6); -lean_ctor_set(x_103, 1, x_117); -lean_ctor_set(x_103, 0, x_118); -x_119 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; -if (lean_is_scalar(x_98)) { - x_120 = lean_alloc_ctor(6, 2, 0); -} else { - x_120 = x_98; - lean_ctor_set_tag(x_120, 6); -} -lean_ctor_set(x_120, 0, x_103); -lean_ctor_set(x_120, 1, x_119); -x_121 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_120, x_6, x_7, x_8, x_9, x_115); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_124 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_102, x_90, x_96, x_95, x_122, x_6, x_7, x_8, x_9, x_123); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; uint8_t x_127; -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_unbox(x_125); -lean_dec(x_125); -x_39 = x_127; -x_40 = x_126; -goto block_78; -} -else -{ -lean_object* x_128; lean_object* x_129; -lean_dec(x_26); -x_128 = lean_ctor_get(x_124, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_124, 1); -lean_inc(x_129); -lean_dec(x_124); -x_29 = x_128; -x_30 = x_129; -goto block_38; -} -} -else -{ -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; -x_130 = lean_ctor_get(x_103, 1); -lean_inc(x_130); -lean_dec(x_103); -x_131 = l_Lean_MessageData_ofName(x_3); -x_132 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; -x_133 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -x_134 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; -if (lean_is_scalar(x_98)) { - x_135 = lean_alloc_ctor(6, 2, 0); -} else { - x_135 = x_98; - lean_ctor_set_tag(x_135, 6); -} -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_135, x_6, x_7, x_8, x_9, x_130); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_139 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_102, x_90, x_96, x_95, x_137, x_6, x_7, x_8, x_9, x_138); -if (lean_obj_tag(x_139) == 0) -{ -lean_object* x_140; lean_object* x_141; uint8_t x_142; -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); -x_142 = lean_unbox(x_140); -lean_dec(x_140); -x_39 = x_142; -x_40 = x_141; -goto block_78; -} -else -{ -lean_object* x_143; lean_object* x_144; -lean_dec(x_26); -x_143 = lean_ctor_get(x_139, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_139, 1); -lean_inc(x_144); -lean_dec(x_139); -x_29 = x_143; -x_30 = x_144; -goto block_38; -} -} -} +goto block_40; } } } else { lean_object* x_253; lean_object* x_254; +lean_dec(x_237); +lean_dec(x_236); +lean_dec(x_213); +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_97); lean_dec(x_26); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_253 = lean_ctor_get(x_87, 0); +x_253 = lean_ctor_get(x_239, 0); lean_inc(x_253); -x_254 = lean_ctor_get(x_87, 1); +x_254 = lean_ctor_get(x_239, 1); lean_inc(x_254); -lean_dec(x_87); +lean_dec(x_239); x_29 = x_253; x_30 = x_254; -goto block_38; +goto block_40; +} +} +} +block_147: +{ +if (lean_obj_tag(x_101) == 0) +{ +uint8_t x_103; +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_3); +x_103 = 0; +x_41 = x_103; +x_42 = x_102; +goto block_80; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_104 = lean_ctor_get(x_101, 0); +lean_inc(x_104); +lean_dec(x_101); +lean_inc(x_4); +x_105 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_102); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_unbox(x_106); +lean_dec(x_106); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_100); +lean_dec(x_4); +lean_dec(x_3); +x_108 = lean_ctor_get(x_105, 1); +lean_inc(x_108); +lean_dec(x_105); +x_109 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_110 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_104, x_92, x_98, x_97, x_109, x_6, x_7, x_8, x_9, x_108); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; uint8_t x_113; +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_unbox(x_111); +lean_dec(x_111); +x_41 = x_113; +x_42 = x_112; +goto block_80; +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_26); +x_114 = lean_ctor_get(x_110, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 1); +lean_inc(x_115); +lean_dec(x_110); +x_29 = x_114; +x_30 = x_115; +goto block_40; +} +} +else +{ +uint8_t x_116; +x_116 = !lean_is_exclusive(x_105); +if (x_116 == 0) +{ +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_117 = lean_ctor_get(x_105, 1); +x_118 = lean_ctor_get(x_105, 0); +lean_dec(x_118); +x_119 = l_Lean_MessageData_ofName(x_3); +x_120 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; +lean_ctor_set_tag(x_105, 6); +lean_ctor_set(x_105, 1, x_119); +lean_ctor_set(x_105, 0, x_120); +x_121 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; +if (lean_is_scalar(x_100)) { + x_122 = lean_alloc_ctor(6, 2, 0); +} else { + x_122 = x_100; + lean_ctor_set_tag(x_122, 6); +} +lean_ctor_set(x_122, 0, x_105); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_122, x_6, x_7, x_8, x_9, x_117); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_126 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_104, x_92, x_98, x_97, x_124, x_6, x_7, x_8, x_9, x_125); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_129 = lean_unbox(x_127); +lean_dec(x_127); +x_41 = x_129; +x_42 = x_128; +goto block_80; +} +else +{ +lean_object* x_130; lean_object* x_131; +lean_dec(x_26); +x_130 = lean_ctor_get(x_126, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +lean_dec(x_126); +x_29 = x_130; +x_30 = x_131; +goto block_40; +} +} +else +{ +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; +x_132 = lean_ctor_get(x_105, 1); +lean_inc(x_132); +lean_dec(x_105); +x_133 = l_Lean_MessageData_ofName(x_3); +x_134 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; +x_135 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +x_136 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; +if (lean_is_scalar(x_100)) { + x_137 = lean_alloc_ctor(6, 2, 0); +} else { + x_137 = x_100; + lean_ctor_set_tag(x_137, 6); +} +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_137, x_6, x_7, x_8, x_9, x_132); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_141 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_104, x_92, x_98, x_97, x_139, x_6, x_7, x_8, x_9, x_140); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_unbox(x_142); +lean_dec(x_142); +x_41 = x_144; +x_42 = x_143; +goto block_80; +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_26); +x_145 = lean_ctor_get(x_141, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_141, 1); +lean_inc(x_146); +lean_dec(x_141); +x_29 = x_145; +x_30 = x_146; +goto block_40; +} +} +} +} } } else @@ -7426,898 +7409,709 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_255 = lean_ctor_get(x_79, 0); +x_255 = lean_ctor_get(x_89, 0); lean_inc(x_255); -x_256 = lean_ctor_get(x_79, 1); +x_256 = lean_ctor_get(x_89, 1); lean_inc(x_256); -lean_dec(x_79); +lean_dec(x_89); x_29 = x_255; x_30 = x_256; -goto block_38; +goto block_40; } -block_38: +} +else +{ +lean_object* x_257; lean_object* x_258; +lean_dec(x_26); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_257 = lean_ctor_get(x_81, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_81, 1); +lean_inc(x_258); +lean_dec(x_81); +x_29 = x_257; +x_30 = x_258; +goto block_40; +} +block_40: { uint8_t x_31; -x_31 = l_Lean_Exception_isRuntime(x_29); +x_31 = l_Lean_Exception_isInterrupt(x_29); if (x_31 == 0) { -lean_object* x_32; uint8_t x_33; +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_dec(x_28); -x_32 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); +x_33 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_29); -return x_32; +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_29); +return x_33; } else { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_35); -return x_36; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } else { -lean_object* x_37; +lean_object* x_38; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); if (lean_is_scalar(x_28)) { - x_37 = lean_alloc_ctor(1, 2, 0); + x_38 = lean_alloc_ctor(1, 2, 0); } else { - x_37 = x_28; - lean_ctor_set_tag(x_37, 1); + x_38 = x_28; + lean_ctor_set_tag(x_38, 1); } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_30); +return x_38; } } -block_78: +else { -if (x_39 == 0) +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_28)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_28; + lean_ctor_set_tag(x_39, 1); +} +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_30); +return x_39; +} +} +block_80: { -lean_object* x_41; uint8_t x_42; +if (x_41 == 0) +{ +lean_object* x_43; uint8_t x_44; lean_dec(x_28); lean_dec(x_26); -x_41 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_40); +x_43 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_42); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -uint8_t x_50; lean_object* x_51; -x_50 = 0; +uint8_t x_52; lean_object* x_53; +x_52 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_51 = l_Lean_Meta_processPostponed(x_5, x_50, x_6, x_7, x_8, x_9, x_40); -if (lean_obj_tag(x_51) == 0) +x_53 = l_Lean_Meta_processPostponed(x_5, x_52, x_6, x_7, x_8, x_9, x_42); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_52; uint8_t x_53; +lean_object* x_54; uint8_t x_55; lean_dec(x_28); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_unbox(x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_26); -x_54 = lean_ctor_get(x_51, 1); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_51); -x_55 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_54); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_box(x_50); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_box(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_59); -return x_61; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_12); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec(x_51); -x_63 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_PersistentArray_append___rarg(x_26, x_64); -x_67 = l_Lean_Meta_setPostponed(x_66, x_6, x_7, x_8, x_9, x_65); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 1; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 1; -x_74 = lean_box(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_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_dec(x_26); -x_76 = lean_ctor_get(x_51, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_51, 1); -lean_inc(x_77); -lean_dec(x_51); -x_29 = x_76; -x_30 = x_77; -goto block_38; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_56); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = lean_box(x_52); +lean_ctor_set(x_57, 0, x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_box(x_52); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +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; uint8_t x_70; +lean_dec(x_12); +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_PersistentArray_append___rarg(x_26, x_66); +x_69 = l_Lean_Meta_setPostponed(x_68, x_6, x_7, x_8, x_9, x_67); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = 1; +x_73 = lean_box(x_72); +lean_ctor_set(x_69, 0, x_73); +return x_69; +} +else +{ +lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = 1; +x_76 = lean_box(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); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_26); +x_78 = lean_ctor_get(x_53, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_53, 1); +lean_inc(x_79); +lean_dec(x_53); +x_29 = x_78; +x_30 = x_79; +goto block_40; } } } } else { -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_280; lean_object* x_281; lean_object* x_312; -x_257 = lean_ctor_get(x_16, 0); -x_258 = lean_ctor_get(x_16, 1); -x_259 = lean_ctor_get(x_16, 2); -x_260 = lean_ctor_get(x_16, 3); -x_261 = lean_ctor_get(x_16, 4); -x_262 = lean_ctor_get(x_16, 6); +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_284; lean_object* x_285; lean_object* x_316; +x_259 = lean_ctor_get(x_16, 0); +x_260 = lean_ctor_get(x_16, 1); +x_261 = lean_ctor_get(x_16, 2); +x_262 = lean_ctor_get(x_16, 3); +x_263 = lean_ctor_get(x_16, 4); +x_264 = lean_ctor_get(x_16, 6); +lean_inc(x_264); +lean_inc(x_263); lean_inc(x_262); lean_inc(x_261); lean_inc(x_260); lean_inc(x_259); -lean_inc(x_258); -lean_inc(x_257); lean_dec(x_16); -x_263 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; -x_264 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_264, 0, x_257); -lean_ctor_set(x_264, 1, x_258); -lean_ctor_set(x_264, 2, x_259); -lean_ctor_set(x_264, 3, x_260); -lean_ctor_set(x_264, 4, x_261); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_262); -lean_ctor_set(x_15, 1, x_264); -x_265 = lean_st_ref_set(x_7, x_15, x_17); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -lean_dec(x_265); -x_267 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_266); -x_268 = lean_ctor_get(x_267, 0); +x_265 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; +x_266 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_266, 0, x_259); +lean_ctor_set(x_266, 1, x_260); +lean_ctor_set(x_266, 2, x_261); +lean_ctor_set(x_266, 3, x_262); +lean_ctor_set(x_266, 4, x_263); +lean_ctor_set(x_266, 5, x_265); +lean_ctor_set(x_266, 6, x_264); +lean_ctor_set(x_15, 1, x_266); +x_267 = lean_st_ref_set(x_7, x_15, x_17); +x_268 = lean_ctor_get(x_267, 1); lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_267)) { - lean_ctor_release(x_267, 0); - lean_ctor_release(x_267, 1); - x_270 = x_267; +lean_dec(x_267); +x_269 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_268); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_272 = x_269; } else { - lean_dec_ref(x_267); - x_270 = lean_box(0); + lean_dec_ref(x_269); + x_272 = lean_box(0); } lean_inc(x_3); -x_312 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_269); -if (lean_obj_tag(x_312) == 0) +x_316 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_271); +if (lean_obj_tag(x_316) == 0) { -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_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -lean_dec(x_312); -x_315 = l_Lean_ConstantInfo_levelParams(x_313); -x_316 = lean_box(0); -x_317 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_315, x_316, x_6, x_7, x_8, x_9, x_314); -x_318 = lean_ctor_get(x_317, 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; lean_object* x_323; lean_object* x_324; +x_317 = lean_ctor_get(x_316, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_316, 1); lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); +lean_dec(x_316); +x_319 = l_Lean_ConstantInfo_levelParams(x_317); +x_320 = lean_box(0); +x_321 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_319, x_320, x_6, x_7, x_8, x_9, x_318); +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); +lean_inc(x_323); +lean_dec(x_321); lean_inc(x_9); lean_inc(x_8); -x_320 = l_Lean_Core_instantiateValueLevelParams(x_313, x_318, x_8, x_9, x_319); -lean_dec(x_313); -if (lean_obj_tag(x_320) == 0) +x_324 = l_Lean_Core_instantiateValueLevelParams(x_317, x_322, x_8, x_9, x_323); +lean_dec(x_317); +if (lean_obj_tag(x_324) == 0) { -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_364; -x_321 = lean_ctor_get(x_320, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_320, 1); -lean_inc(x_322); -lean_dec(x_320); -x_323 = lean_box(0); -lean_inc(x_6); -x_324 = l_Lean_Meta_lambdaMetaTelescope(x_321, x_323, x_6, x_7, x_8, x_9, x_322); -lean_dec(x_321); +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_368; x_325 = lean_ctor_get(x_324, 0); lean_inc(x_325); -x_326 = lean_ctor_get(x_325, 1); +x_326 = lean_ctor_get(x_324, 1); lean_inc(x_326); -x_327 = lean_ctor_get(x_324, 1); -lean_inc(x_327); lean_dec(x_324); -x_328 = lean_ctor_get(x_325, 0); -lean_inc(x_328); +x_327 = lean_box(0); +lean_inc(x_6); +x_328 = l_Lean_Meta_lambdaMetaTelescope(x_325, x_327, x_6, x_7, x_8, x_9, x_326); lean_dec(x_325); -x_329 = lean_ctor_get(x_326, 0); +x_329 = lean_ctor_get(x_328, 0); lean_inc(x_329); -x_330 = lean_ctor_get(x_326, 1); +x_330 = lean_ctor_get(x_329, 1); lean_inc(x_330); -if (lean_is_exclusive(x_326)) { - lean_ctor_release(x_326, 0); - lean_ctor_release(x_326, 1); - x_331 = x_326; +x_331 = lean_ctor_get(x_328, 1); +lean_inc(x_331); +lean_dec(x_328); +x_332 = lean_ctor_get(x_329, 0); +lean_inc(x_332); +lean_dec(x_329); +x_333 = lean_ctor_get(x_330, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_330, 1); +lean_inc(x_334); +if (lean_is_exclusive(x_330)) { + lean_ctor_release(x_330, 0); + lean_ctor_release(x_330, 1); + x_335 = x_330; } else { - lean_dec_ref(x_326); - x_331 = lean_box(0); + lean_dec_ref(x_330); + x_335 = lean_box(0); } -x_364 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_330); -if (lean_obj_tag(x_364) == 0) +x_368 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_334); +if (lean_obj_tag(x_368) == 0) { -lean_dec(x_364); +lean_dec(x_368); lean_dec(x_2); lean_dec(x_1); -x_332 = x_323; -x_333 = x_327; -goto block_363; +x_336 = x_327; +x_337 = x_331; +goto block_367; } else { -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; uint8_t x_373; uint8_t x_374; uint8_t x_375; uint8_t x_376; uint8_t x_377; uint8_t x_378; uint8_t x_379; uint8_t x_380; uint8_t x_381; uint8_t x_382; uint8_t x_383; uint8_t x_384; uint8_t x_385; uint8_t x_386; lean_object* x_387; uint8_t x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_365 = lean_ctor_get(x_6, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 0); -lean_inc(x_366); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - x_367 = x_364; -} else { - lean_dec_ref(x_364); - x_367 = lean_box(0); -} -x_368 = lean_ctor_get(x_6, 1); -lean_inc(x_368); -x_369 = lean_ctor_get(x_6, 2); +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; uint8_t x_378; uint8_t x_379; uint8_t x_380; uint8_t x_381; uint8_t x_382; uint8_t x_383; uint8_t x_384; uint8_t x_385; uint8_t x_386; uint8_t x_387; uint8_t x_388; uint8_t x_389; uint8_t x_390; lean_object* x_391; uint8_t x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_369 = lean_ctor_get(x_6, 0); lean_inc(x_369); -x_370 = lean_ctor_get(x_6, 3); +x_370 = lean_ctor_get(x_368, 0); lean_inc(x_370); -x_371 = lean_ctor_get(x_6, 4); -lean_inc(x_371); -x_372 = lean_ctor_get(x_6, 5); +if (lean_is_exclusive(x_368)) { + lean_ctor_release(x_368, 0); + x_371 = x_368; +} else { + lean_dec_ref(x_368); + x_371 = lean_box(0); +} +x_372 = lean_ctor_get(x_6, 1); lean_inc(x_372); -x_373 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_374 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_375 = lean_ctor_get_uint8(x_365, 0); -x_376 = lean_ctor_get_uint8(x_365, 1); -x_377 = lean_ctor_get_uint8(x_365, 2); -x_378 = lean_ctor_get_uint8(x_365, 3); -x_379 = lean_ctor_get_uint8(x_365, 4); -x_380 = lean_ctor_get_uint8(x_365, 6); -x_381 = lean_ctor_get_uint8(x_365, 7); -x_382 = lean_ctor_get_uint8(x_365, 8); -x_383 = lean_ctor_get_uint8(x_365, 9); -x_384 = lean_ctor_get_uint8(x_365, 10); -x_385 = lean_ctor_get_uint8(x_365, 11); -x_386 = lean_ctor_get_uint8(x_365, 12); -if (lean_is_exclusive(x_365)) { - x_387 = x_365; +x_373 = lean_ctor_get(x_6, 2); +lean_inc(x_373); +x_374 = lean_ctor_get(x_6, 3); +lean_inc(x_374); +x_375 = lean_ctor_get(x_6, 4); +lean_inc(x_375); +x_376 = lean_ctor_get(x_6, 5); +lean_inc(x_376); +x_377 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_378 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_379 = lean_ctor_get_uint8(x_369, 0); +x_380 = lean_ctor_get_uint8(x_369, 1); +x_381 = lean_ctor_get_uint8(x_369, 2); +x_382 = lean_ctor_get_uint8(x_369, 3); +x_383 = lean_ctor_get_uint8(x_369, 4); +x_384 = lean_ctor_get_uint8(x_369, 6); +x_385 = lean_ctor_get_uint8(x_369, 7); +x_386 = lean_ctor_get_uint8(x_369, 8); +x_387 = lean_ctor_get_uint8(x_369, 9); +x_388 = lean_ctor_get_uint8(x_369, 10); +x_389 = lean_ctor_get_uint8(x_369, 11); +x_390 = lean_ctor_get_uint8(x_369, 12); +if (lean_is_exclusive(x_369)) { + x_391 = x_369; } else { - lean_dec_ref(x_365); - x_387 = lean_box(0); + lean_dec_ref(x_369); + x_391 = lean_box(0); } -x_388 = 0; -if (lean_is_scalar(x_387)) { - x_389 = lean_alloc_ctor(0, 0, 13); +x_392 = 0; +if (lean_is_scalar(x_391)) { + x_393 = lean_alloc_ctor(0, 0, 13); } else { - x_389 = x_387; + x_393 = x_391; } -lean_ctor_set_uint8(x_389, 0, x_375); -lean_ctor_set_uint8(x_389, 1, x_376); -lean_ctor_set_uint8(x_389, 2, x_377); -lean_ctor_set_uint8(x_389, 3, x_378); -lean_ctor_set_uint8(x_389, 4, x_379); -lean_ctor_set_uint8(x_389, 5, x_388); -lean_ctor_set_uint8(x_389, 6, x_380); -lean_ctor_set_uint8(x_389, 7, x_381); -lean_ctor_set_uint8(x_389, 8, x_382); -lean_ctor_set_uint8(x_389, 9, x_383); -lean_ctor_set_uint8(x_389, 10, x_384); -lean_ctor_set_uint8(x_389, 11, x_385); -lean_ctor_set_uint8(x_389, 12, x_386); -x_390 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_390, 0, x_389); -lean_ctor_set(x_390, 1, x_368); -lean_ctor_set(x_390, 2, x_369); -lean_ctor_set(x_390, 3, x_370); -lean_ctor_set(x_390, 4, x_371); -lean_ctor_set(x_390, 5, x_372); -lean_ctor_set_uint8(x_390, sizeof(void*)*6, x_373); -lean_ctor_set_uint8(x_390, sizeof(void*)*6 + 1, x_374); -x_391 = lean_ctor_get(x_366, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_391, 0); -lean_inc(x_392); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_390); -x_393 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_392, x_1, x_390, x_7, x_8, x_9, x_327); -if (lean_obj_tag(x_393) == 0) -{ -lean_object* x_394; uint8_t x_395; -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_unbox(x_394); -lean_dec(x_394); -if (x_395 == 0) -{ -lean_object* x_396; -lean_dec(x_391); -lean_dec(x_390); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_2); -x_396 = lean_ctor_get(x_393, 1); +lean_ctor_set_uint8(x_393, 0, x_379); +lean_ctor_set_uint8(x_393, 1, x_380); +lean_ctor_set_uint8(x_393, 2, x_381); +lean_ctor_set_uint8(x_393, 3, x_382); +lean_ctor_set_uint8(x_393, 4, x_383); +lean_ctor_set_uint8(x_393, 5, x_392); +lean_ctor_set_uint8(x_393, 6, x_384); +lean_ctor_set_uint8(x_393, 7, x_385); +lean_ctor_set_uint8(x_393, 8, x_386); +lean_ctor_set_uint8(x_393, 9, x_387); +lean_ctor_set_uint8(x_393, 10, x_388); +lean_ctor_set_uint8(x_393, 11, x_389); +lean_ctor_set_uint8(x_393, 12, x_390); +x_394 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_394, 0, x_393); +lean_ctor_set(x_394, 1, x_372); +lean_ctor_set(x_394, 2, x_373); +lean_ctor_set(x_394, 3, x_374); +lean_ctor_set(x_394, 4, x_375); +lean_ctor_set(x_394, 5, x_376); +lean_ctor_set_uint8(x_394, sizeof(void*)*6, x_377); +lean_ctor_set_uint8(x_394, sizeof(void*)*6 + 1, x_378); +x_395 = lean_ctor_get(x_370, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_395, 0); lean_inc(x_396); -lean_dec(x_393); -x_332 = x_323; -x_333 = x_396; -goto block_363; -} -else -{ -lean_object* x_397; lean_object* x_398; lean_object* x_399; -x_397 = lean_ctor_get(x_393, 1); -lean_inc(x_397); -lean_dec(x_393); -x_398 = lean_ctor_get(x_391, 1); -lean_inc(x_398); -lean_dec(x_391); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_399 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_398, x_2, x_390, x_7, x_8, x_9, x_397); -if (lean_obj_tag(x_399) == 0) +lean_inc(x_394); +x_397 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_396, x_1, x_394, x_7, x_8, x_9, x_331); +if (lean_obj_tag(x_397) == 0) { -lean_object* x_400; uint8_t x_401; -x_400 = lean_ctor_get(x_399, 0); +lean_object* x_398; uint8_t x_399; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_unbox(x_398); +lean_dec(x_398); +if (x_399 == 0) +{ +lean_object* x_400; +lean_dec(x_395); +lean_dec(x_394); +lean_dec(x_371); +lean_dec(x_370); +lean_dec(x_2); +x_400 = lean_ctor_get(x_397, 1); lean_inc(x_400); -x_401 = lean_unbox(x_400); -lean_dec(x_400); -if (x_401 == 0) +lean_dec(x_397); +x_336 = x_327; +x_337 = x_400; +goto block_367; +} +else { -lean_object* x_402; -lean_dec(x_367); -lean_dec(x_366); -x_402 = lean_ctor_get(x_399, 1); +lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_401 = lean_ctor_get(x_397, 1); +lean_inc(x_401); +lean_dec(x_397); +x_402 = lean_ctor_get(x_395, 1); lean_inc(x_402); -lean_dec(x_399); -x_332 = x_323; -x_333 = x_402; -goto block_363; -} -else +lean_dec(x_395); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_403 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_402, x_2, x_394, x_7, x_8, x_9, x_401); +if (lean_obj_tag(x_403) == 0) { -lean_object* x_403; lean_object* x_404; -x_403 = lean_ctor_get(x_399, 1); -lean_inc(x_403); -lean_dec(x_399); -if (lean_is_scalar(x_367)) { - x_404 = lean_alloc_ctor(1, 1, 0); -} else { - x_404 = x_367; -} -lean_ctor_set(x_404, 0, x_366); -x_332 = x_404; -x_333 = x_403; -goto block_363; -} -} -else +lean_object* x_404; uint8_t x_405; +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +x_405 = lean_unbox(x_404); +lean_dec(x_404); +if (x_405 == 0) { -lean_object* x_405; lean_object* x_406; -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_331); -lean_dec(x_329); -lean_dec(x_328); -lean_dec(x_268); -lean_dec(x_4); -lean_dec(x_3); -x_405 = lean_ctor_get(x_399, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_399, 1); +lean_object* x_406; +lean_dec(x_371); +lean_dec(x_370); +x_406 = lean_ctor_get(x_403, 1); lean_inc(x_406); -lean_dec(x_399); -x_271 = x_405; -x_272 = x_406; -goto block_279; -} -} +lean_dec(x_403); +x_336 = x_327; +x_337 = x_406; +goto block_367; } else { lean_object* x_407; lean_object* x_408; -lean_dec(x_391); -lean_dec(x_390); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_331); -lean_dec(x_329); -lean_dec(x_328); -lean_dec(x_268); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_407 = lean_ctor_get(x_393, 0); +x_407 = lean_ctor_get(x_403, 1); lean_inc(x_407); -x_408 = lean_ctor_get(x_393, 1); -lean_inc(x_408); -lean_dec(x_393); -x_271 = x_407; -x_272 = x_408; -goto block_279; -} -} -block_363: -{ -if (lean_obj_tag(x_332) == 0) -{ -uint8_t x_334; -lean_dec(x_331); -lean_dec(x_329); -lean_dec(x_328); -lean_dec(x_4); -lean_dec(x_3); -x_334 = 0; -x_280 = x_334; -x_281 = x_333; -goto block_311; -} -else -{ -lean_object* x_335; lean_object* x_336; lean_object* x_337; uint8_t x_338; -x_335 = lean_ctor_get(x_332, 0); -lean_inc(x_335); -lean_dec(x_332); -lean_inc(x_4); -x_336 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_333); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_unbox(x_337); -lean_dec(x_337); -if (x_338 == 0) -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; -lean_dec(x_331); -lean_dec(x_4); -lean_dec(x_3); -x_339 = lean_ctor_get(x_336, 1); -lean_inc(x_339); -lean_dec(x_336); -x_340 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_341 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_335, x_323, x_329, x_328, x_340, x_6, x_7, x_8, x_9, x_339); -if (lean_obj_tag(x_341) == 0) -{ -lean_object* x_342; lean_object* x_343; uint8_t x_344; -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_unbox(x_342); -lean_dec(x_342); -x_280 = x_344; -x_281 = x_343; -goto block_311; -} -else -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_268); -x_345 = lean_ctor_get(x_341, 0); -lean_inc(x_345); -x_346 = lean_ctor_get(x_341, 1); -lean_inc(x_346); -lean_dec(x_341); -x_271 = x_345; -x_272 = x_346; -goto block_279; -} -} -else -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; -x_347 = lean_ctor_get(x_336, 1); -lean_inc(x_347); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_348 = x_336; +lean_dec(x_403); +if (lean_is_scalar(x_371)) { + x_408 = lean_alloc_ctor(1, 1, 0); } else { - lean_dec_ref(x_336); - x_348 = lean_box(0); -} -x_349 = l_Lean_MessageData_ofName(x_3); -x_350 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; -if (lean_is_scalar(x_348)) { - x_351 = lean_alloc_ctor(6, 2, 0); -} else { - x_351 = x_348; - lean_ctor_set_tag(x_351, 6); -} -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_349); -x_352 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; -if (lean_is_scalar(x_331)) { - x_353 = lean_alloc_ctor(6, 2, 0); -} else { - x_353 = x_331; - lean_ctor_set_tag(x_353, 6); -} -lean_ctor_set(x_353, 0, x_351); -lean_ctor_set(x_353, 1, x_352); -x_354 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_353, x_6, x_7, x_8, x_9, x_347); -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); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_357 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_335, x_323, x_329, x_328, x_355, x_6, x_7, x_8, x_9, x_356); -if (lean_obj_tag(x_357) == 0) -{ -lean_object* x_358; lean_object* x_359; uint8_t x_360; -x_358 = lean_ctor_get(x_357, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_357, 1); -lean_inc(x_359); -lean_dec(x_357); -x_360 = lean_unbox(x_358); -lean_dec(x_358); -x_280 = x_360; -x_281 = x_359; -goto block_311; -} -else -{ -lean_object* x_361; lean_object* x_362; -lean_dec(x_268); -x_361 = lean_ctor_get(x_357, 0); -lean_inc(x_361); -x_362 = lean_ctor_get(x_357, 1); -lean_inc(x_362); -lean_dec(x_357); -x_271 = x_361; -x_272 = x_362; -goto block_279; -} -} + x_408 = x_371; } +lean_ctor_set(x_408, 0, x_370); +x_336 = x_408; +x_337 = x_407; +goto block_367; } } else { lean_object* x_409; lean_object* x_410; -lean_dec(x_268); +lean_dec(x_371); +lean_dec(x_370); +lean_dec(x_335); +lean_dec(x_333); +lean_dec(x_332); +lean_dec(x_270); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_409 = lean_ctor_get(x_320, 0); +x_409 = lean_ctor_get(x_403, 0); lean_inc(x_409); -x_410 = lean_ctor_get(x_320, 1); +x_410 = lean_ctor_get(x_403, 1); lean_inc(x_410); -lean_dec(x_320); -x_271 = x_409; -x_272 = x_410; -goto block_279; +lean_dec(x_403); +x_273 = x_409; +x_274 = x_410; +goto block_283; +} } } else { lean_object* x_411; lean_object* x_412; -lean_dec(x_268); +lean_dec(x_395); +lean_dec(x_394); +lean_dec(x_371); +lean_dec(x_370); +lean_dec(x_335); +lean_dec(x_333); +lean_dec(x_332); +lean_dec(x_270); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_411 = lean_ctor_get(x_312, 0); +x_411 = lean_ctor_get(x_397, 0); lean_inc(x_411); -x_412 = lean_ctor_get(x_312, 1); +x_412 = lean_ctor_get(x_397, 1); lean_inc(x_412); -lean_dec(x_312); -x_271 = x_411; -x_272 = x_412; -goto block_279; +lean_dec(x_397); +x_273 = x_411; +x_274 = x_412; +goto block_283; } -block_279: +} +block_367: { -uint8_t x_273; -x_273 = l_Lean_Exception_isRuntime(x_271); -if (x_273 == 0) +if (lean_obj_tag(x_336) == 0) { -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_270); -x_274 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_272); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_275 = lean_ctor_get(x_274, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_274)) { - lean_ctor_release(x_274, 0); - lean_ctor_release(x_274, 1); - x_276 = x_274; -} else { - lean_dec_ref(x_274); - x_276 = lean_box(0); -} -if (lean_is_scalar(x_276)) { - x_277 = lean_alloc_ctor(1, 2, 0); -} else { - x_277 = x_276; - lean_ctor_set_tag(x_277, 1); -} -lean_ctor_set(x_277, 0, x_271); -lean_ctor_set(x_277, 1, x_275); -return x_277; +uint8_t x_338; +lean_dec(x_335); +lean_dec(x_333); +lean_dec(x_332); +lean_dec(x_4); +lean_dec(x_3); +x_338 = 0; +x_284 = x_338; +x_285 = x_337; +goto block_315; } else { -lean_object* x_278; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_270)) { - x_278 = lean_alloc_ctor(1, 2, 0); -} else { - x_278 = x_270; - lean_ctor_set_tag(x_278, 1); -} -lean_ctor_set(x_278, 0, x_271); -lean_ctor_set(x_278, 1, x_272); -return x_278; -} -} -block_311: +lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; +x_339 = lean_ctor_get(x_336, 0); +lean_inc(x_339); +lean_dec(x_336); +lean_inc(x_4); +x_340 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_337); +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +x_342 = lean_unbox(x_341); +lean_dec(x_341); +if (x_342 == 0) { -if (x_280 == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; lean_object* x_287; -lean_dec(x_270); -lean_dec(x_268); -x_282 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_281); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_283 = lean_ctor_get(x_282, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_284 = x_282; -} else { - lean_dec_ref(x_282); - x_284 = lean_box(0); -} -x_285 = 0; -x_286 = lean_box(x_285); -if (lean_is_scalar(x_284)) { - x_287 = lean_alloc_ctor(0, 2, 0); -} else { - x_287 = x_284; -} -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_283); -return x_287; -} -else -{ -uint8_t x_288; lean_object* x_289; -x_288 = 0; +lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_dec(x_335); +lean_dec(x_4); +lean_dec(x_3); +x_343 = lean_ctor_get(x_340, 1); +lean_inc(x_343); +lean_dec(x_340); +x_344 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_289 = l_Lean_Meta_processPostponed(x_5, x_288, x_6, x_7, x_8, x_9, x_281); -if (lean_obj_tag(x_289) == 0) +x_345 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_339, x_327, x_333, x_332, x_344, x_6, x_7, x_8, x_9, x_343); +if (lean_obj_tag(x_345) == 0) { -lean_object* x_290; uint8_t x_291; +lean_object* x_346; lean_object* x_347; uint8_t x_348; +x_346 = lean_ctor_get(x_345, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_345, 1); +lean_inc(x_347); +lean_dec(x_345); +x_348 = lean_unbox(x_346); +lean_dec(x_346); +x_284 = x_348; +x_285 = x_347; +goto block_315; +} +else +{ +lean_object* x_349; lean_object* x_350; lean_dec(x_270); -x_290 = lean_ctor_get(x_289, 0); -lean_inc(x_290); -x_291 = lean_unbox(x_290); -lean_dec(x_290); -if (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; -lean_dec(x_268); -x_292 = lean_ctor_get(x_289, 1); -lean_inc(x_292); -lean_dec(x_289); -x_293 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_292); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_294 = lean_ctor_get(x_293, 1); -lean_inc(x_294); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_295 = x_293; -} else { - lean_dec_ref(x_293); - x_295 = lean_box(0); -} -x_296 = lean_box(x_288); -if (lean_is_scalar(x_295)) { - x_297 = lean_alloc_ctor(0, 2, 0); -} else { - x_297 = x_295; -} -lean_ctor_set(x_297, 0, x_296); -lean_ctor_set(x_297, 1, x_294); -return x_297; -} -else -{ -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; uint8_t x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_12); -x_298 = lean_ctor_get(x_289, 1); -lean_inc(x_298); -lean_dec(x_289); -x_299 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_298); -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 = l_Lean_PersistentArray_append___rarg(x_268, x_300); -x_303 = l_Lean_Meta_setPostponed(x_302, x_6, x_7, x_8, x_9, x_301); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_304 = lean_ctor_get(x_303, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_303)) { - lean_ctor_release(x_303, 0); - lean_ctor_release(x_303, 1); - x_305 = x_303; -} else { - lean_dec_ref(x_303); - x_305 = lean_box(0); -} -x_306 = 1; -x_307 = lean_box(x_306); -if (lean_is_scalar(x_305)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_305; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_304); -return x_308; +x_349 = lean_ctor_get(x_345, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_345, 1); +lean_inc(x_350); +lean_dec(x_345); +x_273 = x_349; +x_274 = x_350; +goto block_283; } } else { -lean_object* x_309; lean_object* x_310; -lean_dec(x_268); -x_309 = lean_ctor_get(x_289, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_289, 1); -lean_inc(x_310); -lean_dec(x_289); -x_271 = x_309; -x_272 = x_310; -goto block_279; +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; lean_object* x_360; lean_object* x_361; +x_351 = lean_ctor_get(x_340, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + x_352 = x_340; +} else { + lean_dec_ref(x_340); + x_352 = lean_box(0); +} +x_353 = l_Lean_MessageData_ofName(x_3); +x_354 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; +if (lean_is_scalar(x_352)) { + x_355 = lean_alloc_ctor(6, 2, 0); +} else { + x_355 = x_352; + lean_ctor_set_tag(x_355, 6); +} +lean_ctor_set(x_355, 0, x_354); +lean_ctor_set(x_355, 1, x_353); +x_356 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; +if (lean_is_scalar(x_335)) { + x_357 = lean_alloc_ctor(6, 2, 0); +} else { + x_357 = x_335; + lean_ctor_set_tag(x_357, 6); +} +lean_ctor_set(x_357, 0, x_355); +lean_ctor_set(x_357, 1, x_356); +x_358 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_357, x_6, x_7, x_8, x_9, x_351); +x_359 = lean_ctor_get(x_358, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_358, 1); +lean_inc(x_360); +lean_dec(x_358); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_361 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_339, x_327, x_333, x_332, x_359, x_6, x_7, x_8, x_9, x_360); +if (lean_obj_tag(x_361) == 0) +{ +lean_object* x_362; lean_object* x_363; uint8_t x_364; +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +lean_dec(x_361); +x_364 = lean_unbox(x_362); +lean_dec(x_362); +x_284 = x_364; +x_285 = x_363; +goto block_315; +} +else +{ +lean_object* x_365; lean_object* x_366; +lean_dec(x_270); +x_365 = lean_ctor_get(x_361, 0); +lean_inc(x_365); +x_366 = lean_ctor_get(x_361, 1); +lean_inc(x_366); +lean_dec(x_361); +x_273 = x_365; +x_274 = x_366; +goto block_283; } } } @@ -8325,28 +8119,281 @@ goto block_279; } else { -lean_object* x_413; lean_object* 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_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* 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; uint8_t x_442; lean_object* x_443; lean_object* x_474; -x_413 = lean_ctor_get(x_15, 0); -x_414 = lean_ctor_get(x_15, 2); -x_415 = lean_ctor_get(x_15, 3); -x_416 = lean_ctor_get(x_15, 4); -lean_inc(x_416); -lean_inc(x_415); -lean_inc(x_414); +lean_object* x_413; lean_object* x_414; +lean_dec(x_270); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_413 = lean_ctor_get(x_324, 0); lean_inc(x_413); -lean_dec(x_15); -x_417 = lean_ctor_get(x_16, 0); -lean_inc(x_417); -x_418 = lean_ctor_get(x_16, 1); -lean_inc(x_418); -x_419 = lean_ctor_get(x_16, 2); -lean_inc(x_419); -x_420 = lean_ctor_get(x_16, 3); +x_414 = lean_ctor_get(x_324, 1); +lean_inc(x_414); +lean_dec(x_324); +x_273 = x_413; +x_274 = x_414; +goto block_283; +} +} +else +{ +lean_object* x_415; lean_object* x_416; +lean_dec(x_270); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_415 = lean_ctor_get(x_316, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_316, 1); +lean_inc(x_416); +lean_dec(x_316); +x_273 = x_415; +x_274 = x_416; +goto block_283; +} +block_283: +{ +uint8_t x_275; +x_275 = l_Lean_Exception_isInterrupt(x_273); +if (x_275 == 0) +{ +uint8_t x_276; +x_276 = l_Lean_Exception_isRuntime(x_273); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_272); +x_277 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_274); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_278 = lean_ctor_get(x_277, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_279 = x_277; +} else { + lean_dec_ref(x_277); + 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_tag(x_280, 1); +} +lean_ctor_set(x_280, 0, x_273); +lean_ctor_set(x_280, 1, x_278); +return x_280; +} +else +{ +lean_object* x_281; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_272)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_272; + lean_ctor_set_tag(x_281, 1); +} +lean_ctor_set(x_281, 0, x_273); +lean_ctor_set(x_281, 1, x_274); +return x_281; +} +} +else +{ +lean_object* x_282; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_272)) { + x_282 = lean_alloc_ctor(1, 2, 0); +} else { + x_282 = x_272; + lean_ctor_set_tag(x_282, 1); +} +lean_ctor_set(x_282, 0, x_273); +lean_ctor_set(x_282, 1, x_274); +return x_282; +} +} +block_315: +{ +if (x_284 == 0) +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_272); +lean_dec(x_270); +x_286 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_285); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_287 = lean_ctor_get(x_286, 1); +lean_inc(x_287); +if (lean_is_exclusive(x_286)) { + lean_ctor_release(x_286, 0); + lean_ctor_release(x_286, 1); + x_288 = x_286; +} else { + lean_dec_ref(x_286); + x_288 = lean_box(0); +} +x_289 = 0; +x_290 = lean_box(x_289); +if (lean_is_scalar(x_288)) { + x_291 = lean_alloc_ctor(0, 2, 0); +} else { + x_291 = x_288; +} +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_287); +return x_291; +} +else +{ +uint8_t x_292; lean_object* x_293; +x_292 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_293 = l_Lean_Meta_processPostponed(x_5, x_292, x_6, x_7, x_8, x_9, x_285); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; uint8_t x_295; +lean_dec(x_272); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_unbox(x_294); +lean_dec(x_294); +if (x_295 == 0) +{ +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_270); +x_296 = lean_ctor_get(x_293, 1); +lean_inc(x_296); +lean_dec(x_293); +x_297 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_296); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +x_298 = lean_ctor_get(x_297, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_297)) { + lean_ctor_release(x_297, 0); + lean_ctor_release(x_297, 1); + x_299 = x_297; +} else { + lean_dec_ref(x_297); + x_299 = lean_box(0); +} +x_300 = lean_box(x_292); +if (lean_is_scalar(x_299)) { + x_301 = lean_alloc_ctor(0, 2, 0); +} else { + x_301 = x_299; +} +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_298); +return x_301; +} +else +{ +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; uint8_t x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_12); +x_302 = lean_ctor_get(x_293, 1); +lean_inc(x_302); +lean_dec(x_293); +x_303 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_302); +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = l_Lean_PersistentArray_append___rarg(x_270, x_304); +x_307 = l_Lean_Meta_setPostponed(x_306, x_6, x_7, x_8, x_9, x_305); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_308 = lean_ctor_get(x_307, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_309 = x_307; +} else { + lean_dec_ref(x_307); + x_309 = lean_box(0); +} +x_310 = 1; +x_311 = lean_box(x_310); +if (lean_is_scalar(x_309)) { + x_312 = lean_alloc_ctor(0, 2, 0); +} else { + x_312 = x_309; +} +lean_ctor_set(x_312, 0, x_311); +lean_ctor_set(x_312, 1, x_308); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; +lean_dec(x_270); +x_313 = lean_ctor_get(x_293, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_293, 1); +lean_inc(x_314); +lean_dec(x_293); +x_273 = x_313; +x_274 = x_314; +goto block_283; +} +} +} +} +} +else +{ +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* 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; lean_object* x_437; lean_object* x_438; uint8_t x_448; lean_object* x_449; lean_object* x_480; +x_417 = lean_ctor_get(x_15, 0); +x_418 = lean_ctor_get(x_15, 2); +x_419 = lean_ctor_get(x_15, 3); +x_420 = lean_ctor_get(x_15, 4); lean_inc(x_420); -x_421 = lean_ctor_get(x_16, 4); +lean_inc(x_419); +lean_inc(x_418); +lean_inc(x_417); +lean_dec(x_15); +x_421 = lean_ctor_get(x_16, 0); lean_inc(x_421); -x_422 = lean_ctor_get(x_16, 6); +x_422 = lean_ctor_get(x_16, 1); lean_inc(x_422); +x_423 = lean_ctor_get(x_16, 2); +lean_inc(x_423); +x_424 = lean_ctor_get(x_16, 3); +lean_inc(x_424); +x_425 = lean_ctor_get(x_16, 4); +lean_inc(x_425); +x_426 = lean_ctor_get(x_16, 6); +lean_inc(x_426); if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 0); lean_ctor_release(x_16, 1); @@ -8355,229 +8402,194 @@ if (lean_is_exclusive(x_16)) { lean_ctor_release(x_16, 4); lean_ctor_release(x_16, 5); lean_ctor_release(x_16, 6); - x_423 = x_16; + x_427 = x_16; } else { lean_dec_ref(x_16); - x_423 = lean_box(0); + x_427 = lean_box(0); } -x_424 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; -if (lean_is_scalar(x_423)) { - x_425 = lean_alloc_ctor(0, 7, 0); +x_428 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__2; +if (lean_is_scalar(x_427)) { + x_429 = lean_alloc_ctor(0, 7, 0); } else { - x_425 = x_423; + x_429 = x_427; } -lean_ctor_set(x_425, 0, x_417); -lean_ctor_set(x_425, 1, x_418); -lean_ctor_set(x_425, 2, x_419); -lean_ctor_set(x_425, 3, x_420); -lean_ctor_set(x_425, 4, x_421); -lean_ctor_set(x_425, 5, x_424); -lean_ctor_set(x_425, 6, x_422); -x_426 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_426, 0, x_413); -lean_ctor_set(x_426, 1, x_425); -lean_ctor_set(x_426, 2, x_414); -lean_ctor_set(x_426, 3, x_415); -lean_ctor_set(x_426, 4, x_416); -x_427 = lean_st_ref_set(x_7, x_426, x_17); -x_428 = lean_ctor_get(x_427, 1); -lean_inc(x_428); -lean_dec(x_427); -x_429 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_428); -x_430 = lean_ctor_get(x_429, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_429, 1); -lean_inc(x_431); -if (lean_is_exclusive(x_429)) { - lean_ctor_release(x_429, 0); - lean_ctor_release(x_429, 1); - x_432 = x_429; +lean_ctor_set(x_429, 0, x_421); +lean_ctor_set(x_429, 1, x_422); +lean_ctor_set(x_429, 2, x_423); +lean_ctor_set(x_429, 3, x_424); +lean_ctor_set(x_429, 4, x_425); +lean_ctor_set(x_429, 5, x_428); +lean_ctor_set(x_429, 6, x_426); +x_430 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_430, 0, x_417); +lean_ctor_set(x_430, 1, x_429); +lean_ctor_set(x_430, 2, x_418); +lean_ctor_set(x_430, 3, x_419); +lean_ctor_set(x_430, 4, x_420); +x_431 = lean_st_ref_set(x_7, x_430, x_17); +x_432 = lean_ctor_get(x_431, 1); +lean_inc(x_432); +lean_dec(x_431); +x_433 = l_Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_432); +x_434 = lean_ctor_get(x_433, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_433, 1); +lean_inc(x_435); +if (lean_is_exclusive(x_433)) { + lean_ctor_release(x_433, 0); + lean_ctor_release(x_433, 1); + x_436 = x_433; } else { - lean_dec_ref(x_429); - x_432 = lean_box(0); + lean_dec_ref(x_433); + x_436 = lean_box(0); } lean_inc(x_3); -x_474 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_431); -if (lean_obj_tag(x_474) == 0) +x_480 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_3, x_6, x_7, x_8, x_9, x_435); +if (lean_obj_tag(x_480) == 0) { -lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; -x_475 = lean_ctor_get(x_474, 0); -lean_inc(x_475); -x_476 = lean_ctor_get(x_474, 1); -lean_inc(x_476); -lean_dec(x_474); -x_477 = l_Lean_ConstantInfo_levelParams(x_475); -x_478 = lean_box(0); -x_479 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_477, x_478, x_6, x_7, x_8, x_9, x_476); -x_480 = lean_ctor_get(x_479, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_479, 1); +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; +x_481 = lean_ctor_get(x_480, 0); lean_inc(x_481); -lean_dec(x_479); +x_482 = lean_ctor_get(x_480, 1); +lean_inc(x_482); +lean_dec(x_480); +x_483 = l_Lean_ConstantInfo_levelParams(x_481); +x_484 = lean_box(0); +x_485 = l_List_mapM_loop___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__1(x_483, x_484, x_6, x_7, x_8, x_9, x_482); +x_486 = lean_ctor_get(x_485, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_485, 1); +lean_inc(x_487); +lean_dec(x_485); lean_inc(x_9); lean_inc(x_8); -x_482 = l_Lean_Core_instantiateValueLevelParams(x_475, x_480, x_8, x_9, x_481); -lean_dec(x_475); -if (lean_obj_tag(x_482) == 0) +x_488 = l_Lean_Core_instantiateValueLevelParams(x_481, x_486, x_8, x_9, x_487); +lean_dec(x_481); +if (lean_obj_tag(x_488) == 0) { -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_526; -x_483 = lean_ctor_get(x_482, 0); -lean_inc(x_483); -x_484 = lean_ctor_get(x_482, 1); -lean_inc(x_484); -lean_dec(x_482); -x_485 = lean_box(0); -lean_inc(x_6); -x_486 = l_Lean_Meta_lambdaMetaTelescope(x_483, x_485, x_6, x_7, x_8, x_9, x_484); -lean_dec(x_483); -x_487 = lean_ctor_get(x_486, 0); -lean_inc(x_487); -x_488 = lean_ctor_get(x_487, 1); -lean_inc(x_488); -x_489 = lean_ctor_get(x_486, 1); +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_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_532; +x_489 = lean_ctor_get(x_488, 0); lean_inc(x_489); -lean_dec(x_486); -x_490 = lean_ctor_get(x_487, 0); +x_490 = lean_ctor_get(x_488, 1); lean_inc(x_490); -lean_dec(x_487); -x_491 = lean_ctor_get(x_488, 0); -lean_inc(x_491); -x_492 = lean_ctor_get(x_488, 1); -lean_inc(x_492); -if (lean_is_exclusive(x_488)) { - lean_ctor_release(x_488, 0); - lean_ctor_release(x_488, 1); - x_493 = x_488; +lean_dec(x_488); +x_491 = lean_box(0); +lean_inc(x_6); +x_492 = l_Lean_Meta_lambdaMetaTelescope(x_489, x_491, x_6, x_7, x_8, x_9, x_490); +lean_dec(x_489); +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); +x_494 = lean_ctor_get(x_493, 1); +lean_inc(x_494); +x_495 = lean_ctor_get(x_492, 1); +lean_inc(x_495); +lean_dec(x_492); +x_496 = lean_ctor_get(x_493, 0); +lean_inc(x_496); +lean_dec(x_493); +x_497 = lean_ctor_get(x_494, 0); +lean_inc(x_497); +x_498 = lean_ctor_get(x_494, 1); +lean_inc(x_498); +if (lean_is_exclusive(x_494)) { + lean_ctor_release(x_494, 0); + lean_ctor_release(x_494, 1); + x_499 = x_494; } else { - lean_dec_ref(x_488); - x_493 = lean_box(0); + lean_dec_ref(x_494); + x_499 = lean_box(0); } -x_526 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_492); -if (lean_obj_tag(x_526) == 0) +x_532 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint(x_498); +if (lean_obj_tag(x_532) == 0) { -lean_dec(x_526); +lean_dec(x_532); lean_dec(x_2); lean_dec(x_1); -x_494 = x_485; -x_495 = x_489; -goto block_525; +x_500 = x_491; +x_501 = x_495; +goto block_531; } else { -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; uint8_t x_538; uint8_t x_539; uint8_t x_540; uint8_t x_541; uint8_t x_542; uint8_t x_543; uint8_t x_544; uint8_t x_545; uint8_t x_546; uint8_t x_547; uint8_t x_548; lean_object* x_549; uint8_t x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; -x_527 = lean_ctor_get(x_6, 0); -lean_inc(x_527); -x_528 = lean_ctor_get(x_526, 0); -lean_inc(x_528); -if (lean_is_exclusive(x_526)) { - lean_ctor_release(x_526, 0); - x_529 = x_526; -} else { - lean_dec_ref(x_526); - x_529 = lean_box(0); -} -x_530 = lean_ctor_get(x_6, 1); -lean_inc(x_530); -x_531 = lean_ctor_get(x_6, 2); -lean_inc(x_531); -x_532 = lean_ctor_get(x_6, 3); -lean_inc(x_532); -x_533 = lean_ctor_get(x_6, 4); +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; uint8_t x_541; uint8_t x_542; uint8_t x_543; uint8_t x_544; uint8_t x_545; uint8_t x_546; uint8_t x_547; uint8_t x_548; uint8_t x_549; uint8_t x_550; uint8_t x_551; uint8_t x_552; uint8_t x_553; uint8_t x_554; lean_object* x_555; uint8_t x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_533 = lean_ctor_get(x_6, 0); lean_inc(x_533); -x_534 = lean_ctor_get(x_6, 5); +x_534 = lean_ctor_get(x_532, 0); lean_inc(x_534); -x_535 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); -x_536 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); -x_537 = lean_ctor_get_uint8(x_527, 0); -x_538 = lean_ctor_get_uint8(x_527, 1); -x_539 = lean_ctor_get_uint8(x_527, 2); -x_540 = lean_ctor_get_uint8(x_527, 3); -x_541 = lean_ctor_get_uint8(x_527, 4); -x_542 = lean_ctor_get_uint8(x_527, 6); -x_543 = lean_ctor_get_uint8(x_527, 7); -x_544 = lean_ctor_get_uint8(x_527, 8); -x_545 = lean_ctor_get_uint8(x_527, 9); -x_546 = lean_ctor_get_uint8(x_527, 10); -x_547 = lean_ctor_get_uint8(x_527, 11); -x_548 = lean_ctor_get_uint8(x_527, 12); -if (lean_is_exclusive(x_527)) { - x_549 = x_527; +if (lean_is_exclusive(x_532)) { + lean_ctor_release(x_532, 0); + x_535 = x_532; } else { - lean_dec_ref(x_527); - x_549 = lean_box(0); + lean_dec_ref(x_532); + x_535 = lean_box(0); } -x_550 = 0; -if (lean_is_scalar(x_549)) { - x_551 = lean_alloc_ctor(0, 0, 13); +x_536 = lean_ctor_get(x_6, 1); +lean_inc(x_536); +x_537 = lean_ctor_get(x_6, 2); +lean_inc(x_537); +x_538 = lean_ctor_get(x_6, 3); +lean_inc(x_538); +x_539 = lean_ctor_get(x_6, 4); +lean_inc(x_539); +x_540 = lean_ctor_get(x_6, 5); +lean_inc(x_540); +x_541 = lean_ctor_get_uint8(x_6, sizeof(void*)*6); +x_542 = lean_ctor_get_uint8(x_6, sizeof(void*)*6 + 1); +x_543 = lean_ctor_get_uint8(x_533, 0); +x_544 = lean_ctor_get_uint8(x_533, 1); +x_545 = lean_ctor_get_uint8(x_533, 2); +x_546 = lean_ctor_get_uint8(x_533, 3); +x_547 = lean_ctor_get_uint8(x_533, 4); +x_548 = lean_ctor_get_uint8(x_533, 6); +x_549 = lean_ctor_get_uint8(x_533, 7); +x_550 = lean_ctor_get_uint8(x_533, 8); +x_551 = lean_ctor_get_uint8(x_533, 9); +x_552 = lean_ctor_get_uint8(x_533, 10); +x_553 = lean_ctor_get_uint8(x_533, 11); +x_554 = lean_ctor_get_uint8(x_533, 12); +if (lean_is_exclusive(x_533)) { + x_555 = x_533; } else { - x_551 = x_549; + lean_dec_ref(x_533); + x_555 = lean_box(0); } -lean_ctor_set_uint8(x_551, 0, x_537); -lean_ctor_set_uint8(x_551, 1, x_538); -lean_ctor_set_uint8(x_551, 2, x_539); -lean_ctor_set_uint8(x_551, 3, x_540); -lean_ctor_set_uint8(x_551, 4, x_541); -lean_ctor_set_uint8(x_551, 5, x_550); -lean_ctor_set_uint8(x_551, 6, x_542); -lean_ctor_set_uint8(x_551, 7, x_543); -lean_ctor_set_uint8(x_551, 8, x_544); -lean_ctor_set_uint8(x_551, 9, x_545); -lean_ctor_set_uint8(x_551, 10, x_546); -lean_ctor_set_uint8(x_551, 11, x_547); -lean_ctor_set_uint8(x_551, 12, x_548); -x_552 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_552, 0, x_551); -lean_ctor_set(x_552, 1, x_530); -lean_ctor_set(x_552, 2, x_531); -lean_ctor_set(x_552, 3, x_532); -lean_ctor_set(x_552, 4, x_533); -lean_ctor_set(x_552, 5, x_534); -lean_ctor_set_uint8(x_552, sizeof(void*)*6, x_535); -lean_ctor_set_uint8(x_552, sizeof(void*)*6 + 1, x_536); -x_553 = lean_ctor_get(x_528, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_553, 0); -lean_inc(x_554); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_552); -x_555 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_554, x_1, x_552, x_7, x_8, x_9, x_489); -if (lean_obj_tag(x_555) == 0) -{ -lean_object* x_556; uint8_t x_557; -x_556 = lean_ctor_get(x_555, 0); -lean_inc(x_556); -x_557 = lean_unbox(x_556); -lean_dec(x_556); -if (x_557 == 0) -{ -lean_object* x_558; -lean_dec(x_553); -lean_dec(x_552); -lean_dec(x_529); -lean_dec(x_528); -lean_dec(x_2); -x_558 = lean_ctor_get(x_555, 1); -lean_inc(x_558); -lean_dec(x_555); -x_494 = x_485; -x_495 = x_558; -goto block_525; +x_556 = 0; +if (lean_is_scalar(x_555)) { + x_557 = lean_alloc_ctor(0, 0, 13); +} else { + x_557 = x_555; } -else -{ -lean_object* x_559; lean_object* x_560; lean_object* x_561; -x_559 = lean_ctor_get(x_555, 1); +lean_ctor_set_uint8(x_557, 0, x_543); +lean_ctor_set_uint8(x_557, 1, x_544); +lean_ctor_set_uint8(x_557, 2, x_545); +lean_ctor_set_uint8(x_557, 3, x_546); +lean_ctor_set_uint8(x_557, 4, x_547); +lean_ctor_set_uint8(x_557, 5, x_556); +lean_ctor_set_uint8(x_557, 6, x_548); +lean_ctor_set_uint8(x_557, 7, x_549); +lean_ctor_set_uint8(x_557, 8, x_550); +lean_ctor_set_uint8(x_557, 9, x_551); +lean_ctor_set_uint8(x_557, 10, x_552); +lean_ctor_set_uint8(x_557, 11, x_553); +lean_ctor_set_uint8(x_557, 12, x_554); +x_558 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_558, 0, x_557); +lean_ctor_set(x_558, 1, x_536); +lean_ctor_set(x_558, 2, x_537); +lean_ctor_set(x_558, 3, x_538); +lean_ctor_set(x_558, 4, x_539); +lean_ctor_set(x_558, 5, x_540); +lean_ctor_set_uint8(x_558, sizeof(void*)*6, x_541); +lean_ctor_set_uint8(x_558, sizeof(void*)*6 + 1, x_542); +x_559 = lean_ctor_get(x_534, 0); lean_inc(x_559); -lean_dec(x_555); -x_560 = lean_ctor_get(x_553, 1); +x_560 = lean_ctor_get(x_559, 0); lean_inc(x_560); -lean_dec(x_553); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_561 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_560, x_2, x_552, x_7, x_8, x_9, x_559); +lean_inc(x_558); +x_561 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_560, x_1, x_558, x_7, x_8, x_9, x_495); if (lean_obj_tag(x_561) == 0) { lean_object* x_562; uint8_t x_563; @@ -8588,447 +8600,505 @@ lean_dec(x_562); if (x_563 == 0) { lean_object* x_564; -lean_dec(x_529); -lean_dec(x_528); +lean_dec(x_559); +lean_dec(x_558); +lean_dec(x_535); +lean_dec(x_534); +lean_dec(x_2); x_564 = lean_ctor_get(x_561, 1); lean_inc(x_564); lean_dec(x_561); -x_494 = x_485; -x_495 = x_564; -goto block_525; +x_500 = x_491; +x_501 = x_564; +goto block_531; } else { -lean_object* x_565; lean_object* x_566; +lean_object* x_565; lean_object* x_566; lean_object* x_567; x_565 = lean_ctor_get(x_561, 1); lean_inc(x_565); lean_dec(x_561); -if (lean_is_scalar(x_529)) { - x_566 = lean_alloc_ctor(1, 1, 0); -} else { - x_566 = x_529; -} -lean_ctor_set(x_566, 0, x_528); -x_494 = x_566; -x_495 = x_565; -goto block_525; -} -} -else +x_566 = lean_ctor_get(x_559, 1); +lean_inc(x_566); +lean_dec(x_559); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_567 = l_Lean_Meta_tryUnificationHints_isDefEqPattern(x_566, x_2, x_558, x_7, x_8, x_9, x_565); +if (lean_obj_tag(x_567) == 0) { -lean_object* x_567; lean_object* x_568; -lean_dec(x_529); -lean_dec(x_528); -lean_dec(x_493); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_430); -lean_dec(x_4); -lean_dec(x_3); -x_567 = lean_ctor_get(x_561, 0); -lean_inc(x_567); -x_568 = lean_ctor_get(x_561, 1); +lean_object* x_568; uint8_t x_569; +x_568 = lean_ctor_get(x_567, 0); lean_inc(x_568); -lean_dec(x_561); -x_433 = x_567; -x_434 = x_568; -goto block_441; -} -} -} -else +x_569 = lean_unbox(x_568); +lean_dec(x_568); +if (x_569 == 0) { -lean_object* x_569; lean_object* x_570; -lean_dec(x_553); -lean_dec(x_552); -lean_dec(x_529); -lean_dec(x_528); -lean_dec(x_493); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_430); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_569 = lean_ctor_get(x_555, 0); -lean_inc(x_569); -x_570 = lean_ctor_get(x_555, 1); +lean_object* x_570; +lean_dec(x_535); +lean_dec(x_534); +x_570 = lean_ctor_get(x_567, 1); lean_inc(x_570); -lean_dec(x_555); -x_433 = x_569; -x_434 = x_570; -goto block_441; -} -} -block_525: -{ -if (lean_obj_tag(x_494) == 0) -{ -uint8_t x_496; -lean_dec(x_493); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_4); -lean_dec(x_3); -x_496 = 0; -x_442 = x_496; -x_443 = x_495; -goto block_473; -} -else -{ -lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; -x_497 = lean_ctor_get(x_494, 0); -lean_inc(x_497); -lean_dec(x_494); -lean_inc(x_4); -x_498 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_495); -x_499 = lean_ctor_get(x_498, 0); -lean_inc(x_499); -x_500 = lean_unbox(x_499); -lean_dec(x_499); -if (x_500 == 0) -{ -lean_object* x_501; lean_object* x_502; lean_object* x_503; -lean_dec(x_493); -lean_dec(x_4); -lean_dec(x_3); -x_501 = lean_ctor_get(x_498, 1); -lean_inc(x_501); -lean_dec(x_498); -x_502 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_503 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_497, x_485, x_491, x_490, x_502, x_6, x_7, x_8, x_9, x_501); -if (lean_obj_tag(x_503) == 0) -{ -lean_object* x_504; lean_object* x_505; uint8_t x_506; -x_504 = lean_ctor_get(x_503, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_503, 1); -lean_inc(x_505); -lean_dec(x_503); -x_506 = lean_unbox(x_504); -lean_dec(x_504); -x_442 = x_506; -x_443 = x_505; -goto block_473; -} -else -{ -lean_object* x_507; lean_object* x_508; -lean_dec(x_430); -x_507 = lean_ctor_get(x_503, 0); -lean_inc(x_507); -x_508 = lean_ctor_get(x_503, 1); -lean_inc(x_508); -lean_dec(x_503); -x_433 = x_507; -x_434 = x_508; -goto block_441; -} -} -else -{ -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; lean_object* x_518; lean_object* x_519; -x_509 = lean_ctor_get(x_498, 1); -lean_inc(x_509); -if (lean_is_exclusive(x_498)) { - lean_ctor_release(x_498, 0); - lean_ctor_release(x_498, 1); - x_510 = x_498; -} else { - lean_dec_ref(x_498); - x_510 = lean_box(0); -} -x_511 = l_Lean_MessageData_ofName(x_3); -x_512 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; -if (lean_is_scalar(x_510)) { - x_513 = lean_alloc_ctor(6, 2, 0); -} else { - x_513 = x_510; - lean_ctor_set_tag(x_513, 6); -} -lean_ctor_set(x_513, 0, x_512); -lean_ctor_set(x_513, 1, x_511); -x_514 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; -if (lean_is_scalar(x_493)) { - x_515 = lean_alloc_ctor(6, 2, 0); -} else { - x_515 = x_493; - lean_ctor_set_tag(x_515, 6); -} -lean_ctor_set(x_515, 0, x_513); -lean_ctor_set(x_515, 1, x_514); -x_516 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_515, x_6, x_7, x_8, x_9, x_509); -x_517 = lean_ctor_get(x_516, 0); -lean_inc(x_517); -x_518 = lean_ctor_get(x_516, 1); -lean_inc(x_518); -lean_dec(x_516); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_519 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_497, x_485, x_491, x_490, x_517, x_6, x_7, x_8, x_9, x_518); -if (lean_obj_tag(x_519) == 0) -{ -lean_object* x_520; lean_object* x_521; uint8_t x_522; -x_520 = lean_ctor_get(x_519, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_519, 1); -lean_inc(x_521); -lean_dec(x_519); -x_522 = lean_unbox(x_520); -lean_dec(x_520); -x_442 = x_522; -x_443 = x_521; -goto block_473; -} -else -{ -lean_object* x_523; lean_object* x_524; -lean_dec(x_430); -x_523 = lean_ctor_get(x_519, 0); -lean_inc(x_523); -x_524 = lean_ctor_get(x_519, 1); -lean_inc(x_524); -lean_dec(x_519); -x_433 = x_523; -x_434 = x_524; -goto block_441; -} -} -} -} +lean_dec(x_567); +x_500 = x_491; +x_501 = x_570; +goto block_531; } else { lean_object* x_571; lean_object* x_572; -lean_dec(x_430); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_571 = lean_ctor_get(x_482, 0); +x_571 = lean_ctor_get(x_567, 1); lean_inc(x_571); -x_572 = lean_ctor_get(x_482, 1); -lean_inc(x_572); -lean_dec(x_482); -x_433 = x_571; -x_434 = x_572; -goto block_441; +lean_dec(x_567); +if (lean_is_scalar(x_535)) { + x_572 = lean_alloc_ctor(1, 1, 0); +} else { + x_572 = x_535; +} +lean_ctor_set(x_572, 0, x_534); +x_500 = x_572; +x_501 = x_571; +goto block_531; } } else { lean_object* x_573; lean_object* x_574; -lean_dec(x_430); +lean_dec(x_535); +lean_dec(x_534); +lean_dec(x_499); +lean_dec(x_497); +lean_dec(x_496); +lean_dec(x_434); +lean_dec(x_4); +lean_dec(x_3); +x_573 = lean_ctor_get(x_567, 0); +lean_inc(x_573); +x_574 = lean_ctor_get(x_567, 1); +lean_inc(x_574); +lean_dec(x_567); +x_437 = x_573; +x_438 = x_574; +goto block_447; +} +} +} +else +{ +lean_object* x_575; lean_object* x_576; +lean_dec(x_559); +lean_dec(x_558); +lean_dec(x_535); +lean_dec(x_534); +lean_dec(x_499); +lean_dec(x_497); +lean_dec(x_496); +lean_dec(x_434); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_573 = lean_ctor_get(x_474, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_474, 1); -lean_inc(x_574); -lean_dec(x_474); -x_433 = x_573; -x_434 = x_574; -goto block_441; +x_575 = lean_ctor_get(x_561, 0); +lean_inc(x_575); +x_576 = lean_ctor_get(x_561, 1); +lean_inc(x_576); +lean_dec(x_561); +x_437 = x_575; +x_438 = x_576; +goto block_447; } -block_441: +} +block_531: { -uint8_t x_435; -x_435 = l_Lean_Exception_isRuntime(x_433); -if (x_435 == 0) +if (lean_obj_tag(x_500) == 0) { -lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; -lean_dec(x_432); -x_436 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_434); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_437 = lean_ctor_get(x_436, 1); -lean_inc(x_437); -if (lean_is_exclusive(x_436)) { - lean_ctor_release(x_436, 0); - lean_ctor_release(x_436, 1); - x_438 = x_436; -} else { - lean_dec_ref(x_436); - x_438 = lean_box(0); -} -if (lean_is_scalar(x_438)) { - x_439 = lean_alloc_ctor(1, 2, 0); -} else { - x_439 = x_438; - lean_ctor_set_tag(x_439, 1); -} -lean_ctor_set(x_439, 0, x_433); -lean_ctor_set(x_439, 1, x_437); -return x_439; +uint8_t x_502; +lean_dec(x_499); +lean_dec(x_497); +lean_dec(x_496); +lean_dec(x_4); +lean_dec(x_3); +x_502 = 0; +x_448 = x_502; +x_449 = x_501; +goto block_479; } else { -lean_object* x_440; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -if (lean_is_scalar(x_432)) { - x_440 = lean_alloc_ctor(1, 2, 0); -} else { - x_440 = x_432; - lean_ctor_set_tag(x_440, 1); -} -lean_ctor_set(x_440, 0, x_433); -lean_ctor_set(x_440, 1, x_434); -return x_440; -} -} -block_473: +lean_object* x_503; lean_object* x_504; lean_object* x_505; uint8_t x_506; +x_503 = lean_ctor_get(x_500, 0); +lean_inc(x_503); +lean_dec(x_500); +lean_inc(x_4); +x_504 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_6, x_7, x_8, x_9, x_501); +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +x_506 = lean_unbox(x_505); +lean_dec(x_505); +if (x_506 == 0) { -if (x_442 == 0) -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; uint8_t x_447; lean_object* x_448; lean_object* x_449; -lean_dec(x_432); -lean_dec(x_430); -x_444 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_443); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_12); -x_445 = lean_ctor_get(x_444, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_444)) { - lean_ctor_release(x_444, 0); - lean_ctor_release(x_444, 1); - x_446 = x_444; -} else { - lean_dec_ref(x_444); - x_446 = lean_box(0); -} -x_447 = 0; -x_448 = lean_box(x_447); -if (lean_is_scalar(x_446)) { - x_449 = lean_alloc_ctor(0, 2, 0); -} else { - x_449 = x_446; -} -lean_ctor_set(x_449, 0, x_448); -lean_ctor_set(x_449, 1, x_445); -return x_449; -} -else -{ -uint8_t x_450; lean_object* x_451; -x_450 = 0; +lean_object* x_507; lean_object* x_508; lean_object* x_509; +lean_dec(x_499); +lean_dec(x_4); +lean_dec(x_3); +x_507 = lean_ctor_get(x_504, 1); +lean_inc(x_507); +lean_dec(x_504); +x_508 = lean_box(0); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_451 = l_Lean_Meta_processPostponed(x_5, x_450, x_6, x_7, x_8, x_9, x_443); -if (lean_obj_tag(x_451) == 0) +x_509 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_503, x_491, x_497, x_496, x_508, x_6, x_7, x_8, x_9, x_507); +if (lean_obj_tag(x_509) == 0) { -lean_object* x_452; uint8_t x_453; -lean_dec(x_432); -x_452 = lean_ctor_get(x_451, 0); -lean_inc(x_452); -x_453 = lean_unbox(x_452); -lean_dec(x_452); -if (x_453 == 0) +lean_object* x_510; lean_object* x_511; uint8_t x_512; +x_510 = lean_ctor_get(x_509, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_509, 1); +lean_inc(x_511); +lean_dec(x_509); +x_512 = lean_unbox(x_510); +lean_dec(x_510); +x_448 = x_512; +x_449 = x_511; +goto block_479; +} +else { -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_dec(x_430); -x_454 = lean_ctor_get(x_451, 1); -lean_inc(x_454); -lean_dec(x_451); -x_455 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_454); +lean_object* x_513; lean_object* x_514; +lean_dec(x_434); +x_513 = lean_ctor_get(x_509, 0); +lean_inc(x_513); +x_514 = lean_ctor_get(x_509, 1); +lean_inc(x_514); +lean_dec(x_509); +x_437 = x_513; +x_438 = x_514; +goto block_447; +} +} +else +{ +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; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_515 = lean_ctor_get(x_504, 1); +lean_inc(x_515); +if (lean_is_exclusive(x_504)) { + lean_ctor_release(x_504, 0); + lean_ctor_release(x_504, 1); + x_516 = x_504; +} else { + lean_dec_ref(x_504); + x_516 = lean_box(0); +} +x_517 = l_Lean_MessageData_ofName(x_3); +x_518 = l___private_Lean_Meta_UnificationHint_0__Lean_Meta_decodeUnificationHint_decodeConstraint___closed__6; +if (lean_is_scalar(x_516)) { + x_519 = lean_alloc_ctor(6, 2, 0); +} else { + x_519 = x_516; + lean_ctor_set_tag(x_519, 6); +} +lean_ctor_set(x_519, 0, x_518); +lean_ctor_set(x_519, 1, x_517); +x_520 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___closed__4; +if (lean_is_scalar(x_499)) { + x_521 = lean_alloc_ctor(6, 2, 0); +} else { + x_521 = x_499; + lean_ctor_set_tag(x_521, 6); +} +lean_ctor_set(x_521, 0, x_519); +lean_ctor_set(x_521, 1, x_520); +x_522 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_4, x_521, x_6, x_7, x_8, x_9, x_515); +x_523 = lean_ctor_get(x_522, 0); +lean_inc(x_523); +x_524 = lean_ctor_get(x_522, 1); +lean_inc(x_524); +lean_dec(x_522); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_525 = l_Lean_Meta_checkpointDefEq___at_Lean_Meta_tryUnificationHints_tryCandidate___spec__4___lambda__3(x_503, x_491, x_497, x_496, x_523, x_6, x_7, x_8, x_9, x_524); +if (lean_obj_tag(x_525) == 0) +{ +lean_object* x_526; lean_object* x_527; uint8_t x_528; +x_526 = lean_ctor_get(x_525, 0); +lean_inc(x_526); +x_527 = lean_ctor_get(x_525, 1); +lean_inc(x_527); +lean_dec(x_525); +x_528 = lean_unbox(x_526); +lean_dec(x_526); +x_448 = x_528; +x_449 = x_527; +goto block_479; +} +else +{ +lean_object* x_529; lean_object* x_530; +lean_dec(x_434); +x_529 = lean_ctor_get(x_525, 0); +lean_inc(x_529); +x_530 = lean_ctor_get(x_525, 1); +lean_inc(x_530); +lean_dec(x_525); +x_437 = x_529; +x_438 = x_530; +goto block_447; +} +} +} +} +} +else +{ +lean_object* x_577; lean_object* x_578; +lean_dec(x_434); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_577 = lean_ctor_get(x_488, 0); +lean_inc(x_577); +x_578 = lean_ctor_get(x_488, 1); +lean_inc(x_578); +lean_dec(x_488); +x_437 = x_577; +x_438 = x_578; +goto block_447; +} +} +else +{ +lean_object* x_579; lean_object* x_580; +lean_dec(x_434); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_579 = lean_ctor_get(x_480, 0); +lean_inc(x_579); +x_580 = lean_ctor_get(x_480, 1); +lean_inc(x_580); +lean_dec(x_480); +x_437 = x_579; +x_438 = x_580; +goto block_447; +} +block_447: +{ +uint8_t x_439; +x_439 = l_Lean_Exception_isInterrupt(x_437); +if (x_439 == 0) +{ +uint8_t x_440; +x_440 = l_Lean_Exception_isRuntime(x_437); +if (x_440 == 0) +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; +lean_dec(x_436); +x_441 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_438); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_12); -x_456 = lean_ctor_get(x_455, 1); -lean_inc(x_456); -if (lean_is_exclusive(x_455)) { - lean_ctor_release(x_455, 0); - lean_ctor_release(x_455, 1); - x_457 = x_455; +x_442 = lean_ctor_get(x_441, 1); +lean_inc(x_442); +if (lean_is_exclusive(x_441)) { + lean_ctor_release(x_441, 0); + lean_ctor_release(x_441, 1); + x_443 = x_441; } else { - lean_dec_ref(x_455); - x_457 = lean_box(0); + lean_dec_ref(x_441); + x_443 = lean_box(0); } -x_458 = lean_box(x_450); -if (lean_is_scalar(x_457)) { - x_459 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_443)) { + x_444 = lean_alloc_ctor(1, 2, 0); } else { - x_459 = x_457; + x_444 = x_443; + lean_ctor_set_tag(x_444, 1); } -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_456); -return x_459; +lean_ctor_set(x_444, 0, x_437); +lean_ctor_set(x_444, 1, x_442); +return x_444; } else { -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; uint8_t x_468; lean_object* x_469; lean_object* x_470; +lean_object* x_445; lean_dec(x_12); -x_460 = lean_ctor_get(x_451, 1); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_436)) { + x_445 = lean_alloc_ctor(1, 2, 0); +} else { + x_445 = x_436; + lean_ctor_set_tag(x_445, 1); +} +lean_ctor_set(x_445, 0, x_437); +lean_ctor_set(x_445, 1, x_438); +return x_445; +} +} +else +{ +lean_object* x_446; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +if (lean_is_scalar(x_436)) { + x_446 = lean_alloc_ctor(1, 2, 0); +} else { + x_446 = x_436; + lean_ctor_set_tag(x_446, 1); +} +lean_ctor_set(x_446, 0, x_437); +lean_ctor_set(x_446, 1, x_438); +return x_446; +} +} +block_479: +{ +if (x_448 == 0) +{ +lean_object* x_450; lean_object* x_451; lean_object* x_452; uint8_t x_453; lean_object* x_454; lean_object* x_455; +lean_dec(x_436); +lean_dec(x_434); +x_450 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_449); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_12); +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 = 0; +x_454 = lean_box(x_453); +if (lean_is_scalar(x_452)) { + x_455 = lean_alloc_ctor(0, 2, 0); +} else { + x_455 = x_452; +} +lean_ctor_set(x_455, 0, x_454); +lean_ctor_set(x_455, 1, x_451); +return x_455; +} +else +{ +uint8_t x_456; lean_object* x_457; +x_456 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_457 = l_Lean_Meta_processPostponed(x_5, x_456, x_6, x_7, x_8, x_9, x_449); +if (lean_obj_tag(x_457) == 0) +{ +lean_object* x_458; uint8_t x_459; +lean_dec(x_436); +x_458 = lean_ctor_get(x_457, 0); +lean_inc(x_458); +x_459 = lean_unbox(x_458); +lean_dec(x_458); +if (x_459 == 0) +{ +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_dec(x_434); +x_460 = lean_ctor_get(x_457, 1); lean_inc(x_460); -lean_dec(x_451); -x_461 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_460); -x_462 = lean_ctor_get(x_461, 0); -lean_inc(x_462); -x_463 = lean_ctor_get(x_461, 1); -lean_inc(x_463); -lean_dec(x_461); -x_464 = l_Lean_PersistentArray_append___rarg(x_430, x_462); -x_465 = l_Lean_Meta_setPostponed(x_464, x_6, x_7, x_8, x_9, x_463); +lean_dec(x_457); +x_461 = l_Lean_Meta_SavedState_restore(x_12, x_6, x_7, x_8, x_9, x_460); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_466 = lean_ctor_get(x_465, 1); +lean_dec(x_12); +x_462 = lean_ctor_get(x_461, 1); +lean_inc(x_462); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + x_463 = x_461; +} else { + lean_dec_ref(x_461); + x_463 = lean_box(0); +} +x_464 = lean_box(x_456); +if (lean_is_scalar(x_463)) { + x_465 = lean_alloc_ctor(0, 2, 0); +} else { + x_465 = x_463; +} +lean_ctor_set(x_465, 0, x_464); +lean_ctor_set(x_465, 1, x_462); +return x_465; +} +else +{ +lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; uint8_t x_474; lean_object* x_475; lean_object* x_476; +lean_dec(x_12); +x_466 = lean_ctor_get(x_457, 1); lean_inc(x_466); -if (lean_is_exclusive(x_465)) { - lean_ctor_release(x_465, 0); - lean_ctor_release(x_465, 1); - x_467 = x_465; +lean_dec(x_457); +x_467 = l_Lean_Meta_getPostponed___rarg(x_7, x_8, x_9, x_466); +x_468 = lean_ctor_get(x_467, 0); +lean_inc(x_468); +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +lean_dec(x_467); +x_470 = l_Lean_PersistentArray_append___rarg(x_434, x_468); +x_471 = l_Lean_Meta_setPostponed(x_470, x_6, x_7, x_8, x_9, x_469); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_472 = lean_ctor_get(x_471, 1); +lean_inc(x_472); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_473 = x_471; } else { - lean_dec_ref(x_465); - x_467 = lean_box(0); + lean_dec_ref(x_471); + x_473 = lean_box(0); } -x_468 = 1; -x_469 = lean_box(x_468); -if (lean_is_scalar(x_467)) { - x_470 = lean_alloc_ctor(0, 2, 0); +x_474 = 1; +x_475 = lean_box(x_474); +if (lean_is_scalar(x_473)) { + x_476 = lean_alloc_ctor(0, 2, 0); } else { - x_470 = x_467; + x_476 = x_473; } -lean_ctor_set(x_470, 0, x_469); -lean_ctor_set(x_470, 1, x_466); -return x_470; +lean_ctor_set(x_476, 0, x_475); +lean_ctor_set(x_476, 1, x_472); +return x_476; } } else { -lean_object* x_471; lean_object* x_472; -lean_dec(x_430); -x_471 = lean_ctor_get(x_451, 0); -lean_inc(x_471); -x_472 = lean_ctor_get(x_451, 1); -lean_inc(x_472); -lean_dec(x_451); -x_433 = x_471; -x_434 = x_472; -goto block_441; +lean_object* x_477; lean_object* x_478; +lean_dec(x_434); +x_477 = lean_ctor_get(x_457, 0); +lean_inc(x_477); +x_478 = lean_ctor_get(x_457, 1); +lean_inc(x_478); +lean_dec(x_457); +x_437 = x_477; +x_438 = x_478; +goto block_447; } } } diff --git a/stage0/stdlib/Lean/Meta/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 0227873ec5..9993ba668b 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -39546,7 +39546,7 @@ return x_287; LEAN_EXPORT lean_object* lean_whnf(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; 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; uint8_t x_19; +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; uint8_t x_20; uint8_t x_21; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_4, 1); @@ -39569,73 +39569,81 @@ x_16 = lean_ctor_get(x_4, 9); lean_inc(x_16); x_17 = lean_ctor_get(x_4, 10); lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_19 = lean_nat_dec_eq(x_10, x_11); -if (x_19 == 0) +x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*12); +x_19 = lean_ctor_get(x_4, 11); +lean_inc(x_19); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_21 = lean_nat_dec_eq(x_10, x_11); +if (x_21 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_4); -if (x_20 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_4); +if (x_22 == 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; -x_21 = lean_ctor_get(x_4, 10); -lean_dec(x_21); -x_22 = lean_ctor_get(x_4, 9); -lean_dec(x_22); -x_23 = lean_ctor_get(x_4, 8); +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; +x_23 = lean_ctor_get(x_4, 11); lean_dec(x_23); -x_24 = lean_ctor_get(x_4, 7); +x_24 = lean_ctor_get(x_4, 10); lean_dec(x_24); -x_25 = lean_ctor_get(x_4, 6); +x_25 = lean_ctor_get(x_4, 9); lean_dec(x_25); -x_26 = lean_ctor_get(x_4, 5); +x_26 = lean_ctor_get(x_4, 8); lean_dec(x_26); -x_27 = lean_ctor_get(x_4, 4); +x_27 = lean_ctor_get(x_4, 7); lean_dec(x_27); -x_28 = lean_ctor_get(x_4, 3); +x_28 = lean_ctor_get(x_4, 6); lean_dec(x_28); -x_29 = lean_ctor_get(x_4, 2); +x_29 = lean_ctor_get(x_4, 5); lean_dec(x_29); -x_30 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 4); lean_dec(x_30); -x_31 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 3); lean_dec(x_31); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_10, x_32); +x_32 = lean_ctor_get(x_4, 2); +lean_dec(x_32); +x_33 = lean_ctor_get(x_4, 1); +lean_dec(x_33); +x_34 = lean_ctor_get(x_4, 0); +lean_dec(x_34); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_10, x_35); lean_dec(x_10); -lean_ctor_set(x_4, 3, x_33); -x_34 = l_Lean_Meta_whnfHeadPred___lambda__1___closed__1; -x_35 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__3(x_1, x_34, x_2, x_3, x_4, x_5, x_6); -return x_35; +lean_ctor_set(x_4, 3, x_36); +x_37 = l_Lean_Meta_whnfHeadPred___lambda__1___closed__1; +x_38 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__3(x_1, x_37, x_2, x_3, x_4, x_5, x_6); +return x_38; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_dec(x_4); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_10, x_36); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_10, x_39); lean_dec(x_10); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_7); -lean_ctor_set(x_38, 1, x_8); -lean_ctor_set(x_38, 2, x_9); -lean_ctor_set(x_38, 3, x_37); -lean_ctor_set(x_38, 4, x_11); -lean_ctor_set(x_38, 5, x_12); -lean_ctor_set(x_38, 6, x_13); -lean_ctor_set(x_38, 7, x_14); -lean_ctor_set(x_38, 8, x_15); -lean_ctor_set(x_38, 9, x_16); -lean_ctor_set(x_38, 10, x_17); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_18); -x_39 = l_Lean_Meta_whnfHeadPred___lambda__1___closed__1; -x_40 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__3(x_1, x_39, x_2, x_3, x_38, x_5, x_6); -return x_40; +x_41 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_41, 0, x_7); +lean_ctor_set(x_41, 1, x_8); +lean_ctor_set(x_41, 2, x_9); +lean_ctor_set(x_41, 3, x_40); +lean_ctor_set(x_41, 4, x_11); +lean_ctor_set(x_41, 5, x_12); +lean_ctor_set(x_41, 6, x_13); +lean_ctor_set(x_41, 7, x_14); +lean_ctor_set(x_41, 8, x_15); +lean_ctor_set(x_41, 9, x_16); +lean_ctor_set(x_41, 10, x_17); +lean_ctor_set(x_41, 11, x_19); +lean_ctor_set_uint8(x_41, sizeof(void*)*12, x_18); +lean_ctor_set_uint8(x_41, sizeof(void*)*12 + 1, x_20); +x_42 = l_Lean_Meta_whnfHeadPred___lambda__1___closed__1; +x_43 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfImp___spec__3(x_1, x_42, x_2, x_3, x_41, x_5, x_6); +return x_43; } } else { -lean_object* x_41; +lean_object* x_44; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -39647,12 +39655,12 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_41 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_inferTypeImp___spec__1(x_12, x_2, x_3, x_4, x_5, x_6); +x_44 = l_Lean_throwMaxRecDepthAt___at_Lean_Meta_inferTypeImp___spec__1(x_12, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_41; +return x_44; } } } diff --git a/stage0/stdlib/Lean/Parser/Extension.c b/stage0/stdlib/Lean/Parser/Extension.c index 7a1f0ea928..8760a2a1bd 100644 --- a/stage0/stdlib/Lean/Parser/Extension.c +++ b/stage0/stdlib/Lean/Parser/Extension.c @@ -66,6 +66,7 @@ static lean_object* l_Lean_Parser_declareLeadingBuiltinParser___closed__1; static lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__8; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3698____closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Parser_Extension_0__Lean_Parser_withNamespaces___spec__2(uint8_t, lean_object*, size_t, size_t, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Parser_getCategory___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_getCategory(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Parser_isValidSyntaxNodeKind___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -111,7 +112,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_throwP static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_84____closed__11; lean_object* l_Lean_declareBuiltinDocStringAndRanges(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_registerParserAttributeHook(lean_object*, lean_object*); -lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_nonReservedSymbol(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Parser_runParserAttributeHooks___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_5840____closed__3; @@ -628,6 +628,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3698____closed__14; +lean_object* l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2154_(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_84____closed__10; uint8_t l_Lean_Exception_isRuntime(lean_object*); @@ -12547,103 +12548,107 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; uint8_t x_18; x_16 = lean_ctor_get(x_12, 0); x_17 = lean_ctor_get(x_12, 1); -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ if (lean_obj_tag(x_16) == 0) { -uint8_t x_19; +uint8_t x_20; lean_free_object(x_12); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 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_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = l_Lean_MessageData_ofName(x_1); -x_23 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; +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; uint8_t x_30; +x_21 = lean_ctor_get(x_16, 1); +x_22 = lean_ctor_get(x_16, 0); +lean_dec(x_22); +x_23 = l_Lean_MessageData_ofName(x_1); +x_24 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; lean_ctor_set_tag(x_16, 6); -lean_ctor_set(x_16, 1, x_22); -lean_ctor_set(x_16, 0, x_23); -x_24 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; +lean_ctor_set(x_16, 1, x_23); +lean_ctor_set(x_16, 0, x_24); +x_25 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; lean_ctor_set_tag(x_3, 6); -lean_ctor_set(x_3, 1, x_24); +lean_ctor_set(x_3, 1, x_25); lean_ctor_set(x_3, 0, x_16); -x_25 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_25, 0, x_3); -lean_ctor_set(x_25, 1, x_20); -x_26 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; -x_27 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_27, x_4, x_5, x_17); +x_26 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_26, 0, x_3); +lean_ctor_set(x_26, 1, x_21); +x_27 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; +x_28 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_28, x_4, x_5, x_17); lean_dec(x_5); lean_dec(x_4); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -return x_28; +return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_ctor_get(x_28, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_28); -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_dec(x_29); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } 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; 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_33 = lean_ctor_get(x_16, 1); -lean_inc(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; +x_34 = lean_ctor_get(x_16, 1); +lean_inc(x_34); lean_dec(x_16); -x_34 = l_Lean_MessageData_ofName(x_1); -x_35 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; -x_36 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; +x_35 = l_Lean_MessageData_ofName(x_1); +x_36 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; +x_37 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; lean_ctor_set_tag(x_3, 6); -lean_ctor_set(x_3, 1, x_37); -lean_ctor_set(x_3, 0, x_36); -x_38 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_38, 0, x_3); -lean_ctor_set(x_38, 1, x_33); -x_39 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; -x_40 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_40, x_4, x_5, x_17); +lean_ctor_set(x_3, 1, x_38); +lean_ctor_set(x_3, 0, x_37); +x_39 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_39, 0, x_3); +lean_ctor_set(x_39, 1, x_34); +x_40 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; +x_41 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_41, x_4, x_5, x_17); lean_dec(x_5); lean_dec(x_4); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); +x_43 = lean_ctor_get(x_42, 0); 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; +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_41); - x_44 = lean_box(0); + lean_dec_ref(x_42); + x_45 = lean_box(0); } -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); } else { - x_45 = x_44; + x_46 = x_45; } -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } else @@ -12666,145 +12671,154 @@ return x_12; } else { -lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_46 = lean_ctor_get(x_12, 0); -x_47 = lean_ctor_get(x_12, 1); +lean_free_object(x_3); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_12; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_12, 0); +x_48 = lean_ctor_get(x_12, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); lean_dec(x_12); -x_48 = l_Lean_Exception_isRuntime(x_46); -if (x_48 == 0) +x_49 = l_Lean_Exception_isInterrupt(x_47); +if (x_49 == 0) { -if (lean_obj_tag(x_46) == 0) +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_47); +if (x_50 == 0) { -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; -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_50 = x_46; +if (lean_obj_tag(x_47) == 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_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_51 = lean_ctor_get(x_47, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_52 = x_47; } else { - lean_dec_ref(x_46); - x_50 = lean_box(0); + lean_dec_ref(x_47); + x_52 = lean_box(0); } -x_51 = l_Lean_MessageData_ofName(x_1); -x_52 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; -if (lean_is_scalar(x_50)) { - x_53 = lean_alloc_ctor(6, 2, 0); +x_53 = l_Lean_MessageData_ofName(x_1); +x_54 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; +if (lean_is_scalar(x_52)) { + x_55 = lean_alloc_ctor(6, 2, 0); } else { - x_53 = x_50; - lean_ctor_set_tag(x_53, 6); + x_55 = x_52; + lean_ctor_set_tag(x_55, 6); } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_54 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; lean_ctor_set_tag(x_3, 6); -lean_ctor_set(x_3, 1, x_54); -lean_ctor_set(x_3, 0, x_53); -x_55 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_55, 0, x_3); -lean_ctor_set(x_55, 1, x_49); -x_56 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; +lean_ctor_set(x_3, 1, x_56); +lean_ctor_set(x_3, 0, x_55); x_57 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_57, x_4, x_5, x_47); +lean_ctor_set(x_57, 0, x_3); +lean_ctor_set(x_57, 1, x_51); +x_58 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; +x_59 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_59, x_4, x_5, x_48); lean_dec(x_5); lean_dec(x_4); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; +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_58); - x_61 = lean_box(0); + lean_dec_ref(x_60); + x_63 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_62 = x_61; + x_64 = x_63; } -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -else -{ -lean_object* x_63; -lean_free_object(x_3); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_46); -lean_ctor_set(x_63, 1, x_47); -return x_63; -} -} -else -{ -lean_object* x_64; -lean_free_object(x_3); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_46); -lean_ctor_set(x_64, 1, x_47); +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); return x_64; } +else +{ +lean_object* x_65; +lean_free_object(x_3); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_47); +lean_ctor_set(x_65, 1, x_48); +return x_65; +} +} +else +{ +lean_object* x_66; +lean_free_object(x_3); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_47); +lean_ctor_set(x_66, 1, x_48); +return x_66; +} +} +else +{ +lean_object* x_67; +lean_free_object(x_3); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_47); +lean_ctor_set(x_67, 1, x_48); +return x_67; +} } } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_3, 0); -x_66 = lean_ctor_get(x_3, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_3, 0); +x_69 = lean_ctor_get(x_3, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_3); lean_inc(x_5); lean_inc(x_4); -x_67 = l_Lean_Parser_addToken(x_65, x_2, x_4, x_5, x_6); -if (lean_obj_tag(x_67) == 0) +x_70 = l_Lean_Parser_addToken(x_68, x_2, x_4, x_5, x_6); +if (lean_obj_tag(x_70) == 0) { -lean_object* x_68; -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -lean_dec(x_67); -x_3 = x_66; -x_6 = x_68; +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_3 = x_69; +x_6 = x_71; goto _start; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_66); -x_70 = lean_ctor_get(x_67, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_67, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_72 = x_67; -} else { - lean_dec_ref(x_67); - x_72 = lean_box(0); -} -x_73 = l_Lean_Exception_isRuntime(x_70); -if (x_73 == 0) -{ -if (lean_obj_tag(x_70) == 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; 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_dec(x_72); +lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +lean_dec(x_69); +x_73 = lean_ctor_get(x_70, 0); +lean_inc(x_73); x_74 = lean_ctor_get(x_70, 1); lean_inc(x_74); if (lean_is_exclusive(x_70)) { @@ -12815,81 +12829,118 @@ if (lean_is_exclusive(x_70)) { lean_dec_ref(x_70); x_75 = lean_box(0); } -x_76 = l_Lean_MessageData_ofName(x_1); -x_77 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; +x_76 = l_Lean_Exception_isInterrupt(x_73); +if (x_76 == 0) +{ +uint8_t x_77; +x_77 = l_Lean_Exception_isRuntime(x_73); +if (x_77 == 0) +{ +if (lean_obj_tag(x_73) == 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; 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_dec(x_75); +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_79 = x_73; +} else { + lean_dec_ref(x_73); + x_79 = lean_box(0); +} +x_80 = l_Lean_MessageData_ofName(x_1); +x_81 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__2; +if (lean_is_scalar(x_79)) { + x_82 = lean_alloc_ctor(6, 2, 0); +} else { + x_82 = x_79; + lean_ctor_set_tag(x_82, 6); +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +x_83 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; +x_84 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_78); +x_86 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_87, x_4, x_5, x_74); +lean_dec(x_5); +lean_dec(x_4); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; +} else { + lean_dec_ref(x_88); + 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); +return x_92; +} +else +{ +lean_object* x_93; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); if (lean_is_scalar(x_75)) { - x_78 = lean_alloc_ctor(6, 2, 0); + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_78 = x_75; - lean_ctor_set_tag(x_78, 6); + x_93 = x_75; } -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__3; -x_80 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_74); -x_82 = l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1___closed__4; -x_83 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_throwError___at_Lean_registerTagAttribute___spec__1(x_83, x_4, x_5, x_71); -lean_dec(x_5); -lean_dec(x_4); -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); - x_87 = x_84; -} else { - lean_dec_ref(x_84); - x_87 = lean_box(0); -} -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_87; -} -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_86); -return x_88; -} -else -{ -lean_object* x_89; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -if (lean_is_scalar(x_72)) { - x_89 = lean_alloc_ctor(1, 2, 0); -} else { - x_89 = x_72; -} -lean_ctor_set(x_89, 0, x_70); -lean_ctor_set(x_89, 1, x_71); -return x_89; +lean_ctor_set(x_93, 0, x_73); +lean_ctor_set(x_93, 1, x_74); +return x_93; } } else { -lean_object* x_90; +lean_object* x_94; lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -if (lean_is_scalar(x_72)) { - x_90 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_75)) { + x_94 = lean_alloc_ctor(1, 2, 0); } else { - x_90 = x_72; + x_94 = x_75; } -lean_ctor_set(x_90, 0, x_70); -lean_ctor_set(x_90, 1, x_71); -return x_90; +lean_ctor_set(x_94, 0, x_73); +lean_ctor_set(x_94, 1, x_74); +return x_94; +} +} +else +{ +lean_object* x_95; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_75)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_75; +} +lean_ctor_set(x_95, 0, x_73); +lean_ctor_set(x_95, 1, x_74); +return x_95; } } } @@ -14664,7 +14715,7 @@ lean_object* x_7; lean_object* x_8; lean_inc(x_5); lean_inc(x_3); x_7 = l_Lean_Parser_addParserCategory(x_1, x_3, x_5, x_4); -x_8 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__1(x_7, x_6); +x_8 = l_IO_ofExcept___at_Lean_declareBuiltin___spec__2(x_7, x_6); 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; lean_object* x_15; lean_object* x_16; lean_object* x_17; diff --git a/stage0/stdlib/Lean/Parser/Extra.c b/stage0/stdlib/Lean/Parser/Extra.c index 1994723eb3..f1fc733938 100644 --- a/stage0/stdlib/Lean/Parser/Extra.c +++ b/stage0/stdlib/Lean/Parser/Extra.c @@ -69,6 +69,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_manyIndent(lean_object*); static lean_object* l_Lean_Parser_hygieneInfo_formatter___closed__3; LEAN_EXPORT lean_object* l_Lean_Parser_mkAntiquot_parenthesizer(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser___aux__Lean__Parser__Extra______macroRules__Lean__Parser__termRegister__parser__alias_x28Kind_x3a_x3d___x29______________1___lambda__1___closed__50; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_1734____closed__17; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_1734____closed__50; LEAN_EXPORT lean_object* l_Lean_Parser_ppRealFill___boxed(lean_object*); @@ -4685,9 +4686,13 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_26, 0); x_31 = lean_ctor_get(x_26, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (x_32 == 0) { +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ if (lean_obj_tag(x_30) == 0) { lean_dec(x_24); @@ -4701,13 +4706,13 @@ return x_26; } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_30, 0); -lean_inc(x_33); -x_34 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__2; -x_35 = lean_nat_dec_eq(x_34, x_33); -lean_dec(x_33); -if (x_35 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +x_35 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__2; +x_36 = lean_nat_dec_eq(x_35, x_34); +lean_dec(x_34); +if (x_36 == 0) { lean_dec(x_24); lean_dec(x_9); @@ -4720,44 +4725,44 @@ return x_26; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_free_object(x_26); lean_dec(x_30); -x_36 = lean_st_ref_set(x_7, x_24, x_31); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_sub(x_3, x_38); -x_40 = lean_nat_dec_eq(x_12, x_39); -lean_dec(x_39); -if (x_40 == 0) +x_37 = lean_st_ref_set(x_7, x_24, x_31); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_sub(x_3, x_39); +x_41 = lean_nat_dec_eq(x_12, x_40); +lean_dec(x_40); +if (x_41 == 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; -x_41 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__4; -x_42 = l_Lean_PrettyPrinter_Formatter_pushWhitespace(x_41, x_6, x_7, x_8, x_9, x_37); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_43); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -x_46 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; -x_14 = x_46; -x_15 = x_45; +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_42 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__4; +x_43 = l_Lean_PrettyPrinter_Formatter_pushWhitespace(x_42, x_6, x_7, x_8, x_9, x_38); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_44); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; +x_14 = x_47; +x_15 = x_46; goto block_18; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_37); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; -x_14 = x_49; -x_15 = x_48; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_38); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; +x_14 = x_50; +x_15 = x_49; goto block_18; } } @@ -4777,18 +4782,34 @@ return x_26; } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = lean_ctor_get(x_26, 0); -x_51 = lean_ctor_get(x_26, 1); +lean_dec(x_24); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_26; +} +} +else +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_26, 0); +x_52 = lean_ctor_get(x_26, 1); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); lean_dec(x_26); -x_52 = l_Lean_Exception_isRuntime(x_50); -if (x_52 == 0) +x_53 = l_Lean_Exception_isInterrupt(x_51); +if (x_53 == 0) { -if (lean_obj_tag(x_50) == 0) +uint8_t x_54; +x_54 = l_Lean_Exception_isRuntime(x_51); +if (x_54 == 0) { -lean_object* x_53; +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_55; lean_dec(x_24); lean_dec(x_9); lean_dec(x_8); @@ -4796,22 +4817,22 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_52); +return x_55; } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_50, 0); -lean_inc(x_54); -x_55 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__2; -x_56 = lean_nat_dec_eq(x_55, x_54); -lean_dec(x_54); -if (x_56 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +x_57 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__2; +x_58 = lean_nat_dec_eq(x_57, x_56); +lean_dec(x_56); +if (x_58 == 0) { -lean_object* x_57; +lean_object* x_59; lean_dec(x_24); lean_dec(x_9); lean_dec(x_8); @@ -4819,50 +4840,50 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_50); -lean_ctor_set(x_57, 1, x_51); -return x_57; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_51); +lean_ctor_set(x_59, 1, x_52); +return x_59; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -lean_dec(x_50); -x_58 = lean_st_ref_set(x_7, x_24, x_51); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = lean_unsigned_to_nat(1u); -x_61 = lean_nat_sub(x_3, x_60); -x_62 = lean_nat_dec_eq(x_12, x_61); -lean_dec(x_61); -if (x_62 == 0) +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_51); +x_60 = lean_st_ref_set(x_7, x_24, x_52); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_unsigned_to_nat(1u); +x_63 = lean_nat_sub(x_3, x_62); +x_64 = lean_nat_dec_eq(x_12, x_63); +lean_dec(x_63); +if (x_64 == 0) { -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_63 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__4; -x_64 = l_Lean_PrettyPrinter_Formatter_pushWhitespace(x_63, x_6, x_7, x_8, x_9, x_59); -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_65); +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_65 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__4; +x_66 = l_Lean_PrettyPrinter_Formatter_pushWhitespace(x_65, x_6, x_7, x_8, x_9, x_61); x_67 = lean_ctor_get(x_66, 1); lean_inc(x_67); lean_dec(x_66); -x_68 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; -x_14 = x_68; -x_15 = x_67; +x_68 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_67); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; +x_14 = x_70; +x_15 = x_69; goto block_18; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_59); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; -x_14 = x_71; -x_15 = x_70; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(x_7, x_8, x_9, x_61); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; +x_14 = x_73; +x_15 = x_72; goto block_18; } } @@ -4870,7 +4891,7 @@ goto block_18; } else { -lean_object* x_72; +lean_object* x_74; lean_dec(x_24); lean_dec(x_9); lean_dec(x_8); @@ -4878,60 +4899,76 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_50); -lean_ctor_set(x_72, 1, x_51); -return x_72; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_51); +lean_ctor_set(x_74, 1, x_52); +return x_74; +} +} +else +{ +lean_object* x_75; +lean_dec(x_24); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_51); +lean_ctor_set(x_75, 1, x_52); +return x_75; } } } } else { -lean_object* x_73; +lean_object* x_76; lean_inc(x_1); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_73 = lean_apply_5(x_1, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_73) == 0) +x_76 = lean_apply_5(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -x_75 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; -x_14 = x_75; -x_15 = x_74; +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = l_List_forIn_loop___at_Lean_Parser_sepByIndent_formatter___spec__2___closed__1; +x_14 = x_78; +x_15 = x_77; goto block_18; } else { -uint8_t x_76; +uint8_t x_79; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_73); -if (x_76 == 0) +x_79 = !lean_is_exclusive(x_76); +if (x_79 == 0) { -return x_73; +return x_76; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_73, 0); -x_78 = lean_ctor_get(x_73, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_73); -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; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_76, 0); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_76); +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; } } } diff --git a/stage0/stdlib/Lean/Parser/Module.c b/stage0/stdlib/Lean/Parser/Module.c index f6baab89fd..51a9339752 100644 --- a/stage0/stdlib/Lean/Parser/Module.c +++ b/stage0/stdlib/Lean/Parser/Module.c @@ -50,7 +50,6 @@ lean_object* l_Lean_Parser_many_parenthesizer(lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Parser_testParseModuleAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_leadingNode(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_categoryParser(lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Module_prelude_formatter___closed__2; static lean_object* l_Lean_Parser_Module_prelude___closed__2; @@ -168,6 +167,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Module_prelude_parenthesizer___cl static lean_object* l_Lean_Parser_Module_header_parenthesizer___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +uint8_t l_Lean_MessageLog_hasUnreported(lean_object*); static lean_object* l_Lean_Parser_Module_import___closed__9; lean_object* l_Lean_Parser_many_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailInfo(lean_object*); @@ -232,6 +232,7 @@ static lean_object* l_Lean_Parser_Module_header___closed__5; lean_object* l_Lean_Parser_withCache(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Module_module_formatter___closed__1; extern lean_object* l_Lean_Parser_skip; +static lean_object* l_Lean_Parser_parseHeader___closed__6; static lean_object* l_Lean_Parser_parseHeader___closed__4; lean_object* l_Lean_Parser_identWithPartialTrailingDot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Module_header_formatter___closed__4; @@ -274,7 +275,6 @@ static lean_object* l_Lean_Parser_Module_module_formatter___closed__3; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage_lastTrailing(lean_object*); lean_object* l_Lean_mkListNode(lean_object*); -uint8_t l_Lean_PersistentArray_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Parser_Module_module_formatter___closed__5; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Parser_parseCommand___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_formatterAttribute; @@ -324,6 +324,7 @@ lean_object* l_Lean_Parser_SyntaxStack_back(lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Parser_parseCommand___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Module_prelude; static lean_object* l_Lean_Parser_Module_module___closed__6; +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Module_import_formatter___closed__7; static lean_object* l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__6; lean_object* l_Lean_Message_toString(lean_object*, uint8_t, lean_object*); @@ -2392,7 +2393,7 @@ lean_inc(x_13); lean_dec(x_10); lean_inc(x_1); x_14 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_1, x_11, x_12, x_13); -x_15 = l_Lean_PersistentArray_push___rarg(x_5, x_14); +x_15 = l_Lean_MessageLog_add(x_14, x_5); x_16 = 1; x_17 = lean_usize_add(x_4, x_16); x_4 = x_17; @@ -2459,6 +2460,18 @@ lean_ctor_set_usize(x_5, 4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Parser_parseHeader___closed__6() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Parser_parseHeader___closed__5; +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; +} +} LEAN_EXPORT lean_object* l_Lean_Parser_parseHeader(lean_object* x_1, lean_object* x_2) { _start: { @@ -2498,7 +2511,7 @@ x_19 = lean_array_get_size(x_18); x_20 = lean_usize_of_nat(x_19); lean_dec(x_19); x_21 = 0; -x_22 = l_Lean_Parser_parseHeader___closed__5; +x_22 = l_Lean_Parser_parseHeader___closed__6; x_23 = l_Array_forInUnsafe_loop___at_Lean_Parser_parseHeader___spec__1(x_1, x_18, x_20, x_21, x_22, x_6); lean_dec(x_18); if (x_17 == 0) @@ -3027,7 +3040,7 @@ lean_inc(x_11); lean_dec(x_8); lean_inc(x_1); x_12 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_1, x_9, x_10, x_11); -x_13 = l_Lean_PersistentArray_push___rarg(x_5, x_12); +x_13 = l_Lean_MessageLog_add(x_12, x_5); x_14 = 1; x_15 = lean_usize_add(x_4, x_14); x_4 = x_15; @@ -3124,7 +3137,7 @@ if (x_7 == 0) lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_inc(x_10); x_12 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_2, x_3, x_10, x_4); -x_13 = l_Lean_PersistentArray_push___rarg(x_5, x_12); +x_13 = l_Lean_MessageLog_add(x_12, x_5); x_14 = lean_box(0); x_15 = l_Lean_Loop_forIn_loop___at_Lean_Parser_parseCommand___spec__2___lambda__1(x_11, x_10, x_6, x_13, x_7, x_8, x_14); return x_15; @@ -3136,7 +3149,7 @@ if (x_11 == 0) lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_inc(x_10); x_16 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_2, x_3, x_10, x_4); -x_17 = l_Lean_PersistentArray_push___rarg(x_5, x_16); +x_17 = l_Lean_MessageLog_add(x_16, x_5); x_18 = lean_box(0); x_19 = l_Lean_Loop_forIn_loop___at_Lean_Parser_parseCommand___spec__2___lambda__1(x_11, x_10, x_6, x_17, x_7, x_8, x_18); return x_19; @@ -4315,9 +4328,12 @@ return x_37; LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___at_Lean_Parser_testParseModuleAux_parse___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l_Lean_PersistentArray_forM___at_Lean_Parser_testParseModuleAux_parse___spec__2(x_2, x_1, x_3); -return x_4; +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Lean_PersistentArray_forM___at_Lean_Parser_testParseModuleAux_parse___spec__2(x_2, x_4, x_3); +return x_5; } } LEAN_EXPORT lean_object* l_Lean_Parser_testParseModuleAux_parse___lambda__1(lean_object* x_1, lean_object* x_2) { @@ -4431,14 +4447,21 @@ lean_dec(x_14); lean_dec(x_12); lean_dec(x_2); lean_dec(x_1); -x_19 = l_Lean_PersistentArray_isEmpty___rarg(x_15); +x_19 = l_Lean_MessageLog_hasUnreported(x_15); if (x_19 == 0) { +lean_dec(x_15); +lean_ctor_set(x_11, 1, x_6); +lean_ctor_set(x_11, 0, x_5); +return x_11; +} +else +{ lean_object* x_20; lean_object* x_21; lean_free_object(x_11); lean_dec(x_5); x_20 = l_Lean_Parser_testParseModuleAux_parse___closed__1; -x_21 = l_Lean_PersistentArray_forM___at_Lean_Parser_testParseModuleAux_parse___spec__2(x_20, x_15, x_6); +x_21 = l_Lean_MessageLog_forM___at_Lean_Parser_testParseModuleAux_parse___spec__1(x_15, x_20, x_6); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -4489,13 +4512,6 @@ return x_31; } } } -else -{ -lean_dec(x_15); -lean_ctor_set(x_11, 1, x_6); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} } } else @@ -4524,75 +4540,75 @@ lean_dec(x_32); lean_dec(x_12); lean_dec(x_2); lean_dec(x_1); -x_37 = l_Lean_PersistentArray_isEmpty___rarg(x_33); +x_37 = l_Lean_MessageLog_hasUnreported(x_33); if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; -lean_dec(x_5); -x_38 = l_Lean_Parser_testParseModuleAux_parse___closed__1; -x_39 = l_Lean_PersistentArray_forM___at_Lean_Parser_testParseModuleAux_parse___spec__2(x_38, x_33, x_6); -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 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -x_42 = l_Lean_Parser_testParseModuleAux_parse___closed__3; -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(1, 2, 0); -} else { - x_43 = x_41; - lean_ctor_set_tag(x_43, 1); -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_39, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_39, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_46 = x_39; -} else { - lean_dec_ref(x_39); - x_46 = lean_box(0); -} -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(1, 2, 0); -} else { - x_47 = x_46; -} -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -else -{ -lean_object* x_48; +lean_object* x_38; lean_dec(x_33); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_5); -lean_ctor_set(x_48, 1, x_6); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_5); +lean_ctor_set(x_38, 1, x_6); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_5); +x_39 = l_Lean_Parser_testParseModuleAux_parse___closed__1; +x_40 = l_Lean_MessageLog_forM___at_Lean_Parser_testParseModuleAux_parse___spec__1(x_33, x_39, x_6); +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 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_42 = x_40; +} else { + lean_dec_ref(x_40); + x_42 = lean_box(0); +} +x_43 = l_Lean_Parser_testParseModuleAux_parse___closed__3; +if (lean_is_scalar(x_42)) { + x_44 = lean_alloc_ctor(1, 2, 0); +} else { + x_44 = x_42; + lean_ctor_set_tag(x_44, 1); +} +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; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + 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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Parser_testParseModuleAux_parse___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: { @@ -5142,6 +5158,8 @@ l_Lean_Parser_parseHeader___closed__4 = _init_l_Lean_Parser_parseHeader___closed lean_mark_persistent(l_Lean_Parser_parseHeader___closed__4); l_Lean_Parser_parseHeader___closed__5 = _init_l_Lean_Parser_parseHeader___closed__5(); lean_mark_persistent(l_Lean_Parser_parseHeader___closed__5); +l_Lean_Parser_parseHeader___closed__6 = _init_l_Lean_Parser_parseHeader___closed__6(); +lean_mark_persistent(l_Lean_Parser_parseHeader___closed__6); l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__1 = _init_l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__1(); lean_mark_persistent(l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__1); l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__2 = _init_l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI___closed__2(); diff --git a/stage0/stdlib/Lean/ParserCompiler.c b/stage0/stdlib/Lean/ParserCompiler.c index 4d1538af60..bfee5a320d 100644 --- a/stage0/stdlib/Lean/ParserCompiler.c +++ b/stage0/stdlib/Lean/ParserCompiler.c @@ -67,6 +67,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_comp lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg(lean_object*, uint8_t, uint8_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_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(lean_object*, lean_object*, uint8_t, uint8_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*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__20; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__54(lean_object*); @@ -2362,20 +2363,20 @@ lean_inc(x_10); lean_dec(x_8); if (lean_obj_tag(x_9) == 6) { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__10; -x_115 = 0; -x_116 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_9, x_114, x_115, x_2, x_3, x_4, x_5, x_10); -return x_116; +lean_object* x_123; uint8_t x_124; lean_object* x_125; +x_123 = l_Lean_ParserCompiler_parserNodeKind_x3f___closed__10; +x_124 = 0; +x_125 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_9, x_123, x_124, x_2, x_3, x_4, x_5, x_10); +return x_125; } else { -lean_object* x_117; -x_117 = lean_box(0); -x_11 = x_117; -goto block_113; +lean_object* x_126; +x_126 = lean_box(0); +x_11 = x_126; +goto block_122; } -block_113: +block_122: { lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_dec(x_11); @@ -2517,14 +2518,18 @@ if (x_55 == 0) { lean_object* x_56; uint8_t x_57; x_56 = lean_ctor_get(x_47, 0); -x_57 = l_Lean_Exception_isRuntime(x_56); +x_57 = l_Lean_Exception_isInterrupt(x_56); if (x_57 == 0) { -lean_object* x_58; +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_56); +if (x_58 == 0) +{ +lean_object* x_59; lean_dec(x_56); -x_58 = lean_box(0); +x_59 = lean_box(0); lean_ctor_set_tag(x_47, 0); -lean_ctor_set(x_47, 0, x_58); +lean_ctor_set(x_47, 0, x_59); return x_47; } else @@ -2534,30 +2539,48 @@ return x_47; } else { -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_47, 0); -x_60 = lean_ctor_get(x_47, 1); +return x_47; +} +} +else +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_47, 0); +x_61 = lean_ctor_get(x_47, 1); +lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); lean_dec(x_47); -x_61 = l_Lean_Exception_isRuntime(x_59); -if (x_61 == 0) +x_62 = l_Lean_Exception_isInterrupt(x_60); +if (x_62 == 0) { -lean_object* x_62; lean_object* x_63; -lean_dec(x_59); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -return x_63; +uint8_t x_63; +x_63 = l_Lean_Exception_isRuntime(x_60); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_60); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_61); +return x_65; } else { -lean_object* x_64; -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_59); -lean_ctor_set(x_64, 1, x_60); -return x_64; +lean_object* x_66; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_60); +lean_ctor_set(x_66, 1, x_61); +return x_66; +} +} +else +{ +lean_object* x_67; +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_60); +lean_ctor_set(x_67, 1, x_61); +return x_67; } } } @@ -2565,95 +2588,117 @@ return x_64; } else { -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_65 = lean_unsigned_to_nat(0u); -x_66 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_65); -x_67 = lean_nat_sub(x_66, x_65); -lean_dec(x_66); -x_68 = lean_unsigned_to_nat(1u); -x_69 = lean_nat_sub(x_67, x_68); -lean_dec(x_67); -x_70 = l_Lean_Expr_getRevArg_x21(x_9, x_69); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_68 = lean_unsigned_to_nat(0u); +x_69 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_68); +x_70 = lean_nat_sub(x_69, x_68); +lean_dec(x_69); +x_71 = lean_unsigned_to_nat(1u); +x_72 = lean_nat_sub(x_70, x_71); +lean_dec(x_70); +x_73 = l_Lean_Expr_getRevArg_x21(x_9, x_72); lean_dec(x_9); -x_71 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_70, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_71) == 0) +x_74 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_73, x_2, x_3, x_4, x_5, x_10); +if (lean_obj_tag(x_74) == 0) { -uint8_t x_72; -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +uint8_t x_75; +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_71, 0); -x_74 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_71, 0, x_74); -return x_71; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_71, 0); -x_76 = lean_ctor_get(x_71, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_71); +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_74, 0); x_77 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_77, 0, 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_76); -return x_78; +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_74, 0, x_77); +return x_74; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_74, 0); +x_79 = lean_ctor_get(x_74, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_74); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_78); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +return x_81; } } else { -uint8_t x_79; -x_79 = !lean_is_exclusive(x_71); -if (x_79 == 0) +uint8_t x_82; +x_82 = !lean_is_exclusive(x_74); +if (x_82 == 0) { -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_71, 0); -x_81 = l_Lean_Exception_isRuntime(x_80); -if (x_81 == 0) +lean_object* x_83; uint8_t x_84; +x_83 = lean_ctor_get(x_74, 0); +x_84 = l_Lean_Exception_isInterrupt(x_83); +if (x_84 == 0) { -lean_object* x_82; -lean_dec(x_80); -x_82 = lean_box(0); -lean_ctor_set_tag(x_71, 0); -lean_ctor_set(x_71, 0, x_82); -return x_71; -} -else -{ -return x_71; -} -} -else -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_71, 0); -x_84 = lean_ctor_get(x_71, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_71); +uint8_t x_85; x_85 = l_Lean_Exception_isRuntime(x_83); if (x_85 == 0) { -lean_object* x_86; lean_object* x_87; +lean_object* x_86; lean_dec(x_83); x_86 = lean_box(0); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_84); -return x_87; +lean_ctor_set_tag(x_74, 0); +lean_ctor_set(x_74, 0, x_86); +return x_74; } else { -lean_object* x_88; -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_83); -lean_ctor_set(x_88, 1, x_84); -return x_88; +return x_74; +} +} +else +{ +return x_74; +} +} +else +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_74, 0); +x_88 = lean_ctor_get(x_74, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_74); +x_89 = l_Lean_Exception_isInterrupt(x_87); +if (x_89 == 0) +{ +uint8_t x_90; +x_90 = l_Lean_Exception_isRuntime(x_87); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_87); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_88); +return x_92; +} +else +{ +lean_object* x_93; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +return x_93; +} +} +else +{ +lean_object* x_94; +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_87); +lean_ctor_set(x_94, 1, x_88); +return x_94; } } } @@ -2661,95 +2706,117 @@ return x_88; } 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; lean_object* x_95; -x_89 = lean_unsigned_to_nat(0u); -x_90 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_89); -x_91 = lean_nat_sub(x_90, x_89); -lean_dec(x_90); -x_92 = lean_unsigned_to_nat(1u); -x_93 = lean_nat_sub(x_91, x_92); -lean_dec(x_91); -x_94 = l_Lean_Expr_getRevArg_x21(x_9, x_93); +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_95 = lean_unsigned_to_nat(0u); +x_96 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_9, x_95); +x_97 = lean_nat_sub(x_96, x_95); +lean_dec(x_96); +x_98 = lean_unsigned_to_nat(1u); +x_99 = lean_nat_sub(x_97, x_98); +lean_dec(x_97); +x_100 = l_Lean_Expr_getRevArg_x21(x_9, x_99); lean_dec(x_9); -x_95 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_94, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_95) == 0) +x_101 = l_Lean_Meta_reduceEval___at_Lean_ParserCompiler_parserNodeKind_x3f___spec__2(x_100, x_2, x_3, x_4, x_5, x_10); +if (lean_obj_tag(x_101) == 0) { -uint8_t x_96; -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) +uint8_t x_102; +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_95, 0); -x_98 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_95, 0, x_98); -return x_95; +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_101, 0); +x_104 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_101, 0, x_104); +return x_101; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_99 = lean_ctor_get(x_95, 0); -x_100 = lean_ctor_get(x_95, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_95); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_99); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -return x_102; +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_101, 0); +x_106 = lean_ctor_get(x_101, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_101); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, 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_106); +return x_108; } } else { -uint8_t x_103; -x_103 = !lean_is_exclusive(x_95); -if (x_103 == 0) -{ -lean_object* x_104; uint8_t x_105; -x_104 = lean_ctor_get(x_95, 0); -x_105 = l_Lean_Exception_isRuntime(x_104); -if (x_105 == 0) -{ -lean_object* x_106; -lean_dec(x_104); -x_106 = lean_box(0); -lean_ctor_set_tag(x_95, 0); -lean_ctor_set(x_95, 0, x_106); -return x_95; -} -else -{ -return x_95; -} -} -else -{ -lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_109 = l_Lean_Exception_isRuntime(x_107); +uint8_t x_109; +x_109 = !lean_is_exclusive(x_101); if (x_109 == 0) { -lean_object* x_110; lean_object* x_111; -lean_dec(x_107); -x_110 = lean_box(0); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_108); -return x_111; +lean_object* x_110; uint8_t x_111; +x_110 = lean_ctor_get(x_101, 0); +x_111 = l_Lean_Exception_isInterrupt(x_110); +if (x_111 == 0) +{ +uint8_t x_112; +x_112 = l_Lean_Exception_isRuntime(x_110); +if (x_112 == 0) +{ +lean_object* x_113; +lean_dec(x_110); +x_113 = lean_box(0); +lean_ctor_set_tag(x_101, 0); +lean_ctor_set(x_101, 0, x_113); +return x_101; } else { -lean_object* x_112; -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_108); -return x_112; +return x_101; +} +} +else +{ +return x_101; +} +} +else +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_114 = lean_ctor_get(x_101, 0); +x_115 = lean_ctor_get(x_101, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_101); +x_116 = l_Lean_Exception_isInterrupt(x_114); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = l_Lean_Exception_isRuntime(x_114); +if (x_117 == 0) +{ +lean_object* x_118; lean_object* x_119; +lean_dec(x_114); +x_118 = lean_box(0); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_115); +return x_119; +} +else +{ +lean_object* x_120; +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_114); +lean_ctor_set(x_120, 1, x_115); +return x_120; +} +} +else +{ +lean_object* x_121; +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_114); +lean_ctor_set(x_121, 1, x_115); +return x_121; } } } @@ -2758,28 +2825,28 @@ return x_112; } else { -uint8_t x_118; +uint8_t x_127; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_118 = !lean_is_exclusive(x_8); -if (x_118 == 0) +x_127 = !lean_is_exclusive(x_8); +if (x_127 == 0) { return x_8; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_8, 0); -x_120 = lean_ctor_get(x_8, 1); -lean_inc(x_120); -lean_inc(x_119); +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_8, 0); +x_129 = lean_ctor_get(x_8, 1); +lean_inc(x_129); +lean_inc(x_128); lean_dec(x_8); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; +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; } } } @@ -60632,7 +60699,7 @@ lean_inc(x_3); x_8 = l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(x_3, 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_62; uint8_t x_63; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_65; uint8_t x_66; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); @@ -60640,102 +60707,102 @@ lean_inc(x_10); lean_dec(x_8); x_11 = l_Lean_ConstantInfo_type(x_9); lean_dec(x_9); -x_62 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2; -x_63 = l_Lean_Expr_isConstOf(x_11, x_62); -if (x_63 == 0) +x_65 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2; +x_66 = l_Lean_Expr_isConstOf(x_11, x_65); +if (x_66 == 0) { -lean_object* x_64; uint8_t x_65; -x_64 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; -x_65 = l_Lean_Expr_isConstOf(x_11, x_64); +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; +x_68 = l_Lean_Expr_isConstOf(x_11, x_67); lean_dec(x_11); -if (x_65 == 0) +if (x_68 == 0) { -uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_66 = l_Lean_Name_isAnonymous(x_2); -x_67 = lean_box(0); -x_68 = l_Lean_Expr_const___override(x_3, x_67); -x_69 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__28; -x_70 = lean_st_mk_ref(x_69, x_10); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__12; -lean_inc(x_71); -x_74 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_4, x_66, x_68, x_73, x_71, x_5, x_6, x_72); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_75 = lean_ctor_get(x_74, 1); +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; +x_69 = l_Lean_Name_isAnonymous(x_2); +x_70 = lean_box(0); +x_71 = l_Lean_Expr_const___override(x_3, x_70); +x_72 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__28; +x_73 = lean_st_mk_ref(x_72, x_10); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__12; +lean_inc(x_74); +x_77 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_4, x_69, x_71, x_76, x_74, x_5, x_6, x_75); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_st_ref_get(x_74, x_78); lean_dec(x_74); -x_76 = lean_st_ref_get(x_71, x_75); -lean_dec(x_71); -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 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(x_76, 0, x_79); -return x_76; +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +x_82 = lean_box(0); +lean_ctor_set(x_79, 0, x_82); +return x_79; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_76, 1); -lean_inc(x_80); -lean_dec(x_76); -x_81 = lean_box(0); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } else { -uint8_t x_83; -lean_dec(x_71); -x_83 = !lean_is_exclusive(x_74); -if (x_83 == 0) -{ -return x_74; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_74, 0); -x_85 = lean_ctor_get(x_74, 1); -lean_inc(x_85); -lean_inc(x_84); +uint8_t x_86; lean_dec(x_74); -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; +x_86 = !lean_is_exclusive(x_77); +if (x_86 == 0) +{ +return x_77; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_77, 0); +x_88 = lean_ctor_get(x_77, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_77); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -lean_object* x_87; -x_87 = lean_box(0); -x_12 = x_87; -goto block_61; +lean_object* x_90; +x_90 = lean_box(0); +x_12 = x_90; +goto block_64; } } else { -lean_object* x_88; +lean_object* x_91; lean_dec(x_11); -x_88 = lean_box(0); -x_12 = x_88; -goto block_61; +x_91 = lean_box(0); +x_12 = x_91; +goto block_64; } -block_61: +block_64: { lean_object* x_13; lean_object* x_14; lean_object* x_33; lean_object* x_34; lean_dec(x_12); @@ -60766,51 +60833,55 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; uint8_t x_40; x_38 = lean_ctor_get(x_34, 0); x_39 = lean_ctor_get(x_34, 1); -x_40 = l_Lean_Exception_isRuntime(x_38); +x_40 = l_Lean_Exception_isInterrupt(x_38); if (x_40 == 0) { -lean_object* x_41; lean_object* x_42; +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_free_object(x_34); lean_dec(x_38); -x_41 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; +x_42 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; lean_inc(x_6); lean_inc(x_5); -x_42 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(x_41, x_3, x_5, x_6, x_39); -if (lean_obj_tag(x_42) == 0) +x_43 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(x_42, x_3, x_5, x_6, x_39); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_13 = x_43; -x_14 = x_44; +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_13 = x_44; +x_14 = x_45; goto block_32; } else { -uint8_t x_45; +uint8_t x_46; lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_43); +if (x_46 == 0) { -return x_42; +return x_43; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_43, 0); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_42); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_43); +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; } } } @@ -60825,72 +60896,98 @@ return x_34; } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_34, 0); -x_50 = lean_ctor_get(x_34, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_34); -x_51 = l_Lean_Exception_isRuntime(x_49); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; -lean_dec(x_49); -x_52 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; -lean_inc(x_6); -lean_inc(x_5); -x_53 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(x_52, x_3, x_5, x_6, x_50); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_13 = x_54; -x_14 = x_55; -goto block_32; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_56 = lean_ctor_get(x_53, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_58 = x_53; -} else { - lean_dec_ref(x_53); - 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_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_50); -return x_60; +return x_34; +} +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t 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 = l_Lean_Exception_isInterrupt(x_50); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = l_Lean_Exception_isRuntime(x_50); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +lean_dec(x_50); +x_54 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__30; +lean_inc(x_6); +lean_inc(x_5); +x_55 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__2___rarg(x_54, x_3, x_5, x_6, x_51); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_13 = x_56; +x_14 = x_57; +goto block_32; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_58 = lean_ctor_get(x_55, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_55, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_60 = x_55; +} else { + lean_dec_ref(x_55); + 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); +return x_61; +} +} +else +{ +lean_object* x_62; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_50); +lean_ctor_set(x_62, 1, x_51); +return x_62; +} +} +else +{ +lean_object* x_63; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_50); +lean_ctor_set(x_63, 1, x_51); +return x_63; } } } @@ -60966,28 +61063,28 @@ return x_31; } else { -uint8_t x_89; +uint8_t x_92; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_89 = !lean_is_exclusive(x_8); -if (x_89 == 0) +x_92 = !lean_is_exclusive(x_8); +if (x_92 == 0) { return x_8; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_8, 0); -x_91 = lean_ctor_get(x_8, 1); -lean_inc(x_91); -lean_inc(x_90); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_8, 0); +x_94 = lean_ctor_get(x_8, 1); +lean_inc(x_94); +lean_inc(x_93); lean_dec(x_8); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +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; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter.c b/stage0/stdlib/Lean/PrettyPrinter.c index a4bc1d7867..7ca195f0cb 100644 --- a/stage0/stdlib/Lean/PrettyPrinter.c +++ b/stage0/stdlib/Lean/PrettyPrinter.c @@ -35,6 +35,7 @@ lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_ppSignature___closed__1; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_PrettyPrinter_delab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter___hyg_747____lambda__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter___hyg_747_(lean_object*); LEAN_EXPORT lean_object* l_Lean_PPContext_runMetaM___rarg(lean_object*, lean_object*, lean_object*); @@ -100,6 +101,7 @@ static lean_object* l_Lean_PPContext_runCoreM___rarg___closed__6; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_pp_tagAppFns; lean_object* l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_PPContext_runCoreM___rarg___closed__20; static lean_object* l_Lean_MessageData_ofFormatWithInfosM___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter___hyg_815____closed__5; @@ -241,13 +243,13 @@ x_11 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = lean_apply_3(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -257,6 +259,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -267,23 +272,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = lean_apply_3(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = lean_apply_3(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -452,6 +459,18 @@ return x_2; static lean_object* _init_l_Lean_PPContext_runCoreM___rarg___closed__17() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_PPContext_runCoreM___rarg___closed__12; +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_Lean_PPContext_runCoreM___rarg___closed__18() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_PPContext_runCoreM___rarg___closed__14; x_2 = lean_unsigned_to_nat(0u); @@ -461,12 +480,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_PPContext_runCoreM___rarg___closed__18() { +static lean_object* _init_l_Lean_PPContext_runCoreM___rarg___closed__19() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; -x_2 = l_Lean_PPContext_runCoreM___rarg___closed__17; +x_2 = l_Lean_PPContext_runCoreM___rarg___closed__18; x_3 = l_Lean_PPContext_runCoreM___rarg___closed__12; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -475,7 +494,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_PPContext_runCoreM___rarg___closed__19() { +static lean_object* _init_l_Lean_PPContext_runCoreM___rarg___closed__20() { _start: { lean_object* x_1; @@ -486,7 +505,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_PPContext_runCoreM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_17; lean_object* x_18; 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; 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; uint8_t x_76; uint8_t x_77; +lean_object* x_4; lean_object* x_17; lean_object* x_18; 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; 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; uint8_t 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; uint8_t x_79; uint8_t x_80; x_46 = lean_ctor_get(x_1, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_1, 3); @@ -499,94 +518,95 @@ lean_dec(x_1); x_50 = l_Lean_Core_getMaxHeartbeats(x_47); x_51 = l_Lean_PPContext_runCoreM___rarg___closed__5; x_52 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_47, x_51); -x_53 = l_Lean_PPContext_runCoreM___rarg___closed__6; -x_54 = l_Lean_PPContext_runCoreM___rarg___closed__9; -x_55 = l_Lean_PPContext_runCoreM___rarg___closed__12; -x_56 = l_Lean_PPContext_runCoreM___rarg___closed__16; -x_57 = l_Lean_PPContext_runCoreM___rarg___closed__18; -x_58 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_58, 0, x_46); -lean_ctor_set(x_58, 1, x_53); -lean_ctor_set(x_58, 2, x_54); -lean_ctor_set(x_58, 3, x_55); -lean_ctor_set(x_58, 4, x_56); -lean_ctor_set(x_58, 5, x_55); -lean_ctor_set(x_58, 6, x_57); -x_59 = lean_io_get_num_heartbeats(x_3); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_PPContext_runCoreM___rarg___closed__19; -x_63 = l_Lean_PPContext_runCoreM___rarg___closed__4; -x_64 = lean_unsigned_to_nat(0u); -x_65 = lean_unsigned_to_nat(1000u); -x_66 = lean_box(0); -x_67 = l_Lean_firstFrontendMacroScope; +x_53 = lean_box(0); +x_54 = l_Lean_PPContext_runCoreM___rarg___closed__6; +x_55 = l_Lean_PPContext_runCoreM___rarg___closed__9; +x_56 = l_Lean_PPContext_runCoreM___rarg___closed__12; +x_57 = l_Lean_PPContext_runCoreM___rarg___closed__16; +x_58 = l_Lean_PPContext_runCoreM___rarg___closed__17; +x_59 = l_Lean_PPContext_runCoreM___rarg___closed__19; +x_60 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_60, 0, x_46); +lean_ctor_set(x_60, 1, x_54); +lean_ctor_set(x_60, 2, x_55); +lean_ctor_set(x_60, 3, x_56); +lean_ctor_set(x_60, 4, x_57); +lean_ctor_set(x_60, 5, x_58); +lean_ctor_set(x_60, 6, x_59); +x_61 = lean_io_get_num_heartbeats(x_3); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_PPContext_runCoreM___rarg___closed__20; +x_65 = l_Lean_PPContext_runCoreM___rarg___closed__4; +x_66 = lean_unsigned_to_nat(0u); +x_67 = lean_unsigned_to_nat(1000u); +x_68 = lean_box(0); +x_69 = l_Lean_firstFrontendMacroScope; +x_70 = 0; lean_inc(x_47); -x_68 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_68, 0, x_62); -lean_ctor_set(x_68, 1, x_63); -lean_ctor_set(x_68, 2, x_47); -lean_ctor_set(x_68, 3, x_64); -lean_ctor_set(x_68, 4, x_65); -lean_ctor_set(x_68, 5, x_66); -lean_ctor_set(x_68, 6, x_48); -lean_ctor_set(x_68, 7, x_49); -lean_ctor_set(x_68, 8, x_60); -lean_ctor_set(x_68, 9, x_50); -lean_ctor_set(x_68, 10, x_67); -lean_ctor_set_uint8(x_68, sizeof(void*)*11, x_52); -x_69 = lean_st_mk_ref(x_58, x_61); -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_st_ref_get(x_70, x_71); +x_71 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_71, 0, x_64); +lean_ctor_set(x_71, 1, x_65); +lean_ctor_set(x_71, 2, x_47); +lean_ctor_set(x_71, 3, x_66); +lean_ctor_set(x_71, 4, x_67); +lean_ctor_set(x_71, 5, x_68); +lean_ctor_set(x_71, 6, x_48); +lean_ctor_set(x_71, 7, x_49); +lean_ctor_set(x_71, 8, x_62); +lean_ctor_set(x_71, 9, x_50); +lean_ctor_set(x_71, 10, x_69); +lean_ctor_set(x_71, 11, x_53); +lean_ctor_set_uint8(x_71, sizeof(void*)*12, x_52); +lean_ctor_set_uint8(x_71, sizeof(void*)*12 + 1, x_70); +x_72 = lean_st_mk_ref(x_60, x_63); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); lean_dec(x_72); -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -lean_dec(x_73); -x_76 = l_Lean_Kernel_isDiagnosticsEnabled(x_75); +x_75 = lean_st_ref_get(x_73, x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); lean_dec(x_75); -if (x_76 == 0) +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Kernel_isDiagnosticsEnabled(x_78); +lean_dec(x_78); +if (x_79 == 0) { if (x_52 == 0) { -uint8_t x_151; -x_151 = 1; -x_77 = x_151; -goto block_150; -} -else -{ -uint8_t x_152; -x_152 = 0; -x_77 = x_152; -goto block_150; -} -} -else -{ -if (x_52 == 0) -{ -uint8_t x_153; -x_153 = 0; -x_77 = x_153; -goto block_150; -} -else -{ uint8_t x_154; x_154 = 1; -x_77 = x_154; -goto block_150; +x_80 = x_154; +goto block_153; +} +else +{ +x_80 = x_70; +goto block_153; +} +} +else +{ +if (x_52 == 0) +{ +x_80 = x_70; +goto block_153; +} +else +{ +uint8_t x_155; +x_155 = 1; +x_80 = x_155; +goto block_153; } } block_16: @@ -752,302 +772,302 @@ goto block_16; } } } -block_150: +block_153: { -if (x_77 == 0) +if (x_80 == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_78 = lean_st_ref_take(x_70, x_74); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = !lean_is_exclusive(x_79); -if (x_81 == 0) +lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_81 = lean_st_ref_take(x_73, x_77); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = !lean_is_exclusive(x_82); +if (x_84 == 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; -x_82 = lean_ctor_get(x_79, 0); -x_83 = lean_ctor_get(x_79, 4); -lean_dec(x_83); -x_84 = l_Lean_Kernel_enableDiag(x_82, x_52); -lean_ctor_set(x_79, 4, x_56); -lean_ctor_set(x_79, 0, x_84); -x_85 = lean_st_ref_set(x_70, x_79, x_80); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = lean_box(0); -lean_inc(x_70); -x_88 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_87, x_68, x_70, x_86); -if (lean_obj_tag(x_88) == 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; lean_object* x_91; +x_85 = lean_ctor_get(x_82, 0); +x_86 = lean_ctor_get(x_82, 4); +lean_dec(x_86); +x_87 = l_Lean_Kernel_enableDiag(x_85, x_52); +lean_ctor_set(x_82, 4, x_57); +lean_ctor_set(x_82, 0, x_87); +x_88 = lean_st_ref_set(x_73, x_82, x_83); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); +x_90 = lean_box(0); +lean_inc(x_73); +x_91 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_90, x_71, x_73, x_89); +if (lean_obj_tag(x_91) == 0) { -uint8_t x_89; -x_89 = !lean_is_exclusive(x_88); -if (x_89 == 0) -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_88, 1); -x_91 = lean_st_ref_get(x_70, x_90); -lean_dec(x_70); +uint8_t x_92; x_92 = !lean_is_exclusive(x_91); if (x_92 == 0) { -lean_object* x_93; -x_93 = lean_ctor_get(x_91, 0); -lean_ctor_set(x_88, 1, x_93); -lean_ctor_set(x_91, 0, x_88); -x_4 = x_91; +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_91, 1); +x_94 = lean_st_ref_get(x_73, x_93); +lean_dec(x_73); +x_95 = !lean_is_exclusive(x_94); +if (x_95 == 0) +{ +lean_object* x_96; +x_96 = lean_ctor_get(x_94, 0); +lean_ctor_set(x_91, 1, x_96); +lean_ctor_set(x_94, 0, x_91); +x_4 = x_94; goto block_16; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_91, 0); -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_91); -lean_ctor_set(x_88, 1, x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_88); -lean_ctor_set(x_96, 1, x_95); -x_4 = x_96; -goto block_16; -} -} -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; -x_97 = lean_ctor_get(x_88, 0); -x_98 = lean_ctor_get(x_88, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_94, 0); +x_98 = lean_ctor_get(x_94, 1); lean_inc(x_98); lean_inc(x_97); -lean_dec(x_88); -x_99 = lean_st_ref_get(x_70, x_98); -lean_dec(x_70); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_102 = x_99; -} else { - lean_dec_ref(x_99); - x_102 = lean_box(0); -} -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_97); -lean_ctor_set(x_103, 1, x_100); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_102; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_101); -x_4 = x_104; +lean_dec(x_94); +lean_ctor_set(x_91, 1, x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_91); +lean_ctor_set(x_99, 1, x_98); +x_4 = x_99; goto block_16; } } else { -lean_object* x_105; lean_object* x_106; -lean_dec(x_70); -x_105 = lean_ctor_get(x_88, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_88, 1); -lean_inc(x_106); -lean_dec(x_88); -x_17 = x_105; -x_18 = x_106; +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_100 = lean_ctor_get(x_91, 0); +x_101 = lean_ctor_get(x_91, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_91); +x_102 = lean_st_ref_get(x_73, x_101); +lean_dec(x_73); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; +} else { + lean_dec_ref(x_102); + x_105 = lean_box(0); +} +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_100); +lean_ctor_set(x_106, 1, x_103); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_105; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_104); +x_4 = x_107; +goto block_16; +} +} +else +{ +lean_object* x_108; lean_object* x_109; +lean_dec(x_73); +x_108 = lean_ctor_get(x_91, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_91, 1); +lean_inc(x_109); +lean_dec(x_91); +x_17 = x_108; +x_18 = x_109; goto block_45; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_107 = lean_ctor_get(x_79, 0); -x_108 = lean_ctor_get(x_79, 1); -x_109 = lean_ctor_get(x_79, 2); -x_110 = lean_ctor_get(x_79, 3); -x_111 = lean_ctor_get(x_79, 5); -x_112 = lean_ctor_get(x_79, 6); +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; +x_110 = lean_ctor_get(x_82, 0); +x_111 = lean_ctor_get(x_82, 1); +x_112 = lean_ctor_get(x_82, 2); +x_113 = lean_ctor_get(x_82, 3); +x_114 = lean_ctor_get(x_82, 5); +x_115 = lean_ctor_get(x_82, 6); +lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); lean_inc(x_112); lean_inc(x_111); lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_79); -x_113 = l_Lean_Kernel_enableDiag(x_107, x_52); -x_114 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_108); -lean_ctor_set(x_114, 2, x_109); -lean_ctor_set(x_114, 3, x_110); -lean_ctor_set(x_114, 4, x_56); -lean_ctor_set(x_114, 5, x_111); -lean_ctor_set(x_114, 6, x_112); -x_115 = lean_st_ref_set(x_70, x_114, x_80); -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -lean_dec(x_115); -x_117 = lean_box(0); -lean_inc(x_70); -x_118 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_117, x_68, x_70, x_116); -if (lean_obj_tag(x_118) == 0) -{ -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; -x_119 = lean_ctor_get(x_118, 0); +lean_dec(x_82); +x_116 = l_Lean_Kernel_enableDiag(x_110, x_52); +x_117 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_111); +lean_ctor_set(x_117, 2, x_112); +lean_ctor_set(x_117, 3, x_113); +lean_ctor_set(x_117, 4, x_57); +lean_ctor_set(x_117, 5, x_114); +lean_ctor_set(x_117, 6, x_115); +x_118 = lean_st_ref_set(x_73, x_117, x_83); +x_119 = lean_ctor_get(x_118, 1); lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_121 = x_118; -} else { - lean_dec_ref(x_118); - x_121 = lean_box(0); -} -x_122 = lean_st_ref_get(x_70, x_120); -lean_dec(x_70); -x_123 = lean_ctor_get(x_122, 0); +lean_dec(x_118); +x_120 = lean_box(0); +lean_inc(x_73); +x_121 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_120, x_71, x_73, x_119); +if (lean_obj_tag(x_121) == 0) +{ +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; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); 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; +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_124 = x_121; } else { - lean_dec_ref(x_122); - x_125 = lean_box(0); + lean_dec_ref(x_121); + x_124 = lean_box(0); } -if (lean_is_scalar(x_121)) { - x_126 = lean_alloc_ctor(0, 2, 0); +x_125 = lean_st_ref_get(x_73, x_123); +lean_dec(x_73); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; } else { - x_126 = x_121; + lean_dec_ref(x_125); + x_128 = lean_box(0); } -lean_ctor_set(x_126, 0, x_119); -lean_ctor_set(x_126, 1, x_123); -if (lean_is_scalar(x_125)) { - x_127 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_124)) { + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_127 = x_125; + x_129 = x_124; } -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_124); -x_4 = x_127; +lean_ctor_set(x_129, 0, x_122); +lean_ctor_set(x_129, 1, x_126); +if (lean_is_scalar(x_128)) { + x_130 = lean_alloc_ctor(0, 2, 0); +} else { + x_130 = x_128; +} +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_127); +x_4 = x_130; goto block_16; } else { -lean_object* x_128; lean_object* x_129; -lean_dec(x_70); -x_128 = lean_ctor_get(x_118, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_118, 1); -lean_inc(x_129); -lean_dec(x_118); -x_17 = x_128; -x_18 = x_129; +lean_object* x_131; lean_object* x_132; +lean_dec(x_73); +x_131 = lean_ctor_get(x_121, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_121, 1); +lean_inc(x_132); +lean_dec(x_121); +x_17 = x_131; +x_18 = x_132; goto block_45; } } } else { -lean_object* x_130; lean_object* x_131; -x_130 = lean_box(0); -lean_inc(x_70); -x_131 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_130, x_68, x_70, x_74); -if (lean_obj_tag(x_131) == 0) +lean_object* x_133; lean_object* x_134; +x_133 = lean_box(0); +lean_inc(x_73); +x_134 = l_Lean_PPContext_runCoreM___rarg___lambda__1(x_47, x_52, x_2, x_133, x_71, x_73, x_77); +if (lean_obj_tag(x_134) == 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, 1); -x_134 = lean_st_ref_get(x_70, x_133); -lean_dec(x_70); +uint8_t x_135; x_135 = !lean_is_exclusive(x_134); if (x_135 == 0) { -lean_object* x_136; -x_136 = lean_ctor_get(x_134, 0); -lean_ctor_set(x_131, 1, x_136); -lean_ctor_set(x_134, 0, x_131); -x_4 = x_134; +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_134, 1); +x_137 = lean_st_ref_get(x_73, x_136); +lean_dec(x_73); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; +x_139 = lean_ctor_get(x_137, 0); +lean_ctor_set(x_134, 1, x_139); +lean_ctor_set(x_137, 0, x_134); +x_4 = x_137; goto block_16; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_134, 0); -x_138 = lean_ctor_get(x_134, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_134); -lean_ctor_set(x_131, 1, x_137); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_131); -lean_ctor_set(x_139, 1, x_138); -x_4 = x_139; -goto block_16; -} -} -else -{ -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; -x_140 = lean_ctor_get(x_131, 0); -x_141 = lean_ctor_get(x_131, 1); +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_137, 0); +x_141 = lean_ctor_get(x_137, 1); lean_inc(x_141); lean_inc(x_140); -lean_dec(x_131); -x_142 = lean_st_ref_get(x_70, x_141); -lean_dec(x_70); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_145 = x_142; -} else { - lean_dec_ref(x_142); - x_145 = lean_box(0); -} -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_140); -lean_ctor_set(x_146, 1, x_143); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -x_4 = x_147; +lean_dec(x_137); +lean_ctor_set(x_134, 1, x_140); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_134); +lean_ctor_set(x_142, 1, x_141); +x_4 = x_142; goto block_16; } } else { -lean_object* x_148; lean_object* x_149; -lean_dec(x_70); -x_148 = lean_ctor_get(x_131, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_131, 1); -lean_inc(x_149); -lean_dec(x_131); -x_17 = x_148; -x_18 = x_149; +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; +x_143 = lean_ctor_get(x_134, 0); +x_144 = lean_ctor_get(x_134, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_134); +x_145 = lean_st_ref_get(x_73, x_144); +lean_dec(x_73); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_143); +lean_ctor_set(x_149, 1, x_146); +if (lean_is_scalar(x_148)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_148; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_147); +x_4 = x_150; +goto block_16; +} +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_73); +x_151 = lean_ctor_get(x_134, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_134, 1); +lean_inc(x_152); +lean_dec(x_134); +x_17 = x_151; +x_18 = x_152; goto block_45; } } @@ -1666,14 +1686,14 @@ x_13 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = l_Lean_PrettyPrinter_ppExpr___closed__1; x_16 = l_Lean_PrettyPrinter_ppUsing(x_3, x_15, x_4, x_5, x_7, x_8, x_9); return x_16; } else { -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_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; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_17 = lean_ctor_get(x_7, 0); x_18 = lean_ctor_get(x_7, 1); x_19 = lean_ctor_get(x_7, 3); @@ -1683,6 +1703,9 @@ x_22 = lean_ctor_get(x_7, 7); x_23 = lean_ctor_get(x_7, 8); x_24 = lean_ctor_get(x_7, 9); x_25 = lean_ctor_get(x_7, 10); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -1693,24 +1716,26 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_7); -x_26 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; -x_27 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_26); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_18); -lean_ctor_set(x_28, 2, x_1); -lean_ctor_set(x_28, 3, x_19); -lean_ctor_set(x_28, 4, x_27); -lean_ctor_set(x_28, 5, x_20); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_2); -x_29 = l_Lean_PrettyPrinter_ppExpr___closed__1; -x_30 = l_Lean_PrettyPrinter_ppUsing(x_3, x_29, x_4, x_5, x_28, x_8, x_9); -return x_30; +x_28 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; +x_29 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_28); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_18); +lean_ctor_set(x_30, 2, x_1); +lean_ctor_set(x_30, 3, x_19); +lean_ctor_set(x_30, 4, x_29); +lean_ctor_set(x_30, 5, x_20); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_27); +x_31 = l_Lean_PrettyPrinter_ppExpr___closed__1; +x_32 = l_Lean_PrettyPrinter_ppUsing(x_3, x_31, x_4, x_5, x_30, x_8, x_9); +return x_32; } } } @@ -1730,7 +1755,7 @@ x_15 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); x_17 = lean_st_mk_ref(x_3, x_11); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); @@ -2021,7 +2046,7 @@ return x_84; } 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; 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; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_112; +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; uint8_t 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; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; x_90 = lean_ctor_get(x_9, 0); x_91 = lean_ctor_get(x_9, 1); x_92 = lean_ctor_get(x_9, 3); @@ -2031,6 +2056,9 @@ x_95 = lean_ctor_get(x_9, 7); x_96 = lean_ctor_get(x_9, 8); x_97 = lean_ctor_get(x_9, 9); x_98 = lean_ctor_get(x_9, 10); +x_99 = lean_ctor_get(x_9, 11); +x_100 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); @@ -2041,245 +2069,247 @@ lean_inc(x_92); lean_inc(x_91); lean_inc(x_90); lean_dec(x_9); -x_99 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; -x_100 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_99); -x_101 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_101, 0, x_90); -lean_ctor_set(x_101, 1, x_91); -lean_ctor_set(x_101, 2, x_1); -lean_ctor_set(x_101, 3, x_92); -lean_ctor_set(x_101, 4, x_100); -lean_ctor_set(x_101, 5, x_93); -lean_ctor_set(x_101, 6, x_94); -lean_ctor_set(x_101, 7, x_95); -lean_ctor_set(x_101, 8, x_96); -lean_ctor_set(x_101, 9, x_97); -lean_ctor_set(x_101, 10, x_98); -lean_ctor_set_uint8(x_101, sizeof(void*)*11, x_2); -x_102 = lean_st_mk_ref(x_3, x_11); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = l_Lean_PPContext_runCoreM___rarg___closed__5; -x_106 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_4, x_105); -x_107 = lean_st_ref_get(x_10, x_104); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_ctor_get(x_108, 0); +x_101 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; +x_102 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_101); +x_103 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_103, 0, x_90); +lean_ctor_set(x_103, 1, x_91); +lean_ctor_set(x_103, 2, x_1); +lean_ctor_set(x_103, 3, x_92); +lean_ctor_set(x_103, 4, x_102); +lean_ctor_set(x_103, 5, x_93); +lean_ctor_set(x_103, 6, x_94); +lean_ctor_set(x_103, 7, x_95); +lean_ctor_set(x_103, 8, x_96); +lean_ctor_set(x_103, 9, x_97); +lean_ctor_set(x_103, 10, x_98); +lean_ctor_set(x_103, 11, x_99); +lean_ctor_set_uint8(x_103, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_103, sizeof(void*)*12 + 1, x_100); +x_104 = lean_st_mk_ref(x_3, x_11); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = l_Lean_PPContext_runCoreM___rarg___closed__5; +x_108 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_4, x_107); +x_109 = lean_st_ref_get(x_10, x_106); +x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Kernel_isDiagnosticsEnabled(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_ctor_get(x_110, 0); +lean_inc(x_112); lean_dec(x_110); -if (x_111 == 0) +x_113 = l_Lean_Kernel_isDiagnosticsEnabled(x_112); +lean_dec(x_112); +if (x_113 == 0) { -if (x_106 == 0) -{ -uint8_t x_152; -x_152 = 1; -x_112 = x_152; -goto block_151; -} -else -{ -uint8_t x_153; -x_153 = 0; -x_112 = x_153; -goto block_151; -} -} -else -{ -if (x_106 == 0) +if (x_108 == 0) { uint8_t x_154; -x_154 = 0; -x_112 = x_154; -goto block_151; +x_154 = 1; +x_114 = x_154; +goto block_153; } else { uint8_t x_155; -x_155 = 1; -x_112 = x_155; -goto block_151; +x_155 = 0; +x_114 = x_155; +goto block_153; } } -block_151: +else { -if (x_112 == 0) +if (x_108 == 0) { -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; lean_object* x_127; lean_object* x_128; -x_113 = lean_st_ref_take(x_10, x_109); -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_116 = lean_ctor_get(x_114, 0); +uint8_t x_156; +x_156 = 0; +x_114 = x_156; +goto block_153; +} +else +{ +uint8_t x_157; +x_157 = 1; +x_114 = x_157; +goto block_153; +} +} +block_153: +{ +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_115 = lean_st_ref_take(x_10, x_111); +x_116 = lean_ctor_get(x_115, 0); lean_inc(x_116); -x_117 = lean_ctor_get(x_114, 1); +x_117 = lean_ctor_get(x_115, 1); lean_inc(x_117); -x_118 = lean_ctor_get(x_114, 2); +lean_dec(x_115); +x_118 = lean_ctor_get(x_116, 0); lean_inc(x_118); -x_119 = lean_ctor_get(x_114, 3); +x_119 = lean_ctor_get(x_116, 1); lean_inc(x_119); -x_120 = lean_ctor_get(x_114, 5); +x_120 = lean_ctor_get(x_116, 2); lean_inc(x_120); -x_121 = lean_ctor_get(x_114, 6); +x_121 = lean_ctor_get(x_116, 3); lean_inc(x_121); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - lean_ctor_release(x_114, 2); - lean_ctor_release(x_114, 3); - lean_ctor_release(x_114, 4); - lean_ctor_release(x_114, 5); - lean_ctor_release(x_114, 6); - x_122 = x_114; +x_122 = lean_ctor_get(x_116, 5); +lean_inc(x_122); +x_123 = lean_ctor_get(x_116, 6); +lean_inc(x_123); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + lean_ctor_release(x_116, 2); + lean_ctor_release(x_116, 3); + lean_ctor_release(x_116, 4); + lean_ctor_release(x_116, 5); + lean_ctor_release(x_116, 6); + x_124 = x_116; } else { - lean_dec_ref(x_114); - x_122 = lean_box(0); + lean_dec_ref(x_116); + x_124 = lean_box(0); } -x_123 = l_Lean_Kernel_enableDiag(x_116, x_106); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 7, 0); +x_125 = l_Lean_Kernel_enableDiag(x_118, x_108); +if (lean_is_scalar(x_124)) { + x_126 = lean_alloc_ctor(0, 7, 0); } else { - x_124 = x_122; + x_126 = x_124; } -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_117); -lean_ctor_set(x_124, 2, x_118); -lean_ctor_set(x_124, 3, x_119); -lean_ctor_set(x_124, 4, x_7); -lean_ctor_set(x_124, 5, x_120); -lean_ctor_set(x_124, 6, x_121); -x_125 = lean_st_ref_set(x_10, x_124, x_115); -x_126 = lean_ctor_get(x_125, 1); -lean_inc(x_126); -lean_dec(x_125); -x_127 = lean_box(0); -lean_inc(x_103); -x_128 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__1(x_4, x_106, x_5, x_6, x_103, x_127, x_101, x_10, x_126); -if (lean_obj_tag(x_128) == 0) +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_119); +lean_ctor_set(x_126, 2, x_120); +lean_ctor_set(x_126, 3, x_121); +lean_ctor_set(x_126, 4, x_7); +lean_ctor_set(x_126, 5, x_122); +lean_ctor_set(x_126, 6, x_123); +x_127 = lean_st_ref_set(x_10, x_126, x_117); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +x_129 = lean_box(0); +lean_inc(x_105); +x_130 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__1(x_4, x_108, x_5, x_6, x_105, x_129, x_103, x_10, x_128); +if (lean_obj_tag(x_130) == 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 = 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 = lean_st_ref_get(x_103, x_130); -lean_dec(x_103); -x_132 = lean_ctor_get(x_131, 1); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; +lean_dec(x_130); +x_133 = lean_st_ref_get(x_105, x_132); +lean_dec(x_105); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_135 = x_133; } else { - lean_dec_ref(x_131); - x_133 = lean_box(0); + lean_dec_ref(x_133); + x_135 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(0, 2, 0); } else { - x_134 = x_133; + x_136 = x_135; } -lean_ctor_set(x_134, 0, x_129); -lean_ctor_set(x_134, 1, x_132); -return x_134; +lean_ctor_set(x_136, 0, x_131); +lean_ctor_set(x_136, 1, x_134); +return x_136; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_103); -x_135 = lean_ctor_get(x_128, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_128, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_137 = x_128; +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_105); +x_137 = lean_ctor_get(x_130, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_130, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_139 = x_130; } else { - lean_dec_ref(x_128); - x_137 = lean_box(0); + lean_dec_ref(x_130); + x_139 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); } else { - x_138 = x_137; + x_140 = x_139; } -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_138); +return x_140; } } else { -lean_object* x_139; lean_object* x_140; +lean_object* x_141; lean_object* x_142; lean_dec(x_7); -x_139 = lean_box(0); -lean_inc(x_103); -x_140 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__1(x_4, x_106, x_5, x_6, x_103, x_139, x_101, x_10, x_109); -if (lean_obj_tag(x_140) == 0) +x_141 = lean_box(0); +lean_inc(x_105); +x_142 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__1(x_4, x_108, x_5, x_6, x_105, x_141, x_103, x_10, x_111); +if (lean_obj_tag(x_142) == 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; -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -x_143 = lean_st_ref_get(x_103, x_142); -lean_dec(x_103); -x_144 = lean_ctor_get(x_143, 1); +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; +lean_dec(x_142); +x_145 = lean_st_ref_get(x_105, x_144); +lean_dec(x_105); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; } else { - lean_dec_ref(x_143); - x_145 = lean_box(0); + lean_dec_ref(x_145); + x_147 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(0, 2, 0); } else { - x_146 = x_145; + x_148 = x_147; } -lean_ctor_set(x_146, 0, x_141); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_148, 0, x_143); +lean_ctor_set(x_148, 1, x_146); +return x_148; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_103); -x_147 = lean_ctor_get(x_140, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_140, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_149 = x_140; +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_105); +x_149 = lean_ctor_get(x_142, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_142, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_151 = x_142; } else { - lean_dec_ref(x_140); - x_149 = lean_box(0); + lean_dec_ref(x_142); + x_151 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_149; + x_152 = x_151; } -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_148); -return x_150; +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; } } } @@ -2338,7 +2368,7 @@ return x_3; LEAN_EXPORT lean_object* lean_pp_expr(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_20; lean_object* x_21; 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; +lean_object* x_7; lean_object* x_20; lean_object* x_21; 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; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; x_49 = lean_box(0); x_50 = l_Lean_PPContext_runMetaM___rarg___closed__1; x_51 = l_Lean_PPContext_runCoreM___rarg___closed__2; @@ -2367,90 +2397,93 @@ x_60 = lean_box(0); x_61 = l_Lean_PPContext_runCoreM___rarg___closed__6; x_62 = l_Lean_PrettyPrinter_ppExprLegacy___closed__4; x_63 = l_Lean_PPContext_runCoreM___rarg___closed__16; -x_64 = l_Lean_PPContext_runCoreM___rarg___closed__18; -x_65 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_61); -lean_ctor_set(x_65, 2, x_62); -lean_ctor_set(x_65, 3, x_57); -lean_ctor_set(x_65, 4, x_63); -lean_ctor_set(x_65, 5, x_57); -lean_ctor_set(x_65, 6, x_64); -x_66 = lean_io_get_num_heartbeats(x_6); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); +x_64 = l_Lean_PPContext_runCoreM___rarg___closed__17; +x_65 = l_Lean_PPContext_runCoreM___rarg___closed__19; +x_66 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_66, 0, x_1); +lean_ctor_set(x_66, 1, x_61); +lean_ctor_set(x_66, 2, x_62); +lean_ctor_set(x_66, 3, x_57); +lean_ctor_set(x_66, 4, x_63); +lean_ctor_set(x_66, 5, x_64); +lean_ctor_set(x_66, 6, x_65); +x_67 = lean_io_get_num_heartbeats(x_6); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_PPContext_runCoreM___rarg___closed__19; -x_70 = l_Lean_PPContext_runCoreM___rarg___closed__4; -x_71 = lean_unsigned_to_nat(1000u); -x_72 = lean_box(0); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = l_Lean_PPContext_runCoreM___rarg___closed__20; +x_71 = l_Lean_PPContext_runCoreM___rarg___closed__4; +x_72 = lean_unsigned_to_nat(1000u); x_73 = lean_box(0); -x_74 = l_Lean_PrettyPrinter_ppExprLegacy___closed__1; -x_75 = l_Lean_firstFrontendMacroScope; -x_76 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_76, 0, x_69); -lean_ctor_set(x_76, 1, x_70); -lean_ctor_set(x_76, 2, x_60); -lean_ctor_set(x_76, 3, x_52); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_72); -lean_ctor_set(x_76, 6, x_73); -lean_ctor_set(x_76, 7, x_60); -lean_ctor_set(x_76, 8, x_67); -lean_ctor_set(x_76, 9, x_74); -lean_ctor_set(x_76, 10, x_75); -lean_ctor_set_uint8(x_76, sizeof(void*)*11, x_53); -x_77 = lean_st_mk_ref(x_65, x_68); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +x_74 = lean_box(0); +x_75 = l_Lean_PrettyPrinter_ppExprLegacy___closed__1; +x_76 = l_Lean_firstFrontendMacroScope; +x_77 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_77, 0, x_70); +lean_ctor_set(x_77, 1, x_71); +lean_ctor_set(x_77, 2, x_60); +lean_ctor_set(x_77, 3, x_52); +lean_ctor_set(x_77, 4, x_72); +lean_ctor_set(x_77, 5, x_73); +lean_ctor_set(x_77, 6, x_74); +lean_ctor_set(x_77, 7, x_60); +lean_ctor_set(x_77, 8, x_68); +lean_ctor_set(x_77, 9, x_75); +lean_ctor_set(x_77, 10, x_76); +lean_ctor_set(x_77, 11, x_49); +lean_ctor_set_uint8(x_77, sizeof(void*)*12, x_53); +lean_ctor_set_uint8(x_77, sizeof(void*)*12 + 1, x_53); +x_78 = lean_st_mk_ref(x_66, x_69); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_st_ref_get(x_78, x_79); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_st_ref_get(x_79, x_80); +x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_ctor_get(x_81, 0); +x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); lean_dec(x_81); -x_84 = l_Lean_Kernel_isDiagnosticsEnabled(x_83); -lean_dec(x_83); -if (x_84 == 0) -{ -uint8_t x_162; -x_162 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; -if (x_162 == 0) +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +lean_dec(x_82); +x_85 = l_Lean_Kernel_isDiagnosticsEnabled(x_84); +lean_dec(x_84); +if (x_85 == 0) { uint8_t x_163; -x_163 = 1; -x_85 = x_163; -goto block_161; -} -else -{ -x_85 = x_53; -goto block_161; -} -} -else +x_163 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; +if (x_163 == 0) { uint8_t x_164; -x_164 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; -if (x_164 == 0) +x_164 = 1; +x_86 = x_164; +goto block_162; +} +else { -x_85 = x_53; -goto block_161; +x_86 = x_53; +goto block_162; +} } else { uint8_t x_165; -x_165 = 1; -x_85 = x_165; -goto block_161; +x_165 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; +if (x_165 == 0) +{ +x_86 = x_53; +goto block_162; +} +else +{ +uint8_t x_166; +x_166 = 1; +x_86 = x_166; +goto block_162; } } block_19: @@ -2616,305 +2649,305 @@ goto block_19; } } } -block_161: +block_162: { -if (x_85 == 0) +if (x_86 == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_86 = lean_st_ref_take(x_78, x_82); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_st_ref_take(x_79, x_83); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -lean_dec(x_86); -x_89 = !lean_is_exclusive(x_87); -if (x_89 == 0) +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = !lean_is_exclusive(x_88); +if (x_90 == 0) { -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; -x_90 = lean_ctor_get(x_87, 0); -x_91 = lean_ctor_get(x_87, 4); -lean_dec(x_91); -x_92 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; -x_93 = l_Lean_Kernel_enableDiag(x_90, x_92); -lean_ctor_set(x_87, 4, x_63); -lean_ctor_set(x_87, 0, x_93); -x_94 = lean_st_ref_set(x_78, x_87, x_88); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = lean_box(0); -lean_inc(x_78); -x_97 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_92, x_59, x_4, x_5, x_54, x_63, x_96, x_76, x_78, x_95); -if (lean_obj_tag(x_97) == 0) +lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_91 = lean_ctor_get(x_88, 0); +x_92 = lean_ctor_get(x_88, 4); +lean_dec(x_92); +x_93 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; +x_94 = l_Lean_Kernel_enableDiag(x_91, x_93); +lean_ctor_set(x_88, 4, x_63); +lean_ctor_set(x_88, 0, x_94); +x_95 = lean_st_ref_set(x_79, x_88, x_89); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = lean_box(0); +lean_inc(x_79); +x_98 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_93, x_59, x_4, x_5, x_54, x_63, x_97, x_77, x_79, x_96); +if (lean_obj_tag(x_98) == 0) { -uint8_t x_98; -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) +uint8_t x_99; +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) { -lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_99 = lean_ctor_get(x_97, 1); -x_100 = lean_st_ref_get(x_78, x_99); -lean_dec(x_78); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_100 = lean_ctor_get(x_98, 1); +x_101 = lean_st_ref_get(x_79, x_100); +lean_dec(x_79); +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -lean_object* x_102; -x_102 = lean_ctor_get(x_100, 0); -lean_ctor_set(x_97, 1, x_102); -lean_ctor_set(x_100, 0, x_97); -x_7 = x_100; +lean_object* x_103; +x_103 = lean_ctor_get(x_101, 0); +lean_ctor_set(x_98, 1, x_103); +lean_ctor_set(x_101, 0, x_98); +x_7 = x_101; goto block_19; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_100, 0); -x_104 = lean_ctor_get(x_100, 1); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_101, 0); +x_105 = lean_ctor_get(x_101, 1); +lean_inc(x_105); lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_100); -lean_ctor_set(x_97, 1, x_103); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_97); -lean_ctor_set(x_105, 1, x_104); -x_7 = x_105; +lean_dec(x_101); +lean_ctor_set(x_98, 1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_98); +lean_ctor_set(x_106, 1, x_105); +x_7 = x_106; goto block_19; } } 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; lean_object* x_112; lean_object* x_113; -x_106 = lean_ctor_get(x_97, 0); -x_107 = lean_ctor_get(x_97, 1); +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; +x_107 = lean_ctor_get(x_98, 0); +x_108 = lean_ctor_get(x_98, 1); +lean_inc(x_108); lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_97); -x_108 = lean_st_ref_get(x_78, x_107); -lean_dec(x_78); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); +lean_dec(x_98); +x_109 = lean_st_ref_get(x_79, x_108); +lean_dec(x_79); +x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_112 = x_109; } else { - lean_dec_ref(x_108); - x_111 = lean_box(0); + lean_dec_ref(x_109); + x_112 = lean_box(0); } -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_106); -lean_ctor_set(x_112, 1, x_109); -if (lean_is_scalar(x_111)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_111; -} -lean_ctor_set(x_113, 0, x_112); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_107); lean_ctor_set(x_113, 1, x_110); -x_7 = x_113; +if (lean_is_scalar(x_112)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_112; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_111); +x_7 = x_114; goto block_19; } } else { -lean_object* x_114; lean_object* x_115; -lean_dec(x_78); -x_114 = lean_ctor_get(x_97, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_97, 1); +lean_object* x_115; lean_object* x_116; +lean_dec(x_79); +x_115 = lean_ctor_get(x_98, 0); lean_inc(x_115); -lean_dec(x_97); -x_20 = x_114; -x_21 = x_115; +x_116 = lean_ctor_get(x_98, 1); +lean_inc(x_116); +lean_dec(x_98); +x_20 = x_115; +x_21 = x_116; goto block_48; } } 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; uint8_t 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; -x_116 = lean_ctor_get(x_87, 0); -x_117 = lean_ctor_get(x_87, 1); -x_118 = lean_ctor_get(x_87, 2); -x_119 = lean_ctor_get(x_87, 3); -x_120 = lean_ctor_get(x_87, 5); -x_121 = lean_ctor_get(x_87, 6); +lean_object* x_117; lean_object* x_118; lean_object* x_119; 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; lean_object* x_128; lean_object* x_129; +x_117 = lean_ctor_get(x_88, 0); +x_118 = lean_ctor_get(x_88, 1); +x_119 = lean_ctor_get(x_88, 2); +x_120 = lean_ctor_get(x_88, 3); +x_121 = lean_ctor_get(x_88, 5); +x_122 = lean_ctor_get(x_88, 6); +lean_inc(x_122); lean_inc(x_121); lean_inc(x_120); lean_inc(x_119); lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_87); -x_122 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; -x_123 = l_Lean_Kernel_enableDiag(x_116, x_122); -x_124 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_117); -lean_ctor_set(x_124, 2, x_118); -lean_ctor_set(x_124, 3, x_119); -lean_ctor_set(x_124, 4, x_63); -lean_ctor_set(x_124, 5, x_120); -lean_ctor_set(x_124, 6, x_121); -x_125 = lean_st_ref_set(x_78, x_124, x_88); -x_126 = lean_ctor_get(x_125, 1); -lean_inc(x_126); -lean_dec(x_125); -x_127 = lean_box(0); -lean_inc(x_78); -x_128 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_122, x_59, x_4, x_5, x_54, x_63, x_127, x_76, x_78, x_126); -if (lean_obj_tag(x_128) == 0) +lean_dec(x_88); +x_123 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; +x_124 = l_Lean_Kernel_enableDiag(x_117, x_123); +x_125 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_118); +lean_ctor_set(x_125, 2, x_119); +lean_ctor_set(x_125, 3, x_120); +lean_ctor_set(x_125, 4, x_63); +lean_ctor_set(x_125, 5, x_121); +lean_ctor_set(x_125, 6, x_122); +x_126 = lean_st_ref_set(x_79, x_125, x_89); +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_box(0); +lean_inc(x_79); +x_129 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_123, x_59, x_4, x_5, x_54, x_63, x_128, x_77, x_79, x_127); +if (lean_obj_tag(x_129) == 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; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); +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_130 = lean_ctor_get(x_129, 0); lean_inc(x_130); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_131 = x_128; +x_131 = lean_ctor_get(x_129, 1); +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_128); - x_131 = lean_box(0); + lean_dec_ref(x_129); + x_132 = lean_box(0); } -x_132 = lean_st_ref_get(x_78, x_130); -lean_dec(x_78); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); +x_133 = lean_st_ref_get(x_79, x_131); +lean_dec(x_79); +x_134 = lean_ctor_get(x_133, 0); 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; +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_136 = x_133; } else { - lean_dec_ref(x_132); - x_135 = lean_box(0); + lean_dec_ref(x_133); + x_136 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_136 = lean_alloc_ctor(0, 2, 0); -} else { - x_136 = x_131; -} -lean_ctor_set(x_136, 0, x_129); -lean_ctor_set(x_136, 1, x_133); -if (lean_is_scalar(x_135)) { +if (lean_is_scalar(x_132)) { x_137 = lean_alloc_ctor(0, 2, 0); } else { - x_137 = x_135; + x_137 = x_132; } -lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 0, x_130); lean_ctor_set(x_137, 1, x_134); -x_7 = x_137; +if (lean_is_scalar(x_136)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_136; +} +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_135); +x_7 = x_138; goto block_19; } else { -lean_object* x_138; lean_object* x_139; -lean_dec(x_78); -x_138 = lean_ctor_get(x_128, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_128, 1); +lean_object* x_139; lean_object* x_140; +lean_dec(x_79); +x_139 = lean_ctor_get(x_129, 0); lean_inc(x_139); -lean_dec(x_128); -x_20 = x_138; -x_21 = x_139; +x_140 = lean_ctor_get(x_129, 1); +lean_inc(x_140); +lean_dec(x_129); +x_20 = x_139; +x_21 = x_140; goto block_48; } } } else { -uint8_t x_140; lean_object* x_141; lean_object* x_142; -x_140 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; -x_141 = lean_box(0); -lean_inc(x_78); -x_142 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_140, x_59, x_4, x_5, x_54, x_63, x_141, x_76, x_78, x_82); -if (lean_obj_tag(x_142) == 0) +uint8_t x_141; lean_object* x_142; lean_object* x_143; +x_141 = l_Lean_PrettyPrinter_ppExprLegacy___closed__5; +x_142 = lean_box(0); +lean_inc(x_79); +x_143 = l_Lean_PrettyPrinter_ppExprLegacy___lambda__2(x_60, x_141, x_59, x_4, x_5, x_54, x_63, x_142, x_77, x_79, x_83); +if (lean_obj_tag(x_143) == 0) { -uint8_t x_143; -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 0) +uint8_t x_144; +x_144 = !lean_is_exclusive(x_143); +if (x_144 == 0) { -lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_144 = lean_ctor_get(x_142, 1); -x_145 = lean_st_ref_get(x_78, x_144); -lean_dec(x_78); -x_146 = !lean_is_exclusive(x_145); -if (x_146 == 0) +lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_145 = lean_ctor_get(x_143, 1); +x_146 = lean_st_ref_get(x_79, x_145); +lean_dec(x_79); +x_147 = !lean_is_exclusive(x_146); +if (x_147 == 0) { -lean_object* x_147; -x_147 = lean_ctor_get(x_145, 0); -lean_ctor_set(x_142, 1, x_147); -lean_ctor_set(x_145, 0, x_142); -x_7 = x_145; +lean_object* x_148; +x_148 = lean_ctor_get(x_146, 0); +lean_ctor_set(x_143, 1, x_148); +lean_ctor_set(x_146, 0, x_143); +x_7 = x_146; goto block_19; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_145, 0); -x_149 = lean_ctor_get(x_145, 1); +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_146, 0); +x_150 = lean_ctor_get(x_146, 1); +lean_inc(x_150); lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_145); -lean_ctor_set(x_142, 1, x_148); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_142); -lean_ctor_set(x_150, 1, x_149); -x_7 = x_150; +lean_dec(x_146); +lean_ctor_set(x_143, 1, x_149); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_143); +lean_ctor_set(x_151, 1, x_150); +x_7 = x_151; goto block_19; } } else { -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; -x_151 = lean_ctor_get(x_142, 0); -x_152 = lean_ctor_get(x_142, 1); +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; +x_152 = lean_ctor_get(x_143, 0); +x_153 = lean_ctor_get(x_143, 1); +lean_inc(x_153); lean_inc(x_152); -lean_inc(x_151); -lean_dec(x_142); -x_153 = lean_st_ref_get(x_78, x_152); -lean_dec(x_78); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); +lean_dec(x_143); +x_154 = lean_st_ref_get(x_79, x_153); +lean_dec(x_79); +x_155 = lean_ctor_get(x_154, 0); lean_inc(x_155); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_156 = x_153; +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_157 = x_154; } else { - lean_dec_ref(x_153); - x_156 = lean_box(0); + lean_dec_ref(x_154); + x_157 = lean_box(0); } -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_151); -lean_ctor_set(x_157, 1, x_154); -if (lean_is_scalar(x_156)) { - x_158 = lean_alloc_ctor(0, 2, 0); -} else { - x_158 = x_156; -} -lean_ctor_set(x_158, 0, x_157); +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_152); lean_ctor_set(x_158, 1, x_155); -x_7 = x_158; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_156); +x_7 = x_159; goto block_19; } } else { -lean_object* x_159; lean_object* x_160; -lean_dec(x_78); -x_159 = lean_ctor_get(x_142, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_142, 1); +lean_object* x_160; lean_object* x_161; +lean_dec(x_79); +x_160 = lean_ctor_get(x_143, 0); lean_inc(x_160); -lean_dec(x_142); -x_20 = x_159; -x_21 = x_160; +x_161 = lean_ctor_get(x_143, 1); +lean_inc(x_161); +lean_dec(x_143); +x_20 = x_160; +x_21 = x_161; goto block_48; } } @@ -3599,34 +3632,38 @@ if (x_8 == 0) { lean_object* x_9; uint8_t x_10; x_9 = lean_ctor_get(x_7, 0); -x_10 = l_Lean_Exception_isRuntime(x_9); +x_10 = l_Lean_Exception_isInterrupt(x_9); if (x_10 == 0) { +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_9); +if (x_11 == 0) +{ if (lean_obj_tag(x_9) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 1); -x_13 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_12); -lean_ctor_set(x_9, 1, x_13); +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_9, 1); +x_14 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_13); +lean_ctor_set(x_9, 1, x_14); return x_7; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_9, 0); -x_15 = lean_ctor_get(x_9, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); lean_dec(x_9); -x_16 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -lean_ctor_set(x_7, 0, x_17); +x_17 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set(x_7, 0, x_18); return x_7; } } @@ -3642,60 +3679,78 @@ return x_7; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_7, 0); -x_19 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_7, 0); +x_20 = lean_ctor_get(x_7, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); lean_dec(x_7); -x_20 = l_Lean_Exception_isRuntime(x_18); -if (x_20 == 0) +x_21 = l_Lean_Exception_isInterrupt(x_19); +if (x_21 == 0) { -if (lean_obj_tag(x_18) == 0) +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 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_18, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_23 = x_18; +if (lean_obj_tag(x_19) == 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_19, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_25 = x_19; } else { - lean_dec_ref(x_18); - x_23 = lean_box(0); + lean_dec_ref(x_19); + x_25 = lean_box(0); } -x_24 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_22); -if (lean_is_scalar(x_23)) { - x_25 = lean_alloc_ctor(0, 2, 0); +x_26 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_24); +if (lean_is_scalar(x_25)) { + x_27 = lean_alloc_ctor(0, 2, 0); } else { - x_25 = x_23; + x_27 = x_25; } -lean_ctor_set(x_25, 0, x_21); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_19); -return x_26; -} -else -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_18); -lean_ctor_set(x_27, 1, x_19); -return x_27; -} -} -else -{ -lean_object* x_28; +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_18); -lean_ctor_set(x_28, 1, x_19); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_20); return x_28; } +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +return x_29; +} +} +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_19); +lean_ctor_set(x_30, 1, x_20); +return x_30; +} +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +return x_31; +} } } } @@ -3717,34 +3772,38 @@ if (x_6 == 0) { lean_object* x_7; uint8_t x_8; x_7 = lean_ctor_get(x_5, 0); -x_8 = l_Lean_Exception_isRuntime(x_7); +x_8 = l_Lean_Exception_isInterrupt(x_7); if (x_8 == 0) { +uint8_t x_9; +x_9 = l_Lean_Exception_isRuntime(x_7); +if (x_9 == 0) +{ if (lean_obj_tag(x_7) == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_7); -if (x_9 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_7, 1); -x_11 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_10); -lean_ctor_set(x_7, 1, x_11); +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_7, 1); +x_12 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_11); +lean_ctor_set(x_7, 1, x_12); return x_5; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_7, 0); -x_13 = lean_ctor_get(x_7, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); lean_dec(x_7); -x_14 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -lean_ctor_set(x_5, 0, x_15); +x_15 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set(x_5, 0, x_16); return x_5; } } @@ -3760,60 +3819,78 @@ return x_5; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); +return x_5; +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_5); -x_18 = l_Lean_Exception_isRuntime(x_16); -if (x_18 == 0) +x_19 = l_Lean_Exception_isInterrupt(x_17); +if (x_19 == 0) { -if (lean_obj_tag(x_16) == 0) +uint8_t x_20; +x_20 = l_Lean_Exception_isRuntime(x_17); +if (x_20 == 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_16, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -if (lean_is_exclusive(x_16)) { - lean_ctor_release(x_16, 0); - lean_ctor_release(x_16, 1); - x_21 = x_16; +if (lean_obj_tag(x_17) == 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_17, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_23 = x_17; } else { - lean_dec_ref(x_16); - x_21 = lean_box(0); + lean_dec_ref(x_17); + x_23 = lean_box(0); } -x_22 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_20); -if (lean_is_scalar(x_21)) { - x_23 = lean_alloc_ctor(0, 2, 0); +x_24 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_22); +if (lean_is_scalar(x_23)) { + x_25 = lean_alloc_ctor(0, 2, 0); } else { - x_23 = x_21; + x_25 = x_23; } -lean_ctor_set(x_23, 0, x_19); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_17); -return x_24; -} -else -{ -lean_object* x_25; -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_16); -lean_ctor_set(x_25, 1, x_17); -return x_25; -} -} -else -{ -lean_object* x_26; +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_24); x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_16); -lean_ctor_set(x_26, 1, x_17); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_18); return x_26; } +else +{ +lean_object* x_27; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_17); +lean_ctor_set(x_27, 1, x_18); +return x_27; +} +} +else +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_18); +return x_28; +} +} +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_17); +lean_ctor_set(x_29, 1, x_18); +return x_29; +} } } } @@ -3835,34 +3912,38 @@ if (x_8 == 0) { lean_object* x_9; uint8_t x_10; x_9 = lean_ctor_get(x_7, 0); -x_10 = l_Lean_Exception_isRuntime(x_9); +x_10 = l_Lean_Exception_isInterrupt(x_9); if (x_10 == 0) { +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_9); +if (x_11 == 0) +{ if (lean_obj_tag(x_9) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 1); -x_13 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_12); -lean_ctor_set(x_9, 1, x_13); +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_9, 1); +x_14 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_13); +lean_ctor_set(x_9, 1, x_14); return x_7; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_9, 0); -x_15 = lean_ctor_get(x_9, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); lean_inc(x_15); -lean_inc(x_14); lean_dec(x_9); -x_16 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -lean_ctor_set(x_7, 0, x_17); +x_17 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set(x_7, 0, x_18); return x_7; } } @@ -3878,60 +3959,78 @@ return x_7; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_7, 0); -x_19 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_7, 0); +x_20 = lean_ctor_get(x_7, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); lean_dec(x_7); -x_20 = l_Lean_Exception_isRuntime(x_18); -if (x_20 == 0) +x_21 = l_Lean_Exception_isInterrupt(x_19); +if (x_21 == 0) { -if (lean_obj_tag(x_18) == 0) +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 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_18, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_23 = x_18; +if (lean_obj_tag(x_19) == 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_19, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_25 = x_19; } else { - lean_dec_ref(x_18); - x_23 = lean_box(0); + lean_dec_ref(x_19); + x_25 = lean_box(0); } -x_24 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_22); -if (lean_is_scalar(x_23)) { - x_25 = lean_alloc_ctor(0, 2, 0); +x_26 = l___private_Lean_PrettyPrinter_0__Lean_PrettyPrinter_noContext(x_24); +if (lean_is_scalar(x_25)) { + x_27 = lean_alloc_ctor(0, 2, 0); } else { - x_25 = x_23; + x_27 = x_25; } -lean_ctor_set(x_25, 0, x_21); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_19); -return x_26; -} -else -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_18); -lean_ctor_set(x_27, 1, x_19); -return x_27; -} -} -else -{ -lean_object* x_28; +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_18); -lean_ctor_set(x_28, 1, x_19); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_20); return x_28; } +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_19); +lean_ctor_set(x_29, 1, x_20); +return x_29; +} +} +else +{ +lean_object* x_30; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_19); +lean_ctor_set(x_30, 1, x_20); +return x_30; +} +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_19); +lean_ctor_set(x_31, 1, x_20); +return x_31; +} } } } @@ -4356,7 +4455,7 @@ x_13 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; x_14 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_13); lean_ctor_set(x_7, 4, x_14); lean_ctor_set(x_7, 2, x_1); -lean_ctor_set_uint8(x_7, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_7, sizeof(void*)*12, x_2); x_15 = lean_apply_5(x_3, x_4, x_5, x_7, x_8, x_9); if (lean_obj_tag(x_15) == 0) { @@ -4412,7 +4511,7 @@ return x_26; } else { -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_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; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_27 = lean_ctor_get(x_7, 0); x_28 = lean_ctor_get(x_7, 1); x_29 = lean_ctor_get(x_7, 3); @@ -4422,6 +4521,9 @@ x_32 = lean_ctor_get(x_7, 7); x_33 = lean_ctor_get(x_7, 8); x_34 = lean_ctor_get(x_7, 9); x_35 = lean_ctor_get(x_7, 10); +x_36 = lean_ctor_get(x_7, 11); +x_37 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); @@ -4432,71 +4534,73 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_7); -x_36 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; -x_37 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_36); -x_38 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_38, 0, x_27); -lean_ctor_set(x_38, 1, x_28); -lean_ctor_set(x_38, 2, x_1); -lean_ctor_set(x_38, 3, x_29); -lean_ctor_set(x_38, 4, x_37); -lean_ctor_set(x_38, 5, x_30); -lean_ctor_set(x_38, 6, x_31); -lean_ctor_set(x_38, 7, x_32); -lean_ctor_set(x_38, 8, x_33); -lean_ctor_set(x_38, 9, x_34); -lean_ctor_set(x_38, 10, x_35); -lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_2); -x_39 = lean_apply_5(x_3, x_4, x_5, x_38, x_8, x_9); -if (lean_obj_tag(x_39) == 0) +x_38 = l_Lean_PPContext_runCoreM___rarg___lambda__1___closed__1; +x_39 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_38); +x_40 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_40, 0, x_27); +lean_ctor_set(x_40, 1, x_28); +lean_ctor_set(x_40, 2, x_1); +lean_ctor_set(x_40, 3, x_29); +lean_ctor_set(x_40, 4, x_39); +lean_ctor_set(x_40, 5, x_30); +lean_ctor_set(x_40, 6, x_31); +lean_ctor_set(x_40, 7, x_32); +lean_ctor_set(x_40, 8, x_33); +lean_ctor_set(x_40, 9, x_34); +lean_ctor_set(x_40, 10, x_35); +lean_ctor_set(x_40, 11, x_36); +lean_ctor_set_uint8(x_40, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_40, sizeof(void*)*12 + 1, x_37); +x_41 = lean_apply_5(x_3, x_4, x_5, x_40, x_8, x_9); +if (lean_obj_tag(x_41) == 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; +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_39); - x_42 = lean_box(0); + lean_dec_ref(x_41); + x_44 = lean_box(0); } -x_43 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_43, 0, x_40); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_45 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_45, 0, x_42); +if (lean_is_scalar(x_44)) { + x_46 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_42; + x_46 = x_44; } -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return 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_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -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; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +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_39); - x_47 = lean_box(0); + lean_dec_ref(x_41); + x_49 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_50 = x_49; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } } @@ -4850,6 +4954,8 @@ l_Lean_PPContext_runCoreM___rarg___closed__18 = _init_l_Lean_PPContext_runCoreM_ lean_mark_persistent(l_Lean_PPContext_runCoreM___rarg___closed__18); l_Lean_PPContext_runCoreM___rarg___closed__19 = _init_l_Lean_PPContext_runCoreM___rarg___closed__19(); lean_mark_persistent(l_Lean_PPContext_runCoreM___rarg___closed__19); +l_Lean_PPContext_runCoreM___rarg___closed__20 = _init_l_Lean_PPContext_runCoreM___rarg___closed__20(); +lean_mark_persistent(l_Lean_PPContext_runCoreM___rarg___closed__20); l_Lean_PPContext_runMetaM___rarg___closed__1 = _init_l_Lean_PPContext_runMetaM___rarg___closed__1(); lean_mark_persistent(l_Lean_PPContext_runMetaM___rarg___closed__1); l_Lean_PPContext_runMetaM___rarg___closed__2 = _init_l_Lean_PPContext_runMetaM___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c index 908900f5be..cae2229959 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c @@ -46,6 +46,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_getPos___at_Le static lean_object* l_Lean_PrettyPrinter_Delaborator_omission___closed__5; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_addOmissionInfo_mkOmissionInfo___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_PrettyPrinter_delab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delab___lambda__1___closed__3; static lean_object* l_Lean_PrettyPrinter_Delaborator_mkAppUnexpanderAttribute___closed__8; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_addFieldInfo___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*); @@ -600,9 +601,13 @@ if (x_11 == 0) lean_object* x_12; lean_object* x_13; uint8_t x_14; x_12 = lean_ctor_get(x_10, 0); x_13 = lean_ctor_get(x_10, 1); -x_14 = l_Lean_Exception_isRuntime(x_12); +x_14 = l_Lean_Exception_isInterrupt(x_12); if (x_14 == 0) { +uint8_t x_15; +x_15 = l_Lean_Exception_isRuntime(x_12); +if (x_15 == 0) +{ if (lean_obj_tag(x_12) == 0) { lean_dec(x_8); @@ -616,13 +621,13 @@ return x_10; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_12, 0); -lean_inc(x_15); -x_16 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_17 = lean_nat_dec_eq(x_16, x_15); -lean_dec(x_15); -if (x_17 == 0) +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_12, 0); +lean_inc(x_16); +x_17 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_18 = lean_nat_dec_eq(x_17, x_16); +lean_dec(x_16); +if (x_18 == 0) { lean_dec(x_8); lean_dec(x_7); @@ -635,12 +640,12 @@ return x_10; } else { -lean_object* x_18; lean_object* x_19; +lean_object* x_19; lean_object* x_20; lean_free_object(x_10); lean_dec(x_12); -x_18 = lean_box(0); -x_19 = lean_apply_8(x_2, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_13); -return x_19; +x_19 = lean_box(0); +x_20 = lean_apply_8(x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +return x_20; } } } @@ -658,18 +663,34 @@ return x_10; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); +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); +return x_10; +} +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); lean_dec(x_10); -x_22 = l_Lean_Exception_isRuntime(x_20); -if (x_22 == 0) +x_23 = l_Lean_Exception_isInterrupt(x_21); +if (x_23 == 0) { -if (lean_obj_tag(x_20) == 0) +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) { -lean_object* x_23; +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_25; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -677,22 +698,22 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_21); -return x_23; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_22); +return x_25; } else { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -x_25 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_26 = lean_nat_dec_eq(x_25, x_24); -lean_dec(x_24); -if (x_26 == 0) +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +x_27 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_28 = lean_nat_dec_eq(x_27, x_26); +lean_dec(x_26); +if (x_28 == 0) { -lean_object* x_27; +lean_object* x_29; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -700,24 +721,24 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_21); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_20); -x_28 = lean_box(0); -x_29 = lean_apply_8(x_2, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_22); return x_29; } +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_21); +x_30 = lean_box(0); +x_31 = lean_apply_8(x_2, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +return x_31; +} } } else { -lean_object* x_30; +lean_object* x_32; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -725,10 +746,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_20); -lean_ctor_set(x_30, 1, x_21); -return x_30; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_21); +lean_ctor_set(x_32, 1, x_22); +return x_32; +} +} +else +{ +lean_object* x_33; +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_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_21); +lean_ctor_set(x_33, 1, x_22); +return x_33; } } } @@ -826,9 +863,13 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ if (lean_obj_tag(x_13) == 0) { lean_dec(x_9); @@ -842,13 +883,13 @@ return x_11; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_16); -x_17 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_18 = lean_nat_dec_eq(x_17, x_16); -lean_dec(x_16); -if (x_18 == 0) +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +x_18 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_19 = lean_nat_dec_eq(x_18, x_17); +lean_dec(x_17); +if (x_19 == 0) { lean_dec(x_9); lean_dec(x_8); @@ -861,12 +902,12 @@ return x_11; } else { -lean_object* x_19; lean_object* x_20; +lean_object* x_20; lean_object* x_21; lean_free_object(x_11); lean_dec(x_13); -x_19 = lean_box(0); -x_20 = lean_apply_8(x_3, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -return x_20; +x_20 = lean_box(0); +x_21 = lean_apply_8(x_3, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +return x_21; } } } @@ -884,18 +925,34 @@ return x_11; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); +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); +return x_11; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_11, 0); +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); lean_dec(x_11); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) { -if (lean_obj_tag(x_21) == 0) +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) { -lean_object* x_24; +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_26; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -903,22 +960,22 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_22); -return x_24; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_23); +return x_26; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_21, 0); -lean_inc(x_25); -x_26 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_27 = lean_nat_dec_eq(x_26, x_25); -lean_dec(x_25); -if (x_27 == 0) +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +x_28 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_29 = lean_nat_dec_eq(x_28, x_27); +lean_dec(x_27); +if (x_29 == 0) { -lean_object* x_28; +lean_object* x_30; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -926,24 +983,24 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_22); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_21); -x_29 = lean_box(0); -x_30 = lean_apply_8(x_3, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); return x_30; } +else +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_22); +x_31 = lean_box(0); +x_32 = lean_apply_8(x_3, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +return x_32; +} } } else { -lean_object* x_31; +lean_object* x_33; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -951,10 +1008,26 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_21); -lean_ctor_set(x_31, 1, x_22); -return x_31; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_22); +lean_ctor_set(x_33, 1, x_23); +return x_33; +} +} +else +{ +lean_object* x_34; +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); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_22); +lean_ctor_set(x_34, 1, x_23); +return x_34; } } } @@ -7886,128 +7959,158 @@ return x_31; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_shouldOmitProof___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; +uint8_t x_10; lean_object* x_11; lean_object* x_18; lean_dec(x_2); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_10 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_18 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -uint8_t x_13; -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_1); -x_13 = !lean_is_exclusive(x_10); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 0); -lean_dec(x_14); -x_15 = 0; -x_16 = lean_box(x_15); -lean_ctor_set(x_10, 0, x_16); -return x_10; +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_unbox(x_19); +lean_dec(x_19); +x_10 = x_21; +x_11 = x_20; +goto block_17; } else { -lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_dec(x_10); -x_18 = 0; -x_19 = lean_box(x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; -} -} -else +uint8_t x_22; +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_dec(x_10); -x_22 = lean_box(0); -x_23 = l_Lean_PrettyPrinter_Delaborator_shouldOmitProof___lambda__1(x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_21); -lean_dec(x_1); -return x_23; -} -} -else +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +x_25 = l_Lean_Exception_isInterrupt(x_23); +if (x_25 == 0) { -uint8_t x_24; -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_1); -x_24 = !lean_is_exclusive(x_10); -if (x_24 == 0) -{ -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_10, 0); -x_26 = l_Lean_Exception_isRuntime(x_25); +uint8_t x_26; +x_26 = l_Lean_Exception_isRuntime(x_23); if (x_26 == 0) { -uint8_t x_27; lean_object* x_28; -lean_dec(x_25); +uint8_t x_27; +lean_free_object(x_18); +lean_dec(x_23); x_27 = 0; -x_28 = lean_box(x_27); -lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_28); -return x_10; +x_10 = x_27; +x_11 = x_24; +goto block_17; } else { -return x_10; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_18; } } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); +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_1); +return x_18; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_18, 0); +x_29 = lean_ctor_get(x_18, 1); lean_inc(x_29); -lean_dec(x_10); -x_31 = l_Lean_Exception_isRuntime(x_29); +lean_inc(x_28); +lean_dec(x_18); +x_30 = l_Lean_Exception_isInterrupt(x_28); +if (x_30 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); if (x_31 == 0) { -uint8_t x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_29); +uint8_t x_32; +lean_dec(x_28); x_32 = 0; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_30); -return x_34; +x_10 = x_32; +x_11 = x_29; +goto block_17; } else { -lean_object* x_35; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_30); -return x_35; +lean_object* x_33; +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_1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_29); +return x_33; } } +else +{ +lean_object* x_34; +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_1); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_28); +lean_ctor_set(x_34, 1, x_29); +return x_34; +} +} +} +block_17: +{ +if (x_10 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +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_1); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l_Lean_PrettyPrinter_Delaborator_shouldOmitProof___lambda__1(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +lean_dec(x_1); +return x_16; +} } } } @@ -8325,9 +8428,13 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; uint8_t x_16; x_14 = lean_ctor_get(x_12, 0); x_15 = lean_ctor_get(x_12, 1); -x_16 = l_Lean_Exception_isRuntime(x_14); +x_16 = l_Lean_Exception_isInterrupt(x_14); if (x_16 == 0) { +uint8_t x_17; +x_17 = l_Lean_Exception_isRuntime(x_14); +if (x_17 == 0) +{ if (lean_obj_tag(x_14) == 0) { lean_dec(x_11); @@ -8341,13 +8448,13 @@ return x_12; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_14, 0); -lean_inc(x_17); -x_18 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_19 = lean_nat_dec_eq(x_18, x_17); -lean_dec(x_17); -if (x_19 == 0) +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_14, 0); +lean_inc(x_18); +x_19 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_20 = lean_nat_dec_eq(x_19, x_18); +lean_dec(x_18); +if (x_20 == 0) { lean_dec(x_11); lean_dec(x_7); @@ -8382,18 +8489,34 @@ return x_12; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); +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_2); +return x_12; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); lean_dec(x_12); -x_23 = l_Lean_Exception_isRuntime(x_21); -if (x_23 == 0) +x_24 = l_Lean_Exception_isInterrupt(x_22); +if (x_24 == 0) { -if (lean_obj_tag(x_21) == 0) +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) { -lean_object* x_24; +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_26; lean_dec(x_11); lean_dec(x_7); lean_dec(x_6); @@ -8401,44 +8524,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_22); -return x_24; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_23); +return x_26; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_21, 0); -lean_inc(x_25); -x_26 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_27 = lean_nat_dec_eq(x_26, x_25); -lean_dec(x_25); -if (x_27 == 0) -{ -lean_object* x_28; -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_2); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_21); -lean_ctor_set(x_28, 1, x_22); -return x_28; -} -else -{ -lean_dec(x_21); -x_1 = x_11; -x_8 = x_22; -goto _start; -} -} -} -else +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +x_28 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_29 = lean_nat_dec_eq(x_28, x_27); +lean_dec(x_27); +if (x_29 == 0) { lean_object* x_30; lean_dec(x_11); @@ -8449,10 +8548,50 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_21); -lean_ctor_set(x_30, 1, x_22); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); return x_30; } +else +{ +lean_dec(x_22); +x_1 = x_11; +x_8 = x_23; +goto _start; +} +} +} +else +{ +lean_object* x_32; +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_2); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_23); +return x_32; +} +} +else +{ +lean_object* x_33; +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_2); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_22); +lean_ctor_set(x_33, 1, x_23); +return x_33; +} } } } @@ -8472,77 +8611,81 @@ _start: lean_object* x_9; lean_object* x_10; if (lean_obj_tag(x_1) == 0) { -lean_object* x_23; +lean_object* x_25; 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_23 = l_Lean_PrettyPrinter_Delaborator_failure___rarg(x_8); -return x_23; +x_25 = l_Lean_PrettyPrinter_Delaborator_failure___rarg(x_8); +return x_25; } 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_st_ref_get(x_7, x_8); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(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; +x_26 = lean_st_ref_get(x_7, x_8); +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_PrettyPrinter_Delaborator_delabFor___closed__1; +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_PrettyPrinter_Delaborator_delabFor___closed__1; lean_inc(x_1); -x_29 = l_Lean_KeyedDeclsAttribute_getValues___rarg(x_28, x_27, x_1); +x_31 = l_Lean_KeyedDeclsAttribute_getValues___rarg(x_30, x_29, x_1); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_30 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabFor___spec__1(x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_26); -if (lean_obj_tag(x_30) == 0) +x_32 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabFor___spec__1(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_1); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_32); +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 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_33; +return x_35; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_30, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_dec(x_30); -x_9 = x_34; -x_10 = x_35; -goto block_22; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_32, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_dec(x_32); +x_9 = x_36; +x_10 = x_37; +goto block_24; } } -block_22: +block_24: { uint8_t x_11; -x_11 = l_Lean_Exception_isRuntime(x_9); +x_11 = l_Lean_Exception_isInterrupt(x_9); if (x_11 == 0) { +uint8_t x_12; +x_12 = l_Lean_Exception_isRuntime(x_9); +if (x_12 == 0) +{ if (lean_obj_tag(x_9) == 0) { -lean_object* x_12; +lean_object* x_13; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -8550,22 +8693,22 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_9); -lean_ctor_set(x_12, 1, x_10); -return x_12; +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_10); +return x_13; } else { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = lean_ctor_get(x_9, 0); -lean_inc(x_13); -x_14 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_15 = lean_nat_dec_eq(x_14, x_13); -lean_dec(x_13); -if (x_15 == 0) +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_9, 0); +lean_inc(x_14); +x_15 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_16 = lean_nat_dec_eq(x_15, x_14); +lean_dec(x_14); +if (x_16 == 0) { -lean_object* x_16; +lean_object* x_17; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -8573,43 +8716,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_10); -return x_16; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_10); +return x_17; } else { -uint8_t x_17; +uint8_t x_18; lean_dec(x_9); -x_17 = l_Lean_Name_isAtomic(x_1); -if (x_17 == 0) +x_18 = l_Lean_Name_isAtomic(x_1); +if (x_18 == 0) { -lean_object* x_18; -x_18 = l_Lean_Name_getRoot(x_1); +lean_object* x_19; +x_19 = l_Lean_Name_getRoot(x_1); lean_dec(x_1); -x_1 = x_18; +x_1 = x_19; x_8 = x_10; goto _start; } else { -lean_object* x_20; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_20 = l_Lean_PrettyPrinter_Delaborator_failure___rarg(x_10); -return x_20; -} -} -} -} -else -{ lean_object* x_21; lean_dec(x_7); lean_dec(x_6); @@ -8618,14 +8745,46 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_9); -lean_ctor_set(x_21, 1, x_10); +x_21 = l_Lean_PrettyPrinter_Delaborator_failure___rarg(x_10); return x_21; } } } } +else +{ +lean_object* x_22; +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_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_9); +lean_ctor_set(x_22, 1, x_10); +return x_22; +} +} +else +{ +lean_object* x_23; +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_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_9); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_delab___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: { @@ -10334,9 +10493,13 @@ if (x_47 == 0) lean_object* x_48; lean_object* x_49; uint8_t x_50; x_48 = lean_ctor_get(x_37, 0); x_49 = lean_ctor_get(x_37, 1); -x_50 = l_Lean_Exception_isRuntime(x_48); +x_50 = l_Lean_Exception_isInterrupt(x_48); if (x_50 == 0) { +uint8_t x_51; +x_51 = l_Lean_Exception_isRuntime(x_48); +if (x_51 == 0) +{ if (lean_obj_tag(x_48) == 0) { lean_dec(x_8); @@ -10347,13 +10510,13 @@ return x_37; } else { -lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_51 = lean_ctor_get(x_48, 0); -lean_inc(x_51); -x_52 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_53 = lean_nat_dec_eq(x_52, x_51); -lean_dec(x_51); -if (x_53 == 0) +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_48, 0); +lean_inc(x_52); +x_53 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_54 = lean_nat_dec_eq(x_53, x_52); +lean_dec(x_52); +if (x_54 == 0) { lean_dec(x_8); lean_dec(x_7); @@ -10363,43 +10526,43 @@ return x_37; } else { -lean_object* x_54; lean_object* x_55; +lean_object* x_55; lean_object* x_56; lean_free_object(x_37); lean_dec(x_48); -x_54 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__1___closed__5; -x_55 = l_panic___at_Lean_PrettyPrinter_delabCore___spec__1___rarg(x_54, x_5, x_6, x_7, x_8, x_49); -if (lean_obj_tag(x_55) == 0) +x_55 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__1___closed__5; +x_56 = l_panic___at_Lean_PrettyPrinter_delabCore___spec__1___rarg(x_55, x_5, x_6, x_7, x_8, x_49); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_10 = x_56; -x_11 = x_57; +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_10 = x_57; +x_11 = x_58; goto block_25; } else { -uint8_t x_58; -x_58 = !lean_is_exclusive(x_55); -if (x_58 == 0) +uint8_t x_59; +x_59 = !lean_is_exclusive(x_56); +if (x_59 == 0) { -return x_55; +return x_56; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 0); -x_60 = lean_ctor_get(x_55, 1); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_56, 0); +x_61 = lean_ctor_get(x_56, 1); +lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_55); -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_dec(x_56); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } @@ -10416,103 +10579,129 @@ return x_37; } else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_37, 0); -x_63 = lean_ctor_get(x_37, 1); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_37; +} +} +else +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_37, 0); +x_64 = lean_ctor_get(x_37, 1); +lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); lean_dec(x_37); -x_64 = l_Lean_Exception_isRuntime(x_62); -if (x_64 == 0) +x_65 = l_Lean_Exception_isInterrupt(x_63); +if (x_65 == 0) { -if (lean_obj_tag(x_62) == 0) +uint8_t x_66; +x_66 = l_Lean_Exception_isRuntime(x_63); +if (x_66 == 0) { -lean_object* x_65; +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_67; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_63); +lean_ctor_set(x_67, 1, x_64); +return x_67; } else { -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_ctor_get(x_62, 0); -lean_inc(x_66); -x_67 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; -x_68 = lean_nat_dec_eq(x_67, x_66); -lean_dec(x_66); -if (x_68 == 0) +lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_68 = lean_ctor_get(x_63, 0); +lean_inc(x_68); +x_69 = l_Lean_PrettyPrinter_Delaborator_orElse___rarg___closed__1; +x_70 = lean_nat_dec_eq(x_69, x_68); +lean_dec(x_68); +if (x_70 == 0) { -lean_object* x_69; +lean_object* x_71; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_63); -return x_69; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_63); +lean_ctor_set(x_71, 1, x_64); +return x_71; } else { -lean_object* x_70; lean_object* x_71; -lean_dec(x_62); -x_70 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__1___closed__5; -x_71 = l_panic___at_Lean_PrettyPrinter_delabCore___spec__1___rarg(x_70, x_5, x_6, x_7, x_8, x_63); -if (lean_obj_tag(x_71) == 0) -{ lean_object* x_72; lean_object* x_73; -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; +lean_dec(x_63); +x_72 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__1___closed__5; +x_73 = l_panic___at_Lean_PrettyPrinter_delabCore___spec__1___rarg(x_72, x_5, x_6, x_7, x_8, x_64); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_10 = x_74; +x_11 = x_75; goto block_25; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -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; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_73, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_73, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_78 = x_73; } else { - lean_dec_ref(x_71); - x_76 = lean_box(0); + lean_dec_ref(x_73); + x_78 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_79 = x_78; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; } } } } else { -lean_object* x_78; +lean_object* x_80; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_62); -lean_ctor_set(x_78, 1, x_63); -return x_78; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_63); +lean_ctor_set(x_80, 1, x_64); +return x_80; +} +} +else +{ +lean_object* x_81; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_63); +lean_ctor_set(x_81, 1, x_64); +return x_81; } } } @@ -10765,7 +10954,7 @@ x_15 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__4___closed__1; x_16 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_15); lean_ctor_set(x_9, 4, x_16); lean_ctor_set(x_9, 2, x_1); -lean_ctor_set_uint8(x_9, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*12, x_2); if (x_3 == 0) { lean_object* x_17; @@ -10787,7 +10976,7 @@ return x_21; } else { -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_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; lean_object* x_35; x_22 = lean_ctor_get(x_9, 0); x_23 = lean_ctor_get(x_9, 1); x_24 = lean_ctor_get(x_9, 3); @@ -10797,6 +10986,9 @@ x_27 = lean_ctor_get(x_9, 7); x_28 = lean_ctor_get(x_9, 8); x_29 = lean_ctor_get(x_9, 9); x_30 = lean_ctor_get(x_9, 10); +x_31 = lean_ctor_get(x_9, 11); +x_32 = lean_ctor_get_uint8(x_9, sizeof(void*)*12 + 1); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); @@ -10807,38 +10999,40 @@ lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_dec(x_9); -x_31 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__4___closed__1; -x_32 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_31); -x_33 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_33, 0, x_22); -lean_ctor_set(x_33, 1, x_23); -lean_ctor_set(x_33, 2, x_1); -lean_ctor_set(x_33, 3, x_24); -lean_ctor_set(x_33, 4, x_32); -lean_ctor_set(x_33, 5, x_25); -lean_ctor_set(x_33, 6, x_26); -lean_ctor_set(x_33, 7, x_27); -lean_ctor_set(x_33, 8, x_28); -lean_ctor_set(x_33, 9, x_29); -lean_ctor_set(x_33, 10, x_30); -lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_2); +x_33 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__4___closed__1; +x_34 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_33); +x_35 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_35, 0, x_22); +lean_ctor_set(x_35, 1, x_23); +lean_ctor_set(x_35, 2, x_1); +lean_ctor_set(x_35, 3, x_24); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_25); +lean_ctor_set(x_35, 6, x_26); +lean_ctor_set(x_35, 7, x_27); +lean_ctor_set(x_35, 8, x_28); +lean_ctor_set(x_35, 9, x_29); +lean_ctor_set(x_35, 10, x_30); +lean_ctor_set(x_35, 11, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_35, sizeof(void*)*12 + 1, x_32); if (x_3 == 0) { -lean_object* x_34; -x_34 = lean_apply_6(x_4, x_5, x_6, x_7, x_33, x_10, x_11); -return x_34; +lean_object* x_36; +x_36 = lean_apply_6(x_4, x_5, x_6, x_7, x_35, x_10, x_11); +return x_36; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_5, x_6, x_7, x_33, x_10, x_11); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_apply_6(x_4, x_36, x_6, x_7, x_33, x_10, x_37); -return x_38; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_5, x_6, x_7, x_35, x_10, x_11); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_apply_6(x_4, x_38, x_6, x_7, x_35, x_10, x_39); +return x_40; } } } @@ -11131,15 +11325,19 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_18, 0); x_31 = lean_ctor_get(x_18, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (x_32 == 0) { -lean_object* x_33; lean_object* x_34; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_free_object(x_18); lean_dec(x_30); -x_33 = lean_box(0); -x_34 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_33, x_5, x_6, x_7, x_8, x_31); -return x_34; +x_34 = lean_box(0); +x_35 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_34, x_5, x_6, x_7, x_8, x_31); +return x_35; } else { @@ -11156,24 +11354,6 @@ return x_18; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_18, 0); -x_36 = lean_ctor_get(x_18, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_18); -x_37 = l_Lean_Exception_isRuntime(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_35); -x_38 = lean_box(0); -x_39 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_38, x_5, x_6, x_7, x_8, x_36); -return x_39; -} -else -{ -lean_object* x_40; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -11182,20 +11362,72 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_36); -return x_40; +return x_18; +} +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_18, 0); +x_37 = lean_ctor_get(x_18, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_18); +x_38 = l_Lean_Exception_isInterrupt(x_36); +if (x_38 == 0) +{ +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_36); +x_40 = lean_box(0); +x_41 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_40, x_5, x_6, x_7, x_8, x_37); +return x_41; +} +else +{ +lean_object* x_42; +lean_dec(x_10); +lean_dec(x_8); +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_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_36); +lean_ctor_set(x_42, 1, x_37); +return x_42; +} +} +else +{ +lean_object* x_43; +lean_dec(x_10); +lean_dec(x_8); +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_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_36); +lean_ctor_set(x_43, 1, x_37); +return x_43; } } } } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_box(0); -x_42 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_41, x_5, x_6, x_7, x_8, x_9); -return x_42; +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +x_45 = l_Lean_PrettyPrinter_delabCore___rarg___lambda__5(x_1, x_2, x_3, x_10, x_44, x_5, x_6, x_7, x_8, x_9); +return x_45; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c index 01063ef4a4..b127ff1f12 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c @@ -155,6 +155,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfNat___closed__3; lean_object* l_Lean_getPPFunBinderTypes___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_shouldGroupWithNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabMData___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withType___at_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabNameMkStr___lambda__1___closed__1; static lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_delabAppMatch___spec__23___closed__1; @@ -2172,7 +2173,7 @@ x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); if (lean_obj_tag(x_9) == 1) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_31; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_33; x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); if (lean_is_exclusive(x_8)) { @@ -2188,28 +2189,28 @@ lean_inc(x_12); lean_dec(x_9); lean_inc(x_3); lean_inc(x_12); -x_31 = l_Lean_FVarId_getDecl(x_12, x_3, x_4, x_5, x_6, x_10); -if (lean_obj_tag(x_31) == 0) +x_33 = l_Lean_FVarId_getDecl(x_12, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = l_Lean_LocalDecl_userName(x_32); -lean_dec(x_32); -x_35 = lean_mk_syntax_ident(x_34); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_LocalDecl_userName(x_34); +lean_dec(x_34); +x_37 = lean_mk_syntax_ident(x_36); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_36 = l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit(x_35, x_1, x_2, x_3, x_4, x_5, x_6, x_33); -if (lean_obj_tag(x_36) == 0) +x_38 = l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit(x_37, x_1, x_2, x_3, x_4, x_5, x_6, x_35); +if (lean_obj_tag(x_38) == 0) { -uint8_t x_37; +uint8_t x_39; lean_dec(x_12); lean_dec(x_11); lean_dec(x_6); @@ -2218,112 +2219,116 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -return x_36; +return x_38; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_36, 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_inc(x_41); -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_dec(x_36); -x_13 = x_41; -x_14 = x_42; -goto block_30; +lean_inc(x_40); +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } else { lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_31, 0); +x_43 = lean_ctor_get(x_38, 0); lean_inc(x_43); -x_44 = lean_ctor_get(x_31, 1); +x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); -lean_dec(x_31); +lean_dec(x_38); x_13 = x_43; x_14 = x_44; -goto block_30; +goto block_32; } -block_30: +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_33, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_33, 1); +lean_inc(x_46); +lean_dec(x_33); +x_13 = x_45; +x_14 = x_46; +goto block_32; +} +block_32: { uint8_t x_15; -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +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_dec(x_13); lean_dec(x_11); -x_16 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__6; -x_17 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__8; -x_18 = l_Lean_Name_replacePrefix(x_12, x_16, x_17); -x_19 = lean_mk_syntax_ident(x_18); -x_20 = l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit(x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_14); -if (lean_obj_tag(x_20) == 0) +x_17 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__6; +x_18 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__8; +x_19 = l_Lean_Name_replacePrefix(x_12, x_17, x_18); +x_20 = lean_mk_syntax_ident(x_19); +x_21 = l_Lean_PrettyPrinter_Delaborator_maybeAddBlockImplicit(x_20, x_1, x_2, x_3, x_4, x_5, x_6, x_14); +if (lean_obj_tag(x_21) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -return x_20; +return x_21; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 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_25; -x_25 = !lean_is_exclusive(x_20); -if (x_25 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_21); +if (x_26 == 0) { -return x_20; +return x_21; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_20, 0); -x_27 = lean_ctor_get(x_20, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_21, 0); +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_20); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_dec(x_21); +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; } } } else { -lean_object* x_29; +lean_object* x_30; lean_dec(x_12); lean_dec(x_6); lean_dec(x_5); @@ -2332,27 +2337,48 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); if (lean_is_scalar(x_11)) { - x_29 = lean_alloc_ctor(1, 2, 0); + x_30 = lean_alloc_ctor(1, 2, 0); } else { - x_29 = x_11; - lean_ctor_set_tag(x_29, 1); + x_30 = x_11; + lean_ctor_set_tag(x_30, 1); } -lean_ctor_set(x_29, 0, x_13); -lean_ctor_set(x_29, 1, x_14); -return x_29; +lean_ctor_set(x_30, 0, x_13); +lean_ctor_set(x_30, 1, x_14); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_is_scalar(x_11)) { + x_31 = lean_alloc_ctor(1, 2, 0); +} else { + x_31 = x_11; + lean_ctor_set_tag(x_31, 1); +} +lean_ctor_set(x_31, 0, x_13); +lean_ctor_set(x_31, 1, x_14); +return x_31; } } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_9); -x_45 = lean_ctor_get(x_8, 1); -lean_inc(x_45); +x_47 = lean_ctor_get(x_8, 1); +lean_inc(x_47); lean_dec(x_8); -x_46 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__4; -x_47 = l_panic___at_Lean_PrettyPrinter_Delaborator_delabFVar___spec__1(x_46, x_1, x_2, x_3, x_4, x_5, x_6, x_45); -return x_47; +x_48 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__4; +x_49 = l_panic___at_Lean_PrettyPrinter_Delaborator_delabFVar___spec__1(x_48, x_1, x_2, x_3, x_4, x_5, x_6, x_47); +return x_49; } } } @@ -7548,14 +7574,18 @@ if (x_28 == 0) { lean_object* x_29; uint8_t x_30; x_29 = lean_ctor_get(x_27, 0); -x_30 = l_Lean_Exception_isRuntime(x_29); +x_30 = l_Lean_Exception_isInterrupt(x_29); if (x_30 == 0) { -lean_object* x_31; +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_dec(x_29); -x_31 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; +x_32 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; lean_ctor_set_tag(x_27, 0); -lean_ctor_set(x_27, 0, x_31); +lean_ctor_set(x_27, 0, x_32); return x_27; } else @@ -7565,147 +7595,209 @@ return x_27; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_27, 0); -x_33 = lean_ctor_get(x_27, 1); +return x_27; +} +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; +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_inc(x_32); lean_dec(x_27); -x_34 = l_Lean_Exception_isRuntime(x_32); -if (x_34 == 0) +x_35 = l_Lean_Exception_isInterrupt(x_33); +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; -lean_dec(x_32); -x_35 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; +uint8_t x_36; +x_36 = l_Lean_Exception_isRuntime(x_33); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_33); +x_37 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; } else { -lean_object* x_37; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_32); -lean_ctor_set(x_37, 1, x_33); -return x_37; +lean_object* x_39; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_33); +lean_ctor_set(x_39, 1, x_34); +return x_39; +} +} +else +{ +lean_object* x_40; +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_33); +lean_ctor_set(x_40, 1, x_34); +return x_40; } } } } else { -uint8_t x_38; +uint8_t x_41; lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_38 = !lean_is_exclusive(x_17); -if (x_38 == 0) +x_41 = !lean_is_exclusive(x_17); +if (x_41 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_17, 0); -x_40 = l_Lean_Exception_isRuntime(x_39); -if (x_40 == 0) -{ -lean_object* x_41; -lean_dec(x_39); -x_41 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_41); -return x_17; -} -else -{ -return x_17; -} -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_object* x_42; uint8_t x_43; x_42 = lean_ctor_get(x_17, 0); -x_43 = lean_ctor_get(x_17, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_17); +x_43 = l_Lean_Exception_isInterrupt(x_42); +if (x_43 == 0) +{ +uint8_t x_44; x_44 = l_Lean_Exception_isRuntime(x_42); if (x_44 == 0) { -lean_object* x_45; lean_object* x_46; +lean_object* x_45; lean_dec(x_42); x_45 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -return x_46; +lean_ctor_set_tag(x_17, 0); +lean_ctor_set(x_17, 0, x_45); +return x_17; } else { -lean_object* x_47; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_43); -return x_47; +return x_17; +} +} +else +{ +return x_17; +} +} +else +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_17, 0); +x_47 = lean_ctor_get(x_17, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_17); +x_48 = l_Lean_Exception_isInterrupt(x_46); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = l_Lean_Exception_isRuntime(x_46); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_46); +x_50 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_47); +return x_51; +} +else +{ +lean_object* x_52; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_46); +lean_ctor_set(x_52, 1, x_47); +return x_52; +} +} +else +{ +lean_object* x_53; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_46); +lean_ctor_set(x_53, 1, x_47); +return x_53; } } } } else { -uint8_t x_48; +uint8_t x_54; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_48 = !lean_is_exclusive(x_10); -if (x_48 == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_10, 0); -x_50 = l_Lean_Exception_isRuntime(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -lean_dec(x_49); -x_51 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; -lean_ctor_set_tag(x_10, 0); -lean_ctor_set(x_10, 0, x_51); -return x_10; -} -else -{ -return x_10; -} -} -else -{ -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_10, 0); -x_53 = lean_ctor_get(x_10, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_10); -x_54 = l_Lean_Exception_isRuntime(x_52); +x_54 = !lean_is_exclusive(x_10); if (x_54 == 0) { -lean_object* x_55; lean_object* x_56; -lean_dec(x_52); -x_55 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_53); -return x_56; +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_10, 0); +x_56 = l_Lean_Exception_isInterrupt(x_55); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_55); +if (x_57 == 0) +{ +lean_object* x_58; +lean_dec(x_55); +x_58 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; +lean_ctor_set_tag(x_10, 0); +lean_ctor_set(x_10, 0, x_58); +return x_10; } else { -lean_object* x_57; -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_52); -lean_ctor_set(x_57, 1, x_53); -return x_57; +return x_10; +} +} +else +{ +return x_10; +} +} +else +{ +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_10, 0); +x_60 = lean_ctor_get(x_10, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_10); +x_61 = l_Lean_Exception_isInterrupt(x_59); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = l_Lean_Exception_isRuntime(x_59); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_59); +x_63 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__9; +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_60); +return x_64; +} +else +{ +lean_object* x_65; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_60); +return x_65; +} +} +else +{ +lean_object* x_66; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_59); +lean_ctor_set(x_66, 1, x_60); +return x_66; } } } @@ -11245,66 +11337,56 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_withoutParentProjections___rarg(uint8_t 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; +uint8_t x_10; lean_object* x_11; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_inc(x_3); -x_10 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getExpr___at_Lean_PrettyPrinter_Delaborator_getExprKind___spec__1(x_3, x_4, x_5, x_6, x_7, 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_17 = l_Lean_PrettyPrinter_Delaborator_SubExpr_getExpr___at_Lean_PrettyPrinter_Delaborator_getExprKind___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_13 = l_Lean_PrettyPrinter_Delaborator_isParentProj(x_1, x_11, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_13) == 0) +x_20 = l_Lean_PrettyPrinter_Delaborator_isParentProj(x_1, x_18, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_unbox(x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -x_17 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -return x_17; +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_unbox(x_21); +lean_dec(x_21); +x_10 = x_23; +x_11 = x_22; +goto block_16; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_dec(x_13); -x_19 = lean_box(x_1); -x_20 = lean_alloc_closure((void*)(l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_withoutParentProjections___rarg___boxed), 9, 2); -lean_closure_set(x_20, 0, x_19); -lean_closure_set(x_20, 1, x_2); -x_21 = l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppArg___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_withoutParentProjections___spec__1___rarg(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -return x_21; -} -} -else +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_13); -if (x_22 == 0) +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +x_27 = l_Lean_Exception_isInterrupt(x_25); +if (x_27 == 0) { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_13, 0); -x_24 = lean_ctor_get(x_13, 1); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +uint8_t x_28; +x_28 = l_Lean_Exception_isRuntime(x_25); +if (x_28 == 0) { -lean_object* x_26; -lean_free_object(x_13); -lean_dec(x_23); -x_26 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -return x_26; +uint8_t x_29; +lean_free_object(x_20); +lean_dec(x_25); +x_29 = 0; +x_10 = x_29; +x_11 = x_26; +goto block_16; } else { @@ -11315,28 +11397,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_13; +return x_20; } } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_13); -x_29 = l_Lean_Exception_isRuntime(x_27); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_27); -x_30 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28); -return x_30; -} -else -{ -lean_object* x_31; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11344,12 +11409,82 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_27); -lean_ctor_set(x_31, 1, x_28); -return x_31; +return x_20; } } +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_20); +x_32 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +uint8_t x_34; +lean_dec(x_30); +x_34 = 0; +x_10 = x_34; +x_11 = x_31; +goto block_16; +} +else +{ +lean_object* x_35; +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_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_30); +lean_ctor_set(x_35, 1, x_31); +return x_35; +} +} +else +{ +lean_object* x_36; +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_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_31); +return x_36; +} +} +} +block_16: +{ +if (x_10 == 0) +{ +lean_object* x_12; +x_12 = lean_apply_7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_box(x_1); +x_14 = lean_alloc_closure((void*)(l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_withoutParentProjections___rarg___boxed), 9, 2); +lean_closure_set(x_14, 0, x_13); +lean_closure_set(x_14, 1, x_2); +x_15 = l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppArg___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_withoutParentProjections___spec__1___rarg(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +return x_15; +} } } } @@ -11511,14 +11646,18 @@ if (x_36 == 0) lean_object* x_37; lean_object* x_38; uint8_t x_39; x_37 = lean_ctor_get(x_33, 0); x_38 = lean_ctor_get(x_33, 1); -x_39 = l_Lean_Exception_isRuntime(x_37); +x_39 = l_Lean_Exception_isInterrupt(x_37); if (x_39 == 0) { -lean_object* x_40; +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) +{ +lean_object* x_41; lean_free_object(x_33); lean_dec(x_37); -x_40 = lean_box(0); -x_19 = x_40; +x_41 = lean_box(0); +x_19 = x_41; x_20 = x_38; goto block_28; } @@ -11538,25 +11677,6 @@ return x_33; } else { -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = lean_ctor_get(x_33, 0); -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_33); -x_43 = l_Lean_Exception_isRuntime(x_41); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_41); -x_44 = lean_box(0); -x_19 = x_44; -x_20 = x_42; -goto block_28; -} -else -{ -lean_object* x_45; lean_dec(x_15); lean_dec(x_13); lean_dec(x_7); @@ -11566,10 +11686,65 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_41); -lean_ctor_set(x_45, 1, x_42); -return x_45; +return x_33; +} +} +else +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_33, 0); +x_43 = lean_ctor_get(x_33, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_33); +x_44 = l_Lean_Exception_isInterrupt(x_42); +if (x_44 == 0) +{ +uint8_t x_45; +x_45 = l_Lean_Exception_isRuntime(x_42); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_42); +x_46 = lean_box(0); +x_19 = x_46; +x_20 = x_43; +goto block_28; +} +else +{ +lean_object* x_47; +lean_dec(x_15); +lean_dec(x_13); +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_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_42); +lean_ctor_set(x_47, 1, x_43); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec(x_15); +lean_dec(x_13); +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_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_43); +return x_48; } } } @@ -16181,16 +16356,20 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; uint8_t x_24; x_22 = lean_ctor_get(x_20, 0); x_23 = lean_ctor_get(x_20, 1); -x_24 = l_Lean_Exception_isRuntime(x_22); +x_24 = l_Lean_Exception_isInterrupt(x_22); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_22, 0); -lean_inc(x_25); -x_26 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_27 = lean_nat_dec_eq(x_26, x_25); -lean_dec(x_25); -if (x_27 == 0) +uint8_t x_25; +x_25 = l_Lean_Exception_isRuntime(x_22); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_22, 0); +lean_inc(x_26); +x_27 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_28 = lean_nat_dec_eq(x_27, x_26); +lean_dec(x_26); +if (x_28 == 0) { lean_dec(x_13); lean_dec(x_2); @@ -16216,51 +16395,75 @@ return x_20; } else { -lean_object* x_29; lean_object* x_30; uint8_t 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 = l_Lean_Exception_isRuntime(x_29); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_29, 0); -lean_inc(x_32); -x_33 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_34 = lean_nat_dec_eq(x_33, x_32); -lean_dec(x_32); -if (x_34 == 0) -{ -lean_object* x_35; lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_30); -return x_35; +return x_20; +} } else { -lean_dec(x_29); -x_3 = x_13; -x_10 = x_30; -goto _start; -} -} -else +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_20); +x_32 = l_Lean_Exception_isInterrupt(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +x_35 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_36 = lean_nat_dec_eq(x_35, x_34); +lean_dec(x_34); +if (x_36 == 0) { lean_object* x_37; lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_31); return x_37; } +else +{ +lean_dec(x_30); +x_3 = x_13; +x_10 = x_31; +goto _start; +} +} +else +{ +lean_object* x_39; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_31); +return x_39; +} +} +else +{ +lean_object* x_40; +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_1); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_30); +lean_ctor_set(x_40, 1, x_31); +return x_40; +} } } } @@ -16486,69 +16689,69 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_nat_dec_eq(x_4, x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_53; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_55; x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_sub(x_4, x_16); x_18 = lean_array_get_size(x_2); -x_53 = lean_nat_dec_lt(x_17, x_18); -if (x_53 == 0) +x_55 = lean_nat_dec_lt(x_17, x_18); +if (x_55 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = l_Lean_PrettyPrinter_Delaborator_instInhabitedAppImplicitArg; -x_55 = l___private_Init_GetElem_0__outOfBounds___rarg(x_54); -x_56 = l_Lean_PrettyPrinter_Delaborator_AppImplicitArg_syntax_x3f(x_55); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; -lean_dec(x_18); -lean_dec(x_4); -x_57 = lean_nat_add(x_5, x_16); -lean_dec(x_5); -x_4 = x_17; -x_5 = x_57; -goto _start; -} -else +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = l_Lean_PrettyPrinter_Delaborator_instInhabitedAppImplicitArg; +x_57 = l___private_Init_GetElem_0__outOfBounds___rarg(x_56); +x_58 = l_Lean_PrettyPrinter_Delaborator_AppImplicitArg_syntax_x3f(x_57); +if (lean_obj_tag(x_58) == 0) { lean_object* x_59; -lean_dec(x_56); -x_59 = lean_box(0); -x_19 = x_59; -goto block_52; -} -} -else -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_array_fget(x_2, x_17); -x_61 = l_Lean_PrettyPrinter_Delaborator_AppImplicitArg_syntax_x3f(x_60); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_dec(x_18); lean_dec(x_4); -x_62 = lean_nat_add(x_5, x_16); +x_59 = lean_nat_add(x_5, x_16); lean_dec(x_5); x_4 = x_17; -x_5 = x_62; +x_5 = x_59; goto _start; } else { -lean_object* x_64; -lean_dec(x_61); -x_64 = lean_box(0); -x_19 = x_64; -goto block_52; +lean_object* x_61; +lean_dec(x_58); +x_61 = lean_box(0); +x_19 = x_61; +goto block_54; } } -block_52: +else { -lean_object* x_20; lean_object* x_21; lean_object* x_34; lean_object* x_35; +lean_object* x_62; lean_object* x_63; +x_62 = lean_array_fget(x_2, x_17); +x_63 = l_Lean_PrettyPrinter_Delaborator_AppImplicitArg_syntax_x3f(x_62); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +lean_dec(x_18); +lean_dec(x_4); +x_64 = lean_nat_add(x_5, x_16); +lean_dec(x_5); +x_4 = x_17; +x_5 = x_64; +goto _start; +} +else +{ +lean_object* x_66; +lean_dec(x_63); +x_66 = lean_box(0); +x_19 = x_66; +goto block_54; +} +} +block_54: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_36; lean_object* x_37; lean_dec(x_19); lean_inc(x_6); lean_inc(x_1); -x_34 = l_Lean_Syntax_mkApp(x_1, x_6); +x_36 = l_Lean_Syntax_mkApp(x_1, x_6); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -16556,80 +16759,84 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_3); -x_35 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand(x_3, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand(x_3, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_37) == 0) { -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; uint8_t x_43; +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; lean_dec(x_17); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Array_extract___rarg(x_2, x_4, x_18); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Array_extract___rarg(x_2, x_4, x_18); lean_dec(x_18); lean_dec(x_2); -x_39 = lean_array_get_size(x_38); -x_40 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; -x_41 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__3(x_40, x_38, x_14, x_39); -lean_dec(x_38); -x_42 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +x_41 = lean_array_get_size(x_40); +x_42 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; +x_43 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__3(x_42, x_40, x_14, x_41); +lean_dec(x_40); +x_44 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_39); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -x_45 = l_Lean_Syntax_mkApp(x_44, x_41); -lean_ctor_set(x_42, 0, x_45); -return x_42; +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_44, 0); +x_47 = l_Lean_Syntax_mkApp(x_46, x_43); +lean_ctor_set(x_44, 0, x_47); +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_42); -x_48 = l_Lean_Syntax_mkApp(x_46, x_41); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_44, 0); +x_49 = lean_ctor_get(x_44, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_44); +x_50 = l_Lean_Syntax_mkApp(x_48, x_43); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } else { -lean_object* x_50; lean_object* x_51; +lean_object* x_52; lean_object* x_53; lean_dec(x_18); lean_dec(x_4); -x_50 = lean_ctor_get(x_35, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_35, 1); -lean_inc(x_51); -lean_dec(x_35); -x_20 = x_50; -x_21 = x_51; -goto block_33; +x_52 = lean_ctor_get(x_37, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_37, 1); +lean_inc(x_53); +lean_dec(x_37); +x_20 = x_52; +x_21 = x_53; +goto block_35; } -block_33: +block_35: { uint8_t x_22; -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; +lean_object* x_24; lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -16642,22 +16849,22 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_21); -return x_23; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_21); +return x_24; } else { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -x_25 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_26 = lean_nat_dec_eq(x_25, x_24); -lean_dec(x_24); -if (x_26 == 0) +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_20, 0); +lean_inc(x_25); +x_26 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_27 = lean_nat_dec_eq(x_26, x_25); +lean_dec(x_25); +if (x_27 == 0) { -lean_object* x_27; +lean_object* x_28; lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -16670,56 +16877,77 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_21); -return x_27; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_21); +return x_28; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_20); -x_28 = lean_nat_add(x_5, x_16); +x_29 = lean_nat_add(x_5, x_16); lean_dec(x_5); -x_29 = lean_array_pop(x_6); -x_30 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go), 13, 6); -lean_closure_set(x_30, 0, x_1); -lean_closure_set(x_30, 1, x_2); -lean_closure_set(x_30, 2, x_3); -lean_closure_set(x_30, 3, x_17); -lean_closure_set(x_30, 4, x_14); -lean_closure_set(x_30, 5, x_29); -x_31 = l_Lean_PrettyPrinter_Delaborator_SubExpr_withBoundedAppFn___at_Lean_PrettyPrinter_Delaborator_delabAppExplicitCore___spec__6(x_28, x_30, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -return x_31; -} -} -} -else -{ -lean_object* x_32; -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -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_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_20); -lean_ctor_set(x_32, 1, x_21); +x_30 = lean_array_pop(x_6); +x_31 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go), 13, 6); +lean_closure_set(x_31, 0, x_1); +lean_closure_set(x_31, 1, x_2); +lean_closure_set(x_31, 2, x_3); +lean_closure_set(x_31, 3, x_17); +lean_closure_set(x_31, 4, x_14); +lean_closure_set(x_31, 5, x_30); +x_32 = l_Lean_PrettyPrinter_Delaborator_SubExpr_withBoundedAppFn___at_Lean_PrettyPrinter_Delaborator_delabAppExplicitCore___spec__6(x_29, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_21); return x_32; } } } +else +{ +lean_object* x_33; +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_20); +lean_ctor_set(x_33, 1, x_21); +return x_33; +} } else { -lean_object* x_65; +lean_object* x_34; +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_20); +lean_ctor_set(x_34, 1, x_21); +return x_34; +} +} +} +} +else +{ +lean_object* x_67; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -16729,56 +16957,56 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_65 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand(x_3, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_65) == 0) +x_67 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand(x_3, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_66, x_7, x_8, x_9, x_10, x_11, x_12, x_67); +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +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_70 = l_Lean_PrettyPrinter_Delaborator_annotateTermInfo(x_68, x_7, x_8, x_9, x_10, x_11, x_12, x_69); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 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_68, 0); -x_71 = lean_array_get_size(x_2); -x_72 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; -x_73 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__1(x_72, x_2, x_14, x_71); +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_70, 0); +x_73 = lean_array_get_size(x_2); +x_74 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; +x_75 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__1(x_74, x_2, x_14, x_73); lean_dec(x_2); -x_74 = l_Lean_Syntax_mkApp(x_70, x_73); -lean_ctor_set(x_68, 0, x_74); -return x_68; +x_76 = l_Lean_Syntax_mkApp(x_72, x_75); +lean_ctor_set(x_70, 0, x_76); +return x_70; } else { -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_75 = lean_ctor_get(x_68, 0); -x_76 = lean_ctor_get(x_68, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_68); -x_77 = lean_array_get_size(x_2); -x_78 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; -x_79 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__1(x_78, x_2, x_14, x_77); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_77 = lean_ctor_get(x_70, 0); +x_78 = lean_ctor_get(x_70, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_70); +x_79 = lean_array_get_size(x_2); +x_80 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___closed__3; +x_81 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryAppUnexpanders_go___spec__1(x_80, x_2, x_14, x_79); lean_dec(x_2); -x_80 = l_Lean_Syntax_mkApp(x_75, 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_76); -return x_81; +x_82 = l_Lean_Syntax_mkApp(x_77, x_81); +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_82; +uint8_t x_84; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -16786,23 +17014,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); -x_82 = !lean_is_exclusive(x_65); -if (x_82 == 0) +x_84 = !lean_is_exclusive(x_67); +if (x_84 == 0) { -return x_65; +return x_67; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_65, 0); -x_84 = lean_ctor_get(x_65, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_65); -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; +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_67, 0); +x_86 = lean_ctor_get(x_67, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_67); +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; } } } @@ -18619,7 +18847,7 @@ return x_50; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_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_object* x_13) { _start: { -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_48; +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_51; lean_dec(x_6); x_14 = lean_array_get_size(x_1); x_15 = lean_unsigned_to_nat(0u); @@ -18628,47 +18856,47 @@ x_16 = l_Array_filterMapM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCo x_17 = l_Lean_Syntax_mkApp(x_2, x_16); if (x_5 == 0) { -uint8_t x_59; -x_59 = 0; -x_18 = x_59; -x_19 = x_13; -goto block_47; -} -else -{ -uint8_t x_60; -x_60 = lean_nat_dec_lt(x_15, x_14); -if (x_60 == 0) -{ -lean_object* x_61; -x_61 = lean_box(0); -x_48 = x_61; -goto block_58; -} -else -{ -size_t x_62; size_t x_63; uint8_t x_64; +uint8_t x_62; x_62 = 0; -x_63 = lean_usize_of_nat(x_14); -x_64 = l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___spec__9(x_1, x_62, x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_box(0); -x_48 = x_65; -goto block_58; +x_18 = x_62; +x_19 = x_13; +goto block_50; } else { -uint8_t x_66; -x_66 = 0; -x_18 = x_66; +uint8_t x_63; +x_63 = lean_nat_dec_lt(x_15, x_14); +if (x_63 == 0) +{ +lean_object* x_64; +x_64 = lean_box(0); +x_51 = x_64; +goto block_61; +} +else +{ +size_t x_65; size_t x_66; uint8_t x_67; +x_65 = 0; +x_66 = lean_usize_of_nat(x_14); +x_67 = l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___spec__9(x_1, x_65, x_66); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_box(0); +x_51 = x_68; +goto block_61; +} +else +{ +uint8_t x_69; +x_69 = 0; +x_18 = x_69; x_19 = x_13; -goto block_47; +goto block_50; } } } -block_47: +block_50: { if (x_18 == 0) { @@ -18730,9 +18958,13 @@ if (x_27 == 0) lean_object* x_28; lean_object* x_29; uint8_t x_30; x_28 = lean_ctor_get(x_22, 0); x_29 = lean_ctor_get(x_22, 1); -x_30 = l_Lean_Exception_isRuntime(x_28); +x_30 = l_Lean_Exception_isInterrupt(x_28); if (x_30 == 0) { +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ if (lean_obj_tag(x_28) == 0) { lean_dec(x_17); @@ -18750,13 +18982,13 @@ return x_22; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_33 = lean_nat_dec_eq(x_32, x_31); -lean_dec(x_31); -if (x_33 == 0) +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +x_33 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_34 = lean_nat_dec_eq(x_33, x_32); +lean_dec(x_32); +if (x_34 == 0) { lean_dec(x_17); lean_dec(x_14); @@ -18773,12 +19005,12 @@ return x_22; } else { -lean_object* x_34; lean_object* x_35; +lean_object* x_35; lean_object* x_36; lean_free_object(x_22); lean_dec(x_28); -x_34 = lean_box(0); -x_35 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__7(x_17, x_3, x_14, x_1, x_4, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_29); -return x_35; +x_35 = lean_box(0); +x_36 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__7(x_17, x_3, x_14, x_1, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +return x_36; } } } @@ -18800,18 +19032,38 @@ return x_22; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_22, 0); -x_37 = lean_ctor_get(x_22, 1); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_22; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_22, 0); +x_38 = lean_ctor_get(x_22, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); lean_dec(x_22); -x_38 = l_Lean_Exception_isRuntime(x_36); -if (x_38 == 0) +x_39 = l_Lean_Exception_isInterrupt(x_37); +if (x_39 == 0) { -if (lean_obj_tag(x_36) == 0) +uint8_t x_40; +x_40 = l_Lean_Exception_isRuntime(x_37); +if (x_40 == 0) { -lean_object* x_39; +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_41; lean_dec(x_17); lean_dec(x_14); lean_dec(x_12); @@ -18823,22 +19075,22 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_36); -lean_ctor_set(x_39, 1, x_37); -return x_39; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_38); +return x_41; } else { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_36, 0); -lean_inc(x_40); -x_41 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_42 = lean_nat_dec_eq(x_41, x_40); -lean_dec(x_40); -if (x_42 == 0) +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_37, 0); +lean_inc(x_42); +x_43 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_44 = lean_nat_dec_eq(x_43, x_42); +lean_dec(x_42); +if (x_44 == 0) { -lean_object* x_43; +lean_object* x_45; lean_dec(x_17); lean_dec(x_14); lean_dec(x_12); @@ -18850,24 +19102,24 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_36); -lean_ctor_set(x_43, 1, x_37); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; -lean_dec(x_36); -x_44 = lean_box(0); -x_45 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__7(x_17, x_3, x_14, x_1, x_4, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_37); +lean_ctor_set(x_45, 1, x_38); return x_45; } +else +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_37); +x_46 = lean_box(0); +x_47 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__7(x_17, x_3, x_14, x_1, x_4, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_38); +return x_47; +} } } else { -lean_object* x_46; +lean_object* x_48; lean_dec(x_17); lean_dec(x_14); lean_dec(x_12); @@ -18879,44 +19131,64 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_36); -lean_ctor_set(x_46, 1, x_37); -return x_46; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_37); +lean_ctor_set(x_48, 1, x_38); +return x_48; } } -} -} -} -block_58: +else { -lean_object* x_49; lean_object* x_50; -lean_dec(x_48); -x_49 = l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___closed__2; +lean_object* x_49; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_37); +lean_ctor_set(x_49, 1, x_38); +return x_49; +} +} +} +} +} +block_61: +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_51); +x_52 = l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___closed__2; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_50 = l_Lean_PrettyPrinter_Delaborator_getPPOption___rarg(x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_50) == 0) +x_53 = l_Lean_PrettyPrinter_Delaborator_getPPOption___rarg(x_52, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_51; lean_object* x_52; uint8_t x_53; -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_unbox(x_51); -lean_dec(x_51); -x_18 = x_53; -x_19 = x_52; -goto block_47; +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_unbox(x_54); +lean_dec(x_54); +x_18 = x_56; +x_19 = x_55; +goto block_50; } else { -uint8_t x_54; +uint8_t x_57; lean_dec(x_17); lean_dec(x_14); lean_dec(x_12); @@ -18928,23 +19200,23 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_50); -if (x_54 == 0) +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) { -return x_50; +return x_53; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_50, 0); -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_50); -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_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_53); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } @@ -18997,36 +19269,36 @@ if (x_4 == 0) { x_21 = x_4; x_22 = x_18; -goto block_50; +goto block_53; } else { -lean_object* x_51; lean_object* x_52; -x_51 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__9___closed__1; +lean_object* x_54; lean_object* x_55; +x_54 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__9___closed__1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_52 = l_Lean_PrettyPrinter_Delaborator_getPPOption___rarg(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -if (lean_obj_tag(x_52) == 0) +x_55 = l_Lean_PrettyPrinter_Delaborator_getPPOption___rarg(x_54, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_unbox(x_53); -lean_dec(x_53); -x_21 = x_55; -x_22 = x_54; -goto block_50; +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_unbox(x_56); +lean_dec(x_56); +x_21 = x_58; +x_22 = x_57; +goto block_53; } else { -uint8_t x_56; +uint8_t x_59; lean_dec(x_20); lean_dec(x_19); lean_dec(x_11); @@ -19037,27 +19309,27 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) +x_59 = !lean_is_exclusive(x_55); +if (x_59 == 0) { -return x_52; +return x_55; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -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; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_55, 0); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_55); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } -block_50: +block_53: { if (x_21 == 0) { @@ -19119,9 +19391,13 @@ if (x_30 == 0) lean_object* x_31; lean_object* x_32; uint8_t x_33; x_31 = lean_ctor_get(x_25, 0); x_32 = lean_ctor_get(x_25, 1); -x_33 = l_Lean_Exception_isRuntime(x_31); +x_33 = l_Lean_Exception_isInterrupt(x_31); if (x_33 == 0) { +uint8_t x_34; +x_34 = l_Lean_Exception_isRuntime(x_31); +if (x_34 == 0) +{ if (lean_obj_tag(x_31) == 0) { lean_dec(x_20); @@ -19138,13 +19414,13 @@ return x_25; } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_31, 0); -lean_inc(x_34); -x_35 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_36 = lean_nat_dec_eq(x_35, x_34); -lean_dec(x_34); -if (x_36 == 0) +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_31, 0); +lean_inc(x_35); +x_36 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_37 = lean_nat_dec_eq(x_36, x_35); +lean_dec(x_35); +if (x_37 == 0) { lean_dec(x_20); lean_dec(x_19); @@ -19160,12 +19436,12 @@ return x_25; } else { -lean_object* x_37; lean_object* x_38; +lean_object* x_38; lean_object* x_39; lean_free_object(x_25); lean_dec(x_31); -x_37 = lean_box(0); -x_38 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__8(x_20, x_19, x_5, x_1, x_4, x_37, x_6, x_7, x_8, x_9, x_10, x_11, x_32); -return x_38; +x_38 = lean_box(0); +x_39 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__8(x_20, x_19, x_5, x_1, x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +return x_39; } } } @@ -19186,18 +19462,37 @@ return x_25; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_25, 0); -x_40 = lean_ctor_get(x_25, 1); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_11); +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_1); +return x_25; +} +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_25, 0); +x_41 = lean_ctor_get(x_25, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); lean_dec(x_25); -x_41 = l_Lean_Exception_isRuntime(x_39); -if (x_41 == 0) +x_42 = l_Lean_Exception_isInterrupt(x_40); +if (x_42 == 0) { -if (lean_obj_tag(x_39) == 0) +uint8_t x_43; +x_43 = l_Lean_Exception_isRuntime(x_40); +if (x_43 == 0) { -lean_object* x_42; +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_44; lean_dec(x_20); lean_dec(x_19); lean_dec(x_11); @@ -19208,22 +19503,22 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_40); -return x_42; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_41); +return x_44; } else { -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_39, 0); -lean_inc(x_43); -x_44 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; -x_45 = lean_nat_dec_eq(x_44, x_43); -lean_dec(x_43); -if (x_45 == 0) +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = l_List_firstM___at_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore_tryUnexpand___spec__1___closed__1; +x_47 = lean_nat_dec_eq(x_46, x_45); +lean_dec(x_45); +if (x_47 == 0) { -lean_object* x_46; +lean_object* x_48; lean_dec(x_20); lean_dec(x_19); lean_dec(x_11); @@ -19234,24 +19529,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_39); -lean_ctor_set(x_46, 1, x_40); -return x_46; -} -else -{ -lean_object* x_47; lean_object* x_48; -lean_dec(x_39); -x_47 = lean_box(0); -x_48 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__8(x_20, x_19, x_5, x_1, x_4, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_41); return x_48; } +else +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_40); +x_49 = lean_box(0); +x_50 = l_Lean_PrettyPrinter_Delaborator_delabAppImplicitCore___lambda__8(x_20, x_19, x_5, x_1, x_4, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_41); +return x_50; +} } } else { -lean_object* x_49; +lean_object* x_51; lean_dec(x_20); lean_dec(x_19); lean_dec(x_11); @@ -19262,19 +19557,17 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_39); -lean_ctor_set(x_49, 1, x_40); -return x_49; -} -} -} -} +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_40); +lean_ctor_set(x_51, 1, x_41); +return x_51; } } else { -uint8_t x_60; +lean_object* x_52; +lean_dec(x_20); +lean_dec(x_19); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -19283,23 +19576,44 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_60 = !lean_is_exclusive(x_16); -if (x_60 == 0) +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_40); +lean_ctor_set(x_52, 1, x_41); +return x_52; +} +} +} +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_11); +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_1); +x_63 = !lean_is_exclusive(x_16); +if (x_63 == 0) { return x_16; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_16, 0); -x_62 = lean_ctor_get(x_16, 1); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_16, 0); +x_65 = lean_ctor_get(x_16, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_16); -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; +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; } } } @@ -33986,15 +34300,19 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; uint8_t x_22; x_20 = lean_ctor_get(x_14, 0); x_21 = lean_ctor_get(x_14, 1); -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { -uint8_t x_23; lean_object* x_24; +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ +uint8_t x_24; lean_object* x_25; lean_free_object(x_14); lean_dec(x_20); -x_23 = 0; -x_24 = l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__2(x_3, x_12, x_2, x_1, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -return x_24; +x_24 = 0; +x_25 = l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__2(x_3, x_12, x_2, x_1, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +return x_25; } else { @@ -34012,24 +34330,6 @@ return x_14; } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_14, 0); -x_26 = lean_ctor_get(x_14, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_14); -x_27 = l_Lean_Exception_isRuntime(x_25); -if (x_27 == 0) -{ -uint8_t x_28; lean_object* x_29; -lean_dec(x_25); -x_28 = 0; -x_29 = l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__2(x_3, x_12, x_2, x_1, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_26); -return x_29; -} -else -{ -lean_object* x_30; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -34039,10 +34339,64 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_25); -lean_ctor_set(x_30, 1, x_26); -return x_30; +return x_14; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_14, 0); +x_27 = lean_ctor_get(x_14, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_14); +x_28 = l_Lean_Exception_isInterrupt(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Exception_isRuntime(x_26); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; +lean_dec(x_26); +x_30 = 0; +x_31 = l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__2(x_3, x_12, x_2, x_1, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +return x_31; +} +else +{ +lean_object* x_32; +lean_dec(x_12); +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_1); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_27); +return x_32; +} +} +else +{ +lean_object* x_33; +lean_dec(x_12); +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_1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_26); +lean_ctor_set(x_33, 1, x_27); +return x_33; } } } @@ -45207,13 +45561,13 @@ x_14 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda x_15 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_14); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); x_16 = l_Lean_PrettyPrinter_Delaborator_delab(x_3, x_4, x_5, x_6, x_8, x_9, x_10); return x_16; } else { -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_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; lean_object* x_30; lean_object* x_31; x_17 = lean_ctor_get(x_8, 0); x_18 = lean_ctor_get(x_8, 1); x_19 = lean_ctor_get(x_8, 3); @@ -45223,6 +45577,9 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); +x_26 = lean_ctor_get(x_8, 11); +x_27 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -45233,23 +45590,25 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_8); -x_26 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda__1___closed__1; -x_27 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_26); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_18); -lean_ctor_set(x_28, 2, x_1); -lean_ctor_set(x_28, 3, x_19); -lean_ctor_set(x_28, 4, x_27); -lean_ctor_set(x_28, 5, x_20); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_2); -x_29 = l_Lean_PrettyPrinter_Delaborator_delab(x_3, x_4, x_5, x_6, x_28, x_9, x_10); -return x_29; +x_28 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda__1___closed__1; +x_29 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_28); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_18); +lean_ctor_set(x_30, 2, x_1); +lean_ctor_set(x_30, 3, x_19); +lean_ctor_set(x_30, 4, x_29); +lean_ctor_set(x_30, 5, x_20); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_27); +x_31 = l_Lean_PrettyPrinter_Delaborator_delab(x_3, x_4, x_5, x_6, x_30, x_9, x_10); +return x_31; } } } @@ -49729,13 +50088,13 @@ x_14 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda x_15 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_14); lean_ctor_set(x_8, 4, x_15); lean_ctor_set(x_8, 2, x_1); -lean_ctor_set_uint8(x_8, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*12, x_2); x_16 = l_Lean_PrettyPrinter_Delaborator_delabConst(x_3, x_4, x_5, x_6, x_8, x_9, x_10); return x_16; } else { -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_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; lean_object* x_30; lean_object* x_31; x_17 = lean_ctor_get(x_8, 0); x_18 = lean_ctor_get(x_8, 1); x_19 = lean_ctor_get(x_8, 3); @@ -49745,6 +50104,9 @@ x_22 = lean_ctor_get(x_8, 7); x_23 = lean_ctor_get(x_8, 8); x_24 = lean_ctor_get(x_8, 9); x_25 = lean_ctor_get(x_8, 10); +x_26 = lean_ctor_get(x_8, 11); +x_27 = lean_ctor_get_uint8(x_8, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -49755,23 +50117,25 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_8); -x_26 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda__1___closed__1; -x_27 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_26); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_18); -lean_ctor_set(x_28, 2, x_1); -lean_ctor_set(x_28, 3, x_19); -lean_ctor_set(x_28, 4, x_27); -lean_ctor_set(x_28, 5, x_20); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_2); -x_29 = l_Lean_PrettyPrinter_Delaborator_delabConst(x_3, x_4, x_5, x_6, x_28, x_9, x_10); -return x_29; +x_28 = l_Lean_PrettyPrinter_Delaborator_delabConstWithSignature_delabTy___lambda__1___closed__1; +x_29 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_28); +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_18); +lean_ctor_set(x_30, 2, x_1); +lean_ctor_set(x_30, 3, x_19); +lean_ctor_set(x_30, 4, x_29); +lean_ctor_set(x_30, 5, x_20); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_27); +x_31 = l_Lean_PrettyPrinter_Delaborator_delabConst(x_3, x_4, x_5, x_6, x_30, x_9, x_10); +return x_31; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/FieldNotation.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/FieldNotation.c index 6acbeda532..fb68ea1784 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/FieldNotation.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/FieldNotation.c @@ -23,6 +23,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_PrettyPrinte LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_generalizedFieldInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_generalizedFieldInfo___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_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_parentProj_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1883,133 +1884,150 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_21; +lean_object* x_14; lean_object* x_15; lean_object* x_23; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_21 = l_Lean_Meta_isProof(x_2, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_21) == 0) +x_23 = l_Lean_Meta_isProof(x_2, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_unbox(x_22); -lean_dec(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_21); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_25 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_generalizedFieldInfo(x_3, x_4, x_6, x_7, x_8, x_9, x_24); -if (lean_obj_tag(x_25) == 0) +x_27 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_generalizedFieldInfo(x_3, x_4, x_6, x_7, x_8, x_9, x_26); +if (lean_obj_tag(x_27) == 0) { -uint8_t x_26; +uint8_t x_28; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_25, 0, x_28); -return x_25; +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_27, 0, x_30); +return x_27; } 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(1, 1, 0); -lean_ctor_set(x_31, 0, 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); -return x_32; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_25, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_25, 1); -lean_inc(x_34); -lean_dec(x_25); -x_14 = x_33; -x_15 = x_34; -goto block_20; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_4); -lean_dec(x_3); -x_35 = lean_ctor_get(x_21, 1); +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_27, 0); lean_inc(x_35); -lean_dec(x_21); -x_36 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo___closed__2; -x_37 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_36, x_6, x_7, x_8, x_9, x_35); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_14 = x_38; -x_15 = x_39; -goto block_20; +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_dec(x_27); +x_14 = x_35; +x_15 = x_36; +goto block_22; } } else { -lean_object* x_40; lean_object* x_41; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_4); lean_dec(x_3); -x_40 = lean_ctor_get(x_21, 0); +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +lean_dec(x_23); +x_38 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo___closed__2; +x_39 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_38, x_6, x_7, x_8, x_9, x_37); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -x_41 = lean_ctor_get(x_21, 1); +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -lean_dec(x_21); +lean_dec(x_39); x_14 = x_40; x_15 = x_41; -goto block_20; +goto block_22; } -block_20: -{ -uint8_t x_16; -x_16 = l_Lean_Exception_isRuntime(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_14); -x_17 = lean_box(0); -x_18 = lean_apply_6(x_11, x_17, x_6, x_7, x_8, x_9, x_15); -return x_18; } else { -lean_object* x_19; +lean_object* x_42; lean_object* x_43; +lean_dec(x_4); +lean_dec(x_3); +x_42 = lean_ctor_get(x_23, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_23, 1); +lean_inc(x_43); +lean_dec(x_23); +x_14 = x_42; +x_15 = x_43; +goto block_22; +} +block_22: +{ +uint8_t x_16; +x_16 = l_Lean_Exception_isInterrupt(x_14); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = l_Lean_Exception_isRuntime(x_14); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_14); +x_18 = lean_box(0); +x_19 = lean_apply_6(x_11, x_18, x_6, x_7, x_8, x_9, x_15); +return x_19; +} +else +{ +lean_object* x_20; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_15); -return x_19; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_15); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_15); +return x_21; } } } @@ -2126,14 +2144,18 @@ if (x_43 == 0) lean_object* x_44; lean_object* x_45; uint8_t x_46; x_44 = lean_ctor_get(x_23, 0); x_45 = lean_ctor_get(x_23, 1); -x_46 = l_Lean_Exception_isRuntime(x_44); +x_46 = l_Lean_Exception_isInterrupt(x_44); if (x_46 == 0) { -lean_object* x_47; +uint8_t x_47; +x_47 = l_Lean_Exception_isRuntime(x_44); +if (x_47 == 0) +{ +lean_object* x_48; lean_free_object(x_23); lean_dec(x_44); -x_47 = l_Lean_PrettyPrinter_Delaborator_fieldNotationCandidate_x3f___lambda__3___closed__1; -x_11 = x_47; +x_48 = l_Lean_PrettyPrinter_Delaborator_fieldNotationCandidate_x3f___lambda__3___closed__1; +x_11 = x_48; x_12 = x_45; goto block_22; } @@ -2151,25 +2173,6 @@ return x_23; } else { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_23, 0); -x_49 = lean_ctor_get(x_23, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_23); -x_50 = l_Lean_Exception_isRuntime(x_48); -if (x_50 == 0) -{ -lean_object* x_51; -lean_dec(x_48); -x_51 = l_Lean_PrettyPrinter_Delaborator_fieldNotationCandidate_x3f___lambda__3___closed__1; -x_11 = x_51; -x_12 = x_49; -goto block_22; -} -else -{ -lean_object* x_52; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2177,10 +2180,61 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_48); -lean_ctor_set(x_52, 1, x_49); -return x_52; +return x_23; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_23, 0); +x_50 = lean_ctor_get(x_23, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_23); +x_51 = l_Lean_Exception_isInterrupt(x_49); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = l_Lean_Exception_isRuntime(x_49); +if (x_52 == 0) +{ +lean_object* x_53; +lean_dec(x_49); +x_53 = l_Lean_PrettyPrinter_Delaborator_fieldNotationCandidate_x3f___lambda__3___closed__1; +x_11 = x_53; +x_12 = x_50; +goto block_22; +} +else +{ +lean_object* x_54; +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); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_49); +lean_ctor_set(x_54, 1, x_50); +return x_54; +} +} +else +{ +lean_object* x_55; +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); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_49); +lean_ctor_set(x_55, 1, x_50); +return x_55; } } } @@ -2515,156 +2569,156 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__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: { -lean_object* x_9; lean_object* x_10; lean_object* x_16; lean_object* x_17; lean_object* x_22; -x_22 = l_Lean_Expr_getAppFn(x_1); -if (lean_obj_tag(x_22) == 4) +lean_object* x_9; lean_object* x_10; lean_object* x_16; lean_object* x_17; lean_object* x_24; +x_24 = l_Lean_Expr_getAppFn(x_1); +if (lean_obj_tag(x_24) == 4) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo(x_23, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_24) == 0) -{ -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; uint8_t x_43; +lean_object* x_25; lean_object* x_26; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); lean_dec(x_24); -x_28 = lean_ctor_get(x_25, 0); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_ctor_get(x_26, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_31 = x_26; -} else { - lean_dec_ref(x_26); - x_31 = lean_box(0); -} -x_43 = lean_unbox(x_30); -lean_dec(x_30); -if (x_43 == 0) +x_26 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo(x_25, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_44; +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_45; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 1); +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_27, 0); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_ctor_get(x_28, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_33 = x_28; +} else { + lean_dec_ref(x_28); + x_33 = lean_box(0); +} +x_45 = lean_unbox(x_32); +lean_dec(x_32); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_33); lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -x_44 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; -x_9 = x_44; -x_10 = x_27; +lean_dec(x_30); +x_46 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; +x_9 = x_46; +x_10 = x_29; goto block_15; } else { if (x_2 == 0) { -lean_object* x_45; -x_45 = lean_box(0); -x_32 = x_45; -goto block_42; +lean_object* x_47; +x_47 = lean_box(0); +x_34 = x_47; +goto block_44; } else { -lean_object* x_46; uint8_t x_47; -x_46 = lean_unsigned_to_nat(0u); -x_47 = lean_nat_dec_eq(x_29, x_46); -if (x_47 == 0) +lean_object* x_48; uint8_t x_49; +x_48 = lean_unsigned_to_nat(0u); +x_49 = lean_nat_dec_eq(x_31, x_48); +if (x_49 == 0) { -lean_object* x_48; +lean_object* x_50; +lean_dec(x_33); lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_28); -x_48 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; -x_9 = x_48; -x_10 = x_27; +lean_dec(x_30); +x_50 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; +x_9 = x_50; +x_10 = x_29; goto block_15; } else { -lean_object* x_49; -x_49 = lean_box(0); -x_32 = x_49; -goto block_42; +lean_object* x_51; +x_51 = lean_box(0); +x_34 = x_51; +goto block_44; } } } -block_42: +block_44: { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -lean_dec(x_32); -x_33 = lean_unsigned_to_nat(0u); -x_34 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_33); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_29, x_35); -lean_dec(x_29); -x_37 = lean_nat_dec_eq(x_34, x_36); -lean_dec(x_36); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_dec(x_34); -if (x_37 == 0) -{ -lean_object* x_38; +x_35 = lean_unsigned_to_nat(0u); +x_36 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_35); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_31, x_37); lean_dec(x_31); -lean_dec(x_28); -x_38 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; -x_9 = x_38; -x_10 = x_27; +x_39 = lean_nat_dec_eq(x_36, x_38); +lean_dec(x_38); +lean_dec(x_36); +if (x_39 == 0) +{ +lean_object* x_40; +lean_dec(x_33); +lean_dec(x_30); +x_40 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; +x_9 = x_40; +x_10 = x_29; goto block_15; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_28); -x_40 = lean_box(0); -if (lean_is_scalar(x_31)) { - x_41 = lean_alloc_ctor(1, 2, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_30); +x_42 = lean_box(0); +if (lean_is_scalar(x_33)) { + x_43 = lean_alloc_ctor(1, 2, 0); } else { - x_41 = x_31; - lean_ctor_set_tag(x_41, 1); + x_43 = x_33; + lean_ctor_set_tag(x_43, 1); } -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_9 = x_41; -x_10 = x_27; +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_9 = x_43; +x_10 = x_29; goto block_15; } } } else { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_24, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_24, 1); -lean_inc(x_51); -lean_dec(x_24); -x_16 = x_50; -x_17 = x_51; -goto block_21; +lean_object* x_52; lean_object* x_53; +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_16 = x_52; +x_17 = x_53; +goto block_23; } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_22); -x_52 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo___closed__2; -x_53 = l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_parentProj_x3f___spec__1(x_52, x_4, x_5, x_6, x_7, x_8); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_16 = x_54; -x_17 = x_55; -goto block_21; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_24); +x_54 = l___private_Lean_PrettyPrinter_Delaborator_FieldNotation_0__Lean_PrettyPrinter_Delaborator_projInfo___closed__2; +x_55 = l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_parentProj_x3f___spec__1(x_54, x_4, x_5, x_6, x_7, x_8); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_16 = x_56; +x_17 = x_57; +goto block_23; } block_15: { @@ -2691,26 +2745,39 @@ lean_ctor_set(x_14, 1, x_10); return x_14; } } -block_21: +block_23: { uint8_t x_18; -x_18 = l_Lean_Exception_isRuntime(x_16); +x_18 = l_Lean_Exception_isInterrupt(x_16); if (x_18 == 0) { -lean_object* x_19; +uint8_t x_19; +x_19 = l_Lean_Exception_isRuntime(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_dec(x_16); -x_19 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; -x_9 = x_19; +x_20 = l_Lean_PrettyPrinter_Delaborator_parentProj_x3f___lambda__1___closed__1; +x_9 = x_20; x_10 = x_17; goto block_15; } else { -lean_object* x_20; -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_16); -lean_ctor_set(x_20, 1, x_17); -return x_20; +lean_object* x_21; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +else +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_17); +return x_22; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c index a171ddf3f2..47a8d94f85 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/TopDownAnalyze.c @@ -89,6 +89,7 @@ static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_replaceLPsWi static lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_TopDownAnalyze___hyg_8____closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_pp_analyze_explicitHoles; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_canBottomUp___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*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_descend___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_applyFunBinderHeuristic_core___spec__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*); @@ -5284,7 +5285,7 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; +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_39; x_19 = lean_ctor_get(x_14, 5); lean_dec(x_19); x_20 = l_Lean_Meta_checkpointDefEq___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq___spec__1___closed__6; @@ -5310,166 +5311,151 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_37 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_37) == 0) +x_39 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_dec(x_26); lean_dec(x_24); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_40); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_42); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -lean_object* x_43; uint8_t x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); lean_dec(x_43); -x_44 = 0; -x_45 = lean_box(x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec(x_41); -x_47 = 0; -x_48 = lean_box(x_47); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } else { -lean_object* x_50; uint8_t x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_dec(x_37); -x_51 = 0; +lean_object* x_52; uint8_t x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_dec(x_39); +x_53 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Meta_processPostponed(x_3, x_51, x_4, x_5, x_6, x_7, x_50); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_Meta_processPostponed(x_3, x_53, x_4, x_5, x_6, x_7, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; uint8_t x_54; +lean_object* x_55; uint8_t x_56; lean_dec(x_26); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_24); -x_55 = lean_ctor_get(x_52, 1); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_52); -x_56 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_55); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(x_51); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_56, 1); -lean_inc(x_60); -lean_dec(x_56); -x_61 = lean_box(x_51); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -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; -lean_dec(x_10); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_63); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_PersistentArray_append___rarg(x_24, x_65); -x_68 = l_Lean_Meta_setPostponed(x_67, x_4, x_5, x_6, x_7, x_66); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -x_71 = 1; -x_72 = lean_box(x_71); -lean_ctor_set(x_68, 0, x_72); -return x_68; -} -else -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = 1; -x_75 = lean_box(x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -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_57; lean_object* x_58; uint8_t x_59; lean_dec(x_24); -x_77 = lean_ctor_get(x_52, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_52, 1); -lean_inc(x_78); -lean_dec(x_52); -x_27 = x_77; -x_28 = x_78; -goto block_36; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_57); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(x_53); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(x_53); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_10); +x_65 = lean_ctor_get(x_54, 1); +lean_inc(x_65); +lean_dec(x_54); +x_66 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_PersistentArray_append___rarg(x_24, x_67); +x_70 = l_Lean_Meta_setPostponed(x_69, x_4, x_5, x_6, x_7, x_68); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +x_73 = 1; +x_74 = lean_box(x_73); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = 1; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } } @@ -5477,362 +5463,423 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_24); -x_79 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_54, 0); lean_inc(x_79); -x_80 = lean_ctor_get(x_37, 1); +x_80 = lean_ctor_get(x_54, 1); lean_inc(x_80); -lean_dec(x_37); +lean_dec(x_54); x_27 = x_79; x_28 = x_80; -goto block_36; +goto block_38; } -block_36: +} +} +else +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_24); +x_81 = lean_ctor_get(x_39, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_39, 1); +lean_inc(x_82); +lean_dec(x_39); +x_27 = x_81; +x_28 = x_82; +goto block_38; +} +block_38: { uint8_t x_29; -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { -lean_object* x_30; uint8_t x_31; +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_26); -x_30 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); +x_31 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 0, x_27); -return x_30; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_27); +return x_31; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } else { -lean_object* x_35; +lean_object* x_36; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_26)) { - x_35 = lean_alloc_ctor(1, 2, 0); + x_36 = lean_alloc_ctor(1, 2, 0); } else { - x_35 = x_26; - lean_ctor_set_tag(x_35, 1); + x_36 = x_26; + lean_ctor_set_tag(x_36, 1); } -lean_ctor_set(x_35, 0, x_27); -lean_ctor_set(x_35, 1, x_28); -return x_35; +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_28); +return x_36; +} +} +else +{ +lean_object* x_37; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_26)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_26; + lean_ctor_set_tag(x_37, 1); +} +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +return x_37; } } } else { -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; lean_object* x_96; lean_object* x_104; -x_81 = lean_ctor_get(x_14, 0); -x_82 = lean_ctor_get(x_14, 1); -x_83 = lean_ctor_get(x_14, 2); -x_84 = lean_ctor_get(x_14, 3); -x_85 = lean_ctor_get(x_14, 4); -x_86 = lean_ctor_get(x_14, 6); +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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_108; +x_83 = lean_ctor_get(x_14, 0); +x_84 = lean_ctor_get(x_14, 1); +x_85 = lean_ctor_get(x_14, 2); +x_86 = lean_ctor_get(x_14, 3); +x_87 = lean_ctor_get(x_14, 4); +x_88 = lean_ctor_get(x_14, 6); +lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); lean_dec(x_14); -x_87 = l_Lean_Meta_checkpointDefEq___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq___spec__1___closed__6; -x_88 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_82); -lean_ctor_set(x_88, 2, x_83); -lean_ctor_set(x_88, 3, x_84); -lean_ctor_set(x_88, 4, x_85); -lean_ctor_set(x_88, 5, x_87); -lean_ctor_set(x_88, 6, x_86); -lean_ctor_set(x_13, 1, x_88); -x_89 = lean_st_ref_set(x_5, x_13, x_15); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_90); -x_92 = lean_ctor_get(x_91, 0); +x_89 = l_Lean_Meta_checkpointDefEq___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq___spec__1___closed__6; +x_90 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_90, 0, x_83); +lean_ctor_set(x_90, 1, x_84); +lean_ctor_set(x_90, 2, x_85); +lean_ctor_set(x_90, 3, x_86); +lean_ctor_set(x_90, 4, x_87); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_88); +lean_ctor_set(x_13, 1, x_90); +x_91 = lean_st_ref_set(x_5, x_13, x_15); +x_92 = lean_ctor_get(x_91, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_94 = x_91; +lean_dec(x_91); +x_93 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_92); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_96 = x_93; } else { - lean_dec_ref(x_91); - x_94 = lean_box(0); + lean_dec_ref(x_93); + x_96 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_104 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_93); -if (lean_obj_tag(x_104) == 0) +x_108 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; uint8_t x_106; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_unbox(x_105); -lean_dec(x_105); -if (x_106 == 0) -{ -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_dec(x_94); -lean_dec(x_92); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_dec(x_104); -x_108 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_107); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_109 = lean_ctor_get(x_108, 1); +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_110 = x_108; +x_110 = lean_unbox(x_109); +lean_dec(x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_96); +lean_dec(x_94); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_111); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_108); - x_110 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_111 = 0; -x_112 = lean_box(x_111); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(0, 2, 0); +x_115 = 0; +x_116 = lean_box(x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); } else { - x_113 = x_110; + x_117 = x_114; } -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_109); -return x_113; +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +return x_117; } else { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_104, 1); -lean_inc(x_114); -lean_dec(x_104); -x_115 = 0; +lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +lean_dec(x_108); +x_119 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_Meta_processPostponed(x_3, x_115, x_4, x_5, x_6, x_7, x_114); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Meta_processPostponed(x_3, x_119, x_4, x_5, x_6, x_7, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; uint8_t x_118; -lean_dec(x_94); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -lean_dec(x_117); -if (x_118 == 0) -{ -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_92); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_dec(x_116); -x_120 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_119); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_121 = lean_ctor_get(x_120, 1); +lean_object* x_121; uint8_t x_122; +lean_dec(x_96); +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = lean_box(x_115); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -return x_124; -} -else +x_122 = lean_unbox(x_121); +lean_dec(x_121); +if (x_122 == 0) { -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; uint8_t x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_10); -x_125 = lean_ctor_get(x_116, 1); -lean_inc(x_125); -lean_dec(x_116); -x_126 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_PersistentArray_append___rarg(x_92, x_127); -x_130 = l_Lean_Meta_setPostponed(x_129, x_4, x_5, x_6, x_7, x_128); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = 1; -x_134 = lean_box(x_133); -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_134); -lean_ctor_set(x_135, 1, x_131); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_92); -x_136 = lean_ctor_get(x_116, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_116, 1); -lean_inc(x_137); -lean_dec(x_116); -x_95 = x_136; -x_96 = x_137; -goto block_103; -} -} -} -else -{ -lean_object* x_138; lean_object* x_139; -lean_dec(x_92); -x_138 = lean_ctor_get(x_104, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_104, 1); -lean_inc(x_139); -lean_dec(x_104); -x_95 = x_138; -x_96 = x_139; -goto block_103; -} -block_103: -{ -uint8_t x_97; -x_97 = l_Lean_Exception_isRuntime(x_95); -if (x_97 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +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_94); -x_98 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_96); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_123); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -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; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_98); - x_100 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +x_127 = lean_box(x_119); +if (lean_is_scalar(x_126)) { + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_101 = x_100; - lean_ctor_set_tag(x_101, 1); + x_128 = x_126; } -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_125); +return x_128; } else { -lean_object* x_102; +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; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_dec(x_10); +x_129 = lean_ctor_get(x_120, 1); +lean_inc(x_129); +lean_dec(x_120); +x_130 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_129); +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 = l_Lean_PersistentArray_append___rarg(x_94, x_131); +x_134 = l_Lean_Meta_setPostponed(x_133, x_4, x_5, x_6, x_7, x_132); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_94)) { - x_102 = lean_alloc_ctor(1, 2, 0); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; } else { - x_102 = x_94; - lean_ctor_set_tag(x_102, 1); -} -lean_ctor_set(x_102, 0, x_95); -lean_ctor_set(x_102, 1, x_96); -return x_102; + lean_dec_ref(x_134); + x_136 = lean_box(0); } +x_137 = 1; +x_138 = lean_box(x_137); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_136; } +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_135); +return x_139; } } else { -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_169; -x_140 = lean_ctor_get(x_13, 0); -x_141 = lean_ctor_get(x_13, 2); -x_142 = lean_ctor_get(x_13, 3); -x_143 = lean_ctor_get(x_13, 4); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_140; lean_object* x_141; +lean_dec(x_94); +x_140 = lean_ctor_get(x_120, 0); lean_inc(x_140); -lean_dec(x_13); -x_144 = lean_ctor_get(x_14, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_14, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_14, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 3); +x_141 = lean_ctor_get(x_120, 1); +lean_inc(x_141); +lean_dec(x_120); +x_97 = x_140; +x_98 = x_141; +goto block_107; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; +lean_dec(x_94); +x_142 = lean_ctor_get(x_108, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_108, 1); +lean_inc(x_143); +lean_dec(x_108); +x_97 = x_142; +x_98 = x_143; +goto block_107; +} +block_107: +{ +uint8_t x_99; +x_99 = l_Lean_Exception_isInterrupt(x_97); +if (x_99 == 0) +{ +uint8_t x_100; +x_100 = l_Lean_Exception_isRuntime(x_97); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_96); +x_101 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_98); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + 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_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_97); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_96; + lean_ctor_set_tag(x_105, 1); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_98); +return x_105; +} +} +else +{ +lean_object* x_106; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_96)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_96; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_98); +return x_106; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_175; +x_144 = lean_ctor_get(x_13, 0); +x_145 = lean_ctor_get(x_13, 2); +x_146 = lean_ctor_get(x_13, 3); +x_147 = lean_ctor_get(x_13, 4); lean_inc(x_147); -x_148 = lean_ctor_get(x_14, 4); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_13); +x_148 = lean_ctor_get(x_14, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_14, 6); +x_149 = lean_ctor_get(x_14, 1); lean_inc(x_149); +x_150 = lean_ctor_get(x_14, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_14, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_14, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_14, 6); +lean_inc(x_153); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); @@ -5841,267 +5888,290 @@ if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 4); lean_ctor_release(x_14, 5); lean_ctor_release(x_14, 6); - x_150 = x_14; + x_154 = x_14; } else { lean_dec_ref(x_14); - x_150 = lean_box(0); + x_154 = lean_box(0); } -x_151 = l_Lean_Meta_checkpointDefEq___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq___spec__1___closed__6; -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 7, 0); +x_155 = l_Lean_Meta_checkpointDefEq___at_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_checkpointDefEq___spec__1___closed__6; +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 7, 0); } else { - x_152 = x_150; + x_156 = x_154; } -lean_ctor_set(x_152, 0, x_144); -lean_ctor_set(x_152, 1, x_145); -lean_ctor_set(x_152, 2, x_146); -lean_ctor_set(x_152, 3, x_147); -lean_ctor_set(x_152, 4, x_148); -lean_ctor_set(x_152, 5, x_151); -lean_ctor_set(x_152, 6, x_149); -x_153 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_153, 0, x_140); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_141); -lean_ctor_set(x_153, 3, x_142); -lean_ctor_set(x_153, 4, x_143); -x_154 = lean_st_ref_set(x_5, x_153, x_15); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_156 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_155); -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; +lean_ctor_set(x_156, 0, x_148); +lean_ctor_set(x_156, 1, x_149); +lean_ctor_set(x_156, 2, x_150); +lean_ctor_set(x_156, 3, x_151); +lean_ctor_set(x_156, 4, x_152); +lean_ctor_set(x_156, 5, x_155); +lean_ctor_set(x_156, 6, x_153); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_145); +lean_ctor_set(x_157, 3, x_146); +lean_ctor_set(x_157, 4, x_147); +x_158 = lean_st_ref_set(x_5, x_157, x_15); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_160 = l_Lean_Meta_getResetPostponed(x_4, x_5, x_6, x_7, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +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_156); - x_159 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_169 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_158); -if (lean_obj_tag(x_169) == 0) +x_175 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_4, x_5, x_6, x_7, x_162); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -lean_dec(x_170); -if (x_171 == 0) +lean_object* x_176; uint8_t x_177; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_unbox(x_176); +lean_dec(x_176); +if (x_177 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_159); -lean_dec(x_157); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -lean_dec(x_169); -x_173 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_172); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_163); +lean_dec(x_161); +x_178 = lean_ctor_get(x_175, 1); +lean_inc(x_178); +lean_dec(x_175); +x_179 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_178); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; } else { - lean_dec_ref(x_173); - x_175 = lean_box(0); + lean_dec_ref(x_179); + x_181 = lean_box(0); } -x_176 = 0; -x_177 = lean_box(x_176); -if (lean_is_scalar(x_175)) { - x_178 = lean_alloc_ctor(0, 2, 0); +x_182 = 0; +x_183 = lean_box(x_182); +if (lean_is_scalar(x_181)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_175; + x_184 = x_181; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_174); -return x_178; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_180); +return x_184; } else { -lean_object* x_179; uint8_t x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_169, 1); -lean_inc(x_179); -lean_dec(x_169); -x_180 = 0; +lean_object* x_185; uint8_t x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_dec(x_175); +x_186 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_181 = l_Lean_Meta_processPostponed(x_3, x_180, x_4, x_5, x_6, x_7, x_179); -if (lean_obj_tag(x_181) == 0) +x_187 = l_Lean_Meta_processPostponed(x_3, x_186, x_4, x_5, x_6, x_7, x_185); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_182; uint8_t x_183; -lean_dec(x_159); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_188; uint8_t x_189; +lean_dec(x_163); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_unbox(x_188); +lean_dec(x_188); +if (x_189 == 0) { -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_dec(x_157); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_dec(x_181); -x_185 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_184); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_10); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_187 = x_185; -} else { - lean_dec_ref(x_185); - x_187 = lean_box(0); -} -x_188 = lean_box(x_180); -if (lean_is_scalar(x_187)) { - x_189 = lean_alloc_ctor(0, 2, 0); -} else { - x_189 = x_187; -} -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_190 = lean_ctor_get(x_181, 1); +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_dec(x_161); +x_190 = lean_ctor_get(x_187, 1); lean_inc(x_190); -lean_dec(x_181); -x_191 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_191 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_190); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_10); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_PersistentArray_append___rarg(x_157, x_192); -x_195 = l_Lean_Meta_setPostponed(x_194, x_4, x_5, x_6, x_7, x_193); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_196 = lean_ctor_get(x_195, 1); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_193 = x_191; +} else { + lean_dec_ref(x_191); + x_193 = lean_box(0); +} +x_194 = lean_box(x_186); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +return x_195; +} +else +{ +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; uint8_t x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_196 = lean_ctor_get(x_187, 1); lean_inc(x_196); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_197 = x_195; -} else { - lean_dec_ref(x_195); - x_197 = lean_box(0); -} -x_198 = 1; -x_199 = lean_box(x_198); -if (lean_is_scalar(x_197)) { - x_200 = lean_alloc_ctor(0, 2, 0); -} else { - x_200 = x_197; -} -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_196); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_157); -x_201 = lean_ctor_get(x_181, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_181, 1); +lean_dec(x_187); +x_197 = l_Lean_Meta_getPostponed___rarg(x_5, x_6, x_7, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_PersistentArray_append___rarg(x_161, x_198); +x_201 = l_Lean_Meta_setPostponed(x_200, x_4, x_5, x_6, x_7, x_199); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_202 = lean_ctor_get(x_201, 1); lean_inc(x_202); -lean_dec(x_181); -x_160 = x_201; -x_161 = x_202; -goto block_168; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = 1; +x_205 = lean_box(x_204); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +lean_dec(x_161); +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_187, 1); +lean_inc(x_208); +lean_dec(x_187); +x_164 = x_207; +x_165 = x_208; +goto block_174; } } } else { -lean_object* x_203; lean_object* x_204; -lean_dec(x_157); -x_203 = lean_ctor_get(x_169, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_169, 1); -lean_inc(x_204); -lean_dec(x_169); -x_160 = x_203; -x_161 = x_204; -goto block_168; +lean_object* x_209; lean_object* x_210; +lean_dec(x_161); +x_209 = lean_ctor_get(x_175, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_175, 1); +lean_inc(x_210); +lean_dec(x_175); +x_164 = x_209; +x_165 = x_210; +goto block_174; } -block_168: +block_174: { -uint8_t x_162; -x_162 = l_Lean_Exception_isRuntime(x_160); -if (x_162 == 0) +uint8_t x_166; +x_166 = l_Lean_Exception_isInterrupt(x_164); +if (x_166 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_159); -x_163 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_161); +uint8_t x_167; +x_167 = l_Lean_Exception_isRuntime(x_164); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_163); +x_168 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_165); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_10); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_168); + x_170 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_171 = x_170; + lean_ctor_set_tag(x_171, 1); } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_171, 0, x_164); +lean_ctor_set(x_171, 1, x_169); +return x_171; } else { -lean_object* x_167; +lean_object* x_172; lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_is_scalar(x_159)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_163)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_159; - lean_ctor_set_tag(x_167, 1); + x_172 = x_163; + lean_ctor_set_tag(x_172, 1); } -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -return x_167; +lean_ctor_set(x_172, 0, x_164); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +} +else +{ +lean_object* x_173; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_163)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_163; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_164); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } @@ -6798,374 +6868,390 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_tryUnify(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_52; +lean_object* x_10; lean_object* x_11; lean_object* x_54; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); lean_inc(x_1); -x_52 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_52) == 0) +x_54 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_isDefEqAssigning(x_1, x_2, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_tryUnify___closed__1; -x_56 = lean_unbox(x_53); -lean_dec(x_53); -if (x_56 == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = lean_st_ref_take(x_4, x_54); -x_58 = !lean_is_exclusive(x_57); +lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +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 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_tryUnify___closed__1; +x_58 = lean_unbox(x_55); +lean_dec(x_55); if (x_58 == 0) { lean_object* x_59; uint8_t x_60; -x_59 = lean_ctor_get(x_57, 0); +x_59 = lean_st_ref_take(x_4, x_56); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) { -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; -x_61 = lean_ctor_get(x_57, 1); -x_62 = lean_ctor_get(x_59, 1); +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_59, 0); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +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_63 = lean_ctor_get(x_59, 1); +x_64 = lean_ctor_get(x_61, 1); lean_inc(x_2); lean_inc(x_1); -lean_ctor_set(x_57, 1, x_2); -lean_ctor_set(x_57, 0, x_1); -x_63 = lean_array_push(x_62, x_57); -lean_ctor_set(x_59, 1, x_63); -x_64 = lean_st_ref_set(x_4, x_59, x_61); -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_box(0); +lean_ctor_set(x_59, 1, x_2); +lean_ctor_set(x_59, 0, x_1); +x_65 = lean_array_push(x_64, x_59); +lean_ctor_set(x_61, 1, x_65); +x_66 = lean_st_ref_set(x_4, x_61, x_63); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_box(0); lean_inc(x_4); -x_67 = lean_apply_8(x_55, x_66, x_3, x_4, x_5, x_6, x_7, x_8, x_65); -if (lean_obj_tag(x_67) == 0) +x_69 = lean_apply_8(x_57, x_68, x_3, x_4, x_5, x_6, x_7, x_8, x_67); +if (lean_obj_tag(x_69) == 0) { lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_67; +return x_69; } else { -lean_object* x_68; lean_object* x_69; -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_51; -} -} -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; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_70 = lean_ctor_get(x_57, 1); -x_71 = lean_ctor_get(x_59, 0); -x_72 = lean_ctor_get(x_59, 1); -lean_inc(x_72); +lean_object* x_70; lean_object* x_71; +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_59); +lean_dec(x_69); +x_10 = x_70; +x_11 = x_71; +goto block_53; +} +} +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; +x_72 = lean_ctor_get(x_59, 1); +x_73 = lean_ctor_get(x_61, 0); +x_74 = lean_ctor_get(x_61, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_61); lean_inc(x_2); lean_inc(x_1); -lean_ctor_set(x_57, 1, x_2); -lean_ctor_set(x_57, 0, x_1); -x_73 = lean_array_push(x_72, x_57); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_71); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_st_ref_set(x_4, x_74, x_70); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = lean_box(0); +lean_ctor_set(x_59, 1, x_2); +lean_ctor_set(x_59, 0, x_1); +x_75 = lean_array_push(x_74, x_59); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_st_ref_set(x_4, x_76, x_72); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); +x_79 = lean_box(0); lean_inc(x_4); -x_78 = lean_apply_8(x_55, x_77, x_3, x_4, x_5, x_6, x_7, x_8, x_76); -if (lean_obj_tag(x_78) == 0) +x_80 = lean_apply_8(x_57, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_78); +if (lean_obj_tag(x_80) == 0) { lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_78; +return x_80; } else { -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_10 = x_79; -x_11 = x_80; -goto block_51; -} -} -} -else -{ -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; -x_81 = lean_ctor_get(x_57, 0); -x_82 = lean_ctor_get(x_57, 1); -lean_inc(x_82); +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -lean_dec(x_57); -x_83 = lean_ctor_get(x_81, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_81, 1); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_10 = x_81; +x_11 = x_82; +goto block_53; +} +} +} +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; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_83 = lean_ctor_get(x_59, 0); +x_84 = lean_ctor_get(x_59, 1); lean_inc(x_84); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_85 = x_81; +lean_inc(x_83); +lean_dec(x_59); +x_85 = lean_ctor_get(x_83, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_87 = x_83; } else { - lean_dec_ref(x_81); - x_85 = lean_box(0); + lean_dec_ref(x_83); + x_87 = lean_box(0); } lean_inc(x_2); lean_inc(x_1); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_1); -lean_ctor_set(x_86, 1, x_2); -x_87 = lean_array_push(x_84, x_86); -if (lean_is_scalar(x_85)) { - x_88 = lean_alloc_ctor(0, 2, 0); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_1); +lean_ctor_set(x_88, 1, x_2); +x_89 = lean_array_push(x_86, x_88); +if (lean_is_scalar(x_87)) { + x_90 = lean_alloc_ctor(0, 2, 0); } else { - x_88 = x_85; + x_90 = x_87; } -lean_ctor_set(x_88, 0, x_83); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_st_ref_set(x_4, x_88, x_82); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = lean_box(0); +lean_ctor_set(x_90, 0, x_85); +lean_ctor_set(x_90, 1, x_89); +x_91 = lean_st_ref_set(x_4, x_90, x_84); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_box(0); lean_inc(x_4); -x_92 = lean_apply_8(x_55, x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_90); -if (lean_obj_tag(x_92) == 0) +x_94 = lean_apply_8(x_57, x_93, x_3, x_4, x_5, x_6, x_7, x_8, x_92); +if (lean_obj_tag(x_94) == 0) { lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_10 = x_93; -x_11 = x_94; -goto block_51; -} -} +return x_94; } else { lean_object* x_95; lean_object* x_96; -x_95 = lean_box(0); -lean_inc(x_4); -x_96 = lean_apply_8(x_55, x_95, x_3, x_4, x_5, x_6, x_7, x_8, x_54); -if (lean_obj_tag(x_96) == 0) -{ -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_96; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_10 = x_95; +x_11 = x_96; +goto block_53; +} +} } else { lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_10 = x_97; -x_11 = x_98; -goto block_51; +x_97 = lean_box(0); +lean_inc(x_4); +x_98 = lean_apply_8(x_57, x_97, x_3, x_4, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_98) == 0) +{ +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_10 = x_99; +x_11 = x_100; +goto block_53; } } } else { -lean_object* x_99; lean_object* x_100; +lean_object* x_101; lean_object* x_102; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_99 = lean_ctor_get(x_52, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_52, 1); -lean_inc(x_100); -lean_dec(x_52); -x_10 = x_99; -x_11 = x_100; -goto block_51; +x_101 = lean_ctor_get(x_54, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_54, 1); +lean_inc(x_102); +lean_dec(x_54); +x_10 = x_101; +x_11 = x_102; +goto block_53; } -block_51: +block_53: { uint8_t x_12; -x_12 = l_Lean_Exception_isRuntime(x_10); +x_12 = l_Lean_Exception_isInterrupt(x_10); if (x_12 == 0) { -lean_object* x_13; uint8_t x_14; +uint8_t x_13; +x_13 = l_Lean_Exception_isRuntime(x_10); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; lean_dec(x_10); -x_13 = lean_st_ref_take(x_4, x_11); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +x_14 = lean_st_ref_take(x_4, x_11); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_ctor_get(x_13, 1); -x_18 = lean_ctor_get(x_15, 1); -lean_ctor_set(x_13, 1, x_2); -lean_ctor_set(x_13, 0, x_1); -x_19 = lean_array_push(x_18, x_13); -lean_ctor_set(x_15, 1, x_19); -x_20 = lean_st_ref_set(x_4, x_15, x_17); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_14, 1); +x_19 = lean_ctor_get(x_16, 1); +lean_ctor_set(x_14, 1, x_2); +lean_ctor_set(x_14, 0, x_1); +x_20 = lean_array_push(x_19, x_14); +lean_ctor_set(x_16, 1, x_20); +x_21 = lean_st_ref_set(x_4, x_16, x_18); lean_dec(x_4); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -lean_dec(x_22); -x_23 = lean_box(0); -lean_ctor_set(x_20, 0, x_23); -return x_20; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_21, 0, x_24); +return x_21; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_20, 1); -lean_inc(x_24); -lean_dec(x_20); -x_25 = lean_box(0); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_box(0); +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 { -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_13, 1); -x_28 = lean_ctor_get(x_15, 0); -x_29 = lean_ctor_get(x_15, 1); +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_14, 1); +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_15); -lean_ctor_set(x_13, 1, x_2); -lean_ctor_set(x_13, 0, x_1); -x_30 = lean_array_push(x_29, x_13); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_st_ref_set(x_4, x_31, x_27); +lean_dec(x_16); +lean_ctor_set(x_14, 1, x_2); +lean_ctor_set(x_14, 0, x_1); +x_31 = lean_array_push(x_30, x_14); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_st_ref_set(x_4, x_32, x_28); lean_dec(x_4); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_35 = x_33; } else { - lean_dec_ref(x_32); - x_34 = lean_box(0); + lean_dec_ref(x_33); + x_35 = lean_box(0); } -x_35 = lean_box(0); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); +x_36 = lean_box(0); +if (lean_is_scalar(x_35)) { + x_37 = lean_alloc_ctor(0, 2, 0); } else { - x_36 = x_34; + x_37 = x_35; } -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -return x_36; +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; } } 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; 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_37 = lean_ctor_get(x_13, 0); -x_38 = lean_ctor_get(x_13, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_13); -x_39 = lean_ctor_get(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; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_38 = lean_ctor_get(x_14, 0); +x_39 = lean_ctor_get(x_14, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_14); +x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_41 = x_37; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_42 = x_38; } else { - lean_dec_ref(x_37); - x_41 = lean_box(0); + lean_dec_ref(x_38); + x_42 = lean_box(0); } -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_1); -lean_ctor_set(x_42, 1, x_2); -x_43 = lean_array_push(x_40, x_42); -if (lean_is_scalar(x_41)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_1); +lean_ctor_set(x_43, 1, x_2); +x_44 = lean_array_push(x_41, x_43); +if (lean_is_scalar(x_42)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_41; + x_45 = x_42; } -lean_ctor_set(x_44, 0, x_39); -lean_ctor_set(x_44, 1, x_43); -x_45 = lean_st_ref_set(x_4, x_44, x_38); +lean_ctor_set(x_45, 0, x_40); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_st_ref_set(x_4, x_45, x_39); lean_dec(x_4); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; } else { - lean_dec_ref(x_45); - x_47 = lean_box(0); + lean_dec_ref(x_46); + x_48 = lean_box(0); } -x_48 = lean_box(0); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 2, 0); +x_49 = lean_box(0); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_49 = x_47; + x_50 = x_48; } -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } } else { -lean_object* x_50; +lean_object* x_51; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_10); -lean_ctor_set(x_50, 1, x_11); -return x_50; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_10); +lean_ctor_set(x_51, 1, x_11); +return x_51; +} +} +else +{ +lean_object* x_52; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_10); +lean_ctor_set(x_52, 1, x_11); +return x_52; } } } @@ -23294,14 +23380,18 @@ if (x_97 == 0) lean_object* x_98; lean_object* x_99; uint8_t x_100; x_98 = lean_ctor_get(x_93, 0); x_99 = lean_ctor_get(x_93, 1); -x_100 = l_Lean_Exception_isRuntime(x_98); +x_100 = l_Lean_Exception_isInterrupt(x_98); if (x_100 == 0) { uint8_t x_101; +x_101 = l_Lean_Exception_isRuntime(x_98); +if (x_101 == 0) +{ +uint8_t x_102; lean_free_object(x_93); lean_dec(x_98); -x_101 = 0; -x_16 = x_101; +x_102 = 0; +x_16 = x_102; x_17 = x_99; goto block_91; } @@ -23320,25 +23410,6 @@ return x_93; } else { -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_ctor_get(x_93, 0); -x_103 = lean_ctor_get(x_93, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_93); -x_104 = l_Lean_Exception_isRuntime(x_102); -if (x_104 == 0) -{ -uint8_t x_105; -lean_dec(x_102); -x_105 = 0; -x_16 = x_105; -x_17 = x_103; -goto block_91; -} -else -{ -lean_object* x_106; lean_dec(x_14); lean_dec(x_13); lean_dec(x_8); @@ -23347,30 +23418,83 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_102); -lean_ctor_set(x_106, 1, x_103); -return x_106; +return x_93; +} +} +else +{ +lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_103 = lean_ctor_get(x_93, 0); +x_104 = lean_ctor_get(x_93, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_93); +x_105 = l_Lean_Exception_isInterrupt(x_103); +if (x_105 == 0) +{ +uint8_t x_106; +x_106 = l_Lean_Exception_isRuntime(x_103); +if (x_106 == 0) +{ +uint8_t x_107; +lean_dec(x_103); +x_107 = 0; +x_16 = x_107; +x_17 = x_104; +goto block_91; +} +else +{ +lean_object* x_108; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_103); +lean_ctor_set(x_108, 1, x_104); +return x_108; +} +} +else +{ +lean_object* x_109; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_103); +lean_ctor_set(x_109, 1, x_104); +return x_109; } } } } else { -uint8_t x_107; +uint8_t x_110; lean_dec(x_11); -x_107 = 0; -x_16 = x_107; +x_110 = 0; +x_16 = x_110; x_17 = x_12; goto block_91; } } else { -uint8_t x_108; +uint8_t x_111; lean_dec(x_11); -x_108 = 0; -x_16 = x_108; +x_111 = 0; +x_16 = x_111; x_17 = x_12; goto block_91; } @@ -30453,42 +30577,42 @@ if (lean_is_exclusive(x_13)) { } if (x_22 == 0) { -lean_object* x_386; uint8_t x_387; -x_386 = lean_array_get_size(x_10); -x_387 = lean_nat_dec_lt(x_4, x_386); -lean_dec(x_386); -if (x_387 == 0) +lean_object* x_389; uint8_t x_390; +x_389 = lean_array_get_size(x_10); +x_390 = lean_nat_dec_lt(x_4, x_389); +lean_dec(x_389); +if (x_390 == 0) { -uint8_t x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; +uint8_t x_391; lean_object* x_392; lean_object* x_393; uint8_t x_394; lean_dec(x_10); -x_388 = l_instInhabitedBool; -x_389 = lean_box(x_388); -x_390 = l___private_Init_GetElem_0__outOfBounds___rarg(x_389); -x_391 = lean_unbox(x_390); -lean_dec(x_390); -x_26 = x_391; -goto block_385; -} -else -{ -lean_object* x_392; uint8_t x_393; -x_392 = lean_array_fget(x_10, x_4); -lean_dec(x_10); -x_393 = lean_unbox(x_392); -lean_dec(x_392); -x_26 = x_393; -goto block_385; -} -} -else -{ -uint8_t x_394; -lean_dec(x_10); -x_394 = 1; +x_391 = l_instInhabitedBool; +x_392 = lean_box(x_391); +x_393 = l___private_Init_GetElem_0__outOfBounds___rarg(x_392); +x_394 = lean_unbox(x_393); +lean_dec(x_393); x_26 = x_394; -goto block_385; +goto block_388; } -block_385: +else +{ +lean_object* x_395; uint8_t x_396; +x_395 = lean_array_fget(x_10, x_4); +lean_dec(x_10); +x_396 = lean_unbox(x_395); +lean_dec(x_395); +x_26 = x_396; +goto block_388; +} +} +else +{ +uint8_t x_397; +lean_dec(x_10); +x_397 = 1; +x_26 = x_397; +goto block_388; +} +block_388: { lean_object* x_27; if (lean_is_scalar(x_25)) { @@ -31972,16 +32096,20 @@ if (x_371 == 0) lean_object* x_372; lean_object* x_373; uint8_t x_374; x_372 = lean_ctor_get(x_366, 0); x_373 = lean_ctor_get(x_366, 1); -x_374 = l_Lean_Exception_isRuntime(x_372); +x_374 = l_Lean_Exception_isInterrupt(x_372); if (x_374 == 0) { -lean_object* x_375; uint8_t x_376; lean_object* x_377; +uint8_t x_375; +x_375 = l_Lean_Exception_isRuntime(x_372); +if (x_375 == 0) +{ +lean_object* x_376; uint8_t x_377; lean_object* x_378; lean_free_object(x_366); lean_dec(x_372); -x_375 = lean_box(2); -x_376 = 1; -x_377 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__4(x_2, x_350, x_3, x_376, x_375, x_11, x_12, x_27, x_14, x_15, x_16, x_17, x_18, x_373); -return x_377; +x_376 = lean_box(2); +x_377 = 1; +x_378 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__4(x_2, x_350, x_3, x_377, x_376, x_11, x_12, x_27, x_14, x_15, x_16, x_17, x_18, x_373); +return x_378; } else { @@ -32001,25 +32129,6 @@ return x_366; } else { -lean_object* x_378; lean_object* x_379; uint8_t x_380; -x_378 = lean_ctor_get(x_366, 0); -x_379 = lean_ctor_get(x_366, 1); -lean_inc(x_379); -lean_inc(x_378); -lean_dec(x_366); -x_380 = l_Lean_Exception_isRuntime(x_378); -if (x_380 == 0) -{ -lean_object* x_381; uint8_t x_382; lean_object* x_383; -lean_dec(x_378); -x_381 = lean_box(2); -x_382 = 1; -x_383 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__4(x_2, x_350, x_3, x_382, x_381, x_11, x_12, x_27, x_14, x_15, x_16, x_17, x_18, x_379); -return x_383; -} -else -{ -lean_object* x_384; lean_dec(x_350); lean_dec(x_27); lean_dec(x_18); @@ -32031,10 +32140,69 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_378); -lean_ctor_set(x_384, 1, x_379); -return x_384; +return x_366; +} +} +else +{ +lean_object* x_379; lean_object* x_380; uint8_t x_381; +x_379 = lean_ctor_get(x_366, 0); +x_380 = lean_ctor_get(x_366, 1); +lean_inc(x_380); +lean_inc(x_379); +lean_dec(x_366); +x_381 = l_Lean_Exception_isInterrupt(x_379); +if (x_381 == 0) +{ +uint8_t x_382; +x_382 = l_Lean_Exception_isRuntime(x_379); +if (x_382 == 0) +{ +lean_object* x_383; uint8_t x_384; lean_object* x_385; +lean_dec(x_379); +x_383 = lean_box(2); +x_384 = 1; +x_385 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_analyzeAppStagedCore_analyzeArg___lambda__4(x_2, x_350, x_3, x_384, x_383, x_11, x_12, x_27, x_14, x_15, x_16, x_17, x_18, x_380); +return x_385; +} +else +{ +lean_object* x_386; +lean_dec(x_350); +lean_dec(x_27); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_386 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_386, 0, x_379); +lean_ctor_set(x_386, 1, x_380); +return x_386; +} +} +else +{ +lean_object* x_387; +lean_dec(x_350); +lean_dec(x_27); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_379); +lean_ctor_set(x_387, 1, x_380); +return x_387; } } } @@ -34045,85 +34213,89 @@ if (x_47 == 0) lean_object* x_48; lean_object* x_49; uint8_t x_50; x_48 = lean_ctor_get(x_39, 0); x_49 = lean_ctor_get(x_39, 1); -x_50 = l_Lean_Exception_isRuntime(x_48); +x_50 = l_Lean_Exception_isInterrupt(x_48); if (x_50 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_51 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; -x_52 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_51, x_4, x_5, x_6, x_7, x_49); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) +uint8_t x_51; +x_51 = l_Lean_Exception_isRuntime(x_48); +if (x_51 == 0) { -lean_object* x_55; +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; +x_53 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_52, x_4, x_5, x_6, x_7, x_49); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_free_object(x_39); lean_dec(x_48); lean_dec(x_4); lean_dec(x_7); lean_dec(x_6); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); x_12 = x_34; -x_13 = x_55; +x_13 = x_56; goto block_19; } else { -uint8_t x_56; -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) +uint8_t x_57; +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_57 = lean_ctor_get(x_52, 1); -x_58 = lean_ctor_get(x_52, 0); -lean_dec(x_58); -x_59 = l_Lean_Exception_toMessageData(x_48); -x_60 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; -lean_ctor_set_tag(x_52, 6); -lean_ctor_set(x_52, 1, x_59); -lean_ctor_set(x_52, 0, x_60); -x_61 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; +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; +x_58 = lean_ctor_get(x_53, 1); +x_59 = lean_ctor_get(x_53, 0); +lean_dec(x_59); +x_60 = l_Lean_Exception_toMessageData(x_48); +x_61 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; +lean_ctor_set_tag(x_53, 6); +lean_ctor_set(x_53, 1, x_60); +lean_ctor_set(x_53, 0, x_61); +x_62 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; lean_ctor_set_tag(x_39, 6); -lean_ctor_set(x_39, 1, x_61); -lean_ctor_set(x_39, 0, x_52); -x_62 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_51, x_39, x_4, x_5, x_6, x_7, x_57); +lean_ctor_set(x_39, 1, x_62); +lean_ctor_set(x_39, 0, x_53); +x_63 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_52, x_39, x_4, x_5, x_6, x_7, x_58); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_12 = x_34; -x_13 = x_63; -goto block_19; -} -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; -x_64 = lean_ctor_get(x_52, 1); +x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); -lean_dec(x_52); -x_65 = l_Lean_Exception_toMessageData(x_48); -x_66 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; -x_67 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; +lean_dec(x_63); +x_12 = x_34; +x_13 = x_64; +goto block_19; +} +else +{ +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_65 = lean_ctor_get(x_53, 1); +lean_inc(x_65); +lean_dec(x_53); +x_66 = l_Lean_Exception_toMessageData(x_48); +x_67 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; +x_68 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_69 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; lean_ctor_set_tag(x_39, 6); -lean_ctor_set(x_39, 1, x_68); -lean_ctor_set(x_39, 0, x_67); -x_69 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_51, x_39, x_4, x_5, x_6, x_7, x_64); +lean_ctor_set(x_39, 1, x_69); +lean_ctor_set(x_39, 0, x_68); +x_70 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_52, x_39, x_4, x_5, x_6, x_7, x_65); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); x_12 = x_34; -x_13 = x_70; +x_13 = x_71; goto block_19; } } @@ -34141,72 +34313,87 @@ goto block_27; } else { -lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_71 = lean_ctor_get(x_39, 0); -x_72 = lean_ctor_get(x_39, 1); +lean_free_object(x_39); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +x_20 = x_48; +x_21 = x_49; +goto block_27; +} +} +else +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = lean_ctor_get(x_39, 0); +x_73 = lean_ctor_get(x_39, 1); +lean_inc(x_73); lean_inc(x_72); -lean_inc(x_71); lean_dec(x_39); -x_73 = l_Lean_Exception_isRuntime(x_71); -if (x_73 == 0) +x_74 = l_Lean_Exception_isInterrupt(x_72); +if (x_74 == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_74 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; -x_75 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_74, x_4, x_5, x_6, x_7, x_72); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_unbox(x_76); -lean_dec(x_76); -if (x_77 == 0) +uint8_t x_75; +x_75 = l_Lean_Exception_isRuntime(x_72); +if (x_75 == 0) { -lean_object* x_78; -lean_dec(x_71); -lean_dec(x_4); -lean_dec(x_7); -lean_dec(x_6); -x_78 = lean_ctor_get(x_75, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; +x_77 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_76, x_4, x_5, x_6, x_7, x_73); +x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -lean_dec(x_75); +x_79 = lean_unbox(x_78); +lean_dec(x_78); +if (x_79 == 0) +{ +lean_object* x_80; +lean_dec(x_72); +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); x_12 = x_34; -x_13 = x_78; +x_13 = x_80; goto block_19; } 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; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_79 = lean_ctor_get(x_75, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_80 = x_75; +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; +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_75); - x_80 = lean_box(0); + lean_dec_ref(x_77); + x_82 = lean_box(0); } -x_81 = l_Lean_Exception_toMessageData(x_71); -x_82 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; -if (lean_is_scalar(x_80)) { - x_83 = lean_alloc_ctor(6, 2, 0); +x_83 = l_Lean_Exception_toMessageData(x_72); +x_84 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; +if (lean_is_scalar(x_82)) { + x_85 = lean_alloc_ctor(6, 2, 0); } else { - x_83 = x_80; - lean_ctor_set_tag(x_83, 6); + x_85 = x_82; + lean_ctor_set_tag(x_85, 6); } -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; -x_85 = lean_alloc_ctor(6, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_74, x_85, x_4, x_5, x_6, x_7, x_79); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; +x_87 = lean_alloc_ctor(6, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_76, x_87, x_4, x_5, x_6, x_7, x_81); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); x_12 = x_34; -x_13 = x_87; +x_13 = x_89; goto block_19; } } @@ -34215,8 +34402,18 @@ else lean_dec(x_4); lean_dec(x_7); lean_dec(x_6); -x_20 = x_71; -x_21 = x_72; +x_20 = x_72; +x_21 = x_73; +goto block_27; +} +} +else +{ +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +x_20 = x_72; +x_21 = x_73; goto block_27; } } @@ -34277,232 +34474,247 @@ return x_26; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t 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_105; lean_object* x_106; lean_object* x_112; uint8_t 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; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_88 = lean_ctor_get(x_4, 0); -x_89 = lean_ctor_get(x_4, 1); -x_90 = lean_ctor_get(x_4, 2); -x_91 = lean_ctor_get(x_4, 3); -x_92 = lean_ctor_get(x_4, 4); -x_93 = lean_ctor_get(x_4, 5); -x_94 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); -x_95 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); +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; uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_107; lean_object* x_108; lean_object* x_114; uint8_t x_115; lean_object* x_116; 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; lean_object* x_124; lean_object* x_125; +x_90 = lean_ctor_get(x_4, 0); +x_91 = lean_ctor_get(x_4, 1); +x_92 = lean_ctor_get(x_4, 2); +x_93 = lean_ctor_get(x_4, 3); +x_94 = lean_ctor_get(x_4, 4); +x_95 = lean_ctor_get(x_4, 5); +x_96 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); +x_97 = lean_ctor_get_uint8(x_4, sizeof(void*)*6 + 1); +lean_inc(x_95); +lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); lean_inc(x_91); lean_inc(x_90); -lean_inc(x_89); -lean_inc(x_88); lean_dec(x_4); -x_96 = l_Lean_Elab_Term_setElabConfig(x_88); -x_97 = lean_alloc_ctor(0, 6, 2); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_89); -lean_ctor_set(x_97, 2, x_90); -lean_ctor_set(x_97, 3, x_91); -lean_ctor_set(x_97, 4, x_92); -lean_ctor_set(x_97, 5, x_93); -lean_ctor_set_uint8(x_97, sizeof(void*)*6, x_94); -lean_ctor_set_uint8(x_97, sizeof(void*)*6 + 1, x_95); -x_112 = lean_ctor_get(x_6, 2); -lean_inc(x_112); -x_113 = l_Lean_getPPAnalyzeKnowsType(x_112); -lean_dec(x_112); -x_114 = l_Lean_SubExpr_Pos_root; -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_2); -lean_ctor_set(x_115, 1, x_114); -x_116 = 0; -x_117 = lean_alloc_ctor(0, 1, 4); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_113); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 1, x_113); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 2, x_116); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 3, x_116); -x_118 = lean_box(0); -x_119 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__1; -x_120 = lean_st_mk_ref(x_119, x_8); -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_98 = l_Lean_Elab_Term_setElabConfig(x_90); +x_99 = lean_alloc_ctor(0, 6, 2); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_91); +lean_ctor_set(x_99, 2, x_92); +lean_ctor_set(x_99, 3, x_93); +lean_ctor_set(x_99, 4, x_94); +lean_ctor_set(x_99, 5, x_95); +lean_ctor_set_uint8(x_99, sizeof(void*)*6, x_96); +lean_ctor_set_uint8(x_99, sizeof(void*)*6 + 1, x_97); +x_114 = lean_ctor_get(x_6, 2); +lean_inc(x_114); +x_115 = l_Lean_getPPAnalyzeKnowsType(x_114); +lean_dec(x_114); +x_116 = l_Lean_SubExpr_Pos_root; +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_2); +lean_ctor_set(x_117, 1, x_116); +x_118 = 0; +x_119 = lean_alloc_ctor(0, 1, 4); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_115); +lean_ctor_set_uint8(x_119, sizeof(void*)*1 + 1, x_115); +lean_ctor_set_uint8(x_119, sizeof(void*)*1 + 2, x_118); +lean_ctor_set_uint8(x_119, sizeof(void*)*1 + 3, x_118); +x_120 = lean_box(0); +x_121 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__1; +x_122 = lean_st_mk_ref(x_121, x_8); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_97); -lean_inc(x_121); -x_123 = l_Lean_Meta_withNewMCtxDepth___at_Lean_PrettyPrinter_Delaborator_topDownAnalyze___spec__1___rarg(x_3, x_116, x_117, x_121, x_97, x_5, x_6, x_7, x_122); -if (lean_obj_tag(x_123) == 0) +lean_inc(x_99); +lean_inc(x_123); +x_125 = l_Lean_Meta_withNewMCtxDepth___at_Lean_PrettyPrinter_Delaborator_topDownAnalyze___spec__1___rarg(x_3, x_118, x_119, x_123, x_99, x_5, x_6, x_7, x_124); +if (lean_obj_tag(x_125) == 0) { -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_dec(x_97); +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_dec(x_99); lean_dec(x_7); lean_dec(x_6); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -lean_dec(x_123); -x_125 = lean_st_ref_get(x_121, x_124); -x_126 = lean_ctor_get(x_125, 0); +x_126 = lean_ctor_get(x_125, 1); lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); lean_dec(x_125); -x_128 = lean_ctor_get(x_126, 0); +x_127 = lean_st_ref_get(x_123, x_126); +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = lean_st_ref_get(x_121, x_127); -lean_dec(x_121); -x_130 = lean_ctor_get(x_129, 1); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = lean_ctor_get(x_128, 0); lean_inc(x_130); -lean_dec(x_129); -x_98 = x_128; -x_99 = x_130; -goto block_104; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -lean_dec(x_121); -x_131 = lean_ctor_get(x_123, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_123, 1); +lean_dec(x_128); +x_131 = lean_st_ref_get(x_123, x_129); +lean_dec(x_123); +x_132 = lean_ctor_get(x_131, 1); lean_inc(x_132); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_133 = x_123; -} else { - lean_dec_ref(x_123); - x_133 = lean_box(0); -} -x_134 = l_Lean_Exception_isRuntime(x_131); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_135 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; -x_136 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_135, x_97, x_5, x_6, x_7, x_132); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_unbox(x_137); -lean_dec(x_137); -if (x_138 == 0) -{ -lean_object* x_139; -lean_dec(x_133); lean_dec(x_131); -lean_dec(x_97); -lean_dec(x_7); -lean_dec(x_6); -x_139 = lean_ctor_get(x_136, 1); -lean_inc(x_139); -lean_dec(x_136); -x_98 = x_118; -x_99 = x_139; -goto block_104; +x_100 = x_130; +x_101 = x_132; +goto block_106; } else { -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; -x_140 = lean_ctor_get(x_136, 1); +lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +lean_dec(x_123); +x_133 = lean_ctor_get(x_125, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_125, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_135 = x_125; +} else { + lean_dec_ref(x_125); + x_135 = lean_box(0); +} +x_136 = l_Lean_Exception_isInterrupt(x_133); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = l_Lean_Exception_isRuntime(x_133); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_138 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__3; +x_139 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_138, x_99, x_5, x_6, x_7, x_134); +x_140 = lean_ctor_get(x_139, 0); lean_inc(x_140); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_141 = x_136; -} else { - lean_dec_ref(x_136); - x_141 = lean_box(0); -} -x_142 = l_Lean_Exception_toMessageData(x_131); -x_143 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; -if (lean_is_scalar(x_141)) { - x_144 = lean_alloc_ctor(6, 2, 0); -} else { - x_144 = x_141; - lean_ctor_set_tag(x_144, 6); -} -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -x_145 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; -if (lean_is_scalar(x_133)) { - x_146 = lean_alloc_ctor(6, 2, 0); -} else { - x_146 = x_133; - lean_ctor_set_tag(x_146, 6); -} -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -x_147 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_135, x_146, x_97, x_5, x_6, x_7, x_140); +x_141 = lean_unbox(x_140); +lean_dec(x_140); +if (x_141 == 0) +{ +lean_object* x_142; +lean_dec(x_135); +lean_dec(x_133); +lean_dec(x_99); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_97); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -lean_dec(x_147); -x_98 = x_118; -x_99 = x_148; -goto block_104; +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +lean_dec(x_139); +x_100 = x_120; +x_101 = x_142; +goto block_106; +} +else +{ +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; +x_143 = lean_ctor_get(x_139, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_144 = x_139; +} else { + lean_dec_ref(x_139); + x_144 = lean_box(0); +} +x_145 = l_Lean_Exception_toMessageData(x_133); +x_146 = l_Lean_PrettyPrinter_Delaborator_topDownAnalyze___lambda__3___closed__5; +if (lean_is_scalar(x_144)) { + x_147 = lean_alloc_ctor(6, 2, 0); +} else { + x_147 = x_144; + lean_ctor_set_tag(x_147, 6); +} +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +x_148 = l_Lean_PrettyPrinter_Delaborator_TopDownAnalyze_annotateBoolAt___closed__3; +if (lean_is_scalar(x_135)) { + x_149 = lean_alloc_ctor(6, 2, 0); +} else { + x_149 = x_135; + lean_ctor_set_tag(x_149, 6); +} +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_138, x_149, x_99, x_5, x_6, x_7, x_143); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_99); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec(x_150); +x_100 = x_120; +x_101 = x_151; +goto block_106; } } else { -lean_dec(x_133); -lean_dec(x_97); +lean_dec(x_135); +lean_dec(x_99); lean_dec(x_7); lean_dec(x_6); -x_105 = x_131; -x_106 = x_132; -goto block_111; +x_107 = x_133; +x_108 = x_134; +goto block_113; } } -block_104: +else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_100 = lean_st_ref_set(x_5, x_1, x_99); -lean_dec(x_5); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; -} else { - lean_dec_ref(x_100); - x_102 = lean_box(0); +lean_dec(x_135); +lean_dec(x_99); +lean_dec(x_7); +lean_dec(x_6); +x_107 = x_133; +x_108 = x_134; +goto block_113; } -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(0, 2, 0); -} else { - x_103 = x_102; } -lean_ctor_set(x_103, 0, x_98); -lean_ctor_set(x_103, 1, x_101); -return x_103; -} -block_111: +block_106: { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_st_ref_set(x_5, x_1, x_106); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_st_ref_set(x_5, x_1, x_101); lean_dec(x_5); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_109 = x_107; +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_104 = x_102; } else { - lean_dec_ref(x_107); - x_109 = lean_box(0); + lean_dec_ref(x_102); + x_104 = lean_box(0); } -if (lean_is_scalar(x_109)) { - x_110 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(0, 2, 0); } else { - x_110 = x_109; - lean_ctor_set_tag(x_110, 1); + x_105 = x_104; } -lean_ctor_set(x_110, 0, x_105); -lean_ctor_set(x_110, 1, x_108); -return x_110; +lean_ctor_set(x_105, 0, x_100); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +block_113: +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_109 = lean_st_ref_set(x_5, x_1, x_108); +lean_dec(x_5); +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_111 = x_109; +} else { + lean_dec_ref(x_109); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(1, 2, 0); +} else { + x_112 = x_111; + lean_ctor_set_tag(x_112, 1); +} +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_110); +return x_112; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c index 0cda7fb223..1da0fb5825 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Formatter.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Formatter.c @@ -64,6 +64,7 @@ static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__10; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__3; lean_object* l_Lean_indentD(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_parseToken___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); @@ -626,9 +627,13 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ if (lean_obj_tag(x_13) == 0) { lean_dec(x_9); @@ -641,13 +646,13 @@ return x_11; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_16); -x_17 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; -x_18 = lean_nat_dec_eq(x_17, x_16); -lean_dec(x_16); -if (x_18 == 0) +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +x_18 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; +x_19 = lean_nat_dec_eq(x_18, x_17); +lean_dec(x_17); +if (x_19 == 0) { lean_dec(x_9); lean_dec(x_6); @@ -659,16 +664,16 @@ return x_11; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_free_object(x_11); lean_dec(x_13); -x_19 = lean_st_ref_set(x_4, x_9, x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_box(0); -x_22 = lean_apply_6(x_2, x_21, x_3, x_4, x_5, x_6, x_20); -return x_22; +x_20 = lean_st_ref_set(x_4, x_9, x_14); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_box(0); +x_23 = lean_apply_6(x_2, x_22, x_3, x_4, x_5, x_6, x_21); +return x_23; } } } @@ -685,78 +690,108 @@ return x_11; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_11); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) { -if (lean_obj_tag(x_23) == 0) +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) { -lean_object* x_26; +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_28; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_24); -return x_26; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_25); +return x_28; } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_23, 0); -lean_inc(x_27); -x_28 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; -x_29 = lean_nat_dec_eq(x_28, x_27); -lean_dec(x_27); -if (x_29 == 0) +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; +x_31 = lean_nat_dec_eq(x_30, x_29); +lean_dec(x_29); +if (x_31 == 0) { -lean_object* x_30; +lean_object* x_32; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -return x_30; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_25); +return x_32; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_23); -x_31 = lean_st_ref_set(x_4, x_9, x_24); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_box(0); -x_34 = lean_apply_6(x_2, x_33, x_3, x_4, x_5, x_6, x_32); -return x_34; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_24); +x_33 = lean_st_ref_set(x_4, x_9, x_25); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_box(0); +x_36 = lean_apply_6(x_2, x_35, x_3, x_4, x_5, x_6, x_34); +return x_36; } } } else { -lean_object* x_35; +lean_object* x_37; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_23); -lean_ctor_set(x_35, 1, x_24); -return x_35; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_24); +lean_ctor_set(x_37, 1, x_25); +return x_37; +} +} +else +{ +lean_object* x_38; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_25); +return x_38; } } } @@ -3887,9 +3922,13 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_ctor_get(x_17, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ if (lean_obj_tag(x_19) == 0) { lean_dec(x_15); @@ -3902,13 +3941,13 @@ return x_17; } else { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -x_23 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; -x_24 = lean_nat_dec_eq(x_23, x_22); -lean_dec(x_22); -if (x_24 == 0) +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +x_24 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; +x_25 = lean_nat_dec_eq(x_24, x_23); +lean_dec(x_23); +if (x_25 == 0) { lean_dec(x_15); lean_dec(x_6); @@ -3920,15 +3959,15 @@ return x_17; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_free_object(x_17); lean_dec(x_19); -x_25 = lean_st_ref_set(x_4, x_15, x_20); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_26); -return x_27; +x_26 = lean_st_ref_set(x_4, x_15, x_20); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_27); +return x_28; } } } @@ -3945,91 +3984,121 @@ return x_17; } else { -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_17, 0); -x_29 = lean_ctor_get(x_17, 1); +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_17; +} +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); lean_dec(x_17); -x_30 = l_Lean_Exception_isRuntime(x_28); -if (x_30 == 0) +x_31 = l_Lean_Exception_isInterrupt(x_29); +if (x_31 == 0) { -if (lean_obj_tag(x_28) == 0) +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) { -lean_object* x_31; +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_33; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_29); -return x_31; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_29); +lean_ctor_set(x_33, 1, x_30); +return x_33; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_28, 0); -lean_inc(x_32); -x_33 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; -x_34 = lean_nat_dec_eq(x_33, x_32); -lean_dec(x_32); -if (x_34 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +x_35 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; +x_36 = lean_nat_dec_eq(x_35, x_34); +lean_dec(x_34); +if (x_36 == 0) { -lean_object* x_35; +lean_object* x_37; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_28); -lean_ctor_set(x_35, 1, x_29); -return x_35; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_30); +return x_37; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_28); -x_36 = lean_st_ref_set(x_4, x_15, x_29); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_37); -return x_38; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_29); +x_38 = lean_st_ref_set(x_4, x_15, x_30); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_39); +return x_40; } } } else { -lean_object* x_39; +lean_object* x_41; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_29); -return x_39; -} -} -} -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); -lean_closure_set(x_40, 0, x_1); -lean_closure_set(x_40, 1, x_2); -x_41 = l_Lean_PrettyPrinter_Formatter_visitArgs(x_40, x_3, x_4, x_5, x_6, x_10); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_30); return x_41; } } +else +{ +lean_object* x_42; +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_29); +lean_ctor_set(x_42, 1, x_30); +return x_42; +} +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); +lean_closure_set(x_43, 0, x_1); +lean_closure_set(x_43, 1, x_2); +x_44 = l_Lean_PrettyPrinter_Formatter_visitArgs(x_43, x_3, x_4, x_5, x_6, x_10); +return x_44; +} +} } LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_recover_formatter(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: @@ -11820,7 +11889,7 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_format___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) { _start: { -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; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_dec(x_3); x_7 = lean_ctor_get(x_4, 2); lean_inc(x_7); @@ -11853,160 +11922,160 @@ lean_ctor_set(x_19, 1, x_15); lean_ctor_set(x_19, 2, x_18); lean_ctor_set_uint8(x_19, sizeof(void*)*3, x_16); lean_ctor_set_uint8(x_19, sizeof(void*)*3 + 1, x_17); -x_32 = lean_st_mk_ref(x_19, x_11); -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 = l_Lean_PrettyPrinter_Formatter_concat___closed__1; +x_34 = lean_st_mk_ref(x_19, x_11); +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 = l_Lean_PrettyPrinter_Formatter_concat___closed__1; lean_inc(x_5); lean_inc(x_4); -lean_inc(x_33); -x_36 = l_Lean_PrettyPrinter_Formatter_fold(x_35, x_2, x_13, x_33, x_4, x_5, x_34); -if (lean_obj_tag(x_36) == 0) +lean_inc(x_35); +x_38 = l_Lean_PrettyPrinter_Formatter_fold(x_37, x_2, x_13, x_35, x_4, x_5, x_36); +if (lean_obj_tag(x_38) == 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; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_st_ref_get(x_33, x_37); -lean_dec(x_33); -x_39 = lean_ctor_get(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; uint8_t x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; +x_39 = lean_ctor_get(x_38, 1); 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_39, 2); +x_40 = lean_st_ref_get(x_35, x_39); +lean_dec(x_35); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_array_get_size(x_41); -x_43 = lean_unsigned_to_nat(0u); -x_44 = lean_nat_dec_lt(x_43, x_42); -lean_dec(x_42); -x_45 = l_Lean_PrettyPrinter_format___lambda__4___closed__4; -x_46 = l_Lean_PrettyPrinter_format___lambda__4___closed__5; -x_47 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_7, x_46); -if (x_44 == 0) -{ -lean_object* x_71; lean_object* x_72; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_ctor_get(x_41, 2); +lean_inc(x_43); lean_dec(x_41); -x_71 = l_Std_instInhabitedFormat; -x_72 = l___private_Init_GetElem_0__outOfBounds___rarg(x_71); -x_48 = x_72; -goto block_70; +x_44 = lean_array_get_size(x_43); +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_nat_dec_lt(x_45, x_44); +lean_dec(x_44); +x_47 = l_Lean_PrettyPrinter_format___lambda__4___closed__4; +x_48 = l_Lean_PrettyPrinter_format___lambda__4___closed__5; +x_49 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_7, x_48); +if (x_46 == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_43); +x_73 = l_Std_instInhabitedFormat; +x_74 = l___private_Init_GetElem_0__outOfBounds___rarg(x_73); +x_50 = x_74; +goto block_72; } else { -lean_object* x_73; -x_73 = lean_array_fget(x_41, x_43); -lean_dec(x_41); -x_48 = x_73; -goto block_70; +lean_object* x_75; +x_75 = lean_array_fget(x_43, x_45); +lean_dec(x_43); +x_50 = x_75; +goto block_72; } -block_70: +block_72: { -if (x_47 == 0) -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_7); -x_49 = lean_box(0); -lean_inc(x_5); -lean_inc(x_4); -x_50 = lean_apply_5(x_45, x_48, x_49, x_4, x_5, x_40); -if (lean_obj_tag(x_50) == 0) -{ -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -return x_50; -} -else +if (x_49 == 0) { lean_object* x_51; lean_object* x_52; -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_20 = x_51; -x_21 = x_52; -goto block_31; -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_inc(x_48); -x_53 = l_Std_Format_pretty_x27(x_48, x_7); lean_dec(x_7); -x_54 = l_String_trim(x_53); -lean_dec(x_53); -x_55 = lean_string_utf8_byte_size(x_54); -x_56 = l_Lean_PrettyPrinter_format___lambda__4___closed__6; -x_57 = l_String_findAux(x_54, x_56, x_55, x_43); -x_58 = lean_nat_dec_lt(x_57, x_55); -lean_dec(x_55); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; -lean_dec(x_57); -x_59 = lean_box(0); +x_51 = lean_box(0); lean_inc(x_5); lean_inc(x_4); -x_60 = l_Lean_PrettyPrinter_format___lambda__3(x_45, x_48, x_54, x_59, x_4, x_5, x_40); -lean_dec(x_48); -if (lean_obj_tag(x_60) == 0) +x_52 = lean_apply_5(x_47, x_50, x_51, x_4, x_5, x_42); +if (lean_obj_tag(x_52) == 0) { lean_dec(x_12); lean_dec(x_5); lean_dec(x_4); -return x_60; +return x_52; } else { +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_20 = x_53; +x_21 = x_54; +goto block_33; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_inc(x_50); +x_55 = l_Std_Format_pretty_x27(x_50, x_7); +lean_dec(x_7); +x_56 = l_String_trim(x_55); +lean_dec(x_55); +x_57 = lean_string_utf8_byte_size(x_56); +x_58 = l_Lean_PrettyPrinter_format___lambda__4___closed__6; +x_59 = l_String_findAux(x_56, x_58, x_57, x_45); +x_60 = lean_nat_dec_lt(x_59, x_57); +lean_dec(x_57); +if (x_60 == 0) +{ lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_20 = x_61; -x_21 = x_62; -goto block_31; -} -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_63 = lean_string_utf8_extract(x_54, x_43, x_57); -lean_dec(x_57); -lean_dec(x_54); -x_64 = l_Lean_PrettyPrinter_format___lambda__4___closed__7; -x_65 = lean_string_append(x_63, x_64); -x_66 = lean_box(0); +lean_dec(x_59); +x_61 = lean_box(0); lean_inc(x_5); lean_inc(x_4); -x_67 = l_Lean_PrettyPrinter_format___lambda__3(x_45, x_48, x_65, x_66, x_4, x_5, x_40); -lean_dec(x_48); -if (lean_obj_tag(x_67) == 0) +x_62 = l_Lean_PrettyPrinter_format___lambda__3(x_47, x_50, x_56, x_61, x_4, x_5, x_42); +lean_dec(x_50); +if (lean_obj_tag(x_62) == 0) { lean_dec(x_12); lean_dec(x_5); lean_dec(x_4); -return x_67; +return x_62; } else { -lean_object* x_68; lean_object* x_69; -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_20 = x_68; -x_21 = x_69; -goto block_31; +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_20 = x_63; +x_21 = x_64; +goto block_33; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_string_utf8_extract(x_56, x_45, x_59); +lean_dec(x_59); +lean_dec(x_56); +x_66 = l_Lean_PrettyPrinter_format___lambda__4___closed__7; +x_67 = lean_string_append(x_65, x_66); +x_68 = lean_box(0); +lean_inc(x_5); +lean_inc(x_4); +x_69 = l_Lean_PrettyPrinter_format___lambda__3(x_47, x_50, x_67, x_68, x_4, x_5, x_42); +lean_dec(x_50); +if (lean_obj_tag(x_69) == 0) +{ +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +return x_69; +} +else +{ +lean_object* x_70; lean_object* x_71; +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_20 = x_70; +x_21 = x_71; +goto block_33; } } } @@ -12014,89 +12083,109 @@ goto block_31; } else { -lean_object* x_74; lean_object* x_75; -lean_dec(x_33); +lean_object* x_76; lean_object* x_77; +lean_dec(x_35); lean_dec(x_7); -x_74 = lean_ctor_get(x_36, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_36, 1); -lean_inc(x_75); -lean_dec(x_36); -x_20 = x_74; -x_21 = x_75; -goto block_31; +x_76 = lean_ctor_get(x_38, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_38, 1); +lean_inc(x_77); +lean_dec(x_38); +x_20 = x_76; +x_21 = x_77; +goto block_33; } -block_31: +block_33: { uint8_t x_22; -x_22 = l_Lean_Exception_isRuntime(x_20); +x_22 = l_Lean_Exception_isInterrupt(x_20); if (x_22 == 0) { +uint8_t x_23; +x_23 = l_Lean_Exception_isRuntime(x_20); +if (x_23 == 0) +{ if (lean_obj_tag(x_20) == 0) { -lean_object* x_23; +lean_object* x_24; lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_12)) { - x_23 = lean_alloc_ctor(1, 2, 0); + x_24 = lean_alloc_ctor(1, 2, 0); } else { - x_23 = x_12; - lean_ctor_set_tag(x_23, 1); + x_24 = x_12; + lean_ctor_set_tag(x_24, 1); } -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_21); -return x_23; +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_21); +return x_24; } else { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -x_25 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; -x_26 = lean_nat_dec_eq(x_25, x_24); -lean_dec(x_24); -if (x_26 == 0) +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_20, 0); +lean_inc(x_25); +x_26 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1; +x_27 = lean_nat_dec_eq(x_26, x_25); +lean_dec(x_25); +if (x_27 == 0) { -lean_object* x_27; +lean_object* x_28; lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_12)) { - x_27 = lean_alloc_ctor(1, 2, 0); + x_28 = lean_alloc_ctor(1, 2, 0); } else { - x_27 = x_12; - lean_ctor_set_tag(x_27, 1); + x_28 = x_12; + lean_ctor_set_tag(x_28, 1); } -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_21); -return x_27; +lean_ctor_set(x_28, 0, x_20); +lean_ctor_set(x_28, 1, x_21); +return x_28; } else { -lean_object* x_28; lean_object* x_29; +lean_object* x_29; lean_object* x_30; lean_dec(x_20); lean_dec(x_12); -x_28 = l_Lean_PrettyPrinter_format___lambda__4___closed__3; -x_29 = l_Lean_throwError___at_Lean_PrettyPrinter_format___spec__1(x_28, x_4, x_5, x_21); +x_29 = l_Lean_PrettyPrinter_format___lambda__4___closed__3; +x_30 = l_Lean_throwError___at_Lean_PrettyPrinter_format___spec__1(x_29, x_4, x_5, x_21); lean_dec(x_5); lean_dec(x_4); -return x_29; +return x_30; } } } else { -lean_object* x_30; +lean_object* x_31; lean_dec(x_5); lean_dec(x_4); if (lean_is_scalar(x_12)) { - x_30 = lean_alloc_ctor(1, 2, 0); + x_31 = lean_alloc_ctor(1, 2, 0); } else { - x_30 = x_12; - lean_ctor_set_tag(x_30, 1); + x_31 = x_12; + lean_ctor_set_tag(x_31, 1); } -lean_ctor_set(x_30, 0, x_20); -lean_ctor_set(x_30, 1, x_21); -return x_30; +lean_ctor_set(x_31, 0, x_20); +lean_ctor_set(x_31, 1, x_21); +return x_31; +} +} +else +{ +lean_object* x_32; +lean_dec(x_5); +lean_dec(x_4); +if (lean_is_scalar(x_12)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_12; + lean_ctor_set_tag(x_32, 1); +} +lean_ctor_set(x_32, 0, x_20); +lean_ctor_set(x_32, 1, x_21); +return x_32; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c index b1a5000490..2f04151391 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c @@ -60,6 +60,7 @@ static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parent lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__5___closed__1; lean_object* l_Lean_indentD(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_unicodeSymbolNoAntiquot_parenthesizer(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__26; @@ -666,9 +667,13 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Lean_Exception_isRuntime(x_13); +x_15 = l_Lean_Exception_isInterrupt(x_13); if (x_15 == 0) { +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ if (lean_obj_tag(x_13) == 0) { lean_dec(x_9); @@ -681,13 +686,13 @@ return x_11; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_16); -x_17 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_18 = lean_nat_dec_eq(x_17, x_16); -lean_dec(x_16); -if (x_18 == 0) +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +x_18 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_19 = lean_nat_dec_eq(x_18, x_17); +lean_dec(x_17); +if (x_19 == 0) { lean_dec(x_9); lean_dec(x_6); @@ -699,16 +704,16 @@ return x_11; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_free_object(x_11); lean_dec(x_13); -x_19 = lean_st_ref_set(x_4, x_9, x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_box(0); -x_22 = lean_apply_6(x_2, x_21, x_3, x_4, x_5, x_6, x_20); -return x_22; +x_20 = lean_st_ref_set(x_4, x_9, x_14); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_box(0); +x_23 = lean_apply_6(x_2, x_22, x_3, x_4, x_5, x_6, x_21); +return x_23; } } } @@ -725,78 +730,108 @@ return x_11; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_11); -x_25 = l_Lean_Exception_isRuntime(x_23); -if (x_25 == 0) +x_26 = l_Lean_Exception_isInterrupt(x_24); +if (x_26 == 0) { -if (lean_obj_tag(x_23) == 0) +uint8_t x_27; +x_27 = l_Lean_Exception_isRuntime(x_24); +if (x_27 == 0) { -lean_object* x_26; +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_28; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_24); -return x_26; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_25); +return x_28; } else { -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_23, 0); -lean_inc(x_27); -x_28 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_29 = lean_nat_dec_eq(x_28, x_27); -lean_dec(x_27); -if (x_29 == 0) +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_31 = lean_nat_dec_eq(x_30, x_29); +lean_dec(x_29); +if (x_31 == 0) { -lean_object* x_30; +lean_object* x_32; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -return x_30; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_25); +return x_32; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_23); -x_31 = lean_st_ref_set(x_4, x_9, x_24); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_box(0); -x_34 = lean_apply_6(x_2, x_33, x_3, x_4, x_5, x_6, x_32); -return x_34; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_24); +x_33 = lean_st_ref_set(x_4, x_9, x_25); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_box(0); +x_36 = lean_apply_6(x_2, x_35, x_3, x_4, x_5, x_6, x_34); +return x_36; } } } else { -lean_object* x_35; +lean_object* x_37; lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_23); -lean_ctor_set(x_35, 1, x_24); -return x_35; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_24); +lean_ctor_set(x_37, 1, x_25); +return x_37; +} +} +else +{ +lean_object* x_38; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_25); +return x_38; } } } @@ -8180,9 +8215,13 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_ctor_get(x_17, 1); -x_21 = l_Lean_Exception_isRuntime(x_19); +x_21 = l_Lean_Exception_isInterrupt(x_19); if (x_21 == 0) { +uint8_t x_22; +x_22 = l_Lean_Exception_isRuntime(x_19); +if (x_22 == 0) +{ if (lean_obj_tag(x_19) == 0) { lean_dec(x_15); @@ -8195,13 +8234,13 @@ return x_17; } else { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -x_23 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_24 = lean_nat_dec_eq(x_23, x_22); -lean_dec(x_22); -if (x_24 == 0) +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +x_24 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_25 = lean_nat_dec_eq(x_24, x_23); +lean_dec(x_23); +if (x_25 == 0) { lean_dec(x_15); lean_dec(x_6); @@ -8213,15 +8252,15 @@ return x_17; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_free_object(x_17); lean_dec(x_19); -x_25 = lean_st_ref_set(x_4, x_15, x_20); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_26); -return x_27; +x_26 = lean_st_ref_set(x_4, x_15, x_20); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_27); +return x_28; } } } @@ -8238,96 +8277,126 @@ return x_17; } else { -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_17, 0); -x_29 = lean_ctor_get(x_17, 1); +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_17; +} +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); lean_dec(x_17); -x_30 = l_Lean_Exception_isRuntime(x_28); -if (x_30 == 0) +x_31 = l_Lean_Exception_isInterrupt(x_29); +if (x_31 == 0) { -if (lean_obj_tag(x_28) == 0) +uint8_t x_32; +x_32 = l_Lean_Exception_isRuntime(x_29); +if (x_32 == 0) { -lean_object* x_31; +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_33; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_29); -return x_31; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_29); +lean_ctor_set(x_33, 1, x_30); +return x_33; } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_28, 0); -lean_inc(x_32); -x_33 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_34 = lean_nat_dec_eq(x_33, x_32); -lean_dec(x_32); -if (x_34 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +x_35 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_36 = lean_nat_dec_eq(x_35, x_34); +lean_dec(x_34); +if (x_36 == 0) { -lean_object* x_35; +lean_object* x_37; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_28); -lean_ctor_set(x_35, 1, x_29); -return x_35; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_30); +return x_37; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_28); -x_36 = lean_st_ref_set(x_4, x_15, x_29); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_37); -return x_38; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_29); +x_38 = lean_st_ref_set(x_4, x_15, x_30); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_39); +return x_40; } } } else { -lean_object* x_39; +lean_object* x_41; lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_29); -return x_39; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_30); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_29); +lean_ctor_set(x_42, 1, x_30); +return x_42; } } } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = l_Lean_Syntax_getArgs(x_9); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = l_Lean_Syntax_getArgs(x_9); lean_dec(x_9); -x_41 = lean_array_get_size(x_40); -lean_dec(x_40); -lean_inc(x_41); -x_42 = lean_alloc_closure((void*)(l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1___boxed), 9, 4); -lean_closure_set(x_42, 0, x_1); -lean_closure_set(x_42, 1, x_2); -lean_closure_set(x_42, 2, x_41); -lean_closure_set(x_42, 3, x_41); -x_43 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_42, x_3, x_4, x_5, x_6, x_10); -return x_43; +x_44 = lean_array_get_size(x_43); +lean_dec(x_43); +lean_inc(x_44); +x_45 = lean_alloc_closure((void*)(l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1___boxed), 9, 4); +lean_closure_set(x_45, 0, x_1); +lean_closure_set(x_45, 1, x_2); +lean_closure_set(x_45, 2, x_44); +lean_closure_set(x_45, 3, x_44); +x_46 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_45, x_3, x_4, x_5, x_6, x_10); +return x_46; } } } @@ -12580,9 +12649,13 @@ if (x_26 == 0) lean_object* x_27; lean_object* x_28; uint8_t x_29; x_27 = lean_ctor_get(x_15, 0); x_28 = lean_ctor_get(x_15, 1); -x_29 = l_Lean_Exception_isRuntime(x_27); +x_29 = l_Lean_Exception_isInterrupt(x_27); if (x_29 == 0) { +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ if (lean_obj_tag(x_27) == 0) { lean_dec(x_5); @@ -12591,13 +12664,13 @@ return x_15; } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -x_31 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_32 = lean_nat_dec_eq(x_31, x_30); -lean_dec(x_30); -if (x_32 == 0) +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +x_32 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_33 = lean_nat_dec_eq(x_32, x_31); +lean_dec(x_31); +if (x_33 == 0) { lean_dec(x_5); lean_dec(x_4); @@ -12605,14 +12678,14 @@ return x_15; } else { -lean_object* x_33; lean_object* x_34; +lean_object* x_34; lean_object* x_35; lean_free_object(x_15); lean_dec(x_27); -x_33 = l_Lean_PrettyPrinter_parenthesize___lambda__1___closed__2; -x_34 = l_Lean_throwError___at_Lean_PrettyPrinter_parenthesize___spec__1(x_33, x_4, x_5, x_28); +x_34 = l_Lean_PrettyPrinter_parenthesize___lambda__1___closed__2; +x_35 = l_Lean_throwError___at_Lean_PrettyPrinter_parenthesize___spec__1(x_34, x_4, x_5, x_28); lean_dec(x_5); lean_dec(x_4); -return x_34; +return x_35; } } } @@ -12625,64 +12698,86 @@ return x_15; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_15, 0); -x_36 = lean_ctor_get(x_15, 1); +lean_dec(x_5); +lean_dec(x_4); +return x_15; +} +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_15, 0); +x_37 = lean_ctor_get(x_15, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); lean_dec(x_15); -x_37 = l_Lean_Exception_isRuntime(x_35); -if (x_37 == 0) +x_38 = l_Lean_Exception_isInterrupt(x_36); +if (x_38 == 0) { -if (lean_obj_tag(x_35) == 0) +uint8_t x_39; +x_39 = l_Lean_Exception_isRuntime(x_36); +if (x_39 == 0) { -lean_object* x_38; +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_40; lean_dec(x_5); lean_dec(x_4); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_36); -return x_38; +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_40, 1, x_37); +return x_40; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_ctor_get(x_35, 0); -lean_inc(x_39); -x_40 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; -x_41 = lean_nat_dec_eq(x_40, x_39); -lean_dec(x_39); -if (x_41 == 0) +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +x_42 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1; +x_43 = lean_nat_dec_eq(x_42, x_41); +lean_dec(x_41); +if (x_43 == 0) { -lean_object* x_42; -lean_dec(x_5); -lean_dec(x_4); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_36); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_35); -x_43 = l_Lean_PrettyPrinter_parenthesize___lambda__1___closed__2; -x_44 = l_Lean_throwError___at_Lean_PrettyPrinter_parenthesize___spec__1(x_43, x_4, x_5, x_36); +lean_object* x_44; lean_dec(x_5); lean_dec(x_4); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_36); +lean_ctor_set(x_44, 1, x_37); return x_44; } +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_36); +x_45 = l_Lean_PrettyPrinter_parenthesize___lambda__1___closed__2; +x_46 = l_Lean_throwError___at_Lean_PrettyPrinter_parenthesize___spec__1(x_45, x_4, x_5, x_37); +lean_dec(x_5); +lean_dec(x_4); +return x_46; +} } } else { -lean_object* x_45; +lean_object* x_47; lean_dec(x_5); lean_dec(x_4); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_35); -lean_ctor_set(x_45, 1, x_36); -return x_45; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_36); +lean_ctor_set(x_47, 1, x_37); +return x_47; +} +} +else +{ +lean_object* x_48; +lean_dec(x_5); +lean_dec(x_4); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_36); +lean_ctor_set(x_48, 1, x_37); +return x_48; } } } diff --git a/stage0/stdlib/Lean/Replay.c b/stage0/stdlib/Lean/Replay.c index f143a93bea..07b84403b3 100644 --- a/stage0/stdlib/Lean/Replay.c +++ b/stage0/stdlib/Lean/Replay.c @@ -53,6 +53,7 @@ static lean_object* l_Lean_Environment_Replay_throwKernelException___lambda__1__ LEAN_EXPORT lean_object* l_Lean_Environment_Replay_throwKernelException(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Environment_Replay_isTodo___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Environment_Replay_replayConstant___closed__2; +static uint8_t l_Lean_Environment_Replay_throwKernelException___closed__21; lean_object* l_Lean_Kernel_enableDiag(lean_object*, uint8_t); extern lean_object* l_instInhabitedPUnit; uint8_t l_Lean_Kernel_isDiagnosticsEnabled(lean_object*); @@ -125,7 +126,7 @@ static lean_object* l_Lean_Environment_Replay_throwKernelException___closed__2; uint8_t l_Lean_RBNode_isBlack___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Environment_replay___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static uint8_t l_Lean_Environment_Replay_throwKernelException___closed__20; +static lean_object* l_Lean_Environment_Replay_throwKernelException___closed__20; lean_object* l_List_reverse___rarg(lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; LEAN_EXPORT lean_object* l_Lean_Environment_Replay_State_postponedRecursors___default; @@ -620,13 +621,13 @@ x_11 = l_Lean_Environment_Replay_throwKernelException___lambda__1___closed__1; x_12 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_11); lean_ctor_set(x_5, 4, x_12); lean_ctor_set(x_5, 2, x_1); -lean_ctor_set_uint8(x_5, sizeof(void*)*11, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*12, x_2); x_13 = l_Lean_throwKernelException___at_Lean_addDecl___spec__1(x_3, x_5, x_6, x_7); return x_13; } else { -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_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; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_14 = lean_ctor_get(x_5, 0); x_15 = lean_ctor_get(x_5, 1); x_16 = lean_ctor_get(x_5, 3); @@ -636,6 +637,9 @@ x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); x_21 = lean_ctor_get(x_5, 9); x_22 = lean_ctor_get(x_5, 10); +x_23 = lean_ctor_get(x_5, 11); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); +lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -646,23 +650,25 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_5); -x_23 = l_Lean_Environment_Replay_throwKernelException___lambda__1___closed__1; -x_24 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_23); -x_25 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_1); -lean_ctor_set(x_25, 3, x_16); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_25, 5, x_17); -lean_ctor_set(x_25, 6, x_18); -lean_ctor_set(x_25, 7, x_19); -lean_ctor_set(x_25, 8, x_20); -lean_ctor_set(x_25, 9, x_21); -lean_ctor_set(x_25, 10, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_2); -x_26 = l_Lean_throwKernelException___at_Lean_addDecl___spec__1(x_3, x_25, x_6, x_7); -return x_26; +x_25 = l_Lean_Environment_Replay_throwKernelException___lambda__1___closed__1; +x_26 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_1, x_25); +x_27 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_1); +lean_ctor_set(x_27, 3, x_16); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_27, 5, x_17); +lean_ctor_set(x_27, 6, x_18); +lean_ctor_set(x_27, 7, x_19); +lean_ctor_set(x_27, 8, x_20); +lean_ctor_set(x_27, 9, x_21); +lean_ctor_set(x_27, 10, x_22); +lean_ctor_set(x_27, 11, x_23); +lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_24); +x_28 = l_Lean_throwKernelException___at_Lean_addDecl___spec__1(x_3, x_27, x_6, x_7); +return x_28; } } } @@ -832,6 +838,18 @@ return x_2; static lean_object* _init_l_Lean_Environment_Replay_throwKernelException___closed__17() { _start: { +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = l_Lean_Environment_Replay_throwKernelException___closed__12; +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_Lean_Environment_Replay_throwKernelException___closed__18() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Environment_Replay_throwKernelException___closed__14; x_2 = lean_unsigned_to_nat(0u); @@ -841,12 +859,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Environment_Replay_throwKernelException___closed__18() { +static lean_object* _init_l_Lean_Environment_Replay_throwKernelException___closed__19() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; -x_2 = l_Lean_Environment_Replay_throwKernelException___closed__17; +x_2 = l_Lean_Environment_Replay_throwKernelException___closed__18; x_3 = l_Lean_Environment_Replay_throwKernelException___closed__12; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_2); @@ -855,7 +873,7 @@ lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); return x_4; } } -static lean_object* _init_l_Lean_Environment_Replay_throwKernelException___closed__19() { +static lean_object* _init_l_Lean_Environment_Replay_throwKernelException___closed__20() { _start: { lean_object* x_1; @@ -863,12 +881,12 @@ x_1 = l_Lean_diagnostics; return x_1; } } -static uint8_t _init_l_Lean_Environment_Replay_throwKernelException___closed__20() { +static uint8_t _init_l_Lean_Environment_Replay_throwKernelException___closed__21() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; x_1 = lean_box(0); -x_2 = l_Lean_Environment_Replay_throwKernelException___closed__19; +x_2 = l_Lean_Environment_Replay_throwKernelException___closed__20; x_3 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_1, x_2); return x_3; } @@ -876,107 +894,111 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Environment_Replay_throwKernelException(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_11; lean_object* x_12; 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; 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; uint8_t x_58; uint8_t x_59; +lean_object* x_5; lean_object* x_11; lean_object* x_12; 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; 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_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; uint8_t x_61; x_27 = lean_box(0); -x_28 = lean_st_ref_get(x_3, x_4); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +x_28 = lean_box(0); +x_29 = lean_st_ref_get(x_3, x_4); +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_ctor_get(x_29, 0); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_Lean_Environment_Replay_throwKernelException___closed__6; -x_33 = l_Lean_Environment_Replay_throwKernelException___closed__9; -x_34 = l_Lean_Environment_Replay_throwKernelException___closed__12; -x_35 = l_Lean_Environment_Replay_throwKernelException___closed__16; -x_36 = l_Lean_Environment_Replay_throwKernelException___closed__18; -x_37 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -lean_ctor_set(x_37, 2, x_33); -lean_ctor_set(x_37, 3, x_34); -lean_ctor_set(x_37, 4, x_35); -lean_ctor_set(x_37, 5, x_34); -lean_ctor_set(x_37, 6, x_36); -x_38 = lean_io_get_num_heartbeats(x_30); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Environment_Replay_throwKernelException___closed__3; -x_42 = l_Lean_Environment_Replay_throwKernelException___closed__4; -x_43 = lean_unsigned_to_nat(0u); -x_44 = lean_unsigned_to_nat(1000u); -x_45 = lean_box(0); -x_46 = lean_box(0); -x_47 = l_Lean_Environment_Replay_throwKernelException___closed__5; -x_48 = l_Lean_firstFrontendMacroScope; -x_49 = 0; -x_50 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_50, 0, x_41); -lean_ctor_set(x_50, 1, x_42); -lean_ctor_set(x_50, 2, x_27); -lean_ctor_set(x_50, 3, x_43); -lean_ctor_set(x_50, 4, x_44); -lean_ctor_set(x_50, 5, x_45); -lean_ctor_set(x_50, 6, x_46); -lean_ctor_set(x_50, 7, x_27); -lean_ctor_set(x_50, 8, x_39); -lean_ctor_set(x_50, 9, x_47); -lean_ctor_set(x_50, 10, x_48); -lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_49); -x_51 = lean_st_mk_ref(x_37, x_40); -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 = lean_st_ref_get(x_52, x_53); -x_55 = lean_ctor_get(x_54, 0); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Environment_Replay_throwKernelException___closed__6; +x_34 = l_Lean_Environment_Replay_throwKernelException___closed__9; +x_35 = l_Lean_Environment_Replay_throwKernelException___closed__12; +x_36 = l_Lean_Environment_Replay_throwKernelException___closed__16; +x_37 = l_Lean_Environment_Replay_throwKernelException___closed__17; +x_38 = l_Lean_Environment_Replay_throwKernelException___closed__19; +x_39 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_33); +lean_ctor_set(x_39, 2, x_34); +lean_ctor_set(x_39, 3, x_35); +lean_ctor_set(x_39, 4, x_36); +lean_ctor_set(x_39, 5, x_37); +lean_ctor_set(x_39, 6, x_38); +x_40 = lean_io_get_num_heartbeats(x_31); +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 = l_Lean_Environment_Replay_throwKernelException___closed__3; +x_44 = l_Lean_Environment_Replay_throwKernelException___closed__4; +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_unsigned_to_nat(1000u); +x_47 = lean_box(0); +x_48 = lean_box(0); +x_49 = l_Lean_Environment_Replay_throwKernelException___closed__5; +x_50 = l_Lean_firstFrontendMacroScope; +x_51 = 0; +x_52 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_52, 0, x_43); +lean_ctor_set(x_52, 1, x_44); +lean_ctor_set(x_52, 2, x_27); +lean_ctor_set(x_52, 3, x_45); +lean_ctor_set(x_52, 4, x_46); +lean_ctor_set(x_52, 5, x_47); +lean_ctor_set(x_52, 6, x_48); +lean_ctor_set(x_52, 7, x_27); +lean_ctor_set(x_52, 8, x_41); +lean_ctor_set(x_52, 9, x_49); +lean_ctor_set(x_52, 10, x_50); +lean_ctor_set(x_52, 11, x_28); +lean_ctor_set_uint8(x_52, sizeof(void*)*12, x_51); +lean_ctor_set_uint8(x_52, sizeof(void*)*12 + 1, x_51); +x_53 = lean_st_mk_ref(x_39, x_42); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_53); +x_56 = lean_st_ref_get(x_54, x_55); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_Kernel_isDiagnosticsEnabled(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); lean_dec(x_57); -if (x_58 == 0) -{ -uint8_t x_95; -x_95 = l_Lean_Environment_Replay_throwKernelException___closed__20; -if (x_95 == 0) -{ -uint8_t x_96; -x_96 = 1; -x_59 = x_96; -goto block_94; -} -else -{ -x_59 = x_49; -goto block_94; -} -} -else +x_60 = l_Lean_Kernel_isDiagnosticsEnabled(x_59); +lean_dec(x_59); +if (x_60 == 0) { uint8_t x_97; -x_97 = l_Lean_Environment_Replay_throwKernelException___closed__20; +x_97 = l_Lean_Environment_Replay_throwKernelException___closed__21; if (x_97 == 0) { -x_59 = x_49; -goto block_94; -} -else -{ uint8_t x_98; x_98 = 1; -x_59 = x_98; -goto block_94; +x_61 = x_98; +goto block_96; +} +else +{ +x_61 = x_51; +goto block_96; +} +} +else +{ +uint8_t x_99; +x_99 = l_Lean_Environment_Replay_throwKernelException___closed__21; +if (x_99 == 0) +{ +x_61 = x_51; +goto block_96; +} +else +{ +uint8_t x_100; +x_100 = 1; +x_61 = x_100; +goto block_96; } } block_10: @@ -1065,101 +1087,101 @@ goto block_10; } } } -block_94: +block_96: { -if (x_59 == 0) +if (x_61 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_st_ref_take(x_52, x_56); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = !lean_is_exclusive(x_61); -if (x_63 == 0) +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_62 = lean_st_ref_take(x_54, x_58); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) { -lean_object* x_64; lean_object* x_65; uint8_t 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_64 = lean_ctor_get(x_61, 0); -x_65 = lean_ctor_get(x_61, 4); -lean_dec(x_65); -x_66 = l_Lean_Environment_Replay_throwKernelException___closed__20; -x_67 = l_Lean_Kernel_enableDiag(x_64, x_66); -lean_ctor_set(x_61, 4, x_35); -lean_ctor_set(x_61, 0, x_67); -x_68 = lean_st_ref_set(x_52, x_61, x_62); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -lean_dec(x_68); -x_70 = lean_box(0); -x_71 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_66, x_1, x_70, x_50, x_52, x_69); -lean_dec(x_52); -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_11 = x_72; -x_12 = x_73; +lean_object* x_66; lean_object* x_67; uint8_t 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_66 = lean_ctor_get(x_63, 0); +x_67 = lean_ctor_get(x_63, 4); +lean_dec(x_67); +x_68 = l_Lean_Environment_Replay_throwKernelException___closed__21; +x_69 = l_Lean_Kernel_enableDiag(x_66, x_68); +lean_ctor_set(x_63, 4, x_36); +lean_ctor_set(x_63, 0, x_69); +x_70 = lean_st_ref_set(x_54, x_63, x_64); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = lean_box(0); +x_73 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_68, x_1, x_72, x_52, x_54, x_71); +lean_dec(x_54); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_11 = x_74; +x_12 = x_75; goto block_26; } 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; uint8_t 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_74 = lean_ctor_get(x_61, 0); -x_75 = lean_ctor_get(x_61, 1); -x_76 = lean_ctor_get(x_61, 2); -x_77 = lean_ctor_get(x_61, 3); -x_78 = lean_ctor_get(x_61, 5); -x_79 = lean_ctor_get(x_61, 6); +lean_object* x_76; lean_object* x_77; 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; lean_object* x_89; lean_object* x_90; +x_76 = lean_ctor_get(x_63, 0); +x_77 = lean_ctor_get(x_63, 1); +x_78 = lean_ctor_get(x_63, 2); +x_79 = lean_ctor_get(x_63, 3); +x_80 = lean_ctor_get(x_63, 5); +x_81 = lean_ctor_get(x_63, 6); +lean_inc(x_81); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_61); -x_80 = l_Lean_Environment_Replay_throwKernelException___closed__20; -x_81 = l_Lean_Kernel_enableDiag(x_74, x_80); -x_82 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_75); -lean_ctor_set(x_82, 2, x_76); -lean_ctor_set(x_82, 3, x_77); -lean_ctor_set(x_82, 4, x_35); -lean_ctor_set(x_82, 5, x_78); -lean_ctor_set(x_82, 6, x_79); -x_83 = lean_st_ref_set(x_52, x_82, x_62); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_85 = lean_box(0); -x_86 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_80, x_1, x_85, x_50, x_52, x_84); -lean_dec(x_52); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_11 = x_87; -x_12 = x_88; +lean_dec(x_63); +x_82 = l_Lean_Environment_Replay_throwKernelException___closed__21; +x_83 = l_Lean_Kernel_enableDiag(x_76, x_82); +x_84 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_77); +lean_ctor_set(x_84, 2, x_78); +lean_ctor_set(x_84, 3, x_79); +lean_ctor_set(x_84, 4, x_36); +lean_ctor_set(x_84, 5, x_80); +lean_ctor_set(x_84, 6, x_81); +x_85 = lean_st_ref_set(x_54, x_84, x_64); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_box(0); +x_88 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_82, x_1, x_87, x_52, x_54, x_86); +lean_dec(x_54); +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_11 = x_89; +x_12 = x_90; goto block_26; } } else { -uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_89 = l_Lean_Environment_Replay_throwKernelException___closed__20; -x_90 = lean_box(0); -x_91 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_89, x_1, x_90, x_50, x_52, x_56); -lean_dec(x_52); -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_11 = x_92; -x_12 = x_93; +uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_91 = l_Lean_Environment_Replay_throwKernelException___closed__21; +x_92 = lean_box(0); +x_93 = l_Lean_Environment_Replay_throwKernelException___lambda__1(x_27, x_91, x_1, x_92, x_52, x_54, x_58); +lean_dec(x_54); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_11 = x_94; +x_12 = x_95; goto block_26; } } @@ -6195,6 +6217,8 @@ lean_mark_persistent(l_Lean_Environment_Replay_throwKernelException___closed__18 l_Lean_Environment_Replay_throwKernelException___closed__19 = _init_l_Lean_Environment_Replay_throwKernelException___closed__19(); lean_mark_persistent(l_Lean_Environment_Replay_throwKernelException___closed__19); l_Lean_Environment_Replay_throwKernelException___closed__20 = _init_l_Lean_Environment_Replay_throwKernelException___closed__20(); +lean_mark_persistent(l_Lean_Environment_Replay_throwKernelException___closed__20); +l_Lean_Environment_Replay_throwKernelException___closed__21 = _init_l_Lean_Environment_Replay_throwKernelException___closed__21(); l_panic___at_Lean_Environment_Replay_replayConstant___spec__1___closed__1 = _init_l_panic___at_Lean_Environment_Replay_replayConstant___spec__1___closed__1(); lean_mark_persistent(l_panic___at_Lean_Environment_Replay_replayConstant___spec__1___closed__1); l_panic___at_Lean_Environment_Replay_replayConstant___spec__1___closed__2 = _init_l_panic___at_Lean_Environment_Replay_replayConstant___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/ReservedNameAction.c b/stage0/stdlib/Lean/ReservedNameAction.c index 95b21370b1..3943c4c26a 100644 --- a/stage0/stdlib/Lean/ReservedNameAction.c +++ b/stage0/stdlib/Lean/ReservedNameAction.c @@ -21,13 +21,15 @@ static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed_ static lean_object* l_Lean_executeReservedNameAction___closed__1; static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_realizeGlobalConstNoOverload___spec__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_executeReservedNameAction___spec__1___closed__2; +static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4; static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_realizeGlobalConstNoOverload___spec__1___closed__3; +uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_realizeGlobalConstCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1___closed__1; +static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_executeReservedNameAction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_realizeGlobalConst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -38,7 +40,10 @@ lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*); static lean_object* l_panic___at_Lean_realizeGlobalConstNoOverload___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_realizeGlobalConstCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); +static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2; +static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_ReservedNameAction___hyg_10_(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_realizeGlobalConst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initializing(lean_object*); @@ -61,6 +66,7 @@ static lean_object* l_Lean_registerReservedNameAction___lambda__1___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_realizeGlobalName___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ensureNonAmbiguous___at_Lean_realizeGlobalConstNoOverload___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,6 +79,7 @@ uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerReservedNameAction___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2(lean_object*); extern lean_object* l_Std_Format_defWidth; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); @@ -80,12 +87,15 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_realizeGlobalConstNoOverl lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_realizeGlobalConstCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_realizeGlobalConst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_realizeGlobalConstNoOverload___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_realizeGlobalConstCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_realizeGlobalConstCore___spec__2___closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_executeReservedNameAction___spec__1___closed__1; lean_object* l_List_filterMap___at_Lean_preprocessSyntaxAndResolve___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_realizeGlobalConstCore(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___boxed(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_ReservedNameAction___hyg_10____closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_realizeGlobalConstNoOverloadCore___spec__2(lean_object*, lean_object*, lean_object*); @@ -116,6 +126,7 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* lean_expr_dbg_to_string(lean_object*); LEAN_EXPORT lean_object* l_Lean_realizeGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_log___at_Lean_realizeGlobalName___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___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_Lean_throwUnknownConstant___at_Lean_realizeGlobalConstCore___spec__2___closed__2; uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_realizeGlobalConstNoOverloadCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -123,6 +134,7 @@ LEAN_EXPORT lean_object* l_Lean_registerReservedNameAction___lambda__1(lean_obje LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_realizeGlobalConstCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterTR_loop___at_Lean_filterFieldList___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_registerReservedNameAction___closed__2; +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); static lean_object* l_Lean_ensureNoOverload___at_Lean_realizeGlobalConstNoOverloadCore___spec__1___closed__2; static lean_object* _init_l_Lean_initFn____x40_Lean_ReservedNameAction___hyg_10____closed__1() { _start: @@ -588,7 +600,7 @@ return x_18; } } } -static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1() { +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -596,6 +608,224 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___boxed), 1, 0); +return x_1; +} +} static lean_object* _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2() { _start: { @@ -607,1304 +837,780 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_373; uint8_t x_374; -x_373 = 2; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +lean_object* x_7; uint8_t x_182; uint8_t x_183; +x_182 = 2; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_7 = x_375; -goto block_372; +lean_object* x_184; +x_184 = lean_box(0); +x_7 = x_184; +goto block_181; } else { -lean_object* x_376; uint8_t x_377; +lean_object* x_185; uint8_t x_186; lean_inc(x_2); -x_376 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_377 = lean_unbox(x_376); -lean_dec(x_376); -if (x_377 == 0) +x_185 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_186 = lean_unbox(x_185); +lean_dec(x_185); +if (x_186 == 0) { -lean_object* x_378; -x_378 = lean_box(0); -x_7 = x_378; -goto block_372; +lean_object* x_187; +x_187 = lean_box(0); +x_7 = x_187; +goto block_181; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_188; lean_object* x_189; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_379 = lean_box(0); -x_380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_6); -return x_380; +lean_dec(x_1); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_6); +return x_189; } } -block_372: +block_181: { -uint8_t x_8; lean_object* x_366; uint8_t x_367; uint8_t x_368; +uint8_t x_8; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_dec(x_7); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = 1; -x_368 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_367); -if (x_368 == 0) +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = 1; +x_177 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_176); +if (x_177 == 0) { -lean_dec(x_366); +lean_dec(x_175); x_8 = x_3; -goto block_365; +goto block_174; } else { -lean_object* x_369; uint8_t x_370; -x_369 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2; -x_370 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_366, x_369); -lean_dec(x_366); -if (x_370 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2; +x_179 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_178); +lean_dec(x_175); +if (x_179 == 0) { x_8 = x_3; -goto block_365; +goto block_174; } else { -uint8_t x_371; -x_371 = 2; -x_8 = x_371; -goto block_365; +uint8_t x_180; +x_180 = 2; +x_8 = x_180; +goto block_174; } } -block_365: +block_174: { -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; lean_object* x_17; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 6); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 7); -lean_inc(x_13); -x_14 = l_Lean_replaceRef(x_1, x_11); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_13 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +lean_dec(x_1); +x_14 = 0; +x_15 = l_Lean_Syntax_getPos_x3f(x_13, x_14); +x_16 = l_Lean_Syntax_getTailPos_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ if (lean_obj_tag(x_16) == 0) { -if (lean_obj_tag(x_17) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_10, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +if (x_12 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_box(0); +x_25 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_19, x_9, x_22, x_23, x_8, x_24, x_4, x_5, x_20); +lean_dec(x_5); lean_dec(x_4); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +return x_25; +} +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; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_10, x_22); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 0, x_12); -x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_20); +lean_object* x_26; uint8_t x_27; x_26 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_27 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_23); -lean_ctor_set(x_27, 2, x_24); -lean_ctor_set(x_27, 3, x_26); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_8); -x_28 = lean_st_ref_take(x_5, x_21); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +lean_inc(x_19); +x_27 = l_Lean_MessageData_hasTag(x_26, x_19); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 5); -x_33 = l_Lean_PersistentArray_push___rarg(x_32, x_27); -lean_ctor_set(x_29, 5, x_33); -x_34 = lean_st_ref_set(x_5, x_29, x_30); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +lean_object* x_28; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_28 = lean_box(0); +lean_ctor_set(x_17, 0, x_28); +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_17); +x_29 = lean_box(0); +x_30 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_19, x_9, x_22, x_23, x_8, x_29, x_4, x_5, x_20); +lean_dec(x_5); +lean_dec(x_4); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_FileMap_toPosition(x_10, x_33); +lean_inc(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +if (x_12 == 0) { 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(x_34, 0, x_37); -return x_34; +x_36 = lean_box(0); +x_37 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_31, x_9, x_34, x_35, x_8, x_36, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_37; } else { -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_object* x_38; uint8_t x_39; +x_38 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_31); +x_39 = l_Lean_MessageData_hasTag(x_38, x_31); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_35); lean_dec(x_34); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_31); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_31, x_9, x_34, x_35, x_8, x_42, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_43; +} +} } } else { -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; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 2); -x_44 = lean_ctor_get(x_29, 3); -x_45 = lean_ctor_get(x_29, 4); -x_46 = lean_ctor_get(x_29, 5); -x_47 = lean_ctor_get(x_29, 6); -lean_inc(x_47); -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_dec(x_29); -x_48 = l_Lean_PersistentArray_push___rarg(x_46, x_27); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_43); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_47); -x_50 = lean_st_ref_set(x_5, x_49, x_30); -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); -} +uint8_t x_44; +x_44 = !lean_is_exclusive(x_16); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +x_50 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_51 = l_Lean_FileMap_toPosition(x_10, x_50); +x_52 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_52); +if (x_12 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_free_object(x_46); x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); +x_54 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_48, x_9, x_51, x_16, x_8, x_53, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); return x_54; } -} 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_55 = lean_ctor_get(x_18, 0); -x_56 = lean_ctor_get(x_18, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_18); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Lean_FileMap_toPosition(x_10, x_57); -lean_inc(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_13); -x_61 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -x_62 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_63 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_59); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_63, sizeof(void*)*5 + 1, x_8); -x_64 = lean_st_ref_take(x_5, x_56); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_65, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_65, 4); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 6); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - lean_ctor_release(x_65, 2); - lean_ctor_release(x_65, 3); - lean_ctor_release(x_65, 4); - lean_ctor_release(x_65, 5); - lean_ctor_release(x_65, 6); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -x_75 = l_Lean_PersistentArray_push___rarg(x_72, x_63); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 7, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set(x_76, 1, x_68); -lean_ctor_set(x_76, 2, x_69); -lean_ctor_set(x_76, 3, x_70); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_73); -x_77 = lean_st_ref_set(x_5, x_76, x_66); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; -} else { - lean_dec_ref(x_77); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -} -else +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_48); +x_56 = l_Lean_MessageData_hasTag(x_55, x_48); +if (x_56 == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_17); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_17, 0); -x_84 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_57; +lean_dec(x_16); +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_84); +x_57 = lean_box(0); +lean_ctor_set(x_46, 0, x_57); +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_free_object(x_46); +x_58 = lean_box(0); +x_59 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_48, x_9, x_51, x_16, x_8, x_58, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_63 = l_Lean_FileMap_toPosition(x_10, x_62); +x_64 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_64); +if (x_12 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_60, x_9, x_63, x_16, x_8, x_65, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_60); +x_68 = l_Lean_MessageData_hasTag(x_67, x_60); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_61); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_60, x_9, x_63, x_16, x_8, x_71, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_72; +} +} +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_16, 0); +lean_inc(x_73); +lean_dec(x_16); +x_74 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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_unsigned_to_nat(0u); +lean_inc(x_10); +x_79 = l_Lean_FileMap_toPosition(x_10, x_78); +x_80 = l_Lean_FileMap_toPosition(x_10, x_73); +lean_dec(x_73); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (x_12 == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_75, x_9, x_79, x_81, x_8, x_82, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_83; +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_75); +x_85 = l_Lean_MessageData_hasTag(x_84, x_75); if (x_85 == 0) { -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; uint8_t x_97; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -x_88 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_89 = l_Lean_FileMap_toPosition(x_10, x_88); -x_90 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_90); -lean_ctor_set(x_84, 1, x_13); -lean_ctor_set(x_84, 0, x_12); -x_91 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_86); -x_92 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_9); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_17); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_8); -x_94 = lean_st_ref_take(x_5, x_87); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_86 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_77; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_76); +return x_87; +} +else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_98 = lean_ctor_get(x_95, 5); -x_99 = l_Lean_PersistentArray_push___rarg(x_98, x_93); -lean_ctor_set(x_95, 5, x_99); -x_100 = lean_st_ref_set(x_5, x_95, x_96); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_77); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_75, x_9, x_79, x_81, x_8, x_88, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_89; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_15); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_15, 0); +x_92 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_96); +lean_ctor_set(x_15, 0, x_96); +if (x_12 == 0) +{ +lean_object* x_97; lean_object* x_98; +lean_free_object(x_92); +x_97 = lean_box(0); +x_98 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_94, x_9, x_96, x_15, x_8, x_97, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_98; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_94); +x_100 = l_Lean_MessageData_hasTag(x_99, x_94); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_15); +lean_dec(x_96); +lean_dec(x_94); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_101 = lean_box(0); +lean_ctor_set(x_92, 0, x_101); +return x_92; +} +else { lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = lean_box(0); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_free_object(x_92); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_94, x_9, x_96, x_15, x_8, x_102, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_103; +} +} } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 1); +x_104 = lean_ctor_get(x_92, 0); +x_105 = lean_ctor_get(x_92, 1); +lean_inc(x_105); lean_inc(x_104); -lean_dec(x_100); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_dec(x_92); +x_106 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_106); +lean_ctor_set(x_15, 0, x_106); +if (x_12 == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_104, x_9, x_106, x_15, x_8, x_107, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_104); +x_110 = l_Lean_MessageData_hasTag(x_109, x_104); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_15); +lean_dec(x_106); +lean_dec(x_104); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_104, x_9, x_106, x_15, x_8, x_113, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_114; +} +} } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -x_109 = lean_ctor_get(x_95, 2); -x_110 = lean_ctor_get(x_95, 3); -x_111 = lean_ctor_get(x_95, 4); -x_112 = lean_ctor_get(x_95, 5); -x_113 = lean_ctor_get(x_95, 6); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_114 = l_Lean_PersistentArray_push___rarg(x_112, x_93); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_107); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_111); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_113); -x_116 = lean_st_ref_set(x_5, x_115, x_96); -x_117 = lean_ctor_get(x_116, 1); +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_115 = lean_ctor_get(x_15, 0); +lean_inc(x_115); +lean_dec(x_15); +x_116 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); if (lean_is_exclusive(x_116)) { lean_ctor_release(x_116, 0); lean_ctor_release(x_116, 1); - x_118 = x_116; + x_119 = x_116; } else { lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; + x_119 = lean_box(0); } +x_120 = l_Lean_FileMap_toPosition(x_10, x_115); +lean_dec(x_115); +lean_inc(x_120); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (x_12 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_117, x_9, x_120, x_121, x_8, x_122, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_123; } 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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_121 = lean_ctor_get(x_84, 0); -x_122 = lean_ctor_get(x_84, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_84); -x_123 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_124 = l_Lean_FileMap_toPosition(x_10, x_123); -x_125 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_12); -lean_ctor_set(x_126, 1, x_13); -x_127 = lean_alloc_ctor(3, 2, 0); +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_117); +x_125 = l_Lean_MessageData_hasTag(x_124, x_117); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_117); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_126 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_119; +} lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_129 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_129, 0, x_9); -lean_ctor_set(x_129, 1, x_124); -lean_ctor_set(x_129, 2, x_17); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_8); -x_130 = lean_st_ref_take(x_5, x_122); -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_ctor_set(x_127, 1, x_118); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_119); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_117, x_9, x_120, x_121, x_8, x_128, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_129; +} +} +} +} +else +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_15, 0); +lean_inc(x_130); +lean_dec(x_15); +x_131 = !lean_is_exclusive(x_16); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_16, 0); +x_133 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_10); +x_137 = l_Lean_FileMap_toPosition(x_10, x_130); lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_138 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_138); +if (x_12 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_free_object(x_133); +x_139 = lean_box(0); +x_140 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_135, x_9, x_137, x_16, x_8, x_139, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_140; +} +else +{ +lean_object* x_141; uint8_t x_142; +x_141 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 4); -lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 5); -lean_inc(x_138); -x_139 = lean_ctor_get(x_131, 6); -lean_inc(x_139); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - lean_ctor_release(x_131, 4); - lean_ctor_release(x_131, 5); - lean_ctor_release(x_131, 6); - x_140 = x_131; -} else { - lean_dec_ref(x_131); - x_140 = lean_box(0); +x_142 = l_Lean_MessageData_hasTag(x_141, x_135); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_16); +lean_dec(x_137); +lean_dec(x_135); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_143 = lean_box(0); +lean_ctor_set(x_133, 0, x_143); +return x_133; } -x_141 = l_Lean_PersistentArray_push___rarg(x_138, x_129); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 7, 0); -} else { - x_142 = x_140; +else +{ +lean_object* x_144; lean_object* x_145; +lean_free_object(x_133); +x_144 = lean_box(0); +x_145 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_135, x_9, x_137, x_16, x_8, x_144, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_145; } -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_134); -lean_ctor_set(x_142, 2, x_135); -lean_ctor_set(x_142, 3, x_136); -lean_ctor_set(x_142, 4, x_137); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_139); -x_143 = lean_st_ref_set(x_5, x_142, x_132); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; -} else { - lean_dec_ref(x_143); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_148 = lean_ctor_get(x_17, 0); -lean_inc(x_148); -lean_dec(x_17); -x_149 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = lean_unsigned_to_nat(0u); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); lean_inc(x_10); -x_154 = l_Lean_FileMap_toPosition(x_10, x_153); -x_155 = l_Lean_FileMap_toPosition(x_10, x_148); +x_148 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_149 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_149); +if (x_12 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_146, x_9, x_148, x_16, x_8, x_150, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_151; +} +else +{ +lean_object* x_152; uint8_t x_153; +x_152 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_146); +x_153 = l_Lean_MessageData_hasTag(x_152, x_146); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_16); lean_dec(x_148); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_155); -if (lean_is_scalar(x_152)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_152; +lean_dec(x_146); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_147); +return x_155; } -lean_ctor_set(x_157, 0, x_12); -lean_ctor_set(x_157, 1, x_13); -x_158 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_150); -x_159 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_160 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_160, 0, x_9); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_159); -lean_ctor_set(x_160, 4, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_160, sizeof(void*)*5 + 1, x_8); -x_161 = lean_st_ref_take(x_5, x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -x_166 = lean_ctor_get(x_162, 2); -lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); -lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 6); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - lean_ctor_release(x_162, 6); +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_146, x_9, x_148, x_16, x_8, x_156, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_157; +} +} +} +} +else +{ +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; +x_158 = lean_ctor_get(x_16, 0); +lean_inc(x_158); +lean_dec(x_16); +x_159 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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); +} +lean_inc(x_10); +x_163 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_164 = l_Lean_FileMap_toPosition(x_10, x_158); +lean_dec(x_158); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +if (x_12 == 0) +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_162); +x_166 = lean_box(0); +x_167 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_160, x_9, x_163, x_165, x_8, x_166, x_4, x_5, x_161); +lean_dec(x_5); +lean_dec(x_4); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +lean_inc(x_160); +x_169 = l_Lean_MessageData_hasTag(x_168, x_160); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_165); +lean_dec(x_163); +lean_dec(x_160); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_170 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_push___rarg(x_169, x_160); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 7, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_164); -lean_ctor_set(x_173, 1, x_165); -lean_ctor_set(x_173, 2, x_166); -lean_ctor_set(x_173, 3, x_167); -lean_ctor_set(x_173, 4, x_168); -lean_ctor_set(x_173, 5, x_172); -lean_ctor_set(x_173, 6, x_170); -x_174 = lean_st_ref_set(x_5, x_173, x_163); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -x_177 = lean_box(0); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} } +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_161); +return x_171; } else { -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_179; -x_179 = !lean_is_exclusive(x_16); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = lean_ctor_get(x_16, 0); -x_181 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_160, x_9, x_163, x_165, x_8, x_172, x_4, x_5, x_161); +lean_dec(x_5); lean_dec(x_4); -x_182 = !lean_is_exclusive(x_181); -if (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_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -x_185 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_185); -lean_ctor_set(x_16, 0, x_185); -lean_ctor_set(x_181, 1, x_13); -lean_ctor_set(x_181, 0, x_12); -x_186 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_183); -x_187 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_188 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_188, 0, x_9); -lean_ctor_set(x_188, 1, x_185); -lean_ctor_set(x_188, 2, x_16); -lean_ctor_set(x_188, 3, x_187); -lean_ctor_set(x_188, 4, x_186); -lean_ctor_set_uint8(x_188, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_188, sizeof(void*)*5 + 1, x_8); -x_189 = lean_st_ref_take(x_5, x_184); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_193 = lean_ctor_get(x_190, 5); -x_194 = l_Lean_PersistentArray_push___rarg(x_193, x_188); -lean_ctor_set(x_190, 5, x_194); -x_195 = lean_st_ref_set(x_5, x_190, x_191); -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -lean_dec(x_197); -x_198 = lean_box(0); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -lean_dec(x_195); -x_200 = lean_box(0); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -return x_201; +return x_173; } } -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_202 = lean_ctor_get(x_190, 0); -x_203 = lean_ctor_get(x_190, 1); -x_204 = lean_ctor_get(x_190, 2); -x_205 = lean_ctor_get(x_190, 3); -x_206 = lean_ctor_get(x_190, 4); -x_207 = lean_ctor_get(x_190, 5); -x_208 = lean_ctor_get(x_190, 6); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_190); -x_209 = l_Lean_PersistentArray_push___rarg(x_207, x_188); -x_210 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_205); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_209); -lean_ctor_set(x_210, 6, x_208); -x_211 = lean_st_ref_set(x_5, x_210, x_191); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_216 = lean_ctor_get(x_181, 0); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_181); -x_218 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_218); -lean_ctor_set(x_16, 0, x_218); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_12); -lean_ctor_set(x_219, 1, x_13); -x_220 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -x_221 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_222 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_222, 0, x_9); -lean_ctor_set(x_222, 1, x_218); -lean_ctor_set(x_222, 2, x_16); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set(x_222, 4, x_220); -lean_ctor_set_uint8(x_222, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_222, sizeof(void*)*5 + 1, x_8); -x_223 = lean_st_ref_take(x_5, x_217); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_224, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_224, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_224, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_224, 6); -lean_inc(x_232); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - lean_ctor_release(x_224, 5); - lean_ctor_release(x_224, 6); - x_233 = x_224; -} else { - lean_dec_ref(x_224); - x_233 = lean_box(0); -} -x_234 = l_Lean_PersistentArray_push___rarg(x_231, x_222); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(0, 7, 0); -} else { - x_235 = x_233; -} -lean_ctor_set(x_235, 0, x_226); -lean_ctor_set(x_235, 1, x_227); -lean_ctor_set(x_235, 2, x_228); -lean_ctor_set(x_235, 3, x_229); -lean_ctor_set(x_235, 4, x_230); -lean_ctor_set(x_235, 5, x_234); -lean_ctor_set(x_235, 6, x_232); -x_236 = lean_st_ref_set(x_5, x_235, x_225); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; -} else { - lean_dec_ref(x_236); - x_238 = lean_box(0); -} -x_239 = lean_box(0); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_238; -} -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_237); -return x_240; -} -} -else -{ -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_241 = lean_ctor_get(x_16, 0); -lean_inc(x_241); -lean_dec(x_16); -x_242 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_245 = x_242; -} else { - lean_dec_ref(x_242); - x_245 = lean_box(0); -} -x_246 = l_Lean_FileMap_toPosition(x_10, x_241); -lean_dec(x_241); -lean_inc(x_246); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -if (lean_is_scalar(x_245)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_245; -} -lean_ctor_set(x_248, 0, x_12); -lean_ctor_set(x_248, 1, x_13); -x_249 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_243); -x_250 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_251 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_251, 0, x_9); -lean_ctor_set(x_251, 1, x_246); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_250); -lean_ctor_set(x_251, 4, x_249); -lean_ctor_set_uint8(x_251, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_251, sizeof(void*)*5 + 1, x_8); -x_252 = lean_st_ref_take(x_5, x_244); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = lean_ctor_get(x_253, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_253, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_253, 2); -lean_inc(x_257); -x_258 = lean_ctor_get(x_253, 3); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 4); -lean_inc(x_259); -x_260 = lean_ctor_get(x_253, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_253, 6); -lean_inc(x_261); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - lean_ctor_release(x_253, 5); - lean_ctor_release(x_253, 6); - x_262 = x_253; -} else { - lean_dec_ref(x_253); - x_262 = lean_box(0); -} -x_263 = l_Lean_PersistentArray_push___rarg(x_260, x_251); -if (lean_is_scalar(x_262)) { - x_264 = lean_alloc_ctor(0, 7, 0); -} else { - x_264 = x_262; -} -lean_ctor_set(x_264, 0, x_255); -lean_ctor_set(x_264, 1, x_256); -lean_ctor_set(x_264, 2, x_257); -lean_ctor_set(x_264, 3, x_258); -lean_ctor_set(x_264, 4, x_259); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_261); -x_265 = lean_st_ref_set(x_5, x_264, x_254); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -} -else -{ -lean_object* x_270; uint8_t x_271; -x_270 = lean_ctor_get(x_16, 0); -lean_inc(x_270); -lean_dec(x_16); -x_271 = !lean_is_exclusive(x_17); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_17, 0); -x_273 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_274 = !lean_is_exclusive(x_273); -if (x_274 == 0) -{ -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; uint8_t x_285; -x_275 = lean_ctor_get(x_273, 0); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_10); -x_277 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_278 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_278); -lean_ctor_set(x_273, 1, x_13); -lean_ctor_set(x_273, 0, x_12); -x_279 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_279, 0, x_273); -lean_ctor_set(x_279, 1, x_275); -x_280 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_281 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_281, 0, x_9); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_17); -lean_ctor_set(x_281, 3, x_280); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set_uint8(x_281, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_281, sizeof(void*)*5 + 1, x_8); -x_282 = lean_st_ref_take(x_5, x_276); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = !lean_is_exclusive(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_286 = lean_ctor_get(x_283, 5); -x_287 = l_Lean_PersistentArray_push___rarg(x_286, x_281); -lean_ctor_set(x_283, 5, x_287); -x_288 = lean_st_ref_set(x_5, x_283, x_284); -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -lean_dec(x_290); -x_291 = lean_box(0); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 1); -lean_inc(x_292); -lean_dec(x_288); -x_293 = lean_box(0); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_295 = lean_ctor_get(x_283, 0); -x_296 = lean_ctor_get(x_283, 1); -x_297 = lean_ctor_get(x_283, 2); -x_298 = lean_ctor_get(x_283, 3); -x_299 = lean_ctor_get(x_283, 4); -x_300 = lean_ctor_get(x_283, 5); -x_301 = lean_ctor_get(x_283, 6); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_283); -x_302 = l_Lean_PersistentArray_push___rarg(x_300, x_281); -x_303 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_303, 0, x_295); -lean_ctor_set(x_303, 1, x_296); -lean_ctor_set(x_303, 2, x_297); -lean_ctor_set(x_303, 3, x_298); -lean_ctor_set(x_303, 4, x_299); -lean_ctor_set(x_303, 5, x_302); -lean_ctor_set(x_303, 6, x_301); -x_304 = lean_st_ref_set(x_5, x_303, x_284); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_306 = x_304; -} else { - lean_dec_ref(x_304); - x_306 = lean_box(0); -} -x_307 = lean_box(0); -if (lean_is_scalar(x_306)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_306; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -else -{ -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; 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; -x_309 = lean_ctor_get(x_273, 0); -x_310 = lean_ctor_get(x_273, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_273); -lean_inc(x_10); -x_311 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_312 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_312); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_12); -lean_ctor_set(x_313, 1, x_13); -x_314 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_309); -x_315 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_316 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_316, 0, x_9); -lean_ctor_set(x_316, 1, x_311); -lean_ctor_set(x_316, 2, x_17); -lean_ctor_set(x_316, 3, x_315); -lean_ctor_set(x_316, 4, x_314); -lean_ctor_set_uint8(x_316, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_316, sizeof(void*)*5 + 1, x_8); -x_317 = lean_st_ref_take(x_5, x_310); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = lean_ctor_get(x_318, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_318, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_318, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_318, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_318, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_318, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_318, 6); -lean_inc(x_326); -if (lean_is_exclusive(x_318)) { - lean_ctor_release(x_318, 0); - lean_ctor_release(x_318, 1); - lean_ctor_release(x_318, 2); - lean_ctor_release(x_318, 3); - lean_ctor_release(x_318, 4); - lean_ctor_release(x_318, 5); - lean_ctor_release(x_318, 6); - x_327 = x_318; -} else { - lean_dec_ref(x_318); - x_327 = lean_box(0); -} -x_328 = l_Lean_PersistentArray_push___rarg(x_325, x_316); -if (lean_is_scalar(x_327)) { - x_329 = lean_alloc_ctor(0, 7, 0); -} else { - x_329 = x_327; -} -lean_ctor_set(x_329, 0, x_320); -lean_ctor_set(x_329, 1, x_321); -lean_ctor_set(x_329, 2, x_322); -lean_ctor_set(x_329, 3, x_323); -lean_ctor_set(x_329, 4, x_324); -lean_ctor_set(x_329, 5, x_328); -lean_ctor_set(x_329, 6, x_326); -x_330 = lean_st_ref_set(x_5, x_329, x_319); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_332 = x_330; -} else { - lean_dec_ref(x_330); - x_332 = lean_box(0); -} -x_333 = lean_box(0); -if (lean_is_scalar(x_332)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_332; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_331); -return x_334; -} -} -else -{ -lean_object* x_335; 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; 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_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; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_335 = lean_ctor_get(x_17, 0); -lean_inc(x_335); -lean_dec(x_17); -x_336 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; -} else { - lean_dec_ref(x_336); - x_339 = lean_box(0); -} -lean_inc(x_10); -x_340 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_341 = l_Lean_FileMap_toPosition(x_10, x_335); -lean_dec(x_335); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_12); -lean_ctor_set(x_343, 1, x_13); -x_344 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_337); -x_345 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; -x_346 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_346, 0, x_9); -lean_ctor_set(x_346, 1, x_340); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_345); -lean_ctor_set(x_346, 4, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_346, sizeof(void*)*5 + 1, x_8); -x_347 = lean_st_ref_take(x_5, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get(x_348, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_348, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 2); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -x_355 = lean_ctor_get(x_348, 5); -lean_inc(x_355); -x_356 = lean_ctor_get(x_348, 6); -lean_inc(x_356); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - x_357 = x_348; -} else { - lean_dec_ref(x_348); - x_357 = lean_box(0); -} -x_358 = l_Lean_PersistentArray_push___rarg(x_355, x_346); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 7, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_350); -lean_ctor_set(x_359, 1, x_351); -lean_ctor_set(x_359, 2, x_352); -lean_ctor_set(x_359, 3, x_353); -lean_ctor_set(x_359, 4, x_354); -lean_ctor_set(x_359, 5, x_358); -lean_ctor_set(x_359, 6, x_356); -x_360 = lean_st_ref_set(x_5, x_359, x_349); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_362 = x_360; -} else { - lean_dec_ref(x_360); - x_362 = lean_box(0); -} -x_363 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -return x_364; } } } @@ -1919,8 +1625,6 @@ lean_object* x_6; lean_object* x_7; x_6 = lean_ctor_get(x_3, 5); lean_inc(x_6); x_7 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3(x_6, x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_6); return x_7; } } @@ -2002,22 +1706,26 @@ if (x_29 == 0) lean_object* x_30; lean_object* x_31; uint8_t x_32; x_30 = lean_ctor_get(x_22, 0); x_31 = lean_ctor_get(x_22, 1); -x_32 = l_Lean_Exception_isRuntime(x_30); +x_32 = l_Lean_Exception_isInterrupt(x_30); if (x_32 == 0) { -lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +uint8_t x_33; +x_33 = l_Lean_Exception_isRuntime(x_30); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_free_object(x_22); -x_33 = l_Lean_Exception_toMessageData(x_30); -x_34 = 2; +x_34 = l_Lean_Exception_toMessageData(x_30); +x_35 = 2; lean_inc(x_4); lean_inc(x_3); -x_35 = l_Lean_log___at_Lean_realizeGlobalName___spec__2(x_33, x_34, x_3, x_4, x_31); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = 0; -x_10 = x_37; -x_11 = x_36; +x_36 = l_Lean_log___at_Lean_realizeGlobalName___spec__2(x_34, x_35, x_3, x_4, x_31); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = 0; +x_10 = x_38; +x_11 = x_37; goto block_15; } else @@ -2033,52 +1741,82 @@ return x_22; } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_22, 0); -x_39 = lean_ctor_get(x_22, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_22); -x_40 = l_Lean_Exception_isRuntime(x_38); -if (x_40 == 0) -{ -lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_41 = l_Lean_Exception_toMessageData(x_38); -x_42 = 2; -lean_inc(x_4); -lean_inc(x_3); -x_43 = l_Lean_log___at_Lean_realizeGlobalName___spec__2(x_41, x_42, x_3, x_4, x_39); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = 0; -x_10 = x_45; -x_11 = x_44; -goto block_15; -} -else -{ -lean_object* x_46; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_38); -lean_ctor_set(x_46, 1, x_39); -return x_46; +return x_22; +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_22, 0); +x_40 = lean_ctor_get(x_22, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_22); +x_41 = l_Lean_Exception_isInterrupt(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Exception_isRuntime(x_39); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_43 = l_Lean_Exception_toMessageData(x_39); +x_44 = 2; +lean_inc(x_4); +lean_inc(x_3); +x_45 = l_Lean_log___at_Lean_realizeGlobalName___spec__2(x_43, x_44, x_3, x_4, x_40); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = 0; +x_10 = x_47; +x_11 = x_46; +goto block_15; +} +else +{ +lean_object* x_48; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_40); +return x_48; +} +} +else +{ +lean_object* x_49; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_39); +lean_ctor_set(x_49, 1, x_40); +return x_49; } } } } else { -uint8_t x_47; +uint8_t x_50; lean_dec(x_16); -x_47 = 1; -x_10 = x_47; +x_50 = 1; +x_10 = x_50; x_11 = x_19; goto block_15; } @@ -2184,6 +1922,29 @@ lean_dec(x_3); return x_5; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___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_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_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_realizeGlobalName___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) { _start: { @@ -2191,8 +1952,6 @@ uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); x_8 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_1); return x_8; } } @@ -2606,7 +2365,7 @@ x_14 = l_List_toString___at_Lean_ensureNoOverload___spec__2(x_13); lean_dec(x_13); x_15 = lean_string_append(x_12, x_14); lean_dec(x_14); -x_16 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +x_16 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1; x_17 = lean_string_append(x_15, x_16); x_18 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_18, 0, x_17); @@ -2667,7 +2426,7 @@ x_34 = l_List_toString___at_Lean_ensureNoOverload___spec__2(x_33); lean_dec(x_33); x_35 = lean_string_append(x_32, x_34); lean_dec(x_34); -x_36 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +x_36 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1; x_37 = lean_string_append(x_35, x_36); x_38 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_38, 0, x_37); @@ -2794,7 +2553,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -2806,7 +2565,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -2819,26 +2581,28 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); lean_dec(x_1); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_realizeGlobalConst___spec__3(x_2, x_23, x_4, x_5); +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_realizeGlobalConst___spec__3(x_2, x_25, x_4, x_5); lean_dec(x_4); -lean_dec(x_23); -return x_24; +lean_dec(x_25); +return x_26; } } } @@ -2912,7 +2676,7 @@ return x_14; } else { -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; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_15 = lean_ctor_get(x_3, 0); x_16 = lean_ctor_get(x_3, 1); x_17 = lean_ctor_get(x_3, 2); @@ -2924,7 +2688,10 @@ x_22 = lean_ctor_get(x_3, 7); x_23 = lean_ctor_get(x_3, 8); x_24 = lean_ctor_get(x_3, 9); x_25 = lean_ctor_get(x_3, 10); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_27 = lean_ctor_get(x_3, 11); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_27); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -2937,34 +2704,36 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_3); -x_27 = l_Lean_replaceRef(x_1, x_20); +x_29 = l_Lean_replaceRef(x_1, x_20); lean_dec(x_20); lean_dec(x_1); -x_28 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_18); -lean_ctor_set(x_28, 4, x_19); -lean_ctor_set(x_28, 5, x_27); -lean_ctor_set(x_28, 6, x_21); -lean_ctor_set(x_28, 7, x_22); -lean_ctor_set(x_28, 8, x_23); -lean_ctor_set(x_28, 9, x_24); -lean_ctor_set(x_28, 10, x_25); -lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_26); -x_29 = lean_apply_4(x_2, x_6, x_28, x_4, x_5); -return x_29; +x_30 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_16); +lean_ctor_set(x_30, 2, x_17); +lean_ctor_set(x_30, 3, x_18); +lean_ctor_set(x_30, 4, x_19); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_21); +lean_ctor_set(x_30, 7, x_22); +lean_ctor_set(x_30, 8, x_23); +lean_ctor_set(x_30, 9, x_24); +lean_ctor_set(x_30, 10, x_25); +lean_ctor_set(x_30, 11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*12, x_26); +lean_ctor_set_uint8(x_30, sizeof(void*)*12 + 1, x_28); +x_31 = lean_apply_4(x_2, x_6, x_30, x_4, x_5); +return x_31; } } } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_32; lean_object* x_33; lean_dec(x_2); -x_30 = l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1___closed__3; -x_31 = l_Lean_throwErrorAt___at_Lean_realizeGlobalConst___spec__2(x_1, x_30, x_3, x_4, x_5); -return x_31; +x_32 = l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1___closed__3; +x_33 = l_Lean_throwErrorAt___at_Lean_realizeGlobalConst___spec__2(x_1, x_32, x_3, x_4, x_5); +return x_33; } } } @@ -2994,7 +2763,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_10 = lean_ctor_get(x_2, 0); x_11 = lean_ctor_get(x_2, 1); x_12 = lean_ctor_get(x_2, 2); @@ -3006,7 +2775,10 @@ x_17 = lean_ctor_get(x_2, 7); x_18 = lean_ctor_get(x_2, 8); x_19 = lean_ctor_get(x_2, 9); x_20 = lean_ctor_get(x_2, 10); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*12); +x_22 = lean_ctor_get(x_2, 11); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -3019,24 +2791,26 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_2); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_realizeGlobalConst___closed__1; -x_25 = l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1(x_1, x_24, x_23, x_3, x_4); -return x_25; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_realizeGlobalConst___closed__1; +x_27 = l_Lean_preprocessSyntaxAndResolve___at_Lean_realizeGlobalConst___spec__1(x_1, x_26, x_25, x_3, x_4); +return x_27; } } } @@ -3088,7 +2862,7 @@ 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; 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_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; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_10 = lean_ctor_get(x_3, 0); x_11 = lean_ctor_get(x_3, 1); x_12 = lean_ctor_get(x_3, 2); @@ -3100,7 +2874,10 @@ x_17 = lean_ctor_get(x_3, 7); x_18 = lean_ctor_get(x_3, 8); x_19 = lean_ctor_get(x_3, 9); x_20 = lean_ctor_get(x_3, 10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*12); +x_22 = lean_ctor_get(x_3, 11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*12 + 1); +lean_inc(x_22); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -3113,24 +2890,26 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_3); -x_22 = l_Lean_replaceRef(x_1, x_15); +x_24 = l_Lean_replaceRef(x_1, x_15); lean_dec(x_15); -x_23 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -lean_ctor_set(x_23, 3, x_13); -lean_ctor_set(x_23, 4, x_14); -lean_ctor_set(x_23, 5, x_22); -lean_ctor_set(x_23, 6, x_16); -lean_ctor_set(x_23, 7, x_17); -lean_ctor_set(x_23, 8, x_18); -lean_ctor_set(x_23, 9, x_19); -lean_ctor_set(x_23, 10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); -x_24 = l_Lean_throwError___at_Lean_realizeGlobalConstNoOverloadCore___spec__3(x_2, x_23, x_4, x_5); -lean_dec(x_23); -return x_24; +x_25 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_25, 0, x_10); +lean_ctor_set(x_25, 1, x_11); +lean_ctor_set(x_25, 2, x_12); +lean_ctor_set(x_25, 3, x_13); +lean_ctor_set(x_25, 4, x_14); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_16); +lean_ctor_set(x_25, 7, x_17); +lean_ctor_set(x_25, 8, x_18); +lean_ctor_set(x_25, 9, x_19); +lean_ctor_set(x_25, 10, x_20); +lean_ctor_set(x_25, 11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*12, x_21); +lean_ctor_set_uint8(x_25, sizeof(void*)*12 + 1, x_23); +x_26 = l_Lean_throwError___at_Lean_realizeGlobalConstNoOverloadCore___spec__3(x_2, x_25, x_4, x_5); +lean_dec(x_25); +return x_26; } } } @@ -3237,7 +3016,7 @@ x_25 = l_List_toString___at_Lean_ensureNoOverload___spec__2(x_24); lean_dec(x_24); x_26 = lean_string_append(x_22, x_25); lean_dec(x_25); -x_27 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1; +x_27 = l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1; x_28 = lean_string_append(x_26, x_27); x_29 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_29, 0, x_28); @@ -3334,6 +3113,16 @@ l_Array_forInUnsafe_loop___at_Lean_executeReservedNameAction___spec__1___closed_ lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_executeReservedNameAction___spec__1___closed__2); l_Lean_executeReservedNameAction___closed__1 = _init_l_Lean_executeReservedNameAction___closed__1(); lean_mark_persistent(l_Lean_executeReservedNameAction___closed__1); +l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__1___closed__1); +l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__1); +l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__2); +l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__3); +l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___lambda__2___closed__4); l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__1); l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2 = _init_l_Lean_logAt___at_Lean_realizeGlobalName___spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Server/Completion.c b/stage0/stdlib/Lean/Server/Completion.c index 922842fb5d..972365f3fe 100644 --- a/stage0/stdlib/Lean/Server/Completion.c +++ b/stage0/stdlib/Lean/Server/Completion.c @@ -68,6 +68,7 @@ lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at___private_Lean_Server_Completion_0__Lean_Server_Completion_dotIdCompletion___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double lean_float_div(double, double); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_qsort_sort___at___private_Lean_Server_Completion_0__Lean_Server_Completion_sortCompletionItems___spec__2___closed__1; uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); @@ -16396,14 +16397,18 @@ if (x_8 == 0) { lean_object* x_9; uint8_t x_10; x_9 = lean_ctor_get(x_7, 0); -x_10 = l_Lean_Exception_isRuntime(x_9); +x_10 = l_Lean_Exception_isInterrupt(x_9); if (x_10 == 0) { -lean_object* x_11; +uint8_t x_11; +x_11 = l_Lean_Exception_isRuntime(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_dec(x_9); -x_11 = lean_box(0); +x_12 = lean_box(0); lean_ctor_set_tag(x_7, 0); -lean_ctor_set(x_7, 0, x_11); +lean_ctor_set(x_7, 0, x_12); return x_7; } else @@ -16413,30 +16418,48 @@ return x_7; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_7, 0); -x_13 = lean_ctor_get(x_7, 1); +return x_7; +} +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); lean_dec(x_7); -x_14 = l_Lean_Exception_isRuntime(x_12); -if (x_14 == 0) +x_15 = l_Lean_Exception_isInterrupt(x_13); +if (x_15 == 0) { -lean_object* x_15; lean_object* x_16; -lean_dec(x_12); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_13); -return x_16; +uint8_t x_16; +x_16 = l_Lean_Exception_isRuntime(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; } else { -lean_object* x_17; -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_12); -lean_ctor_set(x_17, 1, x_13); -return x_17; +lean_object* x_19; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +return x_19; +} +} +else +{ +lean_object* x_20; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_14); +return x_20; } } } @@ -20798,157 +20821,170 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_16; +lean_object* x_9; lean_object* x_10; lean_object* x_18; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_16 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_16) == 0) +x_18 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_18) == 0) { -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, 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_instantiateMVars___at___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___spec__2(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_18); -x_20 = lean_ctor_get(x_19, 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; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); 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_dec(x_18); +x_21 = l_Lean_instantiateMVars___at___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___spec__2(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_20); +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_is_exclusive(x_22); +if (x_24 == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_20, 0); -x_24 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames(x_23, x_4, x_5, x_6, x_7, x_21); -if (lean_obj_tag(x_24) == 0) +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 0); +x_26 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames(x_25, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_26) == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_26; -x_26 = lean_ctor_get(x_24, 0); -lean_ctor_set(x_20, 0, x_26); -lean_ctor_set(x_24, 0, x_20); -return x_24; +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_22, 0, x_28); +lean_ctor_set(x_26, 0, x_22); +return x_26; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_24, 0); -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_24); -lean_ctor_set(x_20, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_20); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; -lean_free_object(x_20); -x_30 = lean_ctor_get(x_24, 0); +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); -x_31 = lean_ctor_get(x_24, 1); -lean_inc(x_31); -lean_dec(x_24); -x_9 = x_30; -x_10 = x_31; -goto block_15; +lean_inc(x_29); +lean_dec(x_26); +lean_ctor_set(x_22, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } else { lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_20, 0); +lean_free_object(x_22); +x_32 = lean_ctor_get(x_26, 0); lean_inc(x_32); -lean_dec(x_20); -x_33 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames(x_32, x_4, x_5, x_6, x_7, x_21); -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; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_36 = x_33; -} else { - lean_dec_ref(x_33); - x_36 = lean_box(0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +x_9 = x_32; +x_10 = x_33; +goto block_17; } -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, 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); -return x_38; } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_33, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_dec(x_33); -x_9 = x_39; -x_10 = x_40; -goto block_15; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_22, 0); +lean_inc(x_34); +lean_dec(x_22); +x_35 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames(x_34, x_4, x_5, x_6, x_7, x_23); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); } +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_36); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; } +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; } else { lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_35, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_35, 1); +lean_inc(x_42); +lean_dec(x_35); +x_9 = x_41; +x_10 = x_42; +goto block_17; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_41 = lean_ctor_get(x_16, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_16, 1); -lean_inc(x_42); -lean_dec(x_16); -x_9 = x_41; -x_10 = x_42; -goto block_15; +x_43 = lean_ctor_get(x_18, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_18, 1); +lean_inc(x_44); +lean_dec(x_18); +x_9 = x_43; +x_10 = x_44; +goto block_17; } -block_15: +block_17: { uint8_t x_11; -x_11 = l_Lean_Exception_isRuntime(x_9); +x_11 = l_Lean_Exception_isInterrupt(x_9); if (x_11 == 0) { -lean_object* x_12; lean_object* x_13; +uint8_t x_12; +x_12 = l_Lean_Exception_isRuntime(x_9); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_dec(x_9); -x_12 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__7___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_10); -return x_13; +x_13 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__7___closed__1; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; } else { -lean_object* x_14; -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_9); -lean_ctor_set(x_14, 1, x_10); -return x_14; +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_9); +lean_ctor_set(x_15, 1, x_10); +return x_15; +} +} +else +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_10); +return x_16; } } } @@ -21665,15 +21701,19 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_16, 0); x_22 = lean_ctor_get(x_16, 1); -x_23 = l_Lean_Exception_isRuntime(x_21); +x_23 = l_Lean_Exception_isInterrupt(x_21); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; +uint8_t x_24; +x_24 = l_Lean_Exception_isRuntime(x_21); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_free_object(x_16); lean_dec(x_21); -x_24 = lean_box(0); -x_25 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotIdCompletion___lambda__5(x_1, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_22); -return x_25; +x_25 = lean_box(0); +x_26 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotIdCompletion___lambda__5(x_1, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +return x_26; } else { @@ -21689,24 +21729,6 @@ return x_16; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_16, 0); -x_27 = lean_ctor_get(x_16, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_16); -x_28 = l_Lean_Exception_isRuntime(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_26); -x_29 = lean_box(0); -x_30 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotIdCompletion___lambda__5(x_1, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -return x_30; -} -else -{ -lean_object* x_31; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -21714,17 +21736,67 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_26); -lean_ctor_set(x_31, 1, x_27); -return x_31; +return x_16; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = l_Lean_Exception_isInterrupt(x_27); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Lean_Exception_isRuntime(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_27); +x_31 = lean_box(0); +x_32 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotIdCompletion___lambda__5(x_1, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +return x_32; +} +else +{ +lean_object* x_33; +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_1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_28); +return x_33; +} +} +else +{ +lean_object* x_34; +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_1); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_27); +lean_ctor_set(x_34, 1, x_28); +return x_34; } } } } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_35; lean_object* x_36; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); @@ -21733,11 +21805,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_32 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_addItem___closed__1; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_9); -return x_33; +x_35 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_addItem___closed__1; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_9); +return x_36; } } } diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 6356b155a6..4b9e439340 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Server_FileWorker_RpcSession_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updateDocument(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Language_Lean_process(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1771_(lean_object*); lean_object* l_ImportCompletion_collectAvailableImports(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_setupImports___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_288____closed__5; @@ -67,7 +68,6 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini static lean_object* l_Lean_RBNode_foldM___at_Lean_Server_FileWorker_mainLoop___spec__1___closed__6; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__25; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initAndRunWorker___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker_mkLspOutputChannel___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initAndRunWorker_writeError___closed__1; lean_object* lean_io_check_canceled(lean_object*); @@ -104,7 +104,6 @@ static lean_object* l_Lean_Widget_Lean_Lsp_DiagnosticWith_instRpcEncodableDiagno static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__39; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_updateDocument___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_rpcReleaseRef(size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1774_(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__61; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleNotification(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint8_t l_Lean_Server_FileWorker_handleDidChange___closed__2; @@ -205,6 +204,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest(lean_object*, le static lean_object* l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Server_FileWorker_handleStaleDependency___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRpcConnect___rarg(lean_object*, lean_object*); +lean_object* l_IO_CancelToken_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initializeWorker(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_mono_ms_now(lean_object*); lean_object* lean_task_pure(lean_object*); @@ -292,7 +292,6 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); lean_object* l_Lean_Server_DocumentMeta_mkInputContext(lean_object*); static lean_object* l_Lean_Widget_Lean_Lsp_DiagnosticWith_instRpcEncodableDiagnosticWith_enc____x40_Lean_Widget_InteractiveDiagnostic___hyg_1549____at_Lean_Server_FileWorker_handleRequest___spec__4___closed__6; -lean_object* l_Lean_Server_FileWorker_CancelToken_new(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__4; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__48; @@ -318,6 +317,7 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_288____closed__3; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__46; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_sendServerRequest___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageLog_hasUnreported(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleImportCompletionRequest___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__6(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleRequest___closed__8; @@ -475,7 +475,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcConnectParams____x40_Lean_Data_Lsp_Extra___hyg_1629_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_withPrefix(lean_object*, lean_object*); -uint8_t l_Lean_PersistentArray_isEmpty___rarg(lean_object*); lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); lean_object* lean_int_add(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleStaleDependency___rarg___closed__2; @@ -514,6 +513,7 @@ lean_object* lean_int_neg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleGetInteractiveDiagnosticsRequest___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_setupImports___lambda__6___closed__1; +lean_object* l_Lean_MessageLog_toArray(lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__71; uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Server_FileWorker_handleNotification___closed__2; @@ -1806,325 +1806,325 @@ lean_inc(x_8); lean_dec(x_7); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -x_10 = l_Lean_PersistentArray_isEmpty___rarg(x_9); +x_10 = l_Lean_MessageLog_hasUnreported(x_9); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_3); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); +lean_object* x_11; lean_object* x_12; +lean_dec(x_9); lean_dec(x_8); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_64; -x_64 = lean_box(0); -x_12 = x_64; -x_13 = x_5; -goto block_63; +lean_dec(x_6); +x_11 = lean_box(0); +x_12 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__3(x_4, x_3, x_1, x_2, x_11, x_5); +return x_12; } else { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_11, 0); -lean_inc(x_65); -x_66 = lean_st_ref_get(x_65, x_5); -lean_dec(x_65); -if (lean_obj_tag(x_66) == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_3); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_dec(x_8); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_67; -x_67 = lean_ctor_get(x_66, 0); +lean_object* x_66; +x_66 = lean_box(0); +x_14 = x_66; +x_15 = x_5; +goto block_65; +} +else +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_13, 0); lean_inc(x_67); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_box(0); -x_12 = x_69; -x_13 = x_68; -goto block_63; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_66, 1); -lean_inc(x_70); -lean_dec(x_66); -x_71 = lean_ctor_get(x_67, 0); -lean_inc(x_71); +x_68 = lean_st_ref_get(x_67, x_5); lean_dec(x_67); -x_72 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; -x_73 = l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___rarg(x_71, x_72); -lean_dec(x_71); -x_12 = x_73; -x_13 = x_70; -goto block_63; +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_box(0); +x_14 = x_71; +x_15 = x_70; +goto block_65; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_73 = lean_ctor_get(x_69, 0); +lean_inc(x_73); +lean_dec(x_69); +x_74 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +x_75 = l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___rarg(x_73, x_74); +lean_dec(x_73); +x_14 = x_75; +x_15 = x_72; +goto block_65; } } else { -uint8_t x_74; -lean_dec(x_11); +uint8_t x_76; +lean_dec(x_13); lean_dec(x_9); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_66); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_68); +if (x_76 == 0) { -return x_66; +return x_68; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_66, 0); -x_76 = lean_ctor_get(x_66, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_66); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_68, 0); +x_78 = lean_ctor_get(x_68, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_68); +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; } } } -block_63: +block_65: { -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; -x_14 = l_Lean_PersistentArray_toArray___rarg(x_9); -x_15 = lean_array_get_size(x_14); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___spec__2(x_1, x_2, x_16, x_17, x_14, x_13); -if (lean_obj_tag(x_11) == 0) +lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; +x_16 = l_Lean_MessageLog_toArray(x_9); +x_17 = lean_array_get_size(x_16); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_19 = 0; +x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___spec__2(x_1, x_2, x_18, x_19, x_16, x_15); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_19, x_20); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_21, x_22); lean_dec(x_4); -return x_21; +return x_23; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_11); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_13); +if (x_25 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_18, 0); -x_25 = lean_ctor_get(x_18, 1); -x_26 = lean_ctor_get(x_11, 0); -x_27 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; -lean_inc(x_24); -lean_ctor_set(x_18, 1, x_24); -lean_ctor_set(x_18, 0, x_27); -lean_ctor_set(x_11, 0, x_18); -x_28 = lean_st_ref_set(x_26, x_11, x_25); -lean_dec(x_26); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); +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_20, 0); +x_27 = lean_ctor_get(x_20, 1); +x_28 = lean_ctor_get(x_13, 0); +x_29 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_inc(x_26); +lean_ctor_set(x_20, 1, x_26); +lean_ctor_set(x_20, 0, x_29); +lean_ctor_set(x_13, 0, x_20); +x_30 = lean_st_ref_set(x_28, x_13, x_27); lean_dec(x_28); -x_30 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_24, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_26, x_31); lean_dec(x_4); +return x_32; +} +else +{ +uint8_t x_33; +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_30); +if (x_33 == 0) +{ return x_30; } else { -uint8_t x_31; -lean_dec(x_24); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_28); -if (x_31 == 0) -{ -return x_28; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_28, 0); -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_28); -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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_18, 0); -x_36 = lean_ctor_get(x_18, 1); -x_37 = lean_ctor_get(x_11, 0); -lean_inc(x_37); -lean_dec(x_11); -x_38 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_30, 1); lean_inc(x_35); -lean_ctor_set(x_18, 1, x_35); -lean_ctor_set(x_18, 0, x_38); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_18); -x_40 = lean_st_ref_set(x_37, x_39, x_36); -lean_dec(x_37); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_35, x_41); -lean_dec(x_4); -return x_42; +lean_inc(x_34); +lean_dec(x_30); +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_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_35); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_43 = lean_ctor_get(x_40, 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; +x_37 = lean_ctor_get(x_20, 0); +x_38 = lean_ctor_get(x_20, 1); +x_39 = lean_ctor_get(x_13, 0); +lean_inc(x_39); +lean_dec(x_13); +x_40 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_inc(x_37); +lean_ctor_set(x_20, 1, x_37); +lean_ctor_set(x_20, 0, x_40); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_20); +x_42 = lean_st_ref_set(x_39, x_41, x_38); +lean_dec(x_39); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_40, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_45 = x_40; -} else { - lean_dec_ref(x_40); - x_45 = lean_box(0); -} -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); -} else { - x_46 = x_45; -} -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} -} -} -else -{ -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_18, 0); -x_48 = lean_ctor_get(x_18, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_18); -x_49 = lean_ctor_get(x_11, 0); -lean_inc(x_49); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - x_50 = x_11; -} else { - lean_dec_ref(x_11); - x_50 = lean_box(0); -} -x_51 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; -lean_inc(x_47); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_47); -if (lean_is_scalar(x_50)) { - x_53 = lean_alloc_ctor(1, 1, 0); -} else { - x_53 = x_50; -} -lean_ctor_set(x_53, 0, x_52); -x_54 = lean_st_ref_set(x_49, x_53, x_48); -lean_dec(x_49); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_47, x_55); +lean_dec(x_42); +x_44 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_37, x_43); lean_dec(x_4); -return x_56; +return x_44; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_37); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_57 = lean_ctor_get(x_54, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_59 = x_54; +x_45 = lean_ctor_get(x_42, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_42, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_47 = x_42; } else { - lean_dec_ref(x_54); - x_59 = lean_box(0); + lean_dec_ref(x_42); + x_47 = lean_box(0); } -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); } else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; + x_48 = x_47; } +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } else { -lean_object* x_61; lean_object* x_62; -lean_dec(x_11); -lean_dec(x_9); -x_61 = lean_ctor_get(x_12, 0); -lean_inc(x_61); -lean_dec(x_12); -x_62 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_61, x_13); +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; +x_49 = lean_ctor_get(x_20, 0); +x_50 = lean_ctor_get(x_20, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_20); +x_51 = lean_ctor_get(x_13, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + x_52 = x_13; +} else { + lean_dec_ref(x_13); + x_52 = lean_box(0); +} +x_53 = l_Lean_Server_FileWorker_instTypeNameMemorizedInteractiveDiagnostics; +lean_inc(x_49); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_49); +if (lean_is_scalar(x_52)) { + x_55 = lean_alloc_ctor(1, 1, 0); +} else { + x_55 = x_52; +} +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_st_ref_set(x_51, x_55, x_50); +lean_dec(x_51); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_49, x_57); lean_dec(x_4); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_49); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_59 = lean_ctor_get(x_56, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_56, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_61 = x_56; +} else { + lean_dec_ref(x_56); + 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); return x_62; } } } +} else { -lean_object* x_78; lean_object* x_79; +lean_object* x_63; lean_object* x_64; +lean_dec(x_13); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -x_78 = lean_box(0); -x_79 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__3(x_4, x_3, x_1, x_2, x_78, x_5); -return x_79; +x_63 = lean_ctor_get(x_14, 0); +lean_inc(x_63); +lean_dec(x_14); +x_64 = l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots_go___lambda__4(x_2, x_4, x_6, x_1, x_63, x_15); +lean_dec(x_4); +return x_64; +} +} } } } @@ -3848,7 +3848,7 @@ lean_dec(x_4); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1774_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1771_(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -6209,7 +6209,7 @@ lean_ctor_set(x_51, 0, x_1); lean_ctor_set(x_51, 1, x_36); lean_ctor_set(x_51, 2, x_50); lean_ctor_set(x_51, 3, x_48); -x_52 = l_Lean_Server_FileWorker_CancelToken_new(x_49); +x_52 = l_IO_CancelToken_new(x_49); x_53 = !lean_is_exclusive(x_52); if (x_53 == 0) { @@ -6328,7 +6328,7 @@ lean_ctor_set(x_79, 0, x_1); lean_ctor_set(x_79, 1, x_36); lean_ctor_set(x_79, 2, x_78); lean_ctor_set(x_79, 3, x_76); -x_80 = l_Lean_Server_FileWorker_CancelToken_new(x_77); +x_80 = l_IO_CancelToken_new(x_77); x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); @@ -6791,7 +6791,7 @@ lean_ctor_set(x_23, 0, x_1); lean_ctor_set(x_23, 1, x_16); lean_ctor_set(x_23, 2, x_22); lean_ctor_set(x_23, 3, x_20); -x_24 = l_Lean_Server_FileWorker_CancelToken_new(x_21); +x_24 = l_IO_CancelToken_new(x_21); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -30433,7 +30433,7 @@ l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___l lean_mark_persistent(l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___lambda__6___closed__1); l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___closed__1 = _init_l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___closed__1(); lean_mark_persistent(l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_reportSnapshots___closed__1); -if (builtin) {res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1774_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker___hyg_1771_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_importsLoadedRef = lean_io_result_get_value(res); lean_mark_persistent(l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_importsLoadedRef); diff --git a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c index 4d07cc81ac..4f4d3e1eee 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c @@ -74,6 +74,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_RequestHandling_0__L lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_12608____spec__37___lambda__2(lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___closed__1; uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_12608____spec__3(lean_object*, lean_object*, lean_object*); @@ -8313,9 +8314,13 @@ if (x_14 == 0) { lean_object* x_15; uint8_t x_16; x_15 = lean_ctor_get(x_9, 0); -x_16 = l_Lean_Exception_isRuntime(x_15); +x_16 = l_Lean_Exception_isInterrupt(x_15); if (x_16 == 0) { +uint8_t x_17; +x_17 = l_Lean_Exception_isRuntime(x_15); +if (x_17 == 0) +{ lean_dec(x_15); lean_ctor_set_tag(x_9, 0); lean_ctor_set(x_9, 0, x_3); @@ -8329,30 +8334,50 @@ return x_9; } else { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_9, 0); -x_18 = lean_ctor_get(x_9, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_9); -x_19 = l_Lean_Exception_isRuntime(x_17); -if (x_19 == 0) -{ -lean_object* x_20; -lean_dec(x_17); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_3); -lean_ctor_set(x_20, 1, x_18); -return x_20; +lean_dec(x_3); +return x_9; +} } else { -lean_object* x_21; +lean_object* x_18; lean_object* x_19; uint8_t x_20; +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 = l_Lean_Exception_isInterrupt(x_18); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = l_Lean_Exception_isRuntime(x_18); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_3); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +else +{ +lean_object* x_23; lean_dec(x_3); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_17); -lean_ctor_set(x_21, 1, x_18); -return x_21; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_18); +lean_ctor_set(x_23, 1, x_19); +return x_23; +} +} +else +{ +lean_object* x_24; +lean_dec(x_3); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_18); +lean_ctor_set(x_24, 1, x_19); +return x_24; } } } diff --git a/stage0/stdlib/Lean/Server/FileWorker/Utils.c b/stage0/stdlib/Lean/Server/FileWorker/Utils.c index 64d5663920..d1e96afc2e 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/Utils.c +++ b/stage0/stdlib/Lean/Server/FileWorker/Utils.c @@ -28,94 +28,23 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_EditableDocumentCore_cmdSnaps_ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_RpcSession_keptAlive(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps(lean_object*); static lean_object* l_Lean_Server_FileWorker_RpcSession_new___closed__1; -lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_set___boxed(lean_object*, lean_object*); -lean_object* lean_st_mk_ref(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_new(lean_object*); extern lean_object* l_Task_Priority_default; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_set(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps_go___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_RpcSession_hasExpired(lean_object*, lean_object*); lean_object* l_ByteArray_toUInt64LE_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier___boxed(lean_object*); static lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_isSet___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps_go(lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps_go___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_isSet(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps_go___lambda__1___closed__1; -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* lean_io_get_random_bytes(size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_RpcSession_hasExpired___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_new(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_2 = 0; -x_3 = lean_box(x_2); -x_4 = lean_st_mk_ref(x_3, x_1); -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -return x_4; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -lean_inc(x_7); -lean_inc(x_6); -lean_dec(x_4); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_6); -lean_ctor_set(x_8, 1, x_7); -return x_8; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_set(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_3 = 1; -x_4 = lean_box(x_3); -x_5 = lean_st_ref_set(x_1, x_4, x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_set___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Server_FileWorker_CancelToken_set(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_isSet(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_st_ref_get(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_CancelToken_isSet___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Server_FileWorker_CancelToken_isSet(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} static lean_object* _init_l___private_Lean_Server_FileWorker_Utils_0__Lean_Server_FileWorker_mkCmdSnaps_go___lambda__1___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Server/InfoUtils.c b/stage0/stdlib/Lean/Server/InfoUtils.c index 4af54f8560..1441cf407c 100644 --- a/stage0/stdlib/Lean/Server/InfoUtils.c +++ b/stage0/stdlib/Lean/Server/InfoUtils.c @@ -57,6 +57,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldI static lean_object* l_Lean_Elab_InfoTree_collectNodesBottomUp___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_hasSorry_go___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__8___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_hasSorry_go___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_go___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_lexOrd___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__9; @@ -11121,20 +11122,24 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; uint8_t x_40; x_38 = lean_ctor_get(x_18, 0); x_39 = lean_ctor_get(x_18, 1); -x_40 = l_Lean_Exception_isRuntime(x_38); +x_40 = l_Lean_Exception_isInterrupt(x_38); if (x_40 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; +uint8_t x_41; +x_41 = l_Lean_Exception_isRuntime(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_free_object(x_18); lean_dec(x_38); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_4); +x_42 = lean_box(0); x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -x_10 = x_43; +lean_ctor_set(x_43, 0, x_3); +lean_ctor_set(x_43, 1, x_4); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_10 = x_44; x_11 = x_39; goto block_17; } @@ -11152,31 +11157,6 @@ return x_18; } else { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_18, 0); -x_45 = lean_ctor_get(x_18, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_18); -x_46 = l_Lean_Exception_isRuntime(x_44); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_44); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_3); -lean_ctor_set(x_48, 1, x_4); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_10 = x_49; -x_11 = x_45; -goto block_17; -} -else -{ -lean_object* x_50; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -11184,10 +11164,67 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_44); -lean_ctor_set(x_50, 1, x_45); -return x_50; +return x_18; +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_18, 0); +x_46 = lean_ctor_get(x_18, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_18); +x_47 = l_Lean_Exception_isInterrupt(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Exception_isRuntime(x_45); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_45); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_3); +lean_ctor_set(x_50, 1, x_4); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_10 = x_51; +x_11 = x_46; +goto block_17; +} +else +{ +lean_object* x_52; +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_1); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_45); +lean_ctor_set(x_52, 1, x_46); +return x_52; +} +} +else +{ +lean_object* x_53; +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_1); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_45); +lean_ctor_set(x_53, 1, x_46); +return x_53; } } } diff --git a/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c b/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c index 1dc1a984aa..41bd005215 100644 --- a/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/Rpc/RequestHandling.c @@ -3930,7 +3930,7 @@ x_4 = 1; x_5 = 0; x_6 = l_Lean_Server_registerRpcProcedure___lambda__3___closed__6; x_7 = l_Lean_Server_registerRpcProcedure___lambda__3___closed__7; -x_8 = lean_alloc_ctor(0, 8, 10); +x_8 = lean_alloc_ctor(0, 9, 10); lean_ctor_set(x_8, 0, x_2); lean_ctor_set(x_8, 1, x_3); lean_ctor_set(x_8, 2, x_1); @@ -3939,16 +3939,17 @@ lean_ctor_set(x_8, 4, x_7); lean_ctor_set(x_8, 5, x_3); lean_ctor_set(x_8, 6, x_3); lean_ctor_set(x_8, 7, x_2); -lean_ctor_set_uint8(x_8, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 1, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 3, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 4, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 5, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 6, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 7, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 8, x_4); -lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 9, x_5); +lean_ctor_set(x_8, 8, x_2); +lean_ctor_set_uint8(x_8, sizeof(void*)*9, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 1, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 2, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 3, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 4, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 5, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 6, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 7, x_5); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 8, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*9 + 9, x_5); return x_8; } } diff --git a/stage0/stdlib/Lean/Server/Snapshots.c b/stage0/stdlib/Lean/Server/Snapshots.c index b185fa42d8..95e06d5968 100644 --- a/stage0/stdlib/Lean/Server/Snapshots.c +++ b/stage0/stdlib/Lean/Server/Snapshots.c @@ -348,7 +348,7 @@ x_17 = l_Lean_firstFrontendMacroScope; x_18 = lean_box(0); lean_inc(x_6); lean_inc(x_5); -x_19 = lean_alloc_ctor(0, 9, 0); +x_19 = lean_alloc_ctor(0, 10, 1); lean_ctor_set(x_19, 0, x_5); lean_ctor_set(x_19, 1, x_6); lean_ctor_set(x_19, 2, x_16); @@ -358,6 +358,8 @@ lean_ctor_set(x_19, 5, x_17); lean_ctor_set(x_19, 6, x_18); lean_ctor_set(x_19, 7, x_11); lean_ctor_set(x_19, 8, x_11); +lean_ctor_set(x_19, 9, x_11); +lean_ctor_set_uint8(x_19, sizeof(void*)*10, x_8); lean_inc(x_14); x_20 = lean_apply_3(x_3, x_19, x_14, x_15); if (lean_obj_tag(x_20) == 0) @@ -431,7 +433,7 @@ x_36 = l_Lean_firstFrontendMacroScope; x_37 = lean_box(0); lean_inc(x_6); lean_inc(x_5); -x_38 = lean_alloc_ctor(0, 9, 0); +x_38 = lean_alloc_ctor(0, 10, 1); lean_ctor_set(x_38, 0, x_5); lean_ctor_set(x_38, 1, x_6); lean_ctor_set(x_38, 2, x_35); @@ -441,6 +443,8 @@ lean_ctor_set(x_38, 5, x_36); lean_ctor_set(x_38, 6, x_37); lean_ctor_set(x_38, 7, x_11); lean_ctor_set(x_38, 8, x_11); +lean_ctor_set(x_38, 9, x_11); +lean_ctor_set_uint8(x_38, sizeof(void*)*10, x_8); lean_inc(x_33); x_39 = lean_apply_3(x_3, x_38, x_33, x_34); if (lean_obj_tag(x_39) == 0) diff --git a/stage0/stdlib/Lean/Syntax.c b/stage0/stdlib/Lean/Syntax.c index 06b9cbc1aa..40df840f35 100644 --- a/stage0/stdlib/Lean/Syntax.c +++ b/stage0/stdlib/Lean/Syntax.c @@ -13,12 +13,15 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT uint8_t l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1(lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_updateLeading___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Syntax_0__String_beqRange____x40_Lean_Syntax___hyg_91_(lean_object*, lean_object*); +lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__8; LEAN_EXPORT lean_object* l_Lean_isLitKind___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_down(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__16; static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__2; LEAN_EXPORT lean_object* l_Lean_Syntax_isAntiquotSplice___boxed(lean_object*); @@ -40,6 +43,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotSuffixSpliceNode(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_of_nat(lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__22; LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_fromSyntax(lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__3; @@ -54,11 +58,14 @@ static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Synt static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Syntax___hyg_34____closed__14; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4; static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__4; static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Syntax___hyg_34____closed__8; lean_object* lean_mk_array(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Syntax_antiquotKinds___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8; LEAN_EXPORT lean_object* l_Lean_Syntax_getAntiquotSuffixSpliceInner(lean_object*); static lean_object* l_Lean_Syntax_identComponents___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); @@ -81,6 +88,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__4( LEAN_EXPORT lean_object* l_Lean_Syntax_updateLeading(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_antiquotSuffixSplice_x3f___boxed(lean_object*); static lean_object* l_Lean_Syntax_isTokenAntiquot___closed__2; +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getRange_x3f___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__6; static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Syntax___hyg_34____closed__5; static lean_object* l_Lean_Syntax_Stack_matches___closed__1; @@ -89,7 +97,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__3( LEAN_EXPORT lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Syntax_0__String_beqRange____x40_Lean_Syntax___hyg_91____boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Syntax_getAtomVal___closed__1; LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getNumArgs___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_reprint___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Syntax___hyg_34____closed__17; @@ -102,6 +109,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_getAntiquotSpliceContents(lean_object*); static lean_object* l_Lean_Syntax_asNode___closed__1; LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_reprint___spec__3___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_reprint_reprintLeaf___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__4; LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_left(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -113,15 +121,18 @@ LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Syntax_reprint___ static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__21; lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_setCur___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1; static lean_object* l_Lean_Syntax_isQuot___closed__1; static lean_object* l_Lean_Syntax_isTokenAntiquot___closed__1; static lean_object* l_String_instInhabitedRange___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Syntax_findStack_x3f_go___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_instInhabitedNat; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goRight___rarg___lambda__1(lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__13; lean_object* l_Lean_Syntax_splitNameLit(lean_object*); +lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l___private_Lean_Syntax_0__String_hashRange____x40_Lean_Syntax___hyg_168_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isAntiquotSuffixSplice___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lean_Syntax_isAntiquot(lean_object*); @@ -139,13 +150,13 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Syntax_isAntiquots___s LEAN_EXPORT lean_object* l_Lean_Syntax_replaceM___rarg___lambda__3(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_Lean_Syntax_antiquotSpliceKind_x3f___closed__1; -LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_isQuot___closed__3; LEAN_EXPORT lean_object* l_Lean_Syntax_ifNodeKind___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_identComponents___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_updateTrailing(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__14; +uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__2(lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_getAtomVal(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx(lean_object*); @@ -159,7 +170,7 @@ LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Syntax_identComponents___sp LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_components(lean_object*); LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getIdAt(lean_object*, lean_object*); -static lean_object* l_Lean_Syntax_hasMissing___closed__2; +lean_object* l_Lean_SourceInfo_getTailPos_x3f(lean_object*, uint8_t); static lean_object* l_Lean_isLitKind___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_rewriteBottomUp___spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___rarg___lambda__1___boxed(lean_object*); @@ -188,6 +199,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotSpliceNode(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Syntax_Traverser_right(lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Syntax_reprint___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_ofRange___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5; uint8_t l_Lean_Syntax_isMissing(lean_object*); static lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__7___closed__1; LEAN_EXPORT lean_object* l_Lean_Syntax_rewriteBottomUpM(lean_object*); @@ -211,6 +223,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Syntax_0__String_hashRange____x40_Lean_Syntax___hyg_168____boxed(lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Syntax_identComponents___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_asNode(lean_object*); LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getArgs___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_replaceM___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -230,8 +243,11 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_updateLeading__ LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_findStack_x3f_go___lambda__2___closed__1; static lean_object* l_Lean_isLitKind___closed__1; +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getRange_x3f(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goLeft___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop(lean_object*, lean_object*); +extern lean_object* l_Std_Format_defWidth; +LEAN_EXPORT uint8_t l_Lean_Syntax_structRangeEq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_mkAntiquotNode(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Syntax_asNode___closed__3; LEAN_EXPORT lean_object* l_Lean_Syntax_isTokenAntiquot___boxed(lean_object*); @@ -243,12 +259,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean static lean_object* l_Lean_isLitKind___closed__3; static lean_object* l_List_mapTR_loop___at_Lean_Syntax_identComponents___spec__3___closed__2; static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__10; -LEAN_EXPORT uint8_t l_Lean_Syntax_hasMissing___lambda__1(lean_object*); -static lean_object* l_Lean_Syntax_hasMissing___closed__3; +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6; LEAN_EXPORT lean_object* l_Lean_Syntax_getAtomVal___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___rarg___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goRight___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Syntax_0__Lean_Syntax_updateLeadingAux(lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3; LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_reprint___spec__3___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_findStack_x3f_go___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_reprint(lean_object*); @@ -261,6 +278,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_modifyArg___boxed(lean_object*, lean_obje LEAN_EXPORT uint8_t l_Lean_Syntax_isQuot(lean_object*); LEAN_EXPORT lean_object* l_String_Range_includes___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMissing___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEq___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_MonadTraverser_goUp___rarg___closed__1; LEAN_EXPORT uint8_t l_String_Range_contains(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__17; @@ -284,10 +302,12 @@ lean_object* l_List_drop___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SyntaxNode_getIdAt___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_findStack_x3f(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2; static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__7; LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMissing___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Syntax_antiquotKinds___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__15; +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__12; LEAN_EXPORT lean_object* l_Lean_unreachIsNodeIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); @@ -303,6 +323,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_isAntiquots___boxed(lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Syntax_identComponents___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Syntax_rewriteBottomUp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_instHashableRange; LEAN_EXPORT lean_object* l_Lean_unreachIsNodeMissing(lean_object*, lean_object*); @@ -323,6 +344,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_antiquotKind_x3f(lean_object*); static lean_object* l_Lean_Syntax_MonadTraverser_getCur___rarg___closed__1; static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__3; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Syntax_identComponents___spec__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); @@ -330,10 +352,12 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_topDown___boxed(lean_object*, lean_object static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__18; static lean_object* l_Lean_Syntax_identComponents___closed__3; LEAN_EXPORT lean_object* l_Lean_SyntaxNode_withArgs___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing___boxed(lean_object*); static lean_object* l_Lean_Syntax_mkAntiquotNode___closed__20; static lean_object* l_Lean_Syntax_isQuot___closed__2; static lean_object* l_Lean_Syntax_mkAntiquotSpliceNode___closed__2; -LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Syntax_hasMissing(lean_object*); +uint8_t l_Substring_beq(lean_object*, lean_object*); static lean_object* l_Lean_isLitKind___closed__8; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur(lean_object*); @@ -352,8 +376,6 @@ static lean_object* l_Lean_Syntax_getAntiquotTerm___closed__1; extern lean_object* l_Lean_instInhabitedSyntax; static lean_object* l_Lean_Syntax_identComponents___closed__4; LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Syntax_reprint___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Syntax_getTailWithPos(lean_object*); -LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1(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_unreachIsNodeIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp(lean_object*); @@ -361,7 +383,6 @@ static lean_object* l___private_Lean_Syntax_0__String_reprRange____x40_Lean_Synt static lean_object* l_Lean_Syntax_isQuot___closed__5; LEAN_EXPORT lean_object* l_Lean_Syntax_rewriteBottomUpM___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_findStack_x3f_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Lean_Syntax_asNode___closed__2; LEAN_EXPORT lean_object* l_Lean_Syntax_findStack_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*); @@ -390,6 +411,7 @@ static lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMiss LEAN_EXPORT uint8_t l_Lean_Syntax_isAntiquots(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMissing___spec__1___lambda__1(lean_object*, lean_object*); +lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_unescapeAntiquot(lean_object*); @@ -930,6 +952,73 @@ return x_2; } } } +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getRange_x3f(uint8_t x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_SourceInfo_getPos_x3f(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = l_Lean_SourceInfo_getTailPos_x3f(x_2, x_1); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +lean_dec(x_5); +x_7 = lean_box(0); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_6, 0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_9); +lean_ctor_set(x_6, 0, x_10); +return x_6; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_6, 0); +lean_inc(x_11); +lean_dec(x_6); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_SourceInfo_getRange_x3f___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_Lean_SourceInfo_getRange_x3f(x_3, x_2); +lean_dec(x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_unreachIsNodeMissing(lean_object* x_1, lean_object* x_2) { _start: { @@ -1252,7 +1341,427 @@ return x_10; } } } -static lean_object* _init_l_Lean_Syntax_getAtomVal___closed__1() { +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = l___private_Lean_Syntax_0__String_beqRange____x40_Lean_Syntax___hyg_91_(x_6, x_7); +return x_8; +} +} +} +} +LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_4); +x_8 = lean_nat_dec_lt(x_6, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_6); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_fget(x_4, x_6); +x_11 = lean_array_fget(x_5, x_6); +x_12 = l_Lean_Syntax_structRangeEq(x_10, x_11); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_6); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_3 = lean_box(0); +x_6 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l_Lean_Syntax_structRangeEq(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +lean_dec(x_2); +x_4 = 0; +return x_4; +} +} +case 1: +{ +if (lean_obj_tag(x_2) == 1) +{ +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; uint8_t x_14; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_dec(x_2); +x_11 = 0; +x_12 = l_Lean_SourceInfo_getRange_x3f(x_11, x_5); +lean_dec(x_5); +x_13 = l_Lean_SourceInfo_getRange_x3f(x_11, x_8); +lean_dec(x_8); +x_14 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(x_12, x_13); +lean_dec(x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +x_15 = 0; +return x_15; +} +else +{ +uint8_t x_16; +x_16 = lean_name_eq(x_6, x_9); +lean_dec(x_9); +lean_dec(x_6); +if (x_16 == 0) +{ +uint8_t x_17; +lean_dec(x_10); +lean_dec(x_7); +x_17 = 0; +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_array_get_size(x_7); +x_19 = lean_array_get_size(x_10); +x_20 = lean_nat_dec_eq(x_18, x_19); +lean_dec(x_19); +lean_dec(x_18); +if (x_20 == 0) +{ +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_7); +x_21 = 0; +return x_21; +} +else +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___spec__2(x_7, x_10, lean_box(0), x_7, x_10, x_22); +lean_dec(x_10); +lean_dec(x_7); +return x_23; +} +} +} +} +else +{ +uint8_t x_24; +lean_dec(x_2); +lean_dec(x_1); +x_24 = 0; +return x_24; +} +} +case 2: +{ +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_25 = lean_ctor_get(x_1, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +lean_dec(x_1); +x_27 = lean_ctor_get(x_2, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_2, 1); +lean_inc(x_28); +lean_dec(x_2); +x_29 = 0; +x_30 = l_Lean_SourceInfo_getRange_x3f(x_29, x_25); +lean_dec(x_25); +x_31 = l_Lean_SourceInfo_getRange_x3f(x_29, x_27); +lean_dec(x_27); +x_32 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(x_30, x_31); +lean_dec(x_31); +lean_dec(x_30); +if (x_32 == 0) +{ +uint8_t x_33; +lean_dec(x_28); +lean_dec(x_26); +x_33 = 0; +return x_33; +} +else +{ +uint8_t x_34; +x_34 = lean_string_dec_eq(x_26, x_28); +lean_dec(x_28); +lean_dec(x_26); +return x_34; +} +} +else +{ +uint8_t x_35; +lean_dec(x_2); +lean_dec(x_1); +x_35 = 0; +return x_35; +} +} +default: +{ +if (lean_obj_tag(x_2) == 3) +{ +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; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_36 = lean_ctor_get(x_1, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_1, 2); +lean_inc(x_38); +x_39 = lean_ctor_get(x_1, 3); +lean_inc(x_39); +lean_dec(x_1); +x_40 = lean_ctor_get(x_2, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_2, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_2, 2); +lean_inc(x_42); +x_43 = lean_ctor_get(x_2, 3); +lean_inc(x_43); +lean_dec(x_2); +x_44 = 0; +x_45 = l_Lean_SourceInfo_getRange_x3f(x_44, x_36); +lean_dec(x_36); +x_46 = l_Lean_SourceInfo_getRange_x3f(x_44, x_40); +lean_dec(x_40); +x_47 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(x_45, x_46); +lean_dec(x_46); +lean_dec(x_45); +if (x_47 == 0) +{ +uint8_t x_48; +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +x_48 = 0; +return x_48; +} +else +{ +uint8_t x_49; +x_49 = l_Substring_beq(x_37, x_41); +if (x_49 == 0) +{ +uint8_t x_50; +lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_39); +lean_dec(x_38); +x_50 = 0; +return x_50; +} +else +{ +uint8_t x_51; +x_51 = lean_name_eq(x_38, x_42); +lean_dec(x_42); +lean_dec(x_38); +if (x_51 == 0) +{ +uint8_t x_52; +lean_dec(x_43); +lean_dec(x_39); +x_52 = 0; +return x_52; +} +else +{ +uint8_t x_53; +x_53 = l_List_beq___at_Lean_Syntax_structEq___spec__2(x_39, x_43); +lean_dec(x_43); +lean_dec(x_39); +return x_53; +} +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_2); +lean_dec(x_1); +x_54 = 0; +return x_54; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at_Lean_Syntax_structRangeEq___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = l_Array_isEqvAux___at_Lean_Syntax_structRangeEq___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEq___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Syntax_structRangeEq(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("trace", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1; +x_2 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2; +x_3 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("reuse stopped:\n", 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" !=\n", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7() { _start: { lean_object* x_1; @@ -1260,6 +1769,91 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } +static lean_object* _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +lean_inc(x_3); +lean_inc(x_2); +x_4 = l_Lean_Syntax_structRangeEq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; uint8_t x_7; +x_5 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4; +x_6 = 0; +x_7 = l_Lean_KVMap_getBool(x_1, x_5, x_6); +if (x_7 == 0) +{ +uint8_t x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_2); +x_8 = 0; +x_9 = lean_box(x_8); +return x_9; +} +else +{ +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; 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; +x_10 = lean_box(0); +x_11 = 1; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_formatStxAux(x_10, x_11, x_12, x_2); +x_14 = l_Std_Format_defWidth; +x_15 = lean_format_pretty(x_13, x_14, x_12, x_12); +x_16 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5; +x_17 = lean_string_append(x_16, x_15); +lean_dec(x_15); +x_18 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6; +x_19 = lean_string_append(x_17, x_18); +x_20 = l_Lean_Syntax_formatStxAux(x_10, x_11, x_12, x_3); +x_21 = lean_format_pretty(x_20, x_14, x_12, x_12); +x_22 = lean_string_append(x_19, x_21); +lean_dec(x_21); +x_23 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; +x_24 = lean_string_append(x_22, x_23); +x_25 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8; +x_26 = lean_dbg_trace(x_24, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_3); +lean_dec(x_2); +x_27 = 1; +x_28 = lean_box(x_27); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Syntax_structRangeEqWithTraceReuse___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Syntax_structRangeEqWithTraceReuse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Syntax_structRangeEqWithTraceReuse(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_Syntax_getAtomVal(lean_object* x_1) { _start: { @@ -1273,7 +1867,7 @@ return x_2; else { lean_object* x_3; -x_3 = l_Lean_Syntax_getAtomVal___closed__1; +x_3 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; return x_3; } } @@ -2774,125 +3368,6 @@ return x_50; } } } -LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_nat_dec_eq(x_2, x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_sub(x_2, x_6); -lean_dec(x_2); -x_8 = lean_array_fget(x_1, x_7); -x_9 = l_Lean_Syntax_getTailWithPos(x_8); -if (lean_obj_tag(x_9) == 0) -{ -x_2 = x_7; -x_3 = lean_box(0); -goto _start; -} -else -{ -lean_dec(x_7); -return x_9; -} -} -else -{ -lean_object* x_11; -lean_dec(x_2); -x_11 = lean_box(0); -return x_11; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Syntax_getTailWithPos(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -case 1: -{ -lean_object* x_3; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -if (lean_obj_tag(x_3) == 2) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_array_get_size(x_4); -x_6 = l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1(x_4, x_5, lean_box(0)); -lean_dec(x_4); -return x_6; -} -else -{ -lean_object* x_7; -lean_dec(x_3); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_1); -return x_7; -} -} -default: -{ -lean_object* x_8; uint8_t x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = 0; -x_10 = l_Lean_SourceInfo_getPos_x3f(x_8, x_9); -lean_dec(x_8); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; -lean_dec(x_1); -x_11 = lean_box(0); -return x_11; -} -else -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -lean_ctor_set(x_10, 0, x_1); -return x_10; -} -else -{ -lean_object* x_14; -lean_dec(x_10); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_1); -return x_14; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailWithPos___spec__1(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Syntax_identComponents_nameComps___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -3047,7 +3522,7 @@ static lean_object* _init_l_List_mapTR_loop___at_Lean_Syntax_identComponents___s _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Syntax_getAtomVal___closed__1; +x_1 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -3056,7 +3531,7 @@ static lean_object* _init_l_List_mapTR_loop___at_Lean_Syntax_identComponents___s _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Syntax_getAtomVal___closed__1; +x_1 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_2 = lean_unsigned_to_nat(0u); x_3 = l_List_mapTR_loop___at_Lean_Syntax_identComponents___spec__3___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); @@ -3634,7 +4109,7 @@ _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_Lean_Syntax_identComponents___closed__1; x_2 = l_Lean_Syntax_identComponents___closed__2; -x_3 = lean_unsigned_to_nat(233u); +x_3 = lean_unsigned_to_nat(257u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_Syntax_identComponents___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -3645,7 +4120,7 @@ static lean_object* _init_l_Lean_Syntax_identComponents___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Syntax_getAtomVal___closed__1; +x_1 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); @@ -4443,7 +4918,7 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get(x_3, 1); x_7 = lean_ctor_get(x_3, 2); x_8 = lean_string_utf8_extract(x_5, x_6, x_7); -x_9 = l_Lean_Syntax_getAtomVal___closed__1; +x_9 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_10 = lean_string_append(x_9, x_8); lean_dec(x_8); x_11 = lean_string_append(x_10, x_9); @@ -5180,7 +5655,7 @@ _start: { uint8_t x_2; lean_object* x_3; lean_object* x_4; x_2 = 1; -x_3 = l_Lean_Syntax_getAtomVal___closed__1; +x_3 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_4 = l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_reprint___spec__3(x_2, x_1, x_3, x_3); if (lean_obj_tag(x_4) == 0) { @@ -5592,14 +6067,6 @@ return x_37; } } } -LEAN_EXPORT uint8_t l_Lean_Syntax_hasMissing___lambda__1(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = 0; -return x_2; -} -} static lean_object* _init_l_Lean_Syntax_hasMissing___closed__1() { _start: { @@ -5612,25 +6079,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Syntax_hasMissing___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Syntax_hasMissing___lambda__1___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Syntax_hasMissing___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Syntax_hasMissing___closed__2; -x_2 = lean_box(0); -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing(lean_object* x_1) { +LEAN_EXPORT uint8_t l_Lean_Syntax_hasMissing(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -5645,17 +6094,19 @@ lean_inc(x_6); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { -lean_object* x_7; -x_7 = l_Lean_Syntax_hasMissing___closed__3; +uint8_t x_7; +x_7 = 0; return x_7; } else { -lean_object* x_8; +lean_object* x_8; uint8_t x_9; x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); lean_dec(x_6); -return x_8; +x_9 = lean_unbox(x_8); +lean_dec(x_8); +return x_9; } } } @@ -5695,12 +6146,11 @@ lean_dec(x_5); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing___lambda__1___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Syntax_hasMissing___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Syntax_hasMissing___lambda__1(x_1); -lean_dec(x_1); +x_2 = l_Lean_Syntax_hasMissing(x_1); x_3 = lean_box(x_2); return x_3; } @@ -5786,7 +6236,7 @@ x_6 = lean_alloc_ctor(1, 2, 1); lean_ctor_set(x_6, 0, x_4); lean_ctor_set(x_6, 1, x_5); lean_ctor_set_uint8(x_6, sizeof(void*)*2, x_2); -x_7 = l_Lean_Syntax_getAtomVal___closed__1; +x_7 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; lean_ctor_set_tag(x_1, 2); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); @@ -5804,7 +6254,7 @@ x_10 = lean_alloc_ctor(1, 2, 1); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_9); lean_ctor_set_uint8(x_10, sizeof(void*)*2, x_2); -x_11 = l_Lean_Syntax_getAtomVal___closed__1; +x_11 = l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7; x_12 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -8635,8 +9085,22 @@ l_Lean_isLitKind___closed__9 = _init_l_Lean_isLitKind___closed__9(); lean_mark_persistent(l_Lean_isLitKind___closed__9); l_Lean_isLitKind___closed__10 = _init_l_Lean_isLitKind___closed__10(); lean_mark_persistent(l_Lean_isLitKind___closed__10); -l_Lean_Syntax_getAtomVal___closed__1 = _init_l_Lean_Syntax_getAtomVal___closed__1(); -lean_mark_persistent(l_Lean_Syntax_getAtomVal___closed__1); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__1); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__2); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__3); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__4); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__5); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__6); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__7); +l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8 = _init_l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8(); +lean_mark_persistent(l_Lean_Syntax_structRangeEqWithTraceReuse___closed__8); l_Lean_Syntax_asNode___closed__1 = _init_l_Lean_Syntax_asNode___closed__1(); lean_mark_persistent(l_Lean_Syntax_asNode___closed__1); l_Lean_Syntax_asNode___closed__2 = _init_l_Lean_Syntax_asNode___closed__2(); @@ -8677,10 +9141,6 @@ l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMissing___spec__1___clos lean_mark_persistent(l_Lean_Syntax_instForInTopDown_loop___at_Lean_Syntax_hasMissing___spec__1___closed__4); l_Lean_Syntax_hasMissing___closed__1 = _init_l_Lean_Syntax_hasMissing___closed__1(); lean_mark_persistent(l_Lean_Syntax_hasMissing___closed__1); -l_Lean_Syntax_hasMissing___closed__2 = _init_l_Lean_Syntax_hasMissing___closed__2(); -lean_mark_persistent(l_Lean_Syntax_hasMissing___closed__2); -l_Lean_Syntax_hasMissing___closed__3 = _init_l_Lean_Syntax_hasMissing___closed__3(); -lean_mark_persistent(l_Lean_Syntax_hasMissing___closed__3); l_Lean_Syntax_MonadTraverser_getCur___rarg___closed__1 = _init_l_Lean_Syntax_MonadTraverser_getCur___rarg___closed__1(); lean_mark_persistent(l_Lean_Syntax_MonadTraverser_getCur___rarg___closed__1); l_Lean_Syntax_MonadTraverser_goUp___rarg___closed__1 = _init_l_Lean_Syntax_MonadTraverser_goUp___rarg___closed__1(); diff --git a/stage0/stdlib/Lean/Util/Heartbeats.c b/stage0/stdlib/Lean/Util/Heartbeats.c index 022ebc2904..df0f435970 100644 --- a/stage0/stdlib/Lean/Util/Heartbeats.c +++ b/stage0/stdlib/Lean/Util/Heartbeats.c @@ -14,24 +14,30 @@ extern "C" { #endif lean_object* l_IO_getNumHeartbeats___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2(lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getRemainingHeartbeats___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1; static lean_object* l_Lean_withHeartbeats___rarg___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_reportOutOfHeartbeats___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3; lean_object* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_reportOutOfHeartbeats___closed__2; LEAN_EXPORT lean_object* l_Lean_heartbeatsPercent(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getRemainingHeartbeats(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_reportOutOfHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -44,6 +50,7 @@ LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg___lambda__1(lean_object*, LEAN_EXPORT lean_object* l_Lean_getMaxHeartbeats___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getInitHeartbeats___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_heartbeatsPercent___boxed(lean_object*, lean_object*, lean_object*); @@ -51,12 +58,15 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_getMaxHeartbeats(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withHeartbeats___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -320,7 +330,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1() { +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -328,6 +338,224 @@ x_1 = lean_mk_string_from_bytes("", 0); return x_1; } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_10 = lean_ctor_get(x_7, 6); +x_11 = lean_ctor_get(x_7, 7); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_1); +x_14 = 0; +x_15 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1; +x_16 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_3); +lean_ctor_set(x_16, 2, x_4); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*5, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*5 + 1, x_5); +x_17 = lean_st_ref_take(x_8, x_9); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_18, 5); +x_22 = l_Lean_MessageLog_add(x_16, x_21); +lean_ctor_set(x_18, 5, x_22); +x_23 = lean_st_ref_set(x_8, x_18, x_19); +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); +lean_dec(x_25); +x_26 = lean_box(0); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +x_33 = lean_ctor_get(x_18, 3); +x_34 = lean_ctor_get(x_18, 4); +x_35 = lean_ctor_get(x_18, 5); +x_36 = lean_ctor_get(x_18, 6); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_37 = l_Lean_MessageLog_add(x_16, x_35); +x_38 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_31); +lean_ctor_set(x_38, 2, x_32); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_34); +lean_ctor_set(x_38, 5, x_37); +lean_ctor_set(x_38, 6, x_36); +x_39 = lean_st_ref_set(x_8, x_38, x_19); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Tactic", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unsolvedGoals", 13); +return x_1; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthPlaceholder", 16); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_2, 0); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 1); +x_6 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1; +x_7 = lean_string_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2; +x_9 = lean_string_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3; +x_12 = lean_string_dec_eq(x_4, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4; +x_14 = lean_string_dec_eq(x_4, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___boxed), 1, 0); +return x_1; +} +} static lean_object* _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2() { _start: { @@ -339,1304 +567,780 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___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) { _start: { -lean_object* x_7; uint8_t x_373; uint8_t x_374; -x_373 = 2; -x_374 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_373); -if (x_374 == 0) +lean_object* x_7; uint8_t x_182; uint8_t x_183; +x_182 = 2; +x_183 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_182); +if (x_183 == 0) { -lean_object* x_375; -x_375 = lean_box(0); -x_7 = x_375; -goto block_372; +lean_object* x_184; +x_184 = lean_box(0); +x_7 = x_184; +goto block_181; } else { -lean_object* x_376; uint8_t x_377; +lean_object* x_185; uint8_t x_186; lean_inc(x_2); -x_376 = l_Lean_MessageData_hasSyntheticSorry(x_2); -x_377 = lean_unbox(x_376); -lean_dec(x_376); -if (x_377 == 0) +x_185 = l_Lean_MessageData_hasSyntheticSorry(x_2); +x_186 = lean_unbox(x_185); +lean_dec(x_185); +if (x_186 == 0) { -lean_object* x_378; -x_378 = lean_box(0); -x_7 = x_378; -goto block_372; +lean_object* x_187; +x_187 = lean_box(0); +x_7 = x_187; +goto block_181; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_188; lean_object* x_189; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_379 = lean_box(0); -x_380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_380, 0, x_379); -lean_ctor_set(x_380, 1, x_6); -return x_380; +lean_dec(x_1); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_6); +return x_189; } } -block_372: +block_181: { -uint8_t x_8; lean_object* x_366; uint8_t x_367; uint8_t x_368; +uint8_t x_8; lean_object* x_175; uint8_t x_176; uint8_t x_177; lean_dec(x_7); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = 1; -x_368 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_367); -if (x_368 == 0) +x_175 = lean_ctor_get(x_4, 2); +lean_inc(x_175); +x_176 = 1; +x_177 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(x_3, x_176); +if (x_177 == 0) { -lean_dec(x_366); +lean_dec(x_175); x_8 = x_3; -goto block_365; +goto block_174; } else { -lean_object* x_369; uint8_t x_370; -x_369 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2; -x_370 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_366, x_369); -lean_dec(x_366); -if (x_370 == 0) +lean_object* x_178; uint8_t x_179; +x_178 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2; +x_179 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_175, x_178); +lean_dec(x_175); +if (x_179 == 0) { x_8 = x_3; -goto block_365; +goto block_174; } else { -uint8_t x_371; -x_371 = 2; -x_8 = x_371; -goto block_365; +uint8_t x_180; +x_180 = 2; +x_8 = x_180; +goto block_174; } } -block_365: +block_174: { -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; lean_object* x_17; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 6); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 7); -lean_inc(x_13); -x_14 = l_Lean_replaceRef(x_1, x_11); +x_12 = lean_ctor_get_uint8(x_4, sizeof(void*)*12 + 1); +x_13 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +lean_dec(x_1); +x_14 = 0; +x_15 = l_Lean_Syntax_getPos_x3f(x_13, x_14); +x_16 = l_Lean_Syntax_getTailPos_x3f(x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ if (lean_obj_tag(x_16) == 0) { -if (lean_obj_tag(x_17) == 0) +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_10, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +if (x_12 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_free_object(x_17); +x_24 = lean_box(0); +x_25 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_19, x_9, x_22, x_23, x_8, x_24, x_4, x_5, x_20); +lean_dec(x_5); lean_dec(x_4); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +return x_25; +} +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; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_10, x_22); -lean_inc(x_23); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 0, x_12); -x_25 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_25, 0, x_18); -lean_ctor_set(x_25, 1, x_20); +lean_object* x_26; uint8_t x_27; x_26 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_27 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_23); -lean_ctor_set(x_27, 2, x_24); -lean_ctor_set(x_27, 3, x_26); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*5 + 1, x_8); -x_28 = lean_st_ref_take(x_5, x_21); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +lean_inc(x_19); +x_27 = l_Lean_MessageData_hasTag(x_26, x_19); +if (x_27 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_29, 5); -x_33 = l_Lean_PersistentArray_push___rarg(x_32, x_27); -lean_ctor_set(x_29, 5, x_33); -x_34 = lean_st_ref_set(x_5, x_29, x_30); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) +lean_object* x_28; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_28 = lean_box(0); +lean_ctor_set(x_17, 0, x_28); +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_17); +x_29 = lean_box(0); +x_30 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_19, x_9, x_22, x_23, x_8, x_29, x_4, x_5, x_20); +lean_dec(x_5); +lean_dec(x_4); +return x_30; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_FileMap_toPosition(x_10, x_33); +lean_inc(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +if (x_12 == 0) { 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(x_34, 0, x_37); -return x_34; +x_36 = lean_box(0); +x_37 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_31, x_9, x_34, x_35, x_8, x_36, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_37; } else { -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_object* x_38; uint8_t x_39; +x_38 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_31); +x_39 = l_Lean_MessageData_hasTag(x_38, x_31); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_35); lean_dec(x_34); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_dec(x_31); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_32); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_31, x_9, x_34, x_35, x_8, x_42, x_4, x_5, x_32); +lean_dec(x_5); +lean_dec(x_4); +return x_43; +} +} } } else { -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; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 2); -x_44 = lean_ctor_get(x_29, 3); -x_45 = lean_ctor_get(x_29, 4); -x_46 = lean_ctor_get(x_29, 5); -x_47 = lean_ctor_get(x_29, 6); -lean_inc(x_47); -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_dec(x_29); -x_48 = l_Lean_PersistentArray_push___rarg(x_46, x_27); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_43); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_48); -lean_ctor_set(x_49, 6, x_47); -x_50 = lean_st_ref_set(x_5, x_49, x_30); -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); -} +uint8_t x_44; +x_44 = !lean_is_exclusive(x_16); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_16, 0); +x_46 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +x_50 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_51 = l_Lean_FileMap_toPosition(x_10, x_50); +x_52 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_52); +if (x_12 == 0) +{ +lean_object* x_53; lean_object* x_54; +lean_free_object(x_46); x_53 = lean_box(0); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); +x_54 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_48, x_9, x_51, x_16, x_8, x_53, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); return x_54; } -} 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; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_55 = lean_ctor_get(x_18, 0); -x_56 = lean_ctor_get(x_18, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_18); -x_57 = lean_unsigned_to_nat(0u); -x_58 = l_Lean_FileMap_toPosition(x_10, x_57); -lean_inc(x_58); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_12); -lean_ctor_set(x_60, 1, x_13); -x_61 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_55); -x_62 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_63 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_59); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_61); -lean_ctor_set_uint8(x_63, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_63, sizeof(void*)*5 + 1, x_8); -x_64 = lean_st_ref_take(x_5, x_56); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_65, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_65, 4); -lean_inc(x_71); -x_72 = lean_ctor_get(x_65, 5); -lean_inc(x_72); -x_73 = lean_ctor_get(x_65, 6); -lean_inc(x_73); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - lean_ctor_release(x_65, 2); - lean_ctor_release(x_65, 3); - lean_ctor_release(x_65, 4); - lean_ctor_release(x_65, 5); - lean_ctor_release(x_65, 6); - x_74 = x_65; -} else { - lean_dec_ref(x_65); - x_74 = lean_box(0); -} -x_75 = l_Lean_PersistentArray_push___rarg(x_72, x_63); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 7, 0); -} else { - x_76 = x_74; -} -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set(x_76, 1, x_68); -lean_ctor_set(x_76, 2, x_69); -lean_ctor_set(x_76, 3, x_70); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_75); -lean_ctor_set(x_76, 6, x_73); -x_77 = lean_st_ref_set(x_5, x_76, x_66); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; -} else { - lean_dec_ref(x_77); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -return x_81; -} -} -else +lean_object* x_55; uint8_t x_56; +x_55 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_48); +x_56 = l_Lean_MessageData_hasTag(x_55, x_48); +if (x_56 == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_17); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_83 = lean_ctor_get(x_17, 0); -x_84 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_57; +lean_dec(x_16); +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_4); -x_85 = !lean_is_exclusive(x_84); +x_57 = lean_box(0); +lean_ctor_set(x_46, 0, x_57); +return x_46; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_free_object(x_46); +x_58 = lean_box(0); +x_59 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_48, x_9, x_51, x_16, x_8, x_58, x_4, x_5, x_49); +lean_dec(x_5); +lean_dec(x_4); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_unsigned_to_nat(0u); +lean_inc(x_10); +x_63 = l_Lean_FileMap_toPosition(x_10, x_62); +x_64 = l_Lean_FileMap_toPosition(x_10, x_45); +lean_dec(x_45); +lean_ctor_set(x_16, 0, x_64); +if (x_12 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_box(0); +x_66 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_60, x_9, x_63, x_16, x_8, x_65, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_60); +x_68 = l_Lean_MessageData_hasTag(x_67, x_60); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +lean_dec(x_63); +lean_dec(x_60); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_61); +return x_70; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_box(0); +x_72 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_60, x_9, x_63, x_16, x_8, x_71, x_4, x_5, x_61); +lean_dec(x_5); +lean_dec(x_4); +return x_72; +} +} +} +} +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; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_16, 0); +lean_inc(x_73); +lean_dec(x_16); +x_74 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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_unsigned_to_nat(0u); +lean_inc(x_10); +x_79 = l_Lean_FileMap_toPosition(x_10, x_78); +x_80 = l_Lean_FileMap_toPosition(x_10, x_73); +lean_dec(x_73); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +if (x_12 == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_77); +x_82 = lean_box(0); +x_83 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_75, x_9, x_79, x_81, x_8, x_82, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_83; +} +else +{ +lean_object* x_84; uint8_t x_85; +x_84 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_75); +x_85 = l_Lean_MessageData_hasTag(x_84, x_75); if (x_85 == 0) { -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; uint8_t x_97; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -x_88 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_89 = l_Lean_FileMap_toPosition(x_10, x_88); -x_90 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_90); -lean_ctor_set(x_84, 1, x_13); -lean_ctor_set(x_84, 0, x_12); -x_91 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_91, 0, x_84); -lean_ctor_set(x_91, 1, x_86); -x_92 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_9); -lean_ctor_set(x_93, 1, x_89); -lean_ctor_set(x_93, 2, x_17); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_8); -x_94 = lean_st_ref_take(x_5, x_87); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_86; lean_object* x_87; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_86 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_77; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_76); +return x_87; +} +else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_98 = lean_ctor_get(x_95, 5); -x_99 = l_Lean_PersistentArray_push___rarg(x_98, x_93); -lean_ctor_set(x_95, 5, x_99); -x_100 = lean_st_ref_set(x_5, x_95, x_96); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +lean_object* x_88; lean_object* x_89; +lean_dec(x_77); +x_88 = lean_box(0); +x_89 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_75, x_9, x_79, x_81, x_8, x_88, x_4, x_5, x_76); +lean_dec(x_5); +lean_dec(x_4); +return x_89; +} +} +} +} +} +else +{ +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_15); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_15, 0); +x_92 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_92, 0); +x_95 = lean_ctor_get(x_92, 1); +x_96 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_96); +lean_ctor_set(x_15, 0, x_96); +if (x_12 == 0) +{ +lean_object* x_97; lean_object* x_98; +lean_free_object(x_92); +x_97 = lean_box(0); +x_98 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_94, x_9, x_96, x_15, x_8, x_97, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_98; +} +else +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_94); +x_100 = l_Lean_MessageData_hasTag(x_99, x_94); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_15); +lean_dec(x_96); +lean_dec(x_94); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_101 = lean_box(0); +lean_ctor_set(x_92, 0, x_101); +return x_92; +} +else { lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_100, 0); -lean_dec(x_102); -x_103 = lean_box(0); -lean_ctor_set(x_100, 0, x_103); -return x_100; +lean_free_object(x_92); +x_102 = lean_box(0); +x_103 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_94, x_9, x_96, x_15, x_8, x_102, x_4, x_5, x_95); +lean_dec(x_5); +lean_dec(x_4); +return x_103; +} +} } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 1); +x_104 = lean_ctor_get(x_92, 0); +x_105 = lean_ctor_get(x_92, 1); +lean_inc(x_105); lean_inc(x_104); -lean_dec(x_100); -x_105 = lean_box(0); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -return x_106; +lean_dec(x_92); +x_106 = l_Lean_FileMap_toPosition(x_10, x_91); +lean_dec(x_91); +lean_inc(x_106); +lean_ctor_set(x_15, 0, x_106); +if (x_12 == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_box(0); +x_108 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_104, x_9, x_106, x_15, x_8, x_107, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_108; +} +else +{ +lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_104); +x_110 = l_Lean_MessageData_hasTag(x_109, x_104); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_15); +lean_dec(x_106); +lean_dec(x_104); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_105); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_box(0); +x_114 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_104, x_9, x_106, x_15, x_8, x_113, x_4, x_5, x_105); +lean_dec(x_5); +lean_dec(x_4); +return x_114; +} +} } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_107 = lean_ctor_get(x_95, 0); -x_108 = lean_ctor_get(x_95, 1); -x_109 = lean_ctor_get(x_95, 2); -x_110 = lean_ctor_get(x_95, 3); -x_111 = lean_ctor_get(x_95, 4); -x_112 = lean_ctor_get(x_95, 5); -x_113 = lean_ctor_get(x_95, 6); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_95); -x_114 = l_Lean_PersistentArray_push___rarg(x_112, x_93); -x_115 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_115, 0, x_107); -lean_ctor_set(x_115, 1, x_108); -lean_ctor_set(x_115, 2, x_109); -lean_ctor_set(x_115, 3, x_110); -lean_ctor_set(x_115, 4, x_111); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_113); -x_116 = lean_st_ref_set(x_5, x_115, x_96); -x_117 = lean_ctor_get(x_116, 1); +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_115 = lean_ctor_get(x_15, 0); +lean_inc(x_115); +lean_dec(x_15); +x_116 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); if (lean_is_exclusive(x_116)) { lean_ctor_release(x_116, 0); lean_ctor_release(x_116, 1); - x_118 = x_116; + x_119 = x_116; } else { lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; + x_119 = lean_box(0); } +x_120 = l_Lean_FileMap_toPosition(x_10, x_115); +lean_dec(x_115); +lean_inc(x_120); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +if (x_12 == 0) +{ +lean_object* x_122; lean_object* x_123; +lean_dec(x_119); +x_122 = lean_box(0); +x_123 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_117, x_9, x_120, x_121, x_8, x_122, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_123; } 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; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_121 = lean_ctor_get(x_84, 0); -x_122 = lean_ctor_get(x_84, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_84); -x_123 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_124 = l_Lean_FileMap_toPosition(x_10, x_123); -x_125 = l_Lean_FileMap_toPosition(x_10, x_83); -lean_dec(x_83); -lean_ctor_set(x_17, 0, x_125); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_12); -lean_ctor_set(x_126, 1, x_13); -x_127 = lean_alloc_ctor(3, 2, 0); +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_117); +x_125 = l_Lean_MessageData_hasTag(x_124, x_117); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_117); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_126 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_119; +} lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_129 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_129, 0, x_9); -lean_ctor_set(x_129, 1, x_124); -lean_ctor_set(x_129, 2, x_17); -lean_ctor_set(x_129, 3, x_128); -lean_ctor_set(x_129, 4, x_127); -lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_8); -x_130 = lean_st_ref_take(x_5, x_122); -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_ctor_set(x_127, 1, x_118); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_119); +x_128 = lean_box(0); +x_129 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_117, x_9, x_120, x_121, x_8, x_128, x_4, x_5, x_118); +lean_dec(x_5); +lean_dec(x_4); +return x_129; +} +} +} +} +else +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_15, 0); +lean_inc(x_130); +lean_dec(x_15); +x_131 = !lean_is_exclusive(x_16); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; uint8_t x_134; +x_132 = lean_ctor_get(x_16, 0); +x_133 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_10); +x_137 = l_Lean_FileMap_toPosition(x_10, x_130); lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_138 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_138); +if (x_12 == 0) +{ +lean_object* x_139; lean_object* x_140; +lean_free_object(x_133); +x_139 = lean_box(0); +x_140 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_135, x_9, x_137, x_16, x_8, x_139, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_140; +} +else +{ +lean_object* x_141; uint8_t x_142; +x_141 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 4); -lean_inc(x_137); -x_138 = lean_ctor_get(x_131, 5); -lean_inc(x_138); -x_139 = lean_ctor_get(x_131, 6); -lean_inc(x_139); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - lean_ctor_release(x_131, 4); - lean_ctor_release(x_131, 5); - lean_ctor_release(x_131, 6); - x_140 = x_131; -} else { - lean_dec_ref(x_131); - x_140 = lean_box(0); +x_142 = l_Lean_MessageData_hasTag(x_141, x_135); +if (x_142 == 0) +{ +lean_object* x_143; +lean_dec(x_16); +lean_dec(x_137); +lean_dec(x_135); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_143 = lean_box(0); +lean_ctor_set(x_133, 0, x_143); +return x_133; } -x_141 = l_Lean_PersistentArray_push___rarg(x_138, x_129); -if (lean_is_scalar(x_140)) { - x_142 = lean_alloc_ctor(0, 7, 0); -} else { - x_142 = x_140; +else +{ +lean_object* x_144; lean_object* x_145; +lean_free_object(x_133); +x_144 = lean_box(0); +x_145 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_135, x_9, x_137, x_16, x_8, x_144, x_4, x_5, x_136); +lean_dec(x_5); +lean_dec(x_4); +return x_145; } -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_134); -lean_ctor_set(x_142, 2, x_135); -lean_ctor_set(x_142, 3, x_136); -lean_ctor_set(x_142, 4, x_137); -lean_ctor_set(x_142, 5, x_141); -lean_ctor_set(x_142, 6, x_139); -x_143 = lean_st_ref_set(x_5, x_142, x_132); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; -} else { - lean_dec_ref(x_143); - x_145 = lean_box(0); -} -x_146 = lean_box(0); -if (lean_is_scalar(x_145)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_145; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; } } 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; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_148 = lean_ctor_get(x_17, 0); -lean_inc(x_148); -lean_dec(x_17); -x_149 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_152 = x_149; -} else { - lean_dec_ref(x_149); - x_152 = lean_box(0); -} -x_153 = lean_unsigned_to_nat(0u); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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); lean_inc(x_10); -x_154 = l_Lean_FileMap_toPosition(x_10, x_153); -x_155 = l_Lean_FileMap_toPosition(x_10, x_148); +x_148 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_149 = l_Lean_FileMap_toPosition(x_10, x_132); +lean_dec(x_132); +lean_ctor_set(x_16, 0, x_149); +if (x_12 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_box(0); +x_151 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_146, x_9, x_148, x_16, x_8, x_150, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_151; +} +else +{ +lean_object* x_152; uint8_t x_153; +x_152 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_146); +x_153 = l_Lean_MessageData_hasTag(x_152, x_146); +if (x_153 == 0) +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_16); lean_dec(x_148); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_155); -if (lean_is_scalar(x_152)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_152; +lean_dec(x_146); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_154 = lean_box(0); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_147); +return x_155; } -lean_ctor_set(x_157, 0, x_12); -lean_ctor_set(x_157, 1, x_13); -x_158 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_150); -x_159 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_160 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_160, 0, x_9); -lean_ctor_set(x_160, 1, x_154); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_159); -lean_ctor_set(x_160, 4, x_158); -lean_ctor_set_uint8(x_160, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_160, sizeof(void*)*5 + 1, x_8); -x_161 = lean_st_ref_take(x_5, x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -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); -x_166 = lean_ctor_get(x_162, 2); -lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); -lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 6); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - lean_ctor_release(x_162, 6); +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_box(0); +x_157 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_146, x_9, x_148, x_16, x_8, x_156, x_4, x_5, x_147); +lean_dec(x_5); +lean_dec(x_4); +return x_157; +} +} +} +} +else +{ +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; +x_158 = lean_ctor_get(x_16, 0); +lean_inc(x_158); +lean_dec(x_16); +x_159 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +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); +} +lean_inc(x_10); +x_163 = l_Lean_FileMap_toPosition(x_10, x_130); +lean_dec(x_130); +x_164 = l_Lean_FileMap_toPosition(x_10, x_158); +lean_dec(x_158); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_164); +if (x_12 == 0) +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_162); +x_166 = lean_box(0); +x_167 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_160, x_9, x_163, x_165, x_8, x_166, x_4, x_5, x_161); +lean_dec(x_5); +lean_dec(x_4); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +x_168 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; +lean_inc(x_160); +x_169 = l_Lean_MessageData_hasTag(x_168, x_160); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_165); +lean_dec(x_163); +lean_dec(x_160); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_170 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = l_Lean_PersistentArray_push___rarg(x_169, x_160); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 7, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_164); -lean_ctor_set(x_173, 1, x_165); -lean_ctor_set(x_173, 2, x_166); -lean_ctor_set(x_173, 3, x_167); -lean_ctor_set(x_173, 4, x_168); -lean_ctor_set(x_173, 5, x_172); -lean_ctor_set(x_173, 6, x_170); -x_174 = lean_st_ref_set(x_5, x_173, x_163); -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -x_177 = lean_box(0); -if (lean_is_scalar(x_176)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_176; -} -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; -} } +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_161); +return x_171; } else { -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_179; -x_179 = !lean_is_exclusive(x_16); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = lean_ctor_get(x_16, 0); -x_181 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); +lean_object* x_172; lean_object* x_173; +lean_dec(x_162); +x_172 = lean_box(0); +x_173 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_160, x_9, x_163, x_165, x_8, x_172, x_4, x_5, x_161); +lean_dec(x_5); lean_dec(x_4); -x_182 = !lean_is_exclusive(x_181); -if (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_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -x_185 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_185); -lean_ctor_set(x_16, 0, x_185); -lean_ctor_set(x_181, 1, x_13); -lean_ctor_set(x_181, 0, x_12); -x_186 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_183); -x_187 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_188 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_188, 0, x_9); -lean_ctor_set(x_188, 1, x_185); -lean_ctor_set(x_188, 2, x_16); -lean_ctor_set(x_188, 3, x_187); -lean_ctor_set(x_188, 4, x_186); -lean_ctor_set_uint8(x_188, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_188, sizeof(void*)*5 + 1, x_8); -x_189 = lean_st_ref_take(x_5, x_184); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_193 = lean_ctor_get(x_190, 5); -x_194 = l_Lean_PersistentArray_push___rarg(x_193, x_188); -lean_ctor_set(x_190, 5, x_194); -x_195 = lean_st_ref_set(x_5, x_190, x_191); -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -lean_dec(x_197); -x_198 = lean_box(0); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_195, 1); -lean_inc(x_199); -lean_dec(x_195); -x_200 = lean_box(0); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -return x_201; +return x_173; } } -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_202 = lean_ctor_get(x_190, 0); -x_203 = lean_ctor_get(x_190, 1); -x_204 = lean_ctor_get(x_190, 2); -x_205 = lean_ctor_get(x_190, 3); -x_206 = lean_ctor_get(x_190, 4); -x_207 = lean_ctor_get(x_190, 5); -x_208 = lean_ctor_get(x_190, 6); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_190); -x_209 = l_Lean_PersistentArray_push___rarg(x_207, x_188); -x_210 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_205); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_209); -lean_ctor_set(x_210, 6, x_208); -x_211 = lean_st_ref_set(x_5, x_210, x_191); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_216 = lean_ctor_get(x_181, 0); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_181); -x_218 = l_Lean_FileMap_toPosition(x_10, x_180); -lean_dec(x_180); -lean_inc(x_218); -lean_ctor_set(x_16, 0, x_218); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_12); -lean_ctor_set(x_219, 1, x_13); -x_220 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -x_221 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_222 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_222, 0, x_9); -lean_ctor_set(x_222, 1, x_218); -lean_ctor_set(x_222, 2, x_16); -lean_ctor_set(x_222, 3, x_221); -lean_ctor_set(x_222, 4, x_220); -lean_ctor_set_uint8(x_222, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_222, sizeof(void*)*5 + 1, x_8); -x_223 = lean_st_ref_take(x_5, x_217); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_224, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_224, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_224, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_224, 6); -lean_inc(x_232); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - lean_ctor_release(x_224, 5); - lean_ctor_release(x_224, 6); - x_233 = x_224; -} else { - lean_dec_ref(x_224); - x_233 = lean_box(0); -} -x_234 = l_Lean_PersistentArray_push___rarg(x_231, x_222); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(0, 7, 0); -} else { - x_235 = x_233; -} -lean_ctor_set(x_235, 0, x_226); -lean_ctor_set(x_235, 1, x_227); -lean_ctor_set(x_235, 2, x_228); -lean_ctor_set(x_235, 3, x_229); -lean_ctor_set(x_235, 4, x_230); -lean_ctor_set(x_235, 5, x_234); -lean_ctor_set(x_235, 6, x_232); -x_236 = lean_st_ref_set(x_5, x_235, x_225); -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_238 = x_236; -} else { - lean_dec_ref(x_236); - x_238 = lean_box(0); -} -x_239 = lean_box(0); -if (lean_is_scalar(x_238)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_238; -} -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_237); -return x_240; -} -} -else -{ -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; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_241 = lean_ctor_get(x_16, 0); -lean_inc(x_241); -lean_dec(x_16); -x_242 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_243 = lean_ctor_get(x_242, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_245 = x_242; -} else { - lean_dec_ref(x_242); - x_245 = lean_box(0); -} -x_246 = l_Lean_FileMap_toPosition(x_10, x_241); -lean_dec(x_241); -lean_inc(x_246); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -if (lean_is_scalar(x_245)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_245; -} -lean_ctor_set(x_248, 0, x_12); -lean_ctor_set(x_248, 1, x_13); -x_249 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_243); -x_250 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_251 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_251, 0, x_9); -lean_ctor_set(x_251, 1, x_246); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_250); -lean_ctor_set(x_251, 4, x_249); -lean_ctor_set_uint8(x_251, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_251, sizeof(void*)*5 + 1, x_8); -x_252 = lean_st_ref_take(x_5, x_244); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = lean_ctor_get(x_253, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_253, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_253, 2); -lean_inc(x_257); -x_258 = lean_ctor_get(x_253, 3); -lean_inc(x_258); -x_259 = lean_ctor_get(x_253, 4); -lean_inc(x_259); -x_260 = lean_ctor_get(x_253, 5); -lean_inc(x_260); -x_261 = lean_ctor_get(x_253, 6); -lean_inc(x_261); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - lean_ctor_release(x_253, 5); - lean_ctor_release(x_253, 6); - x_262 = x_253; -} else { - lean_dec_ref(x_253); - x_262 = lean_box(0); -} -x_263 = l_Lean_PersistentArray_push___rarg(x_260, x_251); -if (lean_is_scalar(x_262)) { - x_264 = lean_alloc_ctor(0, 7, 0); -} else { - x_264 = x_262; -} -lean_ctor_set(x_264, 0, x_255); -lean_ctor_set(x_264, 1, x_256); -lean_ctor_set(x_264, 2, x_257); -lean_ctor_set(x_264, 3, x_258); -lean_ctor_set(x_264, 4, x_259); -lean_ctor_set(x_264, 5, x_263); -lean_ctor_set(x_264, 6, x_261); -x_265 = lean_st_ref_set(x_5, x_264, x_254); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -} -else -{ -lean_object* x_270; uint8_t x_271; -x_270 = lean_ctor_get(x_16, 0); -lean_inc(x_270); -lean_dec(x_16); -x_271 = !lean_is_exclusive(x_17); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_272 = lean_ctor_get(x_17, 0); -x_273 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_274 = !lean_is_exclusive(x_273); -if (x_274 == 0) -{ -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; uint8_t x_285; -x_275 = lean_ctor_get(x_273, 0); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_10); -x_277 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_278 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_278); -lean_ctor_set(x_273, 1, x_13); -lean_ctor_set(x_273, 0, x_12); -x_279 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_279, 0, x_273); -lean_ctor_set(x_279, 1, x_275); -x_280 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_281 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_281, 0, x_9); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_17); -lean_ctor_set(x_281, 3, x_280); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set_uint8(x_281, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_281, sizeof(void*)*5 + 1, x_8); -x_282 = lean_st_ref_take(x_5, x_276); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = !lean_is_exclusive(x_283); -if (x_285 == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -x_286 = lean_ctor_get(x_283, 5); -x_287 = l_Lean_PersistentArray_push___rarg(x_286, x_281); -lean_ctor_set(x_283, 5, x_287); -x_288 = lean_st_ref_set(x_5, x_283, x_284); -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -lean_dec(x_290); -x_291 = lean_box(0); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 1); -lean_inc(x_292); -lean_dec(x_288); -x_293 = lean_box(0); -x_294 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -return x_294; -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_295 = lean_ctor_get(x_283, 0); -x_296 = lean_ctor_get(x_283, 1); -x_297 = lean_ctor_get(x_283, 2); -x_298 = lean_ctor_get(x_283, 3); -x_299 = lean_ctor_get(x_283, 4); -x_300 = lean_ctor_get(x_283, 5); -x_301 = lean_ctor_get(x_283, 6); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_283); -x_302 = l_Lean_PersistentArray_push___rarg(x_300, x_281); -x_303 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_303, 0, x_295); -lean_ctor_set(x_303, 1, x_296); -lean_ctor_set(x_303, 2, x_297); -lean_ctor_set(x_303, 3, x_298); -lean_ctor_set(x_303, 4, x_299); -lean_ctor_set(x_303, 5, x_302); -lean_ctor_set(x_303, 6, x_301); -x_304 = lean_st_ref_set(x_5, x_303, x_284); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_306 = x_304; -} else { - lean_dec_ref(x_304); - x_306 = lean_box(0); -} -x_307 = lean_box(0); -if (lean_is_scalar(x_306)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_306; -} -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_305); -return x_308; -} -} -else -{ -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; 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; -x_309 = lean_ctor_get(x_273, 0); -x_310 = lean_ctor_get(x_273, 1); -lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_273); -lean_inc(x_10); -x_311 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_312 = l_Lean_FileMap_toPosition(x_10, x_272); -lean_dec(x_272); -lean_ctor_set(x_17, 0, x_312); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_12); -lean_ctor_set(x_313, 1, x_13); -x_314 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_309); -x_315 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_316 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_316, 0, x_9); -lean_ctor_set(x_316, 1, x_311); -lean_ctor_set(x_316, 2, x_17); -lean_ctor_set(x_316, 3, x_315); -lean_ctor_set(x_316, 4, x_314); -lean_ctor_set_uint8(x_316, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_316, sizeof(void*)*5 + 1, x_8); -x_317 = lean_st_ref_take(x_5, x_310); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = lean_ctor_get(x_318, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_318, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_318, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_318, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_318, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_318, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_318, 6); -lean_inc(x_326); -if (lean_is_exclusive(x_318)) { - lean_ctor_release(x_318, 0); - lean_ctor_release(x_318, 1); - lean_ctor_release(x_318, 2); - lean_ctor_release(x_318, 3); - lean_ctor_release(x_318, 4); - lean_ctor_release(x_318, 5); - lean_ctor_release(x_318, 6); - x_327 = x_318; -} else { - lean_dec_ref(x_318); - x_327 = lean_box(0); -} -x_328 = l_Lean_PersistentArray_push___rarg(x_325, x_316); -if (lean_is_scalar(x_327)) { - x_329 = lean_alloc_ctor(0, 7, 0); -} else { - x_329 = x_327; -} -lean_ctor_set(x_329, 0, x_320); -lean_ctor_set(x_329, 1, x_321); -lean_ctor_set(x_329, 2, x_322); -lean_ctor_set(x_329, 3, x_323); -lean_ctor_set(x_329, 4, x_324); -lean_ctor_set(x_329, 5, x_328); -lean_ctor_set(x_329, 6, x_326); -x_330 = lean_st_ref_set(x_5, x_329, x_319); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - x_332 = x_330; -} else { - lean_dec_ref(x_330); - x_332 = lean_box(0); -} -x_333 = lean_box(0); -if (lean_is_scalar(x_332)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_332; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_331); -return x_334; -} -} -else -{ -lean_object* x_335; 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; 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_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; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_335 = lean_ctor_get(x_17, 0); -lean_inc(x_335); -lean_dec(x_17); -x_336 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_2, x_4, x_5, x_6); -lean_dec(x_4); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_336, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_339 = x_336; -} else { - lean_dec_ref(x_336); - x_339 = lean_box(0); -} -lean_inc(x_10); -x_340 = l_Lean_FileMap_toPosition(x_10, x_270); -lean_dec(x_270); -x_341 = l_Lean_FileMap_toPosition(x_10, x_335); -lean_dec(x_335); -x_342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_342, 0, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 2, 0); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_12); -lean_ctor_set(x_343, 1, x_13); -x_344 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_337); -x_345 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1; -x_346 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_346, 0, x_9); -lean_ctor_set(x_346, 1, x_340); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_345); -lean_ctor_set(x_346, 4, x_344); -lean_ctor_set_uint8(x_346, sizeof(void*)*5, x_15); -lean_ctor_set_uint8(x_346, sizeof(void*)*5 + 1, x_8); -x_347 = lean_st_ref_take(x_5, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get(x_348, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_348, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 2); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 3); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 4); -lean_inc(x_354); -x_355 = lean_ctor_get(x_348, 5); -lean_inc(x_355); -x_356 = lean_ctor_get(x_348, 6); -lean_inc(x_356); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - x_357 = x_348; -} else { - lean_dec_ref(x_348); - x_357 = lean_box(0); -} -x_358 = l_Lean_PersistentArray_push___rarg(x_355, x_346); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 7, 0); -} else { - x_359 = x_357; -} -lean_ctor_set(x_359, 0, x_350); -lean_ctor_set(x_359, 1, x_351); -lean_ctor_set(x_359, 2, x_352); -lean_ctor_set(x_359, 3, x_353); -lean_ctor_set(x_359, 4, x_354); -lean_ctor_set(x_359, 5, x_358); -lean_ctor_set(x_359, 6, x_356); -x_360 = lean_st_ref_set(x_5, x_359, x_349); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_360)) { - lean_ctor_release(x_360, 0); - lean_ctor_release(x_360, 1); - x_362 = x_360; -} else { - lean_dec_ref(x_360); - x_362 = lean_box(0); -} -x_363 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -return x_364; } } } @@ -1677,6 +1381,7 @@ lean_dec(x_3); if (x_11 == 0) { lean_object* x_12; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); @@ -1700,7 +1405,6 @@ lean_ctor_set(x_19, 0, x_18); x_20 = l_Lean_MessageData_ofFormat(x_19); x_21 = 0; x_22 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1(x_2, x_20, x_21, x_4, x_5, x_10); -lean_dec(x_2); return x_22; } } @@ -1718,6 +1422,7 @@ lean_dec(x_3); if (x_25 == 0) { lean_object* x_26; lean_object* x_27; +lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); @@ -1742,12 +1447,34 @@ lean_ctor_set(x_34, 0, x_33); x_35 = l_Lean_MessageData_ofFormat(x_34); x_36 = 0; x_37 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1(x_2, x_35, x_36, x_4, x_5, x_24); -lean_dec(x_2); return x_37; } } } } +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___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_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_reportOutOfHeartbeats___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: { @@ -1755,20 +1482,9 @@ uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); x_8 = l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_reportOutOfHeartbeats___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_Lean_reportOutOfHeartbeats(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -return x_7; -} -} lean_object* initialize_Lean_CoreM(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Util_Heartbeats(uint8_t builtin, lean_object* w) { @@ -1780,6 +1496,16 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_withHeartbeats___rarg___closed__1 = _init_l_Lean_withHeartbeats___rarg___closed__1(); lean_mark_persistent(l_Lean_withHeartbeats___rarg___closed__1); +l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__1___closed__1); +l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__1); +l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__2); +l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__3); +l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___lambda__2___closed__4); l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1(); lean_mark_persistent(l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__1); l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2 = _init_l_Lean_logAt___at_Lean_reportOutOfHeartbeats___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Widget/Diff.c b/stage0/stdlib/Lean/Widget/Diff.c index 958c699163..c7d6a086e6 100644 --- a/stage0/stdlib/Lean/Widget/Diff.c +++ b/stage0/stdlib/Lean/Widget/Diff.c @@ -32,6 +32,7 @@ LEAN_EXPORT uint8_t l_Lean_Widget_instAppendExprDiff___lambda__1(lean_object*, l lean_object* l_Lean_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_Diff_0__Lean_Widget_ExprDiffTag_noConfusion___rarg___closed__1; lean_object* l_Lean_LocalContext_findFromUserName_x3f(lean_object*, lean_object*); +uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_revFold___at_Lean_Widget_instToStringExprDiff___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_Diff_0__Lean_Widget_ExprDiffTag_toCtorIdx___boxed(lean_object*); static lean_object* l_Lean_Widget_diffInteractiveGoal___closed__2; @@ -3776,7 +3777,7 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Widget_exprDiffCore_piDiff___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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_36; +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_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_38; x_11 = lean_unsigned_to_nat(0u); x_12 = l_List_lengthTRAux___rarg(x_1, x_11); lean_inc(x_12); @@ -3796,129 +3797,129 @@ if (lean_is_exclusive(x_24)) { x_27 = lean_box(0); } lean_inc(x_6); -x_36 = l_List_mapM_loop___at_Lean_Widget_exprDiffCore_piDiff___spec__4(x_1, x_14, x_6, x_7, x_8, x_9, x_26); -if (lean_obj_tag(x_36) == 0) +x_38 = l_List_mapM_loop___at_Lean_Widget_exprDiffCore_piDiff___spec__4(x_1, x_14, x_6, x_7, x_8, x_9, x_26); +if (lean_obj_tag(x_38) == 0) { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 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; lean_object* x_46; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -x_40 = l_List_redLength___rarg(x_38); -x_41 = lean_mk_empty_array_with_capacity(x_40); -lean_dec(x_40); -x_42 = l_List_toArrayAux___rarg(x_38, x_41); -x_43 = lean_expr_instantiate_rev(x_13, x_42); +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; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = l_List_redLength___rarg(x_40); +x_43 = lean_mk_empty_array_with_capacity(x_42); lean_dec(x_42); +x_44 = l_List_toArrayAux___rarg(x_40, x_43); +x_45 = lean_expr_instantiate_rev(x_13, x_44); +lean_dec(x_44); lean_dec(x_13); -x_44 = lean_ctor_get(x_3, 1); -lean_inc(x_44); +x_46 = lean_ctor_get(x_3, 1); +lean_inc(x_46); lean_inc(x_12); -x_45 = l_Lean_SubExpr_Pos_pushNthBindingBody(x_12, x_44); -lean_ctor_set(x_36, 1, x_45); -lean_ctor_set(x_36, 0, x_43); +x_47 = l_Lean_SubExpr_Pos_pushNthBindingBody(x_12, x_46); +lean_ctor_set(x_38, 1, x_47); +lean_ctor_set(x_38, 0, x_45); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_46 = l_Lean_Widget_exprDiffCore(x_36, x_4, x_6, x_7, x_8, x_9, x_39); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; -lean_dec(x_27); -lean_dec(x_25); -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_15 = x_47; -x_16 = x_48; -goto block_23; -} -else +x_48 = l_Lean_Widget_exprDiffCore(x_38, x_4, x_6, x_7, x_8, x_9, x_41); +if (lean_obj_tag(x_48) == 0) { lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_46, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_46, 1); -lean_inc(x_50); -lean_dec(x_46); -x_28 = x_49; -x_29 = x_50; -goto block_35; -} -} -else -{ -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; -x_51 = lean_ctor_get(x_36, 0); -x_52 = lean_ctor_get(x_36, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_36); -x_53 = l_List_redLength___rarg(x_51); -x_54 = lean_mk_empty_array_with_capacity(x_53); -lean_dec(x_53); -x_55 = l_List_toArrayAux___rarg(x_51, x_54); -x_56 = lean_expr_instantiate_rev(x_13, x_55); -lean_dec(x_55); -lean_dec(x_13); -x_57 = lean_ctor_get(x_3, 1); -lean_inc(x_57); -lean_inc(x_12); -x_58 = l_Lean_SubExpr_Pos_pushNthBindingBody(x_12, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_58); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_60 = l_Lean_Widget_exprDiffCore(x_59, x_4, x_6, x_7, x_8, x_9, x_52); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_dec(x_27); lean_dec(x_25); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_15 = x_61; -x_16 = x_62; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_15 = x_49; +x_16 = x_50; goto block_23; } else { +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_48, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_48, 1); +lean_inc(x_52); +lean_dec(x_48); +x_28 = x_51; +x_29 = x_52; +goto block_37; +} +} +else +{ +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; +x_53 = lean_ctor_get(x_38, 0); +x_54 = lean_ctor_get(x_38, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_38); +x_55 = l_List_redLength___rarg(x_53); +x_56 = lean_mk_empty_array_with_capacity(x_55); +lean_dec(x_55); +x_57 = l_List_toArrayAux___rarg(x_53, x_56); +x_58 = lean_expr_instantiate_rev(x_13, x_57); +lean_dec(x_57); +lean_dec(x_13); +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +lean_inc(x_12); +x_60 = l_Lean_SubExpr_Pos_pushNthBindingBody(x_12, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_60); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_62 = l_Lean_Widget_exprDiffCore(x_61, x_4, x_6, x_7, x_8, x_9, x_54); +if (lean_obj_tag(x_62) == 0) +{ lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 0); +lean_dec(x_27); +lean_dec(x_25); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -x_64 = lean_ctor_get(x_60, 1); +x_64 = lean_ctor_get(x_62, 1); lean_inc(x_64); -lean_dec(x_60); -x_28 = x_63; -x_29 = x_64; -goto block_35; -} -} +lean_dec(x_62); +x_15 = x_63; +x_16 = x_64; +goto block_23; } else { lean_object* x_65; lean_object* x_66; -lean_dec(x_13); -lean_dec(x_4); -x_65 = lean_ctor_get(x_36, 0); +x_65 = lean_ctor_get(x_62, 0); lean_inc(x_65); -x_66 = lean_ctor_get(x_36, 1); +x_66 = lean_ctor_get(x_62, 1); lean_inc(x_66); -lean_dec(x_36); +lean_dec(x_62); x_28 = x_65; x_29 = x_66; -goto block_35; +goto block_37; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_13); +lean_dec(x_4); +x_67 = lean_ctor_get(x_38, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_38, 1); +lean_inc(x_68); +lean_dec(x_38); +x_28 = x_67; +x_29 = x_68; +goto block_37; } block_23: { @@ -3950,28 +3951,32 @@ lean_ctor_set(x_22, 1, x_21); return x_22; } } -block_35: +block_37: { uint8_t x_30; -x_30 = l_Lean_Exception_isRuntime(x_28); +x_30 = l_Lean_Exception_isInterrupt(x_28); if (x_30 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; +uint8_t x_31; +x_31 = l_Lean_Exception_isRuntime(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_28); lean_dec(x_27); -x_31 = l_Lean_Meta_SavedState_restore(x_25, x_6, x_7, x_8, x_9, x_29); +x_32 = l_Lean_Meta_SavedState_restore(x_25, x_6, x_7, x_8, x_9, x_29); lean_dec(x_25); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = l_Lean_Widget_instEmptyCollectionExprDiff___closed__1; -x_15 = x_33; -x_16 = x_32; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_Widget_instEmptyCollectionExprDiff___closed__1; +x_15 = x_34; +x_16 = x_33; goto block_23; } else { -lean_object* x_34; +lean_object* x_35; lean_dec(x_25); lean_dec(x_12); lean_dec(x_9); @@ -3980,14 +3985,35 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); if (lean_is_scalar(x_27)) { - x_34 = lean_alloc_ctor(1, 2, 0); + x_35 = lean_alloc_ctor(1, 2, 0); } else { - x_34 = x_27; - lean_ctor_set_tag(x_34, 1); + x_35 = x_27; + lean_ctor_set_tag(x_35, 1); } -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_29); -return x_34; +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_29); +return x_35; +} +} +else +{ +lean_object* x_36; +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +if (lean_is_scalar(x_27)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_27; + lean_ctor_set_tag(x_36, 1); +} +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +return x_36; } } } diff --git a/stage0/stdlib/Lean/Widget/UserWidget.c b/stage0/stdlib/Lean/Widget/UserWidget.c index a868d6a25f..08293659e5 100644 --- a/stage0/stdlib/Lean/Widget/UserWidget.c +++ b/stage0/stdlib/Lean/Widget/UserWidget.c @@ -15350,7 +15350,7 @@ return x_13; } else { -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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_14 = lean_ctor_get(x_7, 0); x_15 = lean_ctor_get(x_7, 1); x_16 = lean_ctor_get(x_7, 2); @@ -15362,7 +15362,10 @@ x_21 = lean_ctor_get(x_7, 7); x_22 = lean_ctor_get(x_7, 8); x_23 = lean_ctor_get(x_7, 9); x_24 = lean_ctor_get(x_7, 10); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_26 = lean_ctor_get(x_7, 11); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_26); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -15375,29 +15378,31 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_dec(x_7); -x_26 = l_Lean_replaceRef(x_1, x_19); +x_28 = l_Lean_replaceRef(x_1, x_19); lean_dec(x_19); lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 11, 1); -lean_ctor_set(x_27, 0, x_14); -lean_ctor_set(x_27, 1, x_15); -lean_ctor_set(x_27, 2, x_16); -lean_ctor_set(x_27, 3, x_17); -lean_ctor_set(x_27, 4, x_18); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_20); -lean_ctor_set(x_27, 7, x_21); -lean_ctor_set(x_27, 8, x_22); -lean_ctor_set(x_27, 9, x_23); -lean_ctor_set(x_27, 10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_25); -x_28 = l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(x_2, x_3, x_4, x_5, x_6, x_27, x_8, x_9); +x_29 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_29, 0, x_14); +lean_ctor_set(x_29, 1, x_15); +lean_ctor_set(x_29, 2, x_16); +lean_ctor_set(x_29, 3, x_17); +lean_ctor_set(x_29, 4, x_18); +lean_ctor_set(x_29, 5, x_28); +lean_ctor_set(x_29, 6, x_20); +lean_ctor_set(x_29, 7, x_21); +lean_ctor_set(x_29, 8, x_22); +lean_ctor_set(x_29, 9, x_23); +lean_ctor_set(x_29, 10, x_24); +lean_ctor_set(x_29, 11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25); +lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27); +x_30 = l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9); lean_dec(x_8); -lean_dec(x_27); +lean_dec(x_29); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_28; +return x_30; } } }